@bagelink/vue 1.18.3 → 1.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/lightbox/AssetPreview.test.d.ts +2 -0
- package/dist/components/lightbox/AssetPreview.test.d.ts.map +1 -0
- package/dist/components/lightbox/AssetPreview.vue.d.ts +2 -0
- package/dist/components/lightbox/AssetPreview.vue.d.ts.map +1 -1
- package/dist/core.css +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.css +1 -1
- package/dist/index.mjs +108 -87
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/form/inputs/DateInput.vue +1 -1
- package/src/components/layout/AppContent.vue +1 -1
- package/src/components/lightbox/AssetPreview.test.ts +37 -0
- package/src/components/lightbox/AssetPreview.vue +44 -3
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as gu, r as _3 } from "./chunk-Fx_iipZ-.js";
|
|
2
|
-
import { Comment as wu, Fragment as Ve, Teleport as uh, Text as Ru, Transition as ci, TransitionGroup as Su, computed as z, createApp as Dd, createBlock as oe, createCommentVNode as f, createElementBlock as y, createElementVNode as R, createSlots as Ud, createTextVNode as _e, createVNode as ne, defineComponent as we, effectScope as $3, getCurrentInstance as Vn, getCurrentScope as Io, guardReactiveProps as xt, h as cl, inject as pa, isMemoSame as q3, isRef as Ui, isVNode as ob, markRaw as Zh, mergeModels as at, mergeProps as hl, nextTick as ol, normalizeClass as re, normalizeProps as zt, normalizeStyle as ze, onBeforeUnmount as ia, onBeforeUpdate as eN, onMounted as qe, onScopeDispose as si, onUnmounted as
|
|
2
|
+
import { Comment as wu, Fragment as Ve, Teleport as uh, Text as Ru, Transition as ci, TransitionGroup as Su, computed as z, createApp as Dd, createBlock as oe, createCommentVNode as f, createElementBlock as y, createElementVNode as R, createSlots as Ud, createTextVNode as _e, createVNode as ne, defineComponent as we, effectScope as $3, getCurrentInstance as Vn, getCurrentScope as Io, guardReactiveProps as xt, h as cl, inject as pa, isMemoSame as q3, isRef as Ui, isVNode as ob, markRaw as Zh, mergeModels as at, mergeProps as hl, nextTick as ol, normalizeClass as re, normalizeProps as zt, normalizeStyle as ze, onBeforeUnmount as ia, onBeforeUpdate as eN, onMounted as qe, onScopeDispose as si, onUnmounted as Bl, onUpdated as vu, openBlock as Y, provide as td, reactive as ad, readonly as bh, ref as k, renderList as Fe, renderSlot as xe, resolveComponent as wa, resolveDirective as nt, resolveDynamicComponent as Cl, shallowReactive as lN, shallowRef as da, toDisplayString as le, toHandlers as Od, toRaw as tN, toValue as Oe, unref as N, useAttrs as Fu, useCssVars as rh, useId as hh, useModel as Dl, useSlots as Tl, vModelCheckbox as xo, vModelDynamic as aN, vModelRadio as nN, vModelText as Ed, vShow as _n, watch as Se, watchEffect as Wh, withCtx as ve, withDirectives as ll, withKeys as Al, withModifiers as ul } from "vue";
|
|
3
3
|
import { RouterLink as ph, useRoute as yc, useRouter as iN } from "vue-router";
|
|
4
4
|
var dN = /* @__PURE__ */ we({
|
|
5
5
|
__name: "Accordion",
|
|
@@ -4761,7 +4761,7 @@ ${t.event.url}`), `https://calendar.google.com/calendar/render?${b.toString()}`;
|
|
|
4761
4761
|
}
|
|
4762
4762
|
qe(() => {
|
|
4763
4763
|
Z(), window.addEventListener("resize", Z);
|
|
4764
|
-
}),
|
|
4764
|
+
}), Bl(() => {
|
|
4765
4765
|
window.removeEventListener("resize", Z);
|
|
4766
4766
|
});
|
|
4767
4767
|
async function r(L) {
|
|
@@ -4824,7 +4824,7 @@ ${t.event.url}`), `https://calendar.google.com/calendar/render?${b.toString()}`;
|
|
|
4824
4824
|
style: N(s),
|
|
4825
4825
|
tabindex: e.disabled ? -1 : 0,
|
|
4826
4826
|
onClick: ul(r, ["stop"]),
|
|
4827
|
-
onKeydown: [
|
|
4827
|
+
onKeydown: [Al(b, ["enter"]), Al(b, ["space"])]
|
|
4828
4828
|
}), {
|
|
4829
4829
|
default: ve(() => [e.loading ? (Y(), oe(N(yn), {
|
|
4830
4830
|
key: 0,
|
|
@@ -5056,7 +5056,7 @@ function Tn(e) {
|
|
|
5056
5056
|
for (const s of d) s.isIntersecting && (i(), t?.disconnect());
|
|
5057
5057
|
}, { threshold: 0.25 }), e.el.value ? t.observe(e.el.value) : i();
|
|
5058
5058
|
}
|
|
5059
|
-
}),
|
|
5059
|
+
}), Bl(() => {
|
|
5060
5060
|
t?.disconnect(), cancelAnimationFrame(a);
|
|
5061
5061
|
}), { progress: l };
|
|
5062
5062
|
}
|
|
@@ -8373,7 +8373,7 @@ function gL(e, l, t) {
|
|
|
8373
8373
|
const n = t;
|
|
8374
8374
|
n[tn] && n[tn](a), a.on("*", ei);
|
|
8375
8375
|
}
|
|
8376
|
-
}, l),
|
|
8376
|
+
}, l), Bl(() => {
|
|
8377
8377
|
const n = t;
|
|
8378
8378
|
process.env.NODE_ENV !== "production" && (a && a.off("*", ei), n[qn] && n[qn](), delete l.__VUE_I18N__), e.__deleteInstance(l);
|
|
8379
8379
|
const i = n[Ii];
|
|
@@ -10581,7 +10581,7 @@ function o5() {
|
|
|
10581
10581
|
}
|
|
10582
10582
|
return typeof document < "u" && (document.documentElement.lang || navigator?.language) || "en";
|
|
10583
10583
|
}
|
|
10584
|
-
function
|
|
10584
|
+
function _l(e, l = {}) {
|
|
10585
10585
|
const t = o5();
|
|
10586
10586
|
let a;
|
|
10587
10587
|
try {
|
|
@@ -10631,7 +10631,7 @@ function m5(e, l) {
|
|
|
10631
10631
|
c(), e.value && (t.value = e.value.clientWidth || 0, o = new ResizeObserver((u) => {
|
|
10632
10632
|
for (const Z of u) t.value = Z.contentRect.width;
|
|
10633
10633
|
}), o.observe(e.value));
|
|
10634
|
-
}),
|
|
10634
|
+
}), Bl(() => o?.disconnect()), {
|
|
10635
10635
|
width: t,
|
|
10636
10636
|
height: a,
|
|
10637
10637
|
pad: n,
|
|
@@ -10799,8 +10799,8 @@ var lV = ["width", "height"], tV = { key: 0 }, aV = ["id", "y2"], nV = ["stop-co
|
|
|
10799
10799
|
}))), me = z(() => Q.value == null ? [] : u.value.map((I, E) => ({
|
|
10800
10800
|
name: I.name,
|
|
10801
10801
|
color: mt(I.color, E),
|
|
10802
|
-
value:
|
|
10803
|
-
}))), Ze = z(() => Q.value == null ? "" : Cs(Z.value[Q.value])), ee = z(() => Q.value == null || !h.value ? null :
|
|
10802
|
+
value: _l(I.points[Q.value]?.y ?? 0, r.value)
|
|
10803
|
+
}))), Ze = z(() => Q.value == null ? "" : Cs(Z.value[Q.value])), ee = z(() => Q.value == null || !h.value ? null : _l(u.value.reduce((I, E) => I + (E.points[Q.value]?.y ?? 0), 0), r.value)), x = u5(te, a);
|
|
10804
10804
|
return (I, E) => (Y(), y("div", {
|
|
10805
10805
|
ref_key: "el",
|
|
10806
10806
|
ref: t,
|
|
@@ -10839,7 +10839,7 @@ var lV = ["width", "height"], tV = { key: 0 }, aV = ["id", "y2"], nV = ["stop-co
|
|
|
10839
10839
|
class: "bgl-chart__ytick",
|
|
10840
10840
|
x: -8,
|
|
10841
10841
|
y: X.value(F) + 3
|
|
10842
|
-
}, le(N(
|
|
10842
|
+
}, le(N(_l)(F, W.value)), 9, oV)]))), 128))])) : f("", !0),
|
|
10843
10843
|
V.value ? (Y(!0), y(Ve, { key: 1 }, Fe(T.value, (F, $) => (Y(), y("path", {
|
|
10844
10844
|
key: `a${$}`,
|
|
10845
10845
|
d: F.areaPath,
|
|
@@ -10997,8 +10997,8 @@ var lV = ["width", "height"], tV = { key: 0 }, aV = ["id", "y2"], nV = ["stop-co
|
|
|
10997
10997
|
const Q = z(() => w.value == null ? "" : Cs(u.value[w.value])), te = z(() => w.value == null ? [] : m.value.map((ce, Xe) => ({
|
|
10998
10998
|
name: ce.name,
|
|
10999
10999
|
color: mt(ce.color, Xe),
|
|
11000
|
-
value:
|
|
11001
|
-
}))), P = z(() => w.value == null || !l.stacked ? null :
|
|
11000
|
+
value: _l(ce.points[w.value]?.y ?? 0, r.value)
|
|
11001
|
+
}))), P = z(() => w.value == null || !l.stacked ? null : _l(h.value[w.value] ?? 0, r.value)), H = u5(D, a);
|
|
11002
11002
|
return (ce, Xe) => (Y(), y("div", NV, [R("div", {
|
|
11003
11003
|
ref_key: "el",
|
|
11004
11004
|
ref: t,
|
|
@@ -11039,7 +11039,7 @@ var lV = ["width", "height"], tV = { key: 0 }, aV = ["id", "y2"], nV = ["stop-co
|
|
|
11039
11039
|
class: "bgl-chart__ytick",
|
|
11040
11040
|
x: -8,
|
|
11041
11041
|
y: b.value(me) + 3
|
|
11042
|
-
}, le(N(
|
|
11042
|
+
}, le(N(_l)(me, W.value)), 9, xV)]))), 128))])) : f("", !0),
|
|
11043
11043
|
(Y(!0), y(Ve, null, Fe(M.value, (me, Ze) => (Y(), y("rect", {
|
|
11044
11044
|
key: Ze,
|
|
11045
11045
|
x: me.x,
|
|
@@ -11161,7 +11161,7 @@ var FV = [
|
|
|
11161
11161
|
compact: !0
|
|
11162
11162
|
}));
|
|
11163
11163
|
function d(T) {
|
|
11164
|
-
return
|
|
11164
|
+
return _l(T, {
|
|
11165
11165
|
currency: l.currency,
|
|
11166
11166
|
compact: !0
|
|
11167
11167
|
});
|
|
@@ -11187,7 +11187,7 @@ var FV = [
|
|
|
11187
11187
|
tagPct: me && l.labels !== "value" ? `${Xe.toFixed(0)}%` : ""
|
|
11188
11188
|
};
|
|
11189
11189
|
});
|
|
11190
|
-
}), u = z(() => l.centerValue !== void 0 ? String(l.centerValue) : l.showTotal ?
|
|
11190
|
+
}), u = z(() => l.centerValue !== void 0 ? String(l.centerValue) : l.showTotal ? _l(s.value, i.value) : ""), Z = k(null), r = k(0), W = k(0);
|
|
11191
11191
|
function h(T) {
|
|
11192
11192
|
Z.value = T;
|
|
11193
11193
|
}
|
|
@@ -11346,26 +11346,26 @@ var FV = [
|
|
|
11346
11346
|
})) : l.data ?? []), o = z(() => {
|
|
11347
11347
|
const O = c.value[0]?.value || 1;
|
|
11348
11348
|
return c.value.map((Q, te) => {
|
|
11349
|
-
const P = c.value[te - 1]?.value, H = Q.color ? mt(Q.color) : l.mode === "multi" ? mt(void 0, te) : ju(l.color, c.value.length, te), ce = Q.value / O * 100, Xe = P ? Q.value / P * 100 : 100, me = te === 0, Ze = [`<b>${
|
|
11349
|
+
const P = c.value[te - 1]?.value, H = Q.color ? mt(Q.color) : l.mode === "multi" ? mt(void 0, te) : ju(l.color, c.value.length, te), ce = Q.value / O * 100, Xe = P ? Q.value / P * 100 : 100, me = te === 0, Ze = [`<b>${_l(Q.value, n.value)}</b>`];
|
|
11350
11350
|
!me && l.fromTop && Ze.push(`${ce.toFixed(1)}% of top`), !me && l.fromPrev && Ze.push(`${Xe.toFixed(1)}% from previous`), d.value && (l.series ?? []).forEach((x) => {
|
|
11351
11351
|
const I = x.data[te] ?? 0;
|
|
11352
|
-
I > 0 && Ze.push(`<span style="opacity:.7">${x.name}:</span> ${
|
|
11352
|
+
I > 0 && Ze.push(`<span style="opacity:.7">${x.name}:</span> ${_l(I, n.value)}`);
|
|
11353
11353
|
});
|
|
11354
11354
|
const ee = d.value ? (l.series ?? []).map((x, I) => ({
|
|
11355
11355
|
name: x.name,
|
|
11356
11356
|
color: s.value[I].color,
|
|
11357
|
-
value:
|
|
11357
|
+
value: _l(x.data[te] ?? 0, n.value),
|
|
11358
11358
|
raw: x.data[te] ?? 0
|
|
11359
11359
|
})).filter((x) => x.raw > 0) : [{
|
|
11360
11360
|
name: Q.label,
|
|
11361
11361
|
color: H,
|
|
11362
|
-
value:
|
|
11362
|
+
value: _l(Q.value, n.value),
|
|
11363
11363
|
raw: Q.value
|
|
11364
11364
|
}];
|
|
11365
11365
|
return {
|
|
11366
11366
|
label: Q.label,
|
|
11367
11367
|
value: Q.value,
|
|
11368
|
-
display:
|
|
11368
|
+
display: _l(Q.value, n.value),
|
|
11369
11369
|
frac: Q.value / O,
|
|
11370
11370
|
fromTop: ce,
|
|
11371
11371
|
fromPrev: Xe,
|
|
@@ -11608,7 +11608,7 @@ var FV = [
|
|
|
11608
11608
|
const b = c.value, p = c.value + G, L = m(b), X = m(p), M = G > 180 ? 1 : 0;
|
|
11609
11609
|
return `M ${L.x} ${L.y} A ${i.value} ${i.value} 0 ${M} 1 ${X.x} ${X.y}`;
|
|
11610
11610
|
}
|
|
11611
|
-
const Z = z(() => u(1)), r = z(() => u(o.value * a.value)), W = z(() =>
|
|
11611
|
+
const Z = z(() => u(1)), r = z(() => u(o.value * a.value)), W = z(() => _l(l.value, {
|
|
11612
11612
|
prefix: l.prefix,
|
|
11613
11613
|
suffix: l.suffix
|
|
11614
11614
|
}));
|
|
@@ -12076,8 +12076,8 @@ var LT = ["transform"], XT = [
|
|
|
12076
12076
|
}), L = z(() => p.value ? [{
|
|
12077
12077
|
name: p.value.label,
|
|
12078
12078
|
color: p.value.fill,
|
|
12079
|
-
value:
|
|
12080
|
-
}] : []), X = _u(r, W), M = z(() =>
|
|
12079
|
+
value: _l(p.value.value, d.value)
|
|
12080
|
+
}] : []), X = _u(r, W), M = z(() => _l(0, d.value)), T = z(() => _l(c.value, d.value)), V = k(1), g = k(0), S = k(0), w = k(!1), D = k(null), C = z(() => `translate(${g.value} ${S.value}) scale(${V.value})`), O = z(() => V.value > Wi + 1e-3);
|
|
12081
12081
|
function Q(I, E, F) {
|
|
12082
12082
|
return Math.min(F, Math.max(E, I));
|
|
12083
12083
|
}
|
|
@@ -12356,7 +12356,7 @@ var LT = ["transform"], XT = [
|
|
|
12356
12356
|
return n.map((d, s) => ({
|
|
12357
12357
|
label: d.label,
|
|
12358
12358
|
value: d.value,
|
|
12359
|
-
display:
|
|
12359
|
+
display: _l(d.value, t.value),
|
|
12360
12360
|
pct: d.value / i * 100,
|
|
12361
12361
|
color: d.color ? mt(d.color) : l.mode === "multi" ? mt(void 0, s) : ju(l.color, n.length, s)
|
|
12362
12362
|
}));
|
|
@@ -12490,7 +12490,7 @@ var LT = ["transform"], XT = [
|
|
|
12490
12490
|
frame: { type: Boolean }
|
|
12491
12491
|
},
|
|
12492
12492
|
setup(e) {
|
|
12493
|
-
const l = e, t = z(() => mt(l.color)), a = z(() => typeof l.value == "number" ?
|
|
12493
|
+
const l = e, t = z(() => mt(l.color)), a = z(() => typeof l.value == "number" ? _l(l.value, {
|
|
12494
12494
|
currency: l.currency,
|
|
12495
12495
|
prefix: l.prefix,
|
|
12496
12496
|
suffix: l.suffix
|
|
@@ -13700,7 +13700,7 @@ var KI = ["src", "title"], HI = [
|
|
|
13700
13700
|
o.value.some((L) => L.date.getTime() >= p - 864e5) && (m.value = !0, ol(() => b(/* @__PURE__ */ new Date(), "instant", "nearest")));
|
|
13701
13701
|
}), qe(() => {
|
|
13702
13702
|
d.value?.addEventListener("scroll", W);
|
|
13703
|
-
}),
|
|
13703
|
+
}), Bl(() => {
|
|
13704
13704
|
d.value?.removeEventListener("scroll", W), clearTimeout(r);
|
|
13705
13705
|
}), (p, L) => (Y(), y("div", {
|
|
13706
13706
|
ref_key: "containerRef",
|
|
@@ -13823,7 +13823,7 @@ var KI = ["src", "title"], HI = [
|
|
|
13823
13823
|
}
|
|
13824
13824
|
return qe(() => {
|
|
13825
13825
|
document.addEventListener("mousedown", r), Z(), o.value = setInterval(Z, 6e4);
|
|
13826
|
-
}),
|
|
13826
|
+
}), Bl(() => {
|
|
13827
13827
|
document.removeEventListener("mousedown", r), document.removeEventListener("mousemove", W), document.removeEventListener("mouseup", h), o.value && clearInterval(o.value);
|
|
13828
13828
|
}), (p, L) => (Y(), y("div", bx, [
|
|
13829
13829
|
R("div", rx, [L[0] || (L[0] = R("div", null, null, -1)), R("div", null, le(N(kl)(e.startDate)), 1)]),
|
|
@@ -14269,7 +14269,7 @@ var KI = ["src", "title"], HI = [
|
|
|
14269
14269
|
ce(), X.value = setInterval(ce, 6e4), ol(() => {
|
|
14270
14270
|
Ze(6);
|
|
14271
14271
|
});
|
|
14272
|
-
}),
|
|
14272
|
+
}), Bl(() => {
|
|
14273
14273
|
document.removeEventListener("mousemove", te), document.removeEventListener("mouseup", P), document.removeEventListener("mousemove", G), document.removeEventListener("mouseup", b), X.value && clearInterval(X.value);
|
|
14274
14274
|
}), (ee, x) => (Y(), y("div", fx, [
|
|
14275
14275
|
R("div", {
|
|
@@ -15163,7 +15163,7 @@ function lZ(e = {}) {
|
|
|
15163
15163
|
function ae() {
|
|
15164
15164
|
W?.(), W = void 0;
|
|
15165
15165
|
}
|
|
15166
|
-
return Vn() &&
|
|
15166
|
+
return Vn() && Bl(ae), {
|
|
15167
15167
|
isDragging: l,
|
|
15168
15168
|
dragElement: t,
|
|
15169
15169
|
initDraggableContainer: $,
|
|
@@ -20213,7 +20213,7 @@ var Q5 = class F2 {
|
|
|
20213
20213
|
}, [ne(N(Wl), {
|
|
20214
20214
|
modelValue: s.value,
|
|
20215
20215
|
"onUpdate:modelValue": H[0] || (H[0] = (ce) => s.value = ce),
|
|
20216
|
-
iconStart: "
|
|
20216
|
+
iconStart: "calendar_month",
|
|
20217
20217
|
placeholder: e.underlined ? " " : N(Qe)(e.placeholder) || te.value,
|
|
20218
20218
|
required: e.underlined ? !1 : e.required,
|
|
20219
20219
|
disabled: !t.value,
|
|
@@ -21063,7 +21063,7 @@ var bR = ["title"], rR = ["for"], hR = {
|
|
|
21063
21063
|
autocorrect: "off",
|
|
21064
21064
|
spellcheck: "false",
|
|
21065
21065
|
onInput: L,
|
|
21066
|
-
onKeydown: [
|
|
21066
|
+
onKeydown: [Al(ul(W, ["prevent"]), ["up"]), Al(ul(h, ["prevent"]), ["down"])]
|
|
21067
21067
|
}, null, 42, UR), [[
|
|
21068
21068
|
Ed,
|
|
21069
21069
|
p.value,
|
|
@@ -23249,7 +23249,7 @@ var hv = ["aria-labelledby", "aria-label"], Wv = ["id"], pv = { key: 0 }, Gv = [
|
|
|
23249
23249
|
"aria-expanded": "true",
|
|
23250
23250
|
"aria-controls": u,
|
|
23251
23251
|
"aria-activedescendant": w.value,
|
|
23252
|
-
onKeydown: [Ze[2] || (Ze[2] =
|
|
23252
|
+
onKeydown: [Ze[2] || (Ze[2] = Al(ul((ee) => O("down"), ["prevent"]), ["down"])), Ze[3] || (Ze[3] = Al(ul((ee) => O("up"), ["prevent"]), ["up"]))]
|
|
23253
23253
|
}, null, 8, [
|
|
23254
23254
|
"modelValue",
|
|
23255
23255
|
"placeholder",
|
|
@@ -23269,7 +23269,7 @@ var hv = ["aria-labelledby", "aria-label"], Wv = ["id"], pv = { key: 0 }, Gv = [
|
|
|
23269
23269
|
"aria-expanded": p.value,
|
|
23270
23270
|
"aria-controls": u,
|
|
23271
23271
|
"aria-activedescendant": w.value,
|
|
23272
|
-
onKeydown: [Ze[6] || (Ze[6] =
|
|
23272
|
+
onKeydown: [Ze[6] || (Ze[6] = Al(ul((ee) => O("down"), ["prevent"]), ["down"])), Ze[7] || (Ze[7] = Al(ul((ee) => O("up"), ["prevent"]), ["up"]))]
|
|
23273
23273
|
}, [
|
|
23274
23274
|
e.icon ? (Y(), oe(N(Je), {
|
|
23275
23275
|
key: 0,
|
|
@@ -23341,9 +23341,9 @@ var hv = ["aria-labelledby", "aria-label"], Wv = ["id"], pv = { key: 0 }, Gv = [
|
|
|
23341
23341
|
"aria-selected": Q(ee),
|
|
23342
23342
|
onClick: (I) => H(ee),
|
|
23343
23343
|
onKeydown: [
|
|
23344
|
-
|
|
23345
|
-
Ze[8] || (Ze[8] =
|
|
23346
|
-
Ze[9] || (Ze[9] =
|
|
23344
|
+
Al((I) => H(ee), ["enter"]),
|
|
23345
|
+
Ze[8] || (Ze[8] = Al(ul((I) => O("down"), ["prevent"]), ["down"])),
|
|
23346
|
+
Ze[9] || (Ze[9] = Al(ul((I) => O("up"), ["prevent"]), ["up"]))
|
|
23347
23347
|
]
|
|
23348
23348
|
}, [e.multiselect ? (Y(), y(Ve, { key: 0 }, [Q(ee) ? (Y(), oe(N(Je), {
|
|
23349
23349
|
key: 0,
|
|
@@ -29771,7 +29771,7 @@ var Uj = { key: 0 }, Oj = {
|
|
|
29771
29771
|
}), um = z(() => b.state.debug), P3 = z(() => Ue(c.value.replace(/<[^>]*>/g, ""), "ltr") === "rtl"), eb = z(() => a.fullHeight ? "100%" : typeof a.height == "number" ? `${a.height}px` : typeof a.height == "string" ? a.height : "240px");
|
|
29772
29772
|
let ud = null, ui = null;
|
|
29773
29773
|
const Dc = So();
|
|
29774
|
-
|
|
29774
|
+
Bl(() => {
|
|
29775
29775
|
ud?.disconnect(), ud = null, Dc.cancel(), ui?.(), ui = null, b.cleanup();
|
|
29776
29776
|
});
|
|
29777
29777
|
function B3(v) {
|
|
@@ -30926,7 +30926,7 @@ var Uj = { key: 0 }, Oj = {
|
|
|
30926
30926
|
label: "URL",
|
|
30927
30927
|
type: "url",
|
|
30928
30928
|
placeholder: "https://example.com",
|
|
30929
|
-
onKeydown:
|
|
30929
|
+
onKeydown: Al(KZ, ["enter"])
|
|
30930
30930
|
}, null, 8, ["modelValue"]), ne(N(Ie), {
|
|
30931
30931
|
icon: "open_in_new",
|
|
30932
30932
|
class: "mb-05 radius-1",
|
|
@@ -30992,7 +30992,7 @@ var Uj = { key: 0 }, Oj = {
|
|
|
30992
30992
|
"onUpdate:modelValue": U[13] || (U[13] = (B) => ab.value = B),
|
|
30993
30993
|
label: "Image",
|
|
30994
30994
|
type: "image",
|
|
30995
|
-
onKeydown:
|
|
30995
|
+
onKeydown: Al(cm, ["enter"])
|
|
30996
30996
|
}, null, 8, ["modelValue"]), R("div", Pj, [
|
|
30997
30997
|
ne(Wl, {
|
|
30998
30998
|
modelValue: x.value.src,
|
|
@@ -31000,7 +31000,7 @@ var Uj = { key: 0 }, Oj = {
|
|
|
31000
31000
|
label: "Image URL",
|
|
31001
31001
|
type: "url",
|
|
31002
31002
|
placeholder: "https://example.com/image.jpg",
|
|
31003
|
-
onKeydown:
|
|
31003
|
+
onKeydown: Al(cm, ["enter"])
|
|
31004
31004
|
}, null, 8, ["modelValue"]),
|
|
31005
31005
|
ne(Wl, {
|
|
31006
31006
|
modelValue: x.value.alt,
|
|
@@ -31109,7 +31109,7 @@ var Uj = { key: 0 }, Oj = {
|
|
|
31109
31109
|
label: "Embed URL or Code",
|
|
31110
31110
|
type: "url",
|
|
31111
31111
|
placeholder: "YouTube URL, embed URL, or paste iframe code",
|
|
31112
|
-
onKeydown:
|
|
31112
|
+
onKeydown: Al(BZ, ["enter"])
|
|
31113
31113
|
}, null, 8, ["modelValue"]),
|
|
31114
31114
|
R("div", Aj, [ne(Wl, {
|
|
31115
31115
|
modelValue: F.value.width,
|
|
@@ -31168,7 +31168,7 @@ var Uj = { key: 0 }, Oj = {
|
|
|
31168
31168
|
type: "url",
|
|
31169
31169
|
placeholder: "Paste YouTube URL, video file URL, or iframe embed code...",
|
|
31170
31170
|
class: re({ error: ie.value.src && !Cc(ie.value.src) }),
|
|
31171
|
-
onKeydown:
|
|
31171
|
+
onKeydown: Al(AZ, ["enter"])
|
|
31172
31172
|
}, null, 8, ["modelValue", "class"]),
|
|
31173
31173
|
ie.value.src && !Cc(ie.value.src) ? (Y(), y("div", qj, [ne(N(Je), { name: "warning" }), U[68] || (U[68] = R("p", { class: "txt12" }, " Please enter a valid video URL or iframe embed code ", -1))])) : f("", !0),
|
|
31174
31174
|
ne(Wl, {
|
|
@@ -32281,7 +32281,7 @@ function Ra() {
|
|
|
32281
32281
|
var e = document.scrollingElement;
|
|
32282
32282
|
return e || document.documentElement;
|
|
32283
32283
|
}
|
|
32284
|
-
function
|
|
32284
|
+
function Ql(e, l, t, a, n) {
|
|
32285
32285
|
if (!(!e.getBoundingClientRect && e !== window)) {
|
|
32286
32286
|
var i, d, s, c, o, m, u;
|
|
32287
32287
|
if (e !== window && e.parentNode && e !== Ra() ? (i = e.getBoundingClientRect(), d = i.top, s = i.left, c = i.bottom, o = i.right, m = i.height, u = i.width) : (d = 0, s = 0, c = window.innerHeight, o = window.innerWidth, m = window.innerHeight, u = window.innerWidth), (l || t) && e !== window && (n = n || e.parentNode, !cn))
|
|
@@ -32307,8 +32307,8 @@ function Bl(e, l, t, a, n) {
|
|
|
32307
32307
|
}
|
|
32308
32308
|
}
|
|
32309
32309
|
function i0(e, l, t) {
|
|
32310
|
-
for (var a = pn(e, !0), n =
|
|
32311
|
-
var i =
|
|
32310
|
+
for (var a = pn(e, !0), n = Ql(e)[l]; a; ) {
|
|
32311
|
+
var i = Ql(a)[t], d = void 0;
|
|
32312
32312
|
if (t === "top" || t === "left" ? d = n >= i : d = n <= i, !d) return a;
|
|
32313
32313
|
if (a === Ra()) break;
|
|
32314
32314
|
a = pn(a, !1);
|
|
@@ -32403,7 +32403,7 @@ function fJ() {
|
|
|
32403
32403
|
if (!(nl(a, "display") === "none" || a === il.ghost)) {
|
|
32404
32404
|
e.push({
|
|
32405
32405
|
target: a,
|
|
32406
|
-
rect:
|
|
32406
|
+
rect: Ql(a)
|
|
32407
32407
|
});
|
|
32408
32408
|
var n = ja({}, e[e.length - 1].rect);
|
|
32409
32409
|
if (a.thisAnimationDuration) {
|
|
@@ -32428,7 +32428,7 @@ function fJ() {
|
|
|
32428
32428
|
}
|
|
32429
32429
|
var i = !1, d = 0;
|
|
32430
32430
|
e.forEach(function(s) {
|
|
32431
|
-
var c = 0, o = s.target, m = o.fromRect, u =
|
|
32431
|
+
var c = 0, o = s.target, m = o.fromRect, u = Ql(o), Z = o.prevFromRect, r = o.prevToRect, W = s.rect, h = Ci(o, !0);
|
|
32432
32432
|
h && (u.top -= h.f, u.left -= h.e), o.toRect = u, o.thisAnimationDuration && Fm(Z, u) && !Fm(m, u) && (W.top - u.top) / (W.left - u.left) === (m.top - u.top) / (m.left - u.left) && (c = JJ(W, Z, r, n.options)), Fm(u, m) || (o.prevFromRect = m, o.prevToRect = u, c || (c = n.options.animation), n.animate(o, W, u, c)), c && (i = !0, d = Math.max(d, c), clearTimeout(o.animationResetTimer), o.animationResetTimer = setTimeout(function() {
|
|
32433
32433
|
o.animationTime = 0, o.prevFromRect = null, o.fromRect = null, o.prevToRect = null, o.thisAnimationDuration = null;
|
|
32434
32434
|
}, c), o.thisAnimationDuration = c);
|
|
@@ -32565,7 +32565,7 @@ var ke, jl, Zl, Sl, Un, Ts, Jl, rn, Ri, ft, Fd, bn, es, st, Ti = !1, no = !1, io
|
|
|
32565
32565
|
return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
|
|
32566
32566
|
}
|
|
32567
32567
|
})(), lp = function(l, t) {
|
|
32568
|
-
var a = nl(l), n = parseInt(a.width) - parseInt(a.paddingLeft) - parseInt(a.paddingRight) - parseInt(a.borderLeftWidth) - parseInt(a.borderRightWidth), i = Ai(l, 0, t), d = Ai(l, 1, t), s = i && nl(i), c = d && nl(d), o = s && parseInt(s.marginLeft) + parseInt(s.marginRight) +
|
|
32568
|
+
var a = nl(l), n = parseInt(a.width) - parseInt(a.paddingLeft) - parseInt(a.paddingRight) - parseInt(a.borderLeftWidth) - parseInt(a.borderRightWidth), i = Ai(l, 0, t), d = Ai(l, 1, t), s = i && nl(i), c = d && nl(d), o = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + Ql(i).width, m = c && parseInt(c.marginLeft) + parseInt(c.marginRight) + Ql(d).width;
|
|
32569
32569
|
if (a.display === "flex") return a.flexDirection === "column" || a.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
32570
32570
|
if (a.display === "grid") return a.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
|
|
32571
32571
|
if (i && s.float && s.float !== "none") {
|
|
@@ -32581,7 +32581,7 @@ var ke, jl, Zl, Sl, Un, Ts, Jl, rn, Ri, ft, Fd, bn, es, st, Ti = !1, no = !1, io
|
|
|
32581
32581
|
return io.some(function(n) {
|
|
32582
32582
|
var i = n[Ct].options.emptyInsertThreshold;
|
|
32583
32583
|
if (!(!i || pZ(n))) {
|
|
32584
|
-
var d =
|
|
32584
|
+
var d = Ql(n), s = l >= d.left - i && l <= d.right + i, c = t >= d.top - i && t <= d.bottom + i;
|
|
32585
32585
|
if (s && c) return a = n;
|
|
32586
32586
|
}
|
|
32587
32587
|
}), a;
|
|
@@ -32718,7 +32718,7 @@ il.prototype = /** @lends Sortable.prototype */
|
|
|
32718
32718
|
_prepareDragStart: function(l, t, a) {
|
|
32719
32719
|
var n = this, i = n.el, d = n.options, s = i.ownerDocument, c;
|
|
32720
32720
|
if (a && !ke && a.parentNode === i) {
|
|
32721
|
-
var o =
|
|
32721
|
+
var o = Ql(a);
|
|
32722
32722
|
if (Sl = i, ke = a, jl = ke.parentNode, Un = ke.nextSibling, Ts = a, es = d.group, il.dragged = ke, Jn = {
|
|
32723
32723
|
target: ke,
|
|
32724
32724
|
clientX: (t || l).clientX,
|
|
@@ -32819,7 +32819,7 @@ il.prototype = /** @lends Sortable.prototype */
|
|
|
32819
32819
|
},
|
|
32820
32820
|
_appendGhost: function() {
|
|
32821
32821
|
if (!Zl) {
|
|
32822
|
-
var l = this.options.fallbackOnBody ? document.body : Sl, t =
|
|
32822
|
+
var l = this.options.fallbackOnBody ? document.body : Sl, t = Ql(ke, !0, ts, !0, l), a = this.options;
|
|
32823
32823
|
if (ts) {
|
|
32824
32824
|
for (rt = l; nl(rt, "position") === "static" && nl(rt, "transform") === "none" && rt !== document; ) rt = rt.parentNode;
|
|
32825
32825
|
rt !== document.body && rt !== document.documentElement ? (rt === document && (rt = Ra()), t.top += rt.scrollTop, t.left += rt.scrollLeft) : rt = Ra(), km = d0(rt);
|
|
@@ -32856,7 +32856,7 @@ il.prototype = /** @lends Sortable.prototype */
|
|
|
32856
32856
|
target: a,
|
|
32857
32857
|
completed: p,
|
|
32858
32858
|
onMove: function(Ze, ee) {
|
|
32859
|
-
return as(Sl, t, ke, n, Ze,
|
|
32859
|
+
return as(Sl, t, ke, n, Ze, Ql(Ze), l, ee);
|
|
32860
32860
|
},
|
|
32861
32861
|
changed: L
|
|
32862
32862
|
}, Xe));
|
|
@@ -32882,21 +32882,21 @@ il.prototype = /** @lends Sortable.prototype */
|
|
|
32882
32882
|
if (l.preventDefault !== void 0 && l.cancelable && l.preventDefault(), a = Ma(a, s.draggable, t, !0), G("dragOver"), il.eventCanceled) return h;
|
|
32883
32883
|
if (ke.contains(l.target) || a.animated && a.animatingX && a.animatingY || W._ignoreWhileAnimating === a) return p(!1);
|
|
32884
32884
|
if (no = !1, o && !s.disabled && (m ? u || (d = jl !== Sl) : st === this || (this.lastPutMode = es.checkPull(this, o, ke, l)) && c.checkPut(this, o, ke, l))) {
|
|
32885
|
-
if (r = this._getDirection(l, a) === "vertical", n =
|
|
32885
|
+
if (r = this._getDirection(l, a) === "vertical", n = Ql(ke), G("dragOverValid"), il.eventCanceled) return h;
|
|
32886
32886
|
if (d)
|
|
32887
32887
|
return jl = Sl, b(), this._hideClone(), G("revert"), il.eventCanceled || (Un ? Sl.insertBefore(ke, Un) : Sl.appendChild(ke)), p(!0);
|
|
32888
32888
|
var X = pZ(t, s.draggable);
|
|
32889
32889
|
if (!X || BJ(l, r, this) && !X.animated) {
|
|
32890
32890
|
if (X === ke) return p(!1);
|
|
32891
|
-
if (X && t === l.target && (a = X), a && (i =
|
|
32891
|
+
if (X && t === l.target && (a = X), a && (i = Ql(a)), as(Sl, t, ke, n, a, i, l, !!a) !== !1)
|
|
32892
32892
|
return b(), t.appendChild(ke), jl = t, L(), p(!0);
|
|
32893
32893
|
} else if (X && PJ(l, r, this)) {
|
|
32894
32894
|
var M = Ai(t, 0, s, !0);
|
|
32895
32895
|
if (M === ke) return p(!1);
|
|
32896
|
-
if (a = M, i =
|
|
32896
|
+
if (a = M, i = Ql(a), as(Sl, t, ke, n, a, i, l, !1) !== !1)
|
|
32897
32897
|
return b(), t.insertBefore(ke, M), jl = t, L(), p(!0);
|
|
32898
32898
|
} else if (a.parentNode === t) {
|
|
32899
|
-
i =
|
|
32899
|
+
i = Ql(a);
|
|
32900
32900
|
var T = 0, V, g = ke.parentNode !== t, S = !UJ(ke.animated && ke.toRect || n, a.animated && a.toRect || i, r), w = r ? "top" : "left", D = i0(a, "top", "top") || i0(ke, "top", "top"), C = D ? D.scrollTop : void 0;
|
|
32901
32901
|
Ni !== a && (V = i[w], jd = !1, ls = !S && s.invertSwap || g), T = QJ(l, a, i, r, S ? 1 : s.swapThreshold, s.invertedSwapThreshold == null ? s.swapThreshold : s.invertedSwapThreshold, ls, Ni === a);
|
|
32902
32902
|
var O;
|
|
@@ -32912,7 +32912,7 @@ il.prototype = /** @lends Sortable.prototype */
|
|
|
32912
32912
|
P = T === 1;
|
|
32913
32913
|
var H = as(Sl, t, ke, n, a, i, l, P);
|
|
32914
32914
|
if (H !== !1)
|
|
32915
|
-
return (H === 1 || H === -1) && (P = H === 1), Q2 = !0, setTimeout(HJ, 30), b(), P && !te ? t.appendChild(ke) : a.parentNode.insertBefore(ke, P ? te : a), D && $W(D, 0, C - D.scrollTop), jl = ke.parentNode, V !== void 0 && !ls && (Is = Math.abs(V -
|
|
32915
|
+
return (H === 1 || H === -1) && (P = H === 1), Q2 = !0, setTimeout(HJ, 30), b(), P && !te ? t.appendChild(ke) : a.parentNode.insertBefore(ke, P ? te : a), D && $W(D, 0, C - D.scrollTop), jl = ke.parentNode, V !== void 0 && !ls && (Is = Math.abs(V - Ql(a)[w])), L(), p(!0);
|
|
32916
32916
|
}
|
|
32917
32917
|
if (t.contains(ke)) return p(!1);
|
|
32918
32918
|
}
|
|
@@ -33057,7 +33057,7 @@ function as(e, l, t, a, n, i, d, s) {
|
|
|
33057
33057
|
return window.CustomEvent && !cn && !wc ? c = new CustomEvent("move", {
|
|
33058
33058
|
bubbles: !0,
|
|
33059
33059
|
cancelable: !0
|
|
33060
|
-
}) : (c = document.createEvent("Event"), c.initEvent("move", !0, !0)), c.to = l, c.from = e, c.dragged = t, c.draggedRect = a, c.related = n || l, c.relatedRect = i ||
|
|
33060
|
+
}) : (c = document.createEvent("Event"), c.initEvent("move", !0, !0)), c.to = l, c.from = e, c.dragged = t, c.draggedRect = a, c.related = n || l, c.relatedRect = i || Ql(l), c.willInsertAfter = s, c.originalEvent = d, e.dispatchEvent(c), m && (u = m.call(o, c, d)), u;
|
|
33061
33061
|
}
|
|
33062
33062
|
function Cm(e) {
|
|
33063
33063
|
e.draggable = !1;
|
|
@@ -33066,11 +33066,11 @@ function HJ() {
|
|
|
33066
33066
|
Q2 = !1;
|
|
33067
33067
|
}
|
|
33068
33068
|
function PJ(e, l, t) {
|
|
33069
|
-
var a =
|
|
33069
|
+
var a = Ql(Ai(t.el, 0, t.options, !0)), n = 10;
|
|
33070
33070
|
return l ? e.clientX < a.left - n || e.clientY < a.top && e.clientX < a.right : e.clientY < a.top - n || e.clientY < a.bottom && e.clientX < a.left;
|
|
33071
33071
|
}
|
|
33072
33072
|
function BJ(e, l, t) {
|
|
33073
|
-
var a =
|
|
33073
|
+
var a = Ql(pZ(t.el, t.options.draggable)), n = 10;
|
|
33074
33074
|
return l ? e.clientX > a.right + n || e.clientX <= a.right && e.clientY > a.bottom && e.clientX >= a.left : e.clientX > a.right && e.clientY > a.top || e.clientX <= a.right && e.clientY > a.bottom + n;
|
|
33075
33075
|
}
|
|
33076
33076
|
function QJ(e, l, t, a, n, i, d, s) {
|
|
@@ -33206,7 +33206,7 @@ var Om = _W(function(e, l, t, a) {
|
|
|
33206
33206
|
_2 !== t && (_2 = t, zs(), Id = l.scroll, m = l.scrollFn, Id === !0 && (Id = pn(t, !0)));
|
|
33207
33207
|
var u = 0, Z = Id;
|
|
33208
33208
|
do {
|
|
33209
|
-
var r = Z, W =
|
|
33209
|
+
var r = Z, W = Ql(r), h = W.top, G = W.bottom, b = W.left, p = W.right, L = W.width, X = W.height, M = void 0, T = void 0, V = r.scrollWidth, g = r.scrollHeight, S = nl(r), w = r.scrollLeft, D = r.scrollTop;
|
|
33210
33210
|
r === c ? (M = L < V && (S.overflowX === "auto" || S.overflowX === "scroll" || S.overflowX === "visible"), T = X < g && (S.overflowY === "auto" || S.overflowY === "scroll" || S.overflowY === "visible")) : (M = L < V && (S.overflowX === "auto" || S.overflowX === "scroll"), T = X < g && (S.overflowY === "auto" || S.overflowY === "scroll"));
|
|
33211
33211
|
var C = M && (Math.abs(p - n) <= d && w + L < V) - (Math.abs(b - n) <= d && !!w), O = T && (Math.abs(G - i) <= d && D + X < g) - (Math.abs(h - i) <= d && !!D);
|
|
33212
33212
|
if (!Kl[u])
|
|
@@ -44943,7 +44943,7 @@ var _D = { class: "app-header-side flex gap-col-075 min-w-0" }, $D = { class: "a
|
|
|
44943
44943
|
{ "pageContent--fill": e.fill }
|
|
44944
44944
|
]]) }, [xe(Z.$slots, "content", {}, () => [xe(Z.$slots, "default", {}, void 0, !0)], !0)], 2)], 6));
|
|
44945
44945
|
}
|
|
44946
|
-
}), WA = /* @__PURE__ */ Ce(aU, [["__scopeId", "data-v-
|
|
44946
|
+
}), WA = /* @__PURE__ */ Ce(aU, [["__scopeId", "data-v-221a3bb2"]]), Yn = [], is = !1;
|
|
44947
44947
|
function l1(e) {
|
|
44948
44948
|
if (e.key === "Escape") {
|
|
44949
44949
|
for (let l = Yn.length - 1; l >= 0; l--) if (Yn[l].enabled()) {
|
|
@@ -45187,7 +45187,7 @@ var nU = {
|
|
|
45187
45187
|
toggleBottom: V
|
|
45188
45188
|
}), qe(() => {
|
|
45189
45189
|
r(), window.addEventListener("resize", W);
|
|
45190
|
-
}),
|
|
45190
|
+
}), Bl(() => {
|
|
45191
45191
|
window.removeEventListener("resize", W), clearTimeout(c);
|
|
45192
45192
|
});
|
|
45193
45193
|
const $ = z(() => ({
|
|
@@ -45284,7 +45284,7 @@ var nU = {
|
|
|
45284
45284
|
l.side,
|
|
45285
45285
|
l.height,
|
|
45286
45286
|
l.mode
|
|
45287
|
-
], d),
|
|
45287
|
+
], d), Bl(() => i.value({
|
|
45288
45288
|
present: !1,
|
|
45289
45289
|
open: !1
|
|
45290
45290
|
}));
|
|
@@ -45961,7 +45961,7 @@ var UU = { class: "panel__content" }, OU = [
|
|
|
45961
45961
|
s.value = i.registerPanel(p), s.value.el.value = c.value, a.collapsed !== void 0 && (s.value.collapsed.value = a.collapsed), i.syncPanelOrder();
|
|
45962
45962
|
}), Se(c, (p) => {
|
|
45963
45963
|
s.value && (s.value.el.value = p), p && i.syncPanelOrder();
|
|
45964
|
-
}),
|
|
45964
|
+
}), Bl(() => {
|
|
45965
45965
|
i.unregisterPanel(d);
|
|
45966
45966
|
});
|
|
45967
45967
|
const m = z(() => s.value?.size.value ?? a.defaultSize), u = z(() => o.value), Z = z(() => i.direction.value === "horizontal"), r = z(() => i.isMobile.value && a.hideOnMobile), W = z(() => {
|
|
@@ -46703,7 +46703,7 @@ var TO = /* @__PURE__ */ Ce(LO, [["render", VO]]), IO = ["id"], xO = '<svg width
|
|
|
46703
46703
|
m(n.value);
|
|
46704
46704
|
}
|
|
46705
46705
|
}
|
|
46706
|
-
return Se(() => t.markers, Z, { immediate: !0 }), Se(() => t.center, (r) => i.value?.setView(r, t.zoom), { immediate: !0 }), qe(c),
|
|
46706
|
+
return Se(() => t.markers, Z, { immediate: !0 }), Se(() => t.center, (r) => i.value?.setView(r, t.zoom), { immediate: !0 }), qe(c), Bl(() => {
|
|
46707
46707
|
d.value.forEach((r) => r.remove()), i.value?.remove(), i.value = void 0;
|
|
46708
46708
|
}), (r, W) => (Y(), y("div", {
|
|
46709
46709
|
id: s.value,
|
|
@@ -46816,7 +46816,7 @@ var TO = /* @__PURE__ */ Ce(LO, [["render", VO]]), IO = ["id"], xO = '<svg width
|
|
|
46816
46816
|
"aria-label": "Toggle Navigation",
|
|
46817
46817
|
tabindex: "0",
|
|
46818
46818
|
onClick: a,
|
|
46819
|
-
onKeypress:
|
|
46819
|
+
onKeypress: Al(a, ["enter"])
|
|
46820
46820
|
}, [ne(N(Je), {
|
|
46821
46821
|
icon: "chevron_right",
|
|
46822
46822
|
class: "top-arrow"
|
|
@@ -47298,7 +47298,7 @@ function ZE(e, l) {
|
|
|
47298
47298
|
const L = b.target.closest("th");
|
|
47299
47299
|
s.value = a.value.get(p) ?? L?.getBoundingClientRect().width ?? 0, document.addEventListener("mousemove", W), document.addEventListener("mouseup", h);
|
|
47300
47300
|
}
|
|
47301
|
-
return
|
|
47301
|
+
return Bl(() => {
|
|
47302
47302
|
document.removeEventListener("mousemove", W), document.removeEventListener("mouseup", h);
|
|
47303
47303
|
}), {
|
|
47304
47304
|
columns: c,
|
|
@@ -47341,7 +47341,7 @@ function bE(e) {
|
|
|
47341
47341
|
col: e.value.length - 1
|
|
47342
47342
|
};
|
|
47343
47343
|
}
|
|
47344
|
-
return window.addEventListener("mouseup", d),
|
|
47344
|
+
return window.addEventListener("mouseup", d), Bl(() => {
|
|
47345
47345
|
window.removeEventListener("mouseup", d);
|
|
47346
47346
|
}), {
|
|
47347
47347
|
isSelecting: l,
|
|
@@ -47450,7 +47450,7 @@ var WE = ["value"], pE = { class: "spreadsheet-cell spreadsheetCellPlaceHolder"
|
|
|
47450
47450
|
class: "spreadsheet-input",
|
|
47451
47451
|
onInput: t[0] || (t[0] = (a) => l.$emit("updateCell", e.rowIndex, e.col.key, a.target.value)),
|
|
47452
47452
|
onBlur: t[1] || (t[1] = (a) => l.$emit("stopEditing", !1)),
|
|
47453
|
-
onKeydown: [t[2] || (t[2] =
|
|
47453
|
+
onKeydown: [t[2] || (t[2] = Al(ul((a) => l.$emit("stopEditing", !1), ["prevent"]), ["enter"])), t[3] || (t[3] = Al(ul((a) => l.$emit("stopEditing", !0), ["prevent"]), ["esc"]))],
|
|
47454
47454
|
onMousedown: t[4] || (t[4] = ul(() => {
|
|
47455
47455
|
}, ["stop"]))
|
|
47456
47456
|
}, null, 40, WE), R("span", pE, le(N(ou)(e.row[e.col.key], e.col.format)), 1)], 64)) : e.col.format === "image" ? (Y(), y("div", GE, [R("img", {
|
|
@@ -52092,7 +52092,7 @@ var fA = /* @__PURE__ */ Ce(TH, [["render", xH]]), zH = class {
|
|
|
52092
52092
|
}
|
|
52093
52093
|
qe(() => {
|
|
52094
52094
|
S.value = new zH(), n.value && S.value.attach(n.value), e.doubleClickToZoom && (S.value.onDoubleTap(fe), n.value && n.value.addEventListener("dblclick", fe)), window.addEventListener("resize", j), j(), We(), ie();
|
|
52095
|
-
}),
|
|
52095
|
+
}), Bl(() => {
|
|
52096
52096
|
n.value && (S.value?.detach(n.value), e.doubleClickToZoom && n.value.removeEventListener("dblclick", fe)), window.removeEventListener("resize", j), g.value && window.cancelAnimationFrame(g.value), O.value && window.cancelAnimationFrame(O.value);
|
|
52097
52097
|
});
|
|
52098
52098
|
function fe(q) {
|
|
@@ -52201,33 +52201,54 @@ var SH = { class: "flex column gap-1" }, vH = ["src"], FH = ["src", "title"], fH
|
|
|
52201
52201
|
props: {
|
|
52202
52202
|
asset: {},
|
|
52203
52203
|
type: {},
|
|
52204
|
-
name: {}
|
|
52204
|
+
name: {},
|
|
52205
|
+
load: { type: Function }
|
|
52205
52206
|
},
|
|
52206
52207
|
setup(e) {
|
|
52207
|
-
const l = e,
|
|
52208
|
-
|
|
52209
|
-
|
|
52208
|
+
const l = e, t = CW(() => l.load ? void 0 : l.asset), a = k(), n = k(!1);
|
|
52209
|
+
let i = 0;
|
|
52210
|
+
function d() {
|
|
52211
|
+
a.value && URL.revokeObjectURL(a.value), a.value = void 0;
|
|
52212
|
+
}
|
|
52213
|
+
Se(() => [l.asset.asset_id, l.load], async () => {
|
|
52214
|
+
const m = ++i;
|
|
52215
|
+
if (d(), n.value = !1, !!l.load)
|
|
52216
|
+
try {
|
|
52217
|
+
const u = await l.load(l.asset);
|
|
52218
|
+
m === i && (a.value = URL.createObjectURL(u));
|
|
52219
|
+
} catch {
|
|
52220
|
+
m === i && (n.value = !0);
|
|
52221
|
+
}
|
|
52222
|
+
}, { immediate: !0 }), Bl(() => {
|
|
52223
|
+
i++, d();
|
|
52224
|
+
});
|
|
52225
|
+
const s = z(() => a.value ?? t.url.value), c = z(() => n.value || t.error.value), o = () => {
|
|
52226
|
+
l.load ? n.value = !0 : t.onError();
|
|
52227
|
+
};
|
|
52228
|
+
return (m, u) => (Y(), y("div", SH, [
|
|
52229
|
+
e.type === "image" && (!e.load || s.value) ? (Y(), oe(N(Hi), {
|
|
52210
52230
|
key: 0,
|
|
52211
|
-
src: e.asset
|
|
52212
|
-
|
|
52231
|
+
src: e.load ? s.value : e.asset,
|
|
52232
|
+
onError: o
|
|
52233
|
+
}, null, 8, ["src"])) : e.type === "video" && s.value ? (Y(), y("video", {
|
|
52213
52234
|
key: 1,
|
|
52214
|
-
src:
|
|
52235
|
+
src: s.value,
|
|
52215
52236
|
controls: "",
|
|
52216
|
-
onError:
|
|
52217
|
-
}, null, 40, vH)) : e.type === "pdf" &&
|
|
52237
|
+
onError: o
|
|
52238
|
+
}, null, 40, vH)) : e.type === "pdf" && s.value ? (Y(), y("iframe", {
|
|
52218
52239
|
key: 2,
|
|
52219
|
-
src:
|
|
52240
|
+
src: s.value,
|
|
52220
52241
|
title: e.name || "PDF preview",
|
|
52221
52242
|
referrerpolicy: "no-referrer"
|
|
52222
52243
|
}, null, 8, FH)) : f("", !0),
|
|
52223
|
-
|
|
52244
|
+
s.value ? (Y(), oe(N(Ie), {
|
|
52224
52245
|
key: 3,
|
|
52225
|
-
href:
|
|
52246
|
+
href: s.value,
|
|
52226
52247
|
target: "_blank",
|
|
52227
52248
|
rel: "noopener noreferrer",
|
|
52228
52249
|
value: "Open / download"
|
|
52229
52250
|
}, null, 8, ["href"])) : f("", !0),
|
|
52230
|
-
|
|
52251
|
+
c.value ? (Y(), y("p", fH, "File preview unavailable.")) : f("", !0)
|
|
52231
52252
|
]));
|
|
52232
52253
|
}
|
|
52233
52254
|
}), JH = jH;
|
|
@@ -52395,7 +52416,7 @@ function md() {
|
|
|
52395
52416
|
}
|
|
52396
52417
|
return qe(() => {
|
|
52397
52418
|
window.addEventListener("resize", o), window.addEventListener("scroll", o), o();
|
|
52398
|
-
}),
|
|
52419
|
+
}), Bl(() => {
|
|
52399
52420
|
window.removeEventListener("resize", o), window.removeEventListener("scroll", o);
|
|
52400
52421
|
}), {
|
|
52401
52422
|
innerWidth: e,
|
|
@@ -54227,7 +54248,7 @@ function c_(e, l = {}) {
|
|
|
54227
54248
|
}
|
|
54228
54249
|
return qe(() => {
|
|
54229
54250
|
document.addEventListener("visibilitychange", r), u();
|
|
54230
|
-
}),
|
|
54251
|
+
}), Bl(() => {
|
|
54231
54252
|
document.removeEventListener("visibilitychange", r), o();
|
|
54232
54253
|
}), {
|
|
54233
54254
|
isPolling: d,
|
|
@@ -54245,7 +54266,7 @@ function s_() {
|
|
|
54245
54266
|
}
|
|
54246
54267
|
return qe(() => {
|
|
54247
54268
|
typeof window > "u" || !window.matchMedia || (l = window.matchMedia("(prefers-reduced-motion: reduce)"), e.value = l.matches, l.addEventListener("change", t));
|
|
54248
|
-
}),
|
|
54269
|
+
}), Bl(() => {
|
|
54249
54270
|
l?.removeEventListener("change", t);
|
|
54250
54271
|
}), e;
|
|
54251
54272
|
}
|