@myissue/vue-website-page-builder 3.3.80 → 3.3.81
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/{ar-BKP2GbBb.js → ar-BFnbxHvs.js} +59 -29
- package/dist/{de-CX2p6WRg.js → de-CXrApoe-.js} +33 -3
- package/dist/{en-hbIz7x2o.js → en-BBXHMa80.js} +43 -13
- package/dist/{es-BxsOdyOn.js → es-HxtF5isZ.js} +47 -19
- package/dist/{fr-SEE-rKYV.js → fr-BuBVt239.js} +59 -31
- package/dist/{hi-DZd4Kv3J.js → hi-BgJTsN-7.js} +55 -27
- package/dist/{ja-BGzkN2We.js → ja-DHO3LNTk.js} +59 -31
- package/dist/{pt-BMfrvh-9.js → pt-DbEpIKz5.js} +47 -19
- package/dist/{ru-wi4VbdJp.js → ru-Dmz_Bfpt.js} +57 -29
- package/dist/vue-website-page-builder.js +793 -791
- package/dist/vue-website-page-builder.umd.cjs +38 -38
- package/dist/{zh-Hans-B4txt13y.js → zh-Hans-BkEKxp4g.js} +73 -45
- package/package.json +1 -1
- package/src/Components/DemoUnsplash.vue +25 -22
- package/src/Components/PageBuilder/EditorMenu/Editables/ComponentTopMenu.vue +1 -1
- package/src/Components/PageBuilder/EditorMenu/Editables/EditGetElement.vue +9 -10
- package/src/Components/PageBuilder/EditorMenu/Editables/ImageEditor.vue +6 -6
- package/src/Components/PageBuilder/ToolbarOption/ToolbarOption.vue +2 -2
- package/src/Components/TipTap/TipTapInput.vue +1 -1
- package/src/PageBuilder/PageBuilder.vue +9 -8
- package/src/locales/ar.json +23 -1
- package/src/locales/de.json +23 -1
- package/src/locales/en.json +24 -2
- package/src/locales/es.json +23 -2
- package/src/locales/fr.json +23 -2
- package/src/locales/hi.json +23 -2
- package/src/locales/ja.json +23 -2
- package/src/locales/pt.json +23 -2
- package/src/locales/ru.json +23 -2
- package/src/locales/zh-Hans.json +24 -3
|
@@ -2,7 +2,7 @@ var Eu = Object.defineProperty;
|
|
|
2
2
|
var Tu = (r, e, t) => e in r ? Eu(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
3
3
|
var xe = (r, e, t) => Tu(r, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import * as fp from "vue";
|
|
5
|
-
import { defineComponent as nt, computed as $, createBlock as ce, openBlock as v, Teleport as Ou, createElementVNode as b, createElementBlock as C, createCommentVNode as
|
|
5
|
+
import { defineComponent as nt, computed as $, createBlock as ce, openBlock as v, Teleport as Ou, createElementVNode as b, createElementBlock as C, createCommentVNode as D, normalizeClass as X, toDisplayString as M, renderSlot as bo, ref as S, watchEffect as nn, Fragment as ae, withCtx as U, nextTick as pe, readonly as Bu, createVNode as H, unref as y, shallowRef as Pu, onMounted as xr, onBeforeUnmount as Aa, h as jr, getCurrentInstance as Tc, markRaw as Pr, customRef as Au, effectScope as Oc, toRaw as We, hasInjectionContext as Nu, inject as Hr, watch as Z, reactive as Du, isRef as Dn, isReactive as vl, toRef as Ya, getCurrentScope as Lu, onScopeDispose as Iu, toRefs as yp, onBeforeMount as _u, withDirectives as ye, vModelText as Ln, createTextVNode as Ce, provide as Er, resolveDynamicComponent as Bc, cloneVNode as Ru, onUnmounted as $u, Transition as Zn, renderList as me, withKeys as Ds, withModifiers as gt, vShow as Ls, vModelSelect as qe } from "vue";
|
|
6
6
|
const zu = { class: "pbx-font-sans" }, Fu = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "pbx-fixed pbx-inset-0 pbx-z-40 pbx-flex pbx-items-center pbx-justify-center pbx-mx-4",
|
|
@@ -100,7 +100,7 @@ const zu = { class: "pbx-font-sans" }, Fu = {
|
|
|
100
100
|
bo(a.$slots, "default")
|
|
101
101
|
])
|
|
102
102
|
], 2)
|
|
103
|
-
])) :
|
|
103
|
+
])) : D("", !0)
|
|
104
104
|
])
|
|
105
105
|
]));
|
|
106
106
|
}
|
|
@@ -129,8 +129,8 @@ const zu = { class: "pbx-font-sans" }, Fu = {
|
|
|
129
129
|
a.head.appendChild(s.cloneNode(!0));
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
|
-
}), (i, a) => (v(), C(
|
|
133
|
-
r.mobile ?
|
|
132
|
+
}), (i, a) => (v(), C(ae, null, [
|
|
133
|
+
r.mobile ? D("", !0) : (v(), C("div", Hu, [
|
|
134
134
|
b("div", Vu, [
|
|
135
135
|
b("div", Wu, [
|
|
136
136
|
b("div", {
|
|
@@ -147,7 +147,7 @@ const zu = { class: "pbx-font-sans" }, Fu = {
|
|
|
147
147
|
class: "pbx-mx-auto pbx-w-full pbx-bg-white pbx-shadow-lg pbx-h-[80vh] pbx-border-0",
|
|
148
148
|
src: "about:blank"
|
|
149
149
|
}, null, 512)
|
|
150
|
-
])) :
|
|
150
|
+
])) : D("", !0)
|
|
151
151
|
], 64));
|
|
152
152
|
}
|
|
153
153
|
}, Ku = { class: "pbx-min-h-32 pbx-h-max pbx-font-sans pbx-w-full pbx-relative pbx-inline-block pbx-align-bottom pbx-text-left pbx-overflow-hidden pbx-transform pbx-transition-all sm:pbx-align-middle" }, Gu = ["innerHTML"], Ju = { class: "pbx-border-0 pbx-border-solid pbx-border-t pbx-border-gray-200 pbx-mt-4 pbx-flex pbx-items-center pbx-justify-end" }, Yu = {
|
|
@@ -244,7 +244,7 @@ const zu = { class: "pbx-font-sans" }, Fu = {
|
|
|
244
244
|
key: 0,
|
|
245
245
|
innerHTML: r.description,
|
|
246
246
|
class: "pbx-myPrimaryParagraph pbx-mb-6"
|
|
247
|
-
}, null, 8, Gu)) :
|
|
247
|
+
}, null, 8, Gu)) : D("", !0),
|
|
248
248
|
bo(a.$slots, "header"),
|
|
249
249
|
bo(a.$slots, "default")
|
|
250
250
|
], 2)
|
|
@@ -265,13 +265,13 @@ const zu = { class: "pbx-font-sans" }, Fu = {
|
|
|
265
265
|
class: "pbx-mySecondaryButton",
|
|
266
266
|
type: "button",
|
|
267
267
|
onClick: o
|
|
268
|
-
}, M(r.firstButtonText), 513)) :
|
|
268
|
+
}, M(r.firstButtonText), 513)) : D("", !0),
|
|
269
269
|
r.secondButtonText ? (v(), C("button", {
|
|
270
270
|
key: 1,
|
|
271
271
|
class: "pbx-myPrimaryButton pbx-bg-yellow-300 hover:pbx-bg-yellow-400 pbx-text-myPrimaryDarkGrayColor hover:pbx-text-myPrimaryDarkGrayColor focus:pbx-ring-yellow-400 pbx-w-full",
|
|
272
272
|
type: "button",
|
|
273
273
|
onClick: n
|
|
274
|
-
}, M(r.secondButtonText), 1)) :
|
|
274
|
+
}, M(r.secondButtonText), 1)) : D("", !0),
|
|
275
275
|
r.thirdButtonText ? (v(), C("button", {
|
|
276
276
|
key: 2,
|
|
277
277
|
class: X(["pbx-myPrimaryButton pbx-bg-myPrimaryLinkColor focus-visible:pbx-ring-myPrimaryLinkColor focus:pbx-ring-myPrimaryLinkColor hover:pbx-bg-myPrimaryLinkColor pbx-w-full", [
|
|
@@ -279,14 +279,14 @@ const zu = { class: "pbx-font-sans" }, Fu = {
|
|
|
279
279
|
]]),
|
|
280
280
|
type: "button",
|
|
281
281
|
onClick: i
|
|
282
|
-
}, M(r.thirdButtonText), 3)) :
|
|
282
|
+
}, M(r.thirdButtonText), 3)) : D("", !0)
|
|
283
283
|
], 2)
|
|
284
|
-
])) :
|
|
284
|
+
])) : D("", !0),
|
|
285
285
|
r.isLoading ? (v(), C("div", Xu, s[0] || (s[0] = [
|
|
286
286
|
b("div", { class: "pbx-inline-block pbx-h-8 pbx-w-8 pbx-animate-spin pbx-rounded-full pbx-border-4 pbx-border-solid pbx-border-current pbx-border-r-transparent pbx-align-[-0.125em] motion-reduce:pbx-animate-[spin_1.5s_linear_infinite]" }, [
|
|
287
287
|
b("span", { class: "!pbx-absolute !pbx-m-px !pbx-h-px !pbx-w-px !pbx-overflow-hidden !pbx-whitespace-nowrap !pbx-border-0 !pbx-p-0 !pbx-[clip:rect(0,0,0,0)]" }, "Loading...")
|
|
288
288
|
], -1)
|
|
289
|
-
]))) :
|
|
289
|
+
]))) : D("", !0)
|
|
290
290
|
])
|
|
291
291
|
]),
|
|
292
292
|
_: 3
|
|
@@ -1351,11 +1351,11 @@ function Zu() {
|
|
|
1351
1351
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
1352
1352
|
return mi(Qu);
|
|
1353
1353
|
}
|
|
1354
|
-
const
|
|
1354
|
+
const Re = [];
|
|
1355
1355
|
for (let r = 0; r < 256; ++r)
|
|
1356
|
-
|
|
1356
|
+
Re.push((r + 256).toString(16).slice(1));
|
|
1357
1357
|
function ex(r, e = 0) {
|
|
1358
|
-
return
|
|
1358
|
+
return Re[r[e + 0]] + Re[r[e + 1]] + Re[r[e + 2]] + Re[r[e + 3]] + "-" + Re[r[e + 4]] + Re[r[e + 5]] + "-" + Re[r[e + 6]] + Re[r[e + 7]] + "-" + Re[r[e + 8]] + Re[r[e + 9]] + "-" + Re[r[e + 10]] + Re[r[e + 11]] + Re[r[e + 12]] + Re[r[e + 13]] + Re[r[e + 14]] + Re[r[e + 15]];
|
|
1359
1359
|
}
|
|
1360
1360
|
const tx = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), vp = {
|
|
1361
1361
|
randomUUID: tx
|
|
@@ -2610,13 +2610,13 @@ const ix = (r, e, t) => {
|
|
|
2610
2610
|
}, Is = S({});
|
|
2611
2611
|
async function Ac(r) {
|
|
2612
2612
|
try {
|
|
2613
|
-
const e = await ix(/* @__PURE__ */ Object.assign({ "../locales/ar.json": () => import("./ar-
|
|
2613
|
+
const e = await ix(/* @__PURE__ */ Object.assign({ "../locales/ar.json": () => import("./ar-BFnbxHvs.js"), "../locales/de.json": () => import("./de-CXrApoe-.js"), "../locales/en.json": () => import("./en-BBXHMa80.js"), "../locales/es.json": () => import("./es-HxtF5isZ.js"), "../locales/fr.json": () => import("./fr-BuBVt239.js"), "../locales/hi.json": () => import("./hi-BgJTsN-7.js"), "../locales/ja.json": () => import("./ja-DHO3LNTk.js"), "../locales/pt.json": () => import("./pt-DbEpIKz5.js"), "../locales/ru.json": () => import("./ru-Dmz_Bfpt.js"), "../locales/zh-Hans.json": () => import("./zh-Hans-BkEKxp4g.js") }), `../locales/${r}.json`, 3);
|
|
2614
2614
|
Is.value = e.default;
|
|
2615
2615
|
} catch (e) {
|
|
2616
2616
|
console.error(`Could not load translations for language: ${r}`, e), r !== "en" && await Ac("en");
|
|
2617
2617
|
}
|
|
2618
2618
|
}
|
|
2619
|
-
function
|
|
2619
|
+
function Be() {
|
|
2620
2620
|
function r(e) {
|
|
2621
2621
|
return Is.value[e] || e;
|
|
2622
2622
|
}
|
|
@@ -2629,14 +2629,14 @@ function He() {
|
|
|
2629
2629
|
const ax = { class: "pbx-flex pbx-flex-col pbx-items-center pbx-justify-center pbx-myPrimaryGap" }, sx = { class: "pbx-flex pbx-gap-2 pbx-items-center pbx-justify-center" }, lx = {
|
|
2630
2630
|
__name: "ComponentTopMenu",
|
|
2631
2631
|
setup(r) {
|
|
2632
|
-
const { translate: e } =
|
|
2632
|
+
const { translate: e } = Be(), t = Oe(), o = S(!1), n = S(""), i = S(1), a = S(""), s = S(""), l = S(""), p = S(null), d = S(null), c = S(null), m = S(null), u = S(null), x = function() {
|
|
2633
2633
|
o.value = !0, n.value = "delete", i.value = 2, a.value = e("Remove Component?"), s.value = e("Are you sure you want to remove this Component?"), l.value = e("Close"), p.value = null, d.value = e("Delete"), c.value = function() {
|
|
2634
2634
|
o.value = !1;
|
|
2635
2635
|
}, u.value = async function() {
|
|
2636
2636
|
await t.deleteComponentFromDOM(), o.value = !1;
|
|
2637
2637
|
};
|
|
2638
2638
|
};
|
|
2639
|
-
return (h, g) => (v(), C(
|
|
2639
|
+
return (h, g) => (v(), C(ae, null, [
|
|
2640
2640
|
H(ko, {
|
|
2641
2641
|
showDynamicModalBuilder: o.value,
|
|
2642
2642
|
type: n.value,
|
|
@@ -2684,11 +2684,11 @@ const ax = { class: "pbx-flex pbx-flex-col pbx-items-center pbx-justify-center p
|
|
|
2684
2684
|
], 64));
|
|
2685
2685
|
}
|
|
2686
2686
|
};
|
|
2687
|
-
function
|
|
2687
|
+
function $e(r) {
|
|
2688
2688
|
this.content = r;
|
|
2689
2689
|
}
|
|
2690
|
-
|
|
2691
|
-
constructor:
|
|
2690
|
+
$e.prototype = {
|
|
2691
|
+
constructor: $e,
|
|
2692
2692
|
find: function(r) {
|
|
2693
2693
|
for (var e = 0; e < this.content.length; e += 2)
|
|
2694
2694
|
if (this.content[e] === r) return e;
|
|
@@ -2707,7 +2707,7 @@ Re.prototype = {
|
|
|
2707
2707
|
// given, the key of the binding will be replaced with that key.
|
|
2708
2708
|
update: function(r, e, t) {
|
|
2709
2709
|
var o = t && t != r ? this.remove(t) : this, n = o.find(r), i = o.content.slice();
|
|
2710
|
-
return n == -1 ? i.push(t || r, e) : (i[n + 1] = e, t && (i[n] = t)), new
|
|
2710
|
+
return n == -1 ? i.push(t || r, e) : (i[n + 1] = e, t && (i[n] = t)), new $e(i);
|
|
2711
2711
|
},
|
|
2712
2712
|
// :: (string) → OrderedMap
|
|
2713
2713
|
// Return a map with the given key removed, if it existed.
|
|
@@ -2715,25 +2715,25 @@ Re.prototype = {
|
|
|
2715
2715
|
var e = this.find(r);
|
|
2716
2716
|
if (e == -1) return this;
|
|
2717
2717
|
var t = this.content.slice();
|
|
2718
|
-
return t.splice(e, 2), new
|
|
2718
|
+
return t.splice(e, 2), new $e(t);
|
|
2719
2719
|
},
|
|
2720
2720
|
// :: (string, any) → OrderedMap
|
|
2721
2721
|
// Add a new key to the start of the map.
|
|
2722
2722
|
addToStart: function(r, e) {
|
|
2723
|
-
return new
|
|
2723
|
+
return new $e([r, e].concat(this.remove(r).content));
|
|
2724
2724
|
},
|
|
2725
2725
|
// :: (string, any) → OrderedMap
|
|
2726
2726
|
// Add a new key to the end of the map.
|
|
2727
2727
|
addToEnd: function(r, e) {
|
|
2728
2728
|
var t = this.remove(r).content.slice();
|
|
2729
|
-
return t.push(r, e), new
|
|
2729
|
+
return t.push(r, e), new $e(t);
|
|
2730
2730
|
},
|
|
2731
2731
|
// :: (string, string, any) → OrderedMap
|
|
2732
2732
|
// Add a key after the given key. If `place` is not found, the new
|
|
2733
2733
|
// key is added to the end.
|
|
2734
2734
|
addBefore: function(r, e, t) {
|
|
2735
2735
|
var o = this.remove(e), n = o.content.slice(), i = o.find(r);
|
|
2736
|
-
return n.splice(i == -1 ? n.length : i, 0, e, t), new
|
|
2736
|
+
return n.splice(i == -1 ? n.length : i, 0, e, t), new $e(n);
|
|
2737
2737
|
},
|
|
2738
2738
|
// :: ((key: string, value: any))
|
|
2739
2739
|
// Call the given function for each key/value pair in the map, in
|
|
@@ -2746,20 +2746,20 @@ Re.prototype = {
|
|
|
2746
2746
|
// Create a new map by prepending the keys in this map that don't
|
|
2747
2747
|
// appear in `map` before the keys in `map`.
|
|
2748
2748
|
prepend: function(r) {
|
|
2749
|
-
return r =
|
|
2749
|
+
return r = $e.from(r), r.size ? new $e(r.content.concat(this.subtract(r).content)) : this;
|
|
2750
2750
|
},
|
|
2751
2751
|
// :: (union<Object, OrderedMap>) → OrderedMap
|
|
2752
2752
|
// Create a new map by appending the keys in this map that don't
|
|
2753
2753
|
// appear in `map` after the keys in `map`.
|
|
2754
2754
|
append: function(r) {
|
|
2755
|
-
return r =
|
|
2755
|
+
return r = $e.from(r), r.size ? new $e(this.subtract(r).content.concat(r.content)) : this;
|
|
2756
2756
|
},
|
|
2757
2757
|
// :: (union<Object, OrderedMap>) → OrderedMap
|
|
2758
2758
|
// Create a map containing all the keys in this map that don't
|
|
2759
2759
|
// appear in `map`.
|
|
2760
2760
|
subtract: function(r) {
|
|
2761
2761
|
var e = this;
|
|
2762
|
-
r =
|
|
2762
|
+
r = $e.from(r);
|
|
2763
2763
|
for (var t = 0; t < r.content.length; t += 2)
|
|
2764
2764
|
e = e.remove(r.content[t]);
|
|
2765
2765
|
return e;
|
|
@@ -2778,11 +2778,11 @@ Re.prototype = {
|
|
|
2778
2778
|
return this.content.length >> 1;
|
|
2779
2779
|
}
|
|
2780
2780
|
};
|
|
2781
|
-
|
|
2782
|
-
if (r instanceof
|
|
2781
|
+
$e.from = function(r) {
|
|
2782
|
+
if (r instanceof $e) return r;
|
|
2783
2783
|
var e = [];
|
|
2784
2784
|
if (r) for (var t in r) e.push(t, r[t]);
|
|
2785
|
-
return new
|
|
2785
|
+
return new $e(e);
|
|
2786
2786
|
};
|
|
2787
2787
|
function Nc(r, e, t) {
|
|
2788
2788
|
for (let o = 0; ; o++) {
|
|
@@ -2833,7 +2833,7 @@ function Dc(r, e, t, o) {
|
|
|
2833
2833
|
t -= l, o -= l;
|
|
2834
2834
|
}
|
|
2835
2835
|
}
|
|
2836
|
-
class
|
|
2836
|
+
class I {
|
|
2837
2837
|
/**
|
|
2838
2838
|
@internal
|
|
2839
2839
|
*/
|
|
@@ -2888,7 +2888,7 @@ class _ {
|
|
|
2888
2888
|
let t = this.lastChild, o = e.firstChild, n = this.content.slice(), i = 0;
|
|
2889
2889
|
for (t.isText && t.sameMarkup(o) && (n[n.length - 1] = t.withText(t.text + o.text), i = 1); i < e.content.length; i++)
|
|
2890
2890
|
n.push(e.content[i]);
|
|
2891
|
-
return new
|
|
2891
|
+
return new I(n, this.size + e.size);
|
|
2892
2892
|
}
|
|
2893
2893
|
/**
|
|
2894
2894
|
Cut out the sub-fragment between the two given positions.
|
|
@@ -2902,13 +2902,13 @@ class _ {
|
|
|
2902
2902
|
let s = this.content[i], l = a + s.nodeSize;
|
|
2903
2903
|
l > e && ((a < e || l > t) && (s.isText ? s = s.cut(Math.max(0, e - a), Math.min(s.text.length, t - a)) : s = s.cut(Math.max(0, e - a - 1), Math.min(s.content.size, t - a - 1))), o.push(s), n += s.nodeSize), a = l;
|
|
2904
2904
|
}
|
|
2905
|
-
return new
|
|
2905
|
+
return new I(o, n);
|
|
2906
2906
|
}
|
|
2907
2907
|
/**
|
|
2908
2908
|
@internal
|
|
2909
2909
|
*/
|
|
2910
2910
|
cutByIndex(e, t) {
|
|
2911
|
-
return e == t ?
|
|
2911
|
+
return e == t ? I.empty : e == 0 && t == this.content.length ? this : new I(this.content.slice(e, t));
|
|
2912
2912
|
}
|
|
2913
2913
|
/**
|
|
2914
2914
|
Create a new fragment in which the node at the given index is
|
|
@@ -2919,21 +2919,21 @@ class _ {
|
|
|
2919
2919
|
if (o == t)
|
|
2920
2920
|
return this;
|
|
2921
2921
|
let n = this.content.slice(), i = this.size + t.nodeSize - o.nodeSize;
|
|
2922
|
-
return n[e] = t, new
|
|
2922
|
+
return n[e] = t, new I(n, i);
|
|
2923
2923
|
}
|
|
2924
2924
|
/**
|
|
2925
2925
|
Create a new fragment by prepending the given node to this
|
|
2926
2926
|
fragment.
|
|
2927
2927
|
*/
|
|
2928
2928
|
addToStart(e) {
|
|
2929
|
-
return new
|
|
2929
|
+
return new I([e].concat(this.content), this.size + e.nodeSize);
|
|
2930
2930
|
}
|
|
2931
2931
|
/**
|
|
2932
2932
|
Create a new fragment by appending the given node to this
|
|
2933
2933
|
fragment.
|
|
2934
2934
|
*/
|
|
2935
2935
|
addToEnd(e) {
|
|
2936
|
-
return new
|
|
2936
|
+
return new I(this.content.concat(e), this.size + e.nodeSize);
|
|
2937
2937
|
}
|
|
2938
2938
|
/**
|
|
2939
2939
|
Compare this fragment to another one.
|
|
@@ -3048,10 +3048,10 @@ class _ {
|
|
|
3048
3048
|
*/
|
|
3049
3049
|
static fromJSON(e, t) {
|
|
3050
3050
|
if (!t)
|
|
3051
|
-
return
|
|
3051
|
+
return I.empty;
|
|
3052
3052
|
if (!Array.isArray(t))
|
|
3053
3053
|
throw new RangeError("Invalid input for Fragment.fromJSON");
|
|
3054
|
-
return new
|
|
3054
|
+
return new I(t.map(e.nodeFromJSON));
|
|
3055
3055
|
}
|
|
3056
3056
|
/**
|
|
3057
3057
|
Build a fragment from an array of nodes. Ensures that adjacent
|
|
@@ -3059,13 +3059,13 @@ class _ {
|
|
|
3059
3059
|
*/
|
|
3060
3060
|
static fromArray(e) {
|
|
3061
3061
|
if (!e.length)
|
|
3062
|
-
return
|
|
3062
|
+
return I.empty;
|
|
3063
3063
|
let t, o = 0;
|
|
3064
3064
|
for (let n = 0; n < e.length; n++) {
|
|
3065
3065
|
let i = e[n];
|
|
3066
3066
|
o += i.nodeSize, n && i.isText && e[n - 1].sameMarkup(i) ? (t || (t = e.slice(0, n)), t[t.length - 1] = i.withText(t[t.length - 1].text + i.text)) : t && t.push(i);
|
|
3067
3067
|
}
|
|
3068
|
-
return new
|
|
3068
|
+
return new I(t || e, o);
|
|
3069
3069
|
}
|
|
3070
3070
|
/**
|
|
3071
3071
|
Create a fragment from something that can be interpreted as a
|
|
@@ -3075,17 +3075,17 @@ class _ {
|
|
|
3075
3075
|
*/
|
|
3076
3076
|
static from(e) {
|
|
3077
3077
|
if (!e)
|
|
3078
|
-
return
|
|
3079
|
-
if (e instanceof
|
|
3078
|
+
return I.empty;
|
|
3079
|
+
if (e instanceof I)
|
|
3080
3080
|
return e;
|
|
3081
3081
|
if (Array.isArray(e))
|
|
3082
3082
|
return this.fromArray(e);
|
|
3083
3083
|
if (e.attrs)
|
|
3084
|
-
return new
|
|
3084
|
+
return new I([e], e.nodeSize);
|
|
3085
3085
|
throw new RangeError("Can not convert " + e + " to a Fragment" + (e.nodesBetween ? " (looks like multiple versions of prosemirror-model were loaded)" : ""));
|
|
3086
3086
|
}
|
|
3087
3087
|
}
|
|
3088
|
-
|
|
3088
|
+
I.empty = new I([], 0);
|
|
3089
3089
|
const Qa = { index: 0, offset: 0 };
|
|
3090
3090
|
function ui(r, e) {
|
|
3091
3091
|
return Qa.index = r, Qa.offset = e, Qa;
|
|
@@ -3287,7 +3287,7 @@ class F {
|
|
|
3287
3287
|
let o = t.openStart || 0, n = t.openEnd || 0;
|
|
3288
3288
|
if (typeof o != "number" || typeof n != "number")
|
|
3289
3289
|
throw new RangeError("Invalid input for Slice.fromJSON");
|
|
3290
|
-
return new F(
|
|
3290
|
+
return new F(I.fromJSON(e, t.content), o, n);
|
|
3291
3291
|
}
|
|
3292
3292
|
/**
|
|
3293
3293
|
Create a slice from a fragment by taking the maximum possible
|
|
@@ -3302,7 +3302,7 @@ class F {
|
|
|
3302
3302
|
return new F(e, o, n);
|
|
3303
3303
|
}
|
|
3304
3304
|
}
|
|
3305
|
-
F.empty = new F(
|
|
3305
|
+
F.empty = new F(I.empty, 0, 0);
|
|
3306
3306
|
function Lc(r, e, t) {
|
|
3307
3307
|
let { index: o, offset: n } = r.findIndex(e), i = r.maybeChild(o), { index: a, offset: s } = r.findIndex(t);
|
|
3308
3308
|
if (n == e || i.isText) {
|
|
@@ -3367,7 +3367,7 @@ function ho(r, e) {
|
|
|
3367
3367
|
}
|
|
3368
3368
|
function $c(r, e, t, o, n) {
|
|
3369
3369
|
let i = r.depth > n && Rs(r, e, n + 1), a = o.depth > n && Rs(t, o, n + 1), s = [];
|
|
3370
|
-
return yn(null, r, n, s), i && a && e.index(n) == t.index(n) ? (Rc(i, a), go(ho(i, $c(r, e, t, o, n + 1)), s)) : (i && go(ho(i, Wi(r, e, n + 1)), s), yn(e, t, n, s), a && go(ho(a, Wi(t, o, n + 1)), s)), yn(o, null, n, s), new
|
|
3370
|
+
return yn(null, r, n, s), i && a && e.index(n) == t.index(n) ? (Rc(i, a), go(ho(i, $c(r, e, t, o, n + 1)), s)) : (i && go(ho(i, Wi(r, e, n + 1)), s), yn(e, t, n, s), a && go(ho(a, Wi(t, o, n + 1)), s)), yn(o, null, n, s), new I(s);
|
|
3371
3371
|
}
|
|
3372
3372
|
function Wi(r, e, t) {
|
|
3373
3373
|
let o = [];
|
|
@@ -3375,12 +3375,12 @@ function Wi(r, e, t) {
|
|
|
3375
3375
|
let n = Rs(r, e, t + 1);
|
|
3376
3376
|
go(ho(n, Wi(r, e, t + 1)), o);
|
|
3377
3377
|
}
|
|
3378
|
-
return yn(e, null, t, o), new
|
|
3378
|
+
return yn(e, null, t, o), new I(o);
|
|
3379
3379
|
}
|
|
3380
3380
|
function dx(r, e) {
|
|
3381
3381
|
let t = e.depth - r.openStart, n = e.node(t).copy(r.content);
|
|
3382
3382
|
for (let i = t - 1; i >= 0; i--)
|
|
3383
|
-
n = e.node(i).copy(
|
|
3383
|
+
n = e.node(i).copy(I.from(n));
|
|
3384
3384
|
return {
|
|
3385
3385
|
start: n.resolveNoCache(r.openStart + t),
|
|
3386
3386
|
end: n.resolveNoCache(n.content.size - r.openEnd - t)
|
|
@@ -3685,7 +3685,7 @@ let Rr = class $s {
|
|
|
3685
3685
|
@internal
|
|
3686
3686
|
*/
|
|
3687
3687
|
constructor(e, t, o, n = ge.none) {
|
|
3688
|
-
this.type = e, this.attrs = t, this.marks = n, this.content = o ||
|
|
3688
|
+
this.type = e, this.attrs = t, this.marks = n, this.content = o || I.empty;
|
|
3689
3689
|
}
|
|
3690
3690
|
/**
|
|
3691
3691
|
The array of this node's child nodes.
|
|
@@ -3974,7 +3974,7 @@ let Rr = class $s {
|
|
|
3974
3974
|
can optionally pass `start` and `end` indices into the
|
|
3975
3975
|
replacement fragment.
|
|
3976
3976
|
*/
|
|
3977
|
-
canReplace(e, t, o =
|
|
3977
|
+
canReplace(e, t, o = I.empty, n = 0, i = o.childCount) {
|
|
3978
3978
|
let a = this.contentMatchAt(e).matchFragment(o, n, i), s = a && a.matchFragment(this.content, t);
|
|
3979
3979
|
if (!s || !s.validEnd)
|
|
3980
3980
|
return !1;
|
|
@@ -4045,7 +4045,7 @@ let Rr = class $s {
|
|
|
4045
4045
|
throw new RangeError("Invalid text node in JSON");
|
|
4046
4046
|
return e.text(t.text, o);
|
|
4047
4047
|
}
|
|
4048
|
-
let n =
|
|
4048
|
+
let n = I.fromJSON(e, t.content), i = e.nodeType(t.type).create(t.attrs, n, o);
|
|
4049
4049
|
return i.type.checkAttrs(i.attrs), i;
|
|
4050
4050
|
}
|
|
4051
4051
|
};
|
|
@@ -4173,7 +4173,7 @@ class So {
|
|
|
4173
4173
|
function i(a, s) {
|
|
4174
4174
|
let l = a.matchFragment(e, o);
|
|
4175
4175
|
if (l && (!t || l.validEnd))
|
|
4176
|
-
return
|
|
4176
|
+
return I.from(s.map((p) => p.createAndFill()));
|
|
4177
4177
|
for (let p = 0; p < a.next.length; p++) {
|
|
4178
4178
|
let { type: d, next: c } = a.next[p];
|
|
4179
4179
|
if (!(d.isText || d.hasRequiredAttrs()) && n.indexOf(c) == -1) {
|
|
@@ -4556,7 +4556,7 @@ let Mp = class qc {
|
|
|
4556
4556
|
create(e = null, t, o) {
|
|
4557
4557
|
if (this.isText)
|
|
4558
4558
|
throw new Error("NodeType.create can't construct text nodes");
|
|
4559
|
-
return new Rr(this, this.computeAttrs(e),
|
|
4559
|
+
return new Rr(this, this.computeAttrs(e), I.from(t), ge.setFrom(o));
|
|
4560
4560
|
}
|
|
4561
4561
|
/**
|
|
4562
4562
|
Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but check the given content
|
|
@@ -4564,7 +4564,7 @@ let Mp = class qc {
|
|
|
4564
4564
|
if it doesn't match.
|
|
4565
4565
|
*/
|
|
4566
4566
|
createChecked(e = null, t, o) {
|
|
4567
|
-
return t =
|
|
4567
|
+
return t = I.from(t), this.checkContent(t), new Rr(this, this.computeAttrs(e), t, ge.setFrom(o));
|
|
4568
4568
|
}
|
|
4569
4569
|
/**
|
|
4570
4570
|
Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but see if it is
|
|
@@ -4575,13 +4575,13 @@ let Mp = class qc {
|
|
|
4575
4575
|
`Fragment.empty` as content.
|
|
4576
4576
|
*/
|
|
4577
4577
|
createAndFill(e = null, t, o) {
|
|
4578
|
-
if (e = this.computeAttrs(e), t =
|
|
4578
|
+
if (e = this.computeAttrs(e), t = I.from(t), t.size) {
|
|
4579
4579
|
let a = this.contentMatch.fillBefore(t);
|
|
4580
4580
|
if (!a)
|
|
4581
4581
|
return null;
|
|
4582
4582
|
t = a.append(t);
|
|
4583
4583
|
}
|
|
4584
|
-
let n = this.contentMatch.matchFragment(t), i = n && n.fillBefore(
|
|
4584
|
+
let n = this.contentMatch.matchFragment(t), i = n && n.fillBefore(I.empty, !0);
|
|
4585
4585
|
return i ? new Rr(this, e, t.append(i), ge.setFrom(o)) : null;
|
|
4586
4586
|
}
|
|
4587
4587
|
/**
|
|
@@ -4736,7 +4736,7 @@ class Kc {
|
|
|
4736
4736
|
let t = this.spec = {};
|
|
4737
4737
|
for (let n in e)
|
|
4738
4738
|
t[n] = e[n];
|
|
4739
|
-
t.nodes =
|
|
4739
|
+
t.nodes = $e.from(e.nodes), t.marks = $e.from(e.marks || {}), this.nodes = Mp.compile(this.spec.nodes, this), this.marks = Na.compile(this.spec.marks, this);
|
|
4740
4740
|
let o = /* @__PURE__ */ Object.create(null);
|
|
4741
4741
|
for (let n in this.nodes) {
|
|
4742
4742
|
if (n in this.marks)
|
|
@@ -4999,7 +4999,7 @@ class xi {
|
|
|
4999
4999
|
if (!this.match) {
|
|
5000
5000
|
if (!this.type)
|
|
5001
5001
|
return [];
|
|
5002
|
-
let t = this.type.contentMatch.fillBefore(
|
|
5002
|
+
let t = this.type.contentMatch.fillBefore(I.from(e));
|
|
5003
5003
|
if (t)
|
|
5004
5004
|
this.match = this.type.contentMatch.matchFragment(t);
|
|
5005
5005
|
else {
|
|
@@ -5017,8 +5017,8 @@ class xi {
|
|
|
5017
5017
|
o.text.length == n[0].length ? this.content.pop() : this.content[this.content.length - 1] = i.withText(i.text.slice(0, i.text.length - n[0].length));
|
|
5018
5018
|
}
|
|
5019
5019
|
}
|
|
5020
|
-
let t =
|
|
5021
|
-
return !e && this.match && (t = t.append(this.match.fillBefore(
|
|
5020
|
+
let t = I.from(this.content);
|
|
5021
|
+
return !e && this.match && (t = t.append(this.match.fillBefore(I.empty, !0))), this.type ? this.type.create(this.attrs, t, this.marks) : t;
|
|
5022
5022
|
}
|
|
5023
5023
|
inlineContext(e) {
|
|
5024
5024
|
return this.type ? this.type.inlineContent : this.content.length ? this.content[0].isInline : e.parentNode && !Gc.hasOwnProperty(e.parentNode.nodeName.toLowerCase());
|
|
@@ -5840,7 +5840,7 @@ function kl(r, e, t) {
|
|
|
5840
5840
|
let i = r.child(n);
|
|
5841
5841
|
i.content.size && (i = i.copy(kl(i.content, e, i))), i.isInline && (i = e(i, t, n)), o.push(i);
|
|
5842
5842
|
}
|
|
5843
|
-
return
|
|
5843
|
+
return I.fromArray(o);
|
|
5844
5844
|
}
|
|
5845
5845
|
class Nr extends Ge {
|
|
5846
5846
|
/**
|
|
@@ -5932,7 +5932,7 @@ class Dr extends Ge {
|
|
|
5932
5932
|
if (!t)
|
|
5933
5933
|
return Me.fail("No node at mark step's position");
|
|
5934
5934
|
let o = t.type.create(t.attrs, null, this.mark.addToSet(t.marks));
|
|
5935
|
-
return Me.fromReplace(e, this.pos, this.pos + 1, new F(
|
|
5935
|
+
return Me.fromReplace(e, this.pos, this.pos + 1, new F(I.from(o), 0, t.isLeaf ? 0 : 1));
|
|
5936
5936
|
}
|
|
5937
5937
|
invert(e) {
|
|
5938
5938
|
let t = e.nodeAt(this.pos);
|
|
@@ -5976,7 +5976,7 @@ class Co extends Ge {
|
|
|
5976
5976
|
if (!t)
|
|
5977
5977
|
return Me.fail("No node at mark step's position");
|
|
5978
5978
|
let o = t.type.create(t.attrs, null, this.mark.removeFromSet(t.marks));
|
|
5979
|
-
return Me.fromReplace(e, this.pos, this.pos + 1, new F(
|
|
5979
|
+
return Me.fromReplace(e, this.pos, this.pos + 1, new F(I.from(o), 0, t.isLeaf ? 0 : 1));
|
|
5980
5980
|
}
|
|
5981
5981
|
invert(e) {
|
|
5982
5982
|
let t = e.nodeAt(this.pos);
|
|
@@ -5999,7 +5999,7 @@ class Co extends Ge {
|
|
|
5999
5999
|
}
|
|
6000
6000
|
}
|
|
6001
6001
|
Ge.jsonID("removeNodeMark", Co);
|
|
6002
|
-
class
|
|
6002
|
+
class De extends Ge {
|
|
6003
6003
|
/**
|
|
6004
6004
|
The given `slice` should fit the 'gap' between `from` and
|
|
6005
6005
|
`to`—the depths must line up, and the surrounding nodes must be
|
|
@@ -6019,21 +6019,21 @@ class Ne extends Ge {
|
|
|
6019
6019
|
return new lt([this.from, this.to - this.from, this.slice.size]);
|
|
6020
6020
|
}
|
|
6021
6021
|
invert(e) {
|
|
6022
|
-
return new
|
|
6022
|
+
return new De(this.from, this.from + this.slice.size, e.slice(this.from, this.to));
|
|
6023
6023
|
}
|
|
6024
6024
|
map(e) {
|
|
6025
6025
|
let t = e.mapResult(this.from, 1), o = e.mapResult(this.to, -1);
|
|
6026
|
-
return t.deletedAcross && o.deletedAcross ? null : new
|
|
6026
|
+
return t.deletedAcross && o.deletedAcross ? null : new De(t.pos, Math.max(t.pos, o.pos), this.slice, this.structure);
|
|
6027
6027
|
}
|
|
6028
6028
|
merge(e) {
|
|
6029
|
-
if (!(e instanceof
|
|
6029
|
+
if (!(e instanceof De) || e.structure || this.structure)
|
|
6030
6030
|
return null;
|
|
6031
6031
|
if (this.from + this.slice.size == e.from && !this.slice.openEnd && !e.slice.openStart) {
|
|
6032
6032
|
let t = this.slice.size + e.slice.size == 0 ? F.empty : new F(this.slice.content.append(e.slice.content), this.slice.openStart, e.slice.openEnd);
|
|
6033
|
-
return new
|
|
6033
|
+
return new De(this.from, this.to + (e.to - e.from), t, this.structure);
|
|
6034
6034
|
} else if (e.to == this.from && !this.slice.openStart && !e.slice.openEnd) {
|
|
6035
6035
|
let t = this.slice.size + e.slice.size == 0 ? F.empty : new F(e.slice.content.append(this.slice.content), e.slice.openStart, this.slice.openEnd);
|
|
6036
|
-
return new
|
|
6036
|
+
return new De(e.from, this.to, t, this.structure);
|
|
6037
6037
|
} else
|
|
6038
6038
|
return null;
|
|
6039
6039
|
}
|
|
@@ -6047,11 +6047,11 @@ class Ne extends Ge {
|
|
|
6047
6047
|
static fromJSON(e, t) {
|
|
6048
6048
|
if (typeof t.from != "number" || typeof t.to != "number")
|
|
6049
6049
|
throw new RangeError("Invalid input for ReplaceStep.fromJSON");
|
|
6050
|
-
return new
|
|
6050
|
+
return new De(t.from, t.to, F.fromJSON(e, t.slice), !!t.structure);
|
|
6051
6051
|
}
|
|
6052
6052
|
}
|
|
6053
|
-
Ge.jsonID("replace",
|
|
6054
|
-
class
|
|
6053
|
+
Ge.jsonID("replace", De);
|
|
6054
|
+
class Le extends Ge {
|
|
6055
6055
|
/**
|
|
6056
6056
|
Create a replace-around step with the given range and gap.
|
|
6057
6057
|
`insert` should be the point in the slice into which the content
|
|
@@ -6082,11 +6082,11 @@ class De extends Ge {
|
|
|
6082
6082
|
}
|
|
6083
6083
|
invert(e) {
|
|
6084
6084
|
let t = this.gapTo - this.gapFrom;
|
|
6085
|
-
return new
|
|
6085
|
+
return new Le(this.from, this.from + this.slice.size + t, this.from + this.insert, this.from + this.insert + t, e.slice(this.from, this.to).removeBetween(this.gapFrom - this.from, this.gapTo - this.from), this.gapFrom - this.from, this.structure);
|
|
6086
6086
|
}
|
|
6087
6087
|
map(e) {
|
|
6088
6088
|
let t = e.mapResult(this.from, 1), o = e.mapResult(this.to, -1), n = this.from == this.gapFrom ? t.pos : e.map(this.gapFrom, -1), i = this.to == this.gapTo ? o.pos : e.map(this.gapTo, 1);
|
|
6089
|
-
return t.deletedAcross && o.deletedAcross || n < t.pos || i > o.pos ? null : new
|
|
6089
|
+
return t.deletedAcross && o.deletedAcross || n < t.pos || i > o.pos ? null : new Le(t.pos, o.pos, n, i, this.slice, this.insert, this.structure);
|
|
6090
6090
|
}
|
|
6091
6091
|
toJSON() {
|
|
6092
6092
|
let e = {
|
|
@@ -6105,10 +6105,10 @@ class De extends Ge {
|
|
|
6105
6105
|
static fromJSON(e, t) {
|
|
6106
6106
|
if (typeof t.from != "number" || typeof t.to != "number" || typeof t.gapFrom != "number" || typeof t.gapTo != "number" || typeof t.insert != "number")
|
|
6107
6107
|
throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");
|
|
6108
|
-
return new
|
|
6108
|
+
return new Le(t.from, t.to, t.gapFrom, t.gapTo, F.fromJSON(e, t.slice), t.insert, !!t.structure);
|
|
6109
6109
|
}
|
|
6110
6110
|
}
|
|
6111
|
-
Ge.jsonID("replaceAround",
|
|
6111
|
+
Ge.jsonID("replaceAround", Le);
|
|
6112
6112
|
function Hs(r, e, t) {
|
|
6113
6113
|
let o = r.resolve(e), n = t - e, i = o.depth;
|
|
6114
6114
|
for (; n > 0 && i > 0 && o.indexAfter(i) == o.node(i).childCount; )
|
|
@@ -6167,7 +6167,7 @@ function Sl(r, e, t, o = t.contentMatch, n = !0) {
|
|
|
6167
6167
|
for (let l = 0; l < i.childCount; l++) {
|
|
6168
6168
|
let p = i.child(l), d = s + p.nodeSize, c = o.matchType(p.type);
|
|
6169
6169
|
if (!c)
|
|
6170
|
-
a.push(new
|
|
6170
|
+
a.push(new De(s, d, F.empty));
|
|
6171
6171
|
else {
|
|
6172
6172
|
o = c;
|
|
6173
6173
|
for (let m = 0; m < p.marks.length; m++)
|
|
@@ -6175,13 +6175,13 @@ function Sl(r, e, t, o = t.contentMatch, n = !0) {
|
|
|
6175
6175
|
if (n && p.isText && t.whitespace != "pre") {
|
|
6176
6176
|
let m, u = /\r?\n|\r/g, x;
|
|
6177
6177
|
for (; m = u.exec(p.text); )
|
|
6178
|
-
x || (x = new F(
|
|
6178
|
+
x || (x = new F(I.from(t.schema.text(" ", t.allowedMarks(p.marks))), 0, 0)), a.push(new De(s + m.index, s + m.index + m[0].length, x));
|
|
6179
6179
|
}
|
|
6180
6180
|
}
|
|
6181
6181
|
s = d;
|
|
6182
6182
|
}
|
|
6183
6183
|
if (!o.validEnd) {
|
|
6184
|
-
let l = o.fillBefore(
|
|
6184
|
+
let l = o.fillBefore(I.empty, !0);
|
|
6185
6185
|
r.replace(s, s, new F(l, 0, 0));
|
|
6186
6186
|
}
|
|
6187
6187
|
for (let l = a.length - 1; l >= 0; l--)
|
|
@@ -6202,13 +6202,13 @@ function an(r) {
|
|
|
6202
6202
|
return null;
|
|
6203
6203
|
}
|
|
6204
6204
|
function Rx(r, e, t) {
|
|
6205
|
-
let { $from: o, $to: n, depth: i } = e, a = o.before(i + 1), s = n.after(i + 1), l = a, p = s, d =
|
|
6205
|
+
let { $from: o, $to: n, depth: i } = e, a = o.before(i + 1), s = n.after(i + 1), l = a, p = s, d = I.empty, c = 0;
|
|
6206
6206
|
for (let x = i, h = !1; x > t; x--)
|
|
6207
|
-
h || o.index(x) > 0 ? (h = !0, d =
|
|
6208
|
-
let m =
|
|
6207
|
+
h || o.index(x) > 0 ? (h = !0, d = I.from(o.node(x).copy(d)), c++) : l--;
|
|
6208
|
+
let m = I.empty, u = 0;
|
|
6209
6209
|
for (let x = i, h = !1; x > t; x--)
|
|
6210
|
-
h || n.after(x + 1) < n.end(x) ? (h = !0, m =
|
|
6211
|
-
r.step(new
|
|
6210
|
+
h || n.after(x + 1) < n.end(x) ? (h = !0, m = I.from(n.node(x).copy(m)), u++) : p++;
|
|
6211
|
+
r.step(new Le(l, p, a, s, new F(d.append(m), c, u), d.size - c, !0));
|
|
6212
6212
|
}
|
|
6213
6213
|
function Cl(r, e, t = null, o = r) {
|
|
6214
6214
|
let n = $x(r, e), i = n && zx(o, e);
|
|
@@ -6234,17 +6234,17 @@ function zx(r, e) {
|
|
|
6234
6234
|
return !l || !l.validEnd ? null : a;
|
|
6235
6235
|
}
|
|
6236
6236
|
function Fx(r, e, t) {
|
|
6237
|
-
let o =
|
|
6237
|
+
let o = I.empty;
|
|
6238
6238
|
for (let a = t.length - 1; a >= 0; a--) {
|
|
6239
6239
|
if (o.size) {
|
|
6240
6240
|
let s = t[a].type.contentMatch.matchFragment(o);
|
|
6241
6241
|
if (!s || !s.validEnd)
|
|
6242
6242
|
throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper");
|
|
6243
6243
|
}
|
|
6244
|
-
o =
|
|
6244
|
+
o = I.from(t[a].type.create(t[a].attrs, o));
|
|
6245
6245
|
}
|
|
6246
6246
|
let n = e.start, i = e.end;
|
|
6247
|
-
r.step(new
|
|
6247
|
+
r.step(new Le(n, i, n, i, new F(o, 0, 0), t.length, !0));
|
|
6248
6248
|
}
|
|
6249
6249
|
function jx(r, e, t, o, n) {
|
|
6250
6250
|
if (!o.isTextblock)
|
|
@@ -6260,7 +6260,7 @@ function jx(r, e, t, o, n) {
|
|
|
6260
6260
|
}
|
|
6261
6261
|
p === !1 && rb(r, a, s, i), Sl(r, r.mapping.slice(i).map(s, 1), o, void 0, p === null);
|
|
6262
6262
|
let d = r.mapping.slice(i), c = d.map(s, 1), m = d.map(s + a.nodeSize, 1);
|
|
6263
|
-
return r.step(new
|
|
6263
|
+
return r.step(new Le(c, m, c + 1, m - 1, new F(I.from(o.create(l, null, a.marks)), 0, 0), 1, !0)), p === !0 && tb(r, a, s, i), !1;
|
|
6264
6264
|
}
|
|
6265
6265
|
});
|
|
6266
6266
|
}
|
|
@@ -6298,7 +6298,7 @@ function Vx(r, e, t, o, n) {
|
|
|
6298
6298
|
return r.replaceWith(e, e + i.nodeSize, a);
|
|
6299
6299
|
if (!t.validContent(i.content))
|
|
6300
6300
|
throw new RangeError("Invalid content for node type " + t.name);
|
|
6301
|
-
r.step(new
|
|
6301
|
+
r.step(new Le(e, e + i.nodeSize, e + 1, e + i.nodeSize - 1, new F(I.from(a), 0, 0), 1, !0));
|
|
6302
6302
|
}
|
|
6303
6303
|
function mr(r, e, t = 1, o) {
|
|
6304
6304
|
let n = r.resolve(e), i = n.depth - t, a = o && o[o.length - 1] || n.parent;
|
|
@@ -6318,13 +6318,13 @@ function mr(r, e, t = 1, o) {
|
|
|
6318
6318
|
return n.node(i).canReplaceWith(s, s, l ? l.type : n.node(i + 1).type);
|
|
6319
6319
|
}
|
|
6320
6320
|
function Wx(r, e, t = 1, o) {
|
|
6321
|
-
let n = r.doc.resolve(e), i =
|
|
6321
|
+
let n = r.doc.resolve(e), i = I.empty, a = I.empty;
|
|
6322
6322
|
for (let s = n.depth, l = n.depth - t, p = t - 1; s > l; s--, p--) {
|
|
6323
|
-
i =
|
|
6323
|
+
i = I.from(n.node(s).copy(i));
|
|
6324
6324
|
let d = o && o[p];
|
|
6325
|
-
a =
|
|
6325
|
+
a = I.from(d ? d.type.create(d.attrs, a) : n.node(s).copy(a));
|
|
6326
6326
|
}
|
|
6327
|
-
r.step(new
|
|
6327
|
+
r.step(new De(e, e, new F(i.append(a), t, t), !0));
|
|
6328
6328
|
}
|
|
6329
6329
|
function Wr(r, e) {
|
|
6330
6330
|
let t = r.resolve(e), o = t.index();
|
|
@@ -6367,7 +6367,7 @@ function qx(r, e, t) {
|
|
|
6367
6367
|
}
|
|
6368
6368
|
a.inlineContent && Sl(r, e + t - 1, a, i.node().contentMatchAt(i.index()), o == null);
|
|
6369
6369
|
let l = r.mapping.slice(s), p = l.map(e - t);
|
|
6370
|
-
if (r.step(new
|
|
6370
|
+
if (r.step(new De(p, l.map(e + t, -1), F.empty, !0)), o === !0) {
|
|
6371
6371
|
let d = r.doc.resolve(p);
|
|
6372
6372
|
tb(r, d.node(), d.before(), r.steps.length);
|
|
6373
6373
|
}
|
|
@@ -6420,14 +6420,14 @@ function La(r, e, t = e, o = F.empty) {
|
|
|
6420
6420
|
if (e == t && !o.size)
|
|
6421
6421
|
return null;
|
|
6422
6422
|
let n = r.resolve(e), i = r.resolve(t);
|
|
6423
|
-
return ib(n, i, o) ? new
|
|
6423
|
+
return ib(n, i, o) ? new De(e, t, o) : new Gx(n, i, o).fit();
|
|
6424
6424
|
}
|
|
6425
6425
|
function ib(r, e, t) {
|
|
6426
6426
|
return !t.openStart && !t.openEnd && r.start() == e.start() && r.parent.canReplace(r.index(), e.index(), t.content);
|
|
6427
6427
|
}
|
|
6428
6428
|
class Gx {
|
|
6429
6429
|
constructor(e, t, o) {
|
|
6430
|
-
this.$from = e, this.$to = t, this.unplaced = o, this.frontier = [], this.placed =
|
|
6430
|
+
this.$from = e, this.$to = t, this.unplaced = o, this.frontier = [], this.placed = I.empty;
|
|
6431
6431
|
for (let n = 0; n <= e.depth; n++) {
|
|
6432
6432
|
let i = e.node(n);
|
|
6433
6433
|
this.frontier.push({
|
|
@@ -6436,7 +6436,7 @@ class Gx {
|
|
|
6436
6436
|
});
|
|
6437
6437
|
}
|
|
6438
6438
|
for (let n = e.depth; n > 0; n--)
|
|
6439
|
-
this.placed =
|
|
6439
|
+
this.placed = I.from(e.node(n).copy(this.placed));
|
|
6440
6440
|
}
|
|
6441
6441
|
get depth() {
|
|
6442
6442
|
return this.frontier.length - 1;
|
|
@@ -6453,7 +6453,7 @@ class Gx {
|
|
|
6453
6453
|
for (; a && s && i.childCount == 1; )
|
|
6454
6454
|
i = i.firstChild.content, a--, s--;
|
|
6455
6455
|
let l = new F(i, a, s);
|
|
6456
|
-
return e > -1 ? new
|
|
6456
|
+
return e > -1 ? new Le(o.pos, e, this.$to.pos, this.$to.end(), l, t) : l.size || o.pos != this.$to.pos ? new De(o.pos, n.pos, l) : null;
|
|
6457
6457
|
}
|
|
6458
6458
|
// Find a position on the start spine of `this.unplaced` that has
|
|
6459
6459
|
// content that can be moved somewhere on the frontier. Returns two
|
|
@@ -6475,7 +6475,7 @@ class Gx {
|
|
|
6475
6475
|
let a = n.firstChild;
|
|
6476
6476
|
for (let s = this.depth; s >= 0; s--) {
|
|
6477
6477
|
let { type: l, match: p } = this.frontier[s], d, c = null;
|
|
6478
|
-
if (t == 1 && (a ? p.matchType(a.type) || (c = p.fillBefore(
|
|
6478
|
+
if (t == 1 && (a ? p.matchType(a.type) || (c = p.fillBefore(I.from(a), !1)) : i && l.compatibleContent(i.type)))
|
|
6479
6479
|
return { sliceDepth: o, frontierDepth: s, parent: i, inject: c };
|
|
6480
6480
|
if (t == 2 && a && (d = p.findWrapping(a.type)))
|
|
6481
6481
|
return { sliceDepth: o, frontierDepth: s, parent: i, wrap: d };
|
|
@@ -6519,7 +6519,7 @@ class Gx {
|
|
|
6519
6519
|
p++, (p > 1 || l == 0 || h.content.size) && (c = g, d.push(ab(h.mark(m.allowedMarks(h.marks)), p == 1 ? l : 0, p == s.childCount ? u : -1)));
|
|
6520
6520
|
}
|
|
6521
6521
|
let x = p == s.childCount;
|
|
6522
|
-
x || (u = -1), this.placed = xn(this.placed, t,
|
|
6522
|
+
x || (u = -1), this.placed = xn(this.placed, t, I.from(d)), this.frontier[t].match = c, x && u < 0 && o && o.type == this.frontier[this.depth].type && this.frontier.length > 1 && this.closeFrontierNode();
|
|
6523
6523
|
for (let h = 0, g = s; h < u; h++) {
|
|
6524
6524
|
let w = g.lastChild;
|
|
6525
6525
|
this.frontier.push({ type: w.type, match: w.contentMatchAt(w.childCount) }), g = w.content;
|
|
@@ -6565,10 +6565,10 @@ class Gx {
|
|
|
6565
6565
|
}
|
|
6566
6566
|
openFrontierNode(e, t = null, o) {
|
|
6567
6567
|
let n = this.frontier[this.depth];
|
|
6568
|
-
n.match = n.match.matchType(e), this.placed = xn(this.placed, this.depth,
|
|
6568
|
+
n.match = n.match.matchType(e), this.placed = xn(this.placed, this.depth, I.from(e.create(t, o))), this.frontier.push({ type: e, match: e.contentMatch });
|
|
6569
6569
|
}
|
|
6570
6570
|
closeFrontierNode() {
|
|
6571
|
-
let t = this.frontier.pop().match.fillBefore(
|
|
6571
|
+
let t = this.frontier.pop().match.fillBefore(I.empty, !0);
|
|
6572
6572
|
t.childCount && (this.placed = xn(this.placed, this.frontier.length, t));
|
|
6573
6573
|
}
|
|
6574
6574
|
}
|
|
@@ -6587,7 +6587,7 @@ function ab(r, e, t) {
|
|
|
6587
6587
|
if (e <= 0)
|
|
6588
6588
|
return r;
|
|
6589
6589
|
let o = r.content;
|
|
6590
|
-
return e > 1 && (o = o.replaceChild(0, ab(o.firstChild, e - 1, o.childCount == 1 ? t - 1 : 0))), e > 0 && (o = r.type.contentMatch.fillBefore(o).append(o), t <= 0 && (o = o.append(r.type.contentMatch.matchFragment(o).fillBefore(
|
|
6590
|
+
return e > 1 && (o = o.replaceChild(0, ab(o.firstChild, e - 1, o.childCount == 1 ? t - 1 : 0))), e > 0 && (o = r.type.contentMatch.fillBefore(o).append(o), t <= 0 && (o = o.append(r.type.contentMatch.matchFragment(o).fillBefore(I.empty, !0)))), r.copy(o);
|
|
6591
6591
|
}
|
|
6592
6592
|
function rs(r, e, t, o, n) {
|
|
6593
6593
|
let i = r.node(e), a = n ? r.indexAfter(e) : r.index(e);
|
|
@@ -6610,7 +6610,7 @@ function Xx(r, e, t, o) {
|
|
|
6610
6610
|
return r.deleteRange(e, t);
|
|
6611
6611
|
let n = r.doc.resolve(e), i = r.doc.resolve(t);
|
|
6612
6612
|
if (ib(n, i, o))
|
|
6613
|
-
return r.step(new
|
|
6613
|
+
return r.step(new De(e, t, o));
|
|
6614
6614
|
let a = lb(n, r.doc.resolve(t));
|
|
6615
6615
|
a[a.length - 1] == 0 && a.pop();
|
|
6616
6616
|
let s = -(n.depth + 1);
|
|
@@ -6659,7 +6659,7 @@ function sb(r, e, t, o, n) {
|
|
|
6659
6659
|
}
|
|
6660
6660
|
if (e > o) {
|
|
6661
6661
|
let i = n.contentMatchAt(0), a = i.fillBefore(r).append(r);
|
|
6662
|
-
r = a.append(i.matchFragment(a).fillBefore(
|
|
6662
|
+
r = a.append(i.matchFragment(a).fillBefore(I.empty, !0));
|
|
6663
6663
|
}
|
|
6664
6664
|
return r;
|
|
6665
6665
|
}
|
|
@@ -6668,7 +6668,7 @@ function Qx(r, e, t, o) {
|
|
|
6668
6668
|
let n = Kx(r.doc, e, o.type);
|
|
6669
6669
|
n != null && (e = t = n);
|
|
6670
6670
|
}
|
|
6671
|
-
r.replaceRange(e, t, new F(
|
|
6671
|
+
r.replaceRange(e, t, new F(I.from(o), 0, 0));
|
|
6672
6672
|
}
|
|
6673
6673
|
function Zx(r, e, t) {
|
|
6674
6674
|
let o = r.doc.resolve(e), n = r.doc.resolve(t), i = lb(o, n);
|
|
@@ -6710,7 +6710,7 @@ class qo extends Ge {
|
|
|
6710
6710
|
o[i] = t.attrs[i];
|
|
6711
6711
|
o[this.attr] = this.value;
|
|
6712
6712
|
let n = t.type.create(o, null, t.marks);
|
|
6713
|
-
return Me.fromReplace(e, this.pos, this.pos + 1, new F(
|
|
6713
|
+
return Me.fromReplace(e, this.pos, this.pos + 1, new F(I.from(n), 0, t.isLeaf ? 0 : 1));
|
|
6714
6714
|
}
|
|
6715
6715
|
getMap() {
|
|
6716
6716
|
return lt.empty;
|
|
@@ -6832,7 +6832,7 @@ class pb {
|
|
|
6832
6832
|
fragment, node, or array of nodes.
|
|
6833
6833
|
*/
|
|
6834
6834
|
replaceWith(e, t, o) {
|
|
6835
|
-
return this.replace(e, t, new F(
|
|
6835
|
+
return this.replace(e, t, new F(I.from(o), 0, 0));
|
|
6836
6836
|
}
|
|
6837
6837
|
/**
|
|
6838
6838
|
Delete the content between the given positions.
|
|
@@ -7275,7 +7275,7 @@ class G extends ee {
|
|
|
7275
7275
|
return o ? ee.near(i) : new G(i);
|
|
7276
7276
|
}
|
|
7277
7277
|
content() {
|
|
7278
|
-
return new F(
|
|
7278
|
+
return new F(I.from(this.node), 0, 0);
|
|
7279
7279
|
}
|
|
7280
7280
|
eq(e) {
|
|
7281
7281
|
return e instanceof G && e.anchor == this.anchor;
|
|
@@ -7388,7 +7388,7 @@ function Rp(r, e, t) {
|
|
|
7388
7388
|
if (o < e)
|
|
7389
7389
|
return;
|
|
7390
7390
|
let n = r.steps[o];
|
|
7391
|
-
if (!(n instanceof
|
|
7391
|
+
if (!(n instanceof De || n instanceof Le))
|
|
7392
7392
|
return;
|
|
7393
7393
|
let i = r.mapping.maps[o], a;
|
|
7394
7394
|
i.forEach((s, l, p, d) => {
|
|
@@ -7770,7 +7770,7 @@ function db(r, e, t) {
|
|
|
7770
7770
|
}
|
|
7771
7771
|
return t;
|
|
7772
7772
|
}
|
|
7773
|
-
class
|
|
7773
|
+
class Pe {
|
|
7774
7774
|
/**
|
|
7775
7775
|
Create a plugin.
|
|
7776
7776
|
*/
|
|
@@ -7809,7 +7809,7 @@ class Ze {
|
|
|
7809
7809
|
return e[this.key];
|
|
7810
7810
|
}
|
|
7811
7811
|
}
|
|
7812
|
-
const
|
|
7812
|
+
const ze = function(r) {
|
|
7813
7813
|
for (var e = 0; ; e++)
|
|
7814
7814
|
if (r = r.previousSibling, !r)
|
|
7815
7815
|
return e;
|
|
@@ -7834,7 +7834,7 @@ function jp(r, e, t, o, n) {
|
|
|
7834
7834
|
let a = r.parentNode;
|
|
7835
7835
|
if (!a || a.nodeType != 1 || ei(r) || ig.test(r.nodeName) || r.contentEditable == "false")
|
|
7836
7836
|
return !1;
|
|
7837
|
-
e =
|
|
7837
|
+
e = ze(r) + (n < 0 ? 0 : 1), r = a;
|
|
7838
7838
|
} else if (r.nodeType == 1) {
|
|
7839
7839
|
let a = r.childNodes[e + (n < 0 ? -1 : 0)];
|
|
7840
7840
|
if (a.nodeType == 1 && a.contentEditable == "false")
|
|
@@ -7860,7 +7860,7 @@ function ag(r, e) {
|
|
|
7860
7860
|
return null;
|
|
7861
7861
|
r = r.childNodes[e - 1], e = wt(r);
|
|
7862
7862
|
} else if (r.parentNode && !ei(r))
|
|
7863
|
-
e =
|
|
7863
|
+
e = ze(r), r = r.parentNode;
|
|
7864
7864
|
else
|
|
7865
7865
|
return null;
|
|
7866
7866
|
}
|
|
@@ -7874,7 +7874,7 @@ function sg(r, e) {
|
|
|
7874
7874
|
return null;
|
|
7875
7875
|
r = r.childNodes[e], e = 0;
|
|
7876
7876
|
} else if (r.parentNode && !ei(r))
|
|
7877
|
-
e =
|
|
7877
|
+
e = ze(r) + 1, r = r.parentNode;
|
|
7878
7878
|
else
|
|
7879
7879
|
return null;
|
|
7880
7880
|
}
|
|
@@ -7883,7 +7883,7 @@ function lg(r, e, t) {
|
|
|
7883
7883
|
for (let o = e == 0, n = e == wt(r); o || n; ) {
|
|
7884
7884
|
if (r == t)
|
|
7885
7885
|
return !0;
|
|
7886
|
-
let i =
|
|
7886
|
+
let i = ze(r);
|
|
7887
7887
|
if (r = r.parentNode, !r)
|
|
7888
7888
|
return !1;
|
|
7889
7889
|
o = o && i == 0, n = n && i == wt(r);
|
|
@@ -8354,7 +8354,7 @@ class ri {
|
|
|
8354
8354
|
}
|
|
8355
8355
|
let n;
|
|
8356
8356
|
if (e == this.dom && this.contentDOM)
|
|
8357
|
-
n = t >
|
|
8357
|
+
n = t > ze(this.contentDOM);
|
|
8358
8358
|
else if (this.contentDOM && this.contentDOM != this.dom && this.dom.contains(this.contentDOM))
|
|
8359
8359
|
n = e.compareDocumentPosition(this.contentDOM) & 2;
|
|
8360
8360
|
else if (this.dom.firstChild) {
|
|
@@ -8444,12 +8444,12 @@ class ri {
|
|
|
8444
8444
|
let i, a = !0;
|
|
8445
8445
|
for (; i = o ? this.children[o - 1] : null, !(!i || i.dom.parentNode == this.contentDOM); o--, a = !1)
|
|
8446
8446
|
;
|
|
8447
|
-
return i && t && a && !i.border && !i.domAtom ? i.domFromPos(i.size, t) : { node: this.contentDOM, offset: i ?
|
|
8447
|
+
return i && t && a && !i.border && !i.domAtom ? i.domFromPos(i.size, t) : { node: this.contentDOM, offset: i ? ze(i.dom) + 1 : 0 };
|
|
8448
8448
|
} else {
|
|
8449
8449
|
let i, a = !0;
|
|
8450
8450
|
for (; i = o < this.children.length ? this.children[o] : null, !(!i || i.dom.parentNode == this.contentDOM); o++, a = !1)
|
|
8451
8451
|
;
|
|
8452
|
-
return i && a && !i.border && !i.domAtom ? i.domFromPos(0, t) : { node: this.contentDOM, offset: i ?
|
|
8452
|
+
return i && a && !i.border && !i.domAtom ? i.domFromPos(0, t) : { node: this.contentDOM, offset: i ? ze(i.dom) : this.contentDOM.childNodes.length };
|
|
8453
8453
|
}
|
|
8454
8454
|
}
|
|
8455
8455
|
// Used to find a DOM range in a single parent for a given changed
|
|
@@ -8468,7 +8468,7 @@ class ri {
|
|
|
8468
8468
|
for (let c = s; c > 0; c--) {
|
|
8469
8469
|
let m = this.children[c - 1];
|
|
8470
8470
|
if (m.size && m.dom.parentNode == this.contentDOM && !m.emptyChildAt(1)) {
|
|
8471
|
-
n =
|
|
8471
|
+
n = ze(m.dom) + 1;
|
|
8472
8472
|
break;
|
|
8473
8473
|
}
|
|
8474
8474
|
e -= m.size;
|
|
@@ -8480,7 +8480,7 @@ class ri {
|
|
|
8480
8480
|
for (let d = s + 1; d < this.children.length; d++) {
|
|
8481
8481
|
let c = this.children[d];
|
|
8482
8482
|
if (c.size && c.dom.parentNode == this.contentDOM && !c.emptyChildAt(-1)) {
|
|
8483
|
-
i =
|
|
8483
|
+
i = ze(c.dom);
|
|
8484
8484
|
break;
|
|
8485
8485
|
}
|
|
8486
8486
|
t += c.size;
|
|
@@ -8525,7 +8525,7 @@ class ri {
|
|
|
8525
8525
|
`), c && x == u.nodeValue.length)
|
|
8526
8526
|
for (let h = u, g; h; h = h.parentNode) {
|
|
8527
8527
|
if (g = h.nextSibling) {
|
|
8528
|
-
g.nodeName == "BR" && (s = l = { node: g.parentNode, offset:
|
|
8528
|
+
g.nodeName == "BR" && (s = l = { node: g.parentNode, offset: ze(g) + 1 });
|
|
8529
8529
|
break;
|
|
8530
8530
|
}
|
|
8531
8531
|
let w = h.pmViewDesc;
|
|
@@ -8745,7 +8745,7 @@ class zr extends ri {
|
|
|
8745
8745
|
break;
|
|
8746
8746
|
}
|
|
8747
8747
|
}
|
|
8748
|
-
e.contentElement || (e.getContent = () =>
|
|
8748
|
+
e.contentElement || (e.getContent = () => I.empty);
|
|
8749
8749
|
}
|
|
8750
8750
|
return e;
|
|
8751
8751
|
}
|
|
@@ -9371,7 +9371,7 @@ function $g(r) {
|
|
|
9371
9371
|
if (!e)
|
|
9372
9372
|
return;
|
|
9373
9373
|
let o = r.cursorWrapper.dom, n = o.nodeName == "IMG";
|
|
9374
|
-
n ? t.setStart(o.parentNode,
|
|
9374
|
+
n ? t.setStart(o.parentNode, ze(o) + 1) : t.setStart(o, 0), t.collapse(!0), e.removeAllRanges(), e.addRange(t), !n && !r.state.selection.visible && tt && $r <= 11 && (o.disabled = !0, o.disabled = !1);
|
|
9375
9375
|
}
|
|
9376
9376
|
function Eb(r, e) {
|
|
9377
9377
|
if (e instanceof G) {
|
|
@@ -9474,7 +9474,7 @@ function Fg(r) {
|
|
|
9474
9474
|
{
|
|
9475
9475
|
let s = t.previousSibling;
|
|
9476
9476
|
for (; s && Sn(s, -1); )
|
|
9477
|
-
n = t.parentNode, i =
|
|
9477
|
+
n = t.parentNode, i = ze(s), s = s.previousSibling;
|
|
9478
9478
|
if (s)
|
|
9479
9479
|
t = s, o = Gi(t);
|
|
9480
9480
|
else {
|
|
@@ -9506,7 +9506,7 @@ function jg(r) {
|
|
|
9506
9506
|
{
|
|
9507
9507
|
let s = t.nextSibling;
|
|
9508
9508
|
for (; s && Sn(s, 1); )
|
|
9509
|
-
i = s.parentNode, a =
|
|
9509
|
+
i = s.parentNode, a = ze(s) + 1, s = s.nextSibling;
|
|
9510
9510
|
if (s)
|
|
9511
9511
|
t = s, o = 0, n = Gi(t);
|
|
9512
9512
|
else {
|
|
@@ -9524,7 +9524,7 @@ function Ob(r) {
|
|
|
9524
9524
|
}
|
|
9525
9525
|
function Hg(r, e) {
|
|
9526
9526
|
for (; r && e == r.childNodes.length && !ei(r); )
|
|
9527
|
-
e =
|
|
9527
|
+
e = ze(r) + 1, r = r.parentNode;
|
|
9528
9528
|
for (; r && e < r.childNodes.length; ) {
|
|
9529
9529
|
let t = r.childNodes[e];
|
|
9530
9530
|
if (t.nodeType == 3)
|
|
@@ -9536,7 +9536,7 @@ function Hg(r, e) {
|
|
|
9536
9536
|
}
|
|
9537
9537
|
function Vg(r, e) {
|
|
9538
9538
|
for (; r && !e && !ei(r); )
|
|
9539
|
-
e =
|
|
9539
|
+
e = ze(r), r = r.parentNode;
|
|
9540
9540
|
for (; r && e; ) {
|
|
9541
9541
|
let t = r.childNodes[e - 1];
|
|
9542
9542
|
if (t.nodeType == 3)
|
|
@@ -9692,7 +9692,7 @@ function Bb(r, e, t, o, n) {
|
|
|
9692
9692
|
if (r.someProp("transformPastedText", (m) => {
|
|
9693
9693
|
e = m(e, i || o, r);
|
|
9694
9694
|
}), i)
|
|
9695
|
-
return e ? new F(
|
|
9695
|
+
return e ? new F(I.from(r.state.schema.text(e.replace(/\r\n?/g, `
|
|
9696
9696
|
`))), 0, 0) : F.empty;
|
|
9697
9697
|
let c = r.someProp("clipboardTextParser", (m) => m(e, n, o, r));
|
|
9698
9698
|
if (c)
|
|
@@ -9758,13 +9758,13 @@ function Gg(r, e) {
|
|
|
9758
9758
|
a.push(d), n = n.matchType(d.type), i = l;
|
|
9759
9759
|
}
|
|
9760
9760
|
}), a)
|
|
9761
|
-
return
|
|
9761
|
+
return I.from(a);
|
|
9762
9762
|
}
|
|
9763
9763
|
return r;
|
|
9764
9764
|
}
|
|
9765
9765
|
function Pb(r, e, t = 0) {
|
|
9766
9766
|
for (let o = e.length - 1; o >= t; o--)
|
|
9767
|
-
r = e[o].create(null,
|
|
9767
|
+
r = e[o].create(null, I.from(r));
|
|
9768
9768
|
return r;
|
|
9769
9769
|
}
|
|
9770
9770
|
function Ab(r, e, t, o, n) {
|
|
@@ -9773,18 +9773,18 @@ function Ab(r, e, t, o, n) {
|
|
|
9773
9773
|
if (i)
|
|
9774
9774
|
return o.copy(o.content.replaceChild(o.childCount - 1, i));
|
|
9775
9775
|
if (o.contentMatchAt(o.childCount).matchType(n == r.length - 1 ? t.type : r[n + 1]))
|
|
9776
|
-
return o.copy(o.content.append(
|
|
9776
|
+
return o.copy(o.content.append(I.from(Pb(t, r, n + 1))));
|
|
9777
9777
|
}
|
|
9778
9778
|
}
|
|
9779
9779
|
function Nb(r, e) {
|
|
9780
9780
|
if (e == 0)
|
|
9781
9781
|
return r;
|
|
9782
|
-
let t = r.content.replaceChild(r.childCount - 1, Nb(r.lastChild, e - 1)), o = r.contentMatchAt(r.childCount).fillBefore(
|
|
9782
|
+
let t = r.content.replaceChild(r.childCount - 1, Nb(r.lastChild, e - 1)), o = r.contentMatchAt(r.childCount).fillBefore(I.empty, !0);
|
|
9783
9783
|
return r.copy(t.append(o));
|
|
9784
9784
|
}
|
|
9785
9785
|
function Xs(r, e, t, o, n, i) {
|
|
9786
9786
|
let a = e < 0 ? r.firstChild : r.lastChild, s = a.content;
|
|
9787
|
-
return r.childCount > 1 && (i = 0), n < o - 1 && (s = Xs(s, e, t, o, n + 1, i)), n >= t && (s = e < 0 ? a.contentMatchAt(0).fillBefore(s, i <= n).append(s) : s.append(a.contentMatchAt(a.childCount).fillBefore(
|
|
9787
|
+
return r.childCount > 1 && (i = 0), n < o - 1 && (s = Xs(s, e, t, o, n + 1, i)), n >= t && (s = e < 0 ? a.contentMatchAt(0).fillBefore(s, i <= n).append(s) : s.append(a.contentMatchAt(a.childCount).fillBefore(I.empty, !0))), r.replaceChild(e < 0 ? 0 : r.childCount - 1, a.copy(s));
|
|
9788
9788
|
}
|
|
9789
9789
|
function sd(r, e, t) {
|
|
9790
9790
|
return e < r.openStart && (r = new F(Xs(r.content, -1, e, r.openStart, 0, r.openEnd), e, r.openEnd)), t < r.openEnd && (r = new F(Xs(r.content, 1, t, r.openEnd, 0, 0), r.openStart, t)), r;
|
|
@@ -9839,7 +9839,7 @@ function Qg(r, e) {
|
|
|
9839
9839
|
let l = t.nodes[o[s]];
|
|
9840
9840
|
if (!l || l.hasRequiredAttrs())
|
|
9841
9841
|
break;
|
|
9842
|
-
n =
|
|
9842
|
+
n = I.from(l.create(o[s + 1], n)), i++, a++;
|
|
9843
9843
|
}
|
|
9844
9844
|
return new F(n, i, a);
|
|
9845
9845
|
}
|
|
@@ -10931,7 +10931,7 @@ class Mh {
|
|
|
10931
10931
|
let { previousSibling: c, nextSibling: m } = e.addedNodes[d];
|
|
10932
10932
|
(!c || Array.prototype.indexOf.call(e.addedNodes, c) < 0) && (n = c), (!m || Array.prototype.indexOf.call(e.addedNodes, m) < 0) && (i = m);
|
|
10933
10933
|
}
|
|
10934
|
-
let a = n && n.parentNode == e.target ?
|
|
10934
|
+
let a = n && n.parentNode == e.target ? ze(n) + 1 : 0, s = o.localPosFromDOM(e.target, a, -1), l = i && i.parentNode == e.target ? ze(i) : e.target.childNodes.length, p = o.localPosFromDOM(e.target, l, 1);
|
|
10935
10935
|
return { from: s, to: p };
|
|
10936
10936
|
} else return e.type == "attributes" ? { from: o.posAtStart - o.border, to: o.posAtEnd + o.border } : (this.lastChangedTextNode = e.target, {
|
|
10937
10937
|
from: o.posAtStart,
|
|
@@ -11025,10 +11025,10 @@ function Nh(r, e, t, o, n) {
|
|
|
11025
11025
|
if (r.input.compositionPendingChanges = 0, e < 0) {
|
|
11026
11026
|
let z = r.input.lastSelectionTime > Date.now() - 50 ? r.input.lastSelectionOrigin : null, j = Tl(r, z);
|
|
11027
11027
|
if (j && !r.state.selection.eq(j)) {
|
|
11028
|
-
if (Ke && dr && r.input.lastKeyCode === 13 && Date.now() - 100 < r.input.lastKeyCodeTime && r.someProp("handleKeyDown", (
|
|
11028
|
+
if (Ke && dr && r.input.lastKeyCode === 13 && Date.now() - 100 < r.input.lastKeyCodeTime && r.someProp("handleKeyDown", (L) => L(r, po(13, "Enter"))))
|
|
11029
11029
|
return;
|
|
11030
|
-
let
|
|
11031
|
-
z == "pointer" ?
|
|
11030
|
+
let N = r.state.tr.setSelection(j);
|
|
11031
|
+
z == "pointer" ? N.setMeta("pointer", !0) : z == "key" && N.scrollIntoView(), i && N.setMeta("composition", i), r.dispatch(N);
|
|
11032
11032
|
}
|
|
11033
11033
|
return;
|
|
11034
11034
|
}
|
|
@@ -11072,8 +11072,8 @@ function Nh(r, e, t, o, n) {
|
|
|
11072
11072
|
let f = x.start, O = x.endA, T = (z) => {
|
|
11073
11073
|
let j = z || r.state.tr.replace(f, O, p.doc.slice(x.start - p.from, x.endB - p.from));
|
|
11074
11074
|
if (p.sel) {
|
|
11075
|
-
let
|
|
11076
|
-
|
|
11075
|
+
let N = md(r, j.doc, p.sel);
|
|
11076
|
+
N && !(Ke && r.composing && N.empty && (x.start != x.endB || r.input.lastChromeDelete < Date.now() - 100) && (N.head == f || N.head == j.mapping.map(O) - 1) || tt && N.empty && N.head == f) && j.setSelection(N);
|
|
11077
11077
|
}
|
|
11078
11078
|
return i && j.setMeta("composition", i), j.scrollIntoView();
|
|
11079
11079
|
}, P;
|
|
@@ -11090,7 +11090,7 @@ function Nh(r, e, t, o, n) {
|
|
|
11090
11090
|
P.type == "add" ? z.addMark(f, O, P.mark) : z.removeMark(f, O, P.mark), r.dispatch(z);
|
|
11091
11091
|
} else if (h.parent.child(h.index()).isText && h.index() == g.index() - (g.textOffset ? 0 : 1)) {
|
|
11092
11092
|
let z = h.parent.textBetween(h.parentOffset, g.parentOffset), j = () => T(r.state.tr.insertText(z, f, O));
|
|
11093
|
-
r.someProp("handleTextInput", (
|
|
11093
|
+
r.someProp("handleTextInput", (N) => N(r, f, O, z, j)) || r.dispatch(j());
|
|
11094
11094
|
}
|
|
11095
11095
|
} else
|
|
11096
11096
|
r.dispatch(T());
|
|
@@ -11113,7 +11113,7 @@ function Dh(r, e) {
|
|
|
11113
11113
|
let p = [];
|
|
11114
11114
|
for (let d = 0; d < e.childCount; d++)
|
|
11115
11115
|
p.push(l(e.child(d)));
|
|
11116
|
-
if (
|
|
11116
|
+
if (I.from(p).eq(r))
|
|
11117
11117
|
return { mark: s, type: a };
|
|
11118
11118
|
}
|
|
11119
11119
|
function Lh(r, e, t, o, n) {
|
|
@@ -11628,10 +11628,10 @@ var Vr = {
|
|
|
11628
11628
|
221: "}",
|
|
11629
11629
|
222: '"'
|
|
11630
11630
|
}, $h = typeof navigator < "u" && /Mac/.test(navigator.platform), zh = typeof navigator < "u" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);
|
|
11631
|
-
for (var
|
|
11632
|
-
for (var
|
|
11633
|
-
for (var
|
|
11634
|
-
Vr[
|
|
11631
|
+
for (var Fe = 0; Fe < 10; Fe++) Vr[48 + Fe] = Vr[96 + Fe] = String(Fe);
|
|
11632
|
+
for (var Fe = 1; Fe <= 24; Fe++) Vr[Fe + 111] = "F" + Fe;
|
|
11633
|
+
for (var Fe = 65; Fe <= 90; Fe++)
|
|
11634
|
+
Vr[Fe] = String.fromCharCode(Fe + 32), Qi[Fe] = String.fromCharCode(Fe);
|
|
11635
11635
|
for (var bs in Vr) Qi.hasOwnProperty(bs) || (Qi[bs] = Vr[bs]);
|
|
11636
11636
|
function Fh(r) {
|
|
11637
11637
|
var e = $h && r.metaKey && r.shiftKey && !r.ctrlKey && !r.altKey || zh && r.shiftKey && r.key && r.key.length == 1 || r.key == "Unidentified", t = !e && r.key || (r.shiftKey ? Qi : Vr)[r.keyCode] || r.key || "Unidentified";
|
|
@@ -11669,7 +11669,7 @@ function ms(r, e, t = !0) {
|
|
|
11669
11669
|
return e.altKey && (r = "Alt-" + r), e.ctrlKey && (r = "Ctrl-" + r), e.metaKey && (r = "Meta-" + r), t && e.shiftKey && (r = "Shift-" + r), r;
|
|
11670
11670
|
}
|
|
11671
11671
|
function Uh(r) {
|
|
11672
|
-
return new
|
|
11672
|
+
return new Pe({ props: { handleKeyDown: qb(r) } });
|
|
11673
11673
|
}
|
|
11674
11674
|
function qb(r) {
|
|
11675
11675
|
let e = Wh(r);
|
|
@@ -11757,7 +11757,7 @@ function Jb(r, e, t) {
|
|
|
11757
11757
|
s = d;
|
|
11758
11758
|
}
|
|
11759
11759
|
let p = La(r.doc, i, l, F.empty);
|
|
11760
|
-
if (!p || p.from != i || p instanceof
|
|
11760
|
+
if (!p || p.from != i || p instanceof De && p.slice.size >= l - i)
|
|
11761
11761
|
return !1;
|
|
11762
11762
|
if (t) {
|
|
11763
11763
|
let d = r.tr.step(p);
|
|
@@ -11962,11 +11962,11 @@ function om(r, e, t, o) {
|
|
|
11962
11962
|
let p = !l && e.parent.canReplace(e.index(), e.index() + 1);
|
|
11963
11963
|
if (p && (a = (s = n.contentMatchAt(n.childCount)).findWrapping(i.type)) && s.matchType(a[0] || i.type).validEnd) {
|
|
11964
11964
|
if (t) {
|
|
11965
|
-
let u = e.pos + i.nodeSize, x =
|
|
11965
|
+
let u = e.pos + i.nodeSize, x = I.empty;
|
|
11966
11966
|
for (let w = a.length - 1; w >= 0; w--)
|
|
11967
|
-
x =
|
|
11968
|
-
x =
|
|
11969
|
-
let h = r.tr.step(new
|
|
11967
|
+
x = I.from(a[w].create(null, x));
|
|
11968
|
+
x = I.from(n.copy(x));
|
|
11969
|
+
let h = r.tr.step(new Le(e.pos - 1, u, e.pos, u, new F(x, 1, 0), a.length, !0)), g = h.doc.resolve(u + 2 * a.length);
|
|
11970
11970
|
g.nodeAfter && g.nodeAfter.type == n.type && Wr(h.doc, g.pos) && h.join(g.pos), t(h.scrollIntoView());
|
|
11971
11971
|
}
|
|
11972
11972
|
return !0;
|
|
@@ -11983,10 +11983,10 @@ function om(r, e, t, o) {
|
|
|
11983
11983
|
g++;
|
|
11984
11984
|
if (u.canReplace(u.childCount, u.childCount, h.content)) {
|
|
11985
11985
|
if (t) {
|
|
11986
|
-
let w =
|
|
11986
|
+
let w = I.empty;
|
|
11987
11987
|
for (let k = x.length - 1; k >= 0; k--)
|
|
11988
|
-
w =
|
|
11989
|
-
let E = r.tr.step(new
|
|
11988
|
+
w = I.from(x[k].copy(w));
|
|
11989
|
+
let E = r.tr.step(new Le(e.pos - x.length, e.pos + i.nodeSize, e.pos + g, e.pos + i.nodeSize - g, new F(w, x.length, 0), 0, !0));
|
|
11990
11990
|
t(E.scrollIntoView());
|
|
11991
11991
|
}
|
|
11992
11992
|
return !0;
|
|
@@ -12075,10 +12075,10 @@ function sf(r, e, t, o = null) {
|
|
|
12075
12075
|
return s ? (r && lf(r, e, s, n, t), !0) : !1;
|
|
12076
12076
|
}
|
|
12077
12077
|
function lf(r, e, t, o, n) {
|
|
12078
|
-
let i =
|
|
12078
|
+
let i = I.empty;
|
|
12079
12079
|
for (let d = t.length - 1; d >= 0; d--)
|
|
12080
|
-
i =
|
|
12081
|
-
r.step(new
|
|
12080
|
+
i = I.from(t[d].type.create(t[d].attrs, i));
|
|
12081
|
+
r.step(new Le(e.start - (o ? 2 : 0), e.end, e.start, e.end, new F(i, 0, 0), t.length, !0));
|
|
12082
12082
|
let a = 0;
|
|
12083
12083
|
for (let d = 0; d < t.length; d++)
|
|
12084
12084
|
t[d].type == n && (a = d + 1);
|
|
@@ -12095,7 +12095,7 @@ function pf(r) {
|
|
|
12095
12095
|
}
|
|
12096
12096
|
function df(r, e, t, o) {
|
|
12097
12097
|
let n = r.tr, i = o.end, a = o.$to.end(o.depth);
|
|
12098
|
-
i < a && (n.step(new
|
|
12098
|
+
i < a && (n.step(new Le(i - 1, a, i, a, new F(I.from(t.create(null, o.parent.copy())), 1, 0), 1, !0)), o = new Ui(n.doc.resolve(o.$from.pos), n.doc.resolve(a), o.depth));
|
|
12099
12099
|
const s = an(o);
|
|
12100
12100
|
if (s == null)
|
|
12101
12101
|
return !1;
|
|
@@ -12111,10 +12111,10 @@ function cf(r, e, t) {
|
|
|
12111
12111
|
if (o.mapping.map(t.end) != t.start + i.nodeAfter.nodeSize)
|
|
12112
12112
|
return !1;
|
|
12113
12113
|
let s = t.startIndex == 0, l = t.endIndex == n.childCount, p = i.node(-1), d = i.index(-1);
|
|
12114
|
-
if (!p.canReplace(d + (s ? 0 : 1), d + 1, a.content.append(l ?
|
|
12114
|
+
if (!p.canReplace(d + (s ? 0 : 1), d + 1, a.content.append(l ? I.empty : I.from(n))))
|
|
12115
12115
|
return !1;
|
|
12116
12116
|
let c = i.pos, m = c + a.nodeSize;
|
|
12117
|
-
return o.step(new
|
|
12117
|
+
return o.step(new Le(c - (s ? 1 : 0), m + (l ? 1 : 0), c + 1, m - 1, new F((s ? I.empty : I.from(n.copy(I.empty))).append(l ? I.empty : I.from(n.copy(I.empty))), s ? 0 : 1, l ? 0 : 1), s ? 0 : 1)), e(o.scrollIntoView()), !0;
|
|
12118
12118
|
}
|
|
12119
12119
|
function bf(r) {
|
|
12120
12120
|
return function(e, t) {
|
|
@@ -12128,8 +12128,8 @@ function bf(r) {
|
|
|
12128
12128
|
if (l.type != r)
|
|
12129
12129
|
return !1;
|
|
12130
12130
|
if (t) {
|
|
12131
|
-
let p = l.lastChild && l.lastChild.type == s.type, d =
|
|
12132
|
-
t(e.tr.step(new
|
|
12131
|
+
let p = l.lastChild && l.lastChild.type == s.type, d = I.from(p ? r.create() : null), c = new F(I.from(r.create(null, I.from(s.type.create(null, d)))), p ? 3 : 1, 0), m = i.start, u = i.end;
|
|
12132
|
+
t(e.tr.step(new Le(m - (p ? 3 : 1), u, m, u, c, 1, !0)).scrollIntoView());
|
|
12133
12133
|
}
|
|
12134
12134
|
return !0;
|
|
12135
12135
|
};
|
|
@@ -12312,7 +12312,7 @@ function im(r) {
|
|
|
12312
12312
|
});
|
|
12313
12313
|
}), e;
|
|
12314
12314
|
}
|
|
12315
|
-
function
|
|
12315
|
+
function _e(r, e) {
|
|
12316
12316
|
if (typeof r == "string") {
|
|
12317
12317
|
if (!e.nodes[r])
|
|
12318
12318
|
throw Error(`There is no node type named '${r}'. Maybe you forgot to add the extension?`);
|
|
@@ -12320,7 +12320,7 @@ function Ie(r, e) {
|
|
|
12320
12320
|
}
|
|
12321
12321
|
return r;
|
|
12322
12322
|
}
|
|
12323
|
-
function
|
|
12323
|
+
function je(...r) {
|
|
12324
12324
|
return r.filter((e) => !!e).reduce((e, t) => {
|
|
12325
12325
|
const o = { ...e };
|
|
12326
12326
|
return Object.entries(t).forEach(([n, i]) => {
|
|
@@ -12348,7 +12348,7 @@ function Fe(...r) {
|
|
|
12348
12348
|
function Zs(r, e) {
|
|
12349
12349
|
return e.filter((t) => t.type === r.type.name).filter((t) => t.attribute.rendered).map((t) => t.attribute.renderHTML ? t.attribute.renderHTML(r.attrs) || {} : {
|
|
12350
12350
|
[t.name]: r.attrs[t.name]
|
|
12351
|
-
}).reduce((t, o) =>
|
|
12351
|
+
}).reduce((t, o) => je(t, o), {});
|
|
12352
12352
|
}
|
|
12353
12353
|
function am(r) {
|
|
12354
12354
|
return typeof r == "function";
|
|
@@ -12550,7 +12550,7 @@ function hi(r) {
|
|
|
12550
12550
|
}), d;
|
|
12551
12551
|
}
|
|
12552
12552
|
function yf(r) {
|
|
12553
|
-
const { editor: e, rules: t } = r, o = new
|
|
12553
|
+
const { editor: e, rules: t } = r, o = new Pe({
|
|
12554
12554
|
state: {
|
|
12555
12555
|
init() {
|
|
12556
12556
|
return null;
|
|
@@ -12562,7 +12562,7 @@ function yf(r) {
|
|
|
12562
12562
|
const l = n.getMeta("applyInputRules");
|
|
12563
12563
|
return !!l && setTimeout(() => {
|
|
12564
12564
|
let { text: d } = l;
|
|
12565
|
-
typeof d == "string" ? d = d : d = Fl(
|
|
12565
|
+
typeof d == "string" ? d = d : d = Fl(I.from(d), a.schema);
|
|
12566
12566
|
const { from: c } = l, m = c + d.length;
|
|
12567
12567
|
hi({
|
|
12568
12568
|
editor: e,
|
|
@@ -12763,7 +12763,7 @@ function Ef(r) {
|
|
|
12763
12763
|
return a = typeof ClipboardEvent < "u" ? new ClipboardEvent("paste") : null, h;
|
|
12764
12764
|
}
|
|
12765
12765
|
};
|
|
12766
|
-
return t.map((d) => new
|
|
12766
|
+
return t.map((d) => new Pe({
|
|
12767
12767
|
// we register a global drag handler to track the current drag source element
|
|
12768
12768
|
view(c) {
|
|
12769
12769
|
const m = (x) => {
|
|
@@ -12803,7 +12803,7 @@ function Ef(r) {
|
|
|
12803
12803
|
return;
|
|
12804
12804
|
if (E) {
|
|
12805
12805
|
let { text: O } = w;
|
|
12806
|
-
typeof O == "string" ? O = O : O = Fl(
|
|
12806
|
+
typeof O == "string" ? O = O : O = Fl(I.from(O), u.schema);
|
|
12807
12807
|
const { from: T } = w, P = T + O.length, z = Mf(O);
|
|
12808
12808
|
return l({
|
|
12809
12809
|
rule: d,
|
|
@@ -12950,7 +12950,7 @@ class Ho {
|
|
|
12950
12950
|
options: o.options,
|
|
12951
12951
|
storage: o.storage,
|
|
12952
12952
|
editor: e,
|
|
12953
|
-
type:
|
|
12953
|
+
type: _e(o.name, this.schema)
|
|
12954
12954
|
}, a = W(o, "addNodeView", i);
|
|
12955
12955
|
if (!a)
|
|
12956
12956
|
return [];
|
|
@@ -12993,7 +12993,7 @@ class Ho {
|
|
|
12993
12993
|
});
|
|
12994
12994
|
}
|
|
12995
12995
|
}
|
|
12996
|
-
class
|
|
12996
|
+
class He {
|
|
12997
12997
|
constructor(e = {}) {
|
|
12998
12998
|
this.type = "extension", this.name = "extension", this.parent = null, this.child = null, this.config = {
|
|
12999
12999
|
name: this.name,
|
|
@@ -13009,7 +13009,7 @@ class je {
|
|
|
13009
13009
|
})) || {};
|
|
13010
13010
|
}
|
|
13011
13011
|
static create(e = {}) {
|
|
13012
|
-
return new
|
|
13012
|
+
return new He(e);
|
|
13013
13013
|
}
|
|
13014
13014
|
configure(e = {}) {
|
|
13015
13015
|
const t = this.extend({
|
|
@@ -13019,7 +13019,7 @@ class je {
|
|
|
13019
13019
|
return t.name = this.name, t.parent = this.parent, t;
|
|
13020
13020
|
}
|
|
13021
13021
|
extend(e = {}) {
|
|
13022
|
-
const t = new
|
|
13022
|
+
const t = new He({ ...this.config, ...e });
|
|
13023
13023
|
return t.parent = this, this.child = t, t.name = e.name ? e.name : t.parent.name, e.defaultOptions && Object.keys(e.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`), t.options = oe(W(t, "addOptions", {
|
|
13024
13024
|
name: t.name
|
|
13025
13025
|
})), t.storage = oe(W(t, "addStorage", {
|
|
@@ -13051,7 +13051,7 @@ function sm(r, e, t) {
|
|
|
13051
13051
|
function Hl(r) {
|
|
13052
13052
|
return Object.fromEntries(Object.entries(r.nodes).filter(([, e]) => e.spec.toText).map(([e, t]) => [e, t.spec.toText]));
|
|
13053
13053
|
}
|
|
13054
|
-
const Of =
|
|
13054
|
+
const Of = He.create({
|
|
13055
13055
|
name: "clipboardTextSerializer",
|
|
13056
13056
|
addOptions() {
|
|
13057
13057
|
return {
|
|
@@ -13060,7 +13060,7 @@ const Of = je.create({
|
|
|
13060
13060
|
},
|
|
13061
13061
|
addProseMirrorPlugins() {
|
|
13062
13062
|
return [
|
|
13063
|
-
new
|
|
13063
|
+
new Pe({
|
|
13064
13064
|
key: new Ze("clipboardTextSerializer"),
|
|
13065
13065
|
props: {
|
|
13066
13066
|
clipboardTextSerializer: () => {
|
|
@@ -13114,7 +13114,7 @@ const Of = je.create({
|
|
|
13114
13114
|
}
|
|
13115
13115
|
return !1;
|
|
13116
13116
|
}, _f = (r) => ({ tr: e, state: t, dispatch: o }) => {
|
|
13117
|
-
const n =
|
|
13117
|
+
const n = _e(r, t.schema), i = e.selection.$anchor;
|
|
13118
13118
|
for (let a = i.depth; a > 0; a -= 1)
|
|
13119
13119
|
if (i.node(a).type === n) {
|
|
13120
13120
|
if (o) {
|
|
@@ -13243,7 +13243,7 @@ function wi(r) {
|
|
|
13243
13243
|
return dm(t);
|
|
13244
13244
|
}
|
|
13245
13245
|
function Hn(r, e, t) {
|
|
13246
|
-
if (r instanceof Rr || r instanceof
|
|
13246
|
+
if (r instanceof Rr || r instanceof I)
|
|
13247
13247
|
return r;
|
|
13248
13248
|
t = {
|
|
13249
13249
|
slice: !0,
|
|
@@ -13254,7 +13254,7 @@ function Hn(r, e, t) {
|
|
|
13254
13254
|
if (o)
|
|
13255
13255
|
try {
|
|
13256
13256
|
if (Array.isArray(r) && r.length > 0)
|
|
13257
|
-
return
|
|
13257
|
+
return I.fromArray(r.map((s) => e.nodeFromJSON(s)));
|
|
13258
13258
|
const a = e.nodeFromJSON(r);
|
|
13259
13259
|
return t.errorOnInvalidContent && a.check(), a;
|
|
13260
13260
|
} catch (i) {
|
|
@@ -13296,7 +13296,7 @@ function Kf(r, e, t) {
|
|
|
13296
13296
|
if (o < e)
|
|
13297
13297
|
return;
|
|
13298
13298
|
const n = r.steps[o];
|
|
13299
|
-
if (!(n instanceof
|
|
13299
|
+
if (!(n instanceof De || n instanceof Le))
|
|
13300
13300
|
return;
|
|
13301
13301
|
const i = r.mapping.maps[o];
|
|
13302
13302
|
let a = 0;
|
|
@@ -13355,7 +13355,7 @@ const Gf = (r) => !("type" in r), Jf = (r, e, t) => ({ tr: o, dispatch: n, edito
|
|
|
13355
13355
|
if (m) {
|
|
13356
13356
|
if (Array.isArray(e))
|
|
13357
13357
|
h = e.map((g) => g.text || "").join("");
|
|
13358
|
-
else if (e instanceof
|
|
13358
|
+
else if (e instanceof I) {
|
|
13359
13359
|
let g = "";
|
|
13360
13360
|
e.forEach((w) => {
|
|
13361
13361
|
w.text && (g += w.text);
|
|
@@ -13425,7 +13425,7 @@ const i0 = (r) => ({ editor: e, view: t, tr: o, dispatch: n }) => {
|
|
|
13425
13425
|
}), !0;
|
|
13426
13426
|
};
|
|
13427
13427
|
function Vn(r, e, t = {}) {
|
|
13428
|
-
const { from: o, to: n, empty: i } = r.selection, a = e ?
|
|
13428
|
+
const { from: o, to: n, empty: i } = r.selection, a = e ? _e(e, r.schema) : null, s = [];
|
|
13429
13429
|
r.doc.nodesBetween(o, n, (c, m) => {
|
|
13430
13430
|
if (c.isText)
|
|
13431
13431
|
return;
|
|
@@ -13440,10 +13440,10 @@ function Vn(r, e, t = {}) {
|
|
|
13440
13440
|
return i ? !!p.length : p.reduce((c, m) => c + m.to - m.from, 0) >= l;
|
|
13441
13441
|
}
|
|
13442
13442
|
const a0 = (r, e = {}) => ({ state: t, dispatch: o }) => {
|
|
13443
|
-
const n =
|
|
13443
|
+
const n = _e(r, t.schema);
|
|
13444
13444
|
return Vn(t, n, e) ? Yh(t, o) : !1;
|
|
13445
13445
|
}, s0 = () => ({ state: r, dispatch: e }) => rm(r, e), l0 = (r) => ({ state: e, dispatch: t }) => {
|
|
13446
|
-
const o =
|
|
13446
|
+
const o = _e(r, e.schema);
|
|
13447
13447
|
return pf(o)(e, t);
|
|
13448
13448
|
}, p0 = () => ({ state: r, dispatch: e }) => em(r, e);
|
|
13449
13449
|
function Wa(r, e) {
|
|
@@ -13456,7 +13456,7 @@ function Md(r, e) {
|
|
|
13456
13456
|
const d0 = (r, e) => ({ tr: t, state: o, dispatch: n }) => {
|
|
13457
13457
|
let i = null, a = null;
|
|
13458
13458
|
const s = Wa(typeof r == "string" ? r : r.name, o.schema);
|
|
13459
|
-
return s ? (s === "node" && (i =
|
|
13459
|
+
return s ? (s === "node" && (i = _e(r, o.schema)), s === "mark" && (a = qr(r, o.schema)), n && t.selection.ranges.forEach((l) => {
|
|
13460
13460
|
o.doc.nodesBetween(l.$from.pos, l.$to.pos, (p, d) => {
|
|
13461
13461
|
i && i === p.type && t.setNodeMarkup(d, void 0, Md(p.attrs, e)), a && p.marks.length && p.marks.forEach((c) => {
|
|
13462
13462
|
a === c.type && t.addMark(d, d + p.nodeSize, a.create(Md(c.attrs, e)));
|
|
@@ -13547,7 +13547,7 @@ function mm(r, e) {
|
|
|
13547
13547
|
return sm(r, t, e);
|
|
13548
13548
|
}
|
|
13549
13549
|
function S0(r, e) {
|
|
13550
|
-
const t =
|
|
13550
|
+
const t = _e(e, r.schema), { from: o, to: n } = r.selection, i = [];
|
|
13551
13551
|
r.doc.nodesBetween(o, n, (s) => {
|
|
13552
13552
|
i.push(s);
|
|
13553
13553
|
});
|
|
@@ -13747,7 +13747,7 @@ const B0 = (r, e = {}) => ({ tr: t, state: o, dispatch: n }) => {
|
|
|
13747
13747
|
});
|
|
13748
13748
|
return O0(o, t, l);
|
|
13749
13749
|
}, P0 = (r, e) => ({ tr: t }) => (t.setMeta(r, e), !0), A0 = (r, e = {}) => ({ state: t, dispatch: o, chain: n }) => {
|
|
13750
|
-
const i =
|
|
13750
|
+
const i = _e(r, t.schema);
|
|
13751
13751
|
let a;
|
|
13752
13752
|
return t.selection.$anchor.sameParent(t.selection.$head) && (a = t.selection.$anchor.parent.attrs), i.isTextblock ? n().command(({ commands: s }) => wd(i, { ...a, ...e })(t) ? !0 : s.clearNodes()).command(({ state: s }) => wd(i, { ...a, ...e })(s, o)).run() : (console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'), !1);
|
|
13753
13753
|
}, N0 = (r) => ({ tr: e, dispatch: t }) => {
|
|
@@ -13763,7 +13763,7 @@ const B0 = (r, e = {}) => ({ tr: t, state: o, dispatch: n }) => {
|
|
|
13763
13763
|
}
|
|
13764
13764
|
return !0;
|
|
13765
13765
|
}, L0 = (r) => ({ state: e, dispatch: t }) => {
|
|
13766
|
-
const o =
|
|
13766
|
+
const o = _e(r, e.schema);
|
|
13767
13767
|
return bf(o)(e, t);
|
|
13768
13768
|
};
|
|
13769
13769
|
function Td(r, e) {
|
|
@@ -13801,7 +13801,7 @@ const I0 = ({ keepMarks: r = !0 } = {}) => ({ tr: e, state: t, dispatch: o, edit
|
|
|
13801
13801
|
return x;
|
|
13802
13802
|
}, _0 = (r, e = {}) => ({ tr: t, state: o, dispatch: n, editor: i }) => {
|
|
13803
13803
|
var a;
|
|
13804
|
-
const s =
|
|
13804
|
+
const s = _e(r, o.schema), { $from: l, $to: p } = o.selection, d = o.selection.node;
|
|
13805
13805
|
if (d && d.isBlock || l.depth < 2 || !l.sameParent(p))
|
|
13806
13806
|
return !1;
|
|
13807
13807
|
const c = l.node(-1);
|
|
@@ -13812,15 +13812,15 @@ const I0 = ({ keepMarks: r = !0 } = {}) => ({ tr: e, state: t, dispatch: o, edit
|
|
|
13812
13812
|
if (l.depth === 2 || l.node(-3).type !== s || l.index(-2) !== l.node(-2).childCount - 1)
|
|
13813
13813
|
return !1;
|
|
13814
13814
|
if (n) {
|
|
13815
|
-
let w =
|
|
13815
|
+
let w = I.empty;
|
|
13816
13816
|
const E = l.index(-1) ? 1 : l.index(-2) ? 2 : 3;
|
|
13817
13817
|
for (let z = l.depth - E; z >= l.depth - 3; z -= 1)
|
|
13818
|
-
w =
|
|
13818
|
+
w = I.from(l.node(z).copy(w));
|
|
13819
13819
|
const k = l.indexAfter(-1) < l.node(-2).childCount ? 1 : l.indexAfter(-2) < l.node(-3).childCount ? 2 : 3, f = {
|
|
13820
13820
|
...Ai(m, l.node().type.name, l.node().attrs),
|
|
13821
13821
|
...e
|
|
13822
13822
|
}, O = ((a = s.contentMatch.defaultType) === null || a === void 0 ? void 0 : a.createAndFill(f)) || void 0;
|
|
13823
|
-
w = w.append(
|
|
13823
|
+
w = w.append(I.from(s.createAndFill(null, O) || void 0));
|
|
13824
13824
|
const T = l.before(l.depth - (E - 1));
|
|
13825
13825
|
t.replace(T, l.after(-k), new F(w, 4 - E, 0));
|
|
13826
13826
|
let P = -1;
|
|
@@ -13873,7 +13873,7 @@ const I0 = ({ keepMarks: r = !0 } = {}) => ({ tr: e, state: t, dispatch: o, edit
|
|
|
13873
13873
|
const n = r.doc.nodeAt(o);
|
|
13874
13874
|
return t.node.type === (n == null ? void 0 : n.type) && Wr(r.doc, o) && r.join(o), !0;
|
|
13875
13875
|
}, R0 = (r, e, t, o = {}) => ({ editor: n, tr: i, state: a, dispatch: s, chain: l, commands: p, can: d }) => {
|
|
13876
|
-
const { extensions: c, splittableMarks: m } = n.extensionManager, u =
|
|
13876
|
+
const { extensions: c, splittableMarks: m } = n.extensionManager, u = _e(r, a.schema), x = _e(e, a.schema), { selection: h, storedMarks: g } = a, { $from: w, $to: E } = h, k = w.blockRange(E), f = g || h.$to.parentOffset && h.$from.marks();
|
|
13877
13877
|
if (!k)
|
|
13878
13878
|
return !1;
|
|
13879
13879
|
const O = ql((T) => Ed(T.type.name, c))(h);
|
|
@@ -13891,11 +13891,11 @@ const I0 = ({ keepMarks: r = !0 } = {}) => ({ tr: e, state: t, dispatch: o, edit
|
|
|
13891
13891
|
const { extendEmptyMarkRange: i = !1 } = t, a = qr(r, o.schema);
|
|
13892
13892
|
return tl(o, a, e) ? n.unsetMark(a, { extendEmptyMarkRange: i }) : n.setMark(a, e);
|
|
13893
13893
|
}, z0 = (r, e, t = {}) => ({ state: o, commands: n }) => {
|
|
13894
|
-
const i =
|
|
13894
|
+
const i = _e(r, o.schema), a = _e(e, o.schema), s = Vn(o, i, t);
|
|
13895
13895
|
let l;
|
|
13896
13896
|
return o.selection.$anchor.sameParent(o.selection.$head) && (l = o.selection.$anchor.parent.attrs), s ? n.setNode(a, l) : n.setNode(i, { ...l, ...t });
|
|
13897
13897
|
}, F0 = (r, e = {}) => ({ state: t, commands: o }) => {
|
|
13898
|
-
const n =
|
|
13898
|
+
const n = _e(r, t.schema);
|
|
13899
13899
|
return Vn(t, n, e) ? o.lift(n) : o.wrapIn(n, e);
|
|
13900
13900
|
}, j0 = () => ({ state: r, dispatch: e }) => {
|
|
13901
13901
|
const t = r.plugins;
|
|
@@ -13939,7 +13939,7 @@ const I0 = ({ keepMarks: r = !0 } = {}) => ({ tr: e, state: t, dispatch: o, edit
|
|
|
13939
13939
|
}, W0 = (r, e = {}) => ({ tr: t, state: o, dispatch: n }) => {
|
|
13940
13940
|
let i = null, a = null;
|
|
13941
13941
|
const s = Wa(typeof r == "string" ? r : r.name, o.schema);
|
|
13942
|
-
return s ? (s === "node" && (i =
|
|
13942
|
+
return s ? (s === "node" && (i = _e(r, o.schema)), s === "mark" && (a = qr(r, o.schema)), n && t.selection.ranges.forEach((l) => {
|
|
13943
13943
|
const p = l.$from.pos, d = l.$to.pos;
|
|
13944
13944
|
let c, m, u, x;
|
|
13945
13945
|
t.selection.empty ? o.doc.nodesBetween(p, d, (h, g) => {
|
|
@@ -13968,10 +13968,10 @@ const I0 = ({ keepMarks: r = !0 } = {}) => ({ tr: e, state: t, dispatch: o, edit
|
|
|
13968
13968
|
}));
|
|
13969
13969
|
}), !0) : !1;
|
|
13970
13970
|
}, U0 = (r, e = {}) => ({ state: t, dispatch: o }) => {
|
|
13971
|
-
const n =
|
|
13971
|
+
const n = _e(r, t.schema);
|
|
13972
13972
|
return nf(n, e)(t, o);
|
|
13973
13973
|
}, q0 = (r, e = {}) => ({ state: t, dispatch: o }) => {
|
|
13974
|
-
const n =
|
|
13974
|
+
const n = _e(r, t.schema);
|
|
13975
13975
|
return af(n, e)(t, o);
|
|
13976
13976
|
};
|
|
13977
13977
|
var K0 = /* @__PURE__ */ Object.freeze({
|
|
@@ -14035,18 +14035,18 @@ var K0 = /* @__PURE__ */ Object.freeze({
|
|
|
14035
14035
|
wrapIn: U0,
|
|
14036
14036
|
wrapInList: q0
|
|
14037
14037
|
});
|
|
14038
|
-
const G0 =
|
|
14038
|
+
const G0 = He.create({
|
|
14039
14039
|
name: "commands",
|
|
14040
14040
|
addCommands() {
|
|
14041
14041
|
return {
|
|
14042
14042
|
...K0
|
|
14043
14043
|
};
|
|
14044
14044
|
}
|
|
14045
|
-
}), J0 =
|
|
14045
|
+
}), J0 = He.create({
|
|
14046
14046
|
name: "drop",
|
|
14047
14047
|
addProseMirrorPlugins() {
|
|
14048
14048
|
return [
|
|
14049
|
-
new
|
|
14049
|
+
new Pe({
|
|
14050
14050
|
key: new Ze("tiptapDrop"),
|
|
14051
14051
|
props: {
|
|
14052
14052
|
handleDrop: (r, e, t, o) => {
|
|
@@ -14061,11 +14061,11 @@ const G0 = je.create({
|
|
|
14061
14061
|
})
|
|
14062
14062
|
];
|
|
14063
14063
|
}
|
|
14064
|
-
}), Y0 =
|
|
14064
|
+
}), Y0 = He.create({
|
|
14065
14065
|
name: "editable",
|
|
14066
14066
|
addProseMirrorPlugins() {
|
|
14067
14067
|
return [
|
|
14068
|
-
new
|
|
14068
|
+
new Pe({
|
|
14069
14069
|
key: new Ze("editable"),
|
|
14070
14070
|
props: {
|
|
14071
14071
|
editable: () => this.editor.options.editable
|
|
@@ -14073,12 +14073,12 @@ const G0 = je.create({
|
|
|
14073
14073
|
})
|
|
14074
14074
|
];
|
|
14075
14075
|
}
|
|
14076
|
-
}), X0 = new Ze("focusEvents"), Q0 =
|
|
14076
|
+
}), X0 = new Ze("focusEvents"), Q0 = He.create({
|
|
14077
14077
|
name: "focusEvents",
|
|
14078
14078
|
addProseMirrorPlugins() {
|
|
14079
14079
|
const { editor: r } = this;
|
|
14080
14080
|
return [
|
|
14081
|
-
new
|
|
14081
|
+
new Pe({
|
|
14082
14082
|
key: X0,
|
|
14083
14083
|
props: {
|
|
14084
14084
|
handleDOMEvents: {
|
|
@@ -14097,7 +14097,7 @@ const G0 = je.create({
|
|
|
14097
14097
|
})
|
|
14098
14098
|
];
|
|
14099
14099
|
}
|
|
14100
|
-
}), Z0 =
|
|
14100
|
+
}), Z0 = He.create({
|
|
14101
14101
|
name: "keymap",
|
|
14102
14102
|
addKeyboardShortcuts() {
|
|
14103
14103
|
const r = () => this.editor.commands.first(({ commands: a }) => [
|
|
@@ -14151,7 +14151,7 @@ const G0 = je.create({
|
|
|
14151
14151
|
// to a paragraph if necessary.
|
|
14152
14152
|
// This is an alternative to ProseMirror's `AllSelection`, which doesn’t work well
|
|
14153
14153
|
// with many other commands.
|
|
14154
|
-
new
|
|
14154
|
+
new Pe({
|
|
14155
14155
|
key: new Ze("clearDocument"),
|
|
14156
14156
|
appendTransaction: (r, e, t) => {
|
|
14157
14157
|
if (r.some((h) => h.getMeta("composition")))
|
|
@@ -14175,11 +14175,11 @@ const G0 = je.create({
|
|
|
14175
14175
|
})
|
|
14176
14176
|
];
|
|
14177
14177
|
}
|
|
14178
|
-
}), e1 =
|
|
14178
|
+
}), e1 = He.create({
|
|
14179
14179
|
name: "paste",
|
|
14180
14180
|
addProseMirrorPlugins() {
|
|
14181
14181
|
return [
|
|
14182
|
-
new
|
|
14182
|
+
new Pe({
|
|
14183
14183
|
key: new Ze("tiptapPaste"),
|
|
14184
14184
|
props: {
|
|
14185
14185
|
handlePaste: (r, e, t) => {
|
|
@@ -14193,11 +14193,11 @@ const G0 = je.create({
|
|
|
14193
14193
|
})
|
|
14194
14194
|
];
|
|
14195
14195
|
}
|
|
14196
|
-
}), t1 =
|
|
14196
|
+
}), t1 = He.create({
|
|
14197
14197
|
name: "tabindex",
|
|
14198
14198
|
addProseMirrorPlugins() {
|
|
14199
14199
|
return [
|
|
14200
|
-
new
|
|
14200
|
+
new Pe({
|
|
14201
14201
|
key: new Ze("tabindex"),
|
|
14202
14202
|
props: {
|
|
14203
14203
|
attributes: () => this.editor.isEditable ? { tabindex: "0" } : {}
|
|
@@ -15166,27 +15166,27 @@ function Pd(r) {
|
|
|
15166
15166
|
}
|
|
15167
15167
|
if (n === ot || (n === rt || n === Ct) && i === Un) {
|
|
15168
15168
|
k = Mt;
|
|
15169
|
-
var
|
|
15169
|
+
var N = c && T === O && O.visualViewport ? O.visualViewport.width : (
|
|
15170
15170
|
// $FlowFixMe[prop-missing]
|
|
15171
15171
|
T[z]
|
|
15172
15172
|
);
|
|
15173
|
-
u -=
|
|
15173
|
+
u -= N - o.width, u *= l ? 1 : -1;
|
|
15174
15174
|
}
|
|
15175
15175
|
}
|
|
15176
|
-
var
|
|
15176
|
+
var L = Object.assign({
|
|
15177
15177
|
position: s
|
|
15178
|
-
}, p && O1),
|
|
15178
|
+
}, p && O1), _ = d === !0 ? B1({
|
|
15179
15179
|
x: u,
|
|
15180
15180
|
y: h
|
|
15181
15181
|
}, ct(t)) : {
|
|
15182
15182
|
x: u,
|
|
15183
15183
|
y: h
|
|
15184
15184
|
};
|
|
15185
|
-
if (u =
|
|
15185
|
+
if (u = _.x, h = _.y, l) {
|
|
15186
15186
|
var q;
|
|
15187
|
-
return Object.assign({},
|
|
15187
|
+
return Object.assign({}, L, (q = {}, q[f] = E ? "0" : "", q[k] = w ? "0" : "", q.transform = (O.devicePixelRatio || 1) <= 1 ? "translate(" + u + "px, " + h + "px)" : "translate3d(" + u + "px, " + h + "px, 0)", q));
|
|
15188
15188
|
}
|
|
15189
|
-
return Object.assign({},
|
|
15189
|
+
return Object.assign({}, L, (e = {}, e[f] = E ? h + "px" : "", e[k] = w ? u + "px" : "", e.transform = "", e));
|
|
15190
15190
|
}
|
|
15191
15191
|
function P1(r) {
|
|
15192
15192
|
var e = r.state, t = r.options, o = t.gpuAcceleration, n = o === void 0 ? !0 : o, i = t.adaptive, a = i === void 0 ? !0 : i, s = t.roundOffsets, l = s === void 0 ? !0 : s, p = {
|
|
@@ -15390,20 +15390,20 @@ function qn(r, e) {
|
|
|
15390
15390
|
reference: T,
|
|
15391
15391
|
element: k,
|
|
15392
15392
|
placement: n
|
|
15393
|
-
}), z = il(Object.assign({}, k, P)), j = m === cn ? z : T,
|
|
15393
|
+
}), z = il(Object.assign({}, k, P)), j = m === cn ? z : T, N = {
|
|
15394
15394
|
top: O.top - j.top + w.top,
|
|
15395
15395
|
bottom: j.bottom - O.bottom + w.bottom,
|
|
15396
15396
|
left: O.left - j.left + w.left,
|
|
15397
15397
|
right: j.right - O.right + w.right
|
|
15398
|
-
},
|
|
15399
|
-
if (m === cn &&
|
|
15400
|
-
var
|
|
15401
|
-
Object.keys(
|
|
15402
|
-
var
|
|
15403
|
-
|
|
15398
|
+
}, L = r.modifiersData.offset;
|
|
15399
|
+
if (m === cn && L) {
|
|
15400
|
+
var _ = L[n];
|
|
15401
|
+
Object.keys(N).forEach(function(q) {
|
|
15402
|
+
var se = [Mt, Ct].indexOf(q) >= 0 ? 1 : -1, ue = [rt, Ct].indexOf(q) >= 0 ? "y" : "x";
|
|
15403
|
+
N[q] += _[ue] * se;
|
|
15404
15404
|
});
|
|
15405
15405
|
}
|
|
15406
|
-
return
|
|
15406
|
+
return N;
|
|
15407
15407
|
}
|
|
15408
15408
|
function j1(r, e) {
|
|
15409
15409
|
e === void 0 && (e = {});
|
|
@@ -15443,23 +15443,23 @@ function V1(r) {
|
|
|
15443
15443
|
flipVariations: x,
|
|
15444
15444
|
allowedAutoPlacements: h
|
|
15445
15445
|
}) : at);
|
|
15446
|
-
}, []), O = e.rects.reference, T = e.rects.popper, P = /* @__PURE__ */ new Map(), z = !0, j = f[0],
|
|
15447
|
-
var
|
|
15448
|
-
placement:
|
|
15446
|
+
}, []), O = e.rects.reference, T = e.rects.popper, P = /* @__PURE__ */ new Map(), z = !0, j = f[0], N = 0; N < f.length; N++) {
|
|
15447
|
+
var L = f[N], _ = qt(L), q = rn(L) === Zo, se = [rt, Ct].indexOf(_) >= 0, ue = se ? "width" : "height", de = qn(e, {
|
|
15448
|
+
placement: L,
|
|
15449
15449
|
boundary: d,
|
|
15450
15450
|
rootBoundary: c,
|
|
15451
15451
|
altBoundary: m,
|
|
15452
15452
|
padding: p
|
|
15453
|
-
}),
|
|
15454
|
-
O[ue] > T[ue] && (
|
|
15455
|
-
var
|
|
15456
|
-
if (i &&
|
|
15453
|
+
}), ne = se ? q ? Mt : ot : q ? Ct : rt;
|
|
15454
|
+
O[ue] > T[ue] && (ne = Ni(ne));
|
|
15455
|
+
var K = Ni(ne), re = [];
|
|
15456
|
+
if (i && re.push(de[_] <= 0), s && re.push(de[ne] <= 0, de[K] <= 0), re.every(function(Et) {
|
|
15457
15457
|
return Et;
|
|
15458
15458
|
})) {
|
|
15459
|
-
j =
|
|
15459
|
+
j = L, z = !1;
|
|
15460
15460
|
break;
|
|
15461
15461
|
}
|
|
15462
|
-
P.set(
|
|
15462
|
+
P.set(L, re);
|
|
15463
15463
|
}
|
|
15464
15464
|
if (z)
|
|
15465
15465
|
for (var it = x ? 3 : 1, Qt = function(at) {
|
|
@@ -15579,29 +15579,29 @@ function Z1(r) {
|
|
|
15579
15579
|
altBoundary: d
|
|
15580
15580
|
}), w = qt(e.placement), E = rn(e.placement), k = !E, f = Ql(w), O = Q1(f), T = e.modifiersData.popperOffsets, P = e.rects.reference, z = e.rects.popper, j = typeof h == "function" ? h(Object.assign({}, e.rects, {
|
|
15581
15581
|
placement: e.placement
|
|
15582
|
-
})) : h,
|
|
15582
|
+
})) : h, N = typeof j == "number" ? {
|
|
15583
15583
|
mainAxis: j,
|
|
15584
15584
|
altAxis: j
|
|
15585
15585
|
} : Object.assign({
|
|
15586
15586
|
mainAxis: 0,
|
|
15587
15587
|
altAxis: 0
|
|
15588
|
-
}, j),
|
|
15588
|
+
}, j), L = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, _ = {
|
|
15589
15589
|
x: 0,
|
|
15590
15590
|
y: 0
|
|
15591
15591
|
};
|
|
15592
15592
|
if (T) {
|
|
15593
15593
|
if (i) {
|
|
15594
|
-
var q,
|
|
15594
|
+
var q, se = f === "y" ? rt : ot, ue = f === "y" ? Ct : Mt, de = f === "y" ? "height" : "width", ne = T[f], K = ne + g[se], re = ne - g[ue], it = u ? -z[de] / 2 : 0, Qt = E === Zo ? P[de] : z[de], bt = E === Zo ? -z[de] : -P[de], Zt = e.elements.arrow, Et = u && Zt ? Xl(Zt) : {
|
|
15595
15595
|
width: 0,
|
|
15596
15596
|
height: 0
|
|
15597
|
-
}, at = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : km(), Tt = at[
|
|
15598
|
-
T[f] = yr,
|
|
15597
|
+
}, at = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : km(), Tt = at[se], It = at[ue], Ot = Cn(0, P[de], Et[de]), Bt = k ? P[de] / 2 - it - Ot - Tt - N.mainAxis : Qt - Ot - Tt - N.mainAxis, _t = k ? -P[de] / 2 + it + Ot + It + N.mainAxis : bt + Ot + It + N.mainAxis, er = e.elements.arrow && ni(e.elements.arrow), tr = er ? f === "y" ? er.clientTop || 0 : er.clientLeft || 0 : 0, fr = (q = L == null ? void 0 : L[f]) != null ? q : 0, Gr = ne + Bt - fr - tr, Jr = ne + _t - fr, yr = Cn(u ? ea(K, Gr) : K, ne, u ? wo(re, Jr) : re);
|
|
15598
|
+
T[f] = yr, _[f] = yr - ne;
|
|
15599
15599
|
}
|
|
15600
15600
|
if (s) {
|
|
15601
|
-
var wr, Yr = f === "x" ? rt : ot, Xr = f === "x" ? Ct : Mt, mt = T[O], Rt = O === "y" ? "height" : "width", Qr = mt + g[Yr], $t = mt - g[Xr], zt = [rt, ot].indexOf(w) !== -1, Zr = (wr =
|
|
15602
|
-
T[O] = ro,
|
|
15601
|
+
var wr, Yr = f === "x" ? rt : ot, Xr = f === "x" ? Ct : Mt, mt = T[O], Rt = O === "y" ? "height" : "width", Qr = mt + g[Yr], $t = mt - g[Xr], zt = [rt, ot].indexOf(w) !== -1, Zr = (wr = L == null ? void 0 : L[O]) != null ? wr : 0, eo = zt ? Qr : mt - P[Rt] - z[Rt] - Zr + N.altAxis, to = zt ? mt + P[Rt] + z[Rt] - Zr - N.altAxis : $t, ro = u && zt ? S1(eo, mt, to) : Cn(u ? eo : Qr, mt, u ? to : $t);
|
|
15602
|
+
T[O] = ro, _[O] = ro - mt;
|
|
15603
15603
|
}
|
|
15604
|
-
e.modifiersData[o] =
|
|
15604
|
+
e.modifiersData[o] = _;
|
|
15605
15605
|
}
|
|
15606
15606
|
}
|
|
15607
15607
|
const ey = {
|
|
@@ -15743,8 +15743,8 @@ function py(r) {
|
|
|
15743
15743
|
d.rects = {
|
|
15744
15744
|
reference: ny(E, ni(k), d.options.strategy === "fixed"),
|
|
15745
15745
|
popper: Xl(k)
|
|
15746
|
-
}, d.reset = !1, d.placement = d.options.placement, d.orderedModifiers.forEach(function(
|
|
15747
|
-
return d.modifiersData[
|
|
15746
|
+
}, d.reset = !1, d.placement = d.options.placement, d.orderedModifiers.forEach(function(N) {
|
|
15747
|
+
return d.modifiersData[N.name] = Object.assign({}, N.data);
|
|
15748
15748
|
});
|
|
15749
15749
|
for (var f = 0; f < d.orderedModifiers.length; f++) {
|
|
15750
15750
|
if (d.reset === !0) {
|
|
@@ -16205,57 +16205,57 @@ function zy(r, e) {
|
|
|
16205
16205
|
var z = E.map(function(B) {
|
|
16206
16206
|
return B.fn(f);
|
|
16207
16207
|
}), j = r.hasAttribute("aria-expanded");
|
|
16208
|
-
return er(), it(),
|
|
16208
|
+
return er(), it(), ne(), K("onCreate", [f]), t.showOnCreate && Qr(), T.addEventListener("mouseenter", function() {
|
|
16209
16209
|
f.props.interactive && f.state.isVisible && f.clearDelayTimeouts();
|
|
16210
16210
|
}), T.addEventListener("mouseleave", function() {
|
|
16211
|
-
f.props.interactive && f.props.trigger.indexOf("mouseenter") >= 0 &&
|
|
16211
|
+
f.props.interactive && f.props.trigger.indexOf("mouseenter") >= 0 && se().addEventListener("mousemove", x);
|
|
16212
16212
|
}), f;
|
|
16213
|
-
function
|
|
16213
|
+
function N() {
|
|
16214
16214
|
var B = f.props.touch;
|
|
16215
16215
|
return Array.isArray(B) ? B : [B, 0];
|
|
16216
16216
|
}
|
|
16217
|
-
function
|
|
16218
|
-
return
|
|
16217
|
+
function L() {
|
|
16218
|
+
return N()[0] === "hold";
|
|
16219
16219
|
}
|
|
16220
|
-
function
|
|
16220
|
+
function _() {
|
|
16221
16221
|
var B;
|
|
16222
16222
|
return !!((B = f.props.render) != null && B.$$tippy);
|
|
16223
16223
|
}
|
|
16224
16224
|
function q() {
|
|
16225
16225
|
return h || r;
|
|
16226
16226
|
}
|
|
16227
|
-
function
|
|
16227
|
+
function se() {
|
|
16228
16228
|
var B = q().parentNode;
|
|
16229
16229
|
return B ? Sy(B) : document;
|
|
16230
16230
|
}
|
|
16231
16231
|
function ue() {
|
|
16232
16232
|
return ll(T);
|
|
16233
16233
|
}
|
|
16234
|
-
function
|
|
16234
|
+
function de(B) {
|
|
16235
16235
|
return f.state.isMounted && !f.state.isVisible || Vt.isTouch || d && d.type === "focus" ? 0 : hs(f.props.delay, B ? 0 : 1, pt.delay);
|
|
16236
16236
|
}
|
|
16237
|
-
function
|
|
16237
|
+
function ne(B) {
|
|
16238
16238
|
B === void 0 && (B = !1), T.style.pointerEvents = f.props.interactive && !B ? "" : "none", T.style.zIndex = "" + f.props.zIndex;
|
|
16239
16239
|
}
|
|
16240
|
-
function
|
|
16241
|
-
if (J === void 0 && (J = !0), z.forEach(function(
|
|
16242
|
-
|
|
16240
|
+
function K(B, V, J) {
|
|
16241
|
+
if (J === void 0 && (J = !0), z.forEach(function(ie) {
|
|
16242
|
+
ie[B] && ie[B].apply(ie, V);
|
|
16243
16243
|
}), J) {
|
|
16244
16244
|
var le;
|
|
16245
16245
|
(le = f.props)[B].apply(le, V);
|
|
16246
16246
|
}
|
|
16247
16247
|
}
|
|
16248
|
-
function
|
|
16248
|
+
function re() {
|
|
16249
16249
|
var B = f.props.aria;
|
|
16250
16250
|
if (B.content) {
|
|
16251
16251
|
var V = "aria-" + B.content, J = T.id, le = zo(f.props.triggerTarget || r);
|
|
16252
|
-
le.forEach(function(
|
|
16253
|
-
var ke =
|
|
16252
|
+
le.forEach(function(ie) {
|
|
16253
|
+
var ke = ie.getAttribute(V);
|
|
16254
16254
|
if (f.state.isVisible)
|
|
16255
|
-
|
|
16255
|
+
ie.setAttribute(V, ke ? ke + " " + J : J);
|
|
16256
16256
|
else {
|
|
16257
16257
|
var Y = ke && ke.replace(J, "").trim();
|
|
16258
|
-
Y ?
|
|
16258
|
+
Y ? ie.setAttribute(V, Y) : ie.removeAttribute(V);
|
|
16259
16259
|
}
|
|
16260
16260
|
});
|
|
16261
16261
|
}
|
|
@@ -16269,7 +16269,7 @@ function zy(r, e) {
|
|
|
16269
16269
|
}
|
|
16270
16270
|
}
|
|
16271
16271
|
function Qt() {
|
|
16272
|
-
|
|
16272
|
+
se().removeEventListener("mousemove", x), ki = ki.filter(function(B) {
|
|
16273
16273
|
return B !== x;
|
|
16274
16274
|
});
|
|
16275
16275
|
}
|
|
@@ -16283,7 +16283,7 @@ function zy(r, e) {
|
|
|
16283
16283
|
if (Vt.isTouch || f.state.isVisible && f.props.trigger.indexOf("click") >= 0)
|
|
16284
16284
|
return;
|
|
16285
16285
|
} else
|
|
16286
|
-
|
|
16286
|
+
K("onClickOutside", [f, B]);
|
|
16287
16287
|
f.props.hideOnClick === !0 && (f.clearDelayTimeouts(), f.hide(), s = !0, setTimeout(function() {
|
|
16288
16288
|
s = !1;
|
|
16289
16289
|
}), f.state.isMounted || Tt());
|
|
@@ -16297,11 +16297,11 @@ function zy(r, e) {
|
|
|
16297
16297
|
l = !1;
|
|
16298
16298
|
}
|
|
16299
16299
|
function at() {
|
|
16300
|
-
var B =
|
|
16300
|
+
var B = se();
|
|
16301
16301
|
B.addEventListener("mousedown", bt, !0), B.addEventListener("touchend", bt, so), B.addEventListener("touchstart", Et, so), B.addEventListener("touchmove", Zt, so);
|
|
16302
16302
|
}
|
|
16303
16303
|
function Tt() {
|
|
16304
|
-
var B =
|
|
16304
|
+
var B = se();
|
|
16305
16305
|
B.removeEventListener("mousedown", bt, !0), B.removeEventListener("touchend", bt, so), B.removeEventListener("touchstart", Et, so), B.removeEventListener("touchmove", Zt, so);
|
|
16306
16306
|
}
|
|
16307
16307
|
function It(B, V) {
|
|
@@ -16314,8 +16314,8 @@ function zy(r, e) {
|
|
|
16314
16314
|
}
|
|
16315
16315
|
function Bt(B, V) {
|
|
16316
16316
|
var J = ue().box;
|
|
16317
|
-
function le(
|
|
16318
|
-
|
|
16317
|
+
function le(ie) {
|
|
16318
|
+
ie.target === J && (ys(J, "remove", le), V());
|
|
16319
16319
|
}
|
|
16320
16320
|
if (B === 0)
|
|
16321
16321
|
return V();
|
|
@@ -16324,9 +16324,9 @@ function zy(r, e) {
|
|
|
16324
16324
|
function _t(B, V, J) {
|
|
16325
16325
|
J === void 0 && (J = !1);
|
|
16326
16326
|
var le = zo(f.props.triggerTarget || r);
|
|
16327
|
-
le.forEach(function(
|
|
16328
|
-
|
|
16329
|
-
node:
|
|
16327
|
+
le.forEach(function(ie) {
|
|
16328
|
+
ie.addEventListener(B, V, J), u.push({
|
|
16329
|
+
node: ie,
|
|
16330
16330
|
eventType: B,
|
|
16331
16331
|
handler: V,
|
|
16332
16332
|
options: J
|
|
@@ -16334,7 +16334,7 @@ function zy(r, e) {
|
|
|
16334
16334
|
});
|
|
16335
16335
|
}
|
|
16336
16336
|
function er() {
|
|
16337
|
-
|
|
16337
|
+
L() && (_t("touchstart", fr, {
|
|
16338
16338
|
passive: !0
|
|
16339
16339
|
}), _t("touchend", Jr, {
|
|
16340
16340
|
passive: !0
|
|
@@ -16355,26 +16355,26 @@ function zy(r, e) {
|
|
|
16355
16355
|
}
|
|
16356
16356
|
function tr() {
|
|
16357
16357
|
u.forEach(function(B) {
|
|
16358
|
-
var V = B.node, J = B.eventType, le = B.handler,
|
|
16359
|
-
V.removeEventListener(J, le,
|
|
16358
|
+
var V = B.node, J = B.eventType, le = B.handler, ie = B.options;
|
|
16359
|
+
V.removeEventListener(J, le, ie);
|
|
16360
16360
|
}), u = [];
|
|
16361
16361
|
}
|
|
16362
16362
|
function fr(B) {
|
|
16363
16363
|
var V, J = !1;
|
|
16364
16364
|
if (!(!f.state.isEnabled || wr(B) || s)) {
|
|
16365
16365
|
var le = ((V = d) == null ? void 0 : V.type) === "focus";
|
|
16366
|
-
d = B, h = B.currentTarget, it(), !f.state.isVisible && wy(B) && ki.forEach(function(
|
|
16367
|
-
return
|
|
16366
|
+
d = B, h = B.currentTarget, it(), !f.state.isVisible && wy(B) && ki.forEach(function(ie) {
|
|
16367
|
+
return ie(B);
|
|
16368
16368
|
}), B.type === "click" && (f.props.trigger.indexOf("mouseenter") < 0 || a) && f.props.hideOnClick !== !1 && f.state.isVisible ? J = !0 : Qr(B), B.type === "click" && (a = !J), J && !le && $t(B);
|
|
16369
16369
|
}
|
|
16370
16370
|
}
|
|
16371
16371
|
function Gr(B) {
|
|
16372
16372
|
var V = B.target, J = q().contains(V) || T.contains(V);
|
|
16373
16373
|
if (!(B.type === "mousemove" && J)) {
|
|
16374
|
-
var le = Rt().concat(T).map(function(
|
|
16375
|
-
var ke, Y =
|
|
16374
|
+
var le = Rt().concat(T).map(function(ie) {
|
|
16375
|
+
var ke, Y = ie._tippy, A = (ke = Y.popperInstance) == null ? void 0 : ke.state;
|
|
16376
16376
|
return A ? {
|
|
16377
|
-
popperRect:
|
|
16377
|
+
popperRect: ie.getBoundingClientRect(),
|
|
16378
16378
|
popperState: A,
|
|
16379
16379
|
props: t
|
|
16380
16380
|
} : null;
|
|
@@ -16396,13 +16396,13 @@ function zy(r, e) {
|
|
|
16396
16396
|
f.props.trigger.indexOf("focusin") < 0 && B.target !== q() || f.props.interactive && B.relatedTarget && T.contains(B.relatedTarget) || $t(B);
|
|
16397
16397
|
}
|
|
16398
16398
|
function wr(B) {
|
|
16399
|
-
return Vt.isTouch ?
|
|
16399
|
+
return Vt.isTouch ? L() !== B.type.indexOf("touch") >= 0 : !1;
|
|
16400
16400
|
}
|
|
16401
16401
|
function Yr() {
|
|
16402
16402
|
Xr();
|
|
16403
|
-
var B = f.props, V = B.popperOptions, J = B.placement, le = B.offset,
|
|
16404
|
-
getBoundingClientRect:
|
|
16405
|
-
contextElement:
|
|
16403
|
+
var B = f.props, V = B.popperOptions, J = B.placement, le = B.offset, ie = B.getReferenceClientRect, ke = B.moveTransition, Y = _() ? ll(T).arrow : null, A = ie ? {
|
|
16404
|
+
getBoundingClientRect: ie,
|
|
16405
|
+
contextElement: ie.contextElement || q()
|
|
16406
16406
|
} : r, he = {
|
|
16407
16407
|
name: "$$tippy",
|
|
16408
16408
|
enabled: !0,
|
|
@@ -16410,7 +16410,7 @@ function zy(r, e) {
|
|
|
16410
16410
|
requires: ["computeStyles"],
|
|
16411
16411
|
fn: function(no) {
|
|
16412
16412
|
var rr = no.state;
|
|
16413
|
-
if (
|
|
16413
|
+
if (_()) {
|
|
16414
16414
|
var hp = ue(), pn = hp.box;
|
|
16415
16415
|
["placement", "reference-hidden", "escaped"].forEach(function(io) {
|
|
16416
16416
|
io === "placement" ? pn.setAttribute("data-placement", rr.placement) : rr.attributes.popper["data-popper-" + io] ? pn.setAttribute("data-" + io, "") : pn.removeAttribute("data-" + io);
|
|
@@ -16443,7 +16443,7 @@ function zy(r, e) {
|
|
|
16443
16443
|
adaptive: !ke
|
|
16444
16444
|
}
|
|
16445
16445
|
}, he];
|
|
16446
|
-
|
|
16446
|
+
_() && Y && ut.push({
|
|
16447
16447
|
name: "arrow",
|
|
16448
16448
|
options: {
|
|
16449
16449
|
element: Y,
|
|
@@ -16472,19 +16472,19 @@ function zy(r, e) {
|
|
|
16472
16472
|
return ta(T.querySelectorAll("[data-tippy-root]"));
|
|
16473
16473
|
}
|
|
16474
16474
|
function Qr(B) {
|
|
16475
|
-
f.clearDelayTimeouts(), B &&
|
|
16476
|
-
var V =
|
|
16477
|
-
Vt.isTouch && le === "hold" &&
|
|
16475
|
+
f.clearDelayTimeouts(), B && K("onTrigger", [f, B]), at();
|
|
16476
|
+
var V = de(!0), J = N(), le = J[0], ie = J[1];
|
|
16477
|
+
Vt.isTouch && le === "hold" && ie && (V = ie), V ? o = setTimeout(function() {
|
|
16478
16478
|
f.show();
|
|
16479
16479
|
}, V) : f.show();
|
|
16480
16480
|
}
|
|
16481
16481
|
function $t(B) {
|
|
16482
|
-
if (f.clearDelayTimeouts(),
|
|
16482
|
+
if (f.clearDelayTimeouts(), K("onUntrigger", [f, B]), !f.state.isVisible) {
|
|
16483
16483
|
Tt();
|
|
16484
16484
|
return;
|
|
16485
16485
|
}
|
|
16486
16486
|
if (!(f.props.trigger.indexOf("mouseenter") >= 0 && f.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(B.type) >= 0 && a)) {
|
|
16487
|
-
var V =
|
|
16487
|
+
var V = de(!1);
|
|
16488
16488
|
V ? n = setTimeout(function() {
|
|
16489
16489
|
f.state.isVisible && f.hide();
|
|
16490
16490
|
}, V) : i = requestAnimationFrame(function() {
|
|
@@ -16503,15 +16503,15 @@ function zy(r, e) {
|
|
|
16503
16503
|
}
|
|
16504
16504
|
function to(B) {
|
|
16505
16505
|
if (process.env.NODE_ENV !== "production" && pr(f.state.isDestroyed, Lo("setProps")), !f.state.isDestroyed) {
|
|
16506
|
-
|
|
16506
|
+
K("onBeforeUpdate", [f, B]), tr();
|
|
16507
16507
|
var V = f.props, J = Wd(r, Object.assign({}, V, zd(B), {
|
|
16508
16508
|
ignoreAttributes: !0
|
|
16509
16509
|
}));
|
|
16510
16510
|
f.props = J, er(), V.interactiveDebounce !== J.interactiveDebounce && (Qt(), x = Rd(Gr, J.interactiveDebounce)), V.triggerTarget && !J.triggerTarget ? zo(V.triggerTarget).forEach(function(le) {
|
|
16511
16511
|
le.removeAttribute("aria-expanded");
|
|
16512
|
-
}) : J.triggerTarget && r.removeAttribute("aria-expanded"), it(),
|
|
16512
|
+
}) : J.triggerTarget && r.removeAttribute("aria-expanded"), it(), ne(), P && P(V, J), f.popperInstance && (Yr(), Rt().forEach(function(le) {
|
|
16513
16513
|
requestAnimationFrame(le._tippy.popperInstance.forceUpdate);
|
|
16514
|
-
})),
|
|
16514
|
+
})), K("onAfterUpdate", [f, B]);
|
|
16515
16515
|
}
|
|
16516
16516
|
}
|
|
16517
16517
|
function ro(B) {
|
|
@@ -16521,21 +16521,21 @@ function zy(r, e) {
|
|
|
16521
16521
|
}
|
|
16522
16522
|
function pi() {
|
|
16523
16523
|
process.env.NODE_ENV !== "production" && pr(f.state.isDestroyed, Lo("show"));
|
|
16524
|
-
var B = f.state.isVisible, V = f.state.isDestroyed, J = !f.state.isEnabled, le = Vt.isTouch && !f.props.touch,
|
|
16525
|
-
if (!(B || V || J || le) && !q().hasAttribute("disabled") && (
|
|
16526
|
-
if (f.state.isVisible = !0,
|
|
16524
|
+
var B = f.state.isVisible, V = f.state.isDestroyed, J = !f.state.isEnabled, le = Vt.isTouch && !f.props.touch, ie = hs(f.props.duration, 0, pt.duration);
|
|
16525
|
+
if (!(B || V || J || le) && !q().hasAttribute("disabled") && (K("onShow", [f], !1), f.props.onShow(f) !== !1)) {
|
|
16526
|
+
if (f.state.isVisible = !0, _() && (T.style.visibility = "visible"), ne(), at(), f.state.isMounted || (T.style.transition = "none"), _()) {
|
|
16527
16527
|
var ke = ue(), Y = ke.box, A = ke.content;
|
|
16528
16528
|
fs([Y, A], 0);
|
|
16529
16529
|
}
|
|
16530
16530
|
m = function() {
|
|
16531
16531
|
var ut;
|
|
16532
16532
|
if (!(!f.state.isVisible || p)) {
|
|
16533
|
-
if (p = !0, T.offsetHeight, T.style.transition = f.props.moveTransition,
|
|
16533
|
+
if (p = !0, T.offsetHeight, T.style.transition = f.props.moveTransition, _() && f.props.animation) {
|
|
16534
16534
|
var oo = ue(), no = oo.box, rr = oo.content;
|
|
16535
|
-
fs([no, rr],
|
|
16535
|
+
fs([no, rr], ie), Fd([no, rr], "visible");
|
|
16536
16536
|
}
|
|
16537
|
-
|
|
16538
|
-
f.state.isShown = !0,
|
|
16537
|
+
re(), it(), $d(ws, f), (ut = f.popperInstance) == null || ut.forceUpdate(), K("onMount", [f]), f.props.animation && _() && Ot(ie, function() {
|
|
16538
|
+
f.state.isShown = !0, K("onShown", [f]);
|
|
16539
16539
|
});
|
|
16540
16540
|
}
|
|
16541
16541
|
}, mt();
|
|
@@ -16544,26 +16544,26 @@ function zy(r, e) {
|
|
|
16544
16544
|
function di() {
|
|
16545
16545
|
process.env.NODE_ENV !== "production" && pr(f.state.isDestroyed, Lo("hide"));
|
|
16546
16546
|
var B = !f.state.isVisible, V = f.state.isDestroyed, J = !f.state.isEnabled, le = hs(f.props.duration, 1, pt.duration);
|
|
16547
|
-
if (!(B || V || J) && (
|
|
16548
|
-
if (f.state.isVisible = !1, f.state.isShown = !1, p = !1, a = !1,
|
|
16549
|
-
var
|
|
16547
|
+
if (!(B || V || J) && (K("onHide", [f], !1), f.props.onHide(f) !== !1)) {
|
|
16548
|
+
if (f.state.isVisible = !1, f.state.isShown = !1, p = !1, a = !1, _() && (T.style.visibility = "hidden"), Qt(), Tt(), ne(!0), _()) {
|
|
16549
|
+
var ie = ue(), ke = ie.box, Y = ie.content;
|
|
16550
16550
|
f.props.animation && (fs([ke, Y], le), Fd([ke, Y], "hidden"));
|
|
16551
16551
|
}
|
|
16552
|
-
|
|
16552
|
+
re(), it(), f.props.animation ? _() && It(le, f.unmount) : f.unmount();
|
|
16553
16553
|
}
|
|
16554
16554
|
}
|
|
16555
16555
|
function ci(B) {
|
|
16556
|
-
process.env.NODE_ENV !== "production" && pr(f.state.isDestroyed, Lo("hideWithInteractivity")),
|
|
16556
|
+
process.env.NODE_ENV !== "production" && pr(f.state.isDestroyed, Lo("hideWithInteractivity")), se().addEventListener("mousemove", x), $d(ki, x), x(B);
|
|
16557
16557
|
}
|
|
16558
16558
|
function bi() {
|
|
16559
16559
|
process.env.NODE_ENV !== "production" && pr(f.state.isDestroyed, Lo("unmount")), f.state.isVisible && f.hide(), f.state.isMounted && (Xr(), Rt().forEach(function(B) {
|
|
16560
16560
|
B._tippy.unmount();
|
|
16561
16561
|
}), T.parentNode && T.parentNode.removeChild(T), ws = ws.filter(function(B) {
|
|
16562
16562
|
return B !== f;
|
|
16563
|
-
}), f.state.isMounted = !1,
|
|
16563
|
+
}), f.state.isMounted = !1, K("onHidden", [f]));
|
|
16564
16564
|
}
|
|
16565
16565
|
function Ja() {
|
|
16566
|
-
process.env.NODE_ENV !== "production" && pr(f.state.isDestroyed, Lo("destroy")), !f.state.isDestroyed && (f.clearDelayTimeouts(), f.unmount(), tr(), delete r._tippy, f.state.isDestroyed = !0,
|
|
16566
|
+
process.env.NODE_ENV !== "production" && pr(f.state.isDestroyed, Lo("destroy")), !f.state.isDestroyed && (f.clearDelayTimeouts(), f.unmount(), tr(), delete r._tippy, f.state.isDestroyed = !0, K("onDestroy", [f]));
|
|
16567
16567
|
}
|
|
16568
16568
|
}
|
|
16569
16569
|
function sn(r, e) {
|
|
@@ -16705,11 +16705,11 @@ class Fy {
|
|
|
16705
16705
|
!((e = this.tippy) === null || e === void 0) && e.popper.firstChild && this.tippy.popper.firstChild.removeEventListener("blur", this.tippyBlurHandler), (t = this.tippy) === null || t === void 0 || t.destroy(), this.element.removeEventListener("mousedown", this.mousedownHandler, { capture: !0 }), this.view.dom.removeEventListener("dragstart", this.dragstartHandler), this.editor.off("focus", this.focusHandler), this.editor.off("blur", this.blurHandler);
|
|
16706
16706
|
}
|
|
16707
16707
|
}
|
|
16708
|
-
const $m = (r) => new
|
|
16708
|
+
const $m = (r) => new Pe({
|
|
16709
16709
|
key: typeof r.pluginKey == "string" ? new Ze(r.pluginKey) : r.pluginKey,
|
|
16710
16710
|
view: (e) => new Fy({ view: e, ...r })
|
|
16711
16711
|
});
|
|
16712
|
-
|
|
16712
|
+
He.create({
|
|
16713
16713
|
name: "bubbleMenu",
|
|
16714
16714
|
addOptions() {
|
|
16715
16715
|
return {
|
|
@@ -16800,11 +16800,11 @@ class jy {
|
|
|
16800
16800
|
!((e = this.tippy) === null || e === void 0) && e.popper.firstChild && this.tippy.popper.firstChild.removeEventListener("blur", this.tippyBlurHandler), (t = this.tippy) === null || t === void 0 || t.destroy(), this.element.removeEventListener("mousedown", this.mousedownHandler, { capture: !0 }), this.editor.off("focus", this.focusHandler), this.editor.off("blur", this.blurHandler);
|
|
16801
16801
|
}
|
|
16802
16802
|
}
|
|
16803
|
-
const zm = (r) => new
|
|
16803
|
+
const zm = (r) => new Pe({
|
|
16804
16804
|
key: typeof r.pluginKey == "string" ? new Ze(r.pluginKey) : r.pluginKey,
|
|
16805
16805
|
view: (e) => new jy({ view: e, ...r })
|
|
16806
16806
|
});
|
|
16807
|
-
|
|
16807
|
+
He.create({
|
|
16808
16808
|
name: "floatingMenu",
|
|
16809
16809
|
addOptions() {
|
|
16810
16810
|
return {
|
|
@@ -17058,7 +17058,7 @@ const Wy = (r = {}) => {
|
|
|
17058
17058
|
];
|
|
17059
17059
|
},
|
|
17060
17060
|
renderHTML({ HTMLAttributes: r }) {
|
|
17061
|
-
return ["blockquote",
|
|
17061
|
+
return ["blockquote", je(this.options.HTMLAttributes, r), 0];
|
|
17062
17062
|
},
|
|
17063
17063
|
addCommands() {
|
|
17064
17064
|
return {
|
|
@@ -17107,7 +17107,7 @@ const Wy = (r = {}) => {
|
|
|
17107
17107
|
];
|
|
17108
17108
|
},
|
|
17109
17109
|
renderHTML({ HTMLAttributes: r }) {
|
|
17110
|
-
return ["strong",
|
|
17110
|
+
return ["strong", je(this.options.HTMLAttributes, r), 0];
|
|
17111
17111
|
},
|
|
17112
17112
|
addCommands() {
|
|
17113
17113
|
return {
|
|
@@ -17166,7 +17166,7 @@ const Wy = (r = {}) => {
|
|
|
17166
17166
|
];
|
|
17167
17167
|
},
|
|
17168
17168
|
renderHTML({ HTMLAttributes: r }) {
|
|
17169
|
-
return ["ul",
|
|
17169
|
+
return ["ul", je(this.options.HTMLAttributes, r), 0];
|
|
17170
17170
|
},
|
|
17171
17171
|
addCommands() {
|
|
17172
17172
|
return {
|
|
@@ -17210,7 +17210,7 @@ const Wy = (r = {}) => {
|
|
|
17210
17210
|
];
|
|
17211
17211
|
},
|
|
17212
17212
|
renderHTML({ HTMLAttributes: r }) {
|
|
17213
|
-
return ["code",
|
|
17213
|
+
return ["code", je(this.options.HTMLAttributes, r), 0];
|
|
17214
17214
|
},
|
|
17215
17215
|
addCommands() {
|
|
17216
17216
|
return {
|
|
@@ -17280,7 +17280,7 @@ const Wy = (r = {}) => {
|
|
|
17280
17280
|
renderHTML({ node: r, HTMLAttributes: e }) {
|
|
17281
17281
|
return [
|
|
17282
17282
|
"pre",
|
|
17283
|
-
|
|
17283
|
+
je(this.options.HTMLAttributes, e),
|
|
17284
17284
|
[
|
|
17285
17285
|
"code",
|
|
17286
17286
|
{
|
|
@@ -17350,7 +17350,7 @@ const Wy = (r = {}) => {
|
|
|
17350
17350
|
return [
|
|
17351
17351
|
// this plugin creates a code block for pasted content from VS Code
|
|
17352
17352
|
// we can also detect the copied code language
|
|
17353
|
-
new
|
|
17353
|
+
new Pe({
|
|
17354
17354
|
key: new Ze("codeBlockVSCodeHandler"),
|
|
17355
17355
|
props: {
|
|
17356
17356
|
handlePaste: (r, e) => {
|
|
@@ -17373,7 +17373,7 @@ const Wy = (r = {}) => {
|
|
|
17373
17373
|
content: "block+"
|
|
17374
17374
|
});
|
|
17375
17375
|
function sw(r = {}) {
|
|
17376
|
-
return new
|
|
17376
|
+
return new Pe({
|
|
17377
17377
|
view(e) {
|
|
17378
17378
|
return new lw(e, r);
|
|
17379
17379
|
}
|
|
@@ -17453,7 +17453,7 @@ class lw {
|
|
|
17453
17453
|
this.editorView.dom.contains(e.relatedTarget) || this.setCursor(null);
|
|
17454
17454
|
}
|
|
17455
17455
|
}
|
|
17456
|
-
const pw =
|
|
17456
|
+
const pw = He.create({
|
|
17457
17457
|
name: "dropCursor",
|
|
17458
17458
|
addOptions() {
|
|
17459
17459
|
return {
|
|
@@ -17603,7 +17603,7 @@ function cw(r) {
|
|
|
17603
17603
|
return !0;
|
|
17604
17604
|
}
|
|
17605
17605
|
function bw() {
|
|
17606
|
-
return new
|
|
17606
|
+
return new Pe({
|
|
17607
17607
|
props: {
|
|
17608
17608
|
decorations: gw,
|
|
17609
17609
|
createSelectionBetween(r, e, t) {
|
|
@@ -17649,9 +17649,9 @@ function xw(r, e) {
|
|
|
17649
17649
|
let { $from: t } = r.state.selection, o = t.parent.contentMatchAt(t.index()).findWrapping(r.state.schema.nodes.text);
|
|
17650
17650
|
if (!o)
|
|
17651
17651
|
return !1;
|
|
17652
|
-
let n =
|
|
17652
|
+
let n = I.empty;
|
|
17653
17653
|
for (let a = o.length - 1; a >= 0; a--)
|
|
17654
|
-
n =
|
|
17654
|
+
n = I.from(o[a].createAndFill(null, n));
|
|
17655
17655
|
let i = r.state.tr.replace(t.pos, t.pos, new F(n, 0, 0));
|
|
17656
17656
|
return i.setSelection(Q.near(i.doc.resolve(t.pos + 1))), r.dispatch(i), !1;
|
|
17657
17657
|
}
|
|
@@ -17661,7 +17661,7 @@ function gw(r) {
|
|
|
17661
17661
|
let e = document.createElement("div");
|
|
17662
17662
|
return e.className = "ProseMirror-gapcursor", Te.create(r.doc, [vt.widget(r.selection.head, e, { key: "gapcursor" })]);
|
|
17663
17663
|
}
|
|
17664
|
-
const hw =
|
|
17664
|
+
const hw = He.create({
|
|
17665
17665
|
name: "gapCursor",
|
|
17666
17666
|
addProseMirrorPlugins() {
|
|
17667
17667
|
return [
|
|
@@ -17697,7 +17697,7 @@ const hw = je.create({
|
|
|
17697
17697
|
];
|
|
17698
17698
|
},
|
|
17699
17699
|
renderHTML({ HTMLAttributes: r }) {
|
|
17700
|
-
return ["br",
|
|
17700
|
+
return ["br", je(this.options.HTMLAttributes, r)];
|
|
17701
17701
|
},
|
|
17702
17702
|
renderText() {
|
|
17703
17703
|
return `
|
|
@@ -17755,7 +17755,7 @@ const hw = je.create({
|
|
|
17755
17755
|
}));
|
|
17756
17756
|
},
|
|
17757
17757
|
renderHTML({ node: r, HTMLAttributes: e }) {
|
|
17758
|
-
return [`h${this.options.levels.includes(r.attrs.level) ? r.attrs.level : this.options.levels[0]}`,
|
|
17758
|
+
return [`h${this.options.levels.includes(r.attrs.level) ? r.attrs.level : this.options.levels[0]}`, je(this.options.HTMLAttributes, e), 0];
|
|
17759
17759
|
},
|
|
17760
17760
|
addCommands() {
|
|
17761
17761
|
return {
|
|
@@ -17779,36 +17779,36 @@ const hw = je.create({
|
|
|
17779
17779
|
}));
|
|
17780
17780
|
}
|
|
17781
17781
|
});
|
|
17782
|
-
var ra = 200,
|
|
17782
|
+
var ra = 200, Ie = function() {
|
|
17783
17783
|
};
|
|
17784
|
-
|
|
17785
|
-
return e.length ? (e =
|
|
17784
|
+
Ie.prototype.append = function(e) {
|
|
17785
|
+
return e.length ? (e = Ie.from(e), !this.length && e || e.length < ra && this.leafAppend(e) || this.length < ra && e.leafPrepend(this) || this.appendInner(e)) : this;
|
|
17786
17786
|
};
|
|
17787
|
-
|
|
17788
|
-
return e.length ?
|
|
17787
|
+
Ie.prototype.prepend = function(e) {
|
|
17788
|
+
return e.length ? Ie.from(e).append(this) : this;
|
|
17789
17789
|
};
|
|
17790
|
-
|
|
17790
|
+
Ie.prototype.appendInner = function(e) {
|
|
17791
17791
|
return new ww(this, e);
|
|
17792
17792
|
};
|
|
17793
|
-
|
|
17794
|
-
return e === void 0 && (e = 0), t === void 0 && (t = this.length), e >= t ?
|
|
17793
|
+
Ie.prototype.slice = function(e, t) {
|
|
17794
|
+
return e === void 0 && (e = 0), t === void 0 && (t = this.length), e >= t ? Ie.empty : this.sliceInner(Math.max(0, e), Math.min(this.length, t));
|
|
17795
17795
|
};
|
|
17796
|
-
|
|
17796
|
+
Ie.prototype.get = function(e) {
|
|
17797
17797
|
if (!(e < 0 || e >= this.length))
|
|
17798
17798
|
return this.getInner(e);
|
|
17799
17799
|
};
|
|
17800
|
-
|
|
17800
|
+
Ie.prototype.forEach = function(e, t, o) {
|
|
17801
17801
|
t === void 0 && (t = 0), o === void 0 && (o = this.length), t <= o ? this.forEachInner(e, t, o, 0) : this.forEachInvertedInner(e, t, o, 0);
|
|
17802
17802
|
};
|
|
17803
|
-
|
|
17803
|
+
Ie.prototype.map = function(e, t, o) {
|
|
17804
17804
|
t === void 0 && (t = 0), o === void 0 && (o = this.length);
|
|
17805
17805
|
var n = [];
|
|
17806
17806
|
return this.forEach(function(i, a) {
|
|
17807
17807
|
return n.push(e(i, a));
|
|
17808
17808
|
}, t, o), n;
|
|
17809
17809
|
};
|
|
17810
|
-
|
|
17811
|
-
return e instanceof
|
|
17810
|
+
Ie.from = function(e) {
|
|
17811
|
+
return e instanceof Ie ? e : e && e.length ? new Fm(e) : Ie.empty;
|
|
17812
17812
|
};
|
|
17813
17813
|
var Fm = /* @__PURE__ */ function(r) {
|
|
17814
17814
|
function e(o) {
|
|
@@ -17841,8 +17841,8 @@ var Fm = /* @__PURE__ */ function(r) {
|
|
|
17841
17841
|
}, t.depth.get = function() {
|
|
17842
17842
|
return 0;
|
|
17843
17843
|
}, Object.defineProperties(e.prototype, t), e;
|
|
17844
|
-
}(
|
|
17845
|
-
|
|
17844
|
+
}(Ie);
|
|
17845
|
+
Ie.empty = new Fm([]);
|
|
17846
17846
|
var ww = /* @__PURE__ */ function(r) {
|
|
17847
17847
|
function e(t, o) {
|
|
17848
17848
|
r.call(this), this.left = t, this.right = o, this.length = t.length + o.length, this.depth = Math.max(t.depth, o.depth) + 1;
|
|
@@ -17875,7 +17875,7 @@ var ww = /* @__PURE__ */ function(r) {
|
|
|
17875
17875
|
}, e.prototype.appendInner = function(o) {
|
|
17876
17876
|
return this.left.depth >= Math.max(this.right.depth, o.depth) + 1 ? new e(this.left, new e(this.right, o)) : new e(this, o);
|
|
17877
17877
|
}, e;
|
|
17878
|
-
}(
|
|
17878
|
+
}(Ie);
|
|
17879
17879
|
const vw = 500;
|
|
17880
17880
|
class At {
|
|
17881
17881
|
constructor(e, t) {
|
|
@@ -17986,10 +17986,10 @@ class At {
|
|
|
17986
17986
|
(m = n.length && n[u].merge(c)) ? n[u] = m : n.push(c);
|
|
17987
17987
|
}
|
|
17988
17988
|
} else a.map && o--;
|
|
17989
|
-
}, this.items.length, 0), new At(
|
|
17989
|
+
}, this.items.length, 0), new At(Ie.from(n.reverse()), i);
|
|
17990
17990
|
}
|
|
17991
17991
|
}
|
|
17992
|
-
At.empty = new At(
|
|
17992
|
+
At.empty = new At(Ie.empty, 0);
|
|
17993
17993
|
function kw(r, e) {
|
|
17994
17994
|
let t;
|
|
17995
17995
|
return r.forEach((o, n) => {
|
|
@@ -18082,7 +18082,7 @@ function Ow(r = {}) {
|
|
|
18082
18082
|
return r = {
|
|
18083
18083
|
depth: r.depth || 100,
|
|
18084
18084
|
newGroupDelay: r.newGroupDelay || 500
|
|
18085
|
-
}, new
|
|
18085
|
+
}, new Pe({
|
|
18086
18086
|
key: vo,
|
|
18087
18087
|
state: {
|
|
18088
18088
|
init() {
|
|
@@ -18115,7 +18115,7 @@ function jm(r, e) {
|
|
|
18115
18115
|
return !0;
|
|
18116
18116
|
};
|
|
18117
18117
|
}
|
|
18118
|
-
const Hm = jm(!1, !0), Vm = jm(!0, !0), Bw =
|
|
18118
|
+
const Hm = jm(!1, !0), Vm = jm(!0, !0), Bw = He.create({
|
|
18119
18119
|
name: "history",
|
|
18120
18120
|
addOptions() {
|
|
18121
18121
|
return {
|
|
@@ -18156,7 +18156,7 @@ const Hm = jm(!1, !0), Vm = jm(!0, !0), Bw = je.create({
|
|
|
18156
18156
|
return [{ tag: "hr" }];
|
|
18157
18157
|
},
|
|
18158
18158
|
renderHTML({ HTMLAttributes: r }) {
|
|
18159
|
-
return ["hr",
|
|
18159
|
+
return ["hr", je(this.options.HTMLAttributes, r)];
|
|
18160
18160
|
},
|
|
18161
18161
|
addCommands() {
|
|
18162
18162
|
return {
|
|
@@ -18222,7 +18222,7 @@ const Hm = jm(!1, !0), Vm = jm(!0, !0), Bw = je.create({
|
|
|
18222
18222
|
];
|
|
18223
18223
|
},
|
|
18224
18224
|
renderHTML({ HTMLAttributes: r }) {
|
|
18225
|
-
return ["em",
|
|
18225
|
+
return ["em", je(this.options.HTMLAttributes, r), 0];
|
|
18226
18226
|
},
|
|
18227
18227
|
addCommands() {
|
|
18228
18228
|
return {
|
|
@@ -18280,7 +18280,7 @@ const Hm = jm(!1, !0), Vm = jm(!0, !0), Bw = je.create({
|
|
|
18280
18280
|
];
|
|
18281
18281
|
},
|
|
18282
18282
|
renderHTML({ HTMLAttributes: r }) {
|
|
18283
|
-
return ["li",
|
|
18283
|
+
return ["li", je(this.options.HTMLAttributes, r), 0];
|
|
18284
18284
|
},
|
|
18285
18285
|
addKeyboardShortcuts() {
|
|
18286
18286
|
return {
|
|
@@ -18324,7 +18324,7 @@ const Hm = jm(!1, !0), Vm = jm(!0, !0), Bw = je.create({
|
|
|
18324
18324
|
},
|
|
18325
18325
|
renderHTML({ HTMLAttributes: r }) {
|
|
18326
18326
|
const { start: e, ...t } = r;
|
|
18327
|
-
return e === 1 ? ["ol",
|
|
18327
|
+
return e === 1 ? ["ol", je(this.options.HTMLAttributes, t), 0] : ["ol", je(this.options.HTMLAttributes, r), 0];
|
|
18328
18328
|
},
|
|
18329
18329
|
addCommands() {
|
|
18330
18330
|
return {
|
|
@@ -18371,7 +18371,7 @@ const Hm = jm(!1, !0), Vm = jm(!0, !0), Bw = je.create({
|
|
|
18371
18371
|
];
|
|
18372
18372
|
},
|
|
18373
18373
|
renderHTML({ HTMLAttributes: r }) {
|
|
18374
|
-
return ["p",
|
|
18374
|
+
return ["p", je(this.options.HTMLAttributes, r), 0];
|
|
18375
18375
|
},
|
|
18376
18376
|
addCommands() {
|
|
18377
18377
|
return {
|
|
@@ -18409,7 +18409,7 @@ const Hm = jm(!1, !0), Vm = jm(!0, !0), Bw = je.create({
|
|
|
18409
18409
|
];
|
|
18410
18410
|
},
|
|
18411
18411
|
renderHTML({ HTMLAttributes: r }) {
|
|
18412
|
-
return ["s",
|
|
18412
|
+
return ["s", je(this.options.HTMLAttributes, r), 0];
|
|
18413
18413
|
},
|
|
18414
18414
|
addCommands() {
|
|
18415
18415
|
return {
|
|
@@ -18442,7 +18442,7 @@ const Hm = jm(!1, !0), Vm = jm(!0, !0), Bw = je.create({
|
|
|
18442
18442
|
}), Vw = Lt.create({
|
|
18443
18443
|
name: "text",
|
|
18444
18444
|
group: "inline"
|
|
18445
|
-
}), Ww =
|
|
18445
|
+
}), Ww = He.create({
|
|
18446
18446
|
name: "starterKit",
|
|
18447
18447
|
addExtensions() {
|
|
18448
18448
|
const r = [];
|
|
@@ -19041,9 +19041,9 @@ function r2({
|
|
|
19041
19041
|
te(k, r.numeric, f);
|
|
19042
19042
|
const O = xt(Ei), T = xt();
|
|
19043
19043
|
te(O, e, O), te(O, t, T), te(T, e, O), te(T, t, T), R(E, Ht, O), R(f, Ht, O);
|
|
19044
|
-
const P = R(s, Br), z = R(l, Br), j = R(z, Ht),
|
|
19045
|
-
te(s, r.domain, a), R(s, jt, w), R(s, ht, g), te(l, r.domain, a), R(l, jt, w), R(l, ht, g), te(P, r.domain, O), R(P, Ht, O), R(P, An, O), te(
|
|
19046
|
-
const
|
|
19044
|
+
const P = R(s, Br), z = R(l, Br), j = R(z, Ht), N = R(j, Ht);
|
|
19045
|
+
te(s, r.domain, a), R(s, jt, w), R(s, ht, g), te(l, r.domain, a), R(l, jt, w), R(l, ht, g), te(P, r.domain, O), R(P, Ht, O), R(P, An, O), te(N, r.domain, O), te(N, e, O), R(N, Ht, O);
|
|
19046
|
+
const L = [
|
|
19047
19047
|
[On, Bn],
|
|
19048
19048
|
// {}
|
|
19049
19049
|
[oa, na],
|
|
@@ -19061,13 +19061,13 @@ function r2({
|
|
|
19061
19061
|
[xa, ga]
|
|
19062
19062
|
// <>
|
|
19063
19063
|
];
|
|
19064
|
-
for (let
|
|
19065
|
-
const [q,
|
|
19066
|
-
R(T, q, ue), R(ue,
|
|
19067
|
-
const
|
|
19068
|
-
te(ue, e,
|
|
19069
|
-
const
|
|
19070
|
-
te(ue, t), te(
|
|
19064
|
+
for (let _ = 0; _ < L.length; _++) {
|
|
19065
|
+
const [q, se] = L[_], ue = R(O, q);
|
|
19066
|
+
R(T, q, ue), R(ue, se, O);
|
|
19067
|
+
const de = xt(Ei);
|
|
19068
|
+
te(ue, e, de);
|
|
19069
|
+
const ne = xt();
|
|
19070
|
+
te(ue, t), te(de, e, de), te(de, t, ne), te(ne, e, de), te(ne, t, ne), R(de, se, O), R(ne, se, O);
|
|
19071
19071
|
}
|
|
19072
19072
|
return R(n, Jn, E), R(n, ip, t2), {
|
|
19073
19073
|
start: n,
|
|
@@ -19152,7 +19152,7 @@ function c2(r) {
|
|
|
19152
19152
|
return r.length === 1 ? r[0].isLink : r.length === 3 && r[1].isLink ? ["()", "[]"].includes(r[0].value + r[2].value) : !1;
|
|
19153
19153
|
}
|
|
19154
19154
|
function b2(r) {
|
|
19155
|
-
return new
|
|
19155
|
+
return new Pe({
|
|
19156
19156
|
key: new Ze("autolink"),
|
|
19157
19157
|
appendTransaction: (e, t, o) => {
|
|
19158
19158
|
const n = e.some((p) => p.docChanged) && !t.doc.eq(o.doc), i = e.some((p) => p.getMeta("preventAutolink"));
|
|
@@ -19196,7 +19196,7 @@ function b2(r) {
|
|
|
19196
19196
|
});
|
|
19197
19197
|
}
|
|
19198
19198
|
function m2(r) {
|
|
19199
|
-
return new
|
|
19199
|
+
return new Pe({
|
|
19200
19200
|
key: new Ze("handleClickLink"),
|
|
19201
19201
|
props: {
|
|
19202
19202
|
handleClick: (e, t, o) => {
|
|
@@ -19216,7 +19216,7 @@ function m2(r) {
|
|
|
19216
19216
|
});
|
|
19217
19217
|
}
|
|
19218
19218
|
function u2(r) {
|
|
19219
|
-
return new
|
|
19219
|
+
return new Pe({
|
|
19220
19220
|
key: new Ze("handlePasteLink"),
|
|
19221
19221
|
props: {
|
|
19222
19222
|
handlePaste: (e, t, o) => {
|
|
@@ -19333,9 +19333,9 @@ const x2 = gr.create({
|
|
|
19333
19333
|
defaultValidate: (e) => !!ao(e, this.options.protocols),
|
|
19334
19334
|
protocols: this.options.protocols,
|
|
19335
19335
|
defaultProtocol: this.options.defaultProtocol
|
|
19336
|
-
}) ? ["a",
|
|
19336
|
+
}) ? ["a", je(this.options.HTMLAttributes, r), 0] : [
|
|
19337
19337
|
"a",
|
|
19338
|
-
|
|
19338
|
+
je(this.options.HTMLAttributes, { ...r, href: "" }),
|
|
19339
19339
|
0
|
|
19340
19340
|
];
|
|
19341
19341
|
},
|
|
@@ -19608,7 +19608,7 @@ function E2(r, e, t, o) {
|
|
|
19608
19608
|
}, 4e4);
|
|
19609
19609
|
}
|
|
19610
19610
|
}
|
|
19611
|
-
function
|
|
19611
|
+
function Ne(r, e) {
|
|
19612
19612
|
const t = "🍍 " + r;
|
|
19613
19613
|
typeof __VUE_DEVTOOLS_TOAST__ == "function" ? __VUE_DEVTOOLS_TOAST__(t, e) : e === "error" ? console.error(t) : e === "warn" ? console.warn(t) : console.log(t);
|
|
19614
19614
|
}
|
|
@@ -19617,29 +19617,29 @@ function up(r) {
|
|
|
19617
19617
|
}
|
|
19618
19618
|
function iu() {
|
|
19619
19619
|
if (!("clipboard" in navigator))
|
|
19620
|
-
return
|
|
19620
|
+
return Ne("Your browser doesn't support the Clipboard API", "error"), !0;
|
|
19621
19621
|
}
|
|
19622
19622
|
function au(r) {
|
|
19623
|
-
return r instanceof Error && r.message.toLowerCase().includes("document is not focused") ? (
|
|
19623
|
+
return r instanceof Error && r.message.toLowerCase().includes("document is not focused") ? (Ne('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.', "warn"), !0) : !1;
|
|
19624
19624
|
}
|
|
19625
19625
|
async function T2(r) {
|
|
19626
19626
|
if (!iu())
|
|
19627
19627
|
try {
|
|
19628
|
-
await navigator.clipboard.writeText(JSON.stringify(r.state.value)),
|
|
19628
|
+
await navigator.clipboard.writeText(JSON.stringify(r.state.value)), Ne("Global state copied to clipboard.");
|
|
19629
19629
|
} catch (e) {
|
|
19630
19630
|
if (au(e))
|
|
19631
19631
|
return;
|
|
19632
|
-
|
|
19632
|
+
Ne("Failed to serialize the state. Check the console for more details.", "error"), console.error(e);
|
|
19633
19633
|
}
|
|
19634
19634
|
}
|
|
19635
19635
|
async function O2(r) {
|
|
19636
19636
|
if (!iu())
|
|
19637
19637
|
try {
|
|
19638
|
-
su(r, JSON.parse(await navigator.clipboard.readText())),
|
|
19638
|
+
su(r, JSON.parse(await navigator.clipboard.readText())), Ne("Global state pasted from clipboard.");
|
|
19639
19639
|
} catch (e) {
|
|
19640
19640
|
if (au(e))
|
|
19641
19641
|
return;
|
|
19642
|
-
|
|
19642
|
+
Ne("Failed to deserialize the state from clipboard. Check the console for more details.", "error"), console.error(e);
|
|
19643
19643
|
}
|
|
19644
19644
|
}
|
|
19645
19645
|
async function B2(r) {
|
|
@@ -19648,7 +19648,7 @@ async function B2(r) {
|
|
|
19648
19648
|
type: "text/plain;charset=utf-8"
|
|
19649
19649
|
}), "pinia-state.json");
|
|
19650
19650
|
} catch (e) {
|
|
19651
|
-
|
|
19651
|
+
Ne("Failed to export the state as JSON. Check the console for more details.", "error"), console.error(e);
|
|
19652
19652
|
}
|
|
19653
19653
|
}
|
|
19654
19654
|
let ar;
|
|
@@ -19673,9 +19673,9 @@ async function A2(r) {
|
|
|
19673
19673
|
if (!t)
|
|
19674
19674
|
return;
|
|
19675
19675
|
const { text: o, file: n } = t;
|
|
19676
|
-
su(r, JSON.parse(o)),
|
|
19676
|
+
su(r, JSON.parse(o)), Ne(`Global state imported from "${n.name}".`);
|
|
19677
19677
|
} catch (e) {
|
|
19678
|
-
|
|
19678
|
+
Ne("Failed to import the state from JSON. Check the console for more details.", "error"), console.error(e);
|
|
19679
19679
|
}
|
|
19680
19680
|
}
|
|
19681
19681
|
function su(r, e) {
|
|
@@ -19774,7 +19774,7 @@ function R2(r, e) {
|
|
|
19774
19774
|
componentStateTypes: $i,
|
|
19775
19775
|
app: r
|
|
19776
19776
|
}, (t) => {
|
|
19777
|
-
typeof t.now != "function" &&
|
|
19777
|
+
typeof t.now != "function" && Ne("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."), t.addTimelineLayer({
|
|
19778
19778
|
id: lo,
|
|
19779
19779
|
label: "Pinia 🍍",
|
|
19780
19780
|
color: 15064968
|
|
@@ -19819,7 +19819,7 @@ function R2(r, e) {
|
|
|
19819
19819
|
tooltip: 'Reset the state (with "$reset")',
|
|
19820
19820
|
action: (o) => {
|
|
19821
19821
|
const n = e._s.get(o);
|
|
19822
|
-
n ? typeof n.$reset != "function" ?
|
|
19822
|
+
n ? typeof n.$reset != "function" ? Ne(`Cannot reset "${o}" store because it doesn't have a "$reset" method implemented.`, "warn") : (n.$reset(), Ne(`Store "${o}" reset.`)) : Ne(`Cannot reset "${o}" store because it wasn't found.`, "warn");
|
|
19823
19823
|
}
|
|
19824
19824
|
}
|
|
19825
19825
|
]
|
|
@@ -19878,7 +19878,7 @@ function R2(r, e) {
|
|
|
19878
19878
|
if (o.app === r && o.inspectorId === Ue) {
|
|
19879
19879
|
const i = o.nodeId === Ri ? e : e._s.get(o.nodeId);
|
|
19880
19880
|
if (!i)
|
|
19881
|
-
return
|
|
19881
|
+
return Ne(`store "${o.nodeId}" not found`, "error");
|
|
19882
19882
|
const { path: a } = o;
|
|
19883
19883
|
up(i) ? a.unshift("state") : (a.length !== 1 || !i._customProperties.has(a[0]) || a[0] in i.$state) && a.unshift("$state"), Vo = !1, o.set(i, a, o.state.value), Vo = !0;
|
|
19884
19884
|
}
|
|
@@ -19886,10 +19886,10 @@ function R2(r, e) {
|
|
|
19886
19886
|
if (o.type.startsWith("🍍")) {
|
|
19887
19887
|
const n = o.type.replace(/^🍍\s*/, ""), i = e._s.get(n);
|
|
19888
19888
|
if (!i)
|
|
19889
|
-
return
|
|
19889
|
+
return Ne(`store "${n}" not found`, "error");
|
|
19890
19890
|
const { path: a } = o;
|
|
19891
19891
|
if (a[0] !== "state")
|
|
19892
|
-
return
|
|
19892
|
+
return Ne(`Invalid path for store "${n}":
|
|
19893
19893
|
${a}
|
|
19894
19894
|
Only state can be modified.`);
|
|
19895
19895
|
a[0] = "$state", Vo = !1, o.set(i, a, o.state.value), Vo = !0;
|
|
@@ -20023,8 +20023,8 @@ function $2(r, e) {
|
|
|
20023
20023
|
});
|
|
20024
20024
|
const { $dispose: i } = e;
|
|
20025
20025
|
e.$dispose = () => {
|
|
20026
|
-
i(), t.notifyComponentUpdate(), t.sendInspectorTree(Ue), t.sendInspectorState(Ue), t.getSettings().logStoreChanges &&
|
|
20027
|
-
}, t.notifyComponentUpdate(), t.sendInspectorTree(Ue), t.sendInspectorState(Ue), t.getSettings().logStoreChanges &&
|
|
20026
|
+
i(), t.notifyComponentUpdate(), t.sendInspectorTree(Ue), t.sendInspectorState(Ue), t.getSettings().logStoreChanges && Ne(`Disposed "${e.$id}" store 🗑`);
|
|
20027
|
+
}, t.notifyComponentUpdate(), t.sendInspectorTree(Ue), t.sendInspectorState(Ue), t.getSettings().logStoreChanges && Ne(`"${e.$id}" store installed 🆕`);
|
|
20028
20028
|
});
|
|
20029
20029
|
}
|
|
20030
20030
|
let pu = 0, _r;
|
|
@@ -20151,35 +20151,35 @@ function yl(r, e, t = {}, o, n, i) {
|
|
|
20151
20151
|
if (process.env.NODE_ENV !== "production" && !o._e.active)
|
|
20152
20152
|
throw new Error("Pinia destroyed");
|
|
20153
20153
|
const l = { deep: !0 };
|
|
20154
|
-
process.env.NODE_ENV !== "production" && (l.onTrigger = (
|
|
20155
|
-
p ? u =
|
|
20154
|
+
process.env.NODE_ENV !== "production" && (l.onTrigger = (N) => {
|
|
20155
|
+
p ? u = N : p == !1 && !P._hotUpdating && (Array.isArray(u) ? u.push(N) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
|
20156
20156
|
});
|
|
20157
20157
|
let p, d, c = [], m = [], u;
|
|
20158
20158
|
const x = o.state.value[r];
|
|
20159
20159
|
!i && !x && (process.env.NODE_ENV === "production" || !n) && (o.state.value[r] = {});
|
|
20160
20160
|
const h = S({});
|
|
20161
20161
|
let g;
|
|
20162
|
-
function w(
|
|
20163
|
-
let
|
|
20164
|
-
p = d = !1, process.env.NODE_ENV !== "production" && (u = []), typeof
|
|
20162
|
+
function w(N) {
|
|
20163
|
+
let L;
|
|
20164
|
+
p = d = !1, process.env.NODE_ENV !== "production" && (u = []), typeof N == "function" ? (N(o.state.value[r]), L = {
|
|
20165
20165
|
type: Kt.patchFunction,
|
|
20166
20166
|
storeId: r,
|
|
20167
20167
|
events: u
|
|
20168
|
-
}) : (fl(o.state.value[r],
|
|
20168
|
+
}) : (fl(o.state.value[r], N), L = {
|
|
20169
20169
|
type: Kt.patchObject,
|
|
20170
|
-
payload:
|
|
20170
|
+
payload: N,
|
|
20171
20171
|
storeId: r,
|
|
20172
20172
|
events: u
|
|
20173
20173
|
});
|
|
20174
|
-
const
|
|
20174
|
+
const _ = g = Symbol();
|
|
20175
20175
|
pe().then(() => {
|
|
20176
|
-
g ===
|
|
20177
|
-
}), d = !0, _o(c,
|
|
20176
|
+
g === _ && (p = !0);
|
|
20177
|
+
}), d = !0, _o(c, L, o.state.value[r]);
|
|
20178
20178
|
}
|
|
20179
20179
|
const E = i ? function() {
|
|
20180
|
-
const { state:
|
|
20180
|
+
const { state: L } = t, _ = L ? L() : {};
|
|
20181
20181
|
this.$patch((q) => {
|
|
20182
|
-
ft(q,
|
|
20182
|
+
ft(q, _);
|
|
20183
20183
|
});
|
|
20184
20184
|
} : (
|
|
20185
20185
|
/* istanbul ignore next */
|
|
@@ -20190,34 +20190,34 @@ function yl(r, e, t = {}, o, n, i) {
|
|
|
20190
20190
|
function k() {
|
|
20191
20191
|
a.stop(), c = [], m = [], o._s.delete(r);
|
|
20192
20192
|
}
|
|
20193
|
-
const f = (
|
|
20194
|
-
if (dc in
|
|
20195
|
-
return
|
|
20196
|
-
const
|
|
20193
|
+
const f = (N, L = "") => {
|
|
20194
|
+
if (dc in N)
|
|
20195
|
+
return N[Ps] = L, N;
|
|
20196
|
+
const _ = function() {
|
|
20197
20197
|
Xn(o);
|
|
20198
|
-
const q = Array.from(arguments),
|
|
20199
|
-
function re
|
|
20200
|
-
|
|
20198
|
+
const q = Array.from(arguments), se = [], ue = [];
|
|
20199
|
+
function de(re) {
|
|
20200
|
+
se.push(re);
|
|
20201
20201
|
}
|
|
20202
|
-
function
|
|
20203
|
-
ue.push(
|
|
20202
|
+
function ne(re) {
|
|
20203
|
+
ue.push(re);
|
|
20204
20204
|
}
|
|
20205
20205
|
_o(m, {
|
|
20206
20206
|
args: q,
|
|
20207
|
-
name:
|
|
20207
|
+
name: _[Ps],
|
|
20208
20208
|
store: P,
|
|
20209
|
-
after:
|
|
20210
|
-
onError:
|
|
20209
|
+
after: de,
|
|
20210
|
+
onError: ne
|
|
20211
20211
|
});
|
|
20212
|
-
let
|
|
20212
|
+
let K;
|
|
20213
20213
|
try {
|
|
20214
|
-
|
|
20215
|
-
} catch (
|
|
20216
|
-
throw _o(ue,
|
|
20214
|
+
K = N.apply(this && this.$id === r ? this : P, q);
|
|
20215
|
+
} catch (re) {
|
|
20216
|
+
throw _o(ue, re), re;
|
|
20217
20217
|
}
|
|
20218
|
-
return
|
|
20218
|
+
return K instanceof Promise ? K.then((re) => (_o(se, re), re)).catch((re) => (_o(ue, re), Promise.reject(re))) : (_o(se, K), K);
|
|
20219
20219
|
};
|
|
20220
|
-
return
|
|
20220
|
+
return _[dc] = !0, _[Ps] = L, _;
|
|
20221
20221
|
}, O = /* @__PURE__ */ Pr({
|
|
20222
20222
|
actions: {},
|
|
20223
20223
|
getters: {},
|
|
@@ -20230,15 +20230,15 @@ function yl(r, e, t = {}, o, n, i) {
|
|
|
20230
20230
|
$onAction: pc.bind(null, m),
|
|
20231
20231
|
$patch: w,
|
|
20232
20232
|
$reset: E,
|
|
20233
|
-
$subscribe(
|
|
20234
|
-
const
|
|
20235
|
-
(
|
|
20233
|
+
$subscribe(N, L = {}) {
|
|
20234
|
+
const _ = pc(c, N, L.detached, () => q()), q = a.run(() => Z(() => o.state.value[r], (se) => {
|
|
20235
|
+
(L.flush === "sync" ? d : p) && N({
|
|
20236
20236
|
storeId: r,
|
|
20237
20237
|
type: Kt.direct,
|
|
20238
20238
|
events: u
|
|
20239
|
-
},
|
|
20240
|
-
}, ft({}, l,
|
|
20241
|
-
return
|
|
20239
|
+
}, se);
|
|
20240
|
+
}, ft({}, l, L)));
|
|
20241
|
+
return _;
|
|
20242
20242
|
},
|
|
20243
20243
|
$dispose: k
|
|
20244
20244
|
}, P = Du(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Ir ? ft(
|
|
@@ -20253,78 +20253,78 @@ function yl(r, e, t = {}, o, n, i) {
|
|
|
20253
20253
|
) : T);
|
|
20254
20254
|
o._s.set(r, P);
|
|
20255
20255
|
const j = (o._a && o._a.runWithContext || j2)(() => o._e.run(() => (a = Oc()).run(() => e({ action: f }))));
|
|
20256
|
-
for (const
|
|
20257
|
-
const
|
|
20258
|
-
if (Dn(
|
|
20259
|
-
process.env.NODE_ENV !== "production" && n ? Ti(h.value,
|
|
20260
|
-
else if (typeof
|
|
20261
|
-
const
|
|
20262
|
-
j[
|
|
20263
|
-
} else process.env.NODE_ENV !== "production" && cc(
|
|
20256
|
+
for (const N in j) {
|
|
20257
|
+
const L = j[N];
|
|
20258
|
+
if (Dn(L) && !cc(L) || vl(L))
|
|
20259
|
+
process.env.NODE_ENV !== "production" && n ? Ti(h.value, N, Ya(j, N)) : i || (x && V2(L) && (Dn(L) ? L.value = x[N] : fl(L, x[N])), o.state.value[r][N] = L), process.env.NODE_ENV !== "production" && O.state.push(N);
|
|
20260
|
+
else if (typeof L == "function") {
|
|
20261
|
+
const _ = process.env.NODE_ENV !== "production" && n ? L : f(L, N);
|
|
20262
|
+
j[N] = _, process.env.NODE_ENV !== "production" && (O.actions[N] = L), s.actions[N] = L;
|
|
20263
|
+
} else process.env.NODE_ENV !== "production" && cc(L) && (O.getters[N] = i ? (
|
|
20264
20264
|
// @ts-expect-error
|
|
20265
|
-
t.getters[
|
|
20266
|
-
) :
|
|
20267
|
-
(j._getters = Pr([]))).push(
|
|
20265
|
+
t.getters[N]
|
|
20266
|
+
) : L, Ir && (j._getters || // @ts-expect-error: same
|
|
20267
|
+
(j._getters = Pr([]))).push(N));
|
|
20268
20268
|
}
|
|
20269
20269
|
if (ft(P, j), ft(We(P), j), Object.defineProperty(P, "$state", {
|
|
20270
20270
|
get: () => process.env.NODE_ENV !== "production" && n ? h.value : o.state.value[r],
|
|
20271
|
-
set: (
|
|
20271
|
+
set: (N) => {
|
|
20272
20272
|
if (process.env.NODE_ENV !== "production" && n)
|
|
20273
20273
|
throw new Error("cannot set hotState");
|
|
20274
|
-
w((
|
|
20275
|
-
ft(
|
|
20274
|
+
w((L) => {
|
|
20275
|
+
ft(L, N);
|
|
20276
20276
|
});
|
|
20277
20277
|
}
|
|
20278
|
-
}), process.env.NODE_ENV !== "production" && (P._hotUpdate = Pr((
|
|
20279
|
-
P._hotUpdating = !0,
|
|
20280
|
-
if (
|
|
20281
|
-
const
|
|
20282
|
-
typeof
|
|
20278
|
+
}), process.env.NODE_ENV !== "production" && (P._hotUpdate = Pr((N) => {
|
|
20279
|
+
P._hotUpdating = !0, N._hmrPayload.state.forEach((L) => {
|
|
20280
|
+
if (L in P.$state) {
|
|
20281
|
+
const _ = N.$state[L], q = P.$state[L];
|
|
20282
|
+
typeof _ == "object" && Bo(_) && Bo(q) ? du(_, q) : N.$state[L] = q;
|
|
20283
20283
|
}
|
|
20284
|
-
Ti(P,
|
|
20285
|
-
}), Object.keys(P.$state).forEach((
|
|
20286
|
-
|
|
20287
|
-
}), p = !1, d = !1, o.state.value[r] = Ya(
|
|
20284
|
+
Ti(P, L, Ya(N.$state, L));
|
|
20285
|
+
}), Object.keys(P.$state).forEach((L) => {
|
|
20286
|
+
L in N.$state || Bs(P, L);
|
|
20287
|
+
}), p = !1, d = !1, o.state.value[r] = Ya(N._hmrPayload, "hotState"), d = !0, pe().then(() => {
|
|
20288
20288
|
p = !0;
|
|
20289
20289
|
});
|
|
20290
|
-
for (const
|
|
20291
|
-
const
|
|
20292
|
-
Ti(P,
|
|
20290
|
+
for (const L in N._hmrPayload.actions) {
|
|
20291
|
+
const _ = N[L];
|
|
20292
|
+
Ti(P, L, f(_, L));
|
|
20293
20293
|
}
|
|
20294
|
-
for (const
|
|
20295
|
-
const
|
|
20294
|
+
for (const L in N._hmrPayload.getters) {
|
|
20295
|
+
const _ = N._hmrPayload.getters[L], q = i ? (
|
|
20296
20296
|
// special handling of options api
|
|
20297
|
-
$(() => (Xn(o),
|
|
20298
|
-
) :
|
|
20299
|
-
Ti(P,
|
|
20300
|
-
}
|
|
20301
|
-
Object.keys(P._hmrPayload.getters).forEach((
|
|
20302
|
-
|
|
20303
|
-
}), Object.keys(P._hmrPayload.actions).forEach((
|
|
20304
|
-
|
|
20305
|
-
}), P._hmrPayload =
|
|
20297
|
+
$(() => (Xn(o), _.call(P, P)))
|
|
20298
|
+
) : _;
|
|
20299
|
+
Ti(P, L, q);
|
|
20300
|
+
}
|
|
20301
|
+
Object.keys(P._hmrPayload.getters).forEach((L) => {
|
|
20302
|
+
L in N._hmrPayload.getters || Bs(P, L);
|
|
20303
|
+
}), Object.keys(P._hmrPayload.actions).forEach((L) => {
|
|
20304
|
+
L in N._hmrPayload.actions || Bs(P, L);
|
|
20305
|
+
}), P._hmrPayload = N._hmrPayload, P._getters = N._getters, P._hotUpdating = !1;
|
|
20306
20306
|
})), process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Ir) {
|
|
20307
|
-
const
|
|
20307
|
+
const N = {
|
|
20308
20308
|
writable: !0,
|
|
20309
20309
|
configurable: !0,
|
|
20310
20310
|
// avoid warning on devtools trying to display this property
|
|
20311
20311
|
enumerable: !1
|
|
20312
20312
|
};
|
|
20313
|
-
["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((
|
|
20314
|
-
Object.defineProperty(P,
|
|
20313
|
+
["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((L) => {
|
|
20314
|
+
Object.defineProperty(P, L, ft({ value: P[L] }, N));
|
|
20315
20315
|
});
|
|
20316
20316
|
}
|
|
20317
|
-
return o._p.forEach((
|
|
20317
|
+
return o._p.forEach((N) => {
|
|
20318
20318
|
if (process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Ir) {
|
|
20319
|
-
const
|
|
20319
|
+
const L = a.run(() => N({
|
|
20320
20320
|
store: P,
|
|
20321
20321
|
app: o._a,
|
|
20322
20322
|
pinia: o,
|
|
20323
20323
|
options: s
|
|
20324
20324
|
}));
|
|
20325
|
-
Object.keys(
|
|
20325
|
+
Object.keys(L || {}).forEach((_) => P._customProperties.add(_)), ft(P, L);
|
|
20326
20326
|
} else
|
|
20327
|
-
ft(P, a.run(() =>
|
|
20327
|
+
ft(P, a.run(() => N({
|
|
20328
20328
|
store: P,
|
|
20329
20329
|
app: o._a,
|
|
20330
20330
|
pinia: o,
|
|
@@ -20775,12 +20775,12 @@ const U2 = /* @__PURE__ */ W2("pageBuilderState", {
|
|
|
20775
20775
|
}, J2 = { class: "pbx-myPrimaryInputError pbx-mt-2 pbx-mb-0 pbx-py-0 pbx-self-start" }, Y2 = { class: "pbx-blockease-linear pbx-duration-200 pbx-block pbx-ease-linear" }, X2 = { key: 0 }, Q2 = { class: "pbx-relative pbx-rounded-lg" }, Z2 = { class: "pbx-flex pbx-justify-between pbx-myPrimaryGap pbx-items-center pbx-py-4 pbx-px-4 pbx-overflow-x-auto pbx-border-solid pbx-border-b pbx-border-gray-200" }, ev = { class: "pbx-px-2 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-w-max pbx-p-1 pbx-rounded-full pbx-border-solid pbx-border pbx-border-gray-200 pbx-shadow-sm" }, tv = { class: "pbx-flex pbx-items-center pbx-p-1 pbx-rounded-full pbx-border-solid pbx-border pbx-border-gray-200 pbx-shadow-sm" }, rv = { class: "pbx-px-2 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-w-max" }, ov = { class: "pbx-px-2 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-w-max" }, nv = { class: "pbx-px-2 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-w-max" }, iv = { class: "pbx-px-2 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-w-max" }, av = { class: "pbx-px-2 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-w-max" }, sv = { class: "pbx-px-2 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-w-max" }, lv = {
|
|
20776
20776
|
__name: "TipTapInput",
|
|
20777
20777
|
setup(r) {
|
|
20778
|
-
const e = Oe(), { translate: t } =
|
|
20779
|
-
Z(h, (
|
|
20780
|
-
const
|
|
20781
|
-
if (
|
|
20782
|
-
|
|
20783
|
-
const q =
|
|
20778
|
+
const e = Oe(), { translate: t } = Be(), o = Ee, n = S(!1), i = S(""), a = S(1), s = S(""), l = S(""), p = S(""), d = S(null), c = S(null), m = S(null), u = S(null), x = S(null), h = $(() => o.getElement), g = S(""), w = $(() => k.value ? k.value.getHTML() : null), E = S(0);
|
|
20779
|
+
Z(h, (L) => {
|
|
20780
|
+
const _ = document.createElement("div");
|
|
20781
|
+
if (L) {
|
|
20782
|
+
_.innerHTML = L;
|
|
20783
|
+
const q = _.textContent;
|
|
20784
20784
|
E.value = q.length;
|
|
20785
20785
|
}
|
|
20786
20786
|
});
|
|
@@ -20798,8 +20798,8 @@ const U2 = /* @__PURE__ */ W2("pageBuilderState", {
|
|
|
20798
20798
|
}
|
|
20799
20799
|
}
|
|
20800
20800
|
});
|
|
20801
|
-
Z(w, async (
|
|
20802
|
-
e.isSelectedElementValidText() && h.value && (o.setTextAreaVueModel(
|
|
20801
|
+
Z(w, async (L) => {
|
|
20802
|
+
e.isSelectedElementValidText() && h.value && (o.setTextAreaVueModel(L), typeof L == "string" && L !== g.value && await e.handleTextInput(L));
|
|
20803
20803
|
});
|
|
20804
20804
|
const f = function() {
|
|
20805
20805
|
e.isSelectedElementValidText() && k.value && k.value.commands.setContent(h.value.innerHTML);
|
|
@@ -20808,33 +20808,33 @@ const U2 = /* @__PURE__ */ W2("pageBuilderState", {
|
|
|
20808
20808
|
f();
|
|
20809
20809
|
});
|
|
20810
20810
|
const O = S(""), T = S(""), P = S(null);
|
|
20811
|
-
Z(O, (
|
|
20812
|
-
T.value =
|
|
20811
|
+
Z(O, (L) => {
|
|
20812
|
+
T.value = L;
|
|
20813
20813
|
});
|
|
20814
20814
|
const z = function() {
|
|
20815
20815
|
O.value = k.value.getAttributes("link").href, n.value = !0, i.value = "success", a.value = 2, s.value = t("Enter URL"), l.value = t(
|
|
20816
20816
|
"Add a valid URL to transform the selected text into a clickable hyperlink that directs users to the specified web address."
|
|
20817
|
-
), p.value = "Close", d.value = O.value ? "Remove url" : null, c.value = t("Save"), m.value = function() {
|
|
20817
|
+
), p.value = t("Close"), d.value = O.value ? "Remove url" : null, c.value = t("Save"), m.value = function() {
|
|
20818
20818
|
n.value = !1, P.value = null;
|
|
20819
20819
|
}, u.value = function() {
|
|
20820
20820
|
k.value.chain().focus().extendMarkRange("link").unsetLink().run(), n.value = !1;
|
|
20821
20821
|
}, x.value = function() {
|
|
20822
|
-
const
|
|
20823
|
-
|
|
20822
|
+
const L = j();
|
|
20823
|
+
L || (L || N(), n.value = !1);
|
|
20824
20824
|
};
|
|
20825
20825
|
}, j = function() {
|
|
20826
20826
|
P.value = null;
|
|
20827
|
-
const
|
|
20828
|
-
return
|
|
20829
|
-
},
|
|
20827
|
+
const L = /^https?:\/\//, _ = S(!0);
|
|
20828
|
+
return _.value = L.test(T.value), _.value === !1 ? (P.value = "The provided URL is invalid. Please ensure that it begins with 'https://' for proper formatting and security.", !0) : !1;
|
|
20829
|
+
}, N = function() {
|
|
20830
20830
|
k.value.chain().focus().extendMarkRange("link").setLink({ href: T.value }).run();
|
|
20831
20831
|
};
|
|
20832
20832
|
return _u(() => {
|
|
20833
|
-
var
|
|
20834
|
-
(
|
|
20833
|
+
var L;
|
|
20834
|
+
(L = k.value) == null || L.destroy();
|
|
20835
20835
|
}), xr(() => {
|
|
20836
20836
|
f();
|
|
20837
|
-
}), (
|
|
20837
|
+
}), (L, _) => (v(), C("div", null, [
|
|
20838
20838
|
H(ko, {
|
|
20839
20839
|
maxWidth: "4xl",
|
|
20840
20840
|
showDynamicModalBuilder: n.value,
|
|
@@ -20850,14 +20850,14 @@ const U2 = /* @__PURE__ */ W2("pageBuilderState", {
|
|
|
20850
20850
|
onThirdModalButtonFunctionDynamicModalBuilder: x.value
|
|
20851
20851
|
}, {
|
|
20852
20852
|
default: U(() => [
|
|
20853
|
-
|
|
20853
|
+
_[7] || (_[7] = b("header", null, null, -1)),
|
|
20854
20854
|
b("main", null, [
|
|
20855
20855
|
b("div", q2, [
|
|
20856
20856
|
b("label", K2, [
|
|
20857
20857
|
b("span", null, M(y(t)("Enter URL")), 1)
|
|
20858
20858
|
]),
|
|
20859
20859
|
ye(b("input", {
|
|
20860
|
-
"onUpdate:modelValue":
|
|
20860
|
+
"onUpdate:modelValue": _[0] || (_[0] = (q) => O.value = q),
|
|
20861
20861
|
class: "pbx-myPrimaryInput pbx-mt-1",
|
|
20862
20862
|
type: "url",
|
|
20863
20863
|
placeholder: "url"
|
|
@@ -20866,7 +20866,7 @@ const U2 = /* @__PURE__ */ W2("pageBuilderState", {
|
|
|
20866
20866
|
]),
|
|
20867
20867
|
P.value ? (v(), C("div", G2, [
|
|
20868
20868
|
b("p", J2, M(P.value), 1)
|
|
20869
|
-
])) :
|
|
20869
|
+
])) : D("", !0)
|
|
20870
20870
|
])
|
|
20871
20871
|
])
|
|
20872
20872
|
]),
|
|
@@ -20881,11 +20881,11 @@ const U2 = /* @__PURE__ */ W2("pageBuilderState", {
|
|
|
20881
20881
|
b("div", null, [
|
|
20882
20882
|
b("div", ev, [
|
|
20883
20883
|
b("button", {
|
|
20884
|
-
onClick:
|
|
20884
|
+
onClick: _[1] || (_[1] = (q) => y(e).toggleTipTapModal(!1)),
|
|
20885
20885
|
type: "button",
|
|
20886
20886
|
class: "pbx-myPrimaryTag"
|
|
20887
20887
|
}, [
|
|
20888
|
-
|
|
20888
|
+
_[8] || (_[8] = b("span", { class: "material-symbols-outlined" }, " save ", -1)),
|
|
20889
20889
|
b("span", null, M(y(t)("Save")), 1)
|
|
20890
20890
|
])
|
|
20891
20891
|
])
|
|
@@ -20894,21 +20894,21 @@ const U2 = /* @__PURE__ */ W2("pageBuilderState", {
|
|
|
20894
20894
|
b("div", tv, [
|
|
20895
20895
|
b("div", rv, [
|
|
20896
20896
|
b("button", {
|
|
20897
|
-
onClick:
|
|
20897
|
+
onClick: _[2] || (_[2] = (q) => y(k).chain().focus().setHardBreak().run()),
|
|
20898
20898
|
type: "button",
|
|
20899
20899
|
class: "pbx-myPrimaryTag"
|
|
20900
20900
|
}, [
|
|
20901
|
-
|
|
20901
|
+
_[9] || (_[9] = b("span", { class: "material-symbols-outlined" }, " keyboard_return ", -1)),
|
|
20902
20902
|
b("span", null, M(y(t)("Line break")), 1)
|
|
20903
20903
|
])
|
|
20904
20904
|
]),
|
|
20905
20905
|
b("div", ov, [
|
|
20906
20906
|
b("button", {
|
|
20907
|
-
onClick:
|
|
20907
|
+
onClick: _[3] || (_[3] = (q) => y(k).chain().focus().toggleBold().run()),
|
|
20908
20908
|
type: "button",
|
|
20909
20909
|
class: X(["pbx-myPrimaryTag", { "pbx-bg-myPrimaryLinkColor pbx-text-white": y(k).isActive("bold") }])
|
|
20910
20910
|
}, [
|
|
20911
|
-
|
|
20911
|
+
_[10] || (_[10] = b("span", { class: "material-symbols-outlined" }, " format_bold ", -1)),
|
|
20912
20912
|
b("span", null, M(y(t)("Bold")), 1)
|
|
20913
20913
|
], 2)
|
|
20914
20914
|
]),
|
|
@@ -20918,13 +20918,13 @@ const U2 = /* @__PURE__ */ W2("pageBuilderState", {
|
|
|
20918
20918
|
type: "button",
|
|
20919
20919
|
class: X(["pbx-myPrimaryTag", { "pbx-bg-myPrimaryLinkColor pbx-text-white": y(k).isActive("link") }])
|
|
20920
20920
|
}, [
|
|
20921
|
-
|
|
20921
|
+
_[11] || (_[11] = b("span", { class: "material-symbols-outlined" }, " link ", -1)),
|
|
20922
20922
|
b("span", null, M(y(t)("Link")), 1)
|
|
20923
20923
|
], 2)
|
|
20924
20924
|
]),
|
|
20925
20925
|
b("div", iv, [
|
|
20926
20926
|
b("button", {
|
|
20927
|
-
onClick:
|
|
20927
|
+
onClick: _[4] || (_[4] = (q) => y(k).chain().focus().toggleHeading({ level: 2 }).run()),
|
|
20928
20928
|
type: "button",
|
|
20929
20929
|
class: X(["pbx-myPrimaryTag", {
|
|
20930
20930
|
"pbx-bg-myPrimaryLinkColor pbx-text-white": y(k).isActive("heading", {
|
|
@@ -20932,13 +20932,13 @@ const U2 = /* @__PURE__ */ W2("pageBuilderState", {
|
|
|
20932
20932
|
})
|
|
20933
20933
|
}])
|
|
20934
20934
|
}, [
|
|
20935
|
-
|
|
20935
|
+
_[12] || (_[12] = b("span", { class: "material-symbols-outlined" }, " titlecase ", -1)),
|
|
20936
20936
|
b("span", null, M(y(t)("Header 2")), 1)
|
|
20937
20937
|
], 2)
|
|
20938
20938
|
]),
|
|
20939
20939
|
b("div", av, [
|
|
20940
20940
|
b("button", {
|
|
20941
|
-
onClick:
|
|
20941
|
+
onClick: _[5] || (_[5] = (q) => y(k).chain().focus().toggleHeading({ level: 3 }).run()),
|
|
20942
20942
|
type: "button",
|
|
20943
20943
|
class: X(["pbx-myPrimaryTag", {
|
|
20944
20944
|
"pbx-bg-myPrimaryLinkColor pbx-text-white": y(k).isActive("heading", {
|
|
@@ -20946,19 +20946,19 @@ const U2 = /* @__PURE__ */ W2("pageBuilderState", {
|
|
|
20946
20946
|
})
|
|
20947
20947
|
}])
|
|
20948
20948
|
}, [
|
|
20949
|
-
|
|
20949
|
+
_[13] || (_[13] = b("span", { class: "material-symbols-outlined" }, " titlecase ", -1)),
|
|
20950
20950
|
b("span", null, M(y(t)("Header 3")), 1)
|
|
20951
20951
|
], 2)
|
|
20952
20952
|
]),
|
|
20953
20953
|
b("div", sv, [
|
|
20954
20954
|
b("button", {
|
|
20955
|
-
onClick:
|
|
20955
|
+
onClick: _[6] || (_[6] = (q) => y(k).chain().focus().toggleBulletList().run()),
|
|
20956
20956
|
type: "button",
|
|
20957
20957
|
class: X(["pbx-myPrimaryTag", {
|
|
20958
20958
|
"pbx-bg-myPrimaryLinkColor pbx-text-white": y(k).isActive("bulletList")
|
|
20959
20959
|
}])
|
|
20960
20960
|
}, [
|
|
20961
|
-
|
|
20961
|
+
_[14] || (_[14] = b("span", { class: "material-symbols-outlined" }, " list ", -1)),
|
|
20962
20962
|
b("span", null, M(y(t)("List")), 1)
|
|
20963
20963
|
], 2)
|
|
20964
20964
|
])
|
|
@@ -20970,7 +20970,7 @@ const U2 = /* @__PURE__ */ W2("pageBuilderState", {
|
|
|
20970
20970
|
class: "pbx-p-2 pbx-prounded-lg lg:pbx-min-h-[20rem] lg:pbx-max-h-[30rem] md:pbx-min-h-[20rem] md:pbx-max-h-[20rem] pbx-min-h-[20rem] pbx-max-h-[20rem] pbx-overflow-y-auto"
|
|
20971
20971
|
}, null, 8, ["editor"])
|
|
20972
20972
|
])
|
|
20973
|
-
])) :
|
|
20973
|
+
])) : D("", !0)
|
|
20974
20974
|
])
|
|
20975
20975
|
]));
|
|
20976
20976
|
}
|
|
@@ -21240,7 +21240,7 @@ function As({ props: r, attrs: e, slots: t, slot: o, name: n }) {
|
|
|
21240
21240
|
return jr(s, Object.assign({}, l, d), { default: () => p });
|
|
21241
21241
|
}
|
|
21242
21242
|
function xu(r) {
|
|
21243
|
-
return r.flatMap((e) => e.type ===
|
|
21243
|
+
return r.flatMap((e) => e.type === ae ? xu(e.children) : [e]);
|
|
21244
21244
|
}
|
|
21245
21245
|
function gu(...r) {
|
|
21246
21246
|
if (r.length === 0) return {};
|
|
@@ -21285,7 +21285,7 @@ function $v() {
|
|
|
21285
21285
|
function zv(r) {
|
|
21286
21286
|
Er(yu, r);
|
|
21287
21287
|
}
|
|
21288
|
-
var
|
|
21288
|
+
var Ae = ((r) => (r.Space = " ", r.Enter = "Enter", r.Escape = "Escape", r.Backspace = "Backspace", r.Delete = "Delete", r.ArrowLeft = "ArrowLeft", r.ArrowUp = "ArrowUp", r.ArrowRight = "ArrowRight", r.ArrowDown = "ArrowDown", r.Home = "Home", r.End = "End", r.PageUp = "PageUp", r.PageDown = "PageDown", r.Tab = "Tab", r))(Ae || {});
|
|
21289
21289
|
function Fv(r) {
|
|
21290
21290
|
throw new Error("Unexpected object: " + r);
|
|
21291
21291
|
}
|
|
@@ -21453,7 +21453,7 @@ let ai = nt({ name: "Listbox", emits: { "update:modelValue": (r) => !0 }, props:
|
|
|
21453
21453
|
}, { immediate: !0 });
|
|
21454
21454
|
}), () => {
|
|
21455
21455
|
let { name: k, modelValue: f, disabled: O, form: T, ...P } = r, z = { open: n.value === 0, disabled: O, value: g.value };
|
|
21456
|
-
return jr(
|
|
21456
|
+
return jr(ae, [...k != null && g.value != null ? wu({ [k]: g.value }).map(([j, N]) => jr(Rv, Iv({ features: fu.Hidden, key: j, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: T, disabled: O, name: j, value: N }))) : [], ln({ ourProps: {}, theirProps: { ...t, ...hu(P, ["defaultValue", "onUpdate:modelValue", "horizontal", "multiple", "by"]) }, slot: z, slots: e, attrs: t, name: "Listbox" })]);
|
|
21457
21457
|
};
|
|
21458
21458
|
} });
|
|
21459
21459
|
nt({ name: "ListboxLabel", props: { as: { type: [Object, String], default: "label" }, id: { type: String, default: null } }, setup(r, { attrs: e, slots: t }) {
|
|
@@ -21474,15 +21474,15 @@ let Po = nt({ name: "ListboxButton", props: { as: { type: [Object, String], defa
|
|
|
21474
21474
|
o({ el: a.buttonRef, $el: a.buttonRef });
|
|
21475
21475
|
function s(c) {
|
|
21476
21476
|
switch (c.key) {
|
|
21477
|
-
case
|
|
21478
|
-
case
|
|
21479
|
-
case
|
|
21477
|
+
case Ae.Space:
|
|
21478
|
+
case Ae.Enter:
|
|
21479
|
+
case Ae.ArrowDown:
|
|
21480
21480
|
c.preventDefault(), a.openListbox(), pe(() => {
|
|
21481
21481
|
var m;
|
|
21482
21482
|
(m = Se(a.optionsRef)) == null || m.focus({ preventScroll: !0 }), a.value.value || a.goToOption(Je.First);
|
|
21483
21483
|
});
|
|
21484
21484
|
break;
|
|
21485
|
-
case
|
|
21485
|
+
case Ae.ArrowUp:
|
|
21486
21486
|
c.preventDefault(), a.openListbox(), pe(() => {
|
|
21487
21487
|
var m;
|
|
21488
21488
|
(m = Se(a.optionsRef)) == null || m.focus({ preventScroll: !0 }), a.value.value || a.goToOption(Je.Last);
|
|
@@ -21492,7 +21492,7 @@ let Po = nt({ name: "ListboxButton", props: { as: { type: [Object, String], defa
|
|
|
21492
21492
|
}
|
|
21493
21493
|
function l(c) {
|
|
21494
21494
|
switch (c.key) {
|
|
21495
|
-
case
|
|
21495
|
+
case Ae.Space:
|
|
21496
21496
|
c.preventDefault();
|
|
21497
21497
|
break;
|
|
21498
21498
|
}
|
|
@@ -21518,9 +21518,9 @@ let Po = nt({ name: "ListboxButton", props: { as: { type: [Object, String], defa
|
|
|
21518
21518
|
o({ el: a.optionsRef, $el: a.optionsRef });
|
|
21519
21519
|
function l(c) {
|
|
21520
21520
|
switch (s.value && clearTimeout(s.value), c.key) {
|
|
21521
|
-
case
|
|
21521
|
+
case Ae.Space:
|
|
21522
21522
|
if (a.searchQuery.value !== "") return c.preventDefault(), c.stopPropagation(), a.search(c.key);
|
|
21523
|
-
case
|
|
21523
|
+
case Ae.Enter:
|
|
21524
21524
|
if (c.preventDefault(), c.stopPropagation(), a.activeOptionIndex.value !== null) {
|
|
21525
21525
|
let m = a.options.value[a.activeOptionIndex.value];
|
|
21526
21526
|
a.select(m.dataRef.value);
|
|
@@ -21530,23 +21530,23 @@ let Po = nt({ name: "ListboxButton", props: { as: { type: [Object, String], defa
|
|
|
21530
21530
|
return (m = Se(a.buttonRef)) == null ? void 0 : m.focus({ preventScroll: !0 });
|
|
21531
21531
|
}));
|
|
21532
21532
|
break;
|
|
21533
|
-
case Nt(a.orientation.value, { vertical:
|
|
21533
|
+
case Nt(a.orientation.value, { vertical: Ae.ArrowDown, horizontal: Ae.ArrowRight }):
|
|
21534
21534
|
return c.preventDefault(), c.stopPropagation(), a.goToOption(Je.Next);
|
|
21535
|
-
case Nt(a.orientation.value, { vertical:
|
|
21535
|
+
case Nt(a.orientation.value, { vertical: Ae.ArrowUp, horizontal: Ae.ArrowLeft }):
|
|
21536
21536
|
return c.preventDefault(), c.stopPropagation(), a.goToOption(Je.Previous);
|
|
21537
|
-
case
|
|
21538
|
-
case
|
|
21537
|
+
case Ae.Home:
|
|
21538
|
+
case Ae.PageUp:
|
|
21539
21539
|
return c.preventDefault(), c.stopPropagation(), a.goToOption(Je.First);
|
|
21540
|
-
case
|
|
21541
|
-
case
|
|
21540
|
+
case Ae.End:
|
|
21541
|
+
case Ae.PageDown:
|
|
21542
21542
|
return c.preventDefault(), c.stopPropagation(), a.goToOption(Je.Last);
|
|
21543
|
-
case
|
|
21543
|
+
case Ae.Escape:
|
|
21544
21544
|
c.preventDefault(), c.stopPropagation(), a.closeListbox(), pe(() => {
|
|
21545
21545
|
var m;
|
|
21546
21546
|
return (m = Se(a.buttonRef)) == null ? void 0 : m.focus({ preventScroll: !0 });
|
|
21547
21547
|
});
|
|
21548
21548
|
break;
|
|
21549
|
-
case
|
|
21549
|
+
case Ae.Tab:
|
|
21550
21550
|
c.preventDefault(), c.stopPropagation();
|
|
21551
21551
|
break;
|
|
21552
21552
|
default:
|
|
@@ -21628,7 +21628,7 @@ const Jv = { class: "pbx-relative" }, Yv = { class: "pbx-flex pbx-justify-start
|
|
|
21628
21628
|
}
|
|
21629
21629
|
},
|
|
21630
21630
|
setup(r) {
|
|
21631
|
-
const { translate: e } =
|
|
21631
|
+
const { translate: e } = Be(), t = Oe(), o = Ee, n = S(null), i = $(() => o.getTextColor);
|
|
21632
21632
|
return Z(
|
|
21633
21633
|
i,
|
|
21634
21634
|
async (a) => {
|
|
@@ -21662,12 +21662,12 @@ const Jv = { class: "pbx-relative" }, Yv = { class: "pbx-flex pbx-justify-start
|
|
|
21662
21662
|
b("div", null, M(y(e)("Text Color")), 1)
|
|
21663
21663
|
])
|
|
21664
21664
|
]),
|
|
21665
|
-
r.globalPageLayout ? (v(), C("span", Xv, " chevron_right ")) :
|
|
21665
|
+
r.globalPageLayout ? (v(), C("span", Xv, " chevron_right ")) : D("", !0)
|
|
21666
21666
|
];
|
|
21667
21667
|
}),
|
|
21668
21668
|
_: 1
|
|
21669
|
-
})) :
|
|
21670
|
-
r.globalPageLayout ?
|
|
21669
|
+
})) : D("", !0),
|
|
21670
|
+
r.globalPageLayout ? D("", !0) : (v(), ce(y(Po), {
|
|
21671
21671
|
key: 1,
|
|
21672
21672
|
class: "pbx-h-10 pbx-w-10 pbx-flex-end pbx-cursor-pointer pbx-rounded-full pbx-flex pbx-items-center pbx-border-none pbx-justify-center pbx-bg-gray-200 pbx-aspect-square hover:pbx-bg-gray-100 hover:pbx-fill-white focus-visible:pbx-ring-0"
|
|
21673
21673
|
}, {
|
|
@@ -21695,7 +21695,7 @@ const Jv = { class: "pbx-relative" }, Yv = { class: "pbx-flex pbx-justify-start
|
|
|
21695
21695
|
default: U(() => [
|
|
21696
21696
|
H(y(si), { class: "pbx-absolute pbx-min-w-[12rem] pbx-z-40 pbx-mt-1 pbx-max-h-56 pbx-w-full pbx-overflow-auto pbx-rounded-md pbx-bg-gray-50 pbx-py-1 pbx-text-base pbx-shadow-lg pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 focus:pbx-outline-none sm:pbx-text-sm" }, {
|
|
21697
21697
|
default: U(() => [
|
|
21698
|
-
(v(!0), C(
|
|
21698
|
+
(v(!0), C(ae, null, me(y(zi).textColorVariables, (l) => (v(), ce(y(li), {
|
|
21699
21699
|
as: "template",
|
|
21700
21700
|
onClick: s[0] || (s[0] = (p) => y(t).handleTextColor(n.value)),
|
|
21701
21701
|
key: l,
|
|
@@ -21711,13 +21711,13 @@ const Jv = { class: "pbx-relative" }, Yv = { class: "pbx-flex pbx-justify-start
|
|
|
21711
21711
|
l === "none" ? (v(), C("div", e5, s[2] || (s[2] = [
|
|
21712
21712
|
b("span", { class: "material-symbols-outlined" }, " invert_colors ", -1),
|
|
21713
21713
|
b("span", { class: "pbx-ml-3" }, "Default black", -1)
|
|
21714
|
-
]))) :
|
|
21714
|
+
]))) : D("", !0),
|
|
21715
21715
|
l !== "none" ? (v(), C("div", t5, [
|
|
21716
21716
|
b("div", {
|
|
21717
21717
|
class: X(["pbx-aspect-square pbx-w-6 pbx-h-6 pbx-border-solid pbx-border pbx-border-gray-100 pbx-rounded-sm", `pbx-bg-${l.replace("pbx-text-", "")}`])
|
|
21718
21718
|
}, null, 2),
|
|
21719
21719
|
b("span", r5, M(l), 1)
|
|
21720
|
-
])) :
|
|
21720
|
+
])) : D("", !0)
|
|
21721
21721
|
], 2)
|
|
21722
21722
|
]),
|
|
21723
21723
|
_: 2
|
|
@@ -21750,7 +21750,7 @@ const Jv = { class: "pbx-relative" }, Yv = { class: "pbx-flex pbx-justify-start
|
|
|
21750
21750
|
}
|
|
21751
21751
|
},
|
|
21752
21752
|
setup(r) {
|
|
21753
|
-
const { translate: e } =
|
|
21753
|
+
const { translate: e } = Be(), t = Oe(), o = Ee, n = S(null), i = $(() => o.getBackgroundColor);
|
|
21754
21754
|
return Z(
|
|
21755
21755
|
i,
|
|
21756
21756
|
async (a) => {
|
|
@@ -21782,12 +21782,12 @@ const Jv = { class: "pbx-relative" }, Yv = { class: "pbx-flex pbx-justify-start
|
|
|
21782
21782
|
}, null, 2),
|
|
21783
21783
|
b("div", null, M(y(e)("Background Color")), 1)
|
|
21784
21784
|
]),
|
|
21785
|
-
r.globalPageLayout ? (v(), C("span", i5, " chevron_right ")) :
|
|
21785
|
+
r.globalPageLayout ? (v(), C("span", i5, " chevron_right ")) : D("", !0)
|
|
21786
21786
|
];
|
|
21787
21787
|
}),
|
|
21788
21788
|
_: 1
|
|
21789
|
-
})) :
|
|
21790
|
-
r.globalPageLayout ?
|
|
21789
|
+
})) : D("", !0),
|
|
21790
|
+
r.globalPageLayout ? D("", !0) : (v(), ce(y(Po), {
|
|
21791
21791
|
key: 1,
|
|
21792
21792
|
class: "pbx-h-10 pbx-w-10 pbx-flex-end pbx-cursor-pointer pbx-rounded-full pbx-flex pbx-items-center pbx-border-none pbx-justify-center pbx-bg-gray-200 pbx-aspect-square hover:pbx-bg-gray-100 hover:pbx-fill-white focus-visible:pbx-ring-0"
|
|
21793
21793
|
}, {
|
|
@@ -21815,7 +21815,7 @@ const Jv = { class: "pbx-relative" }, Yv = { class: "pbx-flex pbx-justify-start
|
|
|
21815
21815
|
default: U(() => [
|
|
21816
21816
|
H(y(si), { class: "pbx-absolute pbx-min-w-[12rem] pbx-z-40 pbx-mt-1 pbx-max-h-56 pbx-w-full pbx-overflow-auto pbx-rounded-md pbx-bg-gray-50 pbx-py-1 pbx-text-base pbx-shadow-lg pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 focus:pbx-outline-none sm:pbx-text-sm" }, {
|
|
21817
21817
|
default: U(() => [
|
|
21818
|
-
(v(!0), C(
|
|
21818
|
+
(v(!0), C(ae, null, me(y(zi).backgroundColorVariables, (l) => (v(), ce(y(li), {
|
|
21819
21819
|
as: "template",
|
|
21820
21820
|
onClick: s[0] || (s[0] = (p) => y(t).handleBackgroundColor(n.value)),
|
|
21821
21821
|
key: l,
|
|
@@ -21831,13 +21831,13 @@ const Jv = { class: "pbx-relative" }, Yv = { class: "pbx-flex pbx-justify-start
|
|
|
21831
21831
|
l === "none" ? (v(), C("div", l5, [
|
|
21832
21832
|
s[2] || (s[2] = b("span", { class: "material-symbols-outlined" }, " ev_shadow ", -1)),
|
|
21833
21833
|
b("span", p5, M(y(e)("Transparent")), 1)
|
|
21834
|
-
])) :
|
|
21834
|
+
])) : D("", !0),
|
|
21835
21835
|
l !== "none" ? (v(), C("div", d5, [
|
|
21836
21836
|
b("div", {
|
|
21837
21837
|
class: X(["pbx-aspect-square pbx-w-6 pbx-h-6 pbx-border-solid pbx-border pbx-border-gray-100 pbx-rounded-sm", `pbx-bg-${l.replace("pbx-bg-", "")}`])
|
|
21838
21838
|
}, null, 2),
|
|
21839
21839
|
b("span", c5, M(l), 1)
|
|
21840
|
-
])) :
|
|
21840
|
+
])) : D("", !0)
|
|
21841
21841
|
], 2)
|
|
21842
21842
|
]),
|
|
21843
21843
|
_: 2
|
|
@@ -21865,52 +21865,52 @@ const Jv = { class: "pbx-relative" }, Yv = { class: "pbx-flex pbx-justify-start
|
|
|
21865
21865
|
}, w5 = {
|
|
21866
21866
|
__name: "EditGetElement",
|
|
21867
21867
|
setup(r) {
|
|
21868
|
-
const e =
|
|
21868
|
+
const { translate: e } = Be(), t = Oe(), o = Ee, n = Hr("CustomMediaComponent"), i = $(() => o.getElement);
|
|
21869
21869
|
$(() => {
|
|
21870
|
-
var
|
|
21871
|
-
return (
|
|
21870
|
+
var ne;
|
|
21871
|
+
return (ne = i.value) == null ? void 0 : ne.tagName;
|
|
21872
21872
|
});
|
|
21873
|
-
const
|
|
21874
|
-
const
|
|
21875
|
-
return
|
|
21876
|
-
}),
|
|
21877
|
-
|
|
21878
|
-
|
|
21879
|
-
},
|
|
21880
|
-
|
|
21873
|
+
const a = $(() => {
|
|
21874
|
+
const ne = o.getShowModalTipTap;
|
|
21875
|
+
return ne && E(), ne;
|
|
21876
|
+
}), s = $(() => o.getComponent), l = S(""), p = S(1), d = S(""), c = S(""), m = S(""), u = S(null), x = S(null), h = S(null), g = S(null), w = S(null), E = function() {
|
|
21877
|
+
t.toggleTipTapModal(!0), l.value = "success", p.value = 2, d.value = e("Manage Content"), c.value = null, m.value = null, u.value = null, x.value = "Save", h.value = function() {
|
|
21878
|
+
t.toggleTipTapModal(!1);
|
|
21879
|
+
}, w.value = function() {
|
|
21880
|
+
t.toggleTipTapModal(!0);
|
|
21881
21881
|
};
|
|
21882
|
-
},
|
|
21883
|
-
|
|
21884
|
-
|
|
21882
|
+
}, k = $(() => o.getBasePrimaryImage), f = S(!1), O = S(""), T = S(""), P = S(""), z = S(null), j = S(null), N = S(null), L = function() {
|
|
21883
|
+
f.value = !0, O.value = e("Media Library"), T.value = null, P.value = e("Close"), z.value = e(" Select image"), N.value = function() {
|
|
21884
|
+
f.value = !1;
|
|
21885
21885
|
};
|
|
21886
|
-
},
|
|
21887
|
-
|
|
21888
|
-
const
|
|
21889
|
-
return K.value =
|
|
21890
|
-
},
|
|
21886
|
+
}, _ = S(null), q = S(""), se = S(!1), ue = function() {
|
|
21887
|
+
_.value = null;
|
|
21888
|
+
const ne = /^https?:\/\//, K = S(!0);
|
|
21889
|
+
return K.value = ne.test(q.value), K.value === !1 ? (_.value = "The provided URL is invalid. Please ensure that it begins with 'https://' for proper formatting and security.", !0) : !1;
|
|
21890
|
+
}, de = function() {
|
|
21891
21891
|
var K;
|
|
21892
|
-
|
|
21893
|
-
const
|
|
21894
|
-
|
|
21895
|
-
|
|
21896
|
-
},
|
|
21897
|
-
|
|
21892
|
+
_.value = null;
|
|
21893
|
+
const ne = i.value && ((K = i.value.firstElementChild) == null ? void 0 : K.tagName) === "IFRAME" && i.value.firstElementChild.hasAttribute("src") && i.value.firstElementChild.getAttribute("src").trim() !== "" ? i.value.firstElementChild.src : "";
|
|
21894
|
+
q.value = ne, se.value = !0, l.value = "success", p.value = 2, d.value = "Add video url", c.value = null, m.value = e("Close"), u.value = "Save", x.value = null, h.value = function() {
|
|
21895
|
+
se.value = !1;
|
|
21896
|
+
}, g.value = function() {
|
|
21897
|
+
ue() || (i.value && i.value.firstElementChild && i.value.firstElementChild.tagName === "IFRAME" && (q.value = q.value.replace("watch?v=", "embed/"), q.value = q.value.replace(/&ab_channel=[^&]*/, "").replace(/&list=[^&]*/, "").replace(/&start_radio=[^&]*/, "").replace(/&t=[^&]*/, ""), i.value.firstElementChild.src = q.value), se.value = !1);
|
|
21898
21898
|
};
|
|
21899
21899
|
};
|
|
21900
|
-
return $(() =>
|
|
21900
|
+
return $(() => o.getRestoredElement), (ne, K) => (v(), C("div", null, [
|
|
21901
21901
|
H(ko, {
|
|
21902
|
-
showDynamicModalBuilder:
|
|
21902
|
+
showDynamicModalBuilder: se.value,
|
|
21903
21903
|
maxWidth: "2xl",
|
|
21904
|
-
type:
|
|
21905
|
-
gridColumnAmount:
|
|
21906
|
-
title:
|
|
21907
|
-
description:
|
|
21908
|
-
firstButtonText:
|
|
21909
|
-
secondButtonText:
|
|
21910
|
-
thirdButtonText:
|
|
21911
|
-
onFirstModalButtonFunctionDynamicModalBuilder:
|
|
21912
|
-
onSecondModalButtonFunctionDynamicModalBuilder:
|
|
21913
|
-
onThirdModalButtonFunctionDynamicModalBuilder:
|
|
21904
|
+
type: l.value,
|
|
21905
|
+
gridColumnAmount: p.value,
|
|
21906
|
+
title: d.value,
|
|
21907
|
+
description: c.value,
|
|
21908
|
+
firstButtonText: m.value,
|
|
21909
|
+
secondButtonText: u.value,
|
|
21910
|
+
thirdButtonText: x.value,
|
|
21911
|
+
onFirstModalButtonFunctionDynamicModalBuilder: h.value,
|
|
21912
|
+
onSecondModalButtonFunctionDynamicModalBuilder: g.value,
|
|
21913
|
+
onThirdModalButtonFunctionDynamicModalBuilder: w.value
|
|
21914
21914
|
}, {
|
|
21915
21915
|
default: U(() => [
|
|
21916
21916
|
K[4] || (K[4] = b("header", null, null, -1)),
|
|
@@ -21923,16 +21923,16 @@ const Jv = { class: "pbx-relative" }, Yv = { class: "pbx-flex pbx-justify-start
|
|
|
21923
21923
|
class: "pbx-myPrimaryInputLabel"
|
|
21924
21924
|
}, "Video url:", -1)),
|
|
21925
21925
|
ye(b("input", {
|
|
21926
|
-
"onUpdate:modelValue": K[0] || (K[0] = (
|
|
21926
|
+
"onUpdate:modelValue": K[0] || (K[0] = (re) => q.value = re),
|
|
21927
21927
|
type: "text",
|
|
21928
21928
|
class: "pbx-myPrimaryInput",
|
|
21929
21929
|
name: "video"
|
|
21930
21930
|
}, null, 512), [
|
|
21931
|
-
[Ln,
|
|
21931
|
+
[Ln, q.value]
|
|
21932
21932
|
]),
|
|
21933
|
-
|
|
21934
|
-
b("p", g5, M(
|
|
21935
|
-
])) :
|
|
21933
|
+
_.value ? (v(), C("div", x5, [
|
|
21934
|
+
b("p", g5, M(_.value), 1)
|
|
21935
|
+
])) : D("", !0)
|
|
21936
21936
|
])
|
|
21937
21937
|
])
|
|
21938
21938
|
])
|
|
@@ -21943,18 +21943,18 @@ const Jv = { class: "pbx-relative" }, Yv = { class: "pbx-flex pbx-justify-start
|
|
|
21943
21943
|
}, 8, ["showDynamicModalBuilder", "type", "gridColumnAmount", "title", "description", "firstButtonText", "secondButtonText", "thirdButtonText", "onFirstModalButtonFunctionDynamicModalBuilder", "onSecondModalButtonFunctionDynamicModalBuilder", "onThirdModalButtonFunctionDynamicModalBuilder"]),
|
|
21944
21944
|
H(ko, {
|
|
21945
21945
|
simpleModal: !0,
|
|
21946
|
-
showDynamicModalBuilder:
|
|
21946
|
+
showDynamicModalBuilder: a.value,
|
|
21947
21947
|
maxWidth: "6xl",
|
|
21948
|
-
type:
|
|
21949
|
-
gridColumnAmount:
|
|
21950
|
-
title:
|
|
21951
|
-
description:
|
|
21952
|
-
firstButtonText:
|
|
21953
|
-
secondButtonText:
|
|
21954
|
-
thirdButtonText:
|
|
21955
|
-
onFirstModalButtonFunctionDynamicModalBuilder:
|
|
21956
|
-
onSecondModalButtonFunctionDynamicModalBuilder:
|
|
21957
|
-
onThirdModalButtonFunctionDynamicModalBuilder:
|
|
21948
|
+
type: l.value,
|
|
21949
|
+
gridColumnAmount: p.value,
|
|
21950
|
+
title: d.value,
|
|
21951
|
+
description: c.value,
|
|
21952
|
+
firstButtonText: m.value,
|
|
21953
|
+
secondButtonText: u.value,
|
|
21954
|
+
thirdButtonText: x.value,
|
|
21955
|
+
onFirstModalButtonFunctionDynamicModalBuilder: h.value,
|
|
21956
|
+
onSecondModalButtonFunctionDynamicModalBuilder: g.value,
|
|
21957
|
+
onThirdModalButtonFunctionDynamicModalBuilder: w.value
|
|
21958
21958
|
}, {
|
|
21959
21959
|
default: U(() => [
|
|
21960
21960
|
K[5] || (K[5] = b("header", null, null, -1)),
|
|
@@ -21966,32 +21966,32 @@ const Jv = { class: "pbx-relative" }, Yv = { class: "pbx-flex pbx-justify-start
|
|
|
21966
21966
|
__: [5]
|
|
21967
21967
|
}, 8, ["showDynamicModalBuilder", "type", "gridColumnAmount", "title", "description", "firstButtonText", "secondButtonText", "thirdButtonText", "onFirstModalButtonFunctionDynamicModalBuilder", "onSecondModalButtonFunctionDynamicModalBuilder", "onThirdModalButtonFunctionDynamicModalBuilder"]),
|
|
21968
21968
|
H(mu, {
|
|
21969
|
-
open:
|
|
21970
|
-
title:
|
|
21971
|
-
description:
|
|
21972
|
-
firstButtonText:
|
|
21973
|
-
secondButtonText:
|
|
21974
|
-
thirdButtonText:
|
|
21975
|
-
customMediaComponent: y(
|
|
21976
|
-
onFirstMediaButtonFunction:
|
|
21969
|
+
open: f.value,
|
|
21970
|
+
title: O.value,
|
|
21971
|
+
description: T.value,
|
|
21972
|
+
firstButtonText: P.value,
|
|
21973
|
+
secondButtonText: z.value,
|
|
21974
|
+
thirdButtonText: j.value,
|
|
21975
|
+
customMediaComponent: y(n),
|
|
21976
|
+
onFirstMediaButtonFunction: N.value
|
|
21977
21977
|
}, null, 8, ["open", "title", "description", "firstButtonText", "secondButtonText", "thirdButtonText", "customMediaComponent", "onFirstMediaButtonFunction"]),
|
|
21978
|
-
|
|
21978
|
+
D("", !0),
|
|
21979
21979
|
b("div", {
|
|
21980
|
-
class: X(["pbx-flex pbx-items-center pbx-justify-center pbx-gap-2", { "":
|
|
21980
|
+
class: X(["pbx-flex pbx-items-center pbx-justify-center pbx-gap-2", { "": i.value }])
|
|
21981
21981
|
}, [
|
|
21982
|
-
y(
|
|
21982
|
+
y(t).ElOrFirstChildIsIframe() ? (v(), C("div", f5, [
|
|
21983
21983
|
b("button", {
|
|
21984
|
-
onClick:
|
|
21984
|
+
onClick: de,
|
|
21985
21985
|
type: "button",
|
|
21986
21986
|
class: "pbx-h-10 pbx-w-10 pbx-flex-end pbx-cursor-pointer pbx-rounded-full pbx-flex pbx-items-center pbx-border-none pbx-justify-center pbx-bg-gray-200 pbx-aspect-square hover:pbx-bg-gray-100 hover:pbx-fill-white focus-visible:pbx-ring-0"
|
|
21987
21987
|
}, K[7] || (K[7] = [
|
|
21988
21988
|
b("span", { class: "material-symbols-outlined" }, " play_circle ", -1)
|
|
21989
21989
|
]))
|
|
21990
|
-
])) :
|
|
21991
|
-
y(
|
|
21990
|
+
])) : D("", !0),
|
|
21991
|
+
y(t).isSelectedElementValidText() && !y(t).ElOrFirstChildIsIframe() ? (v(), C(ae, { key: 1 }, [
|
|
21992
21992
|
b("div", { class: "pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-w-max" }, [
|
|
21993
21993
|
b("button", {
|
|
21994
|
-
onClick:
|
|
21994
|
+
onClick: E,
|
|
21995
21995
|
type: "button",
|
|
21996
21996
|
class: "pbx-h-10 pbx-w-10 pbx-flex-end pbx-cursor-pointer pbx-rounded-full pbx-flex pbx-items-center pbx-border-none pbx-justify-center pbx-bg-gray-200 pbx-aspect-square hover:pbx-bg-gray-100 hover:pbx-fill-white focus-visible:pbx-ring-0"
|
|
21997
21997
|
}, K[8] || (K[8] = [
|
|
@@ -21999,32 +21999,32 @@ const Jv = { class: "pbx-relative" }, Yv = { class: "pbx-flex pbx-justify-start
|
|
|
21999
21999
|
]))
|
|
22000
22000
|
]),
|
|
22001
22001
|
H(Cu)
|
|
22002
|
-
], 64)) :
|
|
22003
|
-
|
|
22002
|
+
], 64)) : D("", !0),
|
|
22003
|
+
i.value && s.value && k.value !== null && !y(t).ElOrFirstChildIsIframe() ? (v(), C("div", y5, [
|
|
22004
22004
|
b("button", {
|
|
22005
|
-
onClick:
|
|
22005
|
+
onClick: L,
|
|
22006
22006
|
type: "button",
|
|
22007
22007
|
class: "pbx-h-10 pbx-w-10 pbx-flex-end pbx-cursor-pointer pbx-rounded-full pbx-flex pbx-items-center pbx-border-none pbx-justify-center pbx-bg-gray-200 pbx-aspect-square hover:pbx-bg-gray-100 hover:pbx-fill-white focus-visible:pbx-ring-0"
|
|
22008
22008
|
}, K[9] || (K[9] = [
|
|
22009
22009
|
b("span", { class: "material-symbols-outlined" }, " add_photo_alternate ", -1)
|
|
22010
22010
|
]))
|
|
22011
|
-
])) :
|
|
22012
|
-
|
|
22013
|
-
|
|
22011
|
+
])) : D("", !0),
|
|
22012
|
+
i.value && i.value.nodeType === 1 && !k.value && !y(t).ElOrFirstChildIsIframe() ? (v(), ce(Mu, { key: 3 })) : D("", !0),
|
|
22013
|
+
i.value ? (v(), C("button", {
|
|
22014
22014
|
key: 4,
|
|
22015
|
-
onClick: K[1] || (K[1] = (...
|
|
22015
|
+
onClick: K[1] || (K[1] = (...re) => y(t).deleteElementFromDOM && y(t).deleteElementFromDOM(...re)),
|
|
22016
22016
|
type: "button",
|
|
22017
22017
|
class: "pbx-h-10 pbx-w-10 pbx-flex-end pbx-cursor-pointer pbx-rounded-full pbx-flex pbx-items-center pbx-border-none pbx-justify-center pbx-bg-gray-200 pbx-aspect-square hover:pbx-bg-gray-100 hover:pbx-fill-white focus-visible:pbx-ring-0"
|
|
22018
22018
|
}, K[10] || (K[10] = [
|
|
22019
22019
|
b("span", { class: "material-symbols-outlined" }, " delete ", -1)
|
|
22020
|
-
]))) :
|
|
22021
|
-
|
|
22020
|
+
]))) : D("", !0),
|
|
22021
|
+
i.value && s.value ? (v(), C("div", {
|
|
22022
22022
|
key: 5,
|
|
22023
22023
|
class: "pbx-h-10 pbx-w-10 pbx-flex-end pbx-cursor-pointer pbx-rounded-full pbx-flex pbx-items-center pbx-border-none pbx-justify-center pbx-bg-gray-200 pbx-aspect-square hover:pbx-bg-gray-100 hover:pbx-fill-white focus-visible:pbx-ring-0",
|
|
22024
|
-
onClick: K[2] || (K[2] = (
|
|
22024
|
+
onClick: K[2] || (K[2] = (re) => y(t).clearHtmlSelection())
|
|
22025
22025
|
}, K[11] || (K[11] = [
|
|
22026
|
-
b("span", { class: "material-symbols-outlined" }, " close
|
|
22027
|
-
]))) :
|
|
22026
|
+
b("span", { class: "material-symbols-outlined" }, " close", -1)
|
|
22027
|
+
]))) : D("", !0)
|
|
22028
22028
|
], 2)
|
|
22029
22029
|
]));
|
|
22030
22030
|
}
|
|
@@ -22605,7 +22605,7 @@ const E5 = { class: "pbx-mb-8" }, T5 = { class: "pbx-myQuaternaryHeader pbx-mb-4
|
|
|
22605
22605
|
}
|
|
22606
22606
|
},
|
|
22607
22607
|
setup(r) {
|
|
22608
|
-
const { translate: e } =
|
|
22608
|
+
const { translate: e } = Be(), t = Oe(), { closeAddComponentModal: o } = M5(), n = async function(s) {
|
|
22609
22609
|
await t.addComponent(s), o();
|
|
22610
22610
|
}, i = function(s) {
|
|
22611
22611
|
return {
|
|
@@ -22619,13 +22619,13 @@ const E5 = { class: "pbx-mb-8" }, T5 = { class: "pbx-myQuaternaryHeader pbx-mb-4
|
|
|
22619
22619
|
b("div", E5, [
|
|
22620
22620
|
b("h3", T5, M(y(e)("Helper Components")), 1),
|
|
22621
22621
|
b("div", O5, [
|
|
22622
|
-
(v(!0), C(
|
|
22622
|
+
(v(!0), C(ae, null, me(y(v5), (p) => (v(), C("div", {
|
|
22623
22623
|
key: p.title,
|
|
22624
22624
|
class: "pbx-border-solid pbx-border pbx-border-gray-400 pbx-overflow-hidden hover:pbx-border-myPrimaryLinkColor pbx-duration-100 pbx-cursor-pointer pbx-p-4",
|
|
22625
22625
|
onClick: (d) => n(p)
|
|
22626
22626
|
}, [
|
|
22627
22627
|
b("div", P5, [
|
|
22628
|
-
|
|
22628
|
+
D("", !0),
|
|
22629
22629
|
b("h4", A5, M(p.title), 1)
|
|
22630
22630
|
]),
|
|
22631
22631
|
b("div", N5, M(y(e)("Click to add")) + " " + M(p.title.toLowerCase()) + " " + M(y(e)("component")), 1)
|
|
@@ -22635,7 +22635,7 @@ const E5 = { class: "pbx-mb-8" }, T5 = { class: "pbx-myQuaternaryHeader pbx-mb-4
|
|
|
22635
22635
|
r.customMediaComponent ? (v(), C("div", D5, [
|
|
22636
22636
|
b("h3", L5, M(y(e)("Layout Components")), 1),
|
|
22637
22637
|
b("div", I5, [
|
|
22638
|
-
(v(!0), C(
|
|
22638
|
+
(v(!0), C(ae, null, me(y(C5)[0].components.data, (p) => (v(), C("div", {
|
|
22639
22639
|
key: p.title,
|
|
22640
22640
|
class: "pbx-border-solid pbx-border pbx-border-gray-400 pbx-overflow-hidden hover:pbx-border-myPrimaryLinkColor pbx-duration-100 pbx-cursor-pointer",
|
|
22641
22641
|
onClick: (d) => n(i(p))
|
|
@@ -22652,7 +22652,7 @@ const E5 = { class: "pbx-mb-8" }, T5 = { class: "pbx-myQuaternaryHeader pbx-mb-4
|
|
|
22652
22652
|
])
|
|
22653
22653
|
], 8, _5))), 128))
|
|
22654
22654
|
])
|
|
22655
|
-
])) :
|
|
22655
|
+
])) : D("", !0)
|
|
22656
22656
|
]));
|
|
22657
22657
|
}
|
|
22658
22658
|
}), V5 = /* @__PURE__ */ Ka(H5, [["__scopeId", "data-v-35eef34c"]]), W5 = { class: "pbx-w-full pbx-inset-x-0 pbx-bg-white pbx-overflow-x-auto lg:pbx-pt-2 pbx-pt-2" }, U5 = { key: 0 }, q5 = {
|
|
@@ -22708,7 +22708,7 @@ const E5 = { class: "pbx-mb-8" }, T5 = { class: "pbx-myQuaternaryHeader pbx-mb-4
|
|
|
22708
22708
|
class: "pbx-mySecondaryButton",
|
|
22709
22709
|
type: "button",
|
|
22710
22710
|
onClick: n
|
|
22711
|
-
}, M(r.firstButtonText), 513)) :
|
|
22711
|
+
}, M(r.firstButtonText), 513)) : D("", !0)
|
|
22712
22712
|
])
|
|
22713
22713
|
])
|
|
22714
22714
|
]),
|
|
@@ -22739,8 +22739,8 @@ function e3(r, e, t, o, n, i) {
|
|
|
22739
22739
|
b("p", X5, [
|
|
22740
22740
|
bo(r.$slots, "title")
|
|
22741
22741
|
]),
|
|
22742
|
-
o.expanded ? (v(), C("span", Q5, " keyboard_arrow_down ")) :
|
|
22743
|
-
o.expanded ?
|
|
22742
|
+
o.expanded ? (v(), C("span", Q5, " keyboard_arrow_down ")) : D("", !0),
|
|
22743
|
+
o.expanded ? D("", !0) : (v(), C("span", Z5, " chevron_right "))
|
|
22744
22744
|
]),
|
|
22745
22745
|
b("div", {
|
|
22746
22746
|
class: X([[o.expanded ? "pbx-block" : "pbx-hidden"], "pbx-px-4 pbx-ease-linear pbx-duration-75 pbx-pb-8"])
|
|
@@ -22758,7 +22758,7 @@ const Xt = /* @__PURE__ */ Ka(Y5, [["render", e3]]), t3 = { class: "pbx-myPrimar
|
|
|
22758
22758
|
}, wc = {
|
|
22759
22759
|
__name: "ClassEditor",
|
|
22760
22760
|
setup(r) {
|
|
22761
|
-
const { translate: e } =
|
|
22761
|
+
const { translate: e } = Be(), t = Oe(), o = Ee, n = S(null), i = $(() => o.getCurrentClasses);
|
|
22762
22762
|
Z(
|
|
22763
22763
|
i,
|
|
22764
22764
|
(p) => {
|
|
@@ -22789,7 +22789,7 @@ const Xt = /* @__PURE__ */ Ka(Y5, [["render", e3]]), t3 = { class: "pbx-myPrimar
|
|
|
22789
22789
|
"This is the CSS applied by the builder. Add your own CSS and press Enter to apply it to the selected element."
|
|
22790
22790
|
)), 1),
|
|
22791
22791
|
b("div", r3, [
|
|
22792
|
-
(v(!0), C(
|
|
22792
|
+
(v(!0), C(ae, null, me(n.value, (c) => (v(), C("div", {
|
|
22793
22793
|
key: c,
|
|
22794
22794
|
class: "pbx-myPrimaryTag pbx-cursor-pointer hover:pbx-bg-myPrimaryErrorColor hover:pbx-text-white pbx-text-xs pbx-py-2 pbx-font-medium",
|
|
22795
22795
|
onClick: async () => {
|
|
@@ -22826,7 +22826,7 @@ const Xt = /* @__PURE__ */ Ka(Y5, [["render", e3]]), t3 = { class: "pbx-myPrimar
|
|
|
22826
22826
|
}, M(y(e)("Add")), 1)
|
|
22827
22827
|
])
|
|
22828
22828
|
]),
|
|
22829
|
-
s.value ? (v(), C("p", p3, M(s.value), 1)) :
|
|
22829
|
+
s.value ? (v(), C("p", p3, M(s.value), 1)) : D("", !0)
|
|
22830
22830
|
]),
|
|
22831
22831
|
_: 1
|
|
22832
22832
|
}));
|
|
@@ -22840,7 +22840,7 @@ const Xt = /* @__PURE__ */ Ka(Y5, [["render", e3]]), t3 = { class: "pbx-myPrimar
|
|
|
22840
22840
|
}, vc = {
|
|
22841
22841
|
__name: "StyleEditor",
|
|
22842
22842
|
setup(r) {
|
|
22843
|
-
const { translate: e } =
|
|
22843
|
+
const { translate: e } = Be(), t = Oe(), o = Ee, n = S(null), i = $(() => o.getCurrentStyles);
|
|
22844
22844
|
Z(
|
|
22845
22845
|
i,
|
|
22846
22846
|
(m) => {
|
|
@@ -22871,7 +22871,7 @@ const Xt = /* @__PURE__ */ Ka(Y5, [["render", e3]]), t3 = { class: "pbx-myPrimar
|
|
|
22871
22871
|
"These are the inline styles applied by the builder. Add your own styles and press Enter to apply them to the selected element."
|
|
22872
22872
|
)), 1),
|
|
22873
22873
|
b("div", c3, [
|
|
22874
|
-
(v(!0), C(
|
|
22874
|
+
(v(!0), C(ae, null, me(n.value, (x, h) => (v(), C("div", {
|
|
22875
22875
|
key: h,
|
|
22876
22876
|
class: "pbx-myPrimaryTag pbx-cursor-pointer hover:pbx-bg-myPrimaryErrorColor hover:pbx-text-white pbx-text-xs pbx-py-2 pbx-font-medium",
|
|
22877
22877
|
onClick: async () => {
|
|
@@ -22917,7 +22917,7 @@ const Xt = /* @__PURE__ */ Ka(Y5, [["render", e3]]), t3 = { class: "pbx-myPrimar
|
|
|
22917
22917
|
}, M(y(e)("Add")), 1)
|
|
22918
22918
|
])
|
|
22919
22919
|
]),
|
|
22920
|
-
l.value ? (v(), C("p", y3, M(l.value), 1)) :
|
|
22920
|
+
l.value ? (v(), C("p", y3, M(l.value), 1)) : D("", !0)
|
|
22921
22921
|
]),
|
|
22922
22922
|
_: 1
|
|
22923
22923
|
}));
|
|
@@ -22932,42 +22932,42 @@ function w3(r) {
|
|
|
22932
22932
|
const v3 = ["src"], k3 = {
|
|
22933
22933
|
__name: "ImageEditor",
|
|
22934
22934
|
setup(r) {
|
|
22935
|
-
const e =
|
|
22936
|
-
|
|
22937
|
-
|
|
22935
|
+
const { translate: e } = Be(), t = Ee, o = Hr("CustomMediaComponent"), n = S(!1), i = S(!1), a = S(""), s = S(""), l = S(""), p = S(null), d = S(null), c = S(null), m = $(() => (t.getBasePrimaryImage && x(t.getBasePrimaryImage), t.getBasePrimaryImage)), u = function() {
|
|
22936
|
+
i.value = !0, a.value = e("Media Library"), s.value = null, l.value = e("Close"), p.value = e(" Select image"), c.value = function() {
|
|
22937
|
+
i.value = !1;
|
|
22938
22938
|
};
|
|
22939
|
-
},
|
|
22940
|
-
|
|
22939
|
+
}, x = async function(h) {
|
|
22940
|
+
n.value = !0, h && typeof h == "string" && h.length > 2 && (await w3(h), await st(200), n.value = !1);
|
|
22941
22941
|
};
|
|
22942
|
-
return (
|
|
22943
|
-
ye(b("div", null,
|
|
22942
|
+
return (h, g) => (v(), C("div", null, [
|
|
22943
|
+
ye(b("div", null, g[0] || (g[0] = [
|
|
22944
22944
|
b("div", { class: "pbx-flex pbx-items-center pbx-justify-center pbx-mt-4 pbx-min-h-80" }, [
|
|
22945
22945
|
b("div", { class: "pbx-inline-block pbx-h-8 pbx-w-8 pbx-animate-spin pbx-rounded-full pbx-border-4 pbx-border-solid pbx-border-current pbx-border-r-transparent pbx-align-[-0.125em] motion-reduce:pbx-animate-[spin_1.5s_linear_infinite]" }, [
|
|
22946
22946
|
b("span", { class: "!pbx-absolute !pbx-m-px !pbx-h-px !pbx-w-px !pbx-overflow-hidden !pbx-whitespace-nowrap !pbx-border-0 !pbx-p-0 !pbx-[clip:rect(0,0,0,0)]" }, "Loading...")
|
|
22947
22947
|
])
|
|
22948
22948
|
], -1)
|
|
22949
22949
|
]), 512), [
|
|
22950
|
-
[Ls,
|
|
22950
|
+
[Ls, n.value]
|
|
22951
22951
|
]),
|
|
22952
22952
|
ye(b("div", null, [
|
|
22953
22953
|
b("img", {
|
|
22954
22954
|
class: "pbx-object-cover pbx-object-center pbx-w-full pbx-cursor-pointer",
|
|
22955
|
-
src:
|
|
22956
|
-
onClick:
|
|
22955
|
+
src: m.value,
|
|
22956
|
+
onClick: u,
|
|
22957
22957
|
alt: "image"
|
|
22958
22958
|
}, null, 8, v3)
|
|
22959
22959
|
], 512), [
|
|
22960
|
-
[Ls,
|
|
22960
|
+
[Ls, m.value && !n.value]
|
|
22961
22961
|
]),
|
|
22962
22962
|
H(mu, {
|
|
22963
|
-
open:
|
|
22964
|
-
title:
|
|
22965
|
-
description:
|
|
22966
|
-
firstButtonText:
|
|
22967
|
-
secondButtonText:
|
|
22968
|
-
thirdButtonText:
|
|
22969
|
-
customMediaComponent: y(
|
|
22970
|
-
onFirstMediaButtonFunction:
|
|
22963
|
+
open: i.value,
|
|
22964
|
+
title: a.value,
|
|
22965
|
+
description: s.value,
|
|
22966
|
+
firstButtonText: l.value,
|
|
22967
|
+
secondButtonText: p.value,
|
|
22968
|
+
thirdButtonText: d.value,
|
|
22969
|
+
customMediaComponent: y(o),
|
|
22970
|
+
onFirstMediaButtonFunction: c.value
|
|
22971
22971
|
}, null, 8, ["open", "title", "description", "firstButtonText", "secondButtonText", "thirdButtonText", "customMediaComponent", "onFirstMediaButtonFunction"])
|
|
22972
22972
|
]));
|
|
22973
22973
|
}
|
|
@@ -23009,11 +23009,11 @@ const v3 = ["src"], k3 = {
|
|
|
23009
23009
|
b("div", { class: "pbx-myPrimaryColorPreview pbx-border-none" }, [
|
|
23010
23010
|
b("span", { class: "material-symbols-outlined" }, " ev_shadow ")
|
|
23011
23011
|
], -1)
|
|
23012
|
-
]))) :
|
|
23012
|
+
]))) : D("", !0),
|
|
23013
23013
|
o.value !== "none" ? (v(), C("div", {
|
|
23014
23014
|
key: 1,
|
|
23015
23015
|
class: X(["pbx-aspect-square pbx-w-6 pbx-h-6 pbx-bg-gray-950", `${o.value}`])
|
|
23016
|
-
}, null, 2)) :
|
|
23016
|
+
}, null, 2)) : D("", !0),
|
|
23017
23017
|
b("span", {
|
|
23018
23018
|
class: X(["pbx-block pbx-truncate", [(o.value !== "none", "")]])
|
|
23019
23019
|
}, M(o.value === "none" ? "Transparent" : o.value), 3)
|
|
@@ -23033,7 +23033,7 @@ const v3 = ["src"], k3 = {
|
|
|
23033
23033
|
default: U(() => [
|
|
23034
23034
|
H(y(si), { class: "pbx-absolute pbx-z-10 pbx-mt-1 pbx-max-h-56 pbx-w-full pbx-overflow-auto pbx-rounded-md pbx-bg-white pbx-text-base pbx-shadow-lg pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 focus:pbx-outline-none sm:pbx-text-sm pbx-list-none pbx-p-0 pbx-m-0" }, {
|
|
23035
23035
|
default: U(() => [
|
|
23036
|
-
(v(!0), C(
|
|
23036
|
+
(v(!0), C(ae, null, me(y(Fi).backgroundOpacities, (s) => (v(), ce(y(li), {
|
|
23037
23037
|
as: "template",
|
|
23038
23038
|
onClick: (l) => y(e).handleBackgroundOpacity(s),
|
|
23039
23039
|
key: s,
|
|
@@ -23051,13 +23051,13 @@ const v3 = ["src"], k3 = {
|
|
|
23051
23051
|
b("div", { class: "pbx-myPrimaryColorPreview pbx-border-none" }, [
|
|
23052
23052
|
b("span", { class: "material-symbols-outlined" }, " ev_shadow ")
|
|
23053
23053
|
], -1)
|
|
23054
|
-
]))) :
|
|
23054
|
+
]))) : D("", !0),
|
|
23055
23055
|
s !== "none" ? (v(), C("div", {
|
|
23056
23056
|
key: 1,
|
|
23057
23057
|
class: X(["pbx-aspect-square pbx-w-6 pbx-h-6 pbx-bg-gray-950", `${s}`])
|
|
23058
|
-
}, null, 2)) :
|
|
23059
|
-
s === "none" ? (v(), C("span", B3, "Transparent")) :
|
|
23060
|
-
s !== "none" ? (v(), C("span", P3, M(s), 1)) :
|
|
23058
|
+
}, null, 2)) : D("", !0),
|
|
23059
|
+
s === "none" ? (v(), C("span", B3, "Transparent")) : D("", !0),
|
|
23060
|
+
s !== "none" ? (v(), C("span", P3, M(s), 1)) : D("", !0)
|
|
23061
23061
|
])
|
|
23062
23062
|
], 2)
|
|
23063
23063
|
]),
|
|
@@ -23113,11 +23113,11 @@ const v3 = ["src"], k3 = {
|
|
|
23113
23113
|
b("div", { class: "pbx-myPrimaryColorPreview pbx-border-none" }, [
|
|
23114
23114
|
b("span", { class: "material-symbols-outlined" }, " ev_shadow ")
|
|
23115
23115
|
], -1)
|
|
23116
|
-
]))) :
|
|
23116
|
+
]))) : D("", !0),
|
|
23117
23117
|
o.value !== "none" ? (v(), C("div", {
|
|
23118
23118
|
key: 1,
|
|
23119
23119
|
class: X(["pbx-aspect-square pbx-w-6 pbx-h-6 pbx-bg-gray-950", `${o.value}`])
|
|
23120
|
-
}, null, 2)) :
|
|
23120
|
+
}, null, 2)) : D("", !0),
|
|
23121
23121
|
b("span", {
|
|
23122
23122
|
class: X(["pbx-block pbx-truncate", [(o.value !== "none", "")]])
|
|
23123
23123
|
}, M(o.value === "none" ? "Transparent" : o.value), 3)
|
|
@@ -23137,7 +23137,7 @@ const v3 = ["src"], k3 = {
|
|
|
23137
23137
|
default: U(() => [
|
|
23138
23138
|
H(y(si), { class: "pbx-absolute pbx-z-10 pbx-mt-1 pbx-max-h-56 pbx-w-full pbx-overflow-auto pbx-rounded-md pbx-bg-white pbx-text-base pbx-shadow-lg pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 focus:pbx-outline-none sm:pbx-text-sm pbx-list-none pbx-p-0 pbx-m-0" }, {
|
|
23139
23139
|
default: U(() => [
|
|
23140
|
-
(v(!0), C(
|
|
23140
|
+
(v(!0), C(ae, null, me(y(Fi).opacities, (s) => (v(), ce(y(li), {
|
|
23141
23141
|
as: "template",
|
|
23142
23142
|
onClick: (l) => y(e).handleOpacity(s),
|
|
23143
23143
|
key: s,
|
|
@@ -23155,13 +23155,13 @@ const v3 = ["src"], k3 = {
|
|
|
23155
23155
|
b("div", { class: "pbx-myPrimaryColorPreview pbx-border-none" }, [
|
|
23156
23156
|
b("span", { class: "material-symbols-outlined" }, " ev_shadow ")
|
|
23157
23157
|
], -1)
|
|
23158
|
-
]))) :
|
|
23158
|
+
]))) : D("", !0),
|
|
23159
23159
|
s !== "none" ? (v(), C("div", {
|
|
23160
23160
|
key: 1,
|
|
23161
23161
|
class: X(["pbx-aspect-square pbx-w-6 pbx-h-6 pbx-bg-gray-950", `${s}`])
|
|
23162
|
-
}, null, 2)) :
|
|
23163
|
-
s === "none" ? (v(), C("span", $3, "Transparent")) :
|
|
23164
|
-
s !== "none" ? (v(), C("span", z3, M(s), 1)) :
|
|
23162
|
+
}, null, 2)) : D("", !0),
|
|
23163
|
+
s === "none" ? (v(), C("span", $3, "Transparent")) : D("", !0),
|
|
23164
|
+
s !== "none" ? (v(), C("span", z3, M(s), 1)) : D("", !0)
|
|
23165
23165
|
])
|
|
23166
23166
|
], 2)
|
|
23167
23167
|
]),
|
|
@@ -23182,7 +23182,7 @@ const v3 = ["src"], k3 = {
|
|
|
23182
23182
|
}, j3 = {
|
|
23183
23183
|
__name: "OpacityEditor",
|
|
23184
23184
|
setup(r) {
|
|
23185
|
-
const { translate: e } =
|
|
23185
|
+
const { translate: e } = Be();
|
|
23186
23186
|
return (t, o) => (v(), ce(Xt, null, {
|
|
23187
23187
|
title: U(() => [
|
|
23188
23188
|
Ce(M(y(e)("Opacity & Transparency")), 1)
|
|
@@ -23222,7 +23222,7 @@ const v3 = ["src"], k3 = {
|
|
|
23222
23222
|
}, kc = {
|
|
23223
23223
|
__name: "Typography",
|
|
23224
23224
|
setup(r) {
|
|
23225
|
-
const { translate: e } =
|
|
23225
|
+
const { translate: e } = Be(), t = Oe(), o = Ee, n = S(null), i = S(null), a = S(null), s = S(null), l = S(null), p = S(null), d = S(null), c = $(() => o.getFontBase), m = $(() => o.getFontDesktop), u = $(() => o.getFontTablet), x = $(() => o.getFontMobile), h = $(() => o.getFontWeight), g = $(() => o.getFontFamily), w = $(() => o.getFontStyle);
|
|
23226
23226
|
return Z(
|
|
23227
23227
|
c,
|
|
23228
23228
|
async (E) => {
|
|
@@ -23271,7 +23271,7 @@ const v3 = ["src"], k3 = {
|
|
|
23271
23271
|
]),
|
|
23272
23272
|
content: U(() => [
|
|
23273
23273
|
b("p", H3, M(y(e)("Font Appearance")), 1),
|
|
23274
|
-
|
|
23274
|
+
D("", !0),
|
|
23275
23275
|
b("div", V3, [
|
|
23276
23276
|
b("label", W3, M(y(e)("Font size")), 1),
|
|
23277
23277
|
ye(b("select", {
|
|
@@ -23281,12 +23281,12 @@ const v3 = ["src"], k3 = {
|
|
|
23281
23281
|
onChange: k[3] || (k[3] = (f) => y(t).handleFontSizeDesktop(i.value))
|
|
23282
23282
|
}, [
|
|
23283
23283
|
b("option", U3, M(y(e)("Select")), 1),
|
|
23284
|
-
(v(!0), C(
|
|
23284
|
+
(v(!0), C(ae, null, me(y(mn).fontDesktop, (f) => (v(), C("option", { key: f }, M(f), 1))), 128))
|
|
23285
23285
|
], 544), [
|
|
23286
23286
|
[qe, i.value]
|
|
23287
23287
|
])
|
|
23288
23288
|
]),
|
|
23289
|
-
|
|
23289
|
+
D("", !0),
|
|
23290
23290
|
k[14] || (k[14] = b("hr", null, null, -1)),
|
|
23291
23291
|
b("div", q3, [
|
|
23292
23292
|
b("label", K3, M(y(e)("Font weight")), 1),
|
|
@@ -23297,7 +23297,7 @@ const v3 = ["src"], k3 = {
|
|
|
23297
23297
|
onChange: k[9] || (k[9] = (f) => y(t).handleFontWeight(l.value))
|
|
23298
23298
|
}, [
|
|
23299
23299
|
b("option", G3, M(y(e)("Select")), 1),
|
|
23300
|
-
(v(!0), C(
|
|
23300
|
+
(v(!0), C(ae, null, me(y(Wo).fontWeight, (f) => (v(), C("option", { key: f }, M(f), 1))), 128))
|
|
23301
23301
|
], 544), [
|
|
23302
23302
|
[qe, l.value]
|
|
23303
23303
|
])
|
|
@@ -23312,7 +23312,7 @@ const v3 = ["src"], k3 = {
|
|
|
23312
23312
|
onChange: k[11] || (k[11] = (f) => y(t).handleFontFamily(p.value))
|
|
23313
23313
|
}, [
|
|
23314
23314
|
b("option", X3, M(y(e)("Select")), 1),
|
|
23315
|
-
(v(!0), C(
|
|
23315
|
+
(v(!0), C(ae, null, me(y(Wo).fontFamily, (f) => (v(), C("option", { key: f }, M(f), 1))), 128))
|
|
23316
23316
|
], 544), [
|
|
23317
23317
|
[qe, p.value]
|
|
23318
23318
|
])
|
|
@@ -23327,7 +23327,7 @@ const v3 = ["src"], k3 = {
|
|
|
23327
23327
|
onChange: k[13] || (k[13] = (f) => y(t).handleFontStyle(d.value))
|
|
23328
23328
|
}, [
|
|
23329
23329
|
b("option", ek, M(y(e)("Select")), 1),
|
|
23330
|
-
(v(!0), C(
|
|
23330
|
+
(v(!0), C(ae, null, me(y(Wo).fontStyle, (f) => (v(), C("option", { key: f }, M(f), 1))), 128))
|
|
23331
23331
|
], 544), [
|
|
23332
23332
|
[qe, d.value]
|
|
23333
23333
|
])
|
|
@@ -23351,7 +23351,7 @@ const v3 = ["src"], k3 = {
|
|
|
23351
23351
|
}, Sc = {
|
|
23352
23352
|
__name: "Padding",
|
|
23353
23353
|
setup(r) {
|
|
23354
|
-
const { translate: e } =
|
|
23354
|
+
const { translate: e } = Be(), t = Oe(), o = Ee, n = S(null), i = S(null), a = S(null), s = S(null), l = $(() => o.getFontVerticalPadding), p = $(() => o.getFontHorizontalPadding), d = $(() => o.getFontVerticalMargin), c = $(() => o.getFontHorizontalMargin);
|
|
23355
23355
|
return Z(
|
|
23356
23356
|
l,
|
|
23357
23357
|
async (m) => {
|
|
@@ -23390,7 +23390,7 @@ const v3 = ["src"], k3 = {
|
|
|
23390
23390
|
onChange: u[1] || (u[1] = (x) => y(t).handleVerticalPadding(n.value))
|
|
23391
23391
|
}, [
|
|
23392
23392
|
b("option", ok, M(y(e)("Select")), 1),
|
|
23393
|
-
(v(!0), C(
|
|
23393
|
+
(v(!0), C(ae, null, me(y(Ar).verticalPadding, (x) => (v(), C("option", { key: x }, M(x), 1))), 128))
|
|
23394
23394
|
], 544), [
|
|
23395
23395
|
[qe, n.value]
|
|
23396
23396
|
])
|
|
@@ -23405,7 +23405,7 @@ const v3 = ["src"], k3 = {
|
|
|
23405
23405
|
onChange: u[3] || (u[3] = (x) => y(t).handleHorizontalPadding(i.value))
|
|
23406
23406
|
}, [
|
|
23407
23407
|
b("option", ak, M(y(e)("Select")), 1),
|
|
23408
|
-
(v(!0), C(
|
|
23408
|
+
(v(!0), C(ae, null, me(y(Ar).horizontalPadding, (x) => (v(), C("option", { key: x }, M(x), 1))), 128))
|
|
23409
23409
|
], 544), [
|
|
23410
23410
|
[qe, i.value]
|
|
23411
23411
|
])
|
|
@@ -23429,7 +23429,7 @@ const v3 = ["src"], k3 = {
|
|
|
23429
23429
|
}, Cc = {
|
|
23430
23430
|
__name: "Margin",
|
|
23431
23431
|
setup(r) {
|
|
23432
|
-
const { translate: e } =
|
|
23432
|
+
const { translate: e } = Be(), t = Oe(), o = Ee, n = S(null), i = S(null), a = S(null), s = S(null), l = $(() => o.getFontVerticalPadding), p = $(() => o.getFontHorizontalPadding), d = $(() => o.getFontVerticalMargin), c = $(() => o.getFontHorizontalMargin);
|
|
23433
23433
|
return Z(
|
|
23434
23434
|
l,
|
|
23435
23435
|
async (m) => {
|
|
@@ -23468,7 +23468,7 @@ const v3 = ["src"], k3 = {
|
|
|
23468
23468
|
onChange: u[1] || (u[1] = (x) => y(t).handleVerticalMargin(a.value))
|
|
23469
23469
|
}, [
|
|
23470
23470
|
b("option", pk, M(y(e)("Select")), 1),
|
|
23471
|
-
(v(!0), C(
|
|
23471
|
+
(v(!0), C(ae, null, me(y(Ar).verticalMargin, (x) => (v(), C("option", { key: x }, M(x), 1))), 128))
|
|
23472
23472
|
], 544), [
|
|
23473
23473
|
[qe, a.value]
|
|
23474
23474
|
])
|
|
@@ -23483,7 +23483,7 @@ const v3 = ["src"], k3 = {
|
|
|
23483
23483
|
onChange: u[3] || (u[3] = (x) => y(t).handleHorizontalMargin(s.value))
|
|
23484
23484
|
}, [
|
|
23485
23485
|
b("option", bk, M(y(e)("Select")), 1),
|
|
23486
|
-
(v(!0), C(
|
|
23486
|
+
(v(!0), C(ae, null, me(y(Ar).horizontalMargin, (x) => (v(), C("option", { key: x }, M(x), 1))), 128))
|
|
23487
23487
|
], 544), [
|
|
23488
23488
|
[qe, s.value]
|
|
23489
23489
|
])
|
|
@@ -23525,7 +23525,7 @@ const v3 = ["src"], k3 = {
|
|
|
23525
23525
|
}, Mc = {
|
|
23526
23526
|
__name: "BorderRadius",
|
|
23527
23527
|
setup(r) {
|
|
23528
|
-
const { translate: e } =
|
|
23528
|
+
const { translate: e } = Be(), t = Oe(), o = Ee, n = S(null), i = S(null), a = S(null), s = S(null), l = S(null), p = $(() => o.getBorderRadiusGlobal), d = $(() => o.getBorderRadiusTopLeft), c = $(() => o.getBorderRadiusTopRight), m = $(() => o.getBorderRadiusBottomleft), u = $(() => o.getBorderRadiusBottomRight);
|
|
23529
23529
|
return Z(
|
|
23530
23530
|
p,
|
|
23531
23531
|
async (x) => {
|
|
@@ -23571,7 +23571,7 @@ const v3 = ["src"], k3 = {
|
|
|
23571
23571
|
onChange: h[1] || (h[1] = (g) => y(t).handleBorderRadiusGlobal(n.value))
|
|
23572
23572
|
}, [
|
|
23573
23573
|
b("option", gk, M(y(e)("Select")), 1),
|
|
23574
|
-
(v(!0), C(
|
|
23574
|
+
(v(!0), C(ae, null, me(y(Wt).roundedGlobal, (g) => (v(), C("option", { key: g }, M(g), 1))), 128))
|
|
23575
23575
|
], 544), [
|
|
23576
23576
|
[qe, n.value]
|
|
23577
23577
|
])
|
|
@@ -23587,7 +23587,7 @@ const v3 = ["src"], k3 = {
|
|
|
23587
23587
|
onChange: h[3] || (h[3] = (g) => y(t).handleBorderRadiusTopLeft(i.value))
|
|
23588
23588
|
}, [
|
|
23589
23589
|
b("option", wk, M(y(e)("Select")), 1),
|
|
23590
|
-
(v(!0), C(
|
|
23590
|
+
(v(!0), C(ae, null, me(y(Wt).roundedTopLeft, (g) => (v(), C("option", { key: g }, M(g), 1))), 128))
|
|
23591
23591
|
], 544), [
|
|
23592
23592
|
[qe, i.value]
|
|
23593
23593
|
])
|
|
@@ -23601,7 +23601,7 @@ const v3 = ["src"], k3 = {
|
|
|
23601
23601
|
onChange: h[5] || (h[5] = (g) => y(t).handleBorderRadiusTopRight(a.value))
|
|
23602
23602
|
}, [
|
|
23603
23603
|
b("option", Sk, M(y(e)("Select")), 1),
|
|
23604
|
-
(v(!0), C(
|
|
23604
|
+
(v(!0), C(ae, null, me(y(Wt).roundedTopRight, (g) => (v(), C("option", { key: g }, M(g), 1))), 128))
|
|
23605
23605
|
], 544), [
|
|
23606
23606
|
[qe, a.value]
|
|
23607
23607
|
])
|
|
@@ -23615,7 +23615,7 @@ const v3 = ["src"], k3 = {
|
|
|
23615
23615
|
onChange: h[7] || (h[7] = (g) => y(t).handleBorderRadiusBottomleft(s.value))
|
|
23616
23616
|
}, [
|
|
23617
23617
|
b("option", Ek, M(y(e)("Select")), 1),
|
|
23618
|
-
(v(!0), C(
|
|
23618
|
+
(v(!0), C(ae, null, me(y(Wt).roundedBottomLeft, (g) => (v(), C("option", { key: g }, M(g), 1))), 128))
|
|
23619
23619
|
], 544), [
|
|
23620
23620
|
[qe, s.value]
|
|
23621
23621
|
])
|
|
@@ -23629,7 +23629,7 @@ const v3 = ["src"], k3 = {
|
|
|
23629
23629
|
onChange: h[9] || (h[9] = (g) => y(t).handleBorderRadiusBottomRight(l.value))
|
|
23630
23630
|
}, [
|
|
23631
23631
|
b("option", Bk, M(y(e)("Select")), 1),
|
|
23632
|
-
(v(!0), C(
|
|
23632
|
+
(v(!0), C(ae, null, me(y(Wt).roundedBottomRight, (g) => (v(), C("option", { key: g }, M(g), 1))), 128))
|
|
23633
23633
|
], 544), [
|
|
23634
23634
|
[qe, l.value]
|
|
23635
23635
|
])
|
|
@@ -23662,7 +23662,7 @@ const v3 = ["src"], k3 = {
|
|
|
23662
23662
|
}, Ec = {
|
|
23663
23663
|
__name: "Borders",
|
|
23664
23664
|
setup(r) {
|
|
23665
|
-
const { translate: e } =
|
|
23665
|
+
const { translate: e } = Be(), t = Oe(), o = Ee, n = S(null), i = S(null), a = S(null), s = $(() => o.getBorderStyle), l = $(() => o.getBorderWidth), p = $(() => o.getBorderColor);
|
|
23666
23666
|
return Z(
|
|
23667
23667
|
s,
|
|
23668
23668
|
async (d) => {
|
|
@@ -23696,7 +23696,7 @@ const v3 = ["src"], k3 = {
|
|
|
23696
23696
|
onChange: c[1] || (c[1] = (m) => y(t).handleBorderStyle(n.value))
|
|
23697
23697
|
}, [
|
|
23698
23698
|
b("option", Dk, M(y(e)("Select")), 1),
|
|
23699
|
-
(v(!0), C(
|
|
23699
|
+
(v(!0), C(ae, null, me(y(Uo).borderStyle, (m) => (v(), C("option", { key: m }, M(m), 1))), 128))
|
|
23700
23700
|
], 544), [
|
|
23701
23701
|
[qe, n.value]
|
|
23702
23702
|
])
|
|
@@ -23710,7 +23710,7 @@ const v3 = ["src"], k3 = {
|
|
|
23710
23710
|
onChange: c[3] || (c[3] = (m) => y(t).handleBorderWidth(i.value))
|
|
23711
23711
|
}, [
|
|
23712
23712
|
b("option", _k, M(y(e)("Select")), 1),
|
|
23713
|
-
(v(!0), C(
|
|
23713
|
+
(v(!0), C(ae, null, me(y(Uo).borderWidth, (m) => (v(), C("option", { key: m }, M(m), 1))), 128))
|
|
23714
23714
|
], 544), [
|
|
23715
23715
|
[qe, i.value]
|
|
23716
23716
|
])
|
|
@@ -23735,11 +23735,11 @@ const v3 = ["src"], k3 = {
|
|
|
23735
23735
|
b("div", { class: "pbx-myPrimaryColorPreview pbx-border-none" }, [
|
|
23736
23736
|
b("span", { class: "material-symbols-outlined" }, " ev_shadow ")
|
|
23737
23737
|
], -1)
|
|
23738
|
-
]))) :
|
|
23738
|
+
]))) : D("", !0),
|
|
23739
23739
|
a.value !== "none" ? (v(), C("div", {
|
|
23740
23740
|
key: 1,
|
|
23741
23741
|
class: X(["pbx-aspect-square pbx-w-6 pbx-h-6 pbx-border-solid pbx-border pbx-border-gray-100 pbx-rounded-sm", `pbx-bg-${(m = a.value) == null ? void 0 : m.replace("pbx-border-", "")}`])
|
|
23742
|
-
}, null, 2)) :
|
|
23742
|
+
}, null, 2)) : D("", !0),
|
|
23743
23743
|
b("span", jk, M(a.value), 1)
|
|
23744
23744
|
]),
|
|
23745
23745
|
c[7] || (c[7] = b("span", { class: "pbx-pointer-events-none pbx-absolute pbx-inset-y-0 pbx-right-0 pbx-ml-3 pbx-flex pbx-items-center pbx-pr-2" }, [
|
|
@@ -23758,7 +23758,7 @@ const v3 = ["src"], k3 = {
|
|
|
23758
23758
|
default: U(() => [
|
|
23759
23759
|
H(y(si), { class: "pbx-absolute pbx-z-10 pbx-mt-1 pbx-max-h-56 pbx-w-full pbx-overflow-auto pbx-rounded-md pbx-bg-white pbx-text-base pbx-shadow-lg pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 focus:pbx-outline-none sm:pbx-text-sm pbx-list-none pbx-p-0 pbx-m-0" }, {
|
|
23760
23760
|
default: U(() => [
|
|
23761
|
-
(v(!0), C(
|
|
23761
|
+
(v(!0), C(ae, null, me(y(Uo).borderColor, (m) => (v(), ce(y(li), {
|
|
23762
23762
|
as: "template",
|
|
23763
23763
|
onClick: c[4] || (c[4] = (u) => y(t).handleBorderColor(a.value)),
|
|
23764
23764
|
key: m,
|
|
@@ -23776,13 +23776,13 @@ const v3 = ["src"], k3 = {
|
|
|
23776
23776
|
b("div", { class: "pbx-myPrimaryColorPreview pbx-border-none" }, [
|
|
23777
23777
|
b("span", { class: "material-symbols-outlined" }, " ev_shadow ")
|
|
23778
23778
|
], -1)
|
|
23779
|
-
]))) :
|
|
23779
|
+
]))) : D("", !0),
|
|
23780
23780
|
m !== "none" ? (v(), C("div", {
|
|
23781
23781
|
key: 1,
|
|
23782
23782
|
class: X(["pbx-aspect-square pbx-w-6 pbx-h-6 pbx-bg-gray-950", `pbx-bg-${m.replace("pbx-border-", "")}`])
|
|
23783
|
-
}, null, 2)) :
|
|
23784
|
-
m === "none" ? (v(), C("span", Wk, M(y(e)("Transparent")), 1)) :
|
|
23785
|
-
m !== "none" ? (v(), C("span", Uk, M(m), 1)) :
|
|
23783
|
+
}, null, 2)) : D("", !0),
|
|
23784
|
+
m === "none" ? (v(), C("span", Wk, M(y(e)("Transparent")), 1)) : D("", !0),
|
|
23785
|
+
m !== "none" ? (v(), C("span", Uk, M(m), 1)) : D("", !0)
|
|
23786
23786
|
])
|
|
23787
23787
|
], 2)
|
|
23788
23788
|
]),
|
|
@@ -23808,7 +23808,7 @@ const v3 = ["src"], k3 = {
|
|
|
23808
23808
|
}, Gk = { class: "pbx-px-2 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-w-max" }, Jk = /* @__PURE__ */ nt({
|
|
23809
23809
|
__name: "TipTap",
|
|
23810
23810
|
setup(r) {
|
|
23811
|
-
const { translate: e } =
|
|
23811
|
+
const { translate: e } = Be(), t = Oe();
|
|
23812
23812
|
return (o, n) => (v(), C("div", null, [
|
|
23813
23813
|
b("div", qk, [
|
|
23814
23814
|
y(t).isSelectedElementValidText() ? (v(), C("div", Kk, [
|
|
@@ -23822,7 +23822,7 @@ const v3 = ["src"], k3 = {
|
|
|
23822
23822
|
b("span", null, M(y(e)("Edit text and links")), 1)
|
|
23823
23823
|
])
|
|
23824
23824
|
])
|
|
23825
|
-
])) :
|
|
23825
|
+
])) : D("", !0)
|
|
23826
23826
|
])
|
|
23827
23827
|
]));
|
|
23828
23828
|
}
|
|
@@ -23838,7 +23838,7 @@ const v3 = ["src"], k3 = {
|
|
|
23838
23838
|
__name: "RightSidebarEditor",
|
|
23839
23839
|
emits: ["closeEditor"],
|
|
23840
23840
|
setup(r) {
|
|
23841
|
-
const { translate: e } =
|
|
23841
|
+
const { translate: e } = Be(), t = Oe(), o = Ee, n = S(null), i = $(() => o.getComponents), a = $(() => o.getElement), s = $(() => {
|
|
23842
23842
|
var g;
|
|
23843
23843
|
return (g = a.value) == null ? void 0 : g.tagName;
|
|
23844
23844
|
});
|
|
@@ -23890,7 +23890,7 @@ const v3 = ["src"], k3 = {
|
|
|
23890
23890
|
b("span", t4, "<" + M(s.value) + ">", 1)
|
|
23891
23891
|
])
|
|
23892
23892
|
]),
|
|
23893
|
-
u.value ?
|
|
23893
|
+
u.value ? D("", !0) : (v(), C("div", {
|
|
23894
23894
|
key: 0,
|
|
23895
23895
|
ref_key: "scrollContainer",
|
|
23896
23896
|
ref: l,
|
|
@@ -23970,7 +23970,7 @@ const v3 = ["src"], k3 = {
|
|
|
23970
23970
|
]),
|
|
23971
23971
|
_: 1
|
|
23972
23972
|
})
|
|
23973
|
-
])) :
|
|
23973
|
+
])) : D("", !0)
|
|
23974
23974
|
], 544)),
|
|
23975
23975
|
H(br, {
|
|
23976
23976
|
maxWidth: "md",
|
|
@@ -23987,7 +23987,7 @@ const v3 = ["src"], k3 = {
|
|
|
23987
23987
|
b("span", k4, M(y(e)("Loading...")), 1)
|
|
23988
23988
|
])
|
|
23989
23989
|
])
|
|
23990
|
-
])) :
|
|
23990
|
+
])) : D("", !0),
|
|
23991
23991
|
!n.value && u.value ? (v(), C("div", S4, [
|
|
23992
23992
|
b("div", null, [
|
|
23993
23993
|
b("p", C4, M(y(e)(
|
|
@@ -24021,7 +24021,7 @@ const v3 = ["src"], k3 = {
|
|
|
24021
24021
|
H(vc)
|
|
24022
24022
|
])
|
|
24023
24023
|
])
|
|
24024
|
-
])) :
|
|
24024
|
+
])) : D("", !0)
|
|
24025
24025
|
])
|
|
24026
24026
|
]),
|
|
24027
24027
|
_: 1
|
|
@@ -24052,7 +24052,7 @@ const v3 = ["src"], k3 = {
|
|
|
24052
24052
|
}, JS = { class: "pbx-overflow-hidden pbx-shadow pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 md:pbx-rounded-lg" }, YS = { class: "pbx-overflow-x-auto" }, XS = { class: "pbx-w-max" }, QS = { class: "pbx-bg-white pbx-divide-y pbx-divide-gray-200" }, ZS = { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500" }, eC = { class: "pbx-min-w-[30rem] pbx-w-max" }, tC = { key: 0 }, rC = { key: 1 }, oC = { key: 0 }, nC = { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500" }, iC = { class: "pbx-min-w-[30rem] pbx-w-max" }, aC = { class: "pbx-inline-flex pbx-items-center pbx-px-2.5 pbx-py-0.5 pbx-rounded-full pbx-text-xs pbx-font-medium" }, sC = { class: "pbx-mt-4 pbx-mb-4 pbx-py-8 pbx-px-2 pbx-border pbx-border-solid pbx-border-gray-600 pbx-rounded-xl" }, lC = { class: "pbx-mt-4 pbx-whitespace-pre-wrap pbx-text-white pbx-overflow-hidden pbx-bg-gray-900" }, pC = { class: "pbx-px-4 pbx-pb-8 pbx-pt-4 pbx-text-white pbx-text-xs pbx-break-all" }, dC = { class: "pbx-myPrimaryParagraph pbx-text-xs pbx-text-white" }, cC = {
|
|
24053
24053
|
__name: "PageBuilderSettings",
|
|
24054
24054
|
setup(r) {
|
|
24055
|
-
const e = "3.3.
|
|
24055
|
+
const e = "3.3.81", t = Ee, o = $(() => t.getPageBuilderConfig);
|
|
24056
24056
|
return (n, i) => {
|
|
24057
24057
|
var a, s, l, p, d, c, m, u, x, h, g, w, E, k, f, O;
|
|
24058
24058
|
return v(), C("div", I4, [
|
|
@@ -24121,7 +24121,7 @@ const v3 = ["src"], k3 = {
|
|
|
24121
24121
|
b("td", Q4, [
|
|
24122
24122
|
b("div", Z4, M(o.value.resourceData.title), 1)
|
|
24123
24123
|
])
|
|
24124
|
-
])) :
|
|
24124
|
+
])) : D("", !0),
|
|
24125
24125
|
(d = (p = o.value) == null ? void 0 : p.resourceData) != null && d.id ? (v(), C("tr", eS, [
|
|
24126
24126
|
i[4] || (i[4] = b("td", { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-font-medium pbx-text-gray-900" }, [
|
|
24127
24127
|
b("div", { class: "pbx-min-w-[30rem] pbx-w-max" }, "ID")
|
|
@@ -24129,12 +24129,12 @@ const v3 = ["src"], k3 = {
|
|
|
24129
24129
|
b("td", tS, [
|
|
24130
24130
|
b("div", rS, M(o.value.resourceData.id), 1)
|
|
24131
24131
|
])
|
|
24132
|
-
])) :
|
|
24132
|
+
])) : D("", !0)
|
|
24133
24133
|
])
|
|
24134
24134
|
])
|
|
24135
24135
|
])
|
|
24136
24136
|
])
|
|
24137
|
-
])) :
|
|
24137
|
+
])) : D("", !0),
|
|
24138
24138
|
(c = o.value) != null && c.userForPageBuilder && !y(Tr)(o.value.userForPageBuilder) ? (v(), C("div", oS, [
|
|
24139
24139
|
i[11] || (i[11] = b("h4", { class: "pbx-myQuaternaryHeader pbx-text-sm pbx-mb-2" }, "User Information", -1)),
|
|
24140
24140
|
b("div", nS, [
|
|
@@ -24175,7 +24175,7 @@ const v3 = ["src"], k3 = {
|
|
|
24175
24175
|
}, null, 8, mS)
|
|
24176
24176
|
])
|
|
24177
24177
|
])
|
|
24178
|
-
])) :
|
|
24178
|
+
])) : D("", !0)
|
|
24179
24179
|
]),
|
|
24180
24180
|
b("tr", null, [
|
|
24181
24181
|
i[9] || (i[9] = b("td", { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-font-medium pbx-text-gray-900" }, [
|
|
@@ -24183,13 +24183,13 @@ const v3 = ["src"], k3 = {
|
|
|
24183
24183
|
], -1)),
|
|
24184
24184
|
o.value.userForPageBuilder.image && typeof o.value.userForPageBuilder.image == "string" && o.value.userForPageBuilder.image.length > 2 ? (v(), C("td", uS, [
|
|
24185
24185
|
b("div", xS, M(o.value.userForPageBuilder.image), 1)
|
|
24186
|
-
])) :
|
|
24186
|
+
])) : D("", !0)
|
|
24187
24187
|
])
|
|
24188
24188
|
])
|
|
24189
24189
|
])
|
|
24190
24190
|
])
|
|
24191
24191
|
])
|
|
24192
|
-
])) :
|
|
24192
|
+
])) : D("", !0),
|
|
24193
24193
|
(m = o.value) != null && m.userSettings && !y(Tr)(o.value.userSettings) ? (v(), C("div", gS, [
|
|
24194
24194
|
i[17] || (i[17] = b("h4", { class: "pbx-myQuaternaryHeader pbx-text-sm pbx-mb-2" }, "User Settings", -1)),
|
|
24195
24195
|
b("div", hS, [
|
|
@@ -24215,7 +24215,7 @@ const v3 = ["src"], k3 = {
|
|
|
24215
24215
|
b("td", kS, [
|
|
24216
24216
|
b("div", SS, M(o.value.userSettings.theme), 1)
|
|
24217
24217
|
])
|
|
24218
|
-
])) :
|
|
24218
|
+
])) : D("", !0),
|
|
24219
24219
|
(g = (h = o.value) == null ? void 0 : h.userSettings) != null && g.language ? (v(), C("tr", CS, [
|
|
24220
24220
|
i[13] || (i[13] = b("td", { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-font-medium pbx-text-gray-900" }, [
|
|
24221
24221
|
b("div", { class: "pbx-min-w-[30rem] pbx-w-max" }, "Language")
|
|
@@ -24223,7 +24223,7 @@ const v3 = ["src"], k3 = {
|
|
|
24223
24223
|
b("td", MS, [
|
|
24224
24224
|
b("div", ES, M(o.value.userSettings.language), 1)
|
|
24225
24225
|
])
|
|
24226
|
-
])) :
|
|
24226
|
+
])) : D("", !0),
|
|
24227
24227
|
((E = (w = o.value) == null ? void 0 : w.userSettings) == null ? void 0 : E.autoSave) !== void 0 ? (v(), C("tr", TS, [
|
|
24228
24228
|
i[14] || (i[14] = b("td", { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-font-medium pbx-text-gray-900" }, [
|
|
24229
24229
|
b("div", { class: "pbx-min-w-[30rem] pbx-w-max" }, "Auto Save")
|
|
@@ -24238,7 +24238,7 @@ const v3 = ["src"], k3 = {
|
|
|
24238
24238
|
}, M(o.value.userSettings.autoSave ? "Enabled" : "Disabled"), 3)
|
|
24239
24239
|
])
|
|
24240
24240
|
])
|
|
24241
|
-
])) :
|
|
24241
|
+
])) : D("", !0),
|
|
24242
24242
|
((f = (k = o.value) == null ? void 0 : k.userSettings) == null ? void 0 : f.notifications) !== void 0 ? (v(), C("tr", PS, [
|
|
24243
24243
|
i[15] || (i[15] = b("td", { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-font-medium pbx-text-gray-900" }, [
|
|
24244
24244
|
b("div", { class: "pbx-min-w-[30rem] pbx-w-max" }, "Notifications")
|
|
@@ -24253,12 +24253,12 @@ const v3 = ["src"], k3 = {
|
|
|
24253
24253
|
}, M(o.value.userSettings.notifications ? "Enabled" : "Disabled"), 3)
|
|
24254
24254
|
])
|
|
24255
24255
|
])
|
|
24256
|
-
])) :
|
|
24256
|
+
])) : D("", !0)
|
|
24257
24257
|
])
|
|
24258
24258
|
])
|
|
24259
24259
|
])
|
|
24260
24260
|
])
|
|
24261
|
-
])) :
|
|
24261
|
+
])) : D("", !0),
|
|
24262
24262
|
o.value && o.value.pageBuilderLogo && !y(Tr)(o.value.pageBuilderLogo) ? (v(), C("div", DS, [
|
|
24263
24263
|
i[21] || (i[21] = b("h4", { class: "pbx-myQuaternaryHeader pbx-text-sm pbx-mb-2" }, "Logo Configuration", -1)),
|
|
24264
24264
|
b("div", LS, [
|
|
@@ -24313,7 +24313,7 @@ const v3 = ["src"], k3 = {
|
|
|
24313
24313
|
])
|
|
24314
24314
|
])
|
|
24315
24315
|
])
|
|
24316
|
-
])) :
|
|
24316
|
+
])) : D("", !0),
|
|
24317
24317
|
(O = o.value) != null && O.updateOrCreate && !y(Tr)(o.value.updateOrCreate) ? (v(), C("div", GS, [
|
|
24318
24318
|
i[25] || (i[25] = b("h4", { class: "pbx-myQuaternaryHeader pbx-text-sm pbx-mb-2" }, "Form Type", -1)),
|
|
24319
24319
|
b("div", JS, [
|
|
@@ -24344,8 +24344,8 @@ const v3 = ["src"], k3 = {
|
|
|
24344
24344
|
o.value.updateOrCreate === "create" ? "bg-green-100 text-green-800" : "bg-blue-100 text-blue-800"
|
|
24345
24345
|
])
|
|
24346
24346
|
}, [
|
|
24347
|
-
o.value && o.value.updateOrCreate.formType === "create" ? (v(), C("span", tC, M(o.value.updateOrCreate.formType), 1)) :
|
|
24348
|
-
o.value && o.value.updateOrCreate.formType === "update" ? (v(), C("span", rC, M(o.value.updateOrCreate.formType), 1)) :
|
|
24347
|
+
o.value && o.value.updateOrCreate.formType === "create" ? (v(), C("span", tC, M(o.value.updateOrCreate.formType), 1)) : D("", !0),
|
|
24348
|
+
o.value && o.value.updateOrCreate.formType === "update" ? (v(), C("span", rC, M(o.value.updateOrCreate.formType), 1)) : D("", !0)
|
|
24349
24349
|
], 2)
|
|
24350
24350
|
])
|
|
24351
24351
|
])
|
|
@@ -24359,12 +24359,12 @@ const v3 = ["src"], k3 = {
|
|
|
24359
24359
|
b("span", aC, M(o.value.updateOrCreate.formName), 1)
|
|
24360
24360
|
])
|
|
24361
24361
|
])
|
|
24362
|
-
])) :
|
|
24362
|
+
])) : D("", !0)
|
|
24363
24363
|
])
|
|
24364
24364
|
])
|
|
24365
24365
|
])
|
|
24366
24366
|
])
|
|
24367
|
-
])) :
|
|
24367
|
+
])) : D("", !0)
|
|
24368
24368
|
])
|
|
24369
24369
|
])
|
|
24370
24370
|
]),
|
|
@@ -24452,7 +24452,7 @@ const v3 = ["src"], k3 = {
|
|
|
24452
24452
|
]),
|
|
24453
24453
|
b("div", kC, [
|
|
24454
24454
|
i.value === "element" ? (v(), C("div", SC, [
|
|
24455
|
-
o.value ?
|
|
24455
|
+
o.value ? D("", !0) : (v(), C("div", CC, [
|
|
24456
24456
|
b("p", MC, M(o.value === null ? "No Element selected" : typeof o.value), 1)
|
|
24457
24457
|
])),
|
|
24458
24458
|
t.value ? (v(), C("div", EC, [
|
|
@@ -24500,10 +24500,10 @@ const v3 = ["src"], k3 = {
|
|
|
24500
24500
|
])
|
|
24501
24501
|
])
|
|
24502
24502
|
])
|
|
24503
|
-
])) :
|
|
24504
|
-
])) :
|
|
24503
|
+
])) : D("", !0)
|
|
24504
|
+
])) : D("", !0),
|
|
24505
24505
|
i.value === "component" ? (v(), C("div", FC, [
|
|
24506
|
-
o.value ?
|
|
24506
|
+
o.value ? D("", !0) : (v(), C("div", jC, [
|
|
24507
24507
|
b("p", HC, M(o.value === null ? "No Component selected" : typeof o.value), 1)
|
|
24508
24508
|
])),
|
|
24509
24509
|
o.value ? (v(), C("div", VC, [
|
|
@@ -24561,14 +24561,14 @@ const v3 = ["src"], k3 = {
|
|
|
24561
24561
|
])
|
|
24562
24562
|
])
|
|
24563
24563
|
])
|
|
24564
|
-
])) :
|
|
24565
|
-
])) :
|
|
24564
|
+
])) : D("", !0)
|
|
24565
|
+
])) : D("", !0),
|
|
24566
24566
|
i.value === "components" ? (v(), C("div", i6, [
|
|
24567
24567
|
Array.isArray(n.value) && n.value.length === 0 ? (v(), C("div", a6, p[16] || (p[16] = [
|
|
24568
24568
|
b("p", { class: "pbx-pb-2 pbx-text-xs" }, "No Components added yet", -1)
|
|
24569
|
-
]))) :
|
|
24569
|
+
]))) : D("", !0),
|
|
24570
24570
|
n.value ? (v(), C("div", s6, [
|
|
24571
|
-
(v(!0), C(
|
|
24571
|
+
(v(!0), C(ae, null, me(n.value, (f) => (v(), C("div", {
|
|
24572
24572
|
key: f.id,
|
|
24573
24573
|
class: "pbx-overflow-hidden pbx-border-solid pbx-border pbx-border-gray-100 pbx-mb-6"
|
|
24574
24574
|
}, [
|
|
@@ -24627,8 +24627,8 @@ const v3 = ["src"], k3 = {
|
|
|
24627
24627
|
])
|
|
24628
24628
|
])
|
|
24629
24629
|
]))), 128))
|
|
24630
|
-
])) :
|
|
24631
|
-
])) :
|
|
24630
|
+
])) : D("", !0)
|
|
24631
|
+
])) : D("", !0)
|
|
24632
24632
|
])
|
|
24633
24633
|
])
|
|
24634
24634
|
])
|
|
@@ -24648,8 +24648,8 @@ const v3 = ["src"], k3 = {
|
|
|
24648
24648
|
}, _6 = { class: "pbx-absolute pbx-left-0 -pbx-ml-16 -pbx-mt-2 pbx-flex pbx-flex-col pbx-gap-3 pbx-shadow-lg pbx-bg-white pbx-w-max pbx-border-solid pbx-border pbx-border-gray-100 pbx-rounded-2xl pbx-transition-all pbx-duration-200 pbx-ease-out pbx-pt-4 pbx-pr-4 pbx-pb-4 pbx-pl-2 pbx-z-30 pbx-opacity-0 pbx-pointer-events-none pbx-translate-y-2 group-hover:pbx-opacity-100 group-hover:pbx-pointer-events-auto group-hover:pbx-translate-y-0" }, R6 = {
|
|
24649
24649
|
__name: "ToolbarOption",
|
|
24650
24650
|
setup(r) {
|
|
24651
|
-
const { translate: e } =
|
|
24652
|
-
a.value = !0, s.value = "delete", l.value = 2, p.value = e("Remove all Components"), d.value = e("Are you sure you want to remove all Components?"), c.value = "Close", m.value = null, u.value = "Delete", x.value = function() {
|
|
24651
|
+
const { translate: e } = Be(), t = Oe(), o = Ee, n = $(() => o.getPageBuilderConfig), i = S(!1), a = S(!1), s = S(""), l = S(1), p = S(""), d = S(""), c = S(""), m = S(null), u = S(null), x = S(null), h = S(null), g = S(null), w = function() {
|
|
24652
|
+
a.value = !0, s.value = "delete", l.value = 2, p.value = e("Remove all Components"), d.value = e("Are you sure you want to remove all Components?"), c.value = e("Close"), m.value = null, u.value = e("Delete"), x.value = function() {
|
|
24653
24653
|
a.value = !1;
|
|
24654
24654
|
}, g.value = async function() {
|
|
24655
24655
|
i.value = !0, await t.clearHtmlSelection(), await t.handleFormSubmission(), await st(500), a.value = !1, i.value = !1;
|
|
@@ -24664,14 +24664,14 @@ const v3 = ["src"], k3 = {
|
|
|
24664
24664
|
O.value = !0;
|
|
24665
24665
|
};
|
|
24666
24666
|
return (z, j) => {
|
|
24667
|
-
var
|
|
24667
|
+
var N;
|
|
24668
24668
|
return v(), C("div", null, [
|
|
24669
24669
|
b("div", C6, [
|
|
24670
24670
|
b("div", M6, [
|
|
24671
|
-
n.value && n.value.userForPageBuilder && n.value.userForPageBuilder.name && (!n.value.userForPageBuilder.image || typeof n.value.userForPageBuilder.image == "string" && ((
|
|
24671
|
+
n.value && n.value.userForPageBuilder && n.value.userForPageBuilder.name && (!n.value.userForPageBuilder.image || typeof n.value.userForPageBuilder.image == "string" && ((N = n.value.userForPageBuilder.image) == null ? void 0 : N.length) < 2) ? (v(), C("div", E6, [
|
|
24672
24672
|
b("div", T6, M(typeof n.value.userForPageBuilder.name == "string" && n.value.userForPageBuilder.name[0]), 1),
|
|
24673
24673
|
b("div", O6, M(n.value.userForPageBuilder.name), 1)
|
|
24674
|
-
])) :
|
|
24674
|
+
])) : D("", !0),
|
|
24675
24675
|
n.value && n.value.userForPageBuilder && n.value.userForPageBuilder.name && n.value.userForPageBuilder.image && typeof n.value.userForPageBuilder.image == "string" && n.value.userForPageBuilder.image.length > 2 ? (v(), C("div", B6, [
|
|
24676
24676
|
b("div", P6, [
|
|
24677
24677
|
b("img", {
|
|
@@ -24681,7 +24681,7 @@ const v3 = ["src"], k3 = {
|
|
|
24681
24681
|
}, null, 8, A6)
|
|
24682
24682
|
]),
|
|
24683
24683
|
b("div", N6, M(n.value.userForPageBuilder.name), 1)
|
|
24684
|
-
])) :
|
|
24684
|
+
])) : D("", !0)
|
|
24685
24685
|
]),
|
|
24686
24686
|
b("div", D6, [
|
|
24687
24687
|
b("div", L6, [
|
|
@@ -24781,7 +24781,7 @@ function j6(r, e) {
|
|
|
24781
24781
|
}
|
|
24782
24782
|
const H6 = /* @__PURE__ */ Ka(z6, [["render", j6]]), V6 = { class: "pbx-font-sans pbx-text-black pbx-max-w-full pbx-border-solid pbx-border pbx-border-gray-400 pbx-inset-x-0 pbx-z-10 pbx-bg-white pbx-overflow-x-auto pbx-h-full" }, W6 = {
|
|
24783
24783
|
id: "pagebuilder-toolbar-area",
|
|
24784
|
-
class: "pbx-flex pbx-items-center pbx-justify-between pbx-bg-myPrimaryLightGrayColor pbx-border-0 pbx-border-solid pbx-border-b pbx-border-gray-200 pbx-mb-2 lg:pbx-px-6 pbx-px-4 pbx-font-sans
|
|
24784
|
+
class: "pbx-flex pbx-items-center pbx-justify-between pbx-bg-myPrimaryLightGrayColor pbx-border-0 pbx-border-solid pbx-border-b pbx-border-gray-200 pbx-mb-2 lg:pbx-px-6 pbx-px-4 pbx-font-sans"
|
|
24785
24785
|
}, U6 = {
|
|
24786
24786
|
id: "pagebuilder-logo-main",
|
|
24787
24787
|
class: "pbx-flex pbx-items-center pbx-justify-center"
|
|
@@ -24835,7 +24835,7 @@ const H6 = /* @__PURE__ */ Ka(z6, [["render", j6]]), V6 = { class: "pbx-font-san
|
|
|
24835
24835
|
},
|
|
24836
24836
|
emits: ["handleClosePageBuilder", "handlePublishPageBuilder"],
|
|
24837
24837
|
setup(r, { emit: e }) {
|
|
24838
|
-
const t = Oe(), o = r, { translate: n, loadTranslations: i } =
|
|
24838
|
+
const t = Oe(), o = r, { translate: n, loadTranslations: i } = Be(), a = bu, s = Ee;
|
|
24839
24839
|
Er("pageBuilderStateStore", s), Er("internalPinia", a), Er("CustomMediaComponent", o.CustomMediaLibraryComponent), Er("CustomBuilderComponents", o.CustomBuilderComponents);
|
|
24840
24840
|
const l = e, p = function() {
|
|
24841
24841
|
l("handleClosePageBuilder");
|
|
@@ -24843,7 +24843,7 @@ const H6 = /* @__PURE__ */ Ka(z6, [["render", j6]]), V6 = { class: "pbx-font-san
|
|
|
24843
24843
|
t.handleManualSave(), l("handlePublishPageBuilder");
|
|
24844
24844
|
};
|
|
24845
24845
|
Er("closeAddComponentModal", () => {
|
|
24846
|
-
|
|
24846
|
+
se.value = !1;
|
|
24847
24847
|
});
|
|
24848
24848
|
const m = S("en");
|
|
24849
24849
|
let u = !0;
|
|
@@ -24863,26 +24863,26 @@ const H6 = /* @__PURE__ */ Ka(z6, [["render", j6]]), V6 = { class: "pbx-font-san
|
|
|
24863
24863
|
t.previewCurrentDesign();
|
|
24864
24864
|
}, j = function() {
|
|
24865
24865
|
f.value = n("Mobile"), z(), P.value = !0;
|
|
24866
|
-
},
|
|
24867
|
-
|
|
24868
|
-
},
|
|
24866
|
+
}, N = S(!1), L = function() {
|
|
24867
|
+
N.value = !1;
|
|
24868
|
+
}, _ = function() {
|
|
24869
24869
|
E.value = !1;
|
|
24870
24870
|
}, q = function() {
|
|
24871
24871
|
P.value = !1;
|
|
24872
|
-
},
|
|
24873
|
-
await t.clearHtmlSelection(), ue.value = n("Add Components to Page"),
|
|
24874
|
-
|
|
24872
|
+
}, se = S(!1), ue = S(""), de = S(""), ne = S(null), K = async function() {
|
|
24873
|
+
await t.clearHtmlSelection(), ue.value = n("Add Components to Page"), de.value = n("Close"), se.value = !0, ne.value = function() {
|
|
24874
|
+
se.value = !1;
|
|
24875
24875
|
};
|
|
24876
|
-
},
|
|
24876
|
+
}, re = $(() => s.getElement), it = $(() => s.getRestoredElement), Qt = $(() => s.getComponents), bt = $(() => s.getHasLocalDraftForUpdate);
|
|
24877
24877
|
Z(bt, (Y) => {
|
|
24878
24878
|
Y && Rt();
|
|
24879
24879
|
});
|
|
24880
|
-
const Zt = $(() => !
|
|
24881
|
-
src:
|
|
24882
|
-
href:
|
|
24883
|
-
style:
|
|
24884
|
-
class:
|
|
24885
|
-
dataImage:
|
|
24880
|
+
const Zt = $(() => !re.value || !(re.value instanceof HTMLElement) ? "" : {
|
|
24881
|
+
src: re.value.getAttribute("src"),
|
|
24882
|
+
href: re.value.getAttribute("href"),
|
|
24883
|
+
style: re.value.getAttribute("style"),
|
|
24884
|
+
class: re.value.getAttribute("class"),
|
|
24885
|
+
dataImage: re.value.getAttribute("data-image")
|
|
24886
24886
|
}), Et = $6();
|
|
24887
24887
|
Z(Zt, async (Y, A) => {
|
|
24888
24888
|
((Y == null ? void 0 : Y.src) !== (A == null ? void 0 : A.src) || (Y == null ? void 0 : Y.href) !== (A == null ? void 0 : A.href) || (Y == null ? void 0 : Y.style) !== (A == null ? void 0 : A.style) || (Y == null ? void 0 : Y.class) !== (A == null ? void 0 : A.class) || (Y == null ? void 0 : Y.dataImage) !== (A == null ? void 0 : A.dataImage)) && Et(async () => {
|
|
@@ -24899,17 +24899,19 @@ const H6 = /* @__PURE__ */ Ka(z6, [["render", j6]]), V6 = { class: "pbx-font-san
|
|
|
24899
24899
|
await t.resumeEditingFromDraft(), s.setHasLocalDraftForUpdate(!1), tr.value = !1;
|
|
24900
24900
|
};
|
|
24901
24901
|
}, Qr = S(1), $t = S(""), zt = S(!1), Zr = S(""), eo = S(""), to = S(""), ro = S(null), pi = S(null), di = S(null), ci = S(null), bi = S(null), Ja = async function() {
|
|
24902
|
-
await t.clearHtmlSelection(), $t.value = "success", zt.value = !0, Zr.value = "Do you want to reset this page?", eo.value =
|
|
24902
|
+
await t.clearHtmlSelection(), $t.value = "success", zt.value = !0, Zr.value = n("Do you want to reset this page?"), eo.value = n(
|
|
24903
|
+
"Are you sure you want to reset this page? This will overwrite your current changes."
|
|
24904
|
+
), to.value = n("Close"), ro.value = null, pi.value = n("Reset changes"), di.value = function() {
|
|
24903
24905
|
zt.value = !1;
|
|
24904
24906
|
}, ci.value = async function() {
|
|
24905
24907
|
}, bi.value = async function() {
|
|
24906
24908
|
await t.restoreOriginalContent(), zt.value = !1;
|
|
24907
24909
|
};
|
|
24908
24910
|
}, B = function() {
|
|
24909
|
-
h.value || (
|
|
24911
|
+
h.value || (N.value = !0);
|
|
24910
24912
|
}, V = S(null);
|
|
24911
24913
|
let J = null, le = null;
|
|
24912
|
-
function
|
|
24914
|
+
function ie() {
|
|
24913
24915
|
const Y = V.value, A = Y && Y.querySelector("#pbxEditToolbar"), he = it.value;
|
|
24914
24916
|
if (!Y || !A) return;
|
|
24915
24917
|
const ut = Y.querySelector("[selected]");
|
|
@@ -24920,21 +24922,21 @@ const H6 = /* @__PURE__ */ Ka(z6, [["render", j6]]), V6 = { class: "pbx-font-san
|
|
|
24920
24922
|
}
|
|
24921
24923
|
const ke = JSON.parse(localStorage.getItem("userSettingsPageBuilder"));
|
|
24922
24924
|
return xr(async () => {
|
|
24923
|
-
await t.completeBuilderInitialization(void 0, !0), ke && ke.lang && (m.value = ke.lang), g.value && g.value.userSettings && g.value.userSettings.language && g.value.userSettings.language.default && (!ke || !ke.lang) && (m.value = g.value.userSettings.language.default), await i(m.value), u = !1,
|
|
24925
|
+
await t.completeBuilderInitialization(void 0, !0), ke && ke.lang && (m.value = ke.lang), g.value && g.value.userSettings && g.value.userSettings.language && g.value.userSettings.language.default && (!ke || !ke.lang) && (m.value = g.value.userSettings.language.default), await i(m.value), u = !1, ie();
|
|
24924
24926
|
const Y = V.value;
|
|
24925
24927
|
if (!Y) return;
|
|
24926
|
-
new MutationObserver(
|
|
24928
|
+
new MutationObserver(ie).observe(Y, {
|
|
24927
24929
|
childList: !0,
|
|
24928
24930
|
subtree: !0,
|
|
24929
24931
|
attributes: !0,
|
|
24930
24932
|
attributeFilter: ["selected"]
|
|
24931
|
-
}), window.addEventListener("scroll",
|
|
24933
|
+
}), window.addEventListener("scroll", ie), window.addEventListener("resize", ie), await st(1e4), B(), await st(1e4), B(), await st(1e4), B();
|
|
24932
24934
|
}), (Y, A) => (v(), C("div", V6, [
|
|
24933
|
-
Tt.value && !
|
|
24935
|
+
Tt.value && !N.value || x.value ? (v(), ce(H6, { key: 0 })) : D("", !0),
|
|
24934
24936
|
H(br, {
|
|
24935
24937
|
title: "The builder hasn’t started yet",
|
|
24936
|
-
showModalBuilder:
|
|
24937
|
-
onCloseMainModalBuilder:
|
|
24938
|
+
showModalBuilder: N.value,
|
|
24939
|
+
onCloseMainModalBuilder: L,
|
|
24938
24940
|
type: "delete",
|
|
24939
24941
|
maxWidth: "2xl",
|
|
24940
24942
|
noBackgroundOpacity: !0
|
|
@@ -24945,18 +24947,18 @@ const H6 = /* @__PURE__ */ Ka(z6, [["render", j6]]), V6 = { class: "pbx-font-san
|
|
|
24945
24947
|
_: 1,
|
|
24946
24948
|
__: [23]
|
|
24947
24949
|
}, 8, ["showModalBuilder"]),
|
|
24948
|
-
|
|
24950
|
+
se.value ? (v(), ce(J5, {
|
|
24949
24951
|
key: 1,
|
|
24950
|
-
show:
|
|
24951
|
-
firstButtonText:
|
|
24952
|
+
show: se.value,
|
|
24953
|
+
firstButtonText: de.value,
|
|
24952
24954
|
title: ue.value,
|
|
24953
24955
|
CustomBuilderComponents: o.CustomBuilderComponents,
|
|
24954
|
-
onFirstModalButtonSearchComponentsFunction:
|
|
24955
|
-
}, null, 8, ["show", "firstButtonText", "title", "CustomBuilderComponents", "onFirstModalButtonSearchComponentsFunction"])) :
|
|
24956
|
+
onFirstModalButtonSearchComponentsFunction: ne.value
|
|
24957
|
+
}, null, 8, ["show", "firstButtonText", "title", "CustomBuilderComponents", "onFirstModalButtonSearchComponentsFunction"])) : D("", !0),
|
|
24956
24958
|
H(br, {
|
|
24957
24959
|
title: k.value,
|
|
24958
24960
|
showModalBuilder: E.value,
|
|
24959
|
-
onCloseMainModalBuilder:
|
|
24961
|
+
onCloseMainModalBuilder: _,
|
|
24960
24962
|
maxWidth: "screen"
|
|
24961
24963
|
}, {
|
|
24962
24964
|
default: U(() => [
|
|
@@ -25042,7 +25044,7 @@ const H6 = /* @__PURE__ */ Ka(z6, [["render", j6]]), V6 = { class: "pbx-font-san
|
|
|
25042
25044
|
}, null, 8, q6)
|
|
25043
25045
|
])
|
|
25044
25046
|
])
|
|
25045
|
-
])) :
|
|
25047
|
+
])) : D("", !0),
|
|
25046
25048
|
b("div", {
|
|
25047
25049
|
onClick: A[4] || (A[4] = gt(
|
|
25048
25050
|
async () => {
|
|
@@ -25064,7 +25066,7 @@ const H6 = /* @__PURE__ */ Ka(z6, [["render", j6]]), V6 = { class: "pbx-font-san
|
|
|
25064
25066
|
type: "button",
|
|
25065
25067
|
disabled: It.value
|
|
25066
25068
|
}, [
|
|
25067
|
-
It.value ?
|
|
25069
|
+
It.value ? D("", !0) : (v(), C("div", J6, A[26] || (A[26] = [
|
|
25068
25070
|
b("span", { class: "material-symbols-outlined" }, "save", -1)
|
|
25069
25071
|
]))),
|
|
25070
25072
|
It.value ? (v(), C("div", Y6, A[27] || (A[27] = [
|
|
@@ -25072,7 +25074,7 @@ const H6 = /* @__PURE__ */ Ka(z6, [["render", j6]]), V6 = { class: "pbx-font-san
|
|
|
25072
25074
|
b("span", { class: "pbx-absolute pbx-inline-flex pbx-h-full pbx-w-full pbx-animate-ping pbx-rounded-full pbx-bg-gray-400 pbx-opacity-75" }),
|
|
25073
25075
|
b("span", { class: "pbx-relative pbx-inline-flex pbx-size-3 pbx-rounded-full pbx-bg-green-200" })
|
|
25074
25076
|
], -1)
|
|
25075
|
-
]))) :
|
|
25077
|
+
]))) : D("", !0),
|
|
25076
25078
|
b("div", null, M(y(n)("Save")), 1)
|
|
25077
25079
|
], 8, G6),
|
|
25078
25080
|
g.value && g.value.updateOrCreate && g.value.updateOrCreate.formType === "update" ? (v(), C("button", {
|
|
@@ -25087,7 +25089,7 @@ const H6 = /* @__PURE__ */ Ka(z6, [["render", j6]]), V6 = { class: "pbx-font-san
|
|
|
25087
25089
|
type: "button",
|
|
25088
25090
|
disabled: Bt.value
|
|
25089
25091
|
}, [
|
|
25090
|
-
Bt.value ?
|
|
25092
|
+
Bt.value ? D("", !0) : (v(), C("div", Q6, A[28] || (A[28] = [
|
|
25091
25093
|
b("span", { class: "material-symbols-outlined" }, " settings_backup_restore ", -1)
|
|
25092
25094
|
]))),
|
|
25093
25095
|
Bt.value ? (v(), C("div", Z6, A[29] || (A[29] = [
|
|
@@ -25095,11 +25097,11 @@ const H6 = /* @__PURE__ */ Ka(z6, [["render", j6]]), V6 = { class: "pbx-font-san
|
|
|
25095
25097
|
b("span", { class: "pbx-absolute pbx-inline-flex pbx-h-full pbx-w-full pbx-animate-ping pbx-rounded-full pbx-bg-gray-400 pbx-opacity-75" }),
|
|
25096
25098
|
b("span", { class: "pbx-relative pbx-inline-flex pbx-size-3 pbx-rounded-full pbx-bg-green-200" })
|
|
25097
25099
|
], -1)
|
|
25098
|
-
]))) :
|
|
25100
|
+
]))) : D("", !0),
|
|
25099
25101
|
b("div", eM, [
|
|
25100
25102
|
b("span", null, M(y(n)("Reset Page")), 1)
|
|
25101
25103
|
])
|
|
25102
|
-
], 8, X6)) :
|
|
25104
|
+
], 8, X6)) : D("", !0)
|
|
25103
25105
|
])
|
|
25104
25106
|
]),
|
|
25105
25107
|
b("div", {
|
|
@@ -25123,7 +25125,7 @@ const H6 = /* @__PURE__ */ Ka(z6, [["render", j6]]), V6 = { class: "pbx-font-san
|
|
|
25123
25125
|
b("div", {
|
|
25124
25126
|
class: "pbx-mr-2",
|
|
25125
25127
|
onClick: A[5] || (A[5] = () => {
|
|
25126
|
-
y(s).setComponentArrayAddMethod("unshift"),
|
|
25128
|
+
y(s).setComponentArrayAddMethod("unshift"), K();
|
|
25127
25129
|
})
|
|
25128
25130
|
}, [
|
|
25129
25131
|
b("div", tM, [
|
|
@@ -25182,8 +25184,8 @@ const H6 = /* @__PURE__ */ Ka(z6, [["render", j6]]), V6 = { class: "pbx-font-san
|
|
|
25182
25184
|
d(), await y(t).clearHtmlSelection();
|
|
25183
25185
|
})
|
|
25184
25186
|
}, M(y(n)("Publish")), 1)
|
|
25185
|
-
])) :
|
|
25186
|
-
g.value && g.value.userSettings && g.value.userSettings.language ? (v(), C(
|
|
25187
|
+
])) : D("", !0),
|
|
25188
|
+
g.value && g.value.userSettings && g.value.userSettings.language ? (v(), C(ae, { key: 1 }, [], 64)) : D("", !0),
|
|
25187
25189
|
r.showCloseButton ? (v(), C("div", lM, [
|
|
25188
25190
|
b("button", {
|
|
25189
25191
|
class: "pbx-h-10 pbx-w-10 pbx-flex-end 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 hover:pbx-fill-white focus-visible:pbx-ring-0",
|
|
@@ -25193,27 +25195,27 @@ const H6 = /* @__PURE__ */ Ka(z6, [["render", j6]]), V6 = { class: "pbx-font-san
|
|
|
25193
25195
|
}, A[33] || (A[33] = [
|
|
25194
25196
|
b("span", { class: "material-symbols-outlined" }, " close ", -1)
|
|
25195
25197
|
]))
|
|
25196
|
-
])) :
|
|
25197
|
-
g.value && g.value.userSettings && g.value.userSettings.language && !g.value.userSettings.language.disableLanguageDropDown ? (v(), C(
|
|
25198
|
+
])) : D("", !0),
|
|
25199
|
+
g.value && g.value.userSettings && g.value.userSettings.language && !g.value.userSettings.language.disableLanguageDropDown ? (v(), C(ae, { key: 3 }, [
|
|
25198
25200
|
g.value && g.value.userSettings && g.value.userSettings.language ? (v(), C("div", pM, [
|
|
25199
25201
|
ye(b("select", {
|
|
25200
25202
|
id: "pbx-lang",
|
|
25201
25203
|
class: "pbx-myPrimarySelect pbx-min-w-20 pbx-max-w-2pbx-min-w-20 pbx-w-max",
|
|
25202
25204
|
"onUpdate:modelValue": A[13] || (A[13] = (he) => m.value = he)
|
|
25203
25205
|
}, [
|
|
25204
|
-
Array.isArray(g.value.userSettings.language.enable) && g.value.userSettings.language.enable.length >= 1 ? (v(!0), C(
|
|
25206
|
+
Array.isArray(g.value.userSettings.language.enable) && g.value.userSettings.language.enable.length >= 1 ? (v(!0), C(ae, { key: 0 }, me(y(t).availableLanguage().filter((he) => g.value.userSettings.language.enable.includes(he)), (he) => (v(), C("option", {
|
|
25205
25207
|
key: he,
|
|
25206
25208
|
value: he
|
|
25207
|
-
}, M(he), 9, dM))), 128)) :
|
|
25208
|
-
!g.value.userSettings.language.enable || Array.isArray(g.value.userSettings.language.enable) && g.value.userSettings.language.enable.length === 0 ? (v(!0), C(
|
|
25209
|
+
}, M(he), 9, dM))), 128)) : D("", !0),
|
|
25210
|
+
!g.value.userSettings.language.enable || Array.isArray(g.value.userSettings.language.enable) && g.value.userSettings.language.enable.length === 0 ? (v(!0), C(ae, { key: 1 }, me(y(t).availableLanguage(), (he) => (v(), C("option", {
|
|
25209
25211
|
key: he,
|
|
25210
25212
|
value: he
|
|
25211
|
-
}, M(he), 9, cM))), 128)) :
|
|
25213
|
+
}, M(he), 9, cM))), 128)) : D("", !0)
|
|
25212
25214
|
], 512), [
|
|
25213
25215
|
[qe, m.value]
|
|
25214
25216
|
])
|
|
25215
|
-
])) :
|
|
25216
|
-
], 64)) :
|
|
25217
|
+
])) : D("", !0)
|
|
25218
|
+
], 64)) : D("", !0)
|
|
25217
25219
|
])
|
|
25218
25220
|
]),
|
|
25219
25221
|
b("div", bM, [
|
|
@@ -25232,7 +25234,7 @@ const H6 = /* @__PURE__ */ Ka(z6, [["render", j6]]), V6 = { class: "pbx-font-san
|
|
|
25232
25234
|
b("button", {
|
|
25233
25235
|
type: "button",
|
|
25234
25236
|
onClick: A[14] || (A[14] = () => {
|
|
25235
|
-
y(s).setComponentArrayAddMethod("unshift"),
|
|
25237
|
+
y(s).setComponentArrayAddMethod("unshift"), K();
|
|
25236
25238
|
}),
|
|
25237
25239
|
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 hover:pbx-text-white focus-visible:pbx-ring-0 pbx-text-black hover:pbx-text-white"
|
|
25238
25240
|
}, A[34] || (A[34] = [
|
|
@@ -25247,7 +25249,7 @@ const H6 = /* @__PURE__ */ Ka(z6, [["render", j6]]), V6 = { class: "pbx-font-san
|
|
|
25247
25249
|
["self"]
|
|
25248
25250
|
))
|
|
25249
25251
|
}, [
|
|
25250
|
-
|
|
25252
|
+
re.value ? (v(), ce(lx, { key: 0 })) : D("", !0)
|
|
25251
25253
|
])
|
|
25252
25254
|
])
|
|
25253
25255
|
]),
|
|
@@ -25257,7 +25259,7 @@ const H6 = /* @__PURE__ */ Ka(z6, [["render", j6]]), V6 = { class: "pbx-font-san
|
|
|
25257
25259
|
class: X(["pbx-font-sans pbx-p-1 pbx-flex pbx-flex-col pbx-grow pbx-rounded-tr-2xl pbx-rounded-tl-2xl pbx-border-solid pbx-border pbx-border-gray-200 pbx-items-stretch pbx-h-[100vh] pbx-text-black", { "pbx-mr-2": !w.value, "": w.value }])
|
|
25258
25260
|
}, [
|
|
25259
25261
|
b("div", xM, [
|
|
25260
|
-
|
|
25262
|
+
re.value ? (v(), ce(w5, { key: 0 })) : D("", !0),
|
|
25261
25263
|
it.value ? (v(), C("button", {
|
|
25262
25264
|
key: 1,
|
|
25263
25265
|
onClick: A[17] || (A[17] = (...he) => y(t).restoreDeletedElementToDOM && y(t).restoreDeletedElementToDOM(...he)),
|
|
@@ -25265,21 +25267,21 @@ const H6 = /* @__PURE__ */ Ka(z6, [["render", j6]]), V6 = { class: "pbx-font-san
|
|
|
25265
25267
|
class: "pbx-h-10 pbx-w-10 pbx-flex-end pbx-cursor-pointer pbx-rounded-full pbx-flex pbx-items-center pbx-border-none pbx-justify-center pbx-aspect-square hover:pbx-bg-gray-100 hover:pbx-fill-white pbx-bg-gray-200 focus-visible:pbx-ring-0"
|
|
25266
25268
|
}, A[35] || (A[35] = [
|
|
25267
25269
|
b("span", { class: "material-symbols-outlined" }, " undo ", -1)
|
|
25268
|
-
]))) :
|
|
25270
|
+
]))) : D("", !0)
|
|
25269
25271
|
]),
|
|
25270
25272
|
b("div", gM, [
|
|
25271
|
-
(v(!0), C(
|
|
25273
|
+
(v(!0), C(ae, null, me(Qt.value, (he) => (v(), C(ae, {
|
|
25272
25274
|
key: he.id
|
|
25273
25275
|
}, [
|
|
25274
25276
|
he.html_code ? (v(), C("section", {
|
|
25275
25277
|
key: 0,
|
|
25276
25278
|
innerHTML: he.html_code,
|
|
25277
25279
|
onMouseup: (ut) => at(he)
|
|
25278
|
-
}, null, 40, hM)) :
|
|
25280
|
+
}, null, 40, hM)) : D("", !0)
|
|
25279
25281
|
], 64))), 128))
|
|
25280
25282
|
])
|
|
25281
25283
|
], 2),
|
|
25282
|
-
w.value ?
|
|
25284
|
+
w.value ? D("", !0) : (v(), C("div", {
|
|
25283
25285
|
key: 0,
|
|
25284
25286
|
onClick: A[20] || (A[20] = gt(
|
|
25285
25287
|
async () => {
|
|
@@ -25298,7 +25300,7 @@ const H6 = /* @__PURE__ */ Ka(z6, [["render", j6]]), V6 = { class: "pbx-font-san
|
|
|
25298
25300
|
)),
|
|
25299
25301
|
class: "pbx-flex pbx-flex-col pbx-items-center pbx-justify-center pbx-gap-2"
|
|
25300
25302
|
}, [
|
|
25301
|
-
w.value ?
|
|
25303
|
+
w.value ? D("", !0) : (v(), C("button", {
|
|
25302
25304
|
key: 0,
|
|
25303
25305
|
onClick: A[18] || (A[18] = (he) => y(s).setMenuRight(!0)),
|
|
25304
25306
|
type: "button",
|
|
@@ -25324,7 +25326,7 @@ const H6 = /* @__PURE__ */ Ka(z6, [["render", j6]]), V6 = { class: "pbx-font-san
|
|
|
25324
25326
|
b("div", fM, [
|
|
25325
25327
|
b("div", {
|
|
25326
25328
|
onClick: A[22] || (A[22] = () => {
|
|
25327
|
-
y(s).setComponentArrayAddMethod("push"),
|
|
25329
|
+
y(s).setComponentArrayAddMethod("push"), K();
|
|
25328
25330
|
}),
|
|
25329
25331
|
class: "pbx-flex pbx-items-center pbx-justify-center pbx-gap-2 pbx-cursor-pointer"
|
|
25330
25332
|
}, [
|