@clyrex-digital/clyrex-controls-dev 0.8.1-dev.20260827034013 → 0.8.1-dev.20260827063633

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
@@ -450,23 +450,58 @@ var parseSerializedContent = (raw) => {
450
450
 
451
451
  // src/components/controls/view/CommentNodeRenderer.tsx
452
452
  import React14 from "react";
453
- import { jsx as jsx15, jsxs as jsxs6 } from "react/jsx-runtime";
453
+
454
+ // src/components/controls/view/CommentImageNode.tsx
455
+ import { jsx as jsx15 } from "react/jsx-runtime";
456
+ var CommentImageNode = ({ node, assetBaseUrl }) => {
457
+ const rawUrl = typeof node.url === "string" && node.url || typeof node.src === "string" && node.src || typeof node.assetUrl === "string" && node.assetUrl || "";
458
+ if (!rawUrl) {
459
+ return null;
460
+ }
461
+ const resolvedUrl = AssetUtility_default.resolveUrl(assetBaseUrl, rawUrl);
462
+ if (!resolvedUrl) {
463
+ return null;
464
+ }
465
+ console.log("resolvedUrl", resolvedUrl);
466
+ const alt = typeof node.fileName === "string" && node.fileName || typeof node.altText === "string" && node.altText || typeof node.alt === "string" && node.alt || "";
467
+ return /* @__PURE__ */ jsx15(
468
+ "img",
469
+ {
470
+ className: "comment-node-image",
471
+ src: resolvedUrl,
472
+ alt,
473
+ loading: "lazy",
474
+ style: { maxWidth: "100%", height: "auto", display: "block" }
475
+ }
476
+ );
477
+ };
478
+ var CommentImageNode_default = CommentImageNode;
479
+
480
+ // src/components/controls/view/CommentNodeRenderer.tsx
481
+ import { jsx as jsx16, jsxs as jsxs6 } from "react/jsx-runtime";
454
482
  var TextLeafNode = ({ node }) => {
455
483
  let content = node.text;
456
- if (node.code) content = /* @__PURE__ */ jsx15("code", { className: "comment-node-code", children: content });
457
- if (node.bold) content = /* @__PURE__ */ jsx15("strong", { children: content });
458
- if (node.italic) content = /* @__PURE__ */ jsx15("em", { children: content });
459
- if (node.underline) content = /* @__PURE__ */ jsx15("u", { children: content });
460
- if (node.strikethrough) content = /* @__PURE__ */ jsx15("s", { children: content });
461
- return /* @__PURE__ */ jsx15(React14.Fragment, { children: content });
484
+ if (node.code) content = /* @__PURE__ */ jsx16("code", { className: "comment-node-code", children: content });
485
+ if (node.bold) content = /* @__PURE__ */ jsx16("strong", { children: content });
486
+ if (node.italic) content = /* @__PURE__ */ jsx16("em", { children: content });
487
+ if (node.underline) content = /* @__PURE__ */ jsx16("u", { children: content });
488
+ if (node.strikethrough) content = /* @__PURE__ */ jsx16("s", { children: content });
489
+ return /* @__PURE__ */ jsx16(React14.Fragment, { children: content });
462
490
  };
463
- var renderChildren = (children, keyPrefix) => {
491
+ var renderChildren = (children, keyPrefix, assetBaseUrl) => {
464
492
  if (!children || children.length === 0) {
465
493
  return null;
466
494
  }
467
495
  return children.map((child, index) => {
468
496
  const childKey = isTextNode(child) ? void 0 : asElementNode(child).id;
469
- return /* @__PURE__ */ jsx15(CommentNodeRenderer, { node: child }, childKey ?? `${keyPrefix}-${index}`);
497
+ return /* @__PURE__ */ jsx16(
498
+ CommentNodeRenderer,
499
+ {
500
+ node: child,
501
+ assetBaseUrl
502
+ },
503
+ childKey ?? `${keyPrefix}-${index}`
504
+ );
470
505
  });
471
506
  };
472
507
  var headingLevelFromTag = (tag) => {
@@ -474,40 +509,42 @@ var headingLevelFromTag = (tag) => {
474
509
  const parsed = match ? Number(match[0]) : Number(tag);
475
510
  return Number.isFinite(parsed) && parsed >= 1 && parsed <= 6 ? parsed : 3;
476
511
  };
477
- var CommentNodeRenderer = ({ node }) => {
512
+ var CommentNodeRenderer = ({ node, assetBaseUrl }) => {
478
513
  if (!node || typeof node !== "object") {
479
514
  return null;
480
515
  }
481
516
  if (isTextNode(node)) {
482
- return /* @__PURE__ */ jsx15(TextLeafNode, { node });
517
+ return /* @__PURE__ */ jsx16(TextLeafNode, { node });
483
518
  }
484
519
  const element = asElementNode(node);
485
520
  const key = element.id ?? element.type;
486
521
  switch (element.type) {
487
522
  case "paragraph":
488
- return /* @__PURE__ */ jsx15("p", { className: "comment-node-paragraph", children: renderChildren(element.children, key) ?? /* @__PURE__ */ jsx15("br", {}) });
523
+ return /* @__PURE__ */ jsx16("p", { className: "comment-node-paragraph", children: renderChildren(element.children, key, assetBaseUrl) ?? /* @__PURE__ */ jsx16("br", {}) });
489
524
  case "heading": {
490
525
  const level = headingLevelFromTag(element.tag ?? element.level);
491
526
  const HeadingTag = `h${level}`;
492
- return /* @__PURE__ */ jsx15(HeadingTag, { className: "comment-node-heading", children: renderChildren(element.children, key) });
527
+ return /* @__PURE__ */ jsx16(HeadingTag, { className: "comment-node-heading", children: renderChildren(element.children, key, assetBaseUrl) });
493
528
  }
494
529
  case "list": {
495
530
  const ordered = element.listType === "number" || element.ordered === true;
496
531
  const ListTag = ordered ? "ol" : "ul";
497
- return /* @__PURE__ */ jsx15(ListTag, { className: "comment-node-list", children: renderChildren(element.children, key) });
532
+ return /* @__PURE__ */ jsx16(ListTag, { className: "comment-node-list", children: renderChildren(element.children, key, assetBaseUrl) });
498
533
  }
499
534
  case "listitem":
500
535
  case "list-item":
501
- return /* @__PURE__ */ jsx15("li", { className: "comment-node-listitem", children: renderChildren(element.children, key) });
536
+ return /* @__PURE__ */ jsx16("li", { className: "comment-node-listitem", children: renderChildren(element.children, key, assetBaseUrl) });
502
537
  case "quote":
503
538
  case "blockquote":
504
- return /* @__PURE__ */ jsx15("blockquote", { className: "comment-node-quote", children: renderChildren(element.children, key) });
539
+ return /* @__PURE__ */ jsx16("blockquote", { className: "comment-node-quote", children: renderChildren(element.children, key, assetBaseUrl) });
505
540
  case "code":
506
541
  case "code-block":
507
- return /* @__PURE__ */ jsx15("pre", { className: "comment-node-codeblock", children: /* @__PURE__ */ jsx15("code", { children: renderChildren(element.children, key) }) });
542
+ return /* @__PURE__ */ jsx16("pre", { className: "comment-node-codeblock", children: /* @__PURE__ */ jsx16("code", { children: renderChildren(element.children, key, assetBaseUrl) }) });
543
+ case "image":
544
+ return /* @__PURE__ */ jsx16(CommentImageNode_default, { node: element, assetBaseUrl });
508
545
  case "link": {
509
546
  const url = typeof element.url === "string" ? element.url : "#";
510
- return /* @__PURE__ */ jsx15("a", { href: url, target: "_blank", rel: "noopener noreferrer", className: "comment-node-link", children: renderChildren(element.children, key) });
547
+ return /* @__PURE__ */ jsx16("a", { href: url, target: "_blank", rel: "noopener noreferrer", className: "comment-node-link", children: renderChildren(element.children, key, assetBaseUrl) });
511
548
  }
512
549
  case "mention": {
513
550
  const label = element.label ?? element.mentionName ?? element.text ?? "";
@@ -518,26 +555,35 @@ var CommentNodeRenderer = ({ node }) => {
518
555
  }
519
556
  case "linebreak":
520
557
  case "line-break":
521
- return /* @__PURE__ */ jsx15("br", {});
558
+ return /* @__PURE__ */ jsx16("br", {});
522
559
  default:
523
- return /* @__PURE__ */ jsx15(React14.Fragment, { children: renderChildren(element.children, key) });
560
+ return /* @__PURE__ */ jsx16(React14.Fragment, { children: renderChildren(element.children, key, assetBaseUrl) });
524
561
  }
525
562
  };
526
563
  var CommentNodeRenderer_default = CommentNodeRenderer;
527
564
 
528
565
  // src/components/controls/view/Commentrenderer.tsx
529
- import { jsx as jsx16 } from "react/jsx-runtime";
530
- var CommentRenderer = ({ value, className }) => {
566
+ import { jsx as jsx17 } from "react/jsx-runtime";
567
+ var CommentRenderer = ({ value, className, assetBaseUrl, apiBaseUrl }) => {
531
568
  const nodes = React15.useMemo(() => parseSerializedContent(value), [value]);
532
569
  if (!nodes || nodes.length === 0) {
533
570
  return null;
534
571
  }
535
- return /* @__PURE__ */ jsx16("div", { className: className ?? "comment-renderer", children: nodes.map((node, index) => /* @__PURE__ */ jsx16(CommentNodeRenderer_default, { node }, node.id ?? `comment-node-${index}`)) });
572
+ const resolvedAssetBaseUrl = assetBaseUrl ?? apiBaseUrl;
573
+ console.log(resolvedAssetBaseUrl, "resolvedAssetBaseUrl");
574
+ return /* @__PURE__ */ jsx17("div", { className: className ?? "comment-renderer", children: nodes.map((node, index) => /* @__PURE__ */ jsx17(
575
+ CommentNodeRenderer_default,
576
+ {
577
+ node,
578
+ assetBaseUrl: resolvedAssetBaseUrl
579
+ },
580
+ node.id ?? `comment-node-${index}`
581
+ )) });
536
582
  };
537
583
  var Commentrenderer_default = CommentRenderer;
538
584
 
539
585
  // src/components/controls/view/ViewControl.tsx
540
- import { jsx as jsx17 } from "react/jsx-runtime";
586
+ import { jsx as jsx18 } from "react/jsx-runtime";
541
587
  var ViewControl = (props) => {
542
588
  const ControlComponents = {
543
589
  [ViewControlTypes_default.lineText]: LineTextView_default,
@@ -568,7 +614,7 @@ var ViewControl = (props) => {
568
614
  [ViewControlTypes_default.commentRenderer]: Commentrenderer_default
569
615
  };
570
616
  const SelectedControlComponent = props.controlType ? ControlComponents[props.controlType] : void 0;
571
- return /* @__PURE__ */ jsx17(React16.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ jsx17(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
617
+ return /* @__PURE__ */ jsx18(React16.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ jsx18(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
572
618
  };
573
619
  var ViewControl_default = ViewControl;
574
620
 
@@ -579,7 +625,7 @@ import React26 from "react";
579
625
  import React18 from "react";
580
626
 
581
627
  // src/components/pageRenderingEngine/nodes/TextNode.tsx
582
- import { jsx as jsx18, jsxs as jsxs7 } from "react/jsx-runtime";
628
+ import { jsx as jsx19, jsxs as jsxs7 } from "react/jsx-runtime";
583
629
  var TextNode = (props) => {
584
630
  function cssStringToJson(cssString) {
585
631
  const styleObject = {};
@@ -636,24 +682,24 @@ var TextNode = (props) => {
636
682
  function renderWithLineBreaks(text) {
637
683
  return text.split("\n").map((line, index, arr) => /* @__PURE__ */ jsxs7("span", { children: [
638
684
  line,
639
- index < arr.length - 1 && /* @__PURE__ */ jsx18("br", {})
685
+ index < arr.length - 1 && /* @__PURE__ */ jsx19("br", {})
640
686
  ] }, index));
641
687
  }
642
688
  const displayText = props.linkText ? props.linkText : props.node.text;
643
689
  const finalText = props.dataitem && props.linkText ? displayText : props.dataitem ? replacePlaceholders(props.node.text, props.dataitem) : props.node.text;
644
690
  const content = typeof finalText === "string" ? renderWithLineBreaks(finalText) : finalText;
645
- const formattedContent = props.node.format & 64 ? /* @__PURE__ */ jsx18("sup", { children: content }) : props.node.format & 32 ? /* @__PURE__ */ jsx18("sub", { children: content }) : content;
691
+ const formattedContent = props.node.format & 64 ? /* @__PURE__ */ jsx19("sup", { children: content }) : props.node.format & 32 ? /* @__PURE__ */ jsx19("sub", { children: content }) : content;
646
692
  return (
647
693
  // @ts-expect-error custom code
648
- /* @__PURE__ */ jsx18("span", { style: { ...styles }, className: getFormatClass(props.node.format), children: formattedContent })
694
+ /* @__PURE__ */ jsx19("span", { style: { ...styles }, className: getFormatClass(props.node.format), children: formattedContent })
649
695
  );
650
696
  };
651
697
  var TextNode_default = TextNode;
652
698
 
653
699
  // src/components/pageRenderingEngine/nodes/LineBreakNode.tsx
654
- import { jsx as jsx19 } from "react/jsx-runtime";
700
+ import { jsx as jsx20 } from "react/jsx-runtime";
655
701
  var LineBreakNode = () => {
656
- return /* @__PURE__ */ jsx19("div", { className: "py-0.5 lg:py-1.5" });
702
+ return /* @__PURE__ */ jsx20("div", { className: "py-0.5 lg:py-1.5" });
657
703
  };
658
704
  var LineBreakNode_default = LineBreakNode;
659
705
 
@@ -662,7 +708,7 @@ import React17 from "react";
662
708
 
663
709
  // src/components/pageRenderingEngine/nodes/ImageNode.tsx
664
710
  import dynamic5 from "next/dynamic";
665
- import { jsx as jsx20 } from "react/jsx-runtime";
711
+ import { jsx as jsx21 } from "react/jsx-runtime";
666
712
  var HlsPlayer2 = dynamic5(() => import("./HlsPlayer-IW52N5RG.mjs"), { ssr: false });
667
713
  var getNestedValue = (obj, path) => {
668
714
  if (!obj || !path) return void 0;
@@ -695,7 +741,7 @@ var ImageNode = (props) => {
695
741
  assets = [image];
696
742
  }
697
743
  if (assets && assets.length > 0) {
698
- return /* @__PURE__ */ jsx20(
744
+ return /* @__PURE__ */ jsx21(
699
745
  DeviceAssetSelector_default,
700
746
  {
701
747
  device: props.device,
@@ -736,7 +782,7 @@ var ImageNode = (props) => {
736
782
  right: "justify-end"
737
783
  };
738
784
  const isHls = imageUrl.endsWith(".m3u8");
739
- const renderMedia = () => isHls ? /* @__PURE__ */ jsx20(
785
+ const renderMedia = () => isHls ? /* @__PURE__ */ jsx21(
740
786
  HlsPlayer2,
741
787
  {
742
788
  assetUrl: imageUrl,
@@ -749,7 +795,7 @@ var ImageNode = (props) => {
749
795
  apiBaseUrl: props.apiBaseUrl,
750
796
  session: props.session
751
797
  }
752
- ) : /* @__PURE__ */ jsx20(
798
+ ) : /* @__PURE__ */ jsx21(
753
799
  "img",
754
800
  {
755
801
  style: styles,
@@ -762,7 +808,7 @@ var ImageNode = (props) => {
762
808
  }
763
809
  );
764
810
  if (props.node.width) {
765
- return /* @__PURE__ */ jsx20("div", { className: `flex ${FORMAT_CLASSES2[props.node.format] ?? ""}`, children: renderMedia() });
811
+ return /* @__PURE__ */ jsx21("div", { className: `flex ${FORMAT_CLASSES2[props.node.format] ?? ""}`, children: renderMedia() });
766
812
  }
767
813
  return renderMedia();
768
814
  };
@@ -770,7 +816,7 @@ var ImageNode_default = ImageNode;
770
816
 
771
817
  // src/components/pageRenderingEngine/nodes/LinkNode.tsx
772
818
  import dynamic6 from "next/dynamic";
773
- import { Fragment, jsx as jsx21, jsxs as jsxs8 } from "react/jsx-runtime";
819
+ import { Fragment, jsx as jsx22, jsxs as jsxs8 } from "react/jsx-runtime";
774
820
  var LinkNodeButton = dynamic6(() => import("./LinkNodeButton-BEAX4I4C.mjs"), {
775
821
  ssr: false
776
822
  });
@@ -823,13 +869,13 @@ var LinkNode = (props) => {
823
869
  const isButton = node.isButton === true;
824
870
  const renderChildren2 = () => {
825
871
  if (!node.children || node.children.length === 0) return null;
826
- return /* @__PURE__ */ jsx21(Fragment, { children: node.children.map((childNode, index) => {
872
+ return /* @__PURE__ */ jsx22(Fragment, { children: node.children.map((childNode, index) => {
827
873
  const SelectedNode = NodeTypes2[childNode.type];
828
874
  if (!SelectedNode) {
829
875
  console.warn("Unknown node type:", childNode.type);
830
876
  return null;
831
877
  }
832
- return /* @__PURE__ */ jsx21(React17.Fragment, { children: /* @__PURE__ */ jsx21(
878
+ return /* @__PURE__ */ jsx22(React17.Fragment, { children: /* @__PURE__ */ jsx22(
833
879
  SelectedNode,
834
880
  {
835
881
  node: childNode,
@@ -842,10 +888,10 @@ var LinkNode = (props) => {
842
888
  };
843
889
  const renderFallback = () => {
844
890
  if ((!node.children || node.children.length === 0) && linkText) {
845
- return /* @__PURE__ */ jsx21("span", { children: linkText });
891
+ return /* @__PURE__ */ jsx22("span", { children: linkText });
846
892
  }
847
893
  if ((!node.children || node.children.length === 0) && !linkText) {
848
- return /* @__PURE__ */ jsx21("br", {});
894
+ return /* @__PURE__ */ jsx22("br", {});
849
895
  }
850
896
  return null;
851
897
  };
@@ -884,10 +930,10 @@ var LinkNode = (props) => {
884
930
  var LinkNode_default = LinkNode;
885
931
 
886
932
  // src/components/pageRenderingEngine/nodes/SVGIconNode.tsx
887
- import { jsx as jsx22 } from "react/jsx-runtime";
933
+ import { jsx as jsx23 } from "react/jsx-runtime";
888
934
  var SVGIconNode = ({ node }) => {
889
935
  if (!node?.svgCode) return null;
890
- return /* @__PURE__ */ jsx22(
936
+ return /* @__PURE__ */ jsx23(
891
937
  "span",
892
938
  {
893
939
  style: {
@@ -904,7 +950,7 @@ var SVGIconNode_default = SVGIconNode;
904
950
 
905
951
  // src/components/pageRenderingEngine/nodes/EquationNode.tsx
906
952
  import katex from "katex";
907
- import { jsx as jsx23 } from "react/jsx-runtime";
953
+ import { jsx as jsx24 } from "react/jsx-runtime";
908
954
  var EquationNode = ({ node }) => {
909
955
  const { equation, inline } = node;
910
956
  let html = "";
@@ -919,7 +965,7 @@ var EquationNode = ({ node }) => {
919
965
  });
920
966
  }
921
967
  if (inline) {
922
- return /* @__PURE__ */ jsx23(
968
+ return /* @__PURE__ */ jsx24(
923
969
  "span",
924
970
  {
925
971
  className: "katex-inline",
@@ -927,7 +973,7 @@ var EquationNode = ({ node }) => {
927
973
  }
928
974
  );
929
975
  }
930
- return /* @__PURE__ */ jsx23(
976
+ return /* @__PURE__ */ jsx24(
931
977
  "div",
932
978
  {
933
979
  className: "katex-block my-3 text-center",
@@ -938,7 +984,7 @@ var EquationNode = ({ node }) => {
938
984
  var EquationNode_default = EquationNode;
939
985
 
940
986
  // src/components/pageRenderingEngine/nodes/DatafieldNode.tsx
941
- import { jsx as jsx24 } from "react/jsx-runtime";
987
+ import { jsx as jsx25 } from "react/jsx-runtime";
942
988
  function getNestedProperty(obj, path) {
943
989
  if (!obj || !path) return null;
944
990
  if (path.includes(".")) {
@@ -951,7 +997,7 @@ function getNestedProperty(obj, path) {
951
997
  }
952
998
  const value = obj[path];
953
999
  if (Array.isArray(value)) {
954
- return value.map((item, index) => /* @__PURE__ */ jsx24("div", { children: String(item) }, index));
1000
+ return value.map((item, index) => /* @__PURE__ */ jsx25("div", { children: String(item) }, index));
955
1001
  }
956
1002
  return value;
957
1003
  }
@@ -1014,7 +1060,7 @@ var DatafieldNode = (props) => {
1014
1060
  const dataType = props.node.dataType;
1015
1061
  if (isEmptyValue) return null;
1016
1062
  if (dataType === "rawContent") {
1017
- return /* @__PURE__ */ jsx24(
1063
+ return /* @__PURE__ */ jsx25(
1018
1064
  PageBodyRenderer_default,
1019
1065
  {
1020
1066
  rawBody: String(value ?? `@databound[${fieldName}]`),
@@ -1030,17 +1076,19 @@ var DatafieldNode = (props) => {
1030
1076
  }
1031
1077
  );
1032
1078
  }
1033
- return /* @__PURE__ */ jsx24(
1079
+ return /* @__PURE__ */ jsx25(
1034
1080
  "span",
1035
1081
  {
1036
1082
  className: `datafield-node ${props.node.format < Formats.length ? Formats[props.node.format] : ""}`,
1037
1083
  style: styles,
1038
1084
  title,
1039
- children: /* @__PURE__ */ jsx24(
1085
+ children: /* @__PURE__ */ jsx25(
1040
1086
  ViewControl_default,
1041
1087
  {
1042
1088
  controlType: dataType,
1043
- value: value ?? `@databound[${fieldName}]`
1089
+ value: value ?? `@databound[${fieldName}]`,
1090
+ apiBaseUrl: props.apiBaseUrl,
1091
+ assetBaseUrl: props.assetBaseUrl
1044
1092
  }
1045
1093
  )
1046
1094
  }
@@ -1049,7 +1097,7 @@ var DatafieldNode = (props) => {
1049
1097
  var DatafieldNode_default = DatafieldNode;
1050
1098
 
1051
1099
  // src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
1052
- import { Fragment as Fragment2, jsx as jsx25, jsxs as jsxs9 } from "react/jsx-runtime";
1100
+ import { Fragment as Fragment2, jsx as jsx26, jsxs as jsxs9 } from "react/jsx-runtime";
1053
1101
  var ParagraphNode = (props) => {
1054
1102
  const NodeTypes2 = {
1055
1103
  ["text"]: TextNode_default,
@@ -1069,15 +1117,16 @@ var ParagraphNode = (props) => {
1069
1117
  const isInlineOnlyParent = props.parentTag === "summary";
1070
1118
  const hasChildren = props.node.children && props.node.children.length > 0;
1071
1119
  if (isInlineOnlyParent) {
1072
- return /* @__PURE__ */ jsx25(Fragment2, { children: hasChildren && props.node.children.map((node, index) => {
1120
+ return /* @__PURE__ */ jsx26(Fragment2, { children: hasChildren && props.node.children.map((node, index) => {
1073
1121
  const SelectedNode = NodeTypes2[node.type];
1074
- return /* @__PURE__ */ jsx25(React18.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx25(
1122
+ return /* @__PURE__ */ jsx26(React18.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx26(
1075
1123
  SelectedNode,
1076
1124
  {
1077
1125
  node,
1078
1126
  dataitem: props.dataitem,
1079
1127
  session: props.session,
1080
1128
  apiBaseUrl: props.apiBaseUrl,
1129
+ assetBaseUrl: props.assetBaseUrl,
1081
1130
  routeParameters: props.routeParameters
1082
1131
  }
1083
1132
  ) }, index);
@@ -1086,25 +1135,26 @@ var ParagraphNode = (props) => {
1086
1135
  return /* @__PURE__ */ jsxs9("div", { className: " " + formatClasses, children: [
1087
1136
  hasChildren && props.node.children.map((node, index) => {
1088
1137
  const SelectedNode = NodeTypes2[node.type];
1089
- return /* @__PURE__ */ jsx25(React18.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx25(
1138
+ return /* @__PURE__ */ jsx26(React18.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx26(
1090
1139
  SelectedNode,
1091
1140
  {
1092
1141
  node,
1093
1142
  dataitem: props.dataitem,
1094
1143
  session: props.session,
1095
1144
  apiBaseUrl: props.apiBaseUrl,
1145
+ assetBaseUrl: props.assetBaseUrl,
1096
1146
  routeParameters: props.routeParameters
1097
1147
  }
1098
1148
  ) }, index);
1099
1149
  }),
1100
- !hasChildren && /* @__PURE__ */ jsx25("div", { className: "py-1.5 lg:py-2" })
1150
+ !hasChildren && /* @__PURE__ */ jsx26("div", { className: "py-1.5 lg:py-2" })
1101
1151
  ] });
1102
1152
  };
1103
1153
  var ParagraphNode_default = ParagraphNode;
1104
1154
 
1105
1155
  // src/components/pageRenderingEngine/nodes/HeadingNode.tsx
1106
1156
  import React19 from "react";
1107
- import { Fragment as Fragment3, jsx as jsx26 } from "react/jsx-runtime";
1157
+ import { Fragment as Fragment3, jsx as jsx27 } from "react/jsx-runtime";
1108
1158
  var HeadingNode = (props) => {
1109
1159
  const NodeTypes2 = {
1110
1160
  ["text"]: TextNode_default,
@@ -1120,12 +1170,12 @@ var HeadingNode = (props) => {
1120
1170
  {
1121
1171
  }
1122
1172
  const formatClasses = FormatClass[props.node.format] || "";
1123
- return /* @__PURE__ */ jsx26(Fragment3, { children: React19.createElement(
1173
+ return /* @__PURE__ */ jsx27(Fragment3, { children: React19.createElement(
1124
1174
  HeadingTag,
1125
1175
  { className: formatClasses },
1126
1176
  props.node.children && props.node.children.map((childNode, index) => {
1127
1177
  const SelectedNode = NodeTypes2[childNode.type];
1128
- return /* @__PURE__ */ jsx26(React19.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx26(SelectedNode, { node: childNode, dataitem: props.dataitem, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
1178
+ return /* @__PURE__ */ jsx27(React19.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx27(SelectedNode, { node: childNode, dataitem: props.dataitem, session: props.session, apiBaseUrl: props.apiBaseUrl, assetBaseUrl: props.assetBaseUrl, routeParameters: props.routeParameters }) }, index);
1129
1179
  })
1130
1180
  ) });
1131
1181
  };
@@ -1136,7 +1186,7 @@ import React21 from "react";
1136
1186
 
1137
1187
  // src/components/pageRenderingEngine/nodes/ListItemNode.tsx
1138
1188
  import React20 from "react";
1139
- import { jsx as jsx27 } from "react/jsx-runtime";
1189
+ import { jsx as jsx28 } from "react/jsx-runtime";
1140
1190
  var ListItemNode = (props) => {
1141
1191
  const NodeTypes2 = {
1142
1192
  text: TextNode_default,
@@ -1153,37 +1203,37 @@ var ListItemNode = (props) => {
1153
1203
  liStyle.fontSize = match[1].trim();
1154
1204
  }
1155
1205
  }
1156
- return /* @__PURE__ */ jsx27("li", { style: liStyle, children: props.node.children && props.node.children.map((node, index) => {
1206
+ return /* @__PURE__ */ jsx28("li", { style: liStyle, children: props.node.children && props.node.children.map((node, index) => {
1157
1207
  const SelectedNode = NodeTypes2[node.type];
1158
1208
  if (node.type === "linebreak") {
1159
1209
  if (!foundFirstBreak) {
1160
1210
  foundFirstBreak = true;
1161
- return /* @__PURE__ */ jsx27("div", {}, index);
1211
+ return /* @__PURE__ */ jsx28("div", {}, index);
1162
1212
  } else {
1163
- return /* @__PURE__ */ jsx27("div", { className: "py-1 lg:py-2" }, index);
1213
+ return /* @__PURE__ */ jsx28("div", { className: "py-1 lg:py-2" }, index);
1164
1214
  }
1165
1215
  } else {
1166
1216
  foundFirstBreak = false;
1167
- return /* @__PURE__ */ jsx27(React20.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx27(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
1217
+ return /* @__PURE__ */ jsx28(React20.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx28(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
1168
1218
  }
1169
1219
  }) });
1170
1220
  };
1171
1221
  var ListItemNode_default = ListItemNode;
1172
1222
 
1173
1223
  // src/components/pageRenderingEngine/nodes/ListNode.tsx
1174
- import { jsx as jsx28, jsxs as jsxs10 } from "react/jsx-runtime";
1224
+ import { jsx as jsx29, jsxs as jsxs10 } from "react/jsx-runtime";
1175
1225
  var ListNode = (props) => {
1176
1226
  const NodeTypes2 = {
1177
1227
  listitem: ListItemNode_default
1178
1228
  };
1179
1229
  return /* @__PURE__ */ jsxs10(React21.Fragment, { children: [
1180
- props.node.listType == "bullet" && /* @__PURE__ */ jsx28("ul", { children: props.node.children && props.node.children.map((node, index) => {
1230
+ props.node.listType == "bullet" && /* @__PURE__ */ jsx29("ul", { children: props.node.children && props.node.children.map((node, index) => {
1181
1231
  const SelectedNode = NodeTypes2[node.type];
1182
- return /* @__PURE__ */ jsx28(React21.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx28(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
1232
+ return /* @__PURE__ */ jsx29(React21.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx29(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
1183
1233
  }) }),
1184
- props.node.listType == "number" && /* @__PURE__ */ jsx28("ol", { children: props.node.children && props.node.children.map((node, index) => {
1234
+ props.node.listType == "number" && /* @__PURE__ */ jsx29("ol", { children: props.node.children && props.node.children.map((node, index) => {
1185
1235
  const SelectedNode = NodeTypes2[node.type];
1186
- return /* @__PURE__ */ jsx28(React21.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx28(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
1236
+ return /* @__PURE__ */ jsx29(React21.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx29(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
1187
1237
  }) })
1188
1238
  ] });
1189
1239
  };
@@ -1191,16 +1241,16 @@ var ListNode_default = ListNode;
1191
1241
 
1192
1242
  // src/components/pageRenderingEngine/nodes/QuoteNode.tsx
1193
1243
  import React22 from "react";
1194
- import { jsx as jsx29 } from "react/jsx-runtime";
1244
+ import { jsx as jsx30 } from "react/jsx-runtime";
1195
1245
  var QuoteNode = (props) => {
1196
1246
  const NodeTypes2 = {
1197
1247
  ["text"]: TextNode_default,
1198
1248
  ["linebreak"]: LineBreakNode_default,
1199
1249
  ["link"]: LinkNode_default
1200
1250
  };
1201
- return /* @__PURE__ */ jsx29("blockquote", { children: props.node.children && props.node.children.map((node, index) => {
1251
+ return /* @__PURE__ */ jsx30("blockquote", { children: props.node.children && props.node.children.map((node, index) => {
1202
1252
  const SelectedNode = NodeTypes2[node.type];
1203
- return /* @__PURE__ */ jsx29(React22.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx29(SelectedNode, { node, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
1253
+ return /* @__PURE__ */ jsx30(React22.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx30(SelectedNode, { node, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
1204
1254
  }) });
1205
1255
  };
1206
1256
  var QuoteNode_default = QuoteNode;
@@ -1208,11 +1258,11 @@ var QuoteNode_default = QuoteNode;
1208
1258
  // src/components/pageRenderingEngine/nodes/CodeNode.tsx
1209
1259
  import React23 from "react";
1210
1260
  import dynamic7 from "next/dynamic";
1211
- import { jsx as jsx30, jsxs as jsxs11 } from "react/jsx-runtime";
1261
+ import { jsx as jsx31, jsxs as jsxs11 } from "react/jsx-runtime";
1212
1262
  var CopyButton = dynamic7(() => import("./CopyButton-UPJPMJUB.mjs"), {
1213
1263
  ssr: false,
1214
1264
  // optional: fallback UI while loading
1215
- loading: () => /* @__PURE__ */ jsx30("span", { className: "text-gray-400 text-xs", children: "Copy" })
1265
+ loading: () => /* @__PURE__ */ jsx31("span", { className: "text-gray-400 text-xs", children: "Copy" })
1216
1266
  });
1217
1267
  var CodeNode = (props) => {
1218
1268
  const NodeTypes2 = {
@@ -1228,12 +1278,12 @@ var CodeNode = (props) => {
1228
1278
  }).join("") ?? "";
1229
1279
  return /* @__PURE__ */ jsxs11("div", { children: [
1230
1280
  /* @__PURE__ */ jsxs11("div", { className: "flex items-center relative bg-neutral-strong px-4 py-3 text-xs font-sans justify-between rounded-t-md ", children: [
1231
- /* @__PURE__ */ jsx30("span", { children: "Code Snippet" }),
1232
- /* @__PURE__ */ jsx30(CopyButton, { text: textContent })
1281
+ /* @__PURE__ */ jsx31("span", { children: "Code Snippet" }),
1282
+ /* @__PURE__ */ jsx31(CopyButton, { text: textContent })
1233
1283
  ] }),
1234
- /* @__PURE__ */ jsx30("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) => {
1284
+ /* @__PURE__ */ jsx31("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) => {
1235
1285
  const SelectedNode = NodeTypes2[node.type];
1236
- return /* @__PURE__ */ jsx30(React23.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx30(
1286
+ return /* @__PURE__ */ jsx31(React23.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx31(
1237
1287
  SelectedNode,
1238
1288
  {
1239
1289
  node,
@@ -1248,15 +1298,15 @@ var CodeNode = (props) => {
1248
1298
  var CodeNode_default = CodeNode;
1249
1299
 
1250
1300
  // src/components/pageRenderingEngine/nodes/HorizontalRuleNode.tsx
1251
- import { jsx as jsx31 } from "react/jsx-runtime";
1301
+ import { jsx as jsx32 } from "react/jsx-runtime";
1252
1302
  var HorizontalRuleNode = () => {
1253
- return /* @__PURE__ */ jsx31("hr", {});
1303
+ return /* @__PURE__ */ jsx32("hr", {});
1254
1304
  };
1255
1305
  var HorizontalRuleNode_default = HorizontalRuleNode;
1256
1306
 
1257
1307
  // src/components/pageRenderingEngine/nodes/WidgetNode.tsx
1258
1308
  import React24 from "react";
1259
- import { Fragment as Fragment4, jsx as jsx32 } from "react/jsx-runtime";
1309
+ import { Fragment as Fragment4, jsx as jsx33 } from "react/jsx-runtime";
1260
1310
  var WidgetNode = (props) => {
1261
1311
  const getWidgetParameters = () => {
1262
1312
  const widgetInputParameters = {
@@ -1320,7 +1370,7 @@ var WidgetNode = (props) => {
1320
1370
  };
1321
1371
  const widgetCode = props.node?.widgetCode;
1322
1372
  if (!widgetCode) {
1323
- return /* @__PURE__ */ jsx32(Fragment4, { children: "Invalid widget" });
1373
+ return /* @__PURE__ */ jsx33(Fragment4, { children: "Invalid widget" });
1324
1374
  }
1325
1375
  const widgetParams = getWidgetParameters();
1326
1376
  const WidgetRenderer = props.widgetRenderer;
@@ -1329,7 +1379,7 @@ var WidgetNode = (props) => {
1329
1379
  }
1330
1380
  return (
1331
1381
  // eslint-disable-next-line react-hooks/static-components
1332
- /* @__PURE__ */ jsx32(React24.Fragment, { children: /* @__PURE__ */ jsx32(
1382
+ /* @__PURE__ */ jsx33(React24.Fragment, { children: /* @__PURE__ */ jsx33(
1333
1383
  WidgetRenderer,
1334
1384
  {
1335
1385
  params: widgetParams,
@@ -1351,7 +1401,7 @@ import React25 from "react";
1351
1401
 
1352
1402
  // src/components/pageRenderingEngine/nodes/EmbedNode.tsx
1353
1403
  import dynamic8 from "next/dynamic";
1354
- import { jsx as jsx33 } from "react/jsx-runtime";
1404
+ import { jsx as jsx34 } from "react/jsx-runtime";
1355
1405
  var IframeClient = dynamic8(() => import("./IframeClient-WF2KLXZB.mjs"), {
1356
1406
  ssr: false
1357
1407
  });
@@ -1364,7 +1414,7 @@ var EmbedNode = (props) => {
1364
1414
  } else {
1365
1415
  src = props.node.embedSrc;
1366
1416
  }
1367
- return /* @__PURE__ */ jsx33("div", { className: "aspect-video", children: src && /* @__PURE__ */ jsx33(IframeClient, { src }) });
1417
+ return /* @__PURE__ */ jsx34("div", { className: "aspect-video", children: src && /* @__PURE__ */ jsx34(IframeClient, { src }) });
1368
1418
  };
1369
1419
  var EmbedNode_default = EmbedNode;
1370
1420
 
@@ -1557,10 +1607,10 @@ var PathUtility = class {
1557
1607
  var PathUtility_default = new PathUtility();
1558
1608
 
1559
1609
  // src/components/NoDataFound.tsx
1560
- import { jsx as jsx34, jsxs as jsxs12 } from "react/jsx-runtime";
1610
+ import { jsx as jsx35, jsxs as jsxs12 } from "react/jsx-runtime";
1561
1611
  var NoDataFound = () => {
1562
1612
  return /* @__PURE__ */ jsxs12("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center bg-neutral-weak", children: [
1563
- /* @__PURE__ */ jsx34("div", { className: "mb-5", children: /* @__PURE__ */ jsx34("div", { className: "mx-auto w-20 h-20 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ jsx34(
1613
+ /* @__PURE__ */ jsx35("div", { className: "mb-5", children: /* @__PURE__ */ jsx35("div", { className: "mx-auto w-20 h-20 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ jsx35(
1564
1614
  "svg",
1565
1615
  {
1566
1616
  className: "w-10 h-10",
@@ -1568,7 +1618,7 @@ var NoDataFound = () => {
1568
1618
  stroke: "currentColor",
1569
1619
  viewBox: "0 0 24 24",
1570
1620
  xmlns: "http://www.w3.org/2000/svg",
1571
- children: /* @__PURE__ */ jsx34(
1621
+ children: /* @__PURE__ */ jsx35(
1572
1622
  "path",
1573
1623
  {
1574
1624
  strokeLinecap: "round",
@@ -1579,15 +1629,15 @@ var NoDataFound = () => {
1579
1629
  )
1580
1630
  }
1581
1631
  ) }) }),
1582
- /* @__PURE__ */ jsx34("h3", { className: "text-lg font-medium mb-2", children: "No data available" }),
1583
- /* @__PURE__ */ jsx34("p", { className: " max-w-sm mb-0", children: "No records found. Data may be empty or not available at the moment." })
1632
+ /* @__PURE__ */ jsx35("h3", { className: "text-lg font-medium mb-2", children: "No data available" }),
1633
+ /* @__PURE__ */ jsx35("p", { className: " max-w-sm mb-0", children: "No records found. Data may be empty or not available at the moment." })
1584
1634
  ] });
1585
1635
  };
1586
1636
  var NoDataFound_default = NoDataFound;
1587
1637
 
1588
1638
  // src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
1589
1639
  import dynamic9 from "next/dynamic";
1590
- import { Fragment as Fragment5, jsx as jsx35, jsxs as jsxs13 } from "react/jsx-runtime";
1640
+ import { Fragment as Fragment5, jsx as jsx36, jsxs as jsxs13 } from "react/jsx-runtime";
1591
1641
  var HlsPlayer3 = dynamic9(() => import("./HlsPlayer-IW52N5RG.mjs"), { ssr: false });
1592
1642
  var deviceToMediaQuery = (device) => {
1593
1643
  switch (device) {
@@ -1744,7 +1794,7 @@ var ImageGalleryNode = (props) => {
1744
1794
  };
1745
1795
  const formatClasses = FormatClass[props.node.format || ""] || "";
1746
1796
  return /* @__PURE__ */ jsxs13(Fragment5, { children: [
1747
- hlsSources.length > 0 && /* @__PURE__ */ jsx35(Fragment5, { children: /* @__PURE__ */ jsx35(
1797
+ hlsSources.length > 0 && /* @__PURE__ */ jsx36(Fragment5, { children: /* @__PURE__ */ jsx36(
1748
1798
  HlsPlayer3,
1749
1799
  {
1750
1800
  sources: hlsSources,
@@ -1759,7 +1809,7 @@ var ImageGalleryNode = (props) => {
1759
1809
  styles: hlsStyles
1760
1810
  }
1761
1811
  ) }),
1762
- (staticFallback || staticSources.length > 0) && /* @__PURE__ */ jsx35(Fragment5, { children: staticFallback ? /* @__PURE__ */ jsxs13("picture", { children: [
1812
+ (staticFallback || staticSources.length > 0) && /* @__PURE__ */ jsx36(Fragment5, { children: staticFallback ? /* @__PURE__ */ jsxs13("picture", { children: [
1763
1813
  DEVICE_ORDER.map((deviceKey) => {
1764
1814
  const match = staticSources.find(
1765
1815
  (img) => img.device === deviceKey
@@ -1775,7 +1825,7 @@ var ImageGalleryNode = (props) => {
1775
1825
  if (!srcUrl) {
1776
1826
  return null;
1777
1827
  }
1778
- return /* @__PURE__ */ jsx35(
1828
+ return /* @__PURE__ */ jsx36(
1779
1829
  "source",
1780
1830
  {
1781
1831
  media: deviceToMediaQuery(match.device),
@@ -1800,7 +1850,7 @@ var ImageGalleryNode = (props) => {
1800
1850
  if (img.borderRadius) {
1801
1851
  styles.borderRadius = img.borderRadius;
1802
1852
  }
1803
- return /* @__PURE__ */ jsx35(
1853
+ return /* @__PURE__ */ jsx36(
1804
1854
  "img",
1805
1855
  {
1806
1856
  loading: "lazy",
@@ -1815,7 +1865,7 @@ var ImageGalleryNode = (props) => {
1815
1865
  })()
1816
1866
  ] }) : (
1817
1867
  /* Case 2: Only device-specific images exist */
1818
- /* @__PURE__ */ jsx35(Fragment5, { children: staticSources.map((img, index) => {
1868
+ /* @__PURE__ */ jsx36(Fragment5, { children: staticSources.map((img, index) => {
1819
1869
  const resolved = resolveImage(img);
1820
1870
  const imageUrl = resolved?.imageUrl;
1821
1871
  if (!imageUrl) {
@@ -1842,7 +1892,7 @@ var ImageGalleryNode = (props) => {
1842
1892
  default:
1843
1893
  display = "block";
1844
1894
  }
1845
- return /* @__PURE__ */ jsx35(
1895
+ return /* @__PURE__ */ jsx36(
1846
1896
  "img",
1847
1897
  {
1848
1898
  loading: "lazy",
@@ -1982,7 +2032,7 @@ var shouldRenderContainer = (node, dataItem, session) => {
1982
2032
  };
1983
2033
 
1984
2034
  // src/components/pageRenderingEngine/nodes/DocumentNode.tsx
1985
- import { Fragment as Fragment6, jsx as jsx36, jsxs as jsxs14 } from "react/jsx-runtime";
2035
+ import { Fragment as Fragment6, jsx as jsx37, jsxs as jsxs14 } from "react/jsx-runtime";
1986
2036
  var getNestedValue5 = (obj, path) => {
1987
2037
  if (!obj || !path) return void 0;
1988
2038
  return path.split(".").reduce((current, key) => {
@@ -1996,14 +2046,14 @@ var PdfIcon = () => /* @__PURE__ */ jsxs14(
1996
2046
  viewBox: "0 0 48 48",
1997
2047
  className: "w-10 h-10",
1998
2048
  children: [
1999
- /* @__PURE__ */ jsx36(
2049
+ /* @__PURE__ */ jsx37(
2000
2050
  "path",
2001
2051
  {
2002
2052
  fill: "#e53935",
2003
2053
  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"
2004
2054
  }
2005
2055
  ),
2006
- /* @__PURE__ */ jsx36(
2056
+ /* @__PURE__ */ jsx37(
2007
2057
  "path",
2008
2058
  {
2009
2059
  fill: "#fff",
@@ -2020,48 +2070,48 @@ var ExcelIcon = () => /* @__PURE__ */ jsxs14(
2020
2070
  viewBox: "0 0 48 48",
2021
2071
  className: "w-10 h-10",
2022
2072
  children: [
2023
- /* @__PURE__ */ jsx36(
2073
+ /* @__PURE__ */ jsx37(
2024
2074
  "path",
2025
2075
  {
2026
2076
  fill: "#169154",
2027
2077
  d: "M29,6H15.744C14.781,6,14,6.781,14,7.744v7.259h15V6z"
2028
2078
  }
2029
2079
  ),
2030
- /* @__PURE__ */ jsx36(
2080
+ /* @__PURE__ */ jsx37(
2031
2081
  "path",
2032
2082
  {
2033
2083
  fill: "#18482a",
2034
2084
  d: "M14,33.054v7.202C14,41.219,14.781,42,15.743,42H29v-8.946H14z"
2035
2085
  }
2036
2086
  ),
2037
- /* @__PURE__ */ jsx36("path", { fill: "#0c8045", d: "M14 15.003H29V24.005000000000003H14z" }),
2038
- /* @__PURE__ */ jsx36("path", { fill: "#17472a", d: "M14 24.005H29V33.055H14z" }),
2087
+ /* @__PURE__ */ jsx37("path", { fill: "#0c8045", d: "M14 15.003H29V24.005000000000003H14z" }),
2088
+ /* @__PURE__ */ jsx37("path", { fill: "#17472a", d: "M14 24.005H29V33.055H14z" }),
2039
2089
  /* @__PURE__ */ jsxs14("g", { children: [
2040
- /* @__PURE__ */ jsx36(
2090
+ /* @__PURE__ */ jsx37(
2041
2091
  "path",
2042
2092
  {
2043
2093
  fill: "#29c27f",
2044
2094
  d: "M42.256,6H29v9.003h15V7.744C44,6.781,43.219,6,42.256,6z"
2045
2095
  }
2046
2096
  ),
2047
- /* @__PURE__ */ jsx36(
2097
+ /* @__PURE__ */ jsx37(
2048
2098
  "path",
2049
2099
  {
2050
2100
  fill: "#27663f",
2051
2101
  d: "M29,33.054V42h13.257C43.219,42,44,41.219,44,40.257v-7.202H29z"
2052
2102
  }
2053
2103
  ),
2054
- /* @__PURE__ */ jsx36("path", { fill: "#19ac65", d: "M29 15.003H44V24.005000000000003H29z" }),
2055
- /* @__PURE__ */ jsx36("path", { fill: "#129652", d: "M29 24.005H44V33.055H29z" })
2104
+ /* @__PURE__ */ jsx37("path", { fill: "#19ac65", d: "M29 15.003H44V24.005000000000003H29z" }),
2105
+ /* @__PURE__ */ jsx37("path", { fill: "#129652", d: "M29 24.005H44V33.055H29z" })
2056
2106
  ] }),
2057
- /* @__PURE__ */ jsx36(
2107
+ /* @__PURE__ */ jsx37(
2058
2108
  "path",
2059
2109
  {
2060
2110
  fill: "#0c7238",
2061
2111
  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"
2062
2112
  }
2063
2113
  ),
2064
- /* @__PURE__ */ jsx36(
2114
+ /* @__PURE__ */ jsx37(
2065
2115
  "path",
2066
2116
  {
2067
2117
  fill: "#fff",
@@ -2079,7 +2129,7 @@ var WordIcon = () => /* @__PURE__ */ jsxs14(
2079
2129
  className: "w-10 h-10",
2080
2130
  baseProfile: "basic",
2081
2131
  children: [
2082
- /* @__PURE__ */ jsx36(
2132
+ /* @__PURE__ */ jsx37(
2083
2133
  "path",
2084
2134
  {
2085
2135
  fill: "#283593",
@@ -2097,19 +2147,19 @@ var WordIcon = () => /* @__PURE__ */ jsxs14(
2097
2147
  gradientTransform: "translate(0 -339.89)",
2098
2148
  gradientUnits: "userSpaceOnUse",
2099
2149
  children: [
2100
- /* @__PURE__ */ jsx36("stop", { offset: "0", "stop-color": "#66c0ff" }),
2101
- /* @__PURE__ */ jsx36("stop", { offset: ".26", "stop-color": "#0094f0" })
2150
+ /* @__PURE__ */ jsx37("stop", { offset: "0", "stop-color": "#66c0ff" }),
2151
+ /* @__PURE__ */ jsx37("stop", { offset: ".26", "stop-color": "#0094f0" })
2102
2152
  ]
2103
2153
  }
2104
2154
  ),
2105
- /* @__PURE__ */ jsx36(
2155
+ /* @__PURE__ */ jsx37(
2106
2156
  "path",
2107
2157
  {
2108
2158
  fill: "url(#qh2LT5tehRDFkLLfb-odWa)",
2109
2159
  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"
2110
2160
  }
2111
2161
  ),
2112
- /* @__PURE__ */ jsx36(
2162
+ /* @__PURE__ */ jsx37(
2113
2163
  "path",
2114
2164
  {
2115
2165
  fill: "#1e88e5",
@@ -2117,21 +2167,21 @@ var WordIcon = () => /* @__PURE__ */ jsxs14(
2117
2167
  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"
2118
2168
  }
2119
2169
  ),
2120
- /* @__PURE__ */ jsx36(
2170
+ /* @__PURE__ */ jsx37(
2121
2171
  "path",
2122
2172
  {
2123
2173
  fill: "#00e5ff",
2124
2174
  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"
2125
2175
  }
2126
2176
  ),
2127
- /* @__PURE__ */ jsx36(
2177
+ /* @__PURE__ */ jsx37(
2128
2178
  "path",
2129
2179
  {
2130
2180
  fill: "#1565c0",
2131
2181
  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"
2132
2182
  }
2133
2183
  ),
2134
- /* @__PURE__ */ jsx36(
2184
+ /* @__PURE__ */ jsx37(
2135
2185
  "path",
2136
2186
  {
2137
2187
  fill: "#fff",
@@ -2148,8 +2198,8 @@ var StandardIcon = () => /* @__PURE__ */ jsxs14(
2148
2198
  viewBox: "0 0 48 48",
2149
2199
  className: "w-10 h-10",
2150
2200
  children: [
2151
- /* @__PURE__ */ jsx36("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
2152
- /* @__PURE__ */ jsx36("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" })
2201
+ /* @__PURE__ */ jsx37("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
2202
+ /* @__PURE__ */ jsx37("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" })
2153
2203
  ]
2154
2204
  }
2155
2205
  );
@@ -2160,23 +2210,23 @@ var PowerPointIcon = () => /* @__PURE__ */ jsxs14(
2160
2210
  viewBox: "0 0 48 48",
2161
2211
  className: "w-10 h-10",
2162
2212
  children: [
2163
- /* @__PURE__ */ jsx36(
2213
+ /* @__PURE__ */ jsx37(
2164
2214
  "path",
2165
2215
  {
2166
2216
  fill: "#dc4c2c",
2167
2217
  d: "M8,24c0,9.941,8.059,18,18,18s18-8.059,18-18H26H8z"
2168
2218
  }
2169
2219
  ),
2170
- /* @__PURE__ */ jsx36("path", { fill: "#f7a278", d: "M26,6v18h18C44,14.059,35.941,6,26,6z" }),
2171
- /* @__PURE__ */ jsx36("path", { fill: "#c06346", d: "M26,6C16.059,6,8,14.059,8,24h18V6z" }),
2172
- /* @__PURE__ */ jsx36(
2220
+ /* @__PURE__ */ jsx37("path", { fill: "#f7a278", d: "M26,6v18h18C44,14.059,35.941,6,26,6z" }),
2221
+ /* @__PURE__ */ jsx37("path", { fill: "#c06346", d: "M26,6C16.059,6,8,14.059,8,24h18V6z" }),
2222
+ /* @__PURE__ */ jsx37(
2173
2223
  "path",
2174
2224
  {
2175
2225
  fill: "#9b341f",
2176
2226
  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"
2177
2227
  }
2178
2228
  ),
2179
- /* @__PURE__ */ jsx36(
2229
+ /* @__PURE__ */ jsx37(
2180
2230
  "path",
2181
2231
  {
2182
2232
  fill: "#fff",
@@ -2193,9 +2243,9 @@ var TextIcon = () => /* @__PURE__ */ jsxs14(
2193
2243
  viewBox: "0 0 48 48",
2194
2244
  className: "w-10 h-10",
2195
2245
  children: [
2196
- /* @__PURE__ */ jsx36("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
2197
- /* @__PURE__ */ jsx36("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" }),
2198
- /* @__PURE__ */ jsx36(
2246
+ /* @__PURE__ */ jsx37("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
2247
+ /* @__PURE__ */ jsx37("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" }),
2248
+ /* @__PURE__ */ jsx37(
2199
2249
  "path",
2200
2250
  {
2201
2251
  fill: "#1976D2",
@@ -2215,14 +2265,14 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs14(
2215
2265
  version: "1.0",
2216
2266
  className: "w-10 h-10",
2217
2267
  children: [
2218
- /* @__PURE__ */ jsx36("defs", { children: /* @__PURE__ */ jsx36("clipPath", { id: "273d29c8a6", children: /* @__PURE__ */ jsx36(
2268
+ /* @__PURE__ */ jsx37("defs", { children: /* @__PURE__ */ jsx37("clipPath", { id: "273d29c8a6", children: /* @__PURE__ */ jsx37(
2219
2269
  "path",
2220
2270
  {
2221
2271
  d: "M 8.90625 0 L 65.90625 0 L 65.90625 75 L 8.90625 75 Z M 8.90625 0 ",
2222
2272
  "clip-rule": "nonzero"
2223
2273
  }
2224
2274
  ) }) }),
2225
- /* @__PURE__ */ jsx36("g", { "clip-path": "url(#273d29c8a6)", children: /* @__PURE__ */ jsx36(
2275
+ /* @__PURE__ */ jsx37("g", { "clip-path": "url(#273d29c8a6)", children: /* @__PURE__ */ jsx37(
2226
2276
  "path",
2227
2277
  {
2228
2278
  fill: "#ff9100",
@@ -2231,7 +2281,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs14(
2231
2281
  "fill-rule": "nonzero"
2232
2282
  }
2233
2283
  ) }),
2234
- /* @__PURE__ */ jsx36(
2284
+ /* @__PURE__ */ jsx37(
2235
2285
  "path",
2236
2286
  {
2237
2287
  fill: "#fbe9e7",
@@ -2240,7 +2290,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs14(
2240
2290
  "fill-rule": "nonzero"
2241
2291
  }
2242
2292
  ),
2243
- /* @__PURE__ */ jsx36(
2293
+ /* @__PURE__ */ jsx37(
2244
2294
  "path",
2245
2295
  {
2246
2296
  fill: "#ffe0b2",
@@ -2249,7 +2299,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs14(
2249
2299
  "fill-rule": "nonzero"
2250
2300
  }
2251
2301
  ),
2252
- /* @__PURE__ */ jsx36(
2302
+ /* @__PURE__ */ jsx37(
2253
2303
  "path",
2254
2304
  {
2255
2305
  fill: "#ffe0b2",
@@ -2258,7 +2308,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs14(
2258
2308
  "fill-rule": "nonzero"
2259
2309
  }
2260
2310
  ),
2261
- /* @__PURE__ */ jsx36(
2311
+ /* @__PURE__ */ jsx37(
2262
2312
  "path",
2263
2313
  {
2264
2314
  fill: "#ffe0b2",
@@ -2333,8 +2383,8 @@ var DocumentNode = (props) => {
2333
2383
  }
2334
2384
  }
2335
2385
  if (documents.length === 0) {
2336
- return /* @__PURE__ */ jsx36(Fragment6, { children: /* @__PURE__ */ jsxs14("div", { className: "py-4 px-2 bg-neutral-weak border rounded text-center flex flex-col gap-2", children: [
2337
- /* @__PURE__ */ jsx36("div", { className: "mx-auto w-10 h-10 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ jsx36(
2386
+ return /* @__PURE__ */ jsx37(Fragment6, { children: /* @__PURE__ */ jsxs14("div", { className: "py-4 px-2 bg-neutral-weak border rounded text-center flex flex-col gap-2", children: [
2387
+ /* @__PURE__ */ jsx37("div", { className: "mx-auto w-10 h-10 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ jsx37(
2338
2388
  "svg",
2339
2389
  {
2340
2390
  className: "w-5 h-5",
@@ -2342,7 +2392,7 @@ var DocumentNode = (props) => {
2342
2392
  stroke: "currentColor",
2343
2393
  viewBox: "0 0 24 24",
2344
2394
  xmlns: "http://www.w3.org/2000/svg",
2345
- children: /* @__PURE__ */ jsx36(
2395
+ children: /* @__PURE__ */ jsx37(
2346
2396
  "path",
2347
2397
  {
2348
2398
  strokeLinecap: "round",
@@ -2353,11 +2403,11 @@ var DocumentNode = (props) => {
2353
2403
  )
2354
2404
  }
2355
2405
  ) }),
2356
- /* @__PURE__ */ jsx36("div", { className: "text-sm font-medium", children: "No documents found" }),
2357
- /* @__PURE__ */ jsx36("div", { className: "text-xs", children: "No records found. Data may be empty or not available at the moment." })
2406
+ /* @__PURE__ */ jsx37("div", { className: "text-sm font-medium", children: "No documents found" }),
2407
+ /* @__PURE__ */ jsx37("div", { className: "text-xs", children: "No records found. Data may be empty or not available at the moment." })
2358
2408
  ] }) });
2359
2409
  }
2360
- return /* @__PURE__ */ jsx36("div", { className: "", children: documents.map((doc, index) => {
2410
+ return /* @__PURE__ */ jsx37("div", { className: "", children: documents.map((doc, index) => {
2361
2411
  const documentUrl = AssetUtility_default.resolveUrl(
2362
2412
  props.assetBaseUrl,
2363
2413
  doc.assetUrl
@@ -2381,8 +2431,8 @@ var DocumentNode = (props) => {
2381
2431
  className: `flex items-center justify-between py-4 bg-default gap-4 ${index !== 0 ? "border-t" : ""}`,
2382
2432
  children: [
2383
2433
  /* @__PURE__ */ jsxs14("div", { className: "flex items-center space-x-4", children: [
2384
- /* @__PURE__ */ jsx36("div", { className: "flex items-center justify-center p-2 rounded bg-neutral-soft", children: /* @__PURE__ */ jsx36(Icon, {}) }),
2385
- /* @__PURE__ */ jsx36("div", { className: "flex items-baseline space-x-2", children: /* @__PURE__ */ jsx36("h4", { className: "text-base font-semibold", children: documentTitle }) })
2434
+ /* @__PURE__ */ jsx37("div", { className: "flex items-center justify-center p-2 rounded bg-neutral-soft", children: /* @__PURE__ */ jsx37(Icon, {}) }),
2435
+ /* @__PURE__ */ jsx37("div", { className: "flex items-baseline space-x-2", children: /* @__PURE__ */ jsx37("h4", { className: "text-base font-semibold", children: documentTitle }) })
2386
2436
  ] }),
2387
2437
  /* @__PURE__ */ jsxs14(
2388
2438
  "a",
@@ -2400,7 +2450,7 @@ var DocumentNode = (props) => {
2400
2450
  stroke: "currentColor",
2401
2451
  viewBox: "0 0 24 24",
2402
2452
  children: [
2403
- /* @__PURE__ */ jsx36(
2453
+ /* @__PURE__ */ jsx37(
2404
2454
  "path",
2405
2455
  {
2406
2456
  strokeLinecap: "round",
@@ -2409,7 +2459,7 @@ var DocumentNode = (props) => {
2409
2459
  d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"
2410
2460
  }
2411
2461
  ),
2412
- /* @__PURE__ */ jsx36(
2462
+ /* @__PURE__ */ jsx37(
2413
2463
  "path",
2414
2464
  {
2415
2465
  strokeLinecap: "round",
@@ -2435,13 +2485,13 @@ var DocumentNode_default = DocumentNode;
2435
2485
 
2436
2486
  // src/components/pageRenderingEngine/nodes/GoogleMapNode.tsx
2437
2487
  import dynamic10 from "next/dynamic";
2438
- import { jsx as jsx37 } from "react/jsx-runtime";
2488
+ import { jsx as jsx38 } from "react/jsx-runtime";
2439
2489
  var IframeClient2 = dynamic10(() => import("./IframeClient-WF2KLXZB.mjs"), {
2440
2490
  ssr: false
2441
2491
  });
2442
2492
  var GoogleMapNode = (props) => {
2443
2493
  let src = props.node.embedUrl;
2444
- return /* @__PURE__ */ jsx37("div", { className: "google-map-container", children: src && /* @__PURE__ */ jsx37(
2494
+ return /* @__PURE__ */ jsx38("div", { className: "google-map-container", children: src && /* @__PURE__ */ jsx38(
2445
2495
  IframeClient2,
2446
2496
  {
2447
2497
  src,
@@ -2453,7 +2503,7 @@ var GoogleMapNode = (props) => {
2453
2503
  var GoogleMapNode_default = GoogleMapNode;
2454
2504
 
2455
2505
  // src/components/pageRenderingEngine/nodes/DivContainer.tsx
2456
- import { jsx as jsx38, jsxs as jsxs15 } from "react/jsx-runtime";
2506
+ import { jsx as jsx39, jsxs as jsxs15 } from "react/jsx-runtime";
2457
2507
  var Pagination = dynamic11(() => import("./Pagination-T7Z2NXKO.mjs"), { ssr: true });
2458
2508
  var DataBindingControls = dynamic11(() => import("./DataBindingControls-ESDLOHNB.mjs"), {
2459
2509
  ssr: true
@@ -2712,7 +2762,7 @@ var DivContainer = async (props) => {
2712
2762
  response = await serviceClient.get(endpoint);
2713
2763
  result = response?.result;
2714
2764
  if (dataBindingProperties.showNoResultsMessage && (result === void 0 || result.length == 0)) {
2715
- return /* @__PURE__ */ jsx38(NoDataFound_default, {});
2765
+ return /* @__PURE__ */ jsx39(NoDataFound_default, {});
2716
2766
  }
2717
2767
  if (dataBindingProperties.childCollectionName && props.dataitem) {
2718
2768
  childCollectionData = getNestedValue6(
@@ -2732,7 +2782,7 @@ var DivContainer = async (props) => {
2732
2782
  }
2733
2783
  const SelectedNode = NodeTypes2[node.type];
2734
2784
  if (!SelectedNode) return null;
2735
- return /* @__PURE__ */ jsx38(React25.Fragment, { children: /* @__PURE__ */ jsx38(
2785
+ return /* @__PURE__ */ jsx39(React25.Fragment, { children: /* @__PURE__ */ jsx39(
2736
2786
  SelectedNode,
2737
2787
  {
2738
2788
  node,
@@ -2869,7 +2919,7 @@ var DivContainer = async (props) => {
2869
2919
  dataBindingProperties?.showFacets || dataBindingProperties?.showSortOptions || dataBindingProperties?.showSearchBar
2870
2920
  );
2871
2921
  const WrapperComponent = Wrapper;
2872
- const renderedContainer = /* @__PURE__ */ jsx38(
2922
+ const renderedContainer = /* @__PURE__ */ jsx39(
2873
2923
  WrapperComponent,
2874
2924
  {
2875
2925
  id: guid,
@@ -2883,11 +2933,11 @@ var DivContainer = async (props) => {
2883
2933
  item,
2884
2934
  idx,
2885
2935
  props.href ? void 0 : item?.links?.view
2886
- )?.map((child, i) => /* @__PURE__ */ jsx38(React25.Fragment, { children: child }, i)) : renderChildren2(props.node.children, props, item, idx)
2936
+ )?.map((child, i) => /* @__PURE__ */ jsx39(React25.Fragment, { children: child }, i)) : renderChildren2(props.node.children, props, item, idx)
2887
2937
  )
2888
2938
  }
2889
2939
  );
2890
- const paginationControl = dataBindingProperties?.enablePagination ? /* @__PURE__ */ jsx38(
2940
+ const paginationControl = dataBindingProperties?.enablePagination ? /* @__PURE__ */ jsx39(
2891
2941
  Pagination,
2892
2942
  {
2893
2943
  path: props.path,
@@ -2896,14 +2946,14 @@ var DivContainer = async (props) => {
2896
2946
  }
2897
2947
  ) : null;
2898
2948
  return /* @__PURE__ */ jsxs15(React25.Fragment, { children: [
2899
- /* @__PURE__ */ jsx38(
2949
+ /* @__PURE__ */ jsx39(
2900
2950
  "style",
2901
2951
  {
2902
2952
  dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS }
2903
2953
  }
2904
2954
  ),
2905
2955
  showDataBindingControls ? /* @__PURE__ */ jsxs15(React25.Fragment, { children: [
2906
- /* @__PURE__ */ jsx38(
2956
+ /* @__PURE__ */ jsx39(
2907
2957
  DataBindingControls,
2908
2958
  {
2909
2959
  mode: "toolbar",
@@ -2925,8 +2975,8 @@ var DivContainer = async (props) => {
2925
2975
  paginationControl
2926
2976
  ] }),
2927
2977
  dataBindingProperties?.showFacets && /* @__PURE__ */ jsxs15("aside", { className: "border bg-default p-3 lg:sticky lg:top-[90px] lg:self-start", children: [
2928
- /* @__PURE__ */ jsx38("h2", { className: "mb-2 text-lg font-semibold", children: "Filters" }),
2929
- /* @__PURE__ */ jsx38(
2978
+ /* @__PURE__ */ jsx39("h2", { className: "mb-2 text-lg font-semibold", children: "Filters" }),
2979
+ /* @__PURE__ */ jsx39(
2930
2980
  DataBindingControls,
2931
2981
  {
2932
2982
  mode: "facets",
@@ -2942,14 +2992,14 @@ var DivContainer = async (props) => {
2942
2992
  )
2943
2993
  ] }) : /* @__PURE__ */ jsxs15(React25.Fragment, { children: [
2944
2994
  renderedContainer,
2945
- paginationControl && /* @__PURE__ */ jsx38("div", { children: paginationControl })
2995
+ paginationControl && /* @__PURE__ */ jsx39("div", { children: paginationControl })
2946
2996
  ] })
2947
2997
  ] });
2948
2998
  };
2949
2999
  var DivContainer_default = DivContainer;
2950
3000
 
2951
3001
  // src/components/pageRenderingEngine/PageBodyRenderer.tsx
2952
- import { jsx as jsx39 } from "react/jsx-runtime";
3002
+ import { jsx as jsx40 } from "react/jsx-runtime";
2953
3003
  var NodeTypes = {
2954
3004
  ["paragraph"]: ParagraphNode_default,
2955
3005
  ["heading"]: HeadingNode_default,
@@ -2987,14 +3037,14 @@ var PageBodyRenderer = (props) => {
2987
3037
  }
2988
3038
  return true;
2989
3039
  };
2990
- return /* @__PURE__ */ jsx39(React26.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
3040
+ return /* @__PURE__ */ jsx40(React26.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
2991
3041
  {
2992
3042
  }
2993
3043
  const SelectedNode = NodeTypes[node.type];
2994
3044
  if (!shouldRenderNode(node)) {
2995
3045
  return null;
2996
3046
  }
2997
- return /* @__PURE__ */ jsx39(React26.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx39(React26.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ jsx39(React26.Fragment, { children: /* @__PURE__ */ jsx39(
3047
+ return /* @__PURE__ */ jsx40(React26.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx40(React26.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ jsx40(React26.Fragment, { children: /* @__PURE__ */ jsx40(
2998
3048
  SelectedNode,
2999
3049
  {
3000
3050
  node,
@@ -3010,7 +3060,7 @@ var PageBodyRenderer = (props) => {
3010
3060
  device: props.device,
3011
3061
  widgetRenderer: props.widgetRenderer
3012
3062
  }
3013
- ) }) : /* @__PURE__ */ jsx39(React26.Fragment, { children: /* @__PURE__ */ jsx39(
3063
+ ) }) : /* @__PURE__ */ jsx40(React26.Fragment, { children: /* @__PURE__ */ jsx40(
3014
3064
  SelectedNode,
3015
3065
  {
3016
3066
  node,
@@ -3080,7 +3130,7 @@ function EnterAnimationHydrator() {
3080
3130
 
3081
3131
  // src/components/Toast.tsx
3082
3132
  import { useCallback, useEffect as useEffect2, useRef, useState } from "react";
3083
- import { Fragment as Fragment7, jsx as jsx40, jsxs as jsxs16 } from "react/jsx-runtime";
3133
+ import { Fragment as Fragment7, jsx as jsx41, jsxs as jsxs16 } from "react/jsx-runtime";
3084
3134
  var Toast = () => {
3085
3135
  const [showToast, setShowToast] = useState(false);
3086
3136
  const [message, setMessage] = useState("");
@@ -3114,8 +3164,8 @@ var Toast = () => {
3114
3164
  });
3115
3165
  };
3116
3166
  }, [closeToast, showMessage]);
3117
- return /* @__PURE__ */ jsx40(Fragment7, { children: showToast && /* @__PURE__ */ jsx40("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__ */ jsxs16("div", { className: `w-full items-center flex justify-between p-3 rounded-md relative shadow border bg-${messageType}-soft`, children: [
3118
- /* @__PURE__ */ jsx40(
3167
+ return /* @__PURE__ */ jsx41(Fragment7, { children: showToast && /* @__PURE__ */ jsx41("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__ */ jsxs16("div", { className: `w-full items-center flex justify-between p-3 rounded-md relative shadow border bg-${messageType}-soft`, children: [
3168
+ /* @__PURE__ */ jsx41(
3119
3169
  "span",
3120
3170
  {
3121
3171
  className: "font-medium text-inherit text-sm",
@@ -3123,7 +3173,7 @@ var Toast = () => {
3123
3173
  children: message
3124
3174
  }
3125
3175
  ),
3126
- /* @__PURE__ */ jsx40("button", { className: "absolute right-2 top-2 ml-2 focus:outline-none", onClick: closeToast, children: /* @__PURE__ */ jsx40(
3176
+ /* @__PURE__ */ jsx41("button", { className: "absolute right-2 top-2 ml-2 focus:outline-none", onClick: closeToast, children: /* @__PURE__ */ jsx41(
3127
3177
  "svg",
3128
3178
  {
3129
3179
  xmlns: "http://www.w3.org/2000/svg",
@@ -3131,7 +3181,7 @@ var Toast = () => {
3131
3181
  fill: "none",
3132
3182
  viewBox: "0 0 24 24",
3133
3183
  stroke: "currentColor",
3134
- children: /* @__PURE__ */ jsx40("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M6 18L18 6M6 6l12 12" })
3184
+ children: /* @__PURE__ */ jsx41("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M6 18L18 6M6 6l12 12" })
3135
3185
  }
3136
3186
  ) })
3137
3187
  ] }) }) });
@@ -3141,7 +3191,7 @@ var Toast_default = Toast;
3141
3191
  // src/components/NavigationTabsV2.tsx
3142
3192
  import Link2 from "next/link";
3143
3193
  import { usePathname } from "next/navigation";
3144
- import { jsx as jsx41 } from "react/jsx-runtime";
3194
+ import { jsx as jsx42 } from "react/jsx-runtime";
3145
3195
  function resolveRoutePlaceholders(route, params) {
3146
3196
  return route.replace(/\{([^}]+)\}/g, (match, key) => {
3147
3197
  const value = params[key];
@@ -3166,8 +3216,8 @@ var NavigationTabsV2 = ({ tabs, params = {} }) => {
3166
3216
  isActive: tab.isActive
3167
3217
  })) || [];
3168
3218
  if (mappedTabs.length === 0) return null;
3169
- return /* @__PURE__ */ jsx41("div", { className: "flex border-b bg-white rounded-t mb-3", children: mappedTabs.map(({ tabTitle, landingPageUrl, isActive }) => {
3170
- return /* @__PURE__ */ jsx41(Link2, { href: landingPageUrl, className: "-mb-px", children: /* @__PURE__ */ jsx41(
3219
+ return /* @__PURE__ */ jsx42("div", { className: "flex border-b bg-white rounded-t mb-3", children: mappedTabs.map(({ tabTitle, landingPageUrl, isActive }) => {
3220
+ return /* @__PURE__ */ jsx42(Link2, { href: landingPageUrl, className: "-mb-px", children: /* @__PURE__ */ jsx42(
3171
3221
  "div",
3172
3222
  {
3173
3223
  className: `text-sm font-medium border-b-2 px-6 py-2 transition
@@ -3185,46 +3235,46 @@ import { useRouter } from "next/navigation";
3185
3235
 
3186
3236
  // src/components/dataForm/NoContentView.tsx
3187
3237
  import React28 from "react";
3188
- import { jsx as jsx42 } from "react/jsx-runtime";
3238
+ import { jsx as jsx43 } from "react/jsx-runtime";
3189
3239
  var NoContentView = (props) => {
3190
- return /* @__PURE__ */ jsx42(React28.Fragment, { children: props.isDataFound === false && props.children });
3240
+ return /* @__PURE__ */ jsx43(React28.Fragment, { children: props.isDataFound === false && props.children });
3191
3241
  };
3192
3242
  var NoContentView_default = NoContentView;
3193
3243
 
3194
3244
  // src/components/dataForm/ContentView.tsx
3195
3245
  import React29 from "react";
3196
- import { jsx as jsx43, jsxs as jsxs17 } from "react/jsx-runtime";
3246
+ import { jsx as jsx44, jsxs as jsxs17 } from "react/jsx-runtime";
3197
3247
  var ContentView = (props) => {
3198
3248
  return /* @__PURE__ */ jsxs17(React29.Fragment, { children: [
3199
- props.isDataFound == null && /* @__PURE__ */ jsx43("div", { className: "", children: /* @__PURE__ */ jsxs17("div", { className: "bg-gray-200 rounded-md p-4 animate-pulse", children: [
3249
+ props.isDataFound == null && /* @__PURE__ */ jsx44("div", { className: "", children: /* @__PURE__ */ jsxs17("div", { className: "bg-gray-200 rounded-md p-4 animate-pulse", children: [
3200
3250
  /* @__PURE__ */ jsxs17("div", { className: "flex items-center mb-4", children: [
3201
- /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
3251
+ /* @__PURE__ */ jsx44("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
3202
3252
  /* @__PURE__ */ jsxs17("div", { className: "ml-2", children: [
3203
- /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
3204
- /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
3253
+ /* @__PURE__ */ jsx44("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
3254
+ /* @__PURE__ */ jsx44("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
3205
3255
  ] })
3206
3256
  ] }),
3207
3257
  /* @__PURE__ */ jsxs17("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
3208
3258
  /* @__PURE__ */ jsxs17("div", { className: "animate-pulse", children: [
3209
- /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
3210
- /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
3211
- /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
3212
- /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
3213
- /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
3259
+ /* @__PURE__ */ jsx44("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
3260
+ /* @__PURE__ */ jsx44("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
3261
+ /* @__PURE__ */ jsx44("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
3262
+ /* @__PURE__ */ jsx44("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
3263
+ /* @__PURE__ */ jsx44("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
3214
3264
  ] }),
3215
3265
  /* @__PURE__ */ jsxs17("div", { className: "animate-pulse", children: [
3216
- /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
3217
- /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
3218
- /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
3219
- /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
3220
- /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
3266
+ /* @__PURE__ */ jsx44("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
3267
+ /* @__PURE__ */ jsx44("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
3268
+ /* @__PURE__ */ jsx44("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
3269
+ /* @__PURE__ */ jsx44("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
3270
+ /* @__PURE__ */ jsx44("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
3221
3271
  ] }),
3222
3272
  /* @__PURE__ */ jsxs17("div", { className: "animate-pulse", children: [
3223
- /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
3224
- /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
3225
- /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
3226
- /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
3227
- /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
3273
+ /* @__PURE__ */ jsx44("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
3274
+ /* @__PURE__ */ jsx44("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
3275
+ /* @__PURE__ */ jsx44("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
3276
+ /* @__PURE__ */ jsx44("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
3277
+ /* @__PURE__ */ jsx44("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
3228
3278
  ] })
3229
3279
  ] })
3230
3280
  ] }) }),
@@ -3278,7 +3328,7 @@ function FormReducer(state, action) {
3278
3328
  var FormReducer_default = FormReducer;
3279
3329
 
3280
3330
  // src/components/dataForm/DataList.tsx
3281
- import { Fragment as Fragment8, jsx as jsx44, jsxs as jsxs18 } from "react/jsx-runtime";
3331
+ import { Fragment as Fragment8, jsx as jsx45, jsxs as jsxs18 } from "react/jsx-runtime";
3282
3332
  var DataList = (props) => {
3283
3333
  const router = useRouter();
3284
3334
  let builder = new OdataBuilder(props.path);
@@ -3316,7 +3366,7 @@ var DataList = (props) => {
3316
3366
  if (path.includes(".")) {
3317
3367
  return path.split(".").reduce((prev, curr) => prev ? prev[curr] : null, obj);
3318
3368
  } else if (Array.isArray(obj[path])) {
3319
- return obj[path].map((item, index) => /* @__PURE__ */ jsx44("div", { children: item }, index));
3369
+ return obj[path].map((item, index) => /* @__PURE__ */ jsx45("div", { children: item }, index));
3320
3370
  } else {
3321
3371
  return obj[path];
3322
3372
  }
@@ -3395,30 +3445,30 @@ var DataList = (props) => {
3395
3445
  const renderPageNumbers = () => {
3396
3446
  if (pages <= 10) {
3397
3447
  return Array.from({ length: pages }, (_, index) => index + 1).map(
3398
- (page) => /* @__PURE__ */ jsx44(React30.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx44(
3448
+ (page) => /* @__PURE__ */ jsx45(React30.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx45(
3399
3449
  Hyperlink,
3400
3450
  {
3401
3451
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
3402
3452
  href: builder.getNewPageUrl(page),
3403
3453
  children: page
3404
3454
  }
3405
- ) : /* @__PURE__ */ jsx44("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)
3455
+ ) : /* @__PURE__ */ jsx45("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)
3406
3456
  );
3407
3457
  } else {
3408
3458
  const showFirstPages = activePageNumber <= 5;
3409
3459
  const showLastPages = activePageNumber > pages - 5;
3410
3460
  if (showFirstPages) {
3411
3461
  return /* @__PURE__ */ jsxs18(Fragment8, { children: [
3412
- Array.from({ length: 8 }, (_, index) => index + 1).map((page) => /* @__PURE__ */ jsx44(React30.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx44(
3462
+ Array.from({ length: 8 }, (_, index) => index + 1).map((page) => /* @__PURE__ */ jsx45(React30.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx45(
3413
3463
  Hyperlink,
3414
3464
  {
3415
3465
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
3416
3466
  href: builder.getNewPageUrl(page),
3417
3467
  children: page
3418
3468
  }
3419
- ) : /* @__PURE__ */ jsx44("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)),
3420
- /* @__PURE__ */ jsx44("span", { className: "px-2 py-1", children: "..." }),
3421
- /* @__PURE__ */ jsx44(
3469
+ ) : /* @__PURE__ */ jsx45("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)),
3470
+ /* @__PURE__ */ jsx45("span", { className: "px-2 py-1", children: "..." }),
3471
+ /* @__PURE__ */ jsx45(
3422
3472
  Hyperlink,
3423
3473
  {
3424
3474
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -3426,7 +3476,7 @@ var DataList = (props) => {
3426
3476
  children: pages - 1
3427
3477
  }
3428
3478
  ),
3429
- /* @__PURE__ */ jsx44(
3479
+ /* @__PURE__ */ jsx45(
3430
3480
  Hyperlink,
3431
3481
  {
3432
3482
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -3434,7 +3484,7 @@ var DataList = (props) => {
3434
3484
  children: pages
3435
3485
  }
3436
3486
  ),
3437
- /* @__PURE__ */ jsx44("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs18(
3487
+ /* @__PURE__ */ jsx45("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs18(
3438
3488
  "select",
3439
3489
  {
3440
3490
  className: " py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
@@ -3446,18 +3496,18 @@ var DataList = (props) => {
3446
3496
  }
3447
3497
  },
3448
3498
  children: [
3449
- /* @__PURE__ */ jsx44("option", { className: "", value: "", children: "Jump to" }),
3499
+ /* @__PURE__ */ jsx45("option", { className: "", value: "", children: "Jump to" }),
3450
3500
  Array.from(
3451
3501
  { length: Math.max(0, pages - 10) },
3452
3502
  (_, index) => index + 9
3453
- ).map((page) => /* @__PURE__ */ jsx44("option", { value: page, children: page }, page))
3503
+ ).map((page) => /* @__PURE__ */ jsx45("option", { value: page, children: page }, page))
3454
3504
  ]
3455
3505
  }
3456
3506
  ) })
3457
3507
  ] });
3458
3508
  } else if (showLastPages) {
3459
3509
  return /* @__PURE__ */ jsxs18(Fragment8, { children: [
3460
- /* @__PURE__ */ jsx44(
3510
+ /* @__PURE__ */ jsx45(
3461
3511
  Hyperlink,
3462
3512
  {
3463
3513
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -3465,7 +3515,7 @@ var DataList = (props) => {
3465
3515
  children: "1"
3466
3516
  }
3467
3517
  ),
3468
- /* @__PURE__ */ jsx44(
3518
+ /* @__PURE__ */ jsx45(
3469
3519
  Hyperlink,
3470
3520
  {
3471
3521
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -3473,21 +3523,21 @@ var DataList = (props) => {
3473
3523
  children: "2"
3474
3524
  }
3475
3525
  ),
3476
- /* @__PURE__ */ jsx44("span", { className: "px-2 py-1", children: "..." }),
3526
+ /* @__PURE__ */ jsx45("span", { className: "px-2 py-1", children: "..." }),
3477
3527
  Array.from({ length: 8 }, (_, index) => pages - 7 + index).map(
3478
- (page) => /* @__PURE__ */ jsx44(React30.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx44(
3528
+ (page) => /* @__PURE__ */ jsx45(React30.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx45(
3479
3529
  Hyperlink,
3480
3530
  {
3481
3531
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
3482
3532
  href: builder.getNewPageUrl(page),
3483
3533
  children: page
3484
3534
  }
3485
- ) : /* @__PURE__ */ jsx44("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)
3535
+ ) : /* @__PURE__ */ jsx45("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)
3486
3536
  )
3487
3537
  ] });
3488
3538
  } else {
3489
3539
  return /* @__PURE__ */ jsxs18(Fragment8, { children: [
3490
- /* @__PURE__ */ jsx44(
3540
+ /* @__PURE__ */ jsx45(
3491
3541
  Hyperlink,
3492
3542
  {
3493
3543
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -3495,7 +3545,7 @@ var DataList = (props) => {
3495
3545
  children: "1"
3496
3546
  }
3497
3547
  ),
3498
- /* @__PURE__ */ jsx44(
3548
+ /* @__PURE__ */ jsx45(
3499
3549
  Hyperlink,
3500
3550
  {
3501
3551
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -3503,20 +3553,20 @@ var DataList = (props) => {
3503
3553
  children: "2"
3504
3554
  }
3505
3555
  ),
3506
- /* @__PURE__ */ jsx44("span", { className: "px-2 py-1", children: "..." }),
3556
+ /* @__PURE__ */ jsx45("span", { className: "px-2 py-1", children: "..." }),
3507
3557
  Array.from(
3508
3558
  { length: 5 },
3509
3559
  (_, index) => activePageNumber - 2 + index
3510
- ).map((page) => /* @__PURE__ */ jsx44(React30.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx44(
3560
+ ).map((page) => /* @__PURE__ */ jsx45(React30.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx45(
3511
3561
  Hyperlink,
3512
3562
  {
3513
3563
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
3514
3564
  href: builder.getNewPageUrl(page),
3515
3565
  children: page
3516
3566
  }
3517
- ) : /* @__PURE__ */ jsx44("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)),
3518
- /* @__PURE__ */ jsx44("span", { className: "px-2 py-1", children: "..." }),
3519
- /* @__PURE__ */ jsx44(
3567
+ ) : /* @__PURE__ */ jsx45("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)),
3568
+ /* @__PURE__ */ jsx45("span", { className: "px-2 py-1", children: "..." }),
3569
+ /* @__PURE__ */ jsx45(
3520
3570
  Hyperlink,
3521
3571
  {
3522
3572
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -3524,7 +3574,7 @@ var DataList = (props) => {
3524
3574
  children: pages - 1
3525
3575
  }
3526
3576
  ),
3527
- /* @__PURE__ */ jsx44(
3577
+ /* @__PURE__ */ jsx45(
3528
3578
  Hyperlink,
3529
3579
  {
3530
3580
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -3532,7 +3582,7 @@ var DataList = (props) => {
3532
3582
  children: pages
3533
3583
  }
3534
3584
  ),
3535
- /* @__PURE__ */ jsx44("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs18(
3585
+ /* @__PURE__ */ jsx45("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs18(
3536
3586
  "select",
3537
3587
  {
3538
3588
  className: "px-2 py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
@@ -3544,8 +3594,8 @@ var DataList = (props) => {
3544
3594
  }
3545
3595
  },
3546
3596
  children: [
3547
- /* @__PURE__ */ jsx44("option", { value: "", children: "Jump to" }),
3548
- Array.from({ length: pages - 4 }, (_, index) => index + 3).filter((page) => page > 2 && page < pages - 1).map((page) => /* @__PURE__ */ jsx44("option", { value: page, children: page }, page))
3597
+ /* @__PURE__ */ jsx45("option", { value: "", children: "Jump to" }),
3598
+ Array.from({ length: pages - 4 }, (_, index) => index + 3).filter((page) => page > 2 && page < pages - 1).map((page) => /* @__PURE__ */ jsx45("option", { value: page, children: page }, page))
3549
3599
  ]
3550
3600
  }
3551
3601
  ) })
@@ -3560,9 +3610,9 @@ var DataList = (props) => {
3560
3610
  {
3561
3611
  className: `flex justify-between items-center bg-white pl-6 pr-2 h-14 mb-3 shadow-sm rounded-md sticky top-0`,
3562
3612
  children: [
3563
- props.title ? /* @__PURE__ */ jsx44("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ jsx44("h2", { className: "text-lg font-semibold text-black-800", children: props.title }) }) : /* @__PURE__ */ jsx44("div", {}),
3613
+ props.title ? /* @__PURE__ */ jsx45("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ jsx45("h2", { className: "text-lg font-semibold text-black-800", children: props.title }) }) : /* @__PURE__ */ jsx45("div", {}),
3564
3614
  /* @__PURE__ */ jsxs18("div", { className: "flex items-center gap-3", children: [
3565
- props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ jsx44(
3615
+ props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ jsx45(
3566
3616
  InputControl_default,
3567
3617
  {
3568
3618
  name: "Search_input",
@@ -3574,7 +3624,7 @@ var DataList = (props) => {
3574
3624
  }
3575
3625
  }
3576
3626
  ),
3577
- props.filters && props.filters.map((filter) => /* @__PURE__ */ jsx44(
3627
+ props.filters && props.filters.map((filter) => /* @__PURE__ */ jsx45(
3578
3628
  InputControl_default,
3579
3629
  {
3580
3630
  name: filter.name,
@@ -3596,8 +3646,8 @@ var DataList = (props) => {
3596
3646
  linkType: "Primary" /* Solid */,
3597
3647
  href: props.addLinkHref,
3598
3648
  children: [
3599
- /* @__PURE__ */ jsx44(Icon_default, { name: "plus", className: "w-4 h-4" }),
3600
- /* @__PURE__ */ jsx44("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
3649
+ /* @__PURE__ */ jsx45(Icon_default, { name: "plus", className: "w-4 h-4" }),
3650
+ /* @__PURE__ */ jsx45("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
3601
3651
  ]
3602
3652
  }
3603
3653
  )
@@ -3605,8 +3655,8 @@ var DataList = (props) => {
3605
3655
  ]
3606
3656
  }
3607
3657
  ),
3608
- /* @__PURE__ */ jsx44("div", { className: "flex-1 overflow-y-auto justify-end bg-white rounded shadow h-[calc(100vh-14rem)]", children: /* @__PURE__ */ jsxs18("table", { className: "w-full divide-y divide-gray-200", children: [
3609
- /* @__PURE__ */ jsx44("thead", { className: "bg-gray-50 sticky top-0", children: /* @__PURE__ */ jsx44("tr", { children: props?.columns?.map((column) => {
3658
+ /* @__PURE__ */ jsx45("div", { className: "flex-1 overflow-y-auto justify-end bg-white rounded shadow h-[calc(100vh-14rem)]", children: /* @__PURE__ */ jsxs18("table", { className: "w-full divide-y divide-gray-200", children: [
3659
+ /* @__PURE__ */ jsx45("thead", { className: "bg-gray-50 sticky top-0", children: /* @__PURE__ */ jsx45("tr", { children: props?.columns?.map((column) => {
3610
3660
  let url = builder.getNewOrderByUrl(column.name);
3611
3661
  let icon = "chevronUpDown";
3612
3662
  if (orderBy.includes(`${column.name} desc`)) {
@@ -3616,18 +3666,18 @@ var DataList = (props) => {
3616
3666
  icon = "chevronUp";
3617
3667
  url = builder.getNewOrderByUrl(column.name + " desc");
3618
3668
  }
3619
- return /* @__PURE__ */ jsx44(
3669
+ return /* @__PURE__ */ jsx45(
3620
3670
  "th",
3621
3671
  {
3622
3672
  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" : ""),
3623
- children: /* @__PURE__ */ jsx44(
3673
+ children: /* @__PURE__ */ jsx45(
3624
3674
  Hyperlink,
3625
3675
  {
3626
3676
  href: column.enableSorting ? url : void 0,
3627
3677
  className: "!text-neutral-contrast ",
3628
3678
  children: /* @__PURE__ */ jsxs18("span", { className: "flex items-center space-x-1", children: [
3629
- /* @__PURE__ */ jsx44("span", { className: "text-black", children: column.label }),
3630
- column.enableSorting && /* @__PURE__ */ jsx44(Icon_default, { className: "w-4 h-4", name: icon })
3679
+ /* @__PURE__ */ jsx45("span", { className: "text-black", children: column.label }),
3680
+ column.enableSorting && /* @__PURE__ */ jsx45(Icon_default, { className: "w-4 h-4", name: icon })
3631
3681
  ] })
3632
3682
  }
3633
3683
  )
@@ -3635,22 +3685,22 @@ var DataList = (props) => {
3635
3685
  column.name
3636
3686
  );
3637
3687
  }) }) }),
3638
- /* @__PURE__ */ jsx44("tbody", { className: "divide-y divide-gray-200 ", children: props.dataset?.result?.map((dataitem, index) => {
3688
+ /* @__PURE__ */ jsx45("tbody", { className: "divide-y divide-gray-200 ", children: props.dataset?.result?.map((dataitem, index) => {
3639
3689
  let validityClass = "";
3640
3690
  if (props.recordValidityColumnName && getNestedProperty2(dataitem, props.recordValidityColumnName) == false) {
3641
3691
  validityClass = "bg-alert-200";
3642
3692
  }
3643
- return /* @__PURE__ */ jsx44("tr", { className: validityClass, children: props?.columns?.map((column, colindex) => {
3644
- return /* @__PURE__ */ jsx44(React30.Fragment, { children: /* @__PURE__ */ jsx44(
3693
+ return /* @__PURE__ */ jsx45("tr", { className: validityClass, children: props?.columns?.map((column, colindex) => {
3694
+ return /* @__PURE__ */ jsx45(React30.Fragment, { children: /* @__PURE__ */ jsx45(
3645
3695
  "td",
3646
3696
  {
3647
3697
  className: "px-6 py-2 whitespace-normal " + (column.controlType == ViewControlTypes_default.money ? "" : ""),
3648
- children: column.addhref === true ? /* @__PURE__ */ jsx44(
3698
+ children: column.addhref === true ? /* @__PURE__ */ jsx45(
3649
3699
  Hyperlink,
3650
3700
  {
3651
3701
  className: "",
3652
3702
  href: `https://${dataitem[column.name]}`,
3653
- children: /* @__PURE__ */ jsx44(
3703
+ children: /* @__PURE__ */ jsx45(
3654
3704
  ViewControl_default,
3655
3705
  {
3656
3706
  controlType: column.controlType,
@@ -3663,11 +3713,11 @@ var DataList = (props) => {
3663
3713
  }
3664
3714
  )
3665
3715
  }
3666
- ) : column.showAsLink ? /* @__PURE__ */ jsx44(
3716
+ ) : column.showAsLink ? /* @__PURE__ */ jsx45(
3667
3717
  Hyperlink,
3668
3718
  {
3669
3719
  href: props.path + dataitem[props.columns[0].name] + "/" + (dataitem.linkUrlSegment ?? column.linkUrlSegment),
3670
- children: /* @__PURE__ */ jsx44(
3720
+ children: /* @__PURE__ */ jsx45(
3671
3721
  ViewControl_default,
3672
3722
  {
3673
3723
  controlType: column.controlType,
@@ -3677,7 +3727,7 @@ var DataList = (props) => {
3677
3727
  }
3678
3728
  )
3679
3729
  }
3680
- ) : /* @__PURE__ */ jsx44(
3730
+ ) : /* @__PURE__ */ jsx45(
3681
3731
  ViewControl_default,
3682
3732
  {
3683
3733
  controlType: column.controlType,
@@ -3691,10 +3741,10 @@ var DataList = (props) => {
3691
3741
  }) }, index);
3692
3742
  }) })
3693
3743
  ] }) }),
3694
- /* @__PURE__ */ jsx44("div", { className: "pt-4 border-t border-t-gray-50 sticky bottom-0 h-11 mt-2 ", children: /* @__PURE__ */ jsxs18("div", { className: "flex items-center justify-between", children: [
3695
- /* @__PURE__ */ jsx44("div", { className: "text-gray-700", children: label }),
3744
+ /* @__PURE__ */ jsx45("div", { className: "pt-4 border-t border-t-gray-50 sticky bottom-0 h-11 mt-2 ", children: /* @__PURE__ */ jsxs18("div", { className: "flex items-center justify-between", children: [
3745
+ /* @__PURE__ */ jsx45("div", { className: "text-gray-700", children: label }),
3696
3746
  /* @__PURE__ */ jsxs18("div", { className: "flex space-x-2 items-center", children: [
3697
- activePageNumber > 1 && /* @__PURE__ */ jsx44(
3747
+ activePageNumber > 1 && /* @__PURE__ */ jsx45(
3698
3748
  Hyperlink,
3699
3749
  {
3700
3750
  className: "px-3 py-1 rounded-l-md border border-gray-300 bg-white text-gray-500 hover:bg-gray-200",
@@ -3702,9 +3752,9 @@ var DataList = (props) => {
3702
3752
  children: "Prev"
3703
3753
  }
3704
3754
  ),
3705
- activePageNumber <= 1 && /* @__PURE__ */ jsx44("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" }),
3755
+ activePageNumber <= 1 && /* @__PURE__ */ jsx45("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" }),
3706
3756
  renderPageNumbers(),
3707
- activePageNumber < pages && /* @__PURE__ */ jsx44(
3757
+ activePageNumber < pages && /* @__PURE__ */ jsx45(
3708
3758
  Hyperlink,
3709
3759
  {
3710
3760
  className: "px-3 py-1 rounded-r-md border border-gray-300 bg-white text-gray-500 hover:bg-gray-200",
@@ -3712,7 +3762,7 @@ var DataList = (props) => {
3712
3762
  children: "Next"
3713
3763
  }
3714
3764
  ),
3715
- activePageNumber >= pages && /* @__PURE__ */ jsx44("div", { className: "px-3 py-1 rounded-r-md border border-gray-300 bg-gray-200 text-gray-500", children: "Next" })
3765
+ activePageNumber >= pages && /* @__PURE__ */ jsx45("div", { className: "px-3 py-1 rounded-r-md border border-gray-300 bg-gray-200 text-gray-500", children: "Next" })
3716
3766
  ] })
3717
3767
  ] }) })
3718
3768
  ] }),
@@ -3722,9 +3772,9 @@ var DataList = (props) => {
3722
3772
  {
3723
3773
  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`,
3724
3774
  children: [
3725
- props.title ? /* @__PURE__ */ jsx44("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ jsx44("h2", { className: "text-lg font-semibold text-black", children: props.title }) }) : /* @__PURE__ */ jsx44("div", {}),
3775
+ props.title ? /* @__PURE__ */ jsx45("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ jsx45("h2", { className: "text-lg font-semibold text-black", children: props.title }) }) : /* @__PURE__ */ jsx45("div", {}),
3726
3776
  /* @__PURE__ */ jsxs18("div", { className: "flex items-center gap-3", children: [
3727
- props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ jsx44(
3777
+ props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ jsx45(
3728
3778
  InputControl_default,
3729
3779
  {
3730
3780
  name: "Search_input",
@@ -3736,7 +3786,7 @@ var DataList = (props) => {
3736
3786
  }
3737
3787
  }
3738
3788
  ),
3739
- props.filters && props.filters.map((filter) => /* @__PURE__ */ jsx44(
3789
+ props.filters && props.filters.map((filter) => /* @__PURE__ */ jsx45(
3740
3790
  InputControl_default,
3741
3791
  {
3742
3792
  name: filter.name,
@@ -3758,8 +3808,8 @@ var DataList = (props) => {
3758
3808
  linkType: "Primary" /* Solid */,
3759
3809
  href: props.addLinkHref,
3760
3810
  children: [
3761
- /* @__PURE__ */ jsx44(Icon_default, { name: "plus", className: "w-4 h-4" }),
3762
- /* @__PURE__ */ jsx44("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
3811
+ /* @__PURE__ */ jsx45(Icon_default, { name: "plus", className: "w-4 h-4" }),
3812
+ /* @__PURE__ */ jsx45("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
3763
3813
  ]
3764
3814
  }
3765
3815
  )
@@ -3768,7 +3818,7 @@ var DataList = (props) => {
3768
3818
  }
3769
3819
  ),
3770
3820
  /* @__PURE__ */ jsxs18("div", { className: "flex-grow overflow-y-auto justify-end bg-white rounded shadow h-[75vh]", children: [
3771
- /* @__PURE__ */ jsx44("div", { children: /* @__PURE__ */ jsx44("table", { className: "w-full divide-y divide-gray-200", children: /* @__PURE__ */ jsx44("thead", { className: "bg-gray-50", children: /* @__PURE__ */ jsx44("tr", { children: props?.columns?.map((column) => {
3821
+ /* @__PURE__ */ jsx45("div", { children: /* @__PURE__ */ jsx45("table", { className: "w-full divide-y divide-gray-200", children: /* @__PURE__ */ jsx45("thead", { className: "bg-gray-50", children: /* @__PURE__ */ jsx45("tr", { children: props?.columns?.map((column) => {
3772
3822
  let url = builder.getNewOrderByUrl(column.name);
3773
3823
  let icon = "chevronUpDown";
3774
3824
  if (orderBy.includes(`${column.name} desc`)) {
@@ -3778,18 +3828,18 @@ var DataList = (props) => {
3778
3828
  icon = "chevronUp";
3779
3829
  url = builder.getNewOrderByUrl(column.name + " desc");
3780
3830
  }
3781
- return /* @__PURE__ */ jsx44(
3831
+ return /* @__PURE__ */ jsx45(
3782
3832
  "th",
3783
3833
  {
3784
3834
  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" : ""),
3785
- children: /* @__PURE__ */ jsx44(
3835
+ children: /* @__PURE__ */ jsx45(
3786
3836
  Hyperlink,
3787
3837
  {
3788
3838
  href: column.enableSorting ? url : void 0,
3789
3839
  className: "text-body-950",
3790
3840
  children: /* @__PURE__ */ jsxs18("span", { className: "flex items-center space-x-1", children: [
3791
- /* @__PURE__ */ jsx44("span", { children: column.label }),
3792
- column.enableSorting && /* @__PURE__ */ jsx44(Icon_default, { className: "w-4 h-4", name: icon })
3841
+ /* @__PURE__ */ jsx45("span", { children: column.label }),
3842
+ column.enableSorting && /* @__PURE__ */ jsx45(Icon_default, { className: "w-4 h-4", name: icon })
3793
3843
  ] })
3794
3844
  }
3795
3845
  )
@@ -3797,7 +3847,7 @@ var DataList = (props) => {
3797
3847
  column.name
3798
3848
  );
3799
3849
  }) }) }) }) }),
3800
- /* @__PURE__ */ jsx44("div", { className: "w-full text-center bg-transparent pt-5", children: "There are no entries in the table at the moment." })
3850
+ /* @__PURE__ */ jsx45("div", { className: "w-full text-center bg-transparent pt-5", children: "There are no entries in the table at the moment." })
3801
3851
  ] })
3802
3852
  ] })
3803
3853
  ] });
@@ -3807,7 +3857,7 @@ var DataList_default = DataList;
3807
3857
  // src/components/dataForm/DataListRenderer.tsx
3808
3858
  import React31, { useState as useState3, useEffect as useEffect4 } from "react";
3809
3859
  import { usePathname as usePathname2 } from "next/navigation";
3810
- import { jsx as jsx45, jsxs as jsxs19 } from "react/jsx-runtime";
3860
+ import { jsx as jsx46, jsxs as jsxs19 } from "react/jsx-runtime";
3811
3861
  var viewControlMap = {
3812
3862
  number: ViewControlTypes.number,
3813
3863
  lineText: ViewControlTypes.lineText,
@@ -3907,8 +3957,8 @@ var DataListRenderer = ({
3907
3957
  // tabs={resolvedTabs}
3908
3958
  // params={(widgetProps?.params ?? params) as Record<string, any>}
3909
3959
  // />
3910
- /* @__PURE__ */ jsx45(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
3911
- /* @__PURE__ */ jsx45(
3960
+ /* @__PURE__ */ jsx46(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
3961
+ /* @__PURE__ */ jsx46(
3912
3962
  DataList_default,
3913
3963
  {
3914
3964
  addLinkHref,
@@ -3953,7 +4003,7 @@ var FORM_CHILD_ONE_TO_ONE_UPDATE = "FORM_CHILD_ONE_TO_ONE_UPDATE";
3953
4003
  var FORM_CHILD_ROW_ADD = "FORM_CHILD_ROW_ADD";
3954
4004
 
3955
4005
  // src/components/dataForm/DataFormChildSection.tsx
3956
- import { jsx as jsx46, jsxs as jsxs20 } from "react/jsx-runtime";
4006
+ import { jsx as jsx47, jsxs as jsxs20 } from "react/jsx-runtime";
3957
4007
  var DataFormChildSection = (props) => {
3958
4008
  const { section } = props;
3959
4009
  const isOneToOne = section.relationshipType === "one-to-one";
@@ -4021,14 +4071,14 @@ var DataFormChildSection = (props) => {
4021
4071
  childItemsToRender,
4022
4072
  allChildItems: childItems
4023
4073
  });
4024
- return /* @__PURE__ */ jsx46(React32.Fragment, { children: /* @__PURE__ */ jsxs20("div", { className: "rounded border-neutral-200 border px-6 py-4 mb-2", children: [
4025
- section.sectionTitle && /* @__PURE__ */ jsx46("div", { className: "mb-4 text-lg font-medium text-body-950", children: section.sectionTitle }),
4026
- /* @__PURE__ */ jsx46("div", { className: "flex-grow flex flex-col justify-between overflow-y-auto", children: /* @__PURE__ */ jsxs20("div", { className: "flex flex-col justify-between gap-2", children: [
4027
- /* @__PURE__ */ jsx46("div", { children: /* @__PURE__ */ jsxs20("table", { className: "w-full border-separate divide-y divide-gray-200", children: [
4028
- (!isOneToOne || childItemsToRender.length > 0) && /* @__PURE__ */ jsx46("thead", { className: "", children: section.sectionRows.map((sectionRow, sectionRowIndex) => {
4074
+ return /* @__PURE__ */ jsx47(React32.Fragment, { children: /* @__PURE__ */ jsxs20("div", { className: "rounded border-neutral-200 border px-6 py-4 mb-2", children: [
4075
+ section.sectionTitle && /* @__PURE__ */ jsx47("div", { className: "mb-4 text-lg font-medium text-body-950", children: section.sectionTitle }),
4076
+ /* @__PURE__ */ jsx47("div", { className: "flex-grow flex flex-col justify-between overflow-y-auto", children: /* @__PURE__ */ jsxs20("div", { className: "flex flex-col justify-between gap-2", children: [
4077
+ /* @__PURE__ */ jsx47("div", { children: /* @__PURE__ */ jsxs20("table", { className: "w-full border-separate divide-y divide-gray-200", children: [
4078
+ (!isOneToOne || childItemsToRender.length > 0) && /* @__PURE__ */ jsx47("thead", { className: "", children: section.sectionRows.map((sectionRow, sectionRowIndex) => {
4029
4079
  return /* @__PURE__ */ jsxs20("tr", { className: "", children: [
4030
4080
  sectionRow.elements.map((field, index) => {
4031
- return /* @__PURE__ */ jsx46(
4081
+ return /* @__PURE__ */ jsx47(
4032
4082
  "th",
4033
4083
  {
4034
4084
  className: "py-3 font-normal text-left",
@@ -4037,13 +4087,13 @@ var DataFormChildSection = (props) => {
4037
4087
  field.name
4038
4088
  );
4039
4089
  }),
4040
- !section.readonly && !isOneToOne && /* @__PURE__ */ jsx46("th", { className: "py-3 font-normal text-left", children: "Actions" })
4090
+ !section.readonly && !isOneToOne && /* @__PURE__ */ jsx47("th", { className: "py-3 font-normal text-left", children: "Actions" })
4041
4091
  ] }, sectionRowIndex);
4042
4092
  }) }),
4043
- /* @__PURE__ */ jsx46("tbody", { className: "divide-y divide-gray-200", children: childItemsToRender.map((visibleItem, filteredIndex) => {
4093
+ /* @__PURE__ */ jsx47("tbody", { className: "divide-y divide-gray-200", children: childItemsToRender.map((visibleItem, filteredIndex) => {
4044
4094
  const { item, originalIndex } = visibleItem;
4045
4095
  const rowKey = originalIndex;
4046
- return /* @__PURE__ */ jsx46(React32.Fragment, { children: section.sectionRows.map(
4096
+ return /* @__PURE__ */ jsx47(React32.Fragment, { children: section.sectionRows.map(
4047
4097
  (sectionRow, sectionRowIndex) => {
4048
4098
  return /* @__PURE__ */ jsxs20(
4049
4099
  "tr",
@@ -4051,7 +4101,7 @@ var DataFormChildSection = (props) => {
4051
4101
  className: "",
4052
4102
  children: [
4053
4103
  sectionRow.elements.map((field, index) => {
4054
- return /* @__PURE__ */ jsx46("td", { children: /* @__PURE__ */ jsx46("div", { className: "flex-1", children: /* @__PURE__ */ jsx46("div", { className: "w-11/12", children: /* @__PURE__ */ jsx46(
4104
+ return /* @__PURE__ */ jsx47("td", { children: /* @__PURE__ */ jsx47("div", { className: "flex-1", children: /* @__PURE__ */ jsx47("div", { className: "w-11/12", children: /* @__PURE__ */ jsx47(
4055
4105
  InputControl_default,
4056
4106
  {
4057
4107
  index: filteredIndex,
@@ -4071,7 +4121,7 @@ var DataFormChildSection = (props) => {
4071
4121
  }
4072
4122
  ) }) }) }, field.name);
4073
4123
  }),
4074
- !section.readonly && !isOneToOne && /* @__PURE__ */ jsx46("td", { children: /* @__PURE__ */ jsx46(
4124
+ !section.readonly && !isOneToOne && /* @__PURE__ */ jsx47("td", { children: /* @__PURE__ */ jsx47(
4075
4125
  ClientButton_default,
4076
4126
  {
4077
4127
  ButtonType: StyleTypes2.Hollow,
@@ -4080,7 +4130,7 @@ var DataFormChildSection = (props) => {
4080
4130
  },
4081
4131
  dataRole: "delete",
4082
4132
  tabIndex: -1,
4083
- children: /* @__PURE__ */ jsx46(
4133
+ children: /* @__PURE__ */ jsx47(
4084
4134
  Icon_default,
4085
4135
  {
4086
4136
  className: "w-4 h-4",
@@ -4097,7 +4147,7 @@ var DataFormChildSection = (props) => {
4097
4147
  ) }, rowKey);
4098
4148
  }) })
4099
4149
  ] }) }),
4100
- !section.readonly && !isOneToOne && /* @__PURE__ */ jsx46("div", { className: "ml-1", children: /* @__PURE__ */ jsx46(
4150
+ !section.readonly && !isOneToOne && /* @__PURE__ */ jsx47("div", { className: "ml-1", children: /* @__PURE__ */ jsx47(
4101
4151
  ClientButton_default,
4102
4152
  {
4103
4153
  ButtonType: "Link" /* Link */,
@@ -4112,7 +4162,7 @@ var DataFormChildSection = (props) => {
4112
4162
  var DataFormChildSection_default = DataFormChildSection;
4113
4163
 
4114
4164
  // src/components/dataForm/DataForm.tsx
4115
- import { jsx as jsx47, jsxs as jsxs21 } from "react/jsx-runtime";
4165
+ import { jsx as jsx48, jsxs as jsxs21 } from "react/jsx-runtime";
4116
4166
  var DataForm = (props) => {
4117
4167
  const formRef = useRef2(null);
4118
4168
  console.log(props.dataItem, "dssads");
@@ -4332,19 +4382,19 @@ var DataForm = (props) => {
4332
4382
  return false;
4333
4383
  }
4334
4384
  }
4335
- return /* @__PURE__ */ jsx47(React33.Fragment, { children: /* @__PURE__ */ jsxs21("div", { className: "flex-grow flex flex-col", children: [
4336
- props.title && /* @__PURE__ */ jsx47("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__ */ jsxs21(
4385
+ return /* @__PURE__ */ jsx48(React33.Fragment, { children: /* @__PURE__ */ jsxs21("div", { className: "flex-grow flex flex-col", children: [
4386
+ props.title && /* @__PURE__ */ jsx48("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__ */ jsxs21(
4337
4387
  "div",
4338
4388
  {
4339
4389
  className: "inline-flex items-center gap-2 cursor-pointer",
4340
4390
  onClick: () => window.history.back(),
4341
4391
  children: [
4342
- /* @__PURE__ */ jsx47(Icon_default, { name: "chevronLeft", className: "w-4 h-4 text-primary-800" }),
4343
- /* @__PURE__ */ jsx47("h2", { className: "text-lg font-semibold text-primary-800", children: props.title })
4392
+ /* @__PURE__ */ jsx48(Icon_default, { name: "chevronLeft", className: "w-4 h-4 text-primary-800" }),
4393
+ /* @__PURE__ */ jsx48("h2", { className: "text-lg font-semibold text-primary-800", children: props.title })
4344
4394
  ]
4345
4395
  }
4346
4396
  ) }),
4347
- /* @__PURE__ */ jsx47(
4397
+ /* @__PURE__ */ jsx48(
4348
4398
  "form",
4349
4399
  {
4350
4400
  className: "group space-y-6 pb-6 overflow-y-auto",
@@ -4365,8 +4415,8 @@ var DataForm = (props) => {
4365
4415
  }
4366
4416
  }
4367
4417
  },
4368
- children: /* @__PURE__ */ jsx47("div", { className: "flex flex-col gap-6", children: props.sections?.map((section, sectionIndex) => {
4369
- return /* @__PURE__ */ jsx47(React33.Fragment, { children: !section.isChildSection && /* @__PURE__ */ jsxs21("div", { className: " rounded-b-lg bg-white shadow border-neutral-200 border px-8 py-6 ", children: [
4418
+ children: /* @__PURE__ */ jsx48("div", { className: "flex flex-col gap-6", children: props.sections?.map((section, sectionIndex) => {
4419
+ return /* @__PURE__ */ jsx48(React33.Fragment, { children: !section.isChildSection && /* @__PURE__ */ jsxs21("div", { className: " rounded-b-lg bg-white shadow border-neutral-200 border px-8 py-6 ", children: [
4370
4420
  section.sectionRows?.map(
4371
4421
  (sectionRow, sectionRowIndex) => {
4372
4422
  const elementsCount = sectionRow.elements.length;
@@ -4377,14 +4427,14 @@ var DataForm = (props) => {
4377
4427
  sectionRow.visible
4378
4428
  );
4379
4429
  }
4380
- return /* @__PURE__ */ jsx47(React33.Fragment, { children: isVisible && /* @__PURE__ */ jsx47("div", { className: "lg:flex gap-14 flex-1 mb-4 ", children: sectionRow.elements.map((field, index) => {
4430
+ return /* @__PURE__ */ jsx48(React33.Fragment, { children: isVisible && /* @__PURE__ */ jsx48("div", { className: "lg:flex gap-14 flex-1 mb-4 ", children: sectionRow.elements.map((field, index) => {
4381
4431
  return /* @__PURE__ */ jsxs21(
4382
4432
  "div",
4383
4433
  {
4384
4434
  className: sectionRow.grow ? "grow" : "",
4385
4435
  children: [
4386
- /* @__PURE__ */ jsx47("div", { children: field.controlType }),
4387
- /* @__PURE__ */ jsx47(
4436
+ /* @__PURE__ */ jsx48("div", { children: field.controlType }),
4437
+ /* @__PURE__ */ jsx48(
4388
4438
  InputControl_default,
4389
4439
  {
4390
4440
  name: field.name,
@@ -4414,12 +4464,12 @@ var DataForm = (props) => {
4414
4464
  }) }) }, sectionRowIndex);
4415
4465
  }
4416
4466
  ),
4417
- /* @__PURE__ */ jsx47("div", { children: section.childSections?.map(
4467
+ /* @__PURE__ */ jsx48("div", { children: section.childSections?.map(
4418
4468
  (childSection, childSectionIndex) => {
4419
- return /* @__PURE__ */ jsx47("div", { children: childSection.name && evalutateCondition(
4469
+ return /* @__PURE__ */ jsx48("div", { children: childSection.name && evalutateCondition(
4420
4470
  formState.inputValues,
4421
4471
  childSection.visible
4422
- ) && /* @__PURE__ */ jsx47(
4472
+ ) && /* @__PURE__ */ jsx48(
4423
4473
  DataFormChildSection_default,
4424
4474
  {
4425
4475
  section: childSection,
@@ -4435,7 +4485,7 @@ var DataForm = (props) => {
4435
4485
  }
4436
4486
  ),
4437
4487
  /* @__PURE__ */ jsxs21("div", { className: "flex px-6 py-3 mt-2 mb-2 justify-end items-center gap-5", children: [
4438
- /* @__PURE__ */ jsx47("div", { children: props.additionalActions && /* @__PURE__ */ jsx47(
4488
+ /* @__PURE__ */ jsx48("div", { children: props.additionalActions && /* @__PURE__ */ jsx48(
4439
4489
  Button_default,
4440
4490
  {
4441
4491
  ButtonType: "PrimaryHollow" /* Hollow */,
@@ -4443,7 +4493,7 @@ var DataForm = (props) => {
4443
4493
  children: props.additionalActions.title
4444
4494
  }
4445
4495
  ) }),
4446
- /* @__PURE__ */ jsx47("div", { children: props.onDelete && /* @__PURE__ */ jsx47(
4496
+ /* @__PURE__ */ jsx48("div", { children: props.onDelete && /* @__PURE__ */ jsx48(
4447
4497
  Button_default,
4448
4498
  {
4449
4499
  ButtonType: "PrimaryHollow" /* Hollow */,
@@ -4454,7 +4504,7 @@ var DataForm = (props) => {
4454
4504
  children: "Delete"
4455
4505
  }
4456
4506
  ) }),
4457
- /* @__PURE__ */ jsx47("div", { children: props.onClick && /* @__PURE__ */ jsx47(
4507
+ /* @__PURE__ */ jsx48("div", { children: props.onClick && /* @__PURE__ */ jsx48(
4458
4508
  Button_default,
4459
4509
  {
4460
4510
  onValidate,
@@ -4471,7 +4521,7 @@ var DataForm = (props) => {
4471
4521
  var DataForm_default = DataForm;
4472
4522
 
4473
4523
  // src/components/dataForm/DataFormRenderer.tsx
4474
- import { jsx as jsx48, jsxs as jsxs22 } from "react/jsx-runtime";
4524
+ import { jsx as jsx49, jsxs as jsxs22 } from "react/jsx-runtime";
4475
4525
  function getAction(actions, code) {
4476
4526
  return actions?.find((a) => a.actionCode === code);
4477
4527
  }
@@ -4498,8 +4548,8 @@ var DataFormRenderer = ({
4498
4548
  );
4499
4549
  const hasDataItem = dataItem && Object.keys(dataItem).length > 0;
4500
4550
  return /* @__PURE__ */ jsxs22("div", { className: "flex-grow flex flex-col", children: [
4501
- widgetProps && /* @__PURE__ */ jsx48(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
4502
- /* @__PURE__ */ jsx48(
4551
+ widgetProps && /* @__PURE__ */ jsx49(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
4552
+ /* @__PURE__ */ jsx49(
4503
4553
  DataForm_default,
4504
4554
  {
4505
4555
  title: !isAddPage ? "Edit " + formDefinition.formTitle + "- v2" : "Add " + formDefinition.formTitle + "- v2",