@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260429063933 → 0.8.1-dev.20260430100756

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -30,6 +30,249 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
30
30
  ));
31
31
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
32
32
 
33
+ // src/components/controls/view/TimeZoneAbbrevations.tsx
34
+ var timeZoneAbbreviations;
35
+ var init_TimeZoneAbbrevations = __esm({
36
+ "src/components/controls/view/TimeZoneAbbrevations.tsx"() {
37
+ "use strict";
38
+ timeZoneAbbreviations = {
39
+ "Asia/Calcutta": "IST",
40
+ "Asia/Kolkata": "IST",
41
+ "America/New_York": "EST",
42
+ "America/Los_Angeles": "PST",
43
+ "Europe/London": "GMT",
44
+ "Europe/Paris": "CET",
45
+ "Asia/Tokyo": "JST",
46
+ "America/Chicago": "CST",
47
+ "America/Denver": "MST",
48
+ "Asia/Shanghai": "CST",
49
+ "Asia/Hong_Kong": "HKT",
50
+ "Australia/Sydney": "AEST",
51
+ "Australia/Melbourne": "AEST",
52
+ "Australia/Perth": "AWST",
53
+ "Pacific/Auckland": "NZST",
54
+ "Europe/Berlin": "CET",
55
+ "Europe/Madrid": "CET",
56
+ "Europe/Rome": "CET",
57
+ "Europe/Athens": "EET",
58
+ "Europe/Istanbul": "TRT",
59
+ "Africa/Cairo": "EET",
60
+ "Africa/Johannesburg": "SAST",
61
+ "Asia/Dubai": "GST",
62
+ "Asia/Singapore": "SGT",
63
+ "Asia/Seoul": "KST",
64
+ "America/Toronto": "EST",
65
+ "America/Vancouver": "PST",
66
+ "America/Sao_Paulo": "BRT",
67
+ "America/Mexico_City": "CST",
68
+ "Asia/Manila": "PHT",
69
+ "Asia/Jakarta": "WIB",
70
+ "Asia/Bangkok": "ICT",
71
+ "Asia/Karachi": "PKT",
72
+ "Asia/Tehran": "IRST",
73
+ "Asia/Baghdad": "AST",
74
+ "Europe/Moscow": "MSK",
75
+ "Europe/Amsterdam": "CET",
76
+ "Europe/Brussels": "CET",
77
+ "Europe/Zurich": "CET",
78
+ "America/Anchorage": "AKST",
79
+ "Pacific/Honolulu": "HST",
80
+ "Antarctica/McMurdo": "NZST",
81
+ "Atlantic/Reykjavik": "GMT",
82
+ "Asia/Riyadh": "AST",
83
+ "America/Argentina/Buenos_Aires": "ART",
84
+ "America/Bogota": "COT",
85
+ "Africa/Nairobi": "EAT",
86
+ "Asia/Kuala_Lumpur": "MYT",
87
+ "Asia/Ho_Chi_Minh": "ICT",
88
+ "Europe/Warsaw": "CET",
89
+ "Europe/Prague": "CET",
90
+ "America/Phoenix": "MST",
91
+ "America/Indianapolis": "EST",
92
+ "Pacific/Fiji": "FJT",
93
+ "Asia/Colombo": "IST",
94
+ "Africa/Lagos": "WAT",
95
+ "America/Caracas": "VET",
96
+ "America/Halifax": "AST",
97
+ "Pacific/Tahiti": "TAHT",
98
+ "America/St_Johns": "NST",
99
+ "Europe/Bucharest": "EET",
100
+ "Europe/Helsinki": "EET",
101
+ "Europe/Kiev": "EET",
102
+ "Europe/Oslo": "CET",
103
+ "Europe/Stockholm": "CET",
104
+ "Europe/Lisbon": "WET",
105
+ "Asia/Beirut": "EET",
106
+ "Asia/Damascus": "EET",
107
+ "Asia/Jerusalem": "IST",
108
+ "Asia/Amman": "EET",
109
+ "America/Santiago": "CLT",
110
+ "America/Lima": "PET",
111
+ "America/Montevideo": "UYT",
112
+ "Asia/Tashkent": "UZT",
113
+ "Asia/Yerevan": "AMT",
114
+ "Asia/Baku": "AZT",
115
+ "Europe/Vilnius": "EET",
116
+ "Europe/Riga": "EET",
117
+ "Europe/Tallinn": "EET",
118
+ "Europe/Sofia": "EET",
119
+ "Africa/Casablanca": "WET",
120
+ "America/Guatemala": "CST",
121
+ "America/Panama": "EST",
122
+ "America/Costa_Rica": "CST",
123
+ "Pacific/Port_Moresby": "PGT",
124
+ "Asia/Makassar": "WITA",
125
+ "Asia/Vladivostok": "VLAT",
126
+ "Asia/Krasnoyarsk": "KRAT",
127
+ "Asia/Novosibirsk": "NOVT",
128
+ "Asia/Yakutsk": "YAKT",
129
+ "Asia/Sakhalin": "SAKT",
130
+ "Asia/Ulaanbaatar": "ULAT",
131
+ "Asia/Choibalsan": "CHOT",
132
+ "Asia/Omsk": "OMST",
133
+ "Asia/Kamchatka": "PETT",
134
+ "Pacific/Pago_Pago": "SST",
135
+ "Pacific/Guam": "ChST",
136
+ "Pacific/Saipan": "ChST",
137
+ "Pacific/Palau": "PWT",
138
+ "Pacific/Efate": "VUT",
139
+ "Pacific/Kosrae": "KOST",
140
+ "Pacific/Nauru": "NRT",
141
+ "Pacific/Tarawa": "GILT",
142
+ "Pacific/Enderbury": "PHOT",
143
+ "Pacific/Fakaofo": "TKT",
144
+ "Pacific/Chatham": "CHAST",
145
+ "Pacific/Tongatapu": "TOT",
146
+ "Pacific/Funafuti": "TVT",
147
+ "Pacific/Majuro": "MHT",
148
+ "Pacific/Kwajalein": "MHT",
149
+ "Pacific/Wake": "WAKT",
150
+ "Pacific/Wallis": "WFT"
151
+ };
152
+ }
153
+ });
154
+
155
+ // src/components/controls/view/DateViewClient.tsx
156
+ var DateViewClient_exports = {};
157
+ __export(DateViewClient_exports, {
158
+ default: () => DateViewClient_default
159
+ });
160
+ var import_react2, import_jsx_runtime2, DateViewClient, DateViewClient_default;
161
+ var init_DateViewClient = __esm({
162
+ "src/components/controls/view/DateViewClient.tsx"() {
163
+ "use strict";
164
+ "use client";
165
+ import_react2 = __toESM(require("react"));
166
+ init_TimeZoneAbbrevations();
167
+ import_jsx_runtime2 = require("react/jsx-runtime");
168
+ DateViewClient = (props) => {
169
+ const [offsetMilliseconds, setOffsetMilliseconds] = (0, import_react2.useState)(0);
170
+ const [timeZoneAbbr, setTimeZoneAbbr] = (0, import_react2.useState)("");
171
+ (0, import_react2.useEffect)(() => {
172
+ const now = /* @__PURE__ */ new Date();
173
+ const offsetMinutes = now.getTimezoneOffset();
174
+ setOffsetMilliseconds(offsetMinutes * 60 * 1e3);
175
+ setTimeZoneAbbr(
176
+ now.toLocaleTimeString("en", { timeZoneName: "short" }).split(" ")[2]
177
+ );
178
+ }, []);
179
+ const toUtcDate = (dateString) => {
180
+ const s = dateString.trim();
181
+ const iso = s.replace(" ", "T");
182
+ const utc = iso.endsWith("Z") || iso.includes("+") ? iso : iso + "Z";
183
+ return new Date(utc);
184
+ };
185
+ const toLocalDate = (utcDate) => {
186
+ return new Date(utcDate.getTime() - offsetMilliseconds);
187
+ };
188
+ const getRelativeTime = (dateString) => {
189
+ const now = /* @__PURE__ */ new Date();
190
+ const utcDate = toUtcDate(dateString);
191
+ const diffMs = now.getTime() - utcDate.getTime();
192
+ const diffSec = Math.floor(diffMs / 1e3);
193
+ const diffMin = Math.floor(diffSec / 60);
194
+ const diffHr = Math.floor(diffMin / 60);
195
+ const diffDay = Math.floor(diffHr / 24);
196
+ if (diffSec < 60) return "Just now";
197
+ if (diffMin < 60) return `${diffMin} minute${diffMin > 1 ? "s" : ""} ago`;
198
+ if (diffHr < 24) return `${diffHr} hour${diffHr > 1 ? "s" : ""} ago`;
199
+ if (diffDay < 7) return `${diffDay} day${diffDay > 1 ? "s" : ""} ago`;
200
+ return new Intl.DateTimeFormat("en", {
201
+ day: "2-digit",
202
+ month: "short",
203
+ year: "numeric"
204
+ }).format(toLocalDate(utcDate));
205
+ };
206
+ const parseAndFormatDate = (dateString, format) => {
207
+ if (format === "relative") {
208
+ return getRelativeTime(dateString);
209
+ }
210
+ const utcDate = toUtcDate(dateString);
211
+ const localDate = toLocalDate(utcDate);
212
+ switch (props.controlType) {
213
+ case "date":
214
+ return new Intl.DateTimeFormat("en", {
215
+ day: "2-digit",
216
+ month: "short",
217
+ year: "numeric"
218
+ }).format(localDate);
219
+ case "time":
220
+ return `${formatTime(localDate)} ${timeZoneAbbr} (${getTimePeriod(localDate)})`;
221
+ default:
222
+ return utcDate.getSeconds() === 0 ? new Intl.DateTimeFormat("en", {
223
+ day: "2-digit",
224
+ month: "short",
225
+ year: "numeric",
226
+ hour: "2-digit",
227
+ minute: "2-digit"
228
+ }).format(localDate) : new Intl.DateTimeFormat("en", {
229
+ day: "2-digit",
230
+ month: "short",
231
+ year: "numeric",
232
+ hour: "2-digit",
233
+ minute: "2-digit",
234
+ second: "2-digit"
235
+ }).format(localDate);
236
+ }
237
+ };
238
+ const formatTime = (localDate) => {
239
+ return localDate.getSeconds() === 0 ? new Intl.DateTimeFormat("en", {
240
+ hour: "2-digit",
241
+ minute: "2-digit"
242
+ }).format(localDate) : new Intl.DateTimeFormat("en", {
243
+ hour: "2-digit",
244
+ minute: "2-digit",
245
+ second: "2-digit"
246
+ }).format(localDate);
247
+ };
248
+ const getTimePeriod = (localDate) => {
249
+ const hours = localDate.getHours();
250
+ if (hours >= 5 && hours < 8) return "Early Morning";
251
+ if (hours >= 8 && hours < 12) return "Morning";
252
+ if (hours >= 12 && hours < 14) return "Noon";
253
+ if (hours >= 14 && hours < 17) return "Afternoon";
254
+ if (hours >= 17 && hours < 20) return "Evening";
255
+ if (hours >= 20 && hours < 22) return "Late Evening";
256
+ return "Night";
257
+ };
258
+ const getTimeZoneAbbreviation = (timeZone) => {
259
+ return timeZoneAbbreviations[timeZone] || timeZone;
260
+ };
261
+ let localDateTime = "";
262
+ try {
263
+ localDateTime = parseAndFormatDate(props.value, props.format);
264
+ } catch (error) {
265
+ console.error("Error parsing date:", props.value, error);
266
+ }
267
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react2.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "inline-flex flex-wrap gap-1", children: [
268
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { children: localDateTime }),
269
+ !props.format && props.controlType != "date" && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { children: timeZoneAbbr })
270
+ ] }) });
271
+ };
272
+ DateViewClient_default = DateViewClient;
273
+ }
274
+ });
275
+
33
276
  // src/components/ToastService.tsx
