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

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
@@ -463,16 +463,16 @@ var ViewControl_default = ViewControl;
463
463
 
464
464
  // src/components/controls/edit/InputControl.tsx
465
465
  import dynamic7 from "next/dynamic";
466
- var InputControl = dynamic7(() => import("./InputControlClient-QMFSUGTK.mjs"), {
466
+ var InputControl = dynamic7(() => import("./InputControlClient-6MTR5RJ6.mjs"), {
467
467
  ssr: false
468
468
  });
469
469
  var InputControl_default = InputControl;
470
470
 
471
471
  // src/components/pageRenderingEngine/PageBodyRenderer.tsx
472
- import React25 from "react";
472
+ import React24 from "react";
473
473
 
474
474
  // src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
475
- import React17 from "react";
475
+ import React16 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_CLASSES3 = {
629
+ const FORMAT_CLASSES2 = {
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_CLASSES3[props.node.format] ?? ""}`, children: renderMedia() });
661
+ return /* @__PURE__ */ jsx18("div", { className: `flex ${FORMAT_CLASSES2[props.node.format] ?? ""}`, children: renderMedia() });
662
662
  }
663
663
  return renderMedia();
664
664
  };
@@ -950,88 +950,18 @@ var DatafieldNode = (props) => {
950
950
  var DatafieldNode_default = DatafieldNode;
951
951
 
952
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
- );
953
+ import dynamic10 from "next/dynamic";
954
+ import { jsx as jsx23 } from "react/jsx-runtime";
955
+ var CounterNodeClient = dynamic10(() => import("./CounterNodeClient-LNVEXZQE.mjs"), {
956
+ ssr: false
957
+ });
958
+ var CounterNode = (props) => {
959
+ return /* @__PURE__ */ jsx23(CounterNodeClient, { node: props.node });
1030
960
  };
1031
961
  var CounterNode_default = CounterNode;
1032
962
 
1033
963
  // src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
1034
- import { Fragment as Fragment2, jsx as jsx24, jsxs as jsxs9 } from "react/jsx-runtime";
964
+ import { Fragment as Fragment2, jsx as jsx24, jsxs as jsxs8 } from "react/jsx-runtime";
1035
965
  var ParagraphNode = (props) => {
1036
966
  const NodeTypes2 = {
1037
967
  ["text"]: TextNode_default,
@@ -1054,7 +984,7 @@ var ParagraphNode = (props) => {
1054
984
  if (isInlineOnlyParent) {
1055
985
  return /* @__PURE__ */ jsx24(Fragment2, { children: hasChildren && props.node.children.map((node, index) => {
1056
986
  const SelectedNode = NodeTypes2[node.type];
1057
- return /* @__PURE__ */ jsx24(React17.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx24(
987
+ return /* @__PURE__ */ jsx24(React16.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx24(
1058
988
  SelectedNode,
1059
989
  {
1060
990
  node,
@@ -1067,10 +997,10 @@ var ParagraphNode = (props) => {
1067
997
  ) }, index);
1068
998
  }) });
1069
999
  }
1070
- return /* @__PURE__ */ jsxs9("div", { className: " " + formatClasses, children: [
1000
+ return /* @__PURE__ */ jsxs8("div", { className: " " + formatClasses, children: [
1071
1001
  hasChildren && props.node.children.map((node, index) => {
1072
1002
  const SelectedNode = NodeTypes2[node.type];
1073
- return /* @__PURE__ */ jsx24(React17.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx24(
1003
+ return /* @__PURE__ */ jsx24(React16.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx24(
1074
1004
  SelectedNode,
1075
1005
  {
1076
1006
  node,
@@ -1088,7 +1018,7 @@ var ParagraphNode = (props) => {
1088
1018
  var ParagraphNode_default = ParagraphNode;
1089
1019
 
1090
1020
  // src/components/pageRenderingEngine/nodes/HeadingNode.tsx
1091
- import React18 from "react";
1021
+ import React17 from "react";
1092
1022
  import { Fragment as Fragment3, jsx as jsx25 } from "react/jsx-runtime";
1093
1023
  var HeadingNode = (props) => {
1094
1024
  const NodeTypes2 = {
@@ -1106,22 +1036,22 @@ var HeadingNode = (props) => {
1106
1036
  {
1107
1037
  }
1108
1038
  const formatClasses = FormatClass[props.node.format] || "";
1109
- return /* @__PURE__ */ jsx25(Fragment3, { children: React18.createElement(
1039
+ return /* @__PURE__ */ jsx25(Fragment3, { children: React17.createElement(
1110
1040
  HeadingTag,
1111
1041
  { className: formatClasses },
1112
1042
  props.node.children && props.node.children.map((childNode, index) => {
1113
1043
  const SelectedNode = NodeTypes2[childNode.type];
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);
1044
+ return /* @__PURE__ */ jsx25(React17.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx25(SelectedNode, { node: childNode, dataitem: props.dataitem, session: props.session, apiBaseUrl: props.apiBaseUrl, assetBaseUrl: props.assetBaseUrl, routeParameters: props.routeParameters }) }, index);
1115
1045
  })
1116
1046
  ) });
1117
1047
  };
1118
1048
  var HeadingNode_default = HeadingNode;
1119
1049
 
1120
1050
  // src/components/pageRenderingEngine/nodes/ListNode.tsx
1121
- import React20 from "react";
1051
+ import React19 from "react";
1122
1052
 
1123
1053
  // src/components/pageRenderingEngine/nodes/ListItemNode.tsx
1124
- import React19 from "react";
1054
+ import React18 from "react";
1125
1055
  import { jsx as jsx26 } from "react/jsx-runtime";
1126
1056
  var ListItemNode = (props) => {
1127
1057
  const NodeTypes2 = {
@@ -1150,33 +1080,33 @@ var ListItemNode = (props) => {
1150
1080
  }
1151
1081
  } else {
1152
1082
  foundFirstBreak = false;
1153
- return /* @__PURE__ */ jsx26(React19.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx26(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
1083
+ return /* @__PURE__ */ jsx26(React18.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx26(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
1154
1084
  }
1155
1085
  }) });
1156
1086
  };
1157
1087
  var ListItemNode_default = ListItemNode;
1158
1088
 
1159
1089
  // src/components/pageRenderingEngine/nodes/ListNode.tsx
1160
- import { jsx as jsx27, jsxs as jsxs10 } from "react/jsx-runtime";
1090
+ import { jsx as jsx27, jsxs as jsxs9 } from "react/jsx-runtime";
1161
1091
  var ListNode = (props) => {
1162
1092
  const NodeTypes2 = {
1163
1093
  listitem: ListItemNode_default
1164
1094
  };
1165
- return /* @__PURE__ */ jsxs10(React20.Fragment, { children: [
1095
+ return /* @__PURE__ */ jsxs9(React19.Fragment, { children: [
1166
1096
  props.node.listType == "bullet" && /* @__PURE__ */ jsx27("ul", { children: props.node.children && props.node.children.map((node, index) => {
1167
1097
  const SelectedNode = NodeTypes2[node.type];
1168
- return /* @__PURE__ */ jsx27(React20.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx27(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
1098
+ return /* @__PURE__ */ jsx27(React19.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx27(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
1169
1099
  }) }),
1170
1100
  props.node.listType == "number" && /* @__PURE__ */ jsx27("ol", { children: props.node.children && props.node.children.map((node, index) => {
1171
1101
  const SelectedNode = NodeTypes2[node.type];
1172
- return /* @__PURE__ */ jsx27(React20.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx27(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
1102
+ return /* @__PURE__ */ jsx27(React19.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx27(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
1173
1103
  }) })
1174
1104
  ] });
1175
1105
  };
1176
1106
  var ListNode_default = ListNode;
1177
1107
 
1178
1108
  // src/components/pageRenderingEngine/nodes/QuoteNode.tsx
1179
- import React21 from "react";
1109
+ import React20 from "react";
1180
1110
  import { jsx as jsx28 } from "react/jsx-runtime";
1181
1111
  var QuoteNode = (props) => {
1182
1112
  const NodeTypes2 = {
@@ -1186,16 +1116,16 @@ var QuoteNode = (props) => {
1186
1116
  };
1187
1117
  return /* @__PURE__ */ jsx28("blockquote", { children: props.node.children && props.node.children.map((node, index) => {
1188
1118
  const SelectedNode = NodeTypes2[node.type];
1189
- return /* @__PURE__ */ jsx28(React21.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx28(SelectedNode, { node, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
1119
+ return /* @__PURE__ */ jsx28(React20.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx28(SelectedNode, { node, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
1190
1120
  }) });
1191
1121
  };
1192
1122
  var QuoteNode_default = QuoteNode;
1193
1123
 
1194
1124
  // src/components/pageRenderingEngine/nodes/CodeNode.tsx
1195
- import React22 from "react";
1196
- import dynamic10 from "next/dynamic";
1197
- import { jsx as jsx29, jsxs as jsxs11 } from "react/jsx-runtime";
1198
- var CopyButton = dynamic10(() => import("./CopyButton-UPJPMJUB.mjs"), {
1125
+ import React21 from "react";
1126
+ import dynamic11 from "next/dynamic";
1127
+ import { jsx as jsx29, jsxs as jsxs10 } from "react/jsx-runtime";
1128
+ var CopyButton = dynamic11(() => import("./CopyButton-UPJPMJUB.mjs"), {
1199
1129
  ssr: false,
1200
1130
  // optional: fallback UI while loading
1201
1131
  loading: () => /* @__PURE__ */ jsx29("span", { className: "text-gray-400 text-xs", children: "Copy" })
@@ -1212,14 +1142,14 @@ var CodeNode = (props) => {
1212
1142
  if (node.type === "link") return node.text || node.url || "";
1213
1143
  return "";
1214
1144
  }).join("") ?? "";
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: [
1145
+ return /* @__PURE__ */ jsxs10("div", { children: [
1146
+ /* @__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: [
1217
1147
  /* @__PURE__ */ jsx29("span", { children: "Code Snippet" }),
1218
1148
  /* @__PURE__ */ jsx29(CopyButton, { text: textContent })
1219
1149
  ] }),
1220
1150
  /* @__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) => {
1221
1151
  const SelectedNode = NodeTypes2[node.type];
1222
- return /* @__PURE__ */ jsx29(React22.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx29(
1152
+ return /* @__PURE__ */ jsx29(React21.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx29(
1223
1153
  SelectedNode,
1224
1154
  {
1225
1155
  node,
@@ -1241,7 +1171,7 @@ var HorizontalRuleNode = () => {
1241
1171
  var HorizontalRuleNode_default = HorizontalRuleNode;
1242
1172
 
1243
1173
  // src/components/pageRenderingEngine/nodes/WidgetNode.tsx
1244
- import React23 from "react";
1174
+ import React22 from "react";
1245
1175
  import { Fragment as Fragment4, jsx as jsx31 } from "react/jsx-runtime";
1246
1176
  var WidgetNode = (props) => {
1247
1177
  const getWidgetParameters = () => {
@@ -1315,7 +1245,7 @@ var WidgetNode = (props) => {
1315
1245
  }
1316
1246
  return (
1317
1247
  // eslint-disable-next-line react-hooks/static-components
1318
- /* @__PURE__ */ jsx31(React23.Fragment, { children: /* @__PURE__ */ jsx31(
1248
+ /* @__PURE__ */ jsx31(React22.Fragment, { children: /* @__PURE__ */ jsx31(
1319
1249
  WidgetRenderer,
1320
1250
  {
1321
1251
  params: widgetParams,
@@ -1332,13 +1262,13 @@ var WidgetNode = (props) => {
1332
1262
  var WidgetNode_default = WidgetNode;
1333
1263
 
1334
1264
  // src/components/pageRenderingEngine/nodes/DivContainer.tsx
1335
- import dynamic14 from "next/dynamic";
1336
- import React24 from "react";
1265
+ import dynamic15 from "next/dynamic";
1266
+ import React23 from "react";
1337
1267
 
1338
1268
  // src/components/pageRenderingEngine/nodes/EmbedNode.tsx
1339
- import dynamic11 from "next/dynamic";
1269
+ import dynamic12 from "next/dynamic";
1340
1270
  import { jsx as jsx32 } from "react/jsx-runtime";
1341
- var IframeClient = dynamic11(() => import("./IframeClient-WF2KLXZB.mjs"), {
1271
+ var IframeClient = dynamic12(() => import("./IframeClient-WF2KLXZB.mjs"), {
1342
1272
  ssr: false
1343
1273
  });
1344
1274
  var EmbedNode = (props) => {
@@ -1586,9 +1516,9 @@ var PathUtility = class {
1586
1516
  var PathUtility_default = new PathUtility();
1587
1517
 
1588
1518
  // src/components/NoDataFound.tsx
1589
- import { jsx as jsx33, jsxs as jsxs12 } from "react/jsx-runtime";
1519
+ import { jsx as jsx33, jsxs as jsxs11 } from "react/jsx-runtime";
1590
1520
  var NoDataFound = () => {
1591
- return /* @__PURE__ */ jsxs12("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center bg-neutral-weak", children: [
1521
+ return /* @__PURE__ */ jsxs11("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center bg-neutral-weak", children: [
1592
1522
  /* @__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(
1593
1523
  "svg",
1594
1524
  {
@@ -1615,9 +1545,9 @@ var NoDataFound = () => {
1615
1545
  var NoDataFound_default = NoDataFound;
1616
1546
 
1617
1547
  // src/components/NoFilterResultsFound.tsx
1618
- import { jsx as jsx34, jsxs as jsxs13 } from "react/jsx-runtime";
1548
+ import { jsx as jsx34, jsxs as jsxs12 } from "react/jsx-runtime";
1619
1549
  var NoFilterResultsFound = () => {
1620
- return /* @__PURE__ */ jsxs13("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center bg-neutral-weak", children: [
1550
+ return /* @__PURE__ */ jsxs12("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center bg-neutral-weak", children: [
1621
1551
  /* @__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(
1622
1552
  "svg",
1623
1553
  {
@@ -1644,9 +1574,9 @@ var NoFilterResultsFound = () => {
1644
1574
  var NoFilterResultsFound_default = NoFilterResultsFound;
1645
1575
 
1646
1576
  // src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
1647
- import dynamic12 from "next/dynamic";
1648
- import { Fragment as Fragment5, jsx as jsx35, jsxs as jsxs14 } from "react/jsx-runtime";
1649
- var HlsPlayer3 = dynamic12(() => import("./HlsPlayer-AUZ42WTT.mjs"), { ssr: false });
1577
+ import dynamic13 from "next/dynamic";
1578
+ import { Fragment as Fragment5, jsx as jsx35, jsxs as jsxs13 } from "react/jsx-runtime";
1579
+ var HlsPlayer3 = dynamic13(() => import("./HlsPlayer-AUZ42WTT.mjs"), { ssr: false });
1650
1580
  var deviceToMediaQuery = (device) => {
1651
1581
  switch (device) {
1652
1582
  case "lg":
@@ -1801,7 +1731,7 @@ var ImageGalleryNode = (props) => {
1801
1731
  right: "justify-end"
1802
1732
  };
1803
1733
  const formatClasses = FormatClass[props.node.format || ""] || "";
1804
- return /* @__PURE__ */ jsxs14(Fragment5, { children: [
1734
+ return /* @__PURE__ */ jsxs13(Fragment5, { children: [
1805
1735
  hlsSources.length > 0 && /* @__PURE__ */ jsx35(Fragment5, { children: /* @__PURE__ */ jsx35(
1806
1736
  HlsPlayer3,
1807
1737
  {
@@ -1817,7 +1747,7 @@ var ImageGalleryNode = (props) => {
1817
1747
  styles: hlsStyles
1818
1748
  }
1819
1749
  ) }),
1820
- (staticFallback || staticSources.length > 0) && /* @__PURE__ */ jsx35(Fragment5, { children: staticFallback ? /* @__PURE__ */ jsxs14("picture", { children: [
1750
+ (staticFallback || staticSources.length > 0) && /* @__PURE__ */ jsx35(Fragment5, { children: staticFallback ? /* @__PURE__ */ jsxs13("picture", { children: [
1821
1751
  DEVICE_ORDER.map((deviceKey) => {
1822
1752
  const match = staticSources.find(
1823
1753
  (img) => img.device === deviceKey
@@ -2040,7 +1970,7 @@ var shouldRenderContainer = (node, dataItem, session) => {
2040
1970
  };
2041
1971
 
2042
1972
  // src/components/pageRenderingEngine/nodes/DocumentNode.tsx
2043
- import { Fragment as Fragment6, jsx as jsx36, jsxs as jsxs15 } from "react/jsx-runtime";
1973
+ import { Fragment as Fragment6, jsx as jsx36, jsxs as jsxs14 } from "react/jsx-runtime";
2044
1974
  var getNestedValue5 = (obj, path) => {
2045
1975
  if (!obj || !path) return void 0;
2046
1976
  return path.split(".").reduce((current, key) => {
@@ -2071,7 +2001,7 @@ var parseDocuments = (value) => {
2071
2001
  }
2072
2002
  return [];
2073
2003
  };
2074
- var PdfIcon = () => /* @__PURE__ */ jsxs15(
2004
+ var PdfIcon = () => /* @__PURE__ */ jsxs14(
2075
2005
  "svg",
2076
2006
  {
2077
2007
  xmlns: "http://www.w3.org/2000/svg",
@@ -2095,7 +2025,7 @@ var PdfIcon = () => /* @__PURE__ */ jsxs15(
2095
2025
  ]
2096
2026
  }
2097
2027
  );
2098
- var ExcelIcon = () => /* @__PURE__ */ jsxs15(
2028
+ var ExcelIcon = () => /* @__PURE__ */ jsxs14(
2099
2029
  "svg",
2100
2030
  {
2101
2031
  xmlns: "http://www.w3.org/2000/svg",
@@ -2118,7 +2048,7 @@ var ExcelIcon = () => /* @__PURE__ */ jsxs15(
2118
2048
  ),
2119
2049
  /* @__PURE__ */ jsx36("path", { fill: "#0c8045", d: "M14 15.003H29V24.005000000000003H14z" }),
2120
2050
  /* @__PURE__ */ jsx36("path", { fill: "#17472a", d: "M14 24.005H29V33.055H14z" }),
2121
- /* @__PURE__ */ jsxs15("g", { children: [
2051
+ /* @__PURE__ */ jsxs14("g", { children: [
2122
2052
  /* @__PURE__ */ jsx36(
2123
2053
  "path",
2124
2054
  {
@@ -2153,7 +2083,7 @@ var ExcelIcon = () => /* @__PURE__ */ jsxs15(
2153
2083
  ]
2154
2084
  }
2155
2085
  );
2156
- var WordIcon = () => /* @__PURE__ */ jsxs15(
2086
+ var WordIcon = () => /* @__PURE__ */ jsxs14(
2157
2087
  "svg",
2158
2088
  {
2159
2089
  xmlns: "http://www.w3.org/2000/svg",
@@ -2168,7 +2098,7 @@ var WordIcon = () => /* @__PURE__ */ jsxs15(
2168
2098
  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"
2169
2099
  }
2170
2100
  ),
2171
- /* @__PURE__ */ jsxs15(
2101
+ /* @__PURE__ */ jsxs14(
2172
2102
  "linearGradient",
2173
2103
  {
2174
2104
  id: "qh2LT5tehRDFkLLfb-odWa",
@@ -2223,7 +2153,7 @@ var WordIcon = () => /* @__PURE__ */ jsxs15(
2223
2153
  ]
2224
2154
  }
2225
2155
  );
2226
- var StandardIcon = () => /* @__PURE__ */ jsxs15(
2156
+ var StandardIcon = () => /* @__PURE__ */ jsxs14(
2227
2157
  "svg",
2228
2158
  {
2229
2159
  xmlns: "http://www.w3.org/2000/svg",
@@ -2235,7 +2165,7 @@ var StandardIcon = () => /* @__PURE__ */ jsxs15(
2235
2165
  ]
2236
2166
  }
2237
2167
  );
2238
- var PowerPointIcon = () => /* @__PURE__ */ jsxs15(
2168
+ var PowerPointIcon = () => /* @__PURE__ */ jsxs14(
2239
2169
  "svg",
2240
2170
  {
2241
2171
  xmlns: "http://www.w3.org/2000/svg",
@@ -2268,7 +2198,7 @@ var PowerPointIcon = () => /* @__PURE__ */ jsxs15(
2268
2198
  ]
2269
2199
  }
2270
2200
  );
2271
- var TextIcon = () => /* @__PURE__ */ jsxs15(
2201
+ var TextIcon = () => /* @__PURE__ */ jsxs14(
2272
2202
  "svg",
2273
2203
  {
2274
2204
  xmlns: "http://www.w3.org/2000/svg",
@@ -2287,7 +2217,7 @@ var TextIcon = () => /* @__PURE__ */ jsxs15(
2287
2217
  ]
2288
2218
  }
2289
2219
  );
2290
- var ArchiveIcon = () => /* @__PURE__ */ jsxs15(
2220
+ var ArchiveIcon = () => /* @__PURE__ */ jsxs14(
2291
2221
  "svg",
2292
2222
  {
2293
2223
  xmlns: "http://www.w3.org/2000/svg",
@@ -2390,7 +2320,7 @@ var DocumentNode = (props) => {
2390
2320
  documents = parseDocuments(props.node.documentAsset);
2391
2321
  }
2392
2322
  if (documents.length === 0) {
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: [
2323
+ return /* @__PURE__ */ jsx36(Fragment6, { children: /* @__PURE__ */ jsxs14("div", { className: "py-4 px-2 bg-neutral-weak border rounded text-center flex flex-col gap-2", children: [
2394
2324
  /* @__PURE__ */ jsx36("div", { className: "mx-auto w-10 h-10 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ jsx36(
2395
2325
  "svg",
2396
2326
  {
@@ -2432,16 +2362,16 @@ var DocumentNode = (props) => {
2432
2362
  }
2433
2363
  }
2434
2364
  const { Icon, extLabel } = getFileDetails(documentUrl);
2435
- return /* @__PURE__ */ jsxs15(
2365
+ return /* @__PURE__ */ jsxs14(
2436
2366
  "div",
2437
2367
  {
2438
2368
  className: `flex items-center justify-between py-4 bg-default gap-4 ${index !== 0 ? "border-t" : ""}`,
2439
2369
  children: [
2440
- /* @__PURE__ */ jsxs15("div", { className: "flex items-center space-x-4 min-w-0", children: [
2370
+ /* @__PURE__ */ jsxs14("div", { className: "flex items-center space-x-4 min-w-0", children: [
2441
2371
  /* @__PURE__ */ jsx36("div", { className: "flex items-center justify-center p-2 rounded bg-neutral-soft shrink-0", children: /* @__PURE__ */ jsx36(Icon, {}) }),
2442
2372
  /* @__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 }) })
2443
2373
  ] }),
2444
- /* @__PURE__ */ jsxs15(
2374
+ /* @__PURE__ */ jsxs14(
2445
2375
  "a",
2446
2376
  {
2447
2377
  href: documentUrl,
@@ -2449,7 +2379,7 @@ var DocumentNode = (props) => {
2449
2379
  rel: "noopener noreferrer",
2450
2380
  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",
2451
2381
  children: [
2452
- /* @__PURE__ */ jsxs15(
2382
+ /* @__PURE__ */ jsxs14(
2453
2383
  "svg",
2454
2384
  {
2455
2385
  className: "w-4 h-4 mr-2",
@@ -2491,9 +2421,9 @@ var DocumentNode = (props) => {
2491
2421
  var DocumentNode_default = DocumentNode;
2492
2422
 
2493
2423
  // src/components/pageRenderingEngine/nodes/GoogleMapNode.tsx
2494
- import dynamic13 from "next/dynamic";
2424
+ import dynamic14 from "next/dynamic";
2495
2425
  import { jsx as jsx37 } from "react/jsx-runtime";
2496
- var IframeClient2 = dynamic13(() => import("./IframeClient-WF2KLXZB.mjs"), {
2426
+ var IframeClient2 = dynamic14(() => import("./IframeClient-WF2KLXZB.mjs"), {
2497
2427
  ssr: false
2498
2428
  });
2499
2429
  var GoogleMapNode = (props) => {
@@ -2510,12 +2440,12 @@ var GoogleMapNode = (props) => {
2510
2440
  var GoogleMapNode_default = GoogleMapNode;
2511
2441
 
2512
2442
  // src/components/pageRenderingEngine/nodes/DivContainer.tsx
2513
- import { jsx as jsx38, jsxs as jsxs16 } from "react/jsx-runtime";
2514
- var Pagination = dynamic14(() => import("./Pagination-6R4XZLF6.mjs"), { ssr: true });
2515
- var DataBindingControls = dynamic14(() => import("./DataBindingControls-VSLL4WV2.mjs"), {
2443
+ import { jsx as jsx38, jsxs as jsxs15 } from "react/jsx-runtime";
2444
+ var Pagination = dynamic15(() => import("./Pagination-6R4XZLF6.mjs"), { ssr: true });
2445
+ var DataBindingControls = dynamic15(() => import("./DataBindingControls-VSLL4WV2.mjs"), {
2516
2446
  ssr: true
2517
2447
  });
2518
- var Slider = dynamic14(() => import("./Slider-42T6THEQ.mjs"), {
2448
+ var Slider = dynamic15(() => import("./Slider-42T6THEQ.mjs"), {
2519
2449
  ssr: false
2520
2450
  });
2521
2451
  function toCamelCase(str) {
@@ -2796,7 +2726,7 @@ var DivContainer = async (props) => {
2796
2726
  }
2797
2727
  const SelectedNode = NodeTypes2[node.type];
2798
2728
  if (!SelectedNode) return null;
2799
- return /* @__PURE__ */ jsx38(React24.Fragment, { children: /* @__PURE__ */ jsx38(
2729
+ return /* @__PURE__ */ jsx38(React23.Fragment, { children: /* @__PURE__ */ jsx38(
2800
2730
  SelectedNode,
2801
2731
  {
2802
2732
  node,
@@ -2888,7 +2818,7 @@ var DivContainer = async (props) => {
2888
2818
  item,
2889
2819
  idx,
2890
2820
  props.href ? void 0 : item?.links?.view
2891
- )?.map((child, i) => /* @__PURE__ */ jsx38(React24.Fragment, { children: child }, i)) : renderChildren(props.node.children, props, item, idx)
2821
+ )?.map((child, i) => /* @__PURE__ */ jsx38(React23.Fragment, { children: child }, i)) : renderChildren(props.node.children, props, item, idx)
2892
2822
  );
2893
2823
  }
2894
2824
  return props.node.children.flatMap((node, childIndex) => {
@@ -3024,14 +2954,14 @@ var DivContainer = async (props) => {
3024
2954
  dataset: response
3025
2955
  }
3026
2956
  ) : null;
3027
- return /* @__PURE__ */ jsxs16(React24.Fragment, { children: [
2957
+ return /* @__PURE__ */ jsxs15(React23.Fragment, { children: [
3028
2958
  /* @__PURE__ */ jsx38(
3029
2959
  "style",
3030
2960
  {
3031
2961
  dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS }
3032
2962
  }
3033
2963
  ),
3034
- showDataBindingControls ? /* @__PURE__ */ jsxs16(React24.Fragment, { children: [
2964
+ showDataBindingControls ? /* @__PURE__ */ jsxs15(React23.Fragment, { children: [
3035
2965
  /* @__PURE__ */ jsx38(
3036
2966
  DataBindingControls,
3037
2967
  {
@@ -3045,12 +2975,12 @@ var DivContainer = async (props) => {
3045
2975
  showSearchBar: dataBindingProperties?.showSearchBar
3046
2976
  }
3047
2977
  ),
3048
- /* @__PURE__ */ jsxs16(
2978
+ /* @__PURE__ */ jsxs15(
3049
2979
  "div",
3050
2980
  {
3051
2981
  className: dataBindingProperties?.showFacets ? "grid items-start gap-6 lg:grid-cols-[minmax(0,1fr)_18rem]" : void 0,
3052
2982
  children: [
3053
- /* @__PURE__ */ jsxs16("div", { className: "min-w-0", children: [
2983
+ /* @__PURE__ */ jsxs15("div", { className: "min-w-0", children: [
3054
2984
  renderedContainer,
3055
2985
  paginationControl
3056
2986
  ] }),
@@ -3067,7 +2997,7 @@ var DivContainer = async (props) => {
3067
2997
  ]
3068
2998
  }
3069
2999
  )
3070
- ] }) : /* @__PURE__ */ jsxs16(React24.Fragment, { children: [
3000
+ ] }) : /* @__PURE__ */ jsxs15(React23.Fragment, { children: [
3071
3001
  renderedContainer,
3072
3002
  paginationControl && /* @__PURE__ */ jsx38("div", { children: paginationControl })
3073
3003
  ] })
@@ -3115,14 +3045,14 @@ var PageBodyRenderer = (props) => {
3115
3045
  }
3116
3046
  return true;
3117
3047
  };
3118
- return /* @__PURE__ */ jsx39(React25.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
3048
+ return /* @__PURE__ */ jsx39(React24.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
3119
3049
  {
3120
3050
  }
3121
3051
  const SelectedNode = NodeTypes[node.type];
3122
3052
  if (!shouldRenderNode(node)) {
3123
3053
  return null;
3124
3054
  }
3125
- return /* @__PURE__ */ jsx39(React25.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx39(React25.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ jsx39(React25.Fragment, { children: /* @__PURE__ */ jsx39(
3055
+ return /* @__PURE__ */ jsx39(React24.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx39(React24.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ jsx39(React24.Fragment, { children: /* @__PURE__ */ jsx39(
3126
3056
  SelectedNode,
3127
3057
  {
3128
3058
  node,
@@ -3138,7 +3068,7 @@ var PageBodyRenderer = (props) => {
3138
3068
  device: props.device,
3139
3069
  widgetRenderer: props.widgetRenderer
3140
3070
  }
3141
- ) }) : /* @__PURE__ */ jsx39(React25.Fragment, { children: /* @__PURE__ */ jsx39(
3071
+ ) }) : /* @__PURE__ */ jsx39(React24.Fragment, { children: /* @__PURE__ */ jsx39(
3142
3072
  SelectedNode,
3143
3073
  {
3144
3074
  node,
@@ -3159,10 +3089,10 @@ var PageBodyRenderer = (props) => {
3159
3089
  var PageBodyRenderer_default = PageBodyRenderer;
3160
3090
 
3161
3091
  // src/components/pageRenderingEngine/EnterAnimationHydrator.tsx
3162
- import { useEffect as useEffect2 } from "react";
3092
+ import { useEffect } from "react";
3163
3093
  var ENTER_ANIMATION_SELECTOR = ".enter-animation";
3164
3094
  function EnterAnimationHydrator() {
3165
- useEffect2(() => {
3095
+ useEffect(() => {
3166
3096
  let observer;
3167
3097
  const observedElements = /* @__PURE__ */ new WeakSet();
3168
3098
  const revealAnimatedElements = () => {
@@ -3207,21 +3137,21 @@ function EnterAnimationHydrator() {
3207
3137
  }
3208
3138
 
3209
3139
  // src/components/Toast.tsx
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";
3140
+ import { useCallback, useEffect as useEffect2, useRef, useState } from "react";
3141
+ import { Fragment as Fragment7, jsx as jsx40, jsxs as jsxs16 } from "react/jsx-runtime";
3212
3142
  var Toast = () => {
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(() => {
3143
+ const [showToast, setShowToast] = useState(false);
3144
+ const [message, setMessage] = useState("");
3145
+ const [messageType, setMessageType] = useState("error");
3146
+ const timeoutRef = useRef(null);
3147
+ const closeToast = useCallback(() => {
3218
3148
  if (timeoutRef.current) {
3219
3149
  clearTimeout(timeoutRef.current);
3220
3150
  timeoutRef.current = null;
3221
3151
  }
3222
3152
  setShowToast(false);
3223
3153
  }, []);
3224
- const showMessage = useCallback2((message2, messageType2) => {
3154
+ const showMessage = useCallback((message2, messageType2) => {
3225
3155
  if (timeoutRef.current) {
3226
3156
  clearTimeout(timeoutRef.current);
3227
3157
  }
@@ -3233,7 +3163,7 @@ var Toast = () => {
3233
3163
  timeoutRef.current = null;
3234
3164
  }, 4e3);
3235
3165
  }, []);
3236
- useEffect3(() => {
3166
+ useEffect2(() => {
3237
3167
  ToastService_default.initialize(showMessage, closeToast);
3238
3168
  return () => {
3239
3169
  closeToast();
@@ -3242,7 +3172,7 @@ var Toast = () => {
3242
3172
  });
3243
3173
  };
3244
3174
  }, [closeToast, showMessage]);
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: [
3175
+ return /* @__PURE__ */ jsx40(Fragment7, { children: showToast && /* @__PURE__ */ jsx40("div", { className: "fixed top-2 flex justify-center w-1/2 max-w-xl left-1/2 -translate-x-1/2", style: { zIndex: 1e3 }, children: /* @__PURE__ */ jsxs16("div", { className: `w-full items-center flex justify-between p-3 rounded-md relative shadow border bg-${messageType}-soft`, children: [
3246
3176
  /* @__PURE__ */ jsx40(
3247
3177
  "span",
3248
3178
  {
@@ -3308,46 +3238,46 @@ var NavigationTabsV2 = ({ tabs, params = {} }) => {
3308
3238
  var NavigationTabsV2_default = NavigationTabsV2;
3309
3239
 
3310
3240
  // src/components/dataForm/DataList.tsx
3311
- import React29, { useEffect as useEffect4, useState as useState3, useCallback as useCallback3, useReducer } from "react";
3241
+ import React28, { useEffect as useEffect3, useState as useState2, useCallback as useCallback2, useReducer } from "react";
3312
3242
  import { useRouter } from "next/navigation";
3313
3243
 
3314
3244
  // src/components/dataForm/NoContentView.tsx
3315
- import React27 from "react";
3245
+ import React26 from "react";
3316
3246
  import { jsx as jsx42 } from "react/jsx-runtime";
3317
3247
  var NoContentView = (props) => {
3318
- return /* @__PURE__ */ jsx42(React27.Fragment, { children: props.isDataFound === false && props.children });
3248
+ return /* @__PURE__ */ jsx42(React26.Fragment, { children: props.isDataFound === false && props.children });
3319
3249
  };
3320
3250
  var NoContentView_default = NoContentView;
3321
3251
 
3322
3252
  // src/components/dataForm/ContentView.tsx
3323
- import React28 from "react";
3324
- import { jsx as jsx43, jsxs as jsxs18 } from "react/jsx-runtime";
3253
+ import React27 from "react";
3254
+ import { jsx as jsx43, jsxs as jsxs17 } from "react/jsx-runtime";
3325
3255
  var ContentView = (props) => {
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: [
3256
+ return /* @__PURE__ */ jsxs17(React27.Fragment, { children: [
3257
+ props.isDataFound == null && /* @__PURE__ */ jsx43("div", { className: "", children: /* @__PURE__ */ jsxs17("div", { className: "bg-gray-200 rounded-md p-4 animate-pulse", children: [
3258
+ /* @__PURE__ */ jsxs17("div", { className: "flex items-center mb-4", children: [
3329
3259
  /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
3330
- /* @__PURE__ */ jsxs18("div", { className: "ml-2", children: [
3260
+ /* @__PURE__ */ jsxs17("div", { className: "ml-2", children: [
3331
3261
  /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
3332
3262
  /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
3333
3263
  ] })
3334
3264
  ] }),
3335
- /* @__PURE__ */ jsxs18("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
3336
- /* @__PURE__ */ jsxs18("div", { className: "animate-pulse", children: [
3265
+ /* @__PURE__ */ jsxs17("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
3266
+ /* @__PURE__ */ jsxs17("div", { className: "animate-pulse", children: [
3337
3267
  /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
3338
3268
  /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
3339
3269
  /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
3340
3270
  /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
3341
3271
  /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
3342
3272
  ] }),
3343
- /* @__PURE__ */ jsxs18("div", { className: "animate-pulse", children: [
3273
+ /* @__PURE__ */ jsxs17("div", { className: "animate-pulse", children: [
3344
3274
  /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
3345
3275
  /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
3346
3276
  /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
3347
3277
  /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
3348
3278
  /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
3349
3279
  ] }),
3350
- /* @__PURE__ */ jsxs18("div", { className: "animate-pulse", children: [
3280
+ /* @__PURE__ */ jsxs17("div", { className: "animate-pulse", children: [
3351
3281
  /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
3352
3282
  /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
3353
3283
  /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
@@ -3406,7 +3336,7 @@ function FormReducer(state, action) {
3406
3336
  var FormReducer_default = FormReducer;
3407
3337
 
3408
3338
  // src/components/dataForm/DataList.tsx
3409
- import { Fragment as Fragment8, jsx as jsx44, jsxs as jsxs19 } from "react/jsx-runtime";
3339
+ import { Fragment as Fragment8, jsx as jsx44, jsxs as jsxs18 } from "react/jsx-runtime";
3410
3340
  var DataList = (props) => {
3411
3341
  const router = useRouter();
3412
3342
  let builder = new OdataBuilder(props.path);
@@ -3414,12 +3344,12 @@ var DataList = (props) => {
3414
3344
  let activePageNumber = 0;
3415
3345
  let pages = 0;
3416
3346
  console.log(props.addLinkText);
3417
- const [isDataFound, setIsDataFound] = useState3(null);
3418
- const [searchTerm, setSearchTerm] = useState3(props.query?.searchTerm ?? "");
3419
- useEffect4(() => {
3347
+ const [isDataFound, setIsDataFound] = useState2(null);
3348
+ const [searchTerm, setSearchTerm] = useState2(props.query?.searchTerm ?? "");
3349
+ useEffect3(() => {
3420
3350
  setSearchTerm(props.query?.searchTerm ?? "");
3421
3351
  }, [props.query?.searchTerm]);
3422
- useEffect4(() => {
3352
+ useEffect3(() => {
3423
3353
  if (props?.dataset) {
3424
3354
  if (props?.dataset.result && props.dataset.result.length > 0) {
3425
3355
  setIsDataFound(true);
@@ -3428,7 +3358,7 @@ var DataList = (props) => {
3428
3358
  }
3429
3359
  }
3430
3360
  }, [props.dataset]);
3431
- useEffect4(() => {
3361
+ useEffect3(() => {
3432
3362
  if (!props.query?.["$filter"] || !props.filters) return;
3433
3363
  const filterQuery = props.query["$filter"];
3434
3364
  props.filters.forEach((filter) => {
@@ -3460,7 +3390,7 @@ var DataList = (props) => {
3460
3390
  const getSearchableColumns = () => {
3461
3391
  return props.columns?.filter((c) => c.isSearchable)?.map((c) => c.name)?.join(",");
3462
3392
  };
3463
- const handleFilterChange = useCallback3(
3393
+ const handleFilterChange = useCallback2(
3464
3394
  (updatedValues) => {
3465
3395
  dispatch({
3466
3396
  type: FORM_INPUT_UPDATE,
@@ -3491,7 +3421,7 @@ var DataList = (props) => {
3491
3421
  },
3492
3422
  [dispatch, props, router]
3493
3423
  );
3494
- useEffect4(() => {
3424
+ useEffect3(() => {
3495
3425
  if (!props.columns.some((col) => col.isSearchable)) {
3496
3426
  return;
3497
3427
  }
@@ -3529,7 +3459,7 @@ var DataList = (props) => {
3529
3459
  const renderPageNumbers = () => {
3530
3460
  if (pages <= 10) {
3531
3461
  return Array.from({ length: pages }, (_, index) => index + 1).map(
3532
- (page) => /* @__PURE__ */ jsx44(React29.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx44(
3462
+ (page) => /* @__PURE__ */ jsx44(React28.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx44(
3533
3463
  Hyperlink,
3534
3464
  {
3535
3465
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -3542,8 +3472,8 @@ var DataList = (props) => {
3542
3472
  const showFirstPages = activePageNumber <= 5;
3543
3473
  const showLastPages = activePageNumber > pages - 5;
3544
3474
  if (showFirstPages) {
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(
3475
+ return /* @__PURE__ */ jsxs18(Fragment8, { children: [
3476
+ Array.from({ length: 8 }, (_, index) => index + 1).map((page) => /* @__PURE__ */ jsx44(React28.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx44(
3547
3477
  Hyperlink,
3548
3478
  {
3549
3479
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -3568,7 +3498,7 @@ var DataList = (props) => {
3568
3498
  children: pages
3569
3499
  }
3570
3500
  ),
3571
- /* @__PURE__ */ jsx44("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs19(
3501
+ /* @__PURE__ */ jsx44("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs18(
3572
3502
  "select",
3573
3503
  {
3574
3504
  className: " py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
@@ -3590,7 +3520,7 @@ var DataList = (props) => {
3590
3520
  ) })
3591
3521
  ] });
3592
3522
  } else if (showLastPages) {
3593
- return /* @__PURE__ */ jsxs19(Fragment8, { children: [
3523
+ return /* @__PURE__ */ jsxs18(Fragment8, { children: [
3594
3524
  /* @__PURE__ */ jsx44(
3595
3525
  Hyperlink,
3596
3526
  {
@@ -3609,7 +3539,7 @@ var DataList = (props) => {
3609
3539
  ),
3610
3540
  /* @__PURE__ */ jsx44("span", { className: "px-2 py-1", children: "..." }),
3611
3541
  Array.from({ length: 8 }, (_, index) => pages - 7 + index).map(
3612
- (page) => /* @__PURE__ */ jsx44(React29.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx44(
3542
+ (page) => /* @__PURE__ */ jsx44(React28.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx44(
3613
3543
  Hyperlink,
3614
3544
  {
3615
3545
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -3620,7 +3550,7 @@ var DataList = (props) => {
3620
3550
  )
3621
3551
  ] });
3622
3552
  } else {
3623
- return /* @__PURE__ */ jsxs19(Fragment8, { children: [
3553
+ return /* @__PURE__ */ jsxs18(Fragment8, { children: [
3624
3554
  /* @__PURE__ */ jsx44(
3625
3555
  Hyperlink,
3626
3556
  {
@@ -3641,7 +3571,7 @@ var DataList = (props) => {
3641
3571
  Array.from(
3642
3572
  { length: 5 },
3643
3573
  (_, index) => activePageNumber - 2 + index
3644
- ).map((page) => /* @__PURE__ */ jsx44(React29.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx44(
3574
+ ).map((page) => /* @__PURE__ */ jsx44(React28.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx44(
3645
3575
  Hyperlink,
3646
3576
  {
3647
3577
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -3666,7 +3596,7 @@ var DataList = (props) => {
3666
3596
  children: pages
3667
3597
  }
3668
3598
  ),
3669
- /* @__PURE__ */ jsx44("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs19(
3599
+ /* @__PURE__ */ jsx44("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs18(
3670
3600
  "select",
3671
3601
  {
3672
3602
  className: "px-2 py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
@@ -3687,15 +3617,15 @@ var DataList = (props) => {
3687
3617
  }
3688
3618
  }
3689
3619
  };
3690
- return /* @__PURE__ */ jsxs19(React29.Fragment, { children: [
3691
- /* @__PURE__ */ jsxs19(ContentView_default, { isDataFound, children: [
3692
- (props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ jsxs19(
3620
+ return /* @__PURE__ */ jsxs18(React28.Fragment, { children: [
3621
+ /* @__PURE__ */ jsxs18(ContentView_default, { isDataFound, children: [
3622
+ (props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ jsxs18(
3693
3623
  "div",
3694
3624
  {
3695
3625
  className: `flex justify-between items-center bg-white pl-6 pr-2 h-14 mb-3 shadow-sm rounded-md sticky top-0`,
3696
3626
  children: [
3697
3627
  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: [
3628
+ /* @__PURE__ */ jsxs18("div", { className: "flex items-center gap-3", children: [
3699
3629
  props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ jsx44(
3700
3630
  InputControl_default,
3701
3631
  {
@@ -3724,7 +3654,7 @@ var DataList = (props) => {
3724
3654
  },
3725
3655
  filter.name
3726
3656
  )),
3727
- props.addLinkHref && /* @__PURE__ */ jsxs19(
3657
+ props.addLinkHref && /* @__PURE__ */ jsxs18(
3728
3658
  Hyperlink,
3729
3659
  {
3730
3660
  className: "gap-1",
@@ -3740,8 +3670,8 @@ var DataList = (props) => {
3740
3670
  ]
3741
3671
  }
3742
3672
  ),
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: [
3673
+ /* @__PURE__ */ jsx44("div", { className: "flex-1 overflow-y-auto justify-end bg-white rounded shadow h-[calc(100vh-14rem)]", children: /* @__PURE__ */ jsxs18("table", { className: "w-full divide-y divide-gray-200", children: [
3674
+ /* @__PURE__ */ jsx44("thead", { className: "bg-gray-50 sticky top-0", children: /* @__PURE__ */ jsxs18("tr", { children: [
3745
3675
  props?.columns?.map((column) => {
3746
3676
  let url = builder.getNewOrderByUrl(column.name);
3747
3677
  let icon = "chevronUpDown";
@@ -3761,7 +3691,7 @@ var DataList = (props) => {
3761
3691
  {
3762
3692
  href: column.enableSorting ? url : void 0,
3763
3693
  className: "!text-neutral-contrast ",
3764
- children: /* @__PURE__ */ jsxs19("span", { className: "flex items-center space-x-1", children: [
3694
+ children: /* @__PURE__ */ jsxs18("span", { className: "flex items-center space-x-1", children: [
3765
3695
  /* @__PURE__ */ jsx44("span", { className: "text-black", children: column.label }),
3766
3696
  column.enableSorting && /* @__PURE__ */ jsx44(Icon_default, { className: "w-4 h-4", name: icon })
3767
3697
  ] })
@@ -3778,9 +3708,9 @@ var DataList = (props) => {
3778
3708
  if (props.recordValidityColumnName && getNestedProperty2(dataitem, props.recordValidityColumnName) == false) {
3779
3709
  validityClass = "bg-alert-200";
3780
3710
  }
3781
- return /* @__PURE__ */ jsxs19("tr", { className: validityClass, children: [
3711
+ return /* @__PURE__ */ jsxs18("tr", { className: validityClass, children: [
3782
3712
  props?.columns?.map((column, colindex) => {
3783
- return /* @__PURE__ */ jsx44(React29.Fragment, { children: /* @__PURE__ */ jsx44(
3713
+ return /* @__PURE__ */ jsx44(React28.Fragment, { children: /* @__PURE__ */ jsx44(
3784
3714
  "td",
3785
3715
  {
3786
3716
  className: "px-6 py-2 whitespace-normal " + (column.controlType == ViewControlTypes_default.money ? "" : ""),
@@ -3828,7 +3758,7 @@ var DataList = (props) => {
3828
3758
  }
3829
3759
  ) }, colindex);
3830
3760
  }),
3831
- props.onQuickView && /* @__PURE__ */ jsx44("td", { className: "px-6 py-2 text-right whitespace-nowrap", children: /* @__PURE__ */ jsxs19(
3761
+ props.onQuickView && /* @__PURE__ */ jsx44("td", { className: "px-6 py-2 text-right whitespace-nowrap", children: /* @__PURE__ */ jsxs18(
3832
3762
  "button",
3833
3763
  {
3834
3764
  type: "button",
@@ -3838,7 +3768,7 @@ var DataList = (props) => {
3838
3768
  },
3839
3769
  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",
3840
3770
  children: [
3841
- /* @__PURE__ */ jsxs19(
3771
+ /* @__PURE__ */ jsxs18(
3842
3772
  "svg",
3843
3773
  {
3844
3774
  className: "w-3.5 h-3.5",
@@ -3861,9 +3791,9 @@ var DataList = (props) => {
3861
3791
  ] }, index);
3862
3792
  }) })
3863
3793
  ] }) }),
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: [
3794
+ /* @__PURE__ */ jsx44("div", { className: "pt-4 border-t border-t-gray-50 sticky bottom-0 h-11 mt-2 ", children: /* @__PURE__ */ jsxs18("div", { className: "flex items-center justify-between", children: [
3865
3795
  /* @__PURE__ */ jsx44("div", { className: "text-gray-700", children: label }),
3866
- /* @__PURE__ */ jsxs19("div", { className: "flex space-x-2 items-center", children: [
3796
+ /* @__PURE__ */ jsxs18("div", { className: "flex space-x-2 items-center", children: [
3867
3797
  activePageNumber > 1 && /* @__PURE__ */ jsx44(
3868
3798
  Hyperlink,
3869
3799
  {
@@ -3886,14 +3816,14 @@ var DataList = (props) => {
3886
3816
  ] })
3887
3817
  ] }) })
3888
3818
  ] }),
3889
- /* @__PURE__ */ jsxs19(NoContentView_default, { isDataFound, children: [
3890
- (props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ jsxs19(
3819
+ /* @__PURE__ */ jsxs18(NoContentView_default, { isDataFound, children: [
3820
+ (props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ jsxs18(
3891
3821
  "div",
3892
3822
  {
3893
3823
  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`,
3894
3824
  children: [
3895
3825
  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: [
3826
+ /* @__PURE__ */ jsxs18("div", { className: "flex items-center gap-3", children: [
3897
3827
  props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ jsx44(
3898
3828
  InputControl_default,
3899
3829
  {
@@ -3922,7 +3852,7 @@ var DataList = (props) => {
3922
3852
  },
3923
3853
  filter.name
3924
3854
  )),
3925
- props.addLinkHref && /* @__PURE__ */ jsxs19(
3855
+ props.addLinkHref && /* @__PURE__ */ jsxs18(
3926
3856
  Hyperlink,
3927
3857
  {
3928
3858
  className: "gap-1",
@@ -3938,7 +3868,7 @@ var DataList = (props) => {
3938
3868
  ]
3939
3869
  }
3940
3870
  ),
3941
- /* @__PURE__ */ jsxs19("div", { className: "flex-grow overflow-y-auto justify-end bg-white rounded shadow h-[75vh]", children: [
3871
+ /* @__PURE__ */ jsxs18("div", { className: "flex-grow overflow-y-auto justify-end bg-white rounded shadow h-[75vh]", children: [
3942
3872
  /* @__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) => {
3943
3873
  let url = builder.getNewOrderByUrl(column.name);
3944
3874
  let icon = "chevronUpDown";
@@ -3958,7 +3888,7 @@ var DataList = (props) => {
3958
3888
  {
3959
3889
  href: column.enableSorting ? url : void 0,
3960
3890
  className: "text-body-950",
3961
- children: /* @__PURE__ */ jsxs19("span", { className: "flex items-center space-x-1", children: [
3891
+ children: /* @__PURE__ */ jsxs18("span", { className: "flex items-center space-x-1", children: [
3962
3892
  /* @__PURE__ */ jsx44("span", { children: column.label }),
3963
3893
  column.enableSorting && /* @__PURE__ */ jsx44(Icon_default, { className: "w-4 h-4", name: icon })
3964
3894
  ] })
@@ -3976,9 +3906,9 @@ var DataList = (props) => {
3976
3906
  var DataList_default = DataList;
3977
3907
 
3978
3908
  // src/components/dataForm/DataListRenderer.tsx
3979
- import React30, { useState as useState4, useEffect as useEffect5 } from "react";
3909
+ import React29, { useState as useState3, useEffect as useEffect4 } from "react";
3980
3910
  import { usePathname as usePathname2 } from "next/navigation";
3981
- import { jsx as jsx45, jsxs as jsxs20 } from "react/jsx-runtime";
3911
+ import { jsx as jsx45, jsxs as jsxs19 } from "react/jsx-runtime";
3982
3912
  var viewControlMap = {
3983
3913
  number: ViewControlTypes.number,
3984
3914
  lineText: ViewControlTypes.lineText,
@@ -4033,14 +3963,14 @@ var DataListRenderer = ({
4033
3963
  widgetProps
4034
3964
  }) => {
4035
3965
  const serviceClient = new ServiceClient_default(apiBaseUrl, session);
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("");
3966
+ const [columns, setColumns] = useState3([]);
3967
+ const [dataset, setDataset] = useState3();
3968
+ const [filter, setFilters] = useState3([]);
3969
+ const [addLinkHref, setAddLinkHref] = useState3("");
3970
+ const [addLinkText, setAddLinkText] = useState3("");
3971
+ const [serviceRoute, setServiceRoute] = useState3("");
4042
3972
  const pathname = usePathname2();
4043
- useEffect5(() => {
3973
+ useEffect4(() => {
4044
3974
  if (!formDefinition) return;
4045
3975
  setColumns(mapApiToColumns(formDefinition));
4046
3976
  setFilters(mapApiToFilters(formDefinition));
@@ -4053,7 +3983,7 @@ var DataListRenderer = ({
4053
3983
  setAddLinkHref(resolvedAddLinkHref);
4054
3984
  setAddLinkText(formDefinition?.siteFormDataList?.addLinkText ?? "");
4055
3985
  }, [formDefinition, params]);
4056
- useEffect5(() => {
3986
+ useEffect4(() => {
4057
3987
  const fetchData = async () => {
4058
3988
  if (!serviceRoute) return;
4059
3989
  const resolvedRoute = resolveRoutePlaceholders2(serviceRoute, params);
@@ -4073,7 +4003,7 @@ var DataListRenderer = ({
4073
4003
  isActive: landingPageUrl === pathname
4074
4004
  };
4075
4005
  });
4076
- return /* @__PURE__ */ jsxs20(React30.Fragment, { children: [
4006
+ return /* @__PURE__ */ jsxs19(React29.Fragment, { children: [
4077
4007
  resolvedTabs.length > 0 && // <NavigationTabsV2
4078
4008
  // tabs={resolvedTabs}
4079
4009
  // params={(widgetProps?.params ?? params) as Record<string, any>}
@@ -4098,10 +4028,10 @@ var DataListRenderer = ({
4098
4028
  var DataListRenderer_default = DataListRenderer;
4099
4029
 
4100
4030
  // src/components/dataForm/DataForm.tsx
4101
- import React32, { useCallback as useCallback5, useEffect as useEffect6, useReducer as useReducer2, useRef as useRef3 } from "react";
4031
+ import React31, { useCallback as useCallback4, useEffect as useEffect5, useReducer as useReducer2, useRef as useRef2 } from "react";
4102
4032
 
4103
4033
  // src/components/dataForm/DataFormChildSection.tsx
4104
- import React31, { useCallback as useCallback4 } from "react";
4034
+ import React30, { useCallback as useCallback3 } from "react";
4105
4035
 
4106
4036
  // src/components/dataForm/StyleTypes.tsx
4107
4037
  var StyleTypes2 = /* @__PURE__ */ ((StyleTypes3) => {
@@ -4124,7 +4054,7 @@ var FORM_CHILD_ONE_TO_ONE_UPDATE = "FORM_CHILD_ONE_TO_ONE_UPDATE";
4124
4054
  var FORM_CHILD_ROW_ADD = "FORM_CHILD_ROW_ADD";
4125
4055
 
4126
4056
  // src/components/dataForm/DataFormChildSection.tsx
4127
- import { jsx as jsx46, jsxs as jsxs21 } from "react/jsx-runtime";
4057
+ import { jsx as jsx46, jsxs as jsxs20 } from "react/jsx-runtime";
4128
4058
  var DataFormChildSection = (props) => {
4129
4059
  const { section } = props;
4130
4060
  const isOneToOne = section.relationshipType === "one-to-one";
@@ -4136,7 +4066,7 @@ var DataFormChildSection = (props) => {
4136
4066
  return childItems.map((item, originalIndex) => ({ item, originalIndex })).filter((x) => !x.item.isDeleted) || [];
4137
4067
  };
4138
4068
  const childItemsToRender = getChildItemsForRendering();
4139
- const handleChildInputChange = useCallback4(
4069
+ const handleChildInputChange = useCallback3(
4140
4070
  (updatedValues) => {
4141
4071
  if (isOneToOne) {
4142
4072
  props.callback({
@@ -4163,7 +4093,7 @@ var DataFormChildSection = (props) => {
4163
4093
  },
4164
4094
  [props, isOneToOne, childItemsToRender]
4165
4095
  );
4166
- const onAddRow = useCallback4(() => {
4096
+ const onAddRow = useCallback3(() => {
4167
4097
  props.callback({
4168
4098
  sectionName: props.section.name,
4169
4099
  actionType: FORM_CHILD_ROW_ADD,
@@ -4172,7 +4102,7 @@ var DataFormChildSection = (props) => {
4172
4102
  rowIndex: -1
4173
4103
  });
4174
4104
  }, [props]);
4175
- const onDeleteRow = useCallback4(
4105
+ const onDeleteRow = useCallback3(
4176
4106
  (filteredIndex) => {
4177
4107
  const visibleItem = childItemsToRender[filteredIndex];
4178
4108
  if (visibleItem) {
@@ -4192,12 +4122,12 @@ var DataFormChildSection = (props) => {
4192
4122
  childItemsToRender,
4193
4123
  allChildItems: childItems
4194
4124
  });
4195
- return /* @__PURE__ */ jsx46(React31.Fragment, { children: /* @__PURE__ */ jsxs21("div", { className: "rounded border-neutral-200 border px-6 py-4 mb-2", children: [
4125
+ return /* @__PURE__ */ jsx46(React30.Fragment, { children: /* @__PURE__ */ jsxs20("div", { className: "rounded border-neutral-200 border px-6 py-4 mb-2", children: [
4196
4126
  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: [
4127
+ /* @__PURE__ */ jsx46("div", { className: "flex-grow flex flex-col justify-between overflow-y-auto", children: /* @__PURE__ */ jsxs20("div", { className: "flex flex-col justify-between gap-2", children: [
4128
+ /* @__PURE__ */ jsx46("div", { children: /* @__PURE__ */ jsxs20("table", { className: "w-full border-separate divide-y divide-gray-200", children: [
4199
4129
  (!isOneToOne || childItemsToRender.length > 0) && /* @__PURE__ */ jsx46("thead", { className: "", children: section.sectionRows.map((sectionRow, sectionRowIndex) => {
4200
- return /* @__PURE__ */ jsxs21("tr", { className: "", children: [
4130
+ return /* @__PURE__ */ jsxs20("tr", { className: "", children: [
4201
4131
  sectionRow.elements.map((field, index) => {
4202
4132
  return /* @__PURE__ */ jsx46(
4203
4133
  "th",
@@ -4214,9 +4144,9 @@ var DataFormChildSection = (props) => {
4214
4144
  /* @__PURE__ */ jsx46("tbody", { className: "divide-y divide-gray-200", children: childItemsToRender.map((visibleItem, filteredIndex) => {
4215
4145
  const { item, originalIndex } = visibleItem;
4216
4146
  const rowKey = originalIndex;
4217
- return /* @__PURE__ */ jsx46(React31.Fragment, { children: section.sectionRows.map(
4147
+ return /* @__PURE__ */ jsx46(React30.Fragment, { children: section.sectionRows.map(
4218
4148
  (sectionRow, sectionRowIndex) => {
4219
- return /* @__PURE__ */ jsxs21(
4149
+ return /* @__PURE__ */ jsxs20(
4220
4150
  "tr",
4221
4151
  {
4222
4152
  className: "",
@@ -4283,9 +4213,9 @@ var DataFormChildSection = (props) => {
4283
4213
  var DataFormChildSection_default = DataFormChildSection;
4284
4214
 
4285
4215
  // src/components/dataForm/DataForm.tsx
4286
- import { jsx as jsx47, jsxs as jsxs22 } from "react/jsx-runtime";
4216
+ import { jsx as jsx47, jsxs as jsxs21 } from "react/jsx-runtime";
4287
4217
  var DataForm = (props) => {
4288
- const formRef = useRef3(null);
4218
+ const formRef = useRef2(null);
4289
4219
  console.log(props.dataItem, "dssads");
4290
4220
  const initialState = {
4291
4221
  inputValues: {},
@@ -4296,7 +4226,7 @@ var DataForm = (props) => {
4296
4226
  };
4297
4227
  const [formState, dispatch] = useReducer2(FormReducer_default, initialState);
4298
4228
  console.log(props.sections, "sections");
4299
- const clearHiddenChildSections = useCallback5(
4229
+ const clearHiddenChildSections = useCallback4(
4300
4230
  (changedProperty, newValues) => {
4301
4231
  if (!props.sections) return;
4302
4232
  const allChildSections = [];
@@ -4334,7 +4264,7 @@ var DataForm = (props) => {
4334
4264
  },
4335
4265
  [props.sections, formState.inputValues]
4336
4266
  );
4337
- const handleInputChange = useCallback5(
4267
+ const handleInputChange = useCallback4(
4338
4268
  async (updatedValues) => {
4339
4269
  dispatch({
4340
4270
  type: FORM_INPUT_UPDATE,
@@ -4349,7 +4279,7 @@ var DataForm = (props) => {
4349
4279
  },
4350
4280
  [dispatch, formState.inputValues, clearHiddenChildSections]
4351
4281
  );
4352
- const fetchData = useCallback5(async () => {
4282
+ const fetchData = useCallback4(async () => {
4353
4283
  if (!props.rules) return;
4354
4284
  if (Object.keys(formState.inputValues).length === 0) {
4355
4285
  return;
@@ -4380,7 +4310,7 @@ var DataForm = (props) => {
4380
4310
  console.error("Error fetching data:", error);
4381
4311
  }
4382
4312
  }, [formState.lastPropertyChanged, formState.inputValues]);
4383
- useEffect6(() => {
4313
+ useEffect5(() => {
4384
4314
  fetchData();
4385
4315
  }, [formState.inputValues, formState.lastPropertyChanged]);
4386
4316
  function replacePlaceholders(template, context, params) {
@@ -4400,7 +4330,7 @@ var DataForm = (props) => {
4400
4330
  }
4401
4331
  );
4402
4332
  }
4403
- const handleChildSectionChangeCallback = useCallback5(
4333
+ const handleChildSectionChangeCallback = useCallback4(
4404
4334
  (params) => {
4405
4335
  dispatch({
4406
4336
  type: params.actionType,
@@ -4445,7 +4375,7 @@ var DataForm = (props) => {
4445
4375
  });
4446
4376
  return cloned;
4447
4377
  }
4448
- const onClick = useCallback5(async () => {
4378
+ const onClick = useCallback4(async () => {
4449
4379
  if (props.onClick) {
4450
4380
  const isEdit = props.dataItem && Object.keys(props.dataItem).length > 0;
4451
4381
  const normalizedValues = normalizeChildSections(
@@ -4461,21 +4391,21 @@ var DataForm = (props) => {
4461
4391
  return { isSuccessful: true };
4462
4392
  }
4463
4393
  }, [formState, props]);
4464
- const handleAdditionalOnClick = useCallback5(async () => {
4394
+ const handleAdditionalOnClick = useCallback4(async () => {
4465
4395
  if (props.additionalActions?.onClick) {
4466
4396
  return await props.additionalActions.onClick(formState);
4467
4397
  } else {
4468
4398
  return { isSuccessful: true, message: "Action completed successfully" };
4469
4399
  }
4470
4400
  }, [formState, props]);
4471
- const onDelete = useCallback5(async () => {
4401
+ const onDelete = useCallback4(async () => {
4472
4402
  if (props.onDelete) {
4473
4403
  return await props.onDelete(formState);
4474
4404
  } else {
4475
4405
  return { isSuccessful: true };
4476
4406
  }
4477
4407
  }, [formState, props]);
4478
- useEffect6(() => {
4408
+ useEffect5(() => {
4479
4409
  if (props.dataItem) {
4480
4410
  dispatch({
4481
4411
  type: FORM_INITIAL_UPDATE,
@@ -4503,8 +4433,8 @@ var DataForm = (props) => {
4503
4433
  return false;
4504
4434
  }
4505
4435
  }
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(
4436
+ return /* @__PURE__ */ jsx47(React31.Fragment, { children: /* @__PURE__ */ jsxs21("div", { className: "flex-grow flex flex-col", children: [
4437
+ props.title && /* @__PURE__ */ jsx47("div", { className: "inline-flex items-center gap-2 px-6 py-3 border border-neutral-200 bg-white shadow-sm rounded-t-md", children: /* @__PURE__ */ jsxs21(
4508
4438
  "div",
4509
4439
  {
4510
4440
  className: "inline-flex items-center gap-2 cursor-pointer",
@@ -4537,7 +4467,7 @@ var DataForm = (props) => {
4537
4467
  }
4538
4468
  },
4539
4469
  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: [
4470
+ return /* @__PURE__ */ jsx47(React31.Fragment, { children: !section.isChildSection && /* @__PURE__ */ jsxs21("div", { className: " rounded-b-lg bg-white shadow border-neutral-200 border px-8 py-6 ", children: [
4541
4471
  section.sectionRows?.map(
4542
4472
  (sectionRow, sectionRowIndex) => {
4543
4473
  const elementsCount = sectionRow.elements.length;
@@ -4548,8 +4478,8 @@ var DataForm = (props) => {
4548
4478
  sectionRow.visible
4549
4479
  );
4550
4480
  }
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(
4481
+ return /* @__PURE__ */ jsx47(React31.Fragment, { children: isVisible && /* @__PURE__ */ jsx47("div", { className: "lg:flex gap-14 flex-1 mb-4 ", children: sectionRow.elements.map((field, index) => {
4482
+ return /* @__PURE__ */ jsxs21(
4553
4483
  "div",
4554
4484
  {
4555
4485
  className: sectionRow.grow ? "grow" : "",
@@ -4605,7 +4535,7 @@ var DataForm = (props) => {
4605
4535
  }) })
4606
4536
  }
4607
4537
  ),
4608
- /* @__PURE__ */ jsxs22("div", { className: "flex px-6 py-3 mt-2 mb-2 justify-end items-center gap-5", children: [
4538
+ /* @__PURE__ */ jsxs21("div", { className: "flex px-6 py-3 mt-2 mb-2 justify-end items-center gap-5", children: [
4609
4539
  /* @__PURE__ */ jsx47("div", { children: props.additionalActions && /* @__PURE__ */ jsx47(
4610
4540
  Button_default,
4611
4541
  {
@@ -4642,7 +4572,7 @@ var DataForm = (props) => {
4642
4572
  var DataForm_default = DataForm;
4643
4573
 
4644
4574
  // src/components/dataForm/DataFormRenderer.tsx
4645
- import { jsx as jsx48, jsxs as jsxs23 } from "react/jsx-runtime";
4575
+ import { jsx as jsx48, jsxs as jsxs22 } from "react/jsx-runtime";
4646
4576
  function getAction(actions, code) {
4647
4577
  return actions?.find((a) => a.actionCode === code);
4648
4578
  }
@@ -4668,7 +4598,7 @@ var DataFormRenderer = ({
4668
4598
  "Delete"
4669
4599
  );
4670
4600
  const hasDataItem = dataItem && Object.keys(dataItem).length > 0;
4671
- return /* @__PURE__ */ jsxs23("div", { className: "flex-grow flex flex-col", children: [
4601
+ return /* @__PURE__ */ jsxs22("div", { className: "flex-grow flex flex-col", children: [
4672
4602
  widgetProps && /* @__PURE__ */ jsx48(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
4673
4603
  /* @__PURE__ */ jsx48(
4674
4604
  DataForm_default,