@opengis/richtext 0.0.30 → 0.0.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/richtext.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as ce, h as En, ref as D, getCurrentInstance as Nr, watchEffect as af, nextTick as Lt, unref as ae, onBeforeUnmount as po, shallowRef as cf, onMounted as nt, markRaw as Jm, customRef as Ym, computed as F, watch as be, createElementBlock as C, openBlock as b, normalizeClass as j, createElementVNode as m, createBlock as ve, Teleport as Vr, createCommentVNode as Y, createVNode as le, Transition as ho, withCtx as Ne, toDisplayString as ie, renderSlot as kt, resolveComponent as Zr, withDirectives as Le, mergeProps as ar, vModelDynamic as uf, Fragment as xe, normalizeStyle as Je, vShow as no, renderList as Ae, onUnmounted as an, resolveDynamicComponent as pn, vModelText as ut, createStaticVNode as dt, reactive as Ta, createApp as df, useAttrs as Xm, mergeModels as Fe, useModel as Ye, toRef as Zm, provide as Oc, withModifiers as $t, normalizeProps as Ma, guardReactiveProps as Aa, createTextVNode as Ft, inject as Un, withKeys as Qm, vModelRadio as ff, vModelCheckbox as pf, isRef as hf, effectScope as eg, Text as tg } from "vue";
1
+ import { defineComponent as ce, h as En, ref as D, getCurrentInstance as Nr, watchEffect as af, nextTick as Lt, unref as ae, onBeforeUnmount as po, shallowRef as cf, onMounted as nt, markRaw as Jm, customRef as Ym, computed as F, watch as be, createElementBlock as C, openBlock as b, normalizeClass as j, createElementVNode as m, createBlock as ve, Teleport as Vr, createCommentVNode as J, createVNode as le, Transition as ho, withCtx as Ne, toDisplayString as ie, renderSlot as kt, resolveComponent as Zr, withDirectives as Le, mergeProps as ar, vModelDynamic as uf, Fragment as xe, normalizeStyle as Je, vShow as no, renderList as Ae, onUnmounted as an, resolveDynamicComponent as pn, vModelText as ut, createStaticVNode as dt, reactive as Ta, createApp as df, useAttrs as Xm, mergeModels as Fe, useModel as Ye, toRef as Zm, provide as Oc, withModifiers as $t, normalizeProps as Ma, guardReactiveProps as Aa, createTextVNode as Ft, inject as Un, withKeys as Qm, vModelRadio as ff, vModelCheckbox as pf, isRef as hf, effectScope as eg, Text as tg } from "vue";
2
2
  function vt(t) {
3
3
  this.content = t;
4
4
  }
@@ -8328,7 +8328,7 @@ function Ey(t, e, n, r, o) {
8328
8328
  if (t.input.compositionPendingChanges = 0, e < 0) {
8329
8329
  let E = t.input.lastSelectionTime > Date.now() - 50 ? t.input.lastSelectionOrigin : null, O = Pa(t, E);
8330
8330
  if (O && !t.state.selection.eq(O)) {
8331
- if (St && Vn && t.input.lastKeyCode === 13 && Date.now() - 100 < t.input.lastKeyCodeTime && t.someProp("handleKeyDown", (J) => J(t, br(13, "Enter"))))
8331
+ if (St && Vn && t.input.lastKeyCode === 13 && Date.now() - 100 < t.input.lastKeyCodeTime && t.someProp("handleKeyDown", (Y) => Y(t, br(13, "Enter"))))
8332
8332
  return;
8333
8333
  let V = t.state.tr.setSelection(O);
8334
8334
  E == "pointer" ? V.setMeta("pointer", !0) : E == "key" && V.scrollIntoView(), s && V.setMeta("composition", s), t.dispatch(V);
@@ -10517,8 +10517,8 @@ function Mv(t) {
10517
10517
  Tv(E, s.find, l).forEach((V) => {
10518
10518
  if (V.index === void 0)
10519
10519
  return;
10520
- const J = w + V.index + 1, R = J + V[0].length, I = {
10521
- from: n.tr.mapping.map(J),
10520
+ const Y = w + V.index + 1, R = Y + V[0].length, I = {
10521
+ from: n.tr.mapping.map(Y),
10522
10522
  to: n.tr.mapping.map(R)
10523
10523
  }, G = s.handler({
10524
10524
  state: n,
@@ -16135,8 +16135,8 @@ function Kx({
16135
16135
  we(S, t.numeric, k);
16136
16136
  const w = Xt(Ss), M = Xt();
16137
16137
  we(w, e, w), we(w, n, M), we(M, e, w), we(M, n, M), K(x, wn, w), K(k, wn, w);
16138
- const E = K(i, er), O = K(a, er), V = K(O, wn), J = K(V, wn);
16139
- we(i, t.domain, l), K(i, kn, v), K(i, Qt, y), we(a, t.domain, l), K(a, kn, v), K(a, Qt, y), we(E, t.domain, w), K(E, wn, w), K(E, Po, w), we(J, t.domain, w), we(J, e, w), K(J, wn, w);
16138
+ const E = K(i, er), O = K(a, er), V = K(O, wn), Y = K(V, wn);
16139
+ we(i, t.domain, l), K(i, kn, v), K(i, Qt, y), we(a, t.domain, l), K(a, kn, v), K(a, Qt, y), we(E, t.domain, w), K(E, wn, w), K(E, Po, w), we(Y, t.domain, w), we(Y, e, w), K(Y, wn, w);
16140
16140
  const R = [
16141
16141
  [Io, Do],
16142
16142
  // {}
@@ -18684,13 +18684,13 @@ function _w(t, e, n, r, o, s) {
18684
18684
  handleConfirm: s.handleConfirm,
18685
18685
  handleCancel: s.handleCancel
18686
18686
  }, void 0, !0)
18687
- ])) : Y("", !0)
18687
+ ])) : J("", !0)
18688
18688
  ], 2)
18689
18689
  ]),
18690
18690
  _: 3
18691
18691
  })
18692
18692
  ], 32)
18693
- ])) : Y("", !0)
18693
+ ])) : J("", !0)
18694
18694
  ]);
18695
18695
  }
18696
18696
  const sm = /* @__PURE__ */ qe(xw, [["render", _w], ["__scopeId", "data-v-6d0970a6"]]), Tw = {}, Mw = {
@@ -18863,7 +18863,7 @@ function jw(t, e, n, r, o, s) {
18863
18863
  height: "15px",
18864
18864
  class: "stroke-gray-500 hover:stroke-red-500 transition-all"
18865
18865
  })
18866
- ])) : Y("", !0),
18866
+ ])) : J("", !0),
18867
18867
  t.icon && t.icon === "search" ? (b(), C("div", {
18868
18868
  key: 1,
18869
18869
  class: j(["absolute bottom-2/4 translate-y-2/4 cursor-pointer", t.iconStylePosition])
@@ -18893,7 +18893,7 @@ function jw(t, e, n, r, o, s) {
18893
18893
  height: "15px",
18894
18894
  class: "stroke-gray-500 hover:stroke-red-500 transition-all"
18895
18895
  })
18896
- ])) : Y("", !0),
18896
+ ])) : J("", !0),
18897
18897
  Le(m("input", ar({
18898
18898
  ref: "vsText",
18899
18899
  disabled: t.disabled,
@@ -19071,7 +19071,7 @@ const Uw = { class: "flex flex-col gap-3 p-[20px]" }, Ww = { class: "relative fl
19071
19071
  })
19072
19072
  ], -1)
19073
19073
  ])])
19074
- ])) : Y("", !0)
19074
+ ])) : J("", !0)
19075
19075
  ])
19076
19076
  ])
19077
19077
  ]),
@@ -19195,7 +19195,7 @@ const Uw = { class: "flex flex-col gap-3 p-[20px]" }, Ww = { class: "relative fl
19195
19195
  kt(S.$slots, "reference", {}, () => [
19196
19196
  k[0] || (k[0] = m("button", null, "Click me!", -1))
19197
19197
  ])
19198
- ], 2)) : Y("", !0),
19198
+ ], 2)) : J("", !0),
19199
19199
  t.trigger === "hover" ? (b(), C("div", {
19200
19200
  key: 1,
19201
19201
  ref_key: "popoverRef",
@@ -19207,7 +19207,7 @@ const Uw = { class: "flex flex-col gap-3 p-[20px]" }, Ww = { class: "relative fl
19207
19207
  kt(S.$slots, "reference", {}, () => [
19208
19208
  k[1] || (k[1] = m("button", null, "Click me!", -1))
19209
19209
  ])
19210
- ], 34)) : Y("", !0),
19210
+ ], 34)) : J("", !0),
19211
19211
  (b(), ve(Vr, { to: t.teleport }, [
19212
19212
  le(ho, { name: "fade" }, {
19213
19213
  default: Ne(() => [
@@ -19592,7 +19592,7 @@ function A2(t, e, n, r, o, s) {
19592
19592
  class: "ml-2 w-full",
19593
19593
  disabled: n.disabled,
19594
19594
  clearable: n.clearable
19595
- }, null, 8, ["modelValue", "disabled", "clearable"])) : Y("", !0)
19595
+ }, null, 8, ["modelValue", "disabled", "clearable"])) : J("", !0)
19596
19596
  ]);
19597
19597
  }
19598
19598
  const im = /* @__PURE__ */ qe(_2, [["render", A2]]), N2 = { class: "flex gap-[4px] mb-[8px]" }, L2 = { class: "grid grid-rows-3 grid-cols-7" }, O2 = { class: "w-full h-full rounded border border-gray-300 overflow-hidden" }, I2 = ["onClick", "title"], D2 = {
@@ -19704,7 +19704,7 @@ const im = /* @__PURE__ */ qe(_2, [["render", A2]]), N2 = { class: "flex gap-[4p
19704
19704
  r.value === p ? (b(), ve(Fo, {
19705
19705
  key: 0,
19706
19706
  class: "h-5 w-5 text-gray-500"
19707
- })) : Y("", !0)
19707
+ })) : J("", !0)
19708
19708
  ], 12, I2)
19709
19709
  ])
19710
19710
  ]))), 128))
