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

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
@@ -810,16 +810,408 @@ var CommentImageNode = ({ node, assetBaseUrl }) => {
810
810
  };
811
811
  var CommentImageNode_default = CommentImageNode;
812
812
 
813
- // src/components/controls/view/CommentNodeRenderer.tsx
813
+ // src/components/controls/view/FileIcon.tsx
814
814
  import { jsx as jsx22, jsxs as jsxs8 } from "react/jsx-runtime";
815
+ var PdfIcon = () => /* @__PURE__ */ jsxs8(
816
+ "svg",
817
+ {
818
+ xmlns: "http://www.w3.org/2000/svg",
819
+ viewBox: "0 0 48 48",
820
+ className: "w-10 h-10",
821
+ children: [
822
+ /* @__PURE__ */ jsx22(
823
+ "path",
824
+ {
825
+ fill: "#e53935",
826
+ 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"
827
+ }
828
+ ),
829
+ /* @__PURE__ */ jsx22(
830
+ "path",
831
+ {
832
+ fill: "#fff",
833
+ d: "M34.841,26.799c-1.692-1.757-6.314-1.041-7.42-0.911c-1.627-1.562-2.734-3.45-3.124-4.101 c0.586-1.757,0.976-3.515,1.041-5.402c0-1.627-0.651-3.385-2.473-3.385c-0.651,0-1.237,0.391-1.562,0.911 c-0.781,1.367-0.456,4.101,0.781,6.899c-0.716,2.018-1.367,3.97-3.189,7.42c-1.888,0.781-5.858,2.604-6.183,4.556 c-0.13,0.586,0.065,1.172,0.521,1.627C13.688,34.805,14.273,35,14.859,35c2.408,0,4.751-3.32,6.379-6.118 c1.367-0.456,3.515-1.107,5.663-1.497c2.538,2.213,4.751,2.538,5.923,2.538c1.562,0,2.148-0.651,2.343-1.237 C35.492,28.036,35.297,27.32,34.841,26.799z M33.214,27.905c-0.065,0.456-0.651,0.911-1.692,0.651 c-1.237-0.325-2.343-0.911-3.32-1.692c0.846-0.13,2.734-0.325,4.101-0.065C32.824,26.929,33.344,27.254,33.214,27.905z M22.344,14.497c0.13-0.195,0.325-0.325,0.521-0.325c0.586,0,0.716,0.716,0.716,1.302c-0.065,1.367-0.325,2.734-0.781,4.036 C21.824,16.905,22.019,15.083,22.344,14.497z M22.214,27.124c0.521-1.041,1.237-2.864,1.497-3.645 c0.586,0.976,1.562,2.148,2.083,2.669C25.794,26.213,23.776,26.604,22.214,27.124z M18.374,29.728 c-1.497,2.473-3.059,4.036-3.905,4.036c-0.13,0-0.26-0.065-0.391-0.13c-0.195-0.13-0.26-0.325-0.195-0.586 C14.078,32.136,15.77,30.899,18.374,29.728z"
834
+ }
835
+ )
836
+ ]
837
+ }
838
+ );
839
+ var ExcelIcon = () => /* @__PURE__ */ jsxs8(
840
+ "svg",
841
+ {
842
+ xmlns: "http://www.w3.org/2000/svg",
843
+ viewBox: "0 0 48 48",
844
+ className: "w-10 h-10",
845
+ children: [
846
+ /* @__PURE__ */ jsx22(
847
+ "path",
848
+ {
849
+ fill: "#169154",
850
+ d: "M29,6H15.744C14.781,6,14,6.781,14,7.744v7.259h15V6z"
851
+ }
852
+ ),
853
+ /* @__PURE__ */ jsx22(
854
+ "path",
855
+ {
856
+ fill: "#18482a",
857
+ d: "M14,33.054v7.202C14,41.219,14.781,42,15.743,42H29v-8.946H14z"
858
+ }
859
+ ),
860
+ /* @__PURE__ */ jsx22("path", { fill: "#0c8045", d: "M14 15.003H29V24.005000000000003H14z" }),
861
+ /* @__PURE__ */ jsx22("path", { fill: "#17472a", d: "M14 24.005H29V33.055H14z" }),
862
+ /* @__PURE__ */ jsxs8("g", { children: [
863
+ /* @__PURE__ */ jsx22(
864
+ "path",
865
+ {
866
+ fill: "#29c27f",
867
+ d: "M42.256,6H29v9.003h15V7.744C44,6.781,43.219,6,42.256,6z"
868
+ }
869
+ ),
870
+ /* @__PURE__ */ jsx22(
871
+ "path",
872
+ {
873
+ fill: "#27663f",
874
+ d: "M29,33.054V42h13.257C43.219,42,44,41.219,44,40.257v-7.202H29z"
875
+ }
876
+ ),
877
+ /* @__PURE__ */ jsx22("path", { fill: "#19ac65", d: "M29 15.003H44V24.005000000000003H29z" }),
878
+ /* @__PURE__ */ jsx22("path", { fill: "#129652", d: "M29 24.005H44V33.055H29z" })
879
+ ] }),
880
+ /* @__PURE__ */ jsx22(
881
+ "path",
882
+ {
883
+ fill: "#0c7238",
884
+ 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"
885
+ }
886
+ ),
887
+ /* @__PURE__ */ jsx22(
888
+ "path",
889
+ {
890
+ fill: "#fff",
891
+ d: "M9.807 19L12.193 19 14.129 22.754 16.175 19 18.404 19 15.333 24 18.474 29 16.123 29 14.013 25.07 11.912 29 9.526 29 12.719 23.982z"
892
+ }
893
+ )
894
+ ]
895
+ }
896
+ );
897
+ var WordIcon = () => /* @__PURE__ */ jsxs8(
898
+ "svg",
899
+ {
900
+ xmlns: "http://www.w3.org/2000/svg",
901
+ viewBox: "0 0 48 48",
902
+ className: "w-10 h-10",
903
+ baseProfile: "basic",
904
+ children: [
905
+ /* @__PURE__ */ jsx22(
906
+ "path",
907
+ {
908
+ fill: "#283593",
909
+ 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"
910
+ }
911
+ ),
912
+ /* @__PURE__ */ jsxs8(
913
+ "linearGradient",
914
+ {
915
+ id: "qh2LT5tehRDFkLLfb-odWa",
916
+ x1: "9",
917
+ x2: "33.506",
918
+ y1: "364.445",
919
+ y2: "364.445",
920
+ gradientTransform: "translate(0 -339.89)",
921
+ gradientUnits: "userSpaceOnUse",
922
+ children: [
923
+ /* @__PURE__ */ jsx22("stop", { offset: "0", "stop-color": "#66c0ff" }),
924
+ /* @__PURE__ */ jsx22("stop", { offset: ".26", "stop-color": "#0094f0" })
925
+ ]
926
+ }
927
+ ),
928
+ /* @__PURE__ */ jsx22(
929
+ "path",
930
+ {
931
+ fill: "url(#qh2LT5tehRDFkLLfb-odWa)",
932
+ 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"
933
+ }
934
+ ),
935
+ /* @__PURE__ */ jsx22(
936
+ "path",
937
+ {
938
+ fill: "#1e88e5",
939
+ "fill-opacity": ".6",
940
+ 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"
941
+ }
942
+ ),
943
+ /* @__PURE__ */ jsx22(
944
+ "path",
945
+ {
946
+ fill: "#00e5ff",
947
+ 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"
948
+ }
949
+ ),
950
+ /* @__PURE__ */ jsx22(
951
+ "path",
952
+ {
953
+ fill: "#1565c0",
954
+ 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"
955
+ }
956
+ ),
957
+ /* @__PURE__ */ jsx22(
958
+ "path",
959
+ {
960
+ fill: "#fff",
961
+ d: "M18.327,26.643l-2.092,9.713l-2.501,0.002L12.5,30.529l-1.293,5.829H8.683l-2.01-9.713h2.062 l1.24,6.41l1.232-6.41h2.528l1.291,6.41l1.21-6.41L18.327,26.643L18.327,26.643z"
962
+ }
963
+ )
964
+ ]
965
+ }
966
+ );
967
+ var StandardIcon = () => /* @__PURE__ */ jsxs8(
968
+ "svg",
969
+ {
970
+ xmlns: "http://www.w3.org/2000/svg",
971
+ viewBox: "0 0 48 48",
972
+ className: "w-10 h-10",
973
+ children: [
974
+ /* @__PURE__ */ jsx22("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
975
+ /* @__PURE__ */ jsx22("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" })
976
+ ]
977
+ }
978
+ );
979
+ var PowerPointIcon = () => /* @__PURE__ */ jsxs8(
980
+ "svg",
981
+ {
982
+ xmlns: "http://www.w3.org/2000/svg",
983
+ viewBox: "0 0 48 48",
984
+ className: "w-10 h-10",
985
+ children: [
986
+ /* @__PURE__ */ jsx22(
987
+ "path",
988
+ {
989
+ fill: "#dc4c2c",
990
+ d: "M8,24c0,9.941,8.059,18,18,18s18-8.059,18-18H26H8z"
991
+ }
992
+ ),
993
+ /* @__PURE__ */ jsx22("path", { fill: "#f7a278", d: "M26,6v18h18C44,14.059,35.941,6,26,6z" }),
994
+ /* @__PURE__ */ jsx22("path", { fill: "#c06346", d: "M26,6C16.059,6,8,14.059,8,24h18V6z" }),
995
+ /* @__PURE__ */ jsx22(
996
+ "path",
997
+ {
998
+ fill: "#9b341f",
999
+ 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"
1000
+ }
1001
+ ),
1002
+ /* @__PURE__ */ jsx22(
1003
+ "path",
1004
+ {
1005
+ fill: "#fff",
1006
+ d: "M14.673,19.012H10v10h2.024v-3.521H14.3c1.876,0,3.397-1.521,3.397-3.397v-0.058 C17.697,20.366,16.343,19.012,14.673,19.012z M15.57,22.358c0,0.859-0.697,1.556-1.556,1.556h-1.99v-3.325h1.99 c0.859,0,1.556,0.697,1.556,1.556V22.358z"
1007
+ }
1008
+ )
1009
+ ]
1010
+ }
1011
+ );
1012
+ var TextIcon = () => /* @__PURE__ */ jsxs8(
1013
+ "svg",
1014
+ {
1015
+ xmlns: "http://www.w3.org/2000/svg",
1016
+ viewBox: "0 0 48 48",
1017
+ className: "w-10 h-10",
1018
+ children: [
1019
+ /* @__PURE__ */ jsx22("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
1020
+ /* @__PURE__ */ jsx22("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" }),
1021
+ /* @__PURE__ */ jsx22(
1022
+ "path",
1023
+ {
1024
+ fill: "#1976D2",
1025
+ d: "M16 21H33V23H16zM16 25H29V27H16zM16 29H33V31H16zM16 33H29V35H16z"
1026
+ }
1027
+ )
1028
+ ]
1029
+ }
1030
+ );
1031
+ var ArchiveIcon = () => /* @__PURE__ */ jsxs8(
1032
+ "svg",
1033
+ {
1034
+ xmlns: "http://www.w3.org/2000/svg",
1035
+ zoomAndPan: "magnify",
1036
+ viewBox: "0 0 75 74.999997",
1037
+ preserveAspectRatio: "xMidYMid meet",
1038
+ version: "1.0",
1039
+ className: "w-10 h-10",
1040
+ children: [
1041
+ /* @__PURE__ */ jsx22("defs", { children: /* @__PURE__ */ jsx22("clipPath", { id: "273d29c8a6", children: /* @__PURE__ */ jsx22(
1042
+ "path",
1043
+ {
1044
+ d: "M 8.90625 0 L 65.90625 0 L 65.90625 75 L 8.90625 75 Z M 8.90625 0 ",
1045
+ "clip-rule": "nonzero"
1046
+ }
1047
+ ) }) }),
1048
+ /* @__PURE__ */ jsx22("g", { "clip-path": "url(#273d29c8a6)", children: /* @__PURE__ */ jsx22(
1049
+ "path",
1050
+ {
1051
+ fill: "#ff9100",
1052
+ d: "M 65.882812 75 L 8.929688 75 L 8.929688 0 L 48.085938 0 L 65.882812 17.855469 Z M 65.882812 75 ",
1053
+ "fill-opacity": "1",
1054
+ "fill-rule": "nonzero"
1055
+ }
1056
+ ) }),
1057
+ /* @__PURE__ */ jsx22(
1058
+ "path",
1059
+ {
1060
+ fill: "#fbe9e7",
1061
+ d: "M 63.214844 19.644531 L 46.304688 19.644531 L 46.304688 2.679688 Z M 63.214844 19.644531 ",
1062
+ "fill-opacity": "1",
1063
+ "fill-rule": "nonzero"
1064
+ }
1065
+ ),
1066
+ /* @__PURE__ */ jsx22(
1067
+ "path",
1068
+ {
1069
+ fill: "#ffe0b2",
1070
+ d: "M 26.523438 50.59375 L 33.824219 50.59375 L 33.824219 53.570312 L 22.339844 53.570312 L 22.339844 51.410156 L 29.566406 38.789062 L 22.265625 38.789062 L 22.265625 35.796875 L 33.691406 35.796875 L 33.691406 37.910156 Z M 26.523438 50.59375 ",
1071
+ "fill-opacity": "1",
1072
+ "fill-rule": "nonzero"
1073
+ }
1074
+ ),
1075
+ /* @__PURE__ */ jsx22(
1076
+ "path",
1077
+ {
1078
+ fill: "#ffe0b2",
1079
+ d: "M 36.183594 35.796875 L 39.757812 35.796875 L 39.757812 53.570312 L 36.183594 53.570312 Z M 36.183594 35.796875 ",
1080
+ "fill-opacity": "1",
1081
+ "fill-rule": "nonzero"
1082
+ }
1083
+ ),
1084
+ /* @__PURE__ */ jsx22(
1085
+ "path",
1086
+ {
1087
+ fill: "#ffe0b2",
1088
+ d: "M 46.34375 47.320312 L 46.34375 53.570312 L 42.765625 53.570312 L 42.765625 35.796875 L 48.800781 35.796875 C 50.550781 35.796875 51.953125 36.34375 52.992188 37.433594 C 54.035156 38.523438 54.554688 39.9375 54.554688 41.683594 C 54.554688 43.425781 54.039062 44.796875 53.011719 45.808594 C 51.980469 46.820312 50.550781 47.320312 48.726562 47.320312 Z M 46.34375 44.332031 L 48.800781 44.332031 C 49.484375 44.332031 50.007812 44.105469 50.382812 43.660156 C 50.757812 43.210938 50.941406 42.5625 50.941406 41.707031 C 50.941406 40.816406 50.753906 40.113281 50.371094 39.585938 C 49.988281 39.0625 49.476562 38.796875 48.839844 38.789062 L 46.34375 38.789062 Z M 46.34375 44.332031 ",
1089
+ "fill-opacity": "1",
1090
+ "fill-rule": "nonzero"
1091
+ }
1092
+ )
1093
+ ]
1094
+ }
1095
+ );
1096
+ var getFileDetails = (url) => {
1097
+ const extMatch = url.match(/\.([a-zA-Z0-9]+)(?:[\?#]|$)/);
1098
+ const ext = extMatch ? extMatch[1].toLowerCase() : "";
1099
+ let Icon = StandardIcon;
1100
+ let extLabel = "FILE";
1101
+ if (ext === "pdf") {
1102
+ Icon = PdfIcon;
1103
+ extLabel = "PDF";
1104
+ } else if (["xls", "xlsx", "csv"].includes(ext)) {
1105
+ Icon = ExcelIcon;
1106
+ extLabel = "Excel";
1107
+ } else if (["doc", "docx"].includes(ext)) {
1108
+ Icon = WordIcon;
1109
+ extLabel = "Word";
1110
+ } else if (["ppt", "pptx"].includes(ext)) {
1111
+ Icon = PowerPointIcon;
1112
+ extLabel = "PowerPoint";
1113
+ } else if (["txt", "rtf"].includes(ext)) {
1114
+ Icon = TextIcon;
1115
+ extLabel = "Text";
1116
+ } else if (["zip", "rar", "7z"].includes(ext)) {
1117
+ Icon = ArchiveIcon;
1118
+ extLabel = "Archive";
1119
+ } else if (ext) {
1120
+ extLabel = ext.toUpperCase();
1121
+ }
1122
+ return { Icon, extLabel };
1123
+ };
1124
+ var FileIcon = ({ fileName, className }) => {
1125
+ const { Icon } = getFileDetails(fileName);
1126
+ return /* @__PURE__ */ jsx22("span", { className, children: /* @__PURE__ */ jsx22(Icon, {}) });
1127
+ };
1128
+ var FileIcon_default = FileIcon;
1129
+
1130
+ // src/components/controls/view/CommentFileNode.tsx
1131
+ import { jsx as jsx23, jsxs as jsxs9 } from "react/jsx-runtime";
1132
+ var formatFileSize = (sizeBytes) => {
1133
+ const bytes = typeof sizeBytes === "number" ? sizeBytes : Number(sizeBytes);
1134
+ if (!Number.isFinite(bytes) || bytes <= 0) {
1135
+ return "";
1136
+ }
1137
+ if (bytes < 1024) {
1138
+ return `${bytes} B`;
1139
+ }
1140
+ const units = ["KB", "MB", "GB"];
1141
+ let value = bytes / 1024;
1142
+ let unitIndex = 0;
1143
+ while (value >= 1024 && unitIndex < units.length - 1) {
1144
+ value /= 1024;
1145
+ unitIndex += 1;
1146
+ }
1147
+ return `${value.toFixed(value < 10 ? 1 : 0)} ${units[unitIndex]}`;
1148
+ };
1149
+ var CommentFileNode = ({ node, assetBaseUrl }) => {
1150
+ const rawUrl = typeof node.url === "string" && node.url || typeof node.src === "string" && node.src || typeof node.assetUrl === "string" && node.assetUrl || "";
1151
+ if (!rawUrl) {
1152
+ return null;
1153
+ }
1154
+ const href = AssetUtility_default.resolveUrl(assetBaseUrl, rawUrl);
1155
+ if (!href) {
1156
+ return null;
1157
+ }
1158
+ const fileName = typeof node.fileName === "string" && node.fileName || typeof node.name === "string" && node.name || rawUrl.split("/").pop() || "file";
1159
+ const sizeLabel = formatFileSize(node.fileSize);
1160
+ return /* @__PURE__ */ jsxs9(
1161
+ "a",
1162
+ {
1163
+ href,
1164
+ target: "_blank",
1165
+ rel: "noopener noreferrer",
1166
+ download: fileName,
1167
+ className: "comment-node-file",
1168
+ style: {
1169
+ display: "inline-flex",
1170
+ alignItems: "center",
1171
+ gap: "8px",
1172
+ padding: "8px 12px",
1173
+ border: "1px solid rgba(0,0,0,0.12)",
1174
+ borderRadius: "8px",
1175
+ textDecoration: "none",
1176
+ color: "inherit",
1177
+ maxWidth: "100%"
1178
+ },
1179
+ children: [
1180
+ /* @__PURE__ */ jsx23(FileIcon_default, { fileName, className: "comment-node-file-icon" }),
1181
+ /* @__PURE__ */ jsxs9(
1182
+ "span",
1183
+ {
1184
+ className: "comment-node-file-text",
1185
+ style: { display: "flex", flexDirection: "column", minWidth: 0 },
1186
+ children: [
1187
+ /* @__PURE__ */ jsx23(
1188
+ "span",
1189
+ {
1190
+ className: "comment-node-file-name",
1191
+ style: { overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" },
1192
+ children: fileName
1193
+ }
1194
+ ),
1195
+ sizeLabel ? /* @__PURE__ */ jsx23("span", { className: "comment-node-file-size", style: { fontSize: "0.8em", opacity: 0.7 }, children: sizeLabel }) : null
1196
+ ]
1197
+ }
1198
+ )
1199
+ ]
1200
+ }
1201
+ );
1202
+ };
1203
+ var CommentFileNode_default = CommentFileNode;
1204
+
1205
+ // src/components/controls/view/CommentNodeRenderer.tsx
1206
+ import { jsx as jsx24, jsxs as jsxs10 } from "react/jsx-runtime";
815
1207
  var TextLeafNode = ({ node }) => {
816
1208
  let content = node.text;
817
- if (node.code) content = /* @__PURE__ */ jsx22("code", { className: "comment-node-code", children: content });
818
- if (node.bold) content = /* @__PURE__ */ jsx22("strong", { children: content });
819
- if (node.italic) content = /* @__PURE__ */ jsx22("em", { children: content });
820
- if (node.underline) content = /* @__PURE__ */ jsx22("u", { children: content });
821
- if (node.strikethrough) content = /* @__PURE__ */ jsx22("s", { children: content });
822
- return /* @__PURE__ */ jsx22(React15.Fragment, { children: content });
1209
+ if (node.code) content = /* @__PURE__ */ jsx24("code", { className: "comment-node-code", children: content });
1210
+ if (node.bold) content = /* @__PURE__ */ jsx24("strong", { children: content });
1211
+ if (node.italic) content = /* @__PURE__ */ jsx24("em", { children: content });
1212
+ if (node.underline) content = /* @__PURE__ */ jsx24("u", { children: content });
1213
+ if (node.strikethrough) content = /* @__PURE__ */ jsx24("s", { children: content });
1214
+ return /* @__PURE__ */ jsx24(React15.Fragment, { children: content });
823
1215
  };
824
1216
  var renderChildren = (children, keyPrefix, assetBaseUrl) => {
825
1217
  if (!children || children.length === 0) {
@@ -827,7 +1219,7 @@ var renderChildren = (children, keyPrefix, assetBaseUrl) => {
827
1219
  }
828
1220
  return children.map((child, index) => {
829
1221
  const childKey = isTextNode(child) ? void 0 : asElementNode(child).id;
830
- return /* @__PURE__ */ jsx22(
1222
+ return /* @__PURE__ */ jsx24(
831
1223
  CommentNodeRenderer,
832
1224
  {
833
1225
  node: child,
@@ -847,56 +1239,58 @@ var CommentNodeRenderer = ({ node, assetBaseUrl }) => {
847
1239
  return null;
848
1240
  }
849
1241
  if (isTextNode(node)) {
850
- return /* @__PURE__ */ jsx22(TextLeafNode, { node });
1242
+ return /* @__PURE__ */ jsx24(TextLeafNode, { node });
851
1243
  }
852
1244
  const element = asElementNode(node);
853
1245
  const key = element.id ?? element.type;
854
1246
  switch (element.type) {
855
1247
  case "paragraph":
856
- return /* @__PURE__ */ jsx22("p", { className: "comment-node-paragraph", children: renderChildren(element.children, key, assetBaseUrl) ?? /* @__PURE__ */ jsx22("br", {}) });
1248
+ return /* @__PURE__ */ jsx24("p", { className: "comment-node-paragraph", children: renderChildren(element.children, key, assetBaseUrl) ?? /* @__PURE__ */ jsx24("br", {}) });
857
1249
  case "heading": {
858
1250
  const level = headingLevelFromTag(element.tag ?? element.level);
859
1251
  const HeadingTag = `h${level}`;
860
- return /* @__PURE__ */ jsx22(HeadingTag, { className: "comment-node-heading", children: renderChildren(element.children, key, assetBaseUrl) });
1252
+ return /* @__PURE__ */ jsx24(HeadingTag, { className: "comment-node-heading", children: renderChildren(element.children, key, assetBaseUrl) });
861
1253
  }
862
1254
  case "list": {
863
1255
  const ordered = element.listType === "number" || element.ordered === true;
864
1256
  const ListTag = ordered ? "ol" : "ul";
865
- return /* @__PURE__ */ jsx22(ListTag, { className: "comment-node-list", children: renderChildren(element.children, key, assetBaseUrl) });
1257
+ return /* @__PURE__ */ jsx24(ListTag, { className: "comment-node-list", children: renderChildren(element.children, key, assetBaseUrl) });
866
1258
  }
867
1259
  case "listitem":
868
1260
  case "list-item":
869
- return /* @__PURE__ */ jsx22("li", { className: "comment-node-listitem", children: renderChildren(element.children, key, assetBaseUrl) });
1261
+ return /* @__PURE__ */ jsx24("li", { className: "comment-node-listitem", children: renderChildren(element.children, key, assetBaseUrl) });
870
1262
  case "quote":
871
1263
  case "blockquote":
872
- return /* @__PURE__ */ jsx22("blockquote", { className: "comment-node-quote", children: renderChildren(element.children, key, assetBaseUrl) });
1264
+ return /* @__PURE__ */ jsx24("blockquote", { className: "comment-node-quote", children: renderChildren(element.children, key, assetBaseUrl) });
873
1265
  case "code":
874
1266
  case "code-block":
875
- return /* @__PURE__ */ jsx22("pre", { className: "comment-node-codeblock", children: /* @__PURE__ */ jsx22("code", { children: renderChildren(element.children, key, assetBaseUrl) }) });
1267
+ return /* @__PURE__ */ jsx24("pre", { className: "comment-node-codeblock", children: /* @__PURE__ */ jsx24("code", { children: renderChildren(element.children, key, assetBaseUrl) }) });
876
1268
  case "image":
877
- return /* @__PURE__ */ jsx22(CommentImageNode_default, { node: element, assetBaseUrl });
1269
+ return /* @__PURE__ */ jsx24(CommentImageNode_default, { node: element, assetBaseUrl });
1270
+ case "file":
1271
+ return /* @__PURE__ */ jsx24(CommentFileNode_default, { node: element, assetBaseUrl });
878
1272
  case "link": {
879
1273
  const url = typeof element.url === "string" ? element.url : "#";
880
- return /* @__PURE__ */ jsx22("a", { href: url, target: "_blank", rel: "noopener noreferrer", className: "comment-node-link", children: renderChildren(element.children, key, assetBaseUrl) });
1274
+ return /* @__PURE__ */ jsx24("a", { href: url, target: "_blank", rel: "noopener noreferrer", className: "comment-node-link", children: renderChildren(element.children, key, assetBaseUrl) });
881
1275
  }
882
1276
  case "mention": {
883
1277
  const label = element.label ?? element.mentionName ?? element.text ?? "";
884
- return /* @__PURE__ */ jsxs8("span", { className: "comment-node-mention", children: [
1278
+ return /* @__PURE__ */ jsxs10("span", { className: "comment-node-mention", children: [
885
1279
  "@",
886
1280
  label
887
1281
  ] });
888
1282
  }
889
1283
  case "linebreak":
890
1284
  case "line-break":
891
- return /* @__PURE__ */ jsx22("br", {});
1285
+ return /* @__PURE__ */ jsx24("br", {});
892
1286
  default:
893
- return /* @__PURE__ */ jsx22(React15.Fragment, { children: renderChildren(element.children, key, assetBaseUrl) });
1287
+ return /* @__PURE__ */ jsx24(React15.Fragment, { children: renderChildren(element.children, key, assetBaseUrl) });
894
1288
  }
895
1289
  };
896
1290
  var CommentNodeRenderer_default = CommentNodeRenderer;
897
1291
 
898
1292
  // src/components/controls/view/Commentrenderer.tsx
899
- import { jsx as jsx23 } from "react/jsx-runtime";
1293
+ import { jsx as jsx25 } from "react/jsx-runtime";
900
1294
  var CommentRenderer = ({ value, className, assetBaseUrl, apiBaseUrl }) => {
901
1295
  const nodes = React16.useMemo(() => parseSerializedContent(value), [value]);
902
1296
  if (!nodes || nodes.length === 0) {
@@ -904,7 +1298,7 @@ var CommentRenderer = ({ value, className, assetBaseUrl, apiBaseUrl }) => {
904
1298
  }
905
1299
  const resolvedAssetBaseUrl = assetBaseUrl ?? apiBaseUrl;
906
1300
  console.log(resolvedAssetBaseUrl, "resolvedAssetBaseUrl");
907
- return /* @__PURE__ */ jsx23("div", { className: className ?? "comment-renderer", children: nodes.map((node, index) => /* @__PURE__ */ jsx23(
1301
+ return /* @__PURE__ */ jsx25("div", { className: className ?? "comment-renderer", children: nodes.map((node, index) => /* @__PURE__ */ jsx25(
908
1302
  CommentNodeRenderer_default,
909
1303
  {
910
1304
  node,
@@ -916,7 +1310,7 @@ var CommentRenderer = ({ value, className, assetBaseUrl, apiBaseUrl }) => {
916
1310
  var Commentrenderer_default = CommentRenderer;
917
1311
 
918
1312
  // src/components/controls/view/ViewControl.tsx
919
- import { jsx as jsx24 } from "react/jsx-runtime";
1313
+ import { jsx as jsx26 } from "react/jsx-runtime";
920
1314
  var ViewControl = (props) => {
921
1315
  const ControlComponents = {
922
1316
  [ViewControlTypes_default.lineText]: LineTextView_default,
@@ -947,12 +1341,12 @@ var ViewControl = (props) => {
947
1341
  [ViewControlTypes_default.commentRenderer]: Commentrenderer_default
948
1342
  };
949
1343
  const SelectedControlComponent = props.controlType ? ControlComponents[props.controlType] : void 0;
950
- return /* @__PURE__ */ jsx24(React17.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ jsx24(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
1344
+ return /* @__PURE__ */ jsx26(React17.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ jsx26(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
951
1345
  };
952
1346
  var ViewControl_default = ViewControl;
953
1347
 
954
1348
  // src/components/pageRenderingEngine/nodes/DatafieldNode.tsx
955
- import { jsx as jsx25 } from "react/jsx-runtime";
1349
+ import { jsx as jsx27 } from "react/jsx-runtime";
956
1350
  function getNestedProperty(obj, path) {
957
1351
  if (!obj || !path) return null;
958
1352
  if (path.includes(".")) {
@@ -965,7 +1359,7 @@ function getNestedProperty(obj, path) {
965
1359
  }
966
1360
  const value = obj[path];
967
1361
  if (Array.isArray(value)) {
968
- return value.map((item, index) => /* @__PURE__ */ jsx25("div", { children: String(item) }, index));
1362
+ return value.map((item, index) => /* @__PURE__ */ jsx27("div", { children: String(item) }, index));
969
1363
  }
970
1364
  return value;
971
1365
  }
@@ -1028,7 +1422,7 @@ var DatafieldNode = (props) => {
1028
1422
  const dataType = props.node.dataType;
1029
1423
  if (isEmptyValue) return null;
1030
1424
  if (dataType === "rawContent") {
1031
- return /* @__PURE__ */ jsx25(
1425
+ return /* @__PURE__ */ jsx27(
1032
1426
  PageBodyRenderer_default,
1033
1427
  {
1034
1428
  rawBody: String(value ?? `@databound[${fieldName}]`),
@@ -1044,13 +1438,13 @@ var DatafieldNode = (props) => {
1044
1438
  }
1045
1439
  );
1046
1440
  }
1047
- return /* @__PURE__ */ jsx25(
1441
+ return /* @__PURE__ */ jsx27(
1048
1442
  "span",
1049
1443
  {
1050
1444
  className: `datafield-node ${props.node.format < Formats.length ? Formats[props.node.format] : ""}`,
1051
1445
  style: styles,
1052
1446
  title,
1053
- children: /* @__PURE__ */ jsx25(
1447
+ children: /* @__PURE__ */ jsx27(
1054
1448
  ViewControl_default,
1055
1449
  {
1056
1450
  controlType: dataType,
@@ -1065,7 +1459,7 @@ var DatafieldNode = (props) => {
1065
1459
  var DatafieldNode_default = DatafieldNode;
1066
1460
 
1067
1461
  // src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
1068
- import { Fragment as Fragment2, jsx as jsx26, jsxs as jsxs9 } from "react/jsx-runtime";
1462
+ import { Fragment as Fragment2, jsx as jsx28, jsxs as jsxs11 } from "react/jsx-runtime";
1069
1463
  var ParagraphNode = (props) => {
1070
1464
  const NodeTypes2 = {
1071
1465
  ["text"]: TextNode_default,
@@ -1085,9 +1479,9 @@ var ParagraphNode = (props) => {
1085
1479
  const isInlineOnlyParent = props.parentTag === "summary";
1086
1480
  const hasChildren = props.node.children && props.node.children.length > 0;
1087
1481
  if (isInlineOnlyParent) {
1088
- return /* @__PURE__ */ jsx26(Fragment2, { children: hasChildren && props.node.children.map((node, index) => {
1482
+ return /* @__PURE__ */ jsx28(Fragment2, { children: hasChildren && props.node.children.map((node, index) => {
1089
1483
  const SelectedNode = NodeTypes2[node.type];
1090
- return /* @__PURE__ */ jsx26(React18.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx26(
1484
+ return /* @__PURE__ */ jsx28(React18.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx28(
1091
1485
  SelectedNode,
1092
1486
  {
1093
1487
  node,
@@ -1100,10 +1494,10 @@ var ParagraphNode = (props) => {
1100
1494
  ) }, index);
1101
1495
  }) });
1102
1496
  }
1103
- return /* @__PURE__ */ jsxs9("div", { className: " " + formatClasses, children: [
1497
+ return /* @__PURE__ */ jsxs11("div", { className: " " + formatClasses, children: [
1104
1498
  hasChildren && props.node.children.map((node, index) => {
1105
1499
  const SelectedNode = NodeTypes2[node.type];
1106
- return /* @__PURE__ */ jsx26(React18.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx26(
1500
+ return /* @__PURE__ */ jsx28(React18.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx28(
1107
1501
  SelectedNode,
1108
1502
  {
1109
1503
  node,
@@ -1115,14 +1509,14 @@ var ParagraphNode = (props) => {
1115
1509
  }
1116
1510
  ) }, index);
1117
1511
  }),
1118
- !hasChildren && /* @__PURE__ */ jsx26("div", { className: "py-1.5 lg:py-2" })
1512
+ !hasChildren && /* @__PURE__ */ jsx28("div", { className: "py-1.5 lg:py-2" })
1119
1513
  ] });
1120
1514
  };
1121
1515
  var ParagraphNode_default = ParagraphNode;
1122
1516
 
1123
1517
  // src/components/pageRenderingEngine/nodes/HeadingNode.tsx
1124
1518
  import React19 from "react";
1125
- import { Fragment as Fragment3, jsx as jsx27 } from "react/jsx-runtime";
1519
+ import { Fragment as Fragment3, jsx as jsx29 } from "react/jsx-runtime";
1126
1520
  var HeadingNode = (props) => {
1127
1521
  const NodeTypes2 = {
1128
1522
  ["text"]: TextNode_default,
@@ -1138,12 +1532,12 @@ var HeadingNode = (props) => {
1138
1532
  {
1139
1533
  }
1140
1534
  const formatClasses = FormatClass[props.node.format] || "";
1141
- return /* @__PURE__ */ jsx27(Fragment3, { children: React19.createElement(
1535
+ return /* @__PURE__ */ jsx29(Fragment3, { children: React19.createElement(
1142
1536
  HeadingTag,
1143
1537
  { className: formatClasses },
1144
1538
  props.node.children && props.node.children.map((childNode, index) => {
1145
1539
  const SelectedNode = NodeTypes2[childNode.type];
1146
- return /* @__PURE__ */ jsx27(React19.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx27(SelectedNode, { node: childNode, dataitem: props.dataitem, session: props.session, apiBaseUrl: props.apiBaseUrl, assetBaseUrl: props.assetBaseUrl, routeParameters: props.routeParameters }) }, index);
1540
+ return /* @__PURE__ */ jsx29(React19.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx29(SelectedNode, { node: childNode, dataitem: props.dataitem, session: props.session, apiBaseUrl: props.apiBaseUrl, assetBaseUrl: props.assetBaseUrl, routeParameters: props.routeParameters }) }, index);
1147
1541
  })
1148
1542
  ) });
1149
1543
  };
@@ -1154,7 +1548,7 @@ import React21 from "react";
1154
1548
 
1155
1549
  // src/components/pageRenderingEngine/nodes/ListItemNode.tsx
1156
1550
  import React20 from "react";
1157
- import { jsx as jsx28 } from "react/jsx-runtime";
1551
+ import { jsx as jsx30 } from "react/jsx-runtime";
1158
1552
  var ListItemNode = (props) => {
1159
1553
  const NodeTypes2 = {
1160
1554
  text: TextNode_default,
@@ -1171,37 +1565,37 @@ var ListItemNode = (props) => {
1171
1565
  liStyle.fontSize = match[1].trim();
1172
1566
  }
1173
1567
  }
1174
- return /* @__PURE__ */ jsx28("li", { style: liStyle, children: props.node.children && props.node.children.map((node, index) => {
1568
+ return /* @__PURE__ */ jsx30("li", { style: liStyle, children: props.node.children && props.node.children.map((node, index) => {
1175
1569
  const SelectedNode = NodeTypes2[node.type];
1176
1570
  if (node.type === "linebreak") {
1177
1571
  if (!foundFirstBreak) {
1178
1572
  foundFirstBreak = true;
1179
- return /* @__PURE__ */ jsx28("div", {}, index);
1573
+ return /* @__PURE__ */ jsx30("div", {}, index);
1180
1574
  } else {
1181
- return /* @__PURE__ */ jsx28("div", { className: "py-1 lg:py-2" }, index);
1575
+ return /* @__PURE__ */ jsx30("div", { className: "py-1 lg:py-2" }, index);
1182
1576
  }
1183
1577
  } else {
1184
1578
  foundFirstBreak = false;
1185
- return /* @__PURE__ */ jsx28(React20.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx28(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
1579
+ return /* @__PURE__ */ jsx30(React20.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx30(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
1186
1580
  }
1187
1581
  }) });
1188
1582
  };
1189
1583
  var ListItemNode_default = ListItemNode;
1190
1584
 
1191
1585
  // src/components/pageRenderingEngine/nodes/ListNode.tsx
1192
- import { jsx as jsx29, jsxs as jsxs10 } from "react/jsx-runtime";
1586
+ import { jsx as jsx31, jsxs as jsxs12 } from "react/jsx-runtime";
1193
1587
  var ListNode = (props) => {
1194
1588
  const NodeTypes2 = {
1195
1589
  listitem: ListItemNode_default
1196
1590
  };
1197
- return /* @__PURE__ */ jsxs10(React21.Fragment, { children: [
1198
- props.node.listType == "bullet" && /* @__PURE__ */ jsx29("ul", { children: props.node.children && props.node.children.map((node, index) => {
1591
+ return /* @__PURE__ */ jsxs12(React21.Fragment, { children: [
1592
+ props.node.listType == "bullet" && /* @__PURE__ */ jsx31("ul", { children: props.node.children && props.node.children.map((node, index) => {
1199
1593
  const SelectedNode = NodeTypes2[node.type];
1200
- return /* @__PURE__ */ jsx29(React21.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx29(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
1594
+ return /* @__PURE__ */ jsx31(React21.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx31(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
1201
1595
  }) }),
1202
- props.node.listType == "number" && /* @__PURE__ */ jsx29("ol", { children: props.node.children && props.node.children.map((node, index) => {
1596
+ props.node.listType == "number" && /* @__PURE__ */ jsx31("ol", { children: props.node.children && props.node.children.map((node, index) => {
1203
1597
  const SelectedNode = NodeTypes2[node.type];
1204
- return /* @__PURE__ */ jsx29(React21.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx29(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
1598
+ return /* @__PURE__ */ jsx31(React21.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx31(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
1205
1599
  }) })
1206
1600
  ] });
1207
1601
  };
@@ -1209,16 +1603,16 @@ var ListNode_default = ListNode;
1209
1603
 
1210
1604
  // src/components/pageRenderingEngine/nodes/QuoteNode.tsx
1211
1605
  import React22 from "react";
1212
- import { jsx as jsx30 } from "react/jsx-runtime";
1606
+ import { jsx as jsx32 } from "react/jsx-runtime";
1213
1607
  var QuoteNode = (props) => {
1214
1608
  const NodeTypes2 = {
1215
1609
  ["text"]: TextNode_default,
1216
1610
  ["linebreak"]: LineBreakNode_default,
1217
1611
  ["link"]: LinkNode_default
1218
1612
  };
1219
- return /* @__PURE__ */ jsx30("blockquote", { children: props.node.children && props.node.children.map((node, index) => {
1613
+ return /* @__PURE__ */ jsx32("blockquote", { children: props.node.children && props.node.children.map((node, index) => {
1220
1614
  const SelectedNode = NodeTypes2[node.type];
1221
- return /* @__PURE__ */ jsx30(React22.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx30(SelectedNode, { node, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
1615
+ return /* @__PURE__ */ jsx32(React22.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx32(SelectedNode, { node, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
1222
1616
  }) });
1223
1617
  };
1224
1618
  var QuoteNode_default = QuoteNode;
@@ -1226,11 +1620,11 @@ var QuoteNode_default = QuoteNode;
1226
1620
  // src/components/pageRenderingEngine/nodes/CodeNode.tsx
1227
1621
  import React23 from "react";
1228
1622
  import dynamic7 from "next/dynamic";
1229
- import { jsx as jsx31, jsxs as jsxs11 } from "react/jsx-runtime";
1623
+ import { jsx as jsx33, jsxs as jsxs13 } from "react/jsx-runtime";
1230
1624
  var CopyButton = dynamic7(() => import("./CopyButton-XONTQQW7.mjs"), {
1231
1625
  ssr: false,
1232
1626
  // optional: fallback UI while loading
1233
- loading: () => /* @__PURE__ */ jsx31("span", { className: "text-gray-400 text-xs", children: "Copy" })
1627
+ loading: () => /* @__PURE__ */ jsx33("span", { className: "text-gray-400 text-xs", children: "Copy" })
1234
1628
  });
1235
1629
  var CodeNode = (props) => {
1236
1630
  const NodeTypes2 = {
@@ -1244,14 +1638,14 @@ var CodeNode = (props) => {
1244
1638
  if (node.type === "link") return node.text || node.url || "";
1245
1639
  return "";
1246
1640
  }).join("") ?? "";
1247
- return /* @__PURE__ */ jsxs11("div", { children: [
1248
- /* @__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: [
1249
- /* @__PURE__ */ jsx31("span", { children: "Code Snippet" }),
1250
- /* @__PURE__ */ jsx31(CopyButton, { text: textContent })
1641
+ return /* @__PURE__ */ jsxs13("div", { children: [
1642
+ /* @__PURE__ */ jsxs13("div", { className: "flex items-center relative bg-neutral-strong px-4 py-3 text-xs font-sans justify-between rounded-t-md ", children: [
1643
+ /* @__PURE__ */ jsx33("span", { children: "Code Snippet" }),
1644
+ /* @__PURE__ */ jsx33(CopyButton, { text: textContent })
1251
1645
  ] }),
1252
- /* @__PURE__ */ jsx31("code", { className: "bg-neutral-soft p-4 text-sm whitespace-pre-wrap border border-2 block", children: props.node.children && props.node.children.map((node, index) => {
1646
+ /* @__PURE__ */ jsx33("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) => {
1253
1647
  const SelectedNode = NodeTypes2[node.type];
1254
- return /* @__PURE__ */ jsx31(React23.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx31(
1648
+ return /* @__PURE__ */ jsx33(React23.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx33(
1255
1649
  SelectedNode,
1256
1650
  {
1257
1651
  node,
@@ -1266,15 +1660,15 @@ var CodeNode = (props) => {
1266
1660
  var CodeNode_default = CodeNode;
1267
1661
 
1268
1662
  // src/components/pageRenderingEngine/nodes/HorizontalRuleNode.tsx
1269
- import { jsx as jsx32 } from "react/jsx-runtime";
1663
+ import { jsx as jsx34 } from "react/jsx-runtime";
1270
1664
  var HorizontalRuleNode = () => {
1271
- return /* @__PURE__ */ jsx32("hr", {});
1665
+ return /* @__PURE__ */ jsx34("hr", {});
1272
1666
  };
1273
1667
  var HorizontalRuleNode_default = HorizontalRuleNode;
1274
1668
 
1275
1669
  // src/components/pageRenderingEngine/nodes/WidgetNode.tsx
1276
1670
  import React24 from "react";
1277
- import { Fragment as Fragment4, jsx as jsx33 } from "react/jsx-runtime";
1671
+ import { Fragment as Fragment4, jsx as jsx35 } from "react/jsx-runtime";
1278
1672
  var WidgetNode = (props) => {
1279
1673
  const getWidgetParameters = () => {
1280
1674
  const widgetInputParameters = {
@@ -1338,7 +1732,7 @@ var WidgetNode = (props) => {
1338
1732
  };
1339
1733
  const widgetCode = props.node?.widgetCode;
1340
1734
  if (!widgetCode) {
1341
- return /* @__PURE__ */ jsx33(Fragment4, { children: "Invalid widget" });
1735
+ return /* @__PURE__ */ jsx35(Fragment4, { children: "Invalid widget" });
1342
1736
  }
1343
1737
  const widgetParams = getWidgetParameters();
1344
1738
  const WidgetRenderer = props.widgetRenderer;
@@ -1347,7 +1741,7 @@ var WidgetNode = (props) => {
1347
1741
  }
1348
1742
  return (
1349
1743
  // eslint-disable-next-line react-hooks/static-components
1350
- /* @__PURE__ */ jsx33(React24.Fragment, { children: /* @__PURE__ */ jsx33(
1744
+ /* @__PURE__ */ jsx35(React24.Fragment, { children: /* @__PURE__ */ jsx35(
1351
1745
  WidgetRenderer,
1352
1746
  {
1353
1747
  params: widgetParams,
@@ -1369,7 +1763,7 @@ import React25 from "react";
1369
1763
 
1370
1764
  // src/components/pageRenderingEngine/nodes/EmbedNode.tsx
1371
1765
  import dynamic8 from "next/dynamic";
1372
- import { jsx as jsx34 } from "react/jsx-runtime";
1766
+ import { jsx as jsx36 } from "react/jsx-runtime";
1373
1767
  var IframeClient = dynamic8(() => import("./IframeClient-XEWQLGUQ.mjs"), {
1374
1768
  ssr: false
1375
1769
  });
@@ -1382,7 +1776,7 @@ var EmbedNode = (props) => {
1382
1776
  } else {
1383
1777
  src = props.node.embedSrc;
1384
1778
  }
1385
- return /* @__PURE__ */ jsx34("div", { className: "aspect-video", children: src && /* @__PURE__ */ jsx34(IframeClient, { src }) });
1779
+ return /* @__PURE__ */ jsx36("div", { className: "aspect-video", children: src && /* @__PURE__ */ jsx36(IframeClient, { src }) });
1386
1780
  };
1387
1781
  var EmbedNode_default = EmbedNode;
1388
1782
 
@@ -1575,10 +1969,10 @@ var PathUtility = class {
1575
1969
  var PathUtility_default = new PathUtility();
1576
1970
 
1577
1971
  // src/components/NoDataFound.tsx
1578
- import { jsx as jsx35, jsxs as jsxs12 } from "react/jsx-runtime";
1972
+ import { jsx as jsx37, jsxs as jsxs14 } from "react/jsx-runtime";
1579
1973
  var NoDataFound = () => {
1580
- return /* @__PURE__ */ jsxs12("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center bg-neutral-weak", children: [
1581
- /* @__PURE__ */ jsx35("div", { className: "mb-5", children: /* @__PURE__ */ jsx35("div", { className: "mx-auto w-20 h-20 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ jsx35(
1974
+ return /* @__PURE__ */ jsxs14("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center bg-neutral-weak", children: [
1975
+ /* @__PURE__ */ jsx37("div", { className: "mb-5", children: /* @__PURE__ */ jsx37("div", { className: "mx-auto w-20 h-20 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ jsx37(
1582
1976
  "svg",
1583
1977
  {
1584
1978
  className: "w-10 h-10",
@@ -1586,7 +1980,7 @@ var NoDataFound = () => {
1586
1980
  stroke: "currentColor",
1587
1981
  viewBox: "0 0 24 24",
1588
1982
  xmlns: "http://www.w3.org/2000/svg",
1589
- children: /* @__PURE__ */ jsx35(
1983
+ children: /* @__PURE__ */ jsx37(
1590
1984
  "path",
1591
1985
  {
1592
1986
  strokeLinecap: "round",
@@ -1597,15 +1991,15 @@ var NoDataFound = () => {
1597
1991
  )
1598
1992
  }
1599
1993
  ) }) }),
1600
- /* @__PURE__ */ jsx35("h3", { className: "text-lg font-medium mb-2", children: "No data available" }),
1601
- /* @__PURE__ */ jsx35("p", { className: " max-w-sm mb-0", children: "No records found. Data may be empty or not available at the moment." })
1994
+ /* @__PURE__ */ jsx37("h3", { className: "text-lg font-medium mb-2", children: "No data available" }),
1995
+ /* @__PURE__ */ jsx37("p", { className: " max-w-sm mb-0", children: "No records found. Data may be empty or not available at the moment." })
1602
1996
  ] });
1603
1997
  };
1604
1998
  var NoDataFound_default = NoDataFound;
1605
1999
 
1606
2000
  // src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
1607
2001
  import dynamic9 from "next/dynamic";
1608
- import { Fragment as Fragment5, jsx as jsx36, jsxs as jsxs13 } from "react/jsx-runtime";
2002
+ import { Fragment as Fragment5, jsx as jsx38, jsxs as jsxs15 } from "react/jsx-runtime";
1609
2003
  var HlsPlayer3 = dynamic9(() => import("./HlsPlayer-BVS6BVF7.mjs"), { ssr: false });
1610
2004
  var deviceToMediaQuery = (device) => {
1611
2005
  switch (device) {
@@ -1761,8 +2155,8 @@ var ImageGalleryNode = (props) => {
1761
2155
  right: "justify-end"
1762
2156
  };
1763
2157
  const formatClasses = FormatClass[props.node.format || ""] || "";
1764
- return /* @__PURE__ */ jsxs13(Fragment5, { children: [
1765
- hlsSources.length > 0 && /* @__PURE__ */ jsx36(Fragment5, { children: /* @__PURE__ */ jsx36(
2158
+ return /* @__PURE__ */ jsxs15(Fragment5, { children: [
2159
+ hlsSources.length > 0 && /* @__PURE__ */ jsx38(Fragment5, { children: /* @__PURE__ */ jsx38(
1766
2160
  HlsPlayer3,
1767
2161
  {
1768
2162
  sources: hlsSources,
@@ -1777,7 +2171,7 @@ var ImageGalleryNode = (props) => {
1777
2171
  styles: hlsStyles
1778
2172
  }
1779
2173
  ) }),
1780
- (staticFallback || staticSources.length > 0) && /* @__PURE__ */ jsx36(Fragment5, { children: staticFallback ? /* @__PURE__ */ jsxs13("picture", { children: [
2174
+ (staticFallback || staticSources.length > 0) && /* @__PURE__ */ jsx38(Fragment5, { children: staticFallback ? /* @__PURE__ */ jsxs15("picture", { children: [
1781
2175
  DEVICE_ORDER.map((deviceKey) => {
1782
2176
  const match = staticSources.find(
1783
2177
  (img) => img.device === deviceKey
@@ -1793,7 +2187,7 @@ var ImageGalleryNode = (props) => {
1793
2187
  if (!srcUrl) {
1794
2188
  return null;
1795
2189
  }
1796
- return /* @__PURE__ */ jsx36(
2190
+ return /* @__PURE__ */ jsx38(
1797
2191
  "source",
1798
2192
  {
1799
2193
  media: deviceToMediaQuery(match.device),
@@ -1818,7 +2212,7 @@ var ImageGalleryNode = (props) => {
1818
2212
  if (img.borderRadius) {
1819
2213
  styles.borderRadius = img.borderRadius;
1820
2214
  }
1821
- return /* @__PURE__ */ jsx36(
2215
+ return /* @__PURE__ */ jsx38(
1822
2216
  "img",
1823
2217
  {
1824
2218
  loading: "lazy",
@@ -1833,7 +2227,7 @@ var ImageGalleryNode = (props) => {
1833
2227
  })()
1834
2228
  ] }) : (
1835
2229
  /* Case 2: Only device-specific images exist */
1836
- /* @__PURE__ */ jsx36(Fragment5, { children: staticSources.map((img, index) => {
2230
+ /* @__PURE__ */ jsx38(Fragment5, { children: staticSources.map((img, index) => {
1837
2231
  const resolved = resolveImage(img);
1838
2232
  const imageUrl = resolved?.imageUrl;
1839
2233
  if (!imageUrl) {
@@ -1860,7 +2254,7 @@ var ImageGalleryNode = (props) => {
1860
2254
  default:
1861
2255
  display = "block";
1862
2256
  }
1863
- return /* @__PURE__ */ jsx36(
2257
+ return /* @__PURE__ */ jsx38(
1864
2258
  "img",
1865
2259
  {
1866
2260
  loading: "lazy",
@@ -2000,28 +2394,28 @@ var shouldRenderContainer = (node, dataItem, session) => {
2000
2394
  };
2001
2395
 
2002
2396
  // src/components/pageRenderingEngine/nodes/DocumentNode.tsx
2003
- import { Fragment as Fragment6, jsx as jsx37, jsxs as jsxs14 } from "react/jsx-runtime";
2397
+ import { Fragment as Fragment6, jsx as jsx39, jsxs as jsxs16 } from "react/jsx-runtime";
2004
2398
  var getNestedValue5 = (obj, path) => {
2005
2399
  if (!obj || !path) return void 0;
2006
2400
  return path.split(".").reduce((current, key) => {
2007
2401
  return current && current[key] !== void 0 ? current[key] : void 0;
2008
2402
  }, obj);
2009
2403
  };
2010
- var PdfIcon = () => /* @__PURE__ */ jsxs14(
2404
+ var PdfIcon2 = () => /* @__PURE__ */ jsxs16(
2011
2405
  "svg",
2012
2406
  {
2013
2407
  xmlns: "http://www.w3.org/2000/svg",
2014
2408
  viewBox: "0 0 48 48",
2015
2409
  className: "w-10 h-10",
2016
2410
  children: [
2017
- /* @__PURE__ */ jsx37(
2411
+ /* @__PURE__ */ jsx39(
2018
2412
  "path",
2019
2413
  {
2020
2414
  fill: "#e53935",
2021
2415
  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"
2022
2416
  }
2023
2417
  ),
2024
- /* @__PURE__ */ jsx37(
2418
+ /* @__PURE__ */ jsx39(
2025
2419
  "path",
2026
2420
  {
2027
2421
  fill: "#fff",
@@ -2031,55 +2425,55 @@ var PdfIcon = () => /* @__PURE__ */ jsxs14(
2031
2425
  ]
2032
2426
  }
2033
2427
  );
2034
- var ExcelIcon = () => /* @__PURE__ */ jsxs14(
2428
+ var ExcelIcon2 = () => /* @__PURE__ */ jsxs16(
2035
2429
  "svg",
2036
2430
  {
2037
2431
  xmlns: "http://www.w3.org/2000/svg",
2038
2432
  viewBox: "0 0 48 48",
2039
2433
  className: "w-10 h-10",
2040
2434
  children: [
2041
- /* @__PURE__ */ jsx37(
2435
+ /* @__PURE__ */ jsx39(
2042
2436
  "path",
2043
2437
  {
2044
2438
  fill: "#169154",
2045
2439
  d: "M29,6H15.744C14.781,6,14,6.781,14,7.744v7.259h15V6z"
2046
2440
  }
2047
2441
  ),
2048
- /* @__PURE__ */ jsx37(
2442
+ /* @__PURE__ */ jsx39(
2049
2443
  "path",
2050
2444
  {
2051
2445
  fill: "#18482a",
2052
2446
  d: "M14,33.054v7.202C14,41.219,14.781,42,15.743,42H29v-8.946H14z"
2053
2447
  }
2054
2448
  ),
2055
- /* @__PURE__ */ jsx37("path", { fill: "#0c8045", d: "M14 15.003H29V24.005000000000003H14z" }),
2056
- /* @__PURE__ */ jsx37("path", { fill: "#17472a", d: "M14 24.005H29V33.055H14z" }),
2057
- /* @__PURE__ */ jsxs14("g", { children: [
2058
- /* @__PURE__ */ jsx37(
2449
+ /* @__PURE__ */ jsx39("path", { fill: "#0c8045", d: "M14 15.003H29V24.005000000000003H14z" }),
2450
+ /* @__PURE__ */ jsx39("path", { fill: "#17472a", d: "M14 24.005H29V33.055H14z" }),
2451
+ /* @__PURE__ */ jsxs16("g", { children: [
2452
+ /* @__PURE__ */ jsx39(
2059
2453
  "path",
2060
2454
  {
2061
2455
  fill: "#29c27f",
2062
2456
  d: "M42.256,6H29v9.003h15V7.744C44,6.781,43.219,6,42.256,6z"
2063
2457
  }
2064
2458
  ),
2065
- /* @__PURE__ */ jsx37(
2459
+ /* @__PURE__ */ jsx39(
2066
2460
  "path",
2067
2461
  {
2068
2462
  fill: "#27663f",
2069
2463
  d: "M29,33.054V42h13.257C43.219,42,44,41.219,44,40.257v-7.202H29z"
2070
2464
  }
2071
2465
  ),
2072
- /* @__PURE__ */ jsx37("path", { fill: "#19ac65", d: "M29 15.003H44V24.005000000000003H29z" }),
2073
- /* @__PURE__ */ jsx37("path", { fill: "#129652", d: "M29 24.005H44V33.055H29z" })
2466
+ /* @__PURE__ */ jsx39("path", { fill: "#19ac65", d: "M29 15.003H44V24.005000000000003H29z" }),
2467
+ /* @__PURE__ */ jsx39("path", { fill: "#129652", d: "M29 24.005H44V33.055H29z" })
2074
2468
  ] }),
2075
- /* @__PURE__ */ jsx37(
2469
+ /* @__PURE__ */ jsx39(
2076
2470
  "path",
2077
2471
  {
2078
2472
  fill: "#0c7238",
2079
2473
  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"
2080
2474
  }
2081
2475
  ),
2082
- /* @__PURE__ */ jsx37(
2476
+ /* @__PURE__ */ jsx39(
2083
2477
  "path",
2084
2478
  {
2085
2479
  fill: "#fff",
@@ -2089,7 +2483,7 @@ var ExcelIcon = () => /* @__PURE__ */ jsxs14(
2089
2483
  ]
2090
2484
  }
2091
2485
  );
2092
- var WordIcon = () => /* @__PURE__ */ jsxs14(
2486
+ var WordIcon2 = () => /* @__PURE__ */ jsxs16(
2093
2487
  "svg",
2094
2488
  {
2095
2489
  xmlns: "http://www.w3.org/2000/svg",
@@ -2097,14 +2491,14 @@ var WordIcon = () => /* @__PURE__ */ jsxs14(
2097
2491
  className: "w-10 h-10",
2098
2492
  baseProfile: "basic",
2099
2493
  children: [
2100
- /* @__PURE__ */ jsx37(
2494
+ /* @__PURE__ */ jsx39(
2101
2495
  "path",
2102
2496
  {
2103
2497
  fill: "#283593",
2104
2498
  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"
2105
2499
  }
2106
2500
  ),
2107
- /* @__PURE__ */ jsxs14(
2501
+ /* @__PURE__ */ jsxs16(
2108
2502
  "linearGradient",
2109
2503
  {
2110
2504
  id: "qh2LT5tehRDFkLLfb-odWa",
@@ -2115,19 +2509,19 @@ var WordIcon = () => /* @__PURE__ */ jsxs14(
2115
2509
  gradientTransform: "translate(0 -339.89)",
2116
2510
  gradientUnits: "userSpaceOnUse",
2117
2511
  children: [
2118
- /* @__PURE__ */ jsx37("stop", { offset: "0", "stop-color": "#66c0ff" }),
2119
- /* @__PURE__ */ jsx37("stop", { offset: ".26", "stop-color": "#0094f0" })
2512
+ /* @__PURE__ */ jsx39("stop", { offset: "0", "stop-color": "#66c0ff" }),
2513
+ /* @__PURE__ */ jsx39("stop", { offset: ".26", "stop-color": "#0094f0" })
2120
2514
  ]
2121
2515
  }
2122
2516
  ),
2123
- /* @__PURE__ */ jsx37(
2517
+ /* @__PURE__ */ jsx39(
2124
2518
  "path",
2125
2519
  {
2126
2520
  fill: "url(#qh2LT5tehRDFkLLfb-odWa)",
2127
2521
  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"
2128
2522
  }
2129
2523
  ),
2130
- /* @__PURE__ */ jsx37(
2524
+ /* @__PURE__ */ jsx39(
2131
2525
  "path",
2132
2526
  {
2133
2527
  fill: "#1e88e5",
@@ -2135,21 +2529,21 @@ var WordIcon = () => /* @__PURE__ */ jsxs14(
2135
2529
  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"
2136
2530
  }
2137
2531
  ),
2138
- /* @__PURE__ */ jsx37(
2532
+ /* @__PURE__ */ jsx39(
2139
2533
  "path",
2140
2534
  {
2141
2535
  fill: "#00e5ff",
2142
2536
  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"
2143
2537
  }
2144
2538
  ),
2145
- /* @__PURE__ */ jsx37(
2539
+ /* @__PURE__ */ jsx39(
2146
2540
  "path",
2147
2541
  {
2148
2542
  fill: "#1565c0",
2149
2543
  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"
2150
2544
  }
2151
2545
  ),
2152
- /* @__PURE__ */ jsx37(
2546
+ /* @__PURE__ */ jsx39(
2153
2547
  "path",
2154
2548
  {
2155
2549
  fill: "#fff",
@@ -2159,42 +2553,42 @@ var WordIcon = () => /* @__PURE__ */ jsxs14(
2159
2553
  ]
2160
2554
  }
2161
2555
  );
2162
- var StandardIcon = () => /* @__PURE__ */ jsxs14(
2556
+ var StandardIcon2 = () => /* @__PURE__ */ jsxs16(
2163
2557
  "svg",
2164
2558
  {
2165
2559
  xmlns: "http://www.w3.org/2000/svg",
2166
2560
  viewBox: "0 0 48 48",
2167
2561
  className: "w-10 h-10",
2168
2562
  children: [
2169
- /* @__PURE__ */ jsx37("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
2170
- /* @__PURE__ */ jsx37("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" })
2563
+ /* @__PURE__ */ jsx39("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
2564
+ /* @__PURE__ */ jsx39("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" })
2171
2565
  ]
2172
2566
  }
2173
2567
  );
2174
- var PowerPointIcon = () => /* @__PURE__ */ jsxs14(
2568
+ var PowerPointIcon2 = () => /* @__PURE__ */ jsxs16(
2175
2569
  "svg",
2176
2570
  {
2177
2571
  xmlns: "http://www.w3.org/2000/svg",
2178
2572
  viewBox: "0 0 48 48",
2179
2573
  className: "w-10 h-10",
2180
2574
  children: [
2181
- /* @__PURE__ */ jsx37(
2575
+ /* @__PURE__ */ jsx39(
2182
2576
  "path",
2183
2577
  {
2184
2578
  fill: "#dc4c2c",
2185
2579
  d: "M8,24c0,9.941,8.059,18,18,18s18-8.059,18-18H26H8z"
2186
2580
  }
2187
2581
  ),
2188
- /* @__PURE__ */ jsx37("path", { fill: "#f7a278", d: "M26,6v18h18C44,14.059,35.941,6,26,6z" }),
2189
- /* @__PURE__ */ jsx37("path", { fill: "#c06346", d: "M26,6C16.059,6,8,14.059,8,24h18V6z" }),
2190
- /* @__PURE__ */ jsx37(
2582
+ /* @__PURE__ */ jsx39("path", { fill: "#f7a278", d: "M26,6v18h18C44,14.059,35.941,6,26,6z" }),
2583
+ /* @__PURE__ */ jsx39("path", { fill: "#c06346", d: "M26,6C16.059,6,8,14.059,8,24h18V6z" }),
2584
+ /* @__PURE__ */ jsx39(
2191
2585
  "path",
2192
2586
  {
2193
2587
  fill: "#9b341f",
2194
2588
  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"
2195
2589
  }
2196
2590
  ),
2197
- /* @__PURE__ */ jsx37(
2591
+ /* @__PURE__ */ jsx39(
2198
2592
  "path",
2199
2593
  {
2200
2594
  fill: "#fff",
@@ -2204,16 +2598,16 @@ var PowerPointIcon = () => /* @__PURE__ */ jsxs14(
2204
2598
  ]
2205
2599
  }
2206
2600
  );
2207
- var TextIcon = () => /* @__PURE__ */ jsxs14(
2601
+ var TextIcon2 = () => /* @__PURE__ */ jsxs16(
2208
2602
  "svg",
2209
2603
  {
2210
2604
  xmlns: "http://www.w3.org/2000/svg",
2211
2605
  viewBox: "0 0 48 48",
2212
2606
  className: "w-10 h-10",
2213
2607
  children: [
2214
- /* @__PURE__ */ jsx37("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
2215
- /* @__PURE__ */ jsx37("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" }),
2216
- /* @__PURE__ */ jsx37(
2608
+ /* @__PURE__ */ jsx39("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
2609
+ /* @__PURE__ */ jsx39("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" }),
2610
+ /* @__PURE__ */ jsx39(
2217
2611
  "path",
2218
2612
  {
2219
2613
  fill: "#1976D2",
@@ -2223,7 +2617,7 @@ var TextIcon = () => /* @__PURE__ */ jsxs14(
2223
2617
  ]
2224
2618
  }
2225
2619
  );
2226
- var ArchiveIcon = () => /* @__PURE__ */ jsxs14(
2620
+ var ArchiveIcon2 = () => /* @__PURE__ */ jsxs16(
2227
2621
  "svg",
2228
2622
  {
2229
2623
  xmlns: "http://www.w3.org/2000/svg",
@@ -2233,14 +2627,14 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs14(
2233
2627
  version: "1.0",
2234
2628
  className: "w-10 h-10",
2235
2629
  children: [
2236
- /* @__PURE__ */ jsx37("defs", { children: /* @__PURE__ */ jsx37("clipPath", { id: "273d29c8a6", children: /* @__PURE__ */ jsx37(
2630
+ /* @__PURE__ */ jsx39("defs", { children: /* @__PURE__ */ jsx39("clipPath", { id: "273d29c8a6", children: /* @__PURE__ */ jsx39(
2237
2631
  "path",
2238
2632
  {
2239
2633
  d: "M 8.90625 0 L 65.90625 0 L 65.90625 75 L 8.90625 75 Z M 8.90625 0 ",
2240
2634
  "clip-rule": "nonzero"
2241
2635
  }
2242
2636
  ) }) }),
2243
- /* @__PURE__ */ jsx37("g", { "clip-path": "url(#273d29c8a6)", children: /* @__PURE__ */ jsx37(
2637
+ /* @__PURE__ */ jsx39("g", { "clip-path": "url(#273d29c8a6)", children: /* @__PURE__ */ jsx39(
2244
2638
  "path",
2245
2639
  {
2246
2640
  fill: "#ff9100",
@@ -2249,7 +2643,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs14(
2249
2643
  "fill-rule": "nonzero"
2250
2644
  }
2251
2645
  ) }),
2252
- /* @__PURE__ */ jsx37(
2646
+ /* @__PURE__ */ jsx39(
2253
2647
  "path",
2254
2648
  {
2255
2649
  fill: "#fbe9e7",
@@ -2258,7 +2652,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs14(
2258
2652
  "fill-rule": "nonzero"
2259
2653
  }
2260
2654
  ),
2261
- /* @__PURE__ */ jsx37(
2655
+ /* @__PURE__ */ jsx39(
2262
2656
  "path",
2263
2657
  {
2264
2658
  fill: "#ffe0b2",
@@ -2267,7 +2661,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs14(
2267
2661
  "fill-rule": "nonzero"
2268
2662
  }
2269
2663
  ),
2270
- /* @__PURE__ */ jsx37(
2664
+ /* @__PURE__ */ jsx39(
2271
2665
  "path",
2272
2666
  {
2273
2667
  fill: "#ffe0b2",
@@ -2276,7 +2670,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs14(
2276
2670
  "fill-rule": "nonzero"
2277
2671
  }
2278
2672
  ),
2279
- /* @__PURE__ */ jsx37(
2673
+ /* @__PURE__ */ jsx39(
2280
2674
  "path",
2281
2675
  {
2282
2676
  fill: "#ffe0b2",
@@ -2288,28 +2682,28 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs14(
2288
2682
  ]
2289
2683
  }
2290
2684
  );
2291
- var getFileDetails = (url) => {
2685
+ var getFileDetails2 = (url) => {
2292
2686
  const extMatch = url.match(/\.([a-zA-Z0-9]+)(?:[\?#]|$)/);
2293
2687
  const ext = extMatch ? extMatch[1].toLowerCase() : "";
2294
- let Icon = StandardIcon;
2688
+ let Icon = StandardIcon2;
2295
2689
  let extLabel = "FILE";
2296
2690
  if (ext === "pdf") {
2297
- Icon = PdfIcon;
2691
+ Icon = PdfIcon2;
2298
2692
  extLabel = "PDF";
2299
2693
  } else if (["xls", "xlsx", "csv"].includes(ext)) {
2300
- Icon = ExcelIcon;
2694
+ Icon = ExcelIcon2;
2301
2695
  extLabel = "Excel";
2302
2696
  } else if (["doc", "docx"].includes(ext)) {
2303
- Icon = WordIcon;
2697
+ Icon = WordIcon2;
2304
2698
  extLabel = "Word";
2305
2699
  } else if (["ppt", "pptx"].includes(ext)) {
2306
- Icon = PowerPointIcon;
2700
+ Icon = PowerPointIcon2;
2307
2701
  extLabel = "PowerPoint";
2308
2702
  } else if (["txt", "rtf"].includes(ext)) {
2309
- Icon = TextIcon;
2703
+ Icon = TextIcon2;
2310
2704
  extLabel = "Text";
2311
2705
  } else if (["zip", "rar", "7z"].includes(ext)) {
2312
- Icon = ArchiveIcon;
2706
+ Icon = ArchiveIcon2;
2313
2707
  extLabel = "Archive";
2314
2708
  } else if (ext) {
2315
2709
  extLabel = ext.toUpperCase();
@@ -2351,8 +2745,8 @@ var DocumentNode = (props) => {
2351
2745
  }
2352
2746
  }
2353
2747
  if (documents.length === 0) {
2354
- return /* @__PURE__ */ jsx37(Fragment6, { children: /* @__PURE__ */ jsxs14("div", { className: "py-4 px-2 bg-neutral-weak border rounded text-center flex flex-col gap-2", children: [
2355
- /* @__PURE__ */ jsx37("div", { className: "mx-auto w-10 h-10 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ jsx37(
2748
+ return /* @__PURE__ */ jsx39(Fragment6, { children: /* @__PURE__ */ jsxs16("div", { className: "py-4 px-2 bg-neutral-weak border rounded text-center flex flex-col gap-2", children: [
2749
+ /* @__PURE__ */ jsx39("div", { className: "mx-auto w-10 h-10 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ jsx39(
2356
2750
  "svg",
2357
2751
  {
2358
2752
  className: "w-5 h-5",
@@ -2360,7 +2754,7 @@ var DocumentNode = (props) => {
2360
2754
  stroke: "currentColor",
2361
2755
  viewBox: "0 0 24 24",
2362
2756
  xmlns: "http://www.w3.org/2000/svg",
2363
- children: /* @__PURE__ */ jsx37(
2757
+ children: /* @__PURE__ */ jsx39(
2364
2758
  "path",
2365
2759
  {
2366
2760
  strokeLinecap: "round",
@@ -2371,11 +2765,11 @@ var DocumentNode = (props) => {
2371
2765
  )
2372
2766
  }
2373
2767
  ) }),
2374
- /* @__PURE__ */ jsx37("div", { className: "text-sm font-medium", children: "No documents found" }),
2375
- /* @__PURE__ */ jsx37("div", { className: "text-xs", children: "No records found. Data may be empty or not available at the moment." })
2768
+ /* @__PURE__ */ jsx39("div", { className: "text-sm font-medium", children: "No documents found" }),
2769
+ /* @__PURE__ */ jsx39("div", { className: "text-xs", children: "No records found. Data may be empty or not available at the moment." })
2376
2770
  ] }) });
2377
2771
  }
2378
- return /* @__PURE__ */ jsx37("div", { className: "", children: documents.map((doc, index) => {
2772
+ return /* @__PURE__ */ jsx39("div", { className: "", children: documents.map((doc, index) => {
2379
2773
  const documentUrl = AssetUtility_default.resolveUrl(
2380
2774
  props.assetBaseUrl,
2381
2775
  doc.assetUrl
@@ -2392,17 +2786,17 @@ var DocumentNode = (props) => {
2392
2786
  documentTitle = documentUrl.split("/").pop()?.replace(/\.[^/.]+$/, "") || "Document";
2393
2787
  }
2394
2788
  }
2395
- const { Icon, extLabel } = getFileDetails(documentUrl);
2396
- return /* @__PURE__ */ jsxs14(
2789
+ const { Icon, extLabel } = getFileDetails2(documentUrl);
2790
+ return /* @__PURE__ */ jsxs16(
2397
2791
  "div",
2398
2792
  {
2399
2793
  className: `flex items-center justify-between py-4 bg-default gap-4 ${index !== 0 ? "border-t" : ""}`,
2400
2794
  children: [
2401
- /* @__PURE__ */ jsxs14("div", { className: "flex items-center space-x-4", children: [
2402
- /* @__PURE__ */ jsx37("div", { className: "flex items-center justify-center p-2 rounded bg-neutral-soft", children: /* @__PURE__ */ jsx37(Icon, {}) }),
2403
- /* @__PURE__ */ jsx37("div", { className: "flex items-baseline space-x-2", children: /* @__PURE__ */ jsx37("h4", { className: "text-base font-semibold", children: documentTitle }) })
2795
+ /* @__PURE__ */ jsxs16("div", { className: "flex items-center space-x-4", children: [
2796
+ /* @__PURE__ */ jsx39("div", { className: "flex items-center justify-center p-2 rounded bg-neutral-soft", children: /* @__PURE__ */ jsx39(Icon, {}) }),
2797
+ /* @__PURE__ */ jsx39("div", { className: "flex items-baseline space-x-2", children: /* @__PURE__ */ jsx39("h4", { className: "text-base font-semibold", children: documentTitle }) })
2404
2798
  ] }),
2405
- /* @__PURE__ */ jsxs14(
2799
+ /* @__PURE__ */ jsxs16(
2406
2800
  "a",
2407
2801
  {
2408
2802
  href: documentUrl,
@@ -2410,7 +2804,7 @@ var DocumentNode = (props) => {
2410
2804
  rel: "noopener noreferrer",
2411
2805
  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",
2412
2806
  children: [
2413
- /* @__PURE__ */ jsxs14(
2807
+ /* @__PURE__ */ jsxs16(
2414
2808
  "svg",
2415
2809
  {
2416
2810
  className: "w-4 h-4 mr-2",
@@ -2418,7 +2812,7 @@ var DocumentNode = (props) => {
2418
2812
  stroke: "currentColor",
2419
2813
  viewBox: "0 0 24 24",
2420
2814
  children: [
2421
- /* @__PURE__ */ jsx37(
2815
+ /* @__PURE__ */ jsx39(
2422
2816
  "path",
2423
2817
  {
2424
2818
  strokeLinecap: "round",
@@ -2427,7 +2821,7 @@ var DocumentNode = (props) => {
2427
2821
  d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"
2428
2822
  }
2429
2823
  ),
2430
- /* @__PURE__ */ jsx37(
2824
+ /* @__PURE__ */ jsx39(
2431
2825
  "path",
2432
2826
  {
2433
2827
  strokeLinecap: "round",
@@ -2453,13 +2847,13 @@ var DocumentNode_default = DocumentNode;
2453
2847
 
2454
2848
  // src/components/pageRenderingEngine/nodes/GoogleMapNode.tsx
2455
2849
  import dynamic10 from "next/dynamic";
2456
- import { jsx as jsx38 } from "react/jsx-runtime";
2850
+ import { jsx as jsx40 } from "react/jsx-runtime";
2457
2851
  var IframeClient2 = dynamic10(() => import("./IframeClient-XEWQLGUQ.mjs"), {
2458
2852
  ssr: false
2459
2853
  });
2460
2854
  var GoogleMapNode = (props) => {
2461
2855
  let src = props.node.embedUrl;
2462
- return /* @__PURE__ */ jsx38("div", { className: "google-map-container", children: src && /* @__PURE__ */ jsx38(
2856
+ return /* @__PURE__ */ jsx40("div", { className: "google-map-container", children: src && /* @__PURE__ */ jsx40(
2463
2857
  IframeClient2,
2464
2858
  {
2465
2859
  src,
@@ -2471,7 +2865,7 @@ var GoogleMapNode = (props) => {
2471
2865
  var GoogleMapNode_default = GoogleMapNode;
2472
2866
 
2473
2867
  // src/components/pageRenderingEngine/nodes/DivContainer.tsx
2474
- import { jsx as jsx39, jsxs as jsxs15 } from "react/jsx-runtime";
2868
+ import { jsx as jsx41, jsxs as jsxs17 } from "react/jsx-runtime";
2475
2869
  var Pagination = dynamic11(() => import("./Pagination-QBPYDD66.mjs"), { ssr: true });
2476
2870
  var DataBindingControls = dynamic11(() => import("./DataBindingControls-WJAY5HFO.mjs"), {
2477
2871
  ssr: true
@@ -2730,7 +3124,7 @@ var DivContainer = async (props) => {
2730
3124
  response = await serviceClient.get(endpoint);
2731
3125
  result = response?.result;
2732
3126
  if (dataBindingProperties.showNoResultsMessage && (result === void 0 || result.length == 0)) {
2733
- return /* @__PURE__ */ jsx39(NoDataFound_default, {});
3127
+ return /* @__PURE__ */ jsx41(NoDataFound_default, {});
2734
3128
  }
2735
3129
  if (dataBindingProperties.childCollectionName && props.dataitem) {
2736
3130
  childCollectionData = getNestedValue6(
@@ -2750,7 +3144,7 @@ var DivContainer = async (props) => {
2750
3144
  }
2751
3145
  const SelectedNode = NodeTypes2[node.type];
2752
3146
  if (!SelectedNode) return null;
2753
- return /* @__PURE__ */ jsx39(React25.Fragment, { children: /* @__PURE__ */ jsx39(
3147
+ return /* @__PURE__ */ jsx41(React25.Fragment, { children: /* @__PURE__ */ jsx41(
2754
3148
  SelectedNode,
2755
3149
  {
2756
3150
  node,
@@ -2887,7 +3281,7 @@ var DivContainer = async (props) => {
2887
3281
  dataBindingProperties?.showFacets || dataBindingProperties?.showSortOptions || dataBindingProperties?.showSearchBar
2888
3282
  );
2889
3283
  const WrapperComponent = Wrapper;
2890
- const renderedContainer = /* @__PURE__ */ jsx39(
3284
+ const renderedContainer = /* @__PURE__ */ jsx41(
2891
3285
  WrapperComponent,
2892
3286
  {
2893
3287
  id: guid,
@@ -2901,11 +3295,11 @@ var DivContainer = async (props) => {
2901
3295
  item,
2902
3296
  idx,
2903
3297
  props.href ? void 0 : item?.links?.view
2904
- )?.map((child, i) => /* @__PURE__ */ jsx39(React25.Fragment, { children: child }, i)) : renderChildren2(props.node.children, props, item, idx)
3298
+ )?.map((child, i) => /* @__PURE__ */ jsx41(React25.Fragment, { children: child }, i)) : renderChildren2(props.node.children, props, item, idx)
2905
3299
  )
2906
3300
  }
2907
3301
  );
2908
- const paginationControl = dataBindingProperties?.enablePagination ? /* @__PURE__ */ jsx39(
3302
+ const paginationControl = dataBindingProperties?.enablePagination ? /* @__PURE__ */ jsx41(
2909
3303
  Pagination,
2910
3304
  {
2911
3305
  path: props.path,
@@ -2913,15 +3307,15 @@ var DivContainer = async (props) => {
2913
3307
  dataset: response
2914
3308
  }
2915
3309
  ) : null;
2916
- return /* @__PURE__ */ jsxs15(React25.Fragment, { children: [
2917
- /* @__PURE__ */ jsx39(
3310
+ return /* @__PURE__ */ jsxs17(React25.Fragment, { children: [
3311
+ /* @__PURE__ */ jsx41(
2918
3312
  "style",
2919
3313
  {
2920
3314
  dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS }
2921
3315
  }
2922
3316
  ),
2923
- showDataBindingControls ? /* @__PURE__ */ jsxs15(React25.Fragment, { children: [
2924
- /* @__PURE__ */ jsx39(
3317
+ showDataBindingControls ? /* @__PURE__ */ jsxs17(React25.Fragment, { children: [
3318
+ /* @__PURE__ */ jsx41(
2925
3319
  DataBindingControls,
2926
3320
  {
2927
3321
  mode: "toolbar",
@@ -2933,18 +3327,18 @@ var DivContainer = async (props) => {
2933
3327
  showSearchBar: dataBindingProperties?.showSearchBar
2934
3328
  }
2935
3329
  ),
2936
- /* @__PURE__ */ jsxs15(
3330
+ /* @__PURE__ */ jsxs17(
2937
3331
  "div",
2938
3332
  {
2939
3333
  className: dataBindingProperties?.showFacets ? "grid items-start gap-6 lg:grid-cols-[minmax(0,1fr)_18rem]" : void 0,
2940
3334
  children: [
2941
- /* @__PURE__ */ jsxs15("div", { className: "min-w-0", children: [
3335
+ /* @__PURE__ */ jsxs17("div", { className: "min-w-0", children: [
2942
3336
  renderedContainer,
2943
3337
  paginationControl
2944
3338
  ] }),
2945
- dataBindingProperties?.showFacets && /* @__PURE__ */ jsxs15("aside", { className: "border bg-default p-3 lg:sticky lg:top-[90px] lg:self-start", children: [
2946
- /* @__PURE__ */ jsx39("h2", { className: "mb-2 text-lg font-semibold", children: "Filters" }),
2947
- /* @__PURE__ */ jsx39(
3339
+ dataBindingProperties?.showFacets && /* @__PURE__ */ jsxs17("aside", { className: "border bg-default p-3 lg:sticky lg:top-[90px] lg:self-start", children: [
3340
+ /* @__PURE__ */ jsx41("h2", { className: "mb-2 text-lg font-semibold", children: "Filters" }),
3341
+ /* @__PURE__ */ jsx41(
2948
3342
  DataBindingControls,
2949
3343
  {
2950
3344
  mode: "facets",
@@ -2958,16 +3352,16 @@ var DivContainer = async (props) => {
2958
3352
  ]
2959
3353
  }
2960
3354
  )
2961
- ] }) : /* @__PURE__ */ jsxs15(React25.Fragment, { children: [
3355
+ ] }) : /* @__PURE__ */ jsxs17(React25.Fragment, { children: [
2962
3356
  renderedContainer,
2963
- paginationControl && /* @__PURE__ */ jsx39("div", { children: paginationControl })
3357
+ paginationControl && /* @__PURE__ */ jsx41("div", { children: paginationControl })
2964
3358
  ] })
2965
3359
  ] });
2966
3360
  };
2967
3361
  var DivContainer_default = DivContainer;
2968
3362
 
2969
3363
  // src/components/pageRenderingEngine/PageBodyRenderer.tsx
2970
- import { jsx as jsx40 } from "react/jsx-runtime";
3364
+ import { jsx as jsx42 } from "react/jsx-runtime";
2971
3365
  var NodeTypes = {
2972
3366
  ["paragraph"]: ParagraphNode_default,
2973
3367
  ["heading"]: HeadingNode_default,
@@ -3005,14 +3399,14 @@ var PageBodyRenderer = (props) => {
3005
3399
  }
3006
3400
  return true;
3007
3401
  };
3008
- return /* @__PURE__ */ jsx40(React26.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
3402
+ return /* @__PURE__ */ jsx42(React26.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
3009
3403
  {
3010
3404
  }
3011
3405
  const SelectedNode = NodeTypes[node.type];
3012
3406
  if (!shouldRenderNode(node)) {
3013
3407
  return null;
3014
3408
  }
3015
- return /* @__PURE__ */ jsx40(React26.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx40(React26.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ jsx40(React26.Fragment, { children: /* @__PURE__ */ jsx40(
3409
+ return /* @__PURE__ */ jsx42(React26.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx42(React26.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ jsx42(React26.Fragment, { children: /* @__PURE__ */ jsx42(
3016
3410
  SelectedNode,
3017
3411
  {
3018
3412
  node,
@@ -3028,7 +3422,7 @@ var PageBodyRenderer = (props) => {
3028
3422
  device: props.device,
3029
3423
  widgetRenderer: props.widgetRenderer
3030
3424
  }
3031
- ) }) : /* @__PURE__ */ jsx40(React26.Fragment, { children: /* @__PURE__ */ jsx40(
3425
+ ) }) : /* @__PURE__ */ jsx42(React26.Fragment, { children: /* @__PURE__ */ jsx42(
3032
3426
  SelectedNode,
3033
3427
  {
3034
3428
  node,