@myissue/vue-website-page-builder 3.4.28 → 3.4.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@ var u1 = Object.defineProperty;
2
2
  var f1 = (n, e, t) => e in n ? u1(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
3
  var be = (n, e, t) => f1(n, typeof e != "symbol" ? e + "" : e, t);
4
4
  import * as vd from "vue";
5
- import { defineComponent as it, computed as $, createBlock as fe, openBlock as w, Teleport as h1, createElementVNode as c, createElementBlock as k, createCommentVNode as L, normalizeClass as K, toDisplayString as T, renderSlot as pr, ref as M, watchEffect as io, Fragment as X, withCtx as j, nextTick as oe, readonly as m1, createVNode as z, unref as y, shallowRef as b1, onMounted as gn, onBeforeUnmount as Ds, h as Un, getCurrentInstance as Ac, markRaw as In, customRef as g1, effectScope as Oc, toRaw as Je, hasInjectionContext as x1, inject as Gn, watch as ee, reactive as y1, isRef as $o, isReactive as Tl, toRef as Zs, getCurrentScope as v1, onScopeDispose as w1, toRefs as wd, onBeforeMount as S1, withDirectives as xe, vModelText as vr, createTextVNode as Se, provide as Ln, resolveDynamicComponent as Dc, cloneVNode as C1, onUnmounted as T1, Transition as Pr, renderList as ue, withKeys as _a, withModifiers as Ct, vShow as Na, vModelSelect as Qe } from "vue";
5
+ import { defineComponent as it, computed as $, createBlock as fe, openBlock as w, Teleport as h1, createElementVNode as c, createElementBlock as M, createCommentVNode as L, normalizeClass as K, toDisplayString as T, renderSlot as pr, ref as k, watchEffect as io, Fragment as X, withCtx as j, nextTick as oe, readonly as m1, createVNode as z, unref as y, shallowRef as b1, onMounted as gn, onBeforeUnmount as Ds, h as Un, getCurrentInstance as Ac, markRaw as In, customRef as g1, effectScope as Oc, toRaw as Je, hasInjectionContext as x1, inject as Gn, watch as ee, reactive as y1, isRef as $o, isReactive as Tl, toRef as Zs, getCurrentScope as v1, onScopeDispose as w1, toRefs as wd, onBeforeMount as S1, withDirectives as xe, vModelText as vr, createTextVNode as Se, provide as Ln, resolveDynamicComponent as Dc, cloneVNode as C1, onUnmounted as T1, Transition as Pr, renderList as ue, withKeys as _a, withModifiers as Ct, vShow as Na, vModelSelect as Qe } from "vue";
6
6
  const k1 = { class: "pbx-font-sans" }, M1 = {
7
7
  key: 0,
8
8
  class: "pbx-fixed pbx-inset-0 pbx-z-40 pbx-flex pbx-items-center pbx-justify-center pbx-mx-4",
@@ -60,7 +60,7 @@ const k1 = { class: "pbx-font-sans" }, M1 = {
60
60
  })[t.maxWidth]);
