@clyrex-digital/clyrex-controls-dev 0.8.1-dev.20260827101843 → 0.8.1-dev.20260829044749

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.js CHANGED
@@ -959,12 +959,62 @@ var init_commentParser = __esm({
959
959
  });
960
960
 
961
961
  // src/components/controls/view/commentImages.ts
962
- var pickUrl, pickAlt, resolveCommentImageUrl, collectCommentImages;
962
+ var INDIVIDUAL_IMAGE_THRESHOLD, MAX_VISIBLE_GALLERY_IMAGES, isImageNode, flattenText, isBlankFiller, groupConsecutiveImages, pickUrl, pickAlt, resolveCommentImageUrl, collectCommentImages;
963
963
  var init_commentImages = __esm({
964
964
  "src/components/controls/view/commentImages.ts"() {
965
965
  "use strict";
966
966
  init_AssetUtility();
967
967
  init_commentTypes();
968
+ INDIVIDUAL_IMAGE_THRESHOLD = 1;
969
+ MAX_VISIBLE_GALLERY_IMAGES = 4;
970
+ isImageNode = (node) => !!node && !isTextNode(node) && asElementNode(node).type === "image";
971
+ flattenText = (node) => {
972
+ if (!node) return "";
973
+ if (isTextNode(node)) return node.text ?? "";
974
+ return (asElementNode(node).children ?? []).map(flattenText).join("");
975
+ };
976
+ isBlankFiller = (node) => {
977
+ if (!node || isTextNode(node)) return false;
978
+ const element = asElementNode(node);
979
+ if (element.type === "linebreak" || element.type === "line-break") return true;
980
+ if (element.type === "paragraph") return flattenText(node).trim() === "";
981
+ return false;
982
+ };
983
+ groupConsecutiveImages = (nodes) => {
984
+ const groups = [];
985
+ let i = 0;
986
+ while (i < nodes.length) {
987
+ const node = nodes[i];
988
+ if (!isImageNode(node)) {
989
+ groups.push({ kind: "other", node });
990
+ i += 1;
991
+ continue;
992
+ }
993
+ const runImages = [asElementNode(node)];
994
+ let cursor = i + 1;
995
+ while (cursor < nodes.length) {
996
+ if (isImageNode(nodes[cursor])) {
997
+ runImages.push(asElementNode(nodes[cursor]));
998
+ cursor += 1;
999
+ continue;
1000
+ }
1001
+ if (isBlankFiller(nodes[cursor])) {
1002
+ let peek = cursor + 1;
1003
+ while (peek < nodes.length && isBlankFiller(nodes[peek])) {
1004
+ peek += 1;
1005
+ }
1006
+ if (peek < nodes.length && isImageNode(nodes[peek])) {
1007
+ cursor = peek;
1008
+ continue;
1009
+ }
1010
+ }
1011
+ break;
1012
+ }
1013
+ groups.push({ kind: "images", nodes: runImages });
1014
+ i = cursor;
1015
+ }
1016
+ return groups;
1017
+ };
968
1018
  pickUrl = (node) => typeof node.url === "string" && node.url || typeof node.src === "string" && node.src || typeof node.assetUrl === "string" && node.assetUrl || "";
969
1019
  pickAlt = (node) => typeof node.fileName === "string" && node.fileName || typeof node.altText === "string" && node.altText || typeof node.alt === "string" && node.alt || "";
970
1020
  resolveCommentImageUrl = (node, assetBaseUrl) => {
@@ -1250,9 +1300,12 @@ var init_CommentImageNode = __esm({
1250
1300
  loading: "lazy",
1251
1301
  onClick: clickable ? () => preview?.openPreview(resolvedUrl) : void 0,
1252
1302
  style: {
1253
- maxWidth: "100%",
1254
- height: "auto",
1255
1303
  display: "block",
1304
+ width: "auto",
1305
+ height: "auto",
1306
+ objectFit: "cover",
1307
+ borderRadius: "0.375rem",
1308
+ margin: "0.5rem 0",
1256
1309
  cursor: clickable ? "zoom-in" : "default"
1257
1310
  }
1258
1311
  }
@@ -1765,12 +1818,96 @@ var init_CommentNodeRenderer = __esm({
1765
1818
  }
1766
1819
  });
1767
1820
 
1821
+ // src/components/controls/view/CommentImageGallery.tsx
1822
+ var import_jsx_runtime26, gridStyle, cellStyle, cellImgStyle, moreOverlayStyle, CommentImageGallery, CommentImageGallery_default;
1823
+ var init_CommentImageGallery = __esm({
1824
+ "src/components/controls/view/CommentImageGallery.tsx"() {
1825
+ "use strict";
1826
+ "use client";
1827
+ init_commentImages();
1828
+ init_CommentImagePreviewContext();
1829
+ import_jsx_runtime26 = require("react/jsx-runtime");
1830
+ gridStyle = {
1831
+ display: "grid",
1832
+ gridTemplateColumns: "repeat(2, 1fr)",
1833
+ gap: "2px",
1834
+ borderRadius: "0.375rem",
1835
+ overflow: "hidden",
1836
+ margin: "0.5rem 0"
1837
+ };
1838
+ cellStyle = {
1839
+ position: "relative",
1840
+ display: "block",
1841
+ aspectRatio: "1",
1842
+ width: "100%",
1843
+ padding: 0,
1844
+ border: "none",
1845
+ background: "none",
1846
+ cursor: "zoom-in",
1847
+ overflow: "hidden"
1848
+ };
1849
+ cellImgStyle = {
1850
+ display: "block",
1851
+ width: "100%",
1852
+ height: "100%",
1853
+ objectFit: "cover"
1854
+ };
1855
+ moreOverlayStyle = {
1856
+ position: "absolute",
1857
+ inset: 0,
1858
+ display: "flex",
1859
+ alignItems: "center",
1860
+ justifyContent: "center",
1861
+ background: "rgba(0, 0, 0, 0.5)",
1862
+ color: "#fff",
1863
+ fontSize: "1.25rem",
1864
+ fontWeight: 600
1865
+ };
1866
+ CommentImageGallery = ({ nodes, assetBaseUrl }) => {
1867
+ const preview = useCommentImagePreview();
1868
+ const cells = nodes.map((node) => ({
1869
+ id: typeof node.id === "string" && node.id || void 0,
1870
+ src: resolveCommentImageUrl(node, assetBaseUrl),
1871
+ alt: typeof node.fileName === "string" && node.fileName || typeof node.alt === "string" && node.alt || ""
1872
+ })).filter((cell) => !!cell.src);
1873
+ if (cells.length === 0) {
1874
+ return null;
1875
+ }
1876
+ const visibleCount = Math.min(cells.length, MAX_VISIBLE_GALLERY_IMAGES);
1877
+ const remaining = cells.length - MAX_VISIBLE_GALLERY_IMAGES;
1878
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "comment-image-gallery", style: gridStyle, children: cells.slice(0, visibleCount).map((cell, i) => {
1879
+ const isLastVisible = i === visibleCount - 1;
1880
+ const showMoreOverlay = isLastVisible && remaining > 0;
1881
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
1882
+ "button",
1883
+ {
1884
+ type: "button",
1885
+ className: "comment-image-gallery-cell",
1886
+ style: cellStyle,
1887
+ "aria-label": showMoreOverlay ? `Show ${remaining} more photo${remaining === 1 ? "" : "s"}` : cell.alt || "View image",
1888
+ onClick: () => preview?.openPreview(cell.src),
1889
+ children: [
1890
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("img", { src: cell.src, alt: cell.alt, loading: "lazy", style: cellImgStyle }),
1891
+ showMoreOverlay ? /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("span", { className: "comment-image-gallery-more-overlay", style: moreOverlayStyle, children: [
1892
+ "+",
1893
+ remaining
1894
+ ] }) : null
1895
+ ]
1896
+ },
1897
+ cell.id ?? `comment-gallery-${i}`
1898
+ );
1899
+ }) });
1900
+ };
1901
+ CommentImageGallery_default = CommentImageGallery;
1902
+ }
1903
+ });
1904
+
1768
1905
  // src/components/controls/view/CommentRendererClient.tsx
1769
1906
  var CommentRendererClient_exports = {};
1770
1907
  __export(CommentRendererClient_exports, {
1771
1908
  default: () => CommentRendererClient_default
1772
1909
  });
1773
- var import_react20, import_jsx_runtime26, CommentRendererClient, CommentRendererClient_default;
1910
+ var import_react20, import_jsx_runtime27, CommentRendererClient, CommentRendererClient_default;
1774
1911
  var init_CommentRendererClient = __esm({
1775
1912
  "src/components/controls/view/CommentRendererClient.tsx"() {
1776
1913
  "use strict";
@@ -1779,8 +1916,9 @@ var init_CommentRendererClient = __esm({
1779
1916
  init_commentParser();
1780
1917
  init_commentImages();
1781
1918
  init_CommentNodeRenderer();
1919
+ init_CommentImageGallery();
1782
1920
  init_CommentImagePreviewContext();
1783
- import_jsx_runtime26 = require("react/jsx-runtime");
1921
+ import_jsx_runtime27 = require("react/jsx-runtime");
1784
1922
  CommentRendererClient = ({ value, className, assetBaseUrl, apiBaseUrl }) => {
1785
1923
  const nodes = import_react20.default.useMemo(() => parseSerializedContent(value), [value]);
1786
1924
  const resolvedAssetBaseUrl = assetBaseUrl ?? apiBaseUrl;
@@ -1788,29 +1926,54 @@ var init_CommentRendererClient = __esm({
1788
1926
  () => collectCommentImages(nodes, resolvedAssetBaseUrl),
1789
1927
  [nodes, resolvedAssetBaseUrl]
1790
1928
  );
1929
+ const groups = import_react20.default.useMemo(() => groupConsecutiveImages(nodes), [nodes]);
1791
1930
  if (!nodes || nodes.length === 0) {
1792
1931
  return null;
1793
1932
  }
1794
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(CommentImagePreviewProvider, { images, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: className ?? "comment-renderer", children: nodes.map((node, index) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1795
- CommentNodeRenderer_default,
1796
- {
1797
- node,
1798
- assetBaseUrl: resolvedAssetBaseUrl
1799
- },
1800
- node.id ?? `comment-node-${index}`
1801
- )) }) });
1933
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(CommentImagePreviewProvider, { images, children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: className ?? "comment-renderer", children: groups.map((group, groupIndex) => {
1934
+ if (group.kind === "images") {
1935
+ const key = group.nodes[0]?.id ?? `comment-group-${groupIndex}`;
1936
+ if (group.nodes.length <= INDIVIDUAL_IMAGE_THRESHOLD) {
1937
+ return group.nodes.map((node2, i) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1938
+ CommentNodeRenderer_default,
1939
+ {
1940
+ node: node2,
1941
+ assetBaseUrl: resolvedAssetBaseUrl
1942
+ },
1943
+ node2.id ?? `${key}-${i}`
1944
+ ));
1945
+ }
1946
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1947
+ CommentImageGallery_default,
1948
+ {
1949
+ nodes: group.nodes,
1950
+ assetBaseUrl: resolvedAssetBaseUrl
1951
+ },
1952
+ key
1953
+ );
1954
+ }
1955
+ const node = group.node;
1956
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1957
+ CommentNodeRenderer_default,
1958
+ {
1959
+ node,
1960
+ assetBaseUrl: resolvedAssetBaseUrl
1961
+ },
1962
+ node.id ?? `comment-group-${groupIndex}`
1963
+ );
1964
+ }) }) });
1802
1965
  };
1803
1966
  CommentRendererClient_default = CommentRendererClient;
1804
1967
  }
1805
1968
  });
1806
1969
 
1807
1970
  // src/components/controls/edit/MultilineTextInput.tsx
1808
- var import_react22, import_jsx_runtime28, MultilineTextInput, MultilineTextInput_default;
1971
+ var import_react22, import_jsx_runtime29, MultilineTextInput, MultilineTextInput_default;
1809
1972
  var init_MultilineTextInput = __esm({
1810
1973
  "src/components/controls/edit/MultilineTextInput.tsx"() {
1811
1974
  "use strict";
1812
1975
  import_react22 = __toESM(require("react"));
1813
- import_jsx_runtime28 = require("react/jsx-runtime");
1976
+ import_jsx_runtime29 = require("react/jsx-runtime");
1814
1977
  MultilineTextInput = (props) => {
1815
1978
  const textChangeHandler = (event) => {
1816
1979
  const text = event.target.value;
@@ -1829,11 +1992,11 @@ var init_MultilineTextInput = __esm({
1829
1992
  if (props.value !== void 0 && props.value !== null) {
1830
1993
  value = props.value;
1831
1994
  }
1832
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_react22.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("label", { className: "block mb-1", children: [
1833
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
1995
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react22.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("label", { className: "block mb-1", children: [
1996
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
1834
1997
  " ",
1835
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "bg-error-weak", children: "*" }),
1836
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1998
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "bg-error-weak", children: "*" }),
1999
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1837
2000
  "textarea",
1838
2001
  {
1839
2002
  name: props.name,
@@ -1850,7 +2013,7 @@ var init_MultilineTextInput = __esm({
1850
2013
  className: "peer mt-1 py-1.5 block w-full rounded shadow-sm input"
1851
2014
  }
1852
2015
  ),
1853
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
2016
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
1854
2017
  ] }) });
1855
2018
  };
1856
2019
  MultilineTextInput_default = MultilineTextInput;
@@ -1858,12 +2021,12 @@ var init_MultilineTextInput = __esm({
1858
2021
  });
1859
2022
 
1860
2023
  // src/components/controls/edit/LineTextInput.tsx
1861
- var import_react23, import_jsx_runtime29, LineTextInput, LineTextInput_default;
2024
+ var import_react23, import_jsx_runtime30, LineTextInput, LineTextInput_default;
1862
2025
  var init_LineTextInput = __esm({
1863
2026
  "src/components/controls/edit/LineTextInput.tsx"() {
1864
2027
  "use strict";
1865
2028
  import_react23 = __toESM(require("react"));
1866
- import_jsx_runtime29 = require("react/jsx-runtime");
2029
+ import_jsx_runtime30 = require("react/jsx-runtime");
1867
2030
  LineTextInput = (props) => {
1868
2031
  const textChangeHandler = (event) => {
1869
2032
  const text = event.target.value;
@@ -1882,11 +2045,11 @@ var init_LineTextInput = __esm({
1882
2045
  if (props.value !== void 0 && props.value !== null) {
1883
2046
  value = props.value;
1884
2047
  }
1885
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react23.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("label", { className: "block", children: [
1886
- props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "text-sm inline-block pb-1 font-medium ", children: props?.attributes?.label }),
2048
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react23.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("label", { className: "block", children: [
2049
+ props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "text-sm inline-block pb-1 font-medium ", children: props?.attributes?.label }),
1887
2050
  " ",
1888
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "bg-error-weak !bg-transparent", children: "*" }),
1889
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
2051
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "bg-error-weak !bg-transparent", children: "*" }),
2052
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1890
2053
  "input",
1891
2054
  {
1892
2055
  type: "text",
@@ -1906,7 +2069,7 @@ var init_LineTextInput = __esm({
1906
2069
  `
1907
2070
  }
1908
2071
  ),
1909
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
2072
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
1910
2073
  ] }) });
1911
2074
  };
1912
2075
  LineTextInput_default = LineTextInput;
@@ -1914,12 +2077,12 @@ var init_LineTextInput = __esm({
1914
2077
  });
1915
2078
 
1916
2079
  // src/components/controls/edit/MoneyInput.tsx
1917
- var import_react24, import_jsx_runtime30, MoneyInput, MoneyInput_default;
2080
+ var import_react24, import_jsx_runtime31, MoneyInput, MoneyInput_default;
1918
2081
  var init_MoneyInput = __esm({
1919
2082
  "src/components/controls/edit/MoneyInput.tsx"() {
1920
2083
  "use strict";
1921
2084
  import_react24 = __toESM(require("react"));
1922
- import_jsx_runtime30 = require("react/jsx-runtime");
2085
+ import_jsx_runtime31 = require("react/jsx-runtime");
1923
2086
  MoneyInput = (props) => {
1924
2087
  const textChangeHandler = (event) => {
1925
2088
  const rawValue = event.target.value;
@@ -1948,11 +2111,11 @@ var init_MoneyInput = __esm({
1948
2111
  e.preventDefault();
1949
2112
  }
1950
2113
  };
1951
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react24.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("label", { className: "block mb-1", children: [
1952
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
2114
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react24.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("label", { className: "block mb-1", children: [
2115
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
1953
2116
  " ",
1954
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "bg-error-weak", children: "*" }),
1955
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2117
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "bg-error-weak", children: "*" }),
2118
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1956
2119
  "input",
1957
2120
  {
1958
2121
  type: "number",
@@ -1972,7 +2135,7 @@ var init_MoneyInput = __esm({
1972
2135
  className: "peer mt-1 py-1.5 block w-full rounded shadow-sm number-input"
1973
2136
  }
1974
2137
  ),
1975
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
2138
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
1976
2139
  ] }) });
1977
2140
  };
1978
2141
  MoneyInput_default = MoneyInput;
@@ -2018,12 +2181,12 @@ var init_InputControlType = __esm({
2018
2181
  });
2019
2182
 
2020
2183
  // src/components/controls/edit/Select.tsx
2021
- var import_react25, import_jsx_runtime31, Select, Select_default;
2184
+ var import_react25, import_jsx_runtime32, Select, Select_default;
2022
2185
  var init_Select = __esm({
2023
2186
  "src/components/controls/edit/Select.tsx"() {
2024
2187
  "use strict";
2025
2188
  import_react25 = require("react");
2026
- import_jsx_runtime31 = require("react/jsx-runtime");
2189
+ import_jsx_runtime32 = require("react/jsx-runtime");
2027
2190
  Select = (props) => {
2028
2191
  const [list, setList] = (0, import_react25.useState)();
2029
2192
  const getSafeValue = (val) => {
@@ -2095,11 +2258,11 @@ var init_Select = __esm({
2095
2258
  props.dataSourceDependsOn
2096
2259
  ]);
2097
2260
  const value = getSafeValue(props.value);
2098
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("label", { className: "block", children: [
2099
- props.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-sm font-medium inline-block pb-1", children: props.attributes?.label }),
2261
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("label", { className: "block", children: [
2262
+ props.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "text-sm font-medium inline-block pb-1", children: props.attributes?.label }),
2100
2263
  " ",
2101
- props.attributes?.label && props.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "bg-error-weak", children: "*" }),
2102
- list && list.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2264
+ props.attributes?.label && props.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "bg-error-weak", children: "*" }),
2265
+ list && list.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
2103
2266
  "input",
2104
2267
  {
2105
2268
  type: "text",
@@ -2116,7 +2279,7 @@ var init_Select = __esm({
2116
2279
  className: `peer input select mt-1 py-1.5 block w-full rounded shadow-sm ${props.inputClasses ?? ""}`
2117
2280
  }
2118
2281
  ),
2119
- list && list.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
2282
+ list && list.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
2120
2283
  "select",
2121
2284
  {
2122
2285
  name: props.name,
@@ -2129,16 +2292,16 @@ var init_Select = __esm({
2129
2292
  focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50
2130
2293
  disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none ${props.inputClasses ?? ""}`,
2131
2294
  children: [
2132
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("option", { value: "", children: props.attributes?.placeholder || "Select" }),
2295
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("option", { value: "", children: props.attributes?.placeholder || "Select" }),
2133
2296
  list.map((item, index) => {
2134
2297
  const keyField = props.dataKeyFieldName;
2135
2298
  const textField = props.dataTextFieldName;
2136
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("option", { value: item[keyField], children: item[textField] }, index);
2299
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("option", { value: item[keyField], children: item[textField] }, index);
2137
2300
  })
2138
2301
  ]
2139
2302
  }
2140
2303
  ),
2141
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 text-alert text-sm", children: props.attributes?.errorMessage || "" })
2304
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 text-alert text-sm", children: props.attributes?.errorMessage || "" })
2142
2305
  ] });
2143
2306
  };
2144
2307
  Select_default = Select;
@@ -2146,12 +2309,12 @@ var init_Select = __esm({
2146
2309
  });
2147
2310
 
2148
2311
  // src/components/controls/edit/PercentageInput.tsx
2149
- var import_react26, import_jsx_runtime32, PercentageInput, PercentageInput_default;
2312
+ var import_react26, import_jsx_runtime33, PercentageInput, PercentageInput_default;
2150
2313
  var init_PercentageInput = __esm({
2151
2314
  "src/components/controls/edit/PercentageInput.tsx"() {
2152
2315
  "use strict";
2153
2316
  import_react26 = __toESM(require("react"));
2154
- import_jsx_runtime32 = require("react/jsx-runtime");
2317
+ import_jsx_runtime33 = require("react/jsx-runtime");
2155
2318
  PercentageInput = (props) => {
2156
2319
  const textChangeHandler = (event) => {
2157
2320
  const rawValue = event.target.value;
@@ -2180,11 +2343,11 @@ var init_PercentageInput = __esm({
2180
2343
  e.preventDefault();
2181
2344
  }
2182
2345
  };
2183
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react26.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("label", { className: "block mb-1", children: [
2184
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label ? props?.attributes?.label + " %" : "" }),
2346
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react26.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("label", { className: "block mb-1", children: [
2347
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label ? props?.attributes?.label + " %" : "" }),
2185
2348
  " ",
2186
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "bg-error-weak", children: "*" }),
2187
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
2349
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "bg-error-weak", children: "*" }),
2350
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
2188
2351
  "input",
2189
2352
  {
2190
2353
  type: "number",
@@ -2203,7 +2366,7 @@ var init_PercentageInput = __esm({
2203
2366
  className: "peer mt-1 py-1.5 block w-full rounded shadow-sm number-input"
2204
2367
  }
2205
2368
  ),
2206
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
2369
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
2207
2370
  ] }) });
2208
2371
  };
2209
2372
  PercentageInput_default = PercentageInput;
@@ -2211,12 +2374,12 @@ var init_PercentageInput = __esm({
2211
2374
  });
2212
2375
 
2213
2376
  // src/components/controls/edit/PhoneInput.tsx
2214
- var import_react27, import_jsx_runtime33, PhoneInput, PhoneInput_default;
2377
+ var import_react27, import_jsx_runtime34, PhoneInput, PhoneInput_default;
2215
2378
  var init_PhoneInput = __esm({
2216
2379
  "src/components/controls/edit/PhoneInput.tsx"() {
2217
2380
  "use strict";
2218
2381
  import_react27 = __toESM(require("react"));
2219
- import_jsx_runtime33 = require("react/jsx-runtime");
2382
+ import_jsx_runtime34 = require("react/jsx-runtime");
2220
2383
  PhoneInput = (props) => {
2221
2384
  const textChangeHandler = (event) => {
2222
2385
  const text = event.target.value;
@@ -2235,13 +2398,13 @@ var init_PhoneInput = __esm({
2235
2398
  if (props.value !== void 0 && props.value !== null) {
2236
2399
  value = props.value;
2237
2400
  }
2238
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react27.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("label", { className: "block mb-1", children: [
2239
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
2401
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_react27.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("label", { className: "block mb-1", children: [
2402
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
2240
2403
  " ",
2241
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "bg-error-weak", children: "*" }),
2242
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex items-center rounded border ", children: [
2243
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "px-3", children: props.prefix }),
2244
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
2404
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "bg-error-weak", children: "*" }),
2405
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex items-center rounded border ", children: [
2406
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "px-3", children: props.prefix }),
2407
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
2245
2408
  "input",
2246
2409
  {
2247
2410
  type: "text",
@@ -2259,7 +2422,7 @@ var init_PhoneInput = __esm({
2259
2422
  }
2260
2423
  )
2261
2424
  ] }),
2262
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
2425
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
2263
2426
  ] }) });
2264
2427
  };
2265
2428
  PhoneInput_default = PhoneInput;
@@ -2267,12 +2430,12 @@ var init_PhoneInput = __esm({
2267
2430
  });
2268
2431
 
2269
2432
  // src/components/controls/edit/NumberInput.tsx
2270
- var import_react28, import_jsx_runtime34, NumberInput, NumberInput_default;
2433
+ var import_react28, import_jsx_runtime35, NumberInput, NumberInput_default;
2271
2434
  var init_NumberInput = __esm({
2272
2435
  "src/components/controls/edit/NumberInput.tsx"() {
2273
2436
  "use strict";
2274
2437
  import_react28 = __toESM(require("react"));
2275
- import_jsx_runtime34 = require("react/jsx-runtime");
2438
+ import_jsx_runtime35 = require("react/jsx-runtime");
2276
2439
  NumberInput = (props) => {
2277
2440
  const textChangeHandler = (event) => {
2278
2441
  const text = event.target.value;
@@ -2295,11 +2458,11 @@ var init_NumberInput = __esm({
2295
2458
  if (props.value !== void 0 && props.value !== null) {
2296
2459
  value = props.value;
2297
2460
  }
2298
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_react28.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("label", { className: "block", children: [
2299
- props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "text-sm inline-block pb-1 font-medium ", children: props?.attributes?.label }),
2461
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react28.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("label", { className: "block", children: [
2462
+ props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "text-sm inline-block pb-1 font-medium ", children: props?.attributes?.label }),
2300
2463
  " ",
2301
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "bg-error-weak", children: "*" }),
2302
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
2464
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "bg-error-weak", children: "*" }),
2465
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2303
2466
  "input",
2304
2467
  {
2305
2468
  type: "number",
@@ -2318,7 +2481,7 @@ var init_NumberInput = __esm({
2318
2481
  className: "peer py-1.5 block w-full rounded shadow-sm number-input input\n disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none\n "
2319
2482
  }
2320
2483
  ),
2321
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
2484
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
2322
2485
  ] }) });
2323
2486
  };
2324
2487
  NumberInput_default = NumberInput;
@@ -2326,12 +2489,12 @@ var init_NumberInput = __esm({
2326
2489
  });
2327
2490
 
2328
2491
  // src/components/controls/edit/CheckboxInput.tsx
2329
- var import_react29, import_jsx_runtime35, CheckboxInput, CheckboxInput_default;
2492
+ var import_react29, import_jsx_runtime36, CheckboxInput, CheckboxInput_default;
2330
2493
  var init_CheckboxInput = __esm({
2331
2494
  "src/components/controls/edit/CheckboxInput.tsx"() {
2332
2495
  "use strict";
2333
2496
  import_react29 = __toESM(require("react"));
2334
- import_jsx_runtime35 = require("react/jsx-runtime");
2497
+ import_jsx_runtime36 = require("react/jsx-runtime");
2335
2498
  CheckboxInput = (props) => {
2336
2499
  const textChangeHandler = (event) => {
2337
2500
  let text = event.target.checked;
@@ -2348,9 +2511,9 @@ var init_CheckboxInput = __esm({
2348
2511
  if (props.value != void 0 && props.value != null && props.value != "" && (props.value == "true" || props.value.toString() == "true")) {
2349
2512
  value = true;
2350
2513
  }
2351
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react29.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "mb-1", children: [
2352
- props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_jsx_runtime35.Fragment, { children: [
2353
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2514
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react29.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "mb-1", children: [
2515
+ props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_jsx_runtime36.Fragment, { children: [
2516
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
2354
2517
  "label",
2355
2518
  {
2356
2519
  htmlFor: props.name,
@@ -2358,9 +2521,9 @@ var init_CheckboxInput = __esm({
2358
2521
  children: props.attributes.label
2359
2522
  }
2360
2523
  ),
2361
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "bg-error-weak", children: "*" })
2524
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "bg-error-weak", children: "*" })
2362
2525
  ] }),
2363
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2526
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
2364
2527
  "input",
2365
2528
  {
2366
2529
  type: "checkbox",
@@ -2377,7 +2540,7 @@ var init_CheckboxInput = __esm({
2377
2540
  className: "peer mt-1 py-1.5 block rounded shadow-sm\n disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none\n "
2378
2541
  }
2379
2542
  ),
2380
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage || "" })
2543
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage || "" })
2381
2544
  ] }) });
