@clyrex-digital/clyrex-controls-dev 0.8.1-dev.20260825113828 → 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
  }
@@ -837,7 +969,8 @@ var DatafieldNode = (props) => {
837
969
  const value = props.dataitem ? getNestedProperty(props.dataitem, fieldName) : null;
838
970
  const isEmptyValue = value === null || value === void 0 || value === "" || Array.isArray(value) && value.length === 0 || typeof value === "object" && value !== null && Object.keys(value).length === 0;
839
971
  const maxLines = props.node.maxLines;
840
- if (maxLines && Number(maxLines) > 0) {
972
+ const hasMaxLines = Boolean(maxLines && Number(maxLines) > 0);
973
+ if (hasMaxLines) {
841
974
  Object.assign(styles, {
842
975
  display: "-webkit-box",
843
976
  overflow: "hidden",
@@ -845,10 +978,11 @@ var DatafieldNode = (props) => {
845
978
  WebkitLineClamp: String(maxLines)
846
979
  });
847
980
  }
981
+ const title = hasMaxLines ? typeof value === "string" || typeof value === "number" ? String(value) : props.node.title : props.node.title;
848
982
  const dataType = props.node.dataType;
849
983
  if (isEmptyValue) return null;
850
984
  if (dataType === "rawContent") {
851
- return /* @__PURE__ */ jsx22(
985
+ return /* @__PURE__ */ jsx24(
852
986
  PageBodyRenderer_default,
853
987
  {
854
988
  rawBody: String(value ?? `@databound[${fieldName}]`),
@@ -864,12 +998,13 @@ var DatafieldNode = (props) => {
864
998
  }
865
999
  );
866
1000
  }
867
- return /* @__PURE__ */ jsx22(
1001
+ return /* @__PURE__ */ jsx24(
868
1002
  "span",
869
1003
  {
870
1004
  className: `datafield-node ${props.node.format < Formats.length ? Formats[props.node.format] : ""}`,
871
1005
  style: styles,
872
- children: /* @__PURE__ */ jsx22(
1006
+ title,
1007
+ children: /* @__PURE__ */ jsx24(
873
1008
  ViewControl_default,
874
1009
  {
875
1010
  controlType: dataType,
@@ -882,7 +1017,7 @@ var DatafieldNode = (props) => {
882
1017
  var DatafieldNode_default = DatafieldNode;
883
1018
 
884
1019
  // src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
885
- 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";
886
1021
  var ParagraphNode = (props) => {
887
1022
  const NodeTypes2 = {
888
1023
  ["text"]: TextNode_default,
@@ -902,9 +1037,9 @@ var ParagraphNode = (props) => {
902
1037
  const isInlineOnlyParent = props.parentTag === "summary";
903
1038
  const hasChildren = props.node.children && props.node.children.length > 0;
904
1039
  if (isInlineOnlyParent) {
905
- 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) => {
906
1041
  const SelectedNode = NodeTypes2[node.type];
907
- return /* @__PURE__ */ jsx23(React16.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx23(
1042
+ return /* @__PURE__ */ jsx25(React18.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx25(
908
1043
  SelectedNode,
909
1044
  {
910
1045
  node,
@@ -916,10 +1051,10 @@ var ParagraphNode = (props) => {
916
1051
  ) }, index);
917
1052
  }) });
918
1053
  }
919
- return /* @__PURE__ */ jsxs8("div", { className: " " + formatClasses, children: [
1054
+ return /* @__PURE__ */ jsxs9("div", { className: " " + formatClasses, children: [
920
1055
  hasChildren && props.node.children.map((node, index) => {
921
1056
  const SelectedNode = NodeTypes2[node.type];
922
- return /* @__PURE__ */ jsx23(React16.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx23(
1057
+ return /* @__PURE__ */ jsx25(React18.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx25(
923
1058
  SelectedNode,
924
1059
  {
925
1060
  node,
@@ -930,14 +1065,14 @@ var ParagraphNode = (props) => {
930
1065
  }
931
1066
  ) }, index);
932
1067
  }),
933
- !hasChildren && /* @__PURE__ */ jsx23("div", { className: "py-1.5 lg:py-2" })
1068
+ !hasChildren && /* @__PURE__ */ jsx25("div", { className: "py-1.5 lg:py-2" })
934
1069
  ] });
935
1070
  };
936
1071
  var ParagraphNode_default = ParagraphNode;
937
1072
 
938
1073
  // src/components/pageRenderingEngine/nodes/HeadingNode.tsx
939
- import React17 from "react";
940
- 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";
941
1076
  var HeadingNode = (props) => {
942
1077
  const NodeTypes2 = {
943
1078
  ["text"]: TextNode_default,
@@ -953,23 +1088,23 @@ var HeadingNode = (props) => {
953
1088
  {
954
1089
  }
955
1090
  const formatClasses = FormatClass[props.node.format] || "";
956
- return /* @__PURE__ */ jsx24(Fragment3, { children: React17.createElement(
1091
+ return /* @__PURE__ */ jsx26(Fragment3, { children: React19.createElement(
957
1092
  HeadingTag,
958
1093
  { className: formatClasses },
959
1094
  props.node.children && props.node.children.map((childNode, index) => {
960
1095
  const SelectedNode = NodeTypes2[childNode.type];
961
- 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);
962
1097
  })
963
1098
  ) });
964
1099
  };
965
1100
  var HeadingNode_default = HeadingNode;
966
1101
 
967
1102
  // src/components/pageRenderingEngine/nodes/ListNode.tsx
968
- import React19 from "react";
1103
+ import React21 from "react";
969
1104
 
970
1105
  // src/components/pageRenderingEngine/nodes/ListItemNode.tsx
971
- import React18 from "react";
972
- import { jsx as jsx25 } from "react/jsx-runtime";
1106
+ import React20 from "react";
1107
+ import { jsx as jsx27 } from "react/jsx-runtime";
973
1108
  var ListItemNode = (props) => {
974
1109
  const NodeTypes2 = {
975
1110
  text: TextNode_default,
@@ -986,66 +1121,66 @@ var ListItemNode = (props) => {
986
1121
  liStyle.fontSize = match[1].trim();
987
1122
  }
988
1123
  }
989
- 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) => {
990
1125
  const SelectedNode = NodeTypes2[node.type];
991
1126
  if (node.type === "linebreak") {
992
1127
  if (!foundFirstBreak) {
993
1128
  foundFirstBreak = true;
994
- return /* @__PURE__ */ jsx25("div", {}, index);
1129
+ return /* @__PURE__ */ jsx27("div", {}, index);
995
1130
  } else {
996
- return /* @__PURE__ */ jsx25("div", { className: "py-1 lg:py-2" }, index);
1131
+ return /* @__PURE__ */ jsx27("div", { className: "py-1 lg:py-2" }, index);
997
1132
  }
998
1133
  } else {
999
1134
  foundFirstBreak = false;
1000
- 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);
1001
1136
  }
1002
1137
  }) });
1003
1138
  };
1004
1139
  var ListItemNode_default = ListItemNode;
1005
1140
 
1006
1141
  // src/components/pageRenderingEngine/nodes/ListNode.tsx
1007
- import { jsx as jsx26, jsxs as jsxs9 } from "react/jsx-runtime";
1142
+ import { jsx as jsx28, jsxs as jsxs10 } from "react/jsx-runtime";
1008
1143
  var ListNode = (props) => {
1009
1144
  const NodeTypes2 = {
1010
1145
  listitem: ListItemNode_default
1011
1146
  };
1012
- return /* @__PURE__ */ jsxs9(React19.Fragment, { children: [
1013
- 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) => {
1014
1149
  const SelectedNode = NodeTypes2[node.type];
1015
- 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);
1016
1151
  }) }),
1017
- 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) => {
1018
1153
  const SelectedNode = NodeTypes2[node.type];
1019
- 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);
1020
1155
  }) })
1021
1156
  ] });
1022
1157
  };
1023
1158
  var ListNode_default = ListNode;
1024
1159
 
1025
1160
  // src/components/pageRenderingEngine/nodes/QuoteNode.tsx
1026
- import React20 from "react";
1027
- import { jsx as jsx27 } from "react/jsx-runtime";
1161
+ import React22 from "react";
1162
+ import { jsx as jsx29 } from "react/jsx-runtime";
1028
1163
  var QuoteNode = (props) => {
1029
1164
  const NodeTypes2 = {
1030
1165
  ["text"]: TextNode_default,
1031
1166
  ["linebreak"]: LineBreakNode_default,
1032
1167
  ["link"]: LinkNode_default
1033
1168
  };
1034
- 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) => {
1035
1170
  const SelectedNode = NodeTypes2[node.type];
1036
- 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);
1037
1172
  }) });
1038
1173
  };
1039
1174
  var QuoteNode_default = QuoteNode;
1040
1175
 
1041
1176
  // src/components/pageRenderingEngine/nodes/CodeNode.tsx
1042
- import React21 from "react";
1177
+ import React23 from "react";
1043
1178
  import dynamic7 from "next/dynamic";
1044
- import { jsx as jsx28, jsxs as jsxs10 } from "react/jsx-runtime";
1179
+ import { jsx as jsx30, jsxs as jsxs11 } from "react/jsx-runtime";
1045
1180
  var CopyButton = dynamic7(() => import("./CopyButton-XONTQQW7.mjs"), {
1046
1181
  ssr: false,
1047
1182
  // optional: fallback UI while loading
1048
- 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" })
1049
1184
  });
1050
1185
  var CodeNode = (props) => {
1051
1186
  const NodeTypes2 = {
@@ -1059,14 +1194,14 @@ var CodeNode = (props) => {
1059
1194
  if (node.type === "link") return node.text || node.url || "";
1060
1195
  return "";
1061
1196
  }).join("") ?? "";
1062
- return /* @__PURE__ */ jsxs10("div", { children: [
1063
- /* @__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: [
1064
- /* @__PURE__ */ jsx28("span", { children: "Code Snippet" }),
1065
- /* @__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 })
1066
1201
  ] }),
1067
- /* @__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) => {
1068
1203
  const SelectedNode = NodeTypes2[node.type];
1069
- return /* @__PURE__ */ jsx28(React21.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx28(
1204
+ return /* @__PURE__ */ jsx30(React23.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx30(
1070
1205
  SelectedNode,
1071
1206
  {
1072
1207
  node,
@@ -1081,15 +1216,15 @@ var CodeNode = (props) => {
1081
1216
  var CodeNode_default = CodeNode;
1082
1217
 
1083
1218
  // src/components/pageRenderingEngine/nodes/HorizontalRuleNode.tsx
1084
- import { jsx as jsx29 } from "react/jsx-runtime";
1219
+ import { jsx as jsx31 } from "react/jsx-runtime";
1085
1220
  var HorizontalRuleNode = () => {
1086
- return /* @__PURE__ */ jsx29("hr", {});
1221
+ return /* @__PURE__ */ jsx31("hr", {});
1087
1222
  };
1088
1223
  var HorizontalRuleNode_default = HorizontalRuleNode;
1089
1224
 
1090
1225
  // src/components/pageRenderingEngine/nodes/WidgetNode.tsx
1091
- import React22 from "react";
1092
- 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";
1093
1228
  var WidgetNode = (props) => {
1094
1229
  const getWidgetParameters = () => {
1095
1230
  const widgetInputParameters = {
@@ -1153,7 +1288,7 @@ var WidgetNode = (props) => {
1153
1288
  };
1154
1289
  const widgetCode = props.node?.widgetCode;
1155
1290
  if (!widgetCode) {
1156
- return /* @__PURE__ */ jsx30(Fragment4, { children: "Invalid widget" });
1291
+ return /* @__PURE__ */ jsx32(Fragment4, { children: "Invalid widget" });
1157
1292
  }
1158
1293
  const widgetParams = getWidgetParameters();
1159
1294
  const WidgetRenderer = props.widgetRenderer;
@@ -1162,7 +1297,7 @@ var WidgetNode = (props) => {
1162
1297
  }
1163
1298
  return (
1164
1299
  // eslint-disable-next-line react-hooks/static-components
1165
- /* @__PURE__ */ jsx30(React22.Fragment, { children: /* @__PURE__ */ jsx30(
1300
+ /* @__PURE__ */ jsx32(React24.Fragment, { children: /* @__PURE__ */ jsx32(
1166
1301
  WidgetRenderer,
1167
1302
  {
1168
1303
  params: widgetParams,
@@ -1180,11 +1315,11 @@ var WidgetNode_default = WidgetNode;
1180
1315
 
1181
1316
  // src/components/pageRenderingEngine/nodes/DivContainer.tsx
1182
1317
  import dynamic11 from "next/dynamic";
1183
- import React23 from "react";
1318
+ import React25 from "react";
1184
1319
 
1185
1320
  // src/components/pageRenderingEngine/nodes/EmbedNode.tsx
1186
1321
  import dynamic8 from "next/dynamic";
1187
- import { jsx as jsx31 } from "react/jsx-runtime";
1322
+ import { jsx as jsx33 } from "react/jsx-runtime";
1188
1323
  var IframeClient = dynamic8(() => import("./IframeClient-XEWQLGUQ.mjs"), {
1189
1324
  ssr: false
1190
1325
  });
@@ -1197,7 +1332,7 @@ var EmbedNode = (props) => {
1197
1332
  } else {
1198
1333
  src = props.node.embedSrc;
1199
1334
  }
1200
- 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 }) });
1201
1336
  };
1202
1337
  var EmbedNode_default = EmbedNode;
1203
1338
 
@@ -1390,10 +1525,10 @@ var PathUtility = class {
1390
1525
  var PathUtility_default = new PathUtility();
1391
1526
 
1392
1527
  // src/components/NoDataFound.tsx
1393
- import { jsx as jsx32, jsxs as jsxs11 } from "react/jsx-runtime";
1528
+ import { jsx as jsx34, jsxs as jsxs12 } from "react/jsx-runtime";
1394
1529
  var NoDataFound = () => {
1395
- return /* @__PURE__ */ jsxs11("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center bg-neutral-weak", children: [
1396
- /* @__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(
1397
1532
  "svg",
1398
1533
  {
1399
1534
  className: "w-10 h-10",
@@ -1401,7 +1536,7 @@ var NoDataFound = () => {
1401
1536
  stroke: "currentColor",
1402
1537
  viewBox: "0 0 24 24",
1403
1538
  xmlns: "http://www.w3.org/2000/svg",
1404
- children: /* @__PURE__ */ jsx32(
1539
+ children: /* @__PURE__ */ jsx34(
1405
1540
  "path",
1406
1541
  {
1407
1542
  strokeLinecap: "round",
@@ -1412,15 +1547,15 @@ var NoDataFound = () => {
1412
1547
  )
1413
1548
  }
1414
1549
  ) }) }),
1415
- /* @__PURE__ */ jsx32("h3", { className: "text-lg font-medium mb-2", children: "No data available" }),
1416
- /* @__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." })
1417
1552
  ] });
1418
1553
  };
1419
1554
  var NoDataFound_default = NoDataFound;
1420
1555
 
1421
1556
  // src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
1422
1557
  import dynamic9 from "next/dynamic";
1423
- 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";
1424
1559
  var HlsPlayer3 = dynamic9(() => import("./HlsPlayer-BVS6BVF7.mjs"), { ssr: false });
1425
1560
  var deviceToMediaQuery = (device) => {
1426
1561
  switch (device) {
@@ -1576,8 +1711,8 @@ var ImageGalleryNode = (props) => {
1576
1711
  right: "justify-end"
1577
1712
  };
1578
1713
  const formatClasses = FormatClass[props.node.format || ""] || "";
1579
- return /* @__PURE__ */ jsxs12(Fragment5, { children: [
1580
- 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(
1581
1716
  HlsPlayer3,
1582
1717
  {
1583
1718
  sources: hlsSources,
@@ -1592,7 +1727,7 @@ var ImageGalleryNode = (props) => {
1592
1727
  styles: hlsStyles
1593
1728
  }
1594
1729
  ) }),
1595
- (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: [
1596
1731
  DEVICE_ORDER.map((deviceKey) => {
1597
1732
  const match = staticSources.find(
1598
1733
  (img) => img.device === deviceKey
@@ -1608,7 +1743,7 @@ var ImageGalleryNode = (props) => {
1608
1743
  if (!srcUrl) {
1609
1744
  return null;
1610
1745
  }
1611
- return /* @__PURE__ */ jsx33(
1746
+ return /* @__PURE__ */ jsx35(
1612
1747
  "source",
1613
1748
  {
1614
1749
  media: deviceToMediaQuery(match.device),
@@ -1633,7 +1768,7 @@ var ImageGalleryNode = (props) => {
1633
1768
  if (img.borderRadius) {
1634
1769
  styles.borderRadius = img.borderRadius;
1635
1770
  }
1636
- return /* @__PURE__ */ jsx33(
1771
+ return /* @__PURE__ */ jsx35(
1637
1772
  "img",
1638
1773
  {
1639
1774
  loading: "lazy",
@@ -1648,7 +1783,7 @@ var ImageGalleryNode = (props) => {
1648
1783
  })()
1649
1784
  ] }) : (
1650
1785
  /* Case 2: Only device-specific images exist */
1651
- /* @__PURE__ */ jsx33(Fragment5, { children: staticSources.map((img, index) => {
1786
+ /* @__PURE__ */ jsx35(Fragment5, { children: staticSources.map((img, index) => {
1652
1787
  const resolved = resolveImage(img);
1653
1788
  const imageUrl = resolved?.imageUrl;
1654
1789
  if (!imageUrl) {
@@ -1675,7 +1810,7 @@ var ImageGalleryNode = (props) => {
1675
1810
  default:
1676
1811
  display = "block";
1677
1812
  }
1678
- return /* @__PURE__ */ jsx33(
1813
+ return /* @__PURE__ */ jsx35(
1679
1814
  "img",
1680
1815
  {
1681
1816
  loading: "lazy",
@@ -1815,28 +1950,28 @@ var shouldRenderContainer = (node, dataItem, session) => {
1815
1950
  };
1816
1951
 
1817
1952
  // src/components/pageRenderingEngine/nodes/DocumentNode.tsx
1818
- 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";
1819
1954
  var getNestedValue5 = (obj, path) => {
1820
1955
  if (!obj || !path) return void 0;
1821
1956
  return path.split(".").reduce((current, key) => {
1822
1957
  return current && current[key] !== void 0 ? current[key] : void 0;
1823
1958
  }, obj);
1824
1959
  };
1825
- var PdfIcon = () => /* @__PURE__ */ jsxs13(
1960
+ var PdfIcon = () => /* @__PURE__ */ jsxs14(
1826
1961
  "svg",
1827
1962
  {
1828
1963
  xmlns: "http://www.w3.org/2000/svg",
1829
1964
  viewBox: "0 0 48 48",
1830
1965
  className: "w-10 h-10",
1831
1966
  children: [
1832
- /* @__PURE__ */ jsx34(
1967
+ /* @__PURE__ */ jsx36(
1833
1968
  "path",
1834
1969
  {
1835
1970
  fill: "#e53935",
1836
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"
1837
1972
  }
1838
1973
  ),
1839
- /* @__PURE__ */ jsx34(
1974
+ /* @__PURE__ */ jsx36(
1840
1975
  "path",
1841
1976
  {
1842
1977
  fill: "#fff",
@@ -1846,55 +1981,55 @@ var PdfIcon = () => /* @__PURE__ */ jsxs13(
1846
1981
  ]
1847
1982
  }
1848
1983
  );
1849
- var ExcelIcon = () => /* @__PURE__ */ jsxs13(
1984
+ var ExcelIcon = () => /* @__PURE__ */ jsxs14(
1850
1985
  "svg",
1851
1986
  {
1852
1987
  xmlns: "http://www.w3.org/2000/svg",
1853
1988
  viewBox: "0 0 48 48",
1854
1989
  className: "w-10 h-10",
1855
1990
  children: [
1856
- /* @__PURE__ */ jsx34(
1991
+ /* @__PURE__ */ jsx36(
1857
1992
  "path",
1858
1993
  {
1859
1994
  fill: "#169154",
1860
1995
  d: "M29,6H15.744C14.781,6,14,6.781,14,7.744v7.259h15V6z"
1861
1996
  }
1862
1997
  ),
1863
- /* @__PURE__ */ jsx34(
1998
+ /* @__PURE__ */ jsx36(
1864
1999
  "path",
1865
2000
  {
1866
2001
  fill: "#18482a",
1867
2002
  d: "M14,33.054v7.202C14,41.219,14.781,42,15.743,42H29v-8.946H14z"
1868
2003
  }
1869
2004
  ),
1870
- /* @__PURE__ */ jsx34("path", { fill: "#0c8045", d: "M14 15.003H29V24.005000000000003H14z" }),
1871
- /* @__PURE__ */ jsx34("path", { fill: "#17472a", d: "M14 24.005H29V33.055H14z" }),
1872
- /* @__PURE__ */ jsxs13("g", { children: [
1873
- /* @__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(
1874
2009
  "path",
1875
2010
  {
1876
2011
  fill: "#29c27f",
1877
2012
  d: "M42.256,6H29v9.003h15V7.744C44,6.781,43.219,6,42.256,6z"
1878
2013
  }
1879
2014
  ),
1880
- /* @__PURE__ */ jsx34(
2015
+ /* @__PURE__ */ jsx36(
1881
2016
  "path",
1882
2017
  {
1883
2018
  fill: "#27663f",
1884
2019
  d: "M29,33.054V42h13.257C43.219,42,44,41.219,44,40.257v-7.202H29z"
1885
2020
  }
1886
2021
  ),
1887
- /* @__PURE__ */ jsx34("path", { fill: "#19ac65", d: "M29 15.003H44V24.005000000000003H29z" }),
1888
- /* @__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" })
1889
2024
  ] }),
1890
- /* @__PURE__ */ jsx34(
2025
+ /* @__PURE__ */ jsx36(
1891
2026
  "path",
1892
2027
  {
1893
2028
  fill: "#0c7238",
1894
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"
1895
2030
  }
1896
2031
  ),
1897
- /* @__PURE__ */ jsx34(
2032
+ /* @__PURE__ */ jsx36(
1898
2033
  "path",
1899
2034
  {
1900
2035
  fill: "#fff",
@@ -1904,7 +2039,7 @@ var ExcelIcon = () => /* @__PURE__ */ jsxs13(
1904
2039
  ]
1905
2040
  }
1906
2041
  );
1907
- var WordIcon = () => /* @__PURE__ */ jsxs13(
2042
+ var WordIcon = () => /* @__PURE__ */ jsxs14(
1908
2043
  "svg",
1909
2044
  {
1910
2045
  xmlns: "http://www.w3.org/2000/svg",
@@ -1912,14 +2047,14 @@ var WordIcon = () => /* @__PURE__ */ jsxs13(
1912
2047
  className: "w-10 h-10",
1913
2048
  baseProfile: "basic",
1914
2049
  children: [
1915
- /* @__PURE__ */ jsx34(
2050
+ /* @__PURE__ */ jsx36(
1916
2051
  "path",
1917
2052
  {
1918
2053
  fill: "#283593",
1919
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"
1920
2055
  }
1921
2056
  ),
1922
- /* @__PURE__ */ jsxs13(
2057
+ /* @__PURE__ */ jsxs14(
1923
2058
  "linearGradient",
1924
2059
  {
1925
2060
  id: "qh2LT5tehRDFkLLfb-odWa",
@@ -1930,19 +2065,19 @@ var WordIcon = () => /* @__PURE__ */ jsxs13(
1930
2065
  gradientTransform: "translate(0 -339.89)",
1931
2066
  gradientUnits: "userSpaceOnUse",
1932
2067
  children: [
1933
- /* @__PURE__ */ jsx34("stop", { offset: "0", "stop-color": "#66c0ff" }),
1934
- /* @__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" })
1935
2070
  ]
1936
2071
  }
1937
2072
  ),
1938
- /* @__PURE__ */ jsx34(
2073
+ /* @__PURE__ */ jsx36(
1939
2074
  "path",
1940
2075
  {
1941
2076
  fill: "url(#qh2LT5tehRDFkLLfb-odWa)",
1942
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"
1943
2078
  }
1944
2079
  ),
1945
- /* @__PURE__ */ jsx34(
2080
+ /* @__PURE__ */ jsx36(
1946
2081
  "path",
1947
2082
  {
1948
2083
  fill: "#1e88e5",
@@ -1950,21 +2085,21 @@ var WordIcon = () => /* @__PURE__ */ jsxs13(
1950
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"
1951
2086
  }
1952
2087
  ),
1953
- /* @__PURE__ */ jsx34(
2088
+ /* @__PURE__ */ jsx36(
1954
2089
  "path",
1955
2090
  {
1956
2091
  fill: "#00e5ff",
1957
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"
1958
2093
  }
1959
2094
  ),
1960
- /* @__PURE__ */ jsx34(
2095
+ /* @__PURE__ */ jsx36(
1961
2096
  "path",
1962
2097
  {
1963
2098
  fill: "#1565c0",
1964
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"
1965
2100
  }
1966
2101
  ),
1967
- /* @__PURE__ */ jsx34(
2102
+ /* @__PURE__ */ jsx36(
1968
2103
  "path",
1969
2104
  {
1970
2105
  fill: "#fff",
@@ -1974,42 +2109,42 @@ var WordIcon = () => /* @__PURE__ */ jsxs13(
1974
2109
  ]
1975
2110
  }
1976
2111
  );
1977
- var StandardIcon = () => /* @__PURE__ */ jsxs13(
2112
+ var StandardIcon = () => /* @__PURE__ */ jsxs14(
1978
2113
  "svg",
1979
2114
  {
1980
2115
  xmlns: "http://www.w3.org/2000/svg",
1981
2116
  viewBox: "0 0 48 48",
1982
2117
  className: "w-10 h-10",
1983
2118
  children: [
1984
- /* @__PURE__ */ jsx34("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
1985
- /* @__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" })
1986
2121
  ]
1987
2122
  }
1988
2123
  );
1989
- var PowerPointIcon = () => /* @__PURE__ */ jsxs13(
2124
+ var PowerPointIcon = () => /* @__PURE__ */ jsxs14(
1990
2125
  "svg",
1991
2126
  {
1992
2127
  xmlns: "http://www.w3.org/2000/svg",
1993
2128
  viewBox: "0 0 48 48",
1994
2129
  className: "w-10 h-10",
1995
2130
  children: [
1996
- /* @__PURE__ */ jsx34(
2131
+ /* @__PURE__ */ jsx36(
1997
2132
  "path",
1998
2133
  {
1999
2134
  fill: "#dc4c2c",
2000
2135
  d: "M8,24c0,9.941,8.059,18,18,18s18-8.059,18-18H26H8z"
2001
2136
  }
2002
2137
  ),
2003
- /* @__PURE__ */ jsx34("path", { fill: "#f7a278", d: "M26,6v18h18C44,14.059,35.941,6,26,6z" }),
2004
- /* @__PURE__ */ jsx34("path", { fill: "#c06346", d: "M26,6C16.059,6,8,14.059,8,24h18V6z" }),
2005
- /* @__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(
2006
2141
  "path",
2007
2142
  {
2008
2143
  fill: "#9b341f",
2009
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"
2010
2145
  }
2011
2146
  ),
2012
- /* @__PURE__ */ jsx34(
2147
+ /* @__PURE__ */ jsx36(
2013
2148
  "path",
2014
2149
  {
2015
2150
  fill: "#fff",
@@ -2019,16 +2154,16 @@ var PowerPointIcon = () => /* @__PURE__ */ jsxs13(
2019
2154
  ]
2020
2155
  }
2021
2156
  );
2022
- var TextIcon = () => /* @__PURE__ */ jsxs13(
2157
+ var TextIcon = () => /* @__PURE__ */ jsxs14(
2023
2158
  "svg",
2024
2159
  {
2025
2160
  xmlns: "http://www.w3.org/2000/svg",
2026
2161
  viewBox: "0 0 48 48",
2027
2162
  className: "w-10 h-10",
2028
2163
  children: [
2029
- /* @__PURE__ */ jsx34("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
2030
- /* @__PURE__ */ jsx34("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" }),
2031
- /* @__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(
2032
2167
  "path",
2033
2168
  {
2034
2169
  fill: "#1976D2",
@@ -2038,7 +2173,7 @@ var TextIcon = () => /* @__PURE__ */ jsxs13(
2038
2173
  ]
2039
2174
  }
2040
2175
  );
2041
- var ArchiveIcon = () => /* @__PURE__ */ jsxs13(
2176
+ var ArchiveIcon = () => /* @__PURE__ */ jsxs14(
2042
2177
  "svg",
2043
2178
  {
2044
2179
  xmlns: "http://www.w3.org/2000/svg",
@@ -2048,14 +2183,14 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs13(
2048
2183
  version: "1.0",
2049
2184
  className: "w-10 h-10",
2050
2185
  children: [
2051
- /* @__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(
2052
2187
  "path",
2053
2188
  {
2054
2189
  d: "M 8.90625 0 L 65.90625 0 L 65.90625 75 L 8.90625 75 Z M 8.90625 0 ",
2055
2190
  "clip-rule": "nonzero"
2056
2191
  }
2057
2192
  ) }) }),
2058
- /* @__PURE__ */ jsx34("g", { "clip-path": "url(#273d29c8a6)", children: /* @__PURE__ */ jsx34(
2193
+ /* @__PURE__ */ jsx36("g", { "clip-path": "url(#273d29c8a6)", children: /* @__PURE__ */ jsx36(
2059
2194
  "path",
2060
2195
  {
2061
2196
  fill: "#ff9100",
@@ -2064,7 +2199,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs13(
2064
2199
  "fill-rule": "nonzero"
2065
2200
  }
2066
2201
  ) }),
2067
- /* @__PURE__ */ jsx34(
2202
+ /* @__PURE__ */ jsx36(
2068
2203
  "path",
2069
2204
  {
2070
2205
  fill: "#fbe9e7",
@@ -2073,7 +2208,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs13(
2073
2208
  "fill-rule": "nonzero"
2074
2209
  }
2075
2210
  ),
2076
- /* @__PURE__ */ jsx34(
2211
+ /* @__PURE__ */ jsx36(
2077
2212
  "path",
2078
2213
  {
2079
2214
  fill: "#ffe0b2",
@@ -2082,7 +2217,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs13(
2082
2217
  "fill-rule": "nonzero"
2083
2218
  }
2084
2219
  ),
2085
- /* @__PURE__ */ jsx34(
2220
+ /* @__PURE__ */ jsx36(
2086
2221
  "path",
2087
2222
  {
2088
2223
  fill: "#ffe0b2",
@@ -2091,7 +2226,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs13(
2091
2226
  "fill-rule": "nonzero"
2092
2227
  }
2093
2228
  ),
2094
- /* @__PURE__ */ jsx34(
2229
+ /* @__PURE__ */ jsx36(
2095
2230
  "path",
2096
2231
  {
2097
2232
  fill: "#ffe0b2",
@@ -2166,8 +2301,8 @@ var DocumentNode = (props) => {
2166
2301
  }
2167
2302
  }
2168
2303
  if (documents.length === 0) {
2169
- 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: [
2170
- /* @__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(
2171
2306
  "svg",
2172
2307
  {
2173
2308
  className: "w-5 h-5",
@@ -2175,7 +2310,7 @@ var DocumentNode = (props) => {
2175
2310
  stroke: "currentColor",
2176
2311
  viewBox: "0 0 24 24",
2177
2312
  xmlns: "http://www.w3.org/2000/svg",
2178
- children: /* @__PURE__ */ jsx34(
2313
+ children: /* @__PURE__ */ jsx36(
2179
2314
  "path",
2180
2315
  {
2181
2316
  strokeLinecap: "round",
@@ -2186,11 +2321,11 @@ var DocumentNode = (props) => {
2186
2321
  )
2187
2322
  }
2188
2323
  ) }),
2189
- /* @__PURE__ */ jsx34("div", { className: "text-sm font-medium", children: "No documents found" }),
2190
- /* @__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." })
2191
2326
  ] }) });
2192
2327
  }
2193
- return /* @__PURE__ */ jsx34("div", { className: "", children: documents.map((doc, index) => {
2328
+ return /* @__PURE__ */ jsx36("div", { className: "", children: documents.map((doc, index) => {
2194
2329
  const documentUrl = AssetUtility_default.resolveUrl(
2195
2330
  props.assetBaseUrl,
2196
2331
  doc.assetUrl
@@ -2208,16 +2343,16 @@ var DocumentNode = (props) => {
2208
2343
  }
2209
2344
  }
2210
2345
  const { Icon, extLabel } = getFileDetails(documentUrl);
2211
- return /* @__PURE__ */ jsxs13(
2346
+ return /* @__PURE__ */ jsxs14(
2212
2347
  "div",
2213
2348
  {
2214
2349
  className: `flex items-center justify-between py-4 bg-default gap-4 ${index !== 0 ? "border-t" : ""}`,
2215
2350
  children: [
2216
- /* @__PURE__ */ jsxs13("div", { className: "flex items-center space-x-4", children: [
2217
- /* @__PURE__ */ jsx34("div", { className: "flex items-center justify-center p-2 rounded bg-neutral-soft", children: /* @__PURE__ */ jsx34(Icon, {}) }),
2218
- /* @__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 }) })
2219
2354
  ] }),
2220
- /* @__PURE__ */ jsxs13(
2355
+ /* @__PURE__ */ jsxs14(
2221
2356
  "a",
2222
2357
  {
2223
2358
  href: documentUrl,
@@ -2225,7 +2360,7 @@ var DocumentNode = (props) => {
2225
2360
  rel: "noopener noreferrer",
2226
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",
2227
2362
  children: [
2228
- /* @__PURE__ */ jsxs13(
2363
+ /* @__PURE__ */ jsxs14(
2229
2364
  "svg",
2230
2365
  {
2231
2366
  className: "w-4 h-4 mr-2",
@@ -2233,7 +2368,7 @@ var DocumentNode = (props) => {
2233
2368
  stroke: "currentColor",
2234
2369
  viewBox: "0 0 24 24",
2235
2370
  children: [
2236
- /* @__PURE__ */ jsx34(
2371
+ /* @__PURE__ */ jsx36(
2237
2372
  "path",
2238
2373
  {
2239
2374
  strokeLinecap: "round",
@@ -2242,7 +2377,7 @@ var DocumentNode = (props) => {
2242
2377
  d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"
2243
2378
  }
2244
2379
  ),
2245
- /* @__PURE__ */ jsx34(
2380
+ /* @__PURE__ */ jsx36(
2246
2381
  "path",
2247
2382
  {
2248
2383
  strokeLinecap: "round",
@@ -2268,13 +2403,13 @@ var DocumentNode_default = DocumentNode;
2268
2403
 
2269
2404
  // src/components/pageRenderingEngine/nodes/GoogleMapNode.tsx
2270
2405
  import dynamic10 from "next/dynamic";
2271
- import { jsx as jsx35 } from "react/jsx-runtime";
2406
+ import { jsx as jsx37 } from "react/jsx-runtime";
2272
2407
  var IframeClient2 = dynamic10(() => import("./IframeClient-XEWQLGUQ.mjs"), {
2273
2408
  ssr: false
2274
2409
  });
2275
2410
  var GoogleMapNode = (props) => {
2276
2411
  let src = props.node.embedUrl;
2277
- 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(
2278
2413
  IframeClient2,
2279
2414
  {
2280
2415
  src,
@@ -2286,7 +2421,7 @@ var GoogleMapNode = (props) => {
2286
2421
  var GoogleMapNode_default = GoogleMapNode;
2287
2422
 
2288
2423
  // src/components/pageRenderingEngine/nodes/DivContainer.tsx
2289
- import { jsx as jsx36, jsxs as jsxs14 } from "react/jsx-runtime";
2424
+ import { jsx as jsx38, jsxs as jsxs15 } from "react/jsx-runtime";
2290
2425
  var Pagination = dynamic11(() => import("./Pagination-QBPYDD66.mjs"), { ssr: true });
2291
2426
  var DataBindingControls = dynamic11(() => import("./DataBindingControls-WJAY5HFO.mjs"), {
2292
2427
  ssr: true
@@ -2545,7 +2680,7 @@ var DivContainer = async (props) => {
2545
2680
  response = await serviceClient.get(endpoint);
2546
2681
  result = response?.result;
2547
2682
  if (dataBindingProperties.showNoResultsMessage && (result === void 0 || result.length == 0)) {
2548
- return /* @__PURE__ */ jsx36(NoDataFound_default, {});
2683
+ return /* @__PURE__ */ jsx38(NoDataFound_default, {});
2549
2684
  }
2550
2685
  if (dataBindingProperties.childCollectionName && props.dataitem) {
2551
2686
  childCollectionData = getNestedValue6(
@@ -2565,7 +2700,7 @@ var DivContainer = async (props) => {
2565
2700
  }
2566
2701
  const SelectedNode = NodeTypes2[node.type];
2567
2702
  if (!SelectedNode) return null;
2568
- return /* @__PURE__ */ jsx36(React23.Fragment, { children: /* @__PURE__ */ jsx36(
2703
+ return /* @__PURE__ */ jsx38(React25.Fragment, { children: /* @__PURE__ */ jsx38(
2569
2704
  SelectedNode,
2570
2705
  {
2571
2706
  node,
@@ -2585,7 +2720,7 @@ var DivContainer = async (props) => {
2585
2720
  }
2586
2721
  ) }, key);
2587
2722
  }
2588
- function renderChildren(nodes, props2, data, key, href) {
2723
+ function renderChildren2(nodes, props2, data, key, href) {
2589
2724
  if (!nodes) return null;
2590
2725
  const childNodes = nodes.map((node, index) => {
2591
2726
  if (
@@ -2702,7 +2837,7 @@ var DivContainer = async (props) => {
2702
2837
  dataBindingProperties?.showFacets || dataBindingProperties?.showSortOptions || dataBindingProperties?.showSearchBar
2703
2838
  );
2704
2839
  const WrapperComponent = Wrapper;
2705
- const renderedContainer = /* @__PURE__ */ jsx36(
2840
+ const renderedContainer = /* @__PURE__ */ jsx38(
2706
2841
  WrapperComponent,
2707
2842
  {
2708
2843
  id: guid,
@@ -2710,17 +2845,17 @@ var DivContainer = async (props) => {
2710
2845
  className: classNames || void 0,
2711
2846
  ...wrapperProps,
2712
2847
  children: dataToRender.map(
2713
- (item, idx) => item?.links?.view && renderLink ? renderChildren(
2848
+ (item, idx) => item?.links?.view && renderLink ? renderChildren2(
2714
2849
  props.node.children,
2715
2850
  props,
2716
2851
  item,
2717
2852
  idx,
2718
2853
  props.href ? void 0 : item?.links?.view
2719
- )?.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)
2720
2855
  )
2721
2856
  }
2722
2857
  );
2723
- const paginationControl = dataBindingProperties?.enablePagination ? /* @__PURE__ */ jsx36(
2858
+ const paginationControl = dataBindingProperties?.enablePagination ? /* @__PURE__ */ jsx38(
2724
2859
  Pagination,
2725
2860
  {
2726
2861
  path: props.path,
@@ -2728,15 +2863,15 @@ var DivContainer = async (props) => {
2728
2863
  dataset: response
2729
2864
  }
2730
2865
  ) : null;
2731
- return /* @__PURE__ */ jsxs14(React23.Fragment, { children: [
2732
- /* @__PURE__ */ jsx36(
2866
+ return /* @__PURE__ */ jsxs15(React25.Fragment, { children: [
2867
+ /* @__PURE__ */ jsx38(
2733
2868
  "style",
2734
2869
  {
2735
2870
  dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS }
2736
2871
  }
2737
2872
  ),
2738
- showDataBindingControls ? /* @__PURE__ */ jsxs14(React23.Fragment, { children: [
2739
- /* @__PURE__ */ jsx36(
2873
+ showDataBindingControls ? /* @__PURE__ */ jsxs15(React25.Fragment, { children: [
2874
+ /* @__PURE__ */ jsx38(
2740
2875
  DataBindingControls,
2741
2876
  {
2742
2877
  mode: "toolbar",
@@ -2748,18 +2883,18 @@ var DivContainer = async (props) => {
2748
2883
  showSearchBar: dataBindingProperties?.showSearchBar
2749
2884
  }
2750
2885
  ),
2751
- /* @__PURE__ */ jsxs14(
2886
+ /* @__PURE__ */ jsxs15(
2752
2887
  "div",
2753
2888
  {
2754
2889
  className: dataBindingProperties?.showFacets ? "grid items-start gap-6 lg:grid-cols-[minmax(0,1fr)_18rem]" : void 0,
2755
2890
  children: [
2756
- /* @__PURE__ */ jsxs14("div", { className: "min-w-0", children: [
2891
+ /* @__PURE__ */ jsxs15("div", { className: "min-w-0", children: [
2757
2892
  renderedContainer,
2758
2893
  paginationControl
2759
2894
  ] }),
2760
- dataBindingProperties?.showFacets && /* @__PURE__ */ jsxs14("aside", { className: "border bg-default p-3 lg:sticky lg:top-[90px] lg:self-start", children: [
2761
- /* @__PURE__ */ jsx36("h2", { className: "mb-2 text-lg font-semibold", children: "Filters" }),
2762
- /* @__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(
2763
2898
  DataBindingControls,
2764
2899
  {
2765
2900
  mode: "facets",
@@ -2773,16 +2908,16 @@ var DivContainer = async (props) => {
2773
2908
  ]
2774
2909
  }
2775
2910
  )
2776
- ] }) : /* @__PURE__ */ jsxs14(React23.Fragment, { children: [
2911
+ ] }) : /* @__PURE__ */ jsxs15(React25.Fragment, { children: [
2777
2912
  renderedContainer,
2778
- paginationControl && /* @__PURE__ */ jsx36("div", { children: paginationControl })
2913
+ paginationControl && /* @__PURE__ */ jsx38("div", { children: paginationControl })
2779
2914
  ] })
2780
2915
  ] });
2781
2916
  };
2782
2917
  var DivContainer_default = DivContainer;
2783
2918
 
2784
2919
  // src/components/pageRenderingEngine/PageBodyRenderer.tsx
2785
- import { jsx as jsx37 } from "react/jsx-runtime";
2920
+ import { jsx as jsx39 } from "react/jsx-runtime";
2786
2921
  var NodeTypes = {
2787
2922
  ["paragraph"]: ParagraphNode_default,
2788
2923
  ["heading"]: HeadingNode_default,
@@ -2820,14 +2955,14 @@ var PageBodyRenderer = (props) => {
2820
2955
  }
2821
2956
  return true;
2822
2957
  };
2823
- 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) => {
2824
2959
  {
2825
2960
  }
2826
2961
  const SelectedNode = NodeTypes[node.type];
2827
2962
  if (!shouldRenderNode(node)) {
2828
2963
  return null;
2829
2964
  }
2830
- 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(
2831
2966
  SelectedNode,
2832
2967
  {
2833
2968
  node,
@@ -2843,7 +2978,7 @@ var PageBodyRenderer = (props) => {
2843
2978
  device: props.device,
2844
2979
  widgetRenderer: props.widgetRenderer
2845
2980
  }
2846
- ) }) : /* @__PURE__ */ jsx37(React24.Fragment, { children: /* @__PURE__ */ jsx37(
2981
+ ) }) : /* @__PURE__ */ jsx39(React26.Fragment, { children: /* @__PURE__ */ jsx39(
2847
2982
  SelectedNode,
2848
2983
  {
2849
2984
  node,