@@ -19867,8 +19867,8 @@ const im = /* @__PURE__ */ qe(_2, [["render", A2]]), N2 = { class: "flex gap-[4p
19867
19867
  r.value === p ? (b(), ve(Fo, {
19868
19868
  key: 0,
19869
19869
  class: "h-5 w-5 text-gray-500"
19870
- })) : Y("", !0)
19871
- ], 12, F2)) : Y("", !0),
19870
+ })) : J("", !0)
19871
+ ], 12, F2)) : J("", !0),
19872
19872
  p === "transparent" ? (b(), C("button", {
19873
19873
  key: 1,
19874
19874
  class: "flex items-center justify-center w-full h-full",
@@ -19878,8 +19878,8 @@ const im = /* @__PURE__ */ qe(_2, [["render", A2]]), N2 = { class: "flex gap-[4p
19878
19878
  r.value === p ? (b(), ve(Fo, {
19879
19879
  key: 0,
19880
19880
  class: "h-5 w-5 text-gray-500"
19881
- })) : Y("", !0)
19882
- ], 8, B2)) : Y("", !0)
19881
+ })) : J("", !0)
19882
+ ], 8, B2)) : J("", !0)
19883
19883
  ])
19884
19884
  ]))), 128))
19885
19885
  ])
@@ -20341,7 +20341,7 @@ const fC = {
20341
20341
  ]),
20342
20342
  u.$slots.footer ? (b(), C("div", gC, [
20343
20343
  kt(u.$slots, "footer", { handleClose: i }, void 0, !0)
20344
- ])) : Y("", !0),
20344
+ ])) : J("", !0),
20345
20345
  u.buttonText ? (b(), C("div", yC, [
20346
20346
  m("button", {
20347
20347
  type: "button",
@@ -20353,13 +20353,13 @@ const fC = {
20353
20353
  onClick: l,
20354
20354
  class: "py-2 px-3 inline-flex items-center gap-x-2 text-sm font-medium rounded-lg border border-transparent bg-blue-600 text-white hover:bg-blue-700 focus:outline-hidden focus:bg-blue-700 disabled:opacity-50 disabled:pointer-events-none"
20355
20355
  }, ie(u.buttonText), 1)
20356
- ])) : Y("", !0)
20356
+ ])) : J("", !0)
20357
20357
  ], 2)
20358
20358
  ]),
20359
20359
  _: 3
20360
20360
  })
20361
20361
  ], 34)
20362
- ])) : Y("", !0)
20362
+ ])) : J("", !0)
20363
20363
  ], 8, ["to"]));
20364
20364
  }
20365
20365
  }), vc = /* @__PURE__ */ us(vC, [["__scopeId", "data-v-a6807cab"]]), bC = {}, xC = {
@@ -20584,12 +20584,12 @@ const zC = (t) => {
20584
20584
  }), (r, o) => (b(), C("div", HC, [
20585
20585
  r.ua || r.label ? (b(), C("div", jC, [
20586
20586
  m("span", UC, ie(r.item[e.value] || r.ua || r.label), 1),
20587
- r.item?.rules?.includes("required") ? (b(), C("span", WC, "*")) : Y("", !0)
20588
- ])) : Y("", !0),
20587
+ r.item?.rules?.includes("required") ? (b(), C("span", WC, "*")) : J("", !0)
20588
+ ])) : J("", !0),
20589
20589
  kt(r.$slots, "default", ar(r.$attrs, {
20590
20590
  class: { "opacity-60": r.item.disabled }
20591
20591
  })),
20592
- r.error ? (b(), C("span", KC, ie(r.error), 1)) : Y("", !0)
20592
+ r.error ? (b(), C("span", KC, ie(r.error), 1)) : J("", !0)
20593
20593
  ]));
20594
20594
  }
20595
20595
  }), GC = { class: "w-full relative flex flex-row items-center gap-2" }, JC = {
@@ -20637,15 +20637,15 @@ const zC = (t) => {
20637
20637
  style: Je(s.value)
20638
20638
  }, [
20639
20639
  Ft(ie(i.ua || i.label) + " ", 1),
20640
- i.item?.rules?.includes("required") && (i.ua || i.label) ? (b(), C("span", JC, "*")) : Y("", !0)
20641
- ], 4)) : Y("", !0),
20640
+ i.item?.rules?.includes("required") && (i.ua || i.label) ? (b(), C("span", JC, "*")) : J("", !0)
20641
+ ], 4)) : J("", !0),
20642
20642
  m("div", {
20643
20643
  class: "flex-1 min-w-0",
20644
20644
  style: Je(l.value)
20645
20645
  }, [
20646
20646
  kt(i.$slots, "default", Ma(Aa(i.$attrs)))
20647
20647
  ], 4),
20648
- i.error ? (b(), C("span", YC, ie(i.error), 1)) : Y("", !0)
20648
+ i.error ? (b(), C("span", YC, ie(i.error), 1)) : J("", !0)
20649
20649
  ]));
20650
20650
  }
20651
20651
  }), ZC = { class: "w-full relative" }, QC = {
@@ -20668,7 +20668,7 @@ const zC = (t) => {
20668
20668
  setup(t) {
20669
20669
  return (e, n) => (b(), C("div", ZC, [
20670
20670
  kt(e.$slots, "default", Ma(Aa(e.$attrs))),
20671
- e.error ? (b(), C("span", QC, ie(e.error), 1)) : Y("", !0)
20671
+ e.error ? (b(), C("span", QC, ie(e.error), 1)) : J("", !0)
20672
20672
  ]));
20673
20673
  }
20674
20674
  }), tE = { class: "flex-1 min-w-0" }, nE = {
@@ -20720,9 +20720,9 @@ const zC = (t) => {
20720
20720
  m("div", tE, [
20721
20721
  i.ua || i.label ? (b(), C("p", nE, [
20722
20722
  m("span", rE, ie(i.item[n.value] || i.ua || i.label), 1),
20723
- o.value ? (b(), C("span", oE, "*")) : Y("", !0)
20724
- ])) : Y("", !0),
20725
- r.value ? (b(), C("p", sE, ie(r.value), 1)) : Y("", !0)
20723
+ o.value ? (b(), C("span", oE, "*")) : J("", !0)
20724
+ ])) : J("", !0),
20725
+ r.value ? (b(), C("p", sE, ie(r.value), 1)) : J("", !0)
20726
20726
  ]),
20727
20727
  m("div", {
20728
20728
  class: j(["w-full", ["select", "native-select"].includes(i.item.type) ? "md:w-[30%]" : "md:w-auto"])
@@ -20730,7 +20730,7 @@ const zC = (t) => {
20730
20730
  kt(i.$slots, "default", Ma(Aa(i.$attrs)))
20731
20731
  ], 2)
20732
20732
  ], 2),
20733
- s.value ? (b(), C("p", lE, ie(s.value), 1)) : Y("", !0)
20733
+ s.value ? (b(), C("p", lE, ie(s.value), 1)) : J("", !0)
20734
20734
  ], 2));
20735
20735
  }
20736
20736
  }), aE = {
@@ -20956,15 +20956,15 @@ const yE = /* @__PURE__ */ _e(hE, [["render", gE]]), vE = { class: "flex items-c
20956
20956
  i.icon ? (b(), C("i", {
20957
20957
  key: 0,
20958
20958
  class: j(i.icon)
20959
- }, null, 2)) : Y("", !0),
20959
+ }, null, 2)) : J("", !0),
20960
20960
  i.imgUrl ? (b(), C("img", {
20961
20961
  key: 1,
20962
20962
  src: i.imgUrl,
20963
20963
  width: "16",
20964
20964
  height: "16",
20965
20965
  alt: "icon"
20966
- }, null, 8, _E)) : Y("", !0)
20967
- ])) : Y("", !0),
20966
+ }, null, 8, _E)) : J("", !0)
20967
+ ])) : J("", !0),
20968
20968
  kt(i.$slots, "default", {}, () => [
20969
20969
  Ft(ie(i.label), 1)
20970
20970
  ])
@@ -21118,7 +21118,7 @@ const VE = /* @__PURE__ */ _e($E, [["render", BE]]), zE = {
21118
21118
  label: r.text,
21119
21119
  error: r.error || ""
21120
21120
  }, null, 8, ["modelValue", "label", "error"]),
21121
- r.rules?.includes("required") ? (b(), C("span", HE, "*")) : Y("", !0),
21121
+ r.rules?.includes("required") ? (b(), C("span", HE, "*")) : J("", !0),
21122
21122
  r.i ? (b(), C("button", {
21123
21123
  key: 1,
21124
21124
  class: "cursor-pointer",
@@ -21127,7 +21127,7 @@ const VE = /* @__PURE__ */ _e($E, [["render", BE]]), zE = {
21127
21127
  }, ["prevent"]))
21128
21128
  }, [
21129
21129
  le(ae(VE), { class: "text-gray-500 w-[14px] h-[14px]" })
21130
- ], 8, jE)) : Y("", !0)
21130
+ ], 8, jE)) : J("", !0)
21131
21131
  ])) : (b(), C("button", {
21132
21132
  key: 1,
21133
21133
  type: "button",
@@ -21297,7 +21297,7 @@ const VE = /* @__PURE__ */ _e($E, [["render", BE]]), zE = {
21297
21297
  n.value == e.value ? (b(), C("span", {
21298
21298
  key: 0,
21299
21299
  class: j(["w-[12px] h-[12px] shrink-0 rounded-full", [`bg-${e.style?.primaryColor || "blue"}-500`]])
21300
- }, null, 2)) : Y("", !0)
21300
+ }, null, 2)) : J("", !0)
21301
21301
  ], 2),
21302
21302
  m("span", ZE, ie(e.text), 1)
21303
21303
  ], 2));
@@ -21508,7 +21508,7 @@ const VE = /* @__PURE__ */ _e($E, [["render", BE]]), zE = {
21508
21508
  key: g.key,
21509
21509
  class: "flex flex-col gap-2"
21510
21510
  }, [
21511
- g.label ? (b(), C("span", sS, ie(g.label), 1)) : Y("", !0),
21511
+ g.label ? (b(), C("span", sS, ie(g.label), 1)) : J("", !0),
21512
21512
  m("div", {
21513
21513
  class: j(["p-0 w-full gap-[12px]", c.value])
21514
21514
  }, [
@@ -21942,8 +21942,8 @@ const um = /* @__PURE__ */ _e(BS, [["render", zS]]), HS = ["title"], jS = { clas
21942
21942
  class: "w-6 h-6"
21943
21943
  }))
21944
21944
  ], 2)
21945
- ])) : Y("", !0),
21946
- u.multiple ? Y("", !0) : (b(), C("div", {
21945
+ ])) : J("", !0),
21946
+ u.multiple ? J("", !0) : (b(), C("div", {
21947
21947
  key: 2,
21948
21948
  onClick: d[4] || (d[4] = (f) => s.value?.click()),
21949
21949
  class: j([u.disabled || l.value ? "opacity-50 cursor-not-allowed" : "cursor-pointer hover:border-blue-500", "relative h-[120px] w-[120px] border text-gray-300 hover:text-blue-500 border-dashed border-gray-300 rounded-lg flex items-center justify-center cursor-pointer hover:border-blue-500 transition-all duration-300 hover:bg-blue-50"])
@@ -22249,7 +22249,7 @@ const y_ = /* @__PURE__ */ _e(h_, [["render", g_]]), v_ = { class: "flex flex-co
22249
22249
  ])
22250
22250
  ])
