@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260527044956 → 0.8.1-dev.20260527052314
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.
|
@@ -36,7 +36,8 @@ var HlsPlayer = React.memo(
|
|
|
36
36
|
showControls = true,
|
|
37
37
|
loop = false,
|
|
38
38
|
playOptions = "autoplay",
|
|
39
|
-
placementCode = ""
|
|
39
|
+
placementCode = "",
|
|
40
|
+
styles
|
|
40
41
|
}) => {
|
|
41
42
|
const containerRef = useRef(null);
|
|
42
43
|
const videoRef = useRef(null);
|
|
@@ -299,7 +300,8 @@ var HlsPlayer = React.memo(
|
|
|
299
300
|
"div",
|
|
300
301
|
{
|
|
301
302
|
ref: containerRef,
|
|
302
|
-
className: "relative w-full aspect-video bg-black",
|
|
303
|
+
className: "relative w-full overflow-hidden aspect-video bg-black",
|
|
304
|
+
style: styles,
|
|
303
305
|
onMouseEnter: handleMouseEnter,
|
|
304
306
|
onMouseLeave: handleMouseLeave,
|
|
305
307
|
onMouseMove: handleMouseMove,
|
package/dist/index.js
CHANGED
|
@@ -200,7 +200,8 @@ var init_HlsPlayer = __esm({
|
|
|
200
200
|
showControls = true,
|
|
201
201
|
loop = false,
|
|
202
202
|
playOptions = "autoplay",
|
|
203
|
-
placementCode = ""
|
|
203
|
+
placementCode = "",
|
|
204
|
+
styles
|
|
204
205
|
}) => {
|
|
205
206
|
const containerRef = (0, import_react4.useRef)(null);
|
|
206
207
|
const videoRef = (0, import_react4.useRef)(null);
|
|
@@ -463,7 +464,8 @@ var init_HlsPlayer = __esm({
|
|
|
463
464
|
"div",
|
|
464
465
|
{
|
|
465
466
|
ref: containerRef,
|
|
466
|
-
className: "relative w-full aspect-video bg-black",
|
|
467
|
+
className: "relative w-full overflow-hidden aspect-video bg-black",
|
|
468
|
+
style: styles,
|
|
467
469
|
onMouseEnter: handleMouseEnter,
|
|
468
470
|
onMouseLeave: handleMouseLeave,
|
|
469
471
|
onMouseMove: handleMouseMove,
|
|
@@ -5248,39 +5250,30 @@ var HlsPlayer3 = (0, import_dynamic7.default)(() => Promise.resolve().then(() =>
|
|
|
5248
5250
|
var deviceToMediaQuery = (device) => {
|
|
5249
5251
|
switch (device) {
|
|
5250
5252
|
case "sm":
|
|
5251
|
-
return "(max-width:
|
|
5253
|
+
return "(max-width: 480px)";
|
|
5252
5254
|
case "md":
|
|
5253
|
-
return "(
|
|
5255
|
+
return "(max-width: 768px)";
|
|
5254
5256
|
case "lg":
|
|
5255
|
-
return "(min-width:
|
|
5256
|
-
case "tv":
|
|
5257
|
-
|
|
5257
|
+
return "(min-width: 769px)";
|
|
5258
|
+
// case "tv":
|
|
5259
|
+
// return "(min-width: 1920px)";
|
|
5258
5260
|
default:
|
|
5259
5261
|
return null;
|
|
5260
5262
|
}
|
|
5261
5263
|
};
|
|
5264
|
+
var DEVICE_ORDER = ["sm", "md", "lg", "tv"];
|
|
5262
5265
|
var parseMaybeNumber = (value) => {
|
|
5263
|
-
if (typeof value === "number")
|
|
5264
|
-
return Number.isFinite(value) ? value : void 0;
|
|
5265
|
-
}
|
|
5266
|
+
if (typeof value === "number") return Number.isFinite(value) ? value : void 0;
|
|
5266
5267
|
if (typeof value !== "string") return void 0;
|
|
5267
5268
|
const n = Number(value);
|
|
5268
5269
|
return Number.isFinite(n) ? n : void 0;
|
|
5269
5270
|
};
|
|
5270
|
-
var groupImagesForPicture = (images) => {
|
|
5271
|
-
const sources = images.filter((img) => !!img.device);
|
|
5272
|
-
const fallbacks = images.filter((img) => !img.device);
|
|
5273
|
-
return {
|
|
5274
|
-
sources,
|
|
5275
|
-
fallback: fallbacks[0] ?? sources[0] ?? null
|
|
5276
|
-
};
|
|
5277
|
-
};
|
|
5278
5271
|
var ImageGalleryNode = (props) => {
|
|
5279
|
-
const resolveImageUrl = (
|
|
5280
|
-
if (!
|
|
5281
|
-
if (
|
|
5272
|
+
const resolveImageUrl = (imageUrl2) => {
|
|
5273
|
+
if (!imageUrl2) return "";
|
|
5274
|
+
if (imageUrl2.startsWith("http")) return imageUrl2;
|
|
5282
5275
|
const base = props.assetBaseUrl.replace(/\/$/, "");
|
|
5283
|
-
const path =
|
|
5276
|
+
const path = imageUrl2.replace(/^\//, "");
|
|
5284
5277
|
return `${base}/${path}`;
|
|
5285
5278
|
};
|
|
5286
5279
|
const resolvePosterUrl = (posterUrl) => {
|
|
@@ -5289,67 +5282,67 @@ var ImageGalleryNode = (props) => {
|
|
|
5289
5282
|
};
|
|
5290
5283
|
const rawImages = Array.isArray(props.node.images) ? props.node.images : [];
|
|
5291
5284
|
const hlsImages = rawImages.filter(
|
|
5292
|
-
(
|
|
5285
|
+
(img2) => resolveImageUrl(img2.imageUrl).endsWith(".m3u8")
|
|
5293
5286
|
);
|
|
5294
5287
|
const staticImages = rawImages.filter(
|
|
5295
|
-
(
|
|
5288
|
+
(img2) => !resolveImageUrl(img2.imageUrl).endsWith(".m3u8")
|
|
5296
5289
|
);
|
|
5297
|
-
const
|
|
5290
|
+
const hlsSources = [
|
|
5291
|
+
...DEVICE_ORDER.flatMap((deviceKey) => {
|
|
5292
|
+
const img2 = hlsImages.find((i) => i.device === deviceKey);
|
|
5293
|
+
if (!img2) return [];
|
|
5294
|
+
const src = resolveImageUrl(img2.imageUrl);
|
|
5295
|
+
if (!src) return [];
|
|
5296
|
+
const media = deviceToMediaQuery(img2.device);
|
|
5297
|
+
const posterUrl = resolvePosterUrl(img2.posterUrl);
|
|
5298
|
+
return [{ src, ...media ? { media } : {}, ...posterUrl ? { posterUrl } : {} }];
|
|
5299
|
+
}),
|
|
5300
|
+
...hlsImages.filter((img2) => !img2.device).map((img2) => {
|
|
5301
|
+
const src = resolveImageUrl(img2.imageUrl);
|
|
5302
|
+
const posterUrl = resolvePosterUrl(img2.posterUrl);
|
|
5303
|
+
return { src, ...posterUrl ? { posterUrl } : {} };
|
|
5304
|
+
}).filter((s) => !!s.src)
|
|
5305
|
+
];
|
|
5306
|
+
const primaryHls = hlsImages.find((img2) => !img2.device) ?? hlsImages[0];
|
|
5307
|
+
const hlsIntrinsicWidth = primaryHls ? parseMaybeNumber(primaryHls.intrinsicWidth)?.toString() : void 0;
|
|
5308
|
+
const hlsIntrinsicHeight = primaryHls ? parseMaybeNumber(primaryHls.intrinsicHeight)?.toString() : void 0;
|
|
5309
|
+
const staticSources = staticImages.filter((img2) => !!img2.device);
|
|
5310
|
+
const staticFallback = staticImages.find((img2) => !img2.device) ?? staticImages[0] ?? null;
|
|
5298
5311
|
const FormatClass = {
|
|
5299
5312
|
center: "justify-center",
|
|
5300
5313
|
left: "justify-start",
|
|
5301
5314
|
right: "justify-end"
|
|
5302
5315
|
};
|
|
5303
5316
|
const formatClasses = FormatClass[props.node.format || ""] || "";
|
|
5304
|
-
|
|
5305
|
-
|
|
5306
|
-
|
|
5307
|
-
|
|
5308
|
-
|
|
5309
|
-
|
|
5310
|
-
|
|
5311
|
-
|
|
5312
|
-
|
|
5313
|
-
|
|
5314
|
-
|
|
5315
|
-
|
|
5316
|
-
|
|
5317
|
-
|
|
5318
|
-
|
|
5319
|
-
|
|
5320
|
-
|
|
5321
|
-
|
|
5322
|
-
|
|
5323
|
-
|
|
5324
|
-
|
|
5325
|
-
|
|
5326
|
-
|
|
5327
|
-
|
|
5328
|
-
|
|
5329
|
-
|
|
5330
|
-
|
|
5331
|
-
|
|
5332
|
-
|
|
5333
|
-
posterUrl,
|
|
5334
|
-
intrinsicWidth: intrinsicWidth?.toString(),
|
|
5335
|
-
intrinsicHeight: intrinsicHeight?.toString(),
|
|
5336
|
-
showControls: true,
|
|
5337
|
-
loop: false,
|
|
5338
|
-
playOptions: void 0,
|
|
5339
|
-
apiBaseUrl: props.apiBaseUrl,
|
|
5340
|
-
session: props.session
|
|
5341
|
-
}
|
|
5342
|
-
) })
|
|
5343
|
-
]
|
|
5344
|
-
},
|
|
5345
|
-
`hls-${idx}-${img.imageUrl}`
|
|
5346
|
-
);
|
|
5347
|
-
}),
|
|
5348
|
-
staticFallback && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "max-w-full", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("picture", { children: [
|
|
5349
|
-
["sm", "md", "lg", "tv"].map((deviceKey) => {
|
|
5350
|
-
const match = staticSources.find(
|
|
5351
|
-
(img) => img.device === deviceKey
|
|
5352
|
-
);
|
|
5317
|
+
const img = staticFallback;
|
|
5318
|
+
const imageUrl = resolveImageUrl(img.imageUrl);
|
|
5319
|
+
if (!imageUrl) return null;
|
|
5320
|
+
const intrinsicWidth = parseMaybeNumber(img.intrinsicWidth);
|
|
5321
|
+
const intrinsicHeight = parseMaybeNumber(img.intrinsicHeight);
|
|
5322
|
+
const alt = img.title || "Gallery image";
|
|
5323
|
+
const styles = {};
|
|
5324
|
+
if (img.height) styles.height = img.height;
|
|
5325
|
+
if (img.width) styles.width = img.width;
|
|
5326
|
+
if (img.borderRadius) styles.borderRadius = img.borderRadius;
|
|
5327
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_jsx_runtime69.Fragment, { children: [
|
|
5328
|
+
hlsSources.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_jsx_runtime69.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
5329
|
+
HlsPlayer3,
|
|
5330
|
+
{
|
|
5331
|
+
sources: hlsSources,
|
|
5332
|
+
intrinsicWidth: hlsIntrinsicWidth,
|
|
5333
|
+
intrinsicHeight: hlsIntrinsicHeight,
|
|
5334
|
+
showControls: primaryHls?.showControls ?? false,
|
|
5335
|
+
loop: primaryHls?.loop ?? false,
|
|
5336
|
+
playOptions: primaryHls?.playOptions ?? "",
|
|
5337
|
+
placementCode: primaryHls?.placementCode ?? "",
|
|
5338
|
+
apiBaseUrl: props.apiBaseUrl,
|
|
5339
|
+
session: props.session,
|
|
5340
|
+
styles
|
|
5341
|
+
}
|
|
5342
|
+
) }),
|
|
5343
|
+
staticFallback && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_jsx_runtime69.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("picture", { children: [
|
|
5344
|
+
DEVICE_ORDER.map((deviceKey) => {
|
|
5345
|
+
const match = staticSources.find((img2) => img2.device === deviceKey);
|
|
5353
5346
|
if (!match) return null;
|
|
5354
5347
|
const srcUrl = resolveImageUrl(match.imageUrl);
|
|
5355
5348
|
if (!srcUrl) return null;
|
|
@@ -5365,19 +5358,9 @@ var ImageGalleryNode = (props) => {
|
|
|
5365
5358
|
deviceKey
|
|
5366
5359
|
);
|
|
5367
5360
|
}),
|
|
5368
|
-
(() => {
|
|
5369
|
-
const img = staticFallback;
|
|
5370
|
-
const imageUrl = resolveImageUrl(img.imageUrl);
|
|
5371
|
-
if (!imageUrl) return null;
|
|
5372
|
-
const intrinsicWidth = parseMaybeNumber(img.intrinsicWidth);
|
|
5373
|
-
const intrinsicHeight = parseMaybeNumber(img.intrinsicHeight);
|
|
5374
|
-
const alt = img.title || "Gallery image";
|
|
5375
|
-
const styles = {};
|
|
5376
|
-
if (img.height) styles.height = img.height;
|
|
5377
|
-
if (img.width) styles.width = img.width;
|
|
5378
|
-
if (img.borderRadius) styles.borderRadius = img.borderRadius;
|
|
5361
|
+
/* @__PURE__ */ (() => {
|
|
5379
5362
|
return (
|
|
5380
|
-
|
|
5363
|
+
// eslint-disable-next-line @next/next/no-img-element
|
|
5381
5364
|
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
5382
5365
|
"img",
|
|
5383
5366
|
{
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
HlsPlayer_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2YXREMBN.mjs";
|
|
4
4
|
import {
|
|
5
5
|
Button_default,
|
|
6
6
|
ClientButton_default,
|
|
@@ -2049,7 +2049,7 @@ import React30 from "react";
|
|
|
2049
2049
|
// src/components/pageRenderingEngine/nodes/ImageNode.tsx
|
|
2050
2050
|
import dynamic3 from "next/dynamic";
|
|
2051
2051
|
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
2052
|
-
var HlsPlayer = dynamic3(() => import("./HlsPlayer-
|
|
2052
|
+
var HlsPlayer = dynamic3(() => import("./HlsPlayer-3GPS6EL2.mjs"), { ssr: false });
|
|
2053
2053
|
var getNestedValue = (obj, path) => {
|
|
2054
2054
|
if (!obj || !path) return void 0;
|
|
2055
2055
|
return path.split(".").reduce((current, key) => {
|
|
@@ -3708,44 +3708,35 @@ var Pagination_default = Pagination;
|
|
|
3708
3708
|
|
|
3709
3709
|
// src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
|
|
3710
3710
|
import dynamic7 from "next/dynamic";
|
|
3711
|
-
import { jsx as jsx58, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
3712
|
-
var HlsPlayer2 = dynamic7(() => import("./HlsPlayer-
|
|
3711
|
+
import { Fragment as Fragment7, jsx as jsx58, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
3712
|
+
var HlsPlayer2 = dynamic7(() => import("./HlsPlayer-3GPS6EL2.mjs"), { ssr: false });
|
|
3713
3713
|
var deviceToMediaQuery = (device) => {
|
|
3714
3714
|
switch (device) {
|
|
3715
3715
|
case "sm":
|
|
3716
|
-
return "(max-width:
|
|
3716
|
+
return "(max-width: 480px)";
|
|
3717
3717
|
case "md":
|
|
3718
|
-
return "(
|
|
3718
|
+
return "(max-width: 768px)";
|
|
3719
3719
|
case "lg":
|
|
3720
|
-
return "(min-width:
|
|
3721
|
-
case "tv":
|
|
3722
|
-
|
|
3720
|
+
return "(min-width: 769px)";
|
|
3721
|
+
// case "tv":
|
|
3722
|
+
// return "(min-width: 1920px)";
|
|
3723
3723
|
default:
|
|
3724
3724
|
return null;
|
|
3725
3725
|
}
|
|
3726
3726
|
};
|
|
3727
|
+
var DEVICE_ORDER = ["sm", "md", "lg", "tv"];
|
|
3727
3728
|
var parseMaybeNumber = (value) => {
|
|
3728
|
-
if (typeof value === "number")
|
|
3729
|
-
return Number.isFinite(value) ? value : void 0;
|
|
3730
|
-
}
|
|
3729
|
+
if (typeof value === "number") return Number.isFinite(value) ? value : void 0;
|
|
3731
3730
|
if (typeof value !== "string") return void 0;
|
|
3732
3731
|
const n = Number(value);
|
|
3733
3732
|
return Number.isFinite(n) ? n : void 0;
|
|
3734
3733
|
};
|
|
3735
|
-
var groupImagesForPicture = (images) => {
|
|
3736
|
-
const sources = images.filter((img) => !!img.device);
|
|
3737
|
-
const fallbacks = images.filter((img) => !img.device);
|
|
3738
|
-
return {
|
|
3739
|
-
sources,
|
|
3740
|
-
fallback: fallbacks[0] ?? sources[0] ?? null
|
|
3741
|
-
};
|
|
3742
|
-
};
|
|
3743
3734
|
var ImageGalleryNode = (props) => {
|
|
3744
|
-
const resolveImageUrl = (
|
|
3745
|
-
if (!
|
|
3746
|
-
if (
|
|
3735
|
+
const resolveImageUrl = (imageUrl2) => {
|
|
3736
|
+
if (!imageUrl2) return "";
|
|
3737
|
+
if (imageUrl2.startsWith("http")) return imageUrl2;
|
|
3747
3738
|
const base = props.assetBaseUrl.replace(/\/$/, "");
|
|
3748
|
-
const path =
|
|
3739
|
+
const path = imageUrl2.replace(/^\//, "");
|
|
3749
3740
|
return `${base}/${path}`;
|
|
3750
3741
|
};
|
|
3751
3742
|
const resolvePosterUrl = (posterUrl) => {
|
|
@@ -3754,67 +3745,67 @@ var ImageGalleryNode = (props) => {
|
|
|
3754
3745
|
};
|
|
3755
3746
|
const rawImages = Array.isArray(props.node.images) ? props.node.images : [];
|
|
3756
3747
|
const hlsImages = rawImages.filter(
|
|
3757
|
-
(
|
|
3748
|
+
(img2) => resolveImageUrl(img2.imageUrl).endsWith(".m3u8")
|
|
3758
3749
|
);
|
|
3759
3750
|
const staticImages = rawImages.filter(
|
|
3760
|
-
(
|
|
3751
|
+
(img2) => !resolveImageUrl(img2.imageUrl).endsWith(".m3u8")
|
|
3761
3752
|
);
|
|
3762
|
-
const
|
|
3753
|
+
const hlsSources = [
|
|
3754
|
+
...DEVICE_ORDER.flatMap((deviceKey) => {
|
|
3755
|
+
const img2 = hlsImages.find((i) => i.device === deviceKey);
|
|
3756
|
+
if (!img2) return [];
|
|
3757
|
+
const src = resolveImageUrl(img2.imageUrl);
|
|
3758
|
+
if (!src) return [];
|
|
3759
|
+
const media = deviceToMediaQuery(img2.device);
|
|
3760
|
+
const posterUrl = resolvePosterUrl(img2.posterUrl);
|
|
3761
|
+
return [{ src, ...media ? { media } : {}, ...posterUrl ? { posterUrl } : {} }];
|
|
3762
|
+
}),
|
|
3763
|
+
...hlsImages.filter((img2) => !img2.device).map((img2) => {
|
|
3764
|
+
const src = resolveImageUrl(img2.imageUrl);
|
|
3765
|
+
const posterUrl = resolvePosterUrl(img2.posterUrl);
|
|
3766
|
+
return { src, ...posterUrl ? { posterUrl } : {} };
|
|
3767
|
+
}).filter((s) => !!s.src)
|
|
3768
|
+
];
|
|
3769
|
+
const primaryHls = hlsImages.find((img2) => !img2.device) ?? hlsImages[0];
|
|
3770
|
+
const hlsIntrinsicWidth = primaryHls ? parseMaybeNumber(primaryHls.intrinsicWidth)?.toString() : void 0;
|
|
3771
|
+
const hlsIntrinsicHeight = primaryHls ? parseMaybeNumber(primaryHls.intrinsicHeight)?.toString() : void 0;
|
|
3772
|
+
const staticSources = staticImages.filter((img2) => !!img2.device);
|
|
3773
|
+
const staticFallback = staticImages.find((img2) => !img2.device) ?? staticImages[0] ?? null;
|
|
3763
3774
|
const FormatClass = {
|
|
3764
3775
|
center: "justify-center",
|
|
3765
3776
|
left: "justify-start",
|
|
3766
3777
|
right: "justify-end"
|
|
3767
3778
|
};
|
|
3768
3779
|
const formatClasses = FormatClass[props.node.format || ""] || "";
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
posterUrl,
|
|
3799
|
-
intrinsicWidth: intrinsicWidth?.toString(),
|
|
3800
|
-
intrinsicHeight: intrinsicHeight?.toString(),
|
|
3801
|
-
showControls: true,
|
|
3802
|
-
loop: false,
|
|
3803
|
-
playOptions: void 0,
|
|
3804
|
-
apiBaseUrl: props.apiBaseUrl,
|
|
3805
|
-
session: props.session
|
|
3806
|
-
}
|
|
3807
|
-
) })
|
|
3808
|
-
]
|
|
3809
|
-
},
|
|
3810
|
-
`hls-${idx}-${img.imageUrl}`
|
|
3811
|
-
);
|
|
3812
|
-
}),
|
|
3813
|
-
staticFallback && /* @__PURE__ */ jsx58("div", { className: "max-w-full", children: /* @__PURE__ */ jsxs31("picture", { children: [
|
|
3814
|
-
["sm", "md", "lg", "tv"].map((deviceKey) => {
|
|
3815
|
-
const match = staticSources.find(
|
|
3816
|
-
(img) => img.device === deviceKey
|
|
3817
|
-
);
|
|
3780
|
+
const img = staticFallback;
|
|
3781
|
+
const imageUrl = resolveImageUrl(img.imageUrl);
|
|
3782
|
+
if (!imageUrl) return null;
|
|
3783
|
+
const intrinsicWidth = parseMaybeNumber(img.intrinsicWidth);
|
|
3784
|
+
const intrinsicHeight = parseMaybeNumber(img.intrinsicHeight);
|
|
3785
|
+
const alt = img.title || "Gallery image";
|
|
3786
|
+
const styles = {};
|
|
3787
|
+
if (img.height) styles.height = img.height;
|
|
3788
|
+
if (img.width) styles.width = img.width;
|
|
3789
|
+
if (img.borderRadius) styles.borderRadius = img.borderRadius;
|
|
3790
|
+
return /* @__PURE__ */ jsxs31(Fragment7, { children: [
|
|
3791
|
+
hlsSources.length > 0 && /* @__PURE__ */ jsx58(Fragment7, { children: /* @__PURE__ */ jsx58(
|
|
3792
|
+
HlsPlayer2,
|
|
3793
|
+
{
|
|
3794
|
+
sources: hlsSources,
|
|
3795
|
+
intrinsicWidth: hlsIntrinsicWidth,
|
|
3796
|
+
intrinsicHeight: hlsIntrinsicHeight,
|
|
3797
|
+
showControls: primaryHls?.showControls ?? false,
|
|
3798
|
+
loop: primaryHls?.loop ?? false,
|
|
3799
|
+
playOptions: primaryHls?.playOptions ?? "",
|
|
3800
|
+
placementCode: primaryHls?.placementCode ?? "",
|
|
3801
|
+
apiBaseUrl: props.apiBaseUrl,
|
|
3802
|
+
session: props.session,
|
|
3803
|
+
styles
|
|
3804
|
+
}
|
|
3805
|
+
) }),
|
|
3806
|
+
staticFallback && /* @__PURE__ */ jsx58(Fragment7, { children: /* @__PURE__ */ jsxs31("picture", { children: [
|
|
3807
|
+
DEVICE_ORDER.map((deviceKey) => {
|
|
3808
|
+
const match = staticSources.find((img2) => img2.device === deviceKey);
|
|
3818
3809
|
if (!match) return null;
|
|
3819
3810
|
const srcUrl = resolveImageUrl(match.imageUrl);
|
|
3820
3811
|
if (!srcUrl) return null;
|
|
@@ -3830,19 +3821,9 @@ var ImageGalleryNode = (props) => {
|
|
|
3830
3821
|
deviceKey
|
|
3831
3822
|
);
|
|
3832
3823
|
}),
|
|
3833
|
-
(() => {
|
|
3834
|
-
const img = staticFallback;
|
|
3835
|
-
const imageUrl = resolveImageUrl(img.imageUrl);
|
|
3836
|
-
if (!imageUrl) return null;
|
|
3837
|
-
const intrinsicWidth = parseMaybeNumber(img.intrinsicWidth);
|
|
3838
|
-
const intrinsicHeight = parseMaybeNumber(img.intrinsicHeight);
|
|
3839
|
-
const alt = img.title || "Gallery image";
|
|
3840
|
-
const styles = {};
|
|
3841
|
-
if (img.height) styles.height = img.height;
|
|
3842
|
-
if (img.width) styles.width = img.width;
|
|
3843
|
-
if (img.borderRadius) styles.borderRadius = img.borderRadius;
|
|
3824
|
+
/* @__PURE__ */ (() => {
|
|
3844
3825
|
return (
|
|
3845
|
-
|
|
3826
|
+
// eslint-disable-next-line @next/next/no-img-element
|
|
3846
3827
|
/* @__PURE__ */ jsx58(
|
|
3847
3828
|
"img",
|
|
3848
3829
|
{
|
|
@@ -4282,7 +4263,7 @@ var PageBodyRenderer_default = PageBodyRenderer;
|
|
|
4282
4263
|
|
|
4283
4264
|
// src/components/Toast.tsx
|
|
4284
4265
|
import { useState as useState8 } from "react";
|
|
4285
|
-
import { Fragment as
|
|
4266
|
+
import { Fragment as Fragment8, jsx as jsx61, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
4286
4267
|
var Toast = () => {
|
|
4287
4268
|
const [showToast, setShowToast] = useState8(false);
|
|
4288
4269
|
const [message, setMessage] = useState8("");
|
|
@@ -4325,7 +4306,7 @@ var Toast = () => {
|
|
|
4325
4306
|
const closeToast = () => {
|
|
4326
4307
|
setShowToast(false);
|
|
4327
4308
|
};
|
|
4328
|
-
return /* @__PURE__ */ jsx61(
|
|
4309
|
+
return /* @__PURE__ */ jsx61(Fragment8, { children: showToast && /* @__PURE__ */ jsx61("div", { className: "fixed top-2 flex justify-center w-1/2 max-w-xl left-1/2 -translate-x-1/2", style: { zIndex: 1e3 }, children: /* @__PURE__ */ jsxs33("div", { className: `w-full items-center flex justify-between p-3 rounded-md relative shadow border bg-${messageType}-soft`, children: [
|
|
4329
4310
|
/* @__PURE__ */ jsx61(
|
|
4330
4311
|
"span",
|
|
4331
4312
|
{
|
|
@@ -4445,7 +4426,7 @@ var ContentView = (props) => {
|
|
|
4445
4426
|
var ContentView_default = ContentView;
|
|
4446
4427
|
|
|
4447
4428
|
// src/components/dataForm/DataList.tsx
|
|
4448
|
-
import { Fragment as
|
|
4429
|
+
import { Fragment as Fragment9, jsx as jsx65, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
4449
4430
|
var DataList = (props) => {
|
|
4450
4431
|
console.log(props.dataset, "datasetssssss");
|
|
4451
4432
|
const router = useRouter();
|
|
@@ -4537,7 +4518,7 @@ var DataList = (props) => {
|
|
|
4537
4518
|
const showFirstPages = activePageNumber <= 5;
|
|
4538
4519
|
const showLastPages = activePageNumber > pages - 5;
|
|
4539
4520
|
if (showFirstPages) {
|
|
4540
|
-
return /* @__PURE__ */ jsxs35(
|
|
4521
|
+
return /* @__PURE__ */ jsxs35(Fragment9, { children: [
|
|
4541
4522
|
Array.from({ length: 8 }, (_, index) => index + 1).map((page) => /* @__PURE__ */ jsx65(React46.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx65(
|
|
4542
4523
|
Hyperlink,
|
|
4543
4524
|
{
|
|
@@ -4585,7 +4566,7 @@ var DataList = (props) => {
|
|
|
4585
4566
|
) })
|
|
4586
4567
|
] });
|
|
4587
4568
|
} else if (showLastPages) {
|
|
4588
|
-
return /* @__PURE__ */ jsxs35(
|
|
4569
|
+
return /* @__PURE__ */ jsxs35(Fragment9, { children: [
|
|
4589
4570
|
/* @__PURE__ */ jsx65(
|
|
4590
4571
|
Hyperlink,
|
|
4591
4572
|
{
|
|
@@ -4615,7 +4596,7 @@ var DataList = (props) => {
|
|
|
4615
4596
|
)
|
|
4616
4597
|
] });
|
|
4617
4598
|
} else {
|
|
4618
|
-
return /* @__PURE__ */ jsxs35(
|
|
4599
|
+
return /* @__PURE__ */ jsxs35(Fragment9, { children: [
|
|
4619
4600
|
/* @__PURE__ */ jsx65(
|
|
4620
4601
|
Hyperlink,
|
|
4621
4602
|
{
|
package/package.json
CHANGED