@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260521120239 → 0.8.1-dev.20260522061527

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.
Files changed (3) hide show
  1. package/dist/index.js +1085 -1054
  2. package/dist/index.mjs +579 -548
  3. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -153,280 +153,19 @@ var init_DateViewClient = __esm({
153
153
  }
154
154
  });
155
155
 
156
- // src/components/controls/view/DateTimeViewClient.tsx
157
- var DateTimeViewClient_exports = {};
158
- __export(DateTimeViewClient_exports, {
159
- default: () => DateTimeViewClient_default
160
- });
161
- var import_jsx_runtime11, DateTimeViewClient, DateTimeViewClient_default;
162
- var init_DateTimeViewClient = __esm({
163
- "src/components/controls/view/DateTimeViewClient.tsx"() {
164
- "use strict";
165
- "use client";
166
- init_DateViewClient();
167
- import_jsx_runtime11 = require("react/jsx-runtime");
168
- DateTimeViewClient = (props) => {
169
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(DateViewClient_default, { ...props, controlType: "datetime" });
170
- };
171
- DateTimeViewClient_default = DateTimeViewClient;
172
- }
173
- });
174
-
175
- // src/components/ToastService.tsx
176
- var ToastService, ToastService_default;
177
- var init_ToastService = __esm({
178
- "src/components/ToastService.tsx"() {
179
- "use strict";
180
- ToastService = class _ToastService {
181
- static initialize(showToast, closeToast) {
182
- _ToastService.showToast = showToast;
183
- _ToastService.closeToast = closeToast;
184
- }
185
- static showError(message) {
186
- if (_ToastService.showToast) {
187
- _ToastService.showToast(message, "error");
188
- }
189
- }
190
- static showInfo(message) {
191
- if (_ToastService.showToast) {
192
- _ToastService.showToast(message, "info");
193
- }
194
- }
195
- static showWarning(message) {
196
- if (_ToastService.showToast) {
197
- _ToastService.showToast(message, "warning");
198
- }
199
- }
200
- static showSuccess(message) {
201
- if (_ToastService.showToast) {
202
- _ToastService.showToast(message, "success");
203
- }
204
- }
205
- static close() {
206
- if (_ToastService.closeToast) {
207
- _ToastService.closeToast();
208
- }
209
- }
210
- };
211
- ToastService_default = ToastService;
212
- }
213
- });
214
-
215
- // src/components/StyleTypes.tsx
216
- var buttonClasses, progressClasses;
217
- var init_StyleTypes = __esm({
218
- "src/components/StyleTypes.tsx"() {
219
- "use strict";
220
- buttonClasses = /* @__PURE__ */ new Map([
221
- [
222
- "Primary" /* Solid */,
223
- "btn-solid relative inline-flex items-center justify-center rounded px-4 py-3 lg:py-2 font-medium shadow-sm hover:shadow-lg focus:outline-none active:scale-95 disabled:opacity-50 disabled:cursor-not-allowed transition duration-150 ease-in-out"
224
- ],
225
- [
226
- "PrimaryHollow" /* Hollow */,
227
- "btn-hollow inline-flex font-medium items-center justify-center px-4 py-3 lg:py-2 rounded hover:shadow-md focus:outline-none transition duration-150 ease-in-out active:scale-95"
228
- ],
229
- ["Link" /* Link */, "btn-link"]
230
- ]);
231
- progressClasses = /* @__PURE__ */ new Map([
232
- ["Primary" /* Solid */, ""],
233
- ["PrimaryHollow" /* Hollow */, ""],
234
- ["Link" /* Link */, ""]
235
- ]);
236
- }
237
- });
238
-
239
- // src/components/ClientButton.tsx
240
- var import_react23, import_jsx_runtime25, ClientButton, ClientButton_default;
241
- var init_ClientButton = __esm({
242
- "src/components/ClientButton.tsx"() {
243
- "use strict";
244
- "use client";
245
- import_react23 = __toESM(require("react"));
246
- init_ToastService();
247
- init_StyleTypes();
248
- import_jsx_runtime25 = require("react/jsx-runtime");
249
- ClientButton = (props) => {
250
- const execute = async (event) => {
251
- if (props.onClick !== void 0) {
252
- props.onClick();
253
- } else {
254
- ToastService_default.showError("No action defined.");
255
- }
256
- };
257
- let buttonClass = props.ButtonType ? buttonClasses.get(props.ButtonType) : buttonClasses.get("Primary" /* Solid */);
258
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_react23.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
259
- "button",
260
- {
261
- type: "button",
262
- onClick: execute,
263
- className: buttonClass + " " + props.className,
264
- children: props.children
265
- }
266
- ) });
267
- };
268
- ClientButton_default = ClientButton;
269
- }
270
- });
271
-
272
- // src/components/Confirm.tsx
273
- var import_react24, import_jsx_runtime26, Confirm, Confirm_default;
274
- var init_Confirm = __esm({
275
- "src/components/Confirm.tsx"() {
276
- "use strict";
277
- "use client";
278
- import_react24 = require("react");
279
- init_ClientButton();
280
- init_StyleTypes();
281
- import_jsx_runtime26 = require("react/jsx-runtime");
282
- Confirm = ({ message, onConfirm, onCancel }) => {
283
- const [showModal, setShowModal] = (0, import_react24.useState)(true);
284
- const handleConfirmAction = () => {
285
- setShowModal(false);
286
- if (onConfirm) {
287
- onConfirm();
288
- }
289
- };
290
- const handleCancelAction = () => {
291
- setShowModal(false);
292
- if (onCancel) {
293
- onCancel();
294
- }
295
- };
296
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_jsx_runtime26.Fragment, { children: showModal && /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "fixed inset-0 flex items-center justify-center z-50", children: [
297
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "absolute inset-0 bg-black opacity-70" }),
298
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "bg-white rounded-md p-6 w-2/6 shadow border z-50", children: [
299
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "text-xl font-medium mb-4", children: "Confirmation" }),
300
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "mb-4", children: message }),
301
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "flex justify-end gap-8", children: [
302
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
303
- ClientButton_default,
304
- {
305
- onClick: handleCancelAction,
306
- ButtonType: "PrimaryHollow" /* Hollow */,
307
- children: "Cancel"
308
- }
309
- ),
310
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
311
- ClientButton_default,
312
- {
313
- onClick: handleConfirmAction,
314
- children: "Confirm"
315
- }
316
- )
317
- ] })
318
- ] })
319
- ] }) });
320
- };
321
- Confirm_default = Confirm;
322
- {
323
- }
324
- }
325
- });
326
-
327
- // src/components/Button.tsx
328
- var import_react25, import_jsx_runtime27, Button, Button_default;
329
- var init_Button = __esm({
330
- "src/components/Button.tsx"() {
331
- "use strict";
332
- "use client";
333
- import_react25 = __toESM(require("react"));
334
- init_ToastService();
335
- init_StyleTypes();
336
- init_Confirm();
337
- import_jsx_runtime27 = require("react/jsx-runtime");
338
- Button = (props) => {
339
- const [inProgress, setInProgress] = (0, import_react25.useState)(false);
340
- const [isActionPerformed, setIsActionPerformed] = (0, import_react25.useState)(false);
341
- const [responseMessage, setResponseMessage] = (0, import_react25.useState)(null);
342
- const [showModal, setShowModal] = (0, import_react25.useState)(null);
343
- const execute = async (event) => {
344
- event.preventDefault();
345
- event.stopPropagation();
346
- if (props.confirm) {
347
- const confirmed = await showConfirmation("Are you sure you want to delete this item?");
348
- setShowModal(null);
349
- if (!confirmed) {
350
- return;
351
- }
352
- }
353
- if (props.oneTimeAction && isActionPerformed) {
354
- return;
355
- }
356
- setInProgress(true);
357
- let isValid = true;
358
- if (props.onValidate !== void 0) {
359
- isValid = await props.onValidate();
360
- if (!isValid) {
361
- setInProgress(false);
362
- ToastService_default.showError("There are errors in the form. Please fix them before proceeding.");
363
- return;
364
- }
365
- }
366
- if (props.onClick !== void 0) {
367
- let response = await props.onClick();
368
- if (response.isSuccessful) {
369
- setIsActionPerformed(true);
370
- setResponseMessage(response.message);
371
- if (props.showToast) {
372
- ToastService_default.showInfo(response.message || "");
373
- }
374
- } else {
375
- ToastService_default.showError(response.message || "");
376
- }
377
- } else {
378
- ToastService_default.showError("No action defined.");
379
- }
380
- setInProgress(false);
381
- };
382
- const showConfirmation = (message) => {
383
- return new Promise((resolve) => {
384
- const onConfirm = () => resolve(true);
385
- const onCancel = () => resolve(false);
386
- setShowModal(/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Confirm_default, { message: props.confirmationMessage, onConfirm, onCancel }));
387
- });
388
- };
389
- let buttonClass = props.ButtonType ? buttonClasses.get(props.ButtonType) : buttonClasses.get("Primary" /* Solid */);
390
- let progressClass = props.ButtonType ? progressClasses.get(props.ButtonType) : progressClasses.get("Primary" /* Solid */);
391
- const isDisabled = inProgress || isActionPerformed && props.oneTimeAction;
392
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_react25.default.Fragment, { children: [
393
- /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
394
- "button",
395
- {
396
- type: "submit",
397
- onClick: execute,
398
- disabled: props.disabled,
399
- title: isDisabled ? "The button is disabled to prevent any action" : "",
400
- className: buttonClass + " relative " + props.className,
401
- children: [
402
- isActionPerformed && props.oneTimeAction && responseMessage ? responseMessage : props.children,
403
- inProgress && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react25.default.Fragment, { children: props.hideProgressIndicator === true ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "absolute bottom-0 left-0 h-0.5 bg-gray-400 rounded animate-progress" }) : /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("svg", { className: "animate-spin ml-2 mr-3 h-5 w-5 " + progressClass, xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", children: [
404
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("circle", { className: "opacity-25", cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "4" }),
405
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("path", { className: "opacity-75", fill: "currentColor", d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z" })
406
- ] }) })
407
- ]
408
- }
409
- ),
410
- showModal
411
- ] });
412
- };
413
- Button_default = Button;
414
- }
415
- });
416
-
417
156
  // src/components/HlsPlayer.tsx
418
157
  var HlsPlayer_exports = {};
419
158
  __export(HlsPlayer_exports, {
420
159
  default: () => HlsPlayer_default
421
160
  });
