@clyrex-digital/clyrex-controls-dev 0.8.1-dev.20260807130918 → 0.8.1-dev.20260808070128

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -41,7 +41,7 @@ import {
41
41
  import "./chunk-IMNQO57B.mjs";
42
42
 
43
43
  // src/components/controls/view/ViewControl.tsx
44
- import React13 from "react";
44
+ import React14 from "react";
45
45
 
46
46
  // src/components/controls/view/ViewControlTypes.tsx
47
47
  var ViewControlTypes = {
@@ -377,8 +377,80 @@ var DateTimeView = dynamic3(() => import("./DateTimeViewClient-M7V35KUW.mjs"), {
377
377
  });
378
378
  var DateTimeVew_default = DateTimeView;
379
379
 
380
- // src/components/controls/view/ViewControl.tsx
380
+ // src/components/controls/view/TimeUntilStarts.tsx
381
+ import { useState, useEffect } from "react";
381
382
  import { jsx as jsx14 } from "react/jsx-runtime";
383
+ var TimeUntilStarts = (props) => {
384
+ const calculateTimeDifference = (startDate) => {
385
+ const now = /* @__PURE__ */ new Date();
386
+ const nowUtc = new Date(now.getTime() + now.getTimezoneOffset() * 6e4);
387
+ const startDateUtc = new Date(startDate);
388
+ const diffMs = startDateUtc.getTime() - nowUtc.getTime();
389
+ const isPast = diffMs < 0;
390
+ const absoluteDiffMs = Math.abs(diffMs);
391
+ const diffDays = Math.floor(absoluteDiffMs / (1e3 * 60 * 60 * 24));
392
+ const diffHours = Math.floor(
393
+ absoluteDiffMs % (1e3 * 60 * 60 * 24) / (1e3 * 60 * 60)
394
+ );
395
+ const diffMinutes = Math.floor(
396
+ absoluteDiffMs % (1e3 * 60 * 60) / (1e3 * 60)
397
+ );
398
+ if (absoluteDiffMs < 6e4) {
399
+ return "Just now";
400
+ }
401
+ let timeParts = [
402
+ { value: diffDays, unit: "days" },
403
+ { value: diffHours, unit: "hours" },
404
+ { value: diffMinutes, unit: "minutes" }
405
+ ];
406
+ timeParts = timeParts.filter((part) => part.value > 0);
407
+ if (isPast) {
408
+ if (diffDays > 0) {
409
+ return `${diffDays} day(s) ago`;
410
+ } else if (diffHours > 0) {
411
+ return `${diffHours} hour(s) ago`;
412
+ } else if (diffMinutes > 0) {
413
+ return `${diffMinutes} minute(s) ago`;
414
+ } else {
415
+ return "Just now";
416
+ }
417
+ } else {
418
+ if (timeParts.length > 2) {
419
+ timeParts = timeParts.slice(0, 2);
420
+ }
421
+ const displayString = timeParts.map((part) => `${part.value} ${part.unit}`).join(" ");
422
+ return displayString ? `Starting in ${displayString}` : "Started";
423
+ }
424
+ };
425
+ const isValidDate = (date) => {
426
+ return !isNaN(Date.parse(date));
427
+ };
428
+ const [timeUntilStart, setTimeUntilStart] = useState(() => {
429
+ if (props.value && isValidDate(props.value)) {
430
+ return calculateTimeDifference(props.value);
431
+ }
432
+ return "";
433
+ });
434
+ useEffect(() => {
435
+ if (props.value && isValidDate(props.value)) {
436
+ setTimeUntilStart(calculateTimeDifference(props.value));
437
+ const initialTimeout = setTimeout(() => {
438
+ const interval = setInterval(() => {
439
+ setTimeUntilStart(calculateTimeDifference(props.value));
440
+ }, 6e4);
441
+ return () => clearInterval(interval);
442
+ }, 5e3);
443
+ return () => clearTimeout(initialTimeout);
444
+ } else {
445
+ setTimeUntilStart("");
446
+ }
447
+ }, [props.value]);
448
+ return /* @__PURE__ */ jsx14("div", { children: timeUntilStart });
449
+ };
450
+ var TimeUntilStarts_default = TimeUntilStarts;
451
+
452
+ // src/components/controls/view/ViewControl.tsx
453
+ import { jsx as jsx15 } from "react/jsx-runtime";
382
454
  var ViewControl = (props) => {
383
455
  const ControlComponents = {
384
456
  [ViewControlTypes_default.lineText]: LineTextView_default,
@@ -387,7 +459,7 @@ var ViewControl = (props) => {
387
459
  [ViewControlTypes_default.multilineTextBullets]: MultilineTextBulletsView_default,
388
460
  [ViewControlTypes_default.boolean]: BooleanView_default,
389
461
  [ViewControlTypes_default.checkboxInput]: BooleanView_default,
390
- // [ViewControlTypes.timeUntilStarts]: TimeUntilStarts,
462
+ [ViewControlTypes_default.timeUntilStarts]: TimeUntilStarts_default,
391
463
  [ViewControlTypes_default.money]: MoneyView_default,
392
464
  [ViewControlTypes_default.date]: DateView_default,
393
465
  [ViewControlTypes_default.time]: DateView_default,
@@ -407,7 +479,7 @@ var ViewControl = (props) => {
407
479
  [ViewControlTypes_default.text]: LineTextView_default
408
480
  };
409
481
  const SelectedControlComponent = props.controlType ? ControlComponents[props.controlType] : void 0;
410
- return /* @__PURE__ */ jsx14(React13.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ jsx14(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
482
+ return /* @__PURE__ */ jsx15(React14.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ jsx15(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
411
483
  };
412
484
  var ViewControl_default = ViewControl;
413
485
 
@@ -419,13 +491,13 @@ var InputControl = dynamic4(() => import("./InputControlClient-XR37ZIQ2.mjs"), {
419
491
  var InputControl_default = InputControl;
420
492
 
421
493
  // src/components/pageRenderingEngine/PageBodyRenderer.tsx
422
- import React23 from "react";
494
+ import React24 from "react";
423
495
 
424
496
  // src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
425
- import React15 from "react";
497
+ import React16 from "react";
426
498
 
427
499
  // src/components/pageRenderingEngine/nodes/TextNode.tsx
428
- import { jsx as jsx15, jsxs as jsxs5 } from "react/jsx-runtime";
500
+ import { jsx as jsx16, jsxs as jsxs5 } from "react/jsx-runtime";
429
501
  var TextNode = (props) => {
430
502
  function cssStringToJson(cssString) {
431
503
  const styleObject = {};
@@ -482,33 +554,33 @@ var TextNode = (props) => {
482
554
  function renderWithLineBreaks(text) {
483
555
  return text.split("\n").map((line, index, arr) => /* @__PURE__ */ jsxs5("span", { children: [
484
556
  line,
485
- index < arr.length - 1 && /* @__PURE__ */ jsx15("br", {})
557
+ index < arr.length - 1 && /* @__PURE__ */ jsx16("br", {})
486
558
  ] }, index));
487
559
  }
488
560
  const displayText = props.linkText ? props.linkText : props.node.text;
489
561
  const finalText = props.dataitem && props.linkText ? displayText : props.dataitem ? replacePlaceholders(props.node.text, props.dataitem) : props.node.text;
490
562
  const content = typeof finalText === "string" ? renderWithLineBreaks(finalText) : finalText;
491
- const formattedContent = props.node.format & 64 ? /* @__PURE__ */ jsx15("sup", { children: content }) : props.node.format & 32 ? /* @__PURE__ */ jsx15("sub", { children: content }) : content;
563
+ const formattedContent = props.node.format & 64 ? /* @__PURE__ */ jsx16("sup", { children: content }) : props.node.format & 32 ? /* @__PURE__ */ jsx16("sub", { children: content }) : content;
492
564
  return (
493
565
  // @ts-expect-error custom code
494
- /* @__PURE__ */ jsx15("span", { style: { ...styles }, className: getFormatClass(props.node.format), children: formattedContent })
566
+ /* @__PURE__ */ jsx16("span", { style: { ...styles }, className: getFormatClass(props.node.format), children: formattedContent })
495
567
  );
496
568
  };
497
569
  var TextNode_default = TextNode;
498
570
 
499
571
  // src/components/pageRenderingEngine/nodes/LineBreakNode.tsx
500
- import { jsx as jsx16 } from "react/jsx-runtime";
572
+ import { jsx as jsx17 } from "react/jsx-runtime";
501
573
  var LineBreakNode = () => {
502
- return /* @__PURE__ */ jsx16("div", { className: "py-0.5 lg:py-1.5" });
574
+ return /* @__PURE__ */ jsx17("div", { className: "py-0.5 lg:py-1.5" });
503
575
  };
504
576
  var LineBreakNode_default = LineBreakNode;
505
577
 
506
578
  // src/components/pageRenderingEngine/nodes/LinkNode.tsx
507
- import React14 from "react";
579
+ import React15 from "react";
508
580
 
509
581
  // src/components/pageRenderingEngine/nodes/ImageNode.tsx
510
582
  import dynamic5 from "next/dynamic";
511
- import { jsx as jsx17 } from "react/jsx-runtime";
583
+ import { jsx as jsx18 } from "react/jsx-runtime";
512
584
  var HlsPlayer2 = dynamic5(() => import("./HlsPlayer-IW52N5RG.mjs"), { ssr: false });
513
585
  var getNestedValue = (obj, path) => {
514
586
  if (!obj || !path) return void 0;
@@ -541,7 +613,7 @@ var ImageNode = (props) => {
541
613
  assets = [image];
542
614
  }
543
615
  if (assets && assets.length > 0) {
544
- return /* @__PURE__ */ jsx17(
616
+ return /* @__PURE__ */ jsx18(
545
617
  DeviceAssetSelector_default,
546
618
  {
547
619
  device: props.device,
@@ -582,7 +654,7 @@ var ImageNode = (props) => {
582
654
  right: "justify-end"
583
655
  };
584
656
  const isHls = imageUrl.endsWith(".m3u8");
585
- const renderMedia = () => isHls ? /* @__PURE__ */ jsx17(
657
+ const renderMedia = () => isHls ? /* @__PURE__ */ jsx18(
586
658
  HlsPlayer2,
587
659
  {
588
660
  assetUrl: imageUrl,
@@ -595,7 +667,7 @@ var ImageNode = (props) => {
595
667
  apiBaseUrl: props.apiBaseUrl,
596
668
  session: props.session
597
669
  }
598
- ) : /* @__PURE__ */ jsx17(
670
+ ) : /* @__PURE__ */ jsx18(
599
671
  "img",
600
672
  {
601
673
  style: styles,
@@ -608,7 +680,7 @@ var ImageNode = (props) => {
608
680
  }
609
681
  );
610
682
  if (props.node.width) {
611
- return /* @__PURE__ */ jsx17("div", { className: `flex ${FORMAT_CLASSES2[props.node.format] ?? ""}`, children: renderMedia() });
683
+ return /* @__PURE__ */ jsx18("div", { className: `flex ${FORMAT_CLASSES2[props.node.format] ?? ""}`, children: renderMedia() });
612
684
  }
613
685
  return renderMedia();
614
686
  };
@@ -616,7 +688,7 @@ var ImageNode_default = ImageNode;
616
688
 
617
689
  // src/components/pageRenderingEngine/nodes/LinkNode.tsx
618
690
  import dynamic6 from "next/dynamic";
619
- import { Fragment, jsx as jsx18, jsxs as jsxs6 } from "react/jsx-runtime";
691
+ import { Fragment, jsx as jsx19, jsxs as jsxs6 } from "react/jsx-runtime";
620
692
  var LinkNodeButton = dynamic6(() => import("./LinkNodeButton-AOEDCCL7.mjs"), {
621
693
  ssr: false
622
694
  });
@@ -669,13 +741,13 @@ var LinkNode = (props) => {
669
741
  const isButton = node.isButton === true;
670
742
  const renderChildren = () => {
671
743
  if (!node.children || node.children.length === 0) return null;
672
- return /* @__PURE__ */ jsx18(Fragment, { children: node.children.map((childNode, index) => {
744
+ return /* @__PURE__ */ jsx19(Fragment, { children: node.children.map((childNode, index) => {
673
745
  const SelectedNode = NodeTypes2[childNode.type];
674
746
  if (!SelectedNode) {
675
747
  console.warn("Unknown node type:", childNode.type);
676
748
  return null;
677
749
  }
678
- return /* @__PURE__ */ jsx18(React14.Fragment, { children: /* @__PURE__ */ jsx18(
750
+ return /* @__PURE__ */ jsx19(React15.Fragment, { children: /* @__PURE__ */ jsx19(
679
751
  SelectedNode,
680
752
  {
681
753
  node: childNode,
@@ -688,10 +760,10 @@ var LinkNode = (props) => {
688
760
  };
689
761
  const renderFallback = () => {
690
762
  if ((!node.children || node.children.length === 0) && linkText) {
691
- return /* @__PURE__ */ jsx18("span", { children: linkText });
763
+ return /* @__PURE__ */ jsx19("span", { children: linkText });
692
764
  }
693
765
  if ((!node.children || node.children.length === 0) && !linkText) {
694
- return /* @__PURE__ */ jsx18("br", {});
766
+ return /* @__PURE__ */ jsx19("br", {});
695
767
  }
696
768
  return null;
697
769
  };
@@ -730,10 +802,10 @@ var LinkNode = (props) => {
730
802
  var LinkNode_default = LinkNode;
731
803
 
732
804
  // src/components/pageRenderingEngine/nodes/SVGIconNode.tsx
733
- import { jsx as jsx19 } from "react/jsx-runtime";
805
+ import { jsx as jsx20 } from "react/jsx-runtime";
734
806
  var SVGIconNode = ({ node }) => {
735
807
  if (!node?.svgCode) return null;
736
- return /* @__PURE__ */ jsx19(
808
+ return /* @__PURE__ */ jsx20(
737
809
  "span",
738
810
  {
739
811
  style: {
@@ -750,7 +822,7 @@ var SVGIconNode_default = SVGIconNode;
750
822
 
751
823
  // src/components/pageRenderingEngine/nodes/EquationNode.tsx
752
824
  import katex from "katex";
753
- import { jsx as jsx20 } from "react/jsx-runtime";
825
+ import { jsx as jsx21 } from "react/jsx-runtime";
754
826
  var EquationNode = ({ node }) => {
755
827
  const { equation, inline } = node;
756
828
  let html = "";
@@ -765,7 +837,7 @@ var EquationNode = ({ node }) => {
765
837
  });
766
838
  }
767
839
  if (inline) {
768
- return /* @__PURE__ */ jsx20(
840
+ return /* @__PURE__ */ jsx21(
769
841
  "span",
770
842
  {
771
843
  className: "katex-inline",
@@ -773,7 +845,7 @@ var EquationNode = ({ node }) => {
773
845
  }
774
846
  );
775
847
  }
776
- return /* @__PURE__ */ jsx20(
848
+ return /* @__PURE__ */ jsx21(
777
849
  "div",
778
850
  {
779
851
  className: "katex-block my-3 text-center",
@@ -784,7 +856,7 @@ var EquationNode = ({ node }) => {
784
856
  var EquationNode_default = EquationNode;
785
857
 
786
858
  // src/components/pageRenderingEngine/nodes/DatafieldNode.tsx
787
- import { jsx as jsx21 } from "react/jsx-runtime";
859
+ import { jsx as jsx22 } from "react/jsx-runtime";
788
860
  function getNestedProperty(obj, path) {
789
861
  if (!obj || !path) return null;
790
862
  if (path.includes(".")) {
@@ -797,7 +869,7 @@ function getNestedProperty(obj, path) {
797
869
  }
798
870
  const value = obj[path];
799
871
  if (Array.isArray(value)) {
800
- return value.map((item, index) => /* @__PURE__ */ jsx21("div", { children: String(item) }, index));
872
+ return value.map((item, index) => /* @__PURE__ */ jsx22("div", { children: String(item) }, index));
801
873
  }
802
874
  return value;
803
875
  }
@@ -858,7 +930,7 @@ var DatafieldNode = (props) => {
858
930
  const dataType = props.node.dataType;
859
931
  if (isEmptyValue) return null;
860
932
  if (dataType === "rawContent") {
861
- return /* @__PURE__ */ jsx21(
933
+ return /* @__PURE__ */ jsx22(
862
934
  PageBodyRenderer_default,
863
935
  {
864
936
  rawBody: String(value ?? `@databound[${fieldName}]`),
@@ -874,12 +946,12 @@ var DatafieldNode = (props) => {
874
946
  }
875
947
  );
876
948
  }
877
- return /* @__PURE__ */ jsx21(
949
+ return /* @__PURE__ */ jsx22(
878
950
  "span",
879
951
  {
880
952
  className: `datafield-node ${props.node.format < Formats.length ? Formats[props.node.format] : ""}`,
881
953
  style: styles,
882
- children: /* @__PURE__ */ jsx21(
954
+ children: /* @__PURE__ */ jsx22(
883
955
  ViewControl_default,
884
956
  {
885
957
  controlType: dataType,
@@ -892,7 +964,7 @@ var DatafieldNode = (props) => {
892
964
  var DatafieldNode_default = DatafieldNode;
893
965
 
894
966
  // src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
895
- import { Fragment as Fragment2, jsx as jsx22, jsxs as jsxs7 } from "react/jsx-runtime";
967
+ import { Fragment as Fragment2, jsx as jsx23, jsxs as jsxs7 } from "react/jsx-runtime";
896
968
  var ParagraphNode = (props) => {
897
969
  const NodeTypes2 = {
898
970
  ["text"]: TextNode_default,
@@ -912,9 +984,9 @@ var ParagraphNode = (props) => {
912
984
  const isInlineOnlyParent = props.parentTag === "summary";
913
985
  const hasChildren = props.node.children && props.node.children.length > 0;
914
986
  if (isInlineOnlyParent) {
915
- return /* @__PURE__ */ jsx22(Fragment2, { children: hasChildren && props.node.children.map((node, index) => {
987
+ return /* @__PURE__ */ jsx23(Fragment2, { children: hasChildren && props.node.children.map((node, index) => {
916
988
  const SelectedNode = NodeTypes2[node.type];
917
- return /* @__PURE__ */ jsx22(React15.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx22(
989
+ return /* @__PURE__ */ jsx23(React16.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx23(
918
990
  SelectedNode,
919
991
  {
920
992
  node,
@@ -929,7 +1001,7 @@ var ParagraphNode = (props) => {
929
1001
  return /* @__PURE__ */ jsxs7("div", { className: " " + formatClasses, children: [
930
1002
  hasChildren && props.node.children.map((node, index) => {
931
1003
  const SelectedNode = NodeTypes2[node.type];
932
- return /* @__PURE__ */ jsx22(React15.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx22(
1004
+ return /* @__PURE__ */ jsx23(React16.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx23(
933
1005
  SelectedNode,
934
1006
  {
935
1007
  node,
@@ -940,14 +1012,14 @@ var ParagraphNode = (props) => {
940
1012
  }
941
1013
  ) }, index);
942
1014
  }),
943
- !hasChildren && /* @__PURE__ */ jsx22("div", { className: "py-1.5 lg:py-2" })
1015
+ !hasChildren && /* @__PURE__ */ jsx23("div", { className: "py-1.5 lg:py-2" })
944
1016
  ] });
945
1017
  };
946
1018
  var ParagraphNode_default = ParagraphNode;
947
1019
 
948
1020
  // src/components/pageRenderingEngine/nodes/HeadingNode.tsx
949
- import React16 from "react";
950
- import { Fragment as Fragment3, jsx as jsx23 } from "react/jsx-runtime";
1021
+ import React17 from "react";
1022
+ import { Fragment as Fragment3, jsx as jsx24 } from "react/jsx-runtime";
951
1023
  var HeadingNode = (props) => {
952
1024
  const NodeTypes2 = {
953
1025
  ["text"]: TextNode_default,
@@ -963,23 +1035,23 @@ var HeadingNode = (props) => {
963
1035
  {
964
1036
  }
965
1037
  const formatClasses = FormatClass[props.node.format] || "";
966
- return /* @__PURE__ */ jsx23(Fragment3, { children: React16.createElement(
1038
+ return /* @__PURE__ */ jsx24(Fragment3, { children: React17.createElement(
967
1039
  HeadingTag,
968
1040
  { className: formatClasses },
969
1041
  props.node.children && props.node.children.map((childNode, index) => {
970
1042
  const SelectedNode = NodeTypes2[childNode.type];
971
- return /* @__PURE__ */ jsx23(React16.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx23(SelectedNode, { node: childNode, dataitem: props.dataitem, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
1043
+ return /* @__PURE__ */ jsx24(React17.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx24(SelectedNode, { node: childNode, dataitem: props.dataitem, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
972
1044
  })
973
1045
  ) });
974
1046
  };
975
1047
  var HeadingNode_default = HeadingNode;
976
1048
 
977
1049
  // src/components/pageRenderingEngine/nodes/ListNode.tsx
978
- import React18 from "react";
1050
+ import React19 from "react";
979
1051
 
980
1052
  // src/components/pageRenderingEngine/nodes/ListItemNode.tsx
981
- import React17 from "react";
982
- import { jsx as jsx24 } from "react/jsx-runtime";
1053
+ import React18 from "react";
1054
+ import { jsx as jsx25 } from "react/jsx-runtime";
983
1055
  var ListItemNode = (props) => {
984
1056
  const NodeTypes2 = {
985
1057
  text: TextNode_default,
@@ -996,66 +1068,66 @@ var ListItemNode = (props) => {
996
1068
  liStyle.fontSize = match[1].trim();
997
1069
  }
998
1070
  }
999
- return /* @__PURE__ */ jsx24("li", { style: liStyle, children: props.node.children && props.node.children.map((node, index) => {
1071
+ return /* @__PURE__ */ jsx25("li", { style: liStyle, children: props.node.children && props.node.children.map((node, index) => {
1000
1072
  const SelectedNode = NodeTypes2[node.type];
1001
1073
  if (node.type === "linebreak") {
1002
1074
  if (!foundFirstBreak) {
1003
1075
  foundFirstBreak = true;
1004
- return /* @__PURE__ */ jsx24("div", {}, index);
1076
+ return /* @__PURE__ */ jsx25("div", {}, index);
1005
1077
  } else {
1006
- return /* @__PURE__ */ jsx24("div", { className: "py-1 lg:py-2" }, index);
1078
+ return /* @__PURE__ */ jsx25("div", { className: "py-1 lg:py-2" }, index);
1007
1079
  }
1008
1080
  } else {
1009
1081
  foundFirstBreak = false;
1010
- return /* @__PURE__ */ jsx24(React17.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx24(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
1082
+ return /* @__PURE__ */ jsx25(React18.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx25(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
1011
1083
  }
1012
1084
  }) });
1013
1085
  };
1014
1086
  var ListItemNode_default = ListItemNode;
1015
1087
 
1016
1088
  // src/components/pageRenderingEngine/nodes/ListNode.tsx
1017
- import { jsx as jsx25, jsxs as jsxs8 } from "react/jsx-runtime";
1089
+ import { jsx as jsx26, jsxs as jsxs8 } from "react/jsx-runtime";
1018
1090
  var ListNode = (props) => {
1019
1091
  const NodeTypes2 = {
1020
1092
  listitem: ListItemNode_default
1021
1093
  };
1022
- return /* @__PURE__ */ jsxs8(React18.Fragment, { children: [
1023
- props.node.listType == "bullet" && /* @__PURE__ */ jsx25("ul", { children: props.node.children && props.node.children.map((node, index) => {
1094
+ return /* @__PURE__ */ jsxs8(React19.Fragment, { children: [
1095
+ props.node.listType == "bullet" && /* @__PURE__ */ jsx26("ul", { children: props.node.children && props.node.children.map((node, index) => {
1024
1096
  const SelectedNode = NodeTypes2[node.type];
1025
- return /* @__PURE__ */ jsx25(React18.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx25(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
1097
+ return /* @__PURE__ */ jsx26(React19.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx26(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
1026
1098
  }) }),
1027
- props.node.listType == "number" && /* @__PURE__ */ jsx25("ol", { children: props.node.children && props.node.children.map((node, index) => {
1099
+ props.node.listType == "number" && /* @__PURE__ */ jsx26("ol", { children: props.node.children && props.node.children.map((node, index) => {
1028
1100
  const SelectedNode = NodeTypes2[node.type];
1029
- return /* @__PURE__ */ jsx25(React18.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx25(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
1101
+ return /* @__PURE__ */ jsx26(React19.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx26(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
1030
1102
  }) })
1031
1103
  ] });
1032
1104
  };
1033
1105
  var ListNode_default = ListNode;
1034
1106
 
1035
1107
  // src/components/pageRenderingEngine/nodes/QuoteNode.tsx
1036
- import React19 from "react";
1037
- import { jsx as jsx26 } from "react/jsx-runtime";
1108
+ import React20 from "react";
1109
+ import { jsx as jsx27 } from "react/jsx-runtime";
1038
1110
  var QuoteNode = (props) => {
1039
1111
  const NodeTypes2 = {
1040
1112
  ["text"]: TextNode_default,
1041
1113
  ["linebreak"]: LineBreakNode_default,
1042
1114
  ["link"]: LinkNode_default
1043
1115
  };
1044
- return /* @__PURE__ */ jsx26("blockquote", { children: props.node.children && props.node.children.map((node, index) => {
1116
+ return /* @__PURE__ */ jsx27("blockquote", { children: props.node.children && props.node.children.map((node, index) => {
1045
1117
  const SelectedNode = NodeTypes2[node.type];
1046
- return /* @__PURE__ */ jsx26(React19.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx26(SelectedNode, { node, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
1118
+ return /* @__PURE__ */ jsx27(React20.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx27(SelectedNode, { node, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
1047
1119
  }) });
1048
1120
  };
1049
1121
  var QuoteNode_default = QuoteNode;
1050
1122
 
1051
1123
  // src/components/pageRenderingEngine/nodes/CodeNode.tsx
1052
- import React20 from "react";
1124
+ import React21 from "react";
1053
1125
  import dynamic7 from "next/dynamic";
1054
- import { jsx as jsx27, jsxs as jsxs9 } from "react/jsx-runtime";
1126
+ import { jsx as jsx28, jsxs as jsxs9 } from "react/jsx-runtime";
1055
1127
  var CopyButton = dynamic7(() => import("./CopyButton-UPJPMJUB.mjs"), {
1056
1128
  ssr: false,
1057
1129
  // optional: fallback UI while loading
1058
- loading: () => /* @__PURE__ */ jsx27("span", { className: "text-gray-400 text-xs", children: "Copy" })
1130
+ loading: () => /* @__PURE__ */ jsx28("span", { className: "text-gray-400 text-xs", children: "Copy" })
1059
1131
  });
1060
1132
  var CodeNode = (props) => {
1061
1133
  const NodeTypes2 = {
@@ -1071,12 +1143,12 @@ var CodeNode = (props) => {
1071
1143
  }).join("") ?? "";
1072
1144
  return /* @__PURE__ */ jsxs9("div", { children: [
1073
1145
  /* @__PURE__ */ jsxs9("div", { className: "flex items-center relative bg-neutral-strong px-4 py-3 text-xs font-sans justify-between rounded-t-md ", children: [
1074
- /* @__PURE__ */ jsx27("span", { children: "Code Snippet" }),
1075
- /* @__PURE__ */ jsx27(CopyButton, { text: textContent })
1146
+ /* @__PURE__ */ jsx28("span", { children: "Code Snippet" }),
1147
+ /* @__PURE__ */ jsx28(CopyButton, { text: textContent })
1076
1148
  ] }),
1077
- /* @__PURE__ */ jsx27("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) => {
1149
+ /* @__PURE__ */ jsx28("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) => {
1078
1150
  const SelectedNode = NodeTypes2[node.type];
1079
- return /* @__PURE__ */ jsx27(React20.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx27(
1151
+ return /* @__PURE__ */ jsx28(React21.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx28(
1080
1152
  SelectedNode,
1081
1153
  {
1082
1154
  node,
@@ -1091,15 +1163,15 @@ var CodeNode = (props) => {
1091
1163
  var CodeNode_default = CodeNode;
1092
1164
 
1093
1165
  // src/components/pageRenderingEngine/nodes/HorizontalRuleNode.tsx
1094
- import { jsx as jsx28 } from "react/jsx-runtime";
1166
+ import { jsx as jsx29 } from "react/jsx-runtime";
1095
1167
  var HorizontalRuleNode = () => {
1096
- return /* @__PURE__ */ jsx28("hr", {});
1168
+ return /* @__PURE__ */ jsx29("hr", {});
1097
1169
  };
1098
1170
  var HorizontalRuleNode_default = HorizontalRuleNode;
1099
1171
 
1100
1172
  // src/components/pageRenderingEngine/nodes/WidgetNode.tsx
1101
- import React21 from "react";
1102
- import { Fragment as Fragment4, jsx as jsx29 } from "react/jsx-runtime";
1173
+ import React22 from "react";
1174
+ import { Fragment as Fragment4, jsx as jsx30 } from "react/jsx-runtime";
1103
1175
  var WidgetNode = (props) => {
1104
1176
  const getWidgetParameters = () => {
1105
1177
  const widgetInputParameters = {
@@ -1163,7 +1235,7 @@ var WidgetNode = (props) => {
1163
1235
  };
1164
1236
  const widgetCode = props.node?.widgetCode;
1165
1237
  if (!widgetCode) {
1166
- return /* @__PURE__ */ jsx29(Fragment4, { children: "Invalid widget" });
1238
+ return /* @__PURE__ */ jsx30(Fragment4, { children: "Invalid widget" });
1167
1239
  }
1168
1240
  const widgetParams = getWidgetParameters();
1169
1241
  const WidgetRenderer = props.widgetRenderer;
@@ -1172,7 +1244,7 @@ var WidgetNode = (props) => {
1172
1244
  }
1173
1245
  return (
1174
1246
  // eslint-disable-next-line react-hooks/static-components
1175
- /* @__PURE__ */ jsx29(React21.Fragment, { children: /* @__PURE__ */ jsx29(
1247
+ /* @__PURE__ */ jsx30(React22.Fragment, { children: /* @__PURE__ */ jsx30(
1176
1248
  WidgetRenderer,
1177
1249
  {
1178
1250
  params: widgetParams,
@@ -1190,11 +1262,11 @@ var WidgetNode_default = WidgetNode;
1190
1262
 
1191
1263
  // src/components/pageRenderingEngine/nodes/DivContainer.tsx
1192
1264
  import dynamic10 from "next/dynamic";
1193
- import React22 from "react";
1265
+ import React23 from "react";
1194
1266
 
1195
1267
  // src/components/pageRenderingEngine/nodes/EmbedNode.tsx
1196
1268
  import dynamic8 from "next/dynamic";
1197
- import { jsx as jsx30 } from "react/jsx-runtime";
1269
+ import { jsx as jsx31 } from "react/jsx-runtime";
1198
1270
  var IframeClient = dynamic8(() => import("./IframeClient-RGJFZ5P2.mjs"), {
1199
1271
  ssr: false
1200
1272
  });
@@ -1207,7 +1279,7 @@ var EmbedNode = (props) => {
1207
1279
  } else {
1208
1280
  src = props.node.embedSrc;
1209
1281
  }
1210
- return /* @__PURE__ */ jsx30("div", { className: "aspect-video", children: src && /* @__PURE__ */ jsx30(IframeClient, { src }) });
1282
+ return /* @__PURE__ */ jsx31("div", { className: "aspect-video", children: src && /* @__PURE__ */ jsx31(IframeClient, { src }) });
1211
1283
  };
1212
1284
  var EmbedNode_default = EmbedNode;
1213
1285
 
@@ -1400,10 +1472,10 @@ var PathUtility = class {
1400
1472
  var PathUtility_default = new PathUtility();
1401
1473
 
1402
1474
  // src/components/NoDataFound.tsx
1403
- import { jsx as jsx31, jsxs as jsxs10 } from "react/jsx-runtime";
1475
+ import { jsx as jsx32, jsxs as jsxs10 } from "react/jsx-runtime";
1404
1476
  var NoDataFound = () => {
1405
1477
  return /* @__PURE__ */ jsxs10("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center bg-neutral-weak", children: [
1406
- /* @__PURE__ */ jsx31("div", { className: "mb-5", children: /* @__PURE__ */ jsx31("div", { className: "mx-auto w-20 h-20 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ jsx31(
1478
+ /* @__PURE__ */ jsx32("div", { className: "mb-5", children: /* @__PURE__ */ jsx32("div", { className: "mx-auto w-20 h-20 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ jsx32(
1407
1479
  "svg",
1408
1480
  {
1409
1481
  className: "w-10 h-10",
@@ -1411,7 +1483,7 @@ var NoDataFound = () => {
1411
1483
  stroke: "currentColor",
1412
1484
  viewBox: "0 0 24 24",
1413
1485
  xmlns: "http://www.w3.org/2000/svg",
1414
- children: /* @__PURE__ */ jsx31(
1486
+ children: /* @__PURE__ */ jsx32(
1415
1487
  "path",
1416
1488
  {
1417
1489
  strokeLinecap: "round",
@@ -1422,15 +1494,15 @@ var NoDataFound = () => {
1422
1494
  )
1423
1495
  }
1424
1496
  ) }) }),
1425
- /* @__PURE__ */ jsx31("h3", { className: "text-lg font-medium mb-2", children: "No data available" }),
1426
- /* @__PURE__ */ jsx31("p", { className: " max-w-sm mb-0", children: "No records found. Data may be empty or not available at the moment." })
1497
+ /* @__PURE__ */ jsx32("h3", { className: "text-lg font-medium mb-2", children: "No data available" }),
1498
+ /* @__PURE__ */ jsx32("p", { className: " max-w-sm mb-0", children: "No records found. Data may be empty or not available at the moment." })
1427
1499
  ] });
1428
1500
  };
1429
1501
  var NoDataFound_default = NoDataFound;
1430
1502
 
1431
1503
  // src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
1432
1504
  import dynamic9 from "next/dynamic";
1433
- import { Fragment as Fragment5, jsx as jsx32, jsxs as jsxs11 } from "react/jsx-runtime";
1505
+ import { Fragment as Fragment5, jsx as jsx33, jsxs as jsxs11 } from "react/jsx-runtime";
1434
1506
  var HlsPlayer3 = dynamic9(() => import("./HlsPlayer-IW52N5RG.mjs"), { ssr: false });
1435
1507
  var deviceToMediaQuery = (device) => {
1436
1508
  switch (device) {
@@ -1587,7 +1659,7 @@ var ImageGalleryNode = (props) => {
1587
1659
  };
1588
1660
  const formatClasses = FormatClass[props.node.format || ""] || "";
1589
1661
  return /* @__PURE__ */ jsxs11(Fragment5, { children: [
1590
- hlsSources.length > 0 && /* @__PURE__ */ jsx32(Fragment5, { children: /* @__PURE__ */ jsx32(
1662
+ hlsSources.length > 0 && /* @__PURE__ */ jsx33(Fragment5, { children: /* @__PURE__ */ jsx33(
1591
1663
  HlsPlayer3,
1592
1664
  {
1593
1665
  sources: hlsSources,
@@ -1602,7 +1674,7 @@ var ImageGalleryNode = (props) => {
1602
1674
  styles: hlsStyles
1603
1675
  }
1604
1676
  ) }),
1605
- (staticFallback || staticSources.length > 0) && /* @__PURE__ */ jsx32(Fragment5, { children: staticFallback ? /* @__PURE__ */ jsxs11("picture", { children: [
1677
+ (staticFallback || staticSources.length > 0) && /* @__PURE__ */ jsx33(Fragment5, { children: staticFallback ? /* @__PURE__ */ jsxs11("picture", { children: [
1606
1678
  DEVICE_ORDER.map((deviceKey) => {
1607
1679
  const match = staticSources.find(
1608
1680
  (img) => img.device === deviceKey
@@ -1618,7 +1690,7 @@ var ImageGalleryNode = (props) => {
1618
1690
  if (!srcUrl) {
1619
1691
  return null;
1620
1692
  }
1621
- return /* @__PURE__ */ jsx32(
1693
+ return /* @__PURE__ */ jsx33(
1622
1694
  "source",
1623
1695
  {
1624
1696
  media: deviceToMediaQuery(match.device),
@@ -1643,7 +1715,7 @@ var ImageGalleryNode = (props) => {
1643
1715
  if (img.borderRadius) {
1644
1716
  styles.borderRadius = img.borderRadius;
1645
1717
  }
1646
- return /* @__PURE__ */ jsx32(
1718
+ return /* @__PURE__ */ jsx33(
1647
1719
  "img",
1648
1720
  {
1649
1721
  loading: "lazy",
@@ -1658,7 +1730,7 @@ var ImageGalleryNode = (props) => {
1658
1730
  })()
1659
1731
  ] }) : (
1660
1732
  /* Case 2: Only device-specific images exist */
1661
- /* @__PURE__ */ jsx32(Fragment5, { children: staticSources.map((img, index) => {
1733
+ /* @__PURE__ */ jsx33(Fragment5, { children: staticSources.map((img, index) => {
1662
1734
  const resolved = resolveImage(img);
1663
1735
  const imageUrl = resolved?.imageUrl;
1664
1736
  if (!imageUrl) {
@@ -1685,7 +1757,7 @@ var ImageGalleryNode = (props) => {
1685
1757
  default:
1686
1758
  display = "block";
1687
1759
  }
1688
- return /* @__PURE__ */ jsx32(
1760
+ return /* @__PURE__ */ jsx33(
1689
1761
  "img",
1690
1762
  {
1691
1763
  loading: "lazy",
@@ -1825,7 +1897,7 @@ var shouldRenderContainer = (node, dataItem, session) => {
1825
1897
  };
1826
1898
 
1827
1899
  // src/components/pageRenderingEngine/nodes/DocumentNode.tsx
1828
- import { Fragment as Fragment6, jsx as jsx33, jsxs as jsxs12 } from "react/jsx-runtime";
1900
+ import { Fragment as Fragment6, jsx as jsx34, jsxs as jsxs12 } from "react/jsx-runtime";
1829
1901
  var getNestedValue5 = (obj, path) => {
1830
1902
  if (!obj || !path) return void 0;
1831
1903
  return path.split(".").reduce((current, key) => {
@@ -1839,14 +1911,14 @@ var PdfIcon = () => /* @__PURE__ */ jsxs12(
1839
1911
  viewBox: "0 0 48 48",
1840
1912
  className: "w-10 h-10",
1841
1913
  children: [
1842
- /* @__PURE__ */ jsx33(
1914
+ /* @__PURE__ */ jsx34(
1843
1915
  "path",
1844
1916
  {
1845
1917
  fill: "#e53935",
1846
1918
  d: "M38,42H10c-2.209,0-4-1.791-4-4V10c0-2.209,1.791-4,4-4h28c2.209,0,4,1.791,4,4v28 C42,40.209,40.209,42,38,42z"
1847
1919
  }
1848
1920
  ),
1849
- /* @__PURE__ */ jsx33(
1921
+ /* @__PURE__ */ jsx34(
1850
1922
  "path",
1851
1923
  {
1852
1924
  fill: "#fff",
@@ -1863,48 +1935,48 @@ var ExcelIcon = () => /* @__PURE__ */ jsxs12(
1863
1935
  viewBox: "0 0 48 48",
1864
1936
  className: "w-10 h-10",
1865
1937
  children: [
1866
- /* @__PURE__ */ jsx33(
1938
+ /* @__PURE__ */ jsx34(
1867
1939
  "path",
1868
1940
  {
1869
1941
  fill: "#169154",
1870
1942
  d: "M29,6H15.744C14.781,6,14,6.781,14,7.744v7.259h15V6z"
1871
1943
  }
1872
1944
  ),
1873
- /* @__PURE__ */ jsx33(
1945
+ /* @__PURE__ */ jsx34(
1874
1946
  "path",
1875
1947
  {
1876
1948
  fill: "#18482a",
1877
1949
  d: "M14,33.054v7.202C14,41.219,14.781,42,15.743,42H29v-8.946H14z"
1878
1950
  }
1879
1951
  ),
1880
- /* @__PURE__ */ jsx33("path", { fill: "#0c8045", d: "M14 15.003H29V24.005000000000003H14z" }),
1881
- /* @__PURE__ */ jsx33("path", { fill: "#17472a", d: "M14 24.005H29V33.055H14z" }),
1952
+ /* @__PURE__ */ jsx34("path", { fill: "#0c8045", d: "M14 15.003H29V24.005000000000003H14z" }),
1953
+ /* @__PURE__ */ jsx34("path", { fill: "#17472a", d: "M14 24.005H29V33.055H14z" }),
1882
1954
  /* @__PURE__ */ jsxs12("g", { children: [
1883
- /* @__PURE__ */ jsx33(
1955
+ /* @__PURE__ */ jsx34(
1884
1956
  "path",
1885
1957
  {
1886
1958
  fill: "#29c27f",
1887
1959
  d: "M42.256,6H29v9.003h15V7.744C44,6.781,43.219,6,42.256,6z"
1888
1960
  }
1889
1961
  ),
1890
- /* @__PURE__ */ jsx33(
1962
+ /* @__PURE__ */ jsx34(
1891
1963
  "path",
1892
1964
  {
1893
1965
  fill: "#27663f",
1894
1966
  d: "M29,33.054V42h13.257C43.219,42,44,41.219,44,40.257v-7.202H29z"
1895
1967
  }
1896
1968
  ),
1897
- /* @__PURE__ */ jsx33("path", { fill: "#19ac65", d: "M29 15.003H44V24.005000000000003H29z" }),
1898
- /* @__PURE__ */ jsx33("path", { fill: "#129652", d: "M29 24.005H44V33.055H29z" })
1969
+ /* @__PURE__ */ jsx34("path", { fill: "#19ac65", d: "M29 15.003H44V24.005000000000003H29z" }),
1970
+ /* @__PURE__ */ jsx34("path", { fill: "#129652", d: "M29 24.005H44V33.055H29z" })
1899
1971
  ] }),
1900
- /* @__PURE__ */ jsx33(
1972
+ /* @__PURE__ */ jsx34(
1901
1973
  "path",
1902
1974
  {
1903
1975
  fill: "#0c7238",
1904
1976
  d: "M22.319,34H5.681C4.753,34,4,33.247,4,32.319V15.681C4,14.753,4.753,14,5.681,14h16.638 C23.247,14,24,14.753,24,15.681v16.638C24,33.247,23.247,34,22.319,34z"
1905
1977
  }
1906
1978
  ),
1907
- /* @__PURE__ */ jsx33(
1979
+ /* @__PURE__ */ jsx34(
1908
1980
  "path",
1909
1981
  {
1910
1982
  fill: "#fff",
@@ -1922,7 +1994,7 @@ var WordIcon = () => /* @__PURE__ */ jsxs12(
1922
1994
  className: "w-10 h-10",
1923
1995
  baseProfile: "basic",
1924
1996
  children: [
1925
- /* @__PURE__ */ jsx33(
1997
+ /* @__PURE__ */ jsx34(
1926
1998
  "path",
1927
1999
  {
1928
2000
  fill: "#283593",
@@ -1940,19 +2012,19 @@ var WordIcon = () => /* @__PURE__ */ jsxs12(
1940
2012
  gradientTransform: "translate(0 -339.89)",
1941
2013
  gradientUnits: "userSpaceOnUse",
1942
2014
  children: [
1943
- /* @__PURE__ */ jsx33("stop", { offset: "0", "stop-color": "#66c0ff" }),
1944
- /* @__PURE__ */ jsx33("stop", { offset: ".26", "stop-color": "#0094f0" })
2015
+ /* @__PURE__ */ jsx34("stop", { offset: "0", "stop-color": "#66c0ff" }),
2016
+ /* @__PURE__ */ jsx34("stop", { offset: ".26", "stop-color": "#0094f0" })
1945
2017
  ]
1946
2018
  }
1947
2019
  ),
1948
- /* @__PURE__ */ jsx33(
2020
+ /* @__PURE__ */ jsx34(
1949
2021
  "path",
1950
2022
  {
1951
2023
  fill: "url(#qh2LT5tehRDFkLLfb-odWa)",
1952
2024
  d: "M9,20.208c0-2.624,2.126-4.75,4.749-4.75h21.857L41,12.778v13.527 C41,28.346,39.346,30,37.306,30H15.332C11.835,30,9,32.836,9,36.333L9,20.208L9,20.208z"
1953
2025
  }
1954
2026
  ),
1955
- /* @__PURE__ */ jsx33(
2027
+ /* @__PURE__ */ jsx34(
1956
2028
  "path",
1957
2029
  {
1958
2030
  fill: "#1e88e5",
@@ -1960,21 +2032,21 @@ var WordIcon = () => /* @__PURE__ */ jsxs12(
1960
2032
  d: "M9,20.208c0-2.624,2.126-4.75,4.749-4.75h21.857L41,12.778v13.527 C41,28.346,39.346,30,37.306,30H15.332C11.835,30,9,32.836,9,36.333L9,20.208L9,20.208z"
1961
2033
  }
1962
2034
  ),
1963
- /* @__PURE__ */ jsx33(
2035
+ /* @__PURE__ */ jsx34(
1964
2036
  "path",
1965
2037
  {
1966
2038
  fill: "#00e5ff",
1967
2039
  d: "M9,10.333C9,6.836,11.835,4,15.332,4h21.975C39.346,4,41,5.654,41,7.694v5.611 C41,15.346,39.346,17,37.306,17H15.332C11.835,17,9,19.836,9,23.333C9,23.333,9,10.333,9,10.333z"
1968
2040
  }
1969
2041
  ),
1970
- /* @__PURE__ */ jsx33(
2042
+ /* @__PURE__ */ jsx34(
1971
2043
  "path",
1972
2044
  {
1973
2045
  fill: "#1565c0",
1974
2046
  d: "M7.5,23h10c1.933,0,3.5,1.567,3.5,3.5v10c0,1.933-1.567,3.5-3.5,3.5h-10C5.567,40,4,38.433,4,36.5 v-10C4,24.567,5.567,23,7.5,23z"
1975
2047
  }
1976
2048
  ),
1977
- /* @__PURE__ */ jsx33(
2049
+ /* @__PURE__ */ jsx34(
1978
2050
  "path",
1979
2051
  {
1980
2052
  fill: "#fff",
@@ -1991,8 +2063,8 @@ var StandardIcon = () => /* @__PURE__ */ jsxs12(
1991
2063
  viewBox: "0 0 48 48",
1992
2064
  className: "w-10 h-10",
1993
2065
  children: [
1994
- /* @__PURE__ */ jsx33("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
1995
- /* @__PURE__ */ jsx33("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" })
2066
+ /* @__PURE__ */ jsx34("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
2067
+ /* @__PURE__ */ jsx34("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" })
1996
2068
  ]
1997
2069
  }
1998
2070
  );
@@ -2003,23 +2075,23 @@ var PowerPointIcon = () => /* @__PURE__ */ jsxs12(
2003
2075
  viewBox: "0 0 48 48",
2004
2076
  className: "w-10 h-10",
2005
2077
  children: [
2006
- /* @__PURE__ */ jsx33(
2078
+ /* @__PURE__ */ jsx34(
2007
2079
  "path",
2008
2080
  {
2009
2081
  fill: "#dc4c2c",
2010
2082
  d: "M8,24c0,9.941,8.059,18,18,18s18-8.059,18-18H26H8z"
2011
2083
  }
2012
2084
  ),
2013
- /* @__PURE__ */ jsx33("path", { fill: "#f7a278", d: "M26,6v18h18C44,14.059,35.941,6,26,6z" }),
2014
- /* @__PURE__ */ jsx33("path", { fill: "#c06346", d: "M26,6C16.059,6,8,14.059,8,24h18V6z" }),
2015
- /* @__PURE__ */ jsx33(
2085
+ /* @__PURE__ */ jsx34("path", { fill: "#f7a278", d: "M26,6v18h18C44,14.059,35.941,6,26,6z" }),
2086
+ /* @__PURE__ */ jsx34("path", { fill: "#c06346", d: "M26,6C16.059,6,8,14.059,8,24h18V6z" }),
2087
+ /* @__PURE__ */ jsx34(
2016
2088
  "path",
2017
2089
  {
2018
2090
  fill: "#9b341f",
2019
2091
  d: "M22.319,34H5.681C4.753,34,4,33.247,4,32.319V15.681C4,14.753,4.753,14,5.681,14h16.638 C23.247,14,24,14.753,24,15.681v16.638C24,33.247,23.247,34,22.319,34z"
2020
2092
  }
2021
2093
  ),
2022
- /* @__PURE__ */ jsx33(
2094
+ /* @__PURE__ */ jsx34(
2023
2095
  "path",
2024
2096
  {
2025
2097
  fill: "#fff",
@@ -2036,9 +2108,9 @@ var TextIcon = () => /* @__PURE__ */ jsxs12(
2036
2108
  viewBox: "0 0 48 48",
2037
2109
  className: "w-10 h-10",
2038
2110
  children: [
2039
- /* @__PURE__ */ jsx33("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
2040
- /* @__PURE__ */ jsx33("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" }),
2041
- /* @__PURE__ */ jsx33(
2111
+ /* @__PURE__ */ jsx34("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
2112
+ /* @__PURE__ */ jsx34("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" }),
2113
+ /* @__PURE__ */ jsx34(
2042
2114
  "path",
2043
2115
  {
2044
2116
  fill: "#1976D2",
@@ -2058,14 +2130,14 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs12(
2058
2130
  version: "1.0",
2059
2131
  className: "w-10 h-10",
2060
2132
  children: [
2061
- /* @__PURE__ */ jsx33("defs", { children: /* @__PURE__ */ jsx33("clipPath", { id: "273d29c8a6", children: /* @__PURE__ */ jsx33(
2133
+ /* @__PURE__ */ jsx34("defs", { children: /* @__PURE__ */ jsx34("clipPath", { id: "273d29c8a6", children: /* @__PURE__ */ jsx34(
2062
2134
  "path",
2063
2135
  {
2064
2136
  d: "M 8.90625 0 L 65.90625 0 L 65.90625 75 L 8.90625 75 Z M 8.90625 0 ",
2065
2137
  "clip-rule": "nonzero"
2066
2138
  }
2067
2139
  ) }) }),
2068
- /* @__PURE__ */ jsx33("g", { "clip-path": "url(#273d29c8a6)", children: /* @__PURE__ */ jsx33(
2140
+ /* @__PURE__ */ jsx34("g", { "clip-path": "url(#273d29c8a6)", children: /* @__PURE__ */ jsx34(
2069
2141
  "path",
2070
2142
  {
2071
2143
  fill: "#ff9100",
@@ -2074,7 +2146,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs12(
2074
2146
  "fill-rule": "nonzero"
2075
2147
  }
2076
2148
  ) }),
2077
- /* @__PURE__ */ jsx33(
2149
+ /* @__PURE__ */ jsx34(
2078
2150
  "path",
2079
2151
  {
2080
2152
  fill: "#fbe9e7",
@@ -2083,7 +2155,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs12(
2083
2155
  "fill-rule": "nonzero"
2084
2156
  }
2085
2157
  ),
2086
- /* @__PURE__ */ jsx33(
2158
+ /* @__PURE__ */ jsx34(
2087
2159
  "path",
2088
2160
  {
2089
2161
  fill: "#ffe0b2",
@@ -2092,7 +2164,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs12(
2092
2164
  "fill-rule": "nonzero"
2093
2165
  }
2094
2166
  ),
2095
- /* @__PURE__ */ jsx33(
2167
+ /* @__PURE__ */ jsx34(
2096
2168
  "path",
2097
2169
  {
2098
2170
  fill: "#ffe0b2",
@@ -2101,7 +2173,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs12(
2101
2173
  "fill-rule": "nonzero"
2102
2174
  }
2103
2175
  ),
2104
- /* @__PURE__ */ jsx33(
2176
+ /* @__PURE__ */ jsx34(
2105
2177
  "path",
2106
2178
  {
2107
2179
  fill: "#ffe0b2",
@@ -2177,8 +2249,8 @@ var DocumentNode = (props) => {
2177
2249
  }
2178
2250
  }
2179
2251
  if (documents.length === 0) {
2180
- return /* @__PURE__ */ jsx33(Fragment6, { children: /* @__PURE__ */ jsxs12("div", { className: "py-4 px-2 bg-neutral-weak border rounded text-center flex flex-col gap-2", children: [
2181
- /* @__PURE__ */ jsx33("div", { className: "mx-auto w-10 h-10 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ jsx33(
2252
+ return /* @__PURE__ */ jsx34(Fragment6, { children: /* @__PURE__ */ jsxs12("div", { className: "py-4 px-2 bg-neutral-weak border rounded text-center flex flex-col gap-2", children: [
2253
+ /* @__PURE__ */ jsx34("div", { className: "mx-auto w-10 h-10 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ jsx34(
2182
2254
  "svg",
2183
2255
  {
2184
2256
  className: "w-5 h-5",
@@ -2186,7 +2258,7 @@ var DocumentNode = (props) => {
2186
2258
  stroke: "currentColor",
2187
2259
  viewBox: "0 0 24 24",
2188
2260
  xmlns: "http://www.w3.org/2000/svg",
2189
- children: /* @__PURE__ */ jsx33(
2261
+ children: /* @__PURE__ */ jsx34(
2190
2262
  "path",
2191
2263
  {
2192
2264
  strokeLinecap: "round",
@@ -2197,11 +2269,11 @@ var DocumentNode = (props) => {
2197
2269
  )
2198
2270
  }
2199
2271
  ) }),
2200
- /* @__PURE__ */ jsx33("div", { className: "text-sm font-medium", children: "No documents found" }),
2201
- /* @__PURE__ */ jsx33("div", { className: "text-xs", children: "No records found. Data may be empty or not available at the moment." })
2272
+ /* @__PURE__ */ jsx34("div", { className: "text-sm font-medium", children: "No documents found" }),
2273
+ /* @__PURE__ */ jsx34("div", { className: "text-xs", children: "No records found. Data may be empty or not available at the moment." })
2202
2274
  ] }) });
2203
2275
  }
2204
- return /* @__PURE__ */ jsx33("div", { className: "", children: documents.map((doc, index) => {
2276
+ return /* @__PURE__ */ jsx34("div", { className: "", children: documents.map((doc, index) => {
2205
2277
  const documentUrl = AssetUtility_default.resolveUrl(
2206
2278
  props.assetBaseUrl,
2207
2279
  doc.assetUrl
@@ -2225,8 +2297,8 @@ var DocumentNode = (props) => {
2225
2297
  className: `flex items-center justify-between py-4 bg-default gap-4 ${index !== 0 ? "border-t" : ""}`,
2226
2298
  children: [
2227
2299
  /* @__PURE__ */ jsxs12("div", { className: "flex items-center space-x-4", children: [
2228
- /* @__PURE__ */ jsx33("div", { className: "flex items-center justify-center p-2 rounded bg-neutral-soft", children: /* @__PURE__ */ jsx33(Icon, {}) }),
2229
- /* @__PURE__ */ jsx33("div", { className: "flex items-baseline space-x-2", children: /* @__PURE__ */ jsx33("h4", { className: "text-base font-semibold", children: documentTitle }) })
2300
+ /* @__PURE__ */ jsx34("div", { className: "flex items-center justify-center p-2 rounded bg-neutral-soft", children: /* @__PURE__ */ jsx34(Icon, {}) }),
2301
+ /* @__PURE__ */ jsx34("div", { className: "flex items-baseline space-x-2", children: /* @__PURE__ */ jsx34("h4", { className: "text-base font-semibold", children: documentTitle }) })
2230
2302
  ] }),
2231
2303
  /* @__PURE__ */ jsxs12(
2232
2304
  "a",
@@ -2244,7 +2316,7 @@ var DocumentNode = (props) => {
2244
2316
  stroke: "currentColor",
2245
2317
  viewBox: "0 0 24 24",
2246
2318
  children: [
2247
- /* @__PURE__ */ jsx33(
2319
+ /* @__PURE__ */ jsx34(
2248
2320
  "path",
2249
2321
  {
2250
2322
  strokeLinecap: "round",
@@ -2253,7 +2325,7 @@ var DocumentNode = (props) => {
2253
2325
  d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"
2254
2326
  }
2255
2327
  ),
2256
- /* @__PURE__ */ jsx33(
2328
+ /* @__PURE__ */ jsx34(
2257
2329
  "path",
2258
2330
  {
2259
2331
  strokeLinecap: "round",
@@ -2278,7 +2350,7 @@ var DocumentNode = (props) => {
2278
2350
  var DocumentNode_default = DocumentNode;
2279
2351
 
2280
2352
  // src/components/pageRenderingEngine/nodes/DivContainer.tsx
2281
- import { jsx as jsx34, jsxs as jsxs13 } from "react/jsx-runtime";
2353
+ import { jsx as jsx35, jsxs as jsxs13 } from "react/jsx-runtime";
2282
2354
  var Pagination = dynamic10(() => import("./Pagination-YKNCYVXV.mjs"), { ssr: true });
2283
2355
  var Slider = dynamic10(() => import("./Slider-554BKC7N.mjs"), {
2284
2356
  ssr: false
@@ -2533,7 +2605,7 @@ var DivContainer = async (props) => {
2533
2605
  response = await serviceClient.get(endpoint);
2534
2606
  result = response?.result;
2535
2607
  if (dataBindingProperties.showNoResultsMessage && (result === void 0 || result.length == 0)) {
2536
- return /* @__PURE__ */ jsx34(NoDataFound_default, {});
2608
+ return /* @__PURE__ */ jsx35(NoDataFound_default, {});
2537
2609
  }
2538
2610
  if (dataBindingProperties.childCollectionName && props.dataitem) {
2539
2611
  childCollectionData = getNestedValue6(
@@ -2553,7 +2625,7 @@ var DivContainer = async (props) => {
2553
2625
  }
2554
2626
  const SelectedNode = NodeTypes2[node.type];
2555
2627
  if (!SelectedNode) return null;
2556
- return /* @__PURE__ */ jsx34(React22.Fragment, { children: /* @__PURE__ */ jsx34(
2628
+ return /* @__PURE__ */ jsx35(React23.Fragment, { children: /* @__PURE__ */ jsx35(
2557
2629
  SelectedNode,
2558
2630
  {
2559
2631
  node,
@@ -2686,14 +2758,14 @@ var DivContainer = async (props) => {
2686
2758
  noLinkColor && "no-link-color",
2687
2759
  !!props.node.enterAnimation && "enter-animation"
2688
2760
  ].filter(Boolean).join(" ");
2689
- return /* @__PURE__ */ jsxs13(React22.Fragment, { children: [
2690
- /* @__PURE__ */ jsx34(
2761
+ return /* @__PURE__ */ jsxs13(React23.Fragment, { children: [
2762
+ /* @__PURE__ */ jsx35(
2691
2763
  "style",
2692
2764
  {
2693
2765
  dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS }
2694
2766
  }
2695
2767
  ),
2696
- /* @__PURE__ */ jsx34(
2768
+ /* @__PURE__ */ jsx35(
2697
2769
  Wrapper,
2698
2770
  {
2699
2771
  id: guid,
@@ -2707,11 +2779,11 @@ var DivContainer = async (props) => {
2707
2779
  item,
2708
2780
  idx,
2709
2781
  props.href ? void 0 : item?.links?.view
2710
- )?.map((child, i) => /* @__PURE__ */ jsx34(React22.Fragment, { children: child }, i)) : renderChildren(props.node.children, props, item, idx)
2782
+ )?.map((child, i) => /* @__PURE__ */ jsx35(React23.Fragment, { children: child }, i)) : renderChildren(props.node.children, props, item, idx)
2711
2783
  )
2712
2784
  }
2713
2785
  ),
2714
- dataBindingProperties && props.node.dataBinding.enablePagination && /* @__PURE__ */ jsx34("div", { children: /* @__PURE__ */ jsx34(
2786
+ dataBindingProperties && props.node.dataBinding.enablePagination && /* @__PURE__ */ jsx35("div", { children: /* @__PURE__ */ jsx35(
2715
2787
  Pagination,
2716
2788
  {
2717
2789
  path: props.path,
@@ -2724,7 +2796,7 @@ var DivContainer = async (props) => {
2724
2796
  var DivContainer_default = DivContainer;
2725
2797
 
2726
2798
  // src/components/pageRenderingEngine/PageBodyRenderer.tsx
2727
- import { jsx as jsx35 } from "react/jsx-runtime";
2799
+ import { jsx as jsx36 } from "react/jsx-runtime";
2728
2800
  var NodeTypes = {
2729
2801
  ["paragraph"]: ParagraphNode_default,
2730
2802
  ["heading"]: HeadingNode_default,
@@ -2761,14 +2833,14 @@ var PageBodyRenderer = (props) => {
2761
2833
  }
2762
2834
  return true;
2763
2835
  };
2764
- return /* @__PURE__ */ jsx35(React23.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
2836
+ return /* @__PURE__ */ jsx36(React24.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
2765
2837
  {
2766
2838
  }
2767
2839
  const SelectedNode = NodeTypes[node.type];
2768
2840
  if (!shouldRenderNode(node)) {
2769
2841
  return null;
2770
2842
  }
2771
- return /* @__PURE__ */ jsx35(React23.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx35(React23.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ jsx35(React23.Fragment, { children: /* @__PURE__ */ jsx35(
2843
+ return /* @__PURE__ */ jsx36(React24.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx36(React24.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ jsx36(React24.Fragment, { children: /* @__PURE__ */ jsx36(
2772
2844
  SelectedNode,
2773
2845
  {
2774
2846
  node,
@@ -2784,7 +2856,7 @@ var PageBodyRenderer = (props) => {
2784
2856
  device: props.device,
2785
2857
  widgetRenderer: props.widgetRenderer
2786
2858
  }
2787
- ) }) : /* @__PURE__ */ jsx35(React23.Fragment, { children: /* @__PURE__ */ jsx35(
2859
+ ) }) : /* @__PURE__ */ jsx36(React24.Fragment, { children: /* @__PURE__ */ jsx36(
2788
2860
  SelectedNode,
2789
2861
  {
2790
2862
  node,
@@ -2805,10 +2877,10 @@ var PageBodyRenderer = (props) => {
2805
2877
  var PageBodyRenderer_default = PageBodyRenderer;
2806
2878
 
2807
2879
  // src/components/pageRenderingEngine/EnterAnimationHydrator.tsx
2808
- import { useEffect } from "react";
2880
+ import { useEffect as useEffect2 } from "react";
2809
2881
  var ENTER_ANIMATION_SELECTOR = ".enter-animation";
2810
2882
  function EnterAnimationHydrator() {
2811
- useEffect(() => {
2883
+ useEffect2(() => {
2812
2884
  let observer;
2813
2885
  const observedElements = /* @__PURE__ */ new WeakSet();
2814
2886
  const revealAnimatedElements = () => {
@@ -2853,12 +2925,12 @@ function EnterAnimationHydrator() {
2853
2925
  }
2854
2926
 
2855
2927
  // src/components/Toast.tsx
2856
- import { useCallback, useEffect as useEffect2, useRef, useState } from "react";
2857
- import { Fragment as Fragment7, jsx as jsx36, jsxs as jsxs14 } from "react/jsx-runtime";
2928
+ import { useCallback, useEffect as useEffect3, useRef, useState as useState2 } from "react";
2929
+ import { Fragment as Fragment7, jsx as jsx37, jsxs as jsxs14 } from "react/jsx-runtime";
2858
2930
  var Toast = () => {
2859
- const [showToast, setShowToast] = useState(false);
2860
- const [message, setMessage] = useState("");
2861
- const [messageType, setMessageType] = useState("error");
2931
+ const [showToast, setShowToast] = useState2(false);
2932
+ const [message, setMessage] = useState2("");
2933
+ const [messageType, setMessageType] = useState2("error");
2862
2934
  const timeoutRef = useRef(null);
2863
2935
  const closeToast = useCallback(() => {
2864
2936
  if (timeoutRef.current) {
@@ -2879,7 +2951,7 @@ var Toast = () => {
2879
2951
  timeoutRef.current = null;
2880
2952
  }, 4e3);
2881
2953
  }, []);
2882
- useEffect2(() => {
2954
+ useEffect3(() => {
2883
2955
  ToastService_default.initialize(showMessage, closeToast);
2884
2956
  return () => {
2885
2957
  closeToast();
@@ -2888,8 +2960,8 @@ var Toast = () => {
2888
2960
  });
2889
2961
  };
2890
2962
  }, [closeToast, showMessage]);
2891
- return /* @__PURE__ */ jsx36(Fragment7, { children: showToast && /* @__PURE__ */ jsx36("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__ */ jsxs14("div", { className: `w-full items-center flex justify-between p-3 rounded-md relative shadow border bg-${messageType}-soft`, children: [
2892
- /* @__PURE__ */ jsx36(
2963
+ return /* @__PURE__ */ jsx37(Fragment7, { children: showToast && /* @__PURE__ */ jsx37("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__ */ jsxs14("div", { className: `w-full items-center flex justify-between p-3 rounded-md relative shadow border bg-${messageType}-soft`, children: [
2964
+ /* @__PURE__ */ jsx37(
2893
2965
  "span",
2894
2966
  {
2895
2967
  className: "font-medium text-inherit text-sm",
@@ -2897,7 +2969,7 @@ var Toast = () => {
2897
2969
  children: message
2898
2970
  }
2899
2971
  ),
2900
- /* @__PURE__ */ jsx36("button", { className: "absolute right-2 top-2 ml-2 focus:outline-none", onClick: closeToast, children: /* @__PURE__ */ jsx36(
2972
+ /* @__PURE__ */ jsx37("button", { className: "absolute right-2 top-2 ml-2 focus:outline-none", onClick: closeToast, children: /* @__PURE__ */ jsx37(
2901
2973
  "svg",
2902
2974
  {
2903
2975
  xmlns: "http://www.w3.org/2000/svg",
@@ -2905,7 +2977,7 @@ var Toast = () => {
2905
2977
  fill: "none",
2906
2978
  viewBox: "0 0 24 24",
2907
2979
  stroke: "currentColor",
2908
- children: /* @__PURE__ */ jsx36("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M6 18L18 6M6 6l12 12" })
2980
+ children: /* @__PURE__ */ jsx37("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M6 18L18 6M6 6l12 12" })
2909
2981
  }
2910
2982
  ) })
2911
2983
  ] }) }) });
@@ -2915,7 +2987,7 @@ var Toast_default = Toast;
2915
2987
  // src/components/NavigationTabsV2.tsx
2916
2988
  import Link2 from "next/link";
2917
2989
  import { usePathname } from "next/navigation";
2918
- import { jsx as jsx37 } from "react/jsx-runtime";
2990
+ import { jsx as jsx38 } from "react/jsx-runtime";
2919
2991
  function resolveRoutePlaceholders(route, params) {
2920
2992
  return route.replace(/\{([^}]+)\}/g, (match, key) => {
2921
2993
  const value = params[key];
@@ -2940,8 +3012,8 @@ var NavigationTabsV2 = ({ tabs, params = {} }) => {
2940
3012
  isActive: tab.isActive
2941
3013
  })) || [];
2942
3014
  if (mappedTabs.length === 0) return null;
2943
- return /* @__PURE__ */ jsx37("div", { className: "flex border-b bg-white rounded-t mb-3", children: mappedTabs.map(({ tabTitle, landingPageUrl, isActive }) => {
2944
- return /* @__PURE__ */ jsx37(Link2, { href: landingPageUrl, className: "-mb-px", children: /* @__PURE__ */ jsx37(
3015
+ return /* @__PURE__ */ jsx38("div", { className: "flex border-b bg-white rounded-t mb-3", children: mappedTabs.map(({ tabTitle, landingPageUrl, isActive }) => {
3016
+ return /* @__PURE__ */ jsx38(Link2, { href: landingPageUrl, className: "-mb-px", children: /* @__PURE__ */ jsx38(
2945
3017
  "div",
2946
3018
  {
2947
3019
  className: `text-sm font-medium border-b-2 px-6 py-2 transition
@@ -2954,51 +3026,51 @@ var NavigationTabsV2 = ({ tabs, params = {} }) => {
2954
3026
  var NavigationTabsV2_default = NavigationTabsV2;
2955
3027
 
2956
3028
  // src/components/dataForm/DataList.tsx
2957
- import React27, { useEffect as useEffect3, useState as useState2, useCallback as useCallback2, useReducer } from "react";
3029
+ import React28, { useEffect as useEffect4, useState as useState3, useCallback as useCallback2, useReducer } from "react";
2958
3030
  import { useRouter } from "next/navigation";
2959
3031
 
2960
3032
  // src/components/dataForm/NoContentView.tsx
2961
- import React25 from "react";
2962
- import { jsx as jsx38 } from "react/jsx-runtime";
3033
+ import React26 from "react";
3034
+ import { jsx as jsx39 } from "react/jsx-runtime";
2963
3035
  var NoContentView = (props) => {
2964
- return /* @__PURE__ */ jsx38(React25.Fragment, { children: props.isDataFound === false && props.children });
3036
+ return /* @__PURE__ */ jsx39(React26.Fragment, { children: props.isDataFound === false && props.children });
2965
3037
  };
2966
3038
  var NoContentView_default = NoContentView;
2967
3039
 
2968
3040
  // src/components/dataForm/ContentView.tsx
2969
- import React26 from "react";
2970
- import { jsx as jsx39, jsxs as jsxs15 } from "react/jsx-runtime";
3041
+ import React27 from "react";
3042
+ import { jsx as jsx40, jsxs as jsxs15 } from "react/jsx-runtime";
2971
3043
  var ContentView = (props) => {
2972
- return /* @__PURE__ */ jsxs15(React26.Fragment, { children: [
2973
- props.isDataFound == null && /* @__PURE__ */ jsx39("div", { className: "", children: /* @__PURE__ */ jsxs15("div", { className: "bg-gray-200 rounded-md p-4 animate-pulse", children: [
3044
+ return /* @__PURE__ */ jsxs15(React27.Fragment, { children: [
3045
+ props.isDataFound == null && /* @__PURE__ */ jsx40("div", { className: "", children: /* @__PURE__ */ jsxs15("div", { className: "bg-gray-200 rounded-md p-4 animate-pulse", children: [
2974
3046
  /* @__PURE__ */ jsxs15("div", { className: "flex items-center mb-4", children: [
2975
- /* @__PURE__ */ jsx39("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
3047
+ /* @__PURE__ */ jsx40("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
2976
3048
  /* @__PURE__ */ jsxs15("div", { className: "ml-2", children: [
2977
- /* @__PURE__ */ jsx39("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
2978
- /* @__PURE__ */ jsx39("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
3049
+ /* @__PURE__ */ jsx40("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
3050
+ /* @__PURE__ */ jsx40("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
2979
3051
  ] })
2980
3052
  ] }),
2981
3053
  /* @__PURE__ */ jsxs15("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
2982
3054
  /* @__PURE__ */ jsxs15("div", { className: "animate-pulse", children: [
2983
- /* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
2984
- /* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
2985
- /* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
2986
- /* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
2987
- /* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
3055
+ /* @__PURE__ */ jsx40("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
3056
+ /* @__PURE__ */ jsx40("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
3057
+ /* @__PURE__ */ jsx40("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
3058
+ /* @__PURE__ */ jsx40("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
3059
+ /* @__PURE__ */ jsx40("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
2988
3060
  ] }),
2989
3061
  /* @__PURE__ */ jsxs15("div", { className: "animate-pulse", children: [
2990
- /* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
2991
- /* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
2992
- /* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
2993
- /* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
2994
- /* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
3062
+ /* @__PURE__ */ jsx40("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
3063
+ /* @__PURE__ */ jsx40("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
3064
+ /* @__PURE__ */ jsx40("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
3065
+ /* @__PURE__ */ jsx40("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
3066
+ /* @__PURE__ */ jsx40("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
2995
3067
  ] }),
2996
3068
  /* @__PURE__ */ jsxs15("div", { className: "animate-pulse", children: [
2997
- /* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
2998
- /* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
2999
- /* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
3000
- /* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
3001
- /* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
3069
+ /* @__PURE__ */ jsx40("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
3070
+ /* @__PURE__ */ jsx40("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
3071
+ /* @__PURE__ */ jsx40("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
3072
+ /* @__PURE__ */ jsx40("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
3073
+ /* @__PURE__ */ jsx40("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
3002
3074
  ] })
3003
3075
  ] })
3004
3076
  ] }) }),
@@ -3052,7 +3124,7 @@ function FormReducer(state, action) {
3052
3124
  var FormReducer_default = FormReducer;
3053
3125
 
3054
3126
  // src/components/dataForm/DataList.tsx
3055
- import { Fragment as Fragment8, jsx as jsx40, jsxs as jsxs16 } from "react/jsx-runtime";
3127
+ import { Fragment as Fragment8, jsx as jsx41, jsxs as jsxs16 } from "react/jsx-runtime";
3056
3128
  var DataList = (props) => {
3057
3129
  const router = useRouter();
3058
3130
  let builder = new OdataBuilder(props.path);
@@ -3060,9 +3132,9 @@ var DataList = (props) => {
3060
3132
  let activePageNumber = 0;
3061
3133
  let pages = 0;
3062
3134
  console.log(props.addLinkText);
3063
- const [isDataFound, setIsDataFound] = useState2(null);
3064
- const [searchTerm, setSearchTerm] = useState2(props.query?.searchTerm ?? "");
3065
- useEffect3(() => {
3135
+ const [isDataFound, setIsDataFound] = useState3(null);
3136
+ const [searchTerm, setSearchTerm] = useState3(props.query?.searchTerm ?? "");
3137
+ useEffect4(() => {
3066
3138
  if (props?.dataset) {
3067
3139
  if (props?.dataset.result && props.dataset.result.length > 0) {
3068
3140
  setIsDataFound(true);
@@ -3071,7 +3143,7 @@ var DataList = (props) => {
3071
3143
  }
3072
3144
  }
3073
3145
  }, [props.dataset]);
3074
- useEffect3(() => {
3146
+ useEffect4(() => {
3075
3147
  if (!props.query?.["$filter"] || !props.filters) return;
3076
3148
  const filterQuery = props.query["$filter"];
3077
3149
  props.filters.forEach((filter) => {
@@ -3090,7 +3162,7 @@ var DataList = (props) => {
3090
3162
  if (path.includes(".")) {
3091
3163
  return path.split(".").reduce((prev, curr) => prev ? prev[curr] : null, obj);
3092
3164
  } else if (Array.isArray(obj[path])) {
3093
- return obj[path].map((item, index) => /* @__PURE__ */ jsx40("div", { children: item }, index));
3165
+ return obj[path].map((item, index) => /* @__PURE__ */ jsx41("div", { children: item }, index));
3094
3166
  } else {
3095
3167
  return obj[path];
3096
3168
  }
@@ -3134,7 +3206,7 @@ var DataList = (props) => {
3134
3206
  },
3135
3207
  [dispatch, props, router]
3136
3208
  );
3137
- useEffect3(() => {
3209
+ useEffect4(() => {
3138
3210
  if (!props.columns.some((col) => col.isSearchable)) {
3139
3211
  return;
3140
3212
  }
@@ -3169,30 +3241,30 @@ var DataList = (props) => {
3169
3241
  const renderPageNumbers = () => {
3170
3242
  if (pages <= 10) {
3171
3243
  return Array.from({ length: pages }, (_, index) => index + 1).map(
3172
- (page) => /* @__PURE__ */ jsx40(React27.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx40(
3244
+ (page) => /* @__PURE__ */ jsx41(React28.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx41(
3173
3245
  Hyperlink,
3174
3246
  {
3175
3247
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
3176
3248
  href: builder.getNewPageUrl(page),
3177
3249
  children: page
3178
3250
  }
3179
- ) : /* @__PURE__ */ jsx40("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)
3251
+ ) : /* @__PURE__ */ jsx41("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)
3180
3252
  );
3181
3253
  } else {
3182
3254
  const showFirstPages = activePageNumber <= 5;
3183
3255
  const showLastPages = activePageNumber > pages - 5;
3184
3256
  if (showFirstPages) {
3185
3257
  return /* @__PURE__ */ jsxs16(Fragment8, { children: [
3186
- Array.from({ length: 8 }, (_, index) => index + 1).map((page) => /* @__PURE__ */ jsx40(React27.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx40(
3258
+ Array.from({ length: 8 }, (_, index) => index + 1).map((page) => /* @__PURE__ */ jsx41(React28.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx41(
3187
3259
  Hyperlink,
3188
3260
  {
3189
3261
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
3190
3262
  href: builder.getNewPageUrl(page),
3191
3263
  children: page
3192
3264
  }
3193
- ) : /* @__PURE__ */ jsx40("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)),
3194
- /* @__PURE__ */ jsx40("span", { className: "px-2 py-1", children: "..." }),
3195
- /* @__PURE__ */ jsx40(
3265
+ ) : /* @__PURE__ */ jsx41("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)),
3266
+ /* @__PURE__ */ jsx41("span", { className: "px-2 py-1", children: "..." }),
3267
+ /* @__PURE__ */ jsx41(
3196
3268
  Hyperlink,
3197
3269
  {
3198
3270
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -3200,7 +3272,7 @@ var DataList = (props) => {
3200
3272
  children: pages - 1
3201
3273
  }
3202
3274
  ),
3203
- /* @__PURE__ */ jsx40(
3275
+ /* @__PURE__ */ jsx41(
3204
3276
  Hyperlink,
3205
3277
  {
3206
3278
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -3208,7 +3280,7 @@ var DataList = (props) => {
3208
3280
  children: pages
3209
3281
  }
3210
3282
  ),
3211
- /* @__PURE__ */ jsx40("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs16(
3283
+ /* @__PURE__ */ jsx41("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs16(
3212
3284
  "select",
3213
3285
  {
3214
3286
  className: " py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
@@ -3220,18 +3292,18 @@ var DataList = (props) => {
3220
3292
  }
3221
3293
  },
3222
3294
  children: [
3223
- /* @__PURE__ */ jsx40("option", { className: "", value: "", children: "Jump to" }),
3295
+ /* @__PURE__ */ jsx41("option", { className: "", value: "", children: "Jump to" }),
3224
3296
  Array.from(
3225
3297
  { length: Math.max(0, pages - 10) },
3226
3298
  (_, index) => index + 9
3227
- ).map((page) => /* @__PURE__ */ jsx40("option", { value: page, children: page }, page))
3299
+ ).map((page) => /* @__PURE__ */ jsx41("option", { value: page, children: page }, page))
3228
3300
  ]
3229
3301
  }
3230
3302
  ) })
3231
3303
  ] });
3232
3304
  } else if (showLastPages) {
3233
3305
  return /* @__PURE__ */ jsxs16(Fragment8, { children: [
3234
- /* @__PURE__ */ jsx40(
3306
+ /* @__PURE__ */ jsx41(
3235
3307
  Hyperlink,
3236
3308
  {
3237
3309
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -3239,7 +3311,7 @@ var DataList = (props) => {
3239
3311
  children: "1"
3240
3312
  }
3241
3313
  ),
3242
- /* @__PURE__ */ jsx40(
3314
+ /* @__PURE__ */ jsx41(
3243
3315
  Hyperlink,
3244
3316
  {
3245
3317
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -3247,21 +3319,21 @@ var DataList = (props) => {
3247
3319
  children: "2"
3248
3320
  }
3249
3321
  ),
3250
- /* @__PURE__ */ jsx40("span", { className: "px-2 py-1", children: "..." }),
3322
+ /* @__PURE__ */ jsx41("span", { className: "px-2 py-1", children: "..." }),
3251
3323
  Array.from({ length: 8 }, (_, index) => pages - 7 + index).map(
3252
- (page) => /* @__PURE__ */ jsx40(React27.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx40(
3324
+ (page) => /* @__PURE__ */ jsx41(React28.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx41(
3253
3325
  Hyperlink,
3254
3326
  {
3255
3327
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
3256
3328
  href: builder.getNewPageUrl(page),
3257
3329
  children: page
3258
3330
  }
3259
- ) : /* @__PURE__ */ jsx40("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)
3331
+ ) : /* @__PURE__ */ jsx41("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)
3260
3332
  )
3261
3333
  ] });
3262
3334
  } else {
3263
3335
  return /* @__PURE__ */ jsxs16(Fragment8, { children: [
3264
- /* @__PURE__ */ jsx40(
3336
+ /* @__PURE__ */ jsx41(
3265
3337
  Hyperlink,
3266
3338
  {
3267
3339
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -3269,7 +3341,7 @@ var DataList = (props) => {
3269
3341
  children: "1"
3270
3342
  }
3271
3343
  ),
3272
- /* @__PURE__ */ jsx40(
3344
+ /* @__PURE__ */ jsx41(
3273
3345
  Hyperlink,
3274
3346
  {
3275
3347
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -3277,20 +3349,20 @@ var DataList = (props) => {
3277
3349
  children: "2"
3278
3350
  }
3279
3351
  ),
3280
- /* @__PURE__ */ jsx40("span", { className: "px-2 py-1", children: "..." }),
3352
+ /* @__PURE__ */ jsx41("span", { className: "px-2 py-1", children: "..." }),
3281
3353
  Array.from(
3282
3354
  { length: 5 },
3283
3355
  (_, index) => activePageNumber - 2 + index
3284
- ).map((page) => /* @__PURE__ */ jsx40(React27.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx40(
3356
+ ).map((page) => /* @__PURE__ */ jsx41(React28.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx41(
3285
3357
  Hyperlink,
3286
3358
  {
3287
3359
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
3288
3360
  href: builder.getNewPageUrl(page),
3289
3361
  children: page
3290
3362
  }
3291
- ) : /* @__PURE__ */ jsx40("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)),
3292
- /* @__PURE__ */ jsx40("span", { className: "px-2 py-1", children: "..." }),
3293
- /* @__PURE__ */ jsx40(
3363
+ ) : /* @__PURE__ */ jsx41("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)),
3364
+ /* @__PURE__ */ jsx41("span", { className: "px-2 py-1", children: "..." }),
3365
+ /* @__PURE__ */ jsx41(
3294
3366
  Hyperlink,
3295
3367
  {
3296
3368
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -3298,7 +3370,7 @@ var DataList = (props) => {
3298
3370
  children: pages - 1
3299
3371
  }
3300
3372
  ),
3301
- /* @__PURE__ */ jsx40(
3373
+ /* @__PURE__ */ jsx41(
3302
3374
  Hyperlink,
3303
3375
  {
3304
3376
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -3306,7 +3378,7 @@ var DataList = (props) => {
3306
3378
  children: pages
3307
3379
  }
3308
3380
  ),
3309
- /* @__PURE__ */ jsx40("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs16(
3381
+ /* @__PURE__ */ jsx41("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs16(
3310
3382
  "select",
3311
3383
  {
3312
3384
  className: "px-2 py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
@@ -3318,8 +3390,8 @@ var DataList = (props) => {
3318
3390
  }
3319
3391
  },
3320
3392
  children: [
3321
- /* @__PURE__ */ jsx40("option", { value: "", children: "Jump to" }),
3322
- Array.from({ length: pages - 4 }, (_, index) => index + 3).filter((page) => page > 2 && page < pages - 1).map((page) => /* @__PURE__ */ jsx40("option", { value: page, children: page }, page))
3393
+ /* @__PURE__ */ jsx41("option", { value: "", children: "Jump to" }),
3394
+ Array.from({ length: pages - 4 }, (_, index) => index + 3).filter((page) => page > 2 && page < pages - 1).map((page) => /* @__PURE__ */ jsx41("option", { value: page, children: page }, page))
3323
3395
  ]
3324
3396
  }
3325
3397
  ) })
@@ -3327,16 +3399,16 @@ var DataList = (props) => {
3327
3399
  }
3328
3400
  }
3329
3401
  };
3330
- return /* @__PURE__ */ jsxs16(React27.Fragment, { children: [
3402
+ return /* @__PURE__ */ jsxs16(React28.Fragment, { children: [
3331
3403
  /* @__PURE__ */ jsxs16(ContentView_default, { isDataFound, children: [
3332
3404
  (props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ jsxs16(
3333
3405
  "div",
3334
3406
  {
3335
3407
  className: `flex justify-between items-center bg-white pl-6 pr-2 h-14 mb-3 shadow-sm rounded-md sticky top-0`,
3336
3408
  children: [
3337
- props.title ? /* @__PURE__ */ jsx40("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ jsx40("h2", { className: "text-lg font-semibold text-black-800", children: props.title }) }) : /* @__PURE__ */ jsx40("div", {}),
3409
+ props.title ? /* @__PURE__ */ jsx41("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ jsx41("h2", { className: "text-lg font-semibold text-black-800", children: props.title }) }) : /* @__PURE__ */ jsx41("div", {}),
3338
3410
  /* @__PURE__ */ jsxs16("div", { className: "flex items-center gap-3", children: [
3339
- props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ jsx40(
3411
+ props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ jsx41(
3340
3412
  InputControl_default,
3341
3413
  {
3342
3414
  name: "Search_input",
@@ -3348,7 +3420,7 @@ var DataList = (props) => {
3348
3420
  }
3349
3421
  }
3350
3422
  ),
3351
- props.filters && props.filters.map((filter) => /* @__PURE__ */ jsx40(
3423
+ props.filters && props.filters.map((filter) => /* @__PURE__ */ jsx41(
3352
3424
  InputControl_default,
3353
3425
  {
3354
3426
  name: filter.name,
@@ -3370,8 +3442,8 @@ var DataList = (props) => {
3370
3442
  linkType: "Primary" /* Solid */,
3371
3443
  href: props.addLinkHref,
3372
3444
  children: [
3373
- /* @__PURE__ */ jsx40(Icon_default, { name: "plus", className: "w-4 h-4" }),
3374
- /* @__PURE__ */ jsx40("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
3445
+ /* @__PURE__ */ jsx41(Icon_default, { name: "plus", className: "w-4 h-4" }),
3446
+ /* @__PURE__ */ jsx41("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
3375
3447
  ]
3376
3448
  }
3377
3449
  )
@@ -3379,8 +3451,8 @@ var DataList = (props) => {
3379
3451
  ]
3380
3452
  }
3381
3453
  ),
3382
- /* @__PURE__ */ jsx40("div", { className: "flex-1 overflow-y-auto justify-end bg-white rounded shadow h-[calc(100vh-14rem)]", children: /* @__PURE__ */ jsxs16("table", { className: "w-full divide-y divide-gray-200", children: [
3383
- /* @__PURE__ */ jsx40("thead", { className: "bg-gray-50 sticky top-0", children: /* @__PURE__ */ jsx40("tr", { children: props?.columns?.map((column) => {
3454
+ /* @__PURE__ */ jsx41("div", { className: "flex-1 overflow-y-auto justify-end bg-white rounded shadow h-[calc(100vh-14rem)]", children: /* @__PURE__ */ jsxs16("table", { className: "w-full divide-y divide-gray-200", children: [
3455
+ /* @__PURE__ */ jsx41("thead", { className: "bg-gray-50 sticky top-0", children: /* @__PURE__ */ jsx41("tr", { children: props?.columns?.map((column) => {
3384
3456
  let url = builder.getNewOrderByUrl(column.name);
3385
3457
  let icon = "chevronUpDown";
3386
3458
  if (orderBy.includes(`${column.name} desc`)) {
@@ -3390,18 +3462,18 @@ var DataList = (props) => {
3390
3462
  icon = "chevronUp";
3391
3463
  url = builder.getNewOrderByUrl(column.name + " desc");
3392
3464
  }
3393
- return /* @__PURE__ */ jsx40(
3465
+ return /* @__PURE__ */ jsx41(
3394
3466
  "th",
3395
3467
  {
3396
3468
  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" : ""),
3397
- children: /* @__PURE__ */ jsx40(
3469
+ children: /* @__PURE__ */ jsx41(
3398
3470
  Hyperlink,
3399
3471
  {
3400
3472
  href: column.enableSorting ? url : void 0,
3401
3473
  className: "!text-neutral-contrast ",
3402
3474
  children: /* @__PURE__ */ jsxs16("span", { className: "flex items-center space-x-1", children: [
3403
- /* @__PURE__ */ jsx40("span", { className: "text-black", children: column.label }),
3404
- column.enableSorting && /* @__PURE__ */ jsx40(Icon_default, { className: "w-4 h-4", name: icon })
3475
+ /* @__PURE__ */ jsx41("span", { className: "text-black", children: column.label }),
3476
+ column.enableSorting && /* @__PURE__ */ jsx41(Icon_default, { className: "w-4 h-4", name: icon })
3405
3477
  ] })
3406
3478
  }
3407
3479
  )
@@ -3409,24 +3481,24 @@ var DataList = (props) => {
3409
3481
  column.name
3410
3482
  );
3411
3483
  }) }) }),
3412
- /* @__PURE__ */ jsx40("tbody", { className: "divide-y divide-gray-200 ", children: props.dataset?.result?.map((dataitem, index) => {
3484
+ /* @__PURE__ */ jsx41("tbody", { className: "divide-y divide-gray-200 ", children: props.dataset?.result?.map((dataitem, index) => {
3413
3485
  let validityClass = "";
3414
3486
  console.log("dataitem", dataitem);
3415
3487
  if (props.recordValidityColumnName && getNestedProperty2(dataitem, props.recordValidityColumnName) == false) {
3416
3488
  validityClass = "bg-alert-200";
3417
3489
  }
3418
- return /* @__PURE__ */ jsx40("tr", { className: validityClass, children: props?.columns?.map((column, colindex) => {
3490
+ return /* @__PURE__ */ jsx41("tr", { className: validityClass, children: props?.columns?.map((column, colindex) => {
3419
3491
  console.log("column", column);
3420
- return /* @__PURE__ */ jsx40(React27.Fragment, { children: /* @__PURE__ */ jsx40(
3492
+ return /* @__PURE__ */ jsx41(React28.Fragment, { children: /* @__PURE__ */ jsx41(
3421
3493
  "td",
3422
3494
  {
3423
3495
  className: "px-6 py-2 whitespace-normal " + (column.controlType == ViewControlTypes_default.money ? "" : ""),
3424
- children: column.addhref === true ? /* @__PURE__ */ jsx40(
3496
+ children: column.addhref === true ? /* @__PURE__ */ jsx41(
3425
3497
  Hyperlink,
3426
3498
  {
3427
3499
  className: "",
3428
3500
  href: `https://${dataitem[column.name]}`,
3429
- children: /* @__PURE__ */ jsx40(
3501
+ children: /* @__PURE__ */ jsx41(
3430
3502
  ViewControl_default,
3431
3503
  {
3432
3504
  controlType: column.controlType,
@@ -3439,11 +3511,11 @@ var DataList = (props) => {
3439
3511
  }
3440
3512
  )
3441
3513
  }
3442
- ) : column.showAsLink ? /* @__PURE__ */ jsx40(
3514
+ ) : column.showAsLink ? /* @__PURE__ */ jsx41(
3443
3515
  Hyperlink,
3444
3516
  {
3445
3517
  href: props.path + dataitem[props.columns[0].name] + "/" + (dataitem.linkUrlSegment ?? column.linkUrlSegment),
3446
- children: /* @__PURE__ */ jsx40(
3518
+ children: /* @__PURE__ */ jsx41(
3447
3519
  ViewControl_default,
3448
3520
  {
3449
3521
  controlType: column.controlType,
@@ -3453,7 +3525,7 @@ var DataList = (props) => {
3453
3525
  }
3454
3526
  )
3455
3527
  }
3456
- ) : /* @__PURE__ */ jsx40(
3528
+ ) : /* @__PURE__ */ jsx41(
3457
3529
  ViewControl_default,
3458
3530
  {
3459
3531
  controlType: column.controlType,
@@ -3467,10 +3539,10 @@ var DataList = (props) => {
3467
3539
  }) }, index);
3468
3540
  }) })
3469
3541
  ] }) }),
3470
- /* @__PURE__ */ jsx40("div", { className: "pt-4 border-t border-t-gray-50 sticky bottom-0 h-11 mt-2 ", children: /* @__PURE__ */ jsxs16("div", { className: "flex items-center justify-between", children: [
3471
- /* @__PURE__ */ jsx40("div", { className: "text-gray-700", children: label }),
3542
+ /* @__PURE__ */ jsx41("div", { className: "pt-4 border-t border-t-gray-50 sticky bottom-0 h-11 mt-2 ", children: /* @__PURE__ */ jsxs16("div", { className: "flex items-center justify-between", children: [
3543
+ /* @__PURE__ */ jsx41("div", { className: "text-gray-700", children: label }),
3472
3544
  /* @__PURE__ */ jsxs16("div", { className: "flex space-x-2 items-center", children: [
3473
- activePageNumber > 1 && /* @__PURE__ */ jsx40(
3545
+ activePageNumber > 1 && /* @__PURE__ */ jsx41(
3474
3546
  Hyperlink,
3475
3547
  {
3476
3548
  className: "px-3 py-1 rounded-l-md border border-gray-300 bg-white text-gray-500 hover:bg-gray-200",
@@ -3478,9 +3550,9 @@ var DataList = (props) => {
3478
3550
  children: "Prev"
3479
3551
  }
3480
3552
  ),
3481
- activePageNumber <= 1 && /* @__PURE__ */ jsx40("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" }),
3553
+ activePageNumber <= 1 && /* @__PURE__ */ jsx41("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" }),
3482
3554
  renderPageNumbers(),
3483
- activePageNumber < pages && /* @__PURE__ */ jsx40(
3555
+ activePageNumber < pages && /* @__PURE__ */ jsx41(
3484
3556
  Hyperlink,
3485
3557
  {
3486
3558
  className: "px-3 py-1 rounded-r-md border border-gray-300 bg-white text-gray-500 hover:bg-gray-200",
@@ -3488,7 +3560,7 @@ var DataList = (props) => {
3488
3560
  children: "Next"
3489
3561
  }
3490
3562
  ),
3491
- activePageNumber >= pages && /* @__PURE__ */ jsx40("div", { className: "px-3 py-1 rounded-r-md border border-gray-300 bg-gray-200 text-gray-500", children: "Next" })
3563
+ activePageNumber >= pages && /* @__PURE__ */ jsx41("div", { className: "px-3 py-1 rounded-r-md border border-gray-300 bg-gray-200 text-gray-500", children: "Next" })
3492
3564
  ] })
3493
3565
  ] }) })
3494
3566
  ] }),
@@ -3498,9 +3570,9 @@ var DataList = (props) => {
3498
3570
  {
3499
3571
  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`,
3500
3572
  children: [
3501
- props.title ? /* @__PURE__ */ jsx40("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ jsx40("h2", { className: "text-lg font-semibold text-black", children: props.title }) }) : /* @__PURE__ */ jsx40("div", {}),
3573
+ props.title ? /* @__PURE__ */ jsx41("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ jsx41("h2", { className: "text-lg font-semibold text-black", children: props.title }) }) : /* @__PURE__ */ jsx41("div", {}),
3502
3574
  /* @__PURE__ */ jsxs16("div", { className: "flex items-center gap-3", children: [
3503
- props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ jsx40(
3575
+ props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ jsx41(
3504
3576
  InputControl_default,
3505
3577
  {
3506
3578
  name: "Search_input",
@@ -3512,7 +3584,7 @@ var DataList = (props) => {
3512
3584
  }
3513
3585
  }
3514
3586
  ),
3515
- props.filters && props.filters.map((filter) => /* @__PURE__ */ jsx40(
3587
+ props.filters && props.filters.map((filter) => /* @__PURE__ */ jsx41(
3516
3588
  InputControl_default,
3517
3589
  {
3518
3590
  name: filter.name,
@@ -3534,8 +3606,8 @@ var DataList = (props) => {
3534
3606
  linkType: "Primary" /* Solid */,
3535
3607
  href: props.addLinkHref,
3536
3608
  children: [
3537
- /* @__PURE__ */ jsx40(Icon_default, { name: "plus", className: "w-4 h-4" }),
3538
- /* @__PURE__ */ jsx40("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
3609
+ /* @__PURE__ */ jsx41(Icon_default, { name: "plus", className: "w-4 h-4" }),
3610
+ /* @__PURE__ */ jsx41("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
3539
3611
  ]
3540
3612
  }
3541
3613
  )
@@ -3544,7 +3616,7 @@ var DataList = (props) => {
3544
3616
  }
3545
3617
  ),
3546
3618
  /* @__PURE__ */ jsxs16("div", { className: "flex-grow overflow-y-auto justify-end bg-white rounded shadow h-[75vh]", children: [
3547
- /* @__PURE__ */ jsx40("div", { children: /* @__PURE__ */ jsx40("table", { className: "w-full divide-y divide-gray-200", children: /* @__PURE__ */ jsx40("thead", { className: "bg-gray-50", children: /* @__PURE__ */ jsx40("tr", { children: props?.columns?.map((column) => {
3619
+ /* @__PURE__ */ jsx41("div", { children: /* @__PURE__ */ jsx41("table", { className: "w-full divide-y divide-gray-200", children: /* @__PURE__ */ jsx41("thead", { className: "bg-gray-50", children: /* @__PURE__ */ jsx41("tr", { children: props?.columns?.map((column) => {
3548
3620
  let url = builder.getNewOrderByUrl(column.name);
3549
3621
  let icon = "chevronUpDown";
3550
3622
  if (orderBy.includes(`${column.name} desc`)) {
@@ -3554,18 +3626,18 @@ var DataList = (props) => {
3554
3626
  icon = "chevronUp";
3555
3627
  url = builder.getNewOrderByUrl(column.name + " desc");
3556
3628
  }
3557
- return /* @__PURE__ */ jsx40(
3629
+ return /* @__PURE__ */ jsx41(
3558
3630
  "th",
3559
3631
  {
3560
3632
  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" : ""),
3561
- children: /* @__PURE__ */ jsx40(
3633
+ children: /* @__PURE__ */ jsx41(
3562
3634
  Hyperlink,
3563
3635
  {
3564
3636
  href: column.enableSorting ? url : void 0,
3565
3637
  className: "text-body-950",
3566
3638
  children: /* @__PURE__ */ jsxs16("span", { className: "flex items-center space-x-1", children: [
3567
- /* @__PURE__ */ jsx40("span", { children: column.label }),
3568
- column.enableSorting && /* @__PURE__ */ jsx40(Icon_default, { className: "w-4 h-4", name: icon })
3639
+ /* @__PURE__ */ jsx41("span", { children: column.label }),
3640
+ column.enableSorting && /* @__PURE__ */ jsx41(Icon_default, { className: "w-4 h-4", name: icon })
3569
3641
  ] })
3570
3642
  }
3571
3643
  )
@@ -3573,7 +3645,7 @@ var DataList = (props) => {
3573
3645
  column.name
3574
3646
  );
3575
3647
  }) }) }) }) }),
3576
- /* @__PURE__ */ jsx40("div", { className: "w-full text-center bg-transparent pt-5", children: "There are no entries in the table at the moment." })
3648
+ /* @__PURE__ */ jsx41("div", { className: "w-full text-center bg-transparent pt-5", children: "There are no entries in the table at the moment." })
3577
3649
  ] })
3578
3650
  ] })
3579
3651
  ] });
@@ -3581,9 +3653,9 @@ var DataList = (props) => {
3581
3653
  var DataList_default = DataList;
3582
3654
 
3583
3655
  // src/components/dataForm/DataListRenderer.tsx
3584
- import React28, { useState as useState3, useEffect as useEffect4 } from "react";
3656
+ import React29, { useState as useState4, useEffect as useEffect5 } from "react";
3585
3657
  import { usePathname as usePathname2 } from "next/navigation";
3586
- import { jsx as jsx41, jsxs as jsxs17 } from "react/jsx-runtime";
3658
+ import { jsx as jsx42, jsxs as jsxs17 } from "react/jsx-runtime";
3587
3659
  var viewControlMap = {
3588
3660
  number: ViewControlTypes.number,
3589
3661
  lineText: ViewControlTypes.lineText,
@@ -3638,14 +3710,14 @@ var DataListRenderer = ({
3638
3710
  widgetProps
3639
3711
  }) => {
3640
3712
  const serviceClient = new ServiceClient_default(apiBaseUrl, session);
3641
- const [columns, setColumns] = useState3([]);
3642
- const [dataset, setDataset] = useState3();
3643
- const [filter, setFilters] = useState3([]);
3644
- const [addLinkHref, setAddLinkHref] = useState3("");
3645
- const [addLinkText, setAddLinkText] = useState3("");
3646
- const [serviceRoute, setServiceRoute] = useState3("");
3713
+ const [columns, setColumns] = useState4([]);
3714
+ const [dataset, setDataset] = useState4();
3715
+ const [filter, setFilters] = useState4([]);
3716
+ const [addLinkHref, setAddLinkHref] = useState4("");
3717
+ const [addLinkText, setAddLinkText] = useState4("");
3718
+ const [serviceRoute, setServiceRoute] = useState4("");
3647
3719
  const pathname = usePathname2();
3648
- useEffect4(() => {
3720
+ useEffect5(() => {
3649
3721
  if (!formDefinition) return;
3650
3722
  setColumns(mapApiToColumns(formDefinition));
3651
3723
  setFilters(mapApiToFilters(formDefinition));
@@ -3658,7 +3730,7 @@ var DataListRenderer = ({
3658
3730
  setAddLinkHref(resolvedAddLinkHref);
3659
3731
  setAddLinkText(formDefinition?.siteFormDataList?.addLinkText ?? "");
3660
3732
  }, [formDefinition, params]);
3661
- useEffect4(() => {
3733
+ useEffect5(() => {
3662
3734
  const fetchData = async () => {
3663
3735
  if (!serviceRoute) return;
3664
3736
  const resolvedRoute = resolveRoutePlaceholders2(serviceRoute, params);
@@ -3678,13 +3750,13 @@ var DataListRenderer = ({
3678
3750
  isActive: landingPageUrl === pathname
3679
3751
  };
3680
3752
  });
3681
- return /* @__PURE__ */ jsxs17(React28.Fragment, { children: [
3753
+ return /* @__PURE__ */ jsxs17(React29.Fragment, { children: [
3682
3754
  resolvedTabs.length > 0 && // <NavigationTabsV2
3683
3755
  // tabs={resolvedTabs}
3684
3756
  // params={(widgetProps?.params ?? params) as Record<string, any>}
3685
3757
  // />
3686
- /* @__PURE__ */ jsx41(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
3687
- /* @__PURE__ */ jsx41(
3758
+ /* @__PURE__ */ jsx42(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
3759
+ /* @__PURE__ */ jsx42(
3688
3760
  DataList_default,
3689
3761
  {
3690
3762
  addLinkHref,
@@ -3703,10 +3775,10 @@ var DataListRenderer = ({
3703
3775
  var DataListRenderer_default = DataListRenderer;
3704
3776
 
3705
3777
  // src/components/dataForm/DataForm.tsx
3706
- import React30, { useCallback as useCallback4, useEffect as useEffect5, useReducer as useReducer2, useRef as useRef2 } from "react";
3778
+ import React31, { useCallback as useCallback4, useEffect as useEffect6, useReducer as useReducer2, useRef as useRef2 } from "react";
3707
3779
 
3708
3780
  // src/components/dataForm/DataFormChildSection.tsx
3709
- import React29, { useCallback as useCallback3 } from "react";
3781
+ import React30, { useCallback as useCallback3 } from "react";
3710
3782
 
3711
3783
  // src/components/dataForm/StyleTypes.tsx
3712
3784
  var StyleTypes2 = /* @__PURE__ */ ((StyleTypes3) => {
@@ -3729,7 +3801,7 @@ var FORM_CHILD_ONE_TO_ONE_UPDATE = "FORM_CHILD_ONE_TO_ONE_UPDATE";
3729
3801
  var FORM_CHILD_ROW_ADD = "FORM_CHILD_ROW_ADD";
3730
3802
 
3731
3803
  // src/components/dataForm/DataFormChildSection.tsx
3732
- import { jsx as jsx42, jsxs as jsxs18 } from "react/jsx-runtime";
3804
+ import { jsx as jsx43, jsxs as jsxs18 } from "react/jsx-runtime";
3733
3805
  var DataFormChildSection = (props) => {
3734
3806
  const { section } = props;
3735
3807
  const isOneToOne = section.relationshipType === "one-to-one";
@@ -3797,14 +3869,14 @@ var DataFormChildSection = (props) => {
3797
3869
  childItemsToRender,
3798
3870
  allChildItems: childItems
3799
3871
  });
3800
- return /* @__PURE__ */ jsx42(React29.Fragment, { children: /* @__PURE__ */ jsxs18("div", { className: "rounded border-neutral-200 border px-6 py-4 mb-2", children: [
3801
- section.sectionTitle && /* @__PURE__ */ jsx42("div", { className: "mb-4 text-lg font-medium text-body-950", children: section.sectionTitle }),
3802
- /* @__PURE__ */ jsx42("div", { className: "flex-grow flex flex-col justify-between overflow-y-auto", children: /* @__PURE__ */ jsxs18("div", { className: "flex flex-col justify-between gap-2", children: [
3803
- /* @__PURE__ */ jsx42("div", { children: /* @__PURE__ */ jsxs18("table", { className: "w-full border-separate divide-y divide-gray-200", children: [
3804
- (!isOneToOne || childItemsToRender.length > 0) && /* @__PURE__ */ jsx42("thead", { className: "", children: section.sectionRows.map((sectionRow, sectionRowIndex) => {
3872
+ return /* @__PURE__ */ jsx43(React30.Fragment, { children: /* @__PURE__ */ jsxs18("div", { className: "rounded border-neutral-200 border px-6 py-4 mb-2", children: [
3873
+ section.sectionTitle && /* @__PURE__ */ jsx43("div", { className: "mb-4 text-lg font-medium text-body-950", children: section.sectionTitle }),
3874
+ /* @__PURE__ */ jsx43("div", { className: "flex-grow flex flex-col justify-between overflow-y-auto", children: /* @__PURE__ */ jsxs18("div", { className: "flex flex-col justify-between gap-2", children: [
3875
+ /* @__PURE__ */ jsx43("div", { children: /* @__PURE__ */ jsxs18("table", { className: "w-full border-separate divide-y divide-gray-200", children: [
3876
+ (!isOneToOne || childItemsToRender.length > 0) && /* @__PURE__ */ jsx43("thead", { className: "", children: section.sectionRows.map((sectionRow, sectionRowIndex) => {
3805
3877
  return /* @__PURE__ */ jsxs18("tr", { className: "", children: [
3806
3878
  sectionRow.elements.map((field, index) => {
3807
- return /* @__PURE__ */ jsx42(
3879
+ return /* @__PURE__ */ jsx43(
3808
3880
  "th",
3809
3881
  {
3810
3882
  className: "py-3 font-normal text-left",
@@ -3813,13 +3885,13 @@ var DataFormChildSection = (props) => {
3813
3885
  field.name
3814
3886
  );
3815
3887
  }),
3816
- !section.readonly && !isOneToOne && /* @__PURE__ */ jsx42("th", { className: "py-3 font-normal text-left", children: "Actions" })
3888
+ !section.readonly && !isOneToOne && /* @__PURE__ */ jsx43("th", { className: "py-3 font-normal text-left", children: "Actions" })
3817
3889
  ] }, sectionRowIndex);
3818
3890
  }) }),
3819
- /* @__PURE__ */ jsx42("tbody", { className: "divide-y divide-gray-200", children: childItemsToRender.map((visibleItem, filteredIndex) => {
3891
+ /* @__PURE__ */ jsx43("tbody", { className: "divide-y divide-gray-200", children: childItemsToRender.map((visibleItem, filteredIndex) => {
3820
3892
  const { item, originalIndex } = visibleItem;
3821
3893
  const rowKey = originalIndex;
3822
- return /* @__PURE__ */ jsx42(React29.Fragment, { children: section.sectionRows.map(
3894
+ return /* @__PURE__ */ jsx43(React30.Fragment, { children: section.sectionRows.map(
3823
3895
  (sectionRow, sectionRowIndex) => {
3824
3896
  return /* @__PURE__ */ jsxs18(
3825
3897
  "tr",
@@ -3827,7 +3899,7 @@ var DataFormChildSection = (props) => {
3827
3899
  className: "",
3828
3900
  children: [
3829
3901
  sectionRow.elements.map((field, index) => {
3830
- return /* @__PURE__ */ jsx42("td", { children: /* @__PURE__ */ jsx42("div", { className: "flex-1", children: /* @__PURE__ */ jsx42("div", { className: "w-11/12", children: /* @__PURE__ */ jsx42(
3902
+ return /* @__PURE__ */ jsx43("td", { children: /* @__PURE__ */ jsx43("div", { className: "flex-1", children: /* @__PURE__ */ jsx43("div", { className: "w-11/12", children: /* @__PURE__ */ jsx43(
3831
3903
  InputControl_default,
3832
3904
  {
3833
3905
  index: filteredIndex,
@@ -3847,7 +3919,7 @@ var DataFormChildSection = (props) => {
3847
3919
  }
3848
3920
  ) }) }) }, field.name);
3849
3921
  }),
3850
- !section.readonly && !isOneToOne && /* @__PURE__ */ jsx42("td", { children: /* @__PURE__ */ jsx42(
3922
+ !section.readonly && !isOneToOne && /* @__PURE__ */ jsx43("td", { children: /* @__PURE__ */ jsx43(
3851
3923
  ClientButton_default,
3852
3924
  {
3853
3925
  ButtonType: StyleTypes2.Hollow,
@@ -3856,7 +3928,7 @@ var DataFormChildSection = (props) => {
3856
3928
  },
3857
3929
  dataRole: "delete",
3858
3930
  tabIndex: -1,
3859
- children: /* @__PURE__ */ jsx42(
3931
+ children: /* @__PURE__ */ jsx43(
3860
3932
  Icon_default,
3861
3933
  {
3862
3934
  className: "w-4 h-4",
@@ -3873,7 +3945,7 @@ var DataFormChildSection = (props) => {
3873
3945
  ) }, rowKey);
3874
3946
  }) })
3875
3947
  ] }) }),
3876
- !section.readonly && !isOneToOne && /* @__PURE__ */ jsx42("div", { className: "ml-1", children: /* @__PURE__ */ jsx42(
3948
+ !section.readonly && !isOneToOne && /* @__PURE__ */ jsx43("div", { className: "ml-1", children: /* @__PURE__ */ jsx43(
3877
3949
  ClientButton_default,
3878
3950
  {
3879
3951
  ButtonType: "Link" /* Link */,
@@ -3888,7 +3960,7 @@ var DataFormChildSection = (props) => {
3888
3960
  var DataFormChildSection_default = DataFormChildSection;
3889
3961
 
3890
3962
  // src/components/dataForm/DataForm.tsx
3891
- import { jsx as jsx43, jsxs as jsxs19 } from "react/jsx-runtime";
3963
+ import { jsx as jsx44, jsxs as jsxs19 } from "react/jsx-runtime";
3892
3964
  var DataForm = (props) => {
3893
3965
  const formRef = useRef2(null);
3894
3966
  console.log(props.dataItem, "dssads");
@@ -3985,7 +4057,7 @@ var DataForm = (props) => {
3985
4057
  console.error("Error fetching data:", error);
3986
4058
  }
3987
4059
  }, [formState.lastPropertyChanged, formState.inputValues]);
3988
- useEffect5(() => {
4060
+ useEffect6(() => {
3989
4061
  fetchData();
3990
4062
  }, [formState.inputValues, formState.lastPropertyChanged]);
3991
4063
  function replacePlaceholders(template, context, params) {
@@ -4080,7 +4152,7 @@ var DataForm = (props) => {
4080
4152
  return { isSuccessful: true };
4081
4153
  }
4082
4154
  }, [formState, props]);
4083
- useEffect5(() => {
4155
+ useEffect6(() => {
4084
4156
  if (props.dataItem) {
4085
4157
  dispatch({
4086
4158
  type: FORM_INITIAL_UPDATE,
@@ -4108,19 +4180,19 @@ var DataForm = (props) => {
4108
4180
  return false;
4109
4181
  }
4110
4182
  }
4111
- return /* @__PURE__ */ jsx43(React30.Fragment, { children: /* @__PURE__ */ jsxs19("div", { className: "flex-grow flex flex-col", children: [
4112
- props.title && /* @__PURE__ */ jsx43("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__ */ jsxs19(
4183
+ return /* @__PURE__ */ jsx44(React31.Fragment, { children: /* @__PURE__ */ jsxs19("div", { className: "flex-grow flex flex-col", children: [
4184
+ props.title && /* @__PURE__ */ jsx44("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__ */ jsxs19(
4113
4185
  "div",
4114
4186
  {
4115
4187
  className: "inline-flex items-center gap-2 cursor-pointer",
4116
4188
  onClick: () => window.history.back(),
4117
4189
  children: [
4118
- /* @__PURE__ */ jsx43(Icon_default, { name: "chevronLeft", className: "w-4 h-4 text-primary-800" }),
4119
- /* @__PURE__ */ jsx43("h2", { className: "text-lg font-semibold text-primary-800", children: props.title })
4190
+ /* @__PURE__ */ jsx44(Icon_default, { name: "chevronLeft", className: "w-4 h-4 text-primary-800" }),
4191
+ /* @__PURE__ */ jsx44("h2", { className: "text-lg font-semibold text-primary-800", children: props.title })
4120
4192
  ]
4121
4193
  }
4122
4194
  ) }),
4123
- /* @__PURE__ */ jsx43(
4195
+ /* @__PURE__ */ jsx44(
4124
4196
  "form",
4125
4197
  {
4126
4198
  className: "group space-y-6 pb-6 overflow-y-auto",
@@ -4141,8 +4213,8 @@ var DataForm = (props) => {
4141
4213
  }
4142
4214
  }
4143
4215
  },
4144
- children: /* @__PURE__ */ jsx43("div", { className: "flex flex-col gap-6", children: props.sections?.map((section, sectionIndex) => {
4145
- return /* @__PURE__ */ jsx43(React30.Fragment, { children: !section.isChildSection && /* @__PURE__ */ jsxs19("div", { className: " rounded-b-lg bg-white shadow border-neutral-200 border px-8 py-6 ", children: [
4216
+ children: /* @__PURE__ */ jsx44("div", { className: "flex flex-col gap-6", children: props.sections?.map((section, sectionIndex) => {
4217
+ return /* @__PURE__ */ jsx44(React31.Fragment, { children: !section.isChildSection && /* @__PURE__ */ jsxs19("div", { className: " rounded-b-lg bg-white shadow border-neutral-200 border px-8 py-6 ", children: [
4146
4218
  section.sectionRows?.map(
4147
4219
  (sectionRow, sectionRowIndex) => {
4148
4220
  const elementsCount = sectionRow.elements.length;
@@ -4153,14 +4225,14 @@ var DataForm = (props) => {
4153
4225
  sectionRow.visible
4154
4226
  );
4155
4227
  }
4156
- return /* @__PURE__ */ jsx43(React30.Fragment, { children: isVisible && /* @__PURE__ */ jsx43("div", { className: "lg:flex gap-14 flex-1 mb-4 ", children: sectionRow.elements.map((field, index) => {
4228
+ return /* @__PURE__ */ jsx44(React31.Fragment, { children: isVisible && /* @__PURE__ */ jsx44("div", { className: "lg:flex gap-14 flex-1 mb-4 ", children: sectionRow.elements.map((field, index) => {
4157
4229
  return /* @__PURE__ */ jsxs19(
4158
4230
  "div",
4159
4231
  {
4160
4232
  className: sectionRow.grow ? "grow" : "",
4161
4233
  children: [
4162
- /* @__PURE__ */ jsx43("div", { children: field.controlType }),
4163
- /* @__PURE__ */ jsx43(
4234
+ /* @__PURE__ */ jsx44("div", { children: field.controlType }),
4235
+ /* @__PURE__ */ jsx44(
4164
4236
  InputControl_default,
4165
4237
  {
4166
4238
  name: field.name,
@@ -4190,12 +4262,12 @@ var DataForm = (props) => {
4190
4262
  }) }) }, sectionRowIndex);
4191
4263
  }
4192
4264
  ),
4193
- /* @__PURE__ */ jsx43("div", { children: section.childSections?.map(
4265
+ /* @__PURE__ */ jsx44("div", { children: section.childSections?.map(
4194
4266
  (childSection, childSectionIndex) => {
4195
- return /* @__PURE__ */ jsx43("div", { children: childSection.name && evalutateCondition(
4267
+ return /* @__PURE__ */ jsx44("div", { children: childSection.name && evalutateCondition(
4196
4268
  formState.inputValues,
4197
4269
  childSection.visible
4198
- ) && /* @__PURE__ */ jsx43(
4270
+ ) && /* @__PURE__ */ jsx44(
4199
4271
  DataFormChildSection_default,
4200
4272
  {
4201
4273
  section: childSection,
@@ -4211,7 +4283,7 @@ var DataForm = (props) => {
4211
4283
  }
4212
4284
  ),
4213
4285
  /* @__PURE__ */ jsxs19("div", { className: "flex px-6 py-3 mt-2 mb-2 justify-end items-center gap-5", children: [
4214
- /* @__PURE__ */ jsx43("div", { children: props.additionalActions && /* @__PURE__ */ jsx43(
4286
+ /* @__PURE__ */ jsx44("div", { children: props.additionalActions && /* @__PURE__ */ jsx44(
4215
4287
  Button_default,
4216
4288
  {
4217
4289
  ButtonType: "PrimaryHollow" /* Hollow */,
@@ -4219,7 +4291,7 @@ var DataForm = (props) => {
4219
4291
  children: props.additionalActions.title
4220
4292
  }
4221
4293
  ) }),
4222
- /* @__PURE__ */ jsx43("div", { children: props.onDelete && /* @__PURE__ */ jsx43(
4294
+ /* @__PURE__ */ jsx44("div", { children: props.onDelete && /* @__PURE__ */ jsx44(
4223
4295
  Button_default,
4224
4296
  {
4225
4297
  ButtonType: "PrimaryHollow" /* Hollow */,
@@ -4230,7 +4302,7 @@ var DataForm = (props) => {
4230
4302
  children: "Delete"
4231
4303
  }
4232
4304
  ) }),
4233
- /* @__PURE__ */ jsx43("div", { children: props.onClick && /* @__PURE__ */ jsx43(
4305
+ /* @__PURE__ */ jsx44("div", { children: props.onClick && /* @__PURE__ */ jsx44(
4234
4306
  Button_default,
4235
4307
  {
4236
4308
  onValidate,
@@ -4247,7 +4319,7 @@ var DataForm = (props) => {
4247
4319
  var DataForm_default = DataForm;
4248
4320
 
4249
4321
  // src/components/dataForm/DataFormRenderer.tsx
4250
- import { jsx as jsx44, jsxs as jsxs20 } from "react/jsx-runtime";
4322
+ import { jsx as jsx45, jsxs as jsxs20 } from "react/jsx-runtime";
4251
4323
  function getAction(actions, code) {
4252
4324
  return actions?.find((a) => a.actionCode === code);
4253
4325
  }
@@ -4274,8 +4346,8 @@ var DataFormRenderer = ({
4274
4346
  );
4275
4347
  const hasDataItem = dataItem && Object.keys(dataItem).length > 0;
4276
4348
  return /* @__PURE__ */ jsxs20("div", { className: "flex-grow flex flex-col", children: [
4277
- widgetProps && /* @__PURE__ */ jsx44(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
4278
- /* @__PURE__ */ jsx44(
4349
+ widgetProps && /* @__PURE__ */ jsx45(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
4350
+ /* @__PURE__ */ jsx45(
4279
4351
  DataForm_default,
4280
4352
  {
4281
4353
  title: !isAddPage ? "Edit " + formDefinition.formTitle + "- v2" : "Add " + formDefinition.formTitle + "- v2",