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

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/server.mjs CHANGED
@@ -14,10 +14,10 @@ import {
14
14
  import "./chunk-56HSDML5.mjs";
15
15
 
16
16
  // src/components/pageRenderingEngine/PageBodyRenderer.tsx
17
- import React24 from "react";
17
+ import React26 from "react";
18
18
 
19
19
  // src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
20
- import React16 from "react";
20
+ import React18 from "react";
21
21
 
22
22
  // src/components/pageRenderingEngine/nodes/TextNode.tsx
23
23
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -340,7 +340,7 @@ var LinkNode = (props) => {
340
340
  };
341
341
  const linkType = node.cssClass ? getLinkTypeFromCssClass(node.cssClass) : void 0;
342
342
  const isButton = node.isButton === true;
343
- const renderChildren = () => {
343
+ const renderChildren2 = () => {
344
344
  if (!node.children || node.children.length === 0) return null;
345
345
  return /* @__PURE__ */ jsx5(Fragment, { children: node.children.map((childNode, index) => {
346
346
  const SelectedNode = NodeTypes2[childNode.type];
@@ -381,7 +381,7 @@ var LinkNode = (props) => {
381
381
  linkType,
382
382
  linkUrl,
383
383
  children: [
384
- renderChildren(),
384
+ renderChildren2(),
385
385
  renderFallback()
386
386
  ]
387
387
  }
@@ -394,7 +394,7 @@ var LinkNode = (props) => {
394
394
  linkType,
395
395
  alt: linkText || node.title || "",
396
396
  children: [
397
- renderChildren(),
397
+ renderChildren2(),
398
398
  renderFallback()
399
399
  ]
400
400
  }
@@ -457,7 +457,7 @@ var EquationNode = ({ node }) => {
457
457
  var EquationNode_default = EquationNode;
458
458
 
459
459
  // src/components/controls/view/ViewControl.tsx
460
- import React15 from "react";
460
+ import React17 from "react";
461
461
 
462
462
  // src/components/controls/view/ViewControlTypes.tsx
463
463
  var ViewControlTypes = {
@@ -485,7 +485,8 @@ var ViewControlTypes = {
485
485
  timeUntilStartsStyled: "timeUntilStartsStyled",
486
486
  aiGeneratedSummary: "aiGeneratedSummary",
487
487
  booleanView: "booleanView",
488
- text: "text"
488
+ text: "text",
489
+ commentRenderer: "commentRenderer"
489
490
  };
490
491
  var ViewControlTypes_default = ViewControlTypes;
491
492
 
@@ -738,8 +739,138 @@ var TimeUntilStarts = dynamic6(() => import("./TimeUntilStartsClient-4C7NDEAD.mj
738
739
  });
739
740
  var TimeUntilStarts_default = TimeUntilStarts;
740
741
 
742
+ // src/components/controls/view/Commentrenderer.tsx
743
+ import React16 from "react";
744
+
745
+ // src/components/controls/view/commentTypes.ts
746
+ var isTextNode = (node) => {
747
+ return !!node && typeof node === "object" && node.type === "text";
748
+ };
749
+ var asElementNode = (node) => node;
750
+
751
+ // src/components/controls/view/commentParser.ts
752
+ var parseSerializedContent = (raw) => {
753
+ if (raw === null || raw === void 0) {
754
+ return [];
755
+ }
756
+ let value = raw;
757
+ if (typeof raw === "string") {
758
+ const trimmed = raw.trim();
759
+ if (!trimmed) {
760
+ return [];
761
+ }
762
+ if (trimmed.startsWith("{") || trimmed.startsWith("[")) {
763
+ try {
764
+ value = JSON.parse(trimmed);
765
+ } catch {
766
+ return [{ type: "paragraph", children: [{ type: "text", text: raw }] }];
767
+ }
768
+ } else {
769
+ return [{ type: "paragraph", children: [{ type: "text", text: raw }] }];
770
+ }
771
+ }
772
+ if (Array.isArray(value)) {
773
+ return value;
774
+ }
775
+ if (value && typeof value === "object") {
776
+ const children = value.children;
777
+ if (Array.isArray(children)) {
778
+ return children;
779
+ }
780
+ }
781
+ return [];
782
+ };
783
+
784
+ // src/components/controls/view/CommentNodeRenderer.tsx
785
+ import React15 from "react";
786
+ import { jsx as jsx21, jsxs as jsxs8 } from "react/jsx-runtime";
787
+ var TextLeafNode = ({ node }) => {
788
+ let content = node.text;
789
+ if (node.code) content = /* @__PURE__ */ jsx21("code", { className: "comment-node-code", children: content });
790
+ if (node.bold) content = /* @__PURE__ */ jsx21("strong", { children: content });
791
+ if (node.italic) content = /* @__PURE__ */ jsx21("em", { children: content });
792
+ if (node.underline) content = /* @__PURE__ */ jsx21("u", { children: content });
793
+ if (node.strikethrough) content = /* @__PURE__ */ jsx21("s", { children: content });
794
+ return /* @__PURE__ */ jsx21(React15.Fragment, { children: content });
795
+ };
796
+ var renderChildren = (children, keyPrefix) => {
797
+ if (!children || children.length === 0) {
798
+ return null;
799
+ }
800
+ return children.map((child, index) => {
801
+ const childKey = isTextNode(child) ? void 0 : asElementNode(child).id;
802
+ return /* @__PURE__ */ jsx21(CommentNodeRenderer, { node: child }, childKey ?? `${keyPrefix}-${index}`);
803
+ });
804
+ };
805
+ var headingLevelFromTag = (tag) => {
806
+ const match = typeof tag === "string" ? tag.match(/\d/) : null;
807
+ const parsed = match ? Number(match[0]) : Number(tag);
808
+ return Number.isFinite(parsed) && parsed >= 1 && parsed <= 6 ? parsed : 3;
809
+ };
810
+ var CommentNodeRenderer = ({ node }) => {
811
+ if (!node || typeof node !== "object") {
812
+ return null;
813
+ }
814
+ if (isTextNode(node)) {
815
+ return /* @__PURE__ */ jsx21(TextLeafNode, { node });
816
+ }
817
+ const element = asElementNode(node);
818
+ const key = element.id ?? element.type;
819
+ switch (element.type) {
820
+ case "paragraph":
821
+ return /* @__PURE__ */ jsx21("p", { className: "comment-node-paragraph", children: renderChildren(element.children, key) ?? /* @__PURE__ */ jsx21("br", {}) });
822
+ case "heading": {
823
+ const level = headingLevelFromTag(element.tag ?? element.level);
824
+ const HeadingTag = `h${level}`;
825
+ return /* @__PURE__ */ jsx21(HeadingTag, { className: "comment-node-heading", children: renderChildren(element.children, key) });
826
+ }
827
+ case "list": {
828
+ const ordered = element.listType === "number" || element.ordered === true;
829
+ const ListTag = ordered ? "ol" : "ul";
830
+ return /* @__PURE__ */ jsx21(ListTag, { className: "comment-node-list", children: renderChildren(element.children, key) });
831
+ }
832
+ case "listitem":
833
+ case "list-item":
834
+ return /* @__PURE__ */ jsx21("li", { className: "comment-node-listitem", children: renderChildren(element.children, key) });
835
+ case "quote":
836
+ case "blockquote":
837
+ return /* @__PURE__ */ jsx21("blockquote", { className: "comment-node-quote", children: renderChildren(element.children, key) });
838
+ case "code":
839
+ case "code-block":
840
+ return /* @__PURE__ */ jsx21("pre", { className: "comment-node-codeblock", children: /* @__PURE__ */ jsx21("code", { children: renderChildren(element.children, key) }) });
841
+ case "link": {
842
+ const url = typeof element.url === "string" ? element.url : "#";
843
+ return /* @__PURE__ */ jsx21("a", { href: url, target: "_blank", rel: "noopener noreferrer", className: "comment-node-link", children: renderChildren(element.children, key) });
844
+ }
845
+ case "mention": {
846
+ const label = element.label ?? element.mentionName ?? element.text ?? "";
847
+ return /* @__PURE__ */ jsxs8("span", { className: "comment-node-mention", children: [
848
+ "@",
849
+ label
850
+ ] });
851
+ }
852
+ case "linebreak":
853
+ case "line-break":
854
+ return /* @__PURE__ */ jsx21("br", {});
855
+ default:
856
+ return /* @__PURE__ */ jsx21(React15.Fragment, { children: renderChildren(element.children, key) });
857
+ }
858
+ };
859
+ var CommentNodeRenderer_default = CommentNodeRenderer;
860
+
861
+ // src/components/controls/view/Commentrenderer.tsx
862
+ import { jsx as jsx22 } from "react/jsx-runtime";
863
+ var CommentRenderer = ({ value, className }) => {
864
+ const nodes = React16.useMemo(() => parseSerializedContent(value), [value]);
865
+ if (!nodes || nodes.length === 0) {
866
+ return null;
867
+ }
868
+ return /* @__PURE__ */ jsx22("div", { className: className ?? "comment-renderer", children: nodes.map((node, index) => /* @__PURE__ */ jsx22(CommentNodeRenderer_default, { node }, node.id ?? `comment-node-${index}`)) });
869
+ };
870
+ var Commentrenderer_default = CommentRenderer;
871
+
741
872
  // src/components/controls/view/ViewControl.tsx
742
- import { jsx as jsx21 } from "react/jsx-runtime";
873
+ import { jsx as jsx23 } from "react/jsx-runtime";
743
874
  var ViewControl = (props) => {
744
875
  const ControlComponents = {
745
876
  [ViewControlTypes_default.lineText]: LineTextView_default,
@@ -766,15 +897,16 @@ var ViewControl = (props) => {
766
897
  // [ViewControlTypes.timeUntilStartsStyled]: TimeUntilStartsStyled,
767
898
  [ViewControlTypes_default.aiGeneratedSummary]: AiGeneratedSummary_default,
768
899
  [ViewControlTypes_default.booleanView]: BooleanView_default,
769
- [ViewControlTypes_default.text]: LineTextView_default
900
+ [ViewControlTypes_default.text]: LineTextView_default,
901
+ [ViewControlTypes_default.commentRenderer]: Commentrenderer_default
770
902
  };
771
903
  const SelectedControlComponent = props.controlType ? ControlComponents[props.controlType] : void 0;
772
- return /* @__PURE__ */ jsx21(React15.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ jsx21(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
904
+ return /* @__PURE__ */ jsx23(React17.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ jsx23(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
773
905
  };
774
906
  var ViewControl_default = ViewControl;
775
907
 
776
908
  // src/components/pageRenderingEngine/nodes/DatafieldNode.tsx
777
- import { jsx as jsx22 } from "react/jsx-runtime";
909
+ import { jsx as jsx24 } from "react/jsx-runtime";
778
910
  function getNestedProperty(obj, path) {
779
911
  if (!obj || !path) return null;
780
912
  if (path.includes(".")) {
@@ -787,7 +919,7 @@ function getNestedProperty(obj, path) {
787
919
  }
788
920
  const value = obj[path];
789
921
  if (Array.isArray(value)) {
790
- return value.map((item, index) => /* @__PURE__ */ jsx22("div", { children: String(item) }, index));
922
+ return value.map((item, index) => /* @__PURE__ */ jsx24("div", { children: String(item) }, index));
791
923
  }
792
924
  return value;
793
925
  }
@@ -850,7 +982,7 @@ var DatafieldNode = (props) => {
850
982
  const dataType = props.node.dataType;
851
983
  if (isEmptyValue) return null;
852
984
  if (dataType === "rawContent") {
853
- return /* @__PURE__ */ jsx22(
985
+ return /* @__PURE__ */ jsx24(
854
986
  PageBodyRenderer_default,
855
987
  {
856
988
  rawBody: String(value ?? `@databound[${fieldName}]`),
@@ -866,13 +998,13 @@ var DatafieldNode = (props) => {
866
998
  }
867
999
  );
868
1000
  }
869
- return /* @__PURE__ */ jsx22(
1001
+ return /* @__PURE__ */ jsx24(
870
1002
  "span",
871
1003
  {
872
1004
  className: `datafield-node ${props.node.format < Formats.length ? Formats[props.node.format] : ""}`,
873
1005
  style: styles,
874
1006
  title,
875
- children: /* @__PURE__ */ jsx22(
1007
+ children: /* @__PURE__ */ jsx24(
876
1008
  ViewControl_default,
877
1009
  {
878
1010
  controlType: dataType,
@@ -885,7 +1017,7 @@ var DatafieldNode = (props) => {
885
1017
  var DatafieldNode_default = DatafieldNode;
886
1018
 
887
1019
  // src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
888
- import { Fragment as Fragment2, jsx as jsx23, jsxs as jsxs8 } from "react/jsx-runtime";
1020
+ import { Fragment as Fragment2, jsx as jsx25, jsxs as jsxs9 } from "react/jsx-runtime";
889
1021
  var ParagraphNode = (props) => {
890
1022
  const NodeTypes2 = {
891
1023
  ["text"]: TextNode_default,
@@ -905,9 +1037,9 @@ var ParagraphNode = (props) => {
905
1037
  const isInlineOnlyParent = props.parentTag === "summary";
906
1038
  const hasChildren = props.node.children && props.node.children.length > 0;
907
1039
  if (isInlineOnlyParent) {
908
- return /* @__PURE__ */ jsx23(Fragment2, { children: hasChildren && props.node.children.map((node, index) => {
1040
+ return /* @__PURE__ */ jsx25(Fragment2, { children: hasChildren && props.node.children.map((node, index) => {
909
1041
  const SelectedNode = NodeTypes2[node.type];
910
- return /* @__PURE__ */ jsx23(React16.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx23(
1042
+ return /* @__PURE__ */ jsx25(React18.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx25(
911
1043
  SelectedNode,
912
1044
  {
913
1045
  node,
@@ -919,10 +1051,10 @@ var ParagraphNode = (props) => {
919
1051
  ) }, index);
920
1052
  }) });
921
1053
  }
922
- return /* @__PURE__ */ jsxs8("div", { className: " " + formatClasses, children: [
1054
+ return /* @__PURE__ */ jsxs9("div", { className: " " + formatClasses, children: [
923
1055
  hasChildren && props.node.children.map((node, index) => {
924
1056
  const SelectedNode = NodeTypes2[node.type];
925
- return /* @__PURE__ */ jsx23(React16.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx23(
1057
+ return /* @__PURE__ */ jsx25(React18.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx25(
926
1058
  SelectedNode,
927
1059
  {
928
1060
  node,
@@ -933,14 +1065,14 @@ var ParagraphNode = (props) => {
933
1065
  }
934
1066
  ) }, index);
935
1067
  }),
936
- !hasChildren && /* @__PURE__ */ jsx23("div", { className: "py-1.5 lg:py-2" })
1068
+ !hasChildren && /* @__PURE__ */ jsx25("div", { className: "py-1.5 lg:py-2" })
937
1069
  ] });
938
1070
  };
939
1071
  var ParagraphNode_default = ParagraphNode;
940
1072
 
941
1073
  // src/components/pageRenderingEngine/nodes/HeadingNode.tsx
942
- import React17 from "react";
943
- import { Fragment as Fragment3, jsx as jsx24 } from "react/jsx-runtime";
1074
+ import React19 from "react";
1075
+ import { Fragment as Fragment3, jsx as jsx26 } from "react/jsx-runtime";
944
1076
  var HeadingNode = (props) => {
945
1077
  const NodeTypes2 = {
946
1078
  ["text"]: TextNode_default,
@@ -956,23 +1088,23 @@ var HeadingNode = (props) => {
956
1088
  {
957
1089
  }
958
1090
  const formatClasses = FormatClass[props.node.format] || "";
959
- return /* @__PURE__ */ jsx24(Fragment3, { children: React17.createElement(
1091
+ return /* @__PURE__ */ jsx26(Fragment3, { children: React19.createElement(
960
1092
  HeadingTag,
961
1093
  { className: formatClasses },
962
1094
  props.node.children && props.node.children.map((childNode, index) => {
963
1095
  const SelectedNode = NodeTypes2[childNode.type];
964
- return /* @__PURE__ */ jsx24(React17.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx24(SelectedNode, { node: childNode, dataitem: props.dataitem, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
1096
+ 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);
965
1097
  })
966
1098
  ) });
967
1099
  };
968
1100
  var HeadingNode_default = HeadingNode;
969
1101
 
970
1102
  // src/components/pageRenderingEngine/nodes/ListNode.tsx
971
- import React19 from "react";
1103
+ import React21 from "react";
972
1104
 
973
1105
  // src/components/pageRenderingEngine/nodes/ListItemNode.tsx
974
- import React18 from "react";
975
- import { jsx as jsx25 } from "react/jsx-runtime";
1106
+ import React20 from "react";
1107
+ import { jsx as jsx27 } from "react/jsx-runtime";
976
1108
  var ListItemNode = (props) => {
977
1109
  const NodeTypes2 = {
978
1110
  text: TextNode_default,
@@ -989,66 +1121,66 @@ var ListItemNode = (props) => {
989
1121
  liStyle.fontSize = match[1].trim();
990
1122
  }
991
1123
  }
992
- return /* @__PURE__ */ jsx25("li", { style: liStyle, children: props.node.children && props.node.children.map((node, index) => {
1124
+ return /* @__PURE__ */ jsx27("li", { style: liStyle, children: props.node.children && props.node.children.map((node, index) => {
993
1125
  const SelectedNode = NodeTypes2[node.type];
994
1126
  if (node.type === "linebreak") {
995
1127
  if (!foundFirstBreak) {
996
1128
  foundFirstBreak = true;
997
- return /* @__PURE__ */ jsx25("div", {}, index);
1129
+ return /* @__PURE__ */ jsx27("div", {}, index);
998
1130
  } else {
999
- return /* @__PURE__ */ jsx25("div", { className: "py-1 lg:py-2" }, index);
1131
+ return /* @__PURE__ */ jsx27("div", { className: "py-1 lg:py-2" }, index);
1000
1132
  }
1001
1133
  } else {
1002
1134
  foundFirstBreak = false;
1003
- return /* @__PURE__ */ jsx25(React18.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx25(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
1135
+ return /* @__PURE__ */ jsx27(React20.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx27(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
1004
1136
  }
1005
1137
  }) });
1006
1138
  };
1007
1139
  var ListItemNode_default = ListItemNode;
1008
1140
 
1009
1141
  // src/components/pageRenderingEngine/nodes/ListNode.tsx
1010
- import { jsx as jsx26, jsxs as jsxs9 } from "react/jsx-runtime";
1142
+ import { jsx as jsx28, jsxs as jsxs10 } from "react/jsx-runtime";
1011
1143
  var ListNode = (props) => {
1012
1144
  const NodeTypes2 = {
1013
1145
  listitem: ListItemNode_default
1014
1146
  };
1015
- return /* @__PURE__ */ jsxs9(React19.Fragment, { children: [
1016
- props.node.listType == "bullet" && /* @__PURE__ */ jsx26("ul", { children: props.node.children && props.node.children.map((node, index) => {
1147
+ return /* @__PURE__ */ jsxs10(React21.Fragment, { children: [
1148
+ props.node.listType == "bullet" && /* @__PURE__ */ jsx28("ul", { children: props.node.children && props.node.children.map((node, index) => {
1017
1149
  const SelectedNode = NodeTypes2[node.type];
1018
- return /* @__PURE__ */ jsx26(React19.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx26(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
1150
+ return /* @__PURE__ */ jsx28(React21.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx28(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
1019
1151
  }) }),
1020
- props.node.listType == "number" && /* @__PURE__ */ jsx26("ol", { children: props.node.children && props.node.children.map((node, index) => {
1152
+ props.node.listType == "number" && /* @__PURE__ */ jsx28("ol", { children: props.node.children && props.node.children.map((node, index) => {
1021
1153
  const SelectedNode = NodeTypes2[node.type];
1022
- return /* @__PURE__ */ jsx26(React19.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx26(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
1154
+ return /* @__PURE__ */ jsx28(React21.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx28(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
1023
1155
  }) })
1024
1156
  ] });
1025
1157
  };
1026
1158
  var ListNode_default = ListNode;
1027
1159
 
1028
1160
  // src/components/pageRenderingEngine/nodes/QuoteNode.tsx
1029
- import React20 from "react";
1030
- import { jsx as jsx27 } from "react/jsx-runtime";
1161
+ import React22 from "react";
1162
+ import { jsx as jsx29 } from "react/jsx-runtime";
1031
1163
  var QuoteNode = (props) => {
1032
1164
  const NodeTypes2 = {
1033
1165
  ["text"]: TextNode_default,
1034
1166
  ["linebreak"]: LineBreakNode_default,
1035
1167
  ["link"]: LinkNode_default
1036
1168
  };
1037
- return /* @__PURE__ */ jsx27("blockquote", { children: props.node.children && props.node.children.map((node, index) => {
1169
+ return /* @__PURE__ */ jsx29("blockquote", { children: props.node.children && props.node.children.map((node, index) => {
1038
1170
  const SelectedNode = NodeTypes2[node.type];
1039
- return /* @__PURE__ */ jsx27(React20.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx27(SelectedNode, { node, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
1171
+ return /* @__PURE__ */ jsx29(React22.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx29(SelectedNode, { node, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
1040
1172
  }) });
1041
1173
  };
1042
1174
  var QuoteNode_default = QuoteNode;
1043
1175
 
1044
1176
  // src/components/pageRenderingEngine/nodes/CodeNode.tsx
1045
- import React21 from "react";
1177
+ import React23 from "react";
1046
1178
  import dynamic7 from "next/dynamic";
1047
- import { jsx as jsx28, jsxs as jsxs10 } from "react/jsx-runtime";
1179
+ import { jsx as jsx30, jsxs as jsxs11 } from "react/jsx-runtime";
1048
1180
  var CopyButton = dynamic7(() => import("./CopyButton-XONTQQW7.mjs"), {
1049
1181
  ssr: false,
1050
1182
  // optional: fallback UI while loading
1051
- loading: () => /* @__PURE__ */ jsx28("span", { className: "text-gray-400 text-xs", children: "Copy" })
1183
+ loading: () => /* @__PURE__ */ jsx30("span", { className: "text-gray-400 text-xs", children: "Copy" })
1052
1184
  });
1053
1185
  var CodeNode = (props) => {
1054
1186
  const NodeTypes2 = {
@@ -1062,14 +1194,14 @@ var CodeNode = (props) => {
1062
1194
  if (node.type === "link") return node.text || node.url || "";
1063
1195
  return "";
1064
1196
  }).join("") ?? "";
1065
- return /* @__PURE__ */ jsxs10("div", { children: [
1066
- /* @__PURE__ */ jsxs10("div", { className: "flex items-center relative bg-neutral-strong px-4 py-3 text-xs font-sans justify-between rounded-t-md ", children: [
1067
- /* @__PURE__ */ jsx28("span", { children: "Code Snippet" }),
1068
- /* @__PURE__ */ jsx28(CopyButton, { text: textContent })
1197
+ return /* @__PURE__ */ jsxs11("div", { children: [
1198
+ /* @__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: [
1199
+ /* @__PURE__ */ jsx30("span", { children: "Code Snippet" }),
1200
+ /* @__PURE__ */ jsx30(CopyButton, { text: textContent })
1069
1201
  ] }),
1070
- /* @__PURE__ */ jsx28("code", { className: "bg-neutral-soft p-4 text-sm whitespace-pre-wrap border border-2 block", children: props.node.children && props.node.children.map((node, index) => {
1202
+ /* @__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) => {
1071
1203
  const SelectedNode = NodeTypes2[node.type];
1072
- return /* @__PURE__ */ jsx28(React21.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx28(
1204
+ return /* @__PURE__ */ jsx30(React23.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx30(
1073
1205
  SelectedNode,
1074
1206
  {
1075
1207
  node,
@@ -1084,15 +1216,15 @@ var CodeNode = (props) => {
1084
1216
  var CodeNode_default = CodeNode;
1085
1217
 
1086
1218
  // src/components/pageRenderingEngine/nodes/HorizontalRuleNode.tsx
1087
- import { jsx as jsx29 } from "react/jsx-runtime";
1219
+ import { jsx as jsx31 } from "react/jsx-runtime";
1088
1220
  var HorizontalRuleNode = () => {
1089
- return /* @__PURE__ */ jsx29("hr", {});
1221
+ return /* @__PURE__ */ jsx31("hr", {});
1090
1222
  };
1091
1223
  var HorizontalRuleNode_default = HorizontalRuleNode;
1092
1224
 
1093
1225
  // src/components/pageRenderingEngine/nodes/WidgetNode.tsx
1094
- import React22 from "react";
1095
- import { Fragment as Fragment4, jsx as jsx30 } from "react/jsx-runtime";
1226
+ import React24 from "react";
1227
+ import { Fragment as Fragment4, jsx as jsx32 } from "react/jsx-runtime";
1096
1228
  var WidgetNode = (props) => {
1097
1229
  const getWidgetParameters = () => {
1098
1230
  const widgetInputParameters = {
@@ -1156,7 +1288,7 @@ var WidgetNode = (props) => {
1156
1288
  };
1157
1289
  const widgetCode = props.node?.widgetCode;
1158
1290
  if (!widgetCode) {
1159
- return /* @__PURE__ */ jsx30(Fragment4, { children: "Invalid widget" });
1291
+ return /* @__PURE__ */ jsx32(Fragment4, { children: "Invalid widget" });
1160
1292
  }
1161
1293
  const widgetParams = getWidgetParameters();
1162
1294
  const WidgetRenderer = props.widgetRenderer;
@@ -1165,7 +1297,7 @@ var WidgetNode = (props) => {
1165
1297
  }
1166
1298
  return (
1167
1299
  // eslint-disable-next-line react-hooks/static-components
1168
- /* @__PURE__ */ jsx30(React22.Fragment, { children: /* @__PURE__ */ jsx30(
1300
+ /* @__PURE__ */ jsx32(React24.Fragment, { children: /* @__PURE__ */ jsx32(
1169
1301
  WidgetRenderer,
1170
1302
  {
1171
1303
  params: widgetParams,
@@ -1183,11 +1315,11 @@ var WidgetNode_default = WidgetNode;
1183
1315
 
1184
1316
  // src/components/pageRenderingEngine/nodes/DivContainer.tsx
1185
1317
  import dynamic11 from "next/dynamic";
1186
- import React23 from "react";
1318
+ import React25 from "react";
1187
1319
 
1188
1320
  // src/components/pageRenderingEngine/nodes/EmbedNode.tsx
1189
1321
  import dynamic8 from "next/dynamic";
1190
- import { jsx as jsx31 } from "react/jsx-runtime";
1322
+ import { jsx as jsx33 } from "react/jsx-runtime";
1191
1323
  var IframeClient = dynamic8(() => import("./IframeClient-XEWQLGUQ.mjs"), {
1192
1324
  ssr: false
1193
1325
  });
@@ -1200,7 +1332,7 @@ var EmbedNode = (props) => {
1200
1332
  } else {
1201
1333
  src = props.node.embedSrc;
1202
1334
  }
1203
- return /* @__PURE__ */ jsx31("div", { className: "aspect-video", children: src && /* @__PURE__ */ jsx31(IframeClient, { src }) });
1335
+ return /* @__PURE__ */ jsx33("div", { className: "aspect-video", children: src && /* @__PURE__ */ jsx33(IframeClient, { src }) });
1204
1336
  };
1205
1337
  var EmbedNode_default = EmbedNode;
1206
1338
 
@@ -1393,10 +1525,10 @@ var PathUtility = class {
1393
1525
  var PathUtility_default = new PathUtility();
1394
1526
 
1395
1527
  // src/components/NoDataFound.tsx
1396
- import { jsx as jsx32, jsxs as jsxs11 } from "react/jsx-runtime";
1528
+ import { jsx as jsx34, jsxs as jsxs12 } from "react/jsx-runtime";
1397
1529
  var NoDataFound = () => {
1398
- return /* @__PURE__ */ jsxs11("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center bg-neutral-weak", children: [
1399
- /* @__PURE__ */ jsx32("div", { className: "mb-5", children: /* @__PURE__ */ jsx32("div", { className: "mx-auto w-20 h-20 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ jsx32(
1530
+ return /* @__PURE__ */ jsxs12("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center bg-neutral-weak", children: [
1531
+ /* @__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(
1400
1532
  "svg",
1401
1533
  {
1402
1534
  className: "w-10 h-10",
@@ -1404,7 +1536,7 @@ var NoDataFound = () => {
1404
1536
  stroke: "currentColor",
1405
1537
  viewBox: "0 0 24 24",
1406
1538
  xmlns: "http://www.w3.org/2000/svg",
1407
- children: /* @__PURE__ */ jsx32(
1539
+ children: /* @__PURE__ */ jsx34(
1408
1540
  "path",
1409
1541
  {
1410
1542
  strokeLinecap: "round",
@@ -1415,15 +1547,15 @@ var NoDataFound = () => {
1415
1547
  )
1416
1548
  }
1417
1549
  ) }) }),
1418
- /* @__PURE__ */ jsx32("h3", { className: "text-lg font-medium mb-2", children: "No data available" }),
1419
- /* @__PURE__ */ jsx32("p", { className: " max-w-sm mb-0", children: "No records found. Data may be empty or not available at the moment." })
1550
+ /* @__PURE__ */ jsx34("h3", { className: "text-lg font-medium mb-2", children: "No data available" }),
1551
+ /* @__PURE__ */ jsx34("p", { className: " max-w-sm mb-0", children: "No records found. Data may be empty or not available at the moment." })
1420
1552
  ] });
1421
1553
  };
1422
1554
  var NoDataFound_default = NoDataFound;
1423
1555
 
1424
1556
  // src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
1425
1557
  import dynamic9 from "next/dynamic";
1426
- import { Fragment as Fragment5, jsx as jsx33, jsxs as jsxs12 } from "react/jsx-runtime";
1558
+ import { Fragment as Fragment5, jsx as jsx35, jsxs as jsxs13 } from "react/jsx-runtime";
1427
1559
  var HlsPlayer3 = dynamic9(() => import("./HlsPlayer-BVS6BVF7.mjs"), { ssr: false });
1428
1560
  var deviceToMediaQuery = (device) => {
1429
1561
  switch (device) {
@@ -1579,8 +1711,8 @@ var ImageGalleryNode = (props) => {
1579
1711
  right: "justify-end"
1580
1712
  };
1581
1713
  const formatClasses = FormatClass[props.node.format || ""] || "";
1582
- return /* @__PURE__ */ jsxs12(Fragment5, { children: [
1583
- hlsSources.length > 0 && /* @__PURE__ */ jsx33(Fragment5, { children: /* @__PURE__ */ jsx33(
1714
+ return /* @__PURE__ */ jsxs13(Fragment5, { children: [
1715
+ hlsSources.length > 0 && /* @__PURE__ */ jsx35(Fragment5, { children: /* @__PURE__ */ jsx35(
1584
1716
  HlsPlayer3,
1585
1717
  {
1586
1718
  sources: hlsSources,
@@ -1595,7 +1727,7 @@ var ImageGalleryNode = (props) => {
1595
1727
  styles: hlsStyles
1596
1728
  }
1597
1729
  ) }),
1598
- (staticFallback || staticSources.length > 0) && /* @__PURE__ */ jsx33(Fragment5, { children: staticFallback ? /* @__PURE__ */ jsxs12("picture", { children: [
1730
+ (staticFallback || staticSources.length > 0) && /* @__PURE__ */ jsx35(Fragment5, { children: staticFallback ? /* @__PURE__ */ jsxs13("picture", { children: [
1599
1731
  DEVICE_ORDER.map((deviceKey) => {
1600
1732
  const match = staticSources.find(
1601
1733
  (img) => img.device === deviceKey
@@ -1611,7 +1743,7 @@ var ImageGalleryNode = (props) => {
1611
1743
  if (!srcUrl) {
1612
1744
  return null;
1613
1745
  }
1614
- return /* @__PURE__ */ jsx33(
1746
+ return /* @__PURE__ */ jsx35(
1615
1747
  "source",
1616
1748
  {
1617
1749
  media: deviceToMediaQuery(match.device),
@@ -1636,7 +1768,7 @@ var ImageGalleryNode = (props) => {
1636
1768
  if (img.borderRadius) {
1637
1769
  styles.borderRadius = img.borderRadius;
1638
1770
  }
1639
- return /* @__PURE__ */ jsx33(
1771
+ return /* @__PURE__ */ jsx35(
1640
1772
  "img",
1641
1773
  {
1642
1774
  loading: "lazy",
@@ -1651,7 +1783,7 @@ var ImageGalleryNode = (props) => {
1651
1783
  })()
1652
1784
  ] }) : (
1653
1785
  /* Case 2: Only device-specific images exist */
1654
- /* @__PURE__ */ jsx33(Fragment5, { children: staticSources.map((img, index) => {
1786
+ /* @__PURE__ */ jsx35(Fragment5, { children: staticSources.map((img, index) => {
1655
1787
  const resolved = resolveImage(img);
1656
1788
  const imageUrl = resolved?.imageUrl;
1657
1789
  if (!imageUrl) {
@@ -1678,7 +1810,7 @@ var ImageGalleryNode = (props) => {
1678
1810
  default:
1679
1811
  display = "block";
1680
1812
  }
1681
- return /* @__PURE__ */ jsx33(
1813
+ return /* @__PURE__ */ jsx35(
1682
1814
  "img",
1683
1815
  {
1684
1816
  loading: "lazy",
@@ -1818,28 +1950,28 @@ var shouldRenderContainer = (node, dataItem, session) => {
1818
1950
  };
1819
1951
 
1820
1952
  // src/components/pageRenderingEngine/nodes/DocumentNode.tsx
1821
- import { Fragment as Fragment6, jsx as jsx34, jsxs as jsxs13 } from "react/jsx-runtime";
1953
+ import { Fragment as Fragment6, jsx as jsx36, jsxs as jsxs14 } from "react/jsx-runtime";
1822
1954
  var getNestedValue5 = (obj, path) => {
1823
1955
  if (!obj || !path) return void 0;
1824
1956
  return path.split(".").reduce((current, key) => {
1825
1957
  return current && current[key] !== void 0 ? current[key] : void 0;
1826
1958
  }, obj);
1827
1959
  };
1828
- var PdfIcon = () => /* @__PURE__ */ jsxs13(
1960
+ var PdfIcon = () => /* @__PURE__ */ jsxs14(
1829
1961
  "svg",
1830
1962
  {
1831
1963
  xmlns: "http://www.w3.org/2000/svg",
1832
1964
  viewBox: "0 0 48 48",
1833
1965
  className: "w-10 h-10",
1834
1966
  children: [
1835
- /* @__PURE__ */ jsx34(
1967
+ /* @__PURE__ */ jsx36(
1836
1968
  "path",
1837
1969
  {
1838
1970
  fill: "#e53935",
1839
1971
  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"
1840
1972
  }
1841
1973
  ),
1842
- /* @__PURE__ */ jsx34(
1974
+ /* @__PURE__ */ jsx36(
1843
1975
  "path",
1844
1976
  {
1845
1977
  fill: "#fff",
@@ -1849,55 +1981,55 @@ var PdfIcon = () => /* @__PURE__ */ jsxs13(
1849
1981
  ]
1850
1982
  }
1851
1983
  );
1852
- var ExcelIcon = () => /* @__PURE__ */ jsxs13(
1984
+ var ExcelIcon = () => /* @__PURE__ */ jsxs14(
1853
1985
  "svg",
1854
1986
  {
1855
1987
  xmlns: "http://www.w3.org/2000/svg",
1856
1988
  viewBox: "0 0 48 48",
1857
1989
  className: "w-10 h-10",
1858
1990
  children: [
1859
- /* @__PURE__ */ jsx34(
1991
+ /* @__PURE__ */ jsx36(
1860
1992
  "path",
1861
1993
  {
1862
1994
  fill: "#169154",
1863
1995
  d: "M29,6H15.744C14.781,6,14,6.781,14,7.744v7.259h15V6z"
1864
1996
  }
1865
1997
  ),
1866
- /* @__PURE__ */ jsx34(
1998
+ /* @__PURE__ */ jsx36(
1867
1999
  "path",
1868
2000
  {
1869
2001
  fill: "#18482a",
1870
2002
  d: "M14,33.054v7.202C14,41.219,14.781,42,15.743,42H29v-8.946H14z"
1871
2003
  }
1872
2004
  ),
1873
- /* @__PURE__ */ jsx34("path", { fill: "#0c8045", d: "M14 15.003H29V24.005000000000003H14z" }),
1874
- /* @__PURE__ */ jsx34("path", { fill: "#17472a", d: "M14 24.005H29V33.055H14z" }),
1875
- /* @__PURE__ */ jsxs13("g", { children: [
1876
- /* @__PURE__ */ jsx34(
2005
+ /* @__PURE__ */ jsx36("path", { fill: "#0c8045", d: "M14 15.003H29V24.005000000000003H14z" }),
2006
+ /* @__PURE__ */ jsx36("path", { fill: "#17472a", d: "M14 24.005H29V33.055H14z" }),
2007
+ /* @__PURE__ */ jsxs14("g", { children: [
2008
+ /* @__PURE__ */ jsx36(
1877
2009
  "path",
1878
2010
  {
1879
2011
  fill: "#29c27f",
1880
2012
  d: "M42.256,6H29v9.003h15V7.744C44,6.781,43.219,6,42.256,6z"
1881
2013
  }
1882
2014
  ),
1883
- /* @__PURE__ */ jsx34(
2015
+ /* @__PURE__ */ jsx36(
1884
2016
  "path",
1885
2017
  {
1886
2018
  fill: "#27663f",
1887
2019
  d: "M29,33.054V42h13.257C43.219,42,44,41.219,44,40.257v-7.202H29z"
1888
2020
  }
1889
2021
  ),
1890
- /* @__PURE__ */ jsx34("path", { fill: "#19ac65", d: "M29 15.003H44V24.005000000000003H29z" }),
1891
- /* @__PURE__ */ jsx34("path", { fill: "#129652", d: "M29 24.005H44V33.055H29z" })
2022
+ /* @__PURE__ */ jsx36("path", { fill: "#19ac65", d: "M29 15.003H44V24.005000000000003H29z" }),
2023
+ /* @__PURE__ */ jsx36("path", { fill: "#129652", d: "M29 24.005H44V33.055H29z" })
1892
2024
  ] }),
1893
- /* @__PURE__ */ jsx34(
2025
+ /* @__PURE__ */ jsx36(
1894
2026
  "path",
1895
2027
  {
1896
2028
  fill: "#0c7238",
1897
2029
  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"
1898
2030
  }
1899
2031
  ),
1900
- /* @__PURE__ */ jsx34(
2032
+ /* @__PURE__ */ jsx36(
1901
2033
  "path",
1902
2034
  {
1903
2035
  fill: "#fff",
@@ -1907,7 +2039,7 @@ var ExcelIcon = () => /* @__PURE__ */ jsxs13(
1907
2039
  ]
1908
2040
  }
1909
2041
  );
1910
- var WordIcon = () => /* @__PURE__ */ jsxs13(
2042
+ var WordIcon = () => /* @__PURE__ */ jsxs14(
1911
2043
  "svg",
1912
2044
  {
1913
2045
  xmlns: "http://www.w3.org/2000/svg",
@@ -1915,14 +2047,14 @@ var WordIcon = () => /* @__PURE__ */ jsxs13(
1915
2047
  className: "w-10 h-10",
1916
2048
  baseProfile: "basic",
1917
2049
  children: [
1918
- /* @__PURE__ */ jsx34(
2050
+ /* @__PURE__ */ jsx36(
1919
2051
  "path",
1920
2052
  {
1921
2053
  fill: "#283593",
1922
2054
  d: "M9,33.595l14.911-18.706L41,26v13.306C41,41.346,39.346,43,37.306,43H15.332 C11.835,43,9,40.164,9,36.667C9,36.667,9,33.595,9,33.595z"
1923
2055
  }
1924
2056
  ),
1925
- /* @__PURE__ */ jsxs13(
2057
+ /* @__PURE__ */ jsxs14(
1926
2058
  "linearGradient",
1927
2059
  {
1928
2060
  id: "qh2LT5tehRDFkLLfb-odWa",
@@ -1933,19 +2065,19 @@ var WordIcon = () => /* @__PURE__ */ jsxs13(
1933
2065
  gradientTransform: "translate(0 -339.89)",
1934
2066
  gradientUnits: "userSpaceOnUse",
1935
2067
  children: [
1936
- /* @__PURE__ */ jsx34("stop", { offset: "0", "stop-color": "#66c0ff" }),
1937
- /* @__PURE__ */ jsx34("stop", { offset: ".26", "stop-color": "#0094f0" })
2068
+ /* @__PURE__ */ jsx36("stop", { offset: "0", "stop-color": "#66c0ff" }),
2069
+ /* @__PURE__ */ jsx36("stop", { offset: ".26", "stop-color": "#0094f0" })
1938
2070
  ]
1939
2071
  }
1940
2072
  ),
1941
- /* @__PURE__ */ jsx34(
2073
+ /* @__PURE__ */ jsx36(
1942
2074
  "path",
1943
2075
  {
1944
2076
  fill: "url(#qh2LT5tehRDFkLLfb-odWa)",
1945
2077
  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"
1946
2078
  }
1947
2079
  ),
1948
- /* @__PURE__ */ jsx34(
2080
+ /* @__PURE__ */ jsx36(
1949
2081
  "path",
1950
2082
  {
1951
2083
  fill: "#1e88e5",
@@ -1953,21 +2085,21 @@ var WordIcon = () => /* @__PURE__ */ jsxs13(
1953
2085
  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"
1954
2086
  }
1955
2087
  ),
1956
- /* @__PURE__ */ jsx34(
2088
+ /* @__PURE__ */ jsx36(
1957
2089
  "path",
1958
2090
  {
1959
2091
  fill: "#00e5ff",
1960
2092
  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"
1961
2093
  }
1962
2094
  ),
1963
- /* @__PURE__ */ jsx34(
2095
+ /* @__PURE__ */ jsx36(
1964
2096
  "path",
1965
2097
  {
1966
2098
  fill: "#1565c0",
1967
2099
  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"
1968
2100
  }
1969
2101
  ),
1970
- /* @__PURE__ */ jsx34(
2102
+ /* @__PURE__ */ jsx36(
1971
2103
  "path",
1972
2104
  {
1973
2105
  fill: "#fff",
@@ -1977,42 +2109,42 @@ var WordIcon = () => /* @__PURE__ */ jsxs13(
1977
2109
  ]
1978
2110
  }
1979
2111
  );
1980
- var StandardIcon = () => /* @__PURE__ */ jsxs13(
2112
+ var StandardIcon = () => /* @__PURE__ */ jsxs14(
1981
2113
  "svg",
1982
2114
  {
1983
2115
  xmlns: "http://www.w3.org/2000/svg",
1984
2116
  viewBox: "0 0 48 48",
1985
2117
  className: "w-10 h-10",
1986
2118
  children: [
1987
- /* @__PURE__ */ jsx34("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
1988
- /* @__PURE__ */ jsx34("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" })
2119
+ /* @__PURE__ */ jsx36("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
2120
+ /* @__PURE__ */ jsx36("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" })
1989
2121
  ]
1990
2122
  }
1991
2123
  );
1992
- var PowerPointIcon = () => /* @__PURE__ */ jsxs13(
2124
+ var PowerPointIcon = () => /* @__PURE__ */ jsxs14(
1993
2125
  "svg",
1994
2126
  {
1995
2127
  xmlns: "http://www.w3.org/2000/svg",
1996
2128
  viewBox: "0 0 48 48",
1997
2129
  className: "w-10 h-10",
1998
2130
  children: [
1999
- /* @__PURE__ */ jsx34(
2131
+ /* @__PURE__ */ jsx36(
2000
2132
  "path",
2001
2133
  {
2002
2134
  fill: "#dc4c2c",
2003
2135
  d: "M8,24c0,9.941,8.059,18,18,18s18-8.059,18-18H26H8z"
2004
2136
  }
2005
2137
  ),
2006
- /* @__PURE__ */ jsx34("path", { fill: "#f7a278", d: "M26,6v18h18C44,14.059,35.941,6,26,6z" }),
2007
- /* @__PURE__ */ jsx34("path", { fill: "#c06346", d: "M26,6C16.059,6,8,14.059,8,24h18V6z" }),
2008
- /* @__PURE__ */ jsx34(
2138
+ /* @__PURE__ */ jsx36("path", { fill: "#f7a278", d: "M26,6v18h18C44,14.059,35.941,6,26,6z" }),
2139
+ /* @__PURE__ */ jsx36("path", { fill: "#c06346", d: "M26,6C16.059,6,8,14.059,8,24h18V6z" }),
2140
+ /* @__PURE__ */ jsx36(
2009
2141
  "path",
2010
2142
  {
2011
2143
  fill: "#9b341f",
2012
2144
  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"
2013
2145
  }
2014
2146
  ),
2015
- /* @__PURE__ */ jsx34(
2147
+ /* @__PURE__ */ jsx36(
2016
2148
  "path",
2017
2149
  {
2018
2150
  fill: "#fff",
@@ -2022,16 +2154,16 @@ var PowerPointIcon = () => /* @__PURE__ */ jsxs13(
2022
2154
  ]
2023
2155
  }
2024
2156
  );
2025
- var TextIcon = () => /* @__PURE__ */ jsxs13(
2157
+ var TextIcon = () => /* @__PURE__ */ jsxs14(
2026
2158
  "svg",
2027
2159
  {
2028
2160
  xmlns: "http://www.w3.org/2000/svg",
2029
2161
  viewBox: "0 0 48 48",
2030
2162
  className: "w-10 h-10",
2031
2163
  children: [
2032
- /* @__PURE__ */ jsx34("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
2033
- /* @__PURE__ */ jsx34("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" }),
2034
- /* @__PURE__ */ jsx34(
2164
+ /* @__PURE__ */ jsx36("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
2165
+ /* @__PURE__ */ jsx36("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" }),
2166
+ /* @__PURE__ */ jsx36(
2035
2167
  "path",
2036
2168
  {
2037
2169
  fill: "#1976D2",
@@ -2041,7 +2173,7 @@ var TextIcon = () => /* @__PURE__ */ jsxs13(
2041
2173
  ]
2042
2174
  }
2043
2175
  );
2044
- var ArchiveIcon = () => /* @__PURE__ */ jsxs13(
2176
+ var ArchiveIcon = () => /* @__PURE__ */ jsxs14(
2045
2177
  "svg",
2046
2178
  {
2047
2179
  xmlns: "http://www.w3.org/2000/svg",
@@ -2051,14 +2183,14 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs13(
2051
2183
  version: "1.0",
2052
2184
  className: "w-10 h-10",
2053
2185
  children: [
2054
- /* @__PURE__ */ jsx34("defs", { children: /* @__PURE__ */ jsx34("clipPath", { id: "273d29c8a6", children: /* @__PURE__ */ jsx34(
2186
+ /* @__PURE__ */ jsx36("defs", { children: /* @__PURE__ */ jsx36("clipPath", { id: "273d29c8a6", children: /* @__PURE__ */ jsx36(
2055
2187
  "path",
2056
2188
  {
2057
2189
  d: "M 8.90625 0 L 65.90625 0 L 65.90625 75 L 8.90625 75 Z M 8.90625 0 ",
2058
2190
  "clip-rule": "nonzero"
2059
2191
  }
2060
2192
  ) }) }),
2061
- /* @__PURE__ */ jsx34("g", { "clip-path": "url(#273d29c8a6)", children: /* @__PURE__ */ jsx34(
2193
+ /* @__PURE__ */ jsx36("g", { "clip-path": "url(#273d29c8a6)", children: /* @__PURE__ */ jsx36(
2062
2194
  "path",
2063
2195
  {
2064
2196
  fill: "#ff9100",
@@ -2067,7 +2199,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs13(
2067
2199
  "fill-rule": "nonzero"
2068
2200
  }
2069
2201
  ) }),
2070
- /* @__PURE__ */ jsx34(
2202
+ /* @__PURE__ */ jsx36(
2071
2203
  "path",
2072
2204
  {
2073
2205
  fill: "#fbe9e7",
@@ -2076,7 +2208,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs13(
2076
2208
  "fill-rule": "nonzero"
2077
2209
  }
2078
2210
  ),
2079
- /* @__PURE__ */ jsx34(
2211
+ /* @__PURE__ */ jsx36(
2080
2212
  "path",
2081
2213
  {
2082
2214
  fill: "#ffe0b2",
@@ -2085,7 +2217,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs13(
2085
2217
  "fill-rule": "nonzero"
2086
2218
  }
2087
2219
  ),
2088
- /* @__PURE__ */ jsx34(
2220
+ /* @__PURE__ */ jsx36(
2089
2221
  "path",
2090
2222
  {
2091
2223
  fill: "#ffe0b2",
@@ -2094,7 +2226,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs13(
2094
2226
  "fill-rule": "nonzero"
2095
2227
  }
2096
2228
  ),
2097
- /* @__PURE__ */ jsx34(
2229
+ /* @__PURE__ */ jsx36(
2098
2230
  "path",
2099
2231
  {
2100
2232
  fill: "#ffe0b2",
@@ -2169,8 +2301,8 @@ var DocumentNode = (props) => {
2169
2301
  }
2170
2302
  }
2171
2303
  if (documents.length === 0) {
2172
- return /* @__PURE__ */ jsx34(Fragment6, { children: /* @__PURE__ */ jsxs13("div", { className: "py-4 px-2 bg-neutral-weak border rounded text-center flex flex-col gap-2", children: [
2173
- /* @__PURE__ */ jsx34("div", { className: "mx-auto w-10 h-10 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ jsx34(
2304
+ 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: [
2305
+ /* @__PURE__ */ jsx36("div", { className: "mx-auto w-10 h-10 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ jsx36(
2174
2306
  "svg",
2175
2307
  {
2176
2308
  className: "w-5 h-5",
@@ -2178,7 +2310,7 @@ var DocumentNode = (props) => {
2178
2310
  stroke: "currentColor",
2179
2311
  viewBox: "0 0 24 24",
2180
2312
  xmlns: "http://www.w3.org/2000/svg",
2181
- children: /* @__PURE__ */ jsx34(
2313
+ children: /* @__PURE__ */ jsx36(
2182
2314
  "path",
2183
2315
  {
2184
2316
  strokeLinecap: "round",
@@ -2189,11 +2321,11 @@ var DocumentNode = (props) => {
2189
2321
  )
2190
2322
  }
2191
2323
  ) }),
2192
- /* @__PURE__ */ jsx34("div", { className: "text-sm font-medium", children: "No documents found" }),
2193
- /* @__PURE__ */ jsx34("div", { className: "text-xs", children: "No records found. Data may be empty or not available at the moment." })
2324
+ /* @__PURE__ */ jsx36("div", { className: "text-sm font-medium", children: "No documents found" }),
2325
+ /* @__PURE__ */ jsx36("div", { className: "text-xs", children: "No records found. Data may be empty or not available at the moment." })
2194
2326
  ] }) });
2195
2327
  }
2196
- return /* @__PURE__ */ jsx34("div", { className: "", children: documents.map((doc, index) => {
2328
+ return /* @__PURE__ */ jsx36("div", { className: "", children: documents.map((doc, index) => {
2197
2329
  const documentUrl = AssetUtility_default.resolveUrl(
2198
2330
  props.assetBaseUrl,
2199
2331
  doc.assetUrl
@@ -2211,16 +2343,16 @@ var DocumentNode = (props) => {
2211
2343
  }
2212
2344
  }
2213
2345
  const { Icon, extLabel } = getFileDetails(documentUrl);
2214
- return /* @__PURE__ */ jsxs13(
2346
+ return /* @__PURE__ */ jsxs14(
2215
2347
  "div",
2216
2348
  {
2217
2349
  className: `flex items-center justify-between py-4 bg-default gap-4 ${index !== 0 ? "border-t" : ""}`,
2218
2350
  children: [
2219
- /* @__PURE__ */ jsxs13("div", { className: "flex items-center space-x-4", children: [
2220
- /* @__PURE__ */ jsx34("div", { className: "flex items-center justify-center p-2 rounded bg-neutral-soft", children: /* @__PURE__ */ jsx34(Icon, {}) }),
2221
- /* @__PURE__ */ jsx34("div", { className: "flex items-baseline space-x-2", children: /* @__PURE__ */ jsx34("h4", { className: "text-base font-semibold", children: documentTitle }) })
2351
+ /* @__PURE__ */ jsxs14("div", { className: "flex items-center space-x-4", children: [
2352
+ /* @__PURE__ */ jsx36("div", { className: "flex items-center justify-center p-2 rounded bg-neutral-soft", children: /* @__PURE__ */ jsx36(Icon, {}) }),
2353
+ /* @__PURE__ */ jsx36("div", { className: "flex items-baseline space-x-2", children: /* @__PURE__ */ jsx36("h4", { className: "text-base font-semibold", children: documentTitle }) })
2222
2354
  ] }),
2223
- /* @__PURE__ */ jsxs13(
2355
+ /* @__PURE__ */ jsxs14(
2224
2356
  "a",
2225
2357
  {
2226
2358
  href: documentUrl,
@@ -2228,7 +2360,7 @@ var DocumentNode = (props) => {
2228
2360
  rel: "noopener noreferrer",
2229
2361
  className: "inline-flex items-center px-4 py-2 text-sm font-medium bg-default border rounded focus:outline-none focus:ring-2 focus:ring-offset-2 transition-colors",
2230
2362
  children: [
2231
- /* @__PURE__ */ jsxs13(
2363
+ /* @__PURE__ */ jsxs14(
2232
2364
  "svg",
2233
2365
  {
2234
2366
  className: "w-4 h-4 mr-2",
@@ -2236,7 +2368,7 @@ var DocumentNode = (props) => {
2236
2368
  stroke: "currentColor",
2237
2369
  viewBox: "0 0 24 24",
2238
2370
  children: [
2239
- /* @__PURE__ */ jsx34(
2371
+ /* @__PURE__ */ jsx36(
2240
2372
  "path",
2241
2373
  {
2242
2374
  strokeLinecap: "round",
@@ -2245,7 +2377,7 @@ var DocumentNode = (props) => {
2245
2377
  d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"
2246
2378
  }
2247
2379
  ),
2248
- /* @__PURE__ */ jsx34(
2380
+ /* @__PURE__ */ jsx36(
2249
2381
  "path",
2250
2382
  {
2251
2383
  strokeLinecap: "round",
@@ -2271,13 +2403,13 @@ var DocumentNode_default = DocumentNode;
2271
2403
 
2272
2404
  // src/components/pageRenderingEngine/nodes/GoogleMapNode.tsx
2273
2405
  import dynamic10 from "next/dynamic";
2274
- import { jsx as jsx35 } from "react/jsx-runtime";
2406
+ import { jsx as jsx37 } from "react/jsx-runtime";
2275
2407
  var IframeClient2 = dynamic10(() => import("./IframeClient-XEWQLGUQ.mjs"), {
2276
2408
  ssr: false
2277
2409
  });
2278
2410
  var GoogleMapNode = (props) => {
2279
2411
  let src = props.node.embedUrl;
2280
- return /* @__PURE__ */ jsx35("div", { className: "google-map-container", children: src && /* @__PURE__ */ jsx35(
2412
+ return /* @__PURE__ */ jsx37("div", { className: "google-map-container", children: src && /* @__PURE__ */ jsx37(
2281
2413
  IframeClient2,
2282
2414
  {
2283
2415
  src,
@@ -2289,7 +2421,7 @@ var GoogleMapNode = (props) => {
2289
2421
  var GoogleMapNode_default = GoogleMapNode;
2290
2422
 
2291
2423
  // src/components/pageRenderingEngine/nodes/DivContainer.tsx
2292
- import { jsx as jsx36, jsxs as jsxs14 } from "react/jsx-runtime";
2424
+ import { jsx as jsx38, jsxs as jsxs15 } from "react/jsx-runtime";
2293
2425
  var Pagination = dynamic11(() => import("./Pagination-QBPYDD66.mjs"), { ssr: true });
2294
2426
  var DataBindingControls = dynamic11(() => import("./DataBindingControls-WJAY5HFO.mjs"), {
2295
2427
  ssr: true
@@ -2548,7 +2680,7 @@ var DivContainer = async (props) => {
2548
2680
  response = await serviceClient.get(endpoint);
2549
2681
  result = response?.result;
2550
2682
  if (dataBindingProperties.showNoResultsMessage && (result === void 0 || result.length == 0)) {
2551
- return /* @__PURE__ */ jsx36(NoDataFound_default, {});
2683
+ return /* @__PURE__ */ jsx38(NoDataFound_default, {});
2552
2684
  }
2553
2685
  if (dataBindingProperties.childCollectionName && props.dataitem) {
2554
2686
  childCollectionData = getNestedValue6(
@@ -2568,7 +2700,7 @@ var DivContainer = async (props) => {
2568
2700
  }
2569
2701
  const SelectedNode = NodeTypes2[node.type];
2570
2702
  if (!SelectedNode) return null;
2571
- return /* @__PURE__ */ jsx36(React23.Fragment, { children: /* @__PURE__ */ jsx36(
2703
+ return /* @__PURE__ */ jsx38(React25.Fragment, { children: /* @__PURE__ */ jsx38(
2572
2704
  SelectedNode,
2573
2705
  {
2574
2706
  node,
@@ -2588,7 +2720,7 @@ var DivContainer = async (props) => {
2588
2720
  }
2589
2721
  ) }, key);
2590
2722
  }
2591
- function renderChildren(nodes, props2, data, key, href) {
2723
+ function renderChildren2(nodes, props2, data, key, href) {
2592
2724
  if (!nodes) return null;
2593
2725
  const childNodes = nodes.map((node, index) => {
2594
2726
  if (
@@ -2705,7 +2837,7 @@ var DivContainer = async (props) => {
2705
2837
  dataBindingProperties?.showFacets || dataBindingProperties?.showSortOptions || dataBindingProperties?.showSearchBar
2706
2838
  );
2707
2839
  const WrapperComponent = Wrapper;
2708
- const renderedContainer = /* @__PURE__ */ jsx36(
2840
+ const renderedContainer = /* @__PURE__ */ jsx38(
2709
2841
  WrapperComponent,
2710
2842
  {
2711
2843
  id: guid,
@@ -2713,17 +2845,17 @@ var DivContainer = async (props) => {
2713
2845
  className: classNames || void 0,
2714
2846
  ...wrapperProps,
2715
2847
  children: dataToRender.map(
2716
- (item, idx) => item?.links?.view && renderLink ? renderChildren(
2848
+ (item, idx) => item?.links?.view && renderLink ? renderChildren2(
2717
2849
  props.node.children,
2718
2850
  props,
2719
2851
  item,
2720
2852
  idx,
2721
2853
  props.href ? void 0 : item?.links?.view
2722
- )?.map((child, i) => /* @__PURE__ */ jsx36(React23.Fragment, { children: child }, i)) : renderChildren(props.node.children, props, item, idx)
2854
+ )?.map((child, i) => /* @__PURE__ */ jsx38(React25.Fragment, { children: child }, i)) : renderChildren2(props.node.children, props, item, idx)
2723
2855
  )
2724
2856
  }
2725
2857
  );
2726
- const paginationControl = dataBindingProperties?.enablePagination ? /* @__PURE__ */ jsx36(
2858
+ const paginationControl = dataBindingProperties?.enablePagination ? /* @__PURE__ */ jsx38(
2727
2859
  Pagination,
2728
2860
  {
2729
2861
  path: props.path,
@@ -2731,15 +2863,15 @@ var DivContainer = async (props) => {
2731
2863
  dataset: response
2732
2864
  }
2733
2865
  ) : null;
2734
- return /* @__PURE__ */ jsxs14(React23.Fragment, { children: [
2735
- /* @__PURE__ */ jsx36(
2866
+ return /* @__PURE__ */ jsxs15(React25.Fragment, { children: [
2867
+ /* @__PURE__ */ jsx38(
2736
2868
  "style",
2737
2869
  {
2738
2870
  dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS }
2739
2871
  }
2740
2872
  ),
2741
- showDataBindingControls ? /* @__PURE__ */ jsxs14(React23.Fragment, { children: [
2742
- /* @__PURE__ */ jsx36(
2873
+ showDataBindingControls ? /* @__PURE__ */ jsxs15(React25.Fragment, { children: [
2874
+ /* @__PURE__ */ jsx38(
2743
2875
  DataBindingControls,
2744
2876
  {
2745
2877
  mode: "toolbar",
@@ -2751,18 +2883,18 @@ var DivContainer = async (props) => {
2751
2883
  showSearchBar: dataBindingProperties?.showSearchBar
2752
2884
  }
2753
2885
  ),
2754
- /* @__PURE__ */ jsxs14(
2886
+ /* @__PURE__ */ jsxs15(
2755
2887
  "div",
2756
2888
  {
2757
2889
  className: dataBindingProperties?.showFacets ? "grid items-start gap-6 lg:grid-cols-[minmax(0,1fr)_18rem]" : void 0,
2758
2890
  children: [
2759
- /* @__PURE__ */ jsxs14("div", { className: "min-w-0", children: [
2891
+ /* @__PURE__ */ jsxs15("div", { className: "min-w-0", children: [
2760
2892
  renderedContainer,
2761
2893
  paginationControl
2762
2894
  ] }),
2763
- dataBindingProperties?.showFacets && /* @__PURE__ */ jsxs14("aside", { className: "border bg-default p-3 lg:sticky lg:top-[90px] lg:self-start", children: [
2764
- /* @__PURE__ */ jsx36("h2", { className: "mb-2 text-lg font-semibold", children: "Filters" }),
2765
- /* @__PURE__ */ jsx36(
2895
+ dataBindingProperties?.showFacets && /* @__PURE__ */ jsxs15("aside", { className: "border bg-default p-3 lg:sticky lg:top-[90px] lg:self-start", children: [
2896
+ /* @__PURE__ */ jsx38("h2", { className: "mb-2 text-lg font-semibold", children: "Filters" }),
2897
+ /* @__PURE__ */ jsx38(
2766
2898
  DataBindingControls,
2767
2899
  {
2768
2900
  mode: "facets",
@@ -2776,16 +2908,16 @@ var DivContainer = async (props) => {
2776
2908
  ]
2777
2909
  }
2778
2910
  )
2779
- ] }) : /* @__PURE__ */ jsxs14(React23.Fragment, { children: [
2911
+ ] }) : /* @__PURE__ */ jsxs15(React25.Fragment, { children: [
2780
2912
  renderedContainer,
2781
- paginationControl && /* @__PURE__ */ jsx36("div", { children: paginationControl })
2913
+ paginationControl && /* @__PURE__ */ jsx38("div", { children: paginationControl })
2782
2914
  ] })
2783
2915
  ] });
2784
2916
  };
2785
2917
  var DivContainer_default = DivContainer;
2786
2918
 
2787
2919
  // src/components/pageRenderingEngine/PageBodyRenderer.tsx
2788
- import { jsx as jsx37 } from "react/jsx-runtime";
2920
+ import { jsx as jsx39 } from "react/jsx-runtime";
2789
2921
  var NodeTypes = {
2790
2922
  ["paragraph"]: ParagraphNode_default,
2791
2923
  ["heading"]: HeadingNode_default,
@@ -2823,14 +2955,14 @@ var PageBodyRenderer = (props) => {
2823
2955
  }
2824
2956
  return true;
2825
2957
  };
2826
- return /* @__PURE__ */ jsx37(React24.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
2958
+ return /* @__PURE__ */ jsx39(React26.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
2827
2959
  {
2828
2960
  }
2829
2961
  const SelectedNode = NodeTypes[node.type];
2830
2962
  if (!shouldRenderNode(node)) {
2831
2963
  return null;
2832
2964
  }
2833
- return /* @__PURE__ */ jsx37(React24.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx37(React24.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ jsx37(React24.Fragment, { children: /* @__PURE__ */ jsx37(
2965
+ return /* @__PURE__ */ jsx39(React26.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx39(React26.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ jsx39(React26.Fragment, { children: /* @__PURE__ */ jsx39(
2834
2966
  SelectedNode,
2835
2967
  {
2836
2968
  node,
@@ -2846,7 +2978,7 @@ var PageBodyRenderer = (props) => {
2846
2978
  device: props.device,
2847
2979
  widgetRenderer: props.widgetRenderer
2848
2980
  }
2849
- ) }) : /* @__PURE__ */ jsx37(React24.Fragment, { children: /* @__PURE__ */ jsx37(
2981
+ ) }) : /* @__PURE__ */ jsx39(React26.Fragment, { children: /* @__PURE__ */ jsx39(
2850
2982
  SelectedNode,
2851
2983
  {
2852
2984
  node,