@myissue/vue-website-page-builder 3.5.51 → 3.5.52
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.
|
@@ -18564,7 +18564,7 @@ var VN = () => ({ editor: o, view: e }) => (requestAnimationFrame(() => {
|
|
|
18564
18564
|
}
|
|
18565
18565
|
return !1;
|
|
18566
18566
|
};
|
|
18567
|
-
function
|
|
18567
|
+
function nt(o, e) {
|
|
18568
18568
|
if (typeof o == "string") {
|
|
18569
18569
|
if (!e.nodes[o])
|
|
18570
18570
|
throw Error(
|
|
@@ -18575,7 +18575,7 @@ function it(o, e) {
|
|
|
18575
18575
|
return o;
|
|
18576
18576
|
}
|
|
18577
18577
|
var YN = (o) => ({ tr: e, state: t, dispatch: r }) => {
|
|
18578
|
-
const i =
|
|
18578
|
+
const i = nt(o, t.schema), n = e.selection.$anchor;
|
|
18579
18579
|
for (let a = n.depth; a > 0; a -= 1)
|
|
18580
18580
|
if (n.node(a).type === i) {
|
|
18581
18581
|
if (r) {
|
|
@@ -18940,7 +18940,7 @@ var wF = (o) => ({ editor: e, view: t, tr: r, dispatch: i }) => {
|
|
|
18940
18940
|
}), !0;
|
|
18941
18941
|
};
|
|
18942
18942
|
function Kr(o, e, t = {}) {
|
|
18943
|
-
const { from: r, to: i, empty: n } = o.selection, a = e ?
|
|
18943
|
+
const { from: r, to: i, empty: n } = o.selection, a = e ? nt(e, o.schema) : null, s = [];
|
|
18944
18944
|
o.doc.nodesBetween(r, i, (u, b) => {
|
|
18945
18945
|
if (u.isText)
|
|
18946
18946
|
return;
|
|
@@ -18955,10 +18955,10 @@ function Kr(o, e, t = {}) {
|
|
|
18955
18955
|
return n ? !!d.length : d.reduce((u, b) => u + b.to - b.from, 0) >= l;
|
|
18956
18956
|
}
|
|
18957
18957
|
var SF = (o, e = {}) => ({ state: t, dispatch: r }) => {
|
|
18958
|
-
const i =
|
|
18958
|
+
const i = nt(o, t.schema);
|
|
18959
18959
|
return Kr(t, i, e) ? DO(t, r) : !1;
|
|
18960
18960
|
}, kF = () => ({ state: o, dispatch: e }) => YI(o, e), CF = (o) => ({ state: e, dispatch: t }) => {
|
|
18961
|
-
const r =
|
|
18961
|
+
const r = nt(o, e.schema);
|
|
18962
18962
|
return KO(r)(e, t);
|
|
18963
18963
|
}, TF = () => ({ state: o, dispatch: e }) => KI(o, e);
|
|
18964
18964
|
function Zl(o, e) {
|
|
@@ -18976,7 +18976,7 @@ var PF = (o, e) => ({ tr: t, state: r, dispatch: i }) => {
|
|
|
18976
18976
|
);
|
|
18977
18977
|
if (!s)
|
|
18978
18978
|
return !1;
|
|
18979
|
-
s === "node" && (n =
|
|
18979
|
+
s === "node" && (n = nt(o, r.schema)), s === "mark" && (a = mr(o, r.schema));
|
|
18980
18980
|
let l = !1;
|
|
18981
18981
|
return t.selection.ranges.forEach((d) => {
|
|
18982
18982
|
r.doc.nodesBetween(d.$from.pos, d.$to.pos, (p, u) => {
|
|
@@ -19452,7 +19452,7 @@ function JH(o) {
|
|
|
19452
19452
|
);
|
|
19453
19453
|
}
|
|
19454
19454
|
function qF(o, e) {
|
|
19455
|
-
const t =
|
|
19455
|
+
const t = nt(e, o.schema), { from: r, to: i } = o.selection, n = [];
|
|
19456
19456
|
o.doc.nodesBetween(r, i, (s) => {
|
|
19457
19457
|
n.push(s);
|
|
19458
19458
|
});
|
|
@@ -19732,7 +19732,7 @@ var tj = (o, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
|
|
|
19732
19732
|
});
|
|
19733
19733
|
return ej(r, t, l);
|
|
19734
19734
|
}, oj = (o, e) => ({ tr: t }) => (t.setMeta(o, e), !0), rj = (o, e = {}) => ({ state: t, dispatch: r, chain: i }) => {
|
|
19735
|
-
const n =
|
|
19735
|
+
const n = nt(o, t.schema);
|
|
19736
19736
|
let a;
|
|
19737
19737
|
return t.selection.$anchor.sameParent(t.selection.$head) && (a = t.selection.$anchor.parent.attrs), n.isTextblock ? i().command(({ commands: s }) => Au(n, { ...a, ...e })(t) ? !0 : s.clearNodes()).command(({ state: s }) => Au(n, { ...a, ...e })(s, r)).run() : (console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'), !1);
|
|
19738
19738
|
}, ij = (o) => ({ tr: e, dispatch: t }) => {
|
|
@@ -19757,7 +19757,7 @@ var tj = (o, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
|
|
|
19757
19757
|
}
|
|
19758
19758
|
return !0;
|
|
19759
19759
|
}, sj = (o) => ({ state: e, dispatch: t }) => {
|
|
19760
|
-
const r =
|
|
19760
|
+
const r = nt(o, e.schema);
|
|
19761
19761
|
return QO(r)(e, t);
|
|
19762
19762
|
};
|
|
19763
19763
|
function hb(o, e) {
|
|
@@ -19799,7 +19799,7 @@ var lj = ({ keepMarks: o = !0 } = {}) => ({ tr: e, state: t, dispatch: r, editor
|
|
|
19799
19799
|
return h;
|
|
19800
19800
|
}, dj = (o, e = {}) => ({ tr: t, state: r, dispatch: i, editor: n }) => {
|
|
19801
19801
|
var a;
|
|
19802
|
-
const s =
|
|
19802
|
+
const s = nt(o, r.schema), { $from: l, $to: d } = r.selection, p = r.selection.node;
|
|
19803
19803
|
if (p && p.isBlock || l.depth < 2 || !l.sameParent(d))
|
|
19804
19804
|
return !1;
|
|
19805
19805
|
const u = l.node(-1);
|
|
@@ -19889,7 +19889,7 @@ function pj(o) {
|
|
|
19889
19889
|
return Pe.between(r, i);
|
|
19890
19890
|
}
|
|
19891
19891
|
var cj = (o, e, t, r = {}) => ({ editor: i, tr: n, state: a, dispatch: s, chain: l, commands: d, can: p }) => {
|
|
19892
|
-
const { extensions: u, splittableMarks: b } = i.extensionManager, m =
|
|
19892
|
+
const { extensions: u, splittableMarks: b } = i.extensionManager, m = nt(o, a.schema), h = nt(e, a.schema), { selection: x, storedMarks: v } = a, { $from: k, $to: T } = x, C = k.blockRange(T), B = v || x.$to.parentOffset && x.$from.marks();
|
|
19893
19893
|
if (!C)
|
|
19894
19894
|
return !1;
|
|
19895
19895
|
const A = ed((N) => Ad(N.type.name, u))(x), H = x.from === 0 && x.to === a.doc.content.size, M = a.doc.content.content, I = M.length === 1 ? M[0] : null, $ = H && I && Ad(I.type.name, u) ? {
|
|
@@ -19913,11 +19913,11 @@ var cj = (o, e, t, r = {}) => ({ editor: i, tr: n, state: a, dispatch: s, chain:
|
|
|
19913
19913
|
const { extendEmptyMarkRange: n = !1 } = t, a = mr(o, r.schema);
|
|
19914
19914
|
return Lp(r, a, e) ? i.unsetMark(a, { extendEmptyMarkRange: n }) : i.setMark(a, e);
|
|
19915
19915
|
}, bj = (o, e, t = {}) => ({ state: r, commands: i }) => {
|
|
19916
|
-
const n =
|
|
19916
|
+
const n = nt(o, r.schema), a = nt(e, r.schema), s = Kr(r, n, t);
|
|
19917
19917
|
let l;
|
|
19918
19918
|
return r.selection.$anchor.sameParent(r.selection.$head) && (l = r.selection.$anchor.parent.attrs), s ? i.setNode(a, l) : i.setNode(n, { ...l, ...t });
|
|
19919
19919
|
}, mj = (o, e = {}) => ({ state: t, commands: r }) => {
|
|
19920
|
-
const i =
|
|
19920
|
+
const i = nt(o, t.schema);
|
|
19921
19921
|
return Kr(t, i, e) ? r.lift(i) : r.wrapIn(i, e);
|
|
19922
19922
|
}, gj = () => ({ state: o, dispatch: e }) => {
|
|
19923
19923
|
const t = o.plugins;
|
|
@@ -19985,7 +19985,7 @@ var cj = (o, e, t, r = {}) => ({ editor: i, tr: n, state: a, dispatch: s, chain:
|
|
|
19985
19985
|
);
|
|
19986
19986
|
if (!s)
|
|
19987
19987
|
return !1;
|
|
19988
|
-
s === "node" && (n =
|
|
19988
|
+
s === "node" && (n = nt(o, r.schema)), s === "mark" && (a = mr(o, r.schema));
|
|
19989
19989
|
let l = !1;
|
|
19990
19990
|
return t.selection.ranges.forEach((d) => {
|
|
19991
19991
|
const p = d.$from.pos, u = d.$to.pos;
|
|
@@ -20024,10 +20024,10 @@ var cj = (o, e, t, r = {}) => ({ editor: i, tr: n, state: a, dispatch: s, chain:
|
|
|
20024
20024
|
}));
|
|
20025
20025
|
}), l;
|
|
20026
20026
|
}, vj = (o, e = {}) => ({ state: t, dispatch: r }) => {
|
|
20027
|
-
const i =
|
|
20027
|
+
const i = nt(o, t.schema);
|
|
20028
20028
|
return qO(i, e)(t, r);
|
|
20029
20029
|
}, wj = (o, e = {}) => ({ state: t, dispatch: r }) => {
|
|
20030
|
-
const i =
|
|
20030
|
+
const i = nt(o, t.schema);
|
|
20031
20031
|
return UO(i, e)(t, r);
|
|
20032
20032
|
}, Sj = class {
|
|
20033
20033
|
constructor() {
|
|
@@ -20930,7 +20930,7 @@ var od = class {
|
|
|
20930
20930
|
options: t.options,
|
|
20931
20931
|
storage: this.editor.extensionStorage[t.name],
|
|
20932
20932
|
editor: o,
|
|
20933
|
-
type:
|
|
20933
|
+
type: nt(t.name, this.schema)
|
|
20934
20934
|
}, n = xe(
|
|
20935
20935
|
t,
|
|
20936
20936
|
"addNodeView",
|
|
@@ -22699,7 +22699,7 @@ function us(o, e) {
|
|
|
22699
22699
|
return Bd.index = o, Bd.offset = e, Bd;
|
|
22700
22700
|
}
|
|
22701
22701
|
var Gj = class extends Error {
|
|
22702
|
-
},
|
|
22702
|
+
}, rt = class Ji {
|
|
22703
22703
|
/**
|
|
22704
22704
|
Create a slice. When specifying a non-zero open depth, you must
|
|
22705
22705
|
make sure that there are nodes of at least that depth at the
|
|
@@ -22779,7 +22779,7 @@ var Gj = class extends Error {
|
|
|
22779
22779
|
return new Ji(e, r, i);
|
|
22780
22780
|
}
|
|
22781
22781
|
};
|
|
22782
|
-
|
|
22782
|
+
rt.empty = new rt(ur.empty, 0, 0);
|
|
22783
22783
|
function w7(o, e, t) {
|
|
22784
22784
|
let { index: r, offset: i } = o.findIndex(e), n = o.maybeChild(r), { index: a, offset: s } = o.findIndex(t);
|
|
22785
22785
|
if (i == e || n.isText) {
|
|
@@ -23030,7 +23030,7 @@ var L7 = class Wn extends Ht {
|
|
|
23030
23030
|
super(), this.from = e, this.to = t, this.mark = r;
|
|
23031
23031
|
}
|
|
23032
23032
|
apply(e) {
|
|
23033
|
-
let t = e.slice(this.from, this.to), r = e.resolve(this.from), i = r.node(r.sharedDepth(this.to)), n = new
|
|
23033
|
+
let t = e.slice(this.from, this.to), r = e.resolve(this.from), i = r.node(r.sharedDepth(this.to)), n = new rt(Ic(t.content, (a, s) => !a.isAtom || !s.type.allowsMarkType(this.mark.type) ? a : a.mark(this.mark.addToSet(a.marks)), i), t.openStart, t.openEnd);
|
|
23034
23034
|
return qt.fromReplace(e, this.from, this.to, n);
|
|
23035
23035
|
}
|
|
23036
23036
|
invert() {
|
|
@@ -23069,7 +23069,7 @@ var E7 = class Gn extends Ht {
|
|
|
23069
23069
|
super(), this.from = e, this.to = t, this.mark = r;
|
|
23070
23070
|
}
|
|
23071
23071
|
apply(e) {
|
|
23072
|
-
let t = e.slice(this.from, this.to), r = new
|
|
23072
|
+
let t = e.slice(this.from, this.to), r = new rt(Ic(t.content, (i) => i.mark(this.mark.removeFromSet(i.marks)), e), t.openStart, t.openEnd);
|
|
23073
23073
|
return qt.fromReplace(e, this.from, this.to, r);
|
|
23074
23074
|
}
|
|
23075
23075
|
invert() {
|
|
@@ -23112,7 +23112,7 @@ var A7 = class Kn extends Ht {
|
|
|
23112
23112
|
if (!t)
|
|
23113
23113
|
return qt.fail("No node at mark step's position");
|
|
23114
23114
|
let r = t.type.create(t.attrs, null, this.mark.addToSet(t.marks));
|
|
23115
|
-
return qt.fromReplace(e, this.pos, this.pos + 1, new
|
|
23115
|
+
return qt.fromReplace(e, this.pos, this.pos + 1, new rt(ur.from(r), 0, t.isLeaf ? 0 : 1));
|
|
23116
23116
|
}
|
|
23117
23117
|
invert(e) {
|
|
23118
23118
|
let t = e.nodeAt(this.pos);
|
|
@@ -23156,7 +23156,7 @@ var $7 = class $p extends Ht {
|
|
|
23156
23156
|
if (!t)
|
|
23157
23157
|
return qt.fail("No node at mark step's position");
|
|
23158
23158
|
let r = t.type.create(t.attrs, null, this.mark.removeFromSet(t.marks));
|
|
23159
|
-
return qt.fromReplace(e, this.pos, this.pos + 1, new
|
|
23159
|
+
return qt.fromReplace(e, this.pos, this.pos + 1, new rt(ur.from(r), 0, t.isLeaf ? 0 : 1));
|
|
23160
23160
|
}
|
|
23161
23161
|
invert(e) {
|
|
23162
23162
|
let t = e.nodeAt(this.pos);
|
|
@@ -23209,10 +23209,10 @@ var Hc = class Ar extends Ht {
|
|
|
23209
23209
|
if (!(e instanceof Ar) || e.structure || this.structure)
|
|
23210
23210
|
return null;
|
|
23211
23211
|
if (this.from + this.slice.size == e.from && !this.slice.openEnd && !e.slice.openStart) {
|
|
23212
|
-
let t = this.slice.size + e.slice.size == 0 ?
|
|
23212
|
+
let t = this.slice.size + e.slice.size == 0 ? rt.empty : new rt(this.slice.content.append(e.slice.content), this.slice.openStart, e.slice.openEnd);
|
|
23213
23213
|
return new Ar(this.from, this.to + (e.to - e.from), t, this.structure);
|
|
23214
23214
|
} else if (e.to == this.from && !this.slice.openStart && !e.slice.openEnd) {
|
|
23215
|
-
let t = this.slice.size + e.slice.size == 0 ?
|
|
23215
|
+
let t = this.slice.size + e.slice.size == 0 ? rt.empty : new rt(e.slice.content.append(this.slice.content), e.slice.openStart, this.slice.openEnd);
|
|
23216
23216
|
return new Ar(e.from, this.to, t, this.structure);
|
|
23217
23217
|
} else
|
|
23218
23218
|
return null;
|
|
@@ -23227,7 +23227,7 @@ var Hc = class Ar extends Ht {
|
|
|
23227
23227
|
static fromJSON(e, t) {
|
|
23228
23228
|
if (typeof t.from != "number" || typeof t.to != "number")
|
|
23229
23229
|
throw new RangeError("Invalid input for ReplaceStep.fromJSON");
|
|
23230
|
-
return new Ar(t.from, t.to,
|
|
23230
|
+
return new Ar(t.from, t.to, rt.fromJSON(e, t.slice), !!t.structure);
|
|
23231
23231
|
}
|
|
23232
23232
|
};
|
|
23233
23233
|
Hc.MAP_BIAS = 1;
|
|
@@ -23286,7 +23286,7 @@ var _7 = class zs extends Ht {
|
|
|
23286
23286
|
static fromJSON(e, t) {
|
|
23287
23287
|
if (typeof t.from != "number" || typeof t.to != "number" || typeof t.gapFrom != "number" || typeof t.gapTo != "number" || typeof t.insert != "number")
|
|
23288
23288
|
throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");
|
|
23289
|
-
return new zs(t.from, t.to, t.gapFrom, t.gapTo,
|
|
23289
|
+
return new zs(t.from, t.to, t.gapFrom, t.gapTo, rt.fromJSON(e, t.slice), t.insert, !!t.structure);
|
|
23290
23290
|
}
|
|
23291
23291
|
};
|
|
23292
23292
|
Ht.jsonID("replaceAround", _7);
|
|
@@ -23320,7 +23320,7 @@ var Yj = class Os extends Ht {
|
|
|
23320
23320
|
r[n] = t.attrs[n];
|
|
23321
23321
|
r[this.attr] = this.value;
|
|
23322
23322
|
let i = t.type.create(r, null, t.marks);
|
|
23323
|
-
return qt.fromReplace(e, this.pos, this.pos + 1, new
|
|
23323
|
+
return qt.fromReplace(e, this.pos, this.pos + 1, new rt(ur.from(i), 0, t.isLeaf ? 0 : 1));
|
|
23324
23324
|
}
|
|
23325
23325
|
getMap() {
|
|
23326
23326
|
return Pi.empty;
|
|
@@ -23450,14 +23450,14 @@ var Hd = /* @__PURE__ */ Object.create(null), bt = class {
|
|
|
23450
23450
|
Replace the selection with a slice or, if no slice is given,
|
|
23451
23451
|
delete the selection. Will append to the given transaction.
|
|
23452
23452
|
*/
|
|
23453
|
-
replace(o, e =
|
|
23453
|
+
replace(o, e = rt.empty) {
|
|
23454
23454
|
let t = e.content.lastChild, r = null;
|
|
23455
23455
|
for (let a = 0; a < e.openEnd; a++)
|
|
23456
23456
|
r = t, t = t.lastChild;
|
|
23457
23457
|
let i = o.steps.length, n = this.ranges;
|
|
23458
23458
|
for (let a = 0; a < n.length; a++) {
|
|
23459
23459
|
let { $from: s, $to: l } = n[a], d = o.mapping.slice(i);
|
|
23460
|
-
o.replaceRange(d.map(s.pos), d.map(l.pos), a ?
|
|
23460
|
+
o.replaceRange(d.map(s.pos), d.map(l.pos), a ? rt.empty : e), a == 0 && Cb(o, i, (t ? t.isInline : r && r.isTextblock) ? -1 : 1);
|
|
23461
23461
|
}
|
|
23462
23462
|
}
|
|
23463
23463
|
/**
|
|
@@ -23582,8 +23582,8 @@ var mn = class Jn extends bt {
|
|
|
23582
23582
|
let i = e.resolve(t.map(this.anchor));
|
|
23583
23583
|
return new Jn(i.parent.inlineContent ? i : r, r);
|
|
23584
23584
|
}
|
|
23585
|
-
replace(e, t =
|
|
23586
|
-
if (super.replace(e, t), t ==
|
|
23585
|
+
replace(e, t = rt.empty) {
|
|
23586
|
+
if (super.replace(e, t), t == rt.empty) {
|
|
23587
23587
|
let r = this.$from.marksAcross(this.$to);
|
|
23588
23588
|
r && e.ensureMarks(r);
|
|
23589
23589
|
}
|
|
@@ -23657,7 +23657,7 @@ var B7 = class I7 {
|
|
|
23657
23657
|
return r ? bt.near(n) : new Yn(n);
|
|
23658
23658
|
}
|
|
23659
23659
|
content() {
|
|
23660
|
-
return new
|
|
23660
|
+
return new rt(ur.from(this.node), 0, 0);
|
|
23661
23661
|
}
|
|
23662
23662
|
eq(e) {
|
|
23663
23663
|
return e instanceof Yn && e.anchor == this.anchor;
|
|
@@ -23711,8 +23711,8 @@ var Zj = class H7 {
|
|
|
23711
23711
|
constructor(e) {
|
|
23712
23712
|
super(e.resolve(0), e.resolve(e.content.size));
|
|
23713
23713
|
}
|
|
23714
|
-
replace(e, t =
|
|
23715
|
-
if (t ==
|
|
23714
|
+
replace(e, t = rt.empty) {
|
|
23715
|
+
if (t == rt.empty) {
|
|
23716
23716
|
e.delete(0, e.doc.content.size);
|
|
23717
23717
|
let r = bt.atStart(e.doc);
|
|
23718
23718
|
r.eq(e.selection) || e.setSelection(r);
|
|
@@ -25891,7 +25891,7 @@ QV(uq, {
|
|
|
25891
25891
|
nextListIsHigher: () => X7
|
|
25892
25892
|
});
|
|
25893
25893
|
var ad = (o, e) => {
|
|
25894
|
-
const { $from: t } = e.selection, r =
|
|
25894
|
+
const { $from: t } = e.selection, r = nt(o, e.schema);
|
|
25895
25895
|
let i = null, n = t.depth, a = t.pos, s = null;
|
|
25896
25896
|
for (; n > 0 && s === null; )
|
|
25897
25897
|
i = t.node(n), i.type === r ? s = n : (n -= 1, a -= 1);
|
|
@@ -25944,7 +25944,7 @@ var ad = (o, e) => {
|
|
|
25944
25944
|
}, gq = (o, e, t) => {
|
|
25945
25945
|
if (!t)
|
|
25946
25946
|
return !1;
|
|
25947
|
-
const r =
|
|
25947
|
+
const r = nt(o, e.schema);
|
|
25948
25948
|
let i = !1;
|
|
25949
25949
|
return t.descendants((n) => {
|
|
25950
25950
|
n.type === r && (i = !0);
|
|
@@ -33726,7 +33726,7 @@ const yo = {
|
|
|
33726
33726
|
}, K = () => {
|
|
33727
33727
|
pe && (ne && (clearTimeout(ne), ne = null), i(r("Product section settings saved"), "success"), pe = !1);
|
|
33728
33728
|
}, Ae = P(() => (N.value, n.isSelectedProductSection())), He = () => {
|
|
33729
|
-
const Y = n.getSelectedProductSectionOptions(), D = Y.mobileColumns ?? 1, q = Y.cardStyle ?? "minimal", Ce = Y.roundedImages ?? !1, Re = Y.openInNewTab ?? !1, Ve = Y.buttonStyle ?? "text", ht = Y.roundedButtons ?? !1,
|
|
33729
|
+
const Y = n.getSelectedProductSectionOptions(), D = Y.mobileColumns ?? 1, q = Y.cardStyle ?? "minimal", Ce = Y.roundedImages ?? !1, Re = Y.openInNewTab ?? !1, Ve = Y.buttonStyle ?? "text", ht = Y.roundedButtons ?? !1, at = Y.hidePrice ?? !1, Ye = Y.hideImage ?? !1, Gt = Y.hideButton ?? !1, Mt = n.getSelectedProductSectionContentAvailability();
|
|
33730
33730
|
J = {
|
|
33731
33731
|
layout: Y.layout,
|
|
33732
33732
|
mobileColumns: D,
|
|
@@ -33735,10 +33735,10 @@ const yo = {
|
|
|
33735
33735
|
openInNewTab: Re,
|
|
33736
33736
|
buttonStyle: Ve,
|
|
33737
33737
|
roundedButtons: ht,
|
|
33738
|
-
hidePrice:
|
|
33738
|
+
hidePrice: at,
|
|
33739
33739
|
hideImage: Ye,
|
|
33740
33740
|
hideButton: Gt
|
|
33741
|
-
}, W.value = Y.layout, V.value = D, Z.value = q, se.value = Ce, de.value = Re, Q.value = Ve, ke.value = ht, je.value =
|
|
33741
|
+
}, W.value = Y.layout, V.value = D, Z.value = q, se.value = Ce, de.value = Re, Q.value = Ve, ke.value = ht, je.value = at, Dt.value = Ye, dt.value = Gt, Ct.value = Mt.hasPrices, _e.value = Mt.hasImages, ye.value = Mt.hasButtons, ue.value = Mt.hasLinks, N.value++, F.value = !0;
|
|
33742
33742
|
}, Tt = () => {
|
|
33743
33743
|
K(), F.value = !1, J = null;
|
|
33744
33744
|
}, Rt = async () => {
|
|
@@ -33811,12 +33811,12 @@ const yo = {
|
|
|
33811
33811
|
}
|
|
33812
33812
|
function Va(Y, D = 3) {
|
|
33813
33813
|
const q = Y * D, Ce = 100 / Y, Re = Math.max(Ce - 3, 1), Ve = Y * 100, ht = (100 / Y).toFixed(3);
|
|
33814
|
-
let
|
|
33814
|
+
let at = `@keyframes pbx-isl-r{0%,${Re.toFixed(3)}%{transform:translateX(0)}`;
|
|
33815
33815
|
for (let ve = 1; ve < Y; ve++) {
|
|
33816
33816
|
const j = -(100 * ve / Y).toFixed(3), R = (ve * Ce).toFixed(3), fe = (ve * Ce + Re).toFixed(3);
|
|
33817
|
-
|
|
33817
|
+
at += `${R}%,${fe}%{transform:translateX(${j}%)}`;
|
|
33818
33818
|
}
|
|
33819
|
-
|
|
33819
|
+
at += "99%,100%{transform:translateX(0)}}";
|
|
33820
33820
|
let Ye = "", Gt = "";
|
|
33821
33821
|
for (let ve = 0; ve < Y; ve++) {
|
|
33822
33822
|
const j = (ve * Ce).toFixed(3), R = (ve * Ce + Re).toFixed(3), fe = Math.min((ve + 1) * Ce, 100).toFixed(3), X = "rgba(255,255,255,0.55)", ze = "rgba(255,255,255,1)";
|
|
@@ -33845,7 +33845,7 @@ const yo = {
|
|
|
33845
33845
|
return Ge += "{opacity:1;background:rgba(255,255,255,0.9);color:#111;border-radius:9999px;padding:0.1rem 0.55rem;text-shadow:none}", [
|
|
33846
33846
|
".pbx-isl-t{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;-webkit-overflow-scrolling:touch;scrollbar-width:none;-ms-overflow-style:none}",
|
|
33847
33847
|
".pbx-isl-t::-webkit-scrollbar{display:none}",
|
|
33848
|
-
|
|
33848
|
+
at,
|
|
33849
33849
|
`[data-isl][data-isl-auto] .pbx-isl-t{overflow:hidden!important;scroll-snap-type:none!important;width:${Ve}%!important;animation:pbx-isl-r ${q}s infinite;pointer-events:none}`,
|
|
33850
33850
|
`[data-isl][data-isl-auto] .pbx-isl-t>div{min-width:${ht}%!important}`,
|
|
33851
33851
|
".pbx-isl-dot{display:inline-block;width:0.5rem;height:0.5rem;border-radius:50%;background:rgba(255,255,255,0.55);cursor:pointer}",
|
|
@@ -33867,13 +33867,13 @@ const yo = {
|
|
|
33867
33867
|
if (!D) return;
|
|
33868
33868
|
const q = D.querySelector(".pbx-isl-t");
|
|
33869
33869
|
if (!q) return;
|
|
33870
|
-
const Ce = q.children.length, Re = D.closest("section"), Ve = Re == null ? void 0 : Re.querySelector("style"), ht = q.querySelector("img"),
|
|
33870
|
+
const Ce = q.children.length, Re = D.closest("section"), Ve = Re == null ? void 0 : Re.querySelector("style"), ht = q.querySelector("img"), at = (ht == null ? void 0 : ht.getAttribute("src")) || "";
|
|
33871
33871
|
if (Y > Ce)
|
|
33872
33872
|
for (let Ze = Ce; Ze < Y; Ze++) {
|
|
33873
33873
|
const Ge = document.createElement("div");
|
|
33874
33874
|
Ge.style.minWidth = "100%", Ge.style.scrollSnapAlign = "start";
|
|
33875
33875
|
const ve = document.createElement("img");
|
|
33876
|
-
ve.src =
|
|
33876
|
+
ve.src = at, ve.style.width = "100%", ve.style.aspectRatio = "16/9", ve.style.objectFit = "cover", ve.style.display = "block", ve.alt = `Slide ${Ze + 1}`, Ge.appendChild(ve), q.appendChild(Ge);
|
|
33877
33877
|
}
|
|
33878
33878
|
else if (Y < Ce)
|
|
33879
33879
|
for (let Ze = Ce - 1; Ze >= Y; Ze--)
|
|
@@ -33939,8 +33939,8 @@ const yo = {
|
|
|
33939
33939
|
if (Ve.hostname.includes("youtube.com") || Ve.hostname.includes("youtu.be")) {
|
|
33940
33940
|
let ht = "";
|
|
33941
33941
|
if (Ve.hostname.includes("youtu.be") ? ht = Ve.pathname.slice(1) : Ve.pathname.includes("/embed/") ? ht = (Ce = Ve.pathname.split("/embed/")[1]) == null ? void 0 : Ce.split("?")[0] : Ve.pathname.includes("/watch") && (ht = Ve.searchParams.get("v") ?? ""), ht) {
|
|
33942
|
-
const
|
|
33943
|
-
Ye &&
|
|
33942
|
+
const at = new URLSearchParams(), Ye = Ve.searchParams.get("list");
|
|
33943
|
+
Ye && at.append("list", Ye), at.append("enablejsapi", "1"), at.append("origin", window.location.origin), at.append("autoplay", "0"), Re = `https://www.youtube.com/embed/${ht}?${at.toString()}`;
|
|
33944
33944
|
}
|
|
33945
33945
|
}
|
|
33946
33946
|
} catch (Ve) {
|
|
@@ -36533,7 +36533,7 @@ const UQ = /* @__PURE__ */ $i(jQ, [["render", qQ]]), WQ = ["srcdoc"], ep = 280,
|
|
|
36533
36533
|
], 10, Lee)
|
|
36534
36534
|
]));
|
|
36535
36535
|
}
|
|
36536
|
-
}),
|
|
36536
|
+
}), it = /* @__PURE__ */ $i(Eee, [["__scopeId", "data-v-a668602c"]]), Aee = {
|
|
36537
36537
|
key: 0,
|
|
36538
36538
|
class: "pbx-flex pbx-flex-row pbx-flex-wrap pbx-gap-2"
|
|
36539
36539
|
}, $ee = ["onClick"], _ee = { class: "pbx-flex pbx-items-center pbx-gap-1" }, Bee = { class: "pbx-mr-1" }, Iee = {
|
|
@@ -36595,7 +36595,7 @@ const UQ = /* @__PURE__ */ $i(jQ, [["render", qQ]]), WQ = ["srcdoc"], ep = 280,
|
|
|
36595
36595
|
}
|
|
36596
36596
|
s.value = "", t.handleAddClasses(d), await t.initializeElementStyles(), a.value = "";
|
|
36597
36597
|
};
|
|
36598
|
-
return (d, p) => (f(), be(
|
|
36598
|
+
return (d, p) => (f(), be(it, null, {
|
|
36599
36599
|
title: U(() => [
|
|
36600
36600
|
Oe(y(g(e)("Generated CSS")), 1)
|
|
36601
36601
|
]),
|
|
@@ -36669,7 +36669,7 @@ const UQ = /* @__PURE__ */ $i(jQ, [["render", qQ]]), WQ = ["srcdoc"], ep = 280,
|
|
|
36669
36669
|
}
|
|
36670
36670
|
l.value = "", t.handleAddStyle(b, m), await t.initializeElementStyles(), a.value = "", s.value = "";
|
|
36671
36671
|
};
|
|
36672
|
-
return (b, m) => (f(), be(
|
|
36672
|
+
return (b, m) => (f(), be(it, null, {
|
|
36673
36673
|
title: U(() => [
|
|
36674
36674
|
Oe(y(g(e)("Inline Styles")), 1)
|
|
36675
36675
|
]),
|
|
@@ -36853,7 +36853,7 @@ function dte(o) {
|
|
|
36853
36853
|
`, !p && !wR(l, !0) && r++;
|
|
36854
36854
|
}), i.trimEnd();
|
|
36855
36855
|
}
|
|
36856
|
-
function
|
|
36856
|
+
function ot(o = 200) {
|
|
36857
36857
|
return new Promise((e) => {
|
|
36858
36858
|
setTimeout(e, o);
|
|
36859
36859
|
});
|
|
@@ -36868,7 +36868,7 @@ function ud() {
|
|
|
36868
36868
|
}
|
|
36869
36869
|
async function t() {
|
|
36870
36870
|
const r = qe(), { showToast: i } = kt(), { translate: n } = Se();
|
|
36871
|
-
Vi.value = !0, In.value = null, await
|
|
36871
|
+
Vi.value = !0, In.value = null, await ot(300);
|
|
36872
36872
|
const a = rp.value === "page" ? await r.applyModifiedComponents(Ls.value) : await r.applyModifiedHTML(Ls.value);
|
|
36873
36873
|
if (a) {
|
|
36874
36874
|
In.value = a, i(a, "error"), Vi.value = !1;
|
|
@@ -36897,7 +36897,7 @@ const pte = { class: "pbx-editorSectionDesc" }, cte = { class: "pbx-inspectorAct
|
|
|
36897
36897
|
}, s = () => {
|
|
36898
36898
|
n.value && r(e("Element HTML"), n.value.outerHTML);
|
|
36899
36899
|
};
|
|
36900
|
-
return (l, d) => (f(), be(
|
|
36900
|
+
return (l, d) => (f(), be(it, null, {
|
|
36901
36901
|
title: U(() => [
|
|
36902
36902
|
Oe(y(g(e)("Element HTML")), 1)
|
|
36903
36903
|
]),
|
|
@@ -36960,10 +36960,10 @@ const mte = { class: "pbx-editorFieldGroup" }, gte = { class: "pbx-editorFieldGr
|
|
|
36960
36960
|
a.value = !1;
|
|
36961
36961
|
};
|
|
36962
36962
|
}, k = async function(T) {
|
|
36963
|
-
n.value = !0, T && typeof T == "string" && T.length > 2 && (await bte(T), await
|
|
36963
|
+
n.value = !0, T && typeof T == "string" && T.length > 2 && (await bte(T), await ot(200), n.value = !1);
|
|
36964
36964
|
};
|
|
36965
36965
|
return (T, C) => (f(), w(re, null, [
|
|
36966
|
-
z(
|
|
36966
|
+
z(it, {
|
|
36967
36967
|
ref_key: "imageAccordionRef",
|
|
36968
36968
|
ref: i
|
|
36969
36969
|
}, {
|
|
@@ -37246,7 +37246,7 @@ const mte = { class: "pbx-editorFieldGroup" }, gte = { class: "pbx-editorFieldGr
|
|
|
37246
37246
|
__name: "OpacityEditor",
|
|
37247
37247
|
setup(o) {
|
|
37248
37248
|
const { translate: e } = Se();
|
|
37249
|
-
return (t, r) => (f(), be(
|
|
37249
|
+
return (t, r) => (f(), be(it, null, {
|
|
37250
37250
|
title: U(() => [
|
|
37251
37251
|
Oe(y(g(e)("Opacity & Transparency")), 1)
|
|
37252
37252
|
]),
|
|
@@ -37850,7 +37850,7 @@ const mte = { class: "pbx-editorFieldGroup" }, gte = { class: "pbx-editorFieldGr
|
|
|
37850
37850
|
const Z = n.value ? Le.leftPadding : Le.leftMargin, se = $(Z, m.value, V);
|
|
37851
37851
|
m.value = se, n.value ? r.handleLeftPadding(se) : r.handleLeftMargin(se);
|
|
37852
37852
|
}
|
|
37853
|
-
return (V, Z) => (f(), be(
|
|
37853
|
+
return (V, Z) => (f(), be(it, null, {
|
|
37854
37854
|
title: U(() => [
|
|
37855
37855
|
Oe(y(g(t)(n.value ? "Padding" : "Margin")), 1)
|
|
37856
37856
|
]),
|
|
@@ -38053,7 +38053,7 @@ const mte = { class: "pbx-editorFieldGroup" }, gte = { class: "pbx-editorFieldGr
|
|
|
38053
38053
|
l.value = h, await t.initializeElementStyles();
|
|
38054
38054
|
},
|
|
38055
38055
|
{ immediate: !0 }
|
|
38056
|
-
), (h, x) => (f(), be(
|
|
38056
|
+
), (h, x) => (f(), be(it, null, {
|
|
38057
38057
|
title: U(() => [
|
|
38058
38058
|
Oe(y(g(e)("Border Radius")), 1)
|
|
38059
38059
|
]),
|
|
@@ -38427,7 +38427,7 @@ const mte = { class: "pbx-editorFieldGroup" }, gte = { class: "pbx-editorFieldGr
|
|
|
38427
38427
|
a.value = p, await t.initializeElementStyles();
|
|
38428
38428
|
},
|
|
38429
38429
|
{ immediate: !0 }
|
|
38430
|
-
), (p, u) => (f(), be(
|
|
38430
|
+
), (p, u) => (f(), be(it, null, {
|
|
38431
38431
|
title: U(() => [
|
|
38432
38432
|
Oe(y(g(e)("Border Style, Width & Color")), 1)
|
|
38433
38433
|
]),
|
|
@@ -38719,7 +38719,7 @@ const mte = { class: "pbx-editorFieldGroup" }, gte = { class: "pbx-editorFieldGr
|
|
|
38719
38719
|
__name: "ThemeColorSettingsEditor",
|
|
38720
38720
|
setup(o) {
|
|
38721
38721
|
const { translate: e } = Se();
|
|
38722
|
-
return (t, r) => (f(), be(
|
|
38722
|
+
return (t, r) => (f(), be(it, null, {
|
|
38723
38723
|
title: U(() => [
|
|
38724
38724
|
Oe(y(g(e)("Theme & colors")), 1)
|
|
38725
38725
|
]),
|
|
@@ -38765,7 +38765,7 @@ const mte = { class: "pbx-editorFieldGroup" }, gte = { class: "pbx-editorFieldGr
|
|
|
38765
38765
|
}
|
|
38766
38766
|
}
|
|
38767
38767
|
};
|
|
38768
|
-
return (l, d) => (f(), be(
|
|
38768
|
+
return (l, d) => (f(), be(it, null, {
|
|
38769
38769
|
title: U(() => [
|
|
38770
38770
|
Oe(y(g(e)("Page Meta")), 1)
|
|
38771
38771
|
]),
|
|
@@ -38964,7 +38964,7 @@ const mte = { class: "pbx-editorFieldGroup" }, gte = { class: "pbx-editorFieldGr
|
|
|
38964
38964
|
i.value = !1;
|
|
38965
38965
|
};
|
|
38966
38966
|
return (l, d) => (f(), w(re, null, [
|
|
38967
|
-
z(
|
|
38967
|
+
z(it, null, {
|
|
38968
38968
|
title: U(() => [
|
|
38969
38969
|
Oe(y(g(e)("SEO Check")), 1)
|
|
38970
38970
|
]),
|
|
@@ -39002,11 +39002,11 @@ const mte = { class: "pbx-editorFieldGroup" }, gte = { class: "pbx-editorFieldGr
|
|
|
39002
39002
|
n.value = !1;
|
|
39003
39003
|
}, h.value = function() {
|
|
39004
39004
|
}, x.value = async function() {
|
|
39005
|
-
i.value = !0, await r.clearHtmlSelection(), await r.handleFormSubmission(), await
|
|
39005
|
+
i.value = !0, await r.clearHtmlSelection(), await r.handleFormSubmission(), await ot(500), n.value = !1, i.value = !1, t(e("All components removed"), "success");
|
|
39006
39006
|
};
|
|
39007
39007
|
};
|
|
39008
39008
|
return (k, T) => (f(), w(re, null, [
|
|
39009
|
-
z(
|
|
39009
|
+
z(it, null, {
|
|
39010
39010
|
title: U(() => [
|
|
39011
39011
|
Oe(y(g(e)("Page layout")), 1)
|
|
39012
39012
|
]),
|
|
@@ -39067,7 +39067,7 @@ const mte = { class: "pbx-editorFieldGroup" }, gte = { class: "pbx-editorFieldGr
|
|
|
39067
39067
|
emits: ["open"],
|
|
39068
39068
|
setup(o) {
|
|
39069
39069
|
const { translate: e } = Se();
|
|
39070
|
-
return (t, r) => (f(), be(
|
|
39070
|
+
return (t, r) => (f(), be(it, null, {
|
|
39071
39071
|
title: U(() => [
|
|
39072
39072
|
Oe(y(g(e)("Page Design")), 1)
|
|
39073
39073
|
]),
|
|
@@ -39103,7 +39103,7 @@ const mte = { class: "pbx-editorFieldGroup" }, gte = { class: "pbx-editorFieldGr
|
|
|
39103
39103
|
const s = await t.generateFullPageHtml();
|
|
39104
39104
|
r(e("Page HTML"), s);
|
|
39105
39105
|
};
|
|
39106
|
-
return (s, l) => (f(), be(
|
|
39106
|
+
return (s, l) => (f(), be(it, null, {
|
|
39107
39107
|
title: U(() => [
|
|
39108
39108
|
Oe(y(g(e)("HTML Editor")), 1)
|
|
39109
39109
|
]),
|
|
@@ -39129,7 +39129,7 @@ const mte = { class: "pbx-editorFieldGroup" }, gte = { class: "pbx-editorFieldGr
|
|
|
39129
39129
|
}
|
|
39130
39130
|
}), Dr = function(o) {
|
|
39131
39131
|
return !o || typeof o == "object" && o.constructor === Object && Object.keys(o).length === 0;
|
|
39132
|
-
}, Nre = "3.5.
|
|
39132
|
+
}, Nre = "3.5.52", Fre = (o) => /^[a-z][a-z0-9+.-]*:/i.test(o) || o.startsWith("//");
|
|
39133
39133
|
function LR(o, e) {
|
|
39134
39134
|
if (!o)
|
|
39135
39135
|
return console.warn("No valid pagebuilder element passed"), "";
|
|
@@ -40038,7 +40038,7 @@ const jre = ["title", "aria-label"], Vre = { class: "pbx-inspectorIdChipText" },
|
|
|
40038
40038
|
setup(o) {
|
|
40039
40039
|
const { translate: e } = Se();
|
|
40040
40040
|
return (t, r) => (f(), w("div", Cse, [
|
|
40041
|
-
z(
|
|
40041
|
+
z(it, null, {
|
|
40042
40042
|
title: U(() => [
|
|
40043
40043
|
Oe(y(g(e)("App & Resource")), 1)
|
|
40044
40044
|
]),
|
|
@@ -40047,7 +40047,7 @@ const jre = ["title", "aria-label"], Vre = { class: "pbx-inspectorIdChipText" },
|
|
|
40047
40047
|
]),
|
|
40048
40048
|
_: 1
|
|
40049
40049
|
}),
|
|
40050
|
-
z(
|
|
40050
|
+
z(it, null, {
|
|
40051
40051
|
title: U(() => [
|
|
40052
40052
|
Oe(y(g(e)("User & Settings")), 1)
|
|
40053
40053
|
]),
|
|
@@ -40056,7 +40056,7 @@ const jre = ["title", "aria-label"], Vre = { class: "pbx-inspectorIdChipText" },
|
|
|
40056
40056
|
]),
|
|
40057
40057
|
_: 1
|
|
40058
40058
|
}),
|
|
40059
|
-
z(
|
|
40059
|
+
z(it, null, {
|
|
40060
40060
|
title: U(() => [
|
|
40061
40061
|
Oe(y(g(e)("Full Configuration")), 1)
|
|
40062
40062
|
]),
|
|
@@ -40071,7 +40071,7 @@ const jre = ["title", "aria-label"], Vre = { class: "pbx-inspectorIdChipText" },
|
|
|
40071
40071
|
__name: "DownloadHtmlSettingsSection",
|
|
40072
40072
|
setup(o) {
|
|
40073
40073
|
const { translate: e } = Se();
|
|
40074
|
-
return (t, r) => (f(), be(
|
|
40074
|
+
return (t, r) => (f(), be(it, null, {
|
|
40075
40075
|
title: U(() => [
|
|
40076
40076
|
Oe(y(g(e)("Download HTML")), 1)
|
|
40077
40077
|
]),
|
|
@@ -40085,7 +40085,7 @@ const jre = ["title", "aria-label"], Vre = { class: "pbx-inspectorIdChipText" },
|
|
|
40085
40085
|
__name: "SelectedHtmlSettingsSection",
|
|
40086
40086
|
setup(o) {
|
|
40087
40087
|
const { translate: e } = Se();
|
|
40088
|
-
return (t, r) => (f(), be(
|
|
40088
|
+
return (t, r) => (f(), be(it, null, {
|
|
40089
40089
|
title: U(() => [
|
|
40090
40090
|
Oe(y(g(e)("Selected HTML")), 1)
|
|
40091
40091
|
]),
|
|
@@ -40185,7 +40185,7 @@ const jre = ["title", "aria-label"], Vre = { class: "pbx-inspectorIdChipText" },
|
|
|
40185
40185
|
u.value = $, await t.initializeElementStyles();
|
|
40186
40186
|
},
|
|
40187
40187
|
{ immediate: !0 }
|
|
40188
|
-
), ($, L) => (f(), be(
|
|
40188
|
+
), ($, L) => (f(), be(it, null, {
|
|
40189
40189
|
title: U(() => [
|
|
40190
40190
|
Oe(y(g(e)("Typographies")), 1)
|
|
40191
40191
|
]),
|
|
@@ -40396,9 +40396,9 @@ const jre = ["title", "aria-label"], Vre = { class: "pbx-inspectorIdChipText" },
|
|
|
40396
40396
|
});
|
|
40397
40397
|
}
|
|
40398
40398
|
const h = S(!1), x = S(!1), v = async function() {
|
|
40399
|
-
h.value = !0, x.value = !0, await
|
|
40399
|
+
h.value = !0, x.value = !0, await ot(200), i.setToggleGlobalHtmlMode(!0), await r.globalPageStyles(), x.value = !1;
|
|
40400
40400
|
}, k = async function() {
|
|
40401
|
-
x.value = !0, await
|
|
40401
|
+
x.value = !0, await ot(200);
|
|
40402
40402
|
try {
|
|
40403
40403
|
await r.handleManualSave(), t(e("Page saved successfully"), "success");
|
|
40404
40404
|
} catch {
|
|
@@ -40639,7 +40639,7 @@ const ER = /* @__PURE__ */ $i(Xle, [["render", Zle]]), ede = { class: "pbx-text-
|
|
|
40639
40639
|
}
|
|
40640
40640
|
async function B() {
|
|
40641
40641
|
if (!(!h.value || d.value)) {
|
|
40642
|
-
d.value = !0, await
|
|
40642
|
+
d.value = !0, await ot(400);
|
|
40643
40643
|
try {
|
|
40644
40644
|
await i.handleImageAltText(s.value), l.value = s.value.trim(), a.value++, r(t("Image settings saved"), "success");
|
|
40645
40645
|
} finally {
|
|
@@ -41217,7 +41217,7 @@ const ape = { class: "lg:pbx-min-w-full lg:pbx-max-w-full lg:pbx-w-full pbx-mx-a
|
|
|
41217
41217
|
const dt = S(!1);
|
|
41218
41218
|
le(je, async (j) => {
|
|
41219
41219
|
if (j && !Dt) {
|
|
41220
|
-
dt.value = !0, await
|
|
41220
|
+
dt.value = !0, await ot(200), await v(j), t.changeLanguage(j);
|
|
41221
41221
|
const R = JSON.parse(localStorage.getItem("userSettingsPageBuilder") ?? "{}") || {};
|
|
41222
41222
|
R.lang = j, localStorage.setItem("userSettingsPageBuilder", JSON.stringify(R)), dt.value = !1;
|
|
41223
41223
|
}
|
|
@@ -41444,7 +41444,7 @@ const ape = { class: "lg:pbx-min-w-full lg:pbx-max-w-full lg:pbx-w-full pbx-mx-a
|
|
|
41444
41444
|
}
|
|
41445
41445
|
fe ? Mt() : Gt();
|
|
41446
41446
|
}
|
|
41447
|
-
function
|
|
41447
|
+
function at(j = {}) {
|
|
41448
41448
|
const R = j.remeasureWidth ?? !0, fe = fo.value, X = fe && fe.querySelector("#pbxEditToolbar");
|
|
41449
41449
|
if (!fe || !X) return;
|
|
41450
41450
|
const ze = fe.querySelector("[selected]");
|
|
@@ -41466,16 +41466,16 @@ const ape = { class: "lg:pbx-min-w-full lg:pbx-max-w-full lg:pbx-w-full pbx-mx-a
|
|
|
41466
41466
|
X.classList.remove("is-visible"), X.removeAttribute("style");
|
|
41467
41467
|
}
|
|
41468
41468
|
const Ye = function() {
|
|
41469
|
-
|
|
41469
|
+
at({ remeasureWidth: !0 }), requestAnimationFrame(() => at({ remeasureWidth: !0 }));
|
|
41470
41470
|
};
|
|
41471
41471
|
function Gt() {
|
|
41472
41472
|
cancelAnimationFrame(Yo), Yo = requestAnimationFrame(() => {
|
|
41473
|
-
Yo = 0,
|
|
41473
|
+
Yo = 0, at({ remeasureWidth: !1 });
|
|
41474
41474
|
});
|
|
41475
41475
|
}
|
|
41476
41476
|
function Mt() {
|
|
41477
41477
|
cancelAnimationFrame(Yo), Yo = requestAnimationFrame(() => {
|
|
41478
|
-
Yo = 0,
|
|
41478
|
+
Yo = 0, at({ remeasureWidth: !0 });
|
|
41479
41479
|
});
|
|
41480
41480
|
}
|
|
41481
41481
|
le(
|
|
@@ -41521,7 +41521,7 @@ const ape = { class: "lg:pbx-min-w-full lg:pbx-max-w-full lg:pbx-w-full pbx-mx-a
|
|
|
41521
41521
|
attributeFilter: ["selected"],
|
|
41522
41522
|
childList: !0,
|
|
41523
41523
|
subtree: !0
|
|
41524
|
-
}), R.addEventListener("scroll", q, { passive: !0 }), window.addEventListener("scroll", Gt, { passive: !0 }), window.addEventListener("resize", Mt), window.addEventListener("pagebuilder:layout-change", Ze), document.addEventListener("pointerdown", Ja, !0), await
|
|
41524
|
+
}), R.addEventListener("scroll", q, { passive: !0 }), window.addEventListener("scroll", Gt, { passive: !0 }), window.addEventListener("resize", Mt), window.addEventListener("pagebuilder:layout-change", Ze), document.addEventListener("pointerdown", Ja, !0), await ot(1e4), ni(), await ot(1e4), ni(), await ot(1e4), ni());
|
|
41525
41525
|
}), br(() => {
|
|
41526
41526
|
var j;
|
|
41527
41527
|
t.flushPendingEditsToLocalStorage(), t.markCanvasUnmountedForNextMount(), cancelAnimationFrame(Yo), Pr == null || Pr.disconnect(), Pr = null, (j = fo.value) == null || j.removeEventListener("scroll", q), window.removeEventListener("scroll", Gt), window.removeEventListener("resize", Mt), window.removeEventListener("pagebuilder:layout-change", Ze), document.removeEventListener("pointerdown", Ja, !0), BR();
|
|
@@ -42459,7 +42459,7 @@ class hce {
|
|
|
42459
42459
|
if (e && e.userSettings && typeof e.userSettings.autoSave == "boolean" && e.userSettings.autoSave !== !1) {
|
|
42460
42460
|
if (this.pageBuilderStateStore.getIsSaving) return;
|
|
42461
42461
|
try {
|
|
42462
|
-
this.commitActiveInlineTipTapEditorSync(), this.pageBuilderStateStore.setIsSaving(!0), this.saveDomComponentsToLocalStorage(), await
|
|
42462
|
+
this.commitActiveInlineTipTapEditorSync(), this.pageBuilderStateStore.setIsSaving(!0), this.saveDomComponentsToLocalStorage(), await ot(400);
|
|
42463
42463
|
} catch (t) {
|
|
42464
42464
|
console.error("Error trying auto save.", t), this.debugLog("error", "handleAutoSave(): error", t);
|
|
42465
42465
|
const { showToast: r } = kt(), { translate: i } = Se();
|
|
@@ -42470,7 +42470,7 @@ class hce {
|
|
|
42470
42470
|
}
|
|
42471
42471
|
if (e && !e.userSettings)
|
|
42472
42472
|
try {
|
|
42473
|
-
this.commitActiveInlineTipTapEditorSync(), this.pageBuilderStateStore.setIsSaving(!0), this.saveDomComponentsToLocalStorage(), await
|
|
42473
|
+
this.commitActiveInlineTipTapEditorSync(), this.pageBuilderStateStore.setIsSaving(!0), this.saveDomComponentsToLocalStorage(), await ot(400);
|
|
42474
42474
|
} catch (t) {
|
|
42475
42475
|
console.error("Error trying saving.", t), this.debugLog("error", "handleAutoSave(): error (no userSettings)", t);
|
|
42476
42476
|
const { showToast: r } = kt(), { translate: i } = Se();
|
|
@@ -42483,7 +42483,7 @@ class hce {
|
|
|
42483
42483
|
* Manually saves the current page builder content to local storage.
|
|
42484
42484
|
*/
|
|
42485
42485
|
Me(this, "handleManualSave", async (e) => {
|
|
42486
|
-
this.commitActiveInlineTipTapEditorSync(), await this.syncDomToStoreOnly(), this.pageBuilderStateStore.setIsSaving(!0), e || this.clearHtmlSelection(), this.startEditing(), this.saveDomComponentsToLocalStorage(), await this.refreshListeners(), await
|
|
42486
|
+
this.commitActiveInlineTipTapEditorSync(), await this.syncDomToStoreOnly(), this.pageBuilderStateStore.setIsSaving(!0), e || this.clearHtmlSelection(), this.startEditing(), this.saveDomComponentsToLocalStorage(), await this.refreshListeners(), await ot(300), this.pageBuilderStateStore.setIsSaving(!1);
|
|
42487
42487
|
});
|
|
42488
42488
|
/**
|
|
42489
42489
|
* Ensures that a text area element has content, adding a visual indicator if it's empty.
|
|
@@ -42785,8 +42785,8 @@ class hce {
|
|
|
42785
42785
|
this.debugLog("warn", "startBuilder(): deferred mount decision", {
|
|
42786
42786
|
existingDraft: !!v,
|
|
42787
42787
|
builderWasMountedBeforeClose: this.builderWasMountedBeforeClose,
|
|
42788
|
-
willQueuePendingMount: !
|
|
42789
|
-
}),
|
|
42788
|
+
willQueuePendingMount: !0
|
|
42789
|
+
}), this.pendingMountComponents = m;
|
|
42790
42790
|
}
|
|
42791
42791
|
if (a && (!t || Array.isArray(t)) && (this.debugLog("warn", "startBuilder(): calling completeBuilderInitialization", {
|
|
42792
42792
|
hasUsablePassedComponents: h,
|
|
@@ -42870,7 +42870,7 @@ class hce {
|
|
|
42870
42870
|
if (t !== this.activeBuilderSessionToken) return;
|
|
42871
42871
|
let r = !1;
|
|
42872
42872
|
try {
|
|
42873
|
-
if (this.pageBuilderStateStore.setIsLoadingGlobal(!0), r = !0, await
|
|
42873
|
+
if (this.pageBuilderStateStore.setIsLoadingGlobal(!0), r = !0, await ot(400), t !== this.activeBuilderSessionToken) return;
|
|
42874
42874
|
this.debugLog("warn", "completeBuilderInitialization(): loading ON", {
|
|
42875
42875
|
sessionToken: t,
|
|
42876
42876
|
key: this.getLocalStorageItemName.value
|
|
@@ -42900,21 +42900,13 @@ class hce {
|
|
|
42900
42900
|
return;
|
|
42901
42901
|
}
|
|
42902
42902
|
if (e && a) {
|
|
42903
|
-
if (this.isPageBuilderMissingOnStart) {
|
|
42904
|
-
this.debugLog(
|
|
42905
|
-
"warn",
|
|
42906
|
-
"completeBuilderInitialization(): missing-on-start + passed + draft → mount draft directly",
|
|
42907
|
-
{ key: this.getLocalStorageItemName.value }
|
|
42908
|
-
), await this.completeMountProcess(a, void 0, t);
|
|
42909
|
-
return;
|
|
42910
|
-
}
|
|
42911
42903
|
this.debugLog(
|
|
42912
42904
|
"warn",
|
|
42913
|
-
"completeBuilderInitialization(): both passed + draft exist → showing resume modal",
|
|
42905
|
+
"completeBuilderInitialization(): both passed + draft exist → mounting passed content + showing resume modal",
|
|
42914
42906
|
{ key: this.getLocalStorageItemName.value }
|
|
42915
42907
|
);
|
|
42916
42908
|
const s = this.renderComponentsToHtml(e);
|
|
42917
|
-
await this.completeMountProcess(s, !0, t), await
|
|
42909
|
+
await this.completeMountProcess(s, !0, t), await ot(500), this.pageBuilderStateStore.setHasLocalDraftForUpdate(!0);
|
|
42918
42910
|
return;
|
|
42919
42911
|
}
|
|
42920
42912
|
if (!e && a && !this.pendingMountComponents) {
|
|
@@ -42936,8 +42928,10 @@ class hce {
|
|
|
42936
42928
|
if (a && this.isPageBuilderMissingOnStart) {
|
|
42937
42929
|
this.debugLog(
|
|
42938
42930
|
"warn",
|
|
42939
|
-
"completeBuilderInitialization(): pending mount + draft → mounting
|
|
42940
|
-
)
|
|
42931
|
+
"completeBuilderInitialization(): pending mount + draft → mounting passed content + showing resume modal"
|
|
42932
|
+
);
|
|
42933
|
+
const s = this.renderComponentsToHtml(this.pendingMountComponents);
|
|
42934
|
+
await this.completeMountProcess(s, !0, t), await ot(500), this.pageBuilderStateStore.setHasLocalDraftForUpdate(!0), this.pendingMountComponents = null;
|
|
42941
42935
|
return;
|
|
42942
42936
|
}
|
|
42943
42937
|
if (!a && e && this.isPageBuilderMissingOnStart) {
|
|
@@ -43843,7 +43837,7 @@ class hce {
|
|
|
43843
43837
|
e && e.querySelectorAll("section[data-componentid]").forEach((t) => t.remove());
|
|
43844
43838
|
}
|
|
43845
43839
|
async undo() {
|
|
43846
|
-
this.pageBuilderStateStore.setIsLoadingGlobal(!0), await
|
|
43840
|
+
this.pageBuilderStateStore.setIsLoadingGlobal(!0), await ot(300);
|
|
43847
43841
|
const e = this.getHistoryBaseKey();
|
|
43848
43842
|
if (!e) return;
|
|
43849
43843
|
const t = nn.getHistory(e);
|
|
@@ -43855,7 +43849,7 @@ class hce {
|
|
|
43855
43849
|
this.pageBuilderStateStore.setIsLoadingGlobal(!1);
|
|
43856
43850
|
}
|
|
43857
43851
|
async redo() {
|
|
43858
|
-
this.pageBuilderStateStore.setIsLoadingGlobal(!0), await
|
|
43852
|
+
this.pageBuilderStateStore.setIsLoadingGlobal(!0), await ot(300);
|
|
43859
43853
|
const e = this.getHistoryBaseKey();
|
|
43860
43854
|
if (!e) return;
|
|
43861
43855
|
const t = nn.getHistory(e);
|
|
@@ -44403,14 +44397,14 @@ class hce {
|
|
|
44403
44397
|
async resumeEditingFromDraft() {
|
|
44404
44398
|
this.updateLocalStorageItemName();
|
|
44405
44399
|
const e = this.getSavedPageHtml();
|
|
44406
|
-
e && (this.pageBuilderStateStore.setIsLoadingResumeEditing(!0), await
|
|
44400
|
+
e && (this.pageBuilderStateStore.setIsLoadingResumeEditing(!0), await ot(400), await this.mountComponentsToDOM(e), this.pageBuilderStateStore.setIsLoadingResumeEditing(!1)), await ce(), await this.addListenersToEditableElements(), this.pageBuilderStateStore.setIsLoadingResumeEditing(!1);
|
|
44407
44401
|
}
|
|
44408
44402
|
/**
|
|
44409
44403
|
* Restores the original content that was loaded when the builder started.
|
|
44410
44404
|
* @returns {Promise<void>}
|
|
44411
44405
|
*/
|
|
44412
44406
|
async restoreOriginalContent() {
|
|
44413
|
-
if (this.updateLocalStorageItemName(), this.pageBuilderStateStore.setIsRestoring(!0), await
|
|
44407
|
+
if (this.updateLocalStorageItemName(), this.pageBuilderStateStore.setIsRestoring(!0), await ot(400), Array.isArray(this.originalComponents)) {
|
|
44414
44408
|
await this.clearClassesFromPage(), await this.clearInlineStylesFromPage();
|
|
44415
44409
|
const e = this.renderComponentsToHtml(this.originalComponents);
|
|
44416
44410
|
await this.mountComponentsToDOM(e), this.removeCurrentComponentsFromLocalStorage();
|