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

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
@@ -412,7 +412,7 @@ var ViewControl = (props) => {
412
412
  var ViewControl_default = ViewControl;
413
413
 
414
414
  // src/components/controls/edit/InputControl.tsx
415
- import React27 from "react";
415
+ import React28 from "react";
416
416
 
417
417
  // src/components/controls/edit/MultilineTextInput.tsx
418
418
  import React11 from "react";
@@ -582,6 +582,7 @@ var InputControlType = {
582
582
  moneyInput: "money",
583
583
  select: "select",
584
584
  percentageInput: "percentage",
585
+ asset: "asset",
585
586
  phoneInput: "phone",
586
587
  numberInput: "number",
587
588
  checkboxInput: "boolean",
@@ -1633,9 +1634,301 @@ var TimeInput = (props) => {
1633
1634
  };
1634
1635
  var TimeInput_default = TimeInput;
1635
1636
 
1637
+ // src/components/controls/edit/AssetUpload.tsx
1638
+ import React27, { useEffect as useEffect6 } from "react";
1639
+
1640
+ // src/components/utilities/AssetUtility.tsx
1641
+ var AssetUtility = class {
1642
+ constructor() {
1643
+ }
1644
+ static resolveUrl(assetBaseUrl, url) {
1645
+ if (!url) return void 0;
1646
+ if (url.startsWith("http")) return url;
1647
+ if (!assetBaseUrl) return url;
1648
+ return `${assetBaseUrl}/${url}`;
1649
+ }
1650
+ // static getAssetUrl(apiBaseUrl: string) {
1651
+ // let domainName = apiBaseUrl.replace("https://", "");
1652
+ // return `https://cdn.g-assets.com/${domainName}`;
1653
+ // }
1654
+ static getAssetFullPath(apiBaseUrl, relativePath) {
1655
+ const domainName = apiBaseUrl.replace("https://", "");
1656
+ return `https://cdn.g-assets.com/${domainName}/${relativePath}`;
1657
+ }
1658
+ };
1659
+ var AssetUtility_default = AssetUtility;
1660
+
1661
+ // src/components/dataForm/Hyperlink.tsx
1662
+ import Link from "next/link";
1663
+ import { Fragment, jsx as jsx27 } from "react/jsx-runtime";
1664
+ function Hyperlink(props) {
1665
+ let linkClass = props.linkType ? buttonClasses.get(props.linkType) : buttonClasses.get("Link" /* Link */);
1666
+ const target = props?.href?.startsWith("http") ? "_blank" : "_self";
1667
+ const additionalProps = {};
1668
+ if (target == "_blank") {
1669
+ additionalProps.rel = "noopener noreferrer";
1670
+ }
1671
+ return /* @__PURE__ */ jsx27(Fragment, { children: props.href ? /* @__PURE__ */ jsx27(
1672
+ Link,
1673
+ {
1674
+ href: props.href,
1675
+ prefetch: false,
1676
+ className: [linkClass, props.className].filter(Boolean).join(" "),
1677
+ ...additionalProps,
1678
+ target,
1679
+ children: props.children
1680
+ }
1681
+ ) : props.isHeading ? /* @__PURE__ */ jsx27("h5", { className: props.className + "inline-block", children: props.children }) : /* @__PURE__ */ jsx27("span", { className: props.className, children: props.children }) });
1682
+ }
1683
+
1684
+ // src/svg/chevron-updown.tsx
1685
+ import { jsx as jsx28 } from "react/jsx-runtime";
1686
+ var ChevronUpDown = (props) => {
1687
+ 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" }) });
1688
+ };
1689
+ var chevron_updown_default = ChevronUpDown;
1690
+
1691
+ // src/svg/chevron-down.tsx
1692
+ import { jsx as jsx29 } from "react/jsx-runtime";
1693
+ var ChevronDown = (props) => {
1694
+ 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" }) });
1695
+ };
1696
+ var chevron_down_default = ChevronDown;
1697
+
1698
+ // src/svg/chevron-up.tsx
1699
+ import { jsx as jsx30 } from "react/jsx-runtime";
1700
+ var ChevronUp = (props) => {
1701
+ 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" }) });
1702
+ };
1703
+ var chevron_up_default = ChevronUp;
1704
+
1705
+ // src/svg/plus.tsx
1706
+ import { jsx as jsx31 } from "react/jsx-runtime";
1707
+ var Plus = (props) => {
1708
+ 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" }) });
1709
+ };
1710
+ var plus_default = Plus;
1711
+
1712
+ // src/svg/Icons.tsx
1713
+ var Icons = {
1714
+ chevronUpDown: chevron_updown_default,
1715
+ chevronDown: chevron_down_default,
1716
+ chevronUp: chevron_up_default,
1717
+ plus: plus_default
1718
+ };
1719
+ var Icons_default = Icons;
1720
+
1721
+ // src/svg/Icon.tsx
1722
+ import { jsx as jsx32 } from "react/jsx-runtime";
1723
+ var Icon = ({ name, className, ...props }) => {
1724
+ const IconComponent = Icons_default[name];
1725
+ if (!IconComponent) {
1726
+ console.error(`Icon "${name}" not found.`);
1727
+ return null;
1728
+ }
1729
+ return /* @__PURE__ */ jsx32(IconComponent, { ...props, className });
1730
+ };
1731
+ var Icon_default = Icon;
1732
+
1733
+ // src/components/controls/edit/AssetUpload.tsx
1734
+ import { jsx as jsx33, jsxs as jsxs22 } from "react/jsx-runtime";
1735
+ var AssetUpload = (props) => {
1736
+ const isDisabled = props.attributes?.disable ?? false;
1737
+ let allValues = [];
1738
+ if (props.value !== void 0 && props.value !== null && props.value !== "") {
1739
+ try {
1740
+ allValues = JSON.parse(props.value.toString());
1741
+ } catch (error) {
1742
+ }
1743
+ }
1744
+ const getInitialTab = () => {
1745
+ if (allValues.length > 0) {
1746
+ const asset = allValues[0];
1747
+ if (asset.posterUrl) {
1748
+ return "video";
1749
+ } else if (asset.assetUrl) {
1750
+ return "image";
1751
+ }
1752
+ }
1753
+ return "image";
1754
+ };
1755
+ const [assetType, setAssetType] = React27.useState(getInitialTab);
1756
+ useEffect6(() => {
1757
+ setAssetType(getInitialTab());
1758
+ }, [props.value]);
1759
+ const assetUploadCallback = (newAsset) => {
1760
+ if (isDisabled) return;
1761
+ let updated = [];
1762
+ updated.push({
1763
+ assetUrl: newAsset.assetUrl,
1764
+ title: newAsset.title,
1765
+ posterUrl: newAsset.posterUrl,
1766
+ intrinsicHeight: newAsset.intrinsicHeight,
1767
+ intrinsicWidth: newAsset.intrinsicWidth
1768
+ });
1769
+ props.callback?.({
1770
+ name: props.name,
1771
+ value: JSON.stringify(updated),
1772
+ index: props.index,
1773
+ groupKey: props.groupKey
1774
+ });
1775
+ };
1776
+ const deleteFile = (index) => {
1777
+ if (isDisabled) return;
1778
+ let existingValue = [];
1779
+ if (props.value) {
1780
+ try {
1781
+ existingValue = JSON.parse(props.value.toString());
1782
+ } catch (error) {
1783
+ }
1784
+ }
1785
+ if (existingValue.length > index) {
1786
+ existingValue.splice(index, 1);
1787
+ props.callback?.({
1788
+ name: props.name,
1789
+ value: JSON.stringify(existingValue),
1790
+ index: props.index,
1791
+ groupKey: props.groupKey
1792
+ });
1793
+ }
1794
+ };
1795
+ const textChangeHandler = (index, event) => {
1796
+ if (isDisabled) return;
1797
+ let existingValue = [];
1798
+ if (props.value) {
1799
+ try {
1800
+ existingValue = JSON.parse(props.value.toString());
1801
+ } catch (error) {
1802
+ }
1803
+ }
1804
+ const text = event.target.value;
1805
+ if (existingValue.length > index) {
1806
+ const updatedArray = [...existingValue];
1807
+ updatedArray[index] = { ...updatedArray[index], title: text };
1808
+ props.callback?.({
1809
+ name: props.name,
1810
+ value: JSON.stringify(updatedArray),
1811
+ index: props.index,
1812
+ groupKey: props.groupKey
1813
+ });
1814
+ }
1815
+ };
1816
+ const getAssetType = (asset) => {
1817
+ if (asset.assetUrl?.endsWith(".m3u8") || asset.posterUrl) return "video";
1818
+ return "image";
1819
+ };
1820
+ const shouldShowDetails = () => {
1821
+ if (allValues.length === 0) return false;
1822
+ const asset = allValues[0];
1823
+ if (assetType === "video") {
1824
+ return Boolean(asset.posterUrl && asset.assetUrl && asset.assetUrl.endsWith(".m3u8"));
1825
+ }
1826
+ if (assetType === "image") {
1827
+ return Boolean(asset.assetUrl && !asset.assetUrl.endsWith(".m3u8"));
1828
+ }
1829
+ return false;
1830
+ };
1831
+ return /* @__PURE__ */ jsxs22(React27.Fragment, { children: [
1832
+ /* @__PURE__ */ jsx33("label", { className: "block mb-1", children: /* @__PURE__ */ jsx33("span", { className: "text-sm font-medium", children: props?.attributes?.label }) }),
1833
+ /* @__PURE__ */ jsxs22("div", { className: "flex gap-6 bg-neutral-100 rounded p-2", children: [
1834
+ /* @__PURE__ */ jsx33(
1835
+ ClientButton_default,
1836
+ {
1837
+ className: assetType === "image" ? "px-2 py-1 rounded bg-body-200 scale-95" : "text-neutral-700",
1838
+ ButtonType: "Link" /* Link */,
1839
+ onClick: () => setAssetType("image"),
1840
+ disabled: isDisabled,
1841
+ children: "Image Upload"
1842
+ }
1843
+ ),
1844
+ /* @__PURE__ */ jsx33(
1845
+ ClientButton_default,
1846
+ {
1847
+ className: assetType === "video" ? "bg-body-200 px-2 py-1 rounded-md scale-95" : "text-neutral-700",
1848
+ ButtonType: "Link" /* Link */,
1849
+ onClick: () => setAssetType("video"),
1850
+ disabled: isDisabled,
1851
+ children: "Video Upload"
1852
+ }
1853
+ )
1854
+ ] }),
1855
+ shouldShowDetails() && /* @__PURE__ */ jsxs22("div", { className: "relative mt-4 rounded-md p-4 border-2 border-dotted border-gray-300 bg-gray-50", children: [
1856
+ /* @__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" }),
1857
+ /* @__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: [
1858
+ /* @__PURE__ */ jsxs22("div", { className: "grid grid-cols-2 gap-x-8 gap-y-3 text-sm w-full", children: [
1859
+ /* @__PURE__ */ jsxs22("div", { children: [
1860
+ /* @__PURE__ */ jsx33("p", { className: "text-gray-500", children: "Title" }),
1861
+ /* @__PURE__ */ jsx33(
1862
+ "input",
1863
+ {
1864
+ type: "text",
1865
+ value: digitalAsset.title,
1866
+ onChange: (event) => textChangeHandler(index, event),
1867
+ placeholder: "title",
1868
+ disabled: isDisabled,
1869
+ 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"
1870
+ }
1871
+ )
1872
+ ] }),
1873
+ digitalAsset.intrinsicWidth && digitalAsset.intrinsicHeight && /* @__PURE__ */ jsxs22("div", { children: [
1874
+ /* @__PURE__ */ jsx33("p", { className: "text-gray-500", children: "Resolution" }),
1875
+ /* @__PURE__ */ jsxs22("p", { className: "font-medium text-gray-900 mt-3", children: [
1876
+ digitalAsset.intrinsicWidth,
1877
+ "\xD7",
1878
+ digitalAsset.intrinsicHeight
1879
+ ] })
1880
+ ] }),
1881
+ (digitalAsset.assetUrl || digitalAsset.posterUrl) && /* @__PURE__ */ jsxs22("div", { children: [
1882
+ /* @__PURE__ */ jsx33("p", { className: "text-gray-500", children: "Image / Poster" }),
1883
+ /* @__PURE__ */ jsxs22("div", { className: "flex-shrink-0 flex flex-col gap-3 mt-1", children: [
1884
+ getAssetType(digitalAsset) === "video" && digitalAsset.posterUrl && /* @__PURE__ */ jsx33(
1885
+ "img",
1886
+ {
1887
+ src: AssetUtility_default.resolveUrl(props.serviceClient?.baseUrl, digitalAsset.posterUrl),
1888
+ alt: digitalAsset.title || "Video poster",
1889
+ className: "w-32 h-auto object-cover rounded border p-1"
1890
+ }
1891
+ ),
1892
+ getAssetType(digitalAsset) === "image" && digitalAsset.assetUrl && /* @__PURE__ */ jsx33(
1893
+ "img",
1894
+ {
1895
+ src: AssetUtility_default.resolveUrl(props.serviceClient?.baseUrl, digitalAsset.assetUrl),
1896
+ alt: digitalAsset.title || "Uploaded image",
1897
+ className: "w-32 h-auto object-cover rounded border p-1"
1898
+ }
1899
+ )
1900
+ ] })
1901
+ ] }),
1902
+ digitalAsset.assetUrl?.endsWith(".m3u8") && /* @__PURE__ */ jsxs22("div", { className: "col-span-2", children: [
1903
+ /* @__PURE__ */ jsx33("p", { className: "text-gray-500", children: "HLS Link" }),
1904
+ /* @__PURE__ */ jsx33(
1905
+ Hyperlink,
1906
+ {
1907
+ href: digitalAsset.assetUrl,
1908
+ className: "text-primary-600 underline mt-1 break-all",
1909
+ title: digitalAsset.assetUrl,
1910
+ children: digitalAsset.assetUrl
1911
+ }
1912
+ )
1913
+ ] })
1914
+ ] }),
1915
+ /* @__PURE__ */ jsx33(
1916
+ "span",
1917
+ {
1918
+ onClick: () => !isDisabled && deleteFile(index),
1919
+ className: isDisabled ? "cursor-not-allowed opacity-50" : "cursor-pointer",
1920
+ children: /* @__PURE__ */ jsx33(Icon_default, { className: "w-4 h-4 text-primary", name: "delete" })
1921
+ }
1922
+ )
1923
+ ] }, index)) })
1924
+ ] })
1925
+ ] });
1926
+ };
1927
+ var AssetUpload_default = AssetUpload;
1928
+
1636
1929
  // src/components/controls/edit/InputControl.tsx
