@vue-pdf-viewer/viewer 3.5.1-rc.0 → 3.5.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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as Qt from "vue";
|
|
2
|
-
import { isRef as Bd, reactive as El, unref as e, ref as J, toValue as hl, watch as q, shallowReadonly as
|
|
2
|
+
import { isRef as Bd, reactive as El, unref as e, ref as J, toValue as hl, watch as q, shallowReadonly as UZ, onMounted as vl, nextTick as Tl, getCurrentScope as Jt, onScopeDispose as pt, onUnmounted as Fd, customRef as JF, toRefs as Ol, computed as T, getCurrentInstance as md, readonly as aZ, toRef as Od, shallowRef as Sl, onUpdated as Ne, watchEffect as Kl, markRaw as GU, inject as Ul, toRaw as sl, defineComponent as g, createElementBlock as cl, openBlock as M, createElementVNode as ll, renderSlot as C, defineAsyncComponent as fW, createBlock as r, resolveDynamicComponent as Ld, provide as kl, Fragment as fl, effectScope as Tt, onBeforeUnmount as pF, toHandlerKey as ie, camelize as Gt, h as Gd, Comment as ht, mergeProps as el, cloneVNode as oe, withCtx as o, createVNode as z, createCommentVNode as ol, normalizeStyle as Zd, Teleport as St, watchPostEffect as ln, mergeDefaults as dn, withModifiers as bd, normalizeProps as rl, guardReactiveProps as gl, renderList as Nd, createTextVNode as ml, toDisplayString as al, useSlots as Xt, toHandlers as be, withKeys as CZ, onBeforeUpdate as AW, normalizeClass as jl, mergeModels as fd, useCssVars as me, useModel as Hd, shallowReactive as NF, createSlots as Jd, withDirectives as qW, vModelText as _W, isVNode as $W } from "vue";
|
|
3
3
|
import * as Pd from "pdfjs-dist";
|
|
4
4
|
import { AnnotationMode as Vt, OPS as tc, DrawLayer as ls, PixelsPerInch as ds, RenderingCancelledException as Us } from "pdfjs-dist";
|
|
5
5
|
import "./assets/pdf-annotations/annotation-noicon.svg";
|
|
@@ -79,20 +79,20 @@ function Fs(l) {
|
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
-
var hU = [], kZ = !1,
|
|
82
|
+
var hU = [], kZ = !1, tZ, nt = -1;
|
|
83
83
|
function ts() {
|
|
84
|
-
!kZ || !
|
|
84
|
+
!kZ || !tZ || (kZ = !1, tZ.length ? hU = tZ.concat(hU) : nt = -1, hU.length && Je());
|
|
85
85
|
}
|
|
86
86
|
function Je() {
|
|
87
87
|
if (!kZ) {
|
|
88
88
|
var l = Me(ts);
|
|
89
89
|
kZ = !0;
|
|
90
90
|
for (var U = hU.length; U; ) {
|
|
91
|
-
for (
|
|
92
|
-
|
|
91
|
+
for (tZ = hU, hU = []; ++nt < U; )
|
|
92
|
+
tZ && tZ[nt].run();
|
|
93
93
|
nt = -1, U = hU.length;
|
|
94
94
|
}
|
|
95
|
-
|
|
95
|
+
tZ = null, kZ = !1, Fs(l);
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
id.nextTick = function(l) {
|
|
@@ -208,7 +208,7 @@ function is(...l) {
|
|
|
208
208
|
if (l.length !== 1)
|
|
209
209
|
return Od(...l);
|
|
210
210
|
const U = l[0];
|
|
211
|
-
return typeof U == "function" ?
|
|
211
|
+
return typeof U == "function" ? aZ(JF(() => ({ get: U, set: Td }))) : J(U);
|
|
212
212
|
}
|
|
213
213
|
function Bt(l, U) {
|
|
214
214
|
function d(...Z) {
|
|
@@ -264,7 +264,7 @@ function he(l = Un, U = {}) {
|
|
|
264
264
|
const c = (...n) => {
|
|
265
265
|
Z.value && l(...n);
|
|
266
266
|
};
|
|
267
|
-
return { isActive:
|
|
267
|
+
return { isActive: aZ(Z), pause: F, resume: t, eventFilter: c };
|
|
268
268
|
}
|
|
269
269
|
function DZ(l) {
|
|
270
270
|
return Array.isArray(l) ? l : [l];
|
|
@@ -283,7 +283,7 @@ function Xe(l, U = 200, d = {}) {
|
|
|
283
283
|
const Z = J(hl(l)), F = /* @__PURE__ */ Zn(() => {
|
|
284
284
|
Z.value = l.value;
|
|
285
285
|
}, U, d);
|
|
286
|
-
return q(l, () => F()),
|
|
286
|
+
return q(l, () => F()), UZ(Z);
|
|
287
287
|
}
|
|
288
288
|
// @__NO_SIDE_EFFECTS__
|
|
289
289
|
function bs(l, U = 200, d = !1, Z = !0, F = !1) {
|
|
@@ -346,7 +346,7 @@ function us(l, U = {}) {
|
|
|
346
346
|
}));
|
|
347
347
|
return d;
|
|
348
348
|
}
|
|
349
|
-
function
|
|
349
|
+
function eZ(l, U = !0, d) {
|
|
350
350
|
Se() ? vl(l, d) : U ? l() : Tl(l);
|
|
351
351
|
}
|
|
352
352
|
function Ms(l, U) {
|
|
@@ -737,7 +737,7 @@ function ze(l, U, d, Z = {}) {
|
|
|
737
737
|
}, L = (H) => {
|
|
738
738
|
N && !B || E(H);
|
|
739
739
|
};
|
|
740
|
-
W && n && (d instanceof Storage ? Pl(W, "storage", u, { passive: !0 }) : Pl(W, na, L)), N ?
|
|
740
|
+
W && n && (d instanceof Storage ? Pl(W, "storage", u, { passive: !0 }) : Pl(W, na, L)), N ? eZ(() => {
|
|
741
741
|
B = !0, j();
|
|
742
742
|
}) : j();
|
|
743
743
|
function x(H, v) {
|
|
@@ -1023,7 +1023,7 @@ function Cs(l, U = {}) {
|
|
|
1023
1023
|
}
|
|
1024
1024
|
return cn(l, i), q(() => Qd(l), (m) => !m && i()), wZ(l, i, {
|
|
1025
1025
|
attributeFilter: ["style", "class"]
|
|
1026
|
-
}), F && Pl("scroll", i, { capture: !0, passive: !0 }), Z && Pl("resize", i, { passive: !0 }),
|
|
1026
|
+
}), F && Pl("scroll", i, { capture: !0, passive: !0 }), Z && Pl("resize", i, { passive: !0 }), eZ(() => {
|
|
1027
1027
|
t && i();
|
|
1028
1028
|
}), {
|
|
1029
1029
|
height: n,
|
|
@@ -1059,7 +1059,7 @@ function xZ(l, U = { width: 0, height: 0 }, d = {}) {
|
|
|
1059
1059
|
},
|
|
1060
1060
|
d
|
|
1061
1061
|
);
|
|
1062
|
-
|
|
1062
|
+
eZ(() => {
|
|
1063
1063
|
const W = Qd(l);
|
|
1064
1064
|
W && (c.value = "offsetWidth" in W ? W.offsetWidth : U.width, n.value = "offsetHeight" in W ? W.offsetHeight : U.height);
|
|
1065
1065
|
});
|
|
@@ -1227,7 +1227,7 @@ function nn(l, U = {}) {
|
|
|
1227
1227
|
const h = s();
|
|
1228
1228
|
(!h || h && W()) && (t.value = h);
|
|
1229
1229
|
}, m = { capture: !1, passive: !0 };
|
|
1230
|
-
return Pl(d, ea, i, m), Pl(() => Qd(F), ea, i, m),
|
|
1230
|
+
return Pl(d, ea, i, m), Pl(() => Qd(F), ea, i, m), eZ(i, !1), Z && AZ(R), {
|
|
1231
1231
|
isSupported: Q,
|
|
1232
1232
|
isFullscreen: t,
|
|
1233
1233
|
enter: N,
|
|
@@ -1331,7 +1331,7 @@ function qZ(l, U = {}) {
|
|
|
1331
1331
|
"scroll",
|
|
1332
1332
|
d ? /* @__PURE__ */ bs(L, d, !0, !1) : L,
|
|
1333
1333
|
a
|
|
1334
|
-
),
|
|
1334
|
+
), eZ(() => {
|
|
1335
1335
|
try {
|
|
1336
1336
|
const x = hl(l);
|
|
1337
1337
|
if (!x)
|
|
@@ -1478,7 +1478,7 @@ function vs(l, U = {}) {
|
|
|
1478
1478
|
function X() {
|
|
1479
1479
|
G.forEach((y) => y()), G.length = 0;
|
|
1480
1480
|
}
|
|
1481
|
-
if (
|
|
1481
|
+
if (eZ(() => {
|
|
1482
1482
|
h();
|
|
1483
1483
|
}), t) {
|
|
1484
1484
|
const {
|
|
@@ -1550,7 +1550,7 @@ function TF(l = ks()) {
|
|
|
1550
1550
|
const Z = Qd(l);
|
|
1551
1551
|
Z && (U.value = Z.parentElement);
|
|
1552
1552
|
};
|
|
1553
|
-
return
|
|
1553
|
+
return eZ(d), q(() => hl(l), d), U;
|
|
1554
1554
|
}
|
|
1555
1555
|
// @__NO_SIDE_EFFECTS__
|
|
1556
1556
|
function Ks(l, U, d, Z = {}) {
|
|
@@ -2229,7 +2229,7 @@ const Ps = "Search in Document", fs = "Enter to search", As = "Search", qs = "Pr
|
|
|
2229
2229
|
[Ed.Yellow]: "Yellow",
|
|
2230
2230
|
[Ed.Green]: "Green"
|
|
2231
2231
|
}, rd = "pdfjs_internal_editor_", IZ = (l, U) => `${l}-${U}`;
|
|
2232
|
-
var WU = /* @__PURE__ */ ((l) => (l.All = "all", l.Premium = "premium", l.Freemium = "freemium", l.Unlicense = "none", l.Organization = "organization", l.Developer = "developer", l.FreeTrial = "free-trial", l))(WU || {}), zl = /* @__PURE__ */ ((l) => (l.Vertical = "Vertical", l.Horizontal = "Horizontal", l.Page = "Page", l.Wrapped = "Wrapped", l))(zl || {}), yl = /* @__PURE__ */ ((l) => (l.SinglePage = "Single", l.DualPage = "Dual", l.DualPageWithCover = "DualWithCover", l))(yl || {}), kd = /* @__PURE__ */ ((l) => (l.ActualSize = "actualSize", l.PageFit = "pageFit", l.PageWidth = "pageWidth", l))(kd || {}), Xp = /* @__PURE__ */ ((l) => (l.Horizontal = "Horizontal", l.Vertical = "Vertical", l.Both = "Both", l))(Xp || {}), zd = /* @__PURE__ */ ((l) => (l.INTERNAL_LINK = "internal-link", l.LINK = "link", l.FILE_ATTACHMENT = "file-attachment", l.FORM_TEXT = "form-text", l.FORM_SELECT = "form-select", l.FORM_CHECKBOX = "form-checkbox", l.FORM_RADIO = "form-radio", l.FORM_BUTTON = "form-button", l.BUTTON = "button", l.NAVIGATION = "navigation", l))(zd || {}),
|
|
2232
|
+
var WU = /* @__PURE__ */ ((l) => (l.All = "all", l.Premium = "premium", l.Freemium = "freemium", l.Unlicense = "none", l.Organization = "organization", l.Developer = "developer", l.FreeTrial = "free-trial", l))(WU || {}), zl = /* @__PURE__ */ ((l) => (l.Vertical = "Vertical", l.Horizontal = "Horizontal", l.Page = "Page", l.Wrapped = "Wrapped", l))(zl || {}), yl = /* @__PURE__ */ ((l) => (l.SinglePage = "Single", l.DualPage = "Dual", l.DualPageWithCover = "DualWithCover", l))(yl || {}), kd = /* @__PURE__ */ ((l) => (l.ActualSize = "actualSize", l.PageFit = "pageFit", l.PageWidth = "pageWidth", l))(kd || {}), Xp = /* @__PURE__ */ ((l) => (l.Horizontal = "Horizontal", l.Vertical = "Vertical", l.Both = "Both", l))(Xp || {}), zd = /* @__PURE__ */ ((l) => (l.INTERNAL_LINK = "internal-link", l.LINK = "link", l.FILE_ATTACHMENT = "file-attachment", l.FORM_TEXT = "form-text", l.FORM_SELECT = "form-select", l.FORM_CHECKBOX = "form-checkbox", l.FORM_RADIO = "form-radio", l.FORM_BUTTON = "form-button", l.BUTTON = "button", l.NAVIGATION = "navigation", l))(zd || {}), ZZ = /* @__PURE__ */ ((l) => (l[l.PreRender = 0] = "PreRender", l[l.DidRender = 1] = "DidRender", l))(ZZ || {}), Yp = /* @__PURE__ */ ((l) => (l[l.INVISIBLE = 1] = "INVISIBLE", l[l.HIDDEN = 2] = "HIDDEN", l[l.PRINT = 4] = "PRINT", l[l.NOZOOM = 8] = "NOZOOM", l[l.NOROTATE = 16] = "NOROTATE", l[l.NOVIEW = 32] = "NOVIEW", l[l.READONLY = 64] = "READONLY", l[l.LOCKED = 128] = "LOCKED", l[l.TOGGLENOVIEW = 256] = "TOGGLENOVIEW", l[l.LOCKEDCONTENTS = 512] = "LOCKEDCONTENTS", l))(Yp || {}), en = /* @__PURE__ */ ((l) => (l.Viewer = "viewer", l.ViewerAndAnnotation = "viewer_and_annotation", l))(en || {});
|
|
2233
2233
|
function WF() {
|
|
2234
2234
|
const U = new Error().stack?.split(`
|
|
2235
2235
|
`);
|
|
@@ -2718,7 +2718,7 @@ const ud = (l) => {
|
|
|
2718
2718
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
2719
2719
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
2720
2720
|
Hp.test(l) && !Pp.test(l)
|
|
2721
|
-
), ge = () => !1, $p = (l) => fp.test(l), lT = (l) => Ap.test(l), dT = (l) => !Jl(l) && !pl(l), UT = (l) => _Z(l, He, ge), Jl = (l) => je.test(l),
|
|
2721
|
+
), ge = () => !1, $p = (l) => fp.test(l), lT = (l) => Ap.test(l), dT = (l) => !Jl(l) && !pl(l), UT = (l) => _Z(l, He, ge), Jl = (l) => je.test(l), _U = (l) => _Z(l, Pe, _p), ac = (l) => _Z(l, nT, wl), Na = (l) => _Z(l, ve, ge), ZT = (l) => _Z(l, Ke, lT), OF = (l) => _Z(l, fe, $p), pl = (l) => Oe.test(l), nF = (l) => $Z(l, Pe), FT = (l) => $Z(l, aT), ia = (l) => $Z(l, ve), tT = (l) => $Z(l, He), cT = (l) => $Z(l, Ke), gF = (l) => $Z(l, fe, !0), _Z = (l, U, d) => {
|
|
2722
2722
|
const Z = je.exec(l);
|
|
2723
2723
|
return Z ? Z[1] ? U(Z[1]) : d(Z[2]) : !1;
|
|
2724
2724
|
}, $Z = (l, U, d = !1) => {
|
|
@@ -2751,7 +2751,7 @@ const ud = (l) => {
|
|
|
2751
2751
|
repeat: ["", "x", "y", "space", "round"]
|
|
2752
2752
|
}], O = () => ["auto", "cover", "contain", tT, UT, {
|
|
2753
2753
|
size: [pl, Jl]
|
|
2754
|
-
}], P = () => [nc, nF,
|
|
2754
|
+
}], P = () => [nc, nF, _U], f = () => [
|
|
2755
2755
|
// Deprecated since Tailwind CSS v4.0.0
|
|
2756
2756
|
"",
|
|
2757
2757
|
"none",
|
|
@@ -2759,7 +2759,7 @@ const ud = (l) => {
|
|
|
2759
2759
|
V,
|
|
2760
2760
|
pl,
|
|
2761
2761
|
Jl
|
|
2762
|
-
], A = () => ["", wl, nF,
|
|
2762
|
+
], A = () => ["", wl, nF, _U], _ = () => ["solid", "dashed", "dotted", "double"], tl = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], $ = () => [wl, nc, ia, Na], Vl = () => [
|
|
2763
2763
|
// Deprecated since Tailwind CSS v4.0.0
|
|
2764
2764
|
"",
|
|
2765
2765
|
"none",
|
|
@@ -3459,7 +3459,7 @@ const ud = (l) => {
|
|
|
3459
3459
|
* @see https://tailwindcss.com/docs/font-size
|
|
3460
3460
|
*/
|
|
3461
3461
|
"font-size": [{
|
|
3462
|
-
text: ["base", d, nF,
|
|
3462
|
+
text: ["base", d, nF, _U]
|
|
3463
3463
|
}],
|
|
3464
3464
|
/**
|
|
3465
3465
|
* Font Smoothing
|
|
@@ -3607,7 +3607,7 @@ const ud = (l) => {
|
|
|
3607
3607
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
3608
3608
|
*/
|
|
3609
3609
|
"text-decoration-thickness": [{
|
|
3610
|
-
decoration: [wl, "from-font", "auto", pl,
|
|
3610
|
+
decoration: [wl, "from-font", "auto", pl, _U]
|
|
3611
3611
|
}],
|
|
3612
3612
|
/**
|
|
3613
3613
|
* Text Decoration Color
|
|
@@ -4094,7 +4094,7 @@ const ud = (l) => {
|
|
|
4094
4094
|
* @see https://tailwindcss.com/docs/outline-width
|
|
4095
4095
|
*/
|
|
4096
4096
|
"outline-w": [{
|
|
4097
|
-
outline: ["", wl, nF,
|
|
4097
|
+
outline: ["", wl, nF, _U]
|
|
4098
4098
|
}],
|
|
4099
4099
|
/**
|
|
4100
4100
|
* Outline Color
|
|
@@ -4169,7 +4169,7 @@ const ud = (l) => {
|
|
|
4169
4169
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
4170
4170
|
*/
|
|
4171
4171
|
"ring-offset-w": [{
|
|
4172
|
-
"ring-offset": [wl,
|
|
4172
|
+
"ring-offset": [wl, _U]
|
|
4173
4173
|
}],
|
|
4174
4174
|
/**
|
|
4175
4175
|
* Ring Offset Color
|
|
@@ -5119,7 +5119,7 @@ const ud = (l) => {
|
|
|
5119
5119
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
5120
5120
|
*/
|
|
5121
5121
|
"stroke-w": [{
|
|
5122
|
-
stroke: [wl, nF,
|
|
5122
|
+
stroke: [wl, nF, _U, ac]
|
|
5123
5123
|
}],
|
|
5124
5124
|
/**
|
|
5125
5125
|
* Stroke
|
|
@@ -5323,7 +5323,7 @@ function mT(l, U, d, Z, F) {
|
|
|
5323
5323
|
function CU(l, U, d) {
|
|
5324
5324
|
return Math.min(Math.max(l, U), d);
|
|
5325
5325
|
}
|
|
5326
|
-
const uT = /* @__PURE__ */ new Date("2025-
|
|
5326
|
+
const uT = /* @__PURE__ */ new Date("2025-12-04T02:49:00.032Z"), ec = "Please visit https://www.vue-pdf-viewer.dev/license-management/ to generate a new license key.", EZ = {
|
|
5327
5327
|
invalidLicense: JSON.stringify({
|
|
5328
5328
|
message: `You are currently using %cwithout%c a valid license. ${ec}`,
|
|
5329
5329
|
style: ["font-weight: bold;", "font-weight: normal;"]
|
|
@@ -5379,7 +5379,7 @@ function TT(l) {
|
|
|
5379
5379
|
}
|
|
5380
5380
|
async function GT(l, U) {
|
|
5381
5381
|
try {
|
|
5382
|
-
const d = await import("./index-
|
|
5382
|
+
const d = await import("./index-9uIbB4QC.js").then((V) => V.i), Z = d.pki.publicKeyFromPem(U), F = atob(l.data), t = d.util.decode64(l.signature), c = d.pss.create({
|
|
5383
5383
|
md: d.md.sha256.create(),
|
|
5384
5384
|
mgf: d.mgf.mgf1.create(d.md.sha256.create()),
|
|
5385
5385
|
saltLength: 32
|
|
@@ -5559,7 +5559,7 @@ function ST(l) {
|
|
|
5559
5559
|
{ attributes: !0, childList: !0, subtree: !0, characterData: !0 }
|
|
5560
5560
|
), { license: U };
|
|
5561
5561
|
}
|
|
5562
|
-
const
|
|
5562
|
+
const cZ = {
|
|
5563
5563
|
SELECTING: "selecting",
|
|
5564
5564
|
FOCUS_IN: "focusin"
|
|
5565
5565
|
}, _e = {
|
|
@@ -7039,9 +7039,9 @@ function JG(l, U) {
|
|
|
7039
7039
|
}, {
|
|
7040
7040
|
...U,
|
|
7041
7041
|
flush: (d = void 0) != null ? d : "sync"
|
|
7042
|
-
}),
|
|
7042
|
+
}), aZ(Z);
|
|
7043
7043
|
}
|
|
7044
|
-
function
|
|
7044
|
+
function QZ(l) {
|
|
7045
7045
|
return Jt() ? (pt(l), !0) : !1;
|
|
7046
7046
|
}
|
|
7047
7047
|
function pG() {
|
|
@@ -7052,7 +7052,7 @@ function pG() {
|
|
|
7052
7052
|
on: (t) => {
|
|
7053
7053
|
l.add(t);
|
|
7054
7054
|
const c = () => U(t);
|
|
7055
|
-
return
|
|
7055
|
+
return QZ(c), {
|
|
7056
7056
|
off: c
|
|
7057
7057
|
};
|
|
7058
7058
|
},
|
|
@@ -7073,7 +7073,7 @@ function GG(l) {
|
|
|
7073
7073
|
const F = () => {
|
|
7074
7074
|
U -= 1, Z && U <= 0 && (Z.stop(), d = void 0, Z = void 0);
|
|
7075
7075
|
};
|
|
7076
|
-
return (...t) => (U += 1, Z || (Z = Tt(!0), d = Z.run(() => l(...t))),
|
|
7076
|
+
return (...t) => (U += 1, Z || (Z = Tt(!0), d = Z.run(() => l(...t))), QZ(F), d);
|
|
7077
7077
|
}
|
|
7078
7078
|
function hG(l) {
|
|
7079
7079
|
if (!Bd(l))
|
|
@@ -7130,7 +7130,7 @@ function uQ(l, U = 1e4) {
|
|
|
7130
7130
|
const c = () => setTimeout(() => {
|
|
7131
7131
|
F = hl(l), Z();
|
|
7132
7132
|
}, hl(U));
|
|
7133
|
-
return
|
|
7133
|
+
return QZ(() => {
|
|
7134
7134
|
clearTimeout(t);
|
|
7135
7135
|
}), {
|
|
7136
7136
|
get() {
|
|
@@ -7163,8 +7163,8 @@ function pn(l, U, d = {}) {
|
|
|
7163
7163
|
t.value = !1, c = null, l(...Q);
|
|
7164
7164
|
}, hl(U));
|
|
7165
7165
|
}
|
|
7166
|
-
return Z && (t.value = !0, bU && V()),
|
|
7167
|
-
isPending:
|
|
7166
|
+
return Z && (t.value = !0, bU && V()), QZ(a), {
|
|
7167
|
+
isPending: aZ(t),
|
|
7168
7168
|
start: V,
|
|
7169
7169
|
stop: a
|
|
7170
7170
|
};
|
|
@@ -7232,7 +7232,7 @@ function iF(...l) {
|
|
|
7232
7232
|
), c = () => {
|
|
7233
7233
|
t(), d();
|
|
7234
7234
|
};
|
|
7235
|
-
return
|
|
7235
|
+
return QZ(d), c;
|
|
7236
7236
|
}
|
|
7237
7237
|
function MQ() {
|
|
7238
7238
|
const l = Sl(!1), U = md();
|
|
@@ -7289,8 +7289,8 @@ function JQ(l, U = {}) {
|
|
|
7289
7289
|
function s() {
|
|
7290
7290
|
c.value = !1, V != null && F && (F.cancelAnimationFrame(V), V = null);
|
|
7291
7291
|
}
|
|
7292
|
-
return d && W(),
|
|
7293
|
-
isActive:
|
|
7292
|
+
return d && W(), QZ(s), {
|
|
7293
|
+
isActive: aZ(c),
|
|
7294
7294
|
pause: s,
|
|
7295
7295
|
resume: W
|
|
7296
7296
|
};
|
|
@@ -7319,7 +7319,7 @@ function jG(l, U, d = {}) {
|
|
|
7319
7319
|
), Q = () => {
|
|
7320
7320
|
n(), V();
|
|
7321
7321
|
};
|
|
7322
|
-
return
|
|
7322
|
+
return QZ(Q), {
|
|
7323
7323
|
isSupported: c,
|
|
7324
7324
|
stop: Q
|
|
7325
7325
|
};
|
|
@@ -7551,7 +7551,7 @@ function AG(l, U) {
|
|
|
7551
7551
|
}), Kl((n) => {
|
|
7552
7552
|
if (Z.value) {
|
|
7553
7553
|
const a = (V) => {
|
|
7554
|
-
if (!Z.value || !(V.target instanceof
|
|
7554
|
+
if (!Z.value || !(V.target instanceof HTMLElement)) return;
|
|
7555
7555
|
const Q = V.target, W = {
|
|
7556
7556
|
x: V.clientX,
|
|
7557
7557
|
y: V.clientY
|
|
@@ -7739,7 +7739,7 @@ function SQ(l) {
|
|
|
7739
7739
|
});
|
|
7740
7740
|
}
|
|
7741
7741
|
let nh = 0;
|
|
7742
|
-
function
|
|
7742
|
+
function VZ(l, U = "reka") {
|
|
7743
7743
|
if ("useId" in Qt) return `${U}-${Qt.useId?.()}`;
|
|
7744
7744
|
const d = Dt({ useId: void 0 });
|
|
7745
7745
|
return d.useId ? `${U}-${d.useId()}` : `${U}-${++nh}`;
|
|
@@ -8029,7 +8029,7 @@ var Nh = /* @__PURE__ */ g({
|
|
|
8029
8029
|
emits: ["contentFound"],
|
|
8030
8030
|
setup(l, { emit: U }) {
|
|
8031
8031
|
const d = l, Z = U, F = YQ();
|
|
8032
|
-
F.contentId ||=
|
|
8032
|
+
F.contentId ||= VZ(void 0, "reka-collapsible-content");
|
|
8033
8033
|
const t = J(), { forwardRef: c, currentElement: n } = Hl(), a = J(0), V = J(0), Q = T(() => F.open.value), W = J(Q.value), s = J();
|
|
8034
8034
|
q(() => [Q.value, t.value?.present], async () => {
|
|
8035
8035
|
await Tl();
|
|
@@ -9325,7 +9325,7 @@ const aS = function(l) {
|
|
|
9325
9325
|
function Et() {
|
|
9326
9326
|
return typeof window < "u";
|
|
9327
9327
|
}
|
|
9328
|
-
function
|
|
9328
|
+
function WZ(l) {
|
|
9329
9329
|
return zn(l) ? (l.nodeName || "").toLowerCase() : "#document";
|
|
9330
9330
|
}
|
|
9331
9331
|
function Kd(l) {
|
|
@@ -9360,7 +9360,7 @@ function XF(l) {
|
|
|
9360
9360
|
}
|
|
9361
9361
|
const sS = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
9362
9362
|
function RS(l) {
|
|
9363
|
-
return sS.has(
|
|
9363
|
+
return sS.has(WZ(l));
|
|
9364
9364
|
}
|
|
9365
9365
|
const NS = [":popover-open", ":modal"];
|
|
9366
9366
|
function rt(l) {
|
|
@@ -9393,7 +9393,7 @@ function kn() {
|
|
|
9393
9393
|
}
|
|
9394
9394
|
const uS = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
9395
9395
|
function OZ(l) {
|
|
9396
|
-
return uS.has(
|
|
9396
|
+
return uS.has(WZ(l));
|
|
9397
9397
|
}
|
|
9398
9398
|
function FU(l) {
|
|
9399
9399
|
return Kd(l).getComputedStyle(l);
|
|
@@ -9408,7 +9408,7 @@ function Ct(l) {
|
|
|
9408
9408
|
};
|
|
9409
9409
|
}
|
|
9410
9410
|
function fU(l) {
|
|
9411
|
-
if (
|
|
9411
|
+
if (WZ(l) === "html")
|
|
9412
9412
|
return l;
|
|
9413
9413
|
const U = (
|
|
9414
9414
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
@@ -9475,7 +9475,7 @@ function rQ(l) {
|
|
|
9475
9475
|
function JS(l, U, d) {
|
|
9476
9476
|
return U === void 0 && (U = !1), !d || U && d !== Kd(l) ? !1 : U;
|
|
9477
9477
|
}
|
|
9478
|
-
function
|
|
9478
|
+
function nZ(l, U, d, Z) {
|
|
9479
9479
|
U === void 0 && (U = !1), d === void 0 && (d = !1);
|
|
9480
9480
|
const F = l.getBoundingClientRect(), t = Dn(l);
|
|
9481
9481
|
let c = RU(1);
|
|
@@ -9499,7 +9499,7 @@ function aZ(l, U, d, Z) {
|
|
|
9499
9499
|
}
|
|
9500
9500
|
function wt(l, U) {
|
|
9501
9501
|
const d = Ct(l).scrollLeft;
|
|
9502
|
-
return U ? U.left + d :
|
|
9502
|
+
return U ? U.left + d : nZ(mU(l)).left + d;
|
|
9503
9503
|
}
|
|
9504
9504
|
function CQ(l, U) {
|
|
9505
9505
|
const d = l.getBoundingClientRect(), Z = d.left + U.scrollLeft - wt(l, d), F = d.top + U.scrollTop;
|
|
@@ -9523,8 +9523,8 @@ function pS(l) {
|
|
|
9523
9523
|
scrollTop: 0
|
|
9524
9524
|
}, V = RU(1);
|
|
9525
9525
|
const Q = RU(0), W = NU(Z);
|
|
9526
|
-
if ((W || !W && !t) && ((
|
|
9527
|
-
const R =
|
|
9526
|
+
if ((W || !W && !t) && ((WZ(Z) !== "body" || XF(c)) && (a = Ct(Z)), NU(Z))) {
|
|
9527
|
+
const R = nZ(Z);
|
|
9528
9528
|
V = rZ(Z), Q.x = R.x + Z.clientLeft, Q.y = R.y + Z.clientTop;
|
|
9529
9529
|
}
|
|
9530
9530
|
const s = c && !W && !t ? CQ(c, a) : RU(0);
|
|
@@ -9572,7 +9572,7 @@ function hS(l, U) {
|
|
|
9572
9572
|
}
|
|
9573
9573
|
const SS = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
9574
9574
|
function XS(l, U) {
|
|
9575
|
-
const d =
|
|
9575
|
+
const d = nZ(l, !0, U === "fixed"), Z = d.top + l.clientTop, F = d.left + l.clientLeft, t = NU(l) ? rZ(l) : RU(1), c = l.clientWidth * t.x, n = l.clientHeight * t.y, a = F * t.x, V = Z * t.y;
|
|
9576
9576
|
return {
|
|
9577
9577
|
width: c,
|
|
9578
9578
|
height: n,
|
|
@@ -9607,7 +9607,7 @@ function YS(l, U) {
|
|
|
9607
9607
|
const d = U.get(l);
|
|
9608
9608
|
if (d)
|
|
9609
9609
|
return d;
|
|
9610
|
-
let Z = bF(l, [], !1).filter((n) => ZU(n) &&
|
|
9610
|
+
let Z = bF(l, [], !1).filter((n) => ZU(n) && WZ(n) !== "body"), F = null;
|
|
9611
9611
|
const t = FU(l).position === "fixed";
|
|
9612
9612
|
let c = t ? fU(l) : l;
|
|
9613
9613
|
for (; ZU(c) && !OZ(c); ) {
|
|
@@ -9645,7 +9645,7 @@ function yS(l) {
|
|
|
9645
9645
|
};
|
|
9646
9646
|
}
|
|
9647
9647
|
function zS(l, U, d) {
|
|
9648
|
-
const Z = NU(U), F = mU(U), t = d === "fixed", c =
|
|
9648
|
+
const Z = NU(U), F = mU(U), t = d === "fixed", c = nZ(l, !0, t, U);
|
|
9649
9649
|
let n = {
|
|
9650
9650
|
scrollLeft: 0,
|
|
9651
9651
|
scrollTop: 0
|
|
@@ -9655,8 +9655,8 @@ function zS(l, U, d) {
|
|
|
9655
9655
|
a.x = wt(F);
|
|
9656
9656
|
}
|
|
9657
9657
|
if (Z || !Z && !t)
|
|
9658
|
-
if ((
|
|
9659
|
-
const R =
|
|
9658
|
+
if ((WZ(U) !== "body" || XF(F)) && (n = Ct(U)), Z) {
|
|
9659
|
+
const R = nZ(U, !0, t, U);
|
|
9660
9660
|
a.x = R.x + U.clientLeft, a.y = R.y + U.clientTop;
|
|
9661
9661
|
} else F && V();
|
|
9662
9662
|
t && !Z && F && V();
|
|
@@ -9796,10 +9796,10 @@ function OQ(l, U, d, Z) {
|
|
|
9796
9796
|
(G = R) == null || G.observe(U);
|
|
9797
9797
|
})), d();
|
|
9798
9798
|
}), V && !a && R.observe(V), R.observe(U));
|
|
9799
|
-
let N, b = a ?
|
|
9799
|
+
let N, b = a ? nZ(l) : null;
|
|
9800
9800
|
a && i();
|
|
9801
9801
|
function i() {
|
|
9802
|
-
const m =
|
|
9802
|
+
const m = nZ(l);
|
|
9803
9803
|
b && !jQ(b, m) && d(), b = m, N = requestAnimationFrame(i);
|
|
9804
9804
|
}
|
|
9805
9805
|
return d(), () => {
|
|
@@ -9828,7 +9828,7 @@ function CS(l) {
|
|
|
9828
9828
|
function Kc(l) {
|
|
9829
9829
|
if (CS(l)) {
|
|
9830
9830
|
const U = l.$el;
|
|
9831
|
-
return zn(U) &&
|
|
9831
|
+
return zn(U) && WZ(U) === "#comment" ? null : U;
|
|
9832
9832
|
}
|
|
9833
9833
|
return l;
|
|
9834
9834
|
}
|
|
@@ -9926,12 +9926,12 @@ function qQ(l, U, d) {
|
|
|
9926
9926
|
}), q(F, B, {
|
|
9927
9927
|
flush: "sync"
|
|
9928
9928
|
}), Jt() && pt(X), {
|
|
9929
|
-
x:
|
|
9930
|
-
y:
|
|
9931
|
-
strategy:
|
|
9932
|
-
placement:
|
|
9933
|
-
middlewareData:
|
|
9934
|
-
isPositioned:
|
|
9929
|
+
x: UZ(W),
|
|
9930
|
+
y: UZ(s),
|
|
9931
|
+
strategy: UZ(R),
|
|
9932
|
+
placement: UZ(N),
|
|
9933
|
+
middlewareData: UZ(b),
|
|
9934
|
+
isPositioned: UZ(i),
|
|
9935
9935
|
floatingStyles: m,
|
|
9936
9936
|
update: G
|
|
9937
9937
|
};
|
|
@@ -10734,7 +10734,7 @@ var fS = /* @__PURE__ */ g({
|
|
|
10734
10734
|
],
|
|
10735
10735
|
setup(l, { emit: U }) {
|
|
10736
10736
|
const d = l, Z = U, F = YF(), t = LU(d, Z), { forwardRef: c } = Hl();
|
|
10737
|
-
return F.contentId ||=
|
|
10737
|
+
return F.contentId ||= VZ(void 0, "reka-popover-content"), (n, a) => (M(), r(e(SF), { present: n.forceMount || e(F).open.value }, {
|
|
10738
10738
|
default: o(() => [e(F).modal.value ? (M(), r(_S, el({ key: 0 }, e(t), { ref: e(c) }), {
|
|
10739
10739
|
default: o(() => [C(n.$slots, "default")]),
|
|
10740
10740
|
_: 3
|
|
@@ -10787,7 +10787,7 @@ var fS = /* @__PURE__ */ g({
|
|
|
10787
10787
|
},
|
|
10788
10788
|
setup(l) {
|
|
10789
10789
|
const U = l, d = YF(), { forwardRef: Z, currentElement: F } = Hl();
|
|
10790
|
-
return d.triggerId ||=
|
|
10790
|
+
return d.triggerId ||= VZ(void 0, "reka-popover-trigger"), vl(() => {
|
|
10791
10791
|
d.triggerElement.value = F.value;
|
|
10792
10792
|
}), (t, c) => (M(), r(Ld(e(d).hasCustomAnchor.value ? e(ld) : e(Xn)), { "as-child": "" }, {
|
|
10793
10793
|
default: o(() => [z(e(ld), {
|
|
@@ -10817,27 +10817,83 @@ var fS = /* @__PURE__ */ g({
|
|
|
10817
10817
|
_: 3
|
|
10818
10818
|
}));
|
|
10819
10819
|
}
|
|
10820
|
-
}), UV = ZX
|
|
10821
|
-
|
|
10820
|
+
}), UV = ZX, FX = /* @__PURE__ */ g({
|
|
10821
|
+
__name: "BubbleSelect",
|
|
10822
|
+
props: {
|
|
10823
|
+
autocomplete: {
|
|
10824
|
+
type: String,
|
|
10825
|
+
required: !1
|
|
10826
|
+
},
|
|
10827
|
+
autofocus: {
|
|
10828
|
+
type: Boolean,
|
|
10829
|
+
required: !1
|
|
10830
|
+
},
|
|
10831
|
+
disabled: {
|
|
10832
|
+
type: Boolean,
|
|
10833
|
+
required: !1
|
|
10834
|
+
},
|
|
10835
|
+
form: {
|
|
10836
|
+
type: String,
|
|
10837
|
+
required: !1
|
|
10838
|
+
},
|
|
10839
|
+
multiple: {
|
|
10840
|
+
type: Boolean,
|
|
10841
|
+
required: !1
|
|
10842
|
+
},
|
|
10843
|
+
name: {
|
|
10844
|
+
type: String,
|
|
10845
|
+
required: !1
|
|
10846
|
+
},
|
|
10847
|
+
required: {
|
|
10848
|
+
type: Boolean,
|
|
10849
|
+
required: !1
|
|
10850
|
+
},
|
|
10851
|
+
size: {
|
|
10852
|
+
type: Number,
|
|
10853
|
+
required: !1
|
|
10854
|
+
},
|
|
10855
|
+
value: {
|
|
10856
|
+
type: null,
|
|
10857
|
+
required: !1
|
|
10858
|
+
}
|
|
10859
|
+
},
|
|
10860
|
+
setup(l) {
|
|
10861
|
+
const U = l, d = J();
|
|
10862
|
+
return q(() => U.value, (Z, F) => {
|
|
10863
|
+
const t = window.HTMLSelectElement.prototype, n = Object.getOwnPropertyDescriptor(t, "value").set;
|
|
10864
|
+
if (Z !== F && n && d.value) {
|
|
10865
|
+
const a = new Event("change", { bubbles: !0 });
|
|
10866
|
+
n.call(d.value, Z), d.value.dispatchEvent(a);
|
|
10867
|
+
}
|
|
10868
|
+
}), (Z, F) => (M(), r(e(It), { "as-child": "" }, {
|
|
10869
|
+
default: o(() => [ll("select", el({
|
|
10870
|
+
ref_key: "selectElement",
|
|
10871
|
+
ref: d
|
|
10872
|
+
}, U), [C(Z.$slots, "default")], 16)]),
|
|
10873
|
+
_: 3
|
|
10874
|
+
}));
|
|
10875
|
+
}
|
|
10876
|
+
}), tX = FX;
|
|
10877
|
+
const cX = [
|
|
10822
10878
|
" ",
|
|
10823
10879
|
"Enter",
|
|
10824
10880
|
"ArrowUp",
|
|
10825
10881
|
"ArrowDown"
|
|
10826
|
-
],
|
|
10882
|
+
], nX = [" ", "Enter"], lU = 10;
|
|
10827
10883
|
function mF(l, U, d) {
|
|
10828
10884
|
return l === void 0 ? !1 : Array.isArray(l) ? l.some((Z) => Hc(Z, U, d)) : Hc(l, U, d);
|
|
10829
10885
|
}
|
|
10830
10886
|
function Hc(l, U, d) {
|
|
10831
10887
|
return l === void 0 || U === void 0 ? !1 : typeof l == "string" ? l === U : typeof d == "function" ? d(l, U) : typeof d == "string" ? l?.[d] === U?.[d] : MG(l, U);
|
|
10832
10888
|
}
|
|
10833
|
-
function
|
|
10889
|
+
function aX(l) {
|
|
10834
10890
|
return l == null || l === "" || Array.isArray(l) && l.length === 0;
|
|
10835
10891
|
}
|
|
10836
|
-
const
|
|
10892
|
+
const eX = {
|
|
10837
10893
|
key: 0,
|
|
10838
10894
|
value: ""
|
|
10839
|
-
}, [
|
|
10840
|
-
var
|
|
10895
|
+
}, [sZ, ZV] = xd("SelectRoot");
|
|
10896
|
+
var QX = /* @__PURE__ */ g({
|
|
10841
10897
|
inheritAttrs: !1,
|
|
10842
10898
|
__name: "SelectRoot",
|
|
10843
10899
|
props: {
|
|
@@ -10948,7 +11004,7 @@ var aX = /* @__PURE__ */ g({
|
|
|
10948
11004
|
default: o(() => [C(X.$slots, "default", {
|
|
10949
11005
|
modelValue: e(a),
|
|
10950
11006
|
open: e(V)
|
|
10951
|
-
}), e(b) ? (M(), r(
|
|
11007
|
+
}), e(b) ? (M(), r(tX, {
|
|
10952
11008
|
key: m.value,
|
|
10953
11009
|
"aria-hidden": "true",
|
|
10954
11010
|
tabindex: "-1",
|
|
@@ -10959,7 +11015,7 @@ var aX = /* @__PURE__ */ g({
|
|
|
10959
11015
|
disabled: e(t),
|
|
10960
11016
|
value: e(a)
|
|
10961
11017
|
}, {
|
|
10962
|
-
default: o(() => [e(Xa)(e(a)) ? (M(), cl("option",
|
|
11018
|
+
default: o(() => [e(Xa)(e(a)) ? (M(), cl("option", eX)) : ol("v-if", !0), (M(!0), cl(fl, null, Nd(Array.from(i.value), (B) => (M(), cl("option", el({ key: B.value ?? "" }, { ref_for: !0 }, B), null, 16))), 128))]),
|
|
10963
11019
|
_: 1
|
|
10964
11020
|
}, 8, [
|
|
10965
11021
|
"multiple",
|
|
@@ -10972,66 +11028,6 @@ var aX = /* @__PURE__ */ g({
|
|
|
10972
11028
|
_: 3
|
|
10973
11029
|
}));
|
|
10974
11030
|
}
|
|
10975
|
-
}), eX = aX, QX = /* @__PURE__ */ g({
|
|
10976
|
-
__name: "BubbleSelect",
|
|
10977
|
-
props: {
|
|
10978
|
-
autocomplete: {
|
|
10979
|
-
type: String,
|
|
10980
|
-
required: !1
|
|
10981
|
-
},
|
|
10982
|
-
autofocus: {
|
|
10983
|
-
type: Boolean,
|
|
10984
|
-
required: !1
|
|
10985
|
-
},
|
|
10986
|
-
disabled: {
|
|
10987
|
-
type: Boolean,
|
|
10988
|
-
required: !1
|
|
10989
|
-
},
|
|
10990
|
-
form: {
|
|
10991
|
-
type: String,
|
|
10992
|
-
required: !1
|
|
10993
|
-
},
|
|
10994
|
-
multiple: {
|
|
10995
|
-
type: Boolean,
|
|
10996
|
-
required: !1
|
|
10997
|
-
},
|
|
10998
|
-
name: {
|
|
10999
|
-
type: String,
|
|
11000
|
-
required: !1
|
|
11001
|
-
},
|
|
11002
|
-
required: {
|
|
11003
|
-
type: Boolean,
|
|
11004
|
-
required: !1
|
|
11005
|
-
},
|
|
11006
|
-
size: {
|
|
11007
|
-
type: Number,
|
|
11008
|
-
required: !1
|
|
11009
|
-
},
|
|
11010
|
-
value: {
|
|
11011
|
-
type: null,
|
|
11012
|
-
required: !1
|
|
11013
|
-
}
|
|
11014
|
-
},
|
|
11015
|
-
setup(l) {
|
|
11016
|
-
const U = l, d = J(), Z = AU();
|
|
11017
|
-
q(() => U.value, (t, c) => {
|
|
11018
|
-
const n = window.HTMLSelectElement.prototype, V = Object.getOwnPropertyDescriptor(n, "value").set;
|
|
11019
|
-
if (t !== c && V && d.value) {
|
|
11020
|
-
const Q = new Event("change", { bubbles: !0 });
|
|
11021
|
-
V.call(d.value, t), d.value.dispatchEvent(Q);
|
|
11022
|
-
}
|
|
11023
|
-
});
|
|
11024
|
-
function F(t) {
|
|
11025
|
-
Z.onValueChange(t.target.value);
|
|
11026
|
-
}
|
|
11027
|
-
return (t, c) => (M(), r(e(It), { "as-child": "" }, {
|
|
11028
|
-
default: o(() => [ll("select", el({
|
|
11029
|
-
ref_key: "selectElement",
|
|
11030
|
-
ref: d
|
|
11031
|
-
}, U, { onInput: F }), [C(t.$slots, "default")], 16)]),
|
|
11032
|
-
_: 3
|
|
11033
|
-
}));
|
|
11034
|
-
}
|
|
11035
11031
|
}), VX = QX, WX = /* @__PURE__ */ g({
|
|
11036
11032
|
__name: "SelectPopperPosition",
|
|
11037
11033
|
props: {
|
|
@@ -11234,7 +11230,7 @@ var NX = /* @__PURE__ */ g({
|
|
|
11234
11230
|
"pointerDownOutside"
|
|
11235
11231
|
],
|
|
11236
11232
|
setup(l, { emit: U }) {
|
|
11237
|
-
const d = l, Z = U, F =
|
|
11233
|
+
const d = l, Z = U, F = sZ();
|
|
11238
11234
|
GQ(), pQ(d.bodyLock);
|
|
11239
11235
|
const { CollectionSlot: t, getItems: c } = kU(), n = J();
|
|
11240
11236
|
SQ(n);
|
|
@@ -11383,7 +11379,7 @@ var bX = /* @__PURE__ */ g({
|
|
|
11383
11379
|
},
|
|
11384
11380
|
emits: ["placed"],
|
|
11385
11381
|
setup(l, { emit: U }) {
|
|
11386
|
-
const d = l, Z = U, { getItems: F } = kU(), t =
|
|
11382
|
+
const d = l, Z = U, { getItems: F } = kU(), t = sZ(), c = RZ(), n = J(!1), a = J(!0), V = J(), { forwardRef: Q, currentElement: W } = Hl(), { viewport: s, selectedItem: R, selectedItemText: N, focusSelectedItem: b } = c;
|
|
11387
11383
|
function i() {
|
|
11388
11384
|
if (t.triggerElement.value && t.valueElement.value && V.value && W.value && s?.value && R?.value && N?.value) {
|
|
11389
11385
|
const G = t.triggerElement.value.getBoundingClientRect(), X = W.value.getBoundingClientRect(), y = t.valueElement.value.getBoundingClientRect(), B = N.value.getBoundingClientRect();
|
|
@@ -11556,7 +11552,7 @@ var pX = /* @__PURE__ */ g({
|
|
|
11556
11552
|
"pointerDownOutside"
|
|
11557
11553
|
],
|
|
11558
11554
|
setup(l, { emit: U }) {
|
|
11559
|
-
const d = l, F = LU(d, U), t =
|
|
11555
|
+
const d = l, F = LU(d, U), t = sZ(), c = J();
|
|
11560
11556
|
vl(() => {
|
|
11561
11557
|
c.value = new DocumentFragment();
|
|
11562
11558
|
});
|
|
@@ -11597,7 +11593,7 @@ var hX = /* @__PURE__ */ g({
|
|
|
11597
11593
|
}
|
|
11598
11594
|
},
|
|
11599
11595
|
setup(l) {
|
|
11600
|
-
const U = l, d =
|
|
11596
|
+
const U = l, d = VZ(void 0, "reka-select-group");
|
|
11601
11597
|
return GX({ id: d }), (Z, F) => (M(), r(e(ld), el({ role: "group" }, U, { "aria-labelledby": e(d) }), {
|
|
11602
11598
|
default: o(() => [C(Z.$slots, "default")]),
|
|
11603
11599
|
_: 3
|
|
@@ -11654,7 +11650,7 @@ var zX = /* @__PURE__ */ g({
|
|
|
11654
11650
|
},
|
|
11655
11651
|
emits: ["select"],
|
|
11656
11652
|
setup(l, { emit: U }) {
|
|
11657
|
-
const d = l, Z = U, { disabled: F } = Ol(d), t =
|
|
11653
|
+
const d = l, Z = U, { disabled: F } = Ol(d), t = sZ(), c = RZ(), { forwardRef: n, currentElement: a } = Hl(), { CollectionItem: V } = kU(), Q = T(() => mF(t.modelValue?.value, d.value, t.by)), W = J(!1), s = J(d.textValue ?? ""), R = VZ(void 0, "reka-select-item-text"), N = "select.select";
|
|
11658
11654
|
async function b(X) {
|
|
11659
11655
|
if (X.defaultPrevented) return;
|
|
11660
11656
|
const y = {
|
|
@@ -11673,7 +11669,7 @@ var zX = /* @__PURE__ */ g({
|
|
|
11673
11669
|
await Tl(), !X.defaultPrevented && X.currentTarget === Cd() && c.onItemLeave?.();
|
|
11674
11670
|
}
|
|
11675
11671
|
async function G(X) {
|
|
11676
|
-
await Tl(), !(X.defaultPrevented || c.searchRef?.value !== "" && X.key === " ") && (
|
|
11672
|
+
await Tl(), !(X.defaultPrevented || c.searchRef?.value !== "" && X.key === " ") && (nX.includes(X.key) && b(X), X.key === " " && X.preventDefault());
|
|
11677
11673
|
}
|
|
11678
11674
|
if (d.value === "") throw new Error("A <SelectItem /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");
|
|
11679
11675
|
return vl(() => {
|
|
@@ -11742,7 +11738,7 @@ var zX = /* @__PURE__ */ g({
|
|
|
11742
11738
|
}
|
|
11743
11739
|
},
|
|
11744
11740
|
setup(l) {
|
|
11745
|
-
const U = l, d =
|
|
11741
|
+
const U = l, d = sZ(), Z = RZ(), F = BX(), { forwardRef: t, currentElement: c } = Hl(), n = T(() => ({
|
|
11746
11742
|
value: F.value,
|
|
11747
11743
|
disabled: F.disabled.value,
|
|
11748
11744
|
textContent: c.value?.textContent ?? F.value?.toString() ?? ""
|
|
@@ -11919,8 +11915,8 @@ var zX = /* @__PURE__ */ g({
|
|
|
11919
11915
|
}
|
|
11920
11916
|
},
|
|
11921
11917
|
setup(l) {
|
|
11922
|
-
const U = l, d =
|
|
11923
|
-
d.contentId ||=
|
|
11918
|
+
const U = l, d = sZ(), { forwardRef: Z, currentElement: F } = Hl(), t = T(() => d.disabled?.value || U.disabled);
|
|
11919
|
+
d.contentId ||= VZ(void 0, "reka-select-content"), vl(() => {
|
|
11924
11920
|
d.onTriggerChange(F.value);
|
|
11925
11921
|
});
|
|
11926
11922
|
const { getItems: c } = kU(), { search: n, handleTypeaheadSearch: a, resetTypeahead: V } = XQ();
|
|
@@ -11949,7 +11945,7 @@ var zX = /* @__PURE__ */ g({
|
|
|
11949
11945
|
dir: e(d)?.dir.value,
|
|
11950
11946
|
"data-state": e(d)?.open.value ? "open" : "closed",
|
|
11951
11947
|
"data-disabled": t.value ? "" : void 0,
|
|
11952
|
-
"data-placeholder": e(
|
|
11948
|
+
"data-placeholder": e(aX)(e(d).modelValue?.value) ? "" : void 0,
|
|
11953
11949
|
"as-child": s.asChild,
|
|
11954
11950
|
as: s.as,
|
|
11955
11951
|
onClick: R[0] || (R[0] = (N) => {
|
|
@@ -11965,7 +11961,7 @@ var zX = /* @__PURE__ */ g({
|
|
|
11965
11961
|
}, ["prevent"])),
|
|
11966
11962
|
onKeydown: R[3] || (R[3] = (N) => {
|
|
11967
11963
|
const b = e(n) !== "";
|
|
11968
|
-
!(N.ctrlKey || N.altKey || N.metaKey) && N.key.length === 1 && b && N.key === " " || (e(a)(N.key, e(c)()), e(
|
|
11964
|
+
!(N.ctrlKey || N.altKey || N.metaKey) && N.key.length === 1 && b && N.key === " " || (e(a)(N.key, e(c)()), e(cX).includes(N.key) && (Q(), N.preventDefault()));
|
|
11969
11965
|
})
|
|
11970
11966
|
}, {
|
|
11971
11967
|
default: o(() => [C(s.$slots, "default")]),
|
|
@@ -12005,7 +12001,7 @@ var zX = /* @__PURE__ */ g({
|
|
|
12005
12001
|
}
|
|
12006
12002
|
},
|
|
12007
12003
|
setup(l) {
|
|
12008
|
-
const U = l, { forwardRef: d, currentElement: Z } = Hl(), F =
|
|
12004
|
+
const U = l, { forwardRef: d, currentElement: Z } = Hl(), F = sZ();
|
|
12009
12005
|
vl(() => {
|
|
12010
12006
|
F.valueElement = Z;
|
|
12011
12007
|
});
|
|
@@ -12141,10 +12137,6 @@ var _X = /* @__PURE__ */ g({
|
|
|
12141
12137
|
required: !1,
|
|
12142
12138
|
default: 5e3
|
|
12143
12139
|
},
|
|
12144
|
-
disableSwipe: {
|
|
12145
|
-
type: Boolean,
|
|
12146
|
-
required: !1
|
|
12147
|
-
},
|
|
12148
12140
|
swipeDirection: {
|
|
12149
12141
|
type: String,
|
|
12150
12142
|
required: !1,
|
|
@@ -12157,33 +12149,32 @@ var _X = /* @__PURE__ */ g({
|
|
|
12157
12149
|
}
|
|
12158
12150
|
},
|
|
12159
12151
|
setup(l) {
|
|
12160
|
-
const U = l, { label: d, duration: Z,
|
|
12152
|
+
const U = l, { label: d, duration: Z, swipeDirection: F, swipeThreshold: t } = Ol(U);
|
|
12161
12153
|
kU({ isProvider: !0 });
|
|
12162
|
-
const
|
|
12154
|
+
const c = J(), n = J(0), a = J(!1), V = J(!1);
|
|
12163
12155
|
if (U.label && typeof U.label == "string" && !U.label.trim()) {
|
|
12164
|
-
const
|
|
12165
|
-
throw new Error(
|
|
12156
|
+
const Q = "Invalid prop `label` supplied to `ToastProvider`. Expected non-empty `string`.";
|
|
12157
|
+
throw new Error(Q);
|
|
12166
12158
|
}
|
|
12167
12159
|
return qX({
|
|
12168
12160
|
label: d,
|
|
12169
12161
|
duration: Z,
|
|
12170
|
-
|
|
12171
|
-
|
|
12172
|
-
|
|
12173
|
-
|
|
12174
|
-
|
|
12175
|
-
|
|
12176
|
-
n.value = W;
|
|
12162
|
+
swipeDirection: F,
|
|
12163
|
+
swipeThreshold: t,
|
|
12164
|
+
toastCount: n,
|
|
12165
|
+
viewport: c,
|
|
12166
|
+
onViewportChange(Q) {
|
|
12167
|
+
c.value = Q;
|
|
12177
12168
|
},
|
|
12178
12169
|
onToastAdd() {
|
|
12179
|
-
|
|
12170
|
+
n.value++;
|
|
12180
12171
|
},
|
|
12181
12172
|
onToastRemove() {
|
|
12182
|
-
|
|
12173
|
+
n.value--;
|
|
12183
12174
|
},
|
|
12184
|
-
isFocusedToastEscapeKeyDownRef:
|
|
12185
|
-
isClosePausedRef:
|
|
12186
|
-
}), (
|
|
12175
|
+
isFocusedToastEscapeKeyDownRef: a,
|
|
12176
|
+
isClosePausedRef: V
|
|
12177
|
+
}), (Q, W) => C(Q.$slots, "default");
|
|
12187
12178
|
}
|
|
12188
12179
|
}), $X = _X, lY = /* @__PURE__ */ g({
|
|
12189
12180
|
__name: "ToastAnnounce",
|
|
@@ -12324,18 +12315,18 @@ var eY = /* @__PURE__ */ g({
|
|
|
12324
12315
|
"as-child": G.asChild,
|
|
12325
12316
|
"data-state": G.open ? "open" : "closed",
|
|
12326
12317
|
"data-swipe-direction": e(n).swipeDirection.value,
|
|
12327
|
-
style:
|
|
12318
|
+
style: {
|
|
12328
12319
|
userSelect: "none",
|
|
12329
12320
|
touchAction: "none"
|
|
12330
12321
|
},
|
|
12331
12322
|
onPointerdown: X[0] || (X[0] = bd((y) => {
|
|
12332
|
-
|
|
12323
|
+
a.value = {
|
|
12333
12324
|
x: y.clientX,
|
|
12334
12325
|
y: y.clientY
|
|
12335
|
-
}
|
|
12326
|
+
};
|
|
12336
12327
|
}, ["left"])),
|
|
12337
12328
|
onPointermove: X[1] || (X[1] = (y) => {
|
|
12338
|
-
if (
|
|
12329
|
+
if (!a.value) return;
|
|
12339
12330
|
const B = y.clientX - a.value.x, u = y.clientY - a.value.y, L = !!V.value, x = ["left", "right"].includes(e(n).swipeDirection.value), S = ["left", "up"].includes(e(n).swipeDirection.value) ? Math.min : Math.max, D = x ? S(0, B) : 0, j = x ? 0 : S(0, u), E = y.pointerType === "touch" ? 10 : 2, H = {
|
|
12340
12331
|
x: D,
|
|
12341
12332
|
y: j
|
|
@@ -12346,7 +12337,6 @@ var eY = /* @__PURE__ */ g({
|
|
|
12346
12337
|
L ? (V.value = H, e(AF)(e(ZY), (w) => Z("swipeMove", w), v)) : e(Ha)(H, e(n).swipeDirection.value, E) ? (V.value = H, e(AF)(e(UY), (w) => Z("swipeStart", w), v), y.target.setPointerCapture(y.pointerId)) : (Math.abs(B) > E || Math.abs(u) > E) && (a.value = null);
|
|
12347
12338
|
}),
|
|
12348
12339
|
onPointerup: X[2] || (X[2] = (y) => {
|
|
12349
|
-
if (e(n).disableSwipe.value) return;
|
|
12350
12340
|
const B = V.value, u = y.target;
|
|
12351
12341
|
if (u.hasPointerCapture(y.pointerId) && u.releasePointerCapture(y.pointerId), V.value = null, a.value = null, B) {
|
|
12352
12342
|
const L = y.currentTarget, x = {
|
|
@@ -12366,8 +12356,7 @@ var eY = /* @__PURE__ */ g({
|
|
|
12366
12356
|
"as",
|
|
12367
12357
|
"as-child",
|
|
12368
12358
|
"data-state",
|
|
12369
|
-
"data-swipe-direction"
|
|
12370
|
-
"style"
|
|
12359
|
+
"data-swipe-direction"
|
|
12371
12360
|
])]),
|
|
12372
12361
|
_: 3
|
|
12373
12362
|
})], 8, ["to"])) : ol("v-if", !0)], 64));
|
|
@@ -13145,7 +13134,7 @@ var hY = /* @__PURE__ */ g({
|
|
|
13145
13134
|
},
|
|
13146
13135
|
setup(l) {
|
|
13147
13136
|
const U = l, d = jt(), Z = rn();
|
|
13148
|
-
d.contentId ||=
|
|
13137
|
+
d.contentId ||= VZ(void 0, "reka-tooltip-content");
|
|
13149
13138
|
const { forwardRef: F, currentElement: t } = Hl(), c = J(!1), n = J(!1), a = T(() => d.disabled.value ? {} : {
|
|
13150
13139
|
click: b,
|
|
13151
13140
|
focus: R,
|
|
@@ -13236,7 +13225,7 @@ function zY(l, U) {
|
|
|
13236
13225
|
}, {
|
|
13237
13226
|
...U,
|
|
13238
13227
|
flush: (d = void 0) != null ? d : "sync"
|
|
13239
|
-
}),
|
|
13228
|
+
}), aZ(Z);
|
|
13240
13229
|
}
|
|
13241
13230
|
function BF(l) {
|
|
13242
13231
|
return Jt() ? (pt(l), !0) : !1;
|
|
@@ -13321,12 +13310,12 @@ function sV(l, U, d = {}) {
|
|
|
13321
13310
|
}, HU(U));
|
|
13322
13311
|
}
|
|
13323
13312
|
return Z && (F.value = !0, DU && a()), BF(n), {
|
|
13324
|
-
isPending:
|
|
13313
|
+
isPending: aZ(F),
|
|
13325
13314
|
start: a,
|
|
13326
13315
|
stop: n
|
|
13327
13316
|
};
|
|
13328
13317
|
}
|
|
13329
|
-
function
|
|
13318
|
+
function AU(l) {
|
|
13330
13319
|
var U;
|
|
13331
13320
|
const d = HU(l);
|
|
13332
13321
|
return (U = d?.$el) != null ? U : d;
|
|
@@ -13340,7 +13329,7 @@ function PZ(...l) {
|
|
|
13340
13329
|
const t = [], c = () => {
|
|
13341
13330
|
t.forEach((Q) => Q()), t.length = 0;
|
|
13342
13331
|
}, n = (Q, W, s, R) => (Q.addEventListener(W, s, R), () => Q.removeEventListener(W, s, R)), a = q(
|
|
13343
|
-
() => [
|
|
13332
|
+
() => [AU(U), HU(F)],
|
|
13344
13333
|
([Q, W]) => {
|
|
13345
13334
|
if (c(), !Q)
|
|
13346
13335
|
return;
|
|
@@ -13578,7 +13567,7 @@ function dB(l, U = lB) {
|
|
|
13578
13567
|
return { createCollection: (Z) => {
|
|
13579
13568
|
const F = J([]);
|
|
13580
13569
|
function t() {
|
|
13581
|
-
const c =
|
|
13570
|
+
const c = AU(Z);
|
|
13582
13571
|
return c ? F.value = Array.from(
|
|
13583
13572
|
c.querySelectorAll(`[${U}]:not([data-disabled])`)
|
|
13584
13573
|
) : F.value = [];
|
|
@@ -13629,7 +13618,7 @@ function Aa() {
|
|
|
13629
13618
|
function UB(l) {
|
|
13630
13619
|
return T(() => {
|
|
13631
13620
|
var U;
|
|
13632
|
-
return HU(l) ? !!((U =
|
|
13621
|
+
return HU(l) ? !!((U = AU(l)) != null && U.closest("form")) : !0;
|
|
13633
13622
|
});
|
|
13634
13623
|
}
|
|
13635
13624
|
function NZ(l) {
|
|
@@ -13654,7 +13643,7 @@ function Md(l, U) {
|
|
|
13654
13643
|
function Dl() {
|
|
13655
13644
|
const l = md(), U = J(), d = T(() => {
|
|
13656
13645
|
var c, n;
|
|
13657
|
-
return ["#text", "#comment"].includes((c = U.value) == null ? void 0 : c.$el.nodeName) ? (n = U.value) == null ? void 0 : n.$el.nextElementSibling :
|
|
13646
|
+
return ["#text", "#comment"].includes((c = U.value) == null ? void 0 : c.$el.nodeName) ? (n = U.value) == null ? void 0 : n.$el.nextElementSibling : AU(U);
|
|
13658
13647
|
}), Z = Object.assign({}, l.exposed), F = {};
|
|
13659
13648
|
for (const c in l.props)
|
|
13660
13649
|
Object.defineProperty(F, c, {
|
|
@@ -13866,7 +13855,7 @@ var QB = function(l) {
|
|
|
13866
13855
|
};
|
|
13867
13856
|
function gn(l) {
|
|
13868
13857
|
let U;
|
|
13869
|
-
q(() =>
|
|
13858
|
+
q(() => AU(l), (d) => {
|
|
13870
13859
|
d ? U = sB(d) : U && U();
|
|
13871
13860
|
}), Fd(() => {
|
|
13872
13861
|
U && U();
|
|
@@ -13886,7 +13875,7 @@ function NB(l) {
|
|
|
13886
13875
|
return ((F = U.value) == null ? void 0 : F.height) ?? 0;
|
|
13887
13876
|
});
|
|
13888
13877
|
return vl(() => {
|
|
13889
|
-
const F =
|
|
13878
|
+
const F = AU(l);
|
|
13890
13879
|
if (F) {
|
|
13891
13880
|
U.value = { width: F.offsetWidth, height: F.offsetHeight };
|
|
13892
13881
|
const t = new ResizeObserver((c) => {
|
|
@@ -13998,7 +13987,7 @@ const vn = g({
|
|
|
13998
13987
|
function bV() {
|
|
13999
13988
|
const l = J(), U = T(() => {
|
|
14000
13989
|
var d, Z;
|
|
14001
|
-
return ["#text", "#comment"].includes((d = l.value) == null ? void 0 : d.$el.nodeName) ? (Z = l.value) == null ? void 0 : Z.$el.nextElementSibling :
|
|
13990
|
+
return ["#text", "#comment"].includes((d = l.value) == null ? void 0 : d.$el.nodeName) ? (Z = l.value) == null ? void 0 : Z.$el.nextElementSibling : AU(l);
|
|
14002
13991
|
});
|
|
14003
13992
|
return {
|
|
14004
13993
|
primitiveElement: l,
|
|
@@ -14113,7 +14102,7 @@ const iZ = g({
|
|
|
14113
14102
|
}
|
|
14114
14103
|
return () => t.value || F.value || n.value ? Gd(U.default({ present: n })[0], {
|
|
14115
14104
|
ref: (Q) => {
|
|
14116
|
-
const W =
|
|
14105
|
+
const W = AU(Q);
|
|
14117
14106
|
return typeof W?.hasAttribute > "u" || (W != null && W.hasAttribute("data-radix-popper-content-wrapper") ? c.value = W.firstElementChild : c.value = W), W;
|
|
14118
14107
|
}
|
|
14119
14108
|
}) : null;
|
|
@@ -17932,7 +17921,7 @@ const Lz = /* @__PURE__ */ g({
|
|
|
17932
17921
|
emits: ["update:modelValue", "update:open"],
|
|
17933
17922
|
setup(l, { emit: U }) {
|
|
17934
17923
|
const F = LU(l, U);
|
|
17935
|
-
return (t, c) => (M(), r(e(
|
|
17924
|
+
return (t, c) => (M(), r(e(VX), rl(gl(e(F))), {
|
|
17936
17925
|
default: o(() => [
|
|
17937
17926
|
C(t.$slots, "default", {}, void 0, !0)
|
|
17938
17927
|
]),
|
|
@@ -18602,7 +18591,7 @@ function xV(l, U, d) {
|
|
|
18602
18591
|
return [w, K, I, k];
|
|
18603
18592
|
}
|
|
18604
18593
|
const JL = ["data-free-text-id"], pL = ["contenteditable"];
|
|
18605
|
-
let
|
|
18594
|
+
let $U = 0, lZ = 0;
|
|
18606
18595
|
const yZ = { x: 0, y: 0 }, xU = { x: 0, y: 0 }, TL = /* @__PURE__ */ g({
|
|
18607
18596
|
__name: "LayerAnnotationEditorFreeTextItem",
|
|
18608
18597
|
props: {
|
|
@@ -18753,7 +18742,7 @@ const yZ = { x: 0, y: 0 }, xU = { x: 0, y: 0 }, TL = /* @__PURE__ */ g({
|
|
|
18753
18742
|
const A = p.clientX - P, _ = p.clientY - f;
|
|
18754
18743
|
s.x = A, s.y = _, W.value = p.pointerId;
|
|
18755
18744
|
const tl = u.value?.getBoundingClientRect();
|
|
18756
|
-
tl && (
|
|
18745
|
+
tl && ($U = p.clientX - tl.left - s.x, lZ = p.clientY - tl.top - s.y, R.x = $U / tl.width, R.y = lZ / tl.height);
|
|
18757
18746
|
},
|
|
18758
18747
|
onMove: (k, p) => {
|
|
18759
18748
|
if (W.value !== p.pointerId)
|
|
@@ -18762,14 +18751,14 @@ const yZ = { x: 0, y: 0 }, xU = { x: 0, y: 0 }, TL = /* @__PURE__ */ g({
|
|
|
18762
18751
|
const O = c.value;
|
|
18763
18752
|
if (!O) return;
|
|
18764
18753
|
const P = u.value?.getBoundingClientRect();
|
|
18765
|
-
!P || !O || (
|
|
18754
|
+
!P || !O || ($U = p.clientX - P.left - s.x, lZ = p.clientY - P.top - s.y, $U = Math.max(0, Math.min($U, P.width - O.offsetWidth)), lZ = Math.max(0, Math.min(lZ, P.height - O.offsetHeight - 10)), R.x = $U / P.width, R.y = lZ / P.height, O.scrollIntoView({ block: "nearest" }));
|
|
18766
18755
|
},
|
|
18767
18756
|
onEnd: (k, p) => {
|
|
18768
18757
|
if (W.value !== p.pointerId || yZ.x === xU.x && yZ.y === xU.y)
|
|
18769
18758
|
return;
|
|
18770
18759
|
if (c.value) {
|
|
18771
18760
|
const A = u.value?.getBoundingClientRect();
|
|
18772
|
-
A && (R.x =
|
|
18761
|
+
A && (R.x = $U / A.width, R.y = lZ / A.height);
|
|
18773
18762
|
}
|
|
18774
18763
|
const P = H(
|
|
18775
18764
|
i.value * b.value,
|
|
@@ -19730,7 +19719,7 @@ const yL = () => {
|
|
|
19730
19719
|
rotation: h.value
|
|
19731
19720
|
};
|
|
19732
19721
|
a.value.push(Vl), k(), Tl(() => {
|
|
19733
|
-
const dl = l.pageWrapperLayer.value?.classList.contains(
|
|
19722
|
+
const dl = l.pageWrapperLayer.value?.classList.contains(cZ.FOCUS_IN) ?? !1;
|
|
19734
19723
|
V.set(Vl.id, dl);
|
|
19735
19724
|
});
|
|
19736
19725
|
const Wl = {
|
|
@@ -19747,8 +19736,8 @@ const yL = () => {
|
|
|
19747
19736
|
if (!b.value || p.target instanceof HTMLElement && (p.target.classList.contains("vpv-annotation-editor__free-text") || p.target.closest(".vpv-annotation-editor__free-text")))
|
|
19748
19737
|
return;
|
|
19749
19738
|
p.stopPropagation(), p.preventDefault(), k(), l.pageWrapperLayer.value.closest(".vpv-pages-inner-wrapper")?.querySelectorAll(".vpv-page")?.forEach((Xl) => {
|
|
19750
|
-
Xl.classList.remove(
|
|
19751
|
-
}), l.pageWrapperLayer.value.classList.add(
|
|
19739
|
+
Xl.classList.remove(cZ.FOCUS_IN);
|
|
19740
|
+
}), l.pageWrapperLayer.value.classList.add(cZ.FOCUS_IN), s.value && (s.value.remove(), s.value = null, R.value = null);
|
|
19752
19741
|
const P = l.editorLayer.value.getBoundingClientRect();
|
|
19753
19742
|
if (!P)
|
|
19754
19743
|
return;
|
|
@@ -19801,7 +19790,7 @@ const yL = () => {
|
|
|
19801
19790
|
let A = null;
|
|
19802
19791
|
p && O && (O.addEventListener("click", I), A = new MutationObserver((_) => {
|
|
19803
19792
|
_.forEach((tl) => {
|
|
19804
|
-
tl.type === "attributes" && tl.attributeName === "class" && (O.className.includes(
|
|
19793
|
+
tl.type === "attributes" && tl.attributeName === "class" && (O.className.includes(cZ.FOCUS_IN) || k());
|
|
19805
19794
|
});
|
|
19806
19795
|
}), A.observe(O, { attributes: !0, attributeFilter: ["class"] })), f(() => {
|
|
19807
19796
|
O?.removeEventListener("click", I), A?.disconnect();
|
|
@@ -20072,7 +20061,7 @@ const Ue = (l, U) => {
|
|
|
20072
20061
|
bn,
|
|
20073
20062
|
El(/* @__PURE__ */ new Map())
|
|
20074
20063
|
);
|
|
20075
|
-
const { annotationStorage: a, canvasRenderTrigger: V } = yU(), { page: Q, width: W, height: s, intersecting: R } = Ol(Z), { isScaling: N, targetScale: b, scale: i } = Ol(t), m = T(() => sl(Z.page)), h = J(), G = J(), X = J(
|
|
20064
|
+
const { annotationStorage: a, canvasRenderTrigger: V } = yU(), { page: Q, width: W, height: s, intersecting: R } = Ol(Z), { isScaling: N, targetScale: b, scale: i } = Ol(t), m = T(() => sl(Z.page)), h = J(), G = J(), X = J(ZZ.PreRender);
|
|
20076
20065
|
let y = null, B = null, u;
|
|
20077
20066
|
const L = T(() => {
|
|
20078
20067
|
if (N.value && b.value && i.value)
|
|
@@ -20099,7 +20088,7 @@ const Ue = (l, U) => {
|
|
|
20099
20088
|
// Optimize for display
|
|
20100
20089
|
isEditing: t.isEditing
|
|
20101
20090
|
}), j = (w, K) => {
|
|
20102
|
-
if (w.hidden = !1, X.value =
|
|
20091
|
+
if (w.hidden = !1, X.value = ZZ.DidRender, Z.afterCanvasLoaded) {
|
|
20103
20092
|
const I = {
|
|
20104
20093
|
width: K.width,
|
|
20105
20094
|
height: K.height,
|
|
@@ -20157,7 +20146,7 @@ const Ue = (l, U) => {
|
|
|
20157
20146
|
canvasElem: K,
|
|
20158
20147
|
options: Bl,
|
|
20159
20148
|
onLoaded: () => {
|
|
20160
|
-
if (K.hidden = !1, X.value =
|
|
20149
|
+
if (K.hidden = !1, X.value = ZZ.DidRender, Z.afterCanvasLoaded) {
|
|
20161
20150
|
const Il = {
|
|
20162
20151
|
width: P.width,
|
|
20163
20152
|
height: P.height,
|
|
@@ -20197,7 +20186,7 @@ const Ue = (l, U) => {
|
|
|
20197
20186
|
async ([w, K, I, k, p], O, P) => {
|
|
20198
20187
|
if (!w || !K || !I)
|
|
20199
20188
|
return;
|
|
20200
|
-
k && (X.value =
|
|
20189
|
+
k && (X.value = ZZ.PreRender), y && clearTimeout(y);
|
|
20201
20190
|
let f = null;
|
|
20202
20191
|
y = setTimeout(async () => {
|
|
20203
20192
|
await new Promise((A) => f = setTimeout(A, 10)), await Tl(), await v(
|
|
@@ -20215,7 +20204,7 @@ const Ue = (l, U) => {
|
|
|
20215
20204
|
() => sl(t.pdfDocument)?.annotationStorage?.serializable?.hash
|
|
20216
20205
|
],
|
|
20217
20206
|
() => {
|
|
20218
|
-
X.value =
|
|
20207
|
+
X.value = ZZ.PreRender;
|
|
20219
20208
|
},
|
|
20220
20209
|
{ flush: "post" }
|
|
20221
20210
|
// Use post flush to batch multiple changes
|
|
@@ -20229,7 +20218,7 @@ const Ue = (l, U) => {
|
|
|
20229
20218
|
}
|
|
20230
20219
|
), pF(() => {
|
|
20231
20220
|
const w = h.value;
|
|
20232
|
-
w && !R.value && (w.width = 0, w.height = 0, X.value =
|
|
20221
|
+
w && !R.value && (w.width = 0, w.height = 0, X.value = ZZ.PreRender), y && (clearTimeout(y), y = null);
|
|
20233
20222
|
}), Fd(() => {
|
|
20234
20223
|
const w = h.value;
|
|
20235
20224
|
w && (w.width = 0, w.height = 0), G.value?.remove(), y && (clearTimeout(y), y = null), n?.removeQueue(`page-${m.value.pageNumber}`);
|
|
@@ -22389,7 +22378,7 @@ const z1 = HV("XIcon", [
|
|
|
22389
22378
|
class: e(ad)("-vp-mx-1 vp-my-1 vp-h-px", U.class)
|
|
22390
22379
|
}), null, 16, ["class"]));
|
|
22391
22380
|
}
|
|
22392
|
-
}),
|
|
22381
|
+
}), FZ = /* @__PURE__ */ Ql(nk, [["__scopeId", "data-v-bcfcd57e"]]), ak = { role: "button" }, ek = /* @__PURE__ */ g({
|
|
22393
22382
|
inheritAttrs: !1,
|
|
22394
22383
|
__name: "ToolZoomPercentageMenu",
|
|
22395
22384
|
props: {
|
|
@@ -22479,7 +22468,7 @@ const z1 = HV("XIcon", [
|
|
|
22479
22468
|
]),
|
|
22480
22469
|
_: 1
|
|
22481
22470
|
}),
|
|
22482
|
-
z(e(
|
|
22471
|
+
z(e(FZ), { class: "vpv-dropdown-menu-separator" }),
|
|
22483
22472
|
(M(!0), cl(fl, null, Nd(n, ({ label: W, value: s }) => (M(), r(e(vd), {
|
|
22484
22473
|
key: W,
|
|
22485
22474
|
onClick: () => a(s)
|
|
@@ -23168,7 +23157,7 @@ const z1 = HV("XIcon", [
|
|
|
23168
23157
|
z(Ik, {
|
|
23169
23158
|
onClickPrint: I[1] || (I[1] = () => N.value)
|
|
23170
23159
|
}),
|
|
23171
|
-
y.value && B.value ? (M(), r(e(
|
|
23160
|
+
y.value && B.value ? (M(), r(e(FZ), {
|
|
23172
23161
|
key: 0,
|
|
23173
23162
|
class: "vpv-dropdown-menu-separator"
|
|
23174
23163
|
})) : ol("", !0)
|
|
@@ -23232,7 +23221,7 @@ const z1 = HV("XIcon", [
|
|
|
23232
23221
|
]),
|
|
23233
23222
|
_: 3
|
|
23234
23223
|
})) : ol("", !0),
|
|
23235
|
-
B.value > 1 && e(Q)?.jumpNavigatable ? (M(), r(e(
|
|
23224
|
+
B.value > 1 && e(Q)?.jumpNavigatable ? (M(), r(e(FZ), {
|
|
23236
23225
|
key: 2,
|
|
23237
23226
|
class: "vpv-dropdown-menu-separator"
|
|
23238
23227
|
})) : ol("", !0),
|
|
@@ -23285,7 +23274,7 @@ const z1 = HV("XIcon", [
|
|
|
23285
23274
|
]),
|
|
23286
23275
|
_: 3
|
|
23287
23276
|
})) : ol("", !0),
|
|
23288
|
-
B.value > 1 && e(Q)?.rotatable ? (M(), r(e(
|
|
23277
|
+
B.value > 1 && e(Q)?.rotatable ? (M(), r(e(FZ), {
|
|
23289
23278
|
key: 4,
|
|
23290
23279
|
class: "vpv-dropdown-menu-separator"
|
|
23291
23280
|
})) : ol("", !0),
|
|
@@ -23379,7 +23368,7 @@ const z1 = HV("XIcon", [
|
|
|
23379
23368
|
]),
|
|
23380
23369
|
_: 3
|
|
23381
23370
|
}, 8, ["modelValue"])) : ol("", !0),
|
|
23382
|
-
B.value > 1 && e(Q)?.pageViewSwitchable ? (M(), r(e(
|
|
23371
|
+
B.value > 1 && e(Q)?.pageViewSwitchable ? (M(), r(e(FZ), {
|
|
23383
23372
|
key: 6,
|
|
23384
23373
|
class: "vpv-dropdown-menu-separator"
|
|
23385
23374
|
})) : ol("", !0),
|
|
@@ -23437,7 +23426,7 @@ const z1 = HV("XIcon", [
|
|
|
23437
23426
|
]),
|
|
23438
23427
|
_: 3
|
|
23439
23428
|
}, 8, ["modelValue"])) : ol("", !0),
|
|
23440
|
-
B.value > 1 && e(Q)?.scrollingSwitchable ? (M(), r(e(
|
|
23429
|
+
B.value > 1 && e(Q)?.scrollingSwitchable ? (M(), r(e(FZ), {
|
|
23441
23430
|
key: 8,
|
|
23442
23431
|
class: "vpv-dropdown-menu-separator"
|
|
23443
23432
|
})) : ol("", !0),
|
|
@@ -23495,7 +23484,7 @@ const z1 = HV("XIcon", [
|
|
|
23495
23484
|
]),
|
|
23496
23485
|
_: 3
|
|
23497
23486
|
}, 8, ["modelValue"])) : ol("", !0),
|
|
23498
|
-
B.value > 1 && e(Q)?.pointerSwitchable ? (M(), r(e(
|
|
23487
|
+
B.value > 1 && e(Q)?.pointerSwitchable ? (M(), r(e(FZ), {
|
|
23499
23488
|
key: 10,
|
|
23500
23489
|
class: "vpv-dropdown-menu-separator"
|
|
23501
23490
|
})) : ol("", !0),
|
|
@@ -24217,16 +24206,16 @@ const KD = (l, U, d) => {
|
|
|
24217
24206
|
return { download: s, downloadControl: a, loading: Z };
|
|
24218
24207
|
}, HD = new RegExp(
|
|
24219
24208
|
"^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"
|
|
24220
|
-
),
|
|
24209
|
+
), dZ = (l, U, d, Z) => {
|
|
24221
24210
|
const F = parseInt(l, 10);
|
|
24222
24211
|
return F >= U && F <= d ? F : Z;
|
|
24223
24212
|
}, ae = (l) => {
|
|
24224
24213
|
const U = HD.exec(l);
|
|
24225
24214
|
if (!U)
|
|
24226
24215
|
return null;
|
|
24227
|
-
const d = parseInt(U[1], 10), Z =
|
|
24228
|
-
let t =
|
|
24229
|
-
const n =
|
|
24216
|
+
const d = parseInt(U[1], 10), Z = dZ(U[2], 1, 12, 1) - 1, F = dZ(U[3], 1, 31, 1);
|
|
24217
|
+
let t = dZ(U[4], 0, 23, 0), c = dZ(U[5], 0, 59, 0);
|
|
24218
|
+
const n = dZ(U[6], 0, 59, 0), a = U[7] || "Z", V = dZ(U[8], 0, 23, 0), Q = dZ(U[9], 0, 59, 0);
|
|
24230
24219
|
switch (a) {
|
|
24231
24220
|
case "-":
|
|
24232
24221
|
t += V, c += Q;
|
|
@@ -25514,7 +25503,7 @@ const VI = (l, U) => {
|
|
|
25514
25503
|
}), { comments: d, repliedCommentPages: t };
|
|
25515
25504
|
};
|
|
25516
25505
|
let _V = "";
|
|
25517
|
-
_V = "https://unpkg.com/@vue-pdf-viewer/viewer@3.5.1
|
|
25506
|
+
_V = "https://unpkg.com/@vue-pdf-viewer/viewer@3.5.1/dist/assets/pdf-annotations/";
|
|
25518
25507
|
const Ve = _V;
|
|
25519
25508
|
class RI {
|
|
25520
25509
|
_items = [];
|
|
@@ -25906,7 +25895,6 @@ const yI = { class: "vp-grid vp-gap-1" }, zI = /* @__PURE__ */ g({
|
|
|
25906
25895
|
props: {
|
|
25907
25896
|
label: {},
|
|
25908
25897
|
duration: {},
|
|
25909
|
-
disableSwipe: { type: Boolean },
|
|
25910
25898
|
swipeDirection: {},
|
|
25911
25899
|
swipeThreshold: {}
|
|
25912
25900
|
},
|
|
@@ -26067,7 +26055,7 @@ const { getTextLayers: QF } = Z0(), jI = (l, U) => {
|
|
|
26067
26055
|
let Z = null, F = null;
|
|
26068
26056
|
const t = () => {
|
|
26069
26057
|
for (const [c, n] of QF())
|
|
26070
|
-
c.appendChild(n), n.style.width = "", n.style.height = "", c.classList.remove(
|
|
26058
|
+
c.appendChild(n), n.style.width = "", n.style.height = "", c.classList.remove(cZ.SELECTING);
|
|
26071
26059
|
};
|
|
26072
26060
|
document.addEventListener(
|
|
26073
26061
|
"pointerdown",
|
|
@@ -26110,7 +26098,7 @@ const { getTextLayers: QF } = Z0(), jI = (l, U) => {
|
|
|
26110
26098
|
!n.has(N) && R.intersectsNode(N) && n.add(N);
|
|
26111
26099
|
}
|
|
26112
26100
|
for (const [s, R] of QF())
|
|
26113
|
-
n.has(s) ? s.classList.add(
|
|
26101
|
+
n.has(s) ? s.classList.add(cZ.SELECTING) : (s.appendChild(R), R.style.width = "", R.style.height = "", s.classList.remove(cZ.SELECTING));
|
|
26114
26102
|
if (F === null) {
|
|
26115
26103
|
const R = Array.from(QF().values())[0];
|
|
26116
26104
|
R && (F = getComputedStyle(R).getPropertyValue("-moz-user-select") === "none");
|
|
@@ -26155,7 +26143,7 @@ const { getTextLayers: QF } = Z0(), jI = (l, U) => {
|
|
|
26155
26143
|
}
|
|
26156
26144
|
const c = (n) => {
|
|
26157
26145
|
const a = document.getSelection();
|
|
26158
|
-
|
|
26146
|
+
n.clipboardData?.setData(
|
|
26159
26147
|
"text/plain",
|
|
26160
26148
|
t(F(a?.toString() || ""))
|
|
26161
26149
|
), n.preventDefault(), n.stopPropagation();
|
|
@@ -26327,7 +26315,7 @@ const { getTextLayers: QF } = Z0(), jI = (l, U) => {
|
|
|
26327
26315
|
"pointerSwitchable",
|
|
26328
26316
|
"docPropertiesEnabled"
|
|
26329
26317
|
];
|
|
26330
|
-
|
|
26318
|
+
qU.value && (Y = [
|
|
26331
26319
|
"newFileOpenable",
|
|
26332
26320
|
"printable",
|
|
26333
26321
|
"downloadable",
|
|
@@ -26343,7 +26331,7 @@ const { getTextLayers: QF } = Z0(), jI = (l, U) => {
|
|
|
26343
26331
|
if (!ql.value) return 0;
|
|
26344
26332
|
const Y = getComputedStyle(ql.value);
|
|
26345
26333
|
return parseInt(Y.getPropertyValue("--vpv-container-width-sm") ?? 0);
|
|
26346
|
-
}),
|
|
26334
|
+
}), qU = T(() => V0.value ? V0.value <= aW.value : !1), Pt = T(() => V.scrollMode === zl.Page), R0 = T(
|
|
26347
26335
|
() => oZ.isValidKey && (oZ.type === WU.Organization || oZ.type === WU.All)
|
|
26348
26336
|
), N0 = T(() => oZ.type === WU.Unlicense), i0 = T(() => oZ.isValidKey && oZ.type === WU.FreeTrial), DF = T(() => R0.value || N0.value || i0.value), o0 = (Y) => {
|
|
26349
26337
|
const { isCompressed: Fl, url: nl } = N.value;
|
|
@@ -26699,7 +26687,7 @@ const { getTextLayers: QF } = Z0(), jI = (l, U) => {
|
|
|
26699
26687
|
);
|
|
26700
26688
|
const EW = El(/* @__PURE__ */ new Map()), dc = J(null), rW = J(!1);
|
|
26701
26689
|
jI(rW, dc), kl(bn, EW), kl(Rd.ANNOTATION_IMAGE_MANAGER, KU), kl(lQ, E || !1), kl(DT, EU || []), kl(zT, J0 || (() => {
|
|
26702
|
-
})), kl(Vn, MU || null), kl(Wn, nd || {}), kl(kT, s0 || 0), kl(Dd, F), kl(Nn, j.loaderImage || void 0), kl(oU, ql || null), kl(Lt, w || 1), kl(dQ, I || 0), kl(UQ, Nl || 0), kl(ZQ, G.value || !1), kl(zt,
|
|
26690
|
+
})), kl(Vn, MU || null), kl(Wn, nd || {}), kl(kT, s0 || 0), kl(Dd, F), kl(Nn, j.loaderImage || void 0), kl(oU, ql || null), kl(Lt, w || 1), kl(dQ, I || 0), kl(UQ, Nl || 0), kl(ZQ, G.value || !1), kl(zt, qU || !1), kl(sn, T0 || (() => {
|
|
26703
26691
|
})), kl(eQ, j.iconPrint || void 0), kl(aQ, j.iconDownload || void 0), kl(nQ, j.iconOpenFile || void 0), kl(QQ, j.iconFullScreen || void 0), kl(td, lc), kl($e, ul || null), kl(LT, Y0 || J(1)), kl(tQ, _ || {}), kl(IT, JU || (() => {
|
|
26704
26692
|
})), kl(RQ, El(lW || {})), kl(mn, tl), kl(Rd.HIGHLIGHT_COLOR, dl), kl(WQ, hW || {});
|
|
26705
26693
|
const f0 = VF({
|
|
@@ -27113,7 +27101,7 @@ const { getTextLayers: QF } = Z0(), jI = (l, U) => {
|
|
|
27113
27101
|
key: "2"
|
|
27114
27102
|
} : void 0
|
|
27115
27103
|
]), 1032, ["modelValue"])) : ol("", !0),
|
|
27116
|
-
nd.value?.newFileOpenable && !
|
|
27104
|
+
nd.value?.newFileOpenable && !qU.value ? (M(), r(WD, { key: 2 }, Jd({ _: 2 }, [
|
|
27117
27105
|
!E.value && Y.$slots.openFileTool ? {
|
|
27118
27106
|
name: "default",
|
|
27119
27107
|
fn: o(({ onClick: nl }) => [
|
|
@@ -27129,7 +27117,7 @@ const { getTextLayers: QF } = Z0(), jI = (l, U) => {
|
|
|
27129
27117
|
key: "1"
|
|
27130
27118
|
} : void 0
|
|
27131
27119
|
]), 1024)) : ol("", !0),
|
|
27132
|
-
nd.value?.downloadable && !
|
|
27120
|
+
nd.value?.downloadable && !qU.value ? (M(), r(aD, { key: 3 }, Jd({ _: 2 }, [
|
|
27133
27121
|
!E.value && Y.$slots.downloadTool ? {
|
|
27134
27122
|
name: "default",
|
|
27135
27123
|
fn: o(({ onClick: nl }) => [
|
|
@@ -27145,7 +27133,7 @@ const { getTextLayers: QF } = Z0(), jI = (l, U) => {
|
|
|
27145
27133
|
key: "1"
|
|
27146
27134
|
} : void 0
|
|
27147
27135
|
]), 1024)) : ol("", !0),
|
|
27148
|
-
nd.value?.printable && !
|
|
27136
|
+
nd.value?.printable && !qU.value ? (M(), r(Nk, {
|
|
27149
27137
|
key: 4,
|
|
27150
27138
|
print: e(ft)
|
|
27151
27139
|
}, Jd({ _: 2 }, [
|
|
@@ -27164,7 +27152,7 @@ const { getTextLayers: QF } = Z0(), jI = (l, U) => {
|
|
|
27164
27152
|
key: "1"
|
|
27165
27153
|
} : void 0
|
|
27166
27154
|
]), 1032, ["print"])) : ol("", !0),
|
|
27167
|
-
nd.value?.fullscreen && !
|
|
27155
|
+
nd.value?.fullscreen && !qU.value && v.value ? (M(), r(QD, { key: 5 }, Jd({ _: 2 }, [
|
|
27168
27156
|
!E.value && Y.$slots.fullScreenTool ? {
|
|
27169
27157
|
name: "default",
|
|
27170
27158
|
fn: o(({ onClick: nl, isSupported: Cl }) => [
|
|
@@ -27451,7 +27439,7 @@ const { getTextLayers: QF } = Z0(), jI = (l, U) => {
|
|
|
27451
27439
|
ll("div", {
|
|
27452
27440
|
class: jl(["vpv-sidebar_comment-panel-container", {
|
|
27453
27441
|
"vp-hidden": !f.value,
|
|
27454
|
-
"vpv-sidebar_comment-panel-mobile-container":
|
|
27442
|
+
"vpv-sidebar_comment-panel-mobile-container": qU.value
|
|
27455
27443
|
}])
|
|
27456
27444
|
}, [
|
|
27457
27445
|
z(T1, {
|
|
@@ -27482,7 +27470,7 @@ export {
|
|
|
27482
27470
|
yl as d,
|
|
27483
27471
|
Xp as e,
|
|
27484
27472
|
zd as f,
|
|
27485
|
-
|
|
27473
|
+
ZZ as g,
|
|
27486
27474
|
en as h,
|
|
27487
27475
|
ST as i,
|
|
27488
27476
|
ns as p,
|