22251
22251
  ])
22252
- ])) : Y("", !0),
22252
+ ])) : J("", !0),
22253
22253
  u.value?.length ? (b(), C("div", S_, [
22254
22254
  (b(!0), C(xe, null, Ae(p.value, (E, O) => (b(), ve(p_, {
22255
22255
  key: O,
@@ -22260,10 +22260,10 @@ const y_ = /* @__PURE__ */ _e(h_, [["render", g_]]), v_ = { class: "flex flex-co
22260
22260
  onOpenModal: k[3] || (k[3] = (V) => x(V)),
22261
22261
  onOpenLightbox: k[4] || (k[4] = (V) => h(V))
22262
22262
  }, null, 8, ["prefix", "item", "index"]))), 128)),
22263
- p.value.length ? Y("", !0) : (b(), C("div", __, k[9] || (k[9] = [
22263
+ p.value.length ? J("", !0) : (b(), C("div", __, k[9] || (k[9] = [
22264
22264
  m("p", { class: "text-sm text-gray-600 font-sm" }, " Файлів з такою назвою не існує, введіть інше пошукове слово ", -1)
22265
22265
  ])))
22266
- ])) : Y("", !0),
22266
+ ])) : J("", !0),
22267
22267
  le(w, {
22268
22268
  modelValue: s.value,
22269
22269
  "onUpdate:modelValue": k[5] || (k[5] = (E) => s.value = E),
@@ -22493,7 +22493,7 @@ const y_ = /* @__PURE__ */ _e(h_, [["render", g_]]), v_ = { class: "flex flex-co
22493
22493
  }), null, 16, ["item", "modelValue", "onUpdate:modelValue", "style", "error"]))), 128))
22494
22494
  ]),
22495
22495
  _: 1
22496
- }, 8, ["title", "style"])) : Y("", !0);
22496
+ }, 8, ["title", "style"])) : J("", !0);
22497
22497
  }
22498
22498
  }), Q_ = ["aria-expanded", "data-focus"], eT = {
22499
22499
  key: 0,
@@ -22546,7 +22546,7 @@ const y_ = /* @__PURE__ */ _e(h_, [["render", g_]]), v_ = { class: "flex flex-co
22546
22546
  return w.value.map((X) => H.get(X?.toString())).filter((X) => !!X);
22547
22547
  }), E = F(() => n.placeholder || "Select..."), O = F(() => Q(p.value));
22548
22548
  F(() => o.value ? !w.value.length && v.value === "" : !O.value && v.value === "");
22549
- const V = F(() => s.value ? !1 : o.value ? w.value.length > 0 : !!l.value), J = (P) => o.value ? w.value.some((H) => H?.toString() === P?.toString()) : l.value?.toString() === P?.toString(), R = F(() => {
22549
+ const V = F(() => s.value ? !1 : o.value ? w.value.length > 0 : !!l.value), Y = (P) => o.value ? w.value.some((H) => H?.toString() === P?.toString()) : l.value?.toString() === P?.toString(), R = F(() => {
22550
22550
  let P = h.value ?? [];
22551
22551
  if (!n.data && v.value.trim() !== "") {
22552
22552
  const H = v.value.toLowerCase();
@@ -22632,11 +22632,11 @@ const y_ = /* @__PURE__ */ _e(h_, [["render", g_]]), v_ = { class: "flex flex-co
22632
22632
  }, yr = (P) => {
22633
22633
  o.value && (w.value = w.value.filter((H) => H?.toString() !== P?.toString()), l.value = [...w.value], r("change", l.value), Lt(() => x.value?.focus()));
22634
22634
  }, Nt = (P) => {
22635
- o.value ? (J(P.id) || (w.value = [...w.value, P.id], l.value = [...w.value], r("change", l.value)), v.value = "", Lt(() => {
22635
+ o.value ? (Y(P.id) || (w.value = [...w.value, P.id], l.value = [...w.value], r("change", l.value)), v.value = "", Lt(() => {
22636
22636
  x.value?.focus(), g.value = Math.min(g.value, R.value.length - 1);
22637
22637
  }), de(null)) : (p.value = P, l.value = P.id, r("change", l.value), v.value = "", At(), de(P));
22638
22638
  }, Jt = (P) => {
22639
- J(P.id) || Nt(P);
22639
+ Y(P.id) || Nt(P);
22640
22640
  }, yn = (P, H) => {
22641
22641
  if (!P || !H) return;
22642
22642
  const X = P.offsetTop, ye = X + P.offsetHeight, Pe = H.scrollTop, pt = Pe + H.clientHeight;
@@ -22838,7 +22838,7 @@ const y_ = /* @__PURE__ */ _e(h_, [["render", g_]]), v_ = { class: "flex flex-co
22838
22838
  key: 0,
22839
22839
  class: "w-[16px] h-[16px] rounded-md block ml-1.5 flex-shrink-0",
22840
22840
  style: Je({ backgroundColor: X?.color })
22841
- }, null, 4)) : Y("", !0),
22841
+ }, null, 4)) : J("", !0),
22842
22842
  m("div", {
22843
22843
  class: "truncate text-gray-900 overflow-hidden max-w-[200px] px-0.5 py-[2px] pl-1.5",
22844
22844
  title: Q(X)
@@ -22888,7 +22888,7 @@ const y_ = /* @__PURE__ */ _e(h_, [["render", g_]]), v_ = { class: "flex flex-co
22888
22888
  onKeydown: vn
22889
22889
  }, null, 40, lT)), [
22890
22890
  [ut, v.value]
22891
- ]) : Y("", !0)
22891
+ ]) : J("", !0)
22892
22892
  ])
22893
22893
  ])) : !o.value && !f.value && O.value && v.value === "" ? (b(), C("div", {
22894
22894
  key: 1,
@@ -22899,7 +22899,7 @@ const y_ = /* @__PURE__ */ _e(h_, [["render", g_]]), v_ = { class: "flex flex-co
22899
22899
  key: 0,
22900
22900
  class: "w-[14px] h-[14px] rounded-md block mr-1 mt-1 absolute",
22901
22901
  style: Je({ backgroundColor: p.value?.color })
22902
- }, null, 4)) : Y("", !0),
22902
+ }, null, 4)) : J("", !0),
22903
22903
  W.value ? (b(), C("span", {
22904
22904
  key: 1,
22905
22905
  class: j({ "pl-5": p.value?.color }),
@@ -22908,8 +22908,8 @@ const y_ = /* @__PURE__ */ _e(h_, [["render", g_]]), v_ = { class: "flex flex-co
22908
22908
  key: 2,
22909
22909
  class: j({ "pl-5": p.value?.color })
22910
22910
  }, ie(p.value?.text), 3))
22911
- ], 8, iT)) : Y("", !0),
22912
- o.value ? Y("", !0) : (b(), C("div", cT, [
22911
+ ], 8, iT)) : J("", !0),
22912
+ o.value ? J("", !0) : (b(), C("div", cT, [
22913
22913
  !s.value && P.search ? Le((b(), C("input", {
22914
22914
  key: 0,
22915
22915
  ref_key: "inputRef",
@@ -22929,7 +22929,7 @@ const y_ = /* @__PURE__ */ _e(h_, [["render", g_]]), v_ = { class: "flex flex-co
22929
22929
  onKeydown: vn
22930
22930
  }, null, 40, uT)), [
22931
22931
  [ut, v.value]
22932
- ]) : Y("", !0)
22932
+ ]) : J("", !0)
22933
22933
  ]))
22934
22934
  ], 512),
22935
22935
  m("div", dT, [
@@ -22949,7 +22949,7 @@ const y_ = /* @__PURE__ */ _e(h_, [["render", g_]]), v_ = { class: "flex flex-co
22949
22949
  }, [
22950
22950
  m("path", { d: "M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z" })
22951
22951
  ], -1)
22952
- ]), 8, fT)) : Y("", !0),
22952
+ ]), 8, fT)) : J("", !0),
22953
22953
  H[9] || (H[9] = m("div", { class: "self-stretch w-px bg-[#ccc] my-[1px]" }, null, -1)),
22954
22954
  m("button", {
22955
22955
  type: "button",
@@ -22993,10 +22993,10 @@ const y_ = /* @__PURE__ */ _e(h_, [["render", g_]]), v_ = { class: "flex flex-co
22993
22993
  ref: (Pe) => y.value[ye] = Pe,
22994
22994
  class: j([
22995
22995
  "flex px-3 py-2 cursor-default select-none text-gray-900 ",
22996
- J(X.id) ? "bg-blue-500 text-white" : "bg-white hover:bg-blue-100",
22997
- g.value === ye && !J(X.id) ? "bg-blue-100" : ""
22996
+ Y(X.id) ? "bg-blue-500 text-white" : "bg-white hover:bg-blue-100",
22997
+ g.value === ye && !Y(X.id) ? "bg-blue-100" : ""
22998
22998
  ]),
22999
- "aria-disabled": J(X.id) ? "true" : "false",
22999
+ "aria-disabled": Y(X.id) ? "true" : "false",
23000
23000
  role: "option",
23001
23001
  tabindex: "-1",
23002
23002
  onClick: (Pe) => Jt(X)
@@ -23005,7 +23005,7 @@ const y_ = /* @__PURE__ */ _e(h_, [["render", g_]]), v_ = { class: "flex flex-co
23005
23005
  key: 0,
23006
23006
  class: "w-[11px] h-[11px] rounded-full block mr-1 mt-1.5",
23007
23007
  style: Je({ backgroundColor: X?.color })
23008
- }, null, 4)) : Y("", !0),
23008
+ }, null, 4)) : J("", !0),
23009
23009
  m("div", {
23010
23010
  class: j([
23011
23011
  "leading-[19px]",
@@ -23023,7 +23023,7 @@ const y_ = /* @__PURE__ */ _e(h_, [["render", g_]]), v_ = { class: "flex flex-co
23023
23023
  ], 2)
23024
23024
  ], 10, hT))), 128)) : (b(), C("div", gT, " No options "))
23025
23025
  ], 4)
23026
- ], 4)) : Y("", !0)
23026
+ ], 4)) : J("", !0)
23027
23027
  ]))
23028
23028
  ], 2),
23029
23029
  n.add ? (b(), C("button", {
@@ -23038,7 +23038,7 @@ const y_ = /* @__PURE__ */ _e(h_, [["render", g_]]), v_ = { class: "flex flex-co
23038
23038
  height: "16"
23039
23039
  }),
23040
23040
  H[12] || (H[12] = m("span", null, "Додати", -1))
23041
- ], 8, yT)) : Y("", !0)
23041
+ ], 8, yT)) : J("", !0)
23042
23042
  ], 512)
