@clyrex-digital/clyrex-controls-dev 0.8.1-dev.20260807124440 → 0.8.1-dev.20260808070128

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/server.js CHANGED
@@ -1566,9 +1566,9 @@ __export(CopyButton_exports, {
1566
1566
  default: () => CopyButton
1567
1567
  });
1568
1568
  function CopyButton({ text }) {
1569
- const [copied, setCopied] = (0, import_react26.useState)(false);
1570
- const timeoutRef = (0, import_react26.useRef)(null);
1571
- (0, import_react26.useEffect)(() => {
1569
+ const [copied, setCopied] = (0, import_react27.useState)(false);
1570
+ const timeoutRef = (0, import_react27.useRef)(null);
1571
+ (0, import_react27.useEffect)(() => {
1572
1572
  return () => {
1573
1573
  if (timeoutRef.current) clearTimeout(timeoutRef.current);
1574
1574
  };
@@ -1583,13 +1583,13 @@ function CopyButton({ text }) {
1583
1583
  console.error("Failed to copy: ", err);
1584
1584
  }
1585
1585
  };
1586
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
1586
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
1587
1587
  "button",
1588
1588
  {
1589
1589
  onClick: handleCopy,
1590
1590
  className: "flex gap-1 items-center hover:text-white transition",
1591
1591
  children: [
1592
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
1592
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
1593
1593
  "svg",
1594
1594
  {
1595
1595
  width: "16",
@@ -1597,7 +1597,7 @@ function CopyButton({ text }) {
1597
1597
  viewBox: "0 0 24 24",
1598
1598
  className: "w-4 h-4",
1599
1599
  fill: "currentColor",
1600
- children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
1600
+ children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
1601
1601
  "path",
1602
1602
  {
1603
1603
  fillRule: "evenodd",
@@ -1612,54 +1612,54 @@ function CopyButton({ text }) {
1612
1612
  }
1613
1613
  );
1614
1614
  }
1615
- var import_react26, import_jsx_runtime36;
1615
+ var import_react27, import_jsx_runtime37;
1616
1616
  var init_CopyButton = __esm({
1617
1617
  "src/components/CopyButton.tsx"() {
1618
1618
  "use strict";
1619
1619
  "use client";
1620
- import_react26 = require("react");
1621
- import_jsx_runtime36 = require("react/jsx-runtime");
1620
+ import_react27 = require("react");
1621
+ import_jsx_runtime37 = require("react/jsx-runtime");
1622
1622
  }
1623
1623
  });
1624
1624
 
1625
1625
  // src/components/IFrameLoaderView.tsx
1626
- var import_react29, import_jsx_runtime40, IFrameLoaderView, IFrameLoaderView_default;
1626
+ var import_react30, import_jsx_runtime41, IFrameLoaderView, IFrameLoaderView_default;
1627
1627
  var init_IFrameLoaderView = __esm({
1628
1628
  "src/components/IFrameLoaderView.tsx"() {
1629
1629
  "use strict";
1630
- import_react29 = __toESM(require("react"));
1631
- import_jsx_runtime40 = require("react/jsx-runtime");
1630
+ import_react30 = __toESM(require("react"));
1631
+ import_jsx_runtime41 = require("react/jsx-runtime");
1632
1632
  IFrameLoaderView = (props) => {
1633
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(import_react29.default.Fragment, { children: [
1634
- props.isDataFound == null && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "mt-4 bg-gray-200 rounded-md p-4 animate-pulse", children: [
1635
- /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "flex items-center mb-4", children: [
1636
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
1637
- /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "ml-2", children: [
1638
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
1639
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
1633
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(import_react30.default.Fragment, { children: [
1634
+ props.isDataFound == null && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "mt-4 bg-gray-200 rounded-md p-4 animate-pulse", children: [
1635
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "flex items-center mb-4", children: [
1636
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
1637
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "ml-2", children: [
1638
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
1639
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
1640
1640
  ] })
1641
1641
  ] }),
1642
- /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
1643
- /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "animate-pulse", children: [
1644
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
1645
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
1646
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
1647
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
1648
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
1642
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
1643
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "animate-pulse", children: [
1644
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
1645
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
1646
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
1647
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
1648
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
1649
1649
  ] }),
1650
- /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "animate-pulse", children: [
1651
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
1652
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
1653
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
1654
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
1655
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
1650
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "animate-pulse", children: [
1651
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
1652
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
1653
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
1654
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
1655
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
1656
1656
  ] }),
1657
- /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "animate-pulse", children: [
1658
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
1659
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
1660
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
1661
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
1662
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
1657
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "animate-pulse", children: [
1658
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
1659
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
1660
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
1661
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
1662
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
1663
1663
  ] })
1664
1664
  ] })
1665
1665
  ] }) }),
@@ -1675,34 +1675,34 @@ var IframeClient_exports = {};
1675
1675
  __export(IframeClient_exports, {
1676
1676
  default: () => IframeClient_default
1677
1677
  });
1678
- var import_react30, import_jsx_runtime41, IframeClient, IframeClient_default;
1678
+ var import_react31, import_jsx_runtime42, IframeClient, IframeClient_default;
1679
1679
  var init_IframeClient = __esm({
1680
1680
  "src/components/pageRenderingEngine/nodes/IframeClient.tsx"() {
1681
1681
  "use strict";
1682
1682
  "use client";
1683
- import_react30 = __toESM(require("react"));
1683
+ import_react31 = __toESM(require("react"));
1684
1684
  init_IFrameLoaderView();
1685
- import_jsx_runtime41 = require("react/jsx-runtime");
1686
- IframeClient = ({ src, height, width }) => {
1687
- const iframeRef = (0, import_react30.useRef)(null);
1688
- const [iframeHeight, setIframeHeight] = (0, import_react30.useState)("100%");
1689
- const [isDataFound, setIsDataFound] = (0, import_react30.useState)(null);
1690
- (0, import_react30.useEffect)(() => {
1685
+ import_jsx_runtime42 = require("react/jsx-runtime");
1686
+ IframeClient = ({ src }) => {
1687
+ const iframeRef = (0, import_react31.useRef)(null);
1688
+ const [iframeHeight, setIframeHeight] = (0, import_react31.useState)("100%");
1689
+ const [isDataFound, setIsDataFound] = (0, import_react31.useState)(null);
1690
+ (0, import_react31.useEffect)(() => {
1691
1691
  const handleReceiveMessage = (event) => {
1692
1692
  const eventName = event?.data?.eventName;
1693
1693
  const payload = event?.data?.payload;
1694
1694
  if (eventName === "SET_HEIGHT" && payload?.height) {
1695
- let height2 = 500;
1695
+ let height = 500;
1696
1696
  if (payload.height > 500) {
1697
- height2 = payload.height + 50;
1697
+ height = payload.height + 50;
1698
1698
  }
1699
- setIframeHeight(`${height2}px`);
1699
+ setIframeHeight(`${height}px`);
1700
1700
  }
1701
1701
  };
1702
1702
  window.addEventListener("message", handleReceiveMessage);
1703
1703
  return () => window.removeEventListener("message", handleReceiveMessage);
1704
1704
  }, []);
1705
- (0, import_react30.useEffect)(() => {
1705
+ (0, import_react31.useEffect)(() => {
1706
1706
  const handleResize = () => {
1707
1707
  if (iframeRef.current) {
1708
1708
  iframeRef.current.contentWindow?.postMessage({ eventName: "RESIZE" }, "*");
@@ -1714,16 +1714,15 @@ var init_IframeClient = __esm({
1714
1714
  const handleIframeLoad = () => {
1715
1715
  setIsDataFound(true);
1716
1716
  };
1717
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_react30.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(IFrameLoaderView_default, { isDataFound, children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
1717
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_react31.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(IFrameLoaderView_default, { isDataFound, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
1718
1718
  "iframe",
1719
1719
  {
1720
1720
  ref: iframeRef,
1721
1721
  src,
1722
- className: " border-none",
1722
+ className: "w-full h-full border-none",
1723
1723
  scrolling: "no",
1724
- onLoad: handleIframeLoad,
1725
- height,
1726
- width
1724
+ style: { height: iframeHeight },
1725
+ onLoad: handleIframeLoad
1727
1726
  }
1728
1727
  ) }) });
1729
1728
  };
@@ -1942,52 +1941,52 @@ var init_OdataBuilder = __esm({
1942
1941
  });
1943
1942
 
1944
1943
  // src/svg/chevron-updown.tsx
1945
- var import_jsx_runtime46, ChevronUpDown, chevron_updown_default;
1944
+ var import_jsx_runtime47, ChevronUpDown, chevron_updown_default;
1946
1945
  var init_chevron_updown = __esm({
1947
1946
  "src/svg/chevron-updown.tsx"() {
1948
1947
  "use strict";
1949
- import_jsx_runtime46 = require("react/jsx-runtime");
1948
+ import_jsx_runtime47 = require("react/jsx-runtime");
1950
1949
  ChevronUpDown = (props) => {
1951
- return /* @__PURE__ */ (0, import_jsx_runtime46.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_runtime46.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9" }) });
1950
+ return /* @__PURE__ */ (0, import_jsx_runtime47.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_runtime47.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9" }) });
1952
1951
  };
1953
1952
  chevron_updown_default = ChevronUpDown;
1954
1953
  }
1955
1954
  });
1956
1955
 
1957
1956
  // src/svg/chevron-down.tsx
1958
- var import_jsx_runtime47, ChevronDown, chevron_down_default;
1957
+ var import_jsx_runtime48, ChevronDown, chevron_down_default;
1959
1958
  var init_chevron_down = __esm({
1960
1959
  "src/svg/chevron-down.tsx"() {
1961
1960
  "use strict";
1962
- import_jsx_runtime47 = require("react/jsx-runtime");
1961
+ import_jsx_runtime48 = require("react/jsx-runtime");
1963
1962
  ChevronDown = (props) => {
1964
- return /* @__PURE__ */ (0, import_jsx_runtime47.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_runtime47.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M19.5 8.25l-7.5 7.5-7.5-7.5" }) });
1963
+ 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: "M19.5 8.25l-7.5 7.5-7.5-7.5" }) });
1965
1964
  };
1966
1965
  chevron_down_default = ChevronDown;
1967
1966
  }
1968
1967
  });
1969
1968
 
1970
1969
  // src/svg/chevron-up.tsx
1971
- var import_jsx_runtime48, ChevronUp, chevron_up_default;
1970
+ var import_jsx_runtime49, ChevronUp, chevron_up_default;
1972
1971
  var init_chevron_up = __esm({
1973
1972
  "src/svg/chevron-up.tsx"() {
1974
1973
  "use strict";
1975
- import_jsx_runtime48 = require("react/jsx-runtime");
1974
+ import_jsx_runtime49 = require("react/jsx-runtime");
1976
1975
  ChevronUp = (props) => {
1977
- 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: "M4.5 15.75l7.5-7.5 7.5 7.5" }) });
1976
+ 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: "M4.5 15.75l7.5-7.5 7.5 7.5" }) });
1978
1977
  };
1979
1978
  chevron_up_default = ChevronUp;
1980
1979
  }
1981
1980
  });
1982
1981
 
1983
1982
  // src/svg/plus.tsx
1984
- var import_jsx_runtime49, Plus, plus_default;
1983
+ var import_jsx_runtime50, Plus, plus_default;
1985
1984
  var init_plus = __esm({
1986
1985
  "src/svg/plus.tsx"() {
1987
1986
  "use strict";
1988
- import_jsx_runtime49 = require("react/jsx-runtime");
1987
+ import_jsx_runtime50 = require("react/jsx-runtime");
1989
1988
  Plus = (props) => {
1990
- 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: "M12 4.5v15m7.5-7.5h-15" }) });
1989
+ 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: "M12 4.5v15m7.5-7.5h-15" }) });
1991
1990
  };
1992
1991
  plus_default = Plus;
1993
1992
  }
@@ -2013,19 +2012,19 @@ var init_Icons = __esm({
2013
2012
  });
2014
2013
 
2015
2014
  // src/svg/Icon.tsx
2016
- var import_jsx_runtime50, Icon, Icon_default;
2015
+ var import_jsx_runtime51, Icon, Icon_default;
2017
2016
  var init_Icon = __esm({
2018
2017
  "src/svg/Icon.tsx"() {
2019
2018
  "use strict";
2020
2019
  init_Icons();
2021
- import_jsx_runtime50 = require("react/jsx-runtime");
2020
+ import_jsx_runtime51 = require("react/jsx-runtime");
2022
2021
  Icon = ({ name, className, ...props }) => {
2023
2022
  const IconComponent = Icons_default[name];
2024
2023
  if (!IconComponent) {
2025
2024
  console.error(`Icon "${name}" not found.`);
2026
2025
  return null;
2027
2026
  }
2028
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(IconComponent, { ...props, className });
2027
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(IconComponent, { ...props, className });
2029
2028
  };
2030
2029
  Icon_default = Icon;
2031
2030
  }
@@ -2036,21 +2035,21 @@ var Pagination_exports = {};
2036
2035
  __export(Pagination_exports, {
2037
2036
  default: () => Pagination_default
2038
2037
  });
2039
- var import_react31, import_jsx_runtime51, Pagination, Pagination_default;
2038
+ var import_react32, import_jsx_runtime52, Pagination, Pagination_default;
2040
2039
  var init_Pagination = __esm({
2041
2040
  "src/components/Pagination.tsx"() {
2042
2041
  "use strict";
2043
2042
  "use client";
2044
- import_react31 = require("react");
2043
+ import_react32 = require("react");
2045
2044
  init_OdataBuilder();
2046
2045
  init_Icon();
2047
2046
  init_StyleTypes();
2048
2047
  init_InputControlType();
2049
2048
  init_Hyperlink();
2050
- import_jsx_runtime51 = require("react/jsx-runtime");
2049
+ import_jsx_runtime52 = require("react/jsx-runtime");
2051
2050
  Pagination = (props) => {
2052
2051
  const { dataset, path, query, showPageSizeSelector = false, showJumpToPage = false } = props;
2053
- const builder = (0, import_react31.useMemo)(() => {
2052
+ const builder = (0, import_react32.useMemo)(() => {
2054
2053
  const b = new OdataBuilder(path);
2055
2054
  if (query) b.setQuery(query);
2056
2055
  return b;
@@ -2091,7 +2090,7 @@ var init_Pagination = __esm({
2091
2090
  return range;
2092
2091
  };
2093
2092
  const paginationRange = getPaginationRange();
2094
- const PageButton = ({ page, children }) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
2093
+ const PageButton = ({ page, children }) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2095
2094
  Hyperlink,
2096
2095
  {
2097
2096
  linkType: "Link" /* Link */,
@@ -2106,9 +2105,9 @@ var init_Pagination = __esm({
2106
2105
  );
2107
2106
  const NavigationButton = ({ page, disabled, children }) => {
2108
2107
  if (disabled) {
2109
- return /* @__PURE__ */ (0, import_jsx_runtime51.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 });
2108
+ return /* @__PURE__ */ (0, import_jsx_runtime52.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 });
2110
2109
  }
2111
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
2110
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2112
2111
  Hyperlink,
2113
2112
  {
2114
2113
  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",
@@ -2118,35 +2117,35 @@ var init_Pagination = __esm({
2118
2117
  );
2119
2118
  };
2120
2119
  if (totalPages <= 1 && totalItems === 0) return null;
2121
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "py-6 border-t bg-default", children: [
2122
- /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex flex-col sm:flex-row items-center justify-between gap-4", children: [
2123
- /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "text-sm", children: [
2120
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "py-6 border-t bg-default", children: [
2121
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "flex flex-col sm:flex-row items-center justify-between gap-4", children: [
2122
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "text-sm", children: [
2124
2123
  "Showing ",
2125
- /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("span", { className: "font-semibold", children: [
2124
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("span", { className: "font-semibold", children: [
2126
2125
  startItem,
2127
2126
  "-",
2128
2127
  endItem
2129
2128
  ] }),
2130
2129
  " ",
2131
2130
  "out of ",
2132
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "font-semibold", children: totalItems.toLocaleString() }),
2131
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { className: "font-semibold", children: totalItems.toLocaleString() }),
2133
2132
  " results"
2134
2133
  ] }),
2135
- totalPages > 1 && /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex items-center space-x-1", children: [
2136
- /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
2134
+ totalPages > 1 && /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "flex items-center space-x-1", children: [
2135
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
2137
2136
  NavigationButton,
2138
2137
  {
2139
2138
  page: activePageNumber - 1,
2140
2139
  disabled: activePageNumber === 1,
2141
2140
  children: [
2142
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Icon_default, { name: "chevronLeft", className: "w-4 h-4 mr-1" }) }),
2143
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "text-sm", children: "Prev" })
2141
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Icon_default, { name: "chevronLeft", className: "w-4 h-4 mr-1" }) }),
2142
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { className: "text-sm", children: "Prev" })
2144
2143
  ]
2145
2144
  }
2146
2145
  ),
2147
2146
  paginationRange.map((item, index) => {
2148
2147
  if (item === "...") {
2149
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
2148
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2150
2149
  "span",
2151
2150
  {
2152
2151
  className: "min-w-[20px] md:min-w-[40px] h-10 flex items-center justify-center text-gray-500",
@@ -2156,23 +2155,23 @@ var init_Pagination = __esm({
2156
2155
  );
2157
2156
  }
2158
2157
  const page = item;
2159
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(PageButton, { page, children: page }, page);
2158
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(PageButton, { page, children: page }, page);
2160
2159
  }),
2161
- /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
2160
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
2162
2161
  NavigationButton,
2163
2162
  {
2164
2163
  page: activePageNumber + 1,
2165
2164
  disabled: activePageNumber === totalPages,
2166
2165
  children: [
2167
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "text-sm", children: "Next" }),
2168
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Icon_default, { name: "chevronRight", className: "w-4 h-4 ml-1" }) })
2166
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { className: "text-sm", children: "Next" }),
2167
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Icon_default, { name: "chevronRight", className: "w-4 h-4 ml-1" }) })
2169
2168
  ]
2170
2169
  }
2171
2170
  )
2172
2171
  ] }),