2382
2545
  };
2383
2546
  CheckboxInput_default = CheckboxInput;
@@ -2385,12 +2548,12 @@ var init_CheckboxInput = __esm({
2385
2548
  });
2386
2549
 
2387
2550
  // src/components/controls/edit/OtpInput.tsx
2388
- var import_react30, import_jsx_runtime36, OtpInput, OtpInput_default;
2551
+ var import_react30, import_jsx_runtime37, OtpInput, OtpInput_default;
2389
2552
  var init_OtpInput = __esm({
2390
2553
  "src/components/controls/edit/OtpInput.tsx"() {
2391
2554
  "use strict";
2392
2555
  import_react30 = __toESM(require("react"));
2393
- import_jsx_runtime36 = require("react/jsx-runtime");
2556
+ import_jsx_runtime37 = require("react/jsx-runtime");
2394
2557
  OtpInput = (props) => {
2395
2558
  const textChangeHandler = (event) => {
2396
2559
  const text = event.target.value;
@@ -2412,11 +2575,11 @@ var init_OtpInput = __esm({
2412
2575
  if (props.value !== void 0 && props.value !== null) {
2413
2576
  value = props.value;
2414
2577
  }
2415
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react30.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("label", { htmlFor: props.name, className: "block mb-1 w-full", children: [
2416
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
2578
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_react30.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("label", { htmlFor: props.name, className: "block mb-1 w-full", children: [
2579
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
2417
2580
  " ",
2418
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "bg-error-weak", children: "*" }),
2419
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
2581
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "bg-error-weak", children: "*" }),
2582
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2420
2583
  "input",
2421
2584
  {
2422
2585
  type: "text",
@@ -2436,7 +2599,7 @@ var init_OtpInput = __esm({
2436
2599
  className: "peer mt-1 py-1.5 block w-full rounded shadow-sm tracking-[1.25em] text-center"
2437
2600
  }
2438
2601
  ),
2439
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
2602
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
2440
2603
  ] }) });
2441
2604
  };
2442
2605
  OtpInput_default = OtpInput;
@@ -2444,12 +2607,12 @@ var init_OtpInput = __esm({
2444
2607
  });
2445
2608
 
2446
2609
  // src/components/controls/edit/DateTimeInput.tsx
2447
- var import_react31, import_jsx_runtime37, DateTimeInput, DateTimeInput_default;
2610
+ var import_react31, import_jsx_runtime38, DateTimeInput, DateTimeInput_default;
2448
2611
  var init_DateTimeInput = __esm({
2449
2612
  "src/components/controls/edit/DateTimeInput.tsx"() {
2450
2613
  "use strict";
2451
2614
  import_react31 = __toESM(require("react"));
2452
- import_jsx_runtime37 = require("react/jsx-runtime");
2615
+ import_jsx_runtime38 = require("react/jsx-runtime");
2453
2616
  DateTimeInput = (props) => {
2454
2617
  const textChangeHandler = (event) => {
2455
2618
  const localDate = new Date(event.target.value);
@@ -2481,12 +2644,12 @@ var init_DateTimeInput = __esm({
2481
2644
  e.preventDefault();
2482
2645
  }
2483
2646
  };
2484
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_react31.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("label", { className: "block mb-1", children: [
2485
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
2647
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_react31.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("label", { className: "block mb-1", children: [
2648
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
2486
2649
  " ",
2487
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "bg-error-weak", children: "*" }),
2488
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "flex items-center gap-2", children: [
2489
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2650
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "bg-error-weak", children: "*" }),
2651
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "flex items-center gap-2", children: [
2652
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2490
2653
  "input",
2491
2654
  {
2492
2655
  type: "datetime-local",
@@ -2504,9 +2667,9 @@ var init_DateTimeInput = __esm({
2504
2667
  className: "peer mt-1 py-1.5 block w-full rounded shadow-sm\n disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none\n "
2505
2668
  }
2506
2669
  ),
2507
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { children: timeZoneAbbr })
2670
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { children: timeZoneAbbr })
2508
2671
  ] }),
2509
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
2672
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
2510
2673
  ] }) });
2511
2674
  };
2512
2675
  DateTimeInput_default = DateTimeInput;
@@ -2514,12 +2677,12 @@ var init_DateTimeInput = __esm({
2514
2677
  });
2515
2678
 
2516
2679
  // src/components/controls/edit/ColorInput.tsx
2517
- var import_react32, import_jsx_runtime38, ColorInput, ColorInput_default;
2680
+ var import_react32, import_jsx_runtime39, ColorInput, ColorInput_default;
2518
2681
  var init_ColorInput = __esm({
2519
2682
  "src/components/controls/edit/ColorInput.tsx"() {
2520
2683
  "use strict";
2521
2684
  import_react32 = __toESM(require("react"));
2522
- import_jsx_runtime38 = require("react/jsx-runtime");
2685
+ import_jsx_runtime39 = require("react/jsx-runtime");
2523
2686
  ColorInput = (props) => {
2524
2687
  const [color, setColor] = import_react32.default.useState("#3b82f6");
2525
2688
  (0, import_react32.useEffect)(() => {
@@ -2541,11 +2704,11 @@ var init_ColorInput = __esm({
2541
2704
  });
2542
2705
  }
2543
2706
  };
2544
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("label", { className: "block mb-1", children: [
2545
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "text-sm font-medium", children: props?.attributes?.label }),
2707
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("label", { className: "block mb-1", children: [
2708
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { className: "text-sm font-medium", children: props?.attributes?.label }),
2546
2709
  " ",
2547
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "bg-error-weak", children: "*" }),
2548
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2710
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { className: "bg-error-weak", children: "*" }),
2711
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2549
2712
  "input",
2550
2713
  {
2551
2714
  type: "color",
@@ -2558,7 +2721,7 @@ var init_ColorInput = __esm({
2558
2721
  className: `w-[78px] h-12 block cursor-pointer`
2559
2722
  }
2560
2723
  ),
2561
- props?.attributes?.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { className: "mt-1 bg-error-weak text-sm", children: props.attributes.errorMessage })
2724
+ props?.attributes?.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("p", { className: "mt-1 bg-error-weak text-sm", children: props.attributes.errorMessage })
2562
2725
  ] });
2563
2726
  };
2564
2727
  ColorInput_default = ColorInput;
@@ -2566,13 +2729,13 @@ var init_ColorInput = __esm({
2566
2729
  });
2567
2730
 
2568
2731
  // src/components/controls/edit/SelectWithSearchInput.tsx
2569
- var import_react33, import_jsx_runtime39, SelectWithSearchInput, SelectWithSearchInput_default;
2732
+ var import_react33, import_jsx_runtime40, SelectWithSearchInput, SelectWithSearchInput_default;
2570
2733
  var init_SelectWithSearchInput = __esm({
2571
2734
  "src/components/controls/edit/SelectWithSearchInput.tsx"() {
2572
2735
  "use strict";
2573
2736
  "use client";
2574
2737
  import_react33 = __toESM(require("react"));
2575
- import_jsx_runtime39 = require("react/jsx-runtime");
2738
+ import_jsx_runtime40 = require("react/jsx-runtime");
2576
2739
  SelectWithSearchInput = (props) => {
2577
2740
  const [isOpen, setIsOpen] = (0, import_react33.useState)(false);
2578
2741
  const [searchTerm, setSearchTerm] = (0, import_react33.useState)("");
@@ -2667,14 +2830,14 @@ var init_SelectWithSearchInput = __esm({
2667
2830
  }
2668
2831
  }, [highlightedIndex]);
2669
2832
  const isReadOnly = props.attributes?.readOnly || props.disable || props.attributes?.disable;
2670
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "relative", children: [
2671
- /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("label", { className: "pb-1", children: [
2833
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "relative", children: [
2834
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("label", { className: "pb-1", children: [
2672
2835
  props.attributes?.label,
2673
2836
  " ",
2674
- props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { className: "bg-error-weak", children: "*" })
2837
+ props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: "bg-error-weak", children: "*" })
2675
2838
  ] }),
2676
- /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "relative", children: [
2677
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2839
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "relative", children: [
2840
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2678
2841
  "input",
2679
2842
  {
2680
2843
  type: "text",
@@ -2696,7 +2859,7 @@ var init_SelectWithSearchInput = __esm({
2696
2859
  `
2697
2860
  }
2698
2861
  ),
2699
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2862
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2700
2863
  "button",
2701
2864
  {
2702
2865
  type: "button",
@@ -2707,7 +2870,7 @@ var init_SelectWithSearchInput = __esm({
2707
2870
  }
2708
2871
  },
2709
2872
  className: "absolute right-2 top-3 h-5 w-5 text-gray-500 focus:outline-none",
2710
- children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2873
+ children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2711
2874
  "svg",
2712
2875
  {
2713
2876
  xmlns: "http://www.w3.org/2000/svg",
@@ -2716,7 +2879,7 @@ var init_SelectWithSearchInput = __esm({
2716
2879
  strokeWidth: 1.5,
2717
2880
  stroke: "currentColor",
2718
2881
  className: "w-full h-full",
2719
- children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2882
+ children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2720
2883
  "path",
2721
2884
  {
2722
2885
  strokeLinecap: "round",
@@ -2729,12 +2892,12 @@ var init_SelectWithSearchInput = __esm({
2729
2892
  }
2730
2893
  )
2731
2894
  ] }),
2732
- !isReadOnly && isOpen && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2895
+ !isReadOnly && isOpen && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2733
2896
  "div",
2734
2897
  {
2735
2898
  ref: dropdownRef,
2736
2899
  className: "absolute z-10 w-full bg-default border border-gray-200 shadow-lg max-h-48 overflow-y-auto",
2737
- children: filteredItems.length > 0 ? filteredItems.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2900
+ children: filteredItems.length > 0 ? filteredItems.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2738
2901
  "button",
2739
2902
  {
2740
2903
  onClick: (e) => handleSelect(e, item),
@@ -2742,10 +2905,10 @@ var init_SelectWithSearchInput = __esm({
2742
2905
  role: "option",
2743
2906
  tabIndex: -1,
2744
2907
  onMouseEnter: () => setHighlightedIndex(index),
2745
- children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { children: item[props.dataTextFieldName] })
2908
+ children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { children: item[props.dataTextFieldName] })
2746
2909
  },
2747
2910
  item[props.dataKeyFieldName]
2748
- )) : /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "px-4 py-2 text-gray-500", children: "No results found" })
2911
+ )) : /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "px-4 py-2 text-gray-500", children: "No results found" })
2749
2912
  }
2750
2913
  )
2751
2914
  ] });
@@ -2833,7 +2996,7 @@ var init_StyleTypes = __esm({
2833
2996
  });
2834
2997
 
2835
2998
  // src/components/ClientButton.tsx
2836
- var import_react34, import_jsx_runtime40, ClientButton, ClientButton_default;
2999
+ var import_react34, import_jsx_runtime41, ClientButton, ClientButton_default;
2837
3000
  var init_ClientButton = __esm({
2838
3001
  "src/components/ClientButton.tsx"() {
2839
3002
  "use strict";
@@ -2841,7 +3004,7 @@ var init_ClientButton = __esm({
2841
3004
  import_react34 = __toESM(require("react"));
2842
3005
  init_ToastService();
2843
3006
  init_StyleTypes();
2844
- import_jsx_runtime40 = require("react/jsx-runtime");
3007
+ import_jsx_runtime41 = require("react/jsx-runtime");
2845
3008
  ClientButton = (props) => {
2846
3009
  const execute = async (event) => {
2847
3010
  if (props.onClick !== void 0) {
@@ -2851,7 +3014,7 @@ var init_ClientButton = __esm({
2851
3014
  }
2852
3015
  };
2853
3016
  let buttonClass = props.ButtonType ? buttonClasses.get(props.ButtonType) : buttonClasses.get("Primary" /* Solid */);
2854
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_react34.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3017
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_react34.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2855
3018
  "button",
2856
3019
  {
2857
3020
  type: "button",
@@ -2866,7 +3029,7 @@ var init_ClientButton = __esm({
2866
3029
  });
2867
3030
 
2868
3031
  // src/components/Confirm.tsx
2869
- var import_react35, import_jsx_runtime41, Confirm, Confirm_default;
3032
+ var import_react35, import_jsx_runtime42, Confirm, Confirm_default;
2870
3033
  var init_Confirm = __esm({
2871
3034
  "src/components/Confirm.tsx"() {
2872
3035
  "use strict";
@@ -2874,7 +3037,7 @@ var init_Confirm = __esm({
2874
3037
  import_react35 = require("react");
2875
3038
  init_ClientButton();
2876
3039
  init_StyleTypes();
2877
- import_jsx_runtime41 = require("react/jsx-runtime");
3040
+ import_jsx_runtime42 = require("react/jsx-runtime");
2878
3041
  Confirm = ({ message, onConfirm, onCancel }) => {
2879
3042
  const [showModal, setShowModal] = (0, import_react35.useState)(true);
2880
3043
  const handleConfirmAction = () => {
@@ -2889,13 +3052,13 @@ var init_Confirm = __esm({
2889
3052
  onCancel();
2890
3053
  }
2891
3054
  };
2892
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_jsx_runtime41.Fragment, { children: showModal && /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "fixed inset-0 flex items-center justify-center z-50", children: [
2893
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "absolute inset-0 bg-black opacity-70" }),
2894
- /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "bg-white rounded-md p-6 w-2/6 shadow border z-50", children: [
2895
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("p", { className: "text-xl font-medium mb-4", children: "Confirmation" }),
2896
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("p", { className: "mb-4", children: message }),
2897
- /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "flex justify-end gap-8", children: [
2898
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3055
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_jsx_runtime42.Fragment, { children: showModal && /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "fixed inset-0 flex items-center justify-center z-50", children: [
3056
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "absolute inset-0 bg-black opacity-70" }),
3057
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "bg-white rounded-md p-6 w-2/6 shadow border z-50", children: [
3058
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("p", { className: "text-xl font-medium mb-4", children: "Confirmation" }),
3059
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("p", { className: "mb-4", children: message }),
3060
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "flex justify-end gap-8", children: [
3061
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2899
3062
  ClientButton_default,
2900
3063
  {
2901
3064
  onClick: handleCancelAction,
@@ -2903,7 +3066,7 @@ var init_Confirm = __esm({
2903
3066
  children: "Cancel"
2904
3067
  }
2905
3068
  ),
2906
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3069
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2907
3070
  ClientButton_default,
2908
3071
  {
2909
3072
  onClick: handleConfirmAction,
@@ -2921,7 +3084,7 @@ var init_Confirm = __esm({
2921
3084
  });
2922
3085
 
2923
3086
  // src/components/Button.tsx
2924
- var import_react36, import_jsx_runtime42, Button, Button_default;
3087
+ var import_react36, import_jsx_runtime43, Button, Button_default;
2925
3088
  var init_Button = __esm({
2926
3089
  "src/components/Button.tsx"() {
2927
3090
  "use strict";
@@ -2930,7 +3093,7 @@ var init_Button = __esm({
2930
3093
  init_ToastService();
2931
3094
  init_StyleTypes();
2932
3095
  init_Confirm();
2933
- import_jsx_runtime42 = require("react/jsx-runtime");
3096
+ import_jsx_runtime43 = require("react/jsx-runtime");
2934
3097
  Button = (props) => {
2935
3098
  const [inProgress, setInProgress] = (0, import_react36.useState)(false);
2936
3099
  const [isActionPerformed, setIsActionPerformed] = (0, import_react36.useState)(false);
@@ -2984,7 +3147,7 @@ var init_Button = __esm({
2984
3147
  const onConfirm = () => resolve(true);
2985
3148
  const onCancel = () => resolve(false);
2986
3149
  setShowModal(
2987
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
3150
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2988
3151
  Confirm_default,
2989
3152
  {
2990
3153
  message: props.confirmationMessage,
@@ -2998,8 +3161,8 @@ var init_Button = __esm({
2998
3161
  let buttonClass = props.ButtonType ? buttonClasses.get(props.ButtonType) : buttonClasses.get("Primary" /* Solid */);
2999
3162
  let progressClass = props.ButtonType ? progressClasses.get(props.ButtonType) : progressClasses.get("Primary" /* Solid */);
3000
3163
  const isDisabled = inProgress || isActionPerformed && props.oneTimeAction;
3001
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_react36.default.Fragment, { children: [
3002
- /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
3164
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_react36.default.Fragment, { children: [
3165
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
3003
3166
  "button",
3004
3167
  {
3005
3168
  type: "submit",
@@ -3009,7 +3172,7 @@ var init_Button = __esm({
3009
3172
  className: `${buttonClass} relative inline-flex items-center justify-center gap-2 ${props.className ?? ""}`,
3010
3173
  children: [
3011
3174
  isActionPerformed && props.oneTimeAction && responseMessage ? responseMessage : props.children,
3012
- inProgress && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_jsx_runtime42.Fragment, { children: props.hideProgressIndicator ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "absolute bottom-0 left-0 h-0.5 bg-gray-400 rounded animate-progress" }) : /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
3175
+ inProgress && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_jsx_runtime43.Fragment, { children: props.hideProgressIndicator ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "absolute bottom-0 left-0 h-0.5 bg-gray-400 rounded animate-progress" }) : /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
3013
3176
  "svg",
3014
3177
  {
3015
3178
  className: `animate-spin h-5 w-5 flex-shrink-0 ${progressClass}`,
@@ -3017,7 +3180,7 @@ var init_Button = __esm({
3017
3180
  fill: "none",
3018
3181
  viewBox: "0 0 24 24",
3019
3182
  children: [
3020
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
3183
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
3021
3184
  "circle",
3022
3185
  {
3023
3186
  className: "opacity-25",
@@ -3028,7 +3191,7 @@ var init_Button = __esm({
3028
3191
  strokeWidth: "4"
3029
3192
  }
3030
3193
  ),
3031
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
3194
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
3032
3195
  "path",
3033
3196
  {
3034
3197
  className: "opacity-75",
@@ -3050,14 +3213,14 @@ var init_Button = __esm({
3050
3213
  });
3051
3214
 
3052
3215
  // src/components/controls/edit/SelectWithSearchPanel.tsx
3053
- var import_react37, import_jsx_runtime43, SelectWithSearchPanel, SelectWithSearchPanel_default;
3216
+ var import_react37, import_jsx_runtime44, SelectWithSearchPanel, SelectWithSearchPanel_default;
3054
3217
  var init_SelectWithSearchPanel = __esm({
3055
3218
  "src/components/controls/edit/SelectWithSearchPanel.tsx"() {
3056
3219
  "use strict";
3057
3220
  "use client";
3058
3221
  init_Button();
3059
3222
  import_react37 = __toESM(require("react"));
3060
- import_jsx_runtime43 = require("react/jsx-runtime");
3223
+ import_jsx_runtime44 = require("react/jsx-runtime");
3061
3224
  SelectWithSearchPanel = (props) => {
3062
3225
  const [isOpen, setIsOpen] = (0, import_react37.useState)(false);
3063
3226
  const [searchTerm, setSearchTerm] = (0, import_react37.useState)("");
@@ -3193,14 +3356,14 @@ var init_SelectWithSearchPanel = __esm({
3193
3356
  console.log("Form Data:", formData);
3194
3357
  return formData;
3195
3358
  }, []);
3196
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "relative", children: [
3197
- /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("label", { className: "text-sm mb-1 font-medium", children: [
3359
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "relative", children: [
3360
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("label", { className: "text-sm mb-1 font-medium", children: [
3198
3361
  props.attributes?.label,
3199
3362
  " ",
3200
3363
  " ",
3201
- props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { className: "bg-error-weak", children: "*" })
3364
+ props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: "bg-error-weak", children: "*" })
3202
3365
  ] }),
3203
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
3366
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
3204
3367
  "input",
3205
3368
  {
3206
3369
  type: "text",
@@ -3214,14 +3377,14 @@ var init_SelectWithSearchPanel = __esm({
3214
3377
  disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none`
3215
3378
  }
3216
3379
  ) }),
3217
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { ref: containerRef, children: isOpen && /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_react37.default.Fragment, { children: [
3218
- /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "fixed z-50 right-0 bg-white top-[62px] w-1/4 border-l border-gray-200", children: [
3219
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "flex flex-col p-2 bg-accent-950 text-white", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("h5", { className: "text-md text-white font-medium", children: [
3380
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { ref: containerRef, children: isOpen && /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_react37.default.Fragment, { children: [
3381
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "fixed z-50 right-0 bg-white top-[62px] w-1/4 border-l border-gray-200", children: [
3382
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "flex flex-col p-2 bg-accent-950 text-white", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("h5", { className: "text-md text-white font-medium", children: [
3220
3383
  "Select a",
3221
3384
  " ",
3222
3385
  props.attributes?.label || props.attributes?.heading
3223
3386
  ] }) }),
3224
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "flex justify-end px-4 border-b py-2 border-gray-200 h-10", children: props.createFields && props.createFields.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
3387
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "flex justify-end px-4 border-b py-2 border-gray-200 h-10", children: props.createFields && props.createFields.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
3225
3388
  "button",
3226
3389
  {
3227
3390
  type: "button",
@@ -3234,12 +3397,12 @@ var init_SelectWithSearchPanel = __esm({
3234
3397
  }
3235
3398
  ) })
3236
3399
  ] }),
3237
- isCreateOpen && /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "fixed right-0 w-1/4 h-full top-[62px] bg-white shadow-lg border-l border-gray-200 z-50", children: [
3238
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "flex flex-col p-2 bg-accent-950", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("h5", { className: "text-md font-medium text-white", children: [
3400
+ isCreateOpen && /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "fixed right-0 w-1/4 h-full top-[62px] bg-white shadow-lg border-l border-gray-200 z-50", children: [
3401
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "flex flex-col p-2 bg-accent-950", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("h5", { className: "text-md font-medium text-white", children: [
3239
3402
  "Create New ",
3240
3403
  props.attributes?.label
3241
3404
  ] }) }),
3242
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "flex justify-end px-4 border-b py-2 border-gray-200", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
3405
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "flex justify-end px-4 border-b py-2 border-gray-200", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
3243
3406
  "button",
3244
3407
  {
3245
3408
  type: "button",
@@ -3248,10 +3411,10 @@ var init_SelectWithSearchPanel = __esm({
3248
3411
  children: "Close"
3249
3412
  }
3250
3413
  ) }),
3251
- /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "p-4", children: [
3252
- props.createFields?.map((field) => /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "mb-4", children: [
3253
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("label", { className: "text-sm mb-1 font-medium block", children: field.label }),
3254
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
3414
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "p-4", children: [
3415
+ props.createFields?.map((field) => /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "mb-4", children: [
3416
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("label", { className: "text-sm mb-1 font-medium block", children: field.label }),
3417
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
3255
3418
  "input",
3256
3419
  {
3257
3420
  type: field.type,
@@ -3267,7 +3430,7 @@ var init_SelectWithSearchPanel = __esm({
3267
3430
  }
3268
3431
  )
3269
3432
  ] }, field.name)),
3270
- /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(Button_default, { onClick: async () => {
3433
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(Button_default, { onClick: async () => {
3271
3434
  handleSaveModal();
3272
3435
  return { isSuccessful: true };
3273
3436
  }, className: "w-full", children: [
@@ -3276,13 +3439,13 @@ var init_SelectWithSearchPanel = __esm({
3276
3439
  ] })
3277
3440
  ] })
3278
3441
  ] }),
3279
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
3442
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
3280
3443
  "div",
3281
3444
  {
3282
3445
  ref: listRef,
3283
3446
  className: "fixed z-10 right-0 mt-[130px] top-0 w-1/4 bg-white border-l border-gray-200 shadow-lg overflow-y-auto",
3284
3447
  style: { height: "calc(100vh - 130px)" },
3285
- children: filteredItems.length > 0 ? filteredItems.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
3448
+ children: filteredItems.length > 0 ? filteredItems.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
3286
3449
  "button",
3287
3450
  {
3288
3451
  onClick: (e) => {
@@ -3292,9 +3455,9 @@ var init_SelectWithSearchPanel = __esm({
3292
3455
  role: "option",
3293
3456
  tabIndex: -1,
3294
3457
  onMouseEnter: () => setHighlightedIndex(index),
3295
- children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { children: getNestedValue7(item, props.dataTextFieldName) })
3458
+ children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { children: getNestedValue7(item, props.dataTextFieldName) })
3296
3459
  }
3297
- ) }, item[props.dataKeyFieldName])) : /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "px-4 py-2 text-gray-500", children: "No results found" })
3460
+ ) }, item[props.dataKeyFieldName])) : /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "px-4 py-2 text-gray-500", children: "No results found" })
3298
3461
  }
3299
3462
  )
3300
3463
  ] }) })
@@ -3305,12 +3468,12 @@ var init_SelectWithSearchPanel = __esm({
3305
3468
  });
3306
3469
 
3307
3470
  // src/components/controls/edit/BooleanSelect.tsx
3308
- var import_react38, import_jsx_runtime44, BooleanSelect, BooleanSelect_default;
3471
+ var import_react38, import_jsx_runtime45, BooleanSelect, BooleanSelect_default;
3309
3472
  var init_BooleanSelect = __esm({
3310
3473
  "src/components/controls/edit/BooleanSelect.tsx"() {
3311
3474
  "use strict";
3312
3475
  import_react38 = __toESM(require("react"));
3313
- import_jsx_runtime44 = require("react/jsx-runtime");
3476
+ import_jsx_runtime45 = require("react/jsx-runtime");
3314
3477
  BooleanSelect = (props) => {
3315
3478
  const [list, setList] = (0, import_react38.useState)();
3316
3479
  const textChangeHandler = (event) => {
@@ -3359,11 +3522,11 @@ var init_BooleanSelect = __esm({
3359
3522
  if (props.value !== void 0 && props.value !== null) {
3360
3523
  value = props.value;
3361
3524
  }
3362
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react38.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("label", { className: "block", children: [
3363
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
3525
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react38.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("label", { className: "block", children: [
3526
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
3364
3527
  " ",
3365
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: "bg-error-weak", children: "*" }),
3366
- /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
3528
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { className: "bg-error-weak", children: "*" }),
3529
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
3367
3530
  "select",
3368
3531
  {
3369
3532
  name: props.name,
@@ -3375,9 +3538,9 @@ var init_BooleanSelect = __esm({
3375
3538
  disabled: props?.attributes?.readOnly,
3376
3539
  className: "peer mt-1 py-1.5 block w-full text-black rounded shadow-sm\n disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none\n ",
3377
3540
  children: [
3378
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("option", { className: "", value: "", children: props.attributes?.placeholder || "Select" }),
3541
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("option", { className: "", value: "", children: props.attributes?.placeholder || "Select" }),
3379
3542
  list && list.map((item, i) => {
3380
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
3543
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
3381
3544
  "option",
3382
3545
  {
3383
3546
  className: "fac-select-option",
@@ -3390,7 +3553,7 @@ var init_BooleanSelect = __esm({
3390
3553
  ]
3391
3554
  }
3392
3555
  ),
3393
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
3556
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
3394
3557
  ] }) });
3395
3558
  };
3396
3559
  BooleanSelect_default = BooleanSelect;
@@ -3398,12 +3561,12 @@ var init_BooleanSelect = __esm({
3398
3561
  });
3399
3562
 
3400
3563
  // src/components/controls/edit/EmailInput.tsx
3401
- var import_react39, import_jsx_runtime45, EmailInput, EmailInput_default;
3564
+ var import_react39, import_jsx_runtime46, EmailInput, EmailInput_default;
3402
3565
  var init_EmailInput = __esm({
3403
3566
  "src/components/controls/edit/EmailInput.tsx"() {
3404
3567
  "use strict";
3405
3568
  import_react39 = __toESM(require("react"));
3406
- import_jsx_runtime45 = require("react/jsx-runtime");
3569
+ import_jsx_runtime46 = require("react/jsx-runtime");
3407
3570
  EmailInput = (props) => {
3408
3571
  const textChangeHandler = (event) => {
3409
3572
  const text = event.target.value;
@@ -3428,11 +3591,11 @@ var init_EmailInput = __esm({
3428
3591
  if (props.value !== void 0 && props.value !== null) {
3429
3592
  value = props.value;
3430
3593
  }
3431
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react39.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("label", { className: "block mb-1", children: [
3432
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { className: "text-sm font-medium text-slate-700", children: props?.attributes?.label }),
3594
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_react39.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("label", { className: "block mb-1", children: [
3595
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "text-sm font-medium text-slate-700", children: props?.attributes?.label }),
3433
3596
  " ",
3434
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { className: "bg-error-weak", children: "*" }),
3435
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
3597
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "bg-error-weak", children: "*" }),
3598
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
3436
3599
  "input",
3437
3600
  {
3438
3601
  type: "email",
@@ -3448,7 +3611,7 @@ var init_EmailInput = __esm({
3448
3611
  className: "peer mt-1 py-1.5 block w-full rounded shadow-sm\n transition-all duration-500 ease-in-out"
3449
3612
  }
3450
3613
  ),
3451
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 mb-0 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
3614
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 mb-0 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
3452
3615
  ] }) });
3453
3616
  };
3454
3617
  EmailInput_default = EmailInput;
@@ -3456,13 +3619,13 @@ var init_EmailInput = __esm({
3456
3619
  });
3457
3620
 
3458
3621
  // src/components/controls/edit/TimeInput.tsx
3459
- var import_react40, import_jsx_runtime46, TimeInput, TimeInput_default;
3622
+ var import_react40, import_jsx_runtime47, TimeInput, TimeInput_default;
3460
3623
  var init_TimeInput = __esm({
3461
3624
  "src/components/controls/edit/TimeInput.tsx"() {
3462
3625
  "use strict";
3463
3626
  "use client";
3464
3627
  import_react40 = __toESM(require("react"));
3465
- import_jsx_runtime46 = require("react/jsx-runtime");
3628
+ import_jsx_runtime47 = require("react/jsx-runtime");
3466
3629
  TimeInput = (props) => {
3467
3630
  const timeChangeHandler = (event) => {
3468
3631
  const timeValue = event.target.value;
@@ -3475,11 +3638,11 @@ var init_TimeInput = __esm({
3475
3638
  });
3476
3639
  }
3477
3640
  };
3478
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_react40.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("label", { className: "block mb-1", children: [
3479
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "text-sm font-medium", children: props?.attributes?.label }),
3641
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_react40.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("label", { className: "block mb-1", children: [
3642
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "text-sm font-medium", children: props?.attributes?.label }),
3480
3643
  " ",
3481
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "bg-error-weak", children: "*" }),
3482
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
3644
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "bg-error-weak", children: "*" }),
3645
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
3483
3646
  "input",
3484
3647
  {
3485
3648
  type: "time",
@@ -3492,7 +3655,7 @@ var init_TimeInput = __esm({
3492
3655
  className: "peer mt-1 py-1.5 block w-full rounded shadow-sm\n disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none"
3493
3656
  }
3494
3657
  ) }),
3495
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ?? "" })
3658
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ?? "" })
3496
3659
  ] }) });
3497
3660
  };
3498
3661
  TimeInput_default = TimeInput;
@@ -3507,7 +3670,7 @@ function Hyperlink(props) {
3507
3670
  if (target == "_blank") {
3508
3671
  additionalProps.rel = "noopener noreferrer";
3509
3672
  }
3510
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_jsx_runtime47.Fragment, { children: props.href ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
3673
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_jsx_runtime48.Fragment, { children: props.href ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
3511
3674
  import_link.default,
3512
3675
  {
3513
3676
  href: props.href,
@@ -3517,65 +3680,65 @@ function Hyperlink(props) {
3517
3680
  target,
3518
3681
  children: props.children
3519
3682
  }
3520
- ) : props.isHeading ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("h5", { className: props.className + "inline-block", children: props.children }) : /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: props.className, children: props.children }) });
3683
+ ) : props.isHeading ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("h5", { className: props.className + "inline-block", children: props.children }) : /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("span", { className: props.className, children: props.children }) });
3521
3684
  }
