@myissue/vue-website-page-builder 3.5.68 → 3.5.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/style.css +1 -1
- package/dist/vue-website-page-builder.js +339 -338
- package/dist/vue-website-page-builder.umd.cjs +14 -14
- package/package.json +1 -1
|
@@ -22284,7 +22284,7 @@ cu(MW, {
|
|
|
22284
22284
|
TextDirection: () => Oz,
|
|
22285
22285
|
focusEventsPluginKey: () => Bz
|
|
22286
22286
|
});
|
|
22287
|
-
var
|
|
22287
|
+
var tt = class Mz extends wu {
|
|
22288
22288
|
constructor() {
|
|
22289
22289
|
super(...arguments), this.type = "extension";
|
|
22290
22290
|
}
|
|
@@ -22303,7 +22303,7 @@ var et = class Mz extends wu {
|
|
|
22303
22303
|
const t = typeof e == "function" ? e() : e;
|
|
22304
22304
|
return super.extend(t);
|
|
22305
22305
|
}
|
|
22306
|
-
}, Lz =
|
|
22306
|
+
}, Lz = tt.create({
|
|
22307
22307
|
name: "clipboardTextSerializer",
|
|
22308
22308
|
addOptions() {
|
|
22309
22309
|
return {
|
|
@@ -22330,14 +22330,14 @@ var et = class Mz extends wu {
|
|
|
22330
22330
|
})
|
|
22331
22331
|
];
|
|
22332
22332
|
}
|
|
22333
|
-
}), Az =
|
|
22333
|
+
}), Az = tt.create({
|
|
22334
22334
|
name: "commands",
|
|
22335
22335
|
addCommands() {
|
|
22336
22336
|
return {
|
|
22337
22337
|
...az
|
|
22338
22338
|
};
|
|
22339
22339
|
}
|
|
22340
|
-
}), Ez =
|
|
22340
|
+
}), Ez = tt.create({
|
|
22341
22341
|
name: "delete",
|
|
22342
22342
|
onUpdate({ transaction: o, appendedTransactions: e }) {
|
|
22343
22343
|
var t, r, i;
|
|
@@ -22400,7 +22400,7 @@ var et = class Mz extends wu {
|
|
|
22400
22400
|
};
|
|
22401
22401
|
(i = (r = (t = this.editor.options.coreExtensionOptions) == null ? void 0 : t.delete) == null ? void 0 : r.async) == null || i ? setTimeout(n, 0) : n();
|
|
22402
22402
|
}
|
|
22403
|
-
}), _z =
|
|
22403
|
+
}), _z = tt.create({
|
|
22404
22404
|
name: "drop",
|
|
22405
22405
|
addProseMirrorPlugins() {
|
|
22406
22406
|
return [
|
|
@@ -22419,7 +22419,7 @@ var et = class Mz extends wu {
|
|
|
22419
22419
|
})
|
|
22420
22420
|
];
|
|
22421
22421
|
}
|
|
22422
|
-
}), $z =
|
|
22422
|
+
}), $z = tt.create({
|
|
22423
22423
|
name: "editable",
|
|
22424
22424
|
addProseMirrorPlugins() {
|
|
22425
22425
|
return [
|
|
@@ -22431,7 +22431,7 @@ var et = class Mz extends wu {
|
|
|
22431
22431
|
})
|
|
22432
22432
|
];
|
|
22433
22433
|
}
|
|
22434
|
-
}), Bz = new ft("focusEvents"), Iz =
|
|
22434
|
+
}), Bz = new ft("focusEvents"), Iz = tt.create({
|
|
22435
22435
|
name: "focusEvents",
|
|
22436
22436
|
addProseMirrorPlugins() {
|
|
22437
22437
|
const { editor: o } = this;
|
|
@@ -22455,7 +22455,7 @@ var et = class Mz extends wu {
|
|
|
22455
22455
|
})
|
|
22456
22456
|
];
|
|
22457
22457
|
}
|
|
22458
|
-
}), Hz =
|
|
22458
|
+
}), Hz = tt.create({
|
|
22459
22459
|
name: "keymap",
|
|
22460
22460
|
addKeyboardShortcuts() {
|
|
22461
22461
|
const o = () => this.editor.commands.first(({ commands: a }) => [
|
|
@@ -22535,7 +22535,7 @@ var et = class Mz extends wu {
|
|
|
22535
22535
|
})
|
|
22536
22536
|
];
|
|
22537
22537
|
}
|
|
22538
|
-
}), Dz =
|
|
22538
|
+
}), Dz = tt.create({
|
|
22539
22539
|
name: "paste",
|
|
22540
22540
|
addProseMirrorPlugins() {
|
|
22541
22541
|
return [
|
|
@@ -22553,7 +22553,7 @@ var et = class Mz extends wu {
|
|
|
22553
22553
|
})
|
|
22554
22554
|
];
|
|
22555
22555
|
}
|
|
22556
|
-
}), zz =
|
|
22556
|
+
}), zz = tt.create({
|
|
22557
22557
|
name: "tabindex",
|
|
22558
22558
|
addOptions() {
|
|
22559
22559
|
return {
|
|
@@ -22573,7 +22573,7 @@ var et = class Mz extends wu {
|
|
|
22573
22573
|
})
|
|
22574
22574
|
];
|
|
22575
22575
|
}
|
|
22576
|
-
}), Oz =
|
|
22576
|
+
}), Oz = tt.create({
|
|
22577
22577
|
name: "textDirection",
|
|
22578
22578
|
addOptions() {
|
|
22579
22579
|
return {
|
|
@@ -26781,7 +26781,7 @@ var gO = en.create({
|
|
|
26781
26781
|
c.delete(s, s + a.nodeSize);
|
|
26782
26782
|
const u = c.mapping.map(l);
|
|
26783
26783
|
return c.insert(u, ae.from(d)), c.setSelection(n.map(c.doc, c.mapping)), e && e(c), !0;
|
|
26784
|
-
}, jG = (o, e, t) => FG(o.state, o.view.dispatch, e, t), hO = (o, e) =>
|
|
26784
|
+
}, jG = (o, e, t) => FG(o.state, o.view.dispatch, e, t), hO = (o, e) => tt.create({
|
|
26785
26785
|
name: `${o}BranchingDeleteKeymap`,
|
|
26786
26786
|
priority: 101,
|
|
26787
26787
|
addKeyboardShortcuts() {
|
|
@@ -27116,7 +27116,7 @@ var Gd = (o, e) => {
|
|
|
27116
27116
|
return t.descendants((n) => {
|
|
27117
27117
|
n.type === r && (i = !0);
|
|
27118
27118
|
}), i;
|
|
27119
|
-
}, CO =
|
|
27119
|
+
}, CO = tt.create({
|
|
27120
27120
|
name: "listKeymap",
|
|
27121
27121
|
addOptions() {
|
|
27122
27122
|
return {
|
|
@@ -27780,7 +27780,7 @@ var PO = mo.create({
|
|
|
27780
27780
|
};
|
|
27781
27781
|
}
|
|
27782
27782
|
});
|
|
27783
|
-
|
|
27783
|
+
tt.create({
|
|
27784
27784
|
name: "listKit",
|
|
27785
27785
|
addExtensions() {
|
|
27786
27786
|
const o = [];
|
|
@@ -28583,7 +28583,7 @@ function AO(o, e) {
|
|
|
28583
28583
|
};
|
|
28584
28584
|
}
|
|
28585
28585
|
const EO = AO(!1, !0), _O = AO(!0, !0);
|
|
28586
|
-
|
|
28586
|
+
tt.create({
|
|
28587
28587
|
name: "characterCount",
|
|
28588
28588
|
addOptions() {
|
|
28589
28589
|
return {
|
|
@@ -28653,7 +28653,7 @@ et.create({
|
|
|
28653
28653
|
];
|
|
28654
28654
|
}
|
|
28655
28655
|
});
|
|
28656
|
-
var FK =
|
|
28656
|
+
var FK = tt.create({
|
|
28657
28657
|
name: "dropCursor",
|
|
28658
28658
|
addOptions() {
|
|
28659
28659
|
return {
|
|
@@ -28666,7 +28666,7 @@ var FK = et.create({
|
|
|
28666
28666
|
return [kK(this.options)];
|
|
28667
28667
|
}
|
|
28668
28668
|
});
|
|
28669
|
-
|
|
28669
|
+
tt.create({
|
|
28670
28670
|
name: "focus",
|
|
28671
28671
|
addOptions() {
|
|
28672
28672
|
return {
|
|
@@ -28709,7 +28709,7 @@ et.create({
|
|
|
28709
28709
|
];
|
|
28710
28710
|
}
|
|
28711
28711
|
});
|
|
28712
|
-
var jK =
|
|
28712
|
+
var jK = tt.create({
|
|
28713
28713
|
name: "gapCursor",
|
|
28714
28714
|
addProseMirrorPlugins() {
|
|
28715
28715
|
return [MK()];
|
|
@@ -28982,7 +28982,7 @@ function QK({ editor: o, options: e }) {
|
|
|
28982
28982
|
}
|
|
28983
28983
|
});
|
|
28984
28984
|
}
|
|
28985
|
-
|
|
28985
|
+
tt.create({
|
|
28986
28986
|
name: "placeholder",
|
|
28987
28987
|
addOptions() {
|
|
28988
28988
|
return {
|
|
@@ -29006,7 +29006,7 @@ var XK = `.ProseMirror:not(.ProseMirror-focused) *::selection {
|
|
|
29006
29006
|
.ProseMirror:not(.ProseMirror-focused) *::-moz-selection {
|
|
29007
29007
|
background: transparent;
|
|
29008
29008
|
}`;
|
|
29009
|
-
|
|
29009
|
+
tt.create({
|
|
29010
29010
|
name: "selection",
|
|
29011
29011
|
addOptions() {
|
|
29012
29012
|
return {
|
|
@@ -29038,7 +29038,7 @@ function Em({
|
|
|
29038
29038
|
}) {
|
|
29039
29039
|
return e && Array.isArray(o) && o.includes(e.type) || (e == null ? void 0 : e.type) === o;
|
|
29040
29040
|
}
|
|
29041
|
-
var eJ =
|
|
29041
|
+
var eJ = tt.create({
|
|
29042
29042
|
name: "trailingNode",
|
|
29043
29043
|
addOptions() {
|
|
29044
29044
|
return {
|
|
@@ -29072,7 +29072,7 @@ var eJ = et.create({
|
|
|
29072
29072
|
})
|
|
29073
29073
|
];
|
|
29074
29074
|
}
|
|
29075
|
-
}), tJ =
|
|
29075
|
+
}), tJ = tt.create({
|
|
29076
29076
|
name: "undoRedo",
|
|
29077
29077
|
addOptions() {
|
|
29078
29078
|
return {
|
|
@@ -29099,7 +29099,7 @@ var eJ = et.create({
|
|
|
29099
29099
|
"Shift-Mod-я": () => this.editor.commands.redo()
|
|
29100
29100
|
};
|
|
29101
29101
|
}
|
|
29102
|
-
}), oJ =
|
|
29102
|
+
}), oJ = tt.create({
|
|
29103
29103
|
name: "starterKit",
|
|
29104
29104
|
addExtensions() {
|
|
29105
29105
|
var o, e, t, r;
|
|
@@ -30577,7 +30577,7 @@ function Ye() {
|
|
|
30577
30577
|
);
|
|
30578
30578
|
return Hc;
|
|
30579
30579
|
}
|
|
30580
|
-
var IJ =
|
|
30580
|
+
var IJ = tt.create({
|
|
30581
30581
|
name: "textAlign",
|
|
30582
30582
|
addOptions() {
|
|
30583
30583
|
return {
|
|
@@ -31208,10 +31208,10 @@ const nY = { class: "pbx-myInputGroup" }, aY = {
|
|
|
31208
31208
|
() => Td(r.getPageBuilderConfig)
|
|
31209
31209
|
), n = S(!1), a = S(""), s = S(1), l = S(""), d = S(""), c = S(""), u = S(null), b = S(null), m = S(null), g = S(null), h = S(null), v = _(() => r.getElement), k = S(""), M = _(() => C != null && C.value ? C == null ? void 0 : C.value.getHTML() : null), T = S(0);
|
|
31210
31210
|
de(v, (ye) => {
|
|
31211
|
-
const
|
|
31211
|
+
const X = document.createElement("div");
|
|
31212
31212
|
if (ye) {
|
|
31213
|
-
|
|
31214
|
-
const we =
|
|
31213
|
+
X.innerHTML = ye.innerHTML;
|
|
31214
|
+
const we = X.textContent;
|
|
31215
31215
|
T.value = (we == null ? void 0 : we.length) ?? 0;
|
|
31216
31216
|
}
|
|
31217
31217
|
});
|
|
@@ -31257,11 +31257,11 @@ const nY = { class: "pbx-myInputGroup" }, aY = {
|
|
|
31257
31257
|
), c.value = t("Close"), u.value = $.value ? "Remove url" : null, b.value = t("Save"), m.value = function() {
|
|
31258
31258
|
n.value = !1, F.value = null;
|
|
31259
31259
|
}, g.value = function() {
|
|
31260
|
-
var
|
|
31261
|
-
(
|
|
31260
|
+
var X;
|
|
31261
|
+
(X = C == null ? void 0 : C.value) == null || X.chain().focus().extendMarkRange("link").unsetLink().run(), n.value = !1;
|
|
31262
31262
|
}, h.value = function() {
|
|
31263
|
-
const
|
|
31264
|
-
|
|
31263
|
+
const X = B();
|
|
31264
|
+
X || (X || I(), n.value = !1);
|
|
31265
31265
|
};
|
|
31266
31266
|
}, B = function() {
|
|
31267
31267
|
F.value = null;
|
|
@@ -31273,17 +31273,17 @@ const nY = { class: "pbx-myInputGroup" }, aY = {
|
|
|
31273
31273
|
}, N = S(!1), z = function() {
|
|
31274
31274
|
N.value = !N.value;
|
|
31275
31275
|
}, H = function(...ye) {
|
|
31276
|
-
var
|
|
31277
|
-
return ((
|
|
31276
|
+
var X;
|
|
31277
|
+
return ((X = C.value) == null ? void 0 : X.isActive(...ye)) ?? !1;
|
|
31278
31278
|
}, L = function(ye) {
|
|
31279
|
-
var
|
|
31280
|
-
return ((
|
|
31279
|
+
var X;
|
|
31280
|
+
return ((X = C.value) == null ? void 0 : X.isActive("heading", { level: ye })) ?? !1;
|
|
31281
31281
|
}, q = function() {
|
|
31282
31282
|
var ye;
|
|
31283
31283
|
(ye = C.value) == null || ye.chain().focus().toggleBold().run();
|
|
31284
31284
|
}, ie = function(ye) {
|
|
31285
|
-
var
|
|
31286
|
-
(
|
|
31285
|
+
var X;
|
|
31286
|
+
(X = C.value) == null || X.chain().focus().toggleHeading({ level: ye }).run();
|
|
31287
31287
|
}, ze = function() {
|
|
31288
31288
|
var ye;
|
|
31289
31289
|
(ye = C.value) == null || ye.chain().focus().toggleBulletList().run();
|
|
@@ -31301,7 +31301,7 @@ const nY = { class: "pbx-myInputGroup" }, aY = {
|
|
|
31301
31301
|
(ye = C == null ? void 0 : C.value) == null || ye.destroy();
|
|
31302
31302
|
}), Ar(() => {
|
|
31303
31303
|
E();
|
|
31304
|
-
}), (ye,
|
|
31304
|
+
}), (ye, X) => (y(), w("div", null, [
|
|
31305
31305
|
O(Kt, {
|
|
31306
31306
|
maxWidth: "4xl",
|
|
31307
31307
|
showDynamicModalBuilder: n.value,
|
|
@@ -31312,28 +31312,28 @@ const nY = { class: "pbx-myInputGroup" }, aY = {
|
|
|
31312
31312
|
firstButtonText: c.value,
|
|
31313
31313
|
secondButtonText: u.value ?? void 0,
|
|
31314
31314
|
thirdButtonText: b.value ?? void 0,
|
|
31315
|
-
onFirstModalButtonFunctionDynamicModalBuilder:
|
|
31315
|
+
onFirstModalButtonFunctionDynamicModalBuilder: X[1] || (X[1] = () => {
|
|
31316
31316
|
var we;
|
|
31317
31317
|
return (we = m.value) == null ? void 0 : we.call(m);
|
|
31318
31318
|
}),
|
|
31319
|
-
onSecondModalButtonFunctionDynamicModalBuilder:
|
|
31319
|
+
onSecondModalButtonFunctionDynamicModalBuilder: X[2] || (X[2] = () => {
|
|
31320
31320
|
var we;
|
|
31321
31321
|
return (we = g.value) == null ? void 0 : we.call(g);
|
|
31322
31322
|
}),
|
|
31323
|
-
onThirdModalButtonFunctionDynamicModalBuilder:
|
|
31323
|
+
onThirdModalButtonFunctionDynamicModalBuilder: X[3] || (X[3] = () => {
|
|
31324
31324
|
var we;
|
|
31325
31325
|
return (we = h.value) == null ? void 0 : we.call(h);
|
|
31326
31326
|
})
|
|
31327
31327
|
}, {
|
|
31328
31328
|
default: Y(() => [
|
|
31329
|
-
|
|
31329
|
+
X[9] || (X[9] = p("header", null, null, -1)),
|
|
31330
31330
|
p("main", null, [
|
|
31331
31331
|
p("div", nY, [
|
|
31332
31332
|
p("label", aY, [
|
|
31333
31333
|
p("span", null, f(x(t)("Enter URL")), 1)
|
|
31334
31334
|
]),
|
|
31335
31335
|
Re(p("input", {
|
|
31336
|
-
"onUpdate:modelValue":
|
|
31336
|
+
"onUpdate:modelValue": X[0] || (X[0] = (we) => $.value = we),
|
|
31337
31337
|
class: "pbx-myPrimaryInput pbx-mt-1 pbx-w-full",
|
|
31338
31338
|
type: "url",
|
|
31339
31339
|
placeholder: "url"
|
|
@@ -31353,10 +31353,10 @@ const nY = { class: "pbx-myInputGroup" }, aY = {
|
|
|
31353
31353
|
p("div", cY, [
|
|
31354
31354
|
p("div", uY, [
|
|
31355
31355
|
p("div", {
|
|
31356
|
-
onClick:
|
|
31356
|
+
onClick: X[4] || (X[4] = (we) => x(e).toggleTipTapModal(!1)),
|
|
31357
31357
|
class: "pbx-myPrimaryButton pbx-mr-4 pbx-min-h-2"
|
|
31358
31358
|
}, [
|
|
31359
|
-
|
|
31359
|
+
X[10] || (X[10] = p("span", { class: "material-symbols-outlined" }, "check", -1)),
|
|
31360
31360
|
p("span", null, f(x(t)("Save")), 1)
|
|
31361
31361
|
]),
|
|
31362
31362
|
p("div", {
|
|
@@ -31364,7 +31364,7 @@ const nY = { class: "pbx-myInputGroup" }, aY = {
|
|
|
31364
31364
|
class: U(["pbx-h-10 pbx-w-10 pbx-cursor-pointer pbx-flex pbx-items-center pbx-justify-center pbx-aspect-square pbx-text-myPrimaryDarkGrayColor pbx-bg-gray-100 pbx-rounded-xl hover:pbx-bg-myPrimaryLinkColor hover:pbx-text-white", {
|
|
31365
31365
|
"pbx-bg-myPrimaryLinkColor pbx-text-white hover:pbx-text-white hover:pbx-bg-myPrimaryLinkColor": H("bold")
|
|
31366
31366
|
}])
|
|
31367
|
-
}, [...
|
|
31367
|
+
}, [...X[11] || (X[11] = [
|
|
31368
31368
|
p("span", { class: "material-symbols-outlined" }, " format_bold ", -1)
|
|
31369
31369
|
])], 2),
|
|
31370
31370
|
p("div", {
|
|
@@ -31372,7 +31372,7 @@ const nY = { class: "pbx-myInputGroup" }, aY = {
|
|
|
31372
31372
|
class: U(["pbx-h-10 pbx-w-10 pbx-cursor-pointer pbx-flex pbx-items-center pbx-justify-center pbx-aspect-square pbx-text-myPrimaryDarkGrayColor pbx-bg-gray-100 pbx-rounded-xl hover:pbx-bg-myPrimaryLinkColor hover:pbx-text-white", {
|
|
31373
31373
|
"pbx-bg-myPrimaryLinkColor pbx-text-white hover:pbx-text-white hover:pbx-bg-myPrimaryLinkColor": H("link")
|
|
31374
31374
|
}])
|
|
31375
|
-
}, [...
|
|
31375
|
+
}, [...X[12] || (X[12] = [
|
|
31376
31376
|
p("span", { class: "material-symbols-outlined" }, " link ", -1)
|
|
31377
31377
|
])], 2),
|
|
31378
31378
|
(y(!0), w(le, null, Se(i.value, (we) => (y(), w("div", {
|
|
@@ -31385,27 +31385,27 @@ const nY = { class: "pbx-myInputGroup" }, aY = {
|
|
|
31385
31385
|
p("div", mY, "H" + f(we), 1)
|
|
31386
31386
|
], 10, bY))), 128)),
|
|
31387
31387
|
p("div", {
|
|
31388
|
-
onClick:
|
|
31388
|
+
onClick: X[5] || (X[5] = (we) => De("left")),
|
|
31389
31389
|
class: U(["pbx-h-10 pbx-w-10 pbx-cursor-pointer pbx-flex pbx-items-center pbx-justify-center pbx-aspect-square pbx-text-myPrimaryDarkGrayColor pbx-bg-gray-100 pbx-rounded-xl hover:pbx-bg-myPrimaryLinkColor hover:pbx-text-white", {
|
|
31390
31390
|
"pbx-bg-myPrimaryLinkColor pbx-text-white hover:pbx-text-white hover:pbx-bg-myPrimaryLinkColor": H({ textAlign: "left" })
|
|
31391
31391
|
}])
|
|
31392
|
-
}, [...
|
|
31392
|
+
}, [...X[13] || (X[13] = [
|
|
31393
31393
|
p("span", { class: "material-symbols-outlined" }, " format_align_left ", -1)
|
|
31394
31394
|
])], 2),
|
|
31395
31395
|
p("div", {
|
|
31396
|
-
onClick:
|
|
31396
|
+
onClick: X[6] || (X[6] = (we) => De("center")),
|
|
31397
31397
|
class: U(["pbx-h-10 pbx-w-10 pbx-cursor-pointer pbx-flex pbx-items-center pbx-justify-center pbx-aspect-square pbx-text-myPrimaryDarkGrayColor pbx-bg-gray-100 pbx-rounded-xl hover:pbx-bg-myPrimaryLinkColor hover:pbx-text-white", {
|
|
31398
31398
|
"pbx-bg-myPrimaryLinkColor pbx-text-white hover:pbx-text-white hover:pbx-bg-myPrimaryLinkColor": H({ textAlign: "center" })
|
|
31399
31399
|
}])
|
|
31400
|
-
}, [...
|
|
31400
|
+
}, [...X[14] || (X[14] = [
|
|
31401
31401
|
p("span", { class: "material-symbols-outlined" }, " format_align_center ", -1)
|
|
31402
31402
|
])], 2),
|
|
31403
31403
|
p("div", {
|
|
31404
|
-
onClick:
|
|
31404
|
+
onClick: X[7] || (X[7] = (we) => De("right")),
|
|
31405
31405
|
class: U(["pbx-h-10 pbx-w-10 pbx-cursor-pointer pbx-flex pbx-items-center pbx-justify-center pbx-aspect-square pbx-text-myPrimaryDarkGrayColor pbx-bg-gray-100 pbx-rounded-xl hover:pbx-bg-myPrimaryLinkColor hover:pbx-text-white", {
|
|
31406
31406
|
"pbx-bg-myPrimaryLinkColor pbx-text-white hover:pbx-text-white hover:pbx-bg-myPrimaryLinkColor": H({ textAlign: "right" })
|
|
31407
31407
|
}])
|
|
31408
|
-
}, [...
|
|
31408
|
+
}, [...X[15] || (X[15] = [
|
|
31409
31409
|
p("span", { class: "material-symbols-outlined" }, " format_align_right ", -1)
|
|
31410
31410
|
])], 2),
|
|
31411
31411
|
p("div", {
|
|
@@ -31413,7 +31413,7 @@ const nY = { class: "pbx-myInputGroup" }, aY = {
|
|
|
31413
31413
|
class: U(["pbx-h-10 pbx-w-10 pbx-cursor-pointer pbx-flex pbx-items-center pbx-justify-center pbx-aspect-square pbx-text-myPrimaryDarkGrayColor pbx-bg-gray-100 pbx-rounded-xl hover:pbx-bg-myPrimaryLinkColor hover:pbx-text-white", {
|
|
31414
31414
|
"pbx-bg-myPrimaryLinkColor pbx-text-white hover:pbx-text-white hover:pbx-bg-myPrimaryLinkColor": H("bulletList")
|
|
31415
31415
|
}])
|
|
31416
|
-
}, [...
|
|
31416
|
+
}, [...X[16] || (X[16] = [
|
|
31417
31417
|
p("span", { class: "material-symbols-outlined" }, " format_list_bulleted ", -1)
|
|
31418
31418
|
])], 2),
|
|
31419
31419
|
p("div", {
|
|
@@ -31425,7 +31425,7 @@ const nY = { class: "pbx-myInputGroup" }, aY = {
|
|
|
31425
31425
|
default: Y(() => [
|
|
31426
31426
|
N.value ? (y(), w("div", {
|
|
31427
31427
|
key: 0,
|
|
31428
|
-
onClick:
|
|
31428
|
+
onClick: X[8] || (X[8] = Te(() => {
|
|
31429
31429
|
}, ["stop"])),
|
|
31430
31430
|
class: "pbx-absolute pbx-top-10 pbx-transform pbx-select-none pbx-bg-white pbx-rounded-2xl pbx-py-2 pbx-px-2 pbx-border-solid pbx-border pbx-border-gray-200 pbx-inset-x-auto pbx-z-40 pbx-w-52"
|
|
31431
31431
|
}, [
|
|
@@ -31755,20 +31755,20 @@ const $Y = DG.extend({
|
|
|
31755
31755
|
}, ye = function() {
|
|
31756
31756
|
ze();
|
|
31757
31757
|
};
|
|
31758
|
-
let
|
|
31758
|
+
let X = 0;
|
|
31759
31759
|
const we = function(J) {
|
|
31760
31760
|
var Ve, It;
|
|
31761
31761
|
const oe = J.target, fe = document.activeElement, $e = oe instanceof HTMLSelectElement && ((Ve = c.value) != null && Ve.contains(oe)) ? oe : null, lt = fe instanceof HTMLSelectElement && ((It = c.value) != null && It.contains(fe)) ? fe : null;
|
|
31762
|
-
!$e && !lt || (
|
|
31762
|
+
!$e && !lt || (X = Date.now() + 500);
|
|
31763
31763
|
}, Ne = function(J) {
|
|
31764
31764
|
var oe, fe;
|
|
31765
|
-
l.value && J.target instanceof Node && ((oe = d.value) != null && oe.contains(J.target) || (fe = c.value) != null && fe.contains(J.target) || Date.now() <
|
|
31765
|
+
l.value && J.target instanceof Node && ((oe = d.value) != null && oe.contains(J.target) || (fe = c.value) != null && fe.contains(J.target) || Date.now() < X || window.setTimeout(() => {
|
|
31766
31766
|
var lt, Ve;
|
|
31767
|
-
if (!l.value || Date.now() <
|
|
31767
|
+
if (!l.value || Date.now() < X) return;
|
|
31768
31768
|
const $e = document.activeElement;
|
|
31769
31769
|
$e instanceof Element && ((lt = c.value) != null && lt.contains($e) || (Ve = d.value) != null && Ve.contains($e) || $e.closest("[data-pbx-typography-menu-popover]")) || (l.value = !1);
|
|
31770
31770
|
}, 0));
|
|
31771
|
-
},
|
|
31771
|
+
}, et = function(J, oe, fe) {
|
|
31772
31772
|
const { doc: $e } = J.state, lt = Vm(oe, {
|
|
31773
31773
|
lang: t.getCurrentLanguage,
|
|
31774
31774
|
text: fe ?? $e.textContent
|
|
@@ -31841,7 +31841,7 @@ const $Y = DG.extend({
|
|
|
31841
31841
|
t.setTextAreaVueModel(Lt($e));
|
|
31842
31842
|
}
|
|
31843
31843
|
});
|
|
31844
|
-
n.value = fe, await ce(),
|
|
31844
|
+
n.value = fe, await ce(), et(fe, J, s.value);
|
|
31845
31845
|
}, vt = async function() {
|
|
31846
31846
|
if (n.value)
|
|
31847
31847
|
try {
|
|
@@ -31889,17 +31889,17 @@ const $Y = DG.extend({
|
|
|
31889
31889
|
}
|
|
31890
31890
|
pe();
|
|
31891
31891
|
});
|
|
31892
|
-
const
|
|
31892
|
+
const ee = function() {
|
|
31893
31893
|
l.value = !1;
|
|
31894
31894
|
};
|
|
31895
31895
|
return de(l, (J) => {
|
|
31896
31896
|
if (J) {
|
|
31897
|
-
De(), document.addEventListener("pointerdown", Ne), document.addEventListener("pointerdown", we, !0), document.addEventListener("change", we, !0), window.addEventListener(or,
|
|
31897
|
+
De(), document.addEventListener("pointerdown", Ne), document.addEventListener("pointerdown", we, !0), document.addEventListener("change", we, !0), window.addEventListener(or, ee);
|
|
31898
31898
|
return;
|
|
31899
31899
|
}
|
|
31900
|
-
ye(), document.removeEventListener("pointerdown", Ne), document.removeEventListener("pointerdown", we, !0), document.removeEventListener("change", we, !0), window.removeEventListener(or,
|
|
31900
|
+
ye(), document.removeEventListener("pointerdown", Ne), document.removeEventListener("pointerdown", we, !0), document.removeEventListener("change", we, !0), window.removeEventListener(or, ee);
|
|
31901
31901
|
}), ir(() => {
|
|
31902
|
-
pe(), ye(), document.removeEventListener("pointerdown", Ne), document.removeEventListener("pointerdown", we, !0), document.removeEventListener("change", we, !0), window.removeEventListener(or,
|
|
31902
|
+
pe(), ye(), document.removeEventListener("pointerdown", Ne), document.removeEventListener("pointerdown", we, !0), document.removeEventListener("change", we, !0), window.removeEventListener(or, ee), n.value && ot(Pe(n.value)), t.getInlineTipTapEditor && t.setInlineTipTapEditor(!1);
|
|
31903
31903
|
}), (J, oe) => (y(), w(le, null, [
|
|
31904
31904
|
p("div", BY, [
|
|
31905
31905
|
O(Kt, {
|
|
@@ -34684,8 +34684,8 @@ function RR(o, e = 3, t = 1, r = !0) {
|
|
|
34684
34684
|
const i = t === 2 ? 2 : 1, n = Math.max(o, i), a = i > 1 ? n % i : 0, s = a === 0 ? 0 : i - a, l = n + s, d = Math.max(1, n - i + 1), c = s > 0 && r ? n : d, u = c * e, b = 100 / c, m = Math.max(b - 3, 1), g = l / i * 100, h = (100 / l).toFixed(3);
|
|
34685
34685
|
let v = `@keyframes pbx-isl-r{0%,${m.toFixed(3)}%{transform:translateX(0)}`;
|
|
34686
34686
|
for (let be = 1; be < c; be++) {
|
|
34687
|
-
const ue = -(100 * be / l).toFixed(3), pe = (be * b).toFixed(3),
|
|
34688
|
-
v += `${pe}%,${
|
|
34687
|
+
const ue = -(100 * be / l).toFixed(3), pe = (be * b).toFixed(3), ee = (be * b + m).toFixed(3);
|
|
34688
|
+
v += `${pe}%,${ee}%{transform:translateX(${ue}%)}`;
|
|
34689
34689
|
}
|
|
34690
34690
|
if (r)
|
|
34691
34691
|
v += "99%,100%{transform:translateX(0)}}";
|
|
@@ -34696,12 +34696,12 @@ function RR(o, e = 3, t = 1, r = !0) {
|
|
|
34696
34696
|
const k = "width:0.45rem;background:rgba(255,255,255,0.45)", M = "width:1.15rem;background:#fff";
|
|
34697
34697
|
let T = "", C = "";
|
|
34698
34698
|
for (let be = 0; be < n; be++) {
|
|
34699
|
-
const ue = (be * b).toFixed(3), pe = (be * b + m).toFixed(3),
|
|
34699
|
+
const ue = (be * b).toFixed(3), pe = (be * b + m).toFixed(3), ee = Math.min((be + 1) * b, 100).toFixed(3);
|
|
34700
34700
|
if (be === 0)
|
|
34701
|
-
T += `@keyframes pbx-isl-da-${be}{0%,${pe}%{${M}}${
|
|
34701
|
+
T += `@keyframes pbx-isl-da-${be}{0%,${pe}%{${M}}${ee}%,100%{${k}}}`;
|
|
34702
34702
|
else if (be < c) {
|
|
34703
34703
|
const oe = (be * b - 1e-3).toFixed(3);
|
|
34704
|
-
T += `@keyframes pbx-isl-da-${be}{0%,${oe}%{${k}}${ue}%,${pe}%{${M}}${
|
|
34704
|
+
T += `@keyframes pbx-isl-da-${be}{0%,${oe}%{${k}}${ue}%,${pe}%{${M}}${ee}%,100%{${k}}}`;
|
|
34705
34705
|
} else
|
|
34706
34706
|
T += `@keyframes pbx-isl-da-${be}{0%,100%{${k}}}`;
|
|
34707
34707
|
const J = r ? "infinite" : "1 forwards";
|
|
@@ -34710,12 +34710,12 @@ function RR(o, e = 3, t = 1, r = !0) {
|
|
|
34710
34710
|
const E = "opacity:1;background:transparent;color:rgba(255,255,255,0.7)", $ = "opacity:1;background:#fff;color:#111";
|
|
34711
34711
|
let P = "", F = "";
|
|
34712
34712
|
for (let be = 0; be < n; be++) {
|
|
34713
|
-
const ue = (be * b).toFixed(3), pe = (be * b + m).toFixed(3),
|
|
34713
|
+
const ue = (be * b).toFixed(3), pe = (be * b + m).toFixed(3), ee = Math.min((be + 1) * b, 100).toFixed(3);
|
|
34714
34714
|
if (be === 0)
|
|
34715
|
-
P += `@keyframes pbx-isl-na-${be}{0%,${pe}%{${$}}${
|
|
34715
|
+
P += `@keyframes pbx-isl-na-${be}{0%,${pe}%{${$}}${ee}%,100%{${E}}}`;
|
|
34716
34716
|
else if (be < c) {
|
|
34717
34717
|
const oe = (be * b - 1e-3).toFixed(3);
|
|
34718
|
-
P += `@keyframes pbx-isl-na-${be}{0%,${oe}%{${E}}${ue}%,${pe}%{${$}}${
|
|
34718
|
+
P += `@keyframes pbx-isl-na-${be}{0%,${oe}%{${E}}${ue}%,${pe}%{${$}}${ee}%,100%{${E}}}`;
|
|
34719
34719
|
} else
|
|
34720
34720
|
P += `@keyframes pbx-isl-na-${be}{0%,100%{${E}}}`;
|
|
34721
34721
|
const J = r ? "infinite" : "1 forwards";
|
|
@@ -34730,32 +34730,32 @@ function RR(o, e = 3, t = 1, r = !0) {
|
|
|
34730
34730
|
for (let be = 0; be < n; be++)
|
|
34731
34731
|
be > 0 && (z += ",", H += ","), z += `[data-builder-canvas] [data-isl][data-isl-active="${be}"] .pbx-isl-nums span:nth-child(${be + 1})`, H += `[data-builder-canvas] [data-isl][data-isl-active="${be}"] .pbx-isl-dot:nth-child(${be + 1})`;
|
|
34732
34732
|
z += "{opacity:1!important;background:#fff!important;color:#111!important;text-shadow:none!important}", H += "{width:1.15rem!important;background:#fff!important}";
|
|
34733
|
-
const L = "[data-builder-canvas] [data-isl]:not([data-isl-active]) .pbx-isl-nums span:first-child{opacity:1!important;background:#fff!important;color:#111!important;text-shadow:none!important}", q = "[data-builder-canvas] [data-isl]:not([data-isl-active]) .pbx-isl-dot:first-child{width:1.15rem!important;background:#fff!important}", ie = "[data-builder-canvas] [data-isl][data-isl-active] .pbx-isl-nums span{opacity:1!important;background:transparent!important;color:rgba(255,255,255,0.7)!important;text-shadow:none!important}", ze = "[data-builder-canvas] [data-isl][data-isl-active] .pbx-isl-dot{width:0.45rem!important;background:rgba(255,255,255,0.45)!important}", De = r ? "infinite" : "1 forwards", ye = 85,
|
|
34733
|
+
const L = "[data-builder-canvas] [data-isl]:not([data-isl-active]) .pbx-isl-nums span:first-child{opacity:1!important;background:#fff!important;color:#111!important;text-shadow:none!important}", q = "[data-builder-canvas] [data-isl]:not([data-isl-active]) .pbx-isl-dot:first-child{width:1.15rem!important;background:#fff!important}", ie = "[data-builder-canvas] [data-isl][data-isl-active] .pbx-isl-nums span{opacity:1!important;background:transparent!important;color:rgba(255,255,255,0.7)!important;text-shadow:none!important}", ze = "[data-builder-canvas] [data-isl][data-isl-active] .pbx-isl-dot{width:0.45rem!important;background:rgba(255,255,255,0.45)!important}", De = r ? "infinite" : "1 forwards", ye = 85, X = 90, we = `${X}%`, Ne = [
|
|
34734
|
+
`[data-isl][data-isl-per-view="1"] .pbx-isl-t,[data-isl]:not([data-isl-per-view]) .pbx-isl-t{grid-auto-columns:${X}%!important}`,
|
|
34735
|
+
'[data-isl][data-isl-per-view="1"] .pbx-isl-t>div,[data-isl]:not([data-isl-per-view]) .pbx-isl-t>div{box-sizing:border-box!important;min-width:0!important;width:auto!important;max-width:none!important;padding-inline:0.35rem}',
|
|
34736
|
+
'[data-isl][data-isl-per-view="1"] .pbx-isl-t>div img,[data-isl]:not([data-isl-per-view]) .pbx-isl-t>div img{width:100%!important;border-radius:0.75rem;overflow:hidden}',
|
|
34734
34737
|
'[data-isl][data-isl-per-view="2"] .pbx-isl-t{grid-auto-columns:50%!important}',
|
|
34735
34738
|
'[data-isl][data-isl-per-view="2"] .pbx-isl-t>div{box-sizing:border-box!important;min-width:0!important;width:auto!important;max-width:none!important;padding-inline:0.4rem}',
|
|
34736
34739
|
'[data-isl][data-isl-per-view="2"] .pbx-isl-t>div img{width:100%!important;border-radius:0.75rem;overflow:hidden}',
|
|
34737
34740
|
`@media (max-width:767px){[data-isl][data-isl-per-view="2"] .pbx-isl-t{grid-auto-columns:${ye}%!important}[data-isl][data-isl-per-view="2"] .pbx-isl-t>div{padding-inline:0.35rem}}`
|
|
34738
|
-
].join("")
|
|
34739
|
-
'[data-isl][data-isl-per-view="1"] .pbx-isl-t{grid-auto-columns:90%!important}',
|
|
34740
|
-
'[data-isl][data-isl-per-view="1"] .pbx-isl-t>div{box-sizing:border-box!important;min-width:0!important;width:auto!important;max-width:none!important;padding-inline:0.35rem}',
|
|
34741
|
-
'[data-isl][data-isl-per-view="1"] .pbx-isl-t>div img{width:100%!important;border-radius:0.75rem;overflow:hidden}'
|
|
34742
|
-
].join(""), Ne = [
|
|
34741
|
+
].join(""), et = [
|
|
34743
34742
|
".pbx-isl-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:11;width:2.5rem;height:2.5rem;border-radius:9999px;background:rgba(255,255,255,0.4);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:none;align-items:center;justify-content:center;cursor:pointer;border:0;color:#111;box-shadow:0 1px 4px rgba(0,0,0,0.12);user-select:none}",
|
|
34744
34743
|
'[data-isl][data-isl-arrows]:not([data-isl-arrows="false"]) .pbx-isl-arrow{display:flex}',
|
|
34745
34744
|
".pbx-isl-prev{left:0.75rem}",
|
|
34746
34745
|
".pbx-isl-next{right:0.75rem}",
|
|
34747
34746
|
".pbx-isl-arrow svg{display:block;flex-shrink:0}",
|
|
34748
34747
|
"[data-builder-canvas] .pbx-isl-arrow{pointer-events:auto;z-index:20}"
|
|
34749
|
-
].join(""), Lt = i === 1 ? l *
|
|
34748
|
+
].join(""), Lt = i === 1 ? l * X : g, Pe = l * ye, ut = `[data-isl][data-isl-auto] .pbx-isl-t{overflow:hidden!important;scroll-snap-type:none!important;width:${Lt}%!important;animation:pbx-isl-r ${u}s ${De};pointer-events:none}`, ot = i === 2 ? `[data-isl][data-isl-auto][data-isl-per-view="2"] .pbx-isl-t{grid-auto-columns:${h}%!important}` : `[data-isl][data-isl-auto][data-isl-per-view="1"] .pbx-isl-t,[data-isl][data-isl-auto]:not([data-isl-per-view]) .pbx-isl-t{grid-auto-columns:${h}%!important}`, yt = i === 2 ? `@media (max-width:767px){[data-isl][data-isl-auto][data-isl-per-view="2"] .pbx-isl-t{width:${Pe}%!important;grid-auto-columns:${h}%!important}}` : "", vt = [
|
|
34749
|
+
`[data-builder-canvas] [data-isl][data-isl-per-view="1"] .pbx-isl-t,[data-builder-canvas] [data-isl]:not([data-isl-per-view]) .pbx-isl-t,[data-builder-canvas] [data-isl][data-isl-auto][data-isl-per-view="1"] .pbx-isl-t,[data-builder-canvas] [data-isl][data-isl-auto]:not([data-isl-per-view]) .pbx-isl-t{grid-auto-columns:${X}%!important}`,
|
|
34750
34750
|
'[data-builder-canvas] [data-isl][data-isl-per-view="2"] .pbx-isl-t,[data-builder-canvas] [data-isl][data-isl-auto][data-isl-per-view="2"] .pbx-isl-t{grid-auto-columns:50%!important}',
|
|
34751
34751
|
`@media (max-width:767px){[data-builder-canvas] [data-isl][data-isl-per-view="2"] .pbx-isl-t,[data-builder-canvas] [data-isl][data-isl-auto][data-isl-per-view="2"] .pbx-isl-t{grid-auto-columns:${ye}%!important}}`
|
|
34752
|
-
].join("")
|
|
34752
|
+
].join("");
|
|
34753
34753
|
return [
|
|
34754
|
-
`.pbx-isl-t{display:grid;grid-auto-flow:column;grid-auto-columns:${
|
|
34754
|
+
`.pbx-isl-t{display:grid;grid-auto-flow:column;grid-auto-columns:${we};overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;-webkit-overflow-scrolling:touch;scrollbar-width:none;-ms-overflow-style:none;width:100%}`,
|
|
34755
34755
|
".pbx-isl-t::-webkit-scrollbar{display:none}",
|
|
34756
34756
|
".pbx-isl-t>div{min-width:0;width:auto;max-width:none;scroll-snap-align:start;box-sizing:border-box}",
|
|
34757
|
-
we,
|
|
34758
34757
|
Ne,
|
|
34758
|
+
et,
|
|
34759
34759
|
v,
|
|
34760
34760
|
ut,
|
|
34761
34761
|
ot,
|
|
@@ -34789,8 +34789,9 @@ function El(o) {
|
|
|
34789
34789
|
return o.querySelectorAll("[data-isl]").forEach((t) => {
|
|
34790
34790
|
const r = t.querySelector(".pbx-isl-t");
|
|
34791
34791
|
if (!r) return;
|
|
34792
|
+
t.hasAttribute("data-isl-per-view") || (t.setAttribute("data-isl-per-view", "1"), e = !0);
|
|
34792
34793
|
const n = parseInt(t.getAttribute("data-isl-per-view") || "1", 10) === 2 ? 2 : 1;
|
|
34793
|
-
OR(r, n) && (e = !0), Array.from(r.children).forEach((m) => {
|
|
34794
|
+
n === 1 && t.getAttribute("data-isl-per-view") !== "1" && (t.setAttribute("data-isl-per-view", "1"), e = !0), OR(r, n) && (e = !0), Array.from(r.children).forEach((m) => {
|
|
34794
34795
|
var v;
|
|
34795
34796
|
if (!(m instanceof HTMLElement)) return;
|
|
34796
34797
|
const g = m.getAttribute("style");
|
|
@@ -34981,12 +34982,12 @@ const cee = { class: "pbx-max-w-full pbx-min-w-0" }, uee = { class: "pbx-myInput
|
|
|
34981
34982
|
h.value = !1, $.value = null;
|
|
34982
34983
|
}, H = S(0), L = S(!1), q = S(0), ie = _(() => (q.value, n.isSelectedElementImage())), ze = _(() => l.getImageSettingsPanelOpen), De = () => {
|
|
34983
34984
|
q.value++, s("open-image-settings");
|
|
34984
|
-
}, ye = _(() => (H.value, n.isSelectedComponentTopElement())),
|
|
34985
|
+
}, ye = _(() => (H.value, n.isSelectedComponentTopElement())), X = _(() => (H.value, n.selectedComponentIsFullWidth())), we = () => {
|
|
34985
34986
|
H.value++, L.value = !0;
|
|
34986
34987
|
}, Ne = async (K) => {
|
|
34987
34988
|
const R = n.setSelectedComponentFullWidth(K);
|
|
34988
34989
|
H.value++, await R, H.value++;
|
|
34989
|
-
},
|
|
34990
|
+
}, et = S(0), Lt = S(!1), Pe = S(so.layout), ut = S(
|
|
34990
34991
|
so.mobileColumns
|
|
34991
34992
|
), ot = S(
|
|
34992
34993
|
so.cardStyle
|
|
@@ -34994,9 +34995,9 @@ const cee = { class: "pbx-max-w-full pbx-min-w-0" }, uee = { class: "pbx-myInput
|
|
|
34994
34995
|
so.cardDesign
|
|
34995
34996
|
), vt = S(so.roundedImages), be = S(so.openInNewTab), ue = S(
|
|
34996
34997
|
so.buttonStyle
|
|
34997
|
-
), pe = S(so.roundedButtons),
|
|
34998
|
+
), pe = S(so.roundedButtons), ee = S(so.hidePrice), J = S(so.hideImage), oe = S(so.hideButton), fe = S(so.hideLinks), $e = S(!1), lt = S(!1), Ve = S(!1), It = S(!1), wt = S(!1);
|
|
34998
34999
|
let rt = null;
|
|
34999
|
-
const gi = _(() => rt ? Pe.value !== rt.layout || ut.value !== rt.mobileColumns || ot.value !== rt.cardStyle || yt.value !== rt.cardDesign || vt.value !== rt.roundedImages || be.value !== rt.openInNewTab || ue.value !== rt.buttonStyle || pe.value !== rt.roundedButtons ||
|
|
35000
|
+
const gi = _(() => rt ? Pe.value !== rt.layout || ut.value !== rt.mobileColumns || ot.value !== rt.cardStyle || yt.value !== rt.cardDesign || vt.value !== rt.roundedImages || be.value !== rt.openInNewTab || ue.value !== rt.buttonStyle || pe.value !== rt.roundedButtons || ee.value !== rt.hidePrice || J.value !== rt.hideImage || oe.value !== rt.hideButton || fe.value !== rt.hideLinks : !1), tn = _(() => (et.value, n.isSelectedProductSection())), go = () => {
|
|
35000
35001
|
const K = n.getSelectedProductSectionOptions(), R = K.mobileColumns ?? 1, Q = K.cardStyle ?? "minimal", Oe = K.cardDesign ?? "classic", Ge = K.roundedImages ?? !1, Xe = K.openInNewTab ?? !1, dt = K.buttonStyle ?? "text", St = K.roundedButtons ?? !1, Yo = K.hidePrice ?? !1, cr = K.hideImage ?? !1, Do = K.hideButton ?? !1, ur = K.hideLinks ?? !1, Rr = n.getSelectedProductSectionContentAvailability();
|
|
35001
35002
|
rt = {
|
|
35002
35003
|
layout: K.layout,
|
|
@@ -35011,7 +35012,7 @@ const cee = { class: "pbx-max-w-full pbx-min-w-0" }, uee = { class: "pbx-myInput
|
|
|
35011
35012
|
hideImage: cr,
|
|
35012
35013
|
hideButton: Do,
|
|
35013
35014
|
hideLinks: ur
|
|
35014
|
-
}, Pe.value = K.layout, ut.value = R, ot.value = Q, yt.value = Oe, vt.value = Ge, be.value = Xe, ue.value = dt, pe.value = St,
|
|
35015
|
+
}, Pe.value = K.layout, ut.value = R, ot.value = Q, yt.value = Oe, vt.value = Ge, be.value = Xe, ue.value = dt, pe.value = St, ee.value = Yo, J.value = cr, oe.value = Do, fe.value = ur, $e.value = Rr.hasPrices, lt.value = Rr.hasImages, Ve.value = Rr.hasButtons, It.value = Rr.hasLinks, et.value++, Lt.value = !0;
|
|
35015
35016
|
}, _o = () => ({
|
|
35016
35017
|
layout: Pe.value,
|
|
35017
35018
|
mobileColumns: ut.value,
|
|
@@ -35021,7 +35022,7 @@ const cee = { class: "pbx-max-w-full pbx-min-w-0" }, uee = { class: "pbx-myInput
|
|
|
35021
35022
|
openInNewTab: be.value,
|
|
35022
35023
|
buttonStyle: ue.value,
|
|
35023
35024
|
roundedButtons: pe.value,
|
|
35024
|
-
hidePrice:
|
|
35025
|
+
hidePrice: ee.value,
|
|
35025
35026
|
hideImage: J.value,
|
|
35026
35027
|
hideButton: oe.value,
|
|
35027
35028
|
hideLinks: fe.value
|
|
@@ -35036,7 +35037,7 @@ const cee = { class: "pbx-max-w-full pbx-min-w-0" }, uee = { class: "pbx-myInput
|
|
|
35036
35037
|
try {
|
|
35037
35038
|
await n.updateSelectedProductSection(_o(), {
|
|
35038
35039
|
persist: !0
|
|
35039
|
-
}),
|
|
35040
|
+
}), et.value++, i(r("Product section settings saved"), "success"), Vo();
|
|
35040
35041
|
} catch {
|
|
35041
35042
|
i(r("Could not save product section settings"), "error");
|
|
35042
35043
|
} finally {
|
|
@@ -35048,7 +35049,7 @@ const cee = { class: "pbx-max-w-full pbx-min-w-0" }, uee = { class: "pbx-myInput
|
|
|
35048
35049
|
C.value = K;
|
|
35049
35050
|
}, ne = (K) => {
|
|
35050
35051
|
E.value = K;
|
|
35051
|
-
},
|
|
35052
|
+
}, Z = (K) => {
|
|
35052
35053
|
k.value = K;
|
|
35053
35054
|
}, G = (K) => {
|
|
35054
35055
|
M.value = K;
|
|
@@ -35505,7 +35506,7 @@ const cee = { class: "pbx-max-w-full pbx-min-w-0" }, uee = { class: "pbx-myInput
|
|
|
35505
35506
|
p("p", Bee, f(x(r)("Stretch across browser width")), 1)
|
|
35506
35507
|
]),
|
|
35507
35508
|
O(io, {
|
|
35508
|
-
"model-value":
|
|
35509
|
+
"model-value": X.value,
|
|
35509
35510
|
"onUpdate:modelValue": Ne
|
|
35510
35511
|
}, null, 8, ["model-value"])
|
|
35511
35512
|
])
|
|
@@ -35549,8 +35550,8 @@ const cee = { class: "pbx-max-w-full pbx-min-w-0" }, uee = { class: "pbx-myInput
|
|
|
35549
35550
|
"onUpdate:buttonStyle": R[18] || (R[18] = (Q) => ue.value = Q),
|
|
35550
35551
|
"rounded-buttons": pe.value,
|
|
35551
35552
|
"onUpdate:roundedButtons": R[19] || (R[19] = (Q) => pe.value = Q),
|
|
35552
|
-
"hide-price":
|
|
35553
|
-
"onUpdate:hidePrice": R[20] || (R[20] = (Q) =>
|
|
35553
|
+
"hide-price": ee.value,
|
|
35554
|
+
"onUpdate:hidePrice": R[20] || (R[20] = (Q) => ee.value = Q),
|
|
35554
35555
|
"hide-image": J.value,
|
|
35555
35556
|
"onUpdate:hideImage": R[21] || (R[21] = (Q) => J.value = Q),
|
|
35556
35557
|
"hide-button": oe.value,
|
|
@@ -35645,7 +35646,7 @@ const cee = { class: "pbx-max-w-full pbx-min-w-0" }, uee = { class: "pbx-myInput
|
|
|
35645
35646
|
(y(), w(le, null, Se([1, 2, 3, 4, 5], (Q) => p("button", {
|
|
35646
35647
|
key: Q,
|
|
35647
35648
|
type: "button",
|
|
35648
|
-
onClick: (Oe) =>
|
|
35649
|
+
onClick: (Oe) => Z(Q),
|
|
35649
35650
|
class: U([
|
|
35650
35651
|
"pbx-h-10 pbx-min-w-10 pbx-px-3 pbx-rounded-lg pbx-text-sm pbx-font-medium pbx-cursor-pointer pbx-flex pbx-items-center pbx-justify-center pbx-border pbx-border-solid pbx-transition-colors",
|
|
35651
35652
|
k.value === Q ? "pbx-bg-myPrimaryLinkColor pbx-text-white pbx-border-myPrimaryLinkColor" : "pbx-bg-white pbx-text-gray-700 pbx-border-gray-200 hover:pbx-border-gray-300 hover:pbx-bg-gray-50"
|
|
@@ -37607,9 +37608,9 @@ const Vte = /* @__PURE__ */ nr(Fte, [["render", qte]]), Ute = ["srcdoc"], Np = 2
|
|
|
37607
37608
|
return ["All", ...new Set(ue)];
|
|
37608
37609
|
}), T = _(() => {
|
|
37609
37610
|
const ue = a.value.trim().toLowerCase(), pe = !ue && d.value !== "All" ? Op[0].components.data.filter(
|
|
37610
|
-
(
|
|
37611
|
+
(ee) => k(ee).includes(d.value)
|
|
37611
37612
|
) : Op[0].components.data;
|
|
37612
|
-
return ue ? pe.filter((
|
|
37613
|
+
return ue ? pe.filter((ee) => ee.title.toLowerCase().includes(ue)) : pe;
|
|
37613
37614
|
}), C = S(1), E = _(
|
|
37614
37615
|
() => Math.max(1, Math.ceil(T.value.length / Fp))
|
|
37615
37616
|
), $ = _(() => {
|
|
@@ -37620,18 +37621,18 @@ const Vte = /* @__PURE__ */ nr(Fte, [["render", qte]]), Ute = ["srcdoc"], Np = 2
|
|
|
37620
37621
|
C.value = 1;
|
|
37621
37622
|
});
|
|
37622
37623
|
const P = _(() => {
|
|
37623
|
-
const ue = a.value.trim().toLowerCase(), pe = g.value,
|
|
37624
|
-
return ue ?
|
|
37624
|
+
const ue = a.value.trim().toLowerCase(), pe = g.value, ee = !ue && c.value !== "All" ? pe.filter((J) => J.category === c.value) : pe;
|
|
37625
|
+
return ue ? ee.filter((J) => J.title.toLowerCase().includes(ue)) : ee;
|
|
37625
37626
|
}), F = S("All"), j = _(() => {
|
|
37626
37627
|
const ue = Rp[0].themes.data.map((pe) => pe.category);
|
|
37627
37628
|
return ["All", ...new Set(ue)];
|
|
37628
37629
|
}), B = _(() => {
|
|
37629
|
-
const ue = a.value.trim().toLowerCase(), pe = !ue && F.value !== "All" ? Rp[0].themes.data.filter((
|
|
37630
|
-
return ue ? pe.filter((
|
|
37630
|
+
const ue = a.value.trim().toLowerCase(), pe = !ue && F.value !== "All" ? Rp[0].themes.data.filter((ee) => ee.category === F.value) : Rp[0].themes.data;
|
|
37631
|
+
return ue ? pe.filter((ee) => ee.title.toLowerCase().includes(ue)) : pe;
|
|
37631
37632
|
}), { closeAddComponentModal: I } = NR(), N = _(() => {
|
|
37632
37633
|
var ue;
|
|
37633
37634
|
return (((ue = i.getComponents) == null ? void 0 : ue.length) ?? 0) > 0;
|
|
37634
|
-
}), z = S(!1), H = S(""), L = S(""), q = S(1), ie = S(""), ze = S(""), De = S(""), ye = S(null),
|
|
37635
|
+
}), z = S(!1), H = S(""), L = S(""), q = S(1), ie = S(""), ze = S(""), De = S(""), ye = S(null), X = S(null), we = S(null), Ne = S(null), et = S(null);
|
|
37635
37636
|
function Lt(ue) {
|
|
37636
37637
|
return ue.replace(/Layouts and visual\./g, e("Layouts and visual.")).replace(
|
|
37637
37638
|
/Start customizing by editing this default text directly in the editor\./g,
|
|
@@ -37653,10 +37654,10 @@ const Vte = /* @__PURE__ */ nr(Fte, [["render", qte]]), Ute = ["srcdoc"], Np = 2
|
|
|
37653
37654
|
}
|
|
37654
37655
|
}, ot = function(ue) {
|
|
37655
37656
|
if (N.value) {
|
|
37656
|
-
H.value = ue, z.value = !0, L.value = "delete", q.value = 2, ie.value = e("Replace page with theme"), ze.value = e("Replace page with theme description"), De.value = e("Close"), ye.value = null,
|
|
37657
|
+
H.value = ue, z.value = !0, L.value = "delete", q.value = 2, ie.value = e("Replace page with theme"), ze.value = e("Replace page with theme description"), De.value = e("Close"), ye.value = null, X.value = e("Replace"), we.value = () => {
|
|
37657
37658
|
z.value = !1;
|
|
37658
37659
|
}, Ne.value = () => {
|
|
37659
|
-
},
|
|
37660
|
+
}, et.value = async () => {
|
|
37660
37661
|
await ut(H.value), z.value = !1;
|
|
37661
37662
|
};
|
|
37662
37663
|
return;
|
|
@@ -37664,19 +37665,19 @@ const Vte = /* @__PURE__ */ nr(Fte, [["render", qte]]), Ute = ["srcdoc"], Np = 2
|
|
|
37664
37665
|
ut(ue);
|
|
37665
37666
|
}, yt = async function(ue) {
|
|
37666
37667
|
n.value = !0;
|
|
37667
|
-
const pe = vt(ue),
|
|
37668
|
+
const pe = vt(ue), ee = pe.html_code.replace(/Layouts and visual\./g, e("Layouts and visual.")).replace(
|
|
37668
37669
|
/Start customizing by editing this default text directly in the editor\./g,
|
|
37669
37670
|
e("Start customizing by editing this default text directly in the editor.")
|
|
37670
37671
|
), J = {
|
|
37671
37672
|
...pe,
|
|
37672
|
-
html_code:
|
|
37673
|
+
html_code: ee,
|
|
37673
37674
|
title: pe.title
|
|
37674
37675
|
};
|
|
37675
37676
|
await r.addComponent(J), t(e("Component added to page"), "success"), I(), n.value = !1;
|
|
37676
37677
|
}, vt = (ue) => {
|
|
37677
37678
|
if (!ue.title.includes("Button")) return ue;
|
|
37678
|
-
const
|
|
37679
|
-
return
|
|
37679
|
+
const ee = new DOMParser().parseFromString(ue.html_code, "text/html");
|
|
37680
|
+
return ee.querySelectorAll("#linktree").forEach((oe) => {
|
|
37680
37681
|
const fe = oe.querySelector("a");
|
|
37681
37682
|
fe instanceof HTMLElement && (oe.classList.remove("pbx-bg-myPrimaryLinkColor", "pbx-text-myPrimaryDarkGrayColor"), fe.classList.remove(
|
|
37682
37683
|
"pbx-bg-myPrimaryLinkColor",
|
|
@@ -37700,7 +37701,7 @@ const Vte = /* @__PURE__ */ nr(Fte, [["render", qte]]), Ute = ["srcdoc"], Np = 2
|
|
|
37700
37701
|
), u.value === "button" ? (fe.classList.add("pbx-bg-myPrimaryLinkColor", "pbx-text-white"), m.value && fe.classList.add("pbx-rounded-full")) : fe.classList.add("pbx-bg-transparent", "pbx-text-myPrimaryLinkColor"), b.value ? (fe.setAttribute("target", "_blank"), fe.setAttribute("rel", "noopener noreferrer nofollow")) : (fe.removeAttribute("target"), fe.removeAttribute("rel")));
|
|
37701
37702
|
}), {
|
|
37702
37703
|
...ue,
|
|
37703
|
-
html_code:
|
|
37704
|
+
html_code: ee.body.innerHTML
|
|
37704
37705
|
};
|
|
37705
37706
|
}, be = function(ue) {
|
|
37706
37707
|
return {
|
|
@@ -37728,7 +37729,7 @@ const Vte = /* @__PURE__ */ nr(Fte, [["render", qte]]), Ute = ["srcdoc"], Np = 2
|
|
|
37728
37729
|
p("div", aoe, [
|
|
37729
37730
|
p("label", soe, f(x(e)("Search...")), 1),
|
|
37730
37731
|
Re(p("input", {
|
|
37731
|
-
"onUpdate:modelValue": pe[0] || (pe[0] = (
|
|
37732
|
+
"onUpdate:modelValue": pe[0] || (pe[0] = (ee) => a.value = ee),
|
|
37732
37733
|
type: "search",
|
|
37733
37734
|
id: "search-components",
|
|
37734
37735
|
class: "pbx-myPrimarySearchInput pbx-w-full pbx-pl-10 pbx-border-0",
|
|
@@ -37747,13 +37748,13 @@ const Vte = /* @__PURE__ */ nr(Fte, [["render", qte]]), Ute = ["srcdoc"], Np = 2
|
|
|
37747
37748
|
p("div", poe, [
|
|
37748
37749
|
p("span", coe, f(x(e)("Browse")), 1),
|
|
37749
37750
|
p("div", uoe, [
|
|
37750
|
-
(y(!0), w(le, null, Se(l.value, (
|
|
37751
|
-
key:
|
|
37751
|
+
(y(!0), w(le, null, Se(l.value, (ee) => (y(), me(kr, {
|
|
37752
|
+
key: ee,
|
|
37752
37753
|
icon: "asterisk",
|
|
37753
|
-
label: x(e)(
|
|
37754
|
-
hint:
|
|
37755
|
-
active: s.value ===
|
|
37756
|
-
onClick: (J) => s.value =
|
|
37754
|
+
label: x(e)(ee),
|
|
37755
|
+
hint: ee === "Themes" ? x(e)("Full page themes") : x(e)("Building blocks"),
|
|
37756
|
+
active: s.value === ee,
|
|
37757
|
+
onClick: (J) => s.value = ee
|
|
37757
37758
|
}, null, 8, ["icon", "label", "hint", "active", "onClick"]))), 128))
|
|
37758
37759
|
])
|
|
37759
37760
|
]),
|
|
@@ -37765,25 +37766,25 @@ const Vte = /* @__PURE__ */ nr(Fte, [["render", qte]]), Ute = ["srcdoc"], Np = 2
|
|
|
37765
37766
|
p("div", hoe, [
|
|
37766
37767
|
p("span", foe, f(x(e)("Category")), 1),
|
|
37767
37768
|
p("div", yoe, [
|
|
37768
|
-
(y(!0), w(le, null, Se(j.value, (
|
|
37769
|
-
key:
|
|
37769
|
+
(y(!0), w(le, null, Se(j.value, (ee) => (y(), me(kr, {
|
|
37770
|
+
key: ee,
|
|
37770
37771
|
"slider-icon": "",
|
|
37771
|
-
label: x(e)(
|
|
37772
|
-
active: F.value ===
|
|
37773
|
-
onClick: (J) => F.value =
|
|
37772
|
+
label: x(e)(ee),
|
|
37773
|
+
active: F.value === ee,
|
|
37774
|
+
onClick: (J) => F.value = ee
|
|
37774
37775
|
}, null, 8, ["label", "active", "onClick"]))), 128))
|
|
37775
37776
|
])
|
|
37776
37777
|
]),
|
|
37777
37778
|
p("div", null, [
|
|
37778
37779
|
B.value.length ? (y(), w("div", voe, [
|
|
37779
|
-
(y(!0), w(le, null, Se(B.value, (
|
|
37780
|
-
key:
|
|
37781
|
-
title: x(e)(
|
|
37782
|
-
onClick: (J) => ot(
|
|
37780
|
+
(y(!0), w(le, null, Se(B.value, (ee) => (y(), me(Xm, {
|
|
37781
|
+
key: ee.title,
|
|
37782
|
+
title: x(e)(ee.title),
|
|
37783
|
+
onClick: (J) => ot(ee.html_code)
|
|
37783
37784
|
}, {
|
|
37784
37785
|
default: Y(() => [
|
|
37785
37786
|
O(Qm, {
|
|
37786
|
-
htmlCode:
|
|
37787
|
+
htmlCode: ee.html_code,
|
|
37787
37788
|
maxHeight: 480,
|
|
37788
37789
|
fit: "contain"
|
|
37789
37790
|
}, null, 8, ["htmlCode"])
|
|
@@ -37802,23 +37803,23 @@ const Vte = /* @__PURE__ */ nr(Fte, [["render", qte]]), Ute = ["srcdoc"], Np = 2
|
|
|
37802
37803
|
p("div", Toe, [
|
|
37803
37804
|
p("span", Poe, f(x(e)("Category")), 1),
|
|
37804
37805
|
p("div", Moe, [
|
|
37805
|
-
(y(!0), w(le, null, Se(h.value, (
|
|
37806
|
-
key:
|
|
37806
|
+
(y(!0), w(le, null, Se(h.value, (ee) => (y(), me(kr, {
|
|
37807
|
+
key: ee,
|
|
37807
37808
|
"slider-icon": "",
|
|
37808
|
-
label: x(e)(
|
|
37809
|
-
active: c.value ===
|
|
37810
|
-
onClick: (J) => c.value =
|
|
37809
|
+
label: x(e)(ee),
|
|
37810
|
+
active: c.value === ee,
|
|
37811
|
+
onClick: (J) => c.value = ee
|
|
37811
37812
|
}, null, 8, ["label", "active", "onClick"]))), 128))
|
|
37812
37813
|
])
|
|
37813
37814
|
]),
|
|
37814
37815
|
p("div", Loe, [
|
|
37815
37816
|
p("div", Aoe, [
|
|
37816
37817
|
P.value.length ? (y(), w("div", Eoe, [
|
|
37817
|
-
(y(!0), w(le, null, Se(P.value, (
|
|
37818
|
-
key:
|
|
37819
|
-
label: x(e)(
|
|
37820
|
-
hint: x(e)(
|
|
37821
|
-
onClick: (J) => yt(
|
|
37818
|
+
(y(!0), w(le, null, Se(P.value, (ee) => (y(), me(Yte, {
|
|
37819
|
+
key: ee.title,
|
|
37820
|
+
label: x(e)(ee.title),
|
|
37821
|
+
hint: x(e)(ee.category),
|
|
37822
|
+
onClick: (J) => yt(ee)
|
|
37822
37823
|
}, null, 8, ["label", "hint", "onClick"]))), 128))
|
|
37823
37824
|
])) : (y(), w("p", _oe, f(x(e)("No components found.")), 1))
|
|
37824
37825
|
]),
|
|
@@ -37826,11 +37827,11 @@ const Vte = /* @__PURE__ */ nr(Fte, [["render", qte]]), Ute = ["srcdoc"], Np = 2
|
|
|
37826
37827
|
v.value ? (y(), me(BR, {
|
|
37827
37828
|
key: 0,
|
|
37828
37829
|
"button-style": u.value,
|
|
37829
|
-
"onUpdate:buttonStyle": pe[2] || (pe[2] = (
|
|
37830
|
+
"onUpdate:buttonStyle": pe[2] || (pe[2] = (ee) => u.value = ee),
|
|
37830
37831
|
"open-in-new-tab": b.value,
|
|
37831
|
-
"onUpdate:openInNewTab": pe[3] || (pe[3] = (
|
|
37832
|
+
"onUpdate:openInNewTab": pe[3] || (pe[3] = (ee) => b.value = ee),
|
|
37832
37833
|
"rounded-buttons": m.value,
|
|
37833
|
-
"onUpdate:roundedButtons": pe[4] || (pe[4] = (
|
|
37834
|
+
"onUpdate:roundedButtons": pe[4] || (pe[4] = (ee) => m.value = ee),
|
|
37834
37835
|
translate: x(e),
|
|
37835
37836
|
title: "Button links",
|
|
37836
37837
|
description: "Link behavior on helper button components"
|
|
@@ -37847,26 +37848,26 @@ const Vte = /* @__PURE__ */ nr(Fte, [["render", qte]]), Ute = ["srcdoc"], Np = 2
|
|
|
37847
37848
|
p("div", Ooe, [
|
|
37848
37849
|
p("span", Roe, f(x(e)("Category")), 1),
|
|
37849
37850
|
p("div", Noe, [
|
|
37850
|
-
(y(!0), w(le, null, Se(M.value, (
|
|
37851
|
-
key:
|
|
37851
|
+
(y(!0), w(le, null, Se(M.value, (ee) => (y(), me(kr, {
|
|
37852
|
+
key: ee,
|
|
37852
37853
|
"slider-icon": "",
|
|
37853
|
-
label: x(e)(
|
|
37854
|
-
active: d.value ===
|
|
37855
|
-
onClick: (J) => d.value =
|
|
37854
|
+
label: x(e)(ee),
|
|
37855
|
+
active: d.value === ee,
|
|
37856
|
+
onClick: (J) => d.value = ee
|
|
37856
37857
|
}, null, 8, ["label", "active", "onClick"]))), 128))
|
|
37857
37858
|
])
|
|
37858
37859
|
]),
|
|
37859
37860
|
p("div", null, [
|
|
37860
37861
|
$.value.length ? (y(), w("div", Foe, [
|
|
37861
|
-
(y(!0), w(le, null, Se($.value, (
|
|
37862
|
-
key:
|
|
37863
|
-
title: x(e)(
|
|
37864
|
-
description: Pe(
|
|
37865
|
-
onClick: (J) => yt(be(
|
|
37862
|
+
(y(!0), w(le, null, Se($.value, (ee) => (y(), me(Xm, {
|
|
37863
|
+
key: ee.title,
|
|
37864
|
+
title: x(e)(ee.title),
|
|
37865
|
+
description: Pe(ee.title),
|
|
37866
|
+
onClick: (J) => yt(be(ee))
|
|
37866
37867
|
}, {
|
|
37867
37868
|
default: Y(() => [
|
|
37868
37869
|
O(Qm, {
|
|
37869
|
-
htmlCode:
|
|
37870
|
+
htmlCode: ee.html_code,
|
|
37870
37871
|
maxHeight: 360,
|
|
37871
37872
|
fit: "contain"
|
|
37872
37873
|
}, null, 8, ["htmlCode"])
|
|
@@ -37880,18 +37881,18 @@ const Vte = /* @__PURE__ */ nr(Fte, [["render", qte]]), Ute = ["srcdoc"], Np = 2
|
|
|
37880
37881
|
type: "button",
|
|
37881
37882
|
class: U(["pbx-text-xs pbx-h-10 pbx-px-2 pbx-cursor-pointer pbx-rounded-full pbx-flex pbx-items-center pbx-border-none pbx-justify-center pbx-bg-gray-50 pbx-aspect-square hover:pbx-bg-myPrimaryLinkColor hover:pbx-text-white focus-visible:pbx-outline-none focus-visible:pbx-ring-2 focus-visible:pbx-ring-myPrimaryLinkColor/30 pbx-text-black", C.value === 1 ? "pbx-opacity-40 pbx-cursor-not-allowed" : ""]),
|
|
37882
37883
|
disabled: C.value === 1,
|
|
37883
|
-
onClick: pe[5] || (pe[5] = (
|
|
37884
|
+
onClick: pe[5] || (pe[5] = (ee) => C.value--)
|
|
37884
37885
|
}, f(x(e)("Previous")), 11, Voe),
|
|
37885
37886
|
p("div", Uoe, [
|
|
37886
|
-
(y(!0), w(le, null, Se(E.value, (
|
|
37887
|
-
key:
|
|
37887
|
+
(y(!0), w(le, null, Se(E.value, (ee) => (y(), w("button", {
|
|
37888
|
+
key: ee,
|
|
37888
37889
|
type: "button",
|
|
37889
37890
|
class: U([
|
|
37890
37891
|
"pbx-h-10 pbx-w-10 pbx-text-xs pbx-cursor-pointer pbx-rounded-full pbx-flex pbx-items-center pbx-border-none pbx-justify-center pbx-bg-gray-50 pbx-aspect-square hover:pbx-bg-myPrimaryLinkColor hover:pbx-text-white focus-visible:pbx-outline-none focus-visible:pbx-ring-2 focus-visible:pbx-ring-myPrimaryLinkColor/30 pbx-text-black",
|
|
37891
|
-
|
|
37892
|
+
ee === C.value ? "pbx-bg-myPrimaryLinkColor pbx-text-white hover:pbx-bg-myPrimaryLinkColor hover:pbx-text-white" : "hover:pbx-bg-myPrimaryLinkColor hover:pbx-text-white"
|
|
37892
37893
|
]),
|
|
37893
|
-
onClick: (J) => C.value =
|
|
37894
|
-
}, f(
|
|
37894
|
+
onClick: (J) => C.value = ee
|
|
37895
|
+
}, f(ee), 11, Woe))), 128))
|
|
37895
37896
|
]),
|
|
37896
37897
|
p("button", {
|
|
37897
37898
|
type: "button",
|
|
@@ -37900,7 +37901,7 @@ const Vte = /* @__PURE__ */ nr(Fte, [["render", qte]]), Ute = ["srcdoc"], Np = 2
|
|
|
37900
37901
|
C.value === E.value ? "pbx-opacity-40 pbx-cursor-not-allowed" : ""
|
|
37901
37902
|
]),
|
|
37902
37903
|
disabled: C.value === E.value,
|
|
37903
|
-
onClick: pe[6] || (pe[6] = (
|
|
37904
|
+
onClick: pe[6] || (pe[6] = (ee) => C.value++)
|
|
37904
37905
|
}, f(x(e)("Next")), 11, Goe)
|
|
37905
37906
|
])) : A("", !0)
|
|
37906
37907
|
])
|
|
@@ -37921,18 +37922,18 @@ const Vte = /* @__PURE__ */ nr(Fte, [["render", qte]]), Ute = ["srcdoc"], Np = 2
|
|
|
37921
37922
|
isLoading: n.value,
|
|
37922
37923
|
firstButtonText: De.value,
|
|
37923
37924
|
secondButtonText: ye.value ?? void 0,
|
|
37924
|
-
thirdButtonText:
|
|
37925
|
+
thirdButtonText: X.value ?? void 0,
|
|
37925
37926
|
onFirstModalButtonFunctionDynamicModalBuilder: pe[7] || (pe[7] = () => {
|
|
37926
|
-
var
|
|
37927
|
-
return (
|
|
37927
|
+
var ee;
|
|
37928
|
+
return (ee = we.value) == null ? void 0 : ee.call(we);
|
|
37928
37929
|
}),
|
|
37929
37930
|
onSecondModalButtonFunctionDynamicModalBuilder: pe[8] || (pe[8] = () => {
|
|
37930
|
-
var
|
|
37931
|
-
return (
|
|
37931
|
+
var ee;
|
|
37932
|
+
return (ee = Ne.value) == null ? void 0 : ee.call(Ne);
|
|
37932
37933
|
}),
|
|
37933
37934
|
onThirdModalButtonFunctionDynamicModalBuilder: pe[9] || (pe[9] = () => {
|
|
37934
|
-
var
|
|
37935
|
-
return (
|
|
37935
|
+
var ee;
|
|
37936
|
+
return (ee = et.value) == null ? void 0 : ee.call(et);
|
|
37936
37937
|
})
|
|
37937
37938
|
}, {
|
|
37938
37939
|
default: Y(() => [...pe[12] || (pe[12] = [
|
|
@@ -38078,16 +38079,16 @@ const Vte = /* @__PURE__ */ nr(Fte, [["render", qte]]), Ute = ["srcdoc"], Np = 2
|
|
|
38078
38079
|
const e = o, t = Ye(), { closeMediaLibraryModal: r, closeProductLibraryModal: i } = NR(), { translate: n } = ke(), { showToast: a } = gt(), s = ri("CustomMediaComponent", null), l = S(!1), d = S(""), c = S(/* @__PURE__ */ new Map()), u = S([]), b = S("grid-4"), m = S(2), g = S("classic"), h = S("minimal"), v = S(!0), k = S(!0), M = S("button"), T = S(!0), C = S(!1), E = S(!1), $ = S(!1), P = S(!1), F = S(null);
|
|
38079
38080
|
let j = null;
|
|
38080
38081
|
const B = S(!1), I = S(""), N = S(""), z = S(""), H = S(null), L = S(null), q = S(null), ie = S(/* @__PURE__ */ new Map()), ze = kR, De = CR, ye = TR;
|
|
38081
|
-
function
|
|
38082
|
+
function X(ne) {
|
|
38082
38083
|
return ne.__pbxSelectionKey != null ? ne.__pbxSelectionKey : ne.id != null ? ne.id : ne.title != null ? ne.title : ne;
|
|
38083
38084
|
}
|
|
38084
38085
|
const we = _(() => {
|
|
38085
|
-
const ne = d.value.trim().toLowerCase(),
|
|
38086
|
-
return
|
|
38087
|
-
const Ie =
|
|
38086
|
+
const ne = d.value.trim().toLowerCase(), Z = ne ? e.products.filter((xe) => [xe.title, xe.description, xe.sku, xe.badge].filter(Boolean).join(" ").toLowerCase().includes(ne)) : e.products, G = /* @__PURE__ */ new Set();
|
|
38087
|
+
return Z.filter((xe) => {
|
|
38088
|
+
const Ie = X(xe);
|
|
38088
38089
|
return G.has(Ie) ? !1 : (G.add(Ie), !0);
|
|
38089
38090
|
});
|
|
38090
|
-
}), Ne = _(() => u.value),
|
|
38091
|
+
}), Ne = _(() => u.value), et = _(
|
|
38091
38092
|
() => ze.find((ne) => ne.value === b.value) ?? ze[0]
|
|
38092
38093
|
), Lt = _(
|
|
38093
38094
|
() => De.find((ne) => ne.value === g.value) ?? De[0]
|
|
@@ -38110,94 +38111,94 @@ const Vte = /* @__PURE__ */ nr(Fte, [["render", qte]]), Ute = ["srcdoc"], Np = 2
|
|
|
38110
38111
|
return P.value ? !1 : !ut(ne.url);
|
|
38111
38112
|
}
|
|
38112
38113
|
const ue = _(() => Ne.value.length ? Ne.value.every((ne) => !(ot(ne) || be(ne) || yt(ne) || vt(ne))) : !1), pe = S(!1);
|
|
38113
|
-
async function
|
|
38114
|
+
async function ee() {
|
|
38114
38115
|
if (pe.value = !0, await Rn(400), !u.value.length) return;
|
|
38115
38116
|
const ne = u.value.map((G) => {
|
|
38116
38117
|
const xe = { ...G };
|
|
38117
38118
|
return ot(xe) && (xe.title = "Sample product title"), !P.value && be(xe) && (xe.url = "https://www.google.com"), !C.value && yt(xe) && (xe.price = "99.00"), !$.value && !P.value && vt(xe) && (xe.buttonText = "View product"), pe.value = !1, xe;
|
|
38118
38119
|
});
|
|
38119
38120
|
u.value = ne;
|
|
38120
|
-
const
|
|
38121
|
+
const Z = new Map(c.value);
|
|
38121
38122
|
ne.forEach((G) => {
|
|
38122
|
-
|
|
38123
|
-
}), c.value =
|
|
38123
|
+
Z.set(X(G), G);
|
|
38124
|
+
}), c.value = Z, a(n("Missing required fields filled"), "success");
|
|
38124
38125
|
}
|
|
38125
38126
|
function J(ne) {
|
|
38126
|
-
const
|
|
38127
|
-
if (G.has(
|
|
38128
|
-
G.delete(
|
|
38127
|
+
const Z = X(ne), G = new Map(c.value);
|
|
38128
|
+
if (G.has(Z))
|
|
38129
|
+
G.delete(Z), u.value = u.value.filter((xe) => X(xe) !== Z);
|
|
38129
38130
|
else {
|
|
38130
|
-
const xe = { ...ne }, Ie = ie.value.get(
|
|
38131
|
-
Ie && (xe.image = Ie), xe.__pbxSelectionKey =
|
|
38131
|
+
const xe = { ...ne }, Ie = ie.value.get(Z);
|
|
38132
|
+
Ie && (xe.image = Ie), xe.__pbxSelectionKey = Z, G.set(Z, xe), u.value = [...u.value, xe];
|
|
38132
38133
|
}
|
|
38133
38134
|
c.value = G;
|
|
38134
38135
|
}
|
|
38135
38136
|
function oe(ne) {
|
|
38136
|
-
const
|
|
38137
|
+
const Z = X(ne), G = c.value.get(Z);
|
|
38137
38138
|
if (G != null && G.image)
|
|
38138
38139
|
return G.image;
|
|
38139
|
-
const xe = ie.value.get(
|
|
38140
|
+
const xe = ie.value.get(Z);
|
|
38140
38141
|
return xe || ne.image;
|
|
38141
38142
|
}
|
|
38142
38143
|
function fe(ne) {
|
|
38143
|
-
q.value =
|
|
38144
|
+
q.value = X(ne), B.value = !0, I.value = n("Media Library"), N.value = null, z.value = n("Close"), H.value = n("Select image"), L.value = null;
|
|
38144
38145
|
}
|
|
38145
38146
|
function $e() {
|
|
38146
38147
|
B.value = !1, q.value = null, r();
|
|
38147
38148
|
}
|
|
38148
38149
|
function lt(ne) {
|
|
38149
|
-
const
|
|
38150
|
-
if (!
|
|
38150
|
+
const Z = q.value, G = typeof ne == "string" ? ne : ne == null ? void 0 : ne.src;
|
|
38151
|
+
if (!Z || !G) return;
|
|
38151
38152
|
const xe = new Map(ie.value);
|
|
38152
|
-
xe.set(
|
|
38153
|
-
const Ie = c.value.get(
|
|
38153
|
+
xe.set(Z, G), ie.value = xe;
|
|
38154
|
+
const Ie = c.value.get(Z);
|
|
38154
38155
|
if (Ie) {
|
|
38155
38156
|
const bt = { ...Ie, image: G }, $o = new Map(c.value);
|
|
38156
|
-
$o.set(
|
|
38157
|
-
(ar) =>
|
|
38157
|
+
$o.set(Z, bt), c.value = $o, u.value = u.value.map(
|
|
38158
|
+
(ar) => X(ar) === Z ? bt : ar
|
|
38158
38159
|
);
|
|
38159
38160
|
}
|
|
38160
38161
|
$e();
|
|
38161
38162
|
}
|
|
38162
38163
|
function Ve(ne) {
|
|
38163
|
-
return c.value.has(
|
|
38164
|
+
return c.value.has(X(ne));
|
|
38164
38165
|
}
|
|
38165
38166
|
function It(ne) {
|
|
38166
|
-
const
|
|
38167
|
-
G.delete(
|
|
38167
|
+
const Z = X(ne), G = new Map(c.value);
|
|
38168
|
+
G.delete(Z), c.value = G, u.value = u.value.filter((xe) => X(xe) !== Z);
|
|
38168
38169
|
}
|
|
38169
38170
|
function wt(ne) {
|
|
38170
38171
|
if (ne === 0) return;
|
|
38171
|
-
const
|
|
38172
|
-
[
|
|
38172
|
+
const Z = [...u.value];
|
|
38173
|
+
[Z[ne - 1], Z[ne]] = [Z[ne], Z[ne - 1]], u.value = Z, gi(Z[ne - 1]);
|
|
38173
38174
|
}
|
|
38174
38175
|
function rt(ne) {
|
|
38175
38176
|
if (ne === u.value.length - 1) return;
|
|
38176
|
-
const
|
|
38177
|
-
[
|
|
38177
|
+
const Z = [...u.value];
|
|
38178
|
+
[Z[ne], Z[ne + 1]] = [Z[ne + 1], Z[ne]], u.value = Z, gi(Z[ne + 1]);
|
|
38178
38179
|
}
|
|
38179
38180
|
function gi(ne) {
|
|
38180
|
-
F.value =
|
|
38181
|
+
F.value = X(ne), j && clearTimeout(j), j = setTimeout(() => {
|
|
38181
38182
|
F.value = null, j = null;
|
|
38182
38183
|
}, 500);
|
|
38183
38184
|
}
|
|
38184
38185
|
function tn(ne) {
|
|
38185
|
-
return F.value ===
|
|
38186
|
+
return F.value === X(ne);
|
|
38186
38187
|
}
|
|
38187
38188
|
function go(ne) {
|
|
38188
38189
|
return ne.target.value;
|
|
38189
38190
|
}
|
|
38190
|
-
function _o(ne,
|
|
38191
|
-
const xe = u.value.findIndex((ar) =>
|
|
38191
|
+
function _o(ne, Z, G) {
|
|
38192
|
+
const xe = u.value.findIndex((ar) => X(ar) === ne);
|
|
38192
38193
|
if (xe === -1) return;
|
|
38193
38194
|
const Ie = [...u.value], bt = { ...Ie[xe] };
|
|
38194
|
-
|
|
38195
|
+
Z === "title" ? bt.title = G : Z === "description" ? bt.description = G : G.trim().length ? bt[Z] = G : delete bt[Z], Ie[xe] = bt, u.value = Ie;
|
|
38195
38196
|
const $o = new Map(c.value);
|
|
38196
38197
|
$o.set(ne, bt), c.value = $o;
|
|
38197
38198
|
}
|
|
38198
38199
|
function Vo(ne) {
|
|
38199
|
-
const
|
|
38200
|
-
return delete
|
|
38200
|
+
const Z = { ...ne };
|
|
38201
|
+
return delete Z.__pbxSelectionKey, Z;
|
|
38201
38202
|
}
|
|
38202
38203
|
ir(() => {
|
|
38203
38204
|
j && clearTimeout(j);
|
|
@@ -38218,7 +38219,7 @@ const Vte = /* @__PURE__ */ nr(Fte, [["render", qte]]), Ute = ["srcdoc"], Np = 2
|
|
|
38218
38219
|
]);
|
|
38219
38220
|
function xi(ne) {
|
|
38220
38221
|
return Object.entries(ne).filter(
|
|
38221
|
-
([
|
|
38222
|
+
([Z, G]) => !$r.has(Z) && G != null && G !== ""
|
|
38222
38223
|
);
|
|
38223
38224
|
}
|
|
38224
38225
|
async function Zn() {
|
|
@@ -38250,10 +38251,10 @@ const Vte = /* @__PURE__ */ nr(Fte, [["render", qte]]), Ute = ["srcdoc"], Np = 2
|
|
|
38250
38251
|
l.value = !1;
|
|
38251
38252
|
}
|
|
38252
38253
|
}
|
|
38253
|
-
return (ne,
|
|
38254
|
+
return (ne, Z) => (y(), w("div", null, [
|
|
38254
38255
|
p("div", null, [
|
|
38255
38256
|
o.showSampleCatalogBanner ? (y(), w("div", ere, [
|
|
38256
|
-
|
|
38257
|
+
Z[14] || (Z[14] = p("span", { class: "pbx-productSampleCatalogBannerIcon" }, [
|
|
38257
38258
|
p("span", {
|
|
38258
38259
|
class: "material-symbols-outlined",
|
|
38259
38260
|
"aria-hidden": "true"
|
|
@@ -38264,14 +38265,14 @@ const Vte = /* @__PURE__ */ nr(Fte, [["render", qte]]), Ute = ["srcdoc"], Np = 2
|
|
|
38264
38265
|
])
|
|
38265
38266
|
])) : A("", !0),
|
|
38266
38267
|
p("form", {
|
|
38267
|
-
onSubmit:
|
|
38268
|
+
onSubmit: Z[1] || (Z[1] = Te(() => {
|
|
38268
38269
|
}, ["prevent"]))
|
|
38269
38270
|
}, [
|
|
38270
38271
|
p("div", rre, [
|
|
38271
38272
|
p("div", ire, [
|
|
38272
38273
|
p("label", nre, f(x(n)("Search products")), 1),
|
|
38273
38274
|
Re(p("input", {
|
|
38274
|
-
"onUpdate:modelValue":
|
|
38275
|
+
"onUpdate:modelValue": Z[0] || (Z[0] = (G) => d.value = G),
|
|
38275
38276
|
type: "search",
|
|
38276
38277
|
id: "search-products",
|
|
38277
38278
|
class: "pbx-myPrimarySearchInput pbx-w-full pbx-pl-10 pbx-border-0",
|
|
@@ -38280,7 +38281,7 @@ const Vte = /* @__PURE__ */ nr(Fte, [["render", qte]]), Ute = ["srcdoc"], Np = 2
|
|
|
38280
38281
|
}, null, 8, are), [
|
|
38281
38282
|
[qo, d.value]
|
|
38282
38283
|
]),
|
|
38283
|
-
|
|
38284
|
+
Z[15] || (Z[15] = p("div", { class: "pbx-flex pbx-absolute pbx-inset-y-0 pbx-left-0 pbx-items-center pbx-pl-3 pbx-pointer-events-none" }, [
|
|
38284
38285
|
p("span", { class: "material-symbols-outlined" }, " search ")
|
|
38285
38286
|
], -1))
|
|
38286
38287
|
]),
|
|
@@ -38290,29 +38291,29 @@ const Vte = /* @__PURE__ */ nr(Fte, [["render", qte]]), Ute = ["srcdoc"], Np = 2
|
|
|
38290
38291
|
p("div", lre, [
|
|
38291
38292
|
O(IR, {
|
|
38292
38293
|
layout: b.value,
|
|
38293
|
-
"onUpdate:layout":
|
|
38294
|
+
"onUpdate:layout": Z[2] || (Z[2] = (G) => b.value = G),
|
|
38294
38295
|
"mobile-columns": m.value,
|
|
38295
|
-
"onUpdate:mobileColumns":
|
|
38296
|
+
"onUpdate:mobileColumns": Z[3] || (Z[3] = (G) => m.value = G),
|
|
38296
38297
|
"card-design": g.value,
|
|
38297
|
-
"onUpdate:cardDesign":
|
|
38298
|
+
"onUpdate:cardDesign": Z[4] || (Z[4] = (G) => g.value = G),
|
|
38298
38299
|
"card-style": h.value,
|
|
38299
|
-
"onUpdate:cardStyle":
|
|
38300
|
+
"onUpdate:cardStyle": Z[5] || (Z[5] = (G) => h.value = G),
|
|
38300
38301
|
"rounded-images": v.value,
|
|
38301
|
-
"onUpdate:roundedImages":
|
|
38302
|
+
"onUpdate:roundedImages": Z[6] || (Z[6] = (G) => v.value = G),
|
|
38302
38303
|
"open-in-new-tab": k.value,
|
|
38303
|
-
"onUpdate:openInNewTab":
|
|
38304
|
+
"onUpdate:openInNewTab": Z[7] || (Z[7] = (G) => k.value = G),
|
|
38304
38305
|
"button-style": M.value,
|
|
38305
|
-
"onUpdate:buttonStyle":
|
|
38306
|
+
"onUpdate:buttonStyle": Z[8] || (Z[8] = (G) => M.value = G),
|
|
38306
38307
|
"rounded-buttons": T.value,
|
|
38307
|
-
"onUpdate:roundedButtons":
|
|
38308
|
+
"onUpdate:roundedButtons": Z[9] || (Z[9] = (G) => T.value = G),
|
|
38308
38309
|
"hide-price": C.value,
|
|
38309
|
-
"onUpdate:hidePrice":
|
|
38310
|
+
"onUpdate:hidePrice": Z[10] || (Z[10] = (G) => C.value = G),
|
|
38310
38311
|
"hide-image": E.value,
|
|
38311
|
-
"onUpdate:hideImage":
|
|
38312
|
+
"onUpdate:hideImage": Z[11] || (Z[11] = (G) => E.value = G),
|
|
38312
38313
|
"hide-button": $.value,
|
|
38313
|
-
"onUpdate:hideButton":
|
|
38314
|
+
"onUpdate:hideButton": Z[12] || (Z[12] = (G) => $.value = G),
|
|
38314
38315
|
"hide-links": P.value,
|
|
38315
|
-
"onUpdate:hideLinks":
|
|
38316
|
+
"onUpdate:hideLinks": Z[13] || (Z[13] = (G) => P.value = G),
|
|
38316
38317
|
"show-hide-links-toggle": !0,
|
|
38317
38318
|
"has-product-prices": !0,
|
|
38318
38319
|
"has-product-images": !0,
|
|
@@ -38327,7 +38328,7 @@ const Vte = /* @__PURE__ */ nr(Fte, [["render", qte]]), Ute = ["srcdoc"], Np = 2
|
|
|
38327
38328
|
p("div", cre, [
|
|
38328
38329
|
we.value.length ? (y(), w("div", ure, [
|
|
38329
38330
|
(y(!0), w(le, null, Se(we.value, (G) => (y(), w("button", {
|
|
38330
|
-
key: String(
|
|
38331
|
+
key: String(X(G)),
|
|
38331
38332
|
type: "button",
|
|
38332
38333
|
class: U([
|
|
38333
38334
|
"pbx-group pbx-text-left pbx-relative pbx-overflow-hidden pbx-rounded-2xl pbx-border pbx-p-3 pbx-transition-all pbx-duration-150",
|
|
@@ -38389,8 +38390,8 @@ const Vte = /* @__PURE__ */ nr(Fte, [["render", qte]]), Ute = ["srcdoc"], Np = 2
|
|
|
38389
38390
|
], 2),
|
|
38390
38391
|
p("div", Hre, [
|
|
38391
38392
|
p("span", Dre, f(x(n)("Grid layout")), 1),
|
|
38392
|
-
p("p", zre, f(x(n)(
|
|
38393
|
-
p("p", Ore, f(b.value !== "grid-1" && m.value === 2 ? x(n)("Two products per row") : x(n)(
|
|
38393
|
+
p("p", zre, f(x(n)(et.value.labelKey)), 1),
|
|
38394
|
+
p("p", Ore, f(b.value !== "grid-1" && m.value === 2 ? x(n)("Two products per row") : x(n)(et.value.hintKey)), 1)
|
|
38394
38395
|
]),
|
|
38395
38396
|
k.value ? (y(), w("div", Rre, [
|
|
38396
38397
|
p("span", Nre, f(x(n)("Open in new tab")), 1),
|
|
@@ -38423,7 +38424,7 @@ const Vte = /* @__PURE__ */ nr(Fte, [["render", qte]]), Ute = ["srcdoc"], Np = 2
|
|
|
38423
38424
|
p("div", rie, [
|
|
38424
38425
|
p("button", {
|
|
38425
38426
|
type: "button",
|
|
38426
|
-
onClick:
|
|
38427
|
+
onClick: ee,
|
|
38427
38428
|
class: "myPrimaryParagraph pbx-text-xs pbx-flex pbx-items-center pbx-gap-2"
|
|
38428
38429
|
}, [
|
|
38429
38430
|
p("span", null, f(x(n)("Fill missing required fields")), 1),
|
|
@@ -38439,7 +38440,7 @@ const Vte = /* @__PURE__ */ nr(Fte, [["render", qte]]), Ute = ["srcdoc"], Np = 2
|
|
|
38439
38440
|
}, {
|
|
38440
38441
|
default: Y(() => [
|
|
38441
38442
|
(y(!0), w(le, null, Se(Ne.value, (G, xe) => (y(), w("div", {
|
|
38442
|
-
key: String(
|
|
38443
|
+
key: String(X(G)),
|
|
38443
38444
|
class: "pbx-modalSidebarSelectedItem"
|
|
38444
38445
|
}, [
|
|
38445
38446
|
p("div", aie, [
|
|
@@ -38459,7 +38460,7 @@ const Vte = /* @__PURE__ */ nr(Fte, [["render", qte]]), Ute = ["srcdoc"], Np = 2
|
|
|
38459
38460
|
disabled: xe === 0,
|
|
38460
38461
|
"aria-label": x(n)("Move up"),
|
|
38461
38462
|
onClick: Te((Ie) => wt(xe), ["stop"])
|
|
38462
|
-
}, [...
|
|
38463
|
+
}, [...Z[16] || (Z[16] = [
|
|
38463
38464
|
p("span", {
|
|
38464
38465
|
class: "material-symbols-outlined",
|
|
38465
38466
|
style: { "font-size": "14px" }
|
|
@@ -38471,7 +38472,7 @@ const Vte = /* @__PURE__ */ nr(Fte, [["render", qte]]), Ute = ["srcdoc"], Np = 2
|
|
|
38471
38472
|
disabled: xe === Ne.value.length - 1,
|
|
38472
38473
|
"aria-label": x(n)("Move down"),
|
|
38473
38474
|
onClick: Te((Ie) => rt(xe), ["stop"])
|
|
38474
|
-
}, [...
|
|
38475
|
+
}, [...Z[17] || (Z[17] = [
|
|
38475
38476
|
p("span", {
|
|
38476
38477
|
class: "material-symbols-outlined",
|
|
38477
38478
|
style: { "font-size": "14px" }
|
|
@@ -38484,7 +38485,7 @@ const Vte = /* @__PURE__ */ nr(Fte, [["render", qte]]), Ute = ["srcdoc"], Np = 2
|
|
|
38484
38485
|
"aria-label": x(n)("Remove"),
|
|
38485
38486
|
title: x(n)("Remove"),
|
|
38486
38487
|
onClick: Te((Ie) => It(G), ["stop"])
|
|
38487
|
-
}, [...
|
|
38488
|
+
}, [...Z[18] || (Z[18] = [
|
|
38488
38489
|
p("span", { class: "material-symbols-outlined pbx-materialIconLg" }, "close", -1)
|
|
38489
38490
|
])], 8, bie)
|
|
38490
38491
|
])
|
|
@@ -38508,7 +38509,7 @@ const Vte = /* @__PURE__ */ nr(Fte, [["render", qte]]), Ute = ["srcdoc"], Np = 2
|
|
|
38508
38509
|
type: "text",
|
|
38509
38510
|
value: G.title || "",
|
|
38510
38511
|
placeholder: x(n)("Title"),
|
|
38511
|
-
onInput: (Ie) => _o(
|
|
38512
|
+
onInput: (Ie) => _o(X(G), "title", go(Ie))
|
|
38512
38513
|
}, null, 40, yie),
|
|
38513
38514
|
p("div", vie, [
|
|
38514
38515
|
ot(G) ? (y(), w("p", wie, f(x(n)("Title is required")), 1)) : A("", !0)
|
|
@@ -38526,7 +38527,7 @@ const Vte = /* @__PURE__ */ nr(Fte, [["render", qte]]), Ute = ["srcdoc"], Np = 2
|
|
|
38526
38527
|
value: G.description || "",
|
|
38527
38528
|
placeholder: x(n)("Description"),
|
|
38528
38529
|
onInput: (Ie) => _o(
|
|
38529
|
-
|
|
38530
|
+
X(G),
|
|
38530
38531
|
"description",
|
|
38531
38532
|
go(Ie)
|
|
38532
38533
|
)
|
|
@@ -38543,7 +38544,7 @@ const Vte = /* @__PURE__ */ nr(Fte, [["render", qte]]), Ute = ["srcdoc"], Np = 2
|
|
|
38543
38544
|
type: "url",
|
|
38544
38545
|
value: G.url || "",
|
|
38545
38546
|
placeholder: x(n)("Link"),
|
|
38546
|
-
onInput: (Ie) => _o(
|
|
38547
|
+
onInput: (Ie) => _o(X(G), "url", go(Ie))
|
|
38547
38548
|
}, null, 40, Mie),
|
|
38548
38549
|
p("div", Lie, [
|
|
38549
38550
|
be(G) ? (y(), w("p", Aie, f(x(n)("Link is required")), 1)) : A("", !0)
|
|
@@ -38560,7 +38561,7 @@ const Vte = /* @__PURE__ */ nr(Fte, [["render", qte]]), Ute = ["srcdoc"], Np = 2
|
|
|
38560
38561
|
type: "text",
|
|
38561
38562
|
value: G.price != null ? String(G.price) : "",
|
|
38562
38563
|
placeholder: x(n)("New price"),
|
|
38563
|
-
onInput: (Ie) => _o(
|
|
38564
|
+
onInput: (Ie) => _o(X(G), "price", go(Ie))
|
|
38564
38565
|
}, null, 40, $ie),
|
|
38565
38566
|
p("div", Bie, [
|
|
38566
38567
|
yt(G) ? (y(), w("p", Iie, f(x(n)("New price is required")), 1)) : A("", !0)
|
|
@@ -38578,7 +38579,7 @@ const Vte = /* @__PURE__ */ nr(Fte, [["render", qte]]), Ute = ["srcdoc"], Np = 2
|
|
|
38578
38579
|
value: G.compareAtPrice != null ? String(G.compareAtPrice) : "",
|
|
38579
38580
|
placeholder: x(n)("Old price"),
|
|
38580
38581
|
onInput: (Ie) => _o(
|
|
38581
|
-
|
|
38582
|
+
X(G),
|
|
38582
38583
|
"compareAtPrice",
|
|
38583
38584
|
go(Ie)
|
|
38584
38585
|
)
|
|
@@ -38595,7 +38596,7 @@ const Vte = /* @__PURE__ */ nr(Fte, [["render", qte]]), Ute = ["srcdoc"], Np = 2
|
|
|
38595
38596
|
type: "text",
|
|
38596
38597
|
value: G.badge || "",
|
|
38597
38598
|
placeholder: x(n)("Tag"),
|
|
38598
|
-
onInput: (Ie) => _o(
|
|
38599
|
+
onInput: (Ie) => _o(X(G), "badge", go(Ie))
|
|
38599
38600
|
}, null, 40, Nie)
|
|
38600
38601
|
]),
|
|
38601
38602
|
$.value ? A("", !0) : (y(), w("div", Fie, [
|
|
@@ -38610,7 +38611,7 @@ const Vte = /* @__PURE__ */ nr(Fte, [["render", qte]]), Ute = ["srcdoc"], Np = 2
|
|
|
38610
38611
|
value: G.buttonText || "",
|
|
38611
38612
|
placeholder: x(n)("Button text"),
|
|
38612
38613
|
onInput: (Ie) => _o(
|
|
38613
|
-
|
|
38614
|
+
X(G),
|
|
38614
38615
|
"buttonText",
|
|
38615
38616
|
go(Ie)
|
|
38616
38617
|
)
|
|
@@ -38630,7 +38631,7 @@ const Vte = /* @__PURE__ */ nr(Fte, [["render", qte]]), Ute = ["srcdoc"], Np = 2
|
|
|
38630
38631
|
])
|
|
38631
38632
|
]),
|
|
38632
38633
|
p("div", Wie, [
|
|
38633
|
-
|
|
38634
|
+
Z[19] || (Z[19] = p("button", { class: "pbx-sr-only" }, "Focusable fallback", -1)),
|
|
38634
38635
|
p("div", Gie, [
|
|
38635
38636
|
p("button", {
|
|
38636
38637
|
type: "button",
|
|
@@ -41338,7 +41339,7 @@ const Gne = { class: "pbx-editorFieldGroup" }, Kne = { class: "pbx-editorFieldGr
|
|
|
41338
41339
|
}
|
|
41339
41340
|
}), Xr = function(o) {
|
|
41340
41341
|
return !o || typeof o == "object" && o.constructor === Object && Object.keys(o).length === 0;
|
|
41341
|
-
}, vle = "3.5.
|
|
41342
|
+
}, vle = "3.5.69", wle = (o) => /^[a-z][a-z0-9+.-]*:/i.test(o) || o.startsWith("//");
|
|
41342
41343
|
function Sle(o) {
|
|
41343
41344
|
o.querySelectorAll("[data-isl]").forEach((e) => {
|
|
41344
41345
|
e.removeAttribute("data-isl-active");
|
|
@@ -45268,12 +45269,12 @@ const Gxe = ["width", "height"], Kxe = /* @__PURE__ */ se({
|
|
|
45268
45269
|
});
|
|
45269
45270
|
const we = S("en");
|
|
45270
45271
|
let Ne = !0;
|
|
45271
|
-
const
|
|
45272
|
+
const et = S(!1);
|
|
45272
45273
|
de(we, async (V) => {
|
|
45273
45274
|
if (V && !Ne) {
|
|
45274
|
-
|
|
45275
|
+
et.value = !0, await mt(200), await v(V), t.changeLanguage(V);
|
|
45275
45276
|
const D = JSON.parse(localStorage.getItem("userSettingsPageBuilder") ?? "{}") || {};
|
|
45276
|
-
D.lang = V, localStorage.setItem("userSettingsPageBuilder", JSON.stringify(D)),
|
|
45277
|
+
D.lang = V, localStorage.setItem("userSettingsPageBuilder", JSON.stringify(D)), et.value = !1;
|
|
45277
45278
|
}
|
|
45278
45279
|
});
|
|
45279
45280
|
const Lt = _(() => T.getBuilderStarted), Pe = _(() => T.getPageBuilderConfig), ut = /* @__PURE__ */ new Set([
|
|
@@ -45295,8 +45296,8 @@ const Gxe = ["width", "height"], Kxe = /* @__PURE__ */ se({
|
|
|
45295
45296
|
const V = (oo = Pe.value) == null ? void 0 : oo.userSettings, D = T.getToggleGlobalHtmlMode, he = T.getFontFamily;
|
|
45296
45297
|
if (D && he && he !== "none")
|
|
45297
45298
|
return he;
|
|
45298
|
-
const
|
|
45299
|
-
return Ke && zc(
|
|
45299
|
+
const te = document.getElementById("pagebuilder"), Ke = te ? ju(te, V) : void 0;
|
|
45300
|
+
return Ke && zc(te, V, {
|
|
45300
45301
|
globalPageDesignMode: D,
|
|
45301
45302
|
selectedFontClass: he
|
|
45302
45303
|
}) ? Ke : yt.value;
|
|
@@ -45314,7 +45315,7 @@ const Gxe = ["width", "height"], Kxe = /* @__PURE__ */ se({
|
|
|
45314
45315
|
}
|
|
45315
45316
|
), pe = _(() => {
|
|
45316
45317
|
var Ke, oo, hn, br;
|
|
45317
|
-
const V = (Ke =
|
|
45318
|
+
const V = (Ke = ee.value) == null ? void 0 : Ke.classes;
|
|
45318
45319
|
if (typeof V == "string" && V.trim().length > 0) {
|
|
45319
45320
|
const zo = V.split(/\s+/).filter(Boolean), Oo = Cd(
|
|
45320
45321
|
(oo = Pe.value) == null ? void 0 : oo.userSettings
|
|
@@ -45326,8 +45327,8 @@ const Gxe = ["width", "height"], Kxe = /* @__PURE__ */ se({
|
|
|
45326
45327
|
if (be.value) return {};
|
|
45327
45328
|
const D = (br = (hn = Pe.value) == null ? void 0 : hn.userSettings) == null ? void 0 : br.elementFonts;
|
|
45328
45329
|
if (!D) return {};
|
|
45329
|
-
const he = {},
|
|
45330
|
-
for (const zo of
|
|
45330
|
+
const he = {}, te = ["h1", "h2", "h3", "h4", "h5", "h6", "p"];
|
|
45331
|
+
for (const zo of te) {
|
|
45331
45332
|
const Oo = D[zo];
|
|
45332
45333
|
if (Oo) {
|
|
45333
45334
|
const fn = Oc(Oo);
|
|
@@ -45335,23 +45336,23 @@ const Gxe = ["width", "height"], Kxe = /* @__PURE__ */ se({
|
|
|
45335
45336
|
}
|
|
45336
45337
|
}
|
|
45337
45338
|
return he;
|
|
45338
|
-
}),
|
|
45339
|
+
}), ee = _(() => {
|
|
45339
45340
|
var V;
|
|
45340
45341
|
return (V = Pe.value) == null ? void 0 : V.pageSettings;
|
|
45341
45342
|
}), J = _(() => {
|
|
45342
45343
|
var D;
|
|
45343
|
-
const V = (D =
|
|
45344
|
+
const V = (D = ee.value) == null ? void 0 : D.classes;
|
|
45344
45345
|
return !V || typeof V != "string" ? "" : V;
|
|
45345
45346
|
}), oe = _(() => {
|
|
45346
|
-
var
|
|
45347
|
+
var te;
|
|
45347
45348
|
const V = J.value;
|
|
45348
45349
|
if (!V) return !1;
|
|
45349
|
-
const D = V.split(/\s+/).filter(Boolean), he = Cd((
|
|
45350
|
+
const D = V.split(/\s+/).filter(Boolean), he = Cd((te = Pe.value) == null ? void 0 : te.userSettings);
|
|
45350
45351
|
return D.some((Ke) => ot(Ke, he));
|
|
45351
45352
|
}), fe = _(() => oe.value ? "" : vt.value), $e = _(() => {
|
|
45352
45353
|
var D;
|
|
45353
|
-
const V = (D =
|
|
45354
|
-
return V ? typeof V == "string" ? V : Object.entries(V).map(([he,
|
|
45354
|
+
const V = (D = ee.value) == null ? void 0 : D.style;
|
|
45355
|
+
return V ? typeof V == "string" ? V : Object.entries(V).map(([he, te]) => `${he.replace(/([A-Z])/g, "-$1").toLowerCase()}: ${te};`).join(" ") : "";
|
|
45355
45356
|
});
|
|
45356
45357
|
de(
|
|
45357
45358
|
() => {
|
|
@@ -45382,16 +45383,16 @@ const Gxe = ["width", "height"], Kxe = /* @__PURE__ */ se({
|
|
|
45382
45383
|
rt.value = h("Mobile"), await xi(), Vo.value = !0;
|
|
45383
45384
|
}, ne = async function() {
|
|
45384
45385
|
gi.value = h("Tablet preview"), await xi(), $r.value = !0;
|
|
45385
|
-
},
|
|
45386
|
+
}, Z = S(!1), G = S(null), xe = S(null), Ie = S({
|
|
45386
45387
|
top: "0px",
|
|
45387
45388
|
left: "0px",
|
|
45388
45389
|
width: `${al}px`
|
|
45389
45390
|
}), bt = () => {
|
|
45390
45391
|
const V = G.value;
|
|
45391
45392
|
if (!V) return;
|
|
45392
|
-
const D = V.getBoundingClientRect(), he = 8,
|
|
45393
|
+
const D = V.getBoundingClientRect(), he = 8, te = D.left + D.width / 2 - al / 2, Ke = Math.max(
|
|
45393
45394
|
he,
|
|
45394
|
-
Math.min(
|
|
45395
|
+
Math.min(te, window.innerWidth - al - he)
|
|
45395
45396
|
);
|
|
45396
45397
|
Ie.value = {
|
|
45397
45398
|
top: `${Math.round(D.bottom + 8)}px`,
|
|
@@ -45400,15 +45401,15 @@ const Gxe = ["width", "height"], Kxe = /* @__PURE__ */ se({
|
|
|
45400
45401
|
};
|
|
45401
45402
|
}, $o = (V) => {
|
|
45402
45403
|
var D, he;
|
|
45403
|
-
|
|
45404
|
+
Z.value && V.target instanceof Node && ((D = G.value) != null && D.contains(V.target) || (he = xe.value) != null && he.contains(V.target) || (Z.value = !1));
|
|
45404
45405
|
}, ar = async () => {
|
|
45405
|
-
|
|
45406
|
+
Z.value = !1, T.setMenuRight(!1), T.setElement(null), await t.clearHtmlSelection(), await _o();
|
|
45406
45407
|
}, As = async () => {
|
|
45407
|
-
|
|
45408
|
+
Z.value = !1, T.setMenuRight(!1), T.setElement(null), await t.clearHtmlSelection(), await Zn();
|
|
45408
45409
|
}, xo = async () => {
|
|
45409
|
-
|
|
45410
|
+
Z.value = !1, T.setMenuRight(!1), T.setElement(null), await t.clearHtmlSelection(), await ne();
|
|
45410
45411
|
};
|
|
45411
|
-
de(
|
|
45412
|
+
de(Z, (V) => {
|
|
45412
45413
|
if (V) {
|
|
45413
45414
|
ce(() => bt()), document.addEventListener("pointerdown", $o), window.addEventListener("resize", bt), window.addEventListener("scroll", bt, !0);
|
|
45414
45415
|
return;
|
|
@@ -45457,8 +45458,8 @@ const Gxe = ["width", "height"], Kxe = /* @__PURE__ */ se({
|
|
|
45457
45458
|
await t.openInlineTipTapFromEvent(V);
|
|
45458
45459
|
}, yi = function(V) {
|
|
45459
45460
|
if (!T.getInlineTipTapEditor || !(V.target instanceof Node)) return;
|
|
45460
|
-
const D = document.querySelector("#pagebuilder [data-pbx-inline-tiptap]"), he = D == null ? void 0 : D.querySelector(".ProseMirror"),
|
|
45461
|
-
if (he != null && he.contains(V.target) ||
|
|
45461
|
+
const D = document.querySelector("#pagebuilder [data-pbx-inline-tiptap]"), he = D == null ? void 0 : D.querySelector(".ProseMirror"), te = V.target instanceof Element ? V.target.closest("[data-pbx-inline-editor-ui]") : null, Ke = V.target instanceof Element ? V.target.closest("#pbx-modal") : null;
|
|
45462
|
+
if (he != null && he.contains(V.target) || te || Ke || pR(V.target)) return;
|
|
45462
45463
|
const oo = t.findEditableElementFromEventTarget(V.target);
|
|
45463
45464
|
V.preventDefault(), V.stopPropagation(), V.stopImmediatePropagation(), t.finishActiveInlineTipTapEditorFromDom(oo);
|
|
45464
45465
|
}, oa = _(() => T.getIsLoadingGlobal), ra = _(() => T.getIsSaving), Ht = S(null), Ir = S(null), pn = _(() => T.getIsLoadingResumeEditing), lr = _(() => T.getIsRestoring), vi = S(!1), Go = S(!1), _s = S(1), $s = S(""), wi = S(!1), Bs = S(""), ia = S(""), cn = S(""), Hr = S(null), dr = S(null), eo = S(null), Si = S(null), un = S(null), tp = async function() {
|
|
@@ -45496,7 +45497,7 @@ const Gxe = ["width", "height"], Kxe = /* @__PURE__ */ se({
|
|
|
45496
45497
|
Vxe({
|
|
45497
45498
|
canUndo: () => T.getHistoryIndex > 0,
|
|
45498
45499
|
canRedo: () => T.getHistoryIndex < T.getHistoryLength - 1,
|
|
45499
|
-
isBlocked: () => oa.value ||
|
|
45500
|
+
isBlocked: () => oa.value || et.value || T.getInlineTipTapEditor || Bo.value || Br.value || F.value || wi.value || pr.value || s.value || r.value || It.value || Vo.value || $r.value || Or.value,
|
|
45500
45501
|
onUndo: async () => {
|
|
45501
45502
|
var V;
|
|
45502
45503
|
await ((V = Ht.value) == null ? void 0 : V.handleUndo());
|
|
@@ -45542,8 +45543,8 @@ const Gxe = ["width", "height"], Kxe = /* @__PURE__ */ se({
|
|
|
45542
45543
|
const he = V.querySelector(".pbx-select-none > .pbx-flex");
|
|
45543
45544
|
if (!he) return;
|
|
45544
45545
|
he.style.flexWrap = "nowrap", he.style.removeProperty("max-width"), he.style.width = "max-content", he.getBoundingClientRect();
|
|
45545
|
-
const
|
|
45546
|
-
he.style.flexWrap = "wrap",
|
|
45546
|
+
const te = Math.ceil(he.getBoundingClientRect().width);
|
|
45547
|
+
he.style.flexWrap = "wrap", te > 0 && (he.style.width = `${Math.min(te, D)}px`), he.style.justifyContent = "center", he.style.removeProperty("max-width");
|
|
45547
45548
|
}
|
|
45548
45549
|
const ur = function() {
|
|
45549
45550
|
Q.value = !Q.value, Nr();
|
|
@@ -45551,13 +45552,13 @@ const Gxe = ["width", "height"], Kxe = /* @__PURE__ */ se({
|
|
|
45551
45552
|
function Rr(V) {
|
|
45552
45553
|
const D = document.querySelector("#pbxEditToolbar");
|
|
45553
45554
|
let he = !1;
|
|
45554
|
-
for (const
|
|
45555
|
-
if (
|
|
45555
|
+
for (const te of V) {
|
|
45556
|
+
if (te.type === "attributes" && te.attributeName === "selected") {
|
|
45556
45557
|
he = !0;
|
|
45557
45558
|
break;
|
|
45558
45559
|
}
|
|
45559
45560
|
if (!D) continue;
|
|
45560
|
-
const Ke =
|
|
45561
|
+
const Ke = te.target;
|
|
45561
45562
|
if (Ke instanceof Node && (D === Ke || D.contains(Ke))) {
|
|
45562
45563
|
he = !0;
|
|
45563
45564
|
break;
|
|
@@ -45566,25 +45567,25 @@ const Gxe = ["width", "height"], Kxe = /* @__PURE__ */ se({
|
|
|
45566
45567
|
he ? Me() : Pi();
|
|
45567
45568
|
}
|
|
45568
45569
|
function xn(V = {}) {
|
|
45569
|
-
const D = V.remeasureWidth ?? !0, he = K.value,
|
|
45570
|
-
if (!he || !
|
|
45570
|
+
const D = V.remeasureWidth ?? !0, he = K.value, te = he && he.querySelector("#pbxEditToolbar");
|
|
45571
|
+
if (!he || !te) return;
|
|
45571
45572
|
const Ke = he.querySelector("[selected]");
|
|
45572
45573
|
if (Ke && typeof Ke.getBoundingClientRect == "function") {
|
|
45573
45574
|
const br = (Ke.closest("[data-pb-no-select]") || Ke).getBoundingClientRect(), zo = he.getBoundingClientRect(), Oo = 20, fn = he.offsetWidth - Oo * 2;
|
|
45574
|
-
|
|
45575
|
-
let Hs = br.top - zo.top + he.scrollTop -
|
|
45576
|
-
Q.value ? (Hs = zo.top + Oo, yn = zo.left + he.offsetWidth / 2 -
|
|
45575
|
+
te.style.maxWidth = `${fn}px`, te.style.position = Q.value ? "fixed" : "absolute", te.classList.add("is-visible"), D && (te.style.removeProperty("width"), Do(te, fn), te.getBoundingClientRect());
|
|
45576
|
+
let Hs = br.top - zo.top + he.scrollTop - te.offsetHeight - 20, yn = br.left - zo.left + br.width / 2 - te.offsetWidth / 2;
|
|
45577
|
+
Q.value ? (Hs = zo.top + Oo, yn = zo.left + he.offsetWidth / 2 - te.offsetWidth / 2, yn = Math.max(
|
|
45577
45578
|
zo.left + Oo,
|
|
45578
45579
|
Math.min(
|
|
45579
45580
|
yn,
|
|
45580
|
-
zo.left + he.offsetWidth -
|
|
45581
|
+
zo.left + he.offsetWidth - te.offsetWidth - Oo
|
|
45581
45582
|
)
|
|
45582
45583
|
)) : (Hs = Math.max(0, Hs), yn = Math.max(
|
|
45583
45584
|
Oo,
|
|
45584
|
-
Math.min(yn, he.offsetWidth -
|
|
45585
|
-
)),
|
|
45585
|
+
Math.min(yn, he.offsetWidth - te.offsetWidth - Oo)
|
|
45586
|
+
)), te.style.top = `${Hs}px`, te.style.left = `${yn}px`, window.dispatchEvent(new CustomEvent("pagebuilder:toolbar-positioned"));
|
|
45586
45587
|
} else
|
|
45587
|
-
|
|
45588
|
+
te.classList.remove("is-visible"), te.removeAttribute("style");
|
|
45588
45589
|
}
|
|
45589
45590
|
const Nr = function() {
|
|
45590
45591
|
xn({ remeasureWidth: !0 }), requestAnimationFrame(() => xn({ remeasureWidth: !0 }));
|
|
@@ -45617,7 +45618,7 @@ const Gxe = ["width", "height"], Kxe = /* @__PURE__ */ se({
|
|
|
45617
45618
|
oa,
|
|
45618
45619
|
pn,
|
|
45619
45620
|
lr,
|
|
45620
|
-
|
|
45621
|
+
et,
|
|
45621
45622
|
Uo
|
|
45622
45623
|
],
|
|
45623
45624
|
() => {
|
|
@@ -45629,7 +45630,7 @@ const Gxe = ["width", "height"], Kxe = /* @__PURE__ */ se({
|
|
|
45629
45630
|
}, to = function() {
|
|
45630
45631
|
Me(), St();
|
|
45631
45632
|
}, Mi = JSON.parse(localStorage.getItem("userSettingsPageBuilder") ?? "null"), yo = function() {
|
|
45632
|
-
vi.value = Go.value || oa.value && !Uo.value ||
|
|
45633
|
+
vi.value = Go.value || oa.value && !Uo.value || et.value || pn.value || lr.value;
|
|
45633
45634
|
};
|
|
45634
45635
|
return Ar(async () => {
|
|
45635
45636
|
const V = t.shouldCompleteBuilderMountOnMount(
|
|
@@ -45651,7 +45652,7 @@ const Gxe = ["width", "height"], Kxe = /* @__PURE__ */ se({
|
|
|
45651
45652
|
}), D.addEventListener("scroll", Yo, { passive: !0 }), window.addEventListener("scroll", Pi, { passive: !0 }), window.addEventListener("resize", to), window.addEventListener("pagebuilder:layout-change", jt), document.addEventListener("pointerdown", yi, !0), await mt(1e4), sa(), await mt(1e4), sa(), await mt(1e4), sa());
|
|
45652
45653
|
}), ir(() => {
|
|
45653
45654
|
var V;
|
|
45654
|
-
|
|
45655
|
+
Z.value = !1, document.removeEventListener("pointerdown", $o), window.removeEventListener("resize", bt), window.removeEventListener("scroll", bt, !0), t.flushPendingEditsToLocalStorage(), t.markCanvasUnmountedForNextMount(), cancelAnimationFrame(Oe), Ge == null || Ge.disconnect(), Ge = null, (V = K.value) == null || V.removeEventListener("scroll", Yo), window.removeEventListener("scroll", Pi), window.removeEventListener("resize", to), window.removeEventListener("pagebuilder:layout-change", jt), document.removeEventListener("pointerdown", yi, !0), cN();
|
|
45655
45656
|
}), (V, D) => {
|
|
45656
45657
|
var he;
|
|
45657
45658
|
return y(), w(le, null, [
|
|
@@ -45683,8 +45684,8 @@ const Gxe = ["width", "height"], Kxe = /* @__PURE__ */ se({
|
|
|
45683
45684
|
title: hi.value,
|
|
45684
45685
|
CustomBuilderComponents: g.CustomBuilderComponents,
|
|
45685
45686
|
onFirstModalButtonSearchComponentsFunction: D[0] || (D[0] = () => {
|
|
45686
|
-
var
|
|
45687
|
-
return (
|
|
45687
|
+
var te;
|
|
45688
|
+
return (te = ho.value) == null ? void 0 : te.call(ho);
|
|
45688
45689
|
})
|
|
45689
45690
|
}, null, 8, ["show", "firstButtonText", "title", "CustomBuilderComponents"])) : A("", !0),
|
|
45690
45691
|
C.value && Br.value ? (y(), me(one, {
|
|
@@ -45705,16 +45706,16 @@ const Gxe = ["width", "height"], Kxe = /* @__PURE__ */ se({
|
|
|
45705
45706
|
secondButtonText: N.value ?? void 0,
|
|
45706
45707
|
thirdButtonText: z.value ?? void 0,
|
|
45707
45708
|
onFirstModalButtonFunctionDynamicModalBuilder: D[1] || (D[1] = () => {
|
|
45708
|
-
var
|
|
45709
|
-
return (
|
|
45709
|
+
var te;
|
|
45710
|
+
return (te = H.value) == null ? void 0 : te.call(H);
|
|
45710
45711
|
}),
|
|
45711
45712
|
onSecondModalButtonFunctionDynamicModalBuilder: D[2] || (D[2] = () => {
|
|
45712
|
-
var
|
|
45713
|
-
return (
|
|
45713
|
+
var te;
|
|
45714
|
+
return (te = L.value) == null ? void 0 : te.call(L);
|
|
45714
45715
|
}),
|
|
45715
45716
|
onThirdModalButtonFunctionDynamicModalBuilder: D[3] || (D[3] = () => {
|
|
45716
|
-
var
|
|
45717
|
-
return (
|
|
45717
|
+
var te;
|
|
45718
|
+
return (te = q.value) == null ? void 0 : te.call(q);
|
|
45718
45719
|
})
|
|
45719
45720
|
}, {
|
|
45720
45721
|
default: Y(() => [...D[37] || (D[37] = [
|
|
@@ -45767,16 +45768,16 @@ const Gxe = ["width", "height"], Kxe = /* @__PURE__ */ se({
|
|
|
45767
45768
|
secondButtonText: Hr.value ?? void 0,
|
|
45768
45769
|
thirdButtonText: dr.value ?? void 0,
|
|
45769
45770
|
onFirstModalButtonFunctionDynamicModalBuilder: D[4] || (D[4] = () => {
|
|
45770
|
-
var
|
|
45771
|
-
return (
|
|
45771
|
+
var te;
|
|
45772
|
+
return (te = eo.value) == null ? void 0 : te.call(eo);
|
|
45772
45773
|
}),
|
|
45773
45774
|
onSecondModalButtonFunctionDynamicModalBuilder: D[5] || (D[5] = () => {
|
|
45774
|
-
var
|
|
45775
|
-
return (
|
|
45775
|
+
var te;
|
|
45776
|
+
return (te = Si.value) == null ? void 0 : te.call(Si);
|
|
45776
45777
|
}),
|
|
45777
45778
|
onThirdModalButtonFunctionDynamicModalBuilder: D[6] || (D[6] = () => {
|
|
45778
|
-
var
|
|
45779
|
-
return (
|
|
45779
|
+
var te;
|
|
45780
|
+
return (te = un.value) == null ? void 0 : te.call(un);
|
|
45780
45781
|
})
|
|
45781
45782
|
}, {
|
|
45782
45783
|
default: Y(() => [...D[38] || (D[38] = [
|
|
@@ -45796,16 +45797,16 @@ const Gxe = ["width", "height"], Kxe = /* @__PURE__ */ se({
|
|
|
45796
45797
|
secondButtonText: mn.value ?? void 0,
|
|
45797
45798
|
thirdButtonText: gn.value ?? void 0,
|
|
45798
45799
|
onFirstModalButtonFunctionDynamicModalBuilder: D[7] || (D[7] = () => {
|
|
45799
|
-
var
|
|
45800
|
-
return (
|
|
45800
|
+
var te;
|
|
45801
|
+
return (te = Dr.value) == null ? void 0 : te.call(Dr);
|
|
45801
45802
|
}),
|
|
45802
45803
|
onSecondModalButtonFunctionDynamicModalBuilder: D[8] || (D[8] = () => {
|
|
45803
|
-
var
|
|
45804
|
-
return (
|
|
45804
|
+
var te;
|
|
45805
|
+
return (te = Jo.value) == null ? void 0 : te.call(Jo);
|
|
45805
45806
|
}),
|
|
45806
45807
|
onThirdModalButtonFunctionDynamicModalBuilder: D[9] || (D[9] = () => {
|
|
45807
|
-
var
|
|
45808
|
-
return (
|
|
45808
|
+
var te;
|
|
45809
|
+
return (te = zr.value) == null ? void 0 : te.call(zr);
|
|
45809
45810
|
})
|
|
45810
45811
|
}, {
|
|
45811
45812
|
default: Y(() => [...D[39] || (D[39] = [
|
|
@@ -45958,8 +45959,8 @@ const Gxe = ["width", "height"], Kxe = /* @__PURE__ */ se({
|
|
|
45958
45959
|
class: "pbx-mySecondaryButton pbx-navbarUtilityButton pbx-h-5 pbx-flex pbx-items-center pbx-justify-center pbx-gap-1.5 pbx-mr-2 pbx-font-sans",
|
|
45959
45960
|
"aria-label": x(h)("Preview"),
|
|
45960
45961
|
title: x(h)("Preview"),
|
|
45961
|
-
"aria-expanded":
|
|
45962
|
-
onClick: D[15] || (D[15] = (
|
|
45962
|
+
"aria-expanded": Z.value,
|
|
45963
|
+
onClick: D[15] || (D[15] = (te) => Z.value = !Z.value)
|
|
45963
45964
|
}, [
|
|
45964
45965
|
p("span", ghe, [
|
|
45965
45966
|
O(cxe)
|
|
@@ -45971,7 +45972,7 @@ const Gxe = ["width", "height"], Kxe = /* @__PURE__ */ se({
|
|
|
45971
45972
|
(y(), me(ui, { to: "body" }, [
|
|
45972
45973
|
O(Ui, { name: "popup-fade" }, {
|
|
45973
45974
|
default: Y(() => [
|
|
45974
|
-
|
|
45975
|
+
Z.value ? (y(), w("div", {
|
|
45975
45976
|
key: 0,
|
|
45976
45977
|
ref_key: "previewMenuPopoverRef",
|
|
45977
45978
|
ref: xe,
|
|
@@ -46042,21 +46043,21 @@ const Gxe = ["width", "height"], Kxe = /* @__PURE__ */ se({
|
|
|
46042
46043
|
Re(p("select", {
|
|
46043
46044
|
id: "pbx-lang",
|
|
46044
46045
|
class: "pbx-myPrimarySelect pbx-min-w-20",
|
|
46045
|
-
"onUpdate:modelValue": D[23] || (D[23] = (
|
|
46046
|
+
"onUpdate:modelValue": D[23] || (D[23] = (te) => we.value = te)
|
|
46046
46047
|
}, [
|
|
46047
46048
|
Array.isArray(Pe.value.userSettings.language.enable) && Pe.value.userSettings.language.enable.length >= 1 ? (y(!0), w(le, { key: 0 }, Se(x(t).availableLanguage().filter(
|
|
46048
|
-
(
|
|
46049
|
+
(te) => {
|
|
46049
46050
|
var Ke, oo, hn, br;
|
|
46050
|
-
return ((br = (hn = (oo = (Ke = Pe.value) == null ? void 0 : Ke.userSettings) == null ? void 0 : oo.language) == null ? void 0 : hn.enable) == null ? void 0 : br.includes(
|
|
46051
|
+
return ((br = (hn = (oo = (Ke = Pe.value) == null ? void 0 : Ke.userSettings) == null ? void 0 : oo.language) == null ? void 0 : hn.enable) == null ? void 0 : br.includes(te)) ?? !1;
|
|
46051
46052
|
}
|
|
46052
|
-
), (
|
|
46053
|
-
key:
|
|
46054
|
-
value:
|
|
46055
|
-
}, f(
|
|
46056
|
-
!Pe.value.userSettings.language.enable || Array.isArray(Pe.value.userSettings.language.enable) && Pe.value.userSettings.language.enable.length === 0 ? (y(!0), w(le, { key: 1 }, Se(x(t).availableLanguage(), (
|
|
46057
|
-
key:
|
|
46058
|
-
value:
|
|
46059
|
-
}, f(
|
|
46053
|
+
), (te) => (y(), w("option", {
|
|
46054
|
+
key: te,
|
|
46055
|
+
value: te
|
|
46056
|
+
}, f(te), 9, The))), 128)) : A("", !0),
|
|
46057
|
+
!Pe.value.userSettings.language.enable || Array.isArray(Pe.value.userSettings.language.enable) && Pe.value.userSettings.language.enable.length === 0 ? (y(!0), w(le, { key: 1 }, Se(x(t).availableLanguage(), (te) => (y(), w("option", {
|
|
46058
|
+
key: te,
|
|
46059
|
+
value: te
|
|
46060
|
+
}, f(te), 9, Phe))), 128)) : A("", !0)
|
|
46060
46061
|
], 512), [
|
|
46061
46062
|
[lo, we.value]
|
|
46062
46063
|
])
|
|
@@ -46109,7 +46110,7 @@ const Gxe = ["width", "height"], Kxe = /* @__PURE__ */ se({
|
|
|
46109
46110
|
Array.isArray(Ho.value) && Ho.value.length === 0 ? (y(), w("div", _he, [
|
|
46110
46111
|
p("div", $he, [
|
|
46111
46112
|
p("div", {
|
|
46112
|
-
onClick: D[25] || (D[25] = (
|
|
46113
|
+
onClick: D[25] || (D[25] = (te) => sn(0)),
|
|
46113
46114
|
class: "pbx-py-4 pbx-px-4 pbx-my-4 pbx-rounded-full pbx-bg-gray-100 pbx-text-gray-600 pbx-flex pbx-items-center pbx-justify-center hover:pbx-text-white hover:pbx-bg-gray-900 pbx-cursor-pointer"
|
|
46114
46115
|
}, [
|
|
46115
46116
|
p("div", Bhe, [
|
|
@@ -46118,7 +46119,7 @@ const Gxe = ["width", "height"], Kxe = /* @__PURE__ */ se({
|
|
|
46118
46119
|
]),
|
|
46119
46120
|
C.value ? (y(), w("div", {
|
|
46120
46121
|
key: 0,
|
|
46121
|
-
onClick: D[26] || (D[26] = (
|
|
46122
|
+
onClick: D[26] || (D[26] = (te) => ln(0)),
|
|
46122
46123
|
class: "pbx-py-4 pbx-px-4 pbx-my-4 pbx-rounded-full pbx-bg-gray-100 pbx-text-gray-600 pbx-flex pbx-items-center pbx-justify-center hover:pbx-text-white hover:pbx-bg-gray-900 pbx-cursor-pointer"
|
|
46123
46124
|
}, [
|
|
46124
46125
|
p("div", Hhe, [
|
|
@@ -46132,7 +46133,7 @@ const Gxe = ["width", "height"], Kxe = /* @__PURE__ */ se({
|
|
|
46132
46133
|
p("div", Ohe, [
|
|
46133
46134
|
p("div", Rhe, [
|
|
46134
46135
|
p("div", {
|
|
46135
|
-
onClick: D[27] || (D[27] = (
|
|
46136
|
+
onClick: D[27] || (D[27] = (te) => sn(0)),
|
|
46136
46137
|
class: "pbx-select-none pbx-addsection-btn pbx-font-sans pbx-rounded-l-full pbx-rounded-r-none pbx-bg-gray-100 pbx-text-gray-600 pbx-z-50 pbx-flex pbx-items-center pbx-justify-center hover:pbx-text-white hover:pbx-bg-gray-900 pbx-cursor-pointer"
|
|
46137
46138
|
}, [
|
|
46138
46139
|
p("div", Nhe, [
|
|
@@ -46142,7 +46143,7 @@ const Gxe = ["width", "height"], Kxe = /* @__PURE__ */ se({
|
|
|
46142
46143
|
]),
|
|
46143
46144
|
C.value ? (y(), w("div", {
|
|
46144
46145
|
key: 0,
|
|
46145
|
-
onClick: D[28] || (D[28] = (
|
|
46146
|
+
onClick: D[28] || (D[28] = (te) => ln(0)),
|
|
46146
46147
|
class: "pbx-select-none pbx-addsection-btn pbx-font-sans pbx-rounded-l-none pbx-bg-gray-100 pbx-text-gray-600 pbx-z-50 pbx-flex pbx-items-center pbx-justify-center hover:pbx-text-white hover:pbx-bg-gray-900 pbx-cursor-pointer pbx-border-l pbx-border-gray-200"
|
|
46147
46148
|
}, [
|
|
46148
46149
|
p("div", jhe, [
|
|
@@ -46153,14 +46154,14 @@ const Gxe = ["width", "height"], Kxe = /* @__PURE__ */ se({
|
|
|
46153
46154
|
])
|
|
46154
46155
|
])
|
|
46155
46156
|
])) : A("", !0),
|
|
46156
|
-
(y(!0), w(le, null, Se(Ho.value, (
|
|
46157
|
-
key:
|
|
46157
|
+
(y(!0), w(le, null, Se(Ho.value, (te, Ke) => (y(), w(le, {
|
|
46158
|
+
key: te.id
|
|
46158
46159
|
}, [
|
|
46159
|
-
|
|
46160
|
+
te.html_code ? (y(), w("div", {
|
|
46160
46161
|
key: 0,
|
|
46161
46162
|
"data-pagebuilder-content": "",
|
|
46162
|
-
innerHTML:
|
|
46163
|
-
onMouseup: (oo) => fi(
|
|
46163
|
+
innerHTML: te.html_code,
|
|
46164
|
+
onMouseup: (oo) => fi(te)
|
|
46164
46165
|
}, null, 40, qhe)) : A("", !0),
|
|
46165
46166
|
Array.isArray(Ho.value) && Ho.value.length != 0 ? (y(), w("div", Vhe, [
|
|
46166
46167
|
p("div", Uhe, [
|
|
@@ -46205,15 +46206,15 @@ const Gxe = ["width", "height"], Kxe = /* @__PURE__ */ se({
|
|
|
46205
46206
|
]])
|
|
46206
46207
|
}, [
|
|
46207
46208
|
O(Nbe, {
|
|
46208
|
-
onCloseEditor: D[29] || (D[29] = (
|
|
46209
|
+
onCloseEditor: D[29] || (D[29] = (te) => x(T).setMenuRight(!1)),
|
|
46209
46210
|
onOpenImageSettings: aa,
|
|
46210
46211
|
onOpenProductSectionSettings: D[30] || (D[30] = () => {
|
|
46211
|
-
var
|
|
46212
|
-
return (
|
|
46212
|
+
var te;
|
|
46213
|
+
return (te = Ir.value) == null ? void 0 : te.openProductSectionSettings();
|
|
46213
46214
|
}),
|
|
46214
46215
|
onOpenSliderSettings: D[31] || (D[31] = () => {
|
|
46215
|
-
var
|
|
46216
|
-
return (
|
|
46216
|
+
var te;
|
|
46217
|
+
return (te = Ir.value) == null ? void 0 : te.openSliderSettings();
|
|
46217
46218
|
})
|
|
46218
46219
|
})
|
|
46219
46220
|
], 2)) : (y(), w("div", {
|
|
@@ -46237,7 +46238,7 @@ const Gxe = ["width", "height"], Kxe = /* @__PURE__ */ se({
|
|
|
46237
46238
|
}, [
|
|
46238
46239
|
Ve.value ? A("", !0) : (y(), w("button", {
|
|
46239
46240
|
key: 0,
|
|
46240
|
-
onClick: D[32] || (D[32] = (
|
|
46241
|
+
onClick: D[32] || (D[32] = (te) => x(T).setMenuRight(!0)),
|
|
46241
46242
|
type: "button",
|
|
46242
46243
|
class: "pbx-h-10 pbx-w-10 pbx-cursor-pointer pbx-rounded-full pbx-flex pbx-items-center pbx-border-none pbx-justify-center pbx-bg-gray-50 pbx-aspect-square hover:pbx-bg-myPrimaryLinkColor focus-visible:pbx-ring-0 pbx-text-black hover:pbx-text-white"
|
|
46243
46244
|
}, [
|
|
@@ -46285,7 +46286,7 @@ const Gxe = ["width", "height"], Kxe = /* @__PURE__ */ se({
|
|
|
46285
46286
|
html: x(d),
|
|
46286
46287
|
"is-loading": x(c),
|
|
46287
46288
|
error: x(u),
|
|
46288
|
-
"onUpdate:html": D[35] || (D[35] = (
|
|
46289
|
+
"onUpdate:html": D[35] || (D[35] = (te) => d.value = te),
|
|
46289
46290
|
onClose: x(b),
|
|
46290
46291
|
onSave: x(m)
|
|
46291
46292
|
}, null, 8, ["show", "title", "html", "is-loading", "error", "onClose", "onSave"]),
|
|
@@ -46430,27 +46431,27 @@ function cfe(o, e = {}, t = !1) {
|
|
|
46430
46431
|
].filter(Boolean).join(" "), k = o.id != null ? String(o.id) : "", M = o.title ? kt(o.title) : "", T = o.description ? kt(o.description) : "", C = o.price != null ? kt(String(o.price)) : "", E = o.compareAtPrice != null ? kt(String(o.compareAtPrice)) : "", $ = o.badge ? kt(o.badge) : "", P = o.image ? kt(o.image) : "", F = o.imageAlt ? kt(o.imageAlt) : M || "Product", j = o.url ? kt(o.url) : "", B = j && !m ? ` href="${j}"` : "", I = j ? ` data-pbx-href="${j}"` : "", N = o.buttonText ? kt(o.buttonText) : "";
|
|
46431
46432
|
let z = "";
|
|
46432
46433
|
if (P) {
|
|
46433
|
-
const
|
|
46434
|
-
z = j ? `<div class="${v}"${ll(u)} data-pb-no-inline-text><a${B}${I}${g}>${
|
|
46434
|
+
const X = `<img class="${n.image} " src="${P}" alt="${F}">`;
|
|
46435
|
+
z = j ? `<div class="${v}"${ll(u)} data-pb-no-inline-text><a${B}${I}${g}>${X}</a></div>` : `<div class="${v}"${ll(u)} data-pb-no-inline-text>${X}</div>`;
|
|
46435
46436
|
}
|
|
46436
46437
|
const H = $ ? `<div class="${n.badge}"><p>${$}</p></div>` : t ? `<div class="${n.badge} min-h-6"></div>` : "", L = M ? `<div class="${n.title}">${j ? `<p><a${B}${I}${g}>${M}</a></p>` : `<p>${M}</p>`}</div>` : "", q = T ? `<div class="${n.description}"><p>${T}</p></div>` : "", ie = Object.entries(o).filter(
|
|
46437
|
-
([
|
|
46438
|
-
), ze = ie.length ? `<div class="product-card-custom-fields text-sm text-gray-600 pt-1">${ie.map(([
|
|
46438
|
+
([X, we]) => !dfe.has(X) && we != null && String(we).trim() !== ""
|
|
46439
|
+
), ze = ie.length ? `<div class="product-card-custom-fields text-sm text-gray-600 pt-1">${ie.map(([X, we]) => `<div class="product-card-custom-field product-card-custom-field-${X.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "")}"><p><strong>${kt(X)}</strong>: ${kt(String(we))}</p></div>`).join("")}</div>` : "";
|
|
46439
46440
|
let De = "";
|
|
46440
46441
|
if (!!(C || E || j && N)) {
|
|
46441
|
-
let
|
|
46442
|
+
let X = "";
|
|
46442
46443
|
if (C || E) {
|
|
46443
|
-
const
|
|
46444
|
+
const et = [
|
|
46444
46445
|
E ? `<div class="${n.compare}"><p>${E}</p></div>` : "",
|
|
46445
46446
|
C ? `<div class="${n.price}"><p>${C}</p></div>` : ""
|
|
46446
46447
|
].filter(Boolean);
|
|
46447
|
-
|
|
46448
|
+
X = `<div class="${[
|
|
46448
46449
|
"product-card-price-row flex flex-wrap items-baseline gap-2 pt-2",
|
|
46449
46450
|
c ? Kp : ""
|
|
46450
|
-
].filter(Boolean).join(" ")}"${ll(c)}>${
|
|
46451
|
+
].filter(Boolean).join(" ")}"${ll(c)}>${et.join("")}</div>`;
|
|
46451
46452
|
}
|
|
46452
46453
|
const we = AR(l, d), Ne = j && N ? `<div class="product-card-cta text-sm font-semibold text-myPrimaryLinkColor pt-3${b ? ` ${Kp}` : ""}"${ll(b)}><p><a class="${we}"${B}${I}${g}>${N}</a></p></div>` : "";
|
|
46453
|
-
De = `<div class="product-card-footer mt-auto flex flex-col">${
|
|
46454
|
+
De = `<div class="product-card-footer mt-auto flex flex-col">${X}${Ne}</div>`;
|
|
46454
46455
|
}
|
|
46455
46456
|
return [
|
|
46456
46457
|
`<div class="${h}" data-pbx-product-id="${kt(k)}">`,
|