2173
- showJumpToPage && totalPages > 5 && /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex items-center space-x-2", children: [
2174
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "text-sm", children: "Go to:" }),
2175
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
2172
+ showJumpToPage && totalPages > 5 && /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "flex items-center space-x-2", children: [
2173
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { className: "text-sm", children: "Go to:" }),
2174
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2176
2175
  "input",
2177
2176
  {
2178
2177
  type: "number",
@@ -2193,9 +2192,9 @@ var init_Pagination = __esm({
2193
2192
  ) })
2194
2193
  ] })
2195
2194
  ] }),
2196
- showPageSizeSelector && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "mt-4 pt-4 border-t bg-default", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex items-center justify-center space-x-2", children: [
2197
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "text-sm", children: "Show:" }),
2198
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "flex space-x-1", children: [10, 25, 50, 100].map((size) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
2195
+ showPageSizeSelector && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "mt-4 pt-4 border-t bg-default", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "flex items-center justify-center space-x-2", children: [
2196
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { className: "text-sm", children: "Show:" }),
2197
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "flex space-x-1", children: [10, 25, 50, 100].map((size) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2199
2198
  Hyperlink,
2200
2199
  {
2201
2200
  className: `
@@ -2207,7 +2206,7 @@ var init_Pagination = __esm({
2207
2206
  },
2208
2207
  size
2209
2208
  )) }),
2210
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "text-sm", children: "per page" })
2209
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { className: "text-sm", children: "per page" })
2211
2210
  ] }) })
2212
2211
  ] });
2213
2212
  };
@@ -2220,13 +2219,13 @@ var Slider_exports = {};
2220
2219
  __export(Slider_exports, {
2221
2220
  default: () => Slider_default
2222
2221
  });
2223
- var import_react32, import_jsx_runtime52, Slider, ArrowButton, ProgressPill, Slider_default;
2222
+ var import_react33, import_jsx_runtime53, Slider, ArrowButton, ProgressPill, Slider_default;
2224
2223
  var init_Slider = __esm({
2225
2224
  "src/components/Slider.tsx"() {
2226
2225
  "use strict";
2227
2226
  "use client";
2228
- import_react32 = __toESM(require("react"));
2229
- import_jsx_runtime52 = require("react/jsx-runtime");
2227
+ import_react33 = __toESM(require("react"));
2228
+ import_jsx_runtime53 = require("react/jsx-runtime");
2230
2229
  Slider = ({
2231
2230
  children,
2232
2231
  slidesToShow = 4,
@@ -2244,13 +2243,13 @@ var init_Slider = __esm({
2244
2243
  pillStyle = "cumulative",
2245
2244
  progressPosition = "bottom"
2246
2245
  }) => {
2247
- const [currentSlide, setCurrentSlide] = (0, import_react32.useState)(0);
2248
- const [transition, setTransition] = (0, import_react32.useState)(true);
2249
- const [slidesToShowState, setSlidesToShowState] = (0, import_react32.useState)(
2246
+ const [currentSlide, setCurrentSlide] = (0, import_react33.useState)(0);
2247
+ const [transition, setTransition] = (0, import_react33.useState)(true);
2248
+ const [slidesToShowState, setSlidesToShowState] = (0, import_react33.useState)(
2250
2249
  typeof slidesToShow === "number" ? slidesToShow : slidesToShow.large
2251
2250
  );
2252
- const [isPlaying, setIsPlaying] = (0, import_react32.useState)(autoplay);
2253
- (0, import_react32.useEffect)(() => {
2251
+ const [isPlaying, setIsPlaying] = (0, import_react33.useState)(autoplay);
2252
+ (0, import_react33.useEffect)(() => {
2254
2253
  if (typeof slidesToShow === "number") return;
2255
2254
  const handleResize = () => {
2256
2255
  if (window.innerWidth >= 1024) {
@@ -2265,7 +2264,7 @@ var init_Slider = __esm({
2265
2264
  window.addEventListener("resize", handleResize);
2266
2265
  return () => window.removeEventListener("resize", handleResize);
2267
2266
  }, [slidesToShow]);
2268
- (0, import_react32.useEffect)(() => {
2267
+ (0, import_react33.useEffect)(() => {
2269
2268
  if (!autoplay) return;
2270
2269
  const timer = setInterval(() => {
2271
2270
  if (isPlaying) {
@@ -2274,7 +2273,7 @@ var init_Slider = __esm({
2274
2273
  }, autoplay_speed);
2275
2274
  return () => clearInterval(timer);
2276
2275
  }, [autoplay, autoplay_speed, currentSlide, isPlaying]);
2277
- const totalSlides = import_react32.Children.count(children);
2276
+ const totalSlides = import_react33.Children.count(children);
2278
2277
  const maxSlide = totalSlides - slidesToShowState;
2279
2278
  const nextSlide = () => {
2280
2279
  if (currentSlide >= maxSlide) {
@@ -2319,16 +2318,16 @@ var init_Slider = __esm({
2319
2318
  }
2320
2319
  };
2321
2320
  const translateX = -currentSlide * (100 / slidesToShowState);
2322
- const slides = import_react32.Children.map(children, (child, index) => {
2323
- if (!import_react32.default.isValidElement(child)) return null;
2321
+ const slides = import_react33.Children.map(children, (child, index) => {
2322
+ if (!import_react33.default.isValidElement(child)) return null;
2324
2323
  const childProps = child.props;
2325
2324
  const mergedClassName = `${childProps.className ?? ""} w-full`.trim();
2326
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2325
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
2327
2326
  "div",
2328
2327
  {
2329
2328
  className: `flex-none ${scaleOnHover ? "group hover:z-50" : ""} relative`,
2330
2329
  style: { width: `calc(${100 / slidesToShowState}%)`, paddingRight: gap },
2331
- children: (0, import_react32.cloneElement)(child, {
2330
+ children: (0, import_react33.cloneElement)(child, {
2332
2331
  className: mergedClassName
2333
2332
  })
2334
2333
  },
@@ -2346,14 +2345,14 @@ var init_Slider = __esm({
2346
2345
  return "bottom-4";
2347
2346
  }
2348
2347
  };
2349
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
2348
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
2350
2349
  "div",
2351
2350
  {
2352
2351
  className: `relative w-full overflow-hidden ${className}`,
2353
2352
  onMouseEnter: handleMouseEnter,
2354
2353
  onMouseLeave: handleMouseLeave,
2355
2354
  children: [
2356
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2355
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
2357
2356
  "div",
2358
2357
  {
2359
2358
  className: "flex h-full",
@@ -2364,18 +2363,18 @@ var init_Slider = __esm({
2364
2363
  children: slides
2365
2364
  }
2366
2365
  ),
2367
- show_arrows && /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(import_jsx_runtime52.Fragment, { children: [
2368
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2366
+ show_arrows && /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_jsx_runtime53.Fragment, { children: [
2367
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
2369
2368
  ArrowButton,
2370
2369
  {
2371
2370
  direction: "left",
2372
2371
  onClick: prevSlide,
2373
2372
  visible: infinite_scroll || currentSlide > 0,
2374
2373
  className: arrowClassName,
2375
- children: /* @__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: "w-6 h-6", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M15.75 19.5 8.25 12l7.5-7.5" }) })
2374
+ children: /* @__PURE__ */ (0, import_jsx_runtime53.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_runtime53.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M15.75 19.5 8.25 12l7.5-7.5" }) })
2376
2375
  }
2377
2376
  ),
2378
- /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
2377
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
2379
2378
  ArrowButton,
2380
2379
  {
2381
2380
  direction: "right",
@@ -2383,13 +2382,13 @@ var init_Slider = __esm({
2383
2382
  visible: infinite_scroll || currentSlide < maxSlide,
2384
2383
  className: arrowClassName,
2385
2384
  children: [
2386
- /* @__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: "w-6 h-6", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "m8.25 4.5 7.5 7.5-7.5 7.5" }) }),
2385
+ /* @__PURE__ */ (0, import_jsx_runtime53.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_runtime53.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "m8.25 4.5 7.5 7.5-7.5 7.5" }) }),
2387
2386
  " "
2388
2387
  ]
2389
2388
  }
2390
2389
  )
2391
2390
  ] }),
2392
- show_dots && /* @__PURE__ */ (0, import_jsx_runtime52.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_runtime52.jsx)(
2391
+ show_dots && /* @__PURE__ */ (0, import_jsx_runtime53.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_runtime53.jsx)(
2393
2392
  ProgressPill,
2394
2393
  {
2395
2394
  active: index === currentSlide,
@@ -2415,7 +2414,7 @@ var init_Slider = __esm({
2415
2414
  visible,
2416
2415
  children,
2417
2416
  className = ""
2418
- }) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2417
+ }) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
2419
2418
  "button",
2420
2419
  {
2421
2420
  className: `
@@ -2441,13 +2440,13 @@ var init_Slider = __esm({
2441
2440
  currentSlide,
2442
2441
  totalSlides
2443
2442
  }) => {
2444
- const [progress, setProgress] = (0, import_react32.useState)(0);
2445
- (0, import_react32.useEffect)(() => {
2443
+ const [progress, setProgress] = (0, import_react33.useState)(0);
2444
+ (0, import_react33.useEffect)(() => {
2446
2445
  if (active) {
2447
2446
  setProgress(0);
2448
2447
  }
2449
2448
  }, [active, index]);
2450
- (0, import_react32.useEffect)(() => {
2449
+ (0, import_react33.useEffect)(() => {
2451
2450
  if (!active || !isPlaying) {
2452
2451
  if (!active) {
2453
2452
  setProgress(0);
@@ -2502,7 +2501,7 @@ var init_Slider = __esm({
2502
2501
  const renderProgressBar = () => {
2503
2502
  if (style === "modern" && isActive || style === "cumulative" && shouldShowProgress) {
2504
2503
  const displayProgress = style === "cumulative" && isFilled ? 100 : progress;
2505
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2504
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
2506
2505
  "div",
2507
2506
  {
2508
2507
  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`,
@@ -2514,7 +2513,7 @@ var init_Slider = __esm({
2514
2513
  };
2515
2514
  const renderCumulativeFill = () => {
2516
2515
  if (style === "cumulative" && isFilled && !isActive) {
2517
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2516
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
2518
2517
  "div",
2519
2518
  {
2520
2519
  className: `absolute top-0 left-0 h-full rounded-full ${activeClassName || "bg-white"} transition-all duration-300`,
@@ -2524,7 +2523,7 @@ var init_Slider = __esm({
2524
2523
  }
2525
2524
  return null;
2526
2525
  };
2527
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
2526
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
2528
2527
  "button",
2529
2528
  {
2530
2529
  className: `${baseClasses} ${getStyleClasses()}`,
@@ -2552,10 +2551,10 @@ __export(server_exports, {
2552
2551
  module.exports = __toCommonJS(server_exports);
2553
2552
 
2554
2553
  // src/components/pageRenderingEngine/PageBodyRenderer.tsx
2555
- var import_react34 = __toESM(require("react"));
2554
+ var import_react35 = __toESM(require("react"));
2556
2555
 
2557
2556
  // src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
2558
- var import_react21 = __toESM(require("react"));
2557
+ var import_react22 = __toESM(require("react"));
2559
2558
 
2560
2559
  // src/components/pageRenderingEngine/nodes/TextNode.tsx
2561
2560
  var import_jsx_runtime = require("react/jsx-runtime");
@@ -3018,7 +3017,7 @@ var EquationNode = ({ node }) => {
3018
3017
  var EquationNode_default = EquationNode;
3019
3018
 
3020
3019
  // src/components/controls/view/ViewControl.tsx
3021
- var import_react20 = __toESM(require("react"));
3020
+ var import_react21 = __toESM(require("react"));
3022
3021
 
3023
3022
  // src/components/controls/view/ViewControlTypes.tsx
3024
3023
  var ViewControlTypes = {
@@ -3276,8 +3275,80 @@ var DateTimeView = (0, import_dynamic5.default)(() => Promise.resolve().then(()
3276
3275
  });
3277
3276
  var DateTimeVew_default = DateTimeView;
3278
3277
 
3279
- // src/components/controls/view/ViewControl.tsx
3278
+ // src/components/controls/view/TimeUntilStarts.tsx
3279
+ var import_react20 = require("react");
3280
3280
  var import_jsx_runtime29 = require("react/jsx-runtime");
3281
+ var TimeUntilStarts = (props) => {
3282
+ const calculateTimeDifference = (startDate) => {
3283
+ const now = /* @__PURE__ */ new Date();
3284
+ const nowUtc = new Date(now.getTime() + now.getTimezoneOffset() * 6e4);
3285
+ const startDateUtc = new Date(startDate);
3286
+ const diffMs = startDateUtc.getTime() - nowUtc.getTime();
3287
+ const isPast = diffMs < 0;
3288
+ const absoluteDiffMs = Math.abs(diffMs);
3289
+ const diffDays = Math.floor(absoluteDiffMs / (1e3 * 60 * 60 * 24));
3290
+ const diffHours = Math.floor(
3291
+ absoluteDiffMs % (1e3 * 60 * 60 * 24) / (1e3 * 60 * 60)
3292
+ );
3293
+ const diffMinutes = Math.floor(
3294
+ absoluteDiffMs % (1e3 * 60 * 60) / (1e3 * 60)
3295
+ );
3296
+ if (absoluteDiffMs < 6e4) {
3297
+ return "Just now";
3298
+ }
3299
+ let timeParts = [
3300
+ { value: diffDays, unit: "days" },
3301
+ { value: diffHours, unit: "hours" },
3302
+ { value: diffMinutes, unit: "minutes" }
3303
+ ];
3304
+ timeParts = timeParts.filter((part) => part.value > 0);
3305
+ if (isPast) {
3306
+ if (diffDays > 0) {
3307
+ return `${diffDays} day(s) ago`;
3308
+ } else if (diffHours > 0) {
3309
+ return `${diffHours} hour(s) ago`;
3310
+ } else if (diffMinutes > 0) {
3311
+ return `${diffMinutes} minute(s) ago`;
3312
+ } else {
3313
+ return "Just now";
3314
+ }
3315
+ } else {
3316
+ if (timeParts.length > 2) {
3317
+ timeParts = timeParts.slice(0, 2);
3318
+ }
3319
+ const displayString = timeParts.map((part) => `${part.value} ${part.unit}`).join(" ");
3320
+ return displayString ? `Starting in ${displayString}` : "Started";
3321
+ }
3322
+ };
3323
+ const isValidDate = (date) => {
3324
+ return !isNaN(Date.parse(date));
3325
+ };
3326
+ const [timeUntilStart, setTimeUntilStart] = (0, import_react20.useState)(() => {
3327
+ if (props.value && isValidDate(props.value)) {
3328
+ return calculateTimeDifference(props.value);
3329
+ }
3330
+ return "";
3331
+ });
3332
+ (0, import_react20.useEffect)(() => {
3333
+ if (props.value && isValidDate(props.value)) {
3334
+ setTimeUntilStart(calculateTimeDifference(props.value));
3335
+ const initialTimeout = setTimeout(() => {
3336
+ const interval = setInterval(() => {
3337
+ setTimeUntilStart(calculateTimeDifference(props.value));
3338
+ }, 6e4);
3339
+ return () => clearInterval(interval);
3340
+ }, 5e3);
3341
+ return () => clearTimeout(initialTimeout);
3342
+ } else {
3343
+ setTimeUntilStart("");
3344
+ }
3345
+ }, [props.value]);
3346
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { children: timeUntilStart });
3347
+ };
3348
+ var TimeUntilStarts_default = TimeUntilStarts;
3349
+
3350
+ // src/components/controls/view/ViewControl.tsx
3351
+ var import_jsx_runtime30 = require("react/jsx-runtime");
3281
3352
  var ViewControl = (props) => {
3282
3353
  const ControlComponents = {
3283
3354
  [ViewControlTypes_default.lineText]: LineTextView_default,
@@ -3286,7 +3357,7 @@ var ViewControl = (props) => {
3286
3357
  [ViewControlTypes_default.multilineTextBullets]: MultilineTextBulletsView_default,
3287
3358
  [ViewControlTypes_default.boolean]: BooleanView_default,
3288
3359
  [ViewControlTypes_default.checkboxInput]: BooleanView_default,
3289
- // [ViewControlTypes.timeUntilStarts]: TimeUntilStarts,
3360
+ [ViewControlTypes_default.timeUntilStarts]: TimeUntilStarts_default,
3290
3361
  [ViewControlTypes_default.money]: MoneyView_default,
3291
3362
  [ViewControlTypes_default.date]: DateView_default,
3292
3363
  [ViewControlTypes_default.time]: DateView_default,
@@ -3306,12 +3377,12 @@ var ViewControl = (props) => {
3306
3377
  [ViewControlTypes_default.text]: LineTextView_default
3307
3378
  };
3308
3379
  const SelectedControlComponent = props.controlType ? ControlComponents[props.controlType] : void 0;
3309
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react20.default.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
3380
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react21.default.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
3310
3381
  };
3311
3382
  var ViewControl_default = ViewControl;
3312
3383
 
3313
3384
  // src/components/pageRenderingEngine/nodes/DatafieldNode.tsx
3314
- var import_jsx_runtime30 = require("react/jsx-runtime");
3385
+ var import_jsx_runtime31 = require("react/jsx-runtime");
3315
3386
  function getNestedProperty(obj, path) {
3316
3387
  if (!obj || !path) return null;
3317
3388
  if (path.includes(".")) {
@@ -3324,7 +3395,7 @@ function getNestedProperty(obj, path) {
3324
3395
  }
3325
3396
  const value = obj[path];
3326
3397
  if (Array.isArray(value)) {
3327
- return value.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { children: String(item) }, index));
3398
+ return value.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { children: String(item) }, index));
3328
3399
  }
3329
3400
  return value;
3330
3401
  }
@@ -3385,7 +3456,7 @@ var DatafieldNode = (props) => {
3385
3456
  const dataType = props.node.dataType;
3386
3457
  if (isEmptyValue) return null;
3387
3458
  if (dataType === "rawContent") {
3388
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
3459
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
3389
3460
  PageBodyRenderer_default,
3390
3461
  {
3391
3462
  rawBody: String(value ?? `@databound[${fieldName}]`),
@@ -3401,12 +3472,12 @@ var DatafieldNode = (props) => {
3401
3472
  }
3402
3473
  );
3403
3474
  }
3404
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
3475
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
3405
3476
  "span",
3406
3477
  {
3407
3478
  className: `datafield-node ${props.node.format < Formats.length ? Formats[props.node.format] : ""}`,
3408
3479
  style: styles,
3409
- children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
3480
+ children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
3410
3481
  ViewControl_default,
3411
3482
  {
3412
3483
  controlType: dataType,
@@ -3419,7 +3490,7 @@ var DatafieldNode = (props) => {
3419
3490
  var DatafieldNode_default = DatafieldNode;
3420
3491
 
3421
3492
  // src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
3422
- var import_jsx_runtime31 = require("react/jsx-runtime");
3493
+ var import_jsx_runtime32 = require("react/jsx-runtime");
3423
3494
  var ParagraphNode = (props) => {
3424
3495
  const NodeTypes2 = {
3425
3496
  ["text"]: TextNode_default,
@@ -3439,9 +3510,9 @@ var ParagraphNode = (props) => {
3439
3510
  const isInlineOnlyParent = props.parentTag === "summary";
3440
3511
  const hasChildren = props.node.children && props.node.children.length > 0;
3441
3512
  if (isInlineOnlyParent) {
3442
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_jsx_runtime31.Fragment, { children: hasChildren && props.node.children.map((node, index) => {
3513
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_jsx_runtime32.Fragment, { children: hasChildren && props.node.children.map((node, index) => {
3443
3514
  const SelectedNode = NodeTypes2[node.type];
3444
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react21.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
3515
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react22.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
3445
3516
  SelectedNode,
3446
3517
  {
3447
3518
  node,
@@ -3453,10 +3524,10 @@ var ParagraphNode = (props) => {
3453
3524
  ) }, index);
3454
3525
  }) });
3455
3526
  }
3456
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: " " + formatClasses, children: [
3527
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: " " + formatClasses, children: [
3457
3528
  hasChildren && props.node.children.map((node, index) => {
3458
3529
  const SelectedNode = NodeTypes2[node.type];
3459
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react21.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
3530
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react22.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
3460
3531
  SelectedNode,
3461
3532
  {
3462
3533
  node,
@@ -3467,14 +3538,14 @@ var ParagraphNode = (props) => {
3467
3538
  }
3468
3539
  ) }, index);
3469
3540
  }),
3470
- !hasChildren && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "py-1.5 lg:py-2" })
3541
+ !hasChildren && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "py-1.5 lg:py-2" })
3471
3542
  ] });
3472
3543
  };
3473
3544
  var ParagraphNode_default = ParagraphNode;
3474
3545
 
3475
3546
  // src/components/pageRenderingEngine/nodes/HeadingNode.tsx
3476
- var import_react22 = __toESM(require("react"));
3477
- var import_jsx_runtime32 = require("react/jsx-runtime");
3547
+ var import_react23 = __toESM(require("react"));
3548
+ var import_jsx_runtime33 = require("react/jsx-runtime");
3478
3549
  var HeadingNode = (props) => {
3479
3550
  const NodeTypes2 = {
3480
3551
  ["text"]: TextNode_default,
@@ -3490,23 +3561,23 @@ var HeadingNode = (props) => {
3490
3561
  {
3491
3562
  }
3492
3563
  const formatClasses = FormatClass[props.node.format] || "";
3493
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_jsx_runtime32.Fragment, { children: import_react22.default.createElement(
3564
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_jsx_runtime33.Fragment, { children: import_react23.default.createElement(
3494
3565
  HeadingTag,
3495
3566
  { className: formatClasses },
3496
3567
  props.node.children && props.node.children.map((childNode, index) => {
3497
3568
  const SelectedNode = NodeTypes2[childNode.type];
3498
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react22.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(SelectedNode, { node: childNode, dataitem: props.dataitem, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
3569
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react23.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(SelectedNode, { node: childNode, dataitem: props.dataitem, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
3499
3570
  })
3500
3571
  ) });
3501
3572
  };
3502
3573
  var HeadingNode_default = HeadingNode;
3503
3574
 
3504
3575
  // src/components/pageRenderingEngine/nodes/ListNode.tsx
3505
- var import_react24 = __toESM(require("react"));
3576
+ var import_react25 = __toESM(require("react"));
3506
3577
 
3507
3578
  // src/components/pageRenderingEngine/nodes/ListItemNode.tsx
3508
- var import_react23 = __toESM(require("react"));
3509
- var import_jsx_runtime33 = require("react/jsx-runtime");
3579
+ var import_react24 = __toESM(require("react"));
3580
+ var import_jsx_runtime34 = require("react/jsx-runtime");
3510
3581
  var ListItemNode = (props) => {
3511
3582
  const NodeTypes2 = {
3512
3583
  text: TextNode_default,
@@ -3523,66 +3594,66 @@ var ListItemNode = (props) => {
3523
3594
  liStyle.fontSize = match[1].trim();
3524
3595
  }
3525
3596
  }
3526
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("li", { style: liStyle, children: props.node.children && props.node.children.map((node, index) => {
3597
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("li", { style: liStyle, children: props.node.children && props.node.children.map((node, index) => {
3527
3598
  const SelectedNode = NodeTypes2[node.type];
3528
3599
  if (node.type === "linebreak") {
3529
3600
  if (!foundFirstBreak) {
3530
3601
  foundFirstBreak = true;
3531
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", {}, index);
3602
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", {}, index);
3532
3603
  } else {
3533
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "py-1 lg:py-2" }, index);
3604
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "py-1 lg:py-2" }, index);
3534
3605
  }
3535
3606
  } else {
3536
3607
  foundFirstBreak = false;
3537
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react23.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
3608
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_react24.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
3538
3609
  }
3539
3610
  }) });
3540
3611
  };
3541
3612
  var ListItemNode_default = ListItemNode;
3542
3613
 
3543
3614
  // src/components/pageRenderingEngine/nodes/ListNode.tsx
3544
- var import_jsx_runtime34 = require("react/jsx-runtime");
3615
+ var import_jsx_runtime35 = require("react/jsx-runtime");
3545
3616
  var ListNode = (props) => {
3546
3617
  const NodeTypes2 = {
3547
3618
  listitem: ListItemNode_default
3548
3619
  };
3549
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_react24.default.Fragment, { children: [
3550
- props.node.listType == "bullet" && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("ul", { children: props.node.children && props.node.children.map((node, index) => {
3620
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_react25.default.Fragment, { children: [
3621
+ props.node.listType == "bullet" && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("ul", { children: props.node.children && props.node.children.map((node, index) => {
3551
3622
  const SelectedNode = NodeTypes2[node.type];
3552
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_react24.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
3623
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react25.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
3553
3624
  }) }),
3554
- props.node.listType == "number" && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("ol", { children: props.node.children && props.node.children.map((node, index) => {
3625
+ props.node.listType == "number" && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("ol", { children: props.node.children && props.node.children.map((node, index) => {
3555
3626
  const SelectedNode = NodeTypes2[node.type];
3556
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_react24.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
3627
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react25.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
3557
3628
  }) })
3558
3629
  ] });
3559
3630
  };
3560
3631
  var ListNode_default = ListNode;
3561
3632
 
3562
3633
  // src/components/pageRenderingEngine/nodes/QuoteNode.tsx
3563
- var import_react25 = __toESM(require("react"));
3564
- var import_jsx_runtime35 = require("react/jsx-runtime");
3634
+ var import_react26 = __toESM(require("react"));
3635
+ var import_jsx_runtime36 = require("react/jsx-runtime");
3565
3636
  var QuoteNode = (props) => {
3566
3637
  const NodeTypes2 = {
3567
3638
  ["text"]: TextNode_default,
3568
3639
  ["linebreak"]: LineBreakNode_default,
3569
3640
  ["link"]: LinkNode_default
3570
3641
  };
3571
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("blockquote", { children: props.node.children && props.node.children.map((node, index) => {
3642
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("blockquote", { children: props.node.children && props.node.children.map((node, index) => {
3572
3643
  const SelectedNode = NodeTypes2[node.type];
3573
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react25.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(SelectedNode, { node, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
3644
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react26.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(SelectedNode, { node, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
3574
3645
  }) });
3575
3646
  };
3576
3647
  var QuoteNode_default = QuoteNode;
3577
3648
 
3578
3649
  // src/components/pageRenderingEngine/nodes/CodeNode.tsx
3579
- var import_react27 = __toESM(require("react"));
3650
+ var import_react28 = __toESM(require("react"));
3580
3651
  var import_dynamic6 = __toESM(require("next/dynamic"));
3581
- var import_jsx_runtime37 = require("react/jsx-runtime");
3652
+ var import_jsx_runtime38 = require("react/jsx-runtime");
3582
3653
  var CopyButton2 = (0, import_dynamic6.default)(() => Promise.resolve().then(() => (init_CopyButton(), CopyButton_exports)), {
3583
3654
  ssr: false,
3584
3655
  // optional: fallback UI while loading
3585
- loading: () => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "text-gray-400 text-xs", children: "Copy" })
3656
+ loading: () => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "text-gray-400 text-xs", children: "Copy" })
3586
3657
  });
3587
3658
  var CodeNode = (props) => {
3588
3659
  const NodeTypes2 = {
@@ -3596,14 +3667,14 @@ var CodeNode = (props) => {
3596
3667
  if (node.type === "link") return node.text || node.url || "";
3597
3668
  return "";
3598
3669
  }).join("") ?? "";
3599
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { children: [
3600
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "flex items-center relative bg-neutral-strong px-4 py-3 text-xs font-sans justify-between rounded-t-md ", children: [
3601
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { children: "Code Snippet" }),
3602
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(CopyButton2, { text: textContent })
3670
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { children: [
3671
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "flex items-center relative bg-neutral-strong px-4 py-3 text-xs font-sans justify-between rounded-t-md ", children: [
3672
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { children: "Code Snippet" }),
3673
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(CopyButton2, { text: textContent })
3603
3674
  ] }),
3604
- /* @__PURE__ */ (0, import_jsx_runtime37.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) => {
3675
+ /* @__PURE__ */ (0, import_jsx_runtime38.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) => {
3605
3676
  const SelectedNode = NodeTypes2[node.type];
3606
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_react27.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3677
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_react28.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3607
3678
  SelectedNode,
3608
3679
  {
3609
3680
  node,
@@ -3618,15 +3689,15 @@ var CodeNode = (props) => {
3618
3689
  var CodeNode_default = CodeNode;
3619
3690
 
3620
3691
  // src/components/pageRenderingEngine/nodes/HorizontalRuleNode.tsx
3621
- var import_jsx_runtime38 = require("react/jsx-runtime");
3692
+ var import_jsx_runtime39 = require("react/jsx-runtime");
3622
3693
  var HorizontalRuleNode = () => {
3623
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("hr", {});
3694
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("hr", {});
3624
3695
  };
3625
3696
  var HorizontalRuleNode_default = HorizontalRuleNode;
3626
3697
 
3627
3698
  // src/components/pageRenderingEngine/nodes/WidgetNode.tsx
3628
- var import_react28 = __toESM(require("react"));
3629
- var import_jsx_runtime39 = require("react/jsx-runtime");
3699
+ var import_react29 = __toESM(require("react"));
3700
+ var import_jsx_runtime40 = require("react/jsx-runtime");
3630
3701
  var WidgetNode = (props) => {
3631
3702
  const getWidgetParameters = () => {
3632
3703
  const widgetInputParameters = {
@@ -3690,7 +3761,7 @@ var WidgetNode = (props) => {
3690
3761
  };
3691
3762
  const widgetCode = props.node?.widgetCode;
3692
3763
  if (!widgetCode) {
3693
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_jsx_runtime39.Fragment, { children: "Invalid widget" });
3764
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_jsx_runtime40.Fragment, { children: "Invalid widget" });
3694
3765
  }
3695
3766
  const widgetParams = getWidgetParameters();
3696
3767
  const WidgetRenderer = props.widgetRenderer;
@@ -3699,7 +3770,7 @@ var WidgetNode = (props) => {
3699
3770
  }
3700
3771
  return (
3701
3772
  // eslint-disable-next-line react-hooks/static-components
3702
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_react28.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3773
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_react29.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3703
3774
  WidgetRenderer,
3704
3775
  {
3705
3776
  params: widgetParams,
@@ -3717,11 +3788,11 @@ var WidgetNode_default = WidgetNode;
3717
3788
 
3718
3789
  // src/components/pageRenderingEngine/nodes/DivContainer.tsx
3719
3790
  var import_dynamic9 = __toESM(require("next/dynamic"));
3720
- var import_react33 = __toESM(require("react"));
3791
+ var import_react34 = __toESM(require("react"));
3721
3792
 
3722
3793
  // src/components/pageRenderingEngine/nodes/EmbedNode.tsx
3723
3794
  var import_dynamic7 = __toESM(require("next/dynamic"));
3724
- var import_jsx_runtime42 = require("react/jsx-runtime");
3795
+ var import_jsx_runtime43 = require("react/jsx-runtime");
3725
3796
  var IframeClient2 = (0, import_dynamic7.default)(() => Promise.resolve().then(() => (init_IframeClient(), IframeClient_exports)), {
3726
3797
  ssr: false
3727
3798
  });
@@ -3734,7 +3805,7 @@ var EmbedNode = (props) => {
3734
3805
  } else {
3735
3806
  src = props.node.embedSrc;
3736
3807
  }
3737
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "aspect-video", children: src && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(IframeClient2, { src, height: props.node.height, width: props.node.width }) });
3808
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "aspect-video", children: src && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(IframeClient2, { src }) });
3738
3809
  };
3739
3810
  var EmbedNode_default = EmbedNode;
3740
3811
 
@@ -3933,10 +4004,10 @@ var PathUtility = class {
3933
4004
  var PathUtility_default = new PathUtility();
3934
4005
 
3935
4006
  // src/components/NoDataFound.tsx
3936
- var import_jsx_runtime43 = require("react/jsx-runtime");
4007
+ var import_jsx_runtime44 = require("react/jsx-runtime");
3937
4008
  var NoDataFound = () => {
3938
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center bg-neutral-weak", children: [
3939
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "mb-5", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "mx-auto w-20 h-20 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4009
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center bg-neutral-weak", children: [
4010
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "mb-5", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "mx-auto w-20 h-20 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
3940
4011
  "svg",
3941
4012
  {
3942
4013
  className: "w-10 h-10",
@@ -3944,7 +4015,7 @@ var NoDataFound = () => {
3944
4015
  stroke: "currentColor",
3945
4016
  viewBox: "0 0 24 24",
3946
4017
  xmlns: "http://www.w3.org/2000/svg",
3947
- children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4018
+ children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
3948
4019
  "path",
3949
4020
  {
3950
4021
  strokeLinecap: "round",
@@ -3955,15 +4026,15 @@ var NoDataFound = () => {
3955
4026
  )
3956
4027
  }
3957
4028
  ) }) }),
3958
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("h3", { className: "text-lg font-medium mb-2", children: "No data available" }),
3959
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("p", { className: " max-w-sm mb-0", children: "No records found. Data may be empty or not available at the moment." })
4029
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("h3", { className: "text-lg font-medium mb-2", children: "No data available" }),
4030
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("p", { className: " max-w-sm mb-0", children: "No records found. Data may be empty or not available at the moment." })
3960
4031
  ] });
3961
4032
  };
3962
4033
  var NoDataFound_default = NoDataFound;
3963
4034
 
3964
4035
  // src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
3965
4036
  var import_dynamic8 = __toESM(require("next/dynamic"));
3966
- var import_jsx_runtime44 = require("react/jsx-runtime");
4037
+ var import_jsx_runtime45 = require("react/jsx-runtime");
3967
4038
  var HlsPlayer4 = (0, import_dynamic8.default)(() => Promise.resolve().then(() => (init_HlsPlayer(), HlsPlayer_exports)), { ssr: false });
3968
4039
  var deviceToMediaQuery = (device) => {
3969
4040
  switch (device) {
@@ -4119,8 +4190,8 @@ var ImageGalleryNode = (props) => {
4119
4190
  right: "justify-end"
4120
4191
  };
4121
4192
  const formatClasses = FormatClass[props.node.format || ""] || "";
4122
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_jsx_runtime44.Fragment, { children: [
4123
- hlsSources.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_jsx_runtime44.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4193
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_jsx_runtime45.Fragment, { children: [
4194
+ hlsSources.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_jsx_runtime45.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4124
4195
  HlsPlayer4,
4125
4196
  {
4126
4197
  sources: hlsSources,
@@ -4135,7 +4206,7 @@ var ImageGalleryNode = (props) => {
4135
4206
  styles: hlsStyles
4136
4207
  }
4137
4208
  ) }),
4138
- (staticFallback || staticSources.length > 0) && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_jsx_runtime44.Fragment, { children: staticFallback ? /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("picture", { children: [
4209
+ (staticFallback || staticSources.length > 0) && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_jsx_runtime45.Fragment, { children: staticFallback ? /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("picture", { children: [
4139
4210
  DEVICE_ORDER.map((deviceKey) => {
4140
4211
  const match = staticSources.find(
4141
4212
  (img) => img.device === deviceKey
@@ -4151,7 +4222,7 @@ var ImageGalleryNode = (props) => {
4151
4222
  if (!srcUrl) {
4152
4223
  return null;
4153
4224
  }
4154
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4225
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4155
4226
  "source",
4156
4227
  {
4157
4228
  media: deviceToMediaQuery(match.device),
@@ -4176,7 +4247,7 @@ var ImageGalleryNode = (props) => {
4176
4247
  if (img.borderRadius) {
4177
4248
  styles.borderRadius = img.borderRadius;
4178
4249
  }
4179
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4250
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4180
4251
  "img",
4181
4252
  {
4182
4253
  loading: "lazy",
@@ -4191,7 +4262,7 @@ var ImageGalleryNode = (props) => {
4191
4262
  })()
4192
4263
  ] }) : (
4193
4264
  /* Case 2: Only device-specific images exist */
4194
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_jsx_runtime44.Fragment, { children: staticSources.map((img, index) => {
4265
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_jsx_runtime45.Fragment, { children: staticSources.map((img, index) => {
4195
4266
  const resolved = resolveImage(img);
4196
4267
  const imageUrl = resolved?.imageUrl;
4197
4268
  if (!imageUrl) {
@@ -4218,7 +4289,7 @@ var ImageGalleryNode = (props) => {
4218
4289
  default:
4219
4290
  display = "block";
4220
4291
  }
4221
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4292
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4222
4293
  "img",
4223
4294
  {
4224
4295
  loading: "lazy",
@@ -4358,28 +4429,28 @@ var shouldRenderContainer = (node, dataItem, session) => {
4358
4429
  };
4359
4430
 
4360
4431
  // src/components/pageRenderingEngine/nodes/DocumentNode.tsx
4361
- var import_jsx_runtime45 = require("react/jsx-runtime");
4432
+ var import_jsx_runtime46 = require("react/jsx-runtime");
4362
4433
  var getNestedValue5 = (obj, path) => {
4363
4434
  if (!obj || !path) return void 0;
4364
4435
  return path.split(".").reduce((current, key) => {
4365
4436
  return current && current[key] !== void 0 ? current[key] : void 0;
4366
4437
  }, obj);
4367
4438
  };
4368
- var PdfIcon = () => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
4439
+ var PdfIcon = () => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
4369
4440
  "svg",
4370
4441
  {
4371
4442
  xmlns: "http://www.w3.org/2000/svg",
4372
4443
  viewBox: "0 0 48 48",
4373
4444
  className: "w-10 h-10",
4374
4445
  children: [
4375
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4446
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4376
4447
  "path",
4377
4448
  {
4378
4449
  fill: "#e53935",
4379
4450
  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"
4380
4451
  }
4381
4452
  ),
4382
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4453
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4383
4454
  "path",
4384
4455
  {
4385
4456
  fill: "#fff",
@@ -4389,55 +4460,55 @@ var PdfIcon = () => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
4389
4460
  ]
4390
4461
  }
4391
4462
  );
4392
- var ExcelIcon = () => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
4463
+ var ExcelIcon = () => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
4393
4464
  "svg",
4394
4465
  {
4395
4466
  xmlns: "http://www.w3.org/2000/svg",
4396
4467
  viewBox: "0 0 48 48",
4397
4468
  className: "w-10 h-10",
4398
4469
  children: [
4399
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4470
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4400
4471
  "path",
4401
4472
  {
4402
4473
  fill: "#169154",
4403
4474
  d: "M29,6H15.744C14.781,6,14,6.781,14,7.744v7.259h15V6z"
4404
4475
  }
4405
4476
  ),
4406
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4477
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4407
4478
  "path",
4408
4479
  {
4409
4480
  fill: "#18482a",
4410
4481
  d: "M14,33.054v7.202C14,41.219,14.781,42,15.743,42H29v-8.946H14z"
4411
4482
  }
4412
4483
  ),
4413
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("path", { fill: "#0c8045", d: "M14 15.003H29V24.005000000000003H14z" }),
4414
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("path", { fill: "#17472a", d: "M14 24.005H29V33.055H14z" }),
4415
- /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("g", { children: [
4416
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4484
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("path", { fill: "#0c8045", d: "M14 15.003H29V24.005000000000003H14z" }),
4485
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("path", { fill: "#17472a", d: "M14 24.005H29V33.055H14z" }),
4486
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("g", { children: [
4487
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4417
4488
  "path",
4418
4489
  {
4419
4490
  fill: "#29c27f",
4420
4491
  d: "M42.256,6H29v9.003h15V7.744C44,6.781,43.219,6,42.256,6z"
4421
4492
  }
4422
4493
  ),
4423
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4494
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4424
4495
  "path",
4425
4496
  {
4426
4497
  fill: "#27663f",
4427
4498
  d: "M29,33.054V42h13.257C43.219,42,44,41.219,44,40.257v-7.202H29z"
4428
4499
  }
4429
4500
  ),
4430
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("path", { fill: "#19ac65", d: "M29 15.003H44V24.005000000000003H29z" }),
4431
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("path", { fill: "#129652", d: "M29 24.005H44V33.055H29z" })
4501
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("path", { fill: "#19ac65", d: "M29 15.003H44V24.005000000000003H29z" }),
4502
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("path", { fill: "#129652", d: "M29 24.005H44V33.055H29z" })
4432
4503
  ] }),
4433
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4504
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4434
4505
  "path",
4435
4506
  {
4436
4507
  fill: "#0c7238",
4437
4508
  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"
4438
4509
  }
4439
4510
  ),
4440
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4511
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4441
4512
  "path",
4442
4513
  {
4443
4514
  fill: "#fff",
@@ -4447,7 +4518,7 @@ var ExcelIcon = () => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
4447
4518
  ]
4448
4519
  }
4449
4520
  );
4450
- var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
4521
+ var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
4451
4522
  "svg",
4452
4523
  {
4453
4524
  xmlns: "http://www.w3.org/2000/svg",
@@ -4455,14 +4526,14 @@ var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
4455
4526
  className: "w-10 h-10",
4456
4527
  baseProfile: "basic",
4457
4528
  children: [
4458
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4529
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4459
4530
  "path",
4460
4531
  {
4461
4532
  fill: "#283593",
4462
4533
  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"
4463
4534
  }
4464
4535
  ),
4465
- /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
4536
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
4466
4537
  "linearGradient",
4467
4538
  {
4468
4539
  id: "qh2LT5tehRDFkLLfb-odWa",
@@ -4473,19 +4544,19 @@ var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
4473
4544
  gradientTransform: "translate(0 -339.89)",
4474
4545
  gradientUnits: "userSpaceOnUse",
4475
4546
  children: [
4476
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("stop", { offset: "0", "stop-color": "#66c0ff" }),
4477
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("stop", { offset: ".26", "stop-color": "#0094f0" })
4547
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("stop", { offset: "0", "stop-color": "#66c0ff" }),
4548
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("stop", { offset: ".26", "stop-color": "#0094f0" })
4478
4549
  ]
4479
4550
  }
4480
4551
  ),
4481
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4552
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4482
4553
  "path",
4483
4554
  {
4484
4555
  fill: "url(#qh2LT5tehRDFkLLfb-odWa)",
4485
4556
  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"
4486
4557
  }
4487
4558
  ),
4488
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4559
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4489
4560
  "path",
4490
4561
  {
4491
4562
  fill: "#1e88e5",
@@ -4493,21 +4564,21 @@ var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
4493
4564
  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"
4494
4565
  }
4495
4566
  ),
4496
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4567
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4497
4568
  "path",
4498
4569
  {
4499
4570
  fill: "#00e5ff",
4500
4571
  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"
4501
4572
  }
4502
4573
  ),
4503
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4574
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4504
4575
  "path",
4505
4576
  {
4506
4577
  fill: "#1565c0",
4507
4578
  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"
4508
4579
  }
4509
4580
  ),
4510
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4581
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4511
4582
  "path",
4512
4583
  {
4513
4584
  fill: "#fff",
@@ -4517,42 +4588,42 @@ var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
4517
4588
  ]
4518
4589
  }
4519
4590
  );
4520
- var StandardIcon = () => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
4591
+ var StandardIcon = () => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
4521
4592
  "svg",
4522
4593
  {
4523
4594
  xmlns: "http://www.w3.org/2000/svg",
4524
4595
  viewBox: "0 0 48 48",
4525
4596
  className: "w-10 h-10",
4526
4597
  children: [
4527
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
4528
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" })
4598
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
4599
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" })
4529
4600
  ]
4530
4601
  }
4531
4602
  );
4532
- var PowerPointIcon = () => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
4603
+ var PowerPointIcon = () => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
4533
4604
  "svg",
4534
4605
  {
4535
4606
  xmlns: "http://www.w3.org/2000/svg",
4536
4607
  viewBox: "0 0 48 48",
4537
4608
  className: "w-10 h-10",
4538
4609
  children: [
4539
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4610
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4540
4611
  "path",
4541
4612
  {
4542
4613
  fill: "#dc4c2c",
4543
4614
  d: "M8,24c0,9.941,8.059,18,18,18s18-8.059,18-18H26H8z"
4544
4615
  }
4545
4616
  ),
4546
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("path", { fill: "#f7a278", d: "M26,6v18h18C44,14.059,35.941,6,26,6z" }),
4547
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("path", { fill: "#c06346", d: "M26,6C16.059,6,8,14.059,8,24h18V6z" }),
4548
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4617
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("path", { fill: "#f7a278", d: "M26,6v18h18C44,14.059,35.941,6,26,6z" }),
4618
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("path", { fill: "#c06346", d: "M26,6C16.059,6,8,14.059,8,24h18V6z" }),
4619
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4549
4620
  "path",
4550
4621
  {
4551
4622
  fill: "#9b341f",
4552
4623
  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"
4553
4624
  }
4554
4625
  ),
4555
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4626
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4556
4627
  "path",
4557
4628
  {
4558
4629
  fill: "#fff",
@@ -4562,16 +4633,16 @@ var PowerPointIcon = () => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
4562
4633
  ]
4563
4634
  }
4564
4635
  );
4565
- var TextIcon = () => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
4636
+ var TextIcon = () => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
4566
4637
  "svg",
4567
4638
  {
4568
4639
  xmlns: "http://www.w3.org/2000/svg",
4569
4640
  viewBox: "0 0 48 48",
4570
4641
  className: "w-10 h-10",
4571
4642
  children: [
4572
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
4573
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" }),
4574
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4643
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
4644
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" }),
4645
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4575
4646
  "path",
4576
4647
  {
4577
4648
  fill: "#1976D2",
@@ -4581,7 +4652,7 @@ var TextIcon = () => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
4581
4652
  ]
4582
4653
  }
4583
4654
  );
4584
- var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
4655
+ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
4585
4656
  "svg",
4586
4657
  {
4587
4658
  xmlns: "http://www.w3.org/2000/svg",
@@ -4591,14 +4662,14 @@ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
4591
4662
  version: "1.0",
4592
4663
  className: "w-10 h-10",
4593
4664
  children: [
4594
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("clipPath", { id: "273d29c8a6", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4665
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("clipPath", { id: "273d29c8a6", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4595
4666
  "path",
4596
4667
  {
4597
4668
  d: "M 8.90625 0 L 65.90625 0 L 65.90625 75 L 8.90625 75 Z M 8.90625 0 ",
4598
4669
  "clip-rule": "nonzero"
4599
4670
  }
4600
4671
  ) }) }),
4601
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("g", { "clip-path": "url(#273d29c8a6)", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4672
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("g", { "clip-path": "url(#273d29c8a6)", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4602
4673
  "path",
4603
4674
  {
4604
4675
  fill: "#ff9100",
@@ -4607,7 +4678,7 @@ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
4607
4678
  "fill-rule": "nonzero"
4608
4679
  }
4609
4680
  ) }),
4610
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4681
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4611
4682
  "path",
4612
4683
  {
4613
4684
  fill: "#fbe9e7",
@@ -4616,7 +4687,7 @@ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
4616
4687
  "fill-rule": "nonzero"
4617
4688
  }
4618
4689
  ),
4619
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4690
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4620
4691
  "path",
4621
4692
  {
4622
4693
  fill: "#ffe0b2",
@@ -4625,7 +4696,7 @@ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
4625
4696
  "fill-rule": "nonzero"
4626
4697
  }
4627
4698
  ),
4628
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4699
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4629
4700
  "path",
4630
4701
  {
4631
4702
  fill: "#ffe0b2",
@@ -4634,7 +4705,7 @@ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
4634
4705
  "fill-rule": "nonzero"
4635
4706
  }
4636
4707
  ),
4637
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4708
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4638
4709
  "path",
4639
4710
  {
4640
4711
  fill: "#ffe0b2",
@@ -4710,8 +4781,8 @@ var DocumentNode = (props) => {
4710
4781
  }
4711
4782
  }
4712
4783
  if (documents.length === 0) {
4713
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_jsx_runtime45.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "py-4 px-2 bg-neutral-weak border rounded text-center flex flex-col gap-2", children: [
4714
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "mx-auto w-10 h-10 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4784
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_jsx_runtime46.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "py-4 px-2 bg-neutral-weak border rounded text-center flex flex-col gap-2", children: [
4785
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "mx-auto w-10 h-10 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4715
4786
  "svg",
4716
4787
  {
4717
4788
  className: "w-5 h-5",
@@ -4719,7 +4790,7 @@ var DocumentNode = (props) => {
4719
4790
  stroke: "currentColor",
4720
4791
  viewBox: "0 0 24 24",
4721
4792
  xmlns: "http://www.w3.org/2000/svg",
4722
- children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4793
+ children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4723
4794
  "path",
4724
4795
  {
4725
4796
  strokeLinecap: "round",
@@ -4730,11 +4801,11 @@ var DocumentNode = (props) => {
4730
4801
  )
4731
4802
  }
4732
4803
  ) }),
4733
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "text-sm font-medium", children: "No documents found" }),
4734
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "text-xs", children: "No records found. Data may be empty or not available at the moment." })
4804
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "text-sm font-medium", children: "No documents found" }),
4805
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "text-xs", children: "No records found. Data may be empty or not available at the moment." })
4735
4806
  ] }) });
4736
4807
  }
4737
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "", children: documents.map((doc, index) => {
4808
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "", children: documents.map((doc, index) => {
4738
4809
  const documentUrl = AssetUtility_default.resolveUrl(
4739
4810
  props.assetBaseUrl,
4740
4811
  doc.assetUrl
@@ -4752,16 +4823,16 @@ var DocumentNode = (props) => {
4752
4823
  }
4753
4824
  }
4754
4825
  const { Icon: Icon2, extLabel } = getFileDetails(documentUrl);
4755
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
4826
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
4756
4827
  "div",
4757
4828
  {
4758
4829
  className: `flex items-center justify-between py-4 bg-default gap-4 ${index !== 0 ? "border-t" : ""}`,
4759
4830
  children: [
4760
- /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex items-center space-x-4", children: [
4761
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "flex items-center justify-center p-2 rounded bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Icon2, {}) }),
4762
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "flex items-baseline space-x-2", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("h4", { className: "text-base font-semibold", children: documentTitle }) })
4831
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "flex items-center space-x-4", children: [
4832
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "flex items-center justify-center p-2 rounded bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Icon2, {}) }),
4833
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "flex items-baseline space-x-2", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("h4", { className: "text-base font-semibold", children: documentTitle }) })
4763
4834
  ] }),
4764
- /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
4835
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
4765
4836
  "a",
4766
4837
  {
4767
4838
  href: documentUrl,
@@ -4769,7 +4840,7 @@ var DocumentNode = (props) => {
4769
4840
  rel: "noopener noreferrer",
4770
4841
  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",
4771
4842
  children: [
4772
- /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
4843
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
4773
4844
  "svg",
4774
4845
  {
4775
4846
  className: "w-4 h-4 mr-2",
@@ -4777,7 +4848,7 @@ var DocumentNode = (props) => {
4777
4848
  stroke: "currentColor",
4778
4849
  viewBox: "0 0 24 24",
4779
4850
  children: [
4780
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4851
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4781
4852
  "path",
4782
4853
  {
4783
4854
  strokeLinecap: "round",
@@ -4786,7 +4857,7 @@ var DocumentNode = (props) => {
4786
4857
  d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"
4787
4858
  }
4788
4859
  ),
4789
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4860
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4790
4861
  "path",
4791
4862
  {
4792
4863
  strokeLinecap: "round",
@@ -4811,7 +4882,7 @@ var DocumentNode = (props) => {
4811
4882
  var DocumentNode_default = DocumentNode;
4812
4883
 
4813
4884
  // src/components/pageRenderingEngine/nodes/DivContainer.tsx
4814
- var import_jsx_runtime53 = require("react/jsx-runtime");
4885
+ var import_jsx_runtime54 = require("react/jsx-runtime");
4815
4886
  var Pagination2 = (0, import_dynamic9.default)(() => Promise.resolve().then(() => (init_Pagination(), Pagination_exports)), { ssr: true });
4816
4887
  var Slider2 = (0, import_dynamic9.default)(() => Promise.resolve().then(() => (init_Slider(), Slider_exports)), {
4817
4888
  ssr: false
@@ -5066,7 +5137,7 @@ var DivContainer = async (props) => {
5066
5137
  response = await serviceClient.get(endpoint);
5067
5138
  result = response?.result;
5068
5139
  if (dataBindingProperties.showNoResultsMessage && (result === void 0 || result.length == 0)) {
5069
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(NoDataFound_default, {});
5140
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(NoDataFound_default, {});
5070
5141
  }
5071
5142
  if (dataBindingProperties.childCollectionName && props.dataitem) {
5072
5143
  childCollectionData = getNestedValue6(
@@ -5086,7 +5157,7 @@ var DivContainer = async (props) => {
5086
5157
  }
5087
5158
  const SelectedNode = NodeTypes2[node.type];
5088
5159
  if (!SelectedNode) return null;
5089
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react33.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
5160
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_react34.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5090
5161
  SelectedNode,
5091
5162
  {
5092
5163
  node,
@@ -5219,14 +5290,14 @@ var DivContainer = async (props) => {
5219
5290
  noLinkColor && "no-link-color",
5220
5291
  !!props.node.enterAnimation && "enter-animation"
5221
5292
  ].filter(Boolean).join(" ");
5222
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_react33.default.Fragment, { children: [
5223
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
5293
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_react34.default.Fragment, { children: [
5294
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5224
5295
  "style",
5225
5296
  {
5226
5297
  dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS }
5227
5298
  }
5228
5299
  ),
5229
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
5300
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5230
5301
  Wrapper,
5231
5302
  {
5232
5303
  id: guid,
@@ -5240,11 +5311,11 @@ var DivContainer = async (props) => {
5240
5311
  item,
5241
5312
  idx,
5242
5313
  props.href ? void 0 : item?.links?.view
5243
- )?.map((child, i) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react33.default.Fragment, { children: child }, i)) : renderChildren(props.node.children, props, item, idx)
5314
+ )?.map((child, i) => /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_react34.default.Fragment, { children: child }, i)) : renderChildren(props.node.children, props, item, idx)
5244
5315
  )
5245
5316
  }
5246
5317
  ),
5247
- dataBindingProperties && props.node.dataBinding.enablePagination && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
5318
+ dataBindingProperties && props.node.dataBinding.enablePagination && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5248
5319
  Pagination2,
5249
5320
  {
5250
5321
  path: props.path,
@@ -5257,7 +5328,7 @@ var DivContainer = async (props) => {
5257
5328
  var DivContainer_default = DivContainer;
5258
5329
 
5259
5330
  // src/components/pageRenderingEngine/PageBodyRenderer.tsx
5260
- var import_jsx_runtime54 = require("react/jsx-runtime");
5331
+ var import_jsx_runtime55 = require("react/jsx-runtime");
5261
5332
  var NodeTypes = {
5262
5333
  ["paragraph"]: ParagraphNode_default,
5263
5334
  ["heading"]: HeadingNode_default,
@@ -5294,14 +5365,14 @@ var PageBodyRenderer = (props) => {
5294
5365
  }
5295
5366
  return true;
5296
5367
  };
5297
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_react34.default.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
5368
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_react35.default.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
5298
5369
  {
5299
5370
  }
5300
5371
  const SelectedNode = NodeTypes[node.type];
5301
5372
  if (!shouldRenderNode(node)) {
5302
5373
  return null;
5303
5374
  }
5304
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_react34.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_react34.default.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_react34.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5375
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_react35.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_react35.default.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_react35.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
5305
5376
  SelectedNode,
5306
5377
  {
5307
5378
  node,
@@ -5317,7 +5388,7 @@ var PageBodyRenderer = (props) => {
5317
5388
  device: props.device,
5318
5389
  widgetRenderer: props.widgetRenderer
5319
5390
  }
5320
- ) }) : /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_react34.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5391
+ ) }) : /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_react35.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
5321
5392
  SelectedNode,
5322
5393
  {
5323
5394
  node,