23043
23043
  ], 64));
23044
23044
  }
@@ -23284,7 +23284,7 @@ const KT = /* @__PURE__ */ _e(jT, [["render", WT]]), qT = { class: "vs-datatable
23284
23284
  async function V() {
23285
23285
  S.value = "Додати", k.value = !0, w = "add", E.value = {};
23286
23286
  }
23287
- function J(W, Z) {
23287
+ function Y(W, Z) {
23288
23288
  const Q = Z.key || Z.name;
23289
23289
  return r.value[Q] && W[Q] ? r.value[Q].find((de) => de.id.toString() === W[Q].toString())?.text ?? W[Q] : W[Q] || "-";
23290
23290
  }
@@ -23382,7 +23382,7 @@ const KT = /* @__PURE__ */ _e(jT, [["render", WT]]), qT = { class: "vs-datatable
23382
23382
  ])
23383
23383
  ])
23384
23384
  ])
23385
- ], 4)) : Y("", !0)
23385
+ ], 4)) : J("", !0)
23386
23386
  ])),
23387
23387
  m("button", {
23388
23388
  onClick: V,
@@ -23423,7 +23423,7 @@ const KT = /* @__PURE__ */ _e(jT, [["render", WT]]), qT = { class: "vs-datatable
23423
23423
  ], -1))
23424
23424
  ])
23425
23425
  ])
23426
- ])) : Y("", !0),
23426
+ ])) : J("", !0),
23427
23427
  (b(!0), C(xe, null, Ae(s.value, (Q, de) => (b(), C("tr", {
23428
23428
  key: Q.id,
23429
23429
  class: j(["border-b data-[state=selected]:bg-muted transition-all duration-200 hover:bg-slate-50/60 dark:hover:bg-slate-700/60 cursor-move", {
@@ -23449,9 +23449,9 @@ const KT = /* @__PURE__ */ _e(jT, [["render", WT]]), qT = { class: "vs-datatable
23449
23449
  class: "p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]"
23450
23450
  }, [
23451
23451
  he.type === "file" ? (b(), C("div", hM, [
23452
- y(J(Q, he)) ? (b(), C("div", mM, [
23452
+ y(Y(Q, he)) ? (b(), C("div", mM, [
23453
23453
  m("img", {
23454
- src: J(Q, he),
23454
+ src: Y(Q, he),
23455
23455
  alt: "alt",
23456
23456
  width: "45",
23457
23457
  class: "rounded-md max-w-[45px] h-[45px] object-cover"
@@ -23462,8 +23462,8 @@ const KT = /* @__PURE__ */ _e(jT, [["render", WT]]), qT = { class: "vs-datatable
23462
23462
  ])) : he.type === "tiptap-editor" ? (b(), C("div", {
23463
23463
  key: 1,
23464
23464
  class: "rounded-md border px-2.5 py-0.5 text-xs font-semibold focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 border-transparent bg-slate-100 dark:bg-slate-700 text-slate-700 dark:text-slate-300 hover:bg-slate-200 dark:hover:bg-slate-600 transition-colors line-clamp-3",
23465
- innerHTML: J(Q, he)
23466
- }, null, 8, vM)) : he.type === "reference" ? (b(), C("div", bM, ie(J(Q, he)), 1)) : (b(), C("div", xM, ie(J(Q, he)), 1))
23465
+ innerHTML: Y(Q, he)
23466
+ }, null, 8, vM)) : he.type === "reference" ? (b(), C("div", bM, ie(Y(Q, he)), 1)) : (b(), C("div", xM, ie(Y(Q, he)), 1))
23467
23467
  ]))), 128)),
23468
23468
  m("td", kM, [
23469
23469
  m("div", wM, [
@@ -23814,14 +23814,14 @@ const GM = /* @__PURE__ */ _e(WM, [["render", qM]]), JM = { class: "map-search-w
23814
23814
  if (M.length < 2) return null;
23815
23815
  const E = M.slice(0, 2).map(Number);
23816
23816
  if (!E.every((ne) => Number.isFinite(ne))) return null;
23817
- let [O, V] = E, J = O, R = V;
23817
+ let [O, V] = E, Y = O, R = V;
23818
23818
  const I = (ne) => Math.abs(ne) <= 90, G = (ne) => Math.abs(ne) <= 180;
23819
- if (!I(J) || !G(R))
23820
- if (I(R) && G(J))
23821
- J = V, R = O;
23819
+ if (!I(Y) || !G(R))
23820
+ if (I(R) && G(Y))
23821
+ Y = V, R = O;
23822
23822
  else
23823
23823
  return null;
23824
- return { lat: J, lng: R };
23824
+ return { lat: Y, lng: R };
23825
23825
  }
23826
23826
  function g(k) {
23827
23827
  return (k?.items || []).map((w, M) => ({
@@ -23933,8 +23933,8 @@ const GM = /* @__PURE__ */ _e(WM, [["render", qM]]), JM = { class: "map-search-w
23933
23933
  onClick: (E) => d(M)
23934
23934
  }, ie(p(M)), 9, XM))), 128))
23935
23935
  ])
23936
- ])) : Y("", !0)
23937
- ], 512)) : Y("", !0),
23936
+ ])) : J("", !0)
23937
+ ], 512)) : J("", !0),
23938
23938
  m("div", ZM, [
23939
23939
  Le(m("input", {
23940
23940
  "onUpdate:modelValue": w[1] || (w[1] = (M) => a.value = M),
@@ -24077,7 +24077,7 @@ const GM = /* @__PURE__ */ _e(WM, [["render", qM]]), JM = { class: "map-search-w
24077
24077
  function V(_, N) {
24078
24078
  return _?.id ? String(_.id) : _?.url ? `${_.url}-${N}` : `layer-${N}`;
24079
24079
  }
24080
- function J(_) {
24080
+ function Y(_) {
24081
24081
  if (!_) return "";
24082
24082
  if (/^https?:\/\//i.test(_))
24083
24083
  return _.replace(/\/+$/, "");
@@ -24090,7 +24090,7 @@ const GM = /* @__PURE__ */ _e(WM, [["render", qM]]), JM = { class: "map-search-w
24090
24090
  const q = typeof window < "u" && window.location?.origin ? window.location.origin : "";
24091
24091
  if (N.startsWith("/"))
24092
24092
  return q ? `${q}${N}` : N;
24093
- const ee = J(_?.prefix), se = J(r.prefix), ke = ee || se, P = N.replace(/^\/+/, ""), H = ke ? `${ke.replace(/\/$/, "")}/${P}` : `/${P}`;
24093
+ const ee = Y(_?.prefix), se = Y(r.prefix), ke = ee || se, P = N.replace(/^\/+/, ""), H = ke ? `${ke.replace(/\/$/, "")}/${P}` : `/${P}`;
24094
24094
  return q ? `${q}${H}` : H;
24095
24095
  }
24096
24096
  function I(_) {
@@ -24592,7 +24592,7 @@ const GM = /* @__PURE__ */ _e(WM, [["render", qM]]), JM = { class: "map-search-w
24592
24592
  m("div", uA, [
24593
24593
  m("p", dA, ie(d.value), 1)
24594
24594
  ])
24595
- ])) : Y("", !0)
24595
+ ])) : J("", !0)
24596
24596
  ]),
24597
24597
  _: 1
24598
24598
  }),
@@ -24600,7 +24600,7 @@ const GM = /* @__PURE__ */ _e(WM, [["render", qM]]), JM = { class: "map-search-w
24600
24600
  s.value.search ? (b(), ve(rA, {
24601
24601
  key: 0,
24602
24602
  onGoToCoordinates: $
24603
- })) : Y("", !0),
24603
+ })) : J("", !0),
24604
24604
  s.value.import || s.value.export ? (b(), C("div", pA, [
24605
24605
  m("div", hA, [
24606
24606
  s.value.import ? (b(), C("button", {
@@ -24609,14 +24609,14 @@ const GM = /* @__PURE__ */ _e(WM, [["render", qM]]), JM = { class: "map-search-w
24609
24609
  class: "inline-flex items-center gap-2 text-sm font-medium border rounded-md px-3 py-2 bg-white text-blue-600 border-stone-200 hover:bg-blue-500 hover:text-white transition",
24610
24610
  onClick: yn,
24611
24611
  disabled: l.value
24612
- }, " Import ", 8, mA)) : Y("", !0),
24612
+ }, " Import ", 8, mA)) : J("", !0),
24613
24613
  s.value.export ? (b(), C("button", {
24614
24614
  key: 1,
24615
24615
  type: "button",
24616
24616
  class: "inline-flex items-center gap-2 text-sm font-medium border rounded-md px-3 py-2 bg-white text-blue-600 border-stone-200 hover:bg-blue-500 hover:text-white transition",
24617
24617
  onClick: Ie,
24618
24618
  disabled: l.value || zt.value === 0
24619
- }, " Export ", 8, gA)) : Y("", !0)
24619
+ }, " Export ", 8, gA)) : J("", !0)
24620
24620
  ]),
24621
24621
  m("input", {
24622
24622
  ref_key: "importRef",
@@ -24627,8 +24627,8 @@ const GM = /* @__PURE__ */ _e(WM, [["render", qM]]), JM = { class: "map-search-w
24627
24627
  class: "hidden",
24628
24628
  disabled: l.value
24629
24629
  }, null, 40, yA)
24630
- ])) : Y("", !0)
24631
- ])) : Y("", !0),
24630
+ ])) : J("", !0)
24631
+ ])) : J("", !0),
24632
24632
  m("div", vA, [
24633
24633
  m("div", bA, [
24634
24634
  s.value.point ? (b(), C("button", {
@@ -24639,7 +24639,7 @@ const GM = /* @__PURE__ */ _e(WM, [["render", qM]]), JM = { class: "map-search-w
24639
24639
  disabled: l.value
24640
24640
  }, [
24641
24641
  le(OM)
24642
- ], 10, xA)) : Y("", !0),
24642
+ ], 10, xA)) : J("", !0),
24643
24643
  s.value.line ? (b(), C("button", {
24644
24644
  key: 1,
24645
24645
  class: j(["vs-btn", { "vs-active": at.value === "polyline" }]),
@@ -24648,7 +24648,7 @@ const GM = /* @__PURE__ */ _e(WM, [["render", qM]]), JM = { class: "map-search-w
24648
24648
  disabled: l.value
24649
24649
  }, [
24650
24650
  le(PM)
24651
- ], 10, kA)) : Y("", !0),
24651
+ ], 10, kA)) : J("", !0),
24652
24652
  s.value.polygon ? (b(), C("button", {
24653
24653
  key: 2,
24654
24654
  class: j(["vs-btn", { "vs-active": at.value === "polygon" }]),
@@ -24657,7 +24657,7 @@ const GM = /* @__PURE__ */ _e(WM, [["render", qM]]), JM = { class: "map-search-w
24657
24657
  disabled: l.value
24658
24658
  }, [
24659
24659
  le(VM)
24660
- ], 10, wA)) : Y("", !0),
24660
+ ], 10, wA)) : J("", !0),
24661
24661
  s.value.rectangle ? (b(), C("button", {
24662
24662
  key: 3,
24663
24663
  class: j(["vs-btn", { "vs-active": at.value === "rectangle" }]),
@@ -24666,7 +24666,7 @@ const GM = /* @__PURE__ */ _e(WM, [["render", qM]]), JM = { class: "map-search-w
24666
24666
  disabled: l.value
24667
24667
  }, [
24668
24668
  le(UM)
24669
- ], 10, CA)) : Y("", !0),
24669
+ ], 10, CA)) : J("", !0),
24670
24670
  m("button", {
24671
24671
  class: "vs-btn mt-5",
24672
24672
  onClick: N[4] || (N[4] = (q) => Ee.value = !Ee.value),
@@ -24701,7 +24701,7 @@ const GM = /* @__PURE__ */ _e(WM, [["render", qM]]), JM = { class: "map-search-w
24701
24701
  m("span", MA, ie(q.config.title || q.config.name || q.id), 1)
24702
24702
  ]))), 128))
