react-iiif-vault 1.0.9 → 1.0.11
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/.build/types/hooks/useExistingVault.d.ts +2 -1
- package/.build/types/viewers/SimpleViewerContext.types.d.ts +2 -0
- package/README.md +495 -177
- package/dist/bundle/cjs/index.js +7 -7
- package/dist/bundle/cjs/index.js.map +1 -1
- package/dist/bundle/esm/index.mjs +690 -696
- package/dist/bundle/esm/index.mjs.map +1 -1
- package/dist/canvas-panel/cjs/canvas-panel.js +5 -5
- package/dist/canvas-panel/cjs/canvas-panel.js.map +1 -1
- package/dist/canvas-panel/esm/canvas-panel.mjs +556 -562
- package/dist/canvas-panel/esm/canvas-panel.mjs.map +1 -1
- package/dist/index.umd.js +53 -53
- package/dist/index.umd.js.map +1 -1
- package/dist/react17/cjs/index.js +7 -7
- package/dist/react17/cjs/index.js.map +1 -1
- package/dist/react17/esm/index.mjs +690 -696
- package/dist/react17/esm/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { jsx as d, jsxs as X, Fragment as Oe } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { AtlasAuto as
|
|
4
|
-
import { globalVault as
|
|
2
|
+
import Ee, { createContext as Te, Component as wn, createElement as St, isValidElement as Pn, useContext as ue, useMemo as N, useState as ie, useEffect as be, useRef as xe, useCallback as Q, useLayoutEffect as st, Fragment as Ye, useReducer as On, forwardRef as ct, useImperativeHandle as Et } from "react";
|
|
3
|
+
import { AtlasAuto as Sn, ModeContext as xn, mergeStyles as Tn, RegionHighlight as In, TileSet as En, HTMLPortal as Cn, useCanvas as jn } from "@atlas-viewer/atlas";
|
|
4
|
+
import { globalVault as Ct, Vault as xt } from "@iiif/helpers/vault";
|
|
5
5
|
import { createStylesHelper as ut } from "@iiif/helpers/styles";
|
|
6
6
|
import { expandTarget as ot } from "@iiif/helpers/annotation-targets";
|
|
7
7
|
export * from "@iiif/helpers/annotation-targets";
|
|
8
|
-
import { expandTarget as
|
|
9
|
-
import { ImageServiceLoader as
|
|
10
|
-
import { createThumbnailHelper as
|
|
11
|
-
import
|
|
12
|
-
const
|
|
8
|
+
import { expandTarget as Mn } from "@iiif/helpers";
|
|
9
|
+
import { ImageServiceLoader as Rn, getImageServices as it, createImageServiceRequest as Ln, imageServiceRequestToString as An } from "@atlas-viewer/iiif-image-api";
|
|
10
|
+
import { createThumbnailHelper as kn } from "@iiif/helpers/thumbnail";
|
|
11
|
+
import Nn from "react-dom";
|
|
12
|
+
const Vn = Te(null), tt = {
|
|
13
13
|
didCatch: !1,
|
|
14
14
|
error: null
|
|
15
15
|
};
|
|
16
|
-
class
|
|
16
|
+
class _n extends wn {
|
|
17
17
|
constructor(t) {
|
|
18
18
|
super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = tt;
|
|
19
19
|
}
|
|
@@ -46,7 +46,7 @@ class Vn extends bn {
|
|
|
46
46
|
} = this.state, {
|
|
47
47
|
resetKeys: r
|
|
48
48
|
} = this.props;
|
|
49
|
-
if (o && n.error !== null &&
|
|
49
|
+
if (o && n.error !== null && Dn(t.resetKeys, r)) {
|
|
50
50
|
var a, i;
|
|
51
51
|
(a = (i = this.props).onReset) === null || a === void 0 || a.call(i, {
|
|
52
52
|
next: r,
|
|
@@ -74,13 +74,13 @@ class Vn extends bn {
|
|
|
74
74
|
if (typeof n == "function")
|
|
75
75
|
s = n(f);
|
|
76
76
|
else if (o)
|
|
77
|
-
s =
|
|
78
|
-
else if (r === null ||
|
|
77
|
+
s = St(o, f);
|
|
78
|
+
else if (r === null || Pn(r))
|
|
79
79
|
s = r;
|
|
80
80
|
else
|
|
81
81
|
throw i;
|
|
82
82
|
}
|
|
83
|
-
return
|
|
83
|
+
return St(Vn.Provider, {
|
|
84
84
|
value: {
|
|
85
85
|
didCatch: a,
|
|
86
86
|
error: i,
|
|
@@ -89,18 +89,18 @@ class Vn extends bn {
|
|
|
89
89
|
}, s);
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function Dn() {
|
|
93
93
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
94
94
|
return e.length !== t.length || e.some((n, o) => !Object.is(n, t[o]));
|
|
95
95
|
}
|
|
96
|
-
const
|
|
96
|
+
const Bn = {
|
|
97
97
|
collection: void 0,
|
|
98
98
|
manifest: void 0,
|
|
99
99
|
range: void 0,
|
|
100
100
|
canvas: void 0,
|
|
101
101
|
annotation: void 0,
|
|
102
102
|
annotationPage: void 0
|
|
103
|
-
}, lt =
|
|
103
|
+
}, lt = Ee.createContext(Bn), je = () => ue(lt);
|
|
104
104
|
function Le({ value: e, children: t }) {
|
|
105
105
|
const n = je(), o = N(() => ({
|
|
106
106
|
...n,
|
|
@@ -108,29 +108,27 @@ function Le({ value: e, children: t }) {
|
|
|
108
108
|
}), [e, n]);
|
|
109
109
|
return /* @__PURE__ */ d(lt.Provider, { value: o, children: t });
|
|
110
110
|
}
|
|
111
|
-
const Ke =
|
|
111
|
+
const Ke = Ee.createContext({
|
|
112
112
|
vault: null,
|
|
113
113
|
setVaultInstance: (e) => {
|
|
114
114
|
}
|
|
115
115
|
});
|
|
116
|
-
function
|
|
116
|
+
function ft({
|
|
117
117
|
vault: e,
|
|
118
118
|
vaultOptions: t,
|
|
119
119
|
useGlobal: n,
|
|
120
120
|
resources: o,
|
|
121
121
|
children: r
|
|
122
122
|
}) {
|
|
123
|
-
const [a, i] =
|
|
123
|
+
const [a, i] = ie(() => e || (n ? Ct(t) : t ? new xt(t) : new xt()));
|
|
124
124
|
return /* @__PURE__ */ d(Ke.Provider, { value: { vault: a, setVaultInstance: i }, children: /* @__PURE__ */ d(Le, { value: o || {}, children: r }) });
|
|
125
125
|
}
|
|
126
|
-
|
|
127
|
-
const
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
};
|
|
132
|
-
function Ct(e, { noCache: t = !1 } = {}) {
|
|
133
|
-
const n = typeof e == "string" ? e : e.id, o = re(), [r, a] = ae(n), [i, s] = ae(void 0), f = N(() => o.get(n, { skipSelfReturn: !0 }) || void 0, [n, o]), [h, u] = ae(f);
|
|
126
|
+
function dt(e) {
|
|
127
|
+
const t = ue(Ke);
|
|
128
|
+
return e || (t && t.vault ? t.vault : Ct());
|
|
129
|
+
}
|
|
130
|
+
function jt(e, { noCache: t = !1 } = {}) {
|
|
131
|
+
const n = typeof e == "string" ? e : e.id, o = dt(), [r, a] = ie(n), [i, s] = ie(void 0), f = N(() => o.get(n, { skipSelfReturn: !0 }) || void 0, [n, o]), [h, u] = ie(f);
|
|
134
132
|
return be(() => {
|
|
135
133
|
(async () => {
|
|
136
134
|
try {
|
|
@@ -149,21 +147,27 @@ function Ct(e, { noCache: t = !1 } = {}) {
|
|
|
149
147
|
cached: !!(h && h === f)
|
|
150
148
|
};
|
|
151
149
|
}
|
|
152
|
-
function
|
|
153
|
-
const { id: n, isLoaded: o, error: r, resource: a, requestId: i, cached: s } =
|
|
150
|
+
function qn(e, t) {
|
|
151
|
+
const { id: n, isLoaded: o, error: r, resource: a, requestId: i, cached: s } = jt(
|
|
154
152
|
e,
|
|
155
153
|
t
|
|
156
154
|
);
|
|
157
155
|
return { id: n, isLoaded: o, error: r, manifest: a, requestId: i, cached: s };
|
|
158
156
|
}
|
|
159
|
-
function
|
|
157
|
+
function Fn({ manifest: e, children: t }) {
|
|
160
158
|
return /* @__PURE__ */ d(Le, { value: { manifest: e }, children: t });
|
|
161
159
|
}
|
|
162
160
|
function Qe({ canvas: e, children: t }) {
|
|
163
161
|
return /* @__PURE__ */ d(Le, { value: { canvas: e }, children: t });
|
|
164
162
|
}
|
|
163
|
+
const ae = () => {
|
|
164
|
+
const { vault: e } = ue(Ke);
|
|
165
|
+
if (e === null)
|
|
166
|
+
throw new Error("Vault not found. Ensure you have your provider set up correctly.");
|
|
167
|
+
return e;
|
|
168
|
+
};
|
|
165
169
|
function ye(e, t = []) {
|
|
166
|
-
const n =
|
|
170
|
+
const n = ae(), [o, r] = ie(() => e(n.getState(), n));
|
|
167
171
|
return be(() => n.subscribe(
|
|
168
172
|
(a) => e(a, n),
|
|
169
173
|
(a) => {
|
|
@@ -172,8 +176,8 @@ function ye(e, t = []) {
|
|
|
172
176
|
!1
|
|
173
177
|
), t), o;
|
|
174
178
|
}
|
|
175
|
-
const Ge =
|
|
176
|
-
function
|
|
179
|
+
const Ge = Ee.createContext([]);
|
|
180
|
+
function Mt() {
|
|
177
181
|
const e = ue(Ge);
|
|
178
182
|
return ye(
|
|
179
183
|
(t) => e.map((n) => t.iiif.entities.Canvas[n]).filter(Boolean),
|
|
@@ -182,7 +186,7 @@ function jt() {
|
|
|
182
186
|
}
|
|
183
187
|
function Ce(e = {}, t = []) {
|
|
184
188
|
const { id: n, selector: o } = e, r = je();
|
|
185
|
-
|
|
189
|
+
ae();
|
|
186
190
|
const a = n || r.manifest, i = ye(
|
|
187
191
|
(s) => a ? s.iiif.entities.Manifest[a] : void 0,
|
|
188
192
|
[a]
|
|
@@ -192,28 +196,28 @@ function Ce(e = {}, t = []) {
|
|
|
192
196
|
return o ? o(i) : i;
|
|
193
197
|
}, [i, o, ...t]);
|
|
194
198
|
}
|
|
195
|
-
function
|
|
199
|
+
function Un({ range: e, children: t }) {
|
|
196
200
|
return /* @__PURE__ */ d(Le, { value: { range: e }, children: t });
|
|
197
201
|
}
|
|
198
|
-
function
|
|
202
|
+
function $n(e, t) {
|
|
199
203
|
for (const n of t.items) {
|
|
200
204
|
if (n.type === "Canvas")
|
|
201
205
|
return n;
|
|
202
206
|
if (n.type === "SpecificResource")
|
|
203
207
|
return n.source;
|
|
204
208
|
if (n.type === "Range") {
|
|
205
|
-
const o =
|
|
209
|
+
const o = $n(e, e.get(n));
|
|
206
210
|
if (o)
|
|
207
211
|
return o;
|
|
208
212
|
}
|
|
209
213
|
}
|
|
210
214
|
return null;
|
|
211
215
|
}
|
|
212
|
-
function
|
|
216
|
+
function Rt(e, t) {
|
|
213
217
|
var o;
|
|
214
218
|
const n = [];
|
|
215
219
|
for (const r of t.items)
|
|
216
|
-
if (r.type === "SpecificResource" && ((o = r.source) == null ? void 0 : o.type) === "Canvas" && (r.source.id.indexOf("#") !== -1 ? n.push({ id: r.source.id.split("#")[0], type: "Canvas" }) : n.push(r.source)), r.type === "Range" && n.push(...
|
|
220
|
+
if (r.type === "SpecificResource" && ((o = r.source) == null ? void 0 : o.type) === "Canvas" && (r.source.id.indexOf("#") !== -1 ? n.push({ id: r.source.id.split("#")[0], type: "Canvas" }) : n.push(r.source)), r.type === "Range" && n.push(...Rt(e, e.get(r))), r.type === "SpecificResource") {
|
|
217
221
|
const a = typeof r.source == "string" ? r.source : r.source.id;
|
|
218
222
|
n.push({ id: a, type: "Canvas" });
|
|
219
223
|
}
|
|
@@ -221,20 +225,20 @@ function Mt(e, t) {
|
|
|
221
225
|
}
|
|
222
226
|
function Po(e, t, n) {
|
|
223
227
|
for (const o of t.structures) {
|
|
224
|
-
const r =
|
|
228
|
+
const r = Lt(e, e.get(o), n);
|
|
225
229
|
if (r)
|
|
226
230
|
return r;
|
|
227
231
|
}
|
|
228
232
|
return null;
|
|
229
233
|
}
|
|
230
|
-
function
|
|
234
|
+
function Lt(e, t, n) {
|
|
231
235
|
var o, r, a;
|
|
232
236
|
for (const i of t.items) {
|
|
233
237
|
const s = (r = (o = i == null ? void 0 : i.source) == null ? void 0 : o.id) == null ? void 0 : r.split("#")[0];
|
|
234
238
|
if (i.type === "SpecificResource" && i.source === n || i.type === "SpecificResource" && ((a = i.source) == null ? void 0 : a.type) === "Canvas" && n === s)
|
|
235
239
|
return t;
|
|
236
240
|
if (i.type === "Range") {
|
|
237
|
-
const f =
|
|
241
|
+
const f = Lt(e, e.get(i), n);
|
|
238
242
|
if (f)
|
|
239
243
|
return f;
|
|
240
244
|
}
|
|
@@ -248,40 +252,40 @@ function Oo(e, t, n, o = !1) {
|
|
|
248
252
|
const i = a.behavior, s = o ? !1 : r.includes("paged"), f = s ? !1 : r.includes("continuous"), h = s || f ? !1 : r.includes("individuals"), u = i.includes("facing-pages"), y = i.includes("non-paged");
|
|
249
253
|
if (u || y || h || o)
|
|
250
254
|
return [{ id: a.id, type: "Canvas" }];
|
|
251
|
-
const [x, M] =
|
|
255
|
+
const [x, M] = At(e, t);
|
|
252
256
|
if (f)
|
|
253
257
|
return x;
|
|
254
|
-
const
|
|
255
|
-
if (
|
|
258
|
+
const C = x.findIndex((T) => T.id === n);
|
|
259
|
+
if (C === -1)
|
|
256
260
|
return [];
|
|
257
|
-
for (const
|
|
258
|
-
if (
|
|
259
|
-
return
|
|
261
|
+
for (const T of M)
|
|
262
|
+
if (T.includes(C))
|
|
263
|
+
return T.map((b) => x[b]);
|
|
260
264
|
return [{ id: a.id, type: "Canvas" }];
|
|
261
265
|
}
|
|
262
|
-
function
|
|
263
|
-
const r = t.behavior, a = r.includes("paged"), i = a ? !1 : r.includes("continuous"), s = a || i ? !1 : r.includes("individuals"), f = t.type === "Manifest" ? t.items :
|
|
266
|
+
function At(e, t, { disablePaging: n, skipNonPaged: o } = {}) {
|
|
267
|
+
const r = t.behavior, a = r.includes("paged"), i = a ? !1 : r.includes("continuous"), s = a || i ? !1 : r.includes("individuals"), f = t.type === "Manifest" ? t.items : Rt(e, t);
|
|
264
268
|
if (i)
|
|
265
|
-
return [f, [f.map((
|
|
269
|
+
return [f, [f.map((C, T) => T)]];
|
|
266
270
|
if (s || !a || n)
|
|
267
|
-
return [f, f.map((
|
|
271
|
+
return [f, f.map((C, T) => [T])];
|
|
268
272
|
const h = [];
|
|
269
273
|
let u = [];
|
|
270
274
|
const y = () => {
|
|
271
275
|
u.length && (h.push([...u]), u = []);
|
|
272
276
|
};
|
|
273
277
|
let x = 0, M = !1;
|
|
274
|
-
for (let
|
|
275
|
-
const
|
|
276
|
-
if (
|
|
277
|
-
|
|
278
|
+
for (let C = 0; C < f.length; C++) {
|
|
279
|
+
const T = e.get(f[C]);
|
|
280
|
+
if (T.behavior.includes("non-paged")) {
|
|
281
|
+
C === x && x++, o || (y(), h.push([C]), y());
|
|
278
282
|
continue;
|
|
279
283
|
}
|
|
280
|
-
if (
|
|
281
|
-
u.length && (M = !0), y(), h.push([
|
|
284
|
+
if (C === x || T.behavior.includes("facing-pages")) {
|
|
285
|
+
u.length && (M = !0), y(), h.push([C]), y();
|
|
282
286
|
continue;
|
|
283
287
|
}
|
|
284
|
-
if (u.push(
|
|
288
|
+
if (u.push(C), M) {
|
|
285
289
|
y(), M = !1;
|
|
286
290
|
continue;
|
|
287
291
|
}
|
|
@@ -289,54 +293,59 @@ function Lt(e, t, { disablePaging: n, skipNonPaged: o } = {}) {
|
|
|
289
293
|
}
|
|
290
294
|
return u.length && y(), [f, h];
|
|
291
295
|
}
|
|
292
|
-
function
|
|
296
|
+
function kt(e = {}, t = []) {
|
|
293
297
|
const { id: n, selector: o } = e, r = je(), a = n || r.range, i = ye((s) => a ? s.iiif.entities.Range[a] : void 0, [a]);
|
|
294
298
|
return N(() => {
|
|
295
299
|
if (i)
|
|
296
300
|
return o ? o(i) : i;
|
|
297
301
|
}, [i, o, ...t]);
|
|
298
302
|
}
|
|
299
|
-
function
|
|
300
|
-
var
|
|
301
|
-
const n =
|
|
303
|
+
function Wn({ startCanvas: e, disablePaging: t }) {
|
|
304
|
+
var T;
|
|
305
|
+
const n = ae(), o = Ce(), r = kt(), [a, i] = ie(void 0), s = r || o;
|
|
302
306
|
if (!s)
|
|
303
307
|
throw new Error("Nothing selected");
|
|
304
308
|
const [f, h] = N(
|
|
305
|
-
() =>
|
|
306
|
-
[n, s]
|
|
307
|
-
), u =
|
|
309
|
+
() => At(n, s, { disablePaging: t }),
|
|
310
|
+
[n, s, t]
|
|
311
|
+
), u = xe(h);
|
|
312
|
+
if (u.current !== h) {
|
|
313
|
+
const E = u.current[a][0], L = h.findIndex((P) => P.includes(E));
|
|
314
|
+
u.current = h, i(L);
|
|
315
|
+
}
|
|
316
|
+
const y = Q(
|
|
308
317
|
(b) => {
|
|
309
|
-
const E = h.findIndex((
|
|
318
|
+
const E = h.findIndex((L) => L.includes(b));
|
|
310
319
|
i(E === -1 ? 0 : E);
|
|
311
320
|
},
|
|
312
321
|
[f, h]
|
|
313
|
-
),
|
|
322
|
+
), x = Q(
|
|
314
323
|
(b) => {
|
|
315
|
-
const E = f.findIndex((
|
|
316
|
-
E !== -1 ?
|
|
324
|
+
const E = f.findIndex((L) => L.id === b);
|
|
325
|
+
E !== -1 ? y(E) : i(0);
|
|
317
326
|
},
|
|
318
327
|
[f, h]
|
|
319
|
-
),
|
|
328
|
+
), M = Q(() => {
|
|
320
329
|
i((b) => b >= h.length - 1 ? b : b + 1);
|
|
321
|
-
}, [h]),
|
|
330
|
+
}, [h]), C = Q(() => {
|
|
322
331
|
i((b) => b <= 0 ? 0 : b - 1);
|
|
323
332
|
}, [h]);
|
|
324
|
-
return typeof a > "u" && (e ?
|
|
325
|
-
visibleItems: ((
|
|
333
|
+
return typeof a > "u" && (e ? x(e) : i(0)), {
|
|
334
|
+
visibleItems: ((T = h[a]) == null ? void 0 : T.map((b) => f[b].id)) || [],
|
|
326
335
|
cursor: a,
|
|
327
336
|
items: f,
|
|
328
337
|
sequence: h,
|
|
329
338
|
hasPrevious: a > 0,
|
|
330
339
|
hasNext: a < h.length - 1,
|
|
331
340
|
setSequenceIndex: i,
|
|
332
|
-
setCanvasIndex:
|
|
333
|
-
setCanvasId:
|
|
334
|
-
next:
|
|
335
|
-
previous:
|
|
341
|
+
setCanvasIndex: y,
|
|
342
|
+
setCanvasId: x,
|
|
343
|
+
next: M,
|
|
344
|
+
previous: C
|
|
336
345
|
};
|
|
337
346
|
}
|
|
338
347
|
const De = () => {
|
|
339
|
-
}, Xe =
|
|
348
|
+
}, Xe = Te({
|
|
340
349
|
setCurrentCanvasId: De,
|
|
341
350
|
setCurrentCanvasIndex: De,
|
|
342
351
|
nextCanvas: De,
|
|
@@ -348,7 +357,7 @@ const De = () => {
|
|
|
348
357
|
hasNext: !1,
|
|
349
358
|
hasPrevious: !1
|
|
350
359
|
});
|
|
351
|
-
function
|
|
360
|
+
function Hn(e) {
|
|
352
361
|
const t = Ce(), {
|
|
353
362
|
cursor: n,
|
|
354
363
|
visibleItems: o,
|
|
@@ -361,7 +370,7 @@ function Wn(e) {
|
|
|
361
370
|
setSequenceIndex: u,
|
|
362
371
|
hasNext: y,
|
|
363
372
|
hasPrevious: x
|
|
364
|
-
} =
|
|
373
|
+
} = Wn({
|
|
365
374
|
startCanvas: e.startCanvas,
|
|
366
375
|
disablePaging: e.pagingEnabled === !1
|
|
367
376
|
}), M = N(
|
|
@@ -383,21 +392,21 @@ function Wn(e) {
|
|
|
383
392
|
);
|
|
384
393
|
return t ? o.length === 0 ? null : /* @__PURE__ */ d(Xe.Provider, { value: M, children: /* @__PURE__ */ d(Ge.Provider, { value: o, children: /* @__PURE__ */ d(Qe, { canvas: o[0], children: e.children }) }) }) : (console.warn("The manifest passed to the provider is not a valid IIIF manifest."), /* @__PURE__ */ d("div", { children: "Sorry, something went wrong." }));
|
|
385
394
|
}
|
|
386
|
-
function
|
|
387
|
-
const t =
|
|
388
|
-
if (!
|
|
395
|
+
function Yn(e) {
|
|
396
|
+
const t = dt(e.vault), n = qn(e.manifest);
|
|
397
|
+
if (!n)
|
|
389
398
|
return console.warn("The manifest passed to the provider is not a valid IIIF manifest."), /* @__PURE__ */ d("div", { children: "Sorry, something went wrong." });
|
|
390
|
-
if (
|
|
391
|
-
return /* @__PURE__ */ d("div", { children:
|
|
392
|
-
if (!
|
|
399
|
+
if (n.error)
|
|
400
|
+
return /* @__PURE__ */ d("div", { children: n.error.toString() });
|
|
401
|
+
if (!n.isLoaded)
|
|
393
402
|
return /* @__PURE__ */ d("div", { children: "Loading..." });
|
|
394
|
-
const
|
|
395
|
-
return /* @__PURE__ */ d(
|
|
403
|
+
const o = /* @__PURE__ */ d(Hn, { ...e, children: e.children });
|
|
404
|
+
return /* @__PURE__ */ d(ft, { vault: t, children: /* @__PURE__ */ d(Fn, { manifest: n.id, children: e.rangeId ? /* @__PURE__ */ d(Un, { range: e.rangeId, children: o }) : o }) });
|
|
396
405
|
}
|
|
397
|
-
function
|
|
406
|
+
function Nt() {
|
|
398
407
|
return ue(Xe);
|
|
399
408
|
}
|
|
400
|
-
function
|
|
409
|
+
function zn() {
|
|
401
410
|
return {
|
|
402
411
|
VaultContext: ue(Ke),
|
|
403
412
|
ResourceContext: ue(lt),
|
|
@@ -405,10 +414,10 @@ function Yn() {
|
|
|
405
414
|
VisibleCanvasReactContext: ue(Ge)
|
|
406
415
|
};
|
|
407
416
|
}
|
|
408
|
-
function
|
|
409
|
-
return /* @__PURE__ */ d(
|
|
417
|
+
function Kn(e) {
|
|
418
|
+
return /* @__PURE__ */ d(ft, { vault: e.bridge.VaultContext.vault || void 0, resources: e.bridge.ResourceContext, children: /* @__PURE__ */ d(Ge.Provider, { value: e.bridge.VisibleCanvasReactContext, children: /* @__PURE__ */ d(Xe.Provider, { value: e.bridge.SimpleViewerReactContext, children: e.children }) }) });
|
|
410
419
|
}
|
|
411
|
-
const
|
|
420
|
+
const Ie = function(e) {
|
|
412
421
|
return function() {
|
|
413
422
|
const t = { type: e, getType: () => e, toString: () => e };
|
|
414
423
|
return (n, o) => ({
|
|
@@ -417,27 +426,27 @@ const Te = function(e) {
|
|
|
417
426
|
...o !== void 0 && { meta: o }
|
|
418
427
|
});
|
|
419
428
|
};
|
|
420
|
-
},
|
|
421
|
-
importEntities:
|
|
422
|
-
modifyEntityField:
|
|
423
|
-
reorderEntityField:
|
|
424
|
-
addReference:
|
|
425
|
-
removeReference:
|
|
426
|
-
updateReference:
|
|
427
|
-
addMetadata:
|
|
428
|
-
removeMetadata:
|
|
429
|
-
updateMetadata:
|
|
430
|
-
reorderMetadata:
|
|
429
|
+
}, Qn = "@iiif/IMPORT_ENTITIES", Gn = "@iiif/MODIFY_ENTITY_FIELD", Xn = "@iiif/REORDER_ENTITY_FIELD", Jn = "@iiif/ADD_REFERENCE", Zn = "@iiif/UPDATE_REFERENCE", er = "@iiif/REMOVE_REFERENCE", tr = "@iiif/ADD_METADATA", nr = "@iiif/REMOVE_METADATA", rr = "@iiif/UPDATE_METADATA", or = "@iiif/REORDER_METADATA", ir = Ie(Qn)(), ar = Ie(Gn)(), sr = Ie(Xn)(), cr = Ie(Jn)(), ur = Ie(er)(), lr = Ie(Zn)(), fr = Ie(tr)(), dr = Ie(rr)(), pr = Ie(nr)(), hr = Ie(or)(), nt = {
|
|
430
|
+
importEntities: ir,
|
|
431
|
+
modifyEntityField: ar,
|
|
432
|
+
reorderEntityField: sr,
|
|
433
|
+
addReference: cr,
|
|
434
|
+
removeReference: ur,
|
|
435
|
+
updateReference: lr,
|
|
436
|
+
addMetadata: fr,
|
|
437
|
+
removeMetadata: pr,
|
|
438
|
+
updateMetadata: dr,
|
|
439
|
+
reorderMetadata: hr
|
|
431
440
|
};
|
|
432
|
-
function
|
|
433
|
-
const t =
|
|
441
|
+
function yr() {
|
|
442
|
+
const t = ae().getStore();
|
|
434
443
|
return N(() => (n) => t.dispatch(n), [t]);
|
|
435
444
|
}
|
|
436
|
-
function
|
|
445
|
+
function Tt(e) {
|
|
437
446
|
return typeof e != "string" && e && e.bindToVault;
|
|
438
447
|
}
|
|
439
|
-
function
|
|
440
|
-
const e =
|
|
448
|
+
function gr() {
|
|
449
|
+
const e = ae(), t = xe([]), n = yr(), o = N(() => `vault://annotation-page/${(/* @__PURE__ */ new Date()).getTime()}/${Math.round(Math.random() * 1e9).toString(16)}`, []);
|
|
441
450
|
st(() => {
|
|
442
451
|
const s = {
|
|
443
452
|
id: o,
|
|
@@ -472,7 +481,7 @@ function yr() {
|
|
|
472
481
|
), a = Q(
|
|
473
482
|
(s, f) => {
|
|
474
483
|
if (o) {
|
|
475
|
-
if (
|
|
484
|
+
if (Tt(s)) {
|
|
476
485
|
const y = s;
|
|
477
486
|
y.__vault || y.bindToVault(e), s = typeof y.source == "string" ? y.source : y.source.id, t.current[s] = y;
|
|
478
487
|
} else
|
|
@@ -495,7 +504,7 @@ function yr() {
|
|
|
495
504
|
[o]
|
|
496
505
|
), i = Q(
|
|
497
506
|
(s) => {
|
|
498
|
-
o && (
|
|
507
|
+
o && (Tt(s) ? s = typeof s.source == "string" ? s.source : s.source.id : typeof s != "string" && (s = s.id), t.current[s] && t.current[s].beforeRemove(), e.get({ id: o, type: "AnnotationPage" }) && n(
|
|
499
508
|
nt.removeReference({
|
|
500
509
|
id: o,
|
|
501
510
|
type: "AnnotationPage",
|
|
@@ -517,9 +526,9 @@ function yr() {
|
|
|
517
526
|
}
|
|
518
527
|
];
|
|
519
528
|
}
|
|
520
|
-
const
|
|
521
|
-
function
|
|
522
|
-
const e = ue(
|
|
529
|
+
const Vt = Te(null);
|
|
530
|
+
function mr() {
|
|
531
|
+
const e = ue(Vt);
|
|
523
532
|
return [
|
|
524
533
|
e.fullPage,
|
|
525
534
|
{
|
|
@@ -528,17 +537,17 @@ function gr() {
|
|
|
528
537
|
}
|
|
529
538
|
];
|
|
530
539
|
}
|
|
531
|
-
function
|
|
532
|
-
const [t, { addAnnotation: n, removeAnnotation: o }] =
|
|
540
|
+
function vr({ children: e }) {
|
|
541
|
+
const [t, { addAnnotation: n, removeAnnotation: o }] = gr();
|
|
533
542
|
return /* @__PURE__ */ d(
|
|
534
|
-
|
|
543
|
+
Vt.Provider,
|
|
535
544
|
{
|
|
536
545
|
value: N(() => ({ fullPage: t, addAnnotation: n, removeAnnotation: o }), [t]),
|
|
537
546
|
children: e
|
|
538
547
|
}
|
|
539
548
|
);
|
|
540
549
|
}
|
|
541
|
-
function
|
|
550
|
+
function br({
|
|
542
551
|
width: e,
|
|
543
552
|
style: t,
|
|
544
553
|
height: n,
|
|
@@ -551,19 +560,19 @@ function vr({
|
|
|
551
560
|
/* @__PURE__ */ d("button", { onClick: r, children: "Reset" })
|
|
552
561
|
] });
|
|
553
562
|
}
|
|
554
|
-
const
|
|
555
|
-
function
|
|
556
|
-
return ue(
|
|
563
|
+
const pt = Te(null);
|
|
564
|
+
function wr() {
|
|
565
|
+
return ue(pt);
|
|
557
566
|
}
|
|
558
|
-
const
|
|
567
|
+
const _t = Te(
|
|
559
568
|
() => {
|
|
560
569
|
}
|
|
561
|
-
),
|
|
570
|
+
), Dt = Te(
|
|
562
571
|
() => {
|
|
563
572
|
}
|
|
564
573
|
);
|
|
565
574
|
function Ve(e, t, n, o, r = []) {
|
|
566
|
-
const a = ue(e === "portal" ?
|
|
575
|
+
const a = ue(e === "portal" ? Dt : _t);
|
|
567
576
|
be(() => (e !== "none" && a(t, n, o), () => {
|
|
568
577
|
a(t, null);
|
|
569
578
|
}), [t, e, a, ...r]);
|
|
@@ -575,62 +584,62 @@ function Se(e = {}, t = []) {
|
|
|
575
584
|
return o ? o(i) : i;
|
|
576
585
|
}, [i, o, ...t]);
|
|
577
586
|
}
|
|
578
|
-
const
|
|
587
|
+
const Bt = Te(() => {
|
|
579
588
|
});
|
|
580
|
-
function
|
|
581
|
-
const t = Se(), n = ue(
|
|
589
|
+
function Pr(e) {
|
|
590
|
+
const t = Se(), n = ue(Bt);
|
|
582
591
|
be(() => t && t.id ? (n(t.id, e), () => n(t.id, -1)) : () => {
|
|
583
592
|
}, [t, e]);
|
|
584
593
|
}
|
|
585
|
-
function
|
|
594
|
+
function Or({
|
|
586
595
|
children: e,
|
|
587
596
|
errorFallback: t,
|
|
588
597
|
outerContainerProps: n = {},
|
|
589
598
|
worldScale: o,
|
|
590
599
|
...r
|
|
591
600
|
}) {
|
|
592
|
-
const [a, i] =
|
|
593
|
-
|
|
601
|
+
const [a, i] = ie(), s = zn(), f = t || br, [h, u] = ie({}), y = Object.entries(h), [x, M] = ie({}), C = Object.entries(x), [T, b] = ie({}), E = N(() => o || Math.max(...Object.values(T)), [T]), L = N(() => ({ maxOverZoom: E || 1, ...r.runtimeOptions || {} }), [E, r.runtimeOptions]), P = Q((R, B) => {
|
|
602
|
+
b((j) => {
|
|
594
603
|
if (B === -1) {
|
|
595
|
-
const { [R]:
|
|
604
|
+
const { [R]: S, ...U } = j;
|
|
596
605
|
return U;
|
|
597
606
|
}
|
|
598
607
|
return { ...j, [R]: B };
|
|
599
608
|
});
|
|
600
609
|
}, []), F = Q((R, B, j) => {
|
|
601
|
-
u(({ [R]:
|
|
610
|
+
u(({ [R]: S, ...U }) => B ? {
|
|
602
611
|
...U,
|
|
603
612
|
[R]: { element: B, props: j }
|
|
604
613
|
} : U);
|
|
605
|
-
}, []),
|
|
606
|
-
M(({ [R]:
|
|
614
|
+
}, []), A = Q((R, B, j) => {
|
|
615
|
+
M(({ [R]: S, ...U }) => B ? {
|
|
607
616
|
...U,
|
|
608
617
|
[R]: { element: B, props: j }
|
|
609
618
|
} : U);
|
|
610
619
|
}, []);
|
|
611
|
-
return /* @__PURE__ */ X(
|
|
620
|
+
return /* @__PURE__ */ X(_n, { resetKeys: [], fallbackRender: (R) => /* @__PURE__ */ d(f, { ...r, ...R }), children: [
|
|
612
621
|
/* @__PURE__ */ d(
|
|
613
|
-
|
|
622
|
+
Sn,
|
|
614
623
|
{
|
|
615
624
|
...r,
|
|
616
625
|
containerProps: { style: { position: "relative" }, ...r.containerProps || {} },
|
|
617
|
-
htmlChildren: /* @__PURE__ */ d(Oe, { children: y.map(([R, { element: B, props: j }]) => /* @__PURE__ */ d(
|
|
626
|
+
htmlChildren: /* @__PURE__ */ d(Oe, { children: y.map(([R, { element: B, props: j }]) => /* @__PURE__ */ d(Ee.Fragment, { children: /* @__PURE__ */ d(B, { ...j || {} }) }, R)) }),
|
|
618
627
|
onCreated: (R) => {
|
|
619
628
|
i(R), r.onCreated && r.onCreated(R);
|
|
620
629
|
},
|
|
621
|
-
runtimeOptions:
|
|
622
|
-
children: /* @__PURE__ */ d(
|
|
630
|
+
runtimeOptions: L,
|
|
631
|
+
children: /* @__PURE__ */ d(pt.Provider, { value: a, children: /* @__PURE__ */ d(Bt.Provider, { value: P, children: /* @__PURE__ */ d(_t.Provider, { value: F, children: /* @__PURE__ */ d(Dt.Provider, { value: A, children: /* @__PURE__ */ d(Kn, { bridge: s, children: /* @__PURE__ */ d(xn.Provider, { value: r.mode || "explore", children: /* @__PURE__ */ d(vr, { children: e }) }) }) }) }) }) })
|
|
623
632
|
}
|
|
624
633
|
),
|
|
625
|
-
/* @__PURE__ */ d("div", { children:
|
|
634
|
+
/* @__PURE__ */ d("div", { children: C.map(([R, { element: B, props: j }]) => /* @__PURE__ */ d(Ee.Fragment, { children: /* @__PURE__ */ d(B, { ...j || {} }) }, R)) })
|
|
626
635
|
] });
|
|
627
636
|
}
|
|
628
|
-
const We = {},
|
|
637
|
+
const We = {}, qt = {
|
|
629
638
|
get(e) {
|
|
630
639
|
return e;
|
|
631
640
|
},
|
|
632
641
|
setMetaValue([e, t, n], o) {
|
|
633
|
-
const r =
|
|
642
|
+
const r = qt.getResourceMeta(e, t), a = r ? r[n] : void 0, i = typeof o == "function" ? o(a) : o;
|
|
634
643
|
We[e] = {
|
|
635
644
|
...We[e] || {},
|
|
636
645
|
[t]: {
|
|
@@ -645,7 +654,7 @@ const We = {}, Bt = {
|
|
|
645
654
|
return t ? n[t] : n;
|
|
646
655
|
}
|
|
647
656
|
};
|
|
648
|
-
function
|
|
657
|
+
function Ft(e = qt) {
|
|
649
658
|
return {
|
|
650
659
|
addEventListener(t, n, o, r) {
|
|
651
660
|
if (t)
|
|
@@ -682,12 +691,12 @@ function qt(e = Bt) {
|
|
|
682
691
|
}
|
|
683
692
|
};
|
|
684
693
|
}
|
|
685
|
-
function
|
|
686
|
-
const n =
|
|
694
|
+
function Ut(e, t) {
|
|
695
|
+
const n = ae(), o = N(() => Ft(n), [n]), r = ye(() => e && e.id ? n.getResourceMeta(e.id, "eventManager") : null, [e]);
|
|
687
696
|
return N(() => e ? o.getListenersAsProps(e, t) : {}, [r, e, n, t]);
|
|
688
697
|
}
|
|
689
698
|
function ze(e, t) {
|
|
690
|
-
const n =
|
|
699
|
+
const n = ae(), o = N(() => ut(n), [n]);
|
|
691
700
|
return ye(() => {
|
|
692
701
|
if (!e)
|
|
693
702
|
return null;
|
|
@@ -695,8 +704,8 @@ function ze(e, t) {
|
|
|
695
704
|
return r ? t ? r[t] : r : void 0;
|
|
696
705
|
}, [e, t]);
|
|
697
706
|
}
|
|
698
|
-
function
|
|
699
|
-
const { id: n, selector: o } = e, r = je(), a =
|
|
707
|
+
function $t(e = {}, t = []) {
|
|
708
|
+
const { id: n, selector: o } = e, r = je(), a = ae(), i = n || r.annotation, s = ye(
|
|
700
709
|
(h) => i ? h.iiif.entities.Annotation[i] : void 0,
|
|
701
710
|
[i]
|
|
702
711
|
), f = ye(
|
|
@@ -717,15 +726,15 @@ function Ut(e = {}, t = []) {
|
|
|
717
726
|
return o ? o(h) : h;
|
|
718
727
|
}, [s, o, f, ...t]);
|
|
719
728
|
}
|
|
720
|
-
const
|
|
729
|
+
const Wt = ({
|
|
721
730
|
id: e,
|
|
722
731
|
style: t,
|
|
723
732
|
className: n,
|
|
724
733
|
interactive: o
|
|
725
734
|
}) => {
|
|
726
|
-
const r =
|
|
735
|
+
const r = $t({ id: e }), a = ze(r, "atlas"), i = ze(r, "html"), s = Ut(r, ["atlas"]), f = Se(), h = N(() => Tn(t, a), [t, a]);
|
|
727
736
|
return f && r && r.target && r.target.selector && r.target.selector.type === "BoxSelector" && r.target.source && (r.target.source.id === f.id || r.target.source === f.id) ? /* @__PURE__ */ d(
|
|
728
|
-
|
|
737
|
+
In,
|
|
729
738
|
{
|
|
730
739
|
id: r.id,
|
|
731
740
|
isEditing: !0,
|
|
@@ -742,7 +751,7 @@ const $t = ({
|
|
|
742
751
|
}
|
|
743
752
|
) : null;
|
|
744
753
|
};
|
|
745
|
-
function
|
|
754
|
+
function Sr(e = {}, t = []) {
|
|
746
755
|
const { id: n, selector: o } = e, r = je(), a = n || r.annotationPage, i = ye(
|
|
747
756
|
(s) => a ? s.iiif.entities.AnnotationPage[a] : void 0,
|
|
748
757
|
[a]
|
|
@@ -757,9 +766,9 @@ const at = ({
|
|
|
757
766
|
page: t
|
|
758
767
|
}) => {
|
|
759
768
|
var a;
|
|
760
|
-
const n =
|
|
769
|
+
const n = Sr({ id: t.id }) || t, o = ze(n, "atlas"), r = ze(n, "html");
|
|
761
770
|
return ye((i) => n.id ? i.iiif.entities.AnnotationPage[n.id] : null, []), /* @__PURE__ */ d(Ye, { children: (a = n.items) == null ? void 0 : a.map((i) => /* @__PURE__ */ d(
|
|
762
|
-
|
|
771
|
+
Wt,
|
|
763
772
|
{
|
|
764
773
|
id: i.id,
|
|
765
774
|
style: o,
|
|
@@ -768,7 +777,7 @@ const at = ({
|
|
|
768
777
|
i.id
|
|
769
778
|
)) });
|
|
770
779
|
};
|
|
771
|
-
function
|
|
780
|
+
function Ht({
|
|
772
781
|
id: e,
|
|
773
782
|
image: t,
|
|
774
783
|
thumbnail: n,
|
|
@@ -836,8 +845,8 @@ function Wt({
|
|
|
836
845
|
function So(e) {
|
|
837
846
|
return e.type === "SpecificResource" ? [e.source, { selector: e.selector }] : [e, { selector: null }];
|
|
838
847
|
}
|
|
839
|
-
function
|
|
840
|
-
const { selector: n, source: o } =
|
|
848
|
+
function Yt(e, t) {
|
|
849
|
+
const { selector: n, source: o } = Mn(t);
|
|
841
850
|
if (o.id !== e.id)
|
|
842
851
|
return [null, o];
|
|
843
852
|
const r = {
|
|
@@ -858,11 +867,11 @@ function Ht(e, t) {
|
|
|
858
867
|
o
|
|
859
868
|
];
|
|
860
869
|
}
|
|
861
|
-
const
|
|
870
|
+
const xr = {
|
|
862
871
|
makeChoice: () => {
|
|
863
872
|
}
|
|
864
|
-
}, rt = { type: "unknown" }, ne = (e) => ({ type: "unknown", reason: e, annotations: { pages: [] } }),
|
|
865
|
-
function
|
|
873
|
+
}, rt = { type: "unknown" }, ne = (e) => ({ type: "unknown", reason: e, annotations: { pages: [] } }), Tr = (e, t) => ({ type: "empty", width: e, height: t, annotations: { pages: [] }, image: null, images: [] });
|
|
874
|
+
function Ir(e, t) {
|
|
866
875
|
var o;
|
|
867
876
|
const n = (o = e == null ? void 0 : e.iiif) == null ? void 0 : o.meta[t];
|
|
868
877
|
return n ? n.annotationPageManager : null;
|
|
@@ -876,7 +885,7 @@ function Er(e, t) {
|
|
|
876
885
|
const r = Object.keys(n.iiif.entities.AnnotationPage);
|
|
877
886
|
for (const a of r)
|
|
878
887
|
if (!t || t.indexOf(a) !== -1) {
|
|
879
|
-
const i =
|
|
888
|
+
const i = Ir(n, a);
|
|
880
889
|
i && i.views && i.views[e] && o.push(a);
|
|
881
890
|
}
|
|
882
891
|
return o;
|
|
@@ -884,7 +893,7 @@ function Er(e, t) {
|
|
|
884
893
|
[e, t]
|
|
885
894
|
);
|
|
886
895
|
}
|
|
887
|
-
function
|
|
896
|
+
function Cr({
|
|
888
897
|
canvas: e,
|
|
889
898
|
manifest: t,
|
|
890
899
|
all: n,
|
|
@@ -904,13 +913,13 @@ function Ir({
|
|
|
904
913
|
r.indexOf(a.id) === -1 && r.push(a.id);
|
|
905
914
|
return r;
|
|
906
915
|
}
|
|
907
|
-
function
|
|
916
|
+
function jr(e, t) {
|
|
908
917
|
var o;
|
|
909
918
|
const n = (o = e == null ? void 0 : e.iiif) == null ? void 0 : o.meta[t];
|
|
910
919
|
return n ? n.annotationPageManager : null;
|
|
911
920
|
}
|
|
912
|
-
function
|
|
913
|
-
const n =
|
|
921
|
+
function zt(e, t = {}) {
|
|
922
|
+
const n = ae(), o = Ce(), r = Se(), a = Mt(), i = N(() => Cr({
|
|
914
923
|
all: t.all,
|
|
915
924
|
manifest: o,
|
|
916
925
|
canvas: r,
|
|
@@ -932,18 +941,18 @@ function Yt(e, t = {}) {
|
|
|
932
941
|
return;
|
|
933
942
|
const x = n.getState(), M = [];
|
|
934
943
|
if (y != null && y.deselectOthers) {
|
|
935
|
-
const
|
|
936
|
-
for (const
|
|
937
|
-
const
|
|
938
|
-
|
|
944
|
+
const C = Object.keys(x.iiif.entities.AnnotationPage);
|
|
945
|
+
for (const T of C) {
|
|
946
|
+
const b = jr(x, T);
|
|
947
|
+
b && b.views && b.views[e] && M.push(T);
|
|
939
948
|
}
|
|
940
949
|
}
|
|
941
|
-
for (const
|
|
942
|
-
f(
|
|
950
|
+
for (const C of M)
|
|
951
|
+
f(C);
|
|
943
952
|
n.setMetaValue(
|
|
944
953
|
[u, "annotationPageManager", "views"],
|
|
945
|
-
(
|
|
946
|
-
...
|
|
954
|
+
(C) => C && C[e] ? C : {
|
|
955
|
+
...C || {},
|
|
947
956
|
[e]: !0
|
|
948
957
|
}
|
|
949
958
|
);
|
|
@@ -957,15 +966,15 @@ function Yt(e, t = {}) {
|
|
|
957
966
|
setPageDisabled: f
|
|
958
967
|
};
|
|
959
968
|
}
|
|
960
|
-
function
|
|
969
|
+
function Mr(e, t) {
|
|
961
970
|
return ye((n, o) => o.get(e.map((r) => ({ id: r, type: t }))), [e, t]);
|
|
962
971
|
}
|
|
963
|
-
const
|
|
972
|
+
const Rr = Ee.createContext(new Rn());
|
|
964
973
|
function Je() {
|
|
965
|
-
return ue(
|
|
974
|
+
return ue(Rr);
|
|
966
975
|
}
|
|
967
|
-
function
|
|
968
|
-
const e = Je(), [t, n] =
|
|
976
|
+
function Lr() {
|
|
977
|
+
const e = Je(), [t, n] = ie({}), o = xe(!1);
|
|
969
978
|
return be(() => () => {
|
|
970
979
|
o.current = !0;
|
|
971
980
|
}, []), [Q(
|
|
@@ -996,8 +1005,8 @@ function Rr() {
|
|
|
996
1005
|
[e, t]
|
|
997
1006
|
), t];
|
|
998
1007
|
}
|
|
999
|
-
function
|
|
1000
|
-
const t =
|
|
1008
|
+
function ht(e = {}) {
|
|
1009
|
+
const t = $t(), n = Se(e.canvasId ? { id: e.canvasId } : void 0);
|
|
1001
1010
|
return ye(
|
|
1002
1011
|
(o, r) => {
|
|
1003
1012
|
if (!n)
|
|
@@ -1012,15 +1021,15 @@ function dt(e = {}) {
|
|
|
1012
1021
|
[n]
|
|
1013
1022
|
);
|
|
1014
1023
|
}
|
|
1015
|
-
function
|
|
1024
|
+
function Ar(e) {
|
|
1016
1025
|
return e.type === "SpecificResource" ? [e.source, { selector: e.selector }] : [e, { selector: null }];
|
|
1017
1026
|
}
|
|
1018
|
-
const He = {},
|
|
1027
|
+
const He = {}, Kt = {
|
|
1019
1028
|
get(e) {
|
|
1020
1029
|
return e;
|
|
1021
1030
|
},
|
|
1022
1031
|
setMetaValue([e, t, n], o) {
|
|
1023
|
-
const r =
|
|
1032
|
+
const r = Kt.getResourceMeta(e, t), a = r ? r[n] : void 0, i = typeof o == "function" ? o(a) : o;
|
|
1024
1033
|
He[e] = {
|
|
1025
1034
|
...He[e] || {},
|
|
1026
1035
|
[t]: {
|
|
@@ -1035,7 +1044,7 @@ const He = {}, zt = {
|
|
|
1035
1044
|
return t ? n[t] : n;
|
|
1036
1045
|
}
|
|
1037
1046
|
};
|
|
1038
|
-
function
|
|
1047
|
+
function kr(e = Kt) {
|
|
1039
1048
|
function t(r) {
|
|
1040
1049
|
const a = r ? typeof r == "string" ? e.get(r) : r : null;
|
|
1041
1050
|
if (!a)
|
|
@@ -1054,26 +1063,26 @@ function Ar(e = zt) {
|
|
|
1054
1063
|
throw new Error("getPaintables() accept either a canvas or list of annotations");
|
|
1055
1064
|
const y = Array.from(Array.isArray(u.body) ? u.body : [u.body]);
|
|
1056
1065
|
for (const x of y) {
|
|
1057
|
-
const [M, { selector:
|
|
1058
|
-
if (
|
|
1059
|
-
const
|
|
1060
|
-
|
|
1066
|
+
const [M, { selector: C }] = Ar(x), T = e.get(M), b = (T.type || "unknown").toLowerCase();
|
|
1067
|
+
if (b === "choice") {
|
|
1068
|
+
const E = e.get(T.items, { parent: T.id }), L = a.length ? a.map((P) => E.find((F) => F.id === P)).filter(Boolean) : [E[0]];
|
|
1069
|
+
L.length === 0 && L.push(E[0]), f = {
|
|
1061
1070
|
type: "single-choice",
|
|
1062
|
-
items:
|
|
1063
|
-
id:
|
|
1064
|
-
label:
|
|
1065
|
-
selected:
|
|
1071
|
+
items: E.map((P) => ({
|
|
1072
|
+
id: P.id,
|
|
1073
|
+
label: P.label,
|
|
1074
|
+
selected: L.indexOf(P) !== -1
|
|
1066
1075
|
})),
|
|
1067
1076
|
label: M.label
|
|
1068
|
-
}, y.push(...
|
|
1077
|
+
}, y.push(...L);
|
|
1069
1078
|
continue;
|
|
1070
1079
|
}
|
|
1071
|
-
s.indexOf(
|
|
1072
|
-
type:
|
|
1080
|
+
s.indexOf(b) === -1 && s.push(b), h.push({
|
|
1081
|
+
type: b,
|
|
1073
1082
|
annotationId: u.id,
|
|
1074
|
-
resource:
|
|
1083
|
+
resource: T,
|
|
1075
1084
|
target: u.target,
|
|
1076
|
-
selector:
|
|
1085
|
+
selector: C
|
|
1077
1086
|
});
|
|
1078
1087
|
}
|
|
1079
1088
|
}
|
|
@@ -1093,8 +1102,8 @@ function Ar(e = zt) {
|
|
|
1093
1102
|
extractChoices: o
|
|
1094
1103
|
};
|
|
1095
1104
|
}
|
|
1096
|
-
function
|
|
1097
|
-
const n =
|
|
1105
|
+
function Nr(e, t = []) {
|
|
1106
|
+
const n = ae(), o = N(() => kr(n), []), r = ht({ enableSingleAnnotation: e == null ? void 0 : e.enableSingleAnnotation }), [a, i] = ie((e == null ? void 0 : e.defaultChoices) || []), s = N(
|
|
1098
1107
|
() => o.getPaintables(r, a),
|
|
1099
1108
|
[n, r, a, ...t]
|
|
1100
1109
|
), h = { makeChoice: Q(
|
|
@@ -1104,19 +1113,19 @@ function kr(e, t = []) {
|
|
|
1104
1113
|
throw new Error("Complex choice not supported yet");
|
|
1105
1114
|
i((M) => {
|
|
1106
1115
|
if (x) {
|
|
1107
|
-
const
|
|
1108
|
-
if (
|
|
1109
|
-
const
|
|
1110
|
-
return
|
|
1116
|
+
const T = M.filter((b) => b !== u);
|
|
1117
|
+
if (T.length === 0) {
|
|
1118
|
+
const b = s.items[0].resource.id;
|
|
1119
|
+
return b ? [b] : [];
|
|
1111
1120
|
}
|
|
1112
|
-
return
|
|
1121
|
+
return T;
|
|
1113
1122
|
}
|
|
1114
1123
|
if (y)
|
|
1115
1124
|
return [u];
|
|
1116
|
-
const
|
|
1117
|
-
if (
|
|
1118
|
-
const
|
|
1119
|
-
|
|
1125
|
+
const C = [...M];
|
|
1126
|
+
if (C.length === 0 && s.items.length) {
|
|
1127
|
+
const T = s.items[0].resource.id;
|
|
1128
|
+
T && C.push(T);
|
|
1120
1129
|
}
|
|
1121
1130
|
return M.indexOf(u) !== -1 ? M : [...M, u];
|
|
1122
1131
|
});
|
|
@@ -1126,15 +1135,15 @@ function kr(e, t = []) {
|
|
|
1126
1135
|
) };
|
|
1127
1136
|
return [s, h];
|
|
1128
1137
|
}
|
|
1129
|
-
const
|
|
1130
|
-
function
|
|
1138
|
+
const Vr = ["model/gltf-binary"];
|
|
1139
|
+
function _r(e, t) {
|
|
1131
1140
|
const o = t.items[0].resource;
|
|
1132
|
-
return o.format ?
|
|
1141
|
+
return o.format ? Vr.indexOf(o.format) === -1 ? ne(`3D format: ${o.format} is unsupported`) : {
|
|
1133
1142
|
type: "3d-model",
|
|
1134
1143
|
model: o
|
|
1135
1144
|
} : ne("Unknown format");
|
|
1136
1145
|
}
|
|
1137
|
-
function
|
|
1146
|
+
function Dr(e, t) {
|
|
1138
1147
|
var o;
|
|
1139
1148
|
if (!e.duration)
|
|
1140
1149
|
return ne("No duration on canvas");
|
|
@@ -1169,7 +1178,7 @@ function _r(e, t) {
|
|
|
1169
1178
|
}
|
|
1170
1179
|
} : ne("Audio does not have format") : ne("Unknown audio");
|
|
1171
1180
|
}
|
|
1172
|
-
function
|
|
1181
|
+
function Br(e, t, n) {
|
|
1173
1182
|
const o = [];
|
|
1174
1183
|
for (const r of t.items) {
|
|
1175
1184
|
const a = r.resource && r.resource.type === "SpecificResource" ? r.resource.source : r.resource;
|
|
@@ -1188,7 +1197,7 @@ function Dr(e, t, n) {
|
|
|
1188
1197
|
width: Number(e.width),
|
|
1189
1198
|
height: Number(e.height)
|
|
1190
1199
|
}
|
|
1191
|
-
}, [f, h] =
|
|
1200
|
+
}, [f, h] = Yt(e, r.target);
|
|
1192
1201
|
if (!(h.id === e.id || decodeURIComponent(h.id || "") === (e.id || "")))
|
|
1193
1202
|
continue;
|
|
1194
1203
|
r.resource.width && r.resource.height && (r.resource.width, r.resource.height);
|
|
@@ -1231,7 +1240,7 @@ function Dr(e, t, n) {
|
|
|
1231
1240
|
choice: t.choice
|
|
1232
1241
|
};
|
|
1233
1242
|
}
|
|
1234
|
-
function
|
|
1243
|
+
function Qt(e, t = {}, n) {
|
|
1235
1244
|
const o = e.language || n || "none";
|
|
1236
1245
|
switch (e.type) {
|
|
1237
1246
|
case "TextualBody": {
|
|
@@ -1241,24 +1250,24 @@ function Kt(e, t = {}, n) {
|
|
|
1241
1250
|
case "List":
|
|
1242
1251
|
case "Composite":
|
|
1243
1252
|
case "Choice":
|
|
1244
|
-
e.items && e.items.forEach((r) =>
|
|
1253
|
+
e.items && e.items.forEach((r) => Qt(r, t, o));
|
|
1245
1254
|
}
|
|
1246
1255
|
return t;
|
|
1247
1256
|
}
|
|
1248
|
-
function
|
|
1257
|
+
function qr(e, t) {
|
|
1249
1258
|
const n = [];
|
|
1250
1259
|
return t.items.forEach((o) => {
|
|
1251
1260
|
if (o.resource) {
|
|
1252
|
-
const [r] =
|
|
1253
|
-
n.push({ annotationId: o.annotationId, text:
|
|
1261
|
+
const [r] = Yt(e, o.target);
|
|
1262
|
+
n.push({ annotationId: o.annotationId, text: Qt(o.resource), target: r });
|
|
1254
1263
|
}
|
|
1255
1264
|
}), {
|
|
1256
1265
|
type: "textual-content",
|
|
1257
1266
|
items: n
|
|
1258
1267
|
};
|
|
1259
1268
|
}
|
|
1260
|
-
const
|
|
1261
|
-
function
|
|
1269
|
+
const Fr = /^.*(?:(?:youtu\.be\/|v\/|vi\/|u\/\w\/|embed\/|shorts\/)|(?:(?:watch)?\?vi?=|&vi?=))([^#&?]*).*/;
|
|
1270
|
+
function Ur(e, t) {
|
|
1262
1271
|
var s;
|
|
1263
1272
|
const n = t.items.filter((f) => f.type === "video");
|
|
1264
1273
|
let o = !1;
|
|
@@ -1297,7 +1306,7 @@ function Fr(e, t) {
|
|
|
1297
1306
|
};
|
|
1298
1307
|
if (a) {
|
|
1299
1308
|
i.type = "VideoYouTube";
|
|
1300
|
-
const f = r.id.match(
|
|
1309
|
+
const f = r.id.match(Fr);
|
|
1301
1310
|
if (!f[1])
|
|
1302
1311
|
return ne("Video is not known youtube video");
|
|
1303
1312
|
i.youTubeId = f[1];
|
|
@@ -1310,30 +1319,30 @@ function Fr(e, t) {
|
|
|
1310
1319
|
}
|
|
1311
1320
|
};
|
|
1312
1321
|
}
|
|
1313
|
-
function
|
|
1322
|
+
function $r({ canvas: e, paintables: t, supports: n, loadImageService: o }) {
|
|
1314
1323
|
if (!e)
|
|
1315
1324
|
return console.log("No canvas"), rt;
|
|
1316
1325
|
if (t.types.length === 0)
|
|
1317
|
-
return n.indexOf("empty") !== -1 ?
|
|
1326
|
+
return n.indexOf("empty") !== -1 ? Tr(e.width, e.height) : (console.log("No paintables"), rt);
|
|
1318
1327
|
if (t.types.length !== 1)
|
|
1319
1328
|
if (t.types.length === 2 && t.types.indexOf("text") !== -1)
|
|
1320
1329
|
t.types = t.types.filter((a) => a !== "text");
|
|
1321
1330
|
else
|
|
1322
1331
|
return n.indexOf("complex-timeline") === -1 ? ne("Complex timeline not supported") : ne("ComplexTimelineStrategy not yet supported");
|
|
1323
1332
|
const r = t.types[0];
|
|
1324
|
-
return r === "image" ? n.indexOf("images") === -1 ? ne("Image not supported") :
|
|
1333
|
+
return r === "image" ? n.indexOf("images") === -1 ? ne("Image not supported") : Br(e, t, o) : r === "Model" || r === "model" ? n.indexOf("3d-model") === -1 ? ne("3D not supported") : _r(e, t) : r === "textualbody" ? n.indexOf("textual-content") === -1 ? ne("Textual content not supported") : qr(e, t) : r === "sound" || r === "audio" ? n.indexOf("media") === -1 ? ne("Media not supported") : Dr(e, t) : r === "video" ? n.indexOf("media") === -1 ? ne("Media not supported") : Ur(e, t) : rt;
|
|
1325
1334
|
}
|
|
1326
|
-
function
|
|
1327
|
-
const t = Ce(), n = Se(), o =
|
|
1335
|
+
function Wr(e) {
|
|
1336
|
+
const t = Ce(), n = Se(), o = ae(), [r, a] = Lr(), { enabledPageIds: i } = zt((e == null ? void 0 : e.annotationPageManagerId) || (t == null ? void 0 : t.id) || (n == null ? void 0 : n.id), {
|
|
1328
1337
|
all: !1
|
|
1329
|
-
}), s =
|
|
1338
|
+
}), s = Mr(i, "AnnotationPage"), f = (e == null ? void 0 : e.strategies) || [
|
|
1330
1339
|
"empty",
|
|
1331
1340
|
"images",
|
|
1332
1341
|
"media",
|
|
1333
1342
|
"textual-content",
|
|
1334
1343
|
"complex-timeline"
|
|
1335
|
-
], [h, u] =
|
|
1336
|
-
return N(() => y.type === "unknown" ? [y,
|
|
1344
|
+
], [h, u] = Nr(e, [a]), y = N(() => $r({ canvas: n, paintables: h, supports: f, loadImageService: r }), [n, h, o, u.makeChoice]);
|
|
1345
|
+
return N(() => y.type === "unknown" ? [y, xr] : [
|
|
1337
1346
|
{
|
|
1338
1347
|
...y,
|
|
1339
1348
|
annotations: { pages: s }
|
|
@@ -1341,31 +1350,31 @@ function $r(e) {
|
|
|
1341
1350
|
u
|
|
1342
1351
|
], [y, s]);
|
|
1343
1352
|
}
|
|
1344
|
-
const
|
|
1345
|
-
const n =
|
|
1353
|
+
const Hr = (e, t = []) => {
|
|
1354
|
+
const n = ae();
|
|
1346
1355
|
be(() => {
|
|
1347
1356
|
e(n);
|
|
1348
1357
|
}, [n, ...t]);
|
|
1349
1358
|
};
|
|
1350
|
-
function
|
|
1351
|
-
const r =
|
|
1359
|
+
function Gt(e, t, { canvasId: n, manifestId: o } = {}) {
|
|
1360
|
+
const r = ae(), a = Je(), i = N(() => kn(r, { imageServiceLoader: a }), [r, a]), [s, f] = ie(), h = Ce(o ? { id: o } : void 0), u = Se(n ? { id: n } : void 0), y = u || h, x = xe(!1);
|
|
1352
1361
|
if (be(() => (x.current = !1, () => {
|
|
1353
1362
|
x.current = !0;
|
|
1354
1363
|
}), []), !y)
|
|
1355
1364
|
throw new Error("Must be called under a manifest or canvas context.");
|
|
1356
|
-
return
|
|
1365
|
+
return Hr(
|
|
1357
1366
|
(M) => {
|
|
1358
|
-
i.getBestThumbnailAtSize(y, e, t).then((
|
|
1359
|
-
|
|
1367
|
+
i.getBestThumbnailAtSize(y, e, t).then((C) => {
|
|
1368
|
+
C.best && !x.current && f(C.best);
|
|
1360
1369
|
});
|
|
1361
1370
|
},
|
|
1362
1371
|
[y]
|
|
1363
1372
|
), s;
|
|
1364
1373
|
}
|
|
1365
|
-
function
|
|
1374
|
+
function Yr(e) {
|
|
1366
1375
|
return { isMuted: !1, playRequested: !1, isPlaying: !1, isFinished: !1, volume: 100, duration: e };
|
|
1367
1376
|
}
|
|
1368
|
-
function
|
|
1377
|
+
function zr(e, t) {
|
|
1369
1378
|
switch (t.type) {
|
|
1370
1379
|
case "FINISHED":
|
|
1371
1380
|
return { ...e, isFinished: !0, isPlaying: !1, playRequested: !1 };
|
|
@@ -1388,13 +1397,13 @@ function Yr(e, t) {
|
|
|
1388
1397
|
}
|
|
1389
1398
|
return e;
|
|
1390
1399
|
}
|
|
1391
|
-
function
|
|
1400
|
+
function Kr(e) {
|
|
1392
1401
|
const t = Math.round(e);
|
|
1393
1402
|
return `${Math.floor(t / 60)}:${`${t % 60}`.padStart(2, "0")}`;
|
|
1394
1403
|
}
|
|
1395
|
-
function
|
|
1396
|
-
const [t, n] =
|
|
1397
|
-
r.current && o.current && (r.current.innerHTML =
|
|
1404
|
+
function yt(e) {
|
|
1405
|
+
const [t, n] = On(zr, Yr(e.duration)), o = xe(null), r = xe(null), a = xe(null), i = xe(!1), s = Q(() => {
|
|
1406
|
+
r.current && o.current && (r.current.innerHTML = Kr(o.current.currentTime), a.current && (a.current.style.width = `${o.current.currentTime / e.duration * 100}%`), i.current !== o.current.muted && (i.current = o.current.muted, n(o.current.muted ? { type: "MUTE" } : { type: "UNMUTE" })));
|
|
1398
1407
|
}, [e.duration]), f = Q(() => {
|
|
1399
1408
|
o.current && (n({ type: "PLAY_REQUESTED" }), o.current.play().then(() => {
|
|
1400
1409
|
n({ type: "PLAY" });
|
|
@@ -1409,23 +1418,23 @@ function pt(e) {
|
|
|
1409
1418
|
o.current && (o.current.muted = !0, n({ type: "MUTE" }));
|
|
1410
1419
|
}, []), M = Q(() => {
|
|
1411
1420
|
o.current && (o.current.muted = !1, n({ type: "UNMUTE" }));
|
|
1412
|
-
}, []),
|
|
1413
|
-
o.current && (o.current.muted = !1, o.current.volume =
|
|
1414
|
-
}, []),
|
|
1415
|
-
o.current && (o.current.currentTime = Math.max(0, Math.min(
|
|
1416
|
-
}, []),
|
|
1417
|
-
o.current && (o.current.currentTime = Math.max(0, Math.min(
|
|
1421
|
+
}, []), C = Q((E) => {
|
|
1422
|
+
o.current && (o.current.muted = !1, o.current.volume = E / 100, n({ type: "SET_VOLUME", volume: E }));
|
|
1423
|
+
}, []), T = Q((E) => {
|
|
1424
|
+
o.current && (o.current.currentTime = Math.max(0, Math.min(E * e.duration, e.duration)), s());
|
|
1425
|
+
}, []), b = Q((E) => {
|
|
1426
|
+
o.current && (o.current.currentTime = Math.max(0, Math.min(E, e.duration)), s());
|
|
1418
1427
|
}, []);
|
|
1419
1428
|
return be(() => {
|
|
1420
|
-
const
|
|
1429
|
+
const E = setInterval(() => {
|
|
1421
1430
|
s();
|
|
1422
1431
|
}, 350);
|
|
1423
|
-
return () => clearInterval(
|
|
1432
|
+
return () => clearInterval(E);
|
|
1424
1433
|
}, [s, e.duration]), be(() => {
|
|
1425
|
-
const
|
|
1434
|
+
const E = () => {
|
|
1426
1435
|
n({ type: "FINISHED" });
|
|
1427
|
-
},
|
|
1428
|
-
return
|
|
1436
|
+
}, L = o.current;
|
|
1437
|
+
return L == null || L.addEventListener("ended", E), () => L == null ? void 0 : L.removeEventListener("ended", E);
|
|
1429
1438
|
}, []), [
|
|
1430
1439
|
{ element: o, currentTime: r, progress: a },
|
|
1431
1440
|
t,
|
|
@@ -1436,32 +1445,32 @@ function pt(e) {
|
|
|
1436
1445
|
mute: x,
|
|
1437
1446
|
unmute: M,
|
|
1438
1447
|
toggleMute: y,
|
|
1439
|
-
setVolume:
|
|
1440
|
-
setDurationPercent:
|
|
1441
|
-
setTime:
|
|
1448
|
+
setVolume: C,
|
|
1449
|
+
setDurationPercent: T,
|
|
1450
|
+
setTime: b
|
|
1442
1451
|
}
|
|
1443
1452
|
];
|
|
1444
1453
|
}
|
|
1445
|
-
const
|
|
1454
|
+
const Xt = Te(null), Jt = Te(null), Zt = Te(null);
|
|
1446
1455
|
function xo() {
|
|
1447
|
-
const e = ue(
|
|
1456
|
+
const e = ue(Xt);
|
|
1448
1457
|
if (!e)
|
|
1449
1458
|
throw new Error("Ctx not found");
|
|
1450
1459
|
return e;
|
|
1451
1460
|
}
|
|
1452
1461
|
function To() {
|
|
1453
|
-
const e = ue(
|
|
1462
|
+
const e = ue(Jt);
|
|
1454
1463
|
if (!e)
|
|
1455
1464
|
throw new Error("Ctx not found");
|
|
1456
1465
|
return e;
|
|
1457
1466
|
}
|
|
1458
|
-
function
|
|
1459
|
-
const e = ue(
|
|
1467
|
+
function Io() {
|
|
1468
|
+
const e = ue(Zt);
|
|
1460
1469
|
if (!e)
|
|
1461
1470
|
throw new Error("Ctx not found");
|
|
1462
1471
|
return e;
|
|
1463
1472
|
}
|
|
1464
|
-
function
|
|
1473
|
+
function en({
|
|
1465
1474
|
actions: e,
|
|
1466
1475
|
state: t,
|
|
1467
1476
|
children: n,
|
|
@@ -1469,12 +1478,12 @@ function Zt({
|
|
|
1469
1478
|
progress: r,
|
|
1470
1479
|
element: a
|
|
1471
1480
|
}) {
|
|
1472
|
-
return /* @__PURE__ */ d(
|
|
1481
|
+
return /* @__PURE__ */ d(Zt.Provider, { value: { currentTime: o, progress: r, element: a }, children: /* @__PURE__ */ d(Jt.Provider, { value: e, children: /* @__PURE__ */ d(Xt.Provider, { value: t, children: n }) }) });
|
|
1473
1482
|
}
|
|
1474
|
-
function
|
|
1475
|
-
const [{ element: n, currentTime: o, progress: r }, a, i] =
|
|
1483
|
+
function tn({ media: e, children: t }) {
|
|
1484
|
+
const [{ element: n, currentTime: o, progress: r }, a, i] = yt({ duration: e.duration });
|
|
1476
1485
|
return /* @__PURE__ */ X(
|
|
1477
|
-
|
|
1486
|
+
en,
|
|
1478
1487
|
{
|
|
1479
1488
|
state: a,
|
|
1480
1489
|
actions: i,
|
|
@@ -1488,14 +1497,14 @@ function en({ media: e, children: t }) {
|
|
|
1488
1497
|
}
|
|
1489
1498
|
);
|
|
1490
1499
|
}
|
|
1491
|
-
function
|
|
1500
|
+
function nn({
|
|
1492
1501
|
media: e,
|
|
1493
1502
|
mediaControlsDeps: t,
|
|
1494
1503
|
children: n
|
|
1495
1504
|
}) {
|
|
1496
|
-
return Ve("portal", "audio",
|
|
1505
|
+
return Ve("portal", "audio", tn, { media: e, children: n }, [e, ...t || []]), null;
|
|
1497
1506
|
}
|
|
1498
|
-
function
|
|
1507
|
+
function rn({
|
|
1499
1508
|
element: e,
|
|
1500
1509
|
media: t,
|
|
1501
1510
|
playPause: n
|
|
@@ -1518,20 +1527,20 @@ function nn({
|
|
|
1518
1527
|
/* @__PURE__ */ d("video", { ref: e, src: t.url, style: { width: "100%", objectFit: "contain" } })
|
|
1519
1528
|
] });
|
|
1520
1529
|
}
|
|
1521
|
-
function
|
|
1530
|
+
function on({
|
|
1522
1531
|
media: e,
|
|
1523
1532
|
mediaControlsDeps: t,
|
|
1524
1533
|
children: n
|
|
1525
1534
|
}) {
|
|
1526
|
-
const [{ element: o, currentTime: r, progress: a }, i, s] =
|
|
1527
|
-
return Ve("overlay", "video-element",
|
|
1535
|
+
const [{ element: o, currentTime: r, progress: a }, i, s] = yt({ duration: e.duration });
|
|
1536
|
+
return Ve("overlay", "video-element", rn, {
|
|
1528
1537
|
element: o,
|
|
1529
1538
|
media: e,
|
|
1530
1539
|
playPause: s.playPause
|
|
1531
1540
|
}), Ve(
|
|
1532
1541
|
"portal",
|
|
1533
1542
|
"custom-controls",
|
|
1534
|
-
|
|
1543
|
+
en,
|
|
1535
1544
|
{
|
|
1536
1545
|
state: i,
|
|
1537
1546
|
actions: s,
|
|
@@ -1543,7 +1552,7 @@ function rn({
|
|
|
1543
1552
|
[r, i, e, ...t || []]
|
|
1544
1553
|
), null;
|
|
1545
1554
|
}
|
|
1546
|
-
function
|
|
1555
|
+
function an({ model: e }) {
|
|
1547
1556
|
return /* @__PURE__ */ X(Oe, { children: [
|
|
1548
1557
|
/* @__PURE__ */ d("style", { children: `
|
|
1549
1558
|
.model-container {
|
|
@@ -1571,10 +1580,10 @@ function on({ model: e }) {
|
|
|
1571
1580
|
) })
|
|
1572
1581
|
] });
|
|
1573
1582
|
}
|
|
1574
|
-
function
|
|
1575
|
-
return Ve("overlay", `model-${t}`,
|
|
1583
|
+
function sn({ model: e, name: t }) {
|
|
1584
|
+
return Ve("overlay", `model-${t}`, an, { model: e }, [e]), null;
|
|
1576
1585
|
}
|
|
1577
|
-
function
|
|
1586
|
+
function cn({ style: e }) {
|
|
1578
1587
|
const t = Se();
|
|
1579
1588
|
return !t || !t.height || !t.width ? null : /* @__PURE__ */ d(
|
|
1580
1589
|
"box",
|
|
@@ -1585,21 +1594,21 @@ function sn({ style: e }) {
|
|
|
1585
1594
|
}
|
|
1586
1595
|
);
|
|
1587
1596
|
}
|
|
1588
|
-
const
|
|
1589
|
-
function
|
|
1590
|
-
return /* @__PURE__ */ d(
|
|
1597
|
+
const un = Ee.createContext("en");
|
|
1598
|
+
function Eo(e) {
|
|
1599
|
+
return /* @__PURE__ */ d(un.Provider, { value: e.language, children: e.children });
|
|
1591
1600
|
}
|
|
1592
|
-
function
|
|
1593
|
-
return
|
|
1601
|
+
function gt() {
|
|
1602
|
+
return Ee.useContext(un);
|
|
1594
1603
|
}
|
|
1595
|
-
function
|
|
1604
|
+
function It(e) {
|
|
1596
1605
|
return e.indexOf("-") !== -1 ? e.slice(0, e.indexOf("-")) : e;
|
|
1597
1606
|
}
|
|
1598
|
-
function
|
|
1599
|
-
const a =
|
|
1600
|
-
return N(() =>
|
|
1607
|
+
function Qr({ as: e, language: t, children: n, viewingDirection: o, ...r }) {
|
|
1608
|
+
const a = gt();
|
|
1609
|
+
return N(() => It(a) === It(t), [a, t]) ? e ? /* @__PURE__ */ d(e, { ...r, children: n }) : /* @__PURE__ */ d("span", { ...r, children: n }) : e ? /* @__PURE__ */ d(e, { ...r, lang: t, dir: o, children: n }) : /* @__PURE__ */ d("span", { ...r, lang: t, dir: o, children: n });
|
|
1601
1610
|
}
|
|
1602
|
-
function
|
|
1611
|
+
function ln(e, t, n) {
|
|
1603
1612
|
if (t.length === 0)
|
|
1604
1613
|
return;
|
|
1605
1614
|
if (t.length === 1)
|
|
@@ -1614,16 +1623,16 @@ function un(e, t, n) {
|
|
|
1614
1623
|
return r;
|
|
1615
1624
|
return t.indexOf("none") !== -1 ? "none" : t.indexOf("@none") !== -1 ? "@none" : t[0];
|
|
1616
1625
|
}
|
|
1617
|
-
const
|
|
1618
|
-
const n =
|
|
1626
|
+
const Gr = (e, t = []) => {
|
|
1627
|
+
const n = gt();
|
|
1619
1628
|
return N(() => {
|
|
1620
1629
|
const o = e();
|
|
1621
|
-
return
|
|
1630
|
+
return ln(n, o, []);
|
|
1622
1631
|
}, [n, ...t]);
|
|
1623
1632
|
};
|
|
1624
|
-
function
|
|
1633
|
+
function Xr(e, t, n = `
|
|
1625
1634
|
`) {
|
|
1626
|
-
const o =
|
|
1635
|
+
const o = Gr(() => Object.keys(e || {}), [e]);
|
|
1627
1636
|
return [
|
|
1628
1637
|
N(() => {
|
|
1629
1638
|
if (!e)
|
|
@@ -1637,9 +1646,9 @@ function Gr(e, t, n = `
|
|
|
1637
1646
|
];
|
|
1638
1647
|
}
|
|
1639
1648
|
function Co() {
|
|
1640
|
-
const e =
|
|
1649
|
+
const e = gt();
|
|
1641
1650
|
return function(n, o, r) {
|
|
1642
|
-
const a = Object.keys(n || {}), i =
|
|
1651
|
+
const a = Object.keys(n || {}), i = ln(e, a, []);
|
|
1643
1652
|
if (!n)
|
|
1644
1653
|
return o || "";
|
|
1645
1654
|
if (typeof n == "string")
|
|
@@ -1657,9 +1666,9 @@ function Ne({
|
|
|
1657
1666
|
separator: r,
|
|
1658
1667
|
...a
|
|
1659
1668
|
}) {
|
|
1660
|
-
const [i, s] =
|
|
1669
|
+
const [i, s] = Xr(o, t, r);
|
|
1661
1670
|
return s ? /* @__PURE__ */ d(
|
|
1662
|
-
|
|
1671
|
+
Qr,
|
|
1663
1672
|
{
|
|
1664
1673
|
...a,
|
|
1665
1674
|
as: e,
|
|
@@ -1682,12 +1691,12 @@ function Ne({
|
|
|
1682
1691
|
}
|
|
1683
1692
|
);
|
|
1684
1693
|
}
|
|
1685
|
-
function
|
|
1694
|
+
function Jr({
|
|
1686
1695
|
element: e,
|
|
1687
1696
|
media: t,
|
|
1688
1697
|
playPause: n
|
|
1689
1698
|
}) {
|
|
1690
|
-
const o =
|
|
1699
|
+
const o = xe(null);
|
|
1691
1700
|
return t.youTubeId ? /* @__PURE__ */ X("div", { className: "video-container", part: "video-container", onClick: n, children: [
|
|
1692
1701
|
/* @__PURE__ */ d("style", { children: `
|
|
1693
1702
|
.video-container {
|
|
@@ -1720,19 +1729,19 @@ function Xr({
|
|
|
1720
1729
|
)
|
|
1721
1730
|
] }) : null;
|
|
1722
1731
|
}
|
|
1723
|
-
function
|
|
1732
|
+
function Zr({
|
|
1724
1733
|
media: e,
|
|
1725
1734
|
mediaControlsDeps: t,
|
|
1726
1735
|
children: n
|
|
1727
1736
|
}) {
|
|
1728
|
-
const [{ element: o, currentTime: r, progress: a }, i, s] =
|
|
1729
|
-
return Ve("overlay", "video-element",
|
|
1737
|
+
const [{ element: o, currentTime: r, progress: a }, i, s] = yt({ duration: e.duration });
|
|
1738
|
+
return Ve("overlay", "video-element", Jr, {
|
|
1730
1739
|
element: o,
|
|
1731
1740
|
media: e,
|
|
1732
1741
|
playPause: s.playPause
|
|
1733
1742
|
}), null;
|
|
1734
1743
|
}
|
|
1735
|
-
function
|
|
1744
|
+
function fn({
|
|
1736
1745
|
x: e,
|
|
1737
1746
|
y: t,
|
|
1738
1747
|
onChoiceChange: n,
|
|
@@ -1747,25 +1756,25 @@ function ln({
|
|
|
1747
1756
|
throwOnUnknown: y,
|
|
1748
1757
|
backgroundStyle: x,
|
|
1749
1758
|
alwaysShowBackground: M,
|
|
1750
|
-
keepCanvasScale:
|
|
1751
|
-
enableSizes:
|
|
1752
|
-
enableYouTube:
|
|
1753
|
-
onClickPaintingAnnotation:
|
|
1754
|
-
children:
|
|
1759
|
+
keepCanvasScale: C = !1,
|
|
1760
|
+
enableSizes: T = !1,
|
|
1761
|
+
enableYouTube: b = !0,
|
|
1762
|
+
onClickPaintingAnnotation: E,
|
|
1763
|
+
children: L
|
|
1755
1764
|
}) {
|
|
1756
|
-
const
|
|
1765
|
+
const P = Se(), F = Ut(P, ["deep-zoom"]), [A] = mr(), R = wr(), B = ae(), j = N(() => ut(B), [B]), [S, U] = Wr({
|
|
1757
1766
|
strategies: u || ["images"],
|
|
1758
1767
|
defaultChoices: r == null ? void 0 : r.map(({ id: V }) => V)
|
|
1759
|
-
}), H =
|
|
1768
|
+
}), H = S.type === "images" ? S.choice : void 0, G = N(() => C ? 1 : Math.max(
|
|
1760
1769
|
1,
|
|
1761
|
-
...
|
|
1770
|
+
...S.type === "images" ? S.images.map((V) => {
|
|
1762
1771
|
var te;
|
|
1763
1772
|
return (V.width || 0) / ((te = V.target) == null ? void 0 : te.spatial.width);
|
|
1764
1773
|
}) : []
|
|
1765
|
-
), [
|
|
1766
|
-
|
|
1774
|
+
), [C, S]);
|
|
1775
|
+
Pr(G), be(() => {
|
|
1767
1776
|
o && o(U);
|
|
1768
|
-
}, [
|
|
1777
|
+
}, [S.annotations]), be(() => {
|
|
1769
1778
|
if (r)
|
|
1770
1779
|
for (const V of r)
|
|
1771
1780
|
typeof V.opacity < "u" && j.applyStyles({ id: V.id }, "atlas", {
|
|
@@ -1774,23 +1783,23 @@ function ln({
|
|
|
1774
1783
|
}, [r]), st(() => {
|
|
1775
1784
|
n && n(H);
|
|
1776
1785
|
}, [H]), Ve(
|
|
1777
|
-
R && (
|
|
1778
|
-
`canvas-portal-controls-${
|
|
1779
|
-
|
|
1786
|
+
R && (S.type === "images" || S.type === "empty" || S.type === "textual-content" && i) ? "overlay" : "none",
|
|
1787
|
+
`canvas-portal-controls-${P == null ? void 0 : P.id}`,
|
|
1788
|
+
pt.Provider,
|
|
1780
1789
|
i ? {
|
|
1781
1790
|
value: R || null,
|
|
1782
|
-
children: i(
|
|
1791
|
+
children: i(S)
|
|
1783
1792
|
} : {},
|
|
1784
|
-
[
|
|
1793
|
+
[P, R, S, ...f || []]
|
|
1785
1794
|
);
|
|
1786
|
-
const Y =
|
|
1787
|
-
if (!
|
|
1795
|
+
const Y = Gt({ maxWidth: 256, maxHeight: 256 });
|
|
1796
|
+
if (!P)
|
|
1788
1797
|
return null;
|
|
1789
|
-
const Z =
|
|
1798
|
+
const Z = P.accompanyingCanvas, ee = Y && Y.type === "fixed" ? /* @__PURE__ */ d("world-object", { height: P.height, width: P.width, x: e, y: t, children: /* @__PURE__ */ d(
|
|
1790
1799
|
"world-image",
|
|
1791
1800
|
{
|
|
1792
1801
|
uri: Y.id,
|
|
1793
|
-
target: { x: 0, y: 0, width:
|
|
1802
|
+
target: { x: 0, y: 0, width: P.width, height: P.height },
|
|
1794
1803
|
display: Y.width && Y.height ? {
|
|
1795
1804
|
width: Y.width,
|
|
1796
1805
|
height: Y.height
|
|
@@ -1798,37 +1807,37 @@ function ln({
|
|
|
1798
1807
|
crop: void 0
|
|
1799
1808
|
}
|
|
1800
1809
|
) }) : null;
|
|
1801
|
-
if (
|
|
1810
|
+
if (S.type === "unknown") {
|
|
1802
1811
|
if (ee)
|
|
1803
1812
|
return ee;
|
|
1804
1813
|
if (y)
|
|
1805
|
-
throw new Error(
|
|
1814
|
+
throw new Error(S.reason || "Unknown image strategy");
|
|
1806
1815
|
return null;
|
|
1807
1816
|
}
|
|
1808
1817
|
const se = /* @__PURE__ */ X(Ye, { children: [
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
] }), me =
|
|
1818
|
+
A ? /* @__PURE__ */ d(at, { page: A }) : null,
|
|
1819
|
+
S.annotations && S.annotations.pages ? S.annotations.pages.map((V) => /* @__PURE__ */ d(at, { page: V }, V.id)) : null,
|
|
1820
|
+
L
|
|
1821
|
+
] }), me = S.type === "images" ? S.images.length : 0;
|
|
1813
1822
|
return /* @__PURE__ */ X(Oe, { children: [
|
|
1814
1823
|
/* @__PURE__ */ X(
|
|
1815
1824
|
"world-object",
|
|
1816
1825
|
{
|
|
1817
|
-
height:
|
|
1818
|
-
width:
|
|
1826
|
+
height: P.height,
|
|
1827
|
+
width: P.width,
|
|
1819
1828
|
x: e,
|
|
1820
1829
|
y: t,
|
|
1821
1830
|
...F,
|
|
1822
1831
|
children: [
|
|
1823
|
-
|
|
1824
|
-
|
|
1832
|
+
S.type === "empty" || M ? /* @__PURE__ */ d(cn, { style: x }) : null,
|
|
1833
|
+
S.type === "textual-content" ? S.items.map((V, te) => {
|
|
1825
1834
|
var $;
|
|
1826
1835
|
return /* @__PURE__ */ X(Oe, { children: [
|
|
1827
1836
|
/* @__PURE__ */ d(
|
|
1828
|
-
|
|
1837
|
+
Cn,
|
|
1829
1838
|
{
|
|
1830
|
-
onClick:
|
|
1831
|
-
le.stopPropagation(),
|
|
1839
|
+
onClick: E ? (le) => {
|
|
1840
|
+
le.stopPropagation(), E(V.annotationId, V, le);
|
|
1832
1841
|
} : void 0,
|
|
1833
1842
|
target: (($ = V.target) == null ? void 0 : $.spatial) || void 0,
|
|
1834
1843
|
children: /* @__PURE__ */ d("div", { "data-textual-content": !0, children: /* @__PURE__ */ d(Ne, { enableDangerouslySetInnerHTML: !0, children: V.text }) })
|
|
@@ -1838,49 +1847,45 @@ function ln({
|
|
|
1838
1847
|
se
|
|
1839
1848
|
] });
|
|
1840
1849
|
}) : null,
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1850
|
+
S.type === "images" ? /* @__PURE__ */ X(Oe, { children: [
|
|
1851
|
+
S.images.map((V, te) => /* @__PURE__ */ d(
|
|
1852
|
+
Ht,
|
|
1844
1853
|
{
|
|
1845
1854
|
isStatic: a,
|
|
1846
1855
|
image: V,
|
|
1847
1856
|
id: V.id,
|
|
1848
1857
|
thumbnail: te === 0 ? Y : void 0,
|
|
1849
1858
|
selector: V.selector,
|
|
1850
|
-
enableSizes:
|
|
1851
|
-
onClick:
|
|
1852
|
-
$.stopPropagation(),
|
|
1859
|
+
enableSizes: T,
|
|
1860
|
+
onClick: E ? ($) => {
|
|
1861
|
+
$.stopPropagation(), E(V.annotationId, V, $);
|
|
1853
1862
|
} : void 0
|
|
1854
1863
|
},
|
|
1855
1864
|
V.id + te
|
|
1856
1865
|
)),
|
|
1857
1866
|
se
|
|
1858
1867
|
] }) : null,
|
|
1859
|
-
|
|
1860
|
-
|
|
1868
|
+
S.type === "3d-model" ? /* @__PURE__ */ d(sn, { model: S.model }) : null,
|
|
1869
|
+
S.type === "media" ? /* @__PURE__ */ d(Oe, { children: S.media.type === "Sound" ? /* @__PURE__ */ X(nn, { media: S.media, mediaControlsDeps: h, children: [
|
|
1861
1870
|
ee,
|
|
1862
|
-
s ? s(
|
|
1863
|
-
] }) :
|
|
1871
|
+
s ? s(S) : null
|
|
1872
|
+
] }) : S.media.type === "Video" ? /* @__PURE__ */ X(on, { media: S.media, mediaControlsDeps: h, children: [
|
|
1864
1873
|
ee,
|
|
1865
|
-
s ? s(
|
|
1866
|
-
] }) :
|
|
1874
|
+
s ? s(S) : null
|
|
1875
|
+
] }) : S.media.type === "VideoYouTube" && b ? /* @__PURE__ */ X(Zr, { media: S.media, mediaControlsDeps: h, children: [
|
|
1867
1876
|
ee,
|
|
1868
|
-
s ? s(
|
|
1877
|
+
s ? s(S) : null
|
|
1869
1878
|
] }) : null }) : null
|
|
1870
1879
|
]
|
|
1871
1880
|
},
|
|
1872
|
-
`${
|
|
1881
|
+
`${P.id}/${S.type}/${me}`
|
|
1873
1882
|
),
|
|
1874
|
-
|
|
1883
|
+
S.type === "media" && S.media.type === "Sound" && Z ? /* @__PURE__ */ d(Qe, { canvas: Z.id, children: /* @__PURE__ */ d(fn, { renderViewerControls: i }) }) : null
|
|
1875
1884
|
] });
|
|
1876
1885
|
}
|
|
1877
|
-
function Zr() {
|
|
1878
|
-
const e = ue(Ke);
|
|
1879
|
-
return e && e.vault ? e.vault : Et();
|
|
1880
|
-
}
|
|
1881
1886
|
const eo = ct(function(t, n) {
|
|
1882
|
-
const o = Ce(), r =
|
|
1883
|
-
if (
|
|
1887
|
+
const o = Ce(), r = Mt(), a = Nt(), { ViewerControls: i, MediaControls: s } = t.components || {};
|
|
1888
|
+
if (Et(n, () => a, [a]), !o)
|
|
1884
1889
|
return /* @__PURE__ */ d("div", {});
|
|
1885
1890
|
let f = 0;
|
|
1886
1891
|
return /* @__PURE__ */ X(Oe, { children: [
|
|
@@ -1910,20 +1915,9 @@ const eo = ct(function(t, n) {
|
|
|
1910
1915
|
),
|
|
1911
1916
|
t.children
|
|
1912
1917
|
] });
|
|
1913
|
-
}), ge = ct(function({
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
annotations: o,
|
|
1917
|
-
canvasProps: r,
|
|
1918
|
-
spacing: a,
|
|
1919
|
-
header: i,
|
|
1920
|
-
components: s,
|
|
1921
|
-
mode: f,
|
|
1922
|
-
reuseAtlas: h,
|
|
1923
|
-
...u
|
|
1924
|
-
}, y) {
|
|
1925
|
-
const x = Zr();
|
|
1926
|
-
return /* @__PURE__ */ d(It, { vault: x, children: /* @__PURE__ */ d(Hn, { ...u, children: /* @__PURE__ */ d(
|
|
1918
|
+
}), ge = ct(function({ children: t, height: n, annotations: o, canvasProps: r, spacing: a, header: i, components: s, mode: f, reuseAtlas: h, ...u }, y) {
|
|
1919
|
+
const x = dt();
|
|
1920
|
+
return /* @__PURE__ */ d(ft, { vault: x, children: /* @__PURE__ */ d(Yn, { ...u, children: /* @__PURE__ */ d(
|
|
1927
1921
|
eo,
|
|
1928
1922
|
{
|
|
1929
1923
|
ref: y,
|
|
@@ -1939,25 +1933,25 @@ const eo = ct(function(t, n) {
|
|
|
1939
1933
|
}
|
|
1940
1934
|
) }) });
|
|
1941
1935
|
});
|
|
1942
|
-
ge.RenderImage =
|
|
1943
|
-
ge.RenderCanvas =
|
|
1936
|
+
ge.RenderImage = Ht;
|
|
1937
|
+
ge.RenderCanvas = fn;
|
|
1944
1938
|
ge.RenderAnnotationPage = at;
|
|
1945
|
-
ge.RenderAnnotation =
|
|
1946
|
-
ge.Viewer =
|
|
1947
|
-
ge.CanvasBackground =
|
|
1948
|
-
ge.Audio =
|
|
1949
|
-
ge.Video =
|
|
1950
|
-
ge.Model =
|
|
1951
|
-
ge.AudioHTML =
|
|
1952
|
-
ge.VideoHTML =
|
|
1953
|
-
ge.ModelHTML =
|
|
1939
|
+
ge.RenderAnnotation = Wt;
|
|
1940
|
+
ge.Viewer = Or;
|
|
1941
|
+
ge.CanvasBackground = cn;
|
|
1942
|
+
ge.Audio = nn;
|
|
1943
|
+
ge.Video = on;
|
|
1944
|
+
ge.Model = sn;
|
|
1945
|
+
ge.AudioHTML = tn;
|
|
1946
|
+
ge.VideoHTML = rn;
|
|
1947
|
+
ge.ModelHTML = an;
|
|
1954
1948
|
const jo = ct(
|
|
1955
1949
|
function({ canvasId: t }, n) {
|
|
1956
|
-
const o =
|
|
1957
|
-
return
|
|
1950
|
+
const o = jn(), r = zt(t || (o == null ? void 0 : o.id)), a = ae();
|
|
1951
|
+
return Et(n, () => r, [t, o]), !o || r.enabledPageIds.length === 0 ? null : /* @__PURE__ */ d(Oe, { children: r.enabledPageIds.map((i) => /* @__PURE__ */ d(ge.RenderAnnotationPage, { page: a.get(i) }, i)) });
|
|
1958
1952
|
}
|
|
1959
1953
|
);
|
|
1960
|
-
function
|
|
1954
|
+
function dn({
|
|
1961
1955
|
metadata: e = [],
|
|
1962
1956
|
config: t,
|
|
1963
1957
|
labelWidth: n = 16,
|
|
@@ -1973,60 +1967,60 @@ function fn({
|
|
|
1973
1967
|
tableHeader: x
|
|
1974
1968
|
}) {
|
|
1975
1969
|
const M = N(() => {
|
|
1976
|
-
const
|
|
1977
|
-
for (const
|
|
1978
|
-
const
|
|
1979
|
-
for (const
|
|
1980
|
-
if (
|
|
1981
|
-
const F = `metadata.${
|
|
1982
|
-
|
|
1970
|
+
const T = (t || []).reduce((E, L) => [...E, ...L.keys], []), b = {};
|
|
1971
|
+
for (const E of e) {
|
|
1972
|
+
const L = E && E.label ? Object.values(E.label) : [];
|
|
1973
|
+
for (const P of L)
|
|
1974
|
+
if (P && P.length && (T.indexOf(`metadata.${P[0]}`) !== -1 || T.length === 0) && E) {
|
|
1975
|
+
const F = `metadata.${P[0]}`;
|
|
1976
|
+
b[F] = b[F] ? b[F] : [], b[F].push(E);
|
|
1983
1977
|
break;
|
|
1984
1978
|
}
|
|
1985
1979
|
}
|
|
1986
|
-
return
|
|
1980
|
+
return b;
|
|
1987
1981
|
}, [t, e]);
|
|
1988
1982
|
return Object.keys(M).length === 0 && o ? /* @__PURE__ */ d(Oe, { children: a }) || /* @__PURE__ */ d("div", { className: i.empty, children: s }) : t && t.length ? /* @__PURE__ */ X("table", { className: i.container, children: [
|
|
1989
1983
|
x,
|
|
1990
|
-
/* @__PURE__ */ d("tbody", { children: t.map((
|
|
1991
|
-
const
|
|
1992
|
-
for (const
|
|
1993
|
-
for (const
|
|
1994
|
-
|
|
1984
|
+
/* @__PURE__ */ d("tbody", { children: t.map((T, b) => {
|
|
1985
|
+
const E = [];
|
|
1986
|
+
for (const L of T.keys)
|
|
1987
|
+
for (const P of M[L] || [])
|
|
1988
|
+
E.push(
|
|
1995
1989
|
/* @__PURE__ */ d(
|
|
1996
1990
|
Ne,
|
|
1997
1991
|
{
|
|
1998
1992
|
enableDangerouslySetInnerHTML: r,
|
|
1999
1993
|
defaultText: f,
|
|
2000
1994
|
separator: u,
|
|
2001
|
-
children:
|
|
1995
|
+
children: P.value
|
|
2002
1996
|
},
|
|
2003
|
-
|
|
1997
|
+
b + "__" + L
|
|
2004
1998
|
)
|
|
2005
1999
|
);
|
|
2006
|
-
return
|
|
2000
|
+
return E.length === 0 ? null : /* @__PURE__ */ X("tr", { className: i.row, children: [
|
|
2007
2001
|
/* @__PURE__ */ d("td", { className: i.label, style: n ? { minWidth: n } : {}, children: /* @__PURE__ */ d(
|
|
2008
2002
|
Ne,
|
|
2009
2003
|
{
|
|
2010
2004
|
enableDangerouslySetInnerHTML: r,
|
|
2011
2005
|
separator: u,
|
|
2012
2006
|
defaultText: h,
|
|
2013
|
-
children:
|
|
2007
|
+
children: T.label
|
|
2014
2008
|
}
|
|
2015
2009
|
) }),
|
|
2016
|
-
/* @__PURE__ */ d("td", { className: i.value, children:
|
|
2017
|
-
] },
|
|
2010
|
+
/* @__PURE__ */ d("td", { className: i.value, children: E })
|
|
2011
|
+
] }, b);
|
|
2018
2012
|
}) }),
|
|
2019
2013
|
y
|
|
2020
2014
|
] }) : /* @__PURE__ */ X("table", { className: i.container, children: [
|
|
2021
2015
|
x,
|
|
2022
|
-
/* @__PURE__ */ d("tbody", { children: e && e.length ? e.map((
|
|
2016
|
+
/* @__PURE__ */ d("tbody", { children: e && e.length ? e.map((T, b) => T ? /* @__PURE__ */ X("tr", { className: i.row, children: [
|
|
2023
2017
|
/* @__PURE__ */ d("td", { className: i.label, style: n ? { minWidth: n } : {}, children: /* @__PURE__ */ d(
|
|
2024
2018
|
Ne,
|
|
2025
2019
|
{
|
|
2026
2020
|
enableDangerouslySetInnerHTML: r,
|
|
2027
2021
|
defaultText: f,
|
|
2028
2022
|
separator: u,
|
|
2029
|
-
children:
|
|
2023
|
+
children: T.label
|
|
2030
2024
|
}
|
|
2031
2025
|
) }),
|
|
2032
2026
|
/* @__PURE__ */ d("td", { className: i.value, children: /* @__PURE__ */ d(
|
|
@@ -2035,29 +2029,29 @@ function fn({
|
|
|
2035
2029
|
enableDangerouslySetInnerHTML: r,
|
|
2036
2030
|
defaultText: f,
|
|
2037
2031
|
separator: u,
|
|
2038
|
-
children:
|
|
2032
|
+
children: T.value
|
|
2039
2033
|
}
|
|
2040
2034
|
) })
|
|
2041
|
-
] },
|
|
2035
|
+
] }, b) : null) : null }),
|
|
2042
2036
|
y
|
|
2043
2037
|
] });
|
|
2044
2038
|
}
|
|
2045
2039
|
function Mo(e) {
|
|
2046
|
-
const t = Ce(), n = Se(), o =
|
|
2040
|
+
const t = Ce(), n = Se(), o = kt(), r = N(() => {
|
|
2047
2041
|
const a = (t == null ? void 0 : t.metadata) || [], i = (n == null ? void 0 : n.metadata) || [], s = (o == null ? void 0 : o.metadata) || [];
|
|
2048
2042
|
return [...a, ...i, ...s];
|
|
2049
2043
|
}, [t, n, o]);
|
|
2050
|
-
return /* @__PURE__ */ d(
|
|
2044
|
+
return /* @__PURE__ */ d(dn, { metadata: r, ...e });
|
|
2051
2045
|
}
|
|
2052
|
-
function
|
|
2046
|
+
function pn(e, t = {}, n = []) {
|
|
2053
2047
|
return N(() => {
|
|
2054
2048
|
var i, s;
|
|
2055
2049
|
if (!e)
|
|
2056
2050
|
return null;
|
|
2057
2051
|
let o = t.quality;
|
|
2058
2052
|
e && e.extraQualities && t.quality && (e.extraQualities.includes(t.quality) || (console.log("Invalid quality", t.quality, e.extraQualities), o = "default"));
|
|
2059
|
-
const r =
|
|
2060
|
-
return
|
|
2053
|
+
const r = Ln(e);
|
|
2054
|
+
return An({
|
|
2061
2055
|
identifier: r.identifier,
|
|
2062
2056
|
server: r.server,
|
|
2063
2057
|
scheme: r.scheme,
|
|
@@ -2080,7 +2074,7 @@ function dn(e, t = {}, n = []) {
|
|
|
2080
2074
|
}, [...n]);
|
|
2081
2075
|
}
|
|
2082
2076
|
function to(e) {
|
|
2083
|
-
const t = typeof e.src == "string" ? e.src : e.src.id, n = Je(), [o, r] =
|
|
2077
|
+
const t = typeof e.src == "string" ? e.src : e.src.id, n = Je(), [o, r] = ie(!1);
|
|
2084
2078
|
let a;
|
|
2085
2079
|
if (t) {
|
|
2086
2080
|
const s = n.loadServiceSync({ id: t });
|
|
@@ -2089,7 +2083,7 @@ function to(e) {
|
|
|
2089
2083
|
!a && !o && n.loadService({ id: t }).then(() => {
|
|
2090
2084
|
r(!0);
|
|
2091
2085
|
});
|
|
2092
|
-
const i =
|
|
2086
|
+
const i = pn(
|
|
2093
2087
|
a,
|
|
2094
2088
|
{
|
|
2095
2089
|
size: e.size,
|
|
@@ -2108,7 +2102,7 @@ function to(e) {
|
|
|
2108
2102
|
function no(e) {
|
|
2109
2103
|
if (e.fetchImageService)
|
|
2110
2104
|
return /* @__PURE__ */ d(to, { ...e });
|
|
2111
|
-
const t = typeof e.src == "string" ? { id: e.src, profile: "level0" } : e.src, n =
|
|
2105
|
+
const t = typeof e.src == "string" ? { id: e.src, profile: "level0" } : e.src, n = pn(
|
|
2112
2106
|
t,
|
|
2113
2107
|
{
|
|
2114
2108
|
size: e.size,
|
|
@@ -2124,64 +2118,64 @@ function no(e) {
|
|
|
2124
2118
|
}
|
|
2125
2119
|
function Ro(e) {
|
|
2126
2120
|
const t = Ce();
|
|
2127
|
-
return /* @__PURE__ */ d(
|
|
2121
|
+
return /* @__PURE__ */ d(dn, { metadata: (t == null ? void 0 : t.metadata) || [], ...e });
|
|
2128
2122
|
}
|
|
2129
|
-
var
|
|
2123
|
+
var hn = { exports: {} };
|
|
2130
2124
|
(() => {
|
|
2131
2125
|
var e = { 296: (r, a, i) => {
|
|
2132
|
-
var s = /^\s+|\s+$/g, f = /^[-+]0x[0-9a-f]+$/i, h = /^0b[01]+$/i, u = /^0o[0-7]+$/i, y = parseInt, x = typeof i.g == "object" && i.g && i.g.Object === Object && i.g, M = typeof self == "object" && self && self.Object === Object && self,
|
|
2133
|
-
return
|
|
2126
|
+
var s = /^\s+|\s+$/g, f = /^[-+]0x[0-9a-f]+$/i, h = /^0b[01]+$/i, u = /^0o[0-7]+$/i, y = parseInt, x = typeof i.g == "object" && i.g && i.g.Object === Object && i.g, M = typeof self == "object" && self && self.Object === Object && self, C = x || M || Function("return this")(), T = Object.prototype.toString, b = Math.max, E = Math.min, L = function() {
|
|
2127
|
+
return C.Date.now();
|
|
2134
2128
|
};
|
|
2135
|
-
function
|
|
2136
|
-
var R = typeof
|
|
2137
|
-
return !!
|
|
2129
|
+
function P(A) {
|
|
2130
|
+
var R = typeof A;
|
|
2131
|
+
return !!A && (R == "object" || R == "function");
|
|
2138
2132
|
}
|
|
2139
|
-
function F(
|
|
2140
|
-
if (typeof
|
|
2141
|
-
return
|
|
2133
|
+
function F(A) {
|
|
2134
|
+
if (typeof A == "number")
|
|
2135
|
+
return A;
|
|
2142
2136
|
if (function(j) {
|
|
2143
|
-
return typeof j == "symbol" || /* @__PURE__ */ function(
|
|
2144
|
-
return !!
|
|
2145
|
-
}(j) &&
|
|
2146
|
-
}(
|
|
2137
|
+
return typeof j == "symbol" || /* @__PURE__ */ function(S) {
|
|
2138
|
+
return !!S && typeof S == "object";
|
|
2139
|
+
}(j) && T.call(j) == "[object Symbol]";
|
|
2140
|
+
}(A))
|
|
2147
2141
|
return NaN;
|
|
2148
|
-
if (
|
|
2149
|
-
var R = typeof
|
|
2150
|
-
|
|
2142
|
+
if (P(A)) {
|
|
2143
|
+
var R = typeof A.valueOf == "function" ? A.valueOf() : A;
|
|
2144
|
+
A = P(R) ? R + "" : R;
|
|
2151
2145
|
}
|
|
2152
|
-
if (typeof
|
|
2153
|
-
return
|
|
2154
|
-
|
|
2155
|
-
var B = h.test(
|
|
2156
|
-
return B || u.test(
|
|
2157
|
-
}
|
|
2158
|
-
r.exports = function(
|
|
2159
|
-
var j,
|
|
2160
|
-
if (typeof
|
|
2146
|
+
if (typeof A != "string")
|
|
2147
|
+
return A === 0 ? A : +A;
|
|
2148
|
+
A = A.replace(s, "");
|
|
2149
|
+
var B = h.test(A);
|
|
2150
|
+
return B || u.test(A) ? y(A.slice(2), B ? 2 : 8) : f.test(A) ? NaN : +A;
|
|
2151
|
+
}
|
|
2152
|
+
r.exports = function(A, R, B) {
|
|
2153
|
+
var j, S, U, H, G, Y, Z = 0, ee = !1, se = !1, me = !0;
|
|
2154
|
+
if (typeof A != "function")
|
|
2161
2155
|
throw new TypeError("Expected a function");
|
|
2162
|
-
function V(
|
|
2163
|
-
var
|
|
2164
|
-
return j =
|
|
2156
|
+
function V(re) {
|
|
2157
|
+
var oe = j, de = S;
|
|
2158
|
+
return j = S = void 0, Z = re, H = A.apply(de, oe);
|
|
2165
2159
|
}
|
|
2166
|
-
function te(
|
|
2167
|
-
var
|
|
2168
|
-
return Y === void 0 ||
|
|
2160
|
+
function te(re) {
|
|
2161
|
+
var oe = re - Y;
|
|
2162
|
+
return Y === void 0 || oe >= R || oe < 0 || se && re - Z >= U;
|
|
2169
2163
|
}
|
|
2170
2164
|
function $() {
|
|
2171
|
-
var
|
|
2172
|
-
if (te(
|
|
2173
|
-
return le(
|
|
2174
|
-
G = setTimeout($, function(
|
|
2175
|
-
var de = R - (
|
|
2176
|
-
return se ?
|
|
2177
|
-
}(
|
|
2165
|
+
var re = L();
|
|
2166
|
+
if (te(re))
|
|
2167
|
+
return le(re);
|
|
2168
|
+
G = setTimeout($, function(oe) {
|
|
2169
|
+
var de = R - (oe - Y);
|
|
2170
|
+
return se ? E(de, U - (oe - Z)) : de;
|
|
2171
|
+
}(re));
|
|
2178
2172
|
}
|
|
2179
|
-
function le(
|
|
2180
|
-
return G = void 0, me && j ? V(
|
|
2173
|
+
function le(re) {
|
|
2174
|
+
return G = void 0, me && j ? V(re) : (j = S = void 0, H);
|
|
2181
2175
|
}
|
|
2182
2176
|
function fe() {
|
|
2183
|
-
var
|
|
2184
|
-
if (j = arguments,
|
|
2177
|
+
var re = L(), oe = te(re);
|
|
2178
|
+
if (j = arguments, S = this, Y = re, oe) {
|
|
2185
2179
|
if (G === void 0)
|
|
2186
2180
|
return function(de) {
|
|
2187
2181
|
return Z = de, G = setTimeout($, R), ee ? V(de) : H;
|
|
@@ -2191,19 +2185,19 @@ var pn = { exports: {} };
|
|
|
2191
2185
|
}
|
|
2192
2186
|
return G === void 0 && (G = setTimeout($, R)), H;
|
|
2193
2187
|
}
|
|
2194
|
-
return R = F(R) || 0,
|
|
2195
|
-
G !== void 0 && clearTimeout(G), Z = 0, j = Y =
|
|
2188
|
+
return R = F(R) || 0, P(B) && (ee = !!B.leading, U = (se = "maxWait" in B) ? b(F(B.maxWait) || 0, R) : U, me = "trailing" in B ? !!B.trailing : me), fe.cancel = function() {
|
|
2189
|
+
G !== void 0 && clearTimeout(G), Z = 0, j = Y = S = G = void 0;
|
|
2196
2190
|
}, fe.flush = function() {
|
|
2197
|
-
return G === void 0 ? H : le(
|
|
2191
|
+
return G === void 0 ? H : le(L());
|
|
2198
2192
|
}, fe;
|
|
2199
2193
|
};
|
|
2200
2194
|
}, 96: (r, a, i) => {
|
|
2201
|
-
var s = "Expected a function", f = NaN, h = "[object Symbol]", u = /^\s+|\s+$/g, y = /^[-+]0x[0-9a-f]+$/i, x = /^0b[01]+$/i, M = /^0o[0-7]+$/i,
|
|
2202
|
-
return
|
|
2195
|
+
var s = "Expected a function", f = NaN, h = "[object Symbol]", u = /^\s+|\s+$/g, y = /^[-+]0x[0-9a-f]+$/i, x = /^0b[01]+$/i, M = /^0o[0-7]+$/i, C = parseInt, T = typeof i.g == "object" && i.g && i.g.Object === Object && i.g, b = typeof self == "object" && self && self.Object === Object && self, E = T || b || Function("return this")(), L = Object.prototype.toString, P = Math.max, F = Math.min, A = function() {
|
|
2196
|
+
return E.Date.now();
|
|
2203
2197
|
};
|
|
2204
2198
|
function R(j) {
|
|
2205
|
-
var
|
|
2206
|
-
return !!j && (
|
|
2199
|
+
var S = typeof j;
|
|
2200
|
+
return !!j && (S == "object" || S == "function");
|
|
2207
2201
|
}
|
|
2208
2202
|
function B(j) {
|
|
2209
2203
|
if (typeof j == "number")
|
|
@@ -2211,25 +2205,25 @@ var pn = { exports: {} };
|
|
|
2211
2205
|
if (function(H) {
|
|
2212
2206
|
return typeof H == "symbol" || /* @__PURE__ */ function(G) {
|
|
2213
2207
|
return !!G && typeof G == "object";
|
|
2214
|
-
}(H) &&
|
|
2208
|
+
}(H) && L.call(H) == h;
|
|
2215
2209
|
}(j))
|
|
2216
2210
|
return f;
|
|
2217
2211
|
if (R(j)) {
|
|
2218
|
-
var
|
|
2219
|
-
j = R(
|
|
2212
|
+
var S = typeof j.valueOf == "function" ? j.valueOf() : j;
|
|
2213
|
+
j = R(S) ? S + "" : S;
|
|
2220
2214
|
}
|
|
2221
2215
|
if (typeof j != "string")
|
|
2222
2216
|
return j === 0 ? j : +j;
|
|
2223
2217
|
j = j.replace(u, "");
|
|
2224
2218
|
var U = x.test(j);
|
|
2225
|
-
return U || M.test(j) ?
|
|
2219
|
+
return U || M.test(j) ? C(j.slice(2), U ? 2 : 8) : y.test(j) ? f : +j;
|
|
2226
2220
|
}
|
|
2227
|
-
r.exports = function(j,
|
|
2221
|
+
r.exports = function(j, S, U) {
|
|
2228
2222
|
var H = !0, G = !0;
|
|
2229
2223
|
if (typeof j != "function")
|
|
2230
2224
|
throw new TypeError(s);
|
|
2231
2225
|
return R(U) && (H = "leading" in U ? !!U.leading : H, G = "trailing" in U ? !!U.trailing : G), function(Y, Z, ee) {
|
|
2232
|
-
var se, me, V, te, $, le, fe = 0,
|
|
2226
|
+
var se, me, V, te, $, le, fe = 0, re = !1, oe = !1, de = !0;
|
|
2233
2227
|
if (typeof Y != "function")
|
|
2234
2228
|
throw new TypeError(s);
|
|
2235
2229
|
function _e(pe) {
|
|
@@ -2238,38 +2232,38 @@ var pn = { exports: {} };
|
|
|
2238
2232
|
}
|
|
2239
2233
|
function Be(pe) {
|
|
2240
2234
|
var ve = pe - le;
|
|
2241
|
-
return le === void 0 || ve >= Z || ve < 0 ||
|
|
2235
|
+
return le === void 0 || ve >= Z || ve < 0 || oe && pe - fe >= V;
|
|
2242
2236
|
}
|
|
2243
2237
|
function we() {
|
|
2244
|
-
var pe =
|
|
2238
|
+
var pe = A();
|
|
2245
2239
|
if (Be(pe))
|
|
2246
2240
|
return qe(pe);
|
|
2247
2241
|
$ = setTimeout(we, function(ve) {
|
|
2248
2242
|
var Pe = Z - (ve - le);
|
|
2249
|
-
return
|
|
2243
|
+
return oe ? F(Pe, V - (ve - fe)) : Pe;
|
|
2250
2244
|
}(pe));
|
|
2251
2245
|
}
|
|
2252
2246
|
function qe(pe) {
|
|
2253
2247
|
return $ = void 0, de && se ? _e(pe) : (se = me = void 0, te);
|
|
2254
2248
|
}
|
|
2255
2249
|
function Me() {
|
|
2256
|
-
var pe =
|
|
2250
|
+
var pe = A(), ve = Be(pe);
|
|
2257
2251
|
if (se = arguments, me = this, le = pe, ve) {
|
|
2258
2252
|
if ($ === void 0)
|
|
2259
2253
|
return function(Pe) {
|
|
2260
|
-
return fe = Pe, $ = setTimeout(we, Z),
|
|
2254
|
+
return fe = Pe, $ = setTimeout(we, Z), re ? _e(Pe) : te;
|
|
2261
2255
|
}(le);
|
|
2262
|
-
if (
|
|
2256
|
+
if (oe)
|
|
2263
2257
|
return $ = setTimeout(we, Z), _e(le);
|
|
2264
2258
|
}
|
|
2265
2259
|
return $ === void 0 && ($ = setTimeout(we, Z)), te;
|
|
2266
2260
|
}
|
|
2267
|
-
return Z = B(Z) || 0, R(ee) && (
|
|
2261
|
+
return Z = B(Z) || 0, R(ee) && (re = !!ee.leading, V = (oe = "maxWait" in ee) ? P(B(ee.maxWait) || 0, Z) : V, de = "trailing" in ee ? !!ee.trailing : de), Me.cancel = function() {
|
|
2268
2262
|
$ !== void 0 && clearTimeout($), fe = 0, se = le = me = $ = void 0;
|
|
2269
2263
|
}, Me.flush = function() {
|
|
2270
|
-
return $ === void 0 ? te : qe(
|
|
2264
|
+
return $ === void 0 ? te : qe(A());
|
|
2271
2265
|
}, Me;
|
|
2272
|
-
}(j,
|
|
2266
|
+
}(j, S, { leading: H, maxWait: S, trailing: G });
|
|
2273
2267
|
};
|
|
2274
2268
|
}, 703: (r, a, i) => {
|
|
2275
2269
|
var s = i(414);
|
|
@@ -2278,10 +2272,10 @@ var pn = { exports: {} };
|
|
|
2278
2272
|
function h() {
|
|
2279
2273
|
}
|
|
2280
2274
|
h.resetWarningCache = f, r.exports = function() {
|
|
2281
|
-
function u(M,
|
|
2282
|
-
if (
|
|
2283
|
-
var
|
|
2284
|
-
throw
|
|
2275
|
+
function u(M, C, T, b, E, L) {
|
|
2276
|
+
if (L !== s) {
|
|
2277
|
+
var P = new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");
|
|
2278
|
+
throw P.name = "Invariant Violation", P;
|
|
2285
2279
|
}
|
|
2286
2280
|
}
|
|
2287
2281
|
function y() {
|
|
@@ -2323,10 +2317,10 @@ var pn = { exports: {} };
|
|
|
2323
2317
|
};
|
|
2324
2318
|
var o = {};
|
|
2325
2319
|
(() => {
|
|
2326
|
-
n.r(o), n.d(o, { LazyLoadComponent: () =>
|
|
2327
|
-
const r =
|
|
2320
|
+
n.r(o), n.d(o, { LazyLoadComponent: () => mt, LazyLoadImage: () => bn, trackWindowScroll: () => le });
|
|
2321
|
+
const r = Ee;
|
|
2328
2322
|
var a = n.n(r), i = n(697);
|
|
2329
|
-
const s =
|
|
2323
|
+
const s = Nn;
|
|
2330
2324
|
var f = n.n(s);
|
|
2331
2325
|
function h() {
|
|
2332
2326
|
return typeof window < "u" && "IntersectionObserver" in window && "isIntersecting" in window.IntersectionObserverEntry.prototype;
|
|
@@ -2349,15 +2343,15 @@ var pn = { exports: {} };
|
|
|
2349
2343
|
return m;
|
|
2350
2344
|
}
|
|
2351
2345
|
function x(g, c, m) {
|
|
2352
|
-
return (c =
|
|
2346
|
+
return (c = C(c)) in g ? Object.defineProperty(g, c, { value: m, enumerable: !0, configurable: !0, writable: !0 }) : g[c] = m, g;
|
|
2353
2347
|
}
|
|
2354
2348
|
function M(g, c) {
|
|
2355
2349
|
for (var m = 0; m < c.length; m++) {
|
|
2356
2350
|
var v = c[m];
|
|
2357
|
-
v.enumerable = v.enumerable || !1, v.configurable = !0, "value" in v && (v.writable = !0), Object.defineProperty(g,
|
|
2351
|
+
v.enumerable = v.enumerable || !1, v.configurable = !0, "value" in v && (v.writable = !0), Object.defineProperty(g, C(v.key), v);
|
|
2358
2352
|
}
|
|
2359
2353
|
}
|
|
2360
|
-
function
|
|
2354
|
+
function C(g) {
|
|
2361
2355
|
var c = function(m, v) {
|
|
2362
2356
|
if (u(m) !== "object" || m === null)
|
|
2363
2357
|
return m;
|
|
@@ -2372,25 +2366,25 @@ var pn = { exports: {} };
|
|
|
2372
2366
|
}(g);
|
|
2373
2367
|
return u(c) === "symbol" ? c : String(c);
|
|
2374
2368
|
}
|
|
2375
|
-
function
|
|
2376
|
-
return
|
|
2369
|
+
function T(g, c) {
|
|
2370
|
+
return T = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(m, v) {
|
|
2377
2371
|
return m.__proto__ = v, m;
|
|
2378
|
-
},
|
|
2372
|
+
}, T(g, c);
|
|
2379
2373
|
}
|
|
2380
|
-
function
|
|
2381
|
-
return
|
|
2374
|
+
function b(g) {
|
|
2375
|
+
return b = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(c) {
|
|
2382
2376
|
return c.__proto__ || Object.getPrototypeOf(c);
|
|
2383
|
-
},
|
|
2377
|
+
}, b(g);
|
|
2384
2378
|
}
|
|
2385
|
-
var
|
|
2379
|
+
var E = function(g) {
|
|
2386
2380
|
g.forEach(function(c) {
|
|
2387
2381
|
c.isIntersecting && c.target.onVisible();
|
|
2388
2382
|
});
|
|
2389
|
-
},
|
|
2383
|
+
}, L = {}, P = function(g) {
|
|
2390
2384
|
(function(l, p) {
|
|
2391
2385
|
if (typeof p != "function" && p !== null)
|
|
2392
2386
|
throw new TypeError("Super expression must either be null or a function");
|
|
2393
|
-
l.prototype = Object.create(p && p.prototype, { constructor: { value: l, writable: !0, configurable: !0 } }), Object.defineProperty(l, "prototype", { writable: !1 }), p &&
|
|
2387
|
+
l.prototype = Object.create(p && p.prototype, { constructor: { value: l, writable: !0, configurable: !0 } }), Object.defineProperty(l, "prototype", { writable: !1 }), p && T(l, p);
|
|
2394
2388
|
})(q, g);
|
|
2395
2389
|
var c, m, v, k, _ = (v = q, k = function() {
|
|
2396
2390
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
@@ -2404,13 +2398,13 @@ var pn = { exports: {} };
|
|
|
2404
2398
|
return !1;
|
|
2405
2399
|
}
|
|
2406
2400
|
}(), function() {
|
|
2407
|
-
var l, p =
|
|
2401
|
+
var l, p = b(v);
|
|
2408
2402
|
if (k) {
|
|
2409
|
-
var
|
|
2410
|
-
l = Reflect.construct(p, arguments,
|
|
2403
|
+
var I = b(this).constructor;
|
|
2404
|
+
l = Reflect.construct(p, arguments, I);
|
|
2411
2405
|
} else
|
|
2412
2406
|
l = p.apply(this, arguments);
|
|
2413
|
-
return function(
|
|
2407
|
+
return function(O, w) {
|
|
2414
2408
|
if (w && (u(w) === "object" || typeof w == "function"))
|
|
2415
2409
|
return w;
|
|
2416
2410
|
if (w !== void 0)
|
|
@@ -2419,19 +2413,19 @@ var pn = { exports: {} };
|
|
|
2419
2413
|
if (D === void 0)
|
|
2420
2414
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
2421
2415
|
return D;
|
|
2422
|
-
}(
|
|
2416
|
+
}(O);
|
|
2423
2417
|
}(this, l);
|
|
2424
2418
|
});
|
|
2425
2419
|
function q(l) {
|
|
2426
2420
|
var p;
|
|
2427
|
-
if (function(
|
|
2428
|
-
if (!(
|
|
2421
|
+
if (function(O, w) {
|
|
2422
|
+
if (!(O instanceof w))
|
|
2429
2423
|
throw new TypeError("Cannot call a class as a function");
|
|
2430
2424
|
}(this, q), (p = _.call(this, l)).supportsObserver = !l.scrollPosition && l.useIntersectionObserver && h(), p.supportsObserver) {
|
|
2431
|
-
var
|
|
2432
|
-
p.observer = function(
|
|
2433
|
-
return
|
|
2434
|
-
}(
|
|
2425
|
+
var I = l.threshold;
|
|
2426
|
+
p.observer = function(O) {
|
|
2427
|
+
return L[O] = L[O] || new IntersectionObserver(E, { rootMargin: O + "px" }), L[O];
|
|
2428
|
+
}(I);
|
|
2435
2429
|
}
|
|
2436
2430
|
return p;
|
|
2437
2431
|
}
|
|
@@ -2442,17 +2436,17 @@ var pn = { exports: {} };
|
|
|
2442
2436
|
} }, { key: "componentDidUpdate", value: function() {
|
|
2443
2437
|
this.supportsObserver || this.updateVisibility();
|
|
2444
2438
|
} }, { key: "getPlaceholderBoundingBox", value: function() {
|
|
2445
|
-
var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.props.scrollPosition, p = this.placeholder.getBoundingClientRect(),
|
|
2446
|
-
return { bottom: l.y + p.bottom + w, left: l.x + p.left +
|
|
2439
|
+
var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.props.scrollPosition, p = this.placeholder.getBoundingClientRect(), I = f().findDOMNode(this.placeholder).style, O = parseInt(I.getPropertyValue("margin-left"), 10) || 0, w = parseInt(I.getPropertyValue("margin-top"), 10) || 0;
|
|
2440
|
+
return { bottom: l.y + p.bottom + w, left: l.x + p.left + O, right: l.x + p.right + O, top: l.y + p.top + w };
|
|
2447
2441
|
} }, { key: "isPlaceholderInViewport", value: function() {
|
|
2448
2442
|
if (typeof window > "u" || !this.placeholder)
|
|
2449
2443
|
return !1;
|
|
2450
|
-
var l = this.props, p = l.scrollPosition,
|
|
2451
|
-
return K -
|
|
2444
|
+
var l = this.props, p = l.scrollPosition, I = l.threshold, O = this.getPlaceholderBoundingBox(p), w = p.y + window.innerHeight, D = p.x, z = p.x + window.innerWidth, K = p.y;
|
|
2445
|
+
return K - I <= O.bottom && w + I >= O.top && D - I <= O.right && z + I >= O.left;
|
|
2452
2446
|
} }, { key: "updateVisibility", value: function() {
|
|
2453
2447
|
this.isPlaceholderInViewport() && this.props.onVisible();
|
|
2454
2448
|
} }, { key: "render", value: function() {
|
|
2455
|
-
var l = this, p = this.props,
|
|
2449
|
+
var l = this, p = this.props, I = p.className, O = p.height, w = p.placeholder, D = p.style, z = p.width;
|
|
2456
2450
|
if (w && typeof w.type != "function")
|
|
2457
2451
|
return a().cloneElement(w, { ref: function(W) {
|
|
2458
2452
|
return l.placeholder = W;
|
|
@@ -2468,14 +2462,14 @@ var pn = { exports: {} };
|
|
|
2468
2462
|
}
|
|
2469
2463
|
return W;
|
|
2470
2464
|
}({ display: "inline-block" }, D);
|
|
2471
|
-
return z !== void 0 && (K.width = z),
|
|
2465
|
+
return z !== void 0 && (K.width = z), O !== void 0 && (K.height = O), a().createElement("span", { className: I, ref: function(W) {
|
|
2472
2466
|
return l.placeholder = W;
|
|
2473
2467
|
}, style: K }, w);
|
|
2474
2468
|
} }], m && M(c.prototype, m), Object.defineProperty(c, "prototype", { writable: !1 }), q;
|
|
2475
2469
|
}(a().Component);
|
|
2476
|
-
|
|
2477
|
-
const F =
|
|
2478
|
-
var
|
|
2470
|
+
P.propTypes = { onVisible: i.PropTypes.func.isRequired, className: i.PropTypes.string, height: i.PropTypes.oneOfType([i.PropTypes.number, i.PropTypes.string]), placeholder: i.PropTypes.element, threshold: i.PropTypes.number, useIntersectionObserver: i.PropTypes.bool, scrollPosition: i.PropTypes.shape({ x: i.PropTypes.number.isRequired, y: i.PropTypes.number.isRequired }), width: i.PropTypes.oneOfType([i.PropTypes.number, i.PropTypes.string]) }, P.defaultProps = { className: "", placeholder: null, threshold: 100, useIntersectionObserver: !0 };
|
|
2471
|
+
const F = P;
|
|
2472
|
+
var A = n(296), R = n.n(A), B = n(96), j = n.n(B), S = function(g) {
|
|
2479
2473
|
var c = getComputedStyle(g, null);
|
|
2480
2474
|
return c.getPropertyValue("overflow") + c.getPropertyValue("overflow-y") + c.getPropertyValue("overflow-x");
|
|
2481
2475
|
};
|
|
@@ -2483,7 +2477,7 @@ var pn = { exports: {} };
|
|
|
2483
2477
|
if (!(g instanceof HTMLElement))
|
|
2484
2478
|
return window;
|
|
2485
2479
|
for (var c = g; c && c instanceof HTMLElement; ) {
|
|
2486
|
-
if (/(scroll|auto)/.test(
|
|
2480
|
+
if (/(scroll|auto)/.test(S(c)))
|
|
2487
2481
|
return c;
|
|
2488
2482
|
c = c.parentNode;
|
|
2489
2483
|
}
|
|
@@ -2554,10 +2548,10 @@ var pn = { exports: {} };
|
|
|
2554
2548
|
};
|
|
2555
2549
|
const le = function(g) {
|
|
2556
2550
|
var c = function(m) {
|
|
2557
|
-
(function(
|
|
2558
|
-
if (typeof
|
|
2551
|
+
(function(I, O) {
|
|
2552
|
+
if (typeof O != "function" && O !== null)
|
|
2559
2553
|
throw new TypeError("Super expression must either be null or a function");
|
|
2560
|
-
|
|
2554
|
+
I.prototype = Object.create(O && O.prototype, { constructor: { value: I, writable: !0, configurable: !0 } }), Object.defineProperty(I, "prototype", { writable: !1 }), O && ee(I, O);
|
|
2561
2555
|
})(p, m);
|
|
2562
2556
|
var v, k, _, q, l = (_ = p, q = function() {
|
|
2563
2557
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
@@ -2571,23 +2565,23 @@ var pn = { exports: {} };
|
|
|
2571
2565
|
return !1;
|
|
2572
2566
|
}
|
|
2573
2567
|
}(), function() {
|
|
2574
|
-
var
|
|
2568
|
+
var I, O = V(_);
|
|
2575
2569
|
if (q) {
|
|
2576
2570
|
var w = V(this).constructor;
|
|
2577
|
-
|
|
2571
|
+
I = Reflect.construct(O, arguments, w);
|
|
2578
2572
|
} else
|
|
2579
|
-
|
|
2580
|
-
return se(this,
|
|
2573
|
+
I = O.apply(this, arguments);
|
|
2574
|
+
return se(this, I);
|
|
2581
2575
|
});
|
|
2582
|
-
function p(
|
|
2583
|
-
var
|
|
2576
|
+
function p(I) {
|
|
2577
|
+
var O;
|
|
2584
2578
|
if (function(D, z) {
|
|
2585
2579
|
if (!(D instanceof z))
|
|
2586
2580
|
throw new TypeError("Cannot call a class as a function");
|
|
2587
|
-
}(this, p), (
|
|
2588
|
-
return se(
|
|
2589
|
-
var w =
|
|
2590
|
-
return
|
|
2581
|
+
}(this, p), (O = l.call(this, I)).useIntersectionObserver = I.useIntersectionObserver && h(), O.useIntersectionObserver)
|
|
2582
|
+
return se(O);
|
|
2583
|
+
var w = O.onChangeScroll.bind(me(O));
|
|
2584
|
+
return I.delayMethod === "debounce" ? O.delayedScroll = R()(w, I.delayTime) : I.delayMethod === "throttle" && (O.delayedScroll = j()(w, I.delayTime)), O.state = { scrollPosition: { x: te(), y: $() } }, O.baseComponentRef = a().createRef(), O;
|
|
2591
2585
|
}
|
|
2592
2586
|
return v = p, (k = [{ key: "componentDidMount", value: function() {
|
|
2593
2587
|
this.addListeners();
|
|
@@ -2602,16 +2596,16 @@ var pn = { exports: {} };
|
|
|
2602
2596
|
} }, { key: "onChangeScroll", value: function() {
|
|
2603
2597
|
this.useIntersectionObserver || this.setState({ scrollPosition: { x: te(), y: $() } });
|
|
2604
2598
|
} }, { key: "render", value: function() {
|
|
2605
|
-
var
|
|
2599
|
+
var I = this.props, O = (I.delayMethod, I.delayTime, function(D, z) {
|
|
2606
2600
|
if (D == null)
|
|
2607
2601
|
return {};
|
|
2608
2602
|
var K, W, ce = function(he, ke) {
|
|
2609
2603
|
if (he == null)
|
|
2610
2604
|
return {};
|
|
2611
|
-
var Re, $e,
|
|
2612
|
-
for ($e = 0; $e <
|
|
2613
|
-
Re =
|
|
2614
|
-
return
|
|
2605
|
+
var Re, $e, Pt = {}, Ot = Object.keys(he);
|
|
2606
|
+
for ($e = 0; $e < Ot.length; $e++)
|
|
2607
|
+
Re = Ot[$e], ke.indexOf(Re) >= 0 || (Pt[Re] = he[Re]);
|
|
2608
|
+
return Pt;
|
|
2615
2609
|
}(D, z);
|
|
2616
2610
|
if (Object.getOwnPropertySymbols) {
|
|
2617
2611
|
var J = Object.getOwnPropertySymbols(D);
|
|
@@ -2619,8 +2613,8 @@ var pn = { exports: {} };
|
|
|
2619
2613
|
K = J[W], z.indexOf(K) >= 0 || Object.prototype.propertyIsEnumerable.call(D, K) && (ce[K] = D[K]);
|
|
2620
2614
|
}
|
|
2621
2615
|
return ce;
|
|
2622
|
-
}(
|
|
2623
|
-
return a().createElement(g, Y({ forwardRef: this.baseComponentRef, scrollPosition: w },
|
|
2616
|
+
}(I, G)), w = this.useIntersectionObserver ? null : this.state.scrollPosition;
|
|
2617
|
+
return a().createElement(g, Y({ forwardRef: this.baseComponentRef, scrollPosition: w }, O));
|
|
2624
2618
|
} }]) && Z(v.prototype, k), Object.defineProperty(v, "prototype", { writable: !1 }), p;
|
|
2625
2619
|
}(a().Component);
|
|
2626
2620
|
return c.propTypes = { delayMethod: i.PropTypes.oneOf(["debounce", "throttle"]), delayTime: i.PropTypes.number, useIntersectionObserver: i.PropTypes.bool }, c.defaultProps = { delayMethod: "throttle", delayTime: 300, useIntersectionObserver: !0 }, c;
|
|
@@ -2632,7 +2626,7 @@ var pn = { exports: {} };
|
|
|
2632
2626
|
return c && typeof Symbol == "function" && c.constructor === Symbol && c !== Symbol.prototype ? "symbol" : typeof c;
|
|
2633
2627
|
}, fe(g);
|
|
2634
2628
|
}
|
|
2635
|
-
function
|
|
2629
|
+
function re(g, c) {
|
|
2636
2630
|
for (var m = 0; m < c.length; m++) {
|
|
2637
2631
|
var v = c[m];
|
|
2638
2632
|
v.enumerable = v.enumerable || !1, v.configurable = !0, "value" in v && (v.writable = !0), Object.defineProperty(g, (k = function(_, q) {
|
|
@@ -2650,10 +2644,10 @@ var pn = { exports: {} };
|
|
|
2650
2644
|
}
|
|
2651
2645
|
var k;
|
|
2652
2646
|
}
|
|
2653
|
-
function
|
|
2654
|
-
return
|
|
2647
|
+
function oe(g, c) {
|
|
2648
|
+
return oe = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(m, v) {
|
|
2655
2649
|
return m.__proto__ = v, m;
|
|
2656
|
-
},
|
|
2650
|
+
}, oe(g, c);
|
|
2657
2651
|
}
|
|
2658
2652
|
function de(g) {
|
|
2659
2653
|
return de = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(c) {
|
|
@@ -2664,7 +2658,7 @@ var pn = { exports: {} };
|
|
|
2664
2658
|
(function(l, p) {
|
|
2665
2659
|
if (typeof p != "function" && p !== null)
|
|
2666
2660
|
throw new TypeError("Super expression must either be null or a function");
|
|
2667
|
-
l.prototype = Object.create(p && p.prototype, { constructor: { value: l, writable: !0, configurable: !0 } }), Object.defineProperty(l, "prototype", { writable: !1 }), p &&
|
|
2661
|
+
l.prototype = Object.create(p && p.prototype, { constructor: { value: l, writable: !0, configurable: !0 } }), Object.defineProperty(l, "prototype", { writable: !1 }), p && oe(l, p);
|
|
2668
2662
|
})(q, g);
|
|
2669
2663
|
var c, m, v, k, _ = (v = q, k = function() {
|
|
2670
2664
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
@@ -2680,11 +2674,11 @@ var pn = { exports: {} };
|
|
|
2680
2674
|
}(), function() {
|
|
2681
2675
|
var l, p = de(v);
|
|
2682
2676
|
if (k) {
|
|
2683
|
-
var
|
|
2684
|
-
l = Reflect.construct(p, arguments,
|
|
2677
|
+
var I = de(this).constructor;
|
|
2678
|
+
l = Reflect.construct(p, arguments, I);
|
|
2685
2679
|
} else
|
|
2686
2680
|
l = p.apply(this, arguments);
|
|
2687
|
-
return function(
|
|
2681
|
+
return function(O, w) {
|
|
2688
2682
|
if (w && (fe(w) === "object" || typeof w == "function"))
|
|
2689
2683
|
return w;
|
|
2690
2684
|
if (w !== void 0)
|
|
@@ -2693,18 +2687,18 @@ var pn = { exports: {} };
|
|
|
2693
2687
|
if (D === void 0)
|
|
2694
2688
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
2695
2689
|
return D;
|
|
2696
|
-
}(
|
|
2690
|
+
}(O);
|
|
2697
2691
|
}(this, l);
|
|
2698
2692
|
});
|
|
2699
2693
|
function q(l) {
|
|
2700
|
-
return function(p,
|
|
2701
|
-
if (!(p instanceof
|
|
2694
|
+
return function(p, I) {
|
|
2695
|
+
if (!(p instanceof I))
|
|
2702
2696
|
throw new TypeError("Cannot call a class as a function");
|
|
2703
2697
|
}(this, q), _.call(this, l);
|
|
2704
2698
|
}
|
|
2705
2699
|
return c = q, (m = [{ key: "render", value: function() {
|
|
2706
2700
|
return a().createElement(F, this.props);
|
|
2707
|
-
} }]) &&
|
|
2701
|
+
} }]) && re(c.prototype, m), Object.defineProperty(c, "prototype", { writable: !1 }), q;
|
|
2708
2702
|
}(a().Component);
|
|
2709
2703
|
const Be = le(_e);
|
|
2710
2704
|
function we(g) {
|
|
@@ -2767,16 +2761,16 @@ var pn = { exports: {} };
|
|
|
2767
2761
|
}(), function() {
|
|
2768
2762
|
var l, p = ve(v);
|
|
2769
2763
|
if (k) {
|
|
2770
|
-
var
|
|
2771
|
-
l = Reflect.construct(p, arguments,
|
|
2764
|
+
var I = ve(this).constructor;
|
|
2765
|
+
l = Reflect.construct(p, arguments, I);
|
|
2772
2766
|
} else
|
|
2773
2767
|
l = p.apply(this, arguments);
|
|
2774
|
-
return function(
|
|
2768
|
+
return function(O, w) {
|
|
2775
2769
|
if (w && (we(w) === "object" || typeof w == "function"))
|
|
2776
2770
|
return w;
|
|
2777
2771
|
if (w !== void 0)
|
|
2778
2772
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
2779
|
-
return pe(
|
|
2773
|
+
return pe(O);
|
|
2780
2774
|
}(this, l);
|
|
2781
2775
|
});
|
|
2782
2776
|
function q(l) {
|
|
@@ -2785,8 +2779,8 @@ var pn = { exports: {} };
|
|
|
2785
2779
|
if (!(z instanceof K))
|
|
2786
2780
|
throw new TypeError("Cannot call a class as a function");
|
|
2787
2781
|
})(this, q), p = _.call(this, l);
|
|
2788
|
-
var
|
|
2789
|
-
return p.state = { visible: D }, D && (
|
|
2782
|
+
var I = l.afterLoad, O = l.beforeLoad, w = l.scrollPosition, D = l.visibleByDefault;
|
|
2783
|
+
return p.state = { visible: D }, D && (O(), I()), p.onVisible = p.onVisible.bind(pe(p)), p.isScrollTracked = !!(w && Number.isFinite(w.x) && w.x >= 0 && Number.isFinite(w.y) && w.y >= 0), p;
|
|
2790
2784
|
}
|
|
2791
2785
|
return c = q, (m = [{ key: "componentDidUpdate", value: function(l, p) {
|
|
2792
2786
|
p.visible !== this.state.visible && this.props.afterLoad();
|
|
@@ -2795,8 +2789,8 @@ var pn = { exports: {} };
|
|
|
2795
2789
|
} }, { key: "render", value: function() {
|
|
2796
2790
|
if (this.state.visible)
|
|
2797
2791
|
return this.props.children;
|
|
2798
|
-
var l = this.props, p = l.className,
|
|
2799
|
-
return this.isScrollTracked || ce && h() ? a().createElement(F, { className: p, height: w, onVisible: this.onVisible, placeholder: D, scrollPosition: z, style: K, threshold: W, useIntersectionObserver: ce, width: J }) : a().createElement(Be, { className: p, delayMethod:
|
|
2792
|
+
var l = this.props, p = l.className, I = l.delayMethod, O = l.delayTime, w = l.height, D = l.placeholder, z = l.scrollPosition, K = l.style, W = l.threshold, ce = l.useIntersectionObserver, J = l.width;
|
|
2793
|
+
return this.isScrollTracked || ce && h() ? a().createElement(F, { className: p, height: w, onVisible: this.onVisible, placeholder: D, scrollPosition: z, style: K, threshold: W, useIntersectionObserver: ce, width: J }) : a().createElement(Be, { className: p, delayMethod: I, delayTime: O, height: w, onVisible: this.onVisible, placeholder: D, style: K, threshold: W, width: J });
|
|
2800
2794
|
} }]) && qe(c.prototype, m), Object.defineProperty(c, "prototype", { writable: !1 }), q;
|
|
2801
2795
|
}(a().Component);
|
|
2802
2796
|
Pe.propTypes = { afterLoad: i.PropTypes.func, beforeLoad: i.PropTypes.func, useIntersectionObserver: i.PropTypes.bool, visibleByDefault: i.PropTypes.bool }, Pe.defaultProps = { afterLoad: function() {
|
|
@@ -2804,7 +2798,7 @@ var pn = { exports: {} };
|
|
|
2804
2798
|
}, beforeLoad: function() {
|
|
2805
2799
|
return {};
|
|
2806
2800
|
}, useIntersectionObserver: !0, visibleByDefault: !1 };
|
|
2807
|
-
const
|
|
2801
|
+
const mt = Pe;
|
|
2808
2802
|
function Ae(g) {
|
|
2809
2803
|
return Ae = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(c) {
|
|
2810
2804
|
return typeof c;
|
|
@@ -2812,8 +2806,8 @@ var pn = { exports: {} };
|
|
|
2812
2806
|
return c && typeof Symbol == "function" && c.constructor === Symbol && c !== Symbol.prototype ? "symbol" : typeof c;
|
|
2813
2807
|
}, Ae(g);
|
|
2814
2808
|
}
|
|
2815
|
-
var
|
|
2816
|
-
function
|
|
2809
|
+
var gn = ["afterLoad", "beforeLoad", "delayMethod", "delayTime", "effect", "placeholder", "placeholderSrc", "scrollPosition", "threshold", "useIntersectionObserver", "visibleByDefault", "wrapperClassName", "wrapperProps"];
|
|
2810
|
+
function vt(g, c) {
|
|
2817
2811
|
var m = Object.keys(g);
|
|
2818
2812
|
if (Object.getOwnPropertySymbols) {
|
|
2819
2813
|
var v = Object.getOwnPropertySymbols(g);
|
|
@@ -2823,19 +2817,19 @@ var pn = { exports: {} };
|
|
|
2823
2817
|
}
|
|
2824
2818
|
return m;
|
|
2825
2819
|
}
|
|
2826
|
-
function
|
|
2820
|
+
function bt(g) {
|
|
2827
2821
|
for (var c = 1; c < arguments.length; c++) {
|
|
2828
2822
|
var m = arguments[c] != null ? arguments[c] : {};
|
|
2829
|
-
c % 2 ?
|
|
2830
|
-
|
|
2831
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(g, Object.getOwnPropertyDescriptors(m)) :
|
|
2823
|
+
c % 2 ? vt(Object(m), !0).forEach(function(v) {
|
|
2824
|
+
mn(g, v, m[v]);
|
|
2825
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(g, Object.getOwnPropertyDescriptors(m)) : vt(Object(m)).forEach(function(v) {
|
|
2832
2826
|
Object.defineProperty(g, v, Object.getOwnPropertyDescriptor(m, v));
|
|
2833
2827
|
});
|
|
2834
2828
|
}
|
|
2835
2829
|
return g;
|
|
2836
2830
|
}
|
|
2837
|
-
function
|
|
2838
|
-
return (c =
|
|
2831
|
+
function mn(g, c, m) {
|
|
2832
|
+
return (c = wt(c)) in g ? Object.defineProperty(g, c, { value: m, enumerable: !0, configurable: !0, writable: !0 }) : g[c] = m, g;
|
|
2839
2833
|
}
|
|
2840
2834
|
function Fe() {
|
|
2841
2835
|
return Fe = Object.assign ? Object.assign.bind() : function(g) {
|
|
@@ -2847,13 +2841,13 @@ var pn = { exports: {} };
|
|
|
2847
2841
|
return g;
|
|
2848
2842
|
}, Fe.apply(this, arguments);
|
|
2849
2843
|
}
|
|
2850
|
-
function
|
|
2844
|
+
function vn(g, c) {
|
|
2851
2845
|
for (var m = 0; m < c.length; m++) {
|
|
2852
2846
|
var v = c[m];
|
|
2853
|
-
v.enumerable = v.enumerable || !1, v.configurable = !0, "value" in v && (v.writable = !0), Object.defineProperty(g,
|
|
2847
|
+
v.enumerable = v.enumerable || !1, v.configurable = !0, "value" in v && (v.writable = !0), Object.defineProperty(g, wt(v.key), v);
|
|
2854
2848
|
}
|
|
2855
2849
|
}
|
|
2856
|
-
function
|
|
2850
|
+
function wt(g) {
|
|
2857
2851
|
var c = function(m, v) {
|
|
2858
2852
|
if (Ae(m) !== "object" || m === null)
|
|
2859
2853
|
return m;
|
|
@@ -2898,11 +2892,11 @@ var pn = { exports: {} };
|
|
|
2898
2892
|
}(), function() {
|
|
2899
2893
|
var l, p = Ue(v);
|
|
2900
2894
|
if (k) {
|
|
2901
|
-
var
|
|
2902
|
-
l = Reflect.construct(p, arguments,
|
|
2895
|
+
var I = Ue(this).constructor;
|
|
2896
|
+
l = Reflect.construct(p, arguments, I);
|
|
2903
2897
|
} else
|
|
2904
2898
|
l = p.apply(this, arguments);
|
|
2905
|
-
return function(
|
|
2899
|
+
return function(O, w) {
|
|
2906
2900
|
if (w && (Ae(w) === "object" || typeof w == "function"))
|
|
2907
2901
|
return w;
|
|
2908
2902
|
if (w !== void 0)
|
|
@@ -2911,13 +2905,13 @@ var pn = { exports: {} };
|
|
|
2911
2905
|
if (D === void 0)
|
|
2912
2906
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
2913
2907
|
return D;
|
|
2914
|
-
}(
|
|
2908
|
+
}(O);
|
|
2915
2909
|
}(this, l);
|
|
2916
2910
|
});
|
|
2917
2911
|
function q(l) {
|
|
2918
2912
|
var p;
|
|
2919
|
-
return function(
|
|
2920
|
-
if (!(
|
|
2913
|
+
return function(I, O) {
|
|
2914
|
+
if (!(I instanceof O))
|
|
2921
2915
|
throw new TypeError("Cannot call a class as a function");
|
|
2922
2916
|
}(this, q), (p = _.call(this, l)).state = { loaded: !1 }, p;
|
|
2923
2917
|
}
|
|
@@ -2927,8 +2921,8 @@ var pn = { exports: {} };
|
|
|
2927
2921
|
l.props.onLoad(p), l.props.afterLoad(), l.setState({ loaded: !0 });
|
|
2928
2922
|
};
|
|
2929
2923
|
} }, { key: "getImg", value: function() {
|
|
2930
|
-
var l = this.props, p = (l.afterLoad, l.beforeLoad, l.delayMethod, l.delayTime, l.effect, l.placeholder, l.placeholderSrc, l.scrollPosition, l.threshold, l.useIntersectionObserver, l.visibleByDefault, l.wrapperClassName, l.wrapperProps, function(
|
|
2931
|
-
if (
|
|
2924
|
+
var l = this.props, p = (l.afterLoad, l.beforeLoad, l.delayMethod, l.delayTime, l.effect, l.placeholder, l.placeholderSrc, l.scrollPosition, l.threshold, l.useIntersectionObserver, l.visibleByDefault, l.wrapperClassName, l.wrapperProps, function(I, O) {
|
|
2925
|
+
if (I == null)
|
|
2932
2926
|
return {};
|
|
2933
2927
|
var w, D, z = function(W, ce) {
|
|
2934
2928
|
if (W == null)
|
|
@@ -2937,25 +2931,25 @@ var pn = { exports: {} };
|
|
|
2937
2931
|
for (he = 0; he < Re.length; he++)
|
|
2938
2932
|
J = Re[he], ce.indexOf(J) >= 0 || (ke[J] = W[J]);
|
|
2939
2933
|
return ke;
|
|
2940
|
-
}(
|
|
2934
|
+
}(I, O);
|
|
2941
2935
|
if (Object.getOwnPropertySymbols) {
|
|
2942
|
-
var K = Object.getOwnPropertySymbols(
|
|
2936
|
+
var K = Object.getOwnPropertySymbols(I);
|
|
2943
2937
|
for (D = 0; D < K.length; D++)
|
|
2944
|
-
w = K[D],
|
|
2938
|
+
w = K[D], O.indexOf(w) >= 0 || Object.prototype.propertyIsEnumerable.call(I, w) && (z[w] = I[w]);
|
|
2945
2939
|
}
|
|
2946
2940
|
return z;
|
|
2947
|
-
}(l,
|
|
2941
|
+
}(l, gn));
|
|
2948
2942
|
return a().createElement("img", Fe({}, p, { onLoad: this.onImageLoad() }));
|
|
2949
2943
|
} }, { key: "getLazyLoadImage", value: function() {
|
|
2950
|
-
var l = this.props, p = l.beforeLoad,
|
|
2951
|
-
return a().createElement(
|
|
2944
|
+
var l = this.props, p = l.beforeLoad, I = l.className, O = l.delayMethod, w = l.delayTime, D = l.height, z = l.placeholder, K = l.scrollPosition, W = l.style, ce = l.threshold, J = l.useIntersectionObserver, he = l.visibleByDefault, ke = l.width;
|
|
2945
|
+
return a().createElement(mt, { beforeLoad: p, className: I, delayMethod: O, delayTime: w, height: D, placeholder: z, scrollPosition: K, style: W, threshold: ce, useIntersectionObserver: J, visibleByDefault: he, width: ke }, this.getImg());
|
|
2952
2946
|
} }, { key: "getWrappedLazyLoadImage", value: function(l) {
|
|
2953
|
-
var p = this.props,
|
|
2954
|
-
return a().createElement("span", Fe({ className: z + " lazy-load-image-background " +
|
|
2947
|
+
var p = this.props, I = p.effect, O = p.height, w = p.placeholderSrc, D = p.width, z = p.wrapperClassName, K = p.wrapperProps, W = this.state.loaded, ce = W ? " lazy-load-image-loaded" : "", J = W || !w ? {} : { backgroundImage: "url(".concat(w, ")"), backgroundSize: "100% 100%" };
|
|
2948
|
+
return a().createElement("span", Fe({ className: z + " lazy-load-image-background " + I + ce, style: bt(bt({}, J), {}, { color: "transparent", display: "inline-block", height: O, width: D }) }, K), l);
|
|
2955
2949
|
} }, { key: "render", value: function() {
|
|
2956
|
-
var l = this.props, p = l.effect,
|
|
2957
|
-
return (p ||
|
|
2958
|
-
} }]) &&
|
|
2950
|
+
var l = this.props, p = l.effect, I = l.placeholderSrc, O = l.visibleByDefault, w = l.wrapperClassName, D = l.wrapperProps, z = this.getLazyLoadImage();
|
|
2951
|
+
return (p || I) && !O || w || D ? this.getWrappedLazyLoadImage(z) : z;
|
|
2952
|
+
} }]) && vn(c.prototype, m), Object.defineProperty(c, "prototype", { writable: !1 }), q;
|
|
2959
2953
|
}(a().Component);
|
|
2960
2954
|
et.propTypes = { onLoad: i.PropTypes.func, afterLoad: i.PropTypes.func, beforeLoad: i.PropTypes.func, delayMethod: i.PropTypes.string, delayTime: i.PropTypes.number, effect: i.PropTypes.string, placeholderSrc: i.PropTypes.string, threshold: i.PropTypes.number, useIntersectionObserver: i.PropTypes.bool, visibleByDefault: i.PropTypes.bool, wrapperClassName: i.PropTypes.string, wrapperProps: i.PropTypes.object }, et.defaultProps = { onLoad: function() {
|
|
2961
2955
|
}, afterLoad: function() {
|
|
@@ -2963,10 +2957,10 @@ var pn = { exports: {} };
|
|
|
2963
2957
|
}, beforeLoad: function() {
|
|
2964
2958
|
return {};
|
|
2965
2959
|
}, delayMethod: "throttle", delayTime: 300, effect: "", placeholderSrc: null, threshold: 100, useIntersectionObserver: !0, visibleByDefault: !1, wrapperClassName: "" };
|
|
2966
|
-
const
|
|
2967
|
-
})(),
|
|
2960
|
+
const bn = et;
|
|
2961
|
+
})(), hn.exports = o;
|
|
2968
2962
|
})();
|
|
2969
|
-
var ro =
|
|
2963
|
+
var ro = hn.exports;
|
|
2970
2964
|
function oo(e, t, n = [], o = !1, r = []) {
|
|
2971
2965
|
if (r.length && (t = t.filter((i) => r.indexOf(i) === -1)), !t || t.length === 0)
|
|
2972
2966
|
return;
|
|
@@ -2994,7 +2988,7 @@ function oo(e, t, n = [], o = !1, r = []) {
|
|
|
2994
2988
|
}
|
|
2995
2989
|
return t.indexOf("none") !== -1 ? "none" : t.indexOf("@none") !== -1 ? "@none" : t[0];
|
|
2996
2990
|
}
|
|
2997
|
-
function
|
|
2991
|
+
function yn(e, t, n = {}) {
|
|
2998
2992
|
const {
|
|
2999
2993
|
strictFallback: o = !1,
|
|
3000
2994
|
defaultText: r = "",
|
|
@@ -3014,7 +3008,7 @@ function hn(e, t, n = {}) {
|
|
|
3014
3008
|
return y;
|
|
3015
3009
|
if (y.length === 1 && y[0] === "") {
|
|
3016
3010
|
const x = n.skipLanguages || [];
|
|
3017
|
-
return
|
|
3011
|
+
return yn(e, t, {
|
|
3018
3012
|
...n,
|
|
3019
3013
|
skipLanguages: [...x, u]
|
|
3020
3014
|
});
|
|
@@ -3024,7 +3018,7 @@ function hn(e, t, n = {}) {
|
|
|
3024
3018
|
return "";
|
|
3025
3019
|
}
|
|
3026
3020
|
function io(e, t = {}) {
|
|
3027
|
-
return
|
|
3021
|
+
return yn(
|
|
3028
3022
|
e,
|
|
3029
3023
|
t.language || (typeof navigator < "u" ? navigator.language : "en"),
|
|
3030
3024
|
t
|
|
@@ -3036,38 +3030,38 @@ function so(e) {
|
|
|
3036
3030
|
return a ? /* @__PURE__ */ d("figure", { className: o == null ? void 0 : o.figure, children: h }) : h;
|
|
3037
3031
|
}
|
|
3038
3032
|
function co({ fallback: e, size: t, classes: n, showLabel: o, alt: r, dereference: a = !1 }) {
|
|
3039
|
-
const i = Se(), s = (t == null ? void 0 : t.width) || 128, f = (t == null ? void 0 : t.height) || (t == null ? void 0 : t.width) || 128, h = r || io(i == null ? void 0 : i.label) || "", u =
|
|
3033
|
+
const i = Se(), s = (t == null ? void 0 : t.width) || 128, f = (t == null ? void 0 : t.height) || (t == null ? void 0 : t.width) || 128, h = r || io(i == null ? void 0 : i.label) || "", u = Gt({ width: s, height: f }, a);
|
|
3040
3034
|
return !u || u.type !== "fixed" ? /* @__PURE__ */ d(Oe, { children: e }) : /* @__PURE__ */ X(Oe, { children: [
|
|
3041
3035
|
/* @__PURE__ */ d("div", { className: n == null ? void 0 : n.imageWrapper, children: /* @__PURE__ */ d("img", { className: n == null ? void 0 : n.img, src: u.id, alt: h }) }),
|
|
3042
3036
|
o ? /* @__PURE__ */ d(Ne, { as: "figcaption", className: n == null ? void 0 : n.label, children: i == null ? void 0 : i.label }) : null
|
|
3043
3037
|
] });
|
|
3044
3038
|
}
|
|
3045
3039
|
function Lo({ flat: e, size: t, classes: n = {}, showLabel: o, figure: r, fallback: a }) {
|
|
3046
|
-
var M,
|
|
3047
|
-
const i =
|
|
3040
|
+
var M, C, T, b, E, L;
|
|
3041
|
+
const i = xe(null), { items: s, sequence: f, currentSequenceIndex: h, setSequenceIndex: u } = Nt(), y = {
|
|
3048
3042
|
row: ((M = n.selected) == null ? void 0 : M.row) || n.row,
|
|
3049
|
-
item: ((
|
|
3050
|
-
figure: ((
|
|
3051
|
-
img: ((
|
|
3052
|
-
label: ((
|
|
3053
|
-
imageWrapper: ((
|
|
3043
|
+
item: ((C = n.selected) == null ? void 0 : C.item) || n.item,
|
|
3044
|
+
figure: ((T = n.selected) == null ? void 0 : T.figure) || n.figure,
|
|
3045
|
+
img: ((b = n.selected) == null ? void 0 : b.img) || n.img,
|
|
3046
|
+
label: ((E = n.selected) == null ? void 0 : E.label) || n.label,
|
|
3047
|
+
imageWrapper: ((L = n.selected) == null ? void 0 : L.imageWrapper) || n.imageWrapper
|
|
3054
3048
|
};
|
|
3055
3049
|
st(() => {
|
|
3056
3050
|
if (!i.current)
|
|
3057
3051
|
return;
|
|
3058
|
-
const
|
|
3059
|
-
|
|
3052
|
+
const P = i.current.querySelector("[data-selected=true]");
|
|
3053
|
+
P && P.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "center" });
|
|
3060
3054
|
}, [h]);
|
|
3061
3055
|
const x = [];
|
|
3062
|
-
for (const
|
|
3063
|
-
const F = [],
|
|
3064
|
-
for (const R of
|
|
3056
|
+
for (const P of f) {
|
|
3057
|
+
const F = [], A = f[h] === P;
|
|
3058
|
+
for (const R of P) {
|
|
3065
3059
|
const B = s[R];
|
|
3066
3060
|
F.push(
|
|
3067
|
-
/* @__PURE__ */ d("div", { className:
|
|
3061
|
+
/* @__PURE__ */ d("div", { className: A ? y.item : n.item, children: /* @__PURE__ */ d(
|
|
3068
3062
|
so,
|
|
3069
3063
|
{
|
|
3070
|
-
classes:
|
|
3064
|
+
classes: A ? y : n,
|
|
3071
3065
|
canvasId: B.id,
|
|
3072
3066
|
size: t,
|
|
3073
3067
|
showLabel: o,
|
|
@@ -3087,10 +3081,10 @@ function Lo({ flat: e, size: t, classes: n = {}, showLabel: o, figure: r, fallba
|
|
|
3087
3081
|
"div",
|
|
3088
3082
|
{
|
|
3089
3083
|
onClick: (R) => {
|
|
3090
|
-
u(f.indexOf(
|
|
3084
|
+
u(f.indexOf(P));
|
|
3091
3085
|
},
|
|
3092
|
-
"data-selected":
|
|
3093
|
-
className:
|
|
3086
|
+
"data-selected": A,
|
|
3087
|
+
className: A ? y.row : n.row,
|
|
3094
3088
|
children: F
|
|
3095
3089
|
}
|
|
3096
3090
|
)
|
|
@@ -3108,7 +3102,7 @@ function No({ collection: e, children: t }) {
|
|
|
3108
3102
|
return /* @__PURE__ */ d(Le, { value: { collection: e }, children: t });
|
|
3109
3103
|
}
|
|
3110
3104
|
function Vo(e, t = {}) {
|
|
3111
|
-
return
|
|
3105
|
+
return ht(t);
|
|
3112
3106
|
}
|
|
3113
3107
|
function _o(e, t = !1) {
|
|
3114
3108
|
}
|
|
@@ -3138,7 +3132,7 @@ function Bo(e, t = []) {
|
|
|
3138
3132
|
}, [i, o, ...t]);
|
|
3139
3133
|
}
|
|
3140
3134
|
function qo(e, t, n, o, r = []) {
|
|
3141
|
-
const a =
|
|
3135
|
+
const a = ae(), i = N(() => Ft(a), [a]);
|
|
3142
3136
|
be(() => {
|
|
3143
3137
|
const s = e;
|
|
3144
3138
|
return s ? (i.addEventListener(s, t, n, o), () => {
|
|
@@ -3148,56 +3142,56 @@ function qo(e, t, n, o, r = []) {
|
|
|
3148
3142
|
}, [i, e, t, ...r]);
|
|
3149
3143
|
}
|
|
3150
3144
|
function Fo(e, t) {
|
|
3151
|
-
const { id: n, isLoaded: o, error: r, resource: a, requestId: i, cached: s } =
|
|
3145
|
+
const { id: n, isLoaded: o, error: r, resource: a, requestId: i, cached: s } = jt(
|
|
3152
3146
|
e,
|
|
3153
3147
|
t
|
|
3154
3148
|
);
|
|
3155
3149
|
return { id: n, isLoaded: o, error: r, manifest: a, requestId: i, cached: s };
|
|
3156
3150
|
}
|
|
3157
3151
|
function uo({ cacheKey: e } = {}) {
|
|
3158
|
-
const t = Se(), n =
|
|
3152
|
+
const t = Se(), n = ht(), o = ae(), r = Je(), [a, i] = ie(void 0), [s, f] = ie(!1), [h, u] = ie("idle"), [y, x] = ie(void 0), M = t ? t.id : "undefined", C = N(() => {
|
|
3159
3153
|
try {
|
|
3160
3154
|
if (t && n.length) {
|
|
3161
|
-
const
|
|
3162
|
-
return
|
|
3163
|
-
id:
|
|
3164
|
-
width:
|
|
3165
|
-
height:
|
|
3155
|
+
const b = n[0], E = o.get(b.body[0]), P = it(E)[0];
|
|
3156
|
+
return P && r.loadServiceSync({
|
|
3157
|
+
id: P.id || P["@id"],
|
|
3158
|
+
width: P.width || t.width,
|
|
3159
|
+
height: P.height || t.height
|
|
3166
3160
|
}) || void 0;
|
|
3167
3161
|
}
|
|
3168
|
-
} catch (
|
|
3169
|
-
console.error(
|
|
3162
|
+
} catch (b) {
|
|
3163
|
+
console.error(b);
|
|
3170
3164
|
}
|
|
3171
|
-
}, [M, e, t]),
|
|
3165
|
+
}, [M, e, t]), T = h === "success" && a ? a : C;
|
|
3172
3166
|
return be(() => {
|
|
3173
3167
|
(async () => {
|
|
3174
3168
|
try {
|
|
3175
3169
|
if (t && n.length) {
|
|
3176
|
-
const
|
|
3177
|
-
if (!
|
|
3170
|
+
const b = n[0], E = o.get(b.body[0]), P = it(E)[0];
|
|
3171
|
+
if (!P)
|
|
3178
3172
|
return;
|
|
3179
3173
|
f(!0), u("loading");
|
|
3180
3174
|
try {
|
|
3181
3175
|
const F = await r.loadService({
|
|
3182
|
-
id:
|
|
3183
|
-
width:
|
|
3184
|
-
height:
|
|
3176
|
+
id: P.id || P["@id"],
|
|
3177
|
+
width: P.width || t.width,
|
|
3178
|
+
height: P.height || t.height
|
|
3185
3179
|
}) || void 0;
|
|
3186
3180
|
i(F), u("success"), f(!1);
|
|
3187
3181
|
} catch (F) {
|
|
3188
3182
|
u("error"), x(F);
|
|
3189
3183
|
}
|
|
3190
3184
|
}
|
|
3191
|
-
} catch (
|
|
3192
|
-
u("error"), x(
|
|
3185
|
+
} catch (b) {
|
|
3186
|
+
u("error"), x(b);
|
|
3193
3187
|
}
|
|
3194
3188
|
})();
|
|
3195
3189
|
}, [M, e]), N(() => ({
|
|
3196
|
-
data:
|
|
3190
|
+
data: T,
|
|
3197
3191
|
isFetching: s,
|
|
3198
3192
|
status: h,
|
|
3199
3193
|
error: y
|
|
3200
|
-
}), [
|
|
3194
|
+
}), [T, s, h, y]);
|
|
3201
3195
|
}
|
|
3202
3196
|
function Uo() {
|
|
3203
3197
|
const e = uo();
|
|
@@ -3219,7 +3213,7 @@ function $o() {
|
|
|
3219
3213
|
) : void 0;
|
|
3220
3214
|
}
|
|
3221
3215
|
function Wo() {
|
|
3222
|
-
const e =
|
|
3216
|
+
const e = ae();
|
|
3223
3217
|
return N(() => ut(e), [e]);
|
|
3224
3218
|
}
|
|
3225
3219
|
export {
|
|
@@ -3230,96 +3224,96 @@ export {
|
|
|
3230
3224
|
ge as CanvasPanel,
|
|
3231
3225
|
No as CollectionContext,
|
|
3232
3226
|
Mo as CombinedMetadata,
|
|
3233
|
-
|
|
3227
|
+
Kn as ContextBridge,
|
|
3234
3228
|
no as Image,
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3229
|
+
Rr as ImageServiceLoaderContext,
|
|
3230
|
+
Hn as InnerViewerProvider,
|
|
3231
|
+
Eo as LanguageProvider,
|
|
3232
|
+
Qr as LanguageString,
|
|
3239
3233
|
Ne as LocaleString,
|
|
3240
|
-
|
|
3234
|
+
Fn as ManifestContext,
|
|
3241
3235
|
Ro as ManifestMetadata,
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3236
|
+
en as MediaPlayerProvider,
|
|
3237
|
+
dn as Metadata,
|
|
3238
|
+
Un as RangeContext,
|
|
3245
3239
|
Ke as ReactVaultContext,
|
|
3246
3240
|
Le as ResourceProvider,
|
|
3247
3241
|
lt as ResourceReactContext,
|
|
3248
3242
|
Lo as SequenceThumbnails,
|
|
3249
|
-
|
|
3243
|
+
Yn as SimpleViewerProvider,
|
|
3250
3244
|
Xe as SimpleViewerReactContext,
|
|
3251
3245
|
so as SingleCanvasThumbnail,
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3246
|
+
ft as VaultProvider,
|
|
3247
|
+
pt as ViewerPresetContext,
|
|
3248
|
+
vr as VirtualAnnotationProvider,
|
|
3255
3249
|
Ge as VisibleCanvasReactContext,
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3250
|
+
xr as emptyActions,
|
|
3251
|
+
Tr as emptyStrategy,
|
|
3252
|
+
Rt as findAllCanvasesInRange,
|
|
3253
|
+
$n as findFirstCanvasFromRange,
|
|
3260
3254
|
Po as findManifestSelectedRange,
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3255
|
+
Lt as findSelectedRange,
|
|
3256
|
+
Cr as flattenAnnotationPageIds,
|
|
3257
|
+
Kr as formatTime,
|
|
3258
|
+
_r as get3dStrategy,
|
|
3259
|
+
Br as getImageStrategy,
|
|
3260
|
+
At as getManifestSequence,
|
|
3261
|
+
Yt as getParsedTargetSelector,
|
|
3262
|
+
$r as getRenderingStrategy,
|
|
3263
|
+
qr as getTextualContentStrategy,
|
|
3264
|
+
Ur as getVideoStrategy,
|
|
3271
3265
|
Oo as getVisibleCanvasesFromCanvasId,
|
|
3272
3266
|
So as parseSpecificResource,
|
|
3273
3267
|
rt as unknownResponse,
|
|
3274
3268
|
ne as unsupportedStrategy,
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3269
|
+
$t as useAnnotation,
|
|
3270
|
+
Sr as useAnnotationPage,
|
|
3271
|
+
zt as useAnnotationPageManager,
|
|
3278
3272
|
Vo as useAnnotationsAtTime,
|
|
3279
3273
|
Se as useCanvas,
|
|
3280
3274
|
_o as useCanvasClock,
|
|
3281
|
-
|
|
3275
|
+
Wn as useCanvasSequence,
|
|
3282
3276
|
Do as useCanvasSubset,
|
|
3283
|
-
|
|
3277
|
+
Gr as useClosestLanguage,
|
|
3284
3278
|
Bo as useCollection,
|
|
3285
|
-
|
|
3279
|
+
zn as useContextBridge,
|
|
3286
3280
|
Co as useCreateLocaleString,
|
|
3287
|
-
|
|
3281
|
+
yr as useDispatch,
|
|
3288
3282
|
qo as useEventListener,
|
|
3289
|
-
|
|
3283
|
+
dt as useExistingVault,
|
|
3290
3284
|
Fo as useExternalCollection,
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3285
|
+
qn as useExternalManifest,
|
|
3286
|
+
jt as useExternalResource,
|
|
3287
|
+
gt as useIIIFLanguage,
|
|
3288
|
+
pn as useImage,
|
|
3295
3289
|
uo as useImageService,
|
|
3296
3290
|
Je as useImageServiceLoader,
|
|
3297
3291
|
Uo as useImageTile,
|
|
3298
|
-
|
|
3299
|
-
|
|
3292
|
+
Lr as useLoadImageService,
|
|
3293
|
+
Xr as useLocaleString,
|
|
3300
3294
|
Ce as useManifest,
|
|
3301
3295
|
To as useMediaActions,
|
|
3302
|
-
|
|
3296
|
+
Io as useMediaElements,
|
|
3303
3297
|
xo as useMediaState,
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3298
|
+
Nr as usePaintables,
|
|
3299
|
+
ht as usePaintingAnnotations,
|
|
3300
|
+
kt as useRange,
|
|
3301
|
+
Wr as useRenderingStrategy,
|
|
3308
3302
|
je as useResourceContext,
|
|
3309
|
-
|
|
3310
|
-
|
|
3303
|
+
Ut as useResourceEvents,
|
|
3304
|
+
Mr as useResources,
|
|
3311
3305
|
$o as useSearchService,
|
|
3312
|
-
|
|
3313
|
-
|
|
3306
|
+
yt as useSimpleMediaPlayer,
|
|
3307
|
+
Nt as useSimpleViewer,
|
|
3314
3308
|
Wo as useStyleHelper,
|
|
3315
3309
|
ze as useStyles,
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3310
|
+
Gt as useThumbnail,
|
|
3311
|
+
ae as useVault,
|
|
3312
|
+
Hr as useVaultEffect,
|
|
3319
3313
|
ye as useVaultSelector,
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3314
|
+
wr as useViewerPreset,
|
|
3315
|
+
gr as useVirtualAnnotationPage,
|
|
3316
|
+
mr as useVirtualAnnotationPageContext,
|
|
3317
|
+
Mt as useVisibleCanvases
|
|
3324
3318
|
};
|
|
3325
3319
|
//# sourceMappingURL=index.mjs.map
|