vue-wswg-editor 0.0.18 → 0.0.19
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { shallowRef as Rt, ref as j, markRaw as Jt, defineComponent as _, computed as Y, onMounted as Gt, onBeforeUnmount as rr, createElementBlock as X, openBlock as o, createElementVNode as i, toDisplayString as U, createVNode as h, unref as R, withDirectives as lt, vModelText as Zt, Fragment as tt, renderList as nt, createBlock as ut, mergeModels as Tt, useModel as rt, onBeforeMount as $t, normalizeClass as I, createCommentVNode as G, vModelSelect as ne, watch as Xt, withModifiers as Pt, createTextVNode as oe, resolveDynamicComponent as Yt, mergeProps as kt, vModelDynamic as _r, vModelCheckbox as Pr, vModelRadio as tf, renderSlot as
|
|
1
|
+
import { shallowRef as Rt, ref as j, markRaw as Jt, defineComponent as _, computed as Y, onMounted as Gt, onBeforeUnmount as rr, createElementBlock as X, openBlock as o, createElementVNode as i, toDisplayString as U, createVNode as h, unref as R, withDirectives as lt, vModelText as Zt, Fragment as tt, renderList as nt, createBlock as ut, mergeModels as Tt, useModel as rt, onBeforeMount as $t, normalizeClass as I, createCommentVNode as G, vModelSelect as ne, watch as Xt, withModifiers as Pt, createTextVNode as oe, resolveDynamicComponent as Yt, mergeProps as kt, vModelDynamic as _r, vModelCheckbox as Pr, vModelRadio as tf, renderSlot as xr, getCurrentScope as ef, onScopeDispose as rf, toValue as qt, useTemplateRef as ff, nextTick as It, withCtx as Lr, normalizeStyle as mr, createApp as nf, h as Dt } from "vue";
|
|
2
2
|
const nv = {
|
|
3
3
|
custom: (t = {}) => ({
|
|
4
4
|
type: "custom",
|
|
@@ -380,7 +380,7 @@ function Wf(t) {
|
|
|
380
380
|
async function wf(t) {
|
|
381
381
|
await Xf(), t && (await cf(), await Tf(), await Pf()), await Af();
|
|
382
382
|
}
|
|
383
|
-
async function
|
|
383
|
+
async function me(t, e = !0) {
|
|
384
384
|
try {
|
|
385
385
|
await pf(), await of(t), await wf(e);
|
|
386
386
|
} catch (r) {
|
|
@@ -560,7 +560,7 @@ const jf = /* @__PURE__ */ _({
|
|
|
560
560
|
r[f] = n;
|
|
561
561
|
return r;
|
|
562
562
|
}, Of = /* @__PURE__ */ Wt(jf, [["__scopeId", "data-v-72eeade4"]]);
|
|
563
|
-
function
|
|
563
|
+
function xf(t, e) {
|
|
564
564
|
return o(), X("svg", {
|
|
565
565
|
xmlns: "http://www.w3.org/2000/svg",
|
|
566
566
|
fill: "none",
|
|
@@ -594,7 +594,7 @@ function Lf(t, e) {
|
|
|
594
594
|
})
|
|
595
595
|
]);
|
|
596
596
|
}
|
|
597
|
-
function
|
|
597
|
+
function mf(t, e) {
|
|
598
598
|
return o(), X("svg", {
|
|
599
599
|
xmlns: "http://www.w3.org/2000/svg",
|
|
600
600
|
fill: "none",
|
|
@@ -991,15 +991,15 @@ function jt(t) {
|
|
|
991
991
|
if (typeof window < "u" && window.navigator)
|
|
992
992
|
return !!/* @__PURE__ */ navigator.userAgent.match(t);
|
|
993
993
|
}
|
|
994
|
-
var
|
|
994
|
+
var xt = jt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Xe = jt(/Edge/i), cr = jt(/firefox/i), le = jt(/safari/i) && !jt(/chrome/i) && !jt(/android/i), ar = jt(/iP(ad|od|hone)/i), Jr = jt(/chrome/i) && jt(/android/i), Dr = {
|
|
995
995
|
capture: !1,
|
|
996
996
|
passive: !1
|
|
997
997
|
};
|
|
998
998
|
function D(t, e, r) {
|
|
999
|
-
t.addEventListener(e, r, !
|
|
999
|
+
t.addEventListener(e, r, !xt && Dr);
|
|
1000
1000
|
}
|
|
1001
1001
|
function J(t, e, r) {
|
|
1002
|
-
t.removeEventListener(e, r, !
|
|
1002
|
+
t.removeEventListener(e, r, !xt && Dr);
|
|
1003
1003
|
}
|
|
1004
1004
|
function Ve(t, e) {
|
|
1005
1005
|
if (e) {
|
|
@@ -1041,7 +1041,7 @@ function pt(t, e, r) {
|
|
|
1041
1041
|
t.className = (f + (r ? " " + e : "")).replace(sr, " ");
|
|
1042
1042
|
}
|
|
1043
1043
|
}
|
|
1044
|
-
function
|
|
1044
|
+
function m(t, e, r) {
|
|
1045
1045
|
var f = t && t.style;
|
|
1046
1046
|
if (f) {
|
|
1047
1047
|
if (r === void 0)
|
|
@@ -1055,7 +1055,7 @@ function Et(t, e) {
|
|
|
1055
1055
|
r = t;
|
|
1056
1056
|
else
|
|
1057
1057
|
do {
|
|
1058
|
-
var f =
|
|
1058
|
+
var f = m(t, "transform");
|
|
1059
1059
|
f && f !== "none" && (r = f + " " + r);
|
|
1060
1060
|
} while (!e && (t = t.parentNode));
|
|
1061
1061
|
var n = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
@@ -1078,11 +1078,11 @@ function wt() {
|
|
|
1078
1078
|
function Q(t, e, r, f, n) {
|
|
1079
1079
|
if (!(!t.getBoundingClientRect && t !== window)) {
|
|
1080
1080
|
var v, l, a, u, d, P, b;
|
|
1081
|
-
if (t !== window && t.parentNode && t !== wt() ? (v = t.getBoundingClientRect(), l = v.top, a = v.left, u = v.bottom, d = v.right, P = v.height, b = v.width) : (l = 0, a = 0, u = window.innerHeight, d = window.innerWidth, P = window.innerHeight, b = window.innerWidth), (e || r) && t !== window && (n = n || t.parentNode, !
|
|
1081
|
+
if (t !== window && t.parentNode && t !== wt() ? (v = t.getBoundingClientRect(), l = v.top, a = v.left, u = v.bottom, d = v.right, P = v.height, b = v.width) : (l = 0, a = 0, u = window.innerHeight, d = window.innerWidth, P = window.innerHeight, b = window.innerWidth), (e || r) && t !== window && (n = n || t.parentNode, !xt))
|
|
1082
1082
|
do
|
|
1083
|
-
if (n && n.getBoundingClientRect && (
|
|
1083
|
+
if (n && n.getBoundingClientRect && (m(n, "transform") !== "none" || r && m(n, "position") !== "static")) {
|
|
1084
1084
|
var p = n.getBoundingClientRect();
|
|
1085
|
-
l -= p.top + parseInt(
|
|
1085
|
+
l -= p.top + parseInt(m(n, "border-top-width")), a -= p.left + parseInt(m(n, "border-left-width")), u = l + v.height, d = a + v.width;
|
|
1086
1086
|
break;
|
|
1087
1087
|
}
|
|
1088
1088
|
while (n = n.parentNode);
|
|
@@ -1111,7 +1111,7 @@ function Ar(t, e, r) {
|
|
|
1111
1111
|
}
|
|
1112
1112
|
function Qt(t, e, r, f) {
|
|
1113
1113
|
for (var n = 0, v = 0, l = t.children; v < l.length; ) {
|
|
1114
|
-
if (l[v].style.display !== "none" && l[v] !==
|
|
1114
|
+
if (l[v].style.display !== "none" && l[v] !== x.ghost && (f || l[v] !== x.dragged) && At(l[v], r.draggable, t, !1)) {
|
|
1115
1115
|
if (n === e)
|
|
1116
1116
|
return l[v];
|
|
1117
1117
|
n++;
|
|
@@ -1121,7 +1121,7 @@ function Qt(t, e, r, f) {
|
|
|
1121
1121
|
return null;
|
|
1122
1122
|
}
|
|
1123
1123
|
function lr(t, e) {
|
|
1124
|
-
for (var r = t.lastElementChild; r && (r ===
|
|
1124
|
+
for (var r = t.lastElementChild; r && (r === x.ghost || m(r, "display") === "none" || e && !Ve(r, e)); )
|
|
1125
1125
|
r = r.previousElementSibling;
|
|
1126
1126
|
return r || null;
|
|
1127
1127
|
}
|
|
@@ -1130,7 +1130,7 @@ function ct(t, e) {
|
|
|
1130
1130
|
if (!t || !t.parentNode)
|
|
1131
1131
|
return -1;
|
|
1132
1132
|
for (; t = t.previousElementSibling; )
|
|
1133
|
-
t.nodeName.toUpperCase() !== "TEMPLATE" && t !==
|
|
1133
|
+
t.nodeName.toUpperCase() !== "TEMPLATE" && t !== x.clone && (!e || Ve(t, e)) && r++;
|
|
1134
1134
|
return r;
|
|
1135
1135
|
}
|
|
1136
1136
|
function Tr(t) {
|
|
@@ -1155,7 +1155,7 @@ function Nt(t, e) {
|
|
|
1155
1155
|
var r = t, f = !1;
|
|
1156
1156
|
do
|
|
1157
1157
|
if (r.clientWidth < r.scrollWidth || r.clientHeight < r.scrollHeight) {
|
|
1158
|
-
var n =
|
|
1158
|
+
var n = m(r);
|
|
1159
1159
|
if (r.clientWidth < r.scrollWidth && (n.overflowX == "auto" || n.overflowX == "scroll") || r.clientHeight < r.scrollHeight && (n.overflowY == "auto" || n.overflowY == "scroll")) {
|
|
1160
1160
|
if (!r.getBoundingClientRect || r === document.body) return wt();
|
|
1161
1161
|
if (f || e) return r;
|
|
@@ -1213,7 +1213,7 @@ function $f() {
|
|
|
1213
1213
|
if (t = [], !!this.options.animation) {
|
|
1214
1214
|
var f = [].slice.call(this.el.children);
|
|
1215
1215
|
f.forEach(function(n) {
|
|
1216
|
-
if (!(
|
|
1216
|
+
if (!(m(n, "display") === "none" || n === x.ghost)) {
|
|
1217
1217
|
t.push({
|
|
1218
1218
|
target: n,
|
|
1219
1219
|
rect: Q(n)
|
|
@@ -1255,10 +1255,10 @@ function $f() {
|
|
|
1255
1255
|
},
|
|
1256
1256
|
animate: function(f, n, v, l) {
|
|
1257
1257
|
if (l) {
|
|
1258
|
-
|
|
1258
|
+
m(f, "transition", ""), m(f, "transform", "");
|
|
1259
1259
|
var a = Et(this.el), u = a && a.a, d = a && a.d, P = (n.left - v.left) / (u || 1), b = (n.top - v.top) / (d || 1);
|
|
1260
|
-
f.animatingX = !!P, f.animatingY = !!b,
|
|
1261
|
-
|
|
1260
|
+
f.animatingX = !!P, f.animatingY = !!b, m(f, "transform", "translate3d(" + P + "px," + b + "px,0)"), this.forRepaintDummy = _f(f), m(f, "transition", "transform " + l + "ms" + (this.options.easing ? " " + this.options.easing : "")), m(f, "transform", "translate3d(0,0,0)"), typeof f.animated == "number" && clearTimeout(f.animated), f.animated = setTimeout(function() {
|
|
1261
|
+
m(f, "transition", ""), m(f, "transform", ""), f.animated = !1, f.animatingX = !1, f.animatingY = !1;
|
|
1262
1262
|
}, l);
|
|
1263
1263
|
}
|
|
1264
1264
|
}
|
|
@@ -1326,7 +1326,7 @@ function en(t) {
|
|
|
1326
1326
|
var e = t.sortable, r = t.rootEl, f = t.name, n = t.targetEl, v = t.cloneEl, l = t.toEl, a = t.fromEl, u = t.oldIndex, d = t.newIndex, P = t.oldDraggableIndex, b = t.newDraggableIndex, p = t.originalEvent, c = t.putSortable, s = t.extraEventProperties;
|
|
1327
1327
|
if (e = e || r && r[bt], !!e) {
|
|
1328
1328
|
var A, T = e.options, W = "on" + f.charAt(0).toUpperCase() + f.substr(1);
|
|
1329
|
-
window.CustomEvent && !
|
|
1329
|
+
window.CustomEvent && !xt && !Xe ? A = new CustomEvent(f, {
|
|
1330
1330
|
bubbles: !0,
|
|
1331
1331
|
cancelable: !0
|
|
1332
1332
|
}) : (A = document.createEvent("Event"), A.initEvent(f, !0, !0)), A.to = l || r, A.from = a || r, A.item = n || r, A.clone = v, A.oldIndex = u, A.newIndex = d, A.oldDraggableIndex = P, A.newDraggableIndex = b, A.originalEvent = p, A.pullMode = c ? c.lastPutMode : void 0;
|
|
@@ -1338,7 +1338,7 @@ function en(t) {
|
|
|
1338
1338
|
}
|
|
1339
1339
|
var rn = ["evt"], dt = function(e, r) {
|
|
1340
1340
|
var f = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = f.evt, v = Mf(f, rn);
|
|
1341
|
-
ie.pluginEvent.bind(
|
|
1341
|
+
ie.pluginEvent.bind(x)(e, r, St({
|
|
1342
1342
|
dragEl: S,
|
|
1343
1343
|
parentEl: M,
|
|
1344
1344
|
ghostEl: N,
|
|
@@ -1346,10 +1346,10 @@ var rn = ["evt"], dt = function(e, r) {
|
|
|
1346
1346
|
nextEl: ht,
|
|
1347
1347
|
lastDownEl: He,
|
|
1348
1348
|
cloneEl: C,
|
|
1349
|
-
cloneHidden:
|
|
1349
|
+
cloneHidden: mt,
|
|
1350
1350
|
dragStarted: te,
|
|
1351
1351
|
putSortable: et,
|
|
1352
|
-
activeSortable:
|
|
1352
|
+
activeSortable: x.active,
|
|
1353
1353
|
originalEvent: n,
|
|
1354
1354
|
oldIndex: Mt,
|
|
1355
1355
|
oldDraggableIndex: de,
|
|
@@ -1358,10 +1358,10 @@ var rn = ["evt"], dt = function(e, r) {
|
|
|
1358
1358
|
hideGhostForTarget: Cr,
|
|
1359
1359
|
unhideGhostForTarget: Mr,
|
|
1360
1360
|
cloneNowHidden: function() {
|
|
1361
|
-
|
|
1361
|
+
mt = !0;
|
|
1362
1362
|
},
|
|
1363
1363
|
cloneNowShown: function() {
|
|
1364
|
-
|
|
1364
|
+
mt = !1;
|
|
1365
1365
|
},
|
|
1366
1366
|
dispatchSortableEvent: function(a) {
|
|
1367
1367
|
at({
|
|
@@ -1384,15 +1384,15 @@ function at(t) {
|
|
|
1384
1384
|
newDraggableIndex: Lt
|
|
1385
1385
|
}, t));
|
|
1386
1386
|
}
|
|
1387
|
-
var S, M, N, Z, ht, He, C,
|
|
1387
|
+
var S, M, N, Z, ht, He, C, mt, Mt, ot, de, Lt, se, et, Ct = !1, Ne = !1, ke = [], Kt, st, Re, Ge, Wr, wr, te, Ft, be, pe = !1, Ae = !1, je, ft, Be = [], $e = !1, qe = [], Ke = typeof document < "u", Te = ar, Sr = Xe || xt ? "cssFloat" : "float", fn = Ke && !Jr && !ar && "draggable" in document.createElement("div"), Br = function() {
|
|
1388
1388
|
if (Ke) {
|
|
1389
|
-
if (
|
|
1389
|
+
if (xt)
|
|
1390
1390
|
return !1;
|
|
1391
1391
|
var t = document.createElement("x");
|
|
1392
1392
|
return t.style.cssText = "pointer-events:auto", t.style.pointerEvents === "auto";
|
|
1393
1393
|
}
|
|
1394
1394
|
}(), Fr = function(e, r) {
|
|
1395
|
-
var f =
|
|
1395
|
+
var f = m(e), n = parseInt(f.width) - parseInt(f.paddingLeft) - parseInt(f.paddingRight) - parseInt(f.borderLeftWidth) - parseInt(f.borderRightWidth), v = Qt(e, 0, r), l = Qt(e, 1, r), a = v && m(v), u = l && m(l), d = a && parseInt(a.marginLeft) + parseInt(a.marginRight) + Q(v).width, P = u && parseInt(u.marginLeft) + parseInt(u.marginRight) + Q(l).width;
|
|
1396
1396
|
if (f.display === "flex")
|
|
1397
1397
|
return f.flexDirection === "column" || f.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
1398
1398
|
if (f.display === "grid")
|
|
@@ -1436,9 +1436,9 @@ var S, M, N, Z, ht, He, C, xt, Mt, ot, de, Lt, se, et, Ct = !1, Ne = !1, ke = []
|
|
|
1436
1436
|
name: n
|
|
1437
1437
|
}), f.name = n.name, f.checkPull = r(n.pull, !0), f.checkPut = r(n.put), f.revertClone = n.revertClone, e.group = f;
|
|
1438
1438
|
}, Cr = function() {
|
|
1439
|
-
!Br && N &&
|
|
1439
|
+
!Br && N && m(N, "display", "none");
|
|
1440
1440
|
}, Mr = function() {
|
|
1441
|
-
!Br && N &&
|
|
1441
|
+
!Br && N && m(N, "display", "");
|
|
1442
1442
|
};
|
|
1443
1443
|
Ke && !Jr && document.addEventListener("click", function(t) {
|
|
1444
1444
|
if (Ne)
|
|
@@ -1458,7 +1458,7 @@ var gt = function(e) {
|
|
|
1458
1458
|
}, an = function(e) {
|
|
1459
1459
|
S && S.parentNode[bt]._isOutsideThisEl(e.target);
|
|
1460
1460
|
};
|
|
1461
|
-
function
|
|
1461
|
+
function x(t, e) {
|
|
1462
1462
|
if (!(t && t.nodeType && t.nodeType === 1))
|
|
1463
1463
|
throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));
|
|
1464
1464
|
this.el = t, this.options = e = Ot({}, e), t[bt] = this;
|
|
@@ -1505,7 +1505,7 @@ function m(t, e) {
|
|
|
1505
1505
|
y: 0
|
|
1506
1506
|
},
|
|
1507
1507
|
// Disabled on Safari: #1571; Enabled on Safari IOS: #2244
|
|
1508
|
-
supportPointer:
|
|
1508
|
+
supportPointer: x.supportPointer !== !1 && "PointerEvent" in window && (!le || ar),
|
|
1509
1509
|
emptyInsertThreshold: 5
|
|
1510
1510
|
};
|
|
1511
1511
|
ie.initializePlugins(this, t, r);
|
|
@@ -1516,9 +1516,9 @@ function m(t, e) {
|
|
|
1516
1516
|
n.charAt(0) === "_" && typeof this[n] == "function" && (this[n] = this[n].bind(this));
|
|
1517
1517
|
this.nativeDraggable = e.forceFallback ? !1 : fn, this.nativeDraggable && (this.options.touchStartThreshold = 1), e.supportPointer ? D(t, "pointerdown", this._onTapStart) : (D(t, "mousedown", this._onTapStart), D(t, "touchstart", this._onTapStart)), this.nativeDraggable && (D(t, "dragover", this), D(t, "dragenter", this)), ke.push(this.el), e.store && e.store.get && this.sort(e.store.get(this) || []), Ot(this, $f());
|
|
1518
1518
|
}
|
|
1519
|
-
|
|
1519
|
+
x.prototype = /** @lends Sortable.prototype */
|
|
1520
1520
|
{
|
|
1521
|
-
constructor:
|
|
1521
|
+
constructor: x,
|
|
1522
1522
|
_isOutsideThisEl: function(e) {
|
|
1523
1523
|
!this.el.contains(e) && e !== this.el && (Ft = null);
|
|
1524
1524
|
},
|
|
@@ -1567,14 +1567,14 @@ m.prototype = /** @lends Sortable.prototype */
|
|
|
1567
1567
|
var n = this, v = n.el, l = n.options, a = v.ownerDocument, u;
|
|
1568
1568
|
if (f && !S && f.parentNode === v) {
|
|
1569
1569
|
var d = Q(f);
|
|
1570
|
-
if (Z = v, S = f, M = S.parentNode, ht = S.nextSibling, He = f, se = l.group,
|
|
1570
|
+
if (Z = v, S = f, M = S.parentNode, ht = S.nextSibling, He = f, se = l.group, x.dragged = S, Kt = {
|
|
1571
1571
|
target: S,
|
|
1572
1572
|
clientX: (r || e).clientX,
|
|
1573
1573
|
clientY: (r || e).clientY
|
|
1574
1574
|
}, Wr = Kt.clientX - d.left, wr = Kt.clientY - d.top, this._lastX = (r || e).clientX, this._lastY = (r || e).clientY, S.style["will-change"] = "all", u = function() {
|
|
1575
1575
|
if (dt("delayEnded", n, {
|
|
1576
1576
|
evt: e
|
|
1577
|
-
}),
|
|
1577
|
+
}), x.eventCanceled) {
|
|
1578
1578
|
n._onDrop();
|
|
1579
1579
|
return;
|
|
1580
1580
|
}
|
|
@@ -1587,8 +1587,8 @@ m.prototype = /** @lends Sortable.prototype */
|
|
|
1587
1587
|
gr(S, P.trim(), Fe);
|
|
1588
1588
|
}), D(a, "dragover", gt), D(a, "mousemove", gt), D(a, "touchmove", gt), l.supportPointer ? (D(a, "pointerup", n._onDrop), !this.nativeDraggable && D(a, "pointercancel", n._onDrop)) : (D(a, "mouseup", n._onDrop), D(a, "touchend", n._onDrop), D(a, "touchcancel", n._onDrop)), cr && this.nativeDraggable && (this.options.touchStartThreshold = 4, S.draggable = !0), dt("delayStart", this, {
|
|
1589
1589
|
evt: e
|
|
1590
|
-
}), l.delay && (!l.delayOnTouchOnly || r) && (!this.nativeDraggable || !(Xe ||
|
|
1591
|
-
if (
|
|
1590
|
+
}), l.delay && (!l.delayOnTouchOnly || r) && (!this.nativeDraggable || !(Xe || xt))) {
|
|
1591
|
+
if (x.eventCanceled) {
|
|
1592
1592
|
this._onDrop();
|
|
1593
1593
|
return;
|
|
1594
1594
|
}
|
|
@@ -1623,7 +1623,7 @@ m.prototype = /** @lends Sortable.prototype */
|
|
|
1623
1623
|
evt: r
|
|
1624
1624
|
}), this.nativeDraggable && D(document, "dragover", an);
|
|
1625
1625
|
var f = this.options;
|
|
1626
|
-
!e && pt(S, f.dragClass, !1), pt(S, f.ghostClass, !0),
|
|
1626
|
+
!e && pt(S, f.dragClass, !1), pt(S, f.ghostClass, !0), x.active = this, e && this._appendGhost(), at({
|
|
1627
1627
|
sortable: this,
|
|
1628
1628
|
name: "start",
|
|
1629
1629
|
originalEvent: r
|
|
@@ -1656,7 +1656,7 @@ m.prototype = /** @lends Sortable.prototype */
|
|
|
1656
1656
|
_onTouchMove: function(e) {
|
|
1657
1657
|
if (Kt) {
|
|
1658
1658
|
var r = this.options, f = r.fallbackTolerance, n = r.fallbackOffset, v = e.touches ? e.touches[0] : e, l = N && Et(N, !0), a = N && l && l.a, u = N && l && l.d, d = Te && ft && Tr(ft), P = (v.clientX - Kt.clientX + n.x) / (a || 1) + (d ? d[0] - Be[0] : 0) / (a || 1), b = (v.clientY - Kt.clientY + n.y) / (u || 1) + (d ? d[1] - Be[1] : 0) / (u || 1);
|
|
1659
|
-
if (!
|
|
1659
|
+
if (!x.active && !Ct) {
|
|
1660
1660
|
if (f && Math.max(Math.abs(v.clientX - this._lastX), Math.abs(v.clientY - this._lastY)) < f)
|
|
1661
1661
|
return;
|
|
1662
1662
|
this._onDragStart(e, !0);
|
|
@@ -1671,7 +1671,7 @@ m.prototype = /** @lends Sortable.prototype */
|
|
|
1671
1671
|
f: b
|
|
1672
1672
|
};
|
|
1673
1673
|
var p = "matrix(".concat(l.a, ",").concat(l.b, ",").concat(l.c, ",").concat(l.d, ",").concat(l.e, ",").concat(l.f, ")");
|
|
1674
|
-
|
|
1674
|
+
m(N, "webkitTransform", p), m(N, "mozTransform", p), m(N, "msTransform", p), m(N, "transform", p), Re = P, Ge = b, st = v;
|
|
1675
1675
|
}
|
|
1676
1676
|
e.cancelable && e.preventDefault();
|
|
1677
1677
|
}
|
|
@@ -1680,31 +1680,31 @@ m.prototype = /** @lends Sortable.prototype */
|
|
|
1680
1680
|
if (!N) {
|
|
1681
1681
|
var e = this.options.fallbackOnBody ? document.body : Z, r = Q(S, !0, Te, !0, e), f = this.options;
|
|
1682
1682
|
if (Te) {
|
|
1683
|
-
for (ft = e;
|
|
1683
|
+
for (ft = e; m(ft, "position") === "static" && m(ft, "transform") === "none" && ft !== document; )
|
|
1684
1684
|
ft = ft.parentNode;
|
|
1685
1685
|
ft !== document.body && ft !== document.documentElement ? (ft === document && (ft = wt()), r.top += ft.scrollTop, r.left += ft.scrollLeft) : ft = wt(), Be = Tr(ft);
|
|
1686
1686
|
}
|
|
1687
|
-
N = S.cloneNode(!0), pt(N, f.ghostClass, !1), pt(N, f.fallbackClass, !0), pt(N, f.dragClass, !0),
|
|
1687
|
+
N = S.cloneNode(!0), pt(N, f.ghostClass, !1), pt(N, f.fallbackClass, !0), pt(N, f.dragClass, !0), m(N, "transition", ""), m(N, "transform", ""), m(N, "box-sizing", "border-box"), m(N, "margin", 0), m(N, "top", r.top), m(N, "left", r.left), m(N, "width", r.width), m(N, "height", r.height), m(N, "opacity", "0.8"), m(N, "position", Te ? "absolute" : "fixed"), m(N, "zIndex", "100000"), m(N, "pointerEvents", "none"), x.ghost = N, e.appendChild(N), m(N, "transform-origin", Wr / parseInt(N.style.width) * 100 + "% " + wr / parseInt(N.style.height) * 100 + "%");
|
|
1688
1688
|
}
|
|
1689
1689
|
},
|
|
1690
1690
|
_onDragStart: function(e, r) {
|
|
1691
1691
|
var f = this, n = e.dataTransfer, v = f.options;
|
|
1692
1692
|
if (dt("dragStart", this, {
|
|
1693
1693
|
evt: e
|
|
1694
|
-
}),
|
|
1694
|
+
}), x.eventCanceled) {
|
|
1695
1695
|
this._onDrop();
|
|
1696
1696
|
return;
|
|
1697
1697
|
}
|
|
1698
|
-
dt("setupClone", this),
|
|
1699
|
-
dt("clone", f), !
|
|
1698
|
+
dt("setupClone", this), x.eventCanceled || (C = Rr(S), C.removeAttribute("id"), C.draggable = !1, C.style["will-change"] = "", this._hideClone(), pt(C, this.options.chosenClass, !1), x.clone = C), f.cloneId = Oe(function() {
|
|
1699
|
+
dt("clone", f), !x.eventCanceled && (f.options.removeCloneOnHide || Z.insertBefore(C, S), f._hideClone(), at({
|
|
1700
1700
|
sortable: f,
|
|
1701
1701
|
name: "clone"
|
|
1702
1702
|
}));
|
|
1703
|
-
}), !r && pt(S, v.dragClass, !0), r ? (Ne = !0, f._loopId = setInterval(f._emulateDragOver, 50)) : (J(document, "mouseup", f._onDrop), J(document, "touchend", f._onDrop), J(document, "touchcancel", f._onDrop), n && (n.effectAllowed = "move", v.setData && v.setData.call(f, n, S)), D(document, "drop", f),
|
|
1703
|
+
}), !r && pt(S, v.dragClass, !0), r ? (Ne = !0, f._loopId = setInterval(f._emulateDragOver, 50)) : (J(document, "mouseup", f._onDrop), J(document, "touchend", f._onDrop), J(document, "touchcancel", f._onDrop), n && (n.effectAllowed = "move", v.setData && v.setData.call(f, n, S)), D(document, "drop", f), m(S, "transform", "translateZ(0)")), Ct = !0, f._dragStartId = Oe(f._dragStarted.bind(f, r, e)), D(document, "selectstart", f), te = !0, window.getSelection().removeAllRanges(), le && m(document.body, "user-select", "none");
|
|
1704
1704
|
},
|
|
1705
1705
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
1706
1706
|
_onDragOver: function(e) {
|
|
1707
|
-
var r = this.el, f = e.target, n, v, l, a = this.options, u = a.group, d =
|
|
1707
|
+
var r = this.el, f = e.target, n, v, l, a = this.options, u = a.group, d = x.active, P = se === u, b = a.sort, p = et || d, c, s = this, A = !1;
|
|
1708
1708
|
if ($e) return;
|
|
1709
1709
|
function T(yt, _t) {
|
|
1710
1710
|
dt(yt, s, St({
|
|
@@ -1730,7 +1730,7 @@ m.prototype = /** @lends Sortable.prototype */
|
|
|
1730
1730
|
function y(yt) {
|
|
1731
1731
|
return T("dragOverCompleted", {
|
|
1732
1732
|
insertion: yt
|
|
1733
|
-
}), yt && (P ? d._hideClone() : d._showClone(s), s !== p && (pt(S, et ? et.options.ghostClass : d.options.ghostClass, !1), pt(S, a.ghostClass, !0)), et !== s && s !==
|
|
1733
|
+
}), yt && (P ? d._hideClone() : d._showClone(s), s !== p && (pt(S, et ? et.options.ghostClass : d.options.ghostClass, !1), pt(S, a.ghostClass, !0)), et !== s && s !== x.active ? et = s : s === x.active && et && (et = null), p === s && (s._ignoreWhileAnimating = f), s.animateAll(function() {
|
|
1734
1734
|
T("dragOverAnimationComplete"), s._ignoreWhileAnimating = null;
|
|
1735
1735
|
}), s !== p && (p.animateAll(), p._ignoreWhileAnimating = null)), (f === S && !S.animated || f === r && !f.animated) && (Ft = null), !a.dragoverBubble && !e.rootEl && f !== document && (S.parentNode[bt]._isOutsideThisEl(e.target), !yt && gt(e)), !a.dragoverBubble && e.stopPropagation && e.stopPropagation(), A = !0;
|
|
1736
1736
|
}
|
|
@@ -1744,13 +1744,13 @@ m.prototype = /** @lends Sortable.prototype */
|
|
|
1744
1744
|
originalEvent: e
|
|
1745
1745
|
});
|
|
1746
1746
|
}
|
|
1747
|
-
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), f = At(f, a.draggable, r, !0), T("dragOver"),
|
|
1747
|
+
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), f = At(f, a.draggable, r, !0), T("dragOver"), x.eventCanceled) return A;
|
|
1748
1748
|
if (S.contains(e.target) || f.animated && f.animatingX && f.animatingY || s._ignoreWhileAnimating === f)
|
|
1749
1749
|
return y(!1);
|
|
1750
1750
|
if (Ne = !1, d && !a.disabled && (P ? b || (l = M !== Z) : et === this || (this.lastPutMode = se.checkPull(this, d, S, e)) && u.checkPut(this, d, S, e))) {
|
|
1751
|
-
if (c = this._getDirection(e, f) === "vertical", n = Q(S), T("dragOverValid"),
|
|
1751
|
+
if (c = this._getDirection(e, f) === "vertical", n = Q(S), T("dragOverValid"), x.eventCanceled) return A;
|
|
1752
1752
|
if (l)
|
|
1753
|
-
return M = Z, W(), this._hideClone(), T("revert"),
|
|
1753
|
+
return M = Z, W(), this._hideClone(), T("revert"), x.eventCanceled || (ht ? Z.insertBefore(S, ht) : Z.appendChild(S)), y(!0);
|
|
1754
1754
|
var z = lr(r, a.draggable);
|
|
1755
1755
|
if (!z || bn(e, c, this) && !z.animated) {
|
|
1756
1756
|
if (z === S)
|
|
@@ -1772,7 +1772,7 @@ m.prototype = /** @lends Sortable.prototype */
|
|
|
1772
1772
|
var g = ct(S);
|
|
1773
1773
|
do
|
|
1774
1774
|
g -= H, F = M.children[g];
|
|
1775
|
-
while (F && (
|
|
1775
|
+
while (F && (m(F, "display") === "none" || F === N));
|
|
1776
1776
|
}
|
|
1777
1777
|
if (H === 0 || F === f)
|
|
1778
1778
|
return y(!1);
|
|
@@ -1800,11 +1800,11 @@ m.prototype = /** @lends Sortable.prototype */
|
|
|
1800
1800
|
var r = this.el, f = this.options;
|
|
1801
1801
|
if (ot = ct(S), Lt = ct(S, f.draggable), dt("drop", this, {
|
|
1802
1802
|
evt: e
|
|
1803
|
-
}), M = S && S.parentNode, ot = ct(S), Lt = ct(S, f.draggable),
|
|
1803
|
+
}), M = S && S.parentNode, ot = ct(S), Lt = ct(S, f.draggable), x.eventCanceled) {
|
|
1804
1804
|
this._nulling();
|
|
1805
1805
|
return;
|
|
1806
1806
|
}
|
|
1807
|
-
Ct = !1, Ae = !1, pe = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), _e(this.cloneId), _e(this._dragStartId), this.nativeDraggable && (J(document, "drop", this), J(r, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), le &&
|
|
1807
|
+
Ct = !1, Ae = !1, pe = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), _e(this.cloneId), _e(this._dragStartId), this.nativeDraggable && (J(document, "drop", this), J(r, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), le && m(document.body, "user-select", ""), m(S, "transform", ""), e && (te && (e.cancelable && e.preventDefault(), !f.dropBubble && e.stopPropagation()), N && N.parentNode && N.parentNode.removeChild(N), (Z === M || et && et.lastPutMode !== "clone") && C && C.parentNode && C.parentNode.removeChild(C), S && (this.nativeDraggable && J(S, "dragend", this), Fe(S), S.style["will-change"] = "", te && !Ct && pt(S, et ? et.options.ghostClass : this.options.ghostClass, !1), pt(S, this.options.chosenClass, !1), at({
|
|
1808
1808
|
sortable: this,
|
|
1809
1809
|
name: "unchoose",
|
|
1810
1810
|
toEl: M,
|
|
@@ -1843,7 +1843,7 @@ m.prototype = /** @lends Sortable.prototype */
|
|
|
1843
1843
|
name: "sort",
|
|
1844
1844
|
toEl: M,
|
|
1845
1845
|
originalEvent: e
|
|
1846
|
-
})),
|
|
1846
|
+
})), x.active && ((ot == null || ot === -1) && (ot = Mt, Lt = de), at({
|
|
1847
1847
|
sortable: this,
|
|
1848
1848
|
name: "end",
|
|
1849
1849
|
toEl: M,
|
|
@@ -1851,7 +1851,7 @@ m.prototype = /** @lends Sortable.prototype */
|
|
|
1851
1851
|
}), this.save()))), this._nulling();
|
|
1852
1852
|
},
|
|
1853
1853
|
_nulling: function() {
|
|
1854
|
-
dt("nulling", this), Z = S = M = N = ht = C = He =
|
|
1854
|
+
dt("nulling", this), Z = S = M = N = ht = C = He = mt = Kt = st = te = ot = Lt = Mt = de = Ft = be = et = se = x.dragged = x.ghost = x.clone = x.active = null, qe.forEach(function(e) {
|
|
1855
1855
|
e.checked = !0;
|
|
1856
1856
|
}), qe.length = Re = Ge = 0;
|
|
1857
1857
|
},
|
|
@@ -1932,9 +1932,9 @@ m.prototype = /** @lends Sortable.prototype */
|
|
|
1932
1932
|
}), this._onDrop(), this._disableDelayedDragEvents(), ke.splice(ke.indexOf(this.el), 1), this.el = e = null;
|
|
1933
1933
|
},
|
|
1934
1934
|
_hideClone: function() {
|
|
1935
|
-
if (!
|
|
1936
|
-
if (dt("hideClone", this),
|
|
1937
|
-
|
|
1935
|
+
if (!mt) {
|
|
1936
|
+
if (dt("hideClone", this), x.eventCanceled) return;
|
|
1937
|
+
m(C, "display", "none"), this.options.removeCloneOnHide && C.parentNode && C.parentNode.removeChild(C), mt = !0;
|
|
1938
1938
|
}
|
|
1939
1939
|
},
|
|
1940
1940
|
_showClone: function(e) {
|
|
@@ -1942,9 +1942,9 @@ m.prototype = /** @lends Sortable.prototype */
|
|
|
1942
1942
|
this._hideClone();
|
|
1943
1943
|
return;
|
|
1944
1944
|
}
|
|
1945
|
-
if (
|
|
1946
|
-
if (dt("showClone", this),
|
|
1947
|
-
S.parentNode == Z && !this.options.group.revertClone ? Z.insertBefore(C, S) : ht ? Z.insertBefore(C, ht) : Z.appendChild(C), this.options.group.revertClone && this.animate(S, C),
|
|
1945
|
+
if (mt) {
|
|
1946
|
+
if (dt("showClone", this), x.eventCanceled) return;
|
|
1947
|
+
S.parentNode == Z && !this.options.group.revertClone ? Z.insertBefore(C, S) : ht ? Z.insertBefore(C, ht) : Z.appendChild(C), this.options.group.revertClone && this.animate(S, C), m(C, "display", ""), mt = !1;
|
|
1948
1948
|
}
|
|
1949
1949
|
}
|
|
1950
1950
|
};
|
|
@@ -1953,7 +1953,7 @@ function ln(t) {
|
|
|
1953
1953
|
}
|
|
1954
1954
|
function We(t, e, r, f, n, v, l, a) {
|
|
1955
1955
|
var u, d = t[bt], P = d.options.onMove, b;
|
|
1956
|
-
return window.CustomEvent && !
|
|
1956
|
+
return window.CustomEvent && !xt && !Xe ? u = new CustomEvent("move", {
|
|
1957
1957
|
bubbles: !0,
|
|
1958
1958
|
cancelable: !0
|
|
1959
1959
|
}) : (u = document.createEvent("Event"), u.initEvent("move", !0, !0)), u.to = e, u.from = t, u.dragged = r, u.draggedRect = f, u.related = n || e, u.relatedRect = v || Q(e), u.willInsertAfter = a, u.originalEvent = l, t.dispatchEvent(u), P && (b = P.call(d, u, l)), b;
|
|
@@ -2007,12 +2007,12 @@ function _e(t) {
|
|
|
2007
2007
|
return clearTimeout(t);
|
|
2008
2008
|
}
|
|
2009
2009
|
Ke && D(document, "touchmove", function(t) {
|
|
2010
|
-
(
|
|
2010
|
+
(x.active || Ct) && t.cancelable && t.preventDefault();
|
|
2011
2011
|
});
|
|
2012
|
-
|
|
2012
|
+
x.utils = {
|
|
2013
2013
|
on: D,
|
|
2014
2014
|
off: J,
|
|
2015
|
-
css:
|
|
2015
|
+
css: m,
|
|
2016
2016
|
find: gr,
|
|
2017
2017
|
is: function(e, r) {
|
|
2018
2018
|
return !!At(e, r, e, !1);
|
|
@@ -2029,22 +2029,22 @@ m.utils = {
|
|
|
2029
2029
|
getChild: Qt,
|
|
2030
2030
|
expando: bt
|
|
2031
2031
|
};
|
|
2032
|
-
|
|
2032
|
+
x.get = function(t) {
|
|
2033
2033
|
return t[bt];
|
|
2034
2034
|
};
|
|
2035
|
-
|
|
2035
|
+
x.mount = function() {
|
|
2036
2036
|
for (var t = arguments.length, e = new Array(t), r = 0; r < t; r++)
|
|
2037
2037
|
e[r] = arguments[r];
|
|
2038
2038
|
e[0].constructor === Array && (e = e[0]), e.forEach(function(f) {
|
|
2039
2039
|
if (!f.prototype || !f.prototype.constructor)
|
|
2040
2040
|
throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(f));
|
|
2041
|
-
f.utils && (
|
|
2041
|
+
f.utils && (x.utils = St(St({}, x.utils), f.utils)), ie.mount(f);
|
|
2042
2042
|
});
|
|
2043
2043
|
};
|
|
2044
|
-
|
|
2045
|
-
return new
|
|
2044
|
+
x.create = function(t, e) {
|
|
2045
|
+
return new x(t, e);
|
|
2046
2046
|
};
|
|
2047
|
-
|
|
2047
|
+
x.version = Yf;
|
|
2048
2048
|
var E = [], ee, tr, er = !1, Ze, Ce, Je, re;
|
|
2049
2049
|
function cn() {
|
|
2050
2050
|
function t() {
|
|
@@ -2068,7 +2068,7 @@ function cn() {
|
|
|
2068
2068
|
!this.options.dragOverBubble && !f.rootEl && this._handleAutoScroll(f);
|
|
2069
2069
|
},
|
|
2070
2070
|
drop: function() {
|
|
2071
|
-
this.sortable.nativeDraggable ? J(document, "dragover", this._handleAutoScroll) : (J(document, "pointermove", this._handleFallbackAutoScroll), J(document, "touchmove", this._handleFallbackAutoScroll), J(document, "mousemove", this._handleFallbackAutoScroll)), yr(),
|
|
2071
|
+
this.sortable.nativeDraggable ? J(document, "dragover", this._handleAutoScroll) : (J(document, "pointermove", this._handleFallbackAutoScroll), J(document, "touchmove", this._handleFallbackAutoScroll), J(document, "mousemove", this._handleFallbackAutoScroll)), yr(), xe(), Qf();
|
|
2072
2072
|
},
|
|
2073
2073
|
nulling: function() {
|
|
2074
2074
|
Je = tr = ee = er = re = Ze = Ce = null, E.length = 0;
|
|
@@ -2078,16 +2078,16 @@ function cn() {
|
|
|
2078
2078
|
},
|
|
2079
2079
|
_handleAutoScroll: function(r, f) {
|
|
2080
2080
|
var n = this, v = (r.touches ? r.touches[0] : r).clientX, l = (r.touches ? r.touches[0] : r).clientY, a = document.elementFromPoint(v, l);
|
|
2081
|
-
if (Je = r, f || this.options.forceAutoScrollFallback || Xe ||
|
|
2081
|
+
if (Je = r, f || this.options.forceAutoScrollFallback || Xe || xt || le) {
|
|
2082
2082
|
Me(r, this.options, a, f);
|
|
2083
2083
|
var u = Nt(a, !0);
|
|
2084
2084
|
er && (!re || v !== Ze || l !== Ce) && (re && yr(), re = setInterval(function() {
|
|
2085
2085
|
var d = Nt(document.elementFromPoint(v, l), !0);
|
|
2086
|
-
d !== u && (u = d,
|
|
2086
|
+
d !== u && (u = d, xe()), Me(r, n.options, d, f);
|
|
2087
2087
|
}, 10), Ze = v, Ce = l);
|
|
2088
2088
|
} else {
|
|
2089
2089
|
if (!this.options.bubbleScroll || Nt(a, !0) === wt()) {
|
|
2090
|
-
|
|
2090
|
+
xe();
|
|
2091
2091
|
return;
|
|
2092
2092
|
}
|
|
2093
2093
|
Me(r, this.options, Nt(a, !1), !1);
|
|
@@ -2098,7 +2098,7 @@ function cn() {
|
|
|
2098
2098
|
initializeByDefault: !0
|
|
2099
2099
|
});
|
|
2100
2100
|
}
|
|
2101
|
-
function
|
|
2101
|
+
function xe() {
|
|
2102
2102
|
E.forEach(function(t) {
|
|
2103
2103
|
clearInterval(t.pid);
|
|
2104
2104
|
}), E = [];
|
|
@@ -2109,19 +2109,19 @@ function yr() {
|
|
|
2109
2109
|
var Me = hr(function(t, e, r, f) {
|
|
2110
2110
|
if (e.scroll) {
|
|
2111
2111
|
var n = (t.touches ? t.touches[0] : t).clientX, v = (t.touches ? t.touches[0] : t).clientY, l = e.scrollSensitivity, a = e.scrollSpeed, u = wt(), d = !1, P;
|
|
2112
|
-
tr !== r && (tr = r,
|
|
2112
|
+
tr !== r && (tr = r, xe(), ee = e.scroll, P = e.scrollFn, ee === !0 && (ee = Nt(r, !0)));
|
|
2113
2113
|
var b = 0, p = ee;
|
|
2114
2114
|
do {
|
|
2115
|
-
var c = p, s = Q(c), A = s.top, T = s.bottom, W = s.left, y = s.right, O = s.width, z = s.height, k = void 0, H = void 0, L = c.scrollWidth, w = c.scrollHeight, V =
|
|
2115
|
+
var c = p, s = Q(c), A = s.top, T = s.bottom, W = s.left, y = s.right, O = s.width, z = s.height, k = void 0, H = void 0, L = c.scrollWidth, w = c.scrollHeight, V = m(c), q = c.scrollLeft, K = c.scrollTop;
|
|
2116
2116
|
c === u ? (k = O < L && (V.overflowX === "auto" || V.overflowX === "scroll" || V.overflowX === "visible"), H = z < w && (V.overflowY === "auto" || V.overflowY === "scroll" || V.overflowY === "visible")) : (k = O < L && (V.overflowX === "auto" || V.overflowX === "scroll"), H = z < w && (V.overflowY === "auto" || V.overflowY === "scroll"));
|
|
2117
2117
|
var B = k && (Math.abs(y - n) <= l && q + O < L) - (Math.abs(W - n) <= l && !!q), F = H && (Math.abs(T - v) <= l && K + z < w) - (Math.abs(A - v) <= l && !!K);
|
|
2118
2118
|
if (!E[b])
|
|
2119
2119
|
for (var g = 0; g <= b; g++)
|
|
2120
2120
|
E[g] || (E[g] = {});
|
|
2121
2121
|
(E[b].vx != B || E[b].vy != F || E[b].el !== c) && (E[b].el = c, E[b].vx = B, E[b].vy = F, clearInterval(E[b].pid), (B != 0 || F != 0) && (d = !0, E[b].pid = setInterval((function() {
|
|
2122
|
-
f && this.layer === 0 &&
|
|
2122
|
+
f && this.layer === 0 && x.active._onTouchMove(Je);
|
|
2123
2123
|
var vt = E[this.layer].vy ? E[this.layer].vy * a : 0, $ = E[this.layer].vx ? E[this.layer].vx * a : 0;
|
|
2124
|
-
typeof P == "function" && P.call(
|
|
2124
|
+
typeof P == "function" && P.call(x.dragged.parentNode[bt], $, vt, t, Je, E[this.layer].el) !== "continue" || Ur(E[this.layer].el, $, vt);
|
|
2125
2125
|
}).bind({
|
|
2126
2126
|
layer: b
|
|
2127
2127
|
}), 24))), b++;
|
|
@@ -2171,8 +2171,8 @@ dr.prototype = {
|
|
|
2171
2171
|
Ot(dr, {
|
|
2172
2172
|
pluginName: "removeOnSpill"
|
|
2173
2173
|
});
|
|
2174
|
-
|
|
2175
|
-
|
|
2174
|
+
x.mount(new cn());
|
|
2175
|
+
x.mount(dr, ur);
|
|
2176
2176
|
const sn = /* @__PURE__ */ _({
|
|
2177
2177
|
__name: "BlockBrowser",
|
|
2178
2178
|
setup(t) {
|
|
@@ -2182,7 +2182,7 @@ const sn = /* @__PURE__ */ _({
|
|
|
2182
2182
|
}) : []), f = Y(() => Ht.value ? Object.values(Ht.value).length : 0);
|
|
2183
2183
|
function n() {
|
|
2184
2184
|
const v = document.getElementById("available-blocks-list");
|
|
2185
|
-
v && f.value && new
|
|
2185
|
+
v && f.value && new x(v, {
|
|
2186
2186
|
animation: 150,
|
|
2187
2187
|
ghostClass: "sortable-ghost",
|
|
2188
2188
|
chosenClass: "sortable-chosen",
|
|
@@ -2451,7 +2451,7 @@ const sn = /* @__PURE__ */ _({
|
|
|
2451
2451
|
title: "Top Margin"
|
|
2452
2452
|
}, [
|
|
2453
2453
|
i("span", { class: "pointer-events-none absolute left-0 top-0 inline-flex h-full items-center justify-center border-r border-gray-300 px-3 text-xs" }, [
|
|
2454
|
-
h(R(
|
|
2454
|
+
h(R(mf), { class: "size-3" })
|
|
2455
2455
|
]),
|
|
2456
2456
|
lt(i("select", {
|
|
2457
2457
|
"onUpdate:modelValue": u[1] || (u[1] = (d) => n.value.top = d),
|
|
@@ -2473,7 +2473,7 @@ const sn = /* @__PURE__ */ _({
|
|
|
2473
2473
|
title: "Bottom Margin"
|
|
2474
2474
|
}, [
|
|
2475
2475
|
i("span", { class: "pointer-events-none absolute left-0 top-0 inline-flex h-full items-center justify-center border-r border-gray-300 px-3 text-xs" }, [
|
|
2476
|
-
h(R(
|
|
2476
|
+
h(R(xf), { class: "size-3" })
|
|
2477
2477
|
]),
|
|
2478
2478
|
lt(i("select", {
|
|
2479
2479
|
"onUpdate:modelValue": u[2] || (u[2] = (d) => n.value.bottom = d),
|
|
@@ -3152,7 +3152,7 @@ const sn = /* @__PURE__ */ _({
|
|
|
3152
3152
|
}
|
|
3153
3153
|
function d() {
|
|
3154
3154
|
const P = document.getElementById("page-blocks-list");
|
|
3155
|
-
P && new
|
|
3155
|
+
P && new x(P, {
|
|
3156
3156
|
animation: 150,
|
|
3157
3157
|
ghostClass: "sortable-ghost",
|
|
3158
3158
|
chosenClass: "sortable-chosen",
|
|
@@ -3264,7 +3264,7 @@ const sn = /* @__PURE__ */ _({
|
|
|
3264
3264
|
])
|
|
3265
3265
|
]));
|
|
3266
3266
|
}
|
|
3267
|
-
}),
|
|
3267
|
+
}), xn = /* @__PURE__ */ Wt(On, [["__scopeId", "data-v-ebf4fdcf"]]), Ln = /* @__PURE__ */ _({
|
|
3268
3268
|
__name: "PageBuilderToolbar",
|
|
3269
3269
|
props: /* @__PURE__ */ Tt({
|
|
3270
3270
|
hasPageSettings: { type: Boolean }
|
|
@@ -3280,7 +3280,7 @@ const sn = /* @__PURE__ */ _({
|
|
|
3280
3280
|
setup(t) {
|
|
3281
3281
|
const e = rt(t, "editorViewport"), r = rt(t, "activeBlock"), f = rt(t, "showPageSettings");
|
|
3282
3282
|
return (n, v) => (o(), X("div", { class: "flex divide-x divide-gray-300 border-b border-gray-300" }, [
|
|
3283
|
-
|
|
3283
|
+
xr(n.$slots, "default"),
|
|
3284
3284
|
t.hasPageSettings ? (o(), X("div", {
|
|
3285
3285
|
key: 0,
|
|
3286
3286
|
class: "ml-auto inline-flex gap-2 px-5 py-2.5"
|
|
@@ -3322,7 +3322,7 @@ const sn = /* @__PURE__ */ _({
|
|
|
3322
3322
|
])
|
|
3323
3323
|
]));
|
|
3324
3324
|
}
|
|
3325
|
-
}),
|
|
3325
|
+
}), mn = /* @__PURE__ */ _({
|
|
3326
3326
|
__name: "PageBuilderSidebar",
|
|
3327
3327
|
props: /* @__PURE__ */ Tt({
|
|
3328
3328
|
editable: { type: Boolean, default: !0 },
|
|
@@ -3430,7 +3430,7 @@ This action cannot be undone.`
|
|
|
3430
3430
|
class: "z-12 sticky top-0 bg-white",
|
|
3431
3431
|
hasPageSettings: t.hasPageSettings
|
|
3432
3432
|
}, null, 8, ["editorViewport", "showPageSettings", "activeBlock", "hasPageSettings"]),
|
|
3433
|
-
n.value ? (o(), ut(
|
|
3433
|
+
n.value ? (o(), ut(xn, {
|
|
3434
3434
|
key: 0,
|
|
3435
3435
|
modelValue: e.value,
|
|
3436
3436
|
"onUpdate:modelValue": c[3] || (c[3] = (T) => e.value = T),
|
|
@@ -3500,7 +3500,7 @@ This action cannot be undone.`
|
|
|
3500
3500
|
]);
|
|
3501
3501
|
};
|
|
3502
3502
|
}
|
|
3503
|
-
}), Vn = /* @__PURE__ */ Wt(
|
|
3503
|
+
}), Vn = /* @__PURE__ */ Wt(mn, [["__scopeId", "data-v-07ebdb36"]]), Nn = /* @__PURE__ */ _({
|
|
3504
3504
|
__name: "BrowserNavigation",
|
|
3505
3505
|
props: {
|
|
3506
3506
|
url: {}
|
|
@@ -3572,157 +3572,7 @@ function qn() {
|
|
|
3572
3572
|
`);
|
|
3573
3573
|
}
|
|
3574
3574
|
function Jn(t) {
|
|
3575
|
-
const e = qn(), r = kn(), f = "https://unpkg.com/vue@3/dist/vue.esm-browser.js", n = "https://unpkg.com/vue-router@4/dist/vue-router.esm-browser.js", v = typeof window < "u" ? window.location.origin : ""
|
|
3576
|
-
// Define Vue feature flags to prevent warnings
|
|
3577
|
-
// These must be defined before Vue or the library code is imported
|
|
3578
|
-
// Using var to make them available globally (not just on window)
|
|
3579
|
-
var __VUE_OPTIONS_API__ = true;
|
|
3580
|
-
var __VUE_PROD_DEVTOOLS__ = false;
|
|
3581
|
-
var __VUE_PROD_HYDRATION_MISMATCH_DETAILS__ = false;
|
|
3582
|
-
|
|
3583
|
-
// Also set on window for compatibility
|
|
3584
|
-
window.__VUE_OPTIONS_API__ = true;
|
|
3585
|
-
window.__VUE_PROD_DEVTOOLS__ = false;
|
|
3586
|
-
window.__VUE_PROD_HYDRATION_MISMATCH_DETAILS__ = false;
|
|
3587
|
-
<\/script>`, a = t ? `<script type="module">
|
|
3588
|
-
console.info('[iframe] Script module starting...');
|
|
3589
|
-
console.info('[iframe] Module URL:', '${t}');
|
|
3590
|
-
|
|
3591
|
-
import { createApp } from 'vue';
|
|
3592
|
-
console.info('[iframe] Vue imported successfully');
|
|
3593
|
-
|
|
3594
|
-
import * as VueRouter from 'vue-router';
|
|
3595
|
-
console.info('[iframe] VueRouter imported successfully');
|
|
3596
|
-
// Make vue-router available globally so it can be accessed in the iframe app
|
|
3597
|
-
window.VueRouter = VueRouter;
|
|
3598
|
-
|
|
3599
|
-
// Use dynamic import with error handling - static imports fail if module doesn't exist
|
|
3600
|
-
console.info('[iframe] Attempting to import createIframeApp from:', '${t}');
|
|
3601
|
-
let appInitialized = false;
|
|
3602
|
-
|
|
3603
|
-
try {
|
|
3604
|
-
const module = await import('${t}');
|
|
3605
|
-
console.info('[iframe] Module imported successfully:', module);
|
|
3606
|
-
|
|
3607
|
-
if (module && module.createIframeApp) {
|
|
3608
|
-
const appEl = document.getElementById('app');
|
|
3609
|
-
console.info('[iframe] App element found:', appEl);
|
|
3610
|
-
if (appEl) {
|
|
3611
|
-
console.info('[iframe] Calling createIframeApp...');
|
|
3612
|
-
appInitialized = true;
|
|
3613
|
-
module.createIframeApp(appEl).then(() => {
|
|
3614
|
-
console.info('[iframe] createIframeApp completed successfully');
|
|
3615
|
-
}).catch(error => {
|
|
3616
|
-
console.error('[iframe] Failed to create iframe app:', error);
|
|
3617
|
-
console.error('[iframe] Error stack:', error.stack);
|
|
3618
|
-
});
|
|
3619
|
-
} else {
|
|
3620
|
-
console.error('[iframe] App element (#app) not found!');
|
|
3621
|
-
}
|
|
3622
|
-
} else {
|
|
3623
|
-
console.error('[iframe] Module imported but createIframeApp not found');
|
|
3624
|
-
throw new Error('createIframeApp not found in module');
|
|
3625
|
-
}
|
|
3626
|
-
} catch (error) {
|
|
3627
|
-
console.error('[iframe] Failed to import module, falling back to postMessage:', error);
|
|
3628
|
-
console.error('[iframe] Error details:', error.message, error.stack);
|
|
3629
|
-
|
|
3630
|
-
// Fallback to postMessage mechanism
|
|
3631
|
-
window.addEventListener('message', async (event) => {
|
|
3632
|
-
console.info('[iframe] Received message (fallback):', event.data);
|
|
3633
|
-
if (event.data.type === 'INIT_IFRAME_APP' && event.data.moduleUrl && !appInitialized) {
|
|
3634
|
-
appInitialized = true;
|
|
3635
|
-
console.info('[iframe] Initializing app with module URL (fallback):', event.data.moduleUrl);
|
|
3636
|
-
try {
|
|
3637
|
-
const { createIframeApp } = await import(event.data.moduleUrl);
|
|
3638
|
-
console.info('[iframe] createIframeApp imported successfully (fallback)');
|
|
3639
|
-
const appEl = document.getElementById('app');
|
|
3640
|
-
console.info('[iframe] App element found (fallback):', appEl);
|
|
3641
|
-
if (appEl) {
|
|
3642
|
-
console.info('[iframe] Calling createIframeApp (fallback)...');
|
|
3643
|
-
createIframeApp(appEl).then(() => {
|
|
3644
|
-
console.info('[iframe] createIframeApp completed successfully (fallback)');
|
|
3645
|
-
}).catch(err => {
|
|
3646
|
-
console.error('[iframe] createIframeApp failed (fallback):', err);
|
|
3647
|
-
});
|
|
3648
|
-
} else {
|
|
3649
|
-
console.error('[iframe] App element not found (fallback)!');
|
|
3650
|
-
}
|
|
3651
|
-
} catch (err) {
|
|
3652
|
-
console.error('[iframe] Failed to load iframe app module (fallback):', err);
|
|
3653
|
-
// Fallback: create minimal Vue app
|
|
3654
|
-
const appEl = document.getElementById('app');
|
|
3655
|
-
if (appEl) {
|
|
3656
|
-
console.info('[iframe] Creating fallback Vue app');
|
|
3657
|
-
createApp({
|
|
3658
|
-
template: '<div class="p-4">Loading preview...</div>'
|
|
3659
|
-
}).mount(appEl);
|
|
3660
|
-
}
|
|
3661
|
-
}
|
|
3662
|
-
}
|
|
3663
|
-
});
|
|
3664
|
-
|
|
3665
|
-
// Notify parent that we need the module URL via postMessage
|
|
3666
|
-
if (window.parent) {
|
|
3667
|
-
console.info('[iframe] Notifying parent that iframe needs module URL');
|
|
3668
|
-
window.parent.postMessage({ type: 'IFRAME_NEEDS_MODULE_URL' }, '*');
|
|
3669
|
-
}
|
|
3670
|
-
}
|
|
3671
|
-
<\/script>` : `<script type="module">
|
|
3672
|
-
// Fallback: Wait for parent to send module URL via postMessage
|
|
3673
|
-
console.info('[iframe] Fallback script module starting...');
|
|
3674
|
-
import { createApp } from 'vue';
|
|
3675
|
-
console.info('[iframe] Vue imported successfully (fallback)');
|
|
3676
|
-
import * as VueRouter from 'vue-router';
|
|
3677
|
-
console.info('[iframe] VueRouter imported successfully (fallback)');
|
|
3678
|
-
// Make vue-router available globally so it can be imported in the iframe app
|
|
3679
|
-
window.VueRouter = VueRouter;
|
|
3680
|
-
|
|
3681
|
-
let appInitialized = false;
|
|
3682
|
-
|
|
3683
|
-
window.addEventListener('message', async (event) => {
|
|
3684
|
-
console.info('[iframe] Received message:', event.data);
|
|
3685
|
-
if (event.data.type === 'INIT_IFRAME_APP' && event.data.moduleUrl && !appInitialized) {
|
|
3686
|
-
appInitialized = true;
|
|
3687
|
-
console.info('[iframe] Initializing app with module URL:', event.data.moduleUrl);
|
|
3688
|
-
try {
|
|
3689
|
-
const { createIframeApp } = await import(event.data.moduleUrl);
|
|
3690
|
-
console.info('[iframe] createIframeApp imported successfully (fallback)');
|
|
3691
|
-
const appEl = document.getElementById('app');
|
|
3692
|
-
console.info('[iframe] App element found (fallback):', appEl);
|
|
3693
|
-
if (appEl) {
|
|
3694
|
-
console.info('[iframe] Calling createIframeApp (fallback)...');
|
|
3695
|
-
createIframeApp(appEl).then(() => {
|
|
3696
|
-
console.info('[iframe] createIframeApp completed successfully (fallback)');
|
|
3697
|
-
}).catch(error => {
|
|
3698
|
-
console.error('[iframe] createIframeApp failed (fallback):', error);
|
|
3699
|
-
});
|
|
3700
|
-
} else {
|
|
3701
|
-
console.error('[iframe] App element not found (fallback)!');
|
|
3702
|
-
}
|
|
3703
|
-
} catch (error) {
|
|
3704
|
-
console.error('[iframe] Failed to load iframe app module:', error);
|
|
3705
|
-
console.error('[iframe] Error stack:', error.stack);
|
|
3706
|
-
// Fallback: create minimal Vue app
|
|
3707
|
-
const appEl = document.getElementById('app');
|
|
3708
|
-
if (appEl) {
|
|
3709
|
-
console.info('[iframe] Creating fallback Vue app');
|
|
3710
|
-
createApp({
|
|
3711
|
-
template: '<div class="p-4">Loading preview...</div>'
|
|
3712
|
-
}).mount(appEl);
|
|
3713
|
-
}
|
|
3714
|
-
}
|
|
3715
|
-
}
|
|
3716
|
-
});
|
|
3717
|
-
|
|
3718
|
-
// Notify parent that we're ready to receive module URL
|
|
3719
|
-
if (window.parent) {
|
|
3720
|
-
console.info('[iframe] Notifying parent that iframe is ready for app');
|
|
3721
|
-
window.parent.postMessage({ type: 'IFRAME_READY_FOR_APP' }, '*');
|
|
3722
|
-
} else {
|
|
3723
|
-
console.warn('[iframe] window.parent is not available');
|
|
3724
|
-
}
|
|
3725
|
-
<\/script>`;
|
|
3575
|
+
const e = qn(), r = kn(), f = "https://unpkg.com/vue@3/dist/vue.esm-browser.js", n = "https://unpkg.com/vue-router@4/dist/vue-router.esm-browser.js", v = typeof window < "u" ? window.location.origin : "";
|
|
3726
3576
|
return `<!DOCTYPE html>
|
|
3727
3577
|
<html lang="en">
|
|
3728
3578
|
<head>
|
|
@@ -3765,8 +3615,86 @@ function Jn(t) {
|
|
|
3765
3615
|
</head>
|
|
3766
3616
|
<body>
|
|
3767
3617
|
<div id="app"></div>
|
|
3768
|
-
|
|
3769
|
-
|
|
3618
|
+
<script>
|
|
3619
|
+
// Define Vue feature flags to prevent warnings
|
|
3620
|
+
// These must be defined before Vue or the library code is imported
|
|
3621
|
+
// Using var to make them available globally (not just on window)
|
|
3622
|
+
var __VUE_OPTIONS_API__ = true;
|
|
3623
|
+
var __VUE_PROD_DEVTOOLS__ = false;
|
|
3624
|
+
var __VUE_PROD_HYDRATION_MISMATCH_DETAILS__ = false;
|
|
3625
|
+
|
|
3626
|
+
// Also set on window for compatibility
|
|
3627
|
+
window.__VUE_OPTIONS_API__ = true;
|
|
3628
|
+
window.__VUE_PROD_DEVTOOLS__ = false;
|
|
3629
|
+
window.__VUE_PROD_HYDRATION_MISMATCH_DETAILS__ = false;
|
|
3630
|
+
<\/script>
|
|
3631
|
+
<script type="module">
|
|
3632
|
+
console.info('[iframe] Script module starting...');
|
|
3633
|
+
|
|
3634
|
+
import { createApp } from 'vue';
|
|
3635
|
+
console.info('[iframe] Vue imported successfully');
|
|
3636
|
+
|
|
3637
|
+
import * as VueRouter from 'vue-router';
|
|
3638
|
+
console.info('[iframe] VueRouter imported successfully');
|
|
3639
|
+
// Make vue-router available globally so it can be accessed in the iframe app
|
|
3640
|
+
window.VueRouter = VueRouter;
|
|
3641
|
+
|
|
3642
|
+
let appInitialized = false;
|
|
3643
|
+
|
|
3644
|
+
// Always use postMessage mechanism to get the module URL
|
|
3645
|
+
// This works whether the library is consumed as source or bundled
|
|
3646
|
+
window.addEventListener('message', async (event) => {
|
|
3647
|
+
console.info('[iframe] Received message:', event.data);
|
|
3648
|
+
if (event.data.type === 'INIT_IFRAME_APP' && event.data.moduleUrl && !appInitialized) {
|
|
3649
|
+
appInitialized = true;
|
|
3650
|
+
console.info('[iframe] Initializing app with module URL:', event.data.moduleUrl);
|
|
3651
|
+
try {
|
|
3652
|
+
const { createIframeApp } = await import(event.data.moduleUrl);
|
|
3653
|
+
console.info('[iframe] createIframeApp imported successfully');
|
|
3654
|
+
const appEl = document.getElementById('app');
|
|
3655
|
+
console.info('[iframe] App element found:', appEl);
|
|
3656
|
+
if (appEl) {
|
|
3657
|
+
console.info('[iframe] Calling createIframeApp...');
|
|
3658
|
+
createIframeApp(appEl).then(() => {
|
|
3659
|
+
console.info('[iframe] createIframeApp completed successfully');
|
|
3660
|
+
}).catch(error => {
|
|
3661
|
+
console.error('[iframe] createIframeApp failed:', error);
|
|
3662
|
+
console.error('[iframe] Error stack:', error.stack);
|
|
3663
|
+
// Fallback: create minimal Vue app
|
|
3664
|
+
const appEl = document.getElementById('app');
|
|
3665
|
+
if (appEl) {
|
|
3666
|
+
console.info('[iframe] Creating fallback Vue app after error');
|
|
3667
|
+
createApp({
|
|
3668
|
+
template: '<div class="p-4">Error loading preview. Check console for details.</div>'
|
|
3669
|
+
}).mount(appEl);
|
|
3670
|
+
}
|
|
3671
|
+
});
|
|
3672
|
+
} else {
|
|
3673
|
+
console.error('[iframe] App element not found!');
|
|
3674
|
+
}
|
|
3675
|
+
} catch (error) {
|
|
3676
|
+
console.error('[iframe] Failed to load iframe app module:', error);
|
|
3677
|
+
console.error('[iframe] Error stack:', error.stack);
|
|
3678
|
+
// Fallback: create minimal Vue app
|
|
3679
|
+
const appEl = document.getElementById('app');
|
|
3680
|
+
if (appEl) {
|
|
3681
|
+
console.info('[iframe] Creating fallback Vue app');
|
|
3682
|
+
createApp({
|
|
3683
|
+
template: '<div class="p-4">Loading preview...</div>'
|
|
3684
|
+
}).mount(appEl);
|
|
3685
|
+
}
|
|
3686
|
+
}
|
|
3687
|
+
}
|
|
3688
|
+
});
|
|
3689
|
+
|
|
3690
|
+
// Notify parent that we're ready to receive module URL
|
|
3691
|
+
if (window.parent) {
|
|
3692
|
+
console.info('[iframe] Notifying parent that iframe is ready for app');
|
|
3693
|
+
window.parent.postMessage({ type: 'IFRAME_READY_FOR_APP' }, '*');
|
|
3694
|
+
} else {
|
|
3695
|
+
console.warn('[iframe] window.parent is not available');
|
|
3696
|
+
}
|
|
3697
|
+
<\/script>
|
|
3770
3698
|
</body>
|
|
3771
3699
|
</html>`;
|
|
3772
3700
|
}
|
|
@@ -4299,7 +4227,7 @@ const In = /* @__PURE__ */ _({
|
|
|
4299
4227
|
}
|
|
4300
4228
|
l.value = !0;
|
|
4301
4229
|
try {
|
|
4302
|
-
v.value = new
|
|
4230
|
+
v.value = new x(V, {
|
|
4303
4231
|
animation: 150,
|
|
4304
4232
|
ghostClass: "sortable-ghost",
|
|
4305
4233
|
chosenClass: "sortable-chosen",
|
|
@@ -4336,7 +4264,7 @@ const In = /* @__PURE__ */ _({
|
|
|
4336
4264
|
}
|
|
4337
4265
|
}
|
|
4338
4266
|
return $t(async () => {
|
|
4339
|
-
r.value = !1, await
|
|
4267
|
+
r.value = !1, await me(e.theme, !1), r.value = !0, s();
|
|
4340
4268
|
}), Xt(
|
|
4341
4269
|
[() => e.blocks, () => a.value, () => r.value],
|
|
4342
4270
|
async ([w, V, q]) => {
|
|
@@ -4378,7 +4306,7 @@ const In = /* @__PURE__ */ _({
|
|
|
4378
4306
|
T.value && W.value !== null && y.value !== null ? (o(), X("div", {
|
|
4379
4307
|
key: 0,
|
|
4380
4308
|
class: "drop-indicator",
|
|
4381
|
-
style:
|
|
4309
|
+
style: mr({ top: y.value + "px" })
|
|
4382
4310
|
}, [
|
|
4383
4311
|
i("div", { class: "drop-indicator-line" }),
|
|
4384
4312
|
i("div", { class: "drop-indicator-label" }, "Drop here"),
|
|
@@ -4647,7 +4575,7 @@ const tv = /* @__PURE__ */ _({
|
|
|
4647
4575
|
}
|
|
4648
4576
|
function p() {
|
|
4649
4577
|
console.info("[parent] Creating iframe src, module URL:", r);
|
|
4650
|
-
const W = Jn(
|
|
4578
|
+
const W = Jn(), y = new Blob([W], { type: "text/html" }), O = URL.createObjectURL(y);
|
|
4651
4579
|
return console.info("[parent] Iframe blob URL created:", O), O;
|
|
4652
4580
|
}
|
|
4653
4581
|
async function c() {
|
|
@@ -4674,12 +4602,12 @@ const tv = /* @__PURE__ */ _({
|
|
|
4674
4602
|
console.info("[parent] Ignoring message from different source");
|
|
4675
4603
|
return;
|
|
4676
4604
|
}
|
|
4677
|
-
if (console.info("[parent] Received message from iframe:", W.data), W.data && W.data.type === "
|
|
4678
|
-
console.info("[parent]
|
|
4605
|
+
if (console.info("[parent] Received message from iframe:", W.data), W.data && W.data.type === "IFRAME_READY_FOR_APP") {
|
|
4606
|
+
console.info("[parent] IFRAME_READY_FOR_APP received, sending module URL"), v.value && r ? Hr(v.value, r) : console.warn("[parent] Cannot send module URL - iframe ref or module URL not available");
|
|
4679
4607
|
return;
|
|
4680
4608
|
}
|
|
4681
|
-
if (W.data && W.data.type === "
|
|
4682
|
-
console.info("[parent]
|
|
4609
|
+
if (W.data && W.data.type === "IFRAME_NEEDS_MODULE_URL") {
|
|
4610
|
+
console.info("[parent] IFRAME_NEEDS_MODULE_URL received, sending module URL"), v.value && r ? Hr(v.value, r) : console.warn("[parent] Cannot send module URL - iframe ref or module URL not available");
|
|
4683
4611
|
return;
|
|
4684
4612
|
}
|
|
4685
4613
|
Rn(W, {
|
|
@@ -4750,7 +4678,7 @@ const tv = /* @__PURE__ */ _({
|
|
|
4750
4678
|
}, null, 40, ["src"])
|
|
4751
4679
|
], 512));
|
|
4752
4680
|
}
|
|
4753
|
-
}), ev = /* @__PURE__ */ Wt(tv, [["__scopeId", "data-v-
|
|
4681
|
+
}), ev = /* @__PURE__ */ Wt(tv, [["__scopeId", "data-v-73079f1e"]]), pv = /* @__PURE__ */ _({
|
|
4754
4682
|
__name: "WswgPageBuilder",
|
|
4755
4683
|
props: /* @__PURE__ */ Tt({
|
|
4756
4684
|
editable: { type: Boolean, default: !1 },
|
|
@@ -4802,11 +4730,11 @@ const tv = /* @__PURE__ */ _({
|
|
|
4802
4730
|
},
|
|
4803
4731
|
{ ignore: ["#page-builder-sidebar", "#page-builder-resize-handle"] }
|
|
4804
4732
|
), $t(async () => {
|
|
4805
|
-
await
|
|
4733
|
+
await me(e.theme, !0), k();
|
|
4806
4734
|
}), Xt(
|
|
4807
4735
|
() => e.theme,
|
|
4808
4736
|
async (H) => {
|
|
4809
|
-
b.value = !0, await
|
|
4737
|
+
b.value = !0, await me(H, !0), k(), b.value = !1;
|
|
4810
4738
|
}
|
|
4811
4739
|
);
|
|
4812
4740
|
function y(H, L) {
|
|
@@ -4840,7 +4768,7 @@ const tv = /* @__PURE__ */ _({
|
|
|
4840
4768
|
return (H, L) => (o(), X("div", {
|
|
4841
4769
|
class: I(["wswg-page-builder", { "settings-open": f.value }])
|
|
4842
4770
|
}, [
|
|
4843
|
-
t.loading || b.value ?
|
|
4771
|
+
t.loading || b.value ? xr(H.$slots, "loading", { key: 0 }, () => [
|
|
4844
4772
|
i("div", { class: "wswg-page-builder-loading flex h-full flex-col items-center justify-center gap-4" }, [
|
|
4845
4773
|
(o(), X("svg", {
|
|
4846
4774
|
class: "mx-auto size-8 animate-spin text-blue-600",
|
|
@@ -4903,7 +4831,7 @@ const tv = /* @__PURE__ */ _({
|
|
|
4903
4831
|
i("div", {
|
|
4904
4832
|
id: "page-builder-sidebar",
|
|
4905
4833
|
class: "page-builder-sidebar-wrapper bg-white",
|
|
4906
|
-
style:
|
|
4834
|
+
style: mr({ width: d.value + "px" })
|
|
4907
4835
|
}, [
|
|
4908
4836
|
h(Vn, {
|
|
4909
4837
|
modelValue: p.value,
|
|
@@ -4948,7 +4876,7 @@ const tv = /* @__PURE__ */ _({
|
|
|
4948
4876
|
return [u(l, "top"), u(a, "bottom")].join(" ");
|
|
4949
4877
|
}
|
|
4950
4878
|
return $t(async () => {
|
|
4951
|
-
r.value = !1, await
|
|
4879
|
+
r.value = !1, await me(e.theme, !1), r.value = !0;
|
|
4952
4880
|
}), (v, l) => (o(), X("div", {
|
|
4953
4881
|
id: "page-viewport",
|
|
4954
4882
|
class: "page-renderer-wrapper relative"
|