24703
24703
  ])
24704
- ])) : Y("", !0)
24704
+ ])) : J("", !0)
24705
24705
  ])
24706
24706
  ], 2),
24707
24707
  m("div", AA, [
@@ -24721,13 +24721,13 @@ const GM = /* @__PURE__ */ _e(WM, [["render", qM]]), JM = { class: "map-search-w
24721
24721
  ref: c,
24722
24722
  class: "text-gray-500 text-xs truncate cursor-help",
24723
24723
  style: { "max-width": "260px" }
24724
- }, " Address: " + ie(k.value), 513)) : Y("", !0),
24724
+ }, " Address: " + ie(k.value), 513)) : J("", !0),
24725
24725
  (b(), ve(Vr, { to: "body" }, [
24726
24726
  i.value && k.value && a.value ? (b(), C("div", {
24727
24727
  key: 0,
24728
24728
  class: "fixed z-[99999] pointer-events-none bg-gray-800 text-white text-xs px-2 py-1 rounded shadow whitespace-nowrap",
24729
24729
  style: Je({ top: a.value.top + "px", left: a.value.left + "px" })
24730
- }, ie(k.value), 5)) : Y("", !0)
24730
+ }, ie(k.value), 5)) : J("", !0)
24731
24731
  ]))
24732
24732
  ], 32),
24733
24733
  m("div", IA, [
@@ -24759,7 +24759,7 @@ const GM = /* @__PURE__ */ _e(WM, [["render", qM]]), JM = { class: "map-search-w
24759
24759
  le(ql, { class: "w-3 h-3" })
24760
24760
  ], 8, FA)
24761
24761
  ])
24762
- ])) : Y("", !0)
24762
+ ])) : J("", !0)
24763
24763
  ])
24764
24764
  ], 2));
24765
24765
  }
@@ -24843,7 +24843,7 @@ const GM = /* @__PURE__ */ _e(WM, [["render", qM]]), JM = { class: "map-search-w
24843
24843
  m("div", {
24844
24844
  role: "button",
24845
24845
  class: "flex items-center rounded-sm px-1 box-border hover:bg-[#ffbdad] hover:text-[#de350b]",
24846
- onClick: $t((J) => v(V), ["stop"]),
24846
+ onClick: $t((Y) => v(V), ["stop"]),
24847
24847
  "aria-label": `Remove ${O}`
24848
24848
  }, E[2] || (E[2] = [
24849
24849
  m("svg", {
@@ -24858,9 +24858,9 @@ const GM = /* @__PURE__ */ _e(WM, [["render", qM]]), JM = { class: "map-search-w
24858
24858
  ], -1)
24859
24859
  ]), 8, UA)
24860
24860
  ]))), 128)),
24861
- d.value ? (b(), C("div", WA, ie(u.value), 1)) : Y("", !0),
24861
+ d.value ? (b(), C("div", WA, ie(u.value), 1)) : J("", !0),
24862
24862
  m("div", KA, [
24863
- p.value ? Y("", !0) : Le((b(), C("input", {
24863
+ p.value ? J("", !0) : Le((b(), C("input", {
24864
24864
  key: 0,
24865
24865
  ref_key: "inputRef",
24866
24866
  ref: l,
@@ -24899,7 +24899,7 @@ const GM = /* @__PURE__ */ _e(WM, [["render", qM]]), JM = { class: "map-search-w
24899
24899
  }, [
24900
24900
  m("path", { d: "M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z" })
24901
24901
  ], -1)
24902
- ]), 8, JA)) : Y("", !0)
24902
+ ]), 8, JA)) : J("", !0)
24903
24903
  ])
24904
24904
  ], 10, zA)
24905
24905
  ], 2)
@@ -25138,7 +25138,7 @@ const GM = /* @__PURE__ */ _e(WM, [["render", qM]]), JM = { class: "map-search-w
25138
25138
  ], 8, pN)
25139
25139
  ], 42, uN))), 128))
25140
25140
  ], 512),
25141
- a.value.length ? Y("", !0) : (b(), C("span", hN, " Дані для відображення відсутні ")),
25141
+ a.value.length ? J("", !0) : (b(), C("span", hN, " Дані для відображення відсутні ")),
25142
25142
  m("div", mN, [
25143
25143
  m("button", {
25144
25144
  type: "button",
@@ -25404,7 +25404,7 @@ const GM = /* @__PURE__ */ _e(WM, [["render", qM]]), JM = { class: "map-search-w
25404
25404
  m("path", { d: "M12 16v-4" }),
25405
25405
  m("path", { d: "M12 8h.01" })
25406
25406
  ], -1)
25407
- ]))) : Y("", !0)
25407
+ ]))) : J("", !0)
25408
25408
  ]),
25409
25409
  m("button", {
25410
25410
  type: "button",
@@ -25483,9 +25483,9 @@ const GM = /* @__PURE__ */ _e(WM, [["render", qM]]), JM = { class: "map-search-w
25483
25483
  class: "px-3 py-2 cursor-pointer hover:bg-gray-100 border-b text-sm"
25484
25484
  }, ie(S.display_name), 9, FN))), 128))
25485
25485
  ]),
25486
- a.value.length ? Y("", !0) : (b(), C("div", BN, " No results found "))
25486
+ a.value.length ? J("", !0) : (b(), C("div", BN, " No results found "))
25487
25487
  ])
25488
- ])) : Y("", !0)
25488
+ ])) : J("", !0)
25489
25489
  ]))
25490
25490
  ]));
25491
25491
  }
@@ -25596,9 +25596,9 @@ const GM = /* @__PURE__ */ _e(WM, [["render", qM]]), JM = { class: "map-search-w
25596
25596
  modelValue: n.value,
25597
25597
  "onUpdate:modelValue": a[0] || (a[0] = (c) => n.value = c)
25598
25598
  }), null, 16, ["modelValue"])),
25599
- i.item.description && e.layout !== "settings" ? (b(), C("p", UN, ie(i.item.description), 1)) : Y("", !0)
25599
+ i.item.description && e.layout !== "settings" ? (b(), C("p", UN, ie(i.item.description), 1)) : J("", !0)
25600
25600
  ]),
25601
- i.item.behavior?.api && i.item.behavior?.button ? (b(), ve(HN, ar({ key: 0 }, i.item.behavior, { value: n.value }), null, 16, ["value"])) : Y("", !0)
25601
+ i.item.behavior?.api && i.item.behavior?.button ? (b(), ve(HN, ar({ key: 0 }, i.item.behavior, { value: n.value }), null, 16, ["value"])) : J("", !0)
25602
25602
  ], 2)
25603
25603
  ]),
25604
25604
  _: 1
@@ -25724,7 +25724,7 @@ const GM = /* @__PURE__ */ _e(WM, [["render", qM]]), JM = { class: "map-search-w
25724
25724
  O(), d = 0;
25725
25725
  }));
25726
25726
  }
25727
- function J(R) {
25727
+ function Y(R) {
25728
25728
  if (!l.value) return;
25729
25729
  const I = document.getElementById(R);
25730
25730
  if (!I) return;
@@ -25748,7 +25748,7 @@ const GM = /* @__PURE__ */ _e(WM, [["render", qM]]), JM = { class: "map-search-w
25748
25748
  }, [
25749
25749
  m("button", {
25750
25750
  type: "button",
25751
- onClick: (ne) => J(G.id),
25751
+ onClick: (ne) => Y(G.id),
25752
25752
  class: j([
25753
25753
  "vs-compact-form-navigation__button flex gap-x-3 py-[6px] pr-3 text-sm duration-200 hover:text-gray-800",
25754
25754
  G.level === 2 ? "pl-[15px]" : "pl-[18px]",
@@ -25759,7 +25759,7 @@ const GM = /* @__PURE__ */ _e(WM, [["render", qM]]), JM = { class: "map-search-w
25759
25759
  ], 10, qN)
25760
25760
  ], 2))), 128))
25761
25761
  ])
25762
- ], 6)) : Y("", !0);
25762
+ ], 6)) : J("", !0);
25763
25763
  }
