@myissue/vue-website-page-builder 3.2.29 → 3.2.31
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/README.md +31 -0
- package/dist/vue-website-page-builder.js +332 -330
- package/dist/vue-website-page-builder.umd.cjs +4 -4
- package/package.json +2 -2
- package/src/Components/Modals/BuilderComponents.vue +4 -2
- package/src/Components/Modals/MediaLibraryModal.vue +5 -3
- package/src/Components/Modals/ModalBuilder.vue +40 -42
- package/src/DemoComponents/html.json +1 -1
|
@@ -4,10 +4,10 @@ var nc = (r) => {
|
|
|
4
4
|
};
|
|
5
5
|
var jg = (r, e, t) => e in r ? Hg(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
6
6
|
var fe = (r, e, t) => jg(r, typeof e != "symbol" ? e + "" : e, t), ic = (r, e, t) => e.has(r) || nc("Cannot " + t);
|
|
7
|
-
var Ti = (r, e, t) => (ic(r, e, "read from private field"), t ? t.call(r) : e.get(r)),
|
|
7
|
+
var Ti = (r, e, t) => (ic(r, e, "read from private field"), t ? t.call(r) : e.get(r)), an = (r, e, t) => e.has(r) ? nc("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(r) : e.set(r, t);
|
|
8
8
|
var be = (r, e, t) => (ic(r, e, "access private method"), t);
|
|
9
9
|
import * as sc from "vue";
|
|
10
|
-
import { nextTick as Me, computed as N, ref as x, watchEffect as nt, onMounted as ke, cloneVNode as Vg, h as Ce, Fragment as ve, defineComponent as ue, inject as _e, provide as Ve, onUnmounted as kt, watch as ce, shallowRef as cu, unref as T, getCurrentInstance as Xl, Teleport as
|
|
10
|
+
import { nextTick as Me, computed as N, ref as x, watchEffect as nt, onMounted as ke, cloneVNode as Vg, h as Ce, Fragment as ve, defineComponent as ue, inject as _e, provide as Ve, onUnmounted as kt, watch as ce, shallowRef as cu, unref as T, getCurrentInstance as Xl, Teleport as ei, reactive as pu, toRaw as tt, normalizeClass as J, effectScope as uu, markRaw as Er, hasInjectionContext as Wg, isRef as Nn, isReactive as Zl, toRef as ka, getCurrentScope as qg, onScopeDispose as Ug, toRefs as ac, createBlock as Se, openBlock as v, createVNode as _, withCtx as F, withKeys as mu, withModifiers as wr, createElementVNode as m, renderSlot as Kt, createElementBlock as C, createCommentVNode as R, toDisplayString as j, Transition as Rt, onBeforeUnmount as ea, customRef as Kg, onBeforeMount as Gg, withDirectives as lt, vModelText as ed, createTextVNode as We, resolveDynamicComponent as hu, renderList as Le, vModelSelect as $t, vShow as Jg, createStaticVNode as Yg } from "vue";
|
|
11
11
|
const is = {
|
|
12
12
|
backgroundColorVariables: [
|
|
13
13
|
"none",
|
|
@@ -1059,7 +1059,7 @@ const gu = function(e = 200) {
|
|
|
1059
1059
|
var ne, Ne, fu, bu, Qs, Xs, Zs, yu, wu, sl, vu;
|
|
1060
1060
|
class Fe {
|
|
1061
1061
|
constructor(e) {
|
|
1062
|
-
|
|
1062
|
+
an(this, ne);
|
|
1063
1063
|
// Class properties with types
|
|
1064
1064
|
fe(this, "elementsWithListeners");
|
|
1065
1065
|
fe(this, "nextTick");
|
|
@@ -1083,7 +1083,7 @@ class Fe {
|
|
|
1083
1083
|
fe(this, "showRunningMethodLogs");
|
|
1084
1084
|
fe(this, "delay");
|
|
1085
1085
|
fe(this, "observer");
|
|
1086
|
-
|
|
1086
|
+
an(this, Qs, (e, t) => {
|
|
1087
1087
|
e.preventDefault(), e.stopPropagation();
|
|
1088
1088
|
const o = document.querySelector("#pagebuilder");
|
|
1089
1089
|
if (!o) return;
|
|
@@ -1091,14 +1091,14 @@ class Fe {
|
|
|
1091
1091
|
const n = o.querySelector("[selected]");
|
|
1092
1092
|
n && n.removeAttribute("selected"), t.removeAttribute("hovered"), t.setAttribute("selected", ""), this.pageBuilderStateStore.setElement(t);
|
|
1093
1093
|
});
|
|
1094
|
-
|
|
1094
|
+
an(this, Xs, (e, t) => {
|
|
1095
1095
|
this.showRunningMethodLogs && console.log("#handleMouseOver"), e.preventDefault(), e.stopPropagation();
|
|
1096
1096
|
const o = document.querySelector("#pagebuilder");
|
|
1097
1097
|
if (!o) return;
|
|
1098
1098
|
const n = o.querySelector("[hovered]");
|
|
1099
1099
|
n && n.removeAttribute("hovered"), t.hasAttribute("selected") || t.setAttribute("hovered", "");
|
|
1100
1100
|
});
|
|
1101
|
-
|
|
1101
|
+
an(this, Zs, (e) => {
|
|
1102
1102
|
this.showRunningMethodLogs && console.log("#handleMouseLeave"), e.preventDefault(), e.stopPropagation();
|
|
1103
1103
|
const t = document.querySelector("#pagebuilder");
|
|
1104
1104
|
if (!t) return;
|
|
@@ -1792,9 +1792,9 @@ function rd(r, e = (t) => t) {
|
|
|
1792
1792
|
});
|
|
1793
1793
|
}
|
|
1794
1794
|
function uf(r, e) {
|
|
1795
|
-
return
|
|
1795
|
+
return wn(ku(), e, { relativeTo: r });
|
|
1796
1796
|
}
|
|
1797
|
-
function
|
|
1797
|
+
function wn(r, e, { sorted: t = !0, relativeTo: o = null, skipElements: n = [] } = {}) {
|
|
1798
1798
|
var i;
|
|
1799
1799
|
let s = (i = Array.isArray(r) ? r.length > 0 ? r[0].ownerDocument : document : r == null ? void 0 : r.ownerDocument) != null ? i : document, a = Array.isArray(r) ? t ? rd(r) : r : ku(r);
|
|
1800
1800
|
n.length > 0 && a.length > 1 && (a = a.filter((g) => !n.includes(g))), o = o ?? s.activeElement;
|
|
@@ -1971,7 +1971,7 @@ function nd(r, e = []) {
|
|
|
1971
1971
|
function bf(r) {
|
|
1972
1972
|
return r == null ? !1 : typeof r.type == "string" || typeof r.type == "object" || typeof r.type == "function";
|
|
1973
1973
|
}
|
|
1974
|
-
var
|
|
1974
|
+
var In = ((r) => (r[r.None = 1] = "None", r[r.Focusable = 2] = "Focusable", r[r.Hidden = 4] = "Hidden", r))(In || {});
|
|
1975
1975
|
let as = ue({ name: "Hidden", props: { as: { type: [Object, String], default: "div" }, features: { type: Number, default: 1 } }, setup(r, { slots: e, attrs: t }) {
|
|
1976
1976
|
return () => {
|
|
1977
1977
|
var o;
|
|
@@ -2055,7 +2055,7 @@ function Iu(r, e, t, o) {
|
|
|
2055
2055
|
r = r ?? window, r.addEventListener(e, t, o), n(() => r.removeEventListener(e, t, o));
|
|
2056
2056
|
});
|
|
2057
2057
|
}
|
|
2058
|
-
var
|
|
2058
|
+
var mn = ((r) => (r[r.Forwards = 0] = "Forwards", r[r.Backwards = 1] = "Backwards", r))(mn || {});
|
|
2059
2059
|
function xf() {
|
|
2060
2060
|
let r = x(0);
|
|
2061
2061
|
return Mu("keydown", (e) => {
|
|
@@ -2073,7 +2073,7 @@ function Ru(r) {
|
|
|
2073
2073
|
return e;
|
|
2074
2074
|
}
|
|
2075
2075
|
var $u = ((r) => (r[r.None = 1] = "None", r[r.InitialFocus = 2] = "InitialFocus", r[r.TabLock = 4] = "TabLock", r[r.FocusLock = 8] = "FocusLock", r[r.RestoreFocus = 16] = "RestoreFocus", r[r.All = 30] = "All", r))($u || {});
|
|
2076
|
-
let
|
|
2076
|
+
let ln = Object.assign(ue({ name: "FocusTrap", props: { as: { type: [Object, String], default: "div" }, initialFocus: { type: Object, default: null }, features: { type: Number, default: 30 }, containers: { type: [Object, Function], default: x(/* @__PURE__ */ new Set()) } }, inheritAttrs: !1, setup(r, { attrs: e, slots: t, expose: o }) {
|
|
2077
2077
|
let n = x(null);
|
|
2078
2078
|
o({ el: n, $el: n });
|
|
2079
2079
|
let i = N(() => Hr(n)), s = x(!1);
|
|
@@ -2084,10 +2084,10 @@ let dn = Object.assign(ue({ name: "FocusTrap", props: { as: { type: [Object, Str
|
|
|
2084
2084
|
function d(h) {
|
|
2085
2085
|
let g = U(n);
|
|
2086
2086
|
g && ((f) => f())(() => {
|
|
2087
|
-
$e(l.value, { [
|
|
2088
|
-
|
|
2089
|
-
}, [
|
|
2090
|
-
|
|
2087
|
+
$e(l.value, { [mn.Forwards]: () => {
|
|
2088
|
+
wn(g, Ut.First, { skipElements: [h.relatedTarget] });
|
|
2089
|
+
}, [mn.Backwards]: () => {
|
|
2090
|
+
wn(g, Ut.Last, { skipElements: [h.relatedTarget] });
|
|
2091
2091
|
} });
|
|
2092
2092
|
});
|
|
2093
2093
|
}
|
|
@@ -2102,11 +2102,11 @@ let dn = Object.assign(ue({ name: "FocusTrap", props: { as: { type: [Object, Str
|
|
|
2102
2102
|
let g = Ru(r.containers);
|
|
2103
2103
|
U(n) instanceof HTMLElement && g.add(U(n));
|
|
2104
2104
|
let f = h.relatedTarget;
|
|
2105
|
-
f instanceof HTMLElement && f.dataset.headlessuiFocusGuard !== "true" && (_u(g, f) || (c.value ?
|
|
2105
|
+
f instanceof HTMLElement && f.dataset.headlessuiFocusGuard !== "true" && (_u(g, f) || (c.value ? wn(U(n), $e(l.value, { [mn.Forwards]: () => Ut.Next, [mn.Backwards]: () => Ut.Previous }) | Ut.WrapAround, { relativeTo: h.target }) : h.target instanceof HTMLElement && Nr(h.target)));
|
|
2106
2106
|
}
|
|
2107
2107
|
return () => {
|
|
2108
2108
|
let h = {}, g = { ref: n, onKeydown: p, onFocusout: u }, { features: f, initialFocus: b, containers: w, ...k } = r;
|
|
2109
|
-
return Ce(ve, [!!(f & 4) && Ce(as, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: d, features:
|
|
2109
|
+
return Ce(ve, [!!(f & 4) && Ce(as, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: d, features: In.Focusable }), Pe({ ourProps: g, theirProps: { ...e, ...k }, slot: h, attrs: e, slots: t, name: "FocusTrap" }), !!(f & 4) && Ce(as, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: d, features: In.Focusable })]);
|
|
2110
2110
|
};
|
|
2111
2111
|
} }), { features: $u });
|
|
2112
2112
|
function kf(r) {
|
|
@@ -2150,7 +2150,7 @@ function Cf({ ownerDocument: r, container: e, initialFocus: t }, o) {
|
|
|
2150
2150
|
n.value = u;
|
|
2151
2151
|
return;
|
|
2152
2152
|
}
|
|
2153
|
-
p ? Nr(p) :
|
|
2153
|
+
p ? Nr(p) : wn(l, Ut.First | Ut.NoScroll) === xu.Error && console.warn("There are no focusable elements inside the <FocusTrap />"), n.value = (c = r.value) == null ? void 0 : c.activeElement;
|
|
2154
2154
|
});
|
|
2155
2155
|
}, { immediate: !0, flush: "post" });
|
|
2156
2156
|
}), n;
|
|
@@ -2289,7 +2289,7 @@ function Lf(r, e, t) {
|
|
|
2289
2289
|
});
|
|
2290
2290
|
}, { immediate: !0 }), n;
|
|
2291
2291
|
}
|
|
2292
|
-
let Ma = /* @__PURE__ */ new Map(),
|
|
2292
|
+
let Ma = /* @__PURE__ */ new Map(), dn = /* @__PURE__ */ new Map();
|
|
2293
2293
|
function hc(r, e = x(!0)) {
|
|
2294
2294
|
nt((t) => {
|
|
2295
2295
|
var o;
|
|
@@ -2299,13 +2299,13 @@ function hc(r, e = x(!0)) {
|
|
|
2299
2299
|
t(function() {
|
|
2300
2300
|
var s;
|
|
2301
2301
|
if (!n) return;
|
|
2302
|
-
let a = (s =
|
|
2303
|
-
if (a === 1 ?
|
|
2302
|
+
let a = (s = dn.get(n)) != null ? s : 1;
|
|
2303
|
+
if (a === 1 ? dn.delete(n) : dn.set(n, a - 1), a !== 1) return;
|
|
2304
2304
|
let l = Ma.get(n);
|
|
2305
2305
|
l && (l["aria-hidden"] === null ? n.removeAttribute("aria-hidden") : n.setAttribute("aria-hidden", l["aria-hidden"]), n.inert = l.inert, Ma.delete(n));
|
|
2306
2306
|
});
|
|
2307
|
-
let i = (o =
|
|
2308
|
-
|
|
2307
|
+
let i = (o = dn.get(n)) != null ? o : 0;
|
|
2308
|
+
dn.set(n, i + 1), i === 0 && (Ma.set(n, { "aria-hidden": n.getAttribute("aria-hidden"), inert: n.inert }), n.setAttribute("aria-hidden", "true"), n.inert = !0);
|
|
2309
2309
|
});
|
|
2310
2310
|
}
|
|
2311
2311
|
function Df({ defaultContainers: r = [], portals: e, mainTreeNodeRef: t } = {}) {
|
|
@@ -2321,7 +2321,7 @@ function Df({ defaultContainers: r = [], portals: e, mainTreeNodeRef: t } = {})
|
|
|
2321
2321
|
return { resolveContainers: i, contains(s) {
|
|
2322
2322
|
return i().some((a) => a.contains(s));
|
|
2323
2323
|
}, mainTreeNodeRef: o, MainTreeNode() {
|
|
2324
|
-
return t != null ? null : Ce(as, { features:
|
|
2324
|
+
return t != null ? null : Ce(as, { features: In.Hidden, ref: o });
|
|
2325
2325
|
} };
|
|
2326
2326
|
}
|
|
2327
2327
|
let Fu = Symbol("ForcePortalRootContext");
|
|
@@ -2417,7 +2417,7 @@ let ju = ue({ name: "Portal", props: { as: { type: [Object, String], default: "d
|
|
|
2417
2417
|
}), () => {
|
|
2418
2418
|
if (!l.value || a.value === null) return null;
|
|
2419
2419
|
let u = { ref: o, "data-headlessui-portal": "" };
|
|
2420
|
-
return Ce(
|
|
2420
|
+
return Ce(ei, { to: a.value }, Pe({ ourProps: u, theirProps: r, slot: {}, attrs: t, slots: e, name: "Portal" }));
|
|
2421
2421
|
};
|
|
2422
2422
|
} }), pl = Symbol("PortalParentContext");
|
|
2423
2423
|
function Hf() {
|
|
@@ -2511,7 +2511,7 @@ let Ai = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", ii = ue({ name: "Dialog", inher
|
|
|
2511
2511
|
De.observe(pe), re(() => De.disconnect());
|
|
2512
2512
|
}), () => {
|
|
2513
2513
|
let { open: re, initialFocus: pe, ...De } = r, Ee = { ...t, ref: g, id: a, role: c.value, "aria-modal": b.value === 0 ? !0 : void 0, "aria-labelledby": Z.value, "aria-describedby": Q.value }, st = { open: b.value === 0 };
|
|
2514
|
-
return Ce(ll, { force: !0 }, () => [Ce(ju, () => Ce(jf, { target: g.value }, () => Ce(ll, { force: !1 }, () => Ce(
|
|
2514
|
+
return Ce(ll, { force: !0 }, () => [Ce(ju, () => Ce(jf, { target: g.value }, () => Ce(ll, { force: !1 }, () => Ce(ln, { initialFocus: pe, containers: E, features: w.value ? $e(P.value, { parent: ln.features.RestoreFocus, leaf: ln.features.All & ~ln.features.FocusLock }) : ln.features.None }, () => Ce(B, {}, () => Pe({ ourProps: Ee, theirProps: { ...De, ...t }, slot: st, attrs: t, slots: o, visible: b.value === 0, features: Fr.RenderStrategy | Fr.Static, name: "Dialog" })))))), Ce(A)]);
|
|
2515
2515
|
};
|
|
2516
2516
|
} }), sd = ue({ name: "DialogOverlay", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: null } }, setup(r, { attrs: e, slots: t }) {
|
|
2517
2517
|
var o;
|
|
@@ -2674,7 +2674,7 @@ let ai = ue({ name: "Listbox", emits: { "update:modelValue": (r) => !0 }, props:
|
|
|
2674
2674
|
}, { immediate: !0 });
|
|
2675
2675
|
}), () => {
|
|
2676
2676
|
let { name: M, modelValue: y, disabled: B, form: E, ...D } = r, A = { open: n.value === 0, disabled: B, value: b.value };
|
|
2677
|
-
return Ce(ve, [...M != null && b.value != null ? Lu({ [M]: b.value }).map(([P, S]) => Ce(as, ff({ features:
|
|
2677
|
+
return Ce(ve, [...M != null && b.value != null ? Lu({ [M]: b.value }).map(([P, S]) => Ce(as, ff({ features: In.Hidden, key: P, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: E, disabled: B, name: P, value: S }))) : [], Pe({ ourProps: {}, theirProps: { ...t, ...nd(D, ["defaultValue", "onUpdate:modelValue", "horizontal", "multiple", "by"]) }, slot: A, slots: e, attrs: t, name: "Listbox" })]);
|
|
2678
2678
|
};
|
|
2679
2679
|
} });
|
|
2680
2680
|
ue({ name: "ListboxLabel", props: { as: { type: [Object, String], default: "label" }, id: { type: String, default: null } }, setup(r, { attrs: e, slots: t }) {
|
|
@@ -3099,7 +3099,7 @@ let Ju = Fr.RenderStrategy, mr = ue({ props: { as: { type: [Object, String], def
|
|
|
3099
3099
|
function d() {
|
|
3100
3100
|
i.value &= ~Ae.Closing, e("afterLeave");
|
|
3101
3101
|
}
|
|
3102
|
-
if (!i0() && yf()) return () => Ce(
|
|
3102
|
+
if (!i0() && yf()) return () => Ce(Qo, { ...r, onBeforeEnter: s, onAfterEnter: a, onBeforeLeave: l, onAfterLeave: d }, o);
|
|
3103
3103
|
let c = x(null), p = N(() => r.unmount ? Or.Unmount : Or.Hidden);
|
|
3104
3104
|
n({ el: c, $el: c });
|
|
3105
3105
|
let { show: u, appear: h } = s0(), { register: g, unregister: f } = a0(), b = x(u.value ? "visible" : "hidden"), w = { value: !0 }, k = yt(), M = { value: !1 }, y = Gu(() => {
|
|
@@ -3142,7 +3142,7 @@ let Ju = Fr.RenderStrategy, mr = ue({ props: { as: { type: [Object, String], def
|
|
|
3142
3142
|
let { appear: q, show: oe, enter: Q, enterFrom: Z, enterTo: le, entered: he, leave: se, leaveFrom: ae, leaveTo: re, ...pe } = r, De = { ref: c }, Ee = { ...pe, ...h.value && u.value && ri.isServer ? { class: J([t.class, pe.class, ...B, ...E]) } : {} };
|
|
3143
3143
|
return Pe({ theirProps: Ee, ourProps: De, slot: {}, slots: o, attrs: t, features: Ju, visible: b.value === "visible", name: "TransitionChild" });
|
|
3144
3144
|
};
|
|
3145
|
-
} }), l0 = mr,
|
|
3145
|
+
} }), l0 = mr, Qo = ue({ inheritAttrs: !1, props: { as: { type: [Object, String], default: "div" }, show: { type: [Boolean], default: null }, unmount: { type: [Boolean], default: !0 }, appear: { type: [Boolean], default: !1 }, enter: { type: [String], default: "" }, enterFrom: { type: [String], default: "" }, enterTo: { type: [String], default: "" }, entered: { type: [String], default: "" }, leave: { type: [String], default: "" }, leaveFrom: { type: [String], default: "" }, leaveTo: { type: [String], default: "" } }, emits: { beforeEnter: () => !0, afterEnter: () => !0, beforeLeave: () => !0, afterLeave: () => !0 }, setup(r, { emit: e, attrs: t, slots: o }) {
|
|
3146
3146
|
let n = oi(), i = N(() => r.show === null && n !== null ? (n.value & Ae.Open) === Ae.Open : r.show);
|
|
3147
3147
|
nt(() => {
|
|
3148
3148
|
if (![!0, !1].includes(i.value)) throw new Error('A <Transition /> is used but it is missing a `:show="true | false"` prop.');
|
|
@@ -3264,8 +3264,8 @@ function Qu(r, e) {
|
|
|
3264
3264
|
* (c) 2025 Eduardo San Martin Morote
|
|
3265
3265
|
* @license MIT
|
|
3266
3266
|
*/
|
|
3267
|
-
let
|
|
3268
|
-
const
|
|
3267
|
+
let hn;
|
|
3268
|
+
const Rn = (r) => hn = r, Xu = process.env.NODE_ENV !== "production" ? Symbol("pinia") : (
|
|
3269
3269
|
/* istanbul ignore next */
|
|
3270
3270
|
Symbol()
|
|
3271
3271
|
);
|
|
@@ -3814,7 +3814,7 @@ function D0() {
|
|
|
3814
3814
|
let t = [], o = [];
|
|
3815
3815
|
const n = Er({
|
|
3816
3816
|
install(i) {
|
|
3817
|
-
|
|
3817
|
+
Rn(n), n._a = i, i.provide(Xu, n), i.config.globalProperties.$pinia = n, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Pr && B0(i, n), o.forEach((s) => t.push(s)), o = [];
|
|
3818
3818
|
},
|
|
3819
3819
|
use(i) {
|
|
3820
3820
|
return this._a ? t.push(i) : o.push(i), this;
|
|
@@ -3835,7 +3835,7 @@ function am(r, e) {
|
|
|
3835
3835
|
if (!(t in r))
|
|
3836
3836
|
continue;
|
|
3837
3837
|
const n = r[t];
|
|
3838
|
-
uo(n) && uo(o) && !
|
|
3838
|
+
uo(n) && uo(o) && !Nn(o) && !Zl(o) ? r[t] = am(n, o) : r[t] = o;
|
|
3839
3839
|
}
|
|
3840
3840
|
return r;
|
|
3841
3841
|
}
|
|
@@ -3861,7 +3861,7 @@ function gl(r, e) {
|
|
|
3861
3861
|
if (!e.hasOwnProperty(t))
|
|
3862
3862
|
continue;
|
|
3863
3863
|
const o = e[t], n = r[t];
|
|
3864
|
-
uo(n) && uo(o) && r.hasOwnProperty(t) && !
|
|
3864
|
+
uo(n) && uo(o) && r.hasOwnProperty(t) && !Nn(o) && !Zl(o) ? r[t] = gl(n, o) : r[t] = o;
|
|
3865
3865
|
}
|
|
3866
3866
|
return r;
|
|
3867
3867
|
}
|
|
@@ -3874,7 +3874,7 @@ function R0(r) {
|
|
|
3874
3874
|
}
|
|
3875
3875
|
const { assign: Et } = Object;
|
|
3876
3876
|
function Sc(r) {
|
|
3877
|
-
return !!(
|
|
3877
|
+
return !!(Nn(r) && r.effect);
|
|
3878
3878
|
}
|
|
3879
3879
|
function Cc(r, e, t, o) {
|
|
3880
3880
|
const { state: n, actions: i, getters: s } = e, a = t.state.value[r];
|
|
@@ -3886,7 +3886,7 @@ function Cc(r, e, t, o) {
|
|
|
3886
3886
|
ac(x(n ? n() : {}).value)
|
|
3887
3887
|
) : ac(t.state.value[r]);
|
|
3888
3888
|
return Et(c, i, Object.keys(s || {}).reduce((p, u) => (process.env.NODE_ENV !== "production" && u in c && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${u}" in store "${r}".`), p[u] = Er(N(() => {
|
|
3889
|
-
|
|
3889
|
+
Rn(t);
|
|
3890
3890
|
const h = t._s.get(r);
|
|
3891
3891
|
return s[u].call(h, h);
|
|
3892
3892
|
})), p), {}));
|
|
@@ -3942,7 +3942,7 @@ function fl(r, e, t = {}, o, n, i) {
|
|
|
3942
3942
|
if (kc in S)
|
|
3943
3943
|
return S[Oa] = O, S;
|
|
3944
3944
|
const H = function() {
|
|
3945
|
-
|
|
3945
|
+
Rn(o);
|
|
3946
3946
|
const q = Array.from(arguments), oe = [], Q = [];
|
|
3947
3947
|
function Z(se) {
|
|
3948
3948
|
oe.push(se);
|
|
@@ -4003,8 +4003,8 @@ function fl(r, e, t = {}, o, n, i) {
|
|
|
4003
4003
|
const P = (o._a && o._a.runWithContext || N0)(() => o._e.run(() => (s = uu()).run(() => e({ action: y }))));
|
|
4004
4004
|
for (const S in P) {
|
|
4005
4005
|
const O = P[S];
|
|
4006
|
-
if (
|
|
4007
|
-
process.env.NODE_ENV !== "production" && n ? Ni(f.value, S, ka(P, S)) : i || (g && R0(O) && (
|
|
4006
|
+
if (Nn(O) && !Sc(O) || Zl(O))
|
|
4007
|
+
process.env.NODE_ENV !== "production" && n ? Ni(f.value, S, ka(P, S)) : i || (g && R0(O) && (Nn(O) ? O.value = g[S] : gl(O, g[S])), o.state.value[r][S] = O), process.env.NODE_ENV !== "production" && B.state.push(S);
|
|
4008
4008
|
else if (typeof O == "function") {
|
|
4009
4009
|
const H = process.env.NODE_ENV !== "production" && n ? O : y(O, S);
|
|
4010
4010
|
P[S] = H, process.env.NODE_ENV !== "production" && (B.actions[S] = O), a.actions[S] = O;
|
|
@@ -4042,7 +4042,7 @@ function fl(r, e, t = {}, o, n, i) {
|
|
|
4042
4042
|
for (const O in S._hmrPayload.getters) {
|
|
4043
4043
|
const H = S._hmrPayload.getters[O], q = i ? (
|
|
4044
4044
|
// special handling of options api
|
|
4045
|
-
N(() => (
|
|
4045
|
+
N(() => (Rn(o), H.call(D, D)))
|
|
4046
4046
|
) : H;
|
|
4047
4047
|
Ni(D, O, q);
|
|
4048
4048
|
}
|
|
@@ -4092,11 +4092,11 @@ function $0(r, e, t) {
|
|
|
4092
4092
|
const d = Wg();
|
|
4093
4093
|
if (a = // in test mode, ignore the argument provided as we can always retrieve a
|
|
4094
4094
|
// pinia instance with getActivePinia()
|
|
4095
|
-
(process.env.NODE_ENV === "test" &&
|
|
4095
|
+
(process.env.NODE_ENV === "test" && hn && hn._testing ? null : a) || (d ? _e(Xu, null) : null), a && Rn(a), process.env.NODE_ENV !== "production" && !hn)
|
|
4096
4096
|
throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
|
|
4097
4097
|
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
4098
4098
|
This will fail in production.`);
|
|
4099
|
-
a =
|
|
4099
|
+
a = hn, a._s.has(o) || (i ? fl(o, e, n, a) : Cc(o, n, a), process.env.NODE_ENV !== "production" && (s._pinia = a));
|
|
4100
4100
|
const c = a._s.get(o);
|
|
4101
4101
|
if (process.env.NODE_ENV !== "production" && l) {
|
|
4102
4102
|
const p = "__hot:" + o, u = i ? fl(p, e, n, a, !0) : Cc(p, Et({}, n), a, !0);
|
|
@@ -4498,8 +4498,8 @@ const _0 = /* @__PURE__ */ $0("pageBuilderState", {
|
|
|
4498
4498
|
}, i = function() {
|
|
4499
4499
|
n();
|
|
4500
4500
|
}, s = N(() => t.getConfigPageBuilder);
|
|
4501
|
-
return (a, l) => (v(), Se(
|
|
4502
|
-
_(T(
|
|
4501
|
+
return (a, l) => (v(), Se(ei, { to: "body" }, [
|
|
4502
|
+
_(T(Qo), {
|
|
4503
4503
|
show: r.show,
|
|
4504
4504
|
as: "template"
|
|
4505
4505
|
}, {
|
|
@@ -4635,67 +4635,65 @@ const _0 = /* @__PURE__ */ $0("pageBuilderState", {
|
|
|
4635
4635
|
"4xl": "sm:max-w-4xl",
|
|
4636
4636
|
"5xl": "sm:max-w-5xl"
|
|
4637
4637
|
})[t.maxWidth]);
|
|
4638
|
-
return (s, a) => (v(), Se(Qo, {
|
|
4639
|
-
|
|
4640
|
-
|
|
4641
|
-
|
|
4642
|
-
|
|
4643
|
-
|
|
4644
|
-
|
|
4645
|
-
|
|
4646
|
-
|
|
4647
|
-
|
|
4648
|
-
|
|
4649
|
-
|
|
4650
|
-
|
|
4651
|
-
|
|
4652
|
-
|
|
4653
|
-
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
|
|
4669
|
-
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
|
|
4680
|
-
|
|
4681
|
-
|
|
4682
|
-
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
|
|
4688
|
-
|
|
4689
|
-
|
|
4690
|
-
|
|
4691
|
-
|
|
4692
|
-
|
|
4693
|
-
|
|
4694
|
-
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
}, 8, ["show"])
|
|
4698
|
-
]));
|
|
4638
|
+
return (s, a) => (v(), Se(T(Qo), {
|
|
4639
|
+
show: r.showModalBuilder,
|
|
4640
|
+
as: "template"
|
|
4641
|
+
}, {
|
|
4642
|
+
default: F(() => [
|
|
4643
|
+
_(T(ii), {
|
|
4644
|
+
as: "div",
|
|
4645
|
+
class: "font-sans fixed z-30 inset-0 overflow-y-auto",
|
|
4646
|
+
onClose: n
|
|
4647
|
+
}, {
|
|
4648
|
+
default: F(() => [
|
|
4649
|
+
m("div", J0, [
|
|
4650
|
+
_(T(mr), {
|
|
4651
|
+
as: "template",
|
|
4652
|
+
enter: "ease-out duration-100",
|
|
4653
|
+
"enter-from": "opacity-0",
|
|
4654
|
+
"enter-to": "opacity-100",
|
|
4655
|
+
leave: "ease-in duration-100",
|
|
4656
|
+
"leave-from": "opacity-100",
|
|
4657
|
+
"leave-to": "opacity-0"
|
|
4658
|
+
}, {
|
|
4659
|
+
default: F(() => [
|
|
4660
|
+
_(T(sd), { class: "fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity" })
|
|
4661
|
+
]),
|
|
4662
|
+
_: 1
|
|
4663
|
+
}),
|
|
4664
|
+
a[0] || (a[0] = m("span", {
|
|
4665
|
+
"aria-hidden": "true",
|
|
4666
|
+
class: "hidden sm:inline-block sm:align-middle sm:h-screen"
|
|
4667
|
+
}, "", -1)),
|
|
4668
|
+
_(T(mr), {
|
|
4669
|
+
as: "template",
|
|
4670
|
+
enter: "ease-out duration-100",
|
|
4671
|
+
"enter-from": "opacity-0 scale-95",
|
|
4672
|
+
"enter-to": "opacity-100 scale-100",
|
|
4673
|
+
leave: "ease-in duration-100",
|
|
4674
|
+
"leave-from": "opacity-100 scale-100",
|
|
4675
|
+
"leave-to": "opacity-0 scale-95"
|
|
4676
|
+
}, {
|
|
4677
|
+
default: F(() => [
|
|
4678
|
+
m("div", {
|
|
4679
|
+
class: J(["relative inline-block align-bottom bg-white rounded-xl text-left overflow-hidden shadow-xl transform transition-all sm:align-top top-4 sm:w-full w-[96%]", [
|
|
4680
|
+
i.value ? i.value : "",
|
|
4681
|
+
r.minHeight ? r.minHeight : "",
|
|
4682
|
+
r.maxHeight ? r.maxHeight : ""
|
|
4683
|
+
]])
|
|
4684
|
+
}, [
|
|
4685
|
+
Kt(s.$slots, "default")
|
|
4686
|
+
], 2)
|
|
4687
|
+
]),
|
|
4688
|
+
_: 3
|
|
4689
|
+
})
|
|
4690
|
+
])
|
|
4691
|
+
]),
|
|
4692
|
+
_: 3
|
|
4693
|
+
})
|
|
4694
|
+
]),
|
|
4695
|
+
_: 3
|
|
4696
|
+
}, 8, ["show"]));
|
|
4699
4697
|
}
|
|
4700
4698
|
}), Y0 = { class: "font-sans w-full relative inline-block align-bottom text-left overflow-hidden transform transition-all sm:align-middle" }, Q0 = {
|
|
4701
4699
|
key: 0,
|
|
@@ -4718,7 +4716,7 @@ const _0 = /* @__PURE__ */ $0("pageBuilderState", {
|
|
|
4718
4716
|
}, s1 = ["innerHTML"], a1 = {
|
|
4719
4717
|
key: 0,
|
|
4720
4718
|
class: "bg-slate-50 px-2 py-4 flex sm:justify-end justify-center"
|
|
4721
|
-
}, l1 = { key: 1 }, d1 = { key: 0 }, c1 = ["disabled"], p1 = { key: 1 }, u1 = { key: 2 }, m1 = { key: 0 }, h1 = { key: 0 }, g1 = ["disabled"], f1 = { key: 1 }, b1 = { key: 1 }, y1 = { key: 0 }, w1 = ["disabled"], v1 = { key: 1 }, x1 = { key: 2 }, k1 = { key: 0 }, S1 = ["disabled"], C1 = { key: 1 }, M1 = { key: 3 }, E1 = { key: 0 }, T1 = ["disabled"], O1 = { key: 1 },
|
|
4719
|
+
}, l1 = { key: 1 }, d1 = { key: 0 }, c1 = ["disabled"], p1 = { key: 1 }, u1 = { key: 2 }, m1 = { key: 0 }, h1 = { key: 0 }, g1 = ["disabled"], f1 = { key: 1 }, b1 = { key: 1 }, y1 = { key: 0 }, w1 = ["disabled"], v1 = { key: 1 }, x1 = { key: 2 }, k1 = { key: 0 }, S1 = ["disabled"], C1 = { key: 1 }, M1 = { key: 3 }, E1 = { key: 0 }, T1 = ["disabled"], O1 = { key: 1 }, $n = {
|
|
4722
4720
|
__name: "DynamicModalBuilder",
|
|
4723
4721
|
props: {
|
|
4724
4722
|
showDynamicModalBuilder: {
|
|
@@ -5116,7 +5114,7 @@ const _0 = /* @__PURE__ */ $0("pageBuilderState", {
|
|
|
5116
5114
|
};
|
|
5117
5115
|
};
|
|
5118
5116
|
return (f, b) => (v(), C(ve, null, [
|
|
5119
|
-
_(
|
|
5117
|
+
_($n, {
|
|
5120
5118
|
showDynamicModalBuilder: t.value,
|
|
5121
5119
|
type: o.value,
|
|
5122
5120
|
gridColumnAmount: n.value,
|
|
@@ -5834,7 +5832,7 @@ function io(r, e) {
|
|
|
5834
5832
|
let t = e.length - 1;
|
|
5835
5833
|
t >= 0 && r.isText && r.sameMarkup(e[t]) ? e[t] = r.withText(e[t].text + r.text) : e.push(r);
|
|
5836
5834
|
}
|
|
5837
|
-
function
|
|
5835
|
+
function vn(r, e, t, o) {
|
|
5838
5836
|
let n = (e || r).node(t), i = 0, s = e ? e.index(t) : n.childCount;
|
|
5839
5837
|
r && (i = r.index(t), r.depth > t ? i++ : r.textOffset && (io(r.nodeAfter, o), i++));
|
|
5840
5838
|
for (let a = i; a < s; a++)
|
|
@@ -5846,15 +5844,15 @@ function so(r, e) {
|
|
|
5846
5844
|
}
|
|
5847
5845
|
function wm(r, e, t, o, n) {
|
|
5848
5846
|
let i = r.depth > n && yl(r, e, n + 1), s = o.depth > n && yl(t, o, n + 1), a = [];
|
|
5849
|
-
return
|
|
5847
|
+
return vn(null, r, n, a), i && s && e.index(n) == t.index(n) ? (ym(i, s), io(so(i, wm(r, e, t, o, n + 1)), a)) : (i && io(so(i, ps(r, e, n + 1)), a), vn(e, t, n, a), s && io(so(s, ps(t, o, n + 1)), a)), vn(o, null, n, a), new I(a);
|
|
5850
5848
|
}
|
|
5851
5849
|
function ps(r, e, t) {
|
|
5852
5850
|
let o = [];
|
|
5853
|
-
if (
|
|
5851
|
+
if (vn(null, r, t, o), r.depth > t) {
|
|
5854
5852
|
let n = yl(r, e, t + 1);
|
|
5855
5853
|
io(so(n, ps(r, e, t + 1)), o);
|
|
5856
5854
|
}
|
|
5857
|
-
return
|
|
5855
|
+
return vn(e, null, t, o), new I(o);
|
|
5858
5856
|
}
|
|
5859
5857
|
function D1(r, e) {
|
|
5860
5858
|
let t = e.depth - r.openStart, n = e.node(t).copy(r.content);
|
|
@@ -5865,7 +5863,7 @@ function D1(r, e) {
|
|
|
5865
5863
|
end: n.resolveNoCache(n.content.size - r.openEnd - t)
|
|
5866
5864
|
};
|
|
5867
5865
|
}
|
|
5868
|
-
class
|
|
5866
|
+
class _n {
|
|
5869
5867
|
/**
|
|
5870
5868
|
@internal
|
|
5871
5869
|
*/
|
|
@@ -6093,7 +6091,7 @@ class Fn {
|
|
|
6093
6091
|
break;
|
|
6094
6092
|
i = d - 1, n += l + 1;
|
|
6095
6093
|
}
|
|
6096
|
-
return new
|
|
6094
|
+
return new _n(t, o, i);
|
|
6097
6095
|
}
|
|
6098
6096
|
/**
|
|
6099
6097
|
@internal
|
|
@@ -6108,7 +6106,7 @@ class Fn {
|
|
|
6108
6106
|
}
|
|
6109
6107
|
else
|
|
6110
6108
|
Mc.set(e, o = new N1());
|
|
6111
|
-
let n = o.elts[o.i] =
|
|
6109
|
+
let n = o.elts[o.i] = _n.resolve(e, t);
|
|
6112
6110
|
return o.i = (o.i + 1) % I1, n;
|
|
6113
6111
|
}
|
|
6114
6112
|
}
|
|
@@ -6363,13 +6361,13 @@ let Ir = class wl {
|
|
|
6363
6361
|
[object](https://prosemirror.net/docs/ref/#model.ResolvedPos) with information about its context.
|
|
6364
6362
|
*/
|
|
6365
6363
|
resolve(e) {
|
|
6366
|
-
return
|
|
6364
|
+
return _n.resolveCached(this, e);
|
|
6367
6365
|
}
|
|
6368
6366
|
/**
|
|
6369
6367
|
@internal
|
|
6370
6368
|
*/
|
|
6371
6369
|
resolveNoCache(e) {
|
|
6372
|
-
return
|
|
6370
|
+
return _n.resolve(this, e);
|
|
6373
6371
|
}
|
|
6374
6372
|
/**
|
|
6375
6373
|
Test whether a given mark or mark type occurs in this document
|
|
@@ -7311,7 +7309,7 @@ function G1(r) {
|
|
|
7311
7309
|
function J1(r) {
|
|
7312
7310
|
return r.style != null;
|
|
7313
7311
|
}
|
|
7314
|
-
let
|
|
7312
|
+
let xn = class vl {
|
|
7315
7313
|
/**
|
|
7316
7314
|
Create a parser that targets the given schema, using the given
|
|
7317
7315
|
parsing rules.
|
|
@@ -7466,13 +7464,13 @@ const Pm = {
|
|
|
7466
7464
|
script: !0,
|
|
7467
7465
|
style: !0,
|
|
7468
7466
|
title: !0
|
|
7469
|
-
}, Bm = { ol: !0, ul: !0 },
|
|
7467
|
+
}, Bm = { ol: !0, ul: !0 }, Fn = 1, xl = 2, kn = 4;
|
|
7470
7468
|
function Bc(r, e, t) {
|
|
7471
|
-
return e != null ? (e ?
|
|
7469
|
+
return e != null ? (e ? Fn : 0) | (e === "full" ? xl : 0) : r && r.whitespace == "pre" ? Fn | xl : t & ~kn;
|
|
7472
7470
|
}
|
|
7473
7471
|
class Ri {
|
|
7474
7472
|
constructor(e, t, o, n, i, s) {
|
|
7475
|
-
this.type = e, this.attrs = t, this.marks = o, this.solid = n, this.options = s, this.content = [], this.activeMarks = we.none, this.match = i || (s &
|
|
7473
|
+
this.type = e, this.attrs = t, this.marks = o, this.solid = n, this.options = s, this.content = [], this.activeMarks = we.none, this.match = i || (s & kn ? null : e.contentMatch);
|
|
7476
7474
|
}
|
|
7477
7475
|
findWrapping(e) {
|
|
7478
7476
|
if (!this.match) {
|
|
@@ -7489,7 +7487,7 @@ class Ri {
|
|
|
7489
7487
|
return this.match.findWrapping(e.type);
|
|
7490
7488
|
}
|
|
7491
7489
|
finish(e) {
|
|
7492
|
-
if (!(this.options &
|
|
7490
|
+
if (!(this.options & Fn)) {
|
|
7493
7491
|
let o = this.content[this.content.length - 1], n;
|
|
7494
7492
|
if (o && o.isText && (n = /[ \t\r\n\u000c]+$/.exec(o.text))) {
|
|
7495
7493
|
let i = o;
|
|
@@ -7506,7 +7504,7 @@ class Ri {
|
|
|
7506
7504
|
class Ac {
|
|
7507
7505
|
constructor(e, t, o) {
|
|
7508
7506
|
this.parser = e, this.options = t, this.isOpen = o, this.open = 0, this.localPreserveWS = !1;
|
|
7509
|
-
let n = t.topNode, i, s = Bc(null, t.preserveWhitespace, 0) | (o ?
|
|
7507
|
+
let n = t.topNode, i, s = Bc(null, t.preserveWhitespace, 0) | (o ? kn : 0);
|
|
7510
7508
|
n ? i = new Ri(n.type, n.attrs, we.none, !0, t.topMatch || n.type.contentMatch, s) : o ? i = new Ri(null, null, we.none, !0, null, s) : i = new Ri(e.schema.topNodeType, null, we.none, !0, null, s), this.nodes = [i], this.find = t.findPositions, this.needsBlock = !1;
|
|
7511
7509
|
}
|
|
7512
7510
|
get top() {
|
|
@@ -7519,7 +7517,7 @@ class Ac {
|
|
|
7519
7517
|
e.nodeType == 3 ? this.addTextNode(e, t) : e.nodeType == 1 && this.addElement(e, t);
|
|
7520
7518
|
}
|
|
7521
7519
|
addTextNode(e, t) {
|
|
7522
|
-
let o = e.nodeValue, n = this.top, i = n.options & xl ? "full" : this.localPreserveWS || (n.options &
|
|
7520
|
+
let o = e.nodeValue, n = this.top, i = n.options & xl ? "full" : this.localPreserveWS || (n.options & Fn) > 0;
|
|
7523
7521
|
if (i === "full" || n.inlineContext(e) || /[^ \t\r\n\u000c]/.test(o)) {
|
|
7524
7522
|
if (i)
|
|
7525
7523
|
i !== "full" ? o = o.replace(/\r?\n|\r/g, " ") : o = o.replace(/\r\n?/g, `
|
|
@@ -7681,7 +7679,7 @@ class Ac {
|
|
|
7681
7679
|
let s = this.top;
|
|
7682
7680
|
s.match = s.match && s.match.matchType(e);
|
|
7683
7681
|
let a = Bc(e, i, s.options);
|
|
7684
|
-
s.options &
|
|
7682
|
+
s.options & kn && s.content.length == 0 && (a |= kn);
|
|
7685
7683
|
let l = we.none;
|
|
7686
7684
|
return o = o.filter((d) => (s.type ? s.type.allowsMarkType(d.type) : Dc(d.type, e)) ? (l = d.addToSet(l), !1) : !0), this.nodes.push(new Ri(e, t, l, n, null, a)), this.open++, o;
|
|
7687
7685
|
}
|
|
@@ -7702,7 +7700,7 @@ class Ac {
|
|
|
7702
7700
|
for (let t = this.open; t >= 0; t--) {
|
|
7703
7701
|
if (this.nodes[t] == e)
|
|
7704
7702
|
return this.open = t, !0;
|
|
7705
|
-
this.localPreserveWS && (this.nodes[t].options |=
|
|
7703
|
+
this.localPreserveWS && (this.nodes[t].options |= Fn);
|
|
7706
7704
|
}
|
|
7707
7705
|
return !1;
|
|
7708
7706
|
}
|
|
@@ -8130,7 +8128,7 @@ class wt {
|
|
|
8130
8128
|
}
|
|
8131
8129
|
}
|
|
8132
8130
|
wt.empty = new wt([]);
|
|
8133
|
-
class
|
|
8131
|
+
class zn {
|
|
8134
8132
|
/**
|
|
8135
8133
|
Create a new mapping with the given position maps.
|
|
8136
8134
|
*/
|
|
@@ -8147,7 +8145,7 @@ class Hn {
|
|
|
8147
8145
|
Create a mapping that maps only through a part of this one.
|
|
8148
8146
|
*/
|
|
8149
8147
|
slice(e = 0, t = this.maps.length) {
|
|
8150
|
-
return new
|
|
8148
|
+
return new zn(this._maps, this.mirror, e, t);
|
|
8151
8149
|
}
|
|
8152
8150
|
/**
|
|
8153
8151
|
Add a step map to the end of this mapping. If `mirrors` is
|
|
@@ -8198,7 +8196,7 @@ class Hn {
|
|
|
8198
8196
|
Create an inverted version of this mapping.
|
|
8199
8197
|
*/
|
|
8200
8198
|
invert() {
|
|
8201
|
-
let e = new
|
|
8199
|
+
let e = new zn();
|
|
8202
8200
|
return e.appendMappingInverted(this), e;
|
|
8203
8201
|
}
|
|
8204
8202
|
/**
|
|
@@ -8669,7 +8667,7 @@ function md(r, e, t, o = t.contentMatch, n = !0) {
|
|
|
8669
8667
|
function ib(r, e, t) {
|
|
8670
8668
|
return (e == 0 || r.canReplace(e, r.childCount)) && (t == r.childCount || r.canReplace(0, t));
|
|
8671
8669
|
}
|
|
8672
|
-
function
|
|
8670
|
+
function Xo(r) {
|
|
8673
8671
|
let t = r.parent.content.cutByIndex(r.startIndex, r.endIndex);
|
|
8674
8672
|
for (let o = r.depth; ; --o) {
|
|
8675
8673
|
let n = r.$from.node(o), i = r.$from.index(o), s = r.$to.indexAfter(o);
|
|
@@ -8971,9 +8969,9 @@ class bb {
|
|
|
8971
8969
|
let { content: e, openStart: t, openEnd: o } = this.unplaced, n = La(e, t);
|
|
8972
8970
|
if (n.childCount <= 1 && t > 0) {
|
|
8973
8971
|
let i = e.size - t <= t + n.size;
|
|
8974
|
-
this.unplaced = new z(
|
|
8972
|
+
this.unplaced = new z(gn(e, t - 1, 1), t - 1, i ? t - 1 : o);
|
|
8975
8973
|
} else
|
|
8976
|
-
this.unplaced = new z(
|
|
8974
|
+
this.unplaced = new z(gn(e, t, 1), t, o);
|
|
8977
8975
|
}
|
|
8978
8976
|
// Move content from the unplaced slice at `sliceDepth` to the
|
|
8979
8977
|
// frontier node at `frontierDepth`. Close that frontier node when
|
|
@@ -8998,12 +8996,12 @@ class bb {
|
|
|
8998
8996
|
d++, (d > 1 || l == 0 || f.content.size) && (p = b, c.push(Hm(f.mark(u.allowedMarks(f.marks)), d == 1 ? l : 0, d == a.childCount ? h : -1)));
|
|
8999
8997
|
}
|
|
9000
8998
|
let g = d == a.childCount;
|
|
9001
|
-
g || (h = -1), this.placed =
|
|
8999
|
+
g || (h = -1), this.placed = fn(this.placed, t, I.from(c)), this.frontier[t].match = p, g && h < 0 && o && o.type == this.frontier[this.depth].type && this.frontier.length > 1 && this.closeFrontierNode();
|
|
9002
9000
|
for (let f = 0, b = a; f < h; f++) {
|
|
9003
9001
|
let w = b.lastChild;
|
|
9004
9002
|
this.frontier.push({ type: w.type, match: w.contentMatchAt(w.childCount) }), b = w.content;
|
|
9005
9003
|
}
|
|
9006
|
-
this.unplaced = g ? e == 0 ? z.empty : new z(
|
|
9004
|
+
this.unplaced = g ? e == 0 ? z.empty : new z(gn(s.content, e - 1, 1), e - 1, h < 0 ? s.openEnd : e - 1) : new z(gn(s.content, e, d), s.openStart, s.openEnd);
|
|
9007
9005
|
}
|
|
9008
9006
|
mustMoveInline() {
|
|
9009
9007
|
if (!this.$to.parent.isTextblock)
|
|
@@ -9035,7 +9033,7 @@ class bb {
|
|
|
9035
9033
|
return null;
|
|
9036
9034
|
for (; this.depth > t.depth; )
|
|
9037
9035
|
this.closeFrontierNode();
|
|
9038
|
-
t.fit.childCount && (this.placed =
|
|
9036
|
+
t.fit.childCount && (this.placed = fn(this.placed, t.depth, t.fit)), e = t.move;
|
|
9039
9037
|
for (let o = t.depth + 1; o <= e.depth; o++) {
|
|
9040
9038
|
let n = e.node(o), i = n.type.contentMatch.fillBefore(n.content, !0, e.index(o));
|
|
9041
9039
|
this.openFrontierNode(n.type, n.attrs, i);
|
|
@@ -9044,18 +9042,18 @@ class bb {
|
|
|
9044
9042
|
}
|
|
9045
9043
|
openFrontierNode(e, t = null, o) {
|
|
9046
9044
|
let n = this.frontier[this.depth];
|
|
9047
|
-
n.match = n.match.matchType(e), this.placed =
|
|
9045
|
+
n.match = n.match.matchType(e), this.placed = fn(this.placed, this.depth, I.from(e.create(t, o))), this.frontier.push({ type: e, match: e.contentMatch });
|
|
9048
9046
|
}
|
|
9049
9047
|
closeFrontierNode() {
|
|
9050
9048
|
let t = this.frontier.pop().match.fillBefore(I.empty, !0);
|
|
9051
|
-
t.childCount && (this.placed =
|
|
9049
|
+
t.childCount && (this.placed = fn(this.placed, this.frontier.length, t));
|
|
9052
9050
|
}
|
|
9053
9051
|
}
|
|
9054
|
-
function
|
|
9055
|
-
return e == 0 ? r.cutByIndex(t, r.childCount) : r.replaceChild(0, r.firstChild.copy(
|
|
9052
|
+
function gn(r, e, t) {
|
|
9053
|
+
return e == 0 ? r.cutByIndex(t, r.childCount) : r.replaceChild(0, r.firstChild.copy(gn(r.firstChild.content, e - 1, t)));
|
|
9056
9054
|
}
|
|
9057
|
-
function
|
|
9058
|
-
return e == 0 ? r.append(t) : r.replaceChild(r.childCount - 1, r.lastChild.copy(
|
|
9055
|
+
function fn(r, e, t) {
|
|
9056
|
+
return e == 0 ? r.append(t) : r.replaceChild(r.childCount - 1, r.lastChild.copy(fn(r.lastChild.content, e - 1, t)));
|
|
9059
9057
|
}
|
|
9060
9058
|
function La(r, e) {
|
|
9061
9059
|
for (let t = 0; t < e; t++)
|
|
@@ -9211,7 +9209,7 @@ class Fo extends it {
|
|
|
9211
9209
|
}
|
|
9212
9210
|
}
|
|
9213
9211
|
it.jsonID("attr", Fo);
|
|
9214
|
-
class
|
|
9212
|
+
class Hn extends it {
|
|
9215
9213
|
/**
|
|
9216
9214
|
Construct an attribute step.
|
|
9217
9215
|
*/
|
|
@@ -9230,7 +9228,7 @@ class jn extends it {
|
|
|
9230
9228
|
return wt.empty;
|
|
9231
9229
|
}
|
|
9232
9230
|
invert(e) {
|
|
9233
|
-
return new
|
|
9231
|
+
return new Hn(this.attr, e.attrs[this.attr]);
|
|
9234
9232
|
}
|
|
9235
9233
|
map(e) {
|
|
9236
9234
|
return this;
|
|
@@ -9241,10 +9239,10 @@ class jn extends it {
|
|
|
9241
9239
|
static fromJSON(e, t) {
|
|
9242
9240
|
if (typeof t.attr != "string")
|
|
9243
9241
|
throw new RangeError("Invalid input for DocAttrStep.fromJSON");
|
|
9244
|
-
return new
|
|
9242
|
+
return new Hn(t.attr, t.value);
|
|
9245
9243
|
}
|
|
9246
9244
|
}
|
|
9247
|
-
it.jsonID("docAttr",
|
|
9245
|
+
it.jsonID("docAttr", Hn);
|
|
9248
9246
|
let Ho = class extends Error {
|
|
9249
9247
|
};
|
|
9250
9248
|
Ho = function r(e) {
|
|
@@ -9259,7 +9257,7 @@ class Wm {
|
|
|
9259
9257
|
Create a transform that starts with the given document.
|
|
9260
9258
|
*/
|
|
9261
9259
|
constructor(e) {
|
|
9262
|
-
this.doc = e, this.steps = [], this.docs = [], this.mapping = new
|
|
9260
|
+
this.doc = e, this.steps = [], this.docs = [], this.mapping = new zn();
|
|
9263
9261
|
}
|
|
9264
9262
|
/**
|
|
9265
9263
|
The starting document.
|
|
@@ -9417,7 +9415,7 @@ class Wm {
|
|
|
9417
9415
|
Set a single attribute on the document to a new value.
|
|
9418
9416
|
*/
|
|
9419
9417
|
setDocAttribute(e, t) {
|
|
9420
|
-
return this.step(new
|
|
9418
|
+
return this.step(new Hn(e, t)), this;
|
|
9421
9419
|
}
|
|
9422
9420
|
/**
|
|
9423
9421
|
Add a mark to the node at position `pos`.
|
|
@@ -10029,13 +10027,13 @@ class Mb extends Wm {
|
|
|
10029
10027
|
function Vc(r, e) {
|
|
10030
10028
|
return !e || !r ? r : r.bind(e);
|
|
10031
10029
|
}
|
|
10032
|
-
class
|
|
10030
|
+
class bn {
|
|
10033
10031
|
constructor(e, t, o) {
|
|
10034
10032
|
this.name = e, this.init = Vc(t.init, o), this.apply = Vc(t.apply, o);
|
|
10035
10033
|
}
|
|
10036
10034
|
}
|
|
10037
10035
|
const Eb = [
|
|
10038
|
-
new
|
|
10036
|
+
new bn("doc", {
|
|
10039
10037
|
init(r) {
|
|
10040
10038
|
return r.doc || r.schema.topNodeType.createAndFill();
|
|
10041
10039
|
},
|
|
@@ -10043,7 +10041,7 @@ const Eb = [
|
|
|
10043
10041
|
return r.doc;
|
|
10044
10042
|
}
|
|
10045
10043
|
}),
|
|
10046
|
-
new
|
|
10044
|
+
new bn("selection", {
|
|
10047
10045
|
init(r, e) {
|
|
10048
10046
|
return r.selection || X.atStart(e.doc);
|
|
10049
10047
|
},
|
|
@@ -10051,7 +10049,7 @@ const Eb = [
|
|
|
10051
10049
|
return r.selection;
|
|
10052
10050
|
}
|
|
10053
10051
|
}),
|
|
10054
|
-
new
|
|
10052
|
+
new bn("storedMarks", {
|
|
10055
10053
|
init(r) {
|
|
10056
10054
|
return r.storedMarks || null;
|
|
10057
10055
|
},
|
|
@@ -10059,7 +10057,7 @@ const Eb = [
|
|
|
10059
10057
|
return o.selection.$cursor ? r.storedMarks : null;
|
|
10060
10058
|
}
|
|
10061
10059
|
}),
|
|
10062
|
-
new
|
|
10060
|
+
new bn("scrollToSelection", {
|
|
10063
10061
|
init() {
|
|
10064
10062
|
return 0;
|
|
10065
10063
|
},
|
|
@@ -10073,7 +10071,7 @@ class Ia {
|
|
|
10073
10071
|
this.schema = e, this.plugins = [], this.pluginsByKey = /* @__PURE__ */ Object.create(null), this.fields = Eb.slice(), t && t.forEach((o) => {
|
|
10074
10072
|
if (this.pluginsByKey[o.key])
|
|
10075
10073
|
throw new RangeError("Adding different instances of a keyed plugin (" + o.key + ")");
|
|
10076
|
-
this.plugins.push(o), this.pluginsByKey[o.key] = o, o.spec.state && this.fields.push(new
|
|
10074
|
+
this.plugins.push(o), this.pluginsByKey[o.key] = o, o.spec.state && this.fields.push(new bn(o.key, o.spec.state, o));
|
|
10077
10075
|
});
|
|
10078
10076
|
}
|
|
10079
10077
|
}
|
|
@@ -10627,13 +10625,13 @@ function Zm(r, e, t) {
|
|
|
10627
10625
|
if (d.top == l.top) {
|
|
10628
10626
|
let c = vr(ar(o, n, n + 1), -1);
|
|
10629
10627
|
if (c.top != l.top)
|
|
10630
|
-
return
|
|
10628
|
+
return cn(c, c.left < d.left);
|
|
10631
10629
|
}
|
|
10632
10630
|
}
|
|
10633
10631
|
return l;
|
|
10634
10632
|
} else {
|
|
10635
10633
|
let l = n, d = n, c = t < 0 ? 1 : -1;
|
|
10636
|
-
return t < 0 && !n ? (d++, c = -1) : t >= 0 && n == o.nodeValue.length ? (l--, c = 1) : t < 0 ? l-- : d++,
|
|
10634
|
+
return t < 0 && !n ? (d++, c = -1) : t >= 0 && n == o.nodeValue.length ? (l--, c = 1) : t < 0 ? l-- : d++, cn(vr(ar(o, l, d), c), c < 0);
|
|
10637
10635
|
}
|
|
10638
10636
|
if (!r.state.doc.resolve(e - (i || 0)).parent.inlineContent) {
|
|
10639
10637
|
if (i == null && n && (t < 0 || n == Pt(o))) {
|
|
@@ -10651,7 +10649,7 @@ function Zm(r, e, t) {
|
|
|
10651
10649
|
if (i == null && n && (t < 0 || n == Pt(o))) {
|
|
10652
10650
|
let l = o.childNodes[n - 1], d = l.nodeType == 3 ? ar(l, Pt(l) - (s ? 0 : 1)) : l.nodeType == 1 && (l.nodeName != "BR" || !l.nextSibling) ? l : null;
|
|
10653
10651
|
if (d)
|
|
10654
|
-
return
|
|
10652
|
+
return cn(vr(d, 1), !1);
|
|
10655
10653
|
}
|
|
10656
10654
|
if (i == null && n < Pt(o)) {
|
|
10657
10655
|
let l = o.childNodes[n];
|
|
@@ -10659,11 +10657,11 @@ function Zm(r, e, t) {
|
|
|
10659
10657
|
l = l.nextSibling;
|
|
10660
10658
|
let d = l ? l.nodeType == 3 ? ar(l, 0, s ? 0 : 1) : l.nodeType == 1 ? l : null : null;
|
|
10661
10659
|
if (d)
|
|
10662
|
-
return
|
|
10660
|
+
return cn(vr(d, -1), !0);
|
|
10663
10661
|
}
|
|
10664
|
-
return
|
|
10662
|
+
return cn(vr(o.nodeType == 3 ? ar(o) : o, -t), t >= 0);
|
|
10665
10663
|
}
|
|
10666
|
-
function
|
|
10664
|
+
function cn(r, e) {
|
|
10667
10665
|
if (r.width == 0)
|
|
10668
10666
|
return r;
|
|
10669
10667
|
let t = e ? r.left : r.right;
|
|
@@ -11419,22 +11417,22 @@ function oh(r, e, t) {
|
|
|
11419
11417
|
o = Zc(o), n = !0;
|
|
11420
11418
|
n && t.trackWrites == r && (t.trackWrites = null);
|
|
11421
11419
|
}
|
|
11422
|
-
const
|
|
11420
|
+
const Sn = function(r) {
|
|
11423
11421
|
r && (this.nodeName = r);
|
|
11424
11422
|
};
|
|
11425
|
-
|
|
11426
|
-
const oo = [new
|
|
11423
|
+
Sn.prototype = /* @__PURE__ */ Object.create(null);
|
|
11424
|
+
const oo = [new Sn()];
|
|
11427
11425
|
function Ol(r, e, t) {
|
|
11428
11426
|
if (r.length == 0)
|
|
11429
11427
|
return oo;
|
|
11430
|
-
let o = t ? oo[0] : new
|
|
11428
|
+
let o = t ? oo[0] : new Sn(), n = [o];
|
|
11431
11429
|
for (let i = 0; i < r.length; i++) {
|
|
11432
11430
|
let s = r[i].type.attrs;
|
|
11433
11431
|
if (s) {
|
|
11434
|
-
s.nodeName && n.push(o = new
|
|
11432
|
+
s.nodeName && n.push(o = new Sn(s.nodeName));
|
|
11435
11433
|
for (let a in s) {
|
|
11436
11434
|
let l = s[a];
|
|
11437
|
-
l != null && (t && n.length == 1 && n.push(o = new
|
|
11435
|
+
l != null && (t && n.length == 1 && n.push(o = new Sn(e.isInline ? "span" : "div")), a == "class" ? o.class = (o.class ? o.class + " " : "") + l : a == "style" ? o.style = (o.style ? o.style + ";" : "") + l : a != "nodeName" && (o[a] = l));
|
|
11438
11436
|
}
|
|
11439
11437
|
}
|
|
11440
11438
|
}
|
|
@@ -11922,7 +11920,7 @@ function ip(r, e, t) {
|
|
|
11922
11920
|
function gs(r) {
|
|
11923
11921
|
return r.nodeType == 3 ? r.nodeValue.length : r.childNodes.length;
|
|
11924
11922
|
}
|
|
11925
|
-
function
|
|
11923
|
+
function Cn(r, e) {
|
|
11926
11924
|
let t = r.pmViewDesc;
|
|
11927
11925
|
return t && t.size == 0 && (e < 0 || r.nextSibling || r.nodeName != "BR");
|
|
11928
11926
|
}
|
|
@@ -11934,13 +11932,13 @@ function dy(r) {
|
|
|
11934
11932
|
if (!t)
|
|
11935
11933
|
return;
|
|
11936
11934
|
let n, i, s = !1;
|
|
11937
|
-
for (Ft && t.nodeType == 1 && o < gs(t) &&
|
|
11935
|
+
for (Ft && t.nodeType == 1 && o < gs(t) && Cn(t.childNodes[o], -1) && (s = !0); ; )
|
|
11938
11936
|
if (o > 0) {
|
|
11939
11937
|
if (t.nodeType != 1)
|
|
11940
11938
|
break;
|
|
11941
11939
|
{
|
|
11942
11940
|
let a = t.childNodes[o - 1];
|
|
11943
|
-
if (
|
|
11941
|
+
if (Cn(a, -1))
|
|
11944
11942
|
n = t, i = --o;
|
|
11945
11943
|
else if (a.nodeType == 3)
|
|
11946
11944
|
t = a, o = t.nodeValue.length;
|
|
@@ -11952,7 +11950,7 @@ function dy(r) {
|
|
|
11952
11950
|
break;
|
|
11953
11951
|
{
|
|
11954
11952
|
let a = t.previousSibling;
|
|
11955
|
-
for (; a &&
|
|
11953
|
+
for (; a && Cn(a, -1); )
|
|
11956
11954
|
n = t.parentNode, i = Ye(a), a = a.previousSibling;
|
|
11957
11955
|
if (a)
|
|
11958
11956
|
t = a, o = gs(t);
|
|
@@ -11975,7 +11973,7 @@ function cy(r) {
|
|
|
11975
11973
|
if (t.nodeType != 1)
|
|
11976
11974
|
break;
|
|
11977
11975
|
let a = t.childNodes[o];
|
|
11978
|
-
if (
|
|
11976
|
+
if (Cn(a, 1))
|
|
11979
11977
|
i = t, s = ++o;
|
|
11980
11978
|
else
|
|
11981
11979
|
break;
|
|
@@ -11984,7 +11982,7 @@ function cy(r) {
|
|
|
11984
11982
|
break;
|
|
11985
11983
|
{
|
|
11986
11984
|
let a = t.nextSibling;
|
|
11987
|
-
for (; a &&
|
|
11985
|
+
for (; a && Cn(a, 1); )
|
|
11988
11986
|
i = a.parentNode, s = Ye(a) + 1, a = a.nextSibling;
|
|
11989
11987
|
if (a)
|
|
11990
11988
|
t = a, o = 0, n = gs(t);
|
|
@@ -12197,7 +12195,7 @@ function ch(r, e, t, o, n) {
|
|
|
12197
12195
|
break;
|
|
12198
12196
|
s = u;
|
|
12199
12197
|
}
|
|
12200
|
-
if (a || (a = (r.someProp("clipboardParser") || r.someProp("domParser") ||
|
|
12198
|
+
if (a || (a = (r.someProp("clipboardParser") || r.someProp("domParser") || xn.fromSchema(r.state.schema)).parseSlice(s, {
|
|
12201
12199
|
preserveWhitespace: !!(l || c),
|
|
12202
12200
|
context: n,
|
|
12203
12201
|
ruleFromNode(u) {
|
|
@@ -12613,12 +12611,12 @@ function Fy(r, e) {
|
|
|
12613
12611
|
t.parentNode && t.parentNode.removeChild(t), r.focus();
|
|
12614
12612
|
}, 50);
|
|
12615
12613
|
}
|
|
12616
|
-
const
|
|
12614
|
+
const jn = gt && Rr < 15 || Vo && Ib < 604;
|
|
12617
12615
|
ct.copy = pt.cut = (r, e) => {
|
|
12618
12616
|
let t = e, o = r.state.selection, n = t.type == "cut";
|
|
12619
12617
|
if (o.empty)
|
|
12620
12618
|
return;
|
|
12621
|
-
let i =
|
|
12619
|
+
let i = jn ? null : t.clipboardData, s = o.content(), { dom: a, text: l } = wd(r, s);
|
|
12622
12620
|
i ? (t.preventDefault(), i.clearData(), i.setData("text/html", a.innerHTML), i.setData("text/plain", l)) : Fy(r, a), n && r.dispatch(r.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent", "cut"));
|
|
12623
12621
|
};
|
|
12624
12622
|
function zy(r) {
|
|
@@ -12631,10 +12629,10 @@ function Hy(r, e) {
|
|
|
12631
12629
|
t || (o.contentEditable = "true"), o.style.cssText = "position: fixed; left: -10000px; top: 10px", o.focus();
|
|
12632
12630
|
let n = r.input.shiftKey && r.input.lastKeyCode != 45;
|
|
12633
12631
|
setTimeout(() => {
|
|
12634
|
-
r.focus(), o.parentNode && o.parentNode.removeChild(o), t ?
|
|
12632
|
+
r.focus(), o.parentNode && o.parentNode.removeChild(o), t ? Vn(r, o.value, null, n, e) : Vn(r, o.textContent, o.innerHTML, n, e);
|
|
12635
12633
|
}, 50);
|
|
12636
12634
|
}
|
|
12637
|
-
function
|
|
12635
|
+
function Vn(r, e, t, o, n) {
|
|
12638
12636
|
let i = ch(r, e, t, o, r.state.selection.$from);
|
|
12639
12637
|
if (r.someProp("handlePaste", (l) => l(r, n, i || z.empty)))
|
|
12640
12638
|
return !0;
|
|
@@ -12654,8 +12652,8 @@ pt.paste = (r, e) => {
|
|
|
12654
12652
|
let t = e;
|
|
12655
12653
|
if (r.composing && !dr)
|
|
12656
12654
|
return;
|
|
12657
|
-
let o =
|
|
12658
|
-
o &&
|
|
12655
|
+
let o = jn ? null : t.clipboardData, n = r.input.shiftKey && r.input.lastKeyCode != 45;
|
|
12656
|
+
o && Vn(r, vh(o), o.getData("text/html"), n, t) ? t.preventDefault() : Hy(r, t);
|
|
12659
12657
|
};
|
|
12660
12658
|
class xh {
|
|
12661
12659
|
constructor(e, t, o) {
|
|
@@ -12681,7 +12679,7 @@ ct.dragstart = (r, e) => {
|
|
|
12681
12679
|
}
|
|
12682
12680
|
}
|
|
12683
12681
|
let a = (s || r.state.selection).content(), { dom: l, text: d, slice: c } = wd(r, a);
|
|
12684
|
-
(!t.dataTransfer.files.length || !ot || Gm > 120) && t.dataTransfer.clearData(), t.dataTransfer.setData(
|
|
12682
|
+
(!t.dataTransfer.files.length || !ot || Gm > 120) && t.dataTransfer.clearData(), t.dataTransfer.setData(jn ? "Text" : "text/html", l.innerHTML), t.dataTransfer.effectAllowed = "copyMove", jn || t.dataTransfer.setData("text/plain", d), r.dragging = new xh(c, kh(r, t), s);
|
|
12685
12683
|
};
|
|
12686
12684
|
ct.dragend = (r) => {
|
|
12687
12685
|
let e = r.dragging;
|
|
@@ -12700,7 +12698,7 @@ pt.drop = (r, e) => {
|
|
|
12700
12698
|
let i = r.state.doc.resolve(n.pos), s = o && o.slice;
|
|
12701
12699
|
s ? r.someProp("transformPasted", (g) => {
|
|
12702
12700
|
s = g(s, r);
|
|
12703
|
-
}) : s = ch(r, vh(t.dataTransfer),
|
|
12701
|
+
}) : s = ch(r, vh(t.dataTransfer), jn ? null : t.dataTransfer.getData("text/html"), !1, i);
|
|
12704
12702
|
let a = !!(o && kh(r, t));
|
|
12705
12703
|
if (r.someProp("handleDrop", (g) => g(r, t, s || z.empty, a))) {
|
|
12706
12704
|
t.preventDefault();
|
|
@@ -12751,7 +12749,7 @@ ct.beforeinput = (r, e) => {
|
|
|
12751
12749
|
};
|
|
12752
12750
|
for (let r in pt)
|
|
12753
12751
|
ct[r] = pt[r];
|
|
12754
|
-
function
|
|
12752
|
+
function Wn(r, e) {
|
|
12755
12753
|
if (r == e)
|
|
12756
12754
|
return !0;
|
|
12757
12755
|
for (let t in r)
|
|
@@ -12774,7 +12772,7 @@ class bs {
|
|
|
12774
12772
|
return !0;
|
|
12775
12773
|
}
|
|
12776
12774
|
eq(e) {
|
|
12777
|
-
return this == e || e instanceof bs && (this.spec.key && this.spec.key == e.spec.key || this.toDOM == e.toDOM &&
|
|
12775
|
+
return this == e || e instanceof bs && (this.spec.key && this.spec.key == e.spec.key || this.toDOM == e.toDOM && Wn(this.spec, e.spec));
|
|
12778
12776
|
}
|
|
12779
12777
|
destroy(e) {
|
|
12780
12778
|
this.spec.destroy && this.spec.destroy(e);
|
|
@@ -12792,7 +12790,7 @@ class _r {
|
|
|
12792
12790
|
return t.from < t.to;
|
|
12793
12791
|
}
|
|
12794
12792
|
eq(e) {
|
|
12795
|
-
return this == e || e instanceof _r &&
|
|
12793
|
+
return this == e || e instanceof _r && Wn(this.attrs, e.attrs) && Wn(this.spec, e.spec);
|
|
12796
12794
|
}
|
|
12797
12795
|
static is(e) {
|
|
12798
12796
|
return e.type instanceof _r;
|
|
@@ -12816,7 +12814,7 @@ class Sd {
|
|
|
12816
12814
|
return n == t.from && !(i = e.child(o)).isText && n + i.nodeSize == t.to;
|
|
12817
12815
|
}
|
|
12818
12816
|
eq(e) {
|
|
12819
|
-
return this == e || e instanceof Sd &&
|
|
12817
|
+
return this == e || e instanceof Sd && Wn(this.attrs, e.attrs) && Wn(this.spec, e.spec);
|
|
12820
12818
|
}
|
|
12821
12819
|
destroy() {
|
|
12822
12820
|
}
|
|
@@ -13467,7 +13465,7 @@ function Xy(r, e, t) {
|
|
|
13467
13465
|
if (!k || k.size)
|
|
13468
13466
|
break;
|
|
13469
13467
|
}
|
|
13470
|
-
let p = r.state.doc, u = r.someProp("domParser") ||
|
|
13468
|
+
let p = r.state.doc, u = r.someProp("domParser") || xn.fromSchema(r.state.schema), h = p.resolve(s), g = null, f = u.parse(o, {
|
|
13471
13469
|
topNode: h.parent,
|
|
13472
13470
|
topMatch: h.parent.contentMatchAt(h.index()),
|
|
13473
13471
|
topOpen: !0,
|
|
@@ -13925,13 +13923,13 @@ class Eh {
|
|
|
13925
13923
|
[`handlePaste`](https://prosemirror.net/docs/ref/#view.EditorProps.handlePaste) hook.
|
|
13926
13924
|
*/
|
|
13927
13925
|
pasteHTML(e, t) {
|
|
13928
|
-
return
|
|
13926
|
+
return Vn(this, "", e, !1, t || new ClipboardEvent("paste"));
|
|
13929
13927
|
}
|
|
13930
13928
|
/**
|
|
13931
13929
|
Run the editor's paste logic with the given plain-text input.
|
|
13932
13930
|
*/
|
|
13933
13931
|
pasteText(e, t) {
|
|
13934
|
-
return
|
|
13932
|
+
return Vn(this, e, null, !0, t || new ClipboardEvent("paste"));
|
|
13935
13933
|
}
|
|
13936
13934
|
/**
|
|
13937
13935
|
Serialize the given slice as it would be if it was copied from
|
|
@@ -14183,7 +14181,7 @@ const Ph = (r, e, t) => {
|
|
|
14183
14181
|
return !1;
|
|
14184
14182
|
let n = Ed(o);
|
|
14185
14183
|
if (!n) {
|
|
14186
|
-
let s = o.blockRange(), a = s &&
|
|
14184
|
+
let s = o.blockRange(), a = s && Xo(s);
|
|
14187
14185
|
return a == null ? !1 : (e && e(r.tr.lift(s, a).scrollIntoView()), !0);
|
|
14188
14186
|
}
|
|
14189
14187
|
let i = n.nodeBefore;
|
|
@@ -14346,7 +14344,7 @@ const bw = (r, e) => {
|
|
|
14346
14344
|
return !1;
|
|
14347
14345
|
return e && e(r.tr.join(o).scrollIntoView()), !0;
|
|
14348
14346
|
}, ww = (r, e) => {
|
|
14349
|
-
let { $from: t, $to: o } = r.selection, n = t.blockRange(o), i = n &&
|
|
14347
|
+
let { $from: t, $to: o } = r.selection, n = t.blockRange(o), i = n && Xo(n);
|
|
14350
14348
|
return i == null ? !1 : (e && e(r.tr.lift(n, i).scrollIntoView()), !0);
|
|
14351
14349
|
}, Ih = (r, e) => {
|
|
14352
14350
|
let { $head: t, $anchor: o } = r.selection;
|
|
@@ -14394,7 +14392,7 @@ const vw = (r, e) => {
|
|
|
14394
14392
|
if (pr(r.doc, i))
|
|
14395
14393
|
return e && e(r.tr.split(i).scrollIntoView()), !0;
|
|
14396
14394
|
}
|
|
14397
|
-
let o = t.blockRange(), n = o &&
|
|
14395
|
+
let o = t.blockRange(), n = o && Xo(o);
|
|
14398
14396
|
return n == null ? !1 : (e && e(r.tr.lift(o, n).scrollIntoView()), !0);
|
|
14399
14397
|
};
|
|
14400
14398
|
function xw(r) {
|
|
@@ -14450,7 +14448,7 @@ function _h(r, e, t, o) {
|
|
|
14450
14448
|
}
|
|
14451
14449
|
return !0;
|
|
14452
14450
|
}
|
|
14453
|
-
let c = i.type.spec.isolating || o > 0 && l ? null : X.findFrom(e, 1), p = c && c.$from.blockRange(c.$to), u = p &&
|
|
14451
|
+
let c = i.type.spec.isolating || o > 0 && l ? null : X.findFrom(e, 1), p = c && c.$from.blockRange(c.$to), u = p && Xo(p);
|
|
14454
14452
|
if (u != null && u >= e.depth)
|
|
14455
14453
|
return t && t(r.tr.lift(p, u).scrollIntoView()), !0;
|
|
14456
14454
|
if (d && Wo(i, "start", !0) && Wo(n, "end")) {
|
|
@@ -14575,7 +14573,7 @@ function Aw(r) {
|
|
|
14575
14573
|
function Lw(r, e, t, o) {
|
|
14576
14574
|
let n = r.tr, i = o.end, s = o.$to.end(o.depth);
|
|
14577
14575
|
i < s && (n.step(new qe(i - 1, s, i, s, new z(I.from(t.create(null, o.parent.copy())), 1, 0), 1, !0)), o = new us(n.doc.resolve(o.$from.pos), n.doc.resolve(s), o.depth));
|
|
14578
|
-
const a =
|
|
14576
|
+
const a = Xo(o);
|
|
14579
14577
|
if (a == null)
|
|
14580
14578
|
return !1;
|
|
14581
14579
|
n.lift(o, a);
|
|
@@ -15565,7 +15563,7 @@ const Yw = Ze.create({
|
|
|
15565
15563
|
const { doc: d, mapping: c } = e, p = d.resolve(c.map(l)), u = d.resolve(c.map(l + a.nodeSize)), h = p.blockRange(u);
|
|
15566
15564
|
if (!h)
|
|
15567
15565
|
return;
|
|
15568
|
-
const g =
|
|
15566
|
+
const g = Xo(h);
|
|
15569
15567
|
if (a.type.isTextblock) {
|
|
15570
15568
|
const { defaultType: f } = p.parent.contentMatchAt(p.index());
|
|
15571
15569
|
e.setNodeMarkup(h.start, f);
|
|
@@ -15721,7 +15719,7 @@ function Hi(r) {
|
|
|
15721
15719
|
const e = `<body>${r}</body>`, t = new window.DOMParser().parseFromString(e, "text/html").body;
|
|
15722
15720
|
return qh(t);
|
|
15723
15721
|
}
|
|
15724
|
-
function
|
|
15722
|
+
function qn(r, e, t) {
|
|
15725
15723
|
if (r instanceof Ir || r instanceof I)
|
|
15726
15724
|
return r;
|
|
15727
15725
|
t = {
|
|
@@ -15739,7 +15737,7 @@ function Un(r, e, t) {
|
|
|
15739
15737
|
} catch (i) {
|
|
15740
15738
|
if (t.errorOnInvalidContent)
|
|
15741
15739
|
throw new Error("[tiptap error]: Invalid JSON content", { cause: i });
|
|
15742
|
-
return console.warn("[tiptap warn]: Invalid content.", "Passed value:", r, "Error:", i),
|
|
15740
|
+
return console.warn("[tiptap warn]: Invalid content.", "Passed value:", r, "Error:", i), qn("", e, t);
|
|
15743
15741
|
}
|
|
15744
15742
|
if (n) {
|
|
15745
15743
|
if (t.errorOnInvalidContent) {
|
|
@@ -15762,13 +15760,13 @@ function Un(r, e, t) {
|
|
|
15762
15760
|
}
|
|
15763
15761
|
})
|
|
15764
15762
|
});
|
|
15765
|
-
if (t.slice ?
|
|
15763
|
+
if (t.slice ? xn.fromSchema(l).parseSlice(Hi(r), t.parseOptions) : xn.fromSchema(l).parse(Hi(r), t.parseOptions), t.errorOnInvalidContent && s)
|
|
15766
15764
|
throw new Error("[tiptap error]: Invalid HTML content", { cause: new Error(`Invalid element found: ${a}`) });
|
|
15767
15765
|
}
|
|
15768
|
-
const i =
|
|
15766
|
+
const i = xn.fromSchema(e);
|
|
15769
15767
|
return t.slice ? i.parseSlice(Hi(r), t.parseOptions).content : i.parse(Hi(r), t.parseOptions);
|
|
15770
15768
|
}
|
|
15771
|
-
return
|
|
15769
|
+
return qn("", e, t);
|
|
15772
15770
|
}
|
|
15773
15771
|
function gv(r, e, t) {
|
|
15774
15772
|
const o = r.steps.length - 1;
|
|
@@ -15808,7 +15806,7 @@ const fv = (r) => !("type" in r), bv = (r, e, t) => ({ tr: o, dispatch: n, edito
|
|
|
15808
15806
|
};
|
|
15809
15807
|
if (!t.errorOnInvalidContent && !i.options.enableContentCheck && i.options.emitContentError)
|
|
15810
15808
|
try {
|
|
15811
|
-
|
|
15809
|
+
qn(e, i.schema, {
|
|
15812
15810
|
parseOptions: d,
|
|
15813
15811
|
errorOnInvalidContent: !0
|
|
15814
15812
|
});
|
|
@@ -15816,7 +15814,7 @@ const fv = (r) => !("type" in r), bv = (r, e, t) => ({ tr: o, dispatch: n, edito
|
|
|
15816
15814
|
l(b);
|
|
15817
15815
|
}
|
|
15818
15816
|
try {
|
|
15819
|
-
a =
|
|
15817
|
+
a = qn(e, i.schema, {
|
|
15820
15818
|
parseOptions: d,
|
|
15821
15819
|
errorOnInvalidContent: (s = t.errorOnInvalidContent) !== null && s !== void 0 ? s : i.options.enableContentCheck
|
|
15822
15820
|
});
|
|
@@ -15903,7 +15901,7 @@ const Tv = (r) => ({ editor: e, view: t, tr: o, dispatch: n }) => {
|
|
|
15903
15901
|
c && n && o.maybeStep(c);
|
|
15904
15902
|
}), !0;
|
|
15905
15903
|
};
|
|
15906
|
-
function
|
|
15904
|
+
function Un(r, e, t = {}) {
|
|
15907
15905
|
const { from: o, to: n, empty: i } = r.selection, s = e ? Ke(e, r.schema) : null, a = [];
|
|
15908
15906
|
r.doc.nodesBetween(o, n, (p, u) => {
|
|
15909
15907
|
if (p.isText)
|
|
@@ -15920,7 +15918,7 @@ function Kn(r, e, t = {}) {
|
|
|
15920
15918
|
}
|
|
15921
15919
|
const Ov = (r, e = {}) => ({ state: t, dispatch: o }) => {
|
|
15922
15920
|
const n = Ke(r, t.schema);
|
|
15923
|
-
return
|
|
15921
|
+
return Un(t, n, e) ? ww(t, o) : !1;
|
|
15924
15922
|
}, Pv = () => ({ state: r, dispatch: e }) => $h(r, e), Bv = (r) => ({ state: e, dispatch: t }) => {
|
|
15925
15923
|
const o = Ke(r, e.schema);
|
|
15926
15924
|
return Aw(o)(e, t);
|
|
@@ -15950,7 +15948,7 @@ const Lv = (r, e) => ({ tr: t, state: o, dispatch: n }) => {
|
|
|
15950
15948
|
return !0;
|
|
15951
15949
|
}, Iv = () => ({ state: r, dispatch: e }) => Ah(r, e), Rv = () => ({ state: r, dispatch: e }) => Nh(r, e), $v = () => ({ state: r, dispatch: e }) => Sw(r, e), _v = () => ({ state: r, dispatch: e }) => Ew(r, e), Fv = () => ({ state: r, dispatch: e }) => Mw(r, e);
|
|
15952
15950
|
function Il(r, e, t = {}, o = {}) {
|
|
15953
|
-
return
|
|
15951
|
+
return qn(r, e, {
|
|
15954
15952
|
slice: !1,
|
|
15955
15953
|
parseOptions: t,
|
|
15956
15954
|
errorOnInvalidContent: o.errorOnInvalidContent
|
|
@@ -16124,9 +16122,9 @@ function Rl(r, e, t = {}) {
|
|
|
16124
16122
|
}
|
|
16125
16123
|
function Jv(r, e, t = {}) {
|
|
16126
16124
|
if (!e)
|
|
16127
|
-
return
|
|
16125
|
+
return Un(r, null, t) || Rl(r, null, t);
|
|
16128
16126
|
const o = ba(e, r.schema);
|
|
16129
|
-
return o === "node" ?
|
|
16127
|
+
return o === "node" ? Un(r, e, t) : o === "mark" ? Rl(r, e, t) : !1;
|
|
16130
16128
|
}
|
|
16131
16129
|
function Pp(r, e) {
|
|
16132
16130
|
const { nodeExtensions: t } = ha(e), o = t.find((s) => s.name === r);
|
|
@@ -16370,12 +16368,12 @@ const o2 = ({ keepMarks: r = !0 } = {}) => ({ tr: e, state: t, dispatch: o, edit
|
|
|
16370
16368
|
const { extendEmptyMarkRange: i = !1 } = t, s = Wr(r, o.schema);
|
|
16371
16369
|
return Rl(o, s, e) ? n.unsetMark(s, { extendEmptyMarkRange: i }) : n.setMark(s, e);
|
|
16372
16370
|
}, a2 = (r, e, t = {}) => ({ state: o, commands: n }) => {
|
|
16373
|
-
const i = Ke(r, o.schema), s = Ke(e, o.schema), a =
|
|
16371
|
+
const i = Ke(r, o.schema), s = Ke(e, o.schema), a = Un(o, i, t);
|
|
16374
16372
|
let l;
|
|
16375
16373
|
return o.selection.$anchor.sameParent(o.selection.$head) && (l = o.selection.$anchor.parent.attrs), a ? n.setNode(s, l) : n.setNode(i, { ...l, ...t });
|
|
16376
16374
|
}, l2 = (r, e = {}) => ({ state: t, commands: o }) => {
|
|
16377
16375
|
const n = Ke(r, t.schema);
|
|
16378
|
-
return
|
|
16376
|
+
return Un(t, n, e) ? o.lift(n) : o.wrapIn(n, e);
|
|
16379
16377
|
}, d2 = () => ({ state: r, dispatch: e }) => {
|
|
16380
16378
|
const t = r.plugins;
|
|
16381
16379
|
for (let o = 0; o < t.length; o += 1) {
|
|
@@ -17288,7 +17286,7 @@ function $l(r) {
|
|
|
17288
17286
|
}
|
|
17289
17287
|
});
|
|
17290
17288
|
}
|
|
17291
|
-
function
|
|
17289
|
+
function Kn(r) {
|
|
17292
17290
|
return new ga({
|
|
17293
17291
|
find: r.find,
|
|
17294
17292
|
handler: ({ state: e, range: t, match: o, chain: n }) => {
|
|
@@ -17364,10 +17362,10 @@ function bo(r) {
|
|
|
17364
17362
|
}
|
|
17365
17363
|
});
|
|
17366
17364
|
}
|
|
17367
|
-
var ft = "top", Dt = "bottom", Nt = "right", bt = "left", Fd = "auto", hi = [ft, Dt, Nt, bt], Uo = "start",
|
|
17368
|
-
return r.concat([e + "-" + Uo, e + "-" +
|
|
17365
|
+
var ft = "top", Dt = "bottom", Nt = "right", bt = "left", Fd = "auto", hi = [ft, Dt, Nt, bt], Uo = "start", Gn = "end", O2 = "clippingParents", Xh = "viewport", pn = "popper", P2 = "reference", Ap = /* @__PURE__ */ hi.reduce(function(r, e) {
|
|
17366
|
+
return r.concat([e + "-" + Uo, e + "-" + Gn]);
|
|
17369
17367
|
}, []), Zh = /* @__PURE__ */ [].concat(hi, [Fd]).reduce(function(r, e) {
|
|
17370
|
-
return r.concat([e, e + "-" + Uo, e + "-" +
|
|
17368
|
+
return r.concat([e, e + "-" + Uo, e + "-" + Gn]);
|
|
17371
17369
|
}, []), B2 = "beforeRead", A2 = "read", L2 = "afterRead", D2 = "beforeMain", N2 = "main", I2 = "afterMain", R2 = "beforeWrite", $2 = "write", _2 = "afterWrite", F2 = [B2, A2, L2, D2, N2, I2, R2, $2, _2];
|
|
17372
17370
|
function Zt(r) {
|
|
17373
17371
|
return r ? (r.nodeName || "").toLowerCase() : null;
|
|
@@ -17541,11 +17539,11 @@ function gi(r) {
|
|
|
17541
17539
|
function jd(r) {
|
|
17542
17540
|
return ["top", "bottom"].indexOf(r) >= 0 ? "x" : "y";
|
|
17543
17541
|
}
|
|
17544
|
-
function
|
|
17542
|
+
function Mn(r, e, t) {
|
|
17545
17543
|
return co(r, xs(e, t));
|
|
17546
17544
|
}
|
|
17547
17545
|
function W2(r, e, t) {
|
|
17548
|
-
var o =
|
|
17546
|
+
var o = Mn(r, e, t);
|
|
17549
17547
|
return o > t ? t : o;
|
|
17550
17548
|
}
|
|
17551
17549
|
function og() {
|
|
@@ -17572,7 +17570,7 @@ var q2 = function(e, t) {
|
|
|
17572
17570
|
function U2(r) {
|
|
17573
17571
|
var e, t = r.state, o = r.name, n = r.options, i = t.elements.arrow, s = t.modifiersData.popperOffsets, a = Yt(t.placement), l = jd(a), d = [bt, Nt].indexOf(a) >= 0, c = d ? "height" : "width";
|
|
17574
17572
|
if (!(!i || !s)) {
|
|
17575
|
-
var p = q2(n.padding, t), u = Hd(i), h = l === "y" ? ft : bt, g = l === "y" ? Dt : Nt, f = t.rects.reference[c] + t.rects.reference[l] - s[l] - t.rects.popper[c], b = s[l] - t.rects.reference[l], w = gi(i), k = w ? l === "y" ? w.clientHeight || 0 : w.clientWidth || 0 : 0, M = f / 2 - b / 2, y = p[h], B = k - u[c] - p[g], E = k / 2 - u[c] / 2 + M, D =
|
|
17573
|
+
var p = q2(n.padding, t), u = Hd(i), h = l === "y" ? ft : bt, g = l === "y" ? Dt : Nt, f = t.rects.reference[c] + t.rects.reference[l] - s[l] - t.rects.popper[c], b = s[l] - t.rects.reference[l], w = gi(i), k = w ? l === "y" ? w.clientHeight || 0 : w.clientWidth || 0 : 0, M = f / 2 - b / 2, y = p[h], B = k - u[c] - p[g], E = k / 2 - u[c] / 2 + M, D = Mn(y, E, B), A = l;
|
|
17576
17574
|
t.modifiersData[o] = (e = {}, e[A] = D, e.centerOffset = D - E, e);
|
|
17577
17575
|
}
|
|
17578
17576
|
}
|
|
@@ -17617,7 +17615,7 @@ function Dp(r) {
|
|
|
17617
17615
|
var w = s.hasOwnProperty("x"), k = s.hasOwnProperty("y"), M = bt, y = ft, B = window;
|
|
17618
17616
|
if (d) {
|
|
17619
17617
|
var E = gi(t), D = "clientHeight", A = "clientWidth";
|
|
17620
|
-
if (E === St(t) && (E = qr(t), gr(E).position !== "static" && a === "absolute" && (D = "scrollHeight", A = "scrollWidth")), E = E, n === ft || (n === bt || n === Nt) && i ===
|
|
17618
|
+
if (E === St(t) && (E = qr(t), gr(E).position !== "static" && a === "absolute" && (D = "scrollHeight", A = "scrollWidth")), E = E, n === ft || (n === bt || n === Nt) && i === Gn) {
|
|
17621
17619
|
y = Dt;
|
|
17622
17620
|
var P = p && E === B && B.visualViewport ? B.visualViewport.height : (
|
|
17623
17621
|
// $FlowFixMe[prop-missing]
|
|
@@ -17625,7 +17623,7 @@ function Dp(r) {
|
|
|
17625
17623
|
);
|
|
17626
17624
|
f -= P - o.height, f *= l ? 1 : -1;
|
|
17627
17625
|
}
|
|
17628
|
-
if (n === bt || (n === ft || n === Dt) && i ===
|
|
17626
|
+
if (n === bt || (n === ft || n === Dt) && i === Gn) {
|
|
17629
17627
|
M = Nt;
|
|
17630
17628
|
var S = p && E === B && B.visualViewport ? B.visualViewport.width : (
|
|
17631
17629
|
// $FlowFixMe[prop-missing]
|
|
@@ -17761,13 +17759,13 @@ function qd(r) {
|
|
|
17761
17759
|
function sg(r) {
|
|
17762
17760
|
return ["html", "body", "#document"].indexOf(Zt(r)) >= 0 ? r.ownerDocument.body : Lt(r) && qd(r) ? r : sg(ya(r));
|
|
17763
17761
|
}
|
|
17764
|
-
function
|
|
17762
|
+
function En(r, e) {
|
|
17765
17763
|
var t;
|
|
17766
17764
|
e === void 0 && (e = []);
|
|
17767
17765
|
var o = sg(r), n = o === ((t = r.ownerDocument) == null ? void 0 : t.body), i = St(o), s = n ? [i].concat(i.visualViewport || [], qd(o) ? o : []) : o, a = e.concat(s);
|
|
17768
17766
|
return n ? a : (
|
|
17769
17767
|
// $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
17770
|
-
a.concat(
|
|
17768
|
+
a.concat(En(ya(s)))
|
|
17771
17769
|
);
|
|
17772
17770
|
}
|
|
17773
17771
|
function zl(r) {
|
|
@@ -17786,7 +17784,7 @@ function Ip(r, e, t) {
|
|
|
17786
17784
|
return e === Xh ? zl(ox(r, t)) : yo(e) ? ix(e, t) : zl(nx(qr(r)));
|
|
17787
17785
|
}
|
|
17788
17786
|
function sx(r) {
|
|
17789
|
-
var e =
|
|
17787
|
+
var e = En(ya(r)), t = ["absolute", "fixed"].indexOf(gr(r).position) >= 0, o = t && Lt(r) ? gi(r) : r;
|
|
17790
17788
|
return yo(o) ? e.filter(function(n) {
|
|
17791
17789
|
return yo(n) && rg(n, o) && Zt(n) !== "body";
|
|
17792
17790
|
}) : [];
|
|
@@ -17838,26 +17836,26 @@ function ag(r) {
|
|
|
17838
17836
|
case Uo:
|
|
17839
17837
|
l[d] = l[d] - (e[c] / 2 - t[c] / 2);
|
|
17840
17838
|
break;
|
|
17841
|
-
case
|
|
17839
|
+
case Gn:
|
|
17842
17840
|
l[d] = l[d] + (e[c] / 2 - t[c] / 2);
|
|
17843
17841
|
break;
|
|
17844
17842
|
}
|
|
17845
17843
|
}
|
|
17846
17844
|
return l;
|
|
17847
17845
|
}
|
|
17848
|
-
function
|
|
17846
|
+
function Jn(r, e) {
|
|
17849
17847
|
e === void 0 && (e = {});
|
|
17850
|
-
var t = e, o = t.placement, n = o === void 0 ? r.placement : o, i = t.strategy, s = i === void 0 ? r.strategy : i, a = t.boundary, l = a === void 0 ? O2 : a, d = t.rootBoundary, c = d === void 0 ? Xh : d, p = t.elementContext, u = p === void 0 ?
|
|
17848
|
+
var t = e, o = t.placement, n = o === void 0 ? r.placement : o, i = t.strategy, s = i === void 0 ? r.strategy : i, a = t.boundary, l = a === void 0 ? O2 : a, d = t.rootBoundary, c = d === void 0 ? Xh : d, p = t.elementContext, u = p === void 0 ? pn : p, h = t.altBoundary, g = h === void 0 ? !1 : h, f = t.padding, b = f === void 0 ? 0 : f, w = ng(typeof b != "number" ? b : ig(b, hi)), k = u === pn ? P2 : pn, M = r.rects.popper, y = r.elements[g ? k : u], B = ax(yo(y) ? y : y.contextElement || qr(r.elements.popper), l, c, s), E = Go(r.elements.reference), D = ag({
|
|
17851
17849
|
reference: E,
|
|
17852
17850
|
element: M,
|
|
17853
17851
|
placement: n
|
|
17854
|
-
}), A = zl(Object.assign({}, M, D)), P = u ===
|
|
17852
|
+
}), A = zl(Object.assign({}, M, D)), P = u === pn ? A : E, S = {
|
|
17855
17853
|
top: B.top - P.top + w.top,
|
|
17856
17854
|
bottom: P.bottom - B.bottom + w.bottom,
|
|
17857
17855
|
left: B.left - P.left + w.left,
|
|
17858
17856
|
right: P.right - B.right + w.right
|
|
17859
17857
|
}, O = r.modifiersData.offset;
|
|
17860
|
-
if (u ===
|
|
17858
|
+
if (u === pn && O) {
|
|
17861
17859
|
var H = O[n];
|
|
17862
17860
|
Object.keys(S).forEach(function(q) {
|
|
17863
17861
|
var oe = [Nt, Dt].indexOf(q) >= 0 ? 1 : -1, Q = [ft, Dt].indexOf(q) >= 0 ? "y" : "x";
|
|
@@ -17875,7 +17873,7 @@ function lx(r, e) {
|
|
|
17875
17873
|
});
|
|
17876
17874
|
u.length === 0 && (u = p);
|
|
17877
17875
|
var h = u.reduce(function(g, f) {
|
|
17878
|
-
return g[f] =
|
|
17876
|
+
return g[f] = Jn(r, {
|
|
17879
17877
|
placement: f,
|
|
17880
17878
|
boundary: n,
|
|
17881
17879
|
rootBoundary: i,
|
|
@@ -17905,7 +17903,7 @@ function cx(r) {
|
|
|
17905
17903
|
allowedAutoPlacements: f
|
|
17906
17904
|
}) : st);
|
|
17907
17905
|
}, []), B = e.rects.reference, E = e.rects.popper, D = /* @__PURE__ */ new Map(), A = !0, P = y[0], S = 0; S < y.length; S++) {
|
|
17908
|
-
var O = y[S], H = Yt(O), q = Jo(O) === Uo, oe = [ft, Dt].indexOf(H) >= 0, Q = oe ? "width" : "height", Z =
|
|
17906
|
+
var O = y[S], H = Yt(O), q = Jo(O) === Uo, oe = [ft, Dt].indexOf(H) >= 0, Q = oe ? "width" : "height", Z = Jn(e, {
|
|
17909
17907
|
placement: O,
|
|
17910
17908
|
boundary: c,
|
|
17911
17909
|
rootBoundary: p,
|
|
@@ -17967,9 +17965,9 @@ function $p(r) {
|
|
|
17967
17965
|
});
|
|
17968
17966
|
}
|
|
17969
17967
|
function ux(r) {
|
|
17970
|
-
var e = r.state, t = r.name, o = e.rects.reference, n = e.rects.popper, i = e.modifiersData.preventOverflow, s =
|
|
17968
|
+
var e = r.state, t = r.name, o = e.rects.reference, n = e.rects.popper, i = e.modifiersData.preventOverflow, s = Jn(e, {
|
|
17971
17969
|
elementContext: "reference"
|
|
17972
|
-
}), a =
|
|
17970
|
+
}), a = Jn(e, {
|
|
17973
17971
|
altBoundary: !0
|
|
17974
17972
|
}), l = Rp(s, o), d = Rp(a, n, i), c = $p(l), p = $p(d);
|
|
17975
17973
|
e.modifiersData[t] = {
|
|
@@ -18033,7 +18031,7 @@ function wx(r) {
|
|
|
18033
18031
|
return r === "x" ? "y" : "x";
|
|
18034
18032
|
}
|
|
18035
18033
|
function vx(r) {
|
|
18036
|
-
var e = r.state, t = r.options, o = r.name, n = t.mainAxis, i = n === void 0 ? !0 : n, s = t.altAxis, a = s === void 0 ? !1 : s, l = t.boundary, d = t.rootBoundary, c = t.altBoundary, p = t.padding, u = t.tether, h = u === void 0 ? !0 : u, g = t.tetherOffset, f = g === void 0 ? 0 : g, b =
|
|
18034
|
+
var e = r.state, t = r.options, o = r.name, n = t.mainAxis, i = n === void 0 ? !0 : n, s = t.altAxis, a = s === void 0 ? !1 : s, l = t.boundary, d = t.rootBoundary, c = t.altBoundary, p = t.padding, u = t.tether, h = u === void 0 ? !0 : u, g = t.tetherOffset, f = g === void 0 ? 0 : g, b = Jn(e, {
|
|
18037
18035
|
boundary: l,
|
|
18038
18036
|
rootBoundary: d,
|
|
18039
18037
|
padding: p,
|
|
@@ -18055,11 +18053,11 @@ function vx(r) {
|
|
|
18055
18053
|
var q, oe = y === "y" ? ft : bt, Q = y === "y" ? Dt : Nt, Z = y === "y" ? "height" : "width", le = E[y], he = le + b[oe], se = le - b[Q], ae = h ? -A[Z] / 2 : 0, re = k === Uo ? D[Z] : A[Z], pe = k === Uo ? -A[Z] : -D[Z], De = e.elements.arrow, Ee = h && De ? Hd(De) : {
|
|
18056
18054
|
width: 0,
|
|
18057
18055
|
height: 0
|
|
18058
|
-
}, st = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : og(), mt = st[oe], vo = st[Q], er =
|
|
18059
|
-
E[y] =
|
|
18056
|
+
}, st = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : og(), mt = st[oe], vo = st[Q], er = Mn(0, D[Z], Ee[Z]), xo = M ? D[Z] / 2 - ae - er - mt - S.mainAxis : re - er - mt - S.mainAxis, fr = M ? -D[Z] / 2 + ae + er + vo + S.mainAxis : pe + er + vo + S.mainAxis, ko = e.elements.arrow && gi(e.elements.arrow), fi = ko ? y === "y" ? ko.clientTop || 0 : ko.clientLeft || 0 : 0, tn = (q = O == null ? void 0 : O[y]) != null ? q : 0, bi = le + xo - tn - fi, yi = le + fr - tn, rn = Mn(h ? xs(he, bi) : he, le, h ? co(se, yi) : se);
|
|
18057
|
+
E[y] = rn, H[y] = rn - le;
|
|
18060
18058
|
}
|
|
18061
18059
|
if (a) {
|
|
18062
|
-
var
|
|
18060
|
+
var on, wi = y === "x" ? ft : bt, vi = y === "x" ? Dt : Nt, tr = E[B], br = B === "y" ? "height" : "width", nn = tr + b[wi], Ur = tr - b[vi], sn = [ft, bt].indexOf(w) !== -1, xi = (on = O == null ? void 0 : O[B]) != null ? on : 0, ki = sn ? nn : tr - D[br] - A[br] - xi + S.altAxis, Si = sn ? tr + D[br] + A[br] - xi - S.altAxis : Ur, Ci = h && sn ? W2(ki, tr, Si) : Mn(h ? ki : nn, tr, h ? Si : Ur);
|
|
18063
18061
|
E[B] = Ci, H[B] = Ci - tr;
|
|
18064
18062
|
}
|
|
18065
18063
|
e.modifiersData[o] = H;
|
|
@@ -18184,8 +18182,8 @@ function Bx(r) {
|
|
|
18184
18182
|
setOptions: function(w) {
|
|
18185
18183
|
var k = typeof w == "function" ? w(c.options) : w;
|
|
18186
18184
|
f(), c.options = Object.assign({}, i, c.options, k), c.scrollParents = {
|
|
18187
|
-
reference: yo(a) ?
|
|
18188
|
-
popper:
|
|
18185
|
+
reference: yo(a) ? En(a) : a.contextElement ? En(a.contextElement) : [],
|
|
18186
|
+
popper: En(l)
|
|
18189
18187
|
};
|
|
18190
18188
|
var M = Tx(Px([].concat(o, c.options.modifiers)));
|
|
18191
18189
|
return c.orderedModifiers = M.filter(function(y) {
|
|
@@ -18328,10 +18326,10 @@ function jp(r) {
|
|
|
18328
18326
|
return r[t] !== void 0 && (e[t] = r[t]), e;
|
|
18329
18327
|
}, {});
|
|
18330
18328
|
}
|
|
18331
|
-
function
|
|
18329
|
+
function Tn() {
|
|
18332
18330
|
return document.createElement("div");
|
|
18333
18331
|
}
|
|
18334
|
-
function
|
|
18332
|
+
function Yn(r) {
|
|
18335
18333
|
return ["Element", "Fragment"].some(function(e) {
|
|
18336
18334
|
return Ud(r, e);
|
|
18337
18335
|
});
|
|
@@ -18346,7 +18344,7 @@ function jx(r) {
|
|
|
18346
18344
|
return !!(r && r._tippy && r._tippy.reference === r);
|
|
18347
18345
|
}
|
|
18348
18346
|
function Vx(r) {
|
|
18349
|
-
return
|
|
18347
|
+
return Yn(r) ? [r] : zx(r) ? ks(r) : Array.isArray(r) ? r : ks(document.querySelectorAll(r));
|
|
18350
18348
|
}
|
|
18351
18349
|
function Ga(r, e) {
|
|
18352
18350
|
r.forEach(function(t) {
|
|
@@ -18439,21 +18437,21 @@ function hg(r) {
|
|
|
18439
18437
|
"color: #a6a095;"
|
|
18440
18438
|
];
|
|
18441
18439
|
}
|
|
18442
|
-
var
|
|
18440
|
+
var Qn;
|
|
18443
18441
|
process.env.NODE_ENV !== "production" && Xx();
|
|
18444
18442
|
function Xx() {
|
|
18445
|
-
|
|
18443
|
+
Qn = /* @__PURE__ */ new Set();
|
|
18446
18444
|
}
|
|
18447
18445
|
function lr(r, e) {
|
|
18448
|
-
if (r && !
|
|
18446
|
+
if (r && !Qn.has(e)) {
|
|
18449
18447
|
var t;
|
|
18450
|
-
|
|
18448
|
+
Qn.add(e), (t = console).warn.apply(t, hg(e));
|
|
18451
18449
|
}
|
|
18452
18450
|
}
|
|
18453
18451
|
function Hl(r, e) {
|
|
18454
|
-
if (r && !
|
|
18452
|
+
if (r && !Qn.has(e)) {
|
|
18455
18453
|
var t;
|
|
18456
|
-
|
|
18454
|
+
Qn.add(e), (t = console).error.apply(t, hg(e));
|
|
18457
18455
|
}
|
|
18458
18456
|
}
|
|
18459
18457
|
function Zx(r) {
|
|
@@ -18589,11 +18587,11 @@ function jl(r, e) {
|
|
|
18589
18587
|
r[n5()] = e;
|
|
18590
18588
|
}
|
|
18591
18589
|
function Gp(r) {
|
|
18592
|
-
var e =
|
|
18593
|
-
return r === !0 ? e.className = dg : (e.className = cg,
|
|
18590
|
+
var e = Tn();
|
|
18591
|
+
return r === !0 ? e.className = dg : (e.className = cg, Yn(r) ? e.appendChild(r) : jl(e, r)), e;
|
|
18594
18592
|
}
|
|
18595
18593
|
function Jp(r, e) {
|
|
18596
|
-
|
|
18594
|
+
Yn(e.content) ? (jl(r, ""), r.appendChild(e.content)) : typeof e.content != "function" && (e.allowHTML ? jl(r, e.content) : r.textContent = e.content);
|
|
18597
18595
|
}
|
|
18598
18596
|
function Vl(r) {
|
|
18599
18597
|
var e = r.firstElementChild, t = ks(e.children);
|
|
@@ -18611,9 +18609,9 @@ function Vl(r) {
|
|
|
18611
18609
|
};
|
|
18612
18610
|
}
|
|
18613
18611
|
function yg(r) {
|
|
18614
|
-
var e =
|
|
18612
|
+
var e = Tn(), t = Tn();
|
|
18615
18613
|
t.className = Dx, t.setAttribute("data-state", "hidden"), t.setAttribute("tabindex", "-1");
|
|
18616
|
-
var o =
|
|
18614
|
+
var o = Tn();
|
|
18617
18615
|
o.className = lg, o.setAttribute("data-state", "hidden"), Jp(o, r.props), e.appendChild(t), t.appendChild(o), n(r.props, r.props);
|
|
18618
18616
|
function n(i, s) {
|
|
18619
18617
|
var a = Vl(e), l = a.box, d = a.content, c = a.arrow;
|
|
@@ -18642,7 +18640,7 @@ function s5(r, e) {
|
|
|
18642
18640
|
// properties
|
|
18643
18641
|
id: b,
|
|
18644
18642
|
reference: r,
|
|
18645
|
-
popper:
|
|
18643
|
+
popper: Tn(),
|
|
18646
18644
|
popperInstance: w,
|
|
18647
18645
|
props: t,
|
|
18648
18646
|
state: M,
|
|
@@ -18654,7 +18652,7 @@ function s5(r, e) {
|
|
|
18654
18652
|
show: Ig,
|
|
18655
18653
|
hide: Rg,
|
|
18656
18654
|
hideWithInteractivity: $g,
|
|
18657
|
-
enable:
|
|
18655
|
+
enable: sn,
|
|
18658
18656
|
disable: xi,
|
|
18659
18657
|
unmount: _g,
|
|
18660
18658
|
destroy: Fg
|
|
@@ -18666,7 +18664,7 @@ function s5(r, e) {
|
|
|
18666
18664
|
var A = k.map(function(L) {
|
|
18667
18665
|
return L.fn(y);
|
|
18668
18666
|
}), P = r.hasAttribute("aria-expanded");
|
|
18669
|
-
return ko(), ae(), le(), he("onCreate", [y]), t.showOnCreate &&
|
|
18667
|
+
return ko(), ae(), le(), he("onCreate", [y]), t.showOnCreate && nn(), E.addEventListener("mouseenter", function() {
|
|
18670
18668
|
y.props.interactive && y.state.isVisible && y.clearDelayTimeouts();
|
|
18671
18669
|
}), E.addEventListener("mouseleave", function() {
|
|
18672
18670
|
y.props.interactive && y.props.trigger.indexOf("mouseenter") >= 0 && oe().addEventListener("mousemove", g);
|
|
@@ -18795,21 +18793,21 @@ function s5(r, e) {
|
|
|
18795
18793
|
});
|
|
18796
18794
|
}
|
|
18797
18795
|
function ko() {
|
|
18798
|
-
O() && (fr("touchstart",
|
|
18796
|
+
O() && (fr("touchstart", tn, {
|
|
18799
18797
|
passive: !0
|
|
18800
18798
|
}), fr("touchend", yi, {
|
|
18801
18799
|
passive: !0
|
|
18802
18800
|
})), $x(y.props.trigger).forEach(function(L) {
|
|
18803
18801
|
if (L !== "manual")
|
|
18804
|
-
switch (fr(L,
|
|
18802
|
+
switch (fr(L, tn), L) {
|
|
18805
18803
|
case "mouseenter":
|
|
18806
18804
|
fr("mouseleave", yi);
|
|
18807
18805
|
break;
|
|
18808
18806
|
case "focus":
|
|
18809
|
-
fr(Yx ? "focusout" : "blur",
|
|
18807
|
+
fr(Yx ? "focusout" : "blur", rn);
|
|
18810
18808
|
break;
|
|
18811
18809
|
case "focusin":
|
|
18812
|
-
fr("focusout",
|
|
18810
|
+
fr("focusout", rn);
|
|
18813
18811
|
break;
|
|
18814
18812
|
}
|
|
18815
18813
|
});
|
|
@@ -18820,13 +18818,13 @@ function s5(r, e) {
|
|
|
18820
18818
|
W.removeEventListener(G, me, de);
|
|
18821
18819
|
}), h = [];
|
|
18822
18820
|
}
|
|
18823
|
-
function
|
|
18821
|
+
function tn(L) {
|
|
18824
18822
|
var W, G = !1;
|
|
18825
|
-
if (!(!y.state.isEnabled ||
|
|
18823
|
+
if (!(!y.state.isEnabled || on(L) || a)) {
|
|
18826
18824
|
var me = ((W = c) == null ? void 0 : W.type) === "focus";
|
|
18827
18825
|
c = L, f = L.currentTarget, ae(), !y.state.isVisible && Hx(L) && Vi.forEach(function(de) {
|
|
18828
18826
|
return de(L);
|
|
18829
|
-
}), L.type === "click" && (y.props.trigger.indexOf("mouseenter") < 0 || s) && y.props.hideOnClick !== !1 && y.state.isVisible ? G = !0 :
|
|
18827
|
+
}), L.type === "click" && (y.props.trigger.indexOf("mouseenter") < 0 || s) && y.props.hideOnClick !== !1 && y.state.isVisible ? G = !0 : nn(L), L.type === "click" && (s = !G), G && !me && Ur(L);
|
|
18830
18828
|
}
|
|
18831
18829
|
}
|
|
18832
18830
|
function bi(L) {
|
|
@@ -18844,7 +18842,7 @@ function s5(r, e) {
|
|
|
18844
18842
|
}
|
|
18845
18843
|
}
|
|
18846
18844
|
function yi(L) {
|
|
18847
|
-
var W =
|
|
18845
|
+
var W = on(L) || y.props.trigger.indexOf("click") >= 0 && s;
|
|
18848
18846
|
if (!W) {
|
|
18849
18847
|
if (y.props.interactive) {
|
|
18850
18848
|
y.hideWithInteractivity(L);
|
|
@@ -18853,10 +18851,10 @@ function s5(r, e) {
|
|
|
18853
18851
|
Ur(L);
|
|
18854
18852
|
}
|
|
18855
18853
|
}
|
|
18856
|
-
function
|
|
18854
|
+
function rn(L) {
|
|
18857
18855
|
y.props.trigger.indexOf("focusin") < 0 && L.target !== q() || y.props.interactive && L.relatedTarget && E.contains(L.relatedTarget) || Ur(L);
|
|
18858
18856
|
}
|
|
18859
|
-
function
|
|
18857
|
+
function on(L) {
|
|
18860
18858
|
return Wt.isTouch ? O() !== L.type.indexOf("touch") >= 0 : !1;
|
|
18861
18859
|
}
|
|
18862
18860
|
function wi() {
|
|
@@ -18932,7 +18930,7 @@ function s5(r, e) {
|
|
|
18932
18930
|
function br() {
|
|
18933
18931
|
return ks(E.querySelectorAll("[data-tippy-root]"));
|
|
18934
18932
|
}
|
|
18935
|
-
function
|
|
18933
|
+
function nn(L) {
|
|
18936
18934
|
y.clearDelayTimeouts(), L && he("onTrigger", [y, L]), st();
|
|
18937
18935
|
var W = Z(!0), G = S(), me = G[0], de = G[1];
|
|
18938
18936
|
Wt.isTouch && me === "hold" && de && (W = de), W ? o = setTimeout(function() {
|
|
@@ -18953,7 +18951,7 @@ function s5(r, e) {
|
|
|
18953
18951
|
});
|
|
18954
18952
|
}
|
|
18955
18953
|
}
|
|
18956
|
-
function
|
|
18954
|
+
function sn() {
|
|
18957
18955
|
y.state.isEnabled = !0;
|
|
18958
18956
|
}
|
|
18959
18957
|
function xi() {
|
|
@@ -19027,7 +19025,7 @@ function s5(r, e) {
|
|
|
19027
19025
|
process.env.NODE_ENV !== "production" && lr(y.state.isDestroyed, Po("destroy")), !y.state.isDestroyed && (y.clearDelayTimeouts(), y.unmount(), fi(), delete r._tippy, y.state.isDestroyed = !0, he("onDestroy", [y]));
|
|
19028
19026
|
}
|
|
19029
19027
|
}
|
|
19030
|
-
function
|
|
19028
|
+
function Zo(r, e) {
|
|
19031
19029
|
e === void 0 && (e = {});
|
|
19032
19030
|
var t = vt.plugins.concat(e.plugins || []);
|
|
19033
19031
|
process.env.NODE_ENV !== "production" && (Zx(r), bg(e, t)), Gx();
|
|
@@ -19035,7 +19033,7 @@ function en(r, e) {
|
|
|
19035
19033
|
plugins: t
|
|
19036
19034
|
}), n = Vx(r);
|
|
19037
19035
|
if (process.env.NODE_ENV !== "production") {
|
|
19038
|
-
var i =
|
|
19036
|
+
var i = Yn(o.content), s = n.length > 1;
|
|
19039
19037
|
lr(i && s, ["tippy() was passed an Element as the `content` prop, but more than", "one tippy instance was created by this invocation. This means the", "content element will only be appended to the last tippy instance.", `
|
|
19040
19038
|
|
|
19041
19039
|
`, "Instead, pass the .innerHTML of the element, or use a function that", "returns a cloned version of the element instead.", `
|
|
@@ -19047,11 +19045,11 @@ function en(r, e) {
|
|
|
19047
19045
|
var c = d && s5(d, o);
|
|
19048
19046
|
return c && l.push(c), l;
|
|
19049
19047
|
}, []);
|
|
19050
|
-
return
|
|
19048
|
+
return Yn(r) ? a[0] : a;
|
|
19051
19049
|
}
|
|
19052
|
-
|
|
19053
|
-
|
|
19054
|
-
|
|
19050
|
+
Zo.defaultProps = vt;
|
|
19051
|
+
Zo.setDefaultProps = r5;
|
|
19052
|
+
Zo.currentInput = Wt;
|
|
19055
19053
|
Object.assign({}, eg, {
|
|
19056
19054
|
effect: function(e) {
|
|
19057
19055
|
var t = e.state, o = {
|
|
@@ -19069,7 +19067,7 @@ Object.assign({}, eg, {
|
|
|
19069
19067
|
Object.assign(t.elements.popper.style, o.popper), t.styles = o, t.elements.arrow && Object.assign(t.elements.arrow.style, o.arrow);
|
|
19070
19068
|
}
|
|
19071
19069
|
});
|
|
19072
|
-
|
|
19070
|
+
Zo.setDefaultProps({
|
|
19073
19071
|
render: yg
|
|
19074
19072
|
});
|
|
19075
19073
|
class a5 {
|
|
@@ -19133,7 +19131,7 @@ class a5 {
|
|
|
19133
19131
|
}
|
|
19134
19132
|
createTooltip() {
|
|
19135
19133
|
const { element: e } = this.editor.options, t = !!e.parentElement;
|
|
19136
|
-
this.tippy || !t || (this.tippy =
|
|
19134
|
+
this.tippy || !t || (this.tippy = Zo(e, {
|
|
19137
19135
|
duration: 0,
|
|
19138
19136
|
getReferenceClientRect: null,
|
|
19139
19137
|
content: this.element,
|
|
@@ -19219,7 +19217,7 @@ class l5 {
|
|
|
19219
19217
|
}
|
|
19220
19218
|
createTooltip() {
|
|
19221
19219
|
const { element: e } = this.editor.options, t = !!e.parentElement;
|
|
19222
|
-
this.tippy || !t || (this.tippy =
|
|
19220
|
+
this.tippy || !t || (this.tippy = Zo(e, {
|
|
19223
19221
|
duration: 0,
|
|
19224
19222
|
getReferenceClientRect: null,
|
|
19225
19223
|
content: this.element,
|
|
@@ -19535,7 +19533,7 @@ const p5 = (r = {}) => {
|
|
|
19535
19533
|
},
|
|
19536
19534
|
addInputRules() {
|
|
19537
19535
|
return [
|
|
19538
|
-
|
|
19536
|
+
Kn({
|
|
19539
19537
|
find: u5,
|
|
19540
19538
|
type: this.type
|
|
19541
19539
|
})
|
|
@@ -19640,11 +19638,11 @@ const p5 = (r = {}) => {
|
|
|
19640
19638
|
};
|
|
19641
19639
|
},
|
|
19642
19640
|
addInputRules() {
|
|
19643
|
-
let r =
|
|
19641
|
+
let r = Kn({
|
|
19644
19642
|
find: Xp,
|
|
19645
19643
|
type: this.type
|
|
19646
19644
|
});
|
|
19647
|
-
return (this.options.keepMarks || this.options.keepAttributes) && (r =
|
|
19645
|
+
return (this.options.keepMarks || this.options.keepAttributes) && (r = Kn({
|
|
19648
19646
|
find: Xp,
|
|
19649
19647
|
type: this.type,
|
|
19650
19648
|
keepMarks: this.options.keepMarks,
|
|
@@ -20382,7 +20380,7 @@ class _t {
|
|
|
20382
20380
|
return d > W5 && (a = V5(a, d), s -= d), new _t(a.append(i), s);
|
|
20383
20381
|
}
|
|
20384
20382
|
remapping(e, t) {
|
|
20385
|
-
let o = new
|
|
20383
|
+
let o = new zn();
|
|
20386
20384
|
return this.items.forEach((n, i) => {
|
|
20387
20385
|
let s = n.mirrorOffset != null && i - n.mirrorOffset >= e ? o.maps.length - n.mirrorOffset : void 0;
|
|
20388
20386
|
o.appendMap(n.map, s);
|
|
@@ -20796,13 +20794,13 @@ const Sg = kg(!1, !0), Cg = kg(!0, !0), Y5 = Ze.create({
|
|
|
20796
20794
|
};
|
|
20797
20795
|
},
|
|
20798
20796
|
addInputRules() {
|
|
20799
|
-
let r =
|
|
20797
|
+
let r = Kn({
|
|
20800
20798
|
find: ru,
|
|
20801
20799
|
type: this.type,
|
|
20802
20800
|
getAttributes: (e) => ({ start: +e[1] }),
|
|
20803
20801
|
joinPredicate: (e, t) => t.childCount + t.attrs.start === +e[1]
|
|
20804
20802
|
});
|
|
20805
|
-
return (this.options.keepMarks || this.options.keepAttributes) && (r =
|
|
20803
|
+
return (this.options.keepMarks || this.options.keepAttributes) && (r = Kn({
|
|
20806
20804
|
find: ru,
|
|
20807
20805
|
type: this.type,
|
|
20808
20806
|
keepMarks: this.options.keepMarks,
|
|
@@ -20911,12 +20909,12 @@ const Sg = kg(!1, !0), Cg = kg(!0, !0), Y5 = Ze.create({
|
|
|
20911
20909
|
for (const t in e)
|
|
20912
20910
|
r[t] = e[t];
|
|
20913
20911
|
return r;
|
|
20914
|
-
}, Wl = "numeric", ql = "ascii", Ul = "alpha",
|
|
20912
|
+
}, Wl = "numeric", ql = "ascii", Ul = "alpha", On = "asciinumeric", yn = "alphanumeric", Kl = "domain", Mg = "emoji", h3 = "scheme", g3 = "slashscheme", Za = "whitespace";
|
|
20915
20913
|
function f3(r, e) {
|
|
20916
20914
|
return r in e || (e[r] = []), e[r];
|
|
20917
20915
|
}
|
|
20918
20916
|
function no(r, e, t) {
|
|
20919
|
-
e[Wl] && (e[
|
|
20917
|
+
e[Wl] && (e[On] = !0, e[yn] = !0), e[ql] && (e[On] = !0, e[Ul] = !0), e[On] && (e[yn] = !0), e[Ul] && (e[yn] = !0), e[yn] && (e[Kl] = !0), e[Mg] && (e[Kl] = !0);
|
|
20920
20918
|
for (const o in e) {
|
|
20921
20919
|
const n = f3(o, t);
|
|
20922
20920
|
n.indexOf(r) < 0 && n.push(r);
|
|
@@ -21052,7 +21050,7 @@ ht.prototype = {
|
|
|
21052
21050
|
return n.j[r] = s, s;
|
|
21053
21051
|
}
|
|
21054
21052
|
};
|
|
21055
|
-
const ee = (r, e, t, o, n) => r.ta(e, t, o, n), Te = (r, e, t, o, n) => r.tr(e, t, o, n), ou = (r, e, t, o, n) => r.ts(e, t, o, n), $ = (r, e, t, o, n) => r.tt(e, t, o, n), sr = "WORD", Gl = "UWORD", Eg = "ASCIINUMERICAL", Tg = "ALPHANUMERICAL",
|
|
21053
|
+
const ee = (r, e, t, o, n) => r.ta(e, t, o, n), Te = (r, e, t, o, n) => r.tr(e, t, o, n), ou = (r, e, t, o, n) => r.ts(e, t, o, n), $ = (r, e, t, o, n) => r.tt(e, t, o, n), sr = "WORD", Gl = "UWORD", Eg = "ASCIINUMERICAL", Tg = "ALPHANUMERICAL", Xn = "LOCALHOST", Jl = "TLD", Yl = "UTLD", ns = "SCHEME", Do = "SLASH_SCHEME", Gd = "NUM", Ql = "WS", Jd = "NL", Pn = "OPENBRACE", Bn = "CLOSEBRACE", Cs = "OPENBRACKET", Ms = "CLOSEBRACKET", Es = "OPENPAREN", Ts = "CLOSEPAREN", Os = "OPENANGLEBRACKET", Ps = "CLOSEANGLEBRACKET", Bs = "FULLWIDTHLEFTPAREN", As = "FULLWIDTHRIGHTPAREN", Ls = "LEFTCORNERBRACKET", Ds = "RIGHTCORNERBRACKET", Ns = "LEFTWHITECORNERBRACKET", Is = "RIGHTWHITECORNERBRACKET", Rs = "FULLWIDTHLESSTHAN", $s = "FULLWIDTHGREATERTHAN", _s = "AMPERSAND", Fs = "APOSTROPHE", zs = "ASTERISK", Sr = "AT", Hs = "BACKSLASH", js = "BACKTICK", Vs = "CARET", Mr = "COLON", Yd = "COMMA", Ws = "DOLLAR", jt = "DOT", qs = "EQUALS", Qd = "EXCLAMATION", Tt = "HYPHEN", An = "PERCENT", Us = "PIPE", Ks = "PLUS", Gs = "POUND", Ln = "QUERY", Xd = "QUOTE", Og = "FULLWIDTHMIDDLEDOT", Zd = "SEMI", Vt = "SLASH", Dn = "TILDE", Js = "UNDERSCORE", Pg = "EMOJI", Ys = "SYM";
|
|
21056
21054
|
var Bg = /* @__PURE__ */ Object.freeze({
|
|
21057
21055
|
__proto__: null,
|
|
21058
21056
|
ALPHANUMERICAL: Tg,
|
|
@@ -21065,7 +21063,7 @@ var Bg = /* @__PURE__ */ Object.freeze({
|
|
|
21065
21063
|
BACKTICK: js,
|
|
21066
21064
|
CARET: Vs,
|
|
21067
21065
|
CLOSEANGLEBRACKET: Ps,
|
|
21068
|
-
CLOSEBRACE:
|
|
21066
|
+
CLOSEBRACE: Bn,
|
|
21069
21067
|
CLOSEBRACKET: Ms,
|
|
21070
21068
|
CLOSEPAREN: Ts,
|
|
21071
21069
|
COLON: Mr,
|
|
@@ -21083,18 +21081,18 @@ var Bg = /* @__PURE__ */ Object.freeze({
|
|
|
21083
21081
|
HYPHEN: Tt,
|
|
21084
21082
|
LEFTCORNERBRACKET: Ls,
|
|
21085
21083
|
LEFTWHITECORNERBRACKET: Ns,
|
|
21086
|
-
LOCALHOST:
|
|
21084
|
+
LOCALHOST: Xn,
|
|
21087
21085
|
NL: Jd,
|
|
21088
21086
|
NUM: Gd,
|
|
21089
21087
|
OPENANGLEBRACKET: Os,
|
|
21090
|
-
OPENBRACE:
|
|
21088
|
+
OPENBRACE: Pn,
|
|
21091
21089
|
OPENBRACKET: Cs,
|
|
21092
21090
|
OPENPAREN: Es,
|
|
21093
|
-
PERCENT:
|
|
21091
|
+
PERCENT: An,
|
|
21094
21092
|
PIPE: Us,
|
|
21095
21093
|
PLUS: Ks,
|
|
21096
21094
|
POUND: Gs,
|
|
21097
|
-
QUERY:
|
|
21095
|
+
QUERY: Ln,
|
|
21098
21096
|
QUOTE: Xd,
|
|
21099
21097
|
RIGHTCORNERBRACKET: Ds,
|
|
21100
21098
|
RIGHTWHITECORNERBRACKET: Is,
|
|
@@ -21103,7 +21101,7 @@ var Bg = /* @__PURE__ */ Object.freeze({
|
|
|
21103
21101
|
SLASH: Vt,
|
|
21104
21102
|
SLASH_SCHEME: Do,
|
|
21105
21103
|
SYM: Ys,
|
|
21106
|
-
TILDE:
|
|
21104
|
+
TILDE: Dn,
|
|
21107
21105
|
TLD: Jl,
|
|
21108
21106
|
UNDERSCORE: Js,
|
|
21109
21107
|
UTLD: Yl,
|
|
@@ -21111,30 +21109,30 @@ var Bg = /* @__PURE__ */ Object.freeze({
|
|
|
21111
21109
|
WORD: sr,
|
|
21112
21110
|
WS: Ql
|
|
21113
21111
|
});
|
|
21114
|
-
const nr = /[a-z]/,
|
|
21112
|
+
const nr = /[a-z]/, un = new RegExp("\\p{L}", "u"), el = new RegExp("\\p{Emoji}", "u"), ir = /\d/, tl = /\s/, nu = "\r", rl = `
|
|
21115
21113
|
`, y3 = "️", w3 = "", ol = "";
|
|
21116
21114
|
let qi = null, Ui = null;
|
|
21117
21115
|
function v3(r = []) {
|
|
21118
21116
|
const e = {};
|
|
21119
21117
|
ht.groups = e;
|
|
21120
21118
|
const t = new ht();
|
|
21121
|
-
qi == null && (qi = iu(u3)), Ui == null && (Ui = iu(m3)), $(t, "'", Fs), $(t, "{",
|
|
21119
|
+
qi == null && (qi = iu(u3)), Ui == null && (Ui = iu(m3)), $(t, "'", Fs), $(t, "{", Pn), $(t, "}", Bn), $(t, "[", Cs), $(t, "]", Ms), $(t, "(", Es), $(t, ")", Ts), $(t, "<", Os), $(t, ">", Ps), $(t, "(", Bs), $(t, ")", As), $(t, "「", Ls), $(t, "」", Ds), $(t, "『", Ns), $(t, "』", Is), $(t, "<", Rs), $(t, ">", $s), $(t, "&", _s), $(t, "*", zs), $(t, "@", Sr), $(t, "`", js), $(t, "^", Vs), $(t, ":", Mr), $(t, ",", Yd), $(t, "$", Ws), $(t, ".", jt), $(t, "=", qs), $(t, "!", Qd), $(t, "-", Tt), $(t, "%", An), $(t, "|", Us), $(t, "+", Ks), $(t, "#", Gs), $(t, "?", Ln), $(t, '"', Xd), $(t, "/", Vt), $(t, ";", Zd), $(t, "~", Dn), $(t, "_", Js), $(t, "\\", Hs), $(t, "・", Og);
|
|
21122
21120
|
const o = Te(t, ir, Gd, {
|
|
21123
21121
|
[Wl]: !0
|
|
21124
21122
|
});
|
|
21125
21123
|
Te(o, ir, o);
|
|
21126
21124
|
const n = Te(o, nr, Eg, {
|
|
21127
|
-
[
|
|
21128
|
-
}), i = Te(o,
|
|
21129
|
-
[
|
|
21125
|
+
[On]: !0
|
|
21126
|
+
}), i = Te(o, un, Tg, {
|
|
21127
|
+
[yn]: !0
|
|
21130
21128
|
}), s = Te(t, nr, sr, {
|
|
21131
21129
|
[ql]: !0
|
|
21132
21130
|
});
|
|
21133
21131
|
Te(s, ir, n), Te(s, nr, s), Te(n, ir, n), Te(n, nr, n);
|
|
21134
|
-
const a = Te(t,
|
|
21132
|
+
const a = Te(t, un, Gl, {
|
|
21135
21133
|
[Ul]: !0
|
|
21136
21134
|
});
|
|
21137
|
-
Te(a, nr), Te(a, ir, i), Te(a,
|
|
21135
|
+
Te(a, nr), Te(a, ir, i), Te(a, un, a), Te(i, ir, i), Te(i, nr), Te(i, un, i);
|
|
21138
21136
|
const l = $(t, rl, Jd, {
|
|
21139
21137
|
[Za]: !0
|
|
21140
21138
|
}), d = $(t, nu, Ql, {
|
|
@@ -21149,7 +21147,7 @@ function v3(r = []) {
|
|
|
21149
21147
|
$(p, "#"), Te(p, el, p), $(p, y3, p);
|
|
21150
21148
|
const u = $(p, w3);
|
|
21151
21149
|
$(u, "#"), Te(u, el, p);
|
|
21152
|
-
const h = [[nr, s], [ir, n]], g = [[nr, null], [
|
|
21150
|
+
const h = [[nr, s], [ir, n]], g = [[nr, null], [un, a], [ir, i]];
|
|
21153
21151
|
for (let f = 0; f < qi.length; f++)
|
|
21154
21152
|
yr(t, qi[f], Jl, sr, h);
|
|
21155
21153
|
for (let f = 0; f < Ui.length; f++)
|
|
@@ -21173,9 +21171,9 @@ function v3(r = []) {
|
|
|
21173
21171
|
} : {
|
|
21174
21172
|
[g3]: !0
|
|
21175
21173
|
};
|
|
21176
|
-
b.indexOf("-") >= 0 ? k[Kl] = !0 : nr.test(b) ? ir.test(b) ? k[
|
|
21174
|
+
b.indexOf("-") >= 0 ? k[Kl] = !0 : nr.test(b) ? ir.test(b) ? k[On] = !0 : k[ql] = !0 : k[Wl] = !0, ou(t, b, b, k);
|
|
21177
21175
|
}
|
|
21178
|
-
return ou(t, "localhost",
|
|
21176
|
+
return ou(t, "localhost", Xn, {
|
|
21179
21177
|
ascii: !0
|
|
21180
21178
|
}), t.jd = new ht(Ys), {
|
|
21181
21179
|
start: t,
|
|
@@ -21239,7 +21237,7 @@ function iu(r) {
|
|
|
21239
21237
|
}
|
|
21240
21238
|
return e;
|
|
21241
21239
|
}
|
|
21242
|
-
const
|
|
21240
|
+
const Zn = {
|
|
21243
21241
|
defaultProtocol: "http",
|
|
21244
21242
|
events: null,
|
|
21245
21243
|
format: su,
|
|
@@ -21256,7 +21254,7 @@ const ei = {
|
|
|
21256
21254
|
render: null
|
|
21257
21255
|
};
|
|
21258
21256
|
function ec(r, e = null) {
|
|
21259
|
-
let t = Yo({},
|
|
21257
|
+
let t = Yo({}, Zn);
|
|
21260
21258
|
r && (t = Yo(t, r instanceof ec ? r.o : r));
|
|
21261
21259
|
const o = t.ignoreTags, n = [];
|
|
21262
21260
|
for (let i = 0; i < o.length; i++)
|
|
@@ -21264,7 +21262,7 @@ function ec(r, e = null) {
|
|
|
21264
21262
|
this.o = t, e && (this.defaultRender = e), this.ignoreTags = n;
|
|
21265
21263
|
}
|
|
21266
21264
|
ec.prototype = {
|
|
21267
|
-
o:
|
|
21265
|
+
o: Zn,
|
|
21268
21266
|
/**
|
|
21269
21267
|
* @type string[]
|
|
21270
21268
|
*/
|
|
@@ -21300,7 +21298,7 @@ ec.prototype = {
|
|
|
21300
21298
|
get(r, e, t) {
|
|
21301
21299
|
const o = e != null;
|
|
21302
21300
|
let n = this.o[r];
|
|
21303
|
-
return n && (typeof n == "object" ? (n = t.t in n ? n[t.t] :
|
|
21301
|
+
return n && (typeof n == "object" ? (n = t.t in n ? n[t.t] : Zn[r], typeof n == "function" && o && (n = n(e, t))) : typeof n == "function" && o && (n = n(e, t.t, t)), n);
|
|
21304
21302
|
},
|
|
21305
21303
|
/**
|
|
21306
21304
|
* @template {keyof Opts} L
|
|
@@ -21389,7 +21387,7 @@ Lg.prototype = {
|
|
|
21389
21387
|
@method toObject
|
|
21390
21388
|
@param {string} [protocol] `'http'` by default
|
|
21391
21389
|
*/
|
|
21392
|
-
toObject(r =
|
|
21390
|
+
toObject(r = Zn.defaultProtocol) {
|
|
21393
21391
|
return {
|
|
21394
21392
|
type: this.t,
|
|
21395
21393
|
value: this.toString(),
|
|
@@ -21459,7 +21457,7 @@ const au = wa("email", {
|
|
|
21459
21457
|
@param {string} [scheme] default scheme (e.g., 'https')
|
|
21460
21458
|
@return {string} the full href
|
|
21461
21459
|
*/
|
|
21462
|
-
toHref(r =
|
|
21460
|
+
toHref(r = Zn.defaultProtocol) {
|
|
21463
21461
|
return this.hasProtocol() ? this.v : `${r}://${this.v}`;
|
|
21464
21462
|
},
|
|
21465
21463
|
/**
|
|
@@ -21468,13 +21466,13 @@ const au = wa("email", {
|
|
|
21468
21466
|
*/
|
|
21469
21467
|
hasProtocol() {
|
|
21470
21468
|
const r = this.tk;
|
|
21471
|
-
return r.length >= 2 && r[0].t !==
|
|
21469
|
+
return r.length >= 2 && r[0].t !== Xn && r[1].t === Mr;
|
|
21472
21470
|
}
|
|
21473
21471
|
}), Mt = (r) => new ht(r);
|
|
21474
21472
|
function S3({
|
|
21475
21473
|
groups: r
|
|
21476
21474
|
}) {
|
|
21477
|
-
const e = r.domain.concat([_s, zs, Sr, Hs, js, Vs, Ws, qs, Tt, Gd,
|
|
21475
|
+
const e = r.domain.concat([_s, zs, Sr, Hs, js, Vs, Ws, qs, Tt, Gd, An, Us, Ks, Gs, Vt, Ys, Dn, Js]), t = [Fs, Mr, Yd, jt, Qd, An, Ln, Xd, Zd, Os, Ps, Pn, Bn, Ms, Cs, Es, Ts, Bs, As, Ls, Ds, Ns, Is, Rs, $s], o = [_s, Fs, zs, Hs, js, Vs, Ws, qs, Tt, Pn, Bn, An, Us, Ks, Gs, Ln, Vt, Ys, Dn, Js], n = Mt(), i = $(n, Dn);
|
|
21478
21476
|
ee(i, o, i), ee(i, r.domain, i);
|
|
21479
21477
|
const s = Mt(), a = Mt(), l = Mt();
|
|
21480
21478
|
ee(n, r.domain, s), ee(n, r.scheme, a), ee(n, r.slashscheme, l), ee(s, o, i), ee(s, r.domain, s);
|
|
@@ -21487,7 +21485,7 @@ function S3({
|
|
|
21487
21485
|
const u = $(p, jt);
|
|
21488
21486
|
ee(u, r.domain, p);
|
|
21489
21487
|
const h = Mt(au);
|
|
21490
|
-
ee(u, r.tld, h), ee(u, r.utld, h), $(d,
|
|
21488
|
+
ee(u, r.tld, h), ee(u, r.utld, h), $(d, Xn, h);
|
|
21491
21489
|
const g = $(p, Tt);
|
|
21492
21490
|
$(g, Tt, g), ee(g, r.domain, p), ee(h, r.domain, p), $(h, jt, u), $(h, Tt, g);
|
|
21493
21491
|
const f = $(h, Mr);
|
|
@@ -21501,9 +21499,9 @@ function S3({
|
|
|
21501
21499
|
const B = Mt(Ki), E = Mt();
|
|
21502
21500
|
ee(B, e, B), ee(B, t, E), ee(E, e, B), ee(E, t, E), $(k, Vt, B), $(y, Vt, B);
|
|
21503
21501
|
const D = $(a, Mr), A = $(l, Mr), P = $(A, Vt), S = $(P, Vt);
|
|
21504
|
-
ee(a, r.domain, s), $(a, jt, w), $(a, Tt, b), ee(l, r.domain, s), $(l, jt, w), $(l, Tt, b), ee(D, r.domain, B), $(D, Vt, B), $(D,
|
|
21502
|
+
ee(a, r.domain, s), $(a, jt, w), $(a, Tt, b), ee(l, r.domain, s), $(l, jt, w), $(l, Tt, b), ee(D, r.domain, B), $(D, Vt, B), $(D, Ln, B), ee(S, r.domain, B), ee(S, e, B), $(S, Vt, B);
|
|
21505
21503
|
const O = [
|
|
21506
|
-
[
|
|
21504
|
+
[Pn, Bn],
|
|
21507
21505
|
// {}
|
|
21508
21506
|
[Cs, Ms],
|
|
21509
21507
|
// []
|
|
@@ -21528,7 +21526,7 @@ function S3({
|
|
|
21528
21526
|
const le = Mt();
|
|
21529
21527
|
ee(Q, t), ee(Z, e, Z), ee(Z, t, le), ee(le, e, Z), ee(le, t, le), $(Z, oe, B), $(le, oe, B);
|
|
21530
21528
|
}
|
|
21531
|
-
return $(n,
|
|
21529
|
+
return $(n, Xn, k), $(n, Jd, k3), {
|
|
21532
21530
|
start: n,
|
|
21533
21531
|
tokens: Bg
|
|
21534
21532
|
};
|
|
@@ -21928,7 +21926,7 @@ const N3 = hr.create({
|
|
|
21928
21926
|
}), ke(() => {
|
|
21929
21927
|
M();
|
|
21930
21928
|
}), (S, O) => (v(), C("div", null, [
|
|
21931
|
-
_(
|
|
21929
|
+
_($n, {
|
|
21932
21930
|
showDynamicModalBuilder: t.value,
|
|
21933
21931
|
type: o.value,
|
|
21934
21932
|
gridColumnAmount: n.value,
|
|
@@ -22129,8 +22127,8 @@ const Z3 = /* @__PURE__ */ rc(Q3, [["render", X3]]), e4 = { class: "flex items-e
|
|
|
22129
22127
|
};
|
|
22130
22128
|
return Ve("closeMediaLibraryModal", () => {
|
|
22131
22129
|
o();
|
|
22132
|
-
}), (i, s) => (v(), Se(
|
|
22133
|
-
_(T(
|
|
22130
|
+
}), (i, s) => (v(), Se(ei, { to: "body" }, [
|
|
22131
|
+
_(T(Qo), {
|
|
22134
22132
|
show: r.open,
|
|
22135
22133
|
as: "template"
|
|
22136
22134
|
}, {
|
|
@@ -22183,9 +22181,11 @@ const Z3 = /* @__PURE__ */ rc(Q3, [["render", X3]]), e4 = { class: "flex items-e
|
|
|
22183
22181
|
}),
|
|
22184
22182
|
m("div", { class: "flex-end" }, [
|
|
22185
22183
|
m("div", { class: "flex-end" }, [
|
|
22186
|
-
m("
|
|
22184
|
+
m("button", {
|
|
22185
|
+
type: "button",
|
|
22187
22186
|
class: "h-10 w-10 cursor-pointer rounded-full flex items-center border-none justify-center bg-gray-50 aspect-square hover:bg-myPrimaryLinkColor hover:text-white hover:fill-white focus-visible:ring-0 text-myPrimaryDarkGrayColor",
|
|
22188
|
-
onClick: o
|
|
22187
|
+
onClick: o,
|
|
22188
|
+
"aria-label": "Close"
|
|
22189
22189
|
}, s[0] || (s[0] = [
|
|
22190
22190
|
m("span", { class: "material-symbols-outlined" }, " close ", -1)
|
|
22191
22191
|
]))
|
|
@@ -22445,7 +22445,7 @@ const Z3 = /* @__PURE__ */ rc(Q3, [["render", X3]]), e4 = { class: "flex items-e
|
|
|
22445
22445
|
};
|
|
22446
22446
|
};
|
|
22447
22447
|
return (se, ae) => (v(), C("div", null, [
|
|
22448
|
-
_(
|
|
22448
|
+
_($n, {
|
|
22449
22449
|
showDynamicModalBuilder: Z.value,
|
|
22450
22450
|
maxWidth: "2xl",
|
|
22451
22451
|
type: a.value,
|
|
@@ -22488,7 +22488,7 @@ const Z3 = /* @__PURE__ */ rc(Q3, [["render", X3]]), e4 = { class: "flex items-e
|
|
|
22488
22488
|
_: 1,
|
|
22489
22489
|
__: [2]
|
|
22490
22490
|
}, 8, ["showDynamicModalBuilder", "type", "gridColumnAmount", "title", "description", "firstButtonText", "secondButtonText", "thirdButtonText", "onFirstModalButtonFunctionDynamicModalBuilder", "onSecondModalButtonFunctionDynamicModalBuilder", "onThirdModalButtonFunctionDynamicModalBuilder"]),
|
|
22491
|
-
_(
|
|
22491
|
+
_($n, {
|
|
22492
22492
|
simpleModal: !0,
|
|
22493
22493
|
showDynamicModalBuilder: i.value,
|
|
22494
22494
|
maxWidth: "5xl",
|
|
@@ -23229,9 +23229,11 @@ const F4 = { class: "p-4" }, z4 = { class: "mb-8" }, H4 = { class: "grid grid-co
|
|
|
23229
23229
|
m("div", rk, [
|
|
23230
23230
|
m("h3", ok, j(r.title), 1)
|
|
23231
23231
|
]),
|
|
23232
|
-
m("
|
|
23232
|
+
m("button", {
|
|
23233
|
+
type: "button",
|
|
23233
23234
|
class: "h-10 w-10 flex-start cursor-pointer rounded-full flex items-center border-none justify-center bg-gray-50 aspect-square hover:bg-myPrimaryLinkColor hover:text-white hover:fill-white focus-visible:ring-0",
|
|
23234
|
-
onClick: o
|
|
23235
|
+
onClick: o,
|
|
23236
|
+
"aria-label": "Close"
|
|
23235
23237
|
}, i[0] || (i[0] = [
|
|
23236
23238
|
m("span", { class: "material-symbols-outlined" }, " close ", -1)
|
|
23237
23239
|
]))
|
|
@@ -23271,8 +23273,8 @@ const F4 = { class: "p-4" }, z4 = { class: "mb-8" }, H4 = { class: "grid grid-co
|
|
|
23271
23273
|
},
|
|
23272
23274
|
emits: ["slideOverButton"],
|
|
23273
23275
|
setup(r, { emit: e }) {
|
|
23274
|
-
return (t, o) => (v(), Se(
|
|
23275
|
-
_(T(
|
|
23276
|
+
return (t, o) => (v(), Se(ei, { to: "body" }, [
|
|
23277
|
+
_(T(Qo), {
|
|
23276
23278
|
as: "template",
|
|
23277
23279
|
show: r.open
|
|
23278
23280
|
}, {
|
|
@@ -23352,8 +23354,8 @@ const F4 = { class: "p-4" }, z4 = { class: "mb-8" }, H4 = { class: "grid grid-co
|
|
|
23352
23354
|
},
|
|
23353
23355
|
emits: ["slideOverButton"],
|
|
23354
23356
|
setup(r, { emit: e }) {
|
|
23355
|
-
return (t, o) => (v(), Se(
|
|
23356
|
-
_(T(
|
|
23357
|
+
return (t, o) => (v(), Se(ei, { to: "body" }, [
|
|
23358
|
+
_(T(Qo), {
|
|
23357
23359
|
as: "template",
|
|
23358
23360
|
show: r.open
|
|
23359
23361
|
}, {
|
|
@@ -23710,7 +23712,7 @@ const F4 = { class: "p-4" }, z4 = { class: "mb-8" }, H4 = { class: "grid grid-co
|
|
|
23710
23712
|
}, VS = { class: "overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg" }, WS = { class: "overflow-x-auto" }, qS = { class: "min-w-full divide-y divide-gray-300" }, US = { class: "bg-white divide-y divide-gray-200" }, KS = { class: "px-6 py-4 whitespace-nowrap text-sm text-gray-500" }, GS = { key: 0 }, JS = { key: 1 }, YS = { key: 0 }, QS = { class: "px-6 py-4 whitespace-nowrap text-sm text-gray-500" }, XS = { class: "inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium" }, ZS = { class: "mt-4 mb-4 py-8 border-b border-myPrimbryLightGrayColor" }, eC = { class: "mt-4 whitespace-pre-wrap text-white overflow-hidden bg-gray-900 max-w-2xl" }, tC = { class: "px-4 pb-8 pt-4 text-white text-xs break-all" }, rC = { class: "myPrimaryParagraph text-xs text-white" }, oC = {
|
|
23711
23713
|
__name: "PageBuilderSettings",
|
|
23712
23714
|
setup(r) {
|
|
23713
|
-
const e = "v3.2.
|
|
23715
|
+
const e = "v3.2.31", t = Be;
|
|
23714
23716
|
new Fe(t);
|
|
23715
23717
|
const o = x(!1), n = x(""), i = x(null), s = N(() => t.getConfigPageBuilder), a = function() {
|
|
23716
23718
|
n.value = "Advanced Settings", o.value = !0;
|
|
@@ -24051,7 +24053,7 @@ const F4 = { class: "p-4" }, z4 = { class: "mb-8" }, H4 = { class: "grid grid-co
|
|
|
24051
24053
|
]),
|
|
24052
24054
|
_: 1
|
|
24053
24055
|
}, 8, ["open", "title"]),
|
|
24054
|
-
_(
|
|
24056
|
+
_($n, {
|
|
24055
24057
|
showDynamicModalBuilder: s.value,
|
|
24056
24058
|
type: a.value,
|
|
24057
24059
|
gridColumnAmount: l.value,
|
|
@@ -24214,7 +24216,7 @@ function pC(r, e, t, o, n, i) {
|
|
|
24214
24216
|
], 2)
|
|
24215
24217
|
], 2);
|
|
24216
24218
|
}
|
|
24217
|
-
const
|
|
24219
|
+
const en = /* @__PURE__ */ rc(aC, [["render", pC]]), uC = { class: "flex flex-row flex-wrap gap-2 mt-2 mb-4" }, mC = ["onClick"], hC = { class: "flex items-center gap-1" }, gC = { class: "mr-1" }, fC = { class: "flex gap-2 item-center flex-col" }, bC = { class: "flex gap-2 item-center" }, yC = { class: "mt-1 relative flex items-center w-full border myPrimaryInput py-0 p-0" }, wC = {
|
|
24218
24220
|
__name: "ClassEditor",
|
|
24219
24221
|
setup(r) {
|
|
24220
24222
|
const e = Be, t = new Fe(e), o = x(null), n = N(() => e.getCurrentClasses);
|
|
@@ -24228,7 +24230,7 @@ const tn = /* @__PURE__ */ rc(aC, [["render", pC]]), uC = { class: "flex flex-ro
|
|
|
24228
24230
|
const i = x(""), s = async function() {
|
|
24229
24231
|
t.handleAddClasses(i.value), await t.handlePageBuilderMethods(), i.value = "";
|
|
24230
24232
|
};
|
|
24231
|
-
return (a, l) => (v(), Se(
|
|
24233
|
+
return (a, l) => (v(), Se(en, null, {
|
|
24232
24234
|
title: F(() => l[2] || (l[2] = [
|
|
24233
24235
|
We("Generated CSS")
|
|
24234
24236
|
])),
|
|
@@ -24505,7 +24507,7 @@ const tn = /* @__PURE__ */ rc(aC, [["render", pC]]), uC = { class: "flex flex-ro
|
|
|
24505
24507
|
}, HC = {
|
|
24506
24508
|
__name: "OpacityEditor",
|
|
24507
24509
|
setup(r) {
|
|
24508
|
-
return (e, t) => (v(), Se(
|
|
24510
|
+
return (e, t) => (v(), Se(en, null, {
|
|
24509
24511
|
title: F(() => t[0] || (t[0] = [
|
|
24510
24512
|
We("Opacity settings")
|
|
24511
24513
|
])),
|
|
@@ -24544,7 +24546,7 @@ const tn = /* @__PURE__ */ rc(aC, [["render", pC]]), uC = { class: "flex flex-ro
|
|
|
24544
24546
|
s.value = p, await t.handlePageBuilderMethods();
|
|
24545
24547
|
},
|
|
24546
24548
|
{ immediate: !0 }
|
|
24547
|
-
), (p, u) => (v(), Se(
|
|
24549
|
+
), (p, u) => (v(), Se(en, null, {
|
|
24548
24550
|
title: F(() => u[8] || (u[8] = [
|
|
24549
24551
|
We("Padding & Margin")
|
|
24550
24552
|
])),
|
|
@@ -24653,7 +24655,7 @@ const tn = /* @__PURE__ */ rc(aC, [["render", pC]]), uC = { class: "flex flex-ro
|
|
|
24653
24655
|
a.value = h, await t.handlePageBuilderMethods();
|
|
24654
24656
|
},
|
|
24655
24657
|
{ immediate: !0 }
|
|
24656
|
-
), (h, g) => (v(), Se(
|
|
24658
|
+
), (h, g) => (v(), Se(en, null, {
|
|
24657
24659
|
title: F(() => g[10] || (g[10] = [
|
|
24658
24660
|
We("Border Radius")
|
|
24659
24661
|
])),
|
|
@@ -24772,7 +24774,7 @@ const tn = /* @__PURE__ */ rc(aC, [["render", pC]]), uC = { class: "flex flex-ro
|
|
|
24772
24774
|
i.value = d, await t.handlePageBuilderMethods();
|
|
24773
24775
|
},
|
|
24774
24776
|
{ immediate: !0 }
|
|
24775
|
-
), (d, c) => (v(), Se(
|
|
24777
|
+
), (d, c) => (v(), Se(en, null, {
|
|
24776
24778
|
title: F(() => c[6] || (c[6] = [
|
|
24777
24779
|
We("Border Style, Width & Color")
|
|
24778
24780
|
])),
|
|
@@ -24927,7 +24929,7 @@ const tn = /* @__PURE__ */ rc(aC, [["render", pC]]), uC = { class: "flex flex-ro
|
|
|
24927
24929
|
__name: "ElementEditor",
|
|
24928
24930
|
setup(r) {
|
|
24929
24931
|
const e = Be, t = new Fe(e), o = N(() => e.getElement), n = N(() => e.getRestoredElement);
|
|
24930
|
-
return (i, s) => (v(), Se(
|
|
24932
|
+
return (i, s) => (v(), Se(en, null, {
|
|
24931
24933
|
title: F(() => s[2] || (s[2] = [
|
|
24932
24934
|
We("Selected HTML Element")
|
|
24933
24935
|
])),
|