34
277
  var ToastService, ToastService_default;
35
278
  var init_ToastService = __esm({
@@ -1175,226 +1418,10 @@ var NumberView = (props) => {
1175
1418
  var NumberView_default = NumberView;
1176
1419
 
1177
1420
  // src/components/controls/view/DateView.tsx
1178
- var import_react2 = __toESM(require("react"));
1179
-
1180
- // src/components/controls/view/TimeZoneAbbrevations.tsx
1181
- var timeZoneAbbreviations = {
1182
- "Asia/Calcutta": "IST",
1183
- "Asia/Kolkata": "IST",
1184
- "America/New_York": "EST",
1185
- "America/Los_Angeles": "PST",
1186
- "Europe/London": "GMT",
1187
- "Europe/Paris": "CET",
1188
- "Asia/Tokyo": "JST",
1189
- "America/Chicago": "CST",
1190
- "America/Denver": "MST",
1191
- "Asia/Shanghai": "CST",
1192
- "Asia/Hong_Kong": "HKT",
1193
- "Australia/Sydney": "AEST",
1194
- "Australia/Melbourne": "AEST",
1195
- "Australia/Perth": "AWST",
1196
- "Pacific/Auckland": "NZST",
1197
- "Europe/Berlin": "CET",
1198
- "Europe/Madrid": "CET",
1199
- "Europe/Rome": "CET",
1200
- "Europe/Athens": "EET",
1201
- "Europe/Istanbul": "TRT",
1202
- "Africa/Cairo": "EET",
1203
- "Africa/Johannesburg": "SAST",
1204
- "Asia/Dubai": "GST",
1205
- "Asia/Singapore": "SGT",
1206
- "Asia/Seoul": "KST",
1207
- "America/Toronto": "EST",
1208
- "America/Vancouver": "PST",
1209
- "America/Sao_Paulo": "BRT",
1210
- "America/Mexico_City": "CST",
1211
- "Asia/Manila": "PHT",
1212
- "Asia/Jakarta": "WIB",
1213
- "Asia/Bangkok": "ICT",
1214
- "Asia/Karachi": "PKT",
1215
- "Asia/Tehran": "IRST",
1216
- "Asia/Baghdad": "AST",
1217
- "Europe/Moscow": "MSK",
1218
- "Europe/Amsterdam": "CET",
1219
- "Europe/Brussels": "CET",
1220
- "Europe/Zurich": "CET",
1221
- "America/Anchorage": "AKST",
1222
- "Pacific/Honolulu": "HST",
1223
- "Antarctica/McMurdo": "NZST",
1224
- "Atlantic/Reykjavik": "GMT",
1225
- "Asia/Riyadh": "AST",
1226
- "America/Argentina/Buenos_Aires": "ART",
1227
- "America/Bogota": "COT",
1228
- "Africa/Nairobi": "EAT",
1229
- "Asia/Kuala_Lumpur": "MYT",
1230
- "Asia/Ho_Chi_Minh": "ICT",
1231
- "Europe/Warsaw": "CET",
1232
- "Europe/Prague": "CET",
1233
- "America/Phoenix": "MST",
1234
- "America/Indianapolis": "EST",
1235
- "Pacific/Fiji": "FJT",
1236
- "Asia/Colombo": "IST",
1237
- "Africa/Lagos": "WAT",
1238
- "America/Caracas": "VET",
1239
- "America/Halifax": "AST",
1240
- "Pacific/Tahiti": "TAHT",
1241
- "America/St_Johns": "NST",
1242
- "Europe/Bucharest": "EET",
1243
- "Europe/Helsinki": "EET",
1244
- "Europe/Kiev": "EET",
1245
- "Europe/Oslo": "CET",
1246
- "Europe/Stockholm": "CET",
1247
- "Europe/Lisbon": "WET",
1248
- "Asia/Beirut": "EET",
1249
- "Asia/Damascus": "EET",
1250
- "Asia/Jerusalem": "IST",
1251
- "Asia/Amman": "EET",
1252
- "America/Santiago": "CLT",
1253
- "America/Lima": "PET",
1254
- "America/Montevideo": "UYT",
1255
- "Asia/Tashkent": "UZT",
1256
- "Asia/Yerevan": "AMT",
1257
- "Asia/Baku": "AZT",
1258
- "Europe/Vilnius": "EET",
1259
- "Europe/Riga": "EET",
1260
- "Europe/Tallinn": "EET",
1261
- "Europe/Sofia": "EET",
1262
- "Africa/Casablanca": "WET",
1263
- "America/Guatemala": "CST",
1264
- "America/Panama": "EST",
1265
- "America/Costa_Rica": "CST",
1266
- "Pacific/Port_Moresby": "PGT",
1267
- "Asia/Makassar": "WITA",
1268
- "Asia/Vladivostok": "VLAT",
1269
- "Asia/Krasnoyarsk": "KRAT",
1270
- "Asia/Novosibirsk": "NOVT",
1271
- "Asia/Yakutsk": "YAKT",
1272
- "Asia/Sakhalin": "SAKT",
1273
- "Asia/Ulaanbaatar": "ULAT",
1274
- "Asia/Choibalsan": "CHOT",
1275
- "Asia/Omsk": "OMST",
1276
- "Asia/Kamchatka": "PETT",
1277
- "Pacific/Pago_Pago": "SST",
1278
- "Pacific/Guam": "ChST",
1279
- "Pacific/Saipan": "ChST",
1280
- "Pacific/Palau": "PWT",
1281
- "Pacific/Efate": "VUT",
1282
- "Pacific/Kosrae": "KOST",
1283
- "Pacific/Nauru": "NRT",
1284
- "Pacific/Tarawa": "GILT",
1285
- "Pacific/Enderbury": "PHOT",
1286
- "Pacific/Fakaofo": "TKT",
1287
- "Pacific/Chatham": "CHAST",
1288
- "Pacific/Tongatapu": "TOT",
1289
- "Pacific/Funafuti": "TVT",
1290
- "Pacific/Majuro": "MHT",
1291
- "Pacific/Kwajalein": "MHT",
1292
- "Pacific/Wake": "WAKT",
1293
- "Pacific/Wallis": "WFT"
1294
- };
1295
-
1296
- // src/components/controls/view/DateView.tsx
1297
- var import_jsx_runtime2 = require("react/jsx-runtime");
1298
- var DateView = (props) => {
1299
- const userTimeZone = Intl.DateTimeFormat().resolvedOptions().timeZone;
1300
- const getTimeZoneAbbreviation = (timeZone) => {
1301
- return timeZoneAbbreviations[timeZone] || timeZone;
1302
- };
1303
- const getRelativeTime = (dateString) => {
1304
- const now = /* @__PURE__ */ new Date();
1305
- const date = /* @__PURE__ */ new Date(dateString + "Z");
1306
- const diffMs = now.getTime() - date.getTime();
1307
- const diffSec = Math.floor(diffMs / 1e3);
1308
- const diffMin = Math.floor(diffSec / 60);
1309
- const diffHr = Math.floor(diffMin / 60);
1310
- const diffDay = Math.floor(diffHr / 24);
1311
- if (diffSec < 60) return "Just now";
1312
- if (diffMin < 60) return `${diffMin} minute${diffMin > 1 ? "s" : ""} ago`;
1313
- if (diffHr < 24) return `${diffHr} hour${diffHr > 1 ? "s" : ""} ago`;
1314
- if (diffDay < 7) return `${diffDay} day${diffDay > 1 ? "s" : ""} ago`;
1315
- return new Intl.DateTimeFormat("en", {
1316
- day: "2-digit",
1317
- month: "short",
1318
- year: "numeric",
1319
- timeZone: userTimeZone
1320
- }).format(date);
1321
- };
1322
- console.log("DateView props:", props);
1323
- const parseAndFormatDate = (dateString, format) => {
1324
- const parsedDate = /* @__PURE__ */ new Date(dateString + "Z");
1325
- if (format === "relative") {
1326
- return getRelativeTime(dateString);
1327
- }
1328
- switch (props.controlType) {
1329
- case "date":
1330
- return new Intl.DateTimeFormat("en", {
1331
- day: "2-digit",
1332
- month: "short",
1333
- year: "numeric",
1334
- timeZone: userTimeZone
1335
- }).format(parsedDate);
1336
- case "time":
1337
- return `${formatTime(parsedDate)} ${getTimeZoneAbbreviation(userTimeZone)} (${getTimePeriod(parsedDate)})`;
1338
- default:
1339
- return parsedDate.getSeconds() === 0 ? new Intl.DateTimeFormat("en", {
1340
- day: "2-digit",
1341
- month: "short",
1342
- year: "numeric",
1343
- hour: "2-digit",
1344
- minute: "2-digit",
1345
- timeZone: userTimeZone
1346
- }).format(parsedDate) : new Intl.DateTimeFormat("en", {
1347
- day: "2-digit",
1348
- month: "short",
1349
- year: "numeric",
1350
- hour: "2-digit",
1351
- minute: "2-digit",
1352
- second: "2-digit",
1353
- timeZone: userTimeZone
1354
- }).format(parsedDate);
1355
- }
1356
- };
1357
- const formatTime = (date) => {
1358
- return date.getSeconds() === 0 ? new Intl.DateTimeFormat("en", {
1359
- hour: "2-digit",
1360
- minute: "2-digit",
1361
- timeZone: userTimeZone
1362
- }).format(date) : new Intl.DateTimeFormat("en", {
1363
- hour: "2-digit",
1364
- minute: "2-digit",
1365
- second: "2-digit",
1366
- timeZone: userTimeZone
1367
- }).format(date);
1368
- };
1369
- const getTimePeriod = (date) => {
1370
- const localHours = Number(
1371
- new Intl.DateTimeFormat("en", {
1372
- hour: "numeric",
1373
- hour12: false,
1374
- timeZone: userTimeZone
1375
- }).format(date)
1376
- );
1377
- if (localHours >= 5 && localHours < 8) return "Early Morning";
1378
- if (localHours >= 8 && localHours < 12) return "Morning";
1379
- if (localHours >= 12 && localHours < 14) return "Noon";
1380
- if (localHours >= 14 && localHours < 17) return "Afternoon";
1381
- if (localHours >= 17 && localHours < 20) return "Evening";
1382
- if (localHours >= 20 && localHours < 22) return "Late Evening";
1383
- return "Night";
1384
- };
1385
- let localDateTime = "";
1386
- let timeZoneAbbreviation = "";
1387
- try {
1388
- localDateTime = parseAndFormatDate(props.value, props.format);
1389
- timeZoneAbbreviation = getTimeZoneAbbreviation(userTimeZone);
1390
- } catch (error) {
1391
- console.error("Error parsing date:", props.value, error);
1392
- }
1393
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react2.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "inline-flex flex-wrap gap-1", children: [
1394
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { children: localDateTime }),
1395
- !props.format && props.controlType != "date" && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { children: timeZoneAbbreviation })
1396
- ] }) });
1397
- };
1421
+ var import_dynamic = __toESM(require("next/dynamic"));
1422
+ var DateView = (0, import_dynamic.default)(() => Promise.resolve().then(() => (init_DateViewClient(), DateViewClient_exports)), {
1423
+ ssr: false
1424
+ });
1398
1425
  var DateView_default = DateView;