25764
25764
  }), JN = /* @__PURE__ */ _e(GN, [["__scopeId", "data-v-1584a562"]]), pm = {
25765
25765
  required: "Це поле є обов’язковим",
@@ -25901,8 +25901,8 @@ const rL = { class: "flex w-full h-full min-h-0 gap-6" }, oL = {
25901
25901
  function E(O, V) {
25902
25902
  if (O === V) return !0;
25903
25903
  if (typeof O != "object" || typeof V != "object" || !O || !V) return !1;
25904
- const J = Object.keys(O), R = Object.keys(V);
25905
- return J.length !== R.length ? !1 : J.every((I) => O[I] === V[I]);
25904
+ const Y = Object.keys(O), R = Object.keys(V);
25905
+ return Y.length !== R.length ? !1 : Y.every((I) => O[I] === V[I]);
25906
25906
  }
25907
25907
  return Oc("form", s), Oc("values", l), (O, V) => (b(), C("div", rL, [
25908
25908
  m("div", {
@@ -25916,23 +25916,23 @@ const rL = { class: "flex w-full h-full min-h-0 gap-6" }, oL = {
25916
25916
  onSubmit: $t(M, ["prevent"]),
25917
25917
  class: j(["grid grid-cols-12 p-1", S.value === "default" ? "gap-6" : "gap-4"])
25918
25918
  }, [
25919
- (b(!0), C(xe, null, Ae(ae(u), (J, R) => (b(), C("div", {
25920
- key: J.name,
25921
- class: j(k(J) === "horizontal" ? "col-span-12" : `col-span-${J.col || 12}`)
25919
+ (b(!0), C(xe, null, Ae(ae(u), (Y, R) => (b(), C("div", {
25920
+ key: Y.name,
25921
+ class: j(k(Y) === "horizontal" ? "col-span-12" : `col-span-${Y.col || 12}`)
25922
25922
  }, [
25923
25923
  le(fm, {
25924
25924
  style: Je(O.style),
25925
- item: J,
25926
- layout: k(J),
25927
- columns: w(J),
25928
- "model-value": l.value[J.name],
25925
+ item: Y,
25926
+ layout: k(Y),
25927
+ columns: w(Y),
25928
+ "model-value": l.value[Y.name],
25929
25929
  "onUpdate:modelValue": (I) => {
25930
- const G = l.value[J.name];
25931
- E(G, I) || (l.value[J.name] = I);
25930
+ const G = l.value[Y.name];
25931
+ E(G, I) || (l.value[Y.name] = I);
25932
25932
  },
25933
- error: ae(i)[J.name]
25933
+ error: ae(i)[Y.name]
25934
25934
  }, null, 8, ["style", "item", "layout", "columns", "model-value", "onUpdate:modelValue", "error"]),
25935
- k(J) === "settings" && R + 1 !== ae(u).length ? (b(), C("div", oL)) : Y("", !0)
25935
+ k(Y) === "settings" && R + 1 !== ae(u).length ? (b(), C("div", oL)) : J("", !0)
25936
25936
  ], 2))), 128))
25937
25937
  ], 34)
25938
25938
  ], 512),
@@ -26076,7 +26076,7 @@ const rL = { class: "flex w-full h-full min-h-0 gap-6" }, oL = {
26076
26076
  "onUpdate:values": f[0] || (f[0] = (p) => s.value = p),
26077
26077
  form: l.value,
26078
26078
  "onUpdate:form": f[1] || (f[1] = (p) => l.value = p)
26079
- }, null, 8, ["schema", "values", "form"])) : Y("", !0)
26079
+ }, null, 8, ["schema", "values", "form"])) : J("", !0)
26080
26080
  ]),
26081
26081
  m("div", { class: "vs-form__head mr-5 mb-5 mt-3 flex items-center justify-end sticky top-0 left-0 z-[60] bg-white" }, [
26082
26082
  m("button", {
@@ -26226,12 +26226,10 @@ const fL = { class: "relative" }, pL = {
26226
26226
  s.value = !0;
26227
26227
  let E = "", O = !1;
26228
26228
  const V = e.editor.getAttributes("link");
26229
- V && V.href && (E = V.href, O = V.target === "_blank");
26230
- const J = M.src ? [M.src] : [];
26231
- i.value = {
26229
+ V && V.href && (E = V.href, O = V.target === "_blank"), i.value = {
26232
26230
  src: M.src || "",
26233
- file: J,
26234
- // Завжди масив
26231
+ file: [],
26232
+ // Порожній масив при редагуванні
26235
26233
  alt: M.alt || "",
26236
26234
  title: M.title || "",
26237
26235
  width: M.width || "",
@@ -26294,8 +26292,8 @@ const fL = { class: "relative" }, pL = {
26294
26292
  if (E instanceof File)
26295
26293
  try {
26296
26294
  const O = new FileReader();
26297
- w = await new Promise((J, R) => {
26298
- O.onload = (I) => J(I.target.result), O.onerror = R, O.readAsDataURL(E);
26295
+ w = await new Promise((Y, R) => {
26296
+ O.onload = (I) => Y(I.target.result), O.onerror = R, O.readAsDataURL(E);
26299
26297
  });
26300
26298
  } catch (O) {
26301
26299
  console.error("Помилка при читанні файлу:", O), Ge({
@@ -26326,7 +26324,7 @@ const fL = { class: "relative" }, pL = {
26326
26324
  }
26327
26325
  if (e.editor && w)
26328
26326
  if (s.value) {
26329
- const { state: E } = e.editor, { selection: O } = E, { $anchor: V } = O, J = e.editor.getAttributes("link"), R = J && J.href;
26327
+ const { state: E } = e.editor, { selection: O } = E, { $anchor: V } = O, Y = e.editor.getAttributes("link"), R = Y && Y.href;
26330
26328
  if (e.editor.chain().focus().updateAttributes("image", {
26331
26329
  src: w,
26332
26330
  alt: i.value.alt || "",
@@ -26345,18 +26343,18 @@ const fL = { class: "relative" }, pL = {
26345
26343
  } else R && e.editor.chain().focus().extendMarkRange("link").unsetLink().run();
26346
26344
  } else {
26347
26345
  const { state: E } = e.editor, { selection: O } = E, { $anchor: V } = O;
26348
- let J = null;
26346
+ let Y = null;
26349
26347
  for (let I = V.depth; I > 0; I--) {
26350
26348
  const G = V.node(I);
26351
26349
  if (G && G.type.name === "paragraph") {
26352
- J = G;
26350
+ Y = G;
26353
26351
  break;
26354
26352
  }
26355
26353
  }
26356
- if (J && J.content.content.some(
26354
+ if (Y && Y.content.content.some(
26357
26355
  (I) => I.type.name === "image"
26358
26356
  )) {
26359
- const I = v(J, V.before(V.depth));
26357
+ const I = v(Y, V.before(V.depth));
26360
26358
  if (I !== null) {
26361
26359
  const G = E.schema.nodes.image.create({
26362
26360
  src: w,
@@ -26438,7 +26436,7 @@ const fL = { class: "relative" }, pL = {
26438
26436
  w.length > 0 && e.editor.chain().focus().command(({ tr: M, dispatch: E }) => {
26439
26437
  if (E) {
26440
26438
  const { selection: O } = M, { $anchor: V } = O;
26441
- let J = O.$anchor.pos, R = null, I = null;
26439
+ let Y = O.$anchor.pos, R = null, I = null;
26442
26440
  for (let ne = V.depth; ne > 0; ne--) {
26443
26441
  const W = V.node(ne);
26444
26442
  if (W && W.type.name === "paragraph") {
@@ -26450,9 +26448,9 @@ const fL = { class: "relative" }, pL = {
26450
26448
  let ne = null;
26451
26449
  R.forEach((W, Z) => {
26452
26450
  W.type.name === "image" && (ne = I + Z + 1);
26453
- }), ne !== null ? J = ne + 1 : J = I + R.content.size;
26451
+ }), ne !== null ? Y = ne + 1 : Y = I + R.content.size;
26454
26452
  }
26455
- let G = J;
26453
+ let G = Y;
26456
26454
  return w.forEach((ne) => {
26457
26455
  M.insert(G, ne), G += ne.nodeSize;
26458
26456
  }), !0;
@@ -26472,7 +26470,7 @@ const fL = { class: "relative" }, pL = {
26472
26470
  p();
26473
26471
  };
26474
26472
  return be(() => i.value.file, async (w) => {
26475
- r.value = !1, Array.isArray(w) && w.length > 0 ? await h(w) : w && typeof w == "object" && w instanceof FileList ? await h(Array.from(w)) : w && typeof w == "object" && !Array.isArray(w) && w instanceof File ? await h([w]) : l.value = [];
26473
+ r.value = !1, Array.isArray(w) && w.length > 0 ? w.some((E) => E instanceof File) ? await h(w) : l.value = [] : w && typeof w == "object" && w instanceof FileList ? await h(Array.from(w)) : w && typeof w == "object" && !Array.isArray(w) && w instanceof File ? await h([w]) : l.value = [];
26476
26474
  }, { immediate: !0 }), be(() => i.value.src, () => {
26477
26475
  r.value = !1;
26478
26476
  }), (w, M) => (b(), C("div", fL, [
@@ -26524,8 +26522,8 @@ const fL = { class: "relative" }, pL = {
26524
26522
  }, null, 40, hL), [
26525
26523
  [no, !r.value]
26526
26524
  ]),
26527
- r.value ? (b(), C("p", mL, " Не вдалося завантажити попередній перегляд зображення ")) : Y("", !0)
26528
- ])) : Y("", !0),
26525
+ r.value ? (b(), C("p", mL, " Не вдалося завантажити попередній перегляд зображення ")) : J("", !0)
26526
+ ])) : J("", !0),
26529
26527
  l.value.length > 0 ? (b(), C("div", gL, [
26530
26528
  m("p", yL, "Попередній перегляд (" + ie(l.value.length) + " зображень):", 1),
26531
26529
  M[6] || (M[6] = m("p", { class: "text-xs text-gray-500 mb-2" }, " Зображення будуть розміщені в ряд, якщо вони помістяться по ширині ", -1)),
@@ -26549,7 +26547,7 @@ const fL = { class: "relative" }, pL = {
26549
26547
  }, " × ", 8, xL)
26550
26548
  ]))), 128))
26551
26549
  ])
26552
- ])) : Y("", !0)
26550
+ ])) : J("", !0)
26553
26551
  ]),
26554
26552
  _: 1
26555
26553
  }, 8, ["modelValue", "title"])
@@ -26694,7 +26692,7 @@ const fL = { class: "relative" }, pL = {
26694
26692
  l[4] || (l[4] = dt('<div class="space-y-6" data-v-72ce3024><div data-v-72ce3024><h3 class="text-lg font-medium text-gray-800 mb-3" data-v-72ce3024>Markdown Syntax</h3><div class="overflow-x-auto" data-v-72ce3024><table class="w-full border-collapse" data-v-72ce3024><thead data-v-72ce3024><tr class="bg-gray-50" data-v-72ce3024><th class="border border-gray-200 px-3 py-2 text-left font-medium text-gray-700" data-v-72ce3024>Element</th><th class="border border-gray-200 px-3 py-2 text-left font-medium text-gray-700" data-v-72ce3024>Example</th></tr></thead><tbody class="text-sm" data-v-72ce3024><tr data-v-72ce3024><td class="border border-gray-200 px-3 py-2 font-medium" data-v-72ce3024>Bold</td><td class="border border-gray-200 px-3 py-2" data-v-72ce3024><code class="bg-gray-100 px-2 py-1 rounded" data-v-72ce3024>**bold text**</code> or <code class="bg-gray-100 px-2 py-1 rounded" data-v-72ce3024>__bold text__</code></td></tr><tr class="bg-gray-25" data-v-72ce3024><td class="border border-gray-200 px-3 py-2 font-medium" data-v-72ce3024>Italics</td><td class="border border-gray-200 px-3 py-2" data-v-72ce3024><code class="bg-gray-100 px-2 py-1 rounded" data-v-72ce3024>*italic text*</code> or <code class="bg-gray-100 px-2 py-1 rounded" data-v-72ce3024>_italic text_</code></td></tr><tr data-v-72ce3024><td class="border border-gray-200 px-3 py-2 font-medium" data-v-72ce3024>Strikethrough</td><td class="border border-gray-200 px-3 py-2" data-v-72ce3024><code class="bg-gray-100 px-2 py-1 rounded" data-v-72ce3024>~strikethrough text~</code></td></tr><tr class="bg-gray-25" data-v-72ce3024><td class="border border-gray-200 px-3 py-2 font-medium" data-v-72ce3024>Headings</td><td class="border border-gray-200 px-3 py-2" data-v-72ce3024><code class="bg-gray-100 px-2 py-1 rounded" data-v-72ce3024># Heading 1</code>, <code class="bg-gray-100 px-2 py-1 rounded" data-v-72ce3024>## Heading 2</code>, etc., up to <code class="bg-gray-100 px-2 py-1 rounded" data-v-72ce3024>###### Heading 6</code></td></tr><tr data-v-72ce3024><td class="border border-gray-200 px-3 py-2 font-medium" data-v-72ce3024>Unordered Lists</td><td class="border border-gray-200 px-3 py-2" data-v-72ce3024> Use an asterisk (*), dash (-), or plus sign (+) followed by a space. </td></tr><tr class="bg-gray-25" data-v-72ce3024><td class="border border-gray-200 px-3 py-2 font-medium" data-v-72ce3024>Ordered Lists</td><td class="border border-gray-200 px-3 py-2" data-v-72ce3024> Use a number followed by a period and a space (e.g., <code class="bg-gray-100 px-2 py-1 rounded" data-v-72ce3024>1. First item</code>). </td></tr><tr data-v-72ce3024><td class="border border-gray-200 px-3 py-2 font-medium" data-v-72ce3024>Blockquotes</td><td class="border border-gray-200 px-3 py-2" data-v-72ce3024> Start with a greater-than sign (&gt;) followed by a space. </td></tr><tr class="bg-gray-25" data-v-72ce3024><td class="border border-gray-200 px-3 py-2 font-medium" data-v-72ce3024>Inline Code</td><td class="border border-gray-200 px-3 py-2" data-v-72ce3024> Surround with backticks (<code class="bg-gray-100 px-2 py-1 rounded" data-v-72ce3024>`</code>). </td></tr><tr data-v-72ce3024><td class="border border-gray-200 px-3 py-2 font-medium" data-v-72ce3024>Code Blocks</td><td class="border border-gray-200 px-3 py-2" data-v-72ce3024> Enclose with three backticks (<code class="bg-gray-100 px-2 py-1 rounded" data-v-72ce3024>```</code>) before and after the code. </td></tr><tr class="bg-gray-25" data-v-72ce3024><td class="border border-gray-200 px-3 py-2 font-medium" data-v-72ce3024>Images</td><td class="border border-gray-200 px-3 py-2" data-v-72ce3024> Use <code class="bg-gray-100 px-2 py-1 rounded" data-v-72ce3024>![alt text](url)</code> syntax. </td></tr><tr data-v-72ce3024><td class="border border-gray-200 px-3 py-2 font-medium" data-v-72ce3024>Links</td><td class="border border-gray-200 px-3 py-2" data-v-72ce3024> Use <code class="bg-gray-100 px-2 py-1 rounded" data-v-72ce3024>[Link Text](url)</code> syntax. </td></tr><tr class="bg-gray-25" data-v-72ce3024><td class="border border-gray-200 px-3 py-2 font-medium" data-v-72ce3024>Checklists</td><td class="border border-gray-200 px-3 py-2" data-v-72ce3024> Create a list item with <code class="bg-gray-100 px-2 py-1 rounded" data-v-72ce3024>- [ ]</code> for an incomplete task or <code class="bg-gray-100 px-2 py-1 rounded" data-v-72ce3024>- [x]</code> for a completed one. </td></tr></tbody></table></div></div><div data-v-72ce3024><h3 class="text-lg font-medium text-gray-800 mb-3" data-v-72ce3024>Common Editing Shortcuts</h3><div class="overflow-x-auto" data-v-72ce3024><table class="w-full border-collapse" data-v-72ce3024><thead data-v-72ce3024><tr class="bg-gray-50" data-v-72ce3024><th class="border border-gray-200 px-3 py-2 text-left font-medium text-gray-700" data-v-72ce3024>Shortcut</th><th class="border border-gray-200 px-3 py-2 text-left font-medium text-gray-700" data-v-72ce3024>Action</th></tr></thead><tbody class="text-sm" data-v-72ce3024><tr data-v-72ce3024><td class="border border-gray-200 px-3 py-2 font-medium" data-v-72ce3024><code class="bg-gray-100 px-2 py-1 rounded" data-v-72ce3024>Ctrl+A</code></td><td class="border border-gray-200 px-3 py-2" data-v-72ce3024>Select all text</td></tr><tr class="bg-gray-25" data-v-72ce3024><td class="border border-gray-200 px-3 py-2 font-medium" data-v-72ce3024><code class="bg-gray-100 px-2 py-1 rounded" data-v-72ce3024>Ctrl+B</code></td><td class="border border-gray-200 px-3 py-2" data-v-72ce3024>Apply bold formatting</td></tr><tr data-v-72ce3024><td class="border border-gray-200 px-3 py-2 font-medium" data-v-72ce3024><code class="bg-gray-100 px-2 py-1 rounded" data-v-72ce3024>Ctrl+C</code></td><td class="border border-gray-200 px-3 py-2" data-v-72ce3024>Copy selected text</td></tr><tr class="bg-gray-25" data-v-72ce3024><td class="border border-gray-200 px-3 py-2 font-medium" data-v-72ce3024><code class="bg-gray-100 px-2 py-1 rounded" data-v-72ce3024>Ctrl+I</code></td><td class="border border-gray-200 px-3 py-2" data-v-72ce3024>Apply italic formatting</td></tr><tr data-v-72ce3024><td class="border border-gray-200 px-3 py-2 font-medium" data-v-72ce3024><code class="bg-gray-100 px-2 py-1 rounded" data-v-72ce3024>Ctrl+K</code></td><td class="border border-gray-200 px-3 py-2" data-v-72ce3024>Open the insert link dialog</td></tr><tr class="bg-gray-25" data-v-72ce3024><td class="border border-gray-200 px-3 py-2 font-medium" data-v-72ce3024><code class="bg-gray-100 px-2 py-1 rounded" data-v-72ce3024>Ctrl+S</code></td><td class="border border-gray-200 px-3 py-2" data-v-72ce3024>Save the current document</td></tr><tr data-v-72ce3024><td class="border border-gray-200 px-3 py-2 font-medium" data-v-72ce3024><code class="bg-gray-100 px-2 py-1 rounded" data-v-72ce3024>Ctrl+V</code></td><td class="border border-gray-200 px-3 py-2" data-v-72ce3024>Paste copied text</td></tr><tr class="bg-gray-25" data-v-72ce3024><td class="border border-gray-200 px-3 py-2 font-medium" data-v-72ce3024><code class="bg-gray-100 px-2 py-1 rounded" data-v-72ce3024>Ctrl+X</code></td><td class="border border-gray-200 px-3 py-2" data-v-72ce3024>Cut selected text</td></tr><tr data-v-72ce3024><td class="border border-gray-200 px-3 py-2 font-medium" data-v-72ce3024><code class="bg-gray-100 px-2 py-1 rounded" data-v-72ce3024>Ctrl+Y</code></td><td class="border border-gray-200 px-3 py-2" data-v-72ce3024>Redo the last action</td></tr><tr class="bg-gray-25" data-v-72ce3024><td class="border border-gray-200 px-3 py-2 font-medium" data-v-72ce3024><code class="bg-gray-100 px-2 py-1 rounded" data-v-72ce3024>Alt+Shift+Backspace</code></td><td class="border border-gray-200 px-3 py-2" data-v-72ce3024>Redo the last action</td></tr><tr data-v-72ce3024><td class="border border-gray-200 px-3 py-2 font-medium" data-v-72ce3024><code class="bg-gray-100 px-2 py-1 rounded" data-v-72ce3024>Ctrl+Z</code></td><td class="border border-gray-200 px-3 py-2" data-v-72ce3024>Undo the last action</td></tr><tr class="bg-gray-25" data-v-72ce3024><td class="border border-gray-200 px-3 py-2 font-medium" data-v-72ce3024><code class="bg-gray-100 px-2 py-1 rounded" data-v-72ce3024>Alt+Backspace</code></td><td class="border border-gray-200 px-3 py-2" data-v-72ce3024>Undo the last action</td></tr></tbody></table></div></div></div>', 1))
26695
26693
  ])
26696
26694
  ])
26697
- ])) : Y("", !0)
26695
+ ])) : J("", !0)
26698
26696
  ]));