61
61
  return (s, a) => (w(), fe(h1, { to: "body" }, [
62
62
  c("div", k1, [
63
- n.showModalBuilder ? (w(), k("div", M1, [
63
+ n.showModalBuilder ? (w(), M("div", M1, [
64
64
  c("div", {
65
65
  class: K(["pbx-fixed pbx-inset-0 pbx-bg-black/50 pbx-transition-opacity", [n.noBackgroundOpacity ? "pbx-bg-black/100" : ""]]),
66
66
  onClick: o
@@ -112,7 +112,7 @@ const k1 = { class: "pbx-font-sans" }, M1 = {
112
112
  }
113
113
  },
114
114
  setup(n) {
115
- const e = n, t = M(""), r = M(null), o = localStorage.getItem("preview");
115
+ const e = n, t = k(""), r = k(null), o = localStorage.getItem("preview");
116
116
  if (o)
117
117
  try {
118
118
  const i = JSON.parse(o);
@@ -129,8 +129,8 @@ const k1 = { class: "pbx-font-sans" }, M1 = {
129
129
  s.head.appendChild(a.cloneNode(!0));
130
130
  });
131
131
  }
132
- }), (i, s) => (w(), k(X, null, [
133
- n.mobile ? L("", !0) : (w(), k("div", B1, [
132
+ }), (i, s) => (w(), M(X, null, [
133
+ n.mobile ? L("", !0) : (w(), M("div", B1, [
134
134
  c("div", P1, [
135
135
  c("div", L1, [
136
136
  c("div", {
@@ -140,7 +140,7 @@ const k1 = { class: "pbx-font-sans" }, M1 = {
140
140
  ])
141
141
  ])
142
142
  ])),
143
- n.mobile ? (w(), k("div", O1, [
143
+ n.mobile ? (w(), M("div", O1, [
144
144
  c("iframe", {
145
145
  ref_key: "iframeRef",
146
146
  ref: r,
@@ -240,7 +240,7 @@ const k1 = { class: "pbx-font-sans" }, M1 = {
240
240
  c("div", {
241
241
  class: K({ "pbx-pr-4 pbx-pb-4": !n.simpleModal })
242
242
  }, [
243
- n.simpleModal !== !0 ? (w(), k("div", {
243
+ n.simpleModal !== !0 ? (w(), M("div", {
244
244
  key: 0,
245
245
  innerHTML: n.description,
246
246
  class: "pbx-myPrimaryParagraph pbx-mb-6"
@@ -250,7 +250,7 @@ const k1 = { class: "pbx-font-sans" }, M1 = {
250
250
  ], 2)
251
251
  ]),
252
252
  c("div", $1, [
253
- n.simpleModal !== !0 && !n.isLoading ? (w(), k("div", _1, [
253
+ n.simpleModal !== !0 && !n.isLoading ? (w(), M("div", _1, [
254
254
  pr(s.$slots, "footer"),
255
255
  c("div", {
256
256
  class: K([{
@@ -259,20 +259,20 @@ const k1 = { class: "pbx-font-sans" }, M1 = {
259
259
  "sm:pbx-grid-cols-3": n.gridColumnAmount === 3
260
260
  }, "sm:pbx-items-end sm:pbx-justify-end pbx-flex sm:pbx-flex-row pbx-flex-col pbx-myPrimaryGap sm:pbx-w-5/6 pbx-w-full"])
261
261
  }, [
262
- n.firstButtonText ? (w(), k("button", {
262
+ n.firstButtonText ? (w(), M("button", {
263
263
  key: 0,
264
264
  ref: "firstButtonRef",
265
265
  class: "pbx-mySecondaryButton",
266
266
  type: "button",
267
267
  onClick: r
268
268
  }, T(n.firstButtonText), 513)) : L("", !0),
269
- n.secondButtonText ? (w(), k("button", {
269
+ n.secondButtonText ? (w(), M("button", {
270
270
  key: 1,
271
271
  class: "pbx-myPrimaryButton pbx-bg-yellow-300 hover:pbx-bg-yellow-400 pbx-text-myPrimaryDarkGrayColor hover:pbx-text-myPrimaryDarkGrayColor focus:pbx-ring-yellow-400 pbx-w-full",
272
272
  type: "button",
273
273
  onClick: o
274
274
  }, T(n.secondButtonText), 1)) : L("", !0),
275
- n.thirdButtonText ? (w(), k("button", {
275
+ n.thirdButtonText ? (w(), M("button", {
276
276
  key: 2,
277
277
  class: K(["pbx-myPrimaryButton pbx-bg-myPrimaryLinkColor focus-visible:pbx-ring-myPrimaryLinkColor focus:pbx-ring-myPrimaryLinkColor hover:pbx-bg-myPrimaryLinkColor pbx-w-full", [
278
278
  n.type === "danger" || n.type === "delete" ? "pbx-bg-red-600 focus-visible:pbx-ring-red-600 focus:pbx-ring-red-600 hover:pbx-bg-red-600" : "pbx-bg-myPrimaryLinkColor focus-visible:pbx-ring-myPrimaryLinkColor focus:pbx-ring-myPrimaryLinkColor hover:pbx-bg-myPrimaryLinkColor"
@@ -282,7 +282,7 @@ const k1 = { class: "pbx-font-sans" }, M1 = {
282
282
  }, T(n.thirdButtonText), 3)) : L("", !0)
283
283
  ], 2)
284
284
  ])) : L("", !0),
285
- n.isLoading ? (w(), k("div", N1, a[0] || (a[0] = [
285
+ n.isLoading ? (w(), M("div", N1, a[0] || (a[0] = [
286
286
  c("div", { class: "pbx-inline-block pbx-h-8 pbx-w-8 pbx-animate-spin pbx-rounded-full pbx-border-4 pbx-border-solid pbx-border-current pbx-border-r-transparent pbx-align-[-0.125em] motion-reduce:pbx-animate-[spin_1.5s_linear_infinite]" }, [
287
287
  c("span", { class: "!pbx-absolute !pbx-m-px !pbx-h-px !pbx-w-px !pbx-overflow-hidden !pbx-whitespace-nowrap !pbx-border-0 !pbx-p-0 !pbx-[clip:rect(0,0,0,0)]" }, "Loading...")
288
288
  ], -1)
@@ -1367,11 +1367,11 @@ function H1() {
1367
1367
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
1368
1368
  return hi(R1);
1369
1369
  }
1370
- const Fe = [];
1370
+ const He = [];
1371
1371
  for (let n = 0; n < 256; ++n)
1372
- Fe.push((n + 256).toString(16).slice(1));
1372
+ He.push((n + 256).toString(16).slice(1));
1373
1373
  function F1(n, e = 0) {
1374
- return Fe[n[e + 0]] + Fe[n[e + 1]] + Fe[n[e + 2]] + Fe[n[e + 3]] + "-" + Fe[n[e + 4]] + Fe[n[e + 5]] + "-" + Fe[n[e + 6]] + Fe[n[e + 7]] + "-" + Fe[n[e + 8]] + Fe[n[e + 9]] + "-" + Fe[n[e + 10]] + Fe[n[e + 11]] + Fe[n[e + 12]] + Fe[n[e + 13]] + Fe[n[e + 14]] + Fe[n[e + 15]];
1374
+ return He[n[e + 0]] + He[n[e + 1]] + He[n[e + 2]] + He[n[e + 3]] + "-" + He[n[e + 4]] + He[n[e + 5]] + "-" + He[n[e + 6]] + He[n[e + 7]] + "-" + He[n[e + 8]] + He[n[e + 9]] + "-" + He[n[e + 10]] + He[n[e + 11]] + He[n[e + 12]] + He[n[e + 13]] + He[n[e + 14]] + He[n[e + 15]];
1375
1375
  }
1376
1376
  const z1 = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Cd = {
1377
1377
  randomUUID: z1
@@ -2794,7 +2794,7 @@ ${s}
2794
2794
  return;
2795
2795
  const o = this.getElement.value.closest("a"), i = this.getElement.value.querySelector("a");
2796
2796
  this.pageBuilderStateStore.setHyperlinkError(null);
2797
- const s = /^https?:\/\//, a = M(!0);
2797
+ const s = /^https?:\/\//, a = k(!0);
2798
2798
  if (e === !0 && t !== null && (a.value = s.test(t)), a.value === !1) {
2799
2799
  this.pageBuilderStateStore.setHyperlinkMessage(null), this.pageBuilderStateStore.setHyperlinkError("URL is not valid");
2800
2800
  return;
@@ -5290,16 +5290,16 @@ const $c = "حفظ", _c = "خيارات", Nc = "الصورة الرمزية", Rc
5290
5290
  default: dw,
5291
5291
  property: jx,
5292
5292
  value: qx
5293
- }, Symbol.toStringTag, { value: "Module" })), cw = /* @__PURE__ */ Object.assign({ "../locales/ar.json": U1, "../locales/de.json": K1, "../locales/en.json": Y1, "../locales/es.json": X1, "../locales/fr.json": ew, "../locales/hi.json": nw, "../locales/ja.json": ow, "../locales/pt.json": sw, "../locales/ru.json": lw, "../locales/zh-Hans.json": pw }), Ra = M({});
5293
+ }, Symbol.toStringTag, { value: "Module" })), cw = /* @__PURE__ */ Object.assign({ "../locales/ar.json": U1, "../locales/de.json": K1, "../locales/en.json": Y1, "../locales/es.json": X1, "../locales/fr.json": ew, "../locales/hi.json": nw, "../locales/ja.json": ow, "../locales/pt.json": sw, "../locales/ru.json": lw, "../locales/zh-Hans.json": pw }), Ra = k({});
5294
5294
  async function my(n) {
5295
5295
  try {
5296
5296
  const e = `../locales/${n}.json`, t = cw[e];
5297
- if (t && "default" in t)
5297
+ if (t && typeof t == "object" && "default" in t)
5298
5298
  Ra.value = t.default;
5299
5299
  else
5300
5300
  throw new Error("Locale not found");
5301
5301
  } catch (e) {
5302
- console.error(`højo - Could not load translations for language: ${n}`, e), n !== "en" && await my("en");
5302
+ console.error(`Could not load translations for language: ${n}`, e), n !== "en" && await my("en");
5303
5303
  }
5304
5304
  }
5305
5305
  function Me() {
@@ -5315,14 +5315,14 @@ function Me() {
5315
5315
  const uw = { class: "pbx-flex pbx-flex-col pbx-items-center pbx-justify-center pbx-myPrimaryGap" }, fw = { class: "pbx-flex pbx-gap-2 pbx-items-center pbx-justify-center" }, hw = ["disabled"], mw = ["disabled"], bw = {
5316
5316
  __name: "ComponentTopMenu",
5317
5317
  setup(n) {
5318
- const { translate: e } = Me(), t = ke(), r = M(!1), o = M(""), i = M(1), s = M(""), a = M(""), l = M(""), d = M(null), p = M(null), u = M(null), f = M(null), h = M(null), m = $(() => t.canMoveUp()), g = $(() => t.canMoveDown()), b = function() {
5318
+ const { translate: e } = Me(), t = ke(), r = k(!1), o = k(""), i = k(1), s = k(""), a = k(""), l = k(""), d = k(null), p = k(null), u = k(null), f = k(null), h = k(null), m = $(() => t.canMoveUp()), g = $(() => t.canMoveDown()), b = function() {
5319
5319
  r.value = !0, o.value = "delete", i.value = 2, s.value = e("Remove Component?"), a.value = e("Are you sure you want to remove this Component?"), l.value = e("Close"), d.value = null, p.value = e("Delete"), u.value = function() {
5320
5320
  r.value = !1;
5321
5321
  }, h.value = async function() {
5322
5322
  await t.deleteComponentFromDOM(), r.value = !1;
5323
5323
  };
5324
5324
  };
5325
- return (v, S) => (w(), k(X, null, [
5325
+ return (v, S) => (w(), M(X, null, [
5326
5326
  z(zn, {
5327
5327
  showDynamicModalBuilder: r.value,
5328
5328
  type: o.value,
@@ -5376,11 +5376,11 @@ const uw = { class: "pbx-flex pbx-flex-col pbx-items-center pbx-justify-center p
5376
5376
  ], 64));
5377
5377
  }
5378
5378
  };
5379
- function ze(n) {
5379
+ function Fe(n) {
5380
5380
  this.content = n;
5381
5381
  }
5382
- ze.prototype = {
5383
- constructor: ze,
5382
+ Fe.prototype = {
5383
+ constructor: Fe,
5384
5384
  find: function(n) {
5385
5385
  for (var e = 0; e < this.content.length; e += 2)
5386
5386
  if (this.content[e] === n) return e;
@@ -5399,7 +5399,7 @@ ze.prototype = {
5399
5399
  // given, the key of the binding will be replaced with that key.
5400
5400
  update: function(n, e, t) {
5401
5401
  var r = t && t != n ? this.remove(t) : this, o = r.find(n), i = r.content.slice();
5402
- return o == -1 ? i.push(t || n, e) : (i[o + 1] = e, t && (i[o] = t)), new ze(i);
5402
+ return o == -1 ? i.push(t || n, e) : (i[o + 1] = e, t && (i[o] = t)), new Fe(i);
5403
5403
  },
5404
5404
  // :: (string) → OrderedMap
5405
5405
  // Return a map with the given key removed, if it existed.
@@ -5407,25 +5407,25 @@ ze.prototype = {
5407
5407
  var e = this.find(n);
5408
5408
  if (e == -1) return this;
5409
5409
  var t = this.content.slice();
5410
- return t.splice(e, 2), new ze(t);
5410
+ return t.splice(e, 2), new Fe(t);
5411
5411
  },
5412
5412
  // :: (string, any) → OrderedMap
5413
5413
  // Add a new key to the start of the map.
5414
5414
  addToStart: function(n, e) {
5415
- return new ze([n, e].concat(this.remove(n).content));
5415
+ return new Fe([n, e].concat(this.remove(n).content));
5416
5416
  },
5417
5417
  // :: (string, any) → OrderedMap
5418
5418
  // Add a new key to the end of the map.
5419
5419
  addToEnd: function(n, e) {
5420
5420
  var t = this.remove(n).content.slice();
5421
- return t.push(n, e), new ze(t);
5421
+ return t.push(n, e), new Fe(t);
5422
5422
  },
5423
5423
  // :: (string, string, any) → OrderedMap
5424
5424
  // Add a key after the given key. If `place` is not found, the new
5425
5425
  // key is added to the end.
5426
5426
  addBefore: function(n, e, t) {
5427
5427
  var r = this.remove(e), o = r.content.slice(), i = r.find(n);
5428
- return o.splice(i == -1 ? o.length : i, 0, e, t), new ze(o);
5428
+ return o.splice(i == -1 ? o.length : i, 0, e, t), new Fe(o);
5429
5429
  },
5430
5430
  // :: ((key: string, value: any))
5431
5431
  // Call the given function for each key/value pair in the map, in
@@ -5438,20 +5438,20 @@ ze.prototype = {
5438
5438
  // Create a new map by prepending the keys in this map that don't
5439
5439
  // appear in `map` before the keys in `map`.
5440
5440
  prepend: function(n) {
5441
- return n = ze.from(n), n.size ? new ze(n.content.concat(this.subtract(n).content)) : this;
5441
+ return n = Fe.from(n), n.size ? new Fe(n.content.concat(this.subtract(n).content)) : this;
5442
5442
  },
5443
5443
  // :: (union<Object, OrderedMap>) → OrderedMap
5444
5444
  // Create a new map by appending the keys in this map that don't
5445
5445
  // appear in `map` after the keys in `map`.
5446
5446
  append: function(n) {
5447
- return n = ze.from(n), n.size ? new ze(this.subtract(n).content.concat(n.content)) : this;
5447
+ return n = Fe.from(n), n.size ? new Fe(this.subtract(n).content.concat(n.content)) : this;
5448
5448
  },
5449
5449
  // :: (union<Object, OrderedMap>) → OrderedMap
5450
5450
  // Create a map containing all the keys in this map that don't
5451
5451
  // appear in `map`.
5452
5452
  subtract: function(n) {
5453
5453
  var e = this;
5454
- n = ze.from(n);
5454
+ n = Fe.from(n);
5455
5455
  for (var t = 0; t < n.content.length; t += 2)
5456
5456
  e = e.remove(n.content[t]);
5457
5457
  return e;
@@ -5470,11 +5470,11 @@ ze.prototype = {
5470
5470
  return this.content.length >> 1;
5471
5471
  }
5472
5472
  };
5473
- ze.from = function(n) {
5474
- if (n instanceof ze) return n;
5473
+ Fe.from = function(n) {
5474
+ if (n instanceof Fe) return n;
5475
5475
  var e = [];
5476
5476
  if (n) for (var t in n) e.push(t, n[t]);
5477
- return new ze(e);
5477
+ return new Fe(e);
5478
5478
  };
5479
5479
  function by(n, e, t) {
5480
5480
  for (let r = 0; ; r++) {
@@ -7428,7 +7428,7 @@ class Ay {
7428
7428
  let t = this.spec = {};
7429
7429
  for (let o in e)
7430
7430
  t[o] = e[o];
7431
- t.nodes = ze.from(e.nodes), t.marks = ze.from(e.marks || {}), this.nodes = Bd.compile(this.spec.nodes, this), this.marks = Is.compile(this.spec.marks, this);
7431
+ t.nodes = Fe.from(e.nodes), t.marks = Fe.from(e.marks || {}), this.nodes = Bd.compile(this.spec.nodes, this), this.marks = Is.compile(this.spec.marks, this);
7432
7432
  let r = /* @__PURE__ */ Object.create(null);
7433
7433
  for (let o in this.nodes) {
7434
7434
  if (o in this.marks)
@@ -10501,7 +10501,7 @@ class st {
10501
10501
  return e[this.key];
10502
10502
  }
10503
10503
  }
10504
- const Ve = function(n) {
10504
+ const ze = function(n) {
10505
10505
  for (var e = 0; ; e++)
10506
10506
  if (n = n.previousSibling, !n)
10507
10507
  return e;
@@ -10526,7 +10526,7 @@ function qd(n, e, t, r, o) {
10526
10526
  let s = n.parentNode;
10527
10527
  if (!s || s.nodeType != 1 || ei(n) || fS.test(n.nodeName) || n.contentEditable == "false")
10528
10528
  return !1;
10529
- e = Ve(n) + (o < 0 ? 0 : 1), n = s;
10529
+ e = ze(n) + (o < 0 ? 0 : 1), n = s;
10530
10530
  } else if (n.nodeType == 1) {
10531
10531
  let s = n.childNodes[e + (o < 0 ? -1 : 0)];
10532
10532
  if (s.nodeType == 1 && s.contentEditable == "false")
@@ -10552,7 +10552,7 @@ function hS(n, e) {
10552
10552
  return null;
10553
10553
  n = n.childNodes[e - 1], e = Et(n);
10554
10554
  } else if (n.parentNode && !ei(n))
10555
- e = Ve(n), n = n.parentNode;
10555
+ e = ze(n), n = n.parentNode;
10556
10556
  else
10557
10557
  return null;
10558
10558
  }
@@ -10566,7 +10566,7 @@ function mS(n, e) {
10566
10566
  return null;
10567
10567
  n = n.childNodes[e], e = 0;
10568
10568
  } else if (n.parentNode && !ei(n))
10569
- e = Ve(n) + 1, n = n.parentNode;
10569
+ e = ze(n) + 1, n = n.parentNode;
10570
10570
  else
10571
10571
  return null;
10572
10572
  }
@@ -10575,7 +10575,7 @@ function bS(n, e, t) {
10575
10575
  for (let r = e == 0, o = e == Et(n); r || o; ) {
10576
10576
  if (n == t)
10577
10577
  return !0;
10578
- let i = Ve(n);
10578
+ let i = ze(n);
10579
10579
  if (n = n.parentNode, !n)
10580
10580
  return !1;
10581
10581
  r = r && i == 0, o = o && i == Et(n);
@@ -11046,7 +11046,7 @@ class ni {
11046
11046
  }
11047
11047
  let o;
11048
11048
  if (e == this.dom && this.contentDOM)
11049
- o = t > Ve(this.contentDOM);
11049
+ o = t > ze(this.contentDOM);
11050
11050
  else if (this.contentDOM && this.contentDOM != this.dom && this.dom.contains(this.contentDOM))
11051
11051
  o = e.compareDocumentPosition(this.contentDOM) & 2;
11052
11052
  else if (this.dom.firstChild) {
@@ -11136,12 +11136,12 @@ class ni {
11136
11136
  let i, s = !0;
11137
11137
  for (; i = r ? this.children[r - 1] : null, !(!i || i.dom.parentNode == this.contentDOM); r--, s = !1)
11138
11138
  ;
11139
- return i && t && s && !i.border && !i.domAtom ? i.domFromPos(i.size, t) : { node: this.contentDOM, offset: i ? Ve(i.dom) + 1 : 0 };
11139
+ return i && t && s && !i.border && !i.domAtom ? i.domFromPos(i.size, t) : { node: this.contentDOM, offset: i ? ze(i.dom) + 1 : 0 };
11140
11140
  } else {
11141
11141
  let i, s = !0;
11142
11142
  for (; i = r < this.children.length ? this.children[r] : null, !(!i || i.dom.parentNode == this.contentDOM); r++, s = !1)
11143
11143
  ;
11144
- return i && s && !i.border && !i.domAtom ? i.domFromPos(0, t) : { node: this.contentDOM, offset: i ? Ve(i.dom) : this.contentDOM.childNodes.length };
11144
+ return i && s && !i.border && !i.domAtom ? i.domFromPos(0, t) : { node: this.contentDOM, offset: i ? ze(i.dom) : this.contentDOM.childNodes.length };
11145
11145
  }
11146
11146
  }
11147
11147
  // Used to find a DOM range in a single parent for a given changed
@@ -11160,7 +11160,7 @@ class ni {
11160
11160
  for (let u = a; u > 0; u--) {
11161
11161
  let f = this.children[u - 1];
11162
11162
  if (f.size && f.dom.parentNode == this.contentDOM && !f.emptyChildAt(1)) {
11163
- o = Ve(f.dom) + 1;
11163
+ o = ze(f.dom) + 1;
11164
11164
  break;
11165
11165
  }
11166
11166
  e -= f.size;
@@ -11172,7 +11172,7 @@ class ni {
11172
11172
  for (let p = a + 1; p < this.children.length; p++) {
11173
11173
  let u = this.children[p];
11174
11174
  if (u.size && u.dom.parentNode == this.contentDOM && !u.emptyChildAt(-1)) {
11175
- i = Ve(u.dom);
11175
+ i = ze(u.dom);
11176
11176
  break;
11177
11177
  }
11178
11178
  t += u.size;
@@ -11217,7 +11217,7 @@ class ni {
11217
11217
  `), u && m == h.nodeValue.length)
11218
11218
  for (let g = h, b; g; g = g.parentNode) {
11219
11219
  if (b = g.nextSibling) {
11220
- b.nodeName == "BR" && (a = l = { node: b.parentNode, offset: Ve(b) + 1 });
11220
+ b.nodeName == "BR" && (a = l = { node: b.parentNode, offset: ze(b) + 1 });
11221
11221
  break;
11222
11222
  }
11223
11223
  let v = g.pmViewDesc;
@@ -12063,7 +12063,7 @@ function US(n) {
12063
12063
  if (!e)
12064
12064
  return;
12065
12065
  let r = n.cursorWrapper.dom, o = r.nodeName == "IMG";
12066
- o ? t.setStart(r.parentNode, Ve(r) + 1) : t.setStart(r, 0), t.collapse(!0), e.removeAllRanges(), e.addRange(t), !o && !n.state.selection.visible && ut && jn <= 11 && (r.disabled = !0, r.disabled = !1);
12066
+ o ? t.setStart(r.parentNode, ze(r) + 1) : t.setStart(r, 0), t.collapse(!0), e.removeAllRanges(), e.addRange(t), !o && !n.state.selection.visible && ut && jn <= 11 && (r.disabled = !0, r.disabled = !1);
12067
12067
  }
12068
12068
  function pv(n, e) {
12069
12069
  if (e instanceof J) {
@@ -12166,7 +12166,7 @@ function KS(n) {
12166
12166
  {
12167
12167
  let a = t.previousSibling;
12168
12168
  for (; a && ko(a, -1); )
12169
- o = t.parentNode, i = Ve(a), a = a.previousSibling;
12169
+ o = t.parentNode, i = ze(a), a = a.previousSibling;
12170
12170
  if (a)
12171
12171
  t = a, r = Ji(t);
12172
12172
  else {
@@ -12198,7 +12198,7 @@ function JS(n) {
12198
12198
  {
12199
12199
  let a = t.nextSibling;
12200
12200
  for (; a && ko(a, 1); )
12201
- i = a.parentNode, s = Ve(a) + 1, a = a.nextSibling;
12201
+ i = a.parentNode, s = ze(a) + 1, a = a.nextSibling;
12202
12202
  if (a)
12203
12203
  t = a, r = 0, o = Ji(t);
12204
12204
  else {
@@ -12216,7 +12216,7 @@ function uv(n) {
12216
12216
  }
12217
12217
  function YS(n, e) {
12218
12218
  for (; n && e == n.childNodes.length && !ei(n); )
12219
- e = Ve(n) + 1, n = n.parentNode;
12219
+ e = ze(n) + 1, n = n.parentNode;
12220
12220
  for (; n && e < n.childNodes.length; ) {
12221
12221
  let t = n.childNodes[e];
12222
12222
  if (t.nodeType == 3)
@@ -12228,7 +12228,7 @@ function YS(n, e) {
12228
12228
  }
12229
12229
  function QS(n, e) {
12230
12230
  for (; n && !e && !ei(n); )
12231
- e = Ve(n), n = n.parentNode;
12231
+ e = ze(n), n = n.parentNode;
12232
12232
  for (; n && e; ) {
12233
12233
  let t = n.childNodes[e - 1];
12234
12234
  if (t.nodeType == 3)
@@ -13623,7 +13623,7 @@ class DC {
13623
13623
  let { previousSibling: u, nextSibling: f } = e.addedNodes[p];
13624
13624
  (!u || Array.prototype.indexOf.call(e.addedNodes, u) < 0) && (o = u), (!f || Array.prototype.indexOf.call(e.addedNodes, f) < 0) && (i = f);
13625
13625
  }
13626
- let s = o && o.parentNode == e.target ? Ve(o) + 1 : 0, a = r.localPosFromDOM(e.target, s, -1), l = i && i.parentNode == e.target ? Ve(i) : e.target.childNodes.length, d = r.localPosFromDOM(e.target, l, 1);
13626
+ let s = o && o.parentNode == e.target ? ze(o) + 1 : 0, a = r.localPosFromDOM(e.target, s, -1), l = i && i.parentNode == e.target ? ze(i) : e.target.childNodes.length, d = r.localPosFromDOM(e.target, l, 1);
13627
13627
  return { from: a, to: d };
13628
13628
  } else return e.type == "attributes" ? { from: r.posAtStart - r.border, to: r.posAtEnd + r.border } : (this.lastChangedTextNode = e.target, {
13629
13629
  from: r.posAtStart,
@@ -14320,10 +14320,10 @@ var Kn = {
14320
14320
  221: "}",
14321
14321
  222: '"'
14322
14322
  }, UC = typeof navigator < "u" && /Mac/.test(navigator.platform), GC = typeof navigator < "u" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);
14323
- for (var je = 0; je < 10; je++) Kn[48 + je] = Kn[96 + je] = String(je);
14324
- for (var je = 1; je <= 24; je++) Kn[je + 111] = "F" + je;
14325
- for (var je = 65; je <= 90; je++)
14326
- Kn[je] = String.fromCharCode(je + 32), Zi[je] = String.fromCharCode(je);
14323
+ for (var Ve = 0; Ve < 10; Ve++) Kn[48 + Ve] = Kn[96 + Ve] = String(Ve);
14324
+ for (var Ve = 1; Ve <= 24; Ve++) Kn[Ve + 111] = "F" + Ve;
14325
+ for (var Ve = 65; Ve <= 90; Ve++)
14326
+ Kn[Ve] = String.fromCharCode(Ve + 32), Zi[Ve] = String.fromCharCode(Ve);
14327
14327
  for (var fa in Kn) Zi.hasOwnProperty(fa) || (Zi[fa] = Kn[fa]);
14328
14328
  function KC(n) {
14329
14329
  var e = UC && n.metaKey && n.shiftKey && !n.ctrlKey && !n.altKey || GC && n.shiftKey && n.key && n.key.length == 1 || n.key == "Unidentified", t = !e && n.key || (n.shiftKey ? Zi : Kn)[n.keyCode] || n.key || "Unidentified";
@@ -14936,10 +14936,10 @@ class vT {
14936
14936
  this.callbacks = {};
14937
14937
  }
14938
14938
  }
14939
- function U(n, e, t) {
14940
- return n.config[e] === void 0 && n.parent ? U(n.parent, e, t) : typeof n.config[e] == "function" ? n.config[e].bind({
14939
+ function W(n, e, t) {
14940
+ return n.config[e] === void 0 && n.parent ? W(n.parent, e, t) : typeof n.config[e] == "function" ? n.config[e].bind({
14941
14941
  ...t,
14942
- parent: n.parent ? U(n.parent, e, t) : null
14942
+ parent: n.parent ? W(n.parent, e, t) : null
14943
14943
  }) : n.config[e];
14944
14944
  }
14945
14945
  function js(n) {
@@ -14965,7 +14965,7 @@ function jv(n) {
14965
14965
  options: s.options,
14966
14966
  storage: s.storage,
14967
14967
  extensions: o
14968
- }, l = U(s, "addGlobalAttributes", a);
14968
+ }, l = W(s, "addGlobalAttributes", a);
14969
14969
  if (!l)
14970
14970
  return;
14971
14971
  l().forEach((p) => {
@@ -14987,7 +14987,7 @@ function jv(n) {
14987
14987
  name: s.name,
14988
14988
  options: s.options,
14989
14989
  storage: s.storage
14990
- }, l = U(s, "addAttributes", a);
14990
+ }, l = W(s, "addAttributes", a);
14991
14991
  if (!l)
14992
14992
  return;
14993
14993
  const d = l();
@@ -15012,7 +15012,7 @@ function Ne(n, e) {
15012
15012
  }
15013
15013
  return n;
15014
15014
  }
15015
- function qe(...n) {
15015
+ function je(...n) {
15016
15016
  return n.filter((e) => !!e).reduce((e, t) => {
15017
15017
  const r = { ...e };
15018
15018
  return Object.entries(t).forEach(([o, i]) => {
@@ -15040,7 +15040,7 @@ function qe(...n) {
15040
15040
  function nl(n, e) {
15041
15041
  return e.filter((t) => t.type === n.type.name).filter((t) => t.attribute.rendered).map((t) => t.attribute.renderHTML ? t.attribute.renderHTML(n.attrs) || {} : {
15042
15042
  [t.name]: n.attrs[t.name]
15043
- }).reduce((t, r) => qe(t, r), {});
15043
+ }).reduce((t, r) => je(t, r), {});
15044
15044
  }
15045
15045
  function qv(n) {
15046
15046
  return typeof n == "function";
@@ -15080,44 +15080,44 @@ function kp(n) {
15080
15080
  }
15081
15081
  function CT(n, e) {
15082
15082
  var t;
15083
- const r = jv(n), { nodeExtensions: o, markExtensions: i } = js(n), s = (t = o.find((d) => U(d, "topNode"))) === null || t === void 0 ? void 0 : t.name, a = Object.fromEntries(o.map((d) => {
15083
+ const r = jv(n), { nodeExtensions: o, markExtensions: i } = js(n), s = (t = o.find((d) => W(d, "topNode"))) === null || t === void 0 ? void 0 : t.name, a = Object.fromEntries(o.map((d) => {
15084
15084
  const p = r.filter((v) => v.type === d.name), u = {
15085
15085
  name: d.name,
15086
15086
  options: d.options,
15087
15087
  storage: d.storage,
15088
15088
  editor: e
15089
15089
  }, f = n.reduce((v, S) => {
15090
- const C = U(S, "extendNodeSchema", u);
15090
+ const C = W(S, "extendNodeSchema", u);
15091
15091
  return {
15092
15092
  ...v,
15093
15093
  ...C ? C(d) : {}
15094
15094
  };
15095
15095
  }, {}), h = kp({
15096
15096
  ...f,
15097
- content: ie(U(d, "content", u)),
15098
- marks: ie(U(d, "marks", u)),
15099
- group: ie(U(d, "group", u)),
15100
- inline: ie(U(d, "inline", u)),
15101
- atom: ie(U(d, "atom", u)),
15102
- selectable: ie(U(d, "selectable", u)),
15103
- draggable: ie(U(d, "draggable", u)),
15104
- code: ie(U(d, "code", u)),
15105
- whitespace: ie(U(d, "whitespace", u)),
15106
- linebreakReplacement: ie(U(d, "linebreakReplacement", u)),
15107
- defining: ie(U(d, "defining", u)),
15108
- isolating: ie(U(d, "isolating", u)),
15097
+ content: ie(W(d, "content", u)),
15098
+ marks: ie(W(d, "marks", u)),
15099
+ group: ie(W(d, "group", u)),
15100
+ inline: ie(W(d, "inline", u)),
15101
+ atom: ie(W(d, "atom", u)),
15102
+ selectable: ie(W(d, "selectable", u)),
15103
+ draggable: ie(W(d, "draggable", u)),
15104
+ code: ie(W(d, "code", u)),
15105
+ whitespace: ie(W(d, "whitespace", u)),
15106
+ linebreakReplacement: ie(W(d, "linebreakReplacement", u)),
15107
+ defining: ie(W(d, "defining", u)),
15108
+ isolating: ie(W(d, "isolating", u)),
15109
15109
  attrs: Object.fromEntries(p.map((v) => {
15110
15110
  var S;
15111
15111
  return [v.name, { default: (S = v == null ? void 0 : v.attribute) === null || S === void 0 ? void 0 : S.default }];
15112
15112
  }))
15113
- }), m = ie(U(d, "parseHTML", u));
15113
+ }), m = ie(W(d, "parseHTML", u));
15114
15114
  m && (h.parseDOM = m.map((v) => Tp(v, p)));
15115
- const g = U(d, "renderHTML", u);
15115
+ const g = W(d, "renderHTML", u);
15116
15116
  g && (h.toDOM = (v) => g({
15117
15117
  node: v,
15118
15118
  HTMLAttributes: nl(v, p)
15119
15119
  }));
15120
- const b = U(d, "renderText", u);
15120
+ const b = W(d, "renderText", u);
15121
15121
  return b && (h.toText = b), [d.name, h];
15122
15122
  })), l = Object.fromEntries(i.map((d) => {
15123
15123
  const p = r.filter((b) => b.type === d.name), u = {
@@ -15126,25 +15126,25 @@ function CT(n, e) {
15126
15126
  storage: d.storage,
15127
15127
  editor: e
15128
15128
  }, f = n.reduce((b, v) => {
15129
- const S = U(v, "extendMarkSchema", u);
15129
+ const S = W(v, "extendMarkSchema", u);
15130
15130
  return {
15131
15131
  ...b,
15132
15132
  ...S ? S(d) : {}
15133
15133
  };
15134
15134
  }, {}), h = kp({
15135
15135
  ...f,
15136
- inclusive: ie(U(d, "inclusive", u)),
15137
- excludes: ie(U(d, "excludes", u)),
15138
- group: ie(U(d, "group", u)),
15139
- spanning: ie(U(d, "spanning", u)),
15140
- code: ie(U(d, "code", u)),
15136
+ inclusive: ie(W(d, "inclusive", u)),
15137
+ excludes: ie(W(d, "excludes", u)),
15138
+ group: ie(W(d, "group", u)),
15139
+ spanning: ie(W(d, "spanning", u)),
15140
+ code: ie(W(d, "code", u)),
15141
15141
  attrs: Object.fromEntries(p.map((b) => {
15142
15142
  var v;
15143
15143
  return [b.name, { default: (v = b == null ? void 0 : b.attribute) === null || v === void 0 ? void 0 : v.default }];
15144
15144
  }))
15145
- }), m = ie(U(d, "parseHTML", u));
15145
+ }), m = ie(W(d, "parseHTML", u));
15146
15146
  m && (h.parseDOM = m.map((b) => Tp(b, p)));
15147
- const g = U(d, "renderHTML", u);
15147
+ const g = W(d, "renderHTML", u);
15148
15148
  return g && (h.toDOM = (b) => g({
15149
15149
  mark: b,
15150
15150
  HTMLAttributes: nl(b, p)
@@ -15333,9 +15333,9 @@ class xn {
15333
15333
  }, this.config = {
15334
15334
  ...this.config,
15335
15335
  ...e
15336
- }, this.name = this.config.name, e.defaultOptions && Object.keys(e.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options = ie(U(this, "addOptions", {
15336
+ }, this.name = this.config.name, e.defaultOptions && Object.keys(e.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options = ie(W(this, "addOptions", {
15337
15337
  name: this.name
15338
- }))), this.storage = ie(U(this, "addStorage", {
15338
+ }))), this.storage = ie(W(this, "addStorage", {
15339
15339
  name: this.name,
15340
15340
  options: this.options
15341
15341
  })) || {};
@@ -15352,9 +15352,9 @@ class xn {
15352
15352
  }
15353
15353
  extend(e = {}) {
15354
15354
  const t = new xn(e);
15355
- return t.parent = this, this.child = t, t.name = e.name ? e.name : t.parent.name, e.defaultOptions && Object.keys(e.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`), t.options = ie(U(t, "addOptions", {
15355
+ return t.parent = this, this.child = t, t.name = e.name ? e.name : t.parent.name, e.defaultOptions && Object.keys(e.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`), t.options = ie(W(t, "addOptions", {
15356
15356
  name: t.name
15357
- })), t.storage = ie(U(t, "addStorage", {
15357
+ })), t.storage = ie(W(t, "addStorage", {
15358
15358
  name: t.name,
15359
15359
  options: t.options
15360
15360
  })), t;
@@ -15546,7 +15546,7 @@ class jr {
15546
15546
  name: t.name,
15547
15547
  options: t.options,
15548
15548
  storage: t.storage
15549
- }, o = U(t, "addExtensions", r);
15549
+ }, o = W(t, "addExtensions", r);
15550
15550
  return o ? [t, ...this.flatten(o())] : t;
15551
15551
  }).flat(10);
15552
15552
  }
@@ -15557,7 +15557,7 @@ class jr {
15557
15557
  */
15558
15558
  static sort(e) {
15559
15559
  return e.sort((r, o) => {
15560
- const i = U(r, "priority") || 100, s = U(o, "priority") || 100;
15560
+ const i = W(r, "priority") || 100, s = W(o, "priority") || 100;
15561
15561
  return i > s ? -1 : i < s ? 1 : 0;
15562
15562
  });
15563
15563
  }
@@ -15573,7 +15573,7 @@ class jr {
15573
15573
  storage: t.storage,
15574
15574
  editor: this.editor,
15575
15575
  type: ma(t.name, this.schema)
15576
- }, o = U(t, "addCommands", r);
15576
+ }, o = W(t, "addCommands", r);
15577
15577
  return o ? {
15578
15578
  ...e,
15579
15579
  ...o()
@@ -15592,19 +15592,19 @@ class jr {
15592
15592
  storage: s.storage,
15593
15593
  editor: e,
15594
15594
  type: ma(s.name, this.schema)
15595
- }, l = [], d = U(s, "addKeyboardShortcuts", a);
15595
+ }, l = [], d = W(s, "addKeyboardShortcuts", a);
15596
15596
  let p = {};
15597
- if (s.type === "mark" && U(s, "exitable", a) && (p.ArrowRight = () => xn.handleExit({ editor: e, mark: s })), d) {
15597
+ if (s.type === "mark" && W(s, "exitable", a) && (p.ArrowRight = () => xn.handleExit({ editor: e, mark: s })), d) {
15598
15598
  const g = Object.fromEntries(Object.entries(d()).map(([b, v]) => [b, () => v({ editor: e })]));
15599
15599
  p = { ...p, ...g };
15600
15600
  }
15601
15601
  const u = ZC(p);
15602
15602
  l.push(u);
15603
- const f = U(s, "addInputRules", a);
15603
+ const f = W(s, "addInputRules", a);
15604
15604
  Mp(s, e.options.enableInputRules) && f && r.push(...f());
15605
- const h = U(s, "addPasteRules", a);
15605
+ const h = W(s, "addPasteRules", a);
15606
15606
  Mp(s, e.options.enablePasteRules) && h && o.push(...h());
15607
- const m = U(s, "addProseMirrorPlugins", a);
15607
+ const m = W(s, "addProseMirrorPlugins", a);
15608
15608
  if (m) {
15609
15609
  const g = m();
15610
15610
  l.push(...g);
@@ -15636,14 +15636,14 @@ class jr {
15636
15636
  */
15637
15637
  get nodeViews() {
15638
15638
  const { editor: e } = this, { nodeExtensions: t } = js(this.extensions);
15639
- return Object.fromEntries(t.filter((r) => !!U(r, "addNodeView")).map((r) => {
15639
+ return Object.fromEntries(t.filter((r) => !!W(r, "addNodeView")).map((r) => {
15640
15640
  const o = this.attributes.filter((l) => l.type === r.name), i = {
15641
15641
  name: r.name,
15642
15642
  options: r.options,
15643
15643
  storage: r.storage,
15644
15644
  editor: e,
15645
15645
  type: Ne(r.name, this.schema)
15646
- }, s = U(r, "addNodeView", i);
15646
+ }, s = W(r, "addNodeView", i);
15647
15647
  if (!s)
15648
15648
  return [];
15649
15649
  const a = (l, d, p, u, f) => {
@@ -15679,13 +15679,13 @@ class jr {
15679
15679
  editor: this.editor,
15680
15680
  type: ma(e.name, this.schema)
15681
15681
  };
15682
- e.type === "mark" && (!((t = ie(U(e, "keepOnSplit", r))) !== null && t !== void 0) || t) && this.splittableMarks.push(e.name);
15683
- const o = U(e, "onBeforeCreate", r), i = U(e, "onCreate", r), s = U(e, "onUpdate", r), a = U(e, "onSelectionUpdate", r), l = U(e, "onTransaction", r), d = U(e, "onFocus", r), p = U(e, "onBlur", r), u = U(e, "onDestroy", r);
15682
+ e.type === "mark" && (!((t = ie(W(e, "keepOnSplit", r))) !== null && t !== void 0) || t) && this.splittableMarks.push(e.name);
15683
+ const o = W(e, "onBeforeCreate", r), i = W(e, "onCreate", r), s = W(e, "onUpdate", r), a = W(e, "onSelectionUpdate", r), l = W(e, "onTransaction", r), d = W(e, "onFocus", r), p = W(e, "onBlur", r), u = W(e, "onDestroy", r);
15684
15684
  o && this.editor.on("beforeCreate", o), i && this.editor.on("create", i), s && this.editor.on("update", s), a && this.editor.on("selectionUpdate", a), l && this.editor.on("transaction", l), d && this.editor.on("focus", d), p && this.editor.on("blur", p), u && this.editor.on("destroy", u);
15685
15685
  });
15686
15686
  }
15687
15687
  }
15688
- class We {
15688
+ class qe {
15689
15689
  constructor(e = {}) {
15690
15690
  this.type = "extension", this.name = "extension", this.parent = null, this.child = null, this.config = {
15691
15691
  name: this.name,
@@ -15693,15 +15693,15 @@ class We {
15693
15693
  }, this.config = {
15694
15694
  ...this.config,
15695
15695
  ...e
15696
- }, this.name = this.config.name, e.defaultOptions && Object.keys(e.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options = ie(U(this, "addOptions", {
15696
+ }, this.name = this.config.name, e.defaultOptions && Object.keys(e.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options = ie(W(this, "addOptions", {
15697
15697
  name: this.name
15698
- }))), this.storage = ie(U(this, "addStorage", {
15698
+ }))), this.storage = ie(W(this, "addStorage", {
15699
15699
  name: this.name,
15700
15700
  options: this.options
15701
15701
  })) || {};
15702
15702
  }
15703
15703
  static create(e = {}) {
15704
- return new We(e);
15704
+ return new qe(e);
15705
15705
  }
15706
15706
  configure(e = {}) {
15707
15707
  const t = this.extend({
@@ -15711,10 +15711,10 @@ class We {
15711
15711
  return t.name = this.name, t.parent = this.parent, t;
15712
15712
  }
15713
15713
  extend(e = {}) {
15714
- const t = new We({ ...this.config, ...e });
15715
- return t.parent = this, this.child = t, t.name = e.name ? e.name : t.parent.name, e.defaultOptions && Object.keys(e.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`), t.options = ie(U(t, "addOptions", {
15714
+ const t = new qe({ ...this.config, ...e });
15715
+ return t.parent = this, this.child = t, t.name = e.name ? e.name : t.parent.name, e.defaultOptions && Object.keys(e.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`), t.options = ie(W(t, "addOptions", {
15716
15716
  name: t.name
15717
- })), t.storage = ie(U(t, "addStorage", {
15717
+ })), t.storage = ie(W(t, "addStorage", {
15718
15718
  name: t.name,
15719
15719
  options: t.options
15720
15720
  })), t;
@@ -15743,7 +15743,7 @@ function Wv(n, e, t) {
15743
15743
  function Wl(n) {
15744
15744
  return Object.fromEntries(Object.entries(n.nodes).filter(([, e]) => e.spec.toText).map(([e, t]) => [e, t.spec.toText]));
15745
15745
  }
15746
- const $T = We.create({
15746
+ const $T = qe.create({
15747
15747
  name: "clipboardTextSerializer",
15748
15748
  addOptions() {
15749
15749
  return {
@@ -16349,7 +16349,7 @@ function Pp(n, e) {
16349
16349
  name: r.name,
16350
16350
  options: r.options,
16351
16351
  storage: r.storage
16352
- }, i = ie(U(r, "group", o));
16352
+ }, i = ie(W(r, "group", o));
16353
16353
  return typeof i != "string" ? !1 : i.split(" ").includes("list");
16354
16354
  }
16355
16355
  function Ql(n, { checkChildren: e = !0, ignoreWhitespace: t = !1 } = {}) {
@@ -16727,14 +16727,14 @@ var ek = /* @__PURE__ */ Object.freeze({
16727
16727
  wrapIn: X2,
16728
16728
  wrapInList: Z2
16729
16729
  });
16730
- const tk = We.create({
16730
+ const tk = qe.create({
16731
16731
  name: "commands",
16732
16732
  addCommands() {
16733
16733
  return {
16734
16734
  ...ek
16735
16735
  };
16736
16736
  }
16737
- }), nk = We.create({
16737
+ }), nk = qe.create({
16738
16738
  name: "drop",
16739
16739
  addProseMirrorPlugins() {
16740
16740
  return [
@@ -16753,7 +16753,7 @@ const tk = We.create({
16753
16753
  })
16754
16754
  ];
16755
16755
  }
16756
- }), rk = We.create({
16756
+ }), rk = qe.create({
16757
16757
  name: "editable",
16758
16758
  addProseMirrorPlugins() {
16759
16759
  return [
@@ -16765,7 +16765,7 @@ const tk = We.create({
16765
16765
  })
16766
16766
  ];
16767
16767
  }
16768
- }), ok = new st("focusEvents"), ik = We.create({
16768
+ }), ok = new st("focusEvents"), ik = qe.create({
16769
16769
  name: "focusEvents",
16770
16770
  addProseMirrorPlugins() {
16771
16771
  const { editor: n } = this;
@@ -16789,7 +16789,7 @@ const tk = We.create({
16789
16789
  })
16790
16790
  ];
16791
16791
  }
16792
- }), sk = We.create({
16792
+ }), sk = qe.create({
16793
16793
  name: "keymap",
16794
16794
  addKeyboardShortcuts() {
16795
16795
  const n = () => this.editor.commands.first(({ commands: s }) => [
@@ -16867,7 +16867,7 @@ const tk = We.create({
16867
16867
  })
16868
16868
  ];
16869
16869
  }
16870
- }), ak = We.create({
16870
+ }), ak = qe.create({
16871
16871
  name: "paste",
16872
16872
  addProseMirrorPlugins() {
16873
16873
  return [
@@ -16885,7 +16885,7 @@ const tk = We.create({
16885
16885
  })
16886
16886
  ];
16887
16887
  }
16888
- }), lk = We.create({
16888
+ }), lk = qe.create({
16889
16889
  name: "tabindex",
16890
16890
  addProseMirrorPlugins() {
16891
16891
  return [
@@ -17535,9 +17535,9 @@ let Vt = class sl {
17535
17535
  }, this.config = {
17536
17536
  ...this.config,
17537
17537
  ...e
17538
- }, this.name = this.config.name, e.defaultOptions && Object.keys(e.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options = ie(U(this, "addOptions", {
17538
+ }, this.name = this.config.name, e.defaultOptions && Object.keys(e.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options = ie(W(this, "addOptions", {
17539
17539
  name: this.name
17540
- }))), this.storage = ie(U(this, "addStorage", {
17540
+ }))), this.storage = ie(W(this, "addStorage", {
17541
17541
  name: this.name,
17542
17542
  options: this.options
17543
17543
  })) || {};
@@ -17554,9 +17554,9 @@ let Vt = class sl {
17554
17554
  }
17555
17555
  extend(e = {}) {
17556
17556
  const t = new sl(e);
17557
- return t.parent = this, this.child = t, t.name = e.name ? e.name : t.parent.name, e.defaultOptions && Object.keys(e.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`), t.options = ie(U(t, "addOptions", {
17557
+ return t.parent = this, this.child = t, t.name = e.name ? e.name : t.parent.name, e.defaultOptions && Object.keys(e.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`), t.options = ie(W(t, "addOptions", {
17558
17558
  name: t.name
17559
- })), t.storage = ie(U(t, "addStorage", {
17559
+ })), t.storage = ie(W(t, "addStorage", {
17560
17560
  name: t.name,
17561
17561
  options: t.options
17562
17562
  })), t;
@@ -18126,15 +18126,15 @@ function Jk(n) {
18126
18126
  function Yk(n) {
18127
18127
  var e = n.state, t = n.options, r = n.name;
18128
18128
  if (!e.modifiersData[r]._skip) {
18129
- for (var o = t.mainAxis, i = o === void 0 ? !0 : o, s = t.altAxis, a = s === void 0 ? !0 : s, l = t.fallbackPlacements, d = t.padding, p = t.boundary, u = t.rootBoundary, f = t.altBoundary, h = t.flipVariations, m = h === void 0 ? !0 : h, g = t.allowedAutoPlacements, b = e.options.placement, v = Qt(b), S = v === b, C = l || (S || !m ? [Di(b)] : Jk(b)), x = [b].concat(C).reduce(function(dt, Ue) {
18130
- return dt.concat(Qt(Ue) === Xl ? Kk(e, {
18131
- placement: Ue,
18129
+ for (var o = t.mainAxis, i = o === void 0 ? !0 : o, s = t.altAxis, a = s === void 0 ? !0 : s, l = t.fallbackPlacements, d = t.padding, p = t.boundary, u = t.rootBoundary, f = t.altBoundary, h = t.flipVariations, m = h === void 0 ? !0 : h, g = t.allowedAutoPlacements, b = e.options.placement, v = Qt(b), S = v === b, C = l || (S || !m ? [Di(b)] : Jk(b)), x = [b].concat(C).reduce(function(dt, We) {
18130
+ return dt.concat(Qt(We) === Xl ? Kk(e, {
18131
+ placement: We,
18132
18132
  boundary: p,
18133
18133
  rootBoundary: u,
18134
18134
  padding: d,
18135
18135
  flipVariations: m,
18136
18136
  allowedAutoPlacements: g
18137
- }) : Ue);
18137
+ }) : We);
18138
18138
  }, []), B = e.rects.reference, E = e.rects.popper, P = /* @__PURE__ */ new Map(), H = !0, q = x[0], D = 0; D < x.length; D++) {
18139
18139
  var I = x[D], N = Qt(I), Y = ro(I) === eo, se = [ft, At].indexOf(N) >= 0, ae = se ? "width" : "height", ce = Go(e, {
18140
18140
  placement: I,
@@ -18154,16 +18154,16 @@ function Yk(n) {
18154
18154
  P.set(I, ne);
18155
18155
  }
18156
18156
  if (H)
18157
- for (var at = m ? 3 : 1, lt = function(Ue) {
18158
- var Ge = x.find(function(Dt) {
18157
+ for (var at = m ? 3 : 1, lt = function(We) {
18158
+ var Ue = x.find(function(Dt) {
18159
18159
  var Re = P.get(Dt);
18160
18160
  if (Re)
18161
- return Re.slice(0, Ue).every(function(It) {
18161
+ return Re.slice(0, We).every(function(It) {
18162
18162
  return It;
18163
18163
  });
18164
18164
  });
18165
- if (Ge)
18166
- return q = Ge, "break";
18165
+ if (Ue)
18166
+ return q = Ue, "break";
18167
18167
  }, et = at; et > 0; et--) {
18168
18168
  var vt = lt(et);
18169
18169
  if (vt === "break") break;
@@ -18286,7 +18286,7 @@ function sM(n) {
18286
18286
  var Y, se = x === "y" ? ft : ht, ae = x === "y" ? At : Ot, ce = x === "y" ? "height" : "width", he = E[x], me = he + b[se], ne = he - b[ae], at = h ? -H[ce] / 2 : 0, lt = S === eo ? P[ce] : H[ce], et = S === eo ? -H[ce] : -P[ce], vt = e.elements.arrow, dt = h && vt ? ed(vt) : {
18287
18287
  width: 0,
18288
18288
  height: 0
18289
- }, Ue = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : s0(), Ge = Ue[se], Dt = Ue[ae], Re = Mo(0, P[ce], dt[ce]), It = C ? P[ce] / 2 - at - Re - Ge - D.mainAxis : lt - Re - Ge - D.mainAxis, mt = C ? -P[ce] / 2 + at + Re + Dt + D.mainAxis : et + Re + Dt + D.mainAxis, pt = e.elements.arrow && oi(e.elements.arrow), nn = pt ? x === "y" ? pt.clientTop || 0 : pt.clientLeft || 0 : 0, Be = (Y = I == null ? void 0 : I[x]) != null ? Y : 0, W = he + It - Be - nn, He = he + mt - Be, vn = Mo(h ? ts(me, W) : me, he, h ? xr(ne, He) : ne);
18289
+ }, We = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : s0(), Ue = We[se], Dt = We[ae], Re = Mo(0, P[ce], dt[ce]), It = C ? P[ce] / 2 - at - Re - Ue - D.mainAxis : lt - Re - Ue - D.mainAxis, mt = C ? -P[ce] / 2 + at + Re + Dt + D.mainAxis : et + Re + Dt + D.mainAxis, pt = e.elements.arrow && oi(e.elements.arrow), nn = pt ? x === "y" ? pt.clientTop || 0 : pt.clientLeft || 0 : 0, Be = (Y = I == null ? void 0 : I[x]) != null ? Y : 0, G = he + It - Be - nn, Ge = he + mt - Be, vn = Mo(h ? ts(me, G) : me, he, h ? xr(ne, Ge) : ne);
18290
18290
  E[x] = vn, N[x] = vn - he;
18291
18291
  }
18292
18292
  if (a) {
@@ -18858,7 +18858,7 @@ function w0(n) {
18858
18858
  w0.$$tippy = !0;
18859
18859
  var WM = 1, Ci = [], wa = [];
18860
18860
  function UM(n, e) {
18861
- var t = Gp(n, Object.assign({}, gt, y0(Vp(e)))), r, o, i, s = !1, a = !1, l = !1, d = !1, p, u, f, h = [], m = Fp(W, t.interactiveDebounce), g, b = WM++, v = null, S = TM(t.plugins), C = {
18861
+ var t = Gp(n, Object.assign({}, gt, y0(Vp(e)))), r, o, i, s = !1, a = !1, l = !1, d = !1, p, u, f, h = [], m = Fp(G, t.interactiveDebounce), g, b = WM++, v = null, S = TM(t.plugins), C = {
18862
18862
  // Is the instance currently enabled?
18863
18863
  isEnabled: !0,
18864
18864
  // Is the tippy currently showing and not transitioning out?
@@ -18929,25 +18929,25 @@ function UM(n, e) {
18929
18929
  function he(A) {
18930
18930
  A === void 0 && (A = !1), E.style.pointerEvents = x.props.interactive && !A ? "" : "none", E.style.zIndex = "" + x.props.zIndex;
18931
18931
  }
18932
- function me(A, G, Q) {
18932
+ function me(A, U, Q) {
18933
18933
  if (Q === void 0 && (Q = !0), H.forEach(function(F) {
18934
- F[A] && F[A].apply(F, G);
18934
+ F[A] && F[A].apply(F, U);
18935
18935
  }), Q) {
18936
18936
  var le;
18937
- (le = x.props)[A].apply(le, G);
18937
+ (le = x.props)[A].apply(le, U);
18938
18938
  }
18939
18939
  }
18940
18940
  function ne() {
18941
18941
  var A = x.props.aria;
18942
18942
  if (A.content) {
18943
- var G = "aria-" + A.content, Q = E.id, le = Hr(x.props.triggerTarget || n);
18943
+ var U = "aria-" + A.content, Q = E.id, le = Hr(x.props.triggerTarget || n);
18944
18944
  le.forEach(function(F) {
18945
- var O = F.getAttribute(G);
18945
+ var O = F.getAttribute(U);
18946
18946
  if (x.state.isVisible)
18947
- F.setAttribute(G, O ? O + " " + Q : Q);
18947
+ F.setAttribute(U, O ? O + " " + Q : Q);
18948
18948
  else {
18949
18949
  var de = O && O.replace(Q, "").trim();
18950
- de ? F.setAttribute(G, de) : F.removeAttribute(G);
18950
+ de ? F.setAttribute(U, de) : F.removeAttribute(U);
18951
18951
  }
18952
18952
  });
18953
18953
  }
@@ -18955,8 +18955,8 @@ function UM(n, e) {
18955
18955
  function at() {
18956
18956
  if (!(q || !x.props.aria.expanded)) {
18957
18957
  var A = Hr(x.props.triggerTarget || n);
18958
- A.forEach(function(G) {
18959
- x.props.interactive ? G.setAttribute("aria-expanded", x.state.isVisible && G === Y() ? "true" : "false") : G.removeAttribute("aria-expanded");
18958
+ A.forEach(function(U) {
18959
+ x.props.interactive ? U.setAttribute("aria-expanded", x.state.isVisible && U === Y() ? "true" : "false") : U.removeAttribute("aria-expanded");
18960
18960
  });
18961
18961
  }
18962
18962
  }
@@ -18967,10 +18967,10 @@ function UM(n, e) {
18967
18967
  }
18968
18968
  function et(A) {
18969
18969
  if (!(Gt.isTouch && (l || A.type === "mousedown"))) {
18970
- var G = A.composedPath && A.composedPath()[0] || A.target;
18971
- if (!(x.props.interactive && qp(E, G))) {
18970
+ var U = A.composedPath && A.composedPath()[0] || A.target;
18971
+ if (!(x.props.interactive && qp(E, U))) {
18972
18972
  if (Hr(x.props.triggerTarget || n).some(function(Q) {
18973
- return qp(Q, G);
18973
+ return qp(Q, U);
18974
18974
  })) {
18975
18975
  if (Gt.isTouch || x.state.isVisible && x.props.trigger.indexOf("click") >= 0)
18976
18976
  return;
@@ -18978,7 +18978,7 @@ function UM(n, e) {
18978
18978
  me("onClickOutside", [x, A]);
18979
18979
  x.props.hideOnClick === !0 && (x.clearDelayTimeouts(), x.hide(), a = !0, setTimeout(function() {
18980
18980
  a = !1;
18981
- }), x.state.isMounted || Ge());
18981
+ }), x.state.isMounted || Ue());
18982
18982
  }
18983
18983
  }
18984
18984
  }
@@ -18988,39 +18988,39 @@ function UM(n, e) {
18988
18988
  function dt() {
18989
18989
  l = !1;
18990
18990
  }
18991
- function Ue() {
18991
+ function We() {
18992
18992
  var A = se();
18993
18993
  A.addEventListener("mousedown", et, !0), A.addEventListener("touchend", et, sr), A.addEventListener("touchstart", dt, sr), A.addEventListener("touchmove", vt, sr);
18994
18994
  }
18995
- function Ge() {
18995
+ function Ue() {
18996
18996
  var A = se();
18997
18997
  A.removeEventListener("mousedown", et, !0), A.removeEventListener("touchend", et, sr), A.removeEventListener("touchstart", dt, sr), A.removeEventListener("touchmove", vt, sr);
18998
18998
  }
18999
- function Dt(A, G) {
18999
+ function Dt(A, U) {
19000
19000
  It(A, function() {
19001
- !x.state.isVisible && E.parentNode && E.parentNode.contains(E) && G();
19001
+ !x.state.isVisible && E.parentNode && E.parentNode.contains(E) && U();
19002
19002
  });
19003
19003
  }
19004
- function Re(A, G) {
19005
- It(A, G);
19004
+ function Re(A, U) {
19005
+ It(A, U);
19006
19006
  }
19007
- function It(A, G) {
19007
+ function It(A, U) {
19008
19008
  var Q = ae().box;
19009
19009
  function le(F) {
19010
- F.target === Q && (va(Q, "remove", le), G());
19010
+ F.target === Q && (va(Q, "remove", le), U());
19011
19011
  }
19012
19012
  if (A === 0)
19013
- return G();
19013
+ return U();
19014
19014
  va(Q, "remove", u), va(Q, "add", le), u = le;
19015
19015
  }
19016
- function mt(A, G, Q) {
19016
+ function mt(A, U, Q) {
19017
19017
  Q === void 0 && (Q = !1);
19018
19018
  var le = Hr(x.props.triggerTarget || n);
19019
19019
  le.forEach(function(F) {
19020
- F.addEventListener(A, G, Q), h.push({
19020
+ F.addEventListener(A, U, Q), h.push({
19021
19021
  node: F,
19022
19022
  eventType: A,
19023
- handler: G,
19023
+ handler: U,
19024
19024
  options: Q
19025
19025
  });
19026
19026
  });
@@ -19028,13 +19028,13 @@ function UM(n, e) {
19028
19028
  function pt() {
19029
19029
  I() && (mt("touchstart", Be, {
19030
19030
  passive: !0
19031
- }), mt("touchend", He, {
19031
+ }), mt("touchend", Ge, {
19032
19032
  passive: !0
19033
19033
  })), CM(x.props.trigger).forEach(function(A) {
19034
19034
  if (A !== "manual")
19035
19035
  switch (mt(A, Be), A) {
19036
19036
  case "mouseenter":
19037
- mt("mouseleave", He);
19037
+ mt("mouseleave", Ge);
19038
19038
  break;
19039
19039
  case "focus":
19040
19040
  mt(_M ? "focusout" : "blur", vn);
@@ -19047,21 +19047,21 @@ function UM(n, e) {
19047
19047
  }
19048
19048
  function nn() {
19049
19049
  h.forEach(function(A) {
19050
- var G = A.node, Q = A.eventType, le = A.handler, F = A.options;
19051
- G.removeEventListener(Q, le, F);
19050
+ var U = A.node, Q = A.eventType, le = A.handler, F = A.options;
19051
+ U.removeEventListener(Q, le, F);
19052
19052
  }), h = [];
19053
19053
  }
19054
19054
  function Be(A) {
19055
- var G, Q = !1;
19055
+ var U, Q = !1;
19056
19056
  if (!(!x.state.isEnabled || wn(A) || a)) {
19057
- var le = ((G = p) == null ? void 0 : G.type) === "focus";
19057
+ var le = ((U = p) == null ? void 0 : U.type) === "focus";
19058
19058
  p = A, g = A.currentTarget, at(), !x.state.isVisible && EM(A) && Ci.forEach(function(F) {
19059
19059
  return F(A);
19060
19060
  }), A.type === "click" && (x.props.trigger.indexOf("mouseenter") < 0 || s) && x.props.hideOnClick !== !1 && x.state.isVisible ? Q = !0 : Sn(A), A.type === "click" && (s = !Q), Q && !le && wt(A);
19061
19061
  }
19062
19062
  }
19063
- function W(A) {
19064
- var G = A.target, Q = Y().contains(G) || E.contains(G);
19063
+ function G(A) {
19064
+ var U = A.target, Q = Y().contains(U) || E.contains(U);
19065
19065
  if (!(A.type === "mousemove" && Q)) {
19066
19066
  var le = jt().concat(E).map(function(F) {
19067
19067
  var O, de = F._tippy, _t = (O = de.popperInstance) == null ? void 0 : O.state;
@@ -19074,9 +19074,9 @@ function UM(n, e) {
19074
19074
  AM(le, A) && (lt(), wt(A));
19075
19075
  }
19076
19076
  }
19077
- function He(A) {
19078
- var G = wn(A) || x.props.trigger.indexOf("click") >= 0 && s;
19079
- if (!G) {
19077
+ function Ge(A) {
19078
+ var U = wn(A) || x.props.trigger.indexOf("click") >= 0 && s;
19079
+ if (!U) {
19080
19080
  if (x.props.interactive) {
19081
19081
  x.hideWithInteractivity(A);
19082
19082
  return;
@@ -19092,7 +19092,7 @@ function UM(n, e) {
19092
19092
  }
19093
19093
  function Zn() {
19094
19094
  er();
19095
- var A = x.props, G = A.popperOptions, Q = A.placement, le = A.offset, F = A.getReferenceClientRect, O = A.moveTransition, de = N() ? cl(E).arrow : null, _t = F ? {
19095
+ var A = x.props, U = A.popperOptions, Q = A.placement, le = A.offset, F = A.getReferenceClientRect, O = A.moveTransition, de = N() ? cl(E).arrow : null, _t = F ? {
19096
19096
  getBoundingClientRect: F,
19097
19097
  contextElement: F.contextElement || Y()
19098
19098
  } : n, co = {
@@ -19141,7 +19141,7 @@ function UM(n, e) {
19141
19141
  element: de,
19142
19142
  padding: 3
19143
19143
  }
19144
- }), rn.push.apply(rn, (G == null ? void 0 : G.modifiers) || []), x.popperInstance = xM(_t, E, Object.assign({}, G, {
19144
+ }), rn.push.apply(rn, (U == null ? void 0 : U.modifiers) || []), x.popperInstance = xM(_t, E, Object.assign({}, U, {
19145
19145
  placement: Q,
19146
19146
  onFirstUpdate: f,
19147
19147
  modifiers: rn
@@ -19151,8 +19151,8 @@ function UM(n, e) {
19151
19151
  x.popperInstance && (x.popperInstance.destroy(), x.popperInstance = null);
19152
19152
  }
19153
19153
  function $t() {
19154
- var A = x.props.appendTo, G, Q = Y();
19155
- x.props.interactive && A === h0 || A === "parent" ? G = Q.parentNode : G = m0(A, [Q]), G.contains(E) || G.appendChild(E), x.state.isMounted = !0, Zn(), process.env.NODE_ENV !== "production" && un(x.props.interactive && A === gt.appendTo && Q.nextElementSibling !== E, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
19154
+ var A = x.props.appendTo, U, Q = Y();
19155
+ x.props.interactive && A === h0 || A === "parent" ? U = Q.parentNode : U = m0(A, [Q]), U.contains(E) || U.appendChild(E), x.state.isMounted = !0, Zn(), process.env.NODE_ENV !== "production" && un(x.props.interactive && A === gt.appendTo && Q.nextElementSibling !== E, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
19156
19156
 
19157
19157
  `, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
19158
19158
 
@@ -19164,22 +19164,22 @@ function UM(n, e) {
19164
19164
  return ns(E.querySelectorAll("[data-tippy-root]"));
19165
19165
  }
19166
19166
  function Sn(A) {
19167
- x.clearDelayTimeouts(), A && me("onTrigger", [x, A]), Ue();
19168
- var G = ce(!0), Q = D(), le = Q[0], F = Q[1];
19169
- Gt.isTouch && le === "hold" && F && (G = F), G ? r = setTimeout(function() {
19167
+ x.clearDelayTimeouts(), A && me("onTrigger", [x, A]), We();
19168
+ var U = ce(!0), Q = D(), le = Q[0], F = Q[1];
19169
+ Gt.isTouch && le === "hold" && F && (U = F), U ? r = setTimeout(function() {
19170
19170
  x.show();
19171
- }, G) : x.show();
19171
+ }, U) : x.show();
19172
19172
  }
19173
19173
  function wt(A) {
19174
19174
  if (x.clearDelayTimeouts(), me("onUntrigger", [x, A]), !x.state.isVisible) {
19175
- Ge();
19175
+ Ue();
19176
19176
  return;
19177
19177
  }
19178
19178
  if (!(x.props.trigger.indexOf("mouseenter") >= 0 && x.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(A.type) >= 0 && s)) {
19179
- var G = ce(!1);
19180
- G ? o = setTimeout(function() {
19179
+ var U = ce(!1);
19180
+ U ? o = setTimeout(function() {
19181
19181
  x.state.isVisible && x.hide();
19182
- }, G) : i = requestAnimationFrame(function() {
19182
+ }, U) : i = requestAnimationFrame(function() {
19183
19183
  x.hide();
19184
19184
  });
19185
19185
  }
@@ -19196,12 +19196,12 @@ function UM(n, e) {
19196
19196
  function rr(A) {
19197
19197
  if (process.env.NODE_ENV !== "production" && un(x.state.isDestroyed, Ir("setProps")), !x.state.isDestroyed) {
19198
19198
  me("onBeforeUpdate", [x, A]), nn();
19199
- var G = x.props, Q = Gp(n, Object.assign({}, G, Vp(A), {
19199
+ var U = x.props, Q = Gp(n, Object.assign({}, U, Vp(A), {
19200
19200
  ignoreAttributes: !0
19201
19201
  }));
19202
- x.props = Q, pt(), G.interactiveDebounce !== Q.interactiveDebounce && (lt(), m = Fp(W, Q.interactiveDebounce)), G.triggerTarget && !Q.triggerTarget ? Hr(G.triggerTarget).forEach(function(le) {
19202
+ x.props = Q, pt(), U.interactiveDebounce !== Q.interactiveDebounce && (lt(), m = Fp(G, Q.interactiveDebounce)), U.triggerTarget && !Q.triggerTarget ? Hr(U.triggerTarget).forEach(function(le) {
19203
19203
  le.removeAttribute("aria-expanded");
19204
- }) : Q.triggerTarget && n.removeAttribute("aria-expanded"), at(), he(), P && P(G, Q), x.popperInstance && (Zn(), jt().forEach(function(le) {
19204
+ }) : Q.triggerTarget && n.removeAttribute("aria-expanded"), at(), he(), P && P(U, Q), x.popperInstance && (Zn(), jt().forEach(function(le) {
19205
19205
  requestAnimationFrame(le._tippy.popperInstance.forceUpdate);
19206
19206
  })), me("onAfterUpdate", [x, A]);
19207
19207
  }
@@ -19213,9 +19213,9 @@ function UM(n, e) {
19213
19213
  }
19214
19214
  function di() {
19215
19215
  process.env.NODE_ENV !== "production" && un(x.state.isDestroyed, Ir("show"));
19216
- var A = x.state.isVisible, G = x.state.isDestroyed, Q = !x.state.isEnabled, le = Gt.isTouch && !x.props.touch, F = xa(x.props.duration, 0, gt.duration);
19217
- if (!(A || G || Q || le) && !Y().hasAttribute("disabled") && (me("onShow", [x], !1), x.props.onShow(x) !== !1)) {
19218
- if (x.state.isVisible = !0, N() && (E.style.visibility = "visible"), he(), Ue(), x.state.isMounted || (E.style.transition = "none"), N()) {
19216
+ var A = x.state.isVisible, U = x.state.isDestroyed, Q = !x.state.isEnabled, le = Gt.isTouch && !x.props.touch, F = xa(x.props.duration, 0, gt.duration);
19217
+ if (!(A || U || Q || le) && !Y().hasAttribute("disabled") && (me("onShow", [x], !1), x.props.onShow(x) !== !1)) {
19218
+ if (x.state.isVisible = !0, N() && (E.style.visibility = "visible"), he(), We(), x.state.isMounted || (E.style.transition = "none"), N()) {
19219
19219
  var O = ae(), de = O.box, _t = O.content;
19220
19220
  ya([de, _t], 0);
19221
19221
  }
@@ -19235,9 +19235,9 @@ function UM(n, e) {
19235
19235
  }
19236
19236
  function pi() {
19237
19237
  process.env.NODE_ENV !== "production" && un(x.state.isDestroyed, Ir("hide"));
19238
- var A = !x.state.isVisible, G = x.state.isDestroyed, Q = !x.state.isEnabled, le = xa(x.props.duration, 1, gt.duration);
19239
- if (!(A || G || Q) && (me("onHide", [x], !1), x.props.onHide(x) !== !1)) {
19240
- if (x.state.isVisible = !1, x.state.isShown = !1, d = !1, s = !1, N() && (E.style.visibility = "hidden"), lt(), Ge(), he(!0), N()) {
19238
+ var A = !x.state.isVisible, U = x.state.isDestroyed, Q = !x.state.isEnabled, le = xa(x.props.duration, 1, gt.duration);
19239
+ if (!(A || U || Q) && (me("onHide", [x], !1), x.props.onHide(x) !== !1)) {
19240
+ if (x.state.isVisible = !1, x.state.isShown = !1, d = !1, s = !1, N() && (E.style.visibility = "hidden"), lt(), Ue(), he(!0), N()) {
19241
19241
  var F = ae(), O = F.box, de = F.content;
19242
19242
  x.props.animation && (ya([O, de], le), jp([O, de], "hidden"));
19243
19243
  }
@@ -19401,7 +19401,7 @@ const S0 = (n) => new Le({
19401
19401
  key: typeof n.pluginKey == "string" ? new st(n.pluginKey) : n.pluginKey,
19402
19402
  view: (e) => new GM({ view: e, ...n })
19403
19403
  });
19404
- We.create({
19404
+ qe.create({
19405
19405
  name: "bubbleMenu",
19406
19406
  addOptions() {
19407
19407
  return {
@@ -19496,7 +19496,7 @@ const C0 = (n) => new Le({
19496
19496
  key: typeof n.pluginKey == "string" ? new st(n.pluginKey) : n.pluginKey,
19497
19497
  view: (e) => new KM({ view: e, ...n })
19498
19498
  });
19499
- We.create({
19499
+ qe.create({
19500
19500
  name: "floatingMenu",
19501
19501
  addOptions() {
19502
19502
  return {
@@ -19543,7 +19543,7 @@ it({
19543
19543
  }
19544
19544
  },
19545
19545
  setup(n, { slots: e }) {
19546
- const t = M(null);
19546
+ const t = k(null);
19547
19547
  return gn(() => {
19548
19548
  const { updateDelay: r, editor: o, pluginKey: i, shouldShow: s, tippyOptions: a } = n;
19549
19549
  o.registerPlugin(S0({
@@ -19613,7 +19613,7 @@ const YM = it({
19613
19613
  }
19614
19614
  },
19615
19615
  setup(n) {
19616
- const e = M(), t = Ac();
19616
+ const e = k(), t = Ac();
19617
19617
  return io(() => {
19618
19618
  const r = n.editor;
19619
19619
  r && r.options.element && e.value && oe(() => {
@@ -19666,7 +19666,7 @@ it({
19666
19666
  }
19667
19667
  },
19668
19668
  setup(n, { slots: e }) {
19669
- const t = M(null);
19669
+ const t = k(null);
19670
19670
  return gn(() => {
19671
19671
  const { pluginKey: r, editor: o, tippyOptions: i, shouldShow: s } = n;
19672
19672
  o.registerPlugin(C0({
@@ -19750,7 +19750,7 @@ const QM = (n = {}) => {
19750
19750
  ];
19751
19751
  },
19752
19752
  renderHTML({ HTMLAttributes: n }) {
19753
- return ["blockquote", qe(this.options.HTMLAttributes, n), 0];
19753
+ return ["blockquote", je(this.options.HTMLAttributes, n), 0];
19754
19754
  },
19755
19755
  addCommands() {
19756
19756
  return {
@@ -19799,7 +19799,7 @@ const QM = (n = {}) => {
19799
19799
  ];
19800
19800
  },
19801
19801
  renderHTML({ HTMLAttributes: n }) {
19802
- return ["strong", qe(this.options.HTMLAttributes, n), 0];
19802
+ return ["strong", je(this.options.HTMLAttributes, n), 0];
19803
19803
  },
19804
19804
  addCommands() {
19805
19805
  return {
@@ -19858,7 +19858,7 @@ const QM = (n = {}) => {
19858
19858
  ];
19859
19859
  },
19860
19860
  renderHTML({ HTMLAttributes: n }) {
19861
- return ["ul", qe(this.options.HTMLAttributes, n), 0];
19861
+ return ["ul", je(this.options.HTMLAttributes, n), 0];
19862
19862
  },
19863
19863
  addCommands() {
19864
19864
  return {
@@ -19902,7 +19902,7 @@ const QM = (n = {}) => {
19902
19902
  ];
19903
19903
  },
19904
19904
  renderHTML({ HTMLAttributes: n }) {
19905
- return ["code", qe(this.options.HTMLAttributes, n), 0];
19905
+ return ["code", je(this.options.HTMLAttributes, n), 0];
19906
19906
  },
19907
19907
  addCommands() {
19908
19908
  return {
@@ -19972,7 +19972,7 @@ const QM = (n = {}) => {
19972
19972
  renderHTML({ node: n, HTMLAttributes: e }) {
19973
19973
  return [
19974
19974
  "pre",
19975
- qe(this.options.HTMLAttributes, e),
19975
+ je(this.options.HTMLAttributes, e),
19976
19976
  [
19977
19977
  "code",
19978
19978
  {
@@ -20145,7 +20145,7 @@ class mE {
20145
20145
  this.editorView.dom.contains(e.relatedTarget) || this.setCursor(null);
20146
20146
  }
20147
20147
  }
20148
- const bE = We.create({
20148
+ const bE = qe.create({
20149
20149
  name: "dropCursor",
20150
20150
  addOptions() {
20151
20151
  return {
@@ -20353,7 +20353,7 @@ function CE(n) {
20353
20353
  let e = document.createElement("div");
20354
20354
  return e.className = "ProseMirror-gapcursor", Pe.create(n.doc, [Bt.widget(n.selection.head, e, { key: "gapcursor" })]);
20355
20355
  }
20356
- const TE = We.create({
20356
+ const TE = qe.create({
20357
20357
  name: "gapCursor",
20358
20358
  addProseMirrorPlugins() {
20359
20359
  return [
@@ -20368,7 +20368,7 @@ const TE = We.create({
20368
20368
  storage: n.storage
20369
20369
  };
20370
20370
  return {
20371
- allowGapCursor: (e = ie(U(n, "allowGapCursor", t))) !== null && e !== void 0 ? e : null
20371
+ allowGapCursor: (e = ie(W(n, "allowGapCursor", t))) !== null && e !== void 0 ? e : null
20372
20372
  };
20373
20373
  }
20374
20374
  }), kE = Vt.create({
@@ -20389,7 +20389,7 @@ const TE = We.create({
20389
20389
  ];
20390
20390
  },
20391
20391
  renderHTML({ HTMLAttributes: n }) {
20392
- return ["br", qe(this.options.HTMLAttributes, n)];
20392
+ return ["br", je(this.options.HTMLAttributes, n)];
20393
20393
  },
20394
20394
  renderText() {
20395
20395
  return `
@@ -20447,7 +20447,7 @@ const TE = We.create({
20447
20447
  }));
20448
20448
  },
20449
20449
  renderHTML({ node: n, HTMLAttributes: e }) {
20450
- return [`h${this.options.levels.includes(n.attrs.level) ? n.attrs.level : this.options.levels[0]}`, qe(this.options.HTMLAttributes, e), 0];
20450
+ return [`h${this.options.levels.includes(n.attrs.level) ? n.attrs.level : this.options.levels[0]}`, je(this.options.HTMLAttributes, e), 0];
20451
20451
  },
20452
20452
  addCommands() {
20453
20453
  return {
@@ -20807,7 +20807,7 @@ function k0(n, e) {
20807
20807
  return !0;
20808
20808
  };
20809
20809
  }
20810
- const M0 = k0(!1, !0), E0 = k0(!0, !0), _E = We.create({
20810
+ const M0 = k0(!1, !0), E0 = k0(!0, !0), _E = qe.create({
20811
20811
  name: "history",
20812
20812
  addOptions() {
20813
20813
  return {
@@ -20848,7 +20848,7 @@ const M0 = k0(!1, !0), E0 = k0(!0, !0), _E = We.create({
20848
20848
  return [{ tag: "hr" }];
20849
20849
  },
20850
20850
  renderHTML({ HTMLAttributes: n }) {
20851
- return ["hr", qe(this.options.HTMLAttributes, n)];
20851
+ return ["hr", je(this.options.HTMLAttributes, n)];
20852
20852
  },
20853
20853
  addCommands() {
20854
20854
  return {
@@ -20914,7 +20914,7 @@ const M0 = k0(!1, !0), E0 = k0(!0, !0), _E = We.create({
20914
20914
  ];
20915
20915
  },
20916
20916
  renderHTML({ HTMLAttributes: n }) {
20917
- return ["em", qe(this.options.HTMLAttributes, n), 0];
20917
+ return ["em", je(this.options.HTMLAttributes, n), 0];
20918
20918
  },
20919
20919
  addCommands() {
20920
20920
  return {
@@ -20972,7 +20972,7 @@ const M0 = k0(!1, !0), E0 = k0(!0, !0), _E = We.create({
20972
20972
  ];
20973
20973
  },
20974
20974
  renderHTML({ HTMLAttributes: n }) {
20975
- return ["li", qe(this.options.HTMLAttributes, n), 0];
20975
+ return ["li", je(this.options.HTMLAttributes, n), 0];
20976
20976
  },
20977
20977
  addKeyboardShortcuts() {
20978
20978
  return {
@@ -21016,7 +21016,7 @@ const M0 = k0(!1, !0), E0 = k0(!0, !0), _E = We.create({
21016
21016
  },
21017
21017
  renderHTML({ HTMLAttributes: n }) {
21018
21018
  const { start: e, ...t } = n;
21019
- return e === 1 ? ["ol", qe(this.options.HTMLAttributes, t), 0] : ["ol", qe(this.options.HTMLAttributes, n), 0];
21019
+ return e === 1 ? ["ol", je(this.options.HTMLAttributes, t), 0] : ["ol", je(this.options.HTMLAttributes, n), 0];
21020
21020
  },
21021
21021
  addCommands() {
21022
21022
  return {
@@ -21063,7 +21063,7 @@ const M0 = k0(!1, !0), E0 = k0(!0, !0), _E = We.create({
21063
21063
  ];
21064
21064
  },
21065
21065
  renderHTML({ HTMLAttributes: n }) {
21066
- return ["p", qe(this.options.HTMLAttributes, n), 0];
21066
+ return ["p", je(this.options.HTMLAttributes, n), 0];
21067
21067
  },
21068
21068
  addCommands() {
21069
21069
  return {
@@ -21101,7 +21101,7 @@ const M0 = k0(!1, !0), E0 = k0(!0, !0), _E = We.create({
21101
21101
  ];
21102
21102
  },
21103
21103
  renderHTML({ HTMLAttributes: n }) {
21104
- return ["s", qe(this.options.HTMLAttributes, n), 0];
21104
+ return ["s", je(this.options.HTMLAttributes, n), 0];
21105
21105
  },
21106
21106
  addCommands() {
21107
21107
  return {
@@ -21134,7 +21134,7 @@ const M0 = k0(!1, !0), E0 = k0(!0, !0), _E = We.create({
21134
21134
  }), YE = Vt.create({
21135
21135
  name: "text",
21136
21136
  group: "inline"
21137
- }), QE = We.create({
21137
+ }), QE = qe.create({
21138
21138
  name: "starterKit",
21139
21139
  addExtensions() {
21140
21140
  const n = [];
@@ -22025,9 +22025,9 @@ const SB = xn.create({
22025
22025
  defaultValidate: (e) => !!ir(e, this.options.protocols),
22026
22026
  protocols: this.options.protocols,
22027
22027
  defaultProtocol: this.options.defaultProtocol
22028
- }) ? ["a", qe(this.options.HTMLAttributes, n), 0] : [
22028
+ }) ? ["a", je(this.options.HTMLAttributes, n), 0] : [
22029
22029
  "a",
22030
- qe(this.options.HTMLAttributes, { ...n, href: "" }),
22030
+ je(this.options.HTMLAttributes, { ...n, href: "" }),
22031
22031
  0
22032
22032
  ];
22033
22033
  },
@@ -22754,7 +22754,7 @@ function UB({ app: n, store: e, options: t }) {
22754
22754
  }
22755
22755
  }
22756
22756
  function GB() {
22757
- const n = Oc(!0), e = n.run(() => M({}));
22757
+ const n = Oc(!0), e = n.run(() => k({}));
22758
22758
  let t = [], r = [];
22759
22759
  const o = In({
22760
22760
  install(i) {
@@ -22827,7 +22827,7 @@ function mc(n, e, t, r) {
22827
22827
  !a && (process.env.NODE_ENV === "production" || !r) && (t.state.value[n] = o ? o() : {});
22828
22828
  const p = process.env.NODE_ENV !== "production" && r ? (
22829
22829
  // use ref() to unwrap refs inside state TODO: check if this is still necessary
22830
- wd(M(o ? o() : {}).value)
22830
+ wd(k(o ? o() : {}).value)
22831
22831
  ) : wd(t.state.value[n]);
22832
22832
  return kt(p, i, Object.keys(s || {}).reduce((u, f) => (process.env.NODE_ENV !== "production" && f in p && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${f}" in store "${n}".`), u[f] = In($(() => {
22833
22833
  Xo(t);
@@ -22849,7 +22849,7 @@ function Sl(n, e, t = {}, r, o, i) {
22849
22849
  let d, p, u = [], f = [], h;
22850
22850
  const m = r.state.value[n];
22851
22851
  !i && !m && (process.env.NODE_ENV === "production" || !o) && (r.state.value[n] = {});
22852
- const g = M({});
22852
+ const g = k({});
22853
22853
  let b;
22854
22854
  function v(D) {
22855
22855
  let I;
@@ -23463,7 +23463,7 @@ const XB = /* @__PURE__ */ QB("pageBuilderState", {
23463
23463
  }, nP = { class: "pbx-myPrimaryInputError pbx-mt-2 pbx-mb-0 pbx-py-0 pbx-self-start" }, rP = { class: "pbx-blockease-linear pbx-duration-200 pbx-block pbx-ease-linear" }, oP = { key: 0 }, iP = { class: "pbx-relative pbx-rounded-lg" }, sP = { class: "pbx-flex pbx-justify-between pbx-myPrimaryGap pbx-items-center pbx-pb-2 pbx-mb-2 pbx-px-4 pbx-overflow-x-auto pbx-border-0 pbx-border-b pbx-border-solid pbx-border-gray-200" }, aP = { class: "pbx-px-2 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-w-max pbx-p-1 pbx-rounded-full pbx-border-solid pbx-border pbx-border-gray-200 pbx-shadow-sm" }, lP = { class: "pbx-flex pbx-items-center pbx-p-1 pbx-rounded-full pbx-border-solid pbx-border pbx-border-gray-200 pbx-shadow-sm" }, dP = { class: "pbx-px-2 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-w-max" }, pP = { class: "pbx-px-2 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-w-max" }, cP = { class: "pbx-px-2 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-w-max" }, uP = { class: "pbx-px-2 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-w-max" }, fP = { class: "pbx-px-2 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-w-max" }, hP = { class: "pbx-px-2 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-w-max" }, mP = {
23464
23464
  __name: "TipTapInput",
23465
23465
  setup(n) {
23466
- const e = ke(), { translate: t } = Me(), r = Ce, o = M(!1), i = M(""), s = M(1), a = M(""), l = M(""), d = M(""), p = M(null), u = M(null), f = M(null), h = M(null), m = M(null), g = $(() => r.getElement), b = M(""), v = $(() => C.value ? C.value.getHTML() : null), S = M(0);
23466
+ const e = ke(), { translate: t } = Me(), r = Ce, o = k(!1), i = k(""), s = k(1), a = k(""), l = k(""), d = k(""), p = k(null), u = k(null), f = k(null), h = k(null), m = k(null), g = $(() => r.getElement), b = k(""), v = $(() => C.value ? C.value.getHTML() : null), S = k(0);
23467
23467
  ee(g, (I) => {
23468
23468
  const N = document.createElement("div");
23469
23469
  if (I) {
@@ -23495,7 +23495,7 @@ const XB = /* @__PURE__ */ QB("pageBuilderState", {
23495
23495
  ee(g, () => {
23496
23496
  x();
23497
23497
  });
23498
- const B = M(""), E = M(""), P = M(null);
23498
+ const B = k(""), E = k(""), P = k(null);
23499
23499
  ee(B, (I) => {
23500
23500
  E.value = I;
23501
23501
  });
@@ -23512,7 +23512,7 @@ const XB = /* @__PURE__ */ QB("pageBuilderState", {
23512
23512
  };
23513
23513
  }, q = function() {
23514
23514
  P.value = null;
23515
- const I = /^https?:\/\//, N = M(!0);
23515
+ const I = /^https?:\/\//, N = k(!0);
23516
23516
  return N.value = I.test(E.value), N.value === !1 ? (P.value = "The provided URL is invalid. Please ensure that it begins with 'https://' for proper formatting and security.", !0) : !1;
23517
23517
  }, D = function() {
23518
23518
  C.value.chain().focus().extendMarkRange("link").setLink({ href: E.value }).run();
@@ -23522,7 +23522,7 @@ const XB = /* @__PURE__ */ QB("pageBuilderState", {
23522
23522
  (I = C.value) == null || I.destroy();
23523
23523
  }), gn(() => {
23524
23524
  x();
23525
- }), (I, N) => (w(), k("div", null, [
23525
+ }), (I, N) => (w(), M("div", null, [
23526
23526
  z(zn, {
23527
23527
  maxWidth: "4xl",
23528
23528
  showDynamicModalBuilder: o.value,
@@ -23552,7 +23552,7 @@ const XB = /* @__PURE__ */ QB("pageBuilderState", {
23552
23552
  }, null, 512), [
23553
23553
  [vr, B.value]
23554
23554
  ]),
23555
- P.value ? (w(), k("div", tP, [
23555
+ P.value ? (w(), M("div", tP, [
23556
23556
  c("p", nP, T(P.value), 1)
23557
23557
  ])) : L("", !0)
23558
23558
  ])
@@ -23562,7 +23562,7 @@ const XB = /* @__PURE__ */ QB("pageBuilderState", {
23562
23562
  __: [7]
23563
23563
  }, 8, ["showDynamicModalBuilder", "type", "gridColumnAmount", "title", "description", "firstButtonText", "secondButtonText", "thirdButtonText", "onFirstModalButtonFunctionDynamicModalBuilder", "onSecondModalButtonFunctionDynamicModalBuilder", "onThirdModalButtonFunctionDynamicModalBuilder"]),
23564
23564
  c("div", rP, [
23565
- y(e).isSelectedElementValidText() && y(C) ? (w(), k("div", oP, [
23565
+ y(e).isSelectedElementValidText() && y(C) ? (w(), M("div", oP, [
23566
23566
  c("div", iP, [
23567
23567
  c("div", sP, [
23568
23568
  c("div", null, [
@@ -23670,7 +23670,7 @@ const XB = /* @__PURE__ */ QB("pageBuilderState", {
23670
23670
  return t;
23671
23671
  }, bP = {}, gP = { class: "pbx-min-h-40" };
23672
23672
  function xP(n, e) {
23673
- return w(), k("div", gP, e[0] || (e[0] = [
23673
+ return w(), M("div", gP, e[0] || (e[0] = [
23674
23674
  c("p", { class: "pbx-myPrimaryParagraph" }, [
23675
23675
  Se(" Provide your own Media Library Component to integrate a custom media picker into the Page Builder. "),
23676
23676
  c("br"),
@@ -23722,9 +23722,9 @@ const yP = /* @__PURE__ */ Js(bP, [["render", xP]]), vP = {
23722
23722
  maxWidth: "6xl"
23723
23723
  }, {
23724
23724
  default: j(() => [
23725
- n.customMediaComponent ? (w(), k("div", vP, [
23725
+ n.customMediaComponent ? (w(), M("div", vP, [
23726
23726
  (w(), fe(Dc(n.customMediaComponent)))
23727
- ])) : (w(), k("div", wP, [
23727
+ ])) : (w(), M("div", wP, [
23728
23728
  z(yP)
23729
23729
  ]))
23730
23730
  ]),
@@ -23733,7 +23733,7 @@ const yP = /* @__PURE__ */ Js(bP, [["render", xP]]), vP = {
23733
23733
  }
23734
23734
  };
23735
23735
  function SP(n, e, t) {
23736
- let r = M(t == null ? void 0 : t.value), o = $(() => n.value !== void 0);
23736
+ let r = k(t == null ? void 0 : t.value), o = $(() => n.value !== void 0);
23737
23737
  return [$(() => o.value ? n.value : r.value), function(i) {
23738
23738
  return o.value || (r.value = i), e == null ? void 0 : e(i);
23739
23739
  }];
@@ -23853,7 +23853,7 @@ function RP(n, e, t = $(() => !0)) {
23853
23853
  }
23854
23854
  return !X0(a, yd.Loose) && a.tabIndex !== -1 && i.preventDefault(), e(i, a);
23855
23855
  }
23856
- let o = M(null);
23856
+ let o = k(null);
23857
23857
  Pi("pointerdown", (i) => {
23858
23858
  var s, a;
23859
23859
  t.value && (o.value = ((a = (s = i.composedPath) == null ? void 0 : s.call(i)) == null ? void 0 : a[0]) || i.target);
@@ -23870,7 +23870,7 @@ function yc(n, e) {
23870
23870
  if (typeof t == "string" && t.toLowerCase() === "button") return "button";
23871
23871
  }
23872
23872
  function HP(n, e) {
23873
- let t = M(yc(n.value.type, n.value.as));
23873
+ let t = k(yc(n.value.type, n.value.as));
23874
23874
  return gn(() => {
23875
23875
  t.value = yc(n.value.type, n.value.as);
23876
23876
  }), io(() => {
@@ -23882,7 +23882,7 @@ function vc(n) {
23882
23882
  return [n.screenX, n.screenY];
23883
23883
  }
23884
23884
  function FP() {
23885
- let n = M([-1, -1]);
23885
+ let n = k([-1, -1]);
23886
23886
  return { wasMoved(e) {
23887
23887
  let t = vc(e);
23888
23888
  return n.value[0] === t[0] && n.value[1] === t[1] ? !1 : (n.value = t, !0);
@@ -24050,7 +24050,7 @@ function JP(n) {
24050
24050
  return Sc(n).trim();
24051
24051
  }
24052
24052
  function YP(n) {
24053
- let e = M(""), t = M("");
24053
+ let e = k(""), t = k("");
24054
24054
  return () => {
24055
24055
  let r = Te(n);
24056
24056
  if (!r) return "";
@@ -24077,7 +24077,7 @@ function ii(n) {
24077
24077
  return e;
24078
24078
  }
24079
24079
  let si = it({ name: "Listbox", emits: { "update:modelValue": (n) => !0 }, props: { as: { type: [Object, String], default: "template" }, disabled: { type: [Boolean], default: !1 }, by: { type: [String, Function], default: () => QP }, 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(n, { slots: e, attrs: t, emit: r }) {
24080
- let o = M(1), i = M(null), s = M(null), a = M(null), l = M([]), d = M(""), p = M(null), u = M(1);
24080
+ let o = k(1), i = k(null), s = k(null), a = k(null), l = k([]), d = k(""), p = k(null), u = k(1);
24081
24081
  function f(C = (x) => x) {
24082
24082
  let x = p.value !== null ? l.value[p.value] : null, B = DP(C(l.value.slice()), (P) => Te(P.dataRef.domRef)), E = x ? B.indexOf(x) : null;
24083
24083
  return E === -1 && (E = null), { options: B, activeOptionIndex: E };
@@ -24203,7 +24203,7 @@ let Br = it({ name: "ListboxButton", props: { as: { type: [Object, String], defa
24203
24203
  };
24204
24204
  } }), ai = it({ 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(n, { attrs: e, slots: t, expose: r }) {
24205
24205
  var o;
24206
- let i = (o = n.id) != null ? o : `headlessui-listbox-options-${Ys()}`, s = ii("ListboxOptions"), a = M(null);
24206
+ let i = (o = n.id) != null ? o : `headlessui-listbox-options-${Ys()}`, s = ii("ListboxOptions"), a = k(null);
24207
24207
  r({ el: s.optionsRef, $el: s.optionsRef });
24208
24208
  function l(u) {
24209
24209
  switch (a.value && clearTimeout(a.value), u.key) {
@@ -24251,7 +24251,7 @@ let Br = it({ name: "ListboxButton", props: { as: { type: [Object, String], defa
24251
24251
  };
24252
24252
  } }), li = it({ 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(n, { slots: e, attrs: t, expose: r }) {
24253
24253
  var o;
24254
- let i = (o = n.id) != null ? o : `headlessui-listbox-option-${Ys()}`, s = ii("ListboxOption"), a = M(null);
24254
+ let i = (o = n.id) != null ? o : `headlessui-listbox-option-${Ys()}`, s = ii("ListboxOption"), a = k(null);
24255
24255
  r({ el: a, $el: a });
24256
24256
  let l = $(() => s.activeOptionIndex.value !== null ? s.options.value[s.activeOptionIndex.value].id === i : !1), d = $(() => Ht(s.mode.value, { 0: () => s.compare(Je(s.value.value), Je(n.value)), 1: () => Je(s.value.value).some((C) => s.compare(Je(C), Je(n.value))) })), p = $(() => Ht(s.mode.value, { 1: () => {
24257
24257
  var C;
@@ -24317,7 +24317,7 @@ const n3 = { class: "pbx-relative" }, r3 = { class: "pbx-flex pbx-justify-start
24317
24317
  }
24318
24318
  },
24319
24319
  setup(n) {
24320
- const { translate: e } = Me(), t = ke(), r = Ce, o = M(null), i = $(() => r.getTextColor);
24320
+ const { translate: e } = Me(), t = ke(), r = Ce, o = k(null), i = $(() => r.getTextColor);
24321
24321
  return ee(
24322
24322
  i,
24323
24323
  async (s) => {
@@ -24351,7 +24351,7 @@ const n3 = { class: "pbx-relative" }, r3 = { class: "pbx-flex pbx-justify-start
24351
24351
  c("div", null, T(y(e)("Text Color")), 1)
24352
24352
  ])
24353
24353
  ]),
24354
- n.globalPageLayout ? (w(), k("span", o3, " chevron_right ")) : L("", !0)
24354
+ n.globalPageLayout ? (w(), M("span", o3, " chevron_right ")) : L("", !0)
24355
24355
  ];
24356
24356
  }),
24357
24357
  _: 1
@@ -24384,7 +24384,7 @@ const n3 = { class: "pbx-relative" }, r3 = { class: "pbx-flex pbx-justify-start
24384
24384
  default: j(() => [
24385
24385
  z(y(ai), { class: "pbx-headless-dropdown pbx-absolute pbx-min-w-[12rem] pbx-z-40 pbx-mt-1 pbx-max-h-56 pbx-w-full pbx-overflow-auto pbx-rounded-md pbx-bg-gray-50 pbx-py-1 pbx-text-base pbx-shadow-lg pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 focus:pbx-outline-none sm:pbx-text-sm" }, {
24386
24386
  default: j(() => [
24387
- (w(!0), k(X, null, ue(y(Fi).textColorVariables, (l) => (w(), fe(y(li), {
24387
+ (w(!0), M(X, null, ue(y(Fi).textColorVariables, (l) => (w(), fe(y(li), {
24388
24388
  as: "template",
24389
24389
  onClick: a[0] || (a[0] = (d) => y(t).handleTextColor(o.value)),
24390
24390
  key: l,
@@ -24397,11 +24397,11 @@ const n3 = { class: "pbx-relative" }, r3 = { class: "pbx-flex pbx-justify-start
24397
24397
  "pbx-relative pbx-cursor-default pbx-select-none pbx-py-2 pbx-pl-3 pbx-pr-9"
24398
24398
  ])
24399
24399
  }, [
24400
- l === "none" ? (w(), k("div", a3, a[2] || (a[2] = [
24400
+ l === "none" ? (w(), M("div", a3, a[2] || (a[2] = [
24401
24401
  c("span", { class: "material-symbols-outlined" }, " invert_colors ", -1),
24402
24402
  c("span", { class: "pbx-ml-3" }, "Default black", -1)
24403
24403
  ]))) : L("", !0),
24404
- l !== "none" ? (w(), k("div", l3, [
24404
+ l !== "none" ? (w(), M("div", l3, [
24405
24405
  c("div", {
24406
24406
  class: K(["pbx-aspect-square pbx-w-6 pbx-h-6 pbx-border-solid pbx-border pbx-border-gray-100 pbx-rounded-sm", `pbx-bg-${l.replace("pbx-text-", "")}`])
24407
24407
  }, null, 2),
@@ -24439,7 +24439,7 @@ const n3 = { class: "pbx-relative" }, r3 = { class: "pbx-flex pbx-justify-start
24439
24439
  }
24440
24440
  },
24441
24441
  setup(n) {
24442
- const { translate: e } = Me(), t = ke(), r = Ce, o = M(null), i = $(() => r.getBackgroundColor);
24442
+ const { translate: e } = Me(), t = ke(), r = Ce, o = k(null), i = $(() => r.getBackgroundColor);
24443
24443
  return ee(
24444
24444
  i,
24445
24445
  async (s) => {
@@ -24471,7 +24471,7 @@ const n3 = { class: "pbx-relative" }, r3 = { class: "pbx-flex pbx-justify-start
24471
24471
  }, null, 2),
24472
24472
  c("div", null, T(y(e)("Background Color")), 1)
24473
24473
  ]),
24474
- n.globalPageLayout ? (w(), k("span", u3, " chevron_right ")) : L("", !0)
24474
+ n.globalPageLayout ? (w(), M("span", u3, " chevron_right ")) : L("", !0)
24475
24475
  ];
24476
24476
  }),
24477
24477
  _: 1
@@ -24504,7 +24504,7 @@ const n3 = { class: "pbx-relative" }, r3 = { class: "pbx-flex pbx-justify-start
24504
24504
  default: j(() => [
24505
24505
  z(y(ai), { class: "pbx-headless-dropdown pbx-absolute pbx-min-w-[12rem] pbx-z-40 pbx-mt-1 pbx-max-h-56 pbx-w-full pbx-overflow-auto pbx-rounded-md pbx-bg-gray-50 pbx-py-1 pbx-text-base pbx-shadow-lg pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 focus:pbx-outline-none sm:pbx-text-sm" }, {
24506
24506
  default: j(() => [
24507
- (w(!0), k(X, null, ue(y(Fi).backgroundColorVariables, (l) => (w(), fe(y(li), {
24507
+ (w(!0), M(X, null, ue(y(Fi).backgroundColorVariables, (l) => (w(), fe(y(li), {
24508
24508
  as: "template",
24509
24509
  onClick: a[0] || (a[0] = (d) => y(t).handleBackgroundColor(o.value)),
24510
24510
  key: l,
@@ -24517,11 +24517,11 @@ const n3 = { class: "pbx-relative" }, r3 = { class: "pbx-flex pbx-justify-start
24517
24517
  "pbx-relative pbx-cursor-default pbx-select-none pbx-py-2 pbx-pl-3 pbx-pr-9"
24518
24518
  ])
24519
24519
  }, [
24520
- l === "none" ? (w(), k("div", m3, [
24520
+ l === "none" ? (w(), M("div", m3, [
24521
24521
  a[2] || (a[2] = c("span", { class: "material-symbols-outlined" }, " ev_shadow ", -1)),
24522
24522
  c("span", b3, T(y(e)("Transparent")), 1)
24523
24523
  ])) : L("", !0),
24524
- l !== "none" ? (w(), k("div", g3, [
24524
+ l !== "none" ? (w(), M("div", g3, [
24525
24525
  c("div", {
24526
24526
  class: K(["pbx-aspect-square pbx-w-6 pbx-h-6 pbx-border-solid pbx-border pbx-border-gray-100 pbx-rounded-sm", `pbx-bg-${l.replace("pbx-bg-", "")}`])
24527
24527
  }, null, 2),
@@ -24553,7 +24553,7 @@ const n3 = { class: "pbx-relative" }, r3 = { class: "pbx-flex pbx-justify-start
24553
24553
  class: "pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-w-max"
24554
24554
  }, B3 = {
24555
24555
  key: 0,
24556
- class: "pbx-fixed pbx-z-40 pbx-top-10 pbx-right-0 lg:pbx-w-72 md:pbx-w-72 pbx-w-full pbx-select-none"
24556
+ class: "pbx-fixed pbx-z-40 pbx-top-10 pbx-right-[-4rem] lg:pbx-w-72 pbx-w-72 pbx-select-none"
24557
24557
  }, P3 = { class: "pbx-rounded-3xl pbx-border pbx-border-gray-100 pbx-bg-white pbx-shadow-lg pbx-pt-4 pbx-pb-4 pbx-flex pbx-flex-col pbx-overflow-y-auto pbx-max-h-[80vh] pbx-mx-4 pbx-px-2" }, L3 = { class: "pbx-flex pbx-flex-col" }, A3 = ["disabled"], O3 = ["disabled"], D3 = { class: "pbx-text-sm" }, I3 = {
24558
24558
  __name: "EditGetElement",
24559
24559
  setup(n) {
@@ -24565,39 +24565,39 @@ const n3 = { class: "pbx-relative" }, r3 = { class: "pbx-flex pbx-justify-start
24565
24565
  const s = $(() => t.canMoveUp()), a = $(() => t.canMoveDown()), l = $(() => {
24566
24566
  const Be = r.getShowModalTipTap;
24567
24567
  return Be && x(), Be;
24568
- }), d = $(() => r.getComponent), p = M(""), u = M(1), f = M(""), h = M(""), m = M(""), g = M(null), b = M(null), v = M(null), S = M(null), C = M(null), x = function() {
24568
+ }), d = $(() => r.getComponent), p = k(""), u = k(1), f = k(""), h = k(""), m = k(""), g = k(null), b = k(null), v = k(null), S = k(null), C = k(null), x = function() {
24569
24569
  t.toggleTipTapModal(!0), p.value = "success", u.value = 2, f.value = e("Manage Content"), h.value = null, m.value = null, g.value = null, b.value = "Save", v.value = function() {
24570
24570
  t.toggleTipTapModal(!1);
24571
24571
  }, C.value = function() {
24572
24572
  t.toggleTipTapModal(!0);
24573
24573
  };
24574
- }, B = $(() => r.getBasePrimaryImage), E = M(!1), P = M(""), H = M(""), q = M(""), D = M(null), I = M(null), N = M(null), Y = function() {
24574
+ }, B = $(() => r.getBasePrimaryImage), E = k(!1), P = k(""), H = k(""), q = k(""), D = k(null), I = k(null), N = k(null), Y = function() {
24575
24575
  E.value = !0, P.value = e("Media Library"), H.value = null, q.value = e("Close"), D.value = e(" Select image"), N.value = function() {
24576
24576
  E.value = !1;
24577
24577
  };
24578
- }, se = M(null), ae = M(""), ce = M(!1), he = function() {
24578
+ }, se = k(null), ae = k(""), ce = k(!1), he = function() {
24579
24579
  se.value = null;
24580
- const Be = /^https?:\/\//, W = M(!0);
24581
- return W.value = Be.test(ae.value), W.value === !1 ? (se.value = "The provided URL is invalid. Please ensure that it begins with 'https://' for proper formatting and security.", !0) : !1;
24580
+ const Be = /^https?:\/\//, G = k(!0);
24581
+ return G.value = Be.test(ae.value), G.value === !1 ? (se.value = "The provided URL is invalid. Please ensure that it begins with 'https://' for proper formatting and security.", !0) : !1;
24582
24582
  }, me = function() {
24583
- var W;
24583
+ var G;
24584
24584
  se.value = null;
24585
- const Be = i.value && ((W = i.value.firstElementChild) == null ? void 0 : W.tagName) === "IFRAME" && i.value.firstElementChild.hasAttribute("src") && i.value.firstElementChild.getAttribute("src").trim() !== "" ? i.value.firstElementChild.src : "";
24585
+ const Be = i.value && ((G = i.value.firstElementChild) == null ? void 0 : G.tagName) === "IFRAME" && i.value.firstElementChild.hasAttribute("src") && i.value.firstElementChild.getAttribute("src").trim() !== "" ? i.value.firstElementChild.src : "";
24586
24586
  ae.value = Be, ce.value = !0, p.value = "success", u.value = 2, f.value = "Add video url", h.value = null, m.value = e("Close"), g.value = "Save", b.value = null, v.value = function() {
24587
24587
  ce.value = !1;
24588
24588
  }, S.value = function() {
24589
24589
  he() || (i.value && i.value.firstElementChild && i.value.firstElementChild.tagName === "IFRAME" && (ae.value = ae.value.replace("watch?v=", "embed/"), ae.value = ae.value.replace(/&ab_channel=[^&]*/, "").replace(/&list=[^&]*/, "").replace(/&start_radio=[^&]*/, "").replace(/&t=[^&]*/, ""), i.value.firstElementChild.src = ae.value), ce.value = !1);
24590
24590
  };
24591
- }, ne = M(!1), at = async () => {
24591
+ }, ne = k(!1), at = async () => {
24592
24592
  ne.value = !1, r.setShowModalHTMLEditor(!0);
24593
- }, lt = M(!1), et = M(""), vt = M(1), dt = M(""), Ue = M(""), Ge = M(""), Dt = M(null), Re = M(null), It = M(null), mt = M(null), pt = M(null), nn = function() {
24594
- lt.value = !0, et.value = "delete", vt.value = 2, dt.value = e("Remove Component?"), Ue.value = e("Are you sure you want to remove this Component?"), Ge.value = e("Close"), Dt.value = null, Re.value = e("Delete"), It.value = function() {
24593
+ }, lt = k(!1), et = k(""), vt = k(1), dt = k(""), We = k(""), Ue = k(""), Dt = k(null), Re = k(null), It = k(null), mt = k(null), pt = k(null), nn = function() {
24594
+ lt.value = !0, et.value = "delete", vt.value = 2, dt.value = e("Remove Component?"), We.value = e("Are you sure you want to remove this Component?"), Ue.value = e("Close"), Dt.value = null, Re.value = e("Delete"), It.value = function() {
24595
24595
  lt.value = !1;
24596
24596
  }, pt.value = async function() {
24597
24597
  await t.deleteComponentFromDOM(), lt.value = !1;
24598
24598
  };
24599
24599
  };
24600
- return (Be, W) => (w(), k("div", null, [
24600
+ return (Be, G) => (w(), M("div", null, [
24601
24601
  z(zn, {
24602
24602
  showDynamicModalBuilder: ce.value,
24603
24603
  maxWidth: "2xl",
@@ -24613,25 +24613,25 @@ const n3 = { class: "pbx-relative" }, r3 = { class: "pbx-flex pbx-justify-start
24613
24613
  onThirdModalButtonFunctionDynamicModalBuilder: C.value
24614
24614
  }, {
24615
24615
  default: j(() => [
24616
- W[9] || (W[9] = c("header", null, null, -1)),
24616
+ G[9] || (G[9] = c("header", null, null, -1)),
24617
24617
  c("main", null, [
24618
24618
  c("div", y3, [
24619
24619
  c("div", v3, [
24620
24620
  c("div", w3, [
24621
- W[8] || (W[8] = c("label", {
24621
+ G[8] || (G[8] = c("label", {
24622
24622
  for: "youtube-video",
24623
24623
  class: "pbx-myPrimaryInputLabel"
24624
24624
  }, "Video url:", -1)),
24625
24625
  xe(c("input", {
24626
24626
  id: "youtube-video",
24627
- "onUpdate:modelValue": W[0] || (W[0] = (He) => ae.value = He),
24627
+ "onUpdate:modelValue": G[0] || (G[0] = (Ge) => ae.value = Ge),
24628
24628
  type: "text",
24629
24629
  class: "pbx-myPrimaryInput",
24630
24630
  name: "video"
24631
24631
  }, null, 512), [
24632
24632
  [vr, ae.value]
24633
24633
  ]),
24634
- se.value ? (w(), k("div", S3, [
24634
+ se.value ? (w(), M("div", S3, [
24635
24635
  c("p", C3, T(se.value), 1)
24636
24636
  ])) : L("", !0)
24637
24637
  ])
@@ -24658,7 +24658,7 @@ const n3 = { class: "pbx-relative" }, r3 = { class: "pbx-flex pbx-justify-start
24658
24658
  onThirdModalButtonFunctionDynamicModalBuilder: C.value
24659
24659
  }, {
24660
24660
  default: j(() => [
24661
- W[10] || (W[10] = c("header", null, null, -1)),
24661
+ G[10] || (G[10] = c("header", null, null, -1)),
24662
24662
  c("main", T3, [
24663
24663
  z(mP)
24664
24664
  ])
@@ -24671,15 +24671,15 @@ const n3 = { class: "pbx-relative" }, r3 = { class: "pbx-flex pbx-justify-start
24671
24671
  type: et.value,
24672
24672
  gridColumnAmount: vt.value,
24673
24673
  title: dt.value,
24674
- description: Ue.value,
24675
- firstButtonText: Ge.value,
24674
+ description: We.value,
24675
+ firstButtonText: Ue.value,
24676
24676
  secondButtonText: Dt.value,
24677
24677
  thirdButtonText: Re.value,
24678
24678
  onFirstModalButtonFunctionDynamicModalBuilder: It.value,
24679
24679
  onSecondModalButtonFunctionDynamicModalBuilder: mt.value,
24680
24680
  onThirdModalButtonFunctionDynamicModalBuilder: pt.value
24681
24681
  }, {
24682
- default: j(() => W[11] || (W[11] = [
24682
+ default: j(() => G[11] || (G[11] = [
24683
24683
  c("header", null, null, -1),
24684
24684
  c("main", null, null, -1)
24685
24685
  ])),
@@ -24701,69 +24701,62 @@ const n3 = { class: "pbx-relative" }, r3 = { class: "pbx-flex pbx-justify-start
24701
24701
  c("div", {
24702
24702
  class: K(["pbx-flex pbx-items-center pbx-justify-center pbx-gap-2", { "": i.value }])
24703
24703
  }, [
24704
- y(t).ElOrFirstChildIsIframe() ? (w(), k("div", M3, [
24704
+ y(t).ElOrFirstChildIsIframe() ? (w(), M("div", M3, [
24705
24705
  c("button", {
24706
24706
  onClick: me,
24707
24707
  type: "button",
24708
24708
  class: "pbx-h-8 pbx-w-8 pbx-flex-end pbx-cursor-pointer pbx-rounded-full pbx-flex pbx-items-center pbx-border-none pbx-justify-center pbx-bg-gray-200 pbx-aspect-square hover:pbx-bg-gray-100 hover:pbx-fill-white focus-visible:pbx-ring-0 pbx-text-myPrimaryDarkGrayColor"
24709
- }, W[13] || (W[13] = [
24709
+ }, G[13] || (G[13] = [
24710
24710
  c("span", { class: "material-symbols-outlined" }, " play_circle ", -1)
24711
24711
  ]))
24712
24712
  ])) : L("", !0),
24713
- y(t).isSelectedElementValidText() && !y(t).ElOrFirstChildIsIframe() ? (w(), k(X, { key: 1 }, [
24713
+ y(t).isSelectedElementValidText() && !y(t).ElOrFirstChildIsIframe() ? (w(), M(X, { key: 1 }, [
24714
24714
  c("div", { class: "pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-w-max" }, [
24715
24715
  c("button", {
24716
24716
  onClick: x,
24717
24717
  type: "button",
24718
24718
  class: "pbx-h-8 pbx-w-8 pbx-flex-end pbx-cursor-pointer pbx-rounded-full pbx-flex pbx-items-center pbx-border-none pbx-justify-center pbx-bg-gray-200 pbx-aspect-square hover:pbx-bg-gray-100 hover:pbx-fill-white focus-visible:pbx-ring-0 pbx-text-myPrimaryDarkGrayColor"
24719
- }, W[14] || (W[14] = [
24719
+ }, G[14] || (G[14] = [
24720
24720
  c("span", { class: "material-symbols-outlined" }, " edit ", -1)
24721
24721
  ]))
24722
24722
  ]),
24723
24723
  z(l1)
24724
24724
  ], 64)) : L("", !0),
24725
- i.value && d.value && B.value && !y(t).ElOrFirstChildIsIframe() ? (w(), k("div", E3, [
24725
+ i.value && d.value && B.value && !y(t).ElOrFirstChildIsIframe() ? (w(), M("div", E3, [
24726
24726
  c("button", {
24727
24727
  onClick: Y,
24728
24728
  type: "button",
24729
24729
  class: "pbx-h-8 pbx-w-8 pbx-flex-end pbx-cursor-pointer pbx-rounded-full pbx-flex pbx-items-center pbx-border-none pbx-justify-center pbx-bg-gray-200 pbx-aspect-square hover:pbx-bg-gray-100 hover:pbx-fill-white focus-visible:pbx-ring-0 pbx-text-myPrimaryDarkGrayColor"
24730
- }, W[15] || (W[15] = [
24730
+ }, G[15] || (G[15] = [
24731
24731
  c("span", { class: "material-symbols-outlined" }, " add_photo_alternate ", -1)
24732
24732
  ]))
24733
24733
  ])) : L("", !0),
24734
24734
  i.value && i.value.nodeType === 1 && !B.value && !y(t).ElOrFirstChildIsIframe() ? (w(), fe(d1, { key: 3 })) : L("", !0),
24735
- i.value ? (w(), k("button", {
24736
- key: 4,
24737
- onClick: W[1] || (W[1] = (...He) => y(t).deleteElementFromDOM && y(t).deleteElementFromDOM(...He)),
24738
- type: "button",
24739
- class: "pbx-h-8 pbx-w-8 pbx-flex-end pbx-cursor-pointer pbx-rounded-full pbx-flex pbx-items-center pbx-border-none pbx-justify-center pbx-bg-gray-200 pbx-aspect-square hover:pbx-bg-gray-100 hover:pbx-fill-white focus-visible:pbx-ring-0 pbx-text-myPrimaryDarkGrayColor"
24740
- }, W[16] || (W[16] = [
24741
- c("span", { class: "material-symbols-outlined" }, " delete ", -1)
24742
- ]))) : L("", !0),
24743
- i.value && d.value ? (w(), k("div", {
24735
+ (i.value, L("", !0)),
24736
+ i.value && d.value ? (w(), M("div", {
24744
24737
  key: 5,
24745
24738
  class: "pbx-h-8 pbx-w-8 pbx-flex-end pbx-cursor-pointer pbx-rounded-full pbx-flex pbx-items-center pbx-border-none pbx-justify-center pbx-bg-gray-200 pbx-aspect-square hover:pbx-bg-gray-100 hover:pbx-fill-white focus-visible:pbx-ring-0 pbx-text-myPrimaryDarkGrayColor",
24746
- onClick: W[2] || (W[2] = (He) => ne.value = !ne.value)
24747
- }, W[17] || (W[17] = [
24739
+ onClick: G[2] || (G[2] = (Ge) => ne.value = !ne.value)
24740
+ }, G[17] || (G[17] = [
24748
24741
  c("span", { class: "material-symbols-outlined" }, " more_horiz ", -1)
24749
24742
  ]))) : L("", !0),
24750
- i.value && d.value ? (w(), k("div", {
24743
+ i.value && d.value ? (w(), M("div", {
24751
24744
  key: 6,
24752
24745
  class: "pbx-h-8 pbx-w-8 pbx-flex-end pbx-cursor-pointer pbx-rounded-full pbx-flex pbx-items-center pbx-border-none pbx-justify-center pbx-bg-gray-200 pbx-aspect-square hover:pbx-bg-gray-100 hover:pbx-fill-white focus-visible:pbx-ring-0 pbx-text-myPrimaryDarkGrayColor",
24753
- onClick: W[3] || (W[3] = (He) => y(t).clearHtmlSelection())
24754
- }, W[18] || (W[18] = [
24746
+ onClick: G[3] || (G[3] = (Ge) => y(t).clearHtmlSelection())
24747
+ }, G[18] || (G[18] = [
24755
24748
  c("span", { class: "material-symbols-outlined" }, " close_small", -1)
24756
24749
  ]))) : L("", !0)
24757
24750
  ], 2)
24758
24751
  ]),
24759
24752
  z(Pr, { name: "popup-fade" }, {
24760
24753
  default: j(() => [
24761
- ne.value ? (w(), k("div", B3, [
24754
+ ne.value ? (w(), M("div", B3, [
24762
24755
  c("div", P3, [
24763
24756
  c("div", L3, [
24764
- i.value && d.value ? (w(), k("div", {
24757
+ i.value && d.value ? (w(), M("div", {
24765
24758
  key: 0,
24766
- onClick: W[4] || (W[4] = (He) => y(t).reorderComponent(-1)),
24759
+ onClick: G[4] || (G[4] = (Ge) => y(t).reorderComponent(-1)),
24767
24760
  disabled: !s.value,
24768
24761
  class: "pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-cursor-pointer hover:pbx-bg-red-50 pbx-py-2 pbx-px-2 pbx-rounded-full"
24769
24762
  }, [
@@ -24771,14 +24764,14 @@ const n3 = { class: "pbx-relative" }, r3 = { class: "pbx-flex pbx-justify-start
24771
24764
  class: K(["pbx-h-8 pbx-w-8 pbx-flex-end pbx-cursor-pointer pbx-rounded-full pbx-flex pbx-items-center pbx-border-none pbx-justify-center pbx-bg-gray-200 pbx-aspect-square hover:pbx-bg-gray-100 hover:pbx-fill-white focus-visible:pbx-ring-0 pbx-text-myPrimaryDarkGrayColor", [
24772
24765
  s.value ? "hover:pbx-bg-myPrimaryLinkColor hover:pbx-text-white focus-visible:pbx-ring-0 pbx-cursor-pointer" : "pbx-cursor-not-allowed pbx-bg-opacity-20 hover:pbx-bg-gray-200"
24773
24766
  ]])
24774
- }, W[19] || (W[19] = [
24767
+ }, G[19] || (G[19] = [
24775
24768
  c("span", { class: "material-symbols-outlined" }, " move_up ", -1)
24776
24769
  ]), 2),
24777
- W[20] || (W[20] = c("div", { class: "pbx-text-sm" }, "Move up", -1))
24770
+ G[20] || (G[20] = c("div", { class: "pbx-text-sm" }, "Move up", -1))
24778
24771
  ], 8, A3)) : L("", !0),
24779
- i.value && d.value ? (w(), k("div", {
24772
+ i.value && d.value ? (w(), M("div", {
24780
24773
  key: 1,
24781
- onClick: W[5] || (W[5] = (He) => y(t).reorderComponent(1)),
24774
+ onClick: G[5] || (G[5] = (Ge) => y(t).reorderComponent(1)),
24782
24775
  disabled: !a.value,
24783
24776
  class: "pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-cursor-pointer hover:pbx-bg-red-50 pbx-py-2 pbx-px-2 pbx-rounded-full"
24784
24777
  }, [
@@ -24786,39 +24779,39 @@ const n3 = { class: "pbx-relative" }, r3 = { class: "pbx-flex pbx-justify-start
24786
24779
  class: K(["pbx-h-8 pbx-w-8 pbx-flex-end pbx-cursor-pointer pbx-rounded-full pbx-flex pbx-items-center pbx-border-none pbx-justify-center pbx-bg-gray-200 pbx-aspect-square hover:pbx-bg-gray-100 hover:pbx-fill-white focus-visible:pbx-ring-0 pbx-text-myPrimaryDarkGrayColor", [
24787
24780
  a.value ? "hover:pbx-bg-myPrimaryLinkColor hover:pbx-text-white focus-visible:pbx-ring-0 pbx-cursor-pointer" : "pbx-cursor-not-allowed pbx-bg-opacity-20 hover:pbx-bg-gray-200"
24788
24781
  ]])
24789
- }, W[21] || (W[21] = [
24782
+ }, G[21] || (G[21] = [
24790
24783
  c("span", { class: "material-symbols-outlined" }, " move_down ", -1)
24791
24784
  ]), 2),
24792
- W[22] || (W[22] = c("div", { class: "pbx-text-sm" }, "Move down", -1))
24785
+ G[22] || (G[22] = c("div", { class: "pbx-text-sm" }, "Move down", -1))
24793
24786
  ], 8, O3)) : L("", !0),
24794
- i.value && d.value ? (w(), k("div", {
24787
+ i.value && d.value ? (w(), M("div", {
24795
24788
  key: 2,
24796
- onClick: W[6] || (W[6] = (He) => nn()),
24789
+ onClick: G[6] || (G[6] = (Ge) => nn()),
24797
24790
  class: "pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-cursor-pointer hover:pbx-bg-red-50 pbx-py-2 pbx-px-2 pbx-rounded-full"
24798
- }, W[23] || (W[23] = [
24791
+ }, G[23] || (G[23] = [
24799
24792
  c("div", { class: "pbx-h- pbx-w-8 pbx-cursor-pointer pbx-rounded-full pbx-flex pbx-items-center pbx-border-none pbx-justify-center pbx-bg-gray-50 pbx-aspect-square hover:pbx-bg-myPrimaryErrorColor hover:pbx-text-white pbx-text-myPrimaryErrorColor" }, [
24800
24793
  c("span", { class: "material-symbols-outlined" }, " delete_forever ")
24801
24794
  ], -1),
24802
24795
  c("div", { class: "pbx-text-sm" }, "Delete component", -1)
24803
24796
  ]))) : L("", !0),
24804
- i.value && d.value ? (w(), k("div", {
24797
+ i.value && d.value ? (w(), M("div", {
24805
24798
  key: 3,
24806
- onClick: W[7] || (W[7] = () => {
24799
+ onClick: G[7] || (G[7] = () => {
24807
24800
  ne.value = !ne.value, y(t).duplicateComponent();
24808
24801
  }),
24809
24802
  class: "pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-cursor-pointer hover:pbx-bg-red-50 pbx-py-2 pbx-px-2 pbx-rounded-full"
24810
- }, W[24] || (W[24] = [
24803
+ }, G[24] || (G[24] = [
24811
24804
  c("div", { class: "pbx-h-8 pbx-w-8 pbx-flex-end pbx-cursor-pointer pbx-rounded-full pbx-flex pbx-items-center pbx-border-none pbx-justify-center pbx-bg-gray-200 pbx-aspect-square hover:pbx-bg-gray-100 hover:pbx-fill-white focus-visible:pbx-ring-0 pbx-text-myPrimaryDarkGrayColor" }, [
24812
24805
  c("span", { class: "material-symbols-outlined" }, " control_point_duplicate ")
24813
24806
  ], -1),
24814
24807
  c("div", { class: "pbx-text-sm" }, "Duplicate component", -1)
24815
24808
  ]))) : L("", !0),
24816
- i.value && d.value ? (w(), k("div", {
24809
+ i.value && d.value ? (w(), M("div", {
24817
24810
  key: 4,
24818
24811
  onClick: at,
24819
24812
  class: "pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-cursor-pointer hover:pbx-bg-red-50 pbx-py-2 pbx-px-2 pbx-rounded-full"
24820
24813
  }, [
24821
- W[25] || (W[25] = c("div", { class: "pbx-h-8 pbx-w-8 pbx-flex-end pbx-cursor-pointer pbx-rounded-full pbx-flex pbx-items-center pbx-border-none pbx-justify-center pbx-bg-gray-200 pbx-aspect-square hover:pbx-bg-gray-100 hover:pbx-fill-white focus-visible:pbx-ring-0 pbx-text-myPrimaryDarkGrayColor" }, [
24814
+ G[25] || (G[25] = c("div", { class: "pbx-h-8 pbx-w-8 pbx-flex-end pbx-cursor-pointer pbx-rounded-full pbx-flex pbx-items-center pbx-border-none pbx-justify-center pbx-bg-gray-200 pbx-aspect-square hover:pbx-bg-gray-100 hover:pbx-fill-white focus-visible:pbx-ring-0 pbx-text-myPrimaryDarkGrayColor" }, [
24822
24815
  c("span", { class: "material-symbols-outlined" }, " deployed_code ")
24823
24816
  ], -1)),
24824
24817
  c("div", D3, T(y(e)("HTML Editor")), 1)
@@ -25540,10 +25533,10 @@ const N3 = {
25540
25533
  }
25541
25534
  },
25542
25535
  setup(n) {
25543
- const { translate: e } = Me(), t = ke(), r = M(!1), o = M("Components"), i = ["Components", "Themes"], s = M("All"), a = $(() => {
25536
+ const { translate: e } = Me(), t = ke(), r = k(!1), o = k("Components"), i = ["Components", "Themes"], s = k("All"), a = $(() => {
25544
25537
  const b = Da[0].components.data.map((v) => v.category);
25545
25538
  return ["All", ...new Set(b)];
25546
- }), l = $(() => s.value === "All" ? Da[0].components.data : Da[0].components.data.filter((b) => b.category === s.value)), d = M("All"), p = $(() => {
25539
+ }), l = $(() => s.value === "All" ? Da[0].components.data : Da[0].components.data.filter((b) => b.category === s.value)), d = k("All"), p = $(() => {
25547
25540
  const b = Ia[0].themes.data.map((v) => v.category);
25548
25541
  return ["All", ...new Set(b)];
25549
25542
  }), u = $(() => d.value === "All" ? Ia[0].themes.data : Ia[0].themes.data.filter((b) => b.category === d.value)), { closeAddComponentModal: f } = _3(), h = async function(b) {
@@ -25567,17 +25560,17 @@ const N3 = {
25567
25560
  title: b.title
25568
25561
  };
25569
25562
  };
25570
- return (b, v) => (w(), k("div", null, [
25571
- r.value ? (w(), k("div", N3, [
25563
+ return (b, v) => (w(), M("div", null, [
25564
+ r.value ? (w(), M("div", N3, [
25572
25565
  c("div", R3, [
25573
25566
  c("div", H3, [
25574
25567
  c("span", F3, T(y(e)("Loading...")), 1)
25575
25568
  ])
25576
25569
  ])
25577
25570
  ])) : L("", !0),
25578
- r.value ? L("", !0) : (w(), k("div", z3, [
25571
+ r.value ? L("", !0) : (w(), M("div", z3, [
25579
25572
  c("div", V3, [
25580
- (w(), k(X, null, ue(i, (S) => c("button", {
25573
+ (w(), M(X, null, ue(i, (S) => c("button", {
25581
25574
  key: S,
25582
25575
  onClick: (C) => o.value = S,
25583
25576
  class: K(["pbx-mySecondaryButton pbx-text-xs pbx-px-4", [
@@ -25585,10 +25578,10 @@ const N3 = {
25585
25578
  ]])
25586
25579
  }, T(y(e)(S)), 11, j3)), 64))
25587
25580
  ]),
25588
- o.value === "Themes" ? (w(), k("div", q3, [
25581
+ o.value === "Themes" ? (w(), M("div", q3, [
25589
25582
  c("h3", W3, T(y(e)("Themes")), 1),
25590
25583
  c("div", U3, [
25591
- (w(!0), k(X, null, ue(p.value, (S) => (w(), k("button", {
25584
+ (w(!0), M(X, null, ue(p.value, (S) => (w(), M("button", {
25592
25585
  key: S,
25593
25586
  onClick: (C) => d.value = S,
25594
25587
  class: K(["pbx-mySecondaryButton pbx-text-xs pbx-px-4", [
@@ -25597,7 +25590,7 @@ const N3 = {
25597
25590
  }, T(y(e)(S)), 11, G3))), 128))
25598
25591
  ]),
25599
25592
  c("div", K3, [
25600
- (w(!0), k(X, null, ue(u.value, (S) => (w(), k("div", {
25593
+ (w(!0), M(X, null, ue(u.value, (S) => (w(), M("div", {
25601
25594
  key: S.title,
25602
25595
  class: "pbx-border-solid pbx-border pbx-border-gray-400 pbx-overflow-hidden hover:pbx-border-myPrimaryLinkColor pbx-duration-100 pbx-cursor-pointer pbx-max-h-96",
25603
25596
  onClick: (C) => h(S.html_code)
@@ -25615,11 +25608,11 @@ const N3 = {
25615
25608
  ], 8, J3))), 128))
25616
25609
  ])
25617
25610
  ])) : L("", !0),
25618
- o.value === "Components" ? (w(), k(X, { key: 1 }, [
25611
+ o.value === "Components" ? (w(), M(X, { key: 1 }, [
25619
25612
  c("div", tL, [
25620
25613
  c("h3", nL, T(y(e)("Helper Components")), 1),
25621
25614
  c("div", rL, [
25622
- (w(!0), k(X, null, ue(y($3), (S) => (w(), k("div", {
25615
+ (w(!0), M(X, null, ue(y($3), (S) => (w(), M("div", {
25623
25616
  key: S.title,
25624
25617
  class: "pbx-border-solid pbx-border pbx-border-gray-400 pbx-overflow-hidden hover:pbx-border-myPrimaryLinkColor pbx-duration-100 pbx-cursor-pointer pbx-max-h-96 pbx-p-4",
25625
25618
  onClick: (C) => m(S)
@@ -25632,10 +25625,10 @@ const N3 = {
25632
25625
  ], 8, oL))), 128))
25633
25626
  ])
25634
25627
  ]),
25635
- n.customMediaComponent ? (w(), k("div", lL, [
25628
+ n.customMediaComponent ? (w(), M("div", lL, [
25636
25629
  c("h3", dL, T(y(e)("Layout Components")), 1),
25637
25630
  c("div", pL, [
25638
- (w(!0), k(X, null, ue(a.value, (S) => (w(), k("button", {
25631
+ (w(!0), M(X, null, ue(a.value, (S) => (w(), M("button", {
25639
25632
  key: S,
25640
25633
  onClick: (C) => s.value = S,
25641
25634
  class: K(["pbx-mySecondaryButton pbx-text-xs pbx-px-4", [
@@ -25644,7 +25637,7 @@ const N3 = {
25644
25637
  }, T(y(e)(S)), 11, cL))), 128))
25645
25638
  ]),
25646
25639
  c("div", uL, [
25647
- (w(!0), k(X, null, ue(l.value, (S) => (w(), k("div", {
25640
+ (w(!0), M(X, null, ue(l.value, (S) => (w(), M("div", {
25648
25641
  key: S.title,
25649
25642
  class: "pbx-border-solid pbx-border pbx-border-gray-400 pbx-overflow-hidden hover:pbx-border-myPrimaryLinkColor pbx-duration-100 pbx-cursor-pointer pbx-max-h-96",
25650
25643
  onClick: (C) => m(g(S))
@@ -25704,9 +25697,9 @@ const N3 = {
25704
25697
  default: j(() => [
25705
25698
  c("div", wL, [
25706
25699
  c("div", null, [
25707
- n.CustomBuilderComponents ? (w(), k("div", SL, [
25700
+ n.CustomBuilderComponents ? (w(), M("div", SL, [
25708
25701
  (w(), fe(Dc(n.CustomBuilderComponents)))
25709
- ])) : (w(), k("div", CL, [
25702
+ ])) : (w(), M("div", CL, [
25710
25703
  z(vL, { customMediaComponent: y(t) }, null, 8, ["customMediaComponent"])
25711
25704
  ]))
25712
25705
  ])
@@ -25718,7 +25711,7 @@ const N3 = {
25718
25711
  }, kL = {
25719
25712
  setup() {
25720
25713
  return {
25721
- expanded: M(!1)
25714
+ expanded: k(!1)
25722
25715
  };
25723
25716
  }
25724
25717
  }, ML = { class: "pbx-myPrimaryParagraph pbx-font-medium pbx-my-0 pbx-py-0" }, EL = {
@@ -25729,7 +25722,7 @@ const N3 = {
25729
25722
  class: "material-symbols-outlined"
25730
25723
  };
25731
25724
  function PL(n, e, t, r, o, i) {
25732
- return w(), k("div", {
25725
+ return w(), M("div", {
25733
25726
  class: K(["pbx-flex pbx-flex-col pbx-border-solid pbx-border pbx-border-gray-400", { "": r.expanded }])
25734
25727
  }, [
25735
25728
  c("div", {
@@ -25739,8 +25732,8 @@ function PL(n, e, t, r, o, i) {
25739
25732
  c("p", ML, [
25740
25733
  pr(n.$slots, "title")
25741
25734
  ]),
25742
- r.expanded ? (w(), k("span", EL, " keyboard_arrow_down ")) : L("", !0),
25743
- r.expanded ? L("", !0) : (w(), k("span", BL, " chevron_right "))
25735
+ r.expanded ? (w(), M("span", EL, " keyboard_arrow_down ")) : L("", !0),
25736
+ r.expanded ? L("", !0) : (w(), M("span", BL, " chevron_right "))
25744
25737
  ]),
25745
25738
  c("div", {
25746
25739
  class: K([[
@@ -25760,7 +25753,7 @@ const zt = /* @__PURE__ */ Js(kL, [["render", PL]]), LL = { class: "pbx-myPrimar
25760
25753
  }, Cc = {
25761
25754
  __name: "ClassEditor",
25762
25755
  setup(n) {
25763
- const { translate: e } = Me(), t = ke(), r = Ce, o = M(null), i = $(() => r.getCurrentClasses);
25756
+ const { translate: e } = Me(), t = ke(), r = Ce, o = k(null), i = $(() => r.getCurrentClasses);
25764
25757
  ee(
25765
25758
  i,
25766
25759
  (d) => {
@@ -25768,7 +25761,7 @@ const zt = /* @__PURE__ */ Js(kL, [["render", PL]]), LL = { class: "pbx-myPrimar
25768
25761
  },
25769
25762
  { immediate: !0 }
25770
25763
  );
25771
- const s = M(""), a = M(""), l = async () => {
25764
+ const s = k(""), a = k(""), l = async () => {
25772
25765
  var u;
25773
25766
  const d = s.value.trim();
25774
25767
  if (!d) {
@@ -25791,7 +25784,7 @@ const zt = /* @__PURE__ */ Js(kL, [["render", PL]]), LL = { class: "pbx-myPrimar
25791
25784
  "This is the CSS applied by the builder. Add your own CSS and press Enter to apply it to the selected element."
25792
25785
  )), 1),
25793
25786
  c("div", AL, [
25794
- (w(!0), k(X, null, ue(o.value, (u) => (w(), k("div", {
25787
+ (w(!0), M(X, null, ue(o.value, (u) => (w(), M("div", {
25795
25788
  key: u,
25796
25789
  class: "pbx-myPrimaryTag pbx-cursor-pointer hover:pbx-bg-myPrimaryErrorColor hover:pbx-text-white pbx-text-xs pbx-py-2 pbx-font-medium",
25797
25790
  onClick: async () => {
@@ -25829,7 +25822,7 @@ const zt = /* @__PURE__ */ Js(kL, [["render", PL]]), LL = { class: "pbx-myPrimar
25829
25822
  }, T(y(e)("Add")), 1)
25830
25823
  ])
25831
25824
  ]),
25832
- a.value ? (w(), k("p", HL, T(a.value), 1)) : L("", !0)
25825
+ a.value ? (w(), M("p", HL, T(a.value), 1)) : L("", !0)
25833
25826
  ]),
25834
25827
  _: 1
25835
25828
  }));
@@ -25843,7 +25836,7 @@ const zt = /* @__PURE__ */ Js(kL, [["render", PL]]), LL = { class: "pbx-myPrimar
25843
25836
  }, Tc = {
25844
25837
  __name: "StyleEditor",
25845
25838
  setup(n) {
25846
- const { translate: e } = Me(), t = ke(), r = Ce, o = M(null), i = $(() => r.getCurrentStyles);
25839
+ const { translate: e } = Me(), t = ke(), r = Ce, o = k(null), i = $(() => r.getCurrentStyles);
25847
25840
  ee(
25848
25841
  i,
25849
25842
  (f) => {
@@ -25851,7 +25844,7 @@ const zt = /* @__PURE__ */ Js(kL, [["render", PL]]), LL = { class: "pbx-myPrimar
25851
25844
  },
25852
25845
  { immediate: !0 }
25853
25846
  );
25854
- const s = M(""), a = M(""), l = M(""), d = M(null), p = () => {
25847
+ const s = k(""), a = k(""), l = k(""), d = k(null), p = () => {
25855
25848
  d.value && d.value.focus();
25856
25849
  }, u = async () => {
25857
25850
  const f = s.value.trim(), h = a.value.trim();
@@ -25874,7 +25867,7 @@ const zt = /* @__PURE__ */ Js(kL, [["render", PL]]), LL = { class: "pbx-myPrimar
25874
25867
  "These are the inline styles applied by the builder. Add your own styles and press Enter to apply them to the selected element."
25875
25868
  )), 1),
25876
25869
  c("div", zL, [
25877
- (w(!0), k(X, null, ue(o.value, (m, g) => (w(), k("div", {
25870
+ (w(!0), M(X, null, ue(o.value, (m, g) => (w(), M("div", {
25878
25871
  key: g,
25879
25872
  class: "pbx-myPrimaryTag pbx-cursor-pointer hover:pbx-bg-myPrimaryErrorColor hover:pbx-text-white pbx-text-xs pbx-py-2 pbx-font-medium",
25880
25873
  onClick: async () => {
@@ -25921,7 +25914,7 @@ const zt = /* @__PURE__ */ Js(kL, [["render", PL]]), LL = { class: "pbx-myPrimar
25921
25914
  }, T(y(e)("Add")), 1)
25922
25915
  ])
25923
25916
  ]),
25924
- l.value ? (w(), k("p", YL, T(l.value), 1)) : L("", !0)
25917
+ l.value ? (w(), M("p", YL, T(l.value), 1)) : L("", !0)
25925
25918
  ]),
25926
25919
  _: 1
25927
25920
  }));
@@ -25936,14 +25929,14 @@ function QL(n) {
25936
25929
  const XL = ["src"], ZL = {
25937
25930
  __name: "ImageEditor",
25938
25931
  setup(n) {
25939
- const { translate: e } = Me(), t = Ce, r = Gn("CustomMediaComponent"), o = M(!1), i = M(!1), s = M(""), a = M(""), l = M(""), d = M(null), p = M(null), u = M(null), f = $(() => (t.getBasePrimaryImage && m(t.getBasePrimaryImage), t.getBasePrimaryImage)), h = function() {
25932
+ const { translate: e } = Me(), t = Ce, r = Gn("CustomMediaComponent"), o = k(!1), i = k(!1), s = k(""), a = k(""), l = k(""), d = k(null), p = k(null), u = k(null), f = $(() => (t.getBasePrimaryImage && m(t.getBasePrimaryImage), t.getBasePrimaryImage)), h = function() {
25940
25933
  i.value = !0, s.value = e("Media Library"), a.value = null, l.value = e("Close"), d.value = e(" Select image"), u.value = function() {
25941
25934
  i.value = !1;
25942
25935
  };
25943
25936
  }, m = async function(g) {
25944
25937
  o.value = !0, g && typeof g == "string" && g.length > 2 && (await QL(g), await Oe(200), o.value = !1);
25945
25938
  };
25946
- return (g, b) => (w(), k("div", null, [
25939
+ return (g, b) => (w(), M("div", null, [
25947
25940
  xe(c("div", null, b[0] || (b[0] = [
25948
25941
  c("div", { class: "pbx-flex pbx-items-center pbx-justify-center pbx-mt-4 pbx-min-h-80" }, [
25949
25942
  c("div", { class: "pbx-inline-block pbx-h-8 pbx-w-8 pbx-animate-spin pbx-rounded-full pbx-border-4 pbx-border-solid pbx-border-current pbx-border-r-transparent pbx-align-[-0.125em] motion-reduce:pbx-animate-[spin_1.5s_linear_infinite]" }, [
@@ -25984,14 +25977,14 @@ const XL = ["src"], ZL = {
25984
25977
  }, lA = {
25985
25978
  __name: "ManageBackgroundOpacity",
25986
25979
  setup(n) {
25987
- const e = ke(), t = Ce, r = M(null), o = $(() => t.getBackgroundOpacity);
25980
+ const e = ke(), t = Ce, r = k(null), o = $(() => t.getBackgroundOpacity);
25988
25981
  return ee(
25989
25982
  o,
25990
25983
  async (i) => {
25991
25984
  r.value = i, await e.initializeElementStyles();
25992
25985
  },
25993
25986
  { immediate: !0 }
25994
- ), (i, s) => (w(), k("div", eA, [
25987
+ ), (i, s) => (w(), M("div", eA, [
25995
25988
  s[3] || (s[3] = c("label", {
25996
25989
  for: "bg-opacity",
25997
25990
  class: "pbx-myPrimaryInputLabel"
@@ -26009,12 +26002,12 @@ const XL = ["src"], ZL = {
26009
26002
  }, {
26010
26003
  default: j(() => [
26011
26004
  c("span", nA, [
26012
- r.value === "none" ? (w(), k("div", rA, s[1] || (s[1] = [
26005
+ r.value === "none" ? (w(), M("div", rA, s[1] || (s[1] = [
26013
26006
  c("div", { class: "pbx-myPrimaryColorPreview pbx-border-none" }, [
26014
26007
  c("span", { class: "material-symbols-outlined" }, " ev_shadow ")
26015
26008
  ], -1)
26016
26009
  ]))) : L("", !0),
26017
- r.value !== "none" ? (w(), k("div", {
26010
+ r.value !== "none" ? (w(), M("div", {
26018
26011
  key: 1,
26019
26012
  class: K(["pbx-aspect-square pbx-w-6 pbx-h-6 pbx-bg-gray-950", `${r.value}`])
26020
26013
  }, null, 2)) : L("", !0),
@@ -26033,7 +26026,7 @@ const XL = ["src"], ZL = {
26033
26026
  default: j(() => [
26034
26027
  z(y(ai), { class: "pbx-absolute pbx-z-10 pbx-mt-1 pbx-max-h-56 pbx-w-full pbx-overflow-auto pbx-rounded-md pbx-bg-white pbx-text-base pbx-shadow-lg pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 focus:pbx-outline-none sm:pbx-text-sm pbx-list-none pbx-p-0 pbx-m-0" }, {
26035
26028
  default: j(() => [
26036
- (w(!0), k(X, null, ue(y(zi).backgroundOpacities, (a) => (w(), fe(y(li), {
26029
+ (w(!0), M(X, null, ue(y(zi).backgroundOpacities, (a) => (w(), fe(y(li), {
26037
26030
  as: "template",
26038
26031
  onClick: (l) => y(e).handleBackgroundOpacity(a),
26039
26032
  key: a,
@@ -26047,17 +26040,17 @@ const XL = ["src"], ZL = {
26047
26040
  ])
26048
26041
  }, [
26049
26042
  c("div", oA, [
26050
- a === "none" ? (w(), k("div", iA, s[2] || (s[2] = [
26043
+ a === "none" ? (w(), M("div", iA, s[2] || (s[2] = [
26051
26044
  c("div", { class: "pbx-myPrimaryColorPreview pbx-border-none" }, [
26052
26045
  c("span", { class: "material-symbols-outlined" }, " ev_shadow ")
26053
26046
  ], -1)
26054
26047
  ]))) : L("", !0),
26055
- a !== "none" ? (w(), k("div", {
26048
+ a !== "none" ? (w(), M("div", {
26056
26049
  key: 1,
26057
26050
  class: K(["pbx-aspect-square pbx-w-6 pbx-h-6 pbx-bg-gray-950", `${a}`])
26058
26051
  }, null, 2)) : L("", !0),
26059
- a === "none" ? (w(), k("span", sA, "Transparent")) : L("", !0),
26060
- a !== "none" ? (w(), k("span", aA, T(a), 1)) : L("", !0)
26052
+ a === "none" ? (w(), M("span", sA, "Transparent")) : L("", !0),
26053
+ a !== "none" ? (w(), M("span", aA, T(a), 1)) : L("", !0)
26061
26054
  ])
26062
26055
  ], 2)
26063
26056
  ]),
@@ -26084,14 +26077,14 @@ const XL = ["src"], ZL = {
26084
26077
  }, gA = {
26085
26078
  __name: "ManageOpacity",
26086
26079
  setup(n) {
26087
- const e = ke(), t = Ce, r = M(null), o = $(() => t.getOpacity);
26080
+ const e = ke(), t = Ce, r = k(null), o = $(() => t.getOpacity);
26088
26081
  return ee(
26089
26082
  o,
26090
26083
  async (i) => {
26091
26084
  r.value = i, await e.initializeElementStyles();
26092
26085
  },
26093
26086
  { immediate: !0 }
26094
- ), (i, s) => (w(), k("div", dA, [
26087
+ ), (i, s) => (w(), M("div", dA, [
26095
26088
  s[3] || (s[3] = c("label", {
26096
26089
  for: "default-opacity",
26097
26090
  class: "pbx-myPrimaryInputLabel"
@@ -26109,12 +26102,12 @@ const XL = ["src"], ZL = {
26109
26102
  }, {
26110
26103
  default: j(() => [
26111
26104
  c("span", cA, [
26112
- r.value === "none" ? (w(), k("div", uA, s[1] || (s[1] = [
26105
+ r.value === "none" ? (w(), M("div", uA, s[1] || (s[1] = [
26113
26106
  c("div", { class: "pbx-myPrimaryColorPreview pbx-border-none" }, [
26114
26107
  c("span", { class: "material-symbols-outlined" }, " ev_shadow ")
26115
26108
  ], -1)
26116
26109
  ]))) : L("", !0),
26117
- r.value !== "none" ? (w(), k("div", {
26110
+ r.value !== "none" ? (w(), M("div", {
26118
26111
  key: 1,
26119
26112
  class: K(["pbx-aspect-square pbx-w-6 pbx-h-6 pbx-bg-gray-950", `${r.value}`])
26120
26113
  }, null, 2)) : L("", !0),
@@ -26133,7 +26126,7 @@ const XL = ["src"], ZL = {
26133
26126
  default: j(() => [
26134
26127
  z(y(ai), { class: "pbx-absolute pbx-z-10 pbx-mt-1 pbx-max-h-56 pbx-w-full pbx-overflow-auto pbx-rounded-md pbx-bg-white pbx-text-base pbx-shadow-lg pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 focus:pbx-outline-none sm:pbx-text-sm pbx-list-none pbx-p-0 pbx-m-0" }, {
26135
26128
  default: j(() => [
26136
- (w(!0), k(X, null, ue(y(zi).opacities, (a) => (w(), fe(y(li), {
26129
+ (w(!0), M(X, null, ue(y(zi).opacities, (a) => (w(), fe(y(li), {
26137
26130
  as: "template",
26138
26131
  onClick: (l) => y(e).handleOpacity(a),
26139
26132
  key: a,
@@ -26147,17 +26140,17 @@ const XL = ["src"], ZL = {
26147
26140
  ])
26148
26141
  }, [
26149
26142
  c("div", fA, [
26150
- a === "none" ? (w(), k("div", hA, s[2] || (s[2] = [
26143
+ a === "none" ? (w(), M("div", hA, s[2] || (s[2] = [
26151
26144
  c("div", { class: "pbx-myPrimaryColorPreview pbx-border-none" }, [
26152
26145
  c("span", { class: "material-symbols-outlined" }, " ev_shadow ")
26153
26146
  ], -1)
26154
26147
  ]))) : L("", !0),
26155
- a !== "none" ? (w(), k("div", {
26148
+ a !== "none" ? (w(), M("div", {
26156
26149
  key: 1,
26157
26150
  class: K(["pbx-aspect-square pbx-w-6 pbx-h-6 pbx-bg-gray-950", `${a}`])
26158
26151
  }, null, 2)) : L("", !0),
26159
- a === "none" ? (w(), k("span", mA, "Transparent")) : L("", !0),
26160
- a !== "none" ? (w(), k("span", bA, T(a), 1)) : L("", !0)
26152
+ a === "none" ? (w(), M("span", mA, "Transparent")) : L("", !0),
26153
+ a !== "none" ? (w(), M("span", bA, T(a), 1)) : L("", !0)
26161
26154
  ])
26162
26155
  ], 2)
26163
26156
  ]),
@@ -26218,7 +26211,7 @@ const XL = ["src"], ZL = {
26218
26211
  }, kc = {
26219
26212
  __name: "Typography",
26220
26213
  setup(n) {
26221
- const { translate: e } = Me(), t = ke(), r = Ce, o = M(null), i = M(null), s = M(null), a = M(null), l = M(null), d = M(null), p = M(null), u = $(() => r.getFontBase), f = $(() => r.getFontDesktop), h = $(() => r.getFontTablet), m = $(() => r.getFontMobile), g = $(() => r.getFontWeight), b = $(() => r.getFontFamily), v = $(() => r.getFontStyle);
26214
+ const { translate: e } = Me(), t = ke(), r = Ce, o = k(null), i = k(null), s = k(null), a = k(null), l = k(null), d = k(null), p = k(null), u = $(() => r.getFontBase), f = $(() => r.getFontDesktop), h = $(() => r.getFontTablet), m = $(() => r.getFontMobile), g = $(() => r.getFontWeight), b = $(() => r.getFontFamily), v = $(() => r.getFontStyle);
26222
26215
  return ee(
26223
26216
  u,
26224
26217
  async (S) => {
@@ -26277,7 +26270,7 @@ const XL = ["src"], ZL = {
26277
26270
  onChange: C[3] || (C[3] = (x) => y(t).handleFontSizeDesktop(i.value))
26278
26271
  }, [
26279
26272
  c("option", SA, T(y(e)("Select")), 1),
26280
- (w(!0), k(X, null, ue(y(mo).fontDesktop, (x) => (w(), k("option", { key: x }, T(x), 1))), 128))
26273
+ (w(!0), M(X, null, ue(y(mo).fontDesktop, (x) => (w(), M("option", { key: x }, T(x), 1))), 128))
26281
26274
  ], 544), [
26282
26275
  [Qe, i.value]
26283
26276
  ])
@@ -26293,7 +26286,7 @@ const XL = ["src"], ZL = {
26293
26286
  onChange: C[9] || (C[9] = (x) => y(t).handleFontWeight(l.value))
26294
26287
  }, [
26295
26288
  c("option", kA, T(y(e)("Select")), 1),
26296
- (w(!0), k(X, null, ue(y(Wr).fontWeight, (x) => (w(), k("option", { key: x }, T(x), 1))), 128))
26289
+ (w(!0), M(X, null, ue(y(Wr).fontWeight, (x) => (w(), M("option", { key: x }, T(x), 1))), 128))
26297
26290
  ], 544), [
26298
26291
  [Qe, l.value]
26299
26292
  ])
@@ -26308,7 +26301,7 @@ const XL = ["src"], ZL = {
26308
26301
  onChange: C[11] || (C[11] = (x) => y(t).handleFontFamily(d.value))
26309
26302
  }, [
26310
26303
  c("option", BA, T(y(e)("Select")), 1),
26311
- (w(!0), k(X, null, ue(y(Wr).fontFamily, (x) => (w(), k("option", { key: x }, T(x), 1))), 128))
26304
+ (w(!0), M(X, null, ue(y(Wr).fontFamily, (x) => (w(), M("option", { key: x }, T(x), 1))), 128))
26312
26305
  ], 544), [
26313
26306
  [Qe, d.value]
26314
26307
  ])
@@ -26323,7 +26316,7 @@ const XL = ["src"], ZL = {
26323
26316
  onChange: C[13] || (C[13] = (x) => y(t).handleFontStyle(p.value))
26324
26317
  }, [
26325
26318
  c("option", AA, T(y(e)("Select")), 1),
26326
- (w(!0), k(X, null, ue(y(Wr).fontStyle, (x) => (w(), k("option", { key: x }, T(x), 1))), 128))
26319
+ (w(!0), M(X, null, ue(y(Wr).fontStyle, (x) => (w(), M("option", { key: x }, T(x), 1))), 128))
26327
26320
  ], 544), [
26328
26321
  [Qe, p.value]
26329
26322
  ])
@@ -26347,7 +26340,7 @@ const XL = ["src"], ZL = {
26347
26340
  }, Mc = {
26348
26341
  __name: "Padding",
26349
26342
  setup(n) {
26350
- const { translate: e } = Me(), t = ke(), r = Ce, o = M(null), i = M(null), s = M(null), a = M(null), l = $(() => r.getFontVerticalPadding), d = $(() => r.getFontHorizontalPadding), p = $(() => r.getFontVerticalMargin), u = $(() => r.getFontHorizontalMargin);
26343
+ const { translate: e } = Me(), t = ke(), r = Ce, o = k(null), i = k(null), s = k(null), a = k(null), l = $(() => r.getFontVerticalPadding), d = $(() => r.getFontHorizontalPadding), p = $(() => r.getFontVerticalMargin), u = $(() => r.getFontHorizontalMargin);
26351
26344
  return ee(
26352
26345
  l,
26353
26346
  async (f) => {
@@ -26390,7 +26383,7 @@ const XL = ["src"], ZL = {
26390
26383
  onChange: h[1] || (h[1] = (m) => y(t).handleVerticalPadding(o.value))
26391
26384
  }, [
26392
26385
  c("option", _A, T(y(e)("Select")), 1),
26393
- (w(!0), k(X, null, ue(y($n).verticalPadding, (m) => (w(), k("option", { key: m }, T(m), 1))), 128))
26386
+ (w(!0), M(X, null, ue(y($n).verticalPadding, (m) => (w(), M("option", { key: m }, T(m), 1))), 128))
26394
26387
  ], 544), [
26395
26388
  [Qe, o.value]
26396
26389
  ])
@@ -26405,7 +26398,7 @@ const XL = ["src"], ZL = {
26405
26398
  onChange: h[3] || (h[3] = (m) => y(t).handleHorizontalPadding(i.value))
26406
26399
  }, [
26407
26400
  c("option", HA, T(y(e)("Select")), 1),
26408
- (w(!0), k(X, null, ue(y($n).horizontalPadding, (m) => (w(), k("option", { key: m }, T(m), 1))), 128))
26401
+ (w(!0), M(X, null, ue(y($n).horizontalPadding, (m) => (w(), M("option", { key: m }, T(m), 1))), 128))
26409
26402
  ], 544), [
26410
26403
  [Qe, i.value]
26411
26404
  ])
@@ -26429,7 +26422,7 @@ const XL = ["src"], ZL = {
26429
26422
  }, Ec = {
26430
26423
  __name: "Margin",
26431
26424
  setup(n) {
26432
- const { translate: e } = Me(), t = ke(), r = Ce, o = M(null), i = M(null), s = M(null), a = M(null), l = $(() => r.getFontVerticalPadding), d = $(() => r.getFontHorizontalPadding), p = $(() => r.getFontVerticalMargin), u = $(() => r.getFontHorizontalMargin);
26425
+ const { translate: e } = Me(), t = ke(), r = Ce, o = k(null), i = k(null), s = k(null), a = k(null), l = $(() => r.getFontVerticalPadding), d = $(() => r.getFontHorizontalPadding), p = $(() => r.getFontVerticalMargin), u = $(() => r.getFontHorizontalMargin);
26433
26426
  return ee(
26434
26427
  l,
26435
26428
  async (f) => {
@@ -26472,7 +26465,7 @@ const XL = ["src"], ZL = {
26472
26465
  onChange: h[1] || (h[1] = (m) => y(t).handleVerticalMargin(s.value))
26473
26466
  }, [
26474
26467
  c("option", qA, T(y(e)("Select")), 1),
26475
- (w(!0), k(X, null, ue(y($n).verticalMargin, (m) => (w(), k("option", { key: m }, T(m), 1))), 128))
26468
+ (w(!0), M(X, null, ue(y($n).verticalMargin, (m) => (w(), M("option", { key: m }, T(m), 1))), 128))
26476
26469
  ], 544), [
26477
26470
  [Qe, s.value]
26478
26471
  ])
@@ -26487,7 +26480,7 @@ const XL = ["src"], ZL = {
26487
26480
  onChange: h[3] || (h[3] = (m) => y(t).handleHorizontalMargin(a.value))
26488
26481
  }, [
26489
26482
  c("option", GA, T(y(e)("Select")), 1),
26490
- (w(!0), k(X, null, ue(y($n).horizontalMargin, (m) => (w(), k("option", { key: m }, T(m), 1))), 128))
26483
+ (w(!0), M(X, null, ue(y($n).horizontalMargin, (m) => (w(), M("option", { key: m }, T(m), 1))), 128))
26491
26484
  ], 544), [
26492
26485
  [Qe, a.value]
26493
26486
  ])
@@ -26529,7 +26522,7 @@ const XL = ["src"], ZL = {
26529
26522
  }, Bc = {
26530
26523
  __name: "BorderRadius",
26531
26524
  setup(n) {
26532
- const { translate: e } = Me(), t = ke(), r = Ce, o = M(null), i = M(null), s = M(null), a = M(null), l = M(null), d = $(() => r.getBorderRadiusGlobal), p = $(() => r.getBorderRadiusTopLeft), u = $(() => r.getBorderRadiusTopRight), f = $(() => r.getBorderRadiusBottomleft), h = $(() => r.getBorderRadiusBottomRight);
26525
+ const { translate: e } = Me(), t = ke(), r = Ce, o = k(null), i = k(null), s = k(null), a = k(null), l = k(null), d = $(() => r.getBorderRadiusGlobal), p = $(() => r.getBorderRadiusTopLeft), u = $(() => r.getBorderRadiusTopRight), f = $(() => r.getBorderRadiusBottomleft), h = $(() => r.getBorderRadiusBottomRight);
26533
26526
  return ee(
26534
26527
  d,
26535
26528
  async (m) => {
@@ -26575,7 +26568,7 @@ const XL = ["src"], ZL = {
26575
26568
  onChange: g[1] || (g[1] = (b) => y(t).handleBorderRadiusGlobal(o.value))
26576
26569
  }, [
26577
26570
  c("option", QA, T(y(e)("Select")), 1),
26578
- (w(!0), k(X, null, ue(y(Kt).roundedGlobal, (b) => (w(), k("option", { key: b }, T(b), 1))), 128))
26571
+ (w(!0), M(X, null, ue(y(Kt).roundedGlobal, (b) => (w(), M("option", { key: b }, T(b), 1))), 128))
26579
26572
  ], 544), [
26580
26573
  [Qe, o.value]
26581
26574
  ])
@@ -26591,7 +26584,7 @@ const XL = ["src"], ZL = {
26591
26584
  onChange: g[3] || (g[3] = (b) => y(t).handleBorderRadiusTopLeft(i.value))
26592
26585
  }, [
26593
26586
  c("option", tO, T(y(e)("Select")), 1),
26594
- (w(!0), k(X, null, ue(y(Kt).roundedTopLeft, (b) => (w(), k("option", { key: b }, T(b), 1))), 128))
26587
+ (w(!0), M(X, null, ue(y(Kt).roundedTopLeft, (b) => (w(), M("option", { key: b }, T(b), 1))), 128))
26595
26588
  ], 544), [
26596
26589
  [Qe, i.value]
26597
26590
  ])
@@ -26606,7 +26599,7 @@ const XL = ["src"], ZL = {
26606
26599
  onChange: g[5] || (g[5] = (b) => y(t).handleBorderRadiusTopRight(s.value))
26607
26600
  }, [
26608
26601
  c("option", oO, T(y(e)("Select")), 1),
26609
- (w(!0), k(X, null, ue(y(Kt).roundedTopRight, (b) => (w(), k("option", { key: b }, T(b), 1))), 128))
26602
+ (w(!0), M(X, null, ue(y(Kt).roundedTopRight, (b) => (w(), M("option", { key: b }, T(b), 1))), 128))
26610
26603
  ], 544), [
26611
26604
  [Qe, s.value]
26612
26605
  ])
@@ -26621,7 +26614,7 @@ const XL = ["src"], ZL = {
26621
26614
  onChange: g[7] || (g[7] = (b) => y(t).handleBorderRadiusBottomleft(a.value))
26622
26615
  }, [
26623
26616
  c("option", aO, T(y(e)("Select")), 1),
26624
- (w(!0), k(X, null, ue(y(Kt).roundedBottomLeft, (b) => (w(), k("option", { key: b }, T(b), 1))), 128))
26617
+ (w(!0), M(X, null, ue(y(Kt).roundedBottomLeft, (b) => (w(), M("option", { key: b }, T(b), 1))), 128))
26625
26618
  ], 544), [
26626
26619
  [Qe, a.value]
26627
26620
  ])
@@ -26636,7 +26629,7 @@ const XL = ["src"], ZL = {
26636
26629
  onChange: g[9] || (g[9] = (b) => y(t).handleBorderRadiusBottomRight(l.value))
26637
26630
  }, [
26638
26631
  c("option", pO, T(y(e)("Select")), 1),
26639
- (w(!0), k(X, null, ue(y(Kt).roundedBottomRight, (b) => (w(), k("option", { key: b }, T(b), 1))), 128))
26632
+ (w(!0), M(X, null, ue(y(Kt).roundedBottomRight, (b) => (w(), M("option", { key: b }, T(b), 1))), 128))
26640
26633
  ], 544), [
26641
26634
  [Qe, l.value]
26642
26635
  ])
@@ -26669,7 +26662,7 @@ const XL = ["src"], ZL = {
26669
26662
  }, Pc = {
26670
26663
  __name: "Borders",
26671
26664
  setup(n) {
26672
- const { translate: e } = Me(), t = ke(), r = Ce, o = M(null), i = M(null), s = M(null), a = $(() => r.getBorderStyle), l = $(() => r.getBorderWidth), d = $(() => r.getBorderColor);
26665
+ const { translate: e } = Me(), t = ke(), r = Ce, o = k(null), i = k(null), s = k(null), a = $(() => r.getBorderStyle), l = $(() => r.getBorderWidth), d = $(() => r.getBorderColor);
26673
26666
  return ee(
26674
26667
  a,
26675
26668
  async (p) => {
@@ -26703,7 +26696,7 @@ const XL = ["src"], ZL = {
26703
26696
  onChange: u[1] || (u[1] = (f) => y(t).handleBorderStyle(o.value))
26704
26697
  }, [
26705
26698
  c("option", hO, T(y(e)("Select")), 1),
26706
- (w(!0), k(X, null, ue(y(Ur).borderStyle, (f) => (w(), k("option", { key: f }, T(f), 1))), 128))
26699
+ (w(!0), M(X, null, ue(y(Ur).borderStyle, (f) => (w(), M("option", { key: f }, T(f), 1))), 128))
26707
26700
  ], 544), [
26708
26701
  [Qe, o.value]
26709
26702
  ])
@@ -26718,7 +26711,7 @@ const XL = ["src"], ZL = {
26718
26711
  onChange: u[3] || (u[3] = (f) => y(t).handleBorderWidth(i.value))
26719
26712
  }, [
26720
26713
  c("option", gO, T(y(e)("Select")), 1),
26721
- (w(!0), k(X, null, ue(y(Ur).borderWidth, (f) => (w(), k("option", { key: f }, T(f), 1))), 128))
26714
+ (w(!0), M(X, null, ue(y(Ur).borderWidth, (f) => (w(), M("option", { key: f }, T(f), 1))), 128))
26722
26715
  ], 544), [
26723
26716
  [Qe, i.value]
26724
26717
  ])
@@ -26741,12 +26734,12 @@ const XL = ["src"], ZL = {
26741
26734
  var f;
26742
26735
  return [
26743
26736
  c("span", wO, [
26744
- d.value === "none" ? (w(), k("div", SO, u[6] || (u[6] = [
26737
+ d.value === "none" ? (w(), M("div", SO, u[6] || (u[6] = [
26745
26738
  c("div", { class: "pbx-myPrimaryColorPreview pbx-border-none" }, [
26746
26739
  c("span", { class: "material-symbols-outlined" }, " ev_shadow ")
26747
26740
  ], -1)
26748
26741
  ]))) : L("", !0),
26749
- s.value !== "none" ? (w(), k("div", {
26742
+ s.value !== "none" ? (w(), M("div", {
26750
26743
  key: 1,
26751
26744
  class: K(["pbx-aspect-square pbx-w-6 pbx-h-6 pbx-border-solid pbx-border pbx-border-gray-100 pbx-rounded-sm", `pbx-bg-${(f = s.value) == null ? void 0 : f.replace("pbx-border-", "")}`])
26752
26745
  }, null, 2)) : L("", !0),
@@ -26764,7 +26757,7 @@ const XL = ["src"], ZL = {
26764
26757
  default: j(() => [
26765
26758
  z(y(ai), { class: "pbx-absolute pbx-z-10 pbx-mt-1 pbx-max-h-56 pbx-w-full pbx-overflow-auto pbx-rounded-md pbx-bg-white pbx-text-base pbx-shadow-lg pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 focus:pbx-outline-none sm:pbx-text-sm pbx-list-none pbx-p-0 pbx-m-0" }, {
26766
26759
  default: j(() => [
26767
- (w(!0), k(X, null, ue(y(Ur).borderColor, (f) => (w(), fe(y(li), {
26760
+ (w(!0), M(X, null, ue(y(Ur).borderColor, (f) => (w(), fe(y(li), {
26768
26761
  as: "template",
26769
26762
  onClick: u[4] || (u[4] = (h) => y(t).handleBorderColor(s.value)),
26770
26763
  key: f,
@@ -26778,17 +26771,17 @@ const XL = ["src"], ZL = {
26778
26771
  ])
26779
26772
  }, [
26780
26773
  c("div", TO, [
26781
- f === "none" ? (w(), k("div", kO, u[7] || (u[7] = [
26774
+ f === "none" ? (w(), M("div", kO, u[7] || (u[7] = [
26782
26775
  c("div", { class: "pbx-myPrimaryColorPreview pbx-border-none" }, [
26783
26776
  c("span", { class: "material-symbols-outlined" }, " ev_shadow ")
26784
26777
  ], -1)
26785
26778
  ]))) : L("", !0),
26786
- f !== "none" ? (w(), k("div", {
26779
+ f !== "none" ? (w(), M("div", {
26787
26780
  key: 1,
26788
26781
  class: K(["pbx-aspect-square pbx-w-6 pbx-h-6 pbx-bg-gray-950", `pbx-bg-${f.replace("pbx-border-", "")}`])
26789
26782
  }, null, 2)) : L("", !0),
26790
- f === "none" ? (w(), k("span", MO, T(y(e)("Transparent")), 1)) : L("", !0),
26791
- f !== "none" ? (w(), k("span", EO, T(f), 1)) : L("", !0)
26783
+ f === "none" ? (w(), M("span", MO, T(y(e)("Transparent")), 1)) : L("", !0),
26784
+ f !== "none" ? (w(), M("span", EO, T(f), 1)) : L("", !0)
26792
26785
  ])
26793
26786
  ], 2)
26794
26787
  ]),
@@ -26816,8 +26809,8 @@ const XL = ["src"], ZL = {
26816
26809
  __name: "TipTap",
26817
26810
  setup(n) {
26818
26811
  const { translate: e } = Me(), t = ke();
26819
- return (r, o) => (w(), k("div", null, [
26820
- y(t).isSelectedElementValidText() ? (w(), k("div", BO, [
26812
+ return (r, o) => (w(), M("div", null, [
26813
+ y(t).isSelectedElementValidText() ? (w(), M("div", BO, [
26821
26814
  c("div", {
26822
26815
  onClick: o[0] || (o[0] = (i) => y(t).toggleTipTapModal(!0)),
26823
26816
  class: "pbx-flex pbx-flex-row pbx-justify-between pbx-items-center pbx-pl-3 pbx-pr-3 pbx-py-5 pbx-cursor-pointer pbx-duration-200 hover:pbx-bg-myPrimaryLightGrayColor pbx-bg-white"
@@ -26851,7 +26844,7 @@ const XL = ["src"], ZL = {
26851
26844
  }
26852
26845
  },
26853
26846
  setup(n) {
26854
- const e = ke(), t = Ce, { translate: r } = Me(), o = n, i = $(() => t.getElement), s = $(() => t.getShowModalHTMLEditor), a = $(() => !i.value || !(i.value instanceof HTMLElement) ? "" : i.value.outerHTML), l = M(""), d = M("");
26847
+ const e = ke(), t = Ce, { translate: r } = Me(), o = n, i = $(() => t.getElement), s = $(() => t.getShowModalHTMLEditor), a = $(() => !i.value || !(i.value instanceof HTMLElement) ? "" : i.value.outerHTML), l = k(""), d = k("");
26855
26848
  ee(s, async (b) => {
26856
26849
  if (b) {
26857
26850
  if (!o.globalPage) {
@@ -26865,7 +26858,7 @@ const XL = ["src"], ZL = {
26865
26858
  t.setShowModalHTMLEditor(!0);
26866
26859
  }, u = () => {
26867
26860
  t.setShowModalHTMLEditor(!1);
26868
- }, f = M(!1), h = M(null), m = async () => {
26861
+ }, f = k(!1), h = k(null), m = async () => {
26869
26862
  h.value = null, f.value = !0, await Oe(300);
26870
26863
  const b = await e.applyModifiedHTML(l.value);
26871
26864
  if (b) {
@@ -26882,7 +26875,7 @@ const XL = ["src"], ZL = {
26882
26875
  }
26883
26876
  t.setShowModalHTMLEditor(!1), f.value = !1;
26884
26877
  };
26885
- return (b, v) => (w(), k(X, null, [
26878
+ return (b, v) => (w(), M(X, null, [
26886
26879
  z(zt, null, {
26887
26880
  title: j(() => [
26888
26881
  Se(T(y(r)("HTML Editor")), 1)
@@ -26907,7 +26900,7 @@ const XL = ["src"], ZL = {
26907
26900
  onCloseMainModalBuilder: u
26908
26901
  }, {
26909
26902
  default: j(() => [
26910
- n.globalPage ? L("", !0) : (w(), k(X, { key: 0 }, [
26903
+ n.globalPage ? L("", !0) : (w(), M(X, { key: 0 }, [
26911
26904
  xe(c("textarea", {
26912
26905
  id: "html-editor",
26913
26906
  "onUpdate:modelValue": v[0] || (v[0] = (S) => l.value = S),
@@ -26917,12 +26910,12 @@ const XL = ["src"], ZL = {
26917
26910
  [vr, l.value]
26918
26911
  ]),
26919
26912
  c("div", DO, [
26920
- h.value ? (w(), k("p", IO, " Error: " + T(h.value), 1)) : L("", !0)
26913
+ h.value ? (w(), M("p", IO, " Error: " + T(h.value), 1)) : L("", !0)
26921
26914
  ]),
26922
26915
  c("div", $O, [
26923
26916
  c("div", _O, [
26924
26917
  c("div", NO, [
26925
- f.value ? L("", !0) : (w(), k(X, { key: 0 }, [
26918
+ f.value ? L("", !0) : (w(), M(X, { key: 0 }, [
26926
26919
  c("button", {
26927
26920
  onClick: u,
26928
26921
  type: "button",
@@ -26934,7 +26927,7 @@ const XL = ["src"], ZL = {
26934
26927
  class: "pbx-myPrimaryButton"
26935
26928
  }, T(y(r)("Save")), 1)
26936
26929
  ], 64)),
26937
- f.value ? (w(), k("div", RO, v[3] || (v[3] = [
26930
+ f.value ? (w(), M("div", RO, v[3] || (v[3] = [
26938
26931
  c("div", { class: "pbx-inline-block pbx-h-8 pbx-w-8 pbx-animate-spin pbx-rounded-full pbx-border-4 pbx-border-solid pbx-border-current pbx-border-r-transparent pbx-align-[-0.125em] motion-reduce:pbx-animate-[spin_1.5s_linear_infinite]" }, [
26939
26932
  c("span", { class: "!pbx-absolute !pbx-m-px !pbx-h-px !pbx-w-px !pbx-overflow-hidden !pbx-whitespace-nowrap !pbx-border-0 !pbx-p-0 !pbx-[clip:rect(0,0,0,0)]" }, "Loading...")
26940
26933
  ], -1)
@@ -26943,7 +26936,7 @@ const XL = ["src"], ZL = {
26943
26936
  ])
26944
26937
  ])
26945
26938
  ], 64)),
26946
- n.globalPage ? (w(), k(X, { key: 1 }, [
26939
+ n.globalPage ? (w(), M(X, { key: 1 }, [
26947
26940
  xe(c("textarea", {
26948
26941
  id: "html-editor",
26949
26942
  "onUpdate:modelValue": v[1] || (v[1] = (S) => d.value = S),
@@ -26953,12 +26946,12 @@ const XL = ["src"], ZL = {
26953
26946
  [vr, d.value]
26954
26947
  ]),
26955
26948
  c("div", HO, [
26956
- h.value ? (w(), k("p", FO, " Error: " + T(h.value), 1)) : L("", !0)
26949
+ h.value ? (w(), M("p", FO, " Error: " + T(h.value), 1)) : L("", !0)
26957
26950
  ]),
26958
26951
  c("div", zO, [
26959
26952
  c("div", VO, [
26960
26953
  c("div", jO, [
26961
- f.value ? L("", !0) : (w(), k(X, { key: 0 }, [
26954
+ f.value ? L("", !0) : (w(), M(X, { key: 0 }, [
26962
26955
  c("button", {
26963
26956
  onClick: u,
26964
26957
  type: "button",
@@ -26970,7 +26963,7 @@ const XL = ["src"], ZL = {
26970
26963
  class: "pbx-myPrimaryButton"
26971
26964
  }, T(y(r)("Save")), 1)
26972
26965
  ], 64)),
26973
- f.value ? (w(), k("div", qO, v[4] || (v[4] = [
26966
+ f.value ? (w(), M("div", qO, v[4] || (v[4] = [
26974
26967
  c("div", { class: "pbx-inline-block pbx-h-8 pbx-w-8 pbx-animate-spin pbx-rounded-full pbx-border-4 pbx-border-solid pbx-border-current pbx-border-r-transparent pbx-align-[-0.125em] motion-reduce:pbx-animate-[spin_1.5s_linear_infinite]" }, [
26975
26968
  c("span", { class: "!pbx-absolute !pbx-m-px !pbx-h-px !pbx-w-px !pbx-overflow-hidden !pbx-whitespace-nowrap !pbx-border-0 !pbx-p-0 !pbx-[clip:rect(0,0,0,0)]" }, "Loading...")
26976
26969
  ], -1)
@@ -26997,12 +26990,12 @@ const XL = ["src"], ZL = {
26997
26990
  __name: "RightSidebarEditor",
26998
26991
  emits: ["closeEditor"],
26999
26992
  setup(n) {
27000
- const { translate: e } = Me(), t = ke(), r = Ce, o = M(null), i = $(() => r.getComponents), s = $(() => r.getElement), a = $(() => {
26993
+ const { translate: e } = Me(), t = ke(), r = Ce, o = k(null), i = $(() => r.getComponents), s = $(() => r.getElement), a = $(() => {
27001
26994
  var b;
27002
26995
  return (b = s.value) == null ? void 0 : b.tagName;
27003
26996
  });
27004
26997
  $(() => s.value instanceof HTMLElement && s.value.innerText.trim() !== " " || s.value instanceof HTMLImageElement);
27005
- const l = M(null);
26998
+ const l = k(null);
27006
26999
  let d = 0;
27007
27000
  ee(
27008
27001
  // or the specific value that triggers re-render
@@ -27067,14 +27060,14 @@ const XL = ["src"], ZL = {
27067
27060
  S.innerHTML = v, S.querySelectorAll("[hovered], [selected]").forEach((C) => {
27068
27061
  C.removeAttribute("hovered"), C.removeAttribute("selected");
27069
27062
  }), v = S.innerHTML, u("downloaded_html.html", v);
27070
- }, h = M(null), m = async function() {
27063
+ }, h = k(null), m = async function() {
27071
27064
  h.value = !0, await t.globalPageStyles();
27072
27065
  }, g = async function() {
27073
27066
  o.value = !0, await t.handleManualSave();
27074
27067
  const b = document.querySelector("#pagebuilder");
27075
27068
  b && b.removeAttribute("data-global-selected"), h.value = !1, o.value = !1;
27076
27069
  };
27077
- return (b, v) => (w(), k("div", WO, [
27070
+ return (b, v) => (w(), M("div", WO, [
27078
27071
  c("div", UO, [
27079
27072
  c("button", {
27080
27073
  type: "button",
@@ -27088,7 +27081,7 @@ const XL = ["src"], ZL = {
27088
27081
  c("span", KO, "<" + T(a.value) + ">", 1)
27089
27082
  ])
27090
27083
  ]),
27091
- h.value ? L("", !0) : (w(), k("div", {
27084
+ h.value ? L("", !0) : (w(), M("div", {
27092
27085
  key: 0,
27093
27086
  ref_key: "scrollContainer",
27094
27087
  ref: l,
@@ -27153,7 +27146,7 @@ const XL = ["src"], ZL = {
27153
27146
  _: 1
27154
27147
  })
27155
27148
  ]),
27156
- Array.isArray(i.value) && i.value.length >= 1 ? (w(), k("article", dD, [
27149
+ Array.isArray(i.value) && i.value.length >= 1 ? (w(), M("article", dD, [
27157
27150
  z(zt, null, {
27158
27151
  title: j(() => [
27159
27152
  Se(T(y(e)("Download HTML")), 1)
@@ -27184,14 +27177,14 @@ const XL = ["src"], ZL = {
27184
27177
  }, {
27185
27178
  default: j(() => [
27186
27179
  c("div", uD, [
27187
- o.value ? (w(), k("div", fD, [
27180
+ o.value ? (w(), M("div", fD, [
27188
27181
  c("div", hD, [
27189
27182
  c("div", mD, [
27190
27183
  c("span", bD, T(y(e)("Loading...")), 1)
27191
27184
  ])
27192
27185
  ])
27193
27186
  ])) : L("", !0),
27194
- !o.value && h.value ? (w(), k("div", gD, [
27187
+ !o.value && h.value ? (w(), M("div", gD, [
27195
27188
  c("div", null, [
27196
27189
  c("p", xD, T(y(e)(
27197
27190
  "Apply styles that affect the entire page. These settings include global font family, text color, background color, and other universal styles that apply to all sections."
@@ -27258,10 +27251,10 @@ const XL = ["src"], ZL = {
27258
27251
  }, qI = { class: "pbx-overflow-hidden pbx-shadow pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 md:pbx-rounded-lg" }, WI = { class: "pbx-overflow-x-auto" }, UI = { class: "pbx-w-max" }, GI = { class: "pbx-bg-white pbx-divide-y pbx-divide-gray-200" }, KI = { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500" }, JI = { class: "pbx-min-w-[30rem] pbx-w-max" }, YI = { key: 0 }, QI = { key: 1 }, XI = { key: 0 }, ZI = { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500" }, e$ = { class: "pbx-min-w-[30rem] pbx-w-max" }, t$ = { class: "pbx-inline-flex pbx-items-center pbx-px-2.5 pbx-py-0.5 pbx-rounded-full pbx-text-xs pbx-font-medium" }, n$ = { class: "pbx-mt-4 pbx-mb-4 pbx-py-8 pbx-px-2 pbx-border pbx-border-solid pbx-border-gray-600 pbx-rounded-xl" }, r$ = { class: "pbx-mt-4 pbx-whitespace-pre-wrap pbx-text-white pbx-overflow-hidden pbx-bg-gray-900" }, o$ = { class: "pbx-px-4 pbx-pb-8 pbx-pt-4 pbx-text-white pbx-text-xs pbx-break-all" }, i$ = { class: "pbx-myPrimaryParagraph pbx-text-xs pbx-text-white" }, s$ = {
27259
27252
  __name: "PageBuilderSettings",
27260
27253
  setup(n) {
27261
- const e = "3.4.28", t = Ce, r = $(() => t.getPageBuilderConfig);
27254
+ const e = "3.4.30", t = Ce, r = $(() => t.getPageBuilderConfig);
27262
27255
  return (o, i) => {
27263
27256
  var s, a, l, d, p, u, f, h, m, g, b, v, S, C, x, B;
27264
- return w(), k("div", LD, [
27257
+ return w(), M("div", LD, [
27265
27258
  c("div", AD, [
27266
27259
  c("div", null, [
27267
27260
  i[26] || (i[26] = c("div", { class: "pbx-flex pbx-items-left pbx-flex-col pbx-gap-1" }, [
@@ -27302,7 +27295,7 @@ const XL = ["src"], ZL = {
27302
27295
  ])
27303
27296
  ])
27304
27297
  ]),
27305
- (s = r.value) != null && s.resourceData && !y(An)(r.value.resourceData) ? (w(), k("div", zD, [
27298
+ (s = r.value) != null && s.resourceData && !y(An)(r.value.resourceData) ? (w(), M("div", zD, [
27306
27299
  i[6] || (i[6] = c("h4", { class: "pbx-myQuaternaryHeader pbx-text-sm pbx-mb-2" }, "Resource Data", -1)),
27307
27300
  c("div", VD, [
27308
27301
  c("div", jD, [
@@ -27320,7 +27313,7 @@ const XL = ["src"], ZL = {
27320
27313
  ])
27321
27314
  ], -1)),
27322
27315
  c("tbody", WD, [
27323
- (l = (a = r.value) == null ? void 0 : a.resourceData) != null && l.title ? (w(), k("tr", UD, [
27316
+ (l = (a = r.value) == null ? void 0 : a.resourceData) != null && l.title ? (w(), M("tr", UD, [
27324
27317
  i[3] || (i[3] = c("td", { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-font-medium pbx-text-gray-900" }, [
27325
27318
  c("div", { class: "pbx-min-w-[30rem] pbx-w-max" }, "Title")
27326
27319
  ], -1)),
@@ -27328,7 +27321,7 @@ const XL = ["src"], ZL = {
27328
27321
  c("div", KD, T(r.value.resourceData.title), 1)
27329
27322
  ])
27330
27323
  ])) : L("", !0),
27331
- (p = (d = r.value) == null ? void 0 : d.resourceData) != null && p.id ? (w(), k("tr", JD, [
27324
+ (p = (d = r.value) == null ? void 0 : d.resourceData) != null && p.id ? (w(), M("tr", JD, [
27332
27325
  i[4] || (i[4] = c("td", { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-font-medium pbx-text-gray-900" }, [
27333
27326
  c("div", { class: "pbx-min-w-[30rem] pbx-w-max" }, "ID")
27334
27327
  ], -1)),
@@ -27341,7 +27334,7 @@ const XL = ["src"], ZL = {
27341
27334
  ])
27342
27335
  ])
27343
27336
  ])) : L("", !0),
27344
- (u = r.value) != null && u.userForPageBuilder && !y(An)(r.value.userForPageBuilder) ? (w(), k("div", XD, [
27337
+ (u = r.value) != null && u.userForPageBuilder && !y(An)(r.value.userForPageBuilder) ? (w(), M("div", XD, [
27345
27338
  i[11] || (i[11] = c("h4", { class: "pbx-myQuaternaryHeader pbx-text-sm pbx-mb-2" }, "User Information", -1)),
27346
27339
  c("div", ZD, [
27347
27340
  c("div", eI, [
@@ -27371,7 +27364,7 @@ const XL = ["src"], ZL = {
27371
27364
  i[8] || (i[8] = c("td", { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-font-medium pbx-text-gray-900" }, [
27372
27365
  c("div", { class: "pbx-min-w-[30rem] pbx-w-max" }, "Image")
27373
27366
  ], -1)),
27374
- r.value.userForPageBuilder.image && typeof r.value.userForPageBuilder.image == "string" && r.value.userForPageBuilder.image.length > 2 ? (w(), k("td", iI, [
27367
+ r.value.userForPageBuilder.image && typeof r.value.userForPageBuilder.image == "string" && r.value.userForPageBuilder.image.length > 2 ? (w(), M("td", iI, [
27375
27368
  c("div", sI, [
27376
27369
  c("div", aI, [
27377
27370
  c("img", {
@@ -27387,7 +27380,7 @@ const XL = ["src"], ZL = {
27387
27380
  i[9] || (i[9] = c("td", { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-font-medium pbx-text-gray-900" }, [
27388
27381
  c("div", { class: "pbx-min-w-[30rem] pbx-w-max" }, "Image URL")
27389
27382
  ], -1)),
27390
- r.value.userForPageBuilder.image && typeof r.value.userForPageBuilder.image == "string" && r.value.userForPageBuilder.image.length > 2 ? (w(), k("td", dI, [
27383
+ r.value.userForPageBuilder.image && typeof r.value.userForPageBuilder.image == "string" && r.value.userForPageBuilder.image.length > 2 ? (w(), M("td", dI, [
27391
27384
  c("div", pI, T(r.value.userForPageBuilder.image), 1)
27392
27385
  ])) : L("", !0)
27393
27386
  ])
@@ -27396,7 +27389,7 @@ const XL = ["src"], ZL = {
27396
27389
  ])
27397
27390
  ])
27398
27391
  ])) : L("", !0),
27399
- (f = r.value) != null && f.userSettings && !y(An)(r.value.userSettings) ? (w(), k("div", cI, [
27392
+ (f = r.value) != null && f.userSettings && !y(An)(r.value.userSettings) ? (w(), M("div", cI, [
27400
27393
  i[17] || (i[17] = c("h4", { class: "pbx-myQuaternaryHeader pbx-text-sm pbx-mb-2" }, "User Settings", -1)),
27401
27394
  c("div", uI, [
27402
27395
  c("div", fI, [
@@ -27414,7 +27407,7 @@ const XL = ["src"], ZL = {
27414
27407
  ])
27415
27408
  ], -1)),
27416
27409
  c("tbody", mI, [
27417
- (m = (h = r.value) == null ? void 0 : h.userSettings) != null && m.theme ? (w(), k("tr", bI, [
27410
+ (m = (h = r.value) == null ? void 0 : h.userSettings) != null && m.theme ? (w(), M("tr", bI, [
27418
27411
  i[12] || (i[12] = c("td", { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-font-medium pbx-text-gray-900" }, [
27419
27412
  c("div", { class: "pbx-min-w-[30rem] pbx-w-max" }, "Theme")
27420
27413
  ], -1)),
@@ -27422,7 +27415,7 @@ const XL = ["src"], ZL = {
27422
27415
  c("div", xI, T(r.value.userSettings.theme), 1)
27423
27416
  ])
27424
27417
  ])) : L("", !0),
27425
- (b = (g = r.value) == null ? void 0 : g.userSettings) != null && b.language ? (w(), k("tr", yI, [
27418
+ (b = (g = r.value) == null ? void 0 : g.userSettings) != null && b.language ? (w(), M("tr", yI, [
27426
27419
  i[13] || (i[13] = c("td", { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-font-medium pbx-text-gray-900" }, [
27427
27420
  c("div", { class: "pbx-min-w-[30rem] pbx-w-max" }, "Language")
27428
27421
  ], -1)),
@@ -27430,7 +27423,7 @@ const XL = ["src"], ZL = {
27430
27423
  c("div", wI, T(r.value.userSettings.language), 1)
27431
27424
  ])
27432
27425
  ])) : L("", !0),
27433
- ((S = (v = r.value) == null ? void 0 : v.userSettings) == null ? void 0 : S.autoSave) !== void 0 ? (w(), k("tr", SI, [
27426
+ ((S = (v = r.value) == null ? void 0 : v.userSettings) == null ? void 0 : S.autoSave) !== void 0 ? (w(), M("tr", SI, [
27434
27427
  i[14] || (i[14] = c("td", { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-font-medium pbx-text-gray-900" }, [
27435
27428
  c("div", { class: "pbx-min-w-[30rem] pbx-w-max" }, "Auto Save")
27436
27429
  ], -1)),
@@ -27445,7 +27438,7 @@ const XL = ["src"], ZL = {
27445
27438
  ])
27446
27439
  ])
27447
27440
  ])) : L("", !0),
27448
- ((x = (C = r.value) == null ? void 0 : C.userSettings) == null ? void 0 : x.notifications) !== void 0 ? (w(), k("tr", kI, [
27441
+ ((x = (C = r.value) == null ? void 0 : C.userSettings) == null ? void 0 : x.notifications) !== void 0 ? (w(), M("tr", kI, [
27449
27442
  i[15] || (i[15] = c("td", { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-font-medium pbx-text-gray-900" }, [
27450
27443
  c("div", { class: "pbx-min-w-[30rem] pbx-w-max" }, "Notifications")
27451
27444
  ], -1)),
@@ -27465,7 +27458,7 @@ const XL = ["src"], ZL = {
27465
27458
  ])
27466
27459
  ])
27467
27460
  ])) : L("", !0),
27468
- r.value && r.value.pageBuilderLogo && !y(An)(r.value.pageBuilderLogo) ? (w(), k("div", BI, [
27461
+ r.value && r.value.pageBuilderLogo && !y(An)(r.value.pageBuilderLogo) ? (w(), M("div", BI, [
27469
27462
  i[21] || (i[21] = c("h4", { class: "pbx-myQuaternaryHeader pbx-text-sm pbx-mb-2" }, "Logo Configuration", -1)),
27470
27463
  c("div", PI, [
27471
27464
  c("div", LI, [
@@ -27520,7 +27513,7 @@ const XL = ["src"], ZL = {
27520
27513
  ])
27521
27514
  ])
27522
27515
  ])) : L("", !0),
27523
- (B = r.value) != null && B.updateOrCreate && !y(An)(r.value.updateOrCreate) ? (w(), k("div", jI, [
27516
+ (B = r.value) != null && B.updateOrCreate && !y(An)(r.value.updateOrCreate) ? (w(), M("div", jI, [
27524
27517
  i[25] || (i[25] = c("h4", { class: "pbx-myQuaternaryHeader pbx-text-sm pbx-mb-2" }, "Form Type", -1)),
27525
27518
  c("div", qI, [
27526
27519
  c("div", WI, [
@@ -27550,13 +27543,13 @@ const XL = ["src"], ZL = {
27550
27543
  r.value.updateOrCreate === "create" ? "bg-green-100 text-green-800" : "bg-blue-100 text-blue-800"
27551
27544
  ])
27552
27545
  }, [
27553
- r.value && r.value.updateOrCreate.formType === "create" ? (w(), k("span", YI, T(r.value.updateOrCreate.formType), 1)) : L("", !0),
27554
- r.value && r.value.updateOrCreate.formType === "update" ? (w(), k("span", QI, T(r.value.updateOrCreate.formType), 1)) : L("", !0)
27546
+ r.value && r.value.updateOrCreate.formType === "create" ? (w(), M("span", YI, T(r.value.updateOrCreate.formType), 1)) : L("", !0),
27547
+ r.value && r.value.updateOrCreate.formType === "update" ? (w(), M("span", QI, T(r.value.updateOrCreate.formType), 1)) : L("", !0)
27555
27548
  ], 2)
27556
27549
  ])
27557
27550
  ])
27558
27551
  ]),
27559
- r.value.updateOrCreate.formName && r.value.updateOrCreate.formName.length > 0 ? (w(), k("tr", XI, [
27552
+ r.value.updateOrCreate.formName && r.value.updateOrCreate.formName.length > 0 ? (w(), M("tr", XI, [
27560
27553
  i[23] || (i[23] = c("td", { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-font-medium pbx-text-gray-900" }, [
27561
27554
  c("div", { class: "pbx-min-w-[30rem] pbx-w-max" }, "Form Name")
27562
27555
  ], -1)),
@@ -27602,7 +27595,7 @@ const XL = ["src"], ZL = {
27602
27595
  }, Q$ = { class: "pbx-border-0 pbx-bg-gray-900 pbx-pt-4 pbx-1 pbx-border-solid pbx-border-b pbx-border-gray-200" }, X$ = { class: "pbx-overflow-x-auto" }, Z$ = { class: "pbx-min-w-full" }, e5 = { class: "pbx-bg-gray-900" }, t5 = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal" }, n5 = { class: "pbx-bg-gray-900 pbx-divide-y pbx-divide-gray-200" }, r5 = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal" }, o5 = { class: "pbx-overflow-x-auto" }, i5 = { class: "pbx-min-w-full" }, s5 = { class: "pbx-bg-gray-900" }, a5 = { class: "pbx-border-0 pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal pbx-border-solid pbx-border-t pbx-border-gray-200" }, l5 = { class: "pbx-bg-gray-900 pbx-divide-y pbx-divide-gray-200" }, d5 = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal pbx-whitespace-pre-line" }, p5 = { class: "pbx-overflow-x-auto" }, c5 = { class: "pbx-min-w-full" }, u5 = { class: "pbx-bg-gray-900" }, f5 = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal" }, h5 = { class: "pbx-bg-gray-900 pbx-divide-y pbx-divide-gray-200" }, m5 = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal" }, b5 = { class: "pbx-text-xs pbx-text-gray-100 pbx-whitespace-pre-wrap pbx-font-sans pbx-flex pbx-items-start pbx-justify-left" }, g5 = ["innerHTML"], x5 = { key: 2 }, y5 = { key: 0 }, v5 = { class: "pbx-pb-2 pbx-text-xs" }, w5 = { key: 1 }, S5 = { class: "pbx-border-0 pbx-bg-gray-900 pbx-pt-4 pbx-1 pbx-border-solid pbx-border-b pbx-border-gray-200" }, C5 = { class: "pbx-overflow-x-auto" }, T5 = { class: "pbx-min-w-full" }, k5 = { class: "pbx-bg-gray-900" }, M5 = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal" }, E5 = { class: "pbx-bg-gray-900 pbx-divide-y pbx-divide-gray-200" }, B5 = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal" }, P5 = { class: "pbx-overflow-x-auto" }, L5 = { class: "pbx-min-w-full" }, A5 = { class: "pbx-bg-gray-900" }, O5 = { class: "pbx-border-0 pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal pbx-border-solid pbx-border-t pbx-border-gray-200" }, D5 = { class: "pbx-bg-gray-900 pbx-divide-y pbx-divide-gray-200" }, I5 = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal pbx-whitespace-pre-line" }, $5 = { class: "pbx-overflow-x-auto" }, _5 = { class: "pbx-min-w-full" }, N5 = { class: "pbx-bg-gray-900" }, R5 = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal" }, H5 = { class: "pbx-bg-gray-900 pbx-divide-y pbx-divide-gray-200" }, F5 = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal" }, z5 = { class: "pbx-text-xs pbx-text-gray-100 pbx-whitespace-pre-wrap pbx-font-sans pbx-flex pbx-items-start pbx-justify-left" }, V5 = ["innerHTML"], j5 = {
27603
27596
  __name: "AdvancedPageBuilderSettings",
27604
27597
  setup(n) {
27605
- const { translate: e } = Me(), t = Ce, r = $(() => t.getElement), o = $(() => t.getComponent), i = $(() => t.getComponents), s = M("element"), a = function(d) {
27598
+ const { translate: e } = Me(), t = Ce, r = $(() => t.getElement), o = $(() => t.getComponent), i = $(() => t.getComponents), s = k("element"), a = function(d) {
27606
27599
  s.value = d;
27607
27600
  };
27608
27601
  function l(d) {
@@ -27648,7 +27641,7 @@ const XL = ["src"], ZL = {
27648
27641
  }
27649
27642
  return (d, p) => {
27650
27643
  var u, f, h, m, g, b, v, S, C, x;
27651
- return w(), k("div", a$, [
27644
+ return w(), M("div", a$, [
27652
27645
  c("div", l$, [
27653
27646
  c("p", d$, T(y(e)(
27654
27647
  "Overview of Selected Element, Component, and Components. This section provides real-time updates based on your HTML selection."
@@ -27697,11 +27690,11 @@ const XL = ["src"], ZL = {
27697
27690
  ])
27698
27691
  ]),
27699
27692
  c("div", C$, [
27700
- s.value === "element" ? (w(), k("div", T$, [
27701
- o.value ? L("", !0) : (w(), k("div", k$, [
27693
+ s.value === "element" ? (w(), M("div", T$, [
27694
+ o.value ? L("", !0) : (w(), M("div", k$, [
27702
27695
  c("p", M$, T(o.value === null ? y(e)("No Element selected") : typeof o.value), 1)
27703
27696
  ])),
27704
- r.value ? (w(), k("div", E$, [
27697
+ r.value ? (w(), M("div", E$, [
27705
27698
  c("div", B$, [
27706
27699
  c("div", P$, [
27707
27700
  c("table", L$, [
@@ -27748,11 +27741,11 @@ const XL = ["src"], ZL = {
27748
27741
  ])
27749
27742
  ])) : L("", !0)
27750
27743
  ])) : L("", !0),
27751
- s.value === "component" ? (w(), k("div", G$, [
27752
- o.value ? L("", !0) : (w(), k("div", K$, [
27744
+ s.value === "component" ? (w(), M("div", G$, [
27745
+ o.value ? L("", !0) : (w(), M("div", K$, [
27753
27746
  c("p", J$, T(o.value === null ? y(e)("No Component selected") : typeof o.value), 1)
27754
27747
  ])),
27755
- o.value ? (w(), k("div", Y$, [
27748
+ o.value ? (w(), M("div", Y$, [
27756
27749
  c("div", Q$, [
27757
27750
  c("div", X$, [
27758
27751
  c("table", Z$, [
@@ -27809,12 +27802,12 @@ const XL = ["src"], ZL = {
27809
27802
  ])
27810
27803
  ])) : L("", !0)
27811
27804
  ])) : L("", !0),
27812
- s.value === "components" ? (w(), k("div", x5, [
27813
- Array.isArray(i.value) && i.value.length === 0 ? (w(), k("div", y5, [
27805
+ s.value === "components" ? (w(), M("div", x5, [
27806
+ Array.isArray(i.value) && i.value.length === 0 ? (w(), M("div", y5, [
27814
27807
  c("p", v5, T(y(e)("No Components added yet")), 1)
27815
27808
  ])) : L("", !0),
27816
- i.value ? (w(), k("div", w5, [
27817
- (w(!0), k(X, null, ue(i.value, (B) => (w(), k("div", {
27809
+ i.value ? (w(), M("div", w5, [
27810
+ (w(!0), M(X, null, ue(i.value, (B) => (w(), M("div", {
27818
27811
  key: B.id,
27819
27812
  class: "pbx-overflow-hidden pbx-border-solid pbx-border pbx-border-gray-100 pbx-mb-6"
27820
27813
  }, [
@@ -27894,31 +27887,31 @@ const XL = ["src"], ZL = {
27894
27887
  }, n_ = { class: "pbx-absolute pbx-left-0 -pbx-ml-16 -pbx-mt-2 pbx-flex pbx-flex-col pbx-gap-3 pbx-shadow-lg pbx-bg-white pbx-w-max pbx-border-solid pbx-border pbx-border-gray-100 pbx-rounded-2xl pbx-transition-all pbx-duration-200 pbx-ease-out pbx-pt-4 pbx-pr-4 pbx-pb-4 pbx-pl-2 pbx-z-30 pbx-opacity-0 pbx-pointer-events-none pbx-translate-y-2 group-hover:pbx-opacity-100 group-hover:pbx-pointer-events-auto group-hover:pbx-translate-y-0" }, r_ = {
27895
27888
  __name: "ToolbarOption",
27896
27889
  setup(n) {
27897
- const { translate: e } = Me(), t = ke(), r = Ce, o = $(() => r.getPageBuilderConfig), i = M(!1), s = M(!1), a = M(""), l = M(1), d = M(""), p = M(""), u = M(""), f = M(null), h = M(null), m = M(null), g = M(null), b = M(null), v = function() {
27890
+ const { translate: e } = Me(), t = ke(), r = Ce, o = $(() => r.getPageBuilderConfig), i = k(!1), s = k(!1), a = k(""), l = k(1), d = k(""), p = k(""), u = k(""), f = k(null), h = k(null), m = k(null), g = k(null), b = k(null), v = function() {
27898
27891
  s.value = !0, a.value = "delete", l.value = 2, d.value = e("Remove all Components"), p.value = e("Are you sure you want to remove all Components?"), u.value = e("Close"), f.value = null, h.value = e("Delete"), m.value = function() {
27899
27892
  s.value = !1;
27900
27893
  }, b.value = async function() {
27901
27894
  i.value = !0, await t.clearHtmlSelection(), await t.handleFormSubmission(), await Oe(500), s.value = !1, i.value = !1;
27902
27895
  };
27903
- }, S = M(!1), C = function() {
27896
+ }, S = k(!1), C = function() {
27904
27897
  S.value = !1;
27905
27898
  }, x = function() {
27906
27899
  S.value = !0;
27907
- }, B = M(!1), E = function() {
27900
+ }, B = k(!1), E = function() {
27908
27901
  B.value = !1;
27909
27902
  }, P = async function() {
27910
27903
  await t.generateHtmlFromComponents(), B.value = !0;
27911
27904
  };
27912
27905
  return (H, q) => {
27913
27906
  var D;
27914
- return w(), k("div", null, [
27907
+ return w(), M("div", null, [
27915
27908
  c("div", q5, [
27916
27909
  c("div", W5, [
27917
- o.value && o.value.userForPageBuilder && o.value.userForPageBuilder.name && (!o.value.userForPageBuilder.image || typeof o.value.userForPageBuilder.image == "string" && ((D = o.value.userForPageBuilder.image) == null ? void 0 : D.length) < 2) ? (w(), k("div", U5, [
27910
+ o.value && o.value.userForPageBuilder && o.value.userForPageBuilder.name && (!o.value.userForPageBuilder.image || typeof o.value.userForPageBuilder.image == "string" && ((D = o.value.userForPageBuilder.image) == null ? void 0 : D.length) < 2) ? (w(), M("div", U5, [
27918
27911
  c("div", G5, T(typeof o.value.userForPageBuilder.name == "string" && o.value.userForPageBuilder.name[0]), 1),
27919
27912
  c("div", K5, T(o.value.userForPageBuilder.name), 1)
27920
27913
  ])) : L("", !0),
27921
- o.value && o.value.userForPageBuilder && o.value.userForPageBuilder.name && o.value.userForPageBuilder.image && typeof o.value.userForPageBuilder.image == "string" && o.value.userForPageBuilder.image.length > 2 ? (w(), k("div", J5, [
27914
+ o.value && o.value.userForPageBuilder && o.value.userForPageBuilder.name && o.value.userForPageBuilder.image && typeof o.value.userForPageBuilder.image == "string" && o.value.userForPageBuilder.image.length > 2 ? (w(), M("div", J5, [
27922
27915
  c("div", Y5, [
27923
27916
  c("img", {
27924
27917
  alt: "Avatar",
@@ -28015,7 +28008,7 @@ function o_() {
28015
28008
  }
28016
28009
  const i_ = {}, s_ = { class: "pbx-bg-white pbx-flex pbx-justify-center pbx-items-center min-pbx-h-screen pbx-h-screen pbx-w-screen pbx-fixed pbx-inset-0 pbx-z-[10000]" };
28017
28010
  function a_(n, e) {
28018
- return w(), k("div", s_, e[0] || (e[0] = [
28011
+ return w(), M("div", s_, e[0] || (e[0] = [
28019
28012
  c("div", { class: "pbx-absolute pbx-top-1/3" }, [
28020
28013
  c("div", { class: "pbx-flex pbx-items-center pbx-justify-center pbx-mt-4" }, [
28021
28014
  c("div", { class: "pbx-inline-block pbx-h-8 pbx-w-8 pbx-animate-spin pbx-rounded-full pbx-border-4 pbx-border-solid pbx-border-current pbx-border-r-transparent pbx-align-[-0.125em] motion-reduce:pbx-animate-[spin_1.5s_linear_infinite]" }, [
@@ -28034,7 +28027,7 @@ const p1 = /* @__PURE__ */ Js(i_, [["render", a_]]), l_ = { class: "pbx-text-xs
28034
28027
  }, u = async function() {
28035
28028
  d.value && (r("toolbar-hide-request"), await t.redo(), await t.clearHtmlSelection());
28036
28029
  };
28037
- return (f, h) => (w(), k(X, null, [
28030
+ return (f, h) => (w(), M(X, null, [
28038
28031
  i.value ? (w(), fe(p1, { key: 0 })) : L("", !0),
28039
28032
  c("div", {
28040
28033
  onClick: h[0] || (h[0] = async () => {
@@ -28092,7 +28085,7 @@ const p1 = /* @__PURE__ */ Js(i_, [["render", a_]]), l_ = { class: "pbx-text-xs
28092
28085
  class: "lg:pbx-min-w-full lg:pbx-max-w-full lg:pbx-w-full pbx-min-w-[64rem] pbx-max-w-[64rem] pbx-w-[64rem] pbx-flex-1 pbx-relative pbx-h-full pbx-flex pbx-pb-2 pbx-gap-2"
28093
28086
  }, I_ = { class: "pbx-mx-2 pbx-flex pbx-flex-col pbx-myPrimaryGap pbx-items-stretch" }, $_ = { class: "pbx-flex pbx-gap-2 pbx-items-center pbx-justify-center" }, __ = {
28094
28087
  id: "pbxEditToolbar",
28095
- class: "pbx-z-30 lg:pbx-mx-20 pbx-flex pbx-gap-2 pbx-justify-center pbx-items-center pbx-rounded-full pbx-px-4 pbx-h-0"
28088
+ class: "pbx-z-30 pbx-flex pbx-gap-2 pbx-justify-center pbx-items-center pbx-rounded-full pbx-px-4 pbx-h-0"
28096
28089
  }, N_ = {
28097
28090
  id: "pagebuilder",
28098
28091
  class: "pbx-text-black pbx-font-sans"
@@ -28131,9 +28124,9 @@ const p1 = /* @__PURE__ */ Js(i_, [["render", a_]]), l_ = { class: "pbx-text-xs
28131
28124
  Ln("closeAddComponentModal", () => {
28132
28125
  se.value = !1;
28133
28126
  });
28134
- const f = M("en");
28127
+ const f = k("en");
28135
28128
  let h = !0;
28136
- const m = M(!1);
28129
+ const m = k(!1);
28137
28130
  ee(f, async (F) => {
28138
28131
  if (F && !h) {
28139
28132
  m.value = !0, await Oe(200), await i(F), t.changeLanguage(F);
@@ -28141,21 +28134,21 @@ const p1 = /* @__PURE__ */ Js(i_, [["render", a_]]), l_ = { class: "pbx-text-xs
28141
28134
  O.lang = F, localStorage.setItem("userSettingsPageBuilder", JSON.stringify(O)), m.value = !1;
28142
28135
  }
28143
28136
  });
28144
- const g = $(() => a.getBuilderStarted), b = $(() => a.getPageBuilderConfig), v = $(() => a.getMenuRight), S = M(!1), C = M(""), x = M(""), B = function() {
28137
+ const g = $(() => a.getBuilderStarted), b = $(() => a.getPageBuilderConfig), v = $(() => a.getMenuRight), S = k(!1), C = k(""), x = k(""), B = function() {
28145
28138
  t.previewCurrentDesign();
28146
28139
  }, E = function() {
28147
28140
  C.value = o("Preview"), B(), S.value = !0;
28148
- }, P = M(!1), H = function() {
28141
+ }, P = k(!1), H = function() {
28149
28142
  t.previewCurrentDesign();
28150
28143
  }, q = function() {
28151
28144
  x.value = o("Mobile"), H(), P.value = !0;
28152
- }, D = M(!1), I = function() {
28145
+ }, D = k(!1), I = function() {
28153
28146
  D.value = !1;
28154
28147
  }, N = function() {
28155
28148
  S.value = !1;
28156
28149
  }, Y = function() {
28157
28150
  P.value = !1;
28158
- }, se = M(!1), ae = M(""), ce = M(""), he = M(null), me = async function() {
28151
+ }, se = k(!1), ae = k(""), ce = k(""), he = k(null), me = async function() {
28159
28152
  await t.clearHtmlSelection(), ae.value = o("Add Components to Page"), ce.value = o("Close"), se.value = !0, he.value = function() {
28160
28153
  se.value = !1;
28161
28154
  };
@@ -28177,16 +28170,16 @@ const p1 = /* @__PURE__ */ Js(i_, [["render", a_]]), l_ = { class: "pbx-text-xs
28177
28170
  });
28178
28171
  const dt = function(F) {
28179
28172
  a.setComponent(F);
28180
- }, Ue = $(() => a.getIsLoadingGlobal), Ge = $(() => a.getIsSaving), Dt = $(() => a.getIsLoadingResumeEditing), Re = $(() => a.getIsRestoring), It = M(1), mt = M(""), pt = M(!1), nn = M(""), Be = M(""), W = M(""), He = M(null), vn = M(null), wn = M(null), Zn = M(null), er = M(null), $t = async function() {
28173
+ }, We = $(() => a.getIsLoadingGlobal), Ue = $(() => a.getIsSaving), Dt = $(() => a.getIsLoadingResumeEditing), Re = $(() => a.getIsRestoring), It = k(1), mt = k(""), pt = k(!1), nn = k(""), Be = k(""), G = k(""), Ge = k(null), vn = k(null), wn = k(null), Zn = k(null), er = k(null), $t = async function() {
28181
28174
  mt.value = "warning", pt.value = !0, nn.value = o("Continue Your Work?"), Be.value = o(
28182
28175
  "We noticed you have some changes that weren’t saved last time. Would you like to pick up where you left off, or use the version that’s currently loaded from the database?"
28183
- ), W.value = o("Use Saved Version"), He.value = null, vn.value = o("Continue Where I Left Off"), wn.value = async function() {
28176
+ ), G.value = o("Use Saved Version"), Ge.value = null, vn.value = o("Continue Where I Left Off"), wn.value = async function() {
28184
28177
  a.setHasLocalDraftForUpdate(!1), pt.value = !1;
28185
28178
  }, Zn.value = function() {
28186
28179
  }, er.value = async function() {
28187
28180
  await t.resumeEditingFromDraft(), a.setHasLocalDraftForUpdate(!1), pt.value = !1;
28188
28181
  };
28189
- }, jt = M(1), Sn = M(""), wt = M(!1), Cn = M(""), tr = M(""), nr = M(""), rr = M(null), or = M(null), di = M(null), pi = M(null), ci = M(null), Qs = async function() {
28182
+ }, jt = k(1), Sn = k(""), wt = k(!1), Cn = k(""), tr = k(""), nr = k(""), rr = k(null), or = k(null), di = k(null), pi = k(null), ci = k(null), Qs = async function() {
28190
28183
  await t.clearHtmlSelection(), Sn.value = "success", wt.value = !0, Cn.value = o("Do you want to reset this page?"), tr.value = o(
28191
28184
  "Are you sure you want to reset this page? This will overwrite your current changes."
28192
28185
  ), nr.value = o("Close"), rr.value = null, or.value = o("Reset changes"), di.value = function() {
@@ -28197,7 +28190,7 @@ const p1 = /* @__PURE__ */ Js(i_, [["render", a_]]), l_ = { class: "pbx-text-xs
28197
28190
  };
28198
28191
  }, po = function() {
28199
28192
  g.value || (D.value = !0);
28200
- }, A = M(null), G = function() {
28193
+ }, A = k(null), U = function() {
28201
28194
  const F = document.querySelector("#pbxEditToolbar");
28202
28195
  F && (F.classList.remove("is-visible"), F.removeAttribute("style"));
28203
28196
  };
@@ -28222,8 +28215,8 @@ const p1 = /* @__PURE__ */ Js(i_, [["render", a_]]), l_ = { class: "pbx-text-xs
28222
28215
  attributes: !0,
28223
28216
  attributeFilter: ["selected"]
28224
28217
  }), window.addEventListener("scroll", Q), window.addEventListener("resize", Q), await Oe(1e4), po(), await Oe(1e4), po(), await Oe(1e4), po();
28225
- }), (F, O) => (w(), k("div", p_, [
28226
- Ue.value && !D.value || m.value ? (w(), fe(p1, { key: 0 })) : L("", !0),
28218
+ }), (F, O) => (w(), M("div", p_, [
28219
+ We.value && !D.value || m.value ? (w(), fe(p1, { key: 0 })) : L("", !0),
28227
28220
  z(Yt, {
28228
28221
  title: "The builder hasn’t started yet",
28229
28222
  showModalBuilder: D.value,
@@ -28275,8 +28268,8 @@ const p1 = /* @__PURE__ */ Js(i_, [["render", a_]]), l_ = { class: "pbx-text-xs
28275
28268
  gridColumnAmount: It.value,
28276
28269
  title: nn.value,
28277
28270
  description: Be.value,
28278
- firstButtonText: W.value,
28279
- secondButtonText: He.value,
28271
+ firstButtonText: G.value,
28272
+ secondButtonText: Ge.value,
28280
28273
  thirdButtonText: vn.value,
28281
28274
  onFirstModalButtonFunctionDynamicModalBuilder: wn.value,
28282
28275
  onSecondModalButtonFunctionDynamicModalBuilder: Zn.value,
@@ -28311,7 +28304,7 @@ const p1 = /* @__PURE__ */ Js(i_, [["render", a_]]), l_ = { class: "pbx-text-xs
28311
28304
  __: [23]
28312
28305
  }, 8, ["showDynamicModalBuilder", "isLoading", "type", "gridColumnAmount", "title", "description", "firstButtonText", "secondButtonText", "thirdButtonText", "onFirstModalButtonFunctionDynamicModalBuilder", "onSecondModalButtonFunctionDynamicModalBuilder", "onThirdModalButtonFunctionDynamicModalBuilder"]),
28313
28306
  c("div", c_, [
28314
- b.value && b.value.pageBuilderLogo && b.value.pageBuilderLogo.src ? (w(), k("div", {
28307
+ b.value && b.value.pageBuilderLogo && b.value.pageBuilderLogo.src ? (w(), M("div", {
28315
28308
  key: 0,
28316
28309
  onClick: O[0] || (O[0] = Ct(
28317
28310
  async () => {
@@ -28327,7 +28320,7 @@ const p1 = /* @__PURE__ */ Js(i_, [["render", a_]]), l_ = { class: "pbx-text-xs
28327
28320
  alt: "Logo"
28328
28321
  }, null, 8, u_)
28329
28322
  ])) : L("", !0),
28330
- z(d_, { onToolbarHideRequest: G }),
28323
+ z(d_, { onToolbarHideRequest: U }),
28331
28324
  c("div", {
28332
28325
  onClick: O[3] || (O[3] = Ct(
28333
28326
  async () => {
@@ -28347,12 +28340,12 @@ const p1 = /* @__PURE__ */ Js(i_, [["render", a_]]), l_ = { class: "pbx-text-xs
28347
28340
  ["stop"]
28348
28341
  )),
28349
28342
  type: "button",
28350
- disabled: Ge.value
28343
+ disabled: Ue.value
28351
28344
  }, [
28352
- Ge.value ? L("", !0) : (w(), k("div", m_, O[24] || (O[24] = [
28345
+ Ue.value ? L("", !0) : (w(), M("div", m_, O[24] || (O[24] = [
28353
28346
  c("span", { class: "material-symbols-outlined" }, "save", -1)
28354
28347
  ]))),
28355
- Ge.value ? (w(), k("div", b_, O[25] || (O[25] = [
28348
+ Ue.value ? (w(), M("div", b_, O[25] || (O[25] = [
28356
28349
  c("span", { class: "pbx-relative pbx-flex pbx-size-3" }, [
28357
28350
  c("span", { class: "pbx-absolute pbx-inline-flex pbx-h-full pbx-w-full pbx-animate-ping pbx-rounded-full pbx-bg-gray-400 pbx-opacity-75" }),
28358
28351
  c("span", { class: "pbx-relative pbx-inline-flex pbx-size-3 pbx-rounded-full pbx-bg-green-200" })
@@ -28360,7 +28353,7 @@ const p1 = /* @__PURE__ */ Js(i_, [["render", a_]]), l_ = { class: "pbx-text-xs
28360
28353
  ]))) : L("", !0),
28361
28354
  c("div", null, T(y(o)("Save")), 1)
28362
28355
  ], 8, h_),
28363
- b.value && b.value.updateOrCreate && b.value.updateOrCreate.formType === "update" ? (w(), k("button", {
28356
+ b.value && b.value.updateOrCreate && b.value.updateOrCreate.formType === "update" ? (w(), M("button", {
28364
28357
  key: 0,
28365
28358
  class: "pbx-mySecondaryButton pbx-h-6 pbx-flex pbx-gap-2 lg:pbx-mr-2 pbx-mr-2",
28366
28359
  onClick: O[2] || (O[2] = Ct(
@@ -28372,10 +28365,10 @@ const p1 = /* @__PURE__ */ Js(i_, [["render", a_]]), l_ = { class: "pbx-text-xs
28372
28365
  type: "button",
28373
28366
  disabled: Re.value
28374
28367
  }, [
28375
- Re.value ? L("", !0) : (w(), k("div", x_, O[26] || (O[26] = [
28368
+ Re.value ? L("", !0) : (w(), M("div", x_, O[26] || (O[26] = [
28376
28369
  c("span", { class: "material-symbols-outlined" }, " settings_backup_restore ", -1)
28377
28370
  ]))),
28378
- Re.value ? (w(), k("div", y_, O[27] || (O[27] = [
28371
+ Re.value ? (w(), M("div", y_, O[27] || (O[27] = [
28379
28372
  c("span", { class: "pbx-relative pbx-flex pbx-size-3" }, [
28380
28373
  c("span", { class: "pbx-absolute pbx-inline-flex pbx-h-full pbx-w-full pbx-animate-ping pbx-rounded-full pbx-bg-gray-400 pbx-opacity-75" }),
28381
28374
  c("span", { class: "pbx-relative pbx-inline-flex pbx-size-3 pbx-rounded-full pbx-bg-green-200" })
@@ -28463,7 +28456,7 @@ const p1 = /* @__PURE__ */ Js(i_, [["render", a_]]), l_ = { class: "pbx-text-xs
28463
28456
  }, [
28464
28457
  z(r_)
28465
28458
  ], 2),
28466
- n.showPublishButton ? (w(), k("div", B_, [
28459
+ n.showPublishButton ? (w(), M("div", B_, [
28467
28460
  c("button", {
28468
28461
  class: "pbx-myPrimaryButton",
28469
28462
  onClick: O[10] || (O[10] = async () => {
@@ -28471,18 +28464,18 @@ const p1 = /* @__PURE__ */ Js(i_, [["render", a_]]), l_ = { class: "pbx-text-xs
28471
28464
  })
28472
28465
  }, T(y(o)("Publish")), 1)
28473
28466
  ])) : L("", !0),
28474
- y(t) && b.value && b.value.userSettings && b.value.userSettings.language && !b.value.userSettings.language.disableLanguageDropDown ? (w(), k(X, { key: 1 }, [
28475
- b.value && b.value.userSettings && b.value.userSettings.language ? (w(), k("div", P_, [
28467
+ y(t) && b.value && b.value.userSettings && b.value.userSettings.language && !b.value.userSettings.language.disableLanguageDropDown ? (w(), M(X, { key: 1 }, [
28468
+ b.value && b.value.userSettings && b.value.userSettings.language ? (w(), M("div", P_, [
28476
28469
  xe(c("select", {
28477
28470
  id: "pbx-lang",
28478
28471
  class: "pbx-myPrimarySelect pbx-min-w-20",
28479
28472
  "onUpdate:modelValue": O[11] || (O[11] = (de) => f.value = de)
28480
28473
  }, [
28481
- Array.isArray(b.value.userSettings.language.enable) && b.value.userSettings.language.enable.length >= 1 ? (w(!0), k(X, { key: 0 }, ue(y(t).availableLanguage().filter((de) => b.value.userSettings.language.enable.includes(de)), (de) => (w(), k("option", {
28474
+ Array.isArray(b.value.userSettings.language.enable) && b.value.userSettings.language.enable.length >= 1 ? (w(!0), M(X, { key: 0 }, ue(y(t).availableLanguage().filter((de) => b.value.userSettings.language.enable.includes(de)), (de) => (w(), M("option", {
28482
28475
  key: de,
28483
28476
  value: de
28484
28477
  }, T(de), 9, L_))), 128)) : L("", !0),
28485
- !b.value.userSettings.language.enable || Array.isArray(b.value.userSettings.language.enable) && b.value.userSettings.language.enable.length === 0 ? (w(!0), k(X, { key: 1 }, ue(y(t).availableLanguage(), (de) => (w(), k("option", {
28478
+ !b.value.userSettings.language.enable || Array.isArray(b.value.userSettings.language.enable) && b.value.userSettings.language.enable.length === 0 ? (w(!0), M(X, { key: 1 }, ue(y(t).availableLanguage(), (de) => (w(), M("option", {
28486
28479
  key: de,
28487
28480
  value: de
28488
28481
  }, T(de), 9, A_))), 128)) : L("", !0)
@@ -28491,7 +28484,7 @@ const p1 = /* @__PURE__ */ Js(i_, [["render", a_]]), l_ = { class: "pbx-text-xs
28491
28484
  ])
28492
28485
  ])) : L("", !0)
28493
28486
  ], 64)) : L("", !0),
28494
- n.showCloseButton ? (w(), k("div", O_, [
28487
+ n.showCloseButton ? (w(), M("div", O_, [
28495
28488
  c("button", {
28496
28489
  class: "pbx-h-10 pbx-w-10 pbx-flex-end pbx-cursor-pointer pbx-rounded-full pbx-flex pbx-items-center pbx-border-none pbx-justify-center pbx-bg-gray-50 pbx-aspect-square hover:pbx-bg-myPrimaryLinkColor hover:pbx-text-white hover:pbx-fill-white focus-visible:pbx-ring-0",
28497
28490
  onClick: O[12] || (O[12] = async () => {
@@ -28548,10 +28541,10 @@ const p1 = /* @__PURE__ */ Js(i_, [["render", a_]]), l_ = { class: "pbx-text-xs
28548
28541
  ne.value ? (w(), fe(I3, { key: 0 })) : L("", !0)
28549
28542
  ]),
28550
28543
  c("div", N_, [
28551
- (w(!0), k(X, null, ue(at.value, (de) => (w(), k(X, {
28544
+ (w(!0), M(X, null, ue(at.value, (de) => (w(), M(X, {
28552
28545
  key: de.id
28553
28546
  }, [
28554
- de.html_code ? (w(), k("div", {
28547
+ de.html_code ? (w(), M("div", {
28555
28548
  key: 0,
28556
28549
  innerHTML: de.html_code,
28557
28550
  onMouseup: (_t) => dt(de)
@@ -28565,7 +28558,7 @@ const p1 = /* @__PURE__ */ Js(i_, [["render", a_]]), l_ = { class: "pbx-text-xs
28565
28558
  mode: "out-in"
28566
28559
  }, {
28567
28560
  default: j(() => [
28568
- v.value ? (w(), k("aside", {
28561
+ v.value ? (w(), M("aside", {
28569
28562
  key: 0,
28570
28563
  "aria-label": "menu",
28571
28564
  id: "pagebuilder-right-menu",
@@ -28576,7 +28569,7 @@ const p1 = /* @__PURE__ */ Js(i_, [["render", a_]]), l_ = { class: "pbx-text-xs
28576
28569
  z(PD, {
28577
28570
  onCloseEditor: O[16] || (O[16] = (de) => y(a).setMenuRight(!1))
28578
28571
  })
28579
- ], 2)) : (w(), k("div", {
28572
+ ], 2)) : (w(), M("div", {
28580
28573
  key: 1,
28581
28574
  onClick: O[19] || (O[19] = Ct(
28582
28575
  async () => {
@@ -28595,7 +28588,7 @@ const p1 = /* @__PURE__ */ Js(i_, [["render", a_]]), l_ = { class: "pbx-text-xs
28595
28588
  )),
28596
28589
  class: "pbx-flex pbx-flex-col pbx-items-center pbx-justify-center pbx-gap-2"
28597
28590
  }, [
28598
- v.value ? L("", !0) : (w(), k("button", {
28591
+ v.value ? L("", !0) : (w(), M("button", {
28599
28592
  key: 0,
28600
28593
  onClick: O[17] || (O[17] = (de) => y(a).setMenuRight(!0)),
28601
28594
  type: "button",