@opengis/admin 0.3.90 → 0.3.91

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.
@@ -1,4 +1,4 @@
1
- import { ref as ot, getCurrentInstance as es, onMounted as Oo, resolveComponent as qe, openBlock as X, createBlock as zt, withCtx as At, createElementVNode as L, createVNode as Fe, createCommentVNode as bt, createElementBlock as ne, Fragment as Et, shallowRef as kz, unref as Eo, shallowReactive as Sz, inject as vu, nextTick as Ax, defineComponent as Ws, reactive as Ez, computed as Di, h as Ao, provide as Kv, watch as js, watchEffect as sT, normalizeClass as tn, toDisplayString as He, renderSlot as Mx, withDirectives as gs, vModelText as oT, renderList as Xt, normalizeStyle as sa, vModelCheckbox as bu, resolveDynamicComponent as fs, vModelRadio as Cz, createStaticVNode as Do, vShow as jy, withModifiers as tu, onUnmounted as Tz, TransitionGroup as Az, onBeforeUnmount as Dp, markRaw as Mz, customRef as Dz, Transition as Hy, createTextVNode as Ui, Teleport as aT, useModel as Ip, mergeModels as Iz, mergeProps as Bf, createSlots as Pz, createApp as Dx, defineCustomElement as Rz } from "vue";
1
+ import { ref as ot, getCurrentInstance as es, onMounted as Oo, resolveComponent as qe, openBlock as X, createBlock as zt, withCtx as Ct, createElementVNode as L, createVNode as Be, createCommentVNode as bt, createElementBlock as ne, Fragment as Et, shallowRef as kz, unref as Eo, shallowReactive as Sz, inject as vu, nextTick as Ax, defineComponent as Ws, reactive as Ez, computed as Di, h as Ao, provide as Kv, watch as js, watchEffect as sT, normalizeClass as tn, toDisplayString as He, renderSlot as Mx, withDirectives as gs, vModelText as oT, renderList as Xt, normalizeStyle as sa, vModelCheckbox as bu, resolveDynamicComponent as fs, vModelRadio as Cz, createStaticVNode as Do, vShow as jy, withModifiers as tu, onUnmounted as Tz, TransitionGroup as Az, onBeforeUnmount as Dp, markRaw as Mz, customRef as Dz, Transition as Hy, createTextVNode as Ui, Teleport as aT, useModel as Ip, mergeModels as Iz, mergeProps as Bf, createSlots as Pz, createApp as Dx, defineCustomElement as Rz } from "vue";
2
2
  import Oz from "vuedraggable";