3522
- var import_link, import_jsx_runtime47;
3685
+ var import_link, import_jsx_runtime48;
3523
3686
  var init_Hyperlink = __esm({
3524
3687
  "src/components/dataForm/Hyperlink.tsx"() {
3525
3688
  "use strict";
3526
3689
  import_link = __toESM(require("next/link"));
3527
3690
  init_StyleTypes();
3528
- import_jsx_runtime47 = require("react/jsx-runtime");
3691
+ import_jsx_runtime48 = require("react/jsx-runtime");
3529
3692
  }
3530
3693
  });
3531
3694
 
3532
3695
  // src/svg/chevron-updown.tsx
3533
- var import_jsx_runtime48, ChevronUpDown, chevron_updown_default;
3696
+ var import_jsx_runtime49, ChevronUpDown, chevron_updown_default;
3534
3697
  var init_chevron_updown = __esm({
3535
3698
  "src/svg/chevron-updown.tsx"() {
3536
3699
  "use strict";
3537
- import_jsx_runtime48 = require("react/jsx-runtime");
3700
+ import_jsx_runtime49 = require("react/jsx-runtime");
3538
3701
  ChevronUpDown = (props) => {
3539
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("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__ */ (0, import_jsx_runtime48.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9" }) });
3702
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("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__ */ (0, import_jsx_runtime49.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9" }) });
3540
3703
  };
3541
3704
  chevron_updown_default = ChevronUpDown;
3542
3705
  }
3543
3706
  });
3544
3707
 
3545
3708
  // src/svg/chevron-down.tsx
3546
- var import_jsx_runtime49, ChevronDown, chevron_down_default;
3709
+ var import_jsx_runtime50, ChevronDown, chevron_down_default;
3547
3710
  var init_chevron_down = __esm({
3548
3711
  "src/svg/chevron-down.tsx"() {
3549
3712
  "use strict";
3550
- import_jsx_runtime49 = require("react/jsx-runtime");
3713
+ import_jsx_runtime50 = require("react/jsx-runtime");
3551
3714
  ChevronDown = (props) => {
3552
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("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__ */ (0, import_jsx_runtime49.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M19.5 8.25l-7.5 7.5-7.5-7.5" }) });
3715
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("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__ */ (0, import_jsx_runtime50.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M19.5 8.25l-7.5 7.5-7.5-7.5" }) });
3553
3716
  };
3554
3717
  chevron_down_default = ChevronDown;
3555
3718
  }
3556
3719
  });
3557
3720
 
3558
3721
  // src/svg/chevron-up.tsx
3559
- var import_jsx_runtime50, ChevronUp, chevron_up_default;
3722
+ var import_jsx_runtime51, ChevronUp, chevron_up_default;
3560
3723
  var init_chevron_up = __esm({
3561
3724
  "src/svg/chevron-up.tsx"() {
3562
3725
  "use strict";
3563
- import_jsx_runtime50 = require("react/jsx-runtime");
3726
+ import_jsx_runtime51 = require("react/jsx-runtime");
3564
3727
  ChevronUp = (props) => {
3565
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("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__ */ (0, import_jsx_runtime50.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M4.5 15.75l7.5-7.5 7.5 7.5" }) });
3728
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("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__ */ (0, import_jsx_runtime51.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M4.5 15.75l7.5-7.5 7.5 7.5" }) });
3566
3729
  };
3567
3730
  chevron_up_default = ChevronUp;
3568
3731
  }
3569
3732
  });
3570
3733
 
3571
3734
  // src/svg/plus.tsx
3572
- var import_jsx_runtime51, Plus, plus_default;
3735
+ var import_jsx_runtime52, Plus, plus_default;
3573
3736
  var init_plus = __esm({
3574
3737
  "src/svg/plus.tsx"() {
3575
3738
  "use strict";
3576
- import_jsx_runtime51 = require("react/jsx-runtime");
3739
+ import_jsx_runtime52 = require("react/jsx-runtime");
3577
3740
  Plus = (props) => {
3578
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("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__ */ (0, import_jsx_runtime51.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M12 4.5v15m7.5-7.5h-15" }) });
3741
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("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__ */ (0, import_jsx_runtime52.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M12 4.5v15m7.5-7.5h-15" }) });
3579
3742
  };
3580
3743
  plus_default = Plus;
3581
3744
  }
@@ -3601,26 +3764,26 @@ var init_Icons = __esm({
3601
3764
  });
3602
3765
 
3603
3766
  // src/svg/Icon.tsx
3604
- var import_jsx_runtime52, Icon, Icon_default;
3767
+ var import_jsx_runtime53, Icon, Icon_default;
3605
3768
  var init_Icon = __esm({
3606
3769
  "src/svg/Icon.tsx"() {
3607
3770
  "use strict";
3608
3771
  init_Icons();
3609
- import_jsx_runtime52 = require("react/jsx-runtime");
3772
+ import_jsx_runtime53 = require("react/jsx-runtime");
3610
3773
  Icon = ({ name, className, ...props }) => {
3611
3774
  const IconComponent = Icons_default[name];
3612
3775
  if (!IconComponent) {
3613
3776
  console.error(`Icon "${name}" not found.`);
3614
3777
  return null;
3615
3778
  }
3616
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(IconComponent, { ...props, className });
3779
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(IconComponent, { ...props, className });
3617
3780
  };
3618
3781
  Icon_default = Icon;
3619
3782
  }
3620
3783
  });
3621
3784
 
3622
3785
  // src/components/controls/edit/AssetUpload.tsx
