@myissue/vue-website-page-builder 3.1.24 → 3.1.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +78 -8
- package/dist/vue-website-page-builder.js +404 -381
- package/dist/vue-website-page-builder.umd.cjs +21 -21
- package/package.json +1 -1
- package/src/Components/PageBuilder/Settings/PageBuilderSettings.vue +12 -2
- package/src/PageBuilder/PageBuilder.vue +5 -35
- package/src/composables/PageBuilderClass.ts +80 -2
|
@@ -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 zg = (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) => zg(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 Fg, h as Ce, Fragment as we, defineComponent as ue, inject as ze, 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 F, 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",
|
|
@@ -1179,6 +1179,28 @@ class Ze {
|
|
|
1179
1179
|
"FOOTER"
|
|
1180
1180
|
], this.showRunningMethodLogs = !1, this.delay = mu();
|
|
1181
1181
|
}
|
|
1182
|
+
// Load existing content from HTML when in update mode
|
|
1183
|
+
setConfigPageBuilder(e) {
|
|
1184
|
+
const t = {
|
|
1185
|
+
formType: "create",
|
|
1186
|
+
createNewResourceFormName: "post"
|
|
1187
|
+
}, o = {
|
|
1188
|
+
theme: "light",
|
|
1189
|
+
language: "en",
|
|
1190
|
+
autoSave: !0
|
|
1191
|
+
}, n = {
|
|
1192
|
+
...e,
|
|
1193
|
+
updateOrCreate: {
|
|
1194
|
+
...t,
|
|
1195
|
+
...e.updateOrCreate
|
|
1196
|
+
},
|
|
1197
|
+
userSettings: {
|
|
1198
|
+
...o,
|
|
1199
|
+
...e.userSettings
|
|
1200
|
+
}
|
|
1201
|
+
};
|
|
1202
|
+
this.pageBuilderStateStore.setConfigPageBuilder(n);
|
|
1203
|
+
}
|
|
1182
1204
|
cloneCompObjForDOMInsertion(e) {
|
|
1183
1205
|
this.showRunningMethodLogs && console.log("cloneCompObjForDOMInsertion");
|
|
1184
1206
|
const t = { ...e };
|
|
@@ -1407,7 +1429,7 @@ class Ze {
|
|
|
1407
1429
|
this.pageBuilderStateStore.setLocalStorageItemName("page-builder-create-resource");
|
|
1408
1430
|
return;
|
|
1409
1431
|
}
|
|
1410
|
-
if (e === "update") {
|
|
1432
|
+
if (e === "update" && typeof o != "string" || typeof o == "string" && (o == null ? void 0 : o.length) < 1) {
|
|
1411
1433
|
if (t === null) {
|
|
1412
1434
|
this.pageBuilderStateStore.setLocalStorageItemName("page-builder-update-resource");
|
|
1413
1435
|
return;
|
|
@@ -1434,6 +1456,33 @@ class Ze {
|
|
|
1434
1456
|
return;
|
|
1435
1457
|
}
|
|
1436
1458
|
}
|
|
1459
|
+
if (e === "update" && typeof o == "string" && o.length > 0) {
|
|
1460
|
+
if (t === null) {
|
|
1461
|
+
this.pageBuilderStateStore.setLocalStorageItemName("page-builder-update-resource");
|
|
1462
|
+
return;
|
|
1463
|
+
}
|
|
1464
|
+
if (typeof t == "object" && "id" in t && !("title" in t)) {
|
|
1465
|
+
const d = this.sanitizeForLocalStorage(String(t.id));
|
|
1466
|
+
this.pageBuilderStateStore.setLocalStorageItemName(
|
|
1467
|
+
`page-builder-update-resource-${d}-${this.sanitizeForLocalStorage(o)}`
|
|
1468
|
+
);
|
|
1469
|
+
return;
|
|
1470
|
+
}
|
|
1471
|
+
if (typeof t == "object" && "title" in t && !("id" in t)) {
|
|
1472
|
+
const d = this.sanitizeForLocalStorage(String(t.title));
|
|
1473
|
+
this.pageBuilderStateStore.setLocalStorageItemName(
|
|
1474
|
+
`page-builder-update-resource-${d}-${this.sanitizeForLocalStorage(o)}`
|
|
1475
|
+
);
|
|
1476
|
+
return;
|
|
1477
|
+
}
|
|
1478
|
+
if (typeof t == "object" && "title" in t && "id" in t) {
|
|
1479
|
+
const d = this.sanitizeForLocalStorage(String(t.id)), c = this.sanitizeForLocalStorage(String(t.title));
|
|
1480
|
+
this.pageBuilderStateStore.setLocalStorageItemName(
|
|
1481
|
+
`page-builder-update-resource-${c}-${this.sanitizeForLocalStorage(o)}-${d}`
|
|
1482
|
+
);
|
|
1483
|
+
return;
|
|
1484
|
+
}
|
|
1485
|
+
}
|
|
1437
1486
|
}
|
|
1438
1487
|
async saveComponentsLocalStorage() {
|
|
1439
1488
|
await this.nextTick, this.synchronizeDOMAndComponents(), this.showRunningMethodLogs && console.log("saveComponentsLocalStorage"), await this.nextTick, this.getLocalStorageItemName.value && localStorage.setItem(
|
|
@@ -1516,13 +1565,14 @@ class Ze {
|
|
|
1516
1565
|
setComponentsFromData(e) {
|
|
1517
1566
|
this.showRunningMethodLogs && console.log("setComponentsFromData");
|
|
1518
1567
|
const t = e.trim();
|
|
1519
|
-
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);
|
|
1568
|
+
t.startsWith("[") || t.startsWith("{") ? (console.log("Using JSON method..............1:", t), be(this, ne, ol).call(this, t)) : t.startsWith("<") ? (console.log("Using HTML method..............2:", t), be(this, ne, yu).call(this, t)) : (console.log("Using JSON method..............3:", t), be(this, ne, ol).call(this, t));
|
|
1520
1569
|
}
|
|
1521
1570
|
// Load existing content from HTML when in update mode
|
|
1522
1571
|
loadExistingContent(e) {
|
|
1523
1572
|
var t, o, n, i;
|
|
1524
1573
|
if (this.showRunningMethodLogs && console.log("loadExistingContent"), !!this.pageBuilderStateStore.getConfigPageBuilder) {
|
|
1525
1574
|
if (((o = (t = this.pageBuilderStateStore.getConfigPageBuilder) == null ? void 0 : t.updateOrCreate) == null ? void 0 : o.formType) === "create") {
|
|
1575
|
+
console.log("hvad med nuuuuuuu");
|
|
1526
1576
|
const s = this.areComponentsStoredInLocalStorage();
|
|
1527
1577
|
s && this.setComponentsFromData(s);
|
|
1528
1578
|
}
|
|
@@ -1698,7 +1748,7 @@ let of = class {
|
|
|
1698
1748
|
return typeof window > "u" || typeof document > "u" ? "server" : "client";
|
|
1699
1749
|
}
|
|
1700
1750
|
}, Zn = new of();
|
|
1701
|
-
function
|
|
1751
|
+
function Fr(r) {
|
|
1702
1752
|
if (Zn.isServer) return null;
|
|
1703
1753
|
if (r instanceof Node) return r.ownerDocument;
|
|
1704
1754
|
if (r != null && r.hasOwnProperty("value")) {
|
|
@@ -1715,7 +1765,7 @@ function vu(r = document.body) {
|
|
|
1715
1765
|
var Zs = ((r) => (r[r.Strict = 0] = "Strict", r[r.Loose = 1] = "Loose", r))(Zs || {});
|
|
1716
1766
|
function ea(r, e = 0) {
|
|
1717
1767
|
var t;
|
|
1718
|
-
return r === ((t =
|
|
1768
|
+
return r === ((t = Fr(r)) == null ? void 0 : t.body) ? !1 : _e(e, { 0() {
|
|
1719
1769
|
return r.matches(nl);
|
|
1720
1770
|
}, 1() {
|
|
1721
1771
|
let o = r;
|
|
@@ -1727,7 +1777,7 @@ function ea(r, e = 0) {
|
|
|
1727
1777
|
} });
|
|
1728
1778
|
}
|
|
1729
1779
|
function xu(r) {
|
|
1730
|
-
let e =
|
|
1780
|
+
let e = Fr(r);
|
|
1731
1781
|
Me(() => {
|
|
1732
1782
|
e && !ea(e.activeElement, 0) && Dr(r);
|
|
1733
1783
|
});
|
|
@@ -1859,7 +1909,7 @@ function uf({ container: r, accept: e, walk: t, enabled: o }) {
|
|
|
1859
1909
|
nt(() => {
|
|
1860
1910
|
let n = r.value;
|
|
1861
1911
|
if (!n || o !== void 0 && !o.value) return;
|
|
1862
|
-
let i =
|
|
1912
|
+
let i = Fr(r);
|
|
1863
1913
|
if (!i) return;
|
|
1864
1914
|
let s = Object.assign((l) => e(l), { acceptNode: e }), a = i.createTreeWalker(n, NodeFilter.SHOW_ELEMENT, s, !1);
|
|
1865
1915
|
for (; a.nextNode(); ) t(a.currentNode);
|
|
@@ -1895,7 +1945,7 @@ function ka({ props: r, attrs: e, slots: t, slot: o, name: n }) {
|
|
|
1895
1945
|
`), "", "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(`
|
|
1896
1946
|
`)].join(`
|
|
1897
1947
|
`));
|
|
1898
|
-
let m = Tu((s = p.props) != null ? s : {}, l, c), g =
|
|
1948
|
+
let m = Tu((s = p.props) != null ? s : {}, l, c), g = Fg(p, m, !0);
|
|
1899
1949
|
for (let f in m) f.startsWith("on") && (g.props || (g.props = {}), g.props[f] = m[f]);
|
|
1900
1950
|
return g;
|
|
1901
1951
|
}
|
|
@@ -1947,7 +1997,7 @@ function gf() {
|
|
|
1947
1997
|
return ei() !== null;
|
|
1948
1998
|
}
|
|
1949
1999
|
function ei() {
|
|
1950
|
-
return
|
|
2000
|
+
return ze(Ou, null);
|
|
1951
2001
|
}
|
|
1952
2002
|
function rd(r) {
|
|
1953
2003
|
Ve(Ou, r);
|
|
@@ -2039,7 +2089,7 @@ var Iu = ((r) => (r[r.None = 1] = "None", r[r.InitialFocus = 2] = "InitialFocus"
|
|
|
2039
2089
|
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 }) {
|
|
2040
2090
|
let n = S(null);
|
|
2041
2091
|
o({ el: n, $el: n });
|
|
2042
|
-
let i = L(() =>
|
|
2092
|
+
let i = L(() => Fr(n)), s = S(!1);
|
|
2043
2093
|
ke(() => s.value = !0), kt(() => s.value = !1), vf({ ownerDocument: i }, L(() => s.value && !!(r.features & 16)));
|
|
2044
2094
|
let a = xf({ ownerDocument: i, container: n, initialFocus: L(() => r.initialFocus) }, L(() => s.value && !!(r.features & 2)));
|
|
2045
2095
|
kf({ ownerDocument: i, container: n, containers: r.containers, previousActiveElement: a }, L(() => s.value && !!(r.features & 8)));
|
|
@@ -2272,7 +2322,7 @@ function pc(r, e = S(!0)) {
|
|
|
2272
2322
|
});
|
|
2273
2323
|
}
|
|
2274
2324
|
function Bf({ defaultContainers: r = [], portals: e, mainTreeNodeRef: t } = {}) {
|
|
2275
|
-
let o = S(null), n =
|
|
2325
|
+
let o = S(null), n = Fr(o);
|
|
2276
2326
|
function i() {
|
|
2277
2327
|
var s, a, l;
|
|
2278
2328
|
let d = [];
|
|
@@ -2289,7 +2339,7 @@ function Bf({ defaultContainers: r = [], portals: e, mainTreeNodeRef: t } = {})
|
|
|
2289
2339
|
}
|
|
2290
2340
|
let $u = Symbol("ForcePortalRootContext");
|
|
2291
2341
|
function Af() {
|
|
2292
|
-
return
|
|
2342
|
+
return ze($u, !1);
|
|
2293
2343
|
}
|
|
2294
2344
|
let il = ue({ name: "ForcePortalRoot", props: { as: { type: [Object, String], default: "template" }, force: { type: Boolean, default: !1 } }, setup(r, { slots: e, attrs: t }) {
|
|
2295
2345
|
return Ve($u, r.force), () => {
|
|
@@ -2299,7 +2349,7 @@ let il = ue({ name: "ForcePortalRoot", props: { as: { type: [Object, String], de
|
|
|
2299
2349
|
} }), _u = Symbol("StackContext");
|
|
2300
2350
|
var sl = ((r) => (r[r.Add = 0] = "Add", r[r.Remove = 1] = "Remove", r))(sl || {});
|
|
2301
2351
|
function Lf() {
|
|
2302
|
-
return
|
|
2352
|
+
return ze(_u, () => {
|
|
2303
2353
|
});
|
|
2304
2354
|
}
|
|
2305
2355
|
function Df({ type: r, enabled: e, element: t, onUpdate: o }) {
|
|
@@ -2315,9 +2365,9 @@ function Df({ type: r, enabled: e, element: t, onUpdate: o }) {
|
|
|
2315
2365
|
e.value && i(1, r, t);
|
|
2316
2366
|
}), Ve(_u, i);
|
|
2317
2367
|
}
|
|
2318
|
-
let
|
|
2368
|
+
let zu = Symbol("DescriptionContext");
|
|
2319
2369
|
function Nf() {
|
|
2320
|
-
let r =
|
|
2370
|
+
let r = ze(zu, null);
|
|
2321
2371
|
if (r === null) throw new Error("Missing parent");
|
|
2322
2372
|
return r;
|
|
2323
2373
|
}
|
|
@@ -2329,7 +2379,7 @@ function If({ slot: r = S({}), name: e = "Description", props: t = {} } = {}) {
|
|
|
2329
2379
|
s !== -1 && o.value.splice(s, 1);
|
|
2330
2380
|
};
|
|
2331
2381
|
}
|
|
2332
|
-
return Ve(
|
|
2382
|
+
return Ve(zu, { register: n, slot: r, name: e, props: t }), L(() => o.value.length > 0 ? o.value.join(" ") : void 0);
|
|
2333
2383
|
}
|
|
2334
2384
|
ue({ name: "Description", props: { as: { type: [Object, String], default: "p" }, id: { type: String, default: null } }, setup(r, { attrs: e, slots: t }) {
|
|
2335
2385
|
var o;
|
|
@@ -2340,7 +2390,7 @@ ue({ name: "Description", props: { as: { type: [Object, String], default: "p" },
|
|
|
2340
2390
|
};
|
|
2341
2391
|
} });
|
|
2342
2392
|
function Rf(r) {
|
|
2343
|
-
let e =
|
|
2393
|
+
let e = Fr(r);
|
|
2344
2394
|
if (!e) {
|
|
2345
2395
|
if (r === null) return null;
|
|
2346
2396
|
throw new Error(`[Headless UI]: Cannot find ownerDocument for contextElement: ${r}`);
|
|
@@ -2359,8 +2409,8 @@ function uc(r, e) {
|
|
|
2359
2409
|
let t = e($f(r));
|
|
2360
2410
|
return t <= 0 ? al.delete(r) : al.set(r, t), t;
|
|
2361
2411
|
}
|
|
2362
|
-
let
|
|
2363
|
-
let o = S(null), n = L(() =>
|
|
2412
|
+
let Fu = ue({ name: "Portal", props: { as: { type: [Object, String], default: "div" } }, setup(r, { slots: e, attrs: t }) {
|
|
2413
|
+
let o = S(null), n = L(() => Fr(o)), i = Af(), s = ze(ju, null), a = S(i === !0 || s == null ? Rf(o.value) : s.resolveTarget());
|
|
2364
2414
|
a.value && uc(a.value, (u) => u + 1);
|
|
2365
2415
|
let l = S(!1);
|
|
2366
2416
|
ke(() => {
|
|
@@ -2368,7 +2418,7 @@ let zu = ue({ name: "Portal", props: { as: { type: [Object, String], default: "d
|
|
|
2368
2418
|
}), nt(() => {
|
|
2369
2419
|
i || s != null && (a.value = s.resolveTarget());
|
|
2370
2420
|
});
|
|
2371
|
-
let d =
|
|
2421
|
+
let d = ze(ll, null), c = !1, p = Jl();
|
|
2372
2422
|
return pe(o, () => {
|
|
2373
2423
|
if (c || !d) return;
|
|
2374
2424
|
let u = U(o);
|
|
@@ -2384,7 +2434,7 @@ let zu = ue({ name: "Portal", props: { as: { type: [Object, String], default: "d
|
|
|
2384
2434
|
};
|
|
2385
2435
|
} }), ll = Symbol("PortalParentContext");
|
|
2386
2436
|
function _f() {
|
|
2387
|
-
let r =
|
|
2437
|
+
let r = ze(ll, null), e = S([]);
|
|
2388
2438
|
function t(i) {
|
|
2389
2439
|
return e.value.push(i), r && r.register(i), () => o(i);
|
|
2390
2440
|
}
|
|
@@ -2400,7 +2450,7 @@ function _f() {
|
|
|
2400
2450
|
};
|
|
2401
2451
|
} })];
|
|
2402
2452
|
}
|
|
2403
|
-
let ju = Symbol("PortalGroupContext"),
|
|
2453
|
+
let ju = Symbol("PortalGroupContext"), zf = ue({ name: "PortalGroup", props: { as: { type: [Object, String], default: "template" }, target: { type: Object, default: null } }, setup(r, { attrs: e, slots: t }) {
|
|
2404
2454
|
let o = du({ resolveTarget() {
|
|
2405
2455
|
return r.target;
|
|
2406
2456
|
} });
|
|
@@ -2409,10 +2459,10 @@ let ju = Symbol("PortalGroupContext"), Ff = ue({ name: "PortalGroup", props: { a
|
|
|
2409
2459
|
return Pe({ theirProps: i, ourProps: {}, slot: {}, attrs: e, slots: t, name: "PortalGroup" });
|
|
2410
2460
|
};
|
|
2411
2461
|
} });
|
|
2412
|
-
var
|
|
2462
|
+
var Ff = ((r) => (r[r.Open = 0] = "Open", r[r.Closed = 1] = "Closed", r))(Ff || {});
|
|
2413
2463
|
let dl = Symbol("DialogContext");
|
|
2414
2464
|
function ti(r) {
|
|
2415
|
-
let e =
|
|
2465
|
+
let e = ze(dl, null);
|
|
2416
2466
|
if (e === null) {
|
|
2417
2467
|
let t = new Error(`<${r} /> is missing a parent <Dialog /> component.`);
|
|
2418
2468
|
throw Error.captureStackTrace && Error.captureStackTrace(t, ti), t;
|
|
@@ -2425,10 +2475,10 @@ let Oi = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", ri = ue({ name: "Dialog", inher
|
|
|
2425
2475
|
ke(() => {
|
|
2426
2476
|
l.value = !0;
|
|
2427
2477
|
});
|
|
2428
|
-
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(() =>
|
|
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(() => Fr(g));
|
|
2429
2479
|
if (n({ el: g, $el: g }), !(r.open !== Oi || u !== null)) throw new Error("You forgot to provide an `open` prop to the `Dialog`.");
|
|
2430
2480
|
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}`);
|
|
2431
|
-
let b = L(() => l.value && m.value ? 0 : 1), w = L(() => b.value === 0), C = L(() => p.value > 1), E =
|
|
2481
|
+
let b = L(() => l.value && m.value ? 0 : 1), w = L(() => b.value === 0), C = L(() => p.value > 1), E = ze(dl, null) !== null, [y, P] = _f(), { resolveContainers: x, mainTreeNodeRef: v, MainTreeNode: z } = Bf({ portals: y, defaultContainers: [L(() => {
|
|
2432
2482
|
var re;
|
|
2433
2483
|
return (re = le.panelRef.value) != null ? re : g.value;
|
|
2434
2484
|
})] }), _ = 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(() => {
|
|
@@ -2474,7 +2524,7 @@ let Oi = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", ri = ue({ name: "Dialog", inher
|
|
|
2474
2524
|
De.observe(ce), re(() => De.disconnect());
|
|
2475
2525
|
}), () => {
|
|
2476
2526
|
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 };
|
|
2477
|
-
return Ce(il, { force: !0 }, () => [Ce(
|
|
2527
|
+
return Ce(il, { force: !0 }, () => [Ce(Fu, () => Ce(zf, { 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(z)]);
|
|
2478
2528
|
};
|
|
2479
2529
|
} }), od = ue({ name: "DialogOverlay", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: null } }, setup(r, { attrs: e, slots: t }) {
|
|
2480
2530
|
var o;
|
|
@@ -2494,7 +2544,7 @@ ue({ name: "DialogBackdrop", props: { as: { type: [Object, String], default: "di
|
|
|
2494
2544
|
if (s.panelRef.value === null) throw new Error("A <DialogBackdrop /> component is being used, but a <DialogPanel /> component is missing.");
|
|
2495
2545
|
}), () => {
|
|
2496
2546
|
let { ...l } = r, d = { id: i, ref: a, "aria-hidden": !0 };
|
|
2497
|
-
return Ce(il, { force: !0 }, () => Ce(
|
|
2547
|
+
return Ce(il, { force: !0 }, () => Ce(Fu, () => Pe({ ourProps: d, theirProps: { ...e, ...l }, slot: { open: s.dialogState.value === 0 }, attrs: e, slots: t, name: "DialogBackdrop" })));
|
|
2498
2548
|
};
|
|
2499
2549
|
} });
|
|
2500
2550
|
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 }) {
|
|
@@ -2564,7 +2614,7 @@ function Uf(r) {
|
|
|
2564
2614
|
}
|
|
2565
2615
|
let Wu = Symbol("ListboxContext");
|
|
2566
2616
|
function oi(r) {
|
|
2567
|
-
let e =
|
|
2617
|
+
let e = ze(Wu, null);
|
|
2568
2618
|
if (e === null) {
|
|
2569
2619
|
let t = new Error(`<${r} /> is missing a parent <Listbox /> component.`);
|
|
2570
2620
|
throw Error.captureStackTrace && Error.captureStackTrace(t, oi), t;
|
|
@@ -2589,7 +2639,7 @@ let ni = ue({ name: "Listbox", emits: { "update:modelValue": (r) => !0 }, props:
|
|
|
2589
2639
|
r.disabled || n.value !== 0 && (n.value = 0);
|
|
2590
2640
|
}, goToOption(E, y, P) {
|
|
2591
2641
|
if (r.disabled || n.value === 1) return;
|
|
2592
|
-
let x = u(), v = Pu(E === ye.Specific ? { focus: ye.Specific, id: y } : { focus: E }, { resolveItems: () => x.options, resolveActiveIndex: () => x.activeOptionIndex, resolveId: (
|
|
2642
|
+
let x = u(), v = Pu(E === ye.Specific ? { focus: ye.Specific, id: y } : { focus: E }, { resolveItems: () => x.options, resolveActiveIndex: () => x.activeOptionIndex, resolveId: (z) => z.id, resolveDisabled: (z) => z.dataRef.disabled });
|
|
2593
2643
|
d.value = "", c.value = v, p.value = P ?? 1, l.value = x.options;
|
|
2594
2644
|
}, search(E) {
|
|
2595
2645
|
if (r.disabled || n.value === 1) return;
|
|
@@ -2636,8 +2686,8 @@ let ni = ue({ name: "Listbox", emits: { "update:modelValue": (r) => !0 }, props:
|
|
|
2636
2686
|
};
|
|
2637
2687
|
}, { immediate: !0 });
|
|
2638
2688
|
}), () => {
|
|
2639
|
-
let { name: E, modelValue: y, disabled: P, form: x, ...v } = r,
|
|
2640
|
-
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:
|
|
2689
|
+
let { name: E, modelValue: y, disabled: P, form: x, ...v } = r, z = { open: n.value === 0, disabled: P, value: b.value };
|
|
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: z, slots: e, attrs: t, name: "Listbox" })]);
|
|
2641
2691
|
};
|
|
2642
2692
|
} });
|
|
2643
2693
|
ue({ name: "ListboxLabel", props: { as: { type: [Object, String], default: "label" }, id: { type: String, default: null } }, setup(r, { attrs: e, slots: t }) {
|
|
@@ -2791,8 +2841,8 @@ let ii = ue({ name: "ListboxButton", props: { as: { type: [Object, String], defa
|
|
|
2791
2841
|
f.wasMoved(E) && (r.disabled || l.value && s.goToOption(ye.Nothing));
|
|
2792
2842
|
}
|
|
2793
2843
|
return () => {
|
|
2794
|
-
let { disabled: E } = r, y = { active: l.value, selected: d.value, disabled: E }, { value: P, disabled: x, ...v } = r,
|
|
2795
|
-
return Pe({ ourProps:
|
|
2844
|
+
let { disabled: E } = r, y = { active: l.value, selected: d.value, disabled: E }, { value: P, disabled: x, ...v } = r, z = { 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 };
|
|
2845
|
+
return Pe({ ourProps: z, theirProps: v, slot: y, attrs: t, slots: e, name: "ListboxOption" });
|
|
2796
2846
|
};
|
|
2797
2847
|
} });
|
|
2798
2848
|
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 || {});
|
|
@@ -2801,7 +2851,7 @@ function Jf(r) {
|
|
|
2801
2851
|
}
|
|
2802
2852
|
let qu = Symbol("MenuContext");
|
|
2803
2853
|
function ta(r) {
|
|
2804
|
-
let e =
|
|
2854
|
+
let e = ze(qu, null);
|
|
2805
2855
|
if (e === null) {
|
|
2806
2856
|
let t = new Error(`<${r} /> is missing a parent <Menu /> component.`);
|
|
2807
2857
|
throw Error.captureStackTrace && Error.captureStackTrace(t, ta), t;
|
|
@@ -3015,15 +3065,15 @@ function Kr(r = "") {
|
|
|
3015
3065
|
let id = Symbol("TransitionContext");
|
|
3016
3066
|
var t1 = ((r) => (r.Visible = "visible", r.Hidden = "hidden", r))(t1 || {});
|
|
3017
3067
|
function r1() {
|
|
3018
|
-
return
|
|
3068
|
+
return ze(id, null) !== null;
|
|
3019
3069
|
}
|
|
3020
3070
|
function o1() {
|
|
3021
|
-
let r =
|
|
3071
|
+
let r = ze(id, null);
|
|
3022
3072
|
if (r === null) throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");
|
|
3023
3073
|
return r;
|
|
3024
3074
|
}
|
|
3025
3075
|
function n1() {
|
|
3026
|
-
let r =
|
|
3076
|
+
let r = ze(sd, null);
|
|
3027
3077
|
if (r === null) throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");
|
|
3028
3078
|
return r;
|
|
3029
3079
|
}
|
|
@@ -3080,7 +3130,7 @@ let Ku = _r.RenderStrategy, mr = ue({ props: { as: { type: [Object, String], def
|
|
|
3080
3130
|
_e(b.value, { hidden: () => f(C), visible: () => g(C) });
|
|
3081
3131
|
}
|
|
3082
3132
|
});
|
|
3083
|
-
let P = Kr(r.enter), x = Kr(r.enterFrom), v = Kr(r.enterTo),
|
|
3133
|
+
let P = Kr(r.enter), x = Kr(r.enterFrom), v = Kr(r.enterTo), z = Kr(r.entered), _ = Kr(r.leave), B = Kr(r.leaveFrom), T = Kr(r.leaveTo);
|
|
3084
3134
|
ke(() => {
|
|
3085
3135
|
nt(() => {
|
|
3086
3136
|
if (b.value === "visible") {
|
|
@@ -3091,9 +3141,9 @@ let Ku = _r.RenderStrategy, mr = ue({ props: { as: { type: [Object, String], def
|
|
|
3091
3141
|
});
|
|
3092
3142
|
function j(q) {
|
|
3093
3143
|
let oe = w.value && !m.value, Q = U(c);
|
|
3094
|
-
!Q || !(Q instanceof HTMLElement) || oe || (E.value = !0, u.value && s(), u.value || l(), q(u.value ? gc(Q, P, x, v,
|
|
3144
|
+
!Q || !(Q instanceof HTMLElement) || oe || (E.value = !0, u.value && s(), u.value || l(), q(u.value ? gc(Q, P, x, v, z, (Z) => {
|
|
3095
3145
|
E.value = !1, Z === cl.Finished && a();
|
|
3096
|
-
}) : gc(Q, _, B, T,
|
|
3146
|
+
}) : gc(Q, _, B, T, z, (Z) => {
|
|
3097
3147
|
E.value = !1, Z === cl.Finished && (ra(y) || (b.value = "hidden", f(C), d()));
|
|
3098
3148
|
})));
|
|
3099
3149
|
}
|
|
@@ -4055,7 +4105,7 @@ function N1(r, e, t) {
|
|
|
4055
4105
|
const d = jg();
|
|
4056
4106
|
if (a = // in test mode, ignore the argument provided as we can always retrieve a
|
|
4057
4107
|
// pinia instance with getActivePinia()
|
|
4058
|
-
(process.env.NODE_ENV === "test" && hn && hn._testing ? null : a) || (d ?
|
|
4108
|
+
(process.env.NODE_ENV === "test" && hn && hn._testing ? null : a) || (d ? ze(Yu, null) : null), a && In(a), process.env.NODE_ENV !== "production" && !hn)
|
|
4059
4109
|
throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
|
|
4060
4110
|
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
4061
4111
|
This will fail in production.`);
|
|
@@ -4442,10 +4492,10 @@ const I1 = /* @__PURE__ */ N1("pageBuilderState", {
|
|
|
4442
4492
|
this.isLoading = r;
|
|
4443
4493
|
}
|
|
4444
4494
|
}
|
|
4445
|
-
}), 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" },
|
|
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" }, z1 = {
|
|
4446
4496
|
key: 0,
|
|
4447
4497
|
class: "flex items-center divide-x divide-gray-200"
|
|
4448
|
-
},
|
|
4498
|
+
}, F1 = { class: "pr-4" }, j1 = ["src"], H1 = { key: 1 }, lm = {
|
|
4449
4499
|
__name: "PageBuilderPreviewModal",
|
|
4450
4500
|
props: {
|
|
4451
4501
|
show: {
|
|
@@ -4506,8 +4556,8 @@ const I1 = /* @__PURE__ */ N1("pageBuilderState", {
|
|
|
4506
4556
|
default: $(() => [
|
|
4507
4557
|
h("div", $1, [
|
|
4508
4558
|
h("div", _1, [
|
|
4509
|
-
s.value && s.value.pageBuilderLogo && s.value.pageBuilderLogo.src ? (k(), M("div",
|
|
4510
|
-
h("div",
|
|
4559
|
+
s.value && s.value.pageBuilderLogo && s.value.pageBuilderLogo.src ? (k(), M("div", z1, [
|
|
4560
|
+
h("div", F1, [
|
|
4511
4561
|
h("img", {
|
|
4512
4562
|
class: "h-6",
|
|
4513
4563
|
src: s.value.pageBuilderLogo.src,
|
|
@@ -4771,7 +4821,7 @@ const I1 = /* @__PURE__ */ N1("pageBuilderState", {
|
|
|
4771
4821
|
r.type === "danger" ? (k(), M("div", t0, a[3] || (a[3] = [
|
|
4772
4822
|
h("span", { class: "material-symbols-outlined" }, " warning ", -1)
|
|
4773
4823
|
]))) : D("", !0),
|
|
4774
|
-
h("h3", r0,
|
|
4824
|
+
h("h3", r0, F(r.title), 1)
|
|
4775
4825
|
])
|
|
4776
4826
|
]),
|
|
4777
4827
|
h("div", {
|
|
@@ -4808,7 +4858,7 @@ const I1 = /* @__PURE__ */ N1("pageBuilderState", {
|
|
|
4808
4858
|
class: "mySecondaryButton",
|
|
4809
4859
|
type: "button",
|
|
4810
4860
|
onClick: o
|
|
4811
|
-
},
|
|
4861
|
+
}, F(r.firstButtonText), 513)) : D("", !0),
|
|
4812
4862
|
r.secondButtonText ? (k(), M("div", i0, [
|
|
4813
4863
|
r.disabled && r.disabledWhichButton === "secondButtonBuilder" ? (k(), M("div", s0, [
|
|
4814
4864
|
h("button", {
|
|
@@ -4857,7 +4907,7 @@ const I1 = /* @__PURE__ */ N1("pageBuilderState", {
|
|
|
4857
4907
|
class: "myPrimaryButton bg-yellow-300 hover:bg-yellow-400 text-myPrimaryDarkGrayColor hover:text-myPrimaryDarkGrayColor focus:ring-yellow-400 w-full",
|
|
4858
4908
|
type: "button",
|
|
4859
4909
|
onClick: n
|
|
4860
|
-
},
|
|
4910
|
+
}, F(r.secondButtonText), 1)
|
|
4861
4911
|
])) : D("", !0)
|
|
4862
4912
|
])) : D("", !0),
|
|
4863
4913
|
r.thirdButtonText ? (k(), M("div", d0, [
|
|
@@ -4908,7 +4958,7 @@ const I1 = /* @__PURE__ */ N1("pageBuilderState", {
|
|
|
4908
4958
|
class: "myPrimaryButton bg-myPrimaryLinkColor focus-visible:ring-myPrimaryLinkColor focus:ring-myPrimaryLinkColor hover:bg-myPrimaryLinkColor w-full",
|
|
4909
4959
|
type: "button",
|
|
4910
4960
|
onClick: i
|
|
4911
|
-
},
|
|
4961
|
+
}, F(r.thirdButtonText), 1)
|
|
4912
4962
|
])) : D("", !0)
|
|
4913
4963
|
])) : D("", !0),
|
|
4914
4964
|
r.type === "success" ? (k(), M("div", h0, [
|
|
@@ -4958,7 +5008,7 @@ const I1 = /* @__PURE__ */ N1("pageBuilderState", {
|
|
|
4958
5008
|
class: "myPrimaryButton bg-myPrimaryLinkColor focus-visible:ring-myPrimaryLinkColor focus:ring-myPrimaryLinkColor hover:bg-myPrimaryLinkColor w-full",
|
|
4959
5009
|
type: "button",
|
|
4960
5010
|
onClick: i
|
|
4961
|
-
},
|
|
5011
|
+
}, F(r.thirdButtonText), 1)
|
|
4962
5012
|
])) : D("", !0)
|
|
4963
5013
|
])) : D("", !0),
|
|
4964
5014
|
r.type === "warning" ? (k(), M("div", y0, [
|
|
@@ -5008,7 +5058,7 @@ const I1 = /* @__PURE__ */ N1("pageBuilderState", {
|
|
|
5008
5058
|
class: "flex items-center gap-2 myPrimaryButton bg-myPrimaryErrorColor hover:bg-red-600 text-white focus:ring-myPrimaryErrorColor w-full",
|
|
5009
5059
|
type: "button",
|
|
5010
5060
|
onClick: i
|
|
5011
|
-
},
|
|
5061
|
+
}, F(r.thirdButtonText), 1)
|
|
5012
5062
|
])) : D("", !0)
|
|
5013
5063
|
])) : D("", !0),
|
|
5014
5064
|
r.type === "danger" || r.type === "delete" ? (k(), M("div", k0, [
|
|
@@ -5058,7 +5108,7 @@ const I1 = /* @__PURE__ */ N1("pageBuilderState", {
|
|
|
5058
5108
|
class: "flex items-center gap-2 myPrimaryButton bg-myPrimaryErrorColor hover:bg-red-600 text-white focus:ring-myPrimaryErrorColor w-full",
|
|
5059
5109
|
type: "button",
|
|
5060
5110
|
onClick: i
|
|
5061
|
-
},
|
|
5111
|
+
}, F(r.thirdButtonText), 1)
|
|
5062
5112
|
])) : D("", !0)
|
|
5063
5113
|
])) : D("", !0)
|
|
5064
5114
|
])) : D("", !0)
|
|
@@ -6551,7 +6601,7 @@ class uo {
|
|
|
6551
6601
|
return uo.empty;
|
|
6552
6602
|
let n = wm(o);
|
|
6553
6603
|
o.next && o.err("Unexpected trailing text");
|
|
6554
|
-
let i = j0(
|
|
6604
|
+
let i = j0(F0(n));
|
|
6555
6605
|
return H0(i, o), i;
|
|
6556
6606
|
}
|
|
6557
6607
|
/**
|
|
@@ -6727,7 +6777,7 @@ function I0(r) {
|
|
|
6727
6777
|
return e.length == 1 ? e[0] : { type: "seq", exprs: e };
|
|
6728
6778
|
}
|
|
6729
6779
|
function R0(r) {
|
|
6730
|
-
let e =
|
|
6780
|
+
let e = z0(r);
|
|
6731
6781
|
for (; ; )
|
|
6732
6782
|
if (r.eat("+"))
|
|
6733
6783
|
e = { type: "plus", expr: e };
|
|
@@ -6761,7 +6811,7 @@ function _0(r, e) {
|
|
|
6761
6811
|
}
|
|
6762
6812
|
return n.length == 0 && r.err("No node type or group '" + e + "' found"), n;
|
|
6763
6813
|
}
|
|
6764
|
-
function
|
|
6814
|
+
function z0(r) {
|
|
6765
6815
|
if (r.eat("(")) {
|
|
6766
6816
|
let e = wm(r);
|
|
6767
6817
|
return r.eat(")") || r.err("Missing closing paren"), e;
|
|
@@ -6772,7 +6822,7 @@ function F0(r) {
|
|
|
6772
6822
|
return r.pos++, e.length == 1 ? e[0] : { type: "choice", exprs: e };
|
|
6773
6823
|
}
|
|
6774
6824
|
}
|
|
6775
|
-
function
|
|
6825
|
+
function F0(r) {
|
|
6776
6826
|
let e = [[]];
|
|
6777
6827
|
return n(i(r, 0), t()), e;
|
|
6778
6828
|
function t() {
|
|
@@ -8093,7 +8143,7 @@ class wt {
|
|
|
8093
8143
|
}
|
|
8094
8144
|
}
|
|
8095
8145
|
wt.empty = new wt([]);
|
|
8096
|
-
class
|
|
8146
|
+
class zn {
|
|
8097
8147
|
/**
|
|
8098
8148
|
Create a new mapping with the given position maps.
|
|
8099
8149
|
*/
|
|
@@ -8110,7 +8160,7 @@ class Fn {
|
|
|
8110
8160
|
Create a mapping that maps only through a part of this one.
|
|
8111
8161
|
*/
|
|
8112
8162
|
slice(e = 0, t = this.maps.length) {
|
|
8113
|
-
return new
|
|
8163
|
+
return new zn(this._maps, this.mirror, e, t);
|
|
8114
8164
|
}
|
|
8115
8165
|
/**
|
|
8116
8166
|
Add a step map to the end of this mapping. If `mirrors` is
|
|
@@ -8161,7 +8211,7 @@ class Fn {
|
|
|
8161
8211
|
Create an inverted version of this mapping.
|
|
8162
8212
|
*/
|
|
8163
8213
|
invert() {
|
|
8164
|
-
let e = new
|
|
8214
|
+
let e = new zn();
|
|
8165
8215
|
return e.appendMappingInverted(this), e;
|
|
8166
8216
|
}
|
|
8167
8217
|
/**
|
|
@@ -8958,7 +9008,7 @@ class hb {
|
|
|
8958
9008
|
let f = a.child(d), b = p.matchType(f.type);
|
|
8959
9009
|
if (!b)
|
|
8960
9010
|
break;
|
|
8961
|
-
d++, (d > 1 || l == 0 || f.content.size) && (p = b, c.push(
|
|
9011
|
+
d++, (d > 1 || l == 0 || f.content.size) && (p = b, c.push(zm(f.mark(u.allowedMarks(f.marks)), d == 1 ? l : 0, d == a.childCount ? m : -1)));
|
|
8962
9012
|
}
|
|
8963
9013
|
let g = d == a.childCount;
|
|
8964
9014
|
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();
|
|
@@ -9025,11 +9075,11 @@ function Ba(r, e) {
|
|
|
9025
9075
|
r = r.firstChild.content;
|
|
9026
9076
|
return r;
|
|
9027
9077
|
}
|
|
9028
|
-
function
|
|
9078
|
+
function zm(r, e, t) {
|
|
9029
9079
|
if (e <= 0)
|
|
9030
9080
|
return r;
|
|
9031
9081
|
let o = r.content;
|
|
9032
|
-
return e > 1 && (o = o.replaceChild(0,
|
|
9082
|
+
return e > 1 && (o = o.replaceChild(0, zm(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);
|
|
9033
9083
|
}
|
|
9034
9084
|
function Aa(r, e, t, o, n) {
|
|
9035
9085
|
let i = r.node(e), s = n ? r.indexAfter(e) : r.index(e);
|
|
@@ -9085,7 +9135,7 @@ function bb(r, e, t, o) {
|
|
|
9085
9135
|
b < 0 && (w = !1, b = -b);
|
|
9086
9136
|
let C = n.node(b - 1), E = n.index(b - 1);
|
|
9087
9137
|
if (C.canReplaceWith(E, E, g.type, g.marks))
|
|
9088
|
-
return r.replace(n.before(b), w ? i.after(b) : t, new H(
|
|
9138
|
+
return r.replace(n.before(b), w ? i.after(b) : t, new H(Fm(o.content, 0, o.openStart, m), m, o.openEnd));
|
|
9089
9139
|
}
|
|
9090
9140
|
}
|
|
9091
9141
|
let p = r.steps.length;
|
|
@@ -9094,10 +9144,10 @@ function bb(r, e, t, o) {
|
|
|
9094
9144
|
m < 0 || (e = n.before(m), t = i.after(m));
|
|
9095
9145
|
}
|
|
9096
9146
|
}
|
|
9097
|
-
function
|
|
9147
|
+
function Fm(r, e, t, o, n) {
|
|
9098
9148
|
if (e < t) {
|
|
9099
9149
|
let i = r.firstChild;
|
|
9100
|
-
r = r.replaceChild(0, i.copy(
|
|
9150
|
+
r = r.replaceChild(0, i.copy(Fm(i.content, e + 1, t, o, i)));
|
|
9101
9151
|
}
|
|
9102
9152
|
if (e > o) {
|
|
9103
9153
|
let i = n.contentMatchAt(0), s = i.fillBefore(r).append(r);
|
|
@@ -9174,7 +9224,7 @@ class _o extends it {
|
|
|
9174
9224
|
}
|
|
9175
9225
|
}
|
|
9176
9226
|
it.jsonID("attr", _o);
|
|
9177
|
-
class
|
|
9227
|
+
class Fn extends it {
|
|
9178
9228
|
/**
|
|
9179
9229
|
Construct an attribute step.
|
|
9180
9230
|
*/
|
|
@@ -9193,7 +9243,7 @@ class zn extends it {
|
|
|
9193
9243
|
return wt.empty;
|
|
9194
9244
|
}
|
|
9195
9245
|
invert(e) {
|
|
9196
|
-
return new
|
|
9246
|
+
return new Fn(this.attr, e.attrs[this.attr]);
|
|
9197
9247
|
}
|
|
9198
9248
|
map(e) {
|
|
9199
9249
|
return this;
|
|
@@ -9204,25 +9254,25 @@ class zn extends it {
|
|
|
9204
9254
|
static fromJSON(e, t) {
|
|
9205
9255
|
if (typeof t.attr != "string")
|
|
9206
9256
|
throw new RangeError("Invalid input for DocAttrStep.fromJSON");
|
|
9207
|
-
return new
|
|
9257
|
+
return new Fn(t.attr, t.value);
|
|
9208
9258
|
}
|
|
9209
9259
|
}
|
|
9210
|
-
it.jsonID("docAttr",
|
|
9211
|
-
let
|
|
9260
|
+
it.jsonID("docAttr", Fn);
|
|
9261
|
+
let Fo = class extends Error {
|
|
9212
9262
|
};
|
|
9213
|
-
|
|
9263
|
+
Fo = function r(e) {
|
|
9214
9264
|
let t = Error.call(this, e);
|
|
9215
9265
|
return t.__proto__ = r.prototype, t;
|
|
9216
9266
|
};
|
|
9217
|
-
|
|
9218
|
-
|
|
9219
|
-
|
|
9267
|
+
Fo.prototype = Object.create(Error.prototype);
|
|
9268
|
+
Fo.prototype.constructor = Fo;
|
|
9269
|
+
Fo.prototype.name = "TransformError";
|
|
9220
9270
|
class Hm {
|
|
9221
9271
|
/**
|
|
9222
9272
|
Create a transform that starts with the given document.
|
|
9223
9273
|
*/
|
|
9224
9274
|
constructor(e) {
|
|
9225
|
-
this.doc = e, this.steps = [], this.docs = [], this.mapping = new
|
|
9275
|
+
this.doc = e, this.steps = [], this.docs = [], this.mapping = new zn();
|
|
9226
9276
|
}
|
|
9227
9277
|
/**
|
|
9228
9278
|
The starting document.
|
|
@@ -9237,7 +9287,7 @@ class Hm {
|
|
|
9237
9287
|
step(e) {
|
|
9238
9288
|
let t = this.maybeStep(e);
|
|
9239
9289
|
if (t.failed)
|
|
9240
|
-
throw new
|
|
9290
|
+
throw new Fo(t.failed);
|
|
9241
9291
|
return this;
|
|
9242
9292
|
}
|
|
9243
9293
|
/**
|
|
@@ -9380,7 +9430,7 @@ class Hm {
|
|
|
9380
9430
|
Set a single attribute on the document to a new value.
|
|
9381
9431
|
*/
|
|
9382
9432
|
setDocAttribute(e, t) {
|
|
9383
|
-
return this.step(new
|
|
9433
|
+
return this.step(new Fn(e, t)), this;
|
|
9384
9434
|
}
|
|
9385
9435
|
/**
|
|
9386
9436
|
Add a mark to the node at position `pos`.
|
|
@@ -9837,7 +9887,7 @@ function $c(r, e, t) {
|
|
|
9837
9887
|
s == null && (s = c);
|
|
9838
9888
|
}), r.setSelection(X.near(r.doc.resolve(s), t));
|
|
9839
9889
|
}
|
|
9840
|
-
const _c = 1,
|
|
9890
|
+
const _c = 1, zc = 2, Fc = 4;
|
|
9841
9891
|
class kb extends Hm {
|
|
9842
9892
|
/**
|
|
9843
9893
|
@internal
|
|
@@ -9873,7 +9923,7 @@ class kb extends Hm {
|
|
|
9873
9923
|
Set the current stored marks.
|
|
9874
9924
|
*/
|
|
9875
9925
|
setStoredMarks(e) {
|
|
9876
|
-
return this.storedMarks = e, this.updated |=
|
|
9926
|
+
return this.storedMarks = e, this.updated |= zc, this;
|
|
9877
9927
|
}
|
|
9878
9928
|
/**
|
|
9879
9929
|
Make sure the current stored marks or, if that is null, the marks
|
|
@@ -9899,7 +9949,7 @@ class kb extends Hm {
|
|
|
9899
9949
|
Whether the stored marks were explicitly set for this transaction.
|
|
9900
9950
|
*/
|
|
9901
9951
|
get storedMarksSet() {
|
|
9902
|
-
return (this.updated &
|
|
9952
|
+
return (this.updated & zc) > 0;
|
|
9903
9953
|
}
|
|
9904
9954
|
/**
|
|
9905
9955
|
@internal
|
|
@@ -9980,13 +10030,13 @@ class kb extends Hm {
|
|
|
9980
10030
|
when updated to the state produced by this transaction.
|
|
9981
10031
|
*/
|
|
9982
10032
|
scrollIntoView() {
|
|
9983
|
-
return this.updated |=
|
|
10033
|
+
return this.updated |= Fc, this;
|
|
9984
10034
|
}
|
|
9985
10035
|
/**
|
|
9986
10036
|
True when this transaction has had `scrollIntoView` called on it.
|
|
9987
10037
|
*/
|
|
9988
10038
|
get scrolledIntoView() {
|
|
9989
|
-
return (this.updated &
|
|
10039
|
+
return (this.updated & Fc) > 0;
|
|
9990
10040
|
}
|
|
9991
10041
|
}
|
|
9992
10042
|
function jc(r, e) {
|
|
@@ -10212,7 +10262,7 @@ function Vm(r, e, t) {
|
|
|
10212
10262
|
}
|
|
10213
10263
|
return t;
|
|
10214
10264
|
}
|
|
10215
|
-
class
|
|
10265
|
+
class Fe {
|
|
10216
10266
|
/**
|
|
10217
10267
|
Create a plugin.
|
|
10218
10268
|
*/
|
|
@@ -10359,8 +10409,8 @@ function Bb(r, e, t) {
|
|
|
10359
10409
|
return { node: o.startContainer, offset: Math.min(Pt(o.startContainer), o.startOffset) };
|
|
10360
10410
|
}
|
|
10361
10411
|
}
|
|
10362
|
-
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,
|
|
10363
|
-
|
|
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, zt = !gt && /gecko\/(\d+)/i.test(Hr);
|
|
10413
|
+
zt && +(/Firefox\/(\d+)/.exec(Hr) || [0, 0])[1];
|
|
10364
10414
|
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;
|
|
10365
10415
|
function Db(r) {
|
|
10366
10416
|
let e = r.defaultView && r.defaultView.visualViewport;
|
|
@@ -10495,11 +10545,11 @@ function _b(r, e) {
|
|
|
10495
10545
|
function md(r, e) {
|
|
10496
10546
|
return r.left >= e.left - 1 && r.left <= e.right + 1 && r.top >= e.top - 1 && r.top <= e.bottom + 1;
|
|
10497
10547
|
}
|
|
10498
|
-
function
|
|
10548
|
+
function zb(r, e) {
|
|
10499
10549
|
let t = r.parentNode;
|
|
10500
10550
|
return t && /^li$/i.test(t.nodeName) && e.left < r.getBoundingClientRect().left ? t : r;
|
|
10501
10551
|
}
|
|
10502
|
-
function
|
|
10552
|
+
function Fb(r, e, t) {
|
|
10503
10553
|
let { node: o, offset: n } = Jm(e, t), i = -1;
|
|
10504
10554
|
if (o.nodeType == 1 && !o.firstChild) {
|
|
10505
10555
|
let s = o.getBoundingClientRect();
|
|
@@ -10550,15 +10600,15 @@ function Hb(r, e) {
|
|
|
10550
10600
|
if (dt)
|
|
10551
10601
|
for (let d = s; o && d; d = jo(d))
|
|
10552
10602
|
d.draggable && (o = void 0);
|
|
10553
|
-
if (s =
|
|
10554
|
-
if (
|
|
10603
|
+
if (s = zb(s, e), o) {
|
|
10604
|
+
if (zt && o.nodeType == 1 && (n = Math.min(n, o.childNodes.length), n < o.childNodes.length)) {
|
|
10555
10605
|
let c = o.childNodes[n], p;
|
|
10556
10606
|
c.nodeName == "IMG" && (p = c.getBoundingClientRect()).right <= e.left && p.bottom > e.top && n++;
|
|
10557
10607
|
}
|
|
10558
10608
|
let d;
|
|
10559
10609
|
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));
|
|
10560
10610
|
}
|
|
10561
|
-
a == null && (a =
|
|
10611
|
+
a == null && (a = Fb(r, s, e));
|
|
10562
10612
|
let l = r.docView.nearestDesc(s, !0);
|
|
10563
10613
|
return { pos: a, inside: l ? l.posAtStart - l.border : -1 };
|
|
10564
10614
|
}
|
|
@@ -10576,11 +10626,11 @@ function wr(r, e) {
|
|
|
10576
10626
|
}
|
|
10577
10627
|
const Vb = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;
|
|
10578
10628
|
function Qm(r, e, t) {
|
|
10579
|
-
let { node: o, offset: n, atom: i } = r.docView.domFromPos(e, t < 0 ? -1 : 1), s = di ||
|
|
10629
|
+
let { node: o, offset: n, atom: i } = r.docView.domFromPos(e, t < 0 ? -1 : 1), s = di || zt;
|
|
10580
10630
|
if (o.nodeType == 3)
|
|
10581
10631
|
if (s && (Vb.test(o.nodeValue) || (t < 0 ? !n : n == o.nodeValue.length))) {
|
|
10582
10632
|
let l = wr(ar(o, n, n), t);
|
|
10583
|
-
if (
|
|
10633
|
+
if (zt && n && /\s/.test(o.nodeValue[n - 1]) && n < o.nodeValue.length) {
|
|
10584
10634
|
let d = wr(ar(o, n - 1, n - 1), -1);
|
|
10585
10635
|
if (d.top == l.top) {
|
|
10586
10636
|
let c = wr(ar(o, n, n + 1), -1);
|
|
@@ -10955,7 +11005,7 @@ class ci {
|
|
|
10955
11005
|
g = b;
|
|
10956
11006
|
}
|
|
10957
11007
|
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;
|
|
10958
|
-
if ((
|
|
11008
|
+
if ((zt || dt) && e == t) {
|
|
10959
11009
|
let { node: m, offset: g } = a;
|
|
10960
11010
|
if (m.nodeType == 3) {
|
|
10961
11011
|
if (p = !!(g && m.nodeValue[g - 1] == `
|
|
@@ -10974,7 +11024,7 @@ class ci {
|
|
|
10974
11024
|
p = f && (f.nodeName == "BR" || f.contentEditable == "false");
|
|
10975
11025
|
}
|
|
10976
11026
|
}
|
|
10977
|
-
if (
|
|
11027
|
+
if (zt && c.focusNode && c.focusNode != l.node && c.focusNode.nodeType == 1) {
|
|
10978
11028
|
let m = c.focusNode.childNodes[c.focusOffset];
|
|
10979
11029
|
m && m.contentEditable == "false" && (n = !0);
|
|
10980
11030
|
}
|
|
@@ -11886,7 +11936,7 @@ function sy(r) {
|
|
|
11886
11936
|
if (!t)
|
|
11887
11937
|
return;
|
|
11888
11938
|
let n, i, s = !1;
|
|
11889
|
-
for (
|
|
11939
|
+
for (zt && t.nodeType == 1 && o < us(t) && Sn(t.childNodes[o], -1) && (s = !0); ; )
|
|
11890
11940
|
if (o > 0) {
|
|
11891
11941
|
if (t.nodeType != 1)
|
|
11892
11942
|
break;
|
|
@@ -12366,7 +12416,7 @@ function yd(r, e, t, o, n) {
|
|
|
12366
12416
|
return !0;
|
|
12367
12417
|
return !1;
|
|
12368
12418
|
}
|
|
12369
|
-
function
|
|
12419
|
+
function zo(r, e, t) {
|
|
12370
12420
|
if (r.focused || r.focus(), r.state.selection.eq(e))
|
|
12371
12421
|
return;
|
|
12372
12422
|
let o = r.state.tr.setSelection(e);
|
|
@@ -12376,7 +12426,7 @@ function Ey(r, e) {
|
|
|
12376
12426
|
if (e == -1)
|
|
12377
12427
|
return !1;
|
|
12378
12428
|
let t = r.state.doc.resolve(e), o = t.nodeAfter;
|
|
12379
|
-
return o && o.isAtom && K.isSelectable(o) ? (
|
|
12429
|
+
return o && o.isAtom && K.isSelectable(o) ? (zo(r, new K(t)), !0) : !1;
|
|
12380
12430
|
}
|
|
12381
12431
|
function Ty(r, e) {
|
|
12382
12432
|
if (e == -1)
|
|
@@ -12391,7 +12441,7 @@ function Ty(r, e) {
|
|
|
12391
12441
|
break;
|
|
12392
12442
|
}
|
|
12393
12443
|
}
|
|
12394
|
-
return n != null ? (
|
|
12444
|
+
return n != null ? (zo(r, K.create(r.state.doc, n)), !0) : !1;
|
|
12395
12445
|
}
|
|
12396
12446
|
function Oy(r, e, t, o, n) {
|
|
12397
12447
|
return yd(r, "handleClickOn", e, t, o) || r.someProp("handleClick", (i) => i(r, e, o)) || (n ? Ty(r, t) : Ey(r, t));
|
|
@@ -12407,14 +12457,14 @@ function Ay(r, e, t) {
|
|
|
12407
12457
|
return !1;
|
|
12408
12458
|
let o = r.state.doc;
|
|
12409
12459
|
if (e == -1)
|
|
12410
|
-
return o.inlineContent ? (
|
|
12460
|
+
return o.inlineContent ? (zo(r, J.create(o, 0, o.content.size)), !0) : !1;
|
|
12411
12461
|
let n = o.resolve(e);
|
|
12412
12462
|
for (let i = n.depth + 1; i > 0; i--) {
|
|
12413
12463
|
let s = i > n.depth ? n.nodeAfter : n.node(i), a = n.before(i);
|
|
12414
12464
|
if (s.inlineContent)
|
|
12415
|
-
|
|
12465
|
+
zo(r, J.create(o, a + 1, a + 1 + s.content.size));
|
|
12416
12466
|
else if (K.isSelectable(s))
|
|
12417
|
-
|
|
12467
|
+
zo(r, K.create(o, a));
|
|
12418
12468
|
else
|
|
12419
12469
|
continue;
|
|
12420
12470
|
return !0;
|
|
@@ -12449,7 +12499,7 @@ class Ly {
|
|
|
12449
12499
|
node: i,
|
|
12450
12500
|
pos: s,
|
|
12451
12501
|
addAttr: !!(this.target && !this.target.draggable),
|
|
12452
|
-
setUneditable: !!(this.target &&
|
|
12502
|
+
setUneditable: !!(this.target && zt && !this.target.hasAttribute("contentEditable"))
|
|
12453
12503
|
}), 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(() => {
|
|
12454
12504
|
this.view.input.mouseDown == this && this.target.setAttribute("contentEditable", "false");
|
|
12455
12505
|
}, 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");
|
|
@@ -12469,7 +12519,7 @@ class Ly {
|
|
|
12469
12519
|
// (hidden) cursor is doesn't change the selection, and
|
|
12470
12520
|
// thus doesn't get a reaction from ProseMirror. This
|
|
12471
12521
|
// works around that.
|
|
12472
|
-
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) ? (
|
|
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) ? (zo(this.view, X.near(this.view.state.doc.resolve(t.pos))), e.preventDefault()) : Lr(this.view, "pointer");
|
|
12473
12523
|
}
|
|
12474
12524
|
move(e) {
|
|
12475
12525
|
this.updateAllowDefault(e), Lr(this.view, "pointer"), e.buttons == 0 && this.done();
|
|
@@ -12495,7 +12545,7 @@ pt.compositionstart = pt.compositionupdate = (r) => {
|
|
|
12495
12545
|
let { state: e } = r, t = e.selection.$to;
|
|
12496
12546
|
if (e.selection instanceof J && (e.storedMarks || !t.textOffset && t.parentOffset && t.nodeBefore.marks.some((o) => o.type.spec.inclusive === !1)))
|
|
12497
12547
|
r.markCursor = r.state.storedMarks || t.marks(), ms(r, !0), r.markCursor = null;
|
|
12498
|
-
else if (ms(r, !e.selection.empty),
|
|
12548
|
+
else if (ms(r, !e.selection.empty), zt && e.selection.empty && t.parentOffset && !t.textOffset && t.nodeBefore.marks.length) {
|
|
12499
12549
|
let o = r.domSelectionRange();
|
|
12500
12550
|
for (let n = o.focusNode, i = o.focusOffset; n && n.nodeType == 1 && i != 0; ) {
|
|
12501
12551
|
let s = i < 0 ? n.lastChild : n.childNodes[i - 1];
|
|
@@ -12614,10 +12664,10 @@ class wh {
|
|
|
12614
12664
|
this.slice = e, this.move = t, this.node = o;
|
|
12615
12665
|
}
|
|
12616
12666
|
}
|
|
12617
|
-
const
|
|
12667
|
+
const zy = Ot ? "altKey" : "ctrlKey";
|
|
12618
12668
|
function vh(r, e) {
|
|
12619
12669
|
let t = r.someProp("dragCopies", (o) => !o(e));
|
|
12620
|
-
return t ?? !e[
|
|
12670
|
+
return t ?? !e[zy];
|
|
12621
12671
|
}
|
|
12622
12672
|
ct.dragstart = (r, e) => {
|
|
12623
12673
|
let t = e, o = r.input.mouseDown;
|
|
@@ -12899,7 +12949,7 @@ class $e {
|
|
|
12899
12949
|
let l = this.local[a].map(e, o, n);
|
|
12900
12950
|
l && l.type.valid(t, l) ? (s || (s = [])).push(l) : i.onRemove && i.onRemove(this.local[a].spec);
|
|
12901
12951
|
}
|
|
12902
|
-
return this.children.length ?
|
|
12952
|
+
return this.children.length ? Fy(this.children, s || [], e, t, o, n, i) : s ? new $e(s.sort(ao), Ao) : et;
|
|
12903
12953
|
}
|
|
12904
12954
|
/**
|
|
12905
12955
|
Add the given array of decorations to the ones in the set,
|
|
@@ -13077,7 +13127,7 @@ class Sr {
|
|
|
13077
13127
|
this.members[t].forEachSet(e);
|
|
13078
13128
|
}
|
|
13079
13129
|
}
|
|
13080
|
-
function
|
|
13130
|
+
function Fy(r, e, t, o, n, i, s) {
|
|
13081
13131
|
let a = r.slice();
|
|
13082
13132
|
for (let d = 0, c = i; d < t.maps.length; d++) {
|
|
13083
13133
|
let p = 0;
|
|
@@ -13326,7 +13376,7 @@ class qy {
|
|
|
13326
13376
|
let p = this.registerMutation(t[c], l);
|
|
13327
13377
|
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));
|
|
13328
13378
|
}
|
|
13329
|
-
if (
|
|
13379
|
+
if (zt && l.length) {
|
|
13330
13380
|
let c = l.filter((p) => p.nodeName == "BR");
|
|
13331
13381
|
if (c.length == 2) {
|
|
13332
13382
|
let [p, u] = c;
|
|
@@ -13378,7 +13428,7 @@ class qy {
|
|
|
13378
13428
|
let pp = /* @__PURE__ */ new WeakMap(), up = !1;
|
|
13379
13429
|
function Uy(r) {
|
|
13380
13430
|
if (!pp.has(r) && (pp.set(r, null), ["normal", "nowrap", "pre-line"].indexOf(getComputedStyle(r.dom).whiteSpace) !== -1)) {
|
|
13381
|
-
if (r.requiresGeckoHackNode =
|
|
13431
|
+
if (r.requiresGeckoHackNode = zt, up)
|
|
13382
13432
|
return;
|
|
13383
13433
|
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;
|
|
13384
13434
|
}
|
|
@@ -13500,15 +13550,15 @@ function Xy(r, e, t, o, n) {
|
|
|
13500
13550
|
return _(r, Xr(13, "Enter"));
|
|
13501
13551
|
});
|
|
13502
13552
|
}, 20));
|
|
13503
|
-
let y = g.start, P = g.endA, x, v,
|
|
13553
|
+
let y = g.start, P = g.endA, x, v, z;
|
|
13504
13554
|
if (C) {
|
|
13505
13555
|
if (f.pos == b.pos)
|
|
13506
13556
|
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));
|
|
13507
13557
|
else if (
|
|
13508
13558
|
// Adding or removing a mark
|
|
13509
|
-
g.endA == g.endB && (
|
|
13559
|
+
g.endA == g.endB && (z = Zy(f.parent.content.cut(f.parentOffset, b.parentOffset), w.parent.content.cut(w.parentOffset, g.endA - w.start())))
|
|
13510
13560
|
)
|
|
13511
|
-
x = r.state.tr,
|
|
13561
|
+
x = r.state.tr, z.type == "add" ? x.addMark(y, P, z.mark) : x.removeMark(y, P, z.mark);
|
|
13512
13562
|
else if (f.parent.child(f.index()).isText && f.index() == b.index() - (b.textOffset ? 0 : 1)) {
|
|
13513
13563
|
let _ = f.parent.textBetween(f.parentOffset, b.parentOffset);
|
|
13514
13564
|
if (r.someProp("handleTextInput", (B) => B(r, y, P, _)))
|
|
@@ -13547,7 +13597,7 @@ function ew(r, e, t, o, n) {
|
|
|
13547
13597
|
if (
|
|
13548
13598
|
// The content must have shrunk
|
|
13549
13599
|
t - e <= n.pos - o.pos || // newEnd must point directly at or after the end of the block that newStart points into
|
|
13550
|
-
|
|
13600
|
+
za(o, !0, !1) < n.pos
|
|
13551
13601
|
)
|
|
13552
13602
|
return !1;
|
|
13553
13603
|
let i = r.resolve(e);
|
|
@@ -13557,10 +13607,10 @@ function ew(r, e, t, o, n) {
|
|
|
13557
13607
|
}
|
|
13558
13608
|
if (i.parentOffset < i.parent.content.size || !i.parent.isTextblock)
|
|
13559
13609
|
return !1;
|
|
13560
|
-
let s = r.resolve(
|
|
13561
|
-
return !s.parent.isTextblock || s.pos > t ||
|
|
13610
|
+
let s = r.resolve(za(i, !0, !0));
|
|
13611
|
+
return !s.parent.isTextblock || s.pos > t || za(s, !0, !1) < t ? !1 : o.parent.content.cut(o.parentOffset).eq(s.parent.content);
|
|
13562
13612
|
}
|
|
13563
|
-
function
|
|
13613
|
+
function za(r, e, t) {
|
|
13564
13614
|
let o = r.depth, n = e ? r.end() : r.pos;
|
|
13565
13615
|
for (; o > 0 && (e || r.indexAfter(o) == r.node(o).childCount); )
|
|
13566
13616
|
o--, n++, e = !1;
|
|
@@ -13985,7 +14035,7 @@ function vp(r) {
|
|
|
13985
14035
|
if (r.spec.state || r.spec.filterTransaction || r.spec.appendTransaction)
|
|
13986
14036
|
throw new RangeError("Plugins passed directly to the view must not have a state component");
|
|
13987
14037
|
}
|
|
13988
|
-
var
|
|
14038
|
+
var zr = {
|
|
13989
14039
|
8: "Backspace",
|
|
13990
14040
|
9: "Tab",
|
|
13991
14041
|
10: "Enter",
|
|
@@ -14064,13 +14114,13 @@ var Fr = {
|
|
|
14064
14114
|
221: "}",
|
|
14065
14115
|
222: '"'
|
|
14066
14116
|
}, iw = typeof navigator < "u" && /Mac/.test(navigator.platform), sw = typeof navigator < "u" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);
|
|
14067
|
-
for (var Ye = 0; Ye < 10; Ye++)
|
|
14068
|
-
for (var Ye = 1; Ye <= 24; Ye++)
|
|
14117
|
+
for (var Ye = 0; Ye < 10; Ye++) zr[48 + Ye] = zr[96 + Ye] = String(Ye);
|
|
14118
|
+
for (var Ye = 1; Ye <= 24; Ye++) zr[Ye + 111] = "F" + Ye;
|
|
14069
14119
|
for (var Ye = 65; Ye <= 90; Ye++)
|
|
14070
|
-
|
|
14071
|
-
for (var
|
|
14120
|
+
zr[Ye] = String.fromCharCode(Ye + 32), fs[Ye] = String.fromCharCode(Ye);
|
|
14121
|
+
for (var Fa in zr) fs.hasOwnProperty(Fa) || (fs[Fa] = zr[Fa]);
|
|
14072
14122
|
function aw(r) {
|
|
14073
|
-
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 :
|
|
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 : zr)[r.keyCode] || r.key || "Unidentified";
|
|
14074
14124
|
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;
|
|
14075
14125
|
}
|
|
14076
14126
|
const lw = typeof navigator < "u" && /Mac|iP(hone|[oa]d)/.test(navigator.platform), dw = typeof navigator < "u" && /Win/.test(navigator.platform);
|
|
@@ -14105,7 +14155,7 @@ function ja(r, e, t = !0) {
|
|
|
14105
14155
|
return e.altKey && (r = "Alt-" + r), e.ctrlKey && (r = "Ctrl-" + r), e.metaKey && (r = "Meta-" + r), t && e.shiftKey && (r = "Shift-" + r), r;
|
|
14106
14156
|
}
|
|
14107
14157
|
function uw(r) {
|
|
14108
|
-
return new
|
|
14158
|
+
return new Fe({ props: { handleKeyDown: Ch(r) } });
|
|
14109
14159
|
}
|
|
14110
14160
|
function Ch(r) {
|
|
14111
14161
|
let e = pw(r);
|
|
@@ -14120,7 +14170,7 @@ function Ch(r) {
|
|
|
14120
14170
|
return !0;
|
|
14121
14171
|
}
|
|
14122
14172
|
if ((o.altKey || o.metaKey || o.ctrlKey) && // Ctrl-Alt may be used for AltGr on Windows
|
|
14123
|
-
!(dw && o.ctrlKey && o.altKey) && (i =
|
|
14173
|
+
!(dw && o.ctrlKey && o.altKey) && (i = zr[o.keyCode]) && i != n) {
|
|
14124
14174
|
let a = e[ja(i, o)];
|
|
14125
14175
|
if (a && a(t.state, t.dispatch, t))
|
|
14126
14176
|
return !0;
|
|
@@ -14985,8 +15035,8 @@ function Ni(r) {
|
|
|
14985
15035
|
}), l.dispatch(g), c = !0);
|
|
14986
15036
|
}), c;
|
|
14987
15037
|
}
|
|
14988
|
-
function
|
|
14989
|
-
const { editor: e, rules: t } = r, o = new
|
|
15038
|
+
function zw(r) {
|
|
15039
|
+
const { editor: e, rules: t } = r, o = new Fe({
|
|
14990
15040
|
state: {
|
|
14991
15041
|
init() {
|
|
14992
15042
|
return null;
|
|
@@ -15057,11 +15107,11 @@ function Fw(r) {
|
|
|
15057
15107
|
});
|
|
15058
15108
|
return o;
|
|
15059
15109
|
}
|
|
15060
|
-
function
|
|
15110
|
+
function Fw(r) {
|
|
15061
15111
|
return Object.prototype.toString.call(r).slice(8, -1);
|
|
15062
15112
|
}
|
|
15063
15113
|
function Ii(r) {
|
|
15064
|
-
return
|
|
15114
|
+
return Fw(r) !== "Object" ? !1 : r.constructor === Object && Object.getPrototypeOf(r) === Object.prototype;
|
|
15065
15115
|
}
|
|
15066
15116
|
function ha(r, e) {
|
|
15067
15117
|
const t = { ...r };
|
|
@@ -15199,7 +15249,7 @@ function Uw(r) {
|
|
|
15199
15249
|
return s = typeof ClipboardEvent < "u" ? new ClipboardEvent("paste") : null, f;
|
|
15200
15250
|
}
|
|
15201
15251
|
};
|
|
15202
|
-
return t.map((c) => new
|
|
15252
|
+
return t.map((c) => new Fe({
|
|
15203
15253
|
// we register a global drag handler to track the current drag source element
|
|
15204
15254
|
view(p) {
|
|
15205
15255
|
const u = (g) => {
|
|
@@ -15240,13 +15290,13 @@ function Uw(r) {
|
|
|
15240
15290
|
if (C) {
|
|
15241
15291
|
let { text: P } = w;
|
|
15242
15292
|
typeof P == "string" ? P = P : P = Td(N.from(P), m.schema);
|
|
15243
|
-
const { from: x } = w, v = x + P.length,
|
|
15293
|
+
const { from: x } = w, v = x + P.length, z = qw(P);
|
|
15244
15294
|
return l({
|
|
15245
15295
|
rule: c,
|
|
15246
15296
|
state: m,
|
|
15247
15297
|
from: x,
|
|
15248
15298
|
to: { b: v },
|
|
15249
|
-
pasteEvt:
|
|
15299
|
+
pasteEvt: z
|
|
15250
15300
|
});
|
|
15251
15301
|
}
|
|
15252
15302
|
const E = u.doc.content.findDiffStart(m.doc.content), y = u.doc.content.findDiffEnd(m.doc.content);
|
|
@@ -15356,7 +15406,7 @@ class Ro {
|
|
|
15356
15406
|
return l;
|
|
15357
15407
|
}).flat();
|
|
15358
15408
|
return [
|
|
15359
|
-
|
|
15409
|
+
zw({
|
|
15360
15410
|
editor: e,
|
|
15361
15411
|
rules: o
|
|
15362
15412
|
}),
|
|
@@ -15464,7 +15514,7 @@ class Xe {
|
|
|
15464
15514
|
})), t;
|
|
15465
15515
|
}
|
|
15466
15516
|
}
|
|
15467
|
-
function
|
|
15517
|
+
function zh(r, e, t) {
|
|
15468
15518
|
const { from: o, to: n } = e, { blockSeparator: i = `
|
|
15469
15519
|
|
|
15470
15520
|
`, textSerializers: s = {} } = t || {};
|
|
@@ -15496,12 +15546,12 @@ const Gw = Xe.create({
|
|
|
15496
15546
|
},
|
|
15497
15547
|
addProseMirrorPlugins() {
|
|
15498
15548
|
return [
|
|
15499
|
-
new
|
|
15549
|
+
new Fe({
|
|
15500
15550
|
key: new ut("clipboardTextSerializer"),
|
|
15501
15551
|
props: {
|
|
15502
15552
|
clipboardTextSerializer: () => {
|
|
15503
15553
|
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);
|
|
15504
|
-
return
|
|
15554
|
+
return zh(o, { from: s, to: a }, {
|
|
15505
15555
|
...this.options.blockSeparator !== void 0 ? { blockSeparator: this.options.blockSeparator } : {},
|
|
15506
15556
|
textSerializers: l
|
|
15507
15557
|
});
|
|
@@ -15568,7 +15618,7 @@ function bs(r, e, t = { strict: !0 }) {
|
|
|
15568
15618
|
const o = Object.keys(e);
|
|
15569
15619
|
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;
|
|
15570
15620
|
}
|
|
15571
|
-
function
|
|
15621
|
+
function Fh(r, e, t = {}) {
|
|
15572
15622
|
return r.find((o) => o.type === e && bs(
|
|
15573
15623
|
// Only check equality for the attributes that are provided
|
|
15574
15624
|
Object.fromEntries(Object.keys(t).map((n) => [n, o.attrs[n]])),
|
|
@@ -15576,14 +15626,14 @@ function zh(r, e, t = {}) {
|
|
|
15576
15626
|
));
|
|
15577
15627
|
}
|
|
15578
15628
|
function Mp(r, e, t = {}) {
|
|
15579
|
-
return !!
|
|
15629
|
+
return !!Fh(r, e, t);
|
|
15580
15630
|
}
|
|
15581
15631
|
function Bd(r, e, t) {
|
|
15582
15632
|
var o;
|
|
15583
15633
|
if (!r || !e)
|
|
15584
15634
|
return;
|
|
15585
15635
|
let n = r.parent.childAfter(r.parentOffset);
|
|
15586
|
-
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), !
|
|
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), !Fh([...n.node.marks], e, t)))
|
|
15587
15637
|
return;
|
|
15588
15638
|
let s = n.index, a = r.start() + n.offset, l = s + 1, d = a + n.node.nodeSize;
|
|
15589
15639
|
for (; s > 0 && Mp([...r.parent.child(s - 1).marks], e, t); )
|
|
@@ -15923,7 +15973,7 @@ function Wh(r, e) {
|
|
|
15923
15973
|
const a = s.find((l) => l.type.name === t.name);
|
|
15924
15974
|
return a ? { ...a.attrs } : {};
|
|
15925
15975
|
}
|
|
15926
|
-
function
|
|
15976
|
+
function zv(r, e) {
|
|
15927
15977
|
const t = new Hm(r);
|
|
15928
15978
|
return e.forEach((o) => {
|
|
15929
15979
|
o.steps.forEach((n) => {
|
|
@@ -15931,7 +15981,7 @@ function Fv(r, e) {
|
|
|
15931
15981
|
});
|
|
15932
15982
|
}), t;
|
|
15933
15983
|
}
|
|
15934
|
-
function
|
|
15984
|
+
function Fv(r) {
|
|
15935
15985
|
for (let e = 0; e < r.edgeCount; e += 1) {
|
|
15936
15986
|
const { type: t } = r.edge(e);
|
|
15937
15987
|
if (t.isTextblock && !t.hasRequiredAttrs())
|
|
@@ -15968,7 +16018,7 @@ function qh(r, e) {
|
|
|
15968
16018
|
from: 0,
|
|
15969
16019
|
to: r.content.size
|
|
15970
16020
|
};
|
|
15971
|
-
return
|
|
16021
|
+
return zh(r, t, e);
|
|
15972
16022
|
}
|
|
15973
16023
|
function Vv(r, e) {
|
|
15974
16024
|
const t = Ue(e, r.schema), { from: o, to: n } = r.selection, i = [];
|
|
@@ -16203,7 +16253,7 @@ const t2 = ({ keepMarks: r = !0 } = {}) => ({ tr: e, state: t, dispatch: o, edit
|
|
|
16203
16253
|
return !a.parentOffset || !pr(s, a.pos) ? !1 : (o && (r && Op(t, n.extensionManager.splittableMarks), e.split(a.pos).scrollIntoView()), !0);
|
|
16204
16254
|
if (!a.parent.isBlock)
|
|
16205
16255
|
return !1;
|
|
16206
|
-
const p = l.parentOffset === l.parent.content.size, u = a.depth === 0 ? void 0 :
|
|
16256
|
+
const p = l.parentOffset === l.parent.content.size, u = a.depth === 0 ? void 0 : Fv(a.node(-1).contentMatchAt(a.indexAfter(-1)));
|
|
16207
16257
|
let m = p && u ? [
|
|
16208
16258
|
{
|
|
16209
16259
|
type: u,
|
|
@@ -16238,8 +16288,8 @@ const t2 = ({ keepMarks: r = !0 } = {}) => ({ tr: e, state: t, dispatch: o, edit
|
|
|
16238
16288
|
if (n) {
|
|
16239
16289
|
let w = N.empty;
|
|
16240
16290
|
const C = l.index(-1) ? 1 : l.index(-2) ? 2 : 3;
|
|
16241
|
-
for (let
|
|
16242
|
-
w = N.from(l.node(
|
|
16291
|
+
for (let z = l.depth - C; z >= l.depth - 3; z -= 1)
|
|
16292
|
+
w = N.from(l.node(z).copy(w));
|
|
16243
16293
|
const E = l.indexAfter(-1) < l.node(-2).childCount ? 1 : l.indexAfter(-2) < l.node(-3).childCount ? 2 : 3, y = {
|
|
16244
16294
|
...Qi(u, l.node().type.name, l.node().attrs),
|
|
16245
16295
|
...e
|
|
@@ -16248,10 +16298,10 @@ const t2 = ({ keepMarks: r = !0 } = {}) => ({ tr: e, state: t, dispatch: o, edit
|
|
|
16248
16298
|
const x = l.before(l.depth - (C - 1));
|
|
16249
16299
|
t.replace(x, l.after(-E), new H(w, 4 - C, 0));
|
|
16250
16300
|
let v = -1;
|
|
16251
|
-
t.doc.nodesBetween(x, t.doc.content.size, (
|
|
16301
|
+
t.doc.nodesBetween(x, t.doc.content.size, (z, _) => {
|
|
16252
16302
|
if (v > -1)
|
|
16253
16303
|
return !1;
|
|
16254
|
-
|
|
16304
|
+
z.isTextblock && z.content.size === 0 && (v = _ + 1);
|
|
16255
16305
|
}), v > -1 && t.setSelection(J.near(t.doc.resolve(v))), t.scrollIntoView();
|
|
16256
16306
|
}
|
|
16257
16307
|
return !0;
|
|
@@ -16308,7 +16358,7 @@ const t2 = ({ keepMarks: r = !0 } = {}) => ({ tr: e, state: t, dispatch: o, edit
|
|
|
16308
16358
|
return l().command(() => (i.setNodeMarkup(P.pos, m), !0)).command(() => Va(i, m)).command(() => Wa(i, m)).run();
|
|
16309
16359
|
}
|
|
16310
16360
|
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(() => {
|
|
16311
|
-
const x = c().wrapInList(m, o), v = y.filter((
|
|
16361
|
+
const x = c().wrapInList(m, o), v = y.filter((z) => u.includes(z.type.name));
|
|
16312
16362
|
return i.ensureMarks(v), x ? !0 : d.clearNodes();
|
|
16313
16363
|
}).wrapInList(m, o).command(() => Va(i, m)).command(() => Wa(i, m)).run();
|
|
16314
16364
|
}, n2 = (r, e = {}, t = {}) => ({ state: o, commands: n }) => {
|
|
@@ -16470,7 +16520,7 @@ const h2 = Xe.create({
|
|
|
16470
16520
|
name: "drop",
|
|
16471
16521
|
addProseMirrorPlugins() {
|
|
16472
16522
|
return [
|
|
16473
|
-
new
|
|
16523
|
+
new Fe({
|
|
16474
16524
|
key: new ut("tiptapDrop"),
|
|
16475
16525
|
props: {
|
|
16476
16526
|
handleDrop: (r, e, t, o) => {
|
|
@@ -16489,7 +16539,7 @@ const h2 = Xe.create({
|
|
|
16489
16539
|
name: "editable",
|
|
16490
16540
|
addProseMirrorPlugins() {
|
|
16491
16541
|
return [
|
|
16492
|
-
new
|
|
16542
|
+
new Fe({
|
|
16493
16543
|
key: new ut("editable"),
|
|
16494
16544
|
props: {
|
|
16495
16545
|
editable: () => this.editor.options.editable
|
|
@@ -16502,7 +16552,7 @@ const h2 = Xe.create({
|
|
|
16502
16552
|
addProseMirrorPlugins() {
|
|
16503
16553
|
const { editor: r } = this;
|
|
16504
16554
|
return [
|
|
16505
|
-
new
|
|
16555
|
+
new Fe({
|
|
16506
16556
|
key: b2,
|
|
16507
16557
|
props: {
|
|
16508
16558
|
handleDOMEvents: {
|
|
@@ -16575,7 +16625,7 @@ const h2 = Xe.create({
|
|
|
16575
16625
|
// to a paragraph if necessary.
|
|
16576
16626
|
// This is an alternative to ProseMirror's `AllSelection`, which doesn’t work well
|
|
16577
16627
|
// with many other commands.
|
|
16578
|
-
new
|
|
16628
|
+
new Fe({
|
|
16579
16629
|
key: new ut("clearDocument"),
|
|
16580
16630
|
appendTransaction: (r, e, t) => {
|
|
16581
16631
|
if (r.some((f) => f.getMeta("composition")))
|
|
@@ -16603,7 +16653,7 @@ const h2 = Xe.create({
|
|
|
16603
16653
|
name: "paste",
|
|
16604
16654
|
addProseMirrorPlugins() {
|
|
16605
16655
|
return [
|
|
16606
|
-
new
|
|
16656
|
+
new Fe({
|
|
16607
16657
|
key: new ut("tiptapPaste"),
|
|
16608
16658
|
props: {
|
|
16609
16659
|
handlePaste: (r, e, t) => {
|
|
@@ -16621,7 +16671,7 @@ const h2 = Xe.create({
|
|
|
16621
16671
|
name: "tabindex",
|
|
16622
16672
|
addProseMirrorPlugins() {
|
|
16623
16673
|
return [
|
|
16624
|
-
new
|
|
16674
|
+
new Fe({
|
|
16625
16675
|
key: new ut("tabindex"),
|
|
16626
16676
|
props: {
|
|
16627
16677
|
attributes: () => this.editor.isEditable ? { tabindex: "0" } : {}
|
|
@@ -17255,7 +17305,7 @@ function qn(r) {
|
|
|
17255
17305
|
}
|
|
17256
17306
|
});
|
|
17257
17307
|
}
|
|
17258
|
-
let
|
|
17308
|
+
let Ft = class Il {
|
|
17259
17309
|
constructor(e = {}) {
|
|
17260
17310
|
this.type = "node", this.name = "node", this.parent = null, this.child = null, this.config = {
|
|
17261
17311
|
name: this.name,
|
|
@@ -17349,7 +17399,7 @@ function _2(r) {
|
|
|
17349
17399
|
}));
|
|
17350
17400
|
});
|
|
17351
17401
|
}
|
|
17352
|
-
function
|
|
17402
|
+
function z2(r) {
|
|
17353
17403
|
var e = r.state, t = {
|
|
17354
17404
|
popper: {
|
|
17355
17405
|
position: e.options.strategy,
|
|
@@ -17378,7 +17428,7 @@ const Qh = {
|
|
|
17378
17428
|
enabled: !0,
|
|
17379
17429
|
phase: "write",
|
|
17380
17430
|
fn: _2,
|
|
17381
|
-
effect:
|
|
17431
|
+
effect: z2,
|
|
17382
17432
|
requires: ["computeStyles"]
|
|
17383
17433
|
};
|
|
17384
17434
|
function Yt(r) {
|
|
@@ -17436,7 +17486,7 @@ function Zh(r, e) {
|
|
|
17436
17486
|
function gr(r) {
|
|
17437
17487
|
return St(r).getComputedStyle(r);
|
|
17438
17488
|
}
|
|
17439
|
-
function
|
|
17489
|
+
function F2(r) {
|
|
17440
17490
|
return ["table", "td", "th"].indexOf(Zt(r)) >= 0;
|
|
17441
17491
|
}
|
|
17442
17492
|
function Wr(r) {
|
|
@@ -17478,11 +17528,11 @@ function j2(r) {
|
|
|
17478
17528
|
return null;
|
|
17479
17529
|
}
|
|
17480
17530
|
function ui(r) {
|
|
17481
|
-
for (var e = St(r), t = Bp(r); t &&
|
|
17531
|
+
for (var e = St(r), t = Bp(r); t && F2(t) && gr(t).position === "static"; )
|
|
17482
17532
|
t = Bp(t);
|
|
17483
17533
|
return t && (Zt(t) === "html" || Zt(t) === "body" && gr(t).position === "static") ? e : t || j2(r) || e;
|
|
17484
17534
|
}
|
|
17485
|
-
function
|
|
17535
|
+
function zd(r) {
|
|
17486
17536
|
return ["top", "bottom"].indexOf(r) >= 0 ? "x" : "y";
|
|
17487
17537
|
}
|
|
17488
17538
|
function Cn(r, e, t) {
|
|
@@ -17514,10 +17564,10 @@ var V2 = function(e, t) {
|
|
|
17514
17564
|
})) : e, tg(typeof e != "number" ? e : rg(e, pi));
|
|
17515
17565
|
};
|
|
17516
17566
|
function W2(r) {
|
|
17517
|
-
var e, t = r.state, o = r.name, n = r.options, i = t.elements.arrow, s = t.modifiersData.popperOffsets, a = Yt(t.placement), l =
|
|
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 = zd(a), d = [bt, Nt].indexOf(a) >= 0, c = d ? "height" : "width";
|
|
17518
17568
|
if (!(!i || !s)) {
|
|
17519
|
-
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),
|
|
17520
|
-
t.modifiersData[o] = (e = {}, e[
|
|
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), z = l;
|
|
17570
|
+
t.modifiersData[o] = (e = {}, e[z] = v, e.centerOffset = v - x, e);
|
|
17521
17571
|
}
|
|
17522
17572
|
}
|
|
17523
17573
|
function q2(r) {
|
|
@@ -17560,8 +17610,8 @@ function Ap(r) {
|
|
|
17560
17610
|
m = b.x, f = b.y;
|
|
17561
17611
|
var w = s.hasOwnProperty("x"), C = s.hasOwnProperty("y"), E = bt, y = ft, P = window;
|
|
17562
17612
|
if (d) {
|
|
17563
|
-
var x = ui(t), v = "clientHeight",
|
|
17564
|
-
if (x === St(t) && (x = Wr(t), gr(x).position !== "static" && a === "absolute" && (v = "scrollHeight",
|
|
17613
|
+
var x = ui(t), v = "clientHeight", z = "clientWidth";
|
|
17614
|
+
if (x === St(t) && (x = Wr(t), gr(x).position !== "static" && a === "absolute" && (v = "scrollHeight", z = "scrollWidth")), x = x, n === ft || (n === bt || n === Nt) && i === Un) {
|
|
17565
17615
|
y = Dt;
|
|
17566
17616
|
var _ = p && x === P && P.visualViewport ? P.visualViewport.height : (
|
|
17567
17617
|
// $FlowFixMe[prop-missing]
|
|
@@ -17573,7 +17623,7 @@ function Ap(r) {
|
|
|
17573
17623
|
E = Nt;
|
|
17574
17624
|
var B = p && x === P && P.visualViewport ? P.visualViewport.width : (
|
|
17575
17625
|
// $FlowFixMe[prop-missing]
|
|
17576
|
-
x[
|
|
17626
|
+
x[z]
|
|
17577
17627
|
);
|
|
17578
17628
|
m -= B - o.width, m *= l ? 1 : -1;
|
|
17579
17629
|
}
|
|
@@ -17665,7 +17715,7 @@ function Lp(r) {
|
|
|
17665
17715
|
return ex[e];
|
|
17666
17716
|
});
|
|
17667
17717
|
}
|
|
17668
|
-
function
|
|
17718
|
+
function Fd(r) {
|
|
17669
17719
|
var e = St(r), t = e.pageXOffset, o = e.pageYOffset;
|
|
17670
17720
|
return {
|
|
17671
17721
|
scrollLeft: t,
|
|
@@ -17673,7 +17723,7 @@ function zd(r) {
|
|
|
17673
17723
|
};
|
|
17674
17724
|
}
|
|
17675
17725
|
function jd(r) {
|
|
17676
|
-
return Ko(Wr(r)).left +
|
|
17726
|
+
return Ko(Wr(r)).left + Fd(r).scrollLeft;
|
|
17677
17727
|
}
|
|
17678
17728
|
function tx(r, e) {
|
|
17679
17729
|
var t = St(r), o = Wr(r), n = t.visualViewport, i = o.clientWidth, s = o.clientHeight, a = 0, l = 0;
|
|
@@ -17690,7 +17740,7 @@ function tx(r, e) {
|
|
|
17690
17740
|
};
|
|
17691
17741
|
}
|
|
17692
17742
|
function rx(r) {
|
|
17693
|
-
var e, t = Wr(r), o =
|
|
17743
|
+
var e, t = Wr(r), o = Fd(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;
|
|
17694
17744
|
return gr(n || t).direction === "rtl" && (a += lo(t.clientWidth, n ? n.clientWidth : 0) - i), {
|
|
17695
17745
|
width: i,
|
|
17696
17746
|
height: s,
|
|
@@ -17775,7 +17825,7 @@ function ng(r) {
|
|
|
17775
17825
|
y: e.y
|
|
17776
17826
|
};
|
|
17777
17827
|
}
|
|
17778
|
-
var d = n ?
|
|
17828
|
+
var d = n ? zd(n) : null;
|
|
17779
17829
|
if (d != null) {
|
|
17780
17830
|
var c = d === "y" ? "height" : "width";
|
|
17781
17831
|
switch (i) {
|
|
@@ -17795,7 +17845,7 @@ function Kn(r, e) {
|
|
|
17795
17845
|
reference: x,
|
|
17796
17846
|
element: E,
|
|
17797
17847
|
placement: n
|
|
17798
|
-
}),
|
|
17848
|
+
}), z = $l(Object.assign({}, E, v)), _ = u === pn ? z : x, B = {
|
|
17799
17849
|
top: P.top - _.top + w.top,
|
|
17800
17850
|
bottom: _.bottom - P.bottom + w.bottom,
|
|
17801
17851
|
left: P.left - _.left + w.left,
|
|
@@ -17848,7 +17898,7 @@ function lx(r) {
|
|
|
17848
17898
|
flipVariations: g,
|
|
17849
17899
|
allowedAutoPlacements: f
|
|
17850
17900
|
}) : st);
|
|
17851
|
-
}, []), P = e.rects.reference, x = e.rects.popper, v = /* @__PURE__ */ new Map(),
|
|
17901
|
+
}, []), P = e.rects.reference, x = e.rects.popper, v = /* @__PURE__ */ new Map(), z = !0, _ = y[0], B = 0; B < y.length; B++) {
|
|
17852
17902
|
var T = y[B], j = Yt(T), q = Go(T) === qo, oe = [ft, Dt].indexOf(j) >= 0, Q = oe ? "width" : "height", Z = Kn(e, {
|
|
17853
17903
|
placement: T,
|
|
17854
17904
|
boundary: c,
|
|
@@ -17861,12 +17911,12 @@ function lx(r) {
|
|
|
17861
17911
|
if (i && se.push(Z[j] <= 0), a && se.push(Z[le] <= 0, Z[he] <= 0), se.every(function(Ee) {
|
|
17862
17912
|
return Ee;
|
|
17863
17913
|
})) {
|
|
17864
|
-
_ = T,
|
|
17914
|
+
_ = T, z = !1;
|
|
17865
17915
|
break;
|
|
17866
17916
|
}
|
|
17867
17917
|
v.set(T, se);
|
|
17868
17918
|
}
|
|
17869
|
-
if (
|
|
17919
|
+
if (z)
|
|
17870
17920
|
for (var ae = g ? 3 : 1, re = function(st) {
|
|
17871
17921
|
var mt = y.find(function(wo) {
|
|
17872
17922
|
var er = v.get(wo);
|
|
@@ -17982,7 +18032,7 @@ function yx(r) {
|
|
|
17982
18032
|
rootBoundary: d,
|
|
17983
18033
|
padding: p,
|
|
17984
18034
|
altBoundary: c
|
|
17985
|
-
}), w = Yt(e.placement), C = Go(e.placement), E = !C, y =
|
|
18035
|
+
}), w = Yt(e.placement), C = Go(e.placement), E = !C, y = zd(w), P = bx(y), x = e.modifiersData.popperOffsets, v = e.rects.reference, z = e.rects.popper, _ = typeof f == "function" ? f(Object.assign({}, e.rects, {
|
|
17986
18036
|
placement: e.placement
|
|
17987
18037
|
})) : f, B = typeof _ == "number" ? {
|
|
17988
18038
|
mainAxis: _,
|
|
@@ -17996,14 +18046,14 @@ function yx(r) {
|
|
|
17996
18046
|
};
|
|
17997
18047
|
if (x) {
|
|
17998
18048
|
if (i) {
|
|
17999
|
-
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 ? -
|
|
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 ? -z[Z] / 2 : 0, re = C === qo ? v[Z] : z[Z], ce = C === qo ? -z[Z] : -v[Z], De = e.elements.arrow, Ee = m && De ? _d(De) : {
|
|
18000
18050
|
width: 0,
|
|
18001
18051
|
height: 0
|
|
18002
18052
|
}, 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);
|
|
18003
18053
|
x[y] = rn, j[y] = rn - le;
|
|
18004
18054
|
}
|
|
18005
18055
|
if (a) {
|
|
18006
|
-
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] -
|
|
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] - z[br] - yi + B.altAxis, vi = sn ? tr + v[br] + z[br] - yi - B.altAxis : qr, xi = m && sn ? H2(wi, tr, vi) : Cn(m ? wi : nn, tr, m ? vi : qr);
|
|
18007
18057
|
x[P] = xi, j[P] = xi - tr;
|
|
18008
18058
|
}
|
|
18009
18059
|
e.modifiersData[o] = j;
|
|
@@ -18023,7 +18073,7 @@ function vx(r) {
|
|
|
18023
18073
|
};
|
|
18024
18074
|
}
|
|
18025
18075
|
function xx(r) {
|
|
18026
|
-
return r === St(r) || !Lt(r) ?
|
|
18076
|
+
return r === St(r) || !Lt(r) ? Fd(r) : vx(r);
|
|
18027
18077
|
}
|
|
18028
18078
|
function kx(r) {
|
|
18029
18079
|
var e = r.getBoundingClientRect(), t = Uo(e.width) / r.offsetWidth || 1, o = Uo(e.height) / r.offsetHeight || 1;
|
|
@@ -18156,10 +18206,10 @@ function Ox(r) {
|
|
|
18156
18206
|
c.reset = !1, y = -1;
|
|
18157
18207
|
continue;
|
|
18158
18208
|
}
|
|
18159
|
-
var P = c.orderedModifiers[y], x = P.fn, v = P.options,
|
|
18209
|
+
var P = c.orderedModifiers[y], x = P.fn, v = P.options, z = v === void 0 ? {} : v, _ = P.name;
|
|
18160
18210
|
typeof x == "function" && (c = x({
|
|
18161
18211
|
state: c,
|
|
18162
|
-
options:
|
|
18212
|
+
options: z,
|
|
18163
18213
|
name: _,
|
|
18164
18214
|
instance: m
|
|
18165
18215
|
}) || c);
|
|
@@ -18253,7 +18303,7 @@ function Ix(r) {
|
|
|
18253
18303
|
function Lo(r) {
|
|
18254
18304
|
return [].concat(r);
|
|
18255
18305
|
}
|
|
18256
|
-
function
|
|
18306
|
+
function zp(r, e) {
|
|
18257
18307
|
r.indexOf(e) === -1 && r.push(e);
|
|
18258
18308
|
}
|
|
18259
18309
|
function Rx(r) {
|
|
@@ -18267,7 +18317,7 @@ function $x(r) {
|
|
|
18267
18317
|
function vs(r) {
|
|
18268
18318
|
return [].slice.call(r);
|
|
18269
18319
|
}
|
|
18270
|
-
function
|
|
18320
|
+
function Fp(r) {
|
|
18271
18321
|
return Object.keys(r).reduce(function(e, t) {
|
|
18272
18322
|
return r[t] !== void 0 && (e[t] = r[t]), e;
|
|
18273
18323
|
}, {});
|
|
@@ -18283,10 +18333,10 @@ function Gn(r) {
|
|
|
18283
18333
|
function _x(r) {
|
|
18284
18334
|
return Vd(r, "NodeList");
|
|
18285
18335
|
}
|
|
18286
|
-
function
|
|
18336
|
+
function zx(r) {
|
|
18287
18337
|
return Vd(r, "MouseEvent");
|
|
18288
18338
|
}
|
|
18289
|
-
function
|
|
18339
|
+
function Fx(r) {
|
|
18290
18340
|
return !!(r && r._tippy && r._tippy.reference === r);
|
|
18291
18341
|
}
|
|
18292
18342
|
function jx(r) {
|
|
@@ -18343,7 +18393,7 @@ function cg() {
|
|
|
18343
18393
|
}
|
|
18344
18394
|
function qx() {
|
|
18345
18395
|
var r = document.activeElement;
|
|
18346
|
-
if (
|
|
18396
|
+
if (Fx(r)) {
|
|
18347
18397
|
var e = r._tippy;
|
|
18348
18398
|
r.blur && !e.state.isVisible && r.blur();
|
|
18349
18399
|
}
|
|
@@ -18529,17 +18579,17 @@ function hg(r, e) {
|
|
|
18529
18579
|
var r5 = function() {
|
|
18530
18580
|
return "innerHTML";
|
|
18531
18581
|
};
|
|
18532
|
-
function
|
|
18582
|
+
function zl(r, e) {
|
|
18533
18583
|
r[r5()] = e;
|
|
18534
18584
|
}
|
|
18535
18585
|
function Up(r) {
|
|
18536
18586
|
var e = En();
|
|
18537
|
-
return r === !0 ? e.className = sg : (e.className = ag, Gn(r) ? e.appendChild(r) :
|
|
18587
|
+
return r === !0 ? e.className = sg : (e.className = ag, Gn(r) ? e.appendChild(r) : zl(e, r)), e;
|
|
18538
18588
|
}
|
|
18539
18589
|
function Kp(r, e) {
|
|
18540
|
-
Gn(e.content) ? (
|
|
18590
|
+
Gn(e.content) ? (zl(r, ""), r.appendChild(e.content)) : typeof e.content != "function" && (e.allowHTML ? zl(r, e.content) : r.textContent = e.content);
|
|
18541
18591
|
}
|
|
18542
|
-
function
|
|
18592
|
+
function Fl(r) {
|
|
18543
18593
|
var e = r.firstElementChild, t = vs(e.children);
|
|
18544
18594
|
return {
|
|
18545
18595
|
box: e,
|
|
@@ -18560,7 +18610,7 @@ function gg(r) {
|
|
|
18560
18610
|
var o = En();
|
|
18561
18611
|
o.className = ig, o.setAttribute("data-state", "hidden"), Kp(o, r.props), e.appendChild(t), t.appendChild(o), n(r.props, r.props);
|
|
18562
18612
|
function n(i, s) {
|
|
18563
|
-
var a =
|
|
18613
|
+
var a = Fl(e), l = a.box, d = a.content, c = a.arrow;
|
|
18564
18614
|
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);
|
|
18565
18615
|
}
|
|
18566
18616
|
return {
|
|
@@ -18569,9 +18619,9 @@ function gg(r) {
|
|
|
18569
18619
|
};
|
|
18570
18620
|
}
|
|
18571
18621
|
gg.$$tippy = !0;
|
|
18572
|
-
var o5 = 1,
|
|
18622
|
+
var o5 = 1, zi = [], Ga = [];
|
|
18573
18623
|
function n5(r, e) {
|
|
18574
|
-
var t = qp(r, Object.assign({}, vt, mg(
|
|
18624
|
+
var t = qp(r, Object.assign({}, vt, mg(Fp(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 = {
|
|
18575
18625
|
// Is the instance currently enabled?
|
|
18576
18626
|
isEnabled: !0,
|
|
18577
18627
|
// Is the tippy currently showing and not transitioning out?
|
|
@@ -18607,7 +18657,7 @@ function n5(r, e) {
|
|
|
18607
18657
|
return process.env.NODE_ENV !== "production" && _l(!0, "render() function has not been supplied."), y;
|
|
18608
18658
|
var P = t.render(y), x = P.popper, v = P.onUpdate;
|
|
18609
18659
|
x.setAttribute("data-tippy-root", ""), x.id = "tippy-" + y.id, y.popper = x, r._tippy = y, x._tippy = y;
|
|
18610
|
-
var
|
|
18660
|
+
var z = C.map(function(A) {
|
|
18611
18661
|
return A.fn(y);
|
|
18612
18662
|
}), _ = r.hasAttribute("aria-expanded");
|
|
18613
18663
|
return xo(), ae(), le(), he("onCreate", [y]), t.showOnCreate && nn(), x.addEventListener("mouseenter", function() {
|
|
@@ -18634,7 +18684,7 @@ function n5(r, e) {
|
|
|
18634
18684
|
return A ? Hx(A) : document;
|
|
18635
18685
|
}
|
|
18636
18686
|
function Q() {
|
|
18637
|
-
return
|
|
18687
|
+
return Fl(x);
|
|
18638
18688
|
}
|
|
18639
18689
|
function Z(A) {
|
|
18640
18690
|
return y.state.isMounted && !y.state.isVisible || Wt.isTouch || c && c.type === "focus" ? 0 : qa(y.props.delay, A ? 0 : 1, vt.delay);
|
|
@@ -18643,7 +18693,7 @@ function n5(r, e) {
|
|
|
18643
18693
|
A === void 0 && (A = !1), x.style.pointerEvents = y.props.interactive && !A ? "" : "none", x.style.zIndex = "" + y.props.zIndex;
|
|
18644
18694
|
}
|
|
18645
18695
|
function he(A, W, G) {
|
|
18646
|
-
if (G === void 0 && (G = !0),
|
|
18696
|
+
if (G === void 0 && (G = !0), z.forEach(function(de) {
|
|
18647
18697
|
de[A] && de[A].apply(de, W);
|
|
18648
18698
|
}), G) {
|
|
18649
18699
|
var me;
|
|
@@ -18674,7 +18724,7 @@ function n5(r, e) {
|
|
|
18674
18724
|
}
|
|
18675
18725
|
}
|
|
18676
18726
|
function re() {
|
|
18677
|
-
oe().removeEventListener("mousemove", g),
|
|
18727
|
+
oe().removeEventListener("mousemove", g), zi = zi.filter(function(A) {
|
|
18678
18728
|
return A !== g;
|
|
18679
18729
|
});
|
|
18680
18730
|
}
|
|
@@ -18768,7 +18818,7 @@ function n5(r, e) {
|
|
|
18768
18818
|
var W, G = !1;
|
|
18769
18819
|
if (!(!y.state.isEnabled || on(A) || a)) {
|
|
18770
18820
|
var me = ((W = c) == null ? void 0 : W.type) === "focus";
|
|
18771
|
-
c = A, f = A.currentTarget, ae(), !y.state.isVisible &&
|
|
18821
|
+
c = A, f = A.currentTarget, ae(), !y.state.isVisible && zx(A) && zi.forEach(function(de) {
|
|
18772
18822
|
return de(A);
|
|
18773
18823
|
}), 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);
|
|
18774
18824
|
}
|
|
@@ -18805,7 +18855,7 @@ function n5(r, e) {
|
|
|
18805
18855
|
}
|
|
18806
18856
|
function fi() {
|
|
18807
18857
|
bi();
|
|
18808
|
-
var A = y.props, W = A.popperOptions, G = A.placement, me = A.offset, de = A.getReferenceClientRect, at = A.moveTransition, Ct = j() ?
|
|
18858
|
+
var A = y.props, W = A.popperOptions, G = A.placement, me = A.offset, de = A.getReferenceClientRect, at = A.moveTransition, Ct = j() ? Fl(x).arrow : null, ko = de ? {
|
|
18809
18859
|
getBoundingClientRect: de,
|
|
18810
18860
|
contextElement: de.contextElement || q()
|
|
18811
18861
|
} : r, ec = {
|
|
@@ -18909,7 +18959,7 @@ function n5(r, e) {
|
|
|
18909
18959
|
function vi(A) {
|
|
18910
18960
|
if (process.env.NODE_ENV !== "production" && lr(y.state.isDestroyed, Oo("setProps")), !y.state.isDestroyed) {
|
|
18911
18961
|
he("onBeforeUpdate", [y, A]), mi();
|
|
18912
|
-
var W = y.props, G = qp(r, Object.assign({}, W,
|
|
18962
|
+
var W = y.props, G = qp(r, Object.assign({}, W, Fp(A), {
|
|
18913
18963
|
ignoreAttributes: !0
|
|
18914
18964
|
}));
|
|
18915
18965
|
y.props = G, xo(), W.interactiveDebounce !== G.interactiveDebounce && (re(), g = _p(hi, G.interactiveDebounce)), W.triggerTarget && !G.triggerTarget ? Lo(W.triggerTarget).forEach(function(me) {
|
|
@@ -18939,7 +18989,7 @@ function n5(r, e) {
|
|
|
18939
18989
|
var ya = Q(), ki = ya.box, So = ya.content;
|
|
18940
18990
|
Ua([ki, So], de), jp([ki, So], "visible");
|
|
18941
18991
|
}
|
|
18942
|
-
se(), ae(),
|
|
18992
|
+
se(), ae(), zp(Ga, y), (Ur = y.popperInstance) == null || Ur.forceUpdate(), he("onMount", [y]), y.props.animation && j() && er(de, function() {
|
|
18943
18993
|
y.state.isShown = !0, he("onShown", [y]);
|
|
18944
18994
|
});
|
|
18945
18995
|
}
|
|
@@ -18958,7 +19008,7 @@ function n5(r, e) {
|
|
|
18958
19008
|
}
|
|
18959
19009
|
}
|
|
18960
19010
|
function Ng(A) {
|
|
18961
|
-
process.env.NODE_ENV !== "production" && lr(y.state.isDestroyed, Oo("hideWithInteractivity")), oe().addEventListener("mousemove", g),
|
|
19011
|
+
process.env.NODE_ENV !== "production" && lr(y.state.isDestroyed, Oo("hideWithInteractivity")), oe().addEventListener("mousemove", g), zp(zi, g), g(A);
|
|
18962
19012
|
}
|
|
18963
19013
|
function Ig() {
|
|
18964
19014
|
process.env.NODE_ENV !== "production" && lr(y.state.isDestroyed, Oo("unmount")), y.state.isVisible && y.hide(), y.state.isMounted && (bi(), br().forEach(function(A) {
|
|
@@ -19110,7 +19160,7 @@ class i5 {
|
|
|
19110
19160
|
!((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);
|
|
19111
19161
|
}
|
|
19112
19162
|
}
|
|
19113
|
-
const fg = (r) => new
|
|
19163
|
+
const fg = (r) => new Fe({
|
|
19114
19164
|
key: typeof r.pluginKey == "string" ? new ut(r.pluginKey) : r.pluginKey,
|
|
19115
19165
|
view: (e) => new i5({ view: e, ...r })
|
|
19116
19166
|
});
|
|
@@ -19205,7 +19255,7 @@ class s5 {
|
|
|
19205
19255
|
!((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);
|
|
19206
19256
|
}
|
|
19207
19257
|
}
|
|
19208
|
-
const bg = (r) => new
|
|
19258
|
+
const bg = (r) => new Fe({
|
|
19209
19259
|
key: typeof r.pluginKey == "string" ? new ut(r.pluginKey) : r.pluginKey,
|
|
19210
19260
|
view: (e) => new s5({ view: e, ...r })
|
|
19211
19261
|
});
|
|
@@ -19447,7 +19497,7 @@ const d5 = (r = {}) => {
|
|
|
19447
19497
|
const i = (t = e.value) === null || t === void 0 ? void 0 : t.options.element, s = i == null ? void 0 : i.cloneNode(!0);
|
|
19448
19498
|
(o = i == null ? void 0 : i.parentNode) === null || o === void 0 || o.replaceChild(s, i), (n = e.value) === null || n === void 0 || n.destroy();
|
|
19449
19499
|
}), e;
|
|
19450
|
-
}, c5 = /^\s*>\s$/, p5 =
|
|
19500
|
+
}, c5 = /^\s*>\s$/, p5 = Ft.create({
|
|
19451
19501
|
name: "blockquote",
|
|
19452
19502
|
addOptions() {
|
|
19453
19503
|
return {
|
|
@@ -19551,7 +19601,7 @@ const d5 = (r = {}) => {
|
|
|
19551
19601
|
})
|
|
19552
19602
|
];
|
|
19553
19603
|
}
|
|
19554
|
-
}), b5 = "listItem", Jp = "textStyle", Yp = /^\s*([-+*])\s$/, y5 =
|
|
19604
|
+
}), b5 = "listItem", Jp = "textStyle", Yp = /^\s*([-+*])\s$/, y5 = Ft.create({
|
|
19555
19605
|
name: "bulletList",
|
|
19556
19606
|
addOptions() {
|
|
19557
19607
|
return {
|
|
@@ -19645,7 +19695,7 @@ const d5 = (r = {}) => {
|
|
|
19645
19695
|
})
|
|
19646
19696
|
];
|
|
19647
19697
|
}
|
|
19648
|
-
}), k5 = /^```([a-z]+)?[\s\n]$/, S5 = /^~~~([a-z]+)?[\s\n]$/, C5 =
|
|
19698
|
+
}), k5 = /^```([a-z]+)?[\s\n]$/, S5 = /^~~~([a-z]+)?[\s\n]$/, C5 = Ft.create({
|
|
19649
19699
|
name: "codeBlock",
|
|
19650
19700
|
addOptions() {
|
|
19651
19701
|
return {
|
|
@@ -19755,7 +19805,7 @@ const d5 = (r = {}) => {
|
|
|
19755
19805
|
return [
|
|
19756
19806
|
// this plugin creates a code block for pasted content from VS Code
|
|
19757
19807
|
// we can also detect the copied code language
|
|
19758
|
-
new
|
|
19808
|
+
new Fe({
|
|
19759
19809
|
key: new ut("codeBlockVSCodeHandler"),
|
|
19760
19810
|
props: {
|
|
19761
19811
|
handlePaste: (r, e) => {
|
|
@@ -19772,13 +19822,13 @@ const d5 = (r = {}) => {
|
|
|
19772
19822
|
})
|
|
19773
19823
|
];
|
|
19774
19824
|
}
|
|
19775
|
-
}), M5 =
|
|
19825
|
+
}), M5 = Ft.create({
|
|
19776
19826
|
name: "doc",
|
|
19777
19827
|
topNode: !0,
|
|
19778
19828
|
content: "block+"
|
|
19779
19829
|
});
|
|
19780
19830
|
function E5(r = {}) {
|
|
19781
|
-
return new
|
|
19831
|
+
return new Fe({
|
|
19782
19832
|
view(e) {
|
|
19783
19833
|
return new T5(e, r);
|
|
19784
19834
|
}
|
|
@@ -20008,7 +20058,7 @@ function B5(r) {
|
|
|
20008
20058
|
return !0;
|
|
20009
20059
|
}
|
|
20010
20060
|
function A5() {
|
|
20011
|
-
return new
|
|
20061
|
+
return new Fe({
|
|
20012
20062
|
props: {
|
|
20013
20063
|
decorations: I5,
|
|
20014
20064
|
createSelectionBetween(r, e, t) {
|
|
@@ -20021,12 +20071,12 @@ function A5() {
|
|
|
20021
20071
|
});
|
|
20022
20072
|
}
|
|
20023
20073
|
const L5 = Ch({
|
|
20024
|
-
ArrowLeft:
|
|
20025
|
-
ArrowRight:
|
|
20026
|
-
ArrowUp:
|
|
20027
|
-
ArrowDown:
|
|
20074
|
+
ArrowLeft: Fi("horiz", -1),
|
|
20075
|
+
ArrowRight: Fi("horiz", 1),
|
|
20076
|
+
ArrowUp: Fi("vert", -1),
|
|
20077
|
+
ArrowDown: Fi("vert", 1)
|
|
20028
20078
|
});
|
|
20029
|
-
function
|
|
20079
|
+
function Fi(r, e) {
|
|
20030
20080
|
const t = r == "vert" ? e > 0 ? "down" : "up" : e > 0 ? "right" : "left";
|
|
20031
20081
|
return function(o, n, i) {
|
|
20032
20082
|
let s = o.selection, a = e > 0 ? s.$to : s.$from, l = s.empty;
|
|
@@ -20084,7 +20134,7 @@ const R5 = Xe.create({
|
|
|
20084
20134
|
allowGapCursor: (e = te(V(r, "allowGapCursor", t))) !== null && e !== void 0 ? e : null
|
|
20085
20135
|
};
|
|
20086
20136
|
}
|
|
20087
|
-
}), $5 =
|
|
20137
|
+
}), $5 = Ft.create({
|
|
20088
20138
|
name: "hardBreak",
|
|
20089
20139
|
addOptions() {
|
|
20090
20140
|
return {
|
|
@@ -20134,7 +20184,7 @@ const R5 = Xe.create({
|
|
|
20134
20184
|
"Shift-Enter": () => this.editor.commands.setHardBreak()
|
|
20135
20185
|
};
|
|
20136
20186
|
}
|
|
20137
|
-
}), _5 =
|
|
20187
|
+
}), _5 = Ft.create({
|
|
20138
20188
|
name: "heading",
|
|
20139
20189
|
addOptions() {
|
|
20140
20190
|
return {
|
|
@@ -20193,7 +20243,7 @@ qe.prototype.prepend = function(e) {
|
|
|
20193
20243
|
return e.length ? qe.from(e).append(this) : this;
|
|
20194
20244
|
};
|
|
20195
20245
|
qe.prototype.appendInner = function(e) {
|
|
20196
|
-
return new
|
|
20246
|
+
return new z5(this, e);
|
|
20197
20247
|
};
|
|
20198
20248
|
qe.prototype.slice = function(e, t) {
|
|
20199
20249
|
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));
|
|
@@ -20248,7 +20298,7 @@ var yg = /* @__PURE__ */ function(r) {
|
|
|
20248
20298
|
}, Object.defineProperties(e.prototype, t), e;
|
|
20249
20299
|
}(qe);
|
|
20250
20300
|
qe.empty = new yg([]);
|
|
20251
|
-
var
|
|
20301
|
+
var z5 = /* @__PURE__ */ function(r) {
|
|
20252
20302
|
function e(t, o) {
|
|
20253
20303
|
r.call(this), this.left = t, this.right = o, this.length = t.length + o.length, this.depth = Math.max(t.depth, o.depth) + 1;
|
|
20254
20304
|
}
|
|
@@ -20281,7 +20331,7 @@ var F5 = /* @__PURE__ */ function(r) {
|
|
|
20281
20331
|
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);
|
|
20282
20332
|
}, e;
|
|
20283
20333
|
}(qe);
|
|
20284
|
-
const
|
|
20334
|
+
const F5 = 500;
|
|
20285
20335
|
class _t {
|
|
20286
20336
|
constructor(e, t) {
|
|
20287
20337
|
this.items = e, this.eventCount = t;
|
|
@@ -20326,7 +20376,7 @@ class _t {
|
|
|
20326
20376
|
return d > H5 && (a = j5(a, d), s -= d), new _t(a.append(i), s);
|
|
20327
20377
|
}
|
|
20328
20378
|
remapping(e, t) {
|
|
20329
|
-
let o = new
|
|
20379
|
+
let o = new zn();
|
|
20330
20380
|
return this.items.forEach((n, i) => {
|
|
20331
20381
|
let s = n.mirrorOffset != null && i - n.mirrorOffset >= e ? o.maps.length - n.mirrorOffset : void 0;
|
|
20332
20382
|
o.appendMap(n.map, s);
|
|
@@ -20363,7 +20413,7 @@ class _t {
|
|
|
20363
20413
|
for (let u = t; u < s; u++)
|
|
20364
20414
|
d.push(new jt(i.maps[u]));
|
|
20365
20415
|
let c = this.items.slice(0, n).append(d).append(o), p = new _t(c, a);
|
|
20366
|
-
return p.emptyItemCount() >
|
|
20416
|
+
return p.emptyItemCount() > F5 && (p = p.compress(this.items.length - o.length)), p;
|
|
20367
20417
|
}
|
|
20368
20418
|
emptyItemCount() {
|
|
20369
20419
|
let e = 0;
|
|
@@ -20487,7 +20537,7 @@ function K5(r = {}) {
|
|
|
20487
20537
|
return r = {
|
|
20488
20538
|
depth: r.depth || 100,
|
|
20489
20539
|
newGroupDelay: r.newGroupDelay || 500
|
|
20490
|
-
}, new
|
|
20540
|
+
}, new Fe({
|
|
20491
20541
|
key: co,
|
|
20492
20542
|
state: {
|
|
20493
20543
|
init() {
|
|
@@ -20549,7 +20599,7 @@ const vg = wg(!1, !0), xg = wg(!0, !0), G5 = Xe.create({
|
|
|
20549
20599
|
"Shift-Mod-я": () => this.editor.commands.redo()
|
|
20550
20600
|
};
|
|
20551
20601
|
}
|
|
20552
|
-
}), J5 =
|
|
20602
|
+
}), J5 = Ft.create({
|
|
20553
20603
|
name: "horizontalRule",
|
|
20554
20604
|
addOptions() {
|
|
20555
20605
|
return {
|
|
@@ -20664,7 +20714,7 @@ const vg = wg(!1, !0), xg = wg(!0, !0), G5 = Xe.create({
|
|
|
20664
20714
|
})
|
|
20665
20715
|
];
|
|
20666
20716
|
}
|
|
20667
|
-
}), t3 =
|
|
20717
|
+
}), t3 = Ft.create({
|
|
20668
20718
|
name: "listItem",
|
|
20669
20719
|
addOptions() {
|
|
20670
20720
|
return {
|
|
@@ -20692,7 +20742,7 @@ const vg = wg(!1, !0), xg = wg(!0, !0), G5 = Xe.create({
|
|
|
20692
20742
|
"Shift-Tab": () => this.editor.commands.liftListItem(this.name)
|
|
20693
20743
|
};
|
|
20694
20744
|
}
|
|
20695
|
-
}), r3 = "listItem", Zp = "textStyle", eu = /^(\d+)\.\s$/, o3 =
|
|
20745
|
+
}), r3 = "listItem", Zp = "textStyle", eu = /^(\d+)\.\s$/, o3 = Ft.create({
|
|
20696
20746
|
name: "orderedList",
|
|
20697
20747
|
addOptions() {
|
|
20698
20748
|
return {
|
|
@@ -20758,7 +20808,7 @@ const vg = wg(!1, !0), xg = wg(!0, !0), G5 = Xe.create({
|
|
|
20758
20808
|
r
|
|
20759
20809
|
];
|
|
20760
20810
|
}
|
|
20761
|
-
}), n3 =
|
|
20811
|
+
}), n3 = Ft.create({
|
|
20762
20812
|
name: "paragraph",
|
|
20763
20813
|
priority: 1e3,
|
|
20764
20814
|
addOptions() {
|
|
@@ -20842,7 +20892,7 @@ const vg = wg(!1, !0), xg = wg(!0, !0), G5 = Xe.create({
|
|
|
20842
20892
|
})
|
|
20843
20893
|
];
|
|
20844
20894
|
}
|
|
20845
|
-
}), l3 =
|
|
20895
|
+
}), l3 = Ft.create({
|
|
20846
20896
|
name: "text",
|
|
20847
20897
|
group: "inline"
|
|
20848
20898
|
}), d3 = Xe.create({
|
|
@@ -20996,7 +21046,7 @@ ht.prototype = {
|
|
|
20996
21046
|
return n.j[r] = s, s;
|
|
20997
21047
|
}
|
|
20998
21048
|
};
|
|
20999
|
-
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",
|
|
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", zs = "BACKSLASH", Fs = "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";
|
|
21000
21050
|
var Tg = /* @__PURE__ */ Object.freeze({
|
|
21001
21051
|
__proto__: null,
|
|
21002
21052
|
ALPHANUMERICAL: Cg,
|
|
@@ -21005,8 +21055,8 @@ var Tg = /* @__PURE__ */ Object.freeze({
|
|
|
21005
21055
|
ASCIINUMERICAL: Sg,
|
|
21006
21056
|
ASTERISK: _s,
|
|
21007
21057
|
AT: kr,
|
|
21008
|
-
BACKSLASH:
|
|
21009
|
-
BACKTICK:
|
|
21058
|
+
BACKSLASH: zs,
|
|
21059
|
+
BACKTICK: Fs,
|
|
21010
21060
|
CARET: js,
|
|
21011
21061
|
CLOSEANGLEBRACKET: Ts,
|
|
21012
21062
|
CLOSEBRACE: Pn,
|
|
@@ -21062,7 +21112,7 @@ function y3(r = []) {
|
|
|
21062
21112
|
const e = {};
|
|
21063
21113
|
ht.groups = e;
|
|
21064
21114
|
const t = new ht();
|
|
21065
|
-
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, "`",
|
|
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, "`", Fs), 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, "\\", zs), I(t, "・", Mg);
|
|
21066
21116
|
const o = Te(t, ir, qd, {
|
|
21067
21117
|
[jl]: !0
|
|
21068
21118
|
});
|
|
@@ -21418,7 +21468,7 @@ const iu = ba("email", {
|
|
|
21418
21468
|
function x3({
|
|
21419
21469
|
groups: r
|
|
21420
21470
|
}) {
|
|
21421
|
-
const e = r.domain.concat([Rs, _s, kr,
|
|
21471
|
+
const e = r.domain.concat([Rs, _s, kr, zs, Fs, 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, zs, Fs, js, Hs, Vs, Tt, On, Pn, Bn, Ws, qs, Us, An, Vt, Gs, Ln, Ks], n = Mt(), i = I(n, Ln);
|
|
21422
21472
|
ee(i, o, i), ee(i, r.domain, i);
|
|
21423
21473
|
const s = Mt(), a = Mt(), l = Mt();
|
|
21424
21474
|
ee(n, r.domain, s), ee(n, r.scheme, a), ee(n, r.slashscheme, l), ee(s, o, i), ee(s, r.domain, s);
|
|
@@ -21444,7 +21494,7 @@ function x3({
|
|
|
21444
21494
|
ee(E, r.numeric, y);
|
|
21445
21495
|
const P = Mt(Vi), x = Mt();
|
|
21446
21496
|
ee(P, e, P), ee(P, t, x), ee(x, e, P), ee(x, t, x), I(C, Vt, P), I(y, Vt, P);
|
|
21447
|
-
const v = I(a, Cr),
|
|
21497
|
+
const v = I(a, Cr), z = I(l, Cr), _ = I(z, Vt), B = I(_, Vt);
|
|
21448
21498
|
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);
|
|
21449
21499
|
const T = [
|
|
21450
21500
|
[On, Pn],
|
|
@@ -21554,13 +21604,13 @@ function T3(r) {
|
|
|
21554
21604
|
return r.length === 1 ? r[0].isLink : r.length === 3 && r[1].isLink ? ["()", "[]"].includes(r[0].value + r[2].value) : !1;
|
|
21555
21605
|
}
|
|
21556
21606
|
function O3(r) {
|
|
21557
|
-
return new
|
|
21607
|
+
return new Fe({
|
|
21558
21608
|
key: new ut("autolink"),
|
|
21559
21609
|
appendTransaction: (e, t, o) => {
|
|
21560
21610
|
const n = e.some((d) => d.docChanged) && !t.doc.eq(o.doc), i = e.some((d) => d.getMeta("preventAutolink"));
|
|
21561
21611
|
if (!n || i)
|
|
21562
21612
|
return;
|
|
21563
|
-
const { tr: s } = o, a =
|
|
21613
|
+
const { tr: s } = o, a = zv(t.doc, [...e]);
|
|
21564
21614
|
if (Uv(a).forEach(({ newRange: d }) => {
|
|
21565
21615
|
const c = jv(o.doc, d, (m) => m.isTextblock);
|
|
21566
21616
|
let p, u;
|
|
@@ -21590,7 +21640,7 @@ function O3(r) {
|
|
|
21590
21640
|
});
|
|
21591
21641
|
}
|
|
21592
21642
|
function P3(r) {
|
|
21593
|
-
return new
|
|
21643
|
+
return new Fe({
|
|
21594
21644
|
key: new ut("handleClickLink"),
|
|
21595
21645
|
props: {
|
|
21596
21646
|
handleClick: (e, t, o) => {
|
|
@@ -21610,7 +21660,7 @@ function P3(r) {
|
|
|
21610
21660
|
});
|
|
21611
21661
|
}
|
|
21612
21662
|
function B3(r) {
|
|
21613
|
-
return new
|
|
21663
|
+
return new Fe({
|
|
21614
21664
|
key: new ut("handlePasteLink"),
|
|
21615
21665
|
props: {
|
|
21616
21666
|
handlePaste: (e, t, o) => {
|
|
@@ -21808,7 +21858,7 @@ const L3 = hr.create({
|
|
|
21808
21858
|
}), D3 = { class: "myInputGroup" }, N3 = {
|
|
21809
21859
|
key: 0,
|
|
21810
21860
|
class: "min-h-[2.5rem] flex items-center justify-start"
|
|
21811
|
-
}, 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" },
|
|
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" }, z3 = { class: "flex justify-between myPrimaryGap items-center divide-x divide-gray-200 py-4 px-4 overflow-x-auto border-b border-gray-20" }, F3 = { 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 = {
|
|
21812
21862
|
__name: "TipTapInput",
|
|
21813
21863
|
setup(r) {
|
|
21814
21864
|
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(() => {
|
|
@@ -21856,10 +21906,10 @@ const L3 = hr.create({
|
|
|
21856
21906
|
}, p.value = function() {
|
|
21857
21907
|
C.value.chain().focus().extendMarkRange("link").unsetLink().run(), t.value = !1;
|
|
21858
21908
|
}, u.value = function() {
|
|
21859
|
-
const B =
|
|
21909
|
+
const B = z();
|
|
21860
21910
|
B || (B || _(), t.value = !1);
|
|
21861
21911
|
};
|
|
21862
|
-
},
|
|
21912
|
+
}, z = function() {
|
|
21863
21913
|
x.value = null;
|
|
21864
21914
|
const B = /^https?:\/\//, T = S(!0);
|
|
21865
21915
|
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;
|
|
@@ -21904,7 +21954,7 @@ const L3 = hr.create({
|
|
|
21904
21954
|
[Ql, y.value]
|
|
21905
21955
|
]),
|
|
21906
21956
|
x.value ? (k(), M("div", N3, [
|
|
21907
|
-
h("p", I3,
|
|
21957
|
+
h("p", I3, F(x.value), 1)
|
|
21908
21958
|
])) : D("", !0)
|
|
21909
21959
|
])
|
|
21910
21960
|
])
|
|
@@ -21915,10 +21965,10 @@ const L3 = hr.create({
|
|
|
21915
21965
|
h("div", R3, [
|
|
21916
21966
|
O(m).selectedElementIsValidText() && O(C) ? (k(), M("div", $3, [
|
|
21917
21967
|
h("div", _3, [
|
|
21918
|
-
h("div",
|
|
21968
|
+
h("div", z3, [
|
|
21919
21969
|
h("div", null, [
|
|
21920
21970
|
h("div", null, [
|
|
21921
|
-
h("div",
|
|
21971
|
+
h("div", F3, [
|
|
21922
21972
|
h("button", {
|
|
21923
21973
|
onClick: T[1] || (T[1] = (j) => O(e).setShowModalTipTap(!1)),
|
|
21924
21974
|
type: "button",
|
|
@@ -22120,7 +22170,7 @@ const Q3 = /* @__PURE__ */ Zd(J3, [["render", Y3]]), X3 = { class: "flex items-e
|
|
|
22120
22170
|
class: "tertiaryHeader my-0 py-0"
|
|
22121
22171
|
}, {
|
|
22122
22172
|
default: $(() => [
|
|
22123
|
-
Ie(
|
|
22173
|
+
Ie(F(r.title), 1)
|
|
22124
22174
|
]),
|
|
22125
22175
|
_: 1
|
|
22126
22176
|
}),
|
|
@@ -22148,13 +22198,13 @@ const Q3 = /* @__PURE__ */ Zd(J3, [["render", Y3]]), X3 = { class: "flex items-e
|
|
|
22148
22198
|
onClick: o,
|
|
22149
22199
|
class: "mySecondaryButton focus:ring-2 focus:ring-blue-500",
|
|
22150
22200
|
type: "button"
|
|
22151
|
-
},
|
|
22201
|
+
}, F(r.firstButtonText), 1)) : D("", !0),
|
|
22152
22202
|
r.secondButtonText ? (k(), M("button", {
|
|
22153
22203
|
key: 1,
|
|
22154
22204
|
onClick: n,
|
|
22155
22205
|
class: "myPrimaryButton focus:ring-2 focus:ring-blue-500",
|
|
22156
22206
|
type: "button"
|
|
22157
|
-
},
|
|
22207
|
+
}, F(r.secondButtonText), 1)) : D("", !0)
|
|
22158
22208
|
])) : D("", !0)
|
|
22159
22209
|
])
|
|
22160
22210
|
]),
|
|
@@ -22210,7 +22260,7 @@ const Q3 = /* @__PURE__ */ Zd(J3, [["render", Y3]]), X3 = { class: "flex items-e
|
|
|
22210
22260
|
h("div", {
|
|
22211
22261
|
class: Y(["aspect-square w-6 h-6 border border-gray-800 rounded-sm", `bg-${(a = o.value) == null ? void 0 : a.replace("text-", "")}`])
|
|
22212
22262
|
}, null, 2),
|
|
22213
|
-
h("span", l4,
|
|
22263
|
+
h("span", l4, F(o.value), 1)
|
|
22214
22264
|
])) : D("", !0)
|
|
22215
22265
|
];
|
|
22216
22266
|
}),
|
|
@@ -22245,7 +22295,7 @@ const Q3 = /* @__PURE__ */ Zd(J3, [["render", Y3]]), X3 = { class: "flex items-e
|
|
|
22245
22295
|
h("div", {
|
|
22246
22296
|
class: Y(["aspect-square w-6 h-6 border border-gray-100 rounded-sm", `bg-${a.replace("text-", "")}`])
|
|
22247
22297
|
}, null, 2),
|
|
22248
|
-
h("span", p4,
|
|
22298
|
+
h("span", p4, F(a), 1)
|
|
22249
22299
|
])) : D("", !0)
|
|
22250
22300
|
], 2)
|
|
22251
22301
|
]),
|
|
@@ -22303,7 +22353,7 @@ const Q3 = /* @__PURE__ */ Zd(J3, [["render", Y3]]), X3 = { class: "flex items-e
|
|
|
22303
22353
|
h("div", {
|
|
22304
22354
|
class: Y(["aspect-square w-6 h-6 border border-gray-800 rounded-sm", `bg-${(a = o.value) == null ? void 0 : a.replace("bg-", "")}`])
|
|
22305
22355
|
}, null, 2),
|
|
22306
|
-
h("span", f4,
|
|
22356
|
+
h("span", f4, F(o.value), 1)
|
|
22307
22357
|
])) : D("", !0)
|
|
22308
22358
|
];
|
|
22309
22359
|
}),
|
|
@@ -22338,7 +22388,7 @@ const Q3 = /* @__PURE__ */ Zd(J3, [["render", Y3]]), X3 = { class: "flex items-e
|
|
|
22338
22388
|
h("div", {
|
|
22339
22389
|
class: Y(["aspect-square w-6 h-6 border border-gray-100 rounded-sm", `bg-${a.replace("bg-", "")}`])
|
|
22340
22390
|
}, null, 2),
|
|
22341
|
-
h("span", w4,
|
|
22391
|
+
h("span", w4, F(a), 1)
|
|
22342
22392
|
])) : D("", !0)
|
|
22343
22393
|
], 2)
|
|
22344
22394
|
]),
|
|
@@ -22370,7 +22420,7 @@ const Q3 = /* @__PURE__ */ Zd(J3, [["render", Y3]]), X3 = { class: "flex items-e
|
|
|
22370
22420
|
}, D4 = {
|
|
22371
22421
|
__name: "EditGetElement",
|
|
22372
22422
|
setup(r) {
|
|
22373
|
-
const e = Le, t =
|
|
22423
|
+
const e = Le, t = ze("CustomMediaComponent"), o = new Ze(e), n = L(() => e.getElement), i = L(() => {
|
|
22374
22424
|
const se = e.getShowModalTipTap;
|
|
22375
22425
|
return se && w(), se;
|
|
22376
22426
|
});
|
|
@@ -22381,8 +22431,8 @@ const Q3 = /* @__PURE__ */ Zd(J3, [["render", Y3]]), X3 = { class: "flex items-e
|
|
|
22381
22431
|
}, b.value = function() {
|
|
22382
22432
|
e.setShowModalTipTap(!1);
|
|
22383
22433
|
};
|
|
22384
|
-
}, C = L(() => e.getBasePrimaryImage), E = S(!1), y = S(!1), P = S(""), x = S(""), v = S(""),
|
|
22385
|
-
y.value = !0, P.value = "Media Library", x.value = null, v.value = "Close",
|
|
22434
|
+
}, C = L(() => e.getBasePrimaryImage), E = S(!1), y = S(!1), P = S(""), x = S(""), v = S(""), z = S(null), _ = S(null), B = S(null), T = S(null), j = S(null), q = function() {
|
|
22435
|
+
y.value = !0, P.value = "Media Library", x.value = null, v.value = "Close", z.value = "Select image", B.value = function() {
|
|
22386
22436
|
y.value = !1;
|
|
22387
22437
|
}, T.value = function() {
|
|
22388
22438
|
E.value = !0, o.updateBasePrimaryImage({ type: "unsplash" }), y.value = !1, E.value = !1;
|
|
@@ -22435,7 +22485,7 @@ const Q3 = /* @__PURE__ */ Zd(J3, [["render", Y3]]), X3 = { class: "flex items-e
|
|
|
22435
22485
|
[Ql, Q.value]
|
|
22436
22486
|
]),
|
|
22437
22487
|
oe.value ? (k(), M("div", C4, [
|
|
22438
|
-
h("p", M4,
|
|
22488
|
+
h("p", M4, F(oe.value), 1)
|
|
22439
22489
|
])) : D("", !0)
|
|
22440
22490
|
])
|
|
22441
22491
|
])
|
|
@@ -22474,7 +22524,7 @@ const Q3 = /* @__PURE__ */ Zd(J3, [["render", Y3]]), X3 = { class: "flex items-e
|
|
|
22474
22524
|
title: P.value,
|
|
22475
22525
|
description: x.value,
|
|
22476
22526
|
firstButtonText: v.value,
|
|
22477
|
-
secondButtonText:
|
|
22527
|
+
secondButtonText: z.value,
|
|
22478
22528
|
thirdButtonText: _.value,
|
|
22479
22529
|
customMediaComponent: O(t),
|
|
22480
22530
|
onFirstMediaButtonFunction: B.value,
|
|
@@ -23080,7 +23130,7 @@ class="border-2 border-gray-600 flex items-centre justify-start rounded-md font-
|
|
|
23080
23130
|
}
|
|
23081
23131
|
];
|
|
23082
23132
|
function _4() {
|
|
23083
|
-
const r =
|
|
23133
|
+
const r = ze("closeAddComponentModal", null), e = ze("closeMediaLibraryModal", null);
|
|
23084
23134
|
return {
|
|
23085
23135
|
closeAddComponentModal: r || (() => {
|
|
23086
23136
|
console.warn(
|
|
@@ -23094,7 +23144,7 @@ function _4() {
|
|
|
23094
23144
|
})
|
|
23095
23145
|
};
|
|
23096
23146
|
}
|
|
23097
|
-
const
|
|
23147
|
+
const z4 = { class: "p-4" }, F4 = { 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({
|
|
23098
23148
|
__name: "NoneCustomSearchComponent",
|
|
23099
23149
|
setup(r) {
|
|
23100
23150
|
const { closeAddComponentModal: e } = _4(), t = Le, o = new Ze(t), n = function(a) {
|
|
@@ -23107,8 +23157,8 @@ const F4 = { class: "p-4" }, z4 = { class: "mb-8" }, j4 = { class: "grid grid-co
|
|
|
23107
23157
|
title: a.title
|
|
23108
23158
|
};
|
|
23109
23159
|
}, s = (a) => R4(a);
|
|
23110
|
-
return (a, l) => (k(), M("div",
|
|
23111
|
-
h("div",
|
|
23160
|
+
return (a, l) => (k(), M("div", z4, [
|
|
23161
|
+
h("div", F4, [
|
|
23112
23162
|
l[0] || (l[0] = h("h3", { class: "myQuaternaryHeader mb-4" }, "Helper Components", -1)),
|
|
23113
23163
|
h("div", j4, [
|
|
23114
23164
|
(k(!0), M(we, null, Ae(O(N4), (d) => (k(), M("div", {
|
|
@@ -23118,9 +23168,9 @@ const F4 = { class: "p-4" }, z4 = { class: "mb-8" }, j4 = { class: "grid grid-co
|
|
|
23118
23168
|
}, [
|
|
23119
23169
|
h("div", V4, [
|
|
23120
23170
|
D("", !0),
|
|
23121
|
-
h("h4", W4,
|
|
23171
|
+
h("h4", W4, F(d.title), 1)
|
|
23122
23172
|
]),
|
|
23123
|
-
h("div", q4, " Click to add " +
|
|
23173
|
+
h("div", q4, " Click to add " + F(d.title.toLowerCase()) + " component ", 1)
|
|
23124
23174
|
], 8, H4))), 128))
|
|
23125
23175
|
])
|
|
23126
23176
|
]),
|
|
@@ -23139,7 +23189,7 @@ const F4 = { class: "p-4" }, z4 = { class: "mb-8" }, j4 = { class: "grid grid-co
|
|
|
23139
23189
|
}, null, 8, J4)
|
|
23140
23190
|
]),
|
|
23141
23191
|
h("div", Y4, [
|
|
23142
|
-
h("h4", Q4,
|
|
23192
|
+
h("h4", Q4, F(d.title), 1),
|
|
23143
23193
|
l[1] || (l[1] = h("div", { class: "myPrimaryParagraph text-xs font-normal pt-2" }, "Click to add component", -1))
|
|
23144
23194
|
])
|
|
23145
23195
|
], 8, K4))), 128))
|
|
@@ -23185,7 +23235,7 @@ const F4 = { class: "p-4" }, z4 = { class: "mb-8" }, j4 = { class: "grid grid-co
|
|
|
23185
23235
|
h("div", ek, [
|
|
23186
23236
|
h("div", tk, [
|
|
23187
23237
|
h("div", rk, [
|
|
23188
|
-
h("h3", ok,
|
|
23238
|
+
h("h3", ok, F(r.title), 1)
|
|
23189
23239
|
]),
|
|
23190
23240
|
h("div", {
|
|
23191
23241
|
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",
|
|
@@ -23210,7 +23260,7 @@ const F4 = { class: "p-4" }, z4 = { class: "mb-8" }, j4 = { class: "grid grid-co
|
|
|
23210
23260
|
class: "mySecondaryButton",
|
|
23211
23261
|
type: "button",
|
|
23212
23262
|
onClick: o
|
|
23213
|
-
},
|
|
23263
|
+
}, F(r.firstButtonText), 513)) : D("", !0)
|
|
23214
23264
|
])
|
|
23215
23265
|
])
|
|
23216
23266
|
]),
|
|
@@ -23262,7 +23312,7 @@ const F4 = { class: "p-4" }, z4 = { class: "mb-8" }, j4 = { class: "grid grid-co
|
|
|
23262
23312
|
h("div", gk, [
|
|
23263
23313
|
R(O(nd), { class: "myTertiaryHeader my-0" }, {
|
|
23264
23314
|
default: $(() => [
|
|
23265
|
-
Ie(
|
|
23315
|
+
Ie(F(r.title), 1)
|
|
23266
23316
|
]),
|
|
23267
23317
|
_: 1
|
|
23268
23318
|
}),
|
|
@@ -23343,7 +23393,7 @@ const F4 = { class: "p-4" }, z4 = { class: "mb-8" }, j4 = { class: "grid grid-co
|
|
|
23343
23393
|
h("div", Ck, [
|
|
23344
23394
|
R(O(nd), { class: "myTertiaryHeader my-0" }, {
|
|
23345
23395
|
default: $(() => [
|
|
23346
|
-
Ie(
|
|
23396
|
+
Ie(F(r.title), 1)
|
|
23347
23397
|
]),
|
|
23348
23398
|
_: 1
|
|
23349
23399
|
}),
|
|
@@ -23391,7 +23441,7 @@ const F4 = { class: "p-4" }, z4 = { class: "mb-8" }, j4 = { class: "grid grid-co
|
|
|
23391
23441
|
}, Ik = {
|
|
23392
23442
|
key: 3,
|
|
23393
23443
|
class: "text-xs pb-2"
|
|
23394
|
-
}, 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" },
|
|
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" }, zk = { class: "-mb-px flex text-xs font-medium text-myPrimaryMediumGrayColor" }, Fk = { 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 = {
|
|
23395
23445
|
__name: "AdvancedPageBuilderSettings",
|
|
23396
23446
|
setup(r) {
|
|
23397
23447
|
const e = Le, t = L(() => e.getElement), o = L(() => e.getComponent), n = L(() => e.getComponents), i = S("element"), s = function(a) {
|
|
@@ -23415,19 +23465,19 @@ const F4 = { class: "p-4" }, z4 = { class: "mb-8" }, j4 = { class: "grid grid-co
|
|
|
23415
23465
|
t.value === null || t.value === void 0 ? (k(), M("p", Lk)) : D("", !0),
|
|
23416
23466
|
t.value !== null && t.value !== void 0 ? (k(), M("p", Dk, [
|
|
23417
23467
|
l[3] || (l[3] = h("span", null, "Element type: ", -1)),
|
|
23418
|
-
h("span", null,
|
|
23468
|
+
h("span", null, F(typeof t.value), 1)
|
|
23419
23469
|
])) : D("", !0),
|
|
23420
23470
|
o.value === null || o.value === void 0 ? (k(), M("p", Nk, [
|
|
23421
23471
|
l[4] || (l[4] = h("span", null, "Component type: ", -1)),
|
|
23422
|
-
Ie(" " +
|
|
23472
|
+
Ie(" " + F(JSON.stringify(o.value)), 1)
|
|
23423
23473
|
])) : D("", !0),
|
|
23424
23474
|
o.value !== null && o.value !== void 0 ? (k(), M("p", Ik, [
|
|
23425
23475
|
l[5] || (l[5] = h("span", null, "Component type: ", -1)),
|
|
23426
|
-
h("span", null,
|
|
23476
|
+
h("span", null, F(Array.isArray(o.value) === !0 ? "array" : typeof o.value), 1)
|
|
23427
23477
|
])) : D("", !0),
|
|
23428
23478
|
h("p", Rk, [
|
|
23429
23479
|
l[6] || (l[6] = h("span", null, "Components: ", -1)),
|
|
23430
|
-
h("span", null,
|
|
23480
|
+
h("span", null, F(Array.isArray(n.value) === !0 ? "array" : typeof n.value), 1)
|
|
23431
23481
|
])
|
|
23432
23482
|
])
|
|
23433
23483
|
])
|
|
@@ -23436,7 +23486,7 @@ const F4 = { class: "p-4" }, z4 = { class: "mb-8" }, j4 = { class: "grid grid-co
|
|
|
23436
23486
|
l[17] || (l[17] = h("h4", { class: "myPrimaryParagraph text-sm pb-2" }, "Content", -1)),
|
|
23437
23487
|
h("div", $k, [
|
|
23438
23488
|
h("div", _k, [
|
|
23439
|
-
h("div",
|
|
23489
|
+
h("div", zk, [
|
|
23440
23490
|
h("div", {
|
|
23441
23491
|
onClick: l[0] || (l[0] = (x) => s("element")),
|
|
23442
23492
|
class: Y(["px-4 py-4 cursor-pointer", [i.value === "element" ? "text-white" : ""]])
|
|
@@ -23448,50 +23498,50 @@ const F4 = { class: "p-4" }, z4 = { class: "mb-8" }, j4 = { class: "grid grid-co
|
|
|
23448
23498
|
h("div", {
|
|
23449
23499
|
onClick: l[2] || (l[2] = (x) => s("components")),
|
|
23450
23500
|
class: Y(["px-4 py-4 cursor-pointer", [i.value === "components" ? "text-white" : ""]])
|
|
23451
|
-
}, " Components " +
|
|
23501
|
+
}, " Components " + F(Array.isArray(n.value) && n.value.length), 3)
|
|
23452
23502
|
])
|
|
23453
23503
|
]),
|
|
23454
|
-
h("div",
|
|
23504
|
+
h("div", Fk, [
|
|
23455
23505
|
i.value === "element" ? (k(), M("div", jk, [
|
|
23456
23506
|
o.value ? D("", !0) : (k(), M("div", Hk, [
|
|
23457
|
-
h("p", Vk,
|
|
23507
|
+
h("p", Vk, F(o.value === null ? "NULL" : typeof o.value), 1)
|
|
23458
23508
|
])),
|
|
23459
23509
|
t.value ? (k(), M("div", Wk, [
|
|
23460
23510
|
h("div", qk, [
|
|
23461
23511
|
l[9] || (l[9] = h("p", null, "Selected HTML:", -1)),
|
|
23462
|
-
h("p", Uk,
|
|
23512
|
+
h("p", Uk, F((d = t.value) == null ? void 0 : d.outerHTML), 1)
|
|
23463
23513
|
]),
|
|
23464
23514
|
h("div", Kk, [
|
|
23465
23515
|
l[10] || (l[10] = h("p", null, "Selected element src:", -1)),
|
|
23466
|
-
h("p", Gk,
|
|
23516
|
+
h("p", Gk, F((c = t.value) != null && c.src ? (p = t.value) == null ? void 0 : p.src : typeof ((u = t.value) == null ? void 0 : u.src)), 1)
|
|
23467
23517
|
]),
|
|
23468
23518
|
h("div", Jk, [
|
|
23469
23519
|
l[11] || (l[11] = h("p", null, "Selected element href:", -1)),
|
|
23470
|
-
h("p", Yk,
|
|
23520
|
+
h("p", Yk, F((m = t.value) != null && m.href ? (g = t.value) == null ? void 0 : g.href : typeof ((f = t.value) == null ? void 0 : f.href)), 1)
|
|
23471
23521
|
]),
|
|
23472
23522
|
h("div", Qk, [
|
|
23473
23523
|
l[12] || (l[12] = h("p", null, "Selected element class:", -1)),
|
|
23474
|
-
h("p", Xk,
|
|
23524
|
+
h("p", Xk, F((b = t.value) != null && b.classList ? (w = t.value) == null ? void 0 : w.classList : typeof ((C = t.value) == null ? void 0 : C.classList)), 1)
|
|
23475
23525
|
])
|
|
23476
23526
|
])) : D("", !0)
|
|
23477
23527
|
])) : D("", !0),
|
|
23478
23528
|
i.value === "component" ? (k(), M("div", Zk, [
|
|
23479
23529
|
o.value ? D("", !0) : (k(), M("div", e6, [
|
|
23480
|
-
h("p", t6,
|
|
23530
|
+
h("p", t6, F(o.value === null ? "NULL" : typeof o.value), 1)
|
|
23481
23531
|
])),
|
|
23482
23532
|
o.value ? (k(), M("div", r6, [
|
|
23483
|
-
h("p", o6, " Component ID: " +
|
|
23533
|
+
h("p", o6, " Component ID: " + F((E = o.value) == null ? void 0 : E.id), 1),
|
|
23484
23534
|
h("p", n6, [
|
|
23485
23535
|
l[13] || (l[13] = Ie(" Component Title:")),
|
|
23486
23536
|
l[14] || (l[14] = h("br", null, null, -1)),
|
|
23487
|
-
Ie(" " +
|
|
23537
|
+
Ie(" " + F((y = o.value) == null ? void 0 : y.title), 1)
|
|
23488
23538
|
]),
|
|
23489
|
-
h("p", i6, " Component HTML: " +
|
|
23539
|
+
h("p", i6, " Component HTML: " + F((P = o.value) == null ? void 0 : P.html_code), 1)
|
|
23490
23540
|
])) : D("", !0)
|
|
23491
23541
|
])) : D("", !0),
|
|
23492
23542
|
i.value === "components" ? (k(), M("div", s6, [
|
|
23493
23543
|
n.value ? D("", !0) : (k(), M("div", a6, [
|
|
23494
|
-
h("p", l6,
|
|
23544
|
+
h("p", l6, F(n.value === null ? "NULL" : typeof n.value), 1)
|
|
23495
23545
|
])),
|
|
23496
23546
|
n.value ? (k(), M("div", d6, [
|
|
23497
23547
|
(k(!0), M(we, null, Ae(n.value, (x) => {
|
|
@@ -23500,12 +23550,12 @@ const F4 = { class: "p-4" }, z4 = { class: "mb-8" }, j4 = { class: "grid grid-co
|
|
|
23500
23550
|
class: "border-b border-white mb-4 pb-4 last:border-none",
|
|
23501
23551
|
key: x.id
|
|
23502
23552
|
}, [
|
|
23503
|
-
h("p", c6, " Component ID: " +
|
|
23504
|
-
h("p", p6, " Component Title: " +
|
|
23553
|
+
h("p", c6, " Component ID: " + F(x.id), 1),
|
|
23554
|
+
h("p", p6, " Component Title: " + F((v = o.value) == null ? void 0 : v.title), 1),
|
|
23505
23555
|
h("p", u6, [
|
|
23506
23556
|
l[15] || (l[15] = Ie(" Component HTML:")),
|
|
23507
23557
|
l[16] || (l[16] = h("br", null, null, -1)),
|
|
23508
|
-
Ie(" " +
|
|
23558
|
+
Ie(" " + F(x.html_code), 1)
|
|
23509
23559
|
])
|
|
23510
23560
|
]);
|
|
23511
23561
|
}), 128))
|
|
@@ -23526,7 +23576,7 @@ const F4 = { class: "p-4" }, z4 = { class: "mb-8" }, j4 = { class: "grid grid-co
|
|
|
23526
23576
|
}, 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 = {
|
|
23527
23577
|
key: 1,
|
|
23528
23578
|
class: "mt-8"
|
|
23529
|
-
}, 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" },
|
|
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" }, z6 = { class: "px-6 py-4 whitespace-nowrap text-sm text-gray-500" }, F6 = { 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 = {
|
|
23530
23580
|
key: 2,
|
|
23531
23581
|
class: "mt-8"
|
|
23532
23582
|
}, 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 = {
|
|
@@ -23535,7 +23585,7 @@ const F4 = { class: "p-4" }, z4 = { class: "mb-8" }, j4 = { class: "grid grid-co
|
|
|
23535
23585
|
}, 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 = {
|
|
23536
23586
|
__name: "PageBuilderSettings",
|
|
23537
23587
|
setup(r) {
|
|
23538
|
-
const e = "v3.1.
|
|
23588
|
+
const e = "v3.1.26", t = Le, o = S(!1), n = S(""), i = S(null), s = L(() => t.getConfigPageBuilder), a = function() {
|
|
23539
23589
|
n.value = "Advanced Settings", o.value = !0;
|
|
23540
23590
|
}, l = function() {
|
|
23541
23591
|
o.value = !1;
|
|
@@ -23549,7 +23599,7 @@ const F4 = { class: "p-4" }, z4 = { class: "mb-8" }, j4 = { class: "grid grid-co
|
|
|
23549
23599
|
i.value = d.value.map((u) => u.html_code), c("downloaded_html.html", i.value.join(""));
|
|
23550
23600
|
};
|
|
23551
23601
|
return (u, m) => {
|
|
23552
|
-
var g, f, b, w, C, E, y, P, x, v,
|
|
23602
|
+
var g, f, b, w, C, E, y, P, x, v, z, _, B, T, j, q;
|
|
23553
23603
|
return k(), M("div", null, [
|
|
23554
23604
|
R(Tk, {
|
|
23555
23605
|
open: o.value,
|
|
@@ -23599,7 +23649,7 @@ const F4 = { class: "p-4" }, z4 = { class: "mb-8" }, j4 = { class: "grid grid-co
|
|
|
23599
23649
|
h("tr", null, [
|
|
23600
23650
|
m[2] || (m[2] = h("td", { class: "px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900" }, " Page Builder ", -1)),
|
|
23601
23651
|
h("td", S6, [
|
|
23602
|
-
h("span", C6,
|
|
23652
|
+
h("span", C6, F(O(e)), 1)
|
|
23603
23653
|
])
|
|
23604
23654
|
])
|
|
23605
23655
|
])
|
|
@@ -23627,11 +23677,11 @@ const F4 = { class: "p-4" }, z4 = { class: "mb-8" }, j4 = { class: "grid grid-co
|
|
|
23627
23677
|
h("tbody", P6, [
|
|
23628
23678
|
(b = (f = s.value) == null ? void 0 : f.resourceData) != null && b.title ? (k(), M("tr", B6, [
|
|
23629
23679
|
m[5] || (m[5] = h("td", { class: "px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900" }, " Title ", -1)),
|
|
23630
|
-
h("td", A6,
|
|
23680
|
+
h("td", A6, F(s.value.resourceData.title), 1)
|
|
23631
23681
|
])) : D("", !0),
|
|
23632
23682
|
(C = (w = s.value) == null ? void 0 : w.resourceData) != null && C.id ? (k(), M("tr", L6, [
|
|
23633
23683
|
m[6] || (m[6] = h("td", { class: "px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900" }, " ID ", -1)),
|
|
23634
|
-
h("td", D6,
|
|
23684
|
+
h("td", D6, F(s.value.resourceData.id), 1)
|
|
23635
23685
|
])) : D("", !0)
|
|
23636
23686
|
])
|
|
23637
23687
|
])
|
|
@@ -23658,14 +23708,14 @@ const F4 = { class: "p-4" }, z4 = { class: "mb-8" }, j4 = { class: "grid grid-co
|
|
|
23658
23708
|
h("tbody", _6, [
|
|
23659
23709
|
h("tr", null, [
|
|
23660
23710
|
m[9] || (m[9] = h("td", { class: "px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900" }, " User Name ", -1)),
|
|
23661
|
-
h("td",
|
|
23711
|
+
h("td", z6, F(s.value.userForPageBuilder.name), 1)
|
|
23662
23712
|
])
|
|
23663
23713
|
])
|
|
23664
23714
|
])
|
|
23665
23715
|
])
|
|
23666
23716
|
])
|
|
23667
23717
|
])) : D("", !0),
|
|
23668
|
-
h("div",
|
|
23718
|
+
h("div", F6, [
|
|
23669
23719
|
m[17] || (m[17] = h("h4", { class: "myQuaternaryHeader text-sm mb-2" }, "User Settings", -1)),
|
|
23670
23720
|
h("div", j6, [
|
|
23671
23721
|
h("div", H6, [
|
|
@@ -23685,13 +23735,13 @@ const F4 = { class: "p-4" }, z4 = { class: "mb-8" }, j4 = { class: "grid grid-co
|
|
|
23685
23735
|
h("tbody", W6, [
|
|
23686
23736
|
(P = (y = s.value) == null ? void 0 : y.userSettings) != null && P.theme ? (k(), M("tr", q6, [
|
|
23687
23737
|
m[12] || (m[12] = h("td", { class: "px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900" }, " Theme ", -1)),
|
|
23688
|
-
h("td", U6,
|
|
23738
|
+
h("td", U6, F(s.value.userSettings.theme), 1)
|
|
23689
23739
|
])) : D("", !0),
|
|
23690
23740
|
(v = (x = s.value) == null ? void 0 : x.userSettings) != null && v.language ? (k(), M("tr", K6, [
|
|
23691
23741
|
m[13] || (m[13] = h("td", { class: "px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900" }, " Language ", -1)),
|
|
23692
|
-
h("td", G6,
|
|
23742
|
+
h("td", G6, F(s.value.userSettings.language), 1)
|
|
23693
23743
|
])) : D("", !0),
|
|
23694
|
-
((_ = (
|
|
23744
|
+
((_ = (z = s.value) == null ? void 0 : z.userSettings) == null ? void 0 : _.autoSave) !== void 0 ? (k(), M("tr", J6, [
|
|
23695
23745
|
m[14] || (m[14] = h("td", { class: "px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900" }, " Auto Save ", -1)),
|
|
23696
23746
|
h("td", Y6, [
|
|
23697
23747
|
h("span", {
|
|
@@ -23699,7 +23749,7 @@ const F4 = { class: "p-4" }, z4 = { class: "mb-8" }, j4 = { class: "grid grid-co
|
|
|
23699
23749
|
"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",
|
|
23700
23750
|
s.value.userSettings.autoSave ? "bg-green-100 text-green-800" : "bg-red-100 text-red-800"
|
|
23701
23751
|
])
|
|
23702
|
-
},
|
|
23752
|
+
}, F(s.value.userSettings.autoSave ? "Enabled" : "Disabled"), 3)
|
|
23703
23753
|
])
|
|
23704
23754
|
])) : D("", !0),
|
|
23705
23755
|
((T = (B = s.value) == null ? void 0 : B.userSettings) == null ? void 0 : T.notifications) !== void 0 ? (k(), M("tr", Q6, [
|
|
@@ -23710,7 +23760,7 @@ const F4 = { class: "p-4" }, z4 = { class: "mb-8" }, j4 = { class: "grid grid-co
|
|
|
23710
23760
|
"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",
|
|
23711
23761
|
s.value.userSettings.notifications ? "bg-green-100 text-green-800" : "bg-red-100 text-red-800"
|
|
23712
23762
|
])
|
|
23713
|
-
},
|
|
23763
|
+
}, F(s.value.userSettings.notifications ? "Enabled" : "Disabled"), 3)
|
|
23714
23764
|
])
|
|
23715
23765
|
])) : D("", !0)
|
|
23716
23766
|
])
|
|
@@ -23745,15 +23795,15 @@ const F4 = { class: "p-4" }, z4 = { class: "mb-8" }, j4 = { class: "grid grid-co
|
|
|
23745
23795
|
s.value.updateOrCreate === "create" ? "bg-green-100 text-green-800" : "bg-blue-100 text-blue-800"
|
|
23746
23796
|
])
|
|
23747
23797
|
}, [
|
|
23748
|
-
s.value.updateOrCreate.formType === "create" ? (k(), M("span", iS,
|
|
23749
|
-
s.value.updateOrCreate.formType === "update" ? (k(), M("span", sS,
|
|
23798
|
+
s.value && s.value.updateOrCreate.formType === "create" ? (k(), M("span", iS, F(s.value.updateOrCreate.formType), 1)) : D("", !0),
|
|
23799
|
+
s.value && s.value.updateOrCreate.formType === "update" ? (k(), M("span", sS, F(s.value.updateOrCreate.formType), 1)) : D("", !0)
|
|
23750
23800
|
], 2)
|
|
23751
23801
|
])
|
|
23752
23802
|
]),
|
|
23753
23803
|
s.value.updateOrCreate.createNewResourceFormName && s.value.updateOrCreate.createNewResourceFormName.length > 0 ? (k(), M("tr", aS, [
|
|
23754
23804
|
m[19] || (m[19] = h("td", { class: "px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900" }, " Form Name ", -1)),
|
|
23755
23805
|
h("td", lS, [
|
|
23756
|
-
h("span", dS,
|
|
23806
|
+
h("span", dS, F(s.value.updateOrCreate.createNewResourceFormName), 1)
|
|
23757
23807
|
])
|
|
23758
23808
|
])) : D("", !0)
|
|
23759
23809
|
])
|
|
@@ -23799,7 +23849,7 @@ const F4 = { class: "p-4" }, z4 = { class: "mb-8" }, j4 = { class: "grid grid-co
|
|
|
23799
23849
|
h("div", vS, [
|
|
23800
23850
|
h("div", xS, [
|
|
23801
23851
|
h("div", kS, [
|
|
23802
|
-
h("span", SS,
|
|
23852
|
+
h("span", SS, F(s.value.pageBuilderLogo.src), 1)
|
|
23803
23853
|
])
|
|
23804
23854
|
])
|
|
23805
23855
|
])
|
|
@@ -23844,14 +23894,14 @@ const F4 = { class: "p-4" }, z4 = { class: "mb-8" }, j4 = { class: "grid grid-co
|
|
|
23844
23894
|
};
|
|
23845
23895
|
}, v = function() {
|
|
23846
23896
|
C.value = "Settings", w.value = !0;
|
|
23847
|
-
},
|
|
23897
|
+
}, z = function() {
|
|
23848
23898
|
w.value = !1;
|
|
23849
23899
|
};
|
|
23850
23900
|
return (_, B) => (k(), M("div", null, [
|
|
23851
23901
|
R(yk, {
|
|
23852
23902
|
open: w.value,
|
|
23853
23903
|
title: C.value,
|
|
23854
|
-
onSlideOverButton:
|
|
23904
|
+
onSlideOverButton: z
|
|
23855
23905
|
}, {
|
|
23856
23906
|
default: $(() => [
|
|
23857
23907
|
R(CS)
|
|
@@ -23917,7 +23967,7 @@ const F4 = { class: "p-4" }, z4 = { class: "mb-8" }, j4 = { class: "grid grid-co
|
|
|
23917
23967
|
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" }, [
|
|
23918
23968
|
h("span", { class: "material-symbols-outlined text-[16px]" }, " person ")
|
|
23919
23969
|
], -1)),
|
|
23920
|
-
h("div", null,
|
|
23970
|
+
h("div", null, F(o.value.userForPageBuilder.name), 1)
|
|
23921
23971
|
])
|
|
23922
23972
|
], 2)
|
|
23923
23973
|
]),
|
|
@@ -24038,7 +24088,7 @@ function LS(r, e, t, o, n, i) {
|
|
|
24038
24088
|
], 2)
|
|
24039
24089
|
], 2);
|
|
24040
24090
|
}
|
|
24041
|
-
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" },
|
|
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" }, zS = { class: "mt-1 relative flex items-center w-full border myPrimaryInput py-0 p-0" }, FS = {
|
|
24042
24092
|
__name: "ClassEditor",
|
|
24043
24093
|
setup(r) {
|
|
24044
24094
|
const e = Le, t = new Ze(e), o = S(null), n = L(() => e.getCurrentClasses);
|
|
@@ -24066,13 +24116,13 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
24066
24116
|
}
|
|
24067
24117
|
}, [
|
|
24068
24118
|
h("div", IS, [
|
|
24069
|
-
h("span", RS,
|
|
24119
|
+
h("span", RS, F(d), 1)
|
|
24070
24120
|
])
|
|
24071
24121
|
], 8, NS))), 128))
|
|
24072
24122
|
]),
|
|
24073
24123
|
h("div", $S, [
|
|
24074
24124
|
h("div", _S, [
|
|
24075
|
-
h("div",
|
|
24125
|
+
h("div", zS, [
|
|
24076
24126
|
lt(h("input", {
|
|
24077
24127
|
"onUpdate:modelValue": l[0] || (l[0] = (d) => i.value = d),
|
|
24078
24128
|
type: "text",
|
|
@@ -24097,7 +24147,7 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
24097
24147
|
}, jS = { key: 0 }, HS = ["src"], VS = {
|
|
24098
24148
|
__name: "ImageEditor",
|
|
24099
24149
|
setup(r) {
|
|
24100
|
-
const e = Le, t =
|
|
24150
|
+
const e = Le, t = ze("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() {
|
|
24101
24151
|
i.value = !0, s.value = "Media Library", a.value = null, l.value = "Close", d.value = "Select image", p.value = function() {
|
|
24102
24152
|
i.value = !1;
|
|
24103
24153
|
}, u.value = function() {
|
|
@@ -24169,7 +24219,7 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
24169
24219
|
}, null, 2)) : D("", !0),
|
|
24170
24220
|
h("span", {
|
|
24171
24221
|
class: Y(["block truncate", [(o.value !== "none", "")]])
|
|
24172
|
-
},
|
|
24222
|
+
}, F(o.value === "none" ? "Transparent" : o.value), 3)
|
|
24173
24223
|
]),
|
|
24174
24224
|
s[2] || (s[2] = h("span", { class: "pointer-events-none absolute inset-y-0 right-0 ml-3 flex items-center pr-2" }, [
|
|
24175
24225
|
h("span", { class: "material-symbols-outlined" }, " keyboard_arrow_down ")
|
|
@@ -24209,7 +24259,7 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
24209
24259
|
key: 1,
|
|
24210
24260
|
class: Y(["aspect-square w-6 h-6 bg-gray-950", `${a}`])
|
|
24211
24261
|
}, null, 2)) : D("", !0),
|
|
24212
|
-
a !== "none" ? (k(), M("span", YS,
|
|
24262
|
+
a !== "none" ? (k(), M("span", YS, F(a), 1)) : D("", !0),
|
|
24213
24263
|
a === "none" ? (k(), M("span", QS, "Transparent")) : D("", !0)
|
|
24214
24264
|
])
|
|
24215
24265
|
], 2)
|
|
@@ -24267,7 +24317,7 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
24267
24317
|
}, null, 2)) : D("", !0),
|
|
24268
24318
|
h("span", {
|
|
24269
24319
|
class: Y(["block truncate", [(o.value !== "none", "")]])
|
|
24270
|
-
},
|
|
24320
|
+
}, F(o.value === "none" ? "Transparent" : o.value), 3)
|
|
24271
24321
|
]),
|
|
24272
24322
|
s[2] || (s[2] = h("span", { class: "pointer-events-none absolute inset-y-0 right-0 ml-3 flex items-center pr-2" }, [
|
|
24273
24323
|
h("span", { class: "material-symbols-outlined" }, " keyboard_arrow_down ")
|
|
@@ -24308,7 +24358,7 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
24308
24358
|
class: Y(["aspect-square w-6 h-6 bg-gray-950", `${a}`])
|
|
24309
24359
|
}, null, 2)) : D("", !0),
|
|
24310
24360
|
a === "none" ? (k(), M("span", iC, "Transparent")) : D("", !0),
|
|
24311
|
-
a !== "none" ? (k(), M("span", sC,
|
|
24361
|
+
a !== "none" ? (k(), M("span", sC, F(a), 1)) : D("", !0)
|
|
24312
24362
|
])
|
|
24313
24363
|
], 2)
|
|
24314
24364
|
]),
|
|
@@ -24385,7 +24435,7 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
24385
24435
|
disabled: "",
|
|
24386
24436
|
value: ""
|
|
24387
24437
|
}, "Select", -1)),
|
|
24388
|
-
(k(!0), M(we, null, Ae(O(Er).verticalPadding, (m) => (k(), M("option", { key: m },
|
|
24438
|
+
(k(!0), M(we, null, Ae(O(Er).verticalPadding, (m) => (k(), M("option", { key: m }, F(m), 1))), 128))
|
|
24389
24439
|
], 544), [
|
|
24390
24440
|
[$t, o.value]
|
|
24391
24441
|
])
|
|
@@ -24401,7 +24451,7 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
24401
24451
|
disabled: "",
|
|
24402
24452
|
value: ""
|
|
24403
24453
|
}, "Select", -1)),
|
|
24404
|
-
(k(!0), M(we, null, Ae(O(Er).horizontalPadding, (m) => (k(), M("option", { key: m },
|
|
24454
|
+
(k(!0), M(we, null, Ae(O(Er).horizontalPadding, (m) => (k(), M("option", { key: m }, F(m), 1))), 128))
|
|
24405
24455
|
], 544), [
|
|
24406
24456
|
[$t, n.value]
|
|
24407
24457
|
])
|
|
@@ -24418,7 +24468,7 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
24418
24468
|
disabled: "",
|
|
24419
24469
|
value: ""
|
|
24420
24470
|
}, "Select", -1)),
|
|
24421
|
-
(k(!0), M(we, null, Ae(O(Er).verticalMargin, (m) => (k(), M("option", { key: m },
|
|
24471
|
+
(k(!0), M(we, null, Ae(O(Er).verticalMargin, (m) => (k(), M("option", { key: m }, F(m), 1))), 128))
|
|
24422
24472
|
], 544), [
|
|
24423
24473
|
[$t, i.value]
|
|
24424
24474
|
])
|
|
@@ -24434,7 +24484,7 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
24434
24484
|
disabled: "",
|
|
24435
24485
|
value: ""
|
|
24436
24486
|
}, "Select", -1)),
|
|
24437
|
-
(k(!0), M(we, null, Ae(O(Er).horizontalMargin, (m) => (k(), M("option", { key: m },
|
|
24487
|
+
(k(!0), M(we, null, Ae(O(Er).horizontalMargin, (m) => (k(), M("option", { key: m }, F(m), 1))), 128))
|
|
24438
24488
|
], 544), [
|
|
24439
24489
|
[$t, s.value]
|
|
24440
24490
|
])
|
|
@@ -24494,7 +24544,7 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
24494
24544
|
disabled: "",
|
|
24495
24545
|
value: ""
|
|
24496
24546
|
}, "Select", -1)),
|
|
24497
|
-
(k(!0), M(we, null, Ae(O(qt).roundedGlobal, (f) => (k(), M("option", { key: f },
|
|
24547
|
+
(k(!0), M(we, null, Ae(O(qt).roundedGlobal, (f) => (k(), M("option", { key: f }, F(f), 1))), 128))
|
|
24498
24548
|
], 544), [
|
|
24499
24549
|
[$t, o.value]
|
|
24500
24550
|
])
|
|
@@ -24511,7 +24561,7 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
24511
24561
|
disabled: "",
|
|
24512
24562
|
value: ""
|
|
24513
24563
|
}, "Select", -1)),
|
|
24514
|
-
(k(!0), M(we, null, Ae(O(qt).roundedTopLeft, (f) => (k(), M("option", { key: f },
|
|
24564
|
+
(k(!0), M(we, null, Ae(O(qt).roundedTopLeft, (f) => (k(), M("option", { key: f }, F(f), 1))), 128))
|
|
24515
24565
|
], 544), [
|
|
24516
24566
|
[$t, n.value]
|
|
24517
24567
|
])
|
|
@@ -24527,7 +24577,7 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
24527
24577
|
disabled: "",
|
|
24528
24578
|
value: ""
|
|
24529
24579
|
}, "Select", -1)),
|
|
24530
|
-
(k(!0), M(we, null, Ae(O(qt).roundedTopRight, (f) => (k(), M("option", { key: f },
|
|
24580
|
+
(k(!0), M(we, null, Ae(O(qt).roundedTopRight, (f) => (k(), M("option", { key: f }, F(f), 1))), 128))
|
|
24531
24581
|
], 544), [
|
|
24532
24582
|
[$t, i.value]
|
|
24533
24583
|
])
|
|
@@ -24543,7 +24593,7 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
24543
24593
|
disabled: "",
|
|
24544
24594
|
value: ""
|
|
24545
24595
|
}, "Select", -1)),
|
|
24546
|
-
(k(!0), M(we, null, Ae(O(qt).roundedBottomLeft, (f) => (k(), M("option", { key: f },
|
|
24596
|
+
(k(!0), M(we, null, Ae(O(qt).roundedBottomLeft, (f) => (k(), M("option", { key: f }, F(f), 1))), 128))
|
|
24547
24597
|
], 544), [
|
|
24548
24598
|
[$t, s.value]
|
|
24549
24599
|
])
|
|
@@ -24559,7 +24609,7 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
24559
24609
|
disabled: "",
|
|
24560
24610
|
value: ""
|
|
24561
24611
|
}, "Select", -1)),
|
|
24562
|
-
(k(!0), M(we, null, Ae(O(qt).roundedBottomRight, (f) => (k(), M("option", { key: f },
|
|
24612
|
+
(k(!0), M(we, null, Ae(O(qt).roundedBottomRight, (f) => (k(), M("option", { key: f }, F(f), 1))), 128))
|
|
24563
24613
|
], 544), [
|
|
24564
24614
|
[$t, a.value]
|
|
24565
24615
|
])
|
|
@@ -24612,7 +24662,7 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
24612
24662
|
disabled: "",
|
|
24613
24663
|
value: ""
|
|
24614
24664
|
}, "Select", -1)),
|
|
24615
|
-
(k(!0), M(we, null, Ae(O($o).borderStyle, (p) => (k(), M("option", { key: p },
|
|
24665
|
+
(k(!0), M(we, null, Ae(O($o).borderStyle, (p) => (k(), M("option", { key: p }, F(p), 1))), 128))
|
|
24616
24666
|
], 544), [
|
|
24617
24667
|
[$t, o.value]
|
|
24618
24668
|
])
|
|
@@ -24628,7 +24678,7 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
24628
24678
|
disabled: "",
|
|
24629
24679
|
value: ""
|
|
24630
24680
|
}, "Select", -1)),
|
|
24631
|
-
(k(!0), M(we, null, Ae(O($o).borderWidth, (p) => (k(), M("option", { key: p },
|
|
24681
|
+
(k(!0), M(we, null, Ae(O($o).borderWidth, (p) => (k(), M("option", { key: p }, F(p), 1))), 128))
|
|
24632
24682
|
], 544), [
|
|
24633
24683
|
[$t, n.value]
|
|
24634
24684
|
])
|
|
@@ -24655,7 +24705,7 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
24655
24705
|
key: 1,
|
|
24656
24706
|
class: Y(["aspect-square w-6 h-6 border border-gray-100 rounded-sm", `bg-${(p = i.value) == null ? void 0 : p.replace("border-", "")}`])
|
|
24657
24707
|
}, null, 2)) : D("", !0),
|
|
24658
|
-
h("span", MC,
|
|
24708
|
+
h("span", MC, F(i.value), 1)
|
|
24659
24709
|
]),
|
|
24660
24710
|
c[12] || (c[12] = h("span", { class: "pointer-events-none absolute inset-y-0 right-0 ml-3 flex items-center pr-2" }, [
|
|
24661
24711
|
h("span", { class: "material-symbols-outlined" }, " keyboard_arrow_down ")
|
|
@@ -24697,7 +24747,7 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
24697
24747
|
class: Y(["aspect-square w-6 h-6 bg-gray-950", `bg-${p.replace("border-", "")}`])
|
|
24698
24748
|
}, null, 2)) : D("", !0),
|
|
24699
24749
|
p === "none" ? (k(), M("span", OC, "Transparent")) : D("", !0),
|
|
24700
|
-
p !== "none" ? (k(), M("span", PC,
|
|
24750
|
+
p !== "none" ? (k(), M("span", PC, F(p), 1)) : D("", !0)
|
|
24701
24751
|
])
|
|
24702
24752
|
], 2)
|
|
24703
24753
|
]),
|
|
@@ -24783,7 +24833,7 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
24783
24833
|
_: 1
|
|
24784
24834
|
}));
|
|
24785
24835
|
}
|
|
24786
|
-
}, _C = { class: "h-full w-80 bg-white" },
|
|
24836
|
+
}, _C = { class: "h-full w-80 bg-white" }, zC = { class: "h-screen flex flex-col" }, FC = { 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 = {
|
|
24787
24837
|
__name: "RightSidebarEditor",
|
|
24788
24838
|
emits: ["closeEditor"],
|
|
24789
24839
|
setup(r, { emit: e }) {
|
|
@@ -24792,8 +24842,8 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
24792
24842
|
return (s = o.value) == null ? void 0 : s.tagName;
|
|
24793
24843
|
}), i = L(() => o.value instanceof HTMLElement && o.value.innerText.trim() !== " " || o.value instanceof HTMLImageElement);
|
|
24794
24844
|
return (s, a) => (k(), M("div", _C, [
|
|
24795
|
-
h("div",
|
|
24796
|
-
h("div",
|
|
24845
|
+
h("div", zC, [
|
|
24846
|
+
h("div", FC, [
|
|
24797
24847
|
h("button", {
|
|
24798
24848
|
type: "button",
|
|
24799
24849
|
onClick: a[0] || (a[0] = (l) => s.$emit("closeEditor")),
|
|
@@ -24803,7 +24853,7 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
24803
24853
|
])),
|
|
24804
24854
|
h("p", jC, [
|
|
24805
24855
|
a[2] || (a[2] = Ie(" Editing ")),
|
|
24806
|
-
h("span", HC, "<" +
|
|
24856
|
+
h("span", HC, "<" + F(n.value) + ">", 1)
|
|
24807
24857
|
])
|
|
24808
24858
|
]),
|
|
24809
24859
|
h("div", VC, [
|
|
@@ -24829,7 +24879,7 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
24829
24879
|
R(BC)
|
|
24830
24880
|
]),
|
|
24831
24881
|
h("article", null, [
|
|
24832
|
-
R(
|
|
24882
|
+
R(FS)
|
|
24833
24883
|
])
|
|
24834
24884
|
], 512), [
|
|
24835
24885
|
[Ug, i.value === !0]
|
|
@@ -24863,37 +24913,10 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
24863
24913
|
CustomSearchComponent: {
|
|
24864
24914
|
type: Object,
|
|
24865
24915
|
default: null
|
|
24866
|
-
},
|
|
24867
|
-
configPageBuilder: {
|
|
24868
|
-
type: Object,
|
|
24869
|
-
default: () => ({ updateOrCreate: "create" }),
|
|
24870
|
-
required: !1
|
|
24871
24916
|
}
|
|
24872
24917
|
},
|
|
24873
24918
|
setup(r) {
|
|
24874
|
-
const e = r, t = am, o = Le;
|
|
24875
|
-
if (e.configPageBuilder) {
|
|
24876
|
-
const x = {
|
|
24877
|
-
formType: "create",
|
|
24878
|
-
createNewResourceFormName: "post"
|
|
24879
|
-
}, v = {
|
|
24880
|
-
theme: "light",
|
|
24881
|
-
language: "en",
|
|
24882
|
-
autoSave: !0
|
|
24883
|
-
}, F = {
|
|
24884
|
-
...e.configPageBuilder,
|
|
24885
|
-
updateOrCreate: {
|
|
24886
|
-
...x,
|
|
24887
|
-
...e.configPageBuilder.updateOrCreate
|
|
24888
|
-
},
|
|
24889
|
-
userSettings: {
|
|
24890
|
-
...v,
|
|
24891
|
-
...e.configPageBuilder.userSettings
|
|
24892
|
-
}
|
|
24893
|
-
};
|
|
24894
|
-
o.setConfigPageBuilder(F);
|
|
24895
|
-
}
|
|
24896
|
-
const n = new Ze(o);
|
|
24919
|
+
const e = r, t = am, o = Le, n = new Ze(o);
|
|
24897
24920
|
Ve("pageBuilderStateStore", o), Ve("internalPinia", t), Ve("CustomMediaComponent", e.CustomMediaLibraryComponent), Ve("CustomSearchComponent", e.CustomSearchComponent), Ve("closeAddComponentModal", () => {
|
|
24898
24921
|
u.value = !1;
|
|
24899
24922
|
});
|
|
@@ -24921,7 +24944,7 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
24921
24944
|
o.setComponent(x);
|
|
24922
24945
|
}, P = S(null);
|
|
24923
24946
|
return ke(async () => {
|
|
24924
|
-
n.updateLocalStorageItemName(), await n.setEventListenersForElements(), s.value.updateOrCreate.formType === "create" && n.loadExistingContent(), n.removeHoveredAndSelected();
|
|
24947
|
+
n.updateLocalStorageItemName(), await n.setEventListenersForElements(), s.value && s.value.updateOrCreate && s.value.updateOrCreate.formType === "create" && n.loadExistingContent(), n.removeHoveredAndSelected();
|
|
24925
24948
|
}), (x, v) => (k(), M("div", qC, [
|
|
24926
24949
|
u.value ? (k(), Se(dk, {
|
|
24927
24950
|
key: 0,
|
|
@@ -24943,7 +24966,7 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
24943
24966
|
h("div", null, [
|
|
24944
24967
|
h("div", UC, [
|
|
24945
24968
|
h("div", {
|
|
24946
|
-
onClick: v[3] || (v[3] = (
|
|
24969
|
+
onClick: v[3] || (v[3] = (z) => O(o).setComponent(null)),
|
|
24947
24970
|
class: "px-4 lg:h-[10vh] h-[16vh] flex items-center justify-between border-b border-gray-200 bg-white"
|
|
24948
24971
|
}, [
|
|
24949
24972
|
h("div", KC, [
|
|
@@ -24956,7 +24979,7 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
24956
24979
|
])) : D("", !0),
|
|
24957
24980
|
h("button", {
|
|
24958
24981
|
class: "myPrimaryButton lg:text-sm text-[10px] lg:py-2 py-2 min-h-2 ml-4",
|
|
24959
|
-
onClick: v[0] || (v[0] = (...
|
|
24982
|
+
onClick: v[0] || (v[0] = (...z) => O(n).saveComponentsLocalStorage && O(n).saveComponentsLocalStorage(...z)),
|
|
24960
24983
|
type: "button"
|
|
24961
24984
|
}, v[15] || (v[15] = [
|
|
24962
24985
|
h("span", { class: "material-symbols-outlined text-[18px]" }, " save ", -1),
|
|
@@ -24964,7 +24987,7 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
24964
24987
|
])),
|
|
24965
24988
|
h("button", {
|
|
24966
24989
|
class: "myPrimaryButton lg:text-sm text-[10px] lg:py-2 py-2 min-h-2 ml-4 bg-red-500",
|
|
24967
|
-
onClick: v[1] || (v[1] = (...
|
|
24990
|
+
onClick: v[1] || (v[1] = (...z) => O(n).removeItemComponentsLocalStorageCreate && O(n).removeItemComponentsLocalStorageCreate(...z)),
|
|
24968
24991
|
type: "button"
|
|
24969
24992
|
}, v[16] || (v[16] = [
|
|
24970
24993
|
h("span", { class: "material-symbols-outlined text-[18px]" }, " delete ", -1),
|
|
@@ -24972,7 +24995,7 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
24972
24995
|
])),
|
|
24973
24996
|
h("button", {
|
|
24974
24997
|
class: "myPrimaryButton lg:text-sm text-[10px] lg:py-2 py-2 min-h-2 ml-4 bg-red-800",
|
|
24975
|
-
onClick: v[2] || (v[2] = (...
|
|
24998
|
+
onClick: v[2] || (v[2] = (...z) => O(n).removeItemComponentsLocalStorageUpdate && O(n).removeItemComponentsLocalStorageUpdate(...z)),
|
|
24976
24999
|
type: "button"
|
|
24977
25000
|
}, v[17] || (v[17] = [
|
|
24978
25001
|
h("span", { class: "material-symbols-outlined text-[18px]" }, " delete ", -1),
|
|
@@ -24983,7 +25006,7 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
24983
25006
|
]),
|
|
24984
25007
|
h("div", YC, [
|
|
24985
25008
|
h("div", {
|
|
24986
|
-
onClick: v[6] || (v[6] = Po((
|
|
25009
|
+
onClick: v[6] || (v[6] = Po((z) => O(o).setComponent(null), ["self"])),
|
|
24987
25010
|
class: "min-w-[3.5rem] pt-6 pb-2 my-2 mx-2 bg-myPrimaryLightGrayColor rounded-full shadow"
|
|
24988
25011
|
}, [
|
|
24989
25012
|
h("div", QC, [
|
|
@@ -24999,7 +25022,7 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
24999
25022
|
]))
|
|
25000
25023
|
]),
|
|
25001
25024
|
h("div", {
|
|
25002
|
-
onClick: v[5] || (v[5] = Po((
|
|
25025
|
+
onClick: v[5] || (v[5] = Po((z) => O(o).setComponent(null), ["self"]))
|
|
25003
25026
|
}, [
|
|
25004
25027
|
C.value ? (k(), Se(O0, { key: 0 })) : D("", !0)
|
|
25005
25028
|
])
|
|
@@ -25008,7 +25031,7 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
25008
25031
|
h("main", ZC, [
|
|
25009
25032
|
h("div", e7, [
|
|
25010
25033
|
h("div", {
|
|
25011
|
-
onClick: v[7] || (v[7] = Po((
|
|
25034
|
+
onClick: v[7] || (v[7] = Po((z) => O(o).setComponent(null), ["self"])),
|
|
25012
25035
|
class: "w-4/12 flex justify-start items-center py-2 pl-2 h-full"
|
|
25013
25036
|
}, v[19] || (v[19] = [
|
|
25014
25037
|
h("div", { class: "flex gap-2" }, [
|
|
@@ -25018,13 +25041,13 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
25018
25041
|
], -1)
|
|
25019
25042
|
])),
|
|
25020
25043
|
h("div", {
|
|
25021
|
-
onClick: v[8] || (v[8] = Po((
|
|
25044
|
+
onClick: v[8] || (v[8] = Po((z) => O(o).setComponent(null), ["self"])),
|
|
25022
25045
|
class: "w-4/12 flex justify-center py-2"
|
|
25023
25046
|
}, [
|
|
25024
25047
|
R(TS, { onPreviewCurrentDesign: l })
|
|
25025
25048
|
]),
|
|
25026
25049
|
h("div", {
|
|
25027
|
-
onClick: v[12] || (v[12] = Po((
|
|
25050
|
+
onClick: v[12] || (v[12] = Po((z) => O(o).setComponent(null), ["self"])),
|
|
25028
25051
|
class: "w-4/12 flex justify-end py-2 pr-2"
|
|
25029
25052
|
}, [
|
|
25030
25053
|
h("div", t7, [
|
|
@@ -25060,7 +25083,7 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
25060
25083
|
a.value === !1 ? (k(), M("button", {
|
|
25061
25084
|
key: 0,
|
|
25062
25085
|
type: "button",
|
|
25063
|
-
onClick: v[11] || (v[11] = (
|
|
25086
|
+
onClick: v[11] || (v[11] = (z) => O(o).setMenuRight(!0))
|
|
25064
25087
|
}, v[22] || (v[22] = [
|
|
25065
25088
|
h("div", { class: "flex items-center justify-center gap-2" }, [
|
|
25066
25089
|
h("span", { class: "lg:block hidden" }, " Styling "),
|
|
@@ -25080,17 +25103,17 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
25080
25103
|
ref_key: "draggableZone",
|
|
25081
25104
|
ref: P
|
|
25082
25105
|
}, [
|
|
25083
|
-
(k(!0), M(we, null, Ae(w.value, (
|
|
25084
|
-
key:
|
|
25106
|
+
(k(!0), M(we, null, Ae(w.value, (z) => (k(), M("div", {
|
|
25107
|
+
key: z.id,
|
|
25085
25108
|
id: "page-builder-editor-editable-area",
|
|
25086
25109
|
class: "bg-white grow"
|
|
25087
25110
|
}, [
|
|
25088
25111
|
h("div", {
|
|
25089
|
-
onMouseup: (_) => y(
|
|
25112
|
+
onMouseup: (_) => y(z),
|
|
25090
25113
|
class: "relative group"
|
|
25091
25114
|
}, [
|
|
25092
25115
|
h("div", {
|
|
25093
|
-
innerHTML:
|
|
25116
|
+
innerHTML: z.html_code
|
|
25094
25117
|
}, null, 8, s7)
|
|
25095
25118
|
], 40, i7)
|
|
25096
25119
|
]))), 128))
|
|
@@ -25111,7 +25134,7 @@ const en = /* @__PURE__ */ Zd(OS, [["render", LS]]), DS = { class: "flex flex-ro
|
|
|
25111
25134
|
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"])
|
|
25112
25135
|
}, [
|
|
25113
25136
|
R(WC, {
|
|
25114
|
-
onCloseEditor: v[14] || (v[14] = (
|
|
25137
|
+
onCloseEditor: v[14] || (v[14] = (z) => O(o).setMenuRight(!1))
|
|
25115
25138
|
})
|
|
25116
25139
|
], 2)
|
|
25117
25140
|
])
|