1399
1426
 
1400
1427
  // src/components/controls/view/BooleanView.tsx
@@ -3185,7 +3212,7 @@ var import_react35 = __toESM(require("react"));
3185
3212
 
3186
3213
  // src/components/pageRenderingEngine/nodes/ImageNode.tsx
3187
3214
  var import_react33 = __toESM(require("react"));
3188
- var import_dynamic = __toESM(require("next/dynamic"));
3215
+ var import_dynamic2 = __toESM(require("next/dynamic"));
3189
3216
 
3190
3217
  // src/components/DeviceAssetSelector.tsx
3191
3218
  init_HlsPlayer();
@@ -3308,7 +3335,7 @@ var DeviceAssetSelector_default = DeviceAssetSelector;
3308
3335
 
3309
3336
  // src/components/pageRenderingEngine/nodes/ImageNode.tsx
3310
3337
  var import_jsx_runtime43 = require("react/jsx-runtime");
3311
- var HlsPlayer2 = (0, import_dynamic.default)(() => Promise.resolve().then(() => (init_HlsPlayer(), HlsPlayer_exports)), {
3338
+ var HlsPlayer2 = (0, import_dynamic2.default)(() => Promise.resolve().then(() => (init_HlsPlayer(), HlsPlayer_exports)), {
3312
3339
  ssr: false
3313
3340
  });
3314
3341
  var getNestedValue = (obj, path) => {
@@ -3437,9 +3464,9 @@ var ImageNode_default = ImageNode;
3437
3464
 
3438
3465
  // src/components/pageRenderingEngine/nodes/LinkNode.tsx
3439
3466
  init_StyleTypes();
3440
- var import_dynamic2 = __toESM(require("next/dynamic"));
3467
+ var import_dynamic3 = __toESM(require("next/dynamic"));
3441
3468
  var import_jsx_runtime45 = require("react/jsx-runtime");
3442
- var LinkNodeButton2 = (0, import_dynamic2.default)(() => Promise.resolve().then(() => (init_LinkNodeButton(), LinkNodeButton_exports)), {
3469
+ var LinkNodeButton2 = (0, import_dynamic3.default)(() => Promise.resolve().then(() => (init_LinkNodeButton(), LinkNodeButton_exports)), {
3443
3470
  ssr: false
3444
3471
  });
3445
3472
  var LinkNode = (props) => {
@@ -3866,9 +3893,9 @@ var QuoteNode_default = QuoteNode;
3866
3893
 
3867
3894
  // src/components/pageRenderingEngine/nodes/CodeNode.tsx
3868
3895
  var import_react42 = __toESM(require("react"));
3869
- var import_dynamic3 = __toESM(require("next/dynamic"));
3896
+ var import_dynamic4 = __toESM(require("next/dynamic"));
3870
3897
  var import_jsx_runtime55 = require("react/jsx-runtime");
3871
- var CopyButton2 = (0, import_dynamic3.default)(() => Promise.resolve().then(() => (init_CopyButton(), CopyButton_exports)), {
3898
+ var CopyButton2 = (0, import_dynamic4.default)(() => Promise.resolve().then(() => (init_CopyButton(), CopyButton_exports)), {
3872
3899
  ssr: false,
3873
3900
  // optional: fallback UI while loading
3874
3901
  loading: () => /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { className: "text-gray-400 text-xs", children: "Copy" })
@@ -3938,6 +3965,13 @@ var WidgetNode = (props) => {
3938
3965
  widgetParameters = rawWidgetParams;
3939
3966
  }
3940
3967
  }
3968
+ if (props.dataitem && typeof props.dataitem === "object") {
3969
+ Object.keys(widgetParameters).forEach((key) => {
3970
+ if (props.dataitem[key] !== void 0 && props.dataitem[key] !== null) {
3971
+ widgetParameters[key] = props.dataitem[key];
3972
+ }
3973
+ });
3974
+ }
3941
3975
  const resolveValue = (val) => {
3942
3976
  if (typeof val === "string") {
3943
3977
  const m = /^\{(.+)\}$/.exec(val);
@@ -4130,9 +4164,9 @@ var FormContainerNode_default = FormContainerNode;
4130
4164
  var import_react49 = __toESM(require("react"));
4131
4165
 
4132
4166
  // src/components/pageRenderingEngine/nodes/EmbedNode.tsx
4133
- var import_dynamic4 = __toESM(require("next/dynamic"));
4167
+ var import_dynamic5 = __toESM(require("next/dynamic"));
4134
4168
  var import_jsx_runtime62 = require("react/jsx-runtime");
4135
- var IframeClient2 = (0, import_dynamic4.default)(() => Promise.resolve().then(() => (init_IframeClient(), IframeClient_exports)), {
4169
+ var IframeClient2 = (0, import_dynamic5.default)(() => Promise.resolve().then(() => (init_IframeClient(), IframeClient_exports)), {
4136
4170
  ssr: false
4137
4171
  });
4138
4172
  var EmbedNode = (props) => {
@@ -4987,9 +5021,9 @@ var Pagination = (props) => {
4987
5021
  var Pagination_default = Pagination;
4988
5022
 
4989
5023
  // src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
4990
- var import_dynamic5 = __toESM(require("next/dynamic"));
5024
+ var import_dynamic6 = __toESM(require("next/dynamic"));
4991
5025
  var import_jsx_runtime66 = require("react/jsx-runtime");
4992
- var HlsPlayer3 = (0, import_dynamic5.default)(() => Promise.resolve().then(() => (init_HlsPlayer(), HlsPlayer_exports)), { ssr: false });
5026
+ var HlsPlayer3 = (0, import_dynamic6.default)(() => Promise.resolve().then(() => (init_HlsPlayer(), HlsPlayer_exports)), { ssr: false });
4993
5027
  var deviceToMediaQuery = (device) => {
4994
5028
  switch (device) {
4995
5029
  case "sm":