1637
- import { jsx as jsx27 } from "react/jsx-runtime";
1638
- var InputControl = React27.forwardRef(
1930
+ import { jsx as jsx34 } from "react/jsx-runtime";
1931
+ var InputControl = React28.forwardRef(
1639
1932
  (props, ref) => {
1640
1933
  const ControlComponents = {
1641
1934
  [InputControlType_default.lineTextInput]: LineTextInput_default,
@@ -1653,23 +1946,24 @@ var InputControl = React27.forwardRef(
1653
1946
  [InputControlType_default.selectWithSearchInput]: SelectWithSearchInput_default,
1654
1947
  [InputControlType_default.selectWithSearchPanel]: SelectWithSearchPanel_default,
1655
1948
  [InputControlType_default.booleanSelect]: BooleanSelect_default,
1656
- [InputControlType_default.timeInput]: TimeInput_default
1949
+ [InputControlType_default.timeInput]: TimeInput_default,
1950
+ [InputControlType_default.asset]: AssetUpload_default
1657
1951
  };
1658
1952
  const SelectedControlComponent = ControlComponents[props.controlType];
1659
- return /* @__PURE__ */ jsx27(React27.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ jsx27(SelectedControlComponent, { ...props }) : "Control not found" });
1953
+ return /* @__PURE__ */ jsx34(React28.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ jsx34(SelectedControlComponent, { ...props }) : "Control not found" });
1660
1954
  }
1661
1955
  );
1662
1956
  InputControl.displayName = "InputControl";
1663
1957
  var InputControl_default = InputControl;
1664
1958
 
1665
1959
  // src/components/pageRenderingEngine/PageBodyRenderer.tsx
1666
- import React41 from "react";
1960
+ import React42 from "react";
1667
1961
 
1668
1962
  // src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
1669
- import React30 from "react";
1963
+ import React31 from "react";
1670
1964
 
1671
1965
  // src/components/pageRenderingEngine/nodes/TextNode.tsx
1672
- import { jsx as jsx28, jsxs as jsxs22 } from "react/jsx-runtime";
1966
+ import { jsx as jsx35, jsxs as jsxs23 } from "react/jsx-runtime";
1673
1967
  var TextNode = (props) => {
1674
1968
  function cssStringToJson(cssString) {
1675
1969
  const styleObject = {};
@@ -1727,59 +2021,36 @@ var TextNode = (props) => {
1727
2021
  });
1728
2022
  }