3623
- var import_react41, import_jsx_runtime53, AssetUpload, AssetUpload_default;
3786
+ var import_react41, import_jsx_runtime54, AssetUpload, AssetUpload_default;
3624
3787
  var init_AssetUpload = __esm({
3625
3788
  "src/components/controls/edit/AssetUpload.tsx"() {
3626
3789
  "use strict";
@@ -3631,7 +3794,7 @@ var init_AssetUpload = __esm({
3631
3794
  init_AssetUtility();
3632
3795
  init_Hyperlink();
3633
3796
  init_Icon();
3634
- import_jsx_runtime53 = require("react/jsx-runtime");
3797
+ import_jsx_runtime54 = require("react/jsx-runtime");
3635
3798
  AssetUpload = (props) => {
3636
3799
  const isDisabled = props.attributes?.disable ?? false;
3637
3800
  let allValues = [];
@@ -3728,10 +3891,10 @@ var init_AssetUpload = __esm({
3728
3891
  }
3729
3892
  return false;
3730
3893
  };
3731
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_react41.default.Fragment, { children: [
3732
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("label", { className: "block mb-1", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { className: "text-sm font-medium", children: props?.attributes?.label }) }),
3733
- /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "flex gap-6 bg-neutral-100 rounded p-2", children: [
3734
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
3894
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_react41.default.Fragment, { children: [
3895
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("label", { className: "block mb-1", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "text-sm font-medium", children: props?.attributes?.label }) }),
3896
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "flex gap-6 bg-neutral-100 rounded p-2", children: [
3897
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
3735
3898
  ClientButton_default,
3736
3899
  {
3737
3900
  className: assetType === "image" ? "px-2 py-1 rounded bg-body-200 scale-95" : "text-neutral-700",
@@ -3741,7 +3904,7 @@ var init_AssetUpload = __esm({
3741
3904
  children: "Image Upload"
3742
3905
  }
3743
3906
  ),
3744
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
3907
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
3745
3908
  ClientButton_default,
3746
3909
  {
3747
3910
  className: assetType === "video" ? "bg-body-200 px-2 py-1 rounded-md scale-95" : "text-neutral-700",
@@ -3752,13 +3915,13 @@ var init_AssetUpload = __esm({
3752
3915
  }
3753
3916
  )
3754
3917
  ] }),
3755
- shouldShowDetails() && /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "relative mt-4 rounded-md p-4 border-2 border-dotted border-gray-300 bg-gray-50", children: [
3756
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("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" }),
3757
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "flex flex-col gap-3", children: allValues.map((digitalAsset, index) => /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "flex justify-between items-start gap-5", children: [
3758
- /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "grid grid-cols-2 gap-x-8 gap-y-3 text-sm w-full", children: [
3759
- /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { children: [
3760
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("p", { className: "text-gray-500", children: "Title" }),
3761
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
3918
+ shouldShowDetails() && /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "relative mt-4 rounded-md p-4 border-2 border-dotted border-gray-300 bg-gray-50", children: [
3919
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("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" }),
3920
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "flex flex-col gap-3", children: allValues.map((digitalAsset, index) => /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "flex justify-between items-start gap-5", children: [
3921
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "grid grid-cols-2 gap-x-8 gap-y-3 text-sm w-full", children: [
3922
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { children: [
3923
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("p", { className: "text-gray-500", children: "Title" }),
3924
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
3762
3925
  "input",
3763
3926
  {
3764
3927
  type: "text",
@@ -3770,18 +3933,18 @@ var init_AssetUpload = __esm({
3770
3933
  }
3771
3934
  )
3772
3935
  ] }),
3773
- digitalAsset.intrinsicWidth && digitalAsset.intrinsicHeight && /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { children: [
3774
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("p", { className: "text-gray-500", children: "Resolution" }),
3775
- /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("p", { className: "font-medium text-gray-900 mt-3", children: [
3936
+ digitalAsset.intrinsicWidth && digitalAsset.intrinsicHeight && /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { children: [
3937
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("p", { className: "text-gray-500", children: "Resolution" }),
3938
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("p", { className: "font-medium text-gray-900 mt-3", children: [
3776
3939
  digitalAsset.intrinsicWidth,
3777
3940
  "\xD7",
3778
3941
  digitalAsset.intrinsicHeight
3779
3942
  ] })
3780
3943
  ] }),
3781
- (digitalAsset.assetUrl || digitalAsset.posterUrl) && /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { children: [
3782
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("p", { className: "text-gray-500", children: "Image / Poster" }),
3783
- /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "flex-shrink-0 flex flex-col gap-3 mt-1", children: [
3784
- getAssetType(digitalAsset) === "video" && digitalAsset.posterUrl && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
3944
+ (digitalAsset.assetUrl || digitalAsset.posterUrl) && /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { children: [
3945
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("p", { className: "text-gray-500", children: "Image / Poster" }),
3946
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "flex-shrink-0 flex flex-col gap-3 mt-1", children: [
3947
+ getAssetType(digitalAsset) === "video" && digitalAsset.posterUrl && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
3785
3948
  "img",
3786
3949
  {
3787
3950
  src: AssetUtility_default.resolveUrl(props.serviceClient?.baseUrl, digitalAsset.posterUrl),
@@ -3789,7 +3952,7 @@ var init_AssetUpload = __esm({
3789
3952
  className: "w-32 h-auto object-cover rounded border p-1"
3790
3953
  }
3791
3954
  ),
3792
- getAssetType(digitalAsset) === "image" && digitalAsset.assetUrl && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
3955
+ getAssetType(digitalAsset) === "image" && digitalAsset.assetUrl && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
3793
3956
  "img",
3794
3957
  {
3795
3958
  src: AssetUtility_default.resolveUrl(props.serviceClient?.baseUrl, digitalAsset.assetUrl),
@@ -3799,9 +3962,9 @@ var init_AssetUpload = __esm({
3799
3962
  )
3800
3963
  ] })
3801
3964
  ] }),
3802
- digitalAsset.assetUrl?.endsWith(".m3u8") && /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "col-span-2", children: [
3803
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("p", { className: "text-gray-500", children: "HLS Link" }),
3804
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
3965
+ digitalAsset.assetUrl?.endsWith(".m3u8") && /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "col-span-2", children: [
3966
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("p", { className: "text-gray-500", children: "HLS Link" }),
3967
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
3805
3968
  Hyperlink,
3806
3969
  {
3807
3970
  href: digitalAsset.assetUrl,
@@ -3812,12 +3975,12 @@ var init_AssetUpload = __esm({
3812
3975
  )
3813
3976
  ] })
3814
3977
  ] }),
3815
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
3978
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
3816
3979
  "span",
3817
3980
  {
3818
3981
  onClick: () => !isDisabled && deleteFile(index),
3819
3982
  className: isDisabled ? "cursor-not-allowed opacity-50" : "cursor-pointer",
3820
- children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icon_default, { className: "w-4 h-4 text-primary", name: "delete" })
3983
+ children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Icon_default, { className: "w-4 h-4 text-primary", name: "delete" })
3821
3984
  }
3822
3985
  )
3823
3986
  ] }, index)) })
@@ -3829,12 +3992,12 @@ var init_AssetUpload = __esm({
3829
3992
  });
3830
3993
 
3831
3994
  // src/components/controls/edit/SwitchInput.tsx
3832
- var import_react42, import_jsx_runtime54, SwitchInput, SwitchInput_default;
3995
+ var import_react42, import_jsx_runtime55, SwitchInput, SwitchInput_default;
3833
3996
  var init_SwitchInput = __esm({
3834
3997
  "src/components/controls/edit/SwitchInput.tsx"() {
3835
3998
  "use strict";
3836
3999
  import_react42 = __toESM(require("react"));
3837
- import_jsx_runtime54 = require("react/jsx-runtime");
4000
+ import_jsx_runtime55 = require("react/jsx-runtime");
3838
4001
  SwitchInput = (props) => {
3839
4002
  const textChangeHandler = (event) => {
3840
4003
  let text = event.target.checked;
@@ -3851,28 +4014,28 @@ var init_SwitchInput = __esm({
3851
4014
  if (props.value != void 0 && props.value != null && props.value != "" && (props.value == "true" || props.value.toString() == "true")) {
3852
4015
  value = true;
3853
4016
  }
3854
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_react42.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "flex items-start justify-between gap-4 py-3", children: [
3855
- /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "min-w-0", children: [
3856
- props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
4017
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_react42.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: "flex items-start justify-between gap-4 py-3", children: [
4018
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: "min-w-0", children: [
4019
+ props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
3857
4020
  "label",
3858
4021
  {
3859
4022
  htmlFor: props.name,
3860
4023
  className: "inline-block text-sm font-semibold text-slate-800",
3861
4024
  children: [
3862
4025
  props.attributes.label,
3863
- props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "bg-error-weak", children: "*" })
4026
+ props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { className: "bg-error-weak", children: "*" })
3864
4027
  ]
3865
4028
  }
3866
4029
  ),
3867
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage || "" })
4030
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage || "" })
3868
4031
  ] }),
3869
- /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
4032
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
3870
4033
  "label",
3871
4034
  {
3872
4035
  htmlFor: props.name,
3873
4036
  className: "relative inline-flex shrink-0 cursor-pointer items-center peer-disabled:cursor-not-allowed",
3874
4037
  children: [
3875
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
4038
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
3876
4039
  "input",
3877
4040
  {
3878
4041
  type: "checkbox",
@@ -3885,13 +4048,13 @@ var init_SwitchInput = __esm({
3885
4048
  className: "peer sr-only"
3886
4049
  }
3887
4050
  ),
3888
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
4051
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
3889
4052
  "div",
3890
4053
  {
3891
4054
  className: "h-6 w-11 rounded-full bg-slate-200 shadow-inner\n transition-colors duration-200 ease-in-out\n peer-checked:bg-blue-600\n peer-focus-visible:ring-2 peer-focus-visible:ring-blue-300 peer-focus-visible:ring-offset-2\n peer-disabled:bg-slate-100"
3892
4055
  }
3893
4056
  ),
3894
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
4057
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
3895
4058
  "div",
3896
4059
  {
3897
4060
  className: "absolute left-0.5 top-0.5 h-5 w-5 rounded-full bg-default shadow\n transition-transform duration-200 ease-in-out\n peer-checked:translate-x-5\n peer-disabled:bg-slate-50"
@@ -3989,13 +4152,13 @@ var init_DateTimeUtility = __esm({
3989
4152
  });
3990
4153
 
3991
4154
  // src/components/controls/edit/DateInput.tsx
3992
- var import_react43, import_jsx_runtime55, DateInput, DateInput_default;
4155
+ var import_react43, import_jsx_runtime56, DateInput, DateInput_default;
3993
4156
  var init_DateInput = __esm({
3994
4157
  "src/components/controls/edit/DateInput.tsx"() {
3995
4158
  "use strict";
3996
4159
  import_react43 = require("react");
3997
4160
  init_DateTimeUtility();
3998
- import_jsx_runtime55 = require("react/jsx-runtime");
4161
+ import_jsx_runtime56 = require("react/jsx-runtime");
3999
4162
  DateInput = (props) => {
4000
4163
  const value = (0, import_react43.useMemo)(() => {
4001
4164
  if (props.value === void 0 || props.value === null || props.value === "") {
@@ -4029,11 +4192,11 @@ var init_DateInput = __esm({
4029
4192
  groupKey: props.groupKey
4030
4193
  });
4031
4194
  };
4032
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("label", { className: "block mb-1", children: [
4033
- props.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { className: "text-sm font-medium", children: props.attributes.label }),
4195
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("label", { className: "block mb-1", children: [
4196
+ props.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "text-sm font-medium", children: props.attributes.label }),
4034
4197
  " ",
4035
- props.attributes?.label && props.attributes.required && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { className: "bg-error-weak", children: "*" }),
4036
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
4198
+ props.attributes?.label && props.attributes.required && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "bg-error-weak", children: "*" }),
4199
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
4037
4200
  "input",
4038
4201
  {
4039
4202
  type: "date",
@@ -4047,7 +4210,7 @@ var init_DateInput = __esm({
4047
4210
  className: `peer input mt-1 py-1.5 block w-full rounded shadow-sm ${props.inputClasses ?? ""}`
4048
4211
  }
4049
4212
  ),
4050
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props.attributes?.errorMessage ?? "" })
4213
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props.attributes?.errorMessage ?? "" })
4051
4214
  ] });
4052
4215
  };
4053
4216
  DateInput_default = DateInput;
@@ -4055,13 +4218,13 @@ var init_DateInput = __esm({
4055
4218
  });
4056
4219
 
4057
4220
  // src/components/controls/edit/RadioInput.tsx
4058
- var import_react44, import_jsx_runtime56, RadioInput, RadioInput_default;
4221
+ var import_react44, import_jsx_runtime57, RadioInput, RadioInput_default;
4059
4222
  var init_RadioInput = __esm({
4060
4223
  "src/components/controls/edit/RadioInput.tsx"() {
4061
4224
  "use strict";
4062
4225
  import_react44 = require("react");
4063
4226
  init_Icon();
4064
- import_jsx_runtime56 = require("react/jsx-runtime");
4227
+ import_jsx_runtime57 = require("react/jsx-runtime");
4065
4228
  RadioInput = (props) => {
4066
4229
  const [list, setList] = (0, import_react44.useState)([]);
4067
4230
  (0, import_react44.useEffect)(() => {
@@ -4106,22 +4269,22 @@ var init_RadioInput = __esm({
4106
4269
  });
4107
4270
  }
4108
4271
  };
4109
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "block", children: [
4110
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "text-sm font-medium", children: props.attributes?.label }),
4111
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "flex flex-col gap-3", children: list.map((item, index) => {
4272
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "block", children: [
4273
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "text-sm font-medium", children: props.attributes?.label }),
4274
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "flex flex-col gap-3", children: list.map((item, index) => {
4112
4275
  const itemValue = item[props.dataKeyFieldName];
4113
4276
  const isSelected = String(itemValue) === String(props.value ?? "");
4114
4277
  const isRecommended = props.dataRecommendedValue !== void 0 && String(itemValue) === String(props.dataRecommendedValue);
4115
4278
  const resultClassName = isSelected ? isRecommended ? "bg-success" : props.dataRecommendedValue ? "bg-alert" : "border-transparent" : "border-transparent";
4116
4279
  const iconName = isSelected && props.dataRecommendedValue ? isRecommended ? "checkCircle" : "xCircle" : void 0;
4117
4280
  const inputId = `${props.name}-${props.index ?? 0}-id-${index}`;
4118
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
4281
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
4119
4282
  "div",
4120
4283
  {
4121
4284
  className: `font-normal flex items-center justify-between gap-4 cursor-pointer border rounded p-2 ${resultClassName}`,
4122
4285
  children: [
4123
- /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "flex gap-4 items-start", children: [
4124
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
4286
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "flex gap-4 items-start", children: [
4287
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
4125
4288
  "input",
4126
4289
  {
4127
4290
  type: "radio",
@@ -4135,15 +4298,15 @@ var init_RadioInput = __esm({
4135
4298
  required: props.attributes?.required
4136
4299
  }
4137
4300
  ),
4138
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("label", { className: "text-body-950 pr-2", htmlFor: inputId, children: item[props.dataTextFieldName] })
4301
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("label", { className: "text-body-950 pr-2", htmlFor: inputId, children: item[props.dataTextFieldName] })
4139
4302
  ] }),
4140
- iconName && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Icon_default, { className: "w-5 h-5 text-success", name: iconName })
4303
+ iconName && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Icon_default, { className: "w-5 h-5 text-success", name: iconName })
4141
4304
  ]
4142
4305
  },
4143
4306
  String(itemValue)
4144
4307
  );
4145
4308
  }) }),
4146
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props.attributes?.errorMessage ?? "" })
4309
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props.attributes?.errorMessage ?? "" })
4147
4310
  ] });
4148
4311
  };
4149
4312
  RadioInput_default = RadioInput;
@@ -4151,12 +4314,12 @@ var init_RadioInput = __esm({
4151
4314
  });
4152
4315
 
4153
4316
  // src/components/controls/edit/Switcher.tsx
4154
- var import_react45, import_jsx_runtime57, Switcher, Switcher_default;
4317
+ var import_react45, import_jsx_runtime58, Switcher, Switcher_default;
4155
4318
  var init_Switcher = __esm({
4156
4319
  "src/components/controls/edit/Switcher.tsx"() {
4157
4320
  "use strict";
4158
4321
  import_react45 = require("react");
4159
- import_jsx_runtime57 = require("react/jsx-runtime");
4322
+ import_jsx_runtime58 = require("react/jsx-runtime");
4160
4323
  Switcher = (props) => {
4161
4324
  const [list, setList] = (0, import_react45.useState)([]);
4162
4325
  (0, import_react45.useEffect)(() => {
@@ -4200,9 +4363,9 @@ var init_Switcher = __esm({
4200
4363
  });
4201
4364
  };
4202
4365
  const value = props.value === void 0 || props.value === null ? "" : String(props.value);
4203
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("label", { className: "block mb-1", children: [
4204
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "text-sm font-medium", children: props.attributes?.label }),
4205
- list.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
4366
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("label", { className: "block mb-1", children: [
4367
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "text-sm font-medium", children: props.attributes?.label }),
4368
+ list.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
4206
4369
  "input",
4207
4370
  {
4208
4371
  type: "text",
@@ -4215,7 +4378,7 @@ var init_Switcher = __esm({
4215
4378
  disabled: props.attributes?.readOnly,
4216
4379
  className: `peer input mt-1 py-1.5 block w-full rounded shadow-sm ${props.inputClasses ?? ""}`
4217
4380
  }
4218
- ) : /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
4381
+ ) : /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
4219
4382
  "select",
4220
4383
  {
4221
4384
  name: props.name,
@@ -4226,8 +4389,8 @@ var init_Switcher = __esm({
4226
4389
  disabled: props.attributes?.readOnly,
4227
4390
  className: `peer select my-1 py-1 block w-full rounded shadow-sm ${props.inputClasses ?? ""}`,
4228
4391
  children: [
4229
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("option", { value: "", children: props.attributes?.placeholder || "Select" }),
4230
- list.map((item) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
4392
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("option", { value: "", children: props.attributes?.placeholder || "Select" }),
4393
+ list.map((item) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
4231
4394
  "option",
4232
4395
  {
4233
4396
  value: item[props.dataKeyFieldName],
@@ -4238,7 +4401,7 @@ var init_Switcher = __esm({
4238
4401
  ]
4239
4402
  }
4240
4403
  ),
4241
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props.attributes?.errorMessage ?? "" })
4404
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props.attributes?.errorMessage ?? "" })
4242
4405
  ] });
4243
4406
  };
4244
4407
  Switcher_default = Switcher;
@@ -4246,14 +4409,14 @@ var init_Switcher = __esm({
4246
4409
  });
4247
4410
 
4248
4411
  // src/components/controls/edit/ReferenceInput.tsx
4249
- var import_jsx_runtime58, ReferenceInput, ReferenceInput_default;
4412
+ var import_jsx_runtime59, ReferenceInput, ReferenceInput_default;
4250
4413
  var init_ReferenceInput = __esm({
4251
4414
  "src/components/controls/edit/ReferenceInput.tsx"() {
4252
4415
  "use strict";
4253
4416
  init_SelectWithSearchInput();
4254
- import_jsx_runtime58 = require("react/jsx-runtime");
4417
+ import_jsx_runtime59 = require("react/jsx-runtime");
4255
4418
  ReferenceInput = (props) => {
4256
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(SelectWithSearchInput_default, { ...props });
4419
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(SelectWithSearchInput_default, { ...props });
4257
4420
  };
4258
4421
  ReferenceInput_default = ReferenceInput;
4259
4422
  }
@@ -4264,7 +4427,7 @@ var InputControlClient_exports = {};
4264
4427
  __export(InputControlClient_exports, {
4265
4428
  default: () => InputControlClient_default
4266
4429
  });
4267
- var import_react46, import_jsx_runtime59, InputControl, InputControlClient_default;
4430
+ var import_react46, import_jsx_runtime60, InputControl, InputControlClient_default;
4268
4431
  var init_InputControlClient = __esm({
4269
4432
  "src/components/controls/edit/InputControlClient.tsx"() {
4270
4433
  "use strict";
@@ -4293,7 +4456,7 @@ var init_InputControlClient = __esm({
4293
4456
  init_RadioInput();
4294
4457
  init_Switcher();
4295
4458
  init_ReferenceInput();
4296
- import_jsx_runtime59 = require("react/jsx-runtime");
4459
+ import_jsx_runtime60 = require("react/jsx-runtime");
4297
4460
  InputControl = import_react46.default.forwardRef(
4298
4461
  (props, ref) => {
4299
4462
  const ControlComponents = {
@@ -4322,7 +4485,7 @@ var init_InputControlClient = __esm({
4322
4485
  [InputControlType_default.referenceInput]: ReferenceInput_default
4323
4486
  };
4324
4487
  const SelectedControlComponent = ControlComponents[props.controlType];
4325
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react46.default.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
4488
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react46.default.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
4326
4489
  }
4327
4490
  );
4328
4491
  InputControl.displayName = "InputControl";
@@ -4578,7 +4741,7 @@ var LinkNodeButton_exports = {};
4578
4741
  __export(LinkNodeButton_exports, {
4579
4742
  default: () => LinkNodeButton_default
4580
4743
  });
4581
- var import_react47, import_jsx_runtime63, LinkNodeButton, LinkNodeButton_default;
4744
+ var import_react47, import_jsx_runtime64, LinkNodeButton, LinkNodeButton_default;
4582
4745
  var init_LinkNodeButton = __esm({
4583
4746
  "src/components/pageRenderingEngine/nodes/LinkNodeButton.tsx"() {
4584
4747
  "use strict";
@@ -4587,7 +4750,7 @@ var init_LinkNodeButton = __esm({
4587
4750
  init_Button();
4588
4751
  init_ServiceClient();
4589
4752
  init_ToastService();
4590
- import_jsx_runtime63 = require("react/jsx-runtime");
4753
+ import_jsx_runtime64 = require("react/jsx-runtime");
4591
4754
  LinkNodeButton = (props) => {
4592
4755
  const { node, dataitem, children, linkText, linkType, linkUrl } = props;
4593
4756
  const [isLoading, setIsLoading] = (0, import_react47.useState)(false);
@@ -4754,32 +4917,32 @@ var init_LinkNodeButton = __esm({
4754
4917
  return children;
4755
4918
  }
4756
4919
  if (linkText) {
4757
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { children: linkText });
4920
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { children: linkText });
4758
4921
  }
4759
4922
  return node.title || "Button";
4760
4923
  };
4761
4924
  const fontSize = node.children?.[0]?.style?.match(/font-size:\s*([^;]+)/)?.[1];
4762
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "link-button-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
4925
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "link-button-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
4763
4926
  Button_default,
4764
4927
  {
4765
4928
  ButtonType: linkType,
4766
4929
  onClick,
4767
4930
  disabled: isLoading || !!successMessage,
4768
4931
  className: "w-full",
4769
- children: successMessage ? /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
4932
+ children: successMessage ? /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
4770
4933
  "span",
4771
4934
  {
4772
4935
  style: fontSize ? { fontSize } : void 0,
4773
4936
  className: "inline-flex items-center gap-2",
4774
4937
  children: [
4775
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
4938
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
4776
4939
  "svg",
4777
4940
  {
4778
4941
  xmlns: "http://www.w3.org/2000/svg",
4779
4942
  viewBox: "0 0 20 20",
4780
4943
  fill: "currentColor",
4781
4944
  className: "w-5 h-5",
4782
- children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
4945
+ children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
4783
4946
  "path",
4784
4947
  {
4785
4948
  fillRule: "evenodd",
@@ -4789,7 +4952,7 @@ var init_LinkNodeButton = __esm({
4789
4952
  )
4790
4953
  }
4791
4954
  ),
4792
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { children: successMessage })
4955
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { children: successMessage })
4793
4956
  ]
4794
4957
  }
4795
4958
  ) : renderButtonContent()
@@ -4823,13 +4986,13 @@ function CopyButton({ text }) {
4823
4986
  console.error("Failed to copy: ", err);
4824
4987
  }
4825
4988
  };
4826
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
4989
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
4827
4990
  "button",
4828
4991
  {
4829
4992
  onClick: handleCopy,
4830
4993
  className: "flex gap-1 items-center hover:text-white transition",
4831
4994
  children: [
4832
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
4995
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
4833
4996
  "svg",
4834
4997
  {
4835
4998
  width: "16",
@@ -4837,7 +5000,7 @@ function CopyButton({ text }) {
4837
5000
  viewBox: "0 0 24 24",
4838
5001
  className: "w-4 h-4",
4839
5002
  fill: "currentColor",
4840
- children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
5003
+ children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
4841
5004
  "path",
4842
5005
  {
4843
5006
  fillRule: "evenodd",
@@ -4852,54 +5015,54 @@ function CopyButton({ text }) {
4852
5015
  }
4853
5016
  );
4854
5017
  }
4855
- var import_react54, import_jsx_runtime73;
5018
+ var import_react54, import_jsx_runtime74;
4856
5019
  var init_CopyButton = __esm({
4857
5020
  "src/components/CopyButton.tsx"() {
4858
5021
  "use strict";
4859
5022
  "use client";
4860
5023
  import_react54 = require("react");
4861
- import_jsx_runtime73 = require("react/jsx-runtime");
5024
+ import_jsx_runtime74 = require("react/jsx-runtime");
4862
5025
  }
4863
5026
  });
4864
5027
 
4865
5028
  // src/components/IFrameLoaderView.tsx
4866
- var import_react57, import_jsx_runtime77, IFrameLoaderView, IFrameLoaderView_default;
5029
+ var import_react57, import_jsx_runtime78, IFrameLoaderView, IFrameLoaderView_default;
4867
5030
  var init_IFrameLoaderView = __esm({
4868
5031
  "src/components/IFrameLoaderView.tsx"() {
4869
5032
  "use strict";
4870
5033
  import_react57 = __toESM(require("react"));
4871
- import_jsx_runtime77 = require("react/jsx-runtime");
5034
+ import_jsx_runtime78 = require("react/jsx-runtime");
4872
5035
  IFrameLoaderView = (props) => {
4873
- return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(import_react57.default.Fragment, { children: [
4874
- props.isDataFound == null && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "", children: /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "mt-4 bg-gray-200 rounded-md p-4 animate-pulse", children: [
4875
- /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "flex items-center mb-4", children: [
4876
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
4877
- /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "ml-2", children: [
4878
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
4879
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
5036
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(import_react57.default.Fragment, { children: [
5037
+ props.isDataFound == null && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "", children: /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "mt-4 bg-gray-200 rounded-md p-4 animate-pulse", children: [
5038
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "flex items-center mb-4", children: [
5039
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
5040
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "ml-2", children: [
5041
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
5042
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
4880
5043
  ] })
4881
5044
  ] }),
4882
- /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
4883
- /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "animate-pulse", children: [
4884
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
4885
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
4886
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
4887
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
4888
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
5045
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
5046
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "animate-pulse", children: [
5047
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
5048
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
5049
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
5050
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
5051
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
4889
5052
  ] }),
4890
- /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "animate-pulse", children: [
4891
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
4892
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
4893
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
4894
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
4895
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
5053
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "animate-pulse", children: [
5054
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
5055
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
5056
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
5057
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
5058
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
4896
5059
  ] }),
4897
- /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "animate-pulse", children: [
4898
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
4899
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
4900
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
4901
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
4902
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
5060
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "animate-pulse", children: [
5061
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
5062
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
5063
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
5064
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
5065
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
4903
5066
  ] })
4904
5067
  ] })
4905
5068
  ] }) }),
@@ -4915,14 +5078,14 @@ var IframeClient_exports = {};
4915
5078
  __export(IframeClient_exports, {
4916
5079
  default: () => IframeClient_default
4917
5080
  });
4918
- var import_react58, import_jsx_runtime78, IframeClient, IframeClient_default;
5081
+ var import_react58, import_jsx_runtime79, IframeClient, IframeClient_default;
4919
5082
  var init_IframeClient = __esm({
4920
5083
  "src/components/pageRenderingEngine/nodes/IframeClient.tsx"() {
4921
5084
  "use strict";
4922
5085
  "use client";
4923
5086
  import_react58 = __toESM(require("react"));
4924
5087
  init_IFrameLoaderView();
4925
- import_jsx_runtime78 = require("react/jsx-runtime");
5088
+ import_jsx_runtime79 = require("react/jsx-runtime");
4926
5089
  IframeClient = ({
4927
5090
  src,
4928
5091
  width,
@@ -4961,7 +5124,7 @@ var init_IframeClient = __esm({
4961
5124
  const handleIframeLoad = () => {
4962
5125
  setIsDataFound(true);
4963
5126
  };
4964
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_react58.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(IFrameLoaderView_default, { isDataFound, children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
5127
+ return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_react58.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(IFrameLoaderView_default, { isDataFound, children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
4965
5128
  "iframe",
4966
5129
  {
4967
5130
  ref: iframeRef,
@@ -5220,7 +5383,7 @@ var Pagination_exports = {};
5220
5383
  __export(Pagination_exports, {
5221
5384
  default: () => Pagination_default
5222
5385
  });
5223
- var import_react59, import_jsx_runtime84, Pagination, Pagination_default;
5386
+ var import_react59, import_jsx_runtime85, Pagination, Pagination_default;
5224
5387
  var init_Pagination = __esm({
5225
5388
  "src/components/Pagination.tsx"() {
5226
5389
  "use strict";
@@ -5231,7 +5394,7 @@ var init_Pagination = __esm({
5231
5394
  init_StyleTypes();
5232
5395
  init_InputControlType();
5233
5396
  init_Hyperlink();
5234
- import_jsx_runtime84 = require("react/jsx-runtime");
5397
+ import_jsx_runtime85 = require("react/jsx-runtime");
5235
5398
  Pagination = (props) => {
5236
5399
  const { dataset, path, query, showPageSizeSelector = false, showJumpToPage = false } = props;
5237
5400
  const builder = (0, import_react59.useMemo)(() => {
@@ -5275,7 +5438,7 @@ var init_Pagination = __esm({
5275
5438
  return range;
5276
5439
  };
5277
5440
  const paginationRange = getPaginationRange();
5278
- const PageButton = ({ page, children }) => /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
5441
+ const PageButton = ({ page, children }) => /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
5279
5442
  Hyperlink,
5280
5443
  {
5281
5444
  linkType: "Link" /* Link */,
@@ -5290,9 +5453,9 @@ var init_Pagination = __esm({
5290
5453
  );
5291
5454
  const NavigationButton = ({ page, disabled, children }) => {
5292
5455
  if (disabled) {
5293
- return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("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 });
5456
+ return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("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 });
5294
5457
  }
5295
- return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
5458
+ return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
5296
5459
  Hyperlink,
5297
5460
  {
5298
5461
  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",
@@ -5302,35 +5465,35 @@ var init_Pagination = __esm({
5302
5465
  );
5303
5466
  };
5304
5467
  if (totalPages <= 1 && totalItems === 0) return null;
5305
- return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "py-6 border-t bg-default", children: [
5306
- /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "flex flex-col sm:flex-row items-center justify-between gap-4", children: [
5307
- /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "text-sm", children: [
5468
+ return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "py-6 border-t bg-default", children: [
5469
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "flex flex-col sm:flex-row items-center justify-between gap-4", children: [
5470
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "text-sm", children: [
5308
5471
  "Showing ",
5309
- /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("span", { className: "font-semibold", children: [
5472
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("span", { className: "font-semibold", children: [
5310
5473
  startItem,
5311
5474
  "-",
5312
5475
  endItem
5313
5476
  ] }),
5314
5477
  " ",
5315
5478
  "out of ",
5316
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("span", { className: "font-semibold", children: totalItems.toLocaleString() }),
5479
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { className: "font-semibold", children: totalItems.toLocaleString() }),
5317
5480
  " results"
5318
5481
  ] }),
5319
- totalPages > 1 && /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "flex items-center space-x-1", children: [
5320
- /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
5482
+ totalPages > 1 && /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "flex items-center space-x-1", children: [
5483
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
5321
5484
  NavigationButton,
5322
5485
  {
5323
5486
  page: activePageNumber - 1,
5324
5487
  disabled: activePageNumber === 1,
5325
5488
  children: [
5326
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Icon_default, { name: "chevronLeft", className: "w-4 h-4 mr-1" }) }),
5327
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("span", { className: "text-sm", children: "Prev" })
5489
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Icon_default, { name: "chevronLeft", className: "w-4 h-4 mr-1" }) }),
5490
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { className: "text-sm", children: "Prev" })
5328
5491
  ]
5329
5492
  }
5330
5493
  ),
5331
5494
  paginationRange.map((item, index) => {
5332
5495
  if (item === "...") {
5333
- return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
5496
+ return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
5334
5497
  "span",
5335
5498
  {
5336
5499
  className: "min-w-[20px] md:min-w-[40px] h-10 flex items-center justify-center text-gray-500",
@@ -5340,23 +5503,23 @@ var init_Pagination = __esm({
5340
5503
  );
5341
5504
  }
5342
5505
  const page = item;
5343
- return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(PageButton, { page, children: page }, page);
5506
+ return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(PageButton, { page, children: page }, page);
5344
5507
  }),
5345
- /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
5508
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
5346
5509
  NavigationButton,
5347
5510
  {
5348
5511
  page: activePageNumber + 1,
5349
5512
  disabled: activePageNumber === totalPages,
5350
5513
  children: [
5351
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("span", { className: "text-sm", children: "Next" }),
5352
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Icon_default, { name: "chevronRight", className: "w-4 h-4 ml-1" }) })
5514
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { className: "text-sm", children: "Next" }),
5515
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Icon_default, { name: "chevronRight", className: "w-4 h-4 ml-1" }) })
5353
5516
  ]
5354
5517
  }
5355
5518
  )
5356
5519
  ] }),
5357
- showJumpToPage && totalPages > 5 && /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "flex items-center space-x-2", children: [
5358
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("span", { className: "text-sm", children: "Go to:" }),
5359
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
5520
+ showJumpToPage && totalPages > 5 && /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "flex items-center space-x-2", children: [
5521
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { className: "text-sm", children: "Go to:" }),
5522
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
5360
5523
  "input",
5361
5524
  {
5362
5525
  type: "number",
@@ -5377,9 +5540,9 @@ var init_Pagination = __esm({
5377
5540
  ) })
5378
5541
  ] })
5379
5542
  ] }),
5380
- showPageSizeSelector && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: "mt-4 pt-4 border-t bg-default", children: /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "flex items-center justify-center space-x-2", children: [
5381
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("span", { className: "text-sm", children: "Show:" }),
5382
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: "flex space-x-1", children: [10, 25, 50, 100].map((size) => /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
5543
+ showPageSizeSelector && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "mt-4 pt-4 border-t bg-default", children: /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "flex items-center justify-center space-x-2", children: [
5544
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { className: "text-sm", children: "Show:" }),
5545
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "flex space-x-1", children: [10, 25, 50, 100].map((size) => /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
5383
5546
  Hyperlink,
5384
5547
  {
5385
5548
  className: `
@@ -5391,7 +5554,7 @@ var init_Pagination = __esm({
5391
5554
  },
5392
5555
  size
5393
5556
  )) }),
5394
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("span", { className: "text-sm", children: "per page" })
5557
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { className: "text-sm", children: "per page" })
5395
5558
  ] }) })
5396
5559
  ] });
5397
5560
  };
@@ -5404,7 +5567,7 @@ var DataBindingControls_exports = {};
5404
5567
  __export(DataBindingControls_exports, {
5405
5568
  default: () => DataBindingControls_default
5406
5569
  });
5407
- var import_react60, import_navigation, import_jsx_runtime85, humanize, escapeODataString, parseFacetSelections, buildFacetFilter, parseODataSearch, normalizeSortOption, DUMMY_FACETS, DUMMY_SORT_OPTIONS, DataBindingControls, DataBindingControls_default;
5570
+ var import_react60, import_navigation, import_jsx_runtime86, humanize, escapeODataString, parseFacetSelections, buildFacetFilter, parseODataSearch, normalizeSortOption, DUMMY_FACETS, DUMMY_SORT_OPTIONS, DataBindingControls, DataBindingControls_default;
5408
5571
  var init_DataBindingControls = __esm({
5409
5572
  "src/components/pageRenderingEngine/nodes/DataBindingControls.tsx"() {
5410
5573
  "use strict";
@@ -5413,7 +5576,7 @@ var init_DataBindingControls = __esm({
5413
5576
  import_navigation = require("next/navigation");
5414
5577
  init_InputControl();
5415
5578
  init_InputControlType();
5416
- import_jsx_runtime85 = require("react/jsx-runtime");
5579
+ import_jsx_runtime86 = require("react/jsx-runtime");
5417
5580
  humanize = (value) => value.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " ").trim();
5418
5581
  escapeODataString = (value) => value.replace(/'/g, "''");
5419
5582
  parseFacetSelections = (filter) => {
@@ -5562,8 +5725,8 @@ var init_DataBindingControls = __esm({
5562
5725
  if (!shouldShowToolbar && !shouldShowFacets) {
5563
5726
  return null;
5564
5727
  }
5565
- const renderFacetLinks = (field, values, stacked = false) => /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: stacked ? "flex flex-col gap-1" : "flex flex-wrap gap-2", children: [
5566
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
5728
+ const renderFacetLinks = (field, values, stacked = false) => /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: stacked ? "flex flex-col gap-1" : "flex flex-wrap gap-2", children: [
5729
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
5567
5730
  "button",
5568
5731
  {
5569
5732
  type: "button",
@@ -5575,7 +5738,7 @@ var init_DataBindingControls = __esm({
5575
5738
  ),
5576
5739
  values.map((facet) => {
5577
5740
  const isSelected = selectedFacetValues.get(field) === facet.value;
5578
- return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
5741
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
5579
5742
  "button",
5580
5743
  {
5581
5744
  type: "button",
@@ -5593,9 +5756,9 @@ var init_DataBindingControls = __esm({
5593
5756
  );
5594
5757
  })
5595
5758
  ] });
5596
- return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: mode === "toolbar" ? "mb-6" : "flex flex-col gap-2", children: [
5597
- shouldShowToolbar && /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "flex flex-col gap-3 md:flex-row md:items-center md:justify-between", children: [
5598
- showSearchBar && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "w-full max-w-xl", children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
5759
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: mode === "toolbar" ? "mb-6" : "flex flex-col gap-2", children: [
5760
+ shouldShowToolbar && /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "flex flex-col gap-3 md:flex-row md:items-center md:justify-between", children: [
5761
+ showSearchBar && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "w-full max-w-xl", children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
5599
5762
  InputControl_default,
5600
5763
  {
5601
5764
  name: "searchText",
@@ -5606,9 +5769,9 @@ var init_DataBindingControls = __esm({
5606
5769
  inputClasses: "!mt-0"
5607
5770
  }
5608
5771
  ) }),
5609
- hasSortControls && /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "flex items-center gap-2 text-sm", children: [
5610
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { className: "font-medium", children: "Sort by" }),
5611
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
5772
+ hasSortControls && /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "flex items-center gap-2 text-sm", children: [
5773
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("span", { className: "font-medium", children: "Sort by" }),
5774
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
5612
5775
  InputControl_default,
5613
5776
  {
5614
5777
  name: "sortOptions",
@@ -5629,10 +5792,10 @@ var init_DataBindingControls = __esm({
5629
5792
  )
5630
5793
  ] })
5631
5794
  ] }),
5632
- shouldShowFacets && facetGroups.length === 1 && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("nav", { "aria-label": `${humanize(facetGroups[0][0])} filters`, children: renderFacetLinks(facetGroups[0][0], facetGroups[0][1]) }),
5633
- shouldShowFacets && facetGroups.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "flex flex-col gap-2", children: facetGroups.map(([field, values]) => /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("details", { className: "border-b", open: true, children: [
5634
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("summary", { className: "cursor-pointer font-semibold", children: humanize(field) }),
5635
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "p-2", children: renderFacetLinks(field, values, true) })
5795
+ shouldShowFacets && facetGroups.length === 1 && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("nav", { "aria-label": `${humanize(facetGroups[0][0])} filters`, children: renderFacetLinks(facetGroups[0][0], facetGroups[0][1]) }),
5796
+ shouldShowFacets && facetGroups.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "flex flex-col gap-2", children: facetGroups.map(([field, values]) => /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("details", { className: "border-b", open: true, children: [
5797
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("summary", { className: "cursor-pointer font-semibold", children: humanize(field) }),
5798
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "p-2", children: renderFacetLinks(field, values, true) })
5636
5799
  ] }, field)) })
5637
5800
  ] });
5638
5801
  };
@@ -5645,13 +5808,13 @@ var Slider_exports = {};
5645
5808
  __export(Slider_exports, {
5646
5809
  default: () => Slider_default
5647
5810
  });
5648
- var import_react61, import_jsx_runtime86, Slider, ArrowButton, ProgressPill, Slider_default;
5811
+ var import_react61, import_jsx_runtime87, Slider, ArrowButton, ProgressPill, Slider_default;
5649
5812
  var init_Slider = __esm({
5650
5813
  "src/components/Slider.tsx"() {
5651
5814
  "use strict";
5652
5815
  "use client";
5653
5816
  import_react61 = __toESM(require("react"));
5654
- import_jsx_runtime86 = require("react/jsx-runtime");
5817
+ import_jsx_runtime87 = require("react/jsx-runtime");
5655
5818
  Slider = ({
5656
5819
  children,
5657
5820
  slidesToShow = 4,
@@ -5748,7 +5911,7 @@ var init_Slider = __esm({
5748
5911
  if (!import_react61.default.isValidElement(child)) return null;
5749
5912
  const childProps = child.props;
5750
5913
  const mergedClassName = `${childProps.className ?? ""} w-full`.trim();
5751
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
5914
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
5752
5915
  "div",
5753
5916
  {
5754
5917
  className: `flex-none ${scaleOnHover ? "group hover:z-50" : ""} relative`,
@@ -5771,14 +5934,14 @@ var init_Slider = __esm({
5771
5934
  return "bottom-4";
5772
5935
  }
5773
5936
  };
5774
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
5937
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(
5775
5938
  "div",
5776
5939
  {
5777
5940
  className: `relative w-full overflow-hidden ${className}`,
5778
5941
  onMouseEnter: handleMouseEnter,
5779
5942
  onMouseLeave: handleMouseLeave,
5780
5943
  children: [
5781
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
5944
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
5782
5945
  "div",
5783
5946
  {
5784
5947
  className: "flex h-full",
@@ -5789,18 +5952,18 @@ var init_Slider = __esm({
5789
5952
  children: slides
5790
5953
  }
5791
5954
  ),
5792
- show_arrows && /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(import_jsx_runtime86.Fragment, { children: [
5793
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
5955
+ show_arrows && /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(import_jsx_runtime87.Fragment, { children: [
5956
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
5794
5957
  ArrowButton,
5795
5958
  {
5796
5959
  direction: "left",
5797
5960
  onClick: prevSlide,
5798
5961
  visible: infinite_scroll || currentSlide > 0,
5799
5962
  className: arrowClassName,
5800
- children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("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__ */ (0, import_jsx_runtime86.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M15.75 19.5 8.25 12l7.5-7.5" }) })
5963
+ children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("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__ */ (0, import_jsx_runtime87.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M15.75 19.5 8.25 12l7.5-7.5" }) })
5801
5964
  }
5802
5965
  ),
5803
- /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
5966
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(
5804
5967
  ArrowButton,
5805
5968
  {
5806
5969
  direction: "right",
@@ -5808,13 +5971,13 @@ var init_Slider = __esm({
5808
5971
  visible: infinite_scroll || currentSlide < maxSlide,
5809
5972
  className: arrowClassName,
5810
5973
  children: [
5811
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("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__ */ (0, import_jsx_runtime86.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "m8.25 4.5 7.5 7.5-7.5 7.5" }) }),
5974
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("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__ */ (0, import_jsx_runtime87.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "m8.25 4.5 7.5 7.5-7.5 7.5" }) }),
5812
5975
  " "
5813
5976
  ]
5814
5977
  }
5815
5978
  )
5816
5979
  ] }),
5817
- show_dots && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("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__ */ (0, import_jsx_runtime86.jsx)(
5980
+ show_dots && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("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__ */ (0, import_jsx_runtime87.jsx)(
5818
5981
  ProgressPill,
5819
5982
  {
5820
5983
  active: index === currentSlide,
@@ -5840,7 +6003,7 @@ var init_Slider = __esm({
5840
6003
  visible,
5841
6004
  children,
5842
6005
  className = ""
5843
- }) => /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
6006
+ }) => /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
5844
6007
  "button",
5845
6008
  {
5846
6009
  className: `
@@ -5927,7 +6090,7 @@ var init_Slider = __esm({
5927
6090
  const renderProgressBar = () => {
5928
6091
  if (style === "modern" && isActive || style === "cumulative" && shouldShowProgress) {
5929
6092
  const displayProgress = style === "cumulative" && isFilled ? 100 : progress;
5930
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
6093
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
5931
6094
  "div",
5932
6095
  {
5933
6096
  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`,
@@ -5939,7 +6102,7 @@ var init_Slider = __esm({
5939
6102
  };
5940
6103
  const renderCumulativeFill = () => {
5941
6104
  if (style === "cumulative" && isFilled && !isActive) {
5942
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
6105
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
5943
6106
  "div",
5944
6107
  {
5945
6108
  className: `absolute top-0 left-0 h-full rounded-full ${activeClassName || "bg-white"} transition-all duration-300`,
@@ -5949,7 +6112,7 @@ var init_Slider = __esm({
5949
6112
  }
5950
6113
  return null;
5951
6114
  };
5952
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
6115
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(
5953
6116
  "button",
5954
6117
  {
5955
6118
  className: `${baseClasses} ${getStyleClasses()}`,
@@ -6374,7 +6537,7 @@ var CommentRenderer = (0, import_dynamic5.default)(() => Promise.resolve().then(
6374
6537
  var Commentrenderer_default = CommentRenderer;
6375
6538
 
6376
6539
  // src/components/controls/view/ViewControl.tsx
6377
- var import_jsx_runtime27 = require("react/jsx-runtime");
6540
+ var import_jsx_runtime28 = require("react/jsx-runtime");
6378
6541
  var ViewControl = (props) => {
6379
6542
  const ControlComponents = {
6380
6543
  [ViewControlTypes_default.lineText]: LineTextView_default,
@@ -6405,7 +6568,7 @@ var ViewControl = (props) => {
6405
6568
  [ViewControlTypes_default.commentRenderer]: Commentrenderer_default
6406
6569
  };
6407
6570
  const SelectedControlComponent = props.controlType ? ControlComponents[props.controlType] : void 0;
6408
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react21.default.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
6571
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_react21.default.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
6409
6572
  };
6410
6573
  var ViewControl_default = ViewControl;
6411
6574
 
@@ -6420,7 +6583,7 @@ var import_react63 = __toESM(require("react"));
6420
6583
  var import_react49 = __toESM(require("react"));
6421
6584
 
6422
6585
  // src/components/pageRenderingEngine/nodes/TextNode.tsx
6423
- var import_jsx_runtime60 = require("react/jsx-runtime");
6586
+ var import_jsx_runtime61 = require("react/jsx-runtime");
6424
6587
  var TextNode = (props) => {
6425
6588
  function cssStringToJson(cssString) {
6426
6589
  const styleObject = {};
@@ -6475,26 +6638,26 @@ var TextNode = (props) => {
6475
6638
  });
6476
6639
  }
6477
6640
  function renderWithLineBreaks(text) {
6478
- return text.split("\n").map((line, index, arr) => /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("span", { children: [
6641
+ return text.split("\n").map((line, index, arr) => /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("span", { children: [
6479
6642
  line,
6480
- index < arr.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("br", {})
6643
+ index < arr.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("br", {})
6481
6644
  ] }, index));
6482
6645
  }
6483
6646
  const displayText = props.linkText ? props.linkText : props.node.text;
6484
6647
  const finalText = props.dataitem && props.linkText ? displayText : props.dataitem ? replacePlaceholders(props.node.text, props.dataitem) : props.node.text;
6485
6648
  const content = typeof finalText === "string" ? renderWithLineBreaks(finalText) : finalText;
6486
- const formattedContent = props.node.format & 64 ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("sup", { children: content }) : props.node.format & 32 ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("sub", { children: content }) : content;
6649
+ const formattedContent = props.node.format & 64 ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("sup", { children: content }) : props.node.format & 32 ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("sub", { children: content }) : content;
6487
6650
  return (
6488
6651
  // @ts-expect-error custom code
6489
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("span", { style: { ...styles }, className: getFormatClass(props.node.format), children: formattedContent })
6652
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { style: { ...styles }, className: getFormatClass(props.node.format), children: formattedContent })
6490
6653
  );
6491
6654
  };
6492
6655
  var TextNode_default = TextNode;
6493
6656
 
6494
6657
  // src/components/pageRenderingEngine/nodes/LineBreakNode.tsx
6495
- var import_jsx_runtime61 = require("react/jsx-runtime");
6658
+ var import_jsx_runtime62 = require("react/jsx-runtime");
6496
6659
  var LineBreakNode = () => {
6497
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "py-0.5 lg:py-1.5" });
6660
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "py-0.5 lg:py-1.5" });
6498
6661
  };
6499
6662
  var LineBreakNode_default = LineBreakNode;
6500
6663
 
@@ -6504,7 +6667,7 @@ var import_react48 = __toESM(require("react"));
6504
6667
  // src/components/pageRenderingEngine/nodes/ImageNode.tsx
6505
6668
  init_AssetUtility();
6506
6669
  var import_dynamic7 = __toESM(require("next/dynamic"));
6507
- var import_jsx_runtime62 = require("react/jsx-runtime");
6670
+ var import_jsx_runtime63 = require("react/jsx-runtime");
6508
6671
  var HlsPlayer3 = (0, import_dynamic7.default)(() => Promise.resolve().then(() => (init_HlsPlayer(), HlsPlayer_exports)), { ssr: false });
6509
6672
  var getNestedValue = (obj, path) => {
6510
6673
  if (!obj || !path) return void 0;
@@ -6537,7 +6700,7 @@ var ImageNode = (props) => {
6537
6700
  assets = [image];
6538
6701
  }
6539
6702
  if (assets && assets.length > 0) {
6540
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
6703
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
6541
6704
  DeviceAssetSelector_default,
6542
6705
  {
6543
6706
  device: props.device,
@@ -6578,7 +6741,7 @@ var ImageNode = (props) => {
6578
6741
  right: "justify-end"
6579
6742
  };
6580
6743
  const isHls = imageUrl.endsWith(".m3u8");
6581
- const renderMedia = () => isHls ? /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
6744
+ const renderMedia = () => isHls ? /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
6582
6745
  HlsPlayer3,
6583
6746
  {
6584
6747
  assetUrl: imageUrl,
@@ -6591,7 +6754,7 @@ var ImageNode = (props) => {
6591
6754
  apiBaseUrl: props.apiBaseUrl,
6592
6755
  session: props.session
6593
6756
  }
6594
- ) : /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
6757
+ ) : /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
6595
6758
  "img",
6596
6759
  {
6597
6760
  style: styles,
@@ -6604,7 +6767,7 @@ var ImageNode = (props) => {
6604
6767
  }
6605
6768
  );
6606
6769
  if (props.node.width) {
6607
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: `flex ${FORMAT_CLASSES2[props.node.format] ?? ""}`, children: renderMedia() });
6770
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: `flex ${FORMAT_CLASSES2[props.node.format] ?? ""}`, children: renderMedia() });
6608
6771
  }
6609
6772
  return renderMedia();
6610
6773
  };
@@ -6614,7 +6777,7 @@ var ImageNode_default = ImageNode;
6614
6777
  init_StyleTypes();
6615
6778
  init_Hyperlink();
6616
6779
  var import_dynamic8 = __toESM(require("next/dynamic"));
6617
- var import_jsx_runtime64 = require("react/jsx-runtime");
6780
+ var import_jsx_runtime65 = require("react/jsx-runtime");
6618
6781
  var LinkNodeButton2 = (0, import_dynamic8.default)(() => Promise.resolve().then(() => (init_LinkNodeButton(), LinkNodeButton_exports)), {
6619
6782
  ssr: false
6620
6783
  });
@@ -6667,13 +6830,13 @@ var LinkNode = (props) => {
6667
6830
  const isButton = node.isButton === true;
6668
6831
  const renderChildren2 = () => {
6669
6832
  if (!node.children || node.children.length === 0) return null;
6670
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_jsx_runtime64.Fragment, { children: node.children.map((childNode, index) => {
6833
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_jsx_runtime65.Fragment, { children: node.children.map((childNode, index) => {
6671
6834
  const SelectedNode = NodeTypes2[childNode.type];
6672
6835
  if (!SelectedNode) {
6673
6836
  console.warn("Unknown node type:", childNode.type);
6674
6837
  return null;
6675
6838
  }
6676
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_react48.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6839
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react48.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6677
6840
  SelectedNode,
6678
6841
  {
6679
6842
  node: childNode,
@@ -6686,15 +6849,15 @@ var LinkNode = (props) => {
6686
6849
  };
6687
6850
  const renderFallback = () => {
6688
6851
  if ((!node.children || node.children.length === 0) && linkText) {
6689
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { children: linkText });
6852
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { children: linkText });
6690
6853
  }
6691
6854
  if ((!node.children || node.children.length === 0) && !linkText) {
6692
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("br", {});
6855
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("br", {});
6693
6856
  }
6694
6857
  return null;
6695
6858
  };
6696
6859
  if (isButton) {
6697
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
6860
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
6698
6861
  LinkNodeButton2,
6699
6862
  {
6700
6863
  node,
@@ -6712,7 +6875,7 @@ var LinkNode = (props) => {
6712
6875
  }
6713
6876
  );
6714
6877
  }
6715
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
6878
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
6716
6879
  Hyperlink,
6717
6880
  {
6718
6881
  href: linkUrl || "#",
@@ -6728,10 +6891,10 @@ var LinkNode = (props) => {
6728
6891
  var LinkNode_default = LinkNode;
6729
6892
 
6730
6893
  // src/components/pageRenderingEngine/nodes/SVGIconNode.tsx
6731
- var import_jsx_runtime65 = require("react/jsx-runtime");
6894
+ var import_jsx_runtime66 = require("react/jsx-runtime");
6732
6895
  var SVGIconNode = ({ node }) => {
6733
6896
  if (!node?.svgCode) return null;
6734
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6897
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6735
6898
  "span",
6736
6899
  {
6737
6900
  style: {
@@ -6748,7 +6911,7 @@ var SVGIconNode_default = SVGIconNode;
6748
6911
 
6749
6912
  // src/components/pageRenderingEngine/nodes/EquationNode.tsx
6750
6913
  var import_katex = __toESM(require("katex"));
6751
- var import_jsx_runtime66 = require("react/jsx-runtime");
6914
+ var import_jsx_runtime67 = require("react/jsx-runtime");
6752
6915
  var EquationNode = ({ node }) => {
6753
6916
  const { equation, inline } = node;
6754
6917
  let html = "";
@@ -6763,7 +6926,7 @@ var EquationNode = ({ node }) => {
6763
6926
  });
6764
6927
  }
6765
6928
  if (inline) {
6766
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6929
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6767
6930
  "span",
6768
6931
  {
6769
6932
  className: "katex-inline",
@@ -6771,7 +6934,7 @@ var EquationNode = ({ node }) => {
6771
6934
  }
6772
6935
  );
6773
6936
  }
6774
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6937
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6775
6938
  "div",
6776
6939
  {
6777
6940
  className: "katex-block my-3 text-center",
@@ -6782,7 +6945,7 @@ var EquationNode = ({ node }) => {
6782
6945
  var EquationNode_default = EquationNode;
6783
6946
 
6784
6947
  // src/components/pageRenderingEngine/nodes/DatafieldNode.tsx
6785
- var import_jsx_runtime67 = require("react/jsx-runtime");
6948
+ var import_jsx_runtime68 = require("react/jsx-runtime");
6786
6949
  function getNestedProperty(obj, path) {
6787
6950
  if (!obj || !path) return null;
6788
6951
  if (path.includes(".")) {
@@ -6795,7 +6958,7 @@ function getNestedProperty(obj, path) {
6795
6958
  }
6796
6959
  const value = obj[path];
6797
6960
  if (Array.isArray(value)) {
6798
- return value.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { children: String(item) }, index));
6961
+ return value.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { children: String(item) }, index));
6799
6962
  }
6800
6963
  return value;
6801
6964
  }
@@ -6858,7 +7021,7 @@ var DatafieldNode = (props) => {
6858
7021
  const dataType = props.node.dataType;
6859
7022
  if (isEmptyValue) return null;
6860
7023
  if (dataType === "rawContent") {
6861
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
7024
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
6862
7025
  PageBodyRenderer_default,
6863
7026
  {
6864
7027
  rawBody: String(value ?? `@databound[${fieldName}]`),
@@ -6874,13 +7037,13 @@ var DatafieldNode = (props) => {
6874
7037
  }
6875
7038
  );
6876
7039
  }
6877
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
7040
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
6878
7041
  "span",
6879
7042
  {
6880
7043
  className: `datafield-node ${props.node.format < Formats.length ? Formats[props.node.format] : ""}`,
6881
7044
  style: styles,
6882
7045
  title,
6883
- children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
7046
+ children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
6884
7047
  ViewControl_default,
6885
7048
  {
6886
7049
  controlType: dataType,
@@ -6895,7 +7058,7 @@ var DatafieldNode = (props) => {
6895
7058
  var DatafieldNode_default = DatafieldNode;
6896
7059
 
6897
7060
  // src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
6898
- var import_jsx_runtime68 = require("react/jsx-runtime");
7061
+ var import_jsx_runtime69 = require("react/jsx-runtime");
6899
7062
  var ParagraphNode = (props) => {
6900
7063
  const NodeTypes2 = {
6901
7064
  ["text"]: TextNode_default,
@@ -6915,9 +7078,9 @@ var ParagraphNode = (props) => {
6915
7078
  const isInlineOnlyParent = props.parentTag === "summary";
6916
7079
  const hasChildren = props.node.children && props.node.children.length > 0;
6917
7080
  if (isInlineOnlyParent) {
6918
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_jsx_runtime68.Fragment, { children: hasChildren && props.node.children.map((node, index) => {
7081
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_jsx_runtime69.Fragment, { children: hasChildren && props.node.children.map((node, index) => {
6919
7082
  const SelectedNode = NodeTypes2[node.type];
6920
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_react49.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
7083
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_react49.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6921
7084
  SelectedNode,
6922
7085
  {
6923
7086
  node,
@@ -6930,10 +7093,10 @@ var ParagraphNode = (props) => {
6930
7093
  ) }, index);
6931
7094
  }) });
6932
7095
  }
6933
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: " " + formatClasses, children: [
7096
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: " " + formatClasses, children: [
6934
7097
  hasChildren && props.node.children.map((node, index) => {
6935
7098
  const SelectedNode = NodeTypes2[node.type];
6936
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_react49.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
7099
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_react49.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6937
7100
  SelectedNode,
6938
7101
  {
6939
7102
  node,
@@ -6945,14 +7108,14 @@ var ParagraphNode = (props) => {
6945
7108
  }
6946
7109
  ) }, index);
6947
7110
  }),
6948
- !hasChildren && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "py-1.5 lg:py-2" })
7111
+ !hasChildren && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "py-1.5 lg:py-2" })
6949
7112
  ] });
6950
7113
  };
6951
7114
  var ParagraphNode_default = ParagraphNode;
6952
7115
 
6953
7116
  // src/components/pageRenderingEngine/nodes/HeadingNode.tsx
6954
7117
  var import_react50 = __toESM(require("react"));
6955
- var import_jsx_runtime69 = require("react/jsx-runtime");
7118
+ var import_jsx_runtime70 = require("react/jsx-runtime");
6956
7119
  var HeadingNode = (props) => {
6957
7120
  const NodeTypes2 = {
6958
7121
  ["text"]: TextNode_default,
@@ -6968,12 +7131,12 @@ var HeadingNode = (props) => {
6968
7131
  {
6969
7132
  }
6970
7133
  const formatClasses = FormatClass[props.node.format] || "";
6971
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_jsx_runtime69.Fragment, { children: import_react50.default.createElement(
7134
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_jsx_runtime70.Fragment, { children: import_react50.default.createElement(
6972
7135
  HeadingTag,
6973
7136
  { className: formatClasses },
6974
7137
  props.node.children && props.node.children.map((childNode, index) => {
6975
7138
  const SelectedNode = NodeTypes2[childNode.type];
6976
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_react50.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(SelectedNode, { node: childNode, dataitem: props.dataitem, session: props.session, apiBaseUrl: props.apiBaseUrl, assetBaseUrl: props.assetBaseUrl, routeParameters: props.routeParameters }) }, index);
7139
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react50.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(SelectedNode, { node: childNode, dataitem: props.dataitem, session: props.session, apiBaseUrl: props.apiBaseUrl, assetBaseUrl: props.assetBaseUrl, routeParameters: props.routeParameters }) }, index);
6977
7140
  })
6978
7141
  ) });
6979
7142
  };
@@ -6984,7 +7147,7 @@ var import_react52 = __toESM(require("react"));
6984
7147
 
6985
7148
  // src/components/pageRenderingEngine/nodes/ListItemNode.tsx
6986
7149
  var import_react51 = __toESM(require("react"));
6987
- var import_jsx_runtime70 = require("react/jsx-runtime");
7150
+ var import_jsx_runtime71 = require("react/jsx-runtime");
6988
7151
  var ListItemNode = (props) => {
6989
7152
  const NodeTypes2 = {
6990
7153
  text: TextNode_default,
@@ -7001,37 +7164,37 @@ var ListItemNode = (props) => {
7001
7164
  liStyle.fontSize = match[1].trim();
7002
7165
  }
7003
7166
  }
7004
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("li", { style: liStyle, children: props.node.children && props.node.children.map((node, index) => {
7167
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("li", { style: liStyle, children: props.node.children && props.node.children.map((node, index) => {
7005
7168
  const SelectedNode = NodeTypes2[node.type];
7006
7169
  if (node.type === "linebreak") {
7007
7170
  if (!foundFirstBreak) {
7008
7171
  foundFirstBreak = true;
7009
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", {}, index);
7172
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", {}, index);
7010
7173
  } else {
7011
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "py-1 lg:py-2" }, index);
7174
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "py-1 lg:py-2" }, index);
7012
7175
  }
7013
7176
  } else {
7014
7177
  foundFirstBreak = false;
7015
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react51.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
7178
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_react51.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
7016
7179
  }
7017
7180
  }) });
7018
7181
  };
7019
7182
  var ListItemNode_default = ListItemNode;
7020
7183
 
7021
7184
  // src/components/pageRenderingEngine/nodes/ListNode.tsx
7022
- var import_jsx_runtime71 = require("react/jsx-runtime");
7185
+ var import_jsx_runtime72 = require("react/jsx-runtime");
7023
7186
  var ListNode = (props) => {
7024
7187
  const NodeTypes2 = {
7025
7188
  listitem: ListItemNode_default
7026
7189
  };
7027
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(import_react52.default.Fragment, { children: [
7028
- props.node.listType == "bullet" && /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("ul", { children: props.node.children && props.node.children.map((node, index) => {
7190
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(import_react52.default.Fragment, { children: [
7191
+ props.node.listType == "bullet" && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("ul", { children: props.node.children && props.node.children.map((node, index) => {
7029
7192
  const SelectedNode = NodeTypes2[node.type];
7030
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_react52.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
7193
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_react52.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
7031
7194
  }) }),
7032
- props.node.listType == "number" && /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("ol", { children: props.node.children && props.node.children.map((node, index) => {
7195
+ props.node.listType == "number" && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("ol", { children: props.node.children && props.node.children.map((node, index) => {
7033
7196
  const SelectedNode = NodeTypes2[node.type];
7034
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_react52.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
7197
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_react52.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
7035
7198
  }) })
7036
7199
  ] });
7037
7200
  };
@@ -7039,16 +7202,16 @@ var ListNode_default = ListNode;
7039
7202
 
7040
7203
  // src/components/pageRenderingEngine/nodes/QuoteNode.tsx
7041
7204
  var import_react53 = __toESM(require("react"));
7042
- var import_jsx_runtime72 = require("react/jsx-runtime");
7205
+ var import_jsx_runtime73 = require("react/jsx-runtime");
7043
7206
  var QuoteNode = (props) => {
7044
7207
  const NodeTypes2 = {
7045
7208
  ["text"]: TextNode_default,
7046
7209
  ["linebreak"]: LineBreakNode_default,
7047
7210
  ["link"]: LinkNode_default
7048
7211
  };
7049
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("blockquote", { children: props.node.children && props.node.children.map((node, index) => {
7212
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("blockquote", { children: props.node.children && props.node.children.map((node, index) => {
7050
7213
  const SelectedNode = NodeTypes2[node.type];
7051
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_react53.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(SelectedNode, { node, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
7214
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_react53.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(SelectedNode, { node, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
7052
7215
  }) });
7053
7216
  };
7054
7217
  var QuoteNode_default = QuoteNode;
@@ -7056,11 +7219,11 @@ var QuoteNode_default = QuoteNode;
7056
7219
  // src/components/pageRenderingEngine/nodes/CodeNode.tsx
7057
7220
  var import_react55 = __toESM(require("react"));
7058
7221
  var import_dynamic9 = __toESM(require("next/dynamic"));
7059
- var import_jsx_runtime74 = require("react/jsx-runtime");
7222
+ var import_jsx_runtime75 = require("react/jsx-runtime");
7060
7223
  var CopyButton2 = (0, import_dynamic9.default)(() => Promise.resolve().then(() => (init_CopyButton(), CopyButton_exports)), {
7061
7224
  ssr: false,
7062
7225
  // optional: fallback UI while loading
7063
- loading: () => /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "text-gray-400 text-xs", children: "Copy" })
7226
+ loading: () => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { className: "text-gray-400 text-xs", children: "Copy" })
7064
7227
  });
7065
7228
  var CodeNode = (props) => {
7066
7229
  const NodeTypes2 = {
@@ -7074,14 +7237,14 @@ var CodeNode = (props) => {
7074
7237
  if (node.type === "link") return node.text || node.url || "";
7075
7238
  return "";
7076
7239
  }).join("") ?? "";
7077
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { children: [
7078
- /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "flex items-center relative bg-neutral-strong px-4 py-3 text-xs font-sans justify-between rounded-t-md ", children: [
7079
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { children: "Code Snippet" }),
7080
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(CopyButton2, { text: textContent })
7240
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { children: [
7241
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "flex items-center relative bg-neutral-strong px-4 py-3 text-xs font-sans justify-between rounded-t-md ", children: [
7242
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { children: "Code Snippet" }),
7243
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(CopyButton2, { text: textContent })
7081
7244
  ] }),
7082
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("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) => {
7245
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("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) => {
7083
7246
  const SelectedNode = NodeTypes2[node.type];
7084
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_react55.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
7247
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_react55.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
7085
7248
  SelectedNode,
7086
7249
  {
7087
7250
  node,
@@ -7096,15 +7259,15 @@ var CodeNode = (props) => {
7096
7259
  var CodeNode_default = CodeNode;
7097
7260
 
7098
7261
  // src/components/pageRenderingEngine/nodes/HorizontalRuleNode.tsx
7099
- var import_jsx_runtime75 = require("react/jsx-runtime");
7262
+ var import_jsx_runtime76 = require("react/jsx-runtime");
7100
7263
  var HorizontalRuleNode = () => {
7101
- return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("hr", {});
7264
+ return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("hr", {});
7102
7265
  };
7103
7266
  var HorizontalRuleNode_default = HorizontalRuleNode;
7104
7267
 
7105
7268
  // src/components/pageRenderingEngine/nodes/WidgetNode.tsx
7106
7269
  var import_react56 = __toESM(require("react"));
7107
- var import_jsx_runtime76 = require("react/jsx-runtime");
7270
+ var import_jsx_runtime77 = require("react/jsx-runtime");
7108
7271
  var WidgetNode = (props) => {
7109
7272
  const getWidgetParameters = () => {
7110
7273
  const widgetInputParameters = {
@@ -7168,7 +7331,7 @@ var WidgetNode = (props) => {
7168
7331
  };
7169
7332
  const widgetCode = props.node?.widgetCode;
7170
7333
  if (!widgetCode) {
7171
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_jsx_runtime76.Fragment, { children: "Invalid widget" });
7334
+ return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_jsx_runtime77.Fragment, { children: "Invalid widget" });
7172
7335
  }
7173
7336
  const widgetParams = getWidgetParameters();
7174
7337
  const WidgetRenderer = props.widgetRenderer;
@@ -7177,7 +7340,7 @@ var WidgetNode = (props) => {
7177
7340
  }
7178
7341
  return (
7179
7342
  // eslint-disable-next-line react-hooks/static-components
7180
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_react56.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
7343
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_react56.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
7181
7344
  WidgetRenderer,
7182
7345
  {
7183
7346
  params: widgetParams,
@@ -7199,7 +7362,7 @@ var import_react62 = __toESM(require("react"));
7199
7362
 
7200
7363
  // src/components/pageRenderingEngine/nodes/EmbedNode.tsx
7201
7364
  var import_dynamic10 = __toESM(require("next/dynamic"));
7202
- var import_jsx_runtime79 = require("react/jsx-runtime");
7365
+ var import_jsx_runtime80 = require("react/jsx-runtime");
7203
7366
  var IframeClient2 = (0, import_dynamic10.default)(() => Promise.resolve().then(() => (init_IframeClient(), IframeClient_exports)), {
7204
7367
  ssr: false
7205
7368
  });
@@ -7212,7 +7375,7 @@ var EmbedNode = (props) => {
7212
7375
  } else {
7213
7376
  src = props.node.embedSrc;
7214
7377
  }
7215
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { className: "aspect-video", children: src && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(IframeClient2, { src }) });
7378
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "aspect-video", children: src && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(IframeClient2, { src }) });
7216
7379
  };
7217
7380
  var EmbedNode_default = EmbedNode;
7218
7381
 
@@ -7412,10 +7575,10 @@ var PathUtility = class {
7412
7575
  var PathUtility_default = new PathUtility();
7413
7576
 
7414
7577
  // src/components/NoDataFound.tsx
7415
- var import_jsx_runtime80 = require("react/jsx-runtime");
7578
+ var import_jsx_runtime81 = require("react/jsx-runtime");
7416
7579
  var NoDataFound = () => {
7417
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center bg-neutral-weak", children: [
7418
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "mb-5", children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "mx-auto w-20 h-20 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
7580
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center bg-neutral-weak", children: [
7581
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "mb-5", children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "mx-auto w-20 h-20 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7419
7582
  "svg",
7420
7583
  {
7421
7584
  className: "w-10 h-10",
@@ -7423,7 +7586,7 @@ var NoDataFound = () => {
7423
7586
  stroke: "currentColor",
7424
7587
  viewBox: "0 0 24 24",
7425
7588
  xmlns: "http://www.w3.org/2000/svg",
7426
- children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
7589
+ children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7427
7590
  "path",
7428
7591
  {
7429
7592
  strokeLinecap: "round",
@@ -7434,8 +7597,8 @@ var NoDataFound = () => {
7434
7597
  )
7435
7598
  }
7436
7599
  ) }) }),
7437
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("h3", { className: "text-lg font-medium mb-2", children: "No data available" }),
7438
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("p", { className: " max-w-sm mb-0", children: "No records found. Data may be empty or not available at the moment." })
7600
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("h3", { className: "text-lg font-medium mb-2", children: "No data available" }),
7601
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("p", { className: " max-w-sm mb-0", children: "No records found. Data may be empty or not available at the moment." })
7439
7602
  ] });
7440
7603
  };
7441
7604
  var NoDataFound_default = NoDataFound;
@@ -7443,7 +7606,7 @@ var NoDataFound_default = NoDataFound;
7443
7606
  // src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
7444
7607
  init_AssetUtility();
7445
7608
  var import_dynamic11 = __toESM(require("next/dynamic"));
7446
- var import_jsx_runtime81 = require("react/jsx-runtime");
7609
+ var import_jsx_runtime82 = require("react/jsx-runtime");
7447
7610
  var HlsPlayer4 = (0, import_dynamic11.default)(() => Promise.resolve().then(() => (init_HlsPlayer(), HlsPlayer_exports)), { ssr: false });
7448
7611
  var deviceToMediaQuery = (device) => {
7449
7612
  switch (device) {
@@ -7599,8 +7762,8 @@ var ImageGalleryNode = (props) => {
7599
7762
  right: "justify-end"
7600
7763
  };
7601
7764
  const formatClasses = FormatClass[props.node.format || ""] || "";
7602
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(import_jsx_runtime81.Fragment, { children: [
7603
- hlsSources.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_jsx_runtime81.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7765
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(import_jsx_runtime82.Fragment, { children: [
7766
+ hlsSources.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_jsx_runtime82.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
7604
7767
  HlsPlayer4,
7605
7768
  {
7606
7769
  sources: hlsSources,
@@ -7615,7 +7778,7 @@ var ImageGalleryNode = (props) => {
7615
7778
  styles: hlsStyles
7616
7779
  }
7617
7780
  ) }),
7618
- (staticFallback || staticSources.length > 0) && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_jsx_runtime81.Fragment, { children: staticFallback ? /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("picture", { children: [
7781
+ (staticFallback || staticSources.length > 0) && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_jsx_runtime82.Fragment, { children: staticFallback ? /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("picture", { children: [
7619
7782
  DEVICE_ORDER.map((deviceKey) => {
7620
7783
  const match = staticSources.find(
7621
7784
  (img) => img.device === deviceKey
@@ -7631,7 +7794,7 @@ var ImageGalleryNode = (props) => {
7631
7794
  if (!srcUrl) {
7632
7795
  return null;
7633
7796
  }
7634
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7797
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
7635
7798
  "source",
7636
7799
  {
7637
7800
  media: deviceToMediaQuery(match.device),
@@ -7656,7 +7819,7 @@ var ImageGalleryNode = (props) => {
7656
7819
  if (img.borderRadius) {
7657
7820
  styles.borderRadius = img.borderRadius;
7658
7821
  }
7659
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7822
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
7660
7823
  "img",
7661
7824
  {
7662
7825
  loading: "lazy",
@@ -7671,7 +7834,7 @@ var ImageGalleryNode = (props) => {
7671
7834
  })()
7672
7835
  ] }) : (
7673
7836
  /* Case 2: Only device-specific images exist */
7674
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_jsx_runtime81.Fragment, { children: staticSources.map((img, index) => {
7837
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_jsx_runtime82.Fragment, { children: staticSources.map((img, index) => {
7675
7838
  const resolved = resolveImage(img);
7676
7839
  const imageUrl = resolved?.imageUrl;
7677
7840
  if (!imageUrl) {
@@ -7698,7 +7861,7 @@ var ImageGalleryNode = (props) => {
7698
7861
  default:
7699
7862
  display = "block";
7700
7863
  }
7701
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7864
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
7702
7865
  "img",
7703
7866
  {
7704
7867
  loading: "lazy",
@@ -7839,28 +8002,28 @@ var shouldRenderContainer = (node, dataItem, session) => {
7839
8002
 
7840
8003
  // src/components/pageRenderingEngine/nodes/DocumentNode.tsx
7841
8004
  init_AssetUtility();
7842
- var import_jsx_runtime82 = require("react/jsx-runtime");
8005
+ var import_jsx_runtime83 = require("react/jsx-runtime");
7843
8006
  var getNestedValue5 = (obj, path) => {
7844
8007
  if (!obj || !path) return void 0;
7845
8008
  return path.split(".").reduce((current, key) => {
7846
8009
  return current && current[key] !== void 0 ? current[key] : void 0;
7847
8010
  }, obj);
7848
8011
  };
7849
- var PdfIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
8012
+ var PdfIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
7850
8013
  "svg",
7851
8014
  {
7852
8015
  xmlns: "http://www.w3.org/2000/svg",
7853
8016
  viewBox: "0 0 48 48",
7854
8017
  className: "w-10 h-10",
7855
8018
  children: [
7856
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
8019
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
7857
8020
  "path",
7858
8021
  {
7859
8022
  fill: "#e53935",
7860
8023
  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"
7861
8024
  }
7862
8025
  ),
7863
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
8026
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
7864
8027
  "path",
7865
8028
  {
7866
8029
  fill: "#fff",
@@ -7870,55 +8033,55 @@ var PdfIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
7870
8033
  ]
7871
8034
  }
7872
8035
  );
7873
- var ExcelIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
8036
+ var ExcelIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
7874
8037
  "svg",
7875
8038
  {
7876
8039
  xmlns: "http://www.w3.org/2000/svg",
7877
8040
  viewBox: "0 0 48 48",
7878
8041
  className: "w-10 h-10",
7879
8042
  children: [
7880
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
8043
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
7881
8044
  "path",
7882
8045
  {
7883
8046
  fill: "#169154",
7884
8047
  d: "M29,6H15.744C14.781,6,14,6.781,14,7.744v7.259h15V6z"
7885
8048
  }
7886
8049
  ),
7887
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
8050
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
7888
8051
  "path",
7889
8052
  {
7890
8053
  fill: "#18482a",
7891
8054
  d: "M14,33.054v7.202C14,41.219,14.781,42,15.743,42H29v-8.946H14z"
7892
8055
  }
7893
8056
  ),
7894
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("path", { fill: "#0c8045", d: "M14 15.003H29V24.005000000000003H14z" }),
7895
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("path", { fill: "#17472a", d: "M14 24.005H29V33.055H14z" }),
7896
- /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("g", { children: [
7897
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
8057
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("path", { fill: "#0c8045", d: "M14 15.003H29V24.005000000000003H14z" }),
8058
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("path", { fill: "#17472a", d: "M14 24.005H29V33.055H14z" }),
8059
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("g", { children: [
8060
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
7898
8061
  "path",
7899
8062
  {
7900
8063
  fill: "#29c27f",
7901
8064
  d: "M42.256,6H29v9.003h15V7.744C44,6.781,43.219,6,42.256,6z"
7902
8065
  }
7903
8066
  ),
7904
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
8067
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
7905
8068
  "path",
7906
8069
  {
7907
8070
  fill: "#27663f",
7908
8071
  d: "M29,33.054V42h13.257C43.219,42,44,41.219,44,40.257v-7.202H29z"
7909
8072
  }
7910
8073
  ),
7911
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("path", { fill: "#19ac65", d: "M29 15.003H44V24.005000000000003H29z" }),
7912
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("path", { fill: "#129652", d: "M29 24.005H44V33.055H29z" })
8074
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("path", { fill: "#19ac65", d: "M29 15.003H44V24.005000000000003H29z" }),
8075
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("path", { fill: "#129652", d: "M29 24.005H44V33.055H29z" })
7913
8076
  ] }),
7914
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
8077
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
7915
8078
  "path",
7916
8079
  {
7917
8080
  fill: "#0c7238",
7918
8081
  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"
7919
8082
  }
7920
8083
  ),
7921
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
8084
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
7922
8085
  "path",
7923
8086
  {
7924
8087
  fill: "#fff",
@@ -7928,7 +8091,7 @@ var ExcelIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
7928
8091
  ]
7929
8092
  }
7930
8093
  );
7931
- var WordIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
8094
+ var WordIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
7932
8095
  "svg",
7933
8096
  {
7934
8097
  xmlns: "http://www.w3.org/2000/svg",
@@ -7936,14 +8099,14 @@ var WordIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
7936
8099
  className: "w-10 h-10",
7937
8100
  baseProfile: "basic",
7938
8101
  children: [
7939
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
8102
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
7940
8103
  "path",
7941
8104
  {
7942
8105
  fill: "#283593",
7943
8106
  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"
7944
8107
  }
7945
8108
  ),
7946
- /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
8109
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
7947
8110
  "linearGradient",
7948
8111
  {
7949
8112
  id: "qh2LT5tehRDFkLLfb-odWa",
@@ -7954,19 +8117,19 @@ var WordIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
7954
8117
  gradientTransform: "translate(0 -339.89)",
7955
8118
  gradientUnits: "userSpaceOnUse",
7956
8119
  children: [
7957
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("stop", { offset: "0", "stop-color": "#66c0ff" }),
7958
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("stop", { offset: ".26", "stop-color": "#0094f0" })
8120
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("stop", { offset: "0", "stop-color": "#66c0ff" }),
8121
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("stop", { offset: ".26", "stop-color": "#0094f0" })
7959
8122
  ]
7960
8123
  }
7961
8124
  ),
7962
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
8125
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
7963
8126
  "path",
7964
8127
  {
7965
8128
  fill: "url(#qh2LT5tehRDFkLLfb-odWa)",
7966
8129
  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"
7967
8130
  }
7968
8131
  ),
7969
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
8132
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
7970
8133
  "path",
7971
8134
  {
7972
8135
  fill: "#1e88e5",
@@ -7974,21 +8137,21 @@ var WordIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
7974
8137
  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"
7975
8138
  }
7976
8139
  ),
7977
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
8140
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
7978
8141
  "path",
7979
8142
  {
7980
8143
  fill: "#00e5ff",
7981
8144
  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"
7982
8145
  }
7983
8146
  ),
7984
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
8147
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
7985
8148
  "path",
7986
8149
  {
7987
8150
  fill: "#1565c0",
7988
8151
  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"
7989
8152
  }
7990
8153
  ),
7991
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
8154
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
7992
8155
  "path",
7993
8156
  {
7994
8157
  fill: "#fff",
@@ -7998,42 +8161,42 @@ var WordIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
7998
8161
  ]
7999
8162
  }
8000
8163
  );
8001
- var StandardIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
8164
+ var StandardIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
8002
8165
  "svg",
8003
8166
  {
8004
8167
  xmlns: "http://www.w3.org/2000/svg",
8005
8168
  viewBox: "0 0 48 48",
8006
8169
  className: "w-10 h-10",
8007
8170
  children: [
8008
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
8009
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" })
8171
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
8172
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" })
8010
8173
  ]
8011
8174
  }
8012
8175
  );
8013
- var PowerPointIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
8176
+ var PowerPointIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
8014
8177
  "svg",
8015
8178
  {
8016
8179
  xmlns: "http://www.w3.org/2000/svg",
8017
8180
  viewBox: "0 0 48 48",
8018
8181
  className: "w-10 h-10",
8019
8182
  children: [
8020
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
8183
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
8021
8184
  "path",
8022
8185
  {
8023
8186
  fill: "#dc4c2c",
8024
8187
  d: "M8,24c0,9.941,8.059,18,18,18s18-8.059,18-18H26H8z"
8025
8188
  }
8026
8189
  ),
8027
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("path", { fill: "#f7a278", d: "M26,6v18h18C44,14.059,35.941,6,26,6z" }),
8028
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("path", { fill: "#c06346", d: "M26,6C16.059,6,8,14.059,8,24h18V6z" }),
8029
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
8190
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("path", { fill: "#f7a278", d: "M26,6v18h18C44,14.059,35.941,6,26,6z" }),
8191
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("path", { fill: "#c06346", d: "M26,6C16.059,6,8,14.059,8,24h18V6z" }),
8192
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
8030
8193
  "path",
8031
8194
  {
8032
8195
  fill: "#9b341f",
8033
8196
  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"
8034
8197
  }
8035
8198
  ),
8036
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
8199
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
8037
8200
  "path",
8038
8201
  {
8039
8202
  fill: "#fff",
@@ -8043,16 +8206,16 @@ var PowerPointIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
8043
8206
  ]
8044
8207
  }
8045
8208
  );
8046
- var TextIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
8209
+ var TextIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
8047
8210
  "svg",
8048
8211
  {
8049
8212
  xmlns: "http://www.w3.org/2000/svg",
8050
8213
  viewBox: "0 0 48 48",
8051
8214
  className: "w-10 h-10",
8052
8215
  children: [
8053
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
8054
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" }),
8055
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
8216
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
8217
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" }),
8218
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
8056
8219
  "path",
8057
8220
  {
8058
8221
  fill: "#1976D2",
@@ -8062,7 +8225,7 @@ var TextIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
8062
8225
  ]
8063
8226
  }
8064
8227
  );
8065
- var ArchiveIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
8228
+ var ArchiveIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
8066
8229
  "svg",
8067
8230
  {
8068
8231
  xmlns: "http://www.w3.org/2000/svg",
@@ -8072,14 +8235,14 @@ var ArchiveIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
8072
8235
  version: "1.0",
8073
8236
  className: "w-10 h-10",
8074
8237
  children: [
8075
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("clipPath", { id: "273d29c8a6", children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
8238
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("clipPath", { id: "273d29c8a6", children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
8076
8239
  "path",
8077
8240
  {
8078
8241
  d: "M 8.90625 0 L 65.90625 0 L 65.90625 75 L 8.90625 75 Z M 8.90625 0 ",
8079
8242
  "clip-rule": "nonzero"
8080
8243
  }
8081
8244
  ) }) }),
8082
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("g", { "clip-path": "url(#273d29c8a6)", children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
8245
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("g", { "clip-path": "url(#273d29c8a6)", children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
8083
8246
  "path",
8084
8247
  {
8085
8248
  fill: "#ff9100",
@@ -8088,7 +8251,7 @@ var ArchiveIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
8088
8251
  "fill-rule": "nonzero"
8089
8252
  }
8090
8253
  ) }),
8091
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
8254
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
8092
8255
  "path",
8093
8256
  {
8094
8257
  fill: "#fbe9e7",
@@ -8097,7 +8260,7 @@ var ArchiveIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
8097
8260
  "fill-rule": "nonzero"
8098
8261
  }
8099
8262
  ),
8100
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
8263
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
8101
8264
  "path",
8102
8265
  {
8103
8266
  fill: "#ffe0b2",
@@ -8106,7 +8269,7 @@ var ArchiveIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
8106
8269
  "fill-rule": "nonzero"
8107
8270
  }
8108
8271
  ),
8109
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
8272
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
8110
8273
  "path",
8111
8274
  {
8112
8275
  fill: "#ffe0b2",
@@ -8115,7 +8278,7 @@ var ArchiveIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
8115
8278
  "fill-rule": "nonzero"
8116
8279
  }
8117
8280
  ),
8118
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
8281
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
8119
8282
  "path",
8120
8283
  {
8121
8284
  fill: "#ffe0b2",
@@ -8190,8 +8353,8 @@ var DocumentNode = (props) => {
8190
8353
  }
8191
8354
  }
8192
8355
  if (documents.length === 0) {
8193
- return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_jsx_runtime82.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: "py-4 px-2 bg-neutral-weak border rounded text-center flex flex-col gap-2", children: [
8194
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "mx-auto w-10 h-10 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
8356
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_jsx_runtime83.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: "py-4 px-2 bg-neutral-weak border rounded text-center flex flex-col gap-2", children: [
8357
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: "mx-auto w-10 h-10 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
8195
8358
  "svg",
8196
8359
  {
8197
8360
  className: "w-5 h-5",
@@ -8199,7 +8362,7 @@ var DocumentNode = (props) => {
8199
8362
  stroke: "currentColor",
8200
8363
  viewBox: "0 0 24 24",
8201
8364
  xmlns: "http://www.w3.org/2000/svg",
8202
- children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
8365
+ children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
8203
8366
  "path",
8204
8367
  {
8205
8368
  strokeLinecap: "round",
@@ -8210,11 +8373,11 @@ var DocumentNode = (props) => {
8210
8373
  )
8211
8374
  }
8212
8375
  ) }),
8213
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "text-sm font-medium", children: "No documents found" }),
8214
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "text-xs", children: "No records found. Data may be empty or not available at the moment." })
8376
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: "text-sm font-medium", children: "No documents found" }),
8377
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: "text-xs", children: "No records found. Data may be empty or not available at the moment." })
8215
8378
  ] }) });
8216
8379
  }
8217
- return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "", children: documents.map((doc, index) => {
8380
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: "", children: documents.map((doc, index) => {
8218
8381
  const documentUrl = AssetUtility_default.resolveUrl(
8219
8382
  props.assetBaseUrl,
8220
8383
  doc.assetUrl
@@ -8232,16 +8395,16 @@ var DocumentNode = (props) => {
8232
8395
  }
8233
8396
  }
8234
8397
  const { Icon: Icon2, extLabel } = getFileDetails2(documentUrl);
8235
- return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
8398
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
8236
8399
  "div",
8237
8400
  {
8238
8401
  className: `flex items-center justify-between py-4 bg-default gap-4 ${index !== 0 ? "border-t" : ""}`,
8239
8402
  children: [
8240
- /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: "flex items-center space-x-4", children: [
8241
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "flex items-center justify-center p-2 rounded bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Icon2, {}) }),
8242
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "flex items-baseline space-x-2", children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("h4", { className: "text-base font-semibold", children: documentTitle }) })
8403
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: "flex items-center space-x-4", children: [
8404
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: "flex items-center justify-center p-2 rounded bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Icon2, {}) }),
8405
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: "flex items-baseline space-x-2", children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("h4", { className: "text-base font-semibold", children: documentTitle }) })
8243
8406
  ] }),
8244
- /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
8407
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
8245
8408
  "a",
8246
8409
  {
8247
8410
  href: documentUrl,
@@ -8249,7 +8412,7 @@ var DocumentNode = (props) => {
8249
8412
  rel: "noopener noreferrer",
8250
8413
  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",
8251
8414
  children: [
8252
- /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
8415
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
8253
8416
  "svg",
8254
8417
  {
8255
8418
  className: "w-4 h-4 mr-2",
@@ -8257,7 +8420,7 @@ var DocumentNode = (props) => {
8257
8420
  stroke: "currentColor",
8258
8421
  viewBox: "0 0 24 24",
8259
8422
  children: [
8260
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
8423
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
8261
8424
  "path",
8262
8425
  {
8263
8426
  strokeLinecap: "round",
@@ -8266,7 +8429,7 @@ var DocumentNode = (props) => {
8266
8429
  d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"
8267
8430
  }
8268
8431
  ),
8269
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
8432
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
8270
8433
  "path",
8271
8434
  {
8272
8435
  strokeLinecap: "round",
@@ -8292,13 +8455,13 @@ var DocumentNode_default = DocumentNode;
8292
8455
 
8293
8456
  // src/components/pageRenderingEngine/nodes/GoogleMapNode.tsx
8294
8457
  var import_dynamic12 = __toESM(require("next/dynamic"));
8295
- var import_jsx_runtime83 = require("react/jsx-runtime");
8458
+ var import_jsx_runtime84 = require("react/jsx-runtime");
8296
8459
  var IframeClient3 = (0, import_dynamic12.default)(() => Promise.resolve().then(() => (init_IframeClient(), IframeClient_exports)), {
8297
8460
  ssr: false
8298
8461
  });
8299
8462
  var GoogleMapNode = (props) => {
8300
8463
  let src = props.node.embedUrl;
8301
- return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: "google-map-container", children: src && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
8464
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: "google-map-container", children: src && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
8302
8465
  IframeClient3,
8303
8466
  {
8304
8467
  src,
@@ -8310,7 +8473,7 @@ var GoogleMapNode = (props) => {
8310
8473
  var GoogleMapNode_default = GoogleMapNode;
8311
8474
 
8312
8475
  // src/components/pageRenderingEngine/nodes/DivContainer.tsx
8313
- var import_jsx_runtime87 = require("react/jsx-runtime");
8476
+ var import_jsx_runtime88 = require("react/jsx-runtime");
8314
8477
  var Pagination2 = (0, import_dynamic13.default)(() => Promise.resolve().then(() => (init_Pagination(), Pagination_exports)), { ssr: true });
8315
8478
  var DataBindingControls2 = (0, import_dynamic13.default)(() => Promise.resolve().then(() => (init_DataBindingControls(), DataBindingControls_exports)), {
8316
8479
  ssr: true
@@ -8569,7 +8732,7 @@ var DivContainer = async (props) => {
8569
8732
  response = await serviceClient.get(endpoint);
8570
8733
  result = response?.result;
8571
8734
  if (dataBindingProperties.showNoResultsMessage && (result === void 0 || result.length == 0)) {
8572
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(NoDataFound_default, {});
8735
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(NoDataFound_default, {});
8573
8736
  }
8574
8737
  if (dataBindingProperties.childCollectionName && props.dataitem) {
8575
8738
  childCollectionData = getNestedValue6(
@@ -8589,7 +8752,7 @@ var DivContainer = async (props) => {
8589
8752
  }
8590
8753
  const SelectedNode = NodeTypes2[node.type];
8591
8754
  if (!SelectedNode) return null;
8592
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_react62.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
8755
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react62.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
8593
8756
  SelectedNode,
8594
8757
  {
8595
8758
  node,
@@ -8726,7 +8889,7 @@ var DivContainer = async (props) => {
8726
8889
  dataBindingProperties?.showFacets || dataBindingProperties?.showSortOptions || dataBindingProperties?.showSearchBar
8727
8890
  );
8728
8891
  const WrapperComponent = Wrapper;
8729
- const renderedContainer = /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
8892
+ const renderedContainer = /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
8730
8893
  WrapperComponent,
8731
8894
  {
8732
8895
  id: guid,
@@ -8740,11 +8903,11 @@ var DivContainer = async (props) => {
8740
8903
  item,
8741
8904
  idx,
8742
8905
  props.href ? void 0 : item?.links?.view
8743
- )?.map((child, i) => /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_react62.default.Fragment, { children: child }, i)) : renderChildren2(props.node.children, props, item, idx)
8906
+ )?.map((child, i) => /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react62.default.Fragment, { children: child }, i)) : renderChildren2(props.node.children, props, item, idx)
8744
8907
  )
8745
8908
  }
8746
8909
  );
8747
- const paginationControl = dataBindingProperties?.enablePagination ? /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
8910
+ const paginationControl = dataBindingProperties?.enablePagination ? /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
8748
8911
  Pagination2,
8749
8912
  {
8750
8913
  path: props.path,
@@ -8752,15 +8915,15 @@ var DivContainer = async (props) => {
8752
8915
  dataset: response
8753
8916
  }
8754
8917
  ) : null;
8755
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(import_react62.default.Fragment, { children: [
8756
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
8918
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_react62.default.Fragment, { children: [
8919
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
8757
8920
  "style",
8758
8921
  {
8759
8922
  dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS }
8760
8923
  }
8761
8924
  ),
8762
- showDataBindingControls ? /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(import_react62.default.Fragment, { children: [
8763
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
8925
+ showDataBindingControls ? /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_react62.default.Fragment, { children: [
8926
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
8764
8927
  DataBindingControls2,
8765
8928
  {
8766
8929
  mode: "toolbar",
@@ -8772,18 +8935,18 @@ var DivContainer = async (props) => {
8772
8935
  showSearchBar: dataBindingProperties?.showSearchBar
8773
8936
  }
8774
8937
  ),
8775
- /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(
8938
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(
8776
8939
  "div",
8777
8940
  {
8778
8941
  className: dataBindingProperties?.showFacets ? "grid items-start gap-6 lg:grid-cols-[minmax(0,1fr)_18rem]" : void 0,
8779
8942
  children: [
8780
- /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "min-w-0", children: [
8943
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: "min-w-0", children: [
8781
8944
  renderedContainer,
8782
8945
  paginationControl
8783
8946
  ] }),
8784
- dataBindingProperties?.showFacets && /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("aside", { className: "border bg-default p-3 lg:sticky lg:top-[90px] lg:self-start", children: [
8785
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("h2", { className: "mb-2 text-lg font-semibold", children: "Filters" }),
8786
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
8947
+ dataBindingProperties?.showFacets && /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("aside", { className: "border bg-default p-3 lg:sticky lg:top-[90px] lg:self-start", children: [
8948
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("h2", { className: "mb-2 text-lg font-semibold", children: "Filters" }),
8949
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
8787
8950
  DataBindingControls2,
8788
8951
  {
8789
8952
  mode: "facets",
@@ -8797,16 +8960,16 @@ var DivContainer = async (props) => {
8797
8960
  ]
8798
8961
  }
8799
8962
  )
8800
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(import_react62.default.Fragment, { children: [
8963
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_react62.default.Fragment, { children: [
8801
8964
  renderedContainer,
8802
- paginationControl && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { children: paginationControl })
8965
+ paginationControl && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { children: paginationControl })
8803
8966
  ] })
8804
8967
  ] });
8805
8968
  };
8806
8969
  var DivContainer_default = DivContainer;
8807
8970
 
8808
8971
  // src/components/pageRenderingEngine/PageBodyRenderer.tsx
8809
- var import_jsx_runtime88 = require("react/jsx-runtime");
8972
+ var import_jsx_runtime89 = require("react/jsx-runtime");
8810
8973
  var NodeTypes = {
8811
8974
  ["paragraph"]: ParagraphNode_default,
8812
8975
  ["heading"]: HeadingNode_default,
@@ -8844,14 +9007,14 @@ var PageBodyRenderer = (props) => {
8844
9007
  }
8845
9008
  return true;
8846
9009
  };
8847
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react63.default.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
9010
+ return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_react63.default.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
8848
9011
  {
8849
9012
  }
8850
9013
  const SelectedNode = NodeTypes[node.type];
8851
9014
  if (!shouldRenderNode(node)) {
8852
9015
  return null;
8853
9016
  }
8854
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react63.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react63.default.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react63.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
9017
+ return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_react63.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_react63.default.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_react63.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
8855
9018
  SelectedNode,
8856
9019
  {
8857
9020
  node,
@@ -8867,7 +9030,7 @@ var PageBodyRenderer = (props) => {
8867
9030
  device: props.device,
8868
9031
  widgetRenderer: props.widgetRenderer
8869
9032
  }
8870
- ) }) : /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react63.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
9033
+ ) }) : /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_react63.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
8871
9034
  SelectedNode,
8872
9035
  {
8873
9036
  node,
@@ -8938,7 +9101,7 @@ function EnterAnimationHydrator() {
8938
9101
  // src/components/Toast.tsx
8939
9102
  var import_react65 = require("react");
8940
9103
  init_ToastService();
8941
- var import_jsx_runtime89 = require("react/jsx-runtime");
9104
+ var import_jsx_runtime90 = require("react/jsx-runtime");
8942
9105
  var Toast = () => {
8943
9106
  const [showToast, setShowToast] = (0, import_react65.useState)(false);
8944
9107
  const [message, setMessage] = (0, import_react65.useState)("");
@@ -8972,8 +9135,8 @@ var Toast = () => {
8972
9135
  });
8973
9136
  };
8974
9137
  }, [closeToast, showMessage]);
8975
- return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_jsx_runtime89.Fragment, { children: showToast && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("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__ */ (0, import_jsx_runtime89.jsxs)("div", { className: `w-full items-center flex justify-between p-3 rounded-md relative shadow border bg-${messageType}-soft`, children: [
8976
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
9138
+ return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_jsx_runtime90.Fragment, { children: showToast && /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("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__ */ (0, import_jsx_runtime90.jsxs)("div", { className: `w-full items-center flex justify-between p-3 rounded-md relative shadow border bg-${messageType}-soft`, children: [
9139
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
8977
9140
  "span",
8978
9141
  {
8979
9142
  className: "font-medium text-inherit text-sm",
@@ -8981,7 +9144,7 @@ var Toast = () => {
8981
9144
  children: message
8982
9145
  }
8983
9146
  ),
8984
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("button", { className: "absolute right-2 top-2 ml-2 focus:outline-none", onClick: closeToast, children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
9147
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("button", { className: "absolute right-2 top-2 ml-2 focus:outline-none", onClick: closeToast, children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
8985
9148
  "svg",
8986
9149
  {
8987
9150
  xmlns: "http://www.w3.org/2000/svg",
@@ -8989,7 +9152,7 @@ var Toast = () => {
8989
9152
  fill: "none",
8990
9153
  viewBox: "0 0 24 24",
8991
9154
  stroke: "currentColor",
8992
- children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M6 18L18 6M6 6l12 12" })
9155
+ children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M6 18L18 6M6 6l12 12" })
8993
9156
  }
8994
9157
  ) })
8995
9158
  ] }) }) });
@@ -9020,7 +9183,7 @@ init_Switcher();
9020
9183
  // src/components/NavigationTabsV2.tsx
9021
9184
  var import_link3 = __toESM(require("next/link"));
9022
9185
  var import_navigation2 = require("next/navigation");
9023
- var import_jsx_runtime90 = require("react/jsx-runtime");
9186
+ var import_jsx_runtime91 = require("react/jsx-runtime");
9024
9187
  function resolveRoutePlaceholders(route, params) {
9025
9188
  return route.replace(/\{([^}]+)\}/g, (match, key) => {
9026
9189
  const value = params[key];
@@ -9045,8 +9208,8 @@ var NavigationTabsV2 = ({ tabs, params = {} }) => {
9045
9208
  isActive: tab.isActive
9046
9209
  })) || [];
9047
9210
  if (mappedTabs.length === 0) return null;
9048
- return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: "flex border-b bg-white rounded-t mb-3", children: mappedTabs.map(({ tabTitle, landingPageUrl, isActive }) => {
9049
- return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_link3.default, { href: landingPageUrl, className: "-mb-px", children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
9211
+ return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("div", { className: "flex border-b bg-white rounded-t mb-3", children: mappedTabs.map(({ tabTitle, landingPageUrl, isActive }) => {
9212
+ return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_link3.default, { href: landingPageUrl, className: "-mb-px", children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
9050
9213
  "div",
9051
9214
  {
9052
9215
  className: `text-sm font-medium border-b-2 px-6 py-2 transition
@@ -9065,9 +9228,9 @@ var import_navigation3 = require("next/navigation");
9065
9228
 
9066
9229
  // src/components/dataForm/NoContentView.tsx
9067
9230
  var import_react66 = __toESM(require("react"));
9068
- var import_jsx_runtime91 = require("react/jsx-runtime");
9231
+ var import_jsx_runtime92 = require("react/jsx-runtime");
9069
9232
  var NoContentView = (props) => {
9070
- return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_react66.default.Fragment, { children: props.isDataFound === false && props.children });
9233
+ return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_react66.default.Fragment, { children: props.isDataFound === false && props.children });
9071
9234
  };
9072
9235
  var NoContentView_default = NoContentView;
9073
9236
 
@@ -9076,38 +9239,38 @@ init_InputControlType();
9076
9239
 
9077
9240
  // src/components/dataForm/ContentView.tsx
9078
9241
  var import_react67 = __toESM(require("react"));
9079
- var import_jsx_runtime92 = require("react/jsx-runtime");
9242
+ var import_jsx_runtime93 = require("react/jsx-runtime");
9080
9243
  var ContentView = (props) => {
9081
- return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(import_react67.default.Fragment, { children: [
9082
- props.isDataFound == null && /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { className: "", children: /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: "bg-gray-200 rounded-md p-4 animate-pulse", children: [
9083
- /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: "flex items-center mb-4", children: [
9084
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
9085
- /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: "ml-2", children: [
9086
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
9087
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
9244
+ return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(import_react67.default.Fragment, { children: [
9245
+ props.isDataFound == null && /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "", children: /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "bg-gray-200 rounded-md p-4 animate-pulse", children: [
9246
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "flex items-center mb-4", children: [
9247
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
9248
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "ml-2", children: [
9249
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
9250
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
9088
9251
  ] })
9089
9252
  ] }),
9090
- /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
9091
- /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: "animate-pulse", children: [
9092
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
9093
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
9094
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
9095
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
9096
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
9253
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
9254
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "animate-pulse", children: [
9255
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
9256
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
9257
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
9258
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
9259
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
9097
9260
  ] }),
9098
- /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: "animate-pulse", children: [
9099
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
9100
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
9101
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
9102
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
9103
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
9261
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "animate-pulse", children: [
9262
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
9263
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
9264
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
9265
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
9266
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
9104
9267
  ] }),
9105
- /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: "animate-pulse", children: [
9106
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
9107
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
9108
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
9109
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
9110
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
9268
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "animate-pulse", children: [
9269
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
9270
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
9271
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
9272
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
9273
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
9111
9274
  ] })
9112
9275
  ] })
9113
9276
  ] }) }),
@@ -9167,7 +9330,7 @@ function FormReducer(state, action) {
9167
9330
  var FormReducer_default = FormReducer;
9168
9331
 
9169
9332
  // src/components/dataForm/DataList.tsx
9170
- var import_jsx_runtime93 = require("react/jsx-runtime");
9333
+ var import_jsx_runtime94 = require("react/jsx-runtime");
9171
9334
  var DataList = (props) => {
9172
9335
  const router = (0, import_navigation3.useRouter)();
9173
9336
  let builder = new OdataBuilder(props.path);
@@ -9208,7 +9371,7 @@ var DataList = (props) => {
9208
9371
  if (path.includes(".")) {
9209
9372
  return path.split(".").reduce((prev, curr) => prev ? prev[curr] : null, obj);
9210
9373
  } else if (Array.isArray(obj[path])) {
9211
- return obj[path].map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { children: item }, index));
9374
+ return obj[path].map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { children: item }, index));
9212
9375
  } else {
9213
9376
  return obj[path];
9214
9377
  }
@@ -9290,30 +9453,30 @@ var DataList = (props) => {
9290
9453
  const renderPageNumbers = () => {
9291
9454
  if (pages <= 10) {
9292
9455
  return Array.from({ length: pages }, (_, index) => index + 1).map(
9293
- (page) => /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_react68.default.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
9456
+ (page) => /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react68.default.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
9294
9457
  Hyperlink,
9295
9458
  {
9296
9459
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
9297
9460
  href: builder.getNewPageUrl(page),
9298
9461
  children: page
9299
9462
  }
9300
- ) : /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)
9463
+ ) : /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)
9301
9464
  );
9302
9465
  } else {
9303
9466
  const showFirstPages = activePageNumber <= 5;
9304
9467
  const showLastPages = activePageNumber > pages - 5;
9305
9468
  if (showFirstPages) {
9306
- return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(import_jsx_runtime93.Fragment, { children: [
9307
- Array.from({ length: 8 }, (_, index) => index + 1).map((page) => /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_react68.default.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
9469
+ return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(import_jsx_runtime94.Fragment, { children: [
9470
+ Array.from({ length: 8 }, (_, index) => index + 1).map((page) => /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react68.default.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
9308
9471
  Hyperlink,
9309
9472
  {
9310
9473
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
9311
9474
  href: builder.getNewPageUrl(page),
9312
9475
  children: page
9313
9476
  }
9314
- ) : /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)),
9315
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("span", { className: "px-2 py-1", children: "..." }),
9316
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
9477
+ ) : /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)),
9478
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "px-2 py-1", children: "..." }),
9479
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
9317
9480
  Hyperlink,
9318
9481
  {
9319
9482
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -9321,7 +9484,7 @@ var DataList = (props) => {
9321
9484
  children: pages - 1
9322
9485
  }
9323
9486
  ),
9324
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
9487
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
9325
9488
  Hyperlink,
9326
9489
  {
9327
9490
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -9329,7 +9492,7 @@ var DataList = (props) => {
9329
9492
  children: pages
9330
9493
  }
9331
9494
  ),
9332
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "relative inline-block", children: /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(
9495
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "relative inline-block", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(
9333
9496
  "select",
9334
9497
  {
9335
9498
  className: " py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
@@ -9341,18 +9504,18 @@ var DataList = (props) => {
9341
9504
  }
9342
9505
  },
9343
9506
  children: [
9344
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("option", { className: "", value: "", children: "Jump to" }),
9507
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("option", { className: "", value: "", children: "Jump to" }),
9345
9508
  Array.from(
9346
9509
  { length: Math.max(0, pages - 10) },
9347
9510
  (_, index) => index + 9
9348
- ).map((page) => /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("option", { value: page, children: page }, page))
9511
+ ).map((page) => /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("option", { value: page, children: page }, page))
9349
9512
  ]
9350
9513
  }
9351
9514
  ) })
9352
9515
  ] });
9353
9516
  } else if (showLastPages) {
9354
- return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(import_jsx_runtime93.Fragment, { children: [
9355
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
9517
+ return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(import_jsx_runtime94.Fragment, { children: [
9518
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
9356
9519
  Hyperlink,
9357
9520
  {
9358
9521
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -9360,7 +9523,7 @@ var DataList = (props) => {
9360
9523
  children: "1"
9361
9524
  }
9362
9525
  ),
9363
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
9526
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
9364
9527
  Hyperlink,
9365
9528
  {
9366
9529
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -9368,21 +9531,21 @@ var DataList = (props) => {
9368
9531
  children: "2"
9369
9532
  }
9370
9533
  ),
9371
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("span", { className: "px-2 py-1", children: "..." }),
9534
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "px-2 py-1", children: "..." }),
9372
9535
  Array.from({ length: 8 }, (_, index) => pages - 7 + index).map(
9373
- (page) => /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_react68.default.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
9536
+ (page) => /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react68.default.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
9374
9537
  Hyperlink,
9375
9538
  {
9376
9539
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
9377
9540
  href: builder.getNewPageUrl(page),
9378
9541
  children: page
9379
9542
  }
9380
- ) : /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)
9543
+ ) : /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)
9381
9544
  )
9382
9545
  ] });
9383
9546
  } else {
9384
- return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(import_jsx_runtime93.Fragment, { children: [
9385
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
9547
+ return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(import_jsx_runtime94.Fragment, { children: [
9548
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
9386
9549
  Hyperlink,
9387
9550
  {
9388
9551
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -9390,7 +9553,7 @@ var DataList = (props) => {
9390
9553
  children: "1"
9391
9554
  }
9392
9555
  ),
9393
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
9556
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
9394
9557
  Hyperlink,
9395
9558
  {
9396
9559
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -9398,20 +9561,20 @@ var DataList = (props) => {
9398
9561
  children: "2"
9399
9562
  }
9400
9563
  ),
9401
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("span", { className: "px-2 py-1", children: "..." }),
9564
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "px-2 py-1", children: "..." }),
9402
9565
  Array.from(
9403
9566
  { length: 5 },
9404
9567
  (_, index) => activePageNumber - 2 + index
9405
- ).map((page) => /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_react68.default.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
9568
+ ).map((page) => /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react68.default.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
9406
9569
  Hyperlink,
9407
9570
  {
9408
9571
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
9409
9572
  href: builder.getNewPageUrl(page),
9410
9573
  children: page
9411
9574
  }
9412
- ) : /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)),
9413
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("span", { className: "px-2 py-1", children: "..." }),
9414
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
9575
+ ) : /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)),
9576
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "px-2 py-1", children: "..." }),
9577
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
9415
9578
  Hyperlink,
9416
9579
  {
9417
9580
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -9419,7 +9582,7 @@ var DataList = (props) => {
9419
9582
  children: pages - 1
9420
9583
  }
9421
9584
  ),
9422
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
9585
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
9423
9586
  Hyperlink,
9424
9587
  {
9425
9588
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -9427,7 +9590,7 @@ var DataList = (props) => {
9427
9590
  children: pages
9428
9591
  }
9429
9592
  ),
9430
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "relative inline-block", children: /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(
9593
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "relative inline-block", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(
9431
9594
  "select",
9432
9595
  {
9433
9596
  className: "px-2 py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
@@ -9439,8 +9602,8 @@ var DataList = (props) => {
9439
9602
  }
9440
9603
  },
9441
9604
  children: [
9442
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("option", { value: "", children: "Jump to" }),
9443
- Array.from({ length: pages - 4 }, (_, index) => index + 3).filter((page) => page > 2 && page < pages - 1).map((page) => /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("option", { value: page, children: page }, page))
9605
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("option", { value: "", children: "Jump to" }),
9606
+ Array.from({ length: pages - 4 }, (_, index) => index + 3).filter((page) => page > 2 && page < pages - 1).map((page) => /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("option", { value: page, children: page }, page))
9444
9607
  ]
9445
9608
  }
9446
9609
  ) })
@@ -9448,16 +9611,16 @@ var DataList = (props) => {
9448
9611
  }
9449
9612
  }
9450
9613
  };
9451
- return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(import_react68.default.Fragment, { children: [
9452
- /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(ContentView_default, { isDataFound, children: [
9453
- (props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(
9614
+ return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(import_react68.default.Fragment, { children: [
9615
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(ContentView_default, { isDataFound, children: [
9616
+ (props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(
9454
9617
  "div",
9455
9618
  {
9456
9619
  className: `flex justify-between items-center bg-white pl-6 pr-2 h-14 mb-3 shadow-sm rounded-md sticky top-0`,
9457
9620
  children: [
9458
- props.title ? /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("h2", { className: "text-lg font-semibold text-black-800", children: props.title }) }) : /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", {}),
9459
- /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "flex items-center gap-3", children: [
9460
- props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
9621
+ props.title ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("h2", { className: "text-lg font-semibold text-black-800", children: props.title }) }) : /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", {}),
9622
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "flex items-center gap-3", children: [
9623
+ props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
9461
9624
  InputControl_default,
9462
9625
  {
9463
9626
  name: "Search_input",
@@ -9469,7 +9632,7 @@ var DataList = (props) => {
9469
9632
  }
9470
9633
  }
9471
9634
  ),
9472
- props.filters && props.filters.map((filter) => /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
9635
+ props.filters && props.filters.map((filter) => /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
9473
9636
  InputControl_default,
9474
9637
  {
9475
9638
  name: filter.name,
@@ -9484,15 +9647,15 @@ var DataList = (props) => {
9484
9647
  },
9485
9648
  filter.name
9486
9649
  )),
9487
- props.addLinkHref && /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(
9650
+ props.addLinkHref && /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(
9488
9651
  Hyperlink,
9489
9652
  {
9490
9653
  className: "gap-1",
9491
9654
  linkType: "Primary" /* Solid */,
9492
9655
  href: props.addLinkHref,
9493
9656
  children: [
9494
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Icon_default, { name: "plus", className: "w-4 h-4" }),
9495
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
9657
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Icon_default, { name: "plus", className: "w-4 h-4" }),
9658
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
9496
9659
  ]
9497
9660
  }
9498
9661
  )
@@ -9500,8 +9663,8 @@ var DataList = (props) => {
9500
9663
  ]
9501
9664
  }
9502
9665
  ),
9503
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "flex-1 overflow-y-auto justify-end bg-white rounded shadow h-[calc(100vh-14rem)]", children: /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("table", { className: "w-full divide-y divide-gray-200", children: [
9504
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("thead", { className: "bg-gray-50 sticky top-0", children: /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("tr", { children: [
9666
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "flex-1 overflow-y-auto justify-end bg-white rounded shadow h-[calc(100vh-14rem)]", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("table", { className: "w-full divide-y divide-gray-200", children: [
9667
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("thead", { className: "bg-gray-50 sticky top-0", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("tr", { children: [
9505
9668
  props?.columns?.map((column) => {
9506
9669
  let url = builder.getNewOrderByUrl(column.name);
9507
9670
  let icon = "chevronUpDown";
@@ -9512,18 +9675,18 @@ var DataList = (props) => {
9512
9675
  icon = "chevronUp";
9513
9676
  url = builder.getNewOrderByUrl(column.name + " desc");
9514
9677
  }
9515
- return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
9678
+ return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
9516
9679
  "th",
9517
9680
  {
9518
9681
  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" : ""),
9519
- children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
9682
+ children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
9520
9683
  Hyperlink,
9521
9684
  {
9522
9685
  href: column.enableSorting ? url : void 0,
9523
9686
  className: "!text-neutral-contrast ",
9524
- children: /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("span", { className: "flex items-center space-x-1", children: [
9525
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("span", { className: "text-black", children: column.label }),
9526
- column.enableSorting && /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Icon_default, { className: "w-4 h-4", name: icon })
9687
+ children: /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("span", { className: "flex items-center space-x-1", children: [
9688
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "text-black", children: column.label }),
9689
+ column.enableSorting && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Icon_default, { className: "w-4 h-4", name: icon })
9527
9690
  ] })
9528
9691
  }
9529
9692
  )
@@ -9531,25 +9694,25 @@ var DataList = (props) => {
9531
9694
  column.name
9532
9695
  );
9533
9696
  }),
9534
- props.onQuickView && /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("th", { className: "px-6 py-3 text-right font-medium bg-neutral-soft w-32 text-black", children: "Action" })
9697
+ props.onQuickView && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("th", { className: "px-6 py-3 text-right font-medium bg-neutral-soft w-32 text-black", children: "Action" })
9535
9698
  ] }) }),
9536
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("tbody", { className: "divide-y divide-gray-200 ", children: props.dataset?.result?.map((dataitem, index) => {
9699
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("tbody", { className: "divide-y divide-gray-200 ", children: props.dataset?.result?.map((dataitem, index) => {
9537
9700
  let validityClass = "";
9538
9701
  if (props.recordValidityColumnName && getNestedProperty2(dataitem, props.recordValidityColumnName) == false) {
9539
9702
  validityClass = "bg-alert-200";
9540
9703
  }
9541
- return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("tr", { className: validityClass, children: [
9704
+ return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("tr", { className: validityClass, children: [
9542
9705
  props?.columns?.map((column, colindex) => {
9543
- return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_react68.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
9706
+ return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react68.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
9544
9707
  "td",
9545
9708
  {
9546
9709
  className: "px-6 py-2 whitespace-normal " + (column.controlType == ViewControlTypes_default.money ? "" : ""),
9547
- children: column.addhref === true ? /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
9710
+ children: column.addhref === true ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
9548
9711
  Hyperlink,
9549
9712
  {
9550
9713
  className: "",
9551
9714
  href: `https://${dataitem[column.name]}`,
9552
- children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
9715
+ children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
9553
9716
  ViewControl_default,
9554
9717
  {
9555
9718
  controlType: column.controlType,
@@ -9562,11 +9725,11 @@ var DataList = (props) => {
9562
9725
  }
9563
9726
  )
9564
9727
  }
9565
- ) : column.showAsLink ? /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
9728
+ ) : column.showAsLink ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
9566
9729
  Hyperlink,
9567
9730
  {
9568
9731
  href: props.path + dataitem[props.columns[0].name] + "/" + (dataitem.linkUrlSegment ?? column.linkUrlSegment),
9569
- children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
9732
+ children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
9570
9733
  ViewControl_default,
9571
9734
  {
9572
9735
  controlType: column.controlType,
@@ -9576,7 +9739,7 @@ var DataList = (props) => {
9576
9739
  }
9577
9740
  )
9578
9741
  }
9579
- ) : /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
9742
+ ) : /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
9580
9743
  ViewControl_default,
9581
9744
  {
9582
9745
  controlType: column.controlType,
@@ -9588,7 +9751,7 @@ var DataList = (props) => {
9588
9751
  }
9589
9752
  ) }, colindex);
9590
9753
  }),
9591
- props.onQuickView && /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("td", { className: "px-6 py-2 text-right whitespace-nowrap", children: /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(
9754
+ props.onQuickView && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("td", { className: "px-6 py-2 text-right whitespace-nowrap", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(
9592
9755
  "button",
9593
9756
  {
9594
9757
  type: "button",
@@ -9598,7 +9761,7 @@ var DataList = (props) => {
9598
9761
  },
9599
9762
  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",
9600
9763
  children: [
9601
- /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(
9764
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(
9602
9765
  "svg",
9603
9766
  {
9604
9767
  className: "w-3.5 h-3.5",
@@ -9609,22 +9772,22 @@ var DataList = (props) => {
9609
9772
  strokeLinecap: "round",
9610
9773
  strokeLinejoin: "round",
9611
9774
  children: [
9612
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }),
9613
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("circle", { cx: "12", cy: "12", r: "3" })
9775
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }),
9776
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("circle", { cx: "12", cy: "12", r: "3" })
9614
9777
  ]
9615
9778
  }
9616
9779
  ),
9617
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("span", { children: props.quickViewLabel || "Quick View" })
9780
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { children: props.quickViewLabel || "Quick View" })
9618
9781
  ]
9619
9782
  }
9620
9783
  ) })
9621
9784
  ] }, index);
9622
9785
  }) })
9623
9786
  ] }) }),
9624
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "pt-4 border-t border-t-gray-50 sticky bottom-0 h-11 mt-2 ", children: /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "flex items-center justify-between", children: [
9625
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "text-gray-700", children: label }),
9626
- /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "flex space-x-2 items-center", children: [
9627
- activePageNumber > 1 && /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
9787
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "pt-4 border-t border-t-gray-50 sticky bottom-0 h-11 mt-2 ", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "flex items-center justify-between", children: [
9788
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "text-gray-700", children: label }),
9789
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "flex space-x-2 items-center", children: [
9790
+ activePageNumber > 1 && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
9628
9791
  Hyperlink,
9629
9792
  {
9630
9793
  className: "px-3 py-1 rounded-l-md border border-gray-300 bg-white text-gray-500 hover:bg-gray-200",
@@ -9632,9 +9795,9 @@ var DataList = (props) => {
9632
9795
  children: "Prev"
9633
9796
  }
9634
9797
  ),
9635
- activePageNumber <= 1 && /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("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" }),
9798
+ activePageNumber <= 1 && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("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" }),
9636
9799
  renderPageNumbers(),
9637
- activePageNumber < pages && /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
9800
+ activePageNumber < pages && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
9638
9801
  Hyperlink,
9639
9802
  {
9640
9803
  className: "px-3 py-1 rounded-r-md border border-gray-300 bg-white text-gray-500 hover:bg-gray-200",
@@ -9642,19 +9805,19 @@ var DataList = (props) => {
9642
9805
  children: "Next"
9643
9806
  }
9644
9807
  ),
9645
- activePageNumber >= pages && /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "px-3 py-1 rounded-r-md border border-gray-300 bg-gray-200 text-gray-500", children: "Next" })
9808
+ activePageNumber >= pages && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "px-3 py-1 rounded-r-md border border-gray-300 bg-gray-200 text-gray-500", children: "Next" })
9646
9809
  ] })
9647
9810
  ] }) })
9648
9811
  ] }),
9649
- /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(NoContentView_default, { isDataFound, children: [
9650
- (props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(
9812
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(NoContentView_default, { isDataFound, children: [
9813
+ (props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(
9651
9814
  "div",
9652
9815
  {
9653
9816
  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`,
9654
9817
  children: [
9655
- props.title ? /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("h2", { className: "text-lg font-semibold text-black", children: props.title }) }) : /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", {}),
9656
- /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "flex items-center gap-3", children: [
9657
- props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
9818
+ props.title ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("h2", { className: "text-lg font-semibold text-black", children: props.title }) }) : /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", {}),
9819
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "flex items-center gap-3", children: [
9820
+ props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
9658
9821
  InputControl_default,
9659
9822
  {
9660
9823
  name: "Search_input",
@@ -9666,7 +9829,7 @@ var DataList = (props) => {
9666
9829
  }
9667
9830
  }
9668
9831
  ),
9669
- props.filters && props.filters.map((filter) => /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
9832
+ props.filters && props.filters.map((filter) => /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
9670
9833
  InputControl_default,
9671
9834
  {
9672
9835
  name: filter.name,
@@ -9681,15 +9844,15 @@ var DataList = (props) => {
9681
9844
  },
9682
9845
  filter.name
9683
9846
  )),
9684
- props.addLinkHref && /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(
9847
+ props.addLinkHref && /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(
9685
9848
  Hyperlink,
9686
9849
  {
9687
9850
  className: "gap-1",
9688
9851
  linkType: "Primary" /* Solid */,
9689
9852
  href: props.addLinkHref,
9690
9853
  children: [
9691
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Icon_default, { name: "plus", className: "w-4 h-4" }),
9692
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
9854
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Icon_default, { name: "plus", className: "w-4 h-4" }),
9855
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
9693
9856
  ]
9694
9857
  }
9695
9858
  )
@@ -9697,8 +9860,8 @@ var DataList = (props) => {
9697
9860
  ]
9698
9861
  }
9699
9862
  ),
9700
- /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "flex-grow overflow-y-auto justify-end bg-white rounded shadow h-[75vh]", children: [
9701
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("table", { className: "w-full divide-y divide-gray-200", children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("thead", { className: "bg-gray-50", children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("tr", { children: props?.columns?.map((column) => {
9863
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "flex-grow overflow-y-auto justify-end bg-white rounded shadow h-[75vh]", children: [
9864
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("table", { className: "w-full divide-y divide-gray-200", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("thead", { className: "bg-gray-50", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("tr", { children: props?.columns?.map((column) => {
9702
9865
  let url = builder.getNewOrderByUrl(column.name);
9703
9866
  let icon = "chevronUpDown";
9704
9867
  if (orderBy.includes(`${column.name} desc`)) {
@@ -9708,18 +9871,18 @@ var DataList = (props) => {
9708
9871
  icon = "chevronUp";
9709
9872
  url = builder.getNewOrderByUrl(column.name + " desc");
9710
9873
  }
9711
- return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
9874
+ return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
9712
9875
  "th",
9713
9876
  {
9714
9877
  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" : ""),
9715
- children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
9878
+ children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
9716
9879
  Hyperlink,
9717
9880
  {
9718
9881
  href: column.enableSorting ? url : void 0,
9719
9882
  className: "text-body-950",
9720
- children: /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("span", { className: "flex items-center space-x-1", children: [
9721
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("span", { children: column.label }),
9722
- column.enableSorting && /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Icon_default, { className: "w-4 h-4", name: icon })
9883
+ children: /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("span", { className: "flex items-center space-x-1", children: [
9884
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { children: column.label }),
9885
+ column.enableSorting && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Icon_default, { className: "w-4 h-4", name: icon })
9723
9886
  ] })
9724
9887
  }
9725
9888
  )
@@ -9727,7 +9890,7 @@ var DataList = (props) => {
9727
9890
  column.name
9728
9891
  );
9729
9892
  }) }) }) }) }),
9730
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "w-full text-center bg-transparent pt-5", children: "There are no entries in the table at the moment." })
9893
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "w-full text-center bg-transparent pt-5", children: "There are no entries in the table at the moment." })
9731
9894
  ] })
9732
9895
  ] })
9733
9896
  ] });
@@ -9740,7 +9903,7 @@ init_ServiceClient();
9740
9903
  init_OdataBuilder();
9741
9904
  init_SelectWithSearchInput();
9742
9905
  var import_navigation4 = require("next/navigation");
9743
- var import_jsx_runtime94 = require("react/jsx-runtime");
9906
+ var import_jsx_runtime95 = require("react/jsx-runtime");
9744
9907
  var viewControlMap = {
9745
9908
  number: ViewControlTypes.number,
9746
9909
  lineText: ViewControlTypes.lineText,
@@ -9835,13 +9998,13 @@ var DataListRenderer = ({
9835
9998
  isActive: landingPageUrl === pathname
9836
9999
  };
9837
10000
  });
9838
- return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(import_react69.default.Fragment, { children: [
10001
+ return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_react69.default.Fragment, { children: [
9839
10002
  resolvedTabs.length > 0 && // <NavigationTabsV2
9840
10003
  // tabs={resolvedTabs}
9841
10004
  // params={(widgetProps?.params ?? params) as Record<string, any>}
9842
10005
  // />
9843
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
9844
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
10006
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
10007
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
9845
10008
  DataList_default,
9846
10009
  {
9847
10010
  addLinkHref,
@@ -9898,7 +10061,7 @@ var FORM_CHILD_ONE_TO_ONE_UPDATE = "FORM_CHILD_ONE_TO_ONE_UPDATE";
9898
10061
  var FORM_CHILD_ROW_ADD = "FORM_CHILD_ROW_ADD";
9899
10062
 
9900
10063
  // src/components/dataForm/DataFormChildSection.tsx
9901
- var import_jsx_runtime95 = require("react/jsx-runtime");
10064
+ var import_jsx_runtime96 = require("react/jsx-runtime");
9902
10065
  var DataFormChildSection = (props) => {
9903
10066
  const { section } = props;
9904
10067
  const isOneToOne = section.relationshipType === "one-to-one";
@@ -9966,14 +10129,14 @@ var DataFormChildSection = (props) => {
9966
10129
  childItemsToRender,
9967
10130
  allChildItems: childItems
9968
10131
  });
9969
- return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_react70.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "rounded border-neutral-200 border px-6 py-4 mb-2", children: [
9970
- section.sectionTitle && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "mb-4 text-lg font-medium text-body-950", children: section.sectionTitle }),
9971
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "flex-grow flex flex-col justify-between overflow-y-auto", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "flex flex-col justify-between gap-2", children: [
9972
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("table", { className: "w-full border-separate divide-y divide-gray-200", children: [
9973
- (!isOneToOne || childItemsToRender.length > 0) && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("thead", { className: "", children: section.sectionRows.map((sectionRow, sectionRowIndex) => {
9974
- return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("tr", { className: "", children: [
10132
+ return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_react70.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "rounded border-neutral-200 border px-6 py-4 mb-2", children: [
10133
+ section.sectionTitle && /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: "mb-4 text-lg font-medium text-body-950", children: section.sectionTitle }),
10134
+ /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: "flex-grow flex flex-col justify-between overflow-y-auto", children: /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "flex flex-col justify-between gap-2", children: [
10135
+ /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("table", { className: "w-full border-separate divide-y divide-gray-200", children: [
10136
+ (!isOneToOne || childItemsToRender.length > 0) && /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("thead", { className: "", children: section.sectionRows.map((sectionRow, sectionRowIndex) => {
10137
+ return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("tr", { className: "", children: [
9975
10138
  sectionRow.elements.map((field, index) => {
9976
- return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
10139
+ return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
9977
10140
  "th",
9978
10141
  {
9979
10142
  className: "py-3 font-normal text-left",
@@ -9982,21 +10145,21 @@ var DataFormChildSection = (props) => {
9982
10145
  field.name
9983
10146
  );
9984
10147
  }),
9985
- !section.readonly && !isOneToOne && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("th", { className: "py-3 font-normal text-left", children: "Actions" })
10148
+ !section.readonly && !isOneToOne && /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("th", { className: "py-3 font-normal text-left", children: "Actions" })
9986
10149
  ] }, sectionRowIndex);
9987
10150
  }) }),
9988
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("tbody", { className: "divide-y divide-gray-200", children: childItemsToRender.map((visibleItem, filteredIndex) => {
10151
+ /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("tbody", { className: "divide-y divide-gray-200", children: childItemsToRender.map((visibleItem, filteredIndex) => {
9989
10152
  const { item, originalIndex } = visibleItem;
9990
10153
  const rowKey = originalIndex;
9991
- return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_react70.default.Fragment, { children: section.sectionRows.map(
10154
+ return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_react70.default.Fragment, { children: section.sectionRows.map(
9992
10155
  (sectionRow, sectionRowIndex) => {
9993
- return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(
10156
+ return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(
9994
10157
  "tr",
9995
10158
  {
9996
10159
  className: "",
9997
10160
  children: [
9998
10161
  sectionRow.elements.map((field, index) => {
9999
- return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("td", { children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "w-11/12", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
10162
+ return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("td", { children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: "w-11/12", children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
10000
10163
  InputControl_default,
10001
10164
  {
10002
10165
  index: filteredIndex,
@@ -10016,7 +10179,7 @@ var DataFormChildSection = (props) => {
10016
10179
  }
10017
10180
  ) }) }) }, field.name);
10018
10181
  }),
10019
- !section.readonly && !isOneToOne && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("td", { children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
10182
+ !section.readonly && !isOneToOne && /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("td", { children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
10020
10183
  ClientButton_default,
10021
10184
  {
10022
10185
  ButtonType: StyleTypes2.Hollow,
@@ -10025,7 +10188,7 @@ var DataFormChildSection = (props) => {
10025
10188
  },
10026
10189
  dataRole: "delete",
10027
10190
  tabIndex: -1,
10028
- children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
10191
+ children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
10029
10192
  Icon_default,
10030
10193
  {
10031
10194
  className: "w-4 h-4",
@@ -10042,7 +10205,7 @@ var DataFormChildSection = (props) => {
10042
10205
  ) }, rowKey);
10043
10206
  }) })
10044
10207
  ] }) }),
10045
- !section.readonly && !isOneToOne && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "ml-1", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
10208
+ !section.readonly && !isOneToOne && /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: "ml-1", children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
10046
10209
  ClientButton_default,
10047
10210
  {
10048
10211
  ButtonType: "Link" /* Link */,
@@ -10057,7 +10220,7 @@ var DataFormChildSection = (props) => {
10057
10220
  var DataFormChildSection_default = DataFormChildSection;
10058
10221
 
10059
10222
  // src/components/dataForm/DataForm.tsx
10060
- var import_jsx_runtime96 = require("react/jsx-runtime");
10223
+ var import_jsx_runtime97 = require("react/jsx-runtime");
10061
10224
  var DataForm = (props) => {
10062
10225
  const formRef = (0, import_react71.useRef)(null);
10063
10226
  console.log(props.dataItem, "dssads");
@@ -10277,19 +10440,19 @@ var DataForm = (props) => {
10277
10440
  return false;
10278
10441
  }
10279
10442
  }
10280
- return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_react71.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "flex-grow flex flex-col", children: [
10281
- props.title && /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("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__ */ (0, import_jsx_runtime96.jsxs)(
10443
+ return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_react71.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex-grow flex flex-col", children: [
10444
+ props.title && /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("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__ */ (0, import_jsx_runtime97.jsxs)(
10282
10445
  "div",
10283
10446
  {
10284
10447
  className: "inline-flex items-center gap-2 cursor-pointer",
10285
10448
  onClick: () => window.history.back(),
10286
10449
  children: [
10287
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Icon_default, { name: "chevronLeft", className: "w-4 h-4 text-primary-800" }),
10288
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("h2", { className: "text-lg font-semibold text-primary-800", children: props.title })
10450
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Icon_default, { name: "chevronLeft", className: "w-4 h-4 text-primary-800" }),
10451
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("h2", { className: "text-lg font-semibold text-primary-800", children: props.title })
10289
10452
  ]
10290
10453
  }
10291
10454
  ) }),
10292
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
10455
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
10293
10456
  "form",
10294
10457
  {
10295
10458
  className: "group space-y-6 pb-6 overflow-y-auto",
@@ -10310,8 +10473,8 @@ var DataForm = (props) => {
10310
10473
  }
10311
10474
  }
10312
10475
  },
10313
- children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: "flex flex-col gap-6", children: props.sections?.map((section, sectionIndex) => {
10314
- return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_react71.default.Fragment, { children: !section.isChildSection && /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: " rounded-b-lg bg-white shadow border-neutral-200 border px-8 py-6 ", children: [
10476
+ children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: "flex flex-col gap-6", children: props.sections?.map((section, sectionIndex) => {
10477
+ return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_react71.default.Fragment, { children: !section.isChildSection && /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: " rounded-b-lg bg-white shadow border-neutral-200 border px-8 py-6 ", children: [
10315
10478
  section.sectionRows?.map(
10316
10479
  (sectionRow, sectionRowIndex) => {
10317
10480
  const elementsCount = sectionRow.elements.length;
@@ -10322,14 +10485,14 @@ var DataForm = (props) => {
10322
10485
  sectionRow.visible
10323
10486
  );
10324
10487
  }
10325
- return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_react71.default.Fragment, { children: isVisible && /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: "lg:flex gap-14 flex-1 mb-4 ", children: sectionRow.elements.map((field, index) => {
10326
- return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(
10488
+ return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_react71.default.Fragment, { children: isVisible && /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: "lg:flex gap-14 flex-1 mb-4 ", children: sectionRow.elements.map((field, index) => {
10489
+ return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(
10327
10490
  "div",
10328
10491
  {
10329
10492
  className: sectionRow.grow ? "grow" : "",
10330
10493
  children: [
10331
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { children: field.controlType }),
10332
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
10494
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { children: field.controlType }),
10495
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
10333
10496
  InputControl_default,
10334
10497
  {
10335
10498
  name: field.name,
@@ -10359,12 +10522,12 @@ var DataForm = (props) => {
10359
10522
  }) }) }, sectionRowIndex);
10360
10523
  }
10361
10524
  ),
10362
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { children: section.childSections?.map(
10525
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { children: section.childSections?.map(
10363
10526
  (childSection, childSectionIndex) => {
10364
- return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { children: childSection.name && evalutateCondition(
10527
+ return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { children: childSection.name && evalutateCondition(
10365
10528
  formState.inputValues,
10366
10529
  childSection.visible
10367
- ) && /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
10530
+ ) && /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
10368
10531
  DataFormChildSection_default,
10369
10532
  {
10370
10533
  section: childSection,
@@ -10379,8 +10542,8 @@ var DataForm = (props) => {
10379
10542
  }) })
10380
10543
  }
10381
10544
  ),
10382
- /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "flex px-6 py-3 mt-2 mb-2 justify-end items-center gap-5", children: [
10383
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { children: props.additionalActions && /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
10545
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex px-6 py-3 mt-2 mb-2 justify-end items-center gap-5", children: [
10546
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { children: props.additionalActions && /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
10384
10547
  Button_default,
10385
10548
  {
10386
10549
  ButtonType: "PrimaryHollow" /* Hollow */,
@@ -10388,7 +10551,7 @@ var DataForm = (props) => {
10388
10551
  children: props.additionalActions.title
10389
10552
  }
10390
10553
  ) }),
10391
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { children: props.onDelete && /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
10554
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { children: props.onDelete && /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
10392
10555
  Button_default,
10393
10556
  {
10394
10557
  ButtonType: "PrimaryHollow" /* Hollow */,
@@ -10399,7 +10562,7 @@ var DataForm = (props) => {
10399
10562
  children: "Delete"
10400
10563
  }
10401
10564
  ) }),
10402
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { children: props.onClick && /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
10565
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { children: props.onClick && /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
10403
10566
  Button_default,
10404
10567
  {
10405
10568
  onValidate,
@@ -10417,7 +10580,7 @@ var DataForm_default = DataForm;
10417
10580
 
10418
10581
  // src/components/dataForm/DataFormRenderer.tsx
10419
10582
  init_ServiceClient();
10420
- var import_jsx_runtime97 = require("react/jsx-runtime");
10583
+ var import_jsx_runtime98 = require("react/jsx-runtime");
10421
10584
  function getAction(actions, code) {
10422
10585
  return actions?.find((a) => a.actionCode === code);
10423
10586
  }
@@ -10443,9 +10606,9 @@ var DataFormRenderer = ({
10443
10606
  "Delete"
10444
10607
  );
10445
10608
  const hasDataItem = dataItem && Object.keys(dataItem).length > 0;
10446
- return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex-grow flex flex-col", children: [
10447
- widgetProps && /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
10448
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
10609
+ return /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: "flex-grow flex flex-col", children: [
10610
+ widgetProps && /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
10611
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
10449
10612
  DataForm_default,
10450
10613
  {
10451
10614
  title: !isAddPage ? "Edit " + formDefinition.formTitle + "- v2" : "Add " + formDefinition.formTitle + "- v2",