422
- var import_react32, import_hls, import_jsx_runtime42, pickSource, requestFullscreen, exitFullscreen, getFullscreenElement, HlsPlayer, HlsPlayer_default;
161
+ var import_react4, import_hls, import_jsx_runtime4, pickSource, requestFullscreen, exitFullscreen, getFullscreenElement, HlsPlayer, HlsPlayer_default;
423
162
  var init_HlsPlayer = __esm({
424
163
  "src/components/HlsPlayer.tsx"() {
425
164
  "use strict";
426
165
  "use client";
427
- import_react32 = __toESM(require("react"));
166
+ import_react4 = __toESM(require("react"));
428
167
  import_hls = __toESM(require("hls.js"));
429
- import_jsx_runtime42 = require("react/jsx-runtime");
168
+ import_jsx_runtime4 = require("react/jsx-runtime");
430
169
  pickSource = (sources) => {
431
170
  for (const { src, media } of sources) {
432
171
  if (media && window.matchMedia(media).matches) return src;
@@ -451,7 +190,7 @@ var init_HlsPlayer = __esm({
451
190
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
452
191
  document.fullscreenElement ?? document.webkitFullscreenElement ?? null
453
192
  );
454
- HlsPlayer = import_react32.default.memo(
193
+ HlsPlayer = import_react4.default.memo(
455
194
  ({
456
195
  sources,
457
196
  assetUrl,
@@ -463,26 +202,26 @@ var init_HlsPlayer = __esm({
463
202
  playOptions = "autoplay",
464
203
  placementCode = ""
465
204
  }) => {
466
- const containerRef = (0, import_react32.useRef)(null);
467
- const videoRef = (0, import_react32.useRef)(null);
468
- const hlsRef = (0, import_react32.useRef)(null);
205
+ const containerRef = (0, import_react4.useRef)(null);
206
+ const videoRef = (0, import_react4.useRef)(null);
207
+ const hlsRef = (0, import_react4.useRef)(null);
469
208
  const isPlayOnHover = playOptions === "playOnHover";
470
209
  const startsMuted = playOptions === "autoplay" || isPlayOnHover;
471
- const [isPlaying, setIsPlaying] = (0, import_react32.useState)(playOptions === "autoplay");
472
- const [isHovered, setIsHovered] = (0, import_react32.useState)(false);
473
- const [isMobile, setIsMobile] = (0, import_react32.useState)(false);
474
- const [isControlsVisible, setIsControlsVisible] = (0, import_react32.useState)(true);
475
- const [isPosterVisible, setIsPosterVisible] = (0, import_react32.useState)(true);
476
- const [isMuted, setIsMuted] = (0, import_react32.useState)(startsMuted);
477
- const [isFullscreen, setIsFullscreen] = (0, import_react32.useState)(false);
478
- const wasManuallyPausedRef = (0, import_react32.useRef)(false);
479
- const inactivityTimerRef = (0, import_react32.useRef)(null);
480
- const clickTimerRef = (0, import_react32.useRef)(null);
481
- const hlsInitializedRef = (0, import_react32.useRef)(false);
210
+ const [isPlaying, setIsPlaying] = (0, import_react4.useState)(playOptions === "autoplay");
211
+ const [isHovered, setIsHovered] = (0, import_react4.useState)(false);
212
+ const [isMobile, setIsMobile] = (0, import_react4.useState)(false);
213
+ const [isControlsVisible, setIsControlsVisible] = (0, import_react4.useState)(true);
214
+ const [isPosterVisible, setIsPosterVisible] = (0, import_react4.useState)(true);
215
+ const [isMuted, setIsMuted] = (0, import_react4.useState)(startsMuted);
216
+ const [isFullscreen, setIsFullscreen] = (0, import_react4.useState)(false);
217
+ const wasManuallyPausedRef = (0, import_react4.useRef)(false);
218
+ const inactivityTimerRef = (0, import_react4.useRef)(null);
219
+ const clickTimerRef = (0, import_react4.useRef)(null);
220
+ const hlsInitializedRef = (0, import_react4.useRef)(false);
482
221
  const INACTIVITY_DELAY = 2500;
483
222
  const CLICK_DEBOUNCE = 220;
484
223
  const resolvedSources = sources && sources.length > 0 ? sources : assetUrl ? [{ src: assetUrl, posterUrl }] : [];
485
- (0, import_react32.useEffect)(() => {
224
+ (0, import_react4.useEffect)(() => {
486
225
  const checkMobile = () => {
487
226
  const hasTouch = "ontouchstart" in window || navigator.maxTouchPoints > 0;
488
227
  const isSmallScreen = window.innerWidth <= 768;
@@ -495,7 +234,7 @@ var init_HlsPlayer = __esm({
495
234
  window.addEventListener("resize", checkMobile);
496
235
  return () => window.removeEventListener("resize", checkMobile);
497
236
  }, []);
498
- (0, import_react32.useEffect)(() => {
237
+ (0, import_react4.useEffect)(() => {
499
238
  const onFullscreenChange = () => {
500
239
  setIsFullscreen(getFullscreenElement() === containerRef.current);
501
240
  };
@@ -506,7 +245,7 @@ var init_HlsPlayer = __esm({
506
245
  document.removeEventListener("webkitfullscreenchange", onFullscreenChange);
507
246
  };
508
247
  }, []);
509
- (0, import_react32.useEffect)(() => {
248
+ (0, import_react4.useEffect)(() => {
510
249
  if (isPlaying) {
511
250
  setIsPosterVisible(false);
512
251
  } else {
@@ -514,7 +253,7 @@ var init_HlsPlayer = __esm({
514
253
  if (!v || v.currentTime === 0) setIsPosterVisible(true);
515
254
  }
516
255
  }, [isPlaying]);
517
- const resetInactivityTimer = (0, import_react32.useCallback)(() => {
256
+ const resetInactivityTimer = (0, import_react4.useCallback)(() => {
518
257
  setIsControlsVisible(true);
519
258
  if (inactivityTimerRef.current) clearTimeout(inactivityTimerRef.current);
520
259
  if (isPlaying) {
@@ -524,19 +263,19 @@ var init_HlsPlayer = __esm({
524
263
  );
525
264
  }
526
265
  }, [isPlaying]);
527
- (0, import_react32.useEffect)(() => {
266
+ (0, import_react4.useEffect)(() => {
528
267
  if (!isPlaying) {
529
268
  if (inactivityTimerRef.current) clearTimeout(inactivityTimerRef.current);
530
269
  setIsControlsVisible(true);
531
270
  }
532
271
  }, [isPlaying]);
533
- (0, import_react32.useEffect)(() => {
272
+ (0, import_react4.useEffect)(() => {
534
273
  return () => {
535
274
  if (inactivityTimerRef.current) clearTimeout(inactivityTimerRef.current);
536
275
  if (clickTimerRef.current) clearTimeout(clickTimerRef.current);
537
276
  };
538
277
  }, []);
539
- const initHls = (0, import_react32.useCallback)((autoPlayAfterLoad) => {
278
+ const initHls = (0, import_react4.useCallback)((autoPlayAfterLoad) => {
540
279
  const v = videoRef.current;
541
280
  if (!v || resolvedSources.length === 0) return;
542
281
  if (hlsRef.current) {
@@ -564,7 +303,7 @@ var init_HlsPlayer = __esm({
564
303
  }
565
304
  }
566
305
  }, [JSON.stringify(resolvedSources)]);
567
- (0, import_react32.useEffect)(() => {
306
+ (0, import_react4.useEffect)(() => {
568
307
  if (isPlayOnHover) return;
569
308
  initHls(
570
309
  /* autoPlayAfterLoad */
@@ -578,7 +317,7 @@ var init_HlsPlayer = __esm({
578
317
  hlsInitializedRef.current = false;
579
318
  };
580
319
  }, [JSON.stringify(resolvedSources), isPlayOnHover]);
581
- const handlePlayPause = (0, import_react32.useCallback)(() => {
320
+ const handlePlayPause = (0, import_react4.useCallback)(() => {
582
321
  const v = videoRef.current;
583
322
  if (!v) return;
584
323
  if (v.paused) {
@@ -590,13 +329,13 @@ var init_HlsPlayer = __esm({
590
329
  setIsPlaying(false);
591
330
  }
592
331
  }, []);
593
- const handleMuteToggle = (0, import_react32.useCallback)(() => {
332
+ const handleMuteToggle = (0, import_react4.useCallback)(() => {
594
333
  const v = videoRef.current;
595
334
  if (!v) return;
596
335
  v.muted = !v.muted;
597
336
  setIsMuted(v.muted);
598
337
  }, []);
599
- const handleFullscreenToggle = (0, import_react32.useCallback)(() => {
338
+ const handleFullscreenToggle = (0, import_react4.useCallback)(() => {
600
339
  const container = containerRef.current;
601
340
  if (!container) return;
602
341
  if (getFullscreenElement() === container) {
@@ -605,20 +344,20 @@ var init_HlsPlayer = __esm({
605
344
  requestFullscreen(container).catch(console.error);
606
345
  }
607
346
  }, []);
608
- const handleVideoClick = (0, import_react32.useCallback)(() => {
347
+ const handleVideoClick = (0, import_react4.useCallback)(() => {
609
348
  if (clickTimerRef.current) clearTimeout(clickTimerRef.current);
610
349
  clickTimerRef.current = setTimeout(() => {
611
350
  handlePlayPause();
612
351
  }, CLICK_DEBOUNCE);
613
352
  }, [handlePlayPause]);
614
- const handleVideoDoubleClick = (0, import_react32.useCallback)(() => {
353
+ const handleVideoDoubleClick = (0, import_react4.useCallback)(() => {
615
354
  if (clickTimerRef.current) {
616
355
  clearTimeout(clickTimerRef.current);
617
356
  clickTimerRef.current = null;
618
357
  }
619
358
  handleFullscreenToggle();
620
359
  }, [handleFullscreenToggle]);
621
- const handleMouseEnter = (0, import_react32.useCallback)(() => {
360
+ const handleMouseEnter = (0, import_react4.useCallback)(() => {
622
361
  if (isMobile) return;
623
362
  setIsHovered(true);
624
363
  resetInactivityTimer();
@@ -633,7 +372,7 @@ var init_HlsPlayer = __esm({
633
372
  }
634
373
  }
635
374
  }, [isPlayOnHover, isMobile, resetInactivityTimer, initHls]);
636
- const handleMouseLeave = (0, import_react32.useCallback)(() => {
375
+ const handleMouseLeave = (0, import_react4.useCallback)(() => {
637
376
  if (isMobile) return;
638
377
  setIsHovered(false);
639
378
  if (inactivityTimerRef.current) clearTimeout(inactivityTimerRef.current);
@@ -644,7 +383,7 @@ var init_HlsPlayer = __esm({
644
383
  setIsPlaying(false);
645
384
  }
646
385
  }, [isPlayOnHover, isMobile, isPlaying]);
647
- const handleMouseMove = (0, import_react32.useCallback)(() => {
386
+ const handleMouseMove = (0, import_react4.useCallback)(() => {
648
387
  if (isMobile) return;
649
388
  resetInactivityTimer();
650
389
  }, [isMobile, resetInactivityTimer]);
@@ -674,7 +413,7 @@ var init_HlsPlayer = __esm({
674
413
  if (resolvedSources.length === 0) return null;
675
414
  const showMuteButton = !showControls && !isPlayOnHover;
676
415
  const showExpandButton = !showControls && !isPlayOnHover;
677
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
416
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
678
417
  "div",
679
418
  {
680
419
  ref: containerRef,
@@ -683,7 +422,7 @@ var init_HlsPlayer = __esm({
683
422
  onMouseLeave: handleMouseLeave,
684
423
  onMouseMove: handleMouseMove,
685
424
  children: [
686
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
425
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
687
426
  "video",
688
427
  {
689
428
  ref: videoRef,
@@ -697,7 +436,7 @@ var init_HlsPlayer = __esm({
697
436
  preload: isPlayOnHover ? "none" : "auto",
698
437
  onClick: handleVideoClick,
699
438
  onDoubleClick: handleVideoDoubleClick,
700
- children: !isPlayOnHover && resolvedSources.map(({ src, media }, i) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
439
+ children: !isPlayOnHover && resolvedSources.map(({ src, media }, i) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
701
440
  "source",
702
441
  {
703
442
  src,
@@ -708,7 +447,7 @@ var init_HlsPlayer = __esm({
708
447
  ))
709
448
  }
710
449
  ),
711
- fallbackPoster && /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
450
+ fallbackPoster && /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
712
451
  "picture",
713
452
  {
714
453
  className: "absolute inset-0 pointer-events-none",
@@ -717,8 +456,8 @@ var init_HlsPlayer = __esm({
717
456
  transition: "opacity 0.4s ease"
718
457
  },
719
458
  children: [
720
- posterSources.map(({ media, posterUrl: src }, i) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("source", { media, srcSet: src }, i)),
721
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
459
+ posterSources.map(({ media, posterUrl: src }, i) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("source", { media, srcSet: src }, i)),
460
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
722
461
  "img",
723
462
  {
724
463
  src: fallbackPoster,
@@ -732,7 +471,7 @@ var init_HlsPlayer = __esm({
732
471
  ]
733
472
  }
734
473
  ),
735
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("style", { children: `
474
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("style", { children: `
736
475
  .hls-play-btn {
737
476
  will-change: transform;
738
477
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
@@ -741,7 +480,7 @@ var init_HlsPlayer = __esm({
741
480
  transform: scale(1.08);
742
481
  }
743
482
  ` }),
744
- !isPlayOnHover && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
483
+ !isPlayOnHover && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
745
484
  "div",
746
485
  {
747
486
  className: "absolute inset-0 flex items-center justify-center pointer-events-none",
@@ -749,7 +488,7 @@ var init_HlsPlayer = __esm({
749
488
  opacity: isControlsVisible ? 1 : 0,
750
489
  transition: "opacity 0.3s ease"
751
490
  },
752
- children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
491
+ children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
753
492
  "button",
754
493
  {
755
494
  type: "button",
@@ -775,7 +514,7 @@ var init_HlsPlayer = __esm({
775
514
  overflow: "hidden"
776
515
  },
777
516
  children: [
778
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
517
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
779
518
  "div",
780
519
  {
781
520
  style: {
@@ -787,7 +526,7 @@ var init_HlsPlayer = __esm({
787
526
  }
788
527
  }
789
528
  ),
790
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
529
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
791
530
  "div",
792
531
  {
793
532
  style: {
@@ -801,7 +540,7 @@ var init_HlsPlayer = __esm({
801
540
  ),
802
541
  isPlaying ? (
803
542
  /* Pause — two rounded bars, sized to match play icon proportions */
804
- /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
543
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
805
544
  "svg",
806
545
  {
807
546
  width: playIconSize,
@@ -810,8 +549,8 @@ var init_HlsPlayer = __esm({
810
549
  fill: "none",
811
550
  xmlns: "http://www.w3.org/2000/svg",
812
551
  children: [
813
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("rect", { x: "3.5", y: "2.5", width: "4.5", height: "15", rx: "1.5", fill: "white" }),
814
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("rect", { x: "12", y: "2.5", width: "4.5", height: "15", rx: "1.5", fill: "white" })
552
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "3.5", y: "2.5", width: "4.5", height: "15", rx: "1.5", fill: "white" }),
553
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "12", y: "2.5", width: "4.5", height: "15", rx: "1.5", fill: "white" })
815
554
  ]
816
555
  }
817
556
  )
@@ -821,7 +560,7 @@ var init_HlsPlayer = __esm({
821
560
  * Original viewBox is "0,0,240,250" (with a 5.33x scale group inside).
822
561
  * We flatten the transform: effective drawing area is 240×250 units.
823
562
  */
824
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
563
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
825
564
  "svg",
826
565
  {
827
566
  width: playIconSize,
@@ -830,7 +569,7 @@ var init_HlsPlayer = __esm({
830
569
  fill: "none",
831
570
  xmlns: "http://www.w3.org/2000/svg",
832
571
  style: { transform: "translateX(4%)" },
833
- children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
572
+ children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
834
573
  "path",
835
574
  {
836
575
  d: "M60.78 21.93C48.57 22.41 37.33 32.78 37.33 45.87v164.26c0 17.92 19.96 29.67 35.64 20.99l148.31-82.17c16.12-8.93 16.12-33.04 0-41.97L72.97 24.81c-3.92-2.17-8.11-3.07-12.19-2.88z",
@@ -845,7 +584,7 @@ var init_HlsPlayer = __esm({
845
584
  )
846
585
  }
847
586
  ),
848
- /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
587
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
849
588
  "div",
850
589
  {
851
590
  className: "absolute bottom-4 right-4 pointer-events-none",
@@ -857,7 +596,7 @@ var init_HlsPlayer = __esm({
857
596
  transition: "opacity 0.3s ease"
858
597
  },
859
598
  children: [
860
- showMuteButton && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
599
+ showMuteButton && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
861
600
  "button",
862
601
  {
863
602
  type: "button",
@@ -867,18 +606,18 @@ var init_HlsPlayer = __esm({
867
606
  handleMuteToggle();
868
607
  },
869
608
  style: iconButtonStyle,
870
- children: isMuted ? /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("svg", { width: iconSvgSize, height: iconSvgSize, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
871
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("path", { d: "M11 5L6 9H2v6h4l5 4V5Z", fill: "white" }),
872
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("line", { x1: "23", y1: "9", x2: "17", y2: "15", stroke: "white", strokeWidth: "2", strokeLinecap: "round" }),
873
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("line", { x1: "17", y1: "9", x2: "23", y2: "15", stroke: "white", strokeWidth: "2", strokeLinecap: "round" })
874
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("svg", { width: iconSvgSize, height: iconSvgSize, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
875
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("path", { d: "M11 5L6 9H2v6h4l5 4V5Z", fill: "white" }),
876
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("path", { d: "M15.54 8.46a5 5 0 0 1 0 7.07", stroke: "white", strokeWidth: "2", strokeLinecap: "round" }),
877
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("path", { d: "M19.07 4.93a10 10 0 0 1 0 14.14", stroke: "white", strokeWidth: "2", strokeLinecap: "round" })
609
+ children: isMuted ? /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("svg", { width: iconSvgSize, height: iconSvgSize, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
610
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M11 5L6 9H2v6h4l5 4V5Z", fill: "white" }),
611
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("line", { x1: "23", y1: "9", x2: "17", y2: "15", stroke: "white", strokeWidth: "2", strokeLinecap: "round" }),
612
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("line", { x1: "17", y1: "9", x2: "23", y2: "15", stroke: "white", strokeWidth: "2", strokeLinecap: "round" })
613
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("svg", { width: iconSvgSize, height: iconSvgSize, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
614
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M11 5L6 9H2v6h4l5 4V5Z", fill: "white" }),
615
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M15.54 8.46a5 5 0 0 1 0 7.07", stroke: "white", strokeWidth: "2", strokeLinecap: "round" }),
616
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M19.07 4.93a10 10 0 0 1 0 14.14", stroke: "white", strokeWidth: "2", strokeLinecap: "round" })
878
617
  ] })
879
618
  }
880
619
  ),
881
- showExpandButton && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
620
+ showExpandButton && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
882
621
  "button",
883
622
  {
884
623
  type: "button",
@@ -888,7 +627,7 @@ var init_HlsPlayer = __esm({
888
627
  handleFullscreenToggle();
889
628
  },
890
629
  style: iconButtonStyle,
891
- children: isFullscreen ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("svg", { width: iconSvgSize, height: iconSvgSize, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("path", { d: "M8 3v5H3M21 8h-5V3M3 16h5v5M16 21v-5h5", stroke: "white", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }) : /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("svg", { width: iconSvgSize, height: iconSvgSize, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("path", { d: "M3 8V3h5M16 3h5v5M21 16v5h-5M8 21H3v-5", stroke: "white", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) })
630
+ children: isFullscreen ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("svg", { width: iconSvgSize, height: iconSvgSize, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M8 3v5H3M21 8h-5V3M3 16h5v5M16 21v-5h5", stroke: "white", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }) : /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("svg", { width: iconSvgSize, height: iconSvgSize, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M3 8V3h5M16 3h5v5M21 16v5h-5M8 21H3v-5", stroke: "white", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) })
892
631
  }
893
632
  )
894
633
  ]
@@ -896,11 +635,272 @@ var init_HlsPlayer = __esm({
896
635
  )
897
636
  ]
898
637
  }
899
- );
900
- }
901
- );
902
- HlsPlayer.displayName = "HlsPlayer";
903
- HlsPlayer_default = HlsPlayer;
638
+ );
639
+ }
640
+ );
641
+ HlsPlayer.displayName = "HlsPlayer";
642
+ HlsPlayer_default = HlsPlayer;
643
+ }
644
+ });
645
+
646
+ // src/components/controls/view/DateTimeViewClient.tsx
647
+ var DateTimeViewClient_exports = {};
648
+ __export(DateTimeViewClient_exports, {
649
+ default: () => DateTimeViewClient_default
650
+ });
651
+ var import_jsx_runtime14, DateTimeViewClient, DateTimeViewClient_default;
652
+ var init_DateTimeViewClient = __esm({
653
+ "src/components/controls/view/DateTimeViewClient.tsx"() {
654
+ "use strict";
655
+ "use client";
656
+ init_DateViewClient();
657
+ import_jsx_runtime14 = require("react/jsx-runtime");
658
+ DateTimeViewClient = (props) => {
659
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(DateViewClient_default, { ...props, controlType: "datetime" });
660
+ };
661
+ DateTimeViewClient_default = DateTimeViewClient;
662
+ }
663
+ });
664
+
665
+ // src/components/ToastService.tsx
666
+ var ToastService, ToastService_default;
667
+ var init_ToastService = __esm({
668
+ "src/components/ToastService.tsx"() {
669
+ "use strict";
670
+ ToastService = class _ToastService {
671
+ static initialize(showToast, closeToast) {
672
+ _ToastService.showToast = showToast;
673
+ _ToastService.closeToast = closeToast;
674
+ }
675
+ static showError(message) {
676
+ if (_ToastService.showToast) {
677
+ _ToastService.showToast(message, "error");
678
+ }
679
+ }
680
+ static showInfo(message) {
681
+ if (_ToastService.showToast) {
682
+ _ToastService.showToast(message, "info");
683
+ }
684
+ }
685
+ static showWarning(message) {
686
+ if (_ToastService.showToast) {
687
+ _ToastService.showToast(message, "warning");
688
+ }
689
+ }
690
+ static showSuccess(message) {
691
+ if (_ToastService.showToast) {
692
+ _ToastService.showToast(message, "success");
693
+ }
694
+ }
695
+ static close() {
696
+ if (_ToastService.closeToast) {
697
+ _ToastService.closeToast();
698
+ }
699
+ }
700
+ };
701
+ ToastService_default = ToastService;
702
+ }
703
+ });
704
+
705
+ // src/components/StyleTypes.tsx
706
+ var buttonClasses, progressClasses;
707
+ var init_StyleTypes = __esm({
708
+ "src/components/StyleTypes.tsx"() {
709
+ "use strict";
710
+ buttonClasses = /* @__PURE__ */ new Map([
711
+ [
712
+ "Primary" /* Solid */,
713
+ "btn-solid relative inline-flex items-center justify-center rounded px-4 py-3 lg:py-2 font-medium shadow-sm hover:shadow-lg focus:outline-none active:scale-95 disabled:opacity-50 disabled:cursor-not-allowed transition duration-150 ease-in-out"
714
+ ],
715
+ [
716
+ "PrimaryHollow" /* Hollow */,
717
+ "btn-hollow inline-flex font-medium items-center justify-center px-4 py-3 lg:py-2 rounded hover:shadow-md focus:outline-none transition duration-150 ease-in-out active:scale-95"
718
+ ],
719
+ ["Link" /* Link */, "btn-link"]
720
+ ]);
721
+ progressClasses = /* @__PURE__ */ new Map([
722
+ ["Primary" /* Solid */, ""],
723
+ ["PrimaryHollow" /* Hollow */, ""],
724
+ ["Link" /* Link */, ""]
725
+ ]);
726
+ }
727
+ });
728
+
729
+ // src/components/ClientButton.tsx
730
+ var import_react24, import_jsx_runtime28, ClientButton, ClientButton_default;
731
+ var init_ClientButton = __esm({
732
+ "src/components/ClientButton.tsx"() {
733
+ "use strict";
734
+ "use client";
735
+ import_react24 = __toESM(require("react"));
736
+ init_ToastService();
737
+ init_StyleTypes();
738
+ import_jsx_runtime28 = require("react/jsx-runtime");
739
+ ClientButton = (props) => {
740
+ const execute = async (event) => {
741
+ if (props.onClick !== void 0) {
742
+ props.onClick();
743
+ } else {
744
+ ToastService_default.showError("No action defined.");
745
+ }
746
+ };
747
+ let buttonClass = props.ButtonType ? buttonClasses.get(props.ButtonType) : buttonClasses.get("Primary" /* Solid */);
748
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_react24.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
749
+ "button",
750
+ {
751
+ type: "button",
752
+ onClick: execute,
753
+ className: buttonClass + " " + props.className,
754
+ children: props.children
755
+ }
756
+ ) });
757
+ };
758
+ ClientButton_default = ClientButton;
759
+ }
760
+ });
761
+
762
+ // src/components/Confirm.tsx
763
+ var import_react25, import_jsx_runtime29, Confirm, Confirm_default;
764
+ var init_Confirm = __esm({
765
+ "src/components/Confirm.tsx"() {
766
+ "use strict";
767
+ "use client";
768
+ import_react25 = require("react");
769
+ init_ClientButton();
770
+ init_StyleTypes();
771
+ import_jsx_runtime29 = require("react/jsx-runtime");
772
+ Confirm = ({ message, onConfirm, onCancel }) => {
773
+ const [showModal, setShowModal] = (0, import_react25.useState)(true);
774
+ const handleConfirmAction = () => {
775
+ setShowModal(false);
776
+ if (onConfirm) {
777
+ onConfirm();
778
+ }
779
+ };
780
+ const handleCancelAction = () => {
781
+ setShowModal(false);
782
+ if (onCancel) {
783
+ onCancel();
784
+ }
785
+ };
786
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_jsx_runtime29.Fragment, { children: showModal && /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "fixed inset-0 flex items-center justify-center z-50", children: [
787
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "absolute inset-0 bg-black opacity-70" }),
788
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "bg-white rounded-md p-6 w-2/6 shadow border z-50", children: [
789
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("p", { className: "text-xl font-medium mb-4", children: "Confirmation" }),
790
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("p", { className: "mb-4", children: message }),
791
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "flex justify-end gap-8", children: [
792
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
793
+ ClientButton_default,
794
+ {
795
+ onClick: handleCancelAction,
796
+ ButtonType: "PrimaryHollow" /* Hollow */,
797
+ children: "Cancel"
798
+ }
799
+ ),
800
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
801
+ ClientButton_default,
802
+ {
803
+ onClick: handleConfirmAction,
804
+ children: "Confirm"
805
+ }
806
+ )
807
+ ] })
808
+ ] })
809
+ ] }) });
810
+ };
811
+ Confirm_default = Confirm;
812
+ {
813
+ }
814
+ }
815
+ });
816
+
817
+ // src/components/Button.tsx
818
+ var import_react26, import_jsx_runtime30, Button, Button_default;
819
+ var init_Button = __esm({
820
+ "src/components/Button.tsx"() {
821
+ "use strict";
822
+ "use client";
823
+ import_react26 = __toESM(require("react"));
824
+ init_ToastService();
825
+ init_StyleTypes();
826
+ init_Confirm();
827
+ import_jsx_runtime30 = require("react/jsx-runtime");
828
+ Button = (props) => {
829
+ const [inProgress, setInProgress] = (0, import_react26.useState)(false);
830
+ const [isActionPerformed, setIsActionPerformed] = (0, import_react26.useState)(false);
831
+ const [responseMessage, setResponseMessage] = (0, import_react26.useState)(null);
832
+ const [showModal, setShowModal] = (0, import_react26.useState)(null);
833
+ const execute = async (event) => {
834
+ event.preventDefault();
835
+ event.stopPropagation();
836
+ if (props.confirm) {
837
+ const confirmed = await showConfirmation("Are you sure you want to delete this item?");
838
+ setShowModal(null);
839
+ if (!confirmed) {
840
+ return;
841
+ }
842
+ }
843
+ if (props.oneTimeAction && isActionPerformed) {
844
+ return;
845
+ }
846
+ setInProgress(true);
847
+ let isValid = true;
848
+ if (props.onValidate !== void 0) {
849
+ isValid = await props.onValidate();
850
+ if (!isValid) {
851
+ setInProgress(false);
852
+ ToastService_default.showError("There are errors in the form. Please fix them before proceeding.");
853
+ return;
854
+ }
855
+ }
856
+ if (props.onClick !== void 0) {
857
+ let response = await props.onClick();
858
+ if (response.isSuccessful) {
859
+ setIsActionPerformed(true);
860
+ setResponseMessage(response.message);
861
+ if (props.showToast) {
862
+ ToastService_default.showInfo(response.message || "");
863
+ }
864
+ } else {
865
+ ToastService_default.showError(response.message || "");
866
+ }
867
+ } else {
868
+ ToastService_default.showError("No action defined.");
869
+ }
870
+ setInProgress(false);
871
+ };
872
+ const showConfirmation = (message) => {
873
+ return new Promise((resolve) => {
874
+ const onConfirm = () => resolve(true);
875
+ const onCancel = () => resolve(false);
876
+ setShowModal(/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Confirm_default, { message: props.confirmationMessage, onConfirm, onCancel }));
877
+ });
878
+ };
879
+ let buttonClass = props.ButtonType ? buttonClasses.get(props.ButtonType) : buttonClasses.get("Primary" /* Solid */);
880
+ let progressClass = props.ButtonType ? progressClasses.get(props.ButtonType) : progressClasses.get("Primary" /* Solid */);
881
+ const isDisabled = inProgress || isActionPerformed && props.oneTimeAction;
882
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_react26.default.Fragment, { children: [
883
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
884
+ "button",
885
+ {
886
+ type: "submit",
887
+ onClick: execute,
888
+ disabled: props.disabled,
889
+ title: isDisabled ? "The button is disabled to prevent any action" : "",
890
+ className: buttonClass + " relative " + props.className,
891
+ children: [
892
+ isActionPerformed && props.oneTimeAction && responseMessage ? responseMessage : props.children,
893
+ inProgress && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react26.default.Fragment, { children: props.hideProgressIndicator === true ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "absolute bottom-0 left-0 h-0.5 bg-gray-400 rounded animate-progress" }) : /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("svg", { className: "animate-spin ml-2 mr-3 h-5 w-5 " + progressClass, xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", children: [
894
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("circle", { className: "opacity-25", cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "4" }),
895
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("path", { className: "opacity-75", fill: "currentColor", d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z" })
896
+ ] }) })
897
+ ]
898
+ }
899
+ ),
900
+ showModal
901
+ ] });
902
+ };
903
+ Button_default = Button;
904
904
  }
905
905
  });
906
906
 
@@ -1123,7 +1123,7 @@ var LinkNodeButton_exports = {};
1123
1123
  __export(LinkNodeButton_exports, {
1124
1124
  default: () => LinkNodeButton_default
1125
1125
  });
1126
- var import_react34, import_jsx_runtime45, LinkNodeButton, LinkNodeButton_default;
1126
+ var import_react34, import_jsx_runtime46, LinkNodeButton, LinkNodeButton_default;
1127
1127
  var init_LinkNodeButton = __esm({
1128
1128
  "src/components/pageRenderingEngine/nodes/LinkNodeButton.tsx"() {
1129
1129
  "use strict";
@@ -1132,7 +1132,7 @@ var init_LinkNodeButton = __esm({
1132
1132
  init_Button();
1133
1133
  init_ServiceClient();
1134
1134
  init_ToastService();
1135
- import_jsx_runtime45 = require("react/jsx-runtime");
1135
+ import_jsx_runtime46 = require("react/jsx-runtime");
1136
1136
  LinkNodeButton = (props) => {
1137
1137
  const { node, dataitem, children, linkText, linkType, linkUrl } = props;
1138
1138
  const [isLoading, setIsLoading] = (0, import_react34.useState)(false);
@@ -1275,11 +1275,11 @@ var init_LinkNodeButton = __esm({
1275
1275
  return children;
1276
1276
  }
1277
1277
  if (linkText) {
1278
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { children: linkText });
1278
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { children: linkText });
1279
1279
  }
1280
1280
  return node.title || "Button";
1281
1281
  };
1282
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "link-button-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
1282
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "link-button-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
1283
1283
  Button_default,
1284
1284
  {
1285
1285
  ButtonType: linkType,
@@ -1317,13 +1317,13 @@ function CopyButton({ text }) {
1317
1317
  console.error("Failed to copy: ", err);
1318
1318
  }
1319
1319
  };
1320
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
1320
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
1321
1321
  "button",
1322
1322
  {
1323
1323
  onClick: handleCopy,
1324
1324
  className: "flex gap-1 items-center hover:text-white transition",
1325
1325
  children: [
1326
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
1326
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
1327
1327
  "svg",
1328
1328
  {
1329
1329
  width: "16",
@@ -1331,7 +1331,7 @@ function CopyButton({ text }) {
1331
1331
  viewBox: "0 0 24 24",
1332
1332
  className: "w-4 h-4",
1333
1333
  fill: "currentColor",
1334
- children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
1334
+ children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
1335
1335
  "path",
1336
1336
  {
1337
1337
  fillRule: "evenodd",
@@ -1346,54 +1346,54 @@ function CopyButton({ text }) {
1346
1346
  }
1347
1347
  );
1348
1348
  }
1349
- var import_react41, import_jsx_runtime55;
1349
+ var import_react41, import_jsx_runtime56;
1350
1350
  var init_CopyButton = __esm({
1351
1351
  "src/components/CopyButton.tsx"() {
1352
1352
  "use strict";
1353
1353
  "use client";
1354
1354
  import_react41 = require("react");
1355
- import_jsx_runtime55 = require("react/jsx-runtime");
1355
+ import_jsx_runtime56 = require("react/jsx-runtime");
1356
1356
  }
1357
1357
  });
1358
1358
 
1359
1359
  // src/components/IFrameLoaderView.tsx
1360
- var import_react45, import_jsx_runtime61, IFrameLoaderView, IFrameLoaderView_default;
1360
+ var import_react45, import_jsx_runtime62, IFrameLoaderView, IFrameLoaderView_default;
1361
1361
  var init_IFrameLoaderView = __esm({
1362
1362
  "src/components/IFrameLoaderView.tsx"() {
1363
1363
  "use strict";
1364
1364
  import_react45 = __toESM(require("react"));
1365
- import_jsx_runtime61 = require("react/jsx-runtime");
1365
+ import_jsx_runtime62 = require("react/jsx-runtime");
1366
1366
  IFrameLoaderView = (props) => {
1367
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_react45.default.Fragment, { children: [
1368
- props.isDataFound == null && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "mt-4 bg-gray-200 rounded-md p-4 animate-pulse", children: [
1369
- /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex items-center mb-4", children: [
1370
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
1371
- /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "ml-2", children: [
1372
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
1373
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
1367
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_react45.default.Fragment, { children: [
1368
+ props.isDataFound == null && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "mt-4 bg-gray-200 rounded-md p-4 animate-pulse", children: [
1369
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "flex items-center mb-4", children: [
1370
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
1371
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "ml-2", children: [
1372
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
1373
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
1374
1374
  ] })
1375
1375
  ] }),
1376
- /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
1377
- /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "animate-pulse", children: [
1378
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
1379
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
1380
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
1381
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
1382
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
1376
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
1377
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "animate-pulse", children: [
1378
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
1379
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
1380
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
1381
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
1382
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
1383
1383
  ] }),
1384
- /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "animate-pulse", children: [
1385
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
1386
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
1387
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
1388
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
1389
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
1384
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "animate-pulse", children: [
1385
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
1386
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
1387
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
1388
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
1389
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
1390
1390
  ] }),
1391
- /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "animate-pulse", children: [
1392
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
1393
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
1394
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
1395
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
1396
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
1391
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "animate-pulse", children: [
1392
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
1393
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
1394
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
1395
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
1396
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
1397
1397
  ] })
1398
1398
  ] })
1399
1399
  ] }) }),
@@ -1409,14 +1409,14 @@ var IframeClient_exports = {};
1409
1409
  __export(IframeClient_exports, {
1410
1410
  default: () => IframeClient_default
1411
1411
  });
1412
- var import_react46, import_jsx_runtime62, IframeClient, IframeClient_default;
1412
+ var import_react46, import_jsx_runtime63, IframeClient, IframeClient_default;
1413
1413
  var init_IframeClient = __esm({
1414
1414
  "src/components/pageRenderingEngine/nodes/IframeClient.tsx"() {
1415
1415
  "use strict";
1416
1416
  "use client";
1417
1417
  import_react46 = __toESM(require("react"));
1418
1418
  init_IFrameLoaderView();
1419
- import_jsx_runtime62 = require("react/jsx-runtime");
1419
+ import_jsx_runtime63 = require("react/jsx-runtime");
1420
1420
  IframeClient = ({ src }) => {
1421
1421
  const iframeRef = (0, import_react46.useRef)(null);
1422
1422
  const [iframeHeight, setIframeHeight] = (0, import_react46.useState)("100%");
@@ -1448,7 +1448,7 @@ var init_IframeClient = __esm({
1448
1448
  const handleIframeLoad = () => {
1449
1449
  setIsDataFound(true);
1450
1450
  };
1451
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_react46.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(IFrameLoaderView_default, { isDataFound, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
1451
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_react46.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(IFrameLoaderView_default, { isDataFound, children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
1452
1452
  "iframe",
1453
1453
  {
1454
1454
  ref: iframeRef,
@@ -1496,7 +1496,7 @@ __export(index_exports, {
1496
1496
  module.exports = __toCommonJS(index_exports);
1497
1497
 
1498
1498
  // src/components/controls/view/ViewControl.tsx
1499
- var import_react10 = __toESM(require("react"));
1499
+ var import_react11 = __toESM(require("react"));
1500
1500
 
1501
1501
  // src/components/controls/view/ViewControlTypes.tsx
1502
1502
  var ViewControlTypes = {
@@ -1579,16 +1579,189 @@ var BooleanView = (props) => {
1579
1579
  };
1580
1580
  var BooleanView_default = BooleanView;
1581
1581
 
1582
+ // src/components/utilities/AssetUtility.tsx
1583
+ var AssetUtility = class {
1584
+ constructor() {
1585
+ }
1586
+ static resolveUrl(assetBaseUrl, url) {
1587
+ if (!url) return void 0;
1588
+ if (url.startsWith("http")) return url;
1589
+ if (!assetBaseUrl) return url;
1590
+ return `${assetBaseUrl}/${url}`;
1591
+ }
1592
+ // static getAssetUrl(apiBaseUrl: string) {
1593
+ // let domainName = apiBaseUrl.replace("https://", "");
1594
+ // return `https://cdn.g-assets.com/${domainName}`;
1595
+ // }
1596
+ static getAssetFullPath(apiBaseUrl, relativePath) {
1597
+ const domainName = apiBaseUrl.replace("https://", "");
1598
+ return `https://cdn.g-assets.com/${domainName}/${relativePath}`;
1599
+ }
1600
+ };
1601
+ var AssetUtility_default = AssetUtility;
1602
+
1603
+ // src/components/DeviceAssetSelector.tsx
1604
+ init_HlsPlayer();
1605
+ var import_jsx_runtime5 = require("react/jsx-runtime");
1606
+ var DeviceAssetSelector = ({
1607
+ assets,
1608
+ assetBaseUrl,
1609
+ session,
1610
+ // This should receive the session
1611
+ width,
1612
+ tag,
1613
+ customProps,
1614
+ nodeProps,
1615
+ device
1616
+ }) => {
1617
+ console.log("\u{1F511} Session in DeviceAssetSelector:", session);
1618
+ const targetTag = tag || nodeProps?.tag;
1619
+ const selectAssetByDevice = (assets2, currentDevice) => {
1620
+ if (!assets2 || assets2.length === 0) return void 0;
1621
+ const exactMatch = assets2.find((asset) => asset.device === currentDevice);
1622
+ if (exactMatch) return exactMatch;
1623
+ const noDeviceMatch = assets2.find((asset) => !asset.device || asset.device === "");
1624
+ if (noDeviceMatch) return noDeviceMatch;
1625
+ return void 0;
1626
+ };
1627
+ const selectAssetByTagAndDevice = (assets2, currentDevice, targetTag2) => {
1628
+ if (!assets2 || assets2.length === 0) return void 0;
1629
+ if (!targetTag2) return selectAssetByDevice(assets2, currentDevice);
1630
+ const taggedAssets = assets2.filter((asset) => asset.tag === targetTag2);
1631
+ if (taggedAssets.length === 0) {
1632
+ return selectAssetByDevice(assets2, currentDevice);
1633
+ }
1634
+ const exactTaggedMatch = taggedAssets.find((asset) => asset.device === currentDevice);
1635
+ if (exactTaggedMatch) return exactTaggedMatch;
1636
+ const noDeviceTaggedMatch = taggedAssets.find((asset) => !asset.device || asset.device === "");
1637
+ if (noDeviceTaggedMatch) return noDeviceTaggedMatch;
1638
+ return void 0;
1639
+ };
1640
+ const selectAsset = () => {
1641
+ if (!assets || assets.length === 0) return void 0;
1642
+ if (targetTag) {
1643
+ return selectAssetByTagAndDevice(assets, device, targetTag);
1644
+ }
1645
+ return selectAssetByDevice(assets, device);
1646
+ };
1647
+ const selectedAsset = selectAsset();
1648
+ if (!selectedAsset) {
1649
+ console.warn("No suitable asset found for device:", device, "and tag:", targetTag);
1650
+ return null;
1651
+ }
1652
+ const resolvedAssetUrl = AssetUtility_default.resolveUrl(assetBaseUrl, selectedAsset.assetUrl);
1653
+ const resolvedThumbnailUrl = selectedAsset.posterUrl ? AssetUtility_default.resolveUrl(assetBaseUrl, selectedAsset.posterUrl) : void 0;
1654
+ console.log("Selected Asset:", resolvedThumbnailUrl);
1655
+ const title = selectedAsset.title || nodeProps?.title;
1656
+ const intrinsicWidth = selectedAsset.intrinsicWidth?.toString();
1657
+ const intrinsicHeight = selectedAsset.intrinsicHeight?.toString();
1658
+ const isHls = resolvedAssetUrl?.endsWith(".m3u8");
1659
+ const showControls = customProps?.showControls ?? nodeProps?.showControls === "true";
1660
+ const loop = customProps?.loop ?? nodeProps?.loop === "true";
1661
+ const playOptions = customProps?.playOptions ?? nodeProps?.playOptions;
1662
+ const styles = {};
1663
+ if (nodeProps?.height) {
1664
+ styles.height = nodeProps.height;
1665
+ }
1666
+ if (nodeProps?.borderRadius) {
1667
+ styles.borderRadius = nodeProps.borderRadius;
1668
+ }
1669
+ if (nodeProps?.width) {
1670
+ styles.width = nodeProps.width;
1671
+ }
1672
+ const FormatClass = {
1673
+ "center": "justify-center",
1674
+ "left": "justify-start",
1675
+ "right": "justify-end"
1676
+ };
1677
+ const formatClasses = FormatClass[nodeProps?.format || ""] || "";
1678
+ const renderMedia = () => {
1679
+ if (isHls) {
1680
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1681
+ HlsPlayer_default,
1682
+ {
1683
+ assetUrl: resolvedAssetUrl,
1684
+ posterUrl: resolvedThumbnailUrl,
1685
+ intrinsicWidth,
1686
+ intrinsicHeight,
1687
+ showControls,
1688
+ loop,
1689
+ playOptions,
1690
+ apiBaseUrl: assetBaseUrl,
1691
+ session
1692
+ }
1693
+ );
1694
+ } else {
1695
+ return (
1696
+ /* eslint-disable-next-line @next/next/no-img-element */
1697
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1698
+ "img",
1699
+ {
1700
+ style: styles,
1701
+ loading: "lazy",
1702
+ className: "object-cover w-full",
1703
+ src: resolvedAssetUrl,
1704
+ width: selectedAsset.intrinsicWidth,
1705
+ alt: title || "Asset image",
1706
+ height: selectedAsset.intrinsicHeight
1707
+ }
1708
+ )
1709
+ );
1710
+ }
1711
+ };
1712
+ if (width) {
1713
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { style: { width }, children: renderMedia() });
1714
+ }
1715
+ if (nodeProps?.format) {
1716
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: `flex ${formatClasses}`, children: renderMedia() });
1717
+ }
1718
+ return renderMedia();
1719
+ };
1720
+ var DeviceAssetSelector_default = DeviceAssetSelector;
1721
+
1722
+ // src/components/controls/view/Asset.tsx
1723
+ var import_jsx_runtime6 = require("react/jsx-runtime");
1724
+ var MediaAsset = (props) => {
1725
+ let assets;
1726
+ if (props.value != void 0 && props.value != null && props.value != "") {
1727
+ try {
1728
+ assets = JSON.parse(props.value);
1729
+ console.log("Parsed Assets: ", assets);
1730
+ } catch (error) {
1731
+ console.error("Error parsing assets:", error);
1732
+ }
1733
+ }
1734
+ if (!assets || assets.length === 0) {
1735
+ return null;
1736
+ }
1737
+ const domainName = props.apiBaseUrl?.replace("https://", "");
1738
+ const assetBaseUrl = `https://cdn.g-assets.com/${domainName}`;
1739
+ console.log(props.customProps?.tag, "Tag in MediaAsset");
1740
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1741
+ DeviceAssetSelector_default,
1742
+ {
1743
+ assets,
1744
+ apiBaseUrl: props.apiBaseUrl,
1745
+ assetBaseUrl,
1746
+ session: props,
1747
+ width: props.width,
1748
+ customProps: props.customProps,
1749
+ tag: props.customProps?.tag
1750
+ }
1751
+ );
1752
+ };
1753
+ var Asset_default = MediaAsset;
1754
+
1582
1755
  // src/components/controls/view/LineTextView.tsx
1583
- var import_react4 = __toESM(require("react"));
1584
- var import_jsx_runtime4 = require("react/jsx-runtime");
1756
+ var import_react5 = __toESM(require("react"));
1757
+ var import_jsx_runtime7 = require("react/jsx-runtime");
1585
1758
  var LineText = (props) => {
1586
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_react4.default.Fragment, { children: props.value });
1759
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_react5.default.Fragment, { children: props.value });
1587
1760
  };
1588
1761
  var LineTextView_default = LineText;
1589
1762
 
1590
1763
  // src/components/controls/view/MoneyView.tsx
1591
- var import_react5 = __toESM(require("react"));
1764
+ var import_react6 = __toESM(require("react"));
1592
1765
 
1593
1766
  // src/components/utilities/CurrencyUtility.tsx
1594
1767
  var CurrencyUtility = class {
@@ -1609,40 +1782,40 @@ var CurrencyUtility = class {
1609
1782
  var CurrencyUtility_default = CurrencyUtility;
1610
1783
 
1611
1784
  // src/components/controls/view/MoneyView.tsx
1612
- var import_jsx_runtime5 = require("react/jsx-runtime");
1785
+ var import_jsx_runtime8 = require("react/jsx-runtime");
1613
1786
  var Money = (props) => {
1614
1787
  const parsedNumber = parseFloat(props.value);
1615
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_react5.default.Fragment, { children: !Number.isNaN(parsedNumber) && /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_react5.default.Fragment, { children: [
1616
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "mr-0.5", children: CurrencyUtility_default.getCurrencySymbol(props.unit) }),
1788
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_react6.default.Fragment, { children: !Number.isNaN(parsedNumber) && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_react6.default.Fragment, { children: [
1789
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "mr-0.5", children: CurrencyUtility_default.getCurrencySymbol(props.unit) }),
1617
1790
  parsedNumber.toLocaleString()
1618
1791
  ] }) });
1619
1792
  };
1620
1793
  var MoneyView_default = Money;
1621
1794
 
1622
1795
  // src/components/controls/view/MultilineTextBulletsView.tsx
1623
- var import_react6 = __toESM(require("react"));
1624
- var import_jsx_runtime6 = require("react/jsx-runtime");
1796
+ var import_react7 = __toESM(require("react"));
1797
+ var import_jsx_runtime9 = require("react/jsx-runtime");
1625
1798
  var MultilineTextBullets = (props) => {
1626
1799
  const lines = props.value?.split("\\n");
1627
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_react6.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("ul", { className: "list-disc", children: lines && lines.map((line, index) => {
1628
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("li", { children: line }, index);
1800
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_react7.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("ul", { className: "list-disc", children: lines && lines.map((line, index) => {
1801
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("li", { children: line }, index);
1629
1802
  }) }) });
1630
1803
  };
1631
1804
  var MultilineTextBulletsView_default = MultilineTextBullets;
1632
1805
 
1633
1806
  // src/components/controls/view/MultilineTextView.tsx
1634
- var import_react7 = __toESM(require("react"));
1635
- var import_jsx_runtime7 = require("react/jsx-runtime");
1807
+ var import_react8 = __toESM(require("react"));
1808
+ var import_jsx_runtime10 = require("react/jsx-runtime");
1636
1809
  var MultilineText = (props) => {
1637
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_react7.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "whitespace-pre-line", children: props.value }) });
1810
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_react8.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "whitespace-pre-line", children: props.value }) });
1638
1811
  };
1639
1812
  var MultilineTextView_default = MultilineText;
1640
1813
 
1641
1814
  // src/components/controls/view/PercentageView.tsx
1642
- var import_react8 = __toESM(require("react"));
1643
- var import_jsx_runtime8 = require("react/jsx-runtime");
1815
+ var import_react9 = __toESM(require("react"));
1816
+ var import_jsx_runtime11 = require("react/jsx-runtime");
1644
1817
  var PercentageView = (props) => {
1645
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_react8.default.Fragment, { children: [
1818
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_react9.default.Fragment, { children: [
1646
1819
  props.value,
1647
1820
  "%"
1648
1821
  ] });
@@ -1650,16 +1823,16 @@ var PercentageView = (props) => {
1650
1823
  var PercentageView_default = PercentageView;
1651
1824
 
1652
1825
  // src/components/controls/view/ProgressIndicator.tsx
1653
- var import_react9 = __toESM(require("react"));
1654
- var import_jsx_runtime9 = require("react/jsx-runtime");
1826
+ var import_react10 = __toESM(require("react"));
1827
+ var import_jsx_runtime12 = require("react/jsx-runtime");
1655
1828
  var ProgressIndicator = (props) => {
1656
1829
  const percentage = 100;
1657
1830
  const circumference = Math.PI * 56;
1658
1831
  const offset = circumference * (1 - percentage / 100);
1659
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_react9.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "relative w-48 h-48", children: [
1660
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "absolute top-0 left-0 w-full h-full rounded-full border border-gray-200" }),
1661
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "absolute top-0 left-0 w-full h-full rounded-full overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "w-full h-full rounded-full border-t-8 border-green-500", style: { transform: `rotate(-90deg)`, clipPath: `inset(0px ${offset}px 0px 0px)` } }) }),
1662
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "absolute top-0 left-0 w-full h-full flex items-center justify-center text-lg font-bold text-gray-800", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("span", { children: [
1832
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_react10.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "relative w-48 h-48", children: [
1833
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "absolute top-0 left-0 w-full h-full rounded-full border border-gray-200" }),
1834
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "absolute top-0 left-0 w-full h-full rounded-full overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "w-full h-full rounded-full border-t-8 border-green-500", style: { transform: `rotate(-90deg)`, clipPath: `inset(0px ${offset}px 0px 0px)` } }) }),
1835
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "absolute top-0 left-0 w-full h-full flex items-center justify-center text-lg font-bold text-gray-800", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("span", { children: [
1663
1836
  percentage,
1664
1837
  "%"
1665
1838
  ] }) })
@@ -1668,18 +1841,18 @@ var ProgressIndicator = (props) => {
1668
1841
  var ProgressIndicator_default = ProgressIndicator;
1669
1842
 
1670
1843
  // src/components/controls/view/AiGeneratedSummary.tsx
1671
- var import_jsx_runtime10 = require("react/jsx-runtime");
1844
+ var import_jsx_runtime13 = require("react/jsx-runtime");
1672
1845
  var AiGeneratedSummary = (props) => {
1673
1846
  const lines = props.value?.split("\n").filter((line) => line.trim() !== "") || [];
1674
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("details", { className: "group rounded-xl border-2 bg-white shadow-sm border-p overflow-hidden", children: [
1675
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("summary", { className: "flex items-start justify-between cursor-pointer list-none", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "flex items-start gap-3 ", children: [
1676
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "bg-primary-base bg-transparent rounded mt-1 p-1", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: "1.5", stroke: "currentColor", className: "w-5", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M9.813 15.904 9 18.75l-.813-2.846a4.5 4.5 0 0 0-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 0 0 3.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 0 0 3.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 0 0-3.09 3.09ZM18.259 8.715 18 9.75l-.259-1.035a3.375 3.375 0 0 0-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 0 0 2.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 0 0 2.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 0 0-2.456 2.456ZM16.894 20.567 16.5 21.75l-.394-1.183a2.25 2.25 0 0 0-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 0 0 1.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 0 0 1.423 1.423l1.183.394-1.183.394a2.25 2.25 0 0 0-1.423 1.423Z" }) }) }),
1677
- /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { children: [
1678
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("h3", { className: "text-lg font-semibold ", children: "Quick Read" }),
1679
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("p", { className: "text-sm text-gray-500 mb-0", children: "Summary is AI-generated, author-reviewed" })
1847
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("details", { className: "group rounded-xl border-2 bg-white shadow-sm border-p overflow-hidden", children: [
1848
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("summary", { className: "flex items-start justify-between cursor-pointer list-none", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "flex items-start gap-3 ", children: [
1849
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: "bg-primary-base bg-transparent rounded mt-1 p-1", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: "1.5", stroke: "currentColor", className: "w-5", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M9.813 15.904 9 18.75l-.813-2.846a4.5 4.5 0 0 0-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 0 0 3.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 0 0 3.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 0 0-3.09 3.09ZM18.259 8.715 18 9.75l-.259-1.035a3.375 3.375 0 0 0-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 0 0 2.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 0 0 2.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 0 0-2.456 2.456ZM16.894 20.567 16.5 21.75l-.394-1.183a2.25 2.25 0 0 0-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 0 0 1.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 0 0 1.423 1.423l1.183.394-1.183.394a2.25 2.25 0 0 0-1.423 1.423Z" }) }) }),
1850
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { children: [
1851
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("h3", { className: "text-lg font-semibold ", children: "Quick Read" }),
1852
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("p", { className: "text-sm text-gray-500 mb-0", children: "Summary is AI-generated, author-reviewed" })
1680
1853
  ] })
1681
1854
  ] }) }),
1682
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("ul", { className: "list-disc pl-6 space-y-3 text-gray-700", children: lines.map((line, index) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("li", { className: "m-0", children: line }, index)) }) })
1855
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("ul", { className: "list-disc pl-6 space-y-3 text-gray-700", children: lines.map((line, index) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("li", { className: "m-0", children: line }, index)) }) })
1683
1856
  ] });
1684
1857
  };
1685
1858
  var AiGeneratedSummary_default = AiGeneratedSummary;
@@ -1692,11 +1865,11 @@ var DateTimeView = (0, import_dynamic2.default)(() => Promise.resolve().then(()
1692
1865
  var DateTimeVew_default = DateTimeView;
1693
1866
 
1694
1867
  // src/components/controls/view/ViewControl.tsx
1695
- var import_jsx_runtime12 = require("react/jsx-runtime");
1868
+ var import_jsx_runtime15 = require("react/jsx-runtime");
1696
1869
  var ViewControl = (props) => {
1697
1870
  const ControlComponents = {
1698
1871
  [ViewControlTypes_default.lineText]: LineTextView_default,
1699
- // [ViewControlTypes.asset]: Asset,
1872
+ [ViewControlTypes_default.asset]: Asset_default,
1700
1873
  [ViewControlTypes_default.multilineTextBullets]: MultilineTextBulletsView_default,
1701
1874
  [ViewControlTypes_default.boolean]: BooleanView_default,
1702
1875
  [ViewControlTypes_default.money]: MoneyView_default,
@@ -1714,16 +1887,16 @@ var ViewControl = (props) => {
1714
1887
  [ViewControlTypes_default.aiGeneratedSummary]: AiGeneratedSummary_default
1715
1888
  };
1716
1889
  const SelectedControlComponent = props.controlType ? ControlComponents[props.controlType] : void 0;
1717
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_react10.default.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
1890
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_react11.default.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
1718
1891
  };
1719
1892
  var ViewControl_default = ViewControl;
1720
1893
 
1721
1894
  // src/components/controls/edit/InputControl.tsx
1722
- var import_react31 = __toESM(require("react"));
1895
+ var import_react32 = __toESM(require("react"));
1723
1896
 
1724
1897
  // src/components/controls/edit/MultilineTextInput.tsx
1725
- var import_react11 = __toESM(require("react"));
1726
- var import_jsx_runtime13 = require("react/jsx-runtime");
1898
+ var import_react12 = __toESM(require("react"));
1899
+ var import_jsx_runtime16 = require("react/jsx-runtime");
1727
1900
  var MultilineTextInput = (props) => {
1728
1901
  const textChangeHandler = (event) => {
1729
1902
  const text = event.target.value;
@@ -1742,11 +1915,11 @@ var MultilineTextInput = (props) => {
1742
1915
  if (props.value !== void 0 && props.value !== null) {
1743
1916
  value = props.value;
1744
1917
  }
1745
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_react11.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("label", { className: "block mb-1", children: [
1746
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
1918
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react12.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("label", { className: "block mb-1", children: [
1919
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
1747
1920
  " ",
1748
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "bg-error-weak", children: "*" }),
1749
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1921
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "bg-error-weak", children: "*" }),
1922
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1750
1923
  "textarea",
1751
1924
  {
1752
1925
  name: props.name,
@@ -1763,14 +1936,14 @@ var MultilineTextInput = (props) => {
1763
1936
  className: "peer mt-1 py-1.5 block w-full rounded shadow-sm input"
1764
1937
  }
1765
1938
  ),
1766
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
1939
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
1767
1940
  ] }) });
1768
1941
  };
1769
1942
  var MultilineTextInput_default = MultilineTextInput;
1770
1943
 
1771
1944
  // src/components/controls/edit/LineTextInput.tsx
1772
- var import_react12 = __toESM(require("react"));
1773
- var import_jsx_runtime14 = require("react/jsx-runtime");
1945
+ var import_react13 = __toESM(require("react"));
1946
+ var import_jsx_runtime17 = require("react/jsx-runtime");
1774
1947
  var LineTextInput = (props) => {
1775
1948
  const textChangeHandler = (event) => {
1776
1949
  const text = event.target.value;
@@ -1789,11 +1962,11 @@ var LineTextInput = (props) => {
1789
1962
  if (props.value !== void 0 && props.value !== null) {
1790
1963
  value = props.value;
1791
1964
  }
1792
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_react12.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("label", { className: "block", children: [
1793
- props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "text-sm inline-block pb-1 font-medium ", children: props?.attributes?.label }),
1965
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_react13.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("label", { className: "block", children: [
1966
+ props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "text-sm inline-block pb-1 font-medium ", children: props?.attributes?.label }),
1794
1967
  " ",
1795
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "bg-error-weak", children: "*" }),
1796
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1968
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "bg-error-weak", children: "*" }),
1969
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1797
1970
  "input",
1798
1971
  {
1799
1972
  type: "text",
@@ -1813,14 +1986,14 @@ var LineTextInput = (props) => {
1813
1986
  `
1814
1987
  }
1815
1988
  ),
1816
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
1989
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
1817
1990
  ] }) });
1818
1991
  };
1819
1992
  var LineTextInput_default = LineTextInput;
1820
1993
 
1821
1994
  // src/components/controls/edit/MoneyInput.tsx
1822
- var import_react13 = __toESM(require("react"));
1823
- var import_jsx_runtime15 = require("react/jsx-runtime");
1995
+ var import_react14 = __toESM(require("react"));
1996
+ var import_jsx_runtime18 = require("react/jsx-runtime");
1824
1997
  var MoneyInput = (props) => {
1825
1998
  const textChangeHandler = (event) => {
1826
1999
  const rawValue = event.target.value;
@@ -1849,11 +2022,11 @@ var MoneyInput = (props) => {
1849
2022
  e.preventDefault();
1850
2023
  }
1851
2024
  };
1852
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_react13.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("label", { className: "block mb-1", children: [
1853
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
2025
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_react14.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("label", { className: "block mb-1", children: [
2026
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
1854
2027
  " ",
1855
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "bg-error-weak", children: "*" }),
1856
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
2028
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "bg-error-weak", children: "*" }),
2029
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1857
2030
  "input",
1858
2031
  {
1859
2032
  type: "number",
@@ -1873,7 +2046,7 @@ var MoneyInput = (props) => {
1873
2046
  className: "peer mt-1 py-1.5 block w-full rounded shadow-sm number-input"
1874
2047
  }
1875
2048
  ),
1876
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
2049
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
1877
2050
  ] }) });
1878
2051
  };
1879
2052
  var MoneyInput_default = MoneyInput;
@@ -1904,10 +2077,10 @@ var InputControlType = {
1904
2077
  var InputControlType_default = InputControlType;
1905
2078
 
1906
2079
  // src/components/controls/edit/Select.tsx
1907
- var import_react14 = require("react");
1908
- var import_jsx_runtime16 = require("react/jsx-runtime");
2080
+ var import_react15 = require("react");
2081
+ var import_jsx_runtime19 = require("react/jsx-runtime");
1909
2082
  var Select = (props) => {
1910
- const [list, setList] = (0, import_react14.useState)([]);
2083
+ const [list, setList] = (0, import_react15.useState)([]);
1911
2084
  const getSafeValue = (val) => {
1912
2085
  if (val === null || val === void 0) return "";
1913
2086
  if (typeof val === "boolean") return val ? "1" : "0";
@@ -1936,7 +2109,7 @@ var Select = (props) => {
1936
2109
  groupKey: props.groupKey
1937
2110
  });
1938
2111
  };
1939
- (0, import_react14.useEffect)(() => {
2112
+ (0, import_react15.useEffect)(() => {
1940
2113
  async function fetchData() {
1941
2114
  if (props.dataset) {
1942
2115
  setList(props.dataset);
@@ -1963,11 +2136,11 @@ var Select = (props) => {
1963
2136
  props.dataSourceDependsOn
1964
2137
  ]);
1965
2138
  const value = getSafeValue(props.value);
1966
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("label", { className: "block", children: [
1967
- props.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "text-sm font-medium inline-block pb-1", children: props.attributes?.label }),
2139
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("label", { className: "block", children: [
2140
+ props.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "text-sm font-medium inline-block pb-1", children: props.attributes?.label }),
1968
2141
  " ",
1969
- props.attributes?.label && props.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "bg-error-weak", children: "*" }),
1970
- /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
2142
+ props.attributes?.label && props.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "bg-error-weak", children: "*" }),
2143
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
1971
2144
  "select",
1972
2145
  {
1973
2146
  name: props.name,
@@ -1978,23 +2151,23 @@ var Select = (props) => {
1978
2151
  disabled: props.attributes?.readOnly,
1979
2152
  className: "peer select py-1.5 block w-full text-black rounded border-gray-300 shadow-sm\n focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50\n disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none",
1980
2153
  children: [
1981
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("option", { value: "", children: props.attributes?.placeholder || "Select" }),
2154
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("option", { value: "", children: props.attributes?.placeholder || "Select" }),
1982
2155
  list.map((item, index) => {
1983
2156
  const keyField = props.dataKeyFieldName;
1984
2157
  const textField = props.dataTextFieldName;
1985
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("option", { value: item[keyField], children: item[textField] }, index);
2158
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("option", { value: item[keyField], children: item[textField] }, index);
1986
2159
  })
1987
2160
  ]
1988
2161
  }
1989
2162
  ),
1990
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 text-alert text-sm", children: props.attributes?.errorMessage || "" })
2163
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 text-alert text-sm", children: props.attributes?.errorMessage || "" })
1991
2164
  ] });
1992
2165
  };
1993
2166
  var Select_default = Select;
1994
2167
 
1995
2168
  // src/components/controls/edit/PercentageInput.tsx
1996
- var import_react15 = __toESM(require("react"));
1997
- var import_jsx_runtime17 = require("react/jsx-runtime");
2169
+ var import_react16 = __toESM(require("react"));
2170
+ var import_jsx_runtime20 = require("react/jsx-runtime");
1998
2171
  var PercentageInput = (props) => {
1999
2172
  const textChangeHandler = (event) => {
2000
2173
  const rawValue = event.target.value;
@@ -2023,11 +2196,11 @@ var PercentageInput = (props) => {
2023
2196
  e.preventDefault();
2024
2197
  }
2025
2198
  };
2026
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_react15.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("label", { className: "block mb-1", children: [
2027
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label ? props?.attributes?.label + " %" : "" }),
2199
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react16.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("label", { className: "block mb-1", children: [
2200
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label ? props?.attributes?.label + " %" : "" }),
2028
2201
  " ",
2029
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "bg-error-weak", children: "*" }),
2030
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
2202
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "bg-error-weak", children: "*" }),
2203
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2031
2204
  "input",
2032
2205
  {
2033
2206
  type: "number",
@@ -2046,14 +2219,14 @@ var PercentageInput = (props) => {
2046
2219
  className: "peer mt-1 py-1.5 block w-full rounded shadow-sm number-input"
2047
2220
  }
2048
2221
  ),
2049
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
2222
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
2050
2223
  ] }) });
2051
2224
  };
2052
2225
  var PercentageInput_default = PercentageInput;
2053
2226
 
2054
2227
  // src/components/controls/edit/PhoneInput.tsx
2055
- var import_react16 = __toESM(require("react"));
2056
- var import_jsx_runtime18 = require("react/jsx-runtime");
2228
+ var import_react17 = __toESM(require("react"));
2229
+ var import_jsx_runtime21 = require("react/jsx-runtime");
2057
2230
  var PhoneInput = (props) => {
2058
2231
  const textChangeHandler = (event) => {
2059
2232
  const text = event.target.value;
@@ -2072,13 +2245,13 @@ var PhoneInput = (props) => {
2072
2245
  if (props.value !== void 0 && props.value !== null) {
2073
2246
  value = props.value;
2074
2247
  }
2075
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_react16.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("label", { className: "block mb-1", children: [
2076
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
2248
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_react17.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("label", { className: "block mb-1", children: [
2249
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
2077
2250
  " ",
2078
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "bg-error-weak", children: "*" }),
2079
- /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "flex items-center rounded border ", children: [
2080
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "px-3", children: props.prefix }),
2081
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
2251
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "bg-error-weak", children: "*" }),
2252
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "flex items-center rounded border ", children: [
2253
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "px-3", children: props.prefix }),
2254
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2082
2255
  "input",
2083
2256
  {
2084
2257
  type: "text",
@@ -2096,14 +2269,14 @@ var PhoneInput = (props) => {
2096
2269
  }
2097
2270
  )
2098
2271
  ] }),
2099
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
2272
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
2100
2273
  ] }) });
2101
2274
  };
2102
2275
  var PhoneInput_default = PhoneInput;
2103
2276
 
2104
2277
  // src/components/controls/edit/NumberInput.tsx
2105
- var import_react17 = __toESM(require("react"));
2106
- var import_jsx_runtime19 = require("react/jsx-runtime");
2278
+ var import_react18 = __toESM(require("react"));
2279
+ var import_jsx_runtime22 = require("react/jsx-runtime");
2107
2280
  var NumberInput = (props) => {
2108
2281
  const textChangeHandler = (event) => {
2109
2282
  const text = event.target.value;
@@ -2126,11 +2299,11 @@ var NumberInput = (props) => {
2126
2299
  if (props.value !== void 0 && props.value !== null) {
2127
2300
  value = props.value;
2128
2301
  }
2129
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_react17.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("label", { className: "block", children: [
2130
- props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "text-sm inline-block pb-1 font-medium ", children: props?.attributes?.label }),
2302
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_react18.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("label", { className: "block", children: [
2303
+ props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "text-sm inline-block pb-1 font-medium ", children: props?.attributes?.label }),
2131
2304
  " ",
2132
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "bg-error-weak", children: "*" }),
2133
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
2305
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "bg-error-weak", children: "*" }),
2306
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2134
2307
  "input",
2135
2308
  {
2136
2309
  type: "number",
@@ -2149,14 +2322,14 @@ var NumberInput = (props) => {
2149
2322
  className: "peer py-1.5 block w-full rounded shadow-sm number-input input\n disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none\n "
2150
2323
  }
2151
2324
  ),
2152
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
2325
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
2153
2326
  ] }) });
2154
2327
  };
2155
2328
  var NumberInput_default = NumberInput;
2156
2329
 
2157
2330
  // src/components/controls/edit/CheckboxInput.tsx
2158
- var import_react18 = __toESM(require("react"));
2159
- var import_jsx_runtime20 = require("react/jsx-runtime");
2331
+ var import_react19 = __toESM(require("react"));
2332
+ var import_jsx_runtime23 = require("react/jsx-runtime");
2160
2333
  var CheckboxInput = (props) => {
2161
2334
  const textChangeHandler = (event) => {
2162
2335
  let text = event.target.checked;
@@ -2173,11 +2346,11 @@ var CheckboxInput = (props) => {
2173
2346
  if (props.value != void 0 && props.value != null && props.value != "" && (props.value == "true" || props.value.toString() == "true")) {
2174
2347
  value = true;
2175
2348
  }
2176
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react18.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("label", { className: "inline-block mb-1", children: [
2177
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "text-sm font-medium", children: props?.attributes?.label }),
2349
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react19.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("label", { className: "inline-block mb-1", children: [
2350
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "text-sm font-medium", children: props?.attributes?.label }),
2178
2351
  " ",
2179
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "bg-error-weak", children: "*" }),
2180
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2352
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "bg-error-weak", children: "*" }),
2353
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2181
2354
  "input",
2182
2355
  {
2183
2356
  type: "checkbox",
@@ -2194,14 +2367,14 @@ var CheckboxInput = (props) => {
2194
2367
  className: "peer mt-1 py-1.5 block rounded shadow-sm\n disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none\n "
2195
2368
  }
2196
2369
  ),
2197
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
2370
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
2198
2371
  ] }) });
2199
2372
  };
2200
2373
  var CheckboxInput_default = CheckboxInput;
2201
2374
 
2202
2375
  // src/components/controls/edit/OtpInput.tsx
2203
- var import_react19 = __toESM(require("react"));
2204
- var import_jsx_runtime21 = require("react/jsx-runtime");
2376
+ var import_react20 = __toESM(require("react"));
2377
+ var import_jsx_runtime24 = require("react/jsx-runtime");
2205
2378
  var OtpInput = (props) => {
2206
2379
  const textChangeHandler = (event) => {
2207
2380
  const text = event.target.value;
@@ -2223,11 +2396,11 @@ var OtpInput = (props) => {
2223
2396
  if (props.value !== void 0 && props.value !== null) {
2224
2397
  value = props.value;
2225
2398
  }
2226
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_react19.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("label", { htmlFor: props.name, className: "block mb-1 w-full", children: [
2227
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
2399
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react20.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("label", { htmlFor: props.name, className: "block mb-1 w-full", children: [
2400
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
2228
2401
  " ",
2229
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "bg-error-weak", children: "*" }),
2230
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2402
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "bg-error-weak", children: "*" }),
2403
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2231
2404
  "input",
2232
2405
  {
2233
2406
  type: "text",
@@ -2247,14 +2420,14 @@ var OtpInput = (props) => {
2247
2420
  className: "peer mt-1 py-1.5 block w-full rounded shadow-sm tracking-[1.25em] text-center"
2248
2421
  }
2249
2422
  ),
2250
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
2423
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
2251
2424
  ] }) });
2252
2425
  };
2253
2426
  var OtpInput_default = OtpInput;
2254
2427
 
2255
2428
  // src/components/controls/edit/DateTimeInput.tsx
2256
- var import_react20 = __toESM(require("react"));
2257
- var import_jsx_runtime22 = require("react/jsx-runtime");
2429
+ var import_react21 = __toESM(require("react"));
2430
+ var import_jsx_runtime25 = require("react/jsx-runtime");
2258
2431
  var DateTimeInput = (props) => {
2259
2432
  const textChangeHandler = (event) => {
2260
2433
  const localDate = new Date(event.target.value);
@@ -2286,12 +2459,12 @@ var DateTimeInput = (props) => {
2286
2459
  e.preventDefault();
2287
2460
  }
2288
2461
  };
2289
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_react20.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("label", { className: "block mb-1", children: [
2290
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
2462
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_react21.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("label", { className: "block mb-1", children: [
2463
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
2291
2464
  " ",
2292
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "bg-error-weak", children: "*" }),
2293
- /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex items-center gap-2", children: [
2294
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2465
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "bg-error-weak", children: "*" }),
2466
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "flex items-center gap-2", children: [
2467
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2295
2468
  "input",
2296
2469
  {
2297
2470
  type: "datetime-local",
@@ -2309,19 +2482,19 @@ var DateTimeInput = (props) => {
2309
2482
  className: "peer mt-1 py-1.5 block w-full rounded shadow-sm\n disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none\n "
2310
2483
  }
2311
2484
  ),
2312
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { children: timeZoneAbbr })
2485
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { children: timeZoneAbbr })
2313
2486
  ] }),
2314
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
2487
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
2315
2488
  ] }) });
2316
2489
  };
2317
2490
  var DateTimeInput_default = DateTimeInput;
2318
2491
 
2319
2492
  // src/components/controls/edit/ColorInput.tsx
2320
- var import_react21 = __toESM(require("react"));
2321
- var import_jsx_runtime23 = require("react/jsx-runtime");
2493
+ var import_react22 = __toESM(require("react"));
2494
+ var import_jsx_runtime26 = require("react/jsx-runtime");
2322
2495
  var ColorInput = (props) => {
2323
- const [color, setColor] = import_react21.default.useState("#3b82f6");
2324
- (0, import_react21.useEffect)(() => {
2496
+ const [color, setColor] = import_react22.default.useState("#3b82f6");
2497
+ (0, import_react22.useEffect)(() => {
2325
2498
  if (props.value !== void 0 && props.value !== null) {
2326
2499
  if (typeof props.value === "string") {
2327
2500
  setColor(props.value);
@@ -2340,11 +2513,11 @@ var ColorInput = (props) => {
2340
2513
  });
2341
2514
  }
2342
2515
  };
2343
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("label", { className: "block mb-1", children: [
2344
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "text-sm font-medium", children: props?.attributes?.label }),
2516
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("label", { className: "block mb-1", children: [
2517
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "text-sm font-medium", children: props?.attributes?.label }),
2345
2518
  " ",
2346
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "bg-error-weak", children: "*" }),
2347
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2519
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "bg-error-weak", children: "*" }),
2520
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2348
2521
  "input",
2349
2522
  {
2350
2523
  type: "color",
@@ -2357,21 +2530,21 @@ var ColorInput = (props) => {
2357
2530
  className: `w-[78px] h-12 block cursor-pointer`
2358
2531
  }
2359
2532
  ),
2360
- props?.attributes?.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { className: "mt-1 bg-error-weak text-sm", children: props.attributes.errorMessage })
2533
+ props?.attributes?.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "mt-1 bg-error-weak text-sm", children: props.attributes.errorMessage })
2361
2534
  ] });
2362
2535
  };
2363
2536
  var ColorInput_default = ColorInput;
2364
2537
 
2365
2538
  // src/components/controls/edit/SelectWithSearchInput.tsx
2366
- var import_react22 = require("react");
2367
- var import_jsx_runtime24 = require("react/jsx-runtime");
2539
+ var import_react23 = require("react");
2540
+ var import_jsx_runtime27 = require("react/jsx-runtime");
2368
2541
  var SelectWithSearchInput = (props) => {
2369
- const [isOpen, setIsOpen] = (0, import_react22.useState)(false);
2370
- const [searchTerm, setSearchTerm] = (0, import_react22.useState)("");
2371
- const [highlightedIndex, setHighlightedIndex] = (0, import_react22.useState)(-1);
2372
- const [selectedItem, setSelectedItem] = (0, import_react22.useState)(null);
2373
- const [list, setList] = (0, import_react22.useState)([]);
2374
- (0, import_react22.useEffect)(() => {
2542
+ const [isOpen, setIsOpen] = (0, import_react23.useState)(false);
2543
+ const [searchTerm, setSearchTerm] = (0, import_react23.useState)("");
2544
+ const [highlightedIndex, setHighlightedIndex] = (0, import_react23.useState)(-1);
2545
+ const [selectedItem, setSelectedItem] = (0, import_react23.useState)(null);
2546
+ const [list, setList] = (0, import_react23.useState)([]);
2547
+ (0, import_react23.useEffect)(() => {
2375
2548
  async function fetchData() {
2376
2549
  if (props.dataset) {
2377
2550
  setList(props.dataset);
@@ -2425,8 +2598,8 @@ var SelectWithSearchInput = (props) => {
2425
2598
  handleSelect(e, filteredItems[highlightedIndex]);
2426
2599
  }
2427
2600
  };
2428
- const dropdownRef = (0, import_react22.useRef)(null);
2429
- (0, import_react22.useEffect)(() => {
2601
+ const dropdownRef = (0, import_react23.useRef)(null);
2602
+ (0, import_react23.useEffect)(() => {
2430
2603
  if (highlightedIndex >= 0 && dropdownRef.current) {
2431
2604
  const highlightedItem = dropdownRef.current.children[highlightedIndex];
2432
2605
  highlightedItem?.scrollIntoView({
@@ -2435,15 +2608,15 @@ var SelectWithSearchInput = (props) => {
2435
2608
  });
2436
2609
  }
2437
2610
  }, [highlightedIndex]);
2438
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "relative", children: [
2439
- /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("label", { children: [
2611
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "relative", children: [
2612
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("label", { children: [
2440
2613
  props.attributes?.label,
2441
2614
  " ",
2442
2615
  " ",
2443
- props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "bg-error-weak", children: "*" })
2616
+ props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "bg-error-weak", children: "*" })
2444
2617
  ] }),
2445
- /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "relative", children: [
2446
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2618
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "relative", children: [
2619
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2447
2620
  "input",
2448
2621
  {
2449
2622
  type: "text",
@@ -2459,13 +2632,13 @@ var SelectWithSearchInput = (props) => {
2459
2632
  className: "peer py-1.5 select block w-full text-black rounded border-gray-300 shadow-sm\n focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50\n disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none\n "
2460
2633
  }
2461
2634
  ),
2462
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2635
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2463
2636
  "button",
2464
2637
  {
2465
2638
  type: "button",
2466
2639
  onClick: () => setIsOpen(!isOpen),
2467
2640
  className: "absolute right-2 top-3 h-5 w-5 text-gray-500 focus:outline-none",
2468
- children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2641
+ children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2469
2642
  "svg",
2470
2643
  {
2471
2644
  xmlns: "http://www.w3.org/2000/svg",
@@ -2474,7 +2647,7 @@ var SelectWithSearchInput = (props) => {
2474
2647
  strokeWidth: 1.5,
2475
2648
  stroke: "currentColor",
2476
2649
  className: "w-full h-full",
2477
- children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2650
+ children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2478
2651
  "path",
2479
2652
  {
2480
2653
  strokeLinecap: "round",
@@ -2487,12 +2660,12 @@ var SelectWithSearchInput = (props) => {
2487
2660
  }
2488
2661
  )
2489
2662
  ] }),
2490
- isOpen && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2663
+ isOpen && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2491
2664
  "div",
2492
2665
  {
2493
2666
  ref: dropdownRef,
2494
2667
  className: "absolute z-10 mt-2 w-full bg-white border border-gray-200 rounded-md shadow-lg max-h-48 overflow-y-auto",
2495
- children: filteredItems.length > 0 ? filteredItems.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2668
+ children: filteredItems.length > 0 ? filteredItems.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2496
2669
  "button",
2497
2670
  {
2498
2671
  onClick: (e) => handleSelect(e, item),
@@ -2500,10 +2673,10 @@ var SelectWithSearchInput = (props) => {
2500
2673
  role: "option",
2501
2674
  tabIndex: -1,
2502
2675
  onMouseEnter: () => setHighlightedIndex(index),
2503
- children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { children: item[props.dataTextFieldName] })
2676
+ children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { children: item[props.dataTextFieldName] })
2504
2677
  },
2505
2678
  item[props.dataKeyFieldName]
2506
- )) : /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "px-4 py-2 text-gray-500", children: "No results found" })
2679
+ )) : /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "px-4 py-2 text-gray-500", children: "No results found" })
2507
2680
  }
2508
2681
  )
2509
2682
  ] });
@@ -2512,22 +2685,22 @@ var SelectWithSearchInput_default = SelectWithSearchInput;
2512
2685
 
2513
2686
  // src/components/controls/edit/SelectWithSearchPanel.tsx
2514
2687
  init_Button();
2515
- var import_react26 = __toESM(require("react"));
2516
- var import_jsx_runtime28 = require("react/jsx-runtime");
2688
+ var import_react27 = __toESM(require("react"));
2689
+ var import_jsx_runtime31 = require("react/jsx-runtime");
2517
2690
  var SelectWithSearchPanel = (props) => {
2518
- const [isOpen, setIsOpen] = (0, import_react26.useState)(false);
2519
- const [searchTerm, setSearchTerm] = (0, import_react26.useState)("");
2520
- const [highlightedIndex, setHighlightedIndex] = (0, import_react26.useState)(0);
2521
- const [list, setList] = (0, import_react26.useState)([]);
2522
- const listRef = (0, import_react26.useRef)(null);
2523
- const [isError, setIsError] = (0, import_react26.useState)(false);
2524
- const containerRef = (0, import_react26.useRef)(null);
2525
- const [isCreateOpen, setIsCreateOpen] = (0, import_react26.useState)(false);
2526
- const [formData, setFormData] = (0, import_react26.useState)({});
2691
+ const [isOpen, setIsOpen] = (0, import_react27.useState)(false);
2692
+ const [searchTerm, setSearchTerm] = (0, import_react27.useState)("");
2693
+ const [highlightedIndex, setHighlightedIndex] = (0, import_react27.useState)(0);
2694
+ const [list, setList] = (0, import_react27.useState)([]);
2695
+ const listRef = (0, import_react27.useRef)(null);
2696
+ const [isError, setIsError] = (0, import_react27.useState)(false);
2697
+ const containerRef = (0, import_react27.useRef)(null);
2698
+ const [isCreateOpen, setIsCreateOpen] = (0, import_react27.useState)(false);
2699
+ const [formData, setFormData] = (0, import_react27.useState)({});
2527
2700
  const getNestedValue3 = (obj, path) => {
2528
2701
  return path.split(".").reduce((acc, key) => acc?.[key], obj);
2529
2702
  };
2530
- (0, import_react26.useEffect)(() => {
2703
+ (0, import_react27.useEffect)(() => {
2531
2704
  const handleClickOutside = (event) => {
2532
2705
  if (containerRef.current && !containerRef.current.contains(event.target)) {
2533
2706
  setIsOpen(false);
@@ -2538,7 +2711,7 @@ var SelectWithSearchPanel = (props) => {
2538
2711
  document.removeEventListener("mousedown", handleClickOutside);
2539
2712
  };
2540
2713
  }, []);
2541
- (0, import_react26.useEffect)(() => {
2714
+ (0, import_react27.useEffect)(() => {
2542
2715
  async function fetchData() {
2543
2716
  if (props.dataset) {
2544
2717
  setList(props.dataset);
@@ -2580,7 +2753,7 @@ var SelectWithSearchPanel = (props) => {
2580
2753
  audioCtx.close();
2581
2754
  }, 250);
2582
2755
  };
2583
- (0, import_react26.useEffect)(() => {
2756
+ (0, import_react27.useEffect)(() => {
2584
2757
  const filteredItems2 = list?.filter(
2585
2758
  (item) => item[props?.dataTextFieldName]?.toLowerCase().includes(searchTerm?.toLowerCase())
2586
2759
  );
@@ -2645,18 +2818,18 @@ var SelectWithSearchPanel = (props) => {
2645
2818
  const handleInputChange = (event, field) => {
2646
2819
  setFormData((prev) => ({ ...prev, [field]: event.target.value }));
2647
2820
  };
2648
- const handleSaveModal = (0, import_react26.useCallback)(async () => {
2821
+ const handleSaveModal = (0, import_react27.useCallback)(async () => {
2649
2822
  console.log("Form Data:", formData);
2650
2823
  return formData;
2651
2824
  }, []);
2652
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "relative", children: [
2653
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("label", { className: "text-sm mb-1 font-medium", children: [
2825
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "relative", children: [
2826
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("label", { className: "text-sm mb-1 font-medium", children: [
2654
2827
  props.attributes?.label,
2655
2828
  " ",
2656
2829
  " ",
2657
- props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "bg-error-weak", children: "*" })
2830
+ props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "bg-error-weak", children: "*" })
2658
2831
  ] }),
2659
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
2832
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2660
2833
  "input",
2661
2834
  {
2662
2835
  type: "text",
@@ -2670,14 +2843,14 @@ var SelectWithSearchPanel = (props) => {
2670
2843
  disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none`
2671
2844
  }
2672
2845
  ) }),
2673
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { ref: containerRef, children: isOpen && /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_react26.default.Fragment, { children: [
2674
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "fixed z-50 right-0 bg-white top-[62px] w-1/4 border-l border-gray-200", children: [
2675
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "flex flex-col p-2 bg-accent-950 text-white", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("h5", { className: "text-md text-white font-medium", children: [
2846
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { ref: containerRef, children: isOpen && /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_react27.default.Fragment, { children: [
2847
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "fixed z-50 right-0 bg-white top-[62px] w-1/4 border-l border-gray-200", children: [
2848
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "flex flex-col p-2 bg-accent-950 text-white", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("h5", { className: "text-md text-white font-medium", children: [
2676
2849
  "Select a",
2677
2850
  " ",
2678
2851
  props.attributes?.label || props.attributes?.heading
2679
2852
  ] }) }),
2680
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "flex justify-end px-4 border-b py-2 border-gray-200 h-10", children: props.createFields && props.createFields.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
2853
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "flex justify-end px-4 border-b py-2 border-gray-200 h-10", children: props.createFields && props.createFields.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2681
2854
  "button",
2682
2855
  {
2683
2856
  type: "button",
@@ -2690,12 +2863,12 @@ var SelectWithSearchPanel = (props) => {
2690
2863
  }
2691
2864
  ) })
2692
2865
  ] }),
2693
- isCreateOpen && /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "fixed right-0 w-1/4 h-full top-[62px] bg-white shadow-lg border-l border-gray-200 z-50", children: [
2694
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "flex flex-col p-2 bg-accent-950", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("h5", { className: "text-md font-medium text-white", children: [
2866
+ isCreateOpen && /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "fixed right-0 w-1/4 h-full top-[62px] bg-white shadow-lg border-l border-gray-200 z-50", children: [
2867
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "flex flex-col p-2 bg-accent-950", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("h5", { className: "text-md font-medium text-white", children: [
2695
2868
  "Create New ",
2696
2869
  props.attributes?.label
2697
2870
  ] }) }),
2698
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "flex justify-end px-4 border-b py-2 border-gray-200", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
2871
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "flex justify-end px-4 border-b py-2 border-gray-200", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2699
2872
  "button",
2700
2873
  {
2701
2874
  type: "button",
@@ -2704,10 +2877,10 @@ var SelectWithSearchPanel = (props) => {
2704
2877
  children: "Close"
2705
2878
  }
2706
2879
  ) }),
2707
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "p-4", children: [
2708
- props.createFields?.map((field) => /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "mb-4", children: [
2709
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("label", { className: "text-sm mb-1 font-medium block", children: field.label }),
2710
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
2880
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "p-4", children: [
2881
+ props.createFields?.map((field) => /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "mb-4", children: [
2882
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("label", { className: "text-sm mb-1 font-medium block", children: field.label }),
2883
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2711
2884
  "input",
2712
2885
  {
2713
2886
  type: field.type,
@@ -2723,7 +2896,7 @@ var SelectWithSearchPanel = (props) => {
2723
2896
  }
2724
2897
  )
2725
2898
  ] }, field.name)),
2726
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(Button_default, { onClick: async () => {
2899
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(Button_default, { onClick: async () => {
2727
2900
  handleSaveModal();
2728
2901
  return { isSuccessful: true };
2729
2902
  }, className: "w-full", children: [
@@ -2732,13 +2905,13 @@ var SelectWithSearchPanel = (props) => {
2732
2905
  ] })
2733
2906
  ] })
2734
2907
  ] }),
2735
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
2908
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2736
2909
  "div",
2737
2910
  {
2738
2911
  ref: listRef,
2739
2912
  className: "fixed z-10 right-0 mt-[130px] top-0 w-1/4 bg-white border-l border-gray-200 shadow-lg overflow-y-auto",
2740
2913
  style: { height: "calc(100vh - 130px)" },
2741
- children: filteredItems.length > 0 ? filteredItems.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
2914
+ children: filteredItems.length > 0 ? filteredItems.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2742
2915
  "button",
2743
2916
  {
2744
2917
  onClick: (e) => {
@@ -2748,9 +2921,9 @@ var SelectWithSearchPanel = (props) => {
2748
2921
  role: "option",
2749
2922
  tabIndex: -1,
2750
2923
  onMouseEnter: () => setHighlightedIndex(index),
2751
- children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { children: getNestedValue3(item, props.dataTextFieldName) })
2924
+ children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { children: getNestedValue3(item, props.dataTextFieldName) })
2752
2925
  }
2753
- ) }, item[props.dataKeyFieldName])) : /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "px-4 py-2 text-gray-500", children: "No results found" })
2926
+ ) }, item[props.dataKeyFieldName])) : /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "px-4 py-2 text-gray-500", children: "No results found" })
2754
2927
  }
2755
2928
  )
2756
2929
  ] }) })
@@ -2759,10 +2932,10 @@ var SelectWithSearchPanel = (props) => {
2759
2932
  var SelectWithSearchPanel_default = SelectWithSearchPanel;
2760
2933
 
2761
2934
  // src/components/controls/edit/BooleanSelect.tsx
2762
- var import_react27 = __toESM(require("react"));
2763
- var import_jsx_runtime29 = require("react/jsx-runtime");
2935
+ var import_react28 = __toESM(require("react"));
2936
+ var import_jsx_runtime32 = require("react/jsx-runtime");
2764
2937
  var BooleanSelect = (props) => {
2765
- const [list, setList] = (0, import_react27.useState)();
2938
+ const [list, setList] = (0, import_react28.useState)();
2766
2939
  const textChangeHandler = (event) => {
2767
2940
  const text = event.target.value;
2768
2941
  const boolValue = text?.toLowerCase() === "true" || text === "1";
@@ -2775,7 +2948,7 @@ var BooleanSelect = (props) => {
2775
2948
  });
2776
2949
  }
2777
2950
  };
2778
- (0, import_react27.useEffect)(() => {
2951
+ (0, import_react28.useEffect)(() => {
2779
2952
  async function fetchData() {
2780
2953
  console.log("in select");
2781
2954
  if (props.dataset) {
@@ -2809,11 +2982,11 @@ var BooleanSelect = (props) => {
2809
2982
  if (props.value !== void 0 && props.value !== null) {
2810
2983
  value = props.value;
2811
2984
  }
2812
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react27.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("label", { className: "block", children: [
2813
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
2985
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react28.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("label", { className: "block", children: [
2986
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
2814
2987
  " ",
2815
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "bg-error-weak", children: "*" }),
2816
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
2988
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "bg-error-weak", children: "*" }),
2989
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
2817
2990
  "select",
2818
2991
  {
2819
2992
  name: props.name,
@@ -2825,9 +2998,9 @@ var BooleanSelect = (props) => {
2825
2998
  disabled: props?.attributes?.readOnly,
2826
2999
  className: "peer mt-1 py-1.5 block w-full text-black rounded shadow-sm\n disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none\n ",
2827
3000
  children: [
2828
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("option", { className: "", value: "", children: props.attributes?.placeholder || "Select" }),
3001
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("option", { className: "", value: "", children: props.attributes?.placeholder || "Select" }),
2829
3002
  list && list.map((item, i) => {
2830
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
3003
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
2831
3004
  "option",
2832
3005
  {
2833
3006
  className: "fac-select-option",
@@ -2840,14 +3013,14 @@ var BooleanSelect = (props) => {
2840
3013
  ]
2841
3014
  }
2842
3015
  ),
2843
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
3016
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
2844
3017
  ] }) });
2845
3018
  };
2846
3019
  var BooleanSelect_default = BooleanSelect;
2847
3020
 
2848
3021
  // src/components/controls/edit/EmailInput.tsx
2849
- var import_react28 = __toESM(require("react"));
2850
- var import_jsx_runtime30 = require("react/jsx-runtime");
3022
+ var import_react29 = __toESM(require("react"));
3023
+ var import_jsx_runtime33 = require("react/jsx-runtime");
2851
3024
  var EmailInput = (props) => {
2852
3025
  const textChangeHandler = (event) => {
2853
3026
  const text = event.target.value;
@@ -2872,11 +3045,11 @@ var EmailInput = (props) => {
2872
3045
  if (props.value !== void 0 && props.value !== null) {
2873
3046
  value = props.value;
2874
3047
  }
2875
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react28.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("label", { className: "block mb-1", children: [
2876
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "text-sm font-medium text-slate-700", children: props?.attributes?.label }),
3048
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react29.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("label", { className: "block mb-1", children: [
3049
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "text-sm font-medium text-slate-700", children: props?.attributes?.label }),
2877
3050
  " ",
2878
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "bg-error-weak", children: "*" }),
2879
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
3051
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "bg-error-weak", children: "*" }),
3052
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
2880
3053
  "input",
2881
3054
  {
2882
3055
  type: "email",
@@ -2892,14 +3065,14 @@ var EmailInput = (props) => {
2892
3065
  className: "peer mt-1 py-1.5 block w-full rounded shadow-sm\n transition-all duration-500 ease-in-out"
2893
3066
  }
2894
3067
  ),
2895
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 mb-0 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
3068
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 mb-0 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
2896
3069
  ] }) });
2897
3070
  };
2898
3071
  var EmailInput_default = EmailInput;
2899
3072
 
2900
3073
  // src/components/controls/edit/TimeInput.tsx
2901
- var import_react29 = __toESM(require("react"));
2902
- var import_jsx_runtime31 = require("react/jsx-runtime");
3074
+ var import_react30 = __toESM(require("react"));
3075
+ var import_jsx_runtime34 = require("react/jsx-runtime");
2903
3076
  var TimeInput = (props) => {
2904
3077
  const timeChangeHandler = (event) => {
2905
3078
  const timeValue = event.target.value;
@@ -2912,11 +3085,11 @@ var TimeInput = (props) => {
2912
3085
  });
2913
3086
  }
2914
3087
  };
2915
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react29.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("label", { className: "block mb-1", children: [
2916
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-sm font-medium", children: props?.attributes?.label }),
3088
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_react30.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("label", { className: "block mb-1", children: [
3089
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "text-sm font-medium", children: props?.attributes?.label }),
2917
3090
  " ",
2918
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "bg-error-weak", children: "*" }),
2919
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
3091
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "bg-error-weak", children: "*" }),
3092
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
2920
3093
  "input",
2921
3094
  {
2922
3095
  type: "time",
@@ -2929,41 +3102,20 @@ var TimeInput = (props) => {
2929
3102
  className: "peer mt-1 py-1.5 block w-full rounded shadow-sm\n disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none"
2930
3103
  }
2931
3104
  ) }),
2932
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ?? "" })
3105
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ?? "" })
2933
3106
  ] }) });
2934
3107
  };
2935
3108
  var TimeInput_default = TimeInput;
2936
3109
 
2937
3110
  // src/components/controls/edit/AssetUpload.tsx
2938
- var import_react30 = __toESM(require("react"));
3111
+ var import_react31 = __toESM(require("react"));
2939
3112
  init_ClientButton();
2940
3113
  init_StyleTypes();
2941
3114
 
2942
- // src/components/utilities/AssetUtility.tsx
2943
- var AssetUtility = class {
2944
- constructor() {
2945
- }
2946
- static resolveUrl(assetBaseUrl, url) {
2947
- if (!url) return void 0;
2948
- if (url.startsWith("http")) return url;
2949
- if (!assetBaseUrl) return url;
2950
- return `${assetBaseUrl}/${url}`;
2951
- }
2952
- // static getAssetUrl(apiBaseUrl: string) {
2953
- // let domainName = apiBaseUrl.replace("https://", "");
2954
- // return `https://cdn.g-assets.com/${domainName}`;
2955
- // }
2956
- static getAssetFullPath(apiBaseUrl, relativePath) {
2957
- const domainName = apiBaseUrl.replace("https://", "");
2958
- return `https://cdn.g-assets.com/${domainName}/${relativePath}`;
2959
- }
2960
- };
2961
- var AssetUtility_default = AssetUtility;
2962
-
2963
3115
  // src/components/dataForm/Hyperlink.tsx
2964
3116
  var import_link = __toESM(require("next/link"));
2965
3117
  init_StyleTypes();
2966
- var import_jsx_runtime32 = require("react/jsx-runtime");
3118
+ var import_jsx_runtime35 = require("react/jsx-runtime");
2967
3119
  function Hyperlink(props) {
2968
3120
  let linkClass = props.linkType ? buttonClasses.get(props.linkType) : buttonClasses.get("Link" /* Link */);
2969
3121
  const target = props?.href?.startsWith("http") ? "_blank" : "_self";
@@ -2971,7 +3123,7 @@ function Hyperlink(props) {
2971
3123
  if (target == "_blank") {
2972
3124
  additionalProps.rel = "noopener noreferrer";
2973
3125
  }
2974
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_jsx_runtime32.Fragment, { children: props.href ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
3126
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_jsx_runtime35.Fragment, { children: props.href ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2975
3127
  import_link.default,
2976
3128
  {
2977
3129
  href: props.href,
@@ -2981,34 +3133,34 @@ function Hyperlink(props) {
2981
3133
  target,
2982
3134
  children: props.children
2983
3135
  }
2984
- ) : props.isHeading ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("h5", { className: props.className + "inline-block", children: props.children }) : /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: props.className, children: props.children }) });
3136
+ ) : props.isHeading ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("h5", { className: props.className + "inline-block", children: props.children }) : /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: props.className, children: props.children }) });
2985
3137
  }
2986
3138
 
2987
3139
  // src/svg/chevron-updown.tsx
2988
- var import_jsx_runtime33 = require("react/jsx-runtime");
3140
+ var import_jsx_runtime36 = require("react/jsx-runtime");
2989
3141
  var ChevronUpDown = (props) => {
2990
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: props.className, children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9" }) });
3142
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: props.className, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9" }) });
2991
3143
  };
2992
3144
  var chevron_updown_default = ChevronUpDown;
2993
3145
 
2994
3146
  // src/svg/chevron-down.tsx
2995
- var import_jsx_runtime34 = require("react/jsx-runtime");
3147
+ var import_jsx_runtime37 = require("react/jsx-runtime");
2996
3148
  var ChevronDown = (props) => {
2997
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: props.className, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M19.5 8.25l-7.5 7.5-7.5-7.5" }) });
3149
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: props.className, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M19.5 8.25l-7.5 7.5-7.5-7.5" }) });
2998
3150
  };
2999
3151
  var chevron_down_default = ChevronDown;
3000
3152
 
3001
3153
  // src/svg/chevron-up.tsx
3002
- var import_jsx_runtime35 = require("react/jsx-runtime");
3154
+ var import_jsx_runtime38 = require("react/jsx-runtime");
3003
3155
  var ChevronUp = (props) => {
3004
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: props.className, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M4.5 15.75l7.5-7.5 7.5 7.5" }) });
3156
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: props.className, children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M4.5 15.75l7.5-7.5 7.5 7.5" }) });
3005
3157
  };
3006
3158
  var chevron_up_default = ChevronUp;
3007
3159
 
3008
3160
  // src/svg/plus.tsx
3009
- var import_jsx_runtime36 = require("react/jsx-runtime");
3161
+ var import_jsx_runtime39 = require("react/jsx-runtime");
3010
3162
  var Plus = (props) => {
3011
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: props.className, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M12 4.5v15m7.5-7.5h-15" }) });
3163
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: props.className, children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M12 4.5v15m7.5-7.5h-15" }) });
3012
3164
  };
3013
3165
  var plus_default = Plus;
3014
3166
 
@@ -3022,19 +3174,19 @@ var Icons = {
3022
3174
  var Icons_default = Icons;
3023
3175
 
3024
3176
  // src/svg/Icon.tsx
3025
- var import_jsx_runtime37 = require("react/jsx-runtime");
3177
+ var import_jsx_runtime40 = require("react/jsx-runtime");
3026
3178
  var Icon = ({ name, className, ...props }) => {
3027
3179
  const IconComponent = Icons_default[name];
3028
3180
  if (!IconComponent) {
3029
3181
  console.error(`Icon "${name}" not found.`);
3030
3182
  return null;
3031
3183
  }
3032
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(IconComponent, { ...props, className });
3184
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(IconComponent, { ...props, className });
3033
3185
  };
3034
3186
  var Icon_default = Icon;
3035
3187
 
3036
3188
  // src/components/controls/edit/AssetUpload.tsx
3037
- var import_jsx_runtime38 = require("react/jsx-runtime");
3189
+ var import_jsx_runtime41 = require("react/jsx-runtime");
3038
3190
  var AssetUpload = (props) => {
3039
3191
  const isDisabled = props.attributes?.disable ?? false;
3040
3192
  let allValues = [];
@@ -3055,8 +3207,8 @@ var AssetUpload = (props) => {
3055
3207
  }
3056
3208
  return "image";
3057
3209
  };
3058
- const [assetType, setAssetType] = import_react30.default.useState(getInitialTab);
3059
- (0, import_react30.useEffect)(() => {
3210
+ const [assetType, setAssetType] = import_react31.default.useState(getInitialTab);
3211
+ (0, import_react31.useEffect)(() => {
3060
3212
  setAssetType(getInitialTab());
3061
3213
  }, [props.value]);
3062
3214
  const assetUploadCallback = (newAsset) => {
@@ -3131,10 +3283,10 @@ var AssetUpload = (props) => {
3131
3283
  }
3132
3284
  return false;
3133
3285
  };
3134
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_react30.default.Fragment, { children: [
3135
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("label", { className: "block mb-1", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "text-sm font-medium", children: props?.attributes?.label }) }),
3136
- /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "flex gap-6 bg-neutral-100 rounded p-2", children: [
3137
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3286
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(import_react31.default.Fragment, { children: [
3287
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("label", { className: "block mb-1", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: "text-sm font-medium", children: props?.attributes?.label }) }),
3288
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "flex gap-6 bg-neutral-100 rounded p-2", children: [
3289
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3138
3290
  ClientButton_default,
3139
3291
  {
3140
3292
  className: assetType === "image" ? "px-2 py-1 rounded bg-body-200 scale-95" : "text-neutral-700",
@@ -3144,7 +3296,7 @@ var AssetUpload = (props) => {
3144
3296
  children: "Image Upload"
3145
3297
  }
3146
3298
  ),
3147
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3299
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3148
3300
  ClientButton_default,
3149
3301
  {
3150
3302
  className: assetType === "video" ? "bg-body-200 px-2 py-1 rounded-md scale-95" : "text-neutral-700",
@@ -3155,13 +3307,13 @@ var AssetUpload = (props) => {
3155
3307
  }
3156
3308
  )
3157
3309
  ] }),
3158
- shouldShowDetails() && /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "relative mt-4 rounded-md p-4 border-2 border-dotted border-gray-300 bg-gray-50", children: [
3159
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "absolute -top-2.5 left-3 bg-primary-600 text-white text-xs px-2 py-0.5 rounded-full", children: getAssetType(allValues[0]) === "video" ? "Video" : "Image" }),
3160
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "flex flex-col gap-3", children: allValues.map((digitalAsset, index) => /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "flex justify-between items-start gap-5", children: [
3161
- /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "grid grid-cols-2 gap-x-8 gap-y-3 text-sm w-full", children: [
3162
- /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { children: [
3163
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { className: "text-gray-500", children: "Title" }),
3164
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3310
+ shouldShowDetails() && /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "relative mt-4 rounded-md p-4 border-2 border-dotted border-gray-300 bg-gray-50", children: [
3311
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: "absolute -top-2.5 left-3 bg-primary-600 text-white text-xs px-2 py-0.5 rounded-full", children: getAssetType(allValues[0]) === "video" ? "Video" : "Image" }),
3312
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "flex flex-col gap-3", children: allValues.map((digitalAsset, index) => /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "flex justify-between items-start gap-5", children: [
3313
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "grid grid-cols-2 gap-x-8 gap-y-3 text-sm w-full", children: [
3314
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { children: [
3315
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("p", { className: "text-gray-500", children: "Title" }),
3316
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3165
3317
  "input",
3166
3318
  {
3167
3319
  type: "text",
@@ -3173,18 +3325,18 @@ var AssetUpload = (props) => {
3173
3325
  }
3174
3326
  )
3175
3327
  ] }),
3176
- digitalAsset.intrinsicWidth && digitalAsset.intrinsicHeight && /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { children: [
3177
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { className: "text-gray-500", children: "Resolution" }),
3178
- /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("p", { className: "font-medium text-gray-900 mt-3", children: [
3328
+ digitalAsset.intrinsicWidth && digitalAsset.intrinsicHeight && /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { children: [
3329
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("p", { className: "text-gray-500", children: "Resolution" }),
3330
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("p", { className: "font-medium text-gray-900 mt-3", children: [
3179
3331
  digitalAsset.intrinsicWidth,
3180
3332
  "\xD7",
3181
3333
  digitalAsset.intrinsicHeight
3182
3334
  ] })
3183
3335
  ] }),
3184
- (digitalAsset.assetUrl || digitalAsset.posterUrl) && /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { children: [
3185
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { className: "text-gray-500", children: "Image / Poster" }),
3186
- /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "flex-shrink-0 flex flex-col gap-3 mt-1", children: [
3187
- getAssetType(digitalAsset) === "video" && digitalAsset.posterUrl && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3336
+ (digitalAsset.assetUrl || digitalAsset.posterUrl) && /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { children: [
3337
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("p", { className: "text-gray-500", children: "Image / Poster" }),
3338
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "flex-shrink-0 flex flex-col gap-3 mt-1", children: [
3339
+ getAssetType(digitalAsset) === "video" && digitalAsset.posterUrl && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3188
3340
  "img",
3189
3341
  {
3190
3342
  src: AssetUtility_default.resolveUrl(props.serviceClient?.baseUrl, digitalAsset.posterUrl),
@@ -3192,7 +3344,7 @@ var AssetUpload = (props) => {
3192
3344
  className: "w-32 h-auto object-cover rounded border p-1"
3193
3345
  }
3194
3346
  ),
3195
- getAssetType(digitalAsset) === "image" && digitalAsset.assetUrl && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3347
+ getAssetType(digitalAsset) === "image" && digitalAsset.assetUrl && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3196
3348
  "img",
3197
3349
  {
3198
3350
  src: AssetUtility_default.resolveUrl(props.serviceClient?.baseUrl, digitalAsset.assetUrl),
@@ -3202,9 +3354,9 @@ var AssetUpload = (props) => {
3202
3354
  )
3203
3355
  ] })
3204
3356
  ] }),
3205
- digitalAsset.assetUrl?.endsWith(".m3u8") && /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "col-span-2", children: [
3206
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { className: "text-gray-500", children: "HLS Link" }),
3207
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3357
+ digitalAsset.assetUrl?.endsWith(".m3u8") && /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "col-span-2", children: [
3358
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("p", { className: "text-gray-500", children: "HLS Link" }),
3359
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3208
3360
  Hyperlink,
3209
3361
  {
3210
3362
  href: digitalAsset.assetUrl,
@@ -3215,12 +3367,12 @@ var AssetUpload = (props) => {
3215
3367
  )
3216
3368
  ] })
3217
3369
  ] }),
3218
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3370
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3219
3371
  "span",
3220
3372
  {
3221
3373
  onClick: () => !isDisabled && deleteFile(index),
3222
3374
  className: isDisabled ? "cursor-not-allowed opacity-50" : "cursor-pointer",
3223
- children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Icon_default, { className: "w-4 h-4 text-primary", name: "delete" })
3375
+ children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Icon_default, { className: "w-4 h-4 text-primary", name: "delete" })
3224
3376
  }
3225
3377
  )
3226
3378
  ] }, index)) })
@@ -3230,8 +3382,8 @@ var AssetUpload = (props) => {
3230
3382
  var AssetUpload_default = AssetUpload;
3231
3383
 
3232
3384
  // src/components/controls/edit/InputControl.tsx
3233
- var import_jsx_runtime39 = require("react/jsx-runtime");
3234
- var InputControl = import_react31.default.forwardRef(
3385
+ var import_jsx_runtime42 = require("react/jsx-runtime");
3386
+ var InputControl = import_react32.default.forwardRef(
3235
3387
  (props, ref) => {
3236
3388
  const ControlComponents = {
3237
3389
  [InputControlType_default.lineTextInput]: LineTextInput_default,
@@ -3253,7 +3405,7 @@ var InputControl = import_react31.default.forwardRef(
3253
3405
  [InputControlType_default.asset]: AssetUpload_default
3254
3406
  };
3255
3407
  const SelectedControlComponent = ControlComponents[props.controlType];
3256
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_react31.default.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(SelectedControlComponent, { ...props }) : "Control not found" });
3408
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_react32.default.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(SelectedControlComponent, { ...props }) : "Control not found" });
3257
3409
  }
3258
3410
  );
3259
3411
  InputControl.displayName = "InputControl";
@@ -3266,7 +3418,7 @@ var import_react50 = __toESM(require("react"));
3266
3418
  var import_react36 = __toESM(require("react"));
3267
3419
 
3268
3420
  // src/components/pageRenderingEngine/nodes/TextNode.tsx
3269
- var import_jsx_runtime40 = require("react/jsx-runtime");
3421
+ var import_jsx_runtime43 = require("react/jsx-runtime");
3270
3422
  var TextNode = (props) => {
3271
3423
  function cssStringToJson(cssString) {
3272
3424
  const styleObject = {};
@@ -3321,26 +3473,26 @@ var TextNode = (props) => {
3321
3473
  });
3322
3474
  }
3323
3475
  function renderWithLineBreaks(text) {
3324
- return text.split("\n").map((line, index, arr) => /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("span", { children: [
3476
+ return text.split("\n").map((line, index, arr) => /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("span", { children: [
3325
3477
  line,
3326
- index < arr.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("br", {})
3478
+ index < arr.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("br", {})
3327
3479
  ] }, index));
3328
3480
  }
3329
3481
  const displayText = props.linkText ? props.linkText : props.node.text;
3330
3482
  const finalText = props.dataitem && props.linkText ? displayText : props.dataitem ? replacePlaceholders(props.node.text, props.dataitem) : props.node.text;
3331
3483
  const content = typeof finalText === "string" ? renderWithLineBreaks(finalText) : finalText;
3332
- const formattedContent = props.node.format & 64 ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("sup", { children: content }) : props.node.format & 32 ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("sub", { children: content }) : content;
3484
+ const formattedContent = props.node.format & 64 ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("sup", { children: content }) : props.node.format & 32 ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("sub", { children: content }) : content;
3333
3485
  return (
3334
3486
  // @ts-expect-error custom code
3335
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { style: { ...styles }, className: getFormatClass(props.node.format), children: formattedContent })
3487
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { style: { ...styles }, className: getFormatClass(props.node.format), children: formattedContent })
3336
3488
  );
3337
3489
  };
3338
3490
  var TextNode_default = TextNode;
3339
3491
 
3340
3492
  // src/components/pageRenderingEngine/nodes/LineBreakNode.tsx
3341
- var import_jsx_runtime41 = require("react/jsx-runtime");
3493
+ var import_jsx_runtime44 = require("react/jsx-runtime");
3342
3494
  var LineBreakNode = () => {
3343
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "py-0.5 lg:py-1.5" });
3495
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "py-0.5 lg:py-1.5" });
3344
3496
  };
3345
3497
  var LineBreakNode_default = LineBreakNode;
3346
3498
 
@@ -3350,128 +3502,7 @@ var import_react35 = __toESM(require("react"));
3350
3502
  // src/components/pageRenderingEngine/nodes/ImageNode.tsx
3351
3503
  var import_react33 = __toESM(require("react"));
3352
3504
  var import_dynamic3 = __toESM(require("next/dynamic"));
3353
-
3354
- // src/components/DeviceAssetSelector.tsx
3355
- init_HlsPlayer();
3356
- var import_jsx_runtime43 = require("react/jsx-runtime");
3357
- var DeviceAssetSelector = ({
3358
- assets,
3359
- assetBaseUrl,
3360
- session,
3361
- // This should receive the session
3362
- width,
3363
- tag,
3364
- customProps,
3365
- nodeProps,
3366
- device
3367
- }) => {
3368
- console.log("\u{1F511} Session in DeviceAssetSelector:", session);
3369
- const targetTag = tag || nodeProps?.tag;
3370
- const selectAssetByDevice = (assets2, currentDevice) => {
3371
- if (!assets2 || assets2.length === 0) return void 0;
3372
- const exactMatch = assets2.find((asset) => asset.device === currentDevice);
3373
- if (exactMatch) return exactMatch;
3374
- const noDeviceMatch = assets2.find((asset) => !asset.device || asset.device === "");
3375
- if (noDeviceMatch) return noDeviceMatch;
3376
- return void 0;
3377
- };
3378
- const selectAssetByTagAndDevice = (assets2, currentDevice, targetTag2) => {
3379
- if (!assets2 || assets2.length === 0) return void 0;
3380
- if (!targetTag2) return selectAssetByDevice(assets2, currentDevice);
3381
- const taggedAssets = assets2.filter((asset) => asset.tag === targetTag2);
3382
- if (taggedAssets.length === 0) {
3383
- return selectAssetByDevice(assets2, currentDevice);
3384
- }
3385
- const exactTaggedMatch = taggedAssets.find((asset) => asset.device === currentDevice);
3386
- if (exactTaggedMatch) return exactTaggedMatch;
3387
- const noDeviceTaggedMatch = taggedAssets.find((asset) => !asset.device || asset.device === "");
3388
- if (noDeviceTaggedMatch) return noDeviceTaggedMatch;
3389
- return void 0;
3390
- };
3391
- const selectAsset = () => {
3392
- if (!assets || assets.length === 0) return void 0;
3393
- if (targetTag) {
3394
- return selectAssetByTagAndDevice(assets, device, targetTag);
3395
- }
3396
- return selectAssetByDevice(assets, device);
3397
- };
3398
- const selectedAsset = selectAsset();
3399
- if (!selectedAsset) {
3400
- console.warn("No suitable asset found for device:", device, "and tag:", targetTag);
3401
- return null;
3402
- }
3403
- const resolvedAssetUrl = AssetUtility_default.resolveUrl(assetBaseUrl, selectedAsset.assetUrl);
3404
- const resolvedThumbnailUrl = selectedAsset.posterUrl ? AssetUtility_default.resolveUrl(assetBaseUrl, selectedAsset.posterUrl) : void 0;
3405
- console.log("Selected Asset:", resolvedThumbnailUrl);
3406
- const title = selectedAsset.title || nodeProps?.title;
3407
- const intrinsicWidth = selectedAsset.intrinsicWidth?.toString();
3408
- const intrinsicHeight = selectedAsset.intrinsicHeight?.toString();
3409
- const isHls = resolvedAssetUrl?.endsWith(".m3u8");
3410
- const showControls = customProps?.showControls ?? nodeProps?.showControls === "true";
3411
- const loop = customProps?.loop ?? nodeProps?.loop === "true";
3412
- const playOptions = customProps?.playOptions ?? nodeProps?.playOptions;
3413
- const styles = {};
3414
- if (nodeProps?.height) {
3415
- styles.height = nodeProps.height;
3416
- }
3417
- if (nodeProps?.borderRadius) {
3418
- styles.borderRadius = nodeProps.borderRadius;
3419
- }
3420
- if (nodeProps?.width) {
3421
- styles.width = nodeProps.width;
3422
- }
3423
- const FormatClass = {
3424
- "center": "justify-center",
3425
- "left": "justify-start",
3426
- "right": "justify-end"
3427
- };
3428
- const formatClasses = FormatClass[nodeProps?.format || ""] || "";
3429
- const renderMedia = () => {
3430
- if (isHls) {
3431
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
3432
- HlsPlayer_default,
3433
- {
3434
- assetUrl: resolvedAssetUrl,
3435
- posterUrl: resolvedThumbnailUrl,
3436
- intrinsicWidth,
3437
- intrinsicHeight,
3438
- showControls,
3439
- loop,
3440
- playOptions,
3441
- apiBaseUrl: assetBaseUrl,
3442
- session
3443
- }
3444
- );
3445
- } else {
3446
- return (
3447
- /* eslint-disable-next-line @next/next/no-img-element */
3448
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
3449
- "img",
3450
- {
3451
- style: styles,
3452
- loading: "lazy",
3453
- className: "object-cover w-full",
3454
- src: resolvedAssetUrl,
3455
- width: selectedAsset.intrinsicWidth,
3456
- alt: title || "Asset image",
3457
- height: selectedAsset.intrinsicHeight
3458
- }
3459
- )
3460
- );
3461
- }
3462
- };
3463
- if (width) {
3464
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { style: { width }, children: renderMedia() });
3465
- }
3466
- if (nodeProps?.format) {
3467
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: `flex ${formatClasses}`, children: renderMedia() });
3468
- }
3469
- return renderMedia();
3470
- };
3471
- var DeviceAssetSelector_default = DeviceAssetSelector;
3472
-
3473
- // src/components/pageRenderingEngine/nodes/ImageNode.tsx
3474
- var import_jsx_runtime44 = require("react/jsx-runtime");
3505
+ var import_jsx_runtime45 = require("react/jsx-runtime");
3475
3506
  var HlsPlayer2 = (0, import_dynamic3.default)(() => Promise.resolve().then(() => (init_HlsPlayer(), HlsPlayer_exports)), {
3476
3507
  ssr: false
3477
3508
  });
@@ -3514,7 +3545,7 @@ var ImageNode = (props) => {
3514
3545
  console.error("Error parsing assets in ImageNode:", error);
3515
3546
  }
3516
3547
  if (assets && assets.length > 0) {
3517
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_jsx_runtime44.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
3548
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_jsx_runtime45.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
3518
3549
  DeviceAssetSelector_default,
3519
3550
  {
3520
3551
  device: props.device,
@@ -3563,7 +3594,7 @@ var ImageNode = (props) => {
3563
3594
  const isHls = imageUrl?.endsWith(".m3u8");
3564
3595
  const renderMedia = () => {
3565
3596
  if (isHls) {
3566
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
3597
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
3567
3598
  HlsPlayer2,
3568
3599
  {
3569
3600
  assetUrl: imageUrl,
@@ -3578,7 +3609,7 @@ var ImageNode = (props) => {
3578
3609
  }
3579
3610
  );
3580
3611
  } else {
3581
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react33.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
3612
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react33.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
3582
3613
  "img",
3583
3614
  {
3584
3615
  style: styles,
@@ -3593,7 +3624,7 @@ var ImageNode = (props) => {
3593
3624
  }
3594
3625
  };
3595
3626
  if (props.node.width) {
3596
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: `flex ${formatClasses}`, children: renderMedia() });
3627
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: `flex ${formatClasses}`, children: renderMedia() });
3597
3628
  }
3598
3629
  return renderMedia();
3599
3630
  };
@@ -3602,7 +3633,7 @@ var ImageNode_default = ImageNode;
3602
3633
  // src/components/pageRenderingEngine/nodes/LinkNode.tsx
3603
3634
  init_StyleTypes();
3604
3635
  var import_dynamic4 = __toESM(require("next/dynamic"));
3605
- var import_jsx_runtime46 = require("react/jsx-runtime");
3636
+ var import_jsx_runtime47 = require("react/jsx-runtime");
3606
3637
  var LinkNodeButton2 = (0, import_dynamic4.default)(() => Promise.resolve().then(() => (init_LinkNodeButton(), LinkNodeButton_exports)), {
3607
3638
  ssr: false
3608
3639
  });
@@ -3649,13 +3680,13 @@ var LinkNode = (props) => {
3649
3680
  const isButton = node.isButton === true;
3650
3681
  const renderChildren = () => {
3651
3682
  if (!node.children || node.children.length === 0) return null;
3652
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_jsx_runtime46.Fragment, { children: node.children.map((childNode, index) => {
3683
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_jsx_runtime47.Fragment, { children: node.children.map((childNode, index) => {
3653
3684
  const SelectedNode = NodeTypes2[childNode.type];
3654
3685
  if (!SelectedNode) {
3655
3686
  console.warn("Unknown node type:", childNode.type);
3656
3687
  return null;
3657
3688
  }
3658
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_react35.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
3689
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_react35.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
3659
3690
  SelectedNode,
3660
3691
  {
3661
3692
  node: childNode,
@@ -3668,15 +3699,15 @@ var LinkNode = (props) => {
3668
3699
  };
3669
3700
  const renderFallback = () => {
3670
3701
  if ((!node.children || node.children.length === 0) && linkText) {
3671
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { children: linkText });
3702
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { children: linkText });
3672
3703
  }
3673
3704
  if ((!node.children || node.children.length === 0) && !linkText) {
3674
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("br", {});
3705
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("br", {});
3675
3706
  }
3676
3707
  return null;
3677
3708
  };
3678
3709
  if (isButton) {
3679
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
3710
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
3680
3711
  LinkNodeButton2,
3681
3712
  {
3682
3713
  node,
@@ -3694,7 +3725,7 @@ var LinkNode = (props) => {
3694
3725
  }
3695
3726
  );
3696
3727
  }
3697
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
3728
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
3698
3729
  Hyperlink,
3699
3730
  {
3700
3731
  href: linkUrl || "#",
@@ -3710,10 +3741,10 @@ var LinkNode = (props) => {
3710
3741
  var LinkNode_default = LinkNode;
3711
3742
 
3712
3743
  // src/components/pageRenderingEngine/nodes/SVGIconNode.tsx
3713
- var import_jsx_runtime47 = require("react/jsx-runtime");
3744
+ var import_jsx_runtime48 = require("react/jsx-runtime");
3714
3745
  var SVGIconNode = ({ node }) => {
3715
3746
  if (!node?.svgCode) return null;
3716
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
3747
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
3717
3748
  "span",
3718
3749
  {
3719
3750
  style: {
@@ -3730,7 +3761,7 @@ var SVGIconNode_default = SVGIconNode;
3730
3761
 
3731
3762
  // src/components/pageRenderingEngine/nodes/EquationNode.tsx
3732
3763
  var import_katex = __toESM(require("katex"));
3733
- var import_jsx_runtime48 = require("react/jsx-runtime");
3764
+ var import_jsx_runtime49 = require("react/jsx-runtime");
3734
3765
  var EquationNode = ({ node }) => {
3735
3766
  const { equation, inline } = node;
3736
3767
  let html = "";
@@ -3745,7 +3776,7 @@ var EquationNode = ({ node }) => {
3745
3776
  });
3746
3777
  }
3747
3778
  if (inline) {
3748
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
3779
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
3749
3780
  "span",
3750
3781
  {
3751
3782
  className: "katex-inline",
@@ -3753,7 +3784,7 @@ var EquationNode = ({ node }) => {
3753
3784
  }
3754
3785
  );
3755
3786
  }
3756
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
3787
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
3757
3788
  "div",
3758
3789
  {
3759
3790
  className: "katex-block my-3 text-center",
@@ -3764,7 +3795,7 @@ var EquationNode = ({ node }) => {
3764
3795
  var EquationNode_default = EquationNode;
3765
3796
 
3766
3797
  // src/components/pageRenderingEngine/nodes/DatafieldNode.tsx
3767
- var import_jsx_runtime49 = require("react/jsx-runtime");
3798
+ var import_jsx_runtime50 = require("react/jsx-runtime");
3768
3799
  function getNestedProperty(obj, path) {
3769
3800
  if (!obj || !path) return null;
3770
3801
  if (path.includes(".")) {
@@ -3777,7 +3808,7 @@ function getNestedProperty(obj, path) {
3777
3808
  }
3778
3809
  const value = obj[path];
3779
3810
  if (Array.isArray(value)) {
3780
- return value.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { children: String(item) }, index));
3811
+ return value.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { children: String(item) }, index));
3781
3812
  }
3782
3813
  return value;
3783
3814
  }
@@ -3838,7 +3869,7 @@ var DatafieldNode = (props) => {
3838
3869
  const dataType = props.node.dataType;
3839
3870
  if (isEmptyValue) return null;
3840
3871
  if (dataType === "rawContent") {
3841
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
3872
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
3842
3873
  PageBodyRenderer_default,
3843
3874
  {
3844
3875
  rawBody: String(value ?? `@databound[${fieldName}]`),
@@ -3854,12 +3885,12 @@ var DatafieldNode = (props) => {
3854
3885
  }
3855
3886
  );
3856
3887
  }
3857
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
3888
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
3858
3889
  "span",
3859
3890
  {
3860
3891
  className: `datafield-node ${props.node.format < Formats.length ? Formats[props.node.format] : ""}`,
3861
3892
  style: styles,
3862
- children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
3893
+ children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
3863
3894
  ViewControl_default,
3864
3895
  {
3865
3896
  controlType: dataType,
@@ -3872,7 +3903,7 @@ var DatafieldNode = (props) => {
3872
3903
  var DatafieldNode_default = DatafieldNode;
3873
3904
 
3874
3905
  // src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
3875
- var import_jsx_runtime50 = require("react/jsx-runtime");
3906
+ var import_jsx_runtime51 = require("react/jsx-runtime");
3876
3907
  var ParagraphNode = (props) => {
3877
3908
  const NodeTypes2 = {
3878
3909
  ["text"]: TextNode_default,
@@ -3892,9 +3923,9 @@ var ParagraphNode = (props) => {
3892
3923
  const isInlineOnlyParent = props.parentTag === "summary";
3893
3924
  const hasChildren = props.node.children && props.node.children.length > 0;
3894
3925
  if (isInlineOnlyParent) {
3895
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_jsx_runtime50.Fragment, { children: hasChildren && props.node.children.map((node, index) => {
3926
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_jsx_runtime51.Fragment, { children: hasChildren && props.node.children.map((node, index) => {
3896
3927
  const SelectedNode = NodeTypes2[node.type];
3897
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react36.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
3928
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_react36.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
3898
3929
  SelectedNode,
3899
3930
  {
3900
3931
  node,
@@ -3906,10 +3937,10 @@ var ParagraphNode = (props) => {
3906
3937
  ) }, index);
3907
3938
  }) });
3908
3939
  }
3909
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: " " + formatClasses, children: [
3940
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: " " + formatClasses, children: [
3910
3941
  hasChildren && props.node.children.map((node, index) => {
3911
3942
  const SelectedNode = NodeTypes2[node.type];
3912
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react36.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
3943
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_react36.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
3913
3944
  SelectedNode,
3914
3945
  {
3915
3946
  node,
@@ -3920,14 +3951,14 @@ var ParagraphNode = (props) => {
3920
3951
  }
3921
3952
  ) }, index);
3922
3953
  }),
3923
- !hasChildren && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "py-1.5 lg:py-2" })
3954
+ !hasChildren && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "py-1.5 lg:py-2" })
3924
3955
  ] });
3925
3956
  };
3926
3957
  var ParagraphNode_default = ParagraphNode;
3927
3958
 
3928
3959
  // src/components/pageRenderingEngine/nodes/HeadingNode.tsx
3929
3960
  var import_react37 = __toESM(require("react"));
3930
- var import_jsx_runtime51 = require("react/jsx-runtime");
3961
+ var import_jsx_runtime52 = require("react/jsx-runtime");
3931
3962
  var HeadingNode = (props) => {
3932
3963
  const NodeTypes2 = {
3933
3964
  ["text"]: TextNode_default,
@@ -3943,12 +3974,12 @@ var HeadingNode = (props) => {
3943
3974
  {
3944
3975
  }
3945
3976
  const formatClasses = FormatClass[props.node.format] || "";
3946
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_jsx_runtime51.Fragment, { children: import_react37.default.createElement(
3977
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_jsx_runtime52.Fragment, { children: import_react37.default.createElement(
3947
3978
  HeadingTag,
3948
3979
  { className: formatClasses },
3949
3980
  props.node.children && props.node.children.map((childNode, index) => {
3950
3981
  const SelectedNode = NodeTypes2[childNode.type];
3951
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_react37.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SelectedNode, { node: childNode, dataitem: props.dataitem, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
3982
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react37.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(SelectedNode, { node: childNode, dataitem: props.dataitem, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
3952
3983
  })
3953
3984
  ) });
3954
3985
  };
@@ -3959,7 +3990,7 @@ var import_react39 = __toESM(require("react"));
3959
3990
 
3960
3991
  // src/components/pageRenderingEngine/nodes/ListItemNode.tsx
3961
3992
  var import_react38 = __toESM(require("react"));
3962
- var import_jsx_runtime52 = require("react/jsx-runtime");
3993
+ var import_jsx_runtime53 = require("react/jsx-runtime");
3963
3994
  var ListItemNode = (props) => {
3964
3995
  const NodeTypes2 = {
3965
3996
  text: TextNode_default,
@@ -3976,37 +4007,37 @@ var ListItemNode = (props) => {
3976
4007
  liStyle.fontSize = match[1].trim();
3977
4008
  }
3978
4009
  }
3979
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("li", { style: liStyle, children: props.node.children && props.node.children.map((node, index) => {
4010
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("li", { style: liStyle, children: props.node.children && props.node.children.map((node, index) => {
3980
4011
  const SelectedNode = NodeTypes2[node.type];
3981
4012
  if (node.type === "linebreak") {
3982
4013
  if (!foundFirstBreak) {
3983
4014
  foundFirstBreak = true;
3984
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", {}, index);
4015
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", {}, index);
3985
4016
  } else {
3986
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "py-1 lg:py-2" }, index);
4017
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "py-1 lg:py-2" }, index);
3987
4018
  }
3988
4019
  } else {
3989
4020
  foundFirstBreak = false;
3990
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react38.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
4021
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react38.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
3991
4022
  }
3992
4023
  }) });
3993
4024
  };
3994
4025
  var ListItemNode_default = ListItemNode;
3995
4026
 
3996
4027
  // src/components/pageRenderingEngine/nodes/ListNode.tsx
3997
- var import_jsx_runtime53 = require("react/jsx-runtime");
4028
+ var import_jsx_runtime54 = require("react/jsx-runtime");
3998
4029
  var ListNode = (props) => {
3999
4030
  const NodeTypes2 = {
4000
4031
  listitem: ListItemNode_default
4001
4032
  };
4002
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_react39.default.Fragment, { children: [
4003
- props.node.listType == "bullet" && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("ul", { children: props.node.children && props.node.children.map((node, index) => {
4033
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_react39.default.Fragment, { children: [
4034
+ props.node.listType == "bullet" && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("ul", { children: props.node.children && props.node.children.map((node, index) => {
4004
4035
  const SelectedNode = NodeTypes2[node.type];
4005
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react39.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
4036
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_react39.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
4006
4037
  }) }),
4007
- props.node.listType == "number" && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("ol", { children: props.node.children && props.node.children.map((node, index) => {
4038
+ props.node.listType == "number" && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("ol", { children: props.node.children && props.node.children.map((node, index) => {
4008
4039
  const SelectedNode = NodeTypes2[node.type];
4009
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react39.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
4040
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_react39.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
4010
4041
  }) })
4011
4042
  ] });
4012
4043
  };
@@ -4014,16 +4045,16 @@ var ListNode_default = ListNode;
4014
4045
 
4015
4046
  // src/components/pageRenderingEngine/nodes/QuoteNode.tsx
4016
4047
  var import_react40 = __toESM(require("react"));
4017
- var import_jsx_runtime54 = require("react/jsx-runtime");
4048
+ var import_jsx_runtime55 = require("react/jsx-runtime");
4018
4049
  var QuoteNode = (props) => {
4019
4050
  const NodeTypes2 = {
4020
4051
  ["text"]: TextNode_default,
4021
4052
  ["linebreak"]: LineBreakNode_default,
4022
4053
  ["link"]: LinkNode_default
4023
4054
  };
4024
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("blockquote", { children: props.node.children && props.node.children.map((node, index) => {
4055
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("blockquote", { children: props.node.children && props.node.children.map((node, index) => {
4025
4056
  const SelectedNode = NodeTypes2[node.type];
4026
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_react40.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(SelectedNode, { node, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
4057
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_react40.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(SelectedNode, { node, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
4027
4058
  }) });
4028
4059
  };
4029
4060
  var QuoteNode_default = QuoteNode;
@@ -4031,11 +4062,11 @@ var QuoteNode_default = QuoteNode;
4031
4062
  // src/components/pageRenderingEngine/nodes/CodeNode.tsx
4032
4063
  var import_react42 = __toESM(require("react"));
4033
4064
  var import_dynamic5 = __toESM(require("next/dynamic"));
4034
- var import_jsx_runtime56 = require("react/jsx-runtime");
4065
+ var import_jsx_runtime57 = require("react/jsx-runtime");
4035
4066
  var CopyButton2 = (0, import_dynamic5.default)(() => Promise.resolve().then(() => (init_CopyButton(), CopyButton_exports)), {
4036
4067
  ssr: false,
4037
4068
  // optional: fallback UI while loading
4038
- loading: () => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "text-gray-400 text-xs", children: "Copy" })
4069
+ loading: () => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "text-gray-400 text-xs", children: "Copy" })
4039
4070
  });
4040
4071
  var CodeNode = (props) => {
4041
4072
  const NodeTypes2 = {
@@ -4049,14 +4080,14 @@ var CodeNode = (props) => {
4049
4080
  if (node.type === "link") return node.text || node.url || "";
4050
4081
  return "";
4051
4082
  }).join("") ?? "";
4052
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { children: [
4053
- /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "flex items-center relative bg-neutral-strong px-4 py-3 text-xs font-sans justify-between rounded-t-md ", children: [
4054
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { children: "Code Snippet" }),
4055
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(CopyButton2, { text: textContent })
4083
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { children: [
4084
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "flex items-center relative bg-neutral-strong px-4 py-3 text-xs font-sans justify-between rounded-t-md ", children: [
4085
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { children: "Code Snippet" }),
4086
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(CopyButton2, { text: textContent })
4056
4087
  ] }),
4057
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("code", { className: "bg-neutral-soft p-4 text-sm whitespace-pre-wrap border border-2 block", children: props.node.children && props.node.children.map((node, index) => {
4088
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("code", { className: "bg-neutral-soft p-4 text-sm whitespace-pre-wrap border border-2 block", children: props.node.children && props.node.children.map((node, index) => {
4058
4089
  const SelectedNode = NodeTypes2[node.type];
4059
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_react42.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
4090
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_react42.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
4060
4091
  SelectedNode,
4061
4092
  {
4062
4093
  node,
@@ -4071,15 +4102,15 @@ var CodeNode = (props) => {
4071
4102
  var CodeNode_default = CodeNode;
4072
4103
 
4073
4104
  // src/components/pageRenderingEngine/nodes/HorizontalRuleNode.tsx
4074
- var import_jsx_runtime57 = require("react/jsx-runtime");
4105
+ var import_jsx_runtime58 = require("react/jsx-runtime");
4075
4106
  var HorizontalRuleNode = () => {
4076
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("hr", {});
4107
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("hr", {});
4077
4108
  };
4078
4109
  var HorizontalRuleNode_default = HorizontalRuleNode;
4079
4110
 
4080
4111
  // src/components/pageRenderingEngine/nodes/WidgetNode.tsx
4081
4112
  var import_react43 = __toESM(require("react"));
4082
- var import_jsx_runtime58 = require("react/jsx-runtime");
4113
+ var import_jsx_runtime59 = require("react/jsx-runtime");
4083
4114
  var WidgetNode = (props) => {
4084
4115
  const getWidgetParameters = () => {
4085
4116
  const widgetInputParameters = {
@@ -4143,7 +4174,7 @@ var WidgetNode = (props) => {
4143
4174
  };
4144
4175
  const widgetCode = props.node?.widgetCode;
4145
4176
  if (!widgetCode) {
4146
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_jsx_runtime58.Fragment, { children: "Invalid widget" });
4177
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_jsx_runtime59.Fragment, { children: "Invalid widget" });
4147
4178
  }
4148
4179
  const widgetParams = getWidgetParameters();
4149
4180
  const WidgetRenderer = props.widgetRenderer;
@@ -4152,7 +4183,7 @@ var WidgetNode = (props) => {
4152
4183
  }
4153
4184
  return (
4154
4185
  // eslint-disable-next-line react-hooks/static-components
4155
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react43.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
4186
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react43.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
4156
4187
  WidgetRenderer,
4157
4188
  {
4158
4189
  params: widgetParams,
@@ -4172,9 +4203,9 @@ var WidgetNode_default = WidgetNode;
4172
4203
  var import_react44 = __toESM(require("react"));
4173
4204
 
4174
4205
  // src/components/pageRenderingEngine/nodes/InputControlNode.tsx
4175
- var import_jsx_runtime59 = require("react/jsx-runtime");
4206
+ var import_jsx_runtime60 = require("react/jsx-runtime");
4176
4207
  var InputControlNode = (props) => {
4177
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
4208
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
4178
4209
  InputControl_default,
4179
4210
  {
4180
4211
  name: props.node.name,
@@ -4248,7 +4279,7 @@ var FormReducer_default = FormReducer;
4248
4279
 
4249
4280
  // src/components/pageRenderingEngine/nodes/FormContainerNode.tsx
4250
4281
  init_ServiceClient();
4251
- var import_jsx_runtime60 = require("react/jsx-runtime");
4282
+ var import_jsx_runtime61 = require("react/jsx-runtime");
4252
4283
  var FormContainerNode = (props) => {
4253
4284
  const NodeTypes2 = {
4254
4285
  ["input-control"]: InputControlNode_default
@@ -4278,12 +4309,12 @@ var FormContainerNode = (props) => {
4278
4309
  };
4279
4310
  fetchInitialData();
4280
4311
  }, [props.apiBaseUrl, props.node, props.session, props.routeParameters]);
4281
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("form", { className: "group space-y-6 pb-6 overflow-y-auto", noValidate: true, ref: formRef, children: [
4312
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("form", { className: "group space-y-6 pb-6 overflow-y-auto", noValidate: true, ref: formRef, children: [
4282
4313
  node.children && node.children.map((node2, index) => {
4283
4314
  {
4284
4315
  }
4285
4316
  const SelectedNode = NodeTypes2[node2.type];
4286
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react44.default.Fragment, { children: SelectedNode && node2.type == "input-control" && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
4317
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_react44.default.Fragment, { children: SelectedNode && node2.type == "input-control" && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
4287
4318
  InputControlNode_default,
4288
4319
  {
4289
4320
  value: formState.inputValues[node2.name],
@@ -4292,7 +4323,7 @@ var FormContainerNode = (props) => {
4292
4323
  }
4293
4324
  ) }, index);
4294
4325
  }),
4295
- node.children.length == 0 && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: "py-0.5 lg:py-1.5" })
4326
+ node.children.length == 0 && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "py-0.5 lg:py-1.5" })
4296
4327
  ] });
4297
4328
  };
4298
4329
  var FormContainerNode_default = FormContainerNode;
@@ -4302,7 +4333,7 @@ var import_react49 = __toESM(require("react"));
4302
4333
 
4303
4334
  // src/components/pageRenderingEngine/nodes/EmbedNode.tsx
4304
4335
  var import_dynamic6 = __toESM(require("next/dynamic"));
4305
- var import_jsx_runtime63 = require("react/jsx-runtime");
4336
+ var import_jsx_runtime64 = require("react/jsx-runtime");
4306
4337
  var IframeClient2 = (0, import_dynamic6.default)(() => Promise.resolve().then(() => (init_IframeClient(), IframeClient_exports)), {
4307
4338
  ssr: false
4308
4339
  });
@@ -4315,7 +4346,7 @@ var EmbedNode = (props) => {
4315
4346
  } else {
4316
4347
  src = props.node.embedSrc;
4317
4348
  }
4318
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "aspect-video", children: src && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(IframeClient2, { src }) });
4349
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "aspect-video", children: src && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(IframeClient2, { src }) });
4319
4350
  };
4320
4351
  var EmbedNode_default = EmbedNode;
4321
4352
 
@@ -4324,7 +4355,7 @@ init_ServiceClient();
4324
4355
 
4325
4356
  // src/components/Slider.tsx
4326
4357
  var import_react47 = __toESM(require("react"));
4327
- var import_jsx_runtime64 = require("react/jsx-runtime");
4358
+ var import_jsx_runtime65 = require("react/jsx-runtime");
4328
4359
  var Slider = ({
4329
4360
  children,
4330
4361
  slidesToShow = 4,
@@ -4421,7 +4452,7 @@ var Slider = ({
4421
4452
  if (!import_react47.default.isValidElement(child)) return null;
4422
4453
  const childProps = child.props;
4423
4454
  const mergedClassName = `${childProps.className ?? ""} w-full`.trim();
4424
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
4455
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
4425
4456
  "div",
4426
4457
  {
4427
4458
  className: `flex-none ${scaleOnHover ? "group hover:z-50" : ""} relative`,
@@ -4444,14 +4475,14 @@ var Slider = ({
4444
4475
  return "bottom-4";
4445
4476
  }
4446
4477
  };
4447
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
4478
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
4448
4479
  "div",
4449
4480
  {
4450
4481
  className: `relative w-full overflow-hidden ${className}`,
4451
4482
  onMouseEnter: handleMouseEnter,
4452
4483
  onMouseLeave: handleMouseLeave,
4453
4484
  children: [
4454
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
4485
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
4455
4486
  "div",
4456
4487
  {
4457
4488
  className: "flex h-full",
@@ -4462,18 +4493,18 @@ var Slider = ({
4462
4493
  children: slides
4463
4494
  }
4464
4495
  ),
4465
- show_arrows && /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_jsx_runtime64.Fragment, { children: [
4466
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
4496
+ show_arrows && /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx_runtime65.Fragment, { children: [
4497
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
4467
4498
  ArrowButton,
4468
4499
  {
4469
4500
  direction: "left",
4470
4501
  onClick: prevSlide,
4471
4502
  visible: infinite_scroll || currentSlide > 0,
4472
4503
  className: arrowClassName,
4473
- children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: "w-6 h-6", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M15.75 19.5 8.25 12l7.5-7.5" }) })
4504
+ children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: "w-6 h-6", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M15.75 19.5 8.25 12l7.5-7.5" }) })
4474
4505
  }
4475
4506
  ),
4476
- /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
4507
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
4477
4508
  ArrowButton,
4478
4509
  {
4479
4510
  direction: "right",
@@ -4481,13 +4512,13 @@ var Slider = ({
4481
4512
  visible: infinite_scroll || currentSlide < maxSlide,
4482
4513
  className: arrowClassName,
4483
4514
  children: [
4484
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: "w-6 h-6", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "m8.25 4.5 7.5 7.5-7.5 7.5" }) }),
4515
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: "w-6 h-6", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "m8.25 4.5 7.5 7.5-7.5 7.5" }) }),
4485
4516
  " "
4486
4517
  ]
4487
4518
  }
4488
4519
  )
4489
4520
  ] }),
4490
- show_dots && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: `absolute left-1/2 -translate-x-1/2 flex justify-center space-x-1.5 ${getProgressPositionClass()}`, children: Array.from({ length: totalSlides }).map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
4521
+ show_dots && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: `absolute left-1/2 -translate-x-1/2 flex justify-center space-x-1.5 ${getProgressPositionClass()}`, children: Array.from({ length: totalSlides }).map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
4491
4522
  ProgressPill,
4492
4523
  {
4493
4524
  active: index === currentSlide,
@@ -4513,7 +4544,7 @@ var ArrowButton = ({
4513
4544
  visible,
4514
4545
  children,
4515
4546
  className = ""
4516
- }) => /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
4547
+ }) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
4517
4548
  "button",
4518
4549
  {
4519
4550
  className: `
@@ -4600,7 +4631,7 @@ var ProgressPill = ({
4600
4631
  const renderProgressBar = () => {
4601
4632
  if (style === "modern" && isActive || style === "cumulative" && shouldShowProgress) {
4602
4633
  const displayProgress = style === "cumulative" && isFilled ? 100 : progress;
4603
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
4634
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
4604
4635
  "div",
4605
4636
  {
4606
4637
  className: `absolute top-0 left-0 h-full rounded-full ${style === "cumulative" && isFilled ? activeClassName || "bg-white" : activeClassName || "bg-white"} transition-all duration-50 ease-linear`,
@@ -4612,7 +4643,7 @@ var ProgressPill = ({
4612
4643
  };
4613
4644
  const renderCumulativeFill = () => {
4614
4645
  if (style === "cumulative" && isFilled && !isActive) {
4615
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
4646
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
4616
4647
  "div",
4617
4648
  {
4618
4649
  className: `absolute top-0 left-0 h-full rounded-full ${activeClassName || "bg-white"} transition-all duration-300`,
@@ -4622,7 +4653,7 @@ var ProgressPill = ({
4622
4653
  }
4623
4654
  return null;
4624
4655
  };
4625
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
4656
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
4626
4657
  "button",
4627
4658
  {
4628
4659
  className: `${baseClasses} ${getStyleClasses()}`,
@@ -4960,10 +4991,10 @@ var PathUtility = class {
4960
4991
  var PathUtility_default = new PathUtility();
4961
4992
 
4962
4993
  // src/components/NoDataFound.tsx
4963
- var import_jsx_runtime65 = require("react/jsx-runtime");
4994
+ var import_jsx_runtime66 = require("react/jsx-runtime");
4964
4995
  var NoDataFound = () => {
4965
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center bg-neutral-weak", children: [
4966
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "mb-5", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "mx-auto w-20 h-20 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
4996
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center bg-neutral-weak", children: [
4997
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "mb-5", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "mx-auto w-20 h-20 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
4967
4998
  "svg",
4968
4999
  {
4969
5000
  className: "w-10 h-10",
@@ -4971,7 +5002,7 @@ var NoDataFound = () => {
4971
5002
  stroke: "currentColor",
4972
5003
  viewBox: "0 0 24 24",
4973
5004
  xmlns: "http://www.w3.org/2000/svg",
4974
- children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
5005
+ children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
4975
5006
  "path",
4976
5007
  {
4977
5008
  strokeLinecap: "round",
@@ -4982,8 +5013,8 @@ var NoDataFound = () => {
4982
5013
  )
4983
5014
  }
4984
5015
  ) }) }),
4985
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("h3", { className: "text-lg font-medium mb-2", children: "No data available" }),
4986
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("p", { className: " max-w-sm mb-0", children: "No records found. Data may be empty or not available at the moment." })
5016
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("h3", { className: "text-lg font-medium mb-2", children: "No data available" }),
5017
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("p", { className: " max-w-sm mb-0", children: "No records found. Data may be empty or not available at the moment." })
4987
5018
  ] });
4988
5019
  };
4989
5020
  var NoDataFound_default = NoDataFound;
@@ -4991,7 +5022,7 @@ var NoDataFound_default = NoDataFound;
4991
5022
  // src/components/Pagination.tsx
4992
5023
  var import_react48 = require("react");
4993
5024
  init_StyleTypes();
4994
- var import_jsx_runtime66 = require("react/jsx-runtime");
5025
+ var import_jsx_runtime67 = require("react/jsx-runtime");
4995
5026
  var Pagination = (props) => {
4996
5027
  const { dataset, path, query, showPageSizeSelector = false, showJumpToPage = false } = props;
4997
5028
  const builder = (0, import_react48.useMemo)(() => {
@@ -5035,7 +5066,7 @@ var Pagination = (props) => {
5035
5066
  return range;
5036
5067
  };
5037
5068
  const paginationRange = getPaginationRange();
5038
- const PageButton = ({ page, children }) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
5069
+ const PageButton = ({ page, children }) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
5039
5070
  Hyperlink,
5040
5071
  {
5041
5072
  linkType: "Link" /* Link */,
@@ -5050,9 +5081,9 @@ var Pagination = (props) => {
5050
5081
  );
5051
5082
  const NavigationButton = ({ page, disabled, children }) => {
5052
5083
  if (disabled) {
5053
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { className: "min-w-[20px] md:min-w-[40px] h-10 flex items-center justify-center px-2 md:px-3 border bg-neutral-base cursor-not-allowed", children });
5084
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "min-w-[20px] md:min-w-[40px] h-10 flex items-center justify-center px-2 md:px-3 border bg-neutral-base cursor-not-allowed", children });
5054
5085
  }
5055
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
5086
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
5056
5087
  Hyperlink,
5057
5088
  {
5058
5089
  className: "min-w-[20px] md:min-w-[40px] h-10 flex items-center justify-center px-2 md:px-3 border transition-colors duration-150",
@@ -5062,35 +5093,35 @@ var Pagination = (props) => {
5062
5093
  );
5063
5094
  };
5064
5095
  if (totalPages <= 1 && totalItems === 0) return null;
5065
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "py-6 border-t bg-default", children: [
5066
- /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "flex flex-col sm:flex-row items-center justify-between gap-4", children: [
5067
- /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "text-sm", children: [
5096
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "py-6 border-t bg-default", children: [
5097
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex flex-col sm:flex-row items-center justify-between gap-4", children: [
5098
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "text-sm", children: [
5068
5099
  "Showing ",
5069
- /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("span", { className: "font-semibold", children: [
5100
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("span", { className: "font-semibold", children: [
5070
5101
  startItem,
5071
5102
  "-",
5072
5103
  endItem
5073
5104
  ] }),
5074
5105
  " ",
5075
5106
  "out of ",
5076
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { className: "font-semibold", children: totalItems.toLocaleString() }),
5107
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "font-semibold", children: totalItems.toLocaleString() }),
5077
5108
  " results"
5078
5109
  ] }),
5079
- totalPages > 1 && /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "flex items-center space-x-1", children: [
5080
- /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
5110
+ totalPages > 1 && /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex items-center space-x-1", children: [
5111
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
5081
5112
  NavigationButton,
5082
5113
  {
5083
5114
  page: activePageNumber - 1,
5084
5115
  disabled: activePageNumber === 1,
5085
5116
  children: [
5086
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Icon_default, { name: "chevronLeft", className: "w-4 h-4 mr-1" }) }),
5087
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { className: "text-sm", children: "Prev" })
5117
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Icon_default, { name: "chevronLeft", className: "w-4 h-4 mr-1" }) }),
5118
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "text-sm", children: "Prev" })
5088
5119
  ]
5089
5120
  }
5090
5121
  ),
5091
5122
  paginationRange.map((item, index) => {
5092
5123
  if (item === "...") {
5093
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
5124
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
5094
5125
  "span",
5095
5126
  {
5096
5127
  className: "min-w-[20px] md:min-w-[40px] h-10 flex items-center justify-center text-gray-500",
@@ -5100,23 +5131,23 @@ var Pagination = (props) => {
5100
5131
  );
5101
5132
  }
5102
5133
  const page = item;
5103
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(PageButton, { page, children: page }, page);
5134
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(PageButton, { page, children: page }, page);
5104
5135
  }),
5105
- /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
5136
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
5106
5137
  NavigationButton,
5107
5138
  {
5108
5139
  page: activePageNumber + 1,
5109
5140
  disabled: activePageNumber === totalPages,
5110
5141
  children: [
5111
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { className: "text-sm", children: "Next" }),
5112
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Icon_default, { name: "chevronRight", className: "w-4 h-4 ml-1" }) })
5142
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "text-sm", children: "Next" }),
5143
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Icon_default, { name: "chevronRight", className: "w-4 h-4 ml-1" }) })
5113
5144
  ]
5114
5145
  }
5115
5146
  )
5116
5147
  ] }),
5117
- showJumpToPage && totalPages > 5 && /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "flex items-center space-x-2", children: [
5118
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { className: "text-sm", children: "Go to:" }),
5119
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
5148
+ showJumpToPage && totalPages > 5 && /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex items-center space-x-2", children: [
5149
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "text-sm", children: "Go to:" }),
5150
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
5120
5151
  "input",
5121
5152
  {
5122
5153
  type: "number",
@@ -5137,9 +5168,9 @@ var Pagination = (props) => {
5137
5168
  ) })
5138
5169
  ] })
5139
5170
  ] }),
5140
- showPageSizeSelector && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "mt-4 pt-4 border-t bg-default", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "flex items-center justify-center space-x-2", children: [
5141
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { className: "text-sm", children: "Show:" }),
5142
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "flex space-x-1", children: [10, 25, 50, 100].map((size) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
5171
+ showPageSizeSelector && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "mt-4 pt-4 border-t bg-default", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex items-center justify-center space-x-2", children: [
5172
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "text-sm", children: "Show:" }),
5173
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "flex space-x-1", children: [10, 25, 50, 100].map((size) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
5143
5174
  Hyperlink,
5144
5175
  {
5145
5176
  className: `
@@ -5151,7 +5182,7 @@ var Pagination = (props) => {
5151
5182
  },
5152
5183
  size
5153
5184
  )) }),
5154
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { className: "text-sm", children: "per page" })
5185
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "text-sm", children: "per page" })
5155
5186
  ] }) })
5156
5187
  ] });
5157
5188
  };
@@ -5159,7 +5190,7 @@ var Pagination_default = Pagination;
5159
5190
 
5160
5191
  // src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
5161
5192
  var import_dynamic7 = __toESM(require("next/dynamic"));
5162
- var import_jsx_runtime67 = require("react/jsx-runtime");
5193
+ var import_jsx_runtime68 = require("react/jsx-runtime");
5163
5194
  var HlsPlayer3 = (0, import_dynamic7.default)(() => Promise.resolve().then(() => (init_HlsPlayer(), HlsPlayer_exports)), { ssr: false });
5164
5195
  var deviceToMediaQuery = (device) => {
5165
5196
  switch (device) {
@@ -5228,8 +5259,8 @@ var ImageGalleryNode = (props) => {
5228
5259
  right: "justify-end"
5229
5260
  };
5230
5261
  const formatClasses = FormatClass[props.node.format || ""] || "";
5231
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(import_jsx_runtime67.Fragment, { children: [
5232
- hlsSources.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_jsx_runtime67.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
5262
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(import_jsx_runtime68.Fragment, { children: [
5263
+ hlsSources.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_jsx_runtime68.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
5233
5264
  HlsPlayer3,
5234
5265
  {
5235
5266
  sources: hlsSources,
@@ -5243,14 +5274,14 @@ var ImageGalleryNode = (props) => {
5243
5274
  session: props.session
5244
5275
  }
5245
5276
  ) }),
5246
- staticFallback && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_jsx_runtime67.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("picture", { children: [
5277
+ staticFallback && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_jsx_runtime68.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("picture", { children: [
5247
5278
  DEVICE_ORDER.map((deviceKey) => {
5248
5279
  const match = staticSources.find((img) => img.device === deviceKey);
5249
5280
  if (!match) return null;
5250
5281
  const srcUrl = resolveImageUrl(match.imageUrl);
5251
5282
  if (!srcUrl) return null;
5252
5283
  const mediaQuery = deviceToMediaQuery(match.device);
5253
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
5284
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
5254
5285
  "source",
5255
5286
  {
5256
5287
  media: mediaQuery,
@@ -5274,7 +5305,7 @@ var ImageGalleryNode = (props) => {
5274
5305
  if (img.borderRadius) styles.borderRadius = img.borderRadius;
5275
5306
  return (
5276
5307
  // eslint-disable-next-line @next/next/no-img-element
5277
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
5308
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
5278
5309
  "img",
5279
5310
  {
5280
5311
  loading: "lazy",
@@ -5295,7 +5326,7 @@ var ImageGalleryNode_default = ImageGalleryNode;
5295
5326
 
5296
5327
  // src/components/pageRenderingEngine/nodes/DivContainer.tsx
5297
5328
  var import_link2 = __toESM(require("next/link"));
5298
- var import_jsx_runtime68 = require("react/jsx-runtime");
5329
+ var import_jsx_runtime69 = require("react/jsx-runtime");
5299
5330
  function toCamelCase(str) {
5300
5331
  return str.replace(/-([a-z])/g, (_, letter) => letter.toUpperCase());
5301
5332
  }
@@ -5502,7 +5533,7 @@ var DivContainer = async (props) => {
5502
5533
  response = await serviceClient.get(endpoint);
5503
5534
  result = response?.result;
5504
5535
  if (dataBindingProperties.showNoResultsMessage && (result === void 0 || result.length == 0)) {
5505
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(NoDataFound_default, {});
5536
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(NoDataFound_default, {});
5506
5537
  }
5507
5538
  if (dataBindingProperties.childCollectionName && props.dataitem) {
5508
5539
  childCollectionData = getNestedValue2(props.dataitem, dataBindingProperties.childCollectionName);
@@ -5519,7 +5550,7 @@ var DivContainer = async (props) => {
5519
5550
  }
5520
5551
  const SelectedNode = NodeTypes2[node.type];
5521
5552
  if (!SelectedNode) return null;
5522
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_react49.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
5553
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_react49.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
5523
5554
  SelectedNode,
5524
5555
  {
5525
5556
  node,
@@ -5621,9 +5652,9 @@ var DivContainer = async (props) => {
5621
5652
  props.node.autoFormat && "auto-format",
5622
5653
  props.node.bgClass
5623
5654
  ].filter(Boolean).join(" ");
5624
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(import_react49.default.Fragment, { children: [
5625
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("style", { dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS } }),
5626
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_react49.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
5655
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_react49.default.Fragment, { children: [
5656
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("style", { dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS } }),
5657
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_react49.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
5627
5658
  Wrapper,
5628
5659
  {
5629
5660
  id: guid,
@@ -5632,18 +5663,18 @@ var DivContainer = async (props) => {
5632
5663
  ...wrapperProps,
5633
5664
  children: dataToRender.map(
5634
5665
  (item, idx) => item?.links?.view && renderLink ? renderChildren(props.node.children, props, item, idx, props.href ? void 0 : item?.links?.view)?.map(
5635
- (child, i) => /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_react49.default.Fragment, { children: child }, i)
5666
+ (child, i) => /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_react49.default.Fragment, { children: child }, i)
5636
5667
  ) : renderChildren(props.node.children, props, item, idx)
5637
5668
  )
5638
5669
  }
5639
5670
  ) }),
5640
- dataBindingProperties && props.node.dataBinding.enablePagination && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Pagination_default, { path: props.path, query: props.query, dataset: response }) })
5671
+ dataBindingProperties && props.node.dataBinding.enablePagination && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Pagination_default, { path: props.path, query: props.query, dataset: response }) })
5641
5672
  ] });
5642
5673
  };
5643
5674
  var DivContainer_default = DivContainer;
5644
5675
 
5645
5676
  // src/components/pageRenderingEngine/PageBodyRenderer.tsx
5646
- var import_jsx_runtime69 = require("react/jsx-runtime");
5677
+ var import_jsx_runtime70 = require("react/jsx-runtime");
5647
5678
  var NodeTypes = {
5648
5679
  ["paragraph"]: ParagraphNode_default,
5649
5680
  ["heading"]: HeadingNode_default,
@@ -5671,11 +5702,11 @@ var PageBodyRenderer = (props) => {
5671
5702
  if (pageBodyTree && pageBodyTree.root) {
5672
5703
  rootNode = pageBodyTree.root;
5673
5704
  }
5674
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_react50.default.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
5705
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react50.default.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
5675
5706
  {
5676
5707
  }
5677
5708
  const SelectedNode = NodeTypes[node.type];
5678
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_react50.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_react50.default.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_react50.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
5709
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react50.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react50.default.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react50.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
5679
5710
  SelectedNode,
5680
5711
  {
5681
5712
  node,
@@ -5691,7 +5722,7 @@ var PageBodyRenderer = (props) => {
5691
5722
  device: props.device,
5692
5723
  widgetRenderer: props.widgetRenderer
5693
5724
  }
5694
- ) }) : /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_react50.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
5725
+ ) }) : /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react50.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
5695
5726
  SelectedNode,
5696
5727
  {
5697
5728
  node,
@@ -5714,7 +5745,7 @@ var PageBodyRenderer_default = PageBodyRenderer;
5714
5745
  // src/components/Toast.tsx
5715
5746
  var import_react51 = require("react");
5716
5747
  init_ToastService();
5717
- var import_jsx_runtime70 = require("react/jsx-runtime");
5748
+ var import_jsx_runtime71 = require("react/jsx-runtime");
5718
5749
  var Toast = () => {
5719
5750
  const [showToast, setShowToast] = (0, import_react51.useState)(false);
5720
5751
  const [message, setMessage] = (0, import_react51.useState)("");
@@ -5757,8 +5788,8 @@ var Toast = () => {
5757
5788
  const closeToast = () => {
5758
5789
  setShowToast(false);
5759
5790
  };
5760
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_jsx_runtime70.Fragment, { children: showToast && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("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__ */ (0, import_jsx_runtime70.jsxs)("div", { className: `w-full items-center flex justify-between p-3 rounded-md relative shadow border bg-${messageType}-soft`, children: [
5761
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
5791
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_jsx_runtime71.Fragment, { children: showToast && /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("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__ */ (0, import_jsx_runtime71.jsxs)("div", { className: `w-full items-center flex justify-between p-3 rounded-md relative shadow border bg-${messageType}-soft`, children: [
5792
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
5762
5793
  "span",
5763
5794
  {
5764
5795
  className: "font-medium text-inherit text-sm",
@@ -5766,7 +5797,7 @@ var Toast = () => {
5766
5797
  children: message
5767
5798
  }
5768
5799
  ),
5769
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("button", { className: "absolute right-2 top-2 ml-2 focus:outline-none", onClick: closeToast, children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
5800
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("button", { className: "absolute right-2 top-2 ml-2 focus:outline-none", onClick: closeToast, children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
5770
5801
  "svg",
5771
5802
  {
5772
5803
  xmlns: "http://www.w3.org/2000/svg",
@@ -5774,7 +5805,7 @@ var Toast = () => {
5774
5805
  fill: "none",
5775
5806
  viewBox: "0 0 24 24",
5776
5807
  stroke: "currentColor",
5777
- children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M6 18L18 6M6 6l12 12" })
5808
+ children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M6 18L18 6M6 6l12 12" })
5778
5809
  }
5779
5810
  ) })
5780
5811
  ] }) }) });
@@ -5787,7 +5818,7 @@ init_ToastService();
5787
5818
  // src/components/NavigationTabsV2.tsx
5788
5819
  var import_link3 = __toESM(require("next/link"));
5789
5820
  var import_navigation = require("next/navigation");
5790
- var import_jsx_runtime71 = require("react/jsx-runtime");
5821
+ var import_jsx_runtime72 = require("react/jsx-runtime");
5791
5822
  function resolveRoutePlaceholders(route, params) {
5792
5823
  return route.replace(/\{([^}]+)\}/g, (match, key) => {
5793
5824
  const value = params[key];
@@ -5812,8 +5843,8 @@ var NavigationTabsV2 = ({ tabs, params = {} }) => {
5812
5843
  isActive: tab.isActive
5813
5844
  })) || [];
5814
5845
  if (mappedTabs.length === 0) return null;
5815
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "flex border-b bg-white rounded-t mb-3", children: mappedTabs.map(({ tabTitle, landingPageUrl, isActive }) => {
5816
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_link3.default, { href: landingPageUrl, className: "-mb-px", children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
5846
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { className: "flex border-b bg-white rounded-t mb-3", children: mappedTabs.map(({ tabTitle, landingPageUrl, isActive }) => {
5847
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_link3.default, { href: landingPageUrl, className: "-mb-px", children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
5817
5848
  "div",
5818
5849
  {
5819
5850
  className: `text-sm font-medium border-b-2 px-6 py-2 transition
@@ -5831,46 +5862,46 @@ var import_navigation2 = require("next/navigation");
5831
5862
 
5832
5863
  // src/components/dataForm/NoContentView.tsx
5833
5864
  var import_react52 = __toESM(require("react"));
5834
- var import_jsx_runtime72 = require("react/jsx-runtime");
5865
+ var import_jsx_runtime73 = require("react/jsx-runtime");
5835
5866
  var NoContentView = (props) => {
5836
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_react52.default.Fragment, { children: props.isDataFound === false && props.children });
5867
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_react52.default.Fragment, { children: props.isDataFound === false && props.children });
5837
5868
  };
5838
5869
  var NoContentView_default = NoContentView;
5839
5870
 
5840
5871
  // src/components/dataForm/ContentView.tsx
5841
5872
  var import_react53 = __toESM(require("react"));
5842
- var import_jsx_runtime73 = require("react/jsx-runtime");
5873
+ var import_jsx_runtime74 = require("react/jsx-runtime");
5843
5874
  var ContentView = (props) => {
5844
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(import_react53.default.Fragment, { children: [
5845
- props.isDataFound == null && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "", children: /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "bg-gray-200 rounded-md p-4 animate-pulse", children: [
5846
- /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "flex items-center mb-4", children: [
5847
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
5848
- /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "ml-2", children: [
5849
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
5850
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
5875
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(import_react53.default.Fragment, { children: [
5876
+ props.isDataFound == null && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "", children: /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "bg-gray-200 rounded-md p-4 animate-pulse", children: [
5877
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "flex items-center mb-4", children: [
5878
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
5879
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "ml-2", children: [
5880
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
5881
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
5851
5882
  ] })
5852
5883
  ] }),
5853
- /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
5854
- /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "animate-pulse", children: [
5855
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
5856
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
5857
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
5858
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
5859
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
5884
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
5885
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "animate-pulse", children: [
5886
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
5887
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
5888
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
5889
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
5890
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
5860
5891
  ] }),
5861
- /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "animate-pulse", children: [
5862
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
5863
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
5864
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
5865
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
5866
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
5892
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "animate-pulse", children: [
5893
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
5894
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
5895
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
5896
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
5897
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
5867
5898
  ] }),
5868
- /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "animate-pulse", children: [
5869
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
5870
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
5871
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
5872
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
5873
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
5899
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "animate-pulse", children: [
5900
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
5901
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
5902
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
5903
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
5904
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
5874
5905
  ] })
5875
5906
  ] })
5876
5907
  ] }) }),
@@ -5881,7 +5912,7 @@ var ContentView_default = ContentView;
5881
5912
 
5882
5913
  // src/components/dataForm/DataList.tsx
5883
5914
  init_StyleTypes();
5884
- var import_jsx_runtime74 = require("react/jsx-runtime");
5915
+ var import_jsx_runtime75 = require("react/jsx-runtime");
5885
5916
  var DataList = (props) => {
5886
5917
  console.log(props.dataset, "datasetssssss");
5887
5918
  const router = (0, import_navigation2.useRouter)();
@@ -5904,7 +5935,7 @@ var DataList = (props) => {
5904
5935
  if (path.includes(".")) {
5905
5936
  return path.split(".").reduce((prev, curr) => prev ? prev[curr] : null, obj);
5906
5937
  } else if (Array.isArray(obj[path])) {
5907
- return obj[path].map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { children: item }, index));
5938
+ return obj[path].map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { children: item }, index));
5908
5939
  } else {
5909
5940
  return obj[path];
5910
5941
  }
@@ -5960,30 +5991,30 @@ var DataList = (props) => {
5960
5991
  const renderPageNumbers = () => {
5961
5992
  if (pages <= 10) {
5962
5993
  return Array.from({ length: pages }, (_, index) => index + 1).map(
5963
- (page) => /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_react54.default.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
5994
+ (page) => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_react54.default.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
5964
5995
  Hyperlink,
5965
5996
  {
5966
5997
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
5967
5998
  href: builder.getNewPageUrl(page),
5968
5999
  children: page
5969
6000
  }
5970
- ) : /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary text-white", children: page }) }, page)
6001
+ ) : /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary text-white", children: page }) }, page)
5971
6002
  );
5972
6003
  } else {
5973
6004
  const showFirstPages = activePageNumber <= 5;
5974
6005
  const showLastPages = activePageNumber > pages - 5;
5975
6006
  if (showFirstPages) {
5976
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(import_jsx_runtime74.Fragment, { children: [
5977
- Array.from({ length: 8 }, (_, index) => index + 1).map((page) => /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_react54.default.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
6007
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(import_jsx_runtime75.Fragment, { children: [
6008
+ Array.from({ length: 8 }, (_, index) => index + 1).map((page) => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_react54.default.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
5978
6009
  Hyperlink,
5979
6010
  {
5980
6011
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
5981
6012
  href: builder.getNewPageUrl(page),
5982
6013
  children: page
5983
6014
  }
5984
- ) : /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary text-white", children: page }) }, page)),
5985
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "px-2 py-1", children: "..." }),
5986
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
6015
+ ) : /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary text-white", children: page }) }, page)),
6016
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { className: "px-2 py-1", children: "..." }),
6017
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
5987
6018
  Hyperlink,
5988
6019
  {
5989
6020
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -5991,7 +6022,7 @@ var DataList = (props) => {
5991
6022
  children: pages - 1
5992
6023
  }
5993
6024
  ),
5994
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
6025
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
5995
6026
  Hyperlink,
5996
6027
  {
5997
6028
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -5999,7 +6030,7 @@ var DataList = (props) => {
5999
6030
  children: pages
6000
6031
  }
6001
6032
  ),
6002
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "relative inline-block", children: /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
6033
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: "relative inline-block", children: /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
6003
6034
  "select",
6004
6035
  {
6005
6036
  className: " py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
@@ -6011,18 +6042,18 @@ var DataList = (props) => {
6011
6042
  }
6012
6043
  },
6013
6044
  children: [
6014
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("option", { className: "", value: "", children: "Jump to" }),
6045
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("option", { className: "", value: "", children: "Jump to" }),
6015
6046
  Array.from(
6016
6047
  { length: Math.max(0, pages - 10) },
6017
6048
  (_, index) => index + 9
6018
- ).map((page) => /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("option", { value: page, children: page }, page))
6049
+ ).map((page) => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("option", { value: page, children: page }, page))
6019
6050
  ]
6020
6051
  }
6021
6052
  ) })
6022
6053
  ] });
6023
6054
  } else if (showLastPages) {
6024
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(import_jsx_runtime74.Fragment, { children: [
6025
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
6055
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(import_jsx_runtime75.Fragment, { children: [
6056
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
6026
6057
  Hyperlink,
6027
6058
  {
6028
6059
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -6030,7 +6061,7 @@ var DataList = (props) => {
6030
6061
  children: "1"
6031
6062
  }
6032
6063
  ),
6033
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
6064
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
6034
6065
  Hyperlink,
6035
6066
  {
6036
6067
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -6038,21 +6069,21 @@ var DataList = (props) => {
6038
6069
  children: "2"
6039
6070
  }
6040
6071
  ),
6041
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "px-2 py-1", children: "..." }),
6072
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { className: "px-2 py-1", children: "..." }),
6042
6073
  Array.from({ length: 8 }, (_, index) => pages - 7 + index).map(
6043
- (page) => /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_react54.default.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
6074
+ (page) => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_react54.default.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
6044
6075
  Hyperlink,
6045
6076
  {
6046
6077
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
6047
6078
  href: builder.getNewPageUrl(page),
6048
6079
  children: page
6049
6080
  }
6050
- ) : /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary text-white", children: page }) }, page)
6081
+ ) : /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary text-white", children: page }) }, page)
6051
6082
  )
6052
6083
  ] });
6053
6084
  } else {
6054
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(import_jsx_runtime74.Fragment, { children: [
6055
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
6085
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(import_jsx_runtime75.Fragment, { children: [
6086
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
6056
6087
  Hyperlink,
6057
6088
  {
6058
6089
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -6060,7 +6091,7 @@ var DataList = (props) => {
6060
6091
  children: "1"
6061
6092
  }
6062
6093
  ),
6063
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
6094
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
6064
6095
  Hyperlink,
6065
6096
  {
6066
6097
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -6068,20 +6099,20 @@ var DataList = (props) => {
6068
6099
  children: "2"
6069
6100
  }
6070
6101
  ),
6071
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "px-2 py-1", children: "..." }),
6102
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { className: "px-2 py-1", children: "..." }),
6072
6103
  Array.from(
6073
6104
  { length: 5 },
6074
6105
  (_, index) => activePageNumber - 2 + index
6075
- ).map((page) => /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_react54.default.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
6106
+ ).map((page) => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_react54.default.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
6076
6107
  Hyperlink,
6077
6108
  {
6078
6109
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
6079
6110
  href: builder.getNewPageUrl(page),
6080
6111
  children: page
6081
6112
  }
6082
- ) : /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary text-white", children: page }) }, page)),
6083
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "px-2 py-1", children: "..." }),
6084
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
6113
+ ) : /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary text-white", children: page }) }, page)),
6114
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { className: "px-2 py-1", children: "..." }),
6115
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
6085
6116
  Hyperlink,
6086
6117
  {
6087
6118
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -6089,7 +6120,7 @@ var DataList = (props) => {
6089
6120
  children: pages - 1
6090
6121
  }
6091
6122
  ),
6092
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
6123
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
6093
6124
  Hyperlink,
6094
6125
  {
6095
6126
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -6097,7 +6128,7 @@ var DataList = (props) => {
6097
6128
  children: pages
6098
6129
  }
6099
6130
  ),
6100
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "relative inline-block", children: /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
6131
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: "relative inline-block", children: /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
6101
6132
  "select",
6102
6133
  {
6103
6134
  className: "px-2 py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
@@ -6109,8 +6140,8 @@ var DataList = (props) => {
6109
6140
  }
6110
6141
  },
6111
6142
  children: [
6112
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("option", { value: "", children: "Jump to" }),
6113
- Array.from({ length: pages - 4 }, (_, index) => index + 3).filter((page) => page > 2 && page < pages - 1).map((page) => /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("option", { value: page, children: page }, page))
6143
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("option", { value: "", children: "Jump to" }),
6144
+ Array.from({ length: pages - 4 }, (_, index) => index + 3).filter((page) => page > 2 && page < pages - 1).map((page) => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("option", { value: page, children: page }, page))
6114
6145
  ]
6115
6146
  }
6116
6147
  ) })
@@ -6118,16 +6149,16 @@ var DataList = (props) => {
6118
6149
  }
6119
6150
  }
6120
6151
  };
6121
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(import_react54.default.Fragment, { children: [
6122
- /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(ContentView_default, { isDataFound, children: [
6123
- (props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
6152
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(import_react54.default.Fragment, { children: [
6153
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(ContentView_default, { isDataFound, children: [
6154
+ (props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
6124
6155
  "div",
6125
6156
  {
6126
6157
  className: `flex justify-between items-center bg-white pl-6 pr-2 h-14 mb-3 shadow-sm rounded-md border-b border-neutral-200 sticky top-0`,
6127
6158
  children: [
6128
- props.title ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("h2", { className: "text-lg font-semibold text-black-800", children: props.title }) }) : /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", {}),
6129
- /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "flex items-center gap-3", children: [
6130
- props.filters && props.filters.map((filter) => /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
6159
+ props.title ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("h2", { className: "text-lg font-semibold text-black-800", children: props.title }) }) : /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", {}),
6160
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "flex items-center gap-3", children: [
6161
+ props.filters && props.filters.map((filter) => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
6131
6162
  InputControl_default,
6132
6163
  {
6133
6164
  name: filter.name,
@@ -6142,15 +6173,15 @@ var DataList = (props) => {
6142
6173
  },
6143
6174
  filter.name
6144
6175
  )),
6145
- props.addLinkHref && /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
6176
+ props.addLinkHref && /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
6146
6177
  Hyperlink,
6147
6178
  {
6148
6179
  className: "gap-1",
6149
6180
  linkType: "Primary" /* Solid */,
6150
6181
  href: props.addLinkHref,
6151
6182
  children: [
6152
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Icon_default, { name: "plus", className: "w-4 h-4" }),
6153
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
6183
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Icon_default, { name: "plus", className: "w-4 h-4" }),
6184
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
6154
6185
  ]
6155
6186
  }
6156
6187
  )
@@ -6158,8 +6189,8 @@ var DataList = (props) => {
6158
6189
  ]
6159
6190
  }
6160
6191
  ),
6161
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "flex-1 overflow-y-auto justify-end bg-white rounded shadow h-[calc(100vh-14rem)]", children: /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("table", { className: "w-full divide-y divide-gray-200", children: [
6162
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("thead", { className: "bg-gray-50 sticky top-0", children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("tr", { children: props?.columns?.map((column) => {
6192
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: "flex-1 overflow-y-auto justify-end bg-white rounded shadow h-[calc(100vh-14rem)]", children: /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("table", { className: "w-full divide-y divide-gray-200", children: [
6193
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("thead", { className: "bg-gray-50 sticky top-0", children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("tr", { children: props?.columns?.map((column) => {
6163
6194
  let url = builder.getNewOrderByUrl(column.name);
6164
6195
  let icon = "chevronUpDown";
6165
6196
  if (orderBy.includes(`${column.name} desc`)) {
@@ -6169,18 +6200,18 @@ var DataList = (props) => {
6169
6200
  icon = "chevronUp";
6170
6201
  url = builder.getNewOrderByUrl(column.name + " desc");
6171
6202
  }
6172
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
6203
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
6173
6204
  "th",
6174
6205
  {
6175
6206
  className: "px-6 py-3 text-left font-medium bg-neutral-soft " + (column.enableSorting ? "cursor-pointer " : "") + column.width + (column.controlType == ViewControlTypes_default.money ? " text-right" : ""),
6176
- children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
6207
+ children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
6177
6208
  Hyperlink,
6178
6209
  {
6179
6210
  href: column.enableSorting ? url : void 0,
6180
6211
  className: "!text-neutral-contrast ",
6181
- children: /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("span", { className: "flex items-center space-x-1", children: [
6182
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "text-black", children: column.label }),
6183
- column.enableSorting && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Icon_default, { className: "w-4 h-4", name: icon })
6212
+ children: /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("span", { className: "flex items-center space-x-1", children: [
6213
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { className: "text-black", children: column.label }),
6214
+ column.enableSorting && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Icon_default, { className: "w-4 h-4", name: icon })
6184
6215
  ] })
6185
6216
  }
6186
6217
  )
@@ -6188,24 +6219,24 @@ var DataList = (props) => {
6188
6219
  column.name
6189
6220
  );
6190
6221
  }) }) }),
6191
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("tbody", { className: "divide-y divide-gray-200 ", children: props.dataset?.result?.map((dataitem, index) => {
6222
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("tbody", { className: "divide-y divide-gray-200 ", children: props.dataset?.result?.map((dataitem, index) => {
6192
6223
  let validityClass = "";
6193
6224
  console.log("dataitem", dataitem);
6194
6225
  if (props.recordValidityColumnName && getNestedProperty2(dataitem, props.recordValidityColumnName) == false) {
6195
6226
  validityClass = "bg-alert-200";
6196
6227
  }
6197
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("tr", { className: validityClass, children: props?.columns?.map((column, colindex) => {
6228
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("tr", { className: validityClass, children: props?.columns?.map((column, colindex) => {
6198
6229
  console.log("column", column);
6199
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_react54.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
6230
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_react54.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
6200
6231
  "td",
6201
6232
  {
6202
6233
  className: "px-6 py-2 whitespace-normal " + (column.controlType == ViewControlTypes_default.money ? "" : ""),
6203
- children: column.addhref === true ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
6234
+ children: column.addhref === true ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
6204
6235
  Hyperlink,
6205
6236
  {
6206
6237
  className: "",
6207
6238
  href: `https://${dataitem[column.name]}`,
6208
- children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
6239
+ children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
6209
6240
  ViewControl_default,
6210
6241
  {
6211
6242
  controlType: column.controlType,
@@ -6218,11 +6249,11 @@ var DataList = (props) => {
6218
6249
  }
6219
6250
  )
6220
6251
  }
6221
- ) : column.showAsLink ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
6252
+ ) : column.showAsLink ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
6222
6253
  Hyperlink,
6223
6254
  {
6224
6255
  href: props.path + dataitem[props.columns[0].name] + "/" + (dataitem.linkUrlSegment ?? column.linkUrlSegment),
6225
- children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
6256
+ children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
6226
6257
  ViewControl_default,
6227
6258
  {
6228
6259
  controlType: column.controlType,
@@ -6232,7 +6263,7 @@ var DataList = (props) => {
6232
6263
  }
6233
6264
  )
6234
6265
  }
6235
- ) : /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
6266
+ ) : /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
6236
6267
  ViewControl_default,
6237
6268
  {
6238
6269
  controlType: column.controlType,
@@ -6246,10 +6277,10 @@ var DataList = (props) => {
6246
6277
  }) }, index);
6247
6278
  }) })
6248
6279
  ] }) }),
6249
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "pt-4 border-t border-t-gray-50 sticky bottom-0 h-11 mt-2 ", children: /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "flex items-center justify-between", children: [
6250
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "text-gray-700", children: label }),
6251
- /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "flex space-x-2 items-center", children: [
6252
- activePageNumber > 1 && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
6280
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: "pt-4 border-t border-t-gray-50 sticky bottom-0 h-11 mt-2 ", children: /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "flex items-center justify-between", children: [
6281
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: "text-gray-700", children: label }),
6282
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "flex space-x-2 items-center", children: [
6283
+ activePageNumber > 1 && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
6253
6284
  Hyperlink,
6254
6285
  {
6255
6286
  className: "px-3 py-1 rounded-l-md border border-gray-300 bg-white text-gray-500 hover:bg-gray-200",
@@ -6257,9 +6288,9 @@ var DataList = (props) => {
6257
6288
  children: "Prev"
6258
6289
  }
6259
6290
  ),
6260
- activePageNumber <= 1 && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "px-3 py-1 rounded-l-md border border-gray-300 bg-gray-200 text-gray-500 hover:bg-gray-200", children: "Prev" }),
6291
+ activePageNumber <= 1 && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: "px-3 py-1 rounded-l-md border border-gray-300 bg-gray-200 text-gray-500 hover:bg-gray-200", children: "Prev" }),
6261
6292
  renderPageNumbers(),
6262
- activePageNumber < pages && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
6293
+ activePageNumber < pages && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
6263
6294
  Hyperlink,
6264
6295
  {
6265
6296
  className: "px-3 py-1 rounded-r-md border border-gray-300 bg-white text-gray-500 hover:bg-gray-200",
@@ -6267,19 +6298,19 @@ var DataList = (props) => {
6267
6298
  children: "Next"
6268
6299
  }
6269
6300
  ),
6270
- activePageNumber >= pages && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "px-3 py-1 rounded-r-md border border-gray-300 bg-gray-200 text-gray-500", children: "Next" })
6301
+ activePageNumber >= pages && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: "px-3 py-1 rounded-r-md border border-gray-300 bg-gray-200 text-gray-500", children: "Next" })
6271
6302
  ] })
6272
6303
  ] }) })
6273
6304
  ] }),
6274
- /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(NoContentView_default, { isDataFound, children: [
6275
- (props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
6305
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(NoContentView_default, { isDataFound, children: [
6306
+ (props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
6276
6307
  "div",
6277
6308
  {
6278
6309
  className: `flex justify-between items-center bg-white pl-6 pr-2 h-14 mb-3 shadow-sm rounded-md border-b border-neutral-200`,
6279
6310
  children: [
6280
- props.title ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("h2", { className: "text-lg font-semibold text-black", children: props.title }) }) : /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", {}),
6281
- /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "flex items-center gap-3", children: [
6282
- props.filters && props.filters.map((filter) => /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
6311
+ props.title ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("h2", { className: "text-lg font-semibold text-black", children: props.title }) }) : /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", {}),
6312
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "flex items-center gap-3", children: [
6313
+ props.filters && props.filters.map((filter) => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
6283
6314
  InputControl_default,
6284
6315
  {
6285
6316
  name: filter.name,
@@ -6294,15 +6325,15 @@ var DataList = (props) => {
6294
6325
  },
6295
6326
  filter.name
6296
6327
  )),
6297
- props.addLinkHref && /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
6328
+ props.addLinkHref && /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
6298
6329
  Hyperlink,
6299
6330
  {
6300
6331
  className: "gap-1",
6301
6332
  linkType: "Primary" /* Solid */,
6302
6333
  href: props.addLinkHref,
6303
6334
  children: [
6304
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Icon_default, { name: "plus", className: "w-4 h-4" }),
6305
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
6335
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Icon_default, { name: "plus", className: "w-4 h-4" }),
6336
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
6306
6337
  ]
6307
6338
  }
6308
6339
  )
@@ -6310,8 +6341,8 @@ var DataList = (props) => {
6310
6341
  ]
6311
6342
  }
6312
6343
  ),
6313
- /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "flex-grow overflow-y-auto justify-end bg-white rounded shadow h-[75vh]", children: [
6314
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("table", { className: "w-full divide-y divide-gray-200", children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("thead", { className: "bg-gray-50", children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("tr", { children: props?.columns?.map((column) => {
6344
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "flex-grow overflow-y-auto justify-end bg-white rounded shadow h-[75vh]", children: [
6345
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("table", { className: "w-full divide-y divide-gray-200", children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("thead", { className: "bg-gray-50", children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("tr", { children: props?.columns?.map((column) => {
6315
6346
  let url = builder.getNewOrderByUrl(column.name);
6316
6347
  let icon = "chevronUpDown";
6317
6348
  if (orderBy.includes(`${column.name} desc`)) {
@@ -6321,18 +6352,18 @@ var DataList = (props) => {
6321
6352
  icon = "chevronUp";
6322
6353
  url = builder.getNewOrderByUrl(column.name + " desc");
6323
6354
  }
6324
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
6355
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
6325
6356
  "th",
6326
6357
  {
6327
6358
  className: "px-6 py-3 text-left font-medium bg-neutral-soft " + (column.enableSorting ? "cursor-pointer " : "") + column.width + (column.controlType == ViewControlTypes_default.money ? " text-right" : ""),
6328
- children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
6359
+ children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
6329
6360
  Hyperlink,
6330
6361
  {
6331
6362
  href: column.enableSorting ? url : void 0,
6332
6363
  className: "text-body-950",
6333
- children: /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("span", { className: "flex items-center space-x-1", children: [
6334
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { children: column.label }),
6335
- column.enableSorting && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Icon_default, { className: "w-4 h-4", name: icon })
6364
+ children: /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("span", { className: "flex items-center space-x-1", children: [
6365
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { children: column.label }),
6366
+ column.enableSorting && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Icon_default, { className: "w-4 h-4", name: icon })
6336
6367
  ] })
6337
6368
  }
6338
6369
  )
@@ -6340,7 +6371,7 @@ var DataList = (props) => {
6340
6371
  column.name
6341
6372
  );
6342
6373
  }) }) }) }) }),
6343
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "w-full text-center bg-transparent pt-5", children: "There are no entries in the table at the moment." })
6374
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: "w-full text-center bg-transparent pt-5", children: "There are no entries in the table at the moment." })
6344
6375
  ] })
6345
6376
  ] })
6346
6377
  ] });
@@ -6351,7 +6382,7 @@ var DataList_default = DataList;
6351
6382
  var import_react55 = __toESM(require("react"));
6352
6383
  init_ServiceClient();
6353
6384
  var import_navigation3 = require("next/navigation");
6354
- var import_jsx_runtime75 = require("react/jsx-runtime");
6385
+ var import_jsx_runtime76 = require("react/jsx-runtime");
6355
6386
  var viewControlMap = {
6356
6387
  number: ViewControlTypes.number,
6357
6388
  lineText: ViewControlTypes.lineText,
@@ -6440,9 +6471,9 @@ var DataListRenderer = ({
6440
6471
  const [tabItem, setTabItem] = (0, import_react55.useState)();
6441
6472
  const activeTab = tabItem?.find((tab) => tab.isActive);
6442
6473
  const activeHref = activeTab ? resolveRoutePlaceholders2(activeTab.landingPageUrl, params) : pathname;
6443
- return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(import_react55.default.Fragment, { children: [
6444
- widgetProps && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
6445
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
6474
+ return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(import_react55.default.Fragment, { children: [
6475
+ widgetProps && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
6476
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
6446
6477
  DataList_default,
6447
6478
  {
6448
6479
  addLinkHref,
@@ -6492,7 +6523,7 @@ var FORM_CHILD_ONE_TO_ONE_UPDATE = "FORM_CHILD_ONE_TO_ONE_UPDATE";
6492
6523
  var FORM_CHILD_ROW_ADD = "FORM_CHILD_ROW_ADD";
6493
6524
 
6494
6525
  // src/components/dataForm/DataFormChildSection.tsx
6495
- var import_jsx_runtime76 = require("react/jsx-runtime");
6526
+ var import_jsx_runtime77 = require("react/jsx-runtime");
6496
6527
  var DataFormChildSection = (props) => {
6497
6528
  const { section } = props;
6498
6529
  const isOneToOne = section.relationshipType === "one-to-one";
@@ -6560,14 +6591,14 @@ var DataFormChildSection = (props) => {
6560
6591
  childItemsToRender,
6561
6592
  allChildItems: childItems
6562
6593
  });
6563
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_react56.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "rounded border-neutral-200 border px-6 py-4 mb-2", children: [
6564
- section.sectionTitle && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "mb-4 text-lg font-medium text-body-950", children: section.sectionTitle }),
6565
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "flex-grow flex flex-col justify-between overflow-y-auto", children: /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "flex flex-col justify-between gap-2", children: [
6566
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("table", { className: "w-full border-separate divide-y divide-gray-200", children: [
6567
- (!isOneToOne || childItemsToRender.length > 0) && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("thead", { className: "", children: section.sectionRows.map((sectionRow, sectionRowIndex) => {
6568
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("tr", { className: "", children: [
6594
+ return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_react56.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "rounded border-neutral-200 border px-6 py-4 mb-2", children: [
6595
+ section.sectionTitle && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "mb-4 text-lg font-medium text-body-950", children: section.sectionTitle }),
6596
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "flex-grow flex flex-col justify-between overflow-y-auto", children: /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "flex flex-col justify-between gap-2", children: [
6597
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("table", { className: "w-full border-separate divide-y divide-gray-200", children: [
6598
+ (!isOneToOne || childItemsToRender.length > 0) && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("thead", { className: "", children: section.sectionRows.map((sectionRow, sectionRowIndex) => {
6599
+ return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("tr", { className: "", children: [
6569
6600
  sectionRow.elements.map((field, index) => {
6570
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
6601
+ return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
6571
6602
  "th",
6572
6603
  {
6573
6604
  className: "py-3 font-normal text-left",
@@ -6576,21 +6607,21 @@ var DataFormChildSection = (props) => {
6576
6607
  field.name
6577
6608
  );
6578
6609
  }),
6579
- !section.readonly && !isOneToOne && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("th", { className: "py-3 font-normal text-left", children: "Actions" })
6610
+ !section.readonly && !isOneToOne && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("th", { className: "py-3 font-normal text-left", children: "Actions" })
6580
6611
  ] }, sectionRowIndex);
6581
6612
  }) }),
6582
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("tbody", { className: "divide-y divide-gray-200", children: childItemsToRender.map((visibleItem, filteredIndex) => {
6613
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("tbody", { className: "divide-y divide-gray-200", children: childItemsToRender.map((visibleItem, filteredIndex) => {
6583
6614
  const { item, originalIndex } = visibleItem;
6584
6615
  const rowKey = originalIndex;
6585
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_react56.default.Fragment, { children: section.sectionRows.map(
6616
+ return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_react56.default.Fragment, { children: section.sectionRows.map(
6586
6617
  (sectionRow, sectionRowIndex) => {
6587
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
6618
+ return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(
6588
6619
  "tr",
6589
6620
  {
6590
6621
  className: "",
6591
6622
  children: [
6592
6623
  sectionRow.elements.map((field, index) => {
6593
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("td", { children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "w-11/12", children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
6624
+ return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("td", { children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "w-11/12", children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
6594
6625
  InputControl_default,
6595
6626
  {
6596
6627
  index: filteredIndex,
@@ -6610,7 +6641,7 @@ var DataFormChildSection = (props) => {
6610
6641
  }
6611
6642
  ) }) }) }, field.name);
6612
6643
  }),
6613
- !section.readonly && !isOneToOne && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("td", { children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
6644
+ !section.readonly && !isOneToOne && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("td", { children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
6614
6645
  ClientButton_default,
6615
6646
  {
6616
6647
  ButtonType: StyleTypes2.Hollow,
@@ -6619,7 +6650,7 @@ var DataFormChildSection = (props) => {
6619
6650
  },
6620
6651
  dataRole: "delete",
6621
6652
  tabIndex: -1,
6622
- children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
6653
+ children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
6623
6654
  Icon_default,
6624
6655
  {
6625
6656
  className: "w-4 h-4",
@@ -6636,7 +6667,7 @@ var DataFormChildSection = (props) => {
6636
6667
  ) }, rowKey);
6637
6668
  }) })
6638
6669
  ] }) }),
6639
- !section.readonly && !isOneToOne && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "ml-1", children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
6670
+ !section.readonly && !isOneToOne && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "ml-1", children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
6640
6671
  ClientButton_default,
6641
6672
  {
6642
6673
  ButtonType: "Link" /* Link */,
@@ -6651,7 +6682,7 @@ var DataFormChildSection = (props) => {
6651
6682
  var DataFormChildSection_default = DataFormChildSection;
6652
6683
 
6653
6684
  // src/components/dataForm/DataForm.tsx
6654
- var import_jsx_runtime77 = require("react/jsx-runtime");
6685
+ var import_jsx_runtime78 = require("react/jsx-runtime");
6655
6686
  var DataForm = (props) => {
6656
6687
  const formRef = (0, import_react57.useRef)(null);
6657
6688
  console.log(props.dataItem, "dssads");
@@ -6871,19 +6902,19 @@ var DataForm = (props) => {
6871
6902
  return false;
6872
6903
  }
6873
6904
  }
6874
- return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_react57.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "flex-grow flex flex-col", children: [
6875
- props.title && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "inline-flex items-center gap-2 px-6 py-3 border border-neutral-200 bg-white shadow-sm rounded-t-md", children: /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(
6905
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_react57.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "flex-grow flex flex-col", children: [
6906
+ props.title && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "inline-flex items-center gap-2 px-6 py-3 border border-neutral-200 bg-white shadow-sm rounded-t-md", children: /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
6876
6907
  "div",
6877
6908
  {
6878
6909
  className: "inline-flex items-center gap-2 cursor-pointer",
6879
6910
  onClick: () => window.history.back(),
6880
6911
  children: [
6881
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(Icon_default, { name: "chevronLeft", className: "w-4 h-4 text-primary-800" }),
6882
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("h2", { className: "text-lg font-semibold text-primary-800", children: props.title })
6912
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(Icon_default, { name: "chevronLeft", className: "w-4 h-4 text-primary-800" }),
6913
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("h2", { className: "text-lg font-semibold text-primary-800", children: props.title })
6883
6914
  ]
6884
6915
  }
6885
6916
  ) }),
6886
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
6917
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
6887
6918
  "form",
6888
6919
  {
6889
6920
  className: "group space-y-6 pb-6 overflow-y-auto",
@@ -6904,8 +6935,8 @@ var DataForm = (props) => {
6904
6935
  }
6905
6936
  }
6906
6937
  },
6907
- children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "flex flex-col gap-6", children: props.sections?.map((section, sectionIndex) => {
6908
- return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_react57.default.Fragment, { children: !section.isChildSection && /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: " rounded-b-lg bg-white shadow border-neutral-200 border px-8 py-6 ", children: [
6938
+ children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "flex flex-col gap-6", children: props.sections?.map((section, sectionIndex) => {
6939
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_react57.default.Fragment, { children: !section.isChildSection && /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: " rounded-b-lg bg-white shadow border-neutral-200 border px-8 py-6 ", children: [
6909
6940
  section.sectionRows?.map(
6910
6941
  (sectionRow, sectionRowIndex) => {
6911
6942
  const elementsCount = sectionRow.elements.length;
@@ -6916,14 +6947,14 @@ var DataForm = (props) => {
6916
6947
  sectionRow.visible
6917
6948
  );
6918
6949
  }
6919
- return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_react57.default.Fragment, { children: isVisible && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "lg:flex gap-14 flex-1 mb-4 ", children: sectionRow.elements.map((field, index) => {
6920
- return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(
6950
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_react57.default.Fragment, { children: isVisible && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "lg:flex gap-14 flex-1 mb-4 ", children: sectionRow.elements.map((field, index) => {
6951
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
6921
6952
  "div",
6922
6953
  {
6923
6954
  className: sectionRow.grow ? "grow" : "",
6924
6955
  children: [
6925
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { children: field.controlType }),
6926
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
6956
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { children: field.controlType }),
6957
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
6927
6958
  InputControl_default,
6928
6959
  {
6929
6960
  name: field.name,
@@ -6953,12 +6984,12 @@ var DataForm = (props) => {
6953
6984
  }) }) }, sectionRowIndex);
6954
6985
  }
6955
6986
  ),
6956
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { children: section.childSections?.map(
6987
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { children: section.childSections?.map(
6957
6988
  (childSection, childSectionIndex) => {
6958
- return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { children: childSection.name && evalutateCondition(
6989
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { children: childSection.name && evalutateCondition(
6959
6990
  formState.inputValues,
6960
6991
  childSection.visible
6961
- ) && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
6992
+ ) && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
6962
6993
  DataFormChildSection_default,
6963
6994
  {
6964
6995
  section: childSection,
@@ -6973,8 +7004,8 @@ var DataForm = (props) => {
6973
7004
  }) })
6974
7005
  }
6975
7006
  ),
6976
- /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "flex px-6 py-3 mt-2 mb-2 justify-end items-center gap-5", children: [
6977
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { children: props.additionalActions && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
7007
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "flex px-6 py-3 mt-2 mb-2 justify-end items-center gap-5", children: [
7008
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { children: props.additionalActions && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
6978
7009
  Button_default,
6979
7010
  {
6980
7011
  ButtonType: "PrimaryHollow" /* Hollow */,
@@ -6982,7 +7013,7 @@ var DataForm = (props) => {
6982
7013
  children: props.additionalActions.title
6983
7014
  }
6984
7015
  ) }),
6985
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { children: props.onDelete && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
7016
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { children: props.onDelete && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
6986
7017
  Button_default,
6987
7018
  {
6988
7019
  ButtonType: "PrimaryHollow" /* Hollow */,
@@ -6993,7 +7024,7 @@ var DataForm = (props) => {
6993
7024
  children: "Delete"
6994
7025
  }
6995
7026
  ) }),
6996
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { children: props.onClick && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
7027
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { children: props.onClick && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
6997
7028
  Button_default,
6998
7029
  {
6999
7030
  onValidate,
@@ -7011,7 +7042,7 @@ var DataForm_default = DataForm;
7011
7042
 
7012
7043
  // src/components/dataForm/DataFormRenderer.tsx
7013
7044
  init_ServiceClient();
7014
- var import_jsx_runtime78 = require("react/jsx-runtime");
7045
+ var import_jsx_runtime79 = require("react/jsx-runtime");
7015
7046
  function getAction(actions, code) {
7016
7047
  return actions?.find((a) => a.actionCode === code);
7017
7048
  }
@@ -7037,9 +7068,9 @@ var DataFormRenderer = ({
7037
7068
  "Delete"
7038
7069
  );
7039
7070
  const hasDataItem = dataItem && Object.keys(dataItem).length > 0;
7040
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "flex-grow flex flex-col", children: [
7041
- widgetProps && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
7042
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
7071
+ return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: "flex-grow flex flex-col", children: [
7072
+ widgetProps && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
7073
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7043
7074
  DataForm_default,
7044
7075
  {
7045
7076
  title: !isAddPage ? "Edit " + formDefinition.formTitle + "- v2" : "Add " + formDefinition.formTitle + "- v2",