@clyrex-digital/clyrex-controls-dev 0.8.1-dev.20260923102653 → 0.8.1-dev.20260923125229

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
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk-TKDSRAM6.mjs";
6
6
  import {
7
7
  OdataBuilder
8
- } from "./chunk-SNDGEYWZ.mjs";
8
+ } from "./chunk-K6GGVJCI.mjs";
9
9
  import {
10
10
  InputControl_default
11
11
  } from "./chunk-XDTWUEVR.mjs";
@@ -1522,9 +1522,38 @@ var NoDataFound = () => {
1522
1522
  };
1523
1523
  var NoDataFound_default = NoDataFound;
1524
1524
 
1525
+ // src/components/NoFilterResultsFound.tsx
1526
+ import { jsx as jsx33, jsxs as jsxs12 } from "react/jsx-runtime";
1527
+ var NoFilterResultsFound = () => {
1528
+ return /* @__PURE__ */ jsxs12("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center bg-neutral-weak", children: [
1529
+ /* @__PURE__ */ jsx33("div", { className: "mb-5", children: /* @__PURE__ */ jsx33("div", { className: "mx-auto w-20 h-20 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ jsx33(
1530
+ "svg",
1531
+ {
1532
+ className: "w-10 h-10",
1533
+ fill: "none",
1534
+ stroke: "currentColor",
1535
+ viewBox: "0 0 24 24",
1536
+ xmlns: "http://www.w3.org/2000/svg",
1537
+ children: /* @__PURE__ */ jsx33(
1538
+ "path",
1539
+ {
1540
+ strokeLinecap: "round",
1541
+ strokeLinejoin: "round",
1542
+ strokeWidth: "1.5",
1543
+ d: "M20 13V6a2 2 0 00-2-2H6a2 2 0 00-2 2v7m16 0v5a2 2 0 01-2 2H6a2 2 0 01-2-2v-5m16 0h-2.586a1 1 0 00-.707.293l-2.414 2.414a1 1 0 01-.707.293h-3.172a1 1 0 01-.707-.293l-2.414-2.414A1 1 0 006.586 13H4"
1544
+ }
1545
+ )
1546
+ }
1547
+ ) }) }),
1548
+ /* @__PURE__ */ jsx33("h3", { className: "text-lg font-medium mb-2", children: "No Results Found" }),
1549
+ /* @__PURE__ */ jsx33("p", { className: "max-w-sm mb-0", children: "No data matches the current search query and configured parameters. Try adjusting your search criteria or filters to view available results." })
1550
+ ] });
1551
+ };
1552
+ var NoFilterResultsFound_default = NoFilterResultsFound;
1553
+
1525
1554
  // src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
1526
1555
  import dynamic11 from "next/dynamic";
1527
- import { Fragment as Fragment5, jsx as jsx33, jsxs as jsxs12 } from "react/jsx-runtime";
1556
+ import { Fragment as Fragment5, jsx as jsx34, jsxs as jsxs13 } from "react/jsx-runtime";
1528
1557
  var HlsPlayer3 = dynamic11(() => import("./HlsPlayer-AUZ42WTT.mjs"), { ssr: false });
