x-block-lib 0.4.33 → 0.4.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +172 -172
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
var Si = Object.defineProperty;
|
|
3
3
|
var Ni = (e, t, n) => t in e ? Si(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
4
4
|
var ge = (e, t, n) => Ni(e, typeof t != "symbol" ? t + "" : t, n);
|
|
5
|
-
import { getCurrentScope as ki, onScopeDispose as Bi, unref as M, computed as ie, watch as Fe, ref as $e, getCurrentInstance as
|
|
6
|
-
import { d as E, j as s, O as u, u as v, X as Yi, E as $, M as J, B as ee, F as yo, i as
|
|
5
|
+
import { getCurrentScope as ki, onScopeDispose as Bi, unref as M, computed as ie, watch as Fe, ref as $e, getCurrentInstance as un, onMounted as lt, defineComponent as We, onBeforeUnmount as Qt, resolveComponent as le, openBlock as Q, createBlock as De, withCtx as at, createVNode as ce, mergeProps as to, useModel as Kn, toRefs as Ri, reactive as Mi, h as xi, onUnmounted as Pi, nextTick as no, isRef as Kt, resolveDirective as Di, withDirectives as wi, createElementBlock as Ie, normalizeStyle as Ce, createElementVNode as Oe, toDisplayString as oo, withModifiers as Ht, Fragment as vr, renderList as Ui, withKeys as Vi, createCommentVNode as ot, mergeModels as Eo } from "vue";
|
|
6
|
+
import { d as E, j as s, O as u, u as v, X as Yi, E as $, M as J, B as ee, F as yo, i as _n, a as Ke, b as G, C as Er, c as ro, e as Fi, P as Hn, N as io, V as $t, f as Ki, g as yr, s as Hi, h as Ge, S as te, k as Cn, l as tt, m as Rt, n as An, o as pt, p as He, q as bo, G as Ln, r as $i, t as Gi, v as Sn, U as Mt, D as xt, w as Qe, x as ji, T as pn, y as br, z as Xi, A as Wi, H as zi, I as Oo } from "./blockly-fzxzwly0.js";
|
|
7
7
|
import { storeToRefs as Ji } from "pinia";
|
|
8
8
|
import { openConfirmDlg as qi, openPromptDlg as Qi, eventBus as me, messageWarning as Or, useColor as Ir, useViewStack as ao, useSystem as Zi, useGlobalStore as ea } from "x-essential-lib";
|
|
9
|
-
import { useI18n as
|
|
9
|
+
import { useI18n as dn } from "vue-i18n";
|
|
10
10
|
import { useDisplay as ta } from "vuetify";
|
|
11
11
|
import { elements as na } from "x-runtime-lib";
|
|
12
12
|
var oa = "M19.36,2.72L20.78,4.14L15.06,9.85C16.13,11.39 16.28,13.24 15.38,14.44L9.06,8.12C10.26,7.22 12.11,7.37 13.65,8.44L19.36,2.72M5.93,17.57C3.92,15.56 2.69,13.16 2.35,10.92L7.23,8.83L14.67,16.27L12.58,21.15C10.34,20.81 7.94,19.58 5.93,17.57Z", ra = "M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z", ia = "M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z", aa = "M21 11H3V9H21V11M21 13H3V15H21V13Z", sa = "M12,17A2,2 0 0,0 14,15C14,13.89 13.1,13 12,13A2,2 0 0,0 10,15A2,2 0 0,0 12,17M18,8A2,2 0 0,1 20,10V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V10C4,8.89 4.9,8 6,8H7V6A5,5 0 0,1 12,1A5,5 0 0,1 17,6V8H18M12,3A3,3 0 0,0 9,6V8H15V6A3,3 0 0,0 12,3Z", la = "M18,8A2,2 0 0,1 20,10V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V10A2,2 0 0,1 6,8H15V6A3,3 0 0,0 12,3A3,3 0 0,0 9,6H7A5,5 0 0,1 12,1A5,5 0 0,1 17,6V8H18M12,17A2,2 0 0,0 14,15A2,2 0 0,0 12,13A2,2 0 0,0 10,15A2,2 0 0,0 12,17Z", ca = "M21 3L3 10.53V11.5L9.84 14.16L12.5 21H13.46L21 3Z";
|
|
@@ -25,7 +25,7 @@ function Io(e) {
|
|
|
25
25
|
}
|
|
26
26
|
const da = pa ? window : void 0;
|
|
27
27
|
function fa() {
|
|
28
|
-
const e = $e(!1), t =
|
|
28
|
+
const e = $e(!1), t = un();
|
|
29
29
|
return t && lt(() => {
|
|
30
30
|
e.value = !0;
|
|
31
31
|
}, t), e;
|
|
@@ -202,7 +202,7 @@ function ${s.FUNCTION_NAME_PLACEHOLDER_}(r, g, b) {
|
|
|
202
202
|
function Cr(e) {
|
|
203
203
|
return e.length <= 0 && e.push([J.NO_OPTION, ""]), e;
|
|
204
204
|
}
|
|
205
|
-
function
|
|
205
|
+
function Pt(e) {
|
|
206
206
|
let t = "";
|
|
207
207
|
if (e.type === "string") {
|
|
208
208
|
let n = "";
|
|
@@ -327,14 +327,14 @@ const ya = {
|
|
|
327
327
|
}
|
|
328
328
|
},
|
|
329
329
|
updateShape_: function() {
|
|
330
|
-
this.name ? this.setFieldValue(
|
|
330
|
+
this.name ? this.setFieldValue(J[this.name], "LABEL") : this.setFieldValue(this.key, "LABEL");
|
|
331
331
|
}
|
|
332
332
|
};
|
|
333
333
|
ee.parameter_v1 = ya;
|
|
334
334
|
s.forBlock.parameter_v1 = function(e) {
|
|
335
335
|
return [e.key, u.ATOMIC];
|
|
336
336
|
};
|
|
337
|
-
const
|
|
337
|
+
const Lt = function() {
|
|
338
338
|
if (!window.blocklyState) {
|
|
339
339
|
const e = {
|
|
340
340
|
runtime: {
|
|
@@ -375,7 +375,7 @@ const St = function() {
|
|
|
375
375
|
return window.blocklyState;
|
|
376
376
|
}();
|
|
377
377
|
function Ar() {
|
|
378
|
-
const { spaces: e } =
|
|
378
|
+
const { spaces: e } = Lt.compute, t = [];
|
|
379
379
|
for (const n in e) {
|
|
380
380
|
const { id: o, name: r, sort: i } = e[n];
|
|
381
381
|
t.push({ id: o, name: r, sort: i });
|
|
@@ -389,7 +389,7 @@ function ba() {
|
|
|
389
389
|
}), Cr(e);
|
|
390
390
|
}
|
|
391
391
|
function Lr(e) {
|
|
392
|
-
const { spaces: t } =
|
|
392
|
+
const { spaces: t } = Lt.compute, n = t[e];
|
|
393
393
|
if (!n)
|
|
394
394
|
return [];
|
|
395
395
|
const o = [];
|
|
@@ -410,7 +410,7 @@ function Oa(e) {
|
|
|
410
410
|
}), Cr(t);
|
|
411
411
|
}
|
|
412
412
|
function Co() {
|
|
413
|
-
return
|
|
413
|
+
return Lt.compute.activeFunc;
|
|
414
414
|
}
|
|
415
415
|
const Ia = {
|
|
416
416
|
init: function() {
|
|
@@ -492,22 +492,22 @@ function Ra(e) {
|
|
|
492
492
|
return Ba.call(e);
|
|
493
493
|
}
|
|
494
494
|
var Ma = "[object Null]", xa = "[object Undefined]", Ao = we ? we.toStringTag : void 0;
|
|
495
|
-
function
|
|
495
|
+
function St(e) {
|
|
496
496
|
return e == null ? e === void 0 ? xa : Ma : Ao && Ao in Object(e) ? Na(e) : Ra(e);
|
|
497
497
|
}
|
|
498
498
|
function je(e) {
|
|
499
499
|
return e != null && typeof e == "object";
|
|
500
500
|
}
|
|
501
501
|
var It = Array.isArray;
|
|
502
|
-
function
|
|
502
|
+
function Nt(e) {
|
|
503
503
|
var t = typeof e;
|
|
504
504
|
return e != null && (t == "object" || t == "function");
|
|
505
505
|
}
|
|
506
506
|
var Pa = "[object AsyncFunction]", Da = "[object Function]", wa = "[object GeneratorFunction]", Ua = "[object Proxy]";
|
|
507
507
|
function kr(e) {
|
|
508
|
-
if (!
|
|
508
|
+
if (!Nt(e))
|
|
509
509
|
return !1;
|
|
510
|
-
var t =
|
|
510
|
+
var t = St(e);
|
|
511
511
|
return t == Da || t == wa || t == Pa || t == Ua;
|
|
512
512
|
}
|
|
513
513
|
var Nn = ye["__core-js_shared__"], Lo = function() {
|
|
@@ -535,7 +535,7 @@ var Ka = /[\\^$.*+?()[\]{}|]/g, Ha = /^\[object .+?Constructor\]$/, $a = Functio
|
|
|
535
535
|
"^" + ja.call(Xa).replace(Ka, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
536
536
|
);
|
|
537
537
|
function za(e) {
|
|
538
|
-
if (!
|
|
538
|
+
if (!Nt(e) || Va(e))
|
|
539
539
|
return !1;
|
|
540
540
|
var t = kr(e) ? Wa : Ha;
|
|
541
541
|
return t.test(ze(e));
|
|
@@ -551,7 +551,7 @@ var $n = Je(ye, "WeakMap"), So = Object.create, qa = /* @__PURE__ */ function()
|
|
|
551
551
|
function e() {
|
|
552
552
|
}
|
|
553
553
|
return function(t) {
|
|
554
|
-
if (!
|
|
554
|
+
if (!Nt(t))
|
|
555
555
|
return {};
|
|
556
556
|
if (So)
|
|
557
557
|
return So(t);
|
|
@@ -627,7 +627,7 @@ function ss(e, t) {
|
|
|
627
627
|
}
|
|
628
628
|
var ls = "[object Arguments]";
|
|
629
629
|
function ko(e) {
|
|
630
|
-
return je(e) &&
|
|
630
|
+
return je(e) && St(e) == ls;
|
|
631
631
|
}
|
|
632
632
|
var Pr = Object.prototype, cs = Pr.hasOwnProperty, us = Pr.propertyIsEnumerable, _s = ko(/* @__PURE__ */ function() {
|
|
633
633
|
return arguments;
|
|
@@ -637,11 +637,11 @@ var Pr = Object.prototype, cs = Pr.hasOwnProperty, us = Pr.propertyIsEnumerable,
|
|
|
637
637
|
function ps() {
|
|
638
638
|
return !1;
|
|
639
639
|
}
|
|
640
|
-
var Dr = typeof exports == "object" && exports && !exports.nodeType && exports, Bo = Dr && typeof module == "object" && module && !module.nodeType && module, ds = Bo && Bo.exports === Dr, Ro = ds ? ye.Buffer : void 0, fs = Ro ? Ro.isBuffer : void 0,
|
|
640
|
+
var Dr = typeof exports == "object" && exports && !exports.nodeType && exports, Bo = Dr && typeof module == "object" && module && !module.nodeType && module, ds = Bo && Bo.exports === Dr, Ro = ds ? ye.Buffer : void 0, fs = Ro ? Ro.isBuffer : void 0, Zt = fs || ps, hs = "[object Arguments]", Ts = "[object Array]", gs = "[object Boolean]", ms = "[object Date]", vs = "[object Error]", Es = "[object Function]", ys = "[object Map]", bs = "[object Number]", Os = "[object Object]", Is = "[object RegExp]", Cs = "[object Set]", As = "[object String]", Ls = "[object WeakMap]", Ss = "[object ArrayBuffer]", Ns = "[object DataView]", ks = "[object Float32Array]", Bs = "[object Float64Array]", Rs = "[object Int8Array]", Ms = "[object Int16Array]", xs = "[object Int32Array]", Ps = "[object Uint8Array]", Ds = "[object Uint8ClampedArray]", ws = "[object Uint16Array]", Us = "[object Uint32Array]", V = {};
|
|
641
641
|
V[ks] = V[Bs] = V[Rs] = V[Ms] = V[xs] = V[Ps] = V[Ds] = V[ws] = V[Us] = !0;
|
|
642
642
|
V[hs] = V[Ts] = V[Ss] = V[gs] = V[Ns] = V[ms] = V[vs] = V[Es] = V[ys] = V[bs] = V[Os] = V[Is] = V[Cs] = V[As] = V[Ls] = !1;
|
|
643
643
|
function Vs(e) {
|
|
644
|
-
return je(e) && Mr(e.length) && !!V[
|
|
644
|
+
return je(e) && Mr(e.length) && !!V[St(e)];
|
|
645
645
|
}
|
|
646
646
|
function uo(e) {
|
|
647
647
|
return function(t) {
|
|
@@ -656,7 +656,7 @@ var wr = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
|
656
656
|
}
|
|
657
657
|
}(), Mo = ct && ct.isTypedArray, Ur = Mo ? uo(Mo) : Vs, Fs = Object.prototype, Ks = Fs.hasOwnProperty;
|
|
658
658
|
function Vr(e, t) {
|
|
659
|
-
var n = It(e), o = !n && _s(e), r = !n && !o &&
|
|
659
|
+
var n = It(e), o = !n && _s(e), r = !n && !o && Zt(e), i = !n && !o && !r && Ur(e), a = n || o || r || i, l = a ? ss(e.length, String) : [], c = l.length;
|
|
660
660
|
for (var p in e)
|
|
661
661
|
(t || Ks.call(e, p)) && !(a && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
662
662
|
(p == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
@@ -691,7 +691,7 @@ function Xs(e) {
|
|
|
691
691
|
}
|
|
692
692
|
var Ws = Object.prototype, zs = Ws.hasOwnProperty;
|
|
693
693
|
function Js(e) {
|
|
694
|
-
if (!
|
|
694
|
+
if (!Nt(e))
|
|
695
695
|
return Xs(e);
|
|
696
696
|
var t = co(e), n = [];
|
|
697
697
|
for (var o in e)
|
|
@@ -910,9 +910,9 @@ function Gn(e) {
|
|
|
910
910
|
function wl(e) {
|
|
911
911
|
return jr(e, po, Gr);
|
|
912
912
|
}
|
|
913
|
-
var jn = Je(ye, "DataView"), Xn = Je(ye, "Promise"), Wn = Je(ye, "Set"), Uo = "[object Map]", Ul = "[object Object]", Vo = "[object Promise]", Yo = "[object Set]", Fo = "[object WeakMap]", Ko = "[object DataView]", Vl = ze(jn), Yl = ze(At), Fl = ze(Xn), Kl = ze(Wn), Hl = ze($n), Te =
|
|
913
|
+
var jn = Je(ye, "DataView"), Xn = Je(ye, "Promise"), Wn = Je(ye, "Set"), Uo = "[object Map]", Ul = "[object Object]", Vo = "[object Promise]", Yo = "[object Set]", Fo = "[object WeakMap]", Ko = "[object DataView]", Vl = ze(jn), Yl = ze(At), Fl = ze(Xn), Kl = ze(Wn), Hl = ze($n), Te = St;
|
|
914
914
|
(jn && Te(new jn(new ArrayBuffer(1))) != Ko || At && Te(new At()) != Uo || Xn && Te(Xn.resolve()) != Vo || Wn && Te(new Wn()) != Yo || $n && Te(new $n()) != Fo) && (Te = function(e) {
|
|
915
|
-
var t =
|
|
915
|
+
var t = St(e), n = t == Ul ? e.constructor : void 0, o = n ? ze(n) : "";
|
|
916
916
|
if (o)
|
|
917
917
|
switch (o) {
|
|
918
918
|
case Vl:
|
|
@@ -933,10 +933,10 @@ function jl(e) {
|
|
|
933
933
|
var t = e.length, n = new e.constructor(t);
|
|
934
934
|
return t && typeof e[0] == "string" && Gl.call(e, "index") && (n.index = e.index, n.input = e.input), n;
|
|
935
935
|
}
|
|
936
|
-
var
|
|
936
|
+
var en = ye.Uint8Array;
|
|
937
937
|
function ho(e) {
|
|
938
938
|
var t = new e.constructor(e.byteLength);
|
|
939
|
-
return new
|
|
939
|
+
return new en(t).set(new en(e)), t;
|
|
940
940
|
}
|
|
941
941
|
function Xl(e, t) {
|
|
942
942
|
var n = t ? ho(e.buffer) : e.buffer;
|
|
@@ -1003,11 +1003,11 @@ function Oc(e) {
|
|
|
1003
1003
|
var jo = ct && ct.isSet, Ic = jo ? uo(jo) : Oc, Cc = 1, Ac = 2, Lc = 4, Xr = "[object Arguments]", Sc = "[object Array]", Nc = "[object Boolean]", kc = "[object Date]", Bc = "[object Error]", Wr = "[object Function]", Rc = "[object GeneratorFunction]", Mc = "[object Map]", xc = "[object Number]", zr = "[object Object]", Pc = "[object RegExp]", Dc = "[object Set]", wc = "[object String]", Uc = "[object Symbol]", Vc = "[object WeakMap]", Yc = "[object ArrayBuffer]", Fc = "[object DataView]", Kc = "[object Float32Array]", Hc = "[object Float64Array]", $c = "[object Int8Array]", Gc = "[object Int16Array]", jc = "[object Int32Array]", Xc = "[object Uint8Array]", Wc = "[object Uint8ClampedArray]", zc = "[object Uint16Array]", Jc = "[object Uint32Array]", w = {};
|
|
1004
1004
|
w[Xr] = w[Sc] = w[Yc] = w[Fc] = w[Nc] = w[kc] = w[Kc] = w[Hc] = w[$c] = w[Gc] = w[jc] = w[Mc] = w[xc] = w[zr] = w[Pc] = w[Dc] = w[wc] = w[Uc] = w[Xc] = w[Wc] = w[zc] = w[Jc] = !0;
|
|
1005
1005
|
w[Bc] = w[Wr] = w[Vc] = !1;
|
|
1006
|
-
function
|
|
1006
|
+
function Gt(e, t, n, o, r, i) {
|
|
1007
1007
|
var a, l = t & Cc, c = t & Ac, p = t & Lc;
|
|
1008
1008
|
if (a !== void 0)
|
|
1009
1009
|
return a;
|
|
1010
|
-
if (!
|
|
1010
|
+
if (!Nt(e))
|
|
1011
1011
|
return e;
|
|
1012
1012
|
var d = It(e);
|
|
1013
1013
|
if (d) {
|
|
@@ -1015,7 +1015,7 @@ function jt(e, t, n, o, r, i) {
|
|
|
1015
1015
|
return Qa(e, a);
|
|
1016
1016
|
} else {
|
|
1017
1017
|
var _ = Te(e), T = _ == Wr || _ == Rc;
|
|
1018
|
-
if (
|
|
1018
|
+
if (Zt(e))
|
|
1019
1019
|
return kl(e, l);
|
|
1020
1020
|
if (_ == zr || _ == Xr || T && !r) {
|
|
1021
1021
|
if (a = c || T ? {} : mc(e), !l)
|
|
@@ -1031,18 +1031,18 @@ function jt(e, t, n, o, r, i) {
|
|
|
1031
1031
|
if (f)
|
|
1032
1032
|
return f;
|
|
1033
1033
|
i.set(e, a), Ic(e) ? e.forEach(function(y) {
|
|
1034
|
-
a.add(
|
|
1034
|
+
a.add(Gt(y, t, n, y, e, i));
|
|
1035
1035
|
}) : yc(e) && e.forEach(function(y, b) {
|
|
1036
|
-
a.set(b,
|
|
1036
|
+
a.set(b, Gt(y, t, n, b, e, i));
|
|
1037
1037
|
});
|
|
1038
1038
|
var m = p ? c ? wl : Gn : c ? po : _o, g = d ? void 0 : m(e);
|
|
1039
1039
|
return Za(g || e, function(y, b) {
|
|
1040
|
-
g && (b = y, y = e[b]), Rr(a, b,
|
|
1040
|
+
g && (b = y, y = e[b]), Rr(a, b, Gt(y, t, n, b, e, i));
|
|
1041
1041
|
}), a;
|
|
1042
1042
|
}
|
|
1043
1043
|
var qc = 1, Qc = 4;
|
|
1044
1044
|
function Zc(e) {
|
|
1045
|
-
return
|
|
1045
|
+
return Gt(e, qc | Qc);
|
|
1046
1046
|
}
|
|
1047
1047
|
var eu = "__lodash_hash_undefined__";
|
|
1048
1048
|
function tu(e) {
|
|
@@ -1051,13 +1051,13 @@ function tu(e) {
|
|
|
1051
1051
|
function nu(e) {
|
|
1052
1052
|
return this.__data__.has(e);
|
|
1053
1053
|
}
|
|
1054
|
-
function
|
|
1054
|
+
function tn(e) {
|
|
1055
1055
|
var t = -1, n = e == null ? 0 : e.length;
|
|
1056
1056
|
for (this.__data__ = new qe(); ++t < n; )
|
|
1057
1057
|
this.add(e[t]);
|
|
1058
1058
|
}
|
|
1059
|
-
|
|
1060
|
-
|
|
1059
|
+
tn.prototype.add = tn.prototype.push = tu;
|
|
1060
|
+
tn.prototype.has = nu;
|
|
1061
1061
|
function ou(e, t) {
|
|
1062
1062
|
for (var n = -1, o = e == null ? 0 : e.length; ++n < o; )
|
|
1063
1063
|
if (t(e[n], n, e))
|
|
@@ -1075,7 +1075,7 @@ function Jr(e, t, n, o, r, i) {
|
|
|
1075
1075
|
var p = i.get(e), d = i.get(t);
|
|
1076
1076
|
if (p && d)
|
|
1077
1077
|
return p == t && d == e;
|
|
1078
|
-
var _ = -1, T = !0, f = n & au ? new
|
|
1078
|
+
var _ = -1, T = !0, f = n & au ? new tn() : void 0;
|
|
1079
1079
|
for (i.set(e, t), i.set(t, e); ++_ < l; ) {
|
|
1080
1080
|
var m = e[_], g = t[_];
|
|
1081
1081
|
if (o)
|
|
@@ -1121,7 +1121,7 @@ function bu(e, t, n, o, r, i, a) {
|
|
|
1121
1121
|
return !1;
|
|
1122
1122
|
e = e.buffer, t = t.buffer;
|
|
1123
1123
|
case Eu:
|
|
1124
|
-
return !(e.byteLength != t.byteLength || !i(new
|
|
1124
|
+
return !(e.byteLength != t.byteLength || !i(new en(e), new en(t)));
|
|
1125
1125
|
case _u:
|
|
1126
1126
|
case pu:
|
|
1127
1127
|
case hu:
|
|
@@ -1181,13 +1181,13 @@ function Au(e, t, n, o, r, i) {
|
|
|
1181
1181
|
}
|
|
1182
1182
|
return i.delete(e), i.delete(t), g;
|
|
1183
1183
|
}
|
|
1184
|
-
var Lu = 1, Wo = "[object Arguments]", zo = "[object Array]",
|
|
1184
|
+
var Lu = 1, Wo = "[object Arguments]", zo = "[object Array]", Dt = "[object Object]", Su = Object.prototype, Jo = Su.hasOwnProperty;
|
|
1185
1185
|
function Nu(e, t, n, o, r, i) {
|
|
1186
1186
|
var a = It(e), l = It(t), c = a ? zo : Te(e), p = l ? zo : Te(t);
|
|
1187
|
-
c = c == Wo ?
|
|
1188
|
-
var d = c ==
|
|
1189
|
-
if (T &&
|
|
1190
|
-
if (!
|
|
1187
|
+
c = c == Wo ? Dt : c, p = p == Wo ? Dt : p;
|
|
1188
|
+
var d = c == Dt, _ = p == Dt, T = c == p;
|
|
1189
|
+
if (T && Zt(e)) {
|
|
1190
|
+
if (!Zt(t))
|
|
1191
1191
|
return !1;
|
|
1192
1192
|
a = !0, d = !1;
|
|
1193
1193
|
}
|
|
@@ -1295,7 +1295,7 @@ ee.list_create_item_v1 = Pu;
|
|
|
1295
1295
|
const Du = {
|
|
1296
1296
|
init: function() {
|
|
1297
1297
|
this.itemCount_ = 0, this.setMutator(
|
|
1298
|
-
new
|
|
1298
|
+
new _n.MutatorIcon(
|
|
1299
1299
|
["list_create_item_v1"],
|
|
1300
1300
|
this
|
|
1301
1301
|
)
|
|
@@ -2909,7 +2909,7 @@ ee.object_create_item_v1 = Xu;
|
|
|
2909
2909
|
const Wu = {
|
|
2910
2910
|
init: function() {
|
|
2911
2911
|
this.itemCount_ = 0, this.appendDummyInput().appendField("%{BKY_OBJECT_V1_CREATE_TITLE}"), this.setMutator(
|
|
2912
|
-
new
|
|
2912
|
+
new _n.MutatorIcon(
|
|
2913
2913
|
["object_create_item_v1"],
|
|
2914
2914
|
this
|
|
2915
2915
|
)
|
|
@@ -3280,7 +3280,7 @@ const qu = {
|
|
|
3280
3280
|
Hn.findLegalName("", this)
|
|
3281
3281
|
);
|
|
3282
3282
|
e.setValidator(Hn.rename), e.setSpellcheck(!1), this.appendDummyInput("DUMMY").appendField(e, "NAME"), this.appendStatementInput("HANDLE"), this.setMutator(
|
|
3283
|
-
new
|
|
3283
|
+
new _n.MutatorIcon(
|
|
3284
3284
|
["procedure_def_item_v1"],
|
|
3285
3285
|
this
|
|
3286
3286
|
)
|
|
@@ -3459,7 +3459,7 @@ s.forBlock.text_v1 = function(e) {
|
|
|
3459
3459
|
return [s.quote_(e.getFieldValue("TEXT")), u.ATOMIC];
|
|
3460
3460
|
};
|
|
3461
3461
|
const e_ = /^\s*'([^']|\\')*'\s*$/;
|
|
3462
|
-
function
|
|
3462
|
+
function jt(e) {
|
|
3463
3463
|
return e_.test(e) ? [e, u.ATOMIC] : [`String(${e})`, u.FUNCTION_CALL];
|
|
3464
3464
|
}
|
|
3465
3465
|
G.register(
|
|
@@ -3496,7 +3496,7 @@ s.forBlock.text_append_v1 = function(e) {
|
|
|
3496
3496
|
e.getFieldValue("VAR"),
|
|
3497
3497
|
io.NameType.VARIABLE
|
|
3498
3498
|
), n = s.valueToCode(e, "TEXT", u.NONE) || "''";
|
|
3499
|
-
return `${t} += ${
|
|
3499
|
+
return `${t} += ${jt(n)};
|
|
3500
3500
|
`;
|
|
3501
3501
|
};
|
|
3502
3502
|
E([
|
|
@@ -3741,7 +3741,7 @@ const t_ = v.xml, n_ = {
|
|
|
3741
3741
|
this.removeInput("ADD" + e);
|
|
3742
3742
|
}
|
|
3743
3743
|
}, o_ = function() {
|
|
3744
|
-
this.itemCount_ = 2, this.updateShape_(), this.setMutator(new
|
|
3744
|
+
this.itemCount_ = 2, this.updateShape_(), this.setMutator(new _n.MutatorIcon(["text_join_item_v1"], this));
|
|
3745
3745
|
};
|
|
3746
3746
|
G.registerMutator(
|
|
3747
3747
|
"text_join_mutator_v1",
|
|
@@ -3789,11 +3789,11 @@ s.forBlock.text_join_v1 = function(e) {
|
|
|
3789
3789
|
return ["''", u.ATOMIC];
|
|
3790
3790
|
case 1: {
|
|
3791
3791
|
const n = s.valueToCode(t, "ADD0", u.NONE) || "''";
|
|
3792
|
-
return
|
|
3792
|
+
return jt(n);
|
|
3793
3793
|
}
|
|
3794
3794
|
case 2: {
|
|
3795
3795
|
const n = s.valueToCode(t, "ADD0", u.NONE) || "''", o = s.valueToCode(t, "ADD1", u.NONE) || "''";
|
|
3796
|
-
return [
|
|
3796
|
+
return [jt(n)[0] + " + " + jt(o)[0], u.ADDITION];
|
|
3797
3797
|
}
|
|
3798
3798
|
default: {
|
|
3799
3799
|
const n = new Array(t.itemCount_);
|
|
@@ -3994,13 +3994,13 @@ const r_ = {
|
|
|
3994
3994
|
updateShadow_: function() {
|
|
3995
3995
|
var e, t, n, o, r, i, a, l;
|
|
3996
3996
|
this.isInsertionMarker() || ((t = (e = this.getInput("INTERVAL")) == null ? void 0 : e.connection) == null || t.setShadowDom(
|
|
3997
|
-
|
|
3997
|
+
Pt({ type: "number", default: 1e3 })
|
|
3998
3998
|
), (o = (n = this.getInput("LOOP")) == null ? void 0 : n.connection) == null || o.setShadowDom(
|
|
3999
|
-
|
|
3999
|
+
Pt({ type: "boolean", default: !1 })
|
|
4000
4000
|
), (i = (r = this.getInput("COUNT")) == null ? void 0 : r.connection) == null || i.setShadowDom(
|
|
4001
|
-
|
|
4001
|
+
Pt({ type: "number", default: 1 })
|
|
4002
4002
|
), (l = (a = this.getInput("IMMEDIATE")) == null ? void 0 : a.connection) == null || l.setShadowDom(
|
|
4003
|
-
|
|
4003
|
+
Pt({ type: "boolean", default: !1 })
|
|
4004
4004
|
));
|
|
4005
4005
|
}
|
|
4006
4006
|
};
|
|
@@ -4066,7 +4066,7 @@ const i_ = {
|
|
|
4066
4066
|
}, a_ = function(e) {
|
|
4067
4067
|
return function() {
|
|
4068
4068
|
const t = e.workspace, o = e.getField("VAR").getVariable();
|
|
4069
|
-
|
|
4069
|
+
$t.renameVariable(t, o);
|
|
4070
4070
|
};
|
|
4071
4071
|
}, s_ = function(e) {
|
|
4072
4072
|
return function() {
|
|
@@ -4205,7 +4205,7 @@ const Me = {
|
|
|
4205
4205
|
callback: f_
|
|
4206
4206
|
};
|
|
4207
4207
|
function h_() {
|
|
4208
|
-
const { args: e } =
|
|
4208
|
+
const { args: e } = Lt.app.view, t = [];
|
|
4209
4209
|
return e == null || e.forEach(({ id: n, name: o, type: r }) => {
|
|
4210
4210
|
t.push({ id: n, name: o, type: r });
|
|
4211
4211
|
}), t;
|
|
@@ -4225,14 +4225,14 @@ function T_() {
|
|
|
4225
4225
|
}
|
|
4226
4226
|
return e;
|
|
4227
4227
|
}
|
|
4228
|
-
const
|
|
4228
|
+
const nn = {
|
|
4229
4229
|
name: "UI_CATEGORY",
|
|
4230
4230
|
callback: T_
|
|
4231
|
-
},
|
|
4231
|
+
}, wt = v.xml;
|
|
4232
4232
|
function g_(e) {
|
|
4233
4233
|
const t = [];
|
|
4234
4234
|
{
|
|
4235
|
-
const o =
|
|
4235
|
+
const o = wt.createElement("label");
|
|
4236
4236
|
o.setAttribute("text", "%{BKY_LABEL_VARIABLE}"), t.push(o);
|
|
4237
4237
|
}
|
|
4238
4238
|
{
|
|
@@ -4240,7 +4240,7 @@ function g_(e) {
|
|
|
4240
4240
|
o.setAttribute("text", "%{BKY_NEW_VARIABLE}"), o.setAttribute("callbackKey", "CREATE_VARIABLE"), e.registerButtonCallback(
|
|
4241
4241
|
"CREATE_VARIABLE",
|
|
4242
4242
|
function(r) {
|
|
4243
|
-
|
|
4243
|
+
$t.createVariableButtonHandler(
|
|
4244
4244
|
r.getTargetWorkspace()
|
|
4245
4245
|
);
|
|
4246
4246
|
}
|
|
@@ -4251,17 +4251,17 @@ function g_(e) {
|
|
|
4251
4251
|
return t;
|
|
4252
4252
|
n.sort(Ki.compareByName);
|
|
4253
4253
|
{
|
|
4254
|
-
const o =
|
|
4254
|
+
const o = wt.createElement("label");
|
|
4255
4255
|
o.setAttribute("text", J.LABEL_CREATED), t.push(o);
|
|
4256
4256
|
}
|
|
4257
4257
|
return n.forEach((o) => {
|
|
4258
4258
|
{
|
|
4259
|
-
const r =
|
|
4260
|
-
r.setAttribute("type", "variable_get_v1"), r.appendChild(
|
|
4259
|
+
const r = wt.createElement("block");
|
|
4260
|
+
r.setAttribute("type", "variable_get_v1"), r.appendChild($t.generateVariableFieldDom(o)), t.push(r);
|
|
4261
4261
|
}
|
|
4262
4262
|
{
|
|
4263
|
-
const r =
|
|
4264
|
-
r.setAttribute("type", "variable_set_v1"), r.appendChild(
|
|
4263
|
+
const r = wt.createElement("block");
|
|
4264
|
+
r.setAttribute("type", "variable_set_v1"), r.appendChild($t.generateVariableFieldDom(o)), t.push(r);
|
|
4265
4265
|
}
|
|
4266
4266
|
}), t;
|
|
4267
4267
|
}
|
|
@@ -4341,7 +4341,7 @@ class m_ {
|
|
|
4341
4341
|
},
|
|
4342
4342
|
preconditionFn: function() {
|
|
4343
4343
|
const n = tt();
|
|
4344
|
-
return !n || !
|
|
4344
|
+
return !n || !Rt(n) || !n.isDeletable() || !An(n) || !n.isMovable() || !pt(n) ? "disabled" : "enabled";
|
|
4345
4345
|
},
|
|
4346
4346
|
callback: function(n) {
|
|
4347
4347
|
var o;
|
|
@@ -4398,7 +4398,7 @@ class m_ {
|
|
|
4398
4398
|
if (i.options.readOnly || Ln.inProgress())
|
|
4399
4399
|
return !1;
|
|
4400
4400
|
const a = tt();
|
|
4401
|
-
return !(!a || !
|
|
4401
|
+
return !(!a || !Rt(a) || !a.isDeletable() || !An(a) || !a.isMovable() || !pt(a));
|
|
4402
4402
|
},
|
|
4403
4403
|
callback: function(i, a) {
|
|
4404
4404
|
a.preventDefault();
|
|
@@ -4428,12 +4428,12 @@ class m_ {
|
|
|
4428
4428
|
if (i.options.readOnly || Ln.inProgress())
|
|
4429
4429
|
return !1;
|
|
4430
4430
|
const a = tt();
|
|
4431
|
-
return !(!a || !
|
|
4431
|
+
return !(!a || !Rt(a) || !a.isDeletable() || !An(a) || !a.isMovable() || !pt(a) || a.workspace.isFlyout);
|
|
4432
4432
|
},
|
|
4433
4433
|
callback: function(i, a) {
|
|
4434
4434
|
a.preventDefault();
|
|
4435
4435
|
const l = tt();
|
|
4436
|
-
if (!l || !
|
|
4436
|
+
if (!l || !Rt(l) || !l.isDeletable() || !pt(l))
|
|
4437
4437
|
return !1;
|
|
4438
4438
|
const c = l.toCopyData();
|
|
4439
4439
|
return c ? (localStorage.setItem("blocklyStash", JSON.stringify(c)), l instanceof $i ? l.checkAndDelete() : l.dispose(), !0) : !1;
|
|
@@ -5120,13 +5120,13 @@ class ri extends Sn {
|
|
|
5120
5120
|
), this.createBorderRect_(), this.getBorderRect().style.fillOpacity = "1", this.getBorderRect().setAttribute("stroke", "#fff"), this.isFullBlockField() && (this.clickTarget_ = this.sourceBlock_.getSvgRoot());
|
|
5121
5121
|
}
|
|
5122
5122
|
isFullBlockField() {
|
|
5123
|
-
if (!this.getSourceBlock()) throw new
|
|
5123
|
+
if (!this.getSourceBlock()) throw new Mt();
|
|
5124
5124
|
const o = this.getConstants();
|
|
5125
5125
|
return this.blockIsSimpleReporter() && !!(o != null && o.FIELD_COLOUR_FULL_BLOCK);
|
|
5126
5126
|
}
|
|
5127
5127
|
blockIsSimpleReporter() {
|
|
5128
5128
|
const n = this.getSourceBlock();
|
|
5129
|
-
if (!n) throw new
|
|
5129
|
+
if (!n) throw new Mt();
|
|
5130
5130
|
if (!n.outputConnection) return !1;
|
|
5131
5131
|
for (const o of n.inputList)
|
|
5132
5132
|
if (o.connection || o.fieldRow.length > 1) return !1;
|
|
@@ -5134,7 +5134,7 @@ class ri extends Sn {
|
|
|
5134
5134
|
}
|
|
5135
5135
|
applyColour() {
|
|
5136
5136
|
const n = this.getSourceBlock();
|
|
5137
|
-
if (!n) throw new
|
|
5137
|
+
if (!n) throw new Mt();
|
|
5138
5138
|
if (!this.fieldGroup_) return;
|
|
5139
5139
|
const o = this.borderRect_;
|
|
5140
5140
|
if (!o)
|
|
@@ -5148,7 +5148,7 @@ class ri extends Sn {
|
|
|
5148
5148
|
render_() {
|
|
5149
5149
|
super.render_();
|
|
5150
5150
|
const n = this.getSourceBlock();
|
|
5151
|
-
if (!n) throw new
|
|
5151
|
+
if (!n) throw new Mt();
|
|
5152
5152
|
n.applyColour();
|
|
5153
5153
|
}
|
|
5154
5154
|
updateSize_(n) {
|
|
@@ -5173,14 +5173,14 @@ class ri extends Sn {
|
|
|
5173
5173
|
showEditor_() {
|
|
5174
5174
|
if (this.dropdownCreate(), !this.picker)
|
|
5175
5175
|
throw Error("Picker not found");
|
|
5176
|
-
|
|
5176
|
+
xt.getContentDiv().appendChild(this.picker), xt.showPositionedByField(
|
|
5177
5177
|
this,
|
|
5178
5178
|
this.dropdownDispose.bind(this)
|
|
5179
5179
|
), this.picker.focus({ preventScroll: !0 });
|
|
5180
5180
|
}
|
|
5181
5181
|
onClick(n) {
|
|
5182
5182
|
const o = n.target, r = o && o.getAttribute("data-colour");
|
|
5183
|
-
r !== null && (this.setValue(r),
|
|
5183
|
+
r !== null && (this.setValue(r), xt.hideIfOwner(this));
|
|
5184
5184
|
}
|
|
5185
5185
|
onKeyDown(n) {
|
|
5186
5186
|
let o = !0, r;
|
|
@@ -5202,7 +5202,7 @@ class ri extends Sn {
|
|
|
5202
5202
|
const i = r.getAttribute("data-colour");
|
|
5203
5203
|
i !== null && this.setValue(i);
|
|
5204
5204
|
}
|
|
5205
|
-
|
|
5205
|
+
xt.hideWithoutAnimation();
|
|
5206
5206
|
break;
|
|
5207
5207
|
default:
|
|
5208
5208
|
o = !1;
|
|
@@ -5364,7 +5364,7 @@ O_.init();
|
|
|
5364
5364
|
const I_ = new E_();
|
|
5365
5365
|
I_.init();
|
|
5366
5366
|
y_();
|
|
5367
|
-
|
|
5367
|
+
pn.Classic.blockStyles = {
|
|
5368
5368
|
color_blocks: {
|
|
5369
5369
|
colourPrimary: "#a5745b",
|
|
5370
5370
|
colourSecondary: "#ede3de",
|
|
@@ -5438,7 +5438,7 @@ dn.Classic.blockStyles = {
|
|
|
5438
5438
|
hat: ""
|
|
5439
5439
|
}
|
|
5440
5440
|
};
|
|
5441
|
-
|
|
5441
|
+
pn.Classic.categoryStyles = {
|
|
5442
5442
|
calc_category: {
|
|
5443
5443
|
colour: "#757575"
|
|
5444
5444
|
},
|
|
@@ -5493,7 +5493,7 @@ dn.Classic.categoryStyles = {
|
|
|
5493
5493
|
};
|
|
5494
5494
|
const C_ = br.defineTheme("light", {
|
|
5495
5495
|
name: "light",
|
|
5496
|
-
base:
|
|
5496
|
+
base: pn.Classic,
|
|
5497
5497
|
componentStyles: {
|
|
5498
5498
|
workspaceBackgroundColour: "#ffffff",
|
|
5499
5499
|
toolboxBackgroundColour: "#eeeeee",
|
|
@@ -5509,7 +5509,7 @@ const C_ = br.defineTheme("light", {
|
|
|
5509
5509
|
}
|
|
5510
5510
|
}), A_ = br.defineTheme("dark", {
|
|
5511
5511
|
name: "dark",
|
|
5512
|
-
base:
|
|
5512
|
+
base: pn.Classic,
|
|
5513
5513
|
componentStyles: {
|
|
5514
5514
|
workspaceBackgroundColour: "#1e1e1e",
|
|
5515
5515
|
toolboxBackgroundColour: "#272727",
|
|
@@ -6205,7 +6205,7 @@ const gn = {
|
|
|
6205
6205
|
kind: "category",
|
|
6206
6206
|
name: "%{BKY_CATEGORY_UI}",
|
|
6207
6207
|
categorystyle: "ui_category",
|
|
6208
|
-
custom:
|
|
6208
|
+
custom: nn.name
|
|
6209
6209
|
},
|
|
6210
6210
|
En,
|
|
6211
6211
|
vn,
|
|
@@ -6299,7 +6299,7 @@ const gn = {
|
|
|
6299
6299
|
kind: "category",
|
|
6300
6300
|
name: "%{BKY_CATEGORY_UI}",
|
|
6301
6301
|
categorystyle: "ui_category",
|
|
6302
|
-
custom:
|
|
6302
|
+
custom: nn.name
|
|
6303
6303
|
},
|
|
6304
6304
|
En,
|
|
6305
6305
|
vn,
|
|
@@ -6334,7 +6334,7 @@ const gn = {
|
|
|
6334
6334
|
lock: { type: Boolean }
|
|
6335
6335
|
},
|
|
6336
6336
|
setup(e) {
|
|
6337
|
-
const { t } =
|
|
6337
|
+
const { t } = dn(), n = e, o = () => {
|
|
6338
6338
|
if (n.lock) {
|
|
6339
6339
|
Or(t("x-block-lib.msg.cannotCleanInLockState"));
|
|
6340
6340
|
return;
|
|
@@ -6347,7 +6347,7 @@ const gn = {
|
|
|
6347
6347
|
};
|
|
6348
6348
|
return lt(() => {
|
|
6349
6349
|
me.on("cleanWorkspace", o);
|
|
6350
|
-
}),
|
|
6350
|
+
}), Qt(() => {
|
|
6351
6351
|
me.off("cleanWorkspace", o);
|
|
6352
6352
|
}), (r, i) => {
|
|
6353
6353
|
const a = le("v-btn"), l = le("v-tooltip");
|
|
@@ -6375,7 +6375,7 @@ const gn = {
|
|
|
6375
6375
|
},
|
|
6376
6376
|
emits: ["update:modelValue"],
|
|
6377
6377
|
setup(e) {
|
|
6378
|
-
const { t } =
|
|
6378
|
+
const { t } = dn(), n = Kn(e, "modelValue");
|
|
6379
6379
|
return (o, r) => {
|
|
6380
6380
|
const i = le("v-btn"), a = le("v-tooltip");
|
|
6381
6381
|
return Q(), De(a, {
|
|
@@ -6395,19 +6395,19 @@ const gn = {
|
|
|
6395
6395
|
};
|
|
6396
6396
|
}
|
|
6397
6397
|
});
|
|
6398
|
-
var x_ = Object.defineProperty,
|
|
6398
|
+
var x_ = Object.defineProperty, on = Object.getOwnPropertySymbols, ai = Object.prototype.hasOwnProperty, si = Object.prototype.propertyIsEnumerable, tr = (e, t, n) => t in e ? x_(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, rt = (e, t) => {
|
|
6399
6399
|
for (var n in t || (t = {}))
|
|
6400
6400
|
ai.call(t, n) && tr(e, n, t[n]);
|
|
6401
|
-
if (
|
|
6402
|
-
for (var n of
|
|
6401
|
+
if (on)
|
|
6402
|
+
for (var n of on(t))
|
|
6403
6403
|
si.call(t, n) && tr(e, n, t[n]);
|
|
6404
6404
|
return e;
|
|
6405
6405
|
}, li = (e, t) => {
|
|
6406
6406
|
var n = {};
|
|
6407
6407
|
for (var o in e)
|
|
6408
6408
|
ai.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
|
|
6409
|
-
if (e != null &&
|
|
6410
|
-
for (var o of
|
|
6409
|
+
if (e != null && on)
|
|
6410
|
+
for (var o of on(e))
|
|
6411
6411
|
t.indexOf(o) < 0 && si.call(e, o) && (n[o] = e[o]);
|
|
6412
6412
|
return n;
|
|
6413
6413
|
};
|
|
@@ -6502,13 +6502,13 @@ function Ee(e) {
|
|
|
6502
6502
|
}
|
|
6503
6503
|
return e;
|
|
6504
6504
|
}
|
|
6505
|
-
function
|
|
6505
|
+
function Xt(e) {
|
|
6506
6506
|
"@babel/helpers - typeof";
|
|
6507
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ?
|
|
6507
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Xt = function(t) {
|
|
6508
6508
|
return typeof t;
|
|
6509
|
-
} :
|
|
6509
|
+
} : Xt = function(t) {
|
|
6510
6510
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
6511
|
-
},
|
|
6511
|
+
}, Xt(e);
|
|
6512
6512
|
}
|
|
6513
6513
|
function X_(e, t, n) {
|
|
6514
6514
|
return t in e ? Object.defineProperty(e, t, {
|
|
@@ -6552,7 +6552,7 @@ function Le(e) {
|
|
|
6552
6552
|
if (typeof window < "u" && window.navigator)
|
|
6553
6553
|
return !!/* @__PURE__ */ navigator.userAgent.match(e);
|
|
6554
6554
|
}
|
|
6555
|
-
var ke = Le(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),
|
|
6555
|
+
var ke = Le(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), kt = Le(/Edge/i), lr = Le(/firefox/i), vt = Le(/safari/i) && !Le(/chrome/i) && !Le(/android/i), ui = Le(/iP(ad|od|hone)/i), _i = Le(/chrome/i) && Le(/android/i), pi = {
|
|
6556
6556
|
capture: !1,
|
|
6557
6557
|
passive: !1
|
|
6558
6558
|
};
|
|
@@ -6562,7 +6562,7 @@ function B(e, t, n) {
|
|
|
6562
6562
|
function N(e, t, n) {
|
|
6563
6563
|
e.removeEventListener(t, n, !ke && pi);
|
|
6564
6564
|
}
|
|
6565
|
-
function
|
|
6565
|
+
function rn(e, t) {
|
|
6566
6566
|
if (t) {
|
|
6567
6567
|
if (t[0] === ">" && (t = t.substring(1)), e)
|
|
6568
6568
|
try {
|
|
@@ -6585,7 +6585,7 @@ function he(e, t, n, o) {
|
|
|
6585
6585
|
if (e) {
|
|
6586
6586
|
n = n || document;
|
|
6587
6587
|
do {
|
|
6588
|
-
if (t != null && (t[0] === ">" ? e.parentNode === n &&
|
|
6588
|
+
if (t != null && (t[0] === ">" ? e.parentNode === n && rn(e, t) : rn(e, t)) || o && e === n)
|
|
6589
6589
|
return e;
|
|
6590
6590
|
if (e === n)
|
|
6591
6591
|
break;
|
|
@@ -6685,7 +6685,7 @@ function ut(e, t, n, o) {
|
|
|
6685
6685
|
return null;
|
|
6686
6686
|
}
|
|
6687
6687
|
function To(e, t) {
|
|
6688
|
-
for (var n = e.lastElementChild; n && (n === I.ghost || O(n, "display") === "none" || t && !
|
|
6688
|
+
for (var n = e.lastElementChild; n && (n === I.ghost || O(n, "display") === "none" || t && !rn(n, t)); )
|
|
6689
6689
|
n = n.previousElementSibling;
|
|
6690
6690
|
return n || null;
|
|
6691
6691
|
}
|
|
@@ -6694,7 +6694,7 @@ function pe(e, t) {
|
|
|
6694
6694
|
if (!e || !e.parentNode)
|
|
6695
6695
|
return -1;
|
|
6696
6696
|
for (; e = e.previousElementSibling; )
|
|
6697
|
-
e.nodeName.toUpperCase() !== "TEMPLATE" && e !== I.clone && (!t ||
|
|
6697
|
+
e.nodeName.toUpperCase() !== "TEMPLATE" && e !== I.clone && (!t || rn(e, t)) && n++;
|
|
6698
6698
|
return n;
|
|
6699
6699
|
}
|
|
6700
6700
|
function _r(e) {
|
|
@@ -6840,7 +6840,7 @@ function op(e, t, n, o) {
|
|
|
6840
6840
|
}
|
|
6841
6841
|
var Ze = [], xn = {
|
|
6842
6842
|
initializeByDefault: !0
|
|
6843
|
-
},
|
|
6843
|
+
}, Bt = {
|
|
6844
6844
|
mount: function(e) {
|
|
6845
6845
|
for (var t in xn)
|
|
6846
6846
|
xn.hasOwnProperty(t) && !(t in e) && (e[t] = xn[t]);
|
|
@@ -6894,11 +6894,11 @@ function rp(e) {
|
|
|
6894
6894
|
var t = e.sortable, n = e.rootEl, o = e.name, r = e.targetEl, i = e.cloneEl, a = e.toEl, l = e.fromEl, c = e.oldIndex, p = e.newIndex, d = e.oldDraggableIndex, _ = e.newDraggableIndex, T = e.originalEvent, f = e.putSortable, m = e.extraEventProperties;
|
|
6895
6895
|
if (t = t || n && n[ue], !!t) {
|
|
6896
6896
|
var g, y = t.options, b = "on" + o.charAt(0).toUpperCase() + o.substr(1);
|
|
6897
|
-
window.CustomEvent && !ke && !
|
|
6897
|
+
window.CustomEvent && !ke && !kt ? g = new CustomEvent(o, {
|
|
6898
6898
|
bubbles: !0,
|
|
6899
6899
|
cancelable: !0
|
|
6900
6900
|
}) : (g = document.createEvent("Event"), g.initEvent(o, !0, !0)), g.to = a || n, g.from = l || n, g.item = r || n, g.clone = i, g.oldIndex = c, g.newIndex = p, g.oldDraggableIndex = d, g.newDraggableIndex = _, g.originalEvent = T, g.pullMode = f ? f.lastPutMode : void 0;
|
|
6901
|
-
var R = Ee(Ee({}, m),
|
|
6901
|
+
var R = Ee(Ee({}, m), Bt.getEventProperties(o, t));
|
|
6902
6902
|
for (var k in R)
|
|
6903
6903
|
g[k] = R[k];
|
|
6904
6904
|
n && n.dispatchEvent(g), y[b] && y[b].call(t, g);
|
|
@@ -6906,13 +6906,13 @@ function rp(e) {
|
|
|
6906
6906
|
}
|
|
6907
6907
|
var ip = ["evt"], re = function(e, t) {
|
|
6908
6908
|
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = n.evt, r = z_(n, ip);
|
|
6909
|
-
|
|
6909
|
+
Bt.pluginEvent.bind(I)(e, t, Ee({
|
|
6910
6910
|
dragEl: h,
|
|
6911
6911
|
parentEl: H,
|
|
6912
6912
|
ghostEl: A,
|
|
6913
6913
|
rootEl: Y,
|
|
6914
6914
|
nextEl: Ye,
|
|
6915
|
-
lastDownEl:
|
|
6915
|
+
lastDownEl: Wt,
|
|
6916
6916
|
cloneEl: F,
|
|
6917
6917
|
cloneHidden: Re,
|
|
6918
6918
|
dragStarted: ht,
|
|
@@ -6952,7 +6952,7 @@ function ne(e) {
|
|
|
6952
6952
|
newDraggableIndex: Be
|
|
6953
6953
|
}, e));
|
|
6954
6954
|
}
|
|
6955
|
-
var h, H, A, Y, Ye,
|
|
6955
|
+
var h, H, A, Y, Ye, Wt, F, Re, it, se, yt, Be, Ut, q, nt = !1, an = !1, sn = [], Ue, fe, Pn, Dn, pr, dr, ht, et, bt, Ot = !1, Vt = !1, zt, Z, wn = [], Jn = !1, ln = [], In = typeof document < "u", Yt = ui, fr = kt || ke ? "cssFloat" : "float", ap = In && !_i && !ui && "draggable" in document.createElement("div"), mi = function() {
|
|
6956
6956
|
if (In) {
|
|
6957
6957
|
if (ke)
|
|
6958
6958
|
return !1;
|
|
@@ -6975,7 +6975,7 @@ var h, H, A, Y, Ye, zt, F, Re, it, se, yt, Be, Vt, q, nt = !1, sn = !1, ln = [],
|
|
|
6975
6975
|
return o === a || r === l || o + i / 2 === a + c / 2;
|
|
6976
6976
|
}, lp = function(e, t) {
|
|
6977
6977
|
var n;
|
|
6978
|
-
return
|
|
6978
|
+
return sn.some(function(o) {
|
|
6979
6979
|
var r = o[ue].options.emptyInsertThreshold;
|
|
6980
6980
|
if (!(!r || To(o))) {
|
|
6981
6981
|
var i = z(o), a = e >= i.left - r && e <= i.right + r, l = t >= i.top - r && t <= i.bottom + r;
|
|
@@ -7000,7 +7000,7 @@ var h, H, A, Y, Ye, zt, F, Re, it, se, yt, Be, Vt, q, nt = !1, sn = !1, ln = [],
|
|
|
7000
7000
|
};
|
|
7001
7001
|
}
|
|
7002
7002
|
var n = {}, o = e.group;
|
|
7003
|
-
(!o ||
|
|
7003
|
+
(!o || Xt(o) != "object") && (o = {
|
|
7004
7004
|
name: o
|
|
7005
7005
|
}), n.name = o.name, n.checkPull = t(o.pull, !0), n.checkPut = t(o.put), n.revertClone = o.revertClone, e.group = n;
|
|
7006
7006
|
}, yi = function() {
|
|
@@ -7009,8 +7009,8 @@ var h, H, A, Y, Ye, zt, F, Re, it, se, yt, Be, Vt, q, nt = !1, sn = !1, ln = [],
|
|
|
7009
7009
|
!mi && A && O(A, "display", "");
|
|
7010
7010
|
};
|
|
7011
7011
|
In && !_i && document.addEventListener("click", function(e) {
|
|
7012
|
-
if (
|
|
7013
|
-
return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(),
|
|
7012
|
+
if (an)
|
|
7013
|
+
return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), an = !1, !1;
|
|
7014
7014
|
}, !0);
|
|
7015
7015
|
var Ve = function(e) {
|
|
7016
7016
|
if (h) {
|
|
@@ -7075,13 +7075,13 @@ function I(e, t) {
|
|
|
7075
7075
|
supportPointer: I.supportPointer !== !1 && "PointerEvent" in window && !vt,
|
|
7076
7076
|
emptyInsertThreshold: 5
|
|
7077
7077
|
};
|
|
7078
|
-
|
|
7078
|
+
Bt.initializePlugins(this, e, n);
|
|
7079
7079
|
for (var o in n)
|
|
7080
7080
|
!(o in t) && (t[o] = n[o]);
|
|
7081
7081
|
Ei(t);
|
|
7082
7082
|
for (var r in this)
|
|
7083
7083
|
r.charAt(0) === "_" && typeof this[r] == "function" && (this[r] = this[r].bind(this));
|
|
7084
|
-
this.nativeDraggable = t.forceFallback ? !1 : ap, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? B(e, "pointerdown", this._onTapStart) : (B(e, "mousedown", this._onTapStart), B(e, "touchstart", this._onTapStart)), this.nativeDraggable && (B(e, "dragover", this), B(e, "dragenter", this)),
|
|
7084
|
+
this.nativeDraggable = t.forceFallback ? !1 : ap, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? B(e, "pointerdown", this._onTapStart) : (B(e, "mousedown", this._onTapStart), B(e, "touchstart", this._onTapStart)), this.nativeDraggable && (B(e, "dragover", this), B(e, "dragenter", this)), sn.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), Se(this, tp());
|
|
7085
7085
|
}
|
|
7086
7086
|
I.prototype = /** @lends Sortable.prototype */
|
|
7087
7087
|
{
|
|
@@ -7095,7 +7095,7 @@ I.prototype = /** @lends Sortable.prototype */
|
|
|
7095
7095
|
_onTapStart: function(e) {
|
|
7096
7096
|
if (e.cancelable) {
|
|
7097
7097
|
var t = this, n = this.el, o = this.options, r = o.preventOnFilter, i = e.type, a = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, l = (a || e).target, c = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || l, p = o.filter;
|
|
7098
|
-
if (gp(n), !h && !(/mousedown|pointerdown/.test(i) && e.button !== 0 || o.disabled) && !c.isContentEditable && !(!this.nativeDraggable && vt && l && l.tagName.toUpperCase() === "SELECT") && (l = he(l, o.draggable, n, !1), !(l && l.animated) &&
|
|
7098
|
+
if (gp(n), !h && !(/mousedown|pointerdown/.test(i) && e.button !== 0 || o.disabled) && !c.isContentEditable && !(!this.nativeDraggable && vt && l && l.tagName.toUpperCase() === "SELECT") && (l = he(l, o.draggable, n, !1), !(l && l.animated) && Wt !== l)) {
|
|
7099
7099
|
if (it = pe(l), yt = pe(l, o.draggable), typeof p == "function") {
|
|
7100
7100
|
if (p.call(this, e, l, this)) {
|
|
7101
7101
|
ne({
|
|
@@ -7134,7 +7134,7 @@ I.prototype = /** @lends Sortable.prototype */
|
|
|
7134
7134
|
var o = this, r = o.el, i = o.options, a = r.ownerDocument, l;
|
|
7135
7135
|
if (n && !h && n.parentNode === r) {
|
|
7136
7136
|
var c = z(n);
|
|
7137
|
-
if (Y = r, h = n, H = h.parentNode, Ye = h.nextSibling,
|
|
7137
|
+
if (Y = r, h = n, H = h.parentNode, Ye = h.nextSibling, Wt = n, Ut = i.group, I.dragged = h, Ue = {
|
|
7138
7138
|
target: h,
|
|
7139
7139
|
clientX: (t || e).clientX,
|
|
7140
7140
|
clientY: (t || e).clientY
|
|
@@ -7154,7 +7154,7 @@ I.prototype = /** @lends Sortable.prototype */
|
|
|
7154
7154
|
di(h, p.trim(), Un);
|
|
7155
7155
|
}), B(a, "dragover", Ve), B(a, "mousemove", Ve), B(a, "touchmove", Ve), B(a, "mouseup", o._onDrop), B(a, "touchend", o._onDrop), B(a, "touchcancel", o._onDrop), lr && this.nativeDraggable && (this.options.touchStartThreshold = 4, h.draggable = !0), re("delayStart", this, {
|
|
7156
7156
|
evt: e
|
|
7157
|
-
}), i.delay && (!i.delayOnTouchOnly || t) && (!this.nativeDraggable || !(
|
|
7157
|
+
}), i.delay && (!i.delayOnTouchOnly || t) && (!this.nativeDraggable || !(kt || ke))) {
|
|
7158
7158
|
if (I.eventCanceled) {
|
|
7159
7159
|
this._onDrop();
|
|
7160
7160
|
return;
|
|
@@ -7178,7 +7178,7 @@ I.prototype = /** @lends Sortable.prototype */
|
|
|
7178
7178
|
_triggerDragStart: function(e, t) {
|
|
7179
7179
|
t = t || e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? B(document, "pointermove", this._onTouchMove) : t ? B(document, "touchmove", this._onTouchMove) : B(document, "mousemove", this._onTouchMove) : (B(h, "dragend", this), B(Y, "dragstart", this._onDragStart));
|
|
7180
7180
|
try {
|
|
7181
|
-
document.selection ?
|
|
7181
|
+
document.selection ? Jt(function() {
|
|
7182
7182
|
document.selection.empty();
|
|
7183
7183
|
}) : window.getSelection().removeAllRanges();
|
|
7184
7184
|
} catch {
|
|
@@ -7222,7 +7222,7 @@ I.prototype = /** @lends Sortable.prototype */
|
|
|
7222
7222
|
},
|
|
7223
7223
|
_onTouchMove: function(e) {
|
|
7224
7224
|
if (Ue) {
|
|
7225
|
-
var t = this.options, n = t.fallbackTolerance, o = t.fallbackOffset, r = e.touches ? e.touches[0] : e, i = A && st(A, !0), a = A && i && i.a, l = A && i && i.d, c =
|
|
7225
|
+
var t = this.options, n = t.fallbackTolerance, o = t.fallbackOffset, r = e.touches ? e.touches[0] : e, i = A && st(A, !0), a = A && i && i.a, l = A && i && i.d, c = Yt && Z && _r(Z), p = (r.clientX - Ue.clientX + o.x) / (a || 1) + (c ? c[0] - wn[0] : 0) / (a || 1), d = (r.clientY - Ue.clientY + o.y) / (l || 1) + (c ? c[1] - wn[1] : 0) / (l || 1);
|
|
7226
7226
|
if (!I.active && !nt) {
|
|
7227
7227
|
if (n && Math.max(Math.abs(r.clientX - this._lastX), Math.abs(r.clientY - this._lastY)) < n)
|
|
7228
7228
|
return;
|
|
@@ -7245,13 +7245,13 @@ I.prototype = /** @lends Sortable.prototype */
|
|
|
7245
7245
|
},
|
|
7246
7246
|
_appendGhost: function() {
|
|
7247
7247
|
if (!A) {
|
|
7248
|
-
var e = this.options.fallbackOnBody ? document.body : Y, t = z(h, !0,
|
|
7249
|
-
if (
|
|
7248
|
+
var e = this.options.fallbackOnBody ? document.body : Y, t = z(h, !0, Yt, !0, e), n = this.options;
|
|
7249
|
+
if (Yt) {
|
|
7250
7250
|
for (Z = e; O(Z, "position") === "static" && O(Z, "transform") === "none" && Z !== document; )
|
|
7251
7251
|
Z = Z.parentNode;
|
|
7252
7252
|
Z !== document.body && Z !== document.documentElement ? (Z === document && (Z = ve()), t.top += Z.scrollTop, t.left += Z.scrollLeft) : Z = ve(), wn = _r(Z);
|
|
7253
7253
|
}
|
|
7254
|
-
A = h.cloneNode(!0), ae(A, n.ghostClass, !1), ae(A, n.fallbackClass, !0), ae(A, n.dragClass, !0), O(A, "transition", ""), O(A, "transform", ""), O(A, "box-sizing", "border-box"), O(A, "margin", 0), O(A, "top", t.top), O(A, "left", t.left), O(A, "width", t.width), O(A, "height", t.height), O(A, "opacity", "0.8"), O(A, "position",
|
|
7254
|
+
A = h.cloneNode(!0), ae(A, n.ghostClass, !1), ae(A, n.fallbackClass, !0), ae(A, n.dragClass, !0), O(A, "transition", ""), O(A, "transform", ""), O(A, "box-sizing", "border-box"), O(A, "margin", 0), O(A, "top", t.top), O(A, "left", t.left), O(A, "width", t.width), O(A, "height", t.height), O(A, "opacity", "0.8"), O(A, "position", Yt ? "absolute" : "fixed"), O(A, "zIndex", "100000"), O(A, "pointerEvents", "none"), I.ghost = A, e.appendChild(A), O(A, "transform-origin", pr / parseInt(A.style.width) * 100 + "% " + dr / parseInt(A.style.height) * 100 + "%");
|
|
7255
7255
|
}
|
|
7256
7256
|
},
|
|
7257
7257
|
_onDragStart: function(e, t) {
|
|
@@ -7262,16 +7262,16 @@ I.prototype = /** @lends Sortable.prototype */
|
|
|
7262
7262
|
this._onDrop();
|
|
7263
7263
|
return;
|
|
7264
7264
|
}
|
|
7265
|
-
re("setupClone", this), I.eventCanceled || (F = Ti(h), F.removeAttribute("id"), F.draggable = !1, F.style["will-change"] = "", this._hideClone(), ae(F, this.options.chosenClass, !1), I.clone = F), n.cloneId =
|
|
7265
|
+
re("setupClone", this), I.eventCanceled || (F = Ti(h), F.removeAttribute("id"), F.draggable = !1, F.style["will-change"] = "", this._hideClone(), ae(F, this.options.chosenClass, !1), I.clone = F), n.cloneId = Jt(function() {
|
|
7266
7266
|
re("clone", n), !I.eventCanceled && (n.options.removeCloneOnHide || Y.insertBefore(F, h), n._hideClone(), ne({
|
|
7267
7267
|
sortable: n,
|
|
7268
7268
|
name: "clone"
|
|
7269
7269
|
}));
|
|
7270
|
-
}), !t && ae(h, r.dragClass, !0), t ? (
|
|
7270
|
+
}), !t && ae(h, r.dragClass, !0), t ? (an = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (N(document, "mouseup", n._onDrop), N(document, "touchend", n._onDrop), N(document, "touchcancel", n._onDrop), o && (o.effectAllowed = "move", r.setData && r.setData.call(n, o, h)), B(document, "drop", n), O(h, "transform", "translateZ(0)")), nt = !0, n._dragStartId = Jt(n._dragStarted.bind(n, t, e)), B(document, "selectstart", n), ht = !0, vt && O(document.body, "user-select", "none");
|
|
7271
7271
|
},
|
|
7272
7272
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
7273
7273
|
_onDragOver: function(e) {
|
|
7274
|
-
var t = this.el, n = e.target, o, r, i, a = this.options, l = a.group, c = I.active, p =
|
|
7274
|
+
var t = this.el, n = e.target, o, r, i, a = this.options, l = a.group, c = I.active, p = Ut === l, d = a.sort, _ = q || c, T, f = this, m = !1;
|
|
7275
7275
|
if (Jn)
|
|
7276
7276
|
return;
|
|
7277
7277
|
function g(_e, _t) {
|
|
@@ -7287,7 +7287,7 @@ I.prototype = /** @lends Sortable.prototype */
|
|
|
7287
7287
|
target: n,
|
|
7288
7288
|
completed: b,
|
|
7289
7289
|
onMove: function(vo, Li) {
|
|
7290
|
-
return
|
|
7290
|
+
return Ft(Y, t, h, o, vo, z(vo), e, Li);
|
|
7291
7291
|
},
|
|
7292
7292
|
changed: R
|
|
7293
7293
|
}, _t));
|
|
@@ -7316,7 +7316,7 @@ I.prototype = /** @lends Sortable.prototype */
|
|
|
7316
7316
|
return m;
|
|
7317
7317
|
if (h.contains(e.target) || n.animated && n.animatingX && n.animatingY || f._ignoreWhileAnimating === n)
|
|
7318
7318
|
return b(!1);
|
|
7319
|
-
if (
|
|
7319
|
+
if (an = !1, c && !a.disabled && (p ? d || (i = H !== Y) : q === this || (this.lastPutMode = Ut.checkPull(this, c, h, e)) && l.checkPut(this, c, h, e))) {
|
|
7320
7320
|
if (T = this._getDirection(e, n) === "vertical", o = z(h), g("dragOverValid"), I.eventCanceled)
|
|
7321
7321
|
return m;
|
|
7322
7322
|
if (i)
|
|
@@ -7325,18 +7325,18 @@ I.prototype = /** @lends Sortable.prototype */
|
|
|
7325
7325
|
if (!k || dp(e, T, this) && !k.animated) {
|
|
7326
7326
|
if (k === h)
|
|
7327
7327
|
return b(!1);
|
|
7328
|
-
if (k && t === e.target && (n = k), n && (r = z(n)),
|
|
7328
|
+
if (k && t === e.target && (n = k), n && (r = z(n)), Ft(Y, t, h, o, n, r, e, !!n) !== !1)
|
|
7329
7329
|
return y(), k && k.nextSibling ? t.insertBefore(h, k.nextSibling) : t.appendChild(h), H = t, R(), b(!0);
|
|
7330
7330
|
} else if (k && pp(e, T, this)) {
|
|
7331
7331
|
var j = ut(t, 0, a, !0);
|
|
7332
7332
|
if (j === h)
|
|
7333
7333
|
return b(!1);
|
|
7334
|
-
if (n = j, r = z(n),
|
|
7334
|
+
if (n = j, r = z(n), Ft(Y, t, h, o, n, r, e, !1) !== !1)
|
|
7335
7335
|
return y(), t.insertBefore(h, j), H = t, R(), b(!0);
|
|
7336
7336
|
} else if (n.parentNode === t) {
|
|
7337
7337
|
r = z(n);
|
|
7338
7338
|
var U = 0, de, be = h.parentNode !== t, C = !sp(h.animated && h.toRect || o, n.animated && n.toRect || r, T), S = T ? "top" : "left", P = ur(n, "top", "top") || ur(h, "top", "top"), X = P ? P.scrollTop : void 0;
|
|
7339
|
-
et !== n && (de = r[S], Ot = !1,
|
|
7339
|
+
et !== n && (de = r[S], Ot = !1, Vt = !C && a.invertSwap || be), U = fp(e, n, r, T, C ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, Vt, et === n);
|
|
7340
7340
|
var x;
|
|
7341
7341
|
if (U !== 0) {
|
|
7342
7342
|
var K = pe(h);
|
|
@@ -7349,9 +7349,9 @@ I.prototype = /** @lends Sortable.prototype */
|
|
|
7349
7349
|
et = n, bt = U;
|
|
7350
7350
|
var L = n.nextElementSibling, D = !1;
|
|
7351
7351
|
D = U === 1;
|
|
7352
|
-
var oe =
|
|
7352
|
+
var oe = Ft(Y, t, h, o, n, r, e, D);
|
|
7353
7353
|
if (oe !== !1)
|
|
7354
|
-
return (oe === 1 || oe === -1) && (D = oe === 1), Jn = !0, setTimeout(_p, 30), y(), D && !L ? t.appendChild(h) : n.parentNode.insertBefore(h, D ? L : n), P && hi(P, 0, X - P.scrollTop), H = h.parentNode, de !== void 0 && !
|
|
7354
|
+
return (oe === 1 || oe === -1) && (D = oe === 1), Jn = !0, setTimeout(_p, 30), y(), D && !L ? t.appendChild(h) : n.parentNode.insertBefore(h, D ? L : n), P && hi(P, 0, X - P.scrollTop), H = h.parentNode, de !== void 0 && !Vt && (zt = Math.abs(de - z(n)[S])), R(), b(!0);
|
|
7355
7355
|
}
|
|
7356
7356
|
if (t.contains(h))
|
|
7357
7357
|
return b(!1);
|
|
@@ -7374,7 +7374,7 @@ I.prototype = /** @lends Sortable.prototype */
|
|
|
7374
7374
|
this._nulling();
|
|
7375
7375
|
return;
|
|
7376
7376
|
}
|
|
7377
|
-
nt = !1,
|
|
7377
|
+
nt = !1, Vt = !1, Ot = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), qn(this.cloneId), qn(this._dragStartId), this.nativeDraggable && (N(document, "drop", this), N(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), vt && O(document.body, "user-select", ""), O(h, "transform", ""), e && (ht && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), A && A.parentNode && A.parentNode.removeChild(A), (Y === H || q && q.lastPutMode !== "clone") && F && F.parentNode && F.parentNode.removeChild(F), h && (this.nativeDraggable && N(h, "dragend", this), Un(h), h.style["will-change"] = "", ht && !nt && ae(h, q ? q.options.ghostClass : this.options.ghostClass, !1), ae(h, this.options.chosenClass, !1), ne({
|
|
7378
7378
|
sortable: this,
|
|
7379
7379
|
name: "unchoose",
|
|
7380
7380
|
toEl: H,
|
|
@@ -7421,9 +7421,9 @@ I.prototype = /** @lends Sortable.prototype */
|
|
|
7421
7421
|
}), this.save()))), this._nulling();
|
|
7422
7422
|
},
|
|
7423
7423
|
_nulling: function() {
|
|
7424
|
-
re("nulling", this), Y = h = H = A = Ye = F =
|
|
7424
|
+
re("nulling", this), Y = h = H = A = Ye = F = Wt = Re = Ue = fe = ht = se = Be = it = yt = et = bt = q = Ut = I.dragged = I.ghost = I.clone = I.active = null, ln.forEach(function(e) {
|
|
7425
7425
|
e.checked = !0;
|
|
7426
|
-
}),
|
|
7426
|
+
}), ln.length = Pn = Dn = 0;
|
|
7427
7427
|
},
|
|
7428
7428
|
handleEvent: function(e) {
|
|
7429
7429
|
switch (e.type) {
|
|
@@ -7488,7 +7488,7 @@ I.prototype = /** @lends Sortable.prototype */
|
|
|
7488
7488
|
var n = this.options;
|
|
7489
7489
|
if (t === void 0)
|
|
7490
7490
|
return n[e];
|
|
7491
|
-
var o =
|
|
7491
|
+
var o = Bt.modifyOption(this, e, t);
|
|
7492
7492
|
typeof o < "u" ? n[e] = o : n[e] = t, e === "group" && Ei(n);
|
|
7493
7493
|
},
|
|
7494
7494
|
/**
|
|
@@ -7499,7 +7499,7 @@ I.prototype = /** @lends Sortable.prototype */
|
|
|
7499
7499
|
var e = this.el;
|
|
7500
7500
|
e[ue] = null, N(e, "mousedown", this._onTapStart), N(e, "touchstart", this._onTapStart), N(e, "pointerdown", this._onTapStart), this.nativeDraggable && (N(e, "dragover", this), N(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(t) {
|
|
7501
7501
|
t.removeAttribute("draggable");
|
|
7502
|
-
}), this._onDrop(), this._disableDelayedDragEvents(),
|
|
7502
|
+
}), this._onDrop(), this._disableDelayedDragEvents(), sn.splice(sn.indexOf(this.el), 1), this.el = e = null;
|
|
7503
7503
|
},
|
|
7504
7504
|
_hideClone: function() {
|
|
7505
7505
|
if (!Re) {
|
|
@@ -7523,9 +7523,9 @@ I.prototype = /** @lends Sortable.prototype */
|
|
|
7523
7523
|
function up(e) {
|
|
7524
7524
|
e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
|
|
7525
7525
|
}
|
|
7526
|
-
function
|
|
7526
|
+
function Ft(e, t, n, o, r, i, a, l) {
|
|
7527
7527
|
var c, p = e[ue], d = p.options.onMove, _;
|
|
7528
|
-
return window.CustomEvent && !ke && !
|
|
7528
|
+
return window.CustomEvent && !ke && !kt ? c = new CustomEvent("move", {
|
|
7529
7529
|
bubbles: !0,
|
|
7530
7530
|
cancelable: !0
|
|
7531
7531
|
}) : (c = document.createEvent("Event"), c.initEvent("move", !0, !0)), c.to = t, c.from = e, c.dragged = n, c.draggedRect = o, c.related = r || t, c.relatedRect = i || z(t), c.willInsertAfter = l, c.originalEvent = a, e.dispatchEvent(c), d && (_ = d.call(p, c, a)), _;
|
|
@@ -7547,10 +7547,10 @@ function dp(e, t, n) {
|
|
|
7547
7547
|
function fp(e, t, n, o, r, i, a, l) {
|
|
7548
7548
|
var c = o ? e.clientY : e.clientX, p = o ? n.height : n.width, d = o ? n.top : n.left, _ = o ? n.bottom : n.right, T = !1;
|
|
7549
7549
|
if (!a) {
|
|
7550
|
-
if (l &&
|
|
7550
|
+
if (l && zt < p * r) {
|
|
7551
7551
|
if (!Ot && (bt === 1 ? c > d + p * i / 2 : c < _ - p * i / 2) && (Ot = !0), Ot)
|
|
7552
7552
|
T = !0;
|
|
7553
|
-
else if (bt === 1 ? c < d +
|
|
7553
|
+
else if (bt === 1 ? c < d + zt : c > _ - zt)
|
|
7554
7554
|
return -bt;
|
|
7555
7555
|
} else if (c > d + p * (1 - r) / 2 && c < _ - p * (1 - r) / 2)
|
|
7556
7556
|
return hp(t);
|
|
@@ -7566,13 +7566,13 @@ function Tp(e) {
|
|
|
7566
7566
|
return o.toString(36);
|
|
7567
7567
|
}
|
|
7568
7568
|
function gp(e) {
|
|
7569
|
-
|
|
7569
|
+
ln.length = 0;
|
|
7570
7570
|
for (var t = e.getElementsByTagName("input"), n = t.length; n--; ) {
|
|
7571
7571
|
var o = t[n];
|
|
7572
|
-
o.checked &&
|
|
7572
|
+
o.checked && ln.push(o);
|
|
7573
7573
|
}
|
|
7574
7574
|
}
|
|
7575
|
-
function
|
|
7575
|
+
function Jt(e) {
|
|
7576
7576
|
return setTimeout(e, 0);
|
|
7577
7577
|
}
|
|
7578
7578
|
function qn(e) {
|
|
@@ -7595,7 +7595,7 @@ I.utils = {
|
|
|
7595
7595
|
toggleClass: ae,
|
|
7596
7596
|
clone: Ti,
|
|
7597
7597
|
index: pe,
|
|
7598
|
-
nextTick:
|
|
7598
|
+
nextTick: Jt,
|
|
7599
7599
|
cancelNextTick: qn,
|
|
7600
7600
|
detectDirection: vi,
|
|
7601
7601
|
getChild: ut
|
|
@@ -7609,14 +7609,14 @@ I.mount = function() {
|
|
|
7609
7609
|
t[0].constructor === Array && (t = t[0]), t.forEach(function(o) {
|
|
7610
7610
|
if (!o.prototype || !o.prototype.constructor)
|
|
7611
7611
|
throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(o));
|
|
7612
|
-
o.utils && (I.utils = Ee(Ee({}, I.utils), o.utils)),
|
|
7612
|
+
o.utils && (I.utils = Ee(Ee({}, I.utils), o.utils)), Bt.mount(o);
|
|
7613
7613
|
});
|
|
7614
7614
|
};
|
|
7615
7615
|
I.create = function(e, t) {
|
|
7616
7616
|
return new I(e, t);
|
|
7617
7617
|
};
|
|
7618
7618
|
I.version = J_;
|
|
7619
|
-
var W = [], Tt, Qn, Zn = !1, Vn, Yn,
|
|
7619
|
+
var W = [], Tt, Qn, Zn = !1, Vn, Yn, cn, gt;
|
|
7620
7620
|
function mp() {
|
|
7621
7621
|
function e() {
|
|
7622
7622
|
this.defaults = {
|
|
@@ -7639,26 +7639,26 @@ function mp() {
|
|
|
7639
7639
|
!this.options.dragOverBubble && !n.rootEl && this._handleAutoScroll(n);
|
|
7640
7640
|
},
|
|
7641
7641
|
drop: function() {
|
|
7642
|
-
this.sortable.nativeDraggable ? N(document, "dragover", this._handleAutoScroll) : (N(document, "pointermove", this._handleFallbackAutoScroll), N(document, "touchmove", this._handleFallbackAutoScroll), N(document, "mousemove", this._handleFallbackAutoScroll)), hr(),
|
|
7642
|
+
this.sortable.nativeDraggable ? N(document, "dragover", this._handleAutoScroll) : (N(document, "pointermove", this._handleFallbackAutoScroll), N(document, "touchmove", this._handleFallbackAutoScroll), N(document, "mousemove", this._handleFallbackAutoScroll)), hr(), qt(), ep();
|
|
7643
7643
|
},
|
|
7644
7644
|
nulling: function() {
|
|
7645
|
-
|
|
7645
|
+
cn = Qn = Tt = Zn = gt = Vn = Yn = null, W.length = 0;
|
|
7646
7646
|
},
|
|
7647
7647
|
_handleFallbackAutoScroll: function(t) {
|
|
7648
7648
|
this._handleAutoScroll(t, !0);
|
|
7649
7649
|
},
|
|
7650
7650
|
_handleAutoScroll: function(t, n) {
|
|
7651
7651
|
var o = this, r = (t.touches ? t.touches[0] : t).clientX, i = (t.touches ? t.touches[0] : t).clientY, a = document.elementFromPoint(r, i);
|
|
7652
|
-
if (
|
|
7652
|
+
if (cn = t, n || this.options.forceAutoScrollFallback || kt || ke || vt) {
|
|
7653
7653
|
Fn(t, this.options, a, n);
|
|
7654
7654
|
var l = Pe(a, !0);
|
|
7655
7655
|
Zn && (!gt || r !== Vn || i !== Yn) && (gt && hr(), gt = setInterval(function() {
|
|
7656
7656
|
var c = Pe(document.elementFromPoint(r, i), !0);
|
|
7657
|
-
c !== l && (l = c,
|
|
7657
|
+
c !== l && (l = c, qt()), Fn(t, o.options, c, n);
|
|
7658
7658
|
}, 10), Vn = r, Yn = i);
|
|
7659
7659
|
} else {
|
|
7660
7660
|
if (!this.options.bubbleScroll || Pe(a, !0) === ve()) {
|
|
7661
|
-
|
|
7661
|
+
qt();
|
|
7662
7662
|
return;
|
|
7663
7663
|
}
|
|
7664
7664
|
Fn(t, this.options, Pe(a, !1), !1);
|
|
@@ -7669,7 +7669,7 @@ function mp() {
|
|
|
7669
7669
|
initializeByDefault: !0
|
|
7670
7670
|
});
|
|
7671
7671
|
}
|
|
7672
|
-
function
|
|
7672
|
+
function qt() {
|
|
7673
7673
|
W.forEach(function(e) {
|
|
7674
7674
|
clearInterval(e.pid);
|
|
7675
7675
|
}), W = [];
|
|
@@ -7680,7 +7680,7 @@ function hr() {
|
|
|
7680
7680
|
var Fn = fi(function(e, t, n, o) {
|
|
7681
7681
|
if (t.scroll) {
|
|
7682
7682
|
var r = (e.touches ? e.touches[0] : e).clientX, i = (e.touches ? e.touches[0] : e).clientY, a = t.scrollSensitivity, l = t.scrollSpeed, c = ve(), p = !1, d;
|
|
7683
|
-
Qn !== n && (Qn = n,
|
|
7683
|
+
Qn !== n && (Qn = n, qt(), Tt = t.scroll, d = t.scrollFn, Tt === !0 && (Tt = Pe(n, !0)));
|
|
7684
7684
|
var _ = 0, T = Tt;
|
|
7685
7685
|
do {
|
|
7686
7686
|
var f = T, m = z(f), g = m.top, y = m.bottom, b = m.left, R = m.right, k = m.width, j = m.height, U = void 0, de = void 0, be = f.scrollWidth, C = f.scrollHeight, S = O(f), P = f.scrollLeft, X = f.scrollTop;
|
|
@@ -7690,9 +7690,9 @@ var Fn = fi(function(e, t, n, o) {
|
|
|
7690
7690
|
for (var L = 0; L <= _; L++)
|
|
7691
7691
|
W[L] || (W[L] = {});
|
|
7692
7692
|
(W[_].vx != x || W[_].vy != K || W[_].el !== f) && (W[_].el = f, W[_].vx = x, W[_].vy = K, clearInterval(W[_].pid), (x != 0 || K != 0) && (p = !0, W[_].pid = setInterval((function() {
|
|
7693
|
-
o && this.layer === 0 && I.active._onTouchMove(
|
|
7693
|
+
o && this.layer === 0 && I.active._onTouchMove(cn);
|
|
7694
7694
|
var D = W[this.layer].vy ? W[this.layer].vy * l : 0, oe = W[this.layer].vx ? W[this.layer].vx * l : 0;
|
|
7695
|
-
typeof d == "function" && d.call(I.dragged.parentNode[ue], oe, D, e,
|
|
7695
|
+
typeof d == "function" && d.call(I.dragged.parentNode[ue], oe, D, e, cn, W[this.layer].el) !== "continue" || hi(W[this.layer].el, oe, D);
|
|
7696
7696
|
}).bind({
|
|
7697
7697
|
layer: _
|
|
7698
7698
|
}), 24))), _++;
|
|
@@ -7748,10 +7748,10 @@ function vp(e) {
|
|
|
7748
7748
|
return e == null ? e : JSON.parse(JSON.stringify(e));
|
|
7749
7749
|
}
|
|
7750
7750
|
function Ep(e) {
|
|
7751
|
-
|
|
7751
|
+
un() && Pi(e);
|
|
7752
7752
|
}
|
|
7753
7753
|
function yp(e) {
|
|
7754
|
-
|
|
7754
|
+
un() ? lt(e) : no(e);
|
|
7755
7755
|
}
|
|
7756
7756
|
let Ii = null, Ci = null;
|
|
7757
7757
|
function Tr(e = null, t = null) {
|
|
@@ -7766,7 +7766,7 @@ function bp() {
|
|
|
7766
7766
|
const gr = Symbol("cloneElement");
|
|
7767
7767
|
function Op(...e) {
|
|
7768
7768
|
var t, n;
|
|
7769
|
-
const o = (t =
|
|
7769
|
+
const o = (t = un()) == null ? void 0 : t.proxy;
|
|
7770
7770
|
let r = null;
|
|
7771
7771
|
const i = e[0];
|
|
7772
7772
|
let [, a, l] = e;
|
|
@@ -7787,7 +7787,7 @@ function Op(...e) {
|
|
|
7787
7787
|
function f(C) {
|
|
7788
7788
|
const S = C.item[gr];
|
|
7789
7789
|
if (!V_(S)) {
|
|
7790
|
-
if (Rn(C.item),
|
|
7790
|
+
if (Rn(C.item), Kt(a)) {
|
|
7791
7791
|
const P = [...M(a)];
|
|
7792
7792
|
a.value = rr(P, C.newDraggableIndex, S);
|
|
7793
7793
|
return;
|
|
@@ -7801,7 +7801,7 @@ function Op(...e) {
|
|
|
7801
7801
|
Rn(L);
|
|
7802
7802
|
return;
|
|
7803
7803
|
}
|
|
7804
|
-
if (
|
|
7804
|
+
if (Kt(a)) {
|
|
7805
7805
|
const D = [...M(a)];
|
|
7806
7806
|
a.value = or(D, x);
|
|
7807
7807
|
return;
|
|
@@ -7814,7 +7814,7 @@ function Op(...e) {
|
|
|
7814
7814
|
return;
|
|
7815
7815
|
}
|
|
7816
7816
|
const { from: S, item: P, oldIndex: X, newIndex: x } = C;
|
|
7817
|
-
if (Rn(P), ir(S, P, X),
|
|
7817
|
+
if (Rn(P), ir(S, P, X), Kt(a)) {
|
|
7818
7818
|
const K = [...M(a)];
|
|
7819
7819
|
a.value = nr(K, X, x);
|
|
7820
7820
|
return;
|
|
@@ -8020,7 +8020,7 @@ const eo = [
|
|
|
8020
8020
|
ce(f, {
|
|
8021
8021
|
class: "x-handle cursor-move mr-3",
|
|
8022
8022
|
icon: M(aa),
|
|
8023
|
-
onMousedown: _[0] || (_[0] =
|
|
8023
|
+
onMousedown: _[0] || (_[0] = Ht(() => {
|
|
8024
8024
|
}, ["stop"]))
|
|
8025
8025
|
}, null, 8, ["icon"]),
|
|
8026
8026
|
Oe("div", {
|
|
@@ -8040,7 +8040,7 @@ const eo = [
|
|
|
8040
8040
|
lock: { type: Boolean }
|
|
8041
8041
|
},
|
|
8042
8042
|
setup(e) {
|
|
8043
|
-
const { t } =
|
|
8043
|
+
const { t } = dn(), n = e, o = $e([]), r = () => {
|
|
8044
8044
|
const _ = Ge();
|
|
8045
8045
|
if (!_) {
|
|
8046
8046
|
console.assert(!1);
|
|
@@ -8055,7 +8055,7 @@ const eo = [
|
|
|
8055
8055
|
const R = m, k = na[R.node.key];
|
|
8056
8056
|
if (k)
|
|
8057
8057
|
if (k.key.startsWith("globality_v")) {
|
|
8058
|
-
const { type: j } =
|
|
8058
|
+
const { type: j } = Lt.app.view;
|
|
8059
8059
|
j === "page" ? y = t("x-block-lib.page") : j === "comp" ? y = t("x-block-lib.comp") : console.assert(!1), y += " - " + t("x-runtime-lib." + R.event.name);
|
|
8060
8060
|
} else
|
|
8061
8061
|
y = t("x-runtime-lib." + k.name), y += " / " + R.node.alias, y += " - " + t("x-runtime-lib." + R.event.name);
|
|
@@ -8072,7 +8072,7 @@ const eo = [
|
|
|
8072
8072
|
};
|
|
8073
8073
|
lt(() => {
|
|
8074
8074
|
me.on("codeUpdate", r);
|
|
8075
|
-
}),
|
|
8075
|
+
}), Qt(() => {
|
|
8076
8076
|
me.off("codeUpdate", r);
|
|
8077
8077
|
});
|
|
8078
8078
|
let i = [];
|
|
@@ -8156,7 +8156,7 @@ const Mp = /* @__PURE__ */ Ai(Bp, [["render", Rp]]), xp = { class: "text-subtitl
|
|
|
8156
8156
|
lock: { type: Boolean }
|
|
8157
8157
|
},
|
|
8158
8158
|
setup(e) {
|
|
8159
|
-
const { t } =
|
|
8159
|
+
const { t } = dn(), n = ta(), { sysBarAvail: o } = Zi(), { backgroundColor1: r } = Ir(), i = e, a = ie(() => {
|
|
8160
8160
|
let d = "100%";
|
|
8161
8161
|
return n.mdAndUp.value && (d = "400px"), {
|
|
8162
8162
|
background: r.value,
|
|
@@ -8178,19 +8178,19 @@ const Mp = /* @__PURE__ */ Ai(Bp, [["render", Rp]]), xp = { class: "text-subtitl
|
|
|
8178
8178
|
return Q(), Ie(vr, null, [
|
|
8179
8179
|
ce(m, {
|
|
8180
8180
|
modelValue: M(p),
|
|
8181
|
-
"onUpdate:modelValue": _[3] || (_[3] = (b) =>
|
|
8181
|
+
"onUpdate:modelValue": _[3] || (_[3] = (b) => Kt(p) ? p.value = b : null),
|
|
8182
8182
|
transition: "scroll-x-reverse-transition",
|
|
8183
8183
|
persistent: "",
|
|
8184
8184
|
"no-click-animation": "",
|
|
8185
8185
|
fullscreen: "",
|
|
8186
8186
|
eager: "",
|
|
8187
|
-
onKeydown: _[4] || (_[4] = Vi(
|
|
8187
|
+
onKeydown: _[4] || (_[4] = Vi(Ht((b) => p.value = !1, ["stop", "prevent"]), ["esc"]))
|
|
8188
8188
|
}, {
|
|
8189
8189
|
default: at(() => [
|
|
8190
8190
|
Oe("div", {
|
|
8191
8191
|
class: "w-100 h-100 d-flex flex-row-reverse",
|
|
8192
|
-
onClick: _[1] || (_[1] =
|
|
8193
|
-
onContextmenu: _[2] || (_[2] =
|
|
8192
|
+
onClick: _[1] || (_[1] = Ht((b) => p.value = !1, ["self"])),
|
|
8193
|
+
onContextmenu: _[2] || (_[2] = Ht((b) => p.value = !1, ["self", "prevent"]))
|
|
8194
8194
|
}, [
|
|
8195
8195
|
Oe("div", {
|
|
8196
8196
|
class: "elevation-2",
|
|
@@ -8287,7 +8287,7 @@ function Up(e, t, n) {
|
|
|
8287
8287
|
function o({ name: r, callback: i }) {
|
|
8288
8288
|
e.registerToolboxCategoryCallback(r, i);
|
|
8289
8289
|
}
|
|
8290
|
-
t === "page" || t === "comp" ? n === "v1" && (o(
|
|
8290
|
+
t === "page" || t === "comp" ? n === "v1" && (o(nn), o(xe), o(Me)) : t === "func" ? n === "v1" && (o(Qr), o(zn), o(xe), o(Me)) : t === "flow" && n === "v1" && (o(u_), o(zn), o(xe), o(Me));
|
|
8291
8291
|
}
|
|
8292
8292
|
const Vp = { class: "position-relative w-100 h-100" }, Yp = /* @__PURE__ */ We({
|
|
8293
8293
|
__name: "index",
|
|
@@ -8347,7 +8347,7 @@ const Vp = { class: "position-relative w-100 h-100" }, Yp = /* @__PURE__ */ We({
|
|
|
8347
8347
|
_e.type === "attributes" && _e.attributeName === "style" && (k.value = _.getFlyout().isVisible());
|
|
8348
8348
|
});
|
|
8349
8349
|
}).observe(L, { attributes: !0 }), k.value = _.getFlyout().isVisible(), C(), S(), await no(), p("ready");
|
|
8350
|
-
}),
|
|
8350
|
+
}), Qt(() => {
|
|
8351
8351
|
k.value = !1;
|
|
8352
8352
|
}), Ta(d, () => {
|
|
8353
8353
|
_ && zi(_);
|
|
@@ -8387,7 +8387,7 @@ const Vp = { class: "position-relative w-100 h-100" }, Yp = /* @__PURE__ */ We({
|
|
|
8387
8387
|
};
|
|
8388
8388
|
return lt(() => {
|
|
8389
8389
|
window.addEventListener("keydown", P, !1);
|
|
8390
|
-
}),
|
|
8390
|
+
}), Qt(() => {
|
|
8391
8391
|
window.addEventListener("keydown", P, !1);
|
|
8392
8392
|
}), Fe(r, (L) => {
|
|
8393
8393
|
er(L);
|
|
@@ -8456,7 +8456,7 @@ async function Jp(e) {
|
|
|
8456
8456
|
const qp = { install: Fp };
|
|
8457
8457
|
export {
|
|
8458
8458
|
Yp as XBlockly,
|
|
8459
|
-
|
|
8459
|
+
Lt as blocklyState,
|
|
8460
8460
|
qp as default,
|
|
8461
8461
|
Fp as install,
|
|
8462
8462
|
Jp as loadLocaleMessageBlock
|