@myissue/vue-website-page-builder 3.1.26 → 3.1.30
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.
|
@@ -2,12 +2,12 @@ var _g = Object.defineProperty;
|
|
|
2
2
|
var tc = (r) => {
|
|
3
3
|
throw TypeError(r);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var fe = (r, e, t) =>
|
|
5
|
+
var Fg = (r, e, t) => e in r ? _g(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
6
|
+
var fe = (r, e, t) => Fg(r, typeof e != "symbol" ? e + "" : e, t), rc = (r, e, t) => e.has(r) || tc("Cannot " + t);
|
|
7
7
|
var Ci = (r, e, t) => (rc(r, e, "read from private field"), t ? t.call(r) : e.get(r)), an = (r, e, t) => e.has(r) ? tc("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) => (rc(r, e, "access private method"), t);
|
|
9
9
|
import * as oc from "vue";
|
|
10
|
-
import { nextTick as Me, computed as L, ref as S, watchEffect as nt, onMounted as ke, cloneVNode as
|
|
10
|
+
import { nextTick as Me, computed as L, ref as S, watchEffect as nt, onMounted as ke, cloneVNode as zg, h as Ce, Fragment as we, defineComponent as ue, inject as Fe, provide as Ve, onUnmounted as kt, watch as pe, shallowRef as lu, unref as O, getCurrentInstance as Jl, Teleport as Yo, reactive as du, toRaw as tt, normalizeClass as Y, effectScope as cu, markRaw as Mr, hasInjectionContext as jg, isRef as Dn, isReactive as Yl, toRef as va, getCurrentScope as Hg, onScopeDispose as Vg, toRefs as nc, createBlock as Se, openBlock as k, createVNode as R, withCtx as $, withKeys as pu, withModifiers as Po, createElementVNode as h, renderSlot as Kt, createElementBlock as M, createCommentVNode as D, toDisplayString as z, Transition as Rt, onBeforeUnmount as Xs, customRef as Wg, onBeforeMount as qg, withDirectives as lt, vModelText as Ql, createTextVNode as Ie, resolveDynamicComponent as uu, renderList as Ae, vModelSelect as $t, vShow as Ug, createStaticVNode as Kg } from "vue";
|
|
11
11
|
const ts = {
|
|
12
12
|
backgroundColorVariables: [
|
|
13
13
|
"none",
|
|
@@ -1419,68 +1419,64 @@ class Ze {
|
|
|
1419
1419
|
updateLocalStorageItemName() {
|
|
1420
1420
|
var n, i, s, a, l;
|
|
1421
1421
|
const e = ((i = (n = this.pageBuilderStateStore.getConfigPageBuilder) == null ? void 0 : n.updateOrCreate) == null ? void 0 : i.formType) || "create", t = (s = this.pageBuilderStateStore.getConfigPageBuilder) == null ? void 0 : s.resourceData, o = (l = (a = this.pageBuilderStateStore.getConfigPageBuilder) == null ? void 0 : a.updateOrCreate) == null ? void 0 : l.createNewResourceFormName;
|
|
1422
|
-
if (e === "create" && o && o.length > 0) {
|
|
1423
|
-
this.pageBuilderStateStore.setLocalStorageItemName(
|
|
1424
|
-
`page-builder-create-resource-${this.sanitizeForLocalStorage(o)}`
|
|
1425
|
-
);
|
|
1426
|
-
return;
|
|
1427
|
-
}
|
|
1428
1422
|
if (e === "create") {
|
|
1429
|
-
|
|
1430
|
-
return;
|
|
1431
|
-
}
|
|
1432
|
-
if (e === "update" && typeof o != "string" || typeof o == "string" && (o == null ? void 0 : o.length) < 1) {
|
|
1433
|
-
if (t === null) {
|
|
1434
|
-
this.pageBuilderStateStore.setLocalStorageItemName("page-builder-update-resource");
|
|
1435
|
-
return;
|
|
1436
|
-
}
|
|
1437
|
-
if (typeof t == "object" && "id" in t && !("title" in t)) {
|
|
1438
|
-
const d = this.sanitizeForLocalStorage(String(t.id));
|
|
1439
|
-
this.pageBuilderStateStore.setLocalStorageItemName(
|
|
1440
|
-
`page-builder-update-resource-${d}`
|
|
1441
|
-
);
|
|
1442
|
-
return;
|
|
1443
|
-
}
|
|
1444
|
-
if (typeof t == "object" && "title" in t && !("id" in t)) {
|
|
1445
|
-
const d = this.sanitizeForLocalStorage(String(t.title));
|
|
1423
|
+
if (o && o.length > 0) {
|
|
1446
1424
|
this.pageBuilderStateStore.setLocalStorageItemName(
|
|
1447
|
-
`page-builder-
|
|
1448
|
-
);
|
|
1449
|
-
return;
|
|
1450
|
-
}
|
|
1451
|
-
if (typeof t == "object" && "title" in t && "id" in t) {
|
|
1452
|
-
const d = this.sanitizeForLocalStorage(String(t.id)), c = this.sanitizeForLocalStorage(String(t.title));
|
|
1453
|
-
this.pageBuilderStateStore.setLocalStorageItemName(
|
|
1454
|
-
`page-builder-update-resource-${c}-${d}`
|
|
1425
|
+
`page-builder-create-resource-${this.sanitizeForLocalStorage(o)}`
|
|
1455
1426
|
);
|
|
1456
1427
|
return;
|
|
1457
1428
|
}
|
|
1429
|
+
this.pageBuilderStateStore.setLocalStorageItemName("page-builder-create-resource");
|
|
1430
|
+
return;
|
|
1458
1431
|
}
|
|
1459
|
-
if (e === "update"
|
|
1460
|
-
if (
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1432
|
+
if (e === "update") {
|
|
1433
|
+
if (typeof o == "string" && o.length > 0) {
|
|
1434
|
+
if (t && t != null && !t.title && (!t.id || typeof t.id == "string")) {
|
|
1435
|
+
this.pageBuilderStateStore.setLocalStorageItemName("page-builder-update-resource");
|
|
1436
|
+
return;
|
|
1437
|
+
}
|
|
1438
|
+
if (t && t != null && t.title && typeof t.title == "string" && t.title.length > 0 && (!t.id || typeof t.id == "string")) {
|
|
1439
|
+
this.pageBuilderStateStore.setLocalStorageItemName(
|
|
1440
|
+
`page-builder-update-resource-${this.sanitizeForLocalStorage(o)}-${this.sanitizeForLocalStorage(t.title)}`
|
|
1441
|
+
);
|
|
1442
|
+
return;
|
|
1443
|
+
}
|
|
1444
|
+
if (t && t != null && !t.title && typeof t.title != "string" && (t.id || typeof t.id == "number")) {
|
|
1445
|
+
this.pageBuilderStateStore.setLocalStorageItemName(
|
|
1446
|
+
`page-builder-update-resource-${this.sanitizeForLocalStorage(o)}-${this.sanitizeForLocalStorage(String(t.id))}`
|
|
1447
|
+
);
|
|
1448
|
+
return;
|
|
1449
|
+
}
|
|
1450
|
+
if (t && t != null && t.title && typeof t.title == "string" && t.title.length > 0 && (t.id || typeof t.id == "number")) {
|
|
1451
|
+
this.pageBuilderStateStore.setLocalStorageItemName(
|
|
1452
|
+
`page-builder-update-resource-${this.sanitizeForLocalStorage(o)}-${this.sanitizeForLocalStorage(t.title)}-${this.sanitizeForLocalStorage(String(t.id))}`
|
|
1453
|
+
);
|
|
1454
|
+
return;
|
|
1455
|
+
}
|
|
1477
1456
|
}
|
|
1478
|
-
if (typeof
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1457
|
+
if (!o || typeof o == "string" && o.length === 0) {
|
|
1458
|
+
if (t && t != null && !t.title && (!t.id || typeof t.id == "string")) {
|
|
1459
|
+
this.pageBuilderStateStore.setLocalStorageItemName("page-builder-update-resource");
|
|
1460
|
+
return;
|
|
1461
|
+
}
|
|
1462
|
+
if (t && t != null && t.title && typeof t.title == "string" && t.title.length > 0 && (!t.id || typeof t.id == "string")) {
|
|
1463
|
+
this.pageBuilderStateStore.setLocalStorageItemName(
|
|
1464
|
+
`page-builder-update-resource-${this.sanitizeForLocalStorage(t.title)}`
|
|
1465
|
+
);
|
|
1466
|
+
return;
|
|
1467
|
+
}
|
|
1468
|
+
if (t && t != null && !t.title && typeof t.title != "string" && (t.id || typeof t.id == "number")) {
|
|
1469
|
+
this.pageBuilderStateStore.setLocalStorageItemName(
|
|
1470
|
+
`page-builder-update-resource-${this.sanitizeForLocalStorage(String(t.id))}`
|
|
1471
|
+
);
|
|
1472
|
+
return;
|
|
1473
|
+
}
|
|
1474
|
+
if (t && t != null && t.title && typeof t.title == "string" && t.title.length > 0 && (t.id || typeof t.id == "number")) {
|
|
1475
|
+
this.pageBuilderStateStore.setLocalStorageItemName(
|
|
1476
|
+
`page-builder-update-resource-${this.sanitizeForLocalStorage(t.title)}-${this.sanitizeForLocalStorage(String(t.id))}`
|
|
1477
|
+
);
|
|
1478
|
+
return;
|
|
1479
|
+
}
|
|
1484
1480
|
}
|
|
1485
1481
|
}
|
|
1486
1482
|
}
|
|
@@ -1565,7 +1561,7 @@ class Ze {
|
|
|
1565
1561
|
setComponentsFromData(e) {
|
|
1566
1562
|
this.showRunningMethodLogs && console.log("setComponentsFromData");
|
|
1567
1563
|
const t = e.trim();
|
|
1568
|
-
t.startsWith("[") || t.startsWith("{") ?
|
|
1564
|
+
t.startsWith("[") || t.startsWith("{") ? be(this, ne, ol).call(this, t) : t.startsWith("<") ? be(this, ne, yu).call(this, t) : be(this, ne, ol).call(this, t);
|
|
1569
1565
|
}
|
|
1570
1566
|
// Load existing content from HTML when in update mode
|
|
1571
1567
|
loadExistingContent(e) {
|
|
@@ -1748,7 +1744,7 @@ let of = class {
|
|
|
1748
1744
|
return typeof window > "u" || typeof document > "u" ? "server" : "client";
|
|
1749
1745
|
}
|
|
1750
1746
|
}, Zn = new of();
|
|
1751
|
-
function
|
|
1747
|
+
function zr(r) {
|
|
1752
1748
|
if (Zn.isServer) return null;
|
|
1753
1749
|
if (r instanceof Node) return r.ownerDocument;
|
|
1754
1750
|
if (r != null && r.hasOwnProperty("value")) {
|
|
@@ -1765,7 +1761,7 @@ function vu(r = document.body) {
|
|
|
1765
1761
|
var Zs = ((r) => (r[r.Strict = 0] = "Strict", r[r.Loose = 1] = "Loose", r))(Zs || {});
|
|
1766
1762
|
function ea(r, e = 0) {
|
|
1767
1763
|
var t;
|
|
1768
|
-
return r === ((t =
|
|
1764
|
+
return r === ((t = zr(r)) == null ? void 0 : t.body) ? !1 : _e(e, { 0() {
|
|
1769
1765
|
return r.matches(nl);
|
|
1770
1766
|
}, 1() {
|
|
1771
1767
|
let o = r;
|
|
@@ -1777,7 +1773,7 @@ function ea(r, e = 0) {
|
|
|
1777
1773
|
} });
|
|
1778
1774
|
}
|
|
1779
1775
|
function xu(r) {
|
|
1780
|
-
let e =
|
|
1776
|
+
let e = zr(r);
|
|
1781
1777
|
Me(() => {
|
|
1782
1778
|
e && !ea(e.activeElement, 0) && Dr(r);
|
|
1783
1779
|
});
|
|
@@ -1909,7 +1905,7 @@ function uf({ container: r, accept: e, walk: t, enabled: o }) {
|
|
|
1909
1905
|
nt(() => {
|
|
1910
1906
|
let n = r.value;
|
|
1911
1907
|
if (!n || o !== void 0 && !o.value) return;
|
|
1912
|
-
let i =
|
|
1908
|
+
let i = zr(r);
|
|
1913
1909
|
if (!i) return;
|
|
1914
1910
|
let s = Object.assign((l) => e(l), { acceptNode: e }), a = i.createTreeWalker(n, NodeFilter.SHOW_ELEMENT, s, !1);
|
|
1915
1911
|
for (; a.nextNode(); ) t(a.currentNode);
|
|
@@ -1945,7 +1941,7 @@ function ka({ props: r, attrs: e, slots: t, slot: o, name: n }) {
|
|
|
1945
1941
|
`), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".', "Render a single element as the child so that we can forward the props onto that element."].map((f) => ` - ${f}`).join(`
|
|
1946
1942
|
`)].join(`
|
|
1947
1943
|
`));
|
|
1948
|
-
let m = Tu((s = p.props) != null ? s : {}, l, c), g =
|
|
1944
|
+
let m = Tu((s = p.props) != null ? s : {}, l, c), g = zg(p, m, !0);
|
|
1949
1945
|
for (let f in m) f.startsWith("on") && (g.props || (g.props = {}), g.props[f] = m[f]);
|
|
1950
1946
|
return g;
|
|
1951
1947
|
}
|
|
@@ -1997,7 +1993,7 @@ function gf() {
|
|
|
1997
1993
|
return ei() !== null;
|
|
1998
1994
|
}
|
|
1999
1995
|
function ei() {
|
|
2000
|
-
return
|
|
1996
|
+
return Fe(Ou, null);
|
|
2001
1997
|
}
|
|
2002
1998
|
function rd(r) {
|
|
2003
1999
|
Ve(Ou, r);
|
|
@@ -2089,7 +2085,7 @@ var Iu = ((r) => (r[r.None = 1] = "None", r[r.InitialFocus = 2] = "InitialFocus"
|
|
|
2089
2085
|
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: S(/* @__PURE__ */ new Set()) } }, inheritAttrs: !1, setup(r, { attrs: e, slots: t, expose: o }) {
|
|
2090
2086
|
let n = S(null);
|
|
2091
2087
|
o({ el: n, $el: n });
|
|
2092
|
-
let i = L(() =>
|
|
2088
|
+
let i = L(() => zr(n)), s = S(!1);
|
|
2093
2089
|
ke(() => s.value = !0), kt(() => s.value = !1), vf({ ownerDocument: i }, L(() => s.value && !!(r.features & 16)));
|
|
2094
2090
|
let a = xf({ ownerDocument: i, container: n, initialFocus: L(() => r.initialFocus) }, L(() => s.value && !!(r.features & 2)));
|
|
2095
2091
|
kf({ ownerDocument: i, container: n, containers: r.containers, previousActiveElement: a }, L(() => s.value && !!(r.features & 8)));
|
|
@@ -2322,7 +2318,7 @@ function pc(r, e = S(!0)) {
|
|
|
2322
2318
|
});
|
|
2323
2319
|
}
|
|
2324
2320
|
function Bf({ defaultContainers: r = [], portals: e, mainTreeNodeRef: t } = {}) {
|
|
2325
|
-
let o = S(null), n =
|
|
2321
|
+
let o = S(null), n = zr(o);
|
|
2326
2322
|
function i() {
|
|
2327
2323
|
var s, a, l;
|
|
2328
2324
|
let d = [];
|
|
@@ -2339,7 +2335,7 @@ function Bf({ defaultContainers: r = [], portals: e, mainTreeNodeRef: t } = {})
|
|
|
2339
2335
|
}
|
|
2340
2336
|
let $u = Symbol("ForcePortalRootContext");
|
|
2341
2337
|
function Af() {
|
|
2342
|
-
return
|
|
2338
|
+
return Fe($u, !1);
|
|
2343
2339
|
}
|
|
2344
2340
|
let il = ue({ name: "ForcePortalRoot", props: { as: { type: [Object, String], default: "template" }, force: { type: Boolean, default: !1 } }, setup(r, { slots: e, attrs: t }) {
|
|
2345
2341
|
return Ve($u, r.force), () => {
|
|
@@ -2349,7 +2345,7 @@ let il = ue({ name: "ForcePortalRoot", props: { as: { type: [Object, String], de
|
|
|
2349
2345
|
} }), _u = Symbol("StackContext");
|
|
2350
2346
|
var sl = ((r) => (r[r.Add = 0] = "Add", r[r.Remove = 1] = "Remove", r))(sl || {});
|
|
2351
2347
|
function Lf() {
|
|
2352
|
-
return
|
|
2348
|
+
return Fe(_u, () => {
|
|
2353
2349
|
});
|
|
2354
2350
|
}
|
|
2355
2351
|
function Df({ type: r, enabled: e, element: t, onUpdate: o }) {
|
|
@@ -2365,9 +2361,9 @@ function Df({ type: r, enabled: e, element: t, onUpdate: o }) {
|
|
|
2365
2361
|
e.value && i(1, r, t);
|
|
2366
2362
|
}), Ve(_u, i);
|
|
2367
2363
|
}
|
|
2368
|
-
let
|
|
2364
|
+
let Fu = Symbol("DescriptionContext");
|
|
2369
2365
|
function Nf() {
|
|
2370
|
-
let r =
|
|
2366
|
+
let r = Fe(Fu, null);
|
|
2371
2367
|
if (r === null) throw new Error("Missing parent");
|
|
2372
2368
|
return r;
|
|
2373
2369
|
}
|
|
@@ -2379,7 +2375,7 @@ function If({ slot: r = S({}), name: e = "Description", props: t = {} } = {}) {
|
|
|
2379
2375
|
s !== -1 && o.value.splice(s, 1);
|
|
2380
2376
|
};
|
|
2381
2377
|
}
|
|
2382
|
-
return Ve(
|
|
2378
|
+
return Ve(Fu, { register: n, slot: r, name: e, props: t }), L(() => o.value.length > 0 ? o.value.join(" ") : void 0);
|
|
2383
2379
|
}
|
|
2384
2380
|
ue({ name: "Description", props: { as: { type: [Object, String], default: "p" }, id: { type: String, default: null } }, setup(r, { attrs: e, slots: t }) {
|
|
2385
2381
|
var o;
|
|
@@ -2390,7 +2386,7 @@ ue({ name: "Description", props: { as: { type: [Object, String], default: "p" },
|
|
|
2390
2386
|
};
|
|
2391
2387
|
} });
|
|
2392
2388
|
function Rf(r) {
|
|
2393
|
-
let e =
|
|
2389
|
+
let e = zr(r);
|
|
2394
2390
|
if (!e) {
|
|
2395
2391
|
if (r === null) return null;
|
|
2396
2392
|
throw new Error(`[Headless UI]: Cannot find ownerDocument for contextElement: ${r}`);
|
|
@@ -2409,8 +2405,8 @@ function uc(r, e) {
|
|
|
2409
2405
|
let t = e($f(r));
|
|
2410
2406
|
return t <= 0 ? al.delete(r) : al.set(r, t), t;
|
|
2411
2407
|
}
|
|
2412
|
-
let
|
|
2413
|
-
let o = S(null), n = L(() =>
|
|
2408
|
+
let zu = ue({ name: "Portal", props: { as: { type: [Object, String], default: "div" } }, setup(r, { slots: e, attrs: t }) {
|
|
2409
|
+
let o = S(null), n = L(() => zr(o)), i = Af(), s = Fe(ju, null), a = S(i === !0 || s == null ? Rf(o.value) : s.resolveTarget());
|
|
2414
2410
|
a.value && uc(a.value, (u) => u + 1);
|
|
2415
2411
|
let l = S(!1);
|
|
2416
2412
|
ke(() => {
|
|
@@ -2418,7 +2414,7 @@ let Fu = ue({ name: "Portal", props: { as: { type: [Object, String], default: "d
|
|
|
2418
2414
|
}), nt(() => {
|
|
2419
2415
|
i || s != null && (a.value = s.resolveTarget());
|
|
2420
2416
|
});
|
|
2421
|
-
let d =
|
|
2417
|
+
let d = Fe(ll, null), c = !1, p = Jl();
|
|
2422
2418
|
return pe(o, () => {
|
|
2423
2419
|
if (c || !d) return;
|
|
2424
2420
|
let u = U(o);
|
|
@@ -2434,7 +2430,7 @@ let Fu = ue({ name: "Portal", props: { as: { type: [Object, String], default: "d
|
|
|
2434
2430
|
};
|
|
2435
2431
|
} }), ll = Symbol("PortalParentContext");
|
|
2436
2432
|
function _f() {
|
|
2437
|
-
let r =
|
|
2433
|
+
let r = Fe(ll, null), e = S([]);
|
|
2438
2434
|
function t(i) {
|
|
2439
2435
|
return e.value.push(i), r && r.register(i), () => o(i);
|
|
2440
2436
|
}
|
|
@@ -2450,7 +2446,7 @@ function _f() {
|
|
|
2450
2446
|
};
|
|
2451
2447
|
} })];
|
|
2452
2448
|
}
|
|
2453
|
-
let ju = Symbol("PortalGroupContext"),
|
|
2449
|
+
let ju = Symbol("PortalGroupContext"), Ff = ue({ name: "PortalGroup", props: { as: { type: [Object, String], default: "template" }, target: { type: Object, default: null } }, setup(r, { attrs: e, slots: t }) {
|
|
2454
2450
|
let o = du({ resolveTarget() {
|
|
2455
2451
|
return r.target;
|
|
2456
2452
|
} });
|
|
@@ -2459,10 +2455,10 @@ let ju = Symbol("PortalGroupContext"), zf = ue({ name: "PortalGroup", props: { a
|
|
|
2459
2455
|
return Pe({ theirProps: i, ourProps: {}, slot: {}, attrs: e, slots: t, name: "PortalGroup" });
|
|
2460
2456
|
};
|
|
2461
2457
|
} });
|
|
2462
|
-
var
|
|
2458
|
+
var zf = ((r) => (r[r.Open = 0] = "Open", r[r.Closed = 1] = "Closed", r))(zf || {});
|
|
2463
2459
|
let dl = Symbol("DialogContext");
|
|
2464
2460
|
function ti(r) {
|
|
2465
|
-
let e =
|
|
2461
|
+
let e = Fe(dl, null);
|
|
2466
2462
|
if (e === null) {
|
|
2467
2463
|
let t = new Error(`<${r} /> is missing a parent <Dialog /> component.`);
|
|
2468
2464
|
throw Error.captureStackTrace && Error.captureStackTrace(t, ti), t;
|
|
@@ -2475,10 +2471,10 @@ let Oi = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", ri = ue({ name: "Dialog", inher
|
|
|
2475
2471
|
ke(() => {
|
|
2476
2472
|
l.value = !0;
|
|
2477
2473
|
});
|
|
2478
|
-
let d = !1, c = L(() => r.role === "dialog" || r.role === "alertdialog" ? r.role : (d || (d = !0, console.warn(`Invalid role [${c}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog")), p = S(0), u = ei(), m = L(() => r.open === Oi && u !== null ? (u.value & Be.Open) === Be.Open : r.open), g = S(null), f = L(() =>
|
|
2474
|
+
let d = !1, c = L(() => r.role === "dialog" || r.role === "alertdialog" ? r.role : (d || (d = !0, console.warn(`Invalid role [${c}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog")), p = S(0), u = ei(), m = L(() => r.open === Oi && u !== null ? (u.value & Be.Open) === Be.Open : r.open), g = S(null), f = L(() => zr(g));
|
|
2479
2475
|
if (n({ el: g, $el: g }), !(r.open !== Oi || u !== null)) throw new Error("You forgot to provide an `open` prop to the `Dialog`.");
|
|
2480
2476
|
if (typeof m.value != "boolean") throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${m.value === Oi ? void 0 : r.open}`);
|
|
2481
|
-
let b = L(() => l.value && m.value ? 0 : 1), w = L(() => b.value === 0), C = L(() => p.value > 1), E =
|
|
2477
|
+
let b = L(() => l.value && m.value ? 0 : 1), w = L(() => b.value === 0), C = L(() => p.value > 1), E = Fe(dl, null) !== null, [y, P] = _f(), { resolveContainers: x, mainTreeNodeRef: v, MainTreeNode: F } = Bf({ portals: y, defaultContainers: [L(() => {
|
|
2482
2478
|
var re;
|
|
2483
2479
|
return (re = le.panelRef.value) != null ? re : g.value;
|
|
2484
2480
|
})] }), _ = L(() => C.value ? "parent" : "leaf"), B = L(() => u !== null ? (u.value & Be.Closing) === Be.Closing : !1), T = L(() => E || B.value ? !1 : w.value), j = L(() => {
|
|
@@ -2524,7 +2520,7 @@ let Oi = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", ri = ue({ name: "Dialog", inher
|
|
|
2524
2520
|
De.observe(ce), re(() => De.disconnect());
|
|
2525
2521
|
}), () => {
|
|
2526
2522
|
let { open: re, initialFocus: ce, ...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 };
|
|
2527
|
-
return Ce(il, { force: !0 }, () => [Ce(
|
|
2523
|
+
return Ce(il, { force: !0 }, () => [Ce(zu, () => Ce(Ff, { target: g.value }, () => Ce(il, { force: !1 }, () => Ce(ln, { initialFocus: ce, containers: x, features: w.value ? _e(_.value, { parent: ln.features.RestoreFocus, leaf: ln.features.All & ~ln.features.FocusLock }) : ln.features.None }, () => Ce(P, {}, () => Pe({ ourProps: Ee, theirProps: { ...De, ...t }, slot: st, attrs: t, slots: o, visible: b.value === 0, features: _r.RenderStrategy | _r.Static, name: "Dialog" })))))), Ce(F)]);
|
|
2528
2524
|
};
|
|
2529
2525
|
} }), od = ue({ name: "DialogOverlay", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: null } }, setup(r, { attrs: e, slots: t }) {
|
|
2530
2526
|
var o;
|
|
@@ -2544,7 +2540,7 @@ ue({ name: "DialogBackdrop", props: { as: { type: [Object, String], default: "di
|
|
|
2544
2540
|
if (s.panelRef.value === null) throw new Error("A <DialogBackdrop /> component is being used, but a <DialogPanel /> component is missing.");
|
|
2545
2541
|
}), () => {
|
|
2546
2542
|
let { ...l } = r, d = { id: i, ref: a, "aria-hidden": !0 };
|
|
2547
|
-
return Ce(il, { force: !0 }, () => Ce(
|
|
2543
|
+
return Ce(il, { force: !0 }, () => Ce(zu, () => Pe({ ourProps: d, theirProps: { ...e, ...l }, slot: { open: s.dialogState.value === 0 }, attrs: e, slots: t, name: "DialogBackdrop" })));
|
|
2548
2544
|
};
|
|
2549
2545
|
} });
|
|
2550
2546
|
let Hu = ue({ name: "DialogPanel", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: null } }, setup(r, { attrs: e, slots: t, expose: o }) {
|
|
@@ -2614,7 +2610,7 @@ function Uf(r) {
|
|
|
2614
2610
|
}
|
|
2615
2611
|
let Wu = Symbol("ListboxContext");
|
|
2616
2612
|
function oi(r) {
|
|
2617
|
-
let e =
|
|
2613
|
+
let e = Fe(Wu, null);
|
|
2618
2614
|
if (e === null) {
|
|
2619
2615
|
let t = new Error(`<${r} /> is missing a parent <Listbox /> component.`);
|
|
2620
2616
|
throw Error.captureStackTrace && Error.captureStackTrace(t, oi), t;
|
|
@@ -2639,7 +2635,7 @@ let ni = ue({ name: "Listbox", emits: { "update:modelValue": (r) => !0 }, props:
|
|
|
2639
2635
|
r.disabled || n.value !== 0 && (n.value = 0);
|
|
2640
2636
|
}, goToOption(E, y, P) {
|
|
2641
2637
|
if (r.disabled || n.value === 1) return;
|
|
2642
|
-
let x = u(), v = Pu(E === ye.Specific ? { focus: ye.Specific, id: y } : { focus: E }, { resolveItems: () => x.options, resolveActiveIndex: () => x.activeOptionIndex, resolveId: (
|
|
2638
|
+
let x = u(), v = Pu(E === ye.Specific ? { focus: ye.Specific, id: y } : { focus: E }, { resolveItems: () => x.options, resolveActiveIndex: () => x.activeOptionIndex, resolveId: (F) => F.id, resolveDisabled: (F) => F.dataRef.disabled });
|
|
2643
2639
|
d.value = "", c.value = v, p.value = P ?? 1, l.value = x.options;
|
|
2644
2640
|
}, search(E) {
|
|
2645
2641
|
if (r.disabled || n.value === 1) return;
|
|
@@ -2686,8 +2682,8 @@ let ni = ue({ name: "Listbox", emits: { "update:modelValue": (r) => !0 }, props:
|
|
|
2686
2682
|
};
|
|
2687
2683
|
}, { immediate: !0 });
|
|
2688
2684
|
}), () => {
|
|
2689
|
-
let { name: E, modelValue: y, disabled: P, form: x, ...v } = r,
|
|
2690
|
-
return Ce(we, [...E != null && b.value != null ? Bu({ [E]: b.value }).map(([_, B]) => Ce(ns, mf({ features: Nn.Hidden, key: _, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: x, disabled: P, name: _, value: B }))) : [], Pe({ ourProps: {}, theirProps: { ...t, ...td(v, ["defaultValue", "onUpdate:modelValue", "horizontal", "multiple", "by"]) }, slot:
|
|
2685
|
+
let { name: E, modelValue: y, disabled: P, form: x, ...v } = r, F = { open: n.value === 0, disabled: P, value: b.value };
|
|
2686
|
+
return Ce(we, [...E != null && b.value != null ? Bu({ [E]: b.value }).map(([_, B]) => Ce(ns, mf({ features: Nn.Hidden, key: _, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: x, disabled: P, name: _, value: B }))) : [], Pe({ ourProps: {}, theirProps: { ...t, ...td(v, ["defaultValue", "onUpdate:modelValue", "horizontal", "multiple", "by"]) }, slot: F, slots: e, attrs: t, name: "Listbox" })]);
|
|
2691
2687
|
};
|
|
2692
2688
|
} });
|
|
2693
2689
|
ue({ name: "ListboxLabel", props: { as: { type: [Object, String], default: "label" }, id: { type: String, default: null } }, setup(r, { attrs: e, slots: t }) {
|
|
@@ -2841,8 +2837,8 @@ let ii = ue({ name: "ListboxButton", props: { as: { type: [Object, String], defa
|
|
|
2841
2837
|
f.wasMoved(E) && (r.disabled || l.value && s.goToOption(ye.Nothing));
|
|
2842
2838
|
}
|
|
2843
2839
|
return () => {
|
|
2844
|
-
let { disabled: E } = r, y = { active: l.value, selected: d.value, disabled: E }, { value: P, disabled: x, ...v } = r,
|
|
2845
|
-
return Pe({ ourProps:
|
|
2840
|
+
let { disabled: E } = r, y = { active: l.value, selected: d.value, disabled: E }, { value: P, disabled: x, ...v } = r, F = { id: i, ref: a, role: "option", tabIndex: E === !0 ? void 0 : -1, "aria-disabled": E === !0 ? !0 : void 0, "aria-selected": d.value, disabled: void 0, onClick: m, onFocus: g, onPointerenter: b, onMouseenter: b, onPointermove: w, onMousemove: w, onPointerleave: C, onMouseleave: C };
|
|
2841
|
+
return Pe({ ourProps: F, theirProps: v, slot: y, attrs: t, slots: e, name: "ListboxOption" });
|
|
2846
2842
|
};
|
|
2847
2843
|
} });
|
|
2848
2844
|
var Kf = ((r) => (r[r.Open = 0] = "Open", r[r.Closed = 1] = "Closed", r))(Kf || {}), Gf = ((r) => (r[r.Pointer = 0] = "Pointer", r[r.Other = 1] = "Other", r))(Gf || {});
|
|
@@ -2851,7 +2847,7 @@ function Jf(r) {
|
|
|
2851
2847
|
}
|
|
2852
2848
|
let qu = Symbol("MenuContext");
|
|
2853
2849
|
function ta(r) {
|
|
2854
|
-
let e =
|
|
2850
|
+
let e = Fe(qu, null);
|
|
2855
2851
|
if (e === null) {
|
|
2856
2852
|
let t = new Error(`<${r} /> is missing a parent <Menu /> component.`);
|
|
2857
2853
|
throw Error.captureStackTrace && Error.captureStackTrace(t, ta), t;
|
|
@@ -3065,15 +3061,15 @@ function Kr(r = "") {
|
|
|
3065
3061
|
let id = Symbol("TransitionContext");
|
|
3066
3062
|
var t1 = ((r) => (r.Visible = "visible", r.Hidden = "hidden", r))(t1 || {});
|
|
3067
3063
|
function r1() {
|
|
3068
|
-
return
|
|
3064
|
+
return Fe(id, null) !== null;
|
|
3069
3065
|
}
|
|
3070
3066
|
function o1() {
|
|
3071
|
-
let r =
|
|
3067
|
+
let r = Fe(id, null);
|
|
3072
3068
|
if (r === null) throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");
|
|
3073
3069
|
return r;
|
|
3074
3070
|
}
|
|
3075
3071
|
function n1() {
|
|
3076
|
-
let r =
|
|
3072
|
+
let r = Fe(sd, null);
|
|
3077
3073
|
if (r === null) throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");
|
|
3078
3074
|
return r;
|
|
3079
3075
|
}
|
|
@@ -3130,7 +3126,7 @@ let Ku = _r.RenderStrategy, mr = ue({ props: { as: { type: [Object, String], def
|
|
|
3130
3126
|
_e(b.value, { hidden: () => f(C), visible: () => g(C) });
|
|
3131
3127
|
}
|
|
3132
3128
|
});
|
|
3133
|
-
let P = Kr(r.enter), x = Kr(r.enterFrom), v = Kr(r.enterTo),
|
|
3129
|
+
let P = Kr(r.enter), x = Kr(r.enterFrom), v = Kr(r.enterTo), F = Kr(r.entered), _ = Kr(r.leave), B = Kr(r.leaveFrom), T = Kr(r.leaveTo);
|
|
3134
3130
|
ke(() => {
|
|
3135
3131
|
nt(() => {
|
|
3136
3132
|
if (b.value === "visible") {
|
|
@@ -3141,9 +3137,9 @@ let Ku = _r.RenderStrategy, mr = ue({ props: { as: { type: [Object, String], def
|
|
|
3141
3137
|
});
|
|
3142
3138
|
function j(q) {
|
|
3143
3139
|
let oe = w.value && !m.value, Q = U(c);
|
|
3144
|
-
!Q || !(Q instanceof HTMLElement) || oe || (E.value = !0, u.value && s(), u.value || l(), q(u.value ? gc(Q, P, x, v,
|
|
3140
|
+
!Q || !(Q instanceof HTMLElement) || oe || (E.value = !0, u.value && s(), u.value || l(), q(u.value ? gc(Q, P, x, v, F, (Z) => {
|
|
3145
3141
|
E.value = !1, Z === cl.Finished && a();
|
|
3146
|
-
}) : gc(Q, _, B, T,
|
|
3142
|
+
}) : gc(Q, _, B, T, F, (Z) => {
|
|
3147
3143
|
E.value = !1, Z === cl.Finished && (ra(y) || (b.value = "hidden", f(C), d()));
|
|
3148
3144
|
})));
|
|
3149
3145
|
}
|
|
@@ -4105,7 +4101,7 @@ function N1(r, e, t) {
|
|
|
4105
4101
|
const d = jg();
|
|
4106
4102
|
if (a = // in test mode, ignore the argument provided as we can always retrieve a
|
|
4107
4103
|
// pinia instance with getActivePinia()
|
|
4108
|
-
(process.env.NODE_ENV === "test" && hn && hn._testing ? null : a) || (d ?
|
|
4104
|
+
(process.env.NODE_ENV === "test" && hn && hn._testing ? null : a) || (d ? Fe(Yu, null) : null), a && In(a), process.env.NODE_ENV !== "production" && !hn)
|
|
4109
4105
|
throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
|
|
4110
4106
|
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
4111
4107
|
This will fail in production.`);
|
|
@@ -4492,10 +4488,10 @@ const I1 = /* @__PURE__ */ N1("pageBuilderState", {
|
|
|
4492
4488
|
this.isLoading = r;
|
|
4493
4489
|
}
|
|
4494
4490
|
}
|
|
4495
|
-
}), am = B1(), Le = I1(am), R1 = { class: "font-sans flex items-end justify-center pb-20 text-center sm:block sm:p-0 bg-white" }, $1 = { class: "bg-red-100 inline-block align-bottom text-left transform transition-all sm:align-middle w-full overflow-hidden h-[100vh] top-0 left-0 right-0 absolute" }, _1 = { class: "px-4 lg:h-[10vh] h-[16vh] flex items-center justify-between border-b border-gray-200 bg-white" },
|
|
4491
|
+
}), am = B1(), Le = I1(am), R1 = { class: "font-sans flex items-end justify-center pb-20 text-center sm:block sm:p-0 bg-white" }, $1 = { class: "bg-red-100 inline-block align-bottom text-left transform transition-all sm:align-middle w-full overflow-hidden h-[100vh] top-0 left-0 right-0 absolute" }, _1 = { class: "px-4 lg:h-[10vh] h-[16vh] flex items-center justify-between border-b border-gray-200 bg-white" }, F1 = {
|
|
4496
4492
|
key: 0,
|
|
4497
4493
|
class: "flex items-center divide-x divide-gray-200"
|
|
4498
|
-
},
|
|
4494
|
+
}, z1 = { class: "pr-4" }, j1 = ["src"], H1 = { key: 1 }, lm = {
|
|
4499
4495
|
__name: "PageBuilderPreviewModal",
|
|
4500
4496
|
props: {
|
|
4501
4497
|
show: {
|
|
@@ -4556,8 +4552,8 @@ const I1 = /* @__PURE__ */ N1("pageBuilderState", {
|
|
|
4556
4552
|
default: $(() => [
|
|
4557
4553
|
h("div", $1, [
|
|
4558
4554
|
h("div", _1, [
|
|
4559
|
-
s.value && s.value.pageBuilderLogo && s.value.pageBuilderLogo.src ? (k(), M("div",
|
|
4560
|
-
h("div",
|
|
4555
|
+
s.value && s.value.pageBuilderLogo && s.value.pageBuilderLogo.src ? (k(), M("div", F1, [
|
|
4556
|
+
h("div", z1, [
|
|
4561
4557
|
h("img", {
|
|
4562
4558
|
class: "h-6",
|
|
4563
4559
|
src: s.value.pageBuilderLogo.src,
|
|
@@ -4821,7 +4817,7 @@ const I1 = /* @__PURE__ */ N1("pageBuilderState", {
|
|
|
4821
4817
|
r.type === "danger" ? (k(), M("div", t0, a[3] || (a[3] = [
|
|
4822
4818
|
h("span", { class: "material-symbols-outlined" }, " warning ", -1)
|
|
4823
4819
|
]))) : D("", !0),
|
|
4824
|
-
h("h3", r0,
|
|
4820
|
+
h("h3", r0, z(r.title), 1)
|
|
4825
4821
|
])
|
|
4826
4822
|
]),
|
|
4827
4823
|
h("div", {
|
|
@@ -4858,7 +4854,7 @@ const I1 = /* @__PURE__ */ N1("pageBuilderState", {
|
|
|
4858
4854
|
class: "mySecondaryButton",
|
|
4859
4855
|
type: "button",
|
|
4860
4856
|
onClick: o
|
|
4861
|
-
},
|
|
4857
|
+
}, z(r.firstButtonText), 513)) : D("", !0),
|
|
4862
4858
|
r.secondButtonText ? (k(), M("div", i0, [
|
|
4863
4859
|
r.disabled && r.disabledWhichButton === "secondButtonBuilder" ? (k(), M("div", s0, [
|
|
4864
4860
|
h("button", {
|
|
@@ -4907,7 +4903,7 @@ const I1 = /* @__PURE__ */ N1("pageBuilderState", {
|
|
|
4907
4903
|
class: "myPrimaryButton bg-yellow-300 hover:bg-yellow-400 text-myPrimaryDarkGrayColor hover:text-myPrimaryDarkGrayColor focus:ring-yellow-400 w-full",
|
|
4908
4904
|
type: "button",
|
|
4909
4905
|
onClick: n
|
|
4910
|
-
},
|
|
4906
|
+
}, z(r.secondButtonText), 1)
|
|
4911
4907
|
])) : D("", !0)
|
|
4912
4908
|
])) : D("", !0),
|
|
4913
4909
|
r.thirdButtonText ? (k(), M("div", d0, [
|
|
@@ -4958,7 +4954,7 @@ const I1 = /* @__PURE__ */ N1("pageBuilderState", {
|
|
|
4958
4954
|
class: "myPrimaryButton bg-myPrimaryLinkColor focus-visible:ring-myPrimaryLinkColor focus:ring-myPrimaryLinkColor hover:bg-myPrimaryLinkColor w-full",
|
|
4959
4955
|
type: "button",
|
|
4960
4956
|
onClick: i
|
|
4961
|
-
},
|
|
4957
|
+
}, z(r.thirdButtonText), 1)
|
|
4962
4958
|
])) : D("", !0)
|
|
4963
4959
|
])) : D("", !0),
|
|
4964
4960
|
r.type === "success" ? (k(), M("div", h0, [
|
|
@@ -5008,7 +5004,7 @@ const I1 = /* @__PURE__ */ N1("pageBuilderState", {
|
|
|
5008
5004
|
class: "myPrimaryButton bg-myPrimaryLinkColor focus-visible:ring-myPrimaryLinkColor focus:ring-myPrimaryLinkColor hover:bg-myPrimaryLinkColor w-full",
|
|
5009
5005
|
type: "button",
|
|
5010
5006
|
onClick: i
|
|
5011
|
-
},
|
|
5007
|
+
}, z(r.thirdButtonText), 1)
|
|
5012
5008
|
])) : D("", !0)
|
|
5013
5009
|
])) : D("", !0),
|
|
5014
5010
|
r.type === "warning" ? (k(), M("div", y0, [
|
|
@@ -5058,7 +5054,7 @@ const I1 = /* @__PURE__ */ N1("pageBuilderState", {
|
|
|
5058
5054
|
class: "flex items-center gap-2 myPrimaryButton bg-myPrimaryErrorColor hover:bg-red-600 text-white focus:ring-myPrimaryErrorColor w-full",
|
|
5059
5055
|
type: "button",
|
|
5060
5056
|
onClick: i
|
|
5061
|
-
},
|
|
5057
|
+
}, z(r.thirdButtonText), 1)
|
|
5062
5058
|
])) : D("", !0)
|
|
5063
5059
|
])) : D("", !0),
|
|
5064
5060
|
r.type === "danger" || r.type === "delete" ? (k(), M("div", k0, [
|
|
@@ -5108,7 +5104,7 @@ const I1 = /* @__PURE__ */ N1("pageBuilderState", {
|
|
|
5108
5104
|
class: "flex items-center gap-2 myPrimaryButton bg-myPrimaryErrorColor hover:bg-red-600 text-white focus:ring-myPrimaryErrorColor w-full",
|
|
5109
5105
|
type: "button",
|
|
5110
5106
|
onClick: i
|
|
5111
|
-
},
|
|
5107
|
+
}, z(r.thirdButtonText), 1)
|
|
5112
5108
|
])) : D("", !0)
|
|
5113
5109
|
])) : D("", !0)
|
|
5114
5110
|
])) : D("", !0)
|
|
@@ -6601,7 +6597,7 @@ class uo {
|
|
|
6601
6597
|
return uo.empty;
|
|
6602
6598
|
let n = wm(o);
|
|
6603
6599
|
o.next && o.err("Unexpected trailing text");
|
|
6604
|
-
let i = j0(
|
|
6600
|
+
let i = j0(z0(n));
|
|
6605
6601
|
return H0(i, o), i;
|
|
6606
6602
|
}
|
|
6607
6603
|
/**
|
|
@@ -6777,7 +6773,7 @@ function I0(r) {
|
|
|
6777
6773
|
return e.length == 1 ? e[0] : { type: "seq", exprs: e };
|
|
6778
6774
|
}
|
|
6779
6775
|
function R0(r) {
|
|
6780
|
-
let e =
|
|
6776
|
+
let e = F0(r);
|
|
6781
6777
|
for (; ; )
|
|
6782
6778
|
if (r.eat("+"))
|
|
6783
6779
|
e = { type: "plus", expr: e };
|
|
@@ -6811,7 +6807,7 @@ function _0(r, e) {
|
|
|
6811
6807
|
}
|
|
6812
6808
|
return n.length == 0 && r.err("No node type or group '" + e + "' found"), n;
|
|
6813
6809
|
}
|
|
6814
|
-
function
|
|
6810
|
+
function F0(r) {
|
|
6815
6811
|
if (r.eat("(")) {
|
|
6816
6812
|
let e = wm(r);
|
|
6817
6813
|
return r.eat(")") || r.err("Missing closing paren"), e;
|
|
@@ -6822,7 +6818,7 @@ function z0(r) {
|
|
|
6822
6818
|
return r.pos++, e.length == 1 ? e[0] : { type: "choice", exprs: e };
|
|
6823
6819
|
}
|
|
6824
6820
|
}
|
|
6825
|
-
function
|
|
6821
|
+
function z0(r) {
|
|
6826
6822
|
let e = [[]];
|
|
6827
6823
|
return n(i(r, 0), t()), e;
|
|
6828
6824
|
function t() {
|
|
@@ -8143,7 +8139,7 @@ class wt {
|
|
|
8143
8139
|
}
|
|
8144
8140
|
}
|
|
8145
8141
|
wt.empty = new wt([]);
|
|
8146
|
-
class
|
|
8142
|
+
class Fn {
|
|
8147
8143
|
/**
|
|
8148
8144
|
Create a new mapping with the given position maps.
|
|
8149
8145
|
*/
|
|
@@ -8160,7 +8156,7 @@ class zn {
|
|
|
8160
8156
|
Create a mapping that maps only through a part of this one.
|
|
8161
8157
|
*/
|
|
8162
8158
|
slice(e = 0, t = this.maps.length) {
|
|
8163
|
-
return new
|
|
8159
|
+
return new Fn(this._maps, this.mirror, e, t);
|
|
8164
8160
|
}
|
|
8165
8161
|
/**
|
|
8166
8162
|
Add a step map to the end of this mapping. If `mirrors` is
|
|
@@ -8211,7 +8207,7 @@ class zn {
|
|
|
8211
8207
|
Create an inverted version of this mapping.
|
|
8212
8208
|
*/
|
|
8213
8209
|
invert() {
|
|
8214
|
-
let e = new
|
|
8210
|
+
let e = new Fn();
|
|
8215
8211
|
return e.appendMappingInverted(this), e;
|
|
8216
8212
|
}
|
|
8217
8213
|
/**
|
|
@@ -9008,7 +9004,7 @@ class hb {
|
|
|
9008
9004
|
let f = a.child(d), b = p.matchType(f.type);
|
|
9009
9005
|
if (!b)
|
|
9010
9006
|
break;
|
|
9011
|
-
d++, (d > 1 || l == 0 || f.content.size) && (p = b, c.push(
|
|
9007
|
+
d++, (d > 1 || l == 0 || f.content.size) && (p = b, c.push(Fm(f.mark(u.allowedMarks(f.marks)), d == 1 ? l : 0, d == a.childCount ? m : -1)));
|
|
9012
9008
|
}
|
|
9013
9009
|
let g = d == a.childCount;
|
|
9014
9010
|
g || (m = -1), this.placed = fn(this.placed, t, N.from(c)), this.frontier[t].match = p, g && m < 0 && o && o.type == this.frontier[this.depth].type && this.frontier.length > 1 && this.closeFrontierNode();
|
|
@@ -9075,11 +9071,11 @@ function Ba(r, e) {
|
|
|
9075
9071
|
r = r.firstChild.content;
|
|
9076
9072
|
return r;
|
|
9077
9073
|
}
|
|
9078
|
-
function
|
|
9074
|
+
function Fm(r, e, t) {
|
|
9079
9075
|
if (e <= 0)
|
|
9080
9076
|
return r;
|
|
9081
9077
|
let o = r.content;
|
|
9082
|
-
return e > 1 && (o = o.replaceChild(0,
|
|
9078
|
+
return e > 1 && (o = o.replaceChild(0, Fm(o.firstChild, e - 1, o.childCount == 1 ? t - 1 : 0))), e > 0 && (o = r.type.contentMatch.fillBefore(o).append(o), t <= 0 && (o = o.append(r.type.contentMatch.matchFragment(o).fillBefore(N.empty, !0)))), r.copy(o);
|
|
9083
9079
|
}
|
|
9084
9080
|
function Aa(r, e, t, o, n) {
|
|
9085
9081
|
let i = r.node(e), s = n ? r.indexAfter(e) : r.index(e);
|
|
@@ -9135,7 +9131,7 @@ function bb(r, e, t, o) {
|
|
|
9135
9131
|
b < 0 && (w = !1, b = -b);
|
|
9136
9132
|
let C = n.node(b - 1), E = n.index(b - 1);
|
|
9137
9133
|
if (C.canReplaceWith(E, E, g.type, g.marks))
|
|
9138
|
-
return r.replace(n.before(b), w ? i.after(b) : t, new H(
|
|
9134
|
+
return r.replace(n.before(b), w ? i.after(b) : t, new H(zm(o.content, 0, o.openStart, m), m, o.openEnd));
|
|
9139
9135
|
}
|
|
9140
9136
|
}
|
|
9141
9137
|
let p = r.steps.length;
|
|
@@ -9144,10 +9140,10 @@ function bb(r, e, t, o) {
|
|
|
9144
9140
|
m < 0 || (e = n.before(m), t = i.after(m));
|
|
9145
9141
|
}
|
|
9146
9142
|
}
|
|
9147
|
-
function
|
|
9143
|
+
function zm(r, e, t, o, n) {
|
|
9148
9144
|
if (e < t) {
|
|
9149
9145
|
let i = r.firstChild;
|
|
9150
|
-
r = r.replaceChild(0, i.copy(
|
|
9146
|
+
r = r.replaceChild(0, i.copy(zm(i.content, e + 1, t, o, i)));
|
|
9151
9147
|
}
|
|
9152
9148
|
if (e > o) {
|
|
9153
9149
|
let i = n.contentMatchAt(0), s = i.fillBefore(r).append(r);
|
|
@@ -9224,7 +9220,7 @@ class _o extends it {
|
|
|
9224
9220
|
}
|
|
9225
9221
|
}
|
|
9226
9222
|
it.jsonID("attr", _o);
|
|
9227
|
-
class
|
|
9223
|
+
class zn extends it {
|
|
9228
9224
|
/**
|
|
9229
9225
|
Construct an attribute step.
|
|
9230
9226
|
*/
|
|
@@ -9243,7 +9239,7 @@ class Fn extends it {
|
|
|
9243
9239
|
return wt.empty;
|
|
9244
9240
|
}
|
|
9245
9241
|
invert(e) {
|
|
9246
|
-
return new
|
|
9242
|
+
return new zn(this.attr, e.attrs[this.attr]);
|
|
9247
9243
|
}
|
|
9248
9244
|
map(e) {
|
|
9249
9245
|
return this;
|
|
@@ -9254,25 +9250,25 @@ class Fn extends it {
|
|
|
9254
9250
|
static fromJSON(e, t) {
|
|
9255
9251
|
if (typeof t.attr != "string")
|
|
9256
9252
|
throw new RangeError("Invalid input for DocAttrStep.fromJSON");
|
|
9257
|
-
return new
|
|
9253
|
+
return new zn(t.attr, t.value);
|
|
9258
9254
|
}
|
|
9259
9255
|
}
|
|
9260
|
-
it.jsonID("docAttr",
|
|
9261
|
-
let
|
|
9256
|
+
it.jsonID("docAttr", zn);
|
|
9257
|
+
let zo = class extends Error {
|
|
9262
9258
|
};
|
|
9263
|
-
|
|
9259
|
+
zo = function r(e) {
|
|
9264
9260
|
let t = Error.call(this, e);
|
|
9265
9261
|
return t.__proto__ = r.prototype, t;
|
|
9266
9262
|
};
|
|
9267
|
-
|
|
9268
|
-
|
|
9269
|
-
|
|
9263
|
+
zo.prototype = Object.create(Error.prototype);
|
|
9264
|
+
zo.prototype.constructor = zo;
|
|
9265
|
+
zo.prototype.name = "TransformError";
|
|
9270
9266
|
class Hm {
|
|
9271
9267
|
/**
|
|
9272
9268
|
Create a transform that starts with the given document.
|
|
9273
9269
|
*/
|
|
9274
9270
|
constructor(e) {
|
|
9275
|
-
this.doc = e, this.steps = [], this.docs = [], this.mapping = new
|
|
9271
|
+
this.doc = e, this.steps = [], this.docs = [], this.mapping = new Fn();
|
|
9276
9272
|
}
|
|
9277
9273
|
/**
|
|
9278
9274
|
The starting document.
|
|
@@ -9287,7 +9283,7 @@ class Hm {
|
|
|
9287
9283
|
step(e) {
|
|
9288
9284
|
let t = this.maybeStep(e);
|
|
9289
9285
|
if (t.failed)
|
|
9290
|
-
throw new
|
|
9286
|
+
throw new zo(t.failed);
|
|
9291
9287
|
return this;
|
|
9292
9288
|
}
|
|
9293
9289
|
/**
|
|
@@ -9430,7 +9426,7 @@ class Hm {
|
|
|
9430
9426
|
Set a single attribute on the document to a new value.
|
|
9431
9427
|
*/
|
|
9432
9428
|
setDocAttribute(e, t) {
|
|
9433
|
-
return this.step(new
|
|
9429
|
+
return this.step(new zn(e, t)), this;
|
|
9434
9430
|
}
|
|
9435
9431
|
/**
|
|
9436
9432
|
Add a mark to the node at position `pos`.
|
|
@@ -9887,7 +9883,7 @@ function $c(r, e, t) {
|
|
|
9887
9883
|
s == null && (s = c);
|
|
9888
9884
|
}), r.setSelection(X.near(r.doc.resolve(s), t));
|
|
9889
9885
|
}
|
|
9890
|
-
const _c = 1,
|
|
9886
|
+
const _c = 1, Fc = 2, zc = 4;
|
|
9891
9887
|
class kb extends Hm {
|
|
9892
9888
|
/**
|
|
9893
9889
|
@internal
|
|
@@ -9923,7 +9919,7 @@ class kb extends Hm {
|
|
|
9923
9919
|
Set the current stored marks.
|
|
9924
9920
|
*/
|
|
9925
9921
|
setStoredMarks(e) {
|
|
9926
|
-
return this.storedMarks = e, this.updated |=
|
|
9922
|
+
return this.storedMarks = e, this.updated |= Fc, this;
|
|
9927
9923
|
}
|
|
9928
9924
|
/**
|
|
9929
9925
|
Make sure the current stored marks or, if that is null, the marks
|
|
@@ -9949,7 +9945,7 @@ class kb extends Hm {
|
|
|
9949
9945
|
Whether the stored marks were explicitly set for this transaction.
|
|
9950
9946
|
*/
|
|
9951
9947
|
get storedMarksSet() {
|
|
9952
|
-
return (this.updated &
|
|
9948
|
+
return (this.updated & Fc) > 0;
|
|
9953
9949
|
}
|
|
9954
9950
|
/**
|
|
9955
9951
|
@internal
|
|
@@ -10030,13 +10026,13 @@ class kb extends Hm {
|
|
|
10030
10026
|
when updated to the state produced by this transaction.
|
|
10031
10027
|
*/
|
|
10032
10028
|
scrollIntoView() {
|
|
10033
|
-
return this.updated |=
|
|
10029
|
+
return this.updated |= zc, this;
|
|
10034
10030
|
}
|
|
10035
10031
|
/**
|
|
10036
10032
|
True when this transaction has had `scrollIntoView` called on it.
|
|
10037
10033
|
*/
|
|
10038
10034
|
get scrolledIntoView() {
|
|
10039
|
-
return (this.updated &
|
|
10035
|
+
return (this.updated & zc) > 0;
|
|
10040
10036
|
}
|
|
10041
10037
|
}
|
|
10042
10038
|
function jc(r, e) {
|
|
@@ -10262,7 +10258,7 @@ function Vm(r, e, t) {
|
|
|
10262
10258
|
}
|
|
10263
10259
|
return t;
|
|
10264
10260
|
}
|
|
10265
|
-
class
|
|
10261
|
+
class ze {
|
|
10266
10262
|
/**
|
|
10267
10263
|
Create a plugin.
|
|
10268
10264
|
*/
|
|
@@ -10409,8 +10405,8 @@ function Bb(r, e, t) {
|
|
|
10409
10405
|
return { node: o.startContainer, offset: Math.min(Pt(o.startContainer), o.startOffset) };
|
|
10410
10406
|
}
|
|
10411
10407
|
}
|
|
10412
|
-
const Qt = typeof navigator < "u" ? navigator : null, Vc = typeof document < "u" ? document : null, Hr = Qt && Qt.userAgent || "", kl = /Edge\/(\d+)/.exec(Hr), qm = /MSIE \d/.exec(Hr), Sl = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Hr), gt = !!(qm || Sl || kl), Ir = qm ? document.documentMode : Sl ? +Sl[1] : kl ? +kl[1] : 0,
|
|
10413
|
-
|
|
10408
|
+
const Qt = typeof navigator < "u" ? navigator : null, Vc = typeof document < "u" ? document : null, Hr = Qt && Qt.userAgent || "", kl = /Edge\/(\d+)/.exec(Hr), qm = /MSIE \d/.exec(Hr), Sl = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Hr), gt = !!(qm || Sl || kl), Ir = qm ? document.documentMode : Sl ? +Sl[1] : kl ? +kl[1] : 0, Ft = !gt && /gecko\/(\d+)/i.test(Hr);
|
|
10409
|
+
Ft && +(/Firefox\/(\d+)/.exec(Hr) || [0, 0])[1];
|
|
10414
10410
|
const Cl = !gt && /Chrome\/(\d+)/.exec(Hr), ot = !!Cl, Um = Cl ? +Cl[1] : 0, dt = !gt && !!Qt && /Apple Computer/.test(Qt.vendor), Ho = dt && (/Mobile\/\w+/.test(Hr) || !!Qt && Qt.maxTouchPoints > 2), Ot = Ho || (Qt ? /Mac/.test(Qt.platform) : !1), Ab = Qt ? /Win/.test(Qt.platform) : !1, dr = /Android \d/.test(Hr), di = !!Vc && "webkitFontSmoothing" in Vc.documentElement.style, Lb = di ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
|
|
10415
10411
|
function Db(r) {
|
|
10416
10412
|
let e = r.defaultView && r.defaultView.visualViewport;
|
|
@@ -10545,11 +10541,11 @@ function _b(r, e) {
|
|
|
10545
10541
|
function md(r, e) {
|
|
10546
10542
|
return r.left >= e.left - 1 && r.left <= e.right + 1 && r.top >= e.top - 1 && r.top <= e.bottom + 1;
|
|
10547
10543
|
}
|
|
10548
|
-
function
|
|
10544
|
+
function Fb(r, e) {
|
|
10549
10545
|
let t = r.parentNode;
|
|
10550
10546
|
return t && /^li$/i.test(t.nodeName) && e.left < r.getBoundingClientRect().left ? t : r;
|
|
10551
10547
|
}
|
|
10552
|
-
function
|
|
10548
|
+
function zb(r, e, t) {
|
|
10553
10549
|
let { node: o, offset: n } = Jm(e, t), i = -1;
|
|
10554
10550
|
if (o.nodeType == 1 && !o.firstChild) {
|
|
10555
10551
|
let s = o.getBoundingClientRect();
|
|
@@ -10600,15 +10596,15 @@ function Hb(r, e) {
|
|
|
10600
10596
|
if (dt)
|
|
10601
10597
|
for (let d = s; o && d; d = jo(d))
|
|
10602
10598
|
d.draggable && (o = void 0);
|
|
10603
|
-
if (s =
|
|
10604
|
-
if (
|
|
10599
|
+
if (s = Fb(s, e), o) {
|
|
10600
|
+
if (Ft && o.nodeType == 1 && (n = Math.min(n, o.childNodes.length), n < o.childNodes.length)) {
|
|
10605
10601
|
let c = o.childNodes[n], p;
|
|
10606
10602
|
c.nodeName == "IMG" && (p = c.getBoundingClientRect()).right <= e.left && p.bottom > e.top && n++;
|
|
10607
10603
|
}
|
|
10608
10604
|
let d;
|
|
10609
10605
|
di && n && o.nodeType == 1 && (d = o.childNodes[n - 1]).nodeType == 1 && d.contentEditable == "false" && d.getBoundingClientRect().top >= e.top && n--, o == r.dom && n == o.childNodes.length - 1 && o.lastChild.nodeType == 1 && e.top > o.lastChild.getBoundingClientRect().bottom ? a = r.state.doc.content.size : (n == 0 || o.nodeType != 1 || o.childNodes[n - 1].nodeName != "BR") && (a = jb(r, o, n, e));
|
|
10610
10606
|
}
|
|
10611
|
-
a == null && (a =
|
|
10607
|
+
a == null && (a = zb(r, s, e));
|
|
10612
10608
|
let l = r.docView.nearestDesc(s, !0);
|
|
10613
10609
|
return { pos: a, inside: l ? l.posAtStart - l.border : -1 };
|
|
10614
10610
|
}
|
|
@@ -10626,11 +10622,11 @@ function wr(r, e) {
|
|
|
10626
10622
|
}
|
|
10627
10623
|
const Vb = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;
|
|
10628
10624
|
function Qm(r, e, t) {
|
|
10629
|
-
let { node: o, offset: n, atom: i } = r.docView.domFromPos(e, t < 0 ? -1 : 1), s = di ||
|
|
10625
|
+
let { node: o, offset: n, atom: i } = r.docView.domFromPos(e, t < 0 ? -1 : 1), s = di || Ft;
|
|
10630
10626
|
if (o.nodeType == 3)
|
|
10631
10627
|
if (s && (Vb.test(o.nodeValue) || (t < 0 ? !n : n == o.nodeValue.length))) {
|
|
10632
10628
|
let l = wr(ar(o, n, n), t);
|
|
10633
|
-
if (
|
|
10629
|
+
if (Ft && n && /\s/.test(o.nodeValue[n - 1]) && n < o.nodeValue.length) {
|
|
10634
10630
|
let d = wr(ar(o, n - 1, n - 1), -1);
|
|
10635
10631
|
if (d.top == l.top) {
|
|
10636
10632
|
let c = wr(ar(o, n, n + 1), -1);
|
|
@@ -11005,7 +11001,7 @@ class ci {
|
|
|
11005
11001
|
g = b;
|
|
11006
11002
|
}
|
|
11007
11003
|
let a = this.domFromPos(e, e ? -1 : 1), l = t == e ? a : this.domFromPos(t, t ? -1 : 1), d = o.root.getSelection(), c = o.domSelectionRange(), p = !1;
|
|
11008
|
-
if ((
|
|
11004
|
+
if ((Ft || dt) && e == t) {
|
|
11009
11005
|
let { node: m, offset: g } = a;
|
|
11010
11006
|
if (m.nodeType == 3) {
|
|
11011
11007
|
if (p = !!(g && m.nodeValue[g - 1] == `
|
|
@@ -11024,7 +11020,7 @@ class ci {
|
|
|
11024
11020
|
p = f && (f.nodeName == "BR" || f.contentEditable == "false");
|
|
11025
11021
|
}
|
|
11026
11022
|
}
|
|
11027
|
-
if (
|
|
11023
|
+
if (Ft && c.focusNode && c.focusNode != l.node && c.focusNode.nodeType == 1) {
|
|
11028
11024
|
let m = c.focusNode.childNodes[c.focusOffset];
|
|
11029
11025
|
m && m.contentEditable == "false" && (n = !0);
|
|
11030
11026
|
}
|
|
@@ -11936,7 +11932,7 @@ function sy(r) {
|
|
|
11936
11932
|
if (!t)
|
|
11937
11933
|
return;
|
|
11938
11934
|
let n, i, s = !1;
|
|
11939
|
-
for (
|
|
11935
|
+
for (Ft && t.nodeType == 1 && o < us(t) && Sn(t.childNodes[o], -1) && (s = !0); ; )
|
|
11940
11936
|
if (o > 0) {
|
|
11941
11937
|
if (t.nodeType != 1)
|
|
11942
11938
|
break;
|
|
@@ -12416,7 +12412,7 @@ function yd(r, e, t, o, n) {
|
|
|
12416
12412
|
return !0;
|
|
12417
12413
|
return !1;
|
|
12418
12414
|
}
|
|
12419
|
-
function
|
|
12415
|
+
function Fo(r, e, t) {
|
|
12420
12416
|
if (r.focused || r.focus(), r.state.selection.eq(e))
|
|
12421
12417
|
return;
|
|
12422
12418
|
let o = r.state.tr.setSelection(e);
|
|
@@ -12426,7 +12422,7 @@ function Ey(r, e) {
|
|
|
12426
12422
|
if (e == -1)
|
|
12427
12423
|
return !1;
|
|
12428
12424
|
let t = r.state.doc.resolve(e), o = t.nodeAfter;
|
|
12429
|
-
return o && o.isAtom && K.isSelectable(o) ? (
|
|
12425
|
+
return o && o.isAtom && K.isSelectable(o) ? (Fo(r, new K(t)), !0) : !1;
|
|
12430
12426
|
}
|
|
12431
12427
|
function Ty(r, e) {
|
|
12432
12428
|
if (e == -1)
|
|
@@ -12441,7 +12437,7 @@ function Ty(r, e) {
|
|
|
12441
12437
|
break;
|
|
12442
12438
|
}
|
|
12443
12439
|
}
|
|
12444
|
-
return n != null ? (
|
|
12440
|
+
return n != null ? (Fo(r, K.create(r.state.doc, n)), !0) : !1;
|
|
12445
12441
|
}
|
|
12446
12442
|
function Oy(r, e, t, o, n) {
|
|
12447
12443
|
return yd(r, "handleClickOn", e, t, o) || r.someProp("handleClick", (i) => i(r, e, o)) || (n ? Ty(r, t) : Ey(r, t));
|
|
@@ -12457,14 +12453,14 @@ function Ay(r, e, t) {
|
|
|
12457
12453
|
return !1;
|
|
12458
12454
|
let o = r.state.doc;
|
|
12459
12455
|
if (e == -1)
|
|
12460
|
-
return o.inlineContent ? (
|
|
12456
|
+
return o.inlineContent ? (Fo(r, J.create(o, 0, o.content.size)), !0) : !1;
|
|
12461
12457
|
let n = o.resolve(e);
|
|
12462
12458
|
for (let i = n.depth + 1; i > 0; i--) {
|
|
12463
12459
|
let s = i > n.depth ? n.nodeAfter : n.node(i), a = n.before(i);
|
|
12464
12460
|
if (s.inlineContent)
|
|
12465
|
-
|
|
12461
|
+
Fo(r, J.create(o, a + 1, a + 1 + s.content.size));
|
|
12466
12462
|
else if (K.isSelectable(s))
|
|
12467
|
-
|
|
12463
|
+
Fo(r, K.create(o, a));
|
|
12468
12464
|
else
|
|
12469
12465
|
continue;
|
|
12470
12466
|
return !0;
|
|
@@ -12499,7 +12495,7 @@ class Ly {
|
|
|
12499
12495
|
node: i,
|
|
12500
12496
|
pos: s,
|
|
12501
12497
|
addAttr: !!(this.target && !this.target.draggable),
|
|
12502
|
-
setUneditable: !!(this.target &&
|
|
12498
|
+
setUneditable: !!(this.target && Ft && !this.target.hasAttribute("contentEditable"))
|
|
12503
12499
|
}), this.target && this.mightDrag && (this.mightDrag.addAttr || this.mightDrag.setUneditable) && (this.view.domObserver.stop(), this.mightDrag.addAttr && (this.target.draggable = !0), this.mightDrag.setUneditable && setTimeout(() => {
|
|
12504
12500
|
this.view.input.mouseDown == this && this.target.setAttribute("contentEditable", "false");
|
|
12505
12501
|
}, 20), this.view.domObserver.start()), e.root.addEventListener("mouseup", this.up = this.up.bind(this)), e.root.addEventListener("mousemove", this.move = this.move.bind(this)), Lr(e, "pointer");
|
|
@@ -12519,7 +12515,7 @@ class Ly {
|
|
|
12519
12515
|
// (hidden) cursor is doesn't change the selection, and
|
|
12520
12516
|
// thus doesn't get a reaction from ProseMirror. This
|
|
12521
12517
|
// works around that.
|
|
12522
|
-
ot && !this.view.state.selection.visible && Math.min(Math.abs(t.pos - this.view.state.selection.from), Math.abs(t.pos - this.view.state.selection.to)) <= 2) ? (
|
|
12518
|
+
ot && !this.view.state.selection.visible && Math.min(Math.abs(t.pos - this.view.state.selection.from), Math.abs(t.pos - this.view.state.selection.to)) <= 2) ? (Fo(this.view, X.near(this.view.state.doc.resolve(t.pos))), e.preventDefault()) : Lr(this.view, "pointer");
|
|
12523
12519
|
}
|
|
12524
12520
|
move(e) {
|
|
12525
12521
|
this.updateAllowDefault(e), Lr(this.view, "pointer"), e.buttons == 0 && this.done();
|
|
@@ -12545,7 +12541,7 @@ pt.compositionstart = pt.compositionupdate = (r) => {
|
|
|
12545
12541
|
let { state: e } = r, t = e.selection.$to;
|
|
12546
12542
|
if (e.selection instanceof J && (e.storedMarks || !t.textOffset && t.parentOffset && t.nodeBefore.marks.some((o) => o.type.spec.inclusive === !1)))
|
|
12547
12543
|
r.markCursor = r.state.storedMarks || t.marks(), ms(r, !0), r.markCursor = null;
|
|
12548
|
-
else if (ms(r, !e.selection.empty),
|
|
12544
|
+
else if (ms(r, !e.selection.empty), Ft && e.selection.empty && t.parentOffset && !t.textOffset && t.nodeBefore.marks.length) {
|
|
12549
12545
|
let o = r.domSelectionRange();
|
|
12550
12546
|
for (let n = o.focusNode, i = o.focusOffset; n && n.nodeType == 1 && i != 0; ) {
|
|
12551
12547
|
let s = i < 0 ? n.lastChild : n.childNodes[i - 1];
|
|
@@ -12664,10 +12660,10 @@ class wh {
|
|
|
12664
12660
|
this.slice = e, this.move = t, this.node = o;
|
|
12665
12661
|
}
|
|
12666
12662
|
}
|
|
12667
|
-
const
|
|
12663
|
+
const Fy = Ot ? "altKey" : "ctrlKey";
|
|
12668
12664
|
function vh(r, e) {
|
|
12669
12665
|
let t = r.someProp("dragCopies", (o) => !o(e));
|
|
12670
|
-
return t ?? !e[
|
|
12666
|
+
return t ?? !e[Fy];
|
|
12671
12667
|
}
|
|
12672
12668
|
ct.dragstart = (r, e) => {
|
|
12673
12669
|
let t = e, o = r.input.mouseDown;
|
|
@@ -12949,7 +12945,7 @@ class $e {
|
|
|
12949
12945
|
let l = this.local[a].map(e, o, n);
|
|
12950
12946
|
l && l.type.valid(t, l) ? (s || (s = [])).push(l) : i.onRemove && i.onRemove(this.local[a].spec);
|
|
12951
12947
|
}
|
|
12952
|
-
return this.children.length ?
|
|
12948
|
+
return this.children.length ? zy(this.children, s || [], e, t, o, n, i) : s ? new $e(s.sort(ao), Ao) : et;
|
|
12953
12949
|
}
|
|
12954
12950
|
/**
|
|
12955
12951
|
Add the given array of decorations to the ones in the set,
|
|
@@ -13127,7 +13123,7 @@ class Sr {
|
|
|
13127
13123
|
this.members[t].forEachSet(e);
|
|
13128
13124
|
}
|
|
13129
13125
|
}
|
|
13130
|
-
function
|
|
13126
|
+
function zy(r, e, t, o, n, i, s) {
|
|
13131
13127
|
let a = r.slice();
|
|
13132
13128
|
for (let d = 0, c = i; d < t.maps.length; d++) {
|
|
13133
13129
|
let p = 0;
|
|
@@ -13376,7 +13372,7 @@ class qy {
|
|
|
13376
13372
|
let p = this.registerMutation(t[c], l);
|
|
13377
13373
|
p && (i = i < 0 ? p.from : Math.min(p.from, i), s = s < 0 ? p.to : Math.max(p.to, s), p.typeOver && (a = !0));
|
|
13378
13374
|
}
|
|
13379
|
-
if (
|
|
13375
|
+
if (Ft && l.length) {
|
|
13380
13376
|
let c = l.filter((p) => p.nodeName == "BR");
|
|
13381
13377
|
if (c.length == 2) {
|
|
13382
13378
|
let [p, u] = c;
|
|
@@ -13428,7 +13424,7 @@ class qy {
|
|
|
13428
13424
|
let pp = /* @__PURE__ */ new WeakMap(), up = !1;
|
|
13429
13425
|
function Uy(r) {
|
|
13430
13426
|
if (!pp.has(r) && (pp.set(r, null), ["normal", "nowrap", "pre-line"].indexOf(getComputedStyle(r.dom).whiteSpace) !== -1)) {
|
|
13431
|
-
if (r.requiresGeckoHackNode =
|
|
13427
|
+
if (r.requiresGeckoHackNode = Ft, up)
|
|
13432
13428
|
return;
|
|
13433
13429
|
console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."), up = !0;
|
|
13434
13430
|
}
|
|
@@ -13550,15 +13546,15 @@ function Xy(r, e, t, o, n) {
|
|
|
13550
13546
|
return _(r, Xr(13, "Enter"));
|
|
13551
13547
|
});
|
|
13552
13548
|
}, 20));
|
|
13553
|
-
let y = g.start, P = g.endA, x, v,
|
|
13549
|
+
let y = g.start, P = g.endA, x, v, F;
|
|
13554
13550
|
if (C) {
|
|
13555
13551
|
if (f.pos == b.pos)
|
|
13556
13552
|
gt && Ir <= 11 && f.parentOffset == 0 && (r.domObserver.suppressSelectionUpdates(), setTimeout(() => ur(r), 20)), x = r.state.tr.delete(y, P), v = c.resolve(g.start).marksAcross(c.resolve(g.endA));
|
|
13557
13553
|
else if (
|
|
13558
13554
|
// Adding or removing a mark
|
|
13559
|
-
g.endA == g.endB && (
|
|
13555
|
+
g.endA == g.endB && (F = Zy(f.parent.content.cut(f.parentOffset, b.parentOffset), w.parent.content.cut(w.parentOffset, g.endA - w.start())))
|
|
13560
13556
|
)
|
|
13561
|
-
x = r.state.tr,
|
|
13557
|
+
x = r.state.tr, F.type == "add" ? x.addMark(y, P, F.mark) : x.removeMark(y, P, F.mark);
|
|
13562
13558
|
else if (f.parent.child(f.index()).isText && f.index() == b.index() - (b.textOffset ? 0 : 1)) {
|
|
13563
13559
|
let _ = f.parent.textBetween(f.parentOffset, b.parentOffset);
|
|
13564
13560
|
if (r.someProp("handleTextInput", (B) => B(r, y, P, _)))
|
|
@@ -13597,7 +13593,7 @@ function ew(r, e, t, o, n) {
|
|
|
13597
13593
|
if (
|
|
13598
13594
|
// The content must have shrunk
|
|
13599
13595
|
t - e <= n.pos - o.pos || // newEnd must point directly at or after the end of the block that newStart points into
|
|
13600
|
-
|
|
13596
|
+
Fa(o, !0, !1) < n.pos
|
|
13601
13597
|
)
|
|
13602
13598
|
return !1;
|
|
13603
13599
|
let i = r.resolve(e);
|
|
@@ -13607,10 +13603,10 @@ function ew(r, e, t, o, n) {
|
|
|
13607
13603
|
}
|
|
13608
13604
|
if (i.parentOffset < i.parent.content.size || !i.parent.isTextblock)
|
|
13609
13605
|
return !1;
|
|
13610
|
-
let s = r.resolve(
|
|
13611
|
-
return !s.parent.isTextblock || s.pos > t ||
|
|
13606
|
+
let s = r.resolve(Fa(i, !0, !0));
|
|
13607
|
+
return !s.parent.isTextblock || s.pos > t || Fa(s, !0, !1) < t ? !1 : o.parent.content.cut(o.parentOffset).eq(s.parent.content);
|
|
13612
13608
|
}
|
|
13613
|
-
function
|
|
13609
|
+
function Fa(r, e, t) {
|
|
13614
13610
|
let o = r.depth, n = e ? r.end() : r.pos;
|
|
13615
13611
|
for (; o > 0 && (e || r.indexAfter(o) == r.node(o).childCount); )
|
|
13616
13612
|
o--, n++, e = !1;
|
|
@@ -14035,7 +14031,7 @@ function vp(r) {
|
|
|
14035
14031
|
if (r.spec.state || r.spec.filterTransaction || r.spec.appendTransaction)
|
|
14036
14032
|
throw new RangeError("Plugins passed directly to the view must not have a state component");
|
|
14037
14033
|
}
|
|
14038
|
-
var
|
|
14034
|
+
var Fr = {
|
|
14039
14035
|
8: "Backspace",
|
|
14040
14036
|
9: "Tab",
|
|
14041
14037
|
10: "Enter",
|
|
@@ -14114,13 +14110,13 @@ var zr = {
|
|
|
14114
14110
|
221: "}",
|
|
14115
14111
|
222: '"'
|
|
14116
14112
|
}, iw = typeof navigator < "u" && /Mac/.test(navigator.platform), sw = typeof navigator < "u" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);
|
|
14117
|
-
for (var Ye = 0; Ye < 10; Ye++)
|
|
14118
|
-
for (var Ye = 1; Ye <= 24; Ye++)
|
|
14113
|
+
for (var Ye = 0; Ye < 10; Ye++) Fr[48 + Ye] = Fr[96 + Ye] = String(Ye);
|
|
14114
|
+
for (var Ye = 1; Ye <= 24; Ye++) Fr[Ye + 111] = "F" + Ye;
|
|
14119
14115
|
for (var Ye = 65; Ye <= 90; Ye++)
|
|
14120
|
-
|
|
14121
|
-
for (var
|
|
14116
|
+
Fr[Ye] = String.fromCharCode(Ye + 32), fs[Ye] = String.fromCharCode(Ye);
|
|
14117
|
+
for (var za in Fr) fs.hasOwnProperty(za) || (fs[za] = Fr[za]);
|
|
14122
14118
|
function aw(r) {
|
|
14123
|
-
var e = iw && r.metaKey && r.shiftKey && !r.ctrlKey && !r.altKey || sw && r.shiftKey && r.key && r.key.length == 1 || r.key == "Unidentified", t = !e && r.key || (r.shiftKey ? fs :
|
|
14119
|
+
var e = iw && r.metaKey && r.shiftKey && !r.ctrlKey && !r.altKey || sw && r.shiftKey && r.key && r.key.length == 1 || r.key == "Unidentified", t = !e && r.key || (r.shiftKey ? fs : Fr)[r.keyCode] || r.key || "Unidentified";
|
|
14124
14120
|
return t == "Esc" && (t = "Escape"), t == "Del" && (t = "Delete"), t == "Left" && (t = "ArrowLeft"), t == "Up" && (t = "ArrowUp"), t == "Right" && (t = "ArrowRight"), t == "Down" && (t = "ArrowDown"), t;
|
|
14125
14121
|
}
|
|
14126
14122
|
const lw = typeof navigator < "u" && /Mac|iP(hone|[oa]d)/.test(navigator.platform), dw = typeof navigator < "u" && /Win/.test(navigator.platform);
|
|
@@ -14155,7 +14151,7 @@ function ja(r, e, t = !0) {
|
|
|
14155
14151
|
return e.altKey && (r = "Alt-" + r), e.ctrlKey && (r = "Ctrl-" + r), e.metaKey && (r = "Meta-" + r), t && e.shiftKey && (r = "Shift-" + r), r;
|
|
14156
14152
|
}
|
|
14157
14153
|
function uw(r) {
|
|
14158
|
-
return new
|
|
14154
|
+
return new ze({ props: { handleKeyDown: Ch(r) } });
|
|
14159
14155
|
}
|
|
14160
14156
|
function Ch(r) {
|
|
14161
14157
|
let e = pw(r);
|
|
@@ -14170,7 +14166,7 @@ function Ch(r) {
|
|
|
14170
14166
|
return !0;
|
|
14171
14167
|
}
|
|
14172
14168
|
if ((o.altKey || o.metaKey || o.ctrlKey) && // Ctrl-Alt may be used for AltGr on Windows
|
|
14173
|
-
!(dw && o.ctrlKey && o.altKey) && (i =
|
|
14169
|
+
!(dw && o.ctrlKey && o.altKey) && (i = Fr[o.keyCode]) && i != n) {
|
|
14174
14170
|
let a = e[ja(i, o)];
|
|
14175
14171
|
if (a && a(t.state, t.dispatch, t))
|
|
14176
14172
|
return !0;
|
|
@@ -15035,8 +15031,8 @@ function Ni(r) {
|
|
|
15035
15031
|
}), l.dispatch(g), c = !0);
|
|
15036
15032
|
}), c;
|
|
15037
15033
|
}
|
|
15038
|
-
function
|
|
15039
|
-
const { editor: e, rules: t } = r, o = new
|
|
15034
|
+
function Fw(r) {
|
|
15035
|
+
const { editor: e, rules: t } = r, o = new ze({
|
|
15040
15036
|
state: {
|
|
15041
15037
|
init() {
|
|
15042
15038
|
return null;
|
|
@@ -15107,11 +15103,11 @@ function zw(r) {
|
|
|
15107
15103
|
});
|
|
15108
15104
|
return o;
|
|
15109
15105
|
}
|
|
15110
|
-
function
|
|
15106
|
+
function zw(r) {
|
|
15111
15107
|
return Object.prototype.toString.call(r).slice(8, -1);
|
|
15112
15108
|
}
|
|
15113
15109
|
function Ii(r) {
|
|
15114
|
-
return
|
|
15110
|
+
return zw(r) !== "Object" ? !1 : r.constructor === Object && Object.getPrototypeOf(r) === Object.prototype;
|
|
15115
15111
|
}
|
|
15116
15112
|
function ha(r, e) {
|
|
15117
15113
|
const t = { ...r };
|
|
@@ -15249,7 +15245,7 @@ function Uw(r) {
|
|
|
15249
15245
|
return s = typeof ClipboardEvent < "u" ? new ClipboardEvent("paste") : null, f;
|
|
15250
15246
|
}
|
|
15251
15247
|
};
|
|
15252
|
-
return t.map((c) => new
|
|
15248
|
+
return t.map((c) => new ze({
|
|
15253
15249
|
// we register a global drag handler to track the current drag source element
|
|
15254
15250
|
view(p) {
|
|
15255
15251
|
const u = (g) => {
|
|
@@ -15290,13 +15286,13 @@ function Uw(r) {
|
|
|
15290
15286
|
if (C) {
|
|
15291
15287
|
let { text: P } = w;
|
|
15292
15288
|
typeof P == "string" ? P = P : P = Td(N.from(P), m.schema);
|
|
15293
|
-
const { from: x } = w, v = x + P.length,
|
|
15289
|
+
const { from: x } = w, v = x + P.length, F = qw(P);
|
|
15294
15290
|
return l({
|
|
15295
15291
|
rule: c,
|
|
15296
15292
|
state: m,
|
|
15297
15293
|
from: x,
|
|
15298
15294
|
to: { b: v },
|
|
15299
|
-
pasteEvt:
|
|
15295
|
+
pasteEvt: F
|
|
15300
15296
|
});
|
|
15301
15297
|
}
|
|
15302
15298
|
const E = u.doc.content.findDiffStart(m.doc.content), y = u.doc.content.findDiffEnd(m.doc.content);
|
|
@@ -15406,7 +15402,7 @@ class Ro {
|
|
|
15406
15402
|
return l;
|
|
15407
15403
|
}).flat();
|
|
15408
15404
|
return [
|
|
15409
|
-
|
|
15405
|
+
Fw({
|
|
15410
15406
|
editor: e,
|
|
15411
15407
|
rules: o
|
|
15412
15408
|
}),
|
|
@@ -15514,7 +15510,7 @@ class Xe {
|
|
|
15514
15510
|
})), t;
|
|
15515
15511
|
}
|
|
15516
15512
|
}
|
|
15517
|
-
function
|
|
15513
|
+
function Fh(r, e, t) {
|
|
15518
15514
|
const { from: o, to: n } = e, { blockSeparator: i = `
|
|
15519
15515
|
|
|
15520
15516
|
`, textSerializers: s = {} } = t || {};
|
|
@@ -15546,12 +15542,12 @@ const Gw = Xe.create({
|
|
|
15546
15542
|
},
|
|
15547
15543
|
addProseMirrorPlugins() {
|
|
15548
15544
|
return [
|
|
15549
|
-
new
|
|
15545
|
+
new ze({
|
|
15550
15546
|
key: new ut("clipboardTextSerializer"),
|
|
15551
15547
|
props: {
|
|
15552
15548
|
clipboardTextSerializer: () => {
|
|
15553
15549
|
const { editor: r } = this, { state: e, schema: t } = r, { doc: o, selection: n } = e, { ranges: i } = n, s = Math.min(...i.map((c) => c.$from.pos)), a = Math.max(...i.map((c) => c.$to.pos)), l = Pd(t);
|
|
15554
|
-
return
|
|
15550
|
+
return Fh(o, { from: s, to: a }, {
|
|
15555
15551
|
...this.options.blockSeparator !== void 0 ? { blockSeparator: this.options.blockSeparator } : {},
|
|
15556
15552
|
textSerializers: l
|
|
15557
15553
|
});
|
|
@@ -15618,7 +15614,7 @@ function bs(r, e, t = { strict: !0 }) {
|
|
|
15618
15614
|
const o = Object.keys(e);
|
|
15619
15615
|
return o.length ? o.every((n) => t.strict ? e[n] === r[n] : Od(e[n]) ? e[n].test(r[n]) : e[n] === r[n]) : !0;
|
|
15620
15616
|
}
|
|
15621
|
-
function
|
|
15617
|
+
function zh(r, e, t = {}) {
|
|
15622
15618
|
return r.find((o) => o.type === e && bs(
|
|
15623
15619
|
// Only check equality for the attributes that are provided
|
|
15624
15620
|
Object.fromEntries(Object.keys(t).map((n) => [n, o.attrs[n]])),
|
|
@@ -15626,14 +15622,14 @@ function Fh(r, e, t = {}) {
|
|
|
15626
15622
|
));
|
|
15627
15623
|
}
|
|
15628
15624
|
function Mp(r, e, t = {}) {
|
|
15629
|
-
return !!
|
|
15625
|
+
return !!zh(r, e, t);
|
|
15630
15626
|
}
|
|
15631
15627
|
function Bd(r, e, t) {
|
|
15632
15628
|
var o;
|
|
15633
15629
|
if (!r || !e)
|
|
15634
15630
|
return;
|
|
15635
15631
|
let n = r.parent.childAfter(r.parentOffset);
|
|
15636
|
-
if ((!n.node || !n.node.marks.some((c) => c.type === e)) && (n = r.parent.childBefore(r.parentOffset)), !n.node || !n.node.marks.some((c) => c.type === e) || (t = t || ((o = n.node.marks[0]) === null || o === void 0 ? void 0 : o.attrs), !
|
|
15632
|
+
if ((!n.node || !n.node.marks.some((c) => c.type === e)) && (n = r.parent.childBefore(r.parentOffset)), !n.node || !n.node.marks.some((c) => c.type === e) || (t = t || ((o = n.node.marks[0]) === null || o === void 0 ? void 0 : o.attrs), !zh([...n.node.marks], e, t)))
|
|
15637
15633
|
return;
|
|
15638
15634
|
let s = n.index, a = r.start() + n.offset, l = s + 1, d = a + n.node.nodeSize;
|
|
15639
15635
|
for (; s > 0 && Mp([...r.parent.child(s - 1).marks], e, t); )
|
|
@@ -15973,7 +15969,7 @@ function Wh(r, e) {
|
|
|
15973
15969
|
const a = s.find((l) => l.type.name === t.name);
|
|
15974
15970
|
return a ? { ...a.attrs } : {};
|
|
15975
15971
|
}
|
|
15976
|
-
function
|
|
15972
|
+
function Fv(r, e) {
|
|
15977
15973
|
const t = new Hm(r);
|
|
15978
15974
|
return e.forEach((o) => {
|
|
15979
15975
|
o.steps.forEach((n) => {
|
|
@@ -15981,7 +15977,7 @@ function zv(r, e) {
|
|
|
15981
15977
|
});
|
|
15982
15978
|
}), t;
|
|
15983
15979
|
}
|
|
15984
|
-
function
|
|
15980
|
+
function zv(r) {
|
|
15985
15981
|
for (let e = 0; e < r.edgeCount; e += 1) {
|
|
15986
15982
|
const { type: t } = r.edge(e);
|
|
15987
15983
|
if (t.isTextblock && !t.hasRequiredAttrs())
|
|
@@ -16018,7 +16014,7 @@ function qh(r, e) {
|
|
|
16018
16014
|
from: 0,
|
|
16019
16015
|
to: r.content.size
|
|
16020
16016
|
};
|
|
16021
|
-
return
|
|
16017
|
+
return Fh(r, t, e);
|
|
16022
16018
|
}
|
|
16023
16019
|
function Vv(r, e) {
|
|
16024
16020
|
const t = Ue(e, r.schema), { from: o, to: n } = r.selection, i = [];
|
|
@@ -16253,7 +16249,7 @@ const t2 = ({ keepMarks: r = !0 } = {}) => ({ tr: e, state: t, dispatch: o, edit
|
|
|
16253
16249
|
return !a.parentOffset || !pr(s, a.pos) ? !1 : (o && (r && Op(t, n.extensionManager.splittableMarks), e.split(a.pos).scrollIntoView()), !0);
|
|
16254
16250
|
if (!a.parent.isBlock)
|
|
16255
16251
|
return !1;
|
|
16256
|
-
const p = l.parentOffset === l.parent.content.size, u = a.depth === 0 ? void 0 :
|
|
16252
|
+
const p = l.parentOffset === l.parent.content.size, u = a.depth === 0 ? void 0 : zv(a.node(-1).contentMatchAt(a.indexAfter(-1)));
|
|
16257
16253
|
let m = p && u ? [
|
|
16258
16254
|
{
|
|
16259
16255
|
type: u,
|
|
@@ -16288,8 +16284,8 @@ const t2 = ({ keepMarks: r = !0 } = {}) => ({ tr: e, state: t, dispatch: o, edit
|
|
|
16288
16284
|
if (n) {
|
|
16289
16285
|
let w = N.empty;
|
|
16290
16286
|
const C = l.index(-1) ? 1 : l.index(-2) ? 2 : 3;
|
|
16291
|
-
for (let
|
|
16292
|
-
w = N.from(l.node(
|
|
16287
|
+
for (let F = l.depth - C; F >= l.depth - 3; F -= 1)
|
|
16288
|
+
w = N.from(l.node(F).copy(w));
|
|
16293
16289
|
const E = l.indexAfter(-1) < l.node(-2).childCount ? 1 : l.indexAfter(-2) < l.node(-3).childCount ? 2 : 3, y = {
|
|
16294
16290
|
...Qi(u, l.node().type.name, l.node().attrs),
|
|
16295
16291
|
...e
|
|
@@ -16298,10 +16294,10 @@ const t2 = ({ keepMarks: r = !0 } = {}) => ({ tr: e, state: t, dispatch: o, edit
|
|
|
16298
16294
|
const x = l.before(l.depth - (C - 1));
|
|
16299
16295
|
t.replace(x, l.after(-E), new H(w, 4 - C, 0));
|
|
16300
16296
|
let v = -1;
|
|
16301
|
-
t.doc.nodesBetween(x, t.doc.content.size, (
|
|
16297
|
+
t.doc.nodesBetween(x, t.doc.content.size, (F, _) => {
|
|
16302
16298
|
if (v > -1)
|
|
16303
16299
|
return !1;
|
|
16304
|
-
|
|
16300
|
+
F.isTextblock && F.content.size === 0 && (v = _ + 1);
|
|
16305
16301
|
}), v > -1 && t.setSelection(J.near(t.doc.resolve(v))), t.scrollIntoView();
|
|
16306
16302
|
}
|
|
16307
16303
|
return !0;
|
|
@@ -16358,7 +16354,7 @@ const t2 = ({ keepMarks: r = !0 } = {}) => ({ tr: e, state: t, dispatch: o, edit
|
|
|
16358
16354
|
return l().command(() => (i.setNodeMarkup(P.pos, m), !0)).command(() => Va(i, m)).command(() => Wa(i, m)).run();
|
|
16359
16355
|
}
|
|
16360
16356
|
return !t || !y || !a ? l().command(() => c().wrapInList(m, o) ? !0 : d.clearNodes()).wrapInList(m, o).command(() => Va(i, m)).command(() => Wa(i, m)).run() : l().command(() => {
|
|
16361
|
-
const x = c().wrapInList(m, o), v = y.filter((
|
|
16357
|
+
const x = c().wrapInList(m, o), v = y.filter((F) => u.includes(F.type.name));
|
|
16362
16358
|
return i.ensureMarks(v), x ? !0 : d.clearNodes();
|
|
16363
16359
|
}).wrapInList(m, o).command(() => Va(i, m)).command(() => Wa(i, m)).run();
|
|
16364
16360
|
}, n2 = (r, e = {}, t = {}) => ({ state: o, commands: n }) => {
|
|
@@ -16520,7 +16516,7 @@ const h2 = Xe.create({
|
|
|
16520
16516
|
name: "drop",
|
|
16521
16517
|
addProseMirrorPlugins() {
|
|
16522
16518
|
return [
|
|
16523
|
-
new
|
|
16519
|
+
new ze({
|
|
16524
16520
|
key: new ut("tiptapDrop"),
|
|
16525
16521
|
props: {
|
|
16526
16522
|
handleDrop: (r, e, t, o) => {
|
|
@@ -16539,7 +16535,7 @@ const h2 = Xe.create({
|
|
|
16539
16535
|
name: "editable",
|
|
16540
16536
|
addProseMirrorPlugins() {
|
|
16541
16537
|
return [
|
|
16542
|
-
new
|
|
16538
|
+
new ze({
|
|
16543
16539
|
key: new ut("editable"),
|
|
16544
16540
|
props: {
|
|
16545
16541
|
editable: () => this.editor.options.editable
|
|
@@ -16552,7 +16548,7 @@ const h2 = Xe.create({
|
|
|
16552
16548
|
addProseMirrorPlugins() {
|
|
16553
16549
|
const { editor: r } = this;
|
|
16554
16550
|
return [
|
|
16555
|
-
new
|
|
16551
|
+
new ze({
|
|
16556
16552
|
key: b2,
|
|
16557
16553
|
props: {
|
|
16558
16554
|
handleDOMEvents: {
|
|
@@ -16625,7 +16621,7 @@ const h2 = Xe.create({
|
|
|
16625
16621
|
// to a paragraph if necessary.
|
|
16626
16622
|
// This is an alternative to ProseMirror's `AllSelection`, which doesn’t work well
|
|
16627
16623
|
// with many other commands.
|
|
16628
|
-
new
|
|
16624
|
+
new ze({
|
|
16629
16625
|
key: new ut("clearDocument"),
|
|
16630
16626
|
appendTransaction: (r, e, t) => {
|
|
16631
16627
|
if (r.some((f) => f.getMeta("composition")))
|
|
@@ -16653,7 +16649,7 @@ const h2 = Xe.create({
|
|
|
16653
16649
|
name: "paste",
|
|
16654
16650
|
addProseMirrorPlugins() {
|
|
16655
16651
|
return [
|
|
16656
|
-
new
|
|
16652
|
+
new ze({
|
|
16657
16653
|
key: new ut("tiptapPaste"),
|
|
16658
16654
|
props: {
|
|
16659
16655
|
handlePaste: (r, e, t) => {
|
|
@@ -16671,7 +16667,7 @@ const h2 = Xe.create({
|
|
|
16671
16667
|
name: "tabindex",
|
|
16672
16668
|
addProseMirrorPlugins() {
|
|
16673
16669
|
return [
|
|
16674
|
-
new
|
|
16670
|
+
new ze({
|
|
16675
16671
|
key: new ut("tabindex"),
|
|
16676
16672
|
props: {
|
|
16677
16673
|
attributes: () => this.editor.isEditable ? { tabindex: "0" } : {}
|
|
@@ -17305,7 +17301,7 @@ function qn(r) {
|
|
|
17305
17301
|
}
|
|
17306
17302
|
});
|
|
17307
17303
|
}
|
|
17308
|
-
let
|
|
17304
|
+
let zt = class Il {
|
|
17309
17305
|
constructor(e = {}) {
|
|
17310
17306
|
this.type = "node", this.name = "node", this.parent = null, this.child = null, this.config = {
|
|
17311
17307
|
name: this.name,
|
|
@@ -17399,7 +17395,7 @@ function _2(r) {
|
|
|
17399
17395
|
}));
|
|
17400
17396
|
});
|
|
17401
17397
|
}
|
|
17402
|
-
function
|
|
17398
|
+
function F2(r) {
|
|
17403
17399
|
var e = r.state, t = {
|
|
17404
17400
|
popper: {
|
|
17405
17401
|
position: e.options.strategy,
|
|
@@ -17428,7 +17424,7 @@ const Qh = {
|
|
|
17428
17424
|
enabled: !0,
|
|
17429
17425
|
phase: "write",
|
|
17430
17426
|
fn: _2,
|
|
17431
|
-
effect:
|
|
17427
|
+
effect: F2,
|
|
17432
17428
|
requires: ["computeStyles"]
|
|
17433
17429
|
};
|
|
17434
17430
|
function Yt(r) {
|
|
@@ -17486,7 +17482,7 @@ function Zh(r, e) {
|
|
|
17486
17482
|
function gr(r) {
|
|
17487
17483
|
return St(r).getComputedStyle(r);
|
|
17488
17484
|
}
|
|
17489
|
-
function
|
|
17485
|
+
function z2(r) {
|
|
17490
17486
|
return ["table", "td", "th"].indexOf(Zt(r)) >= 0;
|
|
17491
17487
|
}
|
|
17492
17488
|
function Wr(r) {
|
|
@@ -17528,11 +17524,11 @@ function j2(r) {
|
|
|
17528
17524
|
return null;
|
|
17529
17525
|
}
|
|
17530
17526
|
function ui(r) {
|
|
17531
|
-
for (var e = St(r), t = Bp(r); t &&
|
|
17527
|
+
for (var e = St(r), t = Bp(r); t && z2(t) && gr(t).position === "static"; )
|
|
17532
17528
|
t = Bp(t);
|
|
17533
17529
|
return t && (Zt(t) === "html" || Zt(t) === "body" && gr(t).position === "static") ? e : t || j2(r) || e;
|
|
17534
17530
|
}
|
|
17535
|
-
function
|
|
17531
|
+
function Fd(r) {
|
|
17536
17532
|
return ["top", "bottom"].indexOf(r) >= 0 ? "x" : "y";
|
|
17537
17533
|
}
|
|
17538
17534
|
function Cn(r, e, t) {
|
|
@@ -17564,10 +17560,10 @@ var V2 = function(e, t) {
|
|
|
17564
17560
|
})) : e, tg(typeof e != "number" ? e : rg(e, pi));
|
|
17565
17561
|
};
|
|
17566
17562
|
function W2(r) {
|
|
17567
|
-
var e, t = r.state, o = r.name, n = r.options, i = t.elements.arrow, s = t.modifiersData.popperOffsets, a = Yt(t.placement), l =
|
|
17563
|
+
var e, t = r.state, o = r.name, n = r.options, i = t.elements.arrow, s = t.modifiersData.popperOffsets, a = Yt(t.placement), l = Fd(a), d = [bt, Nt].indexOf(a) >= 0, c = d ? "height" : "width";
|
|
17568
17564
|
if (!(!i || !s)) {
|
|
17569
|
-
var p = V2(n.padding, t), u = _d(i), m = 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 = ui(i), C = w ? l === "y" ? w.clientHeight || 0 : w.clientWidth || 0 : 0, E = f / 2 - b / 2, y = p[m], P = C - u[c] - p[g], x = C / 2 - u[c] / 2 + E, v = Cn(y, x, P),
|
|
17570
|
-
t.modifiersData[o] = (e = {}, e[
|
|
17565
|
+
var p = V2(n.padding, t), u = _d(i), m = 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 = ui(i), C = w ? l === "y" ? w.clientHeight || 0 : w.clientWidth || 0 : 0, E = f / 2 - b / 2, y = p[m], P = C - u[c] - p[g], x = C / 2 - u[c] / 2 + E, v = Cn(y, x, P), F = l;
|
|
17566
|
+
t.modifiersData[o] = (e = {}, e[F] = v, e.centerOffset = v - x, e);
|
|
17571
17567
|
}
|
|
17572
17568
|
}
|
|
17573
17569
|
function q2(r) {
|
|
@@ -17610,8 +17606,8 @@ function Ap(r) {
|
|
|
17610
17606
|
m = b.x, f = b.y;
|
|
17611
17607
|
var w = s.hasOwnProperty("x"), C = s.hasOwnProperty("y"), E = bt, y = ft, P = window;
|
|
17612
17608
|
if (d) {
|
|
17613
|
-
var x = ui(t), v = "clientHeight",
|
|
17614
|
-
if (x === St(t) && (x = Wr(t), gr(x).position !== "static" && a === "absolute" && (v = "scrollHeight",
|
|
17609
|
+
var x = ui(t), v = "clientHeight", F = "clientWidth";
|
|
17610
|
+
if (x === St(t) && (x = Wr(t), gr(x).position !== "static" && a === "absolute" && (v = "scrollHeight", F = "scrollWidth")), x = x, n === ft || (n === bt || n === Nt) && i === Un) {
|
|
17615
17611
|
y = Dt;
|
|
17616
17612
|
var _ = p && x === P && P.visualViewport ? P.visualViewport.height : (
|
|
17617
17613
|
// $FlowFixMe[prop-missing]
|
|
@@ -17623,7 +17619,7 @@ function Ap(r) {
|
|
|
17623
17619
|
E = Nt;
|
|
17624
17620
|
var B = p && x === P && P.visualViewport ? P.visualViewport.width : (
|
|
17625
17621
|
// $FlowFixMe[prop-missing]
|
|
17626
|
-
x[
|
|
17622
|
+
x[F]
|
|
17627
17623
|
);
|
|
17628
17624
|
m -= B - o.width, m *= l ? 1 : -1;
|
|
17629
17625
|
}
|
|
@@ -17715,7 +17711,7 @@ function Lp(r) {
|
|
|
17715
17711
|
return ex[e];
|
|
17716
17712
|
});
|
|
17717
17713
|
}
|
|
17718
|
-
function
|
|
17714
|
+
function zd(r) {
|
|
17719
17715
|
var e = St(r), t = e.pageXOffset, o = e.pageYOffset;
|
|
17720
17716
|
return {
|
|
17721
17717
|
scrollLeft: t,
|
|
@@ -17723,7 +17719,7 @@ function Fd(r) {
|
|
|
17723
17719
|
};
|
|
17724
17720
|
}
|
|
17725
17721
|
function jd(r) {
|
|
17726
|
-
return Ko(Wr(r)).left +
|
|
17722
|
+
return Ko(Wr(r)).left + zd(r).scrollLeft;
|
|
17727
17723
|
}
|
|
17728
17724
|
function tx(r, e) {
|
|
17729
17725
|
var t = St(r), o = Wr(r), n = t.visualViewport, i = o.clientWidth, s = o.clientHeight, a = 0, l = 0;
|
|
@@ -17740,7 +17736,7 @@ function tx(r, e) {
|
|
|
17740
17736
|
};
|
|
17741
17737
|
}
|
|
17742
17738
|
function rx(r) {
|
|
17743
|
-
var e, t = Wr(r), o =
|
|
17739
|
+
var e, t = Wr(r), o = zd(r), n = (e = r.ownerDocument) == null ? void 0 : e.body, i = lo(t.scrollWidth, t.clientWidth, n ? n.scrollWidth : 0, n ? n.clientWidth : 0), s = lo(t.scrollHeight, t.clientHeight, n ? n.scrollHeight : 0, n ? n.clientHeight : 0), a = -o.scrollLeft + jd(r), l = -o.scrollTop;
|
|
17744
17740
|
return gr(n || t).direction === "rtl" && (a += lo(t.clientWidth, n ? n.clientWidth : 0) - i), {
|
|
17745
17741
|
width: i,
|
|
17746
17742
|
height: s,
|
|
@@ -17825,7 +17821,7 @@ function ng(r) {
|
|
|
17825
17821
|
y: e.y
|
|
17826
17822
|
};
|
|
17827
17823
|
}
|
|
17828
|
-
var d = n ?
|
|
17824
|
+
var d = n ? Fd(n) : null;
|
|
17829
17825
|
if (d != null) {
|
|
17830
17826
|
var c = d === "y" ? "height" : "width";
|
|
17831
17827
|
switch (i) {
|
|
@@ -17845,7 +17841,7 @@ function Kn(r, e) {
|
|
|
17845
17841
|
reference: x,
|
|
17846
17842
|
element: E,
|
|
17847
17843
|
placement: n
|
|
17848
|
-
}),
|
|
17844
|
+
}), F = $l(Object.assign({}, E, v)), _ = u === pn ? F : x, B = {
|
|
17849
17845
|
top: P.top - _.top + w.top,
|
|
17850
17846
|
bottom: _.bottom - P.bottom + w.bottom,
|
|
17851
17847
|
left: P.left - _.left + w.left,
|
|
@@ -17898,7 +17894,7 @@ function lx(r) {
|
|
|
17898
17894
|
flipVariations: g,
|
|
17899
17895
|
allowedAutoPlacements: f
|
|
17900
17896
|
}) : st);
|
|
17901
|
-
}, []), P = e.rects.reference, x = e.rects.popper, v = /* @__PURE__ */ new Map(),
|
|
17897
|
+
}, []), P = e.rects.reference, x = e.rects.popper, v = /* @__PURE__ */ new Map(), F = !0, _ = y[0], B = 0; B < y.length; B++) {
|
|
17902
17898
|
var T = y[B], j = Yt(T), q = Go(T) === qo, oe = [ft, Dt].indexOf(j) >= 0, Q = oe ? "width" : "height", Z = Kn(e, {
|
|
17903
17899
|
placement: T,
|
|
17904
17900
|
boundary: c,
|
|
@@ -17911,12 +17907,12 @@ function lx(r) {
|
|
|
17911
17907
|
if (i && se.push(Z[j] <= 0), a && se.push(Z[le] <= 0, Z[he] <= 0), se.every(function(Ee) {
|
|
17912
17908
|
return Ee;
|
|
17913
17909
|
})) {
|
|
17914
|
-
_ = T,
|
|
17910
|
+
_ = T, F = !1;
|
|
17915
17911
|
break;
|
|
17916
17912
|
}
|
|
17917
17913
|
v.set(T, se);
|
|
17918
17914
|
}
|
|
17919
|
-
if (
|
|
17915
|
+
if (F)
|
|
17920
17916
|
for (var ae = g ? 3 : 1, re = function(st) {
|
|
17921
17917
|
var mt = y.find(function(wo) {
|
|
17922
17918
|
var er = v.get(wo);
|
|
@@ -18032,7 +18028,7 @@ function yx(r) {
|
|
|
18032
18028
|
rootBoundary: d,
|
|
18033
18029
|
padding: p,
|
|
18034
18030
|
altBoundary: c
|
|
18035
|
-
}), w = Yt(e.placement), C = Go(e.placement), E = !C, y =
|
|
18031
|
+
}), w = Yt(e.placement), C = Go(e.placement), E = !C, y = Fd(w), P = bx(y), x = e.modifiersData.popperOffsets, v = e.rects.reference, F = e.rects.popper, _ = typeof f == "function" ? f(Object.assign({}, e.rects, {
|
|
18036
18032
|
placement: e.placement
|
|
18037
18033
|
})) : f, B = typeof _ == "number" ? {
|
|
18038
18034
|
mainAxis: _,
|
|
@@ -18046,14 +18042,14 @@ function yx(r) {
|
|
|
18046
18042
|
};
|
|
18047
18043
|
if (x) {
|
|
18048
18044
|
if (i) {
|
|
18049
|
-
var q, oe = y === "y" ? ft : bt, Q = y === "y" ? Dt : Nt, Z = y === "y" ? "height" : "width", le = x[y], he = le + b[oe], se = le - b[Q], ae = m ? -
|
|
18045
|
+
var q, oe = y === "y" ? ft : bt, Q = y === "y" ? Dt : Nt, Z = y === "y" ? "height" : "width", le = x[y], he = le + b[oe], se = le - b[Q], ae = m ? -F[Z] / 2 : 0, re = C === qo ? v[Z] : F[Z], ce = C === qo ? -F[Z] : -v[Z], De = e.elements.arrow, Ee = m && De ? _d(De) : {
|
|
18050
18046
|
width: 0,
|
|
18051
18047
|
height: 0
|
|
18052
18048
|
}, st = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : eg(), mt = st[oe], wo = st[Q], er = Cn(0, v[Z], Ee[Z]), vo = E ? v[Z] / 2 - ae - er - mt - B.mainAxis : re - er - mt - B.mainAxis, fr = E ? -v[Z] / 2 + ae + er + wo + B.mainAxis : ce + er + wo + B.mainAxis, xo = e.elements.arrow && ui(e.elements.arrow), mi = xo ? y === "y" ? xo.clientTop || 0 : xo.clientLeft || 0 : 0, tn = (q = T == null ? void 0 : T[y]) != null ? q : 0, hi = le + vo - tn - mi, gi = le + fr - tn, rn = Cn(m ? ws(he, hi) : he, le, m ? lo(se, gi) : se);
|
|
18053
18049
|
x[y] = rn, j[y] = rn - le;
|
|
18054
18050
|
}
|
|
18055
18051
|
if (a) {
|
|
18056
|
-
var on, fi = y === "x" ? ft : bt, bi = y === "x" ? Dt : Nt, tr = x[P], br = P === "y" ? "height" : "width", nn = tr + b[fi], qr = tr - b[bi], sn = [ft, bt].indexOf(w) !== -1, yi = (on = T == null ? void 0 : T[P]) != null ? on : 0, wi = sn ? nn : tr - v[br] -
|
|
18052
|
+
var on, fi = y === "x" ? ft : bt, bi = y === "x" ? Dt : Nt, tr = x[P], br = P === "y" ? "height" : "width", nn = tr + b[fi], qr = tr - b[bi], sn = [ft, bt].indexOf(w) !== -1, yi = (on = T == null ? void 0 : T[P]) != null ? on : 0, wi = sn ? nn : tr - v[br] - F[br] - yi + B.altAxis, vi = sn ? tr + v[br] + F[br] - yi - B.altAxis : qr, xi = m && sn ? H2(wi, tr, vi) : Cn(m ? wi : nn, tr, m ? vi : qr);
|
|
18057
18053
|
x[P] = xi, j[P] = xi - tr;
|
|
18058
18054
|
}
|
|
18059
18055
|
e.modifiersData[o] = j;
|
|
@@ -18073,7 +18069,7 @@ function vx(r) {
|
|
|
18073
18069
|
};
|
|
18074
18070
|
}
|
|
18075
18071
|
function xx(r) {
|
|
18076
|
-
return r === St(r) || !Lt(r) ?
|
|
18072
|
+
return r === St(r) || !Lt(r) ? zd(r) : vx(r);
|
|
18077
18073
|
}
|
|
18078
18074
|
function kx(r) {
|
|
18079
18075
|
var e = r.getBoundingClientRect(), t = Uo(e.width) / r.offsetWidth || 1, o = Uo(e.height) / r.offsetHeight || 1;
|
|
@@ -18206,10 +18202,10 @@ function Ox(r) {
|
|
|
18206
18202
|
c.reset = !1, y = -1;
|
|
18207
18203
|
continue;
|
|
18208
18204
|
}
|
|
18209
|
-
var P = c.orderedModifiers[y], x = P.fn, v = P.options,
|
|
18205
|
+
var P = c.orderedModifiers[y], x = P.fn, v = P.options, F = v === void 0 ? {} : v, _ = P.name;
|
|
18210
18206
|
typeof x == "function" && (c = x({
|
|
18211
18207
|
state: c,
|
|
18212
|
-
options:
|
|
18208
|
+
options: F,
|
|
18213
18209
|
name: _,
|
|
18214
18210
|
instance: m
|
|
18215
18211
|
}) || c);
|
|
@@ -18303,7 +18299,7 @@ function Ix(r) {
|
|
|
18303
18299
|
function Lo(r) {
|
|
18304
18300
|
return [].concat(r);
|
|
18305
18301
|
}
|
|
18306
|
-
function
|
|
18302
|
+
function Fp(r, e) {
|
|
18307
18303
|
r.indexOf(e) === -1 && r.push(e);
|
|
18308
18304
|
}
|
|
18309
18305
|
function Rx(r) {
|
|
@@ -18317,7 +18313,7 @@ function $x(r) {
|
|
|
18317
18313
|
function vs(r) {
|
|
18318
18314
|
return [].slice.call(r);
|
|
18319
18315
|
}
|
|
18320
|
-
function
|
|
18316
|
+
function zp(r) {
|
|
18321
18317
|
return Object.keys(r).reduce(function(e, t) {
|
|
18322
18318
|
return r[t] !== void 0 && (e[t] = r[t]), e;
|
|
18323
18319
|
}, {});
|
|
@@ -18333,10 +18329,10 @@ function Gn(r) {
|
|
|
18333
18329
|
function _x(r) {
|
|
18334
18330
|
return Vd(r, "NodeList");
|
|
18335
18331
|
}
|
|
18336
|
-
function
|
|
18332
|
+
function Fx(r) {
|
|
18337
18333
|
return Vd(r, "MouseEvent");
|
|
18338
18334
|
}
|
|
18339
|
-
function
|
|
18335
|
+
function zx(r) {
|
|
18340
18336
|
return !!(r && r._tippy && r._tippy.reference === r);
|
|
18341
18337
|
}
|
|
18342
18338
|
function jx(r) {
|
|
@@ -18393,7 +18389,7 @@ function cg() {
|
|
|
18393
18389
|
}
|
|
18394
18390
|
function qx() {
|
|
18395
18391
|
var r = document.activeElement;
|
|
18396
|
-
if (
|
|
18392
|
+
if (zx(r)) {
|
|
18397
18393
|
var e = r._tippy;
|
|
18398
18394
|
r.blur && !e.state.isVisible && r.blur();
|
|
18399
18395
|
}
|
|
@@ -18579,17 +18575,17 @@ function hg(r, e) {
|
|
|
18579
18575
|
var r5 = function() {
|
|
18580
18576
|
return "innerHTML";
|
|
18581
18577
|
};
|
|
18582
|
-
function
|
|
18578
|
+
function Fl(r, e) {
|
|
18583
18579
|
r[r5()] = e;
|
|
18584
18580
|
}
|
|
18585
18581
|
function Up(r) {
|
|
18586
18582
|
var e = En();
|
|
18587
|
-
return r === !0 ? e.className = sg : (e.className = ag, Gn(r) ? e.appendChild(r) :
|
|
18583
|
+
return r === !0 ? e.className = sg : (e.className = ag, Gn(r) ? e.appendChild(r) : Fl(e, r)), e;
|
|
18588
18584
|
}
|
|
18589
18585
|
function Kp(r, e) {
|
|
18590
|
-
Gn(e.content) ? (
|
|
18586
|
+
Gn(e.content) ? (Fl(r, ""), r.appendChild(e.content)) : typeof e.content != "function" && (e.allowHTML ? Fl(r, e.content) : r.textContent = e.content);
|
|
18591
18587
|
}
|
|
18592
|
-
function
|
|
18588
|
+
function zl(r) {
|
|
18593
18589
|
var e = r.firstElementChild, t = vs(e.children);
|
|
18594
18590
|
return {
|
|
18595
18591
|
box: e,
|
|
@@ -18610,7 +18606,7 @@ function gg(r) {
|
|
|
18610
18606
|
var o = En();
|
|
18611
18607
|
o.className = ig, o.setAttribute("data-state", "hidden"), Kp(o, r.props), e.appendChild(t), t.appendChild(o), n(r.props, r.props);
|
|
18612
18608
|
function n(i, s) {
|
|
18613
|
-
var a =
|
|
18609
|
+
var a = zl(e), l = a.box, d = a.content, c = a.arrow;
|
|
18614
18610
|
s.theme ? l.setAttribute("data-theme", s.theme) : l.removeAttribute("data-theme"), typeof s.animation == "string" ? l.setAttribute("data-animation", s.animation) : l.removeAttribute("data-animation"), s.inertia ? l.setAttribute("data-inertia", "") : l.removeAttribute("data-inertia"), l.style.maxWidth = typeof s.maxWidth == "number" ? s.maxWidth + "px" : s.maxWidth, s.role ? l.setAttribute("role", s.role) : l.removeAttribute("role"), (i.content !== s.content || i.allowHTML !== s.allowHTML) && Kp(d, r.props), s.arrow ? c ? i.arrow !== s.arrow && (l.removeChild(c), l.appendChild(Up(s.arrow))) : l.appendChild(Up(s.arrow)) : c && l.removeChild(c);
|
|
18615
18611
|
}
|
|
18616
18612
|
return {
|
|
@@ -18619,9 +18615,9 @@ function gg(r) {
|
|
|
18619
18615
|
};
|
|
18620
18616
|
}
|
|
18621
18617
|
gg.$$tippy = !0;
|
|
18622
|
-
var o5 = 1,
|
|
18618
|
+
var o5 = 1, Fi = [], Ga = [];
|
|
18623
18619
|
function n5(r, e) {
|
|
18624
|
-
var t = qp(r, Object.assign({}, vt, mg(
|
|
18620
|
+
var t = qp(r, Object.assign({}, vt, mg(zp(e)))), o, n, i, s = !1, a = !1, l = !1, d = !1, c, p, u, m = [], g = _p(hi, t.interactiveDebounce), f, b = o5++, w = null, C = Rx(t.plugins), E = {
|
|
18625
18621
|
// Is the instance currently enabled?
|
|
18626
18622
|
isEnabled: !0,
|
|
18627
18623
|
// Is the tippy currently showing and not transitioning out?
|
|
@@ -18657,7 +18653,7 @@ function n5(r, e) {
|
|
|
18657
18653
|
return process.env.NODE_ENV !== "production" && _l(!0, "render() function has not been supplied."), y;
|
|
18658
18654
|
var P = t.render(y), x = P.popper, v = P.onUpdate;
|
|
18659
18655
|
x.setAttribute("data-tippy-root", ""), x.id = "tippy-" + y.id, y.popper = x, r._tippy = y, x._tippy = y;
|
|
18660
|
-
var
|
|
18656
|
+
var F = C.map(function(A) {
|
|
18661
18657
|
return A.fn(y);
|
|
18662
18658
|
}), _ = r.hasAttribute("aria-expanded");
|
|
18663
18659
|
return xo(), ae(), le(), he("onCreate", [y]), t.showOnCreate && nn(), x.addEventListener("mouseenter", function() {
|
|
@@ -18684,7 +18680,7 @@ function n5(r, e) {
|
|
|
18684
18680
|
return A ? Hx(A) : document;
|
|
18685
18681
|
}
|
|
18686
18682
|
function Q() {
|
|
18687
|
-
return
|
|
18683
|
+
return zl(x);
|
|
18688
18684
|
}
|
|
18689
18685
|
function Z(A) {
|
|
18690
18686
|
return y.state.isMounted && !y.state.isVisible || Wt.isTouch || c && c.type === "focus" ? 0 : qa(y.props.delay, A ? 0 : 1, vt.delay);
|
|
@@ -18693,7 +18689,7 @@ function n5(r, e) {
|
|
|
18693
18689
|
A === void 0 && (A = !1), x.style.pointerEvents = y.props.interactive && !A ? "" : "none", x.style.zIndex = "" + y.props.zIndex;
|
|
18694
18690
|
}
|
|
18695
18691
|
function he(A, W, G) {
|
|
18696
|
-
if (G === void 0 && (G = !0),
|
|
18692
|
+
if (G === void 0 && (G = !0), F.forEach(function(de) {
|
|
18697
18693
|
de[A] && de[A].apply(de, W);
|
|
18698
18694
|
}), G) {
|
|
18699
18695
|
var me;
|
|
@@ -18724,7 +18720,7 @@ function n5(r, e) {
|
|
|
18724
18720
|
}
|
|
18725
18721
|
}
|
|
18726
18722
|
function re() {
|
|
18727
|
-
oe().removeEventListener("mousemove", g),
|
|
18723
|
+
oe().removeEventListener("mousemove", g), Fi = Fi.filter(function(A) {
|
|
18728
18724
|
return A !== g;
|
|
18729
18725
|
});
|
|
18730
18726
|
}
|
|
@@ -18818,7 +18814,7 @@ function n5(r, e) {
|
|
|
18818
18814
|
var W, G = !1;
|
|
18819
18815
|
if (!(!y.state.isEnabled || on(A) || a)) {
|
|
18820
18816
|
var me = ((W = c) == null ? void 0 : W.type) === "focus";
|
|
18821
|
-
c = A, f = A.currentTarget, ae(), !y.state.isVisible &&
|
|
18817
|
+
c = A, f = A.currentTarget, ae(), !y.state.isVisible && Fx(A) && Fi.forEach(function(de) {
|
|
18822
18818
|
return de(A);
|
|
18823
18819
|
}), A.type === "click" && (y.props.trigger.indexOf("mouseenter") < 0 || s) && y.props.hideOnClick !== !1 && y.state.isVisible ? G = !0 : nn(A), A.type === "click" && (s = !G), G && !me && qr(A);
|
|
18824
18820
|
}
|
|
@@ -18855,7 +18851,7 @@ function n5(r, e) {
|
|
|
18855
18851
|
}
|
|
18856
18852
|
function fi() {
|
|
18857
18853
|
bi();
|
|
18858
|
-
var A = y.props, W = A.popperOptions, G = A.placement, me = A.offset, de = A.getReferenceClientRect, at = A.moveTransition, Ct = j() ?
|
|
18854
|
+
var A = y.props, W = A.popperOptions, G = A.placement, me = A.offset, de = A.getReferenceClientRect, at = A.moveTransition, Ct = j() ? zl(x).arrow : null, ko = de ? {
|
|
18859
18855
|
getBoundingClientRect: de,
|
|
18860
18856
|
contextElement: de.contextElement || q()
|
|
18861
18857
|
} : r, ec = {
|
|
@@ -18959,7 +18955,7 @@ function n5(r, e) {
|
|
|
18959
18955
|
function vi(A) {
|
|
18960
18956
|
if (process.env.NODE_ENV !== "production" && lr(y.state.isDestroyed, Oo("setProps")), !y.state.isDestroyed) {
|
|
18961
18957
|
he("onBeforeUpdate", [y, A]), mi();
|
|
18962
|
-
var W = y.props, G = qp(r, Object.assign({}, W,
|
|
18958
|
+
var W = y.props, G = qp(r, Object.assign({}, W, zp(A), {
|
|
18963
18959
|
ignoreAttributes: !0
|
|
18964
18960
|
}));
|
|
18965
18961
|
y.props = G, xo(), W.interactiveDebounce !== G.interactiveDebounce && (re(), g = _p(hi, G.interactiveDebounce)), W.triggerTarget && !G.triggerTarget ? Lo(W.triggerTarget).forEach(function(me) {
|
|
@@ -18989,7 +18985,7 @@ function n5(r, e) {
|
|
|
18989
18985
|
var ya = Q(), ki = ya.box, So = ya.content;
|
|
18990
18986
|
Ua([ki, So], de), jp([ki, So], "visible");
|
|
18991
18987
|
}
|
|
18992
|
-
se(), ae(),
|
|
18988
|
+
se(), ae(), Fp(Ga, y), (Ur = y.popperInstance) == null || Ur.forceUpdate(), he("onMount", [y]), y.props.animation && j() && er(de, function() {
|
|
18993
18989
|
y.state.isShown = !0, he("onShown", [y]);
|
|
18994
18990
|
});
|
|
18995
18991
|
}
|
|
@@ -19008,7 +19004,7 @@ function n5(r, e) {
|
|
|
19008
19004
|
}
|
|
19009
19005
|
}
|
|
19010
19006
|
function Ng(A) {
|
|
19011
|
-
process.env.NODE_ENV !== "production" && lr(y.state.isDestroyed, Oo("hideWithInteractivity")), oe().addEventListener("mousemove", g),
|
|
19007
|
+
process.env.NODE_ENV !== "production" && lr(y.state.isDestroyed, Oo("hideWithInteractivity")), oe().addEventListener("mousemove", g), Fp(Fi, g), g(A);
|
|
19012
19008
|
}
|
|
19013
19009
|
function Ig() {
|
|
19014
19010
|
process.env.NODE_ENV !== "production" && lr(y.state.isDestroyed, Oo("unmount")), y.state.isVisible && y.hide(), y.state.isMounted && (bi(), br().forEach(function(A) {
|
|
@@ -19160,7 +19156,7 @@ class i5 {
|
|
|
19160
19156
|
!((e = this.tippy) === null || e === void 0) && e.popper.firstChild && this.tippy.popper.firstChild.removeEventListener("blur", this.tippyBlurHandler), (t = this.tippy) === null || t === void 0 || t.destroy(), this.element.removeEventListener("mousedown", this.mousedownHandler, { capture: !0 }), this.view.dom.removeEventListener("dragstart", this.dragstartHandler), this.editor.off("focus", this.focusHandler), this.editor.off("blur", this.blurHandler);
|
|
19161
19157
|
}
|
|
19162
19158
|
}
|
|
19163
|
-
const fg = (r) => new
|
|
19159
|
+
const fg = (r) => new ze({
|
|
19164
19160
|
key: typeof r.pluginKey == "string" ? new ut(r.pluginKey) : r.pluginKey,
|
|
19165
19161
|
view: (e) => new i5({ view: e, ...r })
|
|
19166
19162
|
});
|
|
@@ -19255,7 +19251,7 @@ class s5 {
|
|
|
19255
19251
|
!((e = this.tippy) === null || e === void 0) && e.popper.firstChild && this.tippy.popper.firstChild.removeEventListener("blur", this.tippyBlurHandler), (t = this.tippy) === null || t === void 0 || t.destroy(), this.element.removeEventListener("mousedown", this.mousedownHandler, { capture: !0 }), this.editor.off("focus", this.focusHandler), this.editor.off("blur", this.blurHandler);
|
|
19256
19252
|
}
|
|
19257
19253
|
}
|
|
19258
|
-
const bg = (r) => new
|
|
19254
|
+
const bg = (r) => new ze({
|
|
19259
19255
|
key: typeof r.pluginKey == "string" ? new ut(r.pluginKey) : r.pluginKey,
|
|
19260
19256
|
view: (e) => new s5({ view: e, ...r })
|
|
19261
19257
|
});
|
|
@@ -19497,7 +19493,7 @@ const d5 = (r = {}) => {
|
|
|
19497
19493
|
const i = (t = e.value) === null || t === void 0 ? void 0 : t.options.element, s = i == null ? void 0 : i.cloneNode(!0);
|
|
19498
19494
|
(o = i == null ? void 0 : i.parentNode) === null || o === void 0 || o.replaceChild(s, i), (n = e.value) === null || n === void 0 || n.destroy();
|
|
19499
19495
|
}), e;
|
|
19500
|
-
}, c5 = /^\s*>\s$/, p5 =
|
|
19496
|
+
}, c5 = /^\s*>\s$/, p5 = zt.create({
|
|
19501
19497
|
name: "blockquote",
|
|
19502
19498
|
addOptions() {
|
|
19503
19499
|
return {
|
|
@@ -19601,7 +19597,7 @@ const d5 = (r = {}) => {
|
|
|
19601
19597
|
})
|
|
19602
19598
|
];
|
|
19603
19599
|
}
|
|
19604
|
-
}), b5 = "listItem", Jp = "textStyle", Yp = /^\s*([-+*])\s$/, y5 =
|
|
19600
|
+
}), b5 = "listItem", Jp = "textStyle", Yp = /^\s*([-+*])\s$/, y5 = zt.create({
|
|
19605
19601
|
name: "bulletList",
|
|
19606
19602
|
addOptions() {
|
|
19607
19603
|
return {
|
|
@@ -19695,7 +19691,7 @@ const d5 = (r = {}) => {
|
|
|
19695
19691
|
})
|
|
19696
19692
|
];
|
|
19697
19693
|
}
|
|
19698
|
-
}), k5 = /^```([a-z]+)?[\s\n]$/, S5 = /^~~~([a-z]+)?[\s\n]$/, C5 =
|
|
19694
|
+
}), k5 = /^```([a-z]+)?[\s\n]$/, S5 = /^~~~([a-z]+)?[\s\n]$/, C5 = zt.create({
|
|
19699
19695
|
name: "codeBlock",
|
|
19700
19696
|
addOptions() {
|
|
19701
19697
|
return {
|
|
@@ -19805,7 +19801,7 @@ const d5 = (r = {}) => {
|
|
|
19805
19801
|
return [
|
|
19806
19802
|
// this plugin creates a code block for pasted content from VS Code
|
|
19807
19803
|
// we can also detect the copied code language
|
|
19808
|
-
new
|
|
19804
|
+
new ze({
|
|
19809
19805
|
key: new ut("codeBlockVSCodeHandler"),
|
|
19810
19806
|
props: {
|
|
19811
19807
|
handlePaste: (r, e) => {
|
|
@@ -19822,13 +19818,13 @@ const d5 = (r = {}) => {
|
|
|
19822
19818
|
})
|
|
19823
19819
|
];
|
|
19824
19820
|
}
|
|
19825
|
-
}), M5 =
|
|
19821
|
+
}), M5 = zt.create({
|
|
19826
19822
|
name: "doc",
|
|
19827
19823
|
topNode: !0,
|
|
19828
19824
|
content: "block+"
|
|
19829
19825
|
});
|
|
19830
19826
|
function E5(r = {}) {
|
|
19831
|
-
return new
|
|
19827
|
+
return new ze({
|
|
19832
19828
|
view(e) {
|
|
19833
19829
|
return new T5(e, r);
|
|
19834
19830
|
}
|
|
@@ -20058,7 +20054,7 @@ function B5(r) {
|
|
|
20058
20054
|
return !0;
|
|
20059
20055
|
}
|
|
20060
20056
|
function A5() {
|
|
20061
|
-
return new
|
|
20057
|
+
return new ze({
|
|
20062
20058
|
props: {
|
|
20063
20059
|
decorations: I5,
|
|
20064
20060
|
createSelectionBetween(r, e, t) {
|
|
@@ -20071,12 +20067,12 @@ function A5() {
|
|
|
20071
20067
|
});
|
|
20072
20068
|
}
|
|
20073
20069
|
const L5 = Ch({
|
|
20074
|
-
ArrowLeft:
|
|
20075
|
-
ArrowRight:
|
|
20076
|
-
ArrowUp:
|
|
20077
|
-
ArrowDown:
|
|
20070
|
+
ArrowLeft: zi("horiz", -1),
|
|
20071
|
+
ArrowRight: zi("horiz", 1),
|
|
20072
|
+
ArrowUp: zi("vert", -1),
|
|
20073
|
+
ArrowDown: zi("vert", 1)
|
|
20078
20074
|
});
|
|
20079
|
-
function
|
|
20075
|
+
function zi(r, e) {
|
|
20080
20076
|
const t = r == "vert" ? e > 0 ? "down" : "up" : e > 0 ? "right" : "left";
|
|
20081
20077
|
return function(o, n, i) {
|
|
20082
20078
|
let s = o.selection, a = e > 0 ? s.$to : s.$from, l = s.empty;
|
|
@@ -20134,7 +20130,7 @@ const R5 = Xe.create({
|
|
|
20134
20130
|
allowGapCursor: (e = te(V(r, "allowGapCursor", t))) !== null && e !== void 0 ? e : null
|
|
20135
20131
|
};
|
|
20136
20132
|
}
|
|
20137
|
-
}), $5 =
|
|
20133
|
+
}), $5 = zt.create({
|
|
20138
20134
|
name: "hardBreak",
|
|
20139
20135
|
addOptions() {
|
|
20140
20136
|
return {
|
|
@@ -20184,7 +20180,7 @@ const R5 = Xe.create({
|
|
|
20184
20180
|
"Shift-Enter": () => this.editor.commands.setHardBreak()
|
|
20185
20181
|
};
|
|
20186
20182
|
}
|
|
20187
|
-
}), _5 =
|
|
20183
|
+
}), _5 = zt.create({
|
|
20188
20184
|
name: "heading",
|
|
20189
20185
|
addOptions() {
|
|
20190
20186
|
return {
|
|
@@ -20243,7 +20239,7 @@ qe.prototype.prepend = function(e) {
|
|
|
20243
20239
|
return e.length ? qe.from(e).append(this) : this;
|
|
20244
20240
|
};
|
|
20245
20241
|
qe.prototype.appendInner = function(e) {
|
|
20246
|
-
return new
|
|
20242
|
+
return new F5(this, e);
|
|
20247
20243
|
};
|
|
20248
20244
|
qe.prototype.slice = function(e, t) {
|
|
20249
20245
|
return e === void 0 && (e = 0), t === void 0 && (t = this.length), e >= t ? qe.empty : this.sliceInner(Math.max(0, e), Math.min(this.length, t));
|
|
@@ -20298,7 +20294,7 @@ var yg = /* @__PURE__ */ function(r) {
|
|
|
20298
20294
|
}, Object.defineProperties(e.prototype, t), e;
|
|
20299
20295
|
}(qe);
|
|
20300
20296
|
qe.empty = new yg([]);
|
|
20301
|
-
var
|
|
20297
|
+
var F5 = /* @__PURE__ */ function(r) {
|
|
20302
20298
|
function e(t, o) {
|
|
20303
20299
|
r.call(this), this.left = t, this.right = o, this.length = t.length + o.length, this.depth = Math.max(t.depth, o.depth) + 1;
|
|
20304
20300
|
}
|
|
@@ -20331,7 +20327,7 @@ var z5 = /* @__PURE__ */ function(r) {
|
|
|
20331
20327
|
return this.left.depth >= Math.max(this.right.depth, o.depth) + 1 ? new e(this.left, new e(this.right, o)) : new e(this, o);
|
|
20332
20328
|
}, e;
|
|
20333
20329
|
}(qe);
|
|
20334
|
-
const
|
|
20330
|
+
const z5 = 500;
|
|
20335
20331
|
class _t {
|
|
20336
20332
|
constructor(e, t) {
|
|
20337
20333
|
this.items = e, this.eventCount = t;
|
|
@@ -20376,7 +20372,7 @@ class _t {
|
|
|
20376
20372
|
return d > H5 && (a = j5(a, d), s -= d), new _t(a.append(i), s);
|
|
20377
20373
|
}
|
|
20378
20374
|
remapping(e, t) {
|
|
20379
|
-
let o = new
|
|
20375
|
+
let o = new Fn();
|
|
20380
20376
|
return this.items.forEach((n, i) => {
|
|
20381
20377
|
let s = n.mirrorOffset != null && i - n.mirrorOffset >= e ? o.maps.length - n.mirrorOffset : void 0;
|
|
20382
20378
|
o.appendMap(n.map, s);
|
|
@@ -20413,7 +20409,7 @@ class _t {
|
|
|
20413
20409
|
for (let u = t; u < s; u++)
|
|
20414
20410
|
d.push(new jt(i.maps[u]));
|
|
20415
20411
|
let c = this.items.slice(0, n).append(d).append(o), p = new _t(c, a);
|
|
20416
|
-
return p.emptyItemCount() >
|
|
20412
|
+
return p.emptyItemCount() > z5 && (p = p.compress(this.items.length - o.length)), p;
|
|
20417
20413
|
}
|
|
20418
20414
|
emptyItemCount() {
|
|
20419
20415
|
let e = 0;
|
|
@@ -20537,7 +20533,7 @@ function K5(r = {}) {
|
|
|
20537
20533
|
return r = {
|
|
20538
20534
|
depth: r.depth || 100,
|
|
20539
20535
|
newGroupDelay: r.newGroupDelay || 500
|
|
20540
|
-
}, new
|
|
20536
|
+
}, new ze({
|
|
20541
20537
|
key: co,
|
|
20542
20538
|
state: {
|
|
20543
20539
|
init() {
|
|
@@ -20599,7 +20595,7 @@ const vg = wg(!1, !0), xg = wg(!0, !0), G5 = Xe.create({
|
|
|
20599
20595
|
"Shift-Mod-я": () => this.editor.commands.redo()
|
|
20600
20596
|
};
|
|
20601
20597
|
}
|
|
20602
|
-
}), J5 =
|
|
20598
|
+
}), J5 = zt.create({
|
|
20603
20599
|
name: "horizontalRule",
|
|
20604
20600
|
addOptions() {
|
|
20605
20601
|
return {
|
|
@@ -20714,7 +20710,7 @@ const vg = wg(!1, !0), xg = wg(!0, !0), G5 = Xe.create({
|
|
|
20714
20710
|
})
|
|
20715
20711
|
];
|
|
20716
20712
|
}
|
|
20717
|
-
}), t3 =
|
|
20713
|
+
}), t3 = zt.create({
|
|
20718
20714
|
name: "listItem",
|
|
20719
20715
|
addOptions() {
|
|
20720
20716
|
return {
|
|
@@ -20742,7 +20738,7 @@ const vg = wg(!1, !0), xg = wg(!0, !0), G5 = Xe.create({
|
|
|
20742
20738
|
"Shift-Tab": () => this.editor.commands.liftListItem(this.name)
|
|
20743
20739
|
};
|
|
20744
20740
|
}
|
|
20745
|
-
}), r3 = "listItem", Zp = "textStyle", eu = /^(\d+)\.\s$/, o3 =
|
|
20741
|
+
}), r3 = "listItem", Zp = "textStyle", eu = /^(\d+)\.\s$/, o3 = zt.create({
|
|
20746
20742
|
name: "orderedList",
|
|
20747
20743
|
addOptions() {
|
|
20748
20744
|
return {
|
|
@@ -20808,7 +20804,7 @@ const vg = wg(!1, !0), xg = wg(!0, !0), G5 = Xe.create({
|
|
|
20808
20804
|
r
|
|
20809
20805
|
];
|
|
20810
20806
|
}
|
|
20811
|
-
}), n3 =
|
|
20807
|
+
}), n3 = zt.create({
|
|
20812
20808
|
name: "paragraph",
|
|
20813
20809
|
priority: 1e3,
|
|
20814
20810
|
addOptions() {
|
|
@@ -20892,7 +20888,7 @@ const vg = wg(!1, !0), xg = wg(!0, !0), G5 = Xe.create({
|
|
|
20892
20888
|
})
|
|
20893
20889
|
];
|
|
20894
20890
|
}
|
|
20895
|
-
}), l3 =
|
|
20891
|
+
}), l3 = zt.create({
|
|
20896
20892
|
name: "text",
|
|
20897
20893
|
group: "inline"
|
|
20898
20894
|
}), d3 = Xe.create({
|
|
@@ -21046,7 +21042,7 @@ ht.prototype = {
|
|
|
21046
21042
|
return n.j[r] = s, s;
|
|
21047
21043
|
}
|
|
21048
21044
|
};
|
|
21049
|
-
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), tu = (r, e, t, o, n) => r.ts(e, t, o, n), I = (r, e, t, o, n) => r.tt(e, t, o, n), sr = "WORD", ql = "UWORD", Sg = "ASCIINUMERICAL", Cg = "ALPHANUMERICAL", Yn = "LOCALHOST", Ul = "TLD", Kl = "UTLD", es = "SCHEME", Do = "SLASH_SCHEME", qd = "NUM", Gl = "WS", Ud = "NL", On = "OPENBRACE", Pn = "CLOSEBRACE", ks = "OPENBRACKET", Ss = "CLOSEBRACKET", Cs = "OPENPAREN", Ms = "CLOSEPAREN", Es = "OPENANGLEBRACKET", Ts = "CLOSEANGLEBRACKET", Os = "FULLWIDTHLEFTPAREN", Ps = "FULLWIDTHRIGHTPAREN", Bs = "LEFTCORNERBRACKET", As = "RIGHTCORNERBRACKET", Ls = "LEFTWHITECORNERBRACKET", Ds = "RIGHTWHITECORNERBRACKET", Ns = "FULLWIDTHLESSTHAN", Is = "FULLWIDTHGREATERTHAN", Rs = "AMPERSAND", $s = "APOSTROPHE", _s = "ASTERISK", kr = "AT",
|
|
21045
|
+
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), tu = (r, e, t, o, n) => r.ts(e, t, o, n), I = (r, e, t, o, n) => r.tt(e, t, o, n), sr = "WORD", ql = "UWORD", Sg = "ASCIINUMERICAL", Cg = "ALPHANUMERICAL", Yn = "LOCALHOST", Ul = "TLD", Kl = "UTLD", es = "SCHEME", Do = "SLASH_SCHEME", qd = "NUM", Gl = "WS", Ud = "NL", On = "OPENBRACE", Pn = "CLOSEBRACE", ks = "OPENBRACKET", Ss = "CLOSEBRACKET", Cs = "OPENPAREN", Ms = "CLOSEPAREN", Es = "OPENANGLEBRACKET", Ts = "CLOSEANGLEBRACKET", Os = "FULLWIDTHLEFTPAREN", Ps = "FULLWIDTHRIGHTPAREN", Bs = "LEFTCORNERBRACKET", As = "RIGHTCORNERBRACKET", Ls = "LEFTWHITECORNERBRACKET", Ds = "RIGHTWHITECORNERBRACKET", Ns = "FULLWIDTHLESSTHAN", Is = "FULLWIDTHGREATERTHAN", Rs = "AMPERSAND", $s = "APOSTROPHE", _s = "ASTERISK", kr = "AT", Fs = "BACKSLASH", zs = "BACKTICK", js = "CARET", Cr = "COLON", Kd = "COMMA", Hs = "DOLLAR", Ht = "DOT", Vs = "EQUALS", Gd = "EXCLAMATION", Tt = "HYPHEN", Bn = "PERCENT", Ws = "PIPE", qs = "PLUS", Us = "POUND", An = "QUERY", Jd = "QUOTE", Mg = "FULLWIDTHMIDDLEDOT", Yd = "SEMI", Vt = "SLASH", Ln = "TILDE", Ks = "UNDERSCORE", Eg = "EMOJI", Gs = "SYM";
|
|
21050
21046
|
var Tg = /* @__PURE__ */ Object.freeze({
|
|
21051
21047
|
__proto__: null,
|
|
21052
21048
|
ALPHANUMERICAL: Cg,
|
|
@@ -21055,8 +21051,8 @@ var Tg = /* @__PURE__ */ Object.freeze({
|
|
|
21055
21051
|
ASCIINUMERICAL: Sg,
|
|
21056
21052
|
ASTERISK: _s,
|
|
21057
21053
|
AT: kr,
|
|
21058
|
-
BACKSLASH:
|
|
21059
|
-
BACKTICK:
|
|
21054
|
+
BACKSLASH: Fs,
|
|
21055
|
+
BACKTICK: zs,
|
|
21060
21056
|
CARET: js,
|
|
21061
21057
|
CLOSEANGLEBRACKET: Ts,
|
|
21062
21058
|
CLOSEBRACE: Pn,
|
|
@@ -21112,7 +21108,7 @@ function y3(r = []) {
|
|
|
21112
21108
|
const e = {};
|
|
21113
21109
|
ht.groups = e;
|
|
21114
21110
|
const t = new ht();
|
|
21115
|
-
ji == null && (ji = ou(c3)), Hi == null && (Hi = ou(p3)), I(t, "'", $s), I(t, "{", On), I(t, "}", Pn), I(t, "[", ks), I(t, "]", Ss), I(t, "(", Cs), I(t, ")", Ms), I(t, "<", Es), I(t, ">", Ts), I(t, "(", Os), I(t, ")", Ps), I(t, "「", Bs), I(t, "」", As), I(t, "『", Ls), I(t, "』", Ds), I(t, "<", Ns), I(t, ">", Is), I(t, "&", Rs), I(t, "*", _s), I(t, "@", kr), I(t, "`",
|
|
21111
|
+
ji == null && (ji = ou(c3)), Hi == null && (Hi = ou(p3)), I(t, "'", $s), I(t, "{", On), I(t, "}", Pn), I(t, "[", ks), I(t, "]", Ss), I(t, "(", Cs), I(t, ")", Ms), I(t, "<", Es), I(t, ">", Ts), I(t, "(", Os), I(t, ")", Ps), I(t, "「", Bs), I(t, "」", As), I(t, "『", Ls), I(t, "』", Ds), I(t, "<", Ns), I(t, ">", Is), I(t, "&", Rs), I(t, "*", _s), I(t, "@", kr), I(t, "`", zs), I(t, "^", js), I(t, ":", Cr), I(t, ",", Kd), I(t, "$", Hs), I(t, ".", Ht), I(t, "=", Vs), I(t, "!", Gd), I(t, "-", Tt), I(t, "%", Bn), I(t, "|", Ws), I(t, "+", qs), I(t, "#", Us), I(t, "?", An), I(t, '"', Jd), I(t, "/", Vt), I(t, ";", Yd), I(t, "~", Ln), I(t, "_", Ks), I(t, "\\", Fs), I(t, "・", Mg);
|
|
21116
21112
|
const o = Te(t, ir, qd, {
|
|
21117
21113
|
[jl]: !0
|
|
21118
21114
|
});
|
|
@@ -21468,7 +21464,7 @@ const iu = ba("email", {
|
|
|
21468
21464
|
function x3({
|
|
21469
21465
|
groups: r
|
|
21470
21466
|
}) {
|
|
21471
|
-
const e = r.domain.concat([Rs, _s, kr,
|
|
21467
|
+
const e = r.domain.concat([Rs, _s, kr, Fs, zs, js, Hs, Vs, Tt, qd, Bn, Ws, qs, Us, Vt, Gs, Ln, Ks]), t = [$s, Cr, Kd, Ht, Gd, Bn, An, Jd, Yd, Es, Ts, On, Pn, Ss, ks, Cs, Ms, Os, Ps, Bs, As, Ls, Ds, Ns, Is], o = [Rs, $s, _s, Fs, zs, js, Hs, Vs, Tt, On, Pn, Bn, Ws, qs, Us, An, Vt, Gs, Ln, Ks], n = Mt(), i = I(n, Ln);
|
|
21472
21468
|
ee(i, o, i), ee(i, r.domain, i);
|
|
21473
21469
|
const s = Mt(), a = Mt(), l = Mt();
|
|
21474
21470
|
ee(n, r.domain, s), ee(n, r.scheme, a), ee(n, r.slashscheme, l), ee(s, o, i), ee(s, r.domain, s);
|
|
@@ -21494,7 +21490,7 @@ function x3({
|
|
|
21494
21490
|
ee(E, r.numeric, y);
|
|
21495
21491
|
const P = Mt(Vi), x = Mt();
|
|
21496
21492
|
ee(P, e, P), ee(P, t, x), ee(x, e, P), ee(x, t, x), I(C, Vt, P), I(y, Vt, P);
|
|
21497
|
-
const v = I(a, Cr),
|
|
21493
|
+
const v = I(a, Cr), F = I(l, Cr), _ = I(F, Vt), B = I(_, Vt);
|
|
21498
21494
|
ee(a, r.domain, s), I(a, Ht, w), I(a, Tt, b), ee(l, r.domain, s), I(l, Ht, w), I(l, Tt, b), ee(v, r.domain, P), I(v, Vt, P), I(v, An, P), ee(B, r.domain, P), ee(B, e, P), I(B, Vt, P);
|
|
21499
21495
|
const T = [
|
|
21500
21496
|
[On, Pn],
|
|
@@ -21604,13 +21600,13 @@ function T3(r) {
|
|
|
21604
21600
|
return r.length === 1 ? r[0].isLink : r.length === 3 && r[1].isLink ? ["()", "[]"].includes(r[0].value + r[2].value) : !1;
|
|
21605
21601
|
}
|
|
21606
21602
|
function O3(r) {
|
|
21607
|
-
return new
|
|
21603
|
+
return new ze({
|
|
21608
21604
|
key: new ut("autolink"),
|
|
21609
21605
|
appendTransaction: (e, t, o) => {
|
|
21610
21606
|
const n = e.some((d) => d.docChanged) && !t.doc.eq(o.doc), i = e.some((d) => d.getMeta("preventAutolink"));
|
|
21611
21607
|
if (!n || i)
|
|
21612
21608
|
return;
|
|
21613
|
-
const { tr: s } = o, a =
|
|
21609
|
+
const { tr: s } = o, a = Fv(t.doc, [...e]);
|
|
21614
21610
|
if (Uv(a).forEach(({ newRange: d }) => {
|
|
21615
21611
|
const c = jv(o.doc, d, (m) => m.isTextblock);
|
|
21616
21612
|
let p, u;
|
|
@@ -21640,7 +21636,7 @@ function O3(r) {
|
|
|
21640
21636
|
});
|
|
21641
21637
|
}
|
|
21642
21638
|
function P3(r) {
|
|
21643
|
-
return new
|
|
21639
|
+
return new ze({
|
|
21644
21640
|
key: new ut("handleClickLink"),
|
|
21645
21641
|
props: {
|
|
21646
21642
|
handleClick: (e, t, o) => {
|
|
@@ -21660,7 +21656,7 @@ function P3(r) {
|
|
|
21660
21656
|
});
|
|
21661
21657
|
}
|
|
21662
21658
|
function B3(r) {
|
|
21663
|
-
return new
|
|
21659
|
+
return new ze({
|
|
21664
21660
|
key: new ut("handlePasteLink"),
|
|
21665
21661
|
props: {
|
|
21666
21662
|
handlePaste: (e, t, o) => {
|
|
@@ -21858,7 +21854,7 @@ const L3 = hr.create({
|
|
|
21858
21854
|
}), D3 = { class: "myInputGroup" }, N3 = {
|
|
21859
21855
|
key: 0,
|
|
21860
21856
|
class: "min-h-[2.5rem] flex items-center justify-start"
|
|
21861
|
-
}, I3 = { class: "myPrimaryInputError mt-2 mb-0 py-0 self-start" }, R3 = { class: "blockease-linear duration-200 block ease-linear" }, $3 = { key: 0 }, _3 = { class: "relative rounded-lg" },
|
|
21857
|
+
}, I3 = { class: "myPrimaryInputError mt-2 mb-0 py-0 self-start" }, R3 = { class: "blockease-linear duration-200 block ease-linear" }, $3 = { key: 0 }, _3 = { class: "relative rounded-lg" }, F3 = { class: "flex justify-between myPrimaryGap items-center divide-x divide-gray-200 py-4 px-4 overflow-x-auto border-b border-gray-20" }, z3 = { class: "px-2 flex items-center justify-start gap-2" }, j3 = { class: "flex items-center 0 divide-x divide-gray-200" }, H3 = { class: "px-2 flex items-center justify-start gap-2" }, V3 = { class: "px-2 flex items-center justify-start gap-2" }, W3 = { class: "px-2 flex items-center justify-start gap-2" }, q3 = { class: "px-2 flex items-center justify-start gap-2" }, U3 = { class: "px-2 flex items-center justify-start gap-2" }, K3 = { class: "px-2 flex items-center justify-start gap-2" }, G3 = {
|
|
21862
21858
|
__name: "TipTapInput",
|
|
21863
21859
|
setup(r) {
|
|
21864
21860
|
const e = Le, t = S(!1), o = S(""), n = S(1), i = S(""), s = S(""), a = S(""), l = S(null), d = S(null), c = S(null), p = S(null), u = S(null), m = new Ze(e), g = L(() => e.getElement), f = S(""), b = L(() => {
|
|
@@ -21906,10 +21902,10 @@ const L3 = hr.create({
|
|
|
21906
21902
|
}, p.value = function() {
|
|
21907
21903
|
C.value.chain().focus().extendMarkRange("link").unsetLink().run(), t.value = !1;
|
|
21908
21904
|
}, u.value = function() {
|
|
21909
|
-
const B =
|
|
21905
|
+
const B = F();
|
|
21910
21906
|
B || (B || _(), t.value = !1);
|
|
21911
21907
|
};
|
|
21912
|
-
},
|
|
21908
|
+
}, F = function() {
|
|
21913
21909
|
x.value = null;
|
|
21914
21910
|
const B = /^https?:\/\//, T = S(!0);
|
|
21915
21911
|
return T.value = B.test(P.value), T.value === !1 ? (x.value = "The provided URL is invalid. Please ensure that it begins with 'https://' for proper formatting and security.", !0) : !1;
|
|
@@ -21954,7 +21950,7 @@ const L3 = hr.create({
|
|
|
21954
21950
|
[Ql, y.value]
|
|
21955
21951
|
]),
|
|
21956
21952
|
x.value ? (k(), M("div", N3, [
|
|
21957
|
-
h("p", I3,
|
|
21953
|
+
h("p", I3, z(x.value), 1)
|
|
21958
21954
|
])) : D("", !0)
|
|
21959
21955
|
])
|
|
21960
21956
|
])
|
|
@@ -21965,10 +21961,10 @@ const L3 = hr.create({
|
|
|
21965
21961
|
h("div", R3, [
|
|
21966
21962
|
O(m).selectedElementIsValidText() && O(C) ? (k(), M("div", $3, [
|
|
21967
21963
|
h("div", _3, [
|
|
21968
|
-
h("div",
|
|
21964
|
+
h("div", F3, [
|
|
21969
21965
|
h("div", null, [
|
|
21970
21966
|
h("div", null, [
|
|
21971
|
-
h("div",
|
|
21967
|
+
h("div", z3, [
|
|
21972
21968
|
h("button", {
|
|
21973
21969
|
onClick: T[1] || (T[1] = (j) => O(e).setShowModalTipTap(!1)),
|
|
21974
21970
|
type: "button",
|
|
@@ -22170,7 +22166,7 @@ const Q3 = /* @__PURE__ */ Zd(J3, [["render", Y3]]), X3 = { class: "flex items-e
|
|
|
22170
22166
|
class: "tertiaryHeader my-0 py-0"
|
|
22171
22167
|
}, {
|
|
22172
22168
|
default: $(() => [
|
|
22173
|
-
Ie(
|
|
22169
|
+
Ie(z(r.title), 1)
|
|
22174
22170
|
]),
|
|
22175
22171
|
_: 1
|
|
22176
22172
|
}),
|
|
@@ -22198,13 +22194,13 @@ const Q3 = /* @__PURE__ */ Zd(J3, [["render", Y3]]), X3 = { class: "flex items-e
|
|
|
22198
22194
|
onClick: o,
|
|
22199
22195
|
class: "mySecondaryButton focus:ring-2 focus:ring-blue-500",
|
|
22200
22196
|
type: "button"
|
|
22201
|
-
},
|
|
22197
|
+
}, z(r.firstButtonText), 1)) : D("", !0),
|
|
22202
22198
|
r.secondButtonText ? (k(), M("button", {
|
|
22203
22199
|
key: 1,
|
|
22204
22200
|
onClick: n,
|
|
22205
22201
|
class: "myPrimaryButton focus:ring-2 focus:ring-blue-500",
|
|
22206
22202
|
type: "button"
|
|
22207
|
-
},
|
|
22203
|
+
}, z(r.secondButtonText), 1)) : D("", !0)
|
|
22208
22204
|
])) : D("", !0)
|
|
22209
22205
|
])
|
|
22210
22206
|
]),
|
|
@@ -22260,7 +22256,7 @@ const Q3 = /* @__PURE__ */ Zd(J3, [["render", Y3]]), X3 = { class: "flex items-e
|
|
|
22260
22256
|
h("div", {
|
|
22261
22257
|
class: Y(["aspect-square w-6 h-6 border border-gray-800 rounded-sm", `bg-${(a = o.value) == null ? void 0 : a.replace("text-", "")}`])
|
|
22262
22258
|
}, null, 2),
|
|
22263
|
-
h("span", l4,
|
|
22259
|
+
h("span", l4, z(o.value), 1)
|
|
22264
22260
|
])) : D("", !0)
|
|
22265
22261
|
];
|
|
22266
22262
|
}),
|
|
@@ -22295,7 +22291,7 @@ const Q3 = /* @__PURE__ */ Zd(J3, [["render", Y3]]), X3 = { class: "flex items-e
|
|
|
22295
22291
|
h("div", {
|
|
22296
22292
|
class: Y(["aspect-square w-6 h-6 border border-gray-100 rounded-sm", `bg-${a.replace("text-", "")}`])
|
|
22297
22293
|
}, null, 2),
|
|
22298
|
-
h("span", p4,
|
|
22294
|
+
h("span", p4, z(a), 1)
|
|
22299
22295
|
])) : D("", !0)
|
|
22300
22296
|
], 2)
|
|
22301
22297
|
]),
|
|
@@ -22353,7 +22349,7 @@ const Q3 = /* @__PURE__ */ Zd(J3, [["render", Y3]]), X3 = { class: "flex items-e
|
|
|
22353
22349
|
h("div", {
|
|
22354
22350
|
class: Y(["aspect-square w-6 h-6 border border-gray-800 rounded-sm", `bg-${(a = o.value) == null ? void 0 : a.replace("bg-", "")}`])
|
|
22355
22351
|
}, null, 2),
|
|
22356
|
-
h("span", f4,
|
|
22352
|
+
h("span", f4, z(o.value), 1)
|
|
22357
22353
|
])) : D("", !0)
|
|
22358
22354
|
];
|
|
22359
22355
|
}),
|
|
@@ -22388,7 +22384,7 @@ const Q3 = /* @__PURE__ */ Zd(J3, [["render", Y3]]), X3 = { class: "flex items-e
|
|
|
22388
22384
|
h("div", {
|
|
22389
22385
|
class: Y(["aspect-square w-6 h-6 border border-gray-100 rounded-sm", `bg-${a.replace("bg-", "")}`])
|
|
22390
22386
|
}, null, 2),
|
|
22391
|
-
h("span", w4,
|
|
22387
|
+
h("span", w4, z(a), 1)
|
|
22392
22388
|
])) : D("", !0)
|
|
22393
22389
|
], 2)
|
|
22394
22390
|
]),
|
|
@@ -22420,7 +22416,7 @@ const Q3 = /* @__PURE__ */ Zd(J3, [["render", Y3]]), X3 = { class: "flex items-e
|
|
|
22420
22416
|
}, D4 = {
|
|
22421
22417
|
__name: "EditGetElement",
|
|
22422
22418
|
setup(r) {
|
|
22423
|
-
const e = Le, t =
|
|
22419
|
+
const e = Le, t = Fe("CustomMediaComponent"), o = new Ze(e), n = L(() => e.getElement), i = L(() => {
|
|
22424
22420
|
const se = e.getShowModalTipTap;
|
|
22425
22421
|
return se && w(), se;
|
|
22426
22422
|
});
|
|
@@ -22431,8 +22427,8 @@ const Q3 = /* @__PURE__ */ Zd(J3, [["render", Y3]]), X3 = { class: "flex items-e
|
|
|
22431
22427
|
}, b.value = function() {
|
|
22432
22428
|
e.setShowModalTipTap(!1);
|
|
22433
22429
|
};
|
|
22434
|
-
}, C = L(() => e.getBasePrimaryImage), E = S(!1), y = S(!1), P = S(""), x = S(""), v = S(""),
|
|
22435
|
-
y.value = !0, P.value = "Media Library", x.value = null, v.value = "Close",
|
|
22430
|
+
}, C = L(() => e.getBasePrimaryImage), E = S(!1), y = S(!1), P = S(""), x = S(""), v = S(""), F = S(null), _ = S(null), B = S(null), T = S(null), j = S(null), q = function() {
|
|
22431
|
+
y.value = !0, P.value = "Media Library", x.value = null, v.value = "Close", F.value = "Select image", B.value = function() {
|
|
22436
22432
|
y.value = !1;
|
|
22437
22433
|
}, T.value = function() {
|
|
22438
22434
|
E.value = !0, o.updateBasePrimaryImage({ type: "unsplash" }), y.value = !1, E.value = !1;
|
|
@@ -22485,7 +22481,7 @@ const Q3 = /* @__PURE__ */ Zd(J3, [["render", Y3]]), X3 = { class: "flex items-e
|
|
|
22485
22481
|
[Ql, Q.value]
|
|
22486
22482
|
]),
|
|
22487
22483
|
oe.value ? (k(), M("div", C4, [
|
|
22488
|
-
h("p", M4,
|
|
22484
|
+
h("p", M4, z(oe.value), 1)
|
|
22489
22485
|
])) : D("", !0)
|
|
22490
22486
|
])
|
|
22491
22487
|
])
|
|
@@ -22524,7 +22520,7 @@ const Q3 = /* @__PURE__ */ Zd(J3, [["render", Y3]]), X3 = { class: "flex items-e
|
|
|
22524
22520
|
title: P.value,
|
|
22525
22521
|
description: x.value,
|
|
22526
22522
|
firstButtonText: v.value,
|
|
22527
|
-
secondButtonText:
|
|
22523
|
+
secondButtonText: F.value,
|
|
22528
22524
|
thirdButtonText: _.value,
|
|
22529
22525
|
customMediaComponent: O(t),
|
|
22530
22526
|
onFirstMediaButtonFunction: B.value,
|
|
@@ -23130,7 +23126,7 @@ class="border-2 border-gray-600 flex items-centre justify-start rounded-md font-
|
|
|
23130
23126
|
}
|
|
23131
23127
|
];
|
|
23132
23128
|
function _4() {
|
|
23133
|
-
const r =
|
|
23129
|
+
const r = Fe("closeAddComponentModal", null), e = Fe("closeMediaLibraryModal", null);
|
|
23134
23130
|
return {
|
|
23135
23131
|
closeAddComponentModal: r || (() => {
|
|
23136
23132
|
console.warn(
|
|
@@ -23144,7 +23140,7 @@ function _4() {
|
|
|
23144
23140
|
})
|
|
23145
23141
|
};
|
|
23146
23142
|
}
|
|
23147
|
-
const
|
|
23143
|
+
const F4 = { class: "p-4" }, z4 = { class: "mb-8" }, j4 = { class: "grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4" }, H4 = ["onClick"], V4 = { class: "max-h-72 cursor-pointer object-contain bg-white mx-auto" }, W4 = { class: "myPrimaryParagraph text-base font-medium" }, q4 = { class: "myPrimaryParagraph text-xs font-normal pt-2" }, U4 = { class: "grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-4" }, K4 = ["onClick"], G4 = { class: "overflow-hidden whitespace-pre-line flex-1 h-auto border-b border-gray-200 lg:py-10 py-8 px-2" }, J4 = ["innerHTML"], Y4 = { class: "p-3" }, Q4 = { class: "myPrimaryParagraph text-sm font-normal" }, X4 = /* @__PURE__ */ ue({
|
|
23148
23144
|
__name: "NoneCustomSearchComponent",
|
|
23149
23145
|
setup(r) {
|
|
23150
23146
|
const { closeAddComponentModal: e } = _4(), t = Le, o = new Ze(t), n = function(a) {
|
|
@@ -23157,8 +23153,8 @@ const z4 = { class: "p-4" }, F4 = { class: "mb-8" }, j4 = { class: "grid grid-co
|
|
|
23157
23153
|
title: a.title
|
|
23158
23154
|
};
|
|
23159
23155
|
}, s = (a) => R4(a);
|
|
23160
|
-
return (a, l) => (k(), M("div",
|
|
23161
|
-
h("div",
|
|
23156
|
+
return (a, l) => (k(), M("div", F4, [
|
|
23157
|
+
h("div", z4, [
|
|
23162
23158
|
l[0] || (l[0] = h("h3", { class: "myQuaternaryHeader mb-4" }, "Helper Components", -1)),
|
|
23163
23159
|
h("div", j4, [
|
|
23164
23160
|
(k(!0), M(we, null, Ae(O(N4), (d) => (k(), M("div", {
|
|
@@ -23168,9 +23164,9 @@ const z4 = { class: "p-4" }, F4 = { class: "mb-8" }, j4 = { class: "grid grid-co
|
|
|
23168
23164
|
}, [
|
|
23169
23165
|
h("div", V4, [
|
|
23170
23166
|
D("", !0),
|
|
23171
|
-
h("h4", W4,
|
|
23167
|
+
h("h4", W4, z(d.title), 1)
|
|
23172
23168
|
]),
|
|
23173
|
-
h("div", q4, " Click to add " +
|
|
23169
|
+
h("div", q4, " Click to add " + z(d.title.toLowerCase()) + " component ", 1)
|
|
23174
23170
|
], 8, H4))), 128))
|
|
23175
23171
|
])
|
|
23176
23172
|
]),
|
|
@@ -23189,7 +23185,7 @@ const z4 = { class: "p-4" }, F4 = { class: "mb-8" }, j4 = { class: "grid grid-co
|
|
|
23189
23185
|
}, null, 8, J4)
|
|
23190
23186
|
]),
|
|
23191
23187
|
h("div", Y4, [
|
|
23192
|
-
h("h4", Q4,
|
|
23188
|
+
h("h4", Q4, z(d.title), 1),
|
|
23193
23189
|
l[1] || (l[1] = h("div", { class: "myPrimaryParagraph text-xs font-normal pt-2" }, "Click to add component", -1))
|
|
23194
23190
|
])
|
|
23195
23191
|
], 8, K4))), 128))
|
|
@@ -23235,7 +23231,7 @@ const z4 = { class: "p-4" }, F4 = { class: "mb-8" }, j4 = { class: "grid grid-co
|
|
|
23235
23231
|
h("div", ek, [
|
|
23236
23232
|
h("div", tk, [
|
|
23237
23233
|
h("div", rk, [
|
|
23238
|
-
h("h3", ok,
|
|
23234
|
+
h("h3", ok, z(r.title), 1)
|
|
23239
23235
|
]),
|
|
23240
23236
|
h("div", {
|
|
23241
23237
|
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",
|
|
@@ -23260,7 +23256,7 @@ const z4 = { class: "p-4" }, F4 = { class: "mb-8" }, j4 = { class: "grid grid-co
|
|
|
23260
23256
|
class: "mySecondaryButton",
|
|
23261
23257
|
type: "button",
|
|
23262
23258
|
onClick: o
|
|
23263
|
-
},
|
|
23259
|
+
}, z(r.firstButtonText), 513)) : D("", !0)
|
|
23264
23260
|
])
|
|
23265
23261
|
])
|
|
23266
23262
|
]),
|
|
@@ -23312,7 +23308,7 @@ const z4 = { class: "p-4" }, F4 = { class: "mb-8" }, j4 = { class: "grid grid-co
|
|
|
23312
23308
|
h("div", gk, [
|
|
23313
23309
|
R(O(nd), { class: "myTertiaryHeader my-0" }, {
|
|
23314
23310
|
default: $(() => [
|
|
23315
|
-
Ie(
|
|
23311
|
+
Ie(z(r.title), 1)
|
|
23316
23312
|
]),
|
|
23317
23313
|
_: 1
|
|
23318
23314
|
}),
|
|
@@ -23393,7 +23389,7 @@ const z4 = { class: "p-4" }, F4 = { class: "mb-8" }, j4 = { class: "grid grid-co
|
|
|
23393
23389
|
h("div", Ck, [
|
|
23394
23390
|
R(O(nd), { class: "myTertiaryHeader my-0" }, {
|
|
23395
23391
|
default: $(() => [
|
|
23396
|
-
Ie(
|
|
23392
|
+
Ie(z(r.title), 1)
|
|
23397
23393
|
]),
|
|
23398
23394
|
_: 1
|
|
23399
23395
|
}),
|
|
@@ -23441,7 +23437,7 @@ const z4 = { class: "p-4" }, F4 = { class: "mb-8" }, j4 = { class: "grid grid-co
|
|
|
23441
23437
|
}, Ik = {
|
|
23442
23438
|
key: 3,
|
|
23443
23439
|
class: "text-xs pb-2"
|
|
23444
|
-
}, Rk = { class: "text-xs pb-2" }, $k = { class: "overflow-hidden bg-gray-900 max-w-2xl" }, _k = { class: "flex bg-gray-800/40 ring-1 ring-white/5" },
|
|
23440
|
+
}, Rk = { class: "text-xs pb-2" }, $k = { class: "overflow-hidden bg-gray-900 max-w-2xl" }, _k = { class: "flex bg-gray-800/40 ring-1 ring-white/5" }, Fk = { class: "-mb-px flex text-xs font-medium text-myPrimaryMediumGrayColor" }, zk = { class: "px-4 pb-8 pt-4 text-white text-xs break-all" }, jk = { key: 0 }, Hk = { key: 0 }, Vk = { class: "pb-2" }, Wk = { key: 1 }, qk = { class: "flex flex-col gap-4 border-b border-white mb-4 pb-4" }, Uk = { class: "whitespace-pre-line leading-5" }, Kk = { class: "flex flex-col gap-2 mt-4 border-b border-white mb-4 pb-4" }, Gk = { class: "whitespace-pre-line leading-5" }, Jk = { class: "flex flex-col gap-2 mt-4 border-b border-white mb-4 pb-4" }, Yk = { class: "whitespace-pre-line leading-5" }, Qk = { class: "flex flex-col gap-2 mt-4 border-b border-white mb-4 pb-4" }, Xk = { class: "whitespace-pre-line leading-5" }, Zk = { key: 1 }, e6 = { key: 0 }, t6 = { class: "pb-2" }, r6 = { key: 1 }, o6 = { class: "pb-2" }, n6 = { class: "whitespace-pre-line leading-5 mt-4" }, i6 = { class: "whitespace-pre-line leading-5 mt-4" }, s6 = { key: 2 }, a6 = { key: 0 }, l6 = { class: "pb-2" }, d6 = { key: 1 }, c6 = { class: "pb-2" }, p6 = { class: "whitespace-pre-line leading-5 mt-4" }, u6 = { class: "whitespace-pre-line leading-5 mt-4" }, m6 = {
|
|
23445
23441
|
__name: "AdvancedPageBuilderSettings",
|
|
23446
23442
|
setup(r) {
|
|
23447
23443
|
const e = Le, t = L(() => e.getElement), o = L(() => e.getComponent), n = L(() => e.getComponents), i = S("element"), s = function(a) {
|
|
@@ -23465,19 +23461,19 @@ const z4 = { class: "p-4" }, F4 = { class: "mb-8" }, j4 = { class: "grid grid-co
|
|
|
23465
23461
|
t.value === null || t.value === void 0 ? (k(), M("p", Lk)) : D("", !0),
|
|
23466
23462
|
t.value !== null && t.value !== void 0 ? (k(), M("p", Dk, [
|
|
23467
23463
|
l[3] || (l[3] = h("span", null, "Element type: ", -1)),
|
|
23468
|
-
h("span", null,
|
|
23464
|
+
h("span", null, z(typeof t.value), 1)
|
|
23469
23465
|
])) : D("", !0),
|
|
23470
23466
|
o.value === null || o.value === void 0 ? (k(), M("p", Nk, [
|
|
23471
23467
|
l[4] || (l[4] = h("span", null, "Component type: ", -1)),
|
|
23472
|
-
Ie(" " +
|
|
23468
|
+
Ie(" " + z(JSON.stringify(o.value)), 1)
|
|
23473
23469
|
])) : D("", !0),
|
|
23474
23470
|
o.value !== null && o.value !== void 0 ? (k(), M("p", Ik, [
|
|
23475
23471
|
l[5] || (l[5] = h("span", null, "Component type: ", -1)),
|
|
23476
|
-
h("span", null,
|
|
23472
|
+
h("span", null, z(Array.isArray(o.value) === !0 ? "array" : typeof o.value), 1)
|
|
23477
23473
|
])) : D("", !0),
|
|
23478
23474
|
h("p", Rk, [
|
|
23479
23475
|
l[6] || (l[6] = h("span", null, "Components: ", -1)),
|
|
23480
|
-
h("span", null,
|
|
23476
|
+
h("span", null, z(Array.isArray(n.value) === !0 ? "array" : typeof n.value), 1)
|
|
23481
23477
|
])
|
|
23482
23478
|
])
|
|
23483
23479
|
])
|
|
@@ -23486,7 +23482,7 @@ const z4 = { class: "p-4" }, F4 = { class: "mb-8" }, j4 = { class: "grid grid-co
|
|
|
23486
23482
|
l[17] || (l[17] = h("h4", { class: "myPrimaryParagraph text-sm pb-2" }, "Content", -1)),
|
|
23487
23483
|
h("div", $k, [
|
|
23488
23484
|
h("div", _k, [
|
|
23489
|
-
h("div",
|
|
23485
|
+
h("div", Fk, [
|
|
23490
23486
|
h("div", {
|
|
23491
23487
|
onClick: l[0] || (l[0] = (x) => s("element")),
|
|
23492
23488
|
class: Y(["px-4 py-4 cursor-pointer", [i.value === "element" ? "text-white" : ""]])
|
|
@@ -23498,50 +23494,50 @@ const z4 = { class: "p-4" }, F4 = { class: "mb-8" }, j4 = { class: "grid grid-co
|
|
|
23498
23494
|
h("div", {
|
|
23499
23495
|
onClick: l[2] || (l[2] = (x) => s("components")),
|
|
23500
23496
|
class: Y(["px-4 py-4 cursor-pointer", [i.value === "components" ? "text-white" : ""]])
|
|
23501
|
-
}, " Components " +
|
|
23497
|
+
}, " Components " + z(Array.isArray(n.value) && n.value.length), 3)
|
|
23502
23498
|
])
|
|
23503
23499
|
]),
|
|
23504
|
-
h("div",
|
|
23500
|
+
h("div", zk, [
|
|
23505
23501
|
i.value === "element" ? (k(), M("div", jk, [
|
|
23506
23502
|
o.value ? D("", !0) : (k(), M("div", Hk, [
|
|
23507
|
-
h("p", Vk,
|
|
23503
|
+
h("p", Vk, z(o.value === null ? "NULL" : typeof o.value), 1)
|
|
23508
23504
|
])),
|
|
23509
23505
|
t.value ? (k(), M("div", Wk, [
|
|
23510
23506
|
h("div", qk, [
|
|
23511
23507
|
l[9] || (l[9] = h("p", null, "Selected HTML:", -1)),
|
|
23512
|
-
h("p", Uk,
|
|
23508
|
+
h("p", Uk, z((d = t.value) == null ? void 0 : d.outerHTML), 1)
|
|
23513
23509
|
]),
|
|
23514
23510
|
h("div", Kk, [
|
|
23515
23511
|
l[10] || (l[10] = h("p", null, "Selected element src:", -1)),
|
|
23516
|
-
h("p", Gk,
|
|
23512
|
+
h("p", Gk, z((c = t.value) != null && c.src ? (p = t.value) == null ? void 0 : p.src : typeof ((u = t.value) == null ? void 0 : u.src)), 1)
|
|
23517
23513
|
]),
|
|
23518
23514
|
h("div", Jk, [
|
|
23519
23515
|
l[11] || (l[11] = h("p", null, "Selected element href:", -1)),
|
|
23520
|
-
h("p", Yk,
|
|
23516
|
+
h("p", Yk, z((m = t.value) != null && m.href ? (g = t.value) == null ? void 0 : g.href : typeof ((f = t.value) == null ? void 0 : f.href)), 1)
|
|
23521
23517
|
]),
|
|
23522
23518
|
h("div", Qk, [
|
|
23523
23519
|
l[12] || (l[12] = h("p", null, "Selected element class:", -1)),
|
|
23524
|
-
h("p", Xk,
|
|
23520
|
+
h("p", Xk, z((b = t.value) != null && b.classList ? (w = t.value) == null ? void 0 : w.classList : typeof ((C = t.value) == null ? void 0 : C.classList)), 1)
|
|
23525
23521
|
])
|
|
23526
23522
|
])) : D("", !0)
|
|
23527
23523
|
])) : D("", !0),
|
|
23528
23524
|
i.value === "component" ? (k(), M("div", Zk, [
|
|
23529
23525
|
o.value ? D("", !0) : (k(), M("div", e6, [
|
|
23530
|
-
h("p", t6,
|
|
23526
|
+
h("p", t6, z(o.value === null ? "NULL" : typeof o.value), 1)
|
|
23531
23527
|
])),
|
|
23532
23528
|
o.value ? (k(), M("div", r6, [
|
|
23533
|
-
h("p", o6, " Component ID: " +
|
|
23529
|
+
h("p", o6, " Component ID: " + z((E = o.value) == null ? void 0 : E.id), 1),
|
|
23534
23530
|
h("p", n6, [
|
|
23535
23531
|
l[13] || (l[13] = Ie(" Component Title:")),
|
|
23536
23532
|
l[14] || (l[14] = h("br", null, null, -1)),
|
|
23537
|
-
Ie(" " +
|
|
23533
|
+
Ie(" " + z((y = o.value) == null ? void 0 : y.title), 1)
|
|
23538
23534
|
]),
|
|
23539
|
-
h("p", i6, " Component HTML: " +
|
|
23535
|
+
h("p", i6, " Component HTML: " + z((P = o.value) == null ? void 0 : P.html_code), 1)
|
|
23540
23536
|
])) : D("", !0)
|
|
23541
23537
|
])) : D("", !0),
|
|
23542
23538
|
i.value === "components" ? (k(), M("div", s6, [
|
|
23543
23539
|
n.value ? D("", !0) : (k(), M("div", a6, [
|
|
23544
|
-
h("p", l6,
|
|
23540
|
+
h("p", l6, z(n.value === null ? "NULL" : typeof n.value), 1)
|
|
23545
23541
|
])),
|
|
23546
23542
|
n.value ? (k(), M("div", d6, [
|
|
23547
23543
|
(k(!0), M(we, null, Ae(n.value, (x) => {
|
|
@@ -23550,12 +23546,12 @@ const z4 = { class: "p-4" }, F4 = { class: "mb-8" }, j4 = { class: "grid grid-co
|
|
|
23550
23546
|
class: "border-b border-white mb-4 pb-4 last:border-none",
|
|
23551
23547
|
key: x.id
|
|
23552
23548
|
}, [
|
|
23553
|
-
h("p", c6, " Component ID: " +
|
|
23554
|
-
h("p", p6, " Component Title: " +
|
|
23549
|
+
h("p", c6, " Component ID: " + z(x.id), 1),
|
|
23550
|
+
h("p", p6, " Component Title: " + z((v = o.value) == null ? void 0 : v.title), 1),
|
|
23555
23551
|
h("p", u6, [
|
|
23556
23552
|
l[15] || (l[15] = Ie(" Component HTML:")),
|
|
23557
23553
|
l[16] || (l[16] = h("br", null, null, -1)),
|
|
23558
|
-
Ie(" " +
|
|
23554
|
+
Ie(" " + z(x.html_code), 1)
|
|
23559
23555
|
])
|
|
23560
23556
|
]);
|
|
23561
23557
|
}), 128))
|
|
@@ -23576,7 +23572,7 @@ const z4 = { class: "p-4" }, F4 = { class: "mb-8" }, j4 = { class: "grid grid-co
|
|
|
23576
23572
|
}, E6 = { class: "overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg" }, T6 = { class: "overflow-x-auto" }, O6 = { class: "min-w-full divide-y divide-gray-300" }, P6 = { class: "bg-white divide-y divide-gray-200" }, B6 = { key: 0 }, A6 = { class: "px-6 py-4 whitespace-nowrap text-sm text-gray-500" }, L6 = { key: 1 }, D6 = { class: "px-6 py-4 whitespace-nowrap text-sm text-gray-500" }, N6 = {
|
|
23577
23573
|
key: 1,
|
|
23578
23574
|
class: "mt-8"
|
|
23579
|
-
}, I6 = { class: "overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg" }, R6 = { class: "overflow-x-auto" }, $6 = { class: "min-w-full divide-y divide-gray-300" }, _6 = { class: "bg-white divide-y divide-gray-200" },
|
|
23575
|
+
}, I6 = { class: "overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg" }, R6 = { class: "overflow-x-auto" }, $6 = { class: "min-w-full divide-y divide-gray-300" }, _6 = { class: "bg-white divide-y divide-gray-200" }, F6 = { class: "px-6 py-4 whitespace-nowrap text-sm text-gray-500" }, z6 = { class: "mt-8" }, j6 = { class: "overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg" }, H6 = { class: "overflow-x-auto" }, V6 = { class: "min-w-full divide-y divide-gray-300" }, W6 = { class: "bg-white divide-y divide-gray-200" }, q6 = { key: 0 }, U6 = { class: "px-6 py-4 whitespace-nowrap text-sm text-gray-500" }, K6 = { key: 1 }, G6 = { class: "px-6 py-4 whitespace-nowrap text-sm text-gray-500" }, J6 = { key: 2 }, Y6 = { class: "px-6 py-4 whitespace-nowrap text-sm text-gray-500" }, Q6 = { key: 3 }, X6 = { class: "px-6 py-4 whitespace-nowrap text-sm text-gray-500" }, Z6 = {
|
|
23580
23576
|
key: 2,
|
|
23581
23577
|
class: "mt-8"
|
|
23582
23578
|
}, eS = { class: "overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg" }, tS = { class: "overflow-x-auto" }, rS = { class: "min-w-full divide-y divide-gray-300" }, oS = { class: "bg-white divide-y divide-gray-200" }, nS = { class: "px-6 py-4 whitespace-nowrap text-sm text-gray-500" }, iS = { key: 0 }, sS = { key: 1 }, aS = { key: 0 }, lS = { class: "px-6 py-4 whitespace-nowrap text-sm text-gray-500" }, dS = { class: "inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium" }, cS = {
|
|
@@ -23585,7 +23581,7 @@ const z4 = { class: "p-4" }, F4 = { class: "mb-8" }, j4 = { class: "grid grid-co
|
|
|
23585
23581
|
}, pS = { class: "overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg" }, uS = { class: "overflow-x-auto" }, mS = { class: "min-w-full divide-y divide-gray-300" }, hS = { class: "bg-white divide-y divide-gray-200" }, gS = { class: "px-6 py-4 whitespace-nowrap text-sm text-gray-500" }, fS = { class: "flex items-center space-x-3" }, bS = { class: "border-r border-gray-200 pr-6" }, yS = ["src"], wS = { class: "px-6 py-4 whitespace-nowrap text-sm text-gray-500" }, vS = { class: "flex items-center space-x-3" }, xS = { class: "border-r border-gray-200 pr-6" }, kS = { class: "flex items-center space-x-3" }, SS = { class: "whitespace-nowrap" }, CS = {
|
|
23586
23582
|
__name: "PageBuilderSettings",
|
|
23587
23583
|
setup(r) {
|
|
23588
|
-
const e = "v3.1.
|
|
23584
|
+
const e = "v3.1.30", t = Le, o = S(!1), n = S(""), i = S(null), s = L(() => t.getConfigPageBuilder), a = function() {
|
|
23589
23585
|
n.value = "Advanced Settings", o.value = !0;
|
|
23590
23586
|
}, l = function() {
|
|
23591
23587
|
o.value = !1;
|
|
@@ -23599,7 +23595,7 @@ const z4 = { class: "p-4" }, F4 = { class: "mb-8" }, j4 = { class: "grid grid-co
|
|
|
23599
23595
|
i.value = d.value.map((u) => u.html_code), c("downloaded_html.html", i.value.join(""));
|
|
23600
23596
|
};
|
|
23601
23597
|
return (u, m) => {
|
|
23602
|
-
var g, f, b, w, C, E, y, P, x, v,
|
|
23598
|
+
var g, f, b, w, C, E, y, P, x, v, F, _, B, T, j, q;
|
|
23603
23599
|
return k(), M("div", null, [
|
|
23604
23600
|
R(Tk, {
|
|
23605
23601
|
open: o.value,
|
|
@@ -23649,7 +23645,7 @@ const z4 = { class: "p-4" }, F4 = { class: "mb-8" }, j4 = { class: "grid grid-co
|
|
|
23649
23645
|
h("tr", null, [
|
|
23650
23646
|
m[2] || (m[2] = h("td", { class: "px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900" }, " Page Builder ", -1)),
|
|
23651
23647
|
h("td", S6, [
|
|
23652
|
-
h("span", C6,
|
|
23648
|
+
h("span", C6, z(O(e)), 1)
|
|
23653
23649
|
])
|
|
23654
23650
|
])
|
|
23655
23651
|
])
|
|
@@ -23677,11 +23673,11 @@ const z4 = { class: "p-4" }, F4 = { class: "mb-8" }, j4 = { class: "grid grid-co
|
|
|
23677
23673
|
h("tbody", P6, [
|
|
23678
23674
|
(b = (f = s.value) == null ? void 0 : f.resourceData) != null && b.title ? (k(), M("tr", B6, [
|
|
23679
23675
|
m[5] || (m[5] = h("td", { class: "px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900" }, " Title ", -1)),
|
|
23680
|
-
h("td", A6,
|
|
23676
|
+
h("td", A6, z(s.value.resourceData.title), 1)
|
|
23681
23677
|
])) : D("", !0),
|
|
23682
23678
|
(C = (w = s.value) == null ? void 0 : w.resourceData) != null && C.id ? (k(), M("tr", L6, [
|
|
23683
23679
|
m[6] || (m[6] = h("td", { class: "px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900" }, " ID ", -1)),
|
|
23684
|
-
h("td", D6,
|
|
23680
|
+
h("td", D6, z(s.value.resourceData.id), 1)
|
|
23685
23681
|
])) : D("", !0)
|
|
23686
23682
|
])
|
|
23687
23683
|
])
|
|
@@ -23708,14 +23704,14 @@ const z4 = { class: "p-4" }, F4 = { class: "mb-8" }, j4 = { class: "grid grid-co
|
|
|
23708
23704
|
h("tbody", _6, [
|
|
23709
23705
|
h("tr", null, [
|
|
23710
23706
|
m[9] || (m[9] = h("td", { class: "px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900" }, " User Name ", -1)),
|
|
23711
|
-
h("td",
|
|
23707
|
+
h("td", F6, z(s.value.userForPageBuilder.name), 1)
|
|
23712
23708
|
])
|
|
23713
23709
|
])
|
|
23714
23710
|
])
|
|
23715
23711
|
])
|
|
23716
23712
|
])
|
|
23717
23713
|
])) : D("", !0),
|
|
23718
|
-
h("div",
|
|
23714
|
+
h("div", z6, [
|
|
23719
23715
|
m[17] || (m[17] = h("h4", { class: "myQuaternaryHeader text-sm mb-2" }, "User Settings", -1)),
|
|
23720
23716
|
h("div", j6, [
|
|
23721
23717
|
h("div", H6, [
|
|
@@ -23735,13 +23731,13 @@ const z4 = { class: "p-4" }, F4 = { class: "mb-8" }, j4 = { class: "grid grid-co
|
|
|
23735
23731
|
h("tbody", W6, [
|
|
23736
23732
|
(P = (y = s.value) == null ? void 0 : y.userSettings) != null && P.theme ? (k(), M("tr", q6, [
|
|
23737
23733
|
m[12] || (m[12] = h("td", { class: "px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900" }, " Theme ", -1)),
|
|
23738
|
-
h("td", U6,
|
|
23734
|
+
h("td", U6, z(s.value.userSettings.theme), 1)
|
|
23739
23735
|
])) : D("", !0),
|
|
23740
23736
|
(v = (x = s.value) == null ? void 0 : x.userSettings) != null && v.language ? (k(), M("tr", K6, [
|
|
23741
23737
|
m[13] || (m[13] = h("td", { class: "px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900" }, " Language ", -1)),
|
|
23742
|
-
h("td", G6,
|
|
23738
|
+
h("td", G6, z(s.value.userSettings.language), 1)
|
|
23743
23739
|
])) : D("", !0),
|
|
23744
|
-
((_ = (
|
|
23740
|
+
((_ = (F = s.value) == null ? void 0 : F.userSettings) == null ? void 0 : _.autoSave) !== void 0 ? (k(), M("tr", J6, [
|
|
23745
23741
|
m[14] || (m[14] = h("td", { class: "px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900" }, " Auto Save ", -1)),
|
|
23746
23742
|
h("td", Y6, [
|
|
23747
23743
|
h("span", {
|
|
@@ -23749,7 +23745,7 @@ const z4 = { class: "p-4" }, F4 = { class: "mb-8" }, j4 = { class: "grid grid-co
|
|
|
23749
23745
|
"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",
|
|
23750
23746
|
s.value.userSettings.autoSave ? "bg-green-100 text-green-800" : "bg-red-100 text-red-800"
|
|
23751
23747
|
])
|
|
23752
|
-
},
|
|
23748
|
+
}, z(s.value.userSettings.autoSave ? "Enabled" : "Disabled"), 3)
|
|
23753
23749
|
])
|
|
23754
23750
|
])) : D("", !0),
|
|
23755
23751
|
((T = (B = s.value) == null ? void 0 : B.userSettings) == null ? void 0 : T.notifications) !== void 0 ? (k(), M("tr", Q6, [
|
|
@@ -23760,7 +23756,7 @@ const z4 = { class: "p-4" }, F4 = { class: "mb-8" }, j4 = { class: "grid grid-co
|
|
|
23760
23756
|
"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",
|
|
23761
23757
|
s.value.userSettings.notifications ? "bg-green-100 text-green-800" : "bg-red-100 text-red-800"
|
|
23762
23758
|
])
|
|
23763
|
-
},
|
|
23759
|
+
}, z(s.value.userSettings.notifications ? "Enabled" : "Disabled"), 3)
|
|
23764
23760
|
])
|
|
23765
23761
|
])) : D("", !0)
|
|
23766
23762
|
])
|
|
@@ -23795,15 +23791,15 @@ const z4 = { class: "p-4" }, F4 = { class: "mb-8" }, j4 = { class: "grid grid-co
|
|
|
23795
23791
|
s.value.updateOrCreate === "create" ? "bg-green-100 text-green-800" : "bg-blue-100 text-blue-800"
|
|
23796
23792
|
])
|
|
23797
23793
|
}, [
|
|
23798
|
-
s.value && s.value.updateOrCreate.formType === "create" ? (k(), M("span", iS,
|
|
23799
|
-
s.value && s.value.updateOrCreate.formType === "update" ? (k(), M("span", sS,
|
|
23794
|
+
s.value && s.value.updateOrCreate.formType === "create" ? (k(), M("span", iS, z(s.value.updateOrCreate.formType), 1)) : D("", !0),
|
|
23795
|
+
s.value && s.value.updateOrCreate.formType === "update" ? (k(), M("span", sS, z(s.value.updateOrCreate.formType), 1)) : D("", !0)
|
|
23800
23796
|
], 2)
|
|
23801
23797
|
])
|
|
23802
23798
|
]),
|
|
23803
23799
|
s.value.updateOrCreate.createNewResourceFormName && s.value.updateOrCreate.createNewResourceFormName.length > 0 ? (k(), M("tr", aS, [
|
|
23804
23800
|
m[19] || (m[19] = h("td", { class: "px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900" }, " Form Name ", -1)),
|
|
23805
23801
|
h("td", lS, [
|
|
23806
|
-
h("span", dS,
|
|
23802
|
+
h("span", dS, z(s.value.updateOrCreate.createNewResourceFormName), 1)
|
|
23807
23803
|
])
|
|
23808
23804
|
])) : D("", !0)
|
|
23809
23805
|
])
|
|
@@ -23849,7 +23845,7 @@ const z4 = { class: "p-4" }, F4 = { class: "mb-8" }, j4 = { class: "grid grid-co
|
|
|
23849
23845
|
h("div", vS, [
|
|
23850
23846
|
h("div", xS, [
|
|
23851
23847
|
h("div", kS, [
|
|
23852
|
-
h("span", SS,
|
|
23848
|
+
h("span", SS, z(s.value.pageBuilderLogo.src), 1)
|
|
23853
23849
|
])
|
|
23854
23850
|
])
|
|
23855
23851
|
])
|
|
@@ -23894,14 +23890,14 @@ const z4 = { class: "p-4" }, F4 = { class: "mb-8" }, j4 = { class: "grid grid-co
|
|
|
23894
23890
|
};
|
|
23895
23891
|
}, v = function() {
|
|
23896
23892
|
C.value = "Settings", w.value = !0;
|
|
23897
|
-
},
|
|
23893
|
+
}, F = function() {
|
|
23898
23894
|
w.value = !1;
|
|
23899
23895
|
};
|
|
23900
23896
|
return (_, B) => (k(), M("div", null, [
|
|
23901
23897
|
R(yk, {
|
|
23902
23898
|
open: w.value,
|
|
23903
23899
|
title: C.value,
|
|
23904
|
-
onSlideOverButton:
|
|
23900
|
+
onSlideOverButton: F
|
|
23905
23901
|
}, {
|
|
23906
23902
|
default: $(() => [
|
|
23907
23903
|
R(CS)
|
|
@@ -23967,7 +23963,7 @@ const z4 = { class: "p-4" }, F4 = { class: "mb-8" }, j4 = { class: "grid grid-co
|
|
|
23967
23963
|
B[2] || (B[2] = h("div", { class: "h-8 w-8 cursor-defualt rounded-full flex items-center border-none justify-center bg-gray-50 aspect-square hover:bg-myPrimaryLinkColor hover:text-white focus-visible:ring-0" }, [
|
|
23968
23964
|
h("span", { class: "material-symbols-outlined text-[16px]" }, " person ")
|
|
23969
23965
|
], -1)),
|
|
23970
|
-
h("div", null,
|
|
23966
|
+
h("div", null, z(o.value.userForPageBuilder.name), 1)
|
|
23971
23967
|
])
|
|
23972
23968
|
], 2)
|
|
23973
23969
|
]),
|
|
@@ -24088,7 +24084,7 @@ function LS(r, e, t, o, n, i) {
|
|
|
24088
24084
|
], 2)
|
|
24089
24085
|
], 2);
|
|
24090
24086
|
}
|
|
24091
|
-
const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-row flex-wrap gap-2 mt-2 mb-4" }, NS = ["onClick"], IS = { class: "flex items-center gap-1" }, RS = { class: "mr-1" }, $S = { class: "flex gap-2 item-center flex-col" }, _S = { class: "flex gap-2 item-center" },
|
|
24087
|
+
const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-row flex-wrap gap-2 mt-2 mb-4" }, NS = ["onClick"], IS = { class: "flex items-center gap-1" }, RS = { class: "mr-1" }, $S = { class: "flex gap-2 item-center flex-col" }, _S = { class: "flex gap-2 item-center" }, FS = { class: "mt-1 relative flex items-center w-full border myPrimaryInput py-0 p-0" }, zS = {
|
|
24092
24088
|
__name: "ClassEditor",
|
|
24093
24089
|
setup(r) {
|
|
24094
24090
|
const e = Le, t = new Ze(e), o = S(null), n = L(() => e.getCurrentClasses);
|
|
@@ -24116,13 +24112,13 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
24116
24112
|
}
|
|
24117
24113
|
}, [
|
|
24118
24114
|
h("div", IS, [
|
|
24119
|
-
h("span", RS,
|
|
24115
|
+
h("span", RS, z(d), 1)
|
|
24120
24116
|
])
|
|
24121
24117
|
], 8, NS))), 128))
|
|
24122
24118
|
]),
|
|
24123
24119
|
h("div", $S, [
|
|
24124
24120
|
h("div", _S, [
|
|
24125
|
-
h("div",
|
|
24121
|
+
h("div", FS, [
|
|
24126
24122
|
lt(h("input", {
|
|
24127
24123
|
"onUpdate:modelValue": l[0] || (l[0] = (d) => i.value = d),
|
|
24128
24124
|
type: "text",
|
|
@@ -24147,7 +24143,7 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
24147
24143
|
}, jS = { key: 0 }, HS = ["src"], VS = {
|
|
24148
24144
|
__name: "ImageEditor",
|
|
24149
24145
|
setup(r) {
|
|
24150
|
-
const e = Le, t =
|
|
24146
|
+
const e = Le, t = Fe("CustomMediaComponent"), o = new Ze(e), n = S(!1), i = S(!1), s = S(""), a = S(""), l = S(""), d = S(null), c = S(null), p = S(null), u = S(null), m = S(null), g = L(() => e.getBasePrimaryImage), f = function() {
|
|
24151
24147
|
i.value = !0, s.value = "Media Library", a.value = null, l.value = "Close", d.value = "Select image", p.value = function() {
|
|
24152
24148
|
i.value = !1;
|
|
24153
24149
|
}, u.value = function() {
|
|
@@ -24219,7 +24215,7 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
24219
24215
|
}, null, 2)) : D("", !0),
|
|
24220
24216
|
h("span", {
|
|
24221
24217
|
class: Y(["block truncate", [(o.value !== "none", "")]])
|
|
24222
|
-
},
|
|
24218
|
+
}, z(o.value === "none" ? "Transparent" : o.value), 3)
|
|
24223
24219
|
]),
|
|
24224
24220
|
s[2] || (s[2] = h("span", { class: "pointer-events-none absolute inset-y-0 right-0 ml-3 flex items-center pr-2" }, [
|
|
24225
24221
|
h("span", { class: "material-symbols-outlined" }, " keyboard_arrow_down ")
|
|
@@ -24259,7 +24255,7 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
24259
24255
|
key: 1,
|
|
24260
24256
|
class: Y(["aspect-square w-6 h-6 bg-gray-950", `${a}`])
|
|
24261
24257
|
}, null, 2)) : D("", !0),
|
|
24262
|
-
a !== "none" ? (k(), M("span", YS,
|
|
24258
|
+
a !== "none" ? (k(), M("span", YS, z(a), 1)) : D("", !0),
|
|
24263
24259
|
a === "none" ? (k(), M("span", QS, "Transparent")) : D("", !0)
|
|
24264
24260
|
])
|
|
24265
24261
|
], 2)
|
|
@@ -24317,7 +24313,7 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
24317
24313
|
}, null, 2)) : D("", !0),
|
|
24318
24314
|
h("span", {
|
|
24319
24315
|
class: Y(["block truncate", [(o.value !== "none", "")]])
|
|
24320
|
-
},
|
|
24316
|
+
}, z(o.value === "none" ? "Transparent" : o.value), 3)
|
|
24321
24317
|
]),
|
|
24322
24318
|
s[2] || (s[2] = h("span", { class: "pointer-events-none absolute inset-y-0 right-0 ml-3 flex items-center pr-2" }, [
|
|
24323
24319
|
h("span", { class: "material-symbols-outlined" }, " keyboard_arrow_down ")
|
|
@@ -24358,7 +24354,7 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
24358
24354
|
class: Y(["aspect-square w-6 h-6 bg-gray-950", `${a}`])
|
|
24359
24355
|
}, null, 2)) : D("", !0),
|
|
24360
24356
|
a === "none" ? (k(), M("span", iC, "Transparent")) : D("", !0),
|
|
24361
|
-
a !== "none" ? (k(), M("span", sC,
|
|
24357
|
+
a !== "none" ? (k(), M("span", sC, z(a), 1)) : D("", !0)
|
|
24362
24358
|
])
|
|
24363
24359
|
], 2)
|
|
24364
24360
|
]),
|
|
@@ -24435,7 +24431,7 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
24435
24431
|
disabled: "",
|
|
24436
24432
|
value: ""
|
|
24437
24433
|
}, "Select", -1)),
|
|
24438
|
-
(k(!0), M(we, null, Ae(O(Er).verticalPadding, (m) => (k(), M("option", { key: m },
|
|
24434
|
+
(k(!0), M(we, null, Ae(O(Er).verticalPadding, (m) => (k(), M("option", { key: m }, z(m), 1))), 128))
|
|
24439
24435
|
], 544), [
|
|
24440
24436
|
[$t, o.value]
|
|
24441
24437
|
])
|
|
@@ -24451,7 +24447,7 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
24451
24447
|
disabled: "",
|
|
24452
24448
|
value: ""
|
|
24453
24449
|
}, "Select", -1)),
|
|
24454
|
-
(k(!0), M(we, null, Ae(O(Er).horizontalPadding, (m) => (k(), M("option", { key: m },
|
|
24450
|
+
(k(!0), M(we, null, Ae(O(Er).horizontalPadding, (m) => (k(), M("option", { key: m }, z(m), 1))), 128))
|
|
24455
24451
|
], 544), [
|
|
24456
24452
|
[$t, n.value]
|
|
24457
24453
|
])
|
|
@@ -24468,7 +24464,7 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
24468
24464
|
disabled: "",
|
|
24469
24465
|
value: ""
|
|
24470
24466
|
}, "Select", -1)),
|
|
24471
|
-
(k(!0), M(we, null, Ae(O(Er).verticalMargin, (m) => (k(), M("option", { key: m },
|
|
24467
|
+
(k(!0), M(we, null, Ae(O(Er).verticalMargin, (m) => (k(), M("option", { key: m }, z(m), 1))), 128))
|
|
24472
24468
|
], 544), [
|
|
24473
24469
|
[$t, i.value]
|
|
24474
24470
|
])
|
|
@@ -24484,7 +24480,7 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
24484
24480
|
disabled: "",
|
|
24485
24481
|
value: ""
|
|
24486
24482
|
}, "Select", -1)),
|
|
24487
|
-
(k(!0), M(we, null, Ae(O(Er).horizontalMargin, (m) => (k(), M("option", { key: m },
|
|
24483
|
+
(k(!0), M(we, null, Ae(O(Er).horizontalMargin, (m) => (k(), M("option", { key: m }, z(m), 1))), 128))
|
|
24488
24484
|
], 544), [
|
|
24489
24485
|
[$t, s.value]
|
|
24490
24486
|
])
|
|
@@ -24544,7 +24540,7 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
24544
24540
|
disabled: "",
|
|
24545
24541
|
value: ""
|
|
24546
24542
|
}, "Select", -1)),
|
|
24547
|
-
(k(!0), M(we, null, Ae(O(qt).roundedGlobal, (f) => (k(), M("option", { key: f },
|
|
24543
|
+
(k(!0), M(we, null, Ae(O(qt).roundedGlobal, (f) => (k(), M("option", { key: f }, z(f), 1))), 128))
|
|
24548
24544
|
], 544), [
|
|
24549
24545
|
[$t, o.value]
|
|
24550
24546
|
])
|
|
@@ -24561,7 +24557,7 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
24561
24557
|
disabled: "",
|
|
24562
24558
|
value: ""
|
|
24563
24559
|
}, "Select", -1)),
|
|
24564
|
-
(k(!0), M(we, null, Ae(O(qt).roundedTopLeft, (f) => (k(), M("option", { key: f },
|
|
24560
|
+
(k(!0), M(we, null, Ae(O(qt).roundedTopLeft, (f) => (k(), M("option", { key: f }, z(f), 1))), 128))
|
|
24565
24561
|
], 544), [
|
|
24566
24562
|
[$t, n.value]
|
|
24567
24563
|
])
|
|
@@ -24577,7 +24573,7 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
24577
24573
|
disabled: "",
|
|
24578
24574
|
value: ""
|
|
24579
24575
|
}, "Select", -1)),
|
|
24580
|
-
(k(!0), M(we, null, Ae(O(qt).roundedTopRight, (f) => (k(), M("option", { key: f },
|
|
24576
|
+
(k(!0), M(we, null, Ae(O(qt).roundedTopRight, (f) => (k(), M("option", { key: f }, z(f), 1))), 128))
|
|
24581
24577
|
], 544), [
|
|
24582
24578
|
[$t, i.value]
|
|
24583
24579
|
])
|
|
@@ -24593,7 +24589,7 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
24593
24589
|
disabled: "",
|
|
24594
24590
|
value: ""
|
|
24595
24591
|
}, "Select", -1)),
|
|
24596
|
-
(k(!0), M(we, null, Ae(O(qt).roundedBottomLeft, (f) => (k(), M("option", { key: f },
|
|
24592
|
+
(k(!0), M(we, null, Ae(O(qt).roundedBottomLeft, (f) => (k(), M("option", { key: f }, z(f), 1))), 128))
|
|
24597
24593
|
], 544), [
|
|
24598
24594
|
[$t, s.value]
|
|
24599
24595
|
])
|
|
@@ -24609,7 +24605,7 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
24609
24605
|
disabled: "",
|
|
24610
24606
|
value: ""
|
|
24611
24607
|
}, "Select", -1)),
|
|
24612
|
-
(k(!0), M(we, null, Ae(O(qt).roundedBottomRight, (f) => (k(), M("option", { key: f },
|
|
24608
|
+
(k(!0), M(we, null, Ae(O(qt).roundedBottomRight, (f) => (k(), M("option", { key: f }, z(f), 1))), 128))
|
|
24613
24609
|
], 544), [
|
|
24614
24610
|
[$t, a.value]
|
|
24615
24611
|
])
|
|
@@ -24662,7 +24658,7 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
24662
24658
|
disabled: "",
|
|
24663
24659
|
value: ""
|
|
24664
24660
|
}, "Select", -1)),
|
|
24665
|
-
(k(!0), M(we, null, Ae(O($o).borderStyle, (p) => (k(), M("option", { key: p },
|
|
24661
|
+
(k(!0), M(we, null, Ae(O($o).borderStyle, (p) => (k(), M("option", { key: p }, z(p), 1))), 128))
|
|
24666
24662
|
], 544), [
|
|
24667
24663
|
[$t, o.value]
|
|
24668
24664
|
])
|
|
@@ -24678,7 +24674,7 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
24678
24674
|
disabled: "",
|
|
24679
24675
|
value: ""
|
|
24680
24676
|
}, "Select", -1)),
|
|
24681
|
-
(k(!0), M(we, null, Ae(O($o).borderWidth, (p) => (k(), M("option", { key: p },
|
|
24677
|
+
(k(!0), M(we, null, Ae(O($o).borderWidth, (p) => (k(), M("option", { key: p }, z(p), 1))), 128))
|
|
24682
24678
|
], 544), [
|
|
24683
24679
|
[$t, n.value]
|
|
24684
24680
|
])
|
|
@@ -24705,7 +24701,7 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
24705
24701
|
key: 1,
|
|
24706
24702
|
class: Y(["aspect-square w-6 h-6 border border-gray-100 rounded-sm", `bg-${(p = i.value) == null ? void 0 : p.replace("border-", "")}`])
|
|
24707
24703
|
}, null, 2)) : D("", !0),
|
|
24708
|
-
h("span", MC,
|
|
24704
|
+
h("span", MC, z(i.value), 1)
|
|
24709
24705
|
]),
|
|
24710
24706
|
c[12] || (c[12] = h("span", { class: "pointer-events-none absolute inset-y-0 right-0 ml-3 flex items-center pr-2" }, [
|
|
24711
24707
|
h("span", { class: "material-symbols-outlined" }, " keyboard_arrow_down ")
|
|
@@ -24747,7 +24743,7 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
24747
24743
|
class: Y(["aspect-square w-6 h-6 bg-gray-950", `bg-${p.replace("border-", "")}`])
|
|
24748
24744
|
}, null, 2)) : D("", !0),
|
|
24749
24745
|
p === "none" ? (k(), M("span", OC, "Transparent")) : D("", !0),
|
|
24750
|
-
p !== "none" ? (k(), M("span", PC,
|
|
24746
|
+
p !== "none" ? (k(), M("span", PC, z(p), 1)) : D("", !0)
|
|
24751
24747
|
])
|
|
24752
24748
|
], 2)
|
|
24753
24749
|
]),
|
|
@@ -24833,7 +24829,7 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
24833
24829
|
_: 1
|
|
24834
24830
|
}));
|
|
24835
24831
|
}
|
|
24836
|
-
}, _C = { class: "h-full w-80 bg-white" },
|
|
24832
|
+
}, _C = { class: "h-full w-80 bg-white" }, FC = { class: "h-screen flex flex-col" }, zC = { class: "flex flex-row justify-between pt-2.5 pr-4 pl-4 items-center mb-3" }, jC = { class: "font-medium text-sm" }, HC = { class: "lowercase" }, VC = { class: "pl-3 pr-3 mb-4 overflow-y-scroll md:pb-24 pb-12" }, WC = {
|
|
24837
24833
|
__name: "RightSidebarEditor",
|
|
24838
24834
|
emits: ["closeEditor"],
|
|
24839
24835
|
setup(r, { emit: e }) {
|
|
@@ -24842,8 +24838,8 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
24842
24838
|
return (s = o.value) == null ? void 0 : s.tagName;
|
|
24843
24839
|
}), i = L(() => o.value instanceof HTMLElement && o.value.innerText.trim() !== " " || o.value instanceof HTMLImageElement);
|
|
24844
24840
|
return (s, a) => (k(), M("div", _C, [
|
|
24845
|
-
h("div",
|
|
24846
|
-
h("div",
|
|
24841
|
+
h("div", FC, [
|
|
24842
|
+
h("div", zC, [
|
|
24847
24843
|
h("button", {
|
|
24848
24844
|
type: "button",
|
|
24849
24845
|
onClick: a[0] || (a[0] = (l) => s.$emit("closeEditor")),
|
|
@@ -24853,7 +24849,7 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
24853
24849
|
])),
|
|
24854
24850
|
h("p", jC, [
|
|
24855
24851
|
a[2] || (a[2] = Ie(" Editing ")),
|
|
24856
|
-
h("span", HC, "<" +
|
|
24852
|
+
h("span", HC, "<" + z(n.value) + ">", 1)
|
|
24857
24853
|
])
|
|
24858
24854
|
]),
|
|
24859
24855
|
h("div", VC, [
|
|
@@ -24879,7 +24875,7 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
24879
24875
|
R(BC)
|
|
24880
24876
|
]),
|
|
24881
24877
|
h("article", null, [
|
|
24882
|
-
R(
|
|
24878
|
+
R(zS)
|
|
24883
24879
|
])
|
|
24884
24880
|
], 512), [
|
|
24885
24881
|
[Ug, i.value === !0]
|
|
@@ -24966,7 +24962,7 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
24966
24962
|
h("div", null, [
|
|
24967
24963
|
h("div", UC, [
|
|
24968
24964
|
h("div", {
|
|
24969
|
-
onClick: v[3] || (v[3] = (
|
|
24965
|
+
onClick: v[3] || (v[3] = (F) => O(o).setComponent(null)),
|
|
24970
24966
|
class: "px-4 lg:h-[10vh] h-[16vh] flex items-center justify-between border-b border-gray-200 bg-white"
|
|
24971
24967
|
}, [
|
|
24972
24968
|
h("div", KC, [
|
|
@@ -24979,7 +24975,7 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
24979
24975
|
])) : D("", !0),
|
|
24980
24976
|
h("button", {
|
|
24981
24977
|
class: "myPrimaryButton lg:text-sm text-[10px] lg:py-2 py-2 min-h-2 ml-4",
|
|
24982
|
-
onClick: v[0] || (v[0] = (...
|
|
24978
|
+
onClick: v[0] || (v[0] = (...F) => O(n).saveComponentsLocalStorage && O(n).saveComponentsLocalStorage(...F)),
|
|
24983
24979
|
type: "button"
|
|
24984
24980
|
}, v[15] || (v[15] = [
|
|
24985
24981
|
h("span", { class: "material-symbols-outlined text-[18px]" }, " save ", -1),
|
|
@@ -24987,7 +24983,7 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
24987
24983
|
])),
|
|
24988
24984
|
h("button", {
|
|
24989
24985
|
class: "myPrimaryButton lg:text-sm text-[10px] lg:py-2 py-2 min-h-2 ml-4 bg-red-500",
|
|
24990
|
-
onClick: v[1] || (v[1] = (...
|
|
24986
|
+
onClick: v[1] || (v[1] = (...F) => O(n).removeItemComponentsLocalStorageCreate && O(n).removeItemComponentsLocalStorageCreate(...F)),
|
|
24991
24987
|
type: "button"
|
|
24992
24988
|
}, v[16] || (v[16] = [
|
|
24993
24989
|
h("span", { class: "material-symbols-outlined text-[18px]" }, " delete ", -1),
|
|
@@ -24995,7 +24991,7 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
24995
24991
|
])),
|
|
24996
24992
|
h("button", {
|
|
24997
24993
|
class: "myPrimaryButton lg:text-sm text-[10px] lg:py-2 py-2 min-h-2 ml-4 bg-red-800",
|
|
24998
|
-
onClick: v[2] || (v[2] = (...
|
|
24994
|
+
onClick: v[2] || (v[2] = (...F) => O(n).removeItemComponentsLocalStorageUpdate && O(n).removeItemComponentsLocalStorageUpdate(...F)),
|
|
24999
24995
|
type: "button"
|
|
25000
24996
|
}, v[17] || (v[17] = [
|
|
25001
24997
|
h("span", { class: "material-symbols-outlined text-[18px]" }, " delete ", -1),
|
|
@@ -25006,7 +25002,7 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
25006
25002
|
]),
|
|
25007
25003
|
h("div", YC, [
|
|
25008
25004
|
h("div", {
|
|
25009
|
-
onClick: v[6] || (v[6] = Po((
|
|
25005
|
+
onClick: v[6] || (v[6] = Po((F) => O(o).setComponent(null), ["self"])),
|
|
25010
25006
|
class: "min-w-[3.5rem] pt-6 pb-2 my-2 mx-2 bg-myPrimaryLightGrayColor rounded-full shadow"
|
|
25011
25007
|
}, [
|
|
25012
25008
|
h("div", QC, [
|
|
@@ -25022,7 +25018,7 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
25022
25018
|
]))
|
|
25023
25019
|
]),
|
|
25024
25020
|
h("div", {
|
|
25025
|
-
onClick: v[5] || (v[5] = Po((
|
|
25021
|
+
onClick: v[5] || (v[5] = Po((F) => O(o).setComponent(null), ["self"]))
|
|
25026
25022
|
}, [
|
|
25027
25023
|
C.value ? (k(), Se(O0, { key: 0 })) : D("", !0)
|
|
25028
25024
|
])
|
|
@@ -25031,7 +25027,7 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
25031
25027
|
h("main", ZC, [
|
|
25032
25028
|
h("div", e7, [
|
|
25033
25029
|
h("div", {
|
|
25034
|
-
onClick: v[7] || (v[7] = Po((
|
|
25030
|
+
onClick: v[7] || (v[7] = Po((F) => O(o).setComponent(null), ["self"])),
|
|
25035
25031
|
class: "w-4/12 flex justify-start items-center py-2 pl-2 h-full"
|
|
25036
25032
|
}, v[19] || (v[19] = [
|
|
25037
25033
|
h("div", { class: "flex gap-2" }, [
|
|
@@ -25041,13 +25037,13 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
25041
25037
|
], -1)
|
|
25042
25038
|
])),
|
|
25043
25039
|
h("div", {
|
|
25044
|
-
onClick: v[8] || (v[8] = Po((
|
|
25040
|
+
onClick: v[8] || (v[8] = Po((F) => O(o).setComponent(null), ["self"])),
|
|
25045
25041
|
class: "w-4/12 flex justify-center py-2"
|
|
25046
25042
|
}, [
|
|
25047
25043
|
R(TS, { onPreviewCurrentDesign: l })
|
|
25048
25044
|
]),
|
|
25049
25045
|
h("div", {
|
|
25050
|
-
onClick: v[12] || (v[12] = Po((
|
|
25046
|
+
onClick: v[12] || (v[12] = Po((F) => O(o).setComponent(null), ["self"])),
|
|
25051
25047
|
class: "w-4/12 flex justify-end py-2 pr-2"
|
|
25052
25048
|
}, [
|
|
25053
25049
|
h("div", t7, [
|
|
@@ -25083,7 +25079,7 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
25083
25079
|
a.value === !1 ? (k(), M("button", {
|
|
25084
25080
|
key: 0,
|
|
25085
25081
|
type: "button",
|
|
25086
|
-
onClick: v[11] || (v[11] = (
|
|
25082
|
+
onClick: v[11] || (v[11] = (F) => O(o).setMenuRight(!0))
|
|
25087
25083
|
}, v[22] || (v[22] = [
|
|
25088
25084
|
h("div", { class: "flex items-center justify-center gap-2" }, [
|
|
25089
25085
|
h("span", { class: "lg:block hidden" }, " Styling "),
|
|
@@ -25103,17 +25099,17 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
25103
25099
|
ref_key: "draggableZone",
|
|
25104
25100
|
ref: P
|
|
25105
25101
|
}, [
|
|
25106
|
-
(k(!0), M(we, null, Ae(w.value, (
|
|
25107
|
-
key:
|
|
25102
|
+
(k(!0), M(we, null, Ae(w.value, (F) => (k(), M("div", {
|
|
25103
|
+
key: F.id,
|
|
25108
25104
|
id: "page-builder-editor-editable-area",
|
|
25109
25105
|
class: "bg-white grow"
|
|
25110
25106
|
}, [
|
|
25111
25107
|
h("div", {
|
|
25112
|
-
onMouseup: (_) => y(
|
|
25108
|
+
onMouseup: (_) => y(F),
|
|
25113
25109
|
class: "relative group"
|
|
25114
25110
|
}, [
|
|
25115
25111
|
h("div", {
|
|
25116
|
-
innerHTML:
|
|
25112
|
+
innerHTML: F.html_code
|
|
25117
25113
|
}, null, 8, s7)
|
|
25118
25114
|
], 40, i7)
|
|
25119
25115
|
]))), 128))
|
|
@@ -25134,7 +25130,7 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
25134
25130
|
class: Y([{ "w-0": !a.value, "w-80 ml-4": a.value }, "h-full duration-300 z-20 flex-shrink-0 overflow-hidden shadow-2xl rounded-l-2xl bg-white"])
|
|
25135
25131
|
}, [
|
|
25136
25132
|
R(WC, {
|
|
25137
|
-
onCloseEditor: v[14] || (v[14] = (
|
|
25133
|
+
onCloseEditor: v[14] || (v[14] = (F) => O(o).setMenuRight(!1))
|
|
25138
25134
|
})
|
|
25139
25135
|
], 2)
|
|
25140
25136
|
])
|