3
3
  function lT(t, e) {
4
4
  return function() {
@@ -1703,9 +1703,9 @@ const wn = ot({}), cN = () => {
1703
1703
  `/api/template/form/${((q = o.value) == null ? void 0 : q.token) || ((K = o.value) == null ? void 0 : K.form)}`
1704
1704
  );
1705
1705
  if (Ce != null && Ce.obj && (s.value = { ...s.value, ...Ce.obj }), (Z = o.value) != null && Z.obj) {
1706
- const $e = (be = (ge = o.value) == null ? void 0 : ge.obj) == null ? void 0 : be.split("#"), ke = $e == null ? void 0 : $e.reduce((Be, Ge) => {
1706
+ const $e = (be = (ge = o.value) == null ? void 0 : ge.obj) == null ? void 0 : be.split("#"), ke = $e == null ? void 0 : $e.reduce((Fe, Ge) => {
1707
1707
  const [We, Ze] = Ge == null ? void 0 : Ge.split("=");
1708
- return Be[We] = Ze, Be;
1708
+ return Fe[We] = Ze, Fe;
1709
1709
  }, {});
1710
1710
  s.value = { ...s.value, ...ke };
1711
1711
  }
@@ -1756,7 +1756,7 @@ const wn = ot({}), cN = () => {
1756
1756
  "onUpdate:visible": C[1] || (C[1] = ($) => n.value = $),
1757
1757
  onOnClose: f
1758
1758
  }, {
1759
- footer: At(({ handleClose: $ }) => [
1759
+ footer: Ct(({ handleClose: $ }) => [
1760
1760
  L("div", dN, [
1761
1761
  L("button", {
1762
1762
  style: { border: "1px solid #000" },
@@ -1770,9 +1770,9 @@ const wn = ot({}), cN = () => {
1770
1770
  }, " Зберегти ", 8, fN)
1771
1771
  ])
1772
1772
  ]),
1773
- default: At(() => [
1773
+ default: Ct(() => [
1774
1774
  L("div", uN, [
1775
- Fe(M, {
1775
+ Be(M, {
1776
1776
  ref_key: "form",
1777
1777
  ref: a,
1778
1778
  scheme: i.value,
@@ -1798,8 +1798,8 @@ const wn = ot({}), cN = () => {
1798
1798
  return (r, s) => {
1799
1799
  const a = qe("router-view");
1800
1800
  return X(), ne(Et, null, [
1801
- Fe(a),
1802
- Fe(pN)
1801
+ Be(a),
1802
+ Be(pN)
1803
1803
  ], 64);
1804
1804
  };
1805
1805
  }
@@ -3449,7 +3449,7 @@ ${JSON.stringify(wt, null, 2)}
3449
3449
  // This cannot be the first navigation because the initial location
3450
3450
  // cannot be manually navigated to
3451
3451
  !1
3452
- )), (De ? Promise.resolve(De) : Be(Mn, wt)).catch((Zn) => Na(Zn) ? (
3452
+ )), (De ? Promise.resolve(De) : Fe(Mn, wt)).catch((Zn) => Na(Zn) ? (
3453
3453
  // navigation redirects still mark the router as ready
3454
3454
  Na(
3455
3455
  Zn,
@@ -3498,7 +3498,7 @@ ${JSON.stringify(wt, null, 2)}
3498
3498
  const Qe = Ln.values().next().value;
3499
3499
  return Qe && typeof Qe.runWithContext == "function" ? Qe.runWithContext(Pe) : Pe();
3500
3500
  }
3501
- function Be(Pe, Qe) {
3501
+ function Fe(Pe, Qe) {
3502
3502
  let st;
3503
3503
  const [wt, sn, En] = U4(Pe, Qe);
3504
3504
  st = ib(wt.reverse(), "beforeRouteLeave", Pe, Qe);
@@ -3564,7 +3564,7 @@ ${JSON.stringify(wt, null, 2)}
3564
3564
  }
3565
3565
  m = wt;
3566
3566
  const En = f.value;
3567
- Wa && YN(kS(En.fullPath, st.delta), Ky()), Be(wt, En).catch((Zt) => Na(
3567
+ Wa && YN(kS(En.fullPath, st.delta), Ky()), Fe(wt, En).catch((Zt) => Na(
3568
3568
  Zt,
3569
3569
  12
3570
3570
  /* ErrorTypes.NAVIGATION_CANCELLED */
@@ -3696,27 +3696,27 @@ const q4 = [
3696
3696
  {
3697
3697
  name: "edit",
3698
3698
  path: "/edit",
3699
- component: () => import("./edit-page-pneZvDrF.js")
3699
+ component: () => import("./edit-page-BPBLgXKs.js")
3700
3700
  },
3701
3701
  {
3702
3702
  name: "add",
3703
3703
  path: "/add",
3704
- component: () => import("./add-page-D5ZyV8Tj.js")
3704
+ component: () => import("./add-page-Dr3rQ8kI.js")
3705
3705
  },
3706
3706
  {
3707
3707
  path: "/profile",
3708
3708
  name: "profile",
3709
- component: () => import("./profile-page-B_tZzwq3.js")
3709
+ component: () => import("./profile-page-CRzcrXZ9.js")
3710
3710
  },
3711
3711
  {
3712
3712
  name: "card-view",
3713
3713
  path: "/card",
3714
- component: () => import("./card-view-BgRwf727.js"),
3714
+ component: () => import("./card-view-Cf8CLLnb.js"),
3715
3715
  children: [
3716
3716
  {
3717
3717
  name: "table",
3718
3718
  path: ":table",
3719
- component: () => import("./card-view-BgRwf727.js"),
3719
+ component: () => import("./card-view-Cf8CLLnb.js"),
3720
3720
  children: [
3721
3721
  {
3722
3722
  name: "card",
@@ -3777,14 +3777,14 @@ const K4 = /* @__PURE__ */ ft(G4, [["render", X4]]), J4 = (t) => {
3777
3777
  {
3778
3778
  path: "/",
3779
3779
  name: "home",
3780
- component: () => import("./admin-view-SROmTWmw.js"),
3780
+ component: () => import("./admin-view-DpEpA1mk.js"),
3781
3781
  children: [
3782
3782
  ...e,
3783
3783
  ...t,
3784
3784
  // { path: '/', redirect: '/home' },
3785
3785
  {
3786
3786
  path: "/:catchAll(.*)",
3787
- component: () => import("./admin-interface-CqOP91gU.js")
3787
+ component: () => import("./admin-interface-jy2dmnPp.js")
3788
3788
  }
3789
3789
  ]
3790
3790
  }
@@ -3831,7 +3831,7 @@ function tB(t, e, n, i, r, s) {
3831
3831
  onUpdateValue: s.changeData,
3832
3832
  title: ((o = n.column) == null ? void 0 : o.ua) || ((f = n.column) == null ? void 0 : f.text)
3833
3833
  }, {
3834
- default: At(() => {
3834
+ default: Ct(() => {
3835
3835
  var m, g;
3836
3836
  return [
3837
3837
  L("button", {
@@ -3904,12 +3904,12 @@ const ny = /* @__PURE__ */ ft(nB, [["render", rB]]), sB = { class: "w-[170px]" }
3904
3904
  ref_key: "popover",
3905
3905
  ref: a
3906
3906
  }, {
3907
- reference: At(() => [
3907
+ reference: Ct(() => [
3908
3908
  L("div", { onClick: g }, [
3909
3909
  Mx(_.$slots, "default")
3910
3910
  ])
3911
3911
  ]),
3912
- default: At(() => {
3912
+ default: Ct(() => {
3913
3913
  var M, O;
3914
3914
  return [
3915
3915
  L("div", sB, [
@@ -4042,7 +4042,7 @@ function mB(t, e, n, i, r, s) {
4042
4042
  value: r.value,
4043
4043
  "onUpdate:value": e[1] || (e[1] = (g) => r.value = g)
4044
4044
  }, {
4045
- default: At(() => {
4045
+ default: Ct(() => {
4046
4046
  var g, _, k;
4047
4047
  return [
4048
4048
  L("div", {
@@ -4143,7 +4143,7 @@ function xB(t, e, n, i, r, s) {
4143
4143
  }, null, 512), [
4144
4144
  [bu, r.checkValue]
4145
4145
  ]),
4146
- Fe(a, {
4146
+ Be(a, {
4147
4147
  height: "18",
4148
4148
  width: "18",
4149
4149
  class: "text-white"
@@ -4153,7 +4153,7 @@ function xB(t, e, n, i, r, s) {
4153
4153
  key: 1,
4154
4154
  class: tn(["w-[20px] h-[20px] rounded-md flex items-center justify-center disabled", [n.value ? "bg-blue-400" : "border"]])
4155
4155
  }, [
4156
- Fe(a, {
4156
+ Be(a, {
4157
4157
  height: "18",
4158
4158
  width: "18",
4159
4159
  class: "text-white"
@@ -4227,7 +4227,7 @@ function MB(t, e, n, i, r, s) {
4227
4227
  value: r.value,
4228
4228
  "onUpdate:value": e[1] || (e[1] = (o) => r.value = o)
4229
4229
  }, {
4230
- default: At(() => [
4230
+ default: Ct(() => [
4231
4231
  L("div", {
4232
4232
  onClick: e[0] || (e[0] = (...o) => s.getOptions && s.getOptions(...o))
4233
4233
  }, [
@@ -6900,7 +6900,7 @@ function B$(t, e, n, i, r, s) {
6900
6900
  component: "vs-form-calendar",
6901
6901
  onUpdateValue: s.changeData
6902
6902
  }, {
6903
- default: At(() => [
6903
+ default: Ct(() => [
6904
6904
  L("div", L$, He(s.dateValue), 1)
6905
6905
  ]),
6906
6906
  _: 1
@@ -6961,7 +6961,7 @@ function V$(t, e, n, i, r, s) {
6961
6961
  onUpdateValue: t.changeData,
6962
6962
  title: ((o = t.column) == null ? void 0 : o.ua) || ((f = t.column) == null ? void 0 : f.text)
6963
6963
  }, {
6964
- default: At(() => {
6964
+ default: Ct(() => {
6965
6965
  var m;
6966
6966
  return [
6967
6967
  L("button", {
@@ -7209,7 +7209,7 @@ var ZA = { exports: {} };
7209
7209
  for (const b in u) p[b] = c.call(this, u[b], b, u);
7210
7210
  return p;
7211
7211
  }
7212
- function Be(u, c, d) {
7212
+ function Fe(u, c, d) {
7213
7213
  const p = {};
7214
7214
  for (const b in u) c.call(this, u[b], b, u) && (p[b] = u[b]);
7215
7215
  return p;
@@ -10542,7 +10542,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10542
10542
  }
10543
10543
  serialize() {
10544
10544
  const c = { id: this.id, type: this.type, source: this.source, "source-layer": this.sourceLayer, metadata: this.metadata, minzoom: this.minzoom, maxzoom: this.maxzoom, filter: this.filter, layout: this._unevaluatedLayout && this._unevaluatedLayout.serialize(), paint: this._transitionablePaint && this._transitionablePaint.serialize() };
10545
- return this.visibility && (c.layout = c.layout || {}, c.layout.visibility = this.visibility), Be(c, (d, p) => !(d === void 0 || p === "layout" && !Object.keys(d).length || p === "paint" && !Object.keys(d).length));
10545
+ return this.visibility && (c.layout = c.layout || {}, c.layout.visibility = this.visibility), Fe(c, (d, p) => !(d === void 0 || p === "layout" && !Object.keys(d).length || p === "paint" && !Object.keys(d).length));
10546
10546
  }
10547
10547
  _validate(c, d, p, b, S = {}) {
10548
10548
  return (!S || S.validate !== !1) && ef(this, c.call(Aa, { key: d, layerType: this.type, objectKey: p, value: b, styleSpec: De, style: { glyphs: !0, sprite: !0 } }));
@@ -10918,7 +10918,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10918
10918
  }
10919
10919
  }
10920
10920
  tt.prototype.bytesPerElement = 2, gt("StructArrayLayout1ui2", tt);
10921
- class Ct extends v {
10921
+ class Tt extends v {
10922
10922
  _refreshViews() {
10923
10923
  this.uint8 = new Uint8Array(this.arrayBuffer), this.float32 = new Float32Array(this.arrayBuffer);
10924
10924
  }
@@ -10931,7 +10931,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10931
10931
  return this.float32[E + 0] = d, this.float32[E + 1] = p, this.float32[E + 2] = b, this.float32[E + 3] = S, c;
10932
10932
  }
10933
10933
  }
10934
- Ct.prototype.bytesPerElement = 16, gt("StructArrayLayout4f16", Ct);
10934
+ Tt.prototype.bytesPerElement = 16, gt("StructArrayLayout4f16", Tt);
10935
10935
  class Kt extends y {
10936
10936
  get anchorPointX() {
10937
10937
  return this._structArray.int16[this._pos2 + 0];
@@ -11622,7 +11622,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11622
11622
  return { "text-opacity": ["opacity"], "icon-opacity": ["opacity"], "text-color": ["fill_color"], "icon-color": ["fill_color"], "text-halo-color": ["halo_color"], "icon-halo-color": ["halo_color"], "text-halo-blur": ["halo_blur"], "icon-halo-blur": ["halo_blur"], "text-halo-width": ["halo_width"], "icon-halo-width": ["halo_width"], "line-gap-width": ["gapwidth"], "line-pattern": ["pattern_to", "pattern_from", "pixel_ratio_to", "pixel_ratio_from"], "fill-pattern": ["pattern_to", "pattern_from", "pixel_ratio_to", "pixel_ratio_from"], "fill-extrusion-pattern": ["pattern_to", "pattern_from", "pixel_ratio_to", "pixel_ratio_from"] }[u] || [u.replace(`${c}-`, "").replace(/-/g, "_")];
11623
11623
  }
11624
11624
  function Tw(u, c, d) {
11625
- const p = { color: { source: Y, composite: Ct }, number: { source: Xe, composite: Y } }, b = function(S) {
11625
+ const p = { color: { source: Y, composite: Tt }, number: { source: Xe, composite: Y } }, b = function(S) {
11626
11626
  return { "line-pattern": { source: Ms, composite: Ms }, "fill-pattern": { source: Ms, composite: Ms }, "fill-extrusion-pattern": { source: Ms, composite: Ms } }[S];
11627
11627
  }(u);
11628
11628
  return b && b[d] || p[c][d];
@@ -14954,7 +14954,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14954
14954
  return !0;
14955
14955
  }
14956
14956
  return c === d;
14957
- }, a.aF = ke, a.aG = Be, a.aH = class extends _o {
14957
+ }, a.aF = ke, a.aG = Fe, a.aH = class extends _o {
14958
14958
  constructor(u, c) {
14959
14959
  super(u, c), this.current = 0;
14960
14960
  }
@@ -15439,10 +15439,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15439
15439
  function ke(le) {
15440
15440
  var W = new Ce();
15441
15441
  return function(U, Q) {
15442
- for (var se in U.layers) Q.writeMessage(3, Be, U.layers[se]);
15442
+ for (var se in U.layers) Q.writeMessage(3, Fe, U.layers[se]);
15443
15443
  }(le, W), W.finish();
15444
15444
  }
15445
- function Be(le, W) {
15445
+ function Fe(le, W) {
15446
15446
  var U;
15447
15447
  W.writeVarintField(15, le.version || 1), W.writeStringField(1, le.name || ""), W.writeVarintField(5, le.extent || 4096);
15448
15448
  var Q = { keys: [], values: [], keycache: {}, valuecache: {} };
@@ -16417,7 +16417,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
16417
16417
  }
16418
16418
  return l;
16419
16419
  }
16420
- function Be(w, l, h) {
16420
+ function Fe(w, l, h) {
16421
16421
  const y = w.split("?");
16422
16422
  return y[0] += `${l}${h}`, y.join("?");
16423
16423
  }
@@ -18353,8 +18353,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
18353
18353
  Vt(Xe.numGlyphs, me);
18354
18354
  continue;
18355
18355
  }
18356
- const yt = W(h.transform.cameraToCenterDistance, ut.signedDistanceFromCamera), rt = o.ai(ae, ue, Xe), tt = A ? rt / yt : rt * yt, Ct = { getElevation: ie, labelPlaneMatrix: v, lineVertexArray: re, pitchWithMap: A, projectionCache: { projections: {}, offsets: {}, cachedAnchorPoint: void 0, anyProjectionOccluded: !1 }, projection: B, tileAnchorPoint: new o.P(Xe.anchorX, Xe.anchorY), unwrappedTileID: V, width: j, height: Y, translation: te }, Kt = _e(Ct, Xe, tt, !1, I, l, x, w.glyphOffsetArray, me, we, P);
18357
- Ae = Kt.useVertical, (Kt.notEnoughRoom || Ae || Kt.needsFlipping && _e(Ct, Xe, tt, !0, I, l, x, w.glyphOffsetArray, me, we, P).notEnoughRoom) && Vt(Xe.numGlyphs, me);
18356
+ const yt = W(h.transform.cameraToCenterDistance, ut.signedDistanceFromCamera), rt = o.ai(ae, ue, Xe), tt = A ? rt / yt : rt * yt, Tt = { getElevation: ie, labelPlaneMatrix: v, lineVertexArray: re, pitchWithMap: A, projectionCache: { projections: {}, offsets: {}, cachedAnchorPoint: void 0, anyProjectionOccluded: !1 }, projection: B, tileAnchorPoint: new o.P(Xe.anchorX, Xe.anchorY), unwrappedTileID: V, width: j, height: Y, translation: te }, Kt = _e(Tt, Xe, tt, !1, I, l, x, w.glyphOffsetArray, me, we, P);
18357
+ Ae = Kt.useVertical, (Kt.notEnoughRoom || Ae || Kt.needsFlipping && _e(Tt, Xe, tt, !0, I, l, x, w.glyphOffsetArray, me, we, P).notEnoughRoom) && Vt(Xe.numGlyphs, me);
18358
18358
  }
18359
18359
  y ? w.text.dynamicLayoutVertexBuffer.updateData(me) : w.icon.dynamicLayoutVertexBuffer.updateData(me);
18360
18360
  }
@@ -18479,7 +18479,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
18479
18479
  const he = [], me = new o.P(h.anchorX, h.anchorY), re = this.getPerspectiveRatio(A, me.x, me.y, I, ue), xe = (j ? x / re : x * re) / o.ap, we = { getElevation: ue, labelPlaneMatrix: P, lineVertexArray: y, pitchWithMap: j, projectionCache: { projections: {}, offsets: {}, cachedAnchorPoint: void 0, anyProjectionOccluded: !1 }, projection: this.mapProjection, tileAnchorPoint: me, unwrappedTileID: I, width: this.transform.width, height: this.transform.height, translation: ae }, Ae = se(xe, v, h.lineOffsetX * xe, h.lineOffsetY * xe, !1, h, !1, we);
18480
18480
  let Ve = !1, Xe = !1, ut = !0;
18481
18481
  if (Ae) {
18482
- const yt = 0.5 * te * re + ie, rt = new o.P(-100, -100), tt = new o.P(this.screenRightBoundary, this.screenBottomBoundary), Ct = new dt(), Kt = Ae.first, at = Ae.last;
18482
+ const yt = 0.5 * te * re + ie, rt = new o.P(-100, -100), tt = new o.P(this.screenRightBoundary, this.screenBottomBoundary), Tt = new dt(), Kt = Ae.first, at = Ae.last;
18483
18483
  let pt = [];
18484
18484
  for (let on = Kt.path.length - 1; on >= 1; on--) pt.push(Kt.path[on]);
18485
18485
  for (let on = 1; on < at.path.length; on++) pt.push(at.path[on]);
@@ -18495,11 +18495,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
18495
18495
  oi = on.x >= rt.x && yn.x <= tt.x && on.y >= rt.y && yn.y <= tt.y ? [pt] : yn.x < rt.x || on.x > tt.x || yn.y < rt.y || on.y > tt.y ? [] : o.al([pt], rt.x, rt.y, tt.x, tt.y);
18496
18496
  }
18497
18497
  for (const on of oi) {
18498
- Ct.reset(on, 0.25 * yt);
18498
+ Tt.reset(on, 0.25 * yt);
18499
18499
  let yn = 0;
18500
- yn = Ct.length <= 0.5 * yt ? 1 : Math.ceil(Ct.paddedLength / Gt) + 1;
18500
+ yn = Tt.length <= 0.5 * yt ? 1 : Math.ceil(Tt.paddedLength / Gt) + 1;
18501
18501
  for (let ai = 0; ai < yn; ai++) {
18502
- const Qi = ai / Math.max(yn - 1, 1), As = Ct.lerp(Qi), li = As.x + nn, Ir = As.y + nn;
18502
+ const Qi = ai / Math.max(yn - 1, 1), As = Tt.lerp(Qi), li = As.x + nn, Ir = As.y + nn;
18503
18503
  he.push(li, Ir, yt, 0);
18504
18504
  const mr = li - yt, gr = Ir - yt, yr = li + yt, Qs = Ir + yt;
18505
18505
  if (ut = ut && this.isOffscreen(mr, gr, yr, Qs), Xe = Xe || this.isInsideGrid(mr, gr, yr, Qs), l !== "always" && this.grid.hitTestCircle(li, Ir, yt, l, Y) && (Ve = !0, !V)) return { circles: [], offscreen: !1, collisionDetected: Ve };
@@ -18670,7 +18670,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
18670
18670
  placeLayerBucketPart(l, h, y) {
18671
18671
  const { bucket: v, layout: x, translationText: A, translationIcon: I, posMatrix: P, unwrappedTileID: B, textLabelPlaneMatrix: V, labelToScreenMatrix: j, textPixelRatio: Y, holdingForFade: te, collisionBoxArray: ie, partiallyEvaluatedTextSize: ae, collisionGroup: ue } = l.parameters, he = x.get("text-optional"), me = x.get("icon-optional"), re = o.ar(x, "text-overlap", "text-allow-overlap"), xe = re === "always", we = o.ar(x, "icon-overlap", "icon-allow-overlap"), Ae = we === "always", Ve = x.get("text-rotation-alignment") === "map", Xe = x.get("text-pitch-alignment") === "map", ut = x.get("icon-text-fit") !== "none", yt = x.get("symbol-z-order") === "viewport-y", rt = xe && (Ae || !v.hasIconData() || me), tt = Ae && (xe || !v.hasTextData() || he);
18672
18672
  !v.collisionArrays && ie && v.deserializeCollisionBoxes(ie);
18673
- const Ct = this._getTerrainElevationFunc(this.retainedQueryData[v.bucketInstanceId].tileID), Kt = (at, pt, Gt) => {
18673
+ const Tt = this._getTerrainElevationFunc(this.retainedQueryData[v.bucketInstanceId].tileID), Kt = (at, pt, Gt) => {
18674
18674
  var oi, on;
18675
18675
  if (h[at.crossTileID]) return;
18676
18676
  if (te) return void (this.placements[at.crossTileID] = new ln(!1, !1, !1));
@@ -18692,7 +18692,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
18692
18692
  }, Xr = at.textAnchorOffsetStartIndex, Uo = at.textAnchorOffsetEndIndex;
18693
18693
  if (Uo === Xr) {
18694
18694
  const vr = (er, Xn) => {
18695
- const gi = this.collisionIndex.placeCollisionBox(er, re, Y, P, B, Xe, Ve, A, ue.predicate, Ct);
18695
+ const gi = this.collisionIndex.placeCollisionBox(er, re, Y, P, B, Xe, Ve, A, ue.predicate, Tt);
18696
18696
  return gi && gi.placeable && (this.markUsedOrientation(v, Xn, at), this.placedOrientations[at.crossTileID] = Xn), gi;
18697
18697
  };
18698
18698
  Ds(() => vr(Ms, o.ah.horizontal), () => {
@@ -18709,12 +18709,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
18709
18709
  for (let Lc = Xr; Lc < Uo; Lc++) {
18710
18710
  const Nc = v.textAnchorOffsets.get(Lc);
18711
18711
  if (vr && Nc.textAnchor !== vr) continue;
18712
- const _o = this.attemptAnchorPlacement(Nc, gi, ad, lv, Om, Ve, Xe, Y, P, B, ue, zc, at, v, El, A, I, zm, Ct);
18712
+ const _o = this.attemptAnchorPlacement(Nc, gi, ad, lv, Om, Ve, Xe, Y, P, B, ue, zc, at, v, El, A, I, zm, Tt);
18713
18713
  if (_o && (Pa = _o.placedGlyphBoxes, Pa && Pa.placeable)) return yn = !0, As = _o.shift, Pa;
18714
18714
  }
18715
18715
  vr ? vr = null : zc = re;
18716
18716
  }
18717
- return y && !Pa && (Pa = { box: this.collisionIndex.placeCollisionBox(Ms, "always", Y, P, B, Xe, Ve, A, ue.predicate, Ct, new o.P(0, 0)).box, offscreen: !1, placeable: !1 }), Pa;
18717
+ return y && !Pa && (Pa = { box: this.collisionIndex.placeCollisionBox(Ms, "always", Y, P, B, Xe, Ve, A, ue.predicate, Tt, new o.P(0, 0)).box, offscreen: !1, placeable: !1 }), Pa;
18718
18718
  };
18719
18719
  Ds(() => er(Ms, pt.iconBox, o.ah.horizontal), () => {
18720
18720
  const gi = pt.verticalTextBox;
@@ -18729,10 +18729,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
18729
18729
  }
18730
18730
  if (mr = li, yn = mr && mr.placeable, Qi = mr && mr.offscreen, at.useRuntimeCollisionCircles) {
18731
18731
  const Zr = v.text.placedSymbolArray.get(at.centerJustifiedTextSymbolIndex), Ds = o.ai(v.textSizeData, ae, Zr), Xr = x.get("text-padding");
18732
- gr = this.collisionIndex.placeCollisionCircles(re, Zr, v.lineVertexArray, v.glyphOffsetArray, Ds, P, B, V, j, y, Xe, ue.predicate, at.collisionCircleDiameter, Xr, A, Ct), gr.circles.length && gr.collisionDetected && !y && o.w("Collisions detected, but collision boxes are not shown"), yn = xe || gr.circles.length > 0 && !gr.collisionDetected, Qi = Qi && gr.offscreen;
18732
+ gr = this.collisionIndex.placeCollisionCircles(re, Zr, v.lineVertexArray, v.glyphOffsetArray, Ds, P, B, V, j, y, Xe, ue.predicate, at.collisionCircleDiameter, Xr, A, Tt), gr.circles.length && gr.collisionDetected && !y && o.w("Collisions detected, but collision boxes are not shown"), yn = xe || gr.circles.length > 0 && !gr.collisionDetected, Qi = Qi && gr.offscreen;
18733
18733
  }
18734
18734
  if (pt.iconFeatureIndex && (sd = pt.iconFeatureIndex), pt.iconBox) {
18735
- const Zr = (Ds) => this.collisionIndex.placeCollisionBox(Ds, we, Y, P, B, Xe, Ve, I, ue.predicate, Ct, ut && As ? As : void 0);
18735
+ const Zr = (Ds) => this.collisionIndex.placeCollisionBox(Ds, we, Y, P, B, Xe, Ve, I, ue.predicate, Tt, ut && As ? As : void 0);
18736
18736
  Ir && Ir.placeable && pt.verticalIconBox ? (yr = Zr(pt.verticalIconBox), ai = yr.placeable) : (yr = Zr(pt.iconBox), ai = yr.placeable), Qi = Qi && yr.offscreen;
18737
18737
  }
18738
18738
  const Ia = he || at.numHorizontalGlyphVertices === 0 && at.numVerticalGlyphVertices === 0, od = me || at.numIconVertices === 0;
@@ -18823,39 +18823,39 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
18823
18823
  if (re > 0 || xe > 0) {
18824
18824
  const tt = Yr(Ae.text);
18825
18825
  ae(l.text, re, ut ? dl : tt), ae(l.text, xe, yt ? dl : tt);
18826
- const Ct = Ae.text.isHidden();
18826
+ const Tt = Ae.text.isHidden();
18827
18827
  [me.rightJustifiedTextSymbolIndex, me.centerJustifiedTextSymbolIndex, me.leftJustifiedTextSymbolIndex].forEach((pt) => {
18828
- pt >= 0 && (l.text.placedSymbolArray.get(pt).hidden = Ct || ut ? 1 : 0);
18829
- }), me.verticalPlacedTextSymbolIndex >= 0 && (l.text.placedSymbolArray.get(me.verticalPlacedTextSymbolIndex).hidden = Ct || yt ? 1 : 0);
18828
+ pt >= 0 && (l.text.placedSymbolArray.get(pt).hidden = Tt || ut ? 1 : 0);
18829
+ }), me.verticalPlacedTextSymbolIndex >= 0 && (l.text.placedSymbolArray.get(me.verticalPlacedTextSymbolIndex).hidden = Tt || yt ? 1 : 0);
18830
18830
  const Kt = this.variableOffsets[me.crossTileID];
18831
18831
  Kt && this.markUsedJustification(l, Kt.anchor, me, Xe);
18832
18832
  const at = this.placedOrientations[me.crossTileID];
18833
18833
  at && (this.markUsedJustification(l, "left", me, at), this.markUsedOrientation(l, at, me));
18834
18834
  }
18835
18835
  if (Ve) {
18836
- const tt = Yr(Ae.icon), Ct = !(te && me.verticalPlacedIconSymbolIndex && ut);
18837
- me.placedIconSymbolIndex >= 0 && (ae(l.icon, me.numIconVertices, Ct ? tt : dl), l.icon.placedSymbolArray.get(me.placedIconSymbolIndex).hidden = Ae.icon.isHidden()), me.verticalPlacedIconSymbolIndex >= 0 && (ae(l.icon, me.numVerticalIconVertices, Ct ? dl : tt), l.icon.placedSymbolArray.get(me.verticalPlacedIconSymbolIndex).hidden = Ae.icon.isHidden());
18836
+ const tt = Yr(Ae.icon), Tt = !(te && me.verticalPlacedIconSymbolIndex && ut);
18837
+ me.placedIconSymbolIndex >= 0 && (ae(l.icon, me.numIconVertices, Tt ? tt : dl), l.icon.placedSymbolArray.get(me.placedIconSymbolIndex).hidden = Ae.icon.isHidden()), me.verticalPlacedIconSymbolIndex >= 0 && (ae(l.icon, me.numVerticalIconVertices, Tt ? dl : tt), l.icon.placedSymbolArray.get(me.verticalPlacedIconSymbolIndex).hidden = Ae.icon.isHidden());
18838
18838
  }
18839
18839
  const rt = ue && ue.has(he) ? ue.get(he) : { text: null, icon: null };
18840
18840
  if (l.hasIconCollisionBoxData() || l.hasTextCollisionBoxData()) {
18841
18841
  const tt = l.collisionArrays[he];
18842
18842
  if (tt) {
18843
- let Ct = new o.P(0, 0);
18843
+ let Tt = new o.P(0, 0);
18844
18844
  if (tt.textBox || tt.verticalTextBox) {
18845
18845
  let Kt = !0;
18846
18846
  if (V) {
18847
18847
  const at = this.variableOffsets[we];
18848
- at ? (Ct = Zi(at.anchor, at.width, at.height, at.textOffset, at.textBoxScale), j && Ct._rotate(Y ? this.transform.angle : -this.transform.angle)) : Kt = !1;
18848
+ at ? (Tt = Zi(at.anchor, at.width, at.height, at.textOffset, at.textBoxScale), j && Tt._rotate(Y ? this.transform.angle : -this.transform.angle)) : Kt = !1;
18849
18849
  }
18850
18850
  if (tt.textBox || tt.verticalTextBox) {
18851
18851
  let at;
18852
- tt.textBox && (at = ut), tt.verticalTextBox && (at = yt), ul(l.textCollisionBox.collisionVertexArray, Ae.text.placed, !Kt || at, rt.text, Ct.x, Ct.y);
18852
+ tt.textBox && (at = ut), tt.verticalTextBox && (at = yt), ul(l.textCollisionBox.collisionVertexArray, Ae.text.placed, !Kt || at, rt.text, Tt.x, Tt.y);
18853
18853
  }
18854
18854
  }
18855
18855
  if (tt.iconBox || tt.verticalIconBox) {
18856
18856
  const Kt = !!(!yt && tt.verticalIconBox);
18857
18857
  let at;
18858
- tt.iconBox && (at = Kt), tt.verticalIconBox && (at = !Kt), ul(l.iconCollisionBox.collisionVertexArray, Ae.icon.placed, at, rt.icon, te ? Ct.x : 0, te ? Ct.y : 0);
18858
+ tt.iconBox && (at = Kt), tt.verticalIconBox && (at = !Kt), ul(l.iconCollisionBox.collisionVertexArray, Ae.icon.placed, at, rt.icon, te ? Tt.x : 0, te ? Tt.y : 0);
18859
18859
  }
18860
18860
  }
18861
18861
  }
@@ -19146,9 +19146,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
19146
19146
  return o._(this, void 0, void 0, function* () {
19147
19147
  const B = ke(x), V = I > 1 ? "@2x" : "", j = {}, Y = {};
19148
19148
  for (const { id: te, url: ie } of B) {
19149
- const ae = A.transformRequest(Be(ie, V, ".json"), "SpriteJSON");
19149
+ const ae = A.transformRequest(Fe(ie, V, ".json"), "SpriteJSON");
19150
19150
  j[te] = o.h(ae, P);
19151
- const ue = A.transformRequest(Be(ie, V, ".png"), "SpriteImage");
19151
+ const ue = A.transformRequest(Fe(ie, V, ".png"), "SpriteImage");
19152
19152
  Y[te] = K.getImage(ue, P);
19153
19153
  }
19154
19154
  return yield Promise.all([...Object.values(j), ...Object.values(Y)]), function(te, ie) {
@@ -19158,8 +19158,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
19158
19158
  ae[ue] = {};
19159
19159
  const he = _.getImageCanvasContext((yield ie[ue]).data), me = (yield te[ue]).data;
19160
19160
  for (const re in me) {
19161
- const { width: xe, height: we, x: Ae, y: Ve, sdf: Xe, pixelRatio: ut, stretchX: yt, stretchY: rt, content: tt, textFitWidth: Ct, textFitHeight: Kt } = me[re];
19162
- ae[ue][re] = { data: null, pixelRatio: ut, sdf: Xe, stretchX: yt, stretchY: rt, content: tt, textFitWidth: Ct, textFitHeight: Kt, spriteData: { width: xe, height: we, x: Ae, y: Ve, context: he } };
19161
+ const { width: xe, height: we, x: Ae, y: Ve, sdf: Xe, pixelRatio: ut, stretchX: yt, stretchY: rt, content: tt, textFitWidth: Tt, textFitHeight: Kt } = me[re];
19162
+ ae[ue][re] = { data: null, pixelRatio: ut, sdf: Xe, stretchX: yt, stretchY: rt, content: tt, textFitWidth: Tt, textFitHeight: Kt, spriteData: { width: xe, height: we, x: Ae, y: Ve, context: he } };
19163
19163
  }
19164
19164
  }
19165
19165
  return ae;
@@ -21013,7 +21013,7 @@ uniform ${V} ${j} u_${Y};
21013
21013
  const we = new o.P(re.anchorX, re.anchorY), Ae = { getElevation: te, width: v.width, height: v.height, labelPlaneMatrix: x, lineVertexArray: null, pitchWithMap: h, projection: V, projectionCache: null, tileAnchorPoint: we, translation: j, unwrappedTileID: Y }, Ve = h ? le(we.x, we.y, A, te) : ze(we.x, we.y, Ae), Xe = W(v.cameraToCenterDistance, Ve.signedDistanceFromCamera);
21014
21014
  let ut = o.ai(w.textSizeData, P, re) * Xe / o.ap;
21015
21015
  h && (ut *= w.tilePixelRatio / I);
21016
- const { width: yt, height: rt, anchor: tt, textOffset: Ct, textBoxScale: Kt } = xe, at = wa(tt, yt, rt, Ct, Kt, ut), pt = V.getPitchedTextCorrection(v, we.add(new o.P(j[0], j[1])), Y), Gt = gl(Ve.point, Ae, l, at, v.angle, pt), oi = w.allowVerticalPlacement && re.placedOrientation === o.ah.vertical ? Math.PI / 2 : 0;
21016
+ const { width: yt, height: rt, anchor: tt, textOffset: Tt, textBoxScale: Kt } = xe, at = wa(tt, yt, rt, Tt, Kt, ut), pt = V.getPitchedTextCorrection(v, we.add(new o.P(j[0], j[1])), Y), Gt = gl(Ve.point, Ae, l, at, v.angle, pt), oi = w.allowVerticalPlacement && re.placedOrientation === o.ah.vertical ? Math.PI / 2 : 0;
21017
21017
  for (let on = 0; on < re.numGlyphs; on++) o.aj(ae, Gt, oi);
21018
21018
  B && re.associatedIconIndex >= 0 && (he[re.associatedIconIndex] = { shiftedAnchor: Gt, angle: oi });
21019
21019
  } else Vt(re.numGlyphs, ae);
@@ -21042,27 +21042,27 @@ uniform ${V} ${j} u_${Y};
21042
21042
  let Ae = !1;
21043
21043
  const Ve = w.depthModeForSublayer(0, cn.ReadOnly), Xe = h._unevaluatedLayout.hasValue("text-variable-anchor") || h._unevaluatedLayout.hasValue("text-variable-anchor-offset"), ut = [], yt = ae.getCircleRadiusCorrection(ie);
21044
21044
  for (const rt of y) {
21045
- const tt = l.getTile(rt), Ct = tt.getBucket(h);
21046
- if (!Ct) continue;
21047
- const Kt = v ? Ct.text : Ct.icon;
21045
+ const tt = l.getTile(rt), Tt = tt.getBucket(h);
21046
+ if (!Tt) continue;
21047
+ const Kt = v ? Tt.text : Tt.icon;
21048
21048
  if (!Kt || !Kt.segments.get().length || !Kt.hasVisibleVertices) continue;
21049
- const at = Kt.programConfigurations.get(h.id), pt = v || Ct.sdfIcons, Gt = v ? Ct.textSizeData : Ct.iconSizeData, oi = he || ie.pitch !== 0, on = w.useProgram(pm(pt, v, Ct), at), yn = o.ag(Gt, ie.zoom), ai = w.style.map.terrain && w.style.map.terrain.getTerrainData(rt);
21049
+ const at = Kt.programConfigurations.get(h.id), pt = v || Tt.sdfIcons, Gt = v ? Tt.textSizeData : Tt.iconSizeData, oi = he || ie.pitch !== 0, on = w.useProgram(pm(pt, v, Tt), at), yn = o.ag(Gt, ie.zoom), ai = w.style.map.terrain && w.style.map.terrain.getTerrainData(rt);
21050
21050
  let Qi, As, li, Ir, mr = [0, 0], gr = null;
21051
- if (v) As = tt.glyphAtlasTexture, li = te.LINEAR, Qi = tt.glyphAtlasTexture.size, Ct.iconsInText && (mr = tt.imageAtlasTexture.size, gr = tt.imageAtlasTexture, Ir = oi || w.options.rotating || w.options.zooming || Gt.kind === "composite" || Gt.kind === "camera" ? te.LINEAR : te.NEAREST);
21051
+ if (v) As = tt.glyphAtlasTexture, li = te.LINEAR, Qi = tt.glyphAtlasTexture.size, Tt.iconsInText && (mr = tt.imageAtlasTexture.size, gr = tt.imageAtlasTexture, Ir = oi || w.options.rotating || w.options.zooming || Gt.kind === "composite" || Gt.kind === "camera" ? te.LINEAR : te.NEAREST);
21052
21052
  else {
21053
- const gi = h.layout.get("icon-size").constantOr(0) !== 1 || Ct.iconsNeedLinear;
21053
+ const gi = h.layout.get("icon-size").constantOr(0) !== 1 || Tt.iconsNeedLinear;
21054
21054
  As = tt.imageAtlasTexture, li = pt || w.options.rotating || w.options.zooming || gi || oi ? te.LINEAR : te.NEAREST, Qi = tt.imageAtlasTexture.size;
21055
21055
  }
21056
- const yr = mn(tt, 1, w.transform.zoom), Qs = xe ? rt.posMatrix : ju, Sl = hr(Qs, he, ue, w.transform, yr), sd = Wr(Qs, he, ue, w.transform, yr), Ms = Wr(rt.posMatrix, he, ue, w.transform, yr), Ia = ae.translatePosition(w.transform, tt, x, A), od = Xe && Ct.hasTextData(), lf = h.layout.get("icon-text-fit") !== "none" && od && Ct.hasIconData();
21056
+ const yr = mn(tt, 1, w.transform.zoom), Qs = xe ? rt.posMatrix : ju, Sl = hr(Qs, he, ue, w.transform, yr), sd = Wr(Qs, he, ue, w.transform, yr), Ms = Wr(rt.posMatrix, he, ue, w.transform, yr), Ia = ae.translatePosition(w.transform, tt, x, A), od = Xe && Tt.hasTextData(), lf = h.layout.get("icon-text-fit") !== "none" && od && Tt.hasIconData();
21057
21057
  if (me) {
21058
21058
  const gi = w.style.map.terrain ? (El, ad) => w.style.map.terrain.getElevation(rt, El, ad) : null, bo = h.layout.get("text-rotation-alignment") === "map";
21059
- Q(Ct, rt.posMatrix, w, v, Sl, Ms, he, B, bo, ae, rt.toUnwrapped(), ie.width, ie.height, Ia, gi);
21059
+ Q(Tt, rt.posMatrix, w, v, Sl, Ms, he, B, bo, ae, rt.toUnwrapped(), ie.width, ie.height, Ia, gi);
21060
21060
  }
21061
21061
  const Zr = rt.posMatrix, Ds = v && Xe || lf, Xr = me || Ds ? ju : Sl, Uo = sd, vr = pt && h.paint.get(v ? "text-halo-width" : "icon-halo-width").constantOr(1) !== 0;
21062
21062
  let er;
21063
- er = pt ? Ct.iconsInText ? Ih(Gt.kind, yn, re, he, me, Ds, w, Zr, Xr, Uo, Ia, Qi, mr, yt) : pc(Gt.kind, yn, re, he, me, Ds, w, Zr, Xr, Uo, Ia, v, Qi, !0, yt) : em(Gt.kind, yn, re, he, me, Ds, w, Zr, Xr, Uo, Ia, v, Qi, yt);
21063
+ er = pt ? Tt.iconsInText ? Ih(Gt.kind, yn, re, he, me, Ds, w, Zr, Xr, Uo, Ia, Qi, mr, yt) : pc(Gt.kind, yn, re, he, me, Ds, w, Zr, Xr, Uo, Ia, v, Qi, !0, yt) : em(Gt.kind, yn, re, he, me, Ds, w, Zr, Xr, Uo, Ia, v, Qi, yt);
21064
21064
  const Xn = { program: on, buffers: Kt, uniformValues: er, atlasTexture: As, atlasTextureIcon: gr, atlasInterpolation: li, atlasInterpolationIcon: Ir, isSDF: pt, hasHalo: vr };
21065
- if (we && Ct.canOverlap) {
21065
+ if (we && Tt.canOverlap) {
21066
21066
  Ae = !0;
21067
21067
  const gi = Kt.segments.get();
21068
21068
  for (const bo of gi) ut.push({ segments: new o.a0([bo]), sortKey: bo.sortKey, state: Xn, terrainData: ai });
@@ -21072,8 +21072,8 @@ uniform ${V} ${j} u_${Y};
21072
21072
  for (const rt of ut) {
21073
21073
  const tt = rt.state;
21074
21074
  if (Y.activeTexture.set(te.TEXTURE0), tt.atlasTexture.bind(tt.atlasInterpolation, te.CLAMP_TO_EDGE), tt.atlasTextureIcon && (Y.activeTexture.set(te.TEXTURE1), tt.atlasTextureIcon && tt.atlasTextureIcon.bind(tt.atlasInterpolationIcon, te.CLAMP_TO_EDGE)), tt.isSDF) {
21075
- const Ct = tt.uniformValues;
21076
- tt.hasHalo && (Ct.u_is_halo = 1, Hu(tt.buffers, rt.segments, h, w, tt.program, Ve, V, j, Ct, rt.terrainData)), Ct.u_is_halo = 0;
21075
+ const Tt = tt.uniformValues;
21076
+ tt.hasHalo && (Tt.u_is_halo = 1, Hu(tt.buffers, rt.segments, h, w, tt.program, Ve, V, j, Tt, rt.terrainData)), Tt.u_is_halo = 0;
21077
21077
  }
21078
21078
  Hu(tt.buffers, rt.segments, h, w, tt.program, Ve, V, j, tt.uniformValues, rt.terrainData);
21079
21079
  }
@@ -21397,7 +21397,7 @@ uniform ${V} ${j} u_${Y};
21397
21397
  for (const ut of Y) {
21398
21398
  const yt = ae.getTile(ut), rt = yt.getBucket(ie);
21399
21399
  if (!rt || !rt.text || !rt.text.segments.get().length) continue;
21400
- const tt = o.ag(rt.textSizeData, we.zoom), Ct = mn(yt, 1, te.transform.zoom), Kt = hr(ut.posMatrix, Xe, Ve, te.transform, Ct), at = ie.layout.get("icon-text-fit") !== "none" && rt.hasIconData();
21400
+ const tt = o.ag(rt.textSizeData, we.zoom), Tt = mn(yt, 1, te.transform.zoom), Kt = hr(ut.posMatrix, Xe, Ve, te.transform, Tt), at = ie.layout.get("icon-text-fit") !== "none" && rt.hasIconData();
21401
21401
  if (tt) {
21402
21402
  const pt = Math.pow(2, we.zoom - yt.tileID.overscaledZ), Gt = te.style.map.terrain ? (on, yn) => te.style.map.terrain.getElevation(ut, on, yn) : null, oi = Ae.translatePosition(we, yt, me, re);
21403
21403
  cs(rt, Ve, Xe, xe, we, Kt, ut.posMatrix, pt, tt, at, Ae, oi, ut.toUnwrapped(), Gt);
@@ -21417,8 +21417,8 @@ uniform ${V} ${j} u_${Y};
21417
21417
  if (!Ae) continue;
21418
21418
  const Ve = Ae.programConfigurations.get(I.id), Xe = x.useProgram("circle", Ve), ut = Ae.layoutVertexBuffer, yt = Ae.indexBuffer, rt = x.style.map.terrain && x.style.map.terrain.getTerrainData(xe), tt = { programConfiguration: Ve, program: Xe, layoutVertexBuffer: ut, indexBuffer: yt, uniformValues: B0(x, xe, we, I), terrainData: rt };
21419
21419
  if (Y) {
21420
- const Ct = Ae.segments.get();
21421
- for (const Kt of Ct) me.push({ segments: new o.a0([Kt]), sortKey: Kt.sortKey, state: tt });
21420
+ const Tt = Ae.segments.get();
21421
+ for (const Kt of Tt) me.push({ segments: new o.a0([Kt]), sortKey: Kt.sortKey, state: tt });
21422
21422
  } else me.push({ segments: Ae.segments, sortKey: 0, state: tt });
21423
21423
  }
21424
21424
  Y && me.sort((re, xe) => re.sortKey - xe.sortKey);
@@ -21475,12 +21475,12 @@ uniform ${V} ${j} u_${Y};
21475
21475
  if (ae && !Ve.patternsLoaded()) continue;
21476
21476
  const Xe = Ve.getBucket(I);
21477
21477
  if (!Xe) continue;
21478
- const ut = Xe.programConfigurations.get(I.id), yt = x.context.program.get(), rt = x.useProgram(me, ut), tt = we || rt.program !== yt, Ct = x.style.map.terrain && x.style.map.terrain.getTerrainData(Ae), Kt = ie.constantOr(null);
21478
+ const ut = Xe.programConfigurations.get(I.id), yt = x.context.program.get(), rt = x.useProgram(me, ut), tt = we || rt.program !== yt, Tt = x.style.map.terrain && x.style.map.terrain.getTerrainData(Ae), Kt = ie.constantOr(null);
21479
21479
  if (Kt && Ve.imageAtlas) {
21480
21480
  const Gt = Ve.imageAtlas, oi = Gt.patternPositions[Kt.to.toString()], on = Gt.patternPositions[Kt.from.toString()];
21481
21481
  oi && on && ut.setConstantPatternPositions(oi, on);
21482
21482
  }
21483
- const at = Ct ? Ae : null, pt = ae ? pl(x, Ve, I, he, at) : te ? F0(x, Ve, I, te, he, at) : ue ? Kp(x, Ve, I, Xe.lineClipsArray.length, at) : Nu(x, Ve, I, at);
21483
+ const at = Tt ? Ae : null, pt = ae ? pl(x, Ve, I, he, at) : te ? F0(x, Ve, I, te, he, at) : ue ? Kp(x, Ve, I, Xe.lineClipsArray.length, at) : Nu(x, Ve, I, at);
21484
21484
  if (ae) re.activeTexture.set(xe.TEXTURE0), Ve.imageAtlasTexture.bind(xe.LINEAR, xe.CLAMP_TO_EDGE), ut.updatePaintBuffers(he);
21485
21485
  else if (te && (tt || x.lineAtlas.dirty)) re.activeTexture.set(xe.TEXTURE0), x.lineAtlas.bind(re);
21486
21486
  else if (ue) {
@@ -21496,7 +21496,7 @@ uniform ${V} ${j} u_${Y};
21496
21496
  }
21497
21497
  re.activeTexture.set(xe.TEXTURE0), oi.bind(I.stepInterpolant ? xe.NEAREST : xe.LINEAR, xe.CLAMP_TO_EDGE);
21498
21498
  }
21499
- rt.draw(re, xe.TRIANGLES, j, x.stencilModeForClipping(Ae), Y, Vn.disabled, pt, Ct, I.id, Xe.layoutVertexBuffer, Xe.indexBuffer, Xe.segments, I.paint, x.transform.zoom, ut, Xe.layoutVertexBuffer2), we = !1;
21499
+ rt.draw(re, xe.TRIANGLES, j, x.stencilModeForClipping(Ae), Y, Vn.disabled, pt, Tt, I.id, Xe.layoutVertexBuffer, Xe.indexBuffer, Xe.segments, I.paint, x.transform.zoom, ut, Xe.layoutVertexBuffer2), we = !1;
21500
21500
  }
21501
21501
  })(l, h, y, v);
21502
21502
  break;
@@ -21550,7 +21550,7 @@ uniform ${V} ${j} u_${Y};
21550
21550
  let Xe, ut;
21551
21551
  const yt = I.paint.get("raster-resampling") === "nearest" ? V.NEAREST : V.LINEAR;
21552
21552
  B.activeTexture.set(V.TEXTURE0), xe.texture.bind(yt, V.CLAMP_TO_EDGE, V.LINEAR_MIPMAP_NEAREST), B.activeTexture.set(V.TEXTURE1), we ? (we.texture.bind(yt, V.CLAMP_TO_EDGE, V.LINEAR_MIPMAP_NEAREST), Xe = Math.pow(2, we.tileID.overscaledZ - xe.tileID.overscaledZ), ut = [xe.tileID.canonical.x * Xe % 1, xe.tileID.canonical.y * Xe % 1]) : xe.texture.bind(yt, V.CLAMP_TO_EDGE, V.LINEAR_MIPMAP_NEAREST), xe.texture.useMipmap && B.extTextureFilterAnisotropic && x.transform.pitch > 20 && V.texParameterf(V.TEXTURE_2D, B.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT, B.extTextureFilterAnisotropicMax);
21553
- const rt = x.style.map.terrain && x.style.map.terrain.getTerrainData(me), tt = rt ? me : null, Ct = tt ? tt.posMatrix : x.transform.calculatePosMatrix(me.toUnwrapped(), he), Kt = $0(Ct, ut || [0, 0], Xe || 1, Ve, I);
21553
+ const rt = x.style.map.terrain && x.style.map.terrain.getTerrainData(me), tt = rt ? me : null, Tt = tt ? tt.posMatrix : x.transform.calculatePosMatrix(me.toUnwrapped(), he), Kt = $0(Tt, ut || [0, 0], Xe || 1, Ve, I);
21554
21554
  j instanceof qi ? Y.draw(B, V.TRIANGLES, re, ei.disabled, te, Vn.disabled, Kt, rt, I.id, j.boundsBuffer, x.quadTriangleIndexBuffer, j.boundsSegments) : Y.draw(B, V.TRIANGLES, re, ie[me.overscaledZ], te, Vn.disabled, Kt, rt, I.id, x.rasterBoundsBuffer, x.quadTriangleIndexBuffer, x.rasterBoundsSegments);
21555
21555
  }
21556
21556
  })(l, h, y, v);
@@ -21862,16 +21862,16 @@ uniform ${V} ${j} u_${Y};
21862
21862
  }
21863
21863
  const Ve = l.terrain ? B : V, Xe = re.aabb.distanceX(Ve), ut = re.aabb.distanceY(Ve), yt = Math.max(Math.abs(Xe), Math.abs(ut));
21864
21864
  if (re.zoom === he || yt > te + (1 << he - re.zoom) - 2 && re.zoom >= Y) {
21865
- const rt = he - re.zoom, tt = B[0] - 0.5 - (xe << rt), Ct = B[1] - 0.5 - (we << rt);
21866
- ue.push({ tileID: new o.S(re.zoom === he ? me : re.zoom, re.wrap, re.zoom, xe, we), distanceSq: $e([V[0] - 0.5 - xe, V[1] - 0.5 - we]), tileDistanceToCamera: Math.sqrt(tt * tt + Ct * Ct) });
21865
+ const rt = he - re.zoom, tt = B[0] - 0.5 - (xe << rt), Tt = B[1] - 0.5 - (we << rt);
21866
+ ue.push({ tileID: new o.S(re.zoom === he ? me : re.zoom, re.wrap, re.zoom, xe, we), distanceSq: $e([V[0] - 0.5 - xe, V[1] - 0.5 - we]), tileDistanceToCamera: Math.sqrt(tt * tt + Tt * Tt) });
21867
21867
  } else for (let rt = 0; rt < 4; rt++) {
21868
- const tt = (xe << 1) + rt % 2, Ct = (we << 1) + (rt >> 1), Kt = re.zoom + 1;
21868
+ const tt = (xe << 1) + rt % 2, Tt = (we << 1) + (rt >> 1), Kt = re.zoom + 1;
21869
21869
  let at = re.aabb.quadrant(rt);
21870
21870
  if (l.terrain) {
21871
- const pt = new o.S(Kt, re.wrap, Kt, tt, Ct), Gt = l.terrain.getMinMaxElevation(pt), oi = (h = Gt.minElevation) !== null && h !== void 0 ? h : this.elevation, on = (y = Gt.maxElevation) !== null && y !== void 0 ? y : this.elevation;
21871
+ const pt = new o.S(Kt, re.wrap, Kt, tt, Tt), Gt = l.terrain.getMinMaxElevation(pt), oi = (h = Gt.minElevation) !== null && h !== void 0 ? h : this.elevation, on = (y = Gt.maxElevation) !== null && y !== void 0 ? y : this.elevation;
21872
21872
  at = new bl([at.min[0], at.min[1], oi], [at.max[0], at.max[1], on]);
21873
21873
  }
21874
- ae.push({ aabb: at, zoom: Kt, x: tt, y: Ct, wrap: re.wrap, fullyVisible: Ae });
21874
+ ae.push({ aabb: at, zoom: Kt, x: tt, y: Tt, wrap: re.wrap, fullyVisible: Ae });
21875
21875
  }
21876
21876
  }
21877
21877
  return ue.sort((re, xe) => re.distanceSq - xe.distanceSq).map((re) => re.tileID);
@@ -23383,7 +23383,7 @@ uniform ${V} ${j} u_${Y};
23383
23383
  return (Math.exp(pt) + Math.exp(-pt)) / 2;
23384
23384
  }
23385
23385
  const tt = ut(!1);
23386
- let Ct = function(pt) {
23386
+ let Tt = function(pt) {
23387
23387
  return rt(tt) / rt(tt + xe * pt);
23388
23388
  }, Kt = function(pt) {
23389
23389
  return we * ((rt(tt) * (yt(Gt = tt + xe * pt) / rt(Gt)) - yt(tt)) / Xe) / Ve;
@@ -23392,10 +23392,10 @@ uniform ${V} ${j} u_${Y};
23392
23392
  if (Math.abs(Ve) < 1e-6 || !isFinite(at)) {
23393
23393
  if (Math.abs(we - Ae) < 1e-6) return this.easeTo(l, h);
23394
23394
  const pt = Ae < we ? -1 : 1;
23395
- at = Math.abs(Math.log(Ae / we)) / xe, Kt = () => 0, Ct = (Gt) => Math.exp(pt * xe * Gt);
23395
+ at = Math.abs(Math.log(Ae / we)) / xe, Kt = () => 0, Tt = (Gt) => Math.exp(pt * xe * Gt);
23396
23396
  }
23397
23397
  return l.duration = "duration" in l ? +l.duration : 1e3 * at / ("screenSpeed" in l ? +l.screenSpeed / xe : +l.speed), l.maxDuration && l.duration > l.maxDuration && (l.duration = 0), this._zooming = !0, this._rotating = A !== B, this._pitching = V !== I, this._padding = !v.isPaddingEqual(j), this._prepareEase(h, !1), this.terrain && this._prepareElevation(ae), this._ease((pt) => {
23398
- const Gt = pt * at, oi = 1 / Ct(Gt);
23398
+ const Gt = pt * at, oi = 1 / Tt(Gt);
23399
23399
  v.zoom = pt === 1 ? ue : x + v.scaleZoom(oi), this._rotating && (v.bearing = o.y.number(A, B, pt)), this._pitching && (v.pitch = o.y.number(I, V, pt)), this._padding && (v.interpolatePadding(P, j, pt), te = v.centerPoint.add(Y)), this.terrain && !l.freezeElevation && this._updateElevation(pt);
23400
23400
  const on = pt === 1 ? ae : v.unproject(me.add(re.mult(Kt(Gt))).mult(oi));
23401
23401
  v.setLocationAtPoint(v.renderWorldCopies ? on.wrap() : on, te), this._applyUpdatedTransform(v), this._fireMoveEvents(h);
@@ -25871,7 +25871,7 @@ function bV(t, e, n, i, r, s) {
25871
25871
  r.isOpen ? (X(), ne("div", aV, [
25872
25872
  L("div", lV, [
25873
25873
  e[7] || (e[7] = L("div", null, "Шари", -1)),
25874
- Fe(a, {
25874
+ Be(a, {
25875
25875
  onClick: e[1] || (e[1] = (f) => r.isOpen = !1),
25876
25876
  class: "w-4 h-4"
25877
25877
  })
@@ -26458,12 +26458,12 @@ let ub = null, db = null, eh = class eM extends a1 {
26458
26458
  const ge = Z.getAttribute("style") || "";
26459
26459
  Z.style.setProperty("transform", "none", "important"), a && (Z.style.width = "", Z.style.height = ""), Z.offsetHeight;
26460
26460
  const be = s.getBoundingClientRect();
26461
- let Ce = be.width * i, $e = be.height * i, ke = Ce, Be = $e;
26461
+ let Ce = be.width * i, $e = be.height * i, ke = Ce, Fe = $e;
26462
26462
  Ce = Math.min(Ce, z), $e = Math.min($e, $), a ? { width: Ce, height: $e } = ((Ze, pe, _t, Ft) => {
26463
26463
  const $t = _t / Ze, Ut = Ft / pe, dn = Math.min($t, Ut);
26464
26464
  return { width: Ze *= dn, height: pe *= dn };
26465
26465
  })(z, $, Ce, $e) : (Ce = Math.min(Ce, z), $e = Math.min($e, $));
26466
- let Ge = 0.5 * (Be - $e), We = 0.5 * (ke - Ce);
26466
+ let Ge = 0.5 * (Fe - $e), We = 0.5 * (ke - Ce);
26467
26467
  this.contentRect = Object.assign(Object.assign({}, this.contentRect), { top: be.top - o.top + Ge, bottom: o.bottom - be.bottom + Ge, left: be.left - o.left + We, right: o.right - be.right + We, fitWidth: Ce, fitHeight: $e, width: Ce, height: $e, fullWidth: z, fullHeight: $ }), Z.style.cssText = ge, a && (Z.style.width = `${Ce}px`, Z.style.height = `${$e}px`), this.setTransform(), e !== !0 && this.emit("refresh"), this.ignoreBounds || (xt(this.targetScale) < xt(this.minScale) ? this.zoomTo(this.minScale, { friction: 0 }) : this.targetScale > this.maxScale ? this.zoomTo(this.maxScale, { friction: 0 }) : this.state === ni.Init || this.checkBounds().inBounds || this.requestTick()), this.updateControls();
26468
26468
  }
26469
26469
  calculateBounds() {
@@ -29106,43 +29106,49 @@ function gj(t, e, n, i, r, s) {
29106
29106
  const a = qe("VsWidgetFileInfo"), o = qe("Fancybox"), f = qe("IconDownload"), m = qe("IconTrash");
29107
29107
  return X(), ne("div", nj, [
29108
29108
  n.item.ext === "jpg" || n.item.ext === "png" ? (X(), ne("div", ij, [
29109
- Fe(o, null, {
29110
- default: At(() => [
29109
+ Be(o, null, {
29110
+ default: Ct(() => [
29111
29111
  L("a", {
29112
29112
  "data-fancybox": "gallery",
29113
29113
  href: n.item.file_path,
29114
29114
  target: "_blank",
29115
29115
  class: "flex gap-x-3 w-full items-center"
29116
29116
  }, [
29117
- Fe(a, { item: n.item }, null, 8, ["item"])
29117
+ Be(a, { item: n.item }, null, 8, ["item"])
29118
29118
  ], 8, rj)
29119
29119
  ]),
29120
29120
  _: 1
29121
29121
  })
29122
29122
  ])) : s.isSupportedFile(n.item) ? (X(), ne("div", sj, [
29123
- Fe(o, { options: r.optionsFile }, {
29124
- default: At(() => [
29123
+ Be(o, { options: r.optionsFile }, {
29124
+ default: Ct(() => [
29125
29125
  L("a", {
29126
29126
  "data-fancybox": "gallery",
29127
29127
  href: n.item.file_path,
29128
29128
  target: "_blank",
29129
29129
  class: "flex gap-x-3 w-full items-center"
29130
29130
  }, [
29131
- Fe(a, { item: n.item }, null, 8, ["item"])
29131
+ Be(a, { item: n.item }, null, 8, ["item"])
29132
29132
  ], 8, oj)
29133
29133
  ]),
29134
29134
  _: 1
29135
29135
  }, 8, ["options"])
29136
29136
  ])) : s.isSupportedAllFile(n.item) ? (X(), ne("div", aj, [
29137
- L("a", {
29138
- href: `/api/file-preview?id=${n.item.file_id}`,
29139
- target: "_blank",
29140
- class: "flex gap-x-3 w-full items-center"
29141
- }, [
29142
- Fe(a, { item: n.item }, null, 8, ["item"])
29143
- ], 8, lj)
29137
+ Be(o, { options: r.optionsFile }, {
29138
+ default: Ct(() => [
29139
+ L("a", {
29140
+ "data-fancybox": "gallery",
29141
+ href: `/api/file-preview?id=${n.item.file_id}.pdf`,
29142
+ target: "_blank",
29143
+ class: "flex gap-x-3 w-full items-center"
29144
+ }, [
29145
+ Be(a, { item: n.item }, null, 8, ["item"])
29146
+ ], 8, lj)
29147
+ ]),
29148
+ _: 1
29149
+ }, 8, ["options"])
29144
29150
  ])) : (X(), ne("div", cj, [
29145
- Fe(a, { item: n.item }, null, 8, ["item"])
29151
+ Be(a, { item: n.item }, null, 8, ["item"])
29146
29152
  ])),
29147
29153
  L("div", uj, [
29148
29154
  L("div", dj, [
@@ -29152,7 +29158,7 @@ function gj(t, e, n, i, r, s) {
29152
29158
  onClick: e[0] || (e[0] = (g) => s.downloadFile(n.item)),
29153
29159
  disabled: n.disabled
29154
29160
  }, [
29155
- Fe(f, {
29161
+ Be(f, {
29156
29162
  height: "14",
29157
29163
  width: "14"
29158
29164
  })
@@ -29166,7 +29172,7 @@ function gj(t, e, n, i, r, s) {
29166
29172
  onClick: e[1] || (e[1] = (g) => s.confirnDeleteFile()),
29167
29173
  disabled: n.disabled
29168
29174
  }, [
29169
- Fe(m, {
29175
+ Be(m, {
29170
29176
  height: "14",
29171
29177
  width: "14"
29172
29178
  })
@@ -29305,7 +29311,7 @@ function Bj(t, e, n, i, r, s) {
29305
29311
  L("div", {
29306
29312
  class: tn(["py-1.5 px-4 inline-flex items-center gap-x-2 text-sm font-medium rounded-lg bg-gray-100 cursor-pointer hover:bg-gray-200 text-gray-800 shadow-2xs hover:bg-gray-50 focus:outline-hidden focus:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:text-white dark:hover:bg-neutral-700 dark:focus:bg-neutral-700", { hidden: n.disabled }])
29307
29313
  }, [
29308
- Fe(a, {
29314
+ Be(a, {
29309
29315
  height: "16",
29310
29316
  width: "16"
29311
29317
  })
@@ -29367,13 +29373,13 @@ function Bj(t, e, n, i, r, s) {
29367
29373
  L("p", { class: "text-sm text-gray-600 font-sm" }, " Файлів з такою назвою не існує, введіть інше пошукове слово ", -1)
29368
29374
  ])))
29369
29375
  ])) : bt("", !0),
29370
- Fe(f, {
29376
+ Be(f, {
29371
29377
  title: r.modal.title,
29372
29378
  size: "small",
29373
29379
  visible: r.isModalVisible,
29374
29380
  "onUpdate:visible": e[6] || (e[6] = (_) => r.isModalVisible = _)
29375
29381
  }, {
29376
- default: At(() => [
29382
+ default: Ct(() => [
29377
29383
  L("div", zj, [
29378
29384
  L("p", Lj, He(r.modal.message), 1),
29379
29385
  L("div", Nj, [
@@ -29456,7 +29462,7 @@ const Hj = /* @__PURE__ */ ft($j, [["render", jj]]), Uj = { class: "cursor-point
29456
29462
  onClick: f
29457
29463
  }, [
29458
29464
  L("div", Wj, [
29459
- Fe(Hj),
29465
+ Be(Hj),
29460
29466
  O[0] || (O[0] = L("p", { class: "font-medium text-gray-800 text-center mt-[16px] !mb-0" }, " Додати фото ", -1)),
29461
29467
  L("p", qj, He(a.value), 1)
29462
29468
  ])
@@ -29487,7 +29493,7 @@ const Hj = /* @__PURE__ */ ft($j, [["render", jj]]), Uj = { class: "cursor-point
29487
29493
  },
29488
29494
  setup(t) {
29489
29495
  const { Fancybox: e } = u0, { $notify: n } = es().proxy, i = t, r = ot([]), s = ot(!1), a = ot(null), o = ot({}), f = [".tiff", ".jpg", ".jpeg", ".png", ".svg", ".ico", ".webp"], m = async () => {
29490
- var ke, Be, Ge;
29496
+ var ke, Fe, Ge;
29491
29497
  if ((ke = i == null ? void 0 : i.prefilledData) != null && ke.length) {
29492
29498
  r.value = i.prefilledData, e.bind("[data-fancybox='gallery']");
29493
29499
  return;
@@ -29497,7 +29503,7 @@ const Hj = /* @__PURE__ */ ft($j, [["render", jj]]), Uj = { class: "cursor-point
29497
29503
  `${i.prefix}/widget/gallery/${i == null ? void 0 : i.id}`
29498
29504
  );
29499
29505
  r.value = [
29500
- (Be = We == null ? void 0 : We.rows) == null ? void 0 : Be.find((Ze) => Ze == null ? void 0 : Ze.ismain),
29506
+ (Fe = We == null ? void 0 : We.rows) == null ? void 0 : Fe.find((Ze) => Ze == null ? void 0 : Ze.ismain),
29501
29507
  ...((Ge = We == null ? void 0 : We.rows) == null ? void 0 : Ge.filter((Ze) => !(Ze != null && Ze.ismain))) || []
29502
29508
  ].filter((Ze) => Ze), e.bind("[data-fancybox='gallery']");
29503
29509
  } catch (We) {
@@ -29513,8 +29519,8 @@ const Hj = /* @__PURE__ */ ft($j, [["render", jj]]), Uj = { class: "cursor-point
29513
29519
  });
29514
29520
  return;
29515
29521
  }
29516
- const Be = Array.from((_t = ke.target) == null ? void 0 : _t.files);
29517
- if (!Be.every(
29522
+ const Fe = Array.from((_t = ke.target) == null ? void 0 : _t.files);
29523
+ if (!Fe.every(
29518
29524
  (Ft) => {
29519
29525
  var $t, Ut;
29520
29526
  return f == null ? void 0 : f.includes("." + ((Ut = ($t = Ft.name.split(".")) == null ? void 0 : $t.pop()) == null ? void 0 : Ut.toLowerCase()));
@@ -29528,7 +29534,7 @@ const Hj = /* @__PURE__ */ ft($j, [["render", jj]]), Uj = { class: "cursor-point
29528
29534
  return;
29529
29535
  }
29530
29536
  await Promise.all(
29531
- Be.map(async (Ft) => {
29537
+ Fe.map(async (Ft) => {
29532
29538
  const $t = new FormData();
29533
29539
  $t.append("file", Ft);
29534
29540
  try {
@@ -29542,11 +29548,11 @@ const Hj = /* @__PURE__ */ ft($j, [["render", jj]]), Uj = { class: "cursor-point
29542
29548
  })
29543
29549
  ), await m();
29544
29550
  }, _ = (ke) => {
29545
- const Be = document.createElement("a");
29546
- Be.setAttribute("download", ke == null ? void 0 : ke.uploaded_name), Be.href = ke == null ? void 0 : ke.file_path, Be.click();
29547
- }, k = async (ke, Be) => {
29551
+ const Fe = document.createElement("a");
29552
+ Fe.setAttribute("download", ke == null ? void 0 : ke.uploaded_name), Fe.href = ke == null ? void 0 : ke.file_path, Fe.click();
29553
+ }, k = async (ke, Fe) => {
29548
29554
  try {
29549
- await lt.post(`${i.prefix}/widget/gallery/${ke}/${Be}`, {
29555
+ await lt.post(`${i.prefix}/widget/gallery/${ke}/${Fe}`, {
29550
29556
  ismain: !0
29551
29557
  }), await m();
29552
29558
  } catch (Ge) {
@@ -29559,8 +29565,8 @@ const Hj = /* @__PURE__ */ ft($j, [["render", jj]]), Uj = { class: "cursor-point
29559
29565
  confirmButtonText: "Так, видалити ",
29560
29566
  cancelButtonText: "Відмінити",
29561
29567
  confirm: async () => {
29562
- var Be, Ge, We;
29563
- await M(), s.value = !1, await m(), (Be = r.value) != null && Be[0] && !((We = (Ge = r.value) == null ? void 0 : Ge[0]) != null && We.ismain) && setTimeout(
29568
+ var Fe, Ge, We;
29569
+ await M(), s.value = !1, await m(), (Fe = r.value) != null && Fe[0] && !((We = (Ge = r.value) == null ? void 0 : Ge[0]) != null && We.ismain) && setTimeout(
29564
29570
  () => {
29565
29571
  var Ze, pe, _t, Ft;
29566
29572
  return k((pe = (Ze = r.value) == null ? void 0 : Ze[0]) == null ? void 0 : pe.entity_id, (Ft = (_t = r.value) == null ? void 0 : _t[0]) == null ? void 0 : Ft.file_id);
@@ -29572,44 +29578,44 @@ const Hj = /* @__PURE__ */ ft($j, [["render", jj]]), Uj = { class: "cursor-point
29572
29578
  }
29573
29579
  }, s.value = !0;
29574
29580
  }, M = async () => {
29575
- var ke, Be;
29581
+ var ke, Fe;
29576
29582
  try {
29577
29583
  await lt.delete(
29578
- `${i.prefix}/widget/gallery/${(ke = a.value) == null ? void 0 : ke.entity_id}/${(Be = a.value) == null ? void 0 : Be.file_id}`
29584
+ `${i.prefix}/widget/gallery/${(ke = a.value) == null ? void 0 : ke.entity_id}/${(Fe = a.value) == null ? void 0 : Fe.file_id}`
29579
29585
  );
29580
29586
  } catch (Ge) {
29581
29587
  console.error(Ge);
29582
29588
  }
29583
- }, O = (ke, Be = 2) => {
29589
+ }, O = (ke, Fe = 2) => {
29584
29590
  if (ke === 0) return "0 Bytes";
29585
- const Ge = 1024, We = Be < 0 ? 0 : Be, Ze = ["Bytes", "KB", "MB", "GB", "TB"], pe = Math.floor(Math.log(ke) / Math.log(Ge));
29591
+ const Ge = 1024, We = Fe < 0 ? 0 : Fe, Ze = ["Bytes", "KB", "MB", "GB", "TB"], pe = Math.floor(Math.log(ke) / Math.log(Ge));
29586
29592
  return `${parseFloat((ke / Ge ** pe).toFixed(We))} ${Ze[pe]}`;
29587
29593
  }, z = (ke) => {
29588
- const Be = {
29594
+ const Fe = {
29589
29595
  day: "numeric",
29590
29596
  month: "long",
29591
29597
  year: "numeric",
29592
29598
  hour: "numeric",
29593
29599
  minute: "numeric"
29594
29600
  };
29595
- return new Date(ke).toLocaleDateString("uk-UA", Be);
29601
+ return new Date(ke).toLocaleDateString("uk-UA", Fe);
29596
29602
  }, $ = ot(null), q = ot(0), K = () => {
29597
29603
  var ke;
29598
29604
  q.value = ((ke = $.value) == null ? void 0 : ke.offsetWidth) || 0;
29599
29605
  }, Z = Di(() => {
29600
- const ke = [...r.value], Be = { isDropzone: !0 }, Ge = Math.floor(q.value / 316) || 1, We = Math.min(Ge - 1, ke.length);
29601
- return ke.splice(We, 0, Be), ke;
29606
+ const ke = [...r.value], Fe = { isDropzone: !0 }, Ge = Math.floor(q.value / 316) || 1, We = Math.min(Ge - 1, ke.length);
29607
+ return ke.splice(We, 0, Fe), ke;
29602
29608
  }), ge = ot(null), be = (ke) => {
29603
29609
  ge.value = ke;
29604
- }, Ce = (ke) => r.value.findIndex((Be) => Be.file_path === ke.file_path), $e = (ke) => {
29610
+ }, Ce = (ke) => r.value.findIndex((Fe) => Fe.file_path === ke.file_path), $e = (ke) => {
29605
29611
  if (ke === 0) {
29606
- const Be = ge.value;
29607
- if (Be === null || Be === ke) return;
29612
+ const Fe = ge.value;
29613
+ if (Fe === null || Fe === ke) return;
29608
29614
  const We = Z.value.filter(
29609
29615
  (Ze) => !Ze.isDropzone
29610
- )[Be];
29616
+ )[Fe];
29611
29617
  if (!We) return;
29612
- r.value.splice(Be, 1), r.value.splice(ke, 0, We), ge.value = null, setTimeout(
29618
+ r.value.splice(Fe, 1), r.value.splice(ke, 0, We), ge.value = null, setTimeout(
29613
29619
  () => {
29614
29620
  var Ze, pe, _t, Ft;
29615
29621
  return k((pe = (Ze = r.value) == null ? void 0 : Ze[0]) == null ? void 0 : pe.entity_id, (Ft = (_t = r.value) == null ? void 0 : _t[0]) == null ? void 0 : Ft.file_id);
@@ -29621,7 +29627,7 @@ const Hj = /* @__PURE__ */ ft($j, [["render", jj]]), Uj = { class: "cursor-point
29621
29627
  m(), K(), window.addEventListener("resize", K), addEventListener("reloadCardPage", m);
29622
29628
  }), Tz(() => {
29623
29629
  removeEventListener("reloadCardPage", m);
29624
- }), js(() => i.id, m), js(r, K), (ke, Be) => {
29630
+ }), js(() => i.id, m), js(r, K), (ke, Fe) => {
29625
29631
  const Ge = qe("VsConfirm");
29626
29632
  return X(), ne("div", {
29627
29633
  ref_key: "galleryContainer",
@@ -29640,26 +29646,26 @@ const Hj = /* @__PURE__ */ ft($j, [["render", jj]]), Uj = { class: "cursor-point
29640
29646
  accept: f.join(","),
29641
29647
  multiple: ""
29642
29648
  }, null, 40, Qj),
29643
- Be[5] || (Be[5] = Do('<span type="button" class="py-2 px-2.5 cursor-pointer inline-flex items-center gap-x-1.5 text-xs font-medium rounded-lg border border-stone-200 bg-white text-stone-800 shadow-2xs hover:bg-stone-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-hidden focus:bg-stone-50 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700"><svg class="shrink-0 size-3.5" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242"></path><path d="M12 12v9"></path><path d="m16 16-4-4-4 4"></path></svg> Завантажити </span>', 1))
29649
+ Fe[5] || (Fe[5] = Do('<span type="button" class="py-2 px-2.5 cursor-pointer inline-flex items-center gap-x-1.5 text-xs font-medium rounded-lg border border-stone-200 bg-white text-stone-800 shadow-2xs hover:bg-stone-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-hidden focus:bg-stone-50 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700"><svg class="shrink-0 size-3.5" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242"></path><path d="M12 12v9"></path><path d="m16 16-4-4-4 4"></path></svg> Завантажити </span>', 1))
29644
29650
  ])
29645
29651
  ])
29646
29652
  ])
29647
29653
  ]),
29648
- Fe(Az, {
29654
+ Be(Az, {
29649
29655
  name: "gallery",
29650
29656
  tag: "div",
29651
29657
  class: "flex flex-wrap gap-[16px]"
29652
29658
  }, {
29653
- default: At(() => [
29654
- Fe(Zj, {
29655
- "onFile:upload": Be[0] || (Be[0] = (We) => g({ target: { files: We } })),
29659
+ default: Ct(() => [
29660
+ Be(Zj, {
29661
+ "onFile:upload": Fe[0] || (Fe[0] = (We) => g({ target: { files: We } })),
29656
29662
  class: "h-[200px] w-[300px]"
29657
29663
  }),
29658
29664
  (X(!0), ne(Et, null, Xt(r.value, (We, Ze) => (X(), ne("div", {
29659
29665
  key: We.file_path || "dz-" + Ze,
29660
29666
  draggable: "true",
29661
29667
  onDragstart: (pe) => be(Ce(We)),
29662
- onDragover: Be[1] || (Be[1] = tu(() => {
29668
+ onDragover: Fe[1] || (Fe[1] = tu(() => {
29663
29669
  }, ["prevent"])),
29664
29670
  onDrop: (pe) => $e(Ce(We)),
29665
29671
  class: "relative cursor-pointer rounded-b-lg item hover:shadow-lg shrink-0 h-[200px] w-[300px]"
@@ -29695,7 +29701,7 @@ const Hj = /* @__PURE__ */ ft($j, [["render", jj]]), Uj = { class: "cursor-point
29695
29701
  class: "flex items-center justify-center gap-2 hover:bg-gray-200 p-[6px] rounded",
29696
29702
  onClick: tu((pe) => _(We), ["prevent"])
29697
29703
  }, [
29698
- Fe(bM, {
29704
+ Be(bM, {
29699
29705
  height: "14",
29700
29706
  width: "14"
29701
29707
  })
@@ -29704,7 +29710,7 @@ const Hj = /* @__PURE__ */ ft($j, [["render", jj]]), Uj = { class: "cursor-point
29704
29710
  class: "flex items-center gap-2 hover:bg-gray-200 p-[6px] rounded hover:cursor-pointer",
29705
29711
  onClick: tu((pe) => C(We), ["prevent"])
29706
29712
  }, [
29707
- Fe(_M, {
29713
+ Be(_M, {
29708
29714
  height: "14",
29709
29715
  width: "14"
29710
29716
  })
@@ -29716,25 +29722,25 @@ const Hj = /* @__PURE__ */ ft($j, [["render", jj]]), Uj = { class: "cursor-point
29716
29722
  ]),
29717
29723
  _: 1
29718
29724
  }),
29719
- Fe(Ge, {
29725
+ Be(Ge, {
29720
29726
  title: o.value.title,
29721
29727
  size: "small",
29722
29728
  visible: s.value,
29723
- "onUpdate:visible": Be[4] || (Be[4] = (We) => s.value = We)
29729
+ "onUpdate:visible": Fe[4] || (Fe[4] = (We) => s.value = We)
29724
29730
  }, {
29725
- default: At(() => [
29731
+ default: Ct(() => [
29726
29732
  L("div", h6, [
29727
29733
  L("p", f6, He(o.value.message), 1),
29728
29734
  L("div", p6, [
29729
29735
  L("button", {
29730
29736
  type: "button",
29731
29737
  class: "inline-flex items-center px-3 py-2 text-sm font-medium text-gray-800 bg-white border border-gray-200 rounded-lg shadow-sm gap-x-2 hover:bg-gray-50 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700",
29732
- onClick: Be[2] || (Be[2] = (...We) => o.value.cancel && o.value.cancel(...We))
29738
+ onClick: Fe[2] || (Fe[2] = (...We) => o.value.cancel && o.value.cancel(...We))
29733
29739
  }, He(o.value.cancelButtonText), 1),
29734
29740
  L("button", {
29735
29741
  type: "button",
29736
29742
  class: "inline-flex items-center px-3 py-2 text-sm font-semibold text-white bg-red-500 border border-transparent rounded-lg gap-x-2 hover:bg-red-600",
29737
- onClick: Be[3] || (Be[3] = (...We) => o.value.confirm && o.value.confirm(...We))
29743
+ onClick: Fe[3] || (Fe[3] = (...We) => o.value.confirm && o.value.confirm(...We))
29738
29744
  }, He(o.value.confirmButtonText), 1)
29739
29745
  ])
29740
29746
  ])
@@ -30283,7 +30289,7 @@ let hi = class N_ {
30283
30289
  hi.none = [];
30284
30290
  class hy extends Error {
30285
30291
  }
30286
- class Tt {
30292
+ class At {
30287
30293
  /**
30288
30294
  Create a slice. When specifying a non-zero open depth, you must
30289
30295
  make sure that there are nodes of at least that depth at the
@@ -30310,13 +30316,13 @@ class Tt {
30310
30316
  */
30311
30317
  insertAt(e, n) {
30312
30318
  let i = EM(this.content, e + this.openStart, n);
30313
- return i && new Tt(i, this.openStart, this.openEnd);
30319
+ return i && new At(i, this.openStart, this.openEnd);
30314
30320
  }
30315
30321
  /**
30316
30322
  @internal
30317
30323
  */
30318
30324
  removeBetween(e, n) {
30319
- return new Tt(SM(this.content, e + this.openStart, n + this.openStart), this.openStart, this.openEnd);
30325
+ return new At(SM(this.content, e + this.openStart, n + this.openStart), this.openStart, this.openEnd);
30320
30326
  }
30321
30327
  /**
30322
30328
  Tests whether this slice is equal to another slice.
@@ -30344,11 +30350,11 @@ class Tt {
30344
30350
  */
30345
30351
  static fromJSON(e, n) {
30346
30352
  if (!n)
30347
- return Tt.empty;
30353
+ return At.empty;
30348
30354
  let i = n.openStart || 0, r = n.openEnd || 0;
30349
30355
  if (typeof i != "number" || typeof r != "number")
30350
30356
  throw new RangeError("Invalid input for Slice.fromJSON");
30351
- return new Tt(Je.fromJSON(e, n.content), i, r);
30357
+ return new At(Je.fromJSON(e, n.content), i, r);
30352
30358
  }
30353
30359
  /**
30354
30360
  Create a slice from a fragment by taking the maximum possible
@@ -30360,10 +30366,10 @@ class Tt {
30360
30366
  i++;
30361
30367
  for (let s = e.lastChild; s && !s.isLeaf && (n || !s.type.spec.isolating); s = s.lastChild)
30362
30368
  r++;
30363
- return new Tt(e, i, r);
30369
+ return new At(e, i, r);
30364
30370
  }
30365
30371
  }
30366
- Tt.empty = new Tt(Je.empty, 0, 0);
30372
+ At.empty = new At(Je.empty, 0, 0);
30367
30373
  function SM(t, e, n) {
30368
30374
  let { index: i, offset: r } = t.findIndex(e), s = t.maybeChild(i), { index: a, offset: o } = t.findIndex(n);
30369
30375
  if (r == e || s.isText) {
@@ -30889,9 +30895,9 @@ let Zl = class F_ {
30889
30895
  */
30890
30896
  slice(e, n = this.content.size, i = !1) {
30891
30897
  if (e == n)
30892
- return Tt.empty;
30898
+ return At.empty;
30893
30899
  let r = this.resolve(e), s = this.resolve(n), a = i ? 0 : r.sharedDepth(n), o = r.start(a), m = r.node(a).content.cut(r.pos - o, s.pos - o);
30894
- return new Tt(m, r.depth - a, s.depth - a);
30900
+ return new At(m, r.depth - a, s.depth - a);
30895
30901
  }
30896
30902
  /**
30897
30903
  Replace the part of the document between the given positions with
@@ -31932,7 +31938,7 @@ let Xf = class $_ {
31932
31938
  */
31933
31939
  parseSlice(e, n = {}) {
31934
31940
  let i = new AE(this, n, !0);
31935
- return i.addAll(e, hi.none, n.from, n.to), Tt.maxOpen(i.finish());
31941
+ return i.addAll(e, hi.none, n.from, n.to), At.maxOpen(i.finish());
31936
31942
  }
31937
31943
  /**
31938
31944
  @internal
@@ -32906,7 +32912,7 @@ class jl extends Hr {
32906
32912
  super(), this.from = e, this.to = n, this.mark = i;
32907
32913
  }
32908
32914
  apply(e) {
32909
- let n = e.slice(this.from, this.to), i = e.resolve(this.from), r = i.node(i.sharedDepth(this.to)), s = new Tt(c1(n.content, (a, o) => !a.isAtom || !o.type.allowsMarkType(this.mark.type) ? a : a.mark(this.mark.addToSet(a.marks)), r), n.openStart, n.openEnd);
32915
+ let n = e.slice(this.from, this.to), i = e.resolve(this.from), r = i.node(i.sharedDepth(this.to)), s = new At(c1(n.content, (a, o) => !a.isAtom || !o.type.allowsMarkType(this.mark.type) ? a : a.mark(this.mark.addToSet(a.marks)), r), n.openStart, n.openEnd);
32910
32916
  return Wi.fromReplace(e, this.from, this.to, s);
32911
32917
  }
32912
32918
  invert() {
@@ -32945,7 +32951,7 @@ class ia extends Hr {
32945
32951
  super(), this.from = e, this.to = n, this.mark = i;
32946
32952
  }
32947
32953
  apply(e) {
32948
- let n = e.slice(this.from, this.to), i = new Tt(c1(n.content, (r) => r.mark(this.mark.removeFromSet(r.marks)), e), n.openStart, n.openEnd);
32954
+ let n = e.slice(this.from, this.to), i = new At(c1(n.content, (r) => r.mark(this.mark.removeFromSet(r.marks)), e), n.openStart, n.openEnd);
32949
32955
  return Wi.fromReplace(e, this.from, this.to, i);
32950
32956
  }
32951
32957
  invert() {
@@ -32988,7 +32994,7 @@ class Hl extends Hr {
32988
32994
  if (!n)
32989
32995
  return Wi.fail("No node at mark step's position");
32990
32996
  let i = n.type.create(n.attrs, null, this.mark.addToSet(n.marks));
32991
- return Wi.fromReplace(e, this.pos, this.pos + 1, new Tt(Je.from(i), 0, n.isLeaf ? 0 : 1));
32997
+ return Wi.fromReplace(e, this.pos, this.pos + 1, new At(Je.from(i), 0, n.isLeaf ? 0 : 1));
32992
32998
  }
32993
32999
  invert(e) {
32994
33000
  let n = e.nodeAt(this.pos);
@@ -33032,7 +33038,7 @@ class th extends Hr {
33032
33038
  if (!n)
33033
33039
  return Wi.fail("No node at mark step's position");
33034
33040
  let i = n.type.create(n.attrs, null, this.mark.removeFromSet(n.marks));
33035
- return Wi.fromReplace(e, this.pos, this.pos + 1, new Tt(Je.from(i), 0, n.isLeaf ? 0 : 1));
33041
+ return Wi.fromReplace(e, this.pos, this.pos + 1, new At(Je.from(i), 0, n.isLeaf ? 0 : 1));
33036
33042
  }
33037
33043
  invert(e) {
33038
33044
  let n = e.nodeAt(this.pos);
@@ -33085,10 +33091,10 @@ class or extends Hr {
33085
33091
  if (!(e instanceof or) || e.structure || this.structure)
33086
33092
  return null;
33087
33093
  if (this.from + this.slice.size == e.from && !this.slice.openEnd && !e.slice.openStart) {
33088
- let n = this.slice.size + e.slice.size == 0 ? Tt.empty : new Tt(this.slice.content.append(e.slice.content), this.slice.openStart, e.slice.openEnd);
33094
+ let n = this.slice.size + e.slice.size == 0 ? At.empty : new At(this.slice.content.append(e.slice.content), this.slice.openStart, e.slice.openEnd);
33089
33095
  return new or(this.from, this.to + (e.to - e.from), n, this.structure);
33090
33096
  } else if (e.to == this.from && !this.slice.openStart && !e.slice.openEnd) {
33091
- let n = this.slice.size + e.slice.size == 0 ? Tt.empty : new Tt(e.slice.content.append(this.slice.content), e.slice.openStart, this.slice.openEnd);
33097
+ let n = this.slice.size + e.slice.size == 0 ? At.empty : new At(e.slice.content.append(this.slice.content), e.slice.openStart, this.slice.openEnd);
33092
33098
  return new or(e.from, this.to, n, this.structure);
33093
33099
  } else
33094
33100
  return null;
@@ -33103,7 +33109,7 @@ class or extends Hr {
33103
33109
  static fromJSON(e, n) {
33104
33110
  if (typeof n.from != "number" || typeof n.to != "number")
33105
33111
  throw new RangeError("Invalid input for ReplaceStep.fromJSON");
33106
- return new or(n.from, n.to, Tt.fromJSON(e, n.slice), !!n.structure);
33112
+ return new or(n.from, n.to, At.fromJSON(e, n.slice), !!n.structure);
33107
33113
  }
33108
33114
  }
33109
33115
  Hr.jsonID("replace", or);
@@ -33161,7 +33167,7 @@ class ar extends Hr {
33161
33167
  static fromJSON(e, n) {
33162
33168
  if (typeof n.from != "number" || typeof n.to != "number" || typeof n.gapFrom != "number" || typeof n.gapTo != "number" || typeof n.insert != "number")
33163
33169
  throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");
33164
- return new ar(n.from, n.to, n.gapFrom, n.gapTo, Tt.fromJSON(e, n.slice), n.insert, !!n.structure);
33170
+ return new ar(n.from, n.to, n.gapFrom, n.gapTo, At.fromJSON(e, n.slice), n.insert, !!n.structure);
33165
33171
  }
33166
33172
  }
33167
33173
  Hr.jsonID("replaceAround", ar);
@@ -33223,7 +33229,7 @@ function u1(t, e, n, i = n.contentMatch, r = !0) {
33223
33229
  for (let f = 0; f < s.childCount; f++) {
33224
33230
  let m = s.child(f), g = o + m.nodeSize, _ = i.matchType(m.type);
33225
33231
  if (!_)
33226
- a.push(new or(o, g, Tt.empty));
33232
+ a.push(new or(o, g, At.empty));
33227
33233
  else {
33228
33234
  i = _;
33229
33235
  for (let k = 0; k < m.marks.length; k++)
@@ -33231,14 +33237,14 @@ function u1(t, e, n, i = n.contentMatch, r = !0) {
33231
33237
  if (r && m.isText && n.whitespace != "pre") {
33232
33238
  let k, C = /\r?\n|\r/g, M;
33233
33239
  for (; k = C.exec(m.text); )
33234
- M || (M = new Tt(Je.from(n.schema.text(" ", n.allowedMarks(m.marks))), 0, 0)), a.push(new or(o + k.index, o + k.index + k[0].length, M));
33240
+ M || (M = new At(Je.from(n.schema.text(" ", n.allowedMarks(m.marks))), 0, 0)), a.push(new or(o + k.index, o + k.index + k[0].length, M));
33235
33241
  }
33236
33242
  }
33237
33243
  o = g;
33238
33244
  }
33239
33245
  if (!i.validEnd) {
33240
33246
  let f = i.fillBefore(Je.empty, !0);
33241
- t.replace(o, o, new Tt(f, 0, 0));
33247
+ t.replace(o, o, new At(f, 0, 0));
33242
33248
  }
33243
33249
  for (let f = a.length - 1; f >= 0; f--)
33244
33250
  t.step(a[f]);
@@ -33264,7 +33270,7 @@ function U6(t, e, n) {
33264
33270
  let k = Je.empty, C = 0;
33265
33271
  for (let M = s, O = !1; M > n; M--)
33266
33272
  O || r.after(M + 1) < r.end(M) ? (O = !0, k = Je.from(r.node(M).copy(k)), C++) : m++;
33267
- t.step(new ar(f, m, a, o, new Tt(g.append(k), _, C), g.size - _, !0));
33273
+ t.step(new ar(f, m, a, o, new At(g.append(k), _, C), g.size - _, !0));
33268
33274
  }
33269
33275
  function d1(t, e, n = null, i = t) {
33270
33276
  let r = W6(t, e), s = r && q6(i, e);
@@ -33300,7 +33306,7 @@ function G6(t, e, n) {
33300
33306
  i = Je.from(n[a].type.create(n[a].attrs, i));
33301
33307
  }
33302
33308
  let r = e.start, s = e.end;
33303
- t.step(new ar(r, s, r, s, new Tt(i, 0, 0), n.length, !0));
33309
+ t.step(new ar(r, s, r, s, new At(i, 0, 0), n.length, !0));
33304
33310
  }
33305
33311
  function Y6(t, e, n, i, r) {
33306
33312
  if (!i.isTextblock)
@@ -33316,7 +33322,7 @@ function Y6(t, e, n, i, r) {
33316
33322
  }
33317
33323
  m === !1 && qM(t, a, o, s), u1(t, t.mapping.slice(s).map(o, 1), i, void 0, m === null);
33318
33324
  let g = t.mapping.slice(s), _ = g.map(o, 1), k = g.map(o + a.nodeSize, 1);
33319
- return t.step(new ar(_, k, _ + 1, k - 1, new Tt(Je.from(i.create(f, null, a.marks)), 0, 0), 1, !0)), m === !0 && WM(t, a, o, s), !1;
33325
+ return t.step(new ar(_, k, _ + 1, k - 1, new At(Je.from(i.create(f, null, a.marks)), 0, 0), 1, !0)), m === !0 && WM(t, a, o, s), !1;
33320
33326
  }
33321
33327
  });
33322
33328
  }
@@ -33354,7 +33360,7 @@ function X6(t, e, n, i, r) {
33354
33360
  return t.replaceWith(e, e + s.nodeSize, a);
33355
33361
  if (!n.validContent(s.content))
33356
33362
  throw new RangeError("Invalid content for node type " + n.name);
33357
- t.step(new ar(e, e + s.nodeSize, e + 1, e + s.nodeSize - 1, new Tt(Je.from(a), 0, 0), 1, !0));
33363
+ t.step(new ar(e, e + s.nodeSize, e + 1, e + s.nodeSize - 1, new At(Je.from(a), 0, 0), 1, !0));
33358
33364
  }
33359
33365
  function qd(t, e, n = 1, i) {
33360
33366
  let r = t.resolve(e), s = r.depth - n, a = i && i[i.length - 1] || r.parent;
@@ -33380,7 +33386,7 @@ function K6(t, e, n = 1, i) {
33380
33386
  let g = i && i[m];
33381
33387
  a = Je.from(g ? g.type.create(g.attrs, a) : r.node(o).copy(a));
33382
33388
  }
33383
- t.step(new or(e, e, new Tt(s.append(a), n, n), !0));
33389
+ t.step(new or(e, e, new At(s.append(a), n, n), !0));
33384
33390
  }
33385
33391
  function sc(t, e) {
33386
33392
  let n = t.resolve(e), i = n.index();
@@ -33423,7 +33429,7 @@ function Q6(t, e, n) {
33423
33429
  }
33424
33430
  a.inlineContent && u1(t, e + n - 1, a, s.node().contentMatchAt(s.index()), i == null);
33425
33431
  let f = t.mapping.slice(o), m = f.map(e - n);
33426
- if (t.step(new or(m, f.map(e + n, -1), Tt.empty, !0)), i === !0) {
33432
+ if (t.step(new or(m, f.map(e + n, -1), At.empty, !0)), i === !0) {
33427
33433
  let g = t.doc.resolve(m);
33428
33434
  WM(t, g.node(), g.before(), t.steps.length);
33429
33435
  }
@@ -33472,7 +33478,7 @@ function YM(t, e, n) {
33472
33478
  }
33473
33479
  return null;
33474
33480
  }
33475
- function f0(t, e, n = e, i = Tt.empty) {
33481
+ function f0(t, e, n = e, i = At.empty) {
33476
33482
  if (e == n && !i.size)
33477
33483
  return null;
33478
33484
  let r = t.resolve(e), s = t.resolve(n);
@@ -33508,7 +33514,7 @@ class tH {
33508
33514
  let s = this.placed, a = i.depth, o = r.depth;
33509
33515
  for (; a && o && s.childCount == 1; )
33510
33516
  s = s.firstChild.content, a--, o--;
33511
- let f = new Tt(s, a, o);
33517
+ let f = new At(s, a, o);
33512
33518
  return e > -1 ? new ar(i.pos, e, this.$to.pos, this.$to.end(), f, n) : f.size || i.pos != this.$to.pos ? new or(i.pos, r.pos, f) : null;
33513
33519
  }
33514
33520
  // Find a position on the start spine of `this.unplaced` that has
@@ -33542,15 +33548,15 @@ class tH {
33542
33548
  }
33543
33549
  openMore() {
33544
33550
  let { content: e, openStart: n, openEnd: i } = this.unplaced, r = Ab(e, n);
33545
- return !r.childCount || r.firstChild.isLeaf ? !1 : (this.unplaced = new Tt(e, n + 1, Math.max(i, r.size + n >= e.size - i ? n + 1 : 0)), !0);
33551
+ return !r.childCount || r.firstChild.isLeaf ? !1 : (this.unplaced = new At(e, n + 1, Math.max(i, r.size + n >= e.size - i ? n + 1 : 0)), !0);
33546
33552
  }
33547
33553
  dropNode() {
33548
33554
  let { content: e, openStart: n, openEnd: i } = this.unplaced, r = Ab(e, n);
33549
33555
  if (r.childCount <= 1 && n > 0) {
33550
33556
  let s = e.size - n <= n + r.size;
33551
- this.unplaced = new Tt($f(e, n - 1, 1), n - 1, s ? n - 1 : i);
33557
+ this.unplaced = new At($f(e, n - 1, 1), n - 1, s ? n - 1 : i);
33552
33558
  } else
33553
- this.unplaced = new Tt($f(e, n, 1), n, i);
33559
+ this.unplaced = new At($f(e, n, 1), n, i);
33554
33560
  }
33555
33561
  // Move content from the unplaced slice at `sliceDepth` to the
33556
33562
  // frontier node at `frontierDepth`. Close that frontier node when
@@ -33580,7 +33586,7 @@ class tH {
33580
33586
  let $ = z.lastChild;
33581
33587
  this.frontier.push({ type: $.type, match: $.contentMatchAt($.childCount) }), z = $.content;
33582
33588
  }
33583
- this.unplaced = M ? e == 0 ? Tt.empty : new Tt($f(a.content, e - 1, 1), e - 1, C < 0 ? a.openEnd : e - 1) : new Tt($f(a.content, e, m), a.openStart, a.openEnd);
33589
+ this.unplaced = M ? e == 0 ? At.empty : new At($f(a.content, e - 1, 1), e - 1, C < 0 ? a.openEnd : e - 1) : new At($f(a.content, e, m), a.openStart, a.openEnd);
33584
33590
  }
33585
33591
  mustMoveInline() {
33586
33592
  if (!this.$to.parent.isTextblock)
@@ -33699,7 +33705,7 @@ function rH(t, e, n, i) {
33699
33705
  z < 0 && ($ = !1, z = -z);
33700
33706
  let q = r.node(z - 1), K = r.index(z - 1);
33701
33707
  if (q.canReplaceWith(K, K, M.type, M.marks))
33702
- return t.replace(r.before(z), $ ? s.after(z) : n, new Tt(KM(i.content, 0, i.openStart, C), C, i.openEnd));
33708
+ return t.replace(r.before(z), $ ? s.after(z) : n, new At(KM(i.content, 0, i.openStart, C), C, i.openEnd));
33703
33709
  }
33704
33710
  }
33705
33711
  let _ = t.steps.length;
@@ -33724,7 +33730,7 @@ function sH(t, e, n, i) {
33724
33730
  let r = eH(t.doc, e, i.type);
33725
33731
  r != null && (e = n = r);
33726
33732
  }
33727
- t.replaceRange(e, n, new Tt(Je.from(i), 0, 0));
33733
+ t.replaceRange(e, n, new At(Je.from(i), 0, 0));
33728
33734
  }
33729
33735
  function oH(t, e, n) {
33730
33736
  let i = t.doc.resolve(e), r = t.doc.resolve(n), s = JM(i, r);
@@ -33766,7 +33772,7 @@ class Gd extends Hr {
33766
33772
  i[s] = n.attrs[s];
33767
33773
  i[this.attr] = this.value;
33768
33774
  let r = n.type.create(i, null, n.marks);
33769
- return Wi.fromReplace(e, this.pos, this.pos + 1, new Tt(Je.from(r), 0, n.isLeaf ? 0 : 1));
33775
+ return Wi.fromReplace(e, this.pos, this.pos + 1, new At(Je.from(r), 0, n.isLeaf ? 0 : 1));
33770
33776
  }
33771
33777
  getMap() {
33772
33778
  return Ls.empty;
@@ -33879,7 +33885,7 @@ class aH {
33879
33885
  Replace the part of the document between `from` and `to` with the
33880
33886
  given `slice`.
33881
33887
  */
33882
- replace(e, n = e, i = Tt.empty) {
33888
+ replace(e, n = e, i = At.empty) {
33883
33889
  let r = f0(this.doc, e, n, i);
33884
33890
  return r && this.step(r), this;
33885
33891
  }
@@ -33888,13 +33894,13 @@ class aH {
33888
33894
  fragment, node, or array of nodes.
33889
33895
  */
33890
33896
  replaceWith(e, n, i) {
33891
- return this.replace(e, n, new Tt(Je.from(i), 0, 0));
33897
+ return this.replace(e, n, new At(Je.from(i), 0, 0));
33892
33898
  }
33893
33899
  /**
33894
33900
  Delete the content between the given positions.
33895
33901
  */
33896
33902
  delete(e, n) {
33897
- return this.replace(e, n, Tt.empty);
33903
+ return this.replace(e, n, At.empty);
33898
33904
  }
33899
33905
  /**
33900
33906
  Insert the given content at the given position.
@@ -34117,14 +34123,14 @@ class bn {
34117
34123
  Replace the selection with a slice or, if no slice is given,
34118
34124
  delete the selection. Will append to the given transaction.
34119
34125
  */
34120
- replace(e, n = Tt.empty) {
34126
+ replace(e, n = At.empty) {
34121
34127
  let i = n.content.lastChild, r = null;
34122
34128
  for (let o = 0; o < n.openEnd; o++)
34123
34129
  r = i, i = i.lastChild;
34124
34130
  let s = e.steps.length, a = this.ranges;
34125
34131
  for (let o = 0; o < a.length; o++) {
34126
34132
  let { $from: f, $to: m } = a[o], g = e.mapping.slice(s);
34127
- e.replaceRange(g.map(f.pos), g.map(m.pos), o ? Tt.empty : n), o == 0 && NE(e, s, (i ? i.isInline : r && r.isTextblock) ? -1 : 1);
34133
+ e.replaceRange(g.map(f.pos), g.map(m.pos), o ? At.empty : n), o == 0 && NE(e, s, (i ? i.isInline : r && r.isTextblock) ? -1 : 1);
34128
34134
  }
34129
34135
  }
34130
34136
  /**
@@ -34250,8 +34256,8 @@ class un extends bn {
34250
34256
  let r = e.resolve(n.map(this.anchor));
34251
34257
  return new un(r.parent.inlineContent ? r : i, i);
34252
34258
  }
34253
- replace(e, n = Tt.empty) {
34254
- if (super.replace(e, n), n == Tt.empty) {
34259
+ replace(e, n = At.empty) {
34260
+ if (super.replace(e, n), n == At.empty) {
34255
34261
  let i = this.$from.marksAcross(this.$to);
34256
34262
  i && e.ensureMarks(i);
34257
34263
  }
@@ -34326,7 +34332,7 @@ class en extends bn {
34326
34332
  return i ? bn.near(s) : new en(s);
34327
34333
  }
34328
34334
  content() {
34329
- return new Tt(Je.from(this.node), 0, 0);
34335
+ return new At(Je.from(this.node), 0, 0);
34330
34336
  }
34331
34337
  eq(e) {
34332
34338
  return e instanceof en && e.anchor == this.anchor;
@@ -34381,8 +34387,8 @@ class Mo extends bn {
34381
34387
  constructor(e) {
34382
34388
  super(e.resolve(0), e.resolve(e.content.size));
34383
34389
  }
34384
- replace(e, n = Tt.empty) {
34385
- if (n == Tt.empty) {
34390
+ replace(e, n = At.empty) {
34391
+ if (n == At.empty) {
34386
34392
  e.delete(0, e.doc.content.size);
34387
34393
  let i = bn.atStart(e.doc);
34388
34394
  i.eq(e.selection) || e.setSelection(i);
@@ -36722,8 +36728,8 @@ function bD(t, e, n, i, r) {
36722
36728
  if (t.someProp("transformPastedText", (k) => {
36723
36729
  e = k(e, s || i, t);
36724
36730
  }), s)
36725
- return e ? new Tt(Je.from(t.state.schema.text(e.replace(/\r\n?/g, `
36726
- `))), 0, 0) : Tt.empty;
36731
+ return e ? new At(Je.from(t.state.schema.text(e.replace(/\r\n?/g, `
36732
+ `))), 0, 0) : At.empty;
36727
36733
  let _ = t.someProp("clipboardTextParser", (k) => k(e, r, i, t));
36728
36734
  if (_)
36729
36735
  o = _;
@@ -36756,7 +36762,7 @@ function bD(t, e, n, i, r) {
36756
36762
  }
36757
36763
  })), g)
36758
36764
  o = o8(aC(o, +g[1], +g[2]), g[4]);
36759
- else if (o = Tt.maxOpen(n8(o.content, r), !0), o.openStart || o.openEnd) {
36765
+ else if (o = At.maxOpen(n8(o.content, r), !0), o.openStart || o.openEnd) {
36760
36766
  let _ = 0, k = 0;
36761
36767
  for (let C = o.content.firstChild; _ < o.openStart && !C.type.spec.isolating; _++, C = C.firstChild)
36762
36768
  ;
@@ -36817,7 +36823,7 @@ function J_(t, e, n, i, r, s) {
36817
36823
  return t.childCount > 1 && (s = 0), r < i - 1 && (o = J_(o, e, n, i, r + 1, s)), r >= n && (o = e < 0 ? a.contentMatchAt(0).fillBefore(o, s <= r).append(o) : o.append(a.contentMatchAt(a.childCount).fillBefore(Je.empty, !0))), t.replaceChild(e < 0 ? 0 : t.childCount - 1, a.copy(o));
36818
36824
  }
36819
36825
  function aC(t, e, n) {
36820
- return e < t.openStart && (t = new Tt(J_(t.content, -1, e, t.openStart, 0, t.openEnd), e, t.openEnd)), n < t.openEnd && (t = new Tt(J_(t.content, 1, n, t.openEnd, 0, 0), t.openStart, n)), t;
36826
+ return e < t.openStart && (t = new At(J_(t.content, -1, e, t.openStart, 0, t.openEnd), e, t.openEnd)), n < t.openEnd && (t = new At(J_(t.content, 1, n, t.openEnd, 0, 0), t.openStart, n)), t;
36821
36827
  }
36822
36828
  const kD = {
36823
36829
  thead: ["table"],
@@ -36871,7 +36877,7 @@ function o8(t, e) {
36871
36877
  break;
36872
36878
  r = Je.from(f.create(i[o + 1], r)), s++, a++;
36873
36879
  }
36874
- return new Tt(r, s, a);
36880
+ return new At(r, s, a);
36875
36881
  }
36876
36882
  const ns = {}, is = {}, a8 = { touchstart: !0, touchmove: !0 };
36877
36883
  class l8 {
@@ -37187,7 +37193,7 @@ function C8(t, e) {
37187
37193
  }
37188
37194
  function vp(t, e, n, i, r) {
37189
37195
  let s = bD(t, e, n, i, t.state.selection.$from);
37190
- if (t.someProp("handlePaste", (f) => f(t, r, s || Tt.empty)))
37196
+ if (t.someProp("handlePaste", (f) => f(t, r, s || At.empty)))
37191
37197
  return !0;
37192
37198
  if (!s)
37193
37199
  return !1;
@@ -37249,7 +37255,7 @@ is.drop = (t, e) => {
37249
37255
  a = M(a, t);
37250
37256
  }) : a = bD(t, MD(n.dataTransfer), yp ? null : n.dataTransfer.getData("text/html"), !1, s);
37251
37257
  let o = !!(i && !n[ID]);
37252
- if (t.someProp("handleDrop", (M) => M(t, n, a || Tt.empty, o))) {
37258
+ if (t.someProp("handleDrop", (M) => M(t, n, a || At.empty, o))) {
37253
37259
  n.preventDefault();
37254
37260
  return;
37255
37261
  }
@@ -38049,11 +38055,11 @@ const B8 = /^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|df
38049
38055
  function F8(t, e, n, i, r) {
38050
38056
  let s = t.input.compositionPendingChanges || (t.composing ? t.input.compositionID : 0);
38051
38057
  if (t.input.compositionPendingChanges = 0, e < 0) {
38052
- let ke = t.input.lastSelectionTime > Date.now() - 50 ? t.input.lastSelectionOrigin : null, Be = p1(t, ke);
38053
- if (Be && !t.state.selection.eq(Be)) {
38058
+ let ke = t.input.lastSelectionTime > Date.now() - 50 ? t.input.lastSelectionOrigin : null, Fe = p1(t, ke);
38059
+ if (Fe && !t.state.selection.eq(Fe)) {
38054
38060
  if (Vr && Za && t.input.lastKeyCode === 13 && Date.now() - 100 < t.input.lastKeyCodeTime && t.someProp("handleKeyDown", (We) => We(t, Jc(13, "Enter"))))
38055
38061
  return;
38056
- let Ge = t.state.tr.setSelection(Be);
38062
+ let Ge = t.state.tr.setSelection(Fe);
38057
38063
  ke == "pointer" ? Ge.setMeta("pointer", !0) : ke == "key" && Ge.scrollIntoView(), s && Ge.setMeta("composition", s), t.dispatch(Ge);
38058
38064
  }
38059
38065
  return;
@@ -38074,8 +38080,8 @@ function F8(t, e, n, i, r) {
38074
38080
  if (m.sel) {
38075
38081
  let ke = fC(t, t.state.doc, m.sel);
38076
38082
  if (ke && !ke.eq(t.state.selection)) {
38077
- let Be = t.state.tr.setSelection(ke);
38078
- s && Be.setMeta("composition", s), t.dispatch(Be);
38083
+ let Fe = t.state.tr.setSelection(ke);
38084
+ s && Fe.setMeta("composition", s), t.dispatch(Fe);
38079
38085
  }
38080
38086
  }
38081
38087
  return;
@@ -38106,7 +38112,7 @@ function F8(t, e, n, i, r) {
38106
38112
  be = t.state.tr, $e.type == "add" ? be.addMark(Z, ge, $e.mark) : be.removeMark(Z, ge, $e.mark);
38107
38113
  else if (O.parent.child(O.index()).isText && O.index() == z.index() - (z.textOffset ? 0 : 1)) {
38108
38114
  let ke = O.parent.textBetween(O.parentOffset, z.parentOffset);
38109
- if (t.someProp("handleTextInput", (Be) => Be(t, Z, ge, ke)))
38115
+ if (t.someProp("handleTextInput", (Fe) => Fe(t, Z, ge, ke)))
38110
38116
  return;
38111
38117
  be = t.state.tr.insertText(ke, Z, ge);
38112
38118
  }
@@ -38729,7 +38735,7 @@ const eU = (t, e, n) => {
38729
38735
  return !0;
38730
38736
  if (i.parent.content.size == 0 && (rh(s, "end") || en.isSelectable(s)))
38731
38737
  for (let a = i.depth; ; a--) {
38732
- let o = f0(t.doc, i.before(a), i.after(a), Tt.empty);
38738
+ let o = f0(t.doc, i.before(a), i.after(a), At.empty);
38733
38739
  if (o && o.slice.size < o.to - o.from) {
38734
38740
  if (e) {
38735
38741
  let f = t.tr.step(o);
@@ -38773,7 +38779,7 @@ function ND(t, e, n) {
38773
38779
  return !1;
38774
38780
  o = g;
38775
38781
  }
38776
- let m = f0(t.doc, s, f, Tt.empty);
38782
+ let m = f0(t.doc, s, f, At.empty);
38777
38783
  if (!m || m.from != s || m instanceof or && m.slice.size >= f - s)
38778
38784
  return !1;
38779
38785
  if (n) {
@@ -38828,7 +38834,7 @@ const rU = (t, e, n) => {
38828
38834
  if ($D(t, r, e, 1))
38829
38835
  return !0;
38830
38836
  if (i.parent.content.size == 0 && (rh(s, "start") || en.isSelectable(s))) {
38831
- let a = f0(t.doc, i.before(), i.after(), Tt.empty);
38837
+ let a = f0(t.doc, i.before(), i.after(), At.empty);
38832
38838
  if (a && a.slice.size < a.to - a.from) {
38833
38839
  if (e) {
38834
38840
  let o = t.tr.step(a);
@@ -38953,7 +38959,7 @@ function $D(t, e, n, i) {
38953
38959
  for (let $ = a.length - 1; $ >= 0; $--)
38954
38960
  M = Je.from(a[$].create(null, M));
38955
38961
  M = Je.from(r.copy(M));
38956
- let O = t.tr.step(new ar(e.pos - 1, C, e.pos, C, new Tt(M, 1, 0), a.length, !0)), z = O.doc.resolve(C + 2 * a.length);
38962
+ let O = t.tr.step(new ar(e.pos - 1, C, e.pos, C, new At(M, 1, 0), a.length, !0)), z = O.doc.resolve(C + 2 * a.length);
38957
38963
  z.nodeAfter && z.nodeAfter.type == r.type && sc(O.doc, z.pos) && O.join(z.pos), n(O.scrollIntoView());
38958
38964
  }
38959
38965
  return !0;
@@ -38973,7 +38979,7 @@ function $D(t, e, n, i) {
38973
38979
  let $ = Je.empty;
38974
38980
  for (let K = M.length - 1; K >= 0; K--)
38975
38981
  $ = Je.from(M[K].copy($));
38976
- let q = t.tr.step(new ar(e.pos - M.length, e.pos + s.nodeSize, e.pos + z, e.pos + s.nodeSize - z, new Tt($, M.length, 0), 0, !0));
38982
+ let q = t.tr.step(new ar(e.pos - M.length, e.pos + s.nodeSize, e.pos + z, e.pos + s.nodeSize - z, new At($, M.length, 0), 0, !0));
38977
38983
  n(q.scrollIntoView());
38978
38984
  }
38979
38985
  return !0;
@@ -39054,7 +39060,7 @@ function _U(t, e, n, i, r) {
39054
39060
  let s = Je.empty;
39055
39061
  for (let g = n.length - 1; g >= 0; g--)
39056
39062
  s = Je.from(n[g].type.create(n[g].attrs, s));
39057
- t.step(new ar(e.start - (i ? 2 : 0), e.end, e.start, e.end, new Tt(s, 0, 0), n.length, !0));
39063
+ t.step(new ar(e.start - (i ? 2 : 0), e.end, e.start, e.end, new At(s, 0, 0), n.length, !0));
39058
39064
  let a = 0;
39059
39065
  for (let g = 0; g < n.length; g++)
39060
39066
  n[g].type == r && (a = g + 1);
@@ -39071,7 +39077,7 @@ function xU(t) {
39071
39077
  }
39072
39078
  function wU(t, e, n, i) {
39073
39079
  let r = t.tr, s = i.end, a = i.$to.end(i.depth);
39074
- s < a && (r.step(new ar(s - 1, a, s, a, new Tt(Je.from(n.create(null, i.parent.copy())), 1, 0), 1, !0)), i = new py(r.doc.resolve(i.$from.pos), r.doc.resolve(a), i.depth));
39080
+ s < a && (r.step(new ar(s - 1, a, s, a, new At(Je.from(n.create(null, i.parent.copy())), 1, 0), 1, !0)), i = new py(r.doc.resolve(i.$from.pos), r.doc.resolve(a), i.depth));
39075
39081
  const o = _h(i);
39076
39082
  if (o == null)
39077
39083
  return !1;
@@ -39090,7 +39096,7 @@ function kU(t, e, n) {
39090
39096
  if (!m.canReplace(g + (o ? 0 : 1), g + 1, a.content.append(f ? Je.empty : Je.from(r))))
39091
39097
  return !1;
39092
39098
  let _ = s.pos, k = _ + a.nodeSize;
39093
- return i.step(new ar(_ - (o ? 1 : 0), k + (f ? 1 : 0), _ + 1, k - 1, new Tt((o ? Je.empty : Je.from(r.copy(Je.empty))).append(f ? Je.empty : Je.from(r.copy(Je.empty))), o ? 0 : 1, f ? 0 : 1), o ? 0 : 1)), e(i.scrollIntoView()), !0;
39099
+ return i.step(new ar(_ - (o ? 1 : 0), k + (f ? 1 : 0), _ + 1, k - 1, new At((o ? Je.empty : Je.from(r.copy(Je.empty))).append(f ? Je.empty : Je.from(r.copy(Je.empty))), o ? 0 : 1, f ? 0 : 1), o ? 0 : 1)), e(i.scrollIntoView()), !0;
39094
39100
  }
39095
39101
  function SU(t) {
39096
39102
  return function(e, n) {
@@ -39104,7 +39110,7 @@ function SU(t) {
39104
39110
  if (f.type != t)
39105
39111
  return !1;
39106
39112
  if (n) {
39107
- let m = f.lastChild && f.lastChild.type == o.type, g = Je.from(m ? t.create() : null), _ = new Tt(Je.from(t.create(null, Je.from(o.type.create(null, g)))), m ? 3 : 1, 0), k = s.start, C = s.end;
39113
+ let m = f.lastChild && f.lastChild.type == o.type, g = Je.from(m ? t.create() : null), _ = new At(Je.from(t.create(null, Je.from(o.type.create(null, g)))), m ? 3 : 1, 0), k = s.start, C = s.end;
39108
39114
  n(e.tr.step(new ar(k - (m ? 3 : 1), C, k, C, _, 1, !0)).scrollIntoView());
39109
39115
  }
39110
39116
  return !0;
@@ -40711,7 +40717,7 @@ const HW = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: i, edit
40711
40717
  }, ge = ((a = o.contentMatch.defaultType) === null || a === void 0 ? void 0 : a.createAndFill(Z)) || void 0;
40712
40718
  $ = $.append(Je.from(o.createAndFill(null, ge) || void 0));
40713
40719
  const be = f.before(f.depth - (q - 1));
40714
- n.replace(be, f.after(-K), new Tt($, 4 - q, 0));
40720
+ n.replace(be, f.after(-K), new At($, 4 - q, 0));
40715
40721
  let Ce = -1;
40716
40722
  n.doc.nodesBetween(be, n.doc.content.size, ($e, ke) => {
40717
40723
  if (Ce > -1)
@@ -42037,11 +42043,11 @@ function DC(t) {
42037
42043
  }
42038
42044
  if (r === _s || (r === bs || r === fo) && s === wp) {
42039
42045
  K = po;
42040
- var Be = _ && be === ge && ge.visualViewport ? ge.visualViewport.width : (
42046
+ var Fe = _ && be === ge && ge.visualViewport ? ge.visualViewport.width : (
42041
42047
  // $FlowFixMe[prop-missing]
42042
42048
  be[$e]
42043
42049
  );
42044
- C -= Be - i.width, C *= f ? 1 : -1;
42050
+ C -= Fe - i.width, C *= f ? 1 : -1;
42045
42051
  }
42046
42052
  }
42047
42053
  var Ge = Object.assign({
@@ -42262,7 +42268,7 @@ function kp(t, e) {
42262
42268
  element: K,
42263
42269
  strategy: "absolute",
42264
42270
  placement: r
42265
- }), $e = ox(Object.assign({}, K, Ce)), ke = k === Lf ? $e : be, Be = {
42271
+ }), $e = ox(Object.assign({}, K, Ce)), ke = k === Lf ? $e : be, Fe = {
42266
42272
  top: ge.top - ke.top + $.top,
42267
42273
  bottom: ke.bottom - ge.bottom + $.bottom,
42268
42274
  left: ge.left - ke.left + $.left,
@@ -42270,12 +42276,12 @@ function kp(t, e) {
42270
42276
  }, Ge = t.modifiersData.offset;
42271
42277
  if (k === Lf && Ge) {
42272
42278
  var We = Ge[r];
42273
- Object.keys(Be).forEach(function(Ze) {
42279
+ Object.keys(Fe).forEach(function(Ze) {
42274
42280
  var pe = [po, fo].indexOf(Ze) >= 0 ? 1 : -1, _t = [bs, fo].indexOf(Ze) >= 0 ? "y" : "x";
42275
- Be[Ze] += We[_t] * pe;
42281
+ Fe[Ze] += We[_t] * pe;
42276
42282
  });
42277
42283
  }
42278
- return Be;
42284
+ return Fe;
42279
42285
  }
42280
42286
  function Yq(t, e) {
42281
42287
  e === void 0 && (e = {});
@@ -42315,8 +42321,8 @@ function Xq(t) {
42315
42321
  flipVariations: M,
42316
42322
  allowedAutoPlacements: O
42317
42323
  }) : An);
42318
- }, []), ge = e.rects.reference, be = e.rects.popper, Ce = /* @__PURE__ */ new Map(), $e = !0, ke = Z[0], Be = 0; Be < Z.length; Be++) {
42319
- var Ge = Z[Be], We = ra(Ge), Ze = uh(Ge) === ah, pe = [bs, fo].indexOf(We) >= 0, _t = pe ? "width" : "height", Ft = kp(e, {
42324
+ }, []), ge = e.rects.reference, be = e.rects.popper, Ce = /* @__PURE__ */ new Map(), $e = !0, ke = Z[0], Fe = 0; Fe < Z.length; Fe++) {
42325
+ var Ge = Z[Fe], We = ra(Ge), Ze = uh(Ge) === ah, pe = [bs, fo].indexOf(We) >= 0, _t = pe ? "width" : "height", Ft = kp(e, {
42320
42326
  placement: Ge,
42321
42327
  boundary: g,
42322
42328
  rootBoundary: _,
@@ -42452,7 +42458,7 @@ function o7(t) {
42452
42458
  altBoundary: g
42453
42459
  }), $ = ra(e.placement), q = uh(e.placement), K = !q, Z = O1($), ge = s7(Z), be = e.modifiersData.popperOffsets, Ce = e.rects.reference, $e = e.rects.popper, ke = typeof O == "function" ? O(Object.assign({}, e.rects, {
42454
42460
  placement: e.placement
42455
- })) : O, Be = typeof ke == "number" ? {
42461
+ })) : O, Fe = typeof ke == "number" ? {
42456
42462
  mainAxis: ke,
42457
42463
  altAxis: ke
42458
42464
  } : Object.assign({
@@ -42467,11 +42473,11 @@ function o7(t) {
42467
42473
  var Ze, pe = Z === "y" ? bs : _s, _t = Z === "y" ? fo : po, Ft = Z === "y" ? "height" : "width", $t = be[Z], Ut = $t + z[pe], dn = $t - z[_t], rn = C ? -$e[Ft] / 2 : 0, _n = q === ah ? Ce[Ft] : $e[Ft], pn = q === ah ? -$e[Ft] : -Ce[Ft], ii = e.elements.arrow, Ln = C && ii ? R1(ii) : {
42468
42474
  width: 0,
42469
42475
  height: 0
42470
- }, An = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : rI(), Nn = An[pe], Pe = An[_t], Qe = ep(0, Ce[Ft], Ln[Ft]), st = K ? Ce[Ft] / 2 - rn - Qe - Nn - Be.mainAxis : _n - Qe - Nn - Be.mainAxis, wt = K ? -Ce[Ft] / 2 + rn + Qe + Pe + Be.mainAxis : pn + Qe + Pe + Be.mainAxis, sn = e.elements.arrow && Hp(e.elements.arrow), En = sn ? Z === "y" ? sn.clientTop || 0 : sn.clientLeft || 0 : 0, Zt = (Ze = Ge == null ? void 0 : Ge[Z]) != null ? Ze : 0, qt = $t + st - Zt - En, Mn = $t + wt - Zt, De = ep(C ? Sy(Ut, qt) : Ut, $t, C ? pu(dn, Mn) : dn);
42476
+ }, An = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : rI(), Nn = An[pe], Pe = An[_t], Qe = ep(0, Ce[Ft], Ln[Ft]), st = K ? Ce[Ft] / 2 - rn - Qe - Nn - Fe.mainAxis : _n - Qe - Nn - Fe.mainAxis, wt = K ? -Ce[Ft] / 2 + rn + Qe + Pe + Fe.mainAxis : pn + Qe + Pe + Fe.mainAxis, sn = e.elements.arrow && Hp(e.elements.arrow), En = sn ? Z === "y" ? sn.clientTop || 0 : sn.clientLeft || 0 : 0, Zt = (Ze = Ge == null ? void 0 : Ge[Z]) != null ? Ze : 0, qt = $t + st - Zt - En, Mn = $t + wt - Zt, De = ep(C ? Sy(Ut, qt) : Ut, $t, C ? pu(dn, Mn) : dn);
42471
42477
  be[Z] = De, We[Z] = De - $t;
42472
42478
  }
42473
42479
  if (o) {
42474
- var Zn, Gs = Z === "x" ? bs : _s, xn = Z === "x" ? fo : po, Rn = be[ge], Er = ge === "y" ? "height" : "width", Cr = Rn + z[Gs], qi = Rn - z[xn], rs = [bs, _s].indexOf($) !== -1, Gi = (Zn = Ge == null ? void 0 : Ge[ge]) != null ? Zn : 0, Ys = rs ? Cr : Rn - Ce[Er] - $e[Er] - Gi + Be.altAxis, Zs = rs ? Rn + Ce[Er] + $e[Er] - Gi - Be.altAxis : qi, Ke = C && rs ? Dq(Ys, Rn, Zs) : ep(C ? Ys : Cr, Rn, C ? Zs : qi);
42480
+ var Zn, Gs = Z === "x" ? bs : _s, xn = Z === "x" ? fo : po, Rn = be[ge], Er = ge === "y" ? "height" : "width", Cr = Rn + z[Gs], qi = Rn - z[xn], rs = [bs, _s].indexOf($) !== -1, Gi = (Zn = Ge == null ? void 0 : Ge[ge]) != null ? Zn : 0, Ys = rs ? Cr : Rn - Ce[Er] - $e[Er] - Gi + Fe.altAxis, Zs = rs ? Rn + Ce[Er] + $e[Er] - Gi - Fe.altAxis : qi, Ke = C && rs ? Dq(Ys, Rn, Zs) : ep(C ? Ys : Cr, Rn, C ? Zs : qi);
42475
42481
  be[ge] = Ke, We[ge] = Ke - Rn;
42476
42482
  }
42477
42483
  e.modifiersData[i] = We;
@@ -42616,8 +42622,8 @@ function g7(t) {
42616
42622
  g.rects = {
42617
42623
  reference: d7(q, Hp(K), g.options.strategy === "fixed"),
42618
42624
  popper: R1(K)
42619
- }, g.reset = !1, g.placement = g.options.placement, g.orderedModifiers.forEach(function(Be) {
42620
- return g.modifiersData[Be.name] = Object.assign({}, Be.data);
42625
+ }, g.reset = !1, g.placement = g.options.placement, g.orderedModifiers.forEach(function(Fe) {
42626
+ return g.modifiersData[Fe.name] = Object.assign({}, Fe.data);
42621
42627
  });
42622
42628
  for (var Z = 0; Z < g.orderedModifiers.length; Z++) {
42623
42629
  if (g.reset === !0) {
@@ -43083,12 +43089,12 @@ function q7(t, e) {
43083
43089
  }), be.addEventListener("mouseleave", function() {
43084
43090
  Z.props.interactive && Z.props.trigger.indexOf("mouseenter") >= 0 && pe().addEventListener("mousemove", M);
43085
43091
  }), Z;
43086
- function Be() {
43092
+ function Fe() {
43087
43093
  var Me = Z.props.touch;
43088
43094
  return Array.isArray(Me) ? Me : [Me, 0];
43089
43095
  }
43090
43096
  function Ge() {
43091
- return Be()[0] === "hold";
43097
+ return Fe()[0] === "hold";
43092
43098
  }
43093
43099
  function We() {
43094
43100
  var Me;
@@ -43346,7 +43352,7 @@ function q7(t, e) {
43346
43352
  }
43347
43353
  function Cr(Me) {
43348
43354
  Z.clearDelayTimeouts(), Me && Ut("onTrigger", [Z, Me]), An();
43349
- var Ue = Ft(!0), Lt = Be(), hn = Lt[0], dt = Lt[1];
43355
+ var Ue = Ft(!0), Lt = Fe(), hn = Lt[0], dt = Lt[1];
43350
43356
  Jo.isTouch && hn === "hold" && dt && (Ue = dt), Ue ? i = setTimeout(function() {
43351
43357
  Z.show();
43352
43358
  }, Ue) : Z.show();
@@ -44339,7 +44345,7 @@ class Oi extends bn {
44339
44345
  return Oi.valid(i) ? new Oi(i) : bn.near(i);
44340
44346
  }
44341
44347
  content() {
44342
- return Tt.empty;
44348
+ return At.empty;
44343
44349
  }
44344
44350
  eq(e) {
44345
44351
  return e instanceof Oi && e.head == this.head;
@@ -44511,7 +44517,7 @@ function _G(t, e) {
44511
44517
  let r = Je.empty;
44512
44518
  for (let a = i.length - 1; a >= 0; a--)
44513
44519
  r = Je.from(i[a].createAndFill(null, r));
44514
- let s = t.state.tr.replace(n.pos, n.pos, new Tt(r, 0, 0));
44520
+ let s = t.state.tr.replace(n.pos, n.pos, new At(r, 0, 0));
44515
44521
  return s.setSelection(un.near(s.doc.resolve(n.pos + 1))), t.dispatch(s), !1;
44516
44522
  }
44517
44523
  function xG(t) {
@@ -45397,10 +45403,10 @@ function QG({ pluginKey: t = JG, editor: e, char: n = "@", allowSpaces: i = !1,
45397
45403
  return {
45398
45404
  update: async (z, $) => {
45399
45405
  var q, K, Z, ge, be, Ce, $e;
45400
- const ke = (q = this.key) === null || q === void 0 ? void 0 : q.getState($), Be = (K = this.key) === null || K === void 0 ? void 0 : K.getState(z.state), Ge = ke.active && Be.active && ke.range.from !== Be.range.from, We = !ke.active && Be.active, Ze = ke.active && !Be.active, pe = !We && !Ze && ke.query !== Be.query, _t = We || Ge && pe, Ft = pe || Ge, $t = Ze || Ge && pe;
45406
+ const ke = (q = this.key) === null || q === void 0 ? void 0 : q.getState($), Fe = (K = this.key) === null || K === void 0 ? void 0 : K.getState(z.state), Ge = ke.active && Fe.active && ke.range.from !== Fe.range.from, We = !ke.active && Fe.active, Ze = ke.active && !Fe.active, pe = !We && !Ze && ke.query !== Fe.query, _t = We || Ge && pe, Ft = pe || Ge, $t = Ze || Ge && pe;
45401
45407
  if (!_t && !Ft && !$t)
45402
45408
  return;
45403
- const Ut = $t && !_t ? ke : Be, dn = z.dom.querySelector(`[data-decoration-id="${Ut.decorationId}"]`);
45409
+ const Ut = $t && !_t ? ke : Fe, dn = z.dom.querySelector(`[data-decoration-id="${Ut.decorationId}"]`);
45404
45410
  C = {
45405
45411
  editor: e,
45406
45412
  range: Ut.range,
@@ -45450,19 +45456,19 @@ function QG({ pluginKey: t = JG, editor: e, char: n = "@", allowSpaces: i = !1,
45450
45456
  const { isEditable: Z } = e, { composing: ge } = e.view, { selection: be } = z, { empty: Ce, from: $e } = be, ke = { ...$ };
45451
45457
  if (ke.composing = ge, Z && (Ce || e.view.composing)) {
45452
45458
  ($e < $.range.from || $e > $.range.to) && !ge && !$.composing && (ke.active = !1);
45453
- const Be = k({
45459
+ const Fe = k({
45454
45460
  char: n,
45455
45461
  allowSpaces: i,
45456
45462
  allowedPrefixes: r,
45457
45463
  startOfLine: s,
45458
45464
  $position: be.$from
45459
45465
  }), Ge = `id_${Math.floor(Math.random() * 4294967295)}`;
45460
- Be && _({
45466
+ Fe && _({
45461
45467
  editor: e,
45462
45468
  state: K,
45463
- range: Be.range,
45469
+ range: Fe.range,
45464
45470
  isActive: $.active
45465
- }) ? (ke.active = !0, ke.decorationId = $.decorationId ? $.decorationId : Ge, ke.range = Be.range, ke.query = Be.query, ke.text = Be.text) : ke.active = !1;
45471
+ }) ? (ke.active = !0, ke.decorationId = $.decorationId ? $.decorationId : Ge, ke.range = Fe.range, ke.query = Fe.query, ke.text = Fe.text) : ke.active = !1;
45466
45472
  } else
45467
45473
  ke.active = !1;
45468
45474
  return ke.active || (ke.decorationId = null, ke.range = { from: 0, to: 0 }, ke.query = null, ke.text = null), ke;
@@ -45882,9 +45888,9 @@ function M9(t, e, n, i, r, s) {
45882
45888
  ref: "popover",
45883
45889
  placement: "bottom"
45884
45890
  }, {
45885
- reference: At(() => [
45891
+ reference: Ct(() => [
45886
45892
  L("button", C9, [
45887
- Fe(a, {
45893
+ Be(a, {
45888
45894
  height: "20",
45889
45895
  width: "20",
45890
45896
  class: "text-gray-500"
@@ -45895,7 +45901,7 @@ function M9(t, e, n, i, r, s) {
45895
45901
  }, null, 4)
45896
45902
  ])
45897
45903
  ]),
45898
- default: At(() => [
45904
+ default: Ct(() => [
45899
45905
  L("div", null, [
45900
45906
  L("ul", T9, [
45901
45907
  (X(!0), ne(Et, null, Xt(r.colors, (f) => (X(), ne("li", {
@@ -45950,20 +45956,20 @@ function z9(t, e, n, i, r, s) {
45950
45956
  ref: "popover",
45951
45957
  placement: "bottom"
45952
45958
  }, {
45953
- reference: At(() => [
45959
+ reference: Ct(() => [
45954
45960
  L("button", {
45955
45961
  class: tn(["p-1.5 text-gray-500 rounded cursor-pointer hover:text-gray-900 hover:bg-gray-200", {
45956
45962
  "bg-gray-200 text-gray-900": n.editor.isActive("underline") || n.editor.isActive("strike")
45957
45963
  }])
45958
45964
  }, [
45959
- Fe(a, {
45965
+ Be(a, {
45960
45966
  height: "18",
45961
45967
  width: "18",
45962
45968
  class: "rotate-90"
45963
45969
  })
45964
45970
  ], 2)
45965
45971
  ]),
45966
- default: At(() => [
45972
+ default: Ct(() => [
45967
45973
  L("div", null, [
45968
45974
  L("button", {
45969
45975
  onClick: e[0] || (e[0] = (...f) => s.toggleUnderline && s.toggleUnderline(...f)),
@@ -46126,7 +46132,7 @@ function V9(t, e, n, i, r, s) {
46126
46132
  onClick: e[0] || (e[0] = (...o) => s.focusEditor && s.focusEditor(...o)),
46127
46133
  class: "relative w-full px-4 py-2 bg-white rounded-b-lg editor-content dark:bg-gray-800"
46128
46134
  }, [
46129
- Fe(a, {
46135
+ Be(a, {
46130
46136
  editor: r.editor,
46131
46137
  class: "relative w-full"
46132
46138
  }, null, 8, ["editor"])
@@ -46307,13 +46313,13 @@ function iY(t, e, n, i, r, s) {
46307
46313
  }, null, 8, eY)
46308
46314
  ])
46309
46315
  ], 32),
46310
- Fe(o, {
46316
+ Be(o, {
46311
46317
  visible: r.isOpen,
46312
46318
  "onUpdate:visible": e[7] || (e[7] = (g) => r.isOpen = g),
46313
46319
  title: "Редагувати",
46314
46320
  size: "small"
46315
46321
  }, {
46316
- footer: At(() => [
46322
+ footer: Ct(() => [
46317
46323
  L("div", nY, [
46318
46324
  L("button", {
46319
46325
  onClick: e[5] || (e[5] = (g) => r.isOpen = !1),
@@ -46325,9 +46331,9 @@ function iY(t, e, n, i, r, s) {
46325
46331
  }, " Зберегти ")
46326
46332
  ])
46327
46333
  ]),
46328
- default: At(() => [
46334
+ default: Ct(() => [
46329
46335
  L("div", tY, [
46330
- Fe(a, {
46336
+ Be(a, {
46331
46337
  modelValue: r.textareaValue,
46332
46338
  "onUpdate:modelValue": e[4] || (e[4] = (g) => r.textareaValue = g),
46333
46339
  options: n.options
@@ -46409,7 +46415,7 @@ function dY(t, e, n, i, r, s) {
46409
46415
  class: "pb-8 last:pb-0",
46410
46416
  key: k
46411
46417
  }, [
46412
- Fe(o, {
46418
+ Be(o, {
46413
46419
  comment: _,
46414
46420
  user: r.user,
46415
46421
  options: n.options,
@@ -46426,13 +46432,13 @@ function dY(t, e, n, i, r, s) {
46426
46432
  class: "justify-center",
46427
46433
  text: "Please wait..."
46428
46434
  })),
46429
- Fe(m, {
46435
+ Be(m, {
46430
46436
  title: r.modal.title,
46431
46437
  size: "small",
46432
46438
  visible: r.isModalVisible,
46433
46439
  "onUpdate:visible": e[3] || (e[3] = (_) => r.isModalVisible = _)
46434
46440
  }, {
46435
- default: At(() => [
46441
+ default: Ct(() => [
46436
46442
  L("div", lY, [
46437
46443
  L("p", cY, He(r.modal.message), 1),
46438
46444
  L("div", uY, [
@@ -46492,8 +46498,8 @@ function yY(t, e, n, i, r, s) {
46492
46498
  const a = qe("VsTextEditor");
46493
46499
  return X(), ne("div", pY, [
46494
46500
  L("div", mY, [
46495
- Fe(Hy, { name: "fade" }, {
46496
- default: At(() => [
46501
+ Be(Hy, { name: "fade" }, {
46502
+ default: Ct(() => [
46497
46503
  r.isEditorOpen ? (X(), zt(a, {
46498
46504
  key: 0,
46499
46505
  modelValue: r.commentContent,
@@ -46574,12 +46580,12 @@ function xY(t, e, n, i, r, s) {
46574
46580
  const a = qe("VsWidgetCommentsAddForm"), o = qe("VsWidgetCommentsList");
46575
46581
  return X(), ne("div", _Y, [
46576
46582
  e[2] || (e[2] = L("div", { class: "flex items-center justify-between w-full mb-4 gap-x-2" }, null, -1)),
46577
- Fe(a, {
46583
+ Be(a, {
46578
46584
  options: r.options,
46579
46585
  id: n.id,
46580
46586
  onListUpdate: e[0] || (e[0] = (f) => s.listUpdate())
46581
46587
  }, null, 8, ["options", "id"]),
46582
- Fe(o, {
46588
+ Be(o, {
46583
46589
  options: r.options,
46584
46590
  id: n.id,
46585
46591
  onUpdateCommentCount: e[1] || (e[1] = (f) => s.updateCommentCount()),
@@ -46779,7 +46785,7 @@ function dZ(t, e, n, i, r, s) {
46779
46785
  const a = qe("VsWidgetHistoryItemAvatar"), o = qe("IconFile");
46780
46786
  return X(), ne("div", FY, [
46781
46787
  L("div", $Y, [
46782
- Fe(a, {
46788
+ Be(a, {
46783
46789
  username: t.item.username
46784
46790
  }, null, 8, ["username"]),
46785
46791
  L("div", VY, [
@@ -46809,7 +46815,7 @@ function dZ(t, e, n, i, r, s) {
46809
46815
  L("div", ZY, [
46810
46816
  L("div", XY, [
46811
46817
  L("div", KY, [
46812
- Fe(o, { class: "w-[24px] h-[24px] text-gray-800" }),
46818
+ Be(o, { class: "w-[24px] h-[24px] text-gray-800" }),
46813
46819
  L("div", JY, [
46814
46820
  L("p", QY, He(t.item.changes[0]["Назва файлу"] || "example file_name"), 1),
46815
46821
  L("small", eZ, He(t.item.changes[0]["Розмір файлу"] || "example file_weight kb") + " KB ", 1)
@@ -46824,7 +46830,7 @@ function dZ(t, e, n, i, r, s) {
46824
46830
  L("div", rZ, [
46825
46831
  L("div", sZ, [
46826
46832
  L("div", oZ, [
46827
- Fe(o, { class: "w-[24px] h-[24px] text-gray-800" }),
46833
+ Be(o, { class: "w-[24px] h-[24px] text-gray-800" }),
46828
46834
  L("div", aZ, [
46829
46835
  L("p", lZ, He(t.item.file_name || "example file_name"), 1),
46830
46836
  L("small", cZ, He(t.item.file_weight || "example file_weight kb"), 1)
@@ -46939,7 +46945,7 @@ function CZ(t, e, n, i, r, s) {
46939
46945
  class: "list-none mr-[10px]",
46940
46946
  key: M.uid
46941
46947
  }, [
46942
- Fe(a, {
46948
+ Be(a, {
46943
46949
  item: M,
46944
46950
  class: tn(
46945
46951
  O === (($ = (z = t.history) == null ? void 0 : z.rows) == null ? void 0 : $.length) - 1 ? "pb-0 after:hidden" : "pb-8 after:absolute after:top-[38px] after:bottom-0 after:start-[19px] after:w-px after:bg-gray-200 dark:after:bg-neutral-700"
@@ -46959,7 +46965,7 @@ function CZ(t, e, n, i, r, s) {
46959
46965
  }, [
46960
46966
  L("span", xZ, [
46961
46967
  L("span", wZ, [
46962
- Fe(o)
46968
+ Be(o)
46963
46969
  ])
46964
46970
  ]),
46965
46971
  L("span", kZ, [
@@ -47131,25 +47137,25 @@ const DI = /* @__PURE__ */ ft(FZ, [["render", jZ]]), HZ = { class: "hs-dropdown
47131
47137
  const M = qe("VsPopover"), O = qe("VsConfirm"), z = qe("VsForm"), $ = qe("VsDialog");
47132
47138
  return X(), ne(Et, null, [
47133
47139
  L("div", HZ, [
47134
- Fe(M, {
47140
+ Be(M, {
47135
47141
  trigger: "click",
47136
47142
  placement: "bottom-left"
47137
47143
  }, {
47138
- reference: At(() => [
47144
+ reference: Ct(() => [
47139
47145
  L("button", UZ, [
47140
- Fe($1, {
47146
+ Be($1, {
47141
47147
  height: "16",
47142
47148
  width: "16"
47143
47149
  })
47144
47150
  ])
47145
47151
  ]),
47146
- default: At(() => [
47152
+ default: Ct(() => [
47147
47153
  L("div", WZ, [
47148
47154
  L("button", {
47149
47155
  onClick: m,
47150
47156
  class: "w-full flex items-center gap-x-3 py-1.5 px-2 rounded-lg text-[13px] text-stone-800 hover:bg-stone-100 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-stone-100"
47151
47157
  }, [
47152
- Fe(DI, { color: "#000" }),
47158
+ Be(DI, { color: "#000" }),
47153
47159
  C[5] || (C[5] = Ui(" Редагувати "))
47154
47160
  ]),
47155
47161
  k.isForm ? (X(), ne("div", qZ)) : bt("", !0),
@@ -47157,7 +47163,7 @@ const DI = /* @__PURE__ */ ft(FZ, [["render", jZ]]), HZ = { class: "hs-dropdown
47157
47163
  onClick: tu(f, ["stop"]),
47158
47164
  class: "w-full flex items-center gap-x-3 py-1.5 px-2 rounded-lg text-[13px] text-stone-800 hover:bg-stone-100 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-stone-100"
47159
47165
  }, [
47160
- Fe(MI),
47166
+ Be(MI),
47161
47167
  C[6] || (C[6] = L("span", { class: "text-gray-800" }, "Видалити", -1))
47162
47168
  ])
47163
47169
  ])
@@ -47165,13 +47171,13 @@ const DI = /* @__PURE__ */ ft(FZ, [["render", jZ]]), HZ = { class: "hs-dropdown
47165
47171
  _: 1
47166
47172
  })
47167
47173
  ]),
47168
- Fe(O, {
47174
+ Be(O, {
47169
47175
  visible: r.value,
47170
47176
  "onUpdate:visible": C[1] || (C[1] = (q) => r.value = q),
47171
47177
  size: "small",
47172
47178
  title: "Ви впевнені?"
47173
47179
  }, {
47174
- default: At(() => [
47180
+ default: Ct(() => [
47175
47181
  L("div", GZ, [
47176
47182
  C[7] || (C[7] = L("p", { class: "mt-1 text-gray-500 dark:text-neutral-500" }, " Ви впевнені, що хочете видалити цей об'єкт? ", -1)),
47177
47183
  L("div", YZ, [
@@ -47190,12 +47196,12 @@ const DI = /* @__PURE__ */ ft(FZ, [["render", jZ]]), HZ = { class: "hs-dropdown
47190
47196
  ]),
47191
47197
  _: 1
47192
47198
  }, 8, ["visible"]),
47193
- Fe($, {
47199
+ Be($, {
47194
47200
  visible: s.value,
47195
47201
  "onUpdate:visible": C[4] || (C[4] = (q) => s.value = q),
47196
47202
  title: "Редагувати об'єкт"
47197
47203
  }, {
47198
- footer: At(() => [
47204
+ footer: Ct(() => [
47199
47205
  L("div", ZZ, [
47200
47206
  L("button", {
47201
47207
  onClick: C[3] || (C[3] = (q) => s.value = !1),
@@ -47207,8 +47213,8 @@ const DI = /* @__PURE__ */ ft(FZ, [["render", jZ]]), HZ = { class: "hs-dropdown
47207
47213
  }, " Зберегти ")
47208
47214
  ])
47209
47215
  ]),
47210
- default: At(() => [
47211
- Fe(z, {
47216
+ default: Ct(() => [
47217
+ Be(z, {
47212
47218
  scheme: o.value,
47213
47219
  modelValue: a.value,
47214
47220
  "onUpdate:modelValue": C[2] || (C[2] = (q) => a.value = q),
@@ -47264,14 +47270,14 @@ const V1 = /* @__PURE__ */ ft(KZ, [["render", QZ]]), eX = { class: "flex justify
47264
47270
  onClick: o,
47265
47271
  class: tn(`h-[34px] w-[34px] shadow bg-${n.value}-600 rounded-lg flex items-center justify-center text-white duration-300 hover:bg-${n.value}-700`)
47266
47272
  }, [
47267
- Fe(V1)
47273
+ Be(V1)
47268
47274
  ], 2),
47269
- Fe(k, {
47275
+ Be(k, {
47270
47276
  visible: i.value,
47271
47277
  "onUpdate:visible": g[2] || (g[2] = (C) => i.value = C),
47272
47278
  title: "Створити об'єкт"
47273
47279
  }, {
47274
- footer: At(() => [
47280
+ footer: Ct(() => [
47275
47281
  L("div", eX, [
47276
47282
  L("button", {
47277
47283
  onClick: g[1] || (g[1] = (C) => i.value = !1),
@@ -47283,8 +47289,8 @@ const V1 = /* @__PURE__ */ ft(KZ, [["render", QZ]]), eX = { class: "flex justify
47283
47289
  }, " Зберегти ")
47284
47290
  ])
47285
47291
  ]),
47286
- default: At(() => [
47287
- Fe(_, {
47292
+ default: Ct(() => [
47293
+ Be(_, {
47288
47294
  scheme: r.value,
47289
47295
  modelValue: s.value,
47290
47296
  "onUpdate:modelValue": g[0] || (g[0] = (C) => s.value = C),
@@ -47379,15 +47385,15 @@ function dX(t, e, n, i, r, s) {
47379
47385
  onClick: e[0] || (e[0] = (f) => r.isFilters = !r.isFilters),
47380
47386
  class: "py-2 px-2.5 max-h-[34px] inline-flex items-center gap-x-1.5 text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none"
47381
47387
  }, [
47382
- Fe(a, {
47388
+ Be(a, {
47383
47389
  height: "16",
47384
47390
  width: "16"
47385
47391
  }),
47386
47392
  e[5] || (e[5] = Ui(" Фільтри ")),
47387
47393
  n.onFilters ? (X(), ne("span", cX, He(n.onFilters), 1)) : bt("", !0)
47388
47394
  ]),
47389
- Fe(Hy, { name: "fade" }, {
47390
- default: At(() => {
47395
+ Be(Hy, { name: "fade" }, {
47396
+ default: Ct(() => {
47391
47397
  var f;
47392
47398
  return [
47393
47399
  gs(L("div", {
@@ -47475,11 +47481,11 @@ const hX = /* @__PURE__ */ ft(lX, [["render", dX]]), fX = { class: "h-full" }, p
47475
47481
  return js(s, m), Oo(() => {
47476
47482
  m();
47477
47483
  }), (k, C) => {
47478
- var z, $, q, K, Z, ge, be, Ce, $e, ke, Be, Ge, We, Ze, pe;
47484
+ var z, $, q, K, Z, ge, be, Ce, $e, ke, Fe, Ge, We, Ze, pe;
47479
47485
  const M = qe("VsText"), O = qe("VsPagination");
47480
47486
  return X(), ne("div", fX, [
47481
47487
  L("div", pX, [
47482
- Fe(M, {
47488
+ Be(M, {
47483
47489
  modelValue: s.value,
47484
47490
  "onUpdate:modelValue": C[0] || (C[0] = (_t) => s.value = _t),
47485
47491
  class: "[&>input]:py-[7px] [&>input]:max-h-[36px] w-[400px] [&>input]:pe-8 [&>input]:block [&>input]:w-full [&>input]:bg-gray-100 [&>input]:border-transparent [&>input]:rounded-lg [&>input]:text-sm [&>input]:focus:bg-white [&>input]:focus:border-blue-500 [&>input]:focus:ring-blue-500 [&>input]:disabled:opacity-50 [&>input]:disabled:pointer-events-none [&>input]:dark:bg-neutral-700 [&>input]:dark:border-transparent [&>input]:dark:text-neutral-400 [&>input]:dark:placeholder:text-neutral-400 dark:focus:bg-neutral-800 dark:focus:ring-neutral-600",
@@ -47518,7 +47524,7 @@ const hX = /* @__PURE__ */ ft(lX, [["render", dX]]), fX = { class: "h-full" }, p
47518
47524
  scope: "col",
47519
47525
  class: "py-2"
47520
47526
  }, He((_t == null ? void 0 : _t.title) || (_t == null ? void 0 : _t.description) || (_t == null ? void 0 : _t.ua)), 1))), 128)),
47521
- (Ge = (Be = n.value) == null ? void 0 : Be.actions) != null && Ge.length ? (X(), ne("th", _X)) : bt("", !0)
47527
+ (Ge = (Fe = n.value) == null ? void 0 : Fe.actions) != null && Ge.length ? (X(), ne("th", _X)) : bt("", !0)
47522
47528
  ])
47523
47529
  ]),
47524
47530
  L("tbody", xX, [
@@ -47532,14 +47538,14 @@ const hX = /* @__PURE__ */ ft(lX, [["render", dX]]), fX = { class: "h-full" }, p
47532
47538
  key: _n,
47533
47539
  class: "py-2 pr-5"
47534
47540
  }, [
47535
- Fe(II, {
47541
+ Be(II, {
47536
47542
  row: _t,
47537
47543
  column: rn,
47538
47544
  table: t.table
47539
47545
  }, null, 8, ["row", "column", "table"])
47540
47546
  ]))), 128)),
47541
47547
  (Ut = ($t = n.value) == null ? void 0 : $t.actions) != null && Ut.length ? (X(), ne("td", wX, [
47542
- Fe(XZ, {
47548
+ Be(XZ, {
47543
47549
  id: _t == null ? void 0 : _t.id,
47544
47550
  table: t.table,
47545
47551
  apiDelete: t.apiDelete,
@@ -47556,7 +47562,7 @@ const hX = /* @__PURE__ */ ft(lX, [["render", dX]]), fX = { class: "h-full" }, p
47556
47562
  ])
47557
47563
  ], 2),
47558
47564
  ((Ze = n.value) == null ? void 0 : Ze.filtered) > 20 ? (X(), ne("div", kX, [
47559
- Fe(O, {
47565
+ Be(O, {
47560
47566
  goTo: !1,
47561
47567
  "default-page": r.value,
47562
47568
  total: (pe = n.value) == null ? void 0 : pe.filtered,
@@ -47660,13 +47666,13 @@ const LX = /* @__PURE__ */ ft(RX, [["render", zX]]), NX = { class: "relative shr
47660
47666
  src: (k = t.item) == null ? void 0 : k.avatar,
47661
47667
  alt: "Avatar"
47662
47668
  }, null, 8, BX)) : (X(), ne("div", FX, [
47663
- Fe(PX)
47669
+ Be(PX)
47664
47670
  ])),
47665
47671
  (C = t.item) != null && C.read ? (X(), ne("span", $X)) : bt("", !0)
47666
47672
  ]),
47667
47673
  L("div", VX, [
47668
47674
  L("p", jX, [
47669
- Fe(s1, {
47675
+ Be(s1, {
47670
47676
  name: "cdate",
47671
47677
  data: t.item
47672
47678
  }, null, 8, ["data"])
@@ -47675,20 +47681,20 @@ const LX = /* @__PURE__ */ ft(RX, [["render", zX]]), NX = { class: "relative shr
47675
47681
  L("p", UX, He((O = t.item) == null ? void 0 : O.subject), 1)
47676
47682
  ]),
47677
47683
  i.value ? (X(), ne("div", WX, [
47678
- Fe(m, {
47684
+ Be(m, {
47679
47685
  trigger: "hover",
47680
47686
  placement: "left"
47681
47687
  }, {
47682
- reference: At(() => [
47688
+ reference: Ct(() => [
47683
47689
  L("button", {
47684
47690
  onClick: a,
47685
47691
  type: "button",
47686
47692
  class: "hs-tooltip-toggle hs-tooltip relative inline-block size-7 flex shrink-0 justify-center items-center text-gray-500 hover:bg-gray-100 hover:text-gray-800 rounded"
47687
47693
  }, [
47688
- Fe(LX)
47694
+ Be(LX)
47689
47695
  ])
47690
47696
  ]),
47691
- default: At(() => [
47697
+ default: Ct(() => [
47692
47698
  f[0] || (f[0] = Ui(" Прочитати "))
47693
47699
  ]),
47694
47700
  _: 1
@@ -47810,7 +47816,7 @@ const PI = /* @__PURE__ */ ft(tK, [["render", aK]]), lK = {
47810
47816
  onClick: _[0] || (_[0] = (k) => i.value = !i.value),
47811
47817
  class: "relative size-[38px] inline-flex justify-center items-center gap-x-2 rounded-full border border text-gray-900 hover:bg-gray-200 focus:outline-none focus:bg-gray-200"
47812
47818
  }, [
47813
- Fe(XX, {
47819
+ Be(XX, {
47814
47820
  height: "24",
47815
47821
  width: "24"
47816
47822
  }),
@@ -47819,8 +47825,8 @@ const PI = /* @__PURE__ */ ft(tK, [["render", aK]]), lK = {
47819
47825
  L("span", cK, He(e.value), 1)
47820
47826
  ])) : bt("", !0)
47821
47827
  ]),
47822
- Fe(Hy, null, {
47823
- default: At(() => {
47828
+ Be(Hy, null, {
47829
+ default: Ct(() => {
47824
47830
  var k;
47825
47831
  return [
47826
47832
  i.value ? (X(), ne("div", {
@@ -47835,7 +47841,7 @@ const PI = /* @__PURE__ */ ft(tK, [["render", aK]]), lK = {
47835
47841
  }, " Всі ")
47836
47842
  ], -1)),
47837
47843
  L("button", dK, [
47838
- Fe(eK)
47844
+ Be(eK)
47839
47845
  ])
47840
47846
  ]),
47841
47847
  L("div", hK, [
@@ -47846,7 +47852,7 @@ const PI = /* @__PURE__ */ ft(tK, [["render", aK]]), lK = {
47846
47852
  onUpdateNotification: f
47847
47853
  }, null, 8, ["item"]))), 128))
47848
47854
  ])) : (X(), ne("div", pK, [
47849
- Fe(PI, {
47855
+ Be(PI, {
47850
47856
  class: "[&>div>div]:min-h-[300px]",
47851
47857
  text: ""
47852
47858
  })
@@ -47856,7 +47862,7 @@ const PI = /* @__PURE__ */ ft(tK, [["render", aK]]), lK = {
47856
47862
  onClick: m,
47857
47863
  class: "h-[50px] border-t w-full rounded-b-lg bg-white shadow p-4 flex justify-center items-center gap-x-2 text-sm text-gray-500 font-medium sm:rounded-b-lg hover:text-blue-600 focus:outline-none"
47858
47864
  }, [
47859
- Fe(AX, {
47865
+ Be(AX, {
47860
47866
  height: "16",
47861
47867
  width: "16"
47862
47868
  }),
@@ -52348,8 +52354,8 @@ function Mee(t, e, n, i) {
52348
52354
  }
52349
52355
  let ge = r.eventStore;
52350
52356
  for (let be of $.allows) {
52351
- let Ce = Object.assign(Object.assign({}, n), { range: O.range, allDay: q.allDay }), $e = ge.defs[q.defId], ke = ge.instances[M], Be;
52352
- if ($e ? Be = new Ci(e, $e, ke) : Be = new Ci(e, q), !be(sw(Ce, e), Be))
52357
+ let Ce = Object.assign(Object.assign({}, n), { range: O.range, allDay: q.allDay }), $e = ge.defs[q.defId], ke = ge.instances[M], Fe;
52358
+ if ($e ? Fe = new Ci(e, $e, ke) : Fe = new Ci(e, q), !be(sw(Ce, e), Fe))
52353
52359
  return !1;
52354
52360
  }
52355
52361
  }
@@ -55812,10 +55818,10 @@ class yie extends Yn {
55812
55818
  null,
55813
55819
  this.renderHiddenGroups(K, e),
55814
55820
  q.map((Z) => {
55815
- let { seg: ge, rect: be } = Z, Ce = ge.eventRange.instance.instanceId, $e = z || !!(!n[Ce] && be), ke = u_(be && be.span), Be = !z && be ? this.computeSegHStyle(be) : { left: 0, right: 0 }, Ge = !!be && be.stackForward > 0, We = !!be && be.span.end - be.span.start < f;
55821
+ let { seg: ge, rect: be } = Z, Ce = ge.eventRange.instance.instanceId, $e = z || !!(!n[Ce] && be), ke = u_(be && be.span), Fe = !z && be ? this.computeSegHStyle(be) : { left: 0, right: 0 }, Ge = !!be && be.stackForward > 0, We = !!be && be.span.end - be.span.start < f;
55816
55822
  return de(
55817
55823
  "div",
55818
- { className: "fc-timegrid-event-harness" + (Ge ? " fc-timegrid-event-harness-inset" : ""), key: a || Ce, style: Object.assign(Object.assign({ visibility: $e ? "" : "hidden" }, ke), Be) },
55824
+ { className: "fc-timegrid-event-harness" + (Ge ? " fc-timegrid-event-harness-inset" : ""), key: a || Ce, style: Object.assign(Object.assign({ visibility: $e ? "" : "hidden" }, ke), Fe) },
55819
55825
  de(gR, Object.assign({ seg: ge, isDragging: i, isResizing: r, isDateSelecting: s, isSelected: Ce === C, isShort: We }, nl(ge, M, O)))
55820
55826
  );
55821
55827
  })
@@ -57334,7 +57340,7 @@ function Pre(t, e, n, i, r, s) {
57334
57340
  return X(), ne("div", Sre, [
57335
57341
  L("div", Ere, [
57336
57342
  L("div", Cre, [
57337
- Fe(a, {
57343
+ Be(a, {
57338
57344
  type: "text",
57339
57345
  modelValue: t.searchValue,
57340
57346
  "onUpdate:modelValue": e[0] || (e[0] = (_) => t.searchValue = _),
@@ -57342,30 +57348,30 @@ function Pre(t, e, n, i, r, s) {
57342
57348
  placeholder: "Пошук ",
57343
57349
  class: "w-[300px] [&>input]:h-[38px] [&>input]:placeholder-gray-600 [&>input]:bg-gray-100 [&>input]:border-0 admin-input-text"
57344
57350
  }, null, 8, ["modelValue"]),
57345
- Fe(o, {
57351
+ Be(o, {
57346
57352
  scheme: r.scheme,
57347
57353
  isDialog: !1,
57348
57354
  view: "plain"
57349
57355
  }, null, 8, ["scheme"]),
57350
57356
  L("div", Tre, [
57351
57357
  L("div", Are, He(r.currentPeriod), 1),
57352
- Fe(m, {
57358
+ Be(m, {
57353
57359
  placement: "bottom-right",
57354
57360
  ref: "popover"
57355
57361
  }, {
57356
- reference: At(() => {
57362
+ reference: Ct(() => {
57357
57363
  var _;
57358
57364
  return [
57359
57365
  L("button", Mre, [
57360
57366
  Ui(He((_ = r.views) == null ? void 0 : _[r.currentView]) + " ", 1),
57361
- Fe(f, {
57367
+ Be(f, {
57362
57368
  height: "14",
57363
57369
  width: "14"
57364
57370
  })
57365
57371
  ])
57366
57372
  ];
57367
57373
  }),
57368
- default: At(() => [
57374
+ default: Ct(() => [
57369
57375
  L("div", Dre, [
57370
57376
  (X(!0), ne(Et, null, Xt(r.views, (_, k) => (X(), ne("button", {
57371
57377
  key: k,
@@ -57380,7 +57386,7 @@ function Pre(t, e, n, i, r, s) {
57380
57386
  onClick: e[1] || (e[1] = (..._) => s.prev && s.prev(..._)),
57381
57387
  class: "inline-flex h-[38px] items-center justify-center px-3 py-2 text-sm font-medium text-gray-800 bg-gray-100 border border-transparent rounded-lg gap-x-2 hover:bg-gray-200 focus:bg-gray-200"
57382
57388
  }, [
57383
- Fe(f, {
57389
+ Be(f, {
57384
57390
  height: "14",
57385
57391
  width: "14",
57386
57392
  class: "rotate-90"
@@ -57390,7 +57396,7 @@ function Pre(t, e, n, i, r, s) {
57390
57396
  onClick: e[2] || (e[2] = (..._) => s.next && s.next(..._)),
57391
57397
  class: "inline-flex h-[38px] items-center justify-center px-3 py-2 text-sm font-medium text-gray-800 bg-gray-100 border border-transparent rounded-lg gap-x-2 hover:bg-gray-200 focus:bg-gray-200"
57392
57398
  }, [
57393
- Fe(f, {
57399
+ Be(f, {
57394
57400
  height: "14",
57395
57401
  width: "14",
57396
57402
  class: "-rotate-90"
@@ -57515,43 +57521,43 @@ const Fre = /* @__PURE__ */ ft(Lre, [["render", Bre]]), $re = { class: "flex w-f
57515
57521
  const a = qe("VsText"), o = qe("VsPopover"), f = qe("VsDialog");
57516
57522
  return X(), ne(Et, null, [
57517
57523
  L("div", $re, [
57518
- Fe(a, {
57524
+ Be(a, {
57519
57525
  modelValue: e.value[0],
57520
57526
  "onUpdate:modelValue": s[0] || (s[0] = (m) => e.value[0] = m),
57521
57527
  placeholder: "lng"
57522
57528
  }, null, 8, ["modelValue"]),
57523
- Fe(a, {
57529
+ Be(a, {
57524
57530
  modelValue: e.value[1],
57525
57531
  "onUpdate:modelValue": s[1] || (s[1] = (m) => e.value[1] = m),
57526
57532
  placeholder: "lat"
57527
57533
  }, null, 8, ["modelValue"]),
57528
- Fe(o, {
57534
+ Be(o, {
57529
57535
  placement: "left",
57530
57536
  trigger: "hover"
57531
57537
  }, {
57532
- reference: At(() => [
57538
+ reference: Ct(() => [
57533
57539
  L("button", {
57534
57540
  onClick: s[2] || (s[2] = (m) => i.value = !0),
57535
57541
  class: tn("inline-flex items-center px-3 py-2 text-sm font-medium text-white duration-300 bg-gray-500 border border-transparent rounded-lg gap-x-2 hover:bg-gray-700 hover:text-white")
57536
57542
  }, [
57537
- Fe(Fre, {
57543
+ Be(Fre, {
57538
57544
  height: "22",
57539
57545
  width: "16"
57540
57546
  })
57541
57547
  ])
57542
57548
  ]),
57543
- default: At(() => [
57549
+ default: Ct(() => [
57544
57550
  s[6] || (s[6] = L("div", { class: "p-1" }, "Додати точку через карту", -1))
57545
57551
  ]),
57546
57552
  _: 1
57547
57553
  })
57548
57554
  ]),
57549
- Fe(f, {
57555
+ Be(f, {
57550
57556
  visible: i.value,
57551
57557
  "onUpdate:visible": s[5] || (s[5] = (m) => i.value = m),
57552
57558
  title: "Додати точку на карті"
57553
57559
  }, {
57554
- footer: At(({ handleClose: m }) => [
57560
+ footer: Ct(({ handleClose: m }) => [
57555
57561
  L("div", Vre, [
57556
57562
  L("button", {
57557
57563
  style: { border: "1px solid #000" },
@@ -57566,7 +57572,7 @@ const Fre = /* @__PURE__ */ ft(Lre, [["render", Bre]]), $re = { class: "flex w-f
57566
57572
  }, " Зберегти ")
57567
57573
  ])
57568
57574
  ]),
57569
- default: At(() => [
57575
+ default: Ct(() => [
57570
57576
  i.value ? (X(), zt(zre, {
57571
57577
  key: 0,
57572
57578
  modelValue: n.value,
@@ -57635,25 +57641,25 @@ const Fre = /* @__PURE__ */ ft(Lre, [["render", Bre]]), $re = { class: "flex w-f
57635
57641
  return (r, s) => {
57636
57642
  const a = qe("VsPopover");
57637
57643
  return X(), ne("div", Ure, [
57638
- Fe(a, {
57644
+ Be(a, {
57639
57645
  ref_key: "popover",
57640
57646
  ref: n,
57641
57647
  placement: "bottom-right"
57642
57648
  }, {
57643
- reference: At(() => [
57649
+ reference: Ct(() => [
57644
57650
  L("button", {
57645
57651
  class: tn(["h-[37px] w-[37px] rounded-lg flex items-center justify-center", `bg-${e.value}-400`])
57646
57652
  }, null, 2)
57647
57653
  ]),
57648
- default: At(() => [
57654
+ default: Ct(() => [
57649
57655
  L("div", null, [
57650
57656
  L("ul", Wre, [
57651
57657
  (X(), ne(Et, null, Xt(i, (o, f) => L("li", { key: f }, [
57652
- Fe(a, {
57658
+ Be(a, {
57653
57659
  placement: "bottom",
57654
57660
  trigger: "hover"
57655
57661
  }, {
57656
- reference: At(() => [
57662
+ reference: Ct(() => [
57657
57663
  L("div", qre, [
57658
57664
  L("div", {
57659
57665
  class: tn(["flex items-center justify-center h-[24px] shrink-0 w-[24px] rounded-[2px]", `bg-${o == null ? void 0 : o.color}-400`]),
@@ -57671,7 +57677,7 @@ const Fre = /* @__PURE__ */ ft(Lre, [["render", Bre]]), $re = { class: "flex w-f
57671
57677
  ], 10, Gre)
57672
57678
  ])
57673
57679
  ]),
57674
- default: At(() => [
57680
+ default: Ct(() => [
57675
57681
  L("div", Yre, He(o == null ? void 0 : o.title), 1)
57676
57682
  ]),
57677
57683
  _: 2
@@ -58345,7 +58351,7 @@ function Cse(t, e, n, i, r, s) {
58345
58351
  const a = qe("VsText"), o = qe("VsGrouptFirstLevel"), f = qe("VsGroupSecondLevel"), m = qe("AdminNodata");
58346
58352
  return X(), ne("div", null, [
58347
58353
  L("div", wse, [
58348
- Fe(a, {
58354
+ Be(a, {
58349
58355
  placeholder: "Пошук",
58350
58356
  class: "flex-grow",
58351
58357
  modelValue: r.searchValue,
@@ -58376,7 +58382,7 @@ function Cse(t, e, n, i, r, s) {
58376
58382
  (g = s.getList) != null && g.length ? (X(), ne("div", Sse, [
58377
58383
  L("div", Ese, [
58378
58384
  (X(!0), ne(Et, null, Xt(s.getList, (_, k) => (X(), ne("div", { key: k }, [
58379
- Fe(o, {
58385
+ Be(o, {
58380
58386
  item: _,
58381
58387
  "onOn:toggled": (C) => s.toggleAll(C, k),
58382
58388
  actions: n.options
@@ -58501,14 +58507,14 @@ function Hse(t, e, n, i, r, s) {
58501
58507
  onClick: e[0] || (e[0] = (_) => r.isFormAdd = !0),
58502
58508
  class: "bg-[#DBEAFE] h-[30px] w-[30px] text-blue-700 shrink-0 flex items-center justify-center rounded-lg hover:bg-blue-200"
58503
58509
  }, [
58504
- Fe(a, {
58510
+ Be(a, {
58505
58511
  height: "16",
58506
58512
  width: "16"
58507
58513
  })
58508
58514
  ])
58509
58515
  ]),
58510
58516
  L("div", Lse, [
58511
- Fe(o, {
58517
+ Be(o, {
58512
58518
  type: "text",
58513
58519
  modelValue: r.searchValue,
58514
58520
  "onUpdate:modelValue": e[1] || (e[1] = (_) => r.searchValue = _),
@@ -58525,11 +58531,11 @@ function Hse(t, e, n, i, r, s) {
58525
58531
  "data-index": t.index,
58526
58532
  class: "w-full"
58527
58533
  }, [
58528
- Fe(f, {
58534
+ Be(f, {
58529
58535
  class: tn(["flex items-center gap-x-2.5 py-1.5 px-2 text-[13px] text-gray-800 rounded-lg hover:bg-gray-100 focus:outline-none", { "bg-gray-100": ((C = (k = t.$route) == null ? void 0 : k.query) == null ? void 0 : C.name) === (_ == null ? void 0 : _.name) }]),
58530
58536
  to: r.link + "?name=" + ((_ == null ? void 0 : _.name) || (_ == null ? void 0 : _.id))
58531
58537
  }, {
58532
- default: At(() => [
58538
+ default: Ct(() => [
58533
58539
  L("span", Fse, He((_ == null ? void 0 : _.name) || (_ == null ? void 0 : _.id) || "Не вказано"), 1),
58534
58540
  L("div", $se, [
58535
58541
  L("div", Vse, He((_ == null ? void 0 : _.children) || "0"), 1)
@@ -58541,13 +58547,13 @@ function Hse(t, e, n, i, r, s) {
58541
58547
  }), 128))
58542
58548
  ])
58543
58549
  ]),
58544
- Fe(g, {
58550
+ Be(g, {
58545
58551
  visible: r.isFormAdd,
58546
58552
  "onUpdate:visible": e[5] || (e[5] = (_) => r.isFormAdd = _),
58547
58553
  title: "Створити давідник",
58548
58554
  onOnClose: e[6] || (e[6] = (_) => r.formValues = {})
58549
58555
  }, {
58550
- footer: At(() => [
58556
+ footer: Ct(() => [
58551
58557
  L("div", jse, [
58552
58558
  L("button", {
58553
58559
  style: { border: "1px solid #000" },
@@ -58562,8 +58568,8 @@ function Hse(t, e, n, i, r, s) {
58562
58568
  }, " Зберегти ")
58563
58569
  ])
58564
58570
  ]),
58565
- default: At(() => [
58566
- Fe(m, {
58571
+ default: Ct(() => [
58572
+ Be(m, {
58567
58573
  scheme: r.scheme,
58568
58574
  ref: "form",
58569
58575
  modelValue: r.formValues,
@@ -58628,13 +58634,13 @@ function toe(t, e, n, i, r, s) {
58628
58634
  ref: "popover",
58629
58635
  placement: "bottom"
58630
58636
  }, {
58631
- reference: At(() => [
58637
+ reference: Ct(() => [
58632
58638
  L("button", {
58633
58639
  class: "h-[37px] w-[37px] rounded-lg flex items-center justify-center",
58634
58640
  style: sa({ backgroundColor: n.modelValue })
58635
58641
  }, null, 4)
58636
58642
  ]),
58637
- default: At(() => [
58643
+ default: Ct(() => [
58638
58644
  L("div", null, [
58639
58645
  L("ul", Qse, [
58640
58646
  (X(!0), ne(Et, null, Xt(n.colors, (o) => (X(), ne("li", {
@@ -58676,28 +58682,28 @@ function coe(t, e, n, i, r, s) {
58676
58682
  var f;
58677
58683
  const a = qe("VsChoceColor"), o = qe("VsInlineEdit");
58678
58684
  return X(), ne("div", ioe, [
58679
- Fe(a, {
58685
+ Be(a, {
58680
58686
  modelValue: r.color,
58681
58687
  "onUpdate:modelValue": e[0] || (e[0] = (m) => r.color = m)
58682
58688
  }, null, 8, ["modelValue"]),
58683
58689
  L("div", roe, [
58684
58690
  L("div", soe, [
58685
- Fe(o, {
58691
+ Be(o, {
58686
58692
  modelValue: r.text,
58687
58693
  "onUpdate:modelValue": e[1] || (e[1] = (m) => r.text = m),
58688
58694
  onUpdateValue: e[2] || (e[2] = (m) => r.text = m)
58689
58695
  }, {
58690
- default: At(() => [
58696
+ default: Ct(() => [
58691
58697
  L("p", ooe, He(r.text), 1)
58692
58698
  ]),
58693
58699
  _: 1
58694
58700
  }, 8, ["modelValue"]),
58695
- Fe(o, {
58701
+ Be(o, {
58696
58702
  modelValue: r.id,
58697
58703
  "onUpdate:modelValue": e[3] || (e[3] = (m) => r.id = m),
58698
58704
  onUpdateValue: e[4] || (e[4] = (m) => r.id = m)
58699
58705
  }, {
58700
- default: At(() => [
58706
+ default: Ct(() => [
58701
58707
  L("p", aoe, He(r.id), 1)
58702
58708
  ]),
58703
58709
  _: 1
@@ -58755,7 +58761,7 @@ function poe(t, e, n, i, r, s) {
58755
58761
  onDrop: (m) => s.drop(m, f),
58756
58762
  onDragend: e[1] || (e[1] = (...m) => s.dragEnd && s.dragEnd(...m))
58757
58763
  }, [
58758
- Fe(a, {
58764
+ Be(a, {
58759
58765
  item: o,
58760
58766
  onUpdateItem: s.updateItem
58761
58767
  }, null, 8, ["item", "onUpdateItem"])
@@ -58863,7 +58869,7 @@ function xoe(t, e, n, i, r, s) {
58863
58869
  "onUpdate:modelValue": e[0] || (e[0] = (q) => r.formValues = q),
58864
58870
  class: "p-0 m-0 h-[65px] w-full"
58865
58871
  }, null, 8, ["scheme", "modelValue"])) : bt("", !0),
58866
- Fe(o, {
58872
+ Be(o, {
58867
58873
  modelValue: r.color,
58868
58874
  "onUpdate:modelValue": e[1] || (e[1] = (q) => r.color = q)
58869
58875
  }, null, 8, ["modelValue"]),
@@ -58871,7 +58877,7 @@ function xoe(t, e, n, i, r, s) {
58871
58877
  onClick: e[2] || (e[2] = (...q) => s.addOneChild && s.addOneChild(...q)),
58872
58878
  class: "h-[37px] w-[37px] rounded-lg bg-blue-600 ml-[6px] flex items-center justify-center text-white hover:bg-blue-700 duration-300"
58873
58879
  }, [
58874
- Fe(f, {
58880
+ Be(f, {
58875
58881
  height: "20",
58876
58882
  width: "20"
58877
58883
  })
@@ -58896,8 +58902,8 @@ const woe = /* @__PURE__ */ ft(goe, [["render", xoe]]), koe = {
58896
58902
  function Eoe(t, e, n, i, r, s) {
58897
58903
  const a = qe("VsReesterNavList"), o = qe("VsReesterContent");
58898
58904
  return X(), ne("div", Soe, [
58899
- Fe(a),
58900
- Fe(o)
58905
+ Be(a),
58906
+ Be(o)
58901
58907
  ]);
58902
58908
  }
58903
58909
  const Coe = /* @__PURE__ */ ft(koe, [["render", Eoe]]), Toe = { class: "h-[76px] bg-white rounded-xl flex items-center justify-start px-[20px] mb-[16px]" }, Aoe = { class: "mr-[10px]" }, Moe = { class: "text-[20px] font-semibold" }, Doe = { class: "" }, Ioe = {
@@ -58996,7 +59002,7 @@ const Coe = /* @__PURE__ */ ft(koe, [["render", Eoe]]), Toe = { class: "h-[76px]
58996
59002
  to: f.value,
58997
59003
  class: "inline-flex items-center px-3 py-2 text-sm font-medium text-white duration-300 bg-blue-600 border border-transparent rounded-lg gap-x-2 hover:bg-blue-700 hover:text-white"
58998
59004
  }, {
58999
- default: At(() => $[2] || ($[2] = [
59005
+ default: Ct(() => $[2] || ($[2] = [
59000
59006
  Ui(" Редагувати ")
59001
59007
  ])),
59002
59008
  _: 1
@@ -59065,16 +59071,16 @@ const CR = /* @__PURE__ */ ft(Roe, [["render", zoe]]), Loe = { class: "px-2.5 h-
59065
59071
  ref: i,
59066
59072
  placement: "bottom"
59067
59073
  }, {
59068
- reference: At(() => [
59074
+ reference: Ct(() => [
59069
59075
  L("button", Loe, [
59070
59076
  Ui(He(r.value) + " ", 1),
59071
- Fe(CR, {
59077
+ Be(CR, {
59072
59078
  height: "12",
59073
59079
  width: "12"
59074
59080
  })
59075
59081
  ])
59076
59082
  ]),
59077
- default: At(() => [
59083
+ default: Ct(() => [
59078
59084
  L("div", Noe, [
59079
59085
  (X(!0), ne(Et, null, Xt(t.options, (m) => (X(), ne("button", {
59080
59086
  class: tn(["cursor-pointer py-1.5 px-2 text-[13px] text-start text-gray-800 rounded-lg hover:bg-gray-100 focus:outline-none focus:bg-gray-100", {
@@ -59262,7 +59268,7 @@ function fae(t, e, n, i, r, s) {
59262
59268
  class: tn(["col-span-12 shrink-0", s.columnClass(K.col)])
59263
59269
  }, [
59264
59270
  (X(!0), ne(Et, null, Xt(K.items, (ge, be) => {
59265
- var Ce, $e, ke, Be, Ge, We, Ze, pe, _t, Ft, $t, Ut, dn, rn;
59271
+ var Ce, $e, ke, Fe, Ge, We, Ze, pe, _t, Ft, $t, Ut, dn, rn;
59266
59272
  return X(), ne("div", {
59267
59273
  key: be,
59268
59274
  class: tn([{ "mb-[20px]": K.items.length > 1 }, "bg-white rounded-xl"])
@@ -59275,7 +59281,7 @@ function fae(t, e, n, i, r, s) {
59275
59281
  (X(), zt(fs(ge.component), Bf({
59276
59282
  geometry: ($e = (Ce = r.objectData) == null ? void 0 : Ce.rows[0]) == null ? void 0 : $e.geom,
59277
59283
  columns: ge == null ? void 0 : ge.columns,
59278
- token: (Be = (ke = r.objectData) == null ? void 0 : ke.tokens) == null ? void 0 : Be[ge == null ? void 0 : ge.token],
59284
+ token: (Fe = (ke = r.objectData) == null ? void 0 : ke.tokens) == null ? void 0 : Fe[ge == null ? void 0 : ge.token],
59279
59285
  zoom: 16,
59280
59286
  ref_for: !0
59281
59287
  }, s.getProps(ge), {
@@ -59306,7 +59312,7 @@ function fae(t, e, n, i, r, s) {
59306
59312
  (X(!0), ne(Et, null, Xt((q = ($ = r.objectData) == null ? void 0 : $.panels) == null ? void 0 : q.filter(
59307
59313
  (K) => (K == null ? void 0 : K.type) !== "pin"
59308
59314
  ), (K, Z) => {
59309
- var ge, be, Ce, $e, ke, Be, Ge, We, Ze;
59315
+ var ge, be, Ce, $e, ke, Fe, Ge, We, Ze;
59310
59316
  return X(), ne("div", {
59311
59317
  key: Z,
59312
59318
  class: tn(["col-span-12", s.getColClass(K.col)])
@@ -59362,7 +59368,7 @@ function fae(t, e, n, i, r, s) {
59362
59368
  ])) : bt("", !0),
59363
59369
  (K == null ? void 0 : K.type) === "tabs" ? (X(), ne(Et, { key: 2 }, [
59364
59370
  L("nav", Koe, [
59365
- (X(!0), ne(Et, null, Xt((Be = K == null ? void 0 : K.items) == null ? void 0 : Be.slice(0, K == null ? void 0 : K.limit), (pe) => (X(), ne("button", {
59371
+ (X(!0), ne(Et, null, Xt((Fe = K == null ? void 0 : K.items) == null ? void 0 : Fe.slice(0, K == null ? void 0 : K.limit), (pe) => (X(), ne("button", {
59366
59372
  key: (pe == null ? void 0 : pe.name) || (pe == null ? void 0 : pe.component),
59367
59373
  onClick: (_t) => r.component = (pe == null ? void 0 : pe.component) || (pe == null ? void 0 : pe.name),
59368
59374
  class: tn(["px-2.5 h-[30px] py-1.5 relative inline-flex items-center gap-x-2 text-gray-500 hover:bg-gray-100 focus:bg-gray-100 hover:text-gray-800 text-sm whitespace-nowrap rounded-lg focus:outline-none", {
@@ -59375,17 +59381,17 @@ function fae(t, e, n, i, r, s) {
59375
59381
  trigger: "hover",
59376
59382
  placement: "top"
59377
59383
  }, {
59378
- reference: At(() => [
59384
+ reference: Ct(() => [
59379
59385
  Ui(He(pe == null ? void 0 : pe.title), 1)
59380
59386
  ]),
59381
- default: At(() => [
59387
+ default: Ct(() => [
59382
59388
  L("span", Qoe, He(pe == null ? void 0 : pe.info), 1)
59383
59389
  ]),
59384
59390
  _: 2
59385
59391
  }, 1024)) : (X(), ne("span", eae, He(pe == null ? void 0 : pe.title), 1))
59386
59392
  ], 10, Joe))), 128)),
59387
59393
  K != null && K.limit && ((We = (Ge = K == null ? void 0 : K.items) == null ? void 0 : Ge.slice(K == null ? void 0 : K.limit)) != null && We.length) ? (X(), ne("div", tae, [
59388
- Fe(m, {
59394
+ Be(m, {
59389
59395
  options: (Ze = K == null ? void 0 : K.items) == null ? void 0 : Ze.slice(K == null ? void 0 : K.limit),
59390
59396
  "active-tab": r.component,
59391
59397
  "onUpdate:activeTab": e[0] || (e[0] = (pe) => r.component = pe)
@@ -59428,7 +59434,7 @@ function fae(t, e, n, i, r, s) {
59428
59434
  class: tn(["p-[5px] bg-white absolute left-0 rounded-lg rounded-tl-[0] rounded-bl-[0]", [{ "left-[260px]": r.showTabs }]]),
59429
59435
  onClick: e[1] || (e[1] = (pe) => r.showTabs = !r.showTabs)
59430
59436
  }, [
59431
- Fe(g, {
59437
+ Be(g, {
59432
59438
  height: "16",
59433
59439
  width: "16",
59434
59440
  class: "-rotate-90"
@@ -59491,7 +59497,7 @@ const ww = /* @__PURE__ */ ft($oe, [["render", fae], ["__scopeId", "data-v-1dacd
59491
59497
  __name: "vs-calendar-page",
59492
59498
  setup(t) {
59493
59499
  return (e, n) => (X(), ne("div", null, [
59494
- Fe(SR)
59500
+ Be(SR)
59495
59501
  ]));
59496
59502
  }
59497
59503
  }, gae = {
@@ -59531,7 +59537,7 @@ const ww = /* @__PURE__ */ ft($oe, [["render", fae], ["__scopeId", "data-v-1dacd
59531
59537
  const o = qe("VsText"), f = qe("router-link");
59532
59538
  return X(), ne("div", gae, [
59533
59539
  L("div", yae, [
59534
- Fe(o, {
59540
+ Be(o, {
59535
59541
  type: "text",
59536
59542
  modelValue: n.value,
59537
59543
  "onUpdate:modelValue": a[0] || (a[0] = (g) => n.value = g),
@@ -59548,11 +59554,11 @@ const ww = /* @__PURE__ */ ft($oe, [["render", fae], ["__scopeId", "data-v-1dacd
59548
59554
  "data-index": s.index,
59549
59555
  class: "w-full"
59550
59556
  }, [
59551
- Fe(f, {
59557
+ Be(f, {
59552
59558
  class: tn(["flex items-center gap-x-2.5 py-1.5 px-2 text-[13px] text-gray-800 rounded-lg hover:bg-gray-100 focus:outline-none", { "bg-gray-100": ((k = (_ = s.$route) == null ? void 0 : _.query) == null ? void 0 : k.name) === (g == null ? void 0 : g.alias) }]),
59553
59559
  to: xae + "?name=" + (g == null ? void 0 : g.alias)
59554
59560
  }, {
59555
- default: At(() => [
59561
+ default: Ct(() => [
59556
59562
  L("span", _ae, He((g == null ? void 0 : g.title) || (g == null ? void 0 : g.name) || "Не вказано"), 1)
59557
59563
  ]),
59558
59564
  _: 2
@@ -59636,13 +59642,13 @@ const ww = /* @__PURE__ */ ft($oe, [["render", fae], ["__scopeId", "data-v-1dacd
59636
59642
  onChange: () => a(k),
59637
59643
  class: "text-blue-600 border-gray-300 rounded shrink-0 focus:ring-blue-500"
59638
59644
  }, null, 40, Cae),
59639
- Fe(_, {
59645
+ Be(_, {
59640
59646
  modelValue: k.editableValue,
59641
59647
  "onUpdate:modelValue": (C) => k.editableValue = C,
59642
59648
  component: "vs-text",
59643
59649
  onUpdateValue: (C) => f(k, C)
59644
59650
  }, {
59645
- default: At(() => [
59651
+ default: Ct(() => [
59646
59652
  L("span", Tae, He(k.editableValue), 1)
59647
59653
  ]),
59648
59654
  _: 2
@@ -59918,11 +59924,11 @@ const jae = /* @__PURE__ */ ft(Pae, [["render", Vae]]), Hae = { class: "flex ite
59918
59924
  setup(t) {
59919
59925
  const e = ot();
59920
59926
  return (n, i) => (X(), ne("div", Hae, [
59921
- Fe(wae, {
59927
+ Be(wae, {
59922
59928
  list: e.value,
59923
59929
  "onUpdate:list": i[0] || (i[0] = (r) => e.value = r)
59924
59930
  }, null, 8, ["list"]),
59925
- Fe(jae, {
59931
+ Be(jae, {
59926
59932
  list: e.value,
59927
59933
  "onUpdate:list": i[1] || (i[1] = (r) => e.value = r)
59928
59934
  }, null, 8, ["list"])
@@ -60186,7 +60192,7 @@ const nle = /* @__PURE__ */ ft(Qae, [["render", tle]]), ile = { class: "h-full w
60186
60192
  class: "py-2 px-3 inline-flex items-center gap-x-2 text-[14px] font-[400] whitespace-nowrap text-white bg-blue-500 rounded-lg !border-gray-200 hover:bg-blue-700"
60187
60193
  }, " Зберегти ")
60188
60194
  ]),
60189
- Fe(q, {
60195
+ Be(q, {
60190
60196
  modelValue: o.value,
60191
60197
  "onUpdate:modelValue": $[1] || ($[1] = (Ce) => o.value = Ce),
60192
60198
  class: "text-[13px] h-[calc(100%-50px)]"
@@ -60202,19 +60208,19 @@ const nle = /* @__PURE__ */ ft(Qae, [["render", tle]]), ile = { class: "h-full w
60202
60208
  L("dt", lle, He(Ce == null ? void 0 : Ce.title) + ": ", 1),
60203
60209
  L("dd", cle, [
60204
60210
  Ui(He(Ce == null ? void 0 : Ce.name) + " ", 1),
60205
- Fe(K, {
60211
+ Be(K, {
60206
60212
  trigger: "hover",
60207
60213
  placement: "left"
60208
60214
  }, {
60209
- reference: At(() => [
60215
+ reference: Ct(() => [
60210
60216
  L("button", {
60211
60217
  onClick: ($e) => k(Ce == null ? void 0 : Ce.name),
60212
60218
  class: "h-[24px] w-[24px] flex items-center justify-center hover:bg-gray-100 rounded-lg duration-300"
60213
60219
  }, [
60214
- Fe(nle)
60220
+ Be(nle)
60215
60221
  ], 8, ule)
60216
60222
  ]),
60217
- default: At(() => [
60223
+ default: Ct(() => [
60218
60224
  $[5] || ($[5] = Ui(" Скопіювати ключ "))
60219
60225
  ]),
60220
60226
  _: 2
@@ -60224,12 +60230,12 @@ const nle = /* @__PURE__ */ ft(Qae, [["render", tle]]), ile = { class: "h-full w
60224
60230
  ])
60225
60231
  ])
60226
60232
  ]),
60227
- Fe(ge, {
60233
+ Be(ge, {
60228
60234
  visible: m.value,
60229
60235
  "onUpdate:visible": $[4] || ($[4] = (Ce) => m.value = Ce),
60230
60236
  title: "Створти шаблон"
60231
60237
  }, {
60232
- footer: At(() => [
60238
+ footer: Ct(() => [
60233
60239
  L("div", dle, [
60234
60240
  L("button", {
60235
60241
  style: { border: "1px solid #000" },
@@ -60244,8 +60250,8 @@ const nle = /* @__PURE__ */ ft(Qae, [["render", tle]]), ile = { class: "h-full w
60244
60250
  }, " Зберегти ")
60245
60251
  ])
60246
60252
  ]),
60247
- default: At(() => [
60248
- Fe(Z, {
60253
+ default: Ct(() => [
60254
+ Be(Z, {
60249
60255
  ref_key: "form",
60250
60256
  ref: g,
60251
60257
  scheme: M,
@@ -60371,23 +60377,23 @@ const nle = /* @__PURE__ */ ft(Qae, [["render", tle]]), ile = { class: "h-full w
60371
60377
  key: 0,
60372
60378
  placement: "bottom"
60373
60379
  }, {
60374
- reference: At(() => {
60380
+ reference: Ct(() => {
60375
60381
  var ke;
60376
60382
  return [
60377
60383
  L("button", wle, [
60378
60384
  Ui(" Обранo: " + He((ke = o.value) == null ? void 0 : ke.length) + " ", 1),
60379
- Fe(CR, {
60385
+ Be(CR, {
60380
60386
  height: "14",
60381
60387
  width: "14"
60382
60388
  })
60383
60389
  ])
60384
60390
  ];
60385
60391
  }),
60386
- default: At(() => [
60392
+ default: Ct(() => [
60387
60393
  L("div", kle, [
60388
60394
  L("ul", Sle, [
60389
60395
  (X(!0), ne(Et, null, Xt(o.value, (ke) => {
60390
- var Be, Ge;
60396
+ var Fe, Ge;
60391
60397
  return X(), ne("li", {
60392
60398
  key: ke == null ? void 0 : ke.id,
60393
60399
  class: "p-2 hover:bg-gray-100 rounded-[8px] cursor-pointer"
@@ -60408,12 +60414,12 @@ const nle = /* @__PURE__ */ ft(Qae, [["render", tle]]), ile = { class: "h-full w
60408
60414
  m.value.includes(ke == null ? void 0 : ke.id) ? "bg-blue-600 border-0" : "bg-white"
60409
60415
  ])
60410
60416
  }, [
60411
- Fe(ny, {
60417
+ Be(ny, {
60412
60418
  height: "12",
60413
60419
  width: "12"
60414
60420
  })
60415
60421
  ], 2),
60416
- Ui(" " + He(ke[(Ge = (Be = r.value) == null ? void 0 : Be.meta) == null ? void 0 : Ge.title]), 1)
60422
+ Ui(" " + He(ke[(Ge = (Fe = r.value) == null ? void 0 : Fe.meta) == null ? void 0 : Ge.title]), 1)
60417
60423
  ])
60418
60424
  ]);
60419
60425
  }), 128))
@@ -60429,7 +60435,7 @@ const nle = /* @__PURE__ */ ft(Qae, [["render", tle]]), ile = { class: "h-full w
60429
60435
  ]),
60430
60436
  L("ul", Tle, [
60431
60437
  (X(!0), ne(Et, null, Xt(($e = r.value) == null ? void 0 : $e.rows, (ke) => {
60432
- var Be, Ge;
60438
+ var Fe, Ge;
60433
60439
  return X(), ne("li", {
60434
60440
  key: ke == null ? void 0 : ke.id,
60435
60441
  class: "p-2 hover:bg-gray-100 rounded-[8px] cursor-pointer"
@@ -60450,12 +60456,12 @@ const nle = /* @__PURE__ */ ft(Qae, [["render", tle]]), ile = { class: "h-full w
60450
60456
  m.value.includes(ke == null ? void 0 : ke.id) ? "bg-blue-600 border-0" : "bg-white"
60451
60457
  ])
60452
60458
  }, [
60453
- Fe(ny, {
60459
+ Be(ny, {
60454
60460
  height: "12",
60455
60461
  width: "12"
60456
60462
  })
60457
60463
  ], 2),
60458
- Ui(" " + He(ke[(Ge = (Be = r.value) == null ? void 0 : Be.meta) == null ? void 0 : Ge.title]), 1)
60464
+ Ui(" " + He(ke[(Ge = (Fe = r.value) == null ? void 0 : Fe.meta) == null ? void 0 : Ge.title]), 1)
60459
60465
  ])
60460
60466
  ]);
60461
60467
  }), 128))
@@ -60598,14 +60604,14 @@ const nle = /* @__PURE__ */ ft(Qae, [["render", tle]]), ile = { class: "h-full w
60598
60604
  onClick: k[0] || (k[0] = (q) => s.value = !0),
60599
60605
  class: "bg-[#DBEAFE] h-[30px] w-[30px] text-blue-700 shrink-0 flex items-center justify-center rounded-lg hover:bg-blue-200"
60600
60606
  }, [
60601
- Fe(V1, {
60607
+ Be(V1, {
60602
60608
  height: "16",
60603
60609
  width: "16"
60604
60610
  })
60605
60611
  ])
60606
60612
  ]),
60607
60613
  L("div", jle, [
60608
- Fe(C, {
60614
+ Be(C, {
60609
60615
  type: "text",
60610
60616
  modelValue: n.value,
60611
60617
  "onUpdate:modelValue": k[1] || (k[1] = (q) => n.value = q),
@@ -60622,11 +60628,11 @@ const nle = /* @__PURE__ */ ft(Qae, [["render", tle]]), ile = { class: "h-full w
60622
60628
  "data-index": _.index,
60623
60629
  class: "w-full"
60624
60630
  }, [
60625
- Fe(M, {
60631
+ Be(M, {
60626
60632
  class: tn(["flex items-center gap-x-2.5 py-1.5 px-2 text-[13px] text-gray-800 rounded-lg hover:bg-gray-100 focus:outline-none", { "bg-gray-100": ((Z = (K = _.$route) == null ? void 0 : K.query) == null ? void 0 : Z.name) === (q == null ? void 0 : q.name) }]),
60627
60633
  to: Gle + "?name=" + (q == null ? void 0 : q.name)
60628
60634
  }, {
60629
- default: At(() => [
60635
+ default: Ct(() => [
60630
60636
  L("span", Wle, He((q == null ? void 0 : q.title) || (q == null ? void 0 : q.name) || "Не вказано"), 1)
60631
60637
  ]),
60632
60638
  _: 2
@@ -60635,12 +60641,12 @@ const nle = /* @__PURE__ */ ft(Qae, [["render", tle]]), ile = { class: "h-full w
60635
60641
  }), 128))
60636
60642
  ])) : bt("", !0)
60637
60643
  ]),
60638
- Fe(z, {
60644
+ Be(z, {
60639
60645
  visible: s.value,
60640
60646
  "onUpdate:visible": k[4] || (k[4] = (q) => s.value = q),
60641
60647
  title: "Створти шаблон"
60642
60648
  }, {
60643
- footer: At(() => [
60649
+ footer: Ct(() => [
60644
60650
  L("div", qle, [
60645
60651
  L("button", {
60646
60652
  style: { border: "1px solid #000" },
@@ -60655,8 +60661,8 @@ const nle = /* @__PURE__ */ ft(Qae, [["render", tle]]), ile = { class: "h-full w
60655
60661
  }, " Зберегти ")
60656
60662
  ])
60657
60663
  ]),
60658
- default: At(() => [
60659
- Fe(O, {
60664
+ default: Ct(() => [
60665
+ Be(O, {
60660
60666
  ref_key: "form",
60661
60667
  ref: a,
60662
60668
  scheme: e,
@@ -60676,7 +60682,7 @@ const nle = /* @__PURE__ */ ft(Qae, [["render", tle]]), ile = { class: "h-full w
60676
60682
  return (n, i) => {
60677
60683
  var r, s;
60678
60684
  return X(), ne("div", Zle, [
60679
- Fe(Yle, {
60685
+ Be(Yle, {
60680
60686
  controlNavbar: e.value,
60681
60687
  "onUpdate:controlNavbar": i[0] || (i[0] = (a) => e.value = a)
60682
60688
  }, null, 8, ["controlNavbar"]),
@@ -60721,7 +60727,7 @@ const nle = /* @__PURE__ */ ft(Qae, [["render", tle]]), ile = { class: "h-full w
60721
60727
  const o = qe("VsText"), f = qe("router-link");
60722
60728
  return X(), ne("div", Jle, [
60723
60729
  L("div", Qle, [
60724
- Fe(o, {
60730
+ Be(o, {
60725
60731
  type: "text",
60726
60732
  modelValue: e.value,
60727
60733
  "onUpdate:modelValue": a[0] || (a[0] = (g) => e.value = g),
@@ -60738,11 +60744,11 @@ const nle = /* @__PURE__ */ ft(Qae, [["render", tle]]), ile = { class: "h-full w
60738
60744
  "data-index": s.index,
60739
60745
  class: "w-full"
60740
60746
  }, [
60741
- Fe(f, {
60747
+ Be(f, {
60742
60748
  class: tn(["flex items-center gap-x-2.5 py-1.5 px-2 text-[13px] text-gray-800 rounded-lg hover:bg-gray-100 focus:outline-none", { "bg-gray-100": ((k = (_ = s.$route) == null ? void 0 : _.query) == null ? void 0 : k.name) === (g == null ? void 0 : g.name) }]),
60743
60749
  to: ice + "?name=" + (g == null ? void 0 : g.name)
60744
60750
  }, {
60745
- default: At(() => [
60751
+ default: Ct(() => [
60746
60752
  L("span", nce, He((g == null ? void 0 : g.title) || (g == null ? void 0 : g.name) || "Не вказано"), 1)
60747
60753
  ]),
60748
60754
  _: 2
@@ -60803,7 +60809,7 @@ const nle = /* @__PURE__ */ ft(Qae, [["render", tle]]), ile = { class: "h-full w
60803
60809
  ], -1)),
60804
60810
  L("div", oce, [
60805
60811
  L("div", ace, [
60806
- Fe(O, {
60812
+ Be(O, {
60807
60813
  type: "text",
60808
60814
  placeholder: "Пошук...",
60809
60815
  "onUpdate:modelValue": Eo(g),
@@ -60873,7 +60879,7 @@ const nle = /* @__PURE__ */ ft(Qae, [["render", tle]]), ile = { class: "h-full w
60873
60879
  return (e, n) => {
60874
60880
  var i, r;
60875
60881
  return X(), ne("div", kce, [
60876
- Fe(rce),
60882
+ Be(rce),
60877
60883
  L("div", Sce, [
60878
60884
  (r = (i = e.$route) == null ? void 0 : i.query) != null && r.name ? (X(), zt(wce, { key: 0 })) : (X(), zt(Sh, { key: 1 }))
60879
60885
  ])
@@ -61046,7 +61052,7 @@ function Bce(t, e, n, i, r, s) {
61046
61052
  class: "px-3 py-3 mr-4 bg-gray-100 rounded rounded-lg column-width"
61047
61053
  }, [
61048
61054
  L("p", Nce, He(f.title), 1),
61049
- Fe(o, {
61055
+ Be(o, {
61050
61056
  list: f.tasks,
61051
61057
  animation: 200,
61052
61058
  "ghost-class": "ghost-card",
@@ -61054,8 +61060,8 @@ function Bce(t, e, n, i, r, s) {
61054
61060
  }, Pz({ _: 2 }, [
61055
61061
  Xt(f.tasks, (m) => ({
61056
61062
  name: "item",
61057
- fn: At(() => [
61058
- Fe(a, {
61063
+ fn: Ct(() => [
61064
+ Be(a, {
61059
61065
  task: m,
61060
61066
  class: "mt-3 cursor-move"
61061
61067
  }, null, 8, ["task"])
@@ -61070,7 +61076,7 @@ const Fce = /* @__PURE__ */ ft(Oce, [["render", Bce], ["__scopeId", "data-v-00f1
61070
61076
  __name: "kanban",
61071
61077
  setup(t) {
61072
61078
  return (e, n) => (X(), ne("div", $ce, [
61073
- Fe(Fce)
61079
+ Be(Fce)
61074
61080
  ]));
61075
61081
  }
61076
61082
  }, jce = {
@@ -61204,14 +61210,14 @@ const Xce = /* @__PURE__ */ ft(Gce, [["render", Zce]]), Kce = async (t, e, n, i
61204
61210
  ref_key: "infoPopover",
61205
61211
  ref: s
61206
61212
  }, [
61207
- Fe(qce, {
61213
+ Be(qce, {
61208
61214
  height: "20",
61209
61215
  width: "20",
61210
61216
  class: "text-gray-700 cursor-pointer"
61211
61217
  }),
61212
61218
  (X(), zt(aT, { to: "#modal" }, [
61213
- Fe(Hy, { name: "fade" }, {
61214
- default: At(() => {
61219
+ Be(Hy, { name: "fade" }, {
61220
+ default: Ct(() => {
61215
61221
  var O;
61216
61222
  return [
61217
61223
  gs(L("div", {
@@ -61229,7 +61235,7 @@ const Xce = /* @__PURE__ */ ft(Gce, [["render", Zce]]), Kce = async (t, e, n, i
61229
61235
  ]),
61230
61236
  L("dd", tue, [
61231
61237
  L("p", nue, [
61232
- Fe(II, {
61238
+ Be(II, {
61233
61239
  row: (q = ($ = i.value) == null ? void 0 : $.rows) == null ? void 0 : q[0],
61234
61240
  column: { ...z, edit: !1 }
61235
61241
  }, null, 8, ["row", "column"])
@@ -61237,7 +61243,7 @@ const Xce = /* @__PURE__ */ ft(Gce, [["render", Zce]]), Kce = async (t, e, n, i
61237
61243
  ])
61238
61244
  ]);
61239
61245
  }), 256)) : (X(), ne("div", iue, [
61240
- Fe(Xce, {
61246
+ Be(Xce, {
61241
61247
  height: "40",
61242
61248
  width: "40",
61243
61249
  class: "animate-spin"
@@ -61274,7 +61280,7 @@ const Xce = /* @__PURE__ */ ft(Gce, [["render", Zce]]), Kce = async (t, e, n, i
61274
61280
  const f = qe("VsConfirm");
61275
61281
  return X(), ne(Et, null, [
61276
61282
  L("div", null, [
61277
- Fe(kw, {
61283
+ Be(kw, {
61278
61284
  table: (g = (m = a.$route) == null ? void 0 : m.params) == null ? void 0 : g.table,
61279
61285
  id: (k = (_ = a.$route) == null ? void 0 : _.params) == null ? void 0 : k.id
61280
61286
  }, null, 8, ["table", "id"]),
@@ -61287,12 +61293,12 @@ const Xce = /* @__PURE__ */ ft(Gce, [["render", Zce]]), Kce = async (t, e, n, i
61287
61293
  onClick: r
61288
61294
  }, " Редагувати Tokens 1212 ")
61289
61295
  ]),
61290
- Fe(f, {
61296
+ Be(f, {
61291
61297
  visible: i.value,
61292
61298
  "onUpdate:visible": o[1] || (o[1] = (C) => i.value = C),
61293
61299
  title: "Are you sure?"
61294
61300
  }, {
61295
- footer: At(() => o[2] || (o[2] = [
61301
+ footer: Ct(() => o[2] || (o[2] = [
61296
61302
  L("div", { class: "flex gap-[4px] p-[16px]" }, [
61297
61303
  L("button", {
61298
61304
  type: "button",
@@ -61305,7 +61311,7 @@ const Xce = /* @__PURE__ */ ft(Gce, [["render", Zce]]), Kce = async (t, e, n, i
61305
61311
  }, " Видалити ")
61306
61312
  ], -1)
61307
61313
  ])),
61308
- default: At(() => [
61314
+ default: Ct(() => [
61309
61315
  o[3] || (o[3] = L("p", { class: "mt-1 text-sm text-gray-600 dark:text-neutral-400" }, " Are you sure you want to delete this message? ", -1)),
61310
61316
  o[4] || (o[4] = L("div", { class: "flex items-center mt-5" }, [
61311
61317
  L("input", {