@clyrex-digital/clyrex-controls-dev 0.8.1-dev.20260929055955 → 0.8.1-dev.20260930101733

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -469,10 +469,10 @@ var InputControl = dynamic7(() => import("./InputControlClient-QMFSUGTK.mjs"), {
469
469
  var InputControl_default = InputControl;
470
470
 
471
471
  // src/components/pageRenderingEngine/PageBodyRenderer.tsx
472
- import React24 from "react";
472
+ import React25 from "react";
473
473
 
474
474
  // src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
475
- import React16 from "react";
475
+ import React17 from "react";
476
476
 
477
477
  // src/components/pageRenderingEngine/nodes/TextNode.tsx
478
478
  import { jsx as jsx16, jsxs as jsxs6 } from "react/jsx-runtime";
@@ -626,7 +626,7 @@ var ImageNode = (props) => {
626
626
  ...props.node.borderRadius && { borderRadius: props.node.borderRadius },
627
627
  ...props.node.width && { width: props.node.width }
628
628
  };
629
- const FORMAT_CLASSES2 = {
629
+ const FORMAT_CLASSES3 = {
630
630
  center: "justify-center",
631
631
  left: "justify-start",
632
632
  right: "justify-end"
@@ -658,7 +658,7 @@ var ImageNode = (props) => {
658
658
  }
659
659
  );
660
660
  if (props.node.width) {
661
- return /* @__PURE__ */ jsx18("div", { className: `flex ${FORMAT_CLASSES2[props.node.format] ?? ""}`, children: renderMedia() });
661
+ return /* @__PURE__ */ jsx18("div", { className: `flex ${FORMAT_CLASSES3[props.node.format] ?? ""}`, children: renderMedia() });
662
662
  }
663
663
  return renderMedia();
664
664
  };
@@ -949,8 +949,89 @@ var DatafieldNode = (props) => {
949
949
  };
950
950
  var DatafieldNode_default = DatafieldNode;
951
951
 
952
+ // src/components/pageRenderingEngine/nodes/CounterNode.tsx
953
+ import { useCallback, useEffect, useRef, useState } from "react";
954
+ import { jsx as jsx23, jsxs as jsxs8 } from "react/jsx-runtime";
955
+ var FORMAT_CLASSES2 = {
956
+ center: "justify-center text-center",
957
+ right: "justify-end text-right",
958
+ left: "justify-start text-left",
959
+ justify: "justify-between text-justify"
960
+ };
961
+ var CounterNode = ({ node }) => {
962
+ const ref = useRef(null);
963
+ const startValue = typeof node?.startValue === "number" ? node.startValue : Number(node?.startValue) || 0;
964
+ const endValue = typeof node?.endValue === "number" ? node.endValue : Number(node?.endValue) || 0;
965
+ const duration = Math.max(Number(node?.duration) || 2e3, 300);
966
+ const prefix = node?.prefix ?? "";
967
+ const suffix = node?.suffix ?? "";
968
+ const format = node?.format;
969
+ const [displayValue, setDisplayValue] = useState(startValue);
970
+ const hasAnimatedRef = useRef(false);
971
+ const runAnimation = useCallback(() => {
972
+ let startTime = null;
973
+ let animationFrameId;
974
+ const step = (timestamp) => {
975
+ if (!startTime) startTime = timestamp;
976
+ const progress = Math.min((timestamp - startTime) / duration, 1);
977
+ const easeOutProgress = 1 - Math.pow(1 - progress, 3);
978
+ const currentVal = Math.round(startValue + (endValue - startValue) * easeOutProgress);
979
+ setDisplayValue(currentVal);
980
+ if (progress < 1) {
981
+ animationFrameId = requestAnimationFrame(step);
982
+ } else {
983
+ setDisplayValue(endValue);
984
+ }
985
+ };
986
+ animationFrameId = requestAnimationFrame(step);
987
+ return () => {
988
+ if (animationFrameId) {
989
+ cancelAnimationFrame(animationFrameId);
990
+ }
991
+ };
992
+ }, [startValue, endValue, duration]);
993
+ useEffect(() => {
994
+ const currentRef = ref.current;
995
+ if (!currentRef) return;
996
+ if (typeof IntersectionObserver === "undefined") {
997
+ return runAnimation();
998
+ }
999
+ const observer = new IntersectionObserver(
1000
+ (entries) => {
1001
+ entries.forEach((entry) => {
1002
+ if (entry.isIntersecting && !hasAnimatedRef.current) {
1003
+ hasAnimatedRef.current = true;
1004
+ runAnimation();
1005
+ observer.unobserve(entry.target);
1006
+ }
1007
+ });
1008
+ },
1009
+ { threshold: 0.1 }
1010
+ );
1011
+ observer.observe(currentRef);
1012
+ return () => {
1013
+ observer.disconnect();
1014
+ };
1015
+ }, [runAnimation]);
1016
+ if (!node) return null;
1017
+ const alignClass = format && FORMAT_CLASSES2[format] || "justify-center text-center";
1018
+ return /* @__PURE__ */ jsx23(
1019
+ "div",
1020
+ {
1021
+ ref,
1022
+ className: `counter-node inline-flex items-center ${alignClass}`,
1023
+ children: /* @__PURE__ */ jsxs8("span", { className: "counter-display text-3xl font-bold tracking-tight", children: [
1024
+ prefix,
1025
+ displayValue.toLocaleString(),
1026
+ suffix
1027
+ ] })
1028
+ }
1029
+ );
1030
+ };
1031
+ var CounterNode_default = CounterNode;
1032
+
952
1033
  // src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
953
- import { Fragment as Fragment2, jsx as jsx23, jsxs as jsxs8 } from "react/jsx-runtime";
1034
+ import { Fragment as Fragment2, jsx as jsx24, jsxs as jsxs9 } from "react/jsx-runtime";
954
1035
  var ParagraphNode = (props) => {
955
1036
  const NodeTypes2 = {
956
1037
  ["text"]: TextNode_default,
@@ -958,7 +1039,8 @@ var ParagraphNode = (props) => {
958
1039
  ["link"]: LinkNode_default,
959
1040
  ["datafield"]: DatafieldNode_default,
960
1041
  ["equation"]: EquationNode_default,
961
- ["svg-icon"]: SVGIconNode_default
1042
+ ["svg-icon"]: SVGIconNode_default,
1043
+ ["counter"]: CounterNode_default
962
1044
  };
963
1045
  const FormatClass = {
964
1046
  "center": "text-center",
@@ -970,9 +1052,9 @@ var ParagraphNode = (props) => {
970
1052
  const isInlineOnlyParent = props.parentTag === "summary";
971
1053
  const hasChildren = props.node.children && props.node.children.length > 0;
972
1054
  if (isInlineOnlyParent) {
973
- return /* @__PURE__ */ jsx23(Fragment2, { children: hasChildren && props.node.children.map((node, index) => {
1055
+ return /* @__PURE__ */ jsx24(Fragment2, { children: hasChildren && props.node.children.map((node, index) => {
974
1056
  const SelectedNode = NodeTypes2[node.type];
975
- return /* @__PURE__ */ jsx23(React16.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx23(
1057
+ return /* @__PURE__ */ jsx24(React17.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx24(
976
1058
  SelectedNode,
977
1059
  {
978
1060
  node,
@@ -985,10 +1067,10 @@ var ParagraphNode = (props) => {
985
1067
  ) }, index);
986
1068
  }) });
987
1069
  }
988
- return /* @__PURE__ */ jsxs8("div", { className: " " + formatClasses, children: [
1070
+ return /* @__PURE__ */ jsxs9("div", { className: " " + formatClasses, children: [
989
1071
  hasChildren && props.node.children.map((node, index) => {
990
1072
  const SelectedNode = NodeTypes2[node.type];
991
- return /* @__PURE__ */ jsx23(React16.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx23(
1073
+ return /* @__PURE__ */ jsx24(React17.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx24(
992
1074
  SelectedNode,
993
1075
  {
994
1076
  node,
@@ -1000,21 +1082,22 @@ var ParagraphNode = (props) => {
1000
1082
  }
1001
1083
  ) }, index);
1002
1084
  }),
1003
- !hasChildren && /* @__PURE__ */ jsx23("div", { className: "py-1.5 lg:py-2" })
1085
+ !hasChildren && /* @__PURE__ */ jsx24("div", { className: "py-1.5 lg:py-2" })
1004
1086
  ] });
1005
1087
  };
1006
1088
  var ParagraphNode_default = ParagraphNode;
1007
1089
 
1008
1090
  // src/components/pageRenderingEngine/nodes/HeadingNode.tsx
1009
- import React17 from "react";
1010
- import { Fragment as Fragment3, jsx as jsx24 } from "react/jsx-runtime";
1091
+ import React18 from "react";
1092
+ import { Fragment as Fragment3, jsx as jsx25 } from "react/jsx-runtime";
1011
1093
  var HeadingNode = (props) => {
1012
1094
  const NodeTypes2 = {
1013
1095
  ["text"]: TextNode_default,
1014
1096
  ["link"]: LinkNode_default,
1015
1097
  ["svg-icon"]: SVGIconNode_default,
1016
1098
  ["linebreak"]: LineBreakNode_default,
1017
- ["datafield"]: DatafieldNode_default
1099
+ ["datafield"]: DatafieldNode_default,
1100
+ ["counter"]: CounterNode_default
1018
1101
  };
1019
1102
  const HeadingTag = `${props.node.tag}`;
1020
1103
  const FormatClass = {
@@ -1023,23 +1106,23 @@ var HeadingNode = (props) => {
1023
1106
  {
1024
1107
  }
1025
1108
  const formatClasses = FormatClass[props.node.format] || "";
1026
- return /* @__PURE__ */ jsx24(Fragment3, { children: React17.createElement(
1109
+ return /* @__PURE__ */ jsx25(Fragment3, { children: React18.createElement(
1027
1110
  HeadingTag,
1028
1111
  { className: formatClasses },
1029
1112
  props.node.children && props.node.children.map((childNode, index) => {
1030
1113
  const SelectedNode = NodeTypes2[childNode.type];
1031
- return /* @__PURE__ */ jsx24(React17.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx24(SelectedNode, { node: childNode, dataitem: props.dataitem, session: props.session, apiBaseUrl: props.apiBaseUrl, assetBaseUrl: props.assetBaseUrl, routeParameters: props.routeParameters }) }, index);
1114
+ return /* @__PURE__ */ jsx25(React18.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx25(SelectedNode, { node: childNode, dataitem: props.dataitem, session: props.session, apiBaseUrl: props.apiBaseUrl, assetBaseUrl: props.assetBaseUrl, routeParameters: props.routeParameters }) }, index);
1032
1115
  })
1033
1116
  ) });
1034
1117
  };
1035
1118
  var HeadingNode_default = HeadingNode;
1036
1119
 
1037
1120
  // src/components/pageRenderingEngine/nodes/ListNode.tsx
1038
- import React19 from "react";
1121
+ import React20 from "react";
1039
1122
 
1040
1123
  // src/components/pageRenderingEngine/nodes/ListItemNode.tsx
1041
- import React18 from "react";
1042
- import { jsx as jsx25 } from "react/jsx-runtime";
1124
+ import React19 from "react";
1125
+ import { jsx as jsx26 } from "react/jsx-runtime";
1043
1126
  var ListItemNode = (props) => {
1044
1127
  const NodeTypes2 = {
1045
1128
  text: TextNode_default,
@@ -1056,66 +1139,66 @@ var ListItemNode = (props) => {
1056
1139
  liStyle.fontSize = match[1].trim();
1057
1140
  }
1058
1141
  }
1059
- return /* @__PURE__ */ jsx25("li", { style: liStyle, children: props.node.children && props.node.children.map((node, index) => {
1142
+ return /* @__PURE__ */ jsx26("li", { style: liStyle, children: props.node.children && props.node.children.map((node, index) => {
1060
1143
  const SelectedNode = NodeTypes2[node.type];
1061
1144
  if (node.type === "linebreak") {
1062
1145
  if (!foundFirstBreak) {
1063
1146
  foundFirstBreak = true;
1064
- return /* @__PURE__ */ jsx25("div", {}, index);
1147
+ return /* @__PURE__ */ jsx26("div", {}, index);
1065
1148
  } else {
1066
- return /* @__PURE__ */ jsx25("div", { className: "py-1 lg:py-2" }, index);
1149
+ return /* @__PURE__ */ jsx26("div", { className: "py-1 lg:py-2" }, index);
1067
1150
  }
1068
1151
  } else {
1069
1152
  foundFirstBreak = false;
1070
- return /* @__PURE__ */ jsx25(React18.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx25(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
1153
+ return /* @__PURE__ */ jsx26(React19.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx26(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
1071
1154
  }
1072
1155
  }) });
1073
1156
  };
1074
1157
  var ListItemNode_default = ListItemNode;
1075
1158
 
1076
1159
  // src/components/pageRenderingEngine/nodes/ListNode.tsx
1077
- import { jsx as jsx26, jsxs as jsxs9 } from "react/jsx-runtime";
1160
+ import { jsx as jsx27, jsxs as jsxs10 } from "react/jsx-runtime";
1078
1161
  var ListNode = (props) => {
1079
1162
  const NodeTypes2 = {
1080
1163
  listitem: ListItemNode_default
1081
1164
  };
1082
- return /* @__PURE__ */ jsxs9(React19.Fragment, { children: [
1083
- props.node.listType == "bullet" && /* @__PURE__ */ jsx26("ul", { children: props.node.children && props.node.children.map((node, index) => {
1165
+ return /* @__PURE__ */ jsxs10(React20.Fragment, { children: [
1166
+ props.node.listType == "bullet" && /* @__PURE__ */ jsx27("ul", { children: props.node.children && props.node.children.map((node, index) => {
1084
1167
  const SelectedNode = NodeTypes2[node.type];
1085
- return /* @__PURE__ */ jsx26(React19.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx26(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
1168
+ return /* @__PURE__ */ jsx27(React20.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx27(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
1086
1169
  }) }),
1087
- props.node.listType == "number" && /* @__PURE__ */ jsx26("ol", { children: props.node.children && props.node.children.map((node, index) => {
1170
+ props.node.listType == "number" && /* @__PURE__ */ jsx27("ol", { children: props.node.children && props.node.children.map((node, index) => {
1088
1171
  const SelectedNode = NodeTypes2[node.type];
1089
- return /* @__PURE__ */ jsx26(React19.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx26(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
1172
+ return /* @__PURE__ */ jsx27(React20.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx27(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
1090
1173
  }) })
1091
1174
  ] });
1092
1175
  };
1093
1176
  var ListNode_default = ListNode;
1094
1177
 
1095
1178
  // src/components/pageRenderingEngine/nodes/QuoteNode.tsx
1096
- import React20 from "react";
1097
- import { jsx as jsx27 } from "react/jsx-runtime";
1179
+ import React21 from "react";
1180
+ import { jsx as jsx28 } from "react/jsx-runtime";
1098
1181
  var QuoteNode = (props) => {
1099
1182
  const NodeTypes2 = {
1100
1183
  ["text"]: TextNode_default,
1101
1184
  ["linebreak"]: LineBreakNode_default,
1102
1185
  ["link"]: LinkNode_default
1103
1186
  };
1104
- return /* @__PURE__ */ jsx27("blockquote", { children: props.node.children && props.node.children.map((node, index) => {
1187
+ return /* @__PURE__ */ jsx28("blockquote", { children: props.node.children && props.node.children.map((node, index) => {
1105
1188
  const SelectedNode = NodeTypes2[node.type];
1106
- return /* @__PURE__ */ jsx27(React20.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx27(SelectedNode, { node, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
1189
+ return /* @__PURE__ */ jsx28(React21.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx28(SelectedNode, { node, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
1107
1190
  }) });
1108
1191
  };
1109
1192
  var QuoteNode_default = QuoteNode;
1110
1193
 
1111
1194
  // src/components/pageRenderingEngine/nodes/CodeNode.tsx
1112
- import React21 from "react";
1195
+ import React22 from "react";
1113
1196
  import dynamic10 from "next/dynamic";
1114
- import { jsx as jsx28, jsxs as jsxs10 } from "react/jsx-runtime";
1197
+ import { jsx as jsx29, jsxs as jsxs11 } from "react/jsx-runtime";
1115
1198
  var CopyButton = dynamic10(() => import("./CopyButton-UPJPMJUB.mjs"), {
1116
1199
  ssr: false,
1117
1200
  // optional: fallback UI while loading
1118
- loading: () => /* @__PURE__ */ jsx28("span", { className: "text-gray-400 text-xs", children: "Copy" })
1201
+ loading: () => /* @__PURE__ */ jsx29("span", { className: "text-gray-400 text-xs", children: "Copy" })
1119
1202
  });
1120
1203
  var CodeNode = (props) => {
1121
1204
  const NodeTypes2 = {
@@ -1129,14 +1212,14 @@ var CodeNode = (props) => {
1129
1212
  if (node.type === "link") return node.text || node.url || "";
1130
1213
  return "";
1131
1214
  }).join("") ?? "";
1132
- return /* @__PURE__ */ jsxs10("div", { children: [
1133
- /* @__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: [
1134
- /* @__PURE__ */ jsx28("span", { children: "Code Snippet" }),
1135
- /* @__PURE__ */ jsx28(CopyButton, { text: textContent })
1215
+ return /* @__PURE__ */ jsxs11("div", { children: [
1216
+ /* @__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: [
1217
+ /* @__PURE__ */ jsx29("span", { children: "Code Snippet" }),
1218
+ /* @__PURE__ */ jsx29(CopyButton, { text: textContent })
1136
1219
  ] }),
1137
- /* @__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) => {
1220
+ /* @__PURE__ */ jsx29("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) => {
1138
1221
  const SelectedNode = NodeTypes2[node.type];
1139
- return /* @__PURE__ */ jsx28(React21.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx28(
1222
+ return /* @__PURE__ */ jsx29(React22.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx29(
1140
1223
  SelectedNode,
1141
1224
  {
1142
1225
  node,
@@ -1151,15 +1234,15 @@ var CodeNode = (props) => {
1151
1234
  var CodeNode_default = CodeNode;
1152
1235
 
1153
1236
  // src/components/pageRenderingEngine/nodes/HorizontalRuleNode.tsx
1154
- import { jsx as jsx29 } from "react/jsx-runtime";
1237
+ import { jsx as jsx30 } from "react/jsx-runtime";
1155
1238
  var HorizontalRuleNode = () => {
1156
- return /* @__PURE__ */ jsx29("hr", {});
1239
+ return /* @__PURE__ */ jsx30("hr", {});
1157
1240
  };
1158
1241
  var HorizontalRuleNode_default = HorizontalRuleNode;
1159
1242
 
1160
1243
  // src/components/pageRenderingEngine/nodes/WidgetNode.tsx
1161
- import React22 from "react";
1162
- import { Fragment as Fragment4, jsx as jsx30 } from "react/jsx-runtime";
1244
+ import React23 from "react";
1245
+ import { Fragment as Fragment4, jsx as jsx31 } from "react/jsx-runtime";
1163
1246
  var WidgetNode = (props) => {
1164
1247
  const getWidgetParameters = () => {
1165
1248
  const widgetInputParameters = {
@@ -1223,7 +1306,7 @@ var WidgetNode = (props) => {
1223
1306
  };
1224
1307
  const widgetCode = props.node?.widgetCode;
1225
1308
  if (!widgetCode) {
1226
- return /* @__PURE__ */ jsx30(Fragment4, { children: "Invalid widget" });
1309
+ return /* @__PURE__ */ jsx31(Fragment4, { children: "Invalid widget" });
1227
1310
  }
1228
1311
  const widgetParams = getWidgetParameters();
1229
1312
  const WidgetRenderer = props.widgetRenderer;
@@ -1232,7 +1315,7 @@ var WidgetNode = (props) => {
1232
1315
  }
1233
1316
  return (
1234
1317
  // eslint-disable-next-line react-hooks/static-components
1235
- /* @__PURE__ */ jsx30(React22.Fragment, { children: /* @__PURE__ */ jsx30(
1318
+ /* @__PURE__ */ jsx31(React23.Fragment, { children: /* @__PURE__ */ jsx31(
1236
1319
  WidgetRenderer,
1237
1320
  {
1238
1321
  params: widgetParams,
@@ -1250,11 +1333,11 @@ var WidgetNode_default = WidgetNode;
1250
1333
 
1251
1334
  // src/components/pageRenderingEngine/nodes/DivContainer.tsx
1252
1335
  import dynamic14 from "next/dynamic";
1253
- import React23 from "react";
1336
+ import React24 from "react";
1254
1337
 
1255
1338
  // src/components/pageRenderingEngine/nodes/EmbedNode.tsx
1256
1339
  import dynamic11 from "next/dynamic";
1257
- import { jsx as jsx31 } from "react/jsx-runtime";
1340
+ import { jsx as jsx32 } from "react/jsx-runtime";
1258
1341
  var IframeClient = dynamic11(() => import("./IframeClient-WF2KLXZB.mjs"), {
1259
1342
  ssr: false
1260
1343
  });
@@ -1267,7 +1350,7 @@ var EmbedNode = (props) => {
1267
1350
  } else {
1268
1351
  src = props.node.embedSrc;
1269
1352
  }
1270
- return /* @__PURE__ */ jsx31("div", { className: "aspect-video", children: src && /* @__PURE__ */ jsx31(IframeClient, { src }) });
1353
+ return /* @__PURE__ */ jsx32("div", { className: "aspect-video", children: src && /* @__PURE__ */ jsx32(IframeClient, { src }) });
1271
1354
  };
1272
1355
  var EmbedNode_default = EmbedNode;
1273
1356
 
@@ -1503,10 +1586,10 @@ var PathUtility = class {
1503
1586
  var PathUtility_default = new PathUtility();
1504
1587
 
1505
1588
  // src/components/NoDataFound.tsx
1506
- import { jsx as jsx32, jsxs as jsxs11 } from "react/jsx-runtime";
1589
+ import { jsx as jsx33, jsxs as jsxs12 } from "react/jsx-runtime";
1507
1590
  var NoDataFound = () => {
1508
- return /* @__PURE__ */ jsxs11("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center bg-neutral-weak", children: [
1509
- /* @__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(
1591
+ return /* @__PURE__ */ jsxs12("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center bg-neutral-weak", children: [
1592
+ /* @__PURE__ */ jsx33("div", { className: "mb-5", children: /* @__PURE__ */ jsx33("div", { className: "mx-auto w-20 h-20 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ jsx33(
1510
1593
  "svg",
1511
1594
  {
1512
1595
  className: "w-10 h-10",
@@ -1514,7 +1597,7 @@ var NoDataFound = () => {
1514
1597
  stroke: "currentColor",
1515
1598
  viewBox: "0 0 24 24",
1516
1599
  xmlns: "http://www.w3.org/2000/svg",
1517
- children: /* @__PURE__ */ jsx32(
1600
+ children: /* @__PURE__ */ jsx33(
1518
1601
  "path",
1519
1602
  {
1520
1603
  strokeLinecap: "round",
@@ -1525,17 +1608,17 @@ var NoDataFound = () => {
1525
1608
  )
1526
1609
  }
1527
1610
  ) }) }),
1528
- /* @__PURE__ */ jsx32("h3", { className: "text-lg font-medium mb-2", children: "No data available" }),
1529
- /* @__PURE__ */ jsx32("p", { className: " max-w-sm mb-0", children: "No records found. Data may be empty or not available at the moment." })
1611
+ /* @__PURE__ */ jsx33("h3", { className: "text-lg font-medium mb-2", children: "No data available" }),
1612
+ /* @__PURE__ */ jsx33("p", { className: " max-w-sm mb-0", children: "No records found. Data may be empty or not available at the moment." })
1530
1613
  ] });
1531
1614
  };
1532
1615
  var NoDataFound_default = NoDataFound;
1533
1616
 
1534
1617
  // src/components/NoFilterResultsFound.tsx
1535
- import { jsx as jsx33, jsxs as jsxs12 } from "react/jsx-runtime";
1618
+ import { jsx as jsx34, jsxs as jsxs13 } from "react/jsx-runtime";
1536
1619
  var NoFilterResultsFound = () => {
1537
- return /* @__PURE__ */ jsxs12("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center bg-neutral-weak", children: [
1538
- /* @__PURE__ */ jsx33("div", { className: "mb-5", children: /* @__PURE__ */ jsx33("div", { className: "mx-auto w-20 h-20 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ jsx33(
1620
+ return /* @__PURE__ */ jsxs13("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center bg-neutral-weak", children: [
1621
+ /* @__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(
1539
1622
  "svg",
1540
1623
  {
1541
1624
  className: "w-10 h-10",
@@ -1543,7 +1626,7 @@ var NoFilterResultsFound = () => {
1543
1626
  stroke: "currentColor",
1544
1627
  viewBox: "0 0 24 24",
1545
1628
  xmlns: "http://www.w3.org/2000/svg",
1546
- children: /* @__PURE__ */ jsx33(
1629
+ children: /* @__PURE__ */ jsx34(
1547
1630
  "path",
1548
1631
  {
1549
1632
  strokeLinecap: "round",
@@ -1554,15 +1637,15 @@ var NoFilterResultsFound = () => {
1554
1637
  )
1555
1638
  }
1556
1639
  ) }) }),
1557
- /* @__PURE__ */ jsx33("h3", { className: "text-lg font-medium mb-2", children: "No Results Found" }),
1558
- /* @__PURE__ */ jsx33("p", { className: "max-w-sm mb-0", children: "No data matches the current search query and configured parameters. Try adjusting your search criteria or filters to view available results." })
1640
+ /* @__PURE__ */ jsx34("h3", { className: "text-lg font-medium mb-2", children: "No Results Found" }),
1641
+ /* @__PURE__ */ jsx34("p", { className: "max-w-sm mb-0", children: "No data matches the current search query and configured parameters. Try adjusting your search criteria or filters to view available results." })
1559
1642
  ] });
1560
1643
  };
1561
1644
  var NoFilterResultsFound_default = NoFilterResultsFound;
1562
1645
 
1563
1646
  // src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
1564
1647
  import dynamic12 from "next/dynamic";
1565
- import { Fragment as Fragment5, jsx as jsx34, jsxs as jsxs13 } from "react/jsx-runtime";
1648
+ import { Fragment as Fragment5, jsx as jsx35, jsxs as jsxs14 } from "react/jsx-runtime";
1566
1649
  var HlsPlayer3 = dynamic12(() => import("./HlsPlayer-AUZ42WTT.mjs"), { ssr: false });
1567
1650
  var deviceToMediaQuery = (device) => {
1568
1651
  switch (device) {
@@ -1718,8 +1801,8 @@ var ImageGalleryNode = (props) => {
1718
1801
  right: "justify-end"
1719
1802
  };
1720
1803
  const formatClasses = FormatClass[props.node.format || ""] || "";
1721
- return /* @__PURE__ */ jsxs13(Fragment5, { children: [
1722
- hlsSources.length > 0 && /* @__PURE__ */ jsx34(Fragment5, { children: /* @__PURE__ */ jsx34(
1804
+ return /* @__PURE__ */ jsxs14(Fragment5, { children: [
1805
+ hlsSources.length > 0 && /* @__PURE__ */ jsx35(Fragment5, { children: /* @__PURE__ */ jsx35(
1723
1806
  HlsPlayer3,
1724
1807
  {
1725
1808
  sources: hlsSources,
@@ -1734,7 +1817,7 @@ var ImageGalleryNode = (props) => {
1734
1817
  styles: hlsStyles
1735
1818
  }
1736
1819
  ) }),
1737
- (staticFallback || staticSources.length > 0) && /* @__PURE__ */ jsx34(Fragment5, { children: staticFallback ? /* @__PURE__ */ jsxs13("picture", { children: [
1820
+ (staticFallback || staticSources.length > 0) && /* @__PURE__ */ jsx35(Fragment5, { children: staticFallback ? /* @__PURE__ */ jsxs14("picture", { children: [
1738
1821
  DEVICE_ORDER.map((deviceKey) => {
1739
1822
  const match = staticSources.find(
1740
1823
  (img) => img.device === deviceKey
@@ -1750,7 +1833,7 @@ var ImageGalleryNode = (props) => {
1750
1833
  if (!srcUrl) {
1751
1834
  return null;
1752
1835
  }
1753
- return /* @__PURE__ */ jsx34(
1836
+ return /* @__PURE__ */ jsx35(
1754
1837
  "source",
1755
1838
  {
1756
1839
  media: deviceToMediaQuery(match.device),
@@ -1775,7 +1858,7 @@ var ImageGalleryNode = (props) => {
1775
1858
  if (img.borderRadius) {
1776
1859
  styles.borderRadius = img.borderRadius;
1777
1860
  }
1778
- return /* @__PURE__ */ jsx34(
1861
+ return /* @__PURE__ */ jsx35(
1779
1862
  "img",
1780
1863
  {
1781
1864
  loading: "lazy",
@@ -1790,7 +1873,7 @@ var ImageGalleryNode = (props) => {
1790
1873
  })()
1791
1874
  ] }) : (
1792
1875
  /* Case 2: Only device-specific images exist */
1793
- /* @__PURE__ */ jsx34(Fragment5, { children: staticSources.map((img, index) => {
1876
+ /* @__PURE__ */ jsx35(Fragment5, { children: staticSources.map((img, index) => {
1794
1877
  const resolved = resolveImage(img);
1795
1878
  const imageUrl = resolved?.imageUrl;
1796
1879
  if (!imageUrl) {
@@ -1817,7 +1900,7 @@ var ImageGalleryNode = (props) => {
1817
1900
  default:
1818
1901
  display = "block";
1819
1902
  }
1820
- return /* @__PURE__ */ jsx34(
1903
+ return /* @__PURE__ */ jsx35(
1821
1904
  "img",
1822
1905
  {
1823
1906
  loading: "lazy",
@@ -1957,7 +2040,7 @@ var shouldRenderContainer = (node, dataItem, session) => {
1957
2040
  };
1958
2041
 
1959
2042
  // src/components/pageRenderingEngine/nodes/DocumentNode.tsx
1960
- import { Fragment as Fragment6, jsx as jsx35, jsxs as jsxs14 } from "react/jsx-runtime";
2043
+ import { Fragment as Fragment6, jsx as jsx36, jsxs as jsxs15 } from "react/jsx-runtime";
1961
2044
  var getNestedValue5 = (obj, path) => {
1962
2045
  if (!obj || !path) return void 0;
1963
2046
  return path.split(".").reduce((current, key) => {
@@ -1988,21 +2071,21 @@ var parseDocuments = (value) => {
1988
2071
  }
1989
2072
  return [];
1990
2073
  };
1991
- var PdfIcon = () => /* @__PURE__ */ jsxs14(
2074
+ var PdfIcon = () => /* @__PURE__ */ jsxs15(
1992
2075
  "svg",
1993
2076
  {
1994
2077
  xmlns: "http://www.w3.org/2000/svg",
1995
2078
  viewBox: "0 0 48 48",
1996
2079
  className: "w-10 h-10",
1997
2080
  children: [
1998
- /* @__PURE__ */ jsx35(
2081
+ /* @__PURE__ */ jsx36(
1999
2082
  "path",
2000
2083
  {
2001
2084
  fill: "#e53935",
2002
2085
  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"
2003
2086
  }
2004
2087
  ),
2005
- /* @__PURE__ */ jsx35(
2088
+ /* @__PURE__ */ jsx36(
2006
2089
  "path",
2007
2090
  {
2008
2091
  fill: "#fff",
@@ -2012,55 +2095,55 @@ var PdfIcon = () => /* @__PURE__ */ jsxs14(
2012
2095
  ]
2013
2096
  }
2014
2097
  );
2015
- var ExcelIcon = () => /* @__PURE__ */ jsxs14(
2098
+ var ExcelIcon = () => /* @__PURE__ */ jsxs15(
2016
2099
  "svg",
2017
2100
  {
2018
2101
  xmlns: "http://www.w3.org/2000/svg",
2019
2102
  viewBox: "0 0 48 48",
2020
2103
  className: "w-10 h-10",
2021
2104
  children: [
2022
- /* @__PURE__ */ jsx35(
2105
+ /* @__PURE__ */ jsx36(
2023
2106
  "path",
2024
2107
  {
2025
2108
  fill: "#169154",
2026
2109
  d: "M29,6H15.744C14.781,6,14,6.781,14,7.744v7.259h15V6z"
2027
2110
  }
2028
2111
  ),
2029
- /* @__PURE__ */ jsx35(
2112
+ /* @__PURE__ */ jsx36(
2030
2113
  "path",
2031
2114
  {
2032
2115
  fill: "#18482a",
2033
2116
  d: "M14,33.054v7.202C14,41.219,14.781,42,15.743,42H29v-8.946H14z"
2034
2117
  }
2035
2118
  ),
2036
- /* @__PURE__ */ jsx35("path", { fill: "#0c8045", d: "M14 15.003H29V24.005000000000003H14z" }),
2037
- /* @__PURE__ */ jsx35("path", { fill: "#17472a", d: "M14 24.005H29V33.055H14z" }),
2038
- /* @__PURE__ */ jsxs14("g", { children: [
2039
- /* @__PURE__ */ jsx35(
2119
+ /* @__PURE__ */ jsx36("path", { fill: "#0c8045", d: "M14 15.003H29V24.005000000000003H14z" }),
2120
+ /* @__PURE__ */ jsx36("path", { fill: "#17472a", d: "M14 24.005H29V33.055H14z" }),
2121
+ /* @__PURE__ */ jsxs15("g", { children: [
2122
+ /* @__PURE__ */ jsx36(
2040
2123
  "path",
2041
2124
  {
2042
2125
  fill: "#29c27f",
2043
2126
  d: "M42.256,6H29v9.003h15V7.744C44,6.781,43.219,6,42.256,6z"
2044
2127
  }
2045
2128
  ),
2046
- /* @__PURE__ */ jsx35(
2129
+ /* @__PURE__ */ jsx36(
2047
2130
  "path",
2048
2131
  {
2049
2132
  fill: "#27663f",
2050
2133
  d: "M29,33.054V42h13.257C43.219,42,44,41.219,44,40.257v-7.202H29z"
2051
2134
  }
2052
2135
  ),
2053
- /* @__PURE__ */ jsx35("path", { fill: "#19ac65", d: "M29 15.003H44V24.005000000000003H29z" }),
2054
- /* @__PURE__ */ jsx35("path", { fill: "#129652", d: "M29 24.005H44V33.055H29z" })
2136
+ /* @__PURE__ */ jsx36("path", { fill: "#19ac65", d: "M29 15.003H44V24.005000000000003H29z" }),
2137
+ /* @__PURE__ */ jsx36("path", { fill: "#129652", d: "M29 24.005H44V33.055H29z" })
2055
2138
  ] }),
2056
- /* @__PURE__ */ jsx35(
2139
+ /* @__PURE__ */ jsx36(
2057
2140
  "path",
2058
2141
  {
2059
2142
  fill: "#0c7238",
2060
2143
  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"
2061
2144
  }
2062
2145
  ),
2063
- /* @__PURE__ */ jsx35(
2146
+ /* @__PURE__ */ jsx36(
2064
2147
  "path",
2065
2148
  {
2066
2149
  fill: "#fff",
@@ -2070,7 +2153,7 @@ var ExcelIcon = () => /* @__PURE__ */ jsxs14(
2070
2153
  ]
2071
2154
  }
2072
2155
  );
2073
- var WordIcon = () => /* @__PURE__ */ jsxs14(
2156
+ var WordIcon = () => /* @__PURE__ */ jsxs15(
2074
2157
  "svg",
2075
2158
  {
2076
2159
  xmlns: "http://www.w3.org/2000/svg",
@@ -2078,14 +2161,14 @@ var WordIcon = () => /* @__PURE__ */ jsxs14(
2078
2161
  className: "w-10 h-10",
2079
2162
  baseProfile: "basic",
2080
2163
  children: [
2081
- /* @__PURE__ */ jsx35(
2164
+ /* @__PURE__ */ jsx36(
2082
2165
  "path",
2083
2166
  {
2084
2167
  fill: "#283593",
2085
2168
  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"
2086
2169
  }
2087
2170
  ),
2088
- /* @__PURE__ */ jsxs14(
2171
+ /* @__PURE__ */ jsxs15(
2089
2172
  "linearGradient",
2090
2173
  {
2091
2174
  id: "qh2LT5tehRDFkLLfb-odWa",
@@ -2096,19 +2179,19 @@ var WordIcon = () => /* @__PURE__ */ jsxs14(
2096
2179
  gradientTransform: "translate(0 -339.89)",
2097
2180
  gradientUnits: "userSpaceOnUse",
2098
2181
  children: [
2099
- /* @__PURE__ */ jsx35("stop", { offset: "0", "stop-color": "#66c0ff" }),
2100
- /* @__PURE__ */ jsx35("stop", { offset: ".26", "stop-color": "#0094f0" })
2182
+ /* @__PURE__ */ jsx36("stop", { offset: "0", "stop-color": "#66c0ff" }),
2183
+ /* @__PURE__ */ jsx36("stop", { offset: ".26", "stop-color": "#0094f0" })
2101
2184
  ]
2102
2185
  }
2103
2186
  ),
2104
- /* @__PURE__ */ jsx35(
2187
+ /* @__PURE__ */ jsx36(
2105
2188
  "path",
2106
2189
  {
2107
2190
  fill: "url(#qh2LT5tehRDFkLLfb-odWa)",
2108
2191
  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"
2109
2192
  }
2110
2193
  ),
2111
- /* @__PURE__ */ jsx35(
2194
+ /* @__PURE__ */ jsx36(
2112
2195
  "path",
2113
2196
  {
2114
2197
  fill: "#1e88e5",
@@ -2116,21 +2199,21 @@ var WordIcon = () => /* @__PURE__ */ jsxs14(
2116
2199
  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"
2117
2200
  }
2118
2201
  ),
2119
- /* @__PURE__ */ jsx35(
2202
+ /* @__PURE__ */ jsx36(
2120
2203
  "path",
2121
2204
  {
2122
2205
  fill: "#00e5ff",
2123
2206
  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"
2124
2207
  }
2125
2208
  ),
2126
- /* @__PURE__ */ jsx35(
2209
+ /* @__PURE__ */ jsx36(
2127
2210
  "path",
2128
2211
  {
2129
2212
  fill: "#1565c0",
2130
2213
  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"
2131
2214
  }
2132
2215
  ),
2133
- /* @__PURE__ */ jsx35(
2216
+ /* @__PURE__ */ jsx36(
2134
2217
  "path",
2135
2218
  {
2136
2219
  fill: "#fff",
@@ -2140,42 +2223,42 @@ var WordIcon = () => /* @__PURE__ */ jsxs14(
2140
2223
  ]
2141
2224
  }
2142
2225
  );
2143
- var StandardIcon = () => /* @__PURE__ */ jsxs14(
2226
+ var StandardIcon = () => /* @__PURE__ */ jsxs15(
2144
2227
  "svg",
2145
2228
  {
2146
2229
  xmlns: "http://www.w3.org/2000/svg",
2147
2230
  viewBox: "0 0 48 48",
2148
2231
  className: "w-10 h-10",
2149
2232
  children: [
2150
- /* @__PURE__ */ jsx35("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
2151
- /* @__PURE__ */ jsx35("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" })
2233
+ /* @__PURE__ */ jsx36("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
2234
+ /* @__PURE__ */ jsx36("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" })
2152
2235
  ]
2153
2236
  }
2154
2237
  );
2155
- var PowerPointIcon = () => /* @__PURE__ */ jsxs14(
2238
+ var PowerPointIcon = () => /* @__PURE__ */ jsxs15(
2156
2239
  "svg",
2157
2240
  {
2158
2241
  xmlns: "http://www.w3.org/2000/svg",
2159
2242
  viewBox: "0 0 48 48",
2160
2243
  className: "w-10 h-10",
2161
2244
  children: [
2162
- /* @__PURE__ */ jsx35(
2245
+ /* @__PURE__ */ jsx36(
2163
2246
  "path",
2164
2247
  {
2165
2248
  fill: "#dc4c2c",
2166
2249
  d: "M8,24c0,9.941,8.059,18,18,18s18-8.059,18-18H26H8z"
2167
2250
  }
2168
2251
  ),
2169
- /* @__PURE__ */ jsx35("path", { fill: "#f7a278", d: "M26,6v18h18C44,14.059,35.941,6,26,6z" }),
2170
- /* @__PURE__ */ jsx35("path", { fill: "#c06346", d: "M26,6C16.059,6,8,14.059,8,24h18V6z" }),
2171
- /* @__PURE__ */ jsx35(
2252
+ /* @__PURE__ */ jsx36("path", { fill: "#f7a278", d: "M26,6v18h18C44,14.059,35.941,6,26,6z" }),
2253
+ /* @__PURE__ */ jsx36("path", { fill: "#c06346", d: "M26,6C16.059,6,8,14.059,8,24h18V6z" }),
2254
+ /* @__PURE__ */ jsx36(
2172
2255
  "path",
2173
2256
  {
2174
2257
  fill: "#9b341f",
2175
2258
  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"
2176
2259
  }
2177
2260
  ),
2178
- /* @__PURE__ */ jsx35(
2261
+ /* @__PURE__ */ jsx36(
2179
2262
  "path",
2180
2263
  {
2181
2264
  fill: "#fff",
@@ -2185,16 +2268,16 @@ var PowerPointIcon = () => /* @__PURE__ */ jsxs14(
2185
2268
  ]
2186
2269
  }
2187
2270
  );
2188
- var TextIcon = () => /* @__PURE__ */ jsxs14(
2271
+ var TextIcon = () => /* @__PURE__ */ jsxs15(
2189
2272
  "svg",
2190
2273
  {
2191
2274
  xmlns: "http://www.w3.org/2000/svg",
2192
2275
  viewBox: "0 0 48 48",
2193
2276
  className: "w-10 h-10",
2194
2277
  children: [
2195
- /* @__PURE__ */ jsx35("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
2196
- /* @__PURE__ */ jsx35("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" }),
2197
- /* @__PURE__ */ jsx35(
2278
+ /* @__PURE__ */ jsx36("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
2279
+ /* @__PURE__ */ jsx36("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" }),
2280
+ /* @__PURE__ */ jsx36(
2198
2281
  "path",
2199
2282
  {
2200
2283
  fill: "#1976D2",
@@ -2204,7 +2287,7 @@ var TextIcon = () => /* @__PURE__ */ jsxs14(
2204
2287
  ]
2205
2288
  }
2206
2289
  );
2207
- var ArchiveIcon = () => /* @__PURE__ */ jsxs14(
2290
+ var ArchiveIcon = () => /* @__PURE__ */ jsxs15(
2208
2291
  "svg",
2209
2292
  {
2210
2293
  xmlns: "http://www.w3.org/2000/svg",
@@ -2214,14 +2297,14 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs14(
2214
2297
  version: "1.0",
2215
2298
  className: "w-10 h-10",
2216
2299
  children: [
2217
- /* @__PURE__ */ jsx35("defs", { children: /* @__PURE__ */ jsx35("clipPath", { id: "273d29c8a6", children: /* @__PURE__ */ jsx35(
2300
+ /* @__PURE__ */ jsx36("defs", { children: /* @__PURE__ */ jsx36("clipPath", { id: "273d29c8a6", children: /* @__PURE__ */ jsx36(
2218
2301
  "path",
2219
2302
  {
2220
2303
  d: "M 8.90625 0 L 65.90625 0 L 65.90625 75 L 8.90625 75 Z M 8.90625 0 ",
2221
2304
  "clip-rule": "nonzero"
2222
2305
  }
2223
2306
  ) }) }),
2224
- /* @__PURE__ */ jsx35("g", { "clip-path": "url(#273d29c8a6)", children: /* @__PURE__ */ jsx35(
2307
+ /* @__PURE__ */ jsx36("g", { "clip-path": "url(#273d29c8a6)", children: /* @__PURE__ */ jsx36(
2225
2308
  "path",
2226
2309
  {
2227
2310
  fill: "#ff9100",
@@ -2230,7 +2313,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs14(
2230
2313
  "fill-rule": "nonzero"
2231
2314
  }
2232
2315
  ) }),
2233
- /* @__PURE__ */ jsx35(
2316
+ /* @__PURE__ */ jsx36(
2234
2317
  "path",
2235
2318
  {
2236
2319
  fill: "#fbe9e7",
@@ -2239,7 +2322,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs14(
2239
2322
  "fill-rule": "nonzero"
2240
2323
  }
2241
2324
  ),
2242
- /* @__PURE__ */ jsx35(
2325
+ /* @__PURE__ */ jsx36(
2243
2326
  "path",
2244
2327
  {
2245
2328
  fill: "#ffe0b2",
@@ -2248,7 +2331,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs14(
2248
2331
  "fill-rule": "nonzero"
2249
2332
  }
2250
2333
  ),
2251
- /* @__PURE__ */ jsx35(
2334
+ /* @__PURE__ */ jsx36(
2252
2335
  "path",
2253
2336
  {
2254
2337
  fill: "#ffe0b2",
@@ -2257,7 +2340,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs14(
2257
2340
  "fill-rule": "nonzero"
2258
2341
  }
2259
2342
  ),
2260
- /* @__PURE__ */ jsx35(
2343
+ /* @__PURE__ */ jsx36(
2261
2344
  "path",
2262
2345
  {
2263
2346
  fill: "#ffe0b2",
@@ -2307,8 +2390,8 @@ var DocumentNode = (props) => {
2307
2390
  documents = parseDocuments(props.node.documentAsset);
2308
2391
  }
2309
2392
  if (documents.length === 0) {
2310
- return /* @__PURE__ */ jsx35(Fragment6, { children: /* @__PURE__ */ jsxs14("div", { className: "py-4 px-2 bg-neutral-weak border rounded text-center flex flex-col gap-2", children: [
2311
- /* @__PURE__ */ jsx35("div", { className: "mx-auto w-10 h-10 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ jsx35(
2393
+ return /* @__PURE__ */ jsx36(Fragment6, { children: /* @__PURE__ */ jsxs15("div", { className: "py-4 px-2 bg-neutral-weak border rounded text-center flex flex-col gap-2", children: [
2394
+ /* @__PURE__ */ jsx36("div", { className: "mx-auto w-10 h-10 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ jsx36(
2312
2395
  "svg",
2313
2396
  {
2314
2397
  className: "w-5 h-5",
@@ -2316,7 +2399,7 @@ var DocumentNode = (props) => {
2316
2399
  stroke: "currentColor",
2317
2400
  viewBox: "0 0 24 24",
2318
2401
  xmlns: "http://www.w3.org/2000/svg",
2319
- children: /* @__PURE__ */ jsx35(
2402
+ children: /* @__PURE__ */ jsx36(
2320
2403
  "path",
2321
2404
  {
2322
2405
  strokeLinecap: "round",
@@ -2327,11 +2410,11 @@ var DocumentNode = (props) => {
2327
2410
  )
2328
2411
  }
2329
2412
  ) }),
2330
- /* @__PURE__ */ jsx35("div", { className: "text-sm font-medium", children: "No documents found" }),
2331
- /* @__PURE__ */ jsx35("div", { className: "text-xs", children: "No records found. Data may be empty or not available at the moment." })
2413
+ /* @__PURE__ */ jsx36("div", { className: "text-sm font-medium", children: "No documents found" }),
2414
+ /* @__PURE__ */ jsx36("div", { className: "text-xs", children: "No records found. Data may be empty or not available at the moment." })
2332
2415
  ] }) });
2333
2416
  }
2334
- return /* @__PURE__ */ jsx35("div", { className: "", children: documents.map((doc, index) => {
2417
+ return /* @__PURE__ */ jsx36("div", { className: "", children: documents.map((doc, index) => {
2335
2418
  const documentUrl = AssetUtility_default.resolveUrl(
2336
2419
  props.assetBaseUrl,
2337
2420
  doc.assetUrl
@@ -2349,16 +2432,16 @@ var DocumentNode = (props) => {
2349
2432
  }
2350
2433
  }
2351
2434
  const { Icon, extLabel } = getFileDetails(documentUrl);
2352
- return /* @__PURE__ */ jsxs14(
2435
+ return /* @__PURE__ */ jsxs15(
2353
2436
  "div",
2354
2437
  {
2355
2438
  className: `flex items-center justify-between py-4 bg-default gap-4 ${index !== 0 ? "border-t" : ""}`,
2356
2439
  children: [
2357
- /* @__PURE__ */ jsxs14("div", { className: "flex items-center space-x-4 min-w-0", children: [
2358
- /* @__PURE__ */ jsx35("div", { className: "flex items-center justify-center p-2 rounded bg-neutral-soft shrink-0", children: /* @__PURE__ */ jsx35(Icon, {}) }),
2359
- /* @__PURE__ */ jsx35("div", { className: "flex items-baseline space-x-2 min-w-0", children: /* @__PURE__ */ jsx35("h4", { className: "text-base font-semibold truncate", title: documentTitle, children: documentTitle }) })
2440
+ /* @__PURE__ */ jsxs15("div", { className: "flex items-center space-x-4 min-w-0", children: [
2441
+ /* @__PURE__ */ jsx36("div", { className: "flex items-center justify-center p-2 rounded bg-neutral-soft shrink-0", children: /* @__PURE__ */ jsx36(Icon, {}) }),
2442
+ /* @__PURE__ */ jsx36("div", { className: "flex items-baseline space-x-2 min-w-0", children: /* @__PURE__ */ jsx36("h4", { className: "text-base font-semibold truncate", title: documentTitle, children: documentTitle }) })
2360
2443
  ] }),
2361
- /* @__PURE__ */ jsxs14(
2444
+ /* @__PURE__ */ jsxs15(
2362
2445
  "a",
2363
2446
  {
2364
2447
  href: documentUrl,
@@ -2366,7 +2449,7 @@ var DocumentNode = (props) => {
2366
2449
  rel: "noopener noreferrer",
2367
2450
  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 shrink-0",
2368
2451
  children: [
2369
- /* @__PURE__ */ jsxs14(
2452
+ /* @__PURE__ */ jsxs15(
2370
2453
  "svg",
2371
2454
  {
2372
2455
  className: "w-4 h-4 mr-2",
@@ -2374,7 +2457,7 @@ var DocumentNode = (props) => {
2374
2457
  stroke: "currentColor",
2375
2458
  viewBox: "0 0 24 24",
2376
2459
  children: [
2377
- /* @__PURE__ */ jsx35(
2460
+ /* @__PURE__ */ jsx36(
2378
2461
  "path",
2379
2462
  {
2380
2463
  strokeLinecap: "round",
@@ -2383,7 +2466,7 @@ var DocumentNode = (props) => {
2383
2466
  d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"
2384
2467
  }
2385
2468
  ),
2386
- /* @__PURE__ */ jsx35(
2469
+ /* @__PURE__ */ jsx36(
2387
2470
  "path",
2388
2471
  {
2389
2472
  strokeLinecap: "round",
@@ -2409,13 +2492,13 @@ var DocumentNode_default = DocumentNode;
2409
2492
 
2410
2493
  // src/components/pageRenderingEngine/nodes/GoogleMapNode.tsx
2411
2494
  import dynamic13 from "next/dynamic";
2412
- import { jsx as jsx36 } from "react/jsx-runtime";
2495
+ import { jsx as jsx37 } from "react/jsx-runtime";
2413
2496
  var IframeClient2 = dynamic13(() => import("./IframeClient-WF2KLXZB.mjs"), {
2414
2497
  ssr: false
2415
2498
  });
2416
2499
  var GoogleMapNode = (props) => {
2417
2500
  let src = props.node.embedUrl;
2418
- return /* @__PURE__ */ jsx36("div", { className: "google-map-container", children: src && /* @__PURE__ */ jsx36(
2501
+ return /* @__PURE__ */ jsx37("div", { className: "google-map-container", children: src && /* @__PURE__ */ jsx37(
2419
2502
  IframeClient2,
2420
2503
  {
2421
2504
  src,
@@ -2427,7 +2510,7 @@ var GoogleMapNode = (props) => {
2427
2510
  var GoogleMapNode_default = GoogleMapNode;
2428
2511
 
2429
2512
  // src/components/pageRenderingEngine/nodes/DivContainer.tsx
2430
- import { jsx as jsx37, jsxs as jsxs15 } from "react/jsx-runtime";
2513
+ import { jsx as jsx38, jsxs as jsxs16 } from "react/jsx-runtime";
2431
2514
  var Pagination = dynamic14(() => import("./Pagination-6R4XZLF6.mjs"), { ssr: true });
2432
2515
  var DataBindingControls = dynamic14(() => import("./DataBindingControls-VSLL4WV2.mjs"), {
2433
2516
  ssr: true
@@ -2614,7 +2697,8 @@ var DivContainer = async (props) => {
2614
2697
  datafield: DatafieldNode_default,
2615
2698
  "svg-icon": SVGIconNode_default,
2616
2699
  document: DocumentNode_default,
2617
- "google-map": GoogleMapNode_default
2700
+ "google-map": GoogleMapNode_default,
2701
+ counter: CounterNode_default
2618
2702
  };
2619
2703
  const styles = props.node.cssProperties;
2620
2704
  const mobileStyles = props.node.mobileCssProperties;
@@ -2712,7 +2796,7 @@ var DivContainer = async (props) => {
2712
2796
  }
2713
2797
  const SelectedNode = NodeTypes2[node.type];
2714
2798
  if (!SelectedNode) return null;
2715
- return /* @__PURE__ */ jsx37(React23.Fragment, { children: /* @__PURE__ */ jsx37(
2799
+ return /* @__PURE__ */ jsx38(React24.Fragment, { children: /* @__PURE__ */ jsx38(
2716
2800
  SelectedNode,
2717
2801
  {
2718
2802
  node,
@@ -2804,7 +2888,7 @@ var DivContainer = async (props) => {
2804
2888
  item,
2805
2889
  idx,
2806
2890
  props.href ? void 0 : item?.links?.view
2807
- )?.map((child, i) => /* @__PURE__ */ jsx37(React23.Fragment, { children: child }, i)) : renderChildren(props.node.children, props, item, idx)
2891
+ )?.map((child, i) => /* @__PURE__ */ jsx38(React24.Fragment, { children: child }, i)) : renderChildren(props.node.children, props, item, idx)
2808
2892
  );
2809
2893
  }
2810
2894
  return props.node.children.flatMap((node, childIndex) => {
@@ -2922,17 +3006,17 @@ var DivContainer = async (props) => {
2922
3006
  dataBindingProperties?.showFacets || dataBindingProperties?.showSortOptions || dataBindingProperties?.showSearchBar
2923
3007
  );
2924
3008
  const WrapperComponent = Wrapper;
2925
- const renderedContainer = /* @__PURE__ */ jsx37(
3009
+ const renderedContainer = /* @__PURE__ */ jsx38(
2926
3010
  WrapperComponent,
2927
3011
  {
2928
3012
  id: guid,
2929
3013
  style: combinedStyles,
2930
3014
  className: classNames || void 0,
2931
3015
  ...wrapperProps,
2932
- children: shouldShowNoDataMessage ? hasActiveFilter ? /* @__PURE__ */ jsx37(NoFilterResultsFound_default, {}) : /* @__PURE__ */ jsx37(NoDataFound_default, {}) : renderContainerChildren()
3016
+ children: shouldShowNoDataMessage ? hasActiveFilter ? /* @__PURE__ */ jsx38(NoFilterResultsFound_default, {}) : /* @__PURE__ */ jsx38(NoDataFound_default, {}) : renderContainerChildren()
2933
3017
  }
2934
3018
  );
2935
- const paginationControl = dataBindingProperties?.enablePagination ? /* @__PURE__ */ jsx37(
3019
+ const paginationControl = dataBindingProperties?.enablePagination ? /* @__PURE__ */ jsx38(
2936
3020
  Pagination,
2937
3021
  {
2938
3022
  path: props.path,
@@ -2940,15 +3024,15 @@ var DivContainer = async (props) => {
2940
3024
  dataset: response
2941
3025
  }
2942
3026
  ) : null;
2943
- return /* @__PURE__ */ jsxs15(React23.Fragment, { children: [
2944
- /* @__PURE__ */ jsx37(
3027
+ return /* @__PURE__ */ jsxs16(React24.Fragment, { children: [
3028
+ /* @__PURE__ */ jsx38(
2945
3029
  "style",
2946
3030
  {
2947
3031
  dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS }
2948
3032
  }
2949
3033
  ),
2950
- showDataBindingControls ? /* @__PURE__ */ jsxs15(React23.Fragment, { children: [
2951
- /* @__PURE__ */ jsx37(
3034
+ showDataBindingControls ? /* @__PURE__ */ jsxs16(React24.Fragment, { children: [
3035
+ /* @__PURE__ */ jsx38(
2952
3036
  DataBindingControls,
2953
3037
  {
2954
3038
  mode: "toolbar",
@@ -2961,16 +3045,16 @@ var DivContainer = async (props) => {
2961
3045
  showSearchBar: dataBindingProperties?.showSearchBar
2962
3046
  }
2963
3047
  ),
2964
- /* @__PURE__ */ jsxs15(
3048
+ /* @__PURE__ */ jsxs16(
2965
3049
  "div",
2966
3050
  {
2967
3051
  className: dataBindingProperties?.showFacets ? "grid items-start gap-6 lg:grid-cols-[minmax(0,1fr)_18rem]" : void 0,
2968
3052
  children: [
2969
- /* @__PURE__ */ jsxs15("div", { className: "min-w-0", children: [
3053
+ /* @__PURE__ */ jsxs16("div", { className: "min-w-0", children: [
2970
3054
  renderedContainer,
2971
3055
  paginationControl
2972
3056
  ] }),
2973
- dataBindingProperties?.showFacets && /* @__PURE__ */ jsx37("aside", { className: "hidden lg:block", children: /* @__PURE__ */ jsx37(
3057
+ dataBindingProperties?.showFacets && /* @__PURE__ */ jsx38("aside", { className: "hidden lg:block", children: /* @__PURE__ */ jsx38(
2974
3058
  DataBindingControls,
2975
3059
  {
2976
3060
  mode: "facets",
@@ -2983,16 +3067,16 @@ var DivContainer = async (props) => {
2983
3067
  ]
2984
3068
  }
2985
3069
  )
2986
- ] }) : /* @__PURE__ */ jsxs15(React23.Fragment, { children: [
3070
+ ] }) : /* @__PURE__ */ jsxs16(React24.Fragment, { children: [
2987
3071
  renderedContainer,
2988
- paginationControl && /* @__PURE__ */ jsx37("div", { children: paginationControl })
3072
+ paginationControl && /* @__PURE__ */ jsx38("div", { children: paginationControl })
2989
3073
  ] })
2990
3074
  ] });
2991
3075
  };
2992
3076
  var DivContainer_default = DivContainer;
2993
3077
 
2994
3078
  // src/components/pageRenderingEngine/PageBodyRenderer.tsx
2995
- import { jsx as jsx38 } from "react/jsx-runtime";
3079
+ import { jsx as jsx39 } from "react/jsx-runtime";
2996
3080
  var NodeTypes = {
2997
3081
  ["paragraph"]: ParagraphNode_default,
2998
3082
  ["heading"]: HeadingNode_default,
@@ -3008,7 +3092,8 @@ var NodeTypes = {
3008
3092
  ["svg-icon"]: SVGIconNode_default,
3009
3093
  ["embed"]: EmbedNode_default,
3010
3094
  ["document"]: DocumentNode_default,
3011
- ["google-map"]: GoogleMapNode_default
3095
+ ["google-map"]: GoogleMapNode_default,
3096
+ ["counter"]: CounterNode_default
3012
3097
  };
3013
3098
  var PageBodyRenderer = (props) => {
3014
3099
  let pageBodyTree;
@@ -3030,14 +3115,14 @@ var PageBodyRenderer = (props) => {
3030
3115
  }
3031
3116
  return true;
3032
3117
  };
3033
- return /* @__PURE__ */ jsx38(React24.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
3118
+ return /* @__PURE__ */ jsx39(React25.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
3034
3119
  {
3035
3120
  }
3036
3121
  const SelectedNode = NodeTypes[node.type];
3037
3122
  if (!shouldRenderNode(node)) {
3038
3123
  return null;
3039
3124
  }
3040
- return /* @__PURE__ */ jsx38(React24.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx38(React24.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ jsx38(React24.Fragment, { children: /* @__PURE__ */ jsx38(
3125
+ return /* @__PURE__ */ jsx39(React25.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx39(React25.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ jsx39(React25.Fragment, { children: /* @__PURE__ */ jsx39(
3041
3126
  SelectedNode,
3042
3127
  {
3043
3128
  node,
@@ -3053,7 +3138,7 @@ var PageBodyRenderer = (props) => {
3053
3138
  device: props.device,
3054
3139
  widgetRenderer: props.widgetRenderer
3055
3140
  }
3056
- ) }) : /* @__PURE__ */ jsx38(React24.Fragment, { children: /* @__PURE__ */ jsx38(
3141
+ ) }) : /* @__PURE__ */ jsx39(React25.Fragment, { children: /* @__PURE__ */ jsx39(
3057
3142
  SelectedNode,
3058
3143
  {
3059
3144
  node,
@@ -3074,10 +3159,10 @@ var PageBodyRenderer = (props) => {
3074
3159
  var PageBodyRenderer_default = PageBodyRenderer;
3075
3160
 
3076
3161
  // src/components/pageRenderingEngine/EnterAnimationHydrator.tsx
3077
- import { useEffect } from "react";
3162
+ import { useEffect as useEffect2 } from "react";
3078
3163
  var ENTER_ANIMATION_SELECTOR = ".enter-animation";
3079
3164
  function EnterAnimationHydrator() {
3080
- useEffect(() => {
3165
+ useEffect2(() => {
3081
3166
  let observer;
3082
3167
  const observedElements = /* @__PURE__ */ new WeakSet();
3083
3168
  const revealAnimatedElements = () => {
@@ -3122,21 +3207,21 @@ function EnterAnimationHydrator() {
3122
3207
  }
3123
3208
 
3124
3209
  // src/components/Toast.tsx
3125
- import { useCallback, useEffect as useEffect2, useRef, useState } from "react";
3126
- import { Fragment as Fragment7, jsx as jsx39, jsxs as jsxs16 } from "react/jsx-runtime";
3210
+ import { useCallback as useCallback2, useEffect as useEffect3, useRef as useRef2, useState as useState2 } from "react";
3211
+ import { Fragment as Fragment7, jsx as jsx40, jsxs as jsxs17 } from "react/jsx-runtime";
3127
3212
  var Toast = () => {
3128
- const [showToast, setShowToast] = useState(false);
3129
- const [message, setMessage] = useState("");
3130
- const [messageType, setMessageType] = useState("error");
3131
- const timeoutRef = useRef(null);
3132
- const closeToast = useCallback(() => {
3213
+ const [showToast, setShowToast] = useState2(false);
3214
+ const [message, setMessage] = useState2("");
3215
+ const [messageType, setMessageType] = useState2("error");
3216
+ const timeoutRef = useRef2(null);
3217
+ const closeToast = useCallback2(() => {
3133
3218
  if (timeoutRef.current) {
3134
3219
  clearTimeout(timeoutRef.current);
3135
3220
  timeoutRef.current = null;
3136
3221
  }
3137
3222
  setShowToast(false);
3138
3223
  }, []);
3139
- const showMessage = useCallback((message2, messageType2) => {
3224
+ const showMessage = useCallback2((message2, messageType2) => {
3140
3225
  if (timeoutRef.current) {
3141
3226
  clearTimeout(timeoutRef.current);
3142
3227
  }
@@ -3148,7 +3233,7 @@ var Toast = () => {
3148
3233
  timeoutRef.current = null;
3149
3234
  }, 4e3);
3150
3235
  }, []);
3151
- useEffect2(() => {
3236
+ useEffect3(() => {
3152
3237
  ToastService_default.initialize(showMessage, closeToast);
3153
3238
  return () => {
3154
3239
  closeToast();
@@ -3157,8 +3242,8 @@ var Toast = () => {
3157
3242
  });
3158
3243
  };
3159
3244
  }, [closeToast, showMessage]);
3160
- return /* @__PURE__ */ jsx39(Fragment7, { children: showToast && /* @__PURE__ */ jsx39("div", { className: "fixed top-2 flex justify-center w-1/2 max-w-xl left-1/2 -translate-x-1/2", style: { zIndex: 1e3 }, children: /* @__PURE__ */ jsxs16("div", { className: `w-full items-center flex justify-between p-3 rounded-md relative shadow border bg-${messageType}-soft`, children: [
3161
- /* @__PURE__ */ jsx39(
3245
+ return /* @__PURE__ */ jsx40(Fragment7, { children: showToast && /* @__PURE__ */ jsx40("div", { className: "fixed top-2 flex justify-center w-1/2 max-w-xl left-1/2 -translate-x-1/2", style: { zIndex: 1e3 }, children: /* @__PURE__ */ jsxs17("div", { className: `w-full items-center flex justify-between p-3 rounded-md relative shadow border bg-${messageType}-soft`, children: [
3246
+ /* @__PURE__ */ jsx40(
3162
3247
  "span",
3163
3248
  {
3164
3249
  className: "font-medium text-inherit text-sm",
@@ -3166,7 +3251,7 @@ var Toast = () => {
3166
3251
  children: message
3167
3252
  }
3168
3253
  ),
3169
- /* @__PURE__ */ jsx39("button", { className: "absolute right-2 top-2 ml-2 focus:outline-none", onClick: closeToast, children: /* @__PURE__ */ jsx39(
3254
+ /* @__PURE__ */ jsx40("button", { className: "absolute right-2 top-2 ml-2 focus:outline-none", onClick: closeToast, children: /* @__PURE__ */ jsx40(
3170
3255
  "svg",
3171
3256
  {
3172
3257
  xmlns: "http://www.w3.org/2000/svg",
@@ -3174,7 +3259,7 @@ var Toast = () => {
3174
3259
  fill: "none",
3175
3260
  viewBox: "0 0 24 24",
3176
3261
  stroke: "currentColor",
3177
- children: /* @__PURE__ */ jsx39("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M6 18L18 6M6 6l12 12" })
3262
+ children: /* @__PURE__ */ jsx40("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M6 18L18 6M6 6l12 12" })
3178
3263
  }
3179
3264
  ) })
3180
3265
  ] }) }) });
@@ -3184,7 +3269,7 @@ var Toast_default = Toast;
3184
3269
  // src/components/NavigationTabsV2.tsx
3185
3270
  import Link2 from "next/link";
3186
3271
  import { usePathname } from "next/navigation";
3187
- import { jsx as jsx40 } from "react/jsx-runtime";
3272
+ import { jsx as jsx41 } from "react/jsx-runtime";
3188
3273
  function resolveRoutePlaceholders(route, params) {
3189
3274
  return route.replace(/\{([^}]+)\}/g, (match, key) => {
3190
3275
  const value = params[key];
@@ -3209,8 +3294,8 @@ var NavigationTabsV2 = ({ tabs, params = {} }) => {
3209
3294
  isActive: tab.isActive
3210
3295
  })) || [];
3211
3296
  if (mappedTabs.length === 0) return null;
3212
- return /* @__PURE__ */ jsx40("div", { className: "flex border-b bg-white rounded-t mb-3", children: mappedTabs.map(({ tabTitle, landingPageUrl, isActive }) => {
3213
- return /* @__PURE__ */ jsx40(Link2, { href: landingPageUrl, className: "-mb-px", children: /* @__PURE__ */ jsx40(
3297
+ return /* @__PURE__ */ jsx41("div", { className: "flex border-b bg-white rounded-t mb-3", children: mappedTabs.map(({ tabTitle, landingPageUrl, isActive }) => {
3298
+ return /* @__PURE__ */ jsx41(Link2, { href: landingPageUrl, className: "-mb-px", children: /* @__PURE__ */ jsx41(
3214
3299
  "div",
3215
3300
  {
3216
3301
  className: `text-sm font-medium border-b-2 px-6 py-2 transition
@@ -3223,51 +3308,51 @@ var NavigationTabsV2 = ({ tabs, params = {} }) => {
3223
3308
  var NavigationTabsV2_default = NavigationTabsV2;
3224
3309
 
3225
3310
  // src/components/dataForm/DataList.tsx
3226
- import React28, { useEffect as useEffect3, useState as useState2, useCallback as useCallback2, useReducer } from "react";
3311
+ import React29, { useEffect as useEffect4, useState as useState3, useCallback as useCallback3, useReducer } from "react";
3227
3312
  import { useRouter } from "next/navigation";
3228
3313
 
3229
3314
  // src/components/dataForm/NoContentView.tsx
3230
- import React26 from "react";
3231
- import { jsx as jsx41 } from "react/jsx-runtime";
3315
+ import React27 from "react";
3316
+ import { jsx as jsx42 } from "react/jsx-runtime";
3232
3317
  var NoContentView = (props) => {
3233
- return /* @__PURE__ */ jsx41(React26.Fragment, { children: props.isDataFound === false && props.children });
3318
+ return /* @__PURE__ */ jsx42(React27.Fragment, { children: props.isDataFound === false && props.children });
3234
3319
  };
3235
3320
  var NoContentView_default = NoContentView;
3236
3321
 
3237
3322
  // src/components/dataForm/ContentView.tsx
3238
- import React27 from "react";
3239
- import { jsx as jsx42, jsxs as jsxs17 } from "react/jsx-runtime";
3323
+ import React28 from "react";
3324
+ import { jsx as jsx43, jsxs as jsxs18 } from "react/jsx-runtime";
3240
3325
  var ContentView = (props) => {
3241
- return /* @__PURE__ */ jsxs17(React27.Fragment, { children: [
3242
- props.isDataFound == null && /* @__PURE__ */ jsx42("div", { className: "", children: /* @__PURE__ */ jsxs17("div", { className: "bg-gray-200 rounded-md p-4 animate-pulse", children: [
3243
- /* @__PURE__ */ jsxs17("div", { className: "flex items-center mb-4", children: [
3244
- /* @__PURE__ */ jsx42("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
3245
- /* @__PURE__ */ jsxs17("div", { className: "ml-2", children: [
3246
- /* @__PURE__ */ jsx42("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
3247
- /* @__PURE__ */ jsx42("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
3326
+ return /* @__PURE__ */ jsxs18(React28.Fragment, { children: [
3327
+ props.isDataFound == null && /* @__PURE__ */ jsx43("div", { className: "", children: /* @__PURE__ */ jsxs18("div", { className: "bg-gray-200 rounded-md p-4 animate-pulse", children: [
3328
+ /* @__PURE__ */ jsxs18("div", { className: "flex items-center mb-4", children: [
3329
+ /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
3330
+ /* @__PURE__ */ jsxs18("div", { className: "ml-2", children: [
3331
+ /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
3332
+ /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
3248
3333
  ] })
3249
3334
  ] }),
3250
- /* @__PURE__ */ jsxs17("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
3251
- /* @__PURE__ */ jsxs17("div", { className: "animate-pulse", children: [
3252
- /* @__PURE__ */ jsx42("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
3253
- /* @__PURE__ */ jsx42("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
3254
- /* @__PURE__ */ jsx42("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
3255
- /* @__PURE__ */ jsx42("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
3256
- /* @__PURE__ */ jsx42("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
3335
+ /* @__PURE__ */ jsxs18("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
3336
+ /* @__PURE__ */ jsxs18("div", { className: "animate-pulse", children: [
3337
+ /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
3338
+ /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
3339
+ /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
3340
+ /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
3341
+ /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
3257
3342
  ] }),
3258
- /* @__PURE__ */ jsxs17("div", { className: "animate-pulse", children: [
3259
- /* @__PURE__ */ jsx42("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
3260
- /* @__PURE__ */ jsx42("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
3261
- /* @__PURE__ */ jsx42("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
3262
- /* @__PURE__ */ jsx42("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
3263
- /* @__PURE__ */ jsx42("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
3343
+ /* @__PURE__ */ jsxs18("div", { className: "animate-pulse", children: [
3344
+ /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
3345
+ /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
3346
+ /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
3347
+ /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
3348
+ /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
3264
3349
  ] }),
3265
- /* @__PURE__ */ jsxs17("div", { className: "animate-pulse", children: [
3266
- /* @__PURE__ */ jsx42("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
3267
- /* @__PURE__ */ jsx42("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
3268
- /* @__PURE__ */ jsx42("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
3269
- /* @__PURE__ */ jsx42("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
3270
- /* @__PURE__ */ jsx42("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
3350
+ /* @__PURE__ */ jsxs18("div", { className: "animate-pulse", children: [
3351
+ /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
3352
+ /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
3353
+ /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
3354
+ /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
3355
+ /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
3271
3356
  ] })
3272
3357
  ] })
3273
3358
  ] }) }),
@@ -3321,7 +3406,7 @@ function FormReducer(state, action) {
3321
3406
  var FormReducer_default = FormReducer;
3322
3407
 
3323
3408
  // src/components/dataForm/DataList.tsx
3324
- import { Fragment as Fragment8, jsx as jsx43, jsxs as jsxs18 } from "react/jsx-runtime";
3409
+ import { Fragment as Fragment8, jsx as jsx44, jsxs as jsxs19 } from "react/jsx-runtime";
3325
3410
  var DataList = (props) => {
3326
3411
  const router = useRouter();
3327
3412
  let builder = new OdataBuilder(props.path);
@@ -3329,12 +3414,12 @@ var DataList = (props) => {
3329
3414
  let activePageNumber = 0;
3330
3415
  let pages = 0;
3331
3416
  console.log(props.addLinkText);
3332
- const [isDataFound, setIsDataFound] = useState2(null);
3333
- const [searchTerm, setSearchTerm] = useState2(props.query?.searchTerm ?? "");
3334
- useEffect3(() => {
3417
+ const [isDataFound, setIsDataFound] = useState3(null);
3418
+ const [searchTerm, setSearchTerm] = useState3(props.query?.searchTerm ?? "");
3419
+ useEffect4(() => {
3335
3420
  setSearchTerm(props.query?.searchTerm ?? "");
3336
3421
  }, [props.query?.searchTerm]);
3337
- useEffect3(() => {
3422
+ useEffect4(() => {
3338
3423
  if (props?.dataset) {
3339
3424
  if (props?.dataset.result && props.dataset.result.length > 0) {
3340
3425
  setIsDataFound(true);
@@ -3343,7 +3428,7 @@ var DataList = (props) => {
3343
3428
  }
3344
3429
  }
3345
3430
  }, [props.dataset]);
3346
- useEffect3(() => {
3431
+ useEffect4(() => {
3347
3432
  if (!props.query?.["$filter"] || !props.filters) return;
3348
3433
  const filterQuery = props.query["$filter"];
3349
3434
  props.filters.forEach((filter) => {
@@ -3362,7 +3447,7 @@ var DataList = (props) => {
3362
3447
  if (path.includes(".")) {
3363
3448
  return path.split(".").reduce((prev, curr) => prev ? prev[curr] : null, obj);
3364
3449
  } else if (Array.isArray(obj[path])) {
3365
- return obj[path].map((item, index) => /* @__PURE__ */ jsx43("div", { children: item }, index));
3450
+ return obj[path].map((item, index) => /* @__PURE__ */ jsx44("div", { children: item }, index));
3366
3451
  } else {
3367
3452
  return obj[path];
3368
3453
  }
@@ -3375,7 +3460,7 @@ var DataList = (props) => {
3375
3460
  const getSearchableColumns = () => {
3376
3461
  return props.columns?.filter((c) => c.isSearchable)?.map((c) => c.name)?.join(",");
3377
3462
  };
3378
- const handleFilterChange = useCallback2(
3463
+ const handleFilterChange = useCallback3(
3379
3464
  (updatedValues) => {
3380
3465
  dispatch({
3381
3466
  type: FORM_INPUT_UPDATE,
@@ -3406,7 +3491,7 @@ var DataList = (props) => {
3406
3491
  },
3407
3492
  [dispatch, props, router]
3408
3493
  );
3409
- useEffect3(() => {
3494
+ useEffect4(() => {
3410
3495
  if (!props.columns.some((col) => col.isSearchable)) {
3411
3496
  return;
3412
3497
  }
@@ -3444,30 +3529,30 @@ var DataList = (props) => {
3444
3529
  const renderPageNumbers = () => {
3445
3530
  if (pages <= 10) {
3446
3531
  return Array.from({ length: pages }, (_, index) => index + 1).map(
3447
- (page) => /* @__PURE__ */ jsx43(React28.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx43(
3532
+ (page) => /* @__PURE__ */ jsx44(React29.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx44(
3448
3533
  Hyperlink,
3449
3534
  {
3450
3535
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
3451
3536
  href: builder.getNewPageUrl(page),
3452
3537
  children: page
3453
3538
  }
3454
- ) : /* @__PURE__ */ jsx43("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)
3539
+ ) : /* @__PURE__ */ jsx44("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)
3455
3540
  );
3456
3541
  } else {
3457
3542
  const showFirstPages = activePageNumber <= 5;
3458
3543
  const showLastPages = activePageNumber > pages - 5;
3459
3544
  if (showFirstPages) {
3460
- return /* @__PURE__ */ jsxs18(Fragment8, { children: [
3461
- Array.from({ length: 8 }, (_, index) => index + 1).map((page) => /* @__PURE__ */ jsx43(React28.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx43(
3545
+ return /* @__PURE__ */ jsxs19(Fragment8, { children: [
3546
+ Array.from({ length: 8 }, (_, index) => index + 1).map((page) => /* @__PURE__ */ jsx44(React29.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx44(
3462
3547
  Hyperlink,
3463
3548
  {
3464
3549
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
3465
3550
  href: builder.getNewPageUrl(page),
3466
3551
  children: page
3467
3552
  }
3468
- ) : /* @__PURE__ */ jsx43("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)),
3469
- /* @__PURE__ */ jsx43("span", { className: "px-2 py-1", children: "..." }),
3470
- /* @__PURE__ */ jsx43(
3553
+ ) : /* @__PURE__ */ jsx44("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)),
3554
+ /* @__PURE__ */ jsx44("span", { className: "px-2 py-1", children: "..." }),
3555
+ /* @__PURE__ */ jsx44(
3471
3556
  Hyperlink,
3472
3557
  {
3473
3558
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -3475,7 +3560,7 @@ var DataList = (props) => {
3475
3560
  children: pages - 1
3476
3561
  }
3477
3562
  ),
3478
- /* @__PURE__ */ jsx43(
3563
+ /* @__PURE__ */ jsx44(
3479
3564
  Hyperlink,
3480
3565
  {
3481
3566
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -3483,7 +3568,7 @@ var DataList = (props) => {
3483
3568
  children: pages
3484
3569
  }
3485
3570
  ),
3486
- /* @__PURE__ */ jsx43("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs18(
3571
+ /* @__PURE__ */ jsx44("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs19(
3487
3572
  "select",
3488
3573
  {
3489
3574
  className: " py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
@@ -3495,18 +3580,18 @@ var DataList = (props) => {
3495
3580
  }
3496
3581
  },
3497
3582
  children: [
3498
- /* @__PURE__ */ jsx43("option", { className: "", value: "", children: "Jump to" }),
3583
+ /* @__PURE__ */ jsx44("option", { className: "", value: "", children: "Jump to" }),
3499
3584
  Array.from(
3500
3585
  { length: Math.max(0, pages - 10) },
3501
3586
  (_, index) => index + 9
3502
- ).map((page) => /* @__PURE__ */ jsx43("option", { value: page, children: page }, page))
3587
+ ).map((page) => /* @__PURE__ */ jsx44("option", { value: page, children: page }, page))
3503
3588
  ]
3504
3589
  }
3505
3590
  ) })
3506
3591
  ] });
3507
3592
  } else if (showLastPages) {
3508
- return /* @__PURE__ */ jsxs18(Fragment8, { children: [
3509
- /* @__PURE__ */ jsx43(
3593
+ return /* @__PURE__ */ jsxs19(Fragment8, { children: [
3594
+ /* @__PURE__ */ jsx44(
3510
3595
  Hyperlink,
3511
3596
  {
3512
3597
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -3514,7 +3599,7 @@ var DataList = (props) => {
3514
3599
  children: "1"
3515
3600
  }
3516
3601
  ),
3517
- /* @__PURE__ */ jsx43(
3602
+ /* @__PURE__ */ jsx44(
3518
3603
  Hyperlink,
3519
3604
  {
3520
3605
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -3522,21 +3607,21 @@ var DataList = (props) => {
3522
3607
  children: "2"
3523
3608
  }
3524
3609
  ),
3525
- /* @__PURE__ */ jsx43("span", { className: "px-2 py-1", children: "..." }),
3610
+ /* @__PURE__ */ jsx44("span", { className: "px-2 py-1", children: "..." }),
3526
3611
  Array.from({ length: 8 }, (_, index) => pages - 7 + index).map(
3527
- (page) => /* @__PURE__ */ jsx43(React28.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx43(
3612
+ (page) => /* @__PURE__ */ jsx44(React29.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx44(
3528
3613
  Hyperlink,
3529
3614
  {
3530
3615
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
3531
3616
  href: builder.getNewPageUrl(page),
3532
3617
  children: page
3533
3618
  }
3534
- ) : /* @__PURE__ */ jsx43("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)
3619
+ ) : /* @__PURE__ */ jsx44("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)
3535
3620
  )
3536
3621
  ] });
3537
3622
  } else {
3538
- return /* @__PURE__ */ jsxs18(Fragment8, { children: [
3539
- /* @__PURE__ */ jsx43(
3623
+ return /* @__PURE__ */ jsxs19(Fragment8, { children: [
3624
+ /* @__PURE__ */ jsx44(
3540
3625
  Hyperlink,
3541
3626
  {
3542
3627
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -3544,7 +3629,7 @@ var DataList = (props) => {
3544
3629
  children: "1"
3545
3630
  }
3546
3631
  ),
3547
- /* @__PURE__ */ jsx43(
3632
+ /* @__PURE__ */ jsx44(
3548
3633
  Hyperlink,
3549
3634
  {
3550
3635
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -3552,20 +3637,20 @@ var DataList = (props) => {
3552
3637
  children: "2"
3553
3638
  }
3554
3639
  ),
3555
- /* @__PURE__ */ jsx43("span", { className: "px-2 py-1", children: "..." }),
3640
+ /* @__PURE__ */ jsx44("span", { className: "px-2 py-1", children: "..." }),
3556
3641
  Array.from(
3557
3642
  { length: 5 },
3558
3643
  (_, index) => activePageNumber - 2 + index
3559
- ).map((page) => /* @__PURE__ */ jsx43(React28.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx43(
3644
+ ).map((page) => /* @__PURE__ */ jsx44(React29.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx44(
3560
3645
  Hyperlink,
3561
3646
  {
3562
3647
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
3563
3648
  href: builder.getNewPageUrl(page),
3564
3649
  children: page
3565
3650
  }
3566
- ) : /* @__PURE__ */ jsx43("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)),
3567
- /* @__PURE__ */ jsx43("span", { className: "px-2 py-1", children: "..." }),
3568
- /* @__PURE__ */ jsx43(
3651
+ ) : /* @__PURE__ */ jsx44("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)),
3652
+ /* @__PURE__ */ jsx44("span", { className: "px-2 py-1", children: "..." }),
3653
+ /* @__PURE__ */ jsx44(
3569
3654
  Hyperlink,
3570
3655
  {
3571
3656
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -3573,7 +3658,7 @@ var DataList = (props) => {
3573
3658
  children: pages - 1
3574
3659
  }
3575
3660
  ),
3576
- /* @__PURE__ */ jsx43(
3661
+ /* @__PURE__ */ jsx44(
3577
3662
  Hyperlink,
3578
3663
  {
3579
3664
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -3581,7 +3666,7 @@ var DataList = (props) => {
3581
3666
  children: pages
3582
3667
  }
3583
3668
  ),
3584
- /* @__PURE__ */ jsx43("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs18(
3669
+ /* @__PURE__ */ jsx44("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs19(
3585
3670
  "select",
3586
3671
  {
3587
3672
  className: "px-2 py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
@@ -3593,8 +3678,8 @@ var DataList = (props) => {
3593
3678
  }
3594
3679
  },
3595
3680
  children: [
3596
- /* @__PURE__ */ jsx43("option", { value: "", children: "Jump to" }),
3597
- Array.from({ length: pages - 4 }, (_, index) => index + 3).filter((page) => page > 2 && page < pages - 1).map((page) => /* @__PURE__ */ jsx43("option", { value: page, children: page }, page))
3681
+ /* @__PURE__ */ jsx44("option", { value: "", children: "Jump to" }),
3682
+ Array.from({ length: pages - 4 }, (_, index) => index + 3).filter((page) => page > 2 && page < pages - 1).map((page) => /* @__PURE__ */ jsx44("option", { value: page, children: page }, page))
3598
3683
  ]
3599
3684
  }
3600
3685
  ) })
@@ -3602,16 +3687,16 @@ var DataList = (props) => {
3602
3687
  }
3603
3688
  }
3604
3689
  };
3605
- return /* @__PURE__ */ jsxs18(React28.Fragment, { children: [
3606
- /* @__PURE__ */ jsxs18(ContentView_default, { isDataFound, children: [
3607
- (props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ jsxs18(
3690
+ return /* @__PURE__ */ jsxs19(React29.Fragment, { children: [
3691
+ /* @__PURE__ */ jsxs19(ContentView_default, { isDataFound, children: [
3692
+ (props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ jsxs19(
3608
3693
  "div",
3609
3694
  {
3610
3695
  className: `flex justify-between items-center bg-white pl-6 pr-2 h-14 mb-3 shadow-sm rounded-md sticky top-0`,
3611
3696
  children: [
3612
- props.title ? /* @__PURE__ */ jsx43("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ jsx43("h2", { className: "text-lg font-semibold text-black-800", children: props.title }) }) : /* @__PURE__ */ jsx43("div", {}),
3613
- /* @__PURE__ */ jsxs18("div", { className: "flex items-center gap-3", children: [
3614
- props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ jsx43(
3697
+ props.title ? /* @__PURE__ */ jsx44("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ jsx44("h2", { className: "text-lg font-semibold text-black-800", children: props.title }) }) : /* @__PURE__ */ jsx44("div", {}),
3698
+ /* @__PURE__ */ jsxs19("div", { className: "flex items-center gap-3", children: [
3699
+ props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ jsx44(
3615
3700
  InputControl_default,
3616
3701
  {
3617
3702
  name: "Search_input",
@@ -3624,7 +3709,7 @@ var DataList = (props) => {
3624
3709
  }
3625
3710
  }
3626
3711
  ),
3627
- props.filters && props.filters.map((filter) => /* @__PURE__ */ jsx43(
3712
+ props.filters && props.filters.map((filter) => /* @__PURE__ */ jsx44(
3628
3713
  InputControl_default,
3629
3714
  {
3630
3715
  name: filter.name,
@@ -3639,15 +3724,15 @@ var DataList = (props) => {
3639
3724
  },
3640
3725
  filter.name
3641
3726
  )),
3642
- props.addLinkHref && /* @__PURE__ */ jsxs18(
3727
+ props.addLinkHref && /* @__PURE__ */ jsxs19(
3643
3728
  Hyperlink,
3644
3729
  {
3645
3730
  className: "gap-1",
3646
3731
  linkType: "Primary" /* Solid */,
3647
3732
  href: props.addLinkHref,
3648
3733
  children: [
3649
- /* @__PURE__ */ jsx43(Icon_default, { name: "plus", className: "w-4 h-4" }),
3650
- /* @__PURE__ */ jsx43("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
3734
+ /* @__PURE__ */ jsx44(Icon_default, { name: "plus", className: "w-4 h-4" }),
3735
+ /* @__PURE__ */ jsx44("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
3651
3736
  ]
3652
3737
  }
3653
3738
  )
@@ -3655,8 +3740,8 @@ var DataList = (props) => {
3655
3740
  ]
3656
3741
  }
3657
3742
  ),
3658
- /* @__PURE__ */ jsx43("div", { className: "flex-1 overflow-y-auto justify-end bg-white rounded shadow h-[calc(100vh-14rem)]", children: /* @__PURE__ */ jsxs18("table", { className: "w-full divide-y divide-gray-200", children: [
3659
- /* @__PURE__ */ jsx43("thead", { className: "bg-gray-50 sticky top-0", children: /* @__PURE__ */ jsxs18("tr", { children: [
3743
+ /* @__PURE__ */ jsx44("div", { className: "flex-1 overflow-y-auto justify-end bg-white rounded shadow h-[calc(100vh-14rem)]", children: /* @__PURE__ */ jsxs19("table", { className: "w-full divide-y divide-gray-200", children: [
3744
+ /* @__PURE__ */ jsx44("thead", { className: "bg-gray-50 sticky top-0", children: /* @__PURE__ */ jsxs19("tr", { children: [
3660
3745
  props?.columns?.map((column) => {
3661
3746
  let url = builder.getNewOrderByUrl(column.name);
3662
3747
  let icon = "chevronUpDown";
@@ -3667,18 +3752,18 @@ var DataList = (props) => {
3667
3752
  icon = "chevronUp";
3668
3753
  url = builder.getNewOrderByUrl(column.name + " desc");
3669
3754
  }
3670
- return /* @__PURE__ */ jsx43(
3755
+ return /* @__PURE__ */ jsx44(
3671
3756
  "th",
3672
3757
  {
3673
3758
  className: "px-6 py-3 text-left font-medium bg-neutral-soft " + (column.enableSorting ? "cursor-pointer " : "") + column.width + (column.controlType == ViewControlTypes_default.money ? " text-right" : ""),
3674
- children: /* @__PURE__ */ jsx43(
3759
+ children: /* @__PURE__ */ jsx44(
3675
3760
  Hyperlink,
3676
3761
  {
3677
3762
  href: column.enableSorting ? url : void 0,
3678
3763
  className: "!text-neutral-contrast ",
3679
- children: /* @__PURE__ */ jsxs18("span", { className: "flex items-center space-x-1", children: [
3680
- /* @__PURE__ */ jsx43("span", { className: "text-black", children: column.label }),
3681
- column.enableSorting && /* @__PURE__ */ jsx43(Icon_default, { className: "w-4 h-4", name: icon })
3764
+ children: /* @__PURE__ */ jsxs19("span", { className: "flex items-center space-x-1", children: [
3765
+ /* @__PURE__ */ jsx44("span", { className: "text-black", children: column.label }),
3766
+ column.enableSorting && /* @__PURE__ */ jsx44(Icon_default, { className: "w-4 h-4", name: icon })
3682
3767
  ] })
3683
3768
  }
3684
3769
  )
@@ -3686,25 +3771,25 @@ var DataList = (props) => {
3686
3771
  column.name
3687
3772
  );
3688
3773
  }),
3689
- props.onQuickView && /* @__PURE__ */ jsx43("th", { className: "px-6 py-3 text-right font-medium bg-neutral-soft w-32 text-black", children: "Action" })
3774
+ props.onQuickView && /* @__PURE__ */ jsx44("th", { className: "px-6 py-3 text-right font-medium bg-neutral-soft w-32 text-black", children: "Action" })
3690
3775
  ] }) }),
3691
- /* @__PURE__ */ jsx43("tbody", { className: "divide-y divide-gray-200 ", children: props.dataset?.result?.map((dataitem, index) => {
3776
+ /* @__PURE__ */ jsx44("tbody", { className: "divide-y divide-gray-200 ", children: props.dataset?.result?.map((dataitem, index) => {
3692
3777
  let validityClass = "";
3693
3778
  if (props.recordValidityColumnName && getNestedProperty2(dataitem, props.recordValidityColumnName) == false) {
3694
3779
  validityClass = "bg-alert-200";
3695
3780
  }
3696
- return /* @__PURE__ */ jsxs18("tr", { className: validityClass, children: [
3781
+ return /* @__PURE__ */ jsxs19("tr", { className: validityClass, children: [
3697
3782
  props?.columns?.map((column, colindex) => {
3698
- return /* @__PURE__ */ jsx43(React28.Fragment, { children: /* @__PURE__ */ jsx43(
3783
+ return /* @__PURE__ */ jsx44(React29.Fragment, { children: /* @__PURE__ */ jsx44(
3699
3784
  "td",
3700
3785
  {
3701
3786
  className: "px-6 py-2 whitespace-normal " + (column.controlType == ViewControlTypes_default.money ? "" : ""),
3702
- children: column.addhref === true ? /* @__PURE__ */ jsx43(
3787
+ children: column.addhref === true ? /* @__PURE__ */ jsx44(
3703
3788
  Hyperlink,
3704
3789
  {
3705
3790
  className: "",
3706
3791
  href: `https://${dataitem[column.name]}`,
3707
- children: /* @__PURE__ */ jsx43(
3792
+ children: /* @__PURE__ */ jsx44(
3708
3793
  ViewControl_default,
3709
3794
  {
3710
3795
  controlType: column.controlType,
@@ -3717,11 +3802,11 @@ var DataList = (props) => {
3717
3802
  }
3718
3803
  )
3719
3804
  }
3720
- ) : column.showAsLink ? /* @__PURE__ */ jsx43(
3805
+ ) : column.showAsLink ? /* @__PURE__ */ jsx44(
3721
3806
  Hyperlink,
3722
3807
  {
3723
3808
  href: props.path + dataitem[props.columns[0].name] + "/" + (dataitem.linkUrlSegment ?? column.linkUrlSegment),
3724
- children: /* @__PURE__ */ jsx43(
3809
+ children: /* @__PURE__ */ jsx44(
3725
3810
  ViewControl_default,
3726
3811
  {
3727
3812
  controlType: column.controlType,
@@ -3731,7 +3816,7 @@ var DataList = (props) => {
3731
3816
  }
3732
3817
  )
3733
3818
  }
3734
- ) : /* @__PURE__ */ jsx43(
3819
+ ) : /* @__PURE__ */ jsx44(
3735
3820
  ViewControl_default,
3736
3821
  {
3737
3822
  controlType: column.controlType,
@@ -3743,7 +3828,7 @@ var DataList = (props) => {
3743
3828
  }
3744
3829
  ) }, colindex);
3745
3830
  }),
3746
- props.onQuickView && /* @__PURE__ */ jsx43("td", { className: "px-6 py-2 text-right whitespace-nowrap", children: /* @__PURE__ */ jsxs18(
3831
+ props.onQuickView && /* @__PURE__ */ jsx44("td", { className: "px-6 py-2 text-right whitespace-nowrap", children: /* @__PURE__ */ jsxs19(
3747
3832
  "button",
3748
3833
  {
3749
3834
  type: "button",
@@ -3753,7 +3838,7 @@ var DataList = (props) => {
3753
3838
  },
3754
3839
  className: "inline-flex items-center gap-1.5 px-3 py-1 text-xs font-semibold rounded-md border border-neutral-300 bg-white hover:bg-neutral-100 text-neutral-800 transition-colors shadow-xs",
3755
3840
  children: [
3756
- /* @__PURE__ */ jsxs18(
3841
+ /* @__PURE__ */ jsxs19(
3757
3842
  "svg",
3758
3843
  {
3759
3844
  className: "w-3.5 h-3.5",
@@ -3764,22 +3849,22 @@ var DataList = (props) => {
3764
3849
  strokeLinecap: "round",
3765
3850
  strokeLinejoin: "round",
3766
3851
  children: [
3767
- /* @__PURE__ */ jsx43("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }),
3768
- /* @__PURE__ */ jsx43("circle", { cx: "12", cy: "12", r: "3" })
3852
+ /* @__PURE__ */ jsx44("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }),
3853
+ /* @__PURE__ */ jsx44("circle", { cx: "12", cy: "12", r: "3" })
3769
3854
  ]
3770
3855
  }
3771
3856
  ),
3772
- /* @__PURE__ */ jsx43("span", { children: props.quickViewLabel || "Quick View" })
3857
+ /* @__PURE__ */ jsx44("span", { children: props.quickViewLabel || "Quick View" })
3773
3858
  ]
3774
3859
  }
3775
3860
  ) })
3776
3861
  ] }, index);
3777
3862
  }) })
3778
3863
  ] }) }),
3779
- /* @__PURE__ */ jsx43("div", { className: "pt-4 border-t border-t-gray-50 sticky bottom-0 h-11 mt-2 ", children: /* @__PURE__ */ jsxs18("div", { className: "flex items-center justify-between", children: [
3780
- /* @__PURE__ */ jsx43("div", { className: "text-gray-700", children: label }),
3781
- /* @__PURE__ */ jsxs18("div", { className: "flex space-x-2 items-center", children: [
3782
- activePageNumber > 1 && /* @__PURE__ */ jsx43(
3864
+ /* @__PURE__ */ jsx44("div", { className: "pt-4 border-t border-t-gray-50 sticky bottom-0 h-11 mt-2 ", children: /* @__PURE__ */ jsxs19("div", { className: "flex items-center justify-between", children: [
3865
+ /* @__PURE__ */ jsx44("div", { className: "text-gray-700", children: label }),
3866
+ /* @__PURE__ */ jsxs19("div", { className: "flex space-x-2 items-center", children: [
3867
+ activePageNumber > 1 && /* @__PURE__ */ jsx44(
3783
3868
  Hyperlink,
3784
3869
  {
3785
3870
  className: "px-3 py-1 rounded-l-md border border-gray-300 bg-white text-gray-500 hover:bg-gray-200",
@@ -3787,9 +3872,9 @@ var DataList = (props) => {
3787
3872
  children: "Prev"
3788
3873
  }
3789
3874
  ),
3790
- activePageNumber <= 1 && /* @__PURE__ */ jsx43("div", { className: "px-3 py-1 rounded-l-md border border-gray-300 bg-gray-200 text-gray-500 hover:bg-gray-200", children: "Prev" }),
3875
+ activePageNumber <= 1 && /* @__PURE__ */ jsx44("div", { className: "px-3 py-1 rounded-l-md border border-gray-300 bg-gray-200 text-gray-500 hover:bg-gray-200", children: "Prev" }),
3791
3876
  renderPageNumbers(),
3792
- activePageNumber < pages && /* @__PURE__ */ jsx43(
3877
+ activePageNumber < pages && /* @__PURE__ */ jsx44(
3793
3878
  Hyperlink,
3794
3879
  {
3795
3880
  className: "px-3 py-1 rounded-r-md border border-gray-300 bg-white text-gray-500 hover:bg-gray-200",
@@ -3797,19 +3882,19 @@ var DataList = (props) => {
3797
3882
  children: "Next"
3798
3883
  }
3799
3884
  ),
3800
- activePageNumber >= pages && /* @__PURE__ */ jsx43("div", { className: "px-3 py-1 rounded-r-md border border-gray-300 bg-gray-200 text-gray-500", children: "Next" })
3885
+ activePageNumber >= pages && /* @__PURE__ */ jsx44("div", { className: "px-3 py-1 rounded-r-md border border-gray-300 bg-gray-200 text-gray-500", children: "Next" })
3801
3886
  ] })
3802
3887
  ] }) })
3803
3888
  ] }),
3804
- /* @__PURE__ */ jsxs18(NoContentView_default, { isDataFound, children: [
3805
- (props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ jsxs18(
3889
+ /* @__PURE__ */ jsxs19(NoContentView_default, { isDataFound, children: [
3890
+ (props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ jsxs19(
3806
3891
  "div",
3807
3892
  {
3808
3893
  className: `flex justify-between items-center bg-white pl-6 pr-2 h-14 mb-3 shadow-sm rounded-md border-b border-neutral-200`,
3809
3894
  children: [
3810
- props.title ? /* @__PURE__ */ jsx43("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ jsx43("h2", { className: "text-lg font-semibold text-black", children: props.title }) }) : /* @__PURE__ */ jsx43("div", {}),
3811
- /* @__PURE__ */ jsxs18("div", { className: "flex items-center gap-3", children: [
3812
- props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ jsx43(
3895
+ props.title ? /* @__PURE__ */ jsx44("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ jsx44("h2", { className: "text-lg font-semibold text-black", children: props.title }) }) : /* @__PURE__ */ jsx44("div", {}),
3896
+ /* @__PURE__ */ jsxs19("div", { className: "flex items-center gap-3", children: [
3897
+ props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ jsx44(
3813
3898
  InputControl_default,
3814
3899
  {
3815
3900
  name: "Search_input",
@@ -3822,7 +3907,7 @@ var DataList = (props) => {
3822
3907
  }
3823
3908
  }
3824
3909
  ),
3825
- props.filters && props.filters.map((filter) => /* @__PURE__ */ jsx43(
3910
+ props.filters && props.filters.map((filter) => /* @__PURE__ */ jsx44(
3826
3911
  InputControl_default,
3827
3912
  {
3828
3913
  name: filter.name,
@@ -3837,15 +3922,15 @@ var DataList = (props) => {
3837
3922
  },
3838
3923
  filter.name
3839
3924
  )),
3840
- props.addLinkHref && /* @__PURE__ */ jsxs18(
3925
+ props.addLinkHref && /* @__PURE__ */ jsxs19(
3841
3926
  Hyperlink,
3842
3927
  {
3843
3928
  className: "gap-1",
3844
3929
  linkType: "Primary" /* Solid */,
3845
3930
  href: props.addLinkHref,
3846
3931
  children: [
3847
- /* @__PURE__ */ jsx43(Icon_default, { name: "plus", className: "w-4 h-4" }),
3848
- /* @__PURE__ */ jsx43("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
3932
+ /* @__PURE__ */ jsx44(Icon_default, { name: "plus", className: "w-4 h-4" }),
3933
+ /* @__PURE__ */ jsx44("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
3849
3934
  ]
3850
3935
  }
3851
3936
  )
@@ -3853,8 +3938,8 @@ var DataList = (props) => {
3853
3938
  ]
3854
3939
  }
3855
3940
  ),
3856
- /* @__PURE__ */ jsxs18("div", { className: "flex-grow overflow-y-auto justify-end bg-white rounded shadow h-[75vh]", children: [
3857
- /* @__PURE__ */ jsx43("div", { children: /* @__PURE__ */ jsx43("table", { className: "w-full divide-y divide-gray-200", children: /* @__PURE__ */ jsx43("thead", { className: "bg-gray-50", children: /* @__PURE__ */ jsx43("tr", { children: props?.columns?.map((column) => {
3941
+ /* @__PURE__ */ jsxs19("div", { className: "flex-grow overflow-y-auto justify-end bg-white rounded shadow h-[75vh]", children: [
3942
+ /* @__PURE__ */ jsx44("div", { children: /* @__PURE__ */ jsx44("table", { className: "w-full divide-y divide-gray-200", children: /* @__PURE__ */ jsx44("thead", { className: "bg-gray-50", children: /* @__PURE__ */ jsx44("tr", { children: props?.columns?.map((column) => {
3858
3943
  let url = builder.getNewOrderByUrl(column.name);
3859
3944
  let icon = "chevronUpDown";
3860
3945
  if (orderBy.includes(`${column.name} desc`)) {
@@ -3864,18 +3949,18 @@ var DataList = (props) => {
3864
3949
  icon = "chevronUp";
3865
3950
  url = builder.getNewOrderByUrl(column.name + " desc");
3866
3951
  }
3867
- return /* @__PURE__ */ jsx43(
3952
+ return /* @__PURE__ */ jsx44(
3868
3953
  "th",
3869
3954
  {
3870
3955
  className: "px-6 py-3 text-left font-medium bg-neutral-soft " + (column.enableSorting ? "cursor-pointer " : "") + column.width + (column.controlType == ViewControlTypes_default.money ? " text-right" : ""),
3871
- children: /* @__PURE__ */ jsx43(
3956
+ children: /* @__PURE__ */ jsx44(
3872
3957
  Hyperlink,
3873
3958
  {
3874
3959
  href: column.enableSorting ? url : void 0,
3875
3960
  className: "text-body-950",
3876
- children: /* @__PURE__ */ jsxs18("span", { className: "flex items-center space-x-1", children: [
3877
- /* @__PURE__ */ jsx43("span", { children: column.label }),
3878
- column.enableSorting && /* @__PURE__ */ jsx43(Icon_default, { className: "w-4 h-4", name: icon })
3961
+ children: /* @__PURE__ */ jsxs19("span", { className: "flex items-center space-x-1", children: [
3962
+ /* @__PURE__ */ jsx44("span", { children: column.label }),
3963
+ column.enableSorting && /* @__PURE__ */ jsx44(Icon_default, { className: "w-4 h-4", name: icon })
3879
3964
  ] })
3880
3965
  }
3881
3966
  )
@@ -3883,7 +3968,7 @@ var DataList = (props) => {
3883
3968
  column.name
3884
3969
  );
3885
3970
  }) }) }) }) }),
3886
- /* @__PURE__ */ jsx43("div", { className: "w-full text-center bg-transparent pt-5", children: "There are no entries in the table at the moment." })
3971
+ /* @__PURE__ */ jsx44("div", { className: "w-full text-center bg-transparent pt-5", children: "There are no entries in the table at the moment." })
3887
3972
  ] })
3888
3973
  ] })
3889
3974
  ] });
@@ -3891,9 +3976,9 @@ var DataList = (props) => {
3891
3976
  var DataList_default = DataList;
3892
3977
 
3893
3978
  // src/components/dataForm/DataListRenderer.tsx
3894
- import React29, { useState as useState3, useEffect as useEffect4 } from "react";
3979
+ import React30, { useState as useState4, useEffect as useEffect5 } from "react";
3895
3980
  import { usePathname as usePathname2 } from "next/navigation";
3896
- import { jsx as jsx44, jsxs as jsxs19 } from "react/jsx-runtime";
3981
+ import { jsx as jsx45, jsxs as jsxs20 } from "react/jsx-runtime";
3897
3982
  var viewControlMap = {
3898
3983
  number: ViewControlTypes.number,
3899
3984
  lineText: ViewControlTypes.lineText,
@@ -3948,14 +4033,14 @@ var DataListRenderer = ({
3948
4033
  widgetProps
3949
4034
  }) => {
3950
4035
  const serviceClient = new ServiceClient_default(apiBaseUrl, session);
3951
- const [columns, setColumns] = useState3([]);
3952
- const [dataset, setDataset] = useState3();
3953
- const [filter, setFilters] = useState3([]);
3954
- const [addLinkHref, setAddLinkHref] = useState3("");
3955
- const [addLinkText, setAddLinkText] = useState3("");
3956
- const [serviceRoute, setServiceRoute] = useState3("");
4036
+ const [columns, setColumns] = useState4([]);
4037
+ const [dataset, setDataset] = useState4();
4038
+ const [filter, setFilters] = useState4([]);
4039
+ const [addLinkHref, setAddLinkHref] = useState4("");
4040
+ const [addLinkText, setAddLinkText] = useState4("");
4041
+ const [serviceRoute, setServiceRoute] = useState4("");
3957
4042
  const pathname = usePathname2();
3958
- useEffect4(() => {
4043
+ useEffect5(() => {
3959
4044
  if (!formDefinition) return;
3960
4045
  setColumns(mapApiToColumns(formDefinition));
3961
4046
  setFilters(mapApiToFilters(formDefinition));
@@ -3968,7 +4053,7 @@ var DataListRenderer = ({
3968
4053
  setAddLinkHref(resolvedAddLinkHref);
3969
4054
  setAddLinkText(formDefinition?.siteFormDataList?.addLinkText ?? "");
3970
4055
  }, [formDefinition, params]);
3971
- useEffect4(() => {
4056
+ useEffect5(() => {
3972
4057
  const fetchData = async () => {
3973
4058
  if (!serviceRoute) return;
3974
4059
  const resolvedRoute = resolveRoutePlaceholders2(serviceRoute, params);
@@ -3988,13 +4073,13 @@ var DataListRenderer = ({
3988
4073
  isActive: landingPageUrl === pathname
3989
4074
  };
3990
4075
  });
3991
- return /* @__PURE__ */ jsxs19(React29.Fragment, { children: [
4076
+ return /* @__PURE__ */ jsxs20(React30.Fragment, { children: [
3992
4077
  resolvedTabs.length > 0 && // <NavigationTabsV2
3993
4078
  // tabs={resolvedTabs}
3994
4079
  // params={(widgetProps?.params ?? params) as Record<string, any>}
3995
4080
  // />
3996
- /* @__PURE__ */ jsx44(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
3997
- /* @__PURE__ */ jsx44(
4081
+ /* @__PURE__ */ jsx45(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
4082
+ /* @__PURE__ */ jsx45(
3998
4083
  DataList_default,
3999
4084
  {
4000
4085
  addLinkHref,
@@ -4013,10 +4098,10 @@ var DataListRenderer = ({
4013
4098
  var DataListRenderer_default = DataListRenderer;
4014
4099
 
4015
4100
  // src/components/dataForm/DataForm.tsx
4016
- import React31, { useCallback as useCallback4, useEffect as useEffect5, useReducer as useReducer2, useRef as useRef2 } from "react";
4101
+ import React32, { useCallback as useCallback5, useEffect as useEffect6, useReducer as useReducer2, useRef as useRef3 } from "react";
4017
4102
 
4018
4103
  // src/components/dataForm/DataFormChildSection.tsx
4019
- import React30, { useCallback as useCallback3 } from "react";
4104
+ import React31, { useCallback as useCallback4 } from "react";
4020
4105
 
4021
4106
  // src/components/dataForm/StyleTypes.tsx
4022
4107
  var StyleTypes2 = /* @__PURE__ */ ((StyleTypes3) => {
@@ -4039,7 +4124,7 @@ var FORM_CHILD_ONE_TO_ONE_UPDATE = "FORM_CHILD_ONE_TO_ONE_UPDATE";
4039
4124
  var FORM_CHILD_ROW_ADD = "FORM_CHILD_ROW_ADD";
4040
4125
 
4041
4126
  // src/components/dataForm/DataFormChildSection.tsx
4042
- import { jsx as jsx45, jsxs as jsxs20 } from "react/jsx-runtime";
4127
+ import { jsx as jsx46, jsxs as jsxs21 } from "react/jsx-runtime";
4043
4128
  var DataFormChildSection = (props) => {
4044
4129
  const { section } = props;
4045
4130
  const isOneToOne = section.relationshipType === "one-to-one";
@@ -4051,7 +4136,7 @@ var DataFormChildSection = (props) => {
4051
4136
  return childItems.map((item, originalIndex) => ({ item, originalIndex })).filter((x) => !x.item.isDeleted) || [];
4052
4137
  };
4053
4138
  const childItemsToRender = getChildItemsForRendering();
4054
- const handleChildInputChange = useCallback3(
4139
+ const handleChildInputChange = useCallback4(
4055
4140
  (updatedValues) => {
4056
4141
  if (isOneToOne) {
4057
4142
  props.callback({
@@ -4078,7 +4163,7 @@ var DataFormChildSection = (props) => {
4078
4163
  },
4079
4164
  [props, isOneToOne, childItemsToRender]
4080
4165
  );
4081
- const onAddRow = useCallback3(() => {
4166
+ const onAddRow = useCallback4(() => {
4082
4167
  props.callback({
4083
4168
  sectionName: props.section.name,
4084
4169
  actionType: FORM_CHILD_ROW_ADD,
@@ -4087,7 +4172,7 @@ var DataFormChildSection = (props) => {
4087
4172
  rowIndex: -1
4088
4173
  });
4089
4174
  }, [props]);
4090
- const onDeleteRow = useCallback3(
4175
+ const onDeleteRow = useCallback4(
4091
4176
  (filteredIndex) => {
4092
4177
  const visibleItem = childItemsToRender[filteredIndex];
4093
4178
  if (visibleItem) {
@@ -4107,14 +4192,14 @@ var DataFormChildSection = (props) => {
4107
4192
  childItemsToRender,
4108
4193
  allChildItems: childItems
4109
4194
  });
4110
- return /* @__PURE__ */ jsx45(React30.Fragment, { children: /* @__PURE__ */ jsxs20("div", { className: "rounded border-neutral-200 border px-6 py-4 mb-2", children: [
4111
- section.sectionTitle && /* @__PURE__ */ jsx45("div", { className: "mb-4 text-lg font-medium text-body-950", children: section.sectionTitle }),
4112
- /* @__PURE__ */ jsx45("div", { className: "flex-grow flex flex-col justify-between overflow-y-auto", children: /* @__PURE__ */ jsxs20("div", { className: "flex flex-col justify-between gap-2", children: [
4113
- /* @__PURE__ */ jsx45("div", { children: /* @__PURE__ */ jsxs20("table", { className: "w-full border-separate divide-y divide-gray-200", children: [
4114
- (!isOneToOne || childItemsToRender.length > 0) && /* @__PURE__ */ jsx45("thead", { className: "", children: section.sectionRows.map((sectionRow, sectionRowIndex) => {
4115
- return /* @__PURE__ */ jsxs20("tr", { className: "", children: [
4195
+ return /* @__PURE__ */ jsx46(React31.Fragment, { children: /* @__PURE__ */ jsxs21("div", { className: "rounded border-neutral-200 border px-6 py-4 mb-2", children: [
4196
+ section.sectionTitle && /* @__PURE__ */ jsx46("div", { className: "mb-4 text-lg font-medium text-body-950", children: section.sectionTitle }),
4197
+ /* @__PURE__ */ jsx46("div", { className: "flex-grow flex flex-col justify-between overflow-y-auto", children: /* @__PURE__ */ jsxs21("div", { className: "flex flex-col justify-between gap-2", children: [
4198
+ /* @__PURE__ */ jsx46("div", { children: /* @__PURE__ */ jsxs21("table", { className: "w-full border-separate divide-y divide-gray-200", children: [
4199
+ (!isOneToOne || childItemsToRender.length > 0) && /* @__PURE__ */ jsx46("thead", { className: "", children: section.sectionRows.map((sectionRow, sectionRowIndex) => {
4200
+ return /* @__PURE__ */ jsxs21("tr", { className: "", children: [
4116
4201
  sectionRow.elements.map((field, index) => {
4117
- return /* @__PURE__ */ jsx45(
4202
+ return /* @__PURE__ */ jsx46(
4118
4203
  "th",
4119
4204
  {
4120
4205
  className: "py-3 font-normal text-left",
@@ -4123,21 +4208,21 @@ var DataFormChildSection = (props) => {
4123
4208
  field.name
4124
4209
  );
4125
4210
  }),
4126
- !section.readonly && !isOneToOne && /* @__PURE__ */ jsx45("th", { className: "py-3 font-normal text-left", children: "Actions" })
4211
+ !section.readonly && !isOneToOne && /* @__PURE__ */ jsx46("th", { className: "py-3 font-normal text-left", children: "Actions" })
4127
4212
  ] }, sectionRowIndex);
4128
4213
  }) }),
4129
- /* @__PURE__ */ jsx45("tbody", { className: "divide-y divide-gray-200", children: childItemsToRender.map((visibleItem, filteredIndex) => {
4214
+ /* @__PURE__ */ jsx46("tbody", { className: "divide-y divide-gray-200", children: childItemsToRender.map((visibleItem, filteredIndex) => {
4130
4215
  const { item, originalIndex } = visibleItem;
4131
4216
  const rowKey = originalIndex;
4132
- return /* @__PURE__ */ jsx45(React30.Fragment, { children: section.sectionRows.map(
4217
+ return /* @__PURE__ */ jsx46(React31.Fragment, { children: section.sectionRows.map(
4133
4218
  (sectionRow, sectionRowIndex) => {
4134
- return /* @__PURE__ */ jsxs20(
4219
+ return /* @__PURE__ */ jsxs21(
4135
4220
  "tr",
4136
4221
  {
4137
4222
  className: "",
4138
4223
  children: [
4139
4224
  sectionRow.elements.map((field, index) => {
4140
- return /* @__PURE__ */ jsx45("td", { children: /* @__PURE__ */ jsx45("div", { className: "flex-1", children: /* @__PURE__ */ jsx45("div", { className: "w-11/12", children: /* @__PURE__ */ jsx45(
4225
+ return /* @__PURE__ */ jsx46("td", { children: /* @__PURE__ */ jsx46("div", { className: "flex-1", children: /* @__PURE__ */ jsx46("div", { className: "w-11/12", children: /* @__PURE__ */ jsx46(
4141
4226
  InputControl_default,
4142
4227
  {
4143
4228
  index: filteredIndex,
@@ -4157,7 +4242,7 @@ var DataFormChildSection = (props) => {
4157
4242
  }
4158
4243
  ) }) }) }, field.name);
4159
4244
  }),
4160
- !section.readonly && !isOneToOne && /* @__PURE__ */ jsx45("td", { children: /* @__PURE__ */ jsx45(
4245
+ !section.readonly && !isOneToOne && /* @__PURE__ */ jsx46("td", { children: /* @__PURE__ */ jsx46(
4161
4246
  ClientButton_default,
4162
4247
  {
4163
4248
  ButtonType: StyleTypes2.Hollow,
@@ -4166,7 +4251,7 @@ var DataFormChildSection = (props) => {
4166
4251
  },
4167
4252
  dataRole: "delete",
4168
4253
  tabIndex: -1,
4169
- children: /* @__PURE__ */ jsx45(
4254
+ children: /* @__PURE__ */ jsx46(
4170
4255
  Icon_default,
4171
4256
  {
4172
4257
  className: "w-4 h-4",
@@ -4183,7 +4268,7 @@ var DataFormChildSection = (props) => {
4183
4268
  ) }, rowKey);
4184
4269
  }) })
4185
4270
  ] }) }),
4186
- !section.readonly && !isOneToOne && /* @__PURE__ */ jsx45("div", { className: "ml-1", children: /* @__PURE__ */ jsx45(
4271
+ !section.readonly && !isOneToOne && /* @__PURE__ */ jsx46("div", { className: "ml-1", children: /* @__PURE__ */ jsx46(
4187
4272
  ClientButton_default,
4188
4273
  {
4189
4274
  ButtonType: "Link" /* Link */,
@@ -4198,9 +4283,9 @@ var DataFormChildSection = (props) => {
4198
4283
  var DataFormChildSection_default = DataFormChildSection;
4199
4284
 
4200
4285
  // src/components/dataForm/DataForm.tsx
4201
- import { jsx as jsx46, jsxs as jsxs21 } from "react/jsx-runtime";
4286
+ import { jsx as jsx47, jsxs as jsxs22 } from "react/jsx-runtime";
4202
4287
  var DataForm = (props) => {
4203
- const formRef = useRef2(null);
4288
+ const formRef = useRef3(null);
4204
4289
  console.log(props.dataItem, "dssads");
4205
4290
  const initialState = {
4206
4291
  inputValues: {},
@@ -4211,7 +4296,7 @@ var DataForm = (props) => {
4211
4296
  };
4212
4297
  const [formState, dispatch] = useReducer2(FormReducer_default, initialState);
4213
4298
  console.log(props.sections, "sections");
4214
- const clearHiddenChildSections = useCallback4(
4299
+ const clearHiddenChildSections = useCallback5(
4215
4300
  (changedProperty, newValues) => {
4216
4301
  if (!props.sections) return;
4217
4302
  const allChildSections = [];
@@ -4249,7 +4334,7 @@ var DataForm = (props) => {
4249
4334
  },
4250
4335
  [props.sections, formState.inputValues]
4251
4336
  );
4252
- const handleInputChange = useCallback4(
4337
+ const handleInputChange = useCallback5(
4253
4338
  async (updatedValues) => {
4254
4339
  dispatch({
4255
4340
  type: FORM_INPUT_UPDATE,
@@ -4264,7 +4349,7 @@ var DataForm = (props) => {
4264
4349
  },
4265
4350
  [dispatch, formState.inputValues, clearHiddenChildSections]
4266
4351
  );
4267
- const fetchData = useCallback4(async () => {
4352
+ const fetchData = useCallback5(async () => {
4268
4353
  if (!props.rules) return;
4269
4354
  if (Object.keys(formState.inputValues).length === 0) {
4270
4355
  return;
@@ -4295,7 +4380,7 @@ var DataForm = (props) => {
4295
4380
  console.error("Error fetching data:", error);
4296
4381
  }
4297
4382
  }, [formState.lastPropertyChanged, formState.inputValues]);
4298
- useEffect5(() => {
4383
+ useEffect6(() => {
4299
4384
  fetchData();
4300
4385
  }, [formState.inputValues, formState.lastPropertyChanged]);
4301
4386
  function replacePlaceholders(template, context, params) {
@@ -4315,7 +4400,7 @@ var DataForm = (props) => {
4315
4400
  }
4316
4401
  );
4317
4402
  }
4318
- const handleChildSectionChangeCallback = useCallback4(
4403
+ const handleChildSectionChangeCallback = useCallback5(
4319
4404
  (params) => {
4320
4405
  dispatch({
4321
4406
  type: params.actionType,
@@ -4360,7 +4445,7 @@ var DataForm = (props) => {
4360
4445
  });
4361
4446
  return cloned;
4362
4447
  }
4363
- const onClick = useCallback4(async () => {
4448
+ const onClick = useCallback5(async () => {
4364
4449
  if (props.onClick) {
4365
4450
  const isEdit = props.dataItem && Object.keys(props.dataItem).length > 0;
4366
4451
  const normalizedValues = normalizeChildSections(
@@ -4376,21 +4461,21 @@ var DataForm = (props) => {
4376
4461
  return { isSuccessful: true };
4377
4462
  }
4378
4463
  }, [formState, props]);
4379
- const handleAdditionalOnClick = useCallback4(async () => {
4464
+ const handleAdditionalOnClick = useCallback5(async () => {
4380
4465
  if (props.additionalActions?.onClick) {
4381
4466
  return await props.additionalActions.onClick(formState);
4382
4467
  } else {
4383
4468
  return { isSuccessful: true, message: "Action completed successfully" };
4384
4469
  }
4385
4470
  }, [formState, props]);
4386
- const onDelete = useCallback4(async () => {
4471
+ const onDelete = useCallback5(async () => {
4387
4472
  if (props.onDelete) {
4388
4473
  return await props.onDelete(formState);
4389
4474
  } else {
4390
4475
  return { isSuccessful: true };
4391
4476
  }
4392
4477
  }, [formState, props]);
4393
- useEffect5(() => {
4478
+ useEffect6(() => {
4394
4479
  if (props.dataItem) {
4395
4480
  dispatch({
4396
4481
  type: FORM_INITIAL_UPDATE,
@@ -4418,19 +4503,19 @@ var DataForm = (props) => {
4418
4503
  return false;
4419
4504
  }
4420
4505
  }
4421
- return /* @__PURE__ */ jsx46(React31.Fragment, { children: /* @__PURE__ */ jsxs21("div", { className: "flex-grow flex flex-col", children: [
4422
- props.title && /* @__PURE__ */ jsx46("div", { className: "inline-flex items-center gap-2 px-6 py-3 border border-neutral-200 bg-white shadow-sm rounded-t-md", children: /* @__PURE__ */ jsxs21(
4506
+ return /* @__PURE__ */ jsx47(React32.Fragment, { children: /* @__PURE__ */ jsxs22("div", { className: "flex-grow flex flex-col", children: [
4507
+ props.title && /* @__PURE__ */ jsx47("div", { className: "inline-flex items-center gap-2 px-6 py-3 border border-neutral-200 bg-white shadow-sm rounded-t-md", children: /* @__PURE__ */ jsxs22(
4423
4508
  "div",
4424
4509
  {
4425
4510
  className: "inline-flex items-center gap-2 cursor-pointer",
4426
4511
  onClick: () => window.history.back(),
4427
4512
  children: [
4428
- /* @__PURE__ */ jsx46(Icon_default, { name: "chevronLeft", className: "w-4 h-4 text-primary-800" }),
4429
- /* @__PURE__ */ jsx46("h2", { className: "text-lg font-semibold text-primary-800", children: props.title })
4513
+ /* @__PURE__ */ jsx47(Icon_default, { name: "chevronLeft", className: "w-4 h-4 text-primary-800" }),
4514
+ /* @__PURE__ */ jsx47("h2", { className: "text-lg font-semibold text-primary-800", children: props.title })
4430
4515
  ]
4431
4516
  }
4432
4517
  ) }),
4433
- /* @__PURE__ */ jsx46(
4518
+ /* @__PURE__ */ jsx47(
4434
4519
  "form",
4435
4520
  {
4436
4521
  className: "group space-y-6 pb-6 overflow-y-auto",
@@ -4451,8 +4536,8 @@ var DataForm = (props) => {
4451
4536
  }
4452
4537
  }
4453
4538
  },
4454
- children: /* @__PURE__ */ jsx46("div", { className: "flex flex-col gap-6", children: props.sections?.map((section, sectionIndex) => {
4455
- return /* @__PURE__ */ jsx46(React31.Fragment, { children: !section.isChildSection && /* @__PURE__ */ jsxs21("div", { className: " rounded-b-lg bg-white shadow border-neutral-200 border px-8 py-6 ", children: [
4539
+ children: /* @__PURE__ */ jsx47("div", { className: "flex flex-col gap-6", children: props.sections?.map((section, sectionIndex) => {
4540
+ return /* @__PURE__ */ jsx47(React32.Fragment, { children: !section.isChildSection && /* @__PURE__ */ jsxs22("div", { className: " rounded-b-lg bg-white shadow border-neutral-200 border px-8 py-6 ", children: [
4456
4541
  section.sectionRows?.map(
4457
4542
  (sectionRow, sectionRowIndex) => {
4458
4543
  const elementsCount = sectionRow.elements.length;
@@ -4463,14 +4548,14 @@ var DataForm = (props) => {
4463
4548
  sectionRow.visible
4464
4549
  );
4465
4550
  }
4466
- return /* @__PURE__ */ jsx46(React31.Fragment, { children: isVisible && /* @__PURE__ */ jsx46("div", { className: "lg:flex gap-14 flex-1 mb-4 ", children: sectionRow.elements.map((field, index) => {
4467
- return /* @__PURE__ */ jsxs21(
4551
+ return /* @__PURE__ */ jsx47(React32.Fragment, { children: isVisible && /* @__PURE__ */ jsx47("div", { className: "lg:flex gap-14 flex-1 mb-4 ", children: sectionRow.elements.map((field, index) => {
4552
+ return /* @__PURE__ */ jsxs22(
4468
4553
  "div",
4469
4554
  {
4470
4555
  className: sectionRow.grow ? "grow" : "",
4471
4556
  children: [
4472
- /* @__PURE__ */ jsx46("div", { children: field.controlType }),
4473
- /* @__PURE__ */ jsx46(
4557
+ /* @__PURE__ */ jsx47("div", { children: field.controlType }),
4558
+ /* @__PURE__ */ jsx47(
4474
4559
  InputControl_default,
4475
4560
  {
4476
4561
  name: field.name,
@@ -4500,12 +4585,12 @@ var DataForm = (props) => {
4500
4585
  }) }) }, sectionRowIndex);
4501
4586
  }
4502
4587
  ),
4503
- /* @__PURE__ */ jsx46("div", { children: section.childSections?.map(
4588
+ /* @__PURE__ */ jsx47("div", { children: section.childSections?.map(
4504
4589
  (childSection, childSectionIndex) => {
4505
- return /* @__PURE__ */ jsx46("div", { children: childSection.name && evalutateCondition(
4590
+ return /* @__PURE__ */ jsx47("div", { children: childSection.name && evalutateCondition(
4506
4591
  formState.inputValues,
4507
4592
  childSection.visible
4508
- ) && /* @__PURE__ */ jsx46(
4593
+ ) && /* @__PURE__ */ jsx47(
4509
4594
  DataFormChildSection_default,
4510
4595
  {
4511
4596
  section: childSection,
@@ -4520,8 +4605,8 @@ var DataForm = (props) => {
4520
4605
  }) })
4521
4606
  }
4522
4607
  ),
4523
- /* @__PURE__ */ jsxs21("div", { className: "flex px-6 py-3 mt-2 mb-2 justify-end items-center gap-5", children: [
4524
- /* @__PURE__ */ jsx46("div", { children: props.additionalActions && /* @__PURE__ */ jsx46(
4608
+ /* @__PURE__ */ jsxs22("div", { className: "flex px-6 py-3 mt-2 mb-2 justify-end items-center gap-5", children: [
4609
+ /* @__PURE__ */ jsx47("div", { children: props.additionalActions && /* @__PURE__ */ jsx47(
4525
4610
  Button_default,
4526
4611
  {
4527
4612
  ButtonType: "PrimaryHollow" /* Hollow */,
@@ -4529,7 +4614,7 @@ var DataForm = (props) => {
4529
4614
  children: props.additionalActions.title
4530
4615
  }
4531
4616
  ) }),
4532
- /* @__PURE__ */ jsx46("div", { children: props.onDelete && /* @__PURE__ */ jsx46(
4617
+ /* @__PURE__ */ jsx47("div", { children: props.onDelete && /* @__PURE__ */ jsx47(
4533
4618
  Button_default,
4534
4619
  {
4535
4620
  ButtonType: "PrimaryHollow" /* Hollow */,
@@ -4540,7 +4625,7 @@ var DataForm = (props) => {
4540
4625
  children: "Delete"
4541
4626
  }
4542
4627
  ) }),
4543
- /* @__PURE__ */ jsx46("div", { children: props.onClick && /* @__PURE__ */ jsx46(
4628
+ /* @__PURE__ */ jsx47("div", { children: props.onClick && /* @__PURE__ */ jsx47(
4544
4629
  Button_default,
4545
4630
  {
4546
4631
  onValidate,
@@ -4557,7 +4642,7 @@ var DataForm = (props) => {
4557
4642
  var DataForm_default = DataForm;
4558
4643
 
4559
4644
  // src/components/dataForm/DataFormRenderer.tsx
4560
- import { jsx as jsx47, jsxs as jsxs22 } from "react/jsx-runtime";
4645
+ import { jsx as jsx48, jsxs as jsxs23 } from "react/jsx-runtime";
4561
4646
  function getAction(actions, code) {
4562
4647
  return actions?.find((a) => a.actionCode === code);
4563
4648
  }
@@ -4583,9 +4668,9 @@ var DataFormRenderer = ({
4583
4668
  "Delete"
4584
4669
  );
4585
4670
  const hasDataItem = dataItem && Object.keys(dataItem).length > 0;
4586
- return /* @__PURE__ */ jsxs22("div", { className: "flex-grow flex flex-col", children: [
4587
- widgetProps && /* @__PURE__ */ jsx47(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
4588
- /* @__PURE__ */ jsx47(
4671
+ return /* @__PURE__ */ jsxs23("div", { className: "flex-grow flex flex-col", children: [
4672
+ widgetProps && /* @__PURE__ */ jsx48(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
4673
+ /* @__PURE__ */ jsx48(
4589
4674
  DataForm_default,
4590
4675
  {
4591
4676
  title: !isAddPage ? "Edit " + formDefinition.formTitle + "- v2" : "Add " + formDefinition.formTitle + "- v2",