26699
26697
  }
26700
26698
  }), NL = /* @__PURE__ */ qe(AL, [["__scopeId", "data-v-72ce3024"]]), LL = {
@@ -27334,21 +27332,21 @@ const fL = { class: "relative" }, pL = {
27334
27332
  } catch (R) {
27335
27333
  console.warn("HTML completion provider failed:", R);
27336
27334
  }
27337
- }, J = () => {
27335
+ }, Y = () => {
27338
27336
  l && l.layout();
27339
27337
  };
27340
27338
  return nt(async () => {
27341
27339
  await Lt();
27342
27340
  try {
27343
- await p(), await Lt(), await g(), V(), window.addEventListener("resize", J);
27341
+ await p(), await Lt(), await g(), V(), window.addEventListener("resize", Y);
27344
27342
  } catch (R) {
27345
27343
  console.error("Failed to initialize Monaco Editor:", R);
27346
27344
  }
27347
27345
  }), an(() => {
27348
- l && l.dispose(), window.removeEventListener("resize", J);
27346
+ l && l.dispose(), window.removeEventListener("resize", Y);
27349
27347
  }), be(() => r.modelValue, y), be(() => r.theme, v), be(() => r.language, x), be(() => r.height, () => {
27350
27348
  Lt(() => {
27351
- J();
27349
+ Y();
27352
27350
  });
27353
27351
  }), e({
27354
27352
  editor: l,
@@ -27408,7 +27406,7 @@ const fL = { class: "relative" }, pL = {
27408
27406
  editor: ae(o),
27409
27407
  onToggleFullscreen: ae(f),
27410
27408
  onToggleHtmlMode: ae(c)
27411
- }, null, 40, ["editor", "onToggleFullscreen", "onToggleHtmlMode"])) : Y("", !0)
27409
+ }, null, 40, ["editor", "onToggleFullscreen", "onToggleHtmlMode"])) : J("", !0)
27412
27410
  ], 64))), 128))
