@myissue/vue-website-page-builder 3.0.34 → 3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/vue-website-page-builder.js +626 -627
- package/dist/vue-website-page-builder.umd.cjs +16 -16
- package/package.json +1 -1
- package/src/Components/PageBuilder/DropdownsPlusToggles/OptionsDropdown.vue +2 -2
- package/src/Components/PageBuilder/EditorMenu/Editables/EditGetElement.vue +2 -1
- package/src/Components/PageBuilder/Settings/AdvancedPageBuilderSettings.vue +6 -11
- package/src/PageBuilder/PageBuilder.vue +1 -0
- package/src/composables/PageBuilderClass.ts +46 -37
- package/src/stores/page-builder-state.ts +6 -4
|
@@ -7,7 +7,7 @@ var be = (r, e, t) => _g(r, typeof e != "symbol" ? e + "" : e, t), oc = (r, e, t
|
|
|
7
7
|
var Ei = (r, e, t) => (oc(r, e, "read from private field"), t ? t.call(r) : e.get(r)), an = (r, e, t) => e.has(r) ? rc("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(r) : e.set(r, t);
|
|
8
8
|
var Ce = (r, e, t) => (oc(r, e, "access private method"), t);
|
|
9
9
|
import * as nc from "vue";
|
|
10
|
-
import { effectScope as du, ref as x, markRaw as Cr, hasInjectionContext as Fg, inject as re, getCurrentInstance as Jl, toRaw as et, reactive as cu, isRef as In, isReactive as Yl, toRef as va, nextTick as Me, watch as pe, unref as T, getCurrentScope as jg, onScopeDispose as Hg, toRefs as ic, computed as L, watchEffect as ot, onMounted as Se, cloneVNode as Vg, h as Ee, Fragment as ve, defineComponent as he, provide as He, onUnmounted as xt, shallowRef as pu, Teleport as Yo, normalizeClass as X, createBlock as xe, openBlock as S, createVNode as
|
|
10
|
+
import { effectScope as du, ref as x, markRaw as Cr, hasInjectionContext as Fg, inject as re, getCurrentInstance as Jl, toRaw as et, reactive as cu, isRef as In, isReactive as Yl, toRef as va, nextTick as Me, watch as pe, unref as T, getCurrentScope as jg, onScopeDispose as Hg, toRefs as ic, computed as L, watchEffect as ot, onMounted as Se, cloneVNode as Vg, h as Ee, Fragment as ve, defineComponent as he, provide as He, onUnmounted as xt, shallowRef as pu, Teleport as Yo, normalizeClass as X, createBlock as xe, openBlock as S, createVNode as $, withCtx as z, withKeys as uu, withModifiers as Po, createElementVNode as g, renderSlot as Wt, createElementBlock as O, createCommentVNode as R, toDisplayString as F, Transition as Dt, onBeforeUnmount as Qs, customRef as Ug, onBeforeMount as qg, withDirectives as at, vModelText as Xl, createTextVNode as De, resolveDynamicComponent as mu, renderList as Le, vModelSelect as Rt, vShow as Wg, createStaticVNode as Kg } from "vue";
|
|
11
11
|
function Mi(r, e, t) {
|
|
12
12
|
return Array.isArray(r) ? (r.length = Math.max(r.length, e), r.splice(e, 1, t), t) : (r[e] = t, t);
|
|
13
13
|
}
|
|
@@ -154,11 +154,11 @@ function Ui(r) {
|
|
|
154
154
|
t.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), r.dispatchEvent(t);
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
|
-
const
|
|
157
|
+
const qi = typeof navigator == "object" ? navigator : { userAgent: "" }, yu = /Macintosh/.test(qi.userAgent) && /AppleWebKit/.test(qi.userAgent) && !/Safari/.test(qi.userAgent), wu = Er ? (
|
|
158
158
|
// Use download attribute first if possible (#193 Lumia mobile) unless this is a macOS WebView or mini program
|
|
159
159
|
typeof HTMLAnchorElement < "u" && "download" in HTMLAnchorElement.prototype && !yu ? rf : (
|
|
160
160
|
// Use msSaveOrOpenBlob as a second approach
|
|
161
|
-
"msSaveOrOpenBlob" in
|
|
161
|
+
"msSaveOrOpenBlob" in qi ? of : (
|
|
162
162
|
// Fallback to using FileReader and a popup
|
|
163
163
|
nf
|
|
164
164
|
)
|
|
@@ -288,10 +288,10 @@ function It(r) {
|
|
|
288
288
|
}
|
|
289
289
|
};
|
|
290
290
|
}
|
|
291
|
-
const Su = "🍍 Pinia (root)",
|
|
291
|
+
const Su = "🍍 Pinia (root)", Wi = "_root";
|
|
292
292
|
function pf(r) {
|
|
293
293
|
return Zl(r) ? {
|
|
294
|
-
id:
|
|
294
|
+
id: Wi,
|
|
295
295
|
label: Su
|
|
296
296
|
} : {
|
|
297
297
|
id: r.$id,
|
|
@@ -466,14 +466,14 @@ function ff(r, e) {
|
|
|
466
466
|
}
|
|
467
467
|
}), globalThis.$pinia = e, t.on.getInspectorState((o) => {
|
|
468
468
|
if (o.app === r && o.inspectorId === tt) {
|
|
469
|
-
const n = o.nodeId ===
|
|
469
|
+
const n = o.nodeId === Wi ? e : e._s.get(o.nodeId);
|
|
470
470
|
if (!n)
|
|
471
471
|
return;
|
|
472
|
-
n && (o.nodeId !==
|
|
472
|
+
n && (o.nodeId !== Wi && (globalThis.$store = et(n)), o.state = uf(n));
|
|
473
473
|
}
|
|
474
474
|
}), t.on.editInspectorState((o, n) => {
|
|
475
475
|
if (o.app === r && o.inspectorId === tt) {
|
|
476
|
-
const i = o.nodeId ===
|
|
476
|
+
const i = o.nodeId === Wi ? e : e._s.get(o.nodeId);
|
|
477
477
|
if (!i)
|
|
478
478
|
return Fe(`store "${o.nodeId}" not found`, "error");
|
|
479
479
|
const { path: s } = o;
|
|
@@ -775,8 +775,8 @@ function sl(r, e, t = {}, o, n, i) {
|
|
|
775
775
|
}
|
|
776
776
|
const E = i ? function() {
|
|
777
777
|
const { state: v } = t, I = v ? v() : {};
|
|
778
|
-
this.$patch((
|
|
779
|
-
Et(
|
|
778
|
+
this.$patch((W) => {
|
|
779
|
+
Et(W, I);
|
|
780
780
|
});
|
|
781
781
|
} : (
|
|
782
782
|
/* istanbul ignore next */
|
|
@@ -792,7 +792,7 @@ function sl(r, e, t = {}, o, n, i) {
|
|
|
792
792
|
return P[ka] = v, P;
|
|
793
793
|
const I = function() {
|
|
794
794
|
Dn(o);
|
|
795
|
-
const
|
|
795
|
+
const W = Array.from(arguments), ne = [], Y = [];
|
|
796
796
|
function Z(se) {
|
|
797
797
|
ne.push(se);
|
|
798
798
|
}
|
|
@@ -800,7 +800,7 @@ function sl(r, e, t = {}, o, n, i) {
|
|
|
800
800
|
Y.push(se);
|
|
801
801
|
}
|
|
802
802
|
Co(u, {
|
|
803
|
-
args:
|
|
803
|
+
args: W,
|
|
804
804
|
name: I[ka],
|
|
805
805
|
store: A,
|
|
806
806
|
after: Z,
|
|
@@ -808,7 +808,7 @@ function sl(r, e, t = {}, o, n, i) {
|
|
|
808
808
|
});
|
|
809
809
|
let ge;
|
|
810
810
|
try {
|
|
811
|
-
ge = P.apply(this && this.$id === r ? this : A,
|
|
811
|
+
ge = P.apply(this && this.$id === r ? this : A, W);
|
|
812
812
|
} catch (se) {
|
|
813
813
|
throw Co(Y, se), se;
|
|
814
814
|
}
|
|
@@ -828,7 +828,7 @@ function sl(r, e, t = {}, o, n, i) {
|
|
|
828
828
|
$patch: w,
|
|
829
829
|
$reset: E,
|
|
830
830
|
$subscribe(P, v = {}) {
|
|
831
|
-
const I = lc(p, P, v.detached, () =>
|
|
831
|
+
const I = lc(p, P, v.detached, () => W()), W = s.run(() => pe(() => o.state.value[r], (ne) => {
|
|
832
832
|
(v.flush === "sync" ? c : d) && P({
|
|
833
833
|
storeId: r,
|
|
834
834
|
type: Gt.direct,
|
|
@@ -875,8 +875,8 @@ function sl(r, e, t = {}, o, n, i) {
|
|
|
875
875
|
}), process.env.NODE_ENV !== "production" && (A._hotUpdate = Cr((P) => {
|
|
876
876
|
A._hotUpdating = !0, P._hmrPayload.state.forEach((v) => {
|
|
877
877
|
if (v in A.$state) {
|
|
878
|
-
const I = P.$state[v],
|
|
879
|
-
typeof I == "object" && co(I) && co(
|
|
878
|
+
const I = P.$state[v], W = A.$state[v];
|
|
879
|
+
typeof I == "object" && co(I) && co(W) ? Eu(I, W) : P.$state[v] = W;
|
|
880
880
|
}
|
|
881
881
|
Mi(A, v, va(P.$state, v));
|
|
882
882
|
}), Object.keys(A.$state).forEach((v) => {
|
|
@@ -889,11 +889,11 @@ function sl(r, e, t = {}, o, n, i) {
|
|
|
889
889
|
Mi(A, v, y(I, v));
|
|
890
890
|
}
|
|
891
891
|
for (const v in P._hmrPayload.getters) {
|
|
892
|
-
const I = P._hmrPayload.getters[v],
|
|
892
|
+
const I = P._hmrPayload.getters[v], W = i ? (
|
|
893
893
|
// special handling of options api
|
|
894
894
|
L(() => (Dn(o), I.call(A, A)))
|
|
895
895
|
) : I;
|
|
896
|
-
Mi(A, v,
|
|
896
|
+
Mi(A, v, W);
|
|
897
897
|
}
|
|
898
898
|
Object.keys(A._hmrPayload.getters).forEach((v) => {
|
|
899
899
|
v in P._hmrPayload.getters || xa(A, v);
|
|
@@ -1990,11 +1990,11 @@ function Ef() {
|
|
|
1990
1990
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
1991
1991
|
return Oi(Cf);
|
|
1992
1992
|
}
|
|
1993
|
-
const
|
|
1993
|
+
const We = [];
|
|
1994
1994
|
for (let r = 0; r < 256; ++r)
|
|
1995
|
-
|
|
1995
|
+
We.push((r + 256).toString(16).slice(1));
|
|
1996
1996
|
function Mf(r, e = 0) {
|
|
1997
|
-
return
|
|
1997
|
+
return We[r[e + 0]] + We[r[e + 1]] + We[r[e + 2]] + We[r[e + 3]] + "-" + We[r[e + 4]] + We[r[e + 5]] + "-" + We[r[e + 6]] + We[r[e + 7]] + "-" + We[r[e + 8]] + We[r[e + 9]] + "-" + We[r[e + 10]] + We[r[e + 11]] + We[r[e + 12]] + We[r[e + 13]] + We[r[e + 14]] + We[r[e + 15]];
|
|
1998
1998
|
}
|
|
1999
1999
|
const Tf = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), uc = {
|
|
2000
2000
|
randomUUID: Tf
|
|
@@ -2156,16 +2156,18 @@ class Qe {
|
|
|
2156
2156
|
l.setAttribute("data-image", mc());
|
|
2157
2157
|
}), t.id = s.dataset.componentid, t.html_code = s.outerHTML), t;
|
|
2158
2158
|
}
|
|
2159
|
-
removeHoveredAndSelected() {
|
|
2160
|
-
this.showRunningMethodLogs && console.log("removeHoveredAndSelected");
|
|
2161
|
-
const e = document.querySelector("
|
|
2162
|
-
|
|
2163
|
-
const t =
|
|
2164
|
-
t && t.removeAttribute("
|
|
2159
|
+
async removeHoveredAndSelected() {
|
|
2160
|
+
this.showRunningMethodLogs && console.log("removeHoveredAndSelected"), await new Promise((n) => requestAnimationFrame(n));
|
|
2161
|
+
const e = document.querySelector("#pagebuilder");
|
|
2162
|
+
if (!e) return;
|
|
2163
|
+
const t = e.querySelector("[hovered]");
|
|
2164
|
+
t && t.removeAttribute("hovered");
|
|
2165
|
+
const o = e.querySelector("[selected]");
|
|
2166
|
+
o && o.removeAttribute("selected");
|
|
2165
2167
|
}
|
|
2166
|
-
currentClasses() {
|
|
2168
|
+
async currentClasses() {
|
|
2167
2169
|
var t;
|
|
2168
|
-
this.showRunningMethodLogs && console.log("handleAddClasses");
|
|
2170
|
+
this.showRunningMethodLogs && console.log("handleAddClasses"), await new Promise((o) => requestAnimationFrame(o));
|
|
2169
2171
|
const e = Array.from(((t = this.getElement.value) == null ? void 0 : t.classList) || []);
|
|
2170
2172
|
this.pageBuilderStateStore.setCurrentClasses(e);
|
|
2171
2173
|
}
|
|
@@ -2201,58 +2203,58 @@ class Qe {
|
|
|
2201
2203
|
this.pageBuilderStateStore.setParentElement(null), this.pageBuilderStateStore.setRestoredElement(null), this.pageBuilderStateStore.setNextSibling(null), this.pageBuilderStateStore.setComponent(null), this.pageBuilderStateStore.setElement(null), this.setEventListenersForElements();
|
|
2202
2204
|
}
|
|
2203
2205
|
handleFontWeight(e) {
|
|
2204
|
-
this.showRunningMethodLogs && console.log("handleFontWeight"),
|
|
2206
|
+
this.showRunningMethodLogs && console.log("handleFontWeight"), Ce(this, ue, Ie).call(this, e, Sa.fontWeight, "setFontWeight");
|
|
2205
2207
|
}
|
|
2206
2208
|
handleFontFamily(e) {
|
|
2207
|
-
this.showRunningMethodLogs && console.log("handleFontFamily"),
|
|
2209
|
+
this.showRunningMethodLogs && console.log("handleFontFamily"), Ce(this, ue, Ie).call(this, e, Sa.fontFamily, "setFontFamily");
|
|
2208
2210
|
}
|
|
2209
2211
|
handleFontStyle(e) {
|
|
2210
|
-
this.showRunningMethodLogs && console.log("handleFontStyle"),
|
|
2212
|
+
this.showRunningMethodLogs && console.log("handleFontStyle"), Ce(this, ue, Ie).call(this, e, Sa.fontStyle, "setFontStyle");
|
|
2211
2213
|
}
|
|
2212
2214
|
handleVerticalPadding(e) {
|
|
2213
|
-
this.showRunningMethodLogs && console.log("handleVerticalPadding"),
|
|
2215
|
+
this.showRunningMethodLogs && console.log("handleVerticalPadding"), Ce(this, ue, Ie).call(this, e, Tr.verticalPadding, "setFontVerticalPadding");
|
|
2214
2216
|
}
|
|
2215
2217
|
handleHorizontalPadding(e) {
|
|
2216
|
-
this.showRunningMethodLogs && console.log("handleHorizontalPadding"),
|
|
2218
|
+
this.showRunningMethodLogs && console.log("handleHorizontalPadding"), Ce(this, ue, Ie).call(this, e, Tr.horizontalPadding, "setFontHorizontalPadding");
|
|
2217
2219
|
}
|
|
2218
2220
|
handleVerticalMargin(e) {
|
|
2219
|
-
this.showRunningMethodLogs && console.log("handleVerticalMargin"),
|
|
2221
|
+
this.showRunningMethodLogs && console.log("handleVerticalMargin"), Ce(this, ue, Ie).call(this, e, Tr.verticalMargin, "setFontVerticalMargin");
|
|
2220
2222
|
}
|
|
2221
2223
|
handleHorizontalMargin(e) {
|
|
2222
|
-
this.showRunningMethodLogs && console.log("handleHorizontalMargin"),
|
|
2224
|
+
this.showRunningMethodLogs && console.log("handleHorizontalMargin"), Ce(this, ue, Ie).call(this, e, Tr.horizontalMargin, "setFontHorizontalMargin");
|
|
2223
2225
|
}
|
|
2224
2226
|
// border color, style & width / start
|
|
2225
2227
|
handleBorderStyle(e) {
|
|
2226
|
-
this.showRunningMethodLogs && console.log("handleBorderStyle"),
|
|
2228
|
+
this.showRunningMethodLogs && console.log("handleBorderStyle"), Ce(this, ue, Ie).call(this, e, $o.borderStyle, "setBorderStyle");
|
|
2227
2229
|
}
|
|
2228
2230
|
handleBorderWidth(e) {
|
|
2229
|
-
this.showRunningMethodLogs && console.log("handleBorderWidth"),
|
|
2231
|
+
this.showRunningMethodLogs && console.log("handleBorderWidth"), Ce(this, ue, Ie).call(this, e, $o.borderWidth, "setBorderWidth");
|
|
2230
2232
|
}
|
|
2231
2233
|
handleBorderColor(e) {
|
|
2232
|
-
this.showRunningMethodLogs && console.log("handleBorderColor"),
|
|
2234
|
+
this.showRunningMethodLogs && console.log("handleBorderColor"), Ce(this, ue, Ie).call(this, e, $o.borderColor, "setBorderColor");
|
|
2233
2235
|
}
|
|
2234
2236
|
// border color, style & width / end
|
|
2235
2237
|
handleBackgroundColor(e) {
|
|
2236
|
-
|
|
2238
|
+
Ce(this, ue, Ie).call(this, e, rs.backgroundColorVariables, "setBackgroundColor");
|
|
2237
2239
|
}
|
|
2238
2240
|
handleTextColor(e) {
|
|
2239
|
-
|
|
2241
|
+
Ce(this, ue, Ie).call(this, e, rs.textColorVariables, "setTextColor");
|
|
2240
2242
|
}
|
|
2241
2243
|
// border radius / start
|
|
2242
2244
|
handleBorderRadiusGlobal(e) {
|
|
2243
|
-
this.showRunningMethodLogs && console.log("handleBorderRadiusGlobal"),
|
|
2245
|
+
this.showRunningMethodLogs && console.log("handleBorderRadiusGlobal"), Ce(this, ue, Ie).call(this, e, Ut.roundedGlobal, "setBorderRadiusGlobal");
|
|
2244
2246
|
}
|
|
2245
2247
|
handleBorderRadiusTopLeft(e) {
|
|
2246
|
-
this.showRunningMethodLogs && console.log("handleBorderRadiusTopLeft"),
|
|
2248
|
+
this.showRunningMethodLogs && console.log("handleBorderRadiusTopLeft"), Ce(this, ue, Ie).call(this, e, Ut.roundedTopLeft, "setBorderRadiusTopLeft");
|
|
2247
2249
|
}
|
|
2248
2250
|
handleBorderRadiusTopRight(e) {
|
|
2249
|
-
this.showRunningMethodLogs && console.log("handleBorderRadiusTopRight"),
|
|
2251
|
+
this.showRunningMethodLogs && console.log("handleBorderRadiusTopRight"), Ce(this, ue, Ie).call(this, e, Ut.roundedTopRight, "setBorderRadiusTopRight");
|
|
2250
2252
|
}
|
|
2251
2253
|
handleBorderRadiusBottomleft(e) {
|
|
2252
|
-
this.showRunningMethodLogs && console.log("handleBorderRadiusBottomleft"),
|
|
2254
|
+
this.showRunningMethodLogs && console.log("handleBorderRadiusBottomleft"), Ce(this, ue, Ie).call(this, e, Ut.roundedBottomLeft, "setBorderRadiusBottomleft");
|
|
2253
2255
|
}
|
|
2254
2256
|
handleBorderRadiusBottomRight(e) {
|
|
2255
|
-
this.showRunningMethodLogs && console.log("handleBorderRadiusBottomRight"),
|
|
2257
|
+
this.showRunningMethodLogs && console.log("handleBorderRadiusBottomRight"), Ce(this, ue, Ie).call(this, e, Ut.roundedBottomRight, "setBorderRadiusBottomRight");
|
|
2256
2258
|
}
|
|
2257
2259
|
// border radius / end
|
|
2258
2260
|
handleFontSize(e) {
|
|
@@ -2281,10 +2283,10 @@ class Qe {
|
|
|
2281
2283
|
e !== void 0 && this.getElement.value && (!e.includes("sm:") && !e.includes("md:") && !e.includes("lg:") && (s.value && this.getElement.value.classList.remove(s.value), e.includes("base:none") || this.getElement.value.classList.add(e), this.pageBuilderStateStore.setFontBase(e)), e.includes("lg:") && (a.value && this.getElement.value.classList.remove(a.value), e.includes("lg:none") || this.getElement.value.classList.add(e), this.pageBuilderStateStore.setFontDesktop(e)), e.includes("md:") && (l.value && this.getElement.value.classList.remove(l.value), e.includes("md:none") || this.getElement.value.classList.add(e), this.pageBuilderStateStore.setFontTablet(e)), e.includes("sm:") && (d.value && this.getElement.value.classList.remove(d.value), e.includes("sm:none") || this.getElement.value.classList.add(e), this.pageBuilderStateStore.setFontMobile(e)), this.pageBuilderStateStore.setElement(this.getElement.value));
|
|
2282
2284
|
}
|
|
2283
2285
|
handleBackgroundOpacity(e) {
|
|
2284
|
-
this.showRunningMethodLogs && console.log("handleBackgroundOpacity"),
|
|
2286
|
+
this.showRunningMethodLogs && console.log("handleBackgroundOpacity"), Ce(this, ue, Ie).call(this, e, ns.backgroundOpacities, "setBackgroundOpacity");
|
|
2285
2287
|
}
|
|
2286
2288
|
handleOpacity(e) {
|
|
2287
|
-
this.showRunningMethodLogs && console.log("handleOpacity"),
|
|
2289
|
+
this.showRunningMethodLogs && console.log("handleOpacity"), Ce(this, ue, Ie).call(this, e, ns.opacities, "setOpacity");
|
|
2288
2290
|
}
|
|
2289
2291
|
deleteAllComponents() {
|
|
2290
2292
|
this.showRunningMethodLogs && console.log("deleteAllComponents"), this.pageBuilderStateStore.setComponents([]);
|
|
@@ -2433,8 +2435,8 @@ class Qe {
|
|
|
2433
2435
|
}
|
|
2434
2436
|
Ce(this, ue, Au).call(this, e, t || null, o || !1);
|
|
2435
2437
|
}
|
|
2436
|
-
handlePageBuilderMethods() {
|
|
2437
|
-
this.pageBuilderStateStore.setParentElement(null), this.pageBuilderStateStore.setRestoredElement(null), this.handleHyperlink(void 0, null, !1), this.handleOpacity(void 0), this.handleBackgroundOpacity(void 0), this.showBasePrimaryImage(), this.handleBorderStyle(void 0), this.handleBorderWidth(void 0), this.handleBorderColor(void 0), this.handleBorderRadiusGlobal(void 0), this.handleBorderRadiusTopLeft(void 0), this.handleBorderRadiusTopRight(void 0), this.handleBorderRadiusBottomleft(void 0), this.handleBorderRadiusBottomRight(void 0), this.handleFontSize(void 0), this.handleFontWeight(void 0), this.handleFontFamily(void 0), this.handleFontStyle(void 0), this.handleVerticalPadding(void 0), this.handleHorizontalPadding(void 0), this.handleVerticalMargin(void 0), this.handleHorizontalMargin(void 0), this.handleBackgroundColor(void 0), this.handleTextColor(void 0), this.currentClasses();
|
|
2438
|
+
async handlePageBuilderMethods() {
|
|
2439
|
+
await new Promise((e) => requestAnimationFrame(e)), this.pageBuilderStateStore.setParentElement(null), this.pageBuilderStateStore.setRestoredElement(null), this.handleHyperlink(void 0, null, !1), this.handleOpacity(void 0), this.handleBackgroundOpacity(void 0), this.showBasePrimaryImage(), this.handleBorderStyle(void 0), this.handleBorderWidth(void 0), this.handleBorderColor(void 0), this.handleBorderRadiusGlobal(void 0), this.handleBorderRadiusTopLeft(void 0), this.handleBorderRadiusTopRight(void 0), this.handleBorderRadiusBottomleft(void 0), this.handleBorderRadiusBottomRight(void 0), this.handleFontSize(void 0), this.handleFontWeight(void 0), this.handleFontFamily(void 0), this.handleFontStyle(void 0), this.handleVerticalPadding(void 0), this.handleHorizontalPadding(void 0), this.handleVerticalMargin(void 0), this.handleHorizontalMargin(void 0), this.handleBackgroundColor(void 0), this.handleTextColor(void 0), await this.currentClasses();
|
|
2438
2440
|
}
|
|
2439
2441
|
// Helper method for custom components to easily add components
|
|
2440
2442
|
async addComponent(e) {
|
|
@@ -2464,14 +2466,12 @@ class Qe {
|
|
|
2464
2466
|
}
|
|
2465
2467
|
}
|
|
2466
2468
|
ue = new WeakSet(), Ie = function(e, t, o) {
|
|
2467
|
-
var s, a, l, d;
|
|
2468
2469
|
this.showRunningMethodLogs && console.log("#applyElementClassChanges");
|
|
2469
|
-
const n =
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
return typeof e == "string" && e !== "none" ? (i && ((s = this.getElement.value) != null && s.classList.contains(i)) && ((a = this.getElement.value) == null || a.classList.remove(i)), (l = this.getElement.value) == null || l.classList.add(e), i = e) : typeof e == "string" && e === "none" && i && ((d = this.getElement.value) == null || d.classList.remove(i), i = e), this.pageBuilderStateStore[o](i), this.pageBuilderStateStore.setElement(this.getElement.value), n;
|
|
2470
|
+
const n = this.getElement.value;
|
|
2471
|
+
if (!n) return;
|
|
2472
|
+
const i = t.find((a) => n.classList.contains(a));
|
|
2473
|
+
let s = i || "none";
|
|
2474
|
+
return e === void 0 ? (typeof o == "string" && o.length > 2 && this.pageBuilderStateStore[o](s), i) : (typeof e == "string" && e !== "none" ? (s && n.classList.contains(s) && n.classList.remove(s), n.classList.add(e), s = e) : typeof e == "string" && e === "none" && s && (n.classList.remove(s), s = e), typeof o == "string" && o.length > 2 && (this.pageBuilderStateStore[o](s), this.pageBuilderStateStore.setElement(n)), i);
|
|
2475
2475
|
}, Ou = function(e) {
|
|
2476
2476
|
Ce(this, ue, Pu).call(this, e), this.showRunningMethodLogs && console.log("#applyHelperCSSToElements"), e.tagName === "IMG" && e.classList.add("smooth-transition"), e.tagName === "DIV" && e.classList.length;
|
|
2477
2477
|
}, Pu = function(e) {
|
|
@@ -2567,12 +2567,12 @@ const Of = function(r) {
|
|
|
2567
2567
|
else if (Ca(M)) {
|
|
2568
2568
|
const k = Object.keys(M), A = Object.values(M);
|
|
2569
2569
|
if (k.length === 0 && (o.value = !0, n.value = `Not able to fetch data. Error status: ${d.value.status}.`), k.length > 0)
|
|
2570
|
-
for (let
|
|
2571
|
-
if (Array.isArray(A[
|
|
2570
|
+
for (let H = 0; H < k.length; H++) {
|
|
2571
|
+
if (Array.isArray(A[H]) || Ca(A[H])) {
|
|
2572
2572
|
o.value = !0, n.value = `Not able to fetch data. Error status: ${C}`;
|
|
2573
2573
|
break;
|
|
2574
2574
|
}
|
|
2575
|
-
if (!Array.isArray(A[
|
|
2575
|
+
if (!Array.isArray(A[H]) && !Ca(A[H])) {
|
|
2576
2576
|
const _ = Object.values(M).join(" ");
|
|
2577
2577
|
o.value = !0, n.value = `Not able to fetch data. Error status: ${C}. ${_}`;
|
|
2578
2578
|
}
|
|
@@ -2976,21 +2976,21 @@ const Of = function(r) {
|
|
|
2976
2976
|
this.textColor = r;
|
|
2977
2977
|
},
|
|
2978
2978
|
setElement(r) {
|
|
2979
|
-
this.element =
|
|
2979
|
+
this.element = null, Me(() => {
|
|
2980
2980
|
this.element = r;
|
|
2981
2981
|
});
|
|
2982
2982
|
},
|
|
2983
2983
|
setComponent(r) {
|
|
2984
|
-
if (
|
|
2984
|
+
if (!r) {
|
|
2985
2985
|
this.element = null, this.component = null;
|
|
2986
2986
|
return;
|
|
2987
2987
|
}
|
|
2988
|
-
this.component =
|
|
2988
|
+
this.component = null, Me(() => {
|
|
2989
2989
|
this.component = r;
|
|
2990
2990
|
});
|
|
2991
2991
|
},
|
|
2992
2992
|
setComponents(r) {
|
|
2993
|
-
this.components =
|
|
2993
|
+
this.components = [], Me(() => {
|
|
2994
2994
|
this.components = r || [];
|
|
2995
2995
|
});
|
|
2996
2996
|
},
|
|
@@ -3144,7 +3144,7 @@ let jf = Symbol("headlessui.useid"), Hf = 0;
|
|
|
3144
3144
|
const bt = (hc = nc.useId) != null ? hc : function() {
|
|
3145
3145
|
return nc.inject(jf, () => `${++Hf}`)();
|
|
3146
3146
|
};
|
|
3147
|
-
function
|
|
3147
|
+
function q(r) {
|
|
3148
3148
|
var e;
|
|
3149
3149
|
if (r == null || r.value == null) return null;
|
|
3150
3150
|
let t = (e = r.value.$el) != null ? e : r.value;
|
|
@@ -3159,7 +3159,7 @@ function ze(r, e, ...t) {
|
|
|
3159
3159
|
throw Error.captureStackTrace && Error.captureStackTrace(o, ze), o;
|
|
3160
3160
|
}
|
|
3161
3161
|
var Vf = Object.defineProperty, Uf = (r, e, t) => e in r ? Vf(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, gc = (r, e, t) => (Uf(r, typeof e != "symbol" ? e + "" : e, t), t);
|
|
3162
|
-
let
|
|
3162
|
+
let qf = class {
|
|
3163
3163
|
constructor() {
|
|
3164
3164
|
gc(this, "current", this.detect()), gc(this, "currentId", 0);
|
|
3165
3165
|
}
|
|
@@ -3181,18 +3181,18 @@ let Wf = class {
|
|
|
3181
3181
|
detect() {
|
|
3182
3182
|
return typeof window > "u" || typeof document > "u" ? "server" : "client";
|
|
3183
3183
|
}
|
|
3184
|
-
}, ei = new
|
|
3184
|
+
}, ei = new qf();
|
|
3185
3185
|
function _r(r) {
|
|
3186
3186
|
if (ei.isServer) return null;
|
|
3187
3187
|
if (r instanceof Node) return r.ownerDocument;
|
|
3188
3188
|
if (r != null && r.hasOwnProperty("value")) {
|
|
3189
|
-
let e =
|
|
3189
|
+
let e = q(r);
|
|
3190
3190
|
if (e) return e.ownerDocument;
|
|
3191
3191
|
}
|
|
3192
3192
|
return document;
|
|
3193
3193
|
}
|
|
3194
3194
|
let al = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((r) => `${r}:not([tabindex='-1'])`).join(",");
|
|
3195
|
-
var
|
|
3195
|
+
var qt = ((r) => (r[r.First = 1] = "First", r[r.Previous = 2] = "Previous", r[r.Next = 4] = "Next", r[r.Last = 8] = "Last", r[r.WrapAround = 16] = "WrapAround", r[r.NoScroll = 32] = "NoScroll", r))(qt || {}), Nu = ((r) => (r[r.Error = 0] = "Error", r[r.Overflow = 1] = "Overflow", r[r.Success = 2] = "Success", r[r.Underflow = 3] = "Underflow", r))(Nu || {}), Wf = ((r) => (r[r.Previous = -1] = "Previous", r[r.Next = 1] = "Next", r))(Wf || {});
|
|
3196
3196
|
function Iu(r = document.body) {
|
|
3197
3197
|
return r == null ? [] : Array.from(r.querySelectorAll(al)).sort((e, t) => Math.sign((e.tabIndex || Number.MAX_SAFE_INTEGER) - (t.tabIndex || Number.MAX_SAFE_INTEGER)));
|
|
3198
3198
|
}
|
|
@@ -3297,7 +3297,7 @@ function od(r, e, t = L(() => !0)) {
|
|
|
3297
3297
|
}(r);
|
|
3298
3298
|
for (let d of l) {
|
|
3299
3299
|
if (d === null) continue;
|
|
3300
|
-
let c = d instanceof HTMLElement ? d :
|
|
3300
|
+
let c = d instanceof HTMLElement ? d : q(d);
|
|
3301
3301
|
if (c != null && c.contains(a) || i.composed && i.composedPath().includes(c)) return;
|
|
3302
3302
|
}
|
|
3303
3303
|
return !ea(a, Zs.Loose) && a.tabIndex !== -1 && i.preventDefault(), e(i, a);
|
|
@@ -3324,7 +3324,7 @@ function zu(r, e) {
|
|
|
3324
3324
|
t.value = fc(r.value.type, r.value.as);
|
|
3325
3325
|
}), ot(() => {
|
|
3326
3326
|
var o;
|
|
3327
|
-
t.value ||
|
|
3327
|
+
t.value || q(e) && q(e) instanceof HTMLButtonElement && !((o = q(e)) != null && o.hasAttribute("type")) && (t.value = "button");
|
|
3328
3328
|
}), t;
|
|
3329
3329
|
}
|
|
3330
3330
|
function bc(r) {
|
|
@@ -3487,14 +3487,14 @@ function Vu(r, e) {
|
|
|
3487
3487
|
}
|
|
3488
3488
|
}
|
|
3489
3489
|
function Uu(r = {}, e = null, t = []) {
|
|
3490
|
-
for (let [o, n] of Object.entries(r))
|
|
3490
|
+
for (let [o, n] of Object.entries(r)) Wu(t, qu(e, o), n);
|
|
3491
3491
|
return t;
|
|
3492
3492
|
}
|
|
3493
|
-
function
|
|
3493
|
+
function qu(r, e) {
|
|
3494
3494
|
return r ? r + "[" + e + "]" : e;
|
|
3495
3495
|
}
|
|
3496
|
-
function
|
|
3497
|
-
if (Array.isArray(t)) for (let [o, n] of t.entries())
|
|
3496
|
+
function Wu(r, e, t) {
|
|
3497
|
+
if (Array.isArray(t)) for (let [o, n] of t.entries()) Wu(r, qu(e, o.toString()), n);
|
|
3498
3498
|
else t instanceof Date ? r.push([e, t.toISOString()]) : typeof t == "boolean" ? r.push([e, t ? "1" : "0"]) : typeof t == "string" ? r.push([e, t]) : typeof t == "number" ? r.push([e, `${t}`]) : t == null ? r.push([e, ""]) : Uu(t, e, r);
|
|
3499
3499
|
}
|
|
3500
3500
|
function Ku(r, e, t, o) {
|
|
@@ -3514,7 +3514,7 @@ function Gu(r) {
|
|
|
3514
3514
|
if (typeof r == "function") return new Set(r());
|
|
3515
3515
|
let e = /* @__PURE__ */ new Set();
|
|
3516
3516
|
for (let t of r.value) {
|
|
3517
|
-
let o =
|
|
3517
|
+
let o = q(t);
|
|
3518
3518
|
o instanceof HTMLElement && e.add(o);
|
|
3519
3519
|
}
|
|
3520
3520
|
return e;
|
|
@@ -3529,12 +3529,12 @@ let ln = Object.assign(he({ name: "FocusTrap", props: { as: { type: [Object, Str
|
|
|
3529
3529
|
d1({ ownerDocument: i, container: n, containers: r.containers, previousActiveElement: a }, L(() => s.value && !!(r.features & 8)));
|
|
3530
3530
|
let l = i1();
|
|
3531
3531
|
function d(m) {
|
|
3532
|
-
let h =
|
|
3532
|
+
let h = q(n);
|
|
3533
3533
|
h && ((f) => f())(() => {
|
|
3534
3534
|
ze(l.value, { [gn.Forwards]: () => {
|
|
3535
|
-
vn(h,
|
|
3535
|
+
vn(h, qt.First, { skipElements: [m.relatedTarget] });
|
|
3536
3536
|
}, [gn.Backwards]: () => {
|
|
3537
|
-
vn(h,
|
|
3537
|
+
vn(h, qt.Last, { skipElements: [m.relatedTarget] });
|
|
3538
3538
|
} });
|
|
3539
3539
|
});
|
|
3540
3540
|
}
|
|
@@ -3547,9 +3547,9 @@ let ln = Object.assign(he({ name: "FocusTrap", props: { as: { type: [Object, Str
|
|
|
3547
3547
|
function u(m) {
|
|
3548
3548
|
if (!s.value) return;
|
|
3549
3549
|
let h = Gu(r.containers);
|
|
3550
|
-
|
|
3550
|
+
q(n) instanceof HTMLElement && h.add(q(n));
|
|
3551
3551
|
let f = m.relatedTarget;
|
|
3552
|
-
f instanceof HTMLElement && f.dataset.headlessuiFocusGuard !== "true" && (Yu(h, f) || (c.value ? vn(
|
|
3552
|
+
f instanceof HTMLElement && f.dataset.headlessuiFocusGuard !== "true" && (Yu(h, f) || (c.value ? vn(q(n), ze(l.value, { [gn.Forwards]: () => qt.Next, [gn.Backwards]: () => qt.Previous }) | qt.WrapAround, { relativeTo: m.target }) : m.target instanceof HTMLElement && Lr(m.target)));
|
|
3553
3553
|
}
|
|
3554
3554
|
return () => {
|
|
3555
3555
|
let m = {}, h = { ref: n, onKeydown: p, onFocusout: u }, { features: f, initialFocus: b, containers: w, ...E } = r;
|
|
@@ -3583,11 +3583,11 @@ function l1({ ownerDocument: r, container: e, initialFocus: t }, o) {
|
|
|
3583
3583
|
return Se(() => i.value = !0), xt(() => i.value = !1), Se(() => {
|
|
3584
3584
|
pe([e, t, o], (s, a) => {
|
|
3585
3585
|
if (s.every((d, c) => (a == null ? void 0 : a[c]) === d) || !o.value) return;
|
|
3586
|
-
let l =
|
|
3586
|
+
let l = q(e);
|
|
3587
3587
|
l && td(() => {
|
|
3588
3588
|
var d, c;
|
|
3589
3589
|
if (!i.value) return;
|
|
3590
|
-
let p =
|
|
3590
|
+
let p = q(t), u = (d = r.value) == null ? void 0 : d.activeElement;
|
|
3591
3591
|
if (p) {
|
|
3592
3592
|
if (p === u) {
|
|
3593
3593
|
n.value = u;
|
|
@@ -3597,7 +3597,7 @@ function l1({ ownerDocument: r, container: e, initialFocus: t }, o) {
|
|
|
3597
3597
|
n.value = u;
|
|
3598
3598
|
return;
|
|
3599
3599
|
}
|
|
3600
|
-
p ? Lr(p) : vn(l,
|
|
3600
|
+
p ? Lr(p) : vn(l, qt.First | qt.NoScroll) === Nu.Error && console.warn("There are no focusable elements inside the <FocusTrap />"), n.value = (c = r.value) == null ? void 0 : c.activeElement;
|
|
3601
3601
|
});
|
|
3602
3602
|
}, { immediate: !0, flush: "post" });
|
|
3603
3603
|
}), n;
|
|
@@ -3607,7 +3607,7 @@ function d1({ ownerDocument: r, container: e, containers: t, previousActiveEleme
|
|
|
3607
3607
|
Ku((i = r.value) == null ? void 0 : i.defaultView, "focus", (s) => {
|
|
3608
3608
|
if (!n.value) return;
|
|
3609
3609
|
let a = Gu(t);
|
|
3610
|
-
|
|
3610
|
+
q(e) instanceof HTMLElement && a.add(q(e));
|
|
3611
3611
|
let l = o.value;
|
|
3612
3612
|
if (!l) return;
|
|
3613
3613
|
let d = s.target;
|
|
@@ -3741,7 +3741,7 @@ function yc(r, e = x(!0)) {
|
|
|
3741
3741
|
ot((t) => {
|
|
3742
3742
|
var o;
|
|
3743
3743
|
if (!e.value) return;
|
|
3744
|
-
let n =
|
|
3744
|
+
let n = q(r);
|
|
3745
3745
|
if (!n) return;
|
|
3746
3746
|
t(function() {
|
|
3747
3747
|
var s;
|
|
@@ -3762,7 +3762,7 @@ function b1({ defaultContainers: r = [], portals: e, mainTreeNodeRef: t } = {})
|
|
|
3762
3762
|
let d = [];
|
|
3763
3763
|
for (let c of r) c !== null && (c instanceof HTMLElement ? d.push(c) : "value" in c && c.value instanceof HTMLElement && d.push(c.value));
|
|
3764
3764
|
if (e != null && e.value) for (let c of e.value) d.push(c);
|
|
3765
|
-
for (let c of (s = n == null ? void 0 : n.querySelectorAll("html > *, body > *")) != null ? s : []) c !== document.body && c !== document.head && c instanceof HTMLElement && c.id !== "headlessui-portal-root" && (c.contains(
|
|
3765
|
+
for (let c of (s = n == null ? void 0 : n.querySelectorAll("html > *, body > *")) != null ? s : []) c !== document.body && c !== document.head && c instanceof HTMLElement && c.id !== "headlessui-portal-root" && (c.contains(q(o)) || c.contains((l = (a = q(o)) == null ? void 0 : a.getRootNode()) == null ? void 0 : l.host) || d.some((p) => c.contains(p)) || d.push(c));
|
|
3766
3766
|
return d;
|
|
3767
3767
|
}
|
|
3768
3768
|
return { resolveContainers: i, contains(s) {
|
|
@@ -3855,7 +3855,7 @@ let em = he({ name: "Portal", props: { as: { type: [Object, String], default: "d
|
|
|
3855
3855
|
let d = re(pl, null), c = !1, p = Jl();
|
|
3856
3856
|
return pe(o, () => {
|
|
3857
3857
|
if (c || !d) return;
|
|
3858
|
-
let u =
|
|
3858
|
+
let u = q(o);
|
|
3859
3859
|
u && (xt(d.register(u), p), c = !0);
|
|
3860
3860
|
}), xt(() => {
|
|
3861
3861
|
var u, m;
|
|
@@ -3912,19 +3912,19 @@ let Ai = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", oi = he({ name: "Dialog", inher
|
|
|
3912
3912
|
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 = x(0), u = ti(), m = L(() => r.open === Ai && u !== null ? (u.value & Be.Open) === Be.Open : r.open), h = x(null), f = L(() => _r(h));
|
|
3913
3913
|
if (n({ el: h, $el: h }), !(r.open !== Ai || u !== null)) throw new Error("You forgot to provide an `open` prop to the `Dialog`.");
|
|
3914
3914
|
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 === Ai ? void 0 : r.open}`);
|
|
3915
|
-
let b = L(() => l.value && m.value ? 0 : 1), w = L(() => b.value === 0), E = L(() => p.value > 1), C = re(ul, null) !== null, [y, M] = E1(), { resolveContainers: k, mainTreeNodeRef: A, MainTreeNode:
|
|
3915
|
+
let b = L(() => l.value && m.value ? 0 : 1), w = L(() => b.value === 0), E = L(() => p.value > 1), C = re(ul, null) !== null, [y, M] = E1(), { resolveContainers: k, mainTreeNodeRef: A, MainTreeNode: H } = b1({ portals: y, defaultContainers: [L(() => {
|
|
3916
3916
|
var oe;
|
|
3917
3917
|
return (oe = le.panelRef.value) != null ? oe : h.value;
|
|
3918
3918
|
})] }), _ = L(() => E.value ? "parent" : "leaf"), P = L(() => u !== null ? (u.value & Be.Closing) === Be.Closing : !1), v = L(() => C || P.value ? !1 : w.value), I = L(() => {
|
|
3919
3919
|
var oe, ce, Ne;
|
|
3920
|
-
return (Ne = Array.from((ce = (oe = f.value) == null ? void 0 : oe.querySelectorAll("body > *")) != null ? ce : []).find((Te) => Te.id === "headlessui-portal-root" ? !1 : Te.contains(
|
|
3920
|
+
return (Ne = Array.from((ce = (oe = f.value) == null ? void 0 : oe.querySelectorAll("body > *")) != null ? ce : []).find((Te) => Te.id === "headlessui-portal-root" ? !1 : Te.contains(q(A)) && Te instanceof HTMLElement)) != null ? Ne : null;
|
|
3921
3921
|
});
|
|
3922
3922
|
yc(I, v);
|
|
3923
|
-
let
|
|
3923
|
+
let W = L(() => E.value ? !0 : w.value), ne = L(() => {
|
|
3924
3924
|
var oe, ce, Ne;
|
|
3925
|
-
return (Ne = Array.from((ce = (oe = f.value) == null ? void 0 : oe.querySelectorAll("[data-headlessui-portal]")) != null ? ce : []).find((Te) => Te.contains(
|
|
3925
|
+
return (Ne = Array.from((ce = (oe = f.value) == null ? void 0 : oe.querySelectorAll("[data-headlessui-portal]")) != null ? ce : []).find((Te) => Te.contains(q(A)) && Te instanceof HTMLElement)) != null ? Ne : null;
|
|
3926
3926
|
});
|
|
3927
|
-
yc(ne,
|
|
3927
|
+
yc(ne, W), v1({ type: "Dialog", enabled: L(() => b.value === 0), element: h, onUpdate: (oe, ce) => {
|
|
3928
3928
|
if (ce === "Dialog") return ze(oe, { [dl.Add]: () => p.value += 1, [dl.Remove]: () => p.value -= 1 });
|
|
3929
3929
|
} });
|
|
3930
3930
|
let Y = k1({ name: "DialogDescription", slot: L(() => ({ open: m.value })) }), Z = x(null), le = { titleId: Z, panelRef: x(null), dialogState: b, setTitleId(oe) {
|
|
@@ -3947,7 +3947,7 @@ let Ai = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", oi = he({ name: "Dialog", inher
|
|
|
3947
3947
|
return { containers: [...(ce = oe.containers) != null ? ce : [], k] };
|
|
3948
3948
|
}), ot((oe) => {
|
|
3949
3949
|
if (b.value !== 0) return;
|
|
3950
|
-
let ce =
|
|
3950
|
+
let ce = q(h);
|
|
3951
3951
|
if (!ce) return;
|
|
3952
3952
|
let Ne = new ResizeObserver((Te) => {
|
|
3953
3953
|
for (let it of Te) {
|
|
@@ -3958,7 +3958,7 @@ let Ai = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", oi = he({ name: "Dialog", inher
|
|
|
3958
3958
|
Ne.observe(ce), oe(() => Ne.disconnect());
|
|
3959
3959
|
}), () => {
|
|
3960
3960
|
let { open: oe, initialFocus: ce, ...Ne } = r, Te = { ...t, ref: h, id: a, role: c.value, "aria-modal": b.value === 0 ? !0 : void 0, "aria-labelledby": Z.value, "aria-describedby": Y.value }, it = { open: b.value === 0 };
|
|
3961
|
-
return Ee(ll, { force: !0 }, () => [Ee(em, () => Ee(M1, { target: h.value }, () => Ee(ll, { force: !1 }, () => Ee(ln, { initialFocus: ce, containers: k, features: w.value ? ze(_.value, { parent: ln.features.RestoreFocus, leaf: ln.features.All & ~ln.features.FocusLock }) : ln.features.None }, () => Ee(M, {}, () => Ae({ ourProps: Te, theirProps: { ...Ne, ...t }, slot: it, attrs: t, slots: o, visible: b.value === 0, features: $r.RenderStrategy | $r.Static, name: "Dialog" })))))), Ee(
|
|
3961
|
+
return Ee(ll, { force: !0 }, () => [Ee(em, () => Ee(M1, { target: h.value }, () => Ee(ll, { force: !1 }, () => Ee(ln, { initialFocus: ce, containers: k, features: w.value ? ze(_.value, { parent: ln.features.RestoreFocus, leaf: ln.features.All & ~ln.features.FocusLock }) : ln.features.None }, () => Ee(M, {}, () => Ae({ ourProps: Te, theirProps: { ...Ne, ...t }, slot: it, attrs: t, slots: o, visible: b.value === 0, features: $r.RenderStrategy | $r.Static, name: "Dialog" })))))), Ee(H)]);
|
|
3962
3962
|
};
|
|
3963
3963
|
} }), sd = he({ name: "DialogOverlay", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: null } }, setup(r, { attrs: e, slots: t }) {
|
|
3964
3964
|
var o;
|
|
@@ -4031,7 +4031,7 @@ function O1(r) {
|
|
|
4031
4031
|
function om(r) {
|
|
4032
4032
|
let e = x(""), t = x("");
|
|
4033
4033
|
return () => {
|
|
4034
|
-
let o =
|
|
4034
|
+
let o = q(r);
|
|
4035
4035
|
if (!o) return "";
|
|
4036
4036
|
let n = o.innerText;
|
|
4037
4037
|
if (e.value === n) return t.value;
|
|
@@ -4058,7 +4058,7 @@ function ni(r) {
|
|
|
4058
4058
|
let ii = he({ name: "Listbox", emits: { "update:modelValue": (r) => !0 }, props: { as: { type: [Object, String], default: "template" }, disabled: { type: [Boolean], default: !1 }, by: { type: [String, Function], default: () => P1 }, horizontal: { type: [Boolean], default: !1 }, modelValue: { type: [Object, String, Number, Boolean], default: void 0 }, defaultValue: { type: [Object, String, Number, Boolean], default: void 0 }, form: { type: String, optional: !0 }, name: { type: String, optional: !0 }, multiple: { type: [Boolean], default: !1 } }, inheritAttrs: !1, setup(r, { slots: e, attrs: t, emit: o }) {
|
|
4059
4059
|
let n = x(1), i = x(null), s = x(null), a = x(null), l = x([]), d = x(""), c = x(null), p = x(1);
|
|
4060
4060
|
function u(C = (y) => y) {
|
|
4061
|
-
let y = c.value !== null ? l.value[c.value] : null, M = rd(C(l.value.slice()), (A) =>
|
|
4061
|
+
let y = c.value !== null ? l.value[c.value] : null, M = rd(C(l.value.slice()), (A) => q(A.dataRef.domRef)), k = y ? M.indexOf(y) : null;
|
|
4062
4062
|
return k === -1 && (k = null), { options: M, activeOptionIndex: k };
|
|
4063
4063
|
}
|
|
4064
4064
|
let m = L(() => r.multiple ? 1 : 0), [h, f] = Ff(L(() => r.modelValue), (C) => o("update:modelValue", C), L(() => r.defaultValue)), b = L(() => h.value === void 0 ? ze(m.value, { 1: [], 0: void 0 }) : h.value), w = { listboxState: n, value: b, mode: m, compare(C, y) {
|
|
@@ -4073,7 +4073,7 @@ let ii = he({ name: "Listbox", emits: { "update:modelValue": (r) => !0 }, props:
|
|
|
4073
4073
|
r.disabled || n.value !== 0 && (n.value = 0);
|
|
4074
4074
|
}, goToOption(C, y, M) {
|
|
4075
4075
|
if (r.disabled || n.value === 1) return;
|
|
4076
|
-
let k = u(), A = Vu(C === ye.Specific ? { focus: ye.Specific, id: y } : { focus: C }, { resolveItems: () => k.options, resolveActiveIndex: () => k.activeOptionIndex, resolveId: (
|
|
4076
|
+
let k = u(), A = Vu(C === ye.Specific ? { focus: ye.Specific, id: y } : { focus: C }, { resolveItems: () => k.options, resolveActiveIndex: () => k.activeOptionIndex, resolveId: (H) => H.id, resolveDisabled: (H) => H.dataRef.disabled });
|
|
4077
4077
|
d.value = "", c.value = A, p.value = M ?? 1, l.value = k.options;
|
|
4078
4078
|
}, search(C) {
|
|
4079
4079
|
if (r.disabled || n.value === 1) return;
|
|
@@ -4102,11 +4102,11 @@ let ii = he({ name: "Listbox", emits: { "update:modelValue": (r) => !0 }, props:
|
|
|
4102
4102
|
} };
|
|
4103
4103
|
od([s, a], (C, y) => {
|
|
4104
4104
|
var M;
|
|
4105
|
-
w.closeListbox(), ea(y, Zs.Loose) || (C.preventDefault(), (M =
|
|
4105
|
+
w.closeListbox(), ea(y, Zs.Loose) || (C.preventDefault(), (M = q(s)) == null || M.focus());
|
|
4106
4106
|
}, L(() => n.value === 0)), He(nm, w), id(L(() => ze(n.value, { 0: Be.Open, 1: Be.Closed })));
|
|
4107
4107
|
let E = L(() => {
|
|
4108
4108
|
var C;
|
|
4109
|
-
return (C =
|
|
4109
|
+
return (C = q(s)) == null ? void 0 : C.closest("form");
|
|
4110
4110
|
});
|
|
4111
4111
|
return Se(() => {
|
|
4112
4112
|
pe([E], () => {
|
|
@@ -4120,8 +4120,8 @@ let ii = he({ name: "Listbox", emits: { "update:modelValue": (r) => !0 }, props:
|
|
|
4120
4120
|
};
|
|
4121
4121
|
}, { immediate: !0 });
|
|
4122
4122
|
}), () => {
|
|
4123
|
-
let { name: C, modelValue: y, disabled: M, form: k, ...A } = r,
|
|
4124
|
-
return Ee(ve, [...C != null && b.value != null ? Uu({ [C]: b.value }).map(([_, P]) => Ee(is, e1({ features: Rn.Hidden, key: _, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: k, disabled: M, name: _, value: P }))) : [], Ae({ ourProps: {}, theirProps: { ...t, ...nd(A, ["defaultValue", "onUpdate:modelValue", "horizontal", "multiple", "by"]) }, slot:
|
|
4123
|
+
let { name: C, modelValue: y, disabled: M, form: k, ...A } = r, H = { open: n.value === 0, disabled: M, value: b.value };
|
|
4124
|
+
return Ee(ve, [...C != null && b.value != null ? Uu({ [C]: b.value }).map(([_, P]) => Ee(is, e1({ features: Rn.Hidden, key: _, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: k, disabled: M, name: _, value: P }))) : [], Ae({ ourProps: {}, theirProps: { ...t, ...nd(A, ["defaultValue", "onUpdate:modelValue", "horizontal", "multiple", "by"]) }, slot: H, slots: e, attrs: t, name: "Listbox" })]);
|
|
4125
4125
|
};
|
|
4126
4126
|
} });
|
|
4127
4127
|
he({ name: "ListboxLabel", props: { as: { type: [Object, String], default: "label" }, id: { type: String, default: null } }, setup(r, { attrs: e, slots: t }) {
|
|
@@ -4129,7 +4129,7 @@ he({ name: "ListboxLabel", props: { as: { type: [Object, String], default: "labe
|
|
|
4129
4129
|
let n = (o = r.id) != null ? o : `headlessui-listbox-label-${bt()}`, i = ni("ListboxLabel");
|
|
4130
4130
|
function s() {
|
|
4131
4131
|
var a;
|
|
4132
|
-
(a =
|
|
4132
|
+
(a = q(i.buttonRef)) == null || a.focus({ preventScroll: !0 });
|
|
4133
4133
|
}
|
|
4134
4134
|
return () => {
|
|
4135
4135
|
let a = { open: i.listboxState.value === 0, disabled: i.disabled.value }, { ...l } = r, d = { id: n, ref: i.labelRef, onClick: s };
|
|
@@ -4147,13 +4147,13 @@ let si = he({ name: "ListboxButton", props: { as: { type: [Object, String], defa
|
|
|
4147
4147
|
case ie.ArrowDown:
|
|
4148
4148
|
p.preventDefault(), s.openListbox(), Me(() => {
|
|
4149
4149
|
var u;
|
|
4150
|
-
(u =
|
|
4150
|
+
(u = q(s.optionsRef)) == null || u.focus({ preventScroll: !0 }), s.value.value || s.goToOption(ye.First);
|
|
4151
4151
|
});
|
|
4152
4152
|
break;
|
|
4153
4153
|
case ie.ArrowUp:
|
|
4154
4154
|
p.preventDefault(), s.openListbox(), Me(() => {
|
|
4155
4155
|
var u;
|
|
4156
|
-
(u =
|
|
4156
|
+
(u = q(s.optionsRef)) == null || u.focus({ preventScroll: !0 }), s.value.value || s.goToOption(ye.Last);
|
|
4157
4157
|
});
|
|
4158
4158
|
break;
|
|
4159
4159
|
}
|
|
@@ -4168,16 +4168,16 @@ let si = he({ name: "ListboxButton", props: { as: { type: [Object, String], defa
|
|
|
4168
4168
|
function d(p) {
|
|
4169
4169
|
s.disabled.value || (s.listboxState.value === 0 ? (s.closeListbox(), Me(() => {
|
|
4170
4170
|
var u;
|
|
4171
|
-
return (u =
|
|
4171
|
+
return (u = q(s.buttonRef)) == null ? void 0 : u.focus({ preventScroll: !0 });
|
|
4172
4172
|
})) : (p.preventDefault(), s.openListbox(), N1(() => {
|
|
4173
4173
|
var u;
|
|
4174
|
-
return (u =
|
|
4174
|
+
return (u = q(s.optionsRef)) == null ? void 0 : u.focus({ preventScroll: !0 });
|
|
4175
4175
|
})));
|
|
4176
4176
|
}
|
|
4177
4177
|
let c = zu(L(() => ({ as: r.as, type: e.type })), s.buttonRef);
|
|
4178
4178
|
return () => {
|
|
4179
4179
|
var p, u;
|
|
4180
|
-
let m = { open: s.listboxState.value === 0, disabled: s.disabled.value, value: s.value.value }, { ...h } = r, f = { ref: s.buttonRef, id: i, type: c.value, "aria-haspopup": "listbox", "aria-controls": (p =
|
|
4180
|
+
let m = { open: s.listboxState.value === 0, disabled: s.disabled.value, value: s.value.value }, { ...h } = r, f = { ref: s.buttonRef, id: i, type: c.value, "aria-haspopup": "listbox", "aria-controls": (p = q(s.optionsRef)) == null ? void 0 : p.id, "aria-expanded": s.listboxState.value === 0, "aria-labelledby": s.labelRef.value ? [(u = q(s.labelRef)) == null ? void 0 : u.id, i].join(" ") : void 0, disabled: s.disabled.value === !0 ? !0 : void 0, onKeydown: a, onKeyup: l, onClick: d };
|
|
4181
4181
|
return Ae({ ourProps: f, theirProps: h, slot: m, attrs: e, slots: t, name: "ListboxButton" });
|
|
4182
4182
|
};
|
|
4183
4183
|
} }), ai = he({ name: "ListboxOptions", props: { as: { type: [Object, String], default: "ul" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, id: { type: String, default: null } }, setup(r, { attrs: e, slots: t, expose: o }) {
|
|
@@ -4195,7 +4195,7 @@ let si = he({ name: "ListboxButton", props: { as: { type: [Object, String], defa
|
|
|
4195
4195
|
}
|
|
4196
4196
|
s.mode.value === 0 && (s.closeListbox(), Me(() => {
|
|
4197
4197
|
var u;
|
|
4198
|
-
return (u =
|
|
4198
|
+
return (u = q(s.buttonRef)) == null ? void 0 : u.focus({ preventScroll: !0 });
|
|
4199
4199
|
}));
|
|
4200
4200
|
break;
|
|
4201
4201
|
case ze(s.orientation.value, { vertical: ie.ArrowDown, horizontal: ie.ArrowRight }):
|
|
@@ -4211,7 +4211,7 @@ let si = he({ name: "ListboxButton", props: { as: { type: [Object, String], defa
|
|
|
4211
4211
|
case ie.Escape:
|
|
4212
4212
|
p.preventDefault(), p.stopPropagation(), s.closeListbox(), Me(() => {
|
|
4213
4213
|
var u;
|
|
4214
|
-
return (u =
|
|
4214
|
+
return (u = q(s.buttonRef)) == null ? void 0 : u.focus({ preventScroll: !0 });
|
|
4215
4215
|
});
|
|
4216
4216
|
break;
|
|
4217
4217
|
case ie.Tab:
|
|
@@ -4225,7 +4225,7 @@ let si = he({ name: "ListboxButton", props: { as: { type: [Object, String], defa
|
|
|
4225
4225
|
let d = ti(), c = L(() => d !== null ? (d.value & Be.Open) === Be.Open : s.listboxState.value === 0);
|
|
4226
4226
|
return () => {
|
|
4227
4227
|
var p, u;
|
|
4228
|
-
let m = { open: s.listboxState.value === 0 }, { ...h } = r, f = { "aria-activedescendant": s.activeOptionIndex.value === null || (p = s.options.value[s.activeOptionIndex.value]) == null ? void 0 : p.id, "aria-multiselectable": s.mode.value === 1 ? !0 : void 0, "aria-labelledby": (u =
|
|
4228
|
+
let m = { open: s.listboxState.value === 0 }, { ...h } = r, f = { "aria-activedescendant": s.activeOptionIndex.value === null || (p = s.options.value[s.activeOptionIndex.value]) == null ? void 0 : p.id, "aria-multiselectable": s.mode.value === 1 ? !0 : void 0, "aria-labelledby": (u = q(s.buttonRef)) == null ? void 0 : u.id, "aria-orientation": s.orientation.value, id: i, onKeydown: l, role: "listbox", tabIndex: 0, ref: s.optionsRef };
|
|
4229
4229
|
return Ae({ ourProps: f, theirProps: h, slot: m, attrs: e, slots: t, features: $r.RenderStrategy | $r.Static, visible: c.value, name: "ListboxOptions" });
|
|
4230
4230
|
};
|
|
4231
4231
|
} }), li = he({ name: "ListboxOption", props: { as: { type: [Object, String], default: "li" }, value: { type: [Object, String, Number, Boolean] }, disabled: { type: Boolean, default: !1 }, id: { type: String, default: null } }, setup(r, { slots: e, attrs: t, expose: o }) {
|
|
@@ -4250,14 +4250,14 @@ let si = he({ name: "ListboxButton", props: { as: { type: [Object, String], defa
|
|
|
4250
4250
|
}), ot(() => {
|
|
4251
4251
|
s.listboxState.value === 0 && l.value && s.activationTrigger.value !== 0 && Me(() => {
|
|
4252
4252
|
var C, y;
|
|
4253
|
-
return (y = (C =
|
|
4253
|
+
return (y = (C = q(a)) == null ? void 0 : C.scrollIntoView) == null ? void 0 : y.call(C, { block: "nearest" });
|
|
4254
4254
|
});
|
|
4255
4255
|
});
|
|
4256
4256
|
function m(C) {
|
|
4257
4257
|
if (r.disabled) return C.preventDefault();
|
|
4258
4258
|
s.select(r.value), s.mode.value === 0 && (s.closeListbox(), Me(() => {
|
|
4259
4259
|
var y;
|
|
4260
|
-
return (y =
|
|
4260
|
+
return (y = q(s.buttonRef)) == null ? void 0 : y.focus({ preventScroll: !0 });
|
|
4261
4261
|
}));
|
|
4262
4262
|
}
|
|
4263
4263
|
function h() {
|
|
@@ -4275,8 +4275,8 @@ let si = he({ name: "ListboxButton", props: { as: { type: [Object, String], defa
|
|
|
4275
4275
|
f.wasMoved(C) && (r.disabled || l.value && s.goToOption(ye.Nothing));
|
|
4276
4276
|
}
|
|
4277
4277
|
return () => {
|
|
4278
|
-
let { disabled: C } = r, y = { active: l.value, selected: d.value, disabled: C }, { value: M, disabled: k, ...A } = r,
|
|
4279
|
-
return Ae({ ourProps:
|
|
4278
|
+
let { disabled: C } = r, y = { active: l.value, selected: d.value, disabled: C }, { value: M, disabled: k, ...A } = r, H = { id: i, ref: a, role: "option", tabIndex: C === !0 ? void 0 : -1, "aria-disabled": C === !0 ? !0 : void 0, "aria-selected": d.value, disabled: void 0, onClick: m, onFocus: h, onPointerenter: b, onMouseenter: b, onPointermove: w, onMousemove: w, onPointerleave: E, onMouseleave: E };
|
|
4279
|
+
return Ae({ ourProps: H, theirProps: A, slot: y, attrs: t, slots: e, name: "ListboxOption" });
|
|
4280
4280
|
};
|
|
4281
4281
|
} });
|
|
4282
4282
|
var I1 = ((r) => (r[r.Open = 0] = "Open", r[r.Closed = 1] = "Closed", r))(I1 || {}), D1 = ((r) => (r[r.Pointer = 0] = "Pointer", r[r.Other = 1] = "Other", r))(D1 || {});
|
|
@@ -4295,7 +4295,7 @@ function ta(r) {
|
|
|
4295
4295
|
let $1 = he({ name: "Menu", props: { as: { type: [Object, String], default: "template" } }, setup(r, { slots: e, attrs: t }) {
|
|
4296
4296
|
let o = x(1), n = x(null), i = x(null), s = x([]), a = x(""), l = x(null), d = x(1);
|
|
4297
4297
|
function c(u = (m) => m) {
|
|
4298
|
-
let m = l.value !== null ? s.value[l.value] : null, h = rd(u(s.value.slice()), (b) =>
|
|
4298
|
+
let m = l.value !== null ? s.value[l.value] : null, h = rd(u(s.value.slice()), (b) => q(b.dataRef.domRef)), f = m ? h.indexOf(m) : null;
|
|
4299
4299
|
return f === -1 && (f = null), { items: h, activeItemIndex: f };
|
|
4300
4300
|
}
|
|
4301
4301
|
let p = { menuState: o, buttonRef: n, itemsRef: i, items: s, searchQuery: a, activeItemIndex: l, activationTrigger: d, closeMenu: () => {
|
|
@@ -4322,7 +4322,7 @@ let $1 = he({ name: "Menu", props: { as: { type: [Object, String], default: "tem
|
|
|
4322
4322
|
} };
|
|
4323
4323
|
return od([n, i], (u, m) => {
|
|
4324
4324
|
var h;
|
|
4325
|
-
p.closeMenu(), ea(m, Zs.Loose) || (u.preventDefault(), (h =
|
|
4325
|
+
p.closeMenu(), ea(m, Zs.Loose) || (u.preventDefault(), (h = q(n)) == null || h.focus());
|
|
4326
4326
|
}, L(() => o.value === 0)), He(im, p), id(L(() => ze(o.value, { 0: Be.Open, 1: Be.Closed }))), () => {
|
|
4327
4327
|
let u = { open: o.value === 0, close: p.closeMenu };
|
|
4328
4328
|
return Ae({ ourProps: {}, theirProps: r, slot: u, slots: e, attrs: t, name: "Menu" });
|
|
@@ -4338,13 +4338,13 @@ let $1 = he({ name: "Menu", props: { as: { type: [Object, String], default: "tem
|
|
|
4338
4338
|
case ie.ArrowDown:
|
|
4339
4339
|
p.preventDefault(), p.stopPropagation(), s.openMenu(), Me(() => {
|
|
4340
4340
|
var u;
|
|
4341
|
-
(u =
|
|
4341
|
+
(u = q(s.itemsRef)) == null || u.focus({ preventScroll: !0 }), s.goToItem(ye.First);
|
|
4342
4342
|
});
|
|
4343
4343
|
break;
|
|
4344
4344
|
case ie.ArrowUp:
|
|
4345
4345
|
p.preventDefault(), p.stopPropagation(), s.openMenu(), Me(() => {
|
|
4346
4346
|
var u;
|
|
4347
|
-
(u =
|
|
4347
|
+
(u = q(s.itemsRef)) == null || u.focus({ preventScroll: !0 }), s.goToItem(ye.Last);
|
|
4348
4348
|
});
|
|
4349
4349
|
break;
|
|
4350
4350
|
}
|
|
@@ -4359,22 +4359,22 @@ let $1 = he({ name: "Menu", props: { as: { type: [Object, String], default: "tem
|
|
|
4359
4359
|
function d(p) {
|
|
4360
4360
|
r.disabled || (s.menuState.value === 0 ? (s.closeMenu(), Me(() => {
|
|
4361
4361
|
var u;
|
|
4362
|
-
return (u =
|
|
4362
|
+
return (u = q(s.buttonRef)) == null ? void 0 : u.focus({ preventScroll: !0 });
|
|
4363
4363
|
})) : (p.preventDefault(), s.openMenu(), R1(() => {
|
|
4364
4364
|
var u;
|
|
4365
|
-
return (u =
|
|
4365
|
+
return (u = q(s.itemsRef)) == null ? void 0 : u.focus({ preventScroll: !0 });
|
|
4366
4366
|
})));
|
|
4367
4367
|
}
|
|
4368
4368
|
let c = zu(L(() => ({ as: r.as, type: e.type })), s.buttonRef);
|
|
4369
4369
|
return () => {
|
|
4370
4370
|
var p;
|
|
4371
|
-
let u = { open: s.menuState.value === 0 }, { ...m } = r, h = { ref: s.buttonRef, id: i, type: c.value, "aria-haspopup": "menu", "aria-controls": (p =
|
|
4371
|
+
let u = { open: s.menuState.value === 0 }, { ...m } = r, h = { ref: s.buttonRef, id: i, type: c.value, "aria-haspopup": "menu", "aria-controls": (p = q(s.itemsRef)) == null ? void 0 : p.id, "aria-expanded": s.menuState.value === 0, onKeydown: a, onKeyup: l, onClick: d };
|
|
4372
4372
|
return Ae({ ourProps: h, theirProps: m, slot: u, attrs: e, slots: t, name: "MenuButton" });
|
|
4373
4373
|
};
|
|
4374
4374
|
} }), _1 = he({ name: "MenuItems", props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, id: { type: String, default: null } }, setup(r, { attrs: e, slots: t, expose: o }) {
|
|
4375
4375
|
var n;
|
|
4376
4376
|
let i = (n = r.id) != null ? n : `headlessui-menu-items-${bt()}`, s = ta("MenuItems"), a = x(null);
|
|
4377
|
-
o({ el: s.itemsRef, $el: s.itemsRef }), Zf({ container: L(() =>
|
|
4377
|
+
o({ el: s.itemsRef, $el: s.itemsRef }), Zf({ container: L(() => q(s.itemsRef)), enabled: L(() => s.menuState.value === 0), accept(u) {
|
|
4378
4378
|
return u.getAttribute("role") === "menuitem" ? NodeFilter.FILTER_REJECT : u.hasAttribute("role") ? NodeFilter.FILTER_SKIP : NodeFilter.FILTER_ACCEPT;
|
|
4379
4379
|
}, walk(u) {
|
|
4380
4380
|
u.setAttribute("role", "none");
|
|
@@ -4387,9 +4387,9 @@ let $1 = he({ name: "Menu", props: { as: { type: [Object, String], default: "tem
|
|
|
4387
4387
|
case ie.Enter:
|
|
4388
4388
|
if (u.preventDefault(), u.stopPropagation(), s.activeItemIndex.value !== null) {
|
|
4389
4389
|
let h = s.items.value[s.activeItemIndex.value];
|
|
4390
|
-
(m =
|
|
4390
|
+
(m = q(h.dataRef.domRef)) == null || m.click();
|
|
4391
4391
|
}
|
|
4392
|
-
s.closeMenu(), Du(
|
|
4392
|
+
s.closeMenu(), Du(q(s.buttonRef));
|
|
4393
4393
|
break;
|
|
4394
4394
|
case ie.ArrowDown:
|
|
4395
4395
|
return u.preventDefault(), u.stopPropagation(), s.goToItem(ye.Next);
|
|
@@ -4404,11 +4404,11 @@ let $1 = he({ name: "Menu", props: { as: { type: [Object, String], default: "tem
|
|
|
4404
4404
|
case ie.Escape:
|
|
4405
4405
|
u.preventDefault(), u.stopPropagation(), s.closeMenu(), Me(() => {
|
|
4406
4406
|
var h;
|
|
4407
|
-
return (h =
|
|
4407
|
+
return (h = q(s.buttonRef)) == null ? void 0 : h.focus({ preventScroll: !0 });
|
|
4408
4408
|
});
|
|
4409
4409
|
break;
|
|
4410
4410
|
case ie.Tab:
|
|
4411
|
-
u.preventDefault(), u.stopPropagation(), s.closeMenu(), Me(() => Yf(
|
|
4411
|
+
u.preventDefault(), u.stopPropagation(), s.closeMenu(), Me(() => Yf(q(s.buttonRef), u.shiftKey ? qt.Previous : qt.Next));
|
|
4412
4412
|
break;
|
|
4413
4413
|
default:
|
|
4414
4414
|
u.key.length === 1 && (s.search(u.key), a.value = setTimeout(() => s.clearSearch(), 350));
|
|
@@ -4425,7 +4425,7 @@ let $1 = he({ name: "Menu", props: { as: { type: [Object, String], default: "tem
|
|
|
4425
4425
|
let c = ti(), p = L(() => c !== null ? (c.value & Be.Open) === Be.Open : s.menuState.value === 0);
|
|
4426
4426
|
return () => {
|
|
4427
4427
|
var u, m;
|
|
4428
|
-
let h = { open: s.menuState.value === 0 }, { ...f } = r, b = { "aria-activedescendant": s.activeItemIndex.value === null || (u = s.items.value[s.activeItemIndex.value]) == null ? void 0 : u.id, "aria-labelledby": (m =
|
|
4428
|
+
let h = { open: s.menuState.value === 0 }, { ...f } = r, b = { "aria-activedescendant": s.activeItemIndex.value === null || (u = s.items.value[s.activeItemIndex.value]) == null ? void 0 : u.id, "aria-labelledby": (m = q(s.buttonRef)) == null ? void 0 : m.id, id: i, onKeydown: l, onKeyup: d, role: "menu", tabIndex: 0, ref: s.itemsRef };
|
|
4429
4429
|
return Ae({ ourProps: b, theirProps: f, slot: h, attrs: e, slots: t, features: $r.RenderStrategy | $r.Static, visible: p.value, name: "MenuItems" });
|
|
4430
4430
|
};
|
|
4431
4431
|
} }), cn = he({ name: "MenuItem", inheritAttrs: !1, props: { as: { type: [Object, String], default: "template" }, disabled: { type: Boolean, default: !1 }, id: { type: String, default: null } }, setup(r, { slots: e, attrs: t, expose: o }) {
|
|
@@ -4438,12 +4438,12 @@ let $1 = he({ name: "Menu", props: { as: { type: [Object, String], default: "tem
|
|
|
4438
4438
|
Se(() => s.registerItem(i, c)), xt(() => s.unregisterItem(i)), ot(() => {
|
|
4439
4439
|
s.menuState.value === 0 && l.value && s.activationTrigger.value !== 0 && Me(() => {
|
|
4440
4440
|
var w, E;
|
|
4441
|
-
return (E = (w =
|
|
4441
|
+
return (E = (w = q(a)) == null ? void 0 : w.scrollIntoView) == null ? void 0 : E.call(w, { block: "nearest" });
|
|
4442
4442
|
});
|
|
4443
4443
|
});
|
|
4444
4444
|
function p(w) {
|
|
4445
4445
|
if (r.disabled) return w.preventDefault();
|
|
4446
|
-
s.closeMenu(), Du(
|
|
4446
|
+
s.closeMenu(), Du(q(s.buttonRef));
|
|
4447
4447
|
}
|
|
4448
4448
|
function u() {
|
|
4449
4449
|
if (r.disabled) return s.goToItem(ye.Nothing);
|
|
@@ -4493,7 +4493,7 @@ function kc(r, e, t, o, n, i) {
|
|
|
4493
4493
|
Bi(r, ...t), Ta(r, ...o), s.add(j1(r, (l) => (Bi(r, ...o, ...e), Ta(r, ...n), a(l))));
|
|
4494
4494
|
}), s.add(() => Bi(r, ...e, ...t, ...o, ...n)), s.add(() => a("cancelled")), s.dispose;
|
|
4495
4495
|
}
|
|
4496
|
-
function
|
|
4496
|
+
function Wr(r = "") {
|
|
4497
4497
|
return r.split(/\s+/).filter((e) => e.length > 1);
|
|
4498
4498
|
}
|
|
4499
4499
|
let ld = Symbol("TransitionContext");
|
|
@@ -4506,7 +4506,7 @@ function U1() {
|
|
|
4506
4506
|
if (r === null) throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");
|
|
4507
4507
|
return r;
|
|
4508
4508
|
}
|
|
4509
|
-
function
|
|
4509
|
+
function q1() {
|
|
4510
4510
|
let r = re(dd, null);
|
|
4511
4511
|
if (r === null) throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");
|
|
4512
4512
|
return r;
|
|
@@ -4549,12 +4549,12 @@ let am = $r.RenderStrategy, ur = he({ props: { as: { type: [Object, String], def
|
|
|
4549
4549
|
if (!V1() && r1()) return () => Ee(Xo, { ...r, onBeforeEnter: s, onAfterEnter: a, onBeforeLeave: l, onAfterLeave: d }, o);
|
|
4550
4550
|
let c = x(null), p = L(() => r.unmount ? Or.Unmount : Or.Hidden);
|
|
4551
4551
|
n({ el: c, $el: c });
|
|
4552
|
-
let { show: u, appear: m } = U1(), { register: h, unregister: f } =
|
|
4552
|
+
let { show: u, appear: m } = U1(), { register: h, unregister: f } = q1(), b = x(u.value ? "visible" : "hidden"), w = { value: !0 }, E = bt(), C = { value: !1 }, y = sm(() => {
|
|
4553
4553
|
!C.value && b.value !== "hidden" && (b.value = "hidden", f(E), d());
|
|
4554
4554
|
});
|
|
4555
4555
|
Se(() => {
|
|
4556
|
-
let
|
|
4557
|
-
xt(
|
|
4556
|
+
let W = h(E);
|
|
4557
|
+
xt(W);
|
|
4558
4558
|
}), ot(() => {
|
|
4559
4559
|
if (p.value === Or.Hidden && E) {
|
|
4560
4560
|
if (u.value && b.value !== "visible") {
|
|
@@ -4564,32 +4564,32 @@ let am = $r.RenderStrategy, ur = he({ props: { as: { type: [Object, String], def
|
|
|
4564
4564
|
ze(b.value, { hidden: () => f(E), visible: () => h(E) });
|
|
4565
4565
|
}
|
|
4566
4566
|
});
|
|
4567
|
-
let M =
|
|
4567
|
+
let M = Wr(r.enter), k = Wr(r.enterFrom), A = Wr(r.enterTo), H = Wr(r.entered), _ = Wr(r.leave), P = Wr(r.leaveFrom), v = Wr(r.leaveTo);
|
|
4568
4568
|
Se(() => {
|
|
4569
4569
|
ot(() => {
|
|
4570
4570
|
if (b.value === "visible") {
|
|
4571
|
-
let
|
|
4572
|
-
if (
|
|
4571
|
+
let W = q(c);
|
|
4572
|
+
if (W instanceof Comment && W.data === "") throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
|
|
4573
4573
|
}
|
|
4574
4574
|
});
|
|
4575
4575
|
});
|
|
4576
|
-
function I(
|
|
4577
|
-
let ne = w.value && !m.value, Y =
|
|
4578
|
-
!Y || !(Y instanceof HTMLElement) || ne || (C.value = !0, u.value && s(), u.value || l(),
|
|
4576
|
+
function I(W) {
|
|
4577
|
+
let ne = w.value && !m.value, Y = q(c);
|
|
4578
|
+
!Y || !(Y instanceof HTMLElement) || ne || (C.value = !0, u.value && s(), u.value || l(), W(u.value ? kc(Y, M, k, A, H, (Z) => {
|
|
4579
4579
|
C.value = !1, Z === ml.Finished && a();
|
|
4580
|
-
}) : kc(Y, _, P, v,
|
|
4580
|
+
}) : kc(Y, _, P, v, H, (Z) => {
|
|
4581
4581
|
C.value = !1, Z === ml.Finished && (ra(y) || (b.value = "hidden", f(E), d()));
|
|
4582
4582
|
})));
|
|
4583
4583
|
}
|
|
4584
4584
|
return Se(() => {
|
|
4585
|
-
pe([u], (
|
|
4585
|
+
pe([u], (W, ne, Y) => {
|
|
4586
4586
|
I(Y), w.value = !1;
|
|
4587
4587
|
}, { immediate: !0 });
|
|
4588
4588
|
}), He(dd, y), id(L(() => ze(b.value, { visible: Be.Open, hidden: Be.Closed }) | i.value)), () => {
|
|
4589
|
-
let { appear:
|
|
4589
|
+
let { appear: W, show: ne, enter: Y, enterFrom: Z, enterTo: le, entered: ge, leave: se, leaveFrom: ae, leaveTo: oe, ...ce } = r, Ne = { ref: c }, Te = { ...ce, ...m.value && u.value && ei.isServer ? { class: X([t.class, ce.class, ...M, ...k]) } : {} };
|
|
4590
4590
|
return Ae({ theirProps: Te, ourProps: Ne, slot: {}, slots: o, attrs: t, features: am, visible: b.value === "visible", name: "TransitionChild" });
|
|
4591
4591
|
};
|
|
4592
|
-
} }),
|
|
4592
|
+
} }), W1 = ur, Xo = he({ inheritAttrs: !1, props: { as: { type: [Object, String], default: "div" }, show: { type: [Boolean], default: null }, unmount: { type: [Boolean], default: !0 }, appear: { type: [Boolean], default: !1 }, enter: { type: [String], default: "" }, enterFrom: { type: [String], default: "" }, enterTo: { type: [String], default: "" }, entered: { type: [String], default: "" }, leave: { type: [String], default: "" }, leaveFrom: { type: [String], default: "" }, leaveTo: { type: [String], default: "" } }, emits: { beforeEnter: () => !0, afterEnter: () => !0, beforeLeave: () => !0, afterLeave: () => !0 }, setup(r, { emit: e, attrs: t, slots: o }) {
|
|
4593
4593
|
let n = ti(), i = L(() => r.show === null && n !== null ? (n.value & Be.Open) === Be.Open : r.show);
|
|
4594
4594
|
ot(() => {
|
|
4595
4595
|
if (![!0, !1].includes(i.value)) throw new Error('A <Transition /> is used but it is missing a `:show="true | false"` prop.');
|
|
@@ -4603,7 +4603,7 @@ let am = $r.RenderStrategy, ur = he({ props: { as: { type: [Object, String], def
|
|
|
4603
4603
|
});
|
|
4604
4604
|
}), He(dd, a), He(ld, d), () => {
|
|
4605
4605
|
let c = nd(r, ["show", "appear", "unmount", "onBeforeEnter", "onBeforeLeave", "onAfterEnter", "onAfterLeave"]), p = { unmount: r.unmount };
|
|
4606
|
-
return Ae({ ourProps: { ...p, as: "template" }, theirProps: {}, slot: {}, slots: { ...o, default: () => [Ee(
|
|
4606
|
+
return Ae({ ourProps: { ...p, as: "template" }, theirProps: {}, slot: {}, slots: { ...o, default: () => [Ee(W1, { onBeforeEnter: () => e("beforeEnter"), onAfterEnter: () => e("afterEnter"), onBeforeLeave: () => e("beforeLeave"), onAfterLeave: () => e("afterLeave"), ...t, ...p, ...c }, o.default)] }, attrs: {}, features: am, visible: s.value === "visible", name: "Transition" });
|
|
4607
4607
|
};
|
|
4608
4608
|
} });
|
|
4609
4609
|
const K1 = { class: "font-sans flex items-end justify-center pb-20 text-center sm:block sm:p-0 bg-white" }, G1 = { 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" }, J1 = { class: "px-4 lg:h-[10vh] h-[16vh] flex items-center justify-between border-b border-gray-200 bg-white" }, Y1 = {
|
|
@@ -4626,12 +4626,12 @@ const K1 = { class: "font-sans flex items-end justify-center pb-20 text-center s
|
|
|
4626
4626
|
i();
|
|
4627
4627
|
}, a = L(() => o.getPageBuilderLogo);
|
|
4628
4628
|
return (l, d) => (S(), xe(Yo, { to: "body" }, [
|
|
4629
|
-
|
|
4629
|
+
$(T(Xo), {
|
|
4630
4630
|
show: r.show,
|
|
4631
4631
|
as: "template"
|
|
4632
4632
|
}, {
|
|
4633
4633
|
default: z(() => [
|
|
4634
|
-
|
|
4634
|
+
$(T(oi), {
|
|
4635
4635
|
onClose: i,
|
|
4636
4636
|
onKeydown: uu(Po(s, ["prevent"]), ["escape"]),
|
|
4637
4637
|
as: "div",
|
|
@@ -4640,7 +4640,7 @@ const K1 = { class: "font-sans flex items-end justify-center pb-20 text-center s
|
|
|
4640
4640
|
}, {
|
|
4641
4641
|
default: z(() => [
|
|
4642
4642
|
g("div", K1, [
|
|
4643
|
-
|
|
4643
|
+
$(T(ur), {
|
|
4644
4644
|
as: "template",
|
|
4645
4645
|
enter: "ease-out duration-100",
|
|
4646
4646
|
"enter-from": "opacity-0",
|
|
@@ -4650,7 +4650,7 @@ const K1 = { class: "font-sans flex items-end justify-center pb-20 text-center s
|
|
|
4650
4650
|
"leave-to": "opacity-100"
|
|
4651
4651
|
}, {
|
|
4652
4652
|
default: z(() => [
|
|
4653
|
-
|
|
4653
|
+
$(T(sd), { class: "fixed inset-0 bg-opacity-75 transition-opacity" })
|
|
4654
4654
|
]),
|
|
4655
4655
|
_: 1
|
|
4656
4656
|
}),
|
|
@@ -4658,7 +4658,7 @@ const K1 = { class: "font-sans flex items-end justify-center pb-20 text-center s
|
|
|
4658
4658
|
"aria-hidden": "true",
|
|
4659
4659
|
class: "hidden sm:inline-block sm:align-middle sm:h-screen"
|
|
4660
4660
|
}, "", -1)),
|
|
4661
|
-
|
|
4661
|
+
$(T(ur), {
|
|
4662
4662
|
as: "template",
|
|
4663
4663
|
enter: "ease-out duration-100",
|
|
4664
4664
|
"enter-from": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
|
|
@@ -4694,7 +4694,7 @@ const K1 = { class: "font-sans flex items-end justify-center pb-20 text-center s
|
|
|
4694
4694
|
], -1)
|
|
4695
4695
|
]))
|
|
4696
4696
|
]),
|
|
4697
|
-
|
|
4697
|
+
Wt(l.$slots, "default")
|
|
4698
4698
|
])
|
|
4699
4699
|
]),
|
|
4700
4700
|
_: 3
|
|
@@ -4754,19 +4754,19 @@ const K1 = { class: "font-sans flex items-end justify-center pb-20 text-center s
|
|
|
4754
4754
|
"5xl": "sm:max-w-5xl"
|
|
4755
4755
|
})[t.maxWidth]);
|
|
4756
4756
|
return (s, a) => (S(), xe(Yo, { to: "body" }, [
|
|
4757
|
-
|
|
4757
|
+
$(T(Xo), {
|
|
4758
4758
|
show: r.show,
|
|
4759
4759
|
as: "template"
|
|
4760
4760
|
}, {
|
|
4761
4761
|
default: z(() => [
|
|
4762
|
-
|
|
4762
|
+
$(T(oi), {
|
|
4763
4763
|
as: "div",
|
|
4764
4764
|
class: "font-sans fixed z-30 inset-0 overflow-y-auto",
|
|
4765
4765
|
onClose: n
|
|
4766
4766
|
}, {
|
|
4767
4767
|
default: z(() => [
|
|
4768
4768
|
g("div", o0, [
|
|
4769
|
-
|
|
4769
|
+
$(T(ur), {
|
|
4770
4770
|
as: "template",
|
|
4771
4771
|
enter: "ease-out duration-100",
|
|
4772
4772
|
"enter-from": "opacity-0",
|
|
@@ -4776,7 +4776,7 @@ const K1 = { class: "font-sans flex items-end justify-center pb-20 text-center s
|
|
|
4776
4776
|
"leave-to": "opacity-0"
|
|
4777
4777
|
}, {
|
|
4778
4778
|
default: z(() => [
|
|
4779
|
-
|
|
4779
|
+
$(T(sd), { class: "fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity" })
|
|
4780
4780
|
]),
|
|
4781
4781
|
_: 1
|
|
4782
4782
|
}),
|
|
@@ -4784,7 +4784,7 @@ const K1 = { class: "font-sans flex items-end justify-center pb-20 text-center s
|
|
|
4784
4784
|
"aria-hidden": "true",
|
|
4785
4785
|
class: "hidden sm:inline-block sm:align-middle sm:h-screen"
|
|
4786
4786
|
}, "", -1)),
|
|
4787
|
-
|
|
4787
|
+
$(T(ur), {
|
|
4788
4788
|
as: "template",
|
|
4789
4789
|
enter: "ease-out duration-100",
|
|
4790
4790
|
"enter-from": "opacity-0 scale-95",
|
|
@@ -4801,7 +4801,7 @@ const K1 = { class: "font-sans flex items-end justify-center pb-20 text-center s
|
|
|
4801
4801
|
r.maxHeight ? r.maxHeight : ""
|
|
4802
4802
|
]])
|
|
4803
4803
|
}, [
|
|
4804
|
-
|
|
4804
|
+
Wt(s.$slots, "default")
|
|
4805
4805
|
], 2)
|
|
4806
4806
|
]),
|
|
4807
4807
|
_: 3
|
|
@@ -4908,24 +4908,24 @@ const K1 = { class: "font-sans flex items-end justify-center pb-20 text-center s
|
|
|
4908
4908
|
maxWidth: r.maxWidth
|
|
4909
4909
|
}, {
|
|
4910
4910
|
default: z(() => [
|
|
4911
|
-
|
|
4911
|
+
Wt(s.$slots, "content"),
|
|
4912
4912
|
g("div", n0, [
|
|
4913
4913
|
r.simpleModal !== !0 ? (S(), O("div", i0, [
|
|
4914
4914
|
g("div", s0, [
|
|
4915
|
-
r.type === "default" ? (S(), O("div", a0)) :
|
|
4915
|
+
r.type === "default" ? (S(), O("div", a0)) : R("", !0),
|
|
4916
4916
|
g("div", l0, [
|
|
4917
4917
|
r.type === "success" ? (S(), O("div", d0, a[0] || (a[0] = [
|
|
4918
4918
|
g("span", { class: "material-symbols-outlined" }, " check ", -1)
|
|
4919
|
-
]))) :
|
|
4919
|
+
]))) : R("", !0),
|
|
4920
4920
|
r.type === "warning" ? (S(), O("div", c0, a[1] || (a[1] = [
|
|
4921
4921
|
g("span", { class: "material-symbols-outlined" }, " notification_important ", -1)
|
|
4922
|
-
]))) :
|
|
4922
|
+
]))) : R("", !0),
|
|
4923
4923
|
r.type === "delete" ? (S(), O("div", p0, a[2] || (a[2] = [
|
|
4924
4924
|
g("span", { class: "material-symbols-outlined" }, " delete ", -1)
|
|
4925
|
-
]))) :
|
|
4925
|
+
]))) : R("", !0),
|
|
4926
4926
|
r.type === "danger" ? (S(), O("div", u0, a[3] || (a[3] = [
|
|
4927
4927
|
g("span", { class: "material-symbols-outlined" }, " warning ", -1)
|
|
4928
|
-
]))) :
|
|
4928
|
+
]))) : R("", !0),
|
|
4929
4929
|
g("h3", m0, F(r.title), 1)
|
|
4930
4930
|
])
|
|
4931
4931
|
]),
|
|
@@ -4935,7 +4935,7 @@ const K1 = { class: "font-sans flex items-end justify-center pb-20 text-center s
|
|
|
4935
4935
|
}, a[4] || (a[4] = [
|
|
4936
4936
|
g("span", { class: "material-symbols-outlined" }, " close ", -1)
|
|
4937
4937
|
]))
|
|
4938
|
-
])) :
|
|
4938
|
+
])) : R("", !0),
|
|
4939
4939
|
g("div", {
|
|
4940
4940
|
class: X({ "p-4": r.simpleModal !== !0 })
|
|
4941
4941
|
}, [
|
|
@@ -4943,13 +4943,13 @@ const K1 = { class: "font-sans flex items-end justify-center pb-20 text-center s
|
|
|
4943
4943
|
key: 0,
|
|
4944
4944
|
innerHTML: r.description,
|
|
4945
4945
|
class: "myPrimaryParagraph mb-6"
|
|
4946
|
-
}, null, 8, h0)) :
|
|
4947
|
-
|
|
4948
|
-
|
|
4946
|
+
}, null, 8, h0)) : R("", !0),
|
|
4947
|
+
Wt(s.$slots, "header"),
|
|
4948
|
+
Wt(s.$slots, "default")
|
|
4949
4949
|
], 2)
|
|
4950
4950
|
]),
|
|
4951
4951
|
r.simpleModal !== !0 ? (S(), O("div", g0, [
|
|
4952
|
-
|
|
4952
|
+
Wt(s.$slots, "footer"),
|
|
4953
4953
|
g("div", {
|
|
4954
4954
|
class: X([{
|
|
4955
4955
|
"sm:grid-cols-1": r.gridColumnAmount === 1,
|
|
@@ -4963,7 +4963,7 @@ const K1 = { class: "font-sans flex items-end justify-center pb-20 text-center s
|
|
|
4963
4963
|
class: "mySecondaryButton",
|
|
4964
4964
|
type: "button",
|
|
4965
4965
|
onClick: o
|
|
4966
|
-
}, F(r.firstButtonText), 513)) :
|
|
4966
|
+
}, F(r.firstButtonText), 513)) : R("", !0),
|
|
4967
4967
|
r.secondButtonText ? (S(), O("div", f0, [
|
|
4968
4968
|
r.disabled && r.disabledWhichButton === "secondButton" ? (S(), O("div", b0, [
|
|
4969
4969
|
g("button", {
|
|
@@ -4975,7 +4975,7 @@ const K1 = { class: "font-sans flex items-end justify-center pb-20 text-center s
|
|
|
4975
4975
|
onClick: n
|
|
4976
4976
|
}, [
|
|
4977
4977
|
g("div", null, [
|
|
4978
|
-
|
|
4978
|
+
$(Dt, { name: "bounce" }, {
|
|
4979
4979
|
default: z(() => a[5] || (a[5] = [
|
|
4980
4980
|
g("div", {
|
|
4981
4981
|
role: "status",
|
|
@@ -5006,15 +5006,15 @@ const K1 = { class: "font-sans flex items-end justify-center pb-20 text-center s
|
|
|
5006
5006
|
]),
|
|
5007
5007
|
a[6] || (a[6] = g("div", null, "Loading..", -1))
|
|
5008
5008
|
], 10, y0)
|
|
5009
|
-
])) :
|
|
5009
|
+
])) : R("", !0),
|
|
5010
5010
|
!r.disabled || r.disabledWhichButton !== "secondButton" ? (S(), O("div", w0, [
|
|
5011
5011
|
g("button", {
|
|
5012
5012
|
class: "myPrimaryButton bg-yellow-300 hover:bg-yellow-400 text-myPrimaryDarkGrayColor hover:text-myPrimaryDarkGrayColor focus:ring-yellow-400 w-full",
|
|
5013
5013
|
type: "button",
|
|
5014
5014
|
onClick: n
|
|
5015
5015
|
}, F(r.secondButtonText), 1)
|
|
5016
|
-
])) :
|
|
5017
|
-
])) :
|
|
5016
|
+
])) : R("", !0)
|
|
5017
|
+
])) : R("", !0),
|
|
5018
5018
|
r.thirdButtonText ? (S(), O("div", v0, [
|
|
5019
5019
|
r.type === "default" ? (S(), O("div", x0, [
|
|
5020
5020
|
r.disabled && r.disabledWhichButton === "thirdButton" ? (S(), O("div", k0, [
|
|
@@ -5026,7 +5026,7 @@ const K1 = { class: "font-sans flex items-end justify-center pb-20 text-center s
|
|
|
5026
5026
|
type: "button"
|
|
5027
5027
|
}, [
|
|
5028
5028
|
g("div", null, [
|
|
5029
|
-
|
|
5029
|
+
$(Dt, { name: "bounce" }, {
|
|
5030
5030
|
default: z(() => a[7] || (a[7] = [
|
|
5031
5031
|
g("div", {
|
|
5032
5032
|
role: "status",
|
|
@@ -5057,15 +5057,15 @@ const K1 = { class: "font-sans flex items-end justify-center pb-20 text-center s
|
|
|
5057
5057
|
]),
|
|
5058
5058
|
a[8] || (a[8] = g("div", null, "Loading..", -1))
|
|
5059
5059
|
], 10, S0)
|
|
5060
|
-
])) :
|
|
5060
|
+
])) : R("", !0),
|
|
5061
5061
|
!r.disabled || r.disabledWhichButton !== "thirdButton" ? (S(), O("div", C0, [
|
|
5062
5062
|
g("button", {
|
|
5063
5063
|
class: "myPrimaryButton bg-myPrimaryLinkColor focus-visible:ring-myPrimaryLinkColor focus:ring-myPrimaryLinkColor hover:bg-myPrimaryLinkColor w-full",
|
|
5064
5064
|
type: "button",
|
|
5065
5065
|
onClick: i
|
|
5066
5066
|
}, F(r.thirdButtonText), 1)
|
|
5067
|
-
])) :
|
|
5068
|
-
])) :
|
|
5067
|
+
])) : R("", !0)
|
|
5068
|
+
])) : R("", !0),
|
|
5069
5069
|
r.type === "success" ? (S(), O("div", E0, [
|
|
5070
5070
|
r.disabled && r.disabledWhichButton === "thirdButton" ? (S(), O("div", M0, [
|
|
5071
5071
|
g("button", {
|
|
@@ -5076,7 +5076,7 @@ const K1 = { class: "font-sans flex items-end justify-center pb-20 text-center s
|
|
|
5076
5076
|
type: "button"
|
|
5077
5077
|
}, [
|
|
5078
5078
|
g("div", null, [
|
|
5079
|
-
|
|
5079
|
+
$(Dt, { name: "bounce" }, {
|
|
5080
5080
|
default: z(() => a[9] || (a[9] = [
|
|
5081
5081
|
g("div", {
|
|
5082
5082
|
role: "status",
|
|
@@ -5107,15 +5107,15 @@ const K1 = { class: "font-sans flex items-end justify-center pb-20 text-center s
|
|
|
5107
5107
|
]),
|
|
5108
5108
|
a[10] || (a[10] = g("div", null, "Loading..", -1))
|
|
5109
5109
|
], 10, T0)
|
|
5110
|
-
])) :
|
|
5110
|
+
])) : R("", !0),
|
|
5111
5111
|
!r.disabled || r.disabledWhichButton !== "thirdButton" ? (S(), O("div", O0, [
|
|
5112
5112
|
g("button", {
|
|
5113
5113
|
class: "myPrimaryButton bg-myPrimaryLinkColor focus-visible:ring-myPrimaryLinkColor focus:ring-myPrimaryLinkColor hover:bg-myPrimaryLinkColor w-full",
|
|
5114
5114
|
type: "button",
|
|
5115
5115
|
onClick: i
|
|
5116
5116
|
}, F(r.thirdButtonText), 1)
|
|
5117
|
-
])) :
|
|
5118
|
-
])) :
|
|
5117
|
+
])) : R("", !0)
|
|
5118
|
+
])) : R("", !0),
|
|
5119
5119
|
r.type === "warning" ? (S(), O("div", P0, [
|
|
5120
5120
|
r.disabled && r.disabledWhichButton === "thirdButton" ? (S(), O("div", A0, [
|
|
5121
5121
|
g("button", {
|
|
@@ -5126,7 +5126,7 @@ const K1 = { class: "font-sans flex items-end justify-center pb-20 text-center s
|
|
|
5126
5126
|
type: "button"
|
|
5127
5127
|
}, [
|
|
5128
5128
|
g("div", null, [
|
|
5129
|
-
|
|
5129
|
+
$(Dt, { name: "bounce" }, {
|
|
5130
5130
|
default: z(() => a[11] || (a[11] = [
|
|
5131
5131
|
g("div", {
|
|
5132
5132
|
role: "status",
|
|
@@ -5157,15 +5157,15 @@ const K1 = { class: "font-sans flex items-end justify-center pb-20 text-center s
|
|
|
5157
5157
|
]),
|
|
5158
5158
|
a[12] || (a[12] = g("div", null, "Loading..", -1))
|
|
5159
5159
|
], 10, B0)
|
|
5160
|
-
])) :
|
|
5160
|
+
])) : R("", !0),
|
|
5161
5161
|
!r.disabled || r.disabledWhichButton !== "thirdButton" ? (S(), O("div", L0, [
|
|
5162
5162
|
g("button", {
|
|
5163
5163
|
class: "flex items-center gap-2 myPrimaryButton bg-myPrimaryErrorColor hover:bg-red-600 text-white focus:ring-myPrimaryErrorColor w-full",
|
|
5164
5164
|
type: "button",
|
|
5165
5165
|
onClick: i
|
|
5166
5166
|
}, F(r.thirdButtonText), 1)
|
|
5167
|
-
])) :
|
|
5168
|
-
])) :
|
|
5167
|
+
])) : R("", !0)
|
|
5168
|
+
])) : R("", !0),
|
|
5169
5169
|
r.type === "danger" || r.type === "delete" ? (S(), O("div", N0, [
|
|
5170
5170
|
r.disabled && r.disabledWhichButton === "thirdButton" ? (S(), O("div", I0, [
|
|
5171
5171
|
g("button", {
|
|
@@ -5176,7 +5176,7 @@ const K1 = { class: "font-sans flex items-end justify-center pb-20 text-center s
|
|
|
5176
5176
|
type: "button"
|
|
5177
5177
|
}, [
|
|
5178
5178
|
g("div", null, [
|
|
5179
|
-
|
|
5179
|
+
$(Dt, { name: "bounce" }, {
|
|
5180
5180
|
default: z(() => a[13] || (a[13] = [
|
|
5181
5181
|
g("div", {
|
|
5182
5182
|
role: "status",
|
|
@@ -5207,18 +5207,18 @@ const K1 = { class: "font-sans flex items-end justify-center pb-20 text-center s
|
|
|
5207
5207
|
]),
|
|
5208
5208
|
a[14] || (a[14] = g("div", null, "Loading..", -1))
|
|
5209
5209
|
], 10, D0)
|
|
5210
|
-
])) :
|
|
5210
|
+
])) : R("", !0),
|
|
5211
5211
|
!r.disabled || r.disabledWhichButton !== "thirdButton" ? (S(), O("div", R0, [
|
|
5212
5212
|
g("button", {
|
|
5213
5213
|
class: "flex items-center gap-2 myPrimaryButton bg-myPrimaryErrorColor hover:bg-red-600 text-white focus:ring-myPrimaryErrorColor w-full",
|
|
5214
5214
|
type: "button",
|
|
5215
5215
|
onClick: i
|
|
5216
5216
|
}, F(r.thirdButtonText), 1)
|
|
5217
|
-
])) :
|
|
5218
|
-
])) :
|
|
5219
|
-
])) :
|
|
5217
|
+
])) : R("", !0)
|
|
5218
|
+
])) : R("", !0)
|
|
5219
|
+
])) : R("", !0)
|
|
5220
5220
|
], 2)
|
|
5221
|
-
])) :
|
|
5221
|
+
])) : R("", !0)
|
|
5222
5222
|
]),
|
|
5223
5223
|
_: 3
|
|
5224
5224
|
}, 8, ["show", "maxWidth"]));
|
|
@@ -5234,7 +5234,7 @@ const K1 = { class: "font-sans flex items-end justify-center pb-20 text-center s
|
|
|
5234
5234
|
};
|
|
5235
5235
|
};
|
|
5236
5236
|
return (f, b) => (S(), O(ve, null, [
|
|
5237
|
-
|
|
5237
|
+
$($n, {
|
|
5238
5238
|
showDynamicModal: t.value,
|
|
5239
5239
|
type: o.value,
|
|
5240
5240
|
gridColumnAmount: n.value,
|
|
@@ -5819,7 +5819,7 @@ let we = class hl {
|
|
|
5819
5819
|
we.none = [];
|
|
5820
5820
|
class as extends Error {
|
|
5821
5821
|
}
|
|
5822
|
-
class
|
|
5822
|
+
class j {
|
|
5823
5823
|
/**
|
|
5824
5824
|
Create a slice. When specifying a non-zero open depth, you must
|
|
5825
5825
|
make sure that there are nodes of at least that depth at the
|
|
@@ -5846,13 +5846,13 @@ class H {
|
|
|
5846
5846
|
*/
|
|
5847
5847
|
insertAt(e, t) {
|
|
5848
5848
|
let o = hm(this.content, e + this.openStart, t);
|
|
5849
|
-
return o && new
|
|
5849
|
+
return o && new j(o, this.openStart, this.openEnd);
|
|
5850
5850
|
}
|
|
5851
5851
|
/**
|
|
5852
5852
|
@internal
|
|
5853
5853
|
*/
|
|
5854
5854
|
removeBetween(e, t) {
|
|
5855
|
-
return new
|
|
5855
|
+
return new j(mm(this.content, e + this.openStart, t + this.openStart), this.openStart, this.openEnd);
|
|
5856
5856
|
}
|
|
5857
5857
|
/**
|
|
5858
5858
|
Tests whether this slice is equal to another slice.
|
|
@@ -5880,11 +5880,11 @@ class H {
|
|
|
5880
5880
|
*/
|
|
5881
5881
|
static fromJSON(e, t) {
|
|
5882
5882
|
if (!t)
|
|
5883
|
-
return
|
|
5883
|
+
return j.empty;
|
|
5884
5884
|
let o = t.openStart || 0, n = t.openEnd || 0;
|
|
5885
5885
|
if (typeof o != "number" || typeof n != "number")
|
|
5886
5886
|
throw new RangeError("Invalid input for Slice.fromJSON");
|
|
5887
|
-
return new
|
|
5887
|
+
return new j(N.fromJSON(e, t.content), o, n);
|
|
5888
5888
|
}
|
|
5889
5889
|
/**
|
|
5890
5890
|
Create a slice from a fragment by taking the maximum possible
|
|
@@ -5896,10 +5896,10 @@ class H {
|
|
|
5896
5896
|
o++;
|
|
5897
5897
|
for (let i = e.lastChild; i && !i.isLeaf && (t || !i.type.spec.isolating); i = i.lastChild)
|
|
5898
5898
|
n++;
|
|
5899
|
-
return new
|
|
5899
|
+
return new j(e, o, n);
|
|
5900
5900
|
}
|
|
5901
5901
|
}
|
|
5902
|
-
|
|
5902
|
+
j.empty = new j(N.empty, 0, 0);
|
|
5903
5903
|
function mm(r, e, t) {
|
|
5904
5904
|
let { index: o, offset: n } = r.findIndex(e), i = r.maybeChild(o), { index: s, offset: a } = r.findIndex(t);
|
|
5905
5905
|
if (n == e || i.isText) {
|
|
@@ -6425,9 +6425,9 @@ let Nr = class fl {
|
|
|
6425
6425
|
*/
|
|
6426
6426
|
slice(e, t = this.content.size, o = !1) {
|
|
6427
6427
|
if (e == t)
|
|
6428
|
-
return
|
|
6428
|
+
return j.empty;
|
|
6429
6429
|
let n = this.resolve(e), i = this.resolve(t), s = o ? 0 : n.sharedDepth(t), a = n.start(s), d = n.node(s).content.cut(n.pos - a, i.pos - a);
|
|
6430
|
-
return new
|
|
6430
|
+
return new j(d, n.depth - s, i.depth - s);
|
|
6431
6431
|
}
|
|
6432
6432
|
/**
|
|
6433
6433
|
Replace the part of the document between the given positions with
|
|
@@ -6701,7 +6701,7 @@ class po {
|
|
|
6701
6701
|
@internal
|
|
6702
6702
|
*/
|
|
6703
6703
|
static parse(e, t) {
|
|
6704
|
-
let o = new
|
|
6704
|
+
let o = new q0(e, t);
|
|
6705
6705
|
if (o.next == null)
|
|
6706
6706
|
return po.empty;
|
|
6707
6707
|
let n = wm(o);
|
|
@@ -6853,7 +6853,7 @@ class po {
|
|
|
6853
6853
|
}
|
|
6854
6854
|
}
|
|
6855
6855
|
po.empty = new po(!0);
|
|
6856
|
-
class
|
|
6856
|
+
class q0 {
|
|
6857
6857
|
constructor(e, t) {
|
|
6858
6858
|
this.string = e, this.nodeTypes = t, this.inline = null, this.pos = 0, this.tokens = e.split(/\s*(?=\b|\W|$)/), this.tokens[this.tokens.length - 1] == "" && this.tokens.pop(), this.tokens[0] == "" && this.tokens.shift();
|
|
6859
6859
|
}
|
|
@@ -6870,11 +6870,11 @@ class W0 {
|
|
|
6870
6870
|
function wm(r) {
|
|
6871
6871
|
let e = [];
|
|
6872
6872
|
do
|
|
6873
|
-
e.push(
|
|
6873
|
+
e.push(W0(r));
|
|
6874
6874
|
while (r.eat("|"));
|
|
6875
6875
|
return e.length == 1 ? e[0] : { type: "choice", exprs: e };
|
|
6876
6876
|
}
|
|
6877
|
-
function
|
|
6877
|
+
function W0(r) {
|
|
6878
6878
|
let e = [];
|
|
6879
6879
|
do
|
|
6880
6880
|
e.push(K0(r));
|
|
@@ -7468,7 +7468,7 @@ let kn = class bl {
|
|
|
7468
7468
|
*/
|
|
7469
7469
|
parseSlice(e, t = {}) {
|
|
7470
7470
|
let o = new Pc(this, t, !0);
|
|
7471
|
-
return o.addAll(e, we.none, t.from, t.to),
|
|
7471
|
+
return o.addAll(e, we.none, t.from, t.to), j.maxOpen(o.finish());
|
|
7472
7472
|
}
|
|
7473
7473
|
/**
|
|
7474
7474
|
@internal
|
|
@@ -8447,7 +8447,7 @@ class Pr extends nt {
|
|
|
8447
8447
|
super(), this.from = e, this.to = t, this.mark = o;
|
|
8448
8448
|
}
|
|
8449
8449
|
apply(e) {
|
|
8450
|
-
let t = e.slice(this.from, this.to), o = e.resolve(this.from), n = o.node(o.sharedDepth(this.to)), i = new
|
|
8450
|
+
let t = e.slice(this.from, this.to), o = e.resolve(this.from), n = o.node(o.sharedDepth(this.to)), i = new j(cd(t.content, (s, a) => !s.isAtom || !a.type.allowsMarkType(this.mark.type) ? s : s.mark(this.mark.addToSet(s.marks)), n), t.openStart, t.openEnd);
|
|
8451
8451
|
return Re.fromReplace(e, this.from, this.to, i);
|
|
8452
8452
|
}
|
|
8453
8453
|
invert() {
|
|
@@ -8486,7 +8486,7 @@ class Kt extends nt {
|
|
|
8486
8486
|
super(), this.from = e, this.to = t, this.mark = o;
|
|
8487
8487
|
}
|
|
8488
8488
|
apply(e) {
|
|
8489
|
-
let t = e.slice(this.from, this.to), o = new
|
|
8489
|
+
let t = e.slice(this.from, this.to), o = new j(cd(t.content, (n) => n.mark(this.mark.removeFromSet(n.marks)), e), t.openStart, t.openEnd);
|
|
8490
8490
|
return Re.fromReplace(e, this.from, this.to, o);
|
|
8491
8491
|
}
|
|
8492
8492
|
invert() {
|
|
@@ -8529,7 +8529,7 @@ class Ar extends nt {
|
|
|
8529
8529
|
if (!t)
|
|
8530
8530
|
return Re.fail("No node at mark step's position");
|
|
8531
8531
|
let o = t.type.create(t.attrs, null, this.mark.addToSet(t.marks));
|
|
8532
|
-
return Re.fromReplace(e, this.pos, this.pos + 1, new
|
|
8532
|
+
return Re.fromReplace(e, this.pos, this.pos + 1, new j(N.from(o), 0, t.isLeaf ? 0 : 1));
|
|
8533
8533
|
}
|
|
8534
8534
|
invert(e) {
|
|
8535
8535
|
let t = e.nodeAt(this.pos);
|
|
@@ -8573,7 +8573,7 @@ class uo extends nt {
|
|
|
8573
8573
|
if (!t)
|
|
8574
8574
|
return Re.fail("No node at mark step's position");
|
|
8575
8575
|
let o = t.type.create(t.attrs, null, this.mark.removeFromSet(t.marks));
|
|
8576
|
-
return Re.fromReplace(e, this.pos, this.pos + 1, new
|
|
8576
|
+
return Re.fromReplace(e, this.pos, this.pos + 1, new j(N.from(o), 0, t.isLeaf ? 0 : 1));
|
|
8577
8577
|
}
|
|
8578
8578
|
invert(e) {
|
|
8579
8579
|
let t = e.nodeAt(this.pos);
|
|
@@ -8626,10 +8626,10 @@ class je extends nt {
|
|
|
8626
8626
|
if (!(e instanceof je) || e.structure || this.structure)
|
|
8627
8627
|
return null;
|
|
8628
8628
|
if (this.from + this.slice.size == e.from && !this.slice.openEnd && !e.slice.openStart) {
|
|
8629
|
-
let t = this.slice.size + e.slice.size == 0 ?
|
|
8629
|
+
let t = this.slice.size + e.slice.size == 0 ? j.empty : new j(this.slice.content.append(e.slice.content), this.slice.openStart, e.slice.openEnd);
|
|
8630
8630
|
return new je(this.from, this.to + (e.to - e.from), t, this.structure);
|
|
8631
8631
|
} else if (e.to == this.from && !this.slice.openStart && !e.slice.openEnd) {
|
|
8632
|
-
let t = this.slice.size + e.slice.size == 0 ?
|
|
8632
|
+
let t = this.slice.size + e.slice.size == 0 ? j.empty : new j(e.slice.content.append(this.slice.content), e.slice.openStart, this.slice.openEnd);
|
|
8633
8633
|
return new je(e.from, this.to, t, this.structure);
|
|
8634
8634
|
} else
|
|
8635
8635
|
return null;
|
|
@@ -8644,7 +8644,7 @@ class je extends nt {
|
|
|
8644
8644
|
static fromJSON(e, t) {
|
|
8645
8645
|
if (typeof t.from != "number" || typeof t.to != "number")
|
|
8646
8646
|
throw new RangeError("Invalid input for ReplaceStep.fromJSON");
|
|
8647
|
-
return new je(t.from, t.to,
|
|
8647
|
+
return new je(t.from, t.to, j.fromJSON(e, t.slice), !!t.structure);
|
|
8648
8648
|
}
|
|
8649
8649
|
}
|
|
8650
8650
|
nt.jsonID("replace", je);
|
|
@@ -8702,7 +8702,7 @@ class Ve extends nt {
|
|
|
8702
8702
|
static fromJSON(e, t) {
|
|
8703
8703
|
if (typeof t.from != "number" || typeof t.to != "number" || typeof t.gapFrom != "number" || typeof t.gapTo != "number" || typeof t.insert != "number")
|
|
8704
8704
|
throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");
|
|
8705
|
-
return new Ve(t.from, t.to, t.gapFrom, t.gapTo,
|
|
8705
|
+
return new Ve(t.from, t.to, t.gapFrom, t.gapTo, j.fromJSON(e, t.slice), t.insert, !!t.structure);
|
|
8706
8706
|
}
|
|
8707
8707
|
}
|
|
8708
8708
|
nt.jsonID("replaceAround", Ve);
|
|
@@ -8764,7 +8764,7 @@ function pd(r, e, t, o = t.contentMatch, n = !0) {
|
|
|
8764
8764
|
for (let l = 0; l < i.childCount; l++) {
|
|
8765
8765
|
let d = i.child(l), c = a + d.nodeSize, p = o.matchType(d.type);
|
|
8766
8766
|
if (!p)
|
|
8767
|
-
s.push(new je(a, c,
|
|
8767
|
+
s.push(new je(a, c, j.empty));
|
|
8768
8768
|
else {
|
|
8769
8769
|
o = p;
|
|
8770
8770
|
for (let u = 0; u < d.marks.length; u++)
|
|
@@ -8772,14 +8772,14 @@ function pd(r, e, t, o = t.contentMatch, n = !0) {
|
|
|
8772
8772
|
if (n && d.isText && t.whitespace != "pre") {
|
|
8773
8773
|
let u, m = /\r?\n|\r/g, h;
|
|
8774
8774
|
for (; u = m.exec(d.text); )
|
|
8775
|
-
h || (h = new
|
|
8775
|
+
h || (h = new j(N.from(t.schema.text(" ", t.allowedMarks(d.marks))), 0, 0)), s.push(new je(a + u.index, a + u.index + u[0].length, h));
|
|
8776
8776
|
}
|
|
8777
8777
|
}
|
|
8778
8778
|
a = c;
|
|
8779
8779
|
}
|
|
8780
8780
|
if (!o.validEnd) {
|
|
8781
8781
|
let l = o.fillBefore(N.empty, !0);
|
|
8782
|
-
r.replace(a, a, new
|
|
8782
|
+
r.replace(a, a, new j(l, 0, 0));
|
|
8783
8783
|
}
|
|
8784
8784
|
for (let l = s.length - 1; l >= 0; l--)
|
|
8785
8785
|
r.step(s[l]);
|
|
@@ -8805,7 +8805,7 @@ function hb(r, e, t) {
|
|
|
8805
8805
|
let u = N.empty, m = 0;
|
|
8806
8806
|
for (let h = i, f = !1; h > t; h--)
|
|
8807
8807
|
f || n.after(h + 1) < n.end(h) ? (f = !0, u = N.from(n.node(h).copy(u)), m++) : d++;
|
|
8808
|
-
r.step(new Ve(l, d, s, a, new
|
|
8808
|
+
r.step(new Ve(l, d, s, a, new j(c.append(u), p, m), c.size - p, !0));
|
|
8809
8809
|
}
|
|
8810
8810
|
function ud(r, e, t = null, o = r) {
|
|
8811
8811
|
let n = gb(r, e), i = n && fb(o, e);
|
|
@@ -8841,7 +8841,7 @@ function bb(r, e, t) {
|
|
|
8841
8841
|
o = N.from(t[s].type.create(t[s].attrs, o));
|
|
8842
8842
|
}
|
|
8843
8843
|
let n = e.start, i = e.end;
|
|
8844
|
-
r.step(new Ve(n, i, n, i, new
|
|
8844
|
+
r.step(new Ve(n, i, n, i, new j(o, 0, 0), t.length, !0));
|
|
8845
8845
|
}
|
|
8846
8846
|
function yb(r, e, t, o, n) {
|
|
8847
8847
|
if (!o.isTextblock)
|
|
@@ -8857,7 +8857,7 @@ function yb(r, e, t, o, n) {
|
|
|
8857
8857
|
}
|
|
8858
8858
|
d === !1 && Dm(r, s, a, i), pd(r, r.mapping.slice(i).map(a, 1), o, void 0, d === null);
|
|
8859
8859
|
let c = r.mapping.slice(i), p = c.map(a, 1), u = c.map(a + s.nodeSize, 1);
|
|
8860
|
-
return r.step(new Ve(p, u, p + 1, u - 1, new
|
|
8860
|
+
return r.step(new Ve(p, u, p + 1, u - 1, new j(N.from(o.create(l, null, s.marks)), 0, 0), 1, !0)), d === !0 && Im(r, s, a, i), !1;
|
|
8861
8861
|
}
|
|
8862
8862
|
});
|
|
8863
8863
|
}
|
|
@@ -8895,7 +8895,7 @@ function vb(r, e, t, o, n) {
|
|
|
8895
8895
|
return r.replaceWith(e, e + i.nodeSize, s);
|
|
8896
8896
|
if (!t.validContent(i.content))
|
|
8897
8897
|
throw new RangeError("Invalid content for node type " + t.name);
|
|
8898
|
-
r.step(new Ve(e, e + i.nodeSize, e + 1, e + i.nodeSize - 1, new
|
|
8898
|
+
r.step(new Ve(e, e + i.nodeSize, e + 1, e + i.nodeSize - 1, new j(N.from(s), 0, 0), 1, !0));
|
|
8899
8899
|
}
|
|
8900
8900
|
function cr(r, e, t = 1, o) {
|
|
8901
8901
|
let n = r.resolve(e), i = n.depth - t, s = o && o[o.length - 1] || n.parent;
|
|
@@ -8921,7 +8921,7 @@ function xb(r, e, t = 1, o) {
|
|
|
8921
8921
|
let c = o && o[d];
|
|
8922
8922
|
s = N.from(c ? c.type.create(c.attrs, s) : n.node(a).copy(s));
|
|
8923
8923
|
}
|
|
8924
|
-
r.step(new je(e, e, new
|
|
8924
|
+
r.step(new je(e, e, new j(i.append(s), t, t), !0));
|
|
8925
8925
|
}
|
|
8926
8926
|
function Fr(r, e) {
|
|
8927
8927
|
let t = r.resolve(e), o = t.index();
|
|
@@ -8964,7 +8964,7 @@ function Sb(r, e, t) {
|
|
|
8964
8964
|
}
|
|
8965
8965
|
s.inlineContent && pd(r, e + t - 1, s, i.node().contentMatchAt(i.index()), o == null);
|
|
8966
8966
|
let l = r.mapping.slice(a), d = l.map(e - t);
|
|
8967
|
-
if (r.step(new je(d, l.map(e + t, -1),
|
|
8967
|
+
if (r.step(new je(d, l.map(e + t, -1), j.empty, !0)), o === !0) {
|
|
8968
8968
|
let c = r.doc.resolve(d);
|
|
8969
8969
|
Im(r, c.node(), c.before(), r.steps.length);
|
|
8970
8970
|
}
|
|
@@ -9013,7 +9013,7 @@ function $m(r, e, t) {
|
|
|
9013
9013
|
}
|
|
9014
9014
|
return null;
|
|
9015
9015
|
}
|
|
9016
|
-
function ia(r, e, t = e, o =
|
|
9016
|
+
function ia(r, e, t = e, o = j.empty) {
|
|
9017
9017
|
if (e == t && !o.size)
|
|
9018
9018
|
return null;
|
|
9019
9019
|
let n = r.resolve(e), i = r.resolve(t);
|
|
@@ -9049,7 +9049,7 @@ class Eb {
|
|
|
9049
9049
|
let i = this.placed, s = o.depth, a = n.depth;
|
|
9050
9050
|
for (; s && a && i.childCount == 1; )
|
|
9051
9051
|
i = i.firstChild.content, s--, a--;
|
|
9052
|
-
let l = new
|
|
9052
|
+
let l = new j(i, s, a);
|
|
9053
9053
|
return e > -1 ? new Ve(o.pos, e, this.$to.pos, this.$to.end(), l, t) : l.size || o.pos != this.$to.pos ? new je(o.pos, n.pos, l) : null;
|
|
9054
9054
|
}
|
|
9055
9055
|
// Find a position on the start spine of `this.unplaced` that has
|
|
@@ -9083,15 +9083,15 @@ class Eb {
|
|
|
9083
9083
|
}
|
|
9084
9084
|
openMore() {
|
|
9085
9085
|
let { content: e, openStart: t, openEnd: o } = this.unplaced, n = Ba(e, t);
|
|
9086
|
-
return !n.childCount || n.firstChild.isLeaf ? !1 : (this.unplaced = new
|
|
9086
|
+
return !n.childCount || n.firstChild.isLeaf ? !1 : (this.unplaced = new j(e, t + 1, Math.max(o, n.size + t >= e.size - o ? t + 1 : 0)), !0);
|
|
9087
9087
|
}
|
|
9088
9088
|
dropNode() {
|
|
9089
9089
|
let { content: e, openStart: t, openEnd: o } = this.unplaced, n = Ba(e, t);
|
|
9090
9090
|
if (n.childCount <= 1 && t > 0) {
|
|
9091
9091
|
let i = e.size - t <= t + n.size;
|
|
9092
|
-
this.unplaced = new
|
|
9092
|
+
this.unplaced = new j(fn(e, t - 1, 1), t - 1, i ? t - 1 : o);
|
|
9093
9093
|
} else
|
|
9094
|
-
this.unplaced = new
|
|
9094
|
+
this.unplaced = new j(fn(e, t, 1), t, o);
|
|
9095
9095
|
}
|
|
9096
9096
|
// Move content from the unplaced slice at `sliceDepth` to the
|
|
9097
9097
|
// frontier node at `frontierDepth`. Close that frontier node when
|
|
@@ -9121,7 +9121,7 @@ class Eb {
|
|
|
9121
9121
|
let w = b.lastChild;
|
|
9122
9122
|
this.frontier.push({ type: w.type, match: w.contentMatchAt(w.childCount) }), b = w.content;
|
|
9123
9123
|
}
|
|
9124
|
-
this.unplaced = h ? e == 0 ?
|
|
9124
|
+
this.unplaced = h ? e == 0 ? j.empty : new j(fn(s.content, e - 1, 1), e - 1, m < 0 ? s.openEnd : e - 1) : new j(fn(s.content, e, d), s.openStart, s.openEnd);
|
|
9125
9125
|
}
|
|
9126
9126
|
mustMoveInline() {
|
|
9127
9127
|
if (!this.$to.parent.isTextblock)
|
|
@@ -9240,7 +9240,7 @@ function Ob(r, e, t, o) {
|
|
|
9240
9240
|
b < 0 && (w = !1, b = -b);
|
|
9241
9241
|
let E = n.node(b - 1), C = n.index(b - 1);
|
|
9242
9242
|
if (E.canReplaceWith(C, C, h.type, h.marks))
|
|
9243
|
-
return r.replace(n.before(b), w ? i.after(b) : t, new
|
|
9243
|
+
return r.replace(n.before(b), w ? i.after(b) : t, new j(Fm(o.content, 0, o.openStart, m), m, o.openEnd));
|
|
9244
9244
|
}
|
|
9245
9245
|
}
|
|
9246
9246
|
let p = r.steps.length;
|
|
@@ -9265,7 +9265,7 @@ function Pb(r, e, t, o) {
|
|
|
9265
9265
|
let n = Cb(r.doc, e, o.type);
|
|
9266
9266
|
n != null && (e = t = n);
|
|
9267
9267
|
}
|
|
9268
|
-
r.replaceRange(e, t, new
|
|
9268
|
+
r.replaceRange(e, t, new j(N.from(o), 0, 0));
|
|
9269
9269
|
}
|
|
9270
9270
|
function Ab(r, e, t) {
|
|
9271
9271
|
let o = r.doc.resolve(e), n = r.doc.resolve(t), i = jm(o, n);
|
|
@@ -9307,7 +9307,7 @@ class zo extends nt {
|
|
|
9307
9307
|
o[i] = t.attrs[i];
|
|
9308
9308
|
o[this.attr] = this.value;
|
|
9309
9309
|
let n = t.type.create(o, null, t.marks);
|
|
9310
|
-
return Re.fromReplace(e, this.pos, this.pos + 1, new
|
|
9310
|
+
return Re.fromReplace(e, this.pos, this.pos + 1, new j(N.from(n), 0, t.isLeaf ? 0 : 1));
|
|
9311
9311
|
}
|
|
9312
9312
|
getMap() {
|
|
9313
9313
|
return yt.empty;
|
|
@@ -9420,7 +9420,7 @@ class Hm {
|
|
|
9420
9420
|
Replace the part of the document between `from` and `to` with the
|
|
9421
9421
|
given `slice`.
|
|
9422
9422
|
*/
|
|
9423
|
-
replace(e, t = e, o =
|
|
9423
|
+
replace(e, t = e, o = j.empty) {
|
|
9424
9424
|
let n = ia(this.doc, e, t, o);
|
|
9425
9425
|
return n && this.step(n), this;
|
|
9426
9426
|
}
|
|
@@ -9429,13 +9429,13 @@ class Hm {
|
|
|
9429
9429
|
fragment, node, or array of nodes.
|
|
9430
9430
|
*/
|
|
9431
9431
|
replaceWith(e, t, o) {
|
|
9432
|
-
return this.replace(e, t, new
|
|
9432
|
+
return this.replace(e, t, new j(N.from(o), 0, 0));
|
|
9433
9433
|
}
|
|
9434
9434
|
/**
|
|
9435
9435
|
Delete the content between the given positions.
|
|
9436
9436
|
*/
|
|
9437
9437
|
delete(e, t) {
|
|
9438
|
-
return this.replace(e, t,
|
|
9438
|
+
return this.replace(e, t, j.empty);
|
|
9439
9439
|
}
|
|
9440
9440
|
/**
|
|
9441
9441
|
Insert the given content at the given position.
|
|
@@ -9663,14 +9663,14 @@ class Q {
|
|
|
9663
9663
|
Replace the selection with a slice or, if no slice is given,
|
|
9664
9664
|
delete the selection. Will append to the given transaction.
|
|
9665
9665
|
*/
|
|
9666
|
-
replace(e, t =
|
|
9666
|
+
replace(e, t = j.empty) {
|
|
9667
9667
|
let o = t.content.lastChild, n = null;
|
|
9668
9668
|
for (let a = 0; a < t.openEnd; a++)
|
|
9669
9669
|
n = o, o = o.lastChild;
|
|
9670
9670
|
let i = e.steps.length, s = this.ranges;
|
|
9671
9671
|
for (let a = 0; a < s.length; a++) {
|
|
9672
9672
|
let { $from: l, $to: d } = s[a], c = e.mapping.slice(i);
|
|
9673
|
-
e.replaceRange(c.map(l.pos), c.map(d.pos), a ?
|
|
9673
|
+
e.replaceRange(c.map(l.pos), c.map(d.pos), a ? j.empty : t), a == 0 && zc(e, i, (o ? o.isInline : n && n.isTextblock) ? -1 : 1);
|
|
9674
9674
|
}
|
|
9675
9675
|
}
|
|
9676
9676
|
/**
|
|
@@ -9796,8 +9796,8 @@ class J extends Q {
|
|
|
9796
9796
|
let n = e.resolve(t.map(this.anchor));
|
|
9797
9797
|
return new J(n.parent.inlineContent ? n : o, o);
|
|
9798
9798
|
}
|
|
9799
|
-
replace(e, t =
|
|
9800
|
-
if (super.replace(e, t), t ==
|
|
9799
|
+
replace(e, t = j.empty) {
|
|
9800
|
+
if (super.replace(e, t), t == j.empty) {
|
|
9801
9801
|
let o = this.$from.marksAcross(this.$to);
|
|
9802
9802
|
o && e.ensureMarks(o);
|
|
9803
9803
|
}
|
|
@@ -9872,7 +9872,7 @@ class K extends Q {
|
|
|
9872
9872
|
return o ? Q.near(i) : new K(i);
|
|
9873
9873
|
}
|
|
9874
9874
|
content() {
|
|
9875
|
-
return new
|
|
9875
|
+
return new j(N.from(this.node), 0, 0);
|
|
9876
9876
|
}
|
|
9877
9877
|
eq(e) {
|
|
9878
9878
|
return e instanceof K && e.anchor == this.anchor;
|
|
@@ -9927,8 +9927,8 @@ class vt extends Q {
|
|
|
9927
9927
|
constructor(e) {
|
|
9928
9928
|
super(e.resolve(0), e.resolve(e.content.size));
|
|
9929
9929
|
}
|
|
9930
|
-
replace(e, t =
|
|
9931
|
-
if (t ==
|
|
9930
|
+
replace(e, t = j.empty) {
|
|
9931
|
+
if (t == j.empty) {
|
|
9932
9932
|
e.delete(0, e.doc.content.size);
|
|
9933
9933
|
let o = Q.atStart(e.doc);
|
|
9934
9934
|
o.eq(e.selection) || e.setSelection(o);
|
|
@@ -10514,9 +10514,9 @@ function jb(r, e, t) {
|
|
|
10514
10514
|
return { node: o.startContainer, offset: Math.min(Ot(o.startContainer), o.startOffset) };
|
|
10515
10515
|
}
|
|
10516
10516
|
}
|
|
10517
|
-
const Yt = typeof navigator < "u" ? navigator : null, Uc = typeof document < "u" ? document : null, jr = Yt && Yt.userAgent || "", kl = /Edge\/(\d+)/.exec(jr),
|
|
10517
|
+
const Yt = typeof navigator < "u" ? navigator : null, Uc = typeof document < "u" ? document : null, jr = Yt && Yt.userAgent || "", kl = /Edge\/(\d+)/.exec(jr), qm = /MSIE \d/.exec(jr), Sl = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(jr), ht = !!(qm || Sl || kl), Ir = qm ? document.documentMode : Sl ? +Sl[1] : kl ? +kl[1] : 0, zt = !ht && /gecko\/(\d+)/i.test(jr);
|
|
10518
10518
|
zt && +(/Firefox\/(\d+)/.exec(jr) || [0, 0])[1];
|
|
10519
|
-
const Cl = !ht && /Chrome\/(\d+)/.exec(jr), rt = !!Cl,
|
|
10519
|
+
const Cl = !ht && /Chrome\/(\d+)/.exec(jr), rt = !!Cl, Wm = Cl ? +Cl[1] : 0, lt = !ht && !!Yt && /Apple Computer/.test(Yt.vendor), Ho = lt && (/Mobile\/\w+/.test(jr) || !!Yt && Yt.maxTouchPoints > 2), Tt = Ho || (Yt ? /Mac/.test(Yt.platform) : !1), Hb = Yt ? /Win/.test(Yt.platform) : !1, lr = /Android \d/.test(jr), ci = !!Uc && "webkitFontSmoothing" in Uc.documentElement.style, Vb = ci ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
|
|
10520
10520
|
function Ub(r) {
|
|
10521
10521
|
let e = r.defaultView && r.defaultView.visualViewport;
|
|
10522
10522
|
return e ? {
|
|
@@ -10534,7 +10534,7 @@ function Ub(r) {
|
|
|
10534
10534
|
function rr(r, e) {
|
|
10535
10535
|
return typeof r == "number" ? r : r[e];
|
|
10536
10536
|
}
|
|
10537
|
-
function
|
|
10537
|
+
function qb(r) {
|
|
10538
10538
|
let e = r.getBoundingClientRect(), t = e.width / r.offsetWidth || 1, o = e.height / r.offsetHeight || 1;
|
|
10539
10539
|
return {
|
|
10540
10540
|
left: e.left,
|
|
@@ -10543,14 +10543,14 @@ function Wb(r) {
|
|
|
10543
10543
|
bottom: e.top + r.clientHeight * o
|
|
10544
10544
|
};
|
|
10545
10545
|
}
|
|
10546
|
-
function
|
|
10546
|
+
function qc(r, e, t) {
|
|
10547
10547
|
let o = r.someProp("scrollThreshold") || 0, n = r.someProp("scrollMargin") || 5, i = r.dom.ownerDocument;
|
|
10548
10548
|
for (let s = t || r.dom; s; ) {
|
|
10549
10549
|
if (s.nodeType != 1) {
|
|
10550
10550
|
s = jo(s);
|
|
10551
10551
|
continue;
|
|
10552
10552
|
}
|
|
10553
|
-
let a = s, l = a == i.body, d = l ? Ub(i) :
|
|
10553
|
+
let a = s, l = a == i.body, d = l ? Ub(i) : qb(a), c = 0, p = 0;
|
|
10554
10554
|
if (e.top < d.top + rr(o, "top") ? p = -(d.top - e.top + rr(n, "top")) : e.bottom > d.bottom - rr(o, "bottom") && (p = e.bottom - e.top > d.bottom - d.top ? e.top + rr(n, "top") - d.top : e.bottom - d.bottom + rr(n, "bottom")), e.left < d.left + rr(o, "left") ? c = -(d.left - e.left + rr(n, "left")) : e.right > d.right - rr(o, "right") && (c = e.right - d.right + rr(n, "right")), c || p)
|
|
10555
10555
|
if (l)
|
|
10556
10556
|
i.defaultView.scrollBy(c, p);
|
|
@@ -10566,7 +10566,7 @@ function Wc(r, e, t) {
|
|
|
10566
10566
|
s = u == "absolute" ? s.offsetParent : jo(s);
|
|
10567
10567
|
}
|
|
10568
10568
|
}
|
|
10569
|
-
function
|
|
10569
|
+
function Wb(r) {
|
|
10570
10570
|
let e = r.dom.getBoundingClientRect(), t = Math.max(0, e.top), o, n;
|
|
10571
10571
|
for (let i = (e.left + e.right) / 2, s = t + 1; s < Math.min(innerHeight, e.bottom); s += 5) {
|
|
10572
10572
|
let a = r.root.elementFromPoint(i, s);
|
|
@@ -10717,17 +10717,17 @@ function Zb(r, e) {
|
|
|
10717
10717
|
let l = r.docView.nearestDesc(s, !0);
|
|
10718
10718
|
return { pos: a, inside: l ? l.posAtStart - l.border : -1 };
|
|
10719
10719
|
}
|
|
10720
|
-
function
|
|
10720
|
+
function Wc(r) {
|
|
10721
10721
|
return r.top < r.bottom || r.left < r.right;
|
|
10722
10722
|
}
|
|
10723
10723
|
function yr(r, e) {
|
|
10724
10724
|
let t = r.getClientRects();
|
|
10725
10725
|
if (t.length) {
|
|
10726
10726
|
let o = t[e < 0 ? 0 : t.length - 1];
|
|
10727
|
-
if (
|
|
10727
|
+
if (Wc(o))
|
|
10728
10728
|
return o;
|
|
10729
10729
|
}
|
|
10730
|
-
return Array.prototype.find.call(t,
|
|
10730
|
+
return Array.prototype.find.call(t, Wc) || r.getBoundingClientRect();
|
|
10731
10731
|
}
|
|
10732
10732
|
const ey = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;
|
|
10733
10733
|
function Xm(r, e, t) {
|
|
@@ -11924,7 +11924,7 @@ function pr(r, e = !1) {
|
|
|
11924
11924
|
r.domObserver.setCurSelection(), r.domObserver.connectSelection();
|
|
11925
11925
|
}
|
|
11926
11926
|
}
|
|
11927
|
-
const Zc = lt || rt &&
|
|
11927
|
+
const Zc = lt || rt && Wm < 63;
|
|
11928
11928
|
function ep(r, e) {
|
|
11929
11929
|
let { node: t, offset: o } = r.docView.domFromPos(e, 0), n = o < t.childNodes.length ? t.childNodes[o] : null, i = o ? t.childNodes[o - 1] : null;
|
|
11930
11930
|
if (lt && n && n.contentEditable == "false")
|
|
@@ -12278,8 +12278,8 @@ function lh(r, e, t, o, n) {
|
|
|
12278
12278
|
if (r.someProp("transformPastedText", (u) => {
|
|
12279
12279
|
e = u(e, i || o, r);
|
|
12280
12280
|
}), i)
|
|
12281
|
-
return e ? new
|
|
12282
|
-
`))), 0, 0) :
|
|
12281
|
+
return e ? new j(N.from(r.state.schema.text(e.replace(/\r\n?/g, `
|
|
12282
|
+
`))), 0, 0) : j.empty;
|
|
12283
12283
|
let p = r.someProp("clipboardTextParser", (u) => u(e, n, o, r));
|
|
12284
12284
|
if (p)
|
|
12285
12285
|
a = p;
|
|
@@ -12312,7 +12312,7 @@ function lh(r, e, t, o, n) {
|
|
|
12312
12312
|
}
|
|
12313
12313
|
})), c)
|
|
12314
12314
|
a = Py(dp(a, +c[1], +c[2]), c[4]);
|
|
12315
|
-
else if (a =
|
|
12315
|
+
else if (a = j.maxOpen(Ey(a.content, n), !0), a.openStart || a.openEnd) {
|
|
12316
12316
|
let p = 0, u = 0;
|
|
12317
12317
|
for (let m = a.content.firstChild; p < a.openStart && !m.type.spec.isolating; p++, m = m.firstChild)
|
|
12318
12318
|
;
|
|
@@ -12373,7 +12373,7 @@ function Pl(r, e, t, o, n, i) {
|
|
|
12373
12373
|
return r.childCount > 1 && (i = 0), n < o - 1 && (a = Pl(a, e, t, o, n + 1, i)), n >= t && (a = e < 0 ? s.contentMatchAt(0).fillBefore(a, i <= n).append(a) : a.append(s.contentMatchAt(s.childCount).fillBefore(N.empty, !0))), r.replaceChild(e < 0 ? 0 : r.childCount - 1, s.copy(a));
|
|
12374
12374
|
}
|
|
12375
12375
|
function dp(r, e, t) {
|
|
12376
|
-
return e < r.openStart && (r = new
|
|
12376
|
+
return e < r.openStart && (r = new j(Pl(r.content, -1, e, r.openStart, 0, r.openEnd), e, r.openEnd)), t < r.openEnd && (r = new j(Pl(r.content, 1, t, r.openEnd, 0, 0), r.openStart, t)), r;
|
|
12377
12377
|
}
|
|
12378
12378
|
const uh = {
|
|
12379
12379
|
thead: ["table"],
|
|
@@ -12427,7 +12427,7 @@ function Py(r, e) {
|
|
|
12427
12427
|
break;
|
|
12428
12428
|
n = N.from(l.create(o[a + 1], n)), i++, s++;
|
|
12429
12429
|
}
|
|
12430
|
-
return new
|
|
12430
|
+
return new j(n, i, s);
|
|
12431
12431
|
}
|
|
12432
12432
|
const dt = {}, ct = {}, Ay = { touchstart: !0, touchmove: !0 };
|
|
12433
12433
|
class By {
|
|
@@ -12675,10 +12675,10 @@ function fh(r, e) {
|
|
|
12675
12675
|
clearTimeout(r.input.composingTimeout), e > -1 && (r.input.composingTimeout = setTimeout(() => ms(r), e));
|
|
12676
12676
|
}
|
|
12677
12677
|
function bh(r) {
|
|
12678
|
-
for (r.composing && (r.input.composing = !1, r.input.compositionEndedAt =
|
|
12678
|
+
for (r.composing && (r.input.composing = !1, r.input.compositionEndedAt = Wy()); r.input.compositionNodes.length > 0; )
|
|
12679
12679
|
r.input.compositionNodes.pop().markParentsDirty();
|
|
12680
12680
|
}
|
|
12681
|
-
function
|
|
12681
|
+
function qy(r) {
|
|
12682
12682
|
let e = r.domSelectionRange();
|
|
12683
12683
|
if (!e.focusNode)
|
|
12684
12684
|
return null;
|
|
@@ -12697,7 +12697,7 @@ function Wy(r) {
|
|
|
12697
12697
|
}
|
|
12698
12698
|
return t || o;
|
|
12699
12699
|
}
|
|
12700
|
-
function
|
|
12700
|
+
function Wy() {
|
|
12701
12701
|
let r = document.createEvent("Event");
|
|
12702
12702
|
return r.initEvent("event", !0, !0), r.timeStamp;
|
|
12703
12703
|
}
|
|
@@ -12743,7 +12743,7 @@ function Jy(r, e) {
|
|
|
12743
12743
|
}
|
|
12744
12744
|
function Vn(r, e, t, o, n) {
|
|
12745
12745
|
let i = lh(r, e, t, o, r.state.selection.$from);
|
|
12746
|
-
if (r.someProp("handlePaste", (l) => l(r, n, i ||
|
|
12746
|
+
if (r.someProp("handlePaste", (l) => l(r, n, i || j.empty)))
|
|
12747
12747
|
return !0;
|
|
12748
12748
|
if (!i)
|
|
12749
12749
|
return !1;
|
|
@@ -12788,7 +12788,7 @@ dt.dragstart = (r, e) => {
|
|
|
12788
12788
|
}
|
|
12789
12789
|
}
|
|
12790
12790
|
let a = (s || r.state.selection).content(), { dom: l, text: d, slice: c } = bd(r, a);
|
|
12791
|
-
(!t.dataTransfer.files.length || !rt ||
|
|
12791
|
+
(!t.dataTransfer.files.length || !rt || Wm > 120) && t.dataTransfer.clearData(), t.dataTransfer.setData(Hn ? "Text" : "text/html", l.innerHTML), t.dataTransfer.effectAllowed = "copyMove", Hn || t.dataTransfer.setData("text/plain", d), r.dragging = new wh(c, vh(r, t), s);
|
|
12792
12792
|
};
|
|
12793
12793
|
dt.dragend = (r) => {
|
|
12794
12794
|
let e = r.dragging;
|
|
@@ -12809,7 +12809,7 @@ ct.drop = (r, e) => {
|
|
|
12809
12809
|
s = h(s, r);
|
|
12810
12810
|
}) : s = lh(r, yh(t.dataTransfer), Hn ? null : t.dataTransfer.getData("text/html"), !1, i);
|
|
12811
12811
|
let a = !!(o && vh(r, t));
|
|
12812
|
-
if (r.someProp("handleDrop", (h) => h(r, t, s ||
|
|
12812
|
+
if (r.someProp("handleDrop", (h) => h(r, t, s || j.empty, a))) {
|
|
12813
12813
|
t.preventDefault();
|
|
12814
12814
|
return;
|
|
12815
12815
|
}
|
|
@@ -13655,15 +13655,15 @@ function dw(r, e, t, o, n) {
|
|
|
13655
13655
|
return _(r, Xr(13, "Enter"));
|
|
13656
13656
|
});
|
|
13657
13657
|
}, 20));
|
|
13658
|
-
let y = h.start, M = h.endA, k, A,
|
|
13658
|
+
let y = h.start, M = h.endA, k, A, H;
|
|
13659
13659
|
if (E) {
|
|
13660
13660
|
if (f.pos == b.pos)
|
|
13661
13661
|
ht && Ir <= 11 && f.parentOffset == 0 && (r.domObserver.suppressSelectionUpdates(), setTimeout(() => pr(r), 20)), k = r.state.tr.delete(y, M), A = c.resolve(h.start).marksAcross(c.resolve(h.endA));
|
|
13662
13662
|
else if (
|
|
13663
13663
|
// Adding or removing a mark
|
|
13664
|
-
h.endA == h.endB && (
|
|
13664
|
+
h.endA == h.endB && (H = cw(f.parent.content.cut(f.parentOffset, b.parentOffset), w.parent.content.cut(w.parentOffset, h.endA - w.start())))
|
|
13665
13665
|
)
|
|
13666
|
-
k = r.state.tr,
|
|
13666
|
+
k = r.state.tr, H.type == "add" ? k.addMark(y, M, H.mark) : k.removeMark(y, M, H.mark);
|
|
13667
13667
|
else if (f.parent.child(f.index()).isText && f.index() == b.index() - (b.textOffset ? 0 : 1)) {
|
|
13668
13668
|
let _ = f.parent.textBetween(f.parentOffset, b.parentOffset);
|
|
13669
13669
|
if (r.someProp("handleTextInput", (P) => P(r, y, M, _)))
|
|
@@ -13824,13 +13824,13 @@ class mw {
|
|
|
13824
13824
|
(a || t.handleDOMEvents != this._props.handleDOMEvents) && Al(this), this.editable = wp(this), yp(this);
|
|
13825
13825
|
let l = _a(this), d = bp(this), c = n.plugins != e.plugins && !n.doc.eq(e.doc) ? "reset" : e.scrollToSelection > n.scrollToSelection ? "to selection" : "preserve", p = i || !this.docView.matchesNode(e.doc, d, l);
|
|
13826
13826
|
(p || !e.selection.eq(n.selection)) && (s = !0);
|
|
13827
|
-
let u = c == "preserve" && s && this.dom.style.overflowAnchor == null &&
|
|
13827
|
+
let u = c == "preserve" && s && this.dom.style.overflowAnchor == null && Wb(this);
|
|
13828
13828
|
if (s) {
|
|
13829
13829
|
this.domObserver.stop();
|
|
13830
13830
|
let m = p && (ht || rt) && !this.composing && !n.selection.empty && !e.selection.empty && hw(n.selection, e.selection);
|
|
13831
13831
|
if (p) {
|
|
13832
13832
|
let h = rt ? this.trackWrites = this.domSelectionRange().focusNode : null;
|
|
13833
|
-
this.composing && (this.input.compositionNode =
|
|
13833
|
+
this.composing && (this.input.compositionNode = qy(this)), (i || !this.docView.update(e.doc, d, l, this)) && (this.docView.updateOuterDeco(d), this.docView.destroy(), this.docView = Xc(e.doc, d, l, this.dom, this)), h && !this.trackWrites && (m = !0);
|
|
13834
13834
|
}
|
|
13835
13835
|
m || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && fy(this)) ? pr(this, m) : (ih(this, e.selection), this.domObserver.setCurSelection()), this.domObserver.start();
|
|
13836
13836
|
}
|
|
@@ -13844,9 +13844,9 @@ class mw {
|
|
|
13844
13844
|
if (!(!e || !this.dom.contains(e.nodeType == 1 ? e : e.parentNode))) {
|
|
13845
13845
|
if (!this.someProp("handleScrollToSelection", (t) => t(this))) if (this.state.selection instanceof K) {
|
|
13846
13846
|
let t = this.docView.domAfterPos(this.state.selection.from);
|
|
13847
|
-
t.nodeType == 1 &&
|
|
13847
|
+
t.nodeType == 1 && qc(this, t.getBoundingClientRect(), e);
|
|
13848
13848
|
} else
|
|
13849
|
-
|
|
13849
|
+
qc(this, this.coordsAtPos(this.state.selection.head, 1), e);
|
|
13850
13850
|
}
|
|
13851
13851
|
}
|
|
13852
13852
|
destroyPluginViews() {
|
|
@@ -14303,7 +14303,7 @@ const Mh = (r, e, t) => {
|
|
|
14303
14303
|
return !0;
|
|
14304
14304
|
if (o.parent.content.size == 0 && (Vo(i, "end") || K.isSelectable(i)))
|
|
14305
14305
|
for (let s = o.depth; ; s--) {
|
|
14306
|
-
let a = ia(r.doc, o.before(s), o.after(s),
|
|
14306
|
+
let a = ia(r.doc, o.before(s), o.after(s), j.empty);
|
|
14307
14307
|
if (a && a.slice.size < a.to - a.from) {
|
|
14308
14308
|
if (e) {
|
|
14309
14309
|
let l = r.tr.step(a);
|
|
@@ -14347,7 +14347,7 @@ function Th(r, e, t) {
|
|
|
14347
14347
|
return !1;
|
|
14348
14348
|
a = c;
|
|
14349
14349
|
}
|
|
14350
|
-
let d = ia(r.doc, i, l,
|
|
14350
|
+
let d = ia(r.doc, i, l, j.empty);
|
|
14351
14351
|
if (!d || d.from != i || d instanceof je && d.slice.size >= l - i)
|
|
14352
14352
|
return !1;
|
|
14353
14353
|
if (t) {
|
|
@@ -14402,7 +14402,7 @@ const Ah = (r, e, t) => {
|
|
|
14402
14402
|
if (Dh(r, n, e, 1))
|
|
14403
14403
|
return !0;
|
|
14404
14404
|
if (o.parent.content.size == 0 && (Vo(i, "start") || K.isSelectable(i))) {
|
|
14405
|
-
let s = ia(r.doc, o.before(), o.after(),
|
|
14405
|
+
let s = ia(r.doc, o.before(), o.after(), j.empty);
|
|
14406
14406
|
if (s && s.slice.size < s.to - s.from) {
|
|
14407
14407
|
if (e) {
|
|
14408
14408
|
let a = r.tr.step(s);
|
|
@@ -14557,7 +14557,7 @@ function Dh(r, e, t, o) {
|
|
|
14557
14557
|
for (let w = s.length - 1; w >= 0; w--)
|
|
14558
14558
|
h = N.from(s[w].create(null, h));
|
|
14559
14559
|
h = N.from(n.copy(h));
|
|
14560
|
-
let f = r.tr.step(new Ve(e.pos - 1, m, e.pos, m, new
|
|
14560
|
+
let f = r.tr.step(new Ve(e.pos - 1, m, e.pos, m, new j(h, 1, 0), s.length, !0)), b = f.doc.resolve(m + 2 * s.length);
|
|
14561
14561
|
b.nodeAfter && b.nodeAfter.type == n.type && Fr(f.doc, b.pos) && f.join(b.pos), t(f.scrollIntoView());
|
|
14562
14562
|
}
|
|
14563
14563
|
return !0;
|
|
@@ -14577,7 +14577,7 @@ function Dh(r, e, t, o) {
|
|
|
14577
14577
|
let w = N.empty;
|
|
14578
14578
|
for (let C = h.length - 1; C >= 0; C--)
|
|
14579
14579
|
w = N.from(h[C].copy(w));
|
|
14580
|
-
let E = r.tr.step(new Ve(e.pos - h.length, e.pos + i.nodeSize, e.pos + b, e.pos + i.nodeSize - b, new
|
|
14580
|
+
let E = r.tr.step(new Ve(e.pos - h.length, e.pos + i.nodeSize, e.pos + b, e.pos + i.nodeSize - b, new j(w, h.length, 0), 0, !0));
|
|
14581
14581
|
t(E.scrollIntoView());
|
|
14582
14582
|
}
|
|
14583
14583
|
return !0;
|
|
@@ -14669,7 +14669,7 @@ function _w(r, e, t, o, n) {
|
|
|
14669
14669
|
let i = N.empty;
|
|
14670
14670
|
for (let c = t.length - 1; c >= 0; c--)
|
|
14671
14671
|
i = N.from(t[c].type.create(t[c].attrs, i));
|
|
14672
|
-
r.step(new Ve(e.start - (o ? 2 : 0), e.end, e.start, e.end, new
|
|
14672
|
+
r.step(new Ve(e.start - (o ? 2 : 0), e.end, e.start, e.end, new j(i, 0, 0), t.length, !0));
|
|
14673
14673
|
let s = 0;
|
|
14674
14674
|
for (let c = 0; c < t.length; c++)
|
|
14675
14675
|
t[c].type == n && (s = c + 1);
|
|
@@ -14686,7 +14686,7 @@ function Fw(r) {
|
|
|
14686
14686
|
}
|
|
14687
14687
|
function jw(r, e, t, o) {
|
|
14688
14688
|
let n = r.tr, i = o.end, s = o.$to.end(o.depth);
|
|
14689
|
-
i < s && (n.step(new Ve(i - 1, s, i, s, new
|
|
14689
|
+
i < s && (n.step(new Ve(i - 1, s, i, s, new j(N.from(t.create(null, o.parent.copy())), 1, 0), 1, !0)), o = new ds(n.doc.resolve(o.$from.pos), n.doc.resolve(s), o.depth));
|
|
14690
14690
|
const a = Qo(o);
|
|
14691
14691
|
if (a == null)
|
|
14692
14692
|
return !1;
|
|
@@ -14705,7 +14705,7 @@ function Hw(r, e, t) {
|
|
|
14705
14705
|
if (!d.canReplace(c + (a ? 0 : 1), c + 1, s.content.append(l ? N.empty : N.from(n))))
|
|
14706
14706
|
return !1;
|
|
14707
14707
|
let p = i.pos, u = p + s.nodeSize;
|
|
14708
|
-
return o.step(new Ve(p - (a ? 1 : 0), u + (l ? 1 : 0), p + 1, u - 1, new
|
|
14708
|
+
return o.step(new Ve(p - (a ? 1 : 0), u + (l ? 1 : 0), p + 1, u - 1, new j((a ? N.empty : N.from(n.copy(N.empty))).append(l ? N.empty : N.from(n.copy(N.empty))), a ? 0 : 1, l ? 0 : 1), a ? 0 : 1)), e(o.scrollIntoView()), !0;
|
|
14709
14709
|
}
|
|
14710
14710
|
function Vw(r) {
|
|
14711
14711
|
return function(e, t) {
|
|
@@ -14719,7 +14719,7 @@ function Vw(r) {
|
|
|
14719
14719
|
if (l.type != r)
|
|
14720
14720
|
return !1;
|
|
14721
14721
|
if (t) {
|
|
14722
|
-
let d = l.lastChild && l.lastChild.type == a.type, c = N.from(d ? r.create() : null), p = new
|
|
14722
|
+
let d = l.lastChild && l.lastChild.type == a.type, c = N.from(d ? r.create() : null), p = new j(N.from(r.create(null, N.from(a.type.create(null, c)))), d ? 3 : 1, 0), u = i.start, m = i.end;
|
|
14723
14723
|
t(e.tr.step(new Ve(u - (d ? 3 : 1), m, u, m, p, 1, !0)).scrollIntoView());
|
|
14724
14724
|
}
|
|
14725
14725
|
return !0;
|
|
@@ -14903,7 +14903,7 @@ function $h(r) {
|
|
|
14903
14903
|
});
|
|
14904
14904
|
}), e;
|
|
14905
14905
|
}
|
|
14906
|
-
function
|
|
14906
|
+
function qe(r, e) {
|
|
14907
14907
|
if (typeof r == "string") {
|
|
14908
14908
|
if (!e.nodes[r])
|
|
14909
14909
|
throw Error(`There is no node type named '${r}'. Maybe you forgot to add the extension?`);
|
|
@@ -14947,10 +14947,10 @@ function zh(r) {
|
|
|
14947
14947
|
function te(r, e = void 0, ...t) {
|
|
14948
14948
|
return zh(r) ? e ? r.bind(e)(...t) : r(...t) : r;
|
|
14949
14949
|
}
|
|
14950
|
-
function
|
|
14950
|
+
function qw(r = {}) {
|
|
14951
14951
|
return Object.keys(r).length === 0 && r.constructor === Object;
|
|
14952
14952
|
}
|
|
14953
|
-
function
|
|
14953
|
+
function Ww(r) {
|
|
14954
14954
|
return typeof r != "string" ? r : r.match(/^[+-]?(?:\d*\.)?\d+$/) ? Number(r) : r === "true" ? !0 : r === "false" ? !1 : r;
|
|
14955
14955
|
}
|
|
14956
14956
|
function Sp(r, e) {
|
|
@@ -14961,7 +14961,7 @@ function Sp(r, e) {
|
|
|
14961
14961
|
if (o === !1)
|
|
14962
14962
|
return !1;
|
|
14963
14963
|
const n = e.reduce((i, s) => {
|
|
14964
|
-
const a = s.attribute.parseHTML ? s.attribute.parseHTML(t) :
|
|
14964
|
+
const a = s.attribute.parseHTML ? s.attribute.parseHTML(t) : Ww(t.getAttribute(s.name));
|
|
14965
14965
|
return a == null ? i : {
|
|
14966
14966
|
...i,
|
|
14967
14967
|
[s.name]: a
|
|
@@ -14974,7 +14974,7 @@ function Sp(r, e) {
|
|
|
14974
14974
|
function Cp(r) {
|
|
14975
14975
|
return Object.fromEntries(
|
|
14976
14976
|
// @ts-ignore
|
|
14977
|
-
Object.entries(r).filter(([e, t]) => e === "attrs" &&
|
|
14977
|
+
Object.entries(r).filter(([e, t]) => e === "attrs" && qw(t) ? !1 : t != null)
|
|
14978
14978
|
);
|
|
14979
14979
|
}
|
|
14980
14980
|
function Kw(r, e) {
|
|
@@ -15395,13 +15395,13 @@ function ov(r) {
|
|
|
15395
15395
|
if (E) {
|
|
15396
15396
|
let { text: M } = w;
|
|
15397
15397
|
typeof M == "string" ? M = M : M = Od(N.from(M), m.schema);
|
|
15398
|
-
const { from: k } = w, A = k + M.length,
|
|
15398
|
+
const { from: k } = w, A = k + M.length, H = rv(M);
|
|
15399
15399
|
return l({
|
|
15400
15400
|
rule: c,
|
|
15401
15401
|
state: m,
|
|
15402
15402
|
from: k,
|
|
15403
15403
|
to: { b: A },
|
|
15404
|
-
pasteEvt:
|
|
15404
|
+
pasteEvt: H
|
|
15405
15405
|
});
|
|
15406
15406
|
}
|
|
15407
15407
|
const C = u.doc.content.findDiffStart(m.doc.content), y = u.doc.content.findDiffEnd(m.doc.content);
|
|
@@ -15541,7 +15541,7 @@ class Ro {
|
|
|
15541
15541
|
options: o.options,
|
|
15542
15542
|
storage: o.storage,
|
|
15543
15543
|
editor: e,
|
|
15544
|
-
type:
|
|
15544
|
+
type: qe(o.name, this.schema)
|
|
15545
15545
|
}, s = V(o, "addNodeView", i);
|
|
15546
15546
|
if (!s)
|
|
15547
15547
|
return [];
|
|
@@ -15705,7 +15705,7 @@ const iv = Xe.create({
|
|
|
15705
15705
|
}
|
|
15706
15706
|
return !1;
|
|
15707
15707
|
}, mv = (r) => ({ tr: e, state: t, dispatch: o }) => {
|
|
15708
|
-
const n =
|
|
15708
|
+
const n = qe(r, t.schema), i = e.selection.$anchor;
|
|
15709
15709
|
for (let s = i.depth; s > 0; s -= 1)
|
|
15710
15710
|
if (i.node(s).type === n) {
|
|
15711
15711
|
if (o) {
|
|
@@ -16003,8 +16003,8 @@ const Rv = (r) => ({ editor: e, view: t, tr: o, dispatch: n }) => {
|
|
|
16003
16003
|
c && n && o.maybeStep(c);
|
|
16004
16004
|
}), !0;
|
|
16005
16005
|
};
|
|
16006
|
-
function
|
|
16007
|
-
const { from: o, to: n, empty: i } = r.selection, s = e ?
|
|
16006
|
+
function qn(r, e, t = {}) {
|
|
16007
|
+
const { from: o, to: n, empty: i } = r.selection, s = e ? qe(e, r.schema) : null, a = [];
|
|
16008
16008
|
r.doc.nodesBetween(o, n, (p, u) => {
|
|
16009
16009
|
if (p.isText)
|
|
16010
16010
|
return;
|
|
@@ -16019,10 +16019,10 @@ function Wn(r, e, t = {}) {
|
|
|
16019
16019
|
return i ? !!d.length : d.reduce((p, u) => p + u.to - u.from, 0) >= l;
|
|
16020
16020
|
}
|
|
16021
16021
|
const $v = (r, e = {}) => ({ state: t, dispatch: o }) => {
|
|
16022
|
-
const n =
|
|
16023
|
-
return
|
|
16022
|
+
const n = qe(r, t.schema);
|
|
16023
|
+
return qn(t, n, e) ? Ow(t, o) : !1;
|
|
16024
16024
|
}, zv = () => ({ state: r, dispatch: e }) => Ih(r, e), _v = (r) => ({ state: e, dispatch: t }) => {
|
|
16025
|
-
const o =
|
|
16025
|
+
const o = qe(r, e.schema);
|
|
16026
16026
|
return Fw(o)(e, t);
|
|
16027
16027
|
}, Fv = () => ({ state: r, dispatch: e }) => Lh(r, e);
|
|
16028
16028
|
function ga(r, e) {
|
|
@@ -16035,7 +16035,7 @@ function Tp(r, e) {
|
|
|
16035
16035
|
const jv = (r, e) => ({ tr: t, state: o, dispatch: n }) => {
|
|
16036
16036
|
let i = null, s = null;
|
|
16037
16037
|
const a = ga(typeof r == "string" ? r : r.name, o.schema);
|
|
16038
|
-
return a ? (a === "node" && (i =
|
|
16038
|
+
return a ? (a === "node" && (i = qe(r, o.schema)), a === "mark" && (s = Hr(r, o.schema)), n && t.selection.ranges.forEach((l) => {
|
|
16039
16039
|
o.doc.nodesBetween(l.$from.pos, l.$to.pos, (d, c) => {
|
|
16040
16040
|
i && i === d.type && t.setNodeMarkup(c, void 0, Tp(d.attrs, e)), s && d.marks.length && d.marks.forEach((p) => {
|
|
16041
16041
|
s === p.type && t.addMark(c, c + d.nodeSize, s.create(Tp(p.attrs, e)));
|
|
@@ -16048,7 +16048,7 @@ const jv = (r, e) => ({ tr: t, state: o, dispatch: n }) => {
|
|
|
16048
16048
|
r.setSelection(t);
|
|
16049
16049
|
}
|
|
16050
16050
|
return !0;
|
|
16051
|
-
}, Uv = () => ({ state: r, dispatch: e }) => Oh(r, e),
|
|
16051
|
+
}, Uv = () => ({ state: r, dispatch: e }) => Oh(r, e), qv = () => ({ state: r, dispatch: e }) => Bh(r, e), Wv = () => ({ state: r, dispatch: e }) => Lw(r, e), Kv = () => ({ state: r, dispatch: e }) => Dw(r, e), Gv = () => ({ state: r, dispatch: e }) => Iw(r, e);
|
|
16052
16052
|
function Ll(r, e, t = {}, o = {}) {
|
|
16053
16053
|
return ys(r, e, {
|
|
16054
16054
|
slice: !1,
|
|
@@ -16118,7 +16118,7 @@ function Zv(r, e) {
|
|
|
16118
16118
|
function Id(r) {
|
|
16119
16119
|
return (e) => Zv(e.$from, r);
|
|
16120
16120
|
}
|
|
16121
|
-
function
|
|
16121
|
+
function qh(r, e) {
|
|
16122
16122
|
const t = {
|
|
16123
16123
|
from: 0,
|
|
16124
16124
|
to: r.content.size
|
|
@@ -16126,14 +16126,14 @@ function Wh(r, e) {
|
|
|
16126
16126
|
return _h(r, t, e);
|
|
16127
16127
|
}
|
|
16128
16128
|
function e2(r, e) {
|
|
16129
|
-
const t =
|
|
16129
|
+
const t = qe(e, r.schema), { from: o, to: n } = r.selection, i = [];
|
|
16130
16130
|
r.doc.nodesBetween(o, n, (a) => {
|
|
16131
16131
|
i.push(a);
|
|
16132
16132
|
});
|
|
16133
16133
|
const s = i.reverse().find((a) => a.type.name === t.name);
|
|
16134
16134
|
return s ? { ...s.attrs } : {};
|
|
16135
16135
|
}
|
|
16136
|
-
function
|
|
16136
|
+
function Wh(r, e) {
|
|
16137
16137
|
const t = ga(typeof e == "string" ? e : e.name, r.schema);
|
|
16138
16138
|
return t === "node" ? e2(r, e) : t === "mark" ? Uh(r, e) : {};
|
|
16139
16139
|
}
|
|
@@ -16224,9 +16224,9 @@ function Nl(r, e, t = {}) {
|
|
|
16224
16224
|
}
|
|
16225
16225
|
function n2(r, e, t = {}) {
|
|
16226
16226
|
if (!e)
|
|
16227
|
-
return
|
|
16227
|
+
return qn(r, null, t) || Nl(r, null, t);
|
|
16228
16228
|
const o = ga(e, r.schema);
|
|
16229
|
-
return o === "node" ?
|
|
16229
|
+
return o === "node" ? qn(r, e, t) : o === "mark" ? Nl(r, e, t) : !1;
|
|
16230
16230
|
}
|
|
16231
16231
|
function Op(r, e) {
|
|
16232
16232
|
const { nodeExtensions: t } = ua(e), o = t.find((s) => s.name === r);
|
|
@@ -16326,7 +16326,7 @@ const s2 = (r, e = {}) => ({ tr: t, state: o, dispatch: n }) => {
|
|
|
16326
16326
|
});
|
|
16327
16327
|
return i2(o, t, l);
|
|
16328
16328
|
}, a2 = (r, e) => ({ tr: t }) => (t.setMeta(r, e), !0), l2 = (r, e = {}) => ({ state: t, dispatch: o, chain: n }) => {
|
|
16329
|
-
const i =
|
|
16329
|
+
const i = qe(r, t.schema);
|
|
16330
16330
|
let s;
|
|
16331
16331
|
return t.selection.$anchor.sameParent(t.selection.$head) && (s = t.selection.$anchor.parent.attrs), i.isTextblock ? n().command(({ commands: a }) => kp(i, { ...s, ...e })(t) ? !0 : a.clearNodes()).command(({ state: a }) => kp(i, { ...s, ...e })(a, o)).run() : (console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'), !1);
|
|
16332
16332
|
}, d2 = (r) => ({ tr: e, dispatch: t }) => {
|
|
@@ -16342,7 +16342,7 @@ const s2 = (r, e = {}) => ({ tr: t, state: o, dispatch: n }) => {
|
|
|
16342
16342
|
}
|
|
16343
16343
|
return !0;
|
|
16344
16344
|
}, p2 = (r) => ({ state: e, dispatch: t }) => {
|
|
16345
|
-
const o =
|
|
16345
|
+
const o = qe(r, e.schema);
|
|
16346
16346
|
return Vw(o)(e, t);
|
|
16347
16347
|
};
|
|
16348
16348
|
function Pp(r, e) {
|
|
@@ -16380,7 +16380,7 @@ const u2 = ({ keepMarks: r = !0 } = {}) => ({ tr: e, state: t, dispatch: o, edit
|
|
|
16380
16380
|
return h;
|
|
16381
16381
|
}, m2 = (r, e = {}) => ({ tr: t, state: o, dispatch: n, editor: i }) => {
|
|
16382
16382
|
var s;
|
|
16383
|
-
const a =
|
|
16383
|
+
const a = qe(r, o.schema), { $from: l, $to: d } = o.selection, c = o.selection.node;
|
|
16384
16384
|
if (c && c.isBlock || l.depth < 2 || !l.sameParent(d))
|
|
16385
16385
|
return !1;
|
|
16386
16386
|
const p = l.node(-1);
|
|
@@ -16393,20 +16393,20 @@ const u2 = ({ keepMarks: r = !0 } = {}) => ({ tr: e, state: t, dispatch: o, edit
|
|
|
16393
16393
|
if (n) {
|
|
16394
16394
|
let w = N.empty;
|
|
16395
16395
|
const E = l.index(-1) ? 1 : l.index(-2) ? 2 : 3;
|
|
16396
|
-
for (let
|
|
16397
|
-
w = N.from(l.node(
|
|
16396
|
+
for (let H = l.depth - E; H >= l.depth - 3; H -= 1)
|
|
16397
|
+
w = N.from(l.node(H).copy(w));
|
|
16398
16398
|
const C = l.indexAfter(-1) < l.node(-2).childCount ? 1 : l.indexAfter(-2) < l.node(-3).childCount ? 2 : 3, y = {
|
|
16399
16399
|
...Xi(u, l.node().type.name, l.node().attrs),
|
|
16400
16400
|
...e
|
|
16401
16401
|
}, M = ((s = a.contentMatch.defaultType) === null || s === void 0 ? void 0 : s.createAndFill(y)) || void 0;
|
|
16402
16402
|
w = w.append(N.from(a.createAndFill(null, M) || void 0));
|
|
16403
16403
|
const k = l.before(l.depth - (E - 1));
|
|
16404
|
-
t.replace(k, l.after(-C), new
|
|
16404
|
+
t.replace(k, l.after(-C), new j(w, 4 - E, 0));
|
|
16405
16405
|
let A = -1;
|
|
16406
|
-
t.doc.nodesBetween(k, t.doc.content.size, (
|
|
16406
|
+
t.doc.nodesBetween(k, t.doc.content.size, (H, _) => {
|
|
16407
16407
|
if (A > -1)
|
|
16408
16408
|
return !1;
|
|
16409
|
-
|
|
16409
|
+
H.isTextblock && H.content.size === 0 && (A = _ + 1);
|
|
16410
16410
|
}), A > -1 && t.setSelection(J.near(t.doc.resolve(A))), t.scrollIntoView();
|
|
16411
16411
|
}
|
|
16412
16412
|
return !0;
|
|
@@ -16442,7 +16442,7 @@ const u2 = ({ keepMarks: r = !0 } = {}) => ({ tr: e, state: t, dispatch: o, edit
|
|
|
16442
16442
|
return !0;
|
|
16443
16443
|
const n = r.doc.nodeAt(o);
|
|
16444
16444
|
return t.node.type === (n == null ? void 0 : n.type) && Fr(r.doc, t.pos) && r.join(t.pos), !0;
|
|
16445
|
-
},
|
|
16445
|
+
}, qa = (r, e) => {
|
|
16446
16446
|
const t = Id((s) => s.type === e)(r.selection);
|
|
16447
16447
|
if (!t)
|
|
16448
16448
|
return !0;
|
|
@@ -16452,7 +16452,7 @@ const u2 = ({ keepMarks: r = !0 } = {}) => ({ tr: e, state: t, dispatch: o, edit
|
|
|
16452
16452
|
const n = r.doc.nodeAt(o);
|
|
16453
16453
|
return t.node.type === (n == null ? void 0 : n.type) && Fr(r.doc, o) && r.join(o), !0;
|
|
16454
16454
|
}, h2 = (r, e, t, o = {}) => ({ editor: n, tr: i, state: s, dispatch: a, chain: l, commands: d, can: c }) => {
|
|
16455
|
-
const { extensions: p, splittableMarks: u } = n.extensionManager, m =
|
|
16455
|
+
const { extensions: p, splittableMarks: u } = n.extensionManager, m = qe(r, s.schema), h = qe(e, s.schema), { selection: f, storedMarks: b } = s, { $from: w, $to: E } = f, C = w.blockRange(E), y = b || f.$to.parentOffset && f.$from.marks();
|
|
16456
16456
|
if (!C)
|
|
16457
16457
|
return !1;
|
|
16458
16458
|
const M = Id((k) => Op(k.type.name, p))(f);
|
|
@@ -16460,22 +16460,22 @@ const u2 = ({ keepMarks: r = !0 } = {}) => ({ tr: e, state: t, dispatch: o, edit
|
|
|
16460
16460
|
if (M.node.type === m)
|
|
16461
16461
|
return d.liftListItem(h);
|
|
16462
16462
|
if (Op(M.node.type.name, p) && m.validContent(M.node.content) && a)
|
|
16463
|
-
return l().command(() => (i.setNodeMarkup(M.pos, m), !0)).command(() => Ua(i, m)).command(() =>
|
|
16463
|
+
return l().command(() => (i.setNodeMarkup(M.pos, m), !0)).command(() => Ua(i, m)).command(() => qa(i, m)).run();
|
|
16464
16464
|
}
|
|
16465
|
-
return !t || !y || !a ? l().command(() => c().wrapInList(m, o) ? !0 : d.clearNodes()).wrapInList(m, o).command(() => Ua(i, m)).command(() =>
|
|
16466
|
-
const k = c().wrapInList(m, o), A = y.filter((
|
|
16465
|
+
return !t || !y || !a ? l().command(() => c().wrapInList(m, o) ? !0 : d.clearNodes()).wrapInList(m, o).command(() => Ua(i, m)).command(() => qa(i, m)).run() : l().command(() => {
|
|
16466
|
+
const k = c().wrapInList(m, o), A = y.filter((H) => u.includes(H.type.name));
|
|
16467
16467
|
return i.ensureMarks(A), k ? !0 : d.clearNodes();
|
|
16468
|
-
}).wrapInList(m, o).command(() => Ua(i, m)).command(() =>
|
|
16468
|
+
}).wrapInList(m, o).command(() => Ua(i, m)).command(() => qa(i, m)).run();
|
|
16469
16469
|
}, g2 = (r, e = {}, t = {}) => ({ state: o, commands: n }) => {
|
|
16470
16470
|
const { extendEmptyMarkRange: i = !1 } = t, s = Hr(r, o.schema);
|
|
16471
16471
|
return Nl(o, s, e) ? n.unsetMark(s, { extendEmptyMarkRange: i }) : n.setMark(s, e);
|
|
16472
16472
|
}, f2 = (r, e, t = {}) => ({ state: o, commands: n }) => {
|
|
16473
|
-
const i =
|
|
16473
|
+
const i = qe(r, o.schema), s = qe(e, o.schema), a = qn(o, i, t);
|
|
16474
16474
|
let l;
|
|
16475
16475
|
return o.selection.$anchor.sameParent(o.selection.$head) && (l = o.selection.$anchor.parent.attrs), a ? n.setNode(s, l) : n.setNode(i, { ...l, ...t });
|
|
16476
16476
|
}, b2 = (r, e = {}) => ({ state: t, commands: o }) => {
|
|
16477
|
-
const n =
|
|
16478
|
-
return
|
|
16477
|
+
const n = qe(r, t.schema);
|
|
16478
|
+
return qn(t, n, e) ? o.lift(n) : o.wrapIn(n, e);
|
|
16479
16479
|
}, y2 = () => ({ state: r, dispatch: e }) => {
|
|
16480
16480
|
const t = r.plugins;
|
|
16481
16481
|
for (let o = 0; o < t.length; o += 1) {
|
|
@@ -16518,7 +16518,7 @@ const u2 = ({ keepMarks: r = !0 } = {}) => ({ tr: e, state: t, dispatch: o, edit
|
|
|
16518
16518
|
}, x2 = (r, e = {}) => ({ tr: t, state: o, dispatch: n }) => {
|
|
16519
16519
|
let i = null, s = null;
|
|
16520
16520
|
const a = ga(typeof r == "string" ? r : r.name, o.schema);
|
|
16521
|
-
return a ? (a === "node" && (i =
|
|
16521
|
+
return a ? (a === "node" && (i = qe(r, o.schema)), a === "mark" && (s = Hr(r, o.schema)), n && t.selection.ranges.forEach((l) => {
|
|
16522
16522
|
const d = l.$from.pos, c = l.$to.pos;
|
|
16523
16523
|
let p, u, m, h;
|
|
16524
16524
|
t.selection.empty ? o.doc.nodesBetween(d, c, (f, b) => {
|
|
@@ -16547,10 +16547,10 @@ const u2 = ({ keepMarks: r = !0 } = {}) => ({ tr: e, state: t, dispatch: o, edit
|
|
|
16547
16547
|
}));
|
|
16548
16548
|
}), !0) : !1;
|
|
16549
16549
|
}, k2 = (r, e = {}) => ({ state: t, dispatch: o }) => {
|
|
16550
|
-
const n =
|
|
16550
|
+
const n = qe(r, t.schema);
|
|
16551
16551
|
return Rw(n, e)(t, o);
|
|
16552
16552
|
}, S2 = (r, e = {}) => ({ state: t, dispatch: o }) => {
|
|
16553
|
-
const n =
|
|
16553
|
+
const n = qe(r, t.schema);
|
|
16554
16554
|
return $w(n, e)(t, o);
|
|
16555
16555
|
};
|
|
16556
16556
|
var C2 = /* @__PURE__ */ Object.freeze({
|
|
@@ -16590,8 +16590,8 @@ var C2 = /* @__PURE__ */ Object.freeze({
|
|
|
16590
16590
|
scrollIntoView: Hv,
|
|
16591
16591
|
selectAll: Vv,
|
|
16592
16592
|
selectNodeBackward: Uv,
|
|
16593
|
-
selectNodeForward:
|
|
16594
|
-
selectParentNode:
|
|
16593
|
+
selectNodeForward: qv,
|
|
16594
|
+
selectParentNode: Wv,
|
|
16595
16595
|
selectTextblockEnd: Kv,
|
|
16596
16596
|
selectTextblockStart: Gv,
|
|
16597
16597
|
setContent: Jv,
|
|
@@ -17256,7 +17256,7 @@ let D2 = class extends Uw {
|
|
|
17256
17256
|
* Get attributes of the currently selected node or mark.
|
|
17257
17257
|
*/
|
|
17258
17258
|
getAttributes(e) {
|
|
17259
|
-
return
|
|
17259
|
+
return Wh(this.state, e);
|
|
17260
17260
|
}
|
|
17261
17261
|
isActive(e, t) {
|
|
17262
17262
|
const o = typeof e == "string" ? e : null, n = typeof e == "string" ? t : e;
|
|
@@ -17281,7 +17281,7 @@ let D2 = class extends Uw {
|
|
|
17281
17281
|
const { blockSeparator: t = `
|
|
17282
17282
|
|
|
17283
17283
|
`, textSerializers: o = {} } = e || {};
|
|
17284
|
-
return
|
|
17284
|
+
return qh(this.state.doc, {
|
|
17285
17285
|
blockSeparator: t,
|
|
17286
17286
|
textSerializers: {
|
|
17287
17287
|
...Ad(this.schema),
|
|
@@ -17387,7 +17387,7 @@ function Il(r) {
|
|
|
17387
17387
|
}
|
|
17388
17388
|
});
|
|
17389
17389
|
}
|
|
17390
|
-
function
|
|
17390
|
+
function Wn(r) {
|
|
17391
17391
|
return new ma({
|
|
17392
17392
|
find: r.find,
|
|
17393
17393
|
handler: ({ state: e, range: t, match: o, chain: n }) => {
|
|
@@ -17463,11 +17463,11 @@ function go(r) {
|
|
|
17463
17463
|
}
|
|
17464
17464
|
});
|
|
17465
17465
|
}
|
|
17466
|
-
var gt = "top", Lt = "bottom", Nt = "right", ft = "left", $d = "auto", ui = [gt, Lt, Nt, ft],
|
|
17467
|
-
return r.concat([e + "-" +
|
|
17466
|
+
var gt = "top", Lt = "bottom", Nt = "right", ft = "left", $d = "auto", ui = [gt, Lt, Nt, ft], qo = "start", Kn = "end", $2 = "clippingParents", Jh = "viewport", un = "popper", z2 = "reference", Ap = /* @__PURE__ */ ui.reduce(function(r, e) {
|
|
17467
|
+
return r.concat([e + "-" + qo, e + "-" + Kn]);
|
|
17468
17468
|
}, []), Yh = /* @__PURE__ */ [].concat(ui, [$d]).reduce(function(r, e) {
|
|
17469
|
-
return r.concat([e, e + "-" +
|
|
17470
|
-
}, []), _2 = "beforeRead", F2 = "read", j2 = "afterRead", H2 = "beforeMain", V2 = "main", U2 = "afterMain",
|
|
17469
|
+
return r.concat([e, e + "-" + qo, e + "-" + Kn]);
|
|
17470
|
+
}, []), _2 = "beforeRead", F2 = "read", j2 = "afterRead", H2 = "beforeMain", V2 = "main", U2 = "afterMain", q2 = "beforeWrite", W2 = "write", K2 = "afterWrite", G2 = [_2, F2, j2, H2, V2, U2, q2, W2, K2];
|
|
17471
17471
|
function Qt(r) {
|
|
17472
17472
|
return r ? (r.nodeName || "").toLowerCase() : null;
|
|
17473
17473
|
}
|
|
@@ -17539,7 +17539,7 @@ const Xh = {
|
|
|
17539
17539
|
function Jt(r) {
|
|
17540
17540
|
return r.split("-")[0];
|
|
17541
17541
|
}
|
|
17542
|
-
var ao = Math.max, ws = Math.min,
|
|
17542
|
+
var ao = Math.max, ws = Math.min, Wo = Math.round;
|
|
17543
17543
|
function Rl() {
|
|
17544
17544
|
var r = navigator.userAgentData;
|
|
17545
17545
|
return r != null && r.brands && Array.isArray(r.brands) ? r.brands.map(function(e) {
|
|
@@ -17552,7 +17552,7 @@ function Qh() {
|
|
|
17552
17552
|
function Ko(r, e, t) {
|
|
17553
17553
|
e === void 0 && (e = !1), t === void 0 && (t = !1);
|
|
17554
17554
|
var o = r.getBoundingClientRect(), n = 1, i = 1;
|
|
17555
|
-
e && Bt(r) && (n = r.offsetWidth > 0 &&
|
|
17555
|
+
e && Bt(r) && (n = r.offsetWidth > 0 && Wo(o.width) / r.offsetWidth || 1, i = r.offsetHeight > 0 && Wo(o.height) / r.offsetHeight || 1);
|
|
17556
17556
|
var s = fo(r) ? kt(r) : window, a = s.visualViewport, l = !Qh() && t, d = (o.left + (l && a ? a.offsetLeft : 0)) / n, c = (o.top + (l && a ? a.offsetTop : 0)) / i, p = o.width / n, u = o.height / i;
|
|
17557
17557
|
return {
|
|
17558
17558
|
width: p,
|
|
@@ -17671,8 +17671,8 @@ var ex = function(e, t) {
|
|
|
17671
17671
|
function tx(r) {
|
|
17672
17672
|
var e, t = r.state, o = r.name, n = r.options, i = t.elements.arrow, s = t.modifiersData.popperOffsets, a = Jt(t.placement), l = Fd(a), d = [ft, Nt].indexOf(a) >= 0, c = d ? "height" : "width";
|
|
17673
17673
|
if (!(!i || !s)) {
|
|
17674
|
-
var p = ex(n.padding, t), u = _d(i), m = l === "y" ? gt : ft, h = l === "y" ? Lt : Nt, f = t.rects.reference[c] + t.rects.reference[l] - s[l] - t.rects.popper[c], b = s[l] - t.rects.reference[l], w = mi(i), E = w ? l === "y" ? w.clientHeight || 0 : w.clientWidth || 0 : 0, C = f / 2 - b / 2, y = p[m], M = E - u[c] - p[h], k = E / 2 - u[c] / 2 + C, A = En(y, k, M),
|
|
17675
|
-
t.modifiersData[o] = (e = {}, e[
|
|
17674
|
+
var p = ex(n.padding, t), u = _d(i), m = l === "y" ? gt : ft, h = l === "y" ? Lt : Nt, f = t.rects.reference[c] + t.rects.reference[l] - s[l] - t.rects.popper[c], b = s[l] - t.rects.reference[l], w = mi(i), E = w ? l === "y" ? w.clientHeight || 0 : w.clientWidth || 0 : 0, C = f / 2 - b / 2, y = p[m], M = E - u[c] - p[h], k = E / 2 - u[c] / 2 + C, A = En(y, k, M), H = l;
|
|
17675
|
+
t.modifiersData[o] = (e = {}, e[H] = A, e.centerOffset = A - k, e);
|
|
17676
17676
|
}
|
|
17677
17677
|
}
|
|
17678
17678
|
function rx(r) {
|
|
@@ -17700,8 +17700,8 @@ var nx = {
|
|
|
17700
17700
|
function ix(r, e) {
|
|
17701
17701
|
var t = r.x, o = r.y, n = e.devicePixelRatio || 1;
|
|
17702
17702
|
return {
|
|
17703
|
-
x:
|
|
17704
|
-
y:
|
|
17703
|
+
x: Wo(t * n) / n || 0,
|
|
17704
|
+
y: Wo(o * n) / n || 0
|
|
17705
17705
|
};
|
|
17706
17706
|
}
|
|
17707
17707
|
function Lp(r) {
|
|
@@ -17715,8 +17715,8 @@ function Lp(r) {
|
|
|
17715
17715
|
m = b.x, f = b.y;
|
|
17716
17716
|
var w = s.hasOwnProperty("x"), E = s.hasOwnProperty("y"), C = ft, y = gt, M = window;
|
|
17717
17717
|
if (d) {
|
|
17718
|
-
var k = mi(t), A = "clientHeight",
|
|
17719
|
-
if (k === kt(t) && (k = Vr(t), hr(k).position !== "static" && a === "absolute" && (A = "scrollHeight",
|
|
17718
|
+
var k = mi(t), A = "clientHeight", H = "clientWidth";
|
|
17719
|
+
if (k === kt(t) && (k = Vr(t), hr(k).position !== "static" && a === "absolute" && (A = "scrollHeight", H = "scrollWidth")), k = k, n === gt || (n === ft || n === Nt) && i === Kn) {
|
|
17720
17720
|
y = Lt;
|
|
17721
17721
|
var _ = p && k === M && M.visualViewport ? M.visualViewport.height : (
|
|
17722
17722
|
// $FlowFixMe[prop-missing]
|
|
@@ -17728,7 +17728,7 @@ function Lp(r) {
|
|
|
17728
17728
|
C = Nt;
|
|
17729
17729
|
var P = p && k === M && M.visualViewport ? M.visualViewport.width : (
|
|
17730
17730
|
// $FlowFixMe[prop-missing]
|
|
17731
|
-
k[
|
|
17731
|
+
k[H]
|
|
17732
17732
|
);
|
|
17733
17733
|
m -= P - o.width, m *= l ? 1 : -1;
|
|
17734
17734
|
}
|
|
@@ -17743,8 +17743,8 @@ function Lp(r) {
|
|
|
17743
17743
|
y: f
|
|
17744
17744
|
};
|
|
17745
17745
|
if (m = I.x, f = I.y, l) {
|
|
17746
|
-
var
|
|
17747
|
-
return Object.assign({}, v, (
|
|
17746
|
+
var W;
|
|
17747
|
+
return Object.assign({}, v, (W = {}, W[y] = E ? "0" : "", W[C] = w ? "0" : "", W.transform = (M.devicePixelRatio || 1) <= 1 ? "translate(" + m + "px, " + f + "px)" : "translate3d(" + m + "px, " + f + "px, 0)", W));
|
|
17748
17748
|
}
|
|
17749
17749
|
return Object.assign({}, v, (e = {}, e[y] = E ? f + "px" : "", e[C] = w ? m + "px" : "", e.transform = "", e));
|
|
17750
17750
|
}
|
|
@@ -17934,7 +17934,7 @@ function ng(r) {
|
|
|
17934
17934
|
if (d != null) {
|
|
17935
17935
|
var c = d === "y" ? "height" : "width";
|
|
17936
17936
|
switch (i) {
|
|
17937
|
-
case
|
|
17937
|
+
case qo:
|
|
17938
17938
|
l[d] = l[d] - (e[c] / 2 - t[c] / 2);
|
|
17939
17939
|
break;
|
|
17940
17940
|
case Kn:
|
|
@@ -17950,7 +17950,7 @@ function Gn(r, e) {
|
|
|
17950
17950
|
reference: k,
|
|
17951
17951
|
element: C,
|
|
17952
17952
|
placement: n
|
|
17953
|
-
}),
|
|
17953
|
+
}), H = $l(Object.assign({}, C, A)), _ = u === un ? H : k, P = {
|
|
17954
17954
|
top: M.top - _.top + w.top,
|
|
17955
17955
|
bottom: _.bottom - M.bottom + w.bottom,
|
|
17956
17956
|
left: M.left - _.left + w.left,
|
|
@@ -17958,9 +17958,9 @@ function Gn(r, e) {
|
|
|
17958
17958
|
}, v = r.modifiersData.offset;
|
|
17959
17959
|
if (u === un && v) {
|
|
17960
17960
|
var I = v[n];
|
|
17961
|
-
Object.keys(P).forEach(function(
|
|
17962
|
-
var ne = [Nt, Lt].indexOf(
|
|
17963
|
-
P[
|
|
17961
|
+
Object.keys(P).forEach(function(W) {
|
|
17962
|
+
var ne = [Nt, Lt].indexOf(W) >= 0 ? 1 : -1, Y = [gt, Lt].indexOf(W) >= 0 ? "y" : "x";
|
|
17963
|
+
P[W] += I[Y] * ne;
|
|
17964
17964
|
});
|
|
17965
17965
|
}
|
|
17966
17966
|
return P;
|
|
@@ -18003,25 +18003,25 @@ function wx(r) {
|
|
|
18003
18003
|
flipVariations: h,
|
|
18004
18004
|
allowedAutoPlacements: f
|
|
18005
18005
|
}) : it);
|
|
18006
|
-
}, []), M = e.rects.reference, k = e.rects.popper, A = /* @__PURE__ */ new Map(),
|
|
18007
|
-
var v = y[P], I = Jt(v),
|
|
18006
|
+
}, []), M = e.rects.reference, k = e.rects.popper, A = /* @__PURE__ */ new Map(), H = !0, _ = y[0], P = 0; P < y.length; P++) {
|
|
18007
|
+
var v = y[P], I = Jt(v), W = Go(v) === qo, ne = [gt, Lt].indexOf(I) >= 0, Y = ne ? "width" : "height", Z = Gn(e, {
|
|
18008
18008
|
placement: v,
|
|
18009
18009
|
boundary: c,
|
|
18010
18010
|
rootBoundary: p,
|
|
18011
18011
|
altBoundary: u,
|
|
18012
18012
|
padding: d
|
|
18013
|
-
}), le = ne ?
|
|
18013
|
+
}), le = ne ? W ? Nt : ft : W ? Lt : gt;
|
|
18014
18014
|
M[Y] > k[Y] && (le = Qi(le));
|
|
18015
18015
|
var ge = Qi(le), se = [];
|
|
18016
18016
|
if (i && se.push(Z[I] <= 0), a && se.push(Z[le] <= 0, Z[ge] <= 0), se.every(function(Te) {
|
|
18017
18017
|
return Te;
|
|
18018
18018
|
})) {
|
|
18019
|
-
_ = v,
|
|
18019
|
+
_ = v, H = !1;
|
|
18020
18020
|
break;
|
|
18021
18021
|
}
|
|
18022
18022
|
A.set(v, se);
|
|
18023
18023
|
}
|
|
18024
|
-
if (
|
|
18024
|
+
if (H)
|
|
18025
18025
|
for (var ae = h ? 3 : 1, oe = function(it) {
|
|
18026
18026
|
var ut = y.find(function(yo) {
|
|
18027
18027
|
var Zt = A.get(yo);
|
|
@@ -18137,7 +18137,7 @@ function Px(r) {
|
|
|
18137
18137
|
rootBoundary: d,
|
|
18138
18138
|
padding: p,
|
|
18139
18139
|
altBoundary: c
|
|
18140
|
-
}), w = Jt(e.placement), E = Go(e.placement), C = !E, y = Fd(w), M = Ox(y), k = e.modifiersData.popperOffsets, A = e.rects.reference,
|
|
18140
|
+
}), w = Jt(e.placement), E = Go(e.placement), C = !E, y = Fd(w), M = Ox(y), k = e.modifiersData.popperOffsets, A = e.rects.reference, H = e.rects.popper, _ = typeof f == "function" ? f(Object.assign({}, e.rects, {
|
|
18141
18141
|
placement: e.placement
|
|
18142
18142
|
})) : f, P = typeof _ == "number" ? {
|
|
18143
18143
|
mainAxis: _,
|
|
@@ -18151,14 +18151,14 @@ function Px(r) {
|
|
|
18151
18151
|
};
|
|
18152
18152
|
if (k) {
|
|
18153
18153
|
if (i) {
|
|
18154
|
-
var
|
|
18154
|
+
var W, ne = y === "y" ? gt : ft, Y = y === "y" ? Lt : Nt, Z = y === "y" ? "height" : "width", le = k[y], ge = le + b[ne], se = le - b[Y], ae = m ? -H[Z] / 2 : 0, oe = E === qo ? A[Z] : H[Z], ce = E === qo ? -H[Z] : -A[Z], Ne = e.elements.arrow, Te = m && Ne ? _d(Ne) : {
|
|
18155
18155
|
width: 0,
|
|
18156
18156
|
height: 0
|
|
18157
|
-
}, it = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : eg(), ut = it[ne], yo = it[Y], Zt = En(0, A[Z], Te[Z]), wo = C ? A[Z] / 2 - ae - Zt - ut - P.mainAxis : oe - Zt - ut - P.mainAxis, gr = C ? -A[Z] / 2 + ae + Zt + yo + P.mainAxis : ce + Zt + yo + P.mainAxis, vo = e.elements.arrow && mi(e.elements.arrow), hi = vo ? y === "y" ? vo.clientTop || 0 : vo.clientLeft || 0 : 0, tn = (
|
|
18157
|
+
}, it = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : eg(), ut = it[ne], yo = it[Y], Zt = En(0, A[Z], Te[Z]), wo = C ? A[Z] / 2 - ae - Zt - ut - P.mainAxis : oe - Zt - ut - P.mainAxis, gr = C ? -A[Z] / 2 + ae + Zt + yo + P.mainAxis : ce + Zt + yo + P.mainAxis, vo = e.elements.arrow && mi(e.elements.arrow), hi = vo ? y === "y" ? vo.clientTop || 0 : vo.clientLeft || 0 : 0, tn = (W = v == null ? void 0 : v[y]) != null ? W : 0, gi = le + wo - tn - hi, fi = le + gr - tn, rn = En(m ? ws(ge, gi) : ge, le, m ? ao(se, fi) : se);
|
|
18158
18158
|
k[y] = rn, I[y] = rn - le;
|
|
18159
18159
|
}
|
|
18160
18160
|
if (a) {
|
|
18161
|
-
var on, bi = y === "x" ? gt : ft, yi = y === "x" ? Lt : Nt, er = k[M], fr = M === "y" ? "height" : "width", nn = er + b[bi], Ur = er - b[yi], sn = [gt, ft].indexOf(w) !== -1, wi = (on = v == null ? void 0 : v[M]) != null ? on : 0, vi = sn ? nn : er - A[fr] -
|
|
18161
|
+
var on, bi = y === "x" ? gt : ft, yi = y === "x" ? Lt : Nt, er = k[M], fr = M === "y" ? "height" : "width", nn = er + b[bi], Ur = er - b[yi], sn = [gt, ft].indexOf(w) !== -1, wi = (on = v == null ? void 0 : v[M]) != null ? on : 0, vi = sn ? nn : er - A[fr] - H[fr] - wi + P.altAxis, xi = sn ? er + A[fr] + H[fr] - wi - P.altAxis : Ur, ki = m && sn ? Z2(vi, er, xi) : En(m ? vi : nn, er, m ? xi : Ur);
|
|
18162
18162
|
k[M] = ki, I[M] = ki - er;
|
|
18163
18163
|
}
|
|
18164
18164
|
e.modifiersData[o] = I;
|
|
@@ -18181,7 +18181,7 @@ function Lx(r) {
|
|
|
18181
18181
|
return r === kt(r) || !Bt(r) ? jd(r) : Bx(r);
|
|
18182
18182
|
}
|
|
18183
18183
|
function Nx(r) {
|
|
18184
|
-
var e = r.getBoundingClientRect(), t =
|
|
18184
|
+
var e = r.getBoundingClientRect(), t = Wo(e.width) / r.offsetWidth || 1, o = Wo(e.height) / r.offsetHeight || 1;
|
|
18185
18185
|
return t !== 1 || o !== 1;
|
|
18186
18186
|
}
|
|
18187
18187
|
function Ix(r, e, t) {
|
|
@@ -18311,10 +18311,10 @@ function _x(r) {
|
|
|
18311
18311
|
c.reset = !1, y = -1;
|
|
18312
18312
|
continue;
|
|
18313
18313
|
}
|
|
18314
|
-
var M = c.orderedModifiers[y], k = M.fn, A = M.options,
|
|
18314
|
+
var M = c.orderedModifiers[y], k = M.fn, A = M.options, H = A === void 0 ? {} : A, _ = M.name;
|
|
18315
18315
|
typeof k == "function" && (c = k({
|
|
18316
18316
|
state: c,
|
|
18317
|
-
options:
|
|
18317
|
+
options: H,
|
|
18318
18318
|
name: _,
|
|
18319
18319
|
instance: m
|
|
18320
18320
|
}) || c);
|
|
@@ -18372,7 +18372,7 @@ var Fx = [dx, Tx, ax, Xh, Ex, vx, Ax, ox, kx], jx = /* @__PURE__ */ _x({
|
|
|
18372
18372
|
function Ux(r, e) {
|
|
18373
18373
|
return {}.hasOwnProperty.call(r, e);
|
|
18374
18374
|
}
|
|
18375
|
-
function
|
|
18375
|
+
function Wa(r, e, t) {
|
|
18376
18376
|
if (Array.isArray(r)) {
|
|
18377
18377
|
var o = r[e];
|
|
18378
18378
|
return o ?? (Array.isArray(t) ? t[e] : t);
|
|
@@ -18396,13 +18396,13 @@ function _p(r, e) {
|
|
|
18396
18396
|
}, e);
|
|
18397
18397
|
};
|
|
18398
18398
|
}
|
|
18399
|
-
function
|
|
18399
|
+
function qx(r, e) {
|
|
18400
18400
|
var t = Object.assign({}, r);
|
|
18401
18401
|
return e.forEach(function(o) {
|
|
18402
18402
|
delete t[o];
|
|
18403
18403
|
}), t;
|
|
18404
18404
|
}
|
|
18405
|
-
function
|
|
18405
|
+
function Wx(r) {
|
|
18406
18406
|
return r.split(/\s+/).filter(Boolean);
|
|
18407
18407
|
}
|
|
18408
18408
|
function Lo(r) {
|
|
@@ -18514,15 +18514,15 @@ function Oo(r) {
|
|
|
18514
18514
|
var e = r === "destroy" ? "n already-" : " ";
|
|
18515
18515
|
return [r + "() was called on a" + e + "destroyed instance. This is a no-op but", "indicates a potential memory leak."].join(" ");
|
|
18516
18516
|
}
|
|
18517
|
-
function
|
|
18517
|
+
function qp(r) {
|
|
18518
18518
|
var e = /[ \t]{2,}/g, t = /^[ \t]*/gm;
|
|
18519
18519
|
return r.replace(e, " ").replace(t, "").trim();
|
|
18520
18520
|
}
|
|
18521
18521
|
function s5(r) {
|
|
18522
|
-
return
|
|
18522
|
+
return qp(`
|
|
18523
18523
|
%ctippy.js
|
|
18524
18524
|
|
|
18525
|
-
%c` +
|
|
18525
|
+
%c` + qp(r) + `
|
|
18526
18526
|
|
|
18527
18527
|
%c👷 This is a development-only message. It will be removed in production.
|
|
18528
18528
|
`);
|
|
@@ -18659,7 +18659,7 @@ function u5(r, e) {
|
|
|
18659
18659
|
}, {});
|
|
18660
18660
|
return o;
|
|
18661
18661
|
}
|
|
18662
|
-
function
|
|
18662
|
+
function Wp(r, e) {
|
|
18663
18663
|
var t = Object.assign({}, e, {
|
|
18664
18664
|
content: dg(e.content, [r])
|
|
18665
18665
|
}, e.ignoreAttributes ? {} : u5(r, e.plugins));
|
|
@@ -18672,7 +18672,7 @@ function hg(r, e) {
|
|
|
18672
18672
|
r === void 0 && (r = {}), e === void 0 && (e = []);
|
|
18673
18673
|
var t = Object.keys(r);
|
|
18674
18674
|
t.forEach(function(o) {
|
|
18675
|
-
var n =
|
|
18675
|
+
var n = qx(wt, Object.keys(ug)), i = !Ux(n, o);
|
|
18676
18676
|
i && (i = e.filter(function(s) {
|
|
18677
18677
|
return s.name === o;
|
|
18678
18678
|
}).length === 0), ar(i, ["`" + o + "`", "is not a valid prop. You may have spelled it incorrectly, or if it's", "a plugin, forgot to pass it in an array as props.plugins.", `
|
|
@@ -18726,7 +18726,7 @@ function gg(r) {
|
|
|
18726
18726
|
gg.$$tippy = !0;
|
|
18727
18727
|
var h5 = 1, _i = [], Ja = [];
|
|
18728
18728
|
function g5(r, e) {
|
|
18729
|
-
var t =
|
|
18729
|
+
var t = Wp(r, Object.assign({}, wt, mg(jp(e)))), o, n, i, s = !1, a = !1, l = !1, d = !1, c, p, u, m = [], h = _p(gi, t.interactiveDebounce), f, b = h5++, w = null, E = Kx(t.plugins), C = {
|
|
18730
18730
|
// Is the instance currently enabled?
|
|
18731
18731
|
isEnabled: !0,
|
|
18732
18732
|
// Is the tippy currently showing and not transitioning out?
|
|
@@ -18762,7 +18762,7 @@ function g5(r, e) {
|
|
|
18762
18762
|
return process.env.NODE_ENV !== "production" && zl(!0, "render() function has not been supplied."), y;
|
|
18763
18763
|
var M = t.render(y), k = M.popper, A = M.onUpdate;
|
|
18764
18764
|
k.setAttribute("data-tippy-root", ""), k.id = "tippy-" + y.id, y.popper = k, r._tippy = y, k._tippy = y;
|
|
18765
|
-
var
|
|
18765
|
+
var H = E.map(function(B) {
|
|
18766
18766
|
return B.fn(y);
|
|
18767
18767
|
}), _ = r.hasAttribute("aria-expanded");
|
|
18768
18768
|
return vo(), ae(), le(), ge("onCreate", [y]), t.showOnCreate && nn(), k.addEventListener("mouseenter", function() {
|
|
@@ -18781,24 +18781,24 @@ function g5(r, e) {
|
|
|
18781
18781
|
var B;
|
|
18782
18782
|
return !!((B = y.props.render) != null && B.$$tippy);
|
|
18783
18783
|
}
|
|
18784
|
-
function
|
|
18784
|
+
function W() {
|
|
18785
18785
|
return f || r;
|
|
18786
18786
|
}
|
|
18787
18787
|
function ne() {
|
|
18788
|
-
var B =
|
|
18788
|
+
var B = W().parentNode;
|
|
18789
18789
|
return B ? Zx(B) : document;
|
|
18790
18790
|
}
|
|
18791
18791
|
function Y() {
|
|
18792
18792
|
return Fl(k);
|
|
18793
18793
|
}
|
|
18794
18794
|
function Z(B) {
|
|
18795
|
-
return y.state.isMounted && !y.state.isVisible || Vt.isTouch || c && c.type === "focus" ? 0 :
|
|
18795
|
+
return y.state.isMounted && !y.state.isVisible || Vt.isTouch || c && c.type === "focus" ? 0 : Wa(y.props.delay, B ? 0 : 1, wt.delay);
|
|
18796
18796
|
}
|
|
18797
18797
|
function le(B) {
|
|
18798
18798
|
B === void 0 && (B = !1), k.style.pointerEvents = y.props.interactive && !B ? "" : "none", k.style.zIndex = "" + y.props.zIndex;
|
|
18799
18799
|
}
|
|
18800
18800
|
function ge(B, U, G) {
|
|
18801
|
-
if (G === void 0 && (G = !0),
|
|
18801
|
+
if (G === void 0 && (G = !0), H.forEach(function(de) {
|
|
18802
18802
|
de[B] && de[B].apply(de, U);
|
|
18803
18803
|
}), G) {
|
|
18804
18804
|
var me;
|
|
@@ -18824,7 +18824,7 @@ function g5(r, e) {
|
|
|
18824
18824
|
if (!(_ || !y.props.aria.expanded)) {
|
|
18825
18825
|
var B = Lo(y.props.triggerTarget || r);
|
|
18826
18826
|
B.forEach(function(U) {
|
|
18827
|
-
y.props.interactive ? U.setAttribute("aria-expanded", y.state.isVisible && U ===
|
|
18827
|
+
y.props.interactive ? U.setAttribute("aria-expanded", y.state.isVisible && U === W() ? "true" : "false") : U.removeAttribute("aria-expanded");
|
|
18828
18828
|
});
|
|
18829
18829
|
}
|
|
18830
18830
|
}
|
|
@@ -18898,7 +18898,7 @@ function g5(r, e) {
|
|
|
18898
18898
|
passive: !0
|
|
18899
18899
|
}), gr("touchend", fi, {
|
|
18900
18900
|
passive: !0
|
|
18901
|
-
})),
|
|
18901
|
+
})), Wx(y.props.trigger).forEach(function(B) {
|
|
18902
18902
|
if (B !== "manual")
|
|
18903
18903
|
switch (gr(B, tn), B) {
|
|
18904
18904
|
case "mouseenter":
|
|
@@ -18929,7 +18929,7 @@ function g5(r, e) {
|
|
|
18929
18929
|
}
|
|
18930
18930
|
}
|
|
18931
18931
|
function gi(B) {
|
|
18932
|
-
var U = B.target, G =
|
|
18932
|
+
var U = B.target, G = W().contains(U) || k.contains(U);
|
|
18933
18933
|
if (!(B.type === "mousemove" && G)) {
|
|
18934
18934
|
var me = fr().concat(k).map(function(de) {
|
|
18935
18935
|
var st, St = de._tippy, xo = (st = St.popperInstance) == null ? void 0 : st.state;
|
|
@@ -18953,7 +18953,7 @@ function g5(r, e) {
|
|
|
18953
18953
|
}
|
|
18954
18954
|
}
|
|
18955
18955
|
function rn(B) {
|
|
18956
|
-
y.props.trigger.indexOf("focusin") < 0 && B.target !==
|
|
18956
|
+
y.props.trigger.indexOf("focusin") < 0 && B.target !== W() || y.props.interactive && B.relatedTarget && k.contains(B.relatedTarget) || Ur(B);
|
|
18957
18957
|
}
|
|
18958
18958
|
function on(B) {
|
|
18959
18959
|
return Vt.isTouch ? v() !== B.type.indexOf("touch") >= 0 : !1;
|
|
@@ -18962,7 +18962,7 @@ function g5(r, e) {
|
|
|
18962
18962
|
yi();
|
|
18963
18963
|
var B = y.props, U = B.popperOptions, G = B.placement, me = B.offset, de = B.getReferenceClientRect, st = B.moveTransition, St = I() ? Fl(k).arrow : null, xo = de ? {
|
|
18964
18964
|
getBoundingClientRect: de,
|
|
18965
|
-
contextElement: de.contextElement ||
|
|
18965
|
+
contextElement: de.contextElement || W()
|
|
18966
18966
|
} : r, tc = {
|
|
18967
18967
|
name: "$$tippy",
|
|
18968
18968
|
enabled: !0,
|
|
@@ -18977,7 +18977,7 @@ function g5(r, e) {
|
|
|
18977
18977
|
}), ko.attributes.popper = {};
|
|
18978
18978
|
}
|
|
18979
18979
|
}
|
|
18980
|
-
},
|
|
18980
|
+
}, qr = [{
|
|
18981
18981
|
name: "offset",
|
|
18982
18982
|
options: {
|
|
18983
18983
|
offset: me
|
|
@@ -19003,23 +19003,23 @@ function g5(r, e) {
|
|
|
19003
19003
|
adaptive: !st
|
|
19004
19004
|
}
|
|
19005
19005
|
}, tc];
|
|
19006
|
-
I() && St &&
|
|
19006
|
+
I() && St && qr.push({
|
|
19007
19007
|
name: "arrow",
|
|
19008
19008
|
options: {
|
|
19009
19009
|
element: St,
|
|
19010
19010
|
padding: 3
|
|
19011
19011
|
}
|
|
19012
|
-
}),
|
|
19012
|
+
}), qr.push.apply(qr, (U == null ? void 0 : U.modifiers) || []), y.popperInstance = jx(xo, k, Object.assign({}, U, {
|
|
19013
19013
|
placement: G,
|
|
19014
19014
|
onFirstUpdate: u,
|
|
19015
|
-
modifiers:
|
|
19015
|
+
modifiers: qr
|
|
19016
19016
|
}));
|
|
19017
19017
|
}
|
|
19018
19018
|
function yi() {
|
|
19019
19019
|
y.popperInstance && (y.popperInstance.destroy(), y.popperInstance = null);
|
|
19020
19020
|
}
|
|
19021
19021
|
function er() {
|
|
19022
|
-
var B = y.props.appendTo, U, G =
|
|
19022
|
+
var B = y.props.appendTo, U, G = W();
|
|
19023
19023
|
y.props.interactive && B === lg || B === "parent" ? U = G.parentNode : U = dg(B, [G]), U.contains(k) || U.appendChild(k), y.state.isMounted = !0, bi(), process.env.NODE_ENV !== "production" && ar(y.props.interactive && B === wt.appendTo && G.nextElementSibling !== k, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
|
|
19024
19024
|
|
|
19025
19025
|
`, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
|
|
@@ -19064,7 +19064,7 @@ function g5(r, e) {
|
|
|
19064
19064
|
function xi(B) {
|
|
19065
19065
|
if (process.env.NODE_ENV !== "production" && ar(y.state.isDestroyed, Oo("setProps")), !y.state.isDestroyed) {
|
|
19066
19066
|
ge("onBeforeUpdate", [y, B]), hi();
|
|
19067
|
-
var U = y.props, G =
|
|
19067
|
+
var U = y.props, G = Wp(r, Object.assign({}, U, jp(B), {
|
|
19068
19068
|
ignoreAttributes: !0
|
|
19069
19069
|
}));
|
|
19070
19070
|
y.props = G, vo(), U.interactiveDebounce !== G.interactiveDebounce && (oe(), h = _p(gi, G.interactiveDebounce)), U.triggerTarget && !G.triggerTarget ? Lo(U.triggerTarget).forEach(function(me) {
|
|
@@ -19081,20 +19081,20 @@ function g5(r, e) {
|
|
|
19081
19081
|
}
|
|
19082
19082
|
function Lg() {
|
|
19083
19083
|
process.env.NODE_ENV !== "production" && ar(y.state.isDestroyed, Oo("show"));
|
|
19084
|
-
var B = y.state.isVisible, U = y.state.isDestroyed, G = !y.state.isEnabled, me = Vt.isTouch && !y.props.touch, de =
|
|
19085
|
-
if (!(B || U || G || me) && !
|
|
19084
|
+
var B = y.state.isVisible, U = y.state.isDestroyed, G = !y.state.isEnabled, me = Vt.isTouch && !y.props.touch, de = Wa(y.props.duration, 0, wt.duration);
|
|
19085
|
+
if (!(B || U || G || me) && !W().hasAttribute("disabled") && (ge("onShow", [y], !1), y.props.onShow(y) !== !1)) {
|
|
19086
19086
|
if (y.state.isVisible = !0, I() && (k.style.visibility = "visible"), le(), it(), y.state.isMounted || (k.style.transition = "none"), I()) {
|
|
19087
19087
|
var st = Y(), St = st.box, xo = st.content;
|
|
19088
19088
|
Ka([St, xo], 0);
|
|
19089
19089
|
}
|
|
19090
19090
|
u = function() {
|
|
19091
|
-
var
|
|
19091
|
+
var qr;
|
|
19092
19092
|
if (!(!y.state.isVisible || d)) {
|
|
19093
19093
|
if (d = !0, k.offsetHeight, k.style.transition = y.props.moveTransition, I() && y.props.animation) {
|
|
19094
19094
|
var ya = Y(), Si = ya.box, ko = ya.content;
|
|
19095
19095
|
Ka([Si, ko], de), Hp([Si, ko], "visible");
|
|
19096
19096
|
}
|
|
19097
|
-
se(), ae(), Fp(Ja, y), (
|
|
19097
|
+
se(), ae(), Fp(Ja, y), (qr = y.popperInstance) == null || qr.forceUpdate(), ge("onMount", [y]), y.props.animation && I() && Zt(de, function() {
|
|
19098
19098
|
y.state.isShown = !0, ge("onShown", [y]);
|
|
19099
19099
|
});
|
|
19100
19100
|
}
|
|
@@ -19103,7 +19103,7 @@ function g5(r, e) {
|
|
|
19103
19103
|
}
|
|
19104
19104
|
function Ng() {
|
|
19105
19105
|
process.env.NODE_ENV !== "production" && ar(y.state.isDestroyed, Oo("hide"));
|
|
19106
|
-
var B = !y.state.isVisible, U = y.state.isDestroyed, G = !y.state.isEnabled, me =
|
|
19106
|
+
var B = !y.state.isVisible, U = y.state.isDestroyed, G = !y.state.isEnabled, me = Wa(y.props.duration, 1, wt.duration);
|
|
19107
19107
|
if (!(B || U || G) && (ge("onHide", [y], !1), y.props.onHide(y) !== !1)) {
|
|
19108
19108
|
if (y.state.isVisible = !1, y.state.isShown = !1, d = !1, s = !1, I() && (k.style.visibility = "hidden"), oe(), ut(), le(!0), I()) {
|
|
19109
19109
|
var de = Y(), st = de.box, St = de.content;
|
|
@@ -19295,7 +19295,7 @@ Xe.create({
|
|
|
19295
19295
|
});
|
|
19296
19296
|
class b5 {
|
|
19297
19297
|
getTextContent(e) {
|
|
19298
|
-
return
|
|
19298
|
+
return qh(e, { textSerializers: Ad(this.editor.schema) });
|
|
19299
19299
|
}
|
|
19300
19300
|
constructor({ editor: e, element: t, view: o, tippyOptions: n = {}, shouldShow: i }) {
|
|
19301
19301
|
this.preventHide = !1, this.shouldShow = ({ view: s, state: a }) => {
|
|
@@ -19634,7 +19634,7 @@ const v5 = (r = {}) => {
|
|
|
19634
19634
|
},
|
|
19635
19635
|
addInputRules() {
|
|
19636
19636
|
return [
|
|
19637
|
-
|
|
19637
|
+
Wn({
|
|
19638
19638
|
find: x5,
|
|
19639
19639
|
type: this.type
|
|
19640
19640
|
})
|
|
@@ -19739,11 +19739,11 @@ const v5 = (r = {}) => {
|
|
|
19739
19739
|
};
|
|
19740
19740
|
},
|
|
19741
19741
|
addInputRules() {
|
|
19742
|
-
let r =
|
|
19742
|
+
let r = Wn({
|
|
19743
19743
|
find: Xp,
|
|
19744
19744
|
type: this.type
|
|
19745
19745
|
});
|
|
19746
|
-
return (this.options.keepMarks || this.options.keepAttributes) && (r =
|
|
19746
|
+
return (this.options.keepMarks || this.options.keepAttributes) && (r = Wn({
|
|
19747
19747
|
find: Xp,
|
|
19748
19748
|
type: this.type,
|
|
19749
19749
|
keepMarks: this.options.keepMarks,
|
|
@@ -20040,7 +20040,7 @@ class Pe extends Q {
|
|
|
20040
20040
|
return Pe.valid(o) ? new Pe(o) : Q.near(o);
|
|
20041
20041
|
}
|
|
20042
20042
|
content() {
|
|
20043
|
-
return
|
|
20043
|
+
return j.empty;
|
|
20044
20044
|
}
|
|
20045
20045
|
eq(e) {
|
|
20046
20046
|
return e instanceof Pe && e.head == this.head;
|
|
@@ -20060,7 +20060,7 @@ class Pe extends Q {
|
|
|
20060
20060
|
@internal
|
|
20061
20061
|
*/
|
|
20062
20062
|
getBookmark() {
|
|
20063
|
-
return new
|
|
20063
|
+
return new qd(this.anchor);
|
|
20064
20064
|
}
|
|
20065
20065
|
/**
|
|
20066
20066
|
@internal
|
|
@@ -20116,12 +20116,12 @@ class Pe extends Q {
|
|
|
20116
20116
|
Pe.prototype.visible = !1;
|
|
20117
20117
|
Pe.findFrom = Pe.findGapCursorFrom;
|
|
20118
20118
|
Q.jsonID("gapcursor", Pe);
|
|
20119
|
-
class
|
|
20119
|
+
class qd {
|
|
20120
20120
|
constructor(e) {
|
|
20121
20121
|
this.pos = e;
|
|
20122
20122
|
}
|
|
20123
20123
|
map(e) {
|
|
20124
|
-
return new
|
|
20124
|
+
return new qd(e.map(this.pos));
|
|
20125
20125
|
}
|
|
20126
20126
|
resolve(e) {
|
|
20127
20127
|
let t = e.resolve(this.pos);
|
|
@@ -20165,13 +20165,13 @@ function j5(r) {
|
|
|
20165
20165
|
function H5() {
|
|
20166
20166
|
return new _e({
|
|
20167
20167
|
props: {
|
|
20168
|
-
decorations:
|
|
20168
|
+
decorations: W5,
|
|
20169
20169
|
createSelectionBetween(r, e, t) {
|
|
20170
20170
|
return e.pos == t.pos && Pe.valid(t) ? new Pe(t) : null;
|
|
20171
20171
|
},
|
|
20172
20172
|
handleClick: U5,
|
|
20173
20173
|
handleKeyDown: V5,
|
|
20174
|
-
handleDOMEvents: { beforeinput:
|
|
20174
|
+
handleDOMEvents: { beforeinput: q5 }
|
|
20175
20175
|
}
|
|
20176
20176
|
});
|
|
20177
20177
|
}
|
|
@@ -20203,7 +20203,7 @@ function U5(r, e, t) {
|
|
|
20203
20203
|
let n = r.posAtCoords({ left: t.clientX, top: t.clientY });
|
|
20204
20204
|
return n && n.inside > -1 && K.isSelectable(r.state.doc.nodeAt(n.inside)) ? !1 : (r.dispatch(r.state.tr.setSelection(new Pe(o))), !0);
|
|
20205
20205
|
}
|
|
20206
|
-
function
|
|
20206
|
+
function q5(r, e) {
|
|
20207
20207
|
if (e.inputType != "insertCompositionText" || !(r.state.selection instanceof Pe))
|
|
20208
20208
|
return !1;
|
|
20209
20209
|
let { $from: t } = r.state.selection, o = t.parent.contentMatchAt(t.index()).findWrapping(r.state.schema.nodes.text);
|
|
@@ -20212,10 +20212,10 @@ function W5(r, e) {
|
|
|
20212
20212
|
let n = N.empty;
|
|
20213
20213
|
for (let s = o.length - 1; s >= 0; s--)
|
|
20214
20214
|
n = N.from(o[s].createAndFill(null, n));
|
|
20215
|
-
let i = r.state.tr.replace(t.pos, t.pos, new
|
|
20215
|
+
let i = r.state.tr.replace(t.pos, t.pos, new j(n, 0, 0));
|
|
20216
20216
|
return i.setSelection(J.near(i.doc.resolve(t.pos + 1))), r.dispatch(i), !1;
|
|
20217
20217
|
}
|
|
20218
|
-
function
|
|
20218
|
+
function W5(r) {
|
|
20219
20219
|
if (!(r.selection instanceof Pe))
|
|
20220
20220
|
return null;
|
|
20221
20221
|
let e = document.createElement("div");
|
|
@@ -20895,13 +20895,13 @@ const vg = wg(!1, !0), xg = wg(!0, !0), i3 = Xe.create({
|
|
|
20895
20895
|
};
|
|
20896
20896
|
},
|
|
20897
20897
|
addInputRules() {
|
|
20898
|
-
let r =
|
|
20898
|
+
let r = Wn({
|
|
20899
20899
|
find: tu,
|
|
20900
20900
|
type: this.type,
|
|
20901
20901
|
getAttributes: (e) => ({ start: +e[1] }),
|
|
20902
20902
|
joinPredicate: (e, t) => t.childCount + t.attrs.start === +e[1]
|
|
20903
20903
|
});
|
|
20904
|
-
return (this.options.keepMarks || this.options.keepAttributes) && (r =
|
|
20904
|
+
return (this.options.keepMarks || this.options.keepAttributes) && (r = Wn({
|
|
20905
20905
|
find: tu,
|
|
20906
20906
|
type: this.type,
|
|
20907
20907
|
keepMarks: this.options.keepMarks,
|
|
@@ -21151,7 +21151,7 @@ mt.prototype = {
|
|
|
21151
21151
|
return n.j[r] = s, s;
|
|
21152
21152
|
}
|
|
21153
21153
|
};
|
|
21154
|
-
const ee = (r, e, t, o, n) => r.ta(e, t, o, n), Oe = (r, e, t, o, n) => r.tr(e, t, o, n), ru = (r, e, t, o, n) => r.ts(e, t, o, n), D = (r, e, t, o, n) => r.tt(e, t, o, n), ir = "WORD",
|
|
21154
|
+
const ee = (r, e, t, o, n) => r.ta(e, t, o, n), Oe = (r, e, t, o, n) => r.tr(e, t, o, n), ru = (r, e, t, o, n) => r.ts(e, t, o, n), D = (r, e, t, o, n) => r.tt(e, t, o, n), ir = "WORD", ql = "UWORD", Sg = "ASCIINUMERICAL", Cg = "ALPHANUMERICAL", Xn = "LOCALHOST", Wl = "TLD", Kl = "UTLD", es = "SCHEME", No = "SLASH_SCHEME", Wd = "NUM", Gl = "WS", Kd = "NL", Pn = "OPENBRACE", An = "CLOSEBRACE", ks = "OPENBRACKET", Ss = "CLOSEBRACKET", Cs = "OPENPAREN", Es = "CLOSEPAREN", Ms = "OPENANGLEBRACKET", Ts = "CLOSEANGLEBRACKET", Os = "FULLWIDTHLEFTPAREN", Ps = "FULLWIDTHRIGHTPAREN", As = "LEFTCORNERBRACKET", Bs = "RIGHTCORNERBRACKET", Ls = "LEFTWHITECORNERBRACKET", Ns = "RIGHTWHITECORNERBRACKET", Is = "FULLWIDTHLESSTHAN", Ds = "FULLWIDTHGREATERTHAN", Rs = "AMPERSAND", $s = "APOSTROPHE", zs = "ASTERISK", xr = "AT", _s = "BACKSLASH", Fs = "BACKTICK", js = "CARET", Sr = "COLON", Gd = "COMMA", Hs = "DOLLAR", jt = "DOT", Vs = "EQUALS", Jd = "EXCLAMATION", Mt = "HYPHEN", Bn = "PERCENT", Us = "PIPE", qs = "PLUS", Ws = "POUND", Ln = "QUERY", Yd = "QUOTE", Eg = "FULLWIDTHMIDDLEDOT", Xd = "SEMI", Ht = "SLASH", Nn = "TILDE", Ks = "UNDERSCORE", Mg = "EMOJI", Gs = "SYM";
|
|
21155
21155
|
var Tg = /* @__PURE__ */ Object.freeze({
|
|
21156
21156
|
__proto__: null,
|
|
21157
21157
|
ALPHANUMERICAL: Cg,
|
|
@@ -21184,15 +21184,15 @@ var Tg = /* @__PURE__ */ Object.freeze({
|
|
|
21184
21184
|
LEFTWHITECORNERBRACKET: Ls,
|
|
21185
21185
|
LOCALHOST: Xn,
|
|
21186
21186
|
NL: Kd,
|
|
21187
|
-
NUM:
|
|
21187
|
+
NUM: Wd,
|
|
21188
21188
|
OPENANGLEBRACKET: Ms,
|
|
21189
21189
|
OPENBRACE: Pn,
|
|
21190
21190
|
OPENBRACKET: ks,
|
|
21191
21191
|
OPENPAREN: Cs,
|
|
21192
21192
|
PERCENT: Bn,
|
|
21193
21193
|
PIPE: Us,
|
|
21194
|
-
PLUS:
|
|
21195
|
-
POUND:
|
|
21194
|
+
PLUS: qs,
|
|
21195
|
+
POUND: Ws,
|
|
21196
21196
|
QUERY: Ln,
|
|
21197
21197
|
QUOTE: Yd,
|
|
21198
21198
|
RIGHTCORNERBRACKET: Bs,
|
|
@@ -21203,10 +21203,10 @@ var Tg = /* @__PURE__ */ Object.freeze({
|
|
|
21203
21203
|
SLASH_SCHEME: No,
|
|
21204
21204
|
SYM: Gs,
|
|
21205
21205
|
TILDE: Nn,
|
|
21206
|
-
TLD:
|
|
21206
|
+
TLD: Wl,
|
|
21207
21207
|
UNDERSCORE: Ks,
|
|
21208
21208
|
UTLD: Kl,
|
|
21209
|
-
UWORD:
|
|
21209
|
+
UWORD: ql,
|
|
21210
21210
|
WORD: ir,
|
|
21211
21211
|
WS: Gl
|
|
21212
21212
|
});
|
|
@@ -21217,8 +21217,8 @@ function P3(r = []) {
|
|
|
21217
21217
|
const e = {};
|
|
21218
21218
|
mt.groups = e;
|
|
21219
21219
|
const t = new mt();
|
|
21220
|
-
ji == null && (ji = nu(x3)), Hi == null && (Hi = nu(k3)), D(t, "'", $s), D(t, "{", Pn), D(t, "}", An), D(t, "[", ks), D(t, "]", Ss), D(t, "(", Cs), D(t, ")", Es), D(t, "<", Ms), D(t, ">", Ts), D(t, "(", Os), D(t, ")", Ps), D(t, "「", As), D(t, "」", Bs), D(t, "『", Ls), D(t, "』", Ns), D(t, "<", Is), D(t, ">", Ds), D(t, "&", Rs), D(t, "*", zs), D(t, "@", xr), D(t, "`", Fs), D(t, "^", js), D(t, ":", Sr), D(t, ",", Gd), D(t, "$", Hs), D(t, ".", jt), D(t, "=", Vs), D(t, "!", Jd), D(t, "-", Mt), D(t, "%", Bn), D(t, "|", Us), D(t, "+",
|
|
21221
|
-
const o = Oe(t, nr,
|
|
21220
|
+
ji == null && (ji = nu(x3)), Hi == null && (Hi = nu(k3)), D(t, "'", $s), D(t, "{", Pn), D(t, "}", An), D(t, "[", ks), D(t, "]", Ss), D(t, "(", Cs), D(t, ")", Es), D(t, "<", Ms), D(t, ">", Ts), D(t, "(", Os), D(t, ")", Ps), D(t, "「", As), D(t, "」", Bs), D(t, "『", Ls), D(t, "』", Ns), D(t, "<", Is), D(t, ">", Ds), D(t, "&", Rs), D(t, "*", zs), D(t, "@", xr), D(t, "`", Fs), D(t, "^", js), D(t, ":", Sr), D(t, ",", Gd), D(t, "$", Hs), D(t, ".", jt), D(t, "=", Vs), D(t, "!", Jd), D(t, "-", Mt), D(t, "%", Bn), D(t, "|", Us), D(t, "+", qs), D(t, "#", Ws), D(t, "?", Ln), D(t, '"', Yd), D(t, "/", Ht), D(t, ";", Xd), D(t, "~", Nn), D(t, "_", Ks), D(t, "\\", _s), D(t, "・", Eg);
|
|
21221
|
+
const o = Oe(t, nr, Wd, {
|
|
21222
21222
|
[jl]: !0
|
|
21223
21223
|
});
|
|
21224
21224
|
Oe(o, nr, o);
|
|
@@ -21230,7 +21230,7 @@ function P3(r = []) {
|
|
|
21230
21230
|
[Hl]: !0
|
|
21231
21231
|
});
|
|
21232
21232
|
Oe(s, nr, n), Oe(s, or, s), Oe(n, nr, n), Oe(n, or, n);
|
|
21233
|
-
const a = Oe(t, mn,
|
|
21233
|
+
const a = Oe(t, mn, ql, {
|
|
21234
21234
|
[Vl]: !0
|
|
21235
21235
|
});
|
|
21236
21236
|
Oe(a, or), Oe(a, nr, i), Oe(a, mn, a), Oe(i, nr, i), Oe(i, or), Oe(i, mn, i);
|
|
@@ -21250,10 +21250,10 @@ function P3(r = []) {
|
|
|
21250
21250
|
D(u, "#"), Oe(u, Za, p);
|
|
21251
21251
|
const m = [[or, s], [nr, n]], h = [[or, null], [mn, a], [nr, i]];
|
|
21252
21252
|
for (let f = 0; f < ji.length; f++)
|
|
21253
|
-
br(t, ji[f],
|
|
21253
|
+
br(t, ji[f], Wl, ir, m);
|
|
21254
21254
|
for (let f = 0; f < Hi.length; f++)
|
|
21255
|
-
br(t, Hi[f], Kl,
|
|
21256
|
-
ro(
|
|
21255
|
+
br(t, Hi[f], Kl, ql, h);
|
|
21256
|
+
ro(Wl, {
|
|
21257
21257
|
tld: !0,
|
|
21258
21258
|
ascii: !0
|
|
21259
21259
|
}, e), ro(Kl, {
|
|
@@ -21573,7 +21573,7 @@ const su = ba("email", {
|
|
|
21573
21573
|
function L3({
|
|
21574
21574
|
groups: r
|
|
21575
21575
|
}) {
|
|
21576
|
-
const e = r.domain.concat([Rs, zs, xr, _s, Fs, js, Hs, Vs, Mt,
|
|
21576
|
+
const e = r.domain.concat([Rs, zs, xr, _s, Fs, js, Hs, Vs, Mt, Wd, Bn, Us, qs, Ws, Ht, Gs, Nn, Ks]), t = [$s, Sr, Gd, jt, Jd, Bn, Ln, Yd, Xd, Ms, Ts, Pn, An, Ss, ks, Cs, Es, Os, Ps, As, Bs, Ls, Ns, Is, Ds], o = [Rs, $s, zs, _s, Fs, js, Hs, Vs, Mt, Pn, An, Bn, Us, qs, Ws, Ln, Ht, Gs, Nn, Ks], n = Ct(), i = D(n, Nn);
|
|
21577
21577
|
ee(i, o, i), ee(i, r.domain, i);
|
|
21578
21578
|
const s = Ct(), a = Ct(), l = Ct();
|
|
21579
21579
|
ee(n, r.domain, s), ee(n, r.scheme, a), ee(n, r.slashscheme, l), ee(s, o, i), ee(s, r.domain, s);
|
|
@@ -21599,7 +21599,7 @@ function L3({
|
|
|
21599
21599
|
ee(C, r.numeric, y);
|
|
21600
21600
|
const M = Ct(Vi), k = Ct();
|
|
21601
21601
|
ee(M, e, M), ee(M, t, k), ee(k, e, M), ee(k, t, k), D(E, Ht, M), D(y, Ht, M);
|
|
21602
|
-
const A = D(a, Sr),
|
|
21602
|
+
const A = D(a, Sr), H = D(l, Sr), _ = D(H, Ht), P = D(_, Ht);
|
|
21603
21603
|
ee(a, r.domain, s), D(a, jt, w), D(a, Mt, b), ee(l, r.domain, s), D(l, jt, w), D(l, Mt, b), ee(A, r.domain, M), D(A, Ht, M), D(A, Ln, M), ee(P, r.domain, M), ee(P, e, M), D(P, Ht, M);
|
|
21604
21604
|
const v = [
|
|
21605
21605
|
[Pn, An],
|
|
@@ -21620,8 +21620,8 @@ function L3({
|
|
|
21620
21620
|
// <>
|
|
21621
21621
|
];
|
|
21622
21622
|
for (let I = 0; I < v.length; I++) {
|
|
21623
|
-
const [
|
|
21624
|
-
D(k,
|
|
21623
|
+
const [W, ne] = v[I], Y = D(M, W);
|
|
21624
|
+
D(k, W, Y), D(Y, ne, M);
|
|
21625
21625
|
const Z = Ct(Vi);
|
|
21626
21626
|
ee(Y, e, Z);
|
|
21627
21627
|
const le = Ct();
|
|
@@ -21758,7 +21758,7 @@ function F3(r) {
|
|
|
21758
21758
|
a.push(s), s = s.parentNode;
|
|
21759
21759
|
if (!a.find((u) => u.nodeName === "A"))
|
|
21760
21760
|
return !1;
|
|
21761
|
-
const l =
|
|
21761
|
+
const l = Wh(e.state, r.type.name), d = o.target, c = (n = d == null ? void 0 : d.href) !== null && n !== void 0 ? n : l.href, p = (i = d == null ? void 0 : d.target) !== null && i !== void 0 ? i : l.target;
|
|
21762
21762
|
return d && c ? (window.open(c, p), !0) : !1;
|
|
21763
21763
|
}
|
|
21764
21764
|
}
|
|
@@ -21960,10 +21960,10 @@ const V3 = mr.create({
|
|
|
21960
21960
|
type: this.type
|
|
21961
21961
|
})), r;
|
|
21962
21962
|
}
|
|
21963
|
-
}), U3 = { class: "myInputGroup" },
|
|
21963
|
+
}), U3 = { class: "myInputGroup" }, q3 = {
|
|
21964
21964
|
key: 0,
|
|
21965
21965
|
class: "min-h-[2.5rem] flex items-center justify-start"
|
|
21966
|
-
},
|
|
21966
|
+
}, W3 = { class: "myPrimaryInputError mt-2 mb-0 py-0 self-start" }, K3 = { class: "blockease-linear duration-200 block ease-linear" }, G3 = { key: 0 }, J3 = { class: "relative rounded-lg" }, Y3 = { class: "flex justify-between myPrimaryGap items-center divide-x divide-gray-200 py-4 px-4 overflow-x-auto border-b border-gray-20" }, X3 = { class: "px-2 flex items-center justify-start gap-2" }, Q3 = { class: "flex items-center 0 divide-x divide-gray-200" }, Z3 = { class: "px-2 flex items-center justify-start gap-2" }, e4 = { class: "px-2 flex items-center justify-start gap-2" }, t4 = { class: "px-2 flex items-center justify-start gap-2" }, r4 = { class: "px-2 flex items-center justify-start gap-2" }, o4 = { class: "px-2 flex items-center justify-start gap-2" }, n4 = { class: "px-2 flex items-center justify-start gap-2" }, i4 = {
|
|
21967
21967
|
__name: "TipTapInput",
|
|
21968
21968
|
setup(r) {
|
|
21969
21969
|
const e = re("pageBuilderStateStore"), t = x(!1), o = x(""), n = x(1), i = x(""), s = x(""), a = x(""), l = x(null), d = x(null), c = x(null), p = x(null), u = x(null), m = new Qe(e), h = L(() => e.getElement), f = x(""), b = L(() => {
|
|
@@ -22011,23 +22011,23 @@ const V3 = mr.create({
|
|
|
22011
22011
|
}, p.value = function() {
|
|
22012
22012
|
E.value.chain().focus().extendMarkRange("link").unsetLink().run(), t.value = !1;
|
|
22013
22013
|
}, u.value = function() {
|
|
22014
|
-
const P =
|
|
22014
|
+
const P = H();
|
|
22015
22015
|
P || (P || _(), t.value = !1);
|
|
22016
22016
|
};
|
|
22017
|
-
},
|
|
22017
|
+
}, H = function() {
|
|
22018
22018
|
k.value = null;
|
|
22019
22019
|
const P = /^https?:\/\//, v = x(!0);
|
|
22020
22020
|
return v.value = P.test(M.value), v.value === !1 ? (k.value = "The provided URL is invalid. Please ensure that it begins with 'https://' for proper formatting and security.", !0) : !1;
|
|
22021
22021
|
}, _ = function() {
|
|
22022
22022
|
E.value.chain().focus().extendMarkRange("link").setLink({ href: M.value }).run();
|
|
22023
22023
|
};
|
|
22024
|
-
return
|
|
22024
|
+
return qg(() => {
|
|
22025
22025
|
var P;
|
|
22026
22026
|
(P = E.value) == null || P.destroy();
|
|
22027
22027
|
}), Se(() => {
|
|
22028
22028
|
C();
|
|
22029
22029
|
}), (P, v) => (S(), O("div", null, [
|
|
22030
|
-
|
|
22030
|
+
$($n, {
|
|
22031
22031
|
showDynamicModal: t.value,
|
|
22032
22032
|
type: o.value,
|
|
22033
22033
|
gridColumnAmount: n.value,
|
|
@@ -22058,9 +22058,9 @@ const V3 = mr.create({
|
|
|
22058
22058
|
}, null, 512), [
|
|
22059
22059
|
[Xl, y.value]
|
|
22060
22060
|
]),
|
|
22061
|
-
k.value ? (S(), O("div",
|
|
22062
|
-
g("p",
|
|
22063
|
-
])) :
|
|
22061
|
+
k.value ? (S(), O("div", q3, [
|
|
22062
|
+
g("p", W3, F(k.value), 1)
|
|
22063
|
+
])) : R("", !0)
|
|
22064
22064
|
])
|
|
22065
22065
|
])
|
|
22066
22066
|
]),
|
|
@@ -22162,13 +22162,13 @@ const V3 = mr.create({
|
|
|
22162
22162
|
])
|
|
22163
22163
|
])
|
|
22164
22164
|
]),
|
|
22165
|
-
|
|
22165
|
+
$(T(w5), {
|
|
22166
22166
|
id: "page-builder-editor",
|
|
22167
22167
|
editor: T(E),
|
|
22168
22168
|
class: "px-4 pt-6 pb-12 bg-white rounded-lg lg:min-h-[20rem] lg:max-h-[30rem] md:min-h-[20rem] md:max-h-[20rem] min-h-[20rem] max-h-[20rem] overflow-y-auto"
|
|
22169
22169
|
}, null, 8, ["editor"])
|
|
22170
22170
|
])
|
|
22171
|
-
])) :
|
|
22171
|
+
])) : R("", !0)
|
|
22172
22172
|
])
|
|
22173
22173
|
]));
|
|
22174
22174
|
}
|
|
@@ -22228,19 +22228,19 @@ const l4 = /* @__PURE__ */ ec(s4, [["render", a4]]), d4 = { class: "flex items-e
|
|
|
22228
22228
|
return He("closeMediaLibraryModal", () => {
|
|
22229
22229
|
o();
|
|
22230
22230
|
}), (s, a) => (S(), xe(Yo, { to: "body" }, [
|
|
22231
|
-
|
|
22231
|
+
$(T(Xo), {
|
|
22232
22232
|
show: r.open,
|
|
22233
22233
|
as: "template"
|
|
22234
22234
|
}, {
|
|
22235
22235
|
default: z(() => [
|
|
22236
|
-
|
|
22236
|
+
$(T(oi), {
|
|
22237
22237
|
as: "div",
|
|
22238
22238
|
class: "fixed z-30 inset-0 overflow-y-auto sm:px-4",
|
|
22239
22239
|
onClose: o
|
|
22240
22240
|
}, {
|
|
22241
22241
|
default: z(() => [
|
|
22242
22242
|
g("div", d4, [
|
|
22243
|
-
|
|
22243
|
+
$(T(ur), {
|
|
22244
22244
|
as: "template",
|
|
22245
22245
|
enter: "ease-out duration-100",
|
|
22246
22246
|
"enter-from": "opacity-0",
|
|
@@ -22250,7 +22250,7 @@ const l4 = /* @__PURE__ */ ec(s4, [["render", a4]]), d4 = { class: "flex items-e
|
|
|
22250
22250
|
"leave-to": "opacity-0"
|
|
22251
22251
|
}, {
|
|
22252
22252
|
default: z(() => [
|
|
22253
|
-
|
|
22253
|
+
$(T(sd), { class: "fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity" })
|
|
22254
22254
|
]),
|
|
22255
22255
|
_: 1
|
|
22256
22256
|
}),
|
|
@@ -22258,7 +22258,7 @@ const l4 = /* @__PURE__ */ ec(s4, [["render", a4]]), d4 = { class: "flex items-e
|
|
|
22258
22258
|
"aria-hidden": "true",
|
|
22259
22259
|
class: "hidden sm:inline-block sm:align-middle sm:h-screen"
|
|
22260
22260
|
}, "", -1)),
|
|
22261
|
-
|
|
22261
|
+
$(T(ur), {
|
|
22262
22262
|
as: "template",
|
|
22263
22263
|
enter: "ease-out duration-100",
|
|
22264
22264
|
"enter-from": "opacity-0 scale-95",
|
|
@@ -22270,7 +22270,7 @@ const l4 = /* @__PURE__ */ ec(s4, [["render", a4]]), d4 = { class: "flex items-e
|
|
|
22270
22270
|
default: z(() => [
|
|
22271
22271
|
g("div", c4, [
|
|
22272
22272
|
g("div", p4, [
|
|
22273
|
-
|
|
22273
|
+
$(T(ad), {
|
|
22274
22274
|
as: "h3",
|
|
22275
22275
|
class: "tertiaryHeader my-0 py-0"
|
|
22276
22276
|
}, {
|
|
@@ -22294,7 +22294,7 @@ const l4 = /* @__PURE__ */ ec(s4, [["render", a4]]), d4 = { class: "flex items-e
|
|
|
22294
22294
|
r.customMediaComponent ? (S(), O("div", m4, [
|
|
22295
22295
|
(S(), xe(mu(r.customMediaComponent)))
|
|
22296
22296
|
])) : (S(), O("div", h4, [
|
|
22297
|
-
|
|
22297
|
+
$(l4)
|
|
22298
22298
|
]))
|
|
22299
22299
|
]),
|
|
22300
22300
|
r.firstButtonText || r.secondButtonText ? (S(), O("div", g4, [
|
|
@@ -22303,14 +22303,14 @@ const l4 = /* @__PURE__ */ ec(s4, [["render", a4]]), d4 = { class: "flex items-e
|
|
|
22303
22303
|
onClick: o,
|
|
22304
22304
|
class: "mySecondaryButton focus:ring-2 focus:ring-blue-500",
|
|
22305
22305
|
type: "button"
|
|
22306
|
-
}, F(r.firstButtonText), 1)) :
|
|
22306
|
+
}, F(r.firstButtonText), 1)) : R("", !0),
|
|
22307
22307
|
r.secondButtonText ? (S(), O("button", {
|
|
22308
22308
|
key: 1,
|
|
22309
22309
|
onClick: n,
|
|
22310
22310
|
class: "myPrimaryButton focus:ring-2 focus:ring-blue-500",
|
|
22311
22311
|
type: "button"
|
|
22312
|
-
}, F(r.secondButtonText), 1)) :
|
|
22313
|
-
])) :
|
|
22312
|
+
}, F(r.secondButtonText), 1)) : R("", !0)
|
|
22313
|
+
])) : R("", !0)
|
|
22314
22314
|
])
|
|
22315
22315
|
]),
|
|
22316
22316
|
_: 1
|
|
@@ -22353,31 +22353,31 @@ const l4 = /* @__PURE__ */ ec(s4, [["render", a4]]), d4 = { class: "flex items-e
|
|
|
22353
22353
|
}, {
|
|
22354
22354
|
default: z(() => [
|
|
22355
22355
|
g("div", f4, [
|
|
22356
|
-
|
|
22356
|
+
$(T(si), { class: "w-max flex items-center px-2 text-[12.5px] gap-2 text-nowrap pl-2 pr-3 h-10 cursor-pointer rounded-full border-none justify-center bg-gray-50 hover:bg-myPrimaryLinkColor hover:text-white focus-visible:ring-0" }, {
|
|
22357
22357
|
default: z(() => {
|
|
22358
22358
|
var a;
|
|
22359
22359
|
return [
|
|
22360
22360
|
n.value === "none" ? (S(), O("div", b4, s[2] || (s[2] = [
|
|
22361
22361
|
g("span", { class: "material-symbols-outlined" }, " format_color_text ", -1),
|
|
22362
22362
|
g("span", { class: "block truncate text-[12.5px]" }, "Text color", -1)
|
|
22363
|
-
]))) :
|
|
22363
|
+
]))) : R("", !0),
|
|
22364
22364
|
o.value !== "none" ? (S(), O("div", y4, [
|
|
22365
22365
|
g("div", {
|
|
22366
22366
|
class: X(["aspect-square w-6 h-6 border border-gray-800 rounded-sm", `bg-${(a = o.value) == null ? void 0 : a.replace("text-", "")}`])
|
|
22367
22367
|
}, null, 2),
|
|
22368
22368
|
g("span", w4, F(o.value), 1)
|
|
22369
|
-
])) :
|
|
22369
|
+
])) : R("", !0)
|
|
22370
22370
|
];
|
|
22371
22371
|
}),
|
|
22372
22372
|
_: 1
|
|
22373
22373
|
}),
|
|
22374
|
-
|
|
22374
|
+
$(Dt, {
|
|
22375
22375
|
"leave-active-class": "transition ease-in duration-100",
|
|
22376
22376
|
"leave-from-class": "opacity-100",
|
|
22377
22377
|
"leave-to-class": "opacity-0"
|
|
22378
22378
|
}, {
|
|
22379
22379
|
default: z(() => [
|
|
22380
|
-
|
|
22380
|
+
$(T(ai), { class: "absolute min-w-[12rem] z-40 mt-1 max-h-56 w-full overflow-auto rounded-md bg-gray-50 py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm" }, {
|
|
22381
22381
|
default: z(() => [
|
|
22382
22382
|
(S(!0), O(ve, null, Le(T(rs).textColorVariables, (a) => (S(), xe(T(li), {
|
|
22383
22383
|
as: "template",
|
|
@@ -22395,13 +22395,13 @@ const l4 = /* @__PURE__ */ ec(s4, [["render", a4]]), d4 = { class: "flex items-e
|
|
|
22395
22395
|
a === "none" ? (S(), O("div", v4, s[3] || (s[3] = [
|
|
22396
22396
|
g("span", { class: "material-symbols-outlined" }, " invert_colors ", -1),
|
|
22397
22397
|
g("span", { class: "ml-3" }, "Default black", -1)
|
|
22398
|
-
]))) :
|
|
22398
|
+
]))) : R("", !0),
|
|
22399
22399
|
a !== "none" ? (S(), O("div", x4, [
|
|
22400
22400
|
g("div", {
|
|
22401
22401
|
class: X(["aspect-square w-6 h-6 border border-gray-100 rounded-sm", `bg-${a.replace("text-", "")}`])
|
|
22402
22402
|
}, null, 2),
|
|
22403
22403
|
g("span", k4, F(a), 1)
|
|
22404
|
-
])) :
|
|
22404
|
+
])) : R("", !0)
|
|
22405
22405
|
], 2)
|
|
22406
22406
|
]),
|
|
22407
22407
|
_: 2
|
|
@@ -22446,31 +22446,31 @@ const l4 = /* @__PURE__ */ ec(s4, [["render", a4]]), d4 = { class: "flex items-e
|
|
|
22446
22446
|
}, {
|
|
22447
22447
|
default: z(() => [
|
|
22448
22448
|
g("div", C4, [
|
|
22449
|
-
|
|
22449
|
+
$(T(si), { class: "w-max flex items-center px-2 text-[12.5px] gap-2 text-nowrap pl-2 pr-3 h-10 cursor-pointer rounded-full border-none justify-center bg-gray-50 hover:bg-myPrimaryLinkColor hover:text-white focus-visible:ring-0" }, {
|
|
22450
22450
|
default: z(() => {
|
|
22451
22451
|
var a;
|
|
22452
22452
|
return [
|
|
22453
22453
|
n.value === "none" ? (S(), O("div", E4, s[2] || (s[2] = [
|
|
22454
22454
|
g("span", { class: "material-symbols-outlined" }, " colors ", -1),
|
|
22455
22455
|
g("span", { class: "block truncate text-[12.5px]" }, "Background color ", -1)
|
|
22456
|
-
]))) :
|
|
22456
|
+
]))) : R("", !0),
|
|
22457
22457
|
o.value !== "none" ? (S(), O("div", M4, [
|
|
22458
22458
|
g("div", {
|
|
22459
22459
|
class: X(["aspect-square w-6 h-6 border border-gray-800 rounded-sm", `bg-${(a = o.value) == null ? void 0 : a.replace("bg-", "")}`])
|
|
22460
22460
|
}, null, 2),
|
|
22461
22461
|
g("span", T4, F(o.value), 1)
|
|
22462
|
-
])) :
|
|
22462
|
+
])) : R("", !0)
|
|
22463
22463
|
];
|
|
22464
22464
|
}),
|
|
22465
22465
|
_: 1
|
|
22466
22466
|
}),
|
|
22467
|
-
|
|
22467
|
+
$(Dt, {
|
|
22468
22468
|
"leave-active-class": "transition ease-in duration-100",
|
|
22469
22469
|
"leave-from-class": "opacity-100",
|
|
22470
22470
|
"leave-to-class": "opacity-0"
|
|
22471
22471
|
}, {
|
|
22472
22472
|
default: z(() => [
|
|
22473
|
-
|
|
22473
|
+
$(T(ai), { class: "absolute min-w-[12rem] z-40 mt-1 max-h-56 w-full overflow-auto rounded-md bg-gray-50 py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm" }, {
|
|
22474
22474
|
default: z(() => [
|
|
22475
22475
|
(S(!0), O(ve, null, Le(T(rs).backgroundColorVariables, (a) => (S(), xe(T(li), {
|
|
22476
22476
|
as: "template",
|
|
@@ -22488,13 +22488,13 @@ const l4 = /* @__PURE__ */ ec(s4, [["render", a4]]), d4 = { class: "flex items-e
|
|
|
22488
22488
|
a === "none" ? (S(), O("div", O4, s[3] || (s[3] = [
|
|
22489
22489
|
g("span", { class: "material-symbols-outlined" }, " ev_shadow ", -1),
|
|
22490
22490
|
g("span", { class: "ml-3" }, "Transparent", -1)
|
|
22491
|
-
]))) :
|
|
22491
|
+
]))) : R("", !0),
|
|
22492
22492
|
a !== "none" ? (S(), O("div", P4, [
|
|
22493
22493
|
g("div", {
|
|
22494
22494
|
class: X(["aspect-square w-6 h-6 border border-gray-100 rounded-sm", `bg-${a.replace("bg-", "")}`])
|
|
22495
22495
|
}, null, 2),
|
|
22496
22496
|
g("span", A4, F(a), 1)
|
|
22497
|
-
])) :
|
|
22497
|
+
])) : R("", !0)
|
|
22498
22498
|
], 2)
|
|
22499
22499
|
]),
|
|
22500
22500
|
_: 2
|
|
@@ -22536,8 +22536,8 @@ const l4 = /* @__PURE__ */ ec(s4, [["render", a4]]), d4 = { class: "flex items-e
|
|
|
22536
22536
|
}, b.value = function() {
|
|
22537
22537
|
e.setShowModalTipTap(!1);
|
|
22538
22538
|
};
|
|
22539
|
-
}, E = L(() => e.getBasePrimaryImage), C = x(!1), y = x(!1), M = x(""), k = x(""), A = x(""),
|
|
22540
|
-
y.value = !0, M.value = "Media Library", k.value = null, A.value = "Close",
|
|
22539
|
+
}, E = L(() => e.getBasePrimaryImage), C = x(!1), y = x(!1), M = x(""), k = x(""), A = x(""), H = x(null), _ = x(null), P = x(null), v = x(null), I = x(null), W = function() {
|
|
22540
|
+
y.value = !0, M.value = "Media Library", k.value = null, A.value = "Close", H.value = "Select image", P.value = function() {
|
|
22541
22541
|
y.value = !1;
|
|
22542
22542
|
}, v.value = function() {
|
|
22543
22543
|
C.value = !0, o.updateBasePrimaryImage({ type: "unsplash" }), y.value = !1, C.value = !1;
|
|
@@ -22557,7 +22557,7 @@ const l4 = /* @__PURE__ */ ec(s4, [["render", a4]]), d4 = { class: "flex items-e
|
|
|
22557
22557
|
};
|
|
22558
22558
|
};
|
|
22559
22559
|
return (se, ae) => (S(), O("div", null, [
|
|
22560
|
-
|
|
22560
|
+
$($n, {
|
|
22561
22561
|
showDynamicModal: Z.value,
|
|
22562
22562
|
maxWidth: "2xl",
|
|
22563
22563
|
type: a.value,
|
|
@@ -22591,7 +22591,7 @@ const l4 = /* @__PURE__ */ ec(s4, [["render", a4]]), d4 = { class: "flex items-e
|
|
|
22591
22591
|
]),
|
|
22592
22592
|
ne.value ? (S(), O("div", D4, [
|
|
22593
22593
|
g("p", R4, F(ne.value), 1)
|
|
22594
|
-
])) :
|
|
22594
|
+
])) : R("", !0)
|
|
22595
22595
|
])
|
|
22596
22596
|
])
|
|
22597
22597
|
])
|
|
@@ -22600,7 +22600,7 @@ const l4 = /* @__PURE__ */ ec(s4, [["render", a4]]), d4 = { class: "flex items-e
|
|
|
22600
22600
|
_: 1,
|
|
22601
22601
|
__: [2]
|
|
22602
22602
|
}, 8, ["showDynamicModal", "type", "gridColumnAmount", "title", "description", "firstButtonText", "secondButtonText", "thirdButtonText", "onFirstModalButtonFunction", "onSecondModalButtonFunction", "onThirdModalButtonFunction"]),
|
|
22603
|
-
|
|
22603
|
+
$($n, {
|
|
22604
22604
|
simpleModal: !0,
|
|
22605
22605
|
showDynamicModal: i.value,
|
|
22606
22606
|
maxWidth: "5xl",
|
|
@@ -22618,18 +22618,18 @@ const l4 = /* @__PURE__ */ ec(s4, [["render", a4]]), d4 = { class: "flex items-e
|
|
|
22618
22618
|
default: z(() => [
|
|
22619
22619
|
ae[3] || (ae[3] = g("header", null, null, -1)),
|
|
22620
22620
|
g("main", $4, [
|
|
22621
|
-
|
|
22621
|
+
$(i4)
|
|
22622
22622
|
])
|
|
22623
22623
|
]),
|
|
22624
22624
|
_: 1,
|
|
22625
22625
|
__: [3]
|
|
22626
22626
|
}, 8, ["showDynamicModal", "type", "gridColumnAmount", "title", "description", "firstButtonText", "secondButtonText", "thirdButtonText", "onFirstModalButtonFunction", "onSecondModalButtonFunction", "onThirdModalButtonFunction"]),
|
|
22627
|
-
|
|
22627
|
+
$(Bg, {
|
|
22628
22628
|
open: y.value,
|
|
22629
22629
|
title: M.value,
|
|
22630
22630
|
description: k.value,
|
|
22631
22631
|
firstButtonText: A.value,
|
|
22632
|
-
secondButtonText:
|
|
22632
|
+
secondButtonText: H.value,
|
|
22633
22633
|
thirdButtonText: _.value,
|
|
22634
22634
|
customMediaComponent: T(t),
|
|
22635
22635
|
onFirstMediaButtonFunction: P.value,
|
|
@@ -22647,7 +22647,7 @@ const l4 = /* @__PURE__ */ ec(s4, [["render", a4]]), d4 = { class: "flex items-e
|
|
|
22647
22647
|
g("span", { class: "material-symbols-outlined" }, " play_circle ", -1),
|
|
22648
22648
|
g("span", null, "Add YouTube", -1)
|
|
22649
22649
|
]))
|
|
22650
|
-
])) :
|
|
22650
|
+
])) : R("", !0),
|
|
22651
22651
|
T(o).selectedElementIsValidText() && !T(o).ElOrFirstChildIsIframe() ? (S(), O(ve, { key: 1 }, [
|
|
22652
22652
|
g("div", { class: "px-2 flex items-center justify-start gap-2" }, [
|
|
22653
22653
|
g("button", {
|
|
@@ -22660,27 +22660,27 @@ const l4 = /* @__PURE__ */ ec(s4, [["render", a4]]), d4 = { class: "flex items-e
|
|
|
22660
22660
|
]))
|
|
22661
22661
|
]),
|
|
22662
22662
|
g("div", j4, [
|
|
22663
|
-
|
|
22663
|
+
$(S4)
|
|
22664
22664
|
])
|
|
22665
|
-
], 64)) :
|
|
22665
|
+
], 64)) : R("", !0),
|
|
22666
22666
|
n.value && s.value && E.value !== null && !T(o).ElOrFirstChildIsIframe() ? (S(), O("div", H4, [
|
|
22667
22667
|
g("button", {
|
|
22668
|
-
onClick:
|
|
22668
|
+
onClick: W,
|
|
22669
22669
|
type: "button",
|
|
22670
22670
|
class: "text-[12.5px] gap-2 text-nowrap pl-2 pr-3 w-full h-10 cursor-pointer rounded-full flex items-center border-none justify-center bg-gray-50 hover:bg-myPrimaryLinkColor hover:text-white focus-visible:ring-0"
|
|
22671
22671
|
}, ae[6] || (ae[6] = [
|
|
22672
22672
|
g("span", { class: "material-symbols-outlined" }, " add_photo_alternate ", -1),
|
|
22673
22673
|
g("span", null, "Update image", -1)
|
|
22674
22674
|
]))
|
|
22675
|
-
])) :
|
|
22676
|
-
n.value &&
|
|
22677
|
-
|
|
22678
|
-
])) :
|
|
22675
|
+
])) : R("", !0),
|
|
22676
|
+
n.value && n.value.nodeType === 1 && !E.value && !T(o).ElOrFirstChildIsIframe() ? (S(), O("div", V4, [
|
|
22677
|
+
$(B4)
|
|
22678
|
+
])) : R("", !0)
|
|
22679
22679
|
])
|
|
22680
22680
|
])
|
|
22681
22681
|
]));
|
|
22682
22682
|
}
|
|
22683
|
-
},
|
|
22683
|
+
}, q4 = [
|
|
22684
22684
|
{
|
|
22685
22685
|
html_code: `
|
|
22686
22686
|
<section>
|
|
@@ -22782,7 +22782,7 @@ class="border-2 border-gray-600 flex items-centre justify-start rounded-md font-
|
|
|
22782
22782
|
</span>
|
|
22783
22783
|
`
|
|
22784
22784
|
}
|
|
22785
|
-
],
|
|
22785
|
+
], W4 = () => `data:image/svg+xml,${encodeURIComponent(`
|
|
22786
22786
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 150">
|
|
22787
22787
|
<defs>
|
|
22788
22788
|
<style>
|
|
@@ -23078,7 +23078,7 @@ class="border-2 border-gray-600 flex items-centre justify-start rounded-md font-
|
|
|
23078
23078
|
<text x="100" y="75" text-anchor="middle" fill="#718096" font-family="Arial, sans-serif" font-size="14">Preview</text>
|
|
23079
23079
|
</svg>
|
|
23080
23080
|
`;
|
|
23081
|
-
}, fe =
|
|
23081
|
+
}, fe = W4(), G4 = [
|
|
23082
23082
|
{
|
|
23083
23083
|
components: {
|
|
23084
23084
|
data: [
|
|
@@ -23223,13 +23223,13 @@ const Y4 = { class: "p-4" }, X4 = { class: "mb-8" }, Q4 = { class: "grid grid-co
|
|
|
23223
23223
|
g("div", X4, [
|
|
23224
23224
|
d[0] || (d[0] = g("h3", { class: "myQuaternaryHeader mb-4" }, "Helper Components", -1)),
|
|
23225
23225
|
g("div", Q4, [
|
|
23226
|
-
(S(!0), O(ve, null, Le(T(
|
|
23226
|
+
(S(!0), O(ve, null, Le(T(q4), (c) => (S(), O("div", {
|
|
23227
23227
|
key: c.title,
|
|
23228
23228
|
class: "border border-gray-200 overflow-hidden hover:border-myPrimaryLinkColor duration-100 cursor-pointer p-4",
|
|
23229
23229
|
onClick: (p) => i(c)
|
|
23230
23230
|
}, [
|
|
23231
23231
|
g("div", ek, [
|
|
23232
|
-
|
|
23232
|
+
R("", !0),
|
|
23233
23233
|
g("h4", tk, F(c.title), 1)
|
|
23234
23234
|
]),
|
|
23235
23235
|
g("div", rk, " Click to add " + F(c.title.toLowerCase()) + " component ", 1)
|
|
@@ -23310,7 +23310,7 @@ const Y4 = { class: "p-4" }, X4 = { class: "mb-8" }, Q4 = { class: "grid grid-co
|
|
|
23310
23310
|
r.CustomSearchComponent ? (S(), O("div", fk, [
|
|
23311
23311
|
(S(), xe(mu(r.CustomSearchComponent)))
|
|
23312
23312
|
])) : (S(), O("div", bk, [
|
|
23313
|
-
|
|
23313
|
+
$(ck)
|
|
23314
23314
|
]))
|
|
23315
23315
|
])
|
|
23316
23316
|
]),
|
|
@@ -23322,7 +23322,7 @@ const Y4 = { class: "p-4" }, X4 = { class: "mb-8" }, Q4 = { class: "grid grid-co
|
|
|
23322
23322
|
class: "mySecondaryButton",
|
|
23323
23323
|
type: "button",
|
|
23324
23324
|
onClick: o
|
|
23325
|
-
}, F(r.firstButtonText), 513)) :
|
|
23325
|
+
}, F(r.firstButtonText), 513)) : R("", !0)
|
|
23326
23326
|
])
|
|
23327
23327
|
])
|
|
23328
23328
|
]),
|
|
@@ -23342,12 +23342,12 @@ const Y4 = { class: "p-4" }, X4 = { class: "mb-8" }, Q4 = { class: "grid grid-co
|
|
|
23342
23342
|
emits: ["slideOverButton"],
|
|
23343
23343
|
setup(r, { emit: e }) {
|
|
23344
23344
|
return (t, o) => (S(), xe(Yo, { to: "body" }, [
|
|
23345
|
-
|
|
23345
|
+
$(T(Xo), {
|
|
23346
23346
|
as: "template",
|
|
23347
23347
|
show: r.open
|
|
23348
23348
|
}, {
|
|
23349
23349
|
default: z(() => [
|
|
23350
|
-
|
|
23350
|
+
$(T(oi), {
|
|
23351
23351
|
as: "div",
|
|
23352
23352
|
class: "relative z-40",
|
|
23353
23353
|
onClick: o[1] || (o[1] = (n) => t.$emit("slideOverButton"))
|
|
@@ -23357,7 +23357,7 @@ const Y4 = { class: "p-4" }, X4 = { class: "mb-8" }, Q4 = { class: "grid grid-co
|
|
|
23357
23357
|
g("div", xk, [
|
|
23358
23358
|
g("div", kk, [
|
|
23359
23359
|
g("div", Sk, [
|
|
23360
|
-
|
|
23360
|
+
$(T(ur), {
|
|
23361
23361
|
as: "template",
|
|
23362
23362
|
enter: "transform transition ease-in-out duration-200 sm:duration-200",
|
|
23363
23363
|
"enter-from": "translate-x-full",
|
|
@@ -23367,12 +23367,12 @@ const Y4 = { class: "p-4" }, X4 = { class: "mb-8" }, Q4 = { class: "grid grid-co
|
|
|
23367
23367
|
"leave-to": "translate-x-full"
|
|
23368
23368
|
}, {
|
|
23369
23369
|
default: z(() => [
|
|
23370
|
-
|
|
23370
|
+
$(T(rm), { class: "pointer-events-auto w-96 max-w-md" }, {
|
|
23371
23371
|
default: z(() => [
|
|
23372
23372
|
g("div", Ck, [
|
|
23373
23373
|
g("div", Ek, [
|
|
23374
23374
|
g("div", Mk, [
|
|
23375
|
-
|
|
23375
|
+
$(T(ad), { class: "myTertiaryHeader my-0" }, {
|
|
23376
23376
|
default: z(() => [
|
|
23377
23377
|
De(F(r.title), 1)
|
|
23378
23378
|
]),
|
|
@@ -23388,7 +23388,7 @@ const Y4 = { class: "p-4" }, X4 = { class: "mb-8" }, Q4 = { class: "grid grid-co
|
|
|
23388
23388
|
])
|
|
23389
23389
|
]),
|
|
23390
23390
|
g("div", Ok, [
|
|
23391
|
-
|
|
23391
|
+
Wt(t.$slots, "default")
|
|
23392
23392
|
])
|
|
23393
23393
|
])
|
|
23394
23394
|
])
|
|
@@ -23423,12 +23423,12 @@ const Y4 = { class: "p-4" }, X4 = { class: "mb-8" }, Q4 = { class: "grid grid-co
|
|
|
23423
23423
|
emits: ["slideOverButton"],
|
|
23424
23424
|
setup(r, { emit: e }) {
|
|
23425
23425
|
return (t, o) => (S(), xe(Yo, { to: "body" }, [
|
|
23426
|
-
|
|
23426
|
+
$(T(Xo), {
|
|
23427
23427
|
as: "template",
|
|
23428
23428
|
show: r.open
|
|
23429
23429
|
}, {
|
|
23430
23430
|
default: z(() => [
|
|
23431
|
-
|
|
23431
|
+
$(T(oi), {
|
|
23432
23432
|
as: "div",
|
|
23433
23433
|
class: "relative z-40",
|
|
23434
23434
|
onClick: o[1] || (o[1] = (n) => t.$emit("slideOverButton"))
|
|
@@ -23438,7 +23438,7 @@ const Y4 = { class: "p-4" }, X4 = { class: "mb-8" }, Q4 = { class: "grid grid-co
|
|
|
23438
23438
|
g("div", Ak, [
|
|
23439
23439
|
g("div", Bk, [
|
|
23440
23440
|
g("div", Lk, [
|
|
23441
|
-
|
|
23441
|
+
$(T(ur), {
|
|
23442
23442
|
as: "template",
|
|
23443
23443
|
enter: "transform transition ease-in-out duration-200 sm:duration-200",
|
|
23444
23444
|
"enter-from": "translate-x-full",
|
|
@@ -23448,12 +23448,12 @@ const Y4 = { class: "p-4" }, X4 = { class: "mb-8" }, Q4 = { class: "grid grid-co
|
|
|
23448
23448
|
"leave-to": "translate-x-full"
|
|
23449
23449
|
}, {
|
|
23450
23450
|
default: z(() => [
|
|
23451
|
-
|
|
23451
|
+
$(T(rm), { class: "pointer-events-auto w-96 max-w-md" }, {
|
|
23452
23452
|
default: z(() => [
|
|
23453
23453
|
g("div", Nk, [
|
|
23454
23454
|
g("div", Ik, [
|
|
23455
23455
|
g("div", Dk, [
|
|
23456
|
-
|
|
23456
|
+
$(T(ad), { class: "myTertiaryHeader my-0" }, {
|
|
23457
23457
|
default: z(() => [
|
|
23458
23458
|
De(F(r.title), 1)
|
|
23459
23459
|
]),
|
|
@@ -23469,7 +23469,7 @@ const Y4 = { class: "p-4" }, X4 = { class: "mb-8" }, Q4 = { class: "grid grid-co
|
|
|
23469
23469
|
])
|
|
23470
23470
|
]),
|
|
23471
23471
|
g("div", $k, [
|
|
23472
|
-
|
|
23472
|
+
Wt(t.$slots, "default")
|
|
23473
23473
|
])
|
|
23474
23474
|
])
|
|
23475
23475
|
])
|
|
@@ -23497,24 +23497,24 @@ const Y4 = { class: "p-4" }, X4 = { class: "mb-8" }, Q4 = { class: "grid grid-co
|
|
|
23497
23497
|
}, Uk = {
|
|
23498
23498
|
key: 1,
|
|
23499
23499
|
class: "text-xs pb-2"
|
|
23500
|
-
},
|
|
23500
|
+
}, qk = {
|
|
23501
23501
|
key: 2,
|
|
23502
23502
|
class: "text-xs pb-2"
|
|
23503
|
-
},
|
|
23503
|
+
}, Wk = {
|
|
23504
23504
|
key: 3,
|
|
23505
23505
|
class: "text-xs pb-2"
|
|
23506
|
-
}, Kk = { class: "text-xs pb-2" }, Gk = { class: "overflow-hidden bg-gray-900 max-w-2xl" }, Jk = { class: "flex bg-gray-800/40 ring-1 ring-white/5" }, Yk = { class: "-mb-px flex text-xs font-medium text-myPrimaryMediumGrayColor" }, Xk = { class: "px-4 pb-8 pt-4 text-white text-xs break-all" }, Qk = { key: 0 }, Zk = { key: 0 }, e6 = { class: "
|
|
23506
|
+
}, Kk = { class: "text-xs pb-2" }, Gk = { class: "overflow-hidden bg-gray-900 max-w-2xl" }, Jk = { class: "flex bg-gray-800/40 ring-1 ring-white/5" }, Yk = { class: "-mb-px flex text-xs font-medium text-myPrimaryMediumGrayColor" }, Xk = { class: "px-4 pb-8 pt-4 text-white text-xs break-all" }, Qk = { key: 0 }, Zk = { key: 0 }, e6 = { class: "pb-2" }, t6 = { key: 1 }, r6 = { class: "flex flex-col gap-4 border-b border-white mb-4 pb-4" }, o6 = { class: "whitespace-pre-line leading-5" }, n6 = { class: "flex flex-col gap-2 mt-4 border-b border-white mb-4 pb-4" }, i6 = { class: "whitespace-pre-line leading-5" }, s6 = { class: "flex flex-col gap-2 mt-4 border-b border-white mb-4 pb-4" }, a6 = { class: "whitespace-pre-line leading-5" }, l6 = { class: "flex flex-col gap-2 mt-4 border-b border-white mb-4 pb-4" }, d6 = { class: "whitespace-pre-line leading-5" }, c6 = { key: 1 }, p6 = { key: 0 }, u6 = { class: "pb-2" }, m6 = { key: 1 }, h6 = { class: "pb-2" }, g6 = { class: "whitespace-pre-line leading-5 mt-4" }, f6 = { key: 2 }, b6 = { key: 0 }, y6 = { class: "pb-2" }, w6 = { key: 1 }, v6 = { class: "pb-2" }, x6 = { class: "whitespace-pre-line leading-5 mt-4" }, k6 = {
|
|
23507
23507
|
__name: "AdvancedPageBuilderSettings",
|
|
23508
23508
|
setup(r) {
|
|
23509
23509
|
const e = re("pageBuilderStateStore"), t = L(() => e.getElement), o = L(() => e.getComponent), n = L(() => e.getComponents), i = x("element"), s = function(a) {
|
|
23510
23510
|
i.value = a;
|
|
23511
23511
|
};
|
|
23512
23512
|
return (a, l) => {
|
|
23513
|
-
var d, c, p, u, m, h, f, b, w, E, C, y
|
|
23513
|
+
var d, c, p, u, m, h, f, b, w, E, C, y;
|
|
23514
23514
|
return S(), O("div", _k, [
|
|
23515
23515
|
g("div", Fk, [
|
|
23516
|
-
l[
|
|
23517
|
-
l[
|
|
23516
|
+
l[18] || (l[18] = g("h4", { class: "myQuaternaryHeader" }, "Selected HTML", -1)),
|
|
23517
|
+
l[19] || (l[19] = g("p", { class: "myPrimaryParagraph text-xs" }, " Overview of Selected Element, Component, and Components. This section provides real-time updates based on your HTML selection. ", -1)),
|
|
23518
23518
|
g("div", null, [
|
|
23519
23519
|
l[8] || (l[8] = g("h4", { class: "myPrimaryParagraph text-sm pb-2" }, "Types", -1)),
|
|
23520
23520
|
g("div", jk, [
|
|
@@ -23524,19 +23524,19 @@ const Y4 = { class: "p-4" }, X4 = { class: "mb-8" }, Q4 = { class: "grid grid-co
|
|
|
23524
23524
|
])
|
|
23525
23525
|
], -1)),
|
|
23526
23526
|
g("div", Hk, [
|
|
23527
|
-
t.value === null || t.value === void 0 ? (S(), O("p", Vk)) :
|
|
23527
|
+
t.value === null || t.value === void 0 ? (S(), O("p", Vk)) : R("", !0),
|
|
23528
23528
|
t.value !== null && t.value !== void 0 ? (S(), O("p", Uk, [
|
|
23529
23529
|
l[3] || (l[3] = g("span", null, "Element type: ", -1)),
|
|
23530
23530
|
g("span", null, F(typeof t.value), 1)
|
|
23531
|
-
])) :
|
|
23532
|
-
o.value === null || o.value === void 0 ? (S(), O("p",
|
|
23531
|
+
])) : R("", !0),
|
|
23532
|
+
o.value === null || o.value === void 0 ? (S(), O("p", qk, [
|
|
23533
23533
|
l[4] || (l[4] = g("span", null, "Component type: ", -1)),
|
|
23534
23534
|
De(" " + F(JSON.stringify(o.value)), 1)
|
|
23535
|
-
])) :
|
|
23536
|
-
o.value !== null && o.value !== void 0 ? (S(), O("p",
|
|
23535
|
+
])) : R("", !0),
|
|
23536
|
+
o.value !== null && o.value !== void 0 ? (S(), O("p", Wk, [
|
|
23537
23537
|
l[5] || (l[5] = g("span", null, "Component type: ", -1)),
|
|
23538
23538
|
g("span", null, F(Array.isArray(o.value) === !0 ? "array" : typeof o.value), 1)
|
|
23539
|
-
])) :
|
|
23539
|
+
])) : R("", !0),
|
|
23540
23540
|
g("p", Kk, [
|
|
23541
23541
|
l[6] || (l[6] = g("span", null, "Components: ", -1)),
|
|
23542
23542
|
g("span", null, F(Array.isArray(n.value) === !0 ? "array" : typeof n.value), 1)
|
|
@@ -23545,80 +23545,79 @@ const Y4 = { class: "p-4" }, X4 = { class: "mb-8" }, Q4 = { class: "grid grid-co
|
|
|
23545
23545
|
])
|
|
23546
23546
|
]),
|
|
23547
23547
|
g("div", null, [
|
|
23548
|
-
l[
|
|
23548
|
+
l[17] || (l[17] = g("h4", { class: "myPrimaryParagraph text-sm pb-2" }, "Content", -1)),
|
|
23549
23549
|
g("div", Gk, [
|
|
23550
23550
|
g("div", Jk, [
|
|
23551
23551
|
g("div", Yk, [
|
|
23552
23552
|
g("div", {
|
|
23553
|
-
onClick: l[0] || (l[0] = (
|
|
23553
|
+
onClick: l[0] || (l[0] = (M) => s("element")),
|
|
23554
23554
|
class: X(["px-4 py-4 cursor-pointer", [i.value === "element" ? "text-white" : ""]])
|
|
23555
23555
|
}, " Element ", 2),
|
|
23556
23556
|
g("div", {
|
|
23557
|
-
onClick: l[1] || (l[1] = (
|
|
23557
|
+
onClick: l[1] || (l[1] = (M) => s("component")),
|
|
23558
23558
|
class: X(["px-4 py-4 cursor-pointer", [i.value === "component" ? "text-white" : ""]])
|
|
23559
23559
|
}, " Component ", 2),
|
|
23560
23560
|
g("div", {
|
|
23561
|
-
onClick: l[2] || (l[2] = (
|
|
23561
|
+
onClick: l[2] || (l[2] = (M) => s("components")),
|
|
23562
23562
|
class: X(["px-4 py-4 cursor-pointer", [i.value === "components" ? "text-white" : ""]])
|
|
23563
23563
|
}, " Components " + F(Array.isArray(n.value) && n.value.length), 3)
|
|
23564
23564
|
])
|
|
23565
23565
|
]),
|
|
23566
23566
|
g("div", Xk, [
|
|
23567
23567
|
i.value === "element" ? (S(), O("div", Qk, [
|
|
23568
|
-
|
|
23569
|
-
g("
|
|
23570
|
-
|
|
23571
|
-
|
|
23572
|
-
]),
|
|
23568
|
+
o.value ? R("", !0) : (S(), O("div", Zk, [
|
|
23569
|
+
g("p", e6, F(o.value === null ? "NULL" : typeof o.value), 1)
|
|
23570
|
+
])),
|
|
23571
|
+
t.value ? (S(), O("div", t6, [
|
|
23573
23572
|
g("div", r6, [
|
|
23574
|
-
l[
|
|
23575
|
-
g("p", o6, F((
|
|
23573
|
+
l[9] || (l[9] = g("p", null, "Selected HTML:", -1)),
|
|
23574
|
+
g("p", o6, F((d = t.value) == null ? void 0 : d.outerHTML), 1)
|
|
23576
23575
|
]),
|
|
23577
23576
|
g("div", n6, [
|
|
23578
|
-
l[
|
|
23579
|
-
g("p", i6, F((
|
|
23577
|
+
l[10] || (l[10] = g("p", null, "Selected element src:", -1)),
|
|
23578
|
+
g("p", i6, 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)
|
|
23580
23579
|
]),
|
|
23581
23580
|
g("div", s6, [
|
|
23582
|
-
l[
|
|
23583
|
-
g("p", a6, F((
|
|
23581
|
+
l[11] || (l[11] = g("p", null, "Selected element href:", -1)),
|
|
23582
|
+
g("p", a6, F((m = t.value) != null && m.href ? (h = t.value) == null ? void 0 : h.href : typeof ((f = t.value) == null ? void 0 : f.href)), 1)
|
|
23584
23583
|
]),
|
|
23585
23584
|
g("div", l6, [
|
|
23586
|
-
l[
|
|
23587
|
-
g("p", d6, F((
|
|
23585
|
+
l[12] || (l[12] = g("p", null, "Selected element class:", -1)),
|
|
23586
|
+
g("p", d6, F((b = t.value) != null && b.classList ? (w = t.value) == null ? void 0 : w.classList : typeof ((E = t.value) == null ? void 0 : E.classList)), 1)
|
|
23588
23587
|
])
|
|
23589
|
-
])) :
|
|
23590
|
-
])) :
|
|
23588
|
+
])) : R("", !0)
|
|
23589
|
+
])) : R("", !0),
|
|
23591
23590
|
i.value === "component" ? (S(), O("div", c6, [
|
|
23592
|
-
o.value ?
|
|
23591
|
+
o.value ? R("", !0) : (S(), O("div", p6, [
|
|
23593
23592
|
g("p", u6, F(o.value === null ? "NULL" : typeof o.value), 1)
|
|
23594
23593
|
])),
|
|
23595
23594
|
o.value ? (S(), O("div", m6, [
|
|
23596
|
-
g("p", h6, " Component ID: " + F((
|
|
23595
|
+
g("p", h6, " Component ID: " + F((C = o.value) == null ? void 0 : C.id), 1),
|
|
23597
23596
|
g("p", g6, [
|
|
23598
|
-
l[
|
|
23599
|
-
l[
|
|
23600
|
-
De(" " + F((
|
|
23597
|
+
l[13] || (l[13] = De(" Component HTML:")),
|
|
23598
|
+
l[14] || (l[14] = g("br", null, null, -1)),
|
|
23599
|
+
De(" " + F((y = o.value) == null ? void 0 : y.html_code), 1)
|
|
23601
23600
|
])
|
|
23602
|
-
])) :
|
|
23603
|
-
])) :
|
|
23601
|
+
])) : R("", !0)
|
|
23602
|
+
])) : R("", !0),
|
|
23604
23603
|
i.value === "components" ? (S(), O("div", f6, [
|
|
23605
|
-
n.value ?
|
|
23604
|
+
n.value ? R("", !0) : (S(), O("div", b6, [
|
|
23606
23605
|
g("p", y6, F(n.value === null ? "NULL" : typeof n.value), 1)
|
|
23607
23606
|
])),
|
|
23608
23607
|
n.value ? (S(), O("div", w6, [
|
|
23609
|
-
(S(!0), O(ve, null, Le(n.value, (
|
|
23608
|
+
(S(!0), O(ve, null, Le(n.value, (M) => (S(), O("div", {
|
|
23610
23609
|
class: "border-b border-white mb-4 pb-4 last:border-none",
|
|
23611
|
-
key:
|
|
23610
|
+
key: M.id
|
|
23612
23611
|
}, [
|
|
23613
|
-
g("p", v6, " Component ID: " + F(
|
|
23612
|
+
g("p", v6, " Component ID: " + F(M.id), 1),
|
|
23614
23613
|
g("p", x6, [
|
|
23615
|
-
l[
|
|
23616
|
-
l[
|
|
23617
|
-
De(" " + F(
|
|
23614
|
+
l[15] || (l[15] = De(" Component HTML:")),
|
|
23615
|
+
l[16] || (l[16] = g("br", null, null, -1)),
|
|
23616
|
+
De(" " + F(M.html_code), 1)
|
|
23618
23617
|
])
|
|
23619
23618
|
]))), 128))
|
|
23620
|
-
])) :
|
|
23621
|
-
])) :
|
|
23619
|
+
])) : R("", !0)
|
|
23620
|
+
])) : R("", !0)
|
|
23622
23621
|
])
|
|
23623
23622
|
])
|
|
23624
23623
|
])
|
|
@@ -23645,13 +23644,13 @@ const Y4 = { class: "p-4" }, X4 = { class: "mb-8" }, Q4 = { class: "grid grid-co
|
|
|
23645
23644
|
n.value = a.value.map((c) => c.html_code), l("downloaded_html.html", n.value.join(""));
|
|
23646
23645
|
};
|
|
23647
23646
|
return (c, p) => (S(), O("div", null, [
|
|
23648
|
-
|
|
23647
|
+
$(zk, {
|
|
23649
23648
|
open: t.value,
|
|
23650
23649
|
title: o.value,
|
|
23651
23650
|
onSlideOverButton: s
|
|
23652
23651
|
}, {
|
|
23653
23652
|
default: z(() => [
|
|
23654
|
-
|
|
23653
|
+
$(k6)
|
|
23655
23654
|
]),
|
|
23656
23655
|
_: 1
|
|
23657
23656
|
}, 8, ["open", "title"]),
|
|
@@ -23697,23 +23696,23 @@ const Y4 = { class: "p-4" }, X4 = { class: "mb-8" }, Q4 = { class: "grid grid-co
|
|
|
23697
23696
|
}, w.value = function() {
|
|
23698
23697
|
i.deleteAllComponents(), t.setComponents(null), a.value = !1;
|
|
23699
23698
|
};
|
|
23700
|
-
},
|
|
23701
|
-
|
|
23699
|
+
}, H = function() {
|
|
23700
|
+
C.value = "Settings", E.value = !0;
|
|
23702
23701
|
}, _ = function() {
|
|
23703
|
-
|
|
23702
|
+
E.value = !1;
|
|
23704
23703
|
};
|
|
23705
23704
|
return (P, v) => (S(), O("div", null, [
|
|
23706
|
-
|
|
23705
|
+
$(Pk, {
|
|
23707
23706
|
open: E.value,
|
|
23708
23707
|
title: C.value,
|
|
23709
23708
|
onSlideOverButton: _
|
|
23710
23709
|
}, {
|
|
23711
23710
|
default: z(() => [
|
|
23712
|
-
|
|
23711
|
+
$(E6)
|
|
23713
23712
|
]),
|
|
23714
23713
|
_: 1
|
|
23715
23714
|
}, 8, ["open", "title"]),
|
|
23716
|
-
|
|
23715
|
+
$($n, {
|
|
23717
23716
|
showDynamicModal: a.value,
|
|
23718
23717
|
type: l.value,
|
|
23719
23718
|
gridColumnAmount: d.value,
|
|
@@ -23733,13 +23732,13 @@ const Y4 = { class: "p-4" }, X4 = { class: "mb-8" }, Q4 = { class: "grid grid-co
|
|
|
23733
23732
|
_: 1,
|
|
23734
23733
|
__: [0]
|
|
23735
23734
|
}, 8, ["showDynamicModal", "type", "gridColumnAmount", "title", "description", "firstButtonText", "secondButtonText", "thirdButtonText", "onFirstModalButtonFunction", "onSecondModalButtonFunction", "onThirdModalButtonFunction"]),
|
|
23736
|
-
|
|
23735
|
+
$(T($1), {
|
|
23737
23736
|
as: "div",
|
|
23738
23737
|
class: "myPrimaryParagraph relative lg:inline-block hidden text-left"
|
|
23739
23738
|
}, {
|
|
23740
23739
|
default: z(() => [
|
|
23741
23740
|
g("div", null, [
|
|
23742
|
-
|
|
23741
|
+
$(T(z1), { class: "inline-flex items-center gap-2 justify-center w-full rounded-md border border-gray-300 shadow-sm pl-4 pr-6 py-2 bg-white text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-100 focus:ring-emerald-600" }, {
|
|
23743
23742
|
default: z(() => v[1] || (v[1] = [
|
|
23744
23743
|
g("span", { class: "material-symbols-outlined text-[16px]" }, " keyboard_command_key ", -1),
|
|
23745
23744
|
g("span", { class: "text-sm" }, " Options ", -1)
|
|
@@ -23748,7 +23747,7 @@ const Y4 = { class: "p-4" }, X4 = { class: "mb-8" }, Q4 = { class: "grid grid-co
|
|
|
23748
23747
|
__: [1]
|
|
23749
23748
|
})
|
|
23750
23749
|
]),
|
|
23751
|
-
|
|
23750
|
+
$(Dt, {
|
|
23752
23751
|
"enter-active-class": "transition ease-out duration-100",
|
|
23753
23752
|
"enter-from-class": "transform opacity-0 scale-95",
|
|
23754
23753
|
"enter-to-class": "transform opacity-100 scale-100",
|
|
@@ -23757,7 +23756,7 @@ const Y4 = { class: "p-4" }, X4 = { class: "mb-8" }, Q4 = { class: "grid grid-co
|
|
|
23757
23756
|
"leave-to-class": "transform opacity-0 scale-95"
|
|
23758
23757
|
}, {
|
|
23759
23758
|
default: z(() => [
|
|
23760
|
-
|
|
23759
|
+
$(T(_1), { class: "z-50 origin-top-right absolute right-0 mt-2 w-56 rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 divide-y divide-gray-100 focus:outline-none" }, {
|
|
23761
23760
|
default: z(() => [
|
|
23762
23761
|
g("div", M6, [
|
|
23763
23762
|
o.value && o.value.name ? (S(), xe(T(cn), { key: 0 }, {
|
|
@@ -23777,7 +23776,7 @@ const Y4 = { class: "p-4" }, X4 = { class: "mb-8" }, Q4 = { class: "grid grid-co
|
|
|
23777
23776
|
], 2)
|
|
23778
23777
|
]),
|
|
23779
23778
|
_: 1
|
|
23780
|
-
})) :
|
|
23779
|
+
})) : R("", !0),
|
|
23781
23780
|
n.value && n.value.title ? (S(), xe(T(cn), { key: 1 }, {
|
|
23782
23781
|
default: z(({ active: I }) => [
|
|
23783
23782
|
g("div", {
|
|
@@ -23795,8 +23794,8 @@ const Y4 = { class: "p-4" }, X4 = { class: "mb-8" }, Q4 = { class: "grid grid-co
|
|
|
23795
23794
|
], 2)
|
|
23796
23795
|
]),
|
|
23797
23796
|
_: 1
|
|
23798
|
-
})) :
|
|
23799
|
-
|
|
23797
|
+
})) : R("", !0),
|
|
23798
|
+
$(T(cn), null, {
|
|
23800
23799
|
default: z(({ active: I }) => [
|
|
23801
23800
|
g("div", {
|
|
23802
23801
|
onClick: k,
|
|
@@ -23815,10 +23814,10 @@ const Y4 = { class: "p-4" }, X4 = { class: "mb-8" }, Q4 = { class: "grid grid-co
|
|
|
23815
23814
|
]),
|
|
23816
23815
|
_: 1
|
|
23817
23816
|
}),
|
|
23818
|
-
|
|
23817
|
+
$(T(cn), null, {
|
|
23819
23818
|
default: z(({ active: I }) => [
|
|
23820
23819
|
g("div", {
|
|
23821
|
-
onClick:
|
|
23820
|
+
onClick: H,
|
|
23822
23821
|
class: X(["cursor-pointer", [
|
|
23823
23822
|
I ? "bg-myPrimaryLightGrayColor text-gray-900" : "text-gray-700",
|
|
23824
23823
|
"block px-4 py-2"
|
|
@@ -23834,7 +23833,7 @@ const Y4 = { class: "p-4" }, X4 = { class: "mb-8" }, Q4 = { class: "grid grid-co
|
|
|
23834
23833
|
]),
|
|
23835
23834
|
_: 1
|
|
23836
23835
|
}),
|
|
23837
|
-
|
|
23836
|
+
$(T(cn), null, {
|
|
23838
23837
|
default: z(({ active: I }) => [
|
|
23839
23838
|
g("div", {
|
|
23840
23839
|
onClick: A,
|
|
@@ -23863,12 +23862,12 @@ const Y4 = { class: "p-4" }, X4 = { class: "mb-8" }, Q4 = { class: "grid grid-co
|
|
|
23863
23862
|
]),
|
|
23864
23863
|
_: 1
|
|
23865
23864
|
}),
|
|
23866
|
-
|
|
23865
|
+
$(lm, {
|
|
23867
23866
|
show: y.value,
|
|
23868
23867
|
onFirstPageBuilderPreviewModalButton: M.value
|
|
23869
23868
|
}, {
|
|
23870
23869
|
default: z(() => [
|
|
23871
|
-
|
|
23870
|
+
$(dm)
|
|
23872
23871
|
]),
|
|
23873
23872
|
_: 1
|
|
23874
23873
|
}, 8, ["show", "onFirstPageBuilderPreviewModalButton"])
|
|
@@ -23896,15 +23895,15 @@ function I6(r, e, t, o, n, i) {
|
|
|
23896
23895
|
onClick: e[0] || (e[0] = (s) => o.expanded = !o.expanded)
|
|
23897
23896
|
}, [
|
|
23898
23897
|
g("p", B6, [
|
|
23899
|
-
|
|
23898
|
+
Wt(r.$slots, "title")
|
|
23900
23899
|
]),
|
|
23901
|
-
o.expanded ? (S(), O("span", L6, " keyboard_arrow_down ")) :
|
|
23902
|
-
o.expanded ?
|
|
23900
|
+
o.expanded ? (S(), O("span", L6, " keyboard_arrow_down ")) : R("", !0),
|
|
23901
|
+
o.expanded ? R("", !0) : (S(), O("span", N6, " chevron_right "))
|
|
23903
23902
|
]),
|
|
23904
23903
|
g("div", {
|
|
23905
23904
|
class: X([[o.expanded ? "block" : "hidden"], "px-4 ease-linear duration-75 bg-white mt-4"])
|
|
23906
23905
|
}, [
|
|
23907
|
-
|
|
23906
|
+
Wt(r.$slots, "content")
|
|
23908
23907
|
], 2)
|
|
23909
23908
|
], 2);
|
|
23910
23909
|
}
|
|
@@ -23964,7 +23963,7 @@ const en = /* @__PURE__ */ ec(A6, [["render", I6]]), D6 = { class: "flex flex-ro
|
|
|
23964
23963
|
_: 1
|
|
23965
23964
|
}));
|
|
23966
23965
|
}
|
|
23967
|
-
}, V6 = { key: 0 }, U6 = ["src"],
|
|
23966
|
+
}, V6 = { key: 0 }, U6 = ["src"], q6 = {
|
|
23968
23967
|
__name: "ImageEditor",
|
|
23969
23968
|
setup(r) {
|
|
23970
23969
|
const e = re("pageBuilderStateStore"), t = re("CustomMediaComponent"), o = new Qe(e), n = x(!1), i = x(!1), s = x(""), a = x(""), l = x(""), d = x(null), c = x(null), p = x(null), u = x(null), m = x(null), h = L(() => e.getBasePrimaryImage), f = function() {
|
|
@@ -23982,8 +23981,8 @@ const en = /* @__PURE__ */ ec(A6, [["render", I6]]), D6 = { class: "flex flex-ro
|
|
|
23982
23981
|
onClick: f,
|
|
23983
23982
|
alt: "image"
|
|
23984
23983
|
}, null, 8, U6)
|
|
23985
|
-
])) :
|
|
23986
|
-
|
|
23984
|
+
])) : R("", !0),
|
|
23985
|
+
$(Bg, {
|
|
23987
23986
|
open: i.value,
|
|
23988
23987
|
title: s.value,
|
|
23989
23988
|
description: a.value,
|
|
@@ -23997,7 +23996,7 @@ const en = /* @__PURE__ */ ec(A6, [["render", I6]]), D6 = { class: "flex flex-ro
|
|
|
23997
23996
|
}, null, 8, ["open", "title", "description", "firstButtonText", "secondButtonText", "thirdButtonText", "customMediaComponent", "onFirstMediaButtonFunction", "onSecondMediaButtonFunction", "onThirdMediaButtonFunction"])
|
|
23998
23997
|
]));
|
|
23999
23998
|
}
|
|
24000
|
-
},
|
|
23999
|
+
}, W6 = { class: "my-3 py-3" }, K6 = { class: "relative" }, G6 = { class: "flex items-center gap-2" }, J6 = { key: 0 }, Y6 = { class: "flex items-center" }, X6 = {
|
|
24001
24000
|
key: 0,
|
|
24002
24001
|
class: "aspect-square w-6 h-6"
|
|
24003
24002
|
}, Q6 = {
|
|
@@ -24016,27 +24015,27 @@ const en = /* @__PURE__ */ ec(A6, [["render", I6]]), D6 = { class: "flex flex-ro
|
|
|
24016
24015
|
o.value = i, t.handlePageBuilderMethods();
|
|
24017
24016
|
},
|
|
24018
24017
|
{ immediate: !0 }
|
|
24019
|
-
), (i, s) => (S(), O("div",
|
|
24018
|
+
), (i, s) => (S(), O("div", W6, [
|
|
24020
24019
|
s[4] || (s[4] = g("label", { class: "myPrimaryInputLabel" }, " Background opacity", -1)),
|
|
24021
|
-
|
|
24020
|
+
$(T(ii), {
|
|
24022
24021
|
as: "div",
|
|
24023
24022
|
modelValue: o.value,
|
|
24024
24023
|
"onUpdate:modelValue": s[0] || (s[0] = (a) => o.value = a)
|
|
24025
24024
|
}, {
|
|
24026
24025
|
default: z(() => [
|
|
24027
24026
|
g("div", K6, [
|
|
24028
|
-
|
|
24027
|
+
$(T(si), { class: "myPrimarySelect" }, {
|
|
24029
24028
|
default: z(() => [
|
|
24030
24029
|
g("span", G6, [
|
|
24031
24030
|
o.value === "none" ? (S(), O("div", J6, s[1] || (s[1] = [
|
|
24032
24031
|
g("div", { class: "myPrimaryColorPreview border-none" }, [
|
|
24033
24032
|
g("span", { class: "material-symbols-outlined" }, " ev_shadow ")
|
|
24034
24033
|
], -1)
|
|
24035
|
-
]))) :
|
|
24034
|
+
]))) : R("", !0),
|
|
24036
24035
|
o.value !== "none" ? (S(), O("div", {
|
|
24037
24036
|
key: 1,
|
|
24038
24037
|
class: X(["aspect-square w-6 h-6 bg-gray-950", `${o.value}`])
|
|
24039
|
-
}, null, 2)) :
|
|
24038
|
+
}, null, 2)) : R("", !0),
|
|
24040
24039
|
g("span", {
|
|
24041
24040
|
class: X(["block truncate", [(o.value !== "none", "")]])
|
|
24042
24041
|
}, F(o.value === "none" ? "Transparent" : o.value), 3)
|
|
@@ -24048,13 +24047,13 @@ const en = /* @__PURE__ */ ec(A6, [["render", I6]]), D6 = { class: "flex flex-ro
|
|
|
24048
24047
|
_: 1,
|
|
24049
24048
|
__: [2]
|
|
24050
24049
|
}),
|
|
24051
|
-
|
|
24050
|
+
$(Dt, {
|
|
24052
24051
|
"leave-active-class": "transition ease-in duration-100",
|
|
24053
24052
|
"leave-from-class": "opacity-100",
|
|
24054
24053
|
"leave-to-class": "opacity-0"
|
|
24055
24054
|
}, {
|
|
24056
24055
|
default: z(() => [
|
|
24057
|
-
|
|
24056
|
+
$(T(ai), { class: "absolute z-10 mt-1 max-h-56 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm" }, {
|
|
24058
24057
|
default: z(() => [
|
|
24059
24058
|
(S(!0), O(ve, null, Le(T(ns).backgroundOpacities, (a) => (S(), xe(T(li), {
|
|
24060
24059
|
as: "template",
|
|
@@ -24074,13 +24073,13 @@ const en = /* @__PURE__ */ ec(A6, [["render", I6]]), D6 = { class: "flex flex-ro
|
|
|
24074
24073
|
g("div", { class: "myPrimaryColorPreview border-none" }, [
|
|
24075
24074
|
g("span", { class: "material-symbols-outlined" }, " ev_shadow ")
|
|
24076
24075
|
], -1)
|
|
24077
|
-
]))) :
|
|
24076
|
+
]))) : R("", !0),
|
|
24078
24077
|
a !== "none" ? (S(), O("div", {
|
|
24079
24078
|
key: 1,
|
|
24080
24079
|
class: X(["aspect-square w-6 h-6 bg-gray-950", `${a}`])
|
|
24081
|
-
}, null, 2)) :
|
|
24082
|
-
a !== "none" ? (S(), O("span", Q6, F(a), 1)) :
|
|
24083
|
-
a === "none" ? (S(), O("span", Z6, "Transparent")) :
|
|
24080
|
+
}, null, 2)) : R("", !0),
|
|
24081
|
+
a !== "none" ? (S(), O("span", Q6, F(a), 1)) : R("", !0),
|
|
24082
|
+
a === "none" ? (S(), O("span", Z6, "Transparent")) : R("", !0)
|
|
24084
24083
|
])
|
|
24085
24084
|
], 2)
|
|
24086
24085
|
]),
|
|
@@ -24116,25 +24115,25 @@ const en = /* @__PURE__ */ ec(A6, [["render", I6]]), D6 = { class: "flex flex-ro
|
|
|
24116
24115
|
{ immediate: !0 }
|
|
24117
24116
|
), (i, s) => (S(), O("div", tS, [
|
|
24118
24117
|
s[4] || (s[4] = g("label", { class: "myPrimaryInputLabel" }, " Opacity", -1)),
|
|
24119
|
-
|
|
24118
|
+
$(T(ii), {
|
|
24120
24119
|
as: "div",
|
|
24121
24120
|
modelValue: o.value,
|
|
24122
24121
|
"onUpdate:modelValue": s[0] || (s[0] = (a) => o.value = a)
|
|
24123
24122
|
}, {
|
|
24124
24123
|
default: z(() => [
|
|
24125
24124
|
g("div", rS, [
|
|
24126
|
-
|
|
24125
|
+
$(T(si), { class: "myPrimarySelect" }, {
|
|
24127
24126
|
default: z(() => [
|
|
24128
24127
|
g("span", oS, [
|
|
24129
24128
|
o.value === "none" ? (S(), O("div", nS, s[1] || (s[1] = [
|
|
24130
24129
|
g("div", { class: "myPrimaryColorPreview border-none" }, [
|
|
24131
24130
|
g("span", { class: "material-symbols-outlined" }, " ev_shadow ")
|
|
24132
24131
|
], -1)
|
|
24133
|
-
]))) :
|
|
24132
|
+
]))) : R("", !0),
|
|
24134
24133
|
o.value !== "none" ? (S(), O("div", {
|
|
24135
24134
|
key: 1,
|
|
24136
24135
|
class: X(["aspect-square w-6 h-6 bg-gray-950", `${o.value}`])
|
|
24137
|
-
}, null, 2)) :
|
|
24136
|
+
}, null, 2)) : R("", !0),
|
|
24138
24137
|
g("span", {
|
|
24139
24138
|
class: X(["block truncate", [(o.value !== "none", "")]])
|
|
24140
24139
|
}, F(o.value === "none" ? "Transparent" : o.value), 3)
|
|
@@ -24146,13 +24145,13 @@ const en = /* @__PURE__ */ ec(A6, [["render", I6]]), D6 = { class: "flex flex-ro
|
|
|
24146
24145
|
_: 1,
|
|
24147
24146
|
__: [2]
|
|
24148
24147
|
}),
|
|
24149
|
-
|
|
24148
|
+
$(Dt, {
|
|
24150
24149
|
"leave-active-class": "transition ease-in duration-100",
|
|
24151
24150
|
"leave-from-class": "opacity-100",
|
|
24152
24151
|
"leave-to-class": "opacity-0"
|
|
24153
24152
|
}, {
|
|
24154
24153
|
default: z(() => [
|
|
24155
|
-
|
|
24154
|
+
$(T(ai), { class: "absolute z-10 mt-1 max-h-56 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm" }, {
|
|
24156
24155
|
default: z(() => [
|
|
24157
24156
|
(S(!0), O(ve, null, Le(T(ns).opacities, (a) => (S(), xe(T(li), {
|
|
24158
24157
|
as: "template",
|
|
@@ -24172,13 +24171,13 @@ const en = /* @__PURE__ */ ec(A6, [["render", I6]]), D6 = { class: "flex flex-ro
|
|
|
24172
24171
|
g("div", { class: "myPrimaryColorPreview border-none" }, [
|
|
24173
24172
|
g("span", { class: "material-symbols-outlined" }, " ev_shadow ")
|
|
24174
24173
|
], -1)
|
|
24175
|
-
]))) :
|
|
24174
|
+
]))) : R("", !0),
|
|
24176
24175
|
a !== "none" ? (S(), O("div", {
|
|
24177
24176
|
key: 1,
|
|
24178
24177
|
class: X(["aspect-square w-6 h-6 bg-gray-950", `${a}`])
|
|
24179
|
-
}, null, 2)) :
|
|
24180
|
-
a === "none" ? (S(), O("span", aS, "Transparent")) :
|
|
24181
|
-
a !== "none" ? (S(), O("span", lS, F(a), 1)) :
|
|
24178
|
+
}, null, 2)) : R("", !0),
|
|
24179
|
+
a === "none" ? (S(), O("span", aS, "Transparent")) : R("", !0),
|
|
24180
|
+
a !== "none" ? (S(), O("span", lS, F(a), 1)) : R("", !0)
|
|
24182
24181
|
])
|
|
24183
24182
|
], 2)
|
|
24184
24183
|
]),
|
|
@@ -24204,8 +24203,8 @@ const en = /* @__PURE__ */ ec(A6, [["render", I6]]), D6 = { class: "flex flex-ro
|
|
|
24204
24203
|
De("Opacity settings")
|
|
24205
24204
|
])),
|
|
24206
24205
|
content: z(() => [
|
|
24207
|
-
|
|
24208
|
-
|
|
24206
|
+
$(dS),
|
|
24207
|
+
$(eS)
|
|
24209
24208
|
]),
|
|
24210
24209
|
_: 1
|
|
24211
24210
|
}));
|
|
@@ -24504,14 +24503,14 @@ const en = /* @__PURE__ */ ec(A6, [["render", I6]]), D6 = { class: "flex flex-ro
|
|
|
24504
24503
|
])
|
|
24505
24504
|
]),
|
|
24506
24505
|
c[14] || (c[14] = g("label", { class: "myPrimaryInputLabel" }, " Border Color ", -1)),
|
|
24507
|
-
|
|
24506
|
+
$(T(ii), {
|
|
24508
24507
|
as: "div",
|
|
24509
24508
|
modelValue: i.value,
|
|
24510
24509
|
"onUpdate:modelValue": c[5] || (c[5] = (p) => i.value = p)
|
|
24511
24510
|
}, {
|
|
24512
24511
|
default: z(() => [
|
|
24513
24512
|
g("div", CS, [
|
|
24514
|
-
|
|
24513
|
+
$(T(si), { class: "myPrimarySelect" }, {
|
|
24515
24514
|
default: z(() => {
|
|
24516
24515
|
var p;
|
|
24517
24516
|
return [
|
|
@@ -24520,11 +24519,11 @@ const en = /* @__PURE__ */ ec(A6, [["render", I6]]), D6 = { class: "flex flex-ro
|
|
|
24520
24519
|
g("div", { class: "myPrimaryColorPreview border-none" }, [
|
|
24521
24520
|
g("span", { class: "material-symbols-outlined" }, " ev_shadow ")
|
|
24522
24521
|
], -1)
|
|
24523
|
-
]))) :
|
|
24522
|
+
]))) : R("", !0),
|
|
24524
24523
|
i.value !== "none" ? (S(), O("div", {
|
|
24525
24524
|
key: 1,
|
|
24526
24525
|
class: X(["aspect-square w-6 h-6 border border-gray-100 rounded-sm", `bg-${(p = i.value) == null ? void 0 : p.replace("border-", "")}`])
|
|
24527
|
-
}, null, 2)) :
|
|
24526
|
+
}, null, 2)) : R("", !0),
|
|
24528
24527
|
g("span", TS, F(i.value), 1)
|
|
24529
24528
|
]),
|
|
24530
24529
|
c[12] || (c[12] = g("span", { class: "pointer-events-none absolute inset-y-0 right-0 ml-3 flex items-center pr-2" }, [
|
|
@@ -24535,13 +24534,13 @@ const en = /* @__PURE__ */ ec(A6, [["render", I6]]), D6 = { class: "flex flex-ro
|
|
|
24535
24534
|
_: 1,
|
|
24536
24535
|
__: [12]
|
|
24537
24536
|
}),
|
|
24538
|
-
|
|
24537
|
+
$(Dt, {
|
|
24539
24538
|
"leave-active-class": "transition ease-in duration-100",
|
|
24540
24539
|
"leave-from-class": "opacity-100",
|
|
24541
24540
|
"leave-to-class": "opacity-0"
|
|
24542
24541
|
}, {
|
|
24543
24542
|
default: z(() => [
|
|
24544
|
-
|
|
24543
|
+
$(T(ai), { class: "absolute z-10 mt-1 max-h-56 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm" }, {
|
|
24545
24544
|
default: z(() => [
|
|
24546
24545
|
(S(!0), O(ve, null, Le(T($o).borderColor, (p) => (S(), xe(T(li), {
|
|
24547
24546
|
as: "template",
|
|
@@ -24561,13 +24560,13 @@ const en = /* @__PURE__ */ ec(A6, [["render", I6]]), D6 = { class: "flex flex-ro
|
|
|
24561
24560
|
g("div", { class: "myPrimaryColorPreview border-none" }, [
|
|
24562
24561
|
g("span", { class: "material-symbols-outlined" }, " ev_shadow ")
|
|
24563
24562
|
], -1)
|
|
24564
|
-
]))) :
|
|
24563
|
+
]))) : R("", !0),
|
|
24565
24564
|
p !== "none" ? (S(), O("div", {
|
|
24566
24565
|
key: 1,
|
|
24567
24566
|
class: X(["aspect-square w-6 h-6 bg-gray-950", `bg-${p.replace("border-", "")}`])
|
|
24568
|
-
}, null, 2)) :
|
|
24569
|
-
p === "none" ? (S(), O("span", AS, "Transparent")) :
|
|
24570
|
-
p !== "none" ? (S(), O("span", BS, F(p), 1)) :
|
|
24567
|
+
}, null, 2)) : R("", !0),
|
|
24568
|
+
p === "none" ? (S(), O("span", AS, "Transparent")) : R("", !0),
|
|
24569
|
+
p !== "none" ? (S(), O("span", BS, F(p), 1)) : R("", !0)
|
|
24571
24570
|
])
|
|
24572
24571
|
], 2)
|
|
24573
24572
|
]),
|
|
@@ -24607,7 +24606,7 @@ const en = /* @__PURE__ */ ec(A6, [["render", I6]]), D6 = { class: "flex flex-ro
|
|
|
24607
24606
|
g("span", null, "Edit text", -1)
|
|
24608
24607
|
]))
|
|
24609
24608
|
])
|
|
24610
|
-
])) :
|
|
24609
|
+
])) : R("", !0)
|
|
24611
24610
|
])
|
|
24612
24611
|
]));
|
|
24613
24612
|
}
|
|
@@ -24637,7 +24636,7 @@ const en = /* @__PURE__ */ ec(A6, [["render", I6]]), D6 = { class: "flex flex-ro
|
|
|
24637
24636
|
g("span", { class: "material-symbols-outlined" }, " undo ", -1),
|
|
24638
24637
|
g("span", null, "Undo", -1)
|
|
24639
24638
|
]))
|
|
24640
|
-
])) :
|
|
24639
|
+
])) : R("", !0),
|
|
24641
24640
|
o.value && !n.value ? (S(), O("div", zS, [
|
|
24642
24641
|
g("button", {
|
|
24643
24642
|
onClick: s[1] || (s[1] = (...a) => T(t).handleDeleteElement && T(t).handleDeleteElement(...a)),
|
|
@@ -24647,13 +24646,13 @@ const en = /* @__PURE__ */ ec(A6, [["render", I6]]), D6 = { class: "flex flex-ro
|
|
|
24647
24646
|
g("span", { class: "material-symbols-outlined" }, " delete ", -1),
|
|
24648
24647
|
g("span", { class: "hover:text-white" }, "Delete element", -1)
|
|
24649
24648
|
]))
|
|
24650
|
-
])) :
|
|
24649
|
+
])) : R("", !0)
|
|
24651
24650
|
])
|
|
24652
24651
|
]),
|
|
24653
24652
|
_: 1
|
|
24654
24653
|
}));
|
|
24655
24654
|
}
|
|
24656
|
-
}, FS = { class: "h-full w-80 bg-white" }, jS = { class: "h-screen flex flex-col" }, HS = { class: "flex flex-row justify-between pt-2.5 pr-4 pl-4 items-center mb-3" }, VS = { class: "font-medium text-sm" }, US = { class: "lowercase" },
|
|
24655
|
+
}, FS = { class: "h-full w-80 bg-white" }, jS = { class: "h-screen flex flex-col" }, HS = { class: "flex flex-row justify-between pt-2.5 pr-4 pl-4 items-center mb-3" }, VS = { class: "font-medium text-sm" }, US = { class: "lowercase" }, qS = { class: "pl-3 pr-3 mb-4 overflow-y-scroll md:pb-24 pb-12" }, WS = {
|
|
24657
24656
|
__name: "RightSidebarEditor",
|
|
24658
24657
|
emits: ["closeEditor"],
|
|
24659
24658
|
setup(r, { emit: e }) {
|
|
@@ -24676,37 +24675,37 @@ const en = /* @__PURE__ */ ec(A6, [["render", I6]]), D6 = { class: "flex flex-ro
|
|
|
24676
24675
|
g("span", US, "<" + F(n.value) + ">", 1)
|
|
24677
24676
|
])
|
|
24678
24677
|
]),
|
|
24679
|
-
g("div",
|
|
24678
|
+
g("div", qS, [
|
|
24680
24679
|
at(g("div", null, [
|
|
24681
24680
|
g("article", null, [
|
|
24682
|
-
|
|
24681
|
+
$(q6)
|
|
24683
24682
|
]),
|
|
24684
24683
|
g("article", null, [
|
|
24685
|
-
|
|
24684
|
+
$(RS)
|
|
24686
24685
|
]),
|
|
24687
|
-
|
|
24688
|
-
|
|
24686
|
+
R("", !0),
|
|
24687
|
+
R("", !0),
|
|
24689
24688
|
g("article", null, [
|
|
24690
|
-
|
|
24689
|
+
$(cS)
|
|
24691
24690
|
]),
|
|
24692
24691
|
g("article", null, [
|
|
24693
|
-
|
|
24692
|
+
$(gS)
|
|
24694
24693
|
]),
|
|
24695
24694
|
g("article", null, [
|
|
24696
|
-
|
|
24695
|
+
$(xS)
|
|
24697
24696
|
]),
|
|
24698
24697
|
g("article", null, [
|
|
24699
|
-
|
|
24698
|
+
$(LS)
|
|
24700
24699
|
]),
|
|
24701
24700
|
g("article", null, [
|
|
24702
|
-
|
|
24701
|
+
$(H6)
|
|
24703
24702
|
])
|
|
24704
24703
|
], 512), [
|
|
24705
|
-
[
|
|
24704
|
+
[Wg, i.value === !0]
|
|
24706
24705
|
]),
|
|
24707
24706
|
g("div", null, [
|
|
24708
24707
|
g("article", null, [
|
|
24709
|
-
|
|
24708
|
+
$(_S)
|
|
24710
24709
|
])
|
|
24711
24710
|
]),
|
|
24712
24711
|
a[3] || (a[3] = g("article", { class: "min-h-[12em]" }, null, -1))
|
|
@@ -24756,7 +24755,7 @@ const en = /* @__PURE__ */ ec(A6, [["render", I6]]), D6 = { class: "flex flex-ro
|
|
|
24756
24755
|
}
|
|
24757
24756
|
},
|
|
24758
24757
|
setup(r) {
|
|
24759
|
-
const e = "v3.
|
|
24758
|
+
const e = "v3.1.1", t = r, o = wf(), n = ed(o);
|
|
24760
24759
|
t.PageBuilderLogo && n.setPageBuilderLogo(t.PageBuilderLogo);
|
|
24761
24760
|
const i = L(() => n.getPageBuilderLogo);
|
|
24762
24761
|
t.resourceData && n.setCurrentResourceData(t.resourceData), t.userForPageBuilder && n.setCurrentUser(t.userForPageBuilder), n.setUpdateOrCreate(t.updateOrCreate);
|
|
@@ -24784,11 +24783,11 @@ const en = /* @__PURE__ */ ec(A6, [["render", I6]]), D6 = { class: "flex flex-ro
|
|
|
24784
24783
|
pe(A, (P, v) => {
|
|
24785
24784
|
((P == null ? void 0 : P.src) !== (v == null ? void 0 : v.src) || (P == null ? void 0 : P.href) !== (v == null ? void 0 : v.href) || (P == null ? void 0 : P.style) !== (v == null ? void 0 : v.style) || (P == null ? void 0 : P.class) !== (v == null ? void 0 : v.class) || (P == null ? void 0 : P.dataImage) !== (v == null ? void 0 : v.dataImage)) && (s.handlePageBuilderMethods(), s.setEventListenersForElements());
|
|
24786
24785
|
});
|
|
24787
|
-
const
|
|
24786
|
+
const H = function(P) {
|
|
24788
24787
|
n.setComponent(P);
|
|
24789
24788
|
}, _ = x(null);
|
|
24790
24789
|
return Se(async () => {
|
|
24791
|
-
s.updateLocalStorageItemName(), s.setEventListenersForElements(), s.loadExistingContent();
|
|
24790
|
+
s.updateLocalStorageItemName(), s.setEventListenersForElements(), s.loadExistingContent(), s.removeHoveredAndSelected();
|
|
24792
24791
|
}), (P, v) => (S(), O("div", KS, [
|
|
24793
24792
|
m.value ? (S(), xe(vk, {
|
|
24794
24793
|
key: 0,
|
|
@@ -24797,13 +24796,13 @@ const en = /* @__PURE__ */ ec(A6, [["render", I6]]), D6 = { class: "flex flex-ro
|
|
|
24797
24796
|
title: h.value,
|
|
24798
24797
|
CustomSearchComponent: t.CustomSearchComponent,
|
|
24799
24798
|
onFirstModalButtonSearchComponentsFunction: b.value
|
|
24800
|
-
}, null, 8, ["show", "firstButtonText", "title", "CustomSearchComponent", "onFirstModalButtonSearchComponentsFunction"])) :
|
|
24801
|
-
|
|
24799
|
+
}, null, 8, ["show", "firstButtonText", "title", "CustomSearchComponent", "onFirstModalButtonSearchComponentsFunction"])) : R("", !0),
|
|
24800
|
+
$(lm, {
|
|
24802
24801
|
show: c.value,
|
|
24803
24802
|
onFirstPageBuilderPreviewModalButton: p.value
|
|
24804
24803
|
}, {
|
|
24805
24804
|
default: z(() => [
|
|
24806
|
-
|
|
24805
|
+
$(dm)
|
|
24807
24806
|
]),
|
|
24808
24807
|
_: 1
|
|
24809
24808
|
}, 8, ["show", "onFirstPageBuilderPreviewModalButton"]),
|
|
@@ -24820,7 +24819,7 @@ const en = /* @__PURE__ */ ec(A6, [["render", I6]]), D6 = { class: "flex flex-ro
|
|
|
24820
24819
|
src: i.value,
|
|
24821
24820
|
alt: "Logo"
|
|
24822
24821
|
}, null, 8, QS)
|
|
24823
|
-
])) :
|
|
24822
|
+
])) : R("", !0),
|
|
24824
24823
|
g("button", {
|
|
24825
24824
|
class: "myPrimaryButton lg:text-sm text-[10px] lg:py-2 py-2 min-h-2 ml-4",
|
|
24826
24825
|
onClick: v[0] || (v[0] = (...I) => T(s).saveComponentsLocalStorage && T(s).saveComponentsLocalStorage(...I)),
|
|
@@ -24915,7 +24914,7 @@ const en = /* @__PURE__ */ ec(A6, [["render", I6]]), D6 = { class: "flex flex-ro
|
|
|
24915
24914
|
g("div", {
|
|
24916
24915
|
onClick: v[5] || (v[5] = Po((I) => T(n).setComponent(null), ["self"]))
|
|
24917
24916
|
}, [
|
|
24918
|
-
k.value ? (S(), xe(_0, { key: 0 })) :
|
|
24917
|
+
k.value ? (S(), xe(_0, { key: 0 })) : R("", !0)
|
|
24919
24918
|
])
|
|
24920
24919
|
])
|
|
24921
24920
|
]),
|
|
@@ -24935,7 +24934,7 @@ const en = /* @__PURE__ */ ec(A6, [["render", I6]]), D6 = { class: "flex flex-ro
|
|
|
24935
24934
|
onClick: v[8] || (v[8] = Po((I) => T(n).setComponent(null), ["self"])),
|
|
24936
24935
|
class: "w-4/12 flex justify-center py-2"
|
|
24937
24936
|
}, [
|
|
24938
|
-
|
|
24937
|
+
$(P6, { onPreviewCurrentDesign: d })
|
|
24939
24938
|
]),
|
|
24940
24939
|
g("div", {
|
|
24941
24940
|
onClick: v[12] || (v[12] = Po((I) => T(n).setComponent(null), ["self"])),
|
|
@@ -24982,12 +24981,12 @@ const en = /* @__PURE__ */ ec(A6, [["render", I6]]), D6 = { class: "flex flex-ro
|
|
|
24982
24981
|
g("span", { class: "myMediumIcon material-symbols-outlined" }, " tune ")
|
|
24983
24982
|
])
|
|
24984
24983
|
], -1)
|
|
24985
|
-
]))) :
|
|
24984
|
+
]))) : R("", !0)
|
|
24986
24985
|
])
|
|
24987
24986
|
])
|
|
24988
24987
|
])
|
|
24989
24988
|
]),
|
|
24990
|
-
|
|
24989
|
+
$(U4),
|
|
24991
24990
|
g("div", EC, [
|
|
24992
24991
|
g("div", MC, [
|
|
24993
24992
|
g("div", {
|
|
@@ -25000,7 +24999,7 @@ const en = /* @__PURE__ */ ec(A6, [["render", I6]]), D6 = { class: "flex flex-ro
|
|
|
25000
24999
|
class: "bg-white grow"
|
|
25001
25000
|
}, [
|
|
25002
25001
|
g("div", {
|
|
25003
|
-
onMouseup: (
|
|
25002
|
+
onMouseup: (W) => H(I),
|
|
25004
25003
|
class: "relative group"
|
|
25005
25004
|
}, [
|
|
25006
25005
|
g("div", {
|
|
@@ -25025,7 +25024,7 @@ const en = /* @__PURE__ */ ec(A6, [["render", I6]]), D6 = { class: "flex flex-ro
|
|
|
25025
25024
|
"aria-label": "Menu",
|
|
25026
25025
|
class: X([{ "w-0": !l.value, "w-80 ml-4": l.value }, "h-full duration-300 z-20 flex-shrink-0 overflow-hidden shadow-2xl rounded-l-2xl bg-white"])
|
|
25027
25026
|
}, [
|
|
25028
|
-
|
|
25027
|
+
$(WS, {
|
|
25029
25028
|
onCloseEditor: v[14] || (v[14] = (I) => T(n).setMenuRight(!1))
|
|
25030
25029
|
})
|
|
25031
25030
|
], 2)
|