@myissue/vue-website-page-builder 3.4.13 → 3.4.14

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 Lh = Object.defineProperty;
2
2
  var Dh = (n, e, t) => e in n ? Lh(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
3
  var be = (n, e, t) => Dh(n, typeof e != "symbol" ? e + "" : e, t);
4
4
  import * as vp from "vue";
5
- import { defineComponent as Xe, computed as N, createBlock as ue, openBlock as w, Teleport as Ih, createElementVNode as u, createElementBlock as M, createCommentVNode as A, normalizeClass as Q, toDisplayString as C, renderSlot as pr, ref as E, watchEffect as ii, Fragment as X, withCtx as V, nextTick as oe, readonly as Nh, createVNode as j, unref as y, shallowRef as $h, onMounted as dn, onBeforeUnmount as Lo, h as zn, getCurrentInstance as Ad, markRaw as An, customRef as Rh, effectScope as _d, toRaw as Ve, hasInjectionContext as Hh, inject as Vn, watch as ee, reactive as Fh, isRef as Di, isReactive as Ca, toRef as Zo, getCurrentScope as jh, onScopeDispose as zh, toRefs as wp, onBeforeMount as Vh, withDirectives as xe, vModelText as yr, createTextVNode as we, provide as Tn, resolveDynamicComponent as Ld, cloneVNode as qh, onUnmounted as Uh, Transition as si, renderList as de, withKeys as Nl, withModifiers as bt, vShow as $l, vModelSelect as Ue } from "vue";
5
+ import { defineComponent as Xe, computed as I, createBlock as ue, openBlock as w, Teleport as Nh, createElementVNode as u, createElementBlock as M, createCommentVNode as A, normalizeClass as Q, toDisplayString as C, renderSlot as pr, ref as E, watchEffect as ii, Fragment as X, withCtx as V, nextTick as oe, readonly as Ih, createVNode as j, unref as y, shallowRef as $h, onMounted as dn, onBeforeUnmount as Lo, h as zn, getCurrentInstance as Ad, markRaw as An, customRef as Rh, effectScope as _d, toRaw as Ve, hasInjectionContext as Hh, inject as Vn, watch as ee, reactive as Fh, isRef as Di, isReactive as Ca, toRef as Zo, getCurrentScope as jh, onScopeDispose as zh, toRefs as wp, onBeforeMount as Vh, withDirectives as xe, vModelText as yr, createTextVNode as we, provide as Tn, resolveDynamicComponent as Ld, cloneVNode as qh, onUnmounted as Uh, Transition as si, renderList as de, withKeys as Il, withModifiers as bt, vShow as $l, vModelSelect as Ue } from "vue";
6
6
  const Wh = { class: "pbx-font-sans" }, Kh = {
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",
@@ -42,7 +42,7 @@ const Wh = { class: "pbx-font-sans" }, Kh = {
42
42
  setup(n, { emit: e }) {
43
43
  const t = n, r = e, i = () => {
44
44
  r("closeMainModalBuilder");
45
- }, s = N(() => ({
45
+ }, s = I(() => ({
46
46
  sm: "lg:pbx-max-w-sm",
47
47
  md: "lg:pbx-max-w-md",
48
48
  lg: "lg:pbx-max-w-lg",
@@ -58,7 +58,7 @@ const Wh = { class: "pbx-font-sans" }, Kh = {
58
58
  screen: "lg:w-screen sm:pbx-max-w-none"
59
59
  // truly full screen
60
60
  })[t.maxWidth]);
61
- return (o, l) => (w(), ue(Ih, { to: "body" }, [
61
+ return (o, l) => (w(), ue(Nh, { to: "body" }, [
62
62
  u("div", Wh, [
63
63
  n.showModalBuilder ? (w(), M("div", Kh, [
64
64
  u("div", {
@@ -1367,11 +1367,11 @@ function ob() {
1367
1367
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
1368
1368
  return hs(sb);
1369
1369
  }
1370
- const Ne = [];
1370
+ const Ie = [];
1371
1371
  for (let n = 0; n < 256; ++n)
1372
- Ne.push((n + 256).toString(16).slice(1));
1372
+ Ie.push((n + 256).toString(16).slice(1));
1373
1373
  function lb(n, e = 0) {
1374
- return Ne[n[e + 0]] + Ne[n[e + 1]] + Ne[n[e + 2]] + Ne[n[e + 3]] + "-" + Ne[n[e + 4]] + Ne[n[e + 5]] + "-" + Ne[n[e + 6]] + Ne[n[e + 7]] + "-" + Ne[n[e + 8]] + Ne[n[e + 9]] + "-" + Ne[n[e + 10]] + Ne[n[e + 11]] + Ne[n[e + 12]] + Ne[n[e + 13]] + Ne[n[e + 14]] + Ne[n[e + 15]];
1374
+ return Ie[n[e + 0]] + Ie[n[e + 1]] + Ie[n[e + 2]] + Ie[n[e + 3]] + "-" + Ie[n[e + 4]] + Ie[n[e + 5]] + "-" + Ie[n[e + 6]] + Ie[n[e + 7]] + "-" + Ie[n[e + 8]] + Ie[n[e + 9]] + "-" + Ie[n[e + 10]] + Ie[n[e + 11]] + Ie[n[e + 12]] + Ie[n[e + 13]] + Ie[n[e + 14]] + Ie[n[e + 15]];
1375
1375
  }
1376
1376
  const ab = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), kp = {
1377
1377
  randomUUID: ab
@@ -1562,11 +1562,11 @@ class cb {
1562
1562
  var t;
1563
1563
  typeof ((t = this.getElement.value) == null ? void 0 : t.innerHTML) == "string" && (typeof this.getElement.value.innerHTML == "string" && (await oe(), this.getElement.value.textContent = e, this.pageBuilderStateStore.setTextAreaVueModel(this.getElement.value.innerHTML), this.getElement.value.innerHTML = e), this.ensureTextAreaHasContent());
1564
1564
  });
1565
- this.hasStartedEditing = !1, this.pageBuilderStateStore = e, this.getApplyImageToSelection = N(
1565
+ this.hasStartedEditing = !1, this.pageBuilderStateStore = e, this.getApplyImageToSelection = I(
1566
1566
  () => this.pageBuilderStateStore.getApplyImageToSelection
1567
- ), this.getLocalStorageItemName = N(
1567
+ ), this.getLocalStorageItemName = I(
1568
1568
  () => this.pageBuilderStateStore.getLocalStorageItemName
1569
- ), this.getHyberlinkEnable = N(() => this.pageBuilderStateStore.getHyberlinkEnable), this.getComponents = N(() => this.pageBuilderStateStore.getComponents), this.getComponent = N(() => this.pageBuilderStateStore.getComponent), this.getElement = N(() => this.pageBuilderStateStore.getElement), this.getComponentArrayAddMethod = N(
1569
+ ), this.getHyberlinkEnable = I(() => this.pageBuilderStateStore.getHyberlinkEnable), this.getComponents = I(() => this.pageBuilderStateStore.getComponents), this.getComponent = I(() => this.pageBuilderStateStore.getComponent), this.getElement = I(() => this.pageBuilderStateStore.getElement), this.getComponentArrayAddMethod = I(
1570
1570
  () => this.pageBuilderStateStore.getComponentArrayAddMethod
1571
1571
  ), this.NoneListernesTags = [
1572
1572
  "P",
@@ -2751,6 +2751,30 @@ ${o}
2751
2751
  }
2752
2752
  return !1;
2753
2753
  }
2754
+ /**
2755
+ * Exports all CSS used in the builder as a string.
2756
+ * - Includes all inline styles and a list of all classes used.
2757
+ * - If you use Tailwind, classes are your main "CSS".
2758
+ * - If you have custom CSS, you can also include it here.
2759
+ */
2760
+ exportCssFromPageBuilder() {
2761
+ const e = document.querySelector("#pagebuilder");
2762
+ if (!e) return "";
2763
+ const t = [];
2764
+ e.querySelectorAll("[style]").forEach((s) => {
2765
+ const o = s.id ? `#${s.id}` : s.className ? `.${Array.from(s.classList).join(".")}` : s.tagName.toLowerCase();
2766
+ t.push(`${o} { ${s.getAttribute("style")} }`);
2767
+ });
2768
+ const r = /* @__PURE__ */ new Set();
2769
+ return e.querySelectorAll("[class]").forEach((s) => {
2770
+ s.className.split(/\s+/).filter(Boolean).forEach((o) => r.add(o));
2771
+ }), [`/* Classes used in this page (for Tailwind or custom CSS):
2772
+ ` + Array.from(r).sort().map((s) => `.${s}`).join(`
2773
+ `) + `
2774
+ */`, ...t].join(`
2775
+
2776
+ `);
2777
+ }
2754
2778
  /**
2755
2779
  * Applies a selected image to the current element.
2756
2780
  * @param {ImageObject} image - The image object to apply.
@@ -3155,12 +3179,12 @@ const ub = (n, e, t) => {
3155
3179
  );
3156
3180
  });
3157
3181
  }, Rl = E({});
3158
- async function Id(n) {
3182
+ async function Nd(n) {
3159
3183
  try {
3160
3184
  const e = await ub(/* @__PURE__ */ Object.assign({ "../locales/ar.json": () => import("./ar-B67ZvnES.js"), "../locales/de.json": () => import("./de-2iNkasP-.js"), "../locales/en.json": () => import("./en-BkPMvlrf.js"), "../locales/es.json": () => import("./es-CoKtBPFg.js"), "../locales/fr.json": () => import("./fr-Bb-szPYF.js"), "../locales/hi.json": () => import("./hi-Z-tSAHna.js"), "../locales/ja.json": () => import("./ja-BsFKC04n.js"), "../locales/pt.json": () => import("./pt-CR27KWIb.js"), "../locales/ru.json": () => import("./ru-CVy3Csm4.js"), "../locales/zh-Hans.json": () => import("./zh-Hans-9bdCn2lI.js") }), `../locales/${n}.json`, 3);
3161
3185
  Rl.value = e.default;
3162
3186
  } catch (e) {
3163
- console.error(`Could not load translations for language: ${n}`, e), n !== "en" && await Id("en");
3187
+ console.error(`Could not load translations for language: ${n}`, e), n !== "en" && await Nd("en");
3164
3188
  }
3165
3189
  }
3166
3190
  function Me() {
@@ -3169,14 +3193,14 @@ function Me() {
3169
3193
  }
3170
3194
  return {
3171
3195
  translate: n,
3172
- loadTranslations: Id,
3173
- currentTranslations: Nh(Rl)
3196
+ loadTranslations: Nd,
3197
+ currentTranslations: Ih(Rl)
3174
3198
  };
3175
3199
  }
3176
3200
  const fb = { class: "pbx-flex pbx-flex-col pbx-items-center pbx-justify-center pbx-myPrimaryGap" }, hb = { class: "pbx-flex pbx-gap-2 pbx-items-center pbx-justify-center" }, bb = ["disabled"], mb = ["disabled"], xb = {
3177
3201
  __name: "ComponentTopMenu",
3178
3202
  setup(n) {
3179
- const { translate: e } = Me(), t = Ce(), r = E(!1), i = E(""), s = E(1), o = E(""), l = E(""), a = E(""), p = E(null), c = E(null), d = E(null), f = E(null), h = E(null), b = N(() => t.canMoveUp()), x = N(() => t.canMoveDown()), m = function() {
3203
+ const { translate: e } = Me(), t = Ce(), r = E(!1), i = E(""), s = E(1), o = E(""), l = E(""), a = E(""), p = E(null), c = E(null), d = E(null), f = E(null), h = E(null), b = I(() => t.canMoveUp()), x = I(() => t.canMoveDown()), m = function() {
3180
3204
  r.value = !0, i.value = "delete", s.value = 2, o.value = e("Remove Component?"), l.value = e("Are you sure you want to remove this Component?"), a.value = e("Close"), p.value = null, c.value = e("Delete"), d.value = function() {
3181
3205
  r.value = !1;
3182
3206
  }, h.value = async function() {
@@ -3337,7 +3361,7 @@ $e.from = function(n) {
3337
3361
  if (n) for (var t in n) e.push(t, n[t]);
3338
3362
  return new $e(e);
3339
3363
  };
3340
- function Nd(n, e, t) {
3364
+ function Id(n, e, t) {
3341
3365
  for (let r = 0; ; r++) {
3342
3366
  if (r == n.childCount || r == e.childCount)
3343
3367
  return n.childCount == e.childCount ? null : t;
@@ -3354,7 +3378,7 @@ function Nd(n, e, t) {
3354
3378
  return t;
3355
3379
  }
3356
3380
  if (i.content.size || s.content.size) {
3357
- let o = Nd(i.content, s.content, t + 1);
3381
+ let o = Id(i.content, s.content, t + 1);
3358
3382
  if (o != null)
3359
3383
  return o;
3360
3384
  }
@@ -3386,7 +3410,7 @@ function $d(n, e, t, r) {
3386
3410
  t -= a, r -= a;
3387
3411
  }
3388
3412
  }
3389
- class I {
3413
+ class N {
3390
3414
  /**
3391
3415
  @internal
3392
3416
  */
@@ -3441,7 +3465,7 @@ class I {
3441
3465
  let t = this.lastChild, r = e.firstChild, i = this.content.slice(), s = 0;
3442
3466
  for (t.isText && t.sameMarkup(r) && (i[i.length - 1] = t.withText(t.text + r.text), s = 1); s < e.content.length; s++)
3443
3467
  i.push(e.content[s]);
3444
- return new I(i, this.size + e.size);
3468
+ return new N(i, this.size + e.size);
3445
3469
  }
3446
3470
  /**
3447
3471
  Cut out the sub-fragment between the two given positions.
@@ -3455,13 +3479,13 @@ class I {
3455
3479
  let l = this.content[s], a = o + l.nodeSize;
3456
3480
  a > e && ((o < e || a > t) && (l.isText ? l = l.cut(Math.max(0, e - o), Math.min(l.text.length, t - o)) : l = l.cut(Math.max(0, e - o - 1), Math.min(l.content.size, t - o - 1))), r.push(l), i += l.nodeSize), o = a;
3457
3481
  }
3458
- return new I(r, i);
3482
+ return new N(r, i);
3459
3483
  }
3460
3484
  /**
3461
3485
  @internal
3462
3486
  */
3463
3487
  cutByIndex(e, t) {
3464
- return e == t ? I.empty : e == 0 && t == this.content.length ? this : new I(this.content.slice(e, t));
3488
+ return e == t ? N.empty : e == 0 && t == this.content.length ? this : new N(this.content.slice(e, t));
3465
3489
  }
3466
3490
  /**
3467
3491
  Create a new fragment in which the node at the given index is
@@ -3472,21 +3496,21 @@ class I {
3472
3496
  if (r == t)
3473
3497
  return this;
3474
3498
  let i = this.content.slice(), s = this.size + t.nodeSize - r.nodeSize;
3475
- return i[e] = t, new I(i, s);
3499
+ return i[e] = t, new N(i, s);
3476
3500
  }
3477
3501
  /**
3478
3502
  Create a new fragment by prepending the given node to this
3479
3503
  fragment.
3480
3504
  */
3481
3505
  addToStart(e) {
3482
- return new I([e].concat(this.content), this.size + e.nodeSize);
3506
+ return new N([e].concat(this.content), this.size + e.nodeSize);
3483
3507
  }
3484
3508
  /**
3485
3509
  Create a new fragment by appending the given node to this
3486
3510
  fragment.
3487
3511
  */
3488
3512
  addToEnd(e) {
3489
- return new I(this.content.concat(e), this.size + e.nodeSize);
3513
+ return new N(this.content.concat(e), this.size + e.nodeSize);
3490
3514
  }
3491
3515
  /**
3492
3516
  Compare this fragment to another one.
@@ -3548,7 +3572,7 @@ class I {
3548
3572
  fragment differ, or `null` if they are the same.
3549
3573
  */
3550
3574
  findDiffStart(e, t = 0) {
3551
- return Nd(this, e, t);
3575
+ return Id(this, e, t);
3552
3576
  }
3553
3577
  /**
3554
3578
  Find the first position, searching from the end, at which this
@@ -3601,10 +3625,10 @@ class I {
3601
3625
  */
3602
3626
  static fromJSON(e, t) {
3603
3627
  if (!t)
3604
- return I.empty;
3628
+ return N.empty;
3605
3629
  if (!Array.isArray(t))
3606
3630
  throw new RangeError("Invalid input for Fragment.fromJSON");
3607
- return new I(t.map(e.nodeFromJSON));
3631
+ return new N(t.map(e.nodeFromJSON));
3608
3632
  }
3609
3633
  /**
3610
3634
  Build a fragment from an array of nodes. Ensures that adjacent
@@ -3612,13 +3636,13 @@ class I {
3612
3636
  */
3613
3637
  static fromArray(e) {
3614
3638
  if (!e.length)
3615
- return I.empty;
3639
+ return N.empty;
3616
3640
  let t, r = 0;
3617
3641
  for (let i = 0; i < e.length; i++) {
3618
3642
  let s = e[i];
3619
3643
  r += s.nodeSize, i && s.isText && e[i - 1].sameMarkup(s) ? (t || (t = e.slice(0, i)), t[t.length - 1] = s.withText(t[t.length - 1].text + s.text)) : t && t.push(s);
3620
3644
  }
3621
- return new I(t || e, r);
3645
+ return new N(t || e, r);
3622
3646
  }
3623
3647
  /**
3624
3648
  Create a fragment from something that can be interpreted as a
@@ -3628,17 +3652,17 @@ class I {
3628
3652
  */
3629
3653
  static from(e) {
3630
3654
  if (!e)
3631
- return I.empty;
3632
- if (e instanceof I)
3655
+ return N.empty;
3656
+ if (e instanceof N)
3633
3657
  return e;
3634
3658
  if (Array.isArray(e))
3635
3659
  return this.fromArray(e);
3636
3660
  if (e.attrs)
3637
- return new I([e], e.nodeSize);
3661
+ return new N([e], e.nodeSize);
3638
3662
  throw new RangeError("Can not convert " + e + " to a Fragment" + (e.nodesBetween ? " (looks like multiple versions of prosemirror-model were loaded)" : ""));
3639
3663
  }
3640
3664
  }
3641
- I.empty = new I([], 0);
3665
+ N.empty = new N([], 0);
3642
3666
  const el = { index: 0, offset: 0 };
3643
3667
  function bs(n, e) {
3644
3668
  return el.index = n, el.offset = e, el;
@@ -3840,7 +3864,7 @@ class z {
3840
3864
  let r = t.openStart || 0, i = t.openEnd || 0;
3841
3865
  if (typeof r != "number" || typeof i != "number")
3842
3866
  throw new RangeError("Invalid input for Slice.fromJSON");
3843
- return new z(I.fromJSON(e, t.content), r, i);
3867
+ return new z(N.fromJSON(e, t.content), r, i);
3844
3868
  }
3845
3869
  /**
3846
3870
  Create a slice from a fragment by taking the maximum possible
@@ -3855,7 +3879,7 @@ class z {
3855
3879
  return new z(e, r, i);
3856
3880
  }
3857
3881
  }
3858
- z.empty = new z(I.empty, 0, 0);
3882
+ z.empty = new z(N.empty, 0, 0);
3859
3883
  function Rd(n, e, t) {
3860
3884
  let { index: r, offset: i } = n.findIndex(e), s = n.maybeChild(r), { index: o, offset: l } = n.findIndex(t);
3861
3885
  if (i == e || s.isText) {
@@ -3920,7 +3944,7 @@ function hr(n, e) {
3920
3944
  }
3921
3945
  function zd(n, e, t, r, i) {
3922
3946
  let s = n.depth > i && Fl(n, e, i + 1), o = r.depth > i && Fl(t, r, i + 1), l = [];
3923
- return vi(null, n, i, l), s && o && e.index(i) == t.index(i) ? (jd(s, o), fr(hr(s, zd(n, e, t, r, i + 1)), l)) : (s && fr(hr(s, Us(n, e, i + 1)), l), vi(e, t, i, l), o && fr(hr(o, Us(t, r, i + 1)), l)), vi(r, null, i, l), new I(l);
3947
+ return vi(null, n, i, l), s && o && e.index(i) == t.index(i) ? (jd(s, o), fr(hr(s, zd(n, e, t, r, i + 1)), l)) : (s && fr(hr(s, Us(n, e, i + 1)), l), vi(e, t, i, l), o && fr(hr(o, Us(t, r, i + 1)), l)), vi(r, null, i, l), new N(l);
3924
3948
  }
3925
3949
  function Us(n, e, t) {
3926
3950
  let r = [];
@@ -3928,18 +3952,18 @@ function Us(n, e, t) {
3928
3952
  let i = Fl(n, e, t + 1);
3929
3953
  fr(hr(i, Us(n, e, t + 1)), r);
3930
3954
  }
3931
- return vi(e, null, t, r), new I(r);
3955
+ return vi(e, null, t, r), new N(r);
3932
3956
  }
3933
3957
  function yb(n, e) {
3934
3958
  let t = e.depth - n.openStart, i = e.node(t).copy(n.content);
3935
3959
  for (let s = t - 1; s >= 0; s--)
3936
- i = e.node(s).copy(I.from(i));
3960
+ i = e.node(s).copy(N.from(i));
3937
3961
  return {
3938
3962
  start: i.resolveNoCache(n.openStart + t),
3939
3963
  end: i.resolveNoCache(i.content.size - n.openEnd - t)
3940
3964
  };
3941
3965
  }
3942
- class Ii {
3966
+ class Ni {
3943
3967
  /**
3944
3968
  @internal
3945
3969
  */
@@ -4167,7 +4191,7 @@ class Ii {
4167
4191
  break;
4168
4192
  s = p - 1, i += a + 1;
4169
4193
  }
4170
- return new Ii(t, r, s);
4194
+ return new Ni(t, r, s);
4171
4195
  }
4172
4196
  /**
4173
4197
  @internal
@@ -4182,7 +4206,7 @@ class Ii {
4182
4206
  }
4183
4207
  else
4184
4208
  Mp.set(e, r = new vb());
4185
- let i = r.elts[r.i] = Ii.resolve(e, t);
4209
+ let i = r.elts[r.i] = Ni.resolve(e, t);
4186
4210
  return r.i = (r.i + 1) % wb, i;
4187
4211
  }
4188
4212
  }
@@ -4238,7 +4262,7 @@ let Rn = class jl {
4238
4262
  @internal
4239
4263
  */
4240
4264
  constructor(e, t, r, i = me.none) {
4241
- this.type = e, this.attrs = t, this.marks = i, this.content = r || I.empty;
4265
+ this.type = e, this.attrs = t, this.marks = i, this.content = r || N.empty;
4242
4266
  }
4243
4267
  /**
4244
4268
  The array of this node's child nodes.
@@ -4437,13 +4461,13 @@ let Rn = class jl {
4437
4461
  [object](https://prosemirror.net/docs/ref/#model.ResolvedPos) with information about its context.
4438
4462
  */
4439
4463
  resolve(e) {
4440
- return Ii.resolveCached(this, e);
4464
+ return Ni.resolveCached(this, e);
4441
4465
  }
4442
4466
  /**
4443
4467
  @internal
4444
4468
  */
4445
4469
  resolveNoCache(e) {
4446
- return Ii.resolve(this, e);
4470
+ return Ni.resolve(this, e);
4447
4471
  }
4448
4472
  /**
4449
4473
  Test whether a given mark or mark type occurs in this document
@@ -4527,7 +4551,7 @@ let Rn = class jl {
4527
4551
  can optionally pass `start` and `end` indices into the
4528
4552
  replacement fragment.
4529
4553
  */
4530
- canReplace(e, t, r = I.empty, i = 0, s = r.childCount) {
4554
+ canReplace(e, t, r = N.empty, i = 0, s = r.childCount) {
4531
4555
  let o = this.contentMatchAt(e).matchFragment(r, i, s), l = o && o.matchFragment(this.content, t);
4532
4556
  if (!l || !l.validEnd)
4533
4557
  return !1;
@@ -4598,7 +4622,7 @@ let Rn = class jl {
4598
4622
  throw new RangeError("Invalid text node in JSON");
4599
4623
  return e.text(t.text, r);
4600
4624
  }
4601
- let i = I.fromJSON(e, t.content), s = e.nodeType(t.type).create(t.attrs, i, r);
4625
+ let i = N.fromJSON(e, t.content), s = e.nodeType(t.type).create(t.attrs, i, r);
4602
4626
  return s.type.checkAttrs(s.attrs), s;
4603
4627
  }
4604
4628
  };
@@ -4726,7 +4750,7 @@ class wr {
4726
4750
  function s(o, l) {
4727
4751
  let a = o.matchFragment(e, r);
4728
4752
  if (a && (!t || a.validEnd))
4729
- return I.from(l.map((p) => p.createAndFill()));
4753
+ return N.from(l.map((p) => p.createAndFill()));
4730
4754
  for (let p = 0; p < o.next.length; p++) {
4731
4755
  let { type: c, next: d } = o.next[p];
4732
4756
  if (!(c.isText || c.hasRequiredAttrs()) && i.indexOf(d) == -1) {
@@ -5109,7 +5133,7 @@ let Op = class Yd {
5109
5133
  create(e = null, t, r) {
5110
5134
  if (this.isText)
5111
5135
  throw new Error("NodeType.create can't construct text nodes");
5112
- return new Rn(this, this.computeAttrs(e), I.from(t), me.setFrom(r));
5136
+ return new Rn(this, this.computeAttrs(e), N.from(t), me.setFrom(r));
5113
5137
  }
5114
5138
  /**
5115
5139
  Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but check the given content
@@ -5117,7 +5141,7 @@ let Op = class Yd {
5117
5141
  if it doesn't match.
5118
5142
  */
5119
5143
  createChecked(e = null, t, r) {
5120
- return t = I.from(t), this.checkContent(t), new Rn(this, this.computeAttrs(e), t, me.setFrom(r));
5144
+ return t = N.from(t), this.checkContent(t), new Rn(this, this.computeAttrs(e), t, me.setFrom(r));
5121
5145
  }
5122
5146
  /**
5123
5147
  Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but see if it is
@@ -5128,13 +5152,13 @@ let Op = class Yd {
5128
5152
  `Fragment.empty` as content.
5129
5153
  */
5130
5154
  createAndFill(e = null, t, r) {
5131
- if (e = this.computeAttrs(e), t = I.from(t), t.size) {
5155
+ if (e = this.computeAttrs(e), t = N.from(t), t.size) {
5132
5156
  let o = this.contentMatch.fillBefore(t);
5133
5157
  if (!o)
5134
5158
  return null;
5135
5159
  t = o.append(t);
5136
5160
  }
5137
- let i = this.contentMatch.matchFragment(t), s = i && i.fillBefore(I.empty, !0);
5161
+ let i = this.contentMatch.matchFragment(t), s = i && i.fillBefore(N.empty, !0);
5138
5162
  return s ? new Rn(this, e, t.append(s), me.setFrom(r)) : null;
5139
5163
  }
5140
5164
  /**
@@ -5382,7 +5406,7 @@ function Bp(n, e) {
5382
5406
  function Db(n) {
5383
5407
  return n.tag != null;
5384
5408
  }
5385
- function Ib(n) {
5409
+ function Nb(n) {
5386
5410
  return n.style != null;
5387
5411
  }
5388
5412
  let wi = class zl {
@@ -5396,7 +5420,7 @@ let wi = class zl {
5396
5420
  t.forEach((i) => {
5397
5421
  if (Db(i))
5398
5422
  this.tags.push(i);
5399
- else if (Ib(i)) {
5423
+ else if (Nb(i)) {
5400
5424
  let s = /[^=]*/.exec(i.style)[0];
5401
5425
  r.indexOf(s) < 0 && r.push(s), this.styles.push(i);
5402
5426
  }
@@ -5533,16 +5557,16 @@ const Xd = {
5533
5557
  table: !0,
5534
5558
  tfoot: !0,
5535
5559
  ul: !0
5536
- }, Nb = {
5560
+ }, Ib = {
5537
5561
  head: !0,
5538
5562
  noscript: !0,
5539
5563
  object: !0,
5540
5564
  script: !0,
5541
5565
  style: !0,
5542
5566
  title: !0
5543
- }, Zd = { ol: !0, ul: !0 }, Ni = 1, Vl = 2, Si = 4;
5567
+ }, Zd = { ol: !0, ul: !0 }, Ii = 1, Vl = 2, Si = 4;
5544
5568
  function Pp(n, e, t) {
5545
- return e != null ? (e ? Ni : 0) | (e === "full" ? Vl : 0) : n && n.whitespace == "pre" ? Ni | Vl : t & ~Si;
5569
+ return e != null ? (e ? Ii : 0) | (e === "full" ? Vl : 0) : n && n.whitespace == "pre" ? Ii | Vl : t & ~Si;
5546
5570
  }
5547
5571
  class ms {
5548
5572
  constructor(e, t, r, i, s, o) {
@@ -5552,7 +5576,7 @@ class ms {
5552
5576
  if (!this.match) {
5553
5577
  if (!this.type)
5554
5578
  return [];
5555
- let t = this.type.contentMatch.fillBefore(I.from(e));
5579
+ let t = this.type.contentMatch.fillBefore(N.from(e));
5556
5580
  if (t)
5557
5581
  this.match = this.type.contentMatch.matchFragment(t);
5558
5582
  else {
@@ -5563,15 +5587,15 @@ class ms {
5563
5587
  return this.match.findWrapping(e.type);
5564
5588
  }
5565
5589
  finish(e) {
5566
- if (!(this.options & Ni)) {
5590
+ if (!(this.options & Ii)) {
5567
5591
  let r = this.content[this.content.length - 1], i;
5568
5592
  if (r && r.isText && (i = /[ \t\r\n\u000c]+$/.exec(r.text))) {
5569
5593
  let s = r;
5570
5594
  r.text.length == i[0].length ? this.content.pop() : this.content[this.content.length - 1] = s.withText(s.text.slice(0, s.text.length - i[0].length));
5571
5595
  }
5572
5596
  }
5573
- let t = I.from(this.content);
5574
- return !e && this.match && (t = t.append(this.match.fillBefore(I.empty, !0))), this.type ? this.type.create(this.attrs, t, this.marks) : t;
5597
+ let t = N.from(this.content);
5598
+ return !e && this.match && (t = t.append(this.match.fillBefore(N.empty, !0))), this.type ? this.type.create(this.attrs, t, this.marks) : t;
5575
5599
  }
5576
5600
  inlineContext(e) {
5577
5601
  return this.type ? this.type.inlineContent : this.content.length ? this.content[0].isInline : e.parentNode && !Xd.hasOwnProperty(e.parentNode.nodeName.toLowerCase());
@@ -5593,7 +5617,7 @@ class Ap {
5593
5617
  e.nodeType == 3 ? this.addTextNode(e, t) : e.nodeType == 1 && this.addElement(e, t);
5594
5618
  }
5595
5619
  addTextNode(e, t) {
5596
- let r = e.nodeValue, i = this.top, s = i.options & Vl ? "full" : this.localPreserveWS || (i.options & Ni) > 0;
5620
+ let r = e.nodeValue, i = this.top, s = i.options & Vl ? "full" : this.localPreserveWS || (i.options & Ii) > 0;
5597
5621
  if (s === "full" || i.inlineContext(e) || /[^ \t\r\n\u000c]/.test(r)) {
5598
5622
  if (s)
5599
5623
  s !== "full" ? r = r.replace(/\r?\n|\r/g, " ") : r = r.replace(/\r\n?/g, `
@@ -5614,7 +5638,7 @@ class Ap {
5614
5638
  let o = e.nodeName.toLowerCase(), l;
5615
5639
  Zd.hasOwnProperty(o) && this.parser.normalizeLists && $b(e);
5616
5640
  let a = this.options.ruleFromNode && this.options.ruleFromNode(e) || (l = this.parser.matchTag(e, this, r));
5617
- e: if (a ? a.ignore : Nb.hasOwnProperty(o))
5641
+ e: if (a ? a.ignore : Ib.hasOwnProperty(o))
5618
5642
  this.findInside(e), this.ignoreFallback(e, t);
5619
5643
  else if (!a || a.skip || a.closeParent) {
5620
5644
  a && a.closeParent ? this.open = Math.max(0, this.open - 1) : a && a.skip.nodeType && (e = a.skip);
@@ -5776,7 +5800,7 @@ class Ap {
5776
5800
  for (let t = this.open; t >= 0; t--) {
5777
5801
  if (this.nodes[t] == e)
5778
5802
  return this.open = t, !0;
5779
- this.localPreserveWS && (this.nodes[t].options |= Ni);
5803
+ this.localPreserveWS && (this.nodes[t].options |= Ii);
5780
5804
  }
5781
5805
  return !1;
5782
5806
  }
@@ -5999,10 +6023,10 @@ function Dp(n) {
5999
6023
  function tl(n) {
6000
6024
  return n.document || window.document;
6001
6025
  }
6002
- const Ip = /* @__PURE__ */ new WeakMap();
6026
+ const Np = /* @__PURE__ */ new WeakMap();
6003
6027
  function Hb(n) {
6004
- let e = Ip.get(n);
6005
- return e === void 0 && Ip.set(n, e = Fb(n)), e;
6028
+ let e = Np.get(n);
6029
+ return e === void 0 && Np.set(n, e = Fb(n)), e;
6006
6030
  }
6007
6031
  function Fb(n) {
6008
6032
  let e = null;
@@ -6064,7 +6088,7 @@ const eu = 65535, tu = Math.pow(2, 16);
6064
6088
  function jb(n, e) {
6065
6089
  return n + e * tu;
6066
6090
  }
6067
- function Np(n) {
6091
+ function Ip(n) {
6068
6092
  return n & eu;
6069
6093
  }
6070
6094
  function zb(n) {
@@ -6121,7 +6145,7 @@ class lt {
6121
6145
  @internal
6122
6146
  */
6123
6147
  recover(e) {
6124
- let t = 0, r = Np(e);
6148
+ let t = 0, r = Ip(e);
6125
6149
  if (!this.inverted)
6126
6150
  for (let i = 0; i < r; i++)
6127
6151
  t += this.ranges[i * 3 + 2] - this.ranges[i * 3 + 1];
@@ -6158,7 +6182,7 @@ class lt {
6158
6182
  @internal
6159
6183
  */
6160
6184
  touches(e, t) {
6161
- let r = 0, i = Np(t), s = this.inverted ? 2 : 1, o = this.inverted ? 1 : 2;
6185
+ let r = 0, i = Ip(t), s = this.inverted ? 2 : 1, o = this.inverted ? 1 : 2;
6162
6186
  for (let l = 0; l < this.ranges.length; l += 3) {
6163
6187
  let a = this.ranges[l] - (this.inverted ? r : 0);
6164
6188
  if (a > e)
@@ -6393,7 +6417,7 @@ function Ma(n, e, t) {
6393
6417
  let s = n.child(i);
6394
6418
  s.content.size && (s = s.copy(Ma(s.content, e, s))), s.isInline && (s = e(s, t, i)), r.push(s);
6395
6419
  }
6396
- return I.fromArray(r);
6420
+ return N.fromArray(r);
6397
6421
  }
6398
6422
  class Ln extends Ke {
6399
6423
  /**
@@ -6485,7 +6509,7 @@ class Dn extends Ke {
6485
6509
  if (!t)
6486
6510
  return Ee.fail("No node at mark step's position");
6487
6511
  let r = t.type.create(t.attrs, null, this.mark.addToSet(t.marks));
6488
- return Ee.fromReplace(e, this.pos, this.pos + 1, new z(I.from(r), 0, t.isLeaf ? 0 : 1));
6512
+ return Ee.fromReplace(e, this.pos, this.pos + 1, new z(N.from(r), 0, t.isLeaf ? 0 : 1));
6489
6513
  }
6490
6514
  invert(e) {
6491
6515
  let t = e.nodeAt(this.pos);
@@ -6529,7 +6553,7 @@ class Sr extends Ke {
6529
6553
  if (!t)
6530
6554
  return Ee.fail("No node at mark step's position");
6531
6555
  let r = t.type.create(t.attrs, null, this.mark.removeFromSet(t.marks));
6532
- return Ee.fromReplace(e, this.pos, this.pos + 1, new z(I.from(r), 0, t.isLeaf ? 0 : 1));
6556
+ return Ee.fromReplace(e, this.pos, this.pos + 1, new z(N.from(r), 0, t.isLeaf ? 0 : 1));
6533
6557
  }
6534
6558
  invert(e) {
6535
6559
  let t = e.nodeAt(this.pos);
@@ -6728,13 +6752,13 @@ function Ea(n, e, t, r = t.contentMatch, i = !0) {
6728
6752
  if (i && p.isText && t.whitespace != "pre") {
6729
6753
  let f, h = /\r?\n|\r/g, b;
6730
6754
  for (; f = h.exec(p.text); )
6731
- b || (b = new z(I.from(t.schema.text(" ", t.allowedMarks(p.marks))), 0, 0)), o.push(new _e(l + f.index, l + f.index + f[0].length, b));
6755
+ b || (b = new z(N.from(t.schema.text(" ", t.allowedMarks(p.marks))), 0, 0)), o.push(new _e(l + f.index, l + f.index + f[0].length, b));
6732
6756
  }
6733
6757
  }
6734
6758
  l = c;
6735
6759
  }
6736
6760
  if (!r.validEnd) {
6737
- let a = r.fillBefore(I.empty, !0);
6761
+ let a = r.fillBefore(N.empty, !0);
6738
6762
  n.replace(l, l, new z(a, 0, 0));
6739
6763
  }
6740
6764
  for (let a = o.length - 1; a >= 0; a--)
@@ -6755,12 +6779,12 @@ function oi(n) {
6755
6779
  return null;
6756
6780
  }
6757
6781
  function Wb(n, e, t) {
6758
- let { $from: r, $to: i, depth: s } = e, o = r.before(s + 1), l = i.after(s + 1), a = o, p = l, c = I.empty, d = 0;
6782
+ let { $from: r, $to: i, depth: s } = e, o = r.before(s + 1), l = i.after(s + 1), a = o, p = l, c = N.empty, d = 0;
6759
6783
  for (let b = s, x = !1; b > t; b--)
6760
- x || r.index(b) > 0 ? (x = !0, c = I.from(r.node(b).copy(c)), d++) : a--;
6761
- let f = I.empty, h = 0;
6784
+ x || r.index(b) > 0 ? (x = !0, c = N.from(r.node(b).copy(c)), d++) : a--;
6785
+ let f = N.empty, h = 0;
6762
6786
  for (let b = s, x = !1; b > t; b--)
6763
- x || i.after(b + 1) < i.end(b) ? (x = !0, f = I.from(i.node(b).copy(f)), h++) : p++;
6787
+ x || i.after(b + 1) < i.end(b) ? (x = !0, f = N.from(i.node(b).copy(f)), h++) : p++;
6764
6788
  n.step(new Le(a, p, o, l, new z(c.append(f), d, h), c.size - d, !0));
6765
6789
  }
6766
6790
  function Ta(n, e, t = null, r = n) {
@@ -6787,14 +6811,14 @@ function Gb(n, e) {
6787
6811
  return !a || !a.validEnd ? null : o;
6788
6812
  }
6789
6813
  function Jb(n, e, t) {
6790
- let r = I.empty;
6814
+ let r = N.empty;
6791
6815
  for (let o = t.length - 1; o >= 0; o--) {
6792
6816
  if (r.size) {
6793
6817
  let l = t[o].type.contentMatch.matchFragment(r);
6794
6818
  if (!l || !l.validEnd)
6795
6819
  throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper");
6796
6820
  }
6797
- r = I.from(t[o].type.create(t[o].attrs, r));
6821
+ r = N.from(t[o].type.create(t[o].attrs, r));
6798
6822
  }
6799
6823
  let i = e.start, s = e.end;
6800
6824
  n.step(new Le(i, s, i, s, new z(r, 0, 0), t.length, !0));
@@ -6813,7 +6837,7 @@ function Yb(n, e, t, r, i) {
6813
6837
  }
6814
6838
  p === !1 && ou(n, o, l, s), Ea(n, n.mapping.slice(s).map(l, 1), r, void 0, p === null);
6815
6839
  let c = n.mapping.slice(s), d = c.map(l, 1), f = c.map(l + o.nodeSize, 1);
6816
- return n.step(new Le(d, f, d + 1, f - 1, new z(I.from(r.create(a, null, o.marks)), 0, 0), 1, !0)), p === !0 && su(n, o, l, s), !1;
6840
+ return n.step(new Le(d, f, d + 1, f - 1, new z(N.from(r.create(a, null, o.marks)), 0, 0), 1, !0)), p === !0 && su(n, o, l, s), !1;
6817
6841
  }
6818
6842
  });
6819
6843
  }
@@ -6851,7 +6875,7 @@ function Xb(n, e, t, r, i) {
6851
6875
  return n.replaceWith(e, e + s.nodeSize, o);
6852
6876
  if (!t.validContent(s.content))
6853
6877
  throw new RangeError("Invalid content for node type " + t.name);
6854
- n.step(new Le(e, e + s.nodeSize, e + 1, e + s.nodeSize - 1, new z(I.from(o), 0, 0), 1, !0));
6878
+ n.step(new Le(e, e + s.nodeSize, e + 1, e + s.nodeSize - 1, new z(N.from(o), 0, 0), 1, !0));
6855
6879
  }
6856
6880
  function pn(n, e, t = 1, r) {
6857
6881
  let i = n.resolve(e), s = i.depth - t, o = r && r[r.length - 1] || i.parent;
@@ -6871,11 +6895,11 @@ function pn(n, e, t = 1, r) {
6871
6895
  return i.node(s).canReplaceWith(l, l, a ? a.type : i.node(s + 1).type);
6872
6896
  }
6873
6897
  function Zb(n, e, t = 1, r) {
6874
- let i = n.doc.resolve(e), s = I.empty, o = I.empty;
6898
+ let i = n.doc.resolve(e), s = N.empty, o = N.empty;
6875
6899
  for (let l = i.depth, a = i.depth - t, p = t - 1; l > a; l--, p--) {
6876
- s = I.from(i.node(l).copy(s));
6900
+ s = N.from(i.node(l).copy(s));
6877
6901
  let c = r && r[p];
6878
- o = I.from(c ? c.type.create(c.attrs, o) : i.node(l).copy(o));
6902
+ o = N.from(c ? c.type.create(c.attrs, o) : i.node(l).copy(o));
6879
6903
  }
6880
6904
  n.step(new _e(e, e, new z(s.append(o), t, t), !0));
6881
6905
  }
@@ -6896,7 +6920,7 @@ function em(n, e) {
6896
6920
  function lu(n, e) {
6897
6921
  return !!(n && e && !n.isLeaf && em(n, e));
6898
6922
  }
6899
- function Io(n, e, t = -1) {
6923
+ function No(n, e, t = -1) {
6900
6924
  let r = n.resolve(e);
6901
6925
  for (let i = r.depth; ; i--) {
6902
6926
  let s, o, l = r.index(i);
@@ -6969,7 +6993,7 @@ function au(n, e, t) {
6969
6993
  }
6970
6994
  return null;
6971
6995
  }
6972
- function No(n, e, t = e, r = z.empty) {
6996
+ function Io(n, e, t = e, r = z.empty) {
6973
6997
  if (e == t && !r.size)
6974
6998
  return null;
6975
6999
  let i = n.resolve(e), s = n.resolve(t);
@@ -6980,7 +7004,7 @@ function pu(n, e, t) {
6980
7004
  }
6981
7005
  class rm {
6982
7006
  constructor(e, t, r) {
6983
- this.$from = e, this.$to = t, this.unplaced = r, this.frontier = [], this.placed = I.empty;
7007
+ this.$from = e, this.$to = t, this.unplaced = r, this.frontier = [], this.placed = N.empty;
6984
7008
  for (let i = 0; i <= e.depth; i++) {
6985
7009
  let s = e.node(i);
6986
7010
  this.frontier.push({
@@ -6989,7 +7013,7 @@ class rm {
6989
7013
  });
6990
7014
  }
6991
7015
  for (let i = e.depth; i > 0; i--)
6992
- this.placed = I.from(e.node(i).copy(this.placed));
7016
+ this.placed = N.from(e.node(i).copy(this.placed));
6993
7017
  }
6994
7018
  get depth() {
6995
7019
  return this.frontier.length - 1;
@@ -7028,7 +7052,7 @@ class rm {
7028
7052
  let o = i.firstChild;
7029
7053
  for (let l = this.depth; l >= 0; l--) {
7030
7054
  let { type: a, match: p } = this.frontier[l], c, d = null;
7031
- if (t == 1 && (o ? p.matchType(o.type) || (d = p.fillBefore(I.from(o), !1)) : s && a.compatibleContent(s.type)))
7055
+ if (t == 1 && (o ? p.matchType(o.type) || (d = p.fillBefore(N.from(o), !1)) : s && a.compatibleContent(s.type)))
7032
7056
  return { sliceDepth: r, frontierDepth: l, parent: s, inject: d };
7033
7057
  if (t == 2 && o && (c = p.findWrapping(o.type)))
7034
7058
  return { sliceDepth: r, frontierDepth: l, parent: s, wrap: c };
@@ -7072,7 +7096,7 @@ class rm {
7072
7096
  p++, (p > 1 || a == 0 || x.content.size) && (d = m, c.push(cu(x.mark(f.allowedMarks(x.marks)), p == 1 ? a : 0, p == l.childCount ? h : -1)));
7073
7097
  }
7074
7098
  let b = p == l.childCount;
7075
- b || (h = -1), this.placed = mi(this.placed, t, I.from(c)), this.frontier[t].match = d, b && h < 0 && r && r.type == this.frontier[this.depth].type && this.frontier.length > 1 && this.closeFrontierNode();
7099
+ b || (h = -1), this.placed = mi(this.placed, t, N.from(c)), this.frontier[t].match = d, b && h < 0 && r && r.type == this.frontier[this.depth].type && this.frontier.length > 1 && this.closeFrontierNode();
7076
7100
  for (let x = 0, m = l; x < h; x++) {
7077
7101
  let v = m.lastChild;
7078
7102
  this.frontier.push({ type: v.type, match: v.contentMatchAt(v.childCount) }), m = v.content;
@@ -7118,10 +7142,10 @@ class rm {
7118
7142
  }
7119
7143
  openFrontierNode(e, t = null, r) {
7120
7144
  let i = this.frontier[this.depth];
7121
- i.match = i.match.matchType(e), this.placed = mi(this.placed, this.depth, I.from(e.create(t, r))), this.frontier.push({ type: e, match: e.contentMatch });
7145
+ i.match = i.match.matchType(e), this.placed = mi(this.placed, this.depth, N.from(e.create(t, r))), this.frontier.push({ type: e, match: e.contentMatch });
7122
7146
  }
7123
7147
  closeFrontierNode() {
7124
- let t = this.frontier.pop().match.fillBefore(I.empty, !0);
7148
+ let t = this.frontier.pop().match.fillBefore(N.empty, !0);
7125
7149
  t.childCount && (this.placed = mi(this.placed, this.frontier.length, t));
7126
7150
  }
7127
7151
  }
@@ -7140,7 +7164,7 @@ function cu(n, e, t) {
7140
7164
  if (e <= 0)
7141
7165
  return n;
7142
7166
  let r = n.content;
7143
- return e > 1 && (r = r.replaceChild(0, cu(r.firstChild, e - 1, r.childCount == 1 ? t - 1 : 0))), e > 0 && (r = n.type.contentMatch.fillBefore(r).append(r), t <= 0 && (r = r.append(n.type.contentMatch.matchFragment(r).fillBefore(I.empty, !0)))), n.copy(r);
7167
+ return e > 1 && (r = r.replaceChild(0, cu(r.firstChild, e - 1, r.childCount == 1 ? t - 1 : 0))), e > 0 && (r = n.type.contentMatch.fillBefore(r).append(r), t <= 0 && (r = r.append(n.type.contentMatch.matchFragment(r).fillBefore(N.empty, !0)))), n.copy(r);
7144
7168
  }
7145
7169
  function il(n, e, t, r, i) {
7146
7170
  let s = n.node(e), o = i ? n.indexAfter(e) : n.index(e);
@@ -7212,7 +7236,7 @@ function du(n, e, t, r, i) {
7212
7236
  }
7213
7237
  if (e > r) {
7214
7238
  let s = i.contentMatchAt(0), o = s.fillBefore(n).append(n);
7215
- n = o.append(s.matchFragment(o).fillBefore(I.empty, !0));
7239
+ n = o.append(s.matchFragment(o).fillBefore(N.empty, !0));
7216
7240
  }
7217
7241
  return n;
7218
7242
  }
@@ -7221,7 +7245,7 @@ function lm(n, e, t, r) {
7221
7245
  let i = nm(n.doc, e, r.type);
7222
7246
  i != null && (e = t = i);
7223
7247
  }
7224
- n.replaceRange(e, t, new z(I.from(r), 0, 0));
7248
+ n.replaceRange(e, t, new z(N.from(r), 0, 0));
7225
7249
  }
7226
7250
  function am(n, e, t) {
7227
7251
  let r = n.doc.resolve(e), i = n.doc.resolve(t), s = uu(r, i);
@@ -7263,7 +7287,7 @@ class Wr extends Ke {
7263
7287
  r[s] = t.attrs[s];
7264
7288
  r[this.attr] = this.value;
7265
7289
  let i = t.type.create(r, null, t.marks);
7266
- return Ee.fromReplace(e, this.pos, this.pos + 1, new z(I.from(i), 0, t.isLeaf ? 0 : 1));
7290
+ return Ee.fromReplace(e, this.pos, this.pos + 1, new z(N.from(i), 0, t.isLeaf ? 0 : 1));
7267
7291
  }
7268
7292
  getMap() {
7269
7293
  return lt.empty;
@@ -7377,7 +7401,7 @@ class fu {
7377
7401
  given `slice`.
7378
7402
  */
7379
7403
  replace(e, t = e, r = z.empty) {
7380
- let i = No(this.doc, e, t, r);
7404
+ let i = Io(this.doc, e, t, r);
7381
7405
  return i && this.step(i), this;
7382
7406
  }
7383
7407
  /**
@@ -7385,7 +7409,7 @@ class fu {
7385
7409
  fragment, node, or array of nodes.
7386
7410
  */
7387
7411
  replaceWith(e, t, r) {
7388
- return this.replace(e, t, new z(I.from(r), 0, 0));
7412
+ return this.replace(e, t, new z(N.from(r), 0, 0));
7389
7413
  }
7390
7414
  /**
7391
7415
  Delete the content between the given positions.
@@ -7648,11 +7672,11 @@ class te {
7648
7672
  found.
7649
7673
  */
7650
7674
  static findFrom(e, t, r = !1) {
7651
- let i = e.parent.inlineContent ? new Z(e) : Nr(e.node(0), e.parent, e.pos, e.index(), t, r);
7675
+ let i = e.parent.inlineContent ? new Z(e) : Ir(e.node(0), e.parent, e.pos, e.index(), t, r);
7652
7676
  if (i)
7653
7677
  return i;
7654
7678
  for (let s = e.depth - 1; s >= 0; s--) {
7655
- let o = t < 0 ? Nr(e.node(0), e.node(s), e.before(s + 1), e.index(s), t, r) : Nr(e.node(0), e.node(s), e.after(s + 1), e.index(s) + 1, t, r);
7679
+ let o = t < 0 ? Ir(e.node(0), e.node(s), e.before(s + 1), e.index(s), t, r) : Ir(e.node(0), e.node(s), e.after(s + 1), e.index(s) + 1, t, r);
7656
7680
  if (o)
7657
7681
  return o;
7658
7682
  }
@@ -7673,14 +7697,14 @@ class te {
7673
7697
  exists.
7674
7698
  */
7675
7699
  static atStart(e) {
7676
- return Nr(e, e, 0, 0, 1) || new pt(e);
7700
+ return Ir(e, e, 0, 0, 1) || new pt(e);
7677
7701
  }
7678
7702
  /**
7679
7703
  Find the cursor or leaf node selection closest to the end of the
7680
7704
  given document.
7681
7705
  */
7682
7706
  static atEnd(e) {
7683
- return Nr(e, e, e.content.size, e.childCount, -1) || new pt(e);
7707
+ return Ir(e, e, e.content.size, e.childCount, -1) || new pt(e);
7684
7708
  }
7685
7709
  /**
7686
7710
  Deserialize the JSON representation of a selection. Must be
@@ -7828,7 +7852,7 @@ class J extends te {
7828
7852
  return r ? te.near(s) : new J(s);
7829
7853
  }
7830
7854
  content() {
7831
- return new z(I.from(this.node), 0, 0);
7855
+ return new z(N.from(this.node), 0, 0);
7832
7856
  }
7833
7857
  eq(e) {
7834
7858
  return e instanceof J && e.anchor == this.anchor;
@@ -7919,7 +7943,7 @@ const cm = {
7919
7943
  return new pt(n);
7920
7944
  }
7921
7945
  };
7922
- function Nr(n, e, t, r, i, s = !1) {
7946
+ function Ir(n, e, t, r, i, s = !1) {
7923
7947
  if (e.inlineContent)
7924
7948
  return Z.create(n, t);
7925
7949
  for (let o = r - (i > 0 ? 0 : 1); i > 0 ? o < e.childCount : o >= 0; o += i) {
@@ -7928,7 +7952,7 @@ function Nr(n, e, t, r, i, s = !1) {
7928
7952
  if (!s && J.isSelectable(l))
7929
7953
  return J.create(n, t - (i < 0 ? l.nodeSize : 0));
7930
7954
  } else {
7931
- let a = Nr(n, l, t + i, i < 0 ? l.childCount : 0, i, s);
7955
+ let a = Ir(n, l, t + i, i < 0 ? l.childCount : 0, i, s);
7932
7956
  if (a)
7933
7957
  return a;
7934
7958
  }
@@ -8791,7 +8815,7 @@ function Lm(n, e, t) {
8791
8815
  });
8792
8816
  }
8793
8817
  const Dm = /[\u0590-\u08ac]/;
8794
- function Im(n, e, t) {
8818
+ function Nm(n, e, t) {
8795
8819
  let { $head: r } = e.selection;
8796
8820
  if (!r.parent.isTextblock)
8797
8821
  return !1;
@@ -8808,8 +8832,8 @@ function Im(n, e, t) {
8808
8832
  }) : r.pos == r.start() || r.pos == r.end();
8809
8833
  }
8810
8834
  let Gp = null, Jp = null, Yp = !1;
8811
- function Nm(n, e, t) {
8812
- return Gp == e && Jp == t ? Yp : (Gp = e, Jp = t, Yp = t == "up" || t == "down" ? Lm(n, e, t) : Im(n, e, t));
8835
+ function Im(n, e, t) {
8836
+ return Gp == e && Jp == t ? Yp : (Gp = e, Jp = t, Yp = t == "up" || t == "down" ? Lm(n, e, t) : Nm(n, e, t));
8813
8837
  }
8814
8838
  const wt = 0, Qp = 1, cr = 2, Kt = 3;
8815
8839
  class ts {
@@ -9298,7 +9322,7 @@ class Fn extends ts {
9298
9322
  break;
9299
9323
  }
9300
9324
  }
9301
- e.contentElement || (e.getContent = () => I.empty);
9325
+ e.contentElement || (e.getContent = () => N.empty);
9302
9326
  }
9303
9327
  return e;
9304
9328
  }
@@ -10245,7 +10269,7 @@ function Lu(n, e, t, r, i) {
10245
10269
  if (n.someProp("transformPastedText", (f) => {
10246
10270
  e = f(e, s || r, n);
10247
10271
  }), s)
10248
- return e ? new z(I.from(n.state.schema.text(e.replace(/\r\n?/g, `
10272
+ return e ? new z(N.from(n.state.schema.text(e.replace(/\r\n?/g, `
10249
10273
  `))), 0, 0) : z.empty;
10250
10274
  let d = n.someProp("clipboardTextParser", (f) => f(e, i, r, n));
10251
10275
  if (d)
@@ -10303,41 +10327,41 @@ function rx(n, e) {
10303
10327
  let a = i.findWrapping(l.type), p;
10304
10328
  if (!a)
10305
10329
  return o = null;
10306
- if (p = o.length && s.length && Iu(a, s, l, o[o.length - 1], 0))
10330
+ if (p = o.length && s.length && Nu(a, s, l, o[o.length - 1], 0))
10307
10331
  o[o.length - 1] = p;
10308
10332
  else {
10309
- o.length && (o[o.length - 1] = Nu(o[o.length - 1], s.length));
10333
+ o.length && (o[o.length - 1] = Iu(o[o.length - 1], s.length));
10310
10334
  let c = Du(l, a);
10311
10335
  o.push(c), i = i.matchType(c.type), s = a;
10312
10336
  }
10313
10337
  }), o)
10314
- return I.from(o);
10338
+ return N.from(o);
10315
10339
  }
10316
10340
  return n;
10317
10341
  }
10318
10342
  function Du(n, e, t = 0) {
10319
10343
  for (let r = e.length - 1; r >= t; r--)
10320
- n = e[r].create(null, I.from(n));
10344
+ n = e[r].create(null, N.from(n));
10321
10345
  return n;
10322
10346
  }
10323
- function Iu(n, e, t, r, i) {
10347
+ function Nu(n, e, t, r, i) {
10324
10348
  if (i < n.length && i < e.length && n[i] == e[i]) {
10325
- let s = Iu(n, e, t, r.lastChild, i + 1);
10349
+ let s = Nu(n, e, t, r.lastChild, i + 1);
10326
10350
  if (s)
10327
10351
  return r.copy(r.content.replaceChild(r.childCount - 1, s));
10328
10352
  if (r.contentMatchAt(r.childCount).matchType(i == n.length - 1 ? t.type : n[i + 1]))
10329
- return r.copy(r.content.append(I.from(Du(t, n, i + 1))));
10353
+ return r.copy(r.content.append(N.from(Du(t, n, i + 1))));
10330
10354
  }
10331
10355
  }
10332
- function Nu(n, e) {
10356
+ function Iu(n, e) {
10333
10357
  if (e == 0)
10334
10358
  return n;
10335
- let t = n.content.replaceChild(n.childCount - 1, Nu(n.lastChild, e - 1)), r = n.contentMatchAt(n.childCount).fillBefore(I.empty, !0);
10359
+ let t = n.content.replaceChild(n.childCount - 1, Iu(n.lastChild, e - 1)), r = n.contentMatchAt(n.childCount).fillBefore(N.empty, !0);
10336
10360
  return n.copy(t.append(r));
10337
10361
  }
10338
10362
  function ea(n, e, t, r, i, s) {
10339
10363
  let o = e < 0 ? n.firstChild : n.lastChild, l = o.content;
10340
- return n.childCount > 1 && (s = 0), i < r - 1 && (l = ea(l, e, t, r, i + 1, s)), i >= t && (l = e < 0 ? o.contentMatchAt(0).fillBefore(l, s <= i).append(l) : l.append(o.contentMatchAt(o.childCount).fillBefore(I.empty, !0))), n.replaceChild(e < 0 ? 0 : n.childCount - 1, o.copy(l));
10364
+ return n.childCount > 1 && (s = 0), i < r - 1 && (l = ea(l, e, t, r, i + 1, s)), i >= t && (l = e < 0 ? o.contentMatchAt(0).fillBefore(l, s <= i).append(l) : l.append(o.contentMatchAt(o.childCount).fillBefore(N.empty, !0))), n.replaceChild(e < 0 ? 0 : n.childCount - 1, o.copy(l));
10341
10365
  }
10342
10366
  function cc(n, e, t) {
10343
10367
  return e < n.openStart && (n = new z(ea(n.content, -1, e, n.openStart, 0, n.openEnd), e, n.openEnd)), t < n.openEnd && (n = new z(ea(n.content, 1, t, n.openEnd, 0, 0), n.openStart, t)), n;
@@ -10392,7 +10416,7 @@ function lx(n, e) {
10392
10416
  let a = t.nodes[r[l]];
10393
10417
  if (!a || a.hasRequiredAttrs())
10394
10418
  break;
10395
- i = I.from(a.create(r[l + 1], i)), s++, o++;
10419
+ i = N.from(a.create(r[l + 1], i)), s++, o++;
10396
10420
  }
10397
10421
  return new z(i, s, o);
10398
10422
  }
@@ -10411,7 +10435,7 @@ function cx(n) {
10411
10435
  }
10412
10436
  Je && n.dom.addEventListener("input", () => null), ta(n);
10413
10437
  }
10414
- function In(n, e) {
10438
+ function Nn(n, e) {
10415
10439
  n.input.lastSelectionOrigin = e, n.input.lastSelectionTime = Date.now();
10416
10440
  }
10417
10441
  function dx(n) {
@@ -10453,7 +10477,7 @@ Qe.keydown = (n, e) => {
10453
10477
  n.input.lastIOSEnter = r, n.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
10454
10478
  n.input.lastIOSEnter == r && (n.someProp("handleKeyDown", (i) => i(n, lr(13, "Enter"))), n.input.lastIOSEnter = 0);
10455
10479
  }, 200);
10456
- } else n.someProp("handleKeyDown", (r) => r(n, t)) || tx(n, t) ? t.preventDefault() : In(n, "key");
10480
+ } else n.someProp("handleKeyDown", (r) => r(n, t)) || tx(n, t) ? t.preventDefault() : Nn(n, "key");
10457
10481
  };
10458
10482
  Qe.keyup = (n, e) => {
10459
10483
  e.keyCode == 16 && (n.input.shiftKey = !1);
@@ -10542,17 +10566,17 @@ function vx(n, e, t) {
10542
10566
  return !0;
10543
10567
  }
10544
10568
  }
10545
- function Ia(n) {
10569
+ function Na(n) {
10546
10570
  return Ys(n);
10547
10571
  }
10548
10572
  const Hu = gt ? "metaKey" : "ctrlKey";
10549
10573
  Ye.mousedown = (n, e) => {
10550
10574
  let t = e;
10551
10575
  n.input.shiftKey = t.shiftKey;
10552
- let r = Ia(n), i = Date.now(), s = "singleClick";
10576
+ let r = Na(n), i = Date.now(), s = "singleClick";
10553
10577
  i - n.input.lastClick.time < 500 && hx(t, n.input.lastClick) && !t[Hu] && n.input.lastClick.button == t.button && (n.input.lastClick.type == "singleClick" ? s = "doubleClick" : n.input.lastClick.type == "doubleClick" && (s = "tripleClick")), n.input.lastClick = { time: i, x: t.clientX, y: t.clientY, type: s, button: t.button };
10554
10578
  let o = n.posAtCoords(Fo(t));
10555
- o && (s == "singleClick" ? (n.input.mouseDown && n.input.mouseDown.done(), n.input.mouseDown = new wx(n, o, t, !!r)) : (s == "doubleClick" ? gx : yx)(n, o.pos, o.inside, t) ? t.preventDefault() : In(n, "pointer"));
10579
+ o && (s == "singleClick" ? (n.input.mouseDown && n.input.mouseDown.done(), n.input.mouseDown = new wx(n, o, t, !!r)) : (s == "doubleClick" ? gx : yx)(n, o.pos, o.inside, t) ? t.preventDefault() : Nn(n, "pointer"));
10556
10580
  };
10557
10581
  class wx {
10558
10582
  constructor(e, t, r, i) {
@@ -10574,7 +10598,7 @@ class wx {
10574
10598
  setUneditable: !!(this.target && Lt && !this.target.hasAttribute("contentEditable"))
10575
10599
  }), this.target && this.mightDrag && (this.mightDrag.addAttr || this.mightDrag.setUneditable) && (this.view.domObserver.stop(), this.mightDrag.addAttr && (this.target.draggable = !0), this.mightDrag.setUneditable && setTimeout(() => {
10576
10600
  this.view.input.mouseDown == this && this.target.setAttribute("contentEditable", "false");
10577
- }, 20), this.view.domObserver.start()), e.root.addEventListener("mouseup", this.up = this.up.bind(this)), e.root.addEventListener("mousemove", this.move = this.move.bind(this)), In(e, "pointer");
10601
+ }, 20), this.view.domObserver.start()), e.root.addEventListener("mouseup", this.up = this.up.bind(this)), e.root.addEventListener("mousemove", this.move = this.move.bind(this)), Nn(e, "pointer");
10578
10602
  }
10579
10603
  done() {
10580
10604
  this.view.root.removeEventListener("mouseup", this.up), this.view.root.removeEventListener("mousemove", this.move), this.mightDrag && this.target && (this.view.domObserver.stop(), this.mightDrag.addAttr && this.target.removeAttribute("draggable"), this.mightDrag.setUneditable && this.target.removeAttribute("contentEditable"), this.view.domObserver.start()), this.delayedSelectionSync && setTimeout(() => cn(this.view)), this.view.input.mouseDown = null;
@@ -10583,7 +10607,7 @@ class wx {
10583
10607
  if (this.done(), !this.view.dom.contains(e.target))
10584
10608
  return;
10585
10609
  let t = this.pos;
10586
- this.view.state.doc != this.startDoc && (t = this.view.posAtCoords(Fo(e))), this.updateAllowDefault(e), this.allowDefault || !t ? In(this.view, "pointer") : xx(this.view, t.pos, t.inside, e, this.selectNode) ? e.preventDefault() : e.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements
10610
+ this.view.state.doc != this.startDoc && (t = this.view.posAtCoords(Fo(e))), this.updateAllowDefault(e), this.allowDefault || !t ? Nn(this.view, "pointer") : xx(this.view, t.pos, t.inside, e, this.selectNode) ? e.preventDefault() : e.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements
10587
10611
  Je && this.mightDrag && !this.mightDrag.node.isAtom || // Chrome will sometimes treat a node selection as a
10588
10612
  // cursor, but still report that the node is selected
10589
10613
  // when asked through getSelection. You'll then get a
@@ -10591,22 +10615,22 @@ class wx {
10591
10615
  // (hidden) cursor is doesn't change the selection, and
10592
10616
  // thus doesn't get a reaction from ProseMirror. This
10593
10617
  // works around that.
10594
- We && !this.view.state.selection.visible && Math.min(Math.abs(t.pos - this.view.state.selection.from), Math.abs(t.pos - this.view.state.selection.to)) <= 2) ? (Kr(this.view, te.near(this.view.state.doc.resolve(t.pos))), e.preventDefault()) : In(this.view, "pointer");
10618
+ We && !this.view.state.selection.visible && Math.min(Math.abs(t.pos - this.view.state.selection.from), Math.abs(t.pos - this.view.state.selection.to)) <= 2) ? (Kr(this.view, te.near(this.view.state.doc.resolve(t.pos))), e.preventDefault()) : Nn(this.view, "pointer");
10595
10619
  }
10596
10620
  move(e) {
10597
- this.updateAllowDefault(e), In(this.view, "pointer"), e.buttons == 0 && this.done();
10621
+ this.updateAllowDefault(e), Nn(this.view, "pointer"), e.buttons == 0 && this.done();
10598
10622
  }
10599
10623
  updateAllowDefault(e) {
10600
10624
  !this.allowDefault && (Math.abs(this.event.x - e.clientX) > 4 || Math.abs(this.event.y - e.clientY) > 4) && (this.allowDefault = !0);
10601
10625
  }
10602
10626
  }
10603
10627
  Ye.touchstart = (n) => {
10604
- n.input.lastTouch = Date.now(), Ia(n), In(n, "pointer");
10628
+ n.input.lastTouch = Date.now(), Na(n), Nn(n, "pointer");
10605
10629
  };
10606
10630
  Ye.touchmove = (n) => {
10607
- n.input.lastTouch = Date.now(), In(n, "pointer");
10631
+ n.input.lastTouch = Date.now(), Nn(n, "pointer");
10608
10632
  };
10609
- Ye.contextmenu = (n) => Ia(n);
10633
+ Ye.contextmenu = (n) => Na(n);
10610
10634
  function Fu(n, e) {
10611
10635
  return n.composing ? !0 : Je && Math.abs(e.timeStamp - n.input.compositionEndedAt) < 500 ? (n.input.compositionEndedAt = -2e8, !0) : !1;
10612
10636
  }
@@ -10874,7 +10898,7 @@ class jn {
10874
10898
  destroy() {
10875
10899
  }
10876
10900
  }
10877
- class Na {
10901
+ class Ia {
10878
10902
  constructor(e, t) {
10879
10903
  this.attrs = e, this.spec = t || br;
10880
10904
  }
@@ -10890,7 +10914,7 @@ class Na {
10890
10914
  return i == t.from && !(s = e.child(r)).isText && i + s.nodeSize == t.to;
10891
10915
  }
10892
10916
  eq(e) {
10893
- return this == e || e instanceof Na && ji(this.attrs, e.attrs) && ji(this.spec, e.spec);
10917
+ return this == e || e instanceof Ia && ji(this.attrs, e.attrs) && ji(this.spec, e.spec);
10894
10918
  }
10895
10919
  destroy() {
10896
10920
  }
@@ -10944,7 +10968,7 @@ class vt {
10944
10968
  node, will receive the given attributes.
10945
10969
  */
10946
10970
  static node(e, t, r, i) {
10947
- return new vt(e, t, new Na(r, i));
10971
+ return new vt(e, t, new Ia(r, i));
10948
10972
  }
10949
10973
  /**
10950
10974
  The spec provided when creating this decoration. Can be useful
@@ -11462,7 +11486,7 @@ class Dx {
11462
11486
  }
11463
11487
  }
11464
11488
  let p = null;
11465
- s < 0 && i && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && Ro(r) && (p = Pa(e)) && p.eq(te.near(e.state.doc.resolve(0), 1)) ? (e.input.lastFocus = 0, cn(e), this.currentSelection.set(r), e.scrollToSelection()) : (s > -1 || i) && (s > -1 && (e.docView.markDirty(s, o), Ix(e)), this.handleDOMChange(s, o, l, a), e.docView && e.docView.dirty ? e.updateState(e.state) : this.currentSelection.eq(r) || cn(e), this.currentSelection.set(r));
11489
+ s < 0 && i && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && Ro(r) && (p = Pa(e)) && p.eq(te.near(e.state.doc.resolve(0), 1)) ? (e.input.lastFocus = 0, cn(e), this.currentSelection.set(r), e.scrollToSelection()) : (s > -1 || i) && (s > -1 && (e.docView.markDirty(s, o), Nx(e)), this.handleDOMChange(s, o, l, a), e.docView && e.docView.dirty ? e.updateState(e.state) : this.currentSelection.eq(r) || cn(e), this.currentSelection.set(r));
11466
11490
  }
11467
11491
  registerMutation(e, t) {
11468
11492
  if (t.indexOf(e.target) > -1)
@@ -11498,7 +11522,7 @@ class Dx {
11498
11522
  }
11499
11523
  }
11500
11524
  let fc = /* @__PURE__ */ new WeakMap(), hc = !1;
11501
- function Ix(n) {
11525
+ function Nx(n) {
11502
11526
  if (!fc.has(n) && (fc.set(n, null), ["normal", "nowrap", "pre-line"].indexOf(getComputedStyle(n.dom).whiteSpace) !== -1)) {
11503
11527
  if (n.requiresGeckoHackNode = Lt, hc)
11504
11528
  return;
@@ -11509,7 +11533,7 @@ function bc(n, e) {
11509
11533
  let t = e.startContainer, r = e.startOffset, i = e.endContainer, s = e.endOffset, o = n.domAtPos(n.state.selection.anchor);
11510
11534
  return kr(o.node, o.offset, i, s) && ([t, r, i, s] = [i, s, t, r]), { anchorNode: t, anchorOffset: r, focusNode: i, focusOffset: s };
11511
11535
  }
11512
- function Nx(n, e) {
11536
+ function Ix(n, e) {
11513
11537
  if (e.getComposedRanges) {
11514
11538
  let i = e.getComposedRanges(n.root)[0];
11515
11539
  if (i)
@@ -11666,7 +11690,7 @@ function zx(n, e) {
11666
11690
  let p = [];
11667
11691
  for (let c = 0; c < e.childCount; c++)
11668
11692
  p.push(a(e.child(c)));
11669
- if (I.from(p).eq(n))
11693
+ if (N.from(p).eq(n))
11670
11694
  return { mark: l, type: o };
11671
11695
  }
11672
11696
  function Vx(n, e, t, r, i) {
@@ -11991,7 +12015,7 @@ class Ju {
11991
12015
  pass a different state.
11992
12016
  */
11993
12017
  endOfTextblock(e, t) {
11994
- return Nm(this, t || this.state, e);
12018
+ return Im(this, t || this.state, e);
11995
12019
  }
11996
12020
  /**
11997
12021
  Run the editor's paste logic with the given HTML string. The
@@ -12044,7 +12068,7 @@ class Ju {
12044
12068
  */
12045
12069
  domSelectionRange() {
12046
12070
  let e = this.domSelection();
12047
- return e ? Je && this.root.nodeType === 11 && gm(this.dom.ownerDocument) == this.dom && Nx(this, e) || e : { focusNode: null, focusOffset: 0, anchorNode: null, anchorOffset: 0 };
12071
+ return e ? Je && this.root.nodeType === 11 && gm(this.dom.ownerDocument) == this.dom && Ix(this, e) || e : { focusNode: null, focusOffset: 0, anchorNode: null, anchorOffset: 0 };
12048
12072
  }
12049
12073
  /**
12050
12074
  @internal
@@ -12265,7 +12289,7 @@ const Xu = (n, e, t) => {
12265
12289
  return !0;
12266
12290
  if (r.parent.content.size == 0 && (Qr(s, "end") || J.isSelectable(s)))
12267
12291
  for (let o = r.depth; ; o--) {
12268
- let l = No(n.doc, r.before(o), r.after(o), z.empty);
12292
+ let l = Io(n.doc, r.before(o), r.after(o), z.empty);
12269
12293
  if (l && l.slice.size < l.to - l.from) {
12270
12294
  if (e) {
12271
12295
  let a = n.tr.step(l);
@@ -12309,7 +12333,7 @@ function Zu(n, e, t) {
12309
12333
  return !1;
12310
12334
  l = c;
12311
12335
  }
12312
- let p = No(n.doc, s, a, z.empty);
12336
+ let p = Io(n.doc, s, a, z.empty);
12313
12337
  if (!p || p.from != s || p instanceof _e && p.slice.size >= a - s)
12314
12338
  return !1;
12315
12339
  if (t) {
@@ -12364,7 +12388,7 @@ const nf = (n, e, t) => {
12364
12388
  if (af(n, i, e, 1))
12365
12389
  return !0;
12366
12390
  if (r.parent.content.size == 0 && (Qr(s, "start") || J.isSelectable(s))) {
12367
- let o = No(n.doc, r.before(), r.after(), z.empty);
12391
+ let o = Io(n.doc, r.before(), r.after(), z.empty);
12368
12392
  if (o && o.slice.size < o.to - o.from) {
12369
12393
  if (e) {
12370
12394
  let l = n.tr.step(o);
@@ -12403,7 +12427,7 @@ const rg = (n, e) => {
12403
12427
  if (t.node.isTextblock || !Un(n.doc, t.from))
12404
12428
  return !1;
12405
12429
  i = t.from;
12406
- } else if (i = Io(n.doc, t.from, -1), i == null)
12430
+ } else if (i = No(n.doc, t.from, -1), i == null)
12407
12431
  return !1;
12408
12432
  if (e) {
12409
12433
  let s = n.tr.join(i);
@@ -12416,7 +12440,7 @@ const rg = (n, e) => {
12416
12440
  if (t.node.isTextblock || !Un(n.doc, t.to))
12417
12441
  return !1;
12418
12442
  r = t.to;
12419
- } else if (r = Io(n.doc, t.to, 1), r == null)
12443
+ } else if (r = No(n.doc, t.to, 1), r == null)
12420
12444
  return !1;
12421
12445
  return e && e(n.tr.join(r).scrollIntoView()), !0;
12422
12446
  }, sg = (n, e) => {
@@ -12515,10 +12539,10 @@ function af(n, e, t, r) {
12515
12539
  let p = !a && e.parent.canReplace(e.index(), e.index() + 1);
12516
12540
  if (p && (o = (l = i.contentMatchAt(i.childCount)).findWrapping(s.type)) && l.matchType(o[0] || s.type).validEnd) {
12517
12541
  if (t) {
12518
- let h = e.pos + s.nodeSize, b = I.empty;
12542
+ let h = e.pos + s.nodeSize, b = N.empty;
12519
12543
  for (let v = o.length - 1; v >= 0; v--)
12520
- b = I.from(o[v].create(null, b));
12521
- b = I.from(i.copy(b));
12544
+ b = N.from(o[v].create(null, b));
12545
+ b = N.from(i.copy(b));
12522
12546
  let x = n.tr.step(new Le(e.pos - 1, h, e.pos, h, new z(b, 1, 0), o.length, !0)), m = x.doc.resolve(h + 2 * o.length);
12523
12547
  m.nodeAfter && m.nodeAfter.type == i.type && Un(x.doc, m.pos) && x.join(m.pos), t(x.scrollIntoView());
12524
12548
  }
@@ -12536,9 +12560,9 @@ function af(n, e, t, r) {
12536
12560
  m++;
12537
12561
  if (h.canReplace(h.childCount, h.childCount, x.content)) {
12538
12562
  if (t) {
12539
- let v = I.empty;
12563
+ let v = N.empty;
12540
12564
  for (let k = b.length - 1; k >= 0; k--)
12541
- v = I.from(b[k].copy(v));
12565
+ v = N.from(b[k].copy(v));
12542
12566
  let S = n.tr.step(new Le(e.pos - b.length, e.pos + s.nodeSize, e.pos + m, e.pos + s.nodeSize - m, new z(v, b.length, 0), 0, !0));
12543
12567
  t(S.scrollIntoView());
12544
12568
  }
@@ -12628,9 +12652,9 @@ function bg(n, e, t, r = null) {
12628
12652
  return l ? (n && mg(n, e, l, i, t), !0) : !1;
12629
12653
  }
12630
12654
  function mg(n, e, t, r, i) {
12631
- let s = I.empty;
12655
+ let s = N.empty;
12632
12656
  for (let c = t.length - 1; c >= 0; c--)
12633
- s = I.from(t[c].type.create(t[c].attrs, s));
12657
+ s = N.from(t[c].type.create(t[c].attrs, s));
12634
12658
  n.step(new Le(e.start - (r ? 2 : 0), e.end, e.start, e.end, new z(s, 0, 0), t.length, !0));
12635
12659
  let o = 0;
12636
12660
  for (let c = 0; c < t.length; c++)
@@ -12648,7 +12672,7 @@ function xg(n) {
12648
12672
  }
12649
12673
  function gg(n, e, t, r) {
12650
12674
  let i = n.tr, s = r.end, o = r.$to.end(r.depth);
12651
- s < o && (i.step(new Le(s - 1, o, s, o, new z(I.from(t.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new Ws(i.doc.resolve(r.$from.pos), i.doc.resolve(o), r.depth));
12675
+ s < o && (i.step(new Le(s - 1, o, s, o, new z(N.from(t.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new Ws(i.doc.resolve(r.$from.pos), i.doc.resolve(o), r.depth));
12652
12676
  const l = oi(r);
12653
12677
  if (l == null)
12654
12678
  return !1;
@@ -12664,10 +12688,10 @@ function yg(n, e, t) {
12664
12688
  if (r.mapping.map(t.end) != t.start + s.nodeAfter.nodeSize)
12665
12689
  return !1;
12666
12690
  let l = t.startIndex == 0, a = t.endIndex == i.childCount, p = s.node(-1), c = s.index(-1);
12667
- if (!p.canReplace(c + (l ? 0 : 1), c + 1, o.content.append(a ? I.empty : I.from(i))))
12691
+ if (!p.canReplace(c + (l ? 0 : 1), c + 1, o.content.append(a ? N.empty : N.from(i))))
12668
12692
  return !1;
12669
12693
  let d = s.pos, f = d + o.nodeSize;
12670
- return r.step(new Le(d - (l ? 1 : 0), f + (a ? 1 : 0), d + 1, f - 1, new z((l ? I.empty : I.from(i.copy(I.empty))).append(a ? I.empty : I.from(i.copy(I.empty))), l ? 0 : 1, a ? 0 : 1), l ? 0 : 1)), e(r.scrollIntoView()), !0;
12694
+ return r.step(new Le(d - (l ? 1 : 0), f + (a ? 1 : 0), d + 1, f - 1, new z((l ? N.empty : N.from(i.copy(N.empty))).append(a ? N.empty : N.from(i.copy(N.empty))), l ? 0 : 1, a ? 0 : 1), l ? 0 : 1)), e(r.scrollIntoView()), !0;
12671
12695
  }
12672
12696
  function vg(n) {
12673
12697
  return function(e, t) {
@@ -12681,7 +12705,7 @@ function vg(n) {
12681
12705
  if (a.type != n)
12682
12706
  return !1;
12683
12707
  if (t) {
12684
- let p = a.lastChild && a.lastChild.type == l.type, c = I.from(p ? n.create() : null), d = new z(I.from(n.create(null, I.from(l.type.create(null, c)))), p ? 3 : 1, 0), f = s.start, h = s.end;
12708
+ let p = a.lastChild && a.lastChild.type == l.type, c = N.from(p ? n.create() : null), d = new z(N.from(n.create(null, N.from(l.type.create(null, c)))), p ? 3 : 1, 0), f = s.start, h = s.end;
12685
12709
  t(e.tr.step(new Le(f - (p ? 3 : 1), h, f, h, d, 1, !0)).scrollIntoView());
12686
12710
  }
12687
12711
  return !0;
@@ -12865,7 +12889,7 @@ function cf(n) {
12865
12889
  });
12866
12890
  }), e;
12867
12891
  }
12868
- function Ie(n, e) {
12892
+ function Ne(n, e) {
12869
12893
  if (typeof n == "string") {
12870
12894
  if (!e.nodes[n])
12871
12895
  throw Error(`There is no node type named '${n}'. Maybe you forgot to add the extension?`);
@@ -13115,7 +13139,7 @@ function Tg(n) {
13115
13139
  const a = i.getMeta("applyInputRules");
13116
13140
  return !!a && setTimeout(() => {
13117
13141
  let { text: c } = a;
13118
- typeof c == "string" ? c = c : c = Va(I.from(c), o.schema);
13142
+ typeof c == "string" ? c = c : c = Va(N.from(c), o.schema);
13119
13143
  const { from: d } = a, f = d + c.length;
13120
13144
  gs({
13121
13145
  editor: e,
@@ -13356,7 +13380,7 @@ function Dg(n) {
13356
13380
  return;
13357
13381
  if (S) {
13358
13382
  let { text: O } = v;
13359
- typeof O == "string" ? O = O : O = Va(I.from(O), h.schema);
13383
+ typeof O == "string" ? O = O : O = Va(N.from(O), h.schema);
13360
13384
  const { from: T } = v, B = T + O.length, H = Lg(O);
13361
13385
  return a({
13362
13386
  rule: c,
@@ -13378,7 +13402,7 @@ function Dg(n) {
13378
13402
  }
13379
13403
  }));
13380
13404
  }
13381
- function Ig(n) {
13405
+ function Ng(n) {
13382
13406
  const e = n.filter((t, r) => n.indexOf(t) !== r);
13383
13407
  return Array.from(new Set(e));
13384
13408
  }
@@ -13393,7 +13417,7 @@ class zr {
13393
13417
  * @returns An flattened and sorted array of Tiptap extensions
13394
13418
  */
13395
13419
  static resolve(e) {
13396
- const t = zr.sort(zr.flatten(e)), r = Ig(t.map((i) => i.name));
13420
+ const t = zr.sort(zr.flatten(e)), r = Ng(t.map((i) => i.name));
13397
13421
  return r.length && console.warn(`[tiptap warn]: Duplicate extension names found: [${r.map((i) => `'${i}'`).join(", ")}]. This can lead to issues.`), t;
13398
13422
  }
13399
13423
  /**
@@ -13503,7 +13527,7 @@ class zr {
13503
13527
  options: r.options,
13504
13528
  storage: r.storage,
13505
13529
  editor: e,
13506
- type: Ie(r.name, this.schema)
13530
+ type: Ne(r.name, this.schema)
13507
13531
  }, o = U(r, "addNodeView", s);
13508
13532
  if (!o)
13509
13533
  return [];
@@ -13604,7 +13628,7 @@ function uf(n, e, t) {
13604
13628
  function Ua(n) {
13605
13629
  return Object.fromEntries(Object.entries(n.nodes).filter(([, e]) => e.spec.toText).map(([e, t]) => [e, t.spec.toText]));
13606
13630
  }
13607
- const Ng = je.create({
13631
+ const Ig = je.create({
13608
13632
  name: "clipboardTextSerializer",
13609
13633
  addOptions() {
13610
13634
  return {
@@ -13667,7 +13691,7 @@ const Ng = je.create({
13667
13691
  }
13668
13692
  return !1;
13669
13693
  }, qg = (n) => ({ tr: e, state: t, dispatch: r }) => {
13670
- const i = Ie(n, t.schema), s = e.selection.$anchor;
13694
+ const i = Ne(n, t.schema), s = e.selection.$anchor;
13671
13695
  for (let o = s.depth; o > 0; o -= 1)
13672
13696
  if (s.node(o).type === i) {
13673
13697
  if (r) {
@@ -13796,7 +13820,7 @@ function ws(n) {
13796
13820
  return bf(t);
13797
13821
  }
13798
13822
  function zi(n, e, t) {
13799
- if (n instanceof Rn || n instanceof I)
13823
+ if (n instanceof Rn || n instanceof N)
13800
13824
  return n;
13801
13825
  t = {
13802
13826
  slice: !0,
@@ -13807,7 +13831,7 @@ function zi(n, e, t) {
13807
13831
  if (r)
13808
13832
  try {
13809
13833
  if (Array.isArray(n) && n.length > 0)
13810
- return I.fromArray(n.map((l) => e.nodeFromJSON(l)));
13834
+ return N.fromArray(n.map((l) => e.nodeFromJSON(l)));
13811
13835
  const o = e.nodeFromJSON(n);
13812
13836
  return t.errorOnInvalidContent && o.check(), o;
13813
13837
  } catch (s) {
@@ -13908,7 +13932,7 @@ const ny = (n) => !("type" in n), ry = (n, e, t) => ({ tr: r, dispatch: i, edito
13908
13932
  if (f) {
13909
13933
  if (Array.isArray(e))
13910
13934
  x = e.map((m) => m.text || "").join("");
13911
- else if (e instanceof I) {
13935
+ else if (e instanceof N) {
13912
13936
  let m = "";
13913
13937
  e.forEach((v) => {
13914
13938
  v.text && (m += v.text);
@@ -13922,14 +13946,14 @@ const ny = (n) => !("type" in n), ry = (n, e, t) => ({ tr: r, dispatch: i, edito
13922
13946
  return !0;
13923
13947
  }, iy = () => ({ state: n, dispatch: e }) => rg(n, e), sy = () => ({ state: n, dispatch: e }) => ig(n, e), oy = () => ({ state: n, dispatch: e }) => Xu(n, e), ly = () => ({ state: n, dispatch: e }) => nf(n, e), ay = () => ({ state: n, dispatch: e, tr: t }) => {
13924
13948
  try {
13925
- const r = Io(n.doc, n.selection.$from.pos, -1);
13949
+ const r = No(n.doc, n.selection.$from.pos, -1);
13926
13950
  return r == null ? !1 : (t.join(r, 2), e && e(t), !0);
13927
13951
  } catch {
13928
13952
  return !1;
13929
13953
  }
13930
13954
  }, py = () => ({ state: n, dispatch: e, tr: t }) => {
13931
13955
  try {
13932
- const r = Io(n.doc, n.selection.$from.pos, 1);
13956
+ const r = No(n.doc, n.selection.$from.pos, 1);
13933
13957
  return r == null ? !1 : (t.join(r, 2), e && e(t), !0);
13934
13958
  } catch {
13935
13959
  return !1;
@@ -13978,7 +14002,7 @@ const fy = (n) => ({ editor: e, view: t, tr: r, dispatch: i }) => {
13978
14002
  }), !0;
13979
14003
  };
13980
14004
  function Vi(n, e, t = {}) {
13981
- const { from: r, to: i, empty: s } = n.selection, o = e ? Ie(e, n.schema) : null, l = [];
14005
+ const { from: r, to: i, empty: s } = n.selection, o = e ? Ne(e, n.schema) : null, l = [];
13982
14006
  n.doc.nodesBetween(r, i, (d, f) => {
13983
14007
  if (d.isText)
13984
14008
  return;
@@ -13993,10 +14017,10 @@ function Vi(n, e, t = {}) {
13993
14017
  return s ? !!p.length : p.reduce((d, f) => d + f.to - f.from, 0) >= a;
13994
14018
  }
13995
14019
  const hy = (n, e = {}) => ({ state: t, dispatch: r }) => {
13996
- const i = Ie(n, t.schema);
14020
+ const i = Ne(n, t.schema);
13997
14021
  return Vi(t, i, e) ? sg(t, r) : !1;
13998
14022
  }, by = () => ({ state: n, dispatch: e }) => lf(n, e), my = (n) => ({ state: e, dispatch: t }) => {
13999
- const r = Ie(n, e.schema);
14023
+ const r = Ne(n, e.schema);
14000
14024
  return xg(r)(e, t);
14001
14025
  }, xy = () => ({ state: n, dispatch: e }) => sf(n, e);
14002
14026
  function Wo(n, e) {
@@ -14009,7 +14033,7 @@ function Oc(n, e) {
14009
14033
  const gy = (n, e) => ({ tr: t, state: r, dispatch: i }) => {
14010
14034
  let s = null, o = null;
14011
14035
  const l = Wo(typeof n == "string" ? n : n.name, r.schema);
14012
- return l ? (l === "node" && (s = Ie(n, r.schema)), l === "mark" && (o = Kn(n, r.schema)), i && t.selection.ranges.forEach((a) => {
14036
+ return l ? (l === "node" && (s = Ne(n, r.schema)), l === "mark" && (o = Kn(n, r.schema)), i && t.selection.ranges.forEach((a) => {
14013
14037
  r.doc.nodesBetween(a.$from.pos, a.$to.pos, (p, c) => {
14014
14038
  s && s === p.type && t.setNodeMarkup(c, void 0, Oc(p.attrs, e)), o && p.marks.length && p.marks.forEach((d) => {
14015
14039
  o === d.type && t.addMark(c, c + p.nodeSize, o.create(Oc(d.attrs, e)));
@@ -14100,7 +14124,7 @@ function gf(n, e) {
14100
14124
  return uf(n, t, e);
14101
14125
  }
14102
14126
  function Ay(n, e) {
14103
- const t = Ie(e, n.schema), { from: r, to: i } = n.selection, s = [];
14127
+ const t = Ne(e, n.schema), { from: r, to: i } = n.selection, s = [];
14104
14128
  n.doc.nodesBetween(r, i, (l) => {
14105
14129
  s.push(l);
14106
14130
  });
@@ -14196,7 +14220,7 @@ function ia(n, e, t = {}) {
14196
14220
  const a = l.filter((d) => s ? s.name === d.mark.type.name : !0).filter((d) => eo(d.mark.attrs, t, { strict: !1 })).reduce((d, f) => d + f.to - f.from, 0), p = l.filter((d) => s ? d.mark.type !== s && d.mark.type.excludes(s) : !0).reduce((d, f) => d + f.to - f.from, 0);
14197
14221
  return (a > 0 ? a + p : a) >= o;
14198
14222
  }
14199
- function Iy(n, e, t = {}) {
14223
+ function Ny(n, e, t = {}) {
14200
14224
  if (!e)
14201
14225
  return Vi(n, null, t) || ia(n, null, t);
14202
14226
  const r = Wo(e, n.schema);
@@ -14254,7 +14278,7 @@ function wf(n, e, t) {
14254
14278
  toJSON: () => v
14255
14279
  };
14256
14280
  }
14257
- function Ny(n, e, t) {
14281
+ function Iy(n, e, t) {
14258
14282
  var r;
14259
14283
  const { selection: i } = e;
14260
14284
  let s = null;
@@ -14298,9 +14322,9 @@ const $y = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
14298
14322
  }) : t.addMark(b, x, a.create(e));
14299
14323
  });
14300
14324
  });
14301
- return Ny(r, t, a);
14325
+ return Iy(r, t, a);
14302
14326
  }, Ry = (n, e) => ({ tr: t }) => (t.setMeta(n, e), !0), Hy = (n, e = {}) => ({ state: t, dispatch: r, chain: i }) => {
14303
- const s = Ie(n, t.schema);
14327
+ const s = Ne(n, t.schema);
14304
14328
  let o;
14305
14329
  return t.selection.$anchor.sameParent(t.selection.$head) && (o = t.selection.$anchor.parent.attrs), s.isTextblock ? i().command(({ commands: l }) => kc(s, { ...o, ...e })(t) ? !0 : l.clearNodes()).command(({ state: l }) => kc(s, { ...o, ...e })(l, r)).run() : (console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'), !1);
14306
14330
  }, Fy = (n) => ({ tr: e, dispatch: t }) => {
@@ -14316,7 +14340,7 @@ const $y = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
14316
14340
  }
14317
14341
  return !0;
14318
14342
  }, zy = (n) => ({ state: e, dispatch: t }) => {
14319
- const r = Ie(n, e.schema);
14343
+ const r = Ne(n, e.schema);
14320
14344
  return vg(r)(e, t);
14321
14345
  };
14322
14346
  function Pc(n, e) {
@@ -14354,7 +14378,7 @@ const Vy = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
14354
14378
  return b;
14355
14379
  }, qy = (n, e = {}) => ({ tr: t, state: r, dispatch: i, editor: s }) => {
14356
14380
  var o;
14357
- const l = Ie(n, r.schema), { $from: a, $to: p } = r.selection, c = r.selection.node;
14381
+ const l = Ne(n, r.schema), { $from: a, $to: p } = r.selection, c = r.selection.node;
14358
14382
  if (c && c.isBlock || a.depth < 2 || !a.sameParent(p))
14359
14383
  return !1;
14360
14384
  const d = a.node(-1);
@@ -14365,15 +14389,15 @@ const Vy = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
14365
14389
  if (a.depth === 2 || a.node(-3).type !== l || a.index(-2) !== a.node(-2).childCount - 1)
14366
14390
  return !1;
14367
14391
  if (i) {
14368
- let v = I.empty;
14392
+ let v = N.empty;
14369
14393
  const S = a.index(-1) ? 1 : a.index(-2) ? 2 : 3;
14370
14394
  for (let H = a.depth - S; H >= a.depth - 3; H -= 1)
14371
- v = I.from(a.node(H).copy(v));
14395
+ v = N.from(a.node(H).copy(v));
14372
14396
  const k = a.indexAfter(-1) < a.node(-2).childCount ? 1 : a.indexAfter(-2) < a.node(-3).childCount ? 2 : 3, g = {
14373
14397
  ..._s(f, a.node().type.name, a.node().attrs),
14374
14398
  ...e
14375
14399
  }, O = ((o = l.contentMatch.defaultType) === null || o === void 0 ? void 0 : o.createAndFill(g)) || void 0;
14376
- v = v.append(I.from(l.createAndFill(null, O) || void 0));
14400
+ v = v.append(N.from(l.createAndFill(null, O) || void 0));
14377
14401
  const T = a.before(a.depth - (S - 1));
14378
14402
  t.replace(T, a.after(-k), new z(v, 4 - S, 0));
14379
14403
  let B = -1;
@@ -14426,7 +14450,7 @@ const Vy = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
14426
14450
  const i = n.doc.nodeAt(r);
14427
14451
  return t.node.type === (i == null ? void 0 : i.type) && Un(n.doc, r) && n.join(r), !0;
14428
14452
  }, Uy = (n, e, t, r = {}) => ({ editor: i, tr: s, state: o, dispatch: l, chain: a, commands: p, can: c }) => {
14429
- const { extensions: d, splittableMarks: f } = i.extensionManager, h = Ie(n, o.schema), b = Ie(e, o.schema), { selection: x, storedMarks: m } = o, { $from: v, $to: S } = x, k = v.blockRange(S), g = m || x.$to.parentOffset && x.$from.marks();
14453
+ const { extensions: d, splittableMarks: f } = i.extensionManager, h = Ne(n, o.schema), b = Ne(e, o.schema), { selection: x, storedMarks: m } = o, { $from: v, $to: S } = x, k = v.blockRange(S), g = m || x.$to.parentOffset && x.$from.marks();
14430
14454
  if (!k)
14431
14455
  return !1;
14432
14456
  const O = Ja((T) => Bc(T.type.name, d))(x);
@@ -14444,11 +14468,11 @@ const Vy = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
14444
14468
  const { extendEmptyMarkRange: s = !1 } = t, o = Kn(n, r.schema);
14445
14469
  return ia(r, o, e) ? i.unsetMark(o, { extendEmptyMarkRange: s }) : i.setMark(o, e);
14446
14470
  }, Ky = (n, e, t = {}) => ({ state: r, commands: i }) => {
14447
- const s = Ie(n, r.schema), o = Ie(e, r.schema), l = Vi(r, s, t);
14471
+ const s = Ne(n, r.schema), o = Ne(e, r.schema), l = Vi(r, s, t);
14448
14472
  let a;
14449
14473
  return r.selection.$anchor.sameParent(r.selection.$head) && (a = r.selection.$anchor.parent.attrs), l ? i.setNode(o, a) : i.setNode(s, { ...a, ...t });
14450
14474
  }, Gy = (n, e = {}) => ({ state: t, commands: r }) => {
14451
- const i = Ie(n, t.schema);
14475
+ const i = Ne(n, t.schema);
14452
14476
  return Vi(t, i, e) ? r.lift(i) : r.wrapIn(i, e);
14453
14477
  }, Jy = () => ({ state: n, dispatch: e }) => {
14454
14478
  const t = n.plugins;
@@ -14492,7 +14516,7 @@ const Vy = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
14492
14516
  }, Xy = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
14493
14517
  let s = null, o = null;
14494
14518
  const l = Wo(typeof n == "string" ? n : n.name, r.schema);
14495
- return l ? (l === "node" && (s = Ie(n, r.schema)), l === "mark" && (o = Kn(n, r.schema)), i && t.selection.ranges.forEach((a) => {
14519
+ return l ? (l === "node" && (s = Ne(n, r.schema)), l === "mark" && (o = Kn(n, r.schema)), i && t.selection.ranges.forEach((a) => {
14496
14520
  const p = a.$from.pos, c = a.$to.pos;
14497
14521
  let d, f, h, b;
14498
14522
  t.selection.empty ? r.doc.nodesBetween(p, c, (x, m) => {
@@ -14521,10 +14545,10 @@ const Vy = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
14521
14545
  }));
14522
14546
  }), !0) : !1;
14523
14547
  }, Zy = (n, e = {}) => ({ state: t, dispatch: r }) => {
14524
- const i = Ie(n, t.schema);
14548
+ const i = Ne(n, t.schema);
14525
14549
  return fg(i, e)(t, r);
14526
14550
  }, e0 = (n, e = {}) => ({ state: t, dispatch: r }) => {
14527
- const i = Ie(n, t.schema);
14551
+ const i = Ne(n, t.schema);
14528
14552
  return hg(i, e)(t, r);
14529
14553
  };
14530
14554
  var t0 = /* @__PURE__ */ Object.freeze({
@@ -15100,7 +15124,7 @@ let u0 = class extends wg {
15100
15124
  var e, t;
15101
15125
  const i = [...this.options.enableCoreExtensions ? [
15102
15126
  i0,
15103
- Ng.configure({
15127
+ Ig.configure({
15104
15128
  blockSeparator: (t = (e = this.options.coreExtensionOptions) === null || e === void 0 ? void 0 : e.clipboardTextSerializer) === null || t === void 0 ? void 0 : t.blockSeparator
15105
15129
  }),
15106
15130
  n0,
@@ -15238,7 +15262,7 @@ let u0 = class extends wg {
15238
15262
  }
15239
15263
  isActive(e, t) {
15240
15264
  const r = typeof e == "string" ? e : null, i = typeof e == "string" ? t : e;
15241
- return Iy(this.state, r, i);
15265
+ return Ny(this.state, r, i);
15242
15266
  }
15243
15267
  /**
15244
15268
  * Get the document as JSON.
@@ -15388,7 +15412,7 @@ function qi(n) {
15388
15412
  }
15389
15413
  });
15390
15414
  }
15391
- let It = class oa {
15415
+ let Nt = class oa {
15392
15416
  constructor(e = {}) {
15393
15417
  this.type = "node", this.name = "node", this.parent = null, this.child = null, this.config = {
15394
15418
  name: this.name,
@@ -15672,7 +15696,7 @@ function D0(n) {
15672
15696
  var e = n.state, t = n.options, r = t.element, i = r === void 0 ? "[data-popper-arrow]" : r;
15673
15697
  i != null && (typeof i == "string" && (i = e.elements.popper.querySelector(i), !i) || Ef(e.elements.popper, i) && (e.elements.arrow = i));
15674
15698
  }
15675
- const I0 = {
15699
+ const N0 = {
15676
15700
  name: "arrow",
15677
15701
  enabled: !0,
15678
15702
  phase: "main",
@@ -15684,7 +15708,7 @@ const I0 = {
15684
15708
  function ni(n) {
15685
15709
  return n.split("-")[1];
15686
15710
  }
15687
- var N0 = {
15711
+ var I0 = {
15688
15712
  top: "auto",
15689
15713
  right: "auto",
15690
15714
  bottom: "auto",
@@ -15728,7 +15752,7 @@ function Lc(n) {
15728
15752
  }
15729
15753
  var D = Object.assign({
15730
15754
  position: l
15731
- }, p && N0), $ = c === !0 ? $0({
15755
+ }, p && I0), $ = c === !0 ? $0({
15732
15756
  x: h,
15733
15757
  y: x
15734
15758
  }, ct(t)) : {
@@ -15874,7 +15898,7 @@ function W0(n, e) {
15874
15898
  var t = ti(n, !1, e === "fixed");
15875
15899
  return t.top = t.top + n.clientTop, t.left = t.left + n.clientLeft, t.bottom = t.top + n.clientHeight, t.right = t.left + n.clientWidth, t.width = n.clientWidth, t.height = n.clientHeight, t.x = t.left, t.y = t.top, t;
15876
15900
  }
15877
- function Ic(n, e, t) {
15901
+ function Nc(n, e, t) {
15878
15902
  return e === Sf ? aa(q0(n, t)) : Er(e) ? W0(e, t) : aa(U0(Gn(n)));
15879
15903
  }
15880
15904
  function K0(n) {
@@ -15885,9 +15909,9 @@ function K0(n) {
15885
15909
  }
15886
15910
  function G0(n, e, t, r) {
15887
15911
  var i = e === "clippingParents" ? K0(n) : [].concat(e), s = [].concat(i, [t]), o = s[0], l = s.reduce(function(a, p) {
15888
- var c = Ic(n, p, r);
15912
+ var c = Nc(n, p, r);
15889
15913
  return a.top = xr(c.top, a.top), a.right = to(c.right, a.right), a.bottom = to(c.bottom, a.bottom), a.left = xr(c.left, a.left), a;
15890
- }, Ic(n, o, r));
15914
+ }, Nc(n, o, r));
15891
15915
  return l.width = l.right - l.left, l.height = l.bottom - l.top, l.x = l.left, l.y = l.top, l;
15892
15916
  }
15893
15917
  function Af(n) {
@@ -16042,7 +16066,7 @@ const X0 = {
16042
16066
  _skip: !1
16043
16067
  }
16044
16068
  };
16045
- function Nc(n, e, t) {
16069
+ function Ic(n, e, t) {
16046
16070
  return t === void 0 && (t = {
16047
16071
  x: 0,
16048
16072
  y: 0
@@ -16063,7 +16087,7 @@ function Z0(n) {
16063
16087
  elementContext: "reference"
16064
16088
  }), l = Wi(e, {
16065
16089
  altBoundary: !0
16066
- }), a = Nc(o, r), p = Nc(l, i, s), c = $c(a), d = $c(p);
16090
+ }), a = Ic(o, r), p = Ic(l, i, s), c = $c(a), d = $c(p);
16067
16091
  e.modifiersData[t] = {
16068
16092
  referenceClippingOffsets: a,
16069
16093
  popperEscapeOffsets: p,
@@ -16151,7 +16175,7 @@ function lv(n) {
16151
16175
  T[g] = xn, $[g] = xn - se;
16152
16176
  }
16153
16177
  if (l) {
16154
- var gn, Xn = g === "x" ? rt : it, Zn = g === "x" ? kt : Ct, Ot = T[O], Nt = O === "y" ? "height" : "width", yn = Ot + m[Xn], ft = Ot - m[Zn], vn = [rt, it].indexOf(v) !== -1, er = (gn = D == null ? void 0 : D[O]) != null ? gn : 0, tr = vn ? yn : Ot - B[Nt] - H[Nt] - er + L.altAxis, nr = vn ? Ot + B[Nt] + H[Nt] - er - L.altAxis : ft, rr = h && vn ? A0(tr, Ot, nr) : Mi(h ? tr : yn, Ot, h ? nr : ft);
16178
+ var gn, Xn = g === "x" ? rt : it, Zn = g === "x" ? kt : Ct, Ot = T[O], It = O === "y" ? "height" : "width", yn = Ot + m[Xn], ft = Ot - m[Zn], vn = [rt, it].indexOf(v) !== -1, er = (gn = D == null ? void 0 : D[O]) != null ? gn : 0, tr = vn ? yn : Ot - B[It] - H[It] - er + L.altAxis, nr = vn ? Ot + B[It] + H[It] - er - L.altAxis : ft, rr = h && vn ? A0(tr, Ot, nr) : Mi(h ? tr : yn, Ot, h ? nr : ft);
16155
16179
  T[O] = rr, $[O] = rr - Ot;
16156
16180
  }
16157
16181
  e.modifiersData[r] = $;
@@ -16354,12 +16378,12 @@ function xv(n) {
16354
16378
  return h;
16355
16379
  };
16356
16380
  }
16357
- var gv = [j0, sv, H0, Cf, rv, X0, av, I0, ev], yv = /* @__PURE__ */ xv({
16381
+ var gv = [j0, sv, H0, Cf, rv, X0, av, N0, ev], yv = /* @__PURE__ */ xv({
16358
16382
  defaultModifiers: gv
16359
16383
  }), vv = "tippy-box", _f = "tippy-content", wv = "tippy-backdrop", Lf = "tippy-arrow", Df = "tippy-svg-arrow", sr = {
16360
16384
  passive: !0,
16361
16385
  capture: !0
16362
- }, If = function() {
16386
+ }, Nf = function() {
16363
16387
  return document.body;
16364
16388
  };
16365
16389
  function Sv(n, e) {
@@ -16376,7 +16400,7 @@ function sp(n, e) {
16376
16400
  var t = {}.toString.call(n);
16377
16401
  return t.indexOf("[object") === 0 && t.indexOf(e + "]") > -1;
16378
16402
  }
16379
- function Nf(n, e) {
16403
+ function If(n, e) {
16380
16404
  return typeof n == "function" ? n.apply(void 0, e) : n;
16381
16405
  }
16382
16406
  function Fc(n, e) {
@@ -16496,10 +16520,10 @@ function Dv() {
16496
16520
  n.blur && !e.state.isVisible && n.blur();
16497
16521
  }
16498
16522
  }
16499
- function Iv() {
16523
+ function Nv() {
16500
16524
  document.addEventListener("touchstart", Lv, sr), window.addEventListener("blur", Dv);
16501
16525
  }
16502
- var Nv = typeof window < "u" && typeof document < "u", $v = Nv ? (
16526
+ var Iv = typeof window < "u" && typeof document < "u", $v = Iv ? (
16503
16527
  // @ts-ignore
16504
16528
  !!window.msCrypto
16505
16529
  ) : !1;
@@ -16568,7 +16592,7 @@ var Hf = {
16568
16592
  theme: "",
16569
16593
  zIndex: 9999
16570
16594
  }, at = Object.assign({
16571
- appendTo: If,
16595
+ appendTo: Nf,
16572
16596
  aria: {
16573
16597
  content: "auto",
16574
16598
  expanded: "auto"
@@ -16654,7 +16678,7 @@ function qv(n, e) {
16654
16678
  }
16655
16679
  function Kc(n, e) {
16656
16680
  var t = Object.assign({}, e, {
16657
- content: Nf(e.content, [n])
16681
+ content: If(e.content, [n])
16658
16682
  }, e.ignoreAttributes ? {} : qv(n, e.plugins));
16659
16683
  return t.aria = Object.assign({}, at.aria, t.aria), t.aria = {
16660
16684
  expanded: t.aria.expanded === "auto" ? e.interactive : t.aria.expanded,
@@ -16924,7 +16948,7 @@ function Kv(n, e) {
16924
16948
  function Yn(P) {
16925
16949
  var W = P.target, Y = K().contains(W) || T.contains(W);
16926
16950
  if (!(P.type === "mousemove" && Y)) {
16927
- var le = Nt().concat(T).map(function(F) {
16951
+ var le = It().concat(T).map(function(F) {
16928
16952
  var _, ae = F._tippy, Bt = (_ = ae.popperInstance) == null ? void 0 : _.state;
16929
16953
  return Bt ? {
16930
16954
  popperRect: F.getBoundingClientRect(),
@@ -17013,7 +17037,7 @@ function Kv(n, e) {
17013
17037
  }
17014
17038
  function Ot() {
17015
17039
  var P = g.props.appendTo, W, Y = K();
17016
- g.props.interactive && P === If || P === "parent" ? W = Y.parentNode : W = Nf(P, [Y]), W.contains(T) || W.appendChild(T), g.state.isMounted = !0, Xn(), process.env.NODE_ENV !== "production" && on(g.props.interactive && P === at.appendTo && Y.nextElementSibling !== T, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
17040
+ g.props.interactive && P === Nf || P === "parent" ? W = Y.parentNode : W = If(P, [Y]), W.contains(T) || W.appendChild(T), g.state.isMounted = !0, Xn(), process.env.NODE_ENV !== "production" && on(g.props.interactive && P === at.appendTo && Y.nextElementSibling !== T, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
17017
17041
 
17018
17042
  `, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
17019
17043
 
@@ -17021,7 +17045,7 @@ function Kv(n, e) {
17021
17045
 
17022
17046
  `, "See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "));
17023
17047
  }
17024
- function Nt() {
17048
+ function It() {
17025
17049
  return no(T.querySelectorAll("[data-tippy-root]"));
17026
17050
  }
17027
17051
  function yn(P) {
@@ -17062,7 +17086,7 @@ function Kv(n, e) {
17062
17086
  }));
17063
17087
  g.props = Y, Tt(), W.interactiveDebounce !== Y.interactiveDebounce && (Jt(), b = Fc(Yn, Y.interactiveDebounce)), W.triggerTarget && !Y.triggerTarget ? Rr(W.triggerTarget).forEach(function(le) {
17064
17088
  le.removeAttribute("aria-expanded");
17065
- }) : Y.triggerTarget && n.removeAttribute("aria-expanded"), dt(), se(), B && B(W, Y), g.popperInstance && (Xn(), Nt().forEach(function(le) {
17089
+ }) : Y.triggerTarget && n.removeAttribute("aria-expanded"), dt(), se(), B && B(W, Y), g.popperInstance && (Xn(), It().forEach(function(le) {
17066
17090
  requestAnimationFrame(le._tippy.popperInstance.forceUpdate);
17067
17091
  })), G("onAfterUpdate", [g, P]);
17068
17092
  }
@@ -17109,7 +17133,7 @@ function Kv(n, e) {
17109
17133
  process.env.NODE_ENV !== "production" && on(g.state.isDestroyed, Lr("hideWithInteractivity")), ce().addEventListener("mousemove", b), jc(ks, b), b(P);
17110
17134
  }
17111
17135
  function Qo() {
17112
- process.env.NODE_ENV !== "production" && on(g.state.isDestroyed, Lr("unmount")), g.state.isVisible && g.hide(), g.state.isMounted && (Zn(), Nt().forEach(function(P) {
17136
+ process.env.NODE_ENV !== "production" && on(g.state.isDestroyed, Lr("unmount")), g.state.isVisible && g.hide(), g.state.isMounted && (Zn(), It().forEach(function(P) {
17113
17137
  P._tippy.unmount();
17114
17138
  }), T.parentNode && T.parentNode.removeChild(T), wl = wl.filter(function(P) {
17115
17139
  return P !== g;
@@ -17122,7 +17146,7 @@ function Kv(n, e) {
17122
17146
  function li(n, e) {
17123
17147
  e === void 0 && (e = {});
17124
17148
  var t = at.plugins.concat(e.plugins || []);
17125
- process.env.NODE_ENV !== "production" && (Fv(n), jf(e, t)), Iv();
17149
+ process.env.NODE_ENV !== "production" && (Fv(n), jf(e, t)), Nv();
17126
17150
  var r = Object.assign({}, e, {
17127
17151
  plugins: t
17128
17152
  }), i = Pv(n);
@@ -17595,7 +17619,7 @@ const Xv = (n = {}) => {
17595
17619
  const s = (t = e.value) === null || t === void 0 ? void 0 : t.options.element, o = s == null ? void 0 : s.cloneNode(!0);
17596
17620
  (r = s == null ? void 0 : s.parentNode) === null || r === void 0 || r.replaceChild(o, s), (i = e.value) === null || i === void 0 || i.destroy();
17597
17621
  }), e;
17598
- }, Zv = /^\s*>\s$/, e1 = It.create({
17622
+ }, Zv = /^\s*>\s$/, e1 = Nt.create({
17599
17623
  name: "blockquote",
17600
17624
  addOptions() {
17601
17625
  return {
@@ -17699,7 +17723,7 @@ const Xv = (n = {}) => {
17699
17723
  })
17700
17724
  ];
17701
17725
  }
17702
- }), o1 = "listItem", Qc = "textStyle", Xc = /^\s*([-+*])\s$/, l1 = It.create({
17726
+ }), o1 = "listItem", Qc = "textStyle", Xc = /^\s*([-+*])\s$/, l1 = Nt.create({
17703
17727
  name: "bulletList",
17704
17728
  addOptions() {
17705
17729
  return {
@@ -17793,7 +17817,7 @@ const Xv = (n = {}) => {
17793
17817
  })
17794
17818
  ];
17795
17819
  }
17796
- }), d1 = /^```([a-z]+)?[\s\n]$/, u1 = /^~~~([a-z]+)?[\s\n]$/, f1 = It.create({
17820
+ }), d1 = /^```([a-z]+)?[\s\n]$/, u1 = /^~~~([a-z]+)?[\s\n]$/, f1 = Nt.create({
17797
17821
  name: "codeBlock",
17798
17822
  addOptions() {
17799
17823
  return {
@@ -17920,7 +17944,7 @@ const Xv = (n = {}) => {
17920
17944
  })
17921
17945
  ];
17922
17946
  }
17923
- }), h1 = It.create({
17947
+ }), h1 = Nt.create({
17924
17948
  name: "doc",
17925
17949
  topNode: !0,
17926
17950
  content: "block+"
@@ -18202,9 +18226,9 @@ function k1(n, e) {
18202
18226
  let { $from: t } = n.state.selection, r = t.parent.contentMatchAt(t.index()).findWrapping(n.state.schema.nodes.text);
18203
18227
  if (!r)
18204
18228
  return !1;
18205
- let i = I.empty;
18229
+ let i = N.empty;
18206
18230
  for (let o = r.length - 1; o >= 0; o--)
18207
- i = I.from(r[o].createAndFill(null, i));
18231
+ i = N.from(r[o].createAndFill(null, i));
18208
18232
  let s = n.state.tr.replace(t.pos, t.pos, new z(i, 0, 0));
18209
18233
  return s.setSelection(Z.near(s.doc.resolve(t.pos + 1))), n.dispatch(s), !1;
18210
18234
  }
@@ -18232,7 +18256,7 @@ const M1 = je.create({
18232
18256
  allowGapCursor: (e = ie(U(n, "allowGapCursor", t))) !== null && e !== void 0 ? e : null
18233
18257
  };
18234
18258
  }
18235
- }), E1 = It.create({
18259
+ }), E1 = Nt.create({
18236
18260
  name: "hardBreak",
18237
18261
  addOptions() {
18238
18262
  return {
@@ -18282,7 +18306,7 @@ const M1 = je.create({
18282
18306
  "Shift-Enter": () => this.editor.commands.setHardBreak()
18283
18307
  };
18284
18308
  }
18285
- }), T1 = It.create({
18309
+ }), T1 = Nt.create({
18286
18310
  name: "heading",
18287
18311
  addOptions() {
18288
18312
  return {
@@ -18572,7 +18596,7 @@ function _1(n, e, t, r) {
18572
18596
  let i = t.getMeta(gr), s;
18573
18597
  if (i)
18574
18598
  return i.historyState;
18575
- t.getMeta(I1) && (n = new Mn(n.done, n.undone, null, 0, -1));
18599
+ t.getMeta(N1) && (n = new Mn(n.done, n.undone, null, 0, -1));
18576
18600
  let o = t.getMeta("appendedTransaction");
18577
18601
  if (t.steps.length == 0)
18578
18602
  return n;
@@ -18630,8 +18654,8 @@ function Ds(n) {
18630
18654
  }
18631
18655
  return kl;
18632
18656
  }
18633
- const gr = new Ze("history"), I1 = new Ze("closeHistory");
18634
- function N1(n = {}) {
18657
+ const gr = new Ze("history"), N1 = new Ze("closeHistory");
18658
+ function I1(n = {}) {
18635
18659
  return n = {
18636
18660
  depth: n.depth || 100,
18637
18661
  newGroupDelay: n.newGroupDelay || 500
@@ -18684,7 +18708,7 @@ const Kf = Wf(!1, !0), Gf = Wf(!0, !0), $1 = je.create({
18684
18708
  },
18685
18709
  addProseMirrorPlugins() {
18686
18710
  return [
18687
- N1(this.options)
18711
+ I1(this.options)
18688
18712
  ];
18689
18713
  },
18690
18714
  addKeyboardShortcuts() {
@@ -18697,7 +18721,7 @@ const Kf = Wf(!1, !0), Gf = Wf(!0, !0), $1 = je.create({
18697
18721
  "Shift-Mod-я": () => this.editor.commands.redo()
18698
18722
  };
18699
18723
  }
18700
- }), R1 = It.create({
18724
+ }), R1 = Nt.create({
18701
18725
  name: "horizontalRule",
18702
18726
  addOptions() {
18703
18727
  return {
@@ -18814,7 +18838,7 @@ const Kf = Wf(!1, !0), Gf = Wf(!0, !0), $1 = je.create({
18814
18838
  })
18815
18839
  ];
18816
18840
  }
18817
- }), q1 = It.create({
18841
+ }), q1 = Nt.create({
18818
18842
  name: "listItem",
18819
18843
  addOptions() {
18820
18844
  return {
@@ -18842,7 +18866,7 @@ const Kf = Wf(!1, !0), Gf = Wf(!0, !0), $1 = je.create({
18842
18866
  "Shift-Tab": () => this.editor.commands.liftListItem(this.name)
18843
18867
  };
18844
18868
  }
18845
- }), U1 = "listItem", td = "textStyle", nd = /^(\d+)\.\s$/, W1 = It.create({
18869
+ }), U1 = "listItem", td = "textStyle", nd = /^(\d+)\.\s$/, W1 = Nt.create({
18846
18870
  name: "orderedList",
18847
18871
  addOptions() {
18848
18872
  return {
@@ -18908,7 +18932,7 @@ const Kf = Wf(!1, !0), Gf = Wf(!0, !0), $1 = je.create({
18908
18932
  n
18909
18933
  ];
18910
18934
  }
18911
- }), K1 = It.create({
18935
+ }), K1 = Nt.create({
18912
18936
  name: "paragraph",
18913
18937
  priority: 1e3,
18914
18938
  addOptions() {
@@ -18992,7 +19016,7 @@ const Kf = Wf(!1, !0), Gf = Wf(!0, !0), $1 = je.create({
18992
19016
  })
18993
19017
  ];
18994
19018
  }
18995
- }), Q1 = It.create({
19019
+ }), Q1 = Nt.create({
18996
19020
  name: "text",
18997
19021
  group: "inline"
18998
19022
  }), X1 = je.create({
@@ -19146,7 +19170,7 @@ tt.prototype = {
19146
19170
  return i.j[n] = o, o;
19147
19171
  }
19148
19172
  };
19149
- const ne = (n, e, t, r, i) => n.ta(e, t, r, i), ye = (n, e, t, r, i) => n.tr(e, t, r, i), rd = (n, e, t, r, i) => n.ts(e, t, r, i), R = (n, e, t, r, i) => n.tt(e, t, r, i), rn = "WORD", ma = "UWORD", Yf = "ASCIINUMERICAL", Qf = "ALPHANUMERICAL", Ji = "LOCALHOST", xa = "TLD", ga = "UTLD", Is = "SCHEME", Hr = "SLASH_SCHEME", lp = "NUM", ya = "WS", ap = "NL", Bi = "OPENBRACE", Pi = "CLOSEBRACE", io = "OPENBRACKET", so = "CLOSEBRACKET", oo = "OPENPAREN", lo = "CLOSEPAREN", ao = "OPENANGLEBRACKET", po = "CLOSEANGLEBRACKET", co = "FULLWIDTHLEFTPAREN", uo = "FULLWIDTHRIGHTPAREN", fo = "LEFTCORNERBRACKET", ho = "RIGHTCORNERBRACKET", bo = "LEFTWHITECORNERBRACKET", mo = "RIGHTWHITECORNERBRACKET", xo = "FULLWIDTHLESSTHAN", go = "FULLWIDTHGREATERTHAN", yo = "AMPERSAND", vo = "APOSTROPHE", wo = "ASTERISK", En = "AT", So = "BACKSLASH", ko = "BACKTICK", Co = "CARET", Pn = "COLON", pp = "COMMA", Mo = "DOLLAR", Rt = "DOT", Eo = "EQUALS", cp = "EXCLAMATION", mt = "HYPHEN", Ai = "PERCENT", To = "PIPE", Oo = "PLUS", Bo = "POUND", _i = "QUERY", dp = "QUOTE", Xf = "FULLWIDTHMIDDLEDOT", up = "SEMI", Ht = "SLASH", Li = "TILDE", Po = "UNDERSCORE", Zf = "EMOJI", Ao = "SYM";
19173
+ const ne = (n, e, t, r, i) => n.ta(e, t, r, i), ye = (n, e, t, r, i) => n.tr(e, t, r, i), rd = (n, e, t, r, i) => n.ts(e, t, r, i), R = (n, e, t, r, i) => n.tt(e, t, r, i), rn = "WORD", ma = "UWORD", Yf = "ASCIINUMERICAL", Qf = "ALPHANUMERICAL", Ji = "LOCALHOST", xa = "TLD", ga = "UTLD", Ns = "SCHEME", Hr = "SLASH_SCHEME", lp = "NUM", ya = "WS", ap = "NL", Bi = "OPENBRACE", Pi = "CLOSEBRACE", io = "OPENBRACKET", so = "CLOSEBRACKET", oo = "OPENPAREN", lo = "CLOSEPAREN", ao = "OPENANGLEBRACKET", po = "CLOSEANGLEBRACKET", co = "FULLWIDTHLEFTPAREN", uo = "FULLWIDTHRIGHTPAREN", fo = "LEFTCORNERBRACKET", ho = "RIGHTCORNERBRACKET", bo = "LEFTWHITECORNERBRACKET", mo = "RIGHTWHITECORNERBRACKET", xo = "FULLWIDTHLESSTHAN", go = "FULLWIDTHGREATERTHAN", yo = "AMPERSAND", vo = "APOSTROPHE", wo = "ASTERISK", En = "AT", So = "BACKSLASH", ko = "BACKTICK", Co = "CARET", Pn = "COLON", pp = "COMMA", Mo = "DOLLAR", Rt = "DOT", Eo = "EQUALS", cp = "EXCLAMATION", mt = "HYPHEN", Ai = "PERCENT", To = "PIPE", Oo = "PLUS", Bo = "POUND", _i = "QUERY", dp = "QUOTE", Xf = "FULLWIDTHMIDDLEDOT", up = "SEMI", Ht = "SLASH", Li = "TILDE", Po = "UNDERSCORE", Zf = "EMOJI", Ao = "SYM";
19150
19174
  var eh = /* @__PURE__ */ Object.freeze({
19151
19175
  __proto__: null,
19152
19176
  ALPHANUMERICAL: Qf,
@@ -19192,7 +19216,7 @@ var eh = /* @__PURE__ */ Object.freeze({
19192
19216
  QUOTE: dp,
19193
19217
  RIGHTCORNERBRACKET: ho,
19194
19218
  RIGHTWHITECORNERBRACKET: mo,
19195
- SCHEME: Is,
19219
+ SCHEME: Ns,
19196
19220
  SEMI: up,
19197
19221
  SLASH: Ht,
19198
19222
  SLASH_SCHEME: Hr,
@@ -19254,7 +19278,7 @@ function lw(n = []) {
19254
19278
  }, e), ur(ga, {
19255
19279
  utld: !0,
19256
19280
  alpha: !0
19257
- }, e), Sn(t, "file", Is, rn, h), Sn(t, "mailto", Is, rn, h), Sn(t, "http", Hr, rn, h), Sn(t, "https", Hr, rn, h), Sn(t, "ftp", Hr, rn, h), Sn(t, "ftps", Hr, rn, h), ur(Is, {
19281
+ }, e), Sn(t, "file", Ns, rn, h), Sn(t, "mailto", Ns, rn, h), Sn(t, "http", Hr, rn, h), Sn(t, "https", Hr, rn, h), Sn(t, "ftp", Hr, rn, h), Sn(t, "ftps", Hr, rn, h), ur(Ns, {
19258
19282
  scheme: !0,
19259
19283
  ascii: !0
19260
19284
  }, e), ur(Hr, {
@@ -20081,7 +20105,7 @@ var Ut;
20081
20105
  (function(n) {
20082
20106
  n.direct = "direct", n.patchObject = "patch object", n.patchFunction = "patch function";
20083
20107
  })(Ut || (Ut = {}));
20084
- const Nn = typeof window < "u", cd = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof global == "object" && global.global === global ? global : typeof globalThis == "object" ? globalThis : { HTMLElement: null };
20108
+ const In = typeof window < "u", cd = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof global == "object" && global.global === global ? global : typeof globalThis == "object" ? globalThis : { HTMLElement: null };
20085
20109
  function Aw(n, { autoBom: e = !1 } = {}) {
20086
20110
  return e && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(n.type) ? new Blob(["\uFEFF", n], { type: n.type }) : n;
20087
20111
  }
@@ -20102,7 +20126,7 @@ function lh(n) {
20102
20126
  }
20103
20127
  return e.status >= 200 && e.status <= 299;
20104
20128
  }
20105
- function Ns(n) {
20129
+ function Is(n) {
20106
20130
  try {
20107
20131
  n.dispatchEvent(new MouseEvent("click"));
20108
20132
  } catch {
@@ -20110,7 +20134,7 @@ function Ns(n) {
20110
20134
  t.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), n.dispatchEvent(t);
20111
20135
  }
20112
20136
  }
20113
- const $s = typeof navigator == "object" ? navigator : { userAgent: "" }, ah = /Macintosh/.test($s.userAgent) && /AppleWebKit/.test($s.userAgent) && !/Safari/.test($s.userAgent), ph = Nn ? (
20137
+ const $s = typeof navigator == "object" ? navigator : { userAgent: "" }, ah = /Macintosh/.test($s.userAgent) && /AppleWebKit/.test($s.userAgent) && !/Safari/.test($s.userAgent), ph = In ? (
20114
20138
  // Use download attribute first if possible (#193 Lumia mobile) unless this is a macOS WebView or mini program
20115
20139
  typeof HTMLAnchorElement < "u" && "download" in HTMLAnchorElement.prototype && !ah ? _w : (
20116
20140
  // Use msSaveOrOpenBlob as a second approach
@@ -20123,10 +20147,10 @@ const $s = typeof navigator == "object" ? navigator : { userAgent: "" }, ah = /M
20123
20147
  };
20124
20148
  function _w(n, e = "download", t) {
20125
20149
  const r = document.createElement("a");
20126
- r.download = e, r.rel = "noopener", typeof n == "string" ? (r.href = n, r.origin !== location.origin ? lh(r.href) ? mp(n, e, t) : (r.target = "_blank", Ns(r)) : Ns(r)) : (r.href = URL.createObjectURL(n), setTimeout(function() {
20150
+ r.download = e, r.rel = "noopener", typeof n == "string" ? (r.href = n, r.origin !== location.origin ? lh(r.href) ? mp(n, e, t) : (r.target = "_blank", Is(r)) : Is(r)) : (r.href = URL.createObjectURL(n), setTimeout(function() {
20127
20151
  URL.revokeObjectURL(r.href);
20128
20152
  }, 4e4), setTimeout(function() {
20129
- Ns(r);
20153
+ Is(r);
20130
20154
  }, 0));
20131
20155
  }
20132
20156
  function Lw(n, e = "download", t) {
@@ -20136,7 +20160,7 @@ function Lw(n, e = "download", t) {
20136
20160
  else {
20137
20161
  const r = document.createElement("a");
20138
20162
  r.href = n, r.target = "_blank", setTimeout(function() {
20139
- Ns(r);
20163
+ Is(r);
20140
20164
  });
20141
20165
  }
20142
20166
  else
@@ -20175,7 +20199,7 @@ function ch() {
20175
20199
  function dh(n) {
20176
20200
  return n instanceof Error && n.message.toLowerCase().includes("document is not focused") ? (Ae('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.', "warn"), !0) : !1;
20177
20201
  }
20178
- async function Iw(n) {
20202
+ async function Nw(n) {
20179
20203
  if (!ch())
20180
20204
  try {
20181
20205
  await navigator.clipboard.writeText(JSON.stringify(n.state.value)), Ae("Global state copied to clipboard.");
@@ -20185,7 +20209,7 @@ async function Iw(n) {
20185
20209
  Ae("Failed to serialize the state. Check the console for more details.", "error"), console.error(e);
20186
20210
  }
20187
20211
  }
20188
- async function Nw(n) {
20212
+ async function Iw(n) {
20189
20213
  if (!ch())
20190
20214
  try {
20191
20215
  uh(n, JSON.parse(await navigator.clipboard.readText())), Ae("Global state pasted from clipboard.");
@@ -20340,14 +20364,14 @@ function Uw(n, e) {
20340
20364
  {
20341
20365
  icon: "content_copy",
20342
20366
  action: () => {
20343
- Iw(e);
20367
+ Nw(e);
20344
20368
  },
20345
20369
  tooltip: "Serialize and copy the state"
20346
20370
  },
20347
20371
  {
20348
20372
  icon: "content_paste",
20349
20373
  action: async () => {
20350
- await Nw(e), t.sendInspectorTree(qe), t.sendInspectorState(qe);
20374
+ await Iw(e), t.sendInspectorTree(qe), t.sendInspectorState(qe);
20351
20375
  },
20352
20376
  tooltip: "Replace the state with the content of your clipboard"
20353
20377
  },
@@ -20619,7 +20643,7 @@ function Gw() {
20619
20643
  let t = [], r = [];
20620
20644
  const i = An({
20621
20645
  install(s) {
20622
- Qi(i), i._a = s, s.provide(oh, i), s.config.globalProperties.$pinia = i, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Nn && Uw(s, i), r.forEach((o) => t.push(o)), r = [];
20646
+ Qi(i), i._a = s, s.provide(oh, i), s.config.globalProperties.$pinia = i, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && In && Uw(s, i), r.forEach((o) => t.push(o)), r = [];
20623
20647
  },
20624
20648
  use(s) {
20625
20649
  return this._a ? t.push(s) : r.push(s), this;
@@ -20632,7 +20656,7 @@ function Gw() {
20632
20656
  _s: /* @__PURE__ */ new Map(),
20633
20657
  state: e
20634
20658
  });
20635
- return process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Nn && typeof Proxy < "u" && i.use(Kw), i;
20659
+ return process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && In && typeof Proxy < "u" && i.use(Kw), i;
20636
20660
  }
20637
20661
  function bh(n, e) {
20638
20662
  for (const t in e) {
@@ -20654,7 +20678,7 @@ function ud(n, e, t, r = mh) {
20654
20678
  };
20655
20679
  return !t && jh() && zh(i), i;
20656
20680
  }
20657
- function Ir(n, ...e) {
20681
+ function Nr(n, ...e) {
20658
20682
  n.slice().forEach((t) => {
20659
20683
  t(...e);
20660
20684
  });
@@ -20690,7 +20714,7 @@ function bd(n, e, t, r) {
20690
20714
  // use ref() to unwrap refs inside state TODO: check if this is still necessary
20691
20715
  wp(E(i ? i() : {}).value)
20692
20716
  ) : wp(t.state.value[n]);
20693
- return xt(c, s, Object.keys(o || {}).reduce((d, f) => (process.env.NODE_ENV !== "production" && f in c && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${f}" in store "${n}".`), d[f] = An(N(() => {
20717
+ return xt(c, s, Object.keys(o || {}).reduce((d, f) => (process.env.NODE_ENV !== "production" && f in c && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${f}" in store "${n}".`), d[f] = An(I(() => {
20694
20718
  Qi(t);
20695
20719
  const h = t._s.get(n);
20696
20720
  return o[f].call(h, h);
@@ -20727,7 +20751,7 @@ function Sa(n, e, t = {}, r, i, s) {
20727
20751
  const $ = m = Symbol();
20728
20752
  oe().then(() => {
20729
20753
  m === $ && (p = !0);
20730
- }), c = !0, Ir(d, D, r.state.value[n]);
20754
+ }), c = !0, Nr(d, D, r.state.value[n]);
20731
20755
  }
20732
20756
  const S = s ? function() {
20733
20757
  const { state: D } = t, $ = D ? D() : {};
@@ -20755,7 +20779,7 @@ function Sa(n, e, t = {}, r, i, s) {
20755
20779
  function se(re) {
20756
20780
  he.push(re);
20757
20781
  }
20758
- Ir(f, {
20782
+ Nr(f, {
20759
20783
  args: K,
20760
20784
  name: $[Al],
20761
20785
  store: B,
@@ -20766,9 +20790,9 @@ function Sa(n, e, t = {}, r, i, s) {
20766
20790
  try {
20767
20791
  G = L.apply(this && this.$id === n ? this : B, K);
20768
20792
  } catch (re) {
20769
- throw Ir(he, re), re;
20793
+ throw Nr(he, re), re;
20770
20794
  }
20771
- return G instanceof Promise ? G.then((re) => (Ir(ce, re), re)).catch((re) => (Ir(he, re), Promise.reject(re))) : (Ir(ce, G), G);
20795
+ return G instanceof Promise ? G.then((re) => (Nr(ce, re), re)).catch((re) => (Nr(he, re), Promise.reject(re))) : (Nr(ce, G), G);
20772
20796
  };
20773
20797
  return $[fd] = !0, $[Al] = D, $;
20774
20798
  }, O = /* @__PURE__ */ An({
@@ -20794,7 +20818,7 @@ function Sa(n, e, t = {}, r, i, s) {
20794
20818
  return $;
20795
20819
  },
20796
20820
  $dispose: k
20797
- }, B = Fh(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Nn ? xt(
20821
+ }, B = Fh(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && In ? xt(
20798
20822
  {
20799
20823
  _hmrPayload: O,
20800
20824
  _customProperties: An(/* @__PURE__ */ new Set())
@@ -20816,7 +20840,7 @@ function Sa(n, e, t = {}, r, i, s) {
20816
20840
  } else process.env.NODE_ENV !== "production" && hd(D) && (O.getters[L] = s ? (
20817
20841
  // @ts-expect-error
20818
20842
  t.getters[L]
20819
- ) : D, Nn && (q._getters || // @ts-expect-error: same
20843
+ ) : D, In && (q._getters || // @ts-expect-error: same
20820
20844
  (q._getters = An([]))).push(L));
20821
20845
  }
20822
20846
  if (xt(B, q), xt(Ve(B), q), Object.defineProperty(B, "$state", {
@@ -20847,7 +20871,7 @@ function Sa(n, e, t = {}, r, i, s) {
20847
20871
  for (const D in L._hmrPayload.getters) {
20848
20872
  const $ = L._hmrPayload.getters[D], K = s ? (
20849
20873
  // special handling of options api
20850
- N(() => (Qi(r), $.call(B, B)))
20874
+ I(() => (Qi(r), $.call(B, B)))
20851
20875
  ) : $;
20852
20876
  Os(B, D, K);
20853
20877
  }
@@ -20856,7 +20880,7 @@ function Sa(n, e, t = {}, r, i, s) {
20856
20880
  }), Object.keys(B._hmrPayload.actions).forEach((D) => {
20857
20881
  D in L._hmrPayload.actions || Pl(B, D);
20858
20882
  }), B._hmrPayload = L._hmrPayload, B._getters = L._getters, B._hotUpdating = !1;
20859
- })), process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Nn) {
20883
+ })), process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && In) {
20860
20884
  const L = {
20861
20885
  writable: !0,
20862
20886
  configurable: !0,
@@ -20868,7 +20892,7 @@ function Sa(n, e, t = {}, r, i, s) {
20868
20892
  });
20869
20893
  }
20870
20894
  return r._p.forEach((L) => {
20871
- if (process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Nn) {
20895
+ if (process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && In) {
20872
20896
  const D = o.run(() => L({
20873
20897
  store: B,
20874
20898
  app: r._a,
@@ -20907,7 +20931,7 @@ This will fail in production.`);
20907
20931
  const d = "__hot:" + r, f = s ? Sa(d, e, i, l, !0) : bd(d, xt({}, i), l, !0);
20908
20932
  a._hotUpdate(f), delete l.state.value[d], l._s.delete(d);
20909
20933
  }
20910
- if (process.env.NODE_ENV !== "production" && Nn) {
20934
+ if (process.env.NODE_ENV !== "production" && In) {
20911
20935
  const d = Ad();
20912
20936
  if (d && d.proxy && // avoid adding stores that are just built for hot module replacement
20913
20937
  !a) {
@@ -21317,7 +21341,7 @@ const Zw = /* @__PURE__ */ Xw("pageBuilderState", {
21317
21341
  }, rS = { class: "pbx-myPrimaryInputError pbx-mt-2 pbx-mb-0 pbx-py-0 pbx-self-start" }, iS = { class: "pbx-blockease-linear pbx-duration-200 pbx-block pbx-ease-linear" }, sS = { key: 0 }, oS = { class: "pbx-relative pbx-rounded-lg" }, lS = { 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" }, aS = { 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" }, pS = { class: "pbx-flex pbx-items-center pbx-p-1 pbx-rounded-full pbx-border-solid pbx-border pbx-border-gray-200 pbx-shadow-sm" }, cS = { class: "pbx-px-2 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-w-max" }, dS = { class: "pbx-px-2 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-w-max" }, uS = { class: "pbx-px-2 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-w-max" }, fS = { class: "pbx-px-2 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-w-max" }, hS = { class: "pbx-px-2 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-w-max" }, bS = { class: "pbx-px-2 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-w-max" }, mS = {
21318
21342
  __name: "TipTapInput",
21319
21343
  setup(n) {
21320
- const e = Ce(), { translate: t } = Me(), r = Se, i = E(!1), s = E(""), o = E(1), l = E(""), a = E(""), p = E(""), c = E(null), d = E(null), f = E(null), h = E(null), b = E(null), x = N(() => r.getElement), m = E(""), v = N(() => k.value ? k.value.getHTML() : null), S = E(0);
21344
+ const e = Ce(), { translate: t } = Me(), r = Se, i = E(!1), s = E(""), o = E(1), l = E(""), a = E(""), p = E(""), c = E(null), d = E(null), f = E(null), h = E(null), b = E(null), x = I(() => r.getElement), m = E(""), v = I(() => k.value ? k.value.getHTML() : null), S = E(0);
21321
21345
  ee(x, (D) => {
21322
21346
  const $ = document.createElement("div");
21323
21347
  if (D) {
@@ -21586,8 +21610,8 @@ const vS = /* @__PURE__ */ Jo(xS, [["render", yS]]), wS = {
21586
21610
  }
21587
21611
  };
21588
21612
  function kS(n, e, t) {
21589
- let r = E(t == null ? void 0 : t.value), i = N(() => n.value !== void 0);
21590
- return [N(() => i.value ? n.value : r.value), function(s) {
21613
+ let r = E(t == null ? void 0 : t.value), i = I(() => n.value !== void 0);
21614
+ return [I(() => i.value ? n.value : r.value), function(s) {
21591
21615
  return i.value || (r.value = s), e == null ? void 0 : e(s);
21592
21616
  }];
21593
21617
  }
@@ -21672,14 +21696,14 @@ function DS(n, e = (t) => t) {
21672
21696
  return o & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : o & Node.DOCUMENT_POSITION_PRECEDING ? 1 : 0;
21673
21697
  });
21674
21698
  }
21675
- function IS() {
21699
+ function NS() {
21676
21700
  return /iPhone/gi.test(window.navigator.platform) || /Mac/gi.test(window.navigator.platform) && window.navigator.maxTouchPoints > 0;
21677
21701
  }
21678
- function NS() {
21702
+ function IS() {
21679
21703
  return /Android/gi.test(window.navigator.userAgent);
21680
21704
  }
21681
21705
  function $S() {
21682
- return IS() || NS();
21706
+ return NS() || IS();
21683
21707
  }
21684
21708
  function Bs(n, e, t) {
21685
21709
  gp.isServer || ii((r) => {
@@ -21691,7 +21715,7 @@ function RS(n, e, t) {
21691
21715
  window.addEventListener(n, e, t), r(() => window.removeEventListener(n, e, t));
21692
21716
  });
21693
21717
  }
21694
- function HS(n, e, t = N(() => !0)) {
21718
+ function HS(n, e, t = I(() => !0)) {
21695
21719
  function r(s, o) {
21696
21720
  if (!t.value || s.defaultPrevented) return;
21697
21721
  let l = o(s);
@@ -21935,13 +21959,13 @@ let ss = Xe({ name: "Listbox", emits: { "update:modelValue": (n) => !0 }, props:
21935
21959
  let g = c.value !== null ? a.value[c.value] : null, O = DS(k(a.value.slice()), (B) => ke(B.dataRef.domRef)), T = g ? O.indexOf(g) : null;
21936
21960
  return T === -1 && (T = null), { options: O, activeOptionIndex: T };
21937
21961
  }
21938
- let h = N(() => n.multiple ? 1 : 0), [b, x] = kS(N(() => n.modelValue), (k) => r("update:modelValue", k), N(() => n.defaultValue)), m = N(() => b.value === void 0 ? _t(h.value, { 1: [], 0: void 0 }) : b.value), v = { listboxState: i, value: m, mode: h, compare(k, g) {
21962
+ let h = I(() => n.multiple ? 1 : 0), [b, x] = kS(I(() => n.modelValue), (k) => r("update:modelValue", k), I(() => n.defaultValue)), m = I(() => b.value === void 0 ? _t(h.value, { 1: [], 0: void 0 }) : b.value), v = { listboxState: i, value: m, mode: h, compare(k, g) {
21939
21963
  if (typeof n.by == "string") {
21940
21964
  let O = n.by;
21941
21965
  return (k == null ? void 0 : k[O]) === (g == null ? void 0 : g[O]);
21942
21966
  }
21943
21967
  return n.by(k, g);
21944
- }, orientation: N(() => n.horizontal ? "horizontal" : "vertical"), labelRef: s, buttonRef: o, optionsRef: l, disabled: N(() => n.disabled), options: a, searchQuery: p, activeOptionIndex: c, activationTrigger: d, closeListbox() {
21968
+ }, orientation: I(() => n.horizontal ? "horizontal" : "vertical"), labelRef: s, buttonRef: o, optionsRef: l, disabled: I(() => n.disabled), options: a, searchQuery: p, activeOptionIndex: c, activationTrigger: d, closeListbox() {
21945
21969
  n.disabled || i.value !== 1 && (i.value = 1, c.value = null);
21946
21970
  }, openListbox() {
21947
21971
  n.disabled || i.value !== 0 && (i.value = 0);
@@ -21977,8 +22001,8 @@ let ss = Xe({ name: "Listbox", emits: { "update:modelValue": (n) => !0 }, props:
21977
22001
  HS([o, l], (k, g) => {
21978
22002
  var O;
21979
22003
  v.closeListbox(), yh(g, yp.Loose) || (k.preventDefault(), (O = ke(o)) == null || O.focus());
21980
- }, N(() => i.value === 0)), Tn(Oh, v), KS(N(() => _t(i.value, { 0: Xi.Open, 1: Xi.Closed })));
21981
- let S = N(() => {
22004
+ }, I(() => i.value === 0)), Tn(Oh, v), KS(I(() => _t(i.value, { 0: Xi.Open, 1: Xi.Closed })));
22005
+ let S = I(() => {
21982
22006
  var k;
21983
22007
  return (k = ke(o)) == null ? void 0 : k.closest("form");
21984
22008
  });
@@ -22048,7 +22072,7 @@ let Or = Xe({ name: "ListboxButton", props: { as: { type: [Object, String], defa
22048
22072
  return (f = ke(o.optionsRef)) == null ? void 0 : f.focus({ preventScroll: !0 });
22049
22073
  })));
22050
22074
  }
22051
- let c = FS(N(() => ({ as: n.as, type: e.type })), o.buttonRef);
22075
+ let c = FS(I(() => ({ as: n.as, type: e.type })), o.buttonRef);
22052
22076
  return () => {
22053
22077
  var d, f;
22054
22078
  let h = { open: o.listboxState.value === 0, disabled: o.disabled.value, value: o.value.value }, { ...b } = n, x = { ref: o.buttonRef, id: s, type: c.value, "aria-haspopup": "listbox", "aria-controls": (d = ke(o.optionsRef)) == null ? void 0 : d.id, "aria-expanded": o.listboxState.value === 0, "aria-labelledby": o.labelRef.value ? [(f = ke(o.labelRef)) == null ? void 0 : f.id, s].join(" ") : void 0, disabled: o.disabled.value === !0 ? !0 : void 0, onKeydown: l, onKeyup: a, onClick: p };
@@ -22096,7 +22120,7 @@ let Or = Xe({ name: "ListboxButton", props: { as: { type: [Object, String], defa
22096
22120
  break;
22097
22121
  }
22098
22122
  }
22099
- let p = WS(), c = N(() => p !== null ? (p.value & Xi.Open) === Xi.Open : o.listboxState.value === 0);
22123
+ let p = WS(), c = I(() => p !== null ? (p.value & Xi.Open) === Xi.Open : o.listboxState.value === 0);
22100
22124
  return () => {
22101
22125
  var d, f;
22102
22126
  let h = { open: o.listboxState.value === 0 }, { ...b } = n, x = { "aria-activedescendant": o.activeOptionIndex.value === null || (d = o.options.value[o.activeOptionIndex.value]) == null ? void 0 : d.id, "aria-multiselectable": o.mode.value === 1 ? !0 : void 0, "aria-labelledby": (f = ke(o.buttonRef)) == null ? void 0 : f.id, "aria-orientation": o.orientation.value, id: s, onKeydown: a, role: "listbox", tabIndex: 0, ref: o.optionsRef };
@@ -22106,11 +22130,11 @@ let Or = Xe({ name: "ListboxButton", props: { as: { type: [Object, String], defa
22106
22130
  var i;
22107
22131
  let s = (i = n.id) != null ? i : `headlessui-listbox-option-${Yo()}`, o = is("ListboxOption"), l = E(null);
22108
22132
  r({ el: l, $el: l });
22109
- let a = N(() => o.activeOptionIndex.value !== null ? o.options.value[o.activeOptionIndex.value].id === s : !1), p = N(() => _t(o.mode.value, { 0: () => o.compare(Ve(o.value.value), Ve(n.value)), 1: () => Ve(o.value.value).some((k) => o.compare(Ve(k), Ve(n.value))) })), c = N(() => _t(o.mode.value, { 1: () => {
22133
+ let a = I(() => o.activeOptionIndex.value !== null ? o.options.value[o.activeOptionIndex.value].id === s : !1), p = I(() => _t(o.mode.value, { 0: () => o.compare(Ve(o.value.value), Ve(n.value)), 1: () => Ve(o.value.value).some((k) => o.compare(Ve(k), Ve(n.value))) })), c = I(() => _t(o.mode.value, { 1: () => {
22110
22134
  var k;
22111
22135
  let g = Ve(o.value.value);
22112
22136
  return ((k = o.options.value.find((O) => g.some((T) => o.compare(Ve(T), Ve(O.dataRef.value))))) == null ? void 0 : k.id) === s;
22113
- }, 0: () => p.value })), d = QS(l), f = N(() => ({ disabled: n.disabled, value: n.value, get textValue() {
22137
+ }, 0: () => p.value })), d = QS(l), f = I(() => ({ disabled: n.disabled, value: n.value, get textValue() {
22114
22138
  return d();
22115
22139
  }, domRef: l }));
22116
22140
  dn(() => o.registerOption(s, f)), Uh(() => o.unregisterOption(s)), dn(() => {
@@ -22170,7 +22194,7 @@ const r2 = { class: "pbx-relative" }, i2 = { class: "pbx-flex pbx-justify-start
22170
22194
  }
22171
22195
  },
22172
22196
  setup(n) {
22173
- const { translate: e } = Me(), t = Ce(), r = Se, i = E(null), s = N(() => r.getTextColor);
22197
+ const { translate: e } = Me(), t = Ce(), r = Se, i = E(null), s = I(() => r.getTextColor);
22174
22198
  return ee(
22175
22199
  s,
22176
22200
  async (o) => {
@@ -22292,7 +22316,7 @@ const r2 = { class: "pbx-relative" }, i2 = { class: "pbx-flex pbx-justify-start
22292
22316
  }
22293
22317
  },
22294
22318
  setup(n) {
22295
- const { translate: e } = Me(), t = Ce(), r = Se, i = E(null), s = N(() => r.getBackgroundColor);
22319
+ const { translate: e } = Me(), t = Ce(), r = Se, i = E(null), s = I(() => r.getBackgroundColor);
22296
22320
  return ee(
22297
22321
  s,
22298
22322
  async (o) => {
@@ -22407,21 +22431,21 @@ const r2 = { class: "pbx-relative" }, i2 = { class: "pbx-flex pbx-justify-start
22407
22431
  }, O2 = {
22408
22432
  __name: "EditGetElement",
22409
22433
  setup(n) {
22410
- const { translate: e } = Me(), t = Ce(), r = Se, i = Vn("CustomMediaComponent"), s = N(() => r.getElement);
22411
- N(() => {
22434
+ const { translate: e } = Me(), t = Ce(), r = Se, i = Vn("CustomMediaComponent"), s = I(() => r.getElement);
22435
+ I(() => {
22412
22436
  var se;
22413
22437
  return (se = s.value) == null ? void 0 : se.tagName;
22414
22438
  });
22415
- const o = N(() => {
22439
+ const o = I(() => {
22416
22440
  const se = r.getShowModalTipTap;
22417
22441
  return se && S(), se;
22418
- }), l = N(() => r.getComponent), a = E(""), p = E(1), c = E(""), d = E(""), f = E(""), h = E(null), b = E(null), x = E(null), m = E(null), v = E(null), S = function() {
22442
+ }), l = I(() => r.getComponent), a = E(""), p = E(1), c = E(""), d = E(""), f = E(""), h = E(null), b = E(null), x = E(null), m = E(null), v = E(null), S = function() {
22419
22443
  t.toggleTipTapModal(!0), a.value = "success", p.value = 2, c.value = e("Manage Content"), d.value = null, f.value = null, h.value = null, b.value = "Save", x.value = function() {
22420
22444
  t.toggleTipTapModal(!1);
22421
22445
  }, v.value = function() {
22422
22446
  t.toggleTipTapModal(!0);
22423
22447
  };
22424
- }, k = N(() => r.getBasePrimaryImage), g = E(!1), O = E(""), T = E(""), B = E(""), H = E(null), q = E(null), L = E(null), D = function() {
22448
+ }, k = I(() => r.getBasePrimaryImage), g = E(!1), O = E(""), T = E(""), B = E(""), H = E(null), q = E(null), L = E(null), D = function() {
22425
22449
  g.value = !0, O.value = e("Media Library"), T.value = null, B.value = e("Close"), H.value = e(" Select image"), L.value = function() {
22426
22450
  g.value = !1;
22427
22451
  };
@@ -23265,7 +23289,7 @@ function P2() {
23265
23289
  const A2 = {
23266
23290
  key: 0,
23267
23291
  class: "pbx-min-h-[90vh] pbx-h-[90vh]"
23268
- }, _2 = { class: "pbx-flex pbx-items-center pbx-justify-center" }, L2 = { 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]" }, D2 = { 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)]" }, I2 = { key: 1 }, N2 = { class: "pbx-mb-4 pbx-flex pbx-jusitify-left pbx-items-center pbx-gap-2" }, $2 = ["onClick"], R2 = {
23292
+ }, _2 = { class: "pbx-flex pbx-items-center pbx-justify-center" }, L2 = { 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]" }, D2 = { 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)]" }, N2 = { key: 1 }, I2 = { class: "pbx-mb-4 pbx-flex pbx-jusitify-left pbx-items-center pbx-gap-2" }, $2 = ["onClick"], R2 = {
23269
23293
  key: 0,
23270
23294
  class: "pbx-mb-8"
23271
23295
  }, H2 = { class: "pbx-myQuaternaryHeader pbx-mb-4" }, F2 = { class: "pbx-mb-4 pbx-flex pbx-jusitify-left pbx-items-center pbx-gap-2" }, j2 = ["onClick"], z2 = { class: "pbx-grid pbx-grid-cols-1 sm:pbx-grid-cols-2 md:pbx-grid-cols-3 pbx-gap-4 pbx-pb-4 pbx-min-h-[96rem]" }, V2 = ["onClick"], q2 = { class: "pbx-overflow-hidden pbx-whitespace-pre-line pbx-flex-1 pbx-h-auto pbx-border-0 pbx-border-solid pbx-border-b pbx-border-gray-200 lg:pbx-py-10 pbx-py-8 pbx-px-2" }, U2 = ["innerHTML"], W2 = { class: "pbx-p-3" }, K2 = { class: "pbx-myPrimaryParagraph pbx-text-sm pbx-font-normal" }, G2 = { class: "pbx-myPrimaryParagraph pbx-text-xs pbx-font-normal pbx-pt-2" }, J2 = { class: "pbx-mb-8" }, Y2 = { class: "pbx-myQuaternaryHeader pbx-mb-4" }, Q2 = { class: "pbx-px-2 pbx-grid pbx-grid-cols-1 sm:pbx-grid-cols-2 md:pbx-grid-cols-3 lg:pbx-grid-cols-4 pbx-gap-4" }, X2 = ["onClick"], Z2 = { class: "pbx-max-h-72 pbx-cursor-pointer pbx-object-contain pbx-bg-white pbx-mx-auto" }, ek = { class: "pbx-myPrimaryParagraph pbx-text-base pbx-font-medium" }, tk = { class: "pbx-myPrimaryParagraph pbx-text-xs pbx-font-normal pbx-pt-2" }, nk = {
@@ -23280,13 +23304,13 @@ const A2 = {
23280
23304
  }
23281
23305
  },
23282
23306
  setup(n) {
23283
- const { translate: e } = Me(), t = Ce(), r = E(!1), i = E("Components"), s = ["Components", "Themes"], o = E("All"), l = N(() => {
23307
+ const { translate: e } = Me(), t = Ce(), r = E(!1), i = E("Components"), s = ["Components", "Themes"], o = E("All"), l = I(() => {
23284
23308
  const m = Ll[0].components.data.map((v) => v.category);
23285
23309
  return ["All", ...new Set(m)];
23286
- }), a = N(() => o.value === "All" ? Ll[0].components.data : Ll[0].components.data.filter((m) => m.category === o.value)), p = E("All"), c = N(() => {
23310
+ }), a = I(() => o.value === "All" ? Ll[0].components.data : Ll[0].components.data.filter((m) => m.category === o.value)), p = E("All"), c = I(() => {
23287
23311
  const m = Dl[0].themes.data.map((v) => v.category);
23288
23312
  return ["All", ...new Set(m)];
23289
- }), d = N(() => p.value === "All" ? Dl[0].themes.data : Dl[0].themes.data.filter((m) => m.category === p.value)), { closeAddComponentModal: f } = P2(), h = async function(m) {
23313
+ }), d = I(() => p.value === "All" ? Dl[0].themes.data : Dl[0].themes.data.filter((m) => m.category === p.value)), { closeAddComponentModal: f } = P2(), h = async function(m) {
23290
23314
  r.value = !0, await t.addTheme(m), f(), r.value = !1;
23291
23315
  }, b = async function(m) {
23292
23316
  r.value = !0;
@@ -23315,8 +23339,8 @@ const A2 = {
23315
23339
  ])
23316
23340
  ])
23317
23341
  ])) : A("", !0),
23318
- r.value ? A("", !0) : (w(), M("div", I2, [
23319
- u("div", N2, [
23342
+ r.value ? A("", !0) : (w(), M("div", N2, [
23343
+ u("div", I2, [
23320
23344
  (w(), M(X, null, de(s, (S) => u("button", {
23321
23345
  key: S,
23322
23346
  onClick: (k) => i.value = S,
@@ -23473,7 +23497,7 @@ function kk(n, e, t, r, i, s) {
23473
23497
  class: Q(["pbx-flex pbx-flex-col pbx-border-solid pbx-border pbx-border-gray-400", { "": r.expanded }])
23474
23498
  }, [
23475
23499
  u("div", {
23476
- 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 pbx-bg-white hover:pbx-bg-myPrimaryLightGrayColor",
23500
+ 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 pbx-bg-white hover:pbx-bg-myPrimaryLightGrayColor pbx-select-none",
23477
23501
  onClick: e[0] || (e[0] = (o) => r.expanded = !r.expanded)
23478
23502
  }, [
23479
23503
  u("p", vk, [
@@ -23500,7 +23524,7 @@ const Dt = /* @__PURE__ */ Jo(yk, [["render", kk]]), Ck = { class: "pbx-myPrimar
23500
23524
  }, kd = {
23501
23525
  __name: "ClassEditor",
23502
23526
  setup(n) {
23503
- const { translate: e } = Me(), t = Ce(), r = Se, i = E(null), s = N(() => r.getCurrentClasses);
23527
+ const { translate: e } = Me(), t = Ce(), r = Se, i = E(null), s = I(() => r.getCurrentClasses);
23504
23528
  ee(
23505
23529
  s,
23506
23530
  (p) => {
@@ -23556,7 +23580,7 @@ const Dt = /* @__PURE__ */ Jo(yk, [["render", kk]]), Ck = { class: "pbx-myPrimar
23556
23580
  "onUpdate:modelValue": c[0] || (c[0] = (d) => o.value = d),
23557
23581
  type: "text",
23558
23582
  placeholder: y(e)("Type class"),
23559
- onKeydown: c[1] || (c[1] = Nl((d) => a(), ["enter"])),
23583
+ onKeydown: c[1] || (c[1] = Il((d) => a(), ["enter"])),
23560
23584
  autocomplete: "off",
23561
23585
  class: "pbx-myPrimaryInput"
23562
23586
  }, null, 40, _k), [
@@ -23574,7 +23598,7 @@ const Dt = /* @__PURE__ */ Jo(yk, [["render", kk]]), Ck = { class: "pbx-myPrimar
23574
23598
  _: 1
23575
23599
  }));
23576
23600
  }
23577
- }, Dk = { class: "pbx-myPrimaryInputLabel pbx-my-4" }, Ik = { class: "pbx-flex pbx-flex-row pbx-flex-wrap pbx-gap-2 pbx-mt-2 pbx-mb-4" }, Nk = ["onClick"], $k = { class: "pbx-flex pbx-items-center pbx-gap-1" }, Rk = { class: "pbx-mr-1" }, Hk = { class: "pbx-my-2 pbx-py-2" }, Fk = {
23601
+ }, Dk = { class: "pbx-myPrimaryInputLabel pbx-my-4" }, Nk = { class: "pbx-flex pbx-flex-row pbx-flex-wrap pbx-gap-2 pbx-mt-2 pbx-mb-4" }, Ik = ["onClick"], $k = { class: "pbx-flex pbx-items-center pbx-gap-1" }, Rk = { class: "pbx-mr-1" }, Hk = { class: "pbx-my-2 pbx-py-2" }, Fk = {
23578
23602
  for: "custom-style-property",
23579
23603
  class: "pbx-myPrimaryInputLabel"
23580
23604
  }, jk = { class: "pbx-flex pbx-gap-2 pbx-flex-col pbx-item-center" }, zk = ["placeholder", "onKeydown"], Vk = ["placeholder"], qk = {
@@ -23583,7 +23607,7 @@ const Dt = /* @__PURE__ */ Jo(yk, [["render", kk]]), Ck = { class: "pbx-myPrimar
23583
23607
  }, Cd = {
23584
23608
  __name: "StyleEditor",
23585
23609
  setup(n) {
23586
- const { translate: e } = Me(), t = Ce(), r = Se, i = E(null), s = N(() => r.getCurrentStyles);
23610
+ const { translate: e } = Me(), t = Ce(), r = Se, i = E(null), s = I(() => r.getCurrentStyles);
23587
23611
  ee(
23588
23612
  s,
23589
23613
  (f) => {
@@ -23613,7 +23637,7 @@ const Dt = /* @__PURE__ */ Jo(yk, [["render", kk]]), Ck = { class: "pbx-myPrimar
23613
23637
  u("p", Dk, C(y(e)(
23614
23638
  "These are the inline styles applied by the builder. Add your own styles and press Enter to apply them to the selected element."
23615
23639
  )), 1),
23616
- u("div", Ik, [
23640
+ u("div", Nk, [
23617
23641
  (w(!0), M(X, null, de(i.value, (b, x) => (w(), M("div", {
23618
23642
  key: x,
23619
23643
  class: "pbx-myPrimaryTag pbx-cursor-pointer hover:pbx-bg-myPrimaryErrorColor hover:pbx-text-white pbx-text-xs pbx-py-2 pbx-font-medium",
@@ -23624,7 +23648,7 @@ const Dt = /* @__PURE__ */ Jo(yk, [["render", kk]]), Ck = { class: "pbx-myPrimar
23624
23648
  u("div", $k, [
23625
23649
  u("span", Rk, C(x) + ": " + C(b) + "; ", 1)
23626
23650
  ])
23627
- ], 8, Nk))), 128))
23651
+ ], 8, Ik))), 128))
23628
23652
  ]),
23629
23653
  h[2] || (h[2] = u("hr", null, null, -1)),
23630
23654
  u("div", Hk, [
@@ -23635,7 +23659,7 @@ const Dt = /* @__PURE__ */ Jo(yk, [["render", kk]]), Ck = { class: "pbx-myPrimar
23635
23659
  "onUpdate:modelValue": h[0] || (h[0] = (b) => o.value = b),
23636
23660
  type: "text",
23637
23661
  placeholder: y(e)("property"),
23638
- onKeydown: Nl(bt(c, ["prevent"]), ["enter"]),
23662
+ onKeydown: Il(bt(c, ["prevent"]), ["enter"]),
23639
23663
  autocomplete: "off",
23640
23664
  class: "pbx-myPrimaryInput"
23641
23665
  }, null, 40, zk), [
@@ -23648,7 +23672,7 @@ const Dt = /* @__PURE__ */ Jo(yk, [["render", kk]]), Ck = { class: "pbx-myPrimar
23648
23672
  "onUpdate:modelValue": h[1] || (h[1] = (b) => l.value = b),
23649
23673
  type: "text",
23650
23674
  placeholder: y(e)("value"),
23651
- onKeydown: Nl(d, ["enter"]),
23675
+ onKeydown: Il(d, ["enter"]),
23652
23676
  autocomplete: "off",
23653
23677
  class: "pbx-myPrimaryInput"
23654
23678
  }, null, 40, Vk), [
@@ -23676,7 +23700,7 @@ function Uk(n) {
23676
23700
  const Wk = ["src"], Kk = {
23677
23701
  __name: "ImageEditor",
23678
23702
  setup(n) {
23679
- const { translate: e } = Me(), t = Se, r = Vn("CustomMediaComponent"), i = E(!1), s = E(!1), o = E(""), l = E(""), a = E(""), p = E(null), c = E(null), d = E(null), f = N(() => (t.getBasePrimaryImage && b(t.getBasePrimaryImage), t.getBasePrimaryImage)), h = function() {
23703
+ const { translate: e } = Me(), t = Se, r = Vn("CustomMediaComponent"), i = E(!1), s = E(!1), o = E(""), l = E(""), a = E(""), p = E(null), c = E(null), d = E(null), f = I(() => (t.getBasePrimaryImage && b(t.getBasePrimaryImage), t.getBasePrimaryImage)), h = function() {
23680
23704
  s.value = !0, o.value = e("Media Library"), l.value = null, a.value = e("Close"), p.value = e(" Select image"), d.value = function() {
23681
23705
  s.value = !1;
23682
23706
  };
@@ -23724,7 +23748,7 @@ const Wk = ["src"], Kk = {
23724
23748
  }, nC = {
23725
23749
  __name: "ManageBackgroundOpacity",
23726
23750
  setup(n) {
23727
- const e = Ce(), t = Se, r = E(null), i = N(() => t.getBackgroundOpacity);
23751
+ const e = Ce(), t = Se, r = E(null), i = I(() => t.getBackgroundOpacity);
23728
23752
  return ee(
23729
23753
  i,
23730
23754
  async (s) => {
@@ -23824,7 +23848,7 @@ const Wk = ["src"], Kk = {
23824
23848
  }, dC = {
23825
23849
  __name: "ManageOpacity",
23826
23850
  setup(n) {
23827
- const e = Ce(), t = Se, r = E(null), i = N(() => t.getOpacity);
23851
+ const e = Ce(), t = Se, r = E(null), i = I(() => t.getOpacity);
23828
23852
  return ee(
23829
23853
  i,
23830
23854
  async (s) => {
@@ -23958,7 +23982,7 @@ const Wk = ["src"], Kk = {
23958
23982
  }, Md = {
23959
23983
  __name: "Typography",
23960
23984
  setup(n) {
23961
- const { translate: e } = Me(), t = Ce(), r = Se, i = E(null), s = E(null), o = E(null), l = E(null), a = E(null), p = E(null), c = E(null), d = N(() => r.getFontBase), f = N(() => r.getFontDesktop), h = N(() => r.getFontTablet), b = N(() => r.getFontMobile), x = N(() => r.getFontWeight), m = N(() => r.getFontFamily), v = N(() => r.getFontStyle);
23985
+ const { translate: e } = Me(), t = Ce(), r = Se, i = E(null), s = E(null), o = E(null), l = E(null), a = E(null), p = E(null), c = E(null), d = I(() => r.getFontBase), f = I(() => r.getFontDesktop), h = I(() => r.getFontTablet), b = I(() => r.getFontMobile), x = I(() => r.getFontWeight), m = I(() => r.getFontFamily), v = I(() => r.getFontStyle);
23962
23986
  return ee(
23963
23987
  d,
23964
23988
  async (S) => {
@@ -24087,7 +24111,7 @@ const Wk = ["src"], Kk = {
24087
24111
  }, Ed = {
24088
24112
  __name: "Padding",
24089
24113
  setup(n) {
24090
- const { translate: e } = Me(), t = Ce(), r = Se, i = E(null), s = E(null), o = E(null), l = E(null), a = N(() => r.getFontVerticalPadding), p = N(() => r.getFontHorizontalPadding), c = N(() => r.getFontVerticalMargin), d = N(() => r.getFontHorizontalMargin);
24114
+ const { translate: e } = Me(), t = Ce(), r = Se, i = E(null), s = E(null), o = E(null), l = E(null), a = I(() => r.getFontVerticalPadding), p = I(() => r.getFontHorizontalPadding), c = I(() => r.getFontVerticalMargin), d = I(() => r.getFontHorizontalMargin);
24091
24115
  return ee(
24092
24116
  a,
24093
24117
  async (f) => {
@@ -24154,7 +24178,7 @@ const Wk = ["src"], Kk = {
24154
24178
  _: 1
24155
24179
  }));
24156
24180
  }
24157
- }, DC = { class: "pbx-my-2 pbx-py-2" }, IC = { class: "pbx-pt-4 pbx-pb-2 pbx-mb-4" }, NC = { class: "pbx-myPrimaryInputLabel pbx-font-medium pbx-italic" }, $C = {
24181
+ }, DC = { class: "pbx-my-2 pbx-py-2" }, NC = { class: "pbx-pt-4 pbx-pb-2 pbx-mb-4" }, IC = { class: "pbx-myPrimaryInputLabel pbx-font-medium pbx-italic" }, $C = {
24158
24182
  for: "vertical-margin",
24159
24183
  class: "pbx-myPrimaryInputLabel"
24160
24184
  }, RC = {
@@ -24169,7 +24193,7 @@ const Wk = ["src"], Kk = {
24169
24193
  }, Td = {
24170
24194
  __name: "Margin",
24171
24195
  setup(n) {
24172
- const { translate: e } = Me(), t = Ce(), r = Se, i = E(null), s = E(null), o = E(null), l = E(null), a = N(() => r.getFontVerticalPadding), p = N(() => r.getFontHorizontalPadding), c = N(() => r.getFontVerticalMargin), d = N(() => r.getFontHorizontalMargin);
24196
+ const { translate: e } = Me(), t = Ce(), r = Se, i = E(null), s = E(null), o = E(null), l = E(null), a = I(() => r.getFontVerticalPadding), p = I(() => r.getFontHorizontalPadding), c = I(() => r.getFontVerticalMargin), d = I(() => r.getFontHorizontalMargin);
24173
24197
  return ee(
24174
24198
  a,
24175
24199
  async (f) => {
@@ -24200,8 +24224,8 @@ const Wk = ["src"], Kk = {
24200
24224
  ]),
24201
24225
  content: V(() => [
24202
24226
  u("div", DC, [
24203
- u("div", IC, [
24204
- u("p", NC, C(y(e)("Large Screens Only")), 1),
24227
+ u("div", NC, [
24228
+ u("p", IC, C(y(e)("Large Screens Only")), 1),
24205
24229
  h[4] || (h[4] = u("hr", null, null, -1))
24206
24230
  ]),
24207
24231
  u("label", $C, C(y(e)("Vertical Margin")), 1),
@@ -24269,7 +24293,7 @@ const Wk = ["src"], Kk = {
24269
24293
  }, Od = {
24270
24294
  __name: "BorderRadius",
24271
24295
  setup(n) {
24272
- const { translate: e } = Me(), t = Ce(), r = Se, i = E(null), s = E(null), o = E(null), l = E(null), a = E(null), p = N(() => r.getBorderRadiusGlobal), c = N(() => r.getBorderRadiusTopLeft), d = N(() => r.getBorderRadiusTopRight), f = N(() => r.getBorderRadiusBottomleft), h = N(() => r.getBorderRadiusBottomRight);
24296
+ const { translate: e } = Me(), t = Ce(), r = Se, i = E(null), s = E(null), o = E(null), l = E(null), a = E(null), p = I(() => r.getBorderRadiusGlobal), c = I(() => r.getBorderRadiusTopLeft), d = I(() => r.getBorderRadiusTopRight), f = I(() => r.getBorderRadiusBottomleft), h = I(() => r.getBorderRadiusBottomRight);
24273
24297
  return ee(
24274
24298
  p,
24275
24299
  async (b) => {
@@ -24409,7 +24433,7 @@ const Wk = ["src"], Kk = {
24409
24433
  }, Bd = {
24410
24434
  __name: "Borders",
24411
24435
  setup(n) {
24412
- const { translate: e } = Me(), t = Ce(), r = Se, i = E(null), s = E(null), o = E(null), l = N(() => r.getBorderStyle), a = N(() => r.getBorderWidth), p = N(() => r.getBorderColor);
24436
+ const { translate: e } = Me(), t = Ce(), r = Se, i = E(null), s = E(null), o = E(null), l = I(() => r.getBorderStyle), a = I(() => r.getBorderWidth), p = I(() => r.getBorderColor);
24413
24437
  return ee(
24414
24438
  l,
24415
24439
  async (c) => {
@@ -24580,7 +24604,7 @@ const Wk = ["src"], Kk = {
24580
24604
  }, LM = { class: "pbx-flex pbx-justify-end pbx-min-h-6" }, DM = {
24581
24605
  key: 0,
24582
24606
  class: "pbx-myPrimaryParagraphError"
24583
- }, IM = { class: "pbx-border-0 pbx-border-solid pbx-border-t pbx-border-gray-200 pbx-flex pbx-items-center pbx-justify-end" }, NM = { class: "pbx-py-4 pbx-flex sm:pbx-justify-end pbx-justify-center" }, $M = { class: "sm:pbx-grid-cols-2 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" }, RM = {
24607
+ }, NM = { class: "pbx-border-0 pbx-border-solid pbx-border-t pbx-border-gray-200 pbx-flex pbx-items-center pbx-justify-end" }, IM = { class: "pbx-py-4 pbx-flex sm:pbx-justify-end pbx-justify-center" }, $M = { class: "sm:pbx-grid-cols-2 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" }, RM = {
24584
24608
  key: 1,
24585
24609
  class: "pbx-flex pbx-items-center pbx-my-2 pbx-justify-end"
24586
24610
  }, Pd = {
@@ -24591,7 +24615,7 @@ const Wk = ["src"], Kk = {
24591
24615
  }
24592
24616
  },
24593
24617
  setup(n) {
24594
- const e = Ce(), t = Se, { translate: r } = Me(), i = n, s = N(() => t.getElement), o = N(() => !s.value || !(s.value instanceof HTMLElement) ? "" : s.value.outerHTML), l = E(!1), a = E(""), p = E(""), c = async () => {
24618
+ const e = Ce(), t = Se, { translate: r } = Me(), i = n, s = I(() => t.getElement), o = I(() => !s.value || !(s.value instanceof HTMLElement) ? "" : s.value.outerHTML), l = E(!1), a = E(""), p = E(""), c = async () => {
24595
24619
  if (l.value = !0, !i.globalPage) {
24596
24620
  a.value = o.value;
24597
24621
  return;
@@ -24689,8 +24713,8 @@ const Wk = ["src"], Kk = {
24689
24713
  u("div", LM, [
24690
24714
  h.value ? (w(), M("p", DM, " Error: " + C(h.value), 1)) : A("", !0)
24691
24715
  ]),
24692
- u("div", IM, [
24693
- u("div", NM, [
24716
+ u("div", NM, [
24717
+ u("div", IM, [
24694
24718
  u("div", $M, [
24695
24719
  f.value ? A("", !0) : (w(), M(X, { key: 0 }, [
24696
24720
  u("button", {
@@ -24731,11 +24755,11 @@ const Wk = ["src"], Kk = {
24731
24755
  __name: "RightSidebarEditor",
24732
24756
  emits: ["closeEditor"],
24733
24757
  setup(n) {
24734
- const { translate: e } = Me(), t = Ce(), r = Se, i = E(null), s = N(() => r.getComponents), o = N(() => r.getElement), l = N(() => {
24758
+ const { translate: e } = Me(), t = Ce(), r = Se, i = E(null), s = I(() => r.getComponents), o = I(() => r.getElement), l = I(() => {
24735
24759
  var m;
24736
24760
  return (m = o.value) == null ? void 0 : m.tagName;
24737
24761
  });
24738
- N(() => o.value instanceof HTMLElement && o.value.innerText.trim() !== " " || o.value instanceof HTMLImageElement);
24762
+ I(() => o.value instanceof HTMLElement && o.value.innerText.trim() !== " " || o.value instanceof HTMLImageElement);
24739
24763
  const a = E(null);
24740
24764
  let p = 0;
24741
24765
  ee(
@@ -24968,10 +24992,10 @@ const Wk = ["src"], Kk = {
24968
24992
  }, 8, ["showModalBuilder", "title"])
24969
24993
  ]));
24970
24994
  }
24971
- }, CE = { class: "pbx-w-full pbx-inset-x-0 pbx-h-[90vh] pbx-bg-white pbx-overflow-x-scroll lg:pbx-pt-2 pbx-pt-2" }, ME = { 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" }, EE = { class: "pbx-px-2" }, TE = { class: "pbx-mt-8" }, OE = { class: "pbx-overflow-hidden pbx-shadow pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 md:pbx-rounded-lg" }, BE = { class: "pbx-overflow-x-auto" }, PE = { class: "pbx-min-w-full" }, AE = { class: "pbx-bg-white pbx-divide-y pbx-divide-gray-200" }, _E = { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500" }, LE = { class: "pbx-min-w-[30rem] pbx-w-max" }, DE = { class: "pbx-inline-flex pbx-items-center pbx-px-2.5 pbx-py-0.5 pbx-rounded-full pbx-text-xs pbx-font-medium pbx-bg-blue-100 pbx-text-blue-800" }, IE = {
24995
+ }, CE = { class: "pbx-w-full pbx-inset-x-0 pbx-h-[90vh] pbx-bg-white pbx-overflow-x-scroll lg:pbx-pt-2 pbx-pt-2" }, ME = { 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" }, EE = { class: "pbx-px-2" }, TE = { class: "pbx-mt-8" }, OE = { class: "pbx-overflow-hidden pbx-shadow pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 md:pbx-rounded-lg" }, BE = { class: "pbx-overflow-x-auto" }, PE = { class: "pbx-min-w-full" }, AE = { class: "pbx-bg-white pbx-divide-y pbx-divide-gray-200" }, _E = { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500" }, LE = { class: "pbx-min-w-[30rem] pbx-w-max" }, DE = { class: "pbx-inline-flex pbx-items-center pbx-px-2.5 pbx-py-0.5 pbx-rounded-full pbx-text-xs pbx-font-medium pbx-bg-blue-100 pbx-text-blue-800" }, NE = {
24972
24996
  key: 0,
24973
24997
  class: "pbx-mt-4"
24974
- }, NE = { class: "pbx-overflow-hidden pbx-shadow pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 md:pbx-rounded-lg" }, $E = { class: "pbx-overflow-x-auto" }, RE = { class: "pbx-min-w-full" }, HE = { class: "pbx-bg-white pbx-divide-y pbx-divide-gray-200" }, FE = { key: 0 }, jE = { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500" }, zE = { class: "pbx-min-w-[30rem] pbx-w-max" }, VE = { key: 1 }, qE = { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500" }, UE = { class: "pbx-min-w-[30rem] pbx-w-max" }, WE = {
24998
+ }, IE = { class: "pbx-overflow-hidden pbx-shadow pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 md:pbx-rounded-lg" }, $E = { class: "pbx-overflow-x-auto" }, RE = { class: "pbx-min-w-full" }, HE = { class: "pbx-bg-white pbx-divide-y pbx-divide-gray-200" }, FE = { key: 0 }, jE = { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500" }, zE = { class: "pbx-min-w-[30rem] pbx-w-max" }, VE = { key: 1 }, qE = { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500" }, UE = { class: "pbx-min-w-[30rem] pbx-w-max" }, WE = {
24975
24999
  key: 1,
24976
25000
  class: "pbx-mt-8"
24977
25001
  }, KE = { class: "pbx-overflow-hidden pbx-shadow pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 md:pbx-rounded-lg" }, GE = { class: "pbx-overflow-x-auto" }, JE = { class: "pbx-min-w-full" }, YE = { class: "pbx-bg-white pbx-divide-y pbx-divide-gray-200" }, QE = { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500" }, XE = { class: "pbx-min-w-[30rem] pbx-w-max" }, ZE = {
@@ -24986,13 +25010,13 @@ const Wk = ["src"], Kk = {
24986
25010
  }, oT = { class: "pbx-overflow-hidden pbx-shadow pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 md:pbx-rounded-lg" }, lT = { class: "pbx-overflow-x-auto" }, aT = { class: "pbx-min-w-full" }, pT = { class: "pbx-bg-white pbx-divide-y pbx-divide-gray-200" }, cT = { key: 0 }, dT = { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500" }, uT = { class: "pbx-min-w-[30rem] pbx-w-max" }, fT = { key: 1 }, hT = { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500" }, bT = { class: "pbx-min-w-[30rem] pbx-w-max" }, mT = { key: 2 }, xT = { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500" }, gT = { class: "pbx-min-w-[30rem] pbx-w-max" }, yT = { key: 3 }, vT = { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500" }, wT = { class: "pbx-min-w-[30rem] pbx-w-max" }, ST = {
24987
25011
  key: 3,
24988
25012
  class: "pbx-mt-8"
24989
- }, kT = { class: "pbx-overflow-hidden pbx-shadow pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 md:pbx-rounded-lg" }, CT = { class: "pbx-overflow-x-auto" }, MT = { class: "pbx-min-w-full" }, ET = { class: "pbx-bg-white pbx-divide-y pbx-divide-gray-200" }, TT = { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500" }, OT = { class: "pbx-min-w-[30rem] pbx-w-max" }, BT = { class: "pbx-flex pbx-items-center pbx-space-x-3" }, PT = ["src"], AT = { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500" }, _T = { class: "pbx-min-w-[30rem] pbx-w-max" }, LT = { class: "pbx-flex pbx-items-center pbx-space-x-3" }, DT = { class: "pbx-pr-6" }, IT = { class: "pbx-flex pbx-items-center pbx-space-x-3" }, NT = { class: "pbx-whitespace-nowrap" }, $T = {
25013
+ }, kT = { class: "pbx-overflow-hidden pbx-shadow pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 md:pbx-rounded-lg" }, CT = { class: "pbx-overflow-x-auto" }, MT = { class: "pbx-min-w-full" }, ET = { class: "pbx-bg-white pbx-divide-y pbx-divide-gray-200" }, TT = { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500" }, OT = { class: "pbx-min-w-[30rem] pbx-w-max" }, BT = { class: "pbx-flex pbx-items-center pbx-space-x-3" }, PT = ["src"], AT = { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500" }, _T = { class: "pbx-min-w-[30rem] pbx-w-max" }, LT = { class: "pbx-flex pbx-items-center pbx-space-x-3" }, DT = { class: "pbx-pr-6" }, NT = { class: "pbx-flex pbx-items-center pbx-space-x-3" }, IT = { class: "pbx-whitespace-nowrap" }, $T = {
24990
25014
  key: 4,
24991
25015
  class: "pbx-mt-8"
24992
25016
  }, RT = { class: "pbx-overflow-hidden pbx-shadow pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 md:pbx-rounded-lg" }, HT = { class: "pbx-overflow-x-auto" }, FT = { class: "pbx-w-max" }, jT = { class: "pbx-bg-white pbx-divide-y pbx-divide-gray-200" }, zT = { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500" }, VT = { class: "pbx-min-w-[30rem] pbx-w-max" }, qT = { key: 0 }, UT = { key: 1 }, WT = { key: 0 }, KT = { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500" }, GT = { class: "pbx-min-w-[30rem] pbx-w-max" }, JT = { class: "pbx-inline-flex pbx-items-center pbx-px-2.5 pbx-py-0.5 pbx-rounded-full pbx-text-xs pbx-font-medium" }, YT = { 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" }, QT = { class: "pbx-mt-4 pbx-whitespace-pre-wrap pbx-text-white pbx-overflow-hidden pbx-bg-gray-900" }, XT = { class: "pbx-px-4 pbx-pb-8 pbx-pt-4 pbx-text-white pbx-text-xs pbx-break-all" }, ZT = { class: "pbx-myPrimaryParagraph pbx-text-xs pbx-text-white" }, e3 = {
24993
25017
  __name: "PageBuilderSettings",
24994
25018
  setup(n) {
24995
- const e = "3.4.13", t = Se, r = N(() => t.getPageBuilderConfig);
25019
+ const e = "3.4.14", t = Se, r = I(() => t.getPageBuilderConfig);
24996
25020
  return (i, s) => {
24997
25021
  var o, l, a, p, c, d, f, h, b, x, m, v, S, k, g, O;
24998
25022
  return w(), M("div", CE, [
@@ -25036,9 +25060,9 @@ const Wk = ["src"], Kk = {
25036
25060
  ])
25037
25061
  ])
25038
25062
  ]),
25039
- (o = r.value) != null && o.resourceData && !y(On)(r.value.resourceData) ? (w(), M("div", IE, [
25063
+ (o = r.value) != null && o.resourceData && !y(On)(r.value.resourceData) ? (w(), M("div", NE, [
25040
25064
  s[6] || (s[6] = u("h4", { class: "pbx-myQuaternaryHeader pbx-text-sm pbx-mb-2" }, "Resource Data", -1)),
25041
- u("div", NE, [
25065
+ u("div", IE, [
25042
25066
  u("div", $E, [
25043
25067
  u("table", RE, [
25044
25068
  s[5] || (s[5] = u("thead", { class: "pbx-bg-gray-50" }, [
@@ -25241,8 +25265,8 @@ const Wk = ["src"], Kk = {
25241
25265
  u("div", _T, [
25242
25266
  u("div", LT, [
25243
25267
  u("div", DT, [
25244
- u("div", IT, [
25245
- u("span", NT, C(r.value.pageBuilderLogo.src), 1)
25268
+ u("div", NT, [
25269
+ u("span", IT, C(r.value.pageBuilderLogo.src), 1)
25246
25270
  ])
25247
25271
  ])
25248
25272
  ])
@@ -25330,13 +25354,13 @@ const Wk = ["src"], Kk = {
25330
25354
  }, t3 = { class: "pbx-w-full pbx-inset-x-0 pbx-h-[90vh] pbx-bg-white pbx-overflow-x-scroll lg:pbx-pt-2 pbx-pt-2" }, n3 = { class: "pbx-flex pbx-items-left pbx-flex-col pbx-myPrimaryGap pbx-border-myPrimaryMediumGrayColor" }, r3 = { class: "pbx-myPrimaryParagraph" }, i3 = { class: "pbx-myPrimaryParagraph pbx-text-xs pbx-pb-2" }, s3 = { class: "pbx-text-gray-100 pbx-overflow-hidden pbx-bg-gray-900" }, o3 = { class: "pbx-flex pbx-bg-gray-900 pbx-ring-1 ring-white/5" }, l3 = { class: "pbx-mb-px pbx-flex pbx-text-xs pbx-font-medium pbx-text-myPrimaryMediumGrayColor" }, a3 = { class: "pbx-px-4 pbx-py-4 pbx-text-gray-100" }, p3 = { class: "pbx-px-4 pbx-pb-8 pbx-pt-4 pbx-text-gray-100 pbx-text-xs" }, c3 = { class: "pbx-text-xs pbx-pb-2" }, d3 = { class: "pbx-text-xs pbx-pb-2" }, u3 = { class: "pbx-text-xs pbx-pb-2" }, f3 = { class: "pbx-myPrimaryParagraph pbx-text-xs pbx-pb-2" }, h3 = { class: "pbx-overflow-hidden pbx-bg-gray-900" }, b3 = { class: "pbx-flex pbx-bg-gray-900 pbx-ring-1 ring-white/5" }, m3 = { class: "pbx-mb-px pbx-flex pbx-text-xs pbx-font-medium pbx-text-myPrimaryMediumGrayColor" }, x3 = { class: "pbx-px-4 pbx-pb-8 pbx-pt-4 pbx-text-gray-100 pbx-text-xs pbx-break-all" }, g3 = { key: 0 }, y3 = { key: 0 }, v3 = { class: "pbx-pb-2 pbx-text-xs" }, w3 = {
25331
25355
  key: 1,
25332
25356
  class: "pbx-overflow-hidden pbx-border-solid pbx-border pbx-border-gray-100 pbx-mb-6"
25333
- }, S3 = { class: "pbx-border-0 pbx-bg-gray-900 pbx-pt-4 pbx-1 pbx-border-solid pbx-border-b pbx-border-gray-200" }, k3 = { class: "pbx-overflow-x-auto" }, C3 = { class: "pbx-min-w-full" }, M3 = { class: "pbx-bg-gray-900" }, E3 = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal" }, T3 = { class: "pbx-bg-gray-900 pbx-divide-y pbx-divide-gray-200" }, O3 = { 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-b" }, B3 = { class: "pbx-overflow-x-auto" }, P3 = { class: "pbx-min-w-full" }, A3 = { class: "pbx-bg-gray-900" }, _3 = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal" }, L3 = { class: "pbx-bg-gray-900 pbx-divide-y pbx-divide-gray-200" }, D3 = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal pbx-whitespace-pre-line" }, I3 = { class: "pbx-overflow-x-auto" }, N3 = { class: "pbx-min-w-full" }, $3 = { class: "pbx-bg-gray-900" }, R3 = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal" }, H3 = { class: "pbx-bg-gray-900 pbx-divide-y pbx-divide-gray-200" }, F3 = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal" }, j3 = { key: 1 }, z3 = { key: 0 }, V3 = { class: "pbx-pb-2 pbx-text-xs" }, q3 = {
25357
+ }, S3 = { class: "pbx-border-0 pbx-bg-gray-900 pbx-pt-4 pbx-1 pbx-border-solid pbx-border-b pbx-border-gray-200" }, k3 = { class: "pbx-overflow-x-auto" }, C3 = { class: "pbx-min-w-full" }, M3 = { class: "pbx-bg-gray-900" }, E3 = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal" }, T3 = { class: "pbx-bg-gray-900 pbx-divide-y pbx-divide-gray-200" }, O3 = { 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-b" }, B3 = { class: "pbx-overflow-x-auto" }, P3 = { class: "pbx-min-w-full" }, A3 = { class: "pbx-bg-gray-900" }, _3 = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal" }, L3 = { class: "pbx-bg-gray-900 pbx-divide-y pbx-divide-gray-200" }, D3 = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal pbx-whitespace-pre-line" }, N3 = { class: "pbx-overflow-x-auto" }, I3 = { class: "pbx-min-w-full" }, $3 = { class: "pbx-bg-gray-900" }, R3 = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal" }, H3 = { class: "pbx-bg-gray-900 pbx-divide-y pbx-divide-gray-200" }, F3 = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal" }, j3 = { key: 1 }, z3 = { key: 0 }, V3 = { class: "pbx-pb-2 pbx-text-xs" }, q3 = {
25334
25358
  key: 1,
25335
25359
  class: "pbx-overflow-hidden pbx-border-solid pbx-border pbx-border-gray-100 pbx-mb-6"
25336
- }, U3 = { class: "pbx-border-0 pbx-bg-gray-900 pbx-pt-4 pbx-1 pbx-border-solid pbx-border-b pbx-border-gray-200" }, W3 = { class: "pbx-overflow-x-auto" }, K3 = { class: "pbx-min-w-full" }, G3 = { class: "pbx-bg-gray-900" }, J3 = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal" }, Y3 = { class: "pbx-bg-gray-900 pbx-divide-y pbx-divide-gray-200" }, Q3 = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal" }, X3 = { class: "pbx-overflow-x-auto" }, Z3 = { class: "pbx-min-w-full" }, eO = { class: "pbx-bg-gray-900" }, tO = { 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" }, nO = { class: "pbx-bg-gray-900 pbx-divide-y pbx-divide-gray-200" }, rO = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal pbx-whitespace-pre-line" }, iO = { class: "pbx-overflow-x-auto" }, sO = { class: "pbx-min-w-full" }, oO = { class: "pbx-bg-gray-900" }, lO = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal" }, aO = { class: "pbx-bg-gray-900 pbx-divide-y pbx-divide-gray-200" }, pO = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal" }, cO = { class: "pbx-text-xs pbx-text-gray-100 pbx-whitespace-pre-wrap pbx-font-sans pbx-flex pbx-items-start pbx-justify-left" }, dO = ["innerHTML"], uO = { key: 2 }, fO = { key: 0 }, hO = { class: "pbx-pb-2 pbx-text-xs" }, bO = { key: 1 }, mO = { class: "pbx-border-0 pbx-bg-gray-900 pbx-pt-4 pbx-1 pbx-border-solid pbx-border-b pbx-border-gray-200" }, xO = { class: "pbx-overflow-x-auto" }, gO = { class: "pbx-min-w-full" }, yO = { class: "pbx-bg-gray-900" }, vO = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal" }, wO = { class: "pbx-bg-gray-900 pbx-divide-y pbx-divide-gray-200" }, SO = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal" }, kO = { class: "pbx-overflow-x-auto" }, CO = { class: "pbx-min-w-full" }, MO = { class: "pbx-bg-gray-900" }, EO = { 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" }, TO = { class: "pbx-bg-gray-900 pbx-divide-y pbx-divide-gray-200" }, OO = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal pbx-whitespace-pre-line" }, BO = { class: "pbx-overflow-x-auto" }, PO = { class: "pbx-min-w-full" }, AO = { class: "pbx-bg-gray-900" }, _O = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal" }, LO = { class: "pbx-bg-gray-900 pbx-divide-y pbx-divide-gray-200" }, DO = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal" }, IO = { class: "pbx-text-xs pbx-text-gray-100 pbx-whitespace-pre-wrap pbx-font-sans pbx-flex pbx-items-start pbx-justify-left" }, NO = ["innerHTML"], $O = {
25360
+ }, U3 = { class: "pbx-border-0 pbx-bg-gray-900 pbx-pt-4 pbx-1 pbx-border-solid pbx-border-b pbx-border-gray-200" }, W3 = { class: "pbx-overflow-x-auto" }, K3 = { class: "pbx-min-w-full" }, G3 = { class: "pbx-bg-gray-900" }, J3 = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal" }, Y3 = { class: "pbx-bg-gray-900 pbx-divide-y pbx-divide-gray-200" }, Q3 = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal" }, X3 = { class: "pbx-overflow-x-auto" }, Z3 = { class: "pbx-min-w-full" }, eO = { class: "pbx-bg-gray-900" }, tO = { 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" }, nO = { class: "pbx-bg-gray-900 pbx-divide-y pbx-divide-gray-200" }, rO = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal pbx-whitespace-pre-line" }, iO = { class: "pbx-overflow-x-auto" }, sO = { class: "pbx-min-w-full" }, oO = { class: "pbx-bg-gray-900" }, lO = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal" }, aO = { class: "pbx-bg-gray-900 pbx-divide-y pbx-divide-gray-200" }, pO = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal" }, cO = { class: "pbx-text-xs pbx-text-gray-100 pbx-whitespace-pre-wrap pbx-font-sans pbx-flex pbx-items-start pbx-justify-left" }, dO = ["innerHTML"], uO = { key: 2 }, fO = { key: 0 }, hO = { class: "pbx-pb-2 pbx-text-xs" }, bO = { key: 1 }, mO = { class: "pbx-border-0 pbx-bg-gray-900 pbx-pt-4 pbx-1 pbx-border-solid pbx-border-b pbx-border-gray-200" }, xO = { class: "pbx-overflow-x-auto" }, gO = { class: "pbx-min-w-full" }, yO = { class: "pbx-bg-gray-900" }, vO = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal" }, wO = { class: "pbx-bg-gray-900 pbx-divide-y pbx-divide-gray-200" }, SO = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal" }, kO = { class: "pbx-overflow-x-auto" }, CO = { class: "pbx-min-w-full" }, MO = { class: "pbx-bg-gray-900" }, EO = { 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" }, TO = { class: "pbx-bg-gray-900 pbx-divide-y pbx-divide-gray-200" }, OO = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal pbx-whitespace-pre-line" }, BO = { class: "pbx-overflow-x-auto" }, PO = { class: "pbx-min-w-full" }, AO = { class: "pbx-bg-gray-900" }, _O = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal" }, LO = { class: "pbx-bg-gray-900 pbx-divide-y pbx-divide-gray-200" }, DO = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal" }, NO = { class: "pbx-text-xs pbx-text-gray-100 pbx-whitespace-pre-wrap pbx-font-sans pbx-flex pbx-items-start pbx-justify-left" }, IO = ["innerHTML"], $O = {
25337
25361
  __name: "AdvancedPageBuilderSettings",
25338
25362
  setup(n) {
25339
- const { translate: e } = Me(), t = Se, r = N(() => t.getElement), i = N(() => t.getComponent), s = N(() => t.getComponents), o = E("element"), l = function(p) {
25363
+ const { translate: e } = Me(), t = Se, r = I(() => t.getElement), i = I(() => t.getComponent), s = I(() => t.getComponents), o = E("element"), l = function(p) {
25340
25364
  o.value = p;
25341
25365
  };
25342
25366
  function a(p) {
@@ -25466,8 +25490,8 @@ const Wk = ["src"], Kk = {
25466
25490
  ])
25467
25491
  ])
25468
25492
  ]),
25469
- u("div", I3, [
25470
- u("table", N3, [
25493
+ u("div", N3, [
25494
+ u("table", I3, [
25471
25495
  u("thead", $3, [
25472
25496
  u("tr", null, [
25473
25497
  u("th", R3, C(y(e)("Element classes:")), 1)
@@ -25592,12 +25616,12 @@ const Wk = ["src"], Kk = {
25592
25616
  u("tbody", LO, [
25593
25617
  u("tr", null, [
25594
25618
  u("td", DO, [
25595
- u("pre", IO, [
25619
+ u("pre", NO, [
25596
25620
  c[5] || (c[5] = we(" ")),
25597
25621
  u("code", {
25598
25622
  class: "pbx-font-sans pbx-w-full",
25599
25623
  innerHTML: a(O.html_code)
25600
- }, null, 8, NO),
25624
+ }, null, 8, IO),
25601
25625
  c[6] || (c[6] = we(`
25602
25626
  `))
25603
25627
  ])
@@ -25628,7 +25652,7 @@ const Wk = ["src"], Kk = {
25628
25652
  }, YO = { 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" }, QO = {
25629
25653
  __name: "ToolbarOption",
25630
25654
  setup(n) {
25631
- const { translate: e } = Me(), t = Ce(), r = Se, i = N(() => r.getPageBuilderConfig), s = E(!1), o = E(!1), l = E(""), a = E(1), p = E(""), c = E(""), d = E(""), f = E(null), h = E(null), b = E(null), x = E(null), m = E(null), v = function() {
25655
+ const { translate: e } = Me(), t = Ce(), r = Se, i = I(() => r.getPageBuilderConfig), s = E(!1), o = E(!1), l = E(""), a = E(1), p = E(""), c = E(""), d = E(""), f = E(null), h = E(null), b = E(null), x = E(null), m = E(null), v = function() {
25632
25656
  o.value = !0, l.value = "delete", a.value = 2, p.value = e("Remove all Components"), c.value = e("Are you sure you want to remove all Components?"), d.value = e("Close"), f.value = null, h.value = e("Delete"), b.value = function() {
25633
25657
  o.value = !1;
25634
25658
  }, m.value = async function() {
@@ -25741,10 +25765,10 @@ const Wk = ["src"], Kk = {
25741
25765
  };
25742
25766
  }
25743
25767
  };
25744
- let Il = null;
25768
+ let Nl = null;
25745
25769
  function XO() {
25746
25770
  return (n, e = 300) => {
25747
- Il && clearTimeout(Il), Il = setTimeout(n, e);
25771
+ Nl && clearTimeout(Nl), Nl = setTimeout(n, e);
25748
25772
  };
25749
25773
  }
25750
25774
  const ZO = {}, eB = { 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]" };
@@ -25763,7 +25787,7 @@ const Ah = /* @__PURE__ */ Jo(ZO, [["render", tB]]), nB = { class: "pbx-text-xs
25763
25787
  __name: "UndoRedo",
25764
25788
  emits: ["toolbar-hide-request"],
25765
25789
  setup(n, { emit: e }) {
25766
- const t = Ce(), r = e, i = Se, s = N(() => i.getIsLoadingGlobal), o = N(() => i.getHistoryIndex), l = N(() => i.getHistoryLength), a = N(() => o.value > 0), p = N(() => o.value < l.value - 1), c = async function() {
25790
+ const t = Ce(), r = e, i = Se, s = I(() => i.getIsLoadingGlobal), o = I(() => i.getHistoryIndex), l = I(() => i.getHistoryLength), a = I(() => o.value > 0), p = I(() => o.value < l.value - 1), c = async function() {
25767
25791
  a.value && (r("toolbar-hide-request"), await t.undo(), await t.clearHtmlSelection());
25768
25792
  }, d = async function() {
25769
25793
  p.value && (r("toolbar-hide-request"), await t.redo(), await t.clearHtmlSelection());
@@ -25833,7 +25857,7 @@ const Ah = /* @__PURE__ */ Jo(ZO, [["render", tB]]), nB = { class: "pbx-text-xs
25833
25857
  }, _B = ["innerHTML", "onMouseup"], LB = {
25834
25858
  id: "pagebuilder-footer",
25835
25859
  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-flex pbx-items-center pbx-justify-center pbx-border-0 pbx-border-t pbx-border-t-gray-200 pbx-border-solid pbx-bg-myPrimaryLightGrayColor pbx-py-4"
25836
- }, DB = { class: "lg:pbx-block pbx-hidden" }, IB = { class: "pbx-whitespace-nowrap" }, FB = {
25860
+ }, DB = { class: "lg:pbx-block pbx-hidden" }, NB = { class: "pbx-whitespace-nowrap" }, FB = {
25837
25861
  __name: "PageBuilder",
25838
25862
  props: {
25839
25863
  CustomMediaLibraryComponent: {
@@ -25875,7 +25899,7 @@ const Ah = /* @__PURE__ */ Jo(ZO, [["render", tB]]), nB = { class: "pbx-text-xs
25875
25899
  _.lang = F, localStorage.setItem("userSettingsPageBuilder", JSON.stringify(_)), b.value = !1;
25876
25900
  }
25877
25901
  });
25878
- const x = N(() => l.getBuilderStarted), m = N(() => l.getPageBuilderConfig), v = N(() => l.getMenuRight), S = E(!1), k = E(""), g = E(""), O = function() {
25902
+ const x = I(() => l.getBuilderStarted), m = I(() => l.getPageBuilderConfig), v = I(() => l.getMenuRight), S = E(!1), k = E(""), g = E(""), O = function() {
25879
25903
  t.previewCurrentDesign();
25880
25904
  }, T = function() {
25881
25905
  k.value = i("Preview"), O(), S.value = !0;
@@ -25893,11 +25917,11 @@ const Ah = /* @__PURE__ */ Jo(ZO, [["render", tB]]), nB = { class: "pbx-text-xs
25893
25917
  await t.clearHtmlSelection(), he.value = i("Add Components to Page"), fe.value = i("Close"), ce.value = !0, se.value = function() {
25894
25918
  ce.value = !1;
25895
25919
  };
25896
- }, re = N(() => l.getElement), dt = N(() => l.getComponents), Jt = N(() => l.getHasLocalDraftForUpdate);
25920
+ }, re = I(() => l.getElement), dt = I(() => l.getComponents), Jt = I(() => l.getHasLocalDraftForUpdate);
25897
25921
  ee(Jt, (F) => {
25898
25922
  F && Ot();
25899
25923
  });
25900
- const ut = N(() => !re.value || !(re.value instanceof HTMLElement) ? "" : {
25924
+ const ut = I(() => !re.value || !(re.value instanceof HTMLElement) ? "" : {
25901
25925
  src: re.value.getAttribute("src"),
25902
25926
  href: re.value.getAttribute("href"),
25903
25927
  style: re.value.getAttribute("style"),
@@ -25911,7 +25935,7 @@ const Ah = /* @__PURE__ */ Jo(ZO, [["render", tB]]), nB = { class: "pbx-text-xs
25911
25935
  });
25912
25936
  const Mt = function(F) {
25913
25937
  l.setComponent(F);
25914
- }, st = N(() => l.getIsLoadingGlobal), ot = N(() => l.getIsSaving), hn = N(() => l.getIsLoadingResumeEditing), et = N(() => l.getIsRestoring), bn = E(1), Et = E(""), Tt = E(!1), Jn = E(""), mn = E(""), Yn = E(""), Qn = E(null), xn = E(null), gn = E(null), Xn = E(null), Zn = E(null), Ot = async function() {
25938
+ }, st = I(() => l.getIsLoadingGlobal), ot = I(() => l.getIsSaving), hn = I(() => l.getIsLoadingResumeEditing), et = I(() => l.getIsRestoring), bn = E(1), Et = E(""), Tt = E(!1), Jn = E(""), mn = E(""), Yn = E(""), Qn = E(null), xn = E(null), gn = E(null), Xn = E(null), Zn = E(null), Ot = async function() {
25915
25939
  Et.value = "warning", Tt.value = !0, Jn.value = i("Continue Your Work?"), mn.value = i(
25916
25940
  "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?"
25917
25941
  ), Yn.value = i("Use Saved Version"), Qn.value = null, xn.value = i("Continue Where I Left Off"), gn.value = async function() {
@@ -25920,7 +25944,7 @@ const Ah = /* @__PURE__ */ Jo(ZO, [["render", tB]]), nB = { class: "pbx-text-xs
25920
25944
  }, Zn.value = async function() {
25921
25945
  await t.resumeEditingFromDraft(), l.setHasLocalDraftForUpdate(!1), Tt.value = !1;
25922
25946
  };
25923
- }, Nt = E(1), yn = E(""), ft = E(!1), vn = E(""), er = E(""), tr = E(""), nr = E(null), rr = E(null), ps = E(null), cs = E(null), ds = E(null), Qo = async function() {
25947
+ }, It = E(1), yn = E(""), ft = E(!1), vn = E(""), er = E(""), tr = E(""), nr = E(null), rr = E(null), ps = E(null), cs = E(null), ds = E(null), Qo = async function() {
25924
25948
  await t.clearHtmlSelection(), yn.value = "success", ft.value = !0, vn.value = i("Do you want to reset this page?"), er.value = i(
25925
25949
  "Are you sure you want to reset this page? This will overwrite your current changes."
25926
25950
  ), tr.value = i("Close"), nr.value = null, rr.value = i("Reset changes"), ps.value = function() {
@@ -26027,7 +26051,7 @@ const Ah = /* @__PURE__ */ Jo(ZO, [["render", tB]]), nB = { class: "pbx-text-xs
26027
26051
  showDynamicModalBuilder: ft.value,
26028
26052
  isLoading: et.value,
26029
26053
  type: yn.value,
26030
- gridColumnAmount: Nt.value,
26054
+ gridColumnAmount: It.value,
26031
26055
  title: vn.value,
26032
26056
  description: er.value,
26033
26057
  firstButtonText: tr.value,
@@ -26351,7 +26375,7 @@ const Ah = /* @__PURE__ */ Jo(ZO, [["render", tB]]), nB = { class: "pbx-text-xs
26351
26375
  class: "pbx-flex pbx-items-center pbx-justify-center pbx-gap-2 pbx-cursor-pointer"
26352
26376
  }, [
26353
26377
  u("span", DB, [
26354
- u("div", IB, C(y(i)("Add to the bottom")), 1)
26378
+ u("div", NB, C(y(i)("Add to the bottom")), 1)
26355
26379
  ]),
26356
26380
  _[33] || (_[33] = u("div", { class: "pbx-flex pbx-gap-2 pbx-items-center pbx-justify-center" }, [
26357
26381
  u("button", {