27413
27411
  ]),
27414
27412
  m("div", {
@@ -27493,7 +27491,7 @@ const fL = { class: "relative" }, pL = {
27493
27491
  editor: ae(s),
27494
27492
  onToggleFullscreen: ae(a),
27495
27493
  onToggleHtmlMode: ae(i)
27496
- }, null, 40, ["editor", "onToggleFullscreen", "onToggleHtmlMode"])) : Y("", !0)
27494
+ }, null, 40, ["editor", "onToggleFullscreen", "onToggleHtmlMode"])) : J("", !0)
27497
27495
  ], 64))), 128))
27498
27496
  ])
27499
27497
  ])
@@ -27842,7 +27840,7 @@ function hO(t, e = {}) {
27842
27840
  }, Ie = oe();
27843
27841
  return T.resetPeek(), Ie;
27844
27842
  }
27845
- function J(T) {
27843
+ function Y(T) {
27846
27844
  g(T);
27847
27845
  const A = T.currentPeek() === "|";
27848
27846
  return T.resetPeek(), A;
@@ -27913,7 +27911,7 @@ function hO(t, e = {}) {
27913
27911
  if (R(T))
27914
27912
  A += z, T.next();
27915
27913
  else {
27916
- if (J(T))
27914
+ if (Y(T))
27917
27915
  break;
27918
27916
  A += z, T.next();
27919
27917
  }
@@ -28030,7 +28028,7 @@ function hO(t, e = {}) {
28030
28028
  return A.braceNest > 0 && d(ge.UNTERMINATED_CLOSING_BRACE, s(), 0), z = cn(T, A) || p(A), A.braceNest = 0, z;
28031
28029
  default: {
28032
28030
  let Ie = !0, He = !0, Ce = !0;
28033
- if (J(T))
28031
+ if (Y(T))
28034
28032
  return A.braceNest > 0 && d(ge.UNTERMINATED_CLOSING_BRACE, s(), 0), z = f(A, 1, at(T)), A.braceNest = 0, A.inLinked = !1, z;
28035
28033
  if (A.braceNest > 0 && (A.currentType === 4 || A.currentType === 5 || A.currentType === 6))
28036
28034
  return d(ge.UNTERMINATED_CLOSING_BRACE, s(), 0), A.braceNest = 0, vn(T, A);
@@ -28074,7 +28072,7 @@ function hO(t, e = {}) {
28074
28072
  /* TokenChars.LinkedDelimiter */
28075
28073
  );
28076
28074
  default:
28077
- return J(T) ? (oe = f(A, 1, at(T)), A.braceNest = 0, A.inLinked = !1, oe) : M(T, A) || O(T, A) ? (y(T), cn(T, A)) : E(T, A) ? (y(T), f(A, 11, Jt(T))) : V(T, A) ? (y(T), Ie === "{" ? Yt(T, A) || oe : f(A, 10, yn(T))) : (z === 7 && d(ge.INVALID_LINKED_FORMAT, s(), 0), A.braceNest = 0, A.inLinked = !1, vn(T, A));
28075
+ return Y(T) ? (oe = f(A, 1, at(T)), A.braceNest = 0, A.inLinked = !1, oe) : M(T, A) || O(T, A) ? (y(T), cn(T, A)) : E(T, A) ? (y(T), f(A, 11, Jt(T))) : V(T, A) ? (y(T), Ie === "{" ? Yt(T, A) || oe : f(A, 10, yn(T))) : (z === 7 && d(ge.INVALID_LINKED_FORMAT, s(), 0), A.braceNest = 0, A.inLinked = !1, vn(T, A));
28078
28076
  }
28079
28077
  }
28080
28078
  function vn(T, A) {
@@ -28099,7 +28097,7 @@ function hO(t, e = {}) {
28099
28097
  case "@":
28100
28098
  return cn(T, A) || p(A);
28101
28099
  default: {
28102
- if (J(T))
28100
+ if (Y(T))
28103
28101
  return z = f(A, 1, at(T)), A.braceNest = 0, A.inLinked = !1, z;
28104
28102
  if (R(T))
28105
28103
  return f(A, 0, zt(T));
@@ -28238,8 +28236,8 @@ function vO(t = {}) {
28238
28236
  V.value == null && r(v, ge.UNEXPECTED_LEXICAL_ANALYSIS, x.lastStartLoc, 0, xn(V)), w.items.push(c(v, V.value || ""));
28239
28237
  break;
28240
28238
  case 7: {
28241
- const J = f(v);
28242
- w.items.push(J.node), M = J.nextConsumeToken || null;
28239
+ const Y = f(v);
28240
+ w.items.push(Y.node), M = Y.nextConsumeToken || null;
28243
28241
  break;
28244
28242
  }
28245
28243
  }
@@ -29185,7 +29183,7 @@ let Bd = 0;
29185
29183
  function y4(t = {}) {
29186
29184
  const e = Ve(t.onWarn) ? t.onWarn : Tn, n = re(t.version) ? t.version : c4, r = re(t.locale) || Ve(t.locale) ? t.locale : ts, o = Ve(r) ? ts : r, s = Ze(t.fallbackLocale) || Se(t.fallbackLocale) || re(t.fallbackLocale) || t.fallbackLocale === !1 ? t.fallbackLocale : o, l = Se(t.messages) ? t.messages : Mi(o), i = Se(t.datetimeFormats) ? t.datetimeFormats : Mi(o), a = Se(t.numberFormats) ? t.numberFormats : Mi(o), c = ct($e(), t.modifiers, u4()), u = t.pluralRules || $e(), d = Ve(t.missing) ? t.missing : null, f = Me(t.missingWarn) || co(t.missingWarn) ? t.missingWarn : !0, p = Me(t.fallbackWarn) || co(t.fallbackWarn) ? t.fallbackWarn : !0, h = !!t.fallbackFormat, g = !!t.unresolving, y = Ve(t.postTranslation) ? t.postTranslation : null, v = Se(t.processor) ? t.processor : null, x = Me(t.warnHtmlMessage) ? t.warnHtmlMessage : !0, S = !!t.escapeParameter, k = Ve(t.messageCompiler) ? t.messageCompiler : _m;
29187
29185
  process.env.NODE_ENV !== "production" && Ve(t.messageCompiler) && bc(Fr(Rt.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
29188
- const w = Ve(t.messageResolver) ? t.messageResolver : Tm || s4, M = Ve(t.localeFallbacker) ? t.localeFallbacker : Mm || YO, E = Te(t.fallbackContext) ? t.fallbackContext : void 0, O = t, V = Te(O.__datetimeFormatters) ? O.__datetimeFormatters : /* @__PURE__ */ new Map(), J = Te(O.__numberFormatters) ? O.__numberFormatters : /* @__PURE__ */ new Map(), R = Te(O.__meta) ? O.__meta : {};
29186
+ const w = Ve(t.messageResolver) ? t.messageResolver : Tm || s4, M = Ve(t.localeFallbacker) ? t.localeFallbacker : Mm || YO, E = Te(t.fallbackContext) ? t.fallbackContext : void 0, O = t, V = Te(O.__datetimeFormatters) ? O.__datetimeFormatters : /* @__PURE__ */ new Map(), Y = Te(O.__numberFormatters) ? O.__numberFormatters : /* @__PURE__ */ new Map(), R = Te(O.__meta) ? O.__meta : {};
29189
29187
  Bd++;
29190
29188
  const I = {
29191
29189
  version: n,
@@ -29211,7 +29209,7 @@ function y4(t = {}) {
29211
29209
  onWarn: e,
29212
29210
  __meta: R
29213
29211
  };
29214
- return I.datetimeFormats = i, I.numberFormats = a, I.__datetimeFormatters = V, I.__numberFormatters = J, process.env.NODE_ENV !== "production" && (I.__v_emitter = O.__v_emitter != null ? O.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && WO(I, n, R), I;
29212
+ return I.datetimeFormats = i, I.numberFormats = a, I.__datetimeFormatters = V, I.__numberFormatters = Y, process.env.NODE_ENV !== "production" && (I.__v_emitter = O.__v_emitter != null ? O.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && WO(I, n, R), I;
29215
29213
  }
29216
29214
  const Mi = (t) => ({ [t]: $e() });
29217
29215
  function Xl(t, e) {
@@ -29276,8 +29274,8 @@ function zd(t, ...e) {
29276
29274
  key: a,
29277
29275
  target: x
29278
29276
  })), process.env.NODE_ENV !== "production" && g !== x) {
29279
- const J = t.__v_emitter;
29280
- J && J.emit("fallback", {
29277
+ const Y = t.__v_emitter;
29278
+ Y && Y.emit("fallback", {
29281
29279
  type: M,
29282
29280
  key: a,
29283
29281
  from: k,
@@ -29370,8 +29368,8 @@ function jd(t, ...e) {
29370
29368
  key: a,
29371
29369
  target: x
29372
29370
  })), process.env.NODE_ENV !== "production" && g !== x) {
29373
- const J = t.__v_emitter;
29374
- J && J.emit("fallback", {
29371
+ const Y = t.__v_emitter;
29372
+ Y && Y.emit("fallback", {
29375
29373
  type: M,
29376
29374
  key: a,
29377
29375
  from: k,
@@ -29489,7 +29487,7 @@ function qd(t, ...e) {
29489
29487
  }, O = tn(k) ? k : $m(t, a, x, k, w, E);
29490
29488
  if (M)
29491
29489
  return k;
29492
- const V = L4(t, x, S, c), J = _4(V), R = M4(t, O, J);
29490
+ const V = L4(t, x, S, c), Y = _4(V), R = M4(t, O, Y);
29493
29491
  let I = r ? r(R, a) : R;
29494
29492
  if (f && re(I) && (I = XL(I)), process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
29495
29493
  const G = {
@@ -29958,7 +29956,7 @@ function Mc(t = {}) {
29958
29956
  d.value
29959
29957
  ];
29960
29958
  }
29961
- const J = F({
29959
+ const Y = F({
29962
29960
  get: () => i.value,
29963
29961
  set: ($) => {
29964
29962
  E.locale = $, i.value = $;
@@ -30127,7 +30125,7 @@ function Mc(t = {}) {
30127
30125
  }));
30128
30126
  const Ce = {
30129
30127
  id: Xd,
30130
- locale: J,
30128
+ locale: Y,
30131
30129
  fallbackLocale: R,
30132
30130
  get inheritLocale() {
30133
30131
  return l;