1729
2023
  function renderWithLineBreaks(text) {
1730
- return text.split("\n").map((line, index, arr) => /* @__PURE__ */ jsxs22("span", { children: [
2024
+ return text.split("\n").map((line, index, arr) => /* @__PURE__ */ jsxs23("span", { children: [
1731
2025
  line,
1732
- index < arr.length - 1 && /* @__PURE__ */ jsx28("br", {})
2026
+ index < arr.length - 1 && /* @__PURE__ */ jsx35("br", {})
1733
2027
  ] }, index));
1734
2028
  }
1735
2029
  const displayText = props.linkText ? props.linkText : props.node.text;
1736
2030
  const finalText = props.dataitem && props.linkText ? displayText : props.dataitem ? replacePlaceholders(props.node.text, props.dataitem) : props.node.text;
1737
2031
  return (
1738
2032
  // @ts-expect-error custom code
1739
- /* @__PURE__ */ jsx28("span", { style: { ...styles }, className: getFormatClass(props.node.format), children: typeof finalText === "string" ? renderWithLineBreaks(finalText) : finalText })
2033
+ /* @__PURE__ */ jsx35("span", { style: { ...styles }, className: getFormatClass(props.node.format), children: typeof finalText === "string" ? renderWithLineBreaks(finalText) : finalText })
1740
2034
  );
1741
2035
  };
1742
2036
  var TextNode_default = TextNode;
1743
2037
 
1744
2038
  // src/components/pageRenderingEngine/nodes/LineBreakNode.tsx
1745
- import { jsx as jsx29 } from "react/jsx-runtime";
2039
+ import { jsx as jsx36 } from "react/jsx-runtime";
1746
2040
  var LineBreakNode = () => {
1747
- return /* @__PURE__ */ jsx29("div", { className: "py-0.5 lg:py-1.5" });
2041
+ return /* @__PURE__ */ jsx36("div", { className: "py-0.5 lg:py-1.5" });
1748
2042
  };
1749
2043
  var LineBreakNode_default = LineBreakNode;
1750
2044
 
1751
2045
  // 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;
2046
+ import React30 from "react";
1777
2047
 
1778
2048
  // src/components/pageRenderingEngine/nodes/ImageNode.tsx
2049
+ import React29 from "react";
1779
2050
  import dynamic from "next/dynamic";
1780
2051
 
1781
2052
  // src/components/DeviceAssetSelector.tsx
1782
- import { jsx as jsx30 } from "react/jsx-runtime";
2053
+ import { jsx as jsx37 } from "react/jsx-runtime";
1783
2054
  var DeviceAssetSelector = ({
1784
2055
  assets,
1785
2056
  assetBaseUrl,
@@ -1854,7 +2125,7 @@ var DeviceAssetSelector = ({
1854
2125
  const formatClasses = FormatClass[nodeProps?.format || ""] || "";
1855
2126
  const renderMedia = () => {
1856
2127
  if (isHls) {
1857
- return /* @__PURE__ */ jsx30(
2128
+ return /* @__PURE__ */ jsx37(
1858
2129
  HlsPlayer_default,
1859
2130
  {
1860
2131
  assetUrl: resolvedAssetUrl,
@@ -1871,7 +2142,7 @@ var DeviceAssetSelector = ({
1871
2142
  } else {
1872
2143
  return (
1873
2144
  /* eslint-disable-next-line @next/next/no-img-element */
1874
- /* @__PURE__ */ jsx30(
2145
+ /* @__PURE__ */ jsx37(
1875
2146
  "img",
1876
2147
  {
1877
2148
  style: styles,
@@ -1887,17 +2158,17 @@ var DeviceAssetSelector = ({
1887
2158
  }
1888
2159
  };
1889
2160
  if (width) {
1890
- return /* @__PURE__ */ jsx30("div", { style: { width }, children: renderMedia() });
2161
+ return /* @__PURE__ */ jsx37("div", { style: { width }, children: renderMedia() });
1891
2162
  }
1892
2163
  if (nodeProps?.format) {
1893
- return /* @__PURE__ */ jsx30("div", { className: `flex ${formatClasses}`, children: renderMedia() });
2164
+ return /* @__PURE__ */ jsx37("div", { className: `flex ${formatClasses}`, children: renderMedia() });
1894
2165
  }
1895
2166
  return renderMedia();
1896
2167
  };
1897
2168
  var DeviceAssetSelector_default = DeviceAssetSelector;
1898
2169
 
1899
2170
  // src/components/pageRenderingEngine/nodes/ImageNode.tsx
1900
- import { Fragment, jsx as jsx31 } from "react/jsx-runtime";
2171
+ import { Fragment as Fragment2, jsx as jsx38 } from "react/jsx-runtime";
1901
2172
  var HlsPlayer = dynamic(() => import("./HlsPlayer-GV3FOPYT.mjs"), {
1902
2173
  ssr: false
1903
2174
  });
@@ -1940,7 +2211,7 @@ var ImageNode = (props) => {
1940
2211
  console.error("Error parsing assets in ImageNode:", error);
1941
2212
  }
1942
2213
  if (assets && assets.length > 0) {
1943
- return /* @__PURE__ */ jsx31(Fragment, { children: /* @__PURE__ */ jsx31(
2214
+ return /* @__PURE__ */ jsx38(Fragment2, { children: /* @__PURE__ */ jsx38(
1944
2215
  DeviceAssetSelector_default,
1945
2216
  {
1946
2217
  device: props.device,
@@ -1989,7 +2260,7 @@ var ImageNode = (props) => {
1989
2260
  const isHls = imageUrl?.endsWith(".m3u8");
1990
2261
  const renderMedia = () => {
1991
2262
  if (isHls) {
1992
- return /* @__PURE__ */ jsx31(
2263
+ return /* @__PURE__ */ jsx38(
1993
2264
  HlsPlayer,
1994
2265
  {
1995
2266
  assetUrl: imageUrl,
@@ -2004,7 +2275,7 @@ var ImageNode = (props) => {
2004
2275
  }
2005
2276
  );
2006
2277
  } else {
2007
- return /* @__PURE__ */ jsx31(React28.Fragment, { children: /* @__PURE__ */ jsx31(
2278
+ return /* @__PURE__ */ jsx38(React29.Fragment, { children: /* @__PURE__ */ jsx38(
2008
2279
  "img",
2009
2280
  {
2010
2281
  style: styles,
@@ -2019,38 +2290,15 @@ var ImageNode = (props) => {
2019
2290
  }
2020
2291
  };
2021
2292
  if (props.node.width) {
2022
- return /* @__PURE__ */ jsx31("div", { className: `flex ${formatClasses}`, children: renderMedia() });
2293
+ return /* @__PURE__ */ jsx38("div", { className: `flex ${formatClasses}`, children: renderMedia() });
2023
2294
  }
2024
2295
  return renderMedia();
2025
2296
  };
2026
2297
  var ImageNode_default = ImageNode;
2027
2298
 
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
2299
  // src/components/pageRenderingEngine/nodes/LinkNode.tsx
2052
2300
  import dynamic2 from "next/dynamic";
2053
- import { Fragment as Fragment3, jsx as jsx33, jsxs as jsxs23 } from "react/jsx-runtime";
2301
+ import { Fragment as Fragment3, jsx as jsx39, jsxs as jsxs24 } from "react/jsx-runtime";
2054
2302
  var LinkNodeButton = dynamic2(() => import("./LinkNodeButton-SSV4NINC.mjs"), {
2055
2303
  ssr: false
2056
2304
  });
@@ -2097,13 +2345,13 @@ var LinkNode = (props) => {
2097
2345
  const isButton = node.isButton === true;
2098
2346
  const renderChildren = () => {
2099
2347
  if (!node.children || node.children.length === 0) return null;
2100
- return /* @__PURE__ */ jsx33(Fragment3, { children: node.children.map((childNode, index) => {
2348
+ return /* @__PURE__ */ jsx39(Fragment3, { children: node.children.map((childNode, index) => {
2101
2349
  const SelectedNode = NodeTypes2[childNode.type];
2102
2350
  if (!SelectedNode) {
2103
2351
  console.warn("Unknown node type:", childNode.type);
2104
2352
  return null;
2105
2353
  }
2106
- return /* @__PURE__ */ jsx33(React29.Fragment, { children: /* @__PURE__ */ jsx33(
2354
+ return /* @__PURE__ */ jsx39(React30.Fragment, { children: /* @__PURE__ */ jsx39(
2107
2355
  SelectedNode,
2108
2356
  {
2109
2357
  node: childNode,
@@ -2116,15 +2364,15 @@ var LinkNode = (props) => {
2116
2364
  };
2117
2365
  const renderFallback = () => {
2118
2366
  if ((!node.children || node.children.length === 0) && linkText) {
2119
- return /* @__PURE__ */ jsx33("span", { children: linkText });
2367
+ return /* @__PURE__ */ jsx39("span", { children: linkText });
2120
2368
  }
2121
2369
  if ((!node.children || node.children.length === 0) && !linkText) {
2122
- return /* @__PURE__ */ jsx33("br", {});
2370
+ return /* @__PURE__ */ jsx39("br", {});
2123
2371
  }
2124
2372
  return null;
2125
2373
  };
2126
2374
  if (isButton) {
2127
- return /* @__PURE__ */ jsxs23(
2375
+ return /* @__PURE__ */ jsxs24(
2128
2376
  LinkNodeButton,
2129
2377
  {
2130
2378
  node,
@@ -2142,7 +2390,7 @@ var LinkNode = (props) => {
2142
2390
  }
2143
2391
  );
2144
2392
  }
2145
- return /* @__PURE__ */ jsxs23(
2393
+ return /* @__PURE__ */ jsxs24(
2146
2394
  Hyperlink,
2147
2395
  {
2148
2396
  href: linkUrl || "#",
@@ -2158,10 +2406,10 @@ var LinkNode = (props) => {
2158
2406
  var LinkNode_default = LinkNode;
2159
2407
 
2160
2408
  // src/components/pageRenderingEngine/nodes/SVGIconNode.tsx
2161
- import { jsx as jsx34 } from "react/jsx-runtime";
2409
+ import { jsx as jsx40 } from "react/jsx-runtime";
2162
2410
  var SVGIconNode = ({ node }) => {
2163
2411
  if (!node?.svgCode) return null;
2164
- return /* @__PURE__ */ jsx34(
2412
+ return /* @__PURE__ */ jsx40(
2165
2413
  "span",
2166
2414
  {
2167
2415
  style: {
@@ -2178,7 +2426,7 @@ var SVGIconNode_default = SVGIconNode;
2178
2426
 
2179
2427
  // src/components/pageRenderingEngine/nodes/EquationNode.tsx
2180
2428
  import katex from "katex";
2181
- import { jsx as jsx35 } from "react/jsx-runtime";
2429
+ import { jsx as jsx41 } from "react/jsx-runtime";
2182
2430
  var EquationNode = ({ node }) => {
2183
2431
  const { equation, inline } = node;
2184
2432
  let html = "";
@@ -2193,7 +2441,7 @@ var EquationNode = ({ node }) => {
2193
2441
  });
2194
2442
  }
2195
2443
  if (inline) {
2196
- return /* @__PURE__ */ jsx35(
2444
+ return /* @__PURE__ */ jsx41(
2197
2445
  "span",
2198
2446
  {
2199
2447
  className: "katex-inline",
@@ -2201,7 +2449,7 @@ var EquationNode = ({ node }) => {
2201
2449
  }
2202
2450
  );
2203
2451
  }
2204
- return /* @__PURE__ */ jsx35(
2452
+ return /* @__PURE__ */ jsx41(
2205
2453
  "div",
2206
2454
  {
2207
2455
  className: "katex-block my-3 text-center",
@@ -2212,7 +2460,7 @@ var EquationNode = ({ node }) => {
2212
2460
  var EquationNode_default = EquationNode;
2213
2461
 
2214
2462
  // src/components/pageRenderingEngine/nodes/DatafieldNode.tsx
2215
- import { jsx as jsx36 } from "react/jsx-runtime";
2463
+ import { jsx as jsx42 } from "react/jsx-runtime";
2216
2464
  function getNestedProperty(obj, path) {
2217
2465
  if (!obj || !path) return null;
2218
2466
  if (path.includes(".")) {
@@ -2225,7 +2473,7 @@ function getNestedProperty(obj, path) {
2225
2473
  }
2226
2474
  const value = obj[path];
2227
2475
  if (Array.isArray(value)) {
2228
- return value.map((item, index) => /* @__PURE__ */ jsx36("div", { children: String(item) }, index));
2476
+ return value.map((item, index) => /* @__PURE__ */ jsx42("div", { children: String(item) }, index));
2229
2477
  }
2230
2478
  return value;
2231
2479
  }
@@ -2286,7 +2534,7 @@ var DatafieldNode = (props) => {
2286
2534
  const dataType = props.node.dataType;
2287
2535
  if (isEmptyValue) return null;
2288
2536
  if (dataType === "rawContent") {
2289
- return /* @__PURE__ */ jsx36(
2537
+ return /* @__PURE__ */ jsx42(
2290
2538
  PageBodyRenderer_default,
2291
2539
  {
2292
2540
  rawBody: String(value ?? `@databound[${fieldName}]`),
@@ -2302,12 +2550,12 @@ var DatafieldNode = (props) => {
2302
2550
  }
2303
2551
  );
2304
2552
  }
2305
- return /* @__PURE__ */ jsx36(
2553
+ return /* @__PURE__ */ jsx42(
2306
2554
  "span",
2307
2555
  {
2308
2556
  className: `datafield-node ${props.node.format < Formats.length ? Formats[props.node.format] : ""}`,
2309
2557
  style: styles,
2310
- children: /* @__PURE__ */ jsx36(
2558
+ children: /* @__PURE__ */ jsx42(
2311
2559
  ViewControl_default,
2312
2560
  {
2313
2561
  controlType: dataType,
@@ -2320,7 +2568,7 @@ var DatafieldNode = (props) => {
2320
2568
  var DatafieldNode_default = DatafieldNode;
2321
2569
 
2322
2570
  // src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
2323
- import { Fragment as Fragment4, jsx as jsx37, jsxs as jsxs24 } from "react/jsx-runtime";
2571
+ import { Fragment as Fragment4, jsx as jsx43, jsxs as jsxs25 } from "react/jsx-runtime";
2324
2572
  var ParagraphNode = (props) => {
2325
2573
  const NodeTypes2 = {
2326
2574
  ["text"]: TextNode_default,
@@ -2340,9 +2588,9 @@ var ParagraphNode = (props) => {
2340
2588
  const isInlineOnlyParent = props.parentTag === "summary";
2341
2589
  const hasChildren = props.node.children && props.node.children.length > 0;
2342
2590
  if (isInlineOnlyParent) {
2343
- return /* @__PURE__ */ jsx37(Fragment4, { children: hasChildren && props.node.children.map((node, index) => {
2591
+ return /* @__PURE__ */ jsx43(Fragment4, { children: hasChildren && props.node.children.map((node, index) => {
2344
2592
  const SelectedNode = NodeTypes2[node.type];
2345
- return /* @__PURE__ */ jsx37(React30.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx37(
2593
+ return /* @__PURE__ */ jsx43(React31.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx43(
2346
2594
  SelectedNode,
2347
2595
  {
2348
2596
  node,
@@ -2354,10 +2602,10 @@ var ParagraphNode = (props) => {
2354
2602
  ) }, index);
2355
2603
  }) });
2356
2604
  }
2357
- return /* @__PURE__ */ jsxs24("div", { className: " " + formatClasses, children: [
2605
+ return /* @__PURE__ */ jsxs25("div", { className: " " + formatClasses, children: [
2358
2606
  hasChildren && props.node.children.map((node, index) => {
2359
2607
  const SelectedNode = NodeTypes2[node.type];
2360
- return /* @__PURE__ */ jsx37(React30.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx37(
2608
+ return /* @__PURE__ */ jsx43(React31.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx43(
2361
2609
  SelectedNode,
2362
2610
  {
2363
2611
  node,
@@ -2368,14 +2616,14 @@ var ParagraphNode = (props) => {
2368
2616
  }
2369
2617
  ) }, index);
2370
2618
  }),
2371
- !hasChildren && /* @__PURE__ */ jsx37("div", { className: "py-1.5 lg:py-2" })
2619
+ !hasChildren && /* @__PURE__ */ jsx43("div", { className: "py-1.5 lg:py-2" })
2372
2620
  ] });
2373
2621
  };
2374
2622
  var ParagraphNode_default = ParagraphNode;
2375
2623
 
2376
2624
  // src/components/pageRenderingEngine/nodes/HeadingNode.tsx
2377
- import React31 from "react";
2378
- import { Fragment as Fragment5, jsx as jsx38 } from "react/jsx-runtime";
2625
+ import React32 from "react";
2626
+ import { Fragment as Fragment5, jsx as jsx44 } from "react/jsx-runtime";
2379
2627
  var HeadingNode = (props) => {
2380
2628
  const NodeTypes2 = {
2381
2629
  ["text"]: TextNode_default,
@@ -2391,23 +2639,23 @@ var HeadingNode = (props) => {
2391
2639
  {
2392
2640
  }
2393
2641
  const formatClasses = FormatClass[props.node.format] || "";
2394
- return /* @__PURE__ */ jsx38(Fragment5, { children: React31.createElement(
2642
+ return /* @__PURE__ */ jsx44(Fragment5, { children: React32.createElement(
2395
2643
  HeadingTag,
2396
2644
  { className: formatClasses },
2397
2645
  props.node.children && props.node.children.map((childNode, index) => {
2398
2646
  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);
2647
+ 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
2648
  })
2401
2649
  ) });
2402
2650
  };
2403
2651
  var HeadingNode_default = HeadingNode;
2404
2652
 
2405
2653
  // src/components/pageRenderingEngine/nodes/ListNode.tsx
2406
- import React33 from "react";
2654
+ import React34 from "react";
2407
2655
 
2408
2656
  // src/components/pageRenderingEngine/nodes/ListItemNode.tsx
2409
- import React32 from "react";
2410
- import { jsx as jsx39 } from "react/jsx-runtime";
2657
+ import React33 from "react";
2658
+ import { jsx as jsx45 } from "react/jsx-runtime";
2411
2659
  var ListItemNode = (props) => {
2412
2660
  const NodeTypes2 = {
2413
2661
  text: TextNode_default,
@@ -2424,66 +2672,66 @@ var ListItemNode = (props) => {
2424
2672
  liStyle.fontSize = match[1].trim();
2425
2673
  }
2426
2674
  }
2427
- return /* @__PURE__ */ jsx39("li", { style: liStyle, children: props.node.children && props.node.children.map((node, index) => {
2675
+ return /* @__PURE__ */ jsx45("li", { style: liStyle, children: props.node.children && props.node.children.map((node, index) => {
2428
2676
  const SelectedNode = NodeTypes2[node.type];
2429
2677
  if (node.type === "linebreak") {
2430
2678
  if (!foundFirstBreak) {
2431
2679
  foundFirstBreak = true;
2432
- return /* @__PURE__ */ jsx39("div", {}, index);
2680
+ return /* @__PURE__ */ jsx45("div", {}, index);
2433
2681
  } else {
2434
- return /* @__PURE__ */ jsx39("div", { className: "py-1 lg:py-2" }, index);
2682
+ return /* @__PURE__ */ jsx45("div", { className: "py-1 lg:py-2" }, index);
2435
2683
  }
2436
2684
  } else {
2437
2685
  foundFirstBreak = false;
2438
- return /* @__PURE__ */ jsx39(React32.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx39(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
2686
+ return /* @__PURE__ */ jsx45(React33.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx45(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
2439
2687
  }
2440
2688
  }) });
2441
2689
  };
2442
2690
  var ListItemNode_default = ListItemNode;
2443
2691
 
2444
2692
  // src/components/pageRenderingEngine/nodes/ListNode.tsx
2445
- import { jsx as jsx40, jsxs as jsxs25 } from "react/jsx-runtime";
2693
+ import { jsx as jsx46, jsxs as jsxs26 } from "react/jsx-runtime";
2446
2694
  var ListNode = (props) => {
2447
2695
  const NodeTypes2 = {
2448
2696
  listitem: ListItemNode_default
2449
2697
  };
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) => {
2698
+ return /* @__PURE__ */ jsxs26(React34.Fragment, { children: [
2699
+ props.node.listType == "bullet" && /* @__PURE__ */ jsx46("ul", { children: props.node.children && props.node.children.map((node, index) => {
2452
2700
  const SelectedNode = NodeTypes2[node.type];
2453
- return /* @__PURE__ */ jsx40(React33.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx40(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
2701
+ return /* @__PURE__ */ jsx46(React34.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx46(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
2454
2702
  }) }),
2455
- props.node.listType == "number" && /* @__PURE__ */ jsx40("ol", { children: props.node.children && props.node.children.map((node, index) => {
2703
+ props.node.listType == "number" && /* @__PURE__ */ jsx46("ol", { children: props.node.children && props.node.children.map((node, index) => {
2456
2704
  const SelectedNode = NodeTypes2[node.type];
2457
- return /* @__PURE__ */ jsx40(React33.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx40(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
2705
+ return /* @__PURE__ */ jsx46(React34.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx46(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
2458
2706
  }) })
2459
2707
  ] });
2460
2708
  };
2461
2709
  var ListNode_default = ListNode;
2462
2710
 
2463
2711
  // src/components/pageRenderingEngine/nodes/QuoteNode.tsx
2464
- import React34 from "react";
2465
- import { jsx as jsx41 } from "react/jsx-runtime";
2712
+ import React35 from "react";
2713
+ import { jsx as jsx47 } from "react/jsx-runtime";
2466
2714
  var QuoteNode = (props) => {
2467
2715
  const NodeTypes2 = {
2468
2716
  ["text"]: TextNode_default,
2469
2717
  ["linebreak"]: LineBreakNode_default,
2470
2718
  ["link"]: LinkNode_default
2471
2719
  };
2472
- return /* @__PURE__ */ jsx41("blockquote", { children: props.node.children && props.node.children.map((node, index) => {
2720
+ return /* @__PURE__ */ jsx47("blockquote", { children: props.node.children && props.node.children.map((node, index) => {
2473
2721
  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);
2722
+ return /* @__PURE__ */ jsx47(React35.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx47(SelectedNode, { node, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
2475
2723
  }) });
2476
2724
  };
2477
2725
  var QuoteNode_default = QuoteNode;
2478
2726
 
2479
2727
  // src/components/pageRenderingEngine/nodes/CodeNode.tsx
2480
- import React35 from "react";
2728
+ import React36 from "react";
2481
2729
  import dynamic3 from "next/dynamic";
2482
- import { jsx as jsx42, jsxs as jsxs26 } from "react/jsx-runtime";
2730
+ import { jsx as jsx48, jsxs as jsxs27 } from "react/jsx-runtime";
2483
2731
  var CopyButton = dynamic3(() => import("./CopyButton-XONTQQW7.mjs"), {
2484
2732
  ssr: false,
2485
2733
  // optional: fallback UI while loading
2486
- loading: () => /* @__PURE__ */ jsx42("span", { className: "text-gray-400 text-xs", children: "Copy" })
2734
+ loading: () => /* @__PURE__ */ jsx48("span", { className: "text-gray-400 text-xs", children: "Copy" })
2487
2735
  });
2488
2736
  var CodeNode = (props) => {
2489
2737
  const NodeTypes2 = {
@@ -2497,14 +2745,14 @@ var CodeNode = (props) => {
2497
2745
  if (node.type === "link") return node.text || node.url || "";
2498
2746
  return "";
2499
2747
  }).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 })
2748
+ return /* @__PURE__ */ jsxs27("div", { children: [
2749
+ /* @__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: [
2750
+ /* @__PURE__ */ jsx48("span", { children: "Code Snippet" }),
2751
+ /* @__PURE__ */ jsx48(CopyButton, { text: textContent })
2504
2752
  ] }),
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) => {
2753
+ /* @__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
2754
  const SelectedNode = NodeTypes2[node.type];
2507
- return /* @__PURE__ */ jsx42(React35.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx42(
2755
+ return /* @__PURE__ */ jsx48(React36.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx48(
2508
2756
  SelectedNode,
2509
2757
  {
2510
2758
  node,
@@ -2519,15 +2767,15 @@ var CodeNode = (props) => {
2519
2767
  var CodeNode_default = CodeNode;
2520
2768
 
2521
2769
  // src/components/pageRenderingEngine/nodes/HorizontalRuleNode.tsx
2522
- import { jsx as jsx43 } from "react/jsx-runtime";
2770
+ import { jsx as jsx49 } from "react/jsx-runtime";
2523
2771
  var HorizontalRuleNode = () => {
2524
- return /* @__PURE__ */ jsx43("hr", {});
2772
+ return /* @__PURE__ */ jsx49("hr", {});
2525
2773
  };
2526
2774
  var HorizontalRuleNode_default = HorizontalRuleNode;
2527
2775
 
2528
2776
  // src/components/pageRenderingEngine/nodes/WidgetNode.tsx
2529
- import React36 from "react";
2530
- import { Fragment as Fragment6, jsx as jsx44 } from "react/jsx-runtime";
2777
+ import React37 from "react";
2778
+ import { Fragment as Fragment6, jsx as jsx50 } from "react/jsx-runtime";
2531
2779
  var WidgetNode = (props) => {
2532
2780
  const getWidgetParameters = () => {
2533
2781
  const widgetInputParameters = {
@@ -2584,7 +2832,7 @@ var WidgetNode = (props) => {
2584
2832
  };
2585
2833
  const widgetCode = props.node?.widgetCode;
2586
2834
  if (!widgetCode) {
2587
- return /* @__PURE__ */ jsx44(Fragment6, { children: "Invalid widget" });
2835
+ return /* @__PURE__ */ jsx50(Fragment6, { children: "Invalid widget" });
2588
2836
  }
2589
2837
  const widgetParams = getWidgetParameters();
2590
2838
  const WidgetRenderer = props.widgetRenderer;
@@ -2593,7 +2841,7 @@ var WidgetNode = (props) => {
2593
2841
  }
2594
2842
  return (
2595
2843
  // eslint-disable-next-line react-hooks/static-components
2596
- /* @__PURE__ */ jsx44(React36.Fragment, { children: /* @__PURE__ */ jsx44(
2844
+ /* @__PURE__ */ jsx50(React37.Fragment, { children: /* @__PURE__ */ jsx50(
2597
2845
  WidgetRenderer,
2598
2846
  {
2599
2847
  params: widgetParams,
@@ -2610,12 +2858,12 @@ var WidgetNode = (props) => {
2610
2858
  var WidgetNode_default = WidgetNode;
2611
2859
 
2612
2860
  // src/components/pageRenderingEngine/nodes/FormContainerNode.tsx
2613
- import React37, { useRef as useRef3, useReducer, useCallback as useCallback2, useEffect as useEffect6 } from "react";
2861
+ import React38, { useRef as useRef3, useReducer, useCallback as useCallback2, useEffect as useEffect7 } from "react";
2614
2862
 
2615
2863
  // src/components/pageRenderingEngine/nodes/InputControlNode.tsx
2616
- import { jsx as jsx45 } from "react/jsx-runtime";
2864
+ import { jsx as jsx51 } from "react/jsx-runtime";
2617
2865
  var InputControlNode = (props) => {
2618
- return /* @__PURE__ */ jsx45("div", { children: /* @__PURE__ */ jsx45(
2866
+ return /* @__PURE__ */ jsx51("div", { children: /* @__PURE__ */ jsx51(
2619
2867
  InputControl_default,
2620
2868
  {
2621
2869
  name: props.node.name,
@@ -2688,7 +2936,7 @@ function FormReducer(state, action) {
2688
2936
  var FormReducer_default = FormReducer;
2689
2937
 
2690
2938
  // src/components/pageRenderingEngine/nodes/FormContainerNode.tsx
2691
- import { jsx as jsx46, jsxs as jsxs27 } from "react/jsx-runtime";
2939
+ import { jsx as jsx52, jsxs as jsxs28 } from "react/jsx-runtime";
2692
2940
  var FormContainerNode = (props) => {
2693
2941
  const NodeTypes2 = {
2694
2942
  ["input-control"]: InputControlNode_default
@@ -2703,7 +2951,7 @@ var FormContainerNode = (props) => {
2703
2951
  const handleInputChange = useCallback2((updatedValues) => {
2704
2952
  dispatch({ type: FORM_INPUT_UPDATE, name: updatedValues.name, value: updatedValues.value });
2705
2953
  }, [dispatch]);
2706
- useEffect6(() => {
2954
+ useEffect7(() => {
2707
2955
  const fetchInitialData = async () => {
2708
2956
  const client = new ServiceClient_default(props.apiBaseUrl, props.session);
2709
2957
  const response = await client.getSingle(props.node.dataFetchApi, props.routeParameters);
@@ -2718,12 +2966,12 @@ var FormContainerNode = (props) => {
2718
2966
  };
2719
2967
  fetchInitialData();
2720
2968
  }, [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: [
2969
+ return /* @__PURE__ */ jsxs28("form", { className: "group space-y-6 pb-6 overflow-y-auto", noValidate: true, ref: formRef, children: [
2722
2970
  node.children && node.children.map((node2, index) => {
2723
2971
  {
2724
2972
  }
2725
2973
  const SelectedNode = NodeTypes2[node2.type];
2726
- return /* @__PURE__ */ jsx46(React37.Fragment, { children: SelectedNode && node2.type == "input-control" && /* @__PURE__ */ jsx46(
2974
+ return /* @__PURE__ */ jsx52(React38.Fragment, { children: SelectedNode && node2.type == "input-control" && /* @__PURE__ */ jsx52(
2727
2975
  InputControlNode_default,
2728
2976
  {
2729
2977
  value: formState.inputValues[node2.name],
@@ -2732,17 +2980,17 @@ var FormContainerNode = (props) => {
2732
2980
  }
2733
2981
  ) }, index);
2734
2982
  }),
2735
- node.children.length == 0 && /* @__PURE__ */ jsx46("div", { className: "py-0.5 lg:py-1.5" })
2983
+ node.children.length == 0 && /* @__PURE__ */ jsx52("div", { className: "py-0.5 lg:py-1.5" })
2736
2984
  ] });
2737
2985
  };
2738
2986
  var FormContainerNode_default = FormContainerNode;
2739
2987
 
2740
2988
  // src/components/pageRenderingEngine/nodes/DivContainer.tsx
2741
- import React40 from "react";
2989
+ import React41 from "react";
2742
2990
 
2743
2991
  // src/components/pageRenderingEngine/nodes/EmbedNode.tsx
2744
2992
  import dynamic4 from "next/dynamic";
2745
- import { jsx as jsx47 } from "react/jsx-runtime";
2993
+ import { jsx as jsx53 } from "react/jsx-runtime";
2746
2994
  var IframeClient = dynamic4(() => import("./IframeClient-J22NMEVY.mjs"), {
2747
2995
  ssr: false
2748
2996
  });
@@ -2755,13 +3003,13 @@ var EmbedNode = (props) => {
2755
3003
  } else {
2756
3004
  src = props.node.embedSrc;
2757
3005
  }
2758
- return /* @__PURE__ */ jsx47("div", { className: "aspect-video", children: src && /* @__PURE__ */ jsx47(IframeClient, { src }) });
3006
+ return /* @__PURE__ */ jsx53("div", { className: "aspect-video", children: src && /* @__PURE__ */ jsx53(IframeClient, { src }) });
2759
3007
  };
2760
3008
  var EmbedNode_default = EmbedNode;
2761
3009
 
2762
3010
  // 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";
3011
+ import React39, { useState as useState5, useEffect as useEffect8, Children, cloneElement } from "react";
3012
+ import { Fragment as Fragment7, jsx as jsx54, jsxs as jsxs29 } from "react/jsx-runtime";
2765
3013
  var Slider = ({
2766
3014
  children,
2767
3015
  slidesToShow = 4,
@@ -2785,7 +3033,7 @@ var Slider = ({
2785
3033
  typeof slidesToShow === "number" ? slidesToShow : slidesToShow.large
2786
3034
  );
2787
3035
  const [isPlaying, setIsPlaying] = useState5(autoplay);
2788
- useEffect7(() => {
3036
+ useEffect8(() => {
2789
3037
  if (typeof slidesToShow === "number") return;
2790
3038
  const handleResize = () => {
2791
3039
  if (window.innerWidth >= 1024) {
@@ -2800,7 +3048,7 @@ var Slider = ({
2800
3048
  window.addEventListener("resize", handleResize);
2801
3049
  return () => window.removeEventListener("resize", handleResize);
2802
3050
  }, [slidesToShow]);
2803
- useEffect7(() => {
3051
+ useEffect8(() => {
2804
3052
  if (!autoplay) return;
2805
3053
  const timer = setInterval(() => {
2806
3054
  if (isPlaying) {
@@ -2855,10 +3103,10 @@ var Slider = ({
2855
3103
  };
2856
3104
  const translateX = -currentSlide * (100 / slidesToShowState);
2857
3105
  const slides = Children.map(children, (child, index) => {
2858
- if (!React38.isValidElement(child)) return null;
3106
+ if (!React39.isValidElement(child)) return null;
2859
3107
  const childProps = child.props;
2860
3108
  const mergedClassName = `${childProps.className ?? ""} w-full`.trim();
2861
- return /* @__PURE__ */ jsx48(
3109
+ return /* @__PURE__ */ jsx54(
2862
3110
  "div",
2863
3111
  {
2864
3112
  className: `flex-none ${scaleOnHover ? "group hover:z-50" : ""} relative`,
@@ -2881,14 +3129,14 @@ var Slider = ({
2881
3129
  return "bottom-4";
2882
3130
  }
2883
3131
  };
2884
- return /* @__PURE__ */ jsxs28(
3132
+ return /* @__PURE__ */ jsxs29(
2885
3133
  "div",
2886
3134
  {
2887
3135
  className: `relative w-full overflow-hidden ${className}`,
2888
3136
  onMouseEnter: handleMouseEnter,
2889
3137
  onMouseLeave: handleMouseLeave,
2890
3138
  children: [
2891
- /* @__PURE__ */ jsx48(
3139
+ /* @__PURE__ */ jsx54(
2892
3140
  "div",
2893
3141
  {
2894
3142
  className: "flex h-full",
@@ -2899,18 +3147,18 @@ var Slider = ({
2899
3147
  children: slides
2900
3148
  }
2901
3149
  ),
2902
- show_arrows && /* @__PURE__ */ jsxs28(Fragment7, { children: [
2903
- /* @__PURE__ */ jsx48(
3150
+ show_arrows && /* @__PURE__ */ jsxs29(Fragment7, { children: [
3151
+ /* @__PURE__ */ jsx54(
2904
3152
  ArrowButton,
2905
3153
  {
2906
3154
  direction: "left",
2907
3155
  onClick: prevSlide,
2908
3156
  visible: infinite_scroll || currentSlide > 0,
2909
3157
  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" }) })
3158
+ 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
3159
  }
2912
3160
  ),
2913
- /* @__PURE__ */ jsxs28(
3161
+ /* @__PURE__ */ jsxs29(
2914
3162
  ArrowButton,
2915
3163
  {
2916
3164
  direction: "right",
@@ -2918,13 +3166,13 @@ var Slider = ({
2918
3166
  visible: infinite_scroll || currentSlide < maxSlide,
2919
3167
  className: arrowClassName,
2920
3168
  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" }) }),
3169
+ /* @__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
3170
  " "
2923
3171
  ]
2924
3172
  }
2925
3173
  )
2926
3174
  ] }),
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(
3175
+ 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
3176
  ProgressPill,
2929
3177
  {
2930
3178
  active: index === currentSlide,
@@ -2950,7 +3198,7 @@ var ArrowButton = ({
2950
3198
  visible,
2951
3199
  children,
2952
3200
  className = ""
2953
- }) => /* @__PURE__ */ jsx48(
3201
+ }) => /* @__PURE__ */ jsx54(
2954
3202
  "button",
2955
3203
  {
2956
3204
  className: `
@@ -2977,12 +3225,12 @@ var ProgressPill = ({
2977
3225
  totalSlides
2978
3226
  }) => {
2979
3227
  const [progress, setProgress] = useState5(0);
2980
- useEffect7(() => {
3228
+ useEffect8(() => {
2981
3229
  if (active) {
2982
3230
  setProgress(0);
2983
3231
  }
2984
3232
  }, [active, index]);
2985
- useEffect7(() => {
3233
+ useEffect8(() => {
2986
3234
  if (!active || !isPlaying) {
2987
3235
  if (!active) {
2988
3236
  setProgress(0);
@@ -3037,7 +3285,7 @@ var ProgressPill = ({
3037
3285
  const renderProgressBar = () => {
3038
3286
  if (style === "modern" && isActive || style === "cumulative" && shouldShowProgress) {
3039
3287
  const displayProgress = style === "cumulative" && isFilled ? 100 : progress;
3040
- return /* @__PURE__ */ jsx48(
3288
+ return /* @__PURE__ */ jsx54(
3041
3289
  "div",
3042
3290
  {
3043
3291
  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 +3297,7 @@ var ProgressPill = ({
3049
3297
  };
3050
3298
  const renderCumulativeFill = () => {
3051
3299
  if (style === "cumulative" && isFilled && !isActive) {
3052
- return /* @__PURE__ */ jsx48(
3300
+ return /* @__PURE__ */ jsx54(
3053
3301
  "div",
3054
3302
  {
3055
3303
  className: `absolute top-0 left-0 h-full rounded-full ${activeClassName || "bg-white"} transition-all duration-300`,
@@ -3059,7 +3307,7 @@ var ProgressPill = ({
3059
3307
  }
3060
3308
  return null;
3061
3309
  };
3062
- return /* @__PURE__ */ jsxs28(
3310
+ return /* @__PURE__ */ jsxs29(
3063
3311
  "button",
3064
3312
  {
3065
3313
  className: `${baseClasses} ${getStyleClasses()}`,
@@ -3397,10 +3645,10 @@ var PathUtility = class {
3397
3645
  var PathUtility_default = new PathUtility();
3398
3646
 
3399
3647
  // src/components/NoDataFound.tsx
3400
- import { jsx as jsx49, jsxs as jsxs29 } from "react/jsx-runtime";
3648
+ import { jsx as jsx55, jsxs as jsxs30 } from "react/jsx-runtime";
3401
3649
  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(
3650
+ return /* @__PURE__ */ jsxs30("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center bg-neutral-weak", children: [
3651
+ /* @__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
3652
  "svg",
3405
3653
  {
3406
3654
  className: "w-10 h-10",
@@ -3408,7 +3656,7 @@ var NoDataFound = () => {
3408
3656
  stroke: "currentColor",
3409
3657
  viewBox: "0 0 24 24",
3410
3658
  xmlns: "http://www.w3.org/2000/svg",
3411
- children: /* @__PURE__ */ jsx49(
3659
+ children: /* @__PURE__ */ jsx55(
3412
3660
  "path",
3413
3661
  {
3414
3662
  strokeLinecap: "round",
@@ -3419,66 +3667,15 @@ var NoDataFound = () => {
3419
3667
  )
3420
3668
  }
3421
3669
  ) }) }),
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." })
3670
+ /* @__PURE__ */ jsx55("h3", { className: "text-lg font-medium mb-2", children: "No data available" }),
3671
+ /* @__PURE__ */ jsx55("p", { className: " max-w-sm mb-0", children: "No records found. Data may be empty or not available at the moment." })
3424
3672
  ] });
3425
3673
  };
3426
3674
  var NoDataFound_default = NoDataFound;
3427
3675
 
3428
3676
  // src/components/Pagination.tsx
3429
3677
  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";
3678
+ import { jsx as jsx56, jsxs as jsxs31 } from "react/jsx-runtime";
3482
3679
  var Pagination = (props) => {
3483
3680
  const { dataset, path, query, showPageSizeSelector = false, showJumpToPage = false } = props;
3484
3681
  const builder = useMemo(() => {
@@ -3522,7 +3719,7 @@ var Pagination = (props) => {
3522
3719
  return range;
3523
3720
  };
3524
3721
  const paginationRange = getPaginationRange();
3525
- const PageButton = ({ page, children }) => /* @__PURE__ */ jsx55(
3722
+ const PageButton = ({ page, children }) => /* @__PURE__ */ jsx56(
3526
3723
  Hyperlink,
3527
3724
  {
3528
3725
  linkType: "Link" /* Link */,
@@ -3537,9 +3734,9 @@ var Pagination = (props) => {
3537
3734
  );
3538
3735
  const NavigationButton = ({ page, disabled, children }) => {
3539
3736
  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 });
3737
+ 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
3738
  }
3542
- return /* @__PURE__ */ jsx55(
3739
+ return /* @__PURE__ */ jsx56(
3543
3740
  Hyperlink,
3544
3741
  {
3545
3742
  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 +3746,35 @@ var Pagination = (props) => {
3549
3746
  );
3550
3747
  };
3551
3748
  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: [
3749
+ return /* @__PURE__ */ jsxs31("div", { className: "py-6 border-t bg-default", children: [
3750
+ /* @__PURE__ */ jsxs31("div", { className: "flex flex-col sm:flex-row items-center justify-between gap-4", children: [
3751
+ /* @__PURE__ */ jsxs31("div", { className: "text-sm", children: [
3555
3752
  "Showing ",
3556
- /* @__PURE__ */ jsxs30("span", { className: "font-semibold", children: [
3753
+ /* @__PURE__ */ jsxs31("span", { className: "font-semibold", children: [
3557
3754
  startItem,
3558
3755
  "-",
3559
3756
  endItem
3560
3757
  ] }),
3561
3758
  " ",
3562
3759
  "out of ",
3563
- /* @__PURE__ */ jsx55("span", { className: "font-semibold", children: totalItems.toLocaleString() }),
3760
+ /* @__PURE__ */ jsx56("span", { className: "font-semibold", children: totalItems.toLocaleString() }),
3564
3761
  " results"
3565
3762
  ] }),
3566
- totalPages > 1 && /* @__PURE__ */ jsxs30("div", { className: "flex items-center space-x-1", children: [
3567
- /* @__PURE__ */ jsxs30(
3763
+ totalPages > 1 && /* @__PURE__ */ jsxs31("div", { className: "flex items-center space-x-1", children: [
3764
+ /* @__PURE__ */ jsxs31(
3568
3765
  NavigationButton,
3569
3766
  {
3570
3767
  page: activePageNumber - 1,
3571
3768
  disabled: activePageNumber === 1,
3572
3769
  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" })
3770
+ /* @__PURE__ */ jsx56("span", { children: /* @__PURE__ */ jsx56(Icon_default, { name: "chevronLeft", className: "w-4 h-4 mr-1" }) }),
3771
+ /* @__PURE__ */ jsx56("span", { className: "text-sm", children: "Prev" })
3575
3772
  ]
3576
3773
  }
3577
3774
  ),
3578
3775
  paginationRange.map((item, index) => {
3579
3776
  if (item === "...") {
3580
- return /* @__PURE__ */ jsx55(
3777
+ return /* @__PURE__ */ jsx56(
3581
3778
  "span",
3582
3779
  {
3583
3780
  className: "min-w-[20px] md:min-w-[40px] h-10 flex items-center justify-center text-gray-500",
@@ -3587,23 +3784,23 @@ var Pagination = (props) => {
3587
3784
  );
3588
3785
  }
3589
3786
  const page = item;
3590
- return /* @__PURE__ */ jsx55(PageButton, { page, children: page }, page);
3787
+ return /* @__PURE__ */ jsx56(PageButton, { page, children: page }, page);
3591
3788
  }),
3592
- /* @__PURE__ */ jsxs30(
3789
+ /* @__PURE__ */ jsxs31(
3593
3790
  NavigationButton,
3594
3791
  {
3595
3792
  page: activePageNumber + 1,
3596
3793
  disabled: activePageNumber === totalPages,
3597
3794
  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" }) })
3795
+ /* @__PURE__ */ jsx56("span", { className: "text-sm", children: "Next" }),
3796
+ /* @__PURE__ */ jsx56("span", { children: /* @__PURE__ */ jsx56(Icon_default, { name: "chevronRight", className: "w-4 h-4 ml-1" }) })
3600
3797
  ]
3601
3798
  }
3602
3799
  )
3603
3800
  ] }),
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(
3801
+ showJumpToPage && totalPages > 5 && /* @__PURE__ */ jsxs31("div", { className: "flex items-center space-x-2", children: [
3802
+ /* @__PURE__ */ jsx56("span", { className: "text-sm", children: "Go to:" }),
3803
+ /* @__PURE__ */ jsx56("div", { className: "relative", children: /* @__PURE__ */ jsx56(
3607
3804
  "input",
3608
3805
  {
3609
3806
  type: "number",
@@ -3624,9 +3821,9 @@ var Pagination = (props) => {
3624
3821
  ) })
3625
3822
  ] })
3626
3823
  ] }),
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(
3824
+ 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: [
3825
+ /* @__PURE__ */ jsx56("span", { className: "text-sm", children: "Show:" }),
3826
+ /* @__PURE__ */ jsx56("div", { className: "flex space-x-1", children: [10, 25, 50, 100].map((size) => /* @__PURE__ */ jsx56(
3630
3827
  Hyperlink,
3631
3828
  {
3632
3829
  className: `
@@ -3638,7 +3835,7 @@ var Pagination = (props) => {
3638
3835
  },
3639
3836
  size
3640
3837
  )) }),
3641
- /* @__PURE__ */ jsx55("span", { className: "text-sm", children: "per page" })
3838
+ /* @__PURE__ */ jsx56("span", { className: "text-sm", children: "per page" })
3642
3839
  ] }) })
3643
3840
  ] });
3644
3841
  };
@@ -3646,7 +3843,7 @@ var Pagination_default = Pagination;
3646
3843
 
3647
3844
  // src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
3648
3845
  import dynamic5 from "next/dynamic";
3649
- import { Fragment as Fragment8, jsx as jsx56, jsxs as jsxs31 } from "react/jsx-runtime";
3846
+ import { Fragment as Fragment8, jsx as jsx57, jsxs as jsxs32 } from "react/jsx-runtime";
3650
3847
  var HlsPlayer2 = dynamic5(() => import("./HlsPlayer-GV3FOPYT.mjs"), { ssr: false });
3651
3848
  var deviceToMediaQuery = (device) => {
3652
3849
  switch (device) {
@@ -3715,8 +3912,8 @@ var ImageGalleryNode = (props) => {
3715
3912
  right: "justify-end"
3716
3913
  };
3717
3914
  const formatClasses = FormatClass[props.node.format || ""] || "";
3718
- return /* @__PURE__ */ jsxs31(Fragment8, { children: [
3719
- hlsSources.length > 0 && /* @__PURE__ */ jsx56(Fragment8, { children: /* @__PURE__ */ jsx56(
3915
+ return /* @__PURE__ */ jsxs32(Fragment8, { children: [
3916
+ hlsSources.length > 0 && /* @__PURE__ */ jsx57(Fragment8, { children: /* @__PURE__ */ jsx57(
3720
3917
  HlsPlayer2,
3721
3918
  {
3722
3919
  sources: hlsSources,
@@ -3730,14 +3927,14 @@ var ImageGalleryNode = (props) => {
3730
3927
  session: props.session
3731
3928
  }
3732
3929
  ) }),
3733
- staticFallback && /* @__PURE__ */ jsx56(Fragment8, { children: /* @__PURE__ */ jsxs31("picture", { children: [
3930
+ staticFallback && /* @__PURE__ */ jsx57(Fragment8, { children: /* @__PURE__ */ jsxs32("picture", { children: [
3734
3931
  DEVICE_ORDER.map((deviceKey) => {
3735
3932
  const match = staticSources.find((img) => img.device === deviceKey);
3736
3933
  if (!match) return null;
3737
3934
  const srcUrl = resolveImageUrl(match.imageUrl);
3738
3935
  if (!srcUrl) return null;
3739
3936
  const mediaQuery = deviceToMediaQuery(match.device);
3740
- return /* @__PURE__ */ jsx56(
3937
+ return /* @__PURE__ */ jsx57(
3741
3938
  "source",
3742
3939
  {
3743
3940
  media: mediaQuery,
@@ -3761,7 +3958,7 @@ var ImageGalleryNode = (props) => {
3761
3958
  if (img.borderRadius) styles.borderRadius = img.borderRadius;
3762
3959
  return (
3763
3960
  // eslint-disable-next-line @next/next/no-img-element
3764
- /* @__PURE__ */ jsx56(
3961
+ /* @__PURE__ */ jsx57(
3765
3962
  "img",
3766
3963
  {
3767
3964
  loading: "lazy",
@@ -3782,7 +3979,7 @@ var ImageGalleryNode_default = ImageGalleryNode;
3782
3979
 
3783
3980
  // src/components/pageRenderingEngine/nodes/DivContainer.tsx
3784
3981
  import Link2 from "next/link";
3785
- import { jsx as jsx57, jsxs as jsxs32 } from "react/jsx-runtime";
3982
+ import { jsx as jsx58, jsxs as jsxs33 } from "react/jsx-runtime";
3786
3983
  function toCamelCase(str) {
3787
3984
  return str.replace(/-([a-z])/g, (_, letter) => letter.toUpperCase());
3788
3985
  }
@@ -3987,7 +4184,7 @@ var DivContainer = async (props) => {
3987
4184
  response = await serviceClient.get(endpoint);
3988
4185
  result = response?.result;
3989
4186
  if (dataBindingProperties.showNoResultsMessage && (result === void 0 || result.length == 0)) {
3990
- return /* @__PURE__ */ jsx57(NoDataFound_default, {});
4187
+ return /* @__PURE__ */ jsx58(NoDataFound_default, {});
3991
4188
  }
3992
4189
  if (dataBindingProperties.childCollectionName && props.dataitem) {
3993
4190
  childCollectionData = getNestedValue2(props.dataitem, dataBindingProperties.childCollectionName);
@@ -4004,7 +4201,7 @@ var DivContainer = async (props) => {
4004
4201
  }
4005
4202
  const SelectedNode = NodeTypes2[node.type];
4006
4203
  if (!SelectedNode) return null;
4007
- return /* @__PURE__ */ jsx57(React40.Fragment, { children: /* @__PURE__ */ jsx57(
4204
+ return /* @__PURE__ */ jsx58(React41.Fragment, { children: /* @__PURE__ */ jsx58(
4008
4205
  SelectedNode,
4009
4206
  {
4010
4207
  node,
@@ -4106,9 +4303,9 @@ var DivContainer = async (props) => {
4106
4303
  props.node.autoFormat && "auto-format",
4107
4304
  props.node.bgClass
4108
4305
  ].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(
4306
+ return /* @__PURE__ */ jsxs33(React41.Fragment, { children: [
4307
+ /* @__PURE__ */ jsx58("style", { dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS } }),
4308
+ /* @__PURE__ */ jsx58(React41.Fragment, { children: /* @__PURE__ */ jsx58(
4112
4309
  Wrapper,
4113
4310
  {
4114
4311
  id: guid,
@@ -4117,18 +4314,18 @@ var DivContainer = async (props) => {
4117
4314
  ...wrapperProps,
4118
4315
  children: dataToRender.map(
4119
4316
  (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)
4317
+ (child, i) => /* @__PURE__ */ jsx58(React41.Fragment, { children: child }, i)
4121
4318
  ) : renderChildren(props.node.children, props, item, idx)
4122
4319
  )
4123
4320
  }
4124
4321
  ) }),
4125
- dataBindingProperties && props.node.dataBinding.enablePagination && /* @__PURE__ */ jsx57("div", { children: /* @__PURE__ */ jsx57(Pagination_default, { path: props.path, query: props.query, dataset: response }) })
4322
+ dataBindingProperties && props.node.dataBinding.enablePagination && /* @__PURE__ */ jsx58("div", { children: /* @__PURE__ */ jsx58(Pagination_default, { path: props.path, query: props.query, dataset: response }) })
4126
4323
  ] });
4127
4324
  };
4128
4325
  var DivContainer_default = DivContainer;
4129
4326
 
4130
4327
  // src/components/pageRenderingEngine/PageBodyRenderer.tsx
4131
- import { jsx as jsx58 } from "react/jsx-runtime";
4328
+ import { jsx as jsx59 } from "react/jsx-runtime";
4132
4329
  var NodeTypes = {
4133
4330
  ["paragraph"]: ParagraphNode_default,
4134
4331
  ["heading"]: HeadingNode_default,
@@ -4156,11 +4353,11 @@ var PageBodyRenderer = (props) => {
4156
4353
  if (pageBodyTree && pageBodyTree.root) {
4157
4354
  rootNode = pageBodyTree.root;
4158
4355
  }
4159
- return /* @__PURE__ */ jsx58(React41.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
4356
+ return /* @__PURE__ */ jsx59(React42.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
4160
4357
  {
4161
4358
  }
4162
4359
  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(
4360
+ return /* @__PURE__ */ jsx59(React42.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx59(React42.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ jsx59(React42.Fragment, { children: /* @__PURE__ */ jsx59(
4164
4361
  SelectedNode,
4165
4362
  {
4166
4363
  node,
@@ -4176,7 +4373,7 @@ var PageBodyRenderer = (props) => {
4176
4373
  device: props.device,
4177
4374
  widgetRenderer: props.widgetRenderer
4178
4375
  }
4179
- ) }) : /* @__PURE__ */ jsx58(React41.Fragment, { children: /* @__PURE__ */ jsx58(
4376
+ ) }) : /* @__PURE__ */ jsx59(React42.Fragment, { children: /* @__PURE__ */ jsx59(
4180
4377
  SelectedNode,
4181
4378
  {
4182
4379
  node,
@@ -4198,7 +4395,7 @@ var PageBodyRenderer_default = PageBodyRenderer;
4198
4395
 
4199
4396
  // src/components/Toast.tsx
4200
4397
  import { useState as useState7 } from "react";
4201
- import { Fragment as Fragment9, jsx as jsx59, jsxs as jsxs33 } from "react/jsx-runtime";
4398
+ import { Fragment as Fragment9, jsx as jsx60, jsxs as jsxs34 } from "react/jsx-runtime";
4202
4399
  var Toast = () => {
4203
4400
  const [showToast, setShowToast] = useState7(false);
4204
4401
  const [message, setMessage] = useState7("");
@@ -4241,8 +4438,8 @@ var Toast = () => {
4241
4438
  const closeToast = () => {
4242
4439
  setShowToast(false);
4243
4440
  };
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(
4441
+ 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: [
4442
+ /* @__PURE__ */ jsx60(
4246
4443
  "span",
4247
4444
  {
4248
4445
  className: "font-medium text-inherit text-sm",
@@ -4250,7 +4447,7 @@ var Toast = () => {
4250
4447
  children: message
4251
4448
  }
4252
4449
  ),
4253
- /* @__PURE__ */ jsx59("button", { className: "absolute right-2 top-2 ml-2 focus:outline-none", onClick: closeToast, children: /* @__PURE__ */ jsx59(
4450
+ /* @__PURE__ */ jsx60("button", { className: "absolute right-2 top-2 ml-2 focus:outline-none", onClick: closeToast, children: /* @__PURE__ */ jsx60(
4254
4451
  "svg",
4255
4452
  {
4256
4453
  xmlns: "http://www.w3.org/2000/svg",
@@ -4258,7 +4455,7 @@ var Toast = () => {
4258
4455
  fill: "none",
4259
4456
  viewBox: "0 0 24 24",
4260
4457
  stroke: "currentColor",
4261
- children: /* @__PURE__ */ jsx59("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M6 18L18 6M6 6l12 12" })
4458
+ children: /* @__PURE__ */ jsx60("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M6 18L18 6M6 6l12 12" })
4262
4459
  }
4263
4460
  ) })
4264
4461
  ] }) }) });
@@ -4268,7 +4465,7 @@ var Toast_default = Toast;
4268
4465
  // src/components/NavigationTabsV2.tsx
4269
4466
  import Link3 from "next/link";
4270
4467
  import { usePathname } from "next/navigation";
4271
- import { jsx as jsx60 } from "react/jsx-runtime";
4468
+ import { jsx as jsx61 } from "react/jsx-runtime";
4272
4469
  function resolveRoutePlaceholders(route, params) {
4273
4470
  return route.replace(/\{([^}]+)\}/g, (match, key) => {
4274
4471
  const value = params[key];
@@ -4293,8 +4490,8 @@ var NavigationTabsV2 = ({ tabs, params = {} }) => {
4293
4490
  isActive: tab.isActive
4294
4491
  })) || [];
4295
4492
  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(
4493
+ return /* @__PURE__ */ jsx61("div", { className: "flex border-b bg-white rounded-t mb-3", children: mappedTabs.map(({ tabTitle, landingPageUrl, isActive }) => {
4494
+ return /* @__PURE__ */ jsx61(Link3, { href: landingPageUrl, className: "-mb-px", children: /* @__PURE__ */ jsx61(
4298
4495
  "div",
4299
4496
  {
4300
4497
  className: `text-sm font-medium border-b-2 px-6 py-2 transition
@@ -4307,51 +4504,51 @@ var NavigationTabsV2 = ({ tabs, params = {} }) => {
4307
4504
  var NavigationTabsV2_default = NavigationTabsV2;
4308
4505
 
4309
4506
  // src/components/dataForm/DataList.tsx
4310
- import React45, { useEffect as useEffect8, useState as useState8, useCallback as useCallback3, useReducer as useReducer2 } from "react";
4507
+ import React46, { useEffect as useEffect9, useState as useState8, useCallback as useCallback3, useReducer as useReducer2 } from "react";
4311
4508
  import { useRouter } from "next/navigation";
4312
4509
 
4313
4510
  // src/components/dataForm/NoContentView.tsx
4314
- import React43 from "react";
4315
- import { jsx as jsx61 } from "react/jsx-runtime";
4511
+ import React44 from "react";
4512
+ import { jsx as jsx62 } from "react/jsx-runtime";
4316
4513
  var NoContentView = (props) => {
4317
- return /* @__PURE__ */ jsx61(React43.Fragment, { children: props.isDataFound === false && props.children });
4514
+ return /* @__PURE__ */ jsx62(React44.Fragment, { children: props.isDataFound === false && props.children });
4318
4515
  };
4319
4516
  var NoContentView_default = NoContentView;
4320
4517
 
4321
4518
  // src/components/dataForm/ContentView.tsx
4322
- import React44 from "react";
4323
- import { jsx as jsx62, jsxs as jsxs34 } from "react/jsx-runtime";
4519
+ import React45 from "react";
4520
+ import { jsx as jsx63, jsxs as jsxs35 } from "react/jsx-runtime";
4324
4521
  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" })
4522
+ return /* @__PURE__ */ jsxs35(React45.Fragment, { children: [
4523
+ props.isDataFound == null && /* @__PURE__ */ jsx63("div", { className: "", children: /* @__PURE__ */ jsxs35("div", { className: "bg-gray-200 rounded-md p-4 animate-pulse", children: [
4524
+ /* @__PURE__ */ jsxs35("div", { className: "flex items-center mb-4", children: [
4525
+ /* @__PURE__ */ jsx63("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
4526
+ /* @__PURE__ */ jsxs35("div", { className: "ml-2", children: [
4527
+ /* @__PURE__ */ jsx63("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
4528
+ /* @__PURE__ */ jsx63("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
4332
4529
  ] })
4333
4530
  ] }),
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" })
4531
+ /* @__PURE__ */ jsxs35("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
4532
+ /* @__PURE__ */ jsxs35("div", { className: "animate-pulse", children: [
4533
+ /* @__PURE__ */ jsx63("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
4534
+ /* @__PURE__ */ jsx63("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
4535
+ /* @__PURE__ */ jsx63("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
4536
+ /* @__PURE__ */ jsx63("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
4537
+ /* @__PURE__ */ jsx63("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
4341
4538
  ] }),
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" })
4539
+ /* @__PURE__ */ jsxs35("div", { className: "animate-pulse", children: [
4540
+ /* @__PURE__ */ jsx63("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
4541
+ /* @__PURE__ */ jsx63("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
4542
+ /* @__PURE__ */ jsx63("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
4543
+ /* @__PURE__ */ jsx63("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
4544
+ /* @__PURE__ */ jsx63("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
4348
4545
  ] }),
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" })
4546
+ /* @__PURE__ */ jsxs35("div", { className: "animate-pulse", children: [
4547
+ /* @__PURE__ */ jsx63("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
4548
+ /* @__PURE__ */ jsx63("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
4549
+ /* @__PURE__ */ jsx63("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
4550
+ /* @__PURE__ */ jsx63("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
4551
+ /* @__PURE__ */ jsx63("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
4355
4552
  ] })
4356
4553
  ] })
4357
4554
  ] }) }),
@@ -4361,7 +4558,7 @@ var ContentView = (props) => {
4361
4558
  var ContentView_default = ContentView;
4362
4559
 
4363
4560
  // src/components/dataForm/DataList.tsx
4364
- import { Fragment as Fragment10, jsx as jsx63, jsxs as jsxs35 } from "react/jsx-runtime";
4561
+ import { Fragment as Fragment10, jsx as jsx64, jsxs as jsxs36 } from "react/jsx-runtime";
4365
4562
  var DataList = (props) => {
4366
4563
  console.log(props.dataset, "datasetssssss");
4367
4564
  const router = useRouter();
@@ -4371,7 +4568,7 @@ var DataList = (props) => {
4371
4568
  let pages = 0;
4372
4569
  console.log(props.addLinkText);
4373
4570
  const [isDataFound, setIsDataFound] = useState8(null);
4374
- useEffect8(() => {
4571
+ useEffect9(() => {
4375
4572
  if (props?.dataset) {
4376
4573
  if (props?.dataset.result && props.dataset.result.length > 0) {
4377
4574
  setIsDataFound(true);
@@ -4384,7 +4581,7 @@ var DataList = (props) => {
4384
4581
  if (path.includes(".")) {
4385
4582
  return path.split(".").reduce((prev, curr) => prev ? prev[curr] : null, obj);
4386
4583
  } else if (Array.isArray(obj[path])) {
4387
- return obj[path].map((item, index) => /* @__PURE__ */ jsx63("div", { children: item }, index));
4584
+ return obj[path].map((item, index) => /* @__PURE__ */ jsx64("div", { children: item }, index));
4388
4585
  } else {
4389
4586
  return obj[path];
4390
4587
  }
@@ -4440,30 +4637,30 @@ var DataList = (props) => {
4440
4637
  const renderPageNumbers = () => {
4441
4638
  if (pages <= 10) {
4442
4639
  return Array.from({ length: pages }, (_, index) => index + 1).map(
4443
- (page) => /* @__PURE__ */ jsx63(React45.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx63(
4640
+ (page) => /* @__PURE__ */ jsx64(React46.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx64(
4444
4641
  Hyperlink,
4445
4642
  {
4446
4643
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
4447
4644
  href: builder.getNewPageUrl(page),
4448
4645
  children: page
4449
4646
  }
4450
- ) : /* @__PURE__ */ jsx63("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary text-white", children: page }) }, page)
4647
+ ) : /* @__PURE__ */ jsx64("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary text-white", children: page }) }, page)
4451
4648
  );
4452
4649
  } else {
4453
4650
  const showFirstPages = activePageNumber <= 5;
4454
4651
  const showLastPages = activePageNumber > pages - 5;
4455
4652
  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(
4653
+ return /* @__PURE__ */ jsxs36(Fragment10, { children: [
4654
+ Array.from({ length: 8 }, (_, index) => index + 1).map((page) => /* @__PURE__ */ jsx64(React46.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx64(
4458
4655
  Hyperlink,
4459
4656
  {
4460
4657
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
4461
4658
  href: builder.getNewPageUrl(page),
4462
4659
  children: page
4463
4660
  }
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(
4661
+ ) : /* @__PURE__ */ jsx64("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary text-white", children: page }) }, page)),
4662
+ /* @__PURE__ */ jsx64("span", { className: "px-2 py-1", children: "..." }),
4663
+ /* @__PURE__ */ jsx64(
4467
4664
  Hyperlink,
4468
4665
  {
4469
4666
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -4471,7 +4668,7 @@ var DataList = (props) => {
4471
4668
  children: pages - 1
4472
4669
  }
4473
4670
  ),
4474
- /* @__PURE__ */ jsx63(
4671
+ /* @__PURE__ */ jsx64(
4475
4672
  Hyperlink,
4476
4673
  {
4477
4674
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -4479,7 +4676,7 @@ var DataList = (props) => {
4479
4676
  children: pages
4480
4677
  }
4481
4678
  ),
4482
- /* @__PURE__ */ jsx63("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs35(
4679
+ /* @__PURE__ */ jsx64("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs36(
4483
4680
  "select",
4484
4681
  {
4485
4682
  className: " py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
@@ -4491,18 +4688,18 @@ var DataList = (props) => {
4491
4688
  }
4492
4689
  },
4493
4690
  children: [
4494
- /* @__PURE__ */ jsx63("option", { className: "", value: "", children: "Jump to" }),
4691
+ /* @__PURE__ */ jsx64("option", { className: "", value: "", children: "Jump to" }),
4495
4692
  Array.from(
4496
4693
  { length: Math.max(0, pages - 10) },
4497
4694
  (_, index) => index + 9
4498
- ).map((page) => /* @__PURE__ */ jsx63("option", { value: page, children: page }, page))
4695
+ ).map((page) => /* @__PURE__ */ jsx64("option", { value: page, children: page }, page))
4499
4696
  ]
4500
4697
  }
4501
4698
  ) })
4502
4699
  ] });
4503
4700
  } else if (showLastPages) {
4504
- return /* @__PURE__ */ jsxs35(Fragment10, { children: [
4505
- /* @__PURE__ */ jsx63(
4701
+ return /* @__PURE__ */ jsxs36(Fragment10, { children: [
4702
+ /* @__PURE__ */ jsx64(
4506
4703
  Hyperlink,
4507
4704
  {
4508
4705
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -4510,7 +4707,7 @@ var DataList = (props) => {
4510
4707
  children: "1"
4511
4708
  }
4512
4709
  ),
4513
- /* @__PURE__ */ jsx63(
4710
+ /* @__PURE__ */ jsx64(
4514
4711
  Hyperlink,
4515
4712
  {
4516
4713
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -4518,21 +4715,21 @@ var DataList = (props) => {
4518
4715
  children: "2"
4519
4716
  }
4520
4717
  ),
4521
- /* @__PURE__ */ jsx63("span", { className: "px-2 py-1", children: "..." }),
4718
+ /* @__PURE__ */ jsx64("span", { className: "px-2 py-1", children: "..." }),
4522
4719
  Array.from({ length: 8 }, (_, index) => pages - 7 + index).map(
4523
- (page) => /* @__PURE__ */ jsx63(React45.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx63(
4720
+ (page) => /* @__PURE__ */ jsx64(React46.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx64(
4524
4721
  Hyperlink,
4525
4722
  {
4526
4723
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
4527
4724
  href: builder.getNewPageUrl(page),
4528
4725
  children: page
4529
4726
  }
4530
- ) : /* @__PURE__ */ jsx63("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary text-white", children: page }) }, page)
4727
+ ) : /* @__PURE__ */ jsx64("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary text-white", children: page }) }, page)
4531
4728
  )
4532
4729
  ] });
4533
4730
  } else {
4534
- return /* @__PURE__ */ jsxs35(Fragment10, { children: [
4535
- /* @__PURE__ */ jsx63(
4731
+ return /* @__PURE__ */ jsxs36(Fragment10, { children: [
4732
+ /* @__PURE__ */ jsx64(
4536
4733
  Hyperlink,
4537
4734
  {
4538
4735
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -4540,7 +4737,7 @@ var DataList = (props) => {
4540
4737
  children: "1"
4541
4738
  }
4542
4739
  ),
4543
- /* @__PURE__ */ jsx63(
4740
+ /* @__PURE__ */ jsx64(
4544
4741
  Hyperlink,
4545
4742
  {
4546
4743
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -4548,20 +4745,20 @@ var DataList = (props) => {
4548
4745
  children: "2"
4549
4746
  }
4550
4747
  ),
4551
- /* @__PURE__ */ jsx63("span", { className: "px-2 py-1", children: "..." }),
4748
+ /* @__PURE__ */ jsx64("span", { className: "px-2 py-1", children: "..." }),
4552
4749
  Array.from(
4553
4750
  { length: 5 },
4554
4751
  (_, index) => activePageNumber - 2 + index
4555
- ).map((page) => /* @__PURE__ */ jsx63(React45.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx63(
4752
+ ).map((page) => /* @__PURE__ */ jsx64(React46.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx64(
4556
4753
  Hyperlink,
4557
4754
  {
4558
4755
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
4559
4756
  href: builder.getNewPageUrl(page),
4560
4757
  children: page
4561
4758
  }
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(
4759
+ ) : /* @__PURE__ */ jsx64("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary text-white", children: page }) }, page)),
4760
+ /* @__PURE__ */ jsx64("span", { className: "px-2 py-1", children: "..." }),
4761
+ /* @__PURE__ */ jsx64(
4565
4762
  Hyperlink,
4566
4763
  {
4567
4764
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -4569,7 +4766,7 @@ var DataList = (props) => {
4569
4766
  children: pages - 1
4570
4767
  }
4571
4768
  ),
4572
- /* @__PURE__ */ jsx63(
4769
+ /* @__PURE__ */ jsx64(
4573
4770
  Hyperlink,
4574
4771
  {
4575
4772
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -4577,7 +4774,7 @@ var DataList = (props) => {
4577
4774
  children: pages
4578
4775
  }
4579
4776
  ),
4580
- /* @__PURE__ */ jsx63("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs35(
4777
+ /* @__PURE__ */ jsx64("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs36(
4581
4778
  "select",
4582
4779
  {
4583
4780
  className: "px-2 py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
@@ -4589,8 +4786,8 @@ var DataList = (props) => {
4589
4786
  }
4590
4787
  },
4591
4788
  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))
4789
+ /* @__PURE__ */ jsx64("option", { value: "", children: "Jump to" }),
4790
+ 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
4791
  ]
4595
4792
  }
4596
4793
  ) })
@@ -4598,16 +4795,16 @@ var DataList = (props) => {
4598
4795
  }
4599
4796
  }
4600
4797
  };
4601
- return /* @__PURE__ */ jsxs35(React45.Fragment, { children: [
4602
- /* @__PURE__ */ jsxs35(ContentView_default, { isDataFound, children: [
4603
- (props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ jsxs35(
4798
+ return /* @__PURE__ */ jsxs36(React46.Fragment, { children: [
4799
+ /* @__PURE__ */ jsxs36(ContentView_default, { isDataFound, children: [
4800
+ (props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ jsxs36(
4604
4801
  "div",
4605
4802
  {
4606
4803
  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
4804
  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(
4805
+ 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", {}),
4806
+ /* @__PURE__ */ jsxs36("div", { className: "flex items-center gap-3", children: [
4807
+ props.filters && props.filters.map((filter) => /* @__PURE__ */ jsx64(
4611
4808
  InputControl_default,
4612
4809
  {
4613
4810
  name: filter.name,
@@ -4622,15 +4819,15 @@ var DataList = (props) => {
4622
4819
  },
4623
4820
  filter.name
4624
4821
  )),
4625
- props.addLinkHref && /* @__PURE__ */ jsxs35(
4822
+ props.addLinkHref && /* @__PURE__ */ jsxs36(
4626
4823
  Hyperlink,
4627
4824
  {
4628
4825
  className: "gap-1",
4629
4826
  linkType: "Primary" /* Solid */,
4630
4827
  href: props.addLinkHref,
4631
4828
  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" })
4829
+ /* @__PURE__ */ jsx64(Icon_default, { name: "plus", className: "w-4 h-4" }),
4830
+ /* @__PURE__ */ jsx64("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
4634
4831
  ]
4635
4832
  }
4636
4833
  )
@@ -4638,8 +4835,8 @@ var DataList = (props) => {
4638
4835
  ]
4639
4836
  }
4640
4837
  ),
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) => {
4838
+ /* @__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: [
4839
+ /* @__PURE__ */ jsx64("thead", { className: "bg-gray-50 sticky top-0", children: /* @__PURE__ */ jsx64("tr", { children: props?.columns?.map((column) => {
4643
4840
  let url = builder.getNewOrderByUrl(column.name);
4644
4841
  let icon = "chevronUpDown";
4645
4842
  if (orderBy.includes(`${column.name} desc`)) {
@@ -4649,36 +4846,36 @@ var DataList = (props) => {
4649
4846
  icon = "chevronUp";
4650
4847
  url = builder.getNewOrderByUrl(column.name + " desc");
4651
4848
  }
4652
- return /* @__PURE__ */ jsx63(
4849
+ return /* @__PURE__ */ jsx64(
4653
4850
  "th",
4654
4851
  {
4655
4852
  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 })
4853
+ children: /* @__PURE__ */ jsx64(Hyperlink, { href: url, className: "!text-neutral-contrast ", children: /* @__PURE__ */ jsxs36("span", { className: "flex items-center space-x-1", children: [
4854
+ /* @__PURE__ */ jsx64("span", { className: "text-black", children: column.label }),
4855
+ column.enableSorting && /* @__PURE__ */ jsx64(Icon_default, { className: "w-4 h-4", name: icon })
4659
4856
  ] }) })
4660
4857
  },
4661
4858
  column.name
4662
4859
  );
4663
4860
  }) }) }),
4664
- /* @__PURE__ */ jsx63("tbody", { className: "divide-y divide-gray-200 ", children: props.dataset?.result?.map((dataitem, index) => {
4861
+ /* @__PURE__ */ jsx64("tbody", { className: "divide-y divide-gray-200 ", children: props.dataset?.result?.map((dataitem, index) => {
4665
4862
  let validityClass = "";
4666
4863
  console.log("dataitem", dataitem);
4667
4864
  if (props.recordValidityColumnName && getNestedProperty2(dataitem, props.recordValidityColumnName) == false) {
4668
4865
  validityClass = "bg-alert-200";
4669
4866
  }
4670
- return /* @__PURE__ */ jsx63("tr", { className: validityClass, children: props?.columns?.map((column, colindex) => {
4867
+ return /* @__PURE__ */ jsx64("tr", { className: validityClass, children: props?.columns?.map((column, colindex) => {
4671
4868
  console.log("column", column);
4672
- return /* @__PURE__ */ jsx63(React45.Fragment, { children: /* @__PURE__ */ jsx63(
4869
+ return /* @__PURE__ */ jsx64(React46.Fragment, { children: /* @__PURE__ */ jsx64(
4673
4870
  "td",
4674
4871
  {
4675
4872
  className: "px-6 py-2 whitespace-normal " + (column.controlType == ViewControlTypes_default.money ? "" : ""),
4676
- children: column.addhref === true ? /* @__PURE__ */ jsx63(
4873
+ children: column.addhref === true ? /* @__PURE__ */ jsx64(
4677
4874
  Hyperlink,
4678
4875
  {
4679
4876
  className: "",
4680
4877
  href: `https://${dataitem[column.name]}`,
4681
- children: /* @__PURE__ */ jsx63(
4878
+ children: /* @__PURE__ */ jsx64(
4682
4879
  ViewControl_default,
4683
4880
  {
4684
4881
  controlType: column.controlType,
@@ -4691,11 +4888,11 @@ var DataList = (props) => {
4691
4888
  }
4692
4889
  )
4693
4890
  }
4694
- ) : column.showAsLink ? /* @__PURE__ */ jsx63(
4891
+ ) : column.showAsLink ? /* @__PURE__ */ jsx64(
4695
4892
  Hyperlink,
4696
4893
  {
4697
4894
  href: props.path + dataitem[props.columns[0].name] + "/" + (dataitem.linkUrlSegment ?? column.linkUrlSegment),
4698
- children: /* @__PURE__ */ jsx63(
4895
+ children: /* @__PURE__ */ jsx64(
4699
4896
  ViewControl_default,
4700
4897
  {
4701
4898
  controlType: column.controlType,
@@ -4705,7 +4902,7 @@ var DataList = (props) => {
4705
4902
  }
4706
4903
  )
4707
4904
  }
4708
- ) : /* @__PURE__ */ jsx63(
4905
+ ) : /* @__PURE__ */ jsx64(
4709
4906
  ViewControl_default,
4710
4907
  {
4711
4908
  controlType: column.controlType,
@@ -4719,10 +4916,10 @@ var DataList = (props) => {
4719
4916
  }) }, index);
4720
4917
  }) })
4721
4918
  ] }) }),
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(
4919
+ /* @__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: [
4920
+ /* @__PURE__ */ jsx64("div", { className: "text-gray-700", children: label }),
4921
+ /* @__PURE__ */ jsxs36("div", { className: "flex space-x-2 items-center", children: [
4922
+ activePageNumber > 1 && /* @__PURE__ */ jsx64(
4726
4923
  Hyperlink,
4727
4924
  {
4728
4925
  className: "px-3 py-1 rounded-l-md border border-gray-300 bg-white text-gray-500 hover:bg-gray-200",
@@ -4730,9 +4927,9 @@ var DataList = (props) => {
4730
4927
  children: "Prev"
4731
4928
  }
4732
4929
  ),
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" }),
4930
+ 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
4931
  renderPageNumbers(),
4735
- activePageNumber < pages && /* @__PURE__ */ jsx63(
4932
+ activePageNumber < pages && /* @__PURE__ */ jsx64(
4736
4933
  Hyperlink,
4737
4934
  {
4738
4935
  className: "px-3 py-1 rounded-r-md border border-gray-300 bg-white text-gray-500 hover:bg-gray-200",
@@ -4740,19 +4937,19 @@ var DataList = (props) => {
4740
4937
  children: "Next"
4741
4938
  }
4742
4939
  ),
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" })
4940
+ 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
4941
  ] })
4745
4942
  ] }) })
4746
4943
  ] }),
4747
- /* @__PURE__ */ jsxs35(NoContentView_default, { isDataFound, children: [
4748
- (props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ jsxs35(
4944
+ /* @__PURE__ */ jsxs36(NoContentView_default, { isDataFound, children: [
4945
+ (props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ jsxs36(
4749
4946
  "div",
4750
4947
  {
4751
4948
  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
4949
  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(
4950
+ 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", {}),
4951
+ /* @__PURE__ */ jsxs36("div", { className: "flex items-center gap-3", children: [
4952
+ props.filters && props.filters.map((filter) => /* @__PURE__ */ jsx64(
4756
4953
  InputControl_default,
4757
4954
  {
4758
4955
  name: filter.name,
@@ -4767,15 +4964,15 @@ var DataList = (props) => {
4767
4964
  },
4768
4965
  filter.name
4769
4966
  )),
4770
- props.addLinkHref && /* @__PURE__ */ jsxs35(
4967
+ props.addLinkHref && /* @__PURE__ */ jsxs36(
4771
4968
  Hyperlink,
4772
4969
  {
4773
4970
  className: "gap-1",
4774
4971
  linkType: "Primary" /* Solid */,
4775
4972
  href: props.addLinkHref,
4776
4973
  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" })
4974
+ /* @__PURE__ */ jsx64(Icon_default, { name: "plus", className: "w-4 h-4" }),
4975
+ /* @__PURE__ */ jsx64("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
4779
4976
  ]
4780
4977
  }
4781
4978
  )
@@ -4783,8 +4980,8 @@ var DataList = (props) => {
4783
4980
  ]
4784
4981
  }
4785
4982
  ),
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) => {
4983
+ /* @__PURE__ */ jsxs36("div", { className: "flex-grow overflow-y-auto justify-end bg-white rounded shadow h-[75vh]", children: [
4984
+ /* @__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
4985
  let url = builder.getNewOrderByUrl(column.name);
4789
4986
  let icon = "chevronUpDown";
4790
4987
  if (orderBy.includes(`${column.name} desc`)) {
@@ -4794,19 +4991,19 @@ var DataList = (props) => {
4794
4991
  icon = "chevronUp";
4795
4992
  url = builder.getNewOrderByUrl(column.name + " desc");
4796
4993
  }
4797
- return /* @__PURE__ */ jsx63(
4994
+ return /* @__PURE__ */ jsx64(
4798
4995
  "th",
4799
4996
  {
4800
4997
  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 })
4998
+ children: /* @__PURE__ */ jsx64(Hyperlink, { href: url, className: "text-body-950", children: /* @__PURE__ */ jsxs36("span", { className: "flex items-center space-x-1", children: [
4999
+ /* @__PURE__ */ jsx64("span", { children: column.label }),
5000
+ column.enableSorting && /* @__PURE__ */ jsx64(Icon_default, { className: "w-4 h-4", name: icon })
4804
5001
  ] }) })
4805
5002
  },
4806
5003
  column.name
4807
5004
  );
4808
5005
  }) }) }) }) }),
4809
- /* @__PURE__ */ jsx63("div", { className: "w-full text-center bg-transparent pt-5", children: "There are no entries in the table at the moment." })
5006
+ /* @__PURE__ */ jsx64("div", { className: "w-full text-center bg-transparent pt-5", children: "There are no entries in the table at the moment." })
4810
5007
  ] })
4811
5008
  ] })
4812
5009
  ] });
@@ -4814,9 +5011,9 @@ var DataList = (props) => {
4814
5011
  var DataList_default = DataList;
4815
5012
 
4816
5013
  // src/components/dataForm/DataListRenderer.tsx
4817
- import React46, { useState as useState9, useEffect as useEffect9 } from "react";
5014
+ import React47, { useState as useState9, useEffect as useEffect10 } from "react";
4818
5015
  import { usePathname as usePathname2 } from "next/navigation";
4819
- import { jsx as jsx64, jsxs as jsxs36 } from "react/jsx-runtime";
5016
+ import { jsx as jsx65, jsxs as jsxs37 } from "react/jsx-runtime";
4820
5017
  var viewControlMap = {
4821
5018
  number: ViewControlTypes.number,
4822
5019
  lineText: ViewControlTypes.lineText,
@@ -4877,7 +5074,7 @@ var DataListRenderer = ({
4877
5074
  const [addLinkText, setAddLinkText] = useState9("");
4878
5075
  const [serviceRoute, setServiceRoute] = useState9("");
4879
5076
  const pathname = usePathname2();
4880
- useEffect9(() => {
5077
+ useEffect10(() => {
4881
5078
  if (!formDefinition) return;
4882
5079
  setColumns(mapApiToColumns(formDefinition));
4883
5080
  setFilters(mapApiToFilters(formDefinition));
@@ -4890,7 +5087,7 @@ var DataListRenderer = ({
4890
5087
  setAddLinkHref(resolvedAddLinkHref);
4891
5088
  setAddLinkText(formDefinition?.siteFormDataList?.addLinkText ?? "");
4892
5089
  }, [formDefinition, params]);
4893
- useEffect9(() => {
5090
+ useEffect10(() => {
4894
5091
  const fetchData = async () => {
4895
5092
  if (!serviceRoute) return;
4896
5093
  const resolvedRoute = resolveRoutePlaceholders2(serviceRoute, params);
@@ -4905,9 +5102,9 @@ var DataListRenderer = ({
4905
5102
  const [tabItem, setTabItem] = useState9();
4906
5103
  const activeTab = tabItem?.find((tab) => tab.isActive);
4907
5104
  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(
5105
+ return /* @__PURE__ */ jsxs37(React47.Fragment, { children: [
5106
+ widgetProps && /* @__PURE__ */ jsx65(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
5107
+ /* @__PURE__ */ jsx65(
4911
5108
  DataList_default,
4912
5109
  {
4913
5110
  addLinkHref,
@@ -4926,10 +5123,10 @@ var DataListRenderer = ({
4926
5123
  var DataListRenderer_default = DataListRenderer;
4927
5124
 
4928
5125
  // src/components/dataForm/DataForm.tsx
4929
- import React48, { useCallback as useCallback5, useEffect as useEffect10, useReducer as useReducer3, useRef as useRef4 } from "react";
5126
+ import React49, { useCallback as useCallback5, useEffect as useEffect11, useReducer as useReducer3, useRef as useRef4 } from "react";
4930
5127
 
4931
5128
  // src/components/dataForm/DataFormChildSection.tsx
4932
- import React47, { useCallback as useCallback4 } from "react";
5129
+ import React48, { useCallback as useCallback4 } from "react";
4933
5130
 
4934
5131
  // src/components/dataForm/StyleTypes.tsx
4935
5132
  var StyleTypes2 = /* @__PURE__ */ ((StyleTypes3) => {
@@ -4952,7 +5149,7 @@ var FORM_CHILD_ONE_TO_ONE_UPDATE = "FORM_CHILD_ONE_TO_ONE_UPDATE";
4952
5149
  var FORM_CHILD_ROW_ADD = "FORM_CHILD_ROW_ADD";
4953
5150
 
4954
5151
  // src/components/dataForm/DataFormChildSection.tsx
4955
- import { jsx as jsx65, jsxs as jsxs37 } from "react/jsx-runtime";
5152
+ import { jsx as jsx66, jsxs as jsxs38 } from "react/jsx-runtime";
4956
5153
  var DataFormChildSection = (props) => {
4957
5154
  const { section } = props;
4958
5155
  const isOneToOne = section.relationshipType === "one-to-one";
@@ -5020,14 +5217,14 @@ var DataFormChildSection = (props) => {
5020
5217
  childItemsToRender,
5021
5218
  allChildItems: childItems
5022
5219
  });
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: [
5220
+ return /* @__PURE__ */ jsx66(React48.Fragment, { children: /* @__PURE__ */ jsxs38("div", { className: "rounded border-neutral-200 border px-6 py-4 mb-2", children: [
5221
+ section.sectionTitle && /* @__PURE__ */ jsx66("div", { className: "mb-4 text-lg font-medium text-body-950", children: section.sectionTitle }),
5222
+ /* @__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: [
5223
+ /* @__PURE__ */ jsx66("div", { children: /* @__PURE__ */ jsxs38("table", { className: "w-full border-separate divide-y divide-gray-200", children: [
5224
+ (!isOneToOne || childItemsToRender.length > 0) && /* @__PURE__ */ jsx66("thead", { className: "", children: section.sectionRows.map((sectionRow, sectionRowIndex) => {
5225
+ return /* @__PURE__ */ jsxs38("tr", { className: "", children: [
5029
5226
  sectionRow.elements.map((field, index) => {
5030
- return /* @__PURE__ */ jsx65(
5227
+ return /* @__PURE__ */ jsx66(
5031
5228
  "th",
5032
5229
  {
5033
5230
  className: "py-3 font-normal text-left",
@@ -5036,21 +5233,21 @@ var DataFormChildSection = (props) => {
5036
5233
  field.name
5037
5234
  );
5038
5235
  }),
5039
- !section.readonly && !isOneToOne && /* @__PURE__ */ jsx65("th", { className: "py-3 font-normal text-left", children: "Actions" })
5236
+ !section.readonly && !isOneToOne && /* @__PURE__ */ jsx66("th", { className: "py-3 font-normal text-left", children: "Actions" })
5040
5237
  ] }, sectionRowIndex);
5041
5238
  }) }),
5042
- /* @__PURE__ */ jsx65("tbody", { className: "divide-y divide-gray-200", children: childItemsToRender.map((visibleItem, filteredIndex) => {
5239
+ /* @__PURE__ */ jsx66("tbody", { className: "divide-y divide-gray-200", children: childItemsToRender.map((visibleItem, filteredIndex) => {
5043
5240
  const { item, originalIndex } = visibleItem;
5044
5241
  const rowKey = originalIndex;
5045
- return /* @__PURE__ */ jsx65(React47.Fragment, { children: section.sectionRows.map(
5242
+ return /* @__PURE__ */ jsx66(React48.Fragment, { children: section.sectionRows.map(
5046
5243
  (sectionRow, sectionRowIndex) => {
5047
- return /* @__PURE__ */ jsxs37(
5244
+ return /* @__PURE__ */ jsxs38(
5048
5245
  "tr",
5049
5246
  {
5050
5247
  className: "",
5051
5248
  children: [
5052
5249
  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(
5250
+ return /* @__PURE__ */ jsx66("td", { children: /* @__PURE__ */ jsx66("div", { className: "flex-1", children: /* @__PURE__ */ jsx66("div", { className: "w-11/12", children: /* @__PURE__ */ jsx66(
5054
5251
  InputControl_default,
5055
5252
  {
5056
5253
  index: filteredIndex,
@@ -5070,7 +5267,7 @@ var DataFormChildSection = (props) => {
5070
5267
  }
5071
5268
  ) }) }) }, field.name);
5072
5269
  }),
5073
- !section.readonly && !isOneToOne && /* @__PURE__ */ jsx65("td", { children: /* @__PURE__ */ jsx65(
5270
+ !section.readonly && !isOneToOne && /* @__PURE__ */ jsx66("td", { children: /* @__PURE__ */ jsx66(
5074
5271
  ClientButton_default,
5075
5272
  {
5076
5273
  ButtonType: StyleTypes2.Hollow,
@@ -5079,7 +5276,7 @@ var DataFormChildSection = (props) => {
5079
5276
  },
5080
5277
  dataRole: "delete",
5081
5278
  tabIndex: -1,
5082
- children: /* @__PURE__ */ jsx65(
5279
+ children: /* @__PURE__ */ jsx66(
5083
5280
  Icon_default,
5084
5281
  {
5085
5282
  className: "w-4 h-4",
@@ -5096,7 +5293,7 @@ var DataFormChildSection = (props) => {
5096
5293
  ) }, rowKey);
5097
5294
  }) })
5098
5295
  ] }) }),
5099
- !section.readonly && !isOneToOne && /* @__PURE__ */ jsx65("div", { className: "ml-1", children: /* @__PURE__ */ jsx65(
5296
+ !section.readonly && !isOneToOne && /* @__PURE__ */ jsx66("div", { className: "ml-1", children: /* @__PURE__ */ jsx66(
5100
5297
  ClientButton_default,
5101
5298
  {
5102
5299
  ButtonType: "Link" /* Link */,
@@ -5111,7 +5308,7 @@ var DataFormChildSection = (props) => {
5111
5308
  var DataFormChildSection_default = DataFormChildSection;
5112
5309
 
5113
5310
  // src/components/dataForm/DataForm.tsx
5114
- import { jsx as jsx66, jsxs as jsxs38 } from "react/jsx-runtime";
5311
+ import { jsx as jsx67, jsxs as jsxs39 } from "react/jsx-runtime";
5115
5312
  var DataForm = (props) => {
5116
5313
  const formRef = useRef4(null);
5117
5314
  console.log(props.dataItem, "dssads");
@@ -5208,7 +5405,7 @@ var DataForm = (props) => {
5208
5405
  console.error("Error fetching data:", error);
5209
5406
  }
5210
5407
  }, [formState.lastPropertyChanged, formState.inputValues]);
5211
- useEffect10(() => {
5408
+ useEffect11(() => {
5212
5409
  fetchData();
5213
5410
  }, [formState.inputValues, formState.lastPropertyChanged]);
5214
5411
  function replacePlaceholders(template, context, params) {
@@ -5303,7 +5500,7 @@ var DataForm = (props) => {
5303
5500
  return { isSuccessful: true };
5304
5501
  }
5305
5502
  }, [formState, props]);
5306
- useEffect10(() => {
5503
+ useEffect11(() => {
5307
5504
  if (props.dataItem) {
5308
5505
  dispatch({
5309
5506
  type: FORM_INITIAL_UPDATE,
@@ -5331,19 +5528,19 @@ var DataForm = (props) => {
5331
5528
  return false;
5332
5529
  }
5333
5530
  }
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(
5531
+ return /* @__PURE__ */ jsx67(React49.Fragment, { children: /* @__PURE__ */ jsxs39("div", { className: "flex-grow flex flex-col", children: [
5532
+ 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
5533
  "div",
5337
5534
  {
5338
5535
  className: "inline-flex items-center gap-2 cursor-pointer",
5339
5536
  onClick: () => window.history.back(),
5340
5537
  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 })
5538
+ /* @__PURE__ */ jsx67(Icon_default, { name: "chevronLeft", className: "w-4 h-4 text-primary-800" }),
5539
+ /* @__PURE__ */ jsx67("h2", { className: "text-lg font-semibold text-primary-800", children: props.title })
5343
5540
  ]
5344
5541
  }
5345
5542
  ) }),
5346
- /* @__PURE__ */ jsx66(
5543
+ /* @__PURE__ */ jsx67(
5347
5544
  "form",
5348
5545
  {
5349
5546
  className: "group space-y-6 pb-6 overflow-y-auto",
@@ -5364,8 +5561,8 @@ var DataForm = (props) => {
5364
5561
  }
5365
5562
  }
5366
5563
  },
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: [
5564
+ children: /* @__PURE__ */ jsx67("div", { className: "flex flex-col gap-6", children: props.sections?.map((section, sectionIndex) => {
5565
+ 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
5566
  section.sectionRows?.map(
5370
5567
  (sectionRow, sectionRowIndex) => {
5371
5568
  const elementsCount = sectionRow.elements.length;
@@ -5376,46 +5573,49 @@ var DataForm = (props) => {
5376
5573
  sectionRow.visible
5377
5574
  );
5378
5575
  }
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(
5576
+ 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) => {
5577
+ return /* @__PURE__ */ jsxs39(
5381
5578
  "div",
5382
5579
  {
5383
5580
  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
- )
5581
+ children: [
5582
+ /* @__PURE__ */ jsx67("div", { children: field.controlType }),
5583
+ /* @__PURE__ */ jsx67(
5584
+ InputControl_default,
5585
+ {
5586
+ name: field.name,
5587
+ controlType: field.controlType,
5588
+ value: getNestedProperty2(
5589
+ formState.inputValues,
5590
+ field.name
5591
+ ),
5592
+ callback: handleInputChange,
5593
+ dataSourceDependsOn: field.dataSourceDependsOn,
5594
+ dependentValue: field.dataSourceDependsOn ? formState.inputValues[field.dataSourceDependsOn] : "",
5595
+ dataSource: field.dataSource,
5596
+ dataset: field.dataset,
5597
+ dataKeyFieldName: field.dataKeyFieldName,
5598
+ dataTextFieldName: field.dataTextFieldName,
5599
+ attributes: field.attributes,
5600
+ serviceClient: props.serviceClient,
5601
+ assetsUploadPath: props.dataItem ? props.dataItem["assetsUploadPath"] : null,
5602
+ entityType: field.entityType,
5603
+ uploadInSharedLocation: field.uploadInSharedLocation
5604
+ }
5605
+ )
5606
+ ]
5407
5607
  },
5408
5608
  field.name
5409
5609
  );
5410
5610
  }) }) }, sectionRowIndex);
5411
5611
  }
5412
5612
  ),
5413
- /* @__PURE__ */ jsx66("div", { children: section.childSections?.map(
5613
+ /* @__PURE__ */ jsx67("div", { children: section.childSections?.map(
5414
5614
  (childSection, childSectionIndex) => {
5415
- return /* @__PURE__ */ jsx66("div", { children: childSection.name && evalutateCondition(
5615
+ return /* @__PURE__ */ jsx67("div", { children: childSection.name && evalutateCondition(
5416
5616
  formState.inputValues,
5417
5617
  childSection.visible
5418
- ) && /* @__PURE__ */ jsx66(
5618
+ ) && /* @__PURE__ */ jsx67(
5419
5619
  DataFormChildSection_default,
5420
5620
  {
5421
5621
  section: childSection,
@@ -5430,8 +5630,8 @@ var DataForm = (props) => {
5430
5630
  }) })
5431
5631
  }
5432
5632
  ),
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(
5633
+ /* @__PURE__ */ jsxs39("div", { className: "flex px-6 py-3 mt-2 mb-2 justify-end items-center gap-5", children: [
5634
+ /* @__PURE__ */ jsx67("div", { children: props.additionalActions && /* @__PURE__ */ jsx67(
5435
5635
  Button_default,
5436
5636
  {
5437
5637
  ButtonType: "PrimaryHollow" /* Hollow */,
@@ -5439,7 +5639,7 @@ var DataForm = (props) => {
5439
5639
  children: props.additionalActions.title
5440
5640
  }
5441
5641
  ) }),
5442
- /* @__PURE__ */ jsx66("div", { children: props.onDelete && /* @__PURE__ */ jsx66(
5642
+ /* @__PURE__ */ jsx67("div", { children: props.onDelete && /* @__PURE__ */ jsx67(
5443
5643
  Button_default,
5444
5644
  {
5445
5645
  ButtonType: "PrimaryHollow" /* Hollow */,
@@ -5450,7 +5650,7 @@ var DataForm = (props) => {
5450
5650
  children: "Delete"
5451
5651
  }
5452
5652
  ) }),
5453
- /* @__PURE__ */ jsx66("div", { children: props.onClick && /* @__PURE__ */ jsx66(
5653
+ /* @__PURE__ */ jsx67("div", { children: props.onClick && /* @__PURE__ */ jsx67(
5454
5654
  Button_default,
5455
5655
  {
5456
5656
  onValidate,
@@ -5467,7 +5667,7 @@ var DataForm = (props) => {
5467
5667
  var DataForm_default = DataForm;
5468
5668
 
5469
5669
  // src/components/dataForm/DataFormRenderer.tsx
5470
- import { jsx as jsx67, jsxs as jsxs39 } from "react/jsx-runtime";
5670
+ import { jsx as jsx68, jsxs as jsxs40 } from "react/jsx-runtime";
5471
5671
  function getAction(actions, code) {
5472
5672
  return actions?.find((a) => a.actionCode === code);
5473
5673
  }
@@ -5493,9 +5693,9 @@ var DataFormRenderer = ({
5493
5693
  "Delete"
5494
5694
  );
5495
5695
  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(
5696
+ return /* @__PURE__ */ jsxs40("div", { className: "flex-grow flex flex-col", children: [
5697
+ widgetProps && /* @__PURE__ */ jsx68(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
5698
+ /* @__PURE__ */ jsx68(
5499
5699
  DataForm_default,
5500
5700
  {
5501
5701
  title: !isAddPage ? "Edit " + formDefinition.formTitle + "- v2" : "Add " + formDefinition.formTitle + "- v2",