@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260427052110 → 0.8.1-dev.20260428094243

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
@@ -164,6 +164,7 @@ var timeZoneAbbreviations = {
164
164
  // src/components/controls/view/DateView.tsx
165
165
  import { jsx as jsx2, jsxs } from "react/jsx-runtime";
166
166
  var DateView = (props) => {
167
+ const userTimeZone = Intl.DateTimeFormat().resolvedOptions().timeZone;
167
168
  const getTimeZoneAbbreviation = (timeZone) => {
168
169
  return timeZoneAbbreviations[timeZone] || timeZone;
169
170
  };
@@ -182,7 +183,8 @@ var DateView = (props) => {
182
183
  return new Intl.DateTimeFormat("en", {
183
184
  day: "2-digit",
184
185
  month: "short",
185
- year: "numeric"
186
+ year: "numeric",
187
+ timeZone: userTimeZone
186
188
  }).format(date);
187
189
  };
188
190
  console.log("DateView props:", props);
@@ -196,55 +198,63 @@ var DateView = (props) => {
196
198
  return new Intl.DateTimeFormat("en", {
197
199
  day: "2-digit",
198
200
  month: "short",
199
- year: "numeric"
201
+ year: "numeric",
202
+ timeZone: userTimeZone
200
203
  }).format(parsedDate);
201
204
  case "time":
202
- return `${formatTime(parsedDate)} ${getTimeZoneAbbreviation(Intl.DateTimeFormat().resolvedOptions().timeZone)} (${getTimePeriod(parsedDate)})`;
205
+ return `${formatTime(parsedDate)} ${getTimeZoneAbbreviation(userTimeZone)} (${getTimePeriod(parsedDate)})`;
203
206
  default:
204
207
  return parsedDate.getSeconds() === 0 ? new Intl.DateTimeFormat("en", {
205
208
  day: "2-digit",
206
209
  month: "short",
207
210
  year: "numeric",
208
211
  hour: "2-digit",
209
- minute: "2-digit"
212
+ minute: "2-digit",
213
+ timeZone: userTimeZone
210
214
  }).format(parsedDate) : new Intl.DateTimeFormat("en", {
211
215
  day: "2-digit",
212
216
  month: "short",
213
217
  year: "numeric",
214
218
  hour: "2-digit",
215
219
  minute: "2-digit",
216
- second: "2-digit"
220
+ second: "2-digit",
221
+ timeZone: userTimeZone
217
222
  }).format(parsedDate);
218
223
  }
219
224
  };
220
225
  const formatTime = (date) => {
221
226
  return date.getSeconds() === 0 ? new Intl.DateTimeFormat("en", {
222
227
  hour: "2-digit",
223
- minute: "2-digit"
228
+ minute: "2-digit",
229
+ timeZone: userTimeZone
224
230
  }).format(date) : new Intl.DateTimeFormat("en", {
225
231
  hour: "2-digit",
226
232
  minute: "2-digit",
227
- second: "2-digit"
233
+ second: "2-digit",
234
+ timeZone: userTimeZone
228
235
  }).format(date);
229
236
  };
230
237
  const getTimePeriod = (date) => {
231
- const hours = date.getHours();
232
- if (hours >= 5 && hours < 8) return "Early Morning";
233
- if (hours >= 8 && hours < 12) return "Morning";
234
- if (hours >= 12 && hours < 14) return "Noon";
235
- if (hours >= 14 && hours < 17) return "Afternoon";
236
- if (hours >= 17 && hours < 20) return "Evening";
237
- if (hours >= 20 && hours < 22) return "Late Evening";
238
- if (hours >= 22 || hours < 5) return "Night";
239
- return "Late Night";
238
+ const localHours = Number(
239
+ new Intl.DateTimeFormat("en", {
240
+ hour: "numeric",
241
+ hour12: false,
242
+ timeZone: userTimeZone
243
+ }).format(date)
244
+ );
245
+ if (localHours >= 5 && localHours < 8) return "Early Morning";
246
+ if (localHours >= 8 && localHours < 12) return "Morning";
247
+ if (localHours >= 12 && localHours < 14) return "Noon";
248
+ if (localHours >= 14 && localHours < 17) return "Afternoon";
249
+ if (localHours >= 17 && localHours < 20) return "Evening";
250
+ if (localHours >= 20 && localHours < 22) return "Late Evening";
251
+ return "Night";
240
252
  };
241
253
  let localDateTime = "";
242
254
  let timeZoneAbbreviation = "";
243
255
  try {
244
256
  localDateTime = parseAndFormatDate(props.value, props.format);
245
- timeZoneAbbreviation = getTimeZoneAbbreviation(
246
- Intl.DateTimeFormat().resolvedOptions().timeZone
247
- );
257
+ timeZoneAbbreviation = getTimeZoneAbbreviation(userTimeZone);
248
258
  } catch (error) {
249
259
  console.error("Error parsing date:", props.value, error);
250
260
  }
@@ -412,7 +422,7 @@ var ViewControl = (props) => {
412
422
  var ViewControl_default = ViewControl;
413
423
 
414
424
  // src/components/controls/edit/InputControl.tsx
415
- import React27 from "react";
425
+ import React28 from "react";
416
426
 
417
427
  // src/components/controls/edit/MultilineTextInput.tsx
418
428
  import React11 from "react";
@@ -582,6 +592,7 @@ var InputControlType = {
582
592
  moneyInput: "money",
583
593
  select: "select",
584
594
  percentageInput: "percentage",
595
+ asset: "asset",
585
596
  phoneInput: "phone",
586
597
  numberInput: "number",
587
598
  checkboxInput: "boolean",
@@ -1633,9 +1644,301 @@ var TimeInput = (props) => {
1633
1644
  };
1634
1645
  var TimeInput_default = TimeInput;
1635
1646
 
1647
+ // src/components/controls/edit/AssetUpload.tsx
1648
+ import React27, { useEffect as useEffect6 } from "react";
1649
+
1650
+ // src/components/utilities/AssetUtility.tsx
1651
+ var AssetUtility = class {
1652
+ constructor() {
1653
+ }
1654
+ static resolveUrl(assetBaseUrl, url) {
1655
+ if (!url) return void 0;
1656
+ if (url.startsWith("http")) return url;
1657
+ if (!assetBaseUrl) return url;
1658
+ return `${assetBaseUrl}/${url}`;
1659
+ }
1660
+ // static getAssetUrl(apiBaseUrl: string) {
1661
+ // let domainName = apiBaseUrl.replace("https://", "");
1662
+ // return `https://cdn.g-assets.com/${domainName}`;
1663
+ // }
1664
+ static getAssetFullPath(apiBaseUrl, relativePath) {
1665
+ const domainName = apiBaseUrl.replace("https://", "");
1666
+ return `https://cdn.g-assets.com/${domainName}/${relativePath}`;
1667
+ }
1668
+ };
1669
+ var AssetUtility_default = AssetUtility;
1670
+
1671
+ // src/components/dataForm/Hyperlink.tsx
1672
+ import Link from "next/link";
1673
+ import { Fragment, jsx as jsx27 } from "react/jsx-runtime";
1674
+ function Hyperlink(props) {
1675
+ let linkClass = props.linkType ? buttonClasses.get(props.linkType) : buttonClasses.get("Link" /* Link */);
1676
+ const target = props?.href?.startsWith("http") ? "_blank" : "_self";
1677
+ const additionalProps = {};
1678
+ if (target == "_blank") {
1679
+ additionalProps.rel = "noopener noreferrer";
1680
+ }
1681
+ return /* @__PURE__ */ jsx27(Fragment, { children: props.href ? /* @__PURE__ */ jsx27(
1682
+ Link,
1683
+ {
1684
+ href: props.href,
1685
+ prefetch: false,
1686
+ className: [linkClass, props.className].filter(Boolean).join(" "),
1687
+ ...additionalProps,
1688
+ target,
1689
+ children: props.children
1690
+ }
1691
+ ) : props.isHeading ? /* @__PURE__ */ jsx27("h5", { className: props.className + "inline-block", children: props.children }) : /* @__PURE__ */ jsx27("span", { className: props.className, children: props.children }) });
1692
+ }
1693
+
1694
+ // src/svg/chevron-updown.tsx
1695
+ import { jsx as jsx28 } from "react/jsx-runtime";
1696
+ var ChevronUpDown = (props) => {
1697
+ return /* @__PURE__ */ jsx28("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: props.className, children: /* @__PURE__ */ jsx28("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9" }) });
1698
+ };
1699
+ var chevron_updown_default = ChevronUpDown;
1700
+
1701
+ // src/svg/chevron-down.tsx
1702
+ import { jsx as jsx29 } from "react/jsx-runtime";
1703
+ var ChevronDown = (props) => {
1704
+ return /* @__PURE__ */ jsx29("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: props.className, children: /* @__PURE__ */ jsx29("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M19.5 8.25l-7.5 7.5-7.5-7.5" }) });
1705
+ };
1706
+ var chevron_down_default = ChevronDown;
1707
+
1708
+ // src/svg/chevron-up.tsx
1709
+ import { jsx as jsx30 } from "react/jsx-runtime";
1710
+ var ChevronUp = (props) => {
1711
+ return /* @__PURE__ */ jsx30("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: props.className, children: /* @__PURE__ */ jsx30("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M4.5 15.75l7.5-7.5 7.5 7.5" }) });
1712
+ };
1713
+ var chevron_up_default = ChevronUp;
1714
+
1715
+ // src/svg/plus.tsx
1716
+ import { jsx as jsx31 } from "react/jsx-runtime";
1717
+ var Plus = (props) => {
1718
+ return /* @__PURE__ */ jsx31("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: props.className, children: /* @__PURE__ */ jsx31("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M12 4.5v15m7.5-7.5h-15" }) });
1719
+ };
1720
+ var plus_default = Plus;
1721
+
1722
+ // src/svg/Icons.tsx
1723
+ var Icons = {
1724
+ chevronUpDown: chevron_updown_default,
1725
+ chevronDown: chevron_down_default,
1726
+ chevronUp: chevron_up_default,
1727
+ plus: plus_default
1728
+ };
1729
+ var Icons_default = Icons;
1730
+
1731
+ // src/svg/Icon.tsx
1732
+ import { jsx as jsx32 } from "react/jsx-runtime";
1733
+ var Icon = ({ name, className, ...props }) => {
1734
+ const IconComponent = Icons_default[name];
1735
+ if (!IconComponent) {
1736
+ console.error(`Icon "${name}" not found.`);
1737
+ return null;
1738
+ }
1739
+ return /* @__PURE__ */ jsx32(IconComponent, { ...props, className });
1740
+ };
1741
+ var Icon_default = Icon;
1742
+
1743
+ // src/components/controls/edit/AssetUpload.tsx
1744
+ import { jsx as jsx33, jsxs as jsxs22 } from "react/jsx-runtime";
1745
+ var AssetUpload = (props) => {
1746
+ const isDisabled = props.attributes?.disable ?? false;
1747
+ let allValues = [];
1748
+ if (props.value !== void 0 && props.value !== null && props.value !== "") {
1749
+ try {
1750
+ allValues = JSON.parse(props.value.toString());
1751
+ } catch (error) {
1752
+ }
1753
+ }
1754
+ const getInitialTab = () => {
1755
+ if (allValues.length > 0) {
1756
+ const asset = allValues[0];
1757
+ if (asset.posterUrl) {
1758
+ return "video";
1759
+ } else if (asset.assetUrl) {
1760
+ return "image";
1761
+ }
1762
+ }
1763
+ return "image";
1764
+ };
1765
+ const [assetType, setAssetType] = React27.useState(getInitialTab);
1766
+ useEffect6(() => {
1767
+ setAssetType(getInitialTab());
1768
+ }, [props.value]);
1769
+ const assetUploadCallback = (newAsset) => {
1770
+ if (isDisabled) return;
1771
+ let updated = [];
1772
+ updated.push({
1773
+ assetUrl: newAsset.assetUrl,
1774
+ title: newAsset.title,
1775
+ posterUrl: newAsset.posterUrl,
1776
+ intrinsicHeight: newAsset.intrinsicHeight,
1777
+ intrinsicWidth: newAsset.intrinsicWidth
1778
+ });
1779
+ props.callback?.({
1780
+ name: props.name,
1781
+ value: JSON.stringify(updated),
1782
+ index: props.index,
1783
+ groupKey: props.groupKey
1784
+ });
1785
+ };
1786
+ const deleteFile = (index) => {
1787
+ if (isDisabled) return;
1788
+ let existingValue = [];
1789
+ if (props.value) {
1790
+ try {
1791
+ existingValue = JSON.parse(props.value.toString());
1792
+ } catch (error) {
1793
+ }
1794
+ }
1795
+ if (existingValue.length > index) {
1796
+ existingValue.splice(index, 1);
1797
+ props.callback?.({
1798
+ name: props.name,
1799
+ value: JSON.stringify(existingValue),
1800
+ index: props.index,
1801
+ groupKey: props.groupKey
1802
+ });
1803
+ }
1804
+ };
1805
+ const textChangeHandler = (index, event) => {
1806
+ if (isDisabled) return;
1807
+ let existingValue = [];
1808
+ if (props.value) {
1809
+ try {
1810
+ existingValue = JSON.parse(props.value.toString());
1811
+ } catch (error) {
1812
+ }
1813
+ }
1814
+ const text = event.target.value;
1815
+ if (existingValue.length > index) {
1816
+ const updatedArray = [...existingValue];
1817
+ updatedArray[index] = { ...updatedArray[index], title: text };
1818
+ props.callback?.({
1819
+ name: props.name,
1820
+ value: JSON.stringify(updatedArray),
1821
+ index: props.index,
1822
+ groupKey: props.groupKey
1823
+ });
1824
+ }
1825
+ };
1826
+ const getAssetType = (asset) => {
1827
+ if (asset.assetUrl?.endsWith(".m3u8") || asset.posterUrl) return "video";
1828
+ return "image";
1829
+ };
1830
+ const shouldShowDetails = () => {
1831
+ if (allValues.length === 0) return false;
1832
+ const asset = allValues[0];
1833
+ if (assetType === "video") {
1834
+ return Boolean(asset.posterUrl && asset.assetUrl && asset.assetUrl.endsWith(".m3u8"));
1835
+ }
1836
+ if (assetType === "image") {
1837
+ return Boolean(asset.assetUrl && !asset.assetUrl.endsWith(".m3u8"));
1838
+ }
1839
+ return false;
1840
+ };
1841
+ return /* @__PURE__ */ jsxs22(React27.Fragment, { children: [
1842
+ /* @__PURE__ */ jsx33("label", { className: "block mb-1", children: /* @__PURE__ */ jsx33("span", { className: "text-sm font-medium", children: props?.attributes?.label }) }),
1843
+ /* @__PURE__ */ jsxs22("div", { className: "flex gap-6 bg-neutral-100 rounded p-2", children: [
1844
+ /* @__PURE__ */ jsx33(
1845
+ ClientButton_default,
1846
+ {
1847
+ className: assetType === "image" ? "px-2 py-1 rounded bg-body-200 scale-95" : "text-neutral-700",
1848
+ ButtonType: "Link" /* Link */,
1849
+ onClick: () => setAssetType("image"),
1850
+ disabled: isDisabled,
1851
+ children: "Image Upload"
1852
+ }
1853
+ ),
1854
+ /* @__PURE__ */ jsx33(
1855
+ ClientButton_default,
1856
+ {
1857
+ className: assetType === "video" ? "bg-body-200 px-2 py-1 rounded-md scale-95" : "text-neutral-700",
1858
+ ButtonType: "Link" /* Link */,
1859
+ onClick: () => setAssetType("video"),
1860
+ disabled: isDisabled,
1861
+ children: "Video Upload"
1862
+ }
1863
+ )
1864
+ ] }),
1865
+ shouldShowDetails() && /* @__PURE__ */ jsxs22("div", { className: "relative mt-4 rounded-md p-4 border-2 border-dotted border-gray-300 bg-gray-50", children: [
1866
+ /* @__PURE__ */ jsx33("span", { className: "absolute -top-2.5 left-3 bg-primary-600 text-white text-xs px-2 py-0.5 rounded-full", children: getAssetType(allValues[0]) === "video" ? "Video" : "Image" }),
1867
+ /* @__PURE__ */ jsx33("div", { className: "flex flex-col gap-3", children: allValues.map((digitalAsset, index) => /* @__PURE__ */ jsxs22("div", { className: "flex justify-between items-start gap-5", children: [
1868
+ /* @__PURE__ */ jsxs22("div", { className: "grid grid-cols-2 gap-x-8 gap-y-3 text-sm w-full", children: [
1869
+ /* @__PURE__ */ jsxs22("div", { children: [
1870
+ /* @__PURE__ */ jsx33("p", { className: "text-gray-500", children: "Title" }),
1871
+ /* @__PURE__ */ jsx33(
1872
+ "input",
1873
+ {
1874
+ type: "text",
1875
+ value: digitalAsset.title,
1876
+ onChange: (event) => textChangeHandler(index, event),
1877
+ placeholder: "title",
1878
+ disabled: isDisabled,
1879
+ className: "w-full mt-1 py-1.5 block rounded border-gray-300 shadow-sm bg-white\n focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50\n disabled:bg-gray-100 disabled:text-gray-400 disabled:cursor-not-allowed"
1880
+ }
1881
+ )
1882
+ ] }),
1883
+ digitalAsset.intrinsicWidth && digitalAsset.intrinsicHeight && /* @__PURE__ */ jsxs22("div", { children: [
1884
+ /* @__PURE__ */ jsx33("p", { className: "text-gray-500", children: "Resolution" }),
1885
+ /* @__PURE__ */ jsxs22("p", { className: "font-medium text-gray-900 mt-3", children: [
1886
+ digitalAsset.intrinsicWidth,
1887
+ "\xD7",
1888
+ digitalAsset.intrinsicHeight
1889
+ ] })
1890
+ ] }),
1891
+ (digitalAsset.assetUrl || digitalAsset.posterUrl) && /* @__PURE__ */ jsxs22("div", { children: [
1892
+ /* @__PURE__ */ jsx33("p", { className: "text-gray-500", children: "Image / Poster" }),
1893
+ /* @__PURE__ */ jsxs22("div", { className: "flex-shrink-0 flex flex-col gap-3 mt-1", children: [
1894
+ getAssetType(digitalAsset) === "video" && digitalAsset.posterUrl && /* @__PURE__ */ jsx33(
1895
+ "img",
1896
+ {
1897
+ src: AssetUtility_default.resolveUrl(props.serviceClient?.baseUrl, digitalAsset.posterUrl),
1898
+ alt: digitalAsset.title || "Video poster",
1899
+ className: "w-32 h-auto object-cover rounded border p-1"
1900
+ }
1901
+ ),
1902
+ getAssetType(digitalAsset) === "image" && digitalAsset.assetUrl && /* @__PURE__ */ jsx33(
1903
+ "img",
1904
+ {
1905
+ src: AssetUtility_default.resolveUrl(props.serviceClient?.baseUrl, digitalAsset.assetUrl),
1906
+ alt: digitalAsset.title || "Uploaded image",
1907
+ className: "w-32 h-auto object-cover rounded border p-1"
1908
+ }
1909
+ )
1910
+ ] })
1911
+ ] }),
1912
+ digitalAsset.assetUrl?.endsWith(".m3u8") && /* @__PURE__ */ jsxs22("div", { className: "col-span-2", children: [
1913
+ /* @__PURE__ */ jsx33("p", { className: "text-gray-500", children: "HLS Link" }),
1914
+ /* @__PURE__ */ jsx33(
1915
+ Hyperlink,
1916
+ {
1917
+ href: digitalAsset.assetUrl,
1918
+ className: "text-primary-600 underline mt-1 break-all",
1919
+ title: digitalAsset.assetUrl,
1920
+ children: digitalAsset.assetUrl
1921
+ }
1922
+ )
1923
+ ] })
1924
+ ] }),
1925
+ /* @__PURE__ */ jsx33(
1926
+ "span",
1927
+ {
1928
+ onClick: () => !isDisabled && deleteFile(index),
1929
+ className: isDisabled ? "cursor-not-allowed opacity-50" : "cursor-pointer",
1930
+ children: /* @__PURE__ */ jsx33(Icon_default, { className: "w-4 h-4 text-primary", name: "delete" })
1931
+ }
1932
+ )
1933
+ ] }, index)) })
1934
+ ] })
1935
+ ] });
1936
+ };
1937
+ var AssetUpload_default = AssetUpload;
1938
+
1636
1939
  // src/components/controls/edit/InputControl.tsx
1637
- import { jsx as jsx27 } from "react/jsx-runtime";
1638
- var InputControl = React27.forwardRef(
1940
+ import { jsx as jsx34 } from "react/jsx-runtime";
1941
+ var InputControl = React28.forwardRef(
1639
1942
  (props, ref) => {
1640
1943
  const ControlComponents = {
1641
1944
  [InputControlType_default.lineTextInput]: LineTextInput_default,
@@ -1653,23 +1956,24 @@ var InputControl = React27.forwardRef(
1653
1956
  [InputControlType_default.selectWithSearchInput]: SelectWithSearchInput_default,
1654
1957
  [InputControlType_default.selectWithSearchPanel]: SelectWithSearchPanel_default,
1655
1958
  [InputControlType_default.booleanSelect]: BooleanSelect_default,
1656
- [InputControlType_default.timeInput]: TimeInput_default
1959
+ [InputControlType_default.timeInput]: TimeInput_default,
1960
+ [InputControlType_default.asset]: AssetUpload_default
1657
1961
  };
1658
1962
  const SelectedControlComponent = ControlComponents[props.controlType];
1659
- return /* @__PURE__ */ jsx27(React27.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ jsx27(SelectedControlComponent, { ...props }) : "Control not found" });
1963
+ return /* @__PURE__ */ jsx34(React28.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ jsx34(SelectedControlComponent, { ...props }) : "Control not found" });
1660
1964
  }
1661
1965
  );
1662
1966
  InputControl.displayName = "InputControl";
1663
1967
  var InputControl_default = InputControl;
1664
1968
 
1665
1969
  // src/components/pageRenderingEngine/PageBodyRenderer.tsx
1666
- import React41 from "react";
1970
+ import React42 from "react";
1667
1971
 
1668
1972
  // src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
1669
- import React30 from "react";
1973
+ import React31 from "react";
1670
1974
 
1671
1975
  // src/components/pageRenderingEngine/nodes/TextNode.tsx
1672
- import { jsx as jsx28, jsxs as jsxs22 } from "react/jsx-runtime";
1976
+ import { jsx as jsx35, jsxs as jsxs23 } from "react/jsx-runtime";
1673
1977
  var TextNode = (props) => {
1674
1978
  function cssStringToJson(cssString) {
1675
1979
  const styleObject = {};
@@ -1727,59 +2031,36 @@ var TextNode = (props) => {
1727
2031
  });
1728
2032
  }
1729
2033
  function renderWithLineBreaks(text) {
1730
- return text.split("\n").map((line, index, arr) => /* @__PURE__ */ jsxs22("span", { children: [
2034
+ return text.split("\n").map((line, index, arr) => /* @__PURE__ */ jsxs23("span", { children: [
1731
2035
  line,
1732
- index < arr.length - 1 && /* @__PURE__ */ jsx28("br", {})
2036
+ index < arr.length - 1 && /* @__PURE__ */ jsx35("br", {})
1733
2037
  ] }, index));
1734
2038
  }
1735
2039
  const displayText = props.linkText ? props.linkText : props.node.text;
1736
2040
  const finalText = props.dataitem && props.linkText ? displayText : props.dataitem ? replacePlaceholders(props.node.text, props.dataitem) : props.node.text;
1737
2041
  return (
1738
2042
  // @ts-expect-error custom code
1739
- /* @__PURE__ */ jsx28("span", { style: { ...styles }, className: getFormatClass(props.node.format), children: typeof finalText === "string" ? renderWithLineBreaks(finalText) : finalText })
2043
+ /* @__PURE__ */ jsx35("span", { style: { ...styles }, className: getFormatClass(props.node.format), children: typeof finalText === "string" ? renderWithLineBreaks(finalText) : finalText })
1740
2044
  );
1741
2045
  };
1742
2046
  var TextNode_default = TextNode;
1743
2047
 
1744
2048
  // src/components/pageRenderingEngine/nodes/LineBreakNode.tsx
1745
- import { jsx as jsx29 } from "react/jsx-runtime";
2049
+ import { jsx as jsx36 } from "react/jsx-runtime";
1746
2050
  var LineBreakNode = () => {
1747
- return /* @__PURE__ */ jsx29("div", { className: "py-0.5 lg:py-1.5" });
2051
+ return /* @__PURE__ */ jsx36("div", { className: "py-0.5 lg:py-1.5" });
1748
2052
  };
1749
2053
  var LineBreakNode_default = LineBreakNode;
1750
2054
 
1751
2055
  // src/components/pageRenderingEngine/nodes/LinkNode.tsx
1752
- import React29 from "react";
1753
-
1754
- // src/components/pageRenderingEngine/nodes/ImageNode.tsx
1755
- import React28 from "react";
1756
-
1757
- // src/components/utilities/AssetUtility.tsx
1758
- var AssetUtility = class {
1759
- constructor() {
1760
- }
1761
- static resolveUrl(assetBaseUrl, url) {
1762
- if (!url) return void 0;
1763
- if (url.startsWith("http")) return url;
1764
- if (!assetBaseUrl) return url;
1765
- return `${assetBaseUrl}/${url}`;
1766
- }
1767
- // static getAssetUrl(apiBaseUrl: string) {
1768
- // let domainName = apiBaseUrl.replace("https://", "");
1769
- // return `https://cdn.g-assets.com/${domainName}`;
1770
- // }
1771
- static getAssetFullPath(apiBaseUrl, relativePath) {
1772
- const domainName = apiBaseUrl.replace("https://", "");
1773
- return `https://cdn.g-assets.com/${domainName}/${relativePath}`;
1774
- }
1775
- };
1776
- var AssetUtility_default = AssetUtility;
2056
+ import React30 from "react";
1777
2057
 
1778
2058
  // src/components/pageRenderingEngine/nodes/ImageNode.tsx
2059
+ import React29 from "react";
1779
2060
  import dynamic from "next/dynamic";
1780
2061
 
1781
2062
  // src/components/DeviceAssetSelector.tsx
1782
- import { jsx as jsx30 } from "react/jsx-runtime";
2063
+ import { jsx as jsx37 } from "react/jsx-runtime";
1783
2064
  var DeviceAssetSelector = ({
1784
2065
  assets,
1785
2066
  assetBaseUrl,
@@ -1854,7 +2135,7 @@ var DeviceAssetSelector = ({
1854
2135
  const formatClasses = FormatClass[nodeProps?.format || ""] || "";
1855
2136
  const renderMedia = () => {
1856
2137
  if (isHls) {
1857
- return /* @__PURE__ */ jsx30(
2138
+ return /* @__PURE__ */ jsx37(
1858
2139
  HlsPlayer_default,
1859
2140
  {
1860
2141
  assetUrl: resolvedAssetUrl,
@@ -1871,7 +2152,7 @@ var DeviceAssetSelector = ({
1871
2152
  } else {
1872
2153
  return (
1873
2154
  /* eslint-disable-next-line @next/next/no-img-element */
1874
- /* @__PURE__ */ jsx30(
2155
+ /* @__PURE__ */ jsx37(
1875
2156
  "img",
1876
2157
  {
1877
2158
  style: styles,
@@ -1887,17 +2168,17 @@ var DeviceAssetSelector = ({
1887
2168
  }
1888
2169
  };
1889
2170
  if (width) {
1890
- return /* @__PURE__ */ jsx30("div", { style: { width }, children: renderMedia() });
2171
+ return /* @__PURE__ */ jsx37("div", { style: { width }, children: renderMedia() });
1891
2172
  }
1892
2173
  if (nodeProps?.format) {
1893
- return /* @__PURE__ */ jsx30("div", { className: `flex ${formatClasses}`, children: renderMedia() });
2174
+ return /* @__PURE__ */ jsx37("div", { className: `flex ${formatClasses}`, children: renderMedia() });
1894
2175
  }
1895
2176
  return renderMedia();
1896
2177
  };
1897
2178
  var DeviceAssetSelector_default = DeviceAssetSelector;
1898
2179
 
1899
2180
  // src/components/pageRenderingEngine/nodes/ImageNode.tsx
1900
- import { Fragment, jsx as jsx31 } from "react/jsx-runtime";
2181
+ import { Fragment as Fragment2, jsx as jsx38 } from "react/jsx-runtime";
1901
2182
  var HlsPlayer = dynamic(() => import("./HlsPlayer-GV3FOPYT.mjs"), {
1902
2183
  ssr: false
1903
2184
  });
@@ -1940,7 +2221,7 @@ var ImageNode = (props) => {
1940
2221
  console.error("Error parsing assets in ImageNode:", error);
1941
2222
  }
1942
2223
  if (assets && assets.length > 0) {
1943
- return /* @__PURE__ */ jsx31(Fragment, { children: /* @__PURE__ */ jsx31(
2224
+ return /* @__PURE__ */ jsx38(Fragment2, { children: /* @__PURE__ */ jsx38(
1944
2225
  DeviceAssetSelector_default,
1945
2226
  {
1946
2227
  device: props.device,
@@ -1989,7 +2270,7 @@ var ImageNode = (props) => {
1989
2270
  const isHls = imageUrl?.endsWith(".m3u8");
1990
2271
  const renderMedia = () => {
1991
2272
  if (isHls) {
1992
- return /* @__PURE__ */ jsx31(
2273
+ return /* @__PURE__ */ jsx38(
1993
2274
  HlsPlayer,
1994
2275
  {
1995
2276
  assetUrl: imageUrl,
@@ -2004,7 +2285,7 @@ var ImageNode = (props) => {
2004
2285
  }
2005
2286
  );
2006
2287
  } else {
2007
- return /* @__PURE__ */ jsx31(React28.Fragment, { children: /* @__PURE__ */ jsx31(
2288
+ return /* @__PURE__ */ jsx38(React29.Fragment, { children: /* @__PURE__ */ jsx38(
2008
2289
  "img",
2009
2290
  {
2010
2291
  style: styles,
@@ -2019,38 +2300,15 @@ var ImageNode = (props) => {
2019
2300
  }
2020
2301
  };
2021
2302
  if (props.node.width) {
2022
- return /* @__PURE__ */ jsx31("div", { className: `flex ${formatClasses}`, children: renderMedia() });
2303
+ return /* @__PURE__ */ jsx38("div", { className: `flex ${formatClasses}`, children: renderMedia() });
2023
2304
  }
2024
2305
  return renderMedia();
2025
2306
  };
2026
2307
  var ImageNode_default = ImageNode;
2027
2308
 
2028
- // src/components/dataForm/Hyperlink.tsx
2029
- import Link from "next/link";
2030
- import { Fragment as Fragment2, jsx as jsx32 } from "react/jsx-runtime";
2031
- function Hyperlink(props) {
2032
- let linkClass = props.linkType ? buttonClasses.get(props.linkType) : buttonClasses.get("Link" /* Link */);
2033
- const target = props?.href?.startsWith("http") ? "_blank" : "_self";
2034
- const additionalProps = {};
2035
- if (target == "_blank") {
2036
- additionalProps.rel = "noopener noreferrer";
2037
- }
2038
- return /* @__PURE__ */ jsx32(Fragment2, { children: props.href ? /* @__PURE__ */ jsx32(
2039
- Link,
2040
- {
2041
- href: props.href,
2042
- prefetch: false,
2043
- className: [linkClass, props.className].filter(Boolean).join(" "),
2044
- ...additionalProps,
2045
- target,
2046
- children: props.children
2047
- }
2048
- ) : props.isHeading ? /* @__PURE__ */ jsx32("h5", { className: props.className + "inline-block", children: props.children }) : /* @__PURE__ */ jsx32("span", { className: props.className, children: props.children }) });
2049
- }
2050
-
2051
2309
  // src/components/pageRenderingEngine/nodes/LinkNode.tsx
2052
2310
  import dynamic2 from "next/dynamic";
2053
- import { Fragment as Fragment3, jsx as jsx33, jsxs as jsxs23 } from "react/jsx-runtime";
2311
+ import { Fragment as Fragment3, jsx as jsx39, jsxs as jsxs24 } from "react/jsx-runtime";
2054
2312
  var LinkNodeButton = dynamic2(() => import("./LinkNodeButton-SSV4NINC.mjs"), {
2055
2313
  ssr: false
2056
2314
  });
@@ -2097,13 +2355,13 @@ var LinkNode = (props) => {
2097
2355
  const isButton = node.isButton === true;
2098
2356
  const renderChildren = () => {
2099
2357
  if (!node.children || node.children.length === 0) return null;
2100
- return /* @__PURE__ */ jsx33(Fragment3, { children: node.children.map((childNode, index) => {
2358
+ return /* @__PURE__ */ jsx39(Fragment3, { children: node.children.map((childNode, index) => {
2101
2359
  const SelectedNode = NodeTypes2[childNode.type];
2102
2360
  if (!SelectedNode) {
2103
2361
  console.warn("Unknown node type:", childNode.type);
2104
2362
  return null;
2105
2363
  }
2106
- return /* @__PURE__ */ jsx33(React29.Fragment, { children: /* @__PURE__ */ jsx33(
2364
+ return /* @__PURE__ */ jsx39(React30.Fragment, { children: /* @__PURE__ */ jsx39(
2107
2365
  SelectedNode,
2108
2366
  {
2109
2367
  node: childNode,
@@ -2116,15 +2374,15 @@ var LinkNode = (props) => {
2116
2374
  };
2117
2375
  const renderFallback = () => {
2118
2376
  if ((!node.children || node.children.length === 0) && linkText) {
2119
- return /* @__PURE__ */ jsx33("span", { children: linkText });
2377
+ return /* @__PURE__ */ jsx39("span", { children: linkText });
2120
2378
  }
2121
2379
  if ((!node.children || node.children.length === 0) && !linkText) {
2122
- return /* @__PURE__ */ jsx33("br", {});
2380
+ return /* @__PURE__ */ jsx39("br", {});
2123
2381
  }
2124
2382
  return null;
2125
2383
  };
2126
2384
  if (isButton) {
2127
- return /* @__PURE__ */ jsxs23(
2385
+ return /* @__PURE__ */ jsxs24(
2128
2386
  LinkNodeButton,
2129
2387
  {
2130
2388
  node,
@@ -2142,7 +2400,7 @@ var LinkNode = (props) => {
2142
2400
  }
2143
2401
  );
2144
2402
  }
2145
- return /* @__PURE__ */ jsxs23(
2403
+ return /* @__PURE__ */ jsxs24(
2146
2404
  Hyperlink,
2147
2405
  {
2148
2406
  href: linkUrl || "#",
@@ -2158,10 +2416,10 @@ var LinkNode = (props) => {
2158
2416
  var LinkNode_default = LinkNode;
2159
2417
 
2160
2418
  // src/components/pageRenderingEngine/nodes/SVGIconNode.tsx
2161
- import { jsx as jsx34 } from "react/jsx-runtime";
2419
+ import { jsx as jsx40 } from "react/jsx-runtime";
2162
2420
  var SVGIconNode = ({ node }) => {
2163
2421
  if (!node?.svgCode) return null;
2164
- return /* @__PURE__ */ jsx34(
2422
+ return /* @__PURE__ */ jsx40(
2165
2423
  "span",
2166
2424
  {
2167
2425
  style: {
@@ -2178,7 +2436,7 @@ var SVGIconNode_default = SVGIconNode;
2178
2436
 
2179
2437
  // src/components/pageRenderingEngine/nodes/EquationNode.tsx
2180
2438
  import katex from "katex";
2181
- import { jsx as jsx35 } from "react/jsx-runtime";
2439
+ import { jsx as jsx41 } from "react/jsx-runtime";
2182
2440
  var EquationNode = ({ node }) => {
2183
2441
  const { equation, inline } = node;
2184
2442
  let html = "";
@@ -2193,7 +2451,7 @@ var EquationNode = ({ node }) => {
2193
2451
  });
2194
2452
  }
2195
2453
  if (inline) {
2196
- return /* @__PURE__ */ jsx35(
2454
+ return /* @__PURE__ */ jsx41(
2197
2455
  "span",
2198
2456
  {
2199
2457
  className: "katex-inline",
@@ -2201,7 +2459,7 @@ var EquationNode = ({ node }) => {
2201
2459
  }
2202
2460
  );
2203
2461
  }
2204
- return /* @__PURE__ */ jsx35(
2462
+ return /* @__PURE__ */ jsx41(
2205
2463
  "div",
2206
2464
  {
2207
2465
  className: "katex-block my-3 text-center",
@@ -2212,7 +2470,7 @@ var EquationNode = ({ node }) => {
2212
2470
  var EquationNode_default = EquationNode;
2213
2471
 
2214
2472
  // src/components/pageRenderingEngine/nodes/DatafieldNode.tsx
2215
- import { jsx as jsx36 } from "react/jsx-runtime";
2473
+ import { jsx as jsx42 } from "react/jsx-runtime";
2216
2474
  function getNestedProperty(obj, path) {
2217
2475
  if (!obj || !path) return null;
2218
2476
  if (path.includes(".")) {
@@ -2225,7 +2483,7 @@ function getNestedProperty(obj, path) {
2225
2483
  }
2226
2484
  const value = obj[path];
2227
2485
  if (Array.isArray(value)) {
2228
- return value.map((item, index) => /* @__PURE__ */ jsx36("div", { children: String(item) }, index));
2486
+ return value.map((item, index) => /* @__PURE__ */ jsx42("div", { children: String(item) }, index));
2229
2487
  }
2230
2488
  return value;
2231
2489
  }
@@ -2286,7 +2544,7 @@ var DatafieldNode = (props) => {
2286
2544
  const dataType = props.node.dataType;
2287
2545
  if (isEmptyValue) return null;
2288
2546
  if (dataType === "rawContent") {
2289
- return /* @__PURE__ */ jsx36(
2547
+ return /* @__PURE__ */ jsx42(
2290
2548
  PageBodyRenderer_default,
2291
2549
  {
2292
2550
  rawBody: String(value ?? `@databound[${fieldName}]`),
@@ -2302,12 +2560,12 @@ var DatafieldNode = (props) => {
2302
2560
  }
2303
2561
  );
2304
2562
  }
2305
- return /* @__PURE__ */ jsx36(
2563
+ return /* @__PURE__ */ jsx42(
2306
2564
  "span",
2307
2565
  {
2308
2566
  className: `datafield-node ${props.node.format < Formats.length ? Formats[props.node.format] : ""}`,
2309
2567
  style: styles,
2310
- children: /* @__PURE__ */ jsx36(
2568
+ children: /* @__PURE__ */ jsx42(
2311
2569
  ViewControl_default,
2312
2570
  {
2313
2571
  controlType: dataType,
@@ -2320,7 +2578,7 @@ var DatafieldNode = (props) => {
2320
2578
  var DatafieldNode_default = DatafieldNode;
2321
2579
 
2322
2580
  // src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
2323
- import { Fragment as Fragment4, jsx as jsx37, jsxs as jsxs24 } from "react/jsx-runtime";
2581
+ import { Fragment as Fragment4, jsx as jsx43, jsxs as jsxs25 } from "react/jsx-runtime";
2324
2582
  var ParagraphNode = (props) => {
2325
2583
  const NodeTypes2 = {
2326
2584
  ["text"]: TextNode_default,
@@ -2340,9 +2598,9 @@ var ParagraphNode = (props) => {
2340
2598
  const isInlineOnlyParent = props.parentTag === "summary";
2341
2599
  const hasChildren = props.node.children && props.node.children.length > 0;
2342
2600
  if (isInlineOnlyParent) {
2343
- return /* @__PURE__ */ jsx37(Fragment4, { children: hasChildren && props.node.children.map((node, index) => {
2601
+ return /* @__PURE__ */ jsx43(Fragment4, { children: hasChildren && props.node.children.map((node, index) => {
2344
2602
  const SelectedNode = NodeTypes2[node.type];
2345
- return /* @__PURE__ */ jsx37(React30.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx37(
2603
+ return /* @__PURE__ */ jsx43(React31.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx43(
2346
2604
  SelectedNode,
2347
2605
  {
2348
2606
  node,
@@ -2354,10 +2612,10 @@ var ParagraphNode = (props) => {
2354
2612
  ) }, index);
2355
2613
  }) });
2356
2614
  }
2357
- return /* @__PURE__ */ jsxs24("div", { className: " " + formatClasses, children: [
2615
+ return /* @__PURE__ */ jsxs25("div", { className: " " + formatClasses, children: [
2358
2616
  hasChildren && props.node.children.map((node, index) => {
2359
2617
  const SelectedNode = NodeTypes2[node.type];
2360
- return /* @__PURE__ */ jsx37(React30.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx37(
2618
+ return /* @__PURE__ */ jsx43(React31.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx43(
2361
2619
  SelectedNode,
2362
2620
  {
2363
2621
  node,
@@ -2368,14 +2626,14 @@ var ParagraphNode = (props) => {
2368
2626
  }
2369
2627
  ) }, index);
2370
2628
  }),
2371
- !hasChildren && /* @__PURE__ */ jsx37("div", { className: "py-1.5 lg:py-2" })
2629
+ !hasChildren && /* @__PURE__ */ jsx43("div", { className: "py-1.5 lg:py-2" })
2372
2630
  ] });
2373
2631
  };
2374
2632
  var ParagraphNode_default = ParagraphNode;
2375
2633
 
2376
2634
  // src/components/pageRenderingEngine/nodes/HeadingNode.tsx
2377
- import React31 from "react";
2378
- import { Fragment as Fragment5, jsx as jsx38 } from "react/jsx-runtime";
2635
+ import React32 from "react";
2636
+ import { Fragment as Fragment5, jsx as jsx44 } from "react/jsx-runtime";
2379
2637
  var HeadingNode = (props) => {
2380
2638
  const NodeTypes2 = {
2381
2639
  ["text"]: TextNode_default,
@@ -2391,23 +2649,23 @@ var HeadingNode = (props) => {
2391
2649
  {
2392
2650
  }
2393
2651
  const formatClasses = FormatClass[props.node.format] || "";
2394
- return /* @__PURE__ */ jsx38(Fragment5, { children: React31.createElement(
2652
+ return /* @__PURE__ */ jsx44(Fragment5, { children: React32.createElement(
2395
2653
  HeadingTag,
2396
2654
  { className: formatClasses },
2397
2655
  props.node.children && props.node.children.map((childNode, index) => {
2398
2656
  const SelectedNode = NodeTypes2[childNode.type];
2399
- return /* @__PURE__ */ jsx38(React31.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx38(SelectedNode, { node: childNode, dataitem: props.dataitem, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
2657
+ return /* @__PURE__ */ jsx44(React32.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx44(SelectedNode, { node: childNode, dataitem: props.dataitem, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
2400
2658
  })
2401
2659
  ) });
2402
2660
  };
2403
2661
  var HeadingNode_default = HeadingNode;
2404
2662
 
2405
2663
  // src/components/pageRenderingEngine/nodes/ListNode.tsx
2406
- import React33 from "react";
2664
+ import React34 from "react";
2407
2665
 
2408
2666
  // src/components/pageRenderingEngine/nodes/ListItemNode.tsx
2409
- import React32 from "react";
2410
- import { jsx as jsx39 } from "react/jsx-runtime";
2667
+ import React33 from "react";
2668
+ import { jsx as jsx45 } from "react/jsx-runtime";
2411
2669
  var ListItemNode = (props) => {
2412
2670
  const NodeTypes2 = {
2413
2671
  text: TextNode_default,
@@ -2424,66 +2682,66 @@ var ListItemNode = (props) => {
2424
2682
  liStyle.fontSize = match[1].trim();
2425
2683
  }
2426
2684
  }
2427
- return /* @__PURE__ */ jsx39("li", { style: liStyle, children: props.node.children && props.node.children.map((node, index) => {
2685
+ return /* @__PURE__ */ jsx45("li", { style: liStyle, children: props.node.children && props.node.children.map((node, index) => {
2428
2686
  const SelectedNode = NodeTypes2[node.type];
2429
2687
  if (node.type === "linebreak") {
2430
2688
  if (!foundFirstBreak) {
2431
2689
  foundFirstBreak = true;
2432
- return /* @__PURE__ */ jsx39("div", {}, index);
2690
+ return /* @__PURE__ */ jsx45("div", {}, index);
2433
2691
  } else {
2434
- return /* @__PURE__ */ jsx39("div", { className: "py-1 lg:py-2" }, index);
2692
+ return /* @__PURE__ */ jsx45("div", { className: "py-1 lg:py-2" }, index);
2435
2693
  }
2436
2694
  } else {
2437
2695
  foundFirstBreak = false;
2438
- return /* @__PURE__ */ jsx39(React32.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx39(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
2696
+ return /* @__PURE__ */ jsx45(React33.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx45(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
2439
2697
  }
2440
2698
  }) });
2441
2699
  };
2442
2700
  var ListItemNode_default = ListItemNode;
2443
2701
 
2444
2702
  // src/components/pageRenderingEngine/nodes/ListNode.tsx
2445
- import { jsx as jsx40, jsxs as jsxs25 } from "react/jsx-runtime";
2703
+ import { jsx as jsx46, jsxs as jsxs26 } from "react/jsx-runtime";
2446
2704
  var ListNode = (props) => {
2447
2705
  const NodeTypes2 = {
2448
2706
  listitem: ListItemNode_default
2449
2707
  };
2450
- return /* @__PURE__ */ jsxs25(React33.Fragment, { children: [
2451
- props.node.listType == "bullet" && /* @__PURE__ */ jsx40("ul", { children: props.node.children && props.node.children.map((node, index) => {
2708
+ return /* @__PURE__ */ jsxs26(React34.Fragment, { children: [
2709
+ props.node.listType == "bullet" && /* @__PURE__ */ jsx46("ul", { children: props.node.children && props.node.children.map((node, index) => {
2452
2710
  const SelectedNode = NodeTypes2[node.type];
2453
- return /* @__PURE__ */ jsx40(React33.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx40(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
2711
+ return /* @__PURE__ */ jsx46(React34.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx46(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
2454
2712
  }) }),
2455
- props.node.listType == "number" && /* @__PURE__ */ jsx40("ol", { children: props.node.children && props.node.children.map((node, index) => {
2713
+ props.node.listType == "number" && /* @__PURE__ */ jsx46("ol", { children: props.node.children && props.node.children.map((node, index) => {
2456
2714
  const SelectedNode = NodeTypes2[node.type];
2457
- return /* @__PURE__ */ jsx40(React33.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx40(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
2715
+ return /* @__PURE__ */ jsx46(React34.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx46(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
2458
2716
  }) })
2459
2717
  ] });
2460
2718
  };
2461
2719
  var ListNode_default = ListNode;
2462
2720
 
2463
2721
  // src/components/pageRenderingEngine/nodes/QuoteNode.tsx
2464
- import React34 from "react";
2465
- import { jsx as jsx41 } from "react/jsx-runtime";
2722
+ import React35 from "react";
2723
+ import { jsx as jsx47 } from "react/jsx-runtime";
2466
2724
  var QuoteNode = (props) => {
2467
2725
  const NodeTypes2 = {
2468
2726
  ["text"]: TextNode_default,
2469
2727
  ["linebreak"]: LineBreakNode_default,
2470
2728
  ["link"]: LinkNode_default
2471
2729
  };
2472
- return /* @__PURE__ */ jsx41("blockquote", { children: props.node.children && props.node.children.map((node, index) => {
2730
+ return /* @__PURE__ */ jsx47("blockquote", { children: props.node.children && props.node.children.map((node, index) => {
2473
2731
  const SelectedNode = NodeTypes2[node.type];
2474
- return /* @__PURE__ */ jsx41(React34.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx41(SelectedNode, { node, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
2732
+ return /* @__PURE__ */ jsx47(React35.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx47(SelectedNode, { node, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
2475
2733
  }) });
2476
2734
  };
2477
2735
  var QuoteNode_default = QuoteNode;
2478
2736
 
2479
2737
  // src/components/pageRenderingEngine/nodes/CodeNode.tsx
2480
- import React35 from "react";
2738
+ import React36 from "react";
2481
2739
  import dynamic3 from "next/dynamic";
2482
- import { jsx as jsx42, jsxs as jsxs26 } from "react/jsx-runtime";
2740
+ import { jsx as jsx48, jsxs as jsxs27 } from "react/jsx-runtime";
2483
2741
  var CopyButton = dynamic3(() => import("./CopyButton-XONTQQW7.mjs"), {
2484
2742
  ssr: false,
2485
2743
  // optional: fallback UI while loading
2486
- loading: () => /* @__PURE__ */ jsx42("span", { className: "text-gray-400 text-xs", children: "Copy" })
2744
+ loading: () => /* @__PURE__ */ jsx48("span", { className: "text-gray-400 text-xs", children: "Copy" })
2487
2745
  });
2488
2746
  var CodeNode = (props) => {
2489
2747
  const NodeTypes2 = {
@@ -2497,14 +2755,14 @@ var CodeNode = (props) => {
2497
2755
  if (node.type === "link") return node.text || node.url || "";
2498
2756
  return "";
2499
2757
  }).join("") ?? "";
2500
- return /* @__PURE__ */ jsxs26("div", { children: [
2501
- /* @__PURE__ */ jsxs26("div", { className: "flex items-center relative bg-neutral-strong px-4 py-3 text-xs font-sans justify-between rounded-t-md ", children: [
2502
- /* @__PURE__ */ jsx42("span", { children: "Code Snippet" }),
2503
- /* @__PURE__ */ jsx42(CopyButton, { text: textContent })
2758
+ return /* @__PURE__ */ jsxs27("div", { children: [
2759
+ /* @__PURE__ */ jsxs27("div", { className: "flex items-center relative bg-neutral-strong px-4 py-3 text-xs font-sans justify-between rounded-t-md ", children: [
2760
+ /* @__PURE__ */ jsx48("span", { children: "Code Snippet" }),
2761
+ /* @__PURE__ */ jsx48(CopyButton, { text: textContent })
2504
2762
  ] }),
2505
- /* @__PURE__ */ jsx42("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) => {
2763
+ /* @__PURE__ */ jsx48("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) => {
2506
2764
  const SelectedNode = NodeTypes2[node.type];
2507
- return /* @__PURE__ */ jsx42(React35.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx42(
2765
+ return /* @__PURE__ */ jsx48(React36.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx48(
2508
2766
  SelectedNode,
2509
2767
  {
2510
2768
  node,
@@ -2519,15 +2777,15 @@ var CodeNode = (props) => {
2519
2777
  var CodeNode_default = CodeNode;
2520
2778
 
2521
2779
  // src/components/pageRenderingEngine/nodes/HorizontalRuleNode.tsx
2522
- import { jsx as jsx43 } from "react/jsx-runtime";
2780
+ import { jsx as jsx49 } from "react/jsx-runtime";
2523
2781
  var HorizontalRuleNode = () => {
2524
- return /* @__PURE__ */ jsx43("hr", {});
2782
+ return /* @__PURE__ */ jsx49("hr", {});
2525
2783
  };
2526
2784
  var HorizontalRuleNode_default = HorizontalRuleNode;
2527
2785
 
2528
2786
  // src/components/pageRenderingEngine/nodes/WidgetNode.tsx
2529
- import React36 from "react";
2530
- import { Fragment as Fragment6, jsx as jsx44 } from "react/jsx-runtime";
2787
+ import React37 from "react";
2788
+ import { Fragment as Fragment6, jsx as jsx50 } from "react/jsx-runtime";
2531
2789
  var WidgetNode = (props) => {
2532
2790
  const getWidgetParameters = () => {
2533
2791
  const widgetInputParameters = {
@@ -2584,7 +2842,7 @@ var WidgetNode = (props) => {
2584
2842
  };
2585
2843
  const widgetCode = props.node?.widgetCode;
2586
2844
  if (!widgetCode) {
2587
- return /* @__PURE__ */ jsx44(Fragment6, { children: "Invalid widget" });
2845
+ return /* @__PURE__ */ jsx50(Fragment6, { children: "Invalid widget" });
2588
2846
  }
2589
2847
  const widgetParams = getWidgetParameters();
2590
2848
  const WidgetRenderer = props.widgetRenderer;
@@ -2593,7 +2851,7 @@ var WidgetNode = (props) => {
2593
2851
  }
2594
2852
  return (
2595
2853
  // eslint-disable-next-line react-hooks/static-components
2596
- /* @__PURE__ */ jsx44(React36.Fragment, { children: /* @__PURE__ */ jsx44(
2854
+ /* @__PURE__ */ jsx50(React37.Fragment, { children: /* @__PURE__ */ jsx50(
2597
2855
  WidgetRenderer,
2598
2856
  {
2599
2857
  params: widgetParams,
@@ -2610,12 +2868,12 @@ var WidgetNode = (props) => {
2610
2868
  var WidgetNode_default = WidgetNode;
2611
2869
 
2612
2870
  // src/components/pageRenderingEngine/nodes/FormContainerNode.tsx
2613
- import React37, { useRef as useRef3, useReducer, useCallback as useCallback2, useEffect as useEffect6 } from "react";
2871
+ import React38, { useRef as useRef3, useReducer, useCallback as useCallback2, useEffect as useEffect7 } from "react";
2614
2872
 
2615
2873
  // src/components/pageRenderingEngine/nodes/InputControlNode.tsx
2616
- import { jsx as jsx45 } from "react/jsx-runtime";
2874
+ import { jsx as jsx51 } from "react/jsx-runtime";
2617
2875
  var InputControlNode = (props) => {
2618
- return /* @__PURE__ */ jsx45("div", { children: /* @__PURE__ */ jsx45(
2876
+ return /* @__PURE__ */ jsx51("div", { children: /* @__PURE__ */ jsx51(
2619
2877
  InputControl_default,
2620
2878
  {
2621
2879
  name: props.node.name,
@@ -2688,7 +2946,7 @@ function FormReducer(state, action) {
2688
2946
  var FormReducer_default = FormReducer;
2689
2947
 
2690
2948
  // src/components/pageRenderingEngine/nodes/FormContainerNode.tsx
2691
- import { jsx as jsx46, jsxs as jsxs27 } from "react/jsx-runtime";
2949
+ import { jsx as jsx52, jsxs as jsxs28 } from "react/jsx-runtime";
2692
2950
  var FormContainerNode = (props) => {
2693
2951
  const NodeTypes2 = {
2694
2952
  ["input-control"]: InputControlNode_default
@@ -2703,7 +2961,7 @@ var FormContainerNode = (props) => {
2703
2961
  const handleInputChange = useCallback2((updatedValues) => {
2704
2962
  dispatch({ type: FORM_INPUT_UPDATE, name: updatedValues.name, value: updatedValues.value });
2705
2963
  }, [dispatch]);
2706
- useEffect6(() => {
2964
+ useEffect7(() => {
2707
2965
  const fetchInitialData = async () => {
2708
2966
  const client = new ServiceClient_default(props.apiBaseUrl, props.session);
2709
2967
  const response = await client.getSingle(props.node.dataFetchApi, props.routeParameters);
@@ -2718,12 +2976,12 @@ var FormContainerNode = (props) => {
2718
2976
  };
2719
2977
  fetchInitialData();
2720
2978
  }, [props.apiBaseUrl, props.node, props.session, props.routeParameters]);
2721
- return /* @__PURE__ */ jsxs27("form", { className: "group space-y-6 pb-6 overflow-y-auto", noValidate: true, ref: formRef, children: [
2979
+ return /* @__PURE__ */ jsxs28("form", { className: "group space-y-6 pb-6 overflow-y-auto", noValidate: true, ref: formRef, children: [
2722
2980
  node.children && node.children.map((node2, index) => {
2723
2981
  {
2724
2982
  }
2725
2983
  const SelectedNode = NodeTypes2[node2.type];
2726
- return /* @__PURE__ */ jsx46(React37.Fragment, { children: SelectedNode && node2.type == "input-control" && /* @__PURE__ */ jsx46(
2984
+ return /* @__PURE__ */ jsx52(React38.Fragment, { children: SelectedNode && node2.type == "input-control" && /* @__PURE__ */ jsx52(
2727
2985
  InputControlNode_default,
2728
2986
  {
2729
2987
  value: formState.inputValues[node2.name],
@@ -2732,17 +2990,17 @@ var FormContainerNode = (props) => {
2732
2990
  }
2733
2991
  ) }, index);
2734
2992
  }),
2735
- node.children.length == 0 && /* @__PURE__ */ jsx46("div", { className: "py-0.5 lg:py-1.5" })
2993
+ node.children.length == 0 && /* @__PURE__ */ jsx52("div", { className: "py-0.5 lg:py-1.5" })
2736
2994
  ] });
2737
2995
  };
2738
2996
  var FormContainerNode_default = FormContainerNode;
2739
2997
 
2740
2998
  // src/components/pageRenderingEngine/nodes/DivContainer.tsx
2741
- import React40 from "react";
2999
+ import React41 from "react";
2742
3000
 
2743
3001
  // src/components/pageRenderingEngine/nodes/EmbedNode.tsx
2744
3002
  import dynamic4 from "next/dynamic";
2745
- import { jsx as jsx47 } from "react/jsx-runtime";
3003
+ import { jsx as jsx53 } from "react/jsx-runtime";
2746
3004
  var IframeClient = dynamic4(() => import("./IframeClient-J22NMEVY.mjs"), {
2747
3005
  ssr: false
2748
3006
  });
@@ -2755,13 +3013,13 @@ var EmbedNode = (props) => {
2755
3013
  } else {
2756
3014
  src = props.node.embedSrc;
2757
3015
  }
2758
- return /* @__PURE__ */ jsx47("div", { className: "aspect-video", children: src && /* @__PURE__ */ jsx47(IframeClient, { src }) });
3016
+ return /* @__PURE__ */ jsx53("div", { className: "aspect-video", children: src && /* @__PURE__ */ jsx53(IframeClient, { src }) });
2759
3017
  };
2760
3018
  var EmbedNode_default = EmbedNode;
2761
3019
 
2762
3020
  // src/components/Slider.tsx
2763
- import React38, { useState as useState5, useEffect as useEffect7, Children, cloneElement } from "react";
2764
- import { Fragment as Fragment7, jsx as jsx48, jsxs as jsxs28 } from "react/jsx-runtime";
3021
+ import React39, { useState as useState5, useEffect as useEffect8, Children, cloneElement } from "react";
3022
+ import { Fragment as Fragment7, jsx as jsx54, jsxs as jsxs29 } from "react/jsx-runtime";
2765
3023
  var Slider = ({
2766
3024
  children,
2767
3025
  slidesToShow = 4,
@@ -2785,7 +3043,7 @@ var Slider = ({
2785
3043
  typeof slidesToShow === "number" ? slidesToShow : slidesToShow.large
2786
3044
  );
2787
3045
  const [isPlaying, setIsPlaying] = useState5(autoplay);
2788
- useEffect7(() => {
3046
+ useEffect8(() => {
2789
3047
  if (typeof slidesToShow === "number") return;
2790
3048
  const handleResize = () => {
2791
3049
  if (window.innerWidth >= 1024) {
@@ -2800,7 +3058,7 @@ var Slider = ({
2800
3058
  window.addEventListener("resize", handleResize);
2801
3059
  return () => window.removeEventListener("resize", handleResize);
2802
3060
  }, [slidesToShow]);
2803
- useEffect7(() => {
3061
+ useEffect8(() => {
2804
3062
  if (!autoplay) return;
2805
3063
  const timer = setInterval(() => {
2806
3064
  if (isPlaying) {
@@ -2855,10 +3113,10 @@ var Slider = ({
2855
3113
  };
2856
3114
  const translateX = -currentSlide * (100 / slidesToShowState);
2857
3115
  const slides = Children.map(children, (child, index) => {
2858
- if (!React38.isValidElement(child)) return null;
3116
+ if (!React39.isValidElement(child)) return null;
2859
3117
  const childProps = child.props;
2860
3118
  const mergedClassName = `${childProps.className ?? ""} w-full`.trim();
2861
- return /* @__PURE__ */ jsx48(
3119
+ return /* @__PURE__ */ jsx54(
2862
3120
  "div",
2863
3121
  {
2864
3122
  className: `flex-none ${scaleOnHover ? "group hover:z-50" : ""} relative`,
@@ -2881,14 +3139,14 @@ var Slider = ({
2881
3139
  return "bottom-4";
2882
3140
  }
2883
3141
  };
2884
- return /* @__PURE__ */ jsxs28(
3142
+ return /* @__PURE__ */ jsxs29(
2885
3143
  "div",
2886
3144
  {
2887
3145
  className: `relative w-full overflow-hidden ${className}`,
2888
3146
  onMouseEnter: handleMouseEnter,
2889
3147
  onMouseLeave: handleMouseLeave,
2890
3148
  children: [
2891
- /* @__PURE__ */ jsx48(
3149
+ /* @__PURE__ */ jsx54(
2892
3150
  "div",
2893
3151
  {
2894
3152
  className: "flex h-full",
@@ -2899,18 +3157,18 @@ var Slider = ({
2899
3157
  children: slides
2900
3158
  }
2901
3159
  ),
2902
- show_arrows && /* @__PURE__ */ jsxs28(Fragment7, { children: [
2903
- /* @__PURE__ */ jsx48(
3160
+ show_arrows && /* @__PURE__ */ jsxs29(Fragment7, { children: [
3161
+ /* @__PURE__ */ jsx54(
2904
3162
  ArrowButton,
2905
3163
  {
2906
3164
  direction: "left",
2907
3165
  onClick: prevSlide,
2908
3166
  visible: infinite_scroll || currentSlide > 0,
2909
3167
  className: arrowClassName,
2910
- children: /* @__PURE__ */ jsx48("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: "w-6 h-6", children: /* @__PURE__ */ jsx48("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M15.75 19.5 8.25 12l7.5-7.5" }) })
3168
+ children: /* @__PURE__ */ jsx54("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: "w-6 h-6", children: /* @__PURE__ */ jsx54("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M15.75 19.5 8.25 12l7.5-7.5" }) })
2911
3169
  }
2912
3170
  ),
2913
- /* @__PURE__ */ jsxs28(
3171
+ /* @__PURE__ */ jsxs29(
2914
3172
  ArrowButton,
2915
3173
  {
2916
3174
  direction: "right",
@@ -2918,13 +3176,13 @@ var Slider = ({
2918
3176
  visible: infinite_scroll || currentSlide < maxSlide,
2919
3177
  className: arrowClassName,
2920
3178
  children: [
2921
- /* @__PURE__ */ jsx48("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: "w-6 h-6", children: /* @__PURE__ */ jsx48("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "m8.25 4.5 7.5 7.5-7.5 7.5" }) }),
3179
+ /* @__PURE__ */ jsx54("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: "w-6 h-6", children: /* @__PURE__ */ jsx54("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "m8.25 4.5 7.5 7.5-7.5 7.5" }) }),
2922
3180
  " "
2923
3181
  ]
2924
3182
  }
2925
3183
  )
2926
3184
  ] }),
2927
- show_dots && /* @__PURE__ */ jsx48("div", { className: `absolute left-1/2 -translate-x-1/2 flex justify-center space-x-1.5 ${getProgressPositionClass()}`, children: Array.from({ length: totalSlides }).map((_, index) => /* @__PURE__ */ jsx48(
3185
+ show_dots && /* @__PURE__ */ jsx54("div", { className: `absolute left-1/2 -translate-x-1/2 flex justify-center space-x-1.5 ${getProgressPositionClass()}`, children: Array.from({ length: totalSlides }).map((_, index) => /* @__PURE__ */ jsx54(
2928
3186
  ProgressPill,
2929
3187
  {
2930
3188
  active: index === currentSlide,
@@ -2950,7 +3208,7 @@ var ArrowButton = ({
2950
3208
  visible,
2951
3209
  children,
2952
3210
  className = ""
2953
- }) => /* @__PURE__ */ jsx48(
3211
+ }) => /* @__PURE__ */ jsx54(
2954
3212
  "button",
2955
3213
  {
2956
3214
  className: `
@@ -2977,12 +3235,12 @@ var ProgressPill = ({
2977
3235
  totalSlides
2978
3236
  }) => {
2979
3237
  const [progress, setProgress] = useState5(0);
2980
- useEffect7(() => {
3238
+ useEffect8(() => {
2981
3239
  if (active) {
2982
3240
  setProgress(0);
2983
3241
  }
2984
3242
  }, [active, index]);
2985
- useEffect7(() => {
3243
+ useEffect8(() => {
2986
3244
  if (!active || !isPlaying) {
2987
3245
  if (!active) {
2988
3246
  setProgress(0);
@@ -3037,7 +3295,7 @@ var ProgressPill = ({
3037
3295
  const renderProgressBar = () => {
3038
3296
  if (style === "modern" && isActive || style === "cumulative" && shouldShowProgress) {
3039
3297
  const displayProgress = style === "cumulative" && isFilled ? 100 : progress;
3040
- return /* @__PURE__ */ jsx48(
3298
+ return /* @__PURE__ */ jsx54(
3041
3299
  "div",
3042
3300
  {
3043
3301
  className: `absolute top-0 left-0 h-full rounded-full ${style === "cumulative" && isFilled ? activeClassName || "bg-white" : activeClassName || "bg-white"} transition-all duration-50 ease-linear`,
@@ -3049,7 +3307,7 @@ var ProgressPill = ({
3049
3307
  };
3050
3308
  const renderCumulativeFill = () => {
3051
3309
  if (style === "cumulative" && isFilled && !isActive) {
3052
- return /* @__PURE__ */ jsx48(
3310
+ return /* @__PURE__ */ jsx54(
3053
3311
  "div",
3054
3312
  {
3055
3313
  className: `absolute top-0 left-0 h-full rounded-full ${activeClassName || "bg-white"} transition-all duration-300`,
@@ -3059,7 +3317,7 @@ var ProgressPill = ({
3059
3317
  }
3060
3318
  return null;
3061
3319
  };
3062
- return /* @__PURE__ */ jsxs28(
3320
+ return /* @__PURE__ */ jsxs29(
3063
3321
  "button",
3064
3322
  {
3065
3323
  className: `${baseClasses} ${getStyleClasses()}`,
@@ -3397,10 +3655,10 @@ var PathUtility = class {
3397
3655
  var PathUtility_default = new PathUtility();
3398
3656
 
3399
3657
  // src/components/NoDataFound.tsx
3400
- import { jsx as jsx49, jsxs as jsxs29 } from "react/jsx-runtime";
3658
+ import { jsx as jsx55, jsxs as jsxs30 } from "react/jsx-runtime";
3401
3659
  var NoDataFound = () => {
3402
- return /* @__PURE__ */ jsxs29("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center bg-neutral-weak", children: [
3403
- /* @__PURE__ */ jsx49("div", { className: "mb-5", children: /* @__PURE__ */ jsx49("div", { className: "mx-auto w-20 h-20 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ jsx49(
3660
+ return /* @__PURE__ */ jsxs30("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center bg-neutral-weak", children: [
3661
+ /* @__PURE__ */ jsx55("div", { className: "mb-5", children: /* @__PURE__ */ jsx55("div", { className: "mx-auto w-20 h-20 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ jsx55(
3404
3662
  "svg",
3405
3663
  {
3406
3664
  className: "w-10 h-10",
@@ -3408,7 +3666,7 @@ var NoDataFound = () => {
3408
3666
  stroke: "currentColor",
3409
3667
  viewBox: "0 0 24 24",
3410
3668
  xmlns: "http://www.w3.org/2000/svg",
3411
- children: /* @__PURE__ */ jsx49(
3669
+ children: /* @__PURE__ */ jsx55(
3412
3670
  "path",
3413
3671
  {
3414
3672
  strokeLinecap: "round",
@@ -3419,66 +3677,15 @@ var NoDataFound = () => {
3419
3677
  )
3420
3678
  }
3421
3679
  ) }) }),
3422
- /* @__PURE__ */ jsx49("h3", { className: "text-lg font-medium mb-2", children: "No data available" }),
3423
- /* @__PURE__ */ jsx49("p", { className: " max-w-sm mb-0", children: "No records found. Data may be empty or not available at the moment." })
3680
+ /* @__PURE__ */ jsx55("h3", { className: "text-lg font-medium mb-2", children: "No data available" }),
3681
+ /* @__PURE__ */ jsx55("p", { className: " max-w-sm mb-0", children: "No records found. Data may be empty or not available at the moment." })
3424
3682
  ] });
3425
3683
  };
3426
3684
  var NoDataFound_default = NoDataFound;
3427
3685
 
3428
3686
  // src/components/Pagination.tsx
3429
3687
  import { useMemo } from "react";
3430
-
3431
- // src/svg/chevron-updown.tsx
3432
- import { jsx as jsx50 } from "react/jsx-runtime";
3433
- var ChevronUpDown = (props) => {
3434
- return /* @__PURE__ */ jsx50("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: props.className, children: /* @__PURE__ */ jsx50("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9" }) });
3435
- };
3436
- var chevron_updown_default = ChevronUpDown;
3437
-
3438
- // src/svg/chevron-down.tsx
3439
- import { jsx as jsx51 } from "react/jsx-runtime";
3440
- var ChevronDown = (props) => {
3441
- return /* @__PURE__ */ jsx51("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: props.className, children: /* @__PURE__ */ jsx51("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M19.5 8.25l-7.5 7.5-7.5-7.5" }) });
3442
- };
3443
- var chevron_down_default = ChevronDown;
3444
-
3445
- // src/svg/chevron-up.tsx
3446
- import { jsx as jsx52 } from "react/jsx-runtime";
3447
- var ChevronUp = (props) => {
3448
- return /* @__PURE__ */ jsx52("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: props.className, children: /* @__PURE__ */ jsx52("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M4.5 15.75l7.5-7.5 7.5 7.5" }) });
3449
- };
3450
- var chevron_up_default = ChevronUp;
3451
-
3452
- // src/svg/plus.tsx
3453
- import { jsx as jsx53 } from "react/jsx-runtime";
3454
- var Plus = (props) => {
3455
- return /* @__PURE__ */ jsx53("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: props.className, children: /* @__PURE__ */ jsx53("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M12 4.5v15m7.5-7.5h-15" }) });
3456
- };
3457
- var plus_default = Plus;
3458
-
3459
- // src/svg/Icons.tsx
3460
- var Icons = {
3461
- chevronUpDown: chevron_updown_default,
3462
- chevronDown: chevron_down_default,
3463
- chevronUp: chevron_up_default,
3464
- plus: plus_default
3465
- };
3466
- var Icons_default = Icons;
3467
-
3468
- // src/svg/Icon.tsx
3469
- import { jsx as jsx54 } from "react/jsx-runtime";
3470
- var Icon = ({ name, className, ...props }) => {
3471
- const IconComponent = Icons_default[name];
3472
- if (!IconComponent) {
3473
- console.error(`Icon "${name}" not found.`);
3474
- return null;
3475
- }
3476
- return /* @__PURE__ */ jsx54(IconComponent, { ...props, className });
3477
- };
3478
- var Icon_default = Icon;
3479
-
3480
- // src/components/Pagination.tsx
3481
- import { jsx as jsx55, jsxs as jsxs30 } from "react/jsx-runtime";
3688
+ import { jsx as jsx56, jsxs as jsxs31 } from "react/jsx-runtime";
3482
3689
  var Pagination = (props) => {
3483
3690
  const { dataset, path, query, showPageSizeSelector = false, showJumpToPage = false } = props;
3484
3691
  const builder = useMemo(() => {
@@ -3522,7 +3729,7 @@ var Pagination = (props) => {
3522
3729
  return range;
3523
3730
  };
3524
3731
  const paginationRange = getPaginationRange();
3525
- const PageButton = ({ page, children }) => /* @__PURE__ */ jsx55(
3732
+ const PageButton = ({ page, children }) => /* @__PURE__ */ jsx56(
3526
3733
  Hyperlink,
3527
3734
  {
3528
3735
  linkType: "Link" /* Link */,
@@ -3537,9 +3744,9 @@ var Pagination = (props) => {
3537
3744
  );
3538
3745
  const NavigationButton = ({ page, disabled, children }) => {
3539
3746
  if (disabled) {
3540
- return /* @__PURE__ */ jsx55("span", { className: "min-w-[20px] md:min-w-[40px] h-10 flex items-center justify-center px-2 md:px-3 border bg-neutral-base cursor-not-allowed", children });
3747
+ return /* @__PURE__ */ jsx56("span", { className: "min-w-[20px] md:min-w-[40px] h-10 flex items-center justify-center px-2 md:px-3 border bg-neutral-base cursor-not-allowed", children });
3541
3748
  }
3542
- return /* @__PURE__ */ jsx55(
3749
+ return /* @__PURE__ */ jsx56(
3543
3750
  Hyperlink,
3544
3751
  {
3545
3752
  className: "min-w-[20px] md:min-w-[40px] h-10 flex items-center justify-center px-2 md:px-3 border transition-colors duration-150",
@@ -3549,35 +3756,35 @@ var Pagination = (props) => {
3549
3756
  );
3550
3757
  };
3551
3758
  if (totalPages <= 1 && totalItems === 0) return null;
3552
- return /* @__PURE__ */ jsxs30("div", { className: "py-6 border-t bg-default", children: [
3553
- /* @__PURE__ */ jsxs30("div", { className: "flex flex-col sm:flex-row items-center justify-between gap-4", children: [
3554
- /* @__PURE__ */ jsxs30("div", { className: "text-sm", children: [
3759
+ return /* @__PURE__ */ jsxs31("div", { className: "py-6 border-t bg-default", children: [
3760
+ /* @__PURE__ */ jsxs31("div", { className: "flex flex-col sm:flex-row items-center justify-between gap-4", children: [
3761
+ /* @__PURE__ */ jsxs31("div", { className: "text-sm", children: [
3555
3762
  "Showing ",
3556
- /* @__PURE__ */ jsxs30("span", { className: "font-semibold", children: [
3763
+ /* @__PURE__ */ jsxs31("span", { className: "font-semibold", children: [
3557
3764
  startItem,
3558
3765
  "-",
3559
3766
  endItem
3560
3767
  ] }),
3561
3768
  " ",
3562
3769
  "out of ",
3563
- /* @__PURE__ */ jsx55("span", { className: "font-semibold", children: totalItems.toLocaleString() }),
3770
+ /* @__PURE__ */ jsx56("span", { className: "font-semibold", children: totalItems.toLocaleString() }),
3564
3771
  " results"
3565
3772
  ] }),
3566
- totalPages > 1 && /* @__PURE__ */ jsxs30("div", { className: "flex items-center space-x-1", children: [
3567
- /* @__PURE__ */ jsxs30(
3773
+ totalPages > 1 && /* @__PURE__ */ jsxs31("div", { className: "flex items-center space-x-1", children: [
3774
+ /* @__PURE__ */ jsxs31(
3568
3775
  NavigationButton,
3569
3776
  {
3570
3777
  page: activePageNumber - 1,
3571
3778
  disabled: activePageNumber === 1,
3572
3779
  children: [
3573
- /* @__PURE__ */ jsx55("span", { children: /* @__PURE__ */ jsx55(Icon_default, { name: "chevronLeft", className: "w-4 h-4 mr-1" }) }),
3574
- /* @__PURE__ */ jsx55("span", { className: "text-sm", children: "Prev" })
3780
+ /* @__PURE__ */ jsx56("span", { children: /* @__PURE__ */ jsx56(Icon_default, { name: "chevronLeft", className: "w-4 h-4 mr-1" }) }),
3781
+ /* @__PURE__ */ jsx56("span", { className: "text-sm", children: "Prev" })
3575
3782
  ]
3576
3783
  }
3577
3784
  ),
3578
3785
  paginationRange.map((item, index) => {
3579
3786
  if (item === "...") {
3580
- return /* @__PURE__ */ jsx55(
3787
+ return /* @__PURE__ */ jsx56(
3581
3788
  "span",
3582
3789
  {
3583
3790
  className: "min-w-[20px] md:min-w-[40px] h-10 flex items-center justify-center text-gray-500",
@@ -3587,23 +3794,23 @@ var Pagination = (props) => {
3587
3794
  );
3588
3795
  }
3589
3796
  const page = item;
3590
- return /* @__PURE__ */ jsx55(PageButton, { page, children: page }, page);
3797
+ return /* @__PURE__ */ jsx56(PageButton, { page, children: page }, page);
3591
3798
  }),
3592
- /* @__PURE__ */ jsxs30(
3799
+ /* @__PURE__ */ jsxs31(
3593
3800
  NavigationButton,
3594
3801
  {
3595
3802
  page: activePageNumber + 1,
3596
3803
  disabled: activePageNumber === totalPages,
3597
3804
  children: [
3598
- /* @__PURE__ */ jsx55("span", { className: "text-sm", children: "Next" }),
3599
- /* @__PURE__ */ jsx55("span", { children: /* @__PURE__ */ jsx55(Icon_default, { name: "chevronRight", className: "w-4 h-4 ml-1" }) })
3805
+ /* @__PURE__ */ jsx56("span", { className: "text-sm", children: "Next" }),
3806
+ /* @__PURE__ */ jsx56("span", { children: /* @__PURE__ */ jsx56(Icon_default, { name: "chevronRight", className: "w-4 h-4 ml-1" }) })
3600
3807
  ]
3601
3808
  }
3602
3809
  )
3603
3810
  ] }),
3604
- showJumpToPage && totalPages > 5 && /* @__PURE__ */ jsxs30("div", { className: "flex items-center space-x-2", children: [
3605
- /* @__PURE__ */ jsx55("span", { className: "text-sm", children: "Go to:" }),
3606
- /* @__PURE__ */ jsx55("div", { className: "relative", children: /* @__PURE__ */ jsx55(
3811
+ showJumpToPage && totalPages > 5 && /* @__PURE__ */ jsxs31("div", { className: "flex items-center space-x-2", children: [
3812
+ /* @__PURE__ */ jsx56("span", { className: "text-sm", children: "Go to:" }),
3813
+ /* @__PURE__ */ jsx56("div", { className: "relative", children: /* @__PURE__ */ jsx56(
3607
3814
  "input",
3608
3815
  {
3609
3816
  type: "number",
@@ -3624,9 +3831,9 @@ var Pagination = (props) => {
3624
3831
  ) })
3625
3832
  ] })
3626
3833
  ] }),
3627
- showPageSizeSelector && /* @__PURE__ */ jsx55("div", { className: "mt-4 pt-4 border-t bg-default", children: /* @__PURE__ */ jsxs30("div", { className: "flex items-center justify-center space-x-2", children: [
3628
- /* @__PURE__ */ jsx55("span", { className: "text-sm", children: "Show:" }),
3629
- /* @__PURE__ */ jsx55("div", { className: "flex space-x-1", children: [10, 25, 50, 100].map((size) => /* @__PURE__ */ jsx55(
3834
+ showPageSizeSelector && /* @__PURE__ */ jsx56("div", { className: "mt-4 pt-4 border-t bg-default", children: /* @__PURE__ */ jsxs31("div", { className: "flex items-center justify-center space-x-2", children: [
3835
+ /* @__PURE__ */ jsx56("span", { className: "text-sm", children: "Show:" }),
3836
+ /* @__PURE__ */ jsx56("div", { className: "flex space-x-1", children: [10, 25, 50, 100].map((size) => /* @__PURE__ */ jsx56(
3630
3837
  Hyperlink,
3631
3838
  {
3632
3839
  className: `
@@ -3638,7 +3845,7 @@ var Pagination = (props) => {
3638
3845
  },
3639
3846
  size
3640
3847
  )) }),
3641
- /* @__PURE__ */ jsx55("span", { className: "text-sm", children: "per page" })
3848
+ /* @__PURE__ */ jsx56("span", { className: "text-sm", children: "per page" })
3642
3849
  ] }) })
3643
3850
  ] });
3644
3851
  };
@@ -3646,7 +3853,7 @@ var Pagination_default = Pagination;
3646
3853
 
3647
3854
  // src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
3648
3855
  import dynamic5 from "next/dynamic";
3649
- import { Fragment as Fragment8, jsx as jsx56, jsxs as jsxs31 } from "react/jsx-runtime";
3856
+ import { Fragment as Fragment8, jsx as jsx57, jsxs as jsxs32 } from "react/jsx-runtime";
3650
3857
  var HlsPlayer2 = dynamic5(() => import("./HlsPlayer-GV3FOPYT.mjs"), { ssr: false });
3651
3858
  var deviceToMediaQuery = (device) => {
3652
3859
  switch (device) {
@@ -3715,8 +3922,8 @@ var ImageGalleryNode = (props) => {
3715
3922
  right: "justify-end"
3716
3923
  };
3717
3924
  const formatClasses = FormatClass[props.node.format || ""] || "";
3718
- return /* @__PURE__ */ jsxs31(Fragment8, { children: [
3719
- hlsSources.length > 0 && /* @__PURE__ */ jsx56(Fragment8, { children: /* @__PURE__ */ jsx56(
3925
+ return /* @__PURE__ */ jsxs32(Fragment8, { children: [
3926
+ hlsSources.length > 0 && /* @__PURE__ */ jsx57(Fragment8, { children: /* @__PURE__ */ jsx57(
3720
3927
  HlsPlayer2,
3721
3928
  {
3722
3929
  sources: hlsSources,
@@ -3730,14 +3937,14 @@ var ImageGalleryNode = (props) => {
3730
3937
  session: props.session
3731
3938
  }
3732
3939
  ) }),
3733
- staticFallback && /* @__PURE__ */ jsx56(Fragment8, { children: /* @__PURE__ */ jsxs31("picture", { children: [
3940
+ staticFallback && /* @__PURE__ */ jsx57(Fragment8, { children: /* @__PURE__ */ jsxs32("picture", { children: [
3734
3941
  DEVICE_ORDER.map((deviceKey) => {
3735
3942
  const match = staticSources.find((img) => img.device === deviceKey);
3736
3943
  if (!match) return null;
3737
3944
  const srcUrl = resolveImageUrl(match.imageUrl);
3738
3945
  if (!srcUrl) return null;
3739
3946
  const mediaQuery = deviceToMediaQuery(match.device);
3740
- return /* @__PURE__ */ jsx56(
3947
+ return /* @__PURE__ */ jsx57(
3741
3948
  "source",
3742
3949
  {
3743
3950
  media: mediaQuery,
@@ -3761,7 +3968,7 @@ var ImageGalleryNode = (props) => {
3761
3968
  if (img.borderRadius) styles.borderRadius = img.borderRadius;
3762
3969
  return (
3763
3970
  // eslint-disable-next-line @next/next/no-img-element
3764
- /* @__PURE__ */ jsx56(
3971
+ /* @__PURE__ */ jsx57(
3765
3972
  "img",
3766
3973
  {
3767
3974
  loading: "lazy",
@@ -3782,7 +3989,7 @@ var ImageGalleryNode_default = ImageGalleryNode;
3782
3989
 
3783
3990
  // src/components/pageRenderingEngine/nodes/DivContainer.tsx
3784
3991
  import Link2 from "next/link";
3785
- import { jsx as jsx57, jsxs as jsxs32 } from "react/jsx-runtime";
3992
+ import { jsx as jsx58, jsxs as jsxs33 } from "react/jsx-runtime";
3786
3993
  function toCamelCase(str) {
3787
3994
  return str.replace(/-([a-z])/g, (_, letter) => letter.toUpperCase());
3788
3995
  }
@@ -3987,7 +4194,7 @@ var DivContainer = async (props) => {
3987
4194
  response = await serviceClient.get(endpoint);
3988
4195
  result = response?.result;
3989
4196
  if (dataBindingProperties.showNoResultsMessage && (result === void 0 || result.length == 0)) {
3990
- return /* @__PURE__ */ jsx57(NoDataFound_default, {});
4197
+ return /* @__PURE__ */ jsx58(NoDataFound_default, {});
3991
4198
  }
3992
4199
  if (dataBindingProperties.childCollectionName && props.dataitem) {
3993
4200
  childCollectionData = getNestedValue2(props.dataitem, dataBindingProperties.childCollectionName);
@@ -4004,7 +4211,7 @@ var DivContainer = async (props) => {
4004
4211
  }
4005
4212
  const SelectedNode = NodeTypes2[node.type];
4006
4213
  if (!SelectedNode) return null;
4007
- return /* @__PURE__ */ jsx57(React40.Fragment, { children: /* @__PURE__ */ jsx57(
4214
+ return /* @__PURE__ */ jsx58(React41.Fragment, { children: /* @__PURE__ */ jsx58(
4008
4215
  SelectedNode,
4009
4216
  {
4010
4217
  node,
@@ -4106,9 +4313,9 @@ var DivContainer = async (props) => {
4106
4313
  props.node.autoFormat && "auto-format",
4107
4314
  props.node.bgClass
4108
4315
  ].filter(Boolean).join(" ");
4109
- return /* @__PURE__ */ jsxs32(React40.Fragment, { children: [
4110
- /* @__PURE__ */ jsx57("style", { dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS } }),
4111
- /* @__PURE__ */ jsx57(React40.Fragment, { children: /* @__PURE__ */ jsx57(
4316
+ return /* @__PURE__ */ jsxs33(React41.Fragment, { children: [
4317
+ /* @__PURE__ */ jsx58("style", { dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS } }),
4318
+ /* @__PURE__ */ jsx58(React41.Fragment, { children: /* @__PURE__ */ jsx58(
4112
4319
  Wrapper,
4113
4320
  {
4114
4321
  id: guid,
@@ -4117,18 +4324,18 @@ var DivContainer = async (props) => {
4117
4324
  ...wrapperProps,
4118
4325
  children: dataToRender.map(
4119
4326
  (item, idx) => item?.links?.view && renderLink ? renderChildren(props.node.children, props, item, idx, props.href ? void 0 : item?.links?.view)?.map(
4120
- (child, i) => /* @__PURE__ */ jsx57(React40.Fragment, { children: child }, i)
4327
+ (child, i) => /* @__PURE__ */ jsx58(React41.Fragment, { children: child }, i)
4121
4328
  ) : renderChildren(props.node.children, props, item, idx)
4122
4329
  )
4123
4330
  }
4124
4331
  ) }),
4125
- dataBindingProperties && props.node.dataBinding.enablePagination && /* @__PURE__ */ jsx57("div", { children: /* @__PURE__ */ jsx57(Pagination_default, { path: props.path, query: props.query, dataset: response }) })
4332
+ dataBindingProperties && props.node.dataBinding.enablePagination && /* @__PURE__ */ jsx58("div", { children: /* @__PURE__ */ jsx58(Pagination_default, { path: props.path, query: props.query, dataset: response }) })
4126
4333
  ] });
4127
4334
  };
4128
4335
  var DivContainer_default = DivContainer;
4129
4336
 
4130
4337
  // src/components/pageRenderingEngine/PageBodyRenderer.tsx
4131
- import { jsx as jsx58 } from "react/jsx-runtime";
4338
+ import { jsx as jsx59 } from "react/jsx-runtime";
4132
4339
  var NodeTypes = {
4133
4340
  ["paragraph"]: ParagraphNode_default,
4134
4341
  ["heading"]: HeadingNode_default,
@@ -4156,11 +4363,11 @@ var PageBodyRenderer = (props) => {
4156
4363
  if (pageBodyTree && pageBodyTree.root) {
4157
4364
  rootNode = pageBodyTree.root;
4158
4365
  }
4159
- return /* @__PURE__ */ jsx58(React41.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
4366
+ return /* @__PURE__ */ jsx59(React42.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
4160
4367
  {
4161
4368
  }
4162
4369
  const SelectedNode = NodeTypes[node.type];
4163
- return /* @__PURE__ */ jsx58(React41.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx58(React41.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ jsx58(React41.Fragment, { children: /* @__PURE__ */ jsx58(
4370
+ return /* @__PURE__ */ jsx59(React42.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx59(React42.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ jsx59(React42.Fragment, { children: /* @__PURE__ */ jsx59(
4164
4371
  SelectedNode,
4165
4372
  {
4166
4373
  node,
@@ -4176,7 +4383,7 @@ var PageBodyRenderer = (props) => {
4176
4383
  device: props.device,
4177
4384
  widgetRenderer: props.widgetRenderer
4178
4385
  }
4179
- ) }) : /* @__PURE__ */ jsx58(React41.Fragment, { children: /* @__PURE__ */ jsx58(
4386
+ ) }) : /* @__PURE__ */ jsx59(React42.Fragment, { children: /* @__PURE__ */ jsx59(
4180
4387
  SelectedNode,
4181
4388
  {
4182
4389
  node,
@@ -4198,7 +4405,7 @@ var PageBodyRenderer_default = PageBodyRenderer;
4198
4405
 
4199
4406
  // src/components/Toast.tsx
4200
4407
  import { useState as useState7 } from "react";
4201
- import { Fragment as Fragment9, jsx as jsx59, jsxs as jsxs33 } from "react/jsx-runtime";
4408
+ import { Fragment as Fragment9, jsx as jsx60, jsxs as jsxs34 } from "react/jsx-runtime";
4202
4409
  var Toast = () => {
4203
4410
  const [showToast, setShowToast] = useState7(false);
4204
4411
  const [message, setMessage] = useState7("");
@@ -4241,8 +4448,8 @@ var Toast = () => {
4241
4448
  const closeToast = () => {
4242
4449
  setShowToast(false);
4243
4450
  };
4244
- return /* @__PURE__ */ jsx59(Fragment9, { children: showToast && /* @__PURE__ */ jsx59("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__ */ jsxs33("div", { className: `w-full items-center flex justify-between p-3 rounded-md relative shadow border bg-${messageType}-soft`, children: [
4245
- /* @__PURE__ */ jsx59(
4451
+ return /* @__PURE__ */ jsx60(Fragment9, { children: showToast && /* @__PURE__ */ jsx60("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__ */ jsxs34("div", { className: `w-full items-center flex justify-between p-3 rounded-md relative shadow border bg-${messageType}-soft`, children: [
4452
+ /* @__PURE__ */ jsx60(
4246
4453
  "span",
4247
4454
  {
4248
4455
  className: "font-medium text-inherit text-sm",
@@ -4250,7 +4457,7 @@ var Toast = () => {
4250
4457
  children: message
4251
4458
  }
4252
4459
  ),
4253
- /* @__PURE__ */ jsx59("button", { className: "absolute right-2 top-2 ml-2 focus:outline-none", onClick: closeToast, children: /* @__PURE__ */ jsx59(
4460
+ /* @__PURE__ */ jsx60("button", { className: "absolute right-2 top-2 ml-2 focus:outline-none", onClick: closeToast, children: /* @__PURE__ */ jsx60(
4254
4461
  "svg",
4255
4462
  {
4256
4463
  xmlns: "http://www.w3.org/2000/svg",
@@ -4258,7 +4465,7 @@ var Toast = () => {
4258
4465
  fill: "none",
4259
4466
  viewBox: "0 0 24 24",
4260
4467
  stroke: "currentColor",
4261
- children: /* @__PURE__ */ jsx59("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M6 18L18 6M6 6l12 12" })
4468
+ children: /* @__PURE__ */ jsx60("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M6 18L18 6M6 6l12 12" })
4262
4469
  }
4263
4470
  ) })
4264
4471
  ] }) }) });
@@ -4268,7 +4475,7 @@ var Toast_default = Toast;
4268
4475
  // src/components/NavigationTabsV2.tsx
4269
4476
  import Link3 from "next/link";
4270
4477
  import { usePathname } from "next/navigation";
4271
- import { jsx as jsx60 } from "react/jsx-runtime";
4478
+ import { jsx as jsx61 } from "react/jsx-runtime";
4272
4479
  function resolveRoutePlaceholders(route, params) {
4273
4480
  return route.replace(/\{([^}]+)\}/g, (match, key) => {
4274
4481
  const value = params[key];
@@ -4293,8 +4500,8 @@ var NavigationTabsV2 = ({ tabs, params = {} }) => {
4293
4500
  isActive: tab.isActive
4294
4501
  })) || [];
4295
4502
  if (mappedTabs.length === 0) return null;
4296
- return /* @__PURE__ */ jsx60("div", { className: "flex border-b bg-white rounded-t mb-3", children: mappedTabs.map(({ tabTitle, landingPageUrl, isActive }) => {
4297
- return /* @__PURE__ */ jsx60(Link3, { href: landingPageUrl, className: "-mb-px", children: /* @__PURE__ */ jsx60(
4503
+ return /* @__PURE__ */ jsx61("div", { className: "flex border-b bg-white rounded-t mb-3", children: mappedTabs.map(({ tabTitle, landingPageUrl, isActive }) => {
4504
+ return /* @__PURE__ */ jsx61(Link3, { href: landingPageUrl, className: "-mb-px", children: /* @__PURE__ */ jsx61(
4298
4505
  "div",
4299
4506
  {
4300
4507
  className: `text-sm font-medium border-b-2 px-6 py-2 transition
@@ -4307,51 +4514,51 @@ var NavigationTabsV2 = ({ tabs, params = {} }) => {
4307
4514
  var NavigationTabsV2_default = NavigationTabsV2;
4308
4515
 
4309
4516
  // src/components/dataForm/DataList.tsx
4310
- import React45, { useEffect as useEffect8, useState as useState8, useCallback as useCallback3, useReducer as useReducer2 } from "react";
4517
+ import React46, { useEffect as useEffect9, useState as useState8, useCallback as useCallback3, useReducer as useReducer2 } from "react";
4311
4518
  import { useRouter } from "next/navigation";
4312
4519
 
4313
4520
  // src/components/dataForm/NoContentView.tsx
4314
- import React43 from "react";
4315
- import { jsx as jsx61 } from "react/jsx-runtime";
4521
+ import React44 from "react";
4522
+ import { jsx as jsx62 } from "react/jsx-runtime";
4316
4523
  var NoContentView = (props) => {
4317
- return /* @__PURE__ */ jsx61(React43.Fragment, { children: props.isDataFound === false && props.children });
4524
+ return /* @__PURE__ */ jsx62(React44.Fragment, { children: props.isDataFound === false && props.children });
4318
4525
  };
4319
4526
  var NoContentView_default = NoContentView;
4320
4527
 
4321
4528
  // src/components/dataForm/ContentView.tsx
4322
- import React44 from "react";
4323
- import { jsx as jsx62, jsxs as jsxs34 } from "react/jsx-runtime";
4529
+ import React45 from "react";
4530
+ import { jsx as jsx63, jsxs as jsxs35 } from "react/jsx-runtime";
4324
4531
  var ContentView = (props) => {
4325
- return /* @__PURE__ */ jsxs34(React44.Fragment, { children: [
4326
- props.isDataFound == null && /* @__PURE__ */ jsx62("div", { className: "", children: /* @__PURE__ */ jsxs34("div", { className: "bg-gray-200 rounded-md p-4 animate-pulse", children: [
4327
- /* @__PURE__ */ jsxs34("div", { className: "flex items-center mb-4", children: [
4328
- /* @__PURE__ */ jsx62("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
4329
- /* @__PURE__ */ jsxs34("div", { className: "ml-2", children: [
4330
- /* @__PURE__ */ jsx62("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
4331
- /* @__PURE__ */ jsx62("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
4532
+ return /* @__PURE__ */ jsxs35(React45.Fragment, { children: [
4533
+ props.isDataFound == null && /* @__PURE__ */ jsx63("div", { className: "", children: /* @__PURE__ */ jsxs35("div", { className: "bg-gray-200 rounded-md p-4 animate-pulse", children: [
4534
+ /* @__PURE__ */ jsxs35("div", { className: "flex items-center mb-4", children: [
4535
+ /* @__PURE__ */ jsx63("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
4536
+ /* @__PURE__ */ jsxs35("div", { className: "ml-2", children: [
4537
+ /* @__PURE__ */ jsx63("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
4538
+ /* @__PURE__ */ jsx63("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
4332
4539
  ] })
4333
4540
  ] }),
4334
- /* @__PURE__ */ jsxs34("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
4335
- /* @__PURE__ */ jsxs34("div", { className: "animate-pulse", children: [
4336
- /* @__PURE__ */ jsx62("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
4337
- /* @__PURE__ */ jsx62("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
4338
- /* @__PURE__ */ jsx62("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
4339
- /* @__PURE__ */ jsx62("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
4340
- /* @__PURE__ */ jsx62("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
4541
+ /* @__PURE__ */ jsxs35("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
4542
+ /* @__PURE__ */ jsxs35("div", { className: "animate-pulse", children: [
4543
+ /* @__PURE__ */ jsx63("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
4544
+ /* @__PURE__ */ jsx63("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
4545
+ /* @__PURE__ */ jsx63("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
4546
+ /* @__PURE__ */ jsx63("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
4547
+ /* @__PURE__ */ jsx63("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
4341
4548
  ] }),
4342
- /* @__PURE__ */ jsxs34("div", { className: "animate-pulse", children: [
4343
- /* @__PURE__ */ jsx62("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
4344
- /* @__PURE__ */ jsx62("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
4345
- /* @__PURE__ */ jsx62("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
4346
- /* @__PURE__ */ jsx62("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
4347
- /* @__PURE__ */ jsx62("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
4549
+ /* @__PURE__ */ jsxs35("div", { className: "animate-pulse", children: [
4550
+ /* @__PURE__ */ jsx63("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
4551
+ /* @__PURE__ */ jsx63("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
4552
+ /* @__PURE__ */ jsx63("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
4553
+ /* @__PURE__ */ jsx63("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
4554
+ /* @__PURE__ */ jsx63("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
4348
4555
  ] }),
4349
- /* @__PURE__ */ jsxs34("div", { className: "animate-pulse", children: [
4350
- /* @__PURE__ */ jsx62("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
4351
- /* @__PURE__ */ jsx62("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
4352
- /* @__PURE__ */ jsx62("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
4353
- /* @__PURE__ */ jsx62("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
4354
- /* @__PURE__ */ jsx62("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
4556
+ /* @__PURE__ */ jsxs35("div", { className: "animate-pulse", children: [
4557
+ /* @__PURE__ */ jsx63("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
4558
+ /* @__PURE__ */ jsx63("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
4559
+ /* @__PURE__ */ jsx63("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
4560
+ /* @__PURE__ */ jsx63("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
4561
+ /* @__PURE__ */ jsx63("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
4355
4562
  ] })
4356
4563
  ] })
4357
4564
  ] }) }),
@@ -4361,7 +4568,7 @@ var ContentView = (props) => {
4361
4568
  var ContentView_default = ContentView;
4362
4569
 
4363
4570
  // src/components/dataForm/DataList.tsx
4364
- import { Fragment as Fragment10, jsx as jsx63, jsxs as jsxs35 } from "react/jsx-runtime";
4571
+ import { Fragment as Fragment10, jsx as jsx64, jsxs as jsxs36 } from "react/jsx-runtime";
4365
4572
  var DataList = (props) => {
4366
4573
  console.log(props.dataset, "datasetssssss");
4367
4574
  const router = useRouter();
@@ -4371,7 +4578,7 @@ var DataList = (props) => {
4371
4578
  let pages = 0;
4372
4579
  console.log(props.addLinkText);
4373
4580
  const [isDataFound, setIsDataFound] = useState8(null);
4374
- useEffect8(() => {
4581
+ useEffect9(() => {
4375
4582
  if (props?.dataset) {
4376
4583
  if (props?.dataset.result && props.dataset.result.length > 0) {
4377
4584
  setIsDataFound(true);
@@ -4384,7 +4591,7 @@ var DataList = (props) => {
4384
4591
  if (path.includes(".")) {
4385
4592
  return path.split(".").reduce((prev, curr) => prev ? prev[curr] : null, obj);
4386
4593
  } else if (Array.isArray(obj[path])) {
4387
- return obj[path].map((item, index) => /* @__PURE__ */ jsx63("div", { children: item }, index));
4594
+ return obj[path].map((item, index) => /* @__PURE__ */ jsx64("div", { children: item }, index));
4388
4595
  } else {
4389
4596
  return obj[path];
4390
4597
  }
@@ -4440,30 +4647,30 @@ var DataList = (props) => {
4440
4647
  const renderPageNumbers = () => {
4441
4648
  if (pages <= 10) {
4442
4649
  return Array.from({ length: pages }, (_, index) => index + 1).map(
4443
- (page) => /* @__PURE__ */ jsx63(React45.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx63(
4650
+ (page) => /* @__PURE__ */ jsx64(React46.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx64(
4444
4651
  Hyperlink,
4445
4652
  {
4446
4653
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
4447
4654
  href: builder.getNewPageUrl(page),
4448
4655
  children: page
4449
4656
  }
4450
- ) : /* @__PURE__ */ jsx63("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary text-white", children: page }) }, page)
4657
+ ) : /* @__PURE__ */ jsx64("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary text-white", children: page }) }, page)
4451
4658
  );
4452
4659
  } else {
4453
4660
  const showFirstPages = activePageNumber <= 5;
4454
4661
  const showLastPages = activePageNumber > pages - 5;
4455
4662
  if (showFirstPages) {
4456
- return /* @__PURE__ */ jsxs35(Fragment10, { children: [
4457
- Array.from({ length: 8 }, (_, index) => index + 1).map((page) => /* @__PURE__ */ jsx63(React45.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx63(
4663
+ return /* @__PURE__ */ jsxs36(Fragment10, { children: [
4664
+ Array.from({ length: 8 }, (_, index) => index + 1).map((page) => /* @__PURE__ */ jsx64(React46.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx64(
4458
4665
  Hyperlink,
4459
4666
  {
4460
4667
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
4461
4668
  href: builder.getNewPageUrl(page),
4462
4669
  children: page
4463
4670
  }
4464
- ) : /* @__PURE__ */ jsx63("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary text-white", children: page }) }, page)),
4465
- /* @__PURE__ */ jsx63("span", { className: "px-2 py-1", children: "..." }),
4466
- /* @__PURE__ */ jsx63(
4671
+ ) : /* @__PURE__ */ jsx64("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary text-white", children: page }) }, page)),
4672
+ /* @__PURE__ */ jsx64("span", { className: "px-2 py-1", children: "..." }),
4673
+ /* @__PURE__ */ jsx64(
4467
4674
  Hyperlink,
4468
4675
  {
4469
4676
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -4471,7 +4678,7 @@ var DataList = (props) => {
4471
4678
  children: pages - 1
4472
4679
  }
4473
4680
  ),
4474
- /* @__PURE__ */ jsx63(
4681
+ /* @__PURE__ */ jsx64(
4475
4682
  Hyperlink,
4476
4683
  {
4477
4684
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -4479,7 +4686,7 @@ var DataList = (props) => {
4479
4686
  children: pages
4480
4687
  }
4481
4688
  ),
4482
- /* @__PURE__ */ jsx63("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs35(
4689
+ /* @__PURE__ */ jsx64("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs36(
4483
4690
  "select",
4484
4691
  {
4485
4692
  className: " py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
@@ -4491,18 +4698,18 @@ var DataList = (props) => {
4491
4698
  }
4492
4699
  },
4493
4700
  children: [
4494
- /* @__PURE__ */ jsx63("option", { className: "", value: "", children: "Jump to" }),
4701
+ /* @__PURE__ */ jsx64("option", { className: "", value: "", children: "Jump to" }),
4495
4702
  Array.from(
4496
4703
  { length: Math.max(0, pages - 10) },
4497
4704
  (_, index) => index + 9
4498
- ).map((page) => /* @__PURE__ */ jsx63("option", { value: page, children: page }, page))
4705
+ ).map((page) => /* @__PURE__ */ jsx64("option", { value: page, children: page }, page))
4499
4706
  ]
4500
4707
  }
4501
4708
  ) })
4502
4709
  ] });
4503
4710
  } else if (showLastPages) {
4504
- return /* @__PURE__ */ jsxs35(Fragment10, { children: [
4505
- /* @__PURE__ */ jsx63(
4711
+ return /* @__PURE__ */ jsxs36(Fragment10, { children: [
4712
+ /* @__PURE__ */ jsx64(
4506
4713
  Hyperlink,
4507
4714
  {
4508
4715
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -4510,7 +4717,7 @@ var DataList = (props) => {
4510
4717
  children: "1"
4511
4718
  }
4512
4719
  ),
4513
- /* @__PURE__ */ jsx63(
4720
+ /* @__PURE__ */ jsx64(
4514
4721
  Hyperlink,
4515
4722
  {
4516
4723
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -4518,21 +4725,21 @@ var DataList = (props) => {
4518
4725
  children: "2"
4519
4726
  }
4520
4727
  ),
4521
- /* @__PURE__ */ jsx63("span", { className: "px-2 py-1", children: "..." }),
4728
+ /* @__PURE__ */ jsx64("span", { className: "px-2 py-1", children: "..." }),
4522
4729
  Array.from({ length: 8 }, (_, index) => pages - 7 + index).map(
4523
- (page) => /* @__PURE__ */ jsx63(React45.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx63(
4730
+ (page) => /* @__PURE__ */ jsx64(React46.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx64(
4524
4731
  Hyperlink,
4525
4732
  {
4526
4733
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
4527
4734
  href: builder.getNewPageUrl(page),
4528
4735
  children: page
4529
4736
  }
4530
- ) : /* @__PURE__ */ jsx63("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary text-white", children: page }) }, page)
4737
+ ) : /* @__PURE__ */ jsx64("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary text-white", children: page }) }, page)
4531
4738
  )
4532
4739
  ] });
4533
4740
  } else {
4534
- return /* @__PURE__ */ jsxs35(Fragment10, { children: [
4535
- /* @__PURE__ */ jsx63(
4741
+ return /* @__PURE__ */ jsxs36(Fragment10, { children: [
4742
+ /* @__PURE__ */ jsx64(
4536
4743
  Hyperlink,
4537
4744
  {
4538
4745
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -4540,7 +4747,7 @@ var DataList = (props) => {
4540
4747
  children: "1"
4541
4748
  }
4542
4749
  ),
4543
- /* @__PURE__ */ jsx63(
4750
+ /* @__PURE__ */ jsx64(
4544
4751
  Hyperlink,
4545
4752
  {
4546
4753
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -4548,20 +4755,20 @@ var DataList = (props) => {
4548
4755
  children: "2"
4549
4756
  }
4550
4757
  ),
4551
- /* @__PURE__ */ jsx63("span", { className: "px-2 py-1", children: "..." }),
4758
+ /* @__PURE__ */ jsx64("span", { className: "px-2 py-1", children: "..." }),
4552
4759
  Array.from(
4553
4760
  { length: 5 },
4554
4761
  (_, index) => activePageNumber - 2 + index
4555
- ).map((page) => /* @__PURE__ */ jsx63(React45.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx63(
4762
+ ).map((page) => /* @__PURE__ */ jsx64(React46.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx64(
4556
4763
  Hyperlink,
4557
4764
  {
4558
4765
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
4559
4766
  href: builder.getNewPageUrl(page),
4560
4767
  children: page
4561
4768
  }
4562
- ) : /* @__PURE__ */ jsx63("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary text-white", children: page }) }, page)),
4563
- /* @__PURE__ */ jsx63("span", { className: "px-2 py-1", children: "..." }),
4564
- /* @__PURE__ */ jsx63(
4769
+ ) : /* @__PURE__ */ jsx64("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary text-white", children: page }) }, page)),
4770
+ /* @__PURE__ */ jsx64("span", { className: "px-2 py-1", children: "..." }),
4771
+ /* @__PURE__ */ jsx64(
4565
4772
  Hyperlink,
4566
4773
  {
4567
4774
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -4569,7 +4776,7 @@ var DataList = (props) => {
4569
4776
  children: pages - 1
4570
4777
  }
4571
4778
  ),
4572
- /* @__PURE__ */ jsx63(
4779
+ /* @__PURE__ */ jsx64(
4573
4780
  Hyperlink,
4574
4781
  {
4575
4782
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -4577,7 +4784,7 @@ var DataList = (props) => {
4577
4784
  children: pages
4578
4785
  }
4579
4786
  ),
4580
- /* @__PURE__ */ jsx63("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs35(
4787
+ /* @__PURE__ */ jsx64("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs36(
4581
4788
  "select",
4582
4789
  {
4583
4790
  className: "px-2 py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
@@ -4589,8 +4796,8 @@ var DataList = (props) => {
4589
4796
  }
4590
4797
  },
4591
4798
  children: [
4592
- /* @__PURE__ */ jsx63("option", { value: "", children: "Jump to" }),
4593
- Array.from({ length: pages - 4 }, (_, index) => index + 3).filter((page) => page > 2 && page < pages - 1).map((page) => /* @__PURE__ */ jsx63("option", { value: page, children: page }, page))
4799
+ /* @__PURE__ */ jsx64("option", { value: "", children: "Jump to" }),
4800
+ Array.from({ length: pages - 4 }, (_, index) => index + 3).filter((page) => page > 2 && page < pages - 1).map((page) => /* @__PURE__ */ jsx64("option", { value: page, children: page }, page))
4594
4801
  ]
4595
4802
  }
4596
4803
  ) })
@@ -4598,16 +4805,16 @@ var DataList = (props) => {
4598
4805
  }
4599
4806
  }
4600
4807
  };
4601
- return /* @__PURE__ */ jsxs35(React45.Fragment, { children: [
4602
- /* @__PURE__ */ jsxs35(ContentView_default, { isDataFound, children: [
4603
- (props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ jsxs35(
4808
+ return /* @__PURE__ */ jsxs36(React46.Fragment, { children: [
4809
+ /* @__PURE__ */ jsxs36(ContentView_default, { isDataFound, children: [
4810
+ (props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ jsxs36(
4604
4811
  "div",
4605
4812
  {
4606
4813
  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 sticky top-0`,
4607
4814
  children: [
4608
- props.title ? /* @__PURE__ */ jsx63("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ jsx63("h2", { className: "text-lg font-semibold text-black-800", children: props.title }) }) : /* @__PURE__ */ jsx63("div", {}),
4609
- /* @__PURE__ */ jsxs35("div", { className: "flex items-center gap-3", children: [
4610
- props.filters && props.filters.map((filter) => /* @__PURE__ */ jsx63(
4815
+ props.title ? /* @__PURE__ */ jsx64("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ jsx64("h2", { className: "text-lg font-semibold text-black-800", children: props.title }) }) : /* @__PURE__ */ jsx64("div", {}),
4816
+ /* @__PURE__ */ jsxs36("div", { className: "flex items-center gap-3", children: [
4817
+ props.filters && props.filters.map((filter) => /* @__PURE__ */ jsx64(
4611
4818
  InputControl_default,
4612
4819
  {
4613
4820
  name: filter.name,
@@ -4622,15 +4829,15 @@ var DataList = (props) => {
4622
4829
  },
4623
4830
  filter.name
4624
4831
  )),
4625
- props.addLinkHref && /* @__PURE__ */ jsxs35(
4832
+ props.addLinkHref && /* @__PURE__ */ jsxs36(
4626
4833
  Hyperlink,
4627
4834
  {
4628
4835
  className: "gap-1",
4629
4836
  linkType: "Primary" /* Solid */,
4630
4837
  href: props.addLinkHref,
4631
4838
  children: [
4632
- /* @__PURE__ */ jsx63(Icon_default, { name: "plus", className: "w-4 h-4" }),
4633
- /* @__PURE__ */ jsx63("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
4839
+ /* @__PURE__ */ jsx64(Icon_default, { name: "plus", className: "w-4 h-4" }),
4840
+ /* @__PURE__ */ jsx64("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
4634
4841
  ]
4635
4842
  }
4636
4843
  )
@@ -4638,8 +4845,8 @@ var DataList = (props) => {
4638
4845
  ]
4639
4846
  }
4640
4847
  ),
4641
- /* @__PURE__ */ jsx63("div", { className: "flex-1 overflow-y-auto justify-end bg-white rounded shadow h-[calc(100vh-14rem)]", children: /* @__PURE__ */ jsxs35("table", { className: "w-full divide-y divide-gray-200", children: [
4642
- /* @__PURE__ */ jsx63("thead", { className: "bg-gray-50 sticky top-0", children: /* @__PURE__ */ jsx63("tr", { children: props?.columns?.map((column) => {
4848
+ /* @__PURE__ */ jsx64("div", { className: "flex-1 overflow-y-auto justify-end bg-white rounded shadow h-[calc(100vh-14rem)]", children: /* @__PURE__ */ jsxs36("table", { className: "w-full divide-y divide-gray-200", children: [
4849
+ /* @__PURE__ */ jsx64("thead", { className: "bg-gray-50 sticky top-0", children: /* @__PURE__ */ jsx64("tr", { children: props?.columns?.map((column) => {
4643
4850
  let url = builder.getNewOrderByUrl(column.name);
4644
4851
  let icon = "chevronUpDown";
4645
4852
  if (orderBy.includes(`${column.name} desc`)) {
@@ -4649,36 +4856,36 @@ var DataList = (props) => {
4649
4856
  icon = "chevronUp";
4650
4857
  url = builder.getNewOrderByUrl(column.name + " desc");
4651
4858
  }
4652
- return /* @__PURE__ */ jsx63(
4859
+ return /* @__PURE__ */ jsx64(
4653
4860
  "th",
4654
4861
  {
4655
4862
  className: "px-6 py-3 text-left font-medium cursor-pointer bg-neutral-soft " + column.width + (column.controlType == ViewControlTypes_default.money ? " text-right" : ""),
4656
- children: /* @__PURE__ */ jsx63(Hyperlink, { href: url, className: "!text-neutral-contrast ", children: /* @__PURE__ */ jsxs35("span", { className: "flex items-center space-x-1", children: [
4657
- /* @__PURE__ */ jsx63("span", { className: "text-black", children: column.label }),
4658
- column.enableSorting && /* @__PURE__ */ jsx63(Icon_default, { className: "w-4 h-4", name: icon })
4863
+ children: /* @__PURE__ */ jsx64(Hyperlink, { href: url, className: "!text-neutral-contrast ", children: /* @__PURE__ */ jsxs36("span", { className: "flex items-center space-x-1", children: [
4864
+ /* @__PURE__ */ jsx64("span", { className: "text-black", children: column.label }),
4865
+ column.enableSorting && /* @__PURE__ */ jsx64(Icon_default, { className: "w-4 h-4", name: icon })
4659
4866
  ] }) })
4660
4867
  },
4661
4868
  column.name
4662
4869
  );
4663
4870
  }) }) }),
4664
- /* @__PURE__ */ jsx63("tbody", { className: "divide-y divide-gray-200 ", children: props.dataset?.result?.map((dataitem, index) => {
4871
+ /* @__PURE__ */ jsx64("tbody", { className: "divide-y divide-gray-200 ", children: props.dataset?.result?.map((dataitem, index) => {
4665
4872
  let validityClass = "";
4666
4873
  console.log("dataitem", dataitem);
4667
4874
  if (props.recordValidityColumnName && getNestedProperty2(dataitem, props.recordValidityColumnName) == false) {
4668
4875
  validityClass = "bg-alert-200";
4669
4876
  }
4670
- return /* @__PURE__ */ jsx63("tr", { className: validityClass, children: props?.columns?.map((column, colindex) => {
4877
+ return /* @__PURE__ */ jsx64("tr", { className: validityClass, children: props?.columns?.map((column, colindex) => {
4671
4878
  console.log("column", column);
4672
- return /* @__PURE__ */ jsx63(React45.Fragment, { children: /* @__PURE__ */ jsx63(
4879
+ return /* @__PURE__ */ jsx64(React46.Fragment, { children: /* @__PURE__ */ jsx64(
4673
4880
  "td",
4674
4881
  {
4675
4882
  className: "px-6 py-2 whitespace-normal " + (column.controlType == ViewControlTypes_default.money ? "" : ""),
4676
- children: column.addhref === true ? /* @__PURE__ */ jsx63(
4883
+ children: column.addhref === true ? /* @__PURE__ */ jsx64(
4677
4884
  Hyperlink,
4678
4885
  {
4679
4886
  className: "",
4680
4887
  href: `https://${dataitem[column.name]}`,
4681
- children: /* @__PURE__ */ jsx63(
4888
+ children: /* @__PURE__ */ jsx64(
4682
4889
  ViewControl_default,
4683
4890
  {
4684
4891
  controlType: column.controlType,
@@ -4691,11 +4898,11 @@ var DataList = (props) => {
4691
4898
  }
4692
4899
  )
4693
4900
  }
4694
- ) : column.showAsLink ? /* @__PURE__ */ jsx63(
4901
+ ) : column.showAsLink ? /* @__PURE__ */ jsx64(
4695
4902
  Hyperlink,
4696
4903
  {
4697
4904
  href: props.path + dataitem[props.columns[0].name] + "/" + (dataitem.linkUrlSegment ?? column.linkUrlSegment),
4698
- children: /* @__PURE__ */ jsx63(
4905
+ children: /* @__PURE__ */ jsx64(
4699
4906
  ViewControl_default,
4700
4907
  {
4701
4908
  controlType: column.controlType,
@@ -4705,7 +4912,7 @@ var DataList = (props) => {
4705
4912
  }
4706
4913
  )
4707
4914
  }
4708
- ) : /* @__PURE__ */ jsx63(
4915
+ ) : /* @__PURE__ */ jsx64(
4709
4916
  ViewControl_default,
4710
4917
  {
4711
4918
  controlType: column.controlType,
@@ -4719,10 +4926,10 @@ var DataList = (props) => {
4719
4926
  }) }, index);
4720
4927
  }) })
4721
4928
  ] }) }),
4722
- /* @__PURE__ */ jsx63("div", { className: "pt-4 border-t border-t-gray-50 sticky bottom-0 h-11 mt-2 ", children: /* @__PURE__ */ jsxs35("div", { className: "flex items-center justify-between", children: [
4723
- /* @__PURE__ */ jsx63("div", { className: "text-gray-700", children: label }),
4724
- /* @__PURE__ */ jsxs35("div", { className: "flex space-x-2 items-center", children: [
4725
- activePageNumber > 1 && /* @__PURE__ */ jsx63(
4929
+ /* @__PURE__ */ jsx64("div", { className: "pt-4 border-t border-t-gray-50 sticky bottom-0 h-11 mt-2 ", children: /* @__PURE__ */ jsxs36("div", { className: "flex items-center justify-between", children: [
4930
+ /* @__PURE__ */ jsx64("div", { className: "text-gray-700", children: label }),
4931
+ /* @__PURE__ */ jsxs36("div", { className: "flex space-x-2 items-center", children: [
4932
+ activePageNumber > 1 && /* @__PURE__ */ jsx64(
4726
4933
  Hyperlink,
4727
4934
  {
4728
4935
  className: "px-3 py-1 rounded-l-md border border-gray-300 bg-white text-gray-500 hover:bg-gray-200",
@@ -4730,9 +4937,9 @@ var DataList = (props) => {
4730
4937
  children: "Prev"
4731
4938
  }
4732
4939
  ),
4733
- activePageNumber <= 1 && /* @__PURE__ */ jsx63("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" }),
4940
+ activePageNumber <= 1 && /* @__PURE__ */ jsx64("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" }),
4734
4941
  renderPageNumbers(),
4735
- activePageNumber < pages && /* @__PURE__ */ jsx63(
4942
+ activePageNumber < pages && /* @__PURE__ */ jsx64(
4736
4943
  Hyperlink,
4737
4944
  {
4738
4945
  className: "px-3 py-1 rounded-r-md border border-gray-300 bg-white text-gray-500 hover:bg-gray-200",
@@ -4740,19 +4947,19 @@ var DataList = (props) => {
4740
4947
  children: "Next"
4741
4948
  }
4742
4949
  ),
4743
- activePageNumber >= pages && /* @__PURE__ */ jsx63("div", { className: "px-3 py-1 rounded-r-md border border-gray-300 bg-gray-200 text-gray-500", children: "Next" })
4950
+ activePageNumber >= pages && /* @__PURE__ */ jsx64("div", { className: "px-3 py-1 rounded-r-md border border-gray-300 bg-gray-200 text-gray-500", children: "Next" })
4744
4951
  ] })
4745
4952
  ] }) })
4746
4953
  ] }),
4747
- /* @__PURE__ */ jsxs35(NoContentView_default, { isDataFound, children: [
4748
- (props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ jsxs35(
4954
+ /* @__PURE__ */ jsxs36(NoContentView_default, { isDataFound, children: [
4955
+ (props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ jsxs36(
4749
4956
  "div",
4750
4957
  {
4751
4958
  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`,
4752
4959
  children: [
4753
- props.title ? /* @__PURE__ */ jsx63("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ jsx63("h2", { className: "text-lg font-semibold text-black", children: props.title }) }) : /* @__PURE__ */ jsx63("div", {}),
4754
- /* @__PURE__ */ jsxs35("div", { className: "flex items-center gap-3", children: [
4755
- props.filters && props.filters.map((filter) => /* @__PURE__ */ jsx63(
4960
+ props.title ? /* @__PURE__ */ jsx64("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ jsx64("h2", { className: "text-lg font-semibold text-black", children: props.title }) }) : /* @__PURE__ */ jsx64("div", {}),
4961
+ /* @__PURE__ */ jsxs36("div", { className: "flex items-center gap-3", children: [
4962
+ props.filters && props.filters.map((filter) => /* @__PURE__ */ jsx64(
4756
4963
  InputControl_default,
4757
4964
  {
4758
4965
  name: filter.name,
@@ -4767,15 +4974,15 @@ var DataList = (props) => {
4767
4974
  },
4768
4975
  filter.name
4769
4976
  )),
4770
- props.addLinkHref && /* @__PURE__ */ jsxs35(
4977
+ props.addLinkHref && /* @__PURE__ */ jsxs36(
4771
4978
  Hyperlink,
4772
4979
  {
4773
4980
  className: "gap-1",
4774
4981
  linkType: "Primary" /* Solid */,
4775
4982
  href: props.addLinkHref,
4776
4983
  children: [
4777
- /* @__PURE__ */ jsx63(Icon_default, { name: "plus", className: "w-4 h-4" }),
4778
- /* @__PURE__ */ jsx63("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
4984
+ /* @__PURE__ */ jsx64(Icon_default, { name: "plus", className: "w-4 h-4" }),
4985
+ /* @__PURE__ */ jsx64("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
4779
4986
  ]
4780
4987
  }
4781
4988
  )
@@ -4783,8 +4990,8 @@ var DataList = (props) => {
4783
4990
  ]
4784
4991
  }
4785
4992
  ),
4786
- /* @__PURE__ */ jsxs35("div", { className: "flex-grow overflow-y-auto justify-end bg-white rounded shadow h-[75vh]", children: [
4787
- /* @__PURE__ */ jsx63("div", { children: /* @__PURE__ */ jsx63("table", { className: "w-full divide-y divide-gray-200", children: /* @__PURE__ */ jsx63("thead", { className: "bg-gray-50", children: /* @__PURE__ */ jsx63("tr", { children: props?.columns?.map((column) => {
4993
+ /* @__PURE__ */ jsxs36("div", { className: "flex-grow overflow-y-auto justify-end bg-white rounded shadow h-[75vh]", children: [
4994
+ /* @__PURE__ */ jsx64("div", { children: /* @__PURE__ */ jsx64("table", { className: "w-full divide-y divide-gray-200", children: /* @__PURE__ */ jsx64("thead", { className: "bg-gray-50", children: /* @__PURE__ */ jsx64("tr", { children: props?.columns?.map((column) => {
4788
4995
  let url = builder.getNewOrderByUrl(column.name);
4789
4996
  let icon = "chevronUpDown";
4790
4997
  if (orderBy.includes(`${column.name} desc`)) {
@@ -4794,19 +5001,19 @@ var DataList = (props) => {
4794
5001
  icon = "chevronUp";
4795
5002
  url = builder.getNewOrderByUrl(column.name + " desc");
4796
5003
  }
4797
- return /* @__PURE__ */ jsx63(
5004
+ return /* @__PURE__ */ jsx64(
4798
5005
  "th",
4799
5006
  {
4800
5007
  className: "px-6 py-3 text-left font-medium cursor-pointer bg-neutral-soft " + column.width + (column.controlType == ViewControlTypes_default.money ? " text-right" : ""),
4801
- children: /* @__PURE__ */ jsx63(Hyperlink, { href: url, className: "text-body-950", children: /* @__PURE__ */ jsxs35("span", { className: "flex items-center space-x-1", children: [
4802
- /* @__PURE__ */ jsx63("span", { children: column.label }),
4803
- column.enableSorting && /* @__PURE__ */ jsx63(Icon_default, { className: "w-4 h-4", name: icon })
5008
+ children: /* @__PURE__ */ jsx64(Hyperlink, { href: url, className: "text-body-950", children: /* @__PURE__ */ jsxs36("span", { className: "flex items-center space-x-1", children: [
5009
+ /* @__PURE__ */ jsx64("span", { children: column.label }),
5010
+ column.enableSorting && /* @__PURE__ */ jsx64(Icon_default, { className: "w-4 h-4", name: icon })
4804
5011
  ] }) })
4805
5012
  },
4806
5013
  column.name
4807
5014
  );
4808
5015
  }) }) }) }) }),
4809
- /* @__PURE__ */ jsx63("div", { className: "w-full text-center bg-transparent pt-5", children: "There are no entries in the table at the moment." })
5016
+ /* @__PURE__ */ jsx64("div", { className: "w-full text-center bg-transparent pt-5", children: "There are no entries in the table at the moment." })
4810
5017
  ] })
4811
5018
  ] })
4812
5019
  ] });
@@ -4814,9 +5021,9 @@ var DataList = (props) => {
4814
5021
  var DataList_default = DataList;
4815
5022
 
4816
5023
  // src/components/dataForm/DataListRenderer.tsx
4817
- import React46, { useState as useState9, useEffect as useEffect9 } from "react";
5024
+ import React47, { useState as useState9, useEffect as useEffect10 } from "react";
4818
5025
  import { usePathname as usePathname2 } from "next/navigation";
4819
- import { jsx as jsx64, jsxs as jsxs36 } from "react/jsx-runtime";
5026
+ import { jsx as jsx65, jsxs as jsxs37 } from "react/jsx-runtime";
4820
5027
  var viewControlMap = {
4821
5028
  number: ViewControlTypes.number,
4822
5029
  lineText: ViewControlTypes.lineText,
@@ -4877,7 +5084,7 @@ var DataListRenderer = ({
4877
5084
  const [addLinkText, setAddLinkText] = useState9("");
4878
5085
  const [serviceRoute, setServiceRoute] = useState9("");
4879
5086
  const pathname = usePathname2();
4880
- useEffect9(() => {
5087
+ useEffect10(() => {
4881
5088
  if (!formDefinition) return;
4882
5089
  setColumns(mapApiToColumns(formDefinition));
4883
5090
  setFilters(mapApiToFilters(formDefinition));
@@ -4890,7 +5097,7 @@ var DataListRenderer = ({
4890
5097
  setAddLinkHref(resolvedAddLinkHref);
4891
5098
  setAddLinkText(formDefinition?.siteFormDataList?.addLinkText ?? "");
4892
5099
  }, [formDefinition, params]);
4893
- useEffect9(() => {
5100
+ useEffect10(() => {
4894
5101
  const fetchData = async () => {
4895
5102
  if (!serviceRoute) return;
4896
5103
  const resolvedRoute = resolveRoutePlaceholders2(serviceRoute, params);
@@ -4905,9 +5112,9 @@ var DataListRenderer = ({
4905
5112
  const [tabItem, setTabItem] = useState9();
4906
5113
  const activeTab = tabItem?.find((tab) => tab.isActive);
4907
5114
  const activeHref = activeTab ? resolveRoutePlaceholders2(activeTab.landingPageUrl, params) : pathname;
4908
- return /* @__PURE__ */ jsxs36(React46.Fragment, { children: [
4909
- widgetProps && /* @__PURE__ */ jsx64(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
4910
- /* @__PURE__ */ jsx64(
5115
+ return /* @__PURE__ */ jsxs37(React47.Fragment, { children: [
5116
+ widgetProps && /* @__PURE__ */ jsx65(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
5117
+ /* @__PURE__ */ jsx65(
4911
5118
  DataList_default,
4912
5119
  {
4913
5120
  addLinkHref,
@@ -4926,10 +5133,10 @@ var DataListRenderer = ({
4926
5133
  var DataListRenderer_default = DataListRenderer;
4927
5134
 
4928
5135
  // src/components/dataForm/DataForm.tsx
4929
- import React48, { useCallback as useCallback5, useEffect as useEffect10, useReducer as useReducer3, useRef as useRef4 } from "react";
5136
+ import React49, { useCallback as useCallback5, useEffect as useEffect11, useReducer as useReducer3, useRef as useRef4 } from "react";
4930
5137
 
4931
5138
  // src/components/dataForm/DataFormChildSection.tsx
4932
- import React47, { useCallback as useCallback4 } from "react";
5139
+ import React48, { useCallback as useCallback4 } from "react";
4933
5140
 
4934
5141
  // src/components/dataForm/StyleTypes.tsx
4935
5142
  var StyleTypes2 = /* @__PURE__ */ ((StyleTypes3) => {
@@ -4952,7 +5159,7 @@ var FORM_CHILD_ONE_TO_ONE_UPDATE = "FORM_CHILD_ONE_TO_ONE_UPDATE";
4952
5159
  var FORM_CHILD_ROW_ADD = "FORM_CHILD_ROW_ADD";
4953
5160
 
4954
5161
  // src/components/dataForm/DataFormChildSection.tsx
4955
- import { jsx as jsx65, jsxs as jsxs37 } from "react/jsx-runtime";
5162
+ import { jsx as jsx66, jsxs as jsxs38 } from "react/jsx-runtime";
4956
5163
  var DataFormChildSection = (props) => {
4957
5164
  const { section } = props;
4958
5165
  const isOneToOne = section.relationshipType === "one-to-one";
@@ -5020,14 +5227,14 @@ var DataFormChildSection = (props) => {
5020
5227
  childItemsToRender,
5021
5228
  allChildItems: childItems
5022
5229
  });
5023
- return /* @__PURE__ */ jsx65(React47.Fragment, { children: /* @__PURE__ */ jsxs37("div", { className: "rounded border-neutral-200 border px-6 py-4 mb-2", children: [
5024
- section.sectionTitle && /* @__PURE__ */ jsx65("div", { className: "mb-4 text-lg font-medium text-body-950", children: section.sectionTitle }),
5025
- /* @__PURE__ */ jsx65("div", { className: "flex-grow flex flex-col justify-between overflow-y-auto", children: /* @__PURE__ */ jsxs37("div", { className: "flex flex-col justify-between gap-2", children: [
5026
- /* @__PURE__ */ jsx65("div", { children: /* @__PURE__ */ jsxs37("table", { className: "w-full border-separate divide-y divide-gray-200", children: [
5027
- (!isOneToOne || childItemsToRender.length > 0) && /* @__PURE__ */ jsx65("thead", { className: "", children: section.sectionRows.map((sectionRow, sectionRowIndex) => {
5028
- return /* @__PURE__ */ jsxs37("tr", { className: "", children: [
5230
+ return /* @__PURE__ */ jsx66(React48.Fragment, { children: /* @__PURE__ */ jsxs38("div", { className: "rounded border-neutral-200 border px-6 py-4 mb-2", children: [
5231
+ section.sectionTitle && /* @__PURE__ */ jsx66("div", { className: "mb-4 text-lg font-medium text-body-950", children: section.sectionTitle }),
5232
+ /* @__PURE__ */ jsx66("div", { className: "flex-grow flex flex-col justify-between overflow-y-auto", children: /* @__PURE__ */ jsxs38("div", { className: "flex flex-col justify-between gap-2", children: [
5233
+ /* @__PURE__ */ jsx66("div", { children: /* @__PURE__ */ jsxs38("table", { className: "w-full border-separate divide-y divide-gray-200", children: [
5234
+ (!isOneToOne || childItemsToRender.length > 0) && /* @__PURE__ */ jsx66("thead", { className: "", children: section.sectionRows.map((sectionRow, sectionRowIndex) => {
5235
+ return /* @__PURE__ */ jsxs38("tr", { className: "", children: [
5029
5236
  sectionRow.elements.map((field, index) => {
5030
- return /* @__PURE__ */ jsx65(
5237
+ return /* @__PURE__ */ jsx66(
5031
5238
  "th",
5032
5239
  {
5033
5240
  className: "py-3 font-normal text-left",
@@ -5036,21 +5243,21 @@ var DataFormChildSection = (props) => {
5036
5243
  field.name
5037
5244
  );
5038
5245
  }),
5039
- !section.readonly && !isOneToOne && /* @__PURE__ */ jsx65("th", { className: "py-3 font-normal text-left", children: "Actions" })
5246
+ !section.readonly && !isOneToOne && /* @__PURE__ */ jsx66("th", { className: "py-3 font-normal text-left", children: "Actions" })
5040
5247
  ] }, sectionRowIndex);
5041
5248
  }) }),
5042
- /* @__PURE__ */ jsx65("tbody", { className: "divide-y divide-gray-200", children: childItemsToRender.map((visibleItem, filteredIndex) => {
5249
+ /* @__PURE__ */ jsx66("tbody", { className: "divide-y divide-gray-200", children: childItemsToRender.map((visibleItem, filteredIndex) => {
5043
5250
  const { item, originalIndex } = visibleItem;
5044
5251
  const rowKey = originalIndex;
5045
- return /* @__PURE__ */ jsx65(React47.Fragment, { children: section.sectionRows.map(
5252
+ return /* @__PURE__ */ jsx66(React48.Fragment, { children: section.sectionRows.map(
5046
5253
  (sectionRow, sectionRowIndex) => {
5047
- return /* @__PURE__ */ jsxs37(
5254
+ return /* @__PURE__ */ jsxs38(
5048
5255
  "tr",
5049
5256
  {
5050
5257
  className: "",
5051
5258
  children: [
5052
5259
  sectionRow.elements.map((field, index) => {
5053
- return /* @__PURE__ */ jsx65("td", { children: /* @__PURE__ */ jsx65("div", { className: "flex-1", children: /* @__PURE__ */ jsx65("div", { className: "w-11/12", children: /* @__PURE__ */ jsx65(
5260
+ return /* @__PURE__ */ jsx66("td", { children: /* @__PURE__ */ jsx66("div", { className: "flex-1", children: /* @__PURE__ */ jsx66("div", { className: "w-11/12", children: /* @__PURE__ */ jsx66(
5054
5261
  InputControl_default,
5055
5262
  {
5056
5263
  index: filteredIndex,
@@ -5070,7 +5277,7 @@ var DataFormChildSection = (props) => {
5070
5277
  }
5071
5278
  ) }) }) }, field.name);
5072
5279
  }),
5073
- !section.readonly && !isOneToOne && /* @__PURE__ */ jsx65("td", { children: /* @__PURE__ */ jsx65(
5280
+ !section.readonly && !isOneToOne && /* @__PURE__ */ jsx66("td", { children: /* @__PURE__ */ jsx66(
5074
5281
  ClientButton_default,
5075
5282
  {
5076
5283
  ButtonType: StyleTypes2.Hollow,
@@ -5079,7 +5286,7 @@ var DataFormChildSection = (props) => {
5079
5286
  },
5080
5287
  dataRole: "delete",
5081
5288
  tabIndex: -1,
5082
- children: /* @__PURE__ */ jsx65(
5289
+ children: /* @__PURE__ */ jsx66(
5083
5290
  Icon_default,
5084
5291
  {
5085
5292
  className: "w-4 h-4",
@@ -5096,7 +5303,7 @@ var DataFormChildSection = (props) => {
5096
5303
  ) }, rowKey);
5097
5304
  }) })
5098
5305
  ] }) }),
5099
- !section.readonly && !isOneToOne && /* @__PURE__ */ jsx65("div", { className: "ml-1", children: /* @__PURE__ */ jsx65(
5306
+ !section.readonly && !isOneToOne && /* @__PURE__ */ jsx66("div", { className: "ml-1", children: /* @__PURE__ */ jsx66(
5100
5307
  ClientButton_default,
5101
5308
  {
5102
5309
  ButtonType: "Link" /* Link */,
@@ -5111,7 +5318,7 @@ var DataFormChildSection = (props) => {
5111
5318
  var DataFormChildSection_default = DataFormChildSection;
5112
5319
 
5113
5320
  // src/components/dataForm/DataForm.tsx
5114
- import { jsx as jsx66, jsxs as jsxs38 } from "react/jsx-runtime";
5321
+ import { jsx as jsx67, jsxs as jsxs39 } from "react/jsx-runtime";
5115
5322
  var DataForm = (props) => {
5116
5323
  const formRef = useRef4(null);
5117
5324
  console.log(props.dataItem, "dssads");
@@ -5208,7 +5415,7 @@ var DataForm = (props) => {
5208
5415
  console.error("Error fetching data:", error);
5209
5416
  }
5210
5417
  }, [formState.lastPropertyChanged, formState.inputValues]);
5211
- useEffect10(() => {
5418
+ useEffect11(() => {
5212
5419
  fetchData();
5213
5420
  }, [formState.inputValues, formState.lastPropertyChanged]);
5214
5421
  function replacePlaceholders(template, context, params) {
@@ -5303,7 +5510,7 @@ var DataForm = (props) => {
5303
5510
  return { isSuccessful: true };
5304
5511
  }
5305
5512
  }, [formState, props]);
5306
- useEffect10(() => {
5513
+ useEffect11(() => {
5307
5514
  if (props.dataItem) {
5308
5515
  dispatch({
5309
5516
  type: FORM_INITIAL_UPDATE,
@@ -5331,19 +5538,19 @@ var DataForm = (props) => {
5331
5538
  return false;
5332
5539
  }
5333
5540
  }
5334
- return /* @__PURE__ */ jsx66(React48.Fragment, { children: /* @__PURE__ */ jsxs38("div", { className: "flex-grow flex flex-col", children: [
5335
- props.title && /* @__PURE__ */ jsx66("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__ */ jsxs38(
5541
+ return /* @__PURE__ */ jsx67(React49.Fragment, { children: /* @__PURE__ */ jsxs39("div", { className: "flex-grow flex flex-col", children: [
5542
+ props.title && /* @__PURE__ */ jsx67("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__ */ jsxs39(
5336
5543
  "div",
5337
5544
  {
5338
5545
  className: "inline-flex items-center gap-2 cursor-pointer",
5339
5546
  onClick: () => window.history.back(),
5340
5547
  children: [
5341
- /* @__PURE__ */ jsx66(Icon_default, { name: "chevronLeft", className: "w-4 h-4 text-primary-800" }),
5342
- /* @__PURE__ */ jsx66("h2", { className: "text-lg font-semibold text-primary-800", children: props.title })
5548
+ /* @__PURE__ */ jsx67(Icon_default, { name: "chevronLeft", className: "w-4 h-4 text-primary-800" }),
5549
+ /* @__PURE__ */ jsx67("h2", { className: "text-lg font-semibold text-primary-800", children: props.title })
5343
5550
  ]
5344
5551
  }
5345
5552
  ) }),
5346
- /* @__PURE__ */ jsx66(
5553
+ /* @__PURE__ */ jsx67(
5347
5554
  "form",
5348
5555
  {
5349
5556
  className: "group space-y-6 pb-6 overflow-y-auto",
@@ -5364,8 +5571,8 @@ var DataForm = (props) => {
5364
5571
  }
5365
5572
  }
5366
5573
  },
5367
- children: /* @__PURE__ */ jsx66("div", { className: "flex flex-col gap-6", children: props.sections?.map((section, sectionIndex) => {
5368
- return /* @__PURE__ */ jsx66(React48.Fragment, { children: !section.isChildSection && /* @__PURE__ */ jsxs38("div", { className: " rounded-b-lg bg-white shadow border-neutral-200 border px-8 py-6 ", children: [
5574
+ children: /* @__PURE__ */ jsx67("div", { className: "flex flex-col gap-6", children: props.sections?.map((section, sectionIndex) => {
5575
+ return /* @__PURE__ */ jsx67(React49.Fragment, { children: !section.isChildSection && /* @__PURE__ */ jsxs39("div", { className: " rounded-b-lg bg-white shadow border-neutral-200 border px-8 py-6 ", children: [
5369
5576
  section.sectionRows?.map(
5370
5577
  (sectionRow, sectionRowIndex) => {
5371
5578
  const elementsCount = sectionRow.elements.length;
@@ -5376,46 +5583,49 @@ var DataForm = (props) => {
5376
5583
  sectionRow.visible
5377
5584
  );
5378
5585
  }
5379
- return /* @__PURE__ */ jsx66(React48.Fragment, { children: isVisible && /* @__PURE__ */ jsx66("div", { className: "lg:flex gap-14 flex-1 mb-4 ", children: sectionRow.elements.map((field, index) => {
5380
- return /* @__PURE__ */ jsx66(
5586
+ return /* @__PURE__ */ jsx67(React49.Fragment, { children: isVisible && /* @__PURE__ */ jsx67("div", { className: "lg:flex gap-14 flex-1 mb-4 ", children: sectionRow.elements.map((field, index) => {
5587
+ return /* @__PURE__ */ jsxs39(
5381
5588
  "div",
5382
5589
  {
5383
5590
  className: sectionRow.grow ? "grow" : "",
5384
- children: /* @__PURE__ */ jsx66(
5385
- InputControl_default,
5386
- {
5387
- name: field.name,
5388
- controlType: field.controlType,
5389
- value: getNestedProperty2(
5390
- formState.inputValues,
5391
- field.name
5392
- ),
5393
- callback: handleInputChange,
5394
- dataSourceDependsOn: field.dataSourceDependsOn,
5395
- dependentValue: field.dataSourceDependsOn ? formState.inputValues[field.dataSourceDependsOn] : "",
5396
- dataSource: field.dataSource,
5397
- dataset: field.dataset,
5398
- dataKeyFieldName: field.dataKeyFieldName,
5399
- dataTextFieldName: field.dataTextFieldName,
5400
- attributes: field.attributes,
5401
- serviceClient: props.serviceClient,
5402
- assetsUploadPath: props.dataItem ? props.dataItem["assetsUploadPath"] : null,
5403
- entityType: field.entityType,
5404
- uploadInSharedLocation: field.uploadInSharedLocation
5405
- }
5406
- )
5591
+ children: [
5592
+ /* @__PURE__ */ jsx67("div", { children: field.controlType }),
5593
+ /* @__PURE__ */ jsx67(
5594
+ InputControl_default,
5595
+ {
5596
+ name: field.name,
5597
+ controlType: field.controlType,
5598
+ value: getNestedProperty2(
5599
+ formState.inputValues,
5600
+ field.name
5601
+ ),
5602
+ callback: handleInputChange,
5603
+ dataSourceDependsOn: field.dataSourceDependsOn,
5604
+ dependentValue: field.dataSourceDependsOn ? formState.inputValues[field.dataSourceDependsOn] : "",
5605
+ dataSource: field.dataSource,
5606
+ dataset: field.dataset,
5607
+ dataKeyFieldName: field.dataKeyFieldName,
5608
+ dataTextFieldName: field.dataTextFieldName,
5609
+ attributes: field.attributes,
5610
+ serviceClient: props.serviceClient,
5611
+ assetsUploadPath: props.dataItem ? props.dataItem["assetsUploadPath"] : null,
5612
+ entityType: field.entityType,
5613
+ uploadInSharedLocation: field.uploadInSharedLocation
5614
+ }
5615
+ )
5616
+ ]
5407
5617
  },
5408
5618
  field.name
5409
5619
  );
5410
5620
  }) }) }, sectionRowIndex);
5411
5621
  }
5412
5622
  ),
5413
- /* @__PURE__ */ jsx66("div", { children: section.childSections?.map(
5623
+ /* @__PURE__ */ jsx67("div", { children: section.childSections?.map(
5414
5624
  (childSection, childSectionIndex) => {
5415
- return /* @__PURE__ */ jsx66("div", { children: childSection.name && evalutateCondition(
5625
+ return /* @__PURE__ */ jsx67("div", { children: childSection.name && evalutateCondition(
5416
5626
  formState.inputValues,
5417
5627
  childSection.visible
5418
- ) && /* @__PURE__ */ jsx66(
5628
+ ) && /* @__PURE__ */ jsx67(
5419
5629
  DataFormChildSection_default,
5420
5630
  {
5421
5631
  section: childSection,
@@ -5430,8 +5640,8 @@ var DataForm = (props) => {
5430
5640
  }) })
5431
5641
  }
5432
5642
  ),
5433
- /* @__PURE__ */ jsxs38("div", { className: "flex px-6 py-3 mt-2 mb-2 justify-end items-center gap-5", children: [
5434
- /* @__PURE__ */ jsx66("div", { children: props.additionalActions && /* @__PURE__ */ jsx66(
5643
+ /* @__PURE__ */ jsxs39("div", { className: "flex px-6 py-3 mt-2 mb-2 justify-end items-center gap-5", children: [
5644
+ /* @__PURE__ */ jsx67("div", { children: props.additionalActions && /* @__PURE__ */ jsx67(
5435
5645
  Button_default,
5436
5646
  {
5437
5647
  ButtonType: "PrimaryHollow" /* Hollow */,
@@ -5439,7 +5649,7 @@ var DataForm = (props) => {
5439
5649
  children: props.additionalActions.title
5440
5650
  }
5441
5651
  ) }),
5442
- /* @__PURE__ */ jsx66("div", { children: props.onDelete && /* @__PURE__ */ jsx66(
5652
+ /* @__PURE__ */ jsx67("div", { children: props.onDelete && /* @__PURE__ */ jsx67(
5443
5653
  Button_default,
5444
5654
  {
5445
5655
  ButtonType: "PrimaryHollow" /* Hollow */,
@@ -5450,7 +5660,7 @@ var DataForm = (props) => {
5450
5660
  children: "Delete"
5451
5661
  }
5452
5662
  ) }),
5453
- /* @__PURE__ */ jsx66("div", { children: props.onClick && /* @__PURE__ */ jsx66(
5663
+ /* @__PURE__ */ jsx67("div", { children: props.onClick && /* @__PURE__ */ jsx67(
5454
5664
  Button_default,
5455
5665
  {
5456
5666
  onValidate,
@@ -5467,7 +5677,7 @@ var DataForm = (props) => {
5467
5677
  var DataForm_default = DataForm;
5468
5678
 
5469
5679
  // src/components/dataForm/DataFormRenderer.tsx
5470
- import { jsx as jsx67, jsxs as jsxs39 } from "react/jsx-runtime";
5680
+ import { jsx as jsx68, jsxs as jsxs40 } from "react/jsx-runtime";
5471
5681
  function getAction(actions, code) {
5472
5682
  return actions?.find((a) => a.actionCode === code);
5473
5683
  }
@@ -5493,9 +5703,9 @@ var DataFormRenderer = ({
5493
5703
  "Delete"
5494
5704
  );
5495
5705
  const hasDataItem = dataItem && Object.keys(dataItem).length > 0;
5496
- return /* @__PURE__ */ jsxs39("div", { className: "flex-grow flex flex-col", children: [
5497
- widgetProps && /* @__PURE__ */ jsx67(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
5498
- /* @__PURE__ */ jsx67(
5706
+ return /* @__PURE__ */ jsxs40("div", { className: "flex-grow flex flex-col", children: [
5707
+ widgetProps && /* @__PURE__ */ jsx68(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
5708
+ /* @__PURE__ */ jsx68(
5499
5709
  DataForm_default,
5500
5710
  {
5501
5711
  title: !isAddPage ? "Edit " + formDefinition.formTitle + "- v2" : "Add " + formDefinition.formTitle + "- v2",