1529
1558
  var deviceToMediaQuery = (device) => {
1530
1559
  switch (device) {
@@ -1680,8 +1709,8 @@ var ImageGalleryNode = (props) => {
1680
1709
  right: "justify-end"
1681
1710
  };
1682
1711
  const formatClasses = FormatClass[props.node.format || ""] || "";
1683
- return /* @__PURE__ */ jsxs12(Fragment5, { children: [
1684
- hlsSources.length > 0 && /* @__PURE__ */ jsx33(Fragment5, { children: /* @__PURE__ */ jsx33(
1712
+ return /* @__PURE__ */ jsxs13(Fragment5, { children: [
1713
+ hlsSources.length > 0 && /* @__PURE__ */ jsx34(Fragment5, { children: /* @__PURE__ */ jsx34(
1685
1714
  HlsPlayer3,
1686
1715
  {
1687
1716
  sources: hlsSources,
@@ -1696,7 +1725,7 @@ var ImageGalleryNode = (props) => {
1696
1725
  styles: hlsStyles
1697
1726
  }
1698
1727
  ) }),
1699
- (staticFallback || staticSources.length > 0) && /* @__PURE__ */ jsx33(Fragment5, { children: staticFallback ? /* @__PURE__ */ jsxs12("picture", { children: [
1728
+ (staticFallback || staticSources.length > 0) && /* @__PURE__ */ jsx34(Fragment5, { children: staticFallback ? /* @__PURE__ */ jsxs13("picture", { children: [
1700
1729
  DEVICE_ORDER.map((deviceKey) => {
1701
1730
  const match = staticSources.find(
1702
1731
  (img) => img.device === deviceKey
@@ -1712,7 +1741,7 @@ var ImageGalleryNode = (props) => {
1712
1741
  if (!srcUrl) {
1713
1742
  return null;
1714
1743
  }
1715
- return /* @__PURE__ */ jsx33(
1744
+ return /* @__PURE__ */ jsx34(
1716
1745
  "source",
1717
1746
  {
1718
1747
  media: deviceToMediaQuery(match.device),
@@ -1737,7 +1766,7 @@ var ImageGalleryNode = (props) => {
1737
1766
  if (img.borderRadius) {
1738
1767
  styles.borderRadius = img.borderRadius;
1739
1768
  }
1740
- return /* @__PURE__ */ jsx33(
1769
+ return /* @__PURE__ */ jsx34(
1741
1770
  "img",
1742
1771
  {
1743
1772
  loading: "lazy",
@@ -1752,7 +1781,7 @@ var ImageGalleryNode = (props) => {
1752
1781
  })()
1753
1782
  ] }) : (
1754
1783
  /* Case 2: Only device-specific images exist */
1755
- /* @__PURE__ */ jsx33(Fragment5, { children: staticSources.map((img, index) => {
1784
+ /* @__PURE__ */ jsx34(Fragment5, { children: staticSources.map((img, index) => {
1756
1785
  const resolved = resolveImage(img);
1757
1786
  const imageUrl = resolved?.imageUrl;
1758
1787
  if (!imageUrl) {
@@ -1779,7 +1808,7 @@ var ImageGalleryNode = (props) => {
1779
1808
  default:
1780
1809
  display = "block";
1781
1810
  }
1782
- return /* @__PURE__ */ jsx33(
1811
+ return /* @__PURE__ */ jsx34(
1783
1812
  "img",
1784
1813
  {
1785
1814
  loading: "lazy",
@@ -1919,7 +1948,7 @@ var shouldRenderContainer = (node, dataItem, session) => {
1919
1948
  };
1920
1949
 
1921
1950
  // src/components/pageRenderingEngine/nodes/DocumentNode.tsx
1922
- import { Fragment as Fragment6, jsx as jsx34, jsxs as jsxs13 } from "react/jsx-runtime";
1951
+ import { Fragment as Fragment6, jsx as jsx35, jsxs as jsxs14 } from "react/jsx-runtime";
1923
1952
  var getNestedValue5 = (obj, path) => {
1924
1953
  if (!obj || !path) return void 0;
1925
1954
  return path.split(".").reduce((current, key) => {
@@ -1950,21 +1979,21 @@ var parseDocuments = (value) => {
1950
1979
  }
1951
1980
  return [];
1952
1981
  };
1953
- var PdfIcon = () => /* @__PURE__ */ jsxs13(
1982
+ var PdfIcon = () => /* @__PURE__ */ jsxs14(
1954
1983
  "svg",
1955
1984
  {
1956
1985
  xmlns: "http://www.w3.org/2000/svg",
1957
1986
  viewBox: "0 0 48 48",
1958
1987
  className: "w-10 h-10",
1959
1988
  children: [
1960
- /* @__PURE__ */ jsx34(
1989
+ /* @__PURE__ */ jsx35(
1961
1990
  "path",
1962
1991
  {
1963
1992
  fill: "#e53935",
1964
1993
  d: "M38,42H10c-2.209,0-4-1.791-4-4V10c0-2.209,1.791-4,4-4h28c2.209,0,4,1.791,4,4v28 C42,40.209,40.209,42,38,42z"
1965
1994
  }
1966
1995
  ),
1967
- /* @__PURE__ */ jsx34(
1996
+ /* @__PURE__ */ jsx35(
1968
1997
  "path",
1969
1998
  {
1970
1999
  fill: "#fff",
@@ -1974,55 +2003,55 @@ var PdfIcon = () => /* @__PURE__ */ jsxs13(
1974
2003
  ]
1975
2004
  }
1976
2005
  );
1977
- var ExcelIcon = () => /* @__PURE__ */ jsxs13(
2006
+ var ExcelIcon = () => /* @__PURE__ */ jsxs14(
1978
2007
  "svg",
1979
2008
  {
1980
2009
  xmlns: "http://www.w3.org/2000/svg",
1981
2010
  viewBox: "0 0 48 48",
1982
2011
  className: "w-10 h-10",
1983
2012
  children: [
1984
- /* @__PURE__ */ jsx34(
2013
+ /* @__PURE__ */ jsx35(
1985
2014
  "path",
1986
2015
  {
1987
2016
  fill: "#169154",
1988
2017
  d: "M29,6H15.744C14.781,6,14,6.781,14,7.744v7.259h15V6z"
1989
2018
  }
1990
2019
  ),
1991
- /* @__PURE__ */ jsx34(
2020
+ /* @__PURE__ */ jsx35(
1992
2021
  "path",
1993
2022
  {
1994
2023
  fill: "#18482a",
1995
2024
  d: "M14,33.054v7.202C14,41.219,14.781,42,15.743,42H29v-8.946H14z"
1996
2025
  }
1997
2026
  ),
1998
- /* @__PURE__ */ jsx34("path", { fill: "#0c8045", d: "M14 15.003H29V24.005000000000003H14z" }),
1999
- /* @__PURE__ */ jsx34("path", { fill: "#17472a", d: "M14 24.005H29V33.055H14z" }),
2000
- /* @__PURE__ */ jsxs13("g", { children: [
2001
- /* @__PURE__ */ jsx34(
2027
+ /* @__PURE__ */ jsx35("path", { fill: "#0c8045", d: "M14 15.003H29V24.005000000000003H14z" }),
2028
+ /* @__PURE__ */ jsx35("path", { fill: "#17472a", d: "M14 24.005H29V33.055H14z" }),
2029
+ /* @__PURE__ */ jsxs14("g", { children: [
2030
+ /* @__PURE__ */ jsx35(
2002
2031
  "path",
2003
2032
  {
2004
2033
  fill: "#29c27f",
2005
2034
  d: "M42.256,6H29v9.003h15V7.744C44,6.781,43.219,6,42.256,6z"
2006
2035
  }
2007
2036
  ),
2008
- /* @__PURE__ */ jsx34(
2037
+ /* @__PURE__ */ jsx35(
2009
2038
  "path",
2010
2039
  {
2011
2040
  fill: "#27663f",
2012
2041
  d: "M29,33.054V42h13.257C43.219,42,44,41.219,44,40.257v-7.202H29z"
2013
2042
  }
2014
2043
  ),
2015
- /* @__PURE__ */ jsx34("path", { fill: "#19ac65", d: "M29 15.003H44V24.005000000000003H29z" }),
2016
- /* @__PURE__ */ jsx34("path", { fill: "#129652", d: "M29 24.005H44V33.055H29z" })
2044
+ /* @__PURE__ */ jsx35("path", { fill: "#19ac65", d: "M29 15.003H44V24.005000000000003H29z" }),
2045
+ /* @__PURE__ */ jsx35("path", { fill: "#129652", d: "M29 24.005H44V33.055H29z" })
2017
2046
  ] }),
2018
- /* @__PURE__ */ jsx34(
2047
+ /* @__PURE__ */ jsx35(
2019
2048
  "path",
2020
2049
  {
2021
2050
  fill: "#0c7238",
2022
2051
  d: "M22.319,34H5.681C4.753,34,4,33.247,4,32.319V15.681C4,14.753,4.753,14,5.681,14h16.638 C23.247,14,24,14.753,24,15.681v16.638C24,33.247,23.247,34,22.319,34z"
2023
2052
  }
2024
2053
  ),
2025
- /* @__PURE__ */ jsx34(
2054
+ /* @__PURE__ */ jsx35(
2026
2055
  "path",
2027
2056
  {
2028
2057
  fill: "#fff",
@@ -2032,7 +2061,7 @@ var ExcelIcon = () => /* @__PURE__ */ jsxs13(
2032
2061
  ]
2033
2062
  }
2034
2063
  );
2035
- var WordIcon = () => /* @__PURE__ */ jsxs13(
2064
+ var WordIcon = () => /* @__PURE__ */ jsxs14(
2036
2065
  "svg",
2037
2066
  {
2038
2067
  xmlns: "http://www.w3.org/2000/svg",
@@ -2040,14 +2069,14 @@ var WordIcon = () => /* @__PURE__ */ jsxs13(
2040
2069
  className: "w-10 h-10",
2041
2070
  baseProfile: "basic",
2042
2071
  children: [
2043
- /* @__PURE__ */ jsx34(
2072
+ /* @__PURE__ */ jsx35(
2044
2073
  "path",
2045
2074
  {
2046
2075
  fill: "#283593",
2047
2076
  d: "M9,33.595l14.911-18.706L41,26v13.306C41,41.346,39.346,43,37.306,43H15.332 C11.835,43,9,40.164,9,36.667C9,36.667,9,33.595,9,33.595z"
2048
2077
  }
2049
2078
  ),
2050
- /* @__PURE__ */ jsxs13(
2079
+ /* @__PURE__ */ jsxs14(
2051
2080
  "linearGradient",
2052
2081
  {
2053
2082
  id: "qh2LT5tehRDFkLLfb-odWa",
@@ -2058,19 +2087,19 @@ var WordIcon = () => /* @__PURE__ */ jsxs13(
2058
2087
  gradientTransform: "translate(0 -339.89)",
2059
2088
  gradientUnits: "userSpaceOnUse",
2060
2089
  children: [
2061
- /* @__PURE__ */ jsx34("stop", { offset: "0", "stop-color": "#66c0ff" }),
2062
- /* @__PURE__ */ jsx34("stop", { offset: ".26", "stop-color": "#0094f0" })
2090
+ /* @__PURE__ */ jsx35("stop", { offset: "0", "stop-color": "#66c0ff" }),
2091
+ /* @__PURE__ */ jsx35("stop", { offset: ".26", "stop-color": "#0094f0" })
2063
2092
  ]
2064
2093
  }
2065
2094
  ),
2066
- /* @__PURE__ */ jsx34(
2095
+ /* @__PURE__ */ jsx35(
2067
2096
  "path",
2068
2097
  {
2069
2098
  fill: "url(#qh2LT5tehRDFkLLfb-odWa)",
2070
2099
  d: "M9,20.208c0-2.624,2.126-4.75,4.749-4.75h21.857L41,12.778v13.527 C41,28.346,39.346,30,37.306,30H15.332C11.835,30,9,32.836,9,36.333L9,20.208L9,20.208z"
2071
2100
  }
2072
2101
  ),
2073
- /* @__PURE__ */ jsx34(
2102
+ /* @__PURE__ */ jsx35(
2074
2103
  "path",
2075
2104
  {
2076
2105
  fill: "#1e88e5",
@@ -2078,21 +2107,21 @@ var WordIcon = () => /* @__PURE__ */ jsxs13(
2078
2107
  d: "M9,20.208c0-2.624,2.126-4.75,4.749-4.75h21.857L41,12.778v13.527 C41,28.346,39.346,30,37.306,30H15.332C11.835,30,9,32.836,9,36.333L9,20.208L9,20.208z"
2079
2108
  }
2080
2109
  ),
2081
- /* @__PURE__ */ jsx34(
2110
+ /* @__PURE__ */ jsx35(
2082
2111
  "path",
2083
2112
  {
2084
2113
  fill: "#00e5ff",
2085
2114
  d: "M9,10.333C9,6.836,11.835,4,15.332,4h21.975C39.346,4,41,5.654,41,7.694v5.611 C41,15.346,39.346,17,37.306,17H15.332C11.835,17,9,19.836,9,23.333C9,23.333,9,10.333,9,10.333z"
2086
2115
  }
2087
2116
  ),
2088
- /* @__PURE__ */ jsx34(
2117
+ /* @__PURE__ */ jsx35(
2089
2118
  "path",
2090
2119
  {
2091
2120
  fill: "#1565c0",
2092
2121
  d: "M7.5,23h10c1.933,0,3.5,1.567,3.5,3.5v10c0,1.933-1.567,3.5-3.5,3.5h-10C5.567,40,4,38.433,4,36.5 v-10C4,24.567,5.567,23,7.5,23z"
2093
2122
  }
2094
2123
  ),
2095
- /* @__PURE__ */ jsx34(
2124
+ /* @__PURE__ */ jsx35(
2096
2125
  "path",
2097
2126
  {
2098
2127
  fill: "#fff",
@@ -2102,42 +2131,42 @@ var WordIcon = () => /* @__PURE__ */ jsxs13(
2102
2131
  ]
2103
2132
  }
2104
2133
  );
2105
- var StandardIcon = () => /* @__PURE__ */ jsxs13(
2134
+ var StandardIcon = () => /* @__PURE__ */ jsxs14(
2106
2135
  "svg",
2107
2136
  {
2108
2137
  xmlns: "http://www.w3.org/2000/svg",
2109
2138
  viewBox: "0 0 48 48",
2110
2139
  className: "w-10 h-10",
2111
2140
  children: [
2112
- /* @__PURE__ */ jsx34("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
2113
- /* @__PURE__ */ jsx34("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" })
2141
+ /* @__PURE__ */ jsx35("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
2142
+ /* @__PURE__ */ jsx35("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" })
2114
2143
  ]
2115
2144
  }
2116
2145
  );
2117
- var PowerPointIcon = () => /* @__PURE__ */ jsxs13(
2146
+ var PowerPointIcon = () => /* @__PURE__ */ jsxs14(
2118
2147
  "svg",
2119
2148
  {
2120
2149
  xmlns: "http://www.w3.org/2000/svg",
2121
2150
  viewBox: "0 0 48 48",
2122
2151
  className: "w-10 h-10",
2123
2152
  children: [
2124
- /* @__PURE__ */ jsx34(
2153
+ /* @__PURE__ */ jsx35(
2125
2154
  "path",
2126
2155
  {
2127
2156
  fill: "#dc4c2c",
2128
2157
  d: "M8,24c0,9.941,8.059,18,18,18s18-8.059,18-18H26H8z"
2129
2158
  }
2130
2159
  ),
2131
- /* @__PURE__ */ jsx34("path", { fill: "#f7a278", d: "M26,6v18h18C44,14.059,35.941,6,26,6z" }),
2132
- /* @__PURE__ */ jsx34("path", { fill: "#c06346", d: "M26,6C16.059,6,8,14.059,8,24h18V6z" }),
2133
- /* @__PURE__ */ jsx34(
2160
+ /* @__PURE__ */ jsx35("path", { fill: "#f7a278", d: "M26,6v18h18C44,14.059,35.941,6,26,6z" }),
2161
+ /* @__PURE__ */ jsx35("path", { fill: "#c06346", d: "M26,6C16.059,6,8,14.059,8,24h18V6z" }),
2162
+ /* @__PURE__ */ jsx35(
2134
2163
  "path",
2135
2164
  {
2136
2165
  fill: "#9b341f",
2137
2166
  d: "M22.319,34H5.681C4.753,34,4,33.247,4,32.319V15.681C4,14.753,4.753,14,5.681,14h16.638 C23.247,14,24,14.753,24,15.681v16.638C24,33.247,23.247,34,22.319,34z"
2138
2167
  }
2139
2168
  ),
2140
- /* @__PURE__ */ jsx34(
2169
+ /* @__PURE__ */ jsx35(
2141
2170
  "path",
2142
2171
  {
2143
2172
  fill: "#fff",
@@ -2147,16 +2176,16 @@ var PowerPointIcon = () => /* @__PURE__ */ jsxs13(
2147
2176
  ]
2148
2177
  }
2149
2178
  );
2150
- var TextIcon = () => /* @__PURE__ */ jsxs13(
2179
+ var TextIcon = () => /* @__PURE__ */ jsxs14(
2151
2180
  "svg",
2152
2181
  {
2153
2182
  xmlns: "http://www.w3.org/2000/svg",
2154
2183
  viewBox: "0 0 48 48",
2155
2184
  className: "w-10 h-10",
2156
2185
  children: [
2157
- /* @__PURE__ */ jsx34("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
2158
- /* @__PURE__ */ jsx34("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" }),
2159
- /* @__PURE__ */ jsx34(
2186
+ /* @__PURE__ */ jsx35("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
2187
+ /* @__PURE__ */ jsx35("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" }),
2188
+ /* @__PURE__ */ jsx35(
2160
2189
  "path",
2161
2190
  {
2162
2191
  fill: "#1976D2",
@@ -2166,7 +2195,7 @@ var TextIcon = () => /* @__PURE__ */ jsxs13(
2166
2195
  ]
2167
2196
  }
2168
2197
  );
2169
- var ArchiveIcon = () => /* @__PURE__ */ jsxs13(
2198
+ var ArchiveIcon = () => /* @__PURE__ */ jsxs14(
2170
2199
  "svg",
2171
2200
  {
2172
2201
  xmlns: "http://www.w3.org/2000/svg",
@@ -2176,14 +2205,14 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs13(
2176
2205
  version: "1.0",
2177
2206
  className: "w-10 h-10",
2178
2207
  children: [
2179
- /* @__PURE__ */ jsx34("defs", { children: /* @__PURE__ */ jsx34("clipPath", { id: "273d29c8a6", children: /* @__PURE__ */ jsx34(
2208
+ /* @__PURE__ */ jsx35("defs", { children: /* @__PURE__ */ jsx35("clipPath", { id: "273d29c8a6", children: /* @__PURE__ */ jsx35(
2180
2209
  "path",
2181
2210
  {
2182
2211
  d: "M 8.90625 0 L 65.90625 0 L 65.90625 75 L 8.90625 75 Z M 8.90625 0 ",
2183
2212
  "clip-rule": "nonzero"
2184
2213
  }
2185
2214
  ) }) }),
2186
- /* @__PURE__ */ jsx34("g", { "clip-path": "url(#273d29c8a6)", children: /* @__PURE__ */ jsx34(
2215
+ /* @__PURE__ */ jsx35("g", { "clip-path": "url(#273d29c8a6)", children: /* @__PURE__ */ jsx35(
2187
2216
  "path",
2188
2217
  {
2189
2218
  fill: "#ff9100",
@@ -2192,7 +2221,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs13(
2192
2221
  "fill-rule": "nonzero"
2193
2222
  }
2194
2223
  ) }),
2195
- /* @__PURE__ */ jsx34(
2224
+ /* @__PURE__ */ jsx35(
2196
2225
  "path",
2197
2226
  {
2198
2227
  fill: "#fbe9e7",
@@ -2201,7 +2230,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs13(
2201
2230
  "fill-rule": "nonzero"
2202
2231
  }
2203
2232
  ),
2204
- /* @__PURE__ */ jsx34(
2233
+ /* @__PURE__ */ jsx35(
2205
2234
  "path",
2206
2235
  {
2207
2236
  fill: "#ffe0b2",
@@ -2210,7 +2239,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs13(
2210
2239
  "fill-rule": "nonzero"
2211
2240
  }
2212
2241
  ),
2213
- /* @__PURE__ */ jsx34(
2242
+ /* @__PURE__ */ jsx35(
2214
2243
  "path",
2215
2244
  {
2216
2245
  fill: "#ffe0b2",
@@ -2219,7 +2248,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs13(
2219
2248
  "fill-rule": "nonzero"
2220
2249
  }
2221
2250
  ),
2222
- /* @__PURE__ */ jsx34(
2251
+ /* @__PURE__ */ jsx35(
2223
2252
  "path",
2224
2253
  {
2225
2254
  fill: "#ffe0b2",
@@ -2269,8 +2298,8 @@ var DocumentNode = (props) => {
2269
2298
  documents = parseDocuments(props.node.documentAsset);
2270
2299
  }
2271
2300
  if (documents.length === 0) {
2272
- return /* @__PURE__ */ jsx34(Fragment6, { children: /* @__PURE__ */ jsxs13("div", { className: "py-4 px-2 bg-neutral-weak border rounded text-center flex flex-col gap-2", children: [
2273
- /* @__PURE__ */ jsx34("div", { className: "mx-auto w-10 h-10 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ jsx34(
2301
+ return /* @__PURE__ */ jsx35(Fragment6, { children: /* @__PURE__ */ jsxs14("div", { className: "py-4 px-2 bg-neutral-weak border rounded text-center flex flex-col gap-2", children: [
2302
+ /* @__PURE__ */ jsx35("div", { className: "mx-auto w-10 h-10 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ jsx35(
2274
2303
  "svg",
2275
2304
  {
2276
2305
  className: "w-5 h-5",
@@ -2278,7 +2307,7 @@ var DocumentNode = (props) => {
2278
2307
  stroke: "currentColor",
2279
2308
  viewBox: "0 0 24 24",
2280
2309
  xmlns: "http://www.w3.org/2000/svg",
2281
- children: /* @__PURE__ */ jsx34(
2310
+ children: /* @__PURE__ */ jsx35(
2282
2311
  "path",
2283
2312
  {
2284
2313
  strokeLinecap: "round",
@@ -2289,11 +2318,11 @@ var DocumentNode = (props) => {
2289
2318
  )
2290
2319
  }
2291
2320
  ) }),
2292
- /* @__PURE__ */ jsx34("div", { className: "text-sm font-medium", children: "No documents found" }),
2293
- /* @__PURE__ */ jsx34("div", { className: "text-xs", children: "No records found. Data may be empty or not available at the moment." })
2321
+ /* @__PURE__ */ jsx35("div", { className: "text-sm font-medium", children: "No documents found" }),
2322
+ /* @__PURE__ */ jsx35("div", { className: "text-xs", children: "No records found. Data may be empty or not available at the moment." })
2294
2323
  ] }) });
2295
2324
  }
2296
- return /* @__PURE__ */ jsx34("div", { className: "", children: documents.map((doc, index) => {
2325
+ return /* @__PURE__ */ jsx35("div", { className: "", children: documents.map((doc, index) => {
2297
2326
  const documentUrl = AssetUtility_default.resolveUrl(
2298
2327
  props.assetBaseUrl,
2299
2328
  doc.assetUrl
@@ -2311,16 +2340,16 @@ var DocumentNode = (props) => {
2311
2340
  }
2312
2341
  }
2313
2342
  const { Icon, extLabel } = getFileDetails(documentUrl);
2314
- return /* @__PURE__ */ jsxs13(
2343
+ return /* @__PURE__ */ jsxs14(
2315
2344
  "div",
2316
2345
  {
2317
2346
  className: `flex items-center justify-between py-4 bg-default gap-4 ${index !== 0 ? "border-t" : ""}`,
2318
2347
  children: [
2319
- /* @__PURE__ */ jsxs13("div", { className: "flex items-center space-x-4 min-w-0", children: [
2320
- /* @__PURE__ */ jsx34("div", { className: "flex items-center justify-center p-2 rounded bg-neutral-soft shrink-0", children: /* @__PURE__ */ jsx34(Icon, {}) }),
2321
- /* @__PURE__ */ jsx34("div", { className: "flex items-baseline space-x-2 min-w-0", children: /* @__PURE__ */ jsx34("h4", { className: "text-base font-semibold truncate", title: documentTitle, children: documentTitle }) })
2348
+ /* @__PURE__ */ jsxs14("div", { className: "flex items-center space-x-4 min-w-0", children: [
2349
+ /* @__PURE__ */ jsx35("div", { className: "flex items-center justify-center p-2 rounded bg-neutral-soft shrink-0", children: /* @__PURE__ */ jsx35(Icon, {}) }),
2350
+ /* @__PURE__ */ jsx35("div", { className: "flex items-baseline space-x-2 min-w-0", children: /* @__PURE__ */ jsx35("h4", { className: "text-base font-semibold truncate", title: documentTitle, children: documentTitle }) })
2322
2351
  ] }),
2323
- /* @__PURE__ */ jsxs13(
2352
+ /* @__PURE__ */ jsxs14(
2324
2353
  "a",
2325
2354
  {
2326
2355
  href: documentUrl,
@@ -2328,7 +2357,7 @@ var DocumentNode = (props) => {
2328
2357
  rel: "noopener noreferrer",
2329
2358
  className: "inline-flex items-center px-4 py-2 text-sm font-medium bg-default border rounded focus:outline-none focus:ring-2 focus:ring-offset-2 transition-colors shrink-0",
2330
2359
  children: [
2331
- /* @__PURE__ */ jsxs13(
2360
+ /* @__PURE__ */ jsxs14(
2332
2361
  "svg",
2333
2362
  {
2334
2363
  className: "w-4 h-4 mr-2",
@@ -2336,7 +2365,7 @@ var DocumentNode = (props) => {
2336
2365
  stroke: "currentColor",
2337
2366
  viewBox: "0 0 24 24",
2338
2367
  children: [
2339
- /* @__PURE__ */ jsx34(
2368
+ /* @__PURE__ */ jsx35(
2340
2369
  "path",
2341
2370
  {
2342
2371
  strokeLinecap: "round",
@@ -2345,7 +2374,7 @@ var DocumentNode = (props) => {
2345
2374
  d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"
2346
2375
  }
2347
2376
  ),
2348
- /* @__PURE__ */ jsx34(
2377
+ /* @__PURE__ */ jsx35(
2349
2378
  "path",
2350
2379
  {
2351
2380
  strokeLinecap: "round",
@@ -2371,13 +2400,13 @@ var DocumentNode_default = DocumentNode;
2371
2400
 
2372
2401
  // src/components/pageRenderingEngine/nodes/GoogleMapNode.tsx
2373
2402
  import dynamic12 from "next/dynamic";
2374
- import { jsx as jsx35 } from "react/jsx-runtime";
2403
+ import { jsx as jsx36 } from "react/jsx-runtime";
2375
2404
  var IframeClient2 = dynamic12(() => import("./IframeClient-WF2KLXZB.mjs"), {
2376
2405
  ssr: false
2377
2406
  });
2378
2407
  var GoogleMapNode = (props) => {
2379
2408
  let src = props.node.embedUrl;
2380
- return /* @__PURE__ */ jsx35("div", { className: "google-map-container", children: src && /* @__PURE__ */ jsx35(
2409
+ return /* @__PURE__ */ jsx36("div", { className: "google-map-container", children: src && /* @__PURE__ */ jsx36(
2381
2410
  IframeClient2,
2382
2411
  {
2383
2412
  src,
@@ -2389,9 +2418,9 @@ var GoogleMapNode = (props) => {
2389
2418
  var GoogleMapNode_default = GoogleMapNode;
2390
2419
 
2391
2420
  // src/components/pageRenderingEngine/nodes/DivContainer.tsx
2392
- import { jsx as jsx36, jsxs as jsxs14 } from "react/jsx-runtime";
2393
- var Pagination = dynamic13(() => import("./Pagination-3SOPLEQN.mjs"), { ssr: true });
2394
- var DataBindingControls = dynamic13(() => import("./DataBindingControls-CUZ34EVI.mjs"), {
2421
+ import { jsx as jsx37, jsxs as jsxs15 } from "react/jsx-runtime";
2422
+ var Pagination = dynamic13(() => import("./Pagination-STOHS3LO.mjs"), { ssr: true });
2423
+ var DataBindingControls = dynamic13(() => import("./DataBindingControls-SLNZLI3I.mjs"), {
2395
2424
  ssr: true
2396
2425
  });
2397
2426
  var Slider = dynamic13(() => import("./Slider-IVPJBPE5.mjs"), {
@@ -2674,7 +2703,7 @@ var DivContainer = async (props) => {
2674
2703
  }
2675
2704
  const SelectedNode = NodeTypes2[node.type];
2676
2705
  if (!SelectedNode) return null;
2677
- return /* @__PURE__ */ jsx36(React23.Fragment, { children: /* @__PURE__ */ jsx36(
2706
+ return /* @__PURE__ */ jsx37(React23.Fragment, { children: /* @__PURE__ */ jsx37(
2678
2707
  SelectedNode,
2679
2708
  {
2680
2709
  node,
@@ -2766,7 +2795,7 @@ var DivContainer = async (props) => {
2766
2795
  item,
2767
2796
  idx,
2768
2797
  props.href ? void 0 : item?.links?.view
2769
- )?.map((child, i) => /* @__PURE__ */ jsx36(React23.Fragment, { children: child }, i)) : renderChildren(props.node.children, props, item, idx)
2798
+ )?.map((child, i) => /* @__PURE__ */ jsx37(React23.Fragment, { children: child }, i)) : renderChildren(props.node.children, props, item, idx)
2770
2799
  );
2771
2800
  }
2772
2801
  return props.node.children.flatMap((node, childIndex) => {
@@ -2877,21 +2906,24 @@ var DivContainer = async (props) => {
2877
2906
  !!props.node.enterAnimation && "enter-animation"
2878
2907
  ].filter(Boolean).join(" ");
2879
2908
  const isRepeatedContainer = props.node.repeatForEachItem === true || props.node.replicate === true;
2909
+ const hasActiveFilter = Boolean(
2910
+ (props.query?.["$filter"] ?? props.query?.filter)?.trim()
2911
+ );
2880
2912
  const showDataBindingControls = !isRepeatedContainer && Boolean(
2881
2913
  dataBindingProperties?.showFacets || dataBindingProperties?.showSortOptions || dataBindingProperties?.showSearchBar
2882
2914
  );
2883
2915
  const WrapperComponent = Wrapper;
2884
- const renderedContainer = /* @__PURE__ */ jsx36(
2916
+ const renderedContainer = /* @__PURE__ */ jsx37(
2885
2917
  WrapperComponent,
2886
2918
  {
2887
2919
  id: guid,
2888
2920
  style: combinedStyles,
2889
2921
  className: classNames || void 0,
2890
2922
  ...wrapperProps,
2891
- children: shouldShowNoDataMessage ? /* @__PURE__ */ jsx36(NoDataFound_default, {}) : renderContainerChildren()
2923
+ children: shouldShowNoDataMessage ? hasActiveFilter ? /* @__PURE__ */ jsx37(NoFilterResultsFound_default, {}) : /* @__PURE__ */ jsx37(NoDataFound_default, {}) : renderContainerChildren()
2892
2924
  }
2893
2925
  );
2894
- const paginationControl = dataBindingProperties?.enablePagination ? /* @__PURE__ */ jsx36(
2926
+ const paginationControl = dataBindingProperties?.enablePagination ? /* @__PURE__ */ jsx37(
2895
2927
  Pagination,
2896
2928
  {
2897
2929
  path: props.path,
@@ -2899,15 +2931,15 @@ var DivContainer = async (props) => {
2899
2931
  dataset: response
2900
2932
  }
2901
2933
  ) : null;
2902
- return /* @__PURE__ */ jsxs14(React23.Fragment, { children: [
2903
- /* @__PURE__ */ jsx36(
2934
+ return /* @__PURE__ */ jsxs15(React23.Fragment, { children: [
2935
+ /* @__PURE__ */ jsx37(
2904
2936
  "style",
2905
2937
  {
2906
2938
  dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS }
2907
2939
  }
2908
2940
  ),
2909
- showDataBindingControls ? /* @__PURE__ */ jsxs14(React23.Fragment, { children: [
2910
- /* @__PURE__ */ jsx36(
2941
+ showDataBindingControls ? /* @__PURE__ */ jsxs15(React23.Fragment, { children: [
2942
+ /* @__PURE__ */ jsx37(
2911
2943
  DataBindingControls,
2912
2944
  {
2913
2945
  mode: "toolbar",
@@ -2915,45 +2947,43 @@ var DivContainer = async (props) => {
2915
2947
  query: props.query,
2916
2948
  facets: response?.facets,
2917
2949
  sortOptions: response?.sortOptions,
2950
+ showFacets: dataBindingProperties?.showFacets,
2918
2951
  showSortOptions: dataBindingProperties?.showSortOptions,
2919
2952
  showSearchBar: dataBindingProperties?.showSearchBar
2920
2953
  }
2921
2954
  ),
2922
- /* @__PURE__ */ jsxs14(
2955
+ /* @__PURE__ */ jsxs15(
2923
2956
  "div",
2924
2957
  {
2925
2958
  className: dataBindingProperties?.showFacets ? "grid items-start gap-6 lg:grid-cols-[minmax(0,1fr)_18rem]" : void 0,
2926
2959
  children: [
2927
- /* @__PURE__ */ jsxs14("div", { className: "min-w-0", children: [
2960
+ /* @__PURE__ */ jsxs15("div", { className: "min-w-0", children: [
2928
2961
  renderedContainer,
2929
2962
  paginationControl
2930
2963
  ] }),
2931
- dataBindingProperties?.showFacets && /* @__PURE__ */ jsxs14("aside", { className: "border bg-default p-3 lg:sticky lg:top-[90px] lg:self-start", children: [
2932
- /* @__PURE__ */ jsx36("h2", { className: "mb-2 text-lg font-semibold", children: "Filters" }),
2933
- /* @__PURE__ */ jsx36(
2934
- DataBindingControls,
2935
- {
2936
- mode: "facets",
2937
- path: props.path,
2938
- query: props.query,
2939
- facets: response?.facets,
2940
- showFacets: dataBindingProperties.showFacets
2941
- }
2942
- )
2943
- ] })
2964
+ dataBindingProperties?.showFacets && /* @__PURE__ */ jsx37("aside", { className: " lg:sticky lg:top-[90px] lg:self-start", children: /* @__PURE__ */ jsx37(
2965
+ DataBindingControls,
2966
+ {
2967
+ mode: "facets",
2968
+ path: props.path,
2969
+ query: props.query,
2970
+ facets: response?.facets,
2971
+ showFacets: dataBindingProperties.showFacets
2972
+ }
2973
+ ) })
2944
2974
  ]
2945
2975
  }
2946
2976
  )
2947
- ] }) : /* @__PURE__ */ jsxs14(React23.Fragment, { children: [
2977
+ ] }) : /* @__PURE__ */ jsxs15(React23.Fragment, { children: [
2948
2978
  renderedContainer,
2949
- paginationControl && /* @__PURE__ */ jsx36("div", { children: paginationControl })
2979
+ paginationControl && /* @__PURE__ */ jsx37("div", { children: paginationControl })
2950
2980
  ] })
2951
2981
  ] });
2952
2982
  };
2953
2983
  var DivContainer_default = DivContainer;
2954
2984
 
2955
2985
  // src/components/pageRenderingEngine/PageBodyRenderer.tsx
2956
- import { jsx as jsx37 } from "react/jsx-runtime";
2986
+ import { jsx as jsx38 } from "react/jsx-runtime";
2957
2987
  var NodeTypes = {
2958
2988
  ["paragraph"]: ParagraphNode_default,
2959
2989
  ["heading"]: HeadingNode_default,
@@ -2991,14 +3021,14 @@ var PageBodyRenderer = (props) => {
2991
3021
  }
2992
3022
  return true;
2993
3023
  };
2994
- return /* @__PURE__ */ jsx37(React24.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
3024
+ return /* @__PURE__ */ jsx38(React24.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
2995
3025
  {
2996
3026
  }
2997
3027
  const SelectedNode = NodeTypes[node.type];
2998
3028
  if (!shouldRenderNode(node)) {
2999
3029
  return null;
3000
3030
  }
3001
- return /* @__PURE__ */ jsx37(React24.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx37(React24.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ jsx37(React24.Fragment, { children: /* @__PURE__ */ jsx37(
3031
+ return /* @__PURE__ */ jsx38(React24.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx38(React24.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ jsx38(React24.Fragment, { children: /* @__PURE__ */ jsx38(
3002
3032
  SelectedNode,
3003
3033
  {
3004
3034
  node,
@@ -3014,7 +3044,7 @@ var PageBodyRenderer = (props) => {
3014
3044
  device: props.device,
3015
3045
  widgetRenderer: props.widgetRenderer
3016
3046
  }
3017
- ) }) : /* @__PURE__ */ jsx37(React24.Fragment, { children: /* @__PURE__ */ jsx37(
3047
+ ) }) : /* @__PURE__ */ jsx38(React24.Fragment, { children: /* @__PURE__ */ jsx38(
3018
3048
  SelectedNode,
3019
3049
  {
3020
3050
  node,
@@ -3084,7 +3114,7 @@ function EnterAnimationHydrator() {
3084
3114
 
3085
3115
  // src/components/Toast.tsx
3086
3116
  import { useCallback, useEffect as useEffect2, useRef, useState } from "react";
3087
- import { Fragment as Fragment7, jsx as jsx38, jsxs as jsxs15 } from "react/jsx-runtime";
3117
+ import { Fragment as Fragment7, jsx as jsx39, jsxs as jsxs16 } from "react/jsx-runtime";
3088
3118
  var Toast = () => {
3089
3119
  const [showToast, setShowToast] = useState(false);
3090
3120
  const [message, setMessage] = useState("");
@@ -3118,8 +3148,8 @@ var Toast = () => {
3118
3148
  });
3119
3149
  };
3120
3150
  }, [closeToast, showMessage]);
3121
- return /* @__PURE__ */ jsx38(Fragment7, { children: showToast && /* @__PURE__ */ jsx38("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__ */ jsxs15("div", { className: `w-full items-center flex justify-between p-3 rounded-md relative shadow border bg-${messageType}-soft`, children: [
3122
- /* @__PURE__ */ jsx38(
3151
+ return /* @__PURE__ */ jsx39(Fragment7, { children: showToast && /* @__PURE__ */ jsx39("div", { className: "fixed top-2 flex justify-center w-1/2 max-w-xl left-1/2 -translate-x-1/2", style: { zIndex: 1e3 }, children: /* @__PURE__ */ jsxs16("div", { className: `w-full items-center flex justify-between p-3 rounded-md relative shadow border bg-${messageType}-soft`, children: [
3152
+ /* @__PURE__ */ jsx39(
3123
3153
  "span",
3124
3154
  {
3125
3155
  className: "font-medium text-inherit text-sm",
@@ -3127,7 +3157,7 @@ var Toast = () => {
3127
3157
  children: message
3128
3158
  }
3129
3159
  ),
3130
- /* @__PURE__ */ jsx38("button", { className: "absolute right-2 top-2 ml-2 focus:outline-none", onClick: closeToast, children: /* @__PURE__ */ jsx38(
3160
+ /* @__PURE__ */ jsx39("button", { className: "absolute right-2 top-2 ml-2 focus:outline-none", onClick: closeToast, children: /* @__PURE__ */ jsx39(
3131
3161
  "svg",
3132
3162
  {
3133
3163
  xmlns: "http://www.w3.org/2000/svg",
@@ -3135,7 +3165,7 @@ var Toast = () => {
3135
3165
  fill: "none",
3136
3166
  viewBox: "0 0 24 24",
3137
3167
  stroke: "currentColor",
3138
- children: /* @__PURE__ */ jsx38("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M6 18L18 6M6 6l12 12" })
3168
+ children: /* @__PURE__ */ jsx39("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M6 18L18 6M6 6l12 12" })
3139
3169
  }
3140
3170
  ) })
3141
3171
  ] }) }) });
@@ -3145,7 +3175,7 @@ var Toast_default = Toast;
3145
3175
  // src/components/NavigationTabsV2.tsx
3146
3176
  import Link2 from "next/link";
3147
3177
  import { usePathname } from "next/navigation";
3148
- import { jsx as jsx39 } from "react/jsx-runtime";
3178
+ import { jsx as jsx40 } from "react/jsx-runtime";
3149
3179
  function resolveRoutePlaceholders(route, params) {
3150
3180
  return route.replace(/\{([^}]+)\}/g, (match, key) => {
3151
3181
  const value = params[key];
@@ -3170,8 +3200,8 @@ var NavigationTabsV2 = ({ tabs, params = {} }) => {
3170
3200
  isActive: tab.isActive
3171
3201
  })) || [];
3172
3202
  if (mappedTabs.length === 0) return null;
3173
- return /* @__PURE__ */ jsx39("div", { className: "flex border-b bg-white rounded-t mb-3", children: mappedTabs.map(({ tabTitle, landingPageUrl, isActive }) => {
3174
- return /* @__PURE__ */ jsx39(Link2, { href: landingPageUrl, className: "-mb-px", children: /* @__PURE__ */ jsx39(
3203
+ return /* @__PURE__ */ jsx40("div", { className: "flex border-b bg-white rounded-t mb-3", children: mappedTabs.map(({ tabTitle, landingPageUrl, isActive }) => {
3204
+ return /* @__PURE__ */ jsx40(Link2, { href: landingPageUrl, className: "-mb-px", children: /* @__PURE__ */ jsx40(
3175
3205
  "div",
3176
3206
  {
3177
3207
  className: `text-sm font-medium border-b-2 px-6 py-2 transition
@@ -3189,46 +3219,46 @@ import { useRouter } from "next/navigation";
3189
3219
 
3190
3220
  // src/components/dataForm/NoContentView.tsx
3191
3221
  import React26 from "react";
3192
- import { jsx as jsx40 } from "react/jsx-runtime";
3222
+ import { jsx as jsx41 } from "react/jsx-runtime";
3193
3223
  var NoContentView = (props) => {
3194
- return /* @__PURE__ */ jsx40(React26.Fragment, { children: props.isDataFound === false && props.children });
3224
+ return /* @__PURE__ */ jsx41(React26.Fragment, { children: props.isDataFound === false && props.children });
3195
3225
  };
3196
3226
  var NoContentView_default = NoContentView;
3197
3227
 
3198
3228
  // src/components/dataForm/ContentView.tsx
3199
3229
  import React27 from "react";
3200
- import { jsx as jsx41, jsxs as jsxs16 } from "react/jsx-runtime";
3230
+ import { jsx as jsx42, jsxs as jsxs17 } from "react/jsx-runtime";
3201
3231
  var ContentView = (props) => {
3202
- return /* @__PURE__ */ jsxs16(React27.Fragment, { children: [
3203
- props.isDataFound == null && /* @__PURE__ */ jsx41("div", { className: "", children: /* @__PURE__ */ jsxs16("div", { className: "bg-gray-200 rounded-md p-4 animate-pulse", children: [
3204
- /* @__PURE__ */ jsxs16("div", { className: "flex items-center mb-4", children: [
3205
- /* @__PURE__ */ jsx41("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
3206
- /* @__PURE__ */ jsxs16("div", { className: "ml-2", children: [
3207
- /* @__PURE__ */ jsx41("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
3208
- /* @__PURE__ */ jsx41("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
3232
+ return /* @__PURE__ */ jsxs17(React27.Fragment, { children: [
3233
+ props.isDataFound == null && /* @__PURE__ */ jsx42("div", { className: "", children: /* @__PURE__ */ jsxs17("div", { className: "bg-gray-200 rounded-md p-4 animate-pulse", children: [
3234
+ /* @__PURE__ */ jsxs17("div", { className: "flex items-center mb-4", children: [
3235
+ /* @__PURE__ */ jsx42("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
3236
+ /* @__PURE__ */ jsxs17("div", { className: "ml-2", children: [
3237
+ /* @__PURE__ */ jsx42("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
3238
+ /* @__PURE__ */ jsx42("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
3209
3239
  ] })
3210
3240
  ] }),
3211
- /* @__PURE__ */ jsxs16("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
3212
- /* @__PURE__ */ jsxs16("div", { className: "animate-pulse", children: [
3213
- /* @__PURE__ */ jsx41("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
3214
- /* @__PURE__ */ jsx41("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
3215
- /* @__PURE__ */ jsx41("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
3216
- /* @__PURE__ */ jsx41("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
3217
- /* @__PURE__ */ jsx41("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
3241
+ /* @__PURE__ */ jsxs17("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
3242
+ /* @__PURE__ */ jsxs17("div", { className: "animate-pulse", children: [
3243
+ /* @__PURE__ */ jsx42("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
3244
+ /* @__PURE__ */ jsx42("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
3245
+ /* @__PURE__ */ jsx42("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
3246
+ /* @__PURE__ */ jsx42("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
3247
+ /* @__PURE__ */ jsx42("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
3218
3248
  ] }),
3219
- /* @__PURE__ */ jsxs16("div", { className: "animate-pulse", children: [
3220
- /* @__PURE__ */ jsx41("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
3221
- /* @__PURE__ */ jsx41("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
3222
- /* @__PURE__ */ jsx41("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
3223
- /* @__PURE__ */ jsx41("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
3224
- /* @__PURE__ */ jsx41("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
3249
+ /* @__PURE__ */ jsxs17("div", { className: "animate-pulse", children: [
3250
+ /* @__PURE__ */ jsx42("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
3251
+ /* @__PURE__ */ jsx42("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
3252
+ /* @__PURE__ */ jsx42("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
3253
+ /* @__PURE__ */ jsx42("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
3254
+ /* @__PURE__ */ jsx42("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
3225
3255
  ] }),
3226
- /* @__PURE__ */ jsxs16("div", { className: "animate-pulse", children: [
3227
- /* @__PURE__ */ jsx41("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
3228
- /* @__PURE__ */ jsx41("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
3229
- /* @__PURE__ */ jsx41("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
3230
- /* @__PURE__ */ jsx41("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
3231
- /* @__PURE__ */ jsx41("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
3256
+ /* @__PURE__ */ jsxs17("div", { className: "animate-pulse", children: [
3257
+ /* @__PURE__ */ jsx42("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
3258
+ /* @__PURE__ */ jsx42("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
3259
+ /* @__PURE__ */ jsx42("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
3260
+ /* @__PURE__ */ jsx42("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
3261
+ /* @__PURE__ */ jsx42("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
3232
3262
  ] })
3233
3263
  ] })
3234
3264
  ] }) }),
@@ -3282,7 +3312,7 @@ function FormReducer(state, action) {
3282
3312
  var FormReducer_default = FormReducer;
3283
3313
 
3284
3314
  // src/components/dataForm/DataList.tsx
3285
- import { Fragment as Fragment8, jsx as jsx42, jsxs as jsxs17 } from "react/jsx-runtime";
3315
+ import { Fragment as Fragment8, jsx as jsx43, jsxs as jsxs18 } from "react/jsx-runtime";
3286
3316
  var DataList = (props) => {
3287
3317
  const router = useRouter();
3288
3318
  let builder = new OdataBuilder(props.path);
@@ -3323,7 +3353,7 @@ var DataList = (props) => {
3323
3353
  if (path.includes(".")) {
3324
3354
  return path.split(".").reduce((prev, curr) => prev ? prev[curr] : null, obj);
3325
3355
  } else if (Array.isArray(obj[path])) {
3326
- return obj[path].map((item, index) => /* @__PURE__ */ jsx42("div", { children: item }, index));
3356
+ return obj[path].map((item, index) => /* @__PURE__ */ jsx43("div", { children: item }, index));
3327
3357
  } else {
3328
3358
  return obj[path];
3329
3359
  }
@@ -3405,30 +3435,30 @@ var DataList = (props) => {
3405
3435
  const renderPageNumbers = () => {
3406
3436
  if (pages <= 10) {
3407
3437
  return Array.from({ length: pages }, (_, index) => index + 1).map(
3408
- (page) => /* @__PURE__ */ jsx42(React28.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx42(
3438
+ (page) => /* @__PURE__ */ jsx43(React28.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx43(
3409
3439
  Hyperlink,
3410
3440
  {
3411
3441
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
3412
3442
  href: builder.getNewPageUrl(page),
3413
3443
  children: page
3414
3444
  }
3415
- ) : /* @__PURE__ */ jsx42("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)
3445
+ ) : /* @__PURE__ */ jsx43("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)
3416
3446
  );
3417
3447
  } else {
3418
3448
  const showFirstPages = activePageNumber <= 5;
3419
3449
  const showLastPages = activePageNumber > pages - 5;
3420
3450
  if (showFirstPages) {
3421
- return /* @__PURE__ */ jsxs17(Fragment8, { children: [
3422
- Array.from({ length: 8 }, (_, index) => index + 1).map((page) => /* @__PURE__ */ jsx42(React28.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx42(
3451
+ return /* @__PURE__ */ jsxs18(Fragment8, { children: [
3452
+ Array.from({ length: 8 }, (_, index) => index + 1).map((page) => /* @__PURE__ */ jsx43(React28.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx43(
3423
3453
  Hyperlink,
3424
3454
  {
3425
3455
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
3426
3456
  href: builder.getNewPageUrl(page),
3427
3457
  children: page
3428
3458
  }
3429
- ) : /* @__PURE__ */ jsx42("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)),
3430
- /* @__PURE__ */ jsx42("span", { className: "px-2 py-1", children: "..." }),
3431
- /* @__PURE__ */ jsx42(
3459
+ ) : /* @__PURE__ */ jsx43("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)),
3460
+ /* @__PURE__ */ jsx43("span", { className: "px-2 py-1", children: "..." }),
3461
+ /* @__PURE__ */ jsx43(
3432
3462
  Hyperlink,
3433
3463
  {
3434
3464
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -3436,7 +3466,7 @@ var DataList = (props) => {
3436
3466
  children: pages - 1
3437
3467
  }
3438
3468
  ),
3439
- /* @__PURE__ */ jsx42(
3469
+ /* @__PURE__ */ jsx43(
3440
3470
  Hyperlink,
3441
3471
  {
3442
3472
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -3444,7 +3474,7 @@ var DataList = (props) => {
3444
3474
  children: pages
3445
3475
  }
3446
3476
  ),
3447
- /* @__PURE__ */ jsx42("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs17(
3477
+ /* @__PURE__ */ jsx43("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs18(
3448
3478
  "select",
3449
3479
  {
3450
3480
  className: " py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
@@ -3456,18 +3486,18 @@ var DataList = (props) => {
3456
3486
  }
3457
3487
  },
3458
3488
  children: [
3459
- /* @__PURE__ */ jsx42("option", { className: "", value: "", children: "Jump to" }),
3489
+ /* @__PURE__ */ jsx43("option", { className: "", value: "", children: "Jump to" }),
3460
3490
  Array.from(
3461
3491
  { length: Math.max(0, pages - 10) },
3462
3492
  (_, index) => index + 9
3463
- ).map((page) => /* @__PURE__ */ jsx42("option", { value: page, children: page }, page))
3493
+ ).map((page) => /* @__PURE__ */ jsx43("option", { value: page, children: page }, page))
3464
3494
  ]
3465
3495
  }
3466
3496
  ) })
3467
3497
  ] });
3468
3498
  } else if (showLastPages) {
3469
- return /* @__PURE__ */ jsxs17(Fragment8, { children: [
3470
- /* @__PURE__ */ jsx42(
3499
+ return /* @__PURE__ */ jsxs18(Fragment8, { children: [
3500
+ /* @__PURE__ */ jsx43(
3471
3501
  Hyperlink,
3472
3502
  {
3473
3503
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -3475,7 +3505,7 @@ var DataList = (props) => {
3475
3505
  children: "1"
3476
3506
  }
3477
3507
  ),
3478
- /* @__PURE__ */ jsx42(
3508
+ /* @__PURE__ */ jsx43(
3479
3509
  Hyperlink,
3480
3510
  {
3481
3511
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -3483,21 +3513,21 @@ var DataList = (props) => {
3483
3513
  children: "2"
3484
3514
  }
3485
3515
  ),
3486
- /* @__PURE__ */ jsx42("span", { className: "px-2 py-1", children: "..." }),
3516
+ /* @__PURE__ */ jsx43("span", { className: "px-2 py-1", children: "..." }),
3487
3517
  Array.from({ length: 8 }, (_, index) => pages - 7 + index).map(
3488
- (page) => /* @__PURE__ */ jsx42(React28.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx42(
3518
+ (page) => /* @__PURE__ */ jsx43(React28.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx43(
3489
3519
  Hyperlink,
3490
3520
  {
3491
3521
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
3492
3522
  href: builder.getNewPageUrl(page),
3493
3523
  children: page
3494
3524
  }
3495
- ) : /* @__PURE__ */ jsx42("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)
3525
+ ) : /* @__PURE__ */ jsx43("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)
3496
3526
  )
3497
3527
  ] });
3498
3528
  } else {
3499
- return /* @__PURE__ */ jsxs17(Fragment8, { children: [
3500
- /* @__PURE__ */ jsx42(
3529
+ return /* @__PURE__ */ jsxs18(Fragment8, { children: [
3530
+ /* @__PURE__ */ jsx43(
3501
3531
  Hyperlink,
3502
3532
  {
3503
3533
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -3505,7 +3535,7 @@ var DataList = (props) => {
3505
3535
  children: "1"
3506
3536
  }
3507
3537
  ),
3508
- /* @__PURE__ */ jsx42(
3538
+ /* @__PURE__ */ jsx43(
3509
3539
  Hyperlink,
3510
3540
  {
3511
3541
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -3513,20 +3543,20 @@ var DataList = (props) => {
3513
3543
  children: "2"
3514
3544
  }
3515
3545
  ),
3516
- /* @__PURE__ */ jsx42("span", { className: "px-2 py-1", children: "..." }),
3546
+ /* @__PURE__ */ jsx43("span", { className: "px-2 py-1", children: "..." }),
3517
3547
  Array.from(
3518
3548
  { length: 5 },
3519
3549
  (_, index) => activePageNumber - 2 + index
3520
- ).map((page) => /* @__PURE__ */ jsx42(React28.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx42(
3550
+ ).map((page) => /* @__PURE__ */ jsx43(React28.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx43(
3521
3551
  Hyperlink,
3522
3552
  {
3523
3553
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
3524
3554
  href: builder.getNewPageUrl(page),
3525
3555
  children: page
3526
3556
  }
3527
- ) : /* @__PURE__ */ jsx42("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)),
3528
- /* @__PURE__ */ jsx42("span", { className: "px-2 py-1", children: "..." }),
3529
- /* @__PURE__ */ jsx42(
3557
+ ) : /* @__PURE__ */ jsx43("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)),
3558
+ /* @__PURE__ */ jsx43("span", { className: "px-2 py-1", children: "..." }),
3559
+ /* @__PURE__ */ jsx43(
3530
3560
  Hyperlink,
3531
3561
  {
3532
3562
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -3534,7 +3564,7 @@ var DataList = (props) => {
3534
3564
  children: pages - 1
3535
3565
  }
3536
3566
  ),
3537
- /* @__PURE__ */ jsx42(
3567
+ /* @__PURE__ */ jsx43(
3538
3568
  Hyperlink,
3539
3569
  {
3540
3570
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -3542,7 +3572,7 @@ var DataList = (props) => {
3542
3572
  children: pages
3543
3573
  }
3544
3574
  ),
3545
- /* @__PURE__ */ jsx42("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs17(
3575
+ /* @__PURE__ */ jsx43("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs18(
3546
3576
  "select",
3547
3577
  {
3548
3578
  className: "px-2 py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
@@ -3554,8 +3584,8 @@ var DataList = (props) => {
3554
3584
  }
3555
3585
  },
3556
3586
  children: [
3557
- /* @__PURE__ */ jsx42("option", { value: "", children: "Jump to" }),
3558
- Array.from({ length: pages - 4 }, (_, index) => index + 3).filter((page) => page > 2 && page < pages - 1).map((page) => /* @__PURE__ */ jsx42("option", { value: page, children: page }, page))
3587
+ /* @__PURE__ */ jsx43("option", { value: "", children: "Jump to" }),
3588
+ Array.from({ length: pages - 4 }, (_, index) => index + 3).filter((page) => page > 2 && page < pages - 1).map((page) => /* @__PURE__ */ jsx43("option", { value: page, children: page }, page))
3559
3589
  ]
3560
3590
  }
3561
3591
  ) })
@@ -3563,16 +3593,16 @@ var DataList = (props) => {
3563
3593
  }
3564
3594
  }
3565
3595
  };
3566
- return /* @__PURE__ */ jsxs17(React28.Fragment, { children: [
3567
- /* @__PURE__ */ jsxs17(ContentView_default, { isDataFound, children: [
3568
- (props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ jsxs17(
3596
+ return /* @__PURE__ */ jsxs18(React28.Fragment, { children: [
3597
+ /* @__PURE__ */ jsxs18(ContentView_default, { isDataFound, children: [
3598
+ (props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ jsxs18(
3569
3599
  "div",
3570
3600
  {
3571
3601
  className: `flex justify-between items-center bg-white pl-6 pr-2 h-14 mb-3 shadow-sm rounded-md sticky top-0`,
3572
3602
  children: [
3573
- props.title ? /* @__PURE__ */ jsx42("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ jsx42("h2", { className: "text-lg font-semibold text-black-800", children: props.title }) }) : /* @__PURE__ */ jsx42("div", {}),
3574
- /* @__PURE__ */ jsxs17("div", { className: "flex items-center gap-3", children: [
3575
- props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ jsx42(
3603
+ props.title ? /* @__PURE__ */ jsx43("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ jsx43("h2", { className: "text-lg font-semibold text-black-800", children: props.title }) }) : /* @__PURE__ */ jsx43("div", {}),
3604
+ /* @__PURE__ */ jsxs18("div", { className: "flex items-center gap-3", children: [
3605
+ props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ jsx43(
3576
3606
  InputControl_default,
3577
3607
  {
3578
3608
  name: "Search_input",
@@ -3585,7 +3615,7 @@ var DataList = (props) => {
3585
3615
  }
3586
3616
  }
3587
3617
  ),
3588
- props.filters && props.filters.map((filter) => /* @__PURE__ */ jsx42(
3618
+ props.filters && props.filters.map((filter) => /* @__PURE__ */ jsx43(
3589
3619
  InputControl_default,
3590
3620
  {
3591
3621
  name: filter.name,
@@ -3600,15 +3630,15 @@ var DataList = (props) => {
3600
3630
  },
3601
3631
  filter.name
3602
3632
  )),
3603
- props.addLinkHref && /* @__PURE__ */ jsxs17(
3633
+ props.addLinkHref && /* @__PURE__ */ jsxs18(
3604
3634
  Hyperlink,
3605
3635
  {
3606
3636
  className: "gap-1",
3607
3637
  linkType: "Primary" /* Solid */,
3608
3638
  href: props.addLinkHref,
3609
3639
  children: [
3610
- /* @__PURE__ */ jsx42(Icon_default, { name: "plus", className: "w-4 h-4" }),
3611
- /* @__PURE__ */ jsx42("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
3640
+ /* @__PURE__ */ jsx43(Icon_default, { name: "plus", className: "w-4 h-4" }),
3641
+ /* @__PURE__ */ jsx43("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
3612
3642
  ]
3613
3643
  }
3614
3644
  )
@@ -3616,8 +3646,8 @@ var DataList = (props) => {
3616
3646
  ]
3617
3647
  }
3618
3648
  ),
3619
- /* @__PURE__ */ jsx42("div", { className: "flex-1 overflow-y-auto justify-end bg-white rounded shadow h-[calc(100vh-14rem)]", children: /* @__PURE__ */ jsxs17("table", { className: "w-full divide-y divide-gray-200", children: [
3620
- /* @__PURE__ */ jsx42("thead", { className: "bg-gray-50 sticky top-0", children: /* @__PURE__ */ jsxs17("tr", { children: [
3649
+ /* @__PURE__ */ jsx43("div", { className: "flex-1 overflow-y-auto justify-end bg-white rounded shadow h-[calc(100vh-14rem)]", children: /* @__PURE__ */ jsxs18("table", { className: "w-full divide-y divide-gray-200", children: [
3650
+ /* @__PURE__ */ jsx43("thead", { className: "bg-gray-50 sticky top-0", children: /* @__PURE__ */ jsxs18("tr", { children: [
3621
3651
  props?.columns?.map((column) => {
3622
3652
  let url = builder.getNewOrderByUrl(column.name);
3623
3653
  let icon = "chevronUpDown";
@@ -3628,18 +3658,18 @@ var DataList = (props) => {
3628
3658
  icon = "chevronUp";
3629
3659
  url = builder.getNewOrderByUrl(column.name + " desc");
3630
3660
  }
3631
- return /* @__PURE__ */ jsx42(
3661
+ return /* @__PURE__ */ jsx43(
3632
3662
  "th",
3633
3663
  {
3634
3664
  className: "px-6 py-3 text-left font-medium bg-neutral-soft " + (column.enableSorting ? "cursor-pointer " : "") + column.width + (column.controlType == ViewControlTypes_default.money ? " text-right" : ""),
3635
- children: /* @__PURE__ */ jsx42(
3665
+ children: /* @__PURE__ */ jsx43(
3636
3666
  Hyperlink,
3637
3667
  {
3638
3668
  href: column.enableSorting ? url : void 0,
3639
3669
  className: "!text-neutral-contrast ",
3640
- children: /* @__PURE__ */ jsxs17("span", { className: "flex items-center space-x-1", children: [
3641
- /* @__PURE__ */ jsx42("span", { className: "text-black", children: column.label }),
3642
- column.enableSorting && /* @__PURE__ */ jsx42(Icon_default, { className: "w-4 h-4", name: icon })
3670
+ children: /* @__PURE__ */ jsxs18("span", { className: "flex items-center space-x-1", children: [
3671
+ /* @__PURE__ */ jsx43("span", { className: "text-black", children: column.label }),
3672
+ column.enableSorting && /* @__PURE__ */ jsx43(Icon_default, { className: "w-4 h-4", name: icon })
3643
3673
  ] })
3644
3674
  }
3645
3675
  )
@@ -3647,25 +3677,25 @@ var DataList = (props) => {
3647
3677
  column.name
3648
3678
  );
3649
3679
  }),
3650
- props.onQuickView && /* @__PURE__ */ jsx42("th", { className: "px-6 py-3 text-right font-medium bg-neutral-soft w-32 text-black", children: "Action" })
3680
+ props.onQuickView && /* @__PURE__ */ jsx43("th", { className: "px-6 py-3 text-right font-medium bg-neutral-soft w-32 text-black", children: "Action" })
3651
3681
  ] }) }),
3652
- /* @__PURE__ */ jsx42("tbody", { className: "divide-y divide-gray-200 ", children: props.dataset?.result?.map((dataitem, index) => {
3682
+ /* @__PURE__ */ jsx43("tbody", { className: "divide-y divide-gray-200 ", children: props.dataset?.result?.map((dataitem, index) => {
3653
3683
  let validityClass = "";
3654
3684
  if (props.recordValidityColumnName && getNestedProperty2(dataitem, props.recordValidityColumnName) == false) {
3655
3685
  validityClass = "bg-alert-200";
3656
3686
  }
3657
- return /* @__PURE__ */ jsxs17("tr", { className: validityClass, children: [
3687
+ return /* @__PURE__ */ jsxs18("tr", { className: validityClass, children: [
3658
3688
  props?.columns?.map((column, colindex) => {
3659
- return /* @__PURE__ */ jsx42(React28.Fragment, { children: /* @__PURE__ */ jsx42(
3689
+ return /* @__PURE__ */ jsx43(React28.Fragment, { children: /* @__PURE__ */ jsx43(
3660
3690
  "td",
3661
3691
  {
3662
3692
  className: "px-6 py-2 whitespace-normal " + (column.controlType == ViewControlTypes_default.money ? "" : ""),
3663
- children: column.addhref === true ? /* @__PURE__ */ jsx42(
3693
+ children: column.addhref === true ? /* @__PURE__ */ jsx43(
3664
3694
  Hyperlink,
3665
3695
  {
3666
3696
  className: "",
3667
3697
  href: `https://${dataitem[column.name]}`,
3668
- children: /* @__PURE__ */ jsx42(
3698
+ children: /* @__PURE__ */ jsx43(
3669
3699
  ViewControl_default,
3670
3700
  {
3671
3701
  controlType: column.controlType,
@@ -3678,11 +3708,11 @@ var DataList = (props) => {
3678
3708
  }
3679
3709
  )
3680
3710
  }
3681
- ) : column.showAsLink ? /* @__PURE__ */ jsx42(
3711
+ ) : column.showAsLink ? /* @__PURE__ */ jsx43(
3682
3712
  Hyperlink,
3683
3713
  {
3684
3714
  href: props.path + dataitem[props.columns[0].name] + "/" + (dataitem.linkUrlSegment ?? column.linkUrlSegment),
3685
- children: /* @__PURE__ */ jsx42(
3715
+ children: /* @__PURE__ */ jsx43(
3686
3716
  ViewControl_default,
3687
3717
  {
3688
3718
  controlType: column.controlType,
@@ -3692,7 +3722,7 @@ var DataList = (props) => {
3692
3722
  }
3693
3723
  )
3694
3724
  }
3695
- ) : /* @__PURE__ */ jsx42(
3725
+ ) : /* @__PURE__ */ jsx43(
3696
3726
  ViewControl_default,
3697
3727
  {
3698
3728
  controlType: column.controlType,
@@ -3704,7 +3734,7 @@ var DataList = (props) => {
3704
3734
  }
3705
3735
  ) }, colindex);
3706
3736
  }),
3707
- props.onQuickView && /* @__PURE__ */ jsx42("td", { className: "px-6 py-2 text-right whitespace-nowrap", children: /* @__PURE__ */ jsxs17(
3737
+ props.onQuickView && /* @__PURE__ */ jsx43("td", { className: "px-6 py-2 text-right whitespace-nowrap", children: /* @__PURE__ */ jsxs18(
3708
3738
  "button",
3709
3739
  {
3710
3740
  type: "button",
@@ -3714,7 +3744,7 @@ var DataList = (props) => {
3714
3744
  },
3715
3745
  className: "inline-flex items-center gap-1.5 px-3 py-1 text-xs font-semibold rounded-md border border-neutral-300 bg-white hover:bg-neutral-100 text-neutral-800 transition-colors shadow-xs",
3716
3746
  children: [
3717
- /* @__PURE__ */ jsxs17(
3747
+ /* @__PURE__ */ jsxs18(
3718
3748
  "svg",
3719
3749
  {
3720
3750
  className: "w-3.5 h-3.5",
@@ -3725,22 +3755,22 @@ var DataList = (props) => {
3725
3755
  strokeLinecap: "round",
3726
3756
  strokeLinejoin: "round",
3727
3757
  children: [
3728
- /* @__PURE__ */ jsx42("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }),
3729
- /* @__PURE__ */ jsx42("circle", { cx: "12", cy: "12", r: "3" })
3758
+ /* @__PURE__ */ jsx43("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }),
3759
+ /* @__PURE__ */ jsx43("circle", { cx: "12", cy: "12", r: "3" })
3730
3760
  ]
3731
3761
  }
3732
3762
  ),
3733
- /* @__PURE__ */ jsx42("span", { children: props.quickViewLabel || "Quick View" })
3763
+ /* @__PURE__ */ jsx43("span", { children: props.quickViewLabel || "Quick View" })
3734
3764
  ]
3735
3765
  }
3736
3766
  ) })
3737
3767
  ] }, index);
3738
3768
  }) })
3739
3769
  ] }) }),
3740
- /* @__PURE__ */ jsx42("div", { className: "pt-4 border-t border-t-gray-50 sticky bottom-0 h-11 mt-2 ", children: /* @__PURE__ */ jsxs17("div", { className: "flex items-center justify-between", children: [
3741
- /* @__PURE__ */ jsx42("div", { className: "text-gray-700", children: label }),
3742
- /* @__PURE__ */ jsxs17("div", { className: "flex space-x-2 items-center", children: [
3743
- activePageNumber > 1 && /* @__PURE__ */ jsx42(
3770
+ /* @__PURE__ */ jsx43("div", { className: "pt-4 border-t border-t-gray-50 sticky bottom-0 h-11 mt-2 ", children: /* @__PURE__ */ jsxs18("div", { className: "flex items-center justify-between", children: [
3771
+ /* @__PURE__ */ jsx43("div", { className: "text-gray-700", children: label }),
3772
+ /* @__PURE__ */ jsxs18("div", { className: "flex space-x-2 items-center", children: [
3773
+ activePageNumber > 1 && /* @__PURE__ */ jsx43(
3744
3774
  Hyperlink,
3745
3775
  {
3746
3776
  className: "px-3 py-1 rounded-l-md border border-gray-300 bg-white text-gray-500 hover:bg-gray-200",
@@ -3748,9 +3778,9 @@ var DataList = (props) => {
3748
3778
  children: "Prev"
3749
3779
  }
3750
3780
  ),
3751
- activePageNumber <= 1 && /* @__PURE__ */ jsx42("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" }),
3781
+ activePageNumber <= 1 && /* @__PURE__ */ jsx43("div", { className: "px-3 py-1 rounded-l-md border border-gray-300 bg-gray-200 text-gray-500 hover:bg-gray-200", children: "Prev" }),
3752
3782
  renderPageNumbers(),
3753
- activePageNumber < pages && /* @__PURE__ */ jsx42(
3783
+ activePageNumber < pages && /* @__PURE__ */ jsx43(
3754
3784
  Hyperlink,
3755
3785
  {
3756
3786
  className: "px-3 py-1 rounded-r-md border border-gray-300 bg-white text-gray-500 hover:bg-gray-200",
@@ -3758,19 +3788,19 @@ var DataList = (props) => {
3758
3788
  children: "Next"
3759
3789
  }
3760
3790
  ),
3761
- activePageNumber >= pages && /* @__PURE__ */ jsx42("div", { className: "px-3 py-1 rounded-r-md border border-gray-300 bg-gray-200 text-gray-500", children: "Next" })
3791
+ activePageNumber >= pages && /* @__PURE__ */ jsx43("div", { className: "px-3 py-1 rounded-r-md border border-gray-300 bg-gray-200 text-gray-500", children: "Next" })
3762
3792
  ] })
3763
3793
  ] }) })
3764
3794
  ] }),
3765
- /* @__PURE__ */ jsxs17(NoContentView_default, { isDataFound, children: [
3766
- (props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ jsxs17(
3795
+ /* @__PURE__ */ jsxs18(NoContentView_default, { isDataFound, children: [
3796
+ (props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ jsxs18(
3767
3797
  "div",
3768
3798
  {
3769
3799
  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`,
3770
3800
  children: [
3771
- props.title ? /* @__PURE__ */ jsx42("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ jsx42("h2", { className: "text-lg font-semibold text-black", children: props.title }) }) : /* @__PURE__ */ jsx42("div", {}),
3772
- /* @__PURE__ */ jsxs17("div", { className: "flex items-center gap-3", children: [
3773
- props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ jsx42(
3801
+ props.title ? /* @__PURE__ */ jsx43("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ jsx43("h2", { className: "text-lg font-semibold text-black", children: props.title }) }) : /* @__PURE__ */ jsx43("div", {}),
3802
+ /* @__PURE__ */ jsxs18("div", { className: "flex items-center gap-3", children: [
3803
+ props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ jsx43(
3774
3804
  InputControl_default,
3775
3805
  {
3776
3806
  name: "Search_input",
@@ -3783,7 +3813,7 @@ var DataList = (props) => {
3783
3813
  }
3784
3814
  }
3785
3815
  ),
3786
- props.filters && props.filters.map((filter) => /* @__PURE__ */ jsx42(
3816
+ props.filters && props.filters.map((filter) => /* @__PURE__ */ jsx43(
3787
3817
  InputControl_default,
3788
3818
  {
3789
3819
  name: filter.name,
@@ -3798,15 +3828,15 @@ var DataList = (props) => {
3798
3828
  },
3799
3829
  filter.name
3800
3830
  )),
3801
- props.addLinkHref && /* @__PURE__ */ jsxs17(
3831
+ props.addLinkHref && /* @__PURE__ */ jsxs18(
3802
3832
  Hyperlink,
3803
3833
  {
3804
3834
  className: "gap-1",
3805
3835
  linkType: "Primary" /* Solid */,
3806
3836
  href: props.addLinkHref,
3807
3837
  children: [
3808
- /* @__PURE__ */ jsx42(Icon_default, { name: "plus", className: "w-4 h-4" }),
3809
- /* @__PURE__ */ jsx42("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
3838
+ /* @__PURE__ */ jsx43(Icon_default, { name: "plus", className: "w-4 h-4" }),
3839
+ /* @__PURE__ */ jsx43("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
3810
3840
  ]
3811
3841
  }
3812
3842
  )
@@ -3814,8 +3844,8 @@ var DataList = (props) => {
3814
3844
  ]
3815
3845
  }
3816
3846
  ),
3817
- /* @__PURE__ */ jsxs17("div", { className: "flex-grow overflow-y-auto justify-end bg-white rounded shadow h-[75vh]", children: [
3818
- /* @__PURE__ */ jsx42("div", { children: /* @__PURE__ */ jsx42("table", { className: "w-full divide-y divide-gray-200", children: /* @__PURE__ */ jsx42("thead", { className: "bg-gray-50", children: /* @__PURE__ */ jsx42("tr", { children: props?.columns?.map((column) => {
3847
+ /* @__PURE__ */ jsxs18("div", { className: "flex-grow overflow-y-auto justify-end bg-white rounded shadow h-[75vh]", children: [
3848
+ /* @__PURE__ */ jsx43("div", { children: /* @__PURE__ */ jsx43("table", { className: "w-full divide-y divide-gray-200", children: /* @__PURE__ */ jsx43("thead", { className: "bg-gray-50", children: /* @__PURE__ */ jsx43("tr", { children: props?.columns?.map((column) => {
3819
3849
  let url = builder.getNewOrderByUrl(column.name);
3820
3850
  let icon = "chevronUpDown";
3821
3851
  if (orderBy.includes(`${column.name} desc`)) {
@@ -3825,18 +3855,18 @@ var DataList = (props) => {
3825
3855
  icon = "chevronUp";
3826
3856
  url = builder.getNewOrderByUrl(column.name + " desc");
3827
3857
  }
3828
- return /* @__PURE__ */ jsx42(
3858
+ return /* @__PURE__ */ jsx43(
3829
3859
  "th",
3830
3860
  {
3831
3861
  className: "px-6 py-3 text-left font-medium bg-neutral-soft " + (column.enableSorting ? "cursor-pointer " : "") + column.width + (column.controlType == ViewControlTypes_default.money ? " text-right" : ""),
3832
- children: /* @__PURE__ */ jsx42(
3862
+ children: /* @__PURE__ */ jsx43(
3833
3863
  Hyperlink,
3834
3864
  {
3835
3865
  href: column.enableSorting ? url : void 0,
3836
3866
  className: "text-body-950",
3837
- children: /* @__PURE__ */ jsxs17("span", { className: "flex items-center space-x-1", children: [
3838
- /* @__PURE__ */ jsx42("span", { children: column.label }),
3839
- column.enableSorting && /* @__PURE__ */ jsx42(Icon_default, { className: "w-4 h-4", name: icon })
3867
+ children: /* @__PURE__ */ jsxs18("span", { className: "flex items-center space-x-1", children: [
3868
+ /* @__PURE__ */ jsx43("span", { children: column.label }),
3869
+ column.enableSorting && /* @__PURE__ */ jsx43(Icon_default, { className: "w-4 h-4", name: icon })
3840
3870
  ] })
3841
3871
  }
3842
3872
  )
@@ -3844,7 +3874,7 @@ var DataList = (props) => {
3844
3874
  column.name
3845
3875
  );
3846
3876
  }) }) }) }) }),
3847
- /* @__PURE__ */ jsx42("div", { className: "w-full text-center bg-transparent pt-5", children: "There are no entries in the table at the moment." })
3877
+ /* @__PURE__ */ jsx43("div", { className: "w-full text-center bg-transparent pt-5", children: "There are no entries in the table at the moment." })
3848
3878
  ] })
3849
3879
  ] })
3850
3880
  ] });
@@ -3854,7 +3884,7 @@ var DataList_default = DataList;
3854
3884
  // src/components/dataForm/DataListRenderer.tsx
3855
3885
  import React29, { useState as useState3, useEffect as useEffect4 } from "react";
3856
3886
  import { usePathname as usePathname2 } from "next/navigation";
3857
- import { jsx as jsx43, jsxs as jsxs18 } from "react/jsx-runtime";
3887
+ import { jsx as jsx44, jsxs as jsxs19 } from "react/jsx-runtime";
3858
3888
  var viewControlMap = {
3859
3889
  number: ViewControlTypes.number,
3860
3890
  lineText: ViewControlTypes.lineText,
@@ -3949,13 +3979,13 @@ var DataListRenderer = ({
3949
3979
  isActive: landingPageUrl === pathname
3950
3980
  };
3951
3981
  });
3952
- return /* @__PURE__ */ jsxs18(React29.Fragment, { children: [
3982
+ return /* @__PURE__ */ jsxs19(React29.Fragment, { children: [
3953
3983
  resolvedTabs.length > 0 && // <NavigationTabsV2
3954
3984
  // tabs={resolvedTabs}
3955
3985
  // params={(widgetProps?.params ?? params) as Record<string, any>}
3956
3986
  // />
3957
- /* @__PURE__ */ jsx43(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
3958
- /* @__PURE__ */ jsx43(
3987
+ /* @__PURE__ */ jsx44(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
3988
+ /* @__PURE__ */ jsx44(
3959
3989
  DataList_default,
3960
3990
  {
3961
3991
  addLinkHref,
@@ -4000,7 +4030,7 @@ var FORM_CHILD_ONE_TO_ONE_UPDATE = "FORM_CHILD_ONE_TO_ONE_UPDATE";
4000
4030
  var FORM_CHILD_ROW_ADD = "FORM_CHILD_ROW_ADD";
4001
4031
 
4002
4032
  // src/components/dataForm/DataFormChildSection.tsx
4003
- import { jsx as jsx44, jsxs as jsxs19 } from "react/jsx-runtime";
4033
+ import { jsx as jsx45, jsxs as jsxs20 } from "react/jsx-runtime";
4004
4034
  var DataFormChildSection = (props) => {
4005
4035
  const { section } = props;
4006
4036
  const isOneToOne = section.relationshipType === "one-to-one";
@@ -4068,14 +4098,14 @@ var DataFormChildSection = (props) => {
4068
4098
  childItemsToRender,
4069
4099
  allChildItems: childItems
4070
4100
  });
4071
- return /* @__PURE__ */ jsx44(React30.Fragment, { children: /* @__PURE__ */ jsxs19("div", { className: "rounded border-neutral-200 border px-6 py-4 mb-2", children: [
4072
- section.sectionTitle && /* @__PURE__ */ jsx44("div", { className: "mb-4 text-lg font-medium text-body-950", children: section.sectionTitle }),
4073
- /* @__PURE__ */ jsx44("div", { className: "flex-grow flex flex-col justify-between overflow-y-auto", children: /* @__PURE__ */ jsxs19("div", { className: "flex flex-col justify-between gap-2", children: [
4074
- /* @__PURE__ */ jsx44("div", { children: /* @__PURE__ */ jsxs19("table", { className: "w-full border-separate divide-y divide-gray-200", children: [
4075
- (!isOneToOne || childItemsToRender.length > 0) && /* @__PURE__ */ jsx44("thead", { className: "", children: section.sectionRows.map((sectionRow, sectionRowIndex) => {
4076
- return /* @__PURE__ */ jsxs19("tr", { className: "", children: [
4101
+ return /* @__PURE__ */ jsx45(React30.Fragment, { children: /* @__PURE__ */ jsxs20("div", { className: "rounded border-neutral-200 border px-6 py-4 mb-2", children: [
4102
+ section.sectionTitle && /* @__PURE__ */ jsx45("div", { className: "mb-4 text-lg font-medium text-body-950", children: section.sectionTitle }),
4103
+ /* @__PURE__ */ jsx45("div", { className: "flex-grow flex flex-col justify-between overflow-y-auto", children: /* @__PURE__ */ jsxs20("div", { className: "flex flex-col justify-between gap-2", children: [
4104
+ /* @__PURE__ */ jsx45("div", { children: /* @__PURE__ */ jsxs20("table", { className: "w-full border-separate divide-y divide-gray-200", children: [
4105
+ (!isOneToOne || childItemsToRender.length > 0) && /* @__PURE__ */ jsx45("thead", { className: "", children: section.sectionRows.map((sectionRow, sectionRowIndex) => {
4106
+ return /* @__PURE__ */ jsxs20("tr", { className: "", children: [
4077
4107
  sectionRow.elements.map((field, index) => {
4078
- return /* @__PURE__ */ jsx44(
4108
+ return /* @__PURE__ */ jsx45(
4079
4109
  "th",
4080
4110
  {
4081
4111
  className: "py-3 font-normal text-left",
@@ -4084,21 +4114,21 @@ var DataFormChildSection = (props) => {
4084
4114
  field.name
4085
4115
  );
4086
4116
  }),
4087
- !section.readonly && !isOneToOne && /* @__PURE__ */ jsx44("th", { className: "py-3 font-normal text-left", children: "Actions" })
4117
+ !section.readonly && !isOneToOne && /* @__PURE__ */ jsx45("th", { className: "py-3 font-normal text-left", children: "Actions" })
4088
4118
  ] }, sectionRowIndex);
4089
4119
  }) }),
4090
- /* @__PURE__ */ jsx44("tbody", { className: "divide-y divide-gray-200", children: childItemsToRender.map((visibleItem, filteredIndex) => {
4120
+ /* @__PURE__ */ jsx45("tbody", { className: "divide-y divide-gray-200", children: childItemsToRender.map((visibleItem, filteredIndex) => {
4091
4121
  const { item, originalIndex } = visibleItem;
4092
4122
  const rowKey = originalIndex;
4093
- return /* @__PURE__ */ jsx44(React30.Fragment, { children: section.sectionRows.map(
4123
+ return /* @__PURE__ */ jsx45(React30.Fragment, { children: section.sectionRows.map(
4094
4124
  (sectionRow, sectionRowIndex) => {
4095
- return /* @__PURE__ */ jsxs19(
4125
+ return /* @__PURE__ */ jsxs20(
4096
4126
  "tr",
4097
4127
  {
4098
4128
  className: "",
4099
4129
  children: [
4100
4130
  sectionRow.elements.map((field, index) => {
4101
- return /* @__PURE__ */ jsx44("td", { children: /* @__PURE__ */ jsx44("div", { className: "flex-1", children: /* @__PURE__ */ jsx44("div", { className: "w-11/12", children: /* @__PURE__ */ jsx44(
4131
+ return /* @__PURE__ */ jsx45("td", { children: /* @__PURE__ */ jsx45("div", { className: "flex-1", children: /* @__PURE__ */ jsx45("div", { className: "w-11/12", children: /* @__PURE__ */ jsx45(
4102
4132
  InputControl_default,
4103
4133
  {
4104
4134
  index: filteredIndex,
@@ -4118,7 +4148,7 @@ var DataFormChildSection = (props) => {
4118
4148
  }
4119
4149
  ) }) }) }, field.name);
4120
4150
  }),
4121
- !section.readonly && !isOneToOne && /* @__PURE__ */ jsx44("td", { children: /* @__PURE__ */ jsx44(
4151
+ !section.readonly && !isOneToOne && /* @__PURE__ */ jsx45("td", { children: /* @__PURE__ */ jsx45(
4122
4152
  ClientButton_default,
4123
4153
  {
4124
4154
  ButtonType: StyleTypes2.Hollow,
@@ -4127,7 +4157,7 @@ var DataFormChildSection = (props) => {
4127
4157
  },
4128
4158
  dataRole: "delete",
4129
4159
  tabIndex: -1,
4130
- children: /* @__PURE__ */ jsx44(
4160
+ children: /* @__PURE__ */ jsx45(
4131
4161
  Icon_default,
4132
4162
  {
4133
4163
  className: "w-4 h-4",
@@ -4144,7 +4174,7 @@ var DataFormChildSection = (props) => {
4144
4174
  ) }, rowKey);
4145
4175
  }) })
4146
4176
  ] }) }),
4147
- !section.readonly && !isOneToOne && /* @__PURE__ */ jsx44("div", { className: "ml-1", children: /* @__PURE__ */ jsx44(
4177
+ !section.readonly && !isOneToOne && /* @__PURE__ */ jsx45("div", { className: "ml-1", children: /* @__PURE__ */ jsx45(
4148
4178
  ClientButton_default,
4149
4179
  {
4150
4180
  ButtonType: "Link" /* Link */,
@@ -4159,7 +4189,7 @@ var DataFormChildSection = (props) => {
4159
4189
  var DataFormChildSection_default = DataFormChildSection;
4160
4190
 
4161
4191
  // src/components/dataForm/DataForm.tsx
4162
- import { jsx as jsx45, jsxs as jsxs20 } from "react/jsx-runtime";
4192
+ import { jsx as jsx46, jsxs as jsxs21 } from "react/jsx-runtime";
4163
4193
  var DataForm = (props) => {
4164
4194
  const formRef = useRef2(null);
4165
4195
  console.log(props.dataItem, "dssads");
@@ -4379,19 +4409,19 @@ var DataForm = (props) => {
4379
4409
  return false;
4380
4410
  }
4381
4411
  }
4382
- return /* @__PURE__ */ jsx45(React31.Fragment, { children: /* @__PURE__ */ jsxs20("div", { className: "flex-grow flex flex-col", children: [
4383
- props.title && /* @__PURE__ */ jsx45("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__ */ jsxs20(
4412
+ return /* @__PURE__ */ jsx46(React31.Fragment, { children: /* @__PURE__ */ jsxs21("div", { className: "flex-grow flex flex-col", children: [
4413
+ props.title && /* @__PURE__ */ jsx46("div", { className: "inline-flex items-center gap-2 px-6 py-3 border border-neutral-200 bg-white shadow-sm rounded-t-md", children: /* @__PURE__ */ jsxs21(
4384
4414
  "div",
4385
4415
  {
4386
4416
  className: "inline-flex items-center gap-2 cursor-pointer",
4387
4417
  onClick: () => window.history.back(),
4388
4418
  children: [
4389
- /* @__PURE__ */ jsx45(Icon_default, { name: "chevronLeft", className: "w-4 h-4 text-primary-800" }),
4390
- /* @__PURE__ */ jsx45("h2", { className: "text-lg font-semibold text-primary-800", children: props.title })
4419
+ /* @__PURE__ */ jsx46(Icon_default, { name: "chevronLeft", className: "w-4 h-4 text-primary-800" }),
4420
+ /* @__PURE__ */ jsx46("h2", { className: "text-lg font-semibold text-primary-800", children: props.title })
4391
4421
  ]
4392
4422
  }
4393
4423
  ) }),
4394
- /* @__PURE__ */ jsx45(
4424
+ /* @__PURE__ */ jsx46(
4395
4425
  "form",
4396
4426
  {
4397
4427
  className: "group space-y-6 pb-6 overflow-y-auto",
@@ -4412,8 +4442,8 @@ var DataForm = (props) => {
4412
4442
  }
4413
4443
  }
4414
4444
  },
4415
- children: /* @__PURE__ */ jsx45("div", { className: "flex flex-col gap-6", children: props.sections?.map((section, sectionIndex) => {
4416
- return /* @__PURE__ */ jsx45(React31.Fragment, { children: !section.isChildSection && /* @__PURE__ */ jsxs20("div", { className: " rounded-b-lg bg-white shadow border-neutral-200 border px-8 py-6 ", children: [
4445
+ children: /* @__PURE__ */ jsx46("div", { className: "flex flex-col gap-6", children: props.sections?.map((section, sectionIndex) => {
4446
+ return /* @__PURE__ */ jsx46(React31.Fragment, { children: !section.isChildSection && /* @__PURE__ */ jsxs21("div", { className: " rounded-b-lg bg-white shadow border-neutral-200 border px-8 py-6 ", children: [
4417
4447
  section.sectionRows?.map(
4418
4448
  (sectionRow, sectionRowIndex) => {
4419
4449
  const elementsCount = sectionRow.elements.length;
@@ -4424,14 +4454,14 @@ var DataForm = (props) => {
4424
4454
  sectionRow.visible
4425
4455
  );
4426
4456
  }
4427
- return /* @__PURE__ */ jsx45(React31.Fragment, { children: isVisible && /* @__PURE__ */ jsx45("div", { className: "lg:flex gap-14 flex-1 mb-4 ", children: sectionRow.elements.map((field, index) => {
4428
- return /* @__PURE__ */ jsxs20(
4457
+ return /* @__PURE__ */ jsx46(React31.Fragment, { children: isVisible && /* @__PURE__ */ jsx46("div", { className: "lg:flex gap-14 flex-1 mb-4 ", children: sectionRow.elements.map((field, index) => {
4458
+ return /* @__PURE__ */ jsxs21(
4429
4459
  "div",
4430
4460
  {
4431
4461
  className: sectionRow.grow ? "grow" : "",
4432
4462
  children: [
4433
- /* @__PURE__ */ jsx45("div", { children: field.controlType }),
4434
- /* @__PURE__ */ jsx45(
4463
+ /* @__PURE__ */ jsx46("div", { children: field.controlType }),
4464
+ /* @__PURE__ */ jsx46(
4435
4465
  InputControl_default,
4436
4466
  {
4437
4467
  name: field.name,
@@ -4461,12 +4491,12 @@ var DataForm = (props) => {
4461
4491
  }) }) }, sectionRowIndex);
4462
4492
  }
4463
4493
  ),
4464
- /* @__PURE__ */ jsx45("div", { children: section.childSections?.map(
4494
+ /* @__PURE__ */ jsx46("div", { children: section.childSections?.map(
4465
4495
  (childSection, childSectionIndex) => {
4466
- return /* @__PURE__ */ jsx45("div", { children: childSection.name && evalutateCondition(
4496
+ return /* @__PURE__ */ jsx46("div", { children: childSection.name && evalutateCondition(
4467
4497
  formState.inputValues,
4468
4498
  childSection.visible
4469
- ) && /* @__PURE__ */ jsx45(
4499
+ ) && /* @__PURE__ */ jsx46(
4470
4500
  DataFormChildSection_default,
4471
4501
  {
4472
4502
  section: childSection,
@@ -4481,8 +4511,8 @@ var DataForm = (props) => {
4481
4511
  }) })
4482
4512
  }
4483
4513
  ),
4484
- /* @__PURE__ */ jsxs20("div", { className: "flex px-6 py-3 mt-2 mb-2 justify-end items-center gap-5", children: [
4485
- /* @__PURE__ */ jsx45("div", { children: props.additionalActions && /* @__PURE__ */ jsx45(
4514
+ /* @__PURE__ */ jsxs21("div", { className: "flex px-6 py-3 mt-2 mb-2 justify-end items-center gap-5", children: [
4515
+ /* @__PURE__ */ jsx46("div", { children: props.additionalActions && /* @__PURE__ */ jsx46(
4486
4516
  Button_default,
4487
4517
  {
4488
4518
  ButtonType: "PrimaryHollow" /* Hollow */,
@@ -4490,7 +4520,7 @@ var DataForm = (props) => {
4490
4520
  children: props.additionalActions.title
4491
4521
  }
4492
4522
  ) }),
4493
- /* @__PURE__ */ jsx45("div", { children: props.onDelete && /* @__PURE__ */ jsx45(
4523
+ /* @__PURE__ */ jsx46("div", { children: props.onDelete && /* @__PURE__ */ jsx46(
4494
4524
  Button_default,
4495
4525
  {
4496
4526
  ButtonType: "PrimaryHollow" /* Hollow */,
@@ -4501,7 +4531,7 @@ var DataForm = (props) => {
4501
4531
  children: "Delete"
4502
4532
  }
4503
4533
  ) }),
4504
- /* @__PURE__ */ jsx45("div", { children: props.onClick && /* @__PURE__ */ jsx45(
4534
+ /* @__PURE__ */ jsx46("div", { children: props.onClick && /* @__PURE__ */ jsx46(
4505
4535
  Button_default,
4506
4536
  {
4507
4537
  onValidate,
@@ -4518,7 +4548,7 @@ var DataForm = (props) => {
4518
4548
  var DataForm_default = DataForm;
4519
4549
 
4520
4550
  // src/components/dataForm/DataFormRenderer.tsx
4521
- import { jsx as jsx46, jsxs as jsxs21 } from "react/jsx-runtime";
4551
+ import { jsx as jsx47, jsxs as jsxs22 } from "react/jsx-runtime";
4522
4552
  function getAction(actions, code) {
4523
4553
  return actions?.find((a) => a.actionCode === code);
4524
4554
  }
@@ -4544,9 +4574,9 @@ var DataFormRenderer = ({
4544
4574
  "Delete"
4545
4575
  );
4546
4576
  const hasDataItem = dataItem && Object.keys(dataItem).length > 0;
4547
- return /* @__PURE__ */ jsxs21("div", { className: "flex-grow flex flex-col", children: [
4548
- widgetProps && /* @__PURE__ */ jsx46(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
4549
- /* @__PURE__ */ jsx46(
4577
+ return /* @__PURE__ */ jsxs22("div", { className: "flex-grow flex flex-col", children: [
4578
+ widgetProps && /* @__PURE__ */ jsx47(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
4579
+ /* @__PURE__ */ jsx47(
4550
4580
  DataForm_default,
4551
4581
  {
4552
4582
  title: !isAddPage ? "Edit " + formDefinition.formTitle + "- v2" : "Add " + formDefinition.formTitle + "- v2",