@nuraly/runtime 0.1.6 → 0.1.7
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/components/ui/components/runtime/MicroApp/MicroApp.ts +143 -5
- package/dist/{CodeEditor-0GwD2UDB.js → CodeEditor-YsOapSut.js} +22 -22
- package/dist/{SmartAttributeHandler-B1UJKlqJ.js → SmartAttributeHandler-C4EliaG0.js} +1 -1
- package/dist/{cssMode-BzqArQ52.js → cssMode-CqMQ6Xsa.js} +1 -1
- package/dist/{freemarker2-XzXhMwTc.js → freemarker2-Bfqhwyij.js} +1 -1
- package/dist/{handlebars-CmrcNfkM.js → handlebars-DCgKNBmn.js} +1 -1
- package/dist/{html-BsvlsNx5.js → html-C6wR7sMB.js} +1 -1
- package/dist/{htmlMode-CmNePjzn.js → htmlMode-KglxyZXm.js} +1 -1
- package/dist/{javascript-D-M-tA-x.js → javascript-D1L5MTmg.js} +1 -1
- package/dist/{jsonMode-CKj6yF-8.js → jsonMode-B3rqxD-b.js} +1 -1
- package/dist/{liquid-_8i5JYO-.js → liquid-D_pDYIs1.js} +1 -1
- package/dist/{mdx-CiSJOftS.js → mdx-CKsJ3cF4.js} +1 -1
- package/dist/{micro-app-entry-BT6Pk6bn.js → micro-app-entry-xdTX5-ut.js} +808 -708
- package/dist/micro-app.bundle.js +1 -1
- package/dist/micro-app.js +133 -5
- package/dist/{python-DNxbUiJS.js → python-zPpZYwLF.js} +1 -1
- package/dist/{razor-BFH0wq9s.js → razor-B_fCUeGX.js} +1 -1
- package/dist/{tsMode-DfXg_Y5Y.js → tsMode-DEiq8fQ0.js} +1 -1
- package/dist/{typescript-DFCDgKOy.js → typescript-DrlYcCUn.js} +1 -1
- package/dist/{xml-axhHDYch.js → xml-BzP9D0eZ.js} +1 -1
- package/dist/{yaml-fWSpoHsZ.js → yaml-CT7GOvXu.js} +1 -1
- package/package.json +1 -1
|
@@ -76,7 +76,7 @@ let Xs = (e, t, i, n) => (e.events = e.events || {}, e.events[i + 10] || (e.even
|
|
|
76
76
|
}, () => {
|
|
77
77
|
e.notify = n;
|
|
78
78
|
};
|
|
79
|
-
}), Yo = 1e3,
|
|
79
|
+
}), Yo = 1e3, Tn = (e, t) => Xs(e, (n) => {
|
|
80
80
|
let r = t(n);
|
|
81
81
|
r && e.events[6].push(r);
|
|
82
82
|
}, 5, (n) => {
|
|
@@ -107,7 +107,7 @@ let Xs = (e, t, i, n) => (e.events = e.events || {}, e.events[i + 10] || (e.even
|
|
|
107
107
|
}) : a.set(p);
|
|
108
108
|
}
|
|
109
109
|
}, a = Z(void 0, Math.max(...e.map((u) => u.l)) + 1), o = s;
|
|
110
|
-
return
|
|
110
|
+
return Tn(a, () => {
|
|
111
111
|
let u = e.map((c) => c.listen(o, -1 / a.l));
|
|
112
112
|
return s(), () => {
|
|
113
113
|
for (let c of u) c();
|
|
@@ -164,7 +164,7 @@ function Et(e = {}) {
|
|
|
164
164
|
Qo(t.value, i) !== n && (t.value = { ...Xo(t.value, i, n) }, t.notify(r, i));
|
|
165
165
|
}, t;
|
|
166
166
|
}
|
|
167
|
-
let
|
|
167
|
+
let Or = (e) => {
|
|
168
168
|
e.listen(() => {
|
|
169
169
|
});
|
|
170
170
|
}, Ji = (e = {}) => {
|
|
@@ -176,7 +176,7 @@ let Tr = (e) => {
|
|
|
176
176
|
[i]: n
|
|
177
177
|
}, t.notify(r, i));
|
|
178
178
|
}, t;
|
|
179
|
-
}, xs = (e) => e,
|
|
179
|
+
}, xs = (e) => e, At = {}, dr = { addEventListener() {
|
|
180
180
|
}, removeEventListener() {
|
|
181
181
|
} };
|
|
182
182
|
function tl() {
|
|
@@ -186,7 +186,7 @@ function tl() {
|
|
|
186
186
|
return !1;
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
|
-
tl() && (
|
|
189
|
+
tl() && (At = localStorage);
|
|
190
190
|
let il = {
|
|
191
191
|
addEventListener(e, t, i) {
|
|
192
192
|
window.addEventListener("storage", t), window.addEventListener("pageshow", i);
|
|
@@ -199,15 +199,15 @@ typeof window < "u" && (dr = il);
|
|
|
199
199
|
function Yt(e, t = void 0, i = {}) {
|
|
200
200
|
let n = i.encode || xs, r = i.decode || xs, s = Z(t), a = s.set;
|
|
201
201
|
s.set = (c) => {
|
|
202
|
-
typeof c > "u" ? delete
|
|
202
|
+
typeof c > "u" ? delete At[e] : At[e] = n(c), a(c);
|
|
203
203
|
};
|
|
204
204
|
function o(c) {
|
|
205
|
-
c.key === e ? c.newValue === null ? a(void 0) : a(r(c.newValue)) :
|
|
205
|
+
c.key === e ? c.newValue === null ? a(void 0) : a(r(c.newValue)) : At[e] || a(void 0);
|
|
206
206
|
}
|
|
207
207
|
function u() {
|
|
208
|
-
s.set(
|
|
208
|
+
s.set(At[e] ? r(At[e]) : t);
|
|
209
209
|
}
|
|
210
|
-
return
|
|
210
|
+
return Tn(s, () => {
|
|
211
211
|
if (u(), i.listen !== !1)
|
|
212
212
|
return dr.addEventListener(e, o, u), () => {
|
|
213
213
|
dr.removeEventListener(e, o, u);
|
|
@@ -236,7 +236,7 @@ var fr = function(e, t) {
|
|
|
236
236
|
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (i[r] = n[r]);
|
|
237
237
|
}, fr(e, t);
|
|
238
238
|
};
|
|
239
|
-
function
|
|
239
|
+
function Hi(e, t) {
|
|
240
240
|
if (typeof t != "function" && t !== null)
|
|
241
241
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
242
242
|
fr(e, t);
|
|
@@ -364,8 +364,8 @@ function nn(e, t, i) {
|
|
|
364
364
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
365
365
|
return e.concat(s || Array.prototype.slice.call(t));
|
|
366
366
|
}
|
|
367
|
-
function
|
|
368
|
-
return this instanceof
|
|
367
|
+
function Dt(e) {
|
|
368
|
+
return this instanceof Dt ? (this.v = e, this) : new Dt(e);
|
|
369
369
|
}
|
|
370
370
|
function ol(e, t, i) {
|
|
371
371
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
@@ -380,8 +380,8 @@ function ol(e, t, i) {
|
|
|
380
380
|
}
|
|
381
381
|
function o(b, y) {
|
|
382
382
|
n[b] && (r[b] = function(S) {
|
|
383
|
-
return new Promise(function(k,
|
|
384
|
-
s.push([b, S, k,
|
|
383
|
+
return new Promise(function(k, A) {
|
|
384
|
+
s.push([b, S, k, A]) > 1 || u(b, S);
|
|
385
385
|
});
|
|
386
386
|
}, y && (r[b] = y(r[b])));
|
|
387
387
|
}
|
|
@@ -393,7 +393,7 @@ function ol(e, t, i) {
|
|
|
393
393
|
}
|
|
394
394
|
}
|
|
395
395
|
function c(b) {
|
|
396
|
-
b.value instanceof
|
|
396
|
+
b.value instanceof Dt ? Promise.resolve(b.value.v).then(p, d) : v(s[0][2], b);
|
|
397
397
|
}
|
|
398
398
|
function p(b) {
|
|
399
399
|
u("next", b);
|
|
@@ -571,8 +571,8 @@ function ws() {
|
|
|
571
571
|
function Zi(e) {
|
|
572
572
|
e();
|
|
573
573
|
}
|
|
574
|
-
var
|
|
575
|
-
|
|
574
|
+
var Dr = function(e) {
|
|
575
|
+
Hi(t, e);
|
|
576
576
|
function t(i) {
|
|
577
577
|
var n = e.call(this) || this;
|
|
578
578
|
return n.isStopped = !1, i ? (n.destination = i, sa(i) && i.add(n)) : n.destination = hl, n;
|
|
@@ -638,7 +638,7 @@ var cl = function() {
|
|
|
638
638
|
}
|
|
639
639
|
}, e;
|
|
640
640
|
}(), hi = function(e) {
|
|
641
|
-
|
|
641
|
+
Hi(t, e);
|
|
642
642
|
function t(i, n, r) {
|
|
643
643
|
var s = e.call(this) || this, a;
|
|
644
644
|
if (K(i) || !i)
|
|
@@ -660,7 +660,7 @@ var cl = function() {
|
|
|
660
660
|
return s.destination = new cl(a), s;
|
|
661
661
|
}
|
|
662
662
|
return t;
|
|
663
|
-
}(
|
|
663
|
+
}(Dr);
|
|
664
664
|
function Qi(e) {
|
|
665
665
|
la(e);
|
|
666
666
|
}
|
|
@@ -672,7 +672,7 @@ var hl = {
|
|
|
672
672
|
next: ws,
|
|
673
673
|
error: pl,
|
|
674
674
|
complete: ws
|
|
675
|
-
},
|
|
675
|
+
}, Hr = function() {
|
|
676
676
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
677
677
|
}();
|
|
678
678
|
function ua(e) {
|
|
@@ -723,7 +723,7 @@ var se = function() {
|
|
|
723
723
|
}, e.prototype._subscribe = function(t) {
|
|
724
724
|
var i;
|
|
725
725
|
return (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(t);
|
|
726
|
-
}, e.prototype[
|
|
726
|
+
}, e.prototype[Hr] = function() {
|
|
727
727
|
return this;
|
|
728
728
|
}, e.prototype.pipe = function() {
|
|
729
729
|
for (var t = [], i = 0; i < arguments.length; i++)
|
|
@@ -753,7 +753,7 @@ function fl(e) {
|
|
|
753
753
|
return e && K(e.next) && K(e.error) && K(e.complete);
|
|
754
754
|
}
|
|
755
755
|
function ml(e) {
|
|
756
|
-
return e && e instanceof
|
|
756
|
+
return e && e instanceof Dr || fl(e) && sa(e);
|
|
757
757
|
}
|
|
758
758
|
function gl(e) {
|
|
759
759
|
return K(e?.lift);
|
|
@@ -775,7 +775,7 @@ function rn(e, t, i, n, r) {
|
|
|
775
775
|
return new bl(e, t, i, n, r);
|
|
776
776
|
}
|
|
777
777
|
var bl = function(e) {
|
|
778
|
-
|
|
778
|
+
Hi(t, e);
|
|
779
779
|
function t(i, n, r, s, a, o) {
|
|
780
780
|
var u = e.call(this, i) || this;
|
|
781
781
|
return u.onFinalize = a, u.shouldUnsubscribe = o, u._next = n ? function(c) {
|
|
@@ -809,12 +809,12 @@ var bl = function(e) {
|
|
|
809
809
|
e.prototype.unsubscribe.call(this), !n && ((i = this.onFinalize) === null || i === void 0 || i.call(this));
|
|
810
810
|
}
|
|
811
811
|
}, t;
|
|
812
|
-
}(
|
|
812
|
+
}(Dr), vl = na(function(e) {
|
|
813
813
|
return function() {
|
|
814
814
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
815
815
|
};
|
|
816
816
|
}), sn = function(e) {
|
|
817
|
-
|
|
817
|
+
Hi(t, e);
|
|
818
818
|
function t() {
|
|
819
819
|
var i = e.call(this) || this;
|
|
820
820
|
return i.closed = !1, i.currentObservers = null, i.observers = [], i.isStopped = !1, i.hasError = !1, i.thrownError = null, i;
|
|
@@ -893,7 +893,7 @@ var bl = function(e) {
|
|
|
893
893
|
return new Ss(i, n);
|
|
894
894
|
}, t;
|
|
895
895
|
}(se), Ss = function(e) {
|
|
896
|
-
|
|
896
|
+
Hi(t, e);
|
|
897
897
|
function t(i, n) {
|
|
898
898
|
var r = e.call(this) || this;
|
|
899
899
|
return r.destination = i, r.source = n, r;
|
|
@@ -933,7 +933,7 @@ function ha(e) {
|
|
|
933
933
|
return K(e?.then);
|
|
934
934
|
}
|
|
935
935
|
function da(e) {
|
|
936
|
-
return K(e[
|
|
936
|
+
return K(e[Hr]);
|
|
937
937
|
}
|
|
938
938
|
function fa(e) {
|
|
939
939
|
return Symbol.asyncIterator && K(e?.[Symbol.asyncIterator]);
|
|
@@ -958,13 +958,13 @@ function va(e) {
|
|
|
958
958
|
case 1:
|
|
959
959
|
a.trys.push([1, , 9, 10]), a.label = 2;
|
|
960
960
|
case 2:
|
|
961
|
-
return [4,
|
|
961
|
+
return [4, Dt(i.read())];
|
|
962
962
|
case 3:
|
|
963
|
-
return n = a.sent(), r = n.value, s = n.done, s ? [4,
|
|
963
|
+
return n = a.sent(), r = n.value, s = n.done, s ? [4, Dt(void 0)] : [3, 5];
|
|
964
964
|
case 4:
|
|
965
965
|
return [2, a.sent()];
|
|
966
966
|
case 5:
|
|
967
|
-
return [4,
|
|
967
|
+
return [4, Dt(r)];
|
|
968
968
|
case 6:
|
|
969
969
|
return [4, a.sent()];
|
|
970
970
|
case 7:
|
|
@@ -1003,7 +1003,7 @@ function ut(e) {
|
|
|
1003
1003
|
}
|
|
1004
1004
|
function _l(e) {
|
|
1005
1005
|
return new se(function(t) {
|
|
1006
|
-
var i = e[
|
|
1006
|
+
var i = e[Hr]();
|
|
1007
1007
|
if (K(i.subscribe))
|
|
1008
1008
|
return i.subscribe(t);
|
|
1009
1009
|
throw new TypeError("Provided object does not correctly implement Symbol.observable");
|
|
@@ -1126,13 +1126,13 @@ function $a(e, t) {
|
|
|
1126
1126
|
}, t));
|
|
1127
1127
|
});
|
|
1128
1128
|
}
|
|
1129
|
-
function
|
|
1129
|
+
function Al(e, t) {
|
|
1130
1130
|
return ut(e).pipe($a(t), Ca(t));
|
|
1131
1131
|
}
|
|
1132
|
-
function
|
|
1132
|
+
function Vl(e, t) {
|
|
1133
1133
|
return ut(e).pipe($a(t), Ca(t));
|
|
1134
1134
|
}
|
|
1135
|
-
function
|
|
1135
|
+
function Tl(e, t) {
|
|
1136
1136
|
return new se(function(i) {
|
|
1137
1137
|
var n = 0;
|
|
1138
1138
|
return t.schedule(function() {
|
|
@@ -1140,7 +1140,7 @@ function Ol(e, t) {
|
|
|
1140
1140
|
});
|
|
1141
1141
|
});
|
|
1142
1142
|
}
|
|
1143
|
-
function
|
|
1143
|
+
function Ol(e, t) {
|
|
1144
1144
|
return new se(function(i) {
|
|
1145
1145
|
var n;
|
|
1146
1146
|
return bt(i, t, function() {
|
|
@@ -1173,30 +1173,30 @@ function wa(e, t) {
|
|
|
1173
1173
|
});
|
|
1174
1174
|
});
|
|
1175
1175
|
}
|
|
1176
|
-
function
|
|
1176
|
+
function Dl(e, t) {
|
|
1177
1177
|
return wa(va(e), t);
|
|
1178
1178
|
}
|
|
1179
|
-
function
|
|
1179
|
+
function Hl(e, t) {
|
|
1180
1180
|
if (e != null) {
|
|
1181
1181
|
if (da(e))
|
|
1182
|
-
return
|
|
1182
|
+
return Al(e, t);
|
|
1183
1183
|
if (pa(e))
|
|
1184
|
-
return
|
|
1184
|
+
return Tl(e, t);
|
|
1185
1185
|
if (ha(e))
|
|
1186
|
-
return
|
|
1186
|
+
return Vl(e, t);
|
|
1187
1187
|
if (fa(e))
|
|
1188
1188
|
return wa(e, t);
|
|
1189
1189
|
if (ba(e))
|
|
1190
|
-
return
|
|
1190
|
+
return Ol(e, t);
|
|
1191
1191
|
if (ya(e))
|
|
1192
|
-
return
|
|
1192
|
+
return Dl(e, t);
|
|
1193
1193
|
}
|
|
1194
1194
|
throw ma(e);
|
|
1195
1195
|
}
|
|
1196
1196
|
function Ml(e, t) {
|
|
1197
|
-
return t ?
|
|
1197
|
+
return t ? Hl(e, t) : ut(e);
|
|
1198
1198
|
}
|
|
1199
|
-
function
|
|
1199
|
+
function Ul(e, t) {
|
|
1200
1200
|
return Mi(function(i, n) {
|
|
1201
1201
|
var r = 0;
|
|
1202
1202
|
i.subscribe(rn(n, function(s) {
|
|
@@ -1204,7 +1204,7 @@ function Rl(e, t) {
|
|
|
1204
1204
|
}));
|
|
1205
1205
|
});
|
|
1206
1206
|
}
|
|
1207
|
-
function
|
|
1207
|
+
function Rl(e, t, i, n, r, s, a, o) {
|
|
1208
1208
|
var u = [], c = 0, p = 0, d = !1, v = function() {
|
|
1209
1209
|
d && !u.length && !c && t.complete();
|
|
1210
1210
|
}, b = function(S) {
|
|
@@ -1212,19 +1212,19 @@ function Ul(e, t, i, n, r, s, a, o) {
|
|
|
1212
1212
|
}, y = function(S) {
|
|
1213
1213
|
c++;
|
|
1214
1214
|
var k = !1;
|
|
1215
|
-
ut(i(S, p++)).subscribe(rn(t, function(
|
|
1216
|
-
t.next(
|
|
1215
|
+
ut(i(S, p++)).subscribe(rn(t, function(A) {
|
|
1216
|
+
t.next(A);
|
|
1217
1217
|
}, function() {
|
|
1218
1218
|
k = !0;
|
|
1219
1219
|
}, void 0, function() {
|
|
1220
1220
|
if (k)
|
|
1221
1221
|
try {
|
|
1222
1222
|
c--;
|
|
1223
|
-
for (var
|
|
1223
|
+
for (var A = function() {
|
|
1224
1224
|
var j = u.shift();
|
|
1225
1225
|
a || y(j);
|
|
1226
1226
|
}; u.length && c < n; )
|
|
1227
|
-
|
|
1227
|
+
A();
|
|
1228
1228
|
v();
|
|
1229
1229
|
} catch (j) {
|
|
1230
1230
|
t.error(j);
|
|
@@ -1238,11 +1238,11 @@ function Ul(e, t, i, n, r, s, a, o) {
|
|
|
1238
1238
|
}
|
|
1239
1239
|
function _a(e, t, i) {
|
|
1240
1240
|
return i === void 0 && (i = 1 / 0), K(t) ? _a(function(n, r) {
|
|
1241
|
-
return
|
|
1241
|
+
return Ul(function(s, a) {
|
|
1242
1242
|
return t(n, s, r, a);
|
|
1243
1243
|
})(ut(e(n, r)));
|
|
1244
1244
|
}, i) : (typeof t == "number" && (i = t), Mi(function(n, r) {
|
|
1245
|
-
return
|
|
1245
|
+
return Rl(n, r, e, i);
|
|
1246
1246
|
}));
|
|
1247
1247
|
}
|
|
1248
1248
|
function Nl(e) {
|
|
@@ -1262,11 +1262,11 @@ function Bl(e) {
|
|
|
1262
1262
|
return function(c) {
|
|
1263
1263
|
var p, d, v, b = 0, y = !1, S = !1, k = function() {
|
|
1264
1264
|
d?.unsubscribe(), d = void 0;
|
|
1265
|
-
},
|
|
1265
|
+
}, A = function() {
|
|
1266
1266
|
k(), p = v = void 0, y = S = !1;
|
|
1267
1267
|
}, j = function() {
|
|
1268
1268
|
var q = p;
|
|
1269
|
-
|
|
1269
|
+
A(), q?.unsubscribe();
|
|
1270
1270
|
};
|
|
1271
1271
|
return Mi(function(q, re) {
|
|
1272
1272
|
b++, !S && !y && k();
|
|
@@ -1278,10 +1278,10 @@ function Bl(e) {
|
|
|
1278
1278
|
return he.next(nt);
|
|
1279
1279
|
},
|
|
1280
1280
|
error: function(nt) {
|
|
1281
|
-
S = !0, k(), d = ir(
|
|
1281
|
+
S = !0, k(), d = ir(A, r, nt), he.error(nt);
|
|
1282
1282
|
},
|
|
1283
1283
|
complete: function() {
|
|
1284
|
-
y = !0, k(), d = ir(
|
|
1284
|
+
y = !0, k(), d = ir(A, a), he.complete();
|
|
1285
1285
|
}
|
|
1286
1286
|
}), ut(q).subscribe(p));
|
|
1287
1287
|
})(c);
|
|
@@ -1303,12 +1303,12 @@ function ir(e, t) {
|
|
|
1303
1303
|
return ut(t.apply(void 0, nn([], tn(i)))).subscribe(r);
|
|
1304
1304
|
}
|
|
1305
1305
|
}
|
|
1306
|
-
class
|
|
1306
|
+
class Tt {
|
|
1307
1307
|
constructor() {
|
|
1308
1308
|
this.subjects = {}, this.subscriptions = {}, this.globalEventSubject = new sn(), this.allEvents$ = this.globalEventSubject.asObservable().pipe(Bl());
|
|
1309
1309
|
}
|
|
1310
1310
|
static getInstance() {
|
|
1311
|
-
return
|
|
1311
|
+
return Tt.instance || (Tt.instance = new Tt()), Tt.instance;
|
|
1312
1312
|
}
|
|
1313
1313
|
getSubject(t) {
|
|
1314
1314
|
return this.subjects[t] || (this.subjects[t] = new sn()), this.subjects[t];
|
|
@@ -1330,7 +1330,7 @@ class Ot {
|
|
|
1330
1330
|
this.getSubject(t).next(i), this.globalEventSubject.next({ eventName: t, data: i });
|
|
1331
1331
|
}
|
|
1332
1332
|
}
|
|
1333
|
-
const C =
|
|
1333
|
+
const C = Tt.getInstance(), Sa = typeof window > "u", zl = Sa ? [] : JSON.parse(window.__INITIAL_COMPONENT_STATE__ ?? "[]"), Ea = Sa ? {} : {};
|
|
1334
1334
|
Cs && (Ea[Cs.uuid] = zl);
|
|
1335
1335
|
const L = Et(Ea), Pa = Yt(
|
|
1336
1336
|
"currentComponentId",
|
|
@@ -1339,7 +1339,7 @@ const L = Et(Ea), Pa = Yt(
|
|
|
1339
1339
|
encode: JSON.stringify,
|
|
1340
1340
|
decode: JSON.parse
|
|
1341
1341
|
}
|
|
1342
|
-
), Mr = Z(null), an = Z(null),
|
|
1342
|
+
), Mr = Z(null), an = Z(null), Re = (e) => Xe(
|
|
1343
1343
|
[L],
|
|
1344
1344
|
(t) => Array.from(t[e] ?? [])?.map((n) => ({
|
|
1345
1345
|
...n
|
|
@@ -1350,13 +1350,13 @@ Xe(
|
|
|
1350
1350
|
(e) => Object.values(e).flat().filter((t) => !t.parent)
|
|
1351
1351
|
);
|
|
1352
1352
|
const jl = (e) => Xe(
|
|
1353
|
-
[
|
|
1353
|
+
[Re(e)],
|
|
1354
1354
|
(t) => rl(t)
|
|
1355
1355
|
), Fl = (e) => Xe(
|
|
1356
|
-
[
|
|
1356
|
+
[Re(e), Pa],
|
|
1357
1357
|
(t, i) => t.find((n) => n.uuid === i) || null
|
|
1358
1358
|
), ql = (e, t) => Xe(
|
|
1359
|
-
[
|
|
1359
|
+
[Re(e)],
|
|
1360
1360
|
(i) => i.filter((n) => t.includes(n.uuid))
|
|
1361
1361
|
), on = Et({}), ka = (e, t, i) => {
|
|
1362
1362
|
on.setKey(e, {
|
|
@@ -1396,7 +1396,7 @@ const Gl = (e) => Xe(
|
|
|
1396
1396
|
ke.subscribe((e) => {
|
|
1397
1397
|
});
|
|
1398
1398
|
const Kl = (e, t) => Xe(
|
|
1399
|
-
[
|
|
1399
|
+
[Re(e)],
|
|
1400
1400
|
(i) => {
|
|
1401
1401
|
const n = /* @__PURE__ */ new Map();
|
|
1402
1402
|
i.forEach((o) => n.set(o.uuid, o));
|
|
@@ -1425,16 +1425,16 @@ const Kl = (e, t) => Xe(
|
|
|
1425
1425
|
* Copyright 2019 Google LLC
|
|
1426
1426
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1427
1427
|
*/
|
|
1428
|
-
const en = globalThis,
|
|
1428
|
+
const en = globalThis, Ur = en.ShadowRoot && (en.ShadyCSS === void 0 || en.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Rr = Symbol(), Ps = /* @__PURE__ */ new WeakMap();
|
|
1429
1429
|
let Ia = class {
|
|
1430
1430
|
constructor(t, i, n) {
|
|
1431
|
-
if (this._$cssResult$ = !0, n !==
|
|
1431
|
+
if (this._$cssResult$ = !0, n !== Rr) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
1432
1432
|
this.cssText = t, this.t = i;
|
|
1433
1433
|
}
|
|
1434
1434
|
get styleSheet() {
|
|
1435
1435
|
let t = this.o;
|
|
1436
1436
|
const i = this.t;
|
|
1437
|
-
if (
|
|
1437
|
+
if (Ur && t === void 0) {
|
|
1438
1438
|
const n = i !== void 0 && i.length === 1;
|
|
1439
1439
|
n && (t = Ps.get(i)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), n && Ps.set(i, t));
|
|
1440
1440
|
}
|
|
@@ -1444,20 +1444,20 @@ let Ia = class {
|
|
|
1444
1444
|
return this.cssText;
|
|
1445
1445
|
}
|
|
1446
1446
|
};
|
|
1447
|
-
const Yl = (e) => new Ia(typeof e == "string" ? e : e + "", void 0,
|
|
1447
|
+
const Yl = (e) => new Ia(typeof e == "string" ? e : e + "", void 0, Rr), D = (e, ...t) => {
|
|
1448
1448
|
const i = e.length === 1 ? e[0] : t.reduce((n, r, s) => n + ((a) => {
|
|
1449
1449
|
if (a._$cssResult$ === !0) return a.cssText;
|
|
1450
1450
|
if (typeof a == "number") return a;
|
|
1451
1451
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + a + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
1452
1452
|
})(r) + e[s + 1], e[0]);
|
|
1453
|
-
return new Ia(i, e,
|
|
1453
|
+
return new Ia(i, e, Rr);
|
|
1454
1454
|
}, Jl = (e, t) => {
|
|
1455
|
-
if (
|
|
1455
|
+
if (Ur) e.adoptedStyleSheets = t.map((i) => i instanceof CSSStyleSheet ? i : i.styleSheet);
|
|
1456
1456
|
else for (const i of t) {
|
|
1457
1457
|
const n = document.createElement("style"), r = en.litNonce;
|
|
1458
1458
|
r !== void 0 && n.setAttribute("nonce", r), n.textContent = i.cssText, e.appendChild(n);
|
|
1459
1459
|
}
|
|
1460
|
-
}, ks =
|
|
1460
|
+
}, ks = Ur ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((t) => {
|
|
1461
1461
|
let i = "";
|
|
1462
1462
|
for (const n of t.cssRules) i += n.cssText;
|
|
1463
1463
|
return Yl(i);
|
|
@@ -1467,7 +1467,7 @@ const Yl = (e) => new Ia(typeof e == "string" ? e : e + "", void 0, Ur), H = (e,
|
|
|
1467
1467
|
* Copyright 2017 Google LLC
|
|
1468
1468
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1469
1469
|
*/
|
|
1470
|
-
const { is: Ql, defineProperty: Xl, getOwnPropertyDescriptor: Zl, getOwnPropertyNames: eu, getOwnPropertySymbols: tu, getPrototypeOf: iu } = Object,
|
|
1470
|
+
const { is: Ql, defineProperty: Xl, getOwnPropertyDescriptor: Zl, getOwnPropertyNames: eu, getOwnPropertySymbols: tu, getPrototypeOf: iu } = Object, On = globalThis, Is = On.trustedTypes, nu = Is ? Is.emptyScript : "", ru = On.reactiveElementPolyfillSupport, li = (e, t) => e, ln = { toAttribute(e, t) {
|
|
1471
1471
|
switch (t) {
|
|
1472
1472
|
case Boolean:
|
|
1473
1473
|
e = e ? nu : null;
|
|
@@ -1495,16 +1495,16 @@ const { is: Ql, defineProperty: Xl, getOwnPropertyDescriptor: Zl, getOwnProperty
|
|
|
1495
1495
|
}
|
|
1496
1496
|
}
|
|
1497
1497
|
return i;
|
|
1498
|
-
} }, Nr = (e, t) => !Ql(e, t),
|
|
1499
|
-
Symbol.metadata ??= Symbol("metadata"),
|
|
1500
|
-
class
|
|
1498
|
+
} }, Nr = (e, t) => !Ql(e, t), As = { attribute: !0, type: String, converter: ln, reflect: !1, hasChanged: Nr };
|
|
1499
|
+
Symbol.metadata ??= Symbol("metadata"), On.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
|
|
1500
|
+
class Vt extends HTMLElement {
|
|
1501
1501
|
static addInitializer(t) {
|
|
1502
1502
|
this._$Ei(), (this.l ??= []).push(t);
|
|
1503
1503
|
}
|
|
1504
1504
|
static get observedAttributes() {
|
|
1505
1505
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
1506
1506
|
}
|
|
1507
|
-
static createProperty(t, i =
|
|
1507
|
+
static createProperty(t, i = As) {
|
|
1508
1508
|
if (i.state && (i.attribute = !1), this._$Ei(), this.elementProperties.set(t, i), !i.noAccessor) {
|
|
1509
1509
|
const n = Symbol(), r = this.getPropertyDescriptor(t, n, i);
|
|
1510
1510
|
r !== void 0 && Xl(this.prototype, t, r);
|
|
@@ -1524,7 +1524,7 @@ class At extends HTMLElement {
|
|
|
1524
1524
|
}, configurable: !0, enumerable: !0 };
|
|
1525
1525
|
}
|
|
1526
1526
|
static getPropertyOptions(t) {
|
|
1527
|
-
return this.elementProperties.get(t) ??
|
|
1527
|
+
return this.elementProperties.get(t) ?? As;
|
|
1528
1528
|
}
|
|
1529
1529
|
static _$Ei() {
|
|
1530
1530
|
if (this.hasOwnProperty(li("elementProperties"))) return;
|
|
@@ -1674,18 +1674,18 @@ class At extends HTMLElement {
|
|
|
1674
1674
|
firstUpdated(t) {
|
|
1675
1675
|
}
|
|
1676
1676
|
}
|
|
1677
|
-
|
|
1677
|
+
Vt.elementStyles = [], Vt.shadowRootOptions = { mode: "open" }, Vt[li("elementProperties")] = /* @__PURE__ */ new Map(), Vt[li("finalized")] = /* @__PURE__ */ new Map(), ru?.({ ReactiveElement: Vt }), (On.reactiveElementVersions ??= []).push("2.0.4");
|
|
1678
1678
|
/**
|
|
1679
1679
|
* @license
|
|
1680
1680
|
* Copyright 2017 Google LLC
|
|
1681
1681
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1682
1682
|
*/
|
|
1683
|
-
const Lr = globalThis, un = Lr.trustedTypes,
|
|
1684
|
-
\f\r]`, ri = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
1685
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
1686
|
-
function
|
|
1683
|
+
const Lr = globalThis, un = Lr.trustedTypes, Vs = un ? un.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, Aa = "$lit$", rt = `lit$${Math.random().toFixed(9).slice(2)}$`, Va = "?" + rt, su = `<${Va}>`, yt = document, di = () => yt.createComment(""), fi = (e) => e === null || typeof e != "object" && typeof e != "function", Br = Array.isArray, au = (e) => Br(e) || typeof e?.[Symbol.iterator] == "function", nr = `[
|
|
1684
|
+
\f\r]`, ri = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Ts = /-->/g, Os = />/g, ht = RegExp(`>|${nr}(?:([^\\s"'>=/]+)(${nr}*=${nr}*(?:[^
|
|
1685
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Ds = /'/g, Hs = /"/g, Ta = /^(?:script|style|textarea|title)$/i, ou = (e) => (t, ...i) => ({ _$litType$: e, strings: t, values: i }), h = ou(1), Ge = Symbol.for("lit-noChange"), m = Symbol.for("lit-nothing"), Ms = /* @__PURE__ */ new WeakMap(), ft = yt.createTreeWalker(yt, 129);
|
|
1686
|
+
function Oa(e, t) {
|
|
1687
1687
|
if (!Br(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
1688
|
-
return
|
|
1688
|
+
return Vs !== void 0 ? Vs.createHTML(t) : t;
|
|
1689
1689
|
}
|
|
1690
1690
|
const lu = (e, t) => {
|
|
1691
1691
|
const i = e.length - 1, n = [];
|
|
@@ -1693,11 +1693,11 @@ const lu = (e, t) => {
|
|
|
1693
1693
|
for (let o = 0; o < i; o++) {
|
|
1694
1694
|
const u = e[o];
|
|
1695
1695
|
let c, p, d = -1, v = 0;
|
|
1696
|
-
for (; v < u.length && (a.lastIndex = v, p = a.exec(u), p !== null); ) v = a.lastIndex, a === ri ? p[1] === "!--" ? a =
|
|
1696
|
+
for (; v < u.length && (a.lastIndex = v, p = a.exec(u), p !== null); ) v = a.lastIndex, a === ri ? p[1] === "!--" ? a = Ts : p[1] !== void 0 ? a = Os : p[2] !== void 0 ? (Ta.test(p[2]) && (r = RegExp("</" + p[2], "g")), a = ht) : p[3] !== void 0 && (a = ht) : a === ht ? p[0] === ">" ? (a = r ?? ri, d = -1) : p[1] === void 0 ? d = -2 : (d = a.lastIndex - p[2].length, c = p[1], a = p[3] === void 0 ? ht : p[3] === '"' ? Hs : Ds) : a === Hs || a === Ds ? a = ht : a === Ts || a === Os ? a = ri : (a = ht, r = void 0);
|
|
1697
1697
|
const b = a === ht && e[o + 1].startsWith("/>") ? " " : "";
|
|
1698
|
-
s += a === ri ? u + su : d >= 0 ? (n.push(c), u.slice(0, d) +
|
|
1698
|
+
s += a === ri ? u + su : d >= 0 ? (n.push(c), u.slice(0, d) + Aa + u.slice(d) + rt + b) : u + rt + (d === -2 ? o : b);
|
|
1699
1699
|
}
|
|
1700
|
-
return [
|
|
1700
|
+
return [Oa(e, s + (e[i] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), n];
|
|
1701
1701
|
};
|
|
1702
1702
|
class mi {
|
|
1703
1703
|
constructor({ strings: t, _$litType$: i }, n) {
|
|
@@ -1711,11 +1711,11 @@ class mi {
|
|
|
1711
1711
|
}
|
|
1712
1712
|
for (; (r = ft.nextNode()) !== null && u.length < o; ) {
|
|
1713
1713
|
if (r.nodeType === 1) {
|
|
1714
|
-
if (r.hasAttributes()) for (const d of r.getAttributeNames()) if (d.endsWith(
|
|
1714
|
+
if (r.hasAttributes()) for (const d of r.getAttributeNames()) if (d.endsWith(Aa)) {
|
|
1715
1715
|
const v = p[a++], b = r.getAttribute(d).split(rt), y = /([.?@])?(.*)/.exec(v);
|
|
1716
|
-
u.push({ type: 1, index: s, name: y[2], strings: b, ctor: y[1] === "." ? cu : y[1] === "?" ? pu : y[1] === "@" ? hu :
|
|
1716
|
+
u.push({ type: 1, index: s, name: y[2], strings: b, ctor: y[1] === "." ? cu : y[1] === "?" ? pu : y[1] === "@" ? hu : Dn }), r.removeAttribute(d);
|
|
1717
1717
|
} else d.startsWith(rt) && (u.push({ type: 6, index: s }), r.removeAttribute(d));
|
|
1718
|
-
if (
|
|
1718
|
+
if (Ta.test(r.tagName)) {
|
|
1719
1719
|
const d = r.textContent.split(rt), v = d.length - 1;
|
|
1720
1720
|
if (v > 0) {
|
|
1721
1721
|
r.textContent = un ? un.emptyScript : "";
|
|
@@ -1723,7 +1723,7 @@ class mi {
|
|
|
1723
1723
|
r.append(d[v], di());
|
|
1724
1724
|
}
|
|
1725
1725
|
}
|
|
1726
|
-
} else if (r.nodeType === 8) if (r.data ===
|
|
1726
|
+
} else if (r.nodeType === 8) if (r.data === Va) u.push({ type: 2, index: s });
|
|
1727
1727
|
else {
|
|
1728
1728
|
let d = -1;
|
|
1729
1729
|
for (; (d = r.data.indexOf(rt, d + 1)) !== -1; ) u.push({ type: 7, index: s }), d += rt.length - 1;
|
|
@@ -1736,11 +1736,11 @@ class mi {
|
|
|
1736
1736
|
return n.innerHTML = t, n;
|
|
1737
1737
|
}
|
|
1738
1738
|
}
|
|
1739
|
-
function
|
|
1739
|
+
function Ut(e, t, i = e, n) {
|
|
1740
1740
|
if (t === Ge) return t;
|
|
1741
1741
|
let r = n !== void 0 ? i.o?.[n] : i.l;
|
|
1742
1742
|
const s = fi(t) ? void 0 : t._$litDirective$;
|
|
1743
|
-
return r?.constructor !== s && (r?._$AO?.(!1), s === void 0 ? r = void 0 : (r = new s(e), r._$AT(e, i, n)), n !== void 0 ? (i.o ??= [])[n] = r : i.l = r), r !== void 0 && (t =
|
|
1743
|
+
return r?.constructor !== s && (r?._$AO?.(!1), s === void 0 ? r = void 0 : (r = new s(e), r._$AT(e, i, n)), n !== void 0 ? (i.o ??= [])[n] = r : i.l = r), r !== void 0 && (t = Ut(e, r._$AS(e, t.values), r, n)), t;
|
|
1744
1744
|
}
|
|
1745
1745
|
class uu {
|
|
1746
1746
|
constructor(t, i) {
|
|
@@ -1759,7 +1759,7 @@ class uu {
|
|
|
1759
1759
|
for (; u !== void 0; ) {
|
|
1760
1760
|
if (a === u.index) {
|
|
1761
1761
|
let c;
|
|
1762
|
-
u.type === 2 ? c = new
|
|
1762
|
+
u.type === 2 ? c = new Ui(s, s.nextSibling, this, t) : u.type === 1 ? c = new u.ctor(s, u.name, u.strings, this, t) : u.type === 6 && (c = new du(s, this, t)), this._$AV.push(c), u = n[++o];
|
|
1763
1763
|
}
|
|
1764
1764
|
a !== u?.index && (s = ft.nextNode(), a++);
|
|
1765
1765
|
}
|
|
@@ -1770,7 +1770,7 @@ class uu {
|
|
|
1770
1770
|
for (const n of this._$AV) n !== void 0 && (n.strings !== void 0 ? (n._$AI(t, n, i), i += n.strings.length - 2) : n._$AI(t[i])), i++;
|
|
1771
1771
|
}
|
|
1772
1772
|
}
|
|
1773
|
-
class
|
|
1773
|
+
class Ui {
|
|
1774
1774
|
get _$AU() {
|
|
1775
1775
|
return this._$AM?._$AU ?? this.v;
|
|
1776
1776
|
}
|
|
@@ -1789,7 +1789,7 @@ class Ri {
|
|
|
1789
1789
|
return this._$AB;
|
|
1790
1790
|
}
|
|
1791
1791
|
_$AI(t, i = this) {
|
|
1792
|
-
t =
|
|
1792
|
+
t = Ut(this, t, i), fi(t) ? t === m || t == null || t === "" ? (this._$AH !== m && this._$AR(), this._$AH = m) : t !== this._$AH && t !== Ge && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : au(t) ? this.k(t) : this._(t);
|
|
1793
1793
|
}
|
|
1794
1794
|
O(t) {
|
|
1795
1795
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -1801,7 +1801,7 @@ class Ri {
|
|
|
1801
1801
|
this._$AH !== m && fi(this._$AH) ? this._$AA.nextSibling.data = t : this.T(yt.createTextNode(t)), this._$AH = t;
|
|
1802
1802
|
}
|
|
1803
1803
|
$(t) {
|
|
1804
|
-
const { values: i, _$litType$: n } = t, r = typeof n == "number" ? this._$AC(t) : (n.el === void 0 && (n.el = mi.createElement(
|
|
1804
|
+
const { values: i, _$litType$: n } = t, r = typeof n == "number" ? this._$AC(t) : (n.el === void 0 && (n.el = mi.createElement(Oa(n.h, n.h[0]), this.options)), n);
|
|
1805
1805
|
if (this._$AH?._$AD === r) this._$AH.p(i);
|
|
1806
1806
|
else {
|
|
1807
1807
|
const s = new uu(r, this), a = s.u(this.options);
|
|
@@ -1816,7 +1816,7 @@ class Ri {
|
|
|
1816
1816
|
Br(this._$AH) || (this._$AH = [], this._$AR());
|
|
1817
1817
|
const i = this._$AH;
|
|
1818
1818
|
let n, r = 0;
|
|
1819
|
-
for (const s of t) r === i.length ? i.push(n = new
|
|
1819
|
+
for (const s of t) r === i.length ? i.push(n = new Ui(this.O(di()), this.O(di()), this, this.options)) : n = i[r], n._$AI(s), r++;
|
|
1820
1820
|
r < i.length && (this._$AR(n && n._$AB.nextSibling, r), i.length = r);
|
|
1821
1821
|
}
|
|
1822
1822
|
_$AR(t = this._$AA.nextSibling, i) {
|
|
@@ -1829,7 +1829,7 @@ class Ri {
|
|
|
1829
1829
|
this._$AM === void 0 && (this.v = t, this._$AP?.(t));
|
|
1830
1830
|
}
|
|
1831
1831
|
}
|
|
1832
|
-
class
|
|
1832
|
+
class Dn {
|
|
1833
1833
|
get tagName() {
|
|
1834
1834
|
return this.element.tagName;
|
|
1835
1835
|
}
|
|
@@ -1842,11 +1842,11 @@ class Hn {
|
|
|
1842
1842
|
_$AI(t, i = this, n, r) {
|
|
1843
1843
|
const s = this.strings;
|
|
1844
1844
|
let a = !1;
|
|
1845
|
-
if (s === void 0) t =
|
|
1845
|
+
if (s === void 0) t = Ut(this, t, i, 0), a = !fi(t) || t !== this._$AH && t !== Ge, a && (this._$AH = t);
|
|
1846
1846
|
else {
|
|
1847
1847
|
const o = t;
|
|
1848
1848
|
let u, c;
|
|
1849
|
-
for (t = s[0], u = 0; u < s.length - 1; u++) c =
|
|
1849
|
+
for (t = s[0], u = 0; u < s.length - 1; u++) c = Ut(this, o[n + u], i, u), c === Ge && (c = this._$AH[u]), a ||= !fi(c) || c !== this._$AH[u], c === m ? t = m : t !== m && (t += (c ?? "") + s[u + 1]), this._$AH[u] = c;
|
|
1850
1850
|
}
|
|
1851
1851
|
a && !r && this.j(t);
|
|
1852
1852
|
}
|
|
@@ -1854,7 +1854,7 @@ class Hn {
|
|
|
1854
1854
|
t === m ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
1855
1855
|
}
|
|
1856
1856
|
}
|
|
1857
|
-
class cu extends
|
|
1857
|
+
class cu extends Dn {
|
|
1858
1858
|
constructor() {
|
|
1859
1859
|
super(...arguments), this.type = 3;
|
|
1860
1860
|
}
|
|
@@ -1862,7 +1862,7 @@ class cu extends Hn {
|
|
|
1862
1862
|
this.element[this.name] = t === m ? void 0 : t;
|
|
1863
1863
|
}
|
|
1864
1864
|
}
|
|
1865
|
-
class pu extends
|
|
1865
|
+
class pu extends Dn {
|
|
1866
1866
|
constructor() {
|
|
1867
1867
|
super(...arguments), this.type = 4;
|
|
1868
1868
|
}
|
|
@@ -1870,12 +1870,12 @@ class pu extends Hn {
|
|
|
1870
1870
|
this.element.toggleAttribute(this.name, !!t && t !== m);
|
|
1871
1871
|
}
|
|
1872
1872
|
}
|
|
1873
|
-
class hu extends
|
|
1873
|
+
class hu extends Dn {
|
|
1874
1874
|
constructor(t, i, n, r, s) {
|
|
1875
1875
|
super(t, i, n, r, s), this.type = 5;
|
|
1876
1876
|
}
|
|
1877
1877
|
_$AI(t, i = this) {
|
|
1878
|
-
if ((t =
|
|
1878
|
+
if ((t = Ut(this, t, i, 0) ?? m) === Ge) return;
|
|
1879
1879
|
const n = this._$AH, r = t === m && n !== m || t.capture !== n.capture || t.once !== n.once || t.passive !== n.passive, s = t !== m && (n === m || r);
|
|
1880
1880
|
r && this.element.removeEventListener(this.name, this, n), s && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
1881
1881
|
}
|
|
@@ -1891,17 +1891,17 @@ class du {
|
|
|
1891
1891
|
return this._$AM._$AU;
|
|
1892
1892
|
}
|
|
1893
1893
|
_$AI(t) {
|
|
1894
|
-
|
|
1894
|
+
Ut(this, t);
|
|
1895
1895
|
}
|
|
1896
1896
|
}
|
|
1897
1897
|
const fu = Lr.litHtmlPolyfillSupport;
|
|
1898
|
-
fu?.(mi,
|
|
1898
|
+
fu?.(mi, Ui), (Lr.litHtmlVersions ??= []).push("3.2.0");
|
|
1899
1899
|
const mu = (e, t, i) => {
|
|
1900
1900
|
const n = i?.renderBefore ?? t;
|
|
1901
1901
|
let r = n._$litPart$;
|
|
1902
1902
|
if (r === void 0) {
|
|
1903
1903
|
const s = i?.renderBefore ?? null;
|
|
1904
|
-
n._$litPart$ = r = new
|
|
1904
|
+
n._$litPart$ = r = new Ui(t.insertBefore(di(), s), s, void 0, i ?? {});
|
|
1905
1905
|
}
|
|
1906
1906
|
return r._$AI(e), r;
|
|
1907
1907
|
};
|
|
@@ -1910,7 +1910,7 @@ const mu = (e, t, i) => {
|
|
|
1910
1910
|
* Copyright 2017 Google LLC
|
|
1911
1911
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1912
1912
|
*/
|
|
1913
|
-
class ce extends
|
|
1913
|
+
class ce extends Vt {
|
|
1914
1914
|
constructor() {
|
|
1915
1915
|
super(...arguments), this.renderOptions = { host: this }, this.o = void 0;
|
|
1916
1916
|
}
|
|
@@ -1941,7 +1941,7 @@ gu?.({ LitElement: ce });
|
|
|
1941
1941
|
* Copyright 2017 Google LLC
|
|
1942
1942
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1943
1943
|
*/
|
|
1944
|
-
const
|
|
1944
|
+
const V = (e) => (t, i) => {
|
|
1945
1945
|
i !== void 0 ? i.addInitializer(() => {
|
|
1946
1946
|
customElements.define(e, t);
|
|
1947
1947
|
}) : customElements.define(e, t);
|
|
@@ -1987,7 +1987,7 @@ function f(e) {
|
|
|
1987
1987
|
return g({ ...e, state: !0, attribute: !1 });
|
|
1988
1988
|
}
|
|
1989
1989
|
var w = /* @__PURE__ */ ((e) => (e.TextLabel = "text_label", e.Tabs = "tabs", e.TextInput = "text_input", e.Menu = "menu", e.Button = "button_input", e.Collection = "Collection", e.Container = "vertical-container-block", e.ColorPicker = "color_picker", e.NumberInput = "number_input", e.IconButton = "icon_button", e.Select = "select", e.ShadowBox = "shadow_box", e.BorderRadius = "border_radius", e.BoxModel = "box_model", e.Event = "event", e.Table = "Table", e.Checkbox = "checkbox", e.DatePicker = "Datepicker", e.Icon = "Icon", e.Image = "Image", e.MicroApp = "MicroApp", e.RadioButton = "RadioButton", e.IconPicker = "IconPicker", e.RefComponent = "RefComponent", e.Code = "code-block", e.RichText = "rich-text", e.EmbedURL = "embed-url", e.Link = "link", e.Document = "document", e.Video = "video", e.FileUpload = "file-upload", e.RichTextEditor = "rich-text-editor", e.UsersDropdown = "UsersDropdown", e.InsertDropdown = "InsertDropdown", e.Collapse = "Collapse", e.Handlers = "Handlers", e.AI = "AI", e.Divider = "Divider", e.ExportImport = "ExportImport", e.InvokeFunction = "InvokeFunction", e.Dropdown = "dropdown", e.Textarea = "Textarea", e.Badge = "Badge", e.Card = "Card", e.Tag = "Tag", e.Slider = "Slider", e.Alert = "Alert", e.Modal = "Modal", e.Toast = "Toast", e.Panel = "Panel", e))(w || {});
|
|
1990
|
-
const yu = (e, t) => h`<select-block .isViewMode=${t} .parentcomponent=${e.parent} .item=${e.item} .component=${e.component}></select-block>`, xu = (e, t) => h`<icon-button-block .isViewMode=${t} .parentcomponent=${e.parent} .item=${e.item} .component=${e.component}></icon-button-block>`, Cu = (e, t) => h`<color-picker-block .isViewMode=${t} .parentcomponent=${e.parent} .item=${e.item} .component=${e.component}></color-picker-block>`, $u = (e, t) => h`<number-input-block .isViewMode=${t} .parentcomponent=${e.parent} .item=${e.item} .component=${e.component}></number-input-block>`, wu = (e, t) => h`<attribute-box-shadow-value .isViewMode=${t} .parentcomponent=${e.parent} .item=${e.item} .component=${e.component}></attribute-box-shadow-value>`, _u = (e, t) => h`<attribute-border-value .isViewMode=${t} .parentcomponent=${e.parent} .item=${e.item} .component=${e.component}></attribute-border-value>`, Su = (e, t) => h`<box-model-display .isViewMode=${t} .parentcomponent=${e.parent} .item=${e.item} .component=${e.component}></box-model-display>`, Eu = (e, t) => h`<parameter-event-handler .isViewMode=${t} .parentcomponent=${e.parent} .item=${e.item} .component=${e.component}></parameter-event-handler>`, Pu = (e, t) => h`<table-block .isViewMode=${t} .parentcomponent=${e.parent} .item=${e.item} .component=${e.component}></table-block>`, ku = (e, t) => h`<text-input-block .isViewMode=${t} .parentcomponent=${e.parent} .item=${e.item} .component=${e.component}></text-input-block>`, Iu = (e, t) => h`<text-label-block .isViewMode=${t} .parentcomponent=${e.parent} .item=${e.item} .component=${e.component}></text-label-block>`,
|
|
1990
|
+
const yu = (e, t) => h`<select-block .isViewMode=${t} .parentcomponent=${e.parent} .item=${e.item} .component=${e.component}></select-block>`, xu = (e, t) => h`<icon-button-block .isViewMode=${t} .parentcomponent=${e.parent} .item=${e.item} .component=${e.component}></icon-button-block>`, Cu = (e, t) => h`<color-picker-block .isViewMode=${t} .parentcomponent=${e.parent} .item=${e.item} .component=${e.component}></color-picker-block>`, $u = (e, t) => h`<number-input-block .isViewMode=${t} .parentcomponent=${e.parent} .item=${e.item} .component=${e.component}></number-input-block>`, wu = (e, t) => h`<attribute-box-shadow-value .isViewMode=${t} .parentcomponent=${e.parent} .item=${e.item} .component=${e.component}></attribute-box-shadow-value>`, _u = (e, t) => h`<attribute-border-value .isViewMode=${t} .parentcomponent=${e.parent} .item=${e.item} .component=${e.component}></attribute-border-value>`, Su = (e, t) => h`<box-model-display .isViewMode=${t} .parentcomponent=${e.parent} .item=${e.item} .component=${e.component}></box-model-display>`, Eu = (e, t) => h`<parameter-event-handler .isViewMode=${t} .parentcomponent=${e.parent} .item=${e.item} .component=${e.component}></parameter-event-handler>`, Pu = (e, t) => h`<table-block .isViewMode=${t} .parentcomponent=${e.parent} .item=${e.item} .component=${e.component}></table-block>`, ku = (e, t) => h`<text-input-block .isViewMode=${t} .parentcomponent=${e.parent} .item=${e.item} .component=${e.component}></text-input-block>`, Iu = (e, t) => h`<text-label-block .isViewMode=${t} .parentcomponent=${e.parent} .item=${e.item} .component=${e.component}></text-label-block>`, Au = (e, t) => h`<button-block .isViewMode=${t} .parentcomponent=${e.parent} .item=${e.item} .component=${e.component}></button-block>`, Vu = (e, t) => h`<tabs-block .isViewMode=${t} .parentcomponent=${e.parent} .item=${e.item} .component=${e.component}></tabs-block>`, Tu = (e, t) => h`<menu-block .isViewMode=${t} .parentcomponent=${e.parent} .item=${e.item} .component=${e.component}></menu-block>`, Ou = (e, t) => h`<vertical-container-block .isViewMode=${t} .parentcomponent=${e.parent} .item=${e.item} .component=${e.component}></vertical-container-block>`, Du = (e, t) => h`<collection-viewer .isViewMode=${t} .parentcomponent=${e.parent} .component=${e.component}></collection-viewer>`, Hu = (e, t) => h`<checkbox-block .isViewMode=${t} .parentcomponent=${e.parent} .item=${e.item} .component=${e.component}></checkbox-block>`, Mu = (e, t) => h`<date-picker-block .isViewMode=${t} .parentcomponent=${e.parent} .item=${e.item} .component=${e.component}></date-picker-block>`, Uu = (e, t) => h`<icon-block .isViewMode=${t} .parentcomponent=${e.parent} .item=${e.item} .component=${e.component}></icon-block>`, Ru = (e, t) => h`<image-block .isViewMode=${t} .parentcomponent=${e.parent} .item=${e.item} .component=${e.component}></image-block>`, Nu = (e, t) => h`<radio-button-block .isViewMode=${t} .parentcomponent=${e.parent} .item=${e.item} .component=${e.component}></radio-button-block>`, Lu = (e, t) => h`<ai-chat-block .isViewMode=${t} .parentcomponent=${e.parent} .item=${e.item} .component=${e.component}></ai-chat-block>`, Bu = (e, t) => h`<icon-picker-block .isViewMode=${t} .parentcomponent=${e.parent} .item=${e.item} .component=${e.component}></icon-picker-block>`, zu = (e, t) => h`<users-dropdown-block .isViewMode=${t} .parentcomponent=${e.parent} .item=${e.item} .component=${e.component}></users-dropdown-block>`, ju = (e, t) => h`<insert-dropdown-block .isViewMode=${t} .parentcomponent=${e.parent} .item=${e.item} .component=${e.component}></insert-dropdown-block>`, Fu = (e, t) => h`<micro-app-block .isViewMode=${t} .parentcomponent=${e.parent} .item=${e.item} .component=${e.component}></micro-app-block>`, qu = (e, t) => h`<collapse-block .isViewMode=${t} .parentcomponent=${e.parent} .item=${e.item} .component=${e.component}></collapse-block>`, Gu = (e, t) => h`<divider-block .isViewMode=${t} .parentcomponent=${e.parent} .item=${e.item} .component=${e.component}></divider-block>`, Wu = (e, t) => h`<handler-block .isViewMode=${t} .parentcomponent=${e.parent} .item=${e.item} .component=${e.component}></handler-block>`, Ku = (e, t) => h`<dropdown-block .isViewMode=${t} .parentcomponent=${e.parent} .item=${e.item} .component=${e.component}></dropdown-block>`, Yu = (e, t) => h`<ref-component-container-block .isViewMode=${t} .parentcomponent=${e.parent} .item=${e.item} .component=${e.component}></ref-component-container-block>`, Ju = (e, t) => h`<code-block .isViewMode=${t} .parentcomponent=${e.parent} .item=${e.item} .component=${e.component}></code-block>`, Qu = (e, t) => h`<rich-text-block .isViewMode=${t} .parentcomponent=${e.parent} .item=${e.item} .component=${e.component}></rich-text-block>`, Xu = (e, t) => h`<embed-url-block .isViewMode=${t} .parentcomponent=${e.parent} .item=${e.item} .component=${e.component}></embed-url-block>`, Zu = (e, t) => h`<link-block .isViewMode=${t} .parentcomponent=${e.parent} .item=${e.item} .component=${e.component}></link-block>`, ec = (e, t) => h`<file-upload-block .isViewMode=${t} .parentcomponent=${e.parent} .item=${e.item} .component=${e.component}></file-upload-block>`, tc = (e, t) => h`<video-block .isViewMode=${t} .parentcomponent=${e.parent} .item=${e.item} .component=${e.component}></video-block>`, ic = (e, t) => h`<document-block .isViewMode=${t} .parentcomponent=${e.parent} .item=${e.item} .component=${e.component}></document-block>`, nc = (e, t) => h`<textarea-block .isViewMode=${t} .parentcomponent=${e.parent} .item=${e.item} .component=${e.component}></textarea-block>`, rc = (e, t) => h`<badge-block .isViewMode=${t} .parentcomponent=${e.parent} .item=${e.item} .component=${e.component}></badge-block>`, sc = (e, t) => h`<card-block .isViewMode=${t} .parentcomponent=${e.parent} .item=${e.item} .component=${e.component}></card-block>`, ac = (e, t) => h`<tag-block .isViewMode=${t} .parentcomponent=${e.parent} .item=${e.item} .component=${e.component}></tag-block>`, oc = (e, t) => h`<slider-block .isViewMode=${t} .parentcomponent=${e.parent} .item=${e.item} .component=${e.component}></slider-block>`, lc = (e, t) => h`<panel-block .isViewMode=${t} .parentcomponent=${e.parent} .item=${e.item} .component=${e.component}></panel-block>`, uc = (e, t) => h`
|
|
1991
1991
|
<invoke-function-block .isViewMode=${t} .parentcomponent=${e.parent} .item=${e.item} .component=${e.component}></invoke-function-block>
|
|
1992
1992
|
`, cc = (e, t) => h`
|
|
1993
1993
|
<export-import-block .isViewMode=${t} .parentcomponent=${e.parent} .item=${e.item} .component=${e.component}></export-import-block>
|
|
@@ -2019,27 +2019,27 @@ function hc(e, t, i) {
|
|
|
2019
2019
|
case w.TextLabel:
|
|
2020
2020
|
return Iu(t, i);
|
|
2021
2021
|
case w.Button:
|
|
2022
|
-
return Vu(t, i);
|
|
2023
|
-
case w.Tabs:
|
|
2024
2022
|
return Au(t, i);
|
|
2023
|
+
case w.Tabs:
|
|
2024
|
+
return Vu(t, i);
|
|
2025
2025
|
case w.Menu:
|
|
2026
|
-
return
|
|
2026
|
+
return Tu(t, i);
|
|
2027
2027
|
case w.Table:
|
|
2028
2028
|
return Pu(t, i);
|
|
2029
2029
|
case w.Container:
|
|
2030
|
-
return
|
|
2030
|
+
return Ou(t, i);
|
|
2031
2031
|
case w.Collection:
|
|
2032
|
-
return Hu(t, i);
|
|
2033
|
-
case w.Checkbox:
|
|
2034
2032
|
return Du(t, i);
|
|
2033
|
+
case w.Checkbox:
|
|
2034
|
+
return Hu(t, i);
|
|
2035
2035
|
case w.DatePicker:
|
|
2036
2036
|
return Mu(t, i);
|
|
2037
2037
|
case w.Divider:
|
|
2038
2038
|
return Gu(t, i);
|
|
2039
2039
|
case w.Icon:
|
|
2040
|
-
return Ru(t, i);
|
|
2041
|
-
case w.Image:
|
|
2042
2040
|
return Uu(t, i);
|
|
2041
|
+
case w.Image:
|
|
2042
|
+
return Ru(t, i);
|
|
2043
2043
|
case w.RadioButton:
|
|
2044
2044
|
return Nu(t, i);
|
|
2045
2045
|
case w.AI:
|
|
@@ -2166,7 +2166,7 @@ const gi = Z({
|
|
|
2166
2166
|
function fc(e) {
|
|
2167
2167
|
return e === null ? "null" : Array.isArray(e) ? "array" : typeof e;
|
|
2168
2168
|
}
|
|
2169
|
-
function
|
|
2169
|
+
function Ue(e, t, i) {
|
|
2170
2170
|
const n = fc(i), r = gi.get();
|
|
2171
2171
|
r[e]?.[t]?.value;
|
|
2172
2172
|
const s = {
|
|
@@ -2192,7 +2192,7 @@ Yt("persistentContext", {
|
|
|
2192
2192
|
encode: JSON.stringify,
|
|
2193
2193
|
decode: JSON.parse
|
|
2194
2194
|
});
|
|
2195
|
-
function
|
|
2195
|
+
function Da(e) {
|
|
2196
2196
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
2197
2197
|
}
|
|
2198
2198
|
var mc = function e(t, i) {
|
|
@@ -2220,13 +2220,13 @@ var mc = function e(t, i) {
|
|
|
2220
2220
|
}
|
|
2221
2221
|
return t !== t && i !== i;
|
|
2222
2222
|
};
|
|
2223
|
-
const vt = /* @__PURE__ */
|
|
2223
|
+
const vt = /* @__PURE__ */ Da(mc), Hn = typeof window > "u", gr = "__INITIAL_APPLICATION_STATE__", gc = "__INITIAL_CURRENT_APPLICATION_STATE__", bc = [
|
|
2224
2224
|
{ uuid: "1", name: "app1" },
|
|
2225
2225
|
{ uuid: "2", name: "app2" },
|
|
2226
2226
|
{ uuid: "landing", name: "landing" }
|
|
2227
2227
|
];
|
|
2228
|
-
!
|
|
2229
|
-
const vc =
|
|
2228
|
+
!Hn && !window[gr] && (window[gr] = JSON.stringify([]));
|
|
2229
|
+
const vc = Hn ? [] : JSON.parse(window[gr] || "[]"), yc = Hn ? null : JSON.parse(window[gc] || "null"), cn = Z([...vc, ...bc]), de = Z(yc);
|
|
2230
2230
|
Et({});
|
|
2231
2231
|
const zr = Z(!1), xc = Z(!1), st = Z({
|
|
2232
2232
|
currentTab: {
|
|
@@ -2252,11 +2252,11 @@ const zr = Z(!1), xc = Z(!1), st = Z({
|
|
|
2252
2252
|
// }
|
|
2253
2253
|
]
|
|
2254
2254
|
});
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
if (
|
|
2255
|
+
Or(zr);
|
|
2256
|
+
Tn(cn, () => {
|
|
2257
|
+
if (Hn) return;
|
|
2258
2258
|
const e = de.get();
|
|
2259
|
-
e &&
|
|
2259
|
+
e && Ue("global", "currentEditingApplication", e);
|
|
2260
2260
|
});
|
|
2261
2261
|
class Cc {
|
|
2262
2262
|
constructor() {
|
|
@@ -2298,7 +2298,7 @@ class Cc {
|
|
|
2298
2298
|
if (qe) return;
|
|
2299
2299
|
const t = window.innerWidth;
|
|
2300
2300
|
let i = {};
|
|
2301
|
-
return t <= 500 ? i =
|
|
2301
|
+
return t <= 500 ? i = Ht("mobile", "430px", "767px", !0) : t <= 1024 ? i = Ht("tablet", "1024px", "768px", !0) : i = Ht("desktop", "1366px", void 0, !1), i.platform !== this.currentPlatform.platform && (this.currentPlatform = { ...i }, this.ExecuteInstance.VarsProxy.currentPlatform = { ...this.currentPlatform }, C.emit("component:refresh")), i;
|
|
2302
2302
|
}
|
|
2303
2303
|
static createPlatform(t, i, n, r = !1) {
|
|
2304
2304
|
return { platform: t, width: i, height: n, isMobile: r };
|
|
@@ -2382,15 +2382,15 @@ class Cc {
|
|
|
2382
2382
|
C.emit("kernel:log", t);
|
|
2383
2383
|
}
|
|
2384
2384
|
}
|
|
2385
|
-
const N = new Cc(),
|
|
2385
|
+
const N = new Cc(), Ht = (e, t, i, n = !1) => ({ platform: e, width: t, height: i, isMobile: n }), br = () => {
|
|
2386
2386
|
if (qe) return;
|
|
2387
2387
|
const e = window.innerWidth;
|
|
2388
2388
|
let t = {};
|
|
2389
|
-
return e <= 500 ? t =
|
|
2389
|
+
return e <= 500 ? t = Ht("mobile", "430px", "932px", !0) : e <= 1024 ? t = Ht("tablet", "1024px", "768px", !0) : t = Ht("desktop", "1366px", void 0, !1), t;
|
|
2390
2390
|
};
|
|
2391
|
-
var
|
|
2392
|
-
Object.defineProperty(
|
|
2393
|
-
|
|
2391
|
+
var Ha = {}, vi = {}, Te = {};
|
|
2392
|
+
Object.defineProperty(Te, "__esModule", { value: !0 });
|
|
2393
|
+
Te.BaseClient = void 0;
|
|
2394
2394
|
class ie {
|
|
2395
2395
|
/**
|
|
2396
2396
|
* Configure the Database client
|
|
@@ -2455,7 +2455,7 @@ class ie {
|
|
|
2455
2455
|
return ie.request("/execute", "POST", { operation: "GET_INFO" });
|
|
2456
2456
|
}
|
|
2457
2457
|
}
|
|
2458
|
-
|
|
2458
|
+
Te.BaseClient = ie;
|
|
2459
2459
|
ie.baseUrl = "/api/v1/database";
|
|
2460
2460
|
ie.options = {
|
|
2461
2461
|
timeout: 3e4,
|
|
@@ -2463,10 +2463,10 @@ ie.options = {
|
|
|
2463
2463
|
"Content-Type": "application/json"
|
|
2464
2464
|
}
|
|
2465
2465
|
};
|
|
2466
|
-
var
|
|
2467
|
-
Object.defineProperty(
|
|
2468
|
-
|
|
2469
|
-
const $c =
|
|
2466
|
+
var Ri = {};
|
|
2467
|
+
Object.defineProperty(Ri, "__esModule", { value: !0 });
|
|
2468
|
+
Ri.TableManager = void 0;
|
|
2469
|
+
const $c = Te;
|
|
2470
2470
|
class wc extends $c.BaseClient {
|
|
2471
2471
|
/**
|
|
2472
2472
|
* Create a new table with specified schema
|
|
@@ -2525,11 +2525,11 @@ class wc extends $c.BaseClient {
|
|
|
2525
2525
|
});
|
|
2526
2526
|
}
|
|
2527
2527
|
}
|
|
2528
|
-
|
|
2528
|
+
Ri.TableManager = wc;
|
|
2529
2529
|
var Ni = {};
|
|
2530
2530
|
Object.defineProperty(Ni, "__esModule", { value: !0 });
|
|
2531
2531
|
Ni.SchemaManager = void 0;
|
|
2532
|
-
const _c =
|
|
2532
|
+
const _c = Te;
|
|
2533
2533
|
class Sc extends _c.BaseClient {
|
|
2534
2534
|
/**
|
|
2535
2535
|
* Execute comprehensive schema queries for database introspection
|
|
@@ -2728,7 +2728,7 @@ Ni.SchemaManager = Sc;
|
|
|
2728
2728
|
var Li = {};
|
|
2729
2729
|
Object.defineProperty(Li, "__esModule", { value: !0 });
|
|
2730
2730
|
Li.DataManager = void 0;
|
|
2731
|
-
const Ec =
|
|
2731
|
+
const Ec = Te;
|
|
2732
2732
|
class Pc extends Ec.BaseClient {
|
|
2733
2733
|
/**
|
|
2734
2734
|
* Insert a new record into a table
|
|
@@ -2836,7 +2836,7 @@ Li.DataManager = Pc;
|
|
|
2836
2836
|
var Bi = {};
|
|
2837
2837
|
Object.defineProperty(Bi, "__esModule", { value: !0 });
|
|
2838
2838
|
Bi.AggregationManager = void 0;
|
|
2839
|
-
const kc =
|
|
2839
|
+
const kc = Te;
|
|
2840
2840
|
class Ic extends kc.BaseClient {
|
|
2841
2841
|
/**
|
|
2842
2842
|
* Count records in a table with optional criteria
|
|
@@ -3008,8 +3008,8 @@ Bi.AggregationManager = Ic;
|
|
|
3008
3008
|
var zi = {};
|
|
3009
3009
|
Object.defineProperty(zi, "__esModule", { value: !0 });
|
|
3010
3010
|
zi.ConnectionManager = void 0;
|
|
3011
|
-
const
|
|
3012
|
-
class
|
|
3011
|
+
const Ac = Te;
|
|
3012
|
+
class Vc extends Ac.BaseClient {
|
|
3013
3013
|
/**
|
|
3014
3014
|
* List all database connections
|
|
3015
3015
|
* @returns {Promise<DatabaseConnection[]>} Array of connections
|
|
@@ -3143,12 +3143,12 @@ class Ac extends Vc.BaseClient {
|
|
|
3143
3143
|
}), i;
|
|
3144
3144
|
}
|
|
3145
3145
|
}
|
|
3146
|
-
zi.ConnectionManager =
|
|
3146
|
+
zi.ConnectionManager = Vc;
|
|
3147
3147
|
var ji = {};
|
|
3148
3148
|
Object.defineProperty(ji, "__esModule", { value: !0 });
|
|
3149
3149
|
ji.UtilityManager = void 0;
|
|
3150
|
-
const
|
|
3151
|
-
class
|
|
3150
|
+
const Tc = Te;
|
|
3151
|
+
class Oc extends Tc.BaseClient {
|
|
3152
3152
|
/**
|
|
3153
3153
|
* Perform full-text search across specified fields in a table
|
|
3154
3154
|
* @param {string} tableName - Name of the table to search
|
|
@@ -3352,10 +3352,10 @@ class Tc extends Oc.BaseClient {
|
|
|
3352
3352
|
return this.request(`/index/${t}/${i}`, "DELETE");
|
|
3353
3353
|
}
|
|
3354
3354
|
}
|
|
3355
|
-
ji.UtilityManager =
|
|
3355
|
+
ji.UtilityManager = Oc;
|
|
3356
3356
|
Object.defineProperty(vi, "__esModule", { value: !0 });
|
|
3357
3357
|
vi.Database = void 0;
|
|
3358
|
-
const ui =
|
|
3358
|
+
const ui = Te, Qt = Ri, Pt = Ni, Ne = Li, Le = Bi, oe = zi, J = ji;
|
|
3359
3359
|
let E = class Ma extends ui.BaseClient {
|
|
3360
3360
|
// ============================================================================
|
|
3361
3361
|
// CONFIGURATION AND CONNECTION METHODS (from BaseClient)
|
|
@@ -3486,11 +3486,11 @@ E.dropIndex = J.UtilityManager.dropIndex;
|
|
|
3486
3486
|
Object.defineProperty(e, "Database", { enumerable: !0, get: function() {
|
|
3487
3487
|
return i.Database;
|
|
3488
3488
|
} });
|
|
3489
|
-
var n =
|
|
3489
|
+
var n = Te;
|
|
3490
3490
|
Object.defineProperty(e, "BaseClient", { enumerable: !0, get: function() {
|
|
3491
3491
|
return n.BaseClient;
|
|
3492
3492
|
} });
|
|
3493
|
-
var r =
|
|
3493
|
+
var r = Ri;
|
|
3494
3494
|
Object.defineProperty(e, "TableManager", { enumerable: !0, get: function() {
|
|
3495
3495
|
return r.TableManager;
|
|
3496
3496
|
} });
|
|
@@ -3514,19 +3514,19 @@ E.dropIndex = J.UtilityManager.dropIndex;
|
|
|
3514
3514
|
Object.defineProperty(e, "UtilityManager", { enumerable: !0, get: function() {
|
|
3515
3515
|
return c.UtilityManager;
|
|
3516
3516
|
} });
|
|
3517
|
-
})(
|
|
3518
|
-
const
|
|
3519
|
-
var
|
|
3517
|
+
})(Ha);
|
|
3518
|
+
const Dc = /* @__PURE__ */ Da(Ha);
|
|
3519
|
+
var Hc = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 80, 3, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 343, 9, 54, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 726, 6, 110, 6, 6, 9, 4759, 9, 787719, 239], Ua = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 4, 51, 13, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 39, 27, 10, 22, 251, 41, 7, 1, 17, 2, 60, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 31, 9, 2, 0, 3, 0, 2, 37, 2, 0, 26, 0, 2, 0, 45, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 200, 32, 32, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 26, 3994, 6, 582, 6842, 29, 1763, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 433, 44, 212, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 42, 9, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 229, 29, 3, 0, 496, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 4191], Mc = "·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・", Ra = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", rr = {
|
|
3520
3520
|
3: "abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",
|
|
3521
3521
|
5: "class enum extends super const export import",
|
|
3522
3522
|
6: "enum",
|
|
3523
3523
|
strict: "implements interface let package private protected public static yield",
|
|
3524
3524
|
strictBind: "eval arguments"
|
|
3525
|
-
}, sr = "break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",
|
|
3525
|
+
}, sr = "break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this", Uc = {
|
|
3526
3526
|
5: sr,
|
|
3527
3527
|
"5module": sr + " export import",
|
|
3528
3528
|
6: sr + " const class extends export import super"
|
|
3529
|
-
},
|
|
3529
|
+
}, Rc = /^in(stanceof)?$/, Nc = new RegExp("[" + Ra + "]"), Lc = new RegExp("[" + Ra + Mc + "]");
|
|
3530
3530
|
function vr(e, t) {
|
|
3531
3531
|
for (var i = 65536, n = 0; n < t.length; n += 2) {
|
|
3532
3532
|
if (i += t[n], i > e)
|
|
@@ -3537,47 +3537,47 @@ function vr(e, t) {
|
|
|
3537
3537
|
return !1;
|
|
3538
3538
|
}
|
|
3539
3539
|
function Ke(e, t) {
|
|
3540
|
-
return e < 65 ? e === 36 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && Nc.test(String.fromCharCode(e)) : t === !1 ? !1 : vr(e,
|
|
3540
|
+
return e < 65 ? e === 36 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && Nc.test(String.fromCharCode(e)) : t === !1 ? !1 : vr(e, Ua);
|
|
3541
3541
|
}
|
|
3542
|
-
function
|
|
3543
|
-
return e < 48 ? e === 36 : e < 58 ? !0 : e < 65 ? !1 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && Lc.test(String.fromCharCode(e)) : t === !1 ? !1 : vr(e,
|
|
3542
|
+
function Rt(e, t) {
|
|
3543
|
+
return e < 48 ? e === 36 : e < 58 ? !0 : e < 65 ? !1 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && Lc.test(String.fromCharCode(e)) : t === !1 ? !1 : vr(e, Ua) || vr(e, Hc);
|
|
3544
3544
|
}
|
|
3545
|
-
var
|
|
3545
|
+
var U = function(t, i) {
|
|
3546
3546
|
i === void 0 && (i = {}), this.label = t, this.keyword = i.keyword, this.beforeExpr = !!i.beforeExpr, this.startsExpr = !!i.startsExpr, this.isLoop = !!i.isLoop, this.isAssign = !!i.isAssign, this.prefix = !!i.prefix, this.postfix = !!i.postfix, this.binop = i.binop || null, this.updateContext = null;
|
|
3547
3547
|
};
|
|
3548
3548
|
function ge(e, t) {
|
|
3549
|
-
return new
|
|
3549
|
+
return new U(e, { beforeExpr: !0, binop: t });
|
|
3550
3550
|
}
|
|
3551
3551
|
var be = { beforeExpr: !0 }, ue = { startsExpr: !0 }, jr = {};
|
|
3552
3552
|
function M(e, t) {
|
|
3553
|
-
return t === void 0 && (t = {}), t.keyword = e, jr[e] = new
|
|
3553
|
+
return t === void 0 && (t = {}), t.keyword = e, jr[e] = new U(e, t);
|
|
3554
3554
|
}
|
|
3555
3555
|
var l = {
|
|
3556
|
-
num: new
|
|
3557
|
-
regexp: new
|
|
3558
|
-
string: new
|
|
3559
|
-
name: new
|
|
3560
|
-
privateId: new
|
|
3561
|
-
eof: new
|
|
3556
|
+
num: new U("num", ue),
|
|
3557
|
+
regexp: new U("regexp", ue),
|
|
3558
|
+
string: new U("string", ue),
|
|
3559
|
+
name: new U("name", ue),
|
|
3560
|
+
privateId: new U("privateId", ue),
|
|
3561
|
+
eof: new U("eof"),
|
|
3562
3562
|
// Punctuation token types.
|
|
3563
|
-
bracketL: new
|
|
3564
|
-
bracketR: new
|
|
3565
|
-
braceL: new
|
|
3566
|
-
braceR: new
|
|
3567
|
-
parenL: new
|
|
3568
|
-
parenR: new
|
|
3569
|
-
comma: new
|
|
3570
|
-
semi: new
|
|
3571
|
-
colon: new
|
|
3572
|
-
dot: new
|
|
3573
|
-
question: new
|
|
3574
|
-
questionDot: new
|
|
3575
|
-
arrow: new
|
|
3576
|
-
template: new
|
|
3577
|
-
invalidTemplate: new
|
|
3578
|
-
ellipsis: new
|
|
3579
|
-
backQuote: new
|
|
3580
|
-
dollarBraceL: new
|
|
3563
|
+
bracketL: new U("[", { beforeExpr: !0, startsExpr: !0 }),
|
|
3564
|
+
bracketR: new U("]"),
|
|
3565
|
+
braceL: new U("{", { beforeExpr: !0, startsExpr: !0 }),
|
|
3566
|
+
braceR: new U("}"),
|
|
3567
|
+
parenL: new U("(", { beforeExpr: !0, startsExpr: !0 }),
|
|
3568
|
+
parenR: new U(")"),
|
|
3569
|
+
comma: new U(",", be),
|
|
3570
|
+
semi: new U(";", be),
|
|
3571
|
+
colon: new U(":", be),
|
|
3572
|
+
dot: new U("."),
|
|
3573
|
+
question: new U("?", be),
|
|
3574
|
+
questionDot: new U("?."),
|
|
3575
|
+
arrow: new U("=>", be),
|
|
3576
|
+
template: new U("template"),
|
|
3577
|
+
invalidTemplate: new U("invalidTemplate"),
|
|
3578
|
+
ellipsis: new U("...", be),
|
|
3579
|
+
backQuote: new U("`", ue),
|
|
3580
|
+
dollarBraceL: new U("${", { beforeExpr: !0, startsExpr: !0 }),
|
|
3581
3581
|
// Operators. These carry several kinds of properties to help the
|
|
3582
3582
|
// parser use them properly (the presence of these properties is
|
|
3583
3583
|
// what categorizes them as operators).
|
|
@@ -3591,10 +3591,10 @@ var l = {
|
|
|
3591
3591
|
// `isAssign` marks all of `=`, `+=`, `-=` etcetera, which act as
|
|
3592
3592
|
// binary operators with a very low precedence, that should result
|
|
3593
3593
|
// in AssignmentExpression nodes.
|
|
3594
|
-
eq: new
|
|
3595
|
-
assign: new
|
|
3596
|
-
incDec: new
|
|
3597
|
-
prefix: new
|
|
3594
|
+
eq: new U("=", { beforeExpr: !0, isAssign: !0 }),
|
|
3595
|
+
assign: new U("_=", { beforeExpr: !0, isAssign: !0 }),
|
|
3596
|
+
incDec: new U("++/--", { prefix: !0, postfix: !0, startsExpr: !0 }),
|
|
3597
|
+
prefix: new U("!/~", { beforeExpr: !0, prefix: !0, startsExpr: !0 }),
|
|
3598
3598
|
logicalOR: ge("||", 1),
|
|
3599
3599
|
logicalAND: ge("&&", 2),
|
|
3600
3600
|
bitwiseOR: ge("|", 3),
|
|
@@ -3603,11 +3603,11 @@ var l = {
|
|
|
3603
3603
|
equality: ge("==/!=/===/!==", 6),
|
|
3604
3604
|
relational: ge("</>/<=/>=", 7),
|
|
3605
3605
|
bitShift: ge("<</>>/>>>", 8),
|
|
3606
|
-
plusMin: new
|
|
3606
|
+
plusMin: new U("+/-", { beforeExpr: !0, binop: 9, prefix: !0, startsExpr: !0 }),
|
|
3607
3607
|
modulo: ge("%", 10),
|
|
3608
3608
|
star: ge("*", 10),
|
|
3609
3609
|
slash: ge("/", 10),
|
|
3610
|
-
starstar: new
|
|
3610
|
+
starstar: new U("**", { beforeExpr: !0 }),
|
|
3611
3611
|
coalesce: ge("??", 1),
|
|
3612
3612
|
// Keyword token types.
|
|
3613
3613
|
_break: M("break"),
|
|
@@ -3660,11 +3660,11 @@ function Na(e, t, i) {
|
|
|
3660
3660
|
}
|
|
3661
3661
|
var La = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, ve = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, Ba = Object.prototype, zc = Ba.hasOwnProperty, jc = Ba.toString, Zt = Object.hasOwn || function(e, t) {
|
|
3662
3662
|
return zc.call(e, t);
|
|
3663
|
-
},
|
|
3663
|
+
}, Us = Array.isArray || function(e) {
|
|
3664
3664
|
return jc.call(e) === "[object Array]";
|
|
3665
|
-
},
|
|
3665
|
+
}, Rs = /* @__PURE__ */ Object.create(null);
|
|
3666
3666
|
function at(e) {
|
|
3667
|
-
return
|
|
3667
|
+
return Rs[e] || (Rs[e] = new RegExp("^(?:" + e.replace(/ /g, "|") + ")$"));
|
|
3668
3668
|
}
|
|
3669
3669
|
function Ye(e) {
|
|
3670
3670
|
return e <= 65535 ? String.fromCharCode(e) : (e -= 65536, String.fromCharCode((e >> 10) + 55296, (e & 1023) + 56320));
|
|
@@ -3788,13 +3788,13 @@ function qc(e) {
|
|
|
3788
3788
|
for (var i in yr)
|
|
3789
3789
|
t[i] = e && Zt(e, i) ? e[i] : yr[i];
|
|
3790
3790
|
if (t.ecmaVersion === "latest" ? t.ecmaVersion = 1e8 : t.ecmaVersion == null ? (!Ns && typeof console == "object" && console.warn && (Ns = !0, console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
3791
|
-
Defaulting to 2020, but this will stop working in the future.`)), t.ecmaVersion = 11) : t.ecmaVersion >= 2015 && (t.ecmaVersion -= 2009), t.allowReserved == null && (t.allowReserved = t.ecmaVersion < 5), (!e || e.allowHashBang == null) && (t.allowHashBang = t.ecmaVersion >= 14),
|
|
3791
|
+
Defaulting to 2020, but this will stop working in the future.`)), t.ecmaVersion = 11) : t.ecmaVersion >= 2015 && (t.ecmaVersion -= 2009), t.allowReserved == null && (t.allowReserved = t.ecmaVersion < 5), (!e || e.allowHashBang == null) && (t.allowHashBang = t.ecmaVersion >= 14), Us(t.onToken)) {
|
|
3792
3792
|
var n = t.onToken;
|
|
3793
3793
|
t.onToken = function(r) {
|
|
3794
3794
|
return n.push(r);
|
|
3795
3795
|
};
|
|
3796
3796
|
}
|
|
3797
|
-
return
|
|
3797
|
+
return Us(t.onComment) && (t.onComment = Gc(t, t.onComment)), t;
|
|
3798
3798
|
}
|
|
3799
3799
|
function Gc(e, t) {
|
|
3800
3800
|
return function(i, n, r, s, a, o) {
|
|
@@ -3812,7 +3812,7 @@ function Wr(e, t) {
|
|
|
3812
3812
|
return ei | (e ? Fr : 0) | (t ? ja : 0);
|
|
3813
3813
|
}
|
|
3814
3814
|
var pn = 0, Kr = 1, Ze = 2, Wa = 3, Ka = 4, Ya = 5, Y = function(t, i, n) {
|
|
3815
|
-
this.options = t = qc(t), this.sourceFile = t.sourceFile, this.keywords = at(
|
|
3815
|
+
this.options = t = qc(t), this.sourceFile = t.sourceFile, this.keywords = at(Uc[t.ecmaVersion >= 6 ? 6 : t.sourceType === "module" ? "5module" : 5]);
|
|
3816
3816
|
var r = "";
|
|
3817
3817
|
t.allowReserved !== !0 && (r = rr[t.ecmaVersion >= 6 ? 6 : t.ecmaVersion === 5 ? 5 : 3], t.sourceType === "module" && (r += " await")), this.reservedWords = at(r);
|
|
3818
3818
|
var s = (r ? r + " " : "") + rr.strict;
|
|
@@ -3925,7 +3925,7 @@ le.expect = function(e) {
|
|
|
3925
3925
|
le.unexpected = function(e) {
|
|
3926
3926
|
this.raise(e ?? this.start, "Unexpected token");
|
|
3927
3927
|
};
|
|
3928
|
-
var
|
|
3928
|
+
var Un = function() {
|
|
3929
3929
|
this.shorthandAssign = this.trailingComma = this.parenthesizedAssign = this.parenthesizedBind = this.doubleProto = -1;
|
|
3930
3930
|
};
|
|
3931
3931
|
le.checkPatternErrors = function(e, t) {
|
|
@@ -3976,12 +3976,12 @@ I.isLet = function(e) {
|
|
|
3976
3976
|
if (n === 123 || n > 55295 && n < 56320)
|
|
3977
3977
|
return !0;
|
|
3978
3978
|
if (Ke(n, !0)) {
|
|
3979
|
-
for (var r = i + 1;
|
|
3979
|
+
for (var r = i + 1; Rt(n = this.input.charCodeAt(r), !0); )
|
|
3980
3980
|
++r;
|
|
3981
3981
|
if (n === 92 || n > 55295 && n < 56320)
|
|
3982
3982
|
return !0;
|
|
3983
3983
|
var s = this.input.slice(i, r);
|
|
3984
|
-
if (!
|
|
3984
|
+
if (!Rc.test(s))
|
|
3985
3985
|
return !0;
|
|
3986
3986
|
}
|
|
3987
3987
|
return !1;
|
|
@@ -3991,7 +3991,7 @@ I.isAsyncFunction = function() {
|
|
|
3991
3991
|
return !1;
|
|
3992
3992
|
ve.lastIndex = this.pos;
|
|
3993
3993
|
var e = ve.exec(this.input), t = this.pos + e[0].length, i;
|
|
3994
|
-
return !_e.test(this.input.slice(this.pos, t)) && this.input.slice(t, t + 8) === "function" && (t + 8 === this.input.length || !(
|
|
3994
|
+
return !_e.test(this.input.slice(this.pos, t)) && this.input.slice(t, t + 8) === "function" && (t + 8 === this.input.length || !(Rt(i = this.input.charCodeAt(t + 8)) || i > 55295 && i < 56320));
|
|
3995
3995
|
};
|
|
3996
3996
|
I.parseStatement = function(e, t, i) {
|
|
3997
3997
|
var n = this.type, r = this.startNode(), s;
|
|
@@ -4072,7 +4072,7 @@ I.parseForStatement = function(e) {
|
|
|
4072
4072
|
var n = this.startNode(), r = i ? "let" : this.value;
|
|
4073
4073
|
return this.next(), this.parseVar(n, !0, r), this.finishNode(n, "VariableDeclaration"), (this.type === l._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) && n.declarations.length === 1 ? (this.options.ecmaVersion >= 9 && (this.type === l._in ? t > -1 && this.unexpected(t) : e.await = t > -1), this.parseForIn(e, n)) : (t > -1 && this.unexpected(t), this.parseFor(e, n));
|
|
4074
4074
|
}
|
|
4075
|
-
var s = this.isContextual("let"), a = !1, o = this.containsEsc, u = new
|
|
4075
|
+
var s = this.isContextual("let"), a = !1, o = this.containsEsc, u = new Un(), c = this.start, p = t > -1 ? this.parseExprSubscripts(u, "await") : this.parseExpression(!0, u);
|
|
4076
4076
|
return this.type === l._in || (a = this.options.ecmaVersion >= 6 && this.isContextual("of")) ? (t > -1 ? (this.type === l._in && this.unexpected(t), e.await = !0) : a && this.options.ecmaVersion >= 8 && (p.start === c && !o && p.type === "Identifier" && p.name === "async" ? this.unexpected() : this.options.ecmaVersion >= 9 && (e.await = !1)), s && a && this.raise(p.start, "The left-hand side of a for-of loop may not start with 'let'."), this.toAssignable(p, !1, u), this.checkLValPattern(p), this.parseForIn(e, p)) : (this.checkExpressionErrors(u, !0), t > -1 && this.unexpected(t), this.parseFor(e, p));
|
|
4077
4077
|
};
|
|
4078
4078
|
I.parseFunctionStatement = function(e, t, i) {
|
|
@@ -4651,8 +4651,8 @@ l.name.updateContext = function(e) {
|
|
|
4651
4651
|
var t = !1;
|
|
4652
4652
|
this.options.ecmaVersion >= 6 && e !== l.dot && (this.value === "of" && !this.exprAllowed || this.value === "yield" && this.inGeneratorContext()) && (t = !0), this.exprAllowed = t;
|
|
4653
4653
|
};
|
|
4654
|
-
var
|
|
4655
|
-
|
|
4654
|
+
var T = Y.prototype;
|
|
4655
|
+
T.checkPropClash = function(e, t, i) {
|
|
4656
4656
|
if (!(this.options.ecmaVersion >= 9 && e.type === "SpreadElement") && !(this.options.ecmaVersion >= 6 && (e.computed || e.method || e.shorthand))) {
|
|
4657
4657
|
var n = e.key, r;
|
|
4658
4658
|
switch (n.type) {
|
|
@@ -4684,7 +4684,7 @@ O.checkPropClash = function(e, t, i) {
|
|
|
4684
4684
|
a[s] = !0;
|
|
4685
4685
|
}
|
|
4686
4686
|
};
|
|
4687
|
-
|
|
4687
|
+
T.parseExpression = function(e, t) {
|
|
4688
4688
|
var i = this.start, n = this.startLoc, r = this.parseMaybeAssign(e, t);
|
|
4689
4689
|
if (this.type === l.comma) {
|
|
4690
4690
|
var s = this.startNodeAt(i, n);
|
|
@@ -4694,14 +4694,14 @@ O.parseExpression = function(e, t) {
|
|
|
4694
4694
|
}
|
|
4695
4695
|
return r;
|
|
4696
4696
|
};
|
|
4697
|
-
|
|
4697
|
+
T.parseMaybeAssign = function(e, t, i) {
|
|
4698
4698
|
if (this.isContextual("yield")) {
|
|
4699
4699
|
if (this.inGenerator)
|
|
4700
4700
|
return this.parseYield(e);
|
|
4701
4701
|
this.exprAllowed = !1;
|
|
4702
4702
|
}
|
|
4703
4703
|
var n = !1, r = -1, s = -1, a = -1;
|
|
4704
|
-
t ? (r = t.parenthesizedAssign, s = t.trailingComma, a = t.doubleProto, t.parenthesizedAssign = t.trailingComma = -1) : (t = new
|
|
4704
|
+
t ? (r = t.parenthesizedAssign, s = t.trailingComma, a = t.doubleProto, t.parenthesizedAssign = t.trailingComma = -1) : (t = new Un(), n = !0);
|
|
4705
4705
|
var o = this.start, u = this.startLoc;
|
|
4706
4706
|
(this.type === l.parenL || this.type === l.name) && (this.potentialArrowAt = this.start, this.potentialArrowInForAwait = e === "await");
|
|
4707
4707
|
var c = this.parseMaybeConditional(e, t);
|
|
@@ -4712,7 +4712,7 @@ O.parseMaybeAssign = function(e, t, i) {
|
|
|
4712
4712
|
n && this.checkExpressionErrors(t, !0);
|
|
4713
4713
|
return r > -1 && (t.parenthesizedAssign = r), s > -1 && (t.trailingComma = s), c;
|
|
4714
4714
|
};
|
|
4715
|
-
|
|
4715
|
+
T.parseMaybeConditional = function(e, t) {
|
|
4716
4716
|
var i = this.start, n = this.startLoc, r = this.parseExprOps(e, t);
|
|
4717
4717
|
if (this.checkExpressionErrors(t))
|
|
4718
4718
|
return r;
|
|
@@ -4722,11 +4722,11 @@ O.parseMaybeConditional = function(e, t) {
|
|
|
4722
4722
|
}
|
|
4723
4723
|
return r;
|
|
4724
4724
|
};
|
|
4725
|
-
|
|
4725
|
+
T.parseExprOps = function(e, t) {
|
|
4726
4726
|
var i = this.start, n = this.startLoc, r = this.parseMaybeUnary(t, !1, !1, e);
|
|
4727
4727
|
return this.checkExpressionErrors(t) || r.start === i && r.type === "ArrowFunctionExpression" ? r : this.parseExprOp(r, i, n, -1, e);
|
|
4728
4728
|
};
|
|
4729
|
-
|
|
4729
|
+
T.parseExprOp = function(e, t, i, n, r) {
|
|
4730
4730
|
var s = this.type.binop;
|
|
4731
4731
|
if (s != null && (!r || this.type !== l._in) && s > n) {
|
|
4732
4732
|
var a = this.type === l.logicalOR || this.type === l.logicalAND, o = this.type === l.coalesce;
|
|
@@ -4738,12 +4738,12 @@ O.parseExprOp = function(e, t, i, n, r) {
|
|
|
4738
4738
|
}
|
|
4739
4739
|
return e;
|
|
4740
4740
|
};
|
|
4741
|
-
|
|
4741
|
+
T.buildBinary = function(e, t, i, n, r, s) {
|
|
4742
4742
|
n.type === "PrivateIdentifier" && this.raise(n.start, "Private identifier can only be left side of binary expression");
|
|
4743
4743
|
var a = this.startNodeAt(e, t);
|
|
4744
4744
|
return a.left = i, a.operator = r, a.right = n, this.finishNode(a, s ? "LogicalExpression" : "BinaryExpression");
|
|
4745
4745
|
};
|
|
4746
|
-
|
|
4746
|
+
T.parseMaybeUnary = function(e, t, i, n) {
|
|
4747
4747
|
var r = this.start, s = this.startLoc, a;
|
|
4748
4748
|
if (this.isContextual("await") && this.canAwait)
|
|
4749
4749
|
a = this.parseAwait(n), t = !0;
|
|
@@ -4774,14 +4774,14 @@ function Qa(e) {
|
|
|
4774
4774
|
function Cr(e) {
|
|
4775
4775
|
return e.type === "MemberExpression" && e.property.type === "PrivateIdentifier" || e.type === "ChainExpression" && Cr(e.expression) || e.type === "ParenthesizedExpression" && Cr(e.expression);
|
|
4776
4776
|
}
|
|
4777
|
-
|
|
4777
|
+
T.parseExprSubscripts = function(e, t) {
|
|
4778
4778
|
var i = this.start, n = this.startLoc, r = this.parseExprAtom(e, t);
|
|
4779
4779
|
if (r.type === "ArrowFunctionExpression" && this.input.slice(this.lastTokStart, this.lastTokEnd) !== ")")
|
|
4780
4780
|
return r;
|
|
4781
4781
|
var s = this.parseSubscripts(r, i, n, !1, t);
|
|
4782
4782
|
return e && s.type === "MemberExpression" && (e.parenthesizedAssign >= s.start && (e.parenthesizedAssign = -1), e.parenthesizedBind >= s.start && (e.parenthesizedBind = -1), e.trailingComma >= s.start && (e.trailingComma = -1)), s;
|
|
4783
4783
|
};
|
|
4784
|
-
|
|
4784
|
+
T.parseSubscripts = function(e, t, i, n, r) {
|
|
4785
4785
|
for (var s = this.options.ecmaVersion >= 8 && e.type === "Identifier" && e.name === "async" && this.lastTokEnd === e.end && !this.canInsertSemicolon() && e.end - e.start === 5 && this.potentialArrowAt === e.start, a = !1; ; ) {
|
|
4786
4786
|
var o = this.parseSubscript(e, t, i, n, s, a, r);
|
|
4787
4787
|
if (o.optional && (a = !0), o === e || o.type === "ArrowFunctionExpression") {
|
|
@@ -4794,13 +4794,13 @@ O.parseSubscripts = function(e, t, i, n, r) {
|
|
|
4794
4794
|
e = o;
|
|
4795
4795
|
}
|
|
4796
4796
|
};
|
|
4797
|
-
|
|
4797
|
+
T.shouldParseAsyncArrow = function() {
|
|
4798
4798
|
return !this.canInsertSemicolon() && this.eat(l.arrow);
|
|
4799
4799
|
};
|
|
4800
|
-
|
|
4800
|
+
T.parseSubscriptAsyncArrow = function(e, t, i, n) {
|
|
4801
4801
|
return this.parseArrowExpression(this.startNodeAt(e, t), i, !0, n);
|
|
4802
4802
|
};
|
|
4803
|
-
|
|
4803
|
+
T.parseSubscript = function(e, t, i, n, r, s, a) {
|
|
4804
4804
|
var o = this.options.ecmaVersion >= 11, u = o && this.eat(l.questionDot);
|
|
4805
4805
|
n && u && this.raise(this.lastTokStart, "Optional chaining cannot appear in the callee of new expressions");
|
|
4806
4806
|
var c = this.eat(l.bracketL);
|
|
@@ -4808,7 +4808,7 @@ O.parseSubscript = function(e, t, i, n, r, s, a) {
|
|
|
4808
4808
|
var p = this.startNodeAt(t, i);
|
|
4809
4809
|
p.object = e, c ? (p.property = this.parseExpression(), this.expect(l.bracketR)) : this.type === l.privateId && e.type !== "Super" ? p.property = this.parsePrivateIdent() : p.property = this.parseIdent(this.options.allowReserved !== "never"), p.computed = !!c, o && (p.optional = u), e = this.finishNode(p, "MemberExpression");
|
|
4810
4810
|
} else if (!n && this.eat(l.parenL)) {
|
|
4811
|
-
var d = new
|
|
4811
|
+
var d = new Un(), v = this.yieldPos, b = this.awaitPos, y = this.awaitIdentPos;
|
|
4812
4812
|
this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0;
|
|
4813
4813
|
var S = this.parseExprList(l.parenR, this.options.ecmaVersion >= 8, !1, d);
|
|
4814
4814
|
if (r && !u && this.shouldParseAsyncArrow())
|
|
@@ -4818,12 +4818,12 @@ O.parseSubscript = function(e, t, i, n, r, s, a) {
|
|
|
4818
4818
|
k.callee = e, k.arguments = S, o && (k.optional = u), e = this.finishNode(k, "CallExpression");
|
|
4819
4819
|
} else if (this.type === l.backQuote) {
|
|
4820
4820
|
(u || s) && this.raise(this.start, "Optional chaining cannot appear in the tag of tagged template expressions");
|
|
4821
|
-
var
|
|
4822
|
-
|
|
4821
|
+
var A = this.startNodeAt(t, i);
|
|
4822
|
+
A.tag = e, A.quasi = this.parseTemplate({ isTagged: !0 }), e = this.finishNode(A, "TaggedTemplateExpression");
|
|
4823
4823
|
}
|
|
4824
4824
|
return e;
|
|
4825
4825
|
};
|
|
4826
|
-
|
|
4826
|
+
T.parseExprAtom = function(e, t, i) {
|
|
4827
4827
|
this.type === l.slash && this.readRegexp();
|
|
4828
4828
|
var n, r = this.potentialArrowAt === this.start;
|
|
4829
4829
|
switch (this.type) {
|
|
@@ -4873,10 +4873,10 @@ O.parseExprAtom = function(e, t, i) {
|
|
|
4873
4873
|
return this.parseExprAtomDefault();
|
|
4874
4874
|
}
|
|
4875
4875
|
};
|
|
4876
|
-
|
|
4876
|
+
T.parseExprAtomDefault = function() {
|
|
4877
4877
|
this.unexpected();
|
|
4878
4878
|
};
|
|
4879
|
-
|
|
4879
|
+
T.parseExprImport = function(e) {
|
|
4880
4880
|
var t = this.startNode();
|
|
4881
4881
|
if (this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword import"), this.next(), this.type === l.parenL && !e)
|
|
4882
4882
|
return this.parseDynamicImport(t);
|
|
@@ -4886,7 +4886,7 @@ O.parseExprImport = function(e) {
|
|
|
4886
4886
|
} else
|
|
4887
4887
|
this.unexpected();
|
|
4888
4888
|
};
|
|
4889
|
-
|
|
4889
|
+
T.parseDynamicImport = function(e) {
|
|
4890
4890
|
if (this.next(), e.source = this.parseMaybeAssign(), this.options.ecmaVersion >= 16)
|
|
4891
4891
|
this.eat(l.parenR) ? e.options = null : (this.expect(l.comma), this.afterTrailingComma(l.parenR) ? e.options = null : (e.options = this.parseMaybeAssign(), this.eat(l.parenR) || (this.expect(l.comma), this.afterTrailingComma(l.parenR) || this.unexpected())));
|
|
4892
4892
|
else if (!this.eat(l.parenR)) {
|
|
@@ -4895,28 +4895,28 @@ O.parseDynamicImport = function(e) {
|
|
|
4895
4895
|
}
|
|
4896
4896
|
return this.finishNode(e, "ImportExpression");
|
|
4897
4897
|
};
|
|
4898
|
-
|
|
4898
|
+
T.parseImportMeta = function(e) {
|
|
4899
4899
|
this.next();
|
|
4900
4900
|
var t = this.containsEsc;
|
|
4901
4901
|
return e.property = this.parseIdent(!0), e.property.name !== "meta" && this.raiseRecoverable(e.property.start, "The only valid meta property for import is 'import.meta'"), t && this.raiseRecoverable(e.start, "'import.meta' must not contain escaped characters"), this.options.sourceType !== "module" && !this.options.allowImportExportEverywhere && this.raiseRecoverable(e.start, "Cannot use 'import.meta' outside a module"), this.finishNode(e, "MetaProperty");
|
|
4902
4902
|
};
|
|
4903
|
-
|
|
4903
|
+
T.parseLiteral = function(e) {
|
|
4904
4904
|
var t = this.startNode();
|
|
4905
4905
|
return t.value = e, t.raw = this.input.slice(this.start, this.end), t.raw.charCodeAt(t.raw.length - 1) === 110 && (t.bigint = t.raw.slice(0, -1).replace(/_/g, "")), this.next(), this.finishNode(t, "Literal");
|
|
4906
4906
|
};
|
|
4907
|
-
|
|
4907
|
+
T.parseParenExpression = function() {
|
|
4908
4908
|
this.expect(l.parenL);
|
|
4909
4909
|
var e = this.parseExpression();
|
|
4910
4910
|
return this.expect(l.parenR), e;
|
|
4911
4911
|
};
|
|
4912
|
-
|
|
4912
|
+
T.shouldParseArrow = function(e) {
|
|
4913
4913
|
return !this.canInsertSemicolon();
|
|
4914
4914
|
};
|
|
4915
|
-
|
|
4915
|
+
T.parseParenAndDistinguishExpression = function(e, t) {
|
|
4916
4916
|
var i = this.start, n = this.startLoc, r, s = this.options.ecmaVersion >= 8;
|
|
4917
4917
|
if (this.options.ecmaVersion >= 6) {
|
|
4918
4918
|
this.next();
|
|
4919
|
-
var a = this.start, o = this.startLoc, u = [], c = !0, p = !1, d = new
|
|
4919
|
+
var a = this.start, o = this.startLoc, u = [], c = !0, p = !1, d = new Un(), v = this.yieldPos, b = this.awaitPos, y;
|
|
4920
4920
|
for (this.yieldPos = 0, this.awaitPos = 0; this.type !== l.parenR; )
|
|
4921
4921
|
if (c ? c = !1 : this.expect(l.comma), s && this.afterTrailingComma(l.parenR, !0)) {
|
|
4922
4922
|
p = !0;
|
|
@@ -4936,19 +4936,19 @@ O.parseParenAndDistinguishExpression = function(e, t) {
|
|
|
4936
4936
|
} else
|
|
4937
4937
|
r = this.parseParenExpression();
|
|
4938
4938
|
if (this.options.preserveParens) {
|
|
4939
|
-
var
|
|
4940
|
-
return
|
|
4939
|
+
var A = this.startNodeAt(i, n);
|
|
4940
|
+
return A.expression = r, this.finishNode(A, "ParenthesizedExpression");
|
|
4941
4941
|
} else
|
|
4942
4942
|
return r;
|
|
4943
4943
|
};
|
|
4944
|
-
|
|
4944
|
+
T.parseParenItem = function(e) {
|
|
4945
4945
|
return e;
|
|
4946
4946
|
};
|
|
4947
|
-
|
|
4947
|
+
T.parseParenArrowList = function(e, t, i, n) {
|
|
4948
4948
|
return this.parseArrowExpression(this.startNodeAt(e, t), i, !1, n);
|
|
4949
4949
|
};
|
|
4950
4950
|
var Qc = [];
|
|
4951
|
-
|
|
4951
|
+
T.parseNew = function() {
|
|
4952
4952
|
this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword new");
|
|
4953
4953
|
var e = this.startNode();
|
|
4954
4954
|
if (this.next(), this.options.ecmaVersion >= 6 && this.type === l.dot) {
|
|
@@ -4960,7 +4960,7 @@ O.parseNew = function() {
|
|
|
4960
4960
|
var n = this.start, r = this.startLoc;
|
|
4961
4961
|
return e.callee = this.parseSubscripts(this.parseExprAtom(null, !1, !0), n, r, !0, !1), this.eat(l.parenL) ? e.arguments = this.parseExprList(l.parenR, this.options.ecmaVersion >= 8, !1) : e.arguments = Qc, this.finishNode(e, "NewExpression");
|
|
4962
4962
|
};
|
|
4963
|
-
|
|
4963
|
+
T.parseTemplateElement = function(e) {
|
|
4964
4964
|
var t = e.isTagged, i = this.startNode();
|
|
4965
4965
|
return this.type === l.invalidTemplate ? (t || this.raiseRecoverable(this.start, "Bad escape sequence in untagged template literal"), i.value = {
|
|
4966
4966
|
raw: this.value.replace(/\r\n?/g, `
|
|
@@ -4972,7 +4972,7 @@ O.parseTemplateElement = function(e) {
|
|
|
4972
4972
|
cooked: this.value
|
|
4973
4973
|
}, this.next(), i.tail = this.type === l.backQuote, this.finishNode(i, "TemplateElement");
|
|
4974
4974
|
};
|
|
4975
|
-
|
|
4975
|
+
T.parseTemplate = function(e) {
|
|
4976
4976
|
e === void 0 && (e = {});
|
|
4977
4977
|
var t = e.isTagged;
|
|
4978
4978
|
t === void 0 && (t = !1);
|
|
@@ -4983,10 +4983,10 @@ O.parseTemplate = function(e) {
|
|
|
4983
4983
|
this.type === l.eof && this.raise(this.pos, "Unterminated template literal"), this.expect(l.dollarBraceL), i.expressions.push(this.parseExpression()), this.expect(l.braceR), i.quasis.push(n = this.parseTemplateElement({ isTagged: t }));
|
|
4984
4984
|
return this.next(), this.finishNode(i, "TemplateLiteral");
|
|
4985
4985
|
};
|
|
4986
|
-
|
|
4986
|
+
T.isAsyncProp = function(e) {
|
|
4987
4987
|
return !e.computed && e.key.type === "Identifier" && e.key.name === "async" && (this.type === l.name || this.type === l.num || this.type === l.string || this.type === l.bracketL || this.type.keyword || this.options.ecmaVersion >= 9 && this.type === l.star) && !_e.test(this.input.slice(this.lastTokEnd, this.start));
|
|
4988
4988
|
};
|
|
4989
|
-
|
|
4989
|
+
T.parseObj = function(e, t) {
|
|
4990
4990
|
var i = this.startNode(), n = !0, r = {};
|
|
4991
4991
|
for (i.properties = [], this.next(); !this.eat(l.braceR); ) {
|
|
4992
4992
|
if (n)
|
|
@@ -4998,7 +4998,7 @@ O.parseObj = function(e, t) {
|
|
|
4998
4998
|
}
|
|
4999
4999
|
return this.finishNode(i, e ? "ObjectPattern" : "ObjectExpression");
|
|
5000
5000
|
};
|
|
5001
|
-
|
|
5001
|
+
T.parseProperty = function(e, t) {
|
|
5002
5002
|
var i = this.startNode(), n, r, s, a;
|
|
5003
5003
|
if (this.options.ecmaVersion >= 9 && this.eat(l.ellipsis))
|
|
5004
5004
|
return e ? (i.argument = this.parseIdent(!1), this.type === l.comma && this.raiseRecoverable(this.start, "Comma is not permitted after the rest element"), this.finishNode(i, "RestElement")) : (i.argument = this.parseMaybeAssign(!1, t), this.type === l.comma && t && t.trailingComma < 0 && (t.trailingComma = this.start), this.finishNode(i, "SpreadElement"));
|
|
@@ -5006,7 +5006,7 @@ O.parseProperty = function(e, t) {
|
|
|
5006
5006
|
var o = this.containsEsc;
|
|
5007
5007
|
return this.parsePropertyName(i), !e && !o && this.options.ecmaVersion >= 8 && !n && this.isAsyncProp(i) ? (r = !0, n = this.options.ecmaVersion >= 9 && this.eat(l.star), this.parsePropertyName(i)) : r = !1, this.parsePropertyValue(i, e, n, r, s, a, t, o), this.finishNode(i, "Property");
|
|
5008
5008
|
};
|
|
5009
|
-
|
|
5009
|
+
T.parseGetterSetter = function(e) {
|
|
5010
5010
|
e.kind = e.key.name, this.parsePropertyName(e), e.value = this.parseMethod(!1);
|
|
5011
5011
|
var t = e.kind === "get" ? 0 : 1;
|
|
5012
5012
|
if (e.value.params.length !== t) {
|
|
@@ -5015,10 +5015,10 @@ O.parseGetterSetter = function(e) {
|
|
|
5015
5015
|
} else
|
|
5016
5016
|
e.kind === "set" && e.value.params[0].type === "RestElement" && this.raiseRecoverable(e.value.params[0].start, "Setter cannot use rest params");
|
|
5017
5017
|
};
|
|
5018
|
-
|
|
5018
|
+
T.parsePropertyValue = function(e, t, i, n, r, s, a, o) {
|
|
5019
5019
|
(i || n) && this.type === l.colon && this.unexpected(), this.eat(l.colon) ? (e.value = t ? this.parseMaybeDefault(this.start, this.startLoc) : this.parseMaybeAssign(!1, a), e.kind = "init") : this.options.ecmaVersion >= 6 && this.type === l.parenL ? (t && this.unexpected(), e.kind = "init", e.method = !0, e.value = this.parseMethod(i, n)) : !t && !o && this.options.ecmaVersion >= 5 && !e.computed && e.key.type === "Identifier" && (e.key.name === "get" || e.key.name === "set") && this.type !== l.comma && this.type !== l.braceR && this.type !== l.eq ? ((i || n) && this.unexpected(), this.parseGetterSetter(e)) : this.options.ecmaVersion >= 6 && !e.computed && e.key.type === "Identifier" ? ((i || n) && this.unexpected(), this.checkUnreserved(e.key), e.key.name === "await" && !this.awaitIdentPos && (this.awaitIdentPos = r), e.kind = "init", t ? e.value = this.parseMaybeDefault(r, s, this.copyNode(e.key)) : this.type === l.eq && a ? (a.shorthandAssign < 0 && (a.shorthandAssign = this.start), e.value = this.parseMaybeDefault(r, s, this.copyNode(e.key))) : e.value = this.copyNode(e.key), e.shorthand = !0) : this.unexpected();
|
|
5020
5020
|
};
|
|
5021
|
-
|
|
5021
|
+
T.parsePropertyName = function(e) {
|
|
5022
5022
|
if (this.options.ecmaVersion >= 6) {
|
|
5023
5023
|
if (this.eat(l.bracketL))
|
|
5024
5024
|
return e.computed = !0, e.key = this.parseMaybeAssign(), this.expect(l.bracketR), e.key;
|
|
@@ -5026,18 +5026,18 @@ O.parsePropertyName = function(e) {
|
|
|
5026
5026
|
}
|
|
5027
5027
|
return e.key = this.type === l.num || this.type === l.string ? this.parseExprAtom() : this.parseIdent(this.options.allowReserved !== "never");
|
|
5028
5028
|
};
|
|
5029
|
-
|
|
5029
|
+
T.initFunction = function(e) {
|
|
5030
5030
|
e.id = null, this.options.ecmaVersion >= 6 && (e.generator = e.expression = !1), this.options.ecmaVersion >= 8 && (e.async = !1);
|
|
5031
5031
|
};
|
|
5032
|
-
|
|
5032
|
+
T.parseMethod = function(e, t, i) {
|
|
5033
5033
|
var n = this.startNode(), r = this.yieldPos, s = this.awaitPos, a = this.awaitIdentPos;
|
|
5034
5034
|
return this.initFunction(n), this.options.ecmaVersion >= 6 && (n.generator = e), this.options.ecmaVersion >= 8 && (n.async = !!t), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(Wr(t, n.generator) | qr | (i ? Ga : 0)), this.expect(l.parenL), n.params = this.parseBindingList(l.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams(), this.parseFunctionBody(n, !1, !0, !1), this.yieldPos = r, this.awaitPos = s, this.awaitIdentPos = a, this.finishNode(n, "FunctionExpression");
|
|
5035
5035
|
};
|
|
5036
|
-
|
|
5036
|
+
T.parseArrowExpression = function(e, t, i, n) {
|
|
5037
5037
|
var r = this.yieldPos, s = this.awaitPos, a = this.awaitIdentPos;
|
|
5038
5038
|
return this.enterScope(Wr(i, !1) | Fa), this.initFunction(e), this.options.ecmaVersion >= 8 && (e.async = !!i), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, e.params = this.toAssignableList(t, !0), this.parseFunctionBody(e, !0, !1, n), this.yieldPos = r, this.awaitPos = s, this.awaitIdentPos = a, this.finishNode(e, "ArrowFunctionExpression");
|
|
5039
5039
|
};
|
|
5040
|
-
|
|
5040
|
+
T.parseFunctionBody = function(e, t, i, n) {
|
|
5041
5041
|
var r = t && this.type !== l.braceL, s = this.strict, a = !1;
|
|
5042
5042
|
if (r)
|
|
5043
5043
|
e.body = this.parseMaybeAssign(n), e.expression = !0, this.checkParams(e, !1);
|
|
@@ -5049,7 +5049,7 @@ O.parseFunctionBody = function(e, t, i, n) {
|
|
|
5049
5049
|
}
|
|
5050
5050
|
this.exitScope();
|
|
5051
5051
|
};
|
|
5052
|
-
|
|
5052
|
+
T.isSimpleParamList = function(e) {
|
|
5053
5053
|
for (var t = 0, i = e; t < i.length; t += 1) {
|
|
5054
5054
|
var n = i[t];
|
|
5055
5055
|
if (n.type !== "Identifier")
|
|
@@ -5057,13 +5057,13 @@ O.isSimpleParamList = function(e) {
|
|
|
5057
5057
|
}
|
|
5058
5058
|
return !0;
|
|
5059
5059
|
};
|
|
5060
|
-
|
|
5060
|
+
T.checkParams = function(e, t) {
|
|
5061
5061
|
for (var i = /* @__PURE__ */ Object.create(null), n = 0, r = e.params; n < r.length; n += 1) {
|
|
5062
5062
|
var s = r[n];
|
|
5063
5063
|
this.checkLValInnerPattern(s, Kr, t ? null : i);
|
|
5064
5064
|
}
|
|
5065
5065
|
};
|
|
5066
|
-
|
|
5066
|
+
T.parseExprList = function(e, t, i, n) {
|
|
5067
5067
|
for (var r = [], s = !0; !this.eat(e); ) {
|
|
5068
5068
|
if (s)
|
|
5069
5069
|
s = !1;
|
|
@@ -5074,31 +5074,31 @@ O.parseExprList = function(e, t, i, n) {
|
|
|
5074
5074
|
}
|
|
5075
5075
|
return r;
|
|
5076
5076
|
};
|
|
5077
|
-
|
|
5077
|
+
T.checkUnreserved = function(e) {
|
|
5078
5078
|
var t = e.start, i = e.end, n = e.name;
|
|
5079
5079
|
if (this.inGenerator && n === "yield" && this.raiseRecoverable(t, "Cannot use 'yield' as identifier inside a generator"), this.inAsync && n === "await" && this.raiseRecoverable(t, "Cannot use 'await' as identifier inside an async function"), this.currentThisScope().inClassFieldInit && n === "arguments" && this.raiseRecoverable(t, "Cannot use 'arguments' in class field initializer"), this.inClassStaticBlock && (n === "arguments" || n === "await") && this.raise(t, "Cannot use " + n + " in class static initialization block"), this.keywords.test(n) && this.raise(t, "Unexpected keyword '" + n + "'"), !(this.options.ecmaVersion < 6 && this.input.slice(t, i).indexOf("\\") !== -1)) {
|
|
5080
5080
|
var r = this.strict ? this.reservedWordsStrict : this.reservedWords;
|
|
5081
5081
|
r.test(n) && (!this.inAsync && n === "await" && this.raiseRecoverable(t, "Cannot use keyword 'await' outside an async function"), this.raiseRecoverable(t, "The keyword '" + n + "' is reserved"));
|
|
5082
5082
|
}
|
|
5083
5083
|
};
|
|
5084
|
-
|
|
5084
|
+
T.parseIdent = function(e) {
|
|
5085
5085
|
var t = this.parseIdentNode();
|
|
5086
5086
|
return this.next(!!e), this.finishNode(t, "Identifier"), e || (this.checkUnreserved(t), t.name === "await" && !this.awaitIdentPos && (this.awaitIdentPos = t.start)), t;
|
|
5087
5087
|
};
|
|
5088
|
-
|
|
5088
|
+
T.parseIdentNode = function() {
|
|
5089
5089
|
var e = this.startNode();
|
|
5090
5090
|
return this.type === l.name ? e.name = this.value : this.type.keyword ? (e.name = this.type.keyword, (e.name === "class" || e.name === "function") && (this.lastTokEnd !== this.lastTokStart + 1 || this.input.charCodeAt(this.lastTokStart) !== 46) && this.context.pop(), this.type = l.name) : this.unexpected(), e;
|
|
5091
5091
|
};
|
|
5092
|
-
|
|
5092
|
+
T.parsePrivateIdent = function() {
|
|
5093
5093
|
var e = this.startNode();
|
|
5094
5094
|
return this.type === l.privateId ? e.name = this.value : this.unexpected(), this.next(), this.finishNode(e, "PrivateIdentifier"), this.options.checkPrivateFields && (this.privateNameStack.length === 0 ? this.raise(e.start, "Private field '#" + e.name + "' must be declared in an enclosing class") : this.privateNameStack[this.privateNameStack.length - 1].used.push(e)), e;
|
|
5095
5095
|
};
|
|
5096
|
-
|
|
5096
|
+
T.parseYield = function(e) {
|
|
5097
5097
|
this.yieldPos || (this.yieldPos = this.start);
|
|
5098
5098
|
var t = this.startNode();
|
|
5099
5099
|
return this.next(), this.type === l.semi || this.canInsertSemicolon() || this.type !== l.star && !this.type.startsExpr ? (t.delegate = !1, t.argument = null) : (t.delegate = this.eat(l.star), t.argument = this.parseMaybeAssign(e)), this.finishNode(t, "YieldExpression");
|
|
5100
5100
|
};
|
|
5101
|
-
|
|
5101
|
+
T.parseAwait = function(e) {
|
|
5102
5102
|
this.awaitPos || (this.awaitPos = this.start);
|
|
5103
5103
|
var t = this.startNode();
|
|
5104
5104
|
return this.next(), t.argument = this.parseMaybeUnary(null, !0, !1, e), this.finishNode(t, "AwaitExpression");
|
|
@@ -5170,14 +5170,14 @@ ct.currentThisScope = function() {
|
|
|
5170
5170
|
return t;
|
|
5171
5171
|
}
|
|
5172
5172
|
};
|
|
5173
|
-
var
|
|
5173
|
+
var Rn = function(t, i, n) {
|
|
5174
5174
|
this.type = "", this.start = i, this.end = 0, t.options.locations && (this.loc = new Mn(t, n)), t.options.directSourceFile && (this.sourceFile = t.options.directSourceFile), t.options.ranges && (this.range = [i, 0]);
|
|
5175
5175
|
}, qi = Y.prototype;
|
|
5176
5176
|
qi.startNode = function() {
|
|
5177
|
-
return new
|
|
5177
|
+
return new Rn(this, this.start, this.startLoc);
|
|
5178
5178
|
};
|
|
5179
5179
|
qi.startNodeAt = function(e, t) {
|
|
5180
|
-
return new
|
|
5180
|
+
return new Rn(this, e, t);
|
|
5181
5181
|
};
|
|
5182
5182
|
function Xa(e, t, i, n) {
|
|
5183
5183
|
return e.type = t, e.end = i, this.options.locations && (e.loc.end = n), this.options.ranges && (e.range[1] = i), e;
|
|
@@ -5189,7 +5189,7 @@ qi.finishNodeAt = function(e, t, i, n) {
|
|
|
5189
5189
|
return Xa.call(this, e, t, i, n);
|
|
5190
5190
|
};
|
|
5191
5191
|
qi.copyNode = function(e) {
|
|
5192
|
-
var t = new
|
|
5192
|
+
var t = new Rn(this, e.start, this.startLoc);
|
|
5193
5193
|
for (var i in e)
|
|
5194
5194
|
t[i] = e[i];
|
|
5195
5195
|
return t;
|
|
@@ -5594,7 +5594,7 @@ P.regexp_eatRegExpIdentifierPart = function(e) {
|
|
|
5594
5594
|
return e.advance(i), n === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, i) && (n = e.lastIntValue), pp(n) ? (e.lastIntValue = n, !0) : (e.pos = t, !1);
|
|
5595
5595
|
};
|
|
5596
5596
|
function pp(e) {
|
|
5597
|
-
return
|
|
5597
|
+
return Rt(e, !0) || e === 36 || e === 95 || e === 8204 || e === 8205;
|
|
5598
5598
|
}
|
|
5599
5599
|
P.regexp_eatAtomEscape = function(e) {
|
|
5600
5600
|
return this.regexp_eatBackReference(e) || this.regexp_eatCharacterClassEscape(e) || this.regexp_eatCharacterEscape(e) || e.switchN && this.regexp_eatKGroupName(e) ? !0 : (e.switchU && (e.current() === 99 && e.raise("Invalid unicode escape"), e.raise("Invalid escape")), !1);
|
|
@@ -6063,14 +6063,14 @@ P.regexp_eatFixedHexDigits = function(e, t) {
|
|
|
6063
6063
|
};
|
|
6064
6064
|
var Jr = function(t) {
|
|
6065
6065
|
this.type = t.type, this.value = t.value, this.start = t.start, this.end = t.end, t.options.locations && (this.loc = new Mn(t, t.startLoc, t.endLoc)), t.options.ranges && (this.range = [t.start, t.end]);
|
|
6066
|
-
},
|
|
6067
|
-
|
|
6066
|
+
}, H = Y.prototype;
|
|
6067
|
+
H.next = function(e) {
|
|
6068
6068
|
!e && this.type.keyword && this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword " + this.type.keyword), this.options.onToken && this.options.onToken(new Jr(this)), this.lastTokEnd = this.end, this.lastTokStart = this.start, this.lastTokEndLoc = this.endLoc, this.lastTokStartLoc = this.startLoc, this.nextToken();
|
|
6069
6069
|
};
|
|
6070
|
-
|
|
6070
|
+
H.getToken = function() {
|
|
6071
6071
|
return this.next(), new Jr(this);
|
|
6072
6072
|
};
|
|
6073
|
-
typeof Symbol < "u" && (
|
|
6073
|
+
typeof Symbol < "u" && (H[Symbol.iterator] = function() {
|
|
6074
6074
|
var e = this;
|
|
6075
6075
|
return {
|
|
6076
6076
|
next: function() {
|
|
@@ -6082,7 +6082,7 @@ typeof Symbol < "u" && (D[Symbol.iterator] = function() {
|
|
|
6082
6082
|
}
|
|
6083
6083
|
};
|
|
6084
6084
|
});
|
|
6085
|
-
|
|
6085
|
+
H.nextToken = function() {
|
|
6086
6086
|
var e = this.curContext();
|
|
6087
6087
|
if ((!e || !e.preserveSpace) && this.skipSpace(), this.start = this.pos, this.options.locations && (this.startLoc = this.curPosition()), this.pos >= this.input.length)
|
|
6088
6088
|
return this.finishToken(l.eof);
|
|
@@ -6090,17 +6090,17 @@ D.nextToken = function() {
|
|
|
6090
6090
|
return e.override(this);
|
|
6091
6091
|
this.readToken(this.fullCharCodeAtPos());
|
|
6092
6092
|
};
|
|
6093
|
-
|
|
6093
|
+
H.readToken = function(e) {
|
|
6094
6094
|
return Ke(e, this.options.ecmaVersion >= 6) || e === 92 ? this.readWord() : this.getTokenFromCode(e);
|
|
6095
6095
|
};
|
|
6096
|
-
|
|
6096
|
+
H.fullCharCodeAtPos = function() {
|
|
6097
6097
|
var e = this.input.charCodeAt(this.pos);
|
|
6098
6098
|
if (e <= 55295 || e >= 56320)
|
|
6099
6099
|
return e;
|
|
6100
6100
|
var t = this.input.charCodeAt(this.pos + 1);
|
|
6101
6101
|
return t <= 56319 || t >= 57344 ? e : (e << 10) + t - 56613888;
|
|
6102
6102
|
};
|
|
6103
|
-
|
|
6103
|
+
H.skipBlockComment = function() {
|
|
6104
6104
|
var e = this.options.onComment && this.curPosition(), t = this.pos, i = this.input.indexOf("*/", this.pos += 2);
|
|
6105
6105
|
if (i === -1 && this.raise(this.pos - 2, "Unterminated comment"), this.pos = i + 2, this.options.locations)
|
|
6106
6106
|
for (var n = void 0, r = t; (n = Na(this.input, r, this.pos)) > -1; )
|
|
@@ -6114,7 +6114,7 @@ D.skipBlockComment = function() {
|
|
|
6114
6114
|
this.curPosition()
|
|
6115
6115
|
);
|
|
6116
6116
|
};
|
|
6117
|
-
|
|
6117
|
+
H.skipLineComment = function(e) {
|
|
6118
6118
|
for (var t = this.pos, i = this.options.onComment && this.curPosition(), n = this.input.charCodeAt(this.pos += e); this.pos < this.input.length && !Xt(n); )
|
|
6119
6119
|
n = this.input.charCodeAt(++this.pos);
|
|
6120
6120
|
this.options.onComment && this.options.onComment(
|
|
@@ -6126,7 +6126,7 @@ D.skipLineComment = function(e) {
|
|
|
6126
6126
|
this.curPosition()
|
|
6127
6127
|
);
|
|
6128
6128
|
};
|
|
6129
|
-
|
|
6129
|
+
H.skipSpace = function() {
|
|
6130
6130
|
e: for (; this.pos < this.input.length; ) {
|
|
6131
6131
|
var e = this.input.charCodeAt(this.pos);
|
|
6132
6132
|
switch (e) {
|
|
@@ -6161,27 +6161,27 @@ D.skipSpace = function() {
|
|
|
6161
6161
|
}
|
|
6162
6162
|
}
|
|
6163
6163
|
};
|
|
6164
|
-
|
|
6164
|
+
H.finishToken = function(e, t) {
|
|
6165
6165
|
this.end = this.pos, this.options.locations && (this.endLoc = this.curPosition());
|
|
6166
6166
|
var i = this.type;
|
|
6167
6167
|
this.type = e, this.value = t, this.updateContext(i);
|
|
6168
6168
|
};
|
|
6169
|
-
|
|
6169
|
+
H.readToken_dot = function() {
|
|
6170
6170
|
var e = this.input.charCodeAt(this.pos + 1);
|
|
6171
6171
|
if (e >= 48 && e <= 57)
|
|
6172
6172
|
return this.readNumber(!0);
|
|
6173
6173
|
var t = this.input.charCodeAt(this.pos + 2);
|
|
6174
6174
|
return this.options.ecmaVersion >= 6 && e === 46 && t === 46 ? (this.pos += 3, this.finishToken(l.ellipsis)) : (++this.pos, this.finishToken(l.dot));
|
|
6175
6175
|
};
|
|
6176
|
-
|
|
6176
|
+
H.readToken_slash = function() {
|
|
6177
6177
|
var e = this.input.charCodeAt(this.pos + 1);
|
|
6178
6178
|
return this.exprAllowed ? (++this.pos, this.readRegexp()) : e === 61 ? this.finishOp(l.assign, 2) : this.finishOp(l.slash, 1);
|
|
6179
6179
|
};
|
|
6180
|
-
|
|
6180
|
+
H.readToken_mult_modulo_exp = function(e) {
|
|
6181
6181
|
var t = this.input.charCodeAt(this.pos + 1), i = 1, n = e === 42 ? l.star : l.modulo;
|
|
6182
6182
|
return this.options.ecmaVersion >= 7 && e === 42 && t === 42 && (++i, n = l.starstar, t = this.input.charCodeAt(this.pos + 2)), t === 61 ? this.finishOp(l.assign, i + 1) : this.finishOp(n, i);
|
|
6183
6183
|
};
|
|
6184
|
-
|
|
6184
|
+
H.readToken_pipe_amp = function(e) {
|
|
6185
6185
|
var t = this.input.charCodeAt(this.pos + 1);
|
|
6186
6186
|
if (t === e) {
|
|
6187
6187
|
if (this.options.ecmaVersion >= 12) {
|
|
@@ -6193,23 +6193,23 @@ D.readToken_pipe_amp = function(e) {
|
|
|
6193
6193
|
}
|
|
6194
6194
|
return t === 61 ? this.finishOp(l.assign, 2) : this.finishOp(e === 124 ? l.bitwiseOR : l.bitwiseAND, 1);
|
|
6195
6195
|
};
|
|
6196
|
-
|
|
6196
|
+
H.readToken_caret = function() {
|
|
6197
6197
|
var e = this.input.charCodeAt(this.pos + 1);
|
|
6198
6198
|
return e === 61 ? this.finishOp(l.assign, 2) : this.finishOp(l.bitwiseXOR, 1);
|
|
6199
6199
|
};
|
|
6200
|
-
|
|
6200
|
+
H.readToken_plus_min = function(e) {
|
|
6201
6201
|
var t = this.input.charCodeAt(this.pos + 1);
|
|
6202
6202
|
return t === e ? t === 45 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 62 && (this.lastTokEnd === 0 || _e.test(this.input.slice(this.lastTokEnd, this.pos))) ? (this.skipLineComment(3), this.skipSpace(), this.nextToken()) : this.finishOp(l.incDec, 2) : t === 61 ? this.finishOp(l.assign, 2) : this.finishOp(l.plusMin, 1);
|
|
6203
6203
|
};
|
|
6204
|
-
|
|
6204
|
+
H.readToken_lt_gt = function(e) {
|
|
6205
6205
|
var t = this.input.charCodeAt(this.pos + 1), i = 1;
|
|
6206
6206
|
return t === e ? (i = e === 62 && this.input.charCodeAt(this.pos + 2) === 62 ? 3 : 2, this.input.charCodeAt(this.pos + i) === 61 ? this.finishOp(l.assign, i + 1) : this.finishOp(l.bitShift, i)) : t === 33 && e === 60 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 45 && this.input.charCodeAt(this.pos + 3) === 45 ? (this.skipLineComment(4), this.skipSpace(), this.nextToken()) : (t === 61 && (i = 2), this.finishOp(l.relational, i));
|
|
6207
6207
|
};
|
|
6208
|
-
|
|
6208
|
+
H.readToken_eq_excl = function(e) {
|
|
6209
6209
|
var t = this.input.charCodeAt(this.pos + 1);
|
|
6210
6210
|
return t === 61 ? this.finishOp(l.equality, this.input.charCodeAt(this.pos + 2) === 61 ? 3 : 2) : e === 61 && t === 62 && this.options.ecmaVersion >= 6 ? (this.pos += 2, this.finishToken(l.arrow)) : this.finishOp(e === 61 ? l.eq : l.prefix, 1);
|
|
6211
6211
|
};
|
|
6212
|
-
|
|
6212
|
+
H.readToken_question = function() {
|
|
6213
6213
|
var e = this.options.ecmaVersion;
|
|
6214
6214
|
if (e >= 11) {
|
|
6215
6215
|
var t = this.input.charCodeAt(this.pos + 1);
|
|
@@ -6229,13 +6229,13 @@ D.readToken_question = function() {
|
|
|
6229
6229
|
}
|
|
6230
6230
|
return this.finishOp(l.question, 1);
|
|
6231
6231
|
};
|
|
6232
|
-
|
|
6232
|
+
H.readToken_numberSign = function() {
|
|
6233
6233
|
var e = this.options.ecmaVersion, t = 35;
|
|
6234
6234
|
if (e >= 13 && (++this.pos, t = this.fullCharCodeAtPos(), Ke(t, !0) || t === 92))
|
|
6235
6235
|
return this.finishToken(l.privateId, this.readWord1());
|
|
6236
6236
|
this.raise(this.pos, "Unexpected character '" + Ye(t) + "'");
|
|
6237
6237
|
};
|
|
6238
|
-
|
|
6238
|
+
H.getTokenFromCode = function(e) {
|
|
6239
6239
|
switch (e) {
|
|
6240
6240
|
case 46:
|
|
6241
6241
|
return this.readToken_dot();
|
|
@@ -6312,11 +6312,11 @@ D.getTokenFromCode = function(e) {
|
|
|
6312
6312
|
}
|
|
6313
6313
|
this.raise(this.pos, "Unexpected character '" + Ye(e) + "'");
|
|
6314
6314
|
};
|
|
6315
|
-
|
|
6315
|
+
H.finishOp = function(e, t) {
|
|
6316
6316
|
var i = this.input.slice(this.pos, this.pos + t);
|
|
6317
6317
|
return this.pos += t, this.finishToken(e, i);
|
|
6318
6318
|
};
|
|
6319
|
-
|
|
6319
|
+
H.readRegexp = function() {
|
|
6320
6320
|
for (var e, t, i = this.pos; ; ) {
|
|
6321
6321
|
this.pos >= this.input.length && this.raise(i, "Unterminated regular expression");
|
|
6322
6322
|
var n = this.input.charAt(this.pos);
|
|
@@ -6346,7 +6346,7 @@ D.readRegexp = function() {
|
|
|
6346
6346
|
}
|
|
6347
6347
|
return this.finishToken(l.regexp, { pattern: r, flags: a, value: u });
|
|
6348
6348
|
};
|
|
6349
|
-
|
|
6349
|
+
H.readInt = function(e, t, i) {
|
|
6350
6350
|
for (var n = this.options.ecmaVersion >= 12 && t === void 0, r = i && this.input.charCodeAt(this.pos) === 48, s = this.pos, a = 0, o = 0, u = 0, c = t ?? 1 / 0; u < c; ++u, ++this.pos) {
|
|
6351
6351
|
var p = this.input.charCodeAt(this.pos), d = void 0;
|
|
6352
6352
|
if (n && p === 95) {
|
|
@@ -6365,13 +6365,13 @@ function vp(e, t) {
|
|
|
6365
6365
|
function vo(e) {
|
|
6366
6366
|
return typeof BigInt != "function" ? null : BigInt(e.replace(/_/g, ""));
|
|
6367
6367
|
}
|
|
6368
|
-
|
|
6368
|
+
H.readRadixNumber = function(e) {
|
|
6369
6369
|
var t = this.pos;
|
|
6370
6370
|
this.pos += 2;
|
|
6371
6371
|
var i = this.readInt(e);
|
|
6372
6372
|
return i == null && this.raise(this.start + 2, "Expected number in radix " + e), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 ? (i = vo(this.input.slice(t, this.pos)), ++this.pos) : Ke(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(l.num, i);
|
|
6373
6373
|
};
|
|
6374
|
-
|
|
6374
|
+
H.readNumber = function(e) {
|
|
6375
6375
|
var t = this.pos;
|
|
6376
6376
|
!e && this.readInt(10, void 0, !0) === null && this.raise(t, "Invalid number");
|
|
6377
6377
|
var i = this.pos - t >= 2 && this.input.charCodeAt(t) === 48;
|
|
@@ -6385,7 +6385,7 @@ D.readNumber = function(e) {
|
|
|
6385
6385
|
var s = vp(this.input.slice(t, this.pos), i);
|
|
6386
6386
|
return this.finishToken(l.num, s);
|
|
6387
6387
|
};
|
|
6388
|
-
|
|
6388
|
+
H.readCodePoint = function() {
|
|
6389
6389
|
var e = this.input.charCodeAt(this.pos), t;
|
|
6390
6390
|
if (e === 123) {
|
|
6391
6391
|
this.options.ecmaVersion < 6 && this.unexpected();
|
|
@@ -6395,7 +6395,7 @@ D.readCodePoint = function() {
|
|
|
6395
6395
|
t = this.readHexChar(4);
|
|
6396
6396
|
return t;
|
|
6397
6397
|
};
|
|
6398
|
-
|
|
6398
|
+
H.readString = function(e) {
|
|
6399
6399
|
for (var t = "", i = ++this.pos; ; ) {
|
|
6400
6400
|
this.pos >= this.input.length && this.raise(this.start, "Unterminated string constant");
|
|
6401
6401
|
var n = this.input.charCodeAt(this.pos);
|
|
@@ -6406,7 +6406,7 @@ D.readString = function(e) {
|
|
|
6406
6406
|
return t += this.input.slice(i, this.pos++), this.finishToken(l.string, t);
|
|
6407
6407
|
};
|
|
6408
6408
|
var yo = {};
|
|
6409
|
-
|
|
6409
|
+
H.tryReadTemplateToken = function() {
|
|
6410
6410
|
this.inTemplateElement = !0;
|
|
6411
6411
|
try {
|
|
6412
6412
|
this.readTmplToken();
|
|
@@ -6418,12 +6418,12 @@ D.tryReadTemplateToken = function() {
|
|
|
6418
6418
|
}
|
|
6419
6419
|
this.inTemplateElement = !1;
|
|
6420
6420
|
};
|
|
6421
|
-
|
|
6421
|
+
H.invalidStringToken = function(e, t) {
|
|
6422
6422
|
if (this.inTemplateElement && this.options.ecmaVersion >= 9)
|
|
6423
6423
|
throw yo;
|
|
6424
6424
|
this.raise(e, t);
|
|
6425
6425
|
};
|
|
6426
|
-
|
|
6426
|
+
H.readTmplToken = function() {
|
|
6427
6427
|
for (var e = "", t = this.pos; ; ) {
|
|
6428
6428
|
this.pos >= this.input.length && this.raise(this.start, "Unterminated template");
|
|
6429
6429
|
var i = this.input.charCodeAt(this.pos);
|
|
@@ -6448,7 +6448,7 @@ D.readTmplToken = function() {
|
|
|
6448
6448
|
++this.pos;
|
|
6449
6449
|
}
|
|
6450
6450
|
};
|
|
6451
|
-
|
|
6451
|
+
H.readInvalidTemplateToken = function() {
|
|
6452
6452
|
for (; this.pos < this.input.length; this.pos++)
|
|
6453
6453
|
switch (this.input[this.pos]) {
|
|
6454
6454
|
case "\\":
|
|
@@ -6471,7 +6471,7 @@ D.readInvalidTemplateToken = function() {
|
|
|
6471
6471
|
}
|
|
6472
6472
|
this.raise(this.start, "Unterminated template");
|
|
6473
6473
|
};
|
|
6474
|
-
|
|
6474
|
+
H.readEscapedChar = function(e) {
|
|
6475
6475
|
var t = this.input.charCodeAt(++this.pos);
|
|
6476
6476
|
switch (++this.pos, t) {
|
|
6477
6477
|
case 110:
|
|
@@ -6518,29 +6518,29 @@ D.readEscapedChar = function(e) {
|
|
|
6518
6518
|
return Xt(t) ? (this.options.locations && (this.lineStart = this.pos, ++this.curLine), "") : String.fromCharCode(t);
|
|
6519
6519
|
}
|
|
6520
6520
|
};
|
|
6521
|
-
|
|
6521
|
+
H.readHexChar = function(e) {
|
|
6522
6522
|
var t = this.pos, i = this.readInt(16, e);
|
|
6523
6523
|
return i === null && this.invalidStringToken(t, "Bad character escape sequence"), i;
|
|
6524
6524
|
};
|
|
6525
|
-
|
|
6525
|
+
H.readWord1 = function() {
|
|
6526
6526
|
this.containsEsc = !1;
|
|
6527
6527
|
for (var e = "", t = !0, i = this.pos, n = this.options.ecmaVersion >= 6; this.pos < this.input.length; ) {
|
|
6528
6528
|
var r = this.fullCharCodeAtPos();
|
|
6529
|
-
if (
|
|
6529
|
+
if (Rt(r, n))
|
|
6530
6530
|
this.pos += r <= 65535 ? 1 : 2;
|
|
6531
6531
|
else if (r === 92) {
|
|
6532
6532
|
this.containsEsc = !0, e += this.input.slice(i, this.pos);
|
|
6533
6533
|
var s = this.pos;
|
|
6534
6534
|
this.input.charCodeAt(++this.pos) !== 117 && this.invalidStringToken(this.pos, "Expecting Unicode escape sequence \\uXXXX"), ++this.pos;
|
|
6535
6535
|
var a = this.readCodePoint();
|
|
6536
|
-
(t ? Ke :
|
|
6536
|
+
(t ? Ke : Rt)(a, n) || this.invalidStringToken(s, "Invalid Unicode escape"), e += Ye(a), i = this.pos;
|
|
6537
6537
|
} else
|
|
6538
6538
|
break;
|
|
6539
6539
|
t = !1;
|
|
6540
6540
|
}
|
|
6541
6541
|
return e + this.input.slice(i, this.pos);
|
|
6542
6542
|
};
|
|
6543
|
-
|
|
6543
|
+
H.readWord = function() {
|
|
6544
6544
|
var e = this.readWord1(), t = l.name;
|
|
6545
6545
|
return this.keywords.test(e) && (t = jr[e]), this.finishToken(t, e);
|
|
6546
6546
|
};
|
|
@@ -6552,13 +6552,13 @@ Y.acorn = {
|
|
|
6552
6552
|
Position: yi,
|
|
6553
6553
|
SourceLocation: Mn,
|
|
6554
6554
|
getLineInfo: za,
|
|
6555
|
-
Node:
|
|
6556
|
-
TokenType:
|
|
6555
|
+
Node: Rn,
|
|
6556
|
+
TokenType: U,
|
|
6557
6557
|
tokTypes: l,
|
|
6558
6558
|
keywordTypes: jr,
|
|
6559
6559
|
TokContext: Pe,
|
|
6560
6560
|
tokContexts: B,
|
|
6561
|
-
isIdentifierChar:
|
|
6561
|
+
isIdentifierChar: Rt,
|
|
6562
6562
|
isIdentifierStart: Ke,
|
|
6563
6563
|
Token: Jr,
|
|
6564
6564
|
isNewLine: Xt,
|
|
@@ -6862,7 +6862,7 @@ function Xr(e) {
|
|
|
6862
6862
|
message: Ct("syntaxError", i.message),
|
|
6863
6863
|
line: i.loc?.line,
|
|
6864
6864
|
column: i.loc?.column,
|
|
6865
|
-
code:
|
|
6865
|
+
code: Op(e, i.loc?.line)
|
|
6866
6866
|
});
|
|
6867
6867
|
}
|
|
6868
6868
|
return {
|
|
@@ -6886,7 +6886,7 @@ function Ep(e, t) {
|
|
|
6886
6886
|
},
|
|
6887
6887
|
// Check new expressions (e.g., new Function())
|
|
6888
6888
|
NewExpression(i) {
|
|
6889
|
-
|
|
6889
|
+
Ap(i, t);
|
|
6890
6890
|
},
|
|
6891
6891
|
// Check dynamic imports
|
|
6892
6892
|
ImportExpression(i) {
|
|
@@ -6900,7 +6900,7 @@ function Ep(e, t) {
|
|
|
6900
6900
|
// Track variable declarations to avoid false positives
|
|
6901
6901
|
VariableDeclaration(i, n) {
|
|
6902
6902
|
i.declarations.forEach((r) => {
|
|
6903
|
-
r.id.type === "Identifier" &&
|
|
6903
|
+
r.id.type === "Identifier" && Vp(t).add(r.id.name);
|
|
6904
6904
|
});
|
|
6905
6905
|
},
|
|
6906
6906
|
// Track function parameters
|
|
@@ -6926,7 +6926,7 @@ function Ep(e, t) {
|
|
|
6926
6926
|
}
|
|
6927
6927
|
function Pp(e, t, i) {
|
|
6928
6928
|
const n = e.name;
|
|
6929
|
-
if (
|
|
6929
|
+
if (Tp(n, t))
|
|
6930
6930
|
return;
|
|
6931
6931
|
if (_p(n)) {
|
|
6932
6932
|
t.errors.push({
|
|
@@ -7014,7 +7014,7 @@ function Ip(e, t) {
|
|
|
7014
7014
|
});
|
|
7015
7015
|
}
|
|
7016
7016
|
}
|
|
7017
|
-
function
|
|
7017
|
+
function Ap(e, t) {
|
|
7018
7018
|
Co(e.callee) === "Function" && t.errors.push({
|
|
7019
7019
|
type: "forbidden_function",
|
|
7020
7020
|
message: Ct("Function"),
|
|
@@ -7026,13 +7026,13 @@ function Vp(e, t) {
|
|
|
7026
7026
|
function Co(e) {
|
|
7027
7027
|
return e.type === "Identifier" ? e.name : e.type === "MemberExpression" && e.property.type === "Identifier" ? e.property.name : null;
|
|
7028
7028
|
}
|
|
7029
|
-
function
|
|
7029
|
+
function Vp(e, t) {
|
|
7030
7030
|
return e.scopeStack[e.scopeStack.length - 1];
|
|
7031
7031
|
}
|
|
7032
|
-
function
|
|
7032
|
+
function Tp(e, t) {
|
|
7033
7033
|
return t.declaredVariables.has(e) || t.scopeStack.some((i) => i.has(e));
|
|
7034
7034
|
}
|
|
7035
|
-
function
|
|
7035
|
+
function Op(e, t) {
|
|
7036
7036
|
return t ? e.split(`
|
|
7037
7037
|
`)[t - 1]?.trim() : void 0;
|
|
7038
7038
|
}
|
|
@@ -7126,7 +7126,7 @@ const cr = {}, wo = [
|
|
|
7126
7126
|
"HideToast",
|
|
7127
7127
|
"ClearAllToasts"
|
|
7128
7128
|
];
|
|
7129
|
-
function
|
|
7129
|
+
function Dp(e) {
|
|
7130
7130
|
if (!cr[e]) {
|
|
7131
7131
|
const t = Xr(e);
|
|
7132
7132
|
if (!t.valid)
|
|
@@ -7138,7 +7138,7 @@ function Hp(e) {
|
|
|
7138
7138
|
}
|
|
7139
7139
|
return cr[e];
|
|
7140
7140
|
}
|
|
7141
|
-
const
|
|
7141
|
+
const Hp = (e, t) => new Proxy(e, {
|
|
7142
7142
|
set: (i, n, r) => {
|
|
7143
7143
|
let s = Reflect.set(i, n, r);
|
|
7144
7144
|
return typeof n == "string" && t(i, n, r), s;
|
|
@@ -7154,7 +7154,7 @@ function Mp(e, t, i = {}) {
|
|
|
7154
7154
|
if (e.Event = i.event, e.Current.style = e.Current.style ?? {}, e.styleProxyCache.has(e.Current.style))
|
|
7155
7155
|
e.Current.style = e.styleProxyCache.get(e.Current.style);
|
|
7156
7156
|
else {
|
|
7157
|
-
const n =
|
|
7157
|
+
const n = Hp(e.Current.style, (r, s, a) => {
|
|
7158
7158
|
e.setComponentRuntimeStyleAttribute(
|
|
7159
7159
|
e.Current.uniqueUUID,
|
|
7160
7160
|
s,
|
|
@@ -7164,7 +7164,7 @@ function Mp(e, t, i = {}) {
|
|
|
7164
7164
|
e.Current.style = n, e.styleProxyCache.set(e.Current.style, n);
|
|
7165
7165
|
}
|
|
7166
7166
|
}
|
|
7167
|
-
function
|
|
7167
|
+
function Up(e) {
|
|
7168
7168
|
return {
|
|
7169
7169
|
context: e.context,
|
|
7170
7170
|
applications: e.applications,
|
|
@@ -7177,7 +7177,7 @@ function Rp(e) {
|
|
|
7177
7177
|
Event: e.Event
|
|
7178
7178
|
};
|
|
7179
7179
|
}
|
|
7180
|
-
function
|
|
7180
|
+
function Rp(e) {
|
|
7181
7181
|
const { context: t } = e;
|
|
7182
7182
|
return {
|
|
7183
7183
|
/**
|
|
@@ -7252,7 +7252,7 @@ function Up(e) {
|
|
|
7252
7252
|
* ```
|
|
7253
7253
|
*/
|
|
7254
7254
|
SetVar: (i, n) => {
|
|
7255
|
-
|
|
7255
|
+
Ue("global", i, n);
|
|
7256
7256
|
},
|
|
7257
7257
|
/**
|
|
7258
7258
|
* Gets a global variable value.
|
|
@@ -7461,7 +7461,7 @@ function Up(e) {
|
|
|
7461
7461
|
* ```
|
|
7462
7462
|
*/
|
|
7463
7463
|
SetContextVar: (i, n, r) => {
|
|
7464
|
-
|
|
7464
|
+
Ue(r.application_id, i, n);
|
|
7465
7465
|
}
|
|
7466
7466
|
};
|
|
7467
7467
|
}
|
|
@@ -7591,13 +7591,13 @@ class Lt {
|
|
|
7591
7591
|
return !0;
|
|
7592
7592
|
const S = Reflect.set(c, p, d, v);
|
|
7593
7593
|
if (u) {
|
|
7594
|
-
const
|
|
7595
|
-
console.log(`${
|
|
7594
|
+
const A = n ? `[${n}]` : "[Global]";
|
|
7595
|
+
console.log(`${A} Setting property '${String(p)}' to '${d}'`);
|
|
7596
7596
|
}
|
|
7597
7597
|
const k = s[String(p)] || /* @__PURE__ */ new Set();
|
|
7598
7598
|
if (o(String(p), d, k), r) {
|
|
7599
|
-
const
|
|
7600
|
-
(u || r === "Vars" && String(p) === "selectedComponents") && console.log(`[RuntimeContextHelpers] Emitting event: ${
|
|
7599
|
+
const A = n ? `${n}:${r}:${String(p)}` : `${r}:${String(p)}`;
|
|
7600
|
+
(u || r === "Vars" && String(p) === "selectedComponents") && console.log(`[RuntimeContextHelpers] Emitting event: ${A}`, { value: d, ctx: a }), C.emit(A, {
|
|
7601
7601
|
value: d,
|
|
7602
7602
|
ctx: a
|
|
7603
7603
|
// IMPORTANT: Include ctx for scope events (e.g., Vars:selectedComponents)
|
|
@@ -7634,16 +7634,16 @@ class Lt {
|
|
|
7634
7634
|
} catch {
|
|
7635
7635
|
S = !1;
|
|
7636
7636
|
}
|
|
7637
|
-
if (!S && ((s[o] || /* @__PURE__ */ new Set()).forEach((
|
|
7638
|
-
const j = n ? `${n}:component-property-changed:${
|
|
7637
|
+
if (!S && ((s[o] || /* @__PURE__ */ new Set()).forEach((A) => {
|
|
7638
|
+
const j = n ? `${n}:component-property-changed:${A}` : `component-property-changed:${A}`;
|
|
7639
7639
|
C.emit(j, {
|
|
7640
7640
|
prop: o,
|
|
7641
7641
|
value: d,
|
|
7642
7642
|
ctx: a
|
|
7643
7643
|
});
|
|
7644
7644
|
}), r)) {
|
|
7645
|
-
const
|
|
7646
|
-
C.emit(
|
|
7645
|
+
const A = n ? `${n}:${r}:${o}.${String(p)}` : `${r}:${o}.${String(p)}`;
|
|
7646
|
+
C.emit(A, {
|
|
7647
7647
|
prop: p,
|
|
7648
7648
|
value: d,
|
|
7649
7649
|
oldValue: b,
|
|
@@ -7759,7 +7759,7 @@ class Lt {
|
|
|
7759
7759
|
}
|
|
7760
7760
|
}
|
|
7761
7761
|
const qp = !1;
|
|
7762
|
-
class
|
|
7762
|
+
class Ot {
|
|
7763
7763
|
/**
|
|
7764
7764
|
* Private constructor to enforce singleton pattern.
|
|
7765
7765
|
* Initializes the executor system and sets up event listeners.
|
|
@@ -7950,7 +7950,7 @@ class Tt {
|
|
|
7950
7950
|
* @returns The singleton RuntimeContext instance
|
|
7951
7951
|
*/
|
|
7952
7952
|
static getInstance() {
|
|
7953
|
-
return
|
|
7953
|
+
return Ot.instance || (Ot.instance = new Ot()), Ot.instance;
|
|
7954
7954
|
}
|
|
7955
7955
|
/**
|
|
7956
7956
|
* Registers the global context.
|
|
@@ -7988,10 +7988,10 @@ class Tt {
|
|
|
7988
7988
|
}), N.components = i, this.PropertiesProxy = i, this.updateEditorContext();
|
|
7989
7989
|
}
|
|
7990
7990
|
}
|
|
7991
|
-
const Zr =
|
|
7991
|
+
const Zr = Ot.getInstance();
|
|
7992
7992
|
Zr.setcomponentRuntimeStyleAttribute = ka;
|
|
7993
7993
|
qe || (globalThis.__NURALY_EXECUTE_INSTANCE__ = Zr);
|
|
7994
|
-
const
|
|
7994
|
+
const R = Zr, So = typeof window > "u", qs = So ? [] : JSON.parse(window.__INITIAL_CURRENT_APPLICATION_STATE__ ?? null), Eo = {};
|
|
7995
7995
|
qs && !So && (Eo[qs.uuid] = JSON.parse(
|
|
7996
7996
|
window.__INITIAL_PAGE_STATE__ ?? []
|
|
7997
7997
|
));
|
|
@@ -8024,10 +8024,10 @@ const Wp = Yt("show_border", !1, {
|
|
|
8024
8024
|
}), Ln = () => {
|
|
8025
8025
|
const e = F.get();
|
|
8026
8026
|
Object.keys(e).forEach((t) => {
|
|
8027
|
-
|
|
8027
|
+
Ue(t, `${t}.appPages`, e[t]), R.VarsProxy[`${t}.appPages`] = e[t];
|
|
8028
8028
|
});
|
|
8029
8029
|
};
|
|
8030
|
-
|
|
8030
|
+
Tn(F, () => {
|
|
8031
8031
|
Ln();
|
|
8032
8032
|
});
|
|
8033
8033
|
Ko(F, () => {
|
|
@@ -8039,7 +8039,7 @@ function Jp(e, t) {
|
|
|
8039
8039
|
[t]: [e, ...F.get()[t] || []]
|
|
8040
8040
|
});
|
|
8041
8041
|
const i = F.get()[t];
|
|
8042
|
-
|
|
8042
|
+
Ue(t, `${t}.appPages`, i);
|
|
8043
8043
|
}
|
|
8044
8044
|
function ko(e, t) {
|
|
8045
8045
|
F.set({
|
|
@@ -8047,7 +8047,7 @@ function ko(e, t) {
|
|
|
8047
8047
|
[t]: [...F.get()[t].map((n) => n.uuid == e.uuid ? e : n) || []]
|
|
8048
8048
|
});
|
|
8049
8049
|
const i = F.get()[t];
|
|
8050
|
-
|
|
8050
|
+
Ue(t, `${t}.appPages`, i);
|
|
8051
8051
|
}
|
|
8052
8052
|
const Qp = (e, t, i) => {
|
|
8053
8053
|
fetch("/api/pages", {
|
|
@@ -8078,7 +8078,7 @@ const Xp = 100, Bn = (e, t) => {
|
|
|
8078
8078
|
});
|
|
8079
8079
|
};
|
|
8080
8080
|
function Ws(e) {
|
|
8081
|
-
const i = de.get().uuid, n =
|
|
8081
|
+
const i = de.get().uuid, n = R.Vars.currentPage, r = F.get(), s = r[i].find((a) => a.uuid === n);
|
|
8082
8082
|
if (s) {
|
|
8083
8083
|
const { component_ids: a = [] } = s;
|
|
8084
8084
|
a.push(e);
|
|
@@ -8111,7 +8111,7 @@ const ot = (e, t) => {
|
|
|
8111
8111
|
}), console.error(r);
|
|
8112
8112
|
});
|
|
8113
8113
|
}, gn = (e, t, i, n = !0) => {
|
|
8114
|
-
const r =
|
|
8114
|
+
const r = R.Vars.selectedComponents?.[0]?.uuid, s = L.get(), a = s[i] || [], o = a.find((p) => p.uuid === r), u = e.uuid ?? Nt(), c = {
|
|
8115
8115
|
...e,
|
|
8116
8116
|
uuid: u,
|
|
8117
8117
|
pageId: t,
|
|
@@ -8151,7 +8151,7 @@ const ot = (e, t) => {
|
|
|
8151
8151
|
}
|
|
8152
8152
|
};
|
|
8153
8153
|
function eh(e) {
|
|
8154
|
-
const i = de.get().uuid, n =
|
|
8154
|
+
const i = de.get().uuid, n = R.Vars.currentPage, r = F.get(), s = r[i].find((a) => a.uuid === n);
|
|
8155
8155
|
if (s) {
|
|
8156
8156
|
const { component_ids: a = [] } = s, o = a.filter(
|
|
8157
8157
|
(p) => p !== e
|
|
@@ -8195,7 +8195,7 @@ function ih(e, t, i = "inside") {
|
|
|
8195
8195
|
}
|
|
8196
8196
|
if (y.childrenIds)
|
|
8197
8197
|
for (const S of y.childrenIds) {
|
|
8198
|
-
const k = r.find((
|
|
8198
|
+
const k = r.find((A) => A.uuid === S);
|
|
8199
8199
|
if (k && (u(k), s))
|
|
8200
8200
|
return;
|
|
8201
8201
|
}
|
|
@@ -8206,7 +8206,7 @@ function ih(e, t, i = "inside") {
|
|
|
8206
8206
|
if (!s || s.uuid === e)
|
|
8207
8207
|
return;
|
|
8208
8208
|
r.some((y) => y.uuid === t) || r.push({ ...s });
|
|
8209
|
-
const c =
|
|
8209
|
+
const c = R.Vars.currentPage, p = F.get()[n], d = p.findIndex((y) => y.uuid === c);
|
|
8210
8210
|
if (d < 0) return;
|
|
8211
8211
|
const v = p[d];
|
|
8212
8212
|
a ? (o = a.childrenIds?.indexOf(t) ?? -1, a.childrenIds = a.childrenIds?.filter((y) => y !== t), ot(a, n)) : (o = v.component_ids.indexOf(t), v.component_ids = v.component_ids.filter((y) => y !== t), "root" in s && (s.root = !1));
|
|
@@ -8222,8 +8222,8 @@ function ih(e, t, i = "inside") {
|
|
|
8222
8222
|
if (S) {
|
|
8223
8223
|
const k = S.childrenIds?.indexOf(e);
|
|
8224
8224
|
if (k != null && k >= 0) {
|
|
8225
|
-
let
|
|
8226
|
-
i === "after" ?
|
|
8225
|
+
let A = k;
|
|
8226
|
+
i === "after" ? A += 1 : i === "before" && (A = Math.max(0, A)), S.childrenIds?.splice(A, 0, t);
|
|
8227
8227
|
} else
|
|
8228
8228
|
S.childrenIds?.push(t);
|
|
8229
8229
|
ot(S, n);
|
|
@@ -8231,11 +8231,11 @@ function ih(e, t, i = "inside") {
|
|
|
8231
8231
|
s.root = !0;
|
|
8232
8232
|
const k = v.component_ids.indexOf(e);
|
|
8233
8233
|
if (k >= 0) {
|
|
8234
|
-
let
|
|
8235
|
-
i === "after" ?
|
|
8234
|
+
let A = k;
|
|
8235
|
+
i === "after" ? A += 1 : i === "before" && (A = Math.max(0, A)), v.component_ids.splice(A, 0, t);
|
|
8236
8236
|
} else {
|
|
8237
|
-
const
|
|
8238
|
-
v.component_ids.splice(
|
|
8237
|
+
const A = o >= 0 && o <= v.component_ids.length ? o : v.component_ids.length;
|
|
8238
|
+
v.component_ids.splice(A, 0, t);
|
|
8239
8239
|
}
|
|
8240
8240
|
}
|
|
8241
8241
|
}
|
|
@@ -8268,7 +8268,7 @@ function nh(e, t, i, n = !0) {
|
|
|
8268
8268
|
}, 0);
|
|
8269
8269
|
const c = F.get();
|
|
8270
8270
|
Object.keys(c).forEach((p) => {
|
|
8271
|
-
|
|
8271
|
+
Ue(p, `${p}.appPages`, c[p]), R.VarsProxy[`${p}.appPages`] = [...c[p]];
|
|
8272
8272
|
}), C.emit("component:updated"), Ln();
|
|
8273
8273
|
}
|
|
8274
8274
|
}
|
|
@@ -8281,7 +8281,7 @@ ${e.map(
|
|
|
8281
8281
|
`)}`;
|
|
8282
8282
|
}
|
|
8283
8283
|
function dt(e, t, i, n, r = !0) {
|
|
8284
|
-
const s =
|
|
8284
|
+
const s = R.Vars.currentPlatform ?? {
|
|
8285
8285
|
platform: "desktop",
|
|
8286
8286
|
isMobile: !1
|
|
8287
8287
|
}, o = L.get()[e] || [], u = o.findIndex(
|
|
@@ -8334,14 +8334,14 @@ function dt(e, t, i, n, r = !0) {
|
|
|
8334
8334
|
L.setKey(`${e}[${u}]`, c), r && setTimeout(() => {
|
|
8335
8335
|
ot(c, e);
|
|
8336
8336
|
}, 0);
|
|
8337
|
-
const j =
|
|
8338
|
-
j !== -1 && (
|
|
8337
|
+
const j = R.VarsProxy.selectedComponents.findIndex((q) => q.uuid === c.uuid);
|
|
8338
|
+
j !== -1 && (R.VarsProxy.selectedComponents[j] = c), C.emit("component:updated"), C.emit(`component-updated:${String(t)}`);
|
|
8339
8339
|
}
|
|
8340
8340
|
}
|
|
8341
8341
|
}
|
|
8342
8342
|
function sh(e) {
|
|
8343
8343
|
delete e.parent, delete e.children, delete e.childrens;
|
|
8344
|
-
const t = e.application_id, i =
|
|
8344
|
+
const t = e.application_id, i = Re(t).get(), n = i.find((o) => o.uuid === e.uuid), s = sl(i, n).map((o) => i.find((u) => u.uuid === o));
|
|
8345
8345
|
delete n.parent, delete n.children, delete n.childrens;
|
|
8346
8346
|
const a = oh(n, s);
|
|
8347
8347
|
navigator.clipboard.writeText(JSON.stringify(a, null, 2)).then(() => {
|
|
@@ -8363,7 +8363,7 @@ function Io(e) {
|
|
|
8363
8363
|
console.error("Schema version not supported");
|
|
8364
8364
|
return;
|
|
8365
8365
|
} else {
|
|
8366
|
-
const i = lh(t), [n, r] = uh(i), s = de.get()?.uuid, a =
|
|
8366
|
+
const i = lh(t), [n, r] = uh(i), s = de.get()?.uuid, a = R.Vars.currentPage;
|
|
8367
8367
|
r.forEach(
|
|
8368
8368
|
(o) => {
|
|
8369
8369
|
delete o.root, gn(o, a, s, !1);
|
|
@@ -8479,7 +8479,7 @@ function hh() {
|
|
|
8479
8479
|
* Updates component style, supporting pseudo-states
|
|
8480
8480
|
*/
|
|
8481
8481
|
updateStyle: (e, t, i) => {
|
|
8482
|
-
const n =
|
|
8482
|
+
const n = R.Vars.selected_component_style_state;
|
|
8483
8483
|
let r;
|
|
8484
8484
|
if (n && n !== "default") {
|
|
8485
8485
|
const s = e.style?.[n] || {};
|
|
@@ -8635,7 +8635,7 @@ function Sh() {
|
|
|
8635
8635
|
* Navigates to a URL
|
|
8636
8636
|
*/
|
|
8637
8637
|
NavigateToUrl: (e) => {
|
|
8638
|
-
window.location.href = e,
|
|
8638
|
+
window.location.href = e, R.Event?.preventDefault?.(), R.Event?.stopPropagation?.();
|
|
8639
8639
|
},
|
|
8640
8640
|
/**
|
|
8641
8641
|
* Navigates to a hash anchor and scrolls to it
|
|
@@ -8645,18 +8645,18 @@ function Sh() {
|
|
|
8645
8645
|
const t = document.querySelector(e);
|
|
8646
8646
|
t && t.scrollIntoView({ behavior: "smooth" });
|
|
8647
8647
|
}
|
|
8648
|
-
|
|
8648
|
+
R.Event?.preventDefault?.(), R.Event?.stopPropagation?.();
|
|
8649
8649
|
},
|
|
8650
8650
|
/**
|
|
8651
8651
|
* Navigates to a page by name within the current application
|
|
8652
8652
|
*/
|
|
8653
8653
|
NavigateToPage: (e) => {
|
|
8654
|
-
|
|
8655
|
-
const t =
|
|
8654
|
+
R.Event?.preventDefault?.(), R.Event?.stopPropagation?.();
|
|
8655
|
+
const t = R.GetVar("currentEditingApplication"), n = R.GetContextVar(
|
|
8656
8656
|
t?.uuid + ".appPages",
|
|
8657
8657
|
t?.uuid
|
|
8658
8658
|
)?.find((r) => r.name === e);
|
|
8659
|
-
n && (
|
|
8659
|
+
n && (R.VarsProxy.currentPage = n.uuid);
|
|
8660
8660
|
}
|
|
8661
8661
|
};
|
|
8662
8662
|
}
|
|
@@ -8742,11 +8742,11 @@ function Ih() {
|
|
|
8742
8742
|
* @returns Function execution result
|
|
8743
8743
|
*/
|
|
8744
8744
|
InvokeFunction: async (e, t = {}) => {
|
|
8745
|
-
if (!
|
|
8745
|
+
if (!R.Vars.studio_functions) {
|
|
8746
8746
|
const n = await kh();
|
|
8747
|
-
|
|
8747
|
+
R.VarsProxy.studio_functions = [...n];
|
|
8748
8748
|
}
|
|
8749
|
-
const i = (
|
|
8749
|
+
const i = (R.Vars.studio_functions ?? []).find((n) => n.label === e);
|
|
8750
8750
|
try {
|
|
8751
8751
|
const n = await Ph(i.id, t);
|
|
8752
8752
|
return (n.headers?.get("Content-Type") || "").includes("application/json") ? await n.json() : await n.text();
|
|
@@ -8756,13 +8756,13 @@ function Ih() {
|
|
|
8756
8756
|
}
|
|
8757
8757
|
};
|
|
8758
8758
|
}
|
|
8759
|
-
function
|
|
8759
|
+
function Ah(e) {
|
|
8760
8760
|
st.get().tabs.find((i) => i.id === e.id) || st.set({
|
|
8761
8761
|
...st.get(),
|
|
8762
8762
|
tabs: [...st.get().tabs, e]
|
|
8763
8763
|
});
|
|
8764
8764
|
}
|
|
8765
|
-
function
|
|
8765
|
+
function Vh(e) {
|
|
8766
8766
|
st.set({
|
|
8767
8767
|
...st.get(),
|
|
8768
8768
|
currentTab: e
|
|
@@ -8775,17 +8775,17 @@ const ts = Z(
|
|
|
8775
8775
|
/* Edit */
|
|
8776
8776
|
}
|
|
8777
8777
|
);
|
|
8778
|
-
|
|
8779
|
-
function
|
|
8778
|
+
Or(ts);
|
|
8779
|
+
function Th() {
|
|
8780
8780
|
return {
|
|
8781
8781
|
/**
|
|
8782
8782
|
* Opens an editor tab
|
|
8783
8783
|
*/
|
|
8784
|
-
openEditorTab:
|
|
8784
|
+
openEditorTab: Ah,
|
|
8785
8785
|
/**
|
|
8786
8786
|
* Sets the current active editor tab
|
|
8787
8787
|
*/
|
|
8788
|
-
setCurrentEditorTab:
|
|
8788
|
+
setCurrentEditorTab: Vh,
|
|
8789
8789
|
/**
|
|
8790
8790
|
* Creates components from schema text
|
|
8791
8791
|
*/
|
|
@@ -8794,7 +8794,7 @@ function Oh() {
|
|
|
8794
8794
|
}
|
|
8795
8795
|
};
|
|
8796
8796
|
}
|
|
8797
|
-
function
|
|
8797
|
+
function Oh() {
|
|
8798
8798
|
return {
|
|
8799
8799
|
/**
|
|
8800
8800
|
* Shows a toast notification
|
|
@@ -8876,9 +8876,9 @@ function Th() {
|
|
|
8876
8876
|
}
|
|
8877
8877
|
};
|
|
8878
8878
|
}
|
|
8879
|
-
function
|
|
8879
|
+
function Dh(e) {
|
|
8880
8880
|
return {
|
|
8881
|
-
...
|
|
8881
|
+
...Rp(e),
|
|
8882
8882
|
...ph(e),
|
|
8883
8883
|
...hh(),
|
|
8884
8884
|
...gh(),
|
|
@@ -8886,21 +8886,21 @@ function Hh(e) {
|
|
|
8886
8886
|
...Sh(),
|
|
8887
8887
|
...Eh(),
|
|
8888
8888
|
...Ih(),
|
|
8889
|
-
...
|
|
8890
|
-
...
|
|
8889
|
+
...Th(),
|
|
8890
|
+
...Oh()
|
|
8891
8891
|
};
|
|
8892
8892
|
}
|
|
8893
|
-
function
|
|
8894
|
-
return e?.__microAppContext?.runtimeContext ||
|
|
8893
|
+
function Hh(e) {
|
|
8894
|
+
return e?.__microAppContext?.runtimeContext || R;
|
|
8895
8895
|
}
|
|
8896
8896
|
function z(e, t, i = {}, n = {}) {
|
|
8897
|
-
const r =
|
|
8897
|
+
const r = Hh(e);
|
|
8898
8898
|
if (Mp(r, e, i), qe)
|
|
8899
8899
|
return;
|
|
8900
|
-
const s =
|
|
8900
|
+
const s = Up(r), a = Dh(s);
|
|
8901
8901
|
let o;
|
|
8902
8902
|
try {
|
|
8903
|
-
o =
|
|
8903
|
+
o = Dp(t);
|
|
8904
8904
|
} catch (c) {
|
|
8905
8905
|
const p = c instanceof Error ? c.message : "Unknown compilation error";
|
|
8906
8906
|
throw a.ShowErrorToast && a.ShowErrorToast(p, 5e3), c;
|
|
@@ -8913,7 +8913,7 @@ function z(e, t, i = {}, n = {}) {
|
|
|
8913
8913
|
debug: N.Console.debug
|
|
8914
8914
|
};
|
|
8915
8915
|
return o(
|
|
8916
|
-
|
|
8916
|
+
Dc,
|
|
8917
8917
|
C,
|
|
8918
8918
|
s.PropertiesProxy,
|
|
8919
8919
|
N,
|
|
@@ -8983,7 +8983,7 @@ function Mh(e) {
|
|
|
8983
8983
|
* Copyright 2020 Google LLC
|
|
8984
8984
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
8985
8985
|
*/
|
|
8986
|
-
const
|
|
8986
|
+
const Uh = (e) => e.strings === void 0;
|
|
8987
8987
|
/**
|
|
8988
8988
|
* @license
|
|
8989
8989
|
* Copyright 2017 Google LLC
|
|
@@ -9022,7 +9022,7 @@ const pi = (e, t) => {
|
|
|
9022
9022
|
if ((t = e._$AM) === void 0) break;
|
|
9023
9023
|
i = t._$AN, i.delete(e), e = t;
|
|
9024
9024
|
} while (i?.size === 0);
|
|
9025
|
-
},
|
|
9025
|
+
}, Ao = (e) => {
|
|
9026
9026
|
for (let t; t = e._$AM; e = t) {
|
|
9027
9027
|
let i = t._$AN;
|
|
9028
9028
|
if (i === void 0) t._$AN = i = /* @__PURE__ */ new Set();
|
|
@@ -9030,8 +9030,8 @@ const pi = (e, t) => {
|
|
|
9030
9030
|
i.add(e), Lh(t);
|
|
9031
9031
|
}
|
|
9032
9032
|
};
|
|
9033
|
-
function
|
|
9034
|
-
this._$AN !== void 0 ? (vn(this), this._$AM = e,
|
|
9033
|
+
function Rh(e) {
|
|
9034
|
+
this._$AN !== void 0 ? (vn(this), this._$AM = e, Ao(this)) : this._$AM = e;
|
|
9035
9035
|
}
|
|
9036
9036
|
function Nh(e, t = !1, i = 0) {
|
|
9037
9037
|
const n = this._$AH, r = this._$AN;
|
|
@@ -9040,20 +9040,20 @@ function Nh(e, t = !1, i = 0) {
|
|
|
9040
9040
|
else pi(this, e);
|
|
9041
9041
|
}
|
|
9042
9042
|
const Lh = (e) => {
|
|
9043
|
-
e.type == jn.CHILD && (e._$AP ??= Nh, e._$AQ ??=
|
|
9043
|
+
e.type == jn.CHILD && (e._$AP ??= Nh, e._$AQ ??= Rh);
|
|
9044
9044
|
};
|
|
9045
9045
|
class Bh extends qn {
|
|
9046
9046
|
constructor() {
|
|
9047
9047
|
super(...arguments), this._$AN = void 0;
|
|
9048
9048
|
}
|
|
9049
9049
|
_$AT(t, i, n) {
|
|
9050
|
-
super._$AT(t, i, n),
|
|
9050
|
+
super._$AT(t, i, n), Ao(this), this.isConnected = t._$AU;
|
|
9051
9051
|
}
|
|
9052
9052
|
_$AO(t, i = !0) {
|
|
9053
9053
|
t !== this.isConnected && (this.isConnected = t, t ? this.reconnected?.() : this.disconnected?.()), i && (pi(this, t), vn(this));
|
|
9054
9054
|
}
|
|
9055
9055
|
setValue(t) {
|
|
9056
|
-
if (
|
|
9056
|
+
if (Uh(this.t)) this.t._$AI(t, this);
|
|
9057
9057
|
else {
|
|
9058
9058
|
const i = [...this.t._$AH];
|
|
9059
9059
|
i[this.i] = t, this.t._$AI(i, this, 0);
|
|
@@ -9072,7 +9072,7 @@ class Bh extends qn {
|
|
|
9072
9072
|
const Qe = () => new zh();
|
|
9073
9073
|
class zh {
|
|
9074
9074
|
}
|
|
9075
|
-
const pr = /* @__PURE__ */ new WeakMap(),
|
|
9075
|
+
const pr = /* @__PURE__ */ new WeakMap(), O = Fn(class extends Bh {
|
|
9076
9076
|
render(e) {
|
|
9077
9077
|
return m;
|
|
9078
9078
|
}
|
|
@@ -9102,7 +9102,7 @@ const pr = /* @__PURE__ */ new WeakMap(), T = Fn(class extends Bh {
|
|
|
9102
9102
|
* Copyright 2018 Google LLC
|
|
9103
9103
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
9104
9104
|
*/
|
|
9105
|
-
const
|
|
9105
|
+
const Vo = "important", jh = " !" + Vo, $ = Fn(class extends qn {
|
|
9106
9106
|
constructor(e) {
|
|
9107
9107
|
if (super(e), e.type !== jn.ATTRIBUTE || e.name !== "style" || e.strings?.length > 2) throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");
|
|
9108
9108
|
}
|
|
@@ -9121,7 +9121,7 @@ const Ao = "important", jh = " !" + Ao, $ = Fn(class extends qn {
|
|
|
9121
9121
|
if (r != null) {
|
|
9122
9122
|
this.ft.add(n);
|
|
9123
9123
|
const s = typeof r == "string" && r.endsWith(jh);
|
|
9124
|
-
n.includes("-") || s ? i.setProperty(n, s ? r.slice(0, -11) : r, s ?
|
|
9124
|
+
n.includes("-") || s ? i.setProperty(n, s ? r.slice(0, -11) : r, s ? Vo : "") : i[n] = r;
|
|
9125
9125
|
}
|
|
9126
9126
|
}
|
|
9127
9127
|
return Ge;
|
|
@@ -9132,7 +9132,7 @@ var Fh = Object.defineProperty, qh = Object.getOwnPropertyDescriptor, et = (e, t
|
|
|
9132
9132
|
(a = e[s]) && (r = (n ? a(t, i, r) : a(r)) || r);
|
|
9133
9133
|
return n && r && Fh(t, i, r), r;
|
|
9134
9134
|
};
|
|
9135
|
-
let
|
|
9135
|
+
let Ae = class extends ce {
|
|
9136
9136
|
constructor() {
|
|
9137
9137
|
super(...arguments), this.slotRef = Qe(), this.dropBeforePlaceHolderStyle = {
|
|
9138
9138
|
opacity: "0",
|
|
@@ -9226,8 +9226,8 @@ let Ve = class extends ce {
|
|
|
9226
9226
|
`;
|
|
9227
9227
|
}
|
|
9228
9228
|
};
|
|
9229
|
-
|
|
9230
|
-
|
|
9229
|
+
Ae.styles = [
|
|
9230
|
+
D`
|
|
9231
9231
|
.drop-zone {
|
|
9232
9232
|
position: relative;
|
|
9233
9233
|
opacity: 0;
|
|
@@ -9266,31 +9266,31 @@ Ve.styles = [
|
|
|
9266
9266
|
];
|
|
9267
9267
|
et([
|
|
9268
9268
|
g({ type: Object })
|
|
9269
|
-
],
|
|
9269
|
+
], Ae.prototype, "component", 2);
|
|
9270
9270
|
et([
|
|
9271
9271
|
g({ type: String })
|
|
9272
|
-
],
|
|
9272
|
+
], Ae.prototype, "message", 2);
|
|
9273
9273
|
et([
|
|
9274
9274
|
f()
|
|
9275
|
-
],
|
|
9275
|
+
], Ae.prototype, "draggingComponentInfo", 2);
|
|
9276
9276
|
et([
|
|
9277
9277
|
f()
|
|
9278
|
-
],
|
|
9278
|
+
], Ae.prototype, "isDragging", 2);
|
|
9279
9279
|
et([
|
|
9280
9280
|
f()
|
|
9281
|
-
],
|
|
9281
|
+
], Ae.prototype, "dropBeforePlaceHolderStyle", 2);
|
|
9282
9282
|
et([
|
|
9283
9283
|
f()
|
|
9284
|
-
],
|
|
9284
|
+
], Ae.prototype, "dropAfterPlaceHolderStyle", 2);
|
|
9285
9285
|
et([
|
|
9286
9286
|
g({ type: Object })
|
|
9287
|
-
],
|
|
9287
|
+
], Ae.prototype, "inputRef", 2);
|
|
9288
9288
|
et([
|
|
9289
9289
|
g({ type: String })
|
|
9290
|
-
],
|
|
9291
|
-
|
|
9292
|
-
|
|
9293
|
-
],
|
|
9290
|
+
], Ae.prototype, "where", 2);
|
|
9291
|
+
Ae = et([
|
|
9292
|
+
V("drag-wrapper")
|
|
9293
|
+
], Ae);
|
|
9294
9294
|
function Gn(e) {
|
|
9295
9295
|
Kp.set(e);
|
|
9296
9296
|
}
|
|
@@ -9302,7 +9302,7 @@ const yn = Z(
|
|
|
9302
9302
|
}
|
|
9303
9303
|
}
|
|
9304
9304
|
);
|
|
9305
|
-
|
|
9305
|
+
Or(yn);
|
|
9306
9306
|
function Gh({
|
|
9307
9307
|
errors: e
|
|
9308
9308
|
}) {
|
|
@@ -9316,7 +9316,7 @@ function Gh({
|
|
|
9316
9316
|
}
|
|
9317
9317
|
});
|
|
9318
9318
|
}
|
|
9319
|
-
var Wh = Object.defineProperty, Kh = Object.getOwnPropertyDescriptor,
|
|
9319
|
+
var Wh = Object.defineProperty, Kh = Object.getOwnPropertyDescriptor, To = (e, t, i, n) => {
|
|
9320
9320
|
for (var r = n > 1 ? void 0 : n ? Kh(t, i) : t, s = e.length - 1, a; s >= 0; s--)
|
|
9321
9321
|
(a = e[s]) && (r = (n ? a(t, i, r) : a(r)) || r);
|
|
9322
9322
|
return n && r && Wh(t, i, r), r;
|
|
@@ -9343,11 +9343,11 @@ let $r = class extends ce {
|
|
|
9343
9343
|
`;
|
|
9344
9344
|
}
|
|
9345
9345
|
};
|
|
9346
|
-
|
|
9346
|
+
To([
|
|
9347
9347
|
g({ type: Object })
|
|
9348
9348
|
], $r.prototype, "error", 2);
|
|
9349
|
-
$r =
|
|
9350
|
-
|
|
9349
|
+
$r = To([
|
|
9350
|
+
V("handler-component-error-block")
|
|
9351
9351
|
], $r);
|
|
9352
9352
|
Yt("$activeTables", {}, {
|
|
9353
9353
|
encode: JSON.stringify,
|
|
@@ -9485,8 +9485,8 @@ function Ys(e, t, i = {}) {
|
|
|
9485
9485
|
const v = parseInt(p[1], 10) + a, b = parseInt(p[2] || "1", 10), y = 5, S = Math.max(0, v - y - 1), k = Math.min(c.length - 1, v + y - 1);
|
|
9486
9486
|
u += `${o.bold}Code (line ${v}, column ${b}):${o.reset}
|
|
9487
9487
|
`;
|
|
9488
|
-
for (let
|
|
9489
|
-
const j =
|
|
9488
|
+
for (let A = S; A <= k; A++) {
|
|
9489
|
+
const j = A + 1, q = c[A] || "", re = j === v, he = re ? o.red : o.gray, nt = re ? o.bold : "";
|
|
9490
9490
|
if (u += `${he}${(j - a).toString().padStart(3, " ")}|${o.reset} ${nt}${q}${o.reset}
|
|
9491
9491
|
`, re) {
|
|
9492
9492
|
const Zn = `${r ? `${t.name}: ` : ""}${t.message}`;
|
|
@@ -9505,10 +9505,10 @@ function Ys(e, t, i = {}) {
|
|
|
9505
9505
|
u += `
|
|
9506
9506
|
${o.gray}Stack trace:${o.reset}
|
|
9507
9507
|
`;
|
|
9508
|
-
const
|
|
9508
|
+
const A = t.stack.split(`
|
|
9509
9509
|
`);
|
|
9510
|
-
for (let j = 1; j <
|
|
9511
|
-
u += `${o.gray}${
|
|
9510
|
+
for (let j = 1; j < A.length; j++)
|
|
9511
|
+
u += `${o.gray}${A[j]}${o.reset}
|
|
9512
9512
|
`;
|
|
9513
9513
|
}
|
|
9514
9514
|
} else {
|
|
@@ -9605,7 +9605,7 @@ class _ extends ce {
|
|
|
9605
9605
|
constructor() {
|
|
9606
9606
|
super(), this.isViewMode = !1, this.inputHandlersValue = {}, this.stylesHandlersValue = {}, this.callbacks = {}, this.isEditable = !1, this.isDragInitiator = !1, this.currentSelection = [], this.calculatedStyles = {}, this.isConnected2 = !1, this.errors = {}, this.runtimeStyles = {}, this.inputRef = Qe(), this.componentStyles = {}, this.subscription = new Jt(), this.eventsManager = [], this.uniqueUUID = Nt(), this.mouseEnterHandlerBound = this.mouseEnterHandler.bind(this), this.mouseLeaveHandlerBound = this.mouseLeaveHandler.bind(this), this.dragEnterHandlerBound = this.dragEnterHandler.bind(this), this.dropHandlerBound = this.dropHandler.bind(this), this.dragLeaveHandlerBound = this.dragLeaveHandler.bind(this), this.onContextMenuBound = this.onContextMenu.bind(this), this.selectComponentActionClickBound = (t) => {
|
|
9607
9607
|
this.isViewMode || (this.selectComponentAction(t), t.preventDefault(), t.stopPropagation());
|
|
9608
|
-
}, this.ExecuteInstance =
|
|
9608
|
+
}, this.ExecuteInstance = R, this.currentPlatform = R.Vars.currentPlatform ?? br(), this.handleHash = () => ed(this.inputRef, this.id, () => Zh(this.inputRef)), this.uniqueUUID = Nt();
|
|
9609
9609
|
}
|
|
9610
9610
|
/**
|
|
9611
9611
|
* Registers a callback function for a specific input
|
|
@@ -9721,7 +9721,7 @@ class _ extends ce {
|
|
|
9721
9721
|
})
|
|
9722
9722
|
), this.subscription.add(
|
|
9723
9723
|
C.on("Vars:selectedComponents", () => {
|
|
9724
|
-
this.currentSelection = Array.from(
|
|
9724
|
+
this.currentSelection = Array.from(R.Vars.selectedComponents).map((t) => t.uuid), N.currentSelection = this.currentSelection;
|
|
9725
9725
|
})
|
|
9726
9726
|
)), this.subscription.add(
|
|
9727
9727
|
Gl(this.uniqueUUID).subscribe((t) => {
|
|
@@ -9912,7 +9912,7 @@ ${u}
|
|
|
9912
9912
|
* @param {Event} _e - Event that triggered selection
|
|
9913
9913
|
*/
|
|
9914
9914
|
selectComponentAction(t) {
|
|
9915
|
-
this.currentSelection = Array.from([this.component.uuid]), N.currentSelection = Array.from([this.component.uuid]),
|
|
9915
|
+
this.currentSelection = Array.from([this.component.uuid]), N.currentSelection = Array.from([this.component.uuid]), R.VarsProxy.selectedComponents = Array.from([this.component]);
|
|
9916
9916
|
}
|
|
9917
9917
|
/**
|
|
9918
9918
|
* Renders error indicator and panel if component has errors
|
|
@@ -10126,11 +10126,11 @@ let Ft = class extends _ {
|
|
|
10126
10126
|
}));
|
|
10127
10127
|
}
|
|
10128
10128
|
updateComponents() {
|
|
10129
|
-
const e =
|
|
10129
|
+
const e = Re(this.component.application_id).get();
|
|
10130
10130
|
this.componentsWithChildren = [...e];
|
|
10131
10131
|
}
|
|
10132
10132
|
};
|
|
10133
|
-
Ft.styles =
|
|
10133
|
+
Ft.styles = D`
|
|
10134
10134
|
:host {
|
|
10135
10135
|
display: block;
|
|
10136
10136
|
height: 100%;
|
|
@@ -10148,7 +10148,7 @@ Wn([
|
|
|
10148
10148
|
f()
|
|
10149
10149
|
], Ft.prototype, "componentsWithChildren", 2);
|
|
10150
10150
|
Ft = Wn([
|
|
10151
|
-
|
|
10151
|
+
V("tabs-block")
|
|
10152
10152
|
], Ft);
|
|
10153
10153
|
/**
|
|
10154
10154
|
* @license
|
|
@@ -10176,7 +10176,7 @@ const qt = Fn(class extends qn {
|
|
|
10176
10176
|
}
|
|
10177
10177
|
return Ge;
|
|
10178
10178
|
}
|
|
10179
|
-
}), od =
|
|
10179
|
+
}), od = D`
|
|
10180
10180
|
:host{
|
|
10181
10181
|
display: block;
|
|
10182
10182
|
}
|
|
@@ -10208,7 +10208,7 @@ const qt = Fn(class extends qn {
|
|
|
10208
10208
|
height:100%
|
|
10209
10209
|
}
|
|
10210
10210
|
`;
|
|
10211
|
-
var ld = Object.defineProperty, ud = Object.getOwnPropertyDescriptor,
|
|
10211
|
+
var ld = Object.defineProperty, ud = Object.getOwnPropertyDescriptor, Oe = (e, t, i, n) => {
|
|
10212
10212
|
for (var r = n > 1 ? void 0 : n ? ud(t, i) : t, s = e.length - 1, a; s >= 0; s--)
|
|
10213
10213
|
(a = e[s]) && (r = (n ? a(t, i, r) : a(r)) || r);
|
|
10214
10214
|
return n && r && ld(t, i, r), r;
|
|
@@ -10230,7 +10230,7 @@ let fe = class extends _ {
|
|
|
10230
10230
|
return h`
|
|
10231
10231
|
<div
|
|
10232
10232
|
id=${this.inputHandlersValue.id ?? m}
|
|
10233
|
-
${
|
|
10233
|
+
${O(this.inputRef)}
|
|
10234
10234
|
data-component-uuid=${this.component?.uuid}
|
|
10235
10235
|
data-component-name=${this.component?.name}
|
|
10236
10236
|
style=${$({
|
|
@@ -10256,10 +10256,10 @@ let fe = class extends _ {
|
|
|
10256
10256
|
return h`
|
|
10257
10257
|
${this.isViewMode ? this.renderView() : h`
|
|
10258
10258
|
<div
|
|
10259
|
-
${
|
|
10259
|
+
${O(this.inputRef)}
|
|
10260
10260
|
data-component-uuid=${this.component?.uuid}
|
|
10261
10261
|
data-component-name=${this.component?.name}
|
|
10262
|
-
${
|
|
10262
|
+
${O(this.containerRef)}
|
|
10263
10263
|
@click="${(e) => {
|
|
10264
10264
|
Gn(null), this.executeEvent("onClick", e);
|
|
10265
10265
|
}}"
|
|
@@ -10296,38 +10296,38 @@ let fe = class extends _ {
|
|
|
10296
10296
|
}
|
|
10297
10297
|
};
|
|
10298
10298
|
fe.styles = od;
|
|
10299
|
-
|
|
10299
|
+
Oe([
|
|
10300
10300
|
g({ type: Object })
|
|
10301
10301
|
], fe.prototype, "component", 2);
|
|
10302
|
-
|
|
10302
|
+
Oe([
|
|
10303
10303
|
g({ type: Object })
|
|
10304
10304
|
], fe.prototype, "item", 2);
|
|
10305
|
-
|
|
10305
|
+
Oe([
|
|
10306
10306
|
g({ type: Object })
|
|
10307
10307
|
], fe.prototype, "draggingComponentInfo", 2);
|
|
10308
|
-
|
|
10308
|
+
Oe([
|
|
10309
10309
|
g({ type: Boolean })
|
|
10310
10310
|
], fe.prototype, "isViewMode", 2);
|
|
10311
|
-
|
|
10311
|
+
Oe([
|
|
10312
10312
|
f()
|
|
10313
10313
|
], fe.prototype, "dragOverSituation", 2);
|
|
10314
|
-
|
|
10314
|
+
Oe([
|
|
10315
10315
|
f()
|
|
10316
10316
|
], fe.prototype, "selectedComponent", 2);
|
|
10317
|
-
|
|
10317
|
+
Oe([
|
|
10318
10318
|
f()
|
|
10319
10319
|
], fe.prototype, "hoveredComponent", 2);
|
|
10320
|
-
|
|
10320
|
+
Oe([
|
|
10321
10321
|
f()
|
|
10322
10322
|
], fe.prototype, "wrapperStyle", 2);
|
|
10323
|
-
|
|
10323
|
+
Oe([
|
|
10324
10324
|
f()
|
|
10325
10325
|
], fe.prototype, "containerRef", 2);
|
|
10326
|
-
|
|
10326
|
+
Oe([
|
|
10327
10327
|
f()
|
|
10328
10328
|
], fe.prototype, "childrenComponents", 2);
|
|
10329
|
-
fe =
|
|
10330
|
-
|
|
10329
|
+
fe = Oe([
|
|
10330
|
+
V("vertical-container-block")
|
|
10331
10331
|
], fe);
|
|
10332
10332
|
var cd = Object.defineProperty, pd = Object.getOwnPropertyDescriptor, Gi = (e, t, i, n) => {
|
|
10333
10333
|
for (var r = n > 1 ? void 0 : n ? pd(t, i) : t, s = e.length - 1, a; s >= 0; s--)
|
|
@@ -10359,7 +10359,7 @@ let $t = class extends _ {
|
|
|
10359
10359
|
return h`
|
|
10360
10360
|
|
|
10361
10361
|
<nr-menu
|
|
10362
|
-
${
|
|
10362
|
+
${O(this.inputRef)}
|
|
10363
10363
|
|
|
10364
10364
|
style=${$({
|
|
10365
10365
|
...this.getStyles(),
|
|
@@ -10384,7 +10384,7 @@ let $t = class extends _ {
|
|
|
10384
10384
|
}
|
|
10385
10385
|
};
|
|
10386
10386
|
$t.styles = [
|
|
10387
|
-
|
|
10387
|
+
D`
|
|
10388
10388
|
nr-menu {
|
|
10389
10389
|
--nuraly-menu-width: 100%;
|
|
10390
10390
|
|
|
@@ -10412,9 +10412,9 @@ Gi([
|
|
|
10412
10412
|
f()
|
|
10413
10413
|
], $t.prototype, "components", 2);
|
|
10414
10414
|
$t = Gi([
|
|
10415
|
-
|
|
10415
|
+
V("menu-block")
|
|
10416
10416
|
], $t);
|
|
10417
|
-
var hd = Object.defineProperty, dd = Object.getOwnPropertyDescriptor,
|
|
10417
|
+
var hd = Object.defineProperty, dd = Object.getOwnPropertyDescriptor, Oo = (e, t, i, n) => {
|
|
10418
10418
|
for (var r = n > 1 ? void 0 : n ? dd(t, i) : t, s = e.length - 1, a; s >= 0; s--)
|
|
10419
10419
|
(a = e[s]) && (r = (n ? a(t, i, r) : a(r)) || r);
|
|
10420
10420
|
return n && r && hd(t, i, r), r;
|
|
@@ -10428,7 +10428,7 @@ let xn = class extends _ {
|
|
|
10428
10428
|
const t = (this.component?.style || {}).size || "default";
|
|
10429
10429
|
return h`
|
|
10430
10430
|
<nr-color-picker
|
|
10431
|
-
${
|
|
10431
|
+
${O(this.inputRef)}
|
|
10432
10432
|
style=${$({
|
|
10433
10433
|
width: "28px",
|
|
10434
10434
|
height: "28px",
|
|
@@ -10464,13 +10464,13 @@ let xn = class extends _ {
|
|
|
10464
10464
|
}
|
|
10465
10465
|
};
|
|
10466
10466
|
xn.styles = [
|
|
10467
|
-
|
|
10467
|
+
D``
|
|
10468
10468
|
];
|
|
10469
|
-
|
|
10469
|
+
Oo([
|
|
10470
10470
|
g({ type: Object })
|
|
10471
10471
|
], xn.prototype, "component", 2);
|
|
10472
|
-
xn =
|
|
10473
|
-
|
|
10472
|
+
xn = Oo([
|
|
10473
|
+
V("color-picker-block")
|
|
10474
10474
|
], xn);
|
|
10475
10475
|
var fd = Object.defineProperty, md = Object.getOwnPropertyDescriptor, is = (e, t, i, n) => {
|
|
10476
10476
|
for (var r = n > 1 ? void 0 : n ? md(t, i) : t, s = e.length - 1, a; s >= 0; s--)
|
|
@@ -10488,7 +10488,7 @@ let $i = class extends _ {
|
|
|
10488
10488
|
return h`
|
|
10489
10489
|
<span>
|
|
10490
10490
|
<nr-input
|
|
10491
|
-
${
|
|
10491
|
+
${O(this.inputRef)}
|
|
10492
10492
|
style=${$({
|
|
10493
10493
|
...e,
|
|
10494
10494
|
"--nuraly-input-local-border-top-left-radius": e?.["border-top-left-radius"] ?? "",
|
|
@@ -10544,7 +10544,7 @@ let $i = class extends _ {
|
|
|
10544
10544
|
}
|
|
10545
10545
|
};
|
|
10546
10546
|
$i.styles = [
|
|
10547
|
-
|
|
10547
|
+
D``
|
|
10548
10548
|
];
|
|
10549
10549
|
is([
|
|
10550
10550
|
g({ type: Object })
|
|
@@ -10553,7 +10553,7 @@ is([
|
|
|
10553
10553
|
g({ type: Object })
|
|
10554
10554
|
], $i.prototype, "item", 2);
|
|
10555
10555
|
$i = is([
|
|
10556
|
-
|
|
10556
|
+
V("number-input-block")
|
|
10557
10557
|
], $i);
|
|
10558
10558
|
var gd = Object.defineProperty, bd = Object.getOwnPropertyDescriptor, Wi = (e, t, i, n) => {
|
|
10559
10559
|
for (var r = n > 1 ? void 0 : n ? bd(t, i) : t, s = e.length - 1, a; s >= 0; s--)
|
|
@@ -10586,7 +10586,7 @@ let wt = class extends _ {
|
|
|
10586
10586
|
const t = this.getStyles(), n = (this.component?.style || {})?.size || "medium";
|
|
10587
10587
|
return h`
|
|
10588
10588
|
<nr-input
|
|
10589
|
-
${
|
|
10589
|
+
${O(this.inputRef)}
|
|
10590
10590
|
style=${$({
|
|
10591
10591
|
...this.getStyles(),
|
|
10592
10592
|
"--nuraly-input-local-border-top-left-radius": t?.["border-top-left-radius"] ?? "",
|
|
@@ -10666,7 +10666,7 @@ let wt = class extends _ {
|
|
|
10666
10666
|
`;
|
|
10667
10667
|
}
|
|
10668
10668
|
};
|
|
10669
|
-
wt.styles = [
|
|
10669
|
+
wt.styles = [D``];
|
|
10670
10670
|
Wi([
|
|
10671
10671
|
g({ type: Object })
|
|
10672
10672
|
], wt.prototype, "component", 2);
|
|
@@ -10680,9 +10680,9 @@ Wi([
|
|
|
10680
10680
|
f()
|
|
10681
10681
|
], wt.prototype, "_isUserFocused", 2);
|
|
10682
10682
|
wt = Wi([
|
|
10683
|
-
|
|
10683
|
+
V("text-input-block")
|
|
10684
10684
|
], wt);
|
|
10685
|
-
const vd =
|
|
10685
|
+
const vd = D`
|
|
10686
10686
|
|
|
10687
10687
|
:host {
|
|
10688
10688
|
|
|
@@ -10812,7 +10812,7 @@ const vd = H`
|
|
|
10812
10812
|
.left-resizer:hover .text {
|
|
10813
10813
|
display: block;
|
|
10814
10814
|
}
|
|
10815
|
-
`, yd = [vd], xd =
|
|
10815
|
+
`, yd = [vd], xd = D`
|
|
10816
10816
|
:host{
|
|
10817
10817
|
}
|
|
10818
10818
|
.resizer-line-top,
|
|
@@ -10927,8 +10927,8 @@ let pe = class extends ce {
|
|
|
10927
10927
|
w.Checkbox
|
|
10928
10928
|
], this.notResizableComponents = [], this.isSelected = !1, this.inputRef = Qe(), this.styles = { lines: {}, points: {} }, this.minimum_size = 20, this.original = { width: 0, height: 0, x: 0, y: 0, mouse_x: 0, mouse_y: 0 }, this.showBorder = !1, this.resize = (e) => {
|
|
10929
10929
|
e.preventDefault(), e.stopPropagation();
|
|
10930
|
-
const t = this.currentResizer.classList, i = this.inputRef.value, { width: n, height: r, x: s, y: a, mouse_x: o, mouse_y: u } = this.original, c = n + (e.pageX - o), p = r + (e.pageY - u), d = n - (e.pageX - o), v = r - (e.pageY - u), b = !this.onlyWidthResizableComponents.includes(this.component.component_type), y = t.contains("resizer-point-right-bottom"), S = t.contains("resizer-point-left-bottom"), k = t.contains("resizer-line-bottom") || t.contains("resizer-point-middle-top") || t.contains("resizer-point-middle-bottom"),
|
|
10931
|
-
(y || j) && c > this.minimum_size ? i.style.width = `${c}px` : (S ||
|
|
10930
|
+
const t = this.currentResizer.classList, i = this.inputRef.value, { width: n, height: r, x: s, y: a, mouse_x: o, mouse_y: u } = this.original, c = n + (e.pageX - o), p = r + (e.pageY - u), d = n - (e.pageX - o), v = r - (e.pageY - u), b = !this.onlyWidthResizableComponents.includes(this.component.component_type), y = t.contains("resizer-point-right-bottom"), S = t.contains("resizer-point-left-bottom"), k = t.contains("resizer-line-bottom") || t.contains("resizer-point-middle-top") || t.contains("resizer-point-middle-bottom"), A = t.contains("resizer-point-left-top"), j = t.contains("resizer-point-right-top");
|
|
10931
|
+
(y || j) && c > this.minimum_size ? i.style.width = `${c}px` : (S || A) && d > this.minimum_size && (i.style.width = `${d}px`, i.style.left = `${s + (e.pageX - o)}px`), b && ((y || S || k) && p > this.minimum_size ? i.style.height = `${p}px` : (A || j) && v > this.minimum_size && (i.style.height = `${v}px`, i.style.top = `${a + (e.pageY - u)}px`)), setTimeout(() => {
|
|
10932
10932
|
this.firstUpdated(), setTimeout(() => this.applyResize(), 500);
|
|
10933
10933
|
});
|
|
10934
10934
|
}, this.stopResize = () => {
|
|
@@ -11078,9 +11078,9 @@ Ee([
|
|
|
11078
11078
|
f()
|
|
11079
11079
|
], pe.prototype, "showBorder", 2);
|
|
11080
11080
|
pe = Ee([
|
|
11081
|
-
|
|
11081
|
+
V("resize-wrapper")
|
|
11082
11082
|
], pe);
|
|
11083
|
-
const wd =
|
|
11083
|
+
const wd = D`
|
|
11084
11084
|
.quick-action{
|
|
11085
11085
|
display: inline-flex;
|
|
11086
11086
|
align-items: center;
|
|
@@ -11216,7 +11216,7 @@ let lt = class extends ce {
|
|
|
11216
11216
|
render() {
|
|
11217
11217
|
return h`
|
|
11218
11218
|
<div class="quick-action"
|
|
11219
|
-
${
|
|
11219
|
+
${O(this.inputRef)}
|
|
11220
11220
|
style=${$({
|
|
11221
11221
|
position: "absolute"
|
|
11222
11222
|
})}>
|
|
@@ -11245,7 +11245,7 @@ ni([
|
|
|
11245
11245
|
g({ type: String })
|
|
11246
11246
|
], lt.prototype, "componentToRenderUUID", 2);
|
|
11247
11247
|
lt = ni([
|
|
11248
|
-
|
|
11248
|
+
V("quick-action-wrapper")
|
|
11249
11249
|
], lt);
|
|
11250
11250
|
var Ed = Object.defineProperty, Pd = Object.getOwnPropertyDescriptor, Kn = (e, t, i, n) => {
|
|
11251
11251
|
for (var r = n > 1 ? void 0 : n ? Pd(t, i) : t, s = e.length - 1, a; s >= 0; s--)
|
|
@@ -11302,7 +11302,7 @@ let Gt = class extends ce {
|
|
|
11302
11302
|
this.isDragInitiator = !1, this.emitEvent(this.isDragInitiator), Ci(null);
|
|
11303
11303
|
}
|
|
11304
11304
|
};
|
|
11305
|
-
Gt.styles =
|
|
11305
|
+
Gt.styles = D`
|
|
11306
11306
|
.component-name {
|
|
11307
11307
|
position: absolute;
|
|
11308
11308
|
/* z-index: 7; */
|
|
@@ -11326,7 +11326,7 @@ Kn([
|
|
|
11326
11326
|
g({ type: Boolean })
|
|
11327
11327
|
], Gt.prototype, "display", 2);
|
|
11328
11328
|
Gt = Kn([
|
|
11329
|
-
|
|
11329
|
+
V("component-title")
|
|
11330
11330
|
], Gt);
|
|
11331
11331
|
var kd = Object.defineProperty, Id = Object.getOwnPropertyDescriptor, ne = (e, t, i, n) => {
|
|
11332
11332
|
for (var r = n > 1 ? void 0 : n ? Id(t, i) : t, s = e.length - 1, a; s >= 0; s--)
|
|
@@ -11369,7 +11369,7 @@ let X = class extends ce {
|
|
|
11369
11369
|
update(e) {
|
|
11370
11370
|
if (super.update(e), e.has("highlighted")) {
|
|
11371
11371
|
const t = bi("global", "selectedComponents")?.value || [];
|
|
11372
|
-
this.highlighted ?
|
|
11372
|
+
this.highlighted ? Ue("global", "selectedComponents", [...t, this.component.uuid]) : Ue("global", "selectedComponents", t.filter((i) => i !== this.component.uuid));
|
|
11373
11373
|
}
|
|
11374
11374
|
}
|
|
11375
11375
|
onContextMenu(e) {
|
|
@@ -11411,11 +11411,11 @@ let X = class extends ce {
|
|
|
11411
11411
|
>
|
|
11412
11412
|
|
|
11413
11413
|
<div
|
|
11414
|
-
${
|
|
11414
|
+
${O(this.inputRef)}
|
|
11415
11415
|
class=${qt({ selected: this.selectedComponent?.uuid === this.component.uuid })}
|
|
11416
11416
|
>
|
|
11417
11417
|
<div
|
|
11418
|
-
${
|
|
11418
|
+
${O(this.resizerRef)}
|
|
11419
11419
|
class="left-resizer"
|
|
11420
11420
|
style=${$({
|
|
11421
11421
|
width: `${hr(this.component?.style?.marginLeft) + 10}px`,
|
|
@@ -11443,7 +11443,7 @@ let X = class extends ce {
|
|
|
11443
11443
|
handleMouseDown(e) {
|
|
11444
11444
|
e.stopPropagation();
|
|
11445
11445
|
let t = bi("global", "selectedComponents")?.value || [];
|
|
11446
|
-
e.metaKey ? t.push(this.component.uuid) : e.shiftKey ? t = t.filter((i) => i !== this.component.uuid) : t = [this.component.uuid],
|
|
11446
|
+
e.metaKey ? t.push(this.component.uuid) : e.shiftKey ? t = t.filter((i) => i !== this.component.uuid) : t = [this.component.uuid], Ue("global", "selectedComponents", [...t]);
|
|
11447
11447
|
}
|
|
11448
11448
|
startResizing(e) {
|
|
11449
11449
|
this.isResizing = !0, this.startX = e.clientX, this.startMarginLeft = hr(this.component?.style?.marginLeft) || 0, document.addEventListener("mousemove", this.resize), document.addEventListener("mouseup", this.stopResizing);
|
|
@@ -11503,12 +11503,12 @@ ne([
|
|
|
11503
11503
|
f()
|
|
11504
11504
|
], X.prototype, "dropDragPlaceholderStyle", 2);
|
|
11505
11505
|
X = ne([
|
|
11506
|
-
|
|
11506
|
+
V("generik-component-wrapper")
|
|
11507
11507
|
], X);
|
|
11508
|
-
var
|
|
11509
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
11508
|
+
var Ad = Object.defineProperty, Vd = Object.getOwnPropertyDescriptor, Do = (e, t, i, n) => {
|
|
11509
|
+
for (var r = n > 1 ? void 0 : n ? Vd(t, i) : t, s = e.length - 1, a; s >= 0; s--)
|
|
11510
11510
|
(a = e[s]) && (r = (n ? a(t, i, r) : a(r)) || r);
|
|
11511
|
-
return n && r &&
|
|
11511
|
+
return n && r && Ad(t, i, r), r;
|
|
11512
11512
|
};
|
|
11513
11513
|
try {
|
|
11514
11514
|
await import("@nuralyui/button");
|
|
@@ -11527,7 +11527,7 @@ let Cn = class extends _ {
|
|
|
11527
11527
|
const e = this.getStyles(), { icon: t } = this.component?.parameters ?? {}, i = t ? [t] : [], n = this.inputHandlersValue.value || e?.type || "default", r = e?.size || "medium";
|
|
11528
11528
|
return h`
|
|
11529
11529
|
<nr-button
|
|
11530
|
-
${
|
|
11530
|
+
${O(this.inputRef)}
|
|
11531
11531
|
.size=${r}
|
|
11532
11532
|
.type=${n}
|
|
11533
11533
|
.disabled=${this.inputHandlersValue.state == "disabled"}
|
|
@@ -11547,17 +11547,17 @@ let Cn = class extends _ {
|
|
|
11547
11547
|
`;
|
|
11548
11548
|
}
|
|
11549
11549
|
};
|
|
11550
|
-
Cn.styles =
|
|
11551
|
-
|
|
11550
|
+
Cn.styles = D``;
|
|
11551
|
+
Do([
|
|
11552
11552
|
g({ type: Object })
|
|
11553
11553
|
], Cn.prototype, "component", 2);
|
|
11554
|
-
Cn =
|
|
11555
|
-
|
|
11554
|
+
Cn = Do([
|
|
11555
|
+
V("icon-button-block")
|
|
11556
11556
|
], Cn);
|
|
11557
|
-
var
|
|
11558
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
11557
|
+
var Td = Object.defineProperty, Od = Object.getOwnPropertyDescriptor, Ho = (e, t, i, n) => {
|
|
11558
|
+
for (var r = n > 1 ? void 0 : n ? Od(t, i) : t, s = e.length - 1, a; s >= 0; s--)
|
|
11559
11559
|
(a = e[s]) && (r = (n ? a(t, i, r) : a(r)) || r);
|
|
11560
|
-
return n && r &&
|
|
11560
|
+
return n && r && Td(t, i, r), r;
|
|
11561
11561
|
};
|
|
11562
11562
|
let _r = class extends _ {
|
|
11563
11563
|
constructor() {
|
|
@@ -11579,7 +11579,7 @@ let _r = class extends _ {
|
|
|
11579
11579
|
return h`
|
|
11580
11580
|
<span>
|
|
11581
11581
|
<nr-select
|
|
11582
|
-
${
|
|
11582
|
+
${O(this.inputRef)}
|
|
11583
11583
|
style=${$({
|
|
11584
11584
|
...this.getStyles(),
|
|
11585
11585
|
"--nuraly-select-width": this.getStyles()["--nuraly-select-width"] ?? this.getStyles().width
|
|
@@ -11603,18 +11603,18 @@ let _r = class extends _ {
|
|
|
11603
11603
|
`;
|
|
11604
11604
|
}
|
|
11605
11605
|
};
|
|
11606
|
-
|
|
11606
|
+
Ho([
|
|
11607
11607
|
g({ type: Object })
|
|
11608
11608
|
], _r.prototype, "component", 2);
|
|
11609
|
-
_r =
|
|
11610
|
-
|
|
11609
|
+
_r = Ho([
|
|
11610
|
+
V("select-block")
|
|
11611
11611
|
], _r);
|
|
11612
|
-
var
|
|
11613
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
11612
|
+
var Dd = Object.defineProperty, Hd = Object.getOwnPropertyDescriptor, Mo = (e, t, i, n) => {
|
|
11613
|
+
for (var r = n > 1 ? void 0 : n ? Hd(t, i) : t, s = e.length - 1, a; s >= 0; s--)
|
|
11614
11614
|
(a = e[s]) && (r = (n ? a(t, i, r) : a(r)) || r);
|
|
11615
|
-
return n && r &&
|
|
11615
|
+
return n && r && Dd(t, i, r), r;
|
|
11616
11616
|
};
|
|
11617
|
-
import("./SmartAttributeHandler-
|
|
11617
|
+
import("./SmartAttributeHandler-C4EliaG0.js");
|
|
11618
11618
|
let $n = class extends _ {
|
|
11619
11619
|
constructor() {
|
|
11620
11620
|
super(...arguments), this.handleCodeChange = (e) => {
|
|
@@ -11668,7 +11668,7 @@ let $n = class extends _ {
|
|
|
11668
11668
|
}
|
|
11669
11669
|
};
|
|
11670
11670
|
$n.styles = [
|
|
11671
|
-
|
|
11671
|
+
D`
|
|
11672
11672
|
:host {
|
|
11673
11673
|
display: block;
|
|
11674
11674
|
}
|
|
@@ -11678,7 +11678,7 @@ Mo([
|
|
|
11678
11678
|
g({ type: Object })
|
|
11679
11679
|
], $n.prototype, "component", 2);
|
|
11680
11680
|
$n = Mo([
|
|
11681
|
-
|
|
11681
|
+
V("parameter-event-handler")
|
|
11682
11682
|
], $n);
|
|
11683
11683
|
const Md = {
|
|
11684
11684
|
"--nuraly-button-primary-background-color": "#26327b",
|
|
@@ -11693,15 +11693,15 @@ const Md = {
|
|
|
11693
11693
|
"--nuraly-button-border-bottom-left-radius": "4px",
|
|
11694
11694
|
"--nuraly-button-border-bottom-right-radius": "4px",
|
|
11695
11695
|
"--nuraly-button-height": "25px"
|
|
11696
|
-
},
|
|
11696
|
+
}, Ud = {
|
|
11697
11697
|
"--nuraly-select-width": "152px",
|
|
11698
11698
|
"--nuraly-select-small-height": "22px",
|
|
11699
11699
|
size: "small"
|
|
11700
11700
|
};
|
|
11701
|
-
var
|
|
11701
|
+
var Rd = Object.defineProperty, Nd = Object.getOwnPropertyDescriptor, je = (e, t, i, n) => {
|
|
11702
11702
|
for (var r = n > 1 ? void 0 : n ? Nd(t, i) : t, s = e.length - 1, a; s >= 0; s--)
|
|
11703
11703
|
(a = e[s]) && (r = (n ? a(t, i, r) : a(r)) || r);
|
|
11704
|
-
return n && r &&
|
|
11704
|
+
return n && r && Rd(t, i, r), r;
|
|
11705
11705
|
};
|
|
11706
11706
|
try {
|
|
11707
11707
|
await import("@nuralyui/slider-input");
|
|
@@ -11848,7 +11848,7 @@ let xe = class extends _ {
|
|
|
11848
11848
|
<div>
|
|
11849
11849
|
<nr-select
|
|
11850
11850
|
style=${$({
|
|
11851
|
-
...
|
|
11851
|
+
...Ud
|
|
11852
11852
|
})}
|
|
11853
11853
|
size="small"
|
|
11854
11854
|
style="--nuraly-select-width:150px;size:small;width:auto;"
|
|
@@ -12038,7 +12038,7 @@ let xe = class extends _ {
|
|
|
12038
12038
|
}
|
|
12039
12039
|
};
|
|
12040
12040
|
xe.styles = [
|
|
12041
|
-
|
|
12041
|
+
D`
|
|
12042
12042
|
:host {
|
|
12043
12043
|
display: block;
|
|
12044
12044
|
--box-manager-background-color: transparent;
|
|
@@ -12228,7 +12228,7 @@ je([
|
|
|
12228
12228
|
f()
|
|
12229
12229
|
], xe.prototype, "unity", 2);
|
|
12230
12230
|
xe = je([
|
|
12231
|
-
|
|
12231
|
+
V("attribute-border-value")
|
|
12232
12232
|
], xe);
|
|
12233
12233
|
var Bd = Object.defineProperty, pt = (e, t, i, n) => {
|
|
12234
12234
|
for (var r = void 0, s = e.length - 1, a; s >= 0; s--)
|
|
@@ -12259,7 +12259,7 @@ class tt extends _ {
|
|
|
12259
12259
|
}
|
|
12260
12260
|
static {
|
|
12261
12261
|
this.styles = [
|
|
12262
|
-
|
|
12262
|
+
D`
|
|
12263
12263
|
:host {
|
|
12264
12264
|
display: block;
|
|
12265
12265
|
}
|
|
@@ -12454,7 +12454,7 @@ pt([
|
|
|
12454
12454
|
f()
|
|
12455
12455
|
], tt.prototype, "shadowBox");
|
|
12456
12456
|
customElements.define("attribute-box-shadow-value", tt);
|
|
12457
|
-
var jd = Object.defineProperty, Fd = Object.getOwnPropertyDescriptor,
|
|
12457
|
+
var jd = Object.defineProperty, Fd = Object.getOwnPropertyDescriptor, Uo = (e, t, i, n) => {
|
|
12458
12458
|
for (var r = n > 1 ? void 0 : n ? Fd(t, i) : t, s = e.length - 1, a; s >= 0; s--)
|
|
12459
12459
|
(a = e[s]) && (r = (n ? a(t, i, r) : a(r)) || r);
|
|
12460
12460
|
return n && r && jd(t, i, r), r;
|
|
@@ -12584,7 +12584,7 @@ let wn = class extends _ {
|
|
|
12584
12584
|
}
|
|
12585
12585
|
};
|
|
12586
12586
|
wn.styles = [
|
|
12587
|
-
|
|
12587
|
+
D`
|
|
12588
12588
|
:host {
|
|
12589
12589
|
display: block;
|
|
12590
12590
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
@@ -12753,11 +12753,11 @@ wn.styles = [
|
|
|
12753
12753
|
}
|
|
12754
12754
|
`
|
|
12755
12755
|
];
|
|
12756
|
-
|
|
12756
|
+
Uo([
|
|
12757
12757
|
g({ type: Object })
|
|
12758
12758
|
], wn.prototype, "component", 2);
|
|
12759
|
-
wn =
|
|
12760
|
-
|
|
12759
|
+
wn = Uo([
|
|
12760
|
+
V("box-model-display")
|
|
12761
12761
|
], wn);
|
|
12762
12762
|
var qd = Object.defineProperty, Gd = Object.getOwnPropertyDescriptor, Ki = (e, t, i, n) => {
|
|
12763
12763
|
for (var r = n > 1 ? void 0 : n ? Gd(t, i) : t, s = e.length - 1, a; s >= 0; s--)
|
|
@@ -12860,7 +12860,7 @@ let _t = class extends _ {
|
|
|
12860
12860
|
const n = this.inputHandlersValue?.data ? this.inputHandlersValue?.data?.headers : this.headers, r = this.inputHandlersValue?.data ? this.inputHandlersValue?.data?.rows : this.rows, s = t.size || "normal", a = this.component?.input?.selectionMode?.value || this.inputHandlersValue?.selectionMode, o = a === "multiple" ? "multiple" : a === "single" ? "single" : void 0, u = this.inputHandlersValue?.filter, c = this.inputHandlersValue?.fixedHeader ?? !1, p = this.inputHandlersValue?.loading ?? !1, d = this.inputHandlersValue?.expandable ?? !1, v = this.inputHandlersValue?.emptyText ?? "No data available", b = this.inputHandlersValue?.emptyIcon, y = this.inputHandlersValue?.expansionRenderer, S = this.inputHandlersValue?.scrollConfig;
|
|
12861
12861
|
return h`
|
|
12862
12862
|
<nr-table
|
|
12863
|
-
${
|
|
12863
|
+
${O(this.inputRef)}
|
|
12864
12864
|
style=${$({
|
|
12865
12865
|
...t,
|
|
12866
12866
|
width: i ? "auto" : t.width,
|
|
@@ -12897,7 +12897,7 @@ let _t = class extends _ {
|
|
|
12897
12897
|
}
|
|
12898
12898
|
};
|
|
12899
12899
|
_t.styles = [
|
|
12900
|
-
|
|
12900
|
+
D``
|
|
12901
12901
|
];
|
|
12902
12902
|
Ki([
|
|
12903
12903
|
g({ type: Object })
|
|
@@ -12912,9 +12912,9 @@ Ki([
|
|
|
12912
12912
|
f()
|
|
12913
12913
|
], _t.prototype, "rows", 2);
|
|
12914
12914
|
_t = Ki([
|
|
12915
|
-
|
|
12915
|
+
V("table-block")
|
|
12916
12916
|
], _t);
|
|
12917
|
-
var Wd = Object.defineProperty, Kd = Object.getOwnPropertyDescriptor,
|
|
12917
|
+
var Wd = Object.defineProperty, Kd = Object.getOwnPropertyDescriptor, Ro = (e, t, i, n) => {
|
|
12918
12918
|
for (var r = n > 1 ? void 0 : n ? Kd(t, i) : t, s = e.length - 1, a; s >= 0; s--)
|
|
12919
12919
|
(a = e[s]) && (r = (n ? a(t, i, r) : a(r)) || r);
|
|
12920
12920
|
return n && r && Wd(t, i, r), r;
|
|
@@ -12936,7 +12936,7 @@ let _n = class extends _ {
|
|
|
12936
12936
|
const t = (this.component?.style || {}).size;
|
|
12937
12937
|
return h`
|
|
12938
12938
|
<nr-checkbox
|
|
12939
|
-
${
|
|
12939
|
+
${O(this.inputRef)}
|
|
12940
12940
|
style=${$({
|
|
12941
12941
|
...this.getStyles()
|
|
12942
12942
|
})}
|
|
@@ -12978,13 +12978,13 @@ let _n = class extends _ {
|
|
|
12978
12978
|
}
|
|
12979
12979
|
};
|
|
12980
12980
|
_n.styles = [
|
|
12981
|
-
|
|
12981
|
+
D``
|
|
12982
12982
|
];
|
|
12983
|
-
|
|
12983
|
+
Ro([
|
|
12984
12984
|
g({ type: Object })
|
|
12985
12985
|
], _n.prototype, "component", 2);
|
|
12986
|
-
_n =
|
|
12987
|
-
|
|
12986
|
+
_n = Ro([
|
|
12987
|
+
V("checkbox-block")
|
|
12988
12988
|
], _n);
|
|
12989
12989
|
var Yd = Object.defineProperty, Jd = Object.getOwnPropertyDescriptor, Yn = (e, t, i, n) => {
|
|
12990
12990
|
for (var r = n > 1 ? void 0 : n ? Jd(t, i) : t, s = e.length - 1, a; s >= 0; s--)
|
|
@@ -13024,7 +13024,7 @@ let wi = class extends _ {
|
|
|
13024
13024
|
return h`
|
|
13025
13025
|
<nr-dropdown
|
|
13026
13026
|
.open=${this.inputHandlersValue.show || !1}
|
|
13027
|
-
${
|
|
13027
|
+
${O(this.inputRef)}
|
|
13028
13028
|
style=${$({
|
|
13029
13029
|
...this.getStyles()
|
|
13030
13030
|
})}
|
|
@@ -13092,7 +13092,7 @@ Yn([
|
|
|
13092
13092
|
f()
|
|
13093
13093
|
], wi.prototype, "options", 2);
|
|
13094
13094
|
wi = Yn([
|
|
13095
|
-
|
|
13095
|
+
V("dropdown-block")
|
|
13096
13096
|
], wi);
|
|
13097
13097
|
var Qd = Object.defineProperty, Xd = Object.getOwnPropertyDescriptor, No = (e, t, i, n) => {
|
|
13098
13098
|
for (var r = n > 1 ? void 0 : n ? Xd(t, i) : t, s = e.length - 1, a; s >= 0; s--)
|
|
@@ -13123,7 +13123,7 @@ let Sr = class extends _ {
|
|
|
13123
13123
|
const e = this.component?.style || {}, t = e.size || "medium", i = e.variant || "default", n = e.placement || "auto", r = e?.state || "default";
|
|
13124
13124
|
return h`
|
|
13125
13125
|
<nr-datepicker
|
|
13126
|
-
${
|
|
13126
|
+
${O(this.inputRef)}
|
|
13127
13127
|
style=${$({
|
|
13128
13128
|
...this.getStyles(),
|
|
13129
13129
|
display: this.getStyles().display ?? "block"
|
|
@@ -13151,7 +13151,7 @@ No([
|
|
|
13151
13151
|
g({ type: Object })
|
|
13152
13152
|
], Sr.prototype, "component", 2);
|
|
13153
13153
|
Sr = No([
|
|
13154
|
-
|
|
13154
|
+
V("date-picker-block")
|
|
13155
13155
|
], Sr);
|
|
13156
13156
|
var Zd = Object.defineProperty, ef = Object.getOwnPropertyDescriptor, ns = (e, t, i, n) => {
|
|
13157
13157
|
for (var r = n > 1 ? void 0 : n ? ef(t, i) : t, s = e.length - 1, a; s >= 0; s--)
|
|
@@ -13175,7 +13175,7 @@ let Sn = class extends _ {
|
|
|
13175
13175
|
const e = this.getStyles();
|
|
13176
13176
|
return h`
|
|
13177
13177
|
<nr-icon
|
|
13178
|
-
${
|
|
13178
|
+
${O(this.inputRef)}
|
|
13179
13179
|
.name=${this.inputHandlersValue.icon ?? "smile"}
|
|
13180
13180
|
.type=${this.inputHandlersValue.type || "solid"}
|
|
13181
13181
|
.alt=${this.inputHandlersValue.alt || ""}
|
|
@@ -13211,7 +13211,7 @@ ns([
|
|
|
13211
13211
|
g({ type: Object })
|
|
13212
13212
|
], Sn.prototype, "item", 2);
|
|
13213
13213
|
Sn = ns([
|
|
13214
|
-
|
|
13214
|
+
V("icon-block")
|
|
13215
13215
|
], Sn);
|
|
13216
13216
|
var tf = Object.defineProperty, nf = Object.getOwnPropertyDescriptor, Lo = (e, t, i, n) => {
|
|
13217
13217
|
for (var r = n > 1 ? void 0 : n ? nf(t, i) : t, s = e.length - 1, a; s >= 0; s--)
|
|
@@ -13235,7 +13235,7 @@ let Er = class extends _ {
|
|
|
13235
13235
|
) : {}, r = this.isDarkMode ? this.inputHandlersValue.darkSrc ?? this.inputHandlersValue.src : this.inputHandlersValue.src;
|
|
13236
13236
|
return h`
|
|
13237
13237
|
<nr-image
|
|
13238
|
-
${
|
|
13238
|
+
${O(this.inputRef)}
|
|
13239
13239
|
style=${$({
|
|
13240
13240
|
...this.getStyles(),
|
|
13241
13241
|
display: "block",
|
|
@@ -13276,7 +13276,7 @@ Lo([
|
|
|
13276
13276
|
g({ type: Object })
|
|
13277
13277
|
], Er.prototype, "component", 2);
|
|
13278
13278
|
Er = Lo([
|
|
13279
|
-
|
|
13279
|
+
V("image-block")
|
|
13280
13280
|
], Er);
|
|
13281
13281
|
var rf = Object.defineProperty, sf = Object.getOwnPropertyDescriptor, rs = (e, t, i, n) => {
|
|
13282
13282
|
for (var r = n > 1 ? void 0 : n ? sf(t, i) : t, s = e.length - 1, a; s >= 0; s--)
|
|
@@ -13325,9 +13325,9 @@ rs([
|
|
|
13325
13325
|
g({ type: Object })
|
|
13326
13326
|
], En.prototype, "item", 2);
|
|
13327
13327
|
En = rs([
|
|
13328
|
-
|
|
13328
|
+
V("radio-button-block")
|
|
13329
13329
|
], En);
|
|
13330
|
-
const af =
|
|
13330
|
+
const af = D`
|
|
13331
13331
|
:host {
|
|
13332
13332
|
display:flex;
|
|
13333
13333
|
align-items:center;
|
|
@@ -13524,9 +13524,9 @@ Fe([
|
|
|
13524
13524
|
f()
|
|
13525
13525
|
], Ce.prototype, "isLoading", 2);
|
|
13526
13526
|
Ce = Fe([
|
|
13527
|
-
|
|
13527
|
+
V("ai-chat-block")
|
|
13528
13528
|
], Ce);
|
|
13529
|
-
const pf =
|
|
13529
|
+
const pf = D`
|
|
13530
13530
|
:host {
|
|
13531
13531
|
--icon-picker-icon-preview: #000000;
|
|
13532
13532
|
--icon-picker-dropdown-background: #ffffff;
|
|
@@ -13645,7 +13645,7 @@ let Pn = class extends _ {
|
|
|
13645
13645
|
const t = (this.component?.style || {}).size || "medium";
|
|
13646
13646
|
return h`
|
|
13647
13647
|
<nr-icon-picker
|
|
13648
|
-
${
|
|
13648
|
+
${O(this.inputRef)}
|
|
13649
13649
|
style=${$({
|
|
13650
13650
|
...this.getStyles()
|
|
13651
13651
|
})}
|
|
@@ -13683,7 +13683,7 @@ Bo([
|
|
|
13683
13683
|
g({ type: Object })
|
|
13684
13684
|
], Pn.prototype, "component", 2);
|
|
13685
13685
|
Pn = Bo([
|
|
13686
|
-
|
|
13686
|
+
V("icon-picker-block")
|
|
13687
13687
|
], Pn);
|
|
13688
13688
|
function zo(e, t = 300) {
|
|
13689
13689
|
let i;
|
|
@@ -13739,7 +13739,7 @@ let _i = class extends _ {
|
|
|
13739
13739
|
}
|
|
13740
13740
|
};
|
|
13741
13741
|
_i.styles = [
|
|
13742
|
-
|
|
13742
|
+
D`
|
|
13743
13743
|
.no-app-selected {
|
|
13744
13744
|
display: flex;
|
|
13745
13745
|
justify-content: center;
|
|
@@ -13759,7 +13759,7 @@ ss([
|
|
|
13759
13759
|
g({ type: Object })
|
|
13760
13760
|
], _i.prototype, "item", 2);
|
|
13761
13761
|
_i = ss([
|
|
13762
|
-
|
|
13762
|
+
V("micro-app-block")
|
|
13763
13763
|
], _i);
|
|
13764
13764
|
var bf = Object.defineProperty, vf = Object.getOwnPropertyDescriptor, jo = (e, t, i, n) => {
|
|
13765
13765
|
for (var r = n > 1 ? void 0 : n ? vf(t, i) : t, s = e.length - 1, a; s >= 0; s--)
|
|
@@ -13793,7 +13793,7 @@ jo([
|
|
|
13793
13793
|
g({ type: Object })
|
|
13794
13794
|
], Pr.prototype, "component", 2);
|
|
13795
13795
|
Pr = jo([
|
|
13796
|
-
|
|
13796
|
+
V("users-dropdown-block")
|
|
13797
13797
|
], Pr);
|
|
13798
13798
|
var yf = Object.defineProperty, xf = Object.getOwnPropertyDescriptor, Fo = (e, t, i, n) => {
|
|
13799
13799
|
for (var r = n > 1 ? void 0 : n ? xf(t, i) : t, s = e.length - 1, a; s >= 0; s--)
|
|
@@ -13820,7 +13820,7 @@ let kn = class extends _ {
|
|
|
13820
13820
|
const e = this.inputHandlersValue?.options || [];
|
|
13821
13821
|
return h`
|
|
13822
13822
|
<nr-dropdown
|
|
13823
|
-
${
|
|
13823
|
+
${O(this.inputRef)}
|
|
13824
13824
|
style=${$({
|
|
13825
13825
|
...this.getStyles(),
|
|
13826
13826
|
"--nuraly-icon-color": "#515161",
|
|
@@ -13866,13 +13866,13 @@ let kn = class extends _ {
|
|
|
13866
13866
|
}
|
|
13867
13867
|
};
|
|
13868
13868
|
kn.styles = [
|
|
13869
|
-
|
|
13869
|
+
D``
|
|
13870
13870
|
];
|
|
13871
13871
|
Fo([
|
|
13872
13872
|
g({ type: Object })
|
|
13873
13873
|
], kn.prototype, "component", 2);
|
|
13874
13874
|
kn = Fo([
|
|
13875
|
-
|
|
13875
|
+
V("insert-dropdown-block")
|
|
13876
13876
|
], kn);
|
|
13877
13877
|
var Cf = Object.defineProperty, $f = Object.getOwnPropertyDescriptor, Jn = (e, t, i, n) => {
|
|
13878
13878
|
for (var r = n > 1 ? void 0 : n ? $f(t, i) : t, s = e.length - 1, a; s >= 0; s--)
|
|
@@ -13896,7 +13896,7 @@ let Si = class extends _ {
|
|
|
13896
13896
|
firstUpdated(e) {
|
|
13897
13897
|
super.firstUpdated(e);
|
|
13898
13898
|
const t = this.component.application_id;
|
|
13899
|
-
this.componentsWithChildren =
|
|
13899
|
+
this.componentsWithChildren = Re(t).get();
|
|
13900
13900
|
}
|
|
13901
13901
|
updateComponents() {
|
|
13902
13902
|
this.sections = this.generateSection();
|
|
@@ -13941,7 +13941,7 @@ Jn([
|
|
|
13941
13941
|
f()
|
|
13942
13942
|
], Si.prototype, "componentsWithChildren", 2);
|
|
13943
13943
|
Si = Jn([
|
|
13944
|
-
|
|
13944
|
+
V("collapse-block")
|
|
13945
13945
|
], Si);
|
|
13946
13946
|
var wf = Object.defineProperty, _f = Object.getOwnPropertyDescriptor, as = (e, t, i, n) => {
|
|
13947
13947
|
for (var r = n > 1 ? void 0 : n ? _f(t, i) : t, s = e.length - 1, a; s >= 0; s--)
|
|
@@ -13973,7 +13973,7 @@ let Ei = class extends _ {
|
|
|
13973
13973
|
return n && i && delete r.height, h`
|
|
13974
13974
|
${!this.inputHandlersValue?.display || this.inputHandlersValue.display == "show" ? h`
|
|
13975
13975
|
<nr-divider
|
|
13976
|
-
${
|
|
13976
|
+
${O(this.inputRef)}
|
|
13977
13977
|
style=${$({
|
|
13978
13978
|
...r,
|
|
13979
13979
|
width: t ? "100%" : e.width,
|
|
@@ -13997,7 +13997,7 @@ let Ei = class extends _ {
|
|
|
13997
13997
|
}
|
|
13998
13998
|
};
|
|
13999
13999
|
Ei.styles = [
|
|
14000
|
-
|
|
14000
|
+
D`
|
|
14001
14001
|
:host {
|
|
14002
14002
|
display: block;
|
|
14003
14003
|
width: 100%;
|
|
@@ -14023,7 +14023,7 @@ as([
|
|
|
14023
14023
|
g({ type: Object })
|
|
14024
14024
|
], Ei.prototype, "item", 2);
|
|
14025
14025
|
Ei = as([
|
|
14026
|
-
|
|
14026
|
+
V("divider-block")
|
|
14027
14027
|
], Ei);
|
|
14028
14028
|
var Sf = Object.defineProperty, Ef = Object.getOwnPropertyDescriptor, qo = (e, t, i, n) => {
|
|
14029
14029
|
for (var r = n > 1 ? void 0 : n ? Ef(t, i) : t, s = e.length - 1, a; s >= 0; s--)
|
|
@@ -14201,7 +14201,7 @@ let In = class extends _ {
|
|
|
14201
14201
|
}
|
|
14202
14202
|
};
|
|
14203
14203
|
In.styles = [
|
|
14204
|
-
|
|
14204
|
+
D`
|
|
14205
14205
|
.container {
|
|
14206
14206
|
display: flex;
|
|
14207
14207
|
justify-content: space-between;
|
|
@@ -14213,7 +14213,7 @@ qo([
|
|
|
14213
14213
|
g({ type: Object })
|
|
14214
14214
|
], In.prototype, "component", 2);
|
|
14215
14215
|
In = qo([
|
|
14216
|
-
|
|
14216
|
+
V("handler-block")
|
|
14217
14217
|
], In);
|
|
14218
14218
|
var Pf = Object.defineProperty, kf = Object.getOwnPropertyDescriptor, If = (e, t, i, n) => {
|
|
14219
14219
|
for (var r = n > 1 ? void 0 : n ? kf(t, i) : t, s = e.length - 1, a; s >= 0; s--)
|
|
@@ -14232,7 +14232,7 @@ let kr = class extends _ {
|
|
|
14232
14232
|
}
|
|
14233
14233
|
};
|
|
14234
14234
|
kr.styles = [
|
|
14235
|
-
|
|
14235
|
+
D`
|
|
14236
14236
|
:host{
|
|
14237
14237
|
height: 200px;
|
|
14238
14238
|
}
|
|
@@ -14245,14 +14245,14 @@ kr.styles = [
|
|
|
14245
14245
|
`
|
|
14246
14246
|
];
|
|
14247
14247
|
kr = If([
|
|
14248
|
-
|
|
14248
|
+
V("invoke-function-block")
|
|
14249
14249
|
], kr);
|
|
14250
|
-
var
|
|
14251
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
14250
|
+
var Af = Object.defineProperty, Vf = Object.getOwnPropertyDescriptor, os = (e, t, i, n) => {
|
|
14251
|
+
for (var r = n > 1 ? void 0 : n ? Vf(t, i) : t, s = e.length - 1, a; s >= 0; s--)
|
|
14252
14252
|
(a = e[s]) && (r = (n ? a(t, i, r) : a(r)) || r);
|
|
14253
|
-
return n && r &&
|
|
14253
|
+
return n && r && Af(t, i, r), r;
|
|
14254
14254
|
};
|
|
14255
|
-
let
|
|
14255
|
+
let An = class extends _ {
|
|
14256
14256
|
constructor() {
|
|
14257
14257
|
super(...arguments), this.exportCode = "";
|
|
14258
14258
|
}
|
|
@@ -14334,14 +14334,14 @@ let Vn = class extends _ {
|
|
|
14334
14334
|
};
|
|
14335
14335
|
os([
|
|
14336
14336
|
g({ type: Object })
|
|
14337
|
-
],
|
|
14337
|
+
], An.prototype, "component", 2);
|
|
14338
14338
|
os([
|
|
14339
14339
|
f()
|
|
14340
|
-
],
|
|
14341
|
-
|
|
14342
|
-
|
|
14343
|
-
],
|
|
14344
|
-
const
|
|
14340
|
+
], An.prototype, "exportCode", 2);
|
|
14341
|
+
An = os([
|
|
14342
|
+
V("export-import-block")
|
|
14343
|
+
], An);
|
|
14344
|
+
const Tf = D`
|
|
14345
14345
|
.collection_viewer {
|
|
14346
14346
|
--columns: 1;
|
|
14347
14347
|
min-width: 200px;
|
|
@@ -14360,12 +14360,12 @@ const Of = H`
|
|
|
14360
14360
|
flex: 0 0 calc(100% / var(--columns) - 10px); /* Fixed width */
|
|
14361
14361
|
}
|
|
14362
14362
|
`;
|
|
14363
|
-
var
|
|
14364
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
14363
|
+
var Of = Object.defineProperty, Df = Object.getOwnPropertyDescriptor, it = (e, t, i, n) => {
|
|
14364
|
+
for (var r = n > 1 ? void 0 : n ? Df(t, i) : t, s = e.length - 1, a; s >= 0; s--)
|
|
14365
14365
|
(a = e[s]) && (r = (n ? a(t, i, r) : a(r)) || r);
|
|
14366
|
-
return n && r &&
|
|
14366
|
+
return n && r && Of(t, i, r), r;
|
|
14367
14367
|
};
|
|
14368
|
-
let
|
|
14368
|
+
let Ve = class extends _ {
|
|
14369
14369
|
constructor() {
|
|
14370
14370
|
super(...arguments), this.isViewMode = !1, this.dropDragPalceHolderStyle = {
|
|
14371
14371
|
display: "none",
|
|
@@ -14399,7 +14399,7 @@ let Ae = class extends _ {
|
|
|
14399
14399
|
}
|
|
14400
14400
|
renderRow(e) {
|
|
14401
14401
|
return h`
|
|
14402
|
-
<div class="collection" ${
|
|
14402
|
+
<div class="collection" ${O(this.containerRef)}
|
|
14403
14403
|
@click="${(t) => this.handleCollectionClick(t)}">
|
|
14404
14404
|
${this.childrenComponents.length ? h`${We(
|
|
14405
14405
|
this.childrenComponents.map((t) => ({ ...t, item: e })),
|
|
@@ -14419,7 +14419,7 @@ let Ae = class extends _ {
|
|
|
14419
14419
|
const e = this.inputHandlersValue.direction?.value === "vertical", t = this.getData();
|
|
14420
14420
|
return h`
|
|
14421
14421
|
<div
|
|
14422
|
-
${
|
|
14422
|
+
${O(this.inputRef)}
|
|
14423
14423
|
style=${$(this.getStyles())}
|
|
14424
14424
|
class=${qt({
|
|
14425
14425
|
collection_viewer: !0,
|
|
@@ -14431,38 +14431,38 @@ let Ae = class extends _ {
|
|
|
14431
14431
|
`;
|
|
14432
14432
|
}
|
|
14433
14433
|
};
|
|
14434
|
-
|
|
14434
|
+
Ve.styles = Tf;
|
|
14435
14435
|
it([
|
|
14436
14436
|
g({ type: Object })
|
|
14437
|
-
],
|
|
14437
|
+
], Ve.prototype, "component", 2);
|
|
14438
14438
|
it([
|
|
14439
14439
|
g({ type: Boolean })
|
|
14440
|
-
],
|
|
14440
|
+
], Ve.prototype, "isViewMode", 2);
|
|
14441
14441
|
it([
|
|
14442
14442
|
g({ type: String })
|
|
14443
|
-
],
|
|
14443
|
+
], Ve.prototype, "mode", 2);
|
|
14444
14444
|
it([
|
|
14445
14445
|
f()
|
|
14446
|
-
],
|
|
14446
|
+
], Ve.prototype, "hoveredComponent", 2);
|
|
14447
14447
|
it([
|
|
14448
14448
|
f()
|
|
14449
|
-
],
|
|
14449
|
+
], Ve.prototype, "currentEditingApplication", 2);
|
|
14450
14450
|
it([
|
|
14451
14451
|
f()
|
|
14452
|
-
],
|
|
14452
|
+
], Ve.prototype, "draggingComponentInfo", 2);
|
|
14453
14453
|
it([
|
|
14454
14454
|
f()
|
|
14455
|
-
],
|
|
14455
|
+
], Ve.prototype, "dropDragPalceHolderStyle", 2);
|
|
14456
14456
|
it([
|
|
14457
14457
|
f()
|
|
14458
|
-
],
|
|
14459
|
-
|
|
14460
|
-
|
|
14461
|
-
],
|
|
14462
|
-
var
|
|
14458
|
+
], Ve.prototype, "childrenComponents", 2);
|
|
14459
|
+
Ve = it([
|
|
14460
|
+
V("collection-viewer")
|
|
14461
|
+
], Ve);
|
|
14462
|
+
var Hf = Object.defineProperty, Mf = Object.getOwnPropertyDescriptor, ls = (e, t, i, n) => {
|
|
14463
14463
|
for (var r = n > 1 ? void 0 : n ? Mf(t, i) : t, s = e.length - 1, a; s >= 0; s--)
|
|
14464
14464
|
(a = e[s]) && (r = (n ? a(t, i, r) : a(r)) || r);
|
|
14465
|
-
return n && r &&
|
|
14465
|
+
return n && r && Hf(t, i, r), r;
|
|
14466
14466
|
};
|
|
14467
14467
|
try {
|
|
14468
14468
|
await import("@nuralyui/button");
|
|
@@ -14481,7 +14481,7 @@ let Pi = class extends _ {
|
|
|
14481
14481
|
const e = this.getStyles(), t = this.inputHandlersValue.icon ? [this.inputHandlersValue.icon] : [];
|
|
14482
14482
|
return h`
|
|
14483
14483
|
<nr-button
|
|
14484
|
-
${
|
|
14484
|
+
${O(this.inputRef)}
|
|
14485
14485
|
size=${this.inputHandlersValue?.size || m}
|
|
14486
14486
|
type=${this.inputHandlersValue?.type || "default"}
|
|
14487
14487
|
.shape=${this.inputHandlersValue?.shape || m}
|
|
@@ -14520,7 +14520,7 @@ let Pi = class extends _ {
|
|
|
14520
14520
|
}
|
|
14521
14521
|
};
|
|
14522
14522
|
Pi.styles = [
|
|
14523
|
-
|
|
14523
|
+
D`
|
|
14524
14524
|
:host {
|
|
14525
14525
|
--nuraly-button-icon-width: 19px;
|
|
14526
14526
|
}
|
|
@@ -14533,9 +14533,9 @@ ls([
|
|
|
14533
14533
|
f()
|
|
14534
14534
|
], Pi.prototype, "display", 2);
|
|
14535
14535
|
Pi = ls([
|
|
14536
|
-
|
|
14536
|
+
V("button-block")
|
|
14537
14537
|
], Pi);
|
|
14538
|
-
const
|
|
14538
|
+
const Uf = D`
|
|
14539
14539
|
label{
|
|
14540
14540
|
color:var(--text-label-color);
|
|
14541
14541
|
user-select: none
|
|
@@ -14551,7 +14551,7 @@ label{
|
|
|
14551
14551
|
}
|
|
14552
14552
|
}
|
|
14553
14553
|
|
|
14554
|
-
`,
|
|
14554
|
+
`, Rf = [Uf];
|
|
14555
14555
|
var Nf = Object.defineProperty, Lf = Object.getOwnPropertyDescriptor, Qn = (e, t, i, n) => {
|
|
14556
14556
|
for (var r = n > 1 ? void 0 : n ? Lf(t, i) : t, s = e.length - 1, a; s >= 0; s--)
|
|
14557
14557
|
(a = e[s]) && (r = (n ? a(t, i, r) : a(r)) || r);
|
|
@@ -14576,7 +14576,7 @@ let Wt = class extends _ {
|
|
|
14576
14576
|
const t = { value: { type: "string", value: e.target.innerText } };
|
|
14577
14577
|
this.executeEvent("onInput", e, t);
|
|
14578
14578
|
}}
|
|
14579
|
-
${
|
|
14579
|
+
${O(this.inputRef)}
|
|
14580
14580
|
id=${this.component.uuid}
|
|
14581
14581
|
.size=${this.inputHandlersValue.size ?? "medium"}
|
|
14582
14582
|
.variant=${this.inputHandlersValue.variant || "default"}
|
|
@@ -14601,7 +14601,7 @@ let Wt = class extends _ {
|
|
|
14601
14601
|
`;
|
|
14602
14602
|
}
|
|
14603
14603
|
};
|
|
14604
|
-
Wt.styles =
|
|
14604
|
+
Wt.styles = Rf;
|
|
14605
14605
|
Qn([
|
|
14606
14606
|
g({ type: Object })
|
|
14607
14607
|
], Wt.prototype, "component", 2);
|
|
@@ -14612,9 +14612,9 @@ Qn([
|
|
|
14612
14612
|
f()
|
|
14613
14613
|
], Wt.prototype, "isEditable", 2);
|
|
14614
14614
|
Wt = Qn([
|
|
14615
|
-
|
|
14615
|
+
V("text-label-block")
|
|
14616
14616
|
], Wt);
|
|
14617
|
-
var Bf = Object.defineProperty, zf = Object.getOwnPropertyDescriptor,
|
|
14617
|
+
var Bf = Object.defineProperty, zf = Object.getOwnPropertyDescriptor, De = (e, t, i, n) => {
|
|
14618
14618
|
for (var r = n > 1 ? void 0 : n ? zf(t, i) : t, s = e.length - 1, a; s >= 0; s--)
|
|
14619
14619
|
(a = e[s]) && (r = (n ? a(t, i, r) : a(r)) || r);
|
|
14620
14620
|
return n && r && Bf(t, i, r), r;
|
|
@@ -14631,14 +14631,14 @@ let $e = class extends _ {
|
|
|
14631
14631
|
firstUpdated(e) {
|
|
14632
14632
|
C.on(`component-property-changed:${String(this.component.name)}`, () => {
|
|
14633
14633
|
this.requestUpdate();
|
|
14634
|
-
}),
|
|
14634
|
+
}), Re(this.component.application_id).subscribe(
|
|
14635
14635
|
(t) => {
|
|
14636
14636
|
this.components = [...t];
|
|
14637
14637
|
}
|
|
14638
14638
|
), C.on(
|
|
14639
14639
|
"component:refresh",
|
|
14640
14640
|
() => {
|
|
14641
|
-
this.components =
|
|
14641
|
+
this.components = Re(this.component.application_id).get();
|
|
14642
14642
|
}
|
|
14643
14643
|
);
|
|
14644
14644
|
}
|
|
@@ -14656,38 +14656,38 @@ let $e = class extends _ {
|
|
|
14656
14656
|
`;
|
|
14657
14657
|
}
|
|
14658
14658
|
};
|
|
14659
|
-
|
|
14659
|
+
De([
|
|
14660
14660
|
g({ type: Object })
|
|
14661
14661
|
], $e.prototype, "component", 2);
|
|
14662
|
-
|
|
14662
|
+
De([
|
|
14663
14663
|
g({ type: Object })
|
|
14664
14664
|
], $e.prototype, "item", 2);
|
|
14665
|
-
|
|
14665
|
+
De([
|
|
14666
14666
|
f()
|
|
14667
14667
|
], $e.prototype, "dragOverSituation", 2);
|
|
14668
|
-
|
|
14668
|
+
De([
|
|
14669
14669
|
f()
|
|
14670
14670
|
], $e.prototype, "selectedComponent", 2);
|
|
14671
|
-
|
|
14671
|
+
De([
|
|
14672
14672
|
f()
|
|
14673
14673
|
], $e.prototype, "hoveredComponent", 2);
|
|
14674
|
-
|
|
14674
|
+
De([
|
|
14675
14675
|
g({ type: Object })
|
|
14676
14676
|
], $e.prototype, "draggingComponentInfo", 2);
|
|
14677
|
-
|
|
14677
|
+
De([
|
|
14678
14678
|
g({ type: Boolean })
|
|
14679
14679
|
], $e.prototype, "isViewMode", 2);
|
|
14680
|
-
|
|
14680
|
+
De([
|
|
14681
14681
|
f()
|
|
14682
14682
|
], $e.prototype, "wrapperStyle", 2);
|
|
14683
|
-
|
|
14683
|
+
De([
|
|
14684
14684
|
f()
|
|
14685
14685
|
], $e.prototype, "containerRef", 2);
|
|
14686
|
-
|
|
14686
|
+
De([
|
|
14687
14687
|
f()
|
|
14688
14688
|
], $e.prototype, "components", 2);
|
|
14689
|
-
$e =
|
|
14690
|
-
|
|
14689
|
+
$e = De([
|
|
14690
|
+
V("ref-component-container-block")
|
|
14691
14691
|
], $e);
|
|
14692
14692
|
var jf = Object.defineProperty, Ff = Object.getOwnPropertyDescriptor, Xn = (e, t, i, n) => {
|
|
14693
14693
|
for (var r = n > 1 ? void 0 : n ? Ff(t, i) : t, s = e.length - 1, a; s >= 0; s--)
|
|
@@ -14705,7 +14705,7 @@ let Kt = class extends _ {
|
|
|
14705
14705
|
};
|
|
14706
14706
|
}
|
|
14707
14707
|
async connectedCallback() {
|
|
14708
|
-
await super.connectedCallback(), this.isEditorLoaded || (await import("./CodeEditor-
|
|
14708
|
+
await super.connectedCallback(), this.isEditorLoaded || (await import("./CodeEditor-YsOapSut.js").then((e) => e.C), this.isEditorLoaded = !0);
|
|
14709
14709
|
}
|
|
14710
14710
|
disconnectedCallback() {
|
|
14711
14711
|
super.disconnectedCallback();
|
|
@@ -14735,7 +14735,7 @@ let Kt = class extends _ {
|
|
|
14735
14735
|
@click=${(e) => {
|
|
14736
14736
|
this.executeEvent("onClick", e);
|
|
14737
14737
|
}}
|
|
14738
|
-
${
|
|
14738
|
+
${O(this.inputRef)}
|
|
14739
14739
|
style=${$({
|
|
14740
14740
|
...this.getStyles(),
|
|
14741
14741
|
display: "block"
|
|
@@ -14757,7 +14757,7 @@ let Kt = class extends _ {
|
|
|
14757
14757
|
}
|
|
14758
14758
|
};
|
|
14759
14759
|
Kt.styles = [
|
|
14760
|
-
|
|
14760
|
+
D`
|
|
14761
14761
|
:host {
|
|
14762
14762
|
}
|
|
14763
14763
|
code-editor {
|
|
@@ -14776,7 +14776,7 @@ Xn([
|
|
|
14776
14776
|
f()
|
|
14777
14777
|
], Kt.prototype, "isEditorLoaded", 2);
|
|
14778
14778
|
Kt = Xn([
|
|
14779
|
-
|
|
14779
|
+
V("code-block")
|
|
14780
14780
|
], Kt);
|
|
14781
14781
|
var qf = Object.defineProperty, Gf = Object.getOwnPropertyDescriptor, us = (e, t, i, n) => {
|
|
14782
14782
|
for (var r = n > 1 ? void 0 : n ? Gf(t, i) : t, s = e.length - 1, a; s >= 0; s--)
|
|
@@ -14849,7 +14849,7 @@ let ki = class extends ce {
|
|
|
14849
14849
|
return this.shadowRoot?.getSelection ? this.shadowRoot?.getSelection() : null;
|
|
14850
14850
|
}
|
|
14851
14851
|
};
|
|
14852
|
-
ki.styles =
|
|
14852
|
+
ki.styles = D`
|
|
14853
14853
|
:host {
|
|
14854
14854
|
/* --editor-width: 600px; */
|
|
14855
14855
|
/* --editor-height: 600px; */
|
|
@@ -14946,7 +14946,7 @@ us([
|
|
|
14946
14946
|
f()
|
|
14947
14947
|
], ki.prototype, "root", 2);
|
|
14948
14948
|
ki = us([
|
|
14949
|
-
|
|
14949
|
+
V("rich-text-editor-block")
|
|
14950
14950
|
], ki);
|
|
14951
14951
|
function Kf(e, t, i) {
|
|
14952
14952
|
const n = [];
|
|
@@ -15152,7 +15152,7 @@ class Ir extends qn {
|
|
|
15152
15152
|
}
|
|
15153
15153
|
Ir.directiveName = "unsafeHTML", Ir.resultType = 1;
|
|
15154
15154
|
const Yf = Fn(Ir);
|
|
15155
|
-
var Jf = Object.defineProperty, Qf = Object.getOwnPropertyDescriptor,
|
|
15155
|
+
var Jf = Object.defineProperty, Qf = Object.getOwnPropertyDescriptor, He = (e, t, i, n) => {
|
|
15156
15156
|
for (var r = n > 1 ? void 0 : n ? Qf(t, i) : t, s = e.length - 1, a; s >= 0; s--)
|
|
15157
15157
|
(a = e[s]) && (r = (n ? a(t, i, r) : a(r)) || r);
|
|
15158
15158
|
return n && r && Jf(t, i, r), r;
|
|
@@ -15191,7 +15191,7 @@ let we = class extends _ {
|
|
|
15191
15191
|
}
|
|
15192
15192
|
renderComponent() {
|
|
15193
15193
|
return h`
|
|
15194
|
-
<div ${
|
|
15194
|
+
<div ${O(this.inputRef)}
|
|
15195
15195
|
style=${$({
|
|
15196
15196
|
...this.getStyles(),
|
|
15197
15197
|
width: this.editing ? "auto" : this.getStyles().width,
|
|
@@ -15216,38 +15216,38 @@ let we = class extends _ {
|
|
|
15216
15216
|
firstUpdated(e) {
|
|
15217
15217
|
}
|
|
15218
15218
|
};
|
|
15219
|
-
|
|
15219
|
+
He([
|
|
15220
15220
|
g({ type: Object })
|
|
15221
15221
|
], we.prototype, "component", 2);
|
|
15222
|
-
|
|
15222
|
+
He([
|
|
15223
15223
|
g({ type: Object })
|
|
15224
15224
|
], we.prototype, "item", 2);
|
|
15225
|
-
|
|
15225
|
+
He([
|
|
15226
15226
|
g({ type: Object })
|
|
15227
15227
|
], we.prototype, "draggingComponentInfo", 2);
|
|
15228
|
-
|
|
15228
|
+
He([
|
|
15229
15229
|
g({ type: Boolean })
|
|
15230
15230
|
], we.prototype, "isViewMode", 2);
|
|
15231
|
-
|
|
15231
|
+
He([
|
|
15232
15232
|
f()
|
|
15233
15233
|
], we.prototype, "dragOverSituation", 2);
|
|
15234
|
-
|
|
15234
|
+
He([
|
|
15235
15235
|
f()
|
|
15236
15236
|
], we.prototype, "selectedComponent", 2);
|
|
15237
|
-
|
|
15237
|
+
He([
|
|
15238
15238
|
f()
|
|
15239
15239
|
], we.prototype, "hoveredComponent", 2);
|
|
15240
|
-
|
|
15240
|
+
He([
|
|
15241
15241
|
f()
|
|
15242
15242
|
], we.prototype, "wrapperStyle", 2);
|
|
15243
|
-
|
|
15243
|
+
He([
|
|
15244
15244
|
f()
|
|
15245
15245
|
], we.prototype, "components", 2);
|
|
15246
|
-
|
|
15246
|
+
He([
|
|
15247
15247
|
f()
|
|
15248
15248
|
], we.prototype, "editing", 2);
|
|
15249
|
-
we =
|
|
15250
|
-
|
|
15249
|
+
we = He([
|
|
15250
|
+
V("rich-text-block")
|
|
15251
15251
|
], we);
|
|
15252
15252
|
var Xf = Object.defineProperty, Zf = Object.getOwnPropertyDescriptor, Yi = (e, t, i, n) => {
|
|
15253
15253
|
for (var r = n > 1 ? void 0 : n ? Zf(t, i) : t, s = e.length - 1, a; s >= 0; s--)
|
|
@@ -15256,7 +15256,7 @@ var Xf = Object.defineProperty, Zf = Object.getOwnPropertyDescriptor, Yi = (e, t
|
|
|
15256
15256
|
};
|
|
15257
15257
|
let St = class extends _ {
|
|
15258
15258
|
constructor() {
|
|
15259
|
-
super(), this.currentUrl = "", this._isUserFocused = !1, this._focusResetTimeout = null, this.iframeRef =
|
|
15259
|
+
super(), this.currentUrl = "", this._isUserFocused = !1, this._focusResetTimeout = null, this.iframeRef = O(), this.handleUrlChange = zo((e) => {
|
|
15260
15260
|
this.component?.event?.valueChange && z(
|
|
15261
15261
|
this.component,
|
|
15262
15262
|
Q(this.component, "event.valueChange"),
|
|
@@ -15285,18 +15285,18 @@ let St = class extends _ {
|
|
|
15285
15285
|
const e = this.currentUrl || this.inputHandlersValue?.url || "";
|
|
15286
15286
|
return h`
|
|
15287
15287
|
<div
|
|
15288
|
-
${
|
|
15288
|
+
${O(this.inputRef)}
|
|
15289
15289
|
tabindex="0"
|
|
15290
15290
|
@focus=${this.onFocus}
|
|
15291
15291
|
@blur=${this.onBlur}
|
|
15292
15292
|
style=${$(this.getStyles())}
|
|
15293
15293
|
>
|
|
15294
|
-
${e ? h`<iframe ${
|
|
15294
|
+
${e ? h`<iframe ${O(this.iframeRef)} src=${e}></iframe>` : h`<div style="text-align:center; color:gray;">No URL provided</div>`}
|
|
15295
15295
|
</div>
|
|
15296
15296
|
`;
|
|
15297
15297
|
}
|
|
15298
15298
|
};
|
|
15299
|
-
St.styles = [
|
|
15299
|
+
St.styles = [D`
|
|
15300
15300
|
iframe {
|
|
15301
15301
|
width: 100%;
|
|
15302
15302
|
height: 100%;
|
|
@@ -15316,14 +15316,14 @@ Yi([
|
|
|
15316
15316
|
f()
|
|
15317
15317
|
], St.prototype, "_isUserFocused", 2);
|
|
15318
15318
|
St = Yi([
|
|
15319
|
-
|
|
15319
|
+
V("embed-url-block")
|
|
15320
15320
|
], St);
|
|
15321
15321
|
var em = Object.defineProperty, tm = Object.getOwnPropertyDescriptor, cs = (e, t, i, n) => {
|
|
15322
15322
|
for (var r = n > 1 ? void 0 : n ? tm(t, i) : t, s = e.length - 1, a; s >= 0; s--)
|
|
15323
15323
|
(a = e[s]) && (r = (n ? a(t, i, r) : a(r)) || r);
|
|
15324
15324
|
return n && r && em(t, i, r), r;
|
|
15325
15325
|
};
|
|
15326
|
-
let
|
|
15326
|
+
let Vn = class extends _ {
|
|
15327
15327
|
constructor() {
|
|
15328
15328
|
super(), this.childrenComponents = [];
|
|
15329
15329
|
}
|
|
@@ -15342,7 +15342,7 @@ let An = class extends _ {
|
|
|
15342
15342
|
return h`
|
|
15343
15343
|
<a
|
|
15344
15344
|
|
|
15345
|
-
${
|
|
15345
|
+
${O(this.inputRef)}
|
|
15346
15346
|
style=${$({
|
|
15347
15347
|
...this.getStyles()
|
|
15348
15348
|
})}
|
|
@@ -15376,13 +15376,13 @@ let An = class extends _ {
|
|
|
15376
15376
|
};
|
|
15377
15377
|
cs([
|
|
15378
15378
|
g({ type: Object })
|
|
15379
|
-
],
|
|
15379
|
+
], Vn.prototype, "component", 2);
|
|
15380
15380
|
cs([
|
|
15381
15381
|
f()
|
|
15382
|
-
],
|
|
15383
|
-
|
|
15384
|
-
|
|
15385
|
-
],
|
|
15382
|
+
], Vn.prototype, "childrenComponents", 2);
|
|
15383
|
+
Vn = cs([
|
|
15384
|
+
V("link-block")
|
|
15385
|
+
], Vn);
|
|
15386
15386
|
var im = Object.defineProperty, nm = Object.getOwnPropertyDescriptor, rm = (e, t, i, n) => {
|
|
15387
15387
|
for (var r = n > 1 ? void 0 : n ? nm(t, i) : t, s = e.length - 1, a; s >= 0; s--)
|
|
15388
15388
|
(a = e[s]) && (r = (n ? a(t, i, r) : a(r)) || r);
|
|
@@ -15393,7 +15393,7 @@ try {
|
|
|
15393
15393
|
} catch {
|
|
15394
15394
|
console.warn("[@nuralyui/file-upload] Package not found or failed to load.");
|
|
15395
15395
|
}
|
|
15396
|
-
let
|
|
15396
|
+
let Ar = class extends _ {
|
|
15397
15397
|
renderComponent() {
|
|
15398
15398
|
return h`
|
|
15399
15399
|
<nr-file-upload
|
|
@@ -15401,7 +15401,7 @@ let Vr = class extends _ {
|
|
|
15401
15401
|
...this.getStyles()
|
|
15402
15402
|
})}
|
|
15403
15403
|
|
|
15404
|
-
${
|
|
15404
|
+
${O(this.inputRef)}
|
|
15405
15405
|
accept="*/*"
|
|
15406
15406
|
drag
|
|
15407
15407
|
limit="5"
|
|
@@ -15416,16 +15416,16 @@ let Vr = class extends _ {
|
|
|
15416
15416
|
`;
|
|
15417
15417
|
}
|
|
15418
15418
|
};
|
|
15419
|
-
|
|
15420
|
-
|
|
15419
|
+
Ar.styles = [
|
|
15420
|
+
D`
|
|
15421
15421
|
:host {
|
|
15422
15422
|
display: block;
|
|
15423
15423
|
}
|
|
15424
15424
|
`
|
|
15425
15425
|
];
|
|
15426
|
-
|
|
15427
|
-
|
|
15428
|
-
],
|
|
15426
|
+
Ar = rm([
|
|
15427
|
+
V("file-upload-block")
|
|
15428
|
+
], Ar);
|
|
15429
15429
|
var sm = Object.defineProperty, am = Object.getOwnPropertyDescriptor, Go = (e, t, i, n) => {
|
|
15430
15430
|
for (var r = n > 1 ? void 0 : n ? am(t, i) : t, s = e.length - 1, a; s >= 0; s--)
|
|
15431
15431
|
(a = e[s]) && (r = (n ? a(t, i, r) : a(r)) || r);
|
|
@@ -15436,14 +15436,14 @@ try {
|
|
|
15436
15436
|
} catch {
|
|
15437
15437
|
console.warn("[@nuralyui/document] Package not found or failed to load.");
|
|
15438
15438
|
}
|
|
15439
|
-
let
|
|
15439
|
+
let Vr = class extends _ {
|
|
15440
15440
|
renderComponent() {
|
|
15441
15441
|
const t = this.getStyles() || {}, i = this.component?.styleHandlers ? Object.fromEntries(
|
|
15442
15442
|
Object.entries(this.component?.styleHandlers).filter(([r, s]) => s)
|
|
15443
15443
|
) : {}, n = this.isDarkMode ? this.inputHandlersValue.darkSrc ?? this.inputHandlersValue.src : this.inputHandlersValue.src;
|
|
15444
15444
|
return h`
|
|
15445
15445
|
<nr-document-viewer
|
|
15446
|
-
${
|
|
15446
|
+
${O(this.inputRef)}
|
|
15447
15447
|
@click=${(r) => {
|
|
15448
15448
|
this.executeEvent("onClick", r);
|
|
15449
15449
|
}}
|
|
@@ -15463,10 +15463,10 @@ let Ar = class extends _ {
|
|
|
15463
15463
|
};
|
|
15464
15464
|
Go([
|
|
15465
15465
|
g({ type: Object })
|
|
15466
|
-
],
|
|
15467
|
-
|
|
15468
|
-
|
|
15469
|
-
],
|
|
15466
|
+
], Vr.prototype, "component", 2);
|
|
15467
|
+
Vr = Go([
|
|
15468
|
+
V("document-block")
|
|
15469
|
+
], Vr);
|
|
15470
15470
|
var om = Object.defineProperty, lm = Object.getOwnPropertyDescriptor, Wo = (e, t, i, n) => {
|
|
15471
15471
|
for (var r = n > 1 ? void 0 : n ? lm(t, i) : t, s = e.length - 1, a; s >= 0; s--)
|
|
15472
15472
|
(a = e[s]) && (r = (n ? a(t, i, r) : a(r)) || r);
|
|
@@ -15477,14 +15477,14 @@ try {
|
|
|
15477
15477
|
} catch {
|
|
15478
15478
|
console.warn("[@nuralyui/video] Package not found or failed to load.");
|
|
15479
15479
|
}
|
|
15480
|
-
let
|
|
15480
|
+
let Tr = class extends _ {
|
|
15481
15481
|
renderComponent() {
|
|
15482
15482
|
const e = this.getStyles() || {}, t = this.component?.styleHandlers ? Object.fromEntries(
|
|
15483
15483
|
Object.entries(this.component?.styleHandlers).filter(([n, r]) => r)
|
|
15484
15484
|
) : {}, i = this.isDarkMode ? this.inputHandlersValue.darkSrc ?? this.inputHandlersValue.src : this.inputHandlersValue.src;
|
|
15485
15485
|
return h`
|
|
15486
15486
|
<nr-video-player
|
|
15487
|
-
${
|
|
15487
|
+
${O(this.inputRef)}
|
|
15488
15488
|
@click=${(n) => {
|
|
15489
15489
|
this.executeEvent("onClick", n);
|
|
15490
15490
|
}}
|
|
@@ -15505,10 +15505,10 @@ let Or = class extends _ {
|
|
|
15505
15505
|
};
|
|
15506
15506
|
Wo([
|
|
15507
15507
|
g({ type: Object })
|
|
15508
|
-
],
|
|
15509
|
-
|
|
15510
|
-
|
|
15511
|
-
],
|
|
15508
|
+
], Tr.prototype, "component", 2);
|
|
15509
|
+
Tr = Wo([
|
|
15510
|
+
V("video-block")
|
|
15511
|
+
], Tr);
|
|
15512
15512
|
var um = Object.defineProperty, cm = Object.getOwnPropertyDescriptor, ps = (e, t, i, n) => {
|
|
15513
15513
|
for (var r = n > 1 ? void 0 : n ? cm(t, i) : t, s = e.length - 1, a; s >= 0; s--)
|
|
15514
15514
|
(a = e[s]) && (r = (n ? a(t, i, r) : a(r)) || r);
|
|
@@ -15521,10 +15521,10 @@ try {
|
|
|
15521
15521
|
}
|
|
15522
15522
|
let Ii = class extends _ {
|
|
15523
15523
|
renderComponent() {
|
|
15524
|
-
const e = this.component?.style || {}, t = this.component?.input?.value?.value || this.inputHandlersValue?.value || "", i = this.component?.input?.placeholder?.value || this.inputHandlersValue?.placeholder || "", n = this.component?.input?.label?.value || this.inputHandlersValue?.label || "", r = this.component?.input?.helperText?.value || this.inputHandlersValue?.helperText || "", s = this.component?.input?.disabled?.value ?? this.inputHandlersValue?.disabled ?? !1, a = this.component?.input?.readonly?.value ?? this.inputHandlersValue?.readonly ?? !1, o = this.component?.input?.required?.value ?? this.inputHandlersValue?.required ?? !1, u = this.component?.input?.allowClear?.value ?? this.inputHandlersValue?.allowClear ?? !1, c = this.component?.input?.showCount?.value ?? this.inputHandlersValue?.showCount ?? !1, p = this.component?.input?.autoResize?.value ?? this.inputHandlersValue?.autoResize ?? !1, d = this.component?.input?.size?.value || this.inputHandlersValue?.size || "medium", v = this.component?.input?.variant?.value || this.inputHandlersValue?.variant || "underlined", b = this.component?.input?.state?.value || this.inputHandlersValue?.state || "default", y = this.component?.input?.resize?.value || this.inputHandlersValue?.resize || "vertical", S = this.component?.input?.rows?.value || this.inputHandlersValue?.rows || 4, k = this.component?.input?.cols?.value || this.inputHandlersValue?.cols,
|
|
15524
|
+
const e = this.component?.style || {}, t = this.component?.input?.value?.value || this.inputHandlersValue?.value || "", i = this.component?.input?.placeholder?.value || this.inputHandlersValue?.placeholder || "", n = this.component?.input?.label?.value || this.inputHandlersValue?.label || "", r = this.component?.input?.helperText?.value || this.inputHandlersValue?.helperText || "", s = this.component?.input?.disabled?.value ?? this.inputHandlersValue?.disabled ?? !1, a = this.component?.input?.readonly?.value ?? this.inputHandlersValue?.readonly ?? !1, o = this.component?.input?.required?.value ?? this.inputHandlersValue?.required ?? !1, u = this.component?.input?.allowClear?.value ?? this.inputHandlersValue?.allowClear ?? !1, c = this.component?.input?.showCount?.value ?? this.inputHandlersValue?.showCount ?? !1, p = this.component?.input?.autoResize?.value ?? this.inputHandlersValue?.autoResize ?? !1, d = this.component?.input?.size?.value || this.inputHandlersValue?.size || "medium", v = this.component?.input?.variant?.value || this.inputHandlersValue?.variant || "underlined", b = this.component?.input?.state?.value || this.inputHandlersValue?.state || "default", y = this.component?.input?.resize?.value || this.inputHandlersValue?.resize || "vertical", S = this.component?.input?.rows?.value || this.inputHandlersValue?.rows || 4, k = this.component?.input?.cols?.value || this.inputHandlersValue?.cols, A = this.component?.input?.maxLength?.value || this.inputHandlersValue?.maxLength, j = this.component?.input?.minHeight?.value || this.inputHandlersValue?.minHeight, q = this.component?.input?.maxHeight?.value || this.inputHandlersValue?.maxHeight, re = this.inputHandlersValue?.rules || [], he = this.component?.input?.name?.value || this.inputHandlersValue?.name, nt = this.component?.input?.autocomplete?.value || this.inputHandlersValue?.autocomplete || "off", gs = this.component?.input?.validateOnChange?.value ?? this.inputHandlersValue?.validateOnChange ?? !0, Zn = this.component?.input?.validateOnBlur?.value ?? this.inputHandlersValue?.validateOnBlur ?? !0, It = this.component?.input?.hasFeedback?.value ?? this.inputHandlersValue?.hasFeedback ?? !1;
|
|
15525
15525
|
return h`
|
|
15526
15526
|
<nr-textarea
|
|
15527
|
-
${
|
|
15527
|
+
${O(this.inputRef)}
|
|
15528
15528
|
style=${$(e)}
|
|
15529
15529
|
.value=${t}
|
|
15530
15530
|
.placeholder=${i}
|
|
@@ -15536,7 +15536,7 @@ let Ii = class extends _ {
|
|
|
15536
15536
|
.resize=${y}
|
|
15537
15537
|
.rows=${S}
|
|
15538
15538
|
.cols=${k}
|
|
15539
|
-
.maxLength=${
|
|
15539
|
+
.maxLength=${A}
|
|
15540
15540
|
.minHeight=${j}
|
|
15541
15541
|
.maxHeight=${q}
|
|
15542
15542
|
.rules=${re}
|
|
@@ -15578,7 +15578,7 @@ let Ii = class extends _ {
|
|
|
15578
15578
|
`;
|
|
15579
15579
|
}
|
|
15580
15580
|
};
|
|
15581
|
-
Ii.styles = [
|
|
15581
|
+
Ii.styles = [D``];
|
|
15582
15582
|
ps([
|
|
15583
15583
|
g({ type: Object })
|
|
15584
15584
|
], Ii.prototype, "component", 2);
|
|
@@ -15586,7 +15586,7 @@ ps([
|
|
|
15586
15586
|
g({ type: Object })
|
|
15587
15587
|
], Ii.prototype, "item", 2);
|
|
15588
15588
|
Ii = ps([
|
|
15589
|
-
|
|
15589
|
+
V("textarea-block")
|
|
15590
15590
|
], Ii);
|
|
15591
15591
|
var pm = Object.defineProperty, hm = Object.getOwnPropertyDescriptor, hs = (e, t, i, n) => {
|
|
15592
15592
|
for (var r = n > 1 ? void 0 : n ? hm(t, i) : t, s = e.length - 1, a; s >= 0; s--)
|
|
@@ -15598,12 +15598,12 @@ try {
|
|
|
15598
15598
|
} catch {
|
|
15599
15599
|
console.warn("[@nuralyui/badge] Package not found or failed to load.");
|
|
15600
15600
|
}
|
|
15601
|
-
let
|
|
15601
|
+
let Ai = class extends _ {
|
|
15602
15602
|
renderComponent() {
|
|
15603
15603
|
const e = this.component?.style || {}, t = this.component?.input?.count?.value ?? this.inputHandlersValue?.count, i = this.component?.input?.text?.value || this.inputHandlersValue?.text || "", n = this.component?.input?.dot?.value ?? this.inputHandlersValue?.dot ?? !1, r = this.component?.input?.showZero?.value ?? this.inputHandlersValue?.showZero ?? !1, s = this.component?.input?.overflowCount?.value || this.inputHandlersValue?.overflowCount || 99, a = this.component?.input?.size?.value || this.inputHandlersValue?.size || "default", o = this.component?.input?.color?.value || this.inputHandlersValue?.color, u = this.component?.input?.status?.value || this.inputHandlersValue?.status, c = this.component?.input?.ribbon?.value || this.inputHandlersValue?.ribbon, p = this.component?.input?.ribbonPlacement?.value || this.inputHandlersValue?.ribbonPlacement || "end", d = this.component?.input?.offsetX?.value || this.inputHandlersValue?.offsetX, v = this.component?.input?.offsetY?.value || this.inputHandlersValue?.offsetY, b = d || v ? [d || 0, v || 0] : void 0;
|
|
15604
15604
|
return h`
|
|
15605
15605
|
<nr-badge
|
|
15606
|
-
${
|
|
15606
|
+
${O(this.inputRef)}
|
|
15607
15607
|
style=${$(e)}
|
|
15608
15608
|
.count=${t}
|
|
15609
15609
|
.text=${i}
|
|
@@ -15622,16 +15622,16 @@ let Vi = class extends _ {
|
|
|
15622
15622
|
`;
|
|
15623
15623
|
}
|
|
15624
15624
|
};
|
|
15625
|
-
|
|
15625
|
+
Ai.styles = [D``];
|
|
15626
15626
|
hs([
|
|
15627
15627
|
g({ type: Object })
|
|
15628
|
-
],
|
|
15628
|
+
], Ai.prototype, "component", 2);
|
|
15629
15629
|
hs([
|
|
15630
15630
|
g({ type: Object })
|
|
15631
|
-
],
|
|
15632
|
-
|
|
15633
|
-
|
|
15634
|
-
],
|
|
15631
|
+
], Ai.prototype, "item", 2);
|
|
15632
|
+
Ai = hs([
|
|
15633
|
+
V("badge-block")
|
|
15634
|
+
], Ai);
|
|
15635
15635
|
var dm = Object.defineProperty, fm = Object.getOwnPropertyDescriptor, ds = (e, t, i, n) => {
|
|
15636
15636
|
for (var r = n > 1 ? void 0 : n ? fm(t, i) : t, s = e.length - 1, a; s >= 0; s--)
|
|
15637
15637
|
(a = e[s]) && (r = (n ? a(t, i, r) : a(r)) || r);
|
|
@@ -15642,12 +15642,12 @@ try {
|
|
|
15642
15642
|
} catch {
|
|
15643
15643
|
console.warn("[@nuralyui/card] Package not found or failed to load.");
|
|
15644
15644
|
}
|
|
15645
|
-
let
|
|
15645
|
+
let Vi = class extends _ {
|
|
15646
15646
|
renderComponent() {
|
|
15647
15647
|
const e = this.component?.style || {}, t = this.component?.input?.title?.value || this.inputHandlersValue?.title || "", i = this.component?.input?.bordered?.value ?? this.inputHandlersValue?.bordered ?? !0, n = this.component?.input?.hoverable?.value ?? this.inputHandlersValue?.hoverable ?? !1, r = this.component?.input?.loading?.value ?? this.inputHandlersValue?.loading ?? !1, s = this.component?.input?.size?.value || this.inputHandlersValue?.size || "default";
|
|
15648
15648
|
return h`
|
|
15649
15649
|
<nr-card
|
|
15650
|
-
${
|
|
15650
|
+
${O(this.inputRef)}
|
|
15651
15651
|
style=${$(e)}
|
|
15652
15652
|
.title=${t}
|
|
15653
15653
|
.size=${s}
|
|
@@ -15663,16 +15663,16 @@ let Ai = class extends _ {
|
|
|
15663
15663
|
`;
|
|
15664
15664
|
}
|
|
15665
15665
|
};
|
|
15666
|
-
|
|
15666
|
+
Vi.styles = [D``];
|
|
15667
15667
|
ds([
|
|
15668
15668
|
g({ type: Object })
|
|
15669
|
-
],
|
|
15669
|
+
], Vi.prototype, "component", 2);
|
|
15670
15670
|
ds([
|
|
15671
15671
|
g({ type: Object })
|
|
15672
|
-
],
|
|
15673
|
-
|
|
15674
|
-
|
|
15675
|
-
],
|
|
15672
|
+
], Vi.prototype, "item", 2);
|
|
15673
|
+
Vi = ds([
|
|
15674
|
+
V("card-block")
|
|
15675
|
+
], Vi);
|
|
15676
15676
|
var mm = Object.defineProperty, gm = Object.getOwnPropertyDescriptor, fs = (e, t, i, n) => {
|
|
15677
15677
|
for (var r = n > 1 ? void 0 : n ? gm(t, i) : t, s = e.length - 1, a; s >= 0; s--)
|
|
15678
15678
|
(a = e[s]) && (r = (n ? a(t, i, r) : a(r)) || r);
|
|
@@ -15683,12 +15683,12 @@ try {
|
|
|
15683
15683
|
} catch {
|
|
15684
15684
|
console.warn("[@nuralyui/tag] Package not found or failed to load.");
|
|
15685
15685
|
}
|
|
15686
|
-
let
|
|
15686
|
+
let Ti = class extends _ {
|
|
15687
15687
|
renderComponent() {
|
|
15688
15688
|
const e = this.component?.style || {}, t = this.component?.input?.label?.value || this.inputHandlersValue?.label || "", i = this.component?.input?.closable?.value ?? this.inputHandlersValue?.closable ?? !1, n = this.component?.input?.color?.value || this.inputHandlersValue?.color, r = this.component?.input?.icon?.value || this.inputHandlersValue?.icon, s = this.component?.input?.bordered?.value ?? this.inputHandlersValue?.bordered ?? !0;
|
|
15689
15689
|
return h`
|
|
15690
15690
|
<nr-tag
|
|
15691
|
-
${
|
|
15691
|
+
${O(this.inputRef)}
|
|
15692
15692
|
style=${$(e)}
|
|
15693
15693
|
.label=${t}
|
|
15694
15694
|
.color=${n}
|
|
@@ -15707,16 +15707,16 @@ let Oi = class extends _ {
|
|
|
15707
15707
|
`;
|
|
15708
15708
|
}
|
|
15709
15709
|
};
|
|
15710
|
-
|
|
15710
|
+
Ti.styles = [D``];
|
|
15711
15711
|
fs([
|
|
15712
15712
|
g({ type: Object })
|
|
15713
|
-
],
|
|
15713
|
+
], Ti.prototype, "component", 2);
|
|
15714
15714
|
fs([
|
|
15715
15715
|
g({ type: Object })
|
|
15716
|
-
],
|
|
15717
|
-
|
|
15718
|
-
|
|
15719
|
-
],
|
|
15716
|
+
], Ti.prototype, "item", 2);
|
|
15717
|
+
Ti = fs([
|
|
15718
|
+
V("tag-block")
|
|
15719
|
+
], Ti);
|
|
15720
15720
|
var bm = Object.defineProperty, vm = Object.getOwnPropertyDescriptor, ms = (e, t, i, n) => {
|
|
15721
15721
|
for (var r = n > 1 ? void 0 : n ? vm(t, i) : t, s = e.length - 1, a; s >= 0; s--)
|
|
15722
15722
|
(a = e[s]) && (r = (n ? a(t, i, r) : a(r)) || r);
|
|
@@ -15727,12 +15727,12 @@ try {
|
|
|
15727
15727
|
} catch {
|
|
15728
15728
|
console.warn("[@nuralyui/slider-input] Package not found or failed to load.");
|
|
15729
15729
|
}
|
|
15730
|
-
let
|
|
15730
|
+
let Oi = class extends _ {
|
|
15731
15731
|
renderComponent() {
|
|
15732
15732
|
const e = this.component?.style || {}, t = this.component?.input?.value?.value ?? this.inputHandlersValue?.value ?? 0, i = this.component?.input?.min?.value ?? this.inputHandlersValue?.min ?? 0, n = this.component?.input?.max?.value ?? this.inputHandlersValue?.max ?? 100, r = this.component?.input?.step?.value ?? this.inputHandlersValue?.step ?? 1, s = this.component?.input?.disabled?.value ?? this.inputHandlersValue?.disabled ?? !1, a = this.component?.input?.vertical?.value ?? this.inputHandlersValue?.vertical ?? !1, o = this.component?.input?.showTooltip?.value ?? this.inputHandlersValue?.showTooltip ?? !0, u = this.component?.input?.showMarks?.value ?? this.inputHandlersValue?.showMarks ?? !1, c = this.component?.input?.range?.value ?? this.inputHandlersValue?.range ?? !1, p = this.inputHandlersValue?.marks;
|
|
15733
15733
|
return h`
|
|
15734
15734
|
<nr-slider-input
|
|
15735
|
-
${
|
|
15735
|
+
${O(this.inputRef)}
|
|
15736
15736
|
style=${$(e)}
|
|
15737
15737
|
.value=${t}
|
|
15738
15738
|
.min=${i}
|
|
@@ -15758,16 +15758,16 @@ let Ti = class extends _ {
|
|
|
15758
15758
|
`;
|
|
15759
15759
|
}
|
|
15760
15760
|
};
|
|
15761
|
-
|
|
15761
|
+
Oi.styles = [D``];
|
|
15762
15762
|
ms([
|
|
15763
15763
|
g({ type: Object })
|
|
15764
|
-
],
|
|
15764
|
+
], Oi.prototype, "component", 2);
|
|
15765
15765
|
ms([
|
|
15766
15766
|
g({ type: Object })
|
|
15767
|
-
],
|
|
15768
|
-
|
|
15769
|
-
|
|
15770
|
-
],
|
|
15767
|
+
], Oi.prototype, "item", 2);
|
|
15768
|
+
Oi = ms([
|
|
15769
|
+
V("slider-block")
|
|
15770
|
+
], Oi);
|
|
15771
15771
|
var Ie = /* @__PURE__ */ ((e) => (e.LOCAL = "local", e.GLOBAL = "global", e))(Ie || {});
|
|
15772
15772
|
class ym {
|
|
15773
15773
|
constructor(t, i) {
|
|
@@ -16945,7 +16945,7 @@ try {
|
|
|
16945
16945
|
} catch {
|
|
16946
16946
|
console.warn("[@nuralyui/toast] Package not found or failed to load. Toast functionality may be limited.");
|
|
16947
16947
|
}
|
|
16948
|
-
let Me = null,
|
|
16948
|
+
let Me = null, Di = class extends ce {
|
|
16949
16949
|
constructor() {
|
|
16950
16950
|
super(...arguments), this.toastElement = null, this.shownToastIds = /* @__PURE__ */ new Set();
|
|
16951
16951
|
}
|
|
@@ -16954,7 +16954,7 @@ let Me = null, Hi = class extends ce {
|
|
|
16954
16954
|
* Call this to ensure toast container exists in the DOM
|
|
16955
16955
|
*/
|
|
16956
16956
|
static getInstance() {
|
|
16957
|
-
return Me || (Me = new
|
|
16957
|
+
return Me || (Me = new Di(), document.body.appendChild(Me)), Me;
|
|
16958
16958
|
}
|
|
16959
16959
|
/**
|
|
16960
16960
|
* Checks if container instance exists
|
|
@@ -17001,20 +17001,20 @@ let Me = null, Hi = class extends ce {
|
|
|
17001
17001
|
`;
|
|
17002
17002
|
}
|
|
17003
17003
|
};
|
|
17004
|
-
|
|
17004
|
+
Di.styles = D`
|
|
17005
17005
|
:host {
|
|
17006
17006
|
--nuraly-z-index-toast: 10000;
|
|
17007
17007
|
}
|
|
17008
17008
|
`;
|
|
17009
|
-
|
|
17010
|
-
|
|
17011
|
-
],
|
|
17009
|
+
Di = Pm([
|
|
17010
|
+
V("toast-container")
|
|
17011
|
+
], Di);
|
|
17012
17012
|
var km = Object.defineProperty, Im = Object.getOwnPropertyDescriptor, me = (e, t, i, n) => {
|
|
17013
17013
|
for (var r = n > 1 ? void 0 : n ? Im(t, i) : t, s = e.length - 1, a; s >= 0; s--)
|
|
17014
17014
|
(a = e[s]) && (r = (n ? a(t, i, r) : a(r)) || r);
|
|
17015
17015
|
return n && r && km(t, i, r), r;
|
|
17016
17016
|
};
|
|
17017
|
-
const
|
|
17017
|
+
const Am = "1";
|
|
17018
17018
|
let ae = class extends ce {
|
|
17019
17019
|
constructor() {
|
|
17020
17020
|
super(), this.subscription = new Jt(), this.mode = zt.Preview, this.prod = !0, this.useIsolatedContext = !1, this.dataLoader = _m, this.components = [], this.componentsToRender = [], this.page = {}, this.microAppId = "", this.storeContext = null, this.runtimeContext = null, this.pageManager = null, this.messageBus = null, this.messageUnsubscribe = null, this.globalVarUnsubscribe = null;
|
|
@@ -17023,16 +17023,34 @@ let ae = class extends ce {
|
|
|
17023
17023
|
* Refreshes the component list based on the current UUID and page UUID.
|
|
17024
17024
|
*/
|
|
17025
17025
|
refreshComponent() {
|
|
17026
|
-
const e =
|
|
17026
|
+
const e = Re(this.uuid).get();
|
|
17027
17027
|
this.components = this.page_uuid ? e.filter((t) => t.pageId === this.page_uuid && t.root === !0) : e;
|
|
17028
17028
|
}
|
|
17029
17029
|
/**
|
|
17030
17030
|
* LitElement's willUpdate() hook: triggered before rendering.
|
|
17031
17031
|
*/
|
|
17032
17032
|
willUpdate(e) {
|
|
17033
|
-
if (super.willUpdate(e),
|
|
17034
|
-
|
|
17035
|
-
|
|
17033
|
+
if (super.willUpdate(e), console.log("[MicroApp DEBUG] willUpdate called", {
|
|
17034
|
+
changedProperties: Array.from(e.keys()),
|
|
17035
|
+
uuid: this.uuid,
|
|
17036
|
+
page_uuid: this.page_uuid,
|
|
17037
|
+
useIsolatedContext: this.useIsolatedContext,
|
|
17038
|
+
hasStoreContext: !!this.storeContext,
|
|
17039
|
+
appComponentsLength: this.appComponents?.length,
|
|
17040
|
+
appPagesLength: this.appPages?.length,
|
|
17041
|
+
componentsLength: this.components.length,
|
|
17042
|
+
componentsToRenderLength: this.componentsToRender.length
|
|
17043
|
+
}), this.useIsolatedContext) {
|
|
17044
|
+
const t = e.has("appComponents") && this.appComponents || e.has("appPages") && this.appPages;
|
|
17045
|
+
if (console.log("[MicroApp DEBUG] Isolated context check", {
|
|
17046
|
+
dataJustProvided: t,
|
|
17047
|
+
hasAppComponents: !!this.appComponents,
|
|
17048
|
+
hasAppPages: !!this.appPages,
|
|
17049
|
+
hasStoreContext: !!this.storeContext
|
|
17050
|
+
}), t && !this.storeContext) {
|
|
17051
|
+
console.log("[MicroApp DEBUG] Calling initializeIsolatedContext from willUpdate"), this.initializeIsolatedContext();
|
|
17052
|
+
return;
|
|
17053
|
+
}
|
|
17036
17054
|
}
|
|
17037
17055
|
!this.useIsolatedContext && e.has("uuid") && this.uuid && this.initializeAppComponents(), (e.has("components") || e.has("componentToRenderUUID") || e.has("page_uuid")) && this.updateComponentsToRender();
|
|
17038
17056
|
}
|
|
@@ -17040,10 +17058,29 @@ let ae = class extends ce {
|
|
|
17040
17058
|
* Updates componentsToRender based on the current selection.
|
|
17041
17059
|
*/
|
|
17042
17060
|
updateComponentsToRender() {
|
|
17043
|
-
|
|
17061
|
+
console.log("[MicroApp DEBUG] 📝 updateComponentsToRender called", {
|
|
17062
|
+
componentToRenderUUID: this.componentToRenderUUID,
|
|
17063
|
+
componentsLength: this.components.length
|
|
17064
|
+
}), this.componentsToRender = this.componentToRenderUUID ? this.components.filter((e) => e.uuid === this.componentToRenderUUID) : this.components, console.log("[MicroApp DEBUG] componentsToRender updated", {
|
|
17065
|
+
componentsToRenderLength: this.componentsToRender.length,
|
|
17066
|
+
componentsToRender: this.componentsToRender.map((e) => ({
|
|
17067
|
+
uuid: e.uuid,
|
|
17068
|
+
type: e.component_type
|
|
17069
|
+
}))
|
|
17070
|
+
});
|
|
17044
17071
|
}
|
|
17045
17072
|
connectedCallback() {
|
|
17046
|
-
super.connectedCallback(),
|
|
17073
|
+
super.connectedCallback(), console.log("[MicroApp DEBUG] 🔌 connectedCallback called", {
|
|
17074
|
+
uuid: this.uuid,
|
|
17075
|
+
page_uuid: this.page_uuid,
|
|
17076
|
+
useIsolatedContext: this.useIsolatedContext,
|
|
17077
|
+
hasAppComponents: !!this.appComponents,
|
|
17078
|
+
appComponentsLength: this.appComponents?.length,
|
|
17079
|
+
hasAppPages: !!this.appPages,
|
|
17080
|
+
appPagesLength: this.appPages?.length,
|
|
17081
|
+
mode: this.mode,
|
|
17082
|
+
prod: this.prod
|
|
17083
|
+
}), Di.getInstance(), this.useIsolatedContext ? this.appComponents || this.appPages ? (console.log("[MicroApp DEBUG] Calling initializeIsolatedContext from connectedCallback (has pre-loaded data)"), this.initializeIsolatedContext()) : console.log("[MicroApp DEBUG] Skipping initializeIsolatedContext in connectedCallback (no pre-loaded data yet)") : (console.log("[MicroApp DEBUG] Using legacy mode (useIsolatedContext=false)"), this.setupSubscriptions(), R.Vars.currentPlatform || (R.VarsProxy.currentPlatform = br()), N.setEditorMode(this.prod), this.initializeAppComponents());
|
|
17047
17084
|
}
|
|
17048
17085
|
firstUpdated(e) {
|
|
17049
17086
|
}
|
|
@@ -17057,7 +17094,7 @@ let ae = class extends ce {
|
|
|
17057
17094
|
if (!this.uuid)
|
|
17058
17095
|
return;
|
|
17059
17096
|
const e = L.get()[this.uuid];
|
|
17060
|
-
if (this.page_uuid && Po.setKey(this.uuid, this.page_uuid), e === void 0 && this.uuid !==
|
|
17097
|
+
if (this.page_uuid && Po.setKey(this.uuid, this.page_uuid), e === void 0 && this.uuid !== Am)
|
|
17061
17098
|
this.dataLoader.loadComponents(this.uuid).then((t) => {
|
|
17062
17099
|
if (t.error) {
|
|
17063
17100
|
console.error("Error loading components:", t.error);
|
|
@@ -17137,18 +17174,41 @@ let ae = class extends ce {
|
|
|
17137
17174
|
*/
|
|
17138
17175
|
async initializeIsolatedContext() {
|
|
17139
17176
|
try {
|
|
17140
|
-
|
|
17177
|
+
console.log("[MicroApp DEBUG] 🚀 Starting initializeIsolatedContext", {
|
|
17178
|
+
uuid: this.uuid,
|
|
17179
|
+
page_uuid: this.page_uuid,
|
|
17180
|
+
appComponents: this.appComponents?.length,
|
|
17181
|
+
appPages: this.appPages?.length
|
|
17182
|
+
}), this.microAppId = `${this.uuid}_${Nt()}`, console.log("[MicroApp DEBUG] Generated microAppId:", this.microAppId), this.storeContext = new xm(
|
|
17141
17183
|
this.microAppId,
|
|
17142
17184
|
this.uuid,
|
|
17143
17185
|
this.appComponents,
|
|
17144
17186
|
this.appPages
|
|
17145
|
-
), this.runtimeContext = new $m(this.storeContext), this.pageManager = new wm(this.storeContext), this.storeContext.setPageManager(this.pageManager), this.messageBus = gt.getInstance(), this.messageUnsubscribe = this.messageBus.subscribe(this.microAppId, (
|
|
17146
|
-
this.handleMessage(
|
|
17147
|
-
}),
|
|
17187
|
+
), console.log("[MicroApp DEBUG] ✅ StoreContext created"), this.runtimeContext = new $m(this.storeContext), console.log("[MicroApp DEBUG] ✅ RuntimeContext created"), this.pageManager = new wm(this.storeContext), this.storeContext.setPageManager(this.pageManager), console.log("[MicroApp DEBUG] ✅ PageManager created"), this.messageBus = gt.getInstance(), console.log("[MicroApp DEBUG] ✅ MessageBus obtained"), this.messageUnsubscribe = this.messageBus.subscribe(this.microAppId, (n) => {
|
|
17188
|
+
this.handleMessage(n);
|
|
17189
|
+
}), console.log("[MicroApp DEBUG] ✅ Subscribed to messages"), await this.storeContext.loadApplication();
|
|
17148
17190
|
const e = this.storeContext.getComponents();
|
|
17149
|
-
|
|
17191
|
+
console.log("[MicroApp DEBUG] ✅ Application data loaded", {
|
|
17192
|
+
componentsCount: e.length,
|
|
17193
|
+
components: e.map((n) => ({ uuid: n.uuid, type: n.component_type, root: n.root }))
|
|
17194
|
+
}), await this.pageManager.loadPages();
|
|
17195
|
+
const t = this.storeContext.getPages();
|
|
17196
|
+
console.log("[MicroApp DEBUG] ✅ Pages loaded", {
|
|
17197
|
+
pagesCount: t.length,
|
|
17198
|
+
pages: t.map((n) => ({ uuid: n.uuid, name: n.name }))
|
|
17199
|
+
}), this.runtimeContext.registerComponents(), console.log("[MicroApp DEBUG] ✅ Components registered in runtime");
|
|
17200
|
+
const i = this.storeContext.getComponents();
|
|
17201
|
+
L.setKey(this.uuid, i), console.log("[MicroApp DEBUG] ✅ Components synced to global store", {
|
|
17202
|
+
key: this.uuid,
|
|
17203
|
+
count: i.length
|
|
17204
|
+
}), this.setupIsolatedSubscriptions(), console.log("[MicroApp DEBUG] ✅ Subscriptions setup"), this.refreshIsolatedComponents(), console.log("[MicroApp DEBUG] ✅ Components refreshed", {
|
|
17205
|
+
componentsLength: this.components.length,
|
|
17206
|
+
componentsToRenderLength: this.componentsToRender.length,
|
|
17207
|
+
components: this.components.map((n) => ({ uuid: n.uuid, type: n.component_type })),
|
|
17208
|
+
componentsToRender: this.componentsToRender.map((n) => ({ uuid: n.uuid, type: n.component_type }))
|
|
17209
|
+
}), this.runtimeContext.getVar("currentPlatform") || this.runtimeContext.setVar("currentPlatform", br()), N.setEditorMode(this.prod), console.log("[MicroApp DEBUG] 🎉 initializeIsolatedContext completed successfully");
|
|
17150
17210
|
} catch (e) {
|
|
17151
|
-
console.error("[MicroApp] Failed to initialize isolated context:", e);
|
|
17211
|
+
console.error("[MicroApp DEBUG] ❌ Failed to initialize isolated context:", e), console.error("[MicroApp DEBUG] Error stack:", e instanceof Error ? e.stack : "No stack");
|
|
17152
17212
|
}
|
|
17153
17213
|
}
|
|
17154
17214
|
/**
|
|
@@ -17187,9 +17247,34 @@ let ae = class extends ce {
|
|
|
17187
17247
|
* Refresh components from isolated store
|
|
17188
17248
|
*/
|
|
17189
17249
|
refreshIsolatedComponents() {
|
|
17190
|
-
if (
|
|
17250
|
+
if (console.log("[MicroApp DEBUG] 🔄 refreshIsolatedComponents called", {
|
|
17251
|
+
hasStoreContext: !!this.storeContext,
|
|
17252
|
+
hasPageManager: !!this.pageManager,
|
|
17253
|
+
page_uuid: this.page_uuid
|
|
17254
|
+
}), !this.storeContext || !this.pageManager) {
|
|
17255
|
+
console.log("[MicroApp DEBUG] ⚠️ refreshIsolatedComponents early return - missing context");
|
|
17256
|
+
return;
|
|
17257
|
+
}
|
|
17191
17258
|
const e = this.storeContext.getComponents(), t = this.pageManager.getCurrentPage();
|
|
17192
|
-
|
|
17259
|
+
console.log("[MicroApp DEBUG] Components and page info", {
|
|
17260
|
+
allComponentsCount: e.length,
|
|
17261
|
+
allComponents: e.map((i) => ({
|
|
17262
|
+
uuid: i.uuid,
|
|
17263
|
+
type: i.component_type,
|
|
17264
|
+
root: i.root,
|
|
17265
|
+
pageId: i.pageId
|
|
17266
|
+
})),
|
|
17267
|
+
currentPage: t ? { uuid: t.uuid, name: t.name } : null,
|
|
17268
|
+
page_uuid: this.page_uuid
|
|
17269
|
+
}), this.components = this.page_uuid ? e.filter((i) => i.pageId === this.page_uuid && i.root === !0) : t ? e.filter((i) => i.pageId === t.uuid && i.root === !0) : e.filter((i) => i.root === !0), console.log("[MicroApp DEBUG] Filtered components", {
|
|
17270
|
+
filterMode: this.page_uuid ? "by page_uuid" : t ? "by currentPage" : "all root",
|
|
17271
|
+
componentsCount: this.components.length,
|
|
17272
|
+
components: this.components.map((i) => ({
|
|
17273
|
+
uuid: i.uuid,
|
|
17274
|
+
type: i.component_type,
|
|
17275
|
+
root: i.root
|
|
17276
|
+
}))
|
|
17277
|
+
}), this.updateComponentsToRender();
|
|
17193
17278
|
}
|
|
17194
17279
|
/**
|
|
17195
17280
|
* Cleanup isolated context
|
|
@@ -17201,21 +17286,36 @@ let ae = class extends ce {
|
|
|
17201
17286
|
* Get the execution context (isolated or global)
|
|
17202
17287
|
*/
|
|
17203
17288
|
getExecutionContext() {
|
|
17204
|
-
return this.useIsolatedContext && this.runtimeContext ? this.runtimeContext :
|
|
17289
|
+
return this.useIsolatedContext && this.runtimeContext ? this.runtimeContext : R;
|
|
17205
17290
|
}
|
|
17206
17291
|
render() {
|
|
17207
|
-
return
|
|
17208
|
-
|
|
17209
|
-
|
|
17292
|
+
return console.log("[MicroApp DEBUG] 🎨 render() called", {
|
|
17293
|
+
uuid: this.uuid,
|
|
17294
|
+
hasUuid: !!this.uuid,
|
|
17295
|
+
componentsToRenderLength: this.componentsToRender.length,
|
|
17296
|
+
componentsToRender: this.componentsToRender.map((e) => ({
|
|
17297
|
+
uuid: e.uuid,
|
|
17298
|
+
type: e.component_type,
|
|
17299
|
+
root: e.root,
|
|
17300
|
+
pageId: e.pageId
|
|
17301
|
+
})),
|
|
17302
|
+
willReturnNothing: !this.uuid || !this.componentsToRender.length,
|
|
17303
|
+
isPreviewMode: this.isPreviewMode()
|
|
17304
|
+
}), !this.uuid || !this.componentsToRender.length ? (console.log("[MicroApp DEBUG] ⚠️ render() returning nothing because:", {
|
|
17305
|
+
noUuid: !this.uuid,
|
|
17306
|
+
noComponentsToRender: !this.componentsToRender.length
|
|
17307
|
+
}), m) : (console.log("[MicroApp DEBUG] ✅ render() will render components"), h`
|
|
17308
|
+
<div
|
|
17309
|
+
|
|
17210
17310
|
style=${$({
|
|
17211
17311
|
height: "100%"
|
|
17212
17312
|
})}>
|
|
17213
17313
|
${We(this.componentsToRender, null, this.isPreviewMode())}
|
|
17214
17314
|
</div>
|
|
17215
|
-
|
|
17315
|
+
`);
|
|
17216
17316
|
}
|
|
17217
17317
|
};
|
|
17218
|
-
ae.styles = [
|
|
17318
|
+
ae.styles = [D`
|
|
17219
17319
|
|
|
17220
17320
|
`];
|
|
17221
17321
|
me([
|
|
@@ -17255,12 +17355,12 @@ me([
|
|
|
17255
17355
|
f()
|
|
17256
17356
|
], ae.prototype, "page", 2);
|
|
17257
17357
|
ae = me([
|
|
17258
|
-
|
|
17358
|
+
V("micro-app")
|
|
17259
17359
|
], ae);
|
|
17260
17360
|
typeof window < "u" && (console.log("[MicroApp Bundle] Loaded. MicroApp registered:", customElements.get("micro-app") !== void 0), console.log("[MicroApp Bundle] ButtonBlock registered:", customElements.get("button-block") !== void 0), console.log("[MicroApp Bundle] TextLabelBlock registered:", customElements.get("text-label-block") !== void 0), console.log("[MicroApp Bundle] Container registered:", customElements.get("vertical-container-block") !== void 0));
|
|
17261
17361
|
export {
|
|
17262
17362
|
m as D,
|
|
17263
|
-
|
|
17363
|
+
O as K,
|
|
17264
17364
|
ae as M,
|
|
17265
17365
|
Qe as a,
|
|
17266
17366
|
xm as b,
|
|
@@ -17268,10 +17368,10 @@ export {
|
|
|
17268
17368
|
wm as d,
|
|
17269
17369
|
gt as e,
|
|
17270
17370
|
ce as h,
|
|
17271
|
-
|
|
17371
|
+
D as i,
|
|
17272
17372
|
h as k,
|
|
17273
17373
|
g as n,
|
|
17274
17374
|
f as r,
|
|
17275
17375
|
$ as s,
|
|
17276
|
-
|
|
17376
|
+
V as t
|
|
17277
17377
|
};
|