@clyrex-digital/clyrex-controls-dev 0.8.1-dev.20260824114331 → 0.8.1-dev.20260825114921

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
@@ -1589,15 +1589,15 @@ var DateTimeViewClient_exports = {};
1589
1589
  __export(DateTimeViewClient_exports, {
1590
1590
  default: () => DateTimeViewClient_default
1591
1591
  });
1592
- var import_jsx_runtime28, DateTimeViewClient, DateTimeViewClient_default;
1592
+ var import_jsx_runtime29, DateTimeViewClient, DateTimeViewClient_default;
1593
1593
  var init_DateTimeViewClient = __esm({
1594
1594
  "src/components/controls/view/DateTimeViewClient.tsx"() {
1595
1595
  "use strict";
1596
1596
  "use client";
1597
1597
  init_DateViewClient();
1598
- import_jsx_runtime28 = require("react/jsx-runtime");
1598
+ import_jsx_runtime29 = require("react/jsx-runtime");
1599
1599
  DateTimeViewClient = (props) => {
1600
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(DateViewClient_default, { ...props, controlType: "datetime" });
1600
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(DateViewClient_default, { ...props, controlType: "datetime" });
1601
1601
  };
1602
1602
  DateTimeViewClient_default = DateTimeViewClient;
1603
1603
  }
@@ -1608,13 +1608,13 @@ var TimeUntilStartsClient_exports = {};
1608
1608
  __export(TimeUntilStartsClient_exports, {
1609
1609
  default: () => TimeUntilStartsClient_default
1610
1610
  });
1611
- var import_react20, import_jsx_runtime29, TimeUntilStartsClient, TimeUntilStartsClient_default;
1611
+ var import_react21, import_jsx_runtime30, TimeUntilStartsClient, TimeUntilStartsClient_default;
1612
1612
  var init_TimeUntilStartsClient = __esm({
1613
1613
  "src/components/controls/view/TimeUntilStartsClient.tsx"() {
1614
1614
  "use strict";
1615
1615
  "use client";
1616
- import_react20 = require("react");
1617
- import_jsx_runtime29 = require("react/jsx-runtime");
1616
+ import_react21 = require("react");
1617
+ import_jsx_runtime30 = require("react/jsx-runtime");
1618
1618
  TimeUntilStartsClient = (props) => {
1619
1619
  const calculateTimeDifference = (startDate) => {
1620
1620
  const now = /* @__PURE__ */ new Date();
@@ -1660,13 +1660,13 @@ var init_TimeUntilStartsClient = __esm({
1660
1660
  const isValidDate = (date) => {
1661
1661
  return !isNaN(Date.parse(date));
1662
1662
  };
1663
- const [timeUntilStart, setTimeUntilStart] = (0, import_react20.useState)(() => {
1663
+ const [timeUntilStart, setTimeUntilStart] = (0, import_react21.useState)(() => {
1664
1664
  if (props.value && isValidDate(props.value)) {
1665
1665
  return calculateTimeDifference(props.value);
1666
1666
  }
1667
1667
  return "";
1668
1668
  });
1669
- (0, import_react20.useEffect)(() => {
1669
+ (0, import_react21.useEffect)(() => {
1670
1670
  if (props.value && isValidDate(props.value)) {
1671
1671
  setTimeUntilStart(calculateTimeDifference(props.value));
1672
1672
  const initialTimeout = setTimeout(() => {
@@ -1680,7 +1680,7 @@ var init_TimeUntilStartsClient = __esm({
1680
1680
  setTimeUntilStart("");
1681
1681
  }
1682
1682
  }, [props.value]);
1683
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { children: timeUntilStart });
1683
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { children: timeUntilStart });
1684
1684
  };
1685
1685
  TimeUntilStartsClient_default = TimeUntilStartsClient;
1686
1686
  }
@@ -1692,9 +1692,9 @@ __export(CopyButton_exports, {
1692
1692
  default: () => CopyButton
1693
1693
  });
1694
1694
  function CopyButton({ text }) {
1695
- const [copied, setCopied] = (0, import_react27.useState)(false);
1696
- const timeoutRef = (0, import_react27.useRef)(null);
1697
- (0, import_react27.useEffect)(() => {
1695
+ const [copied, setCopied] = (0, import_react28.useState)(false);
1696
+ const timeoutRef = (0, import_react28.useRef)(null);
1697
+ (0, import_react28.useEffect)(() => {
1698
1698
  return () => {
1699
1699
  if (timeoutRef.current) clearTimeout(timeoutRef.current);
1700
1700
  };
@@ -1709,13 +1709,13 @@ function CopyButton({ text }) {
1709
1709
  console.error("Failed to copy: ", err);
1710
1710
  }
1711
1711
  };
1712
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
1712
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
1713
1713
  "button",
1714
1714
  {
1715
1715
  onClick: handleCopy,
1716
1716
  className: "flex gap-1 items-center hover:text-white transition",
1717
1717
  children: [
1718
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
1718
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
1719
1719
  "svg",
1720
1720
  {
1721
1721
  width: "16",
@@ -1723,7 +1723,7 @@ function CopyButton({ text }) {
1723
1723
  viewBox: "0 0 24 24",
1724
1724
  className: "w-4 h-4",
1725
1725
  fill: "currentColor",
1726
- children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
1726
+ children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
1727
1727
  "path",
1728
1728
  {
1729
1729
  fillRule: "evenodd",
@@ -1738,54 +1738,54 @@ function CopyButton({ text }) {
1738
1738
  }
1739
1739
  );
1740
1740
  }
1741
- var import_react27, import_jsx_runtime37;
1741
+ var import_react28, import_jsx_runtime38;
1742
1742
  var init_CopyButton = __esm({
1743
1743
  "src/components/CopyButton.tsx"() {
1744
1744
  "use strict";
1745
1745
  "use client";
1746
- import_react27 = require("react");
1747
- import_jsx_runtime37 = require("react/jsx-runtime");
1746
+ import_react28 = require("react");
1747
+ import_jsx_runtime38 = require("react/jsx-runtime");
1748
1748
  }
1749
1749
  });
1750
1750
 
1751
1751
  // src/components/IFrameLoaderView.tsx
1752
- var import_react30, import_jsx_runtime41, IFrameLoaderView, IFrameLoaderView_default;
1752
+ var import_react31, import_jsx_runtime42, IFrameLoaderView, IFrameLoaderView_default;
1753
1753
  var init_IFrameLoaderView = __esm({
1754
1754
  "src/components/IFrameLoaderView.tsx"() {
1755
1755
  "use strict";
1756
- import_react30 = __toESM(require("react"));
1757
- import_jsx_runtime41 = require("react/jsx-runtime");
1756
+ import_react31 = __toESM(require("react"));
1757
+ import_jsx_runtime42 = require("react/jsx-runtime");
1758
1758
  IFrameLoaderView = (props) => {
1759
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(import_react30.default.Fragment, { children: [
1760
- 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: [
1761
- /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "flex items-center mb-4", children: [
1762
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
1763
- /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "ml-2", children: [
1764
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
1765
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
1759
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_react31.default.Fragment, { children: [
1760
+ props.isDataFound == null && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "mt-4 bg-gray-200 rounded-md p-4 animate-pulse", children: [
1761
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "flex items-center mb-4", children: [
1762
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
1763
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "ml-2", children: [
1764
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
1765
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
1766
1766
  ] })
1767
1767
  ] }),
1768
- /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
1769
- /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "animate-pulse", children: [
1770
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
1771
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
1772
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
1773
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
1774
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
1768
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
1769
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "animate-pulse", children: [
1770
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
1771
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
1772
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
1773
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
1774
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
1775
1775
  ] }),
1776
- /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "animate-pulse", children: [
1777
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
1778
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
1779
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
1780
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
1781
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
1776
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "animate-pulse", children: [
1777
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
1778
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
1779
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
1780
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
1781
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
1782
1782
  ] }),
1783
- /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "animate-pulse", children: [
1784
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
1785
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
1786
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
1787
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
1788
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
1783
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "animate-pulse", children: [
1784
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
1785
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
1786
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
1787
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
1788
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
1789
1789
  ] })
1790
1790
  ] })
1791
1791
  ] }) }),
@@ -1801,23 +1801,23 @@ var IframeClient_exports = {};
1801
1801
  __export(IframeClient_exports, {
1802
1802
  default: () => IframeClient_default
1803
1803
  });
1804
- var import_react31, import_jsx_runtime42, IframeClient, IframeClient_default;
1804
+ var import_react32, import_jsx_runtime43, IframeClient, IframeClient_default;
1805
1805
  var init_IframeClient = __esm({
1806
1806
  "src/components/pageRenderingEngine/nodes/IframeClient.tsx"() {
1807
1807
  "use strict";
1808
1808
  "use client";
1809
- import_react31 = __toESM(require("react"));
1809
+ import_react32 = __toESM(require("react"));
1810
1810
  init_IFrameLoaderView();
1811
- import_jsx_runtime42 = require("react/jsx-runtime");
1811
+ import_jsx_runtime43 = require("react/jsx-runtime");
1812
1812
  IframeClient = ({
1813
1813
  src,
1814
1814
  width,
1815
1815
  height
1816
1816
  }) => {
1817
- const iframeRef = (0, import_react31.useRef)(null);
1818
- const [iframeHeight, setIframeHeight] = (0, import_react31.useState)("100%");
1819
- const [isDataFound, setIsDataFound] = (0, import_react31.useState)(null);
1820
- (0, import_react31.useEffect)(() => {
1817
+ const iframeRef = (0, import_react32.useRef)(null);
1818
+ const [iframeHeight, setIframeHeight] = (0, import_react32.useState)("100%");
1819
+ const [isDataFound, setIsDataFound] = (0, import_react32.useState)(null);
1820
+ (0, import_react32.useEffect)(() => {
1821
1821
  const handleReceiveMessage = (event) => {
1822
1822
  const eventName = event?.data?.eventName;
1823
1823
  const payload = event?.data?.payload;
@@ -1832,7 +1832,7 @@ var init_IframeClient = __esm({
1832
1832
  window.addEventListener("message", handleReceiveMessage);
1833
1833
  return () => window.removeEventListener("message", handleReceiveMessage);
1834
1834
  }, []);
1835
- (0, import_react31.useEffect)(() => {
1835
+ (0, import_react32.useEffect)(() => {
1836
1836
  const handleResize = () => {
1837
1837
  if (iframeRef.current) {
1838
1838
  iframeRef.current.contentWindow?.postMessage(
@@ -1847,7 +1847,7 @@ var init_IframeClient = __esm({
1847
1847
  const handleIframeLoad = () => {
1848
1848
  setIsDataFound(true);
1849
1849
  };
1850
- 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)(
1850
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react32.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(IFrameLoaderView_default, { isDataFound, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
1851
1851
  "iframe",
1852
1852
  {
1853
1853
  ref: iframeRef,
@@ -2140,52 +2140,52 @@ var init_OdataBuilder = __esm({
2140
2140
  });
2141
2141
 
2142
2142
  // src/svg/chevron-updown.tsx
2143
- var import_jsx_runtime48, ChevronUpDown, chevron_updown_default;
2143
+ var import_jsx_runtime49, ChevronUpDown, chevron_updown_default;
2144
2144
  var init_chevron_updown = __esm({
2145
2145
  "src/svg/chevron-updown.tsx"() {
2146
2146
  "use strict";
2147
- import_jsx_runtime48 = require("react/jsx-runtime");
2147
+ import_jsx_runtime49 = require("react/jsx-runtime");
2148
2148
  ChevronUpDown = (props) => {
2149
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: props.className, children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9" }) });
2149
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: props.className, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9" }) });
2150
2150
  };
2151
2151
  chevron_updown_default = ChevronUpDown;
2152
2152
  }
2153
2153
  });
2154
2154
 
2155
2155
  // src/svg/chevron-down.tsx
2156
- var import_jsx_runtime49, ChevronDown, chevron_down_default;
2156
+ var import_jsx_runtime50, ChevronDown, chevron_down_default;
2157
2157
  var init_chevron_down = __esm({
2158
2158
  "src/svg/chevron-down.tsx"() {
2159
2159
  "use strict";
2160
- import_jsx_runtime49 = require("react/jsx-runtime");
2160
+ import_jsx_runtime50 = require("react/jsx-runtime");
2161
2161
  ChevronDown = (props) => {
2162
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: props.className, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M19.5 8.25l-7.5 7.5-7.5-7.5" }) });
2162
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: props.className, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M19.5 8.25l-7.5 7.5-7.5-7.5" }) });
2163
2163
  };
2164
2164
  chevron_down_default = ChevronDown;
2165
2165
  }
2166
2166
  });
2167
2167
 
2168
2168
  // src/svg/chevron-up.tsx
2169
- var import_jsx_runtime50, ChevronUp, chevron_up_default;
2169
+ var import_jsx_runtime51, ChevronUp, chevron_up_default;
2170
2170
  var init_chevron_up = __esm({
2171
2171
  "src/svg/chevron-up.tsx"() {
2172
2172
  "use strict";
2173
- import_jsx_runtime50 = require("react/jsx-runtime");
2173
+ import_jsx_runtime51 = require("react/jsx-runtime");
2174
2174
  ChevronUp = (props) => {
2175
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: props.className, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M4.5 15.75l7.5-7.5 7.5 7.5" }) });
2175
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: props.className, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M4.5 15.75l7.5-7.5 7.5 7.5" }) });
2176
2176
  };
2177
2177
  chevron_up_default = ChevronUp;
2178
2178
  }
2179
2179
  });
2180
2180
 
2181
2181
  // src/svg/plus.tsx
2182
- var import_jsx_runtime51, Plus, plus_default;
2182
+ var import_jsx_runtime52, Plus, plus_default;
2183
2183
  var init_plus = __esm({
2184
2184
  "src/svg/plus.tsx"() {
2185
2185
  "use strict";
2186
- import_jsx_runtime51 = require("react/jsx-runtime");
2186
+ import_jsx_runtime52 = require("react/jsx-runtime");
2187
2187
  Plus = (props) => {
2188
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: props.className, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M12 4.5v15m7.5-7.5h-15" }) });
2188
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: props.className, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M12 4.5v15m7.5-7.5h-15" }) });
2189
2189
  };
2190
2190
  plus_default = Plus;
2191
2191
  }
@@ -2211,19 +2211,19 @@ var init_Icons = __esm({
2211
2211
  });
2212
2212
 
2213
2213
  // src/svg/Icon.tsx
2214
- var import_jsx_runtime52, Icon, Icon_default;
2214
+ var import_jsx_runtime53, Icon, Icon_default;
2215
2215
  var init_Icon = __esm({
2216
2216
  "src/svg/Icon.tsx"() {
2217
2217
  "use strict";
2218
2218
  init_Icons();
2219
- import_jsx_runtime52 = require("react/jsx-runtime");
2219
+ import_jsx_runtime53 = require("react/jsx-runtime");
2220
2220
  Icon = ({ name, className, ...props }) => {
2221
2221
  const IconComponent = Icons_default[name];
2222
2222
  if (!IconComponent) {
2223
2223
  console.error(`Icon "${name}" not found.`);
2224
2224
  return null;
2225
2225
  }
2226
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(IconComponent, { ...props, className });
2226
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(IconComponent, { ...props, className });
2227
2227
  };
2228
2228
  Icon_default = Icon;
2229
2229
  }
@@ -2234,21 +2234,21 @@ var Pagination_exports = {};
2234
2234
  __export(Pagination_exports, {
2235
2235
  default: () => Pagination_default
2236
2236
  });
2237
- var import_react32, import_jsx_runtime53, Pagination, Pagination_default;
2237
+ var import_react33, import_jsx_runtime54, Pagination, Pagination_default;
2238
2238
  var init_Pagination = __esm({
2239
2239
  "src/components/Pagination.tsx"() {
2240
2240
  "use strict";
2241
2241
  "use client";
2242
- import_react32 = require("react");
2242
+ import_react33 = require("react");
2243
2243
  init_OdataBuilder();
2244
2244
  init_Icon();
2245
2245
  init_StyleTypes();
2246
2246
  init_InputControlType();
2247
2247
  init_Hyperlink();
2248
- import_jsx_runtime53 = require("react/jsx-runtime");
2248
+ import_jsx_runtime54 = require("react/jsx-runtime");
2249
2249
  Pagination = (props) => {
2250
2250
  const { dataset, path, query, showPageSizeSelector = false, showJumpToPage = false } = props;
2251
- const builder = (0, import_react32.useMemo)(() => {
2251
+ const builder = (0, import_react33.useMemo)(() => {
2252
2252
  const b = new OdataBuilder(path);
2253
2253
  if (query) b.setQuery(query);
2254
2254
  return b;
@@ -2289,7 +2289,7 @@ var init_Pagination = __esm({
2289
2289
  return range;
2290
2290
  };
2291
2291
  const paginationRange = getPaginationRange();
2292
- const PageButton = ({ page, children }) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
2292
+ const PageButton = ({ page, children }) => /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
2293
2293
  Hyperlink,
2294
2294
  {
2295
2295
  linkType: "Link" /* Link */,
@@ -2304,9 +2304,9 @@ var init_Pagination = __esm({
2304
2304
  );
2305
2305
  const NavigationButton = ({ page, disabled, children }) => {
2306
2306
  if (disabled) {
2307
- return /* @__PURE__ */ (0, import_jsx_runtime53.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 });
2307
+ return /* @__PURE__ */ (0, import_jsx_runtime54.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 });
2308
2308
  }
2309
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
2309
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
2310
2310
  Hyperlink,
2311
2311
  {
2312
2312
  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",
@@ -2316,35 +2316,35 @@ var init_Pagination = __esm({
2316
2316
  );
2317
2317
  };
2318
2318
  if (totalPages <= 1 && totalItems === 0) return null;
2319
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "py-6 border-t bg-default", children: [
2320
- /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "flex flex-col sm:flex-row items-center justify-between gap-4", children: [
2321
- /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "text-sm", children: [
2319
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "py-6 border-t bg-default", children: [
2320
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "flex flex-col sm:flex-row items-center justify-between gap-4", children: [
2321
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "text-sm", children: [
2322
2322
  "Showing ",
2323
- /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("span", { className: "font-semibold", children: [
2323
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("span", { className: "font-semibold", children: [
2324
2324
  startItem,
2325
2325
  "-",
2326
2326
  endItem
2327
2327
  ] }),
2328
2328
  " ",
2329
2329
  "out of ",
2330
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { className: "font-semibold", children: totalItems.toLocaleString() }),
2330
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "font-semibold", children: totalItems.toLocaleString() }),
2331
2331
  " results"
2332
2332
  ] }),
2333
- totalPages > 1 && /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "flex items-center space-x-1", children: [
2334
- /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
2333
+ totalPages > 1 && /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "flex items-center space-x-1", children: [
2334
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
2335
2335
  NavigationButton,
2336
2336
  {
2337
2337
  page: activePageNumber - 1,
2338
2338
  disabled: activePageNumber === 1,
2339
2339
  children: [
2340
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icon_default, { name: "chevronLeft", className: "w-4 h-4 mr-1" }) }),
2341
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { className: "text-sm", children: "Prev" })
2340
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Icon_default, { name: "chevronLeft", className: "w-4 h-4 mr-1" }) }),
2341
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "text-sm", children: "Prev" })
2342
2342
  ]
2343
2343
  }
2344
2344
  ),
2345
2345
  paginationRange.map((item, index) => {
2346
2346
  if (item === "...") {
2347
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
2347
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
2348
2348
  "span",
2349
2349
  {
2350
2350
  className: "min-w-[20px] md:min-w-[40px] h-10 flex items-center justify-center text-gray-500",
@@ -2354,23 +2354,23 @@ var init_Pagination = __esm({
2354
2354
  );
2355
2355
  }
2356
2356
  const page = item;
2357
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(PageButton, { page, children: page }, page);
2357
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(PageButton, { page, children: page }, page);
2358
2358
  }),
2359
- /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
2359
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
2360
2360
  NavigationButton,
2361
2361
  {
2362
2362
  page: activePageNumber + 1,
2363
2363
  disabled: activePageNumber === totalPages,
2364
2364
  children: [
2365
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { className: "text-sm", children: "Next" }),
2366
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icon_default, { name: "chevronRight", className: "w-4 h-4 ml-1" }) })
2365
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "text-sm", children: "Next" }),
2366
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Icon_default, { name: "chevronRight", className: "w-4 h-4 ml-1" }) })
2367
2367
  ]
2368
2368
  }
2369
2369
  )
2370
2370
  ] }),
2371
- showJumpToPage && totalPages > 5 && /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "flex items-center space-x-2", children: [
2372
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { className: "text-sm", children: "Go to:" }),
2373
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
2371
+ showJumpToPage && totalPages > 5 && /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "flex items-center space-x-2", children: [
2372
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "text-sm", children: "Go to:" }),
2373
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
2374
2374
  "input",
2375
2375
  {
2376
2376
  type: "number",
@@ -2391,9 +2391,9 @@ var init_Pagination = __esm({
2391
2391
  ) })
2392
2392
  ] })
2393
2393
  ] }),
2394
- showPageSizeSelector && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "mt-4 pt-4 border-t bg-default", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "flex items-center justify-center space-x-2", children: [
2395
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { className: "text-sm", children: "Show:" }),
2396
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "flex space-x-1", children: [10, 25, 50, 100].map((size) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
2394
+ showPageSizeSelector && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "mt-4 pt-4 border-t bg-default", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "flex items-center justify-center space-x-2", children: [
2395
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "text-sm", children: "Show:" }),
2396
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "flex space-x-1", children: [10, 25, 50, 100].map((size) => /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
2397
2397
  Hyperlink,
2398
2398
  {
2399
2399
  className: `
@@ -2405,7 +2405,7 @@ var init_Pagination = __esm({
2405
2405
  },
2406
2406
  size
2407
2407
  )) }),
2408
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { className: "text-sm", children: "per page" })
2408
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "text-sm", children: "per page" })
2409
2409
  ] }) })
2410
2410
  ] });
2411
2411
  };
@@ -2414,12 +2414,12 @@ var init_Pagination = __esm({
2414
2414
  });
2415
2415
 
2416
2416
  // src/components/controls/edit/MultilineTextInput.tsx
2417
- var import_react33, import_jsx_runtime54, MultilineTextInput, MultilineTextInput_default;
2417
+ var import_react34, import_jsx_runtime55, MultilineTextInput, MultilineTextInput_default;
2418
2418
  var init_MultilineTextInput = __esm({
2419
2419
  "src/components/controls/edit/MultilineTextInput.tsx"() {
2420
2420
  "use strict";
2421
- import_react33 = __toESM(require("react"));
2422
- import_jsx_runtime54 = require("react/jsx-runtime");
2421
+ import_react34 = __toESM(require("react"));
2422
+ import_jsx_runtime55 = require("react/jsx-runtime");
2423
2423
  MultilineTextInput = (props) => {
2424
2424
  const textChangeHandler = (event) => {
2425
2425
  const text = event.target.value;
@@ -2438,11 +2438,11 @@ var init_MultilineTextInput = __esm({
2438
2438
  if (props.value !== void 0 && props.value !== null) {
2439
2439
  value = props.value;
2440
2440
  }
2441
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_react33.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("label", { className: "block mb-1", children: [
2442
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
2441
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_react34.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("label", { className: "block mb-1", children: [
2442
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
2443
2443
  " ",
2444
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "bg-error-weak", children: "*" }),
2445
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
2444
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { className: "bg-error-weak", children: "*" }),
2445
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
2446
2446
  "textarea",
2447
2447
  {
2448
2448
  name: props.name,
@@ -2459,7 +2459,7 @@ var init_MultilineTextInput = __esm({
2459
2459
  className: "peer mt-1 py-1.5 block w-full rounded shadow-sm input"
2460
2460
  }
2461
2461
  ),
2462
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
2462
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
2463
2463
  ] }) });
2464
2464
  };
2465
2465
  MultilineTextInput_default = MultilineTextInput;
@@ -2467,12 +2467,12 @@ var init_MultilineTextInput = __esm({
2467
2467
  });
2468
2468
 
2469
2469
  // src/components/controls/edit/LineTextInput.tsx
2470
- var import_react34, import_jsx_runtime55, LineTextInput, LineTextInput_default;
2470
+ var import_react35, import_jsx_runtime56, LineTextInput, LineTextInput_default;
2471
2471
  var init_LineTextInput = __esm({
2472
2472
  "src/components/controls/edit/LineTextInput.tsx"() {
2473
2473
  "use strict";
2474
- import_react34 = __toESM(require("react"));
2475
- import_jsx_runtime55 = require("react/jsx-runtime");
2474
+ import_react35 = __toESM(require("react"));
2475
+ import_jsx_runtime56 = require("react/jsx-runtime");
2476
2476
  LineTextInput = (props) => {
2477
2477
  const textChangeHandler = (event) => {
2478
2478
  const text = event.target.value;
@@ -2491,11 +2491,11 @@ var init_LineTextInput = __esm({
2491
2491
  if (props.value !== void 0 && props.value !== null) {
2492
2492
  value = props.value;
2493
2493
  }
2494
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_react34.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("label", { className: "block", children: [
2495
- props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { className: "text-sm inline-block pb-1 font-medium ", children: props?.attributes?.label }),
2494
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_react35.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("label", { className: "block", children: [
2495
+ props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "text-sm inline-block pb-1 font-medium ", children: props?.attributes?.label }),
2496
2496
  " ",
2497
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { className: "bg-error-weak !bg-transparent", children: "*" }),
2498
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
2497
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "bg-error-weak !bg-transparent", children: "*" }),
2498
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
2499
2499
  "input",
2500
2500
  {
2501
2501
  type: "text",
@@ -2515,7 +2515,7 @@ var init_LineTextInput = __esm({
2515
2515
  `
2516
2516
  }
2517
2517
  ),
2518
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
2518
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
2519
2519
  ] }) });
2520
2520
  };
2521
2521
  LineTextInput_default = LineTextInput;
@@ -2523,12 +2523,12 @@ var init_LineTextInput = __esm({
2523
2523
  });
2524
2524
 
2525
2525
  // src/components/controls/edit/MoneyInput.tsx
2526
- var import_react35, import_jsx_runtime56, MoneyInput, MoneyInput_default;
2526
+ var import_react36, import_jsx_runtime57, MoneyInput, MoneyInput_default;
2527
2527
  var init_MoneyInput = __esm({
2528
2528
  "src/components/controls/edit/MoneyInput.tsx"() {
2529
2529
  "use strict";
2530
- import_react35 = __toESM(require("react"));
2531
- import_jsx_runtime56 = require("react/jsx-runtime");
2530
+ import_react36 = __toESM(require("react"));
2531
+ import_jsx_runtime57 = require("react/jsx-runtime");
2532
2532
  MoneyInput = (props) => {
2533
2533
  const textChangeHandler = (event) => {
2534
2534
  const rawValue = event.target.value;
@@ -2557,11 +2557,11 @@ var init_MoneyInput = __esm({
2557
2557
  e.preventDefault();
2558
2558
  }
2559
2559
  };
2560
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_react35.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("label", { className: "block mb-1", children: [
2561
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
2560
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_react36.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("label", { className: "block mb-1", children: [
2561
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
2562
2562
  " ",
2563
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "bg-error-weak", children: "*" }),
2564
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
2563
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "bg-error-weak", children: "*" }),
2564
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
2565
2565
  "input",
2566
2566
  {
2567
2567
  type: "number",
@@ -2581,7 +2581,7 @@ var init_MoneyInput = __esm({
2581
2581
  className: "peer mt-1 py-1.5 block w-full rounded shadow-sm number-input"
2582
2582
  }
2583
2583
  ),
2584
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
2584
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
2585
2585
  ] }) });
2586
2586
  };
2587
2587
  MoneyInput_default = MoneyInput;
@@ -2589,14 +2589,14 @@ var init_MoneyInput = __esm({
2589
2589
  });
2590
2590
 
2591
2591
  // src/components/controls/edit/Select.tsx
2592
- var import_react36, import_jsx_runtime57, Select, Select_default;
2592
+ var import_react37, import_jsx_runtime58, Select, Select_default;
2593
2593
  var init_Select = __esm({
2594
2594
  "src/components/controls/edit/Select.tsx"() {
2595
2595
  "use strict";
2596
- import_react36 = require("react");
2597
- import_jsx_runtime57 = require("react/jsx-runtime");
2596
+ import_react37 = require("react");
2597
+ import_jsx_runtime58 = require("react/jsx-runtime");
2598
2598
  Select = (props) => {
2599
- const [list, setList] = (0, import_react36.useState)();
2599
+ const [list, setList] = (0, import_react37.useState)();
2600
2600
  const getSafeValue = (val) => {
2601
2601
  if (val === null || val === void 0) return "";
2602
2602
  if (typeof val === "boolean") return val ? "1" : "0";
@@ -2633,7 +2633,7 @@ var init_Select = __esm({
2633
2633
  groupKey: props.groupKey
2634
2634
  });
2635
2635
  };
2636
- (0, import_react36.useEffect)(() => {
2636
+ (0, import_react37.useEffect)(() => {
2637
2637
  async function fetchData() {
2638
2638
  if (props.dataset) {
2639
2639
  setList(props.dataset);
@@ -2666,11 +2666,11 @@ var init_Select = __esm({
2666
2666
  props.dataSourceDependsOn
2667
2667
  ]);
2668
2668
  const value = getSafeValue(props.value);
2669
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("label", { className: "block", children: [
2670
- props.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "text-sm font-medium inline-block pb-1", children: props.attributes?.label }),
2669
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("label", { className: "block", children: [
2670
+ props.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "text-sm font-medium inline-block pb-1", children: props.attributes?.label }),
2671
2671
  " ",
2672
- props.attributes?.label && props.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "bg-error-weak", children: "*" }),
2673
- list && list.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
2672
+ props.attributes?.label && props.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "bg-error-weak", children: "*" }),
2673
+ list && list.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
2674
2674
  "input",
2675
2675
  {
2676
2676
  type: "text",
@@ -2687,7 +2687,7 @@ var init_Select = __esm({
2687
2687
  className: `peer input select mt-1 py-1.5 block w-full rounded shadow-sm ${props.inputClasses ?? ""}`
2688
2688
  }
2689
2689
  ),
2690
- list && list.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
2690
+ list && list.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
2691
2691
  "select",
2692
2692
  {
2693
2693
  name: props.name,
@@ -2700,16 +2700,16 @@ var init_Select = __esm({
2700
2700
  focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50
2701
2701
  disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none ${props.inputClasses ?? ""}`,
2702
2702
  children: [
2703
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("option", { value: "", children: props.attributes?.placeholder || "Select" }),
2703
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("option", { value: "", children: props.attributes?.placeholder || "Select" }),
2704
2704
  list.map((item, index) => {
2705
2705
  const keyField = props.dataKeyFieldName;
2706
2706
  const textField = props.dataTextFieldName;
2707
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("option", { value: item[keyField], children: item[textField] }, index);
2707
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("option", { value: item[keyField], children: item[textField] }, index);
2708
2708
  })
2709
2709
  ]
2710
2710
  }
2711
2711
  ),
2712
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 text-alert text-sm", children: props.attributes?.errorMessage || "" })
2712
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 text-alert text-sm", children: props.attributes?.errorMessage || "" })
2713
2713
  ] });
2714
2714
  };
2715
2715
  Select_default = Select;
@@ -2717,12 +2717,12 @@ var init_Select = __esm({
2717
2717
  });
2718
2718
 
2719
2719
  // src/components/controls/edit/PercentageInput.tsx
2720
- var import_react37, import_jsx_runtime58, PercentageInput, PercentageInput_default;
2720
+ var import_react38, import_jsx_runtime59, PercentageInput, PercentageInput_default;
2721
2721
  var init_PercentageInput = __esm({
2722
2722
  "src/components/controls/edit/PercentageInput.tsx"() {
2723
2723
  "use strict";
2724
- import_react37 = __toESM(require("react"));
2725
- import_jsx_runtime58 = require("react/jsx-runtime");
2724
+ import_react38 = __toESM(require("react"));
2725
+ import_jsx_runtime59 = require("react/jsx-runtime");
2726
2726
  PercentageInput = (props) => {
2727
2727
  const textChangeHandler = (event) => {
2728
2728
  const rawValue = event.target.value;
@@ -2751,11 +2751,11 @@ var init_PercentageInput = __esm({
2751
2751
  e.preventDefault();
2752
2752
  }
2753
2753
  };
2754
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react37.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("label", { className: "block mb-1", children: [
2755
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label ? props?.attributes?.label + " %" : "" }),
2754
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react38.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("label", { className: "block mb-1", children: [
2755
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label ? props?.attributes?.label + " %" : "" }),
2756
2756
  " ",
2757
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "bg-error-weak", children: "*" }),
2758
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
2757
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "bg-error-weak", children: "*" }),
2758
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
2759
2759
  "input",
2760
2760
  {
2761
2761
  type: "number",
@@ -2774,7 +2774,7 @@ var init_PercentageInput = __esm({
2774
2774
  className: "peer mt-1 py-1.5 block w-full rounded shadow-sm number-input"
2775
2775
  }
2776
2776
  ),
2777
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
2777
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
2778
2778
  ] }) });
2779
2779
  };
2780
2780
  PercentageInput_default = PercentageInput;
@@ -2782,12 +2782,12 @@ var init_PercentageInput = __esm({
2782
2782
  });
2783
2783
 
2784
2784
  // src/components/controls/edit/PhoneInput.tsx
2785
- var import_react38, import_jsx_runtime59, PhoneInput, PhoneInput_default;
2785
+ var import_react39, import_jsx_runtime60, PhoneInput, PhoneInput_default;
2786
2786
  var init_PhoneInput = __esm({
2787
2787
  "src/components/controls/edit/PhoneInput.tsx"() {
2788
2788
  "use strict";
2789
- import_react38 = __toESM(require("react"));
2790
- import_jsx_runtime59 = require("react/jsx-runtime");
2789
+ import_react39 = __toESM(require("react"));
2790
+ import_jsx_runtime60 = require("react/jsx-runtime");
2791
2791
  PhoneInput = (props) => {
2792
2792
  const textChangeHandler = (event) => {
2793
2793
  const text = event.target.value;
@@ -2806,13 +2806,13 @@ var init_PhoneInput = __esm({
2806
2806
  if (props.value !== void 0 && props.value !== null) {
2807
2807
  value = props.value;
2808
2808
  }
2809
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react38.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("label", { className: "block mb-1", children: [
2810
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
2809
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react39.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("label", { className: "block mb-1", children: [
2810
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
2811
2811
  " ",
2812
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "bg-error-weak", children: "*" }),
2813
- /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "flex items-center rounded border ", children: [
2814
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "px-3", children: props.prefix }),
2815
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
2812
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("span", { className: "bg-error-weak", children: "*" }),
2813
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "flex items-center rounded border ", children: [
2814
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("span", { className: "px-3", children: props.prefix }),
2815
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
2816
2816
  "input",
2817
2817
  {
2818
2818
  type: "text",
@@ -2830,7 +2830,7 @@ var init_PhoneInput = __esm({
2830
2830
  }
2831
2831
  )
2832
2832
  ] }),
2833
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
2833
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
2834
2834
  ] }) });
2835
2835
  };
2836
2836
  PhoneInput_default = PhoneInput;
@@ -2838,12 +2838,12 @@ var init_PhoneInput = __esm({
2838
2838
  });
2839
2839
 
2840
2840
  // src/components/controls/edit/NumberInput.tsx
2841
- var import_react39, import_jsx_runtime60, NumberInput, NumberInput_default;
2841
+ var import_react40, import_jsx_runtime61, NumberInput, NumberInput_default;
2842
2842
  var init_NumberInput = __esm({
2843
2843
  "src/components/controls/edit/NumberInput.tsx"() {
2844
2844
  "use strict";
2845
- import_react39 = __toESM(require("react"));
2846
- import_jsx_runtime60 = require("react/jsx-runtime");
2845
+ import_react40 = __toESM(require("react"));
2846
+ import_jsx_runtime61 = require("react/jsx-runtime");
2847
2847
  NumberInput = (props) => {
2848
2848
  const textChangeHandler = (event) => {
2849
2849
  const text = event.target.value;
@@ -2866,11 +2866,11 @@ var init_NumberInput = __esm({
2866
2866
  if (props.value !== void 0 && props.value !== null) {
2867
2867
  value = props.value;
2868
2868
  }
2869
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react39.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("label", { className: "block", children: [
2870
- props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("span", { className: "text-sm inline-block pb-1 font-medium ", children: props?.attributes?.label }),
2869
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_react40.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("label", { className: "block", children: [
2870
+ props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { className: "text-sm inline-block pb-1 font-medium ", children: props?.attributes?.label }),
2871
2871
  " ",
2872
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("span", { className: "bg-error-weak", children: "*" }),
2873
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
2872
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { className: "bg-error-weak", children: "*" }),
2873
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
2874
2874
  "input",
2875
2875
  {
2876
2876
  type: "number",
@@ -2889,7 +2889,7 @@ var init_NumberInput = __esm({
2889
2889
  className: "peer py-1.5 block w-full rounded shadow-sm number-input input\n disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none\n "
2890
2890
  }
2891
2891
  ),
2892
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
2892
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
2893
2893
  ] }) });
2894
2894
  };
2895
2895
  NumberInput_default = NumberInput;
@@ -2897,12 +2897,12 @@ var init_NumberInput = __esm({
2897
2897
  });
2898
2898
 
2899
2899
  // src/components/controls/edit/CheckboxInput.tsx
2900
- var import_react40, import_jsx_runtime61, CheckboxInput, CheckboxInput_default;
2900
+ var import_react41, import_jsx_runtime62, CheckboxInput, CheckboxInput_default;
2901
2901
  var init_CheckboxInput = __esm({
2902
2902
  "src/components/controls/edit/CheckboxInput.tsx"() {
2903
2903
  "use strict";
2904
- import_react40 = __toESM(require("react"));
2905
- import_jsx_runtime61 = require("react/jsx-runtime");
2904
+ import_react41 = __toESM(require("react"));
2905
+ import_jsx_runtime62 = require("react/jsx-runtime");
2906
2906
  CheckboxInput = (props) => {
2907
2907
  const textChangeHandler = (event) => {
2908
2908
  let text = event.target.checked;
@@ -2919,9 +2919,9 @@ var init_CheckboxInput = __esm({
2919
2919
  if (props.value != void 0 && props.value != null && props.value != "" && (props.value == "true" || props.value.toString() == "true")) {
2920
2920
  value = true;
2921
2921
  }
2922
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_react40.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "mb-1", children: [
2923
- props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_jsx_runtime61.Fragment, { children: [
2924
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
2922
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_react41.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "mb-1", children: [
2923
+ props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_jsx_runtime62.Fragment, { children: [
2924
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
2925
2925
  "label",
2926
2926
  {
2927
2927
  htmlFor: props.name,
@@ -2929,9 +2929,9 @@ var init_CheckboxInput = __esm({
2929
2929
  children: props.attributes.label
2930
2930
  }
2931
2931
  ),
2932
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { className: "bg-error-weak", children: "*" })
2932
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { className: "bg-error-weak", children: "*" })
2933
2933
  ] }),
2934
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
2934
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
2935
2935
  "input",
2936
2936
  {
2937
2937
  type: "checkbox",
@@ -2948,7 +2948,7 @@ var init_CheckboxInput = __esm({
2948
2948
  className: "peer mt-1 py-1.5 block rounded shadow-sm\n disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none\n "
2949
2949
  }
2950
2950
  ),
2951
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage || "" })
2951
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage || "" })
2952
2952
  ] }) });
2953
2953
  };
2954
2954
  CheckboxInput_default = CheckboxInput;
@@ -2956,12 +2956,12 @@ var init_CheckboxInput = __esm({
2956
2956
  });
2957
2957
 
2958
2958
  // src/components/controls/edit/OtpInput.tsx
2959
- var import_react41, import_jsx_runtime62, OtpInput, OtpInput_default;
2959
+ var import_react42, import_jsx_runtime63, OtpInput, OtpInput_default;
2960
2960
  var init_OtpInput = __esm({
2961
2961
  "src/components/controls/edit/OtpInput.tsx"() {
2962
2962
  "use strict";
2963
- import_react41 = __toESM(require("react"));
2964
- import_jsx_runtime62 = require("react/jsx-runtime");
2963
+ import_react42 = __toESM(require("react"));
2964
+ import_jsx_runtime63 = require("react/jsx-runtime");
2965
2965
  OtpInput = (props) => {
2966
2966
  const textChangeHandler = (event) => {
2967
2967
  const text = event.target.value;
@@ -2983,11 +2983,11 @@ var init_OtpInput = __esm({
2983
2983
  if (props.value !== void 0 && props.value !== null) {
2984
2984
  value = props.value;
2985
2985
  }
2986
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_react41.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("label", { htmlFor: props.name, className: "block mb-1 w-full", children: [
2987
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
2986
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_react42.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("label", { htmlFor: props.name, className: "block mb-1 w-full", children: [
2987
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
2988
2988
  " ",
2989
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { className: "bg-error-weak", children: "*" }),
2990
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
2989
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { className: "bg-error-weak", children: "*" }),
2990
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
2991
2991
  "input",
2992
2992
  {
2993
2993
  type: "text",
@@ -3007,7 +3007,7 @@ var init_OtpInput = __esm({
3007
3007
  className: "peer mt-1 py-1.5 block w-full rounded shadow-sm tracking-[1.25em] text-center"
3008
3008
  }
3009
3009
  ),
3010
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
3010
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
3011
3011
  ] }) });
3012
3012
  };
3013
3013
  OtpInput_default = OtpInput;
@@ -3015,12 +3015,12 @@ var init_OtpInput = __esm({
3015
3015
  });
3016
3016
 
3017
3017
  // src/components/controls/edit/DateTimeInput.tsx
3018
- var import_react42, import_jsx_runtime63, DateTimeInput, DateTimeInput_default;
3018
+ var import_react43, import_jsx_runtime64, DateTimeInput, DateTimeInput_default;
3019
3019
  var init_DateTimeInput = __esm({
3020
3020
  "src/components/controls/edit/DateTimeInput.tsx"() {
3021
3021
  "use strict";
3022
- import_react42 = __toESM(require("react"));
3023
- import_jsx_runtime63 = require("react/jsx-runtime");
3022
+ import_react43 = __toESM(require("react"));
3023
+ import_jsx_runtime64 = require("react/jsx-runtime");
3024
3024
  DateTimeInput = (props) => {
3025
3025
  const textChangeHandler = (event) => {
3026
3026
  const localDate = new Date(event.target.value);
@@ -3052,12 +3052,12 @@ var init_DateTimeInput = __esm({
3052
3052
  e.preventDefault();
3053
3053
  }
3054
3054
  };
3055
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_react42.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("label", { className: "block mb-1", children: [
3056
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
3055
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_react43.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("label", { className: "block mb-1", children: [
3056
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
3057
3057
  " ",
3058
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { className: "bg-error-weak", children: "*" }),
3059
- /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "flex items-center gap-2", children: [
3060
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
3058
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "bg-error-weak", children: "*" }),
3059
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "flex items-center gap-2", children: [
3060
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
3061
3061
  "input",
3062
3062
  {
3063
3063
  type: "datetime-local",
@@ -3075,9 +3075,9 @@ var init_DateTimeInput = __esm({
3075
3075
  className: "peer mt-1 py-1.5 block w-full rounded shadow-sm\n disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none\n "
3076
3076
  }
3077
3077
  ),
3078
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { children: timeZoneAbbr })
3078
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { children: timeZoneAbbr })
3079
3079
  ] }),
3080
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
3080
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
3081
3081
  ] }) });
3082
3082
  };
3083
3083
  DateTimeInput_default = DateTimeInput;
@@ -3085,15 +3085,15 @@ var init_DateTimeInput = __esm({
3085
3085
  });
3086
3086
 
3087
3087
  // src/components/controls/edit/ColorInput.tsx
3088
- var import_react43, import_jsx_runtime64, ColorInput, ColorInput_default;
3088
+ var import_react44, import_jsx_runtime65, ColorInput, ColorInput_default;
3089
3089
  var init_ColorInput = __esm({
3090
3090
  "src/components/controls/edit/ColorInput.tsx"() {
3091
3091
  "use strict";
3092
- import_react43 = __toESM(require("react"));
3093
- import_jsx_runtime64 = require("react/jsx-runtime");
3092
+ import_react44 = __toESM(require("react"));
3093
+ import_jsx_runtime65 = require("react/jsx-runtime");
3094
3094
  ColorInput = (props) => {
3095
- const [color, setColor] = import_react43.default.useState("#3b82f6");
3096
- (0, import_react43.useEffect)(() => {
3095
+ const [color, setColor] = import_react44.default.useState("#3b82f6");
3096
+ (0, import_react44.useEffect)(() => {
3097
3097
  if (props.value !== void 0 && props.value !== null) {
3098
3098
  if (typeof props.value === "string") {
3099
3099
  setColor(props.value);
@@ -3112,11 +3112,11 @@ var init_ColorInput = __esm({
3112
3112
  });
3113
3113
  }
3114
3114
  };
3115
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("label", { className: "block mb-1", children: [
3116
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "text-sm font-medium", children: props?.attributes?.label }),
3115
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("label", { className: "block mb-1", children: [
3116
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { className: "text-sm font-medium", children: props?.attributes?.label }),
3117
3117
  " ",
3118
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "bg-error-weak", children: "*" }),
3119
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
3118
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { className: "bg-error-weak", children: "*" }),
3119
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
3120
3120
  "input",
3121
3121
  {
3122
3122
  type: "color",
@@ -3129,7 +3129,7 @@ var init_ColorInput = __esm({
3129
3129
  className: `w-[78px] h-12 block cursor-pointer`
3130
3130
  }
3131
3131
  ),
3132
- props?.attributes?.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("p", { className: "mt-1 bg-error-weak text-sm", children: props.attributes.errorMessage })
3132
+ props?.attributes?.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("p", { className: "mt-1 bg-error-weak text-sm", children: props.attributes.errorMessage })
3133
3133
  ] });
3134
3134
  };
3135
3135
  ColorInput_default = ColorInput;
@@ -3137,22 +3137,22 @@ var init_ColorInput = __esm({
3137
3137
  });
3138
3138
 
3139
3139
  // src/components/controls/edit/SelectWithSearchInput.tsx
3140
- var import_react44, import_jsx_runtime65, SelectWithSearchInput, SelectWithSearchInput_default;
3140
+ var import_react45, import_jsx_runtime66, SelectWithSearchInput, SelectWithSearchInput_default;
3141
3141
  var init_SelectWithSearchInput = __esm({
3142
3142
  "src/components/controls/edit/SelectWithSearchInput.tsx"() {
3143
3143
  "use strict";
3144
3144
  "use client";
3145
- import_react44 = __toESM(require("react"));
3146
- import_jsx_runtime65 = require("react/jsx-runtime");
3145
+ import_react45 = __toESM(require("react"));
3146
+ import_jsx_runtime66 = require("react/jsx-runtime");
3147
3147
  SelectWithSearchInput = (props) => {
3148
- const [isOpen, setIsOpen] = (0, import_react44.useState)(false);
3149
- const [searchTerm, setSearchTerm] = (0, import_react44.useState)("");
3150
- const [highlightedIndex, setHighlightedIndex] = (0, import_react44.useState)(-1);
3151
- const [selectedItem, setSelectedItem] = (0, import_react44.useState)(
3148
+ const [isOpen, setIsOpen] = (0, import_react45.useState)(false);
3149
+ const [searchTerm, setSearchTerm] = (0, import_react45.useState)("");
3150
+ const [highlightedIndex, setHighlightedIndex] = (0, import_react45.useState)(-1);
3151
+ const [selectedItem, setSelectedItem] = (0, import_react45.useState)(
3152
3152
  null
3153
3153
  );
3154
- const [list, setList] = (0, import_react44.useState)([]);
3155
- const loadData = import_react44.default.useCallback(async () => {
3154
+ const [list, setList] = (0, import_react45.useState)([]);
3155
+ const loadData = import_react45.default.useCallback(async () => {
3156
3156
  if (props.dataset) {
3157
3157
  setList(props.dataset);
3158
3158
  return;
@@ -3177,10 +3177,10 @@ var init_SelectWithSearchInput = __esm({
3177
3177
  props.dataSourceDependsOn,
3178
3178
  props.dependentValue
3179
3179
  ]);
3180
- (0, import_react44.useEffect)(() => {
3180
+ (0, import_react45.useEffect)(() => {
3181
3181
  loadData();
3182
3182
  }, [loadData]);
3183
- (0, import_react44.useEffect)(() => {
3183
+ (0, import_react45.useEffect)(() => {
3184
3184
  if (props.value && list.length && props.dataKeyFieldName && props.dataTextFieldName) {
3185
3185
  const selected = list.find(
3186
3186
  (x) => x[props.dataKeyFieldName] == props.value
@@ -3227,8 +3227,8 @@ var init_SelectWithSearchInput = __esm({
3227
3227
  handleSelect(e, filteredItems[highlightedIndex]);
3228
3228
  }
3229
3229
  };
3230
- const dropdownRef = (0, import_react44.useRef)(null);
3231
- (0, import_react44.useEffect)(() => {
3230
+ const dropdownRef = (0, import_react45.useRef)(null);
3231
+ (0, import_react45.useEffect)(() => {
3232
3232
  if (highlightedIndex >= 0 && dropdownRef.current) {
3233
3233
  const highlightedItem = dropdownRef.current.children[highlightedIndex];
3234
3234
  highlightedItem?.scrollIntoView({
@@ -3238,14 +3238,14 @@ var init_SelectWithSearchInput = __esm({
3238
3238
  }
3239
3239
  }, [highlightedIndex]);
3240
3240
  const isReadOnly = props.attributes?.readOnly || props.disable || props.attributes?.disable;
3241
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "relative", children: [
3242
- /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("label", { className: "pb-1", children: [
3241
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "relative", children: [
3242
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("label", { className: "pb-1", children: [
3243
3243
  props.attributes?.label,
3244
3244
  " ",
3245
- props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { className: "bg-error-weak", children: "*" })
3245
+ props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { className: "bg-error-weak", children: "*" })
3246
3246
  ] }),
3247
- /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "relative", children: [
3248
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
3247
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "relative", children: [
3248
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
3249
3249
  "input",
3250
3250
  {
3251
3251
  type: "text",
@@ -3267,7 +3267,7 @@ var init_SelectWithSearchInput = __esm({
3267
3267
  `
3268
3268
  }
3269
3269
  ),
3270
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
3270
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
3271
3271
  "button",
3272
3272
  {
3273
3273
  type: "button",
@@ -3278,7 +3278,7 @@ var init_SelectWithSearchInput = __esm({
3278
3278
  }
3279
3279
  },
3280
3280
  className: "absolute right-2 top-3 h-5 w-5 text-gray-500 focus:outline-none",
3281
- children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
3281
+ children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
3282
3282
  "svg",
3283
3283
  {
3284
3284
  xmlns: "http://www.w3.org/2000/svg",
@@ -3287,7 +3287,7 @@ var init_SelectWithSearchInput = __esm({
3287
3287
  strokeWidth: 1.5,
3288
3288
  stroke: "currentColor",
3289
3289
  className: "w-full h-full",
3290
- children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
3290
+ children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
3291
3291
  "path",
3292
3292
  {
3293
3293
  strokeLinecap: "round",
@@ -3300,12 +3300,12 @@ var init_SelectWithSearchInput = __esm({
3300
3300
  }
3301
3301
  )
3302
3302
  ] }),
3303
- !isReadOnly && isOpen && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
3303
+ !isReadOnly && isOpen && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
3304
3304
  "div",
3305
3305
  {
3306
3306
  ref: dropdownRef,
3307
3307
  className: "absolute z-10 w-full bg-default border border-gray-200 shadow-lg max-h-48 overflow-y-auto",
3308
- children: filteredItems.length > 0 ? filteredItems.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
3308
+ children: filteredItems.length > 0 ? filteredItems.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
3309
3309
  "button",
3310
3310
  {
3311
3311
  onClick: (e) => handleSelect(e, item),
@@ -3313,10 +3313,10 @@ var init_SelectWithSearchInput = __esm({
3313
3313
  role: "option",
3314
3314
  tabIndex: -1,
3315
3315
  onMouseEnter: () => setHighlightedIndex(index),
3316
- children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { children: item[props.dataTextFieldName] })
3316
+ children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { children: item[props.dataTextFieldName] })
3317
3317
  },
3318
3318
  item[props.dataKeyFieldName]
3319
- )) : /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "px-4 py-2 text-gray-500", children: "No results found" })
3319
+ )) : /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "px-4 py-2 text-gray-500", children: "No results found" })
3320
3320
  }
3321
3321
  )
3322
3322
  ] });
@@ -3326,28 +3326,28 @@ var init_SelectWithSearchInput = __esm({
3326
3326
  });
3327
3327
 
3328
3328
  // src/components/controls/edit/SelectWithSearchPanel.tsx
3329
- var import_react45, import_jsx_runtime66, SelectWithSearchPanel, SelectWithSearchPanel_default;
3329
+ var import_react46, import_jsx_runtime67, SelectWithSearchPanel, SelectWithSearchPanel_default;
3330
3330
  var init_SelectWithSearchPanel = __esm({
3331
3331
  "src/components/controls/edit/SelectWithSearchPanel.tsx"() {
3332
3332
  "use strict";
3333
3333
  "use client";
3334
3334
  init_Button();
3335
- import_react45 = __toESM(require("react"));
3336
- import_jsx_runtime66 = require("react/jsx-runtime");
3335
+ import_react46 = __toESM(require("react"));
3336
+ import_jsx_runtime67 = require("react/jsx-runtime");
3337
3337
  SelectWithSearchPanel = (props) => {
3338
- const [isOpen, setIsOpen] = (0, import_react45.useState)(false);
3339
- const [searchTerm, setSearchTerm] = (0, import_react45.useState)("");
3340
- const [highlightedIndex, setHighlightedIndex] = (0, import_react45.useState)(0);
3341
- const [list, setList] = (0, import_react45.useState)([]);
3342
- const listRef = (0, import_react45.useRef)(null);
3343
- const [isError, setIsError] = (0, import_react45.useState)(false);
3344
- const containerRef = (0, import_react45.useRef)(null);
3345
- const [isCreateOpen, setIsCreateOpen] = (0, import_react45.useState)(false);
3346
- const [formData, setFormData] = (0, import_react45.useState)({});
3338
+ const [isOpen, setIsOpen] = (0, import_react46.useState)(false);
3339
+ const [searchTerm, setSearchTerm] = (0, import_react46.useState)("");
3340
+ const [highlightedIndex, setHighlightedIndex] = (0, import_react46.useState)(0);
3341
+ const [list, setList] = (0, import_react46.useState)([]);
3342
+ const listRef = (0, import_react46.useRef)(null);
3343
+ const [isError, setIsError] = (0, import_react46.useState)(false);
3344
+ const containerRef = (0, import_react46.useRef)(null);
3345
+ const [isCreateOpen, setIsCreateOpen] = (0, import_react46.useState)(false);
3346
+ const [formData, setFormData] = (0, import_react46.useState)({});
3347
3347
  const getNestedValue7 = (obj, path) => {
3348
3348
  return path.split(".").reduce((acc, key) => acc?.[key], obj);
3349
3349
  };
3350
- (0, import_react45.useEffect)(() => {
3350
+ (0, import_react46.useEffect)(() => {
3351
3351
  const handleClickOutside = (event) => {
3352
3352
  if (containerRef.current && !containerRef.current.contains(event.target)) {
3353
3353
  setIsOpen(false);
@@ -3358,7 +3358,7 @@ var init_SelectWithSearchPanel = __esm({
3358
3358
  document.removeEventListener("mousedown", handleClickOutside);
3359
3359
  };
3360
3360
  }, []);
3361
- (0, import_react45.useEffect)(() => {
3361
+ (0, import_react46.useEffect)(() => {
3362
3362
  async function fetchData() {
3363
3363
  if (props.dataset) {
3364
3364
  setList(props.dataset);
@@ -3400,7 +3400,7 @@ var init_SelectWithSearchPanel = __esm({
3400
3400
  audioCtx.close();
3401
3401
  }, 250);
3402
3402
  };
3403
- (0, import_react45.useEffect)(() => {
3403
+ (0, import_react46.useEffect)(() => {
3404
3404
  const filteredItems2 = list?.filter(
3405
3405
  (item) => item[props?.dataTextFieldName]?.toLowerCase().includes(searchTerm?.toLowerCase())
3406
3406
  );
@@ -3465,18 +3465,18 @@ var init_SelectWithSearchPanel = __esm({
3465
3465
  const handleInputChange = (event, field) => {
3466
3466
  setFormData((prev) => ({ ...prev, [field]: event.target.value }));
3467
3467
  };
3468
- const handleSaveModal = (0, import_react45.useCallback)(async () => {
3468
+ const handleSaveModal = (0, import_react46.useCallback)(async () => {
3469
3469
  console.log("Form Data:", formData);
3470
3470
  return formData;
3471
3471
  }, []);
3472
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "relative", children: [
3473
- /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("label", { className: "text-sm mb-1 font-medium", children: [
3472
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "relative", children: [
3473
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("label", { className: "text-sm mb-1 font-medium", children: [
3474
3474
  props.attributes?.label,
3475
3475
  " ",
3476
3476
  " ",
3477
- props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { className: "bg-error-weak", children: "*" })
3477
+ props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "bg-error-weak", children: "*" })
3478
3478
  ] }),
3479
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
3479
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
3480
3480
  "input",
3481
3481
  {
3482
3482
  type: "text",
@@ -3490,14 +3490,14 @@ var init_SelectWithSearchPanel = __esm({
3490
3490
  disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none`
3491
3491
  }
3492
3492
  ) }),
3493
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { ref: containerRef, children: isOpen && /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_react45.default.Fragment, { children: [
3494
- /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "fixed z-50 right-0 bg-white top-[62px] w-1/4 border-l border-gray-200", children: [
3495
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "flex flex-col p-2 bg-accent-950 text-white", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("h5", { className: "text-md text-white font-medium", children: [
3493
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { ref: containerRef, children: isOpen && /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(import_react46.default.Fragment, { children: [
3494
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "fixed z-50 right-0 bg-white top-[62px] w-1/4 border-l border-gray-200", children: [
3495
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "flex flex-col p-2 bg-accent-950 text-white", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("h5", { className: "text-md text-white font-medium", children: [
3496
3496
  "Select a",
3497
3497
  " ",
3498
3498
  props.attributes?.label || props.attributes?.heading
3499
3499
  ] }) }),
3500
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "flex justify-end px-4 border-b py-2 border-gray-200 h-10", children: props.createFields && props.createFields.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
3500
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "flex justify-end px-4 border-b py-2 border-gray-200 h-10", children: props.createFields && props.createFields.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
3501
3501
  "button",
3502
3502
  {
3503
3503
  type: "button",
@@ -3510,12 +3510,12 @@ var init_SelectWithSearchPanel = __esm({
3510
3510
  }
3511
3511
  ) })
3512
3512
  ] }),
3513
- isCreateOpen && /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "fixed right-0 w-1/4 h-full top-[62px] bg-white shadow-lg border-l border-gray-200 z-50", children: [
3514
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "flex flex-col p-2 bg-accent-950", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("h5", { className: "text-md font-medium text-white", children: [
3513
+ isCreateOpen && /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "fixed right-0 w-1/4 h-full top-[62px] bg-white shadow-lg border-l border-gray-200 z-50", children: [
3514
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "flex flex-col p-2 bg-accent-950", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("h5", { className: "text-md font-medium text-white", children: [
3515
3515
  "Create New ",
3516
3516
  props.attributes?.label
3517
3517
  ] }) }),
3518
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "flex justify-end px-4 border-b py-2 border-gray-200", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
3518
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "flex justify-end px-4 border-b py-2 border-gray-200", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
3519
3519
  "button",
3520
3520
  {
3521
3521
  type: "button",
@@ -3524,10 +3524,10 @@ var init_SelectWithSearchPanel = __esm({
3524
3524
  children: "Close"
3525
3525
  }
3526
3526
  ) }),
3527
- /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "p-4", children: [
3528
- props.createFields?.map((field) => /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "mb-4", children: [
3529
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("label", { className: "text-sm mb-1 font-medium block", children: field.label }),
3530
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
3527
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "p-4", children: [
3528
+ props.createFields?.map((field) => /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "mb-4", children: [
3529
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("label", { className: "text-sm mb-1 font-medium block", children: field.label }),
3530
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
3531
3531
  "input",
3532
3532
  {
3533
3533
  type: field.type,
@@ -3543,7 +3543,7 @@ var init_SelectWithSearchPanel = __esm({
3543
3543
  }
3544
3544
  )
3545
3545
  ] }, field.name)),
3546
- /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(Button_default, { onClick: async () => {
3546
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(Button_default, { onClick: async () => {
3547
3547
  handleSaveModal();
3548
3548
  return { isSuccessful: true };
3549
3549
  }, className: "w-full", children: [
@@ -3552,13 +3552,13 @@ var init_SelectWithSearchPanel = __esm({
3552
3552
  ] })
3553
3553
  ] })
3554
3554
  ] }),
3555
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
3555
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
3556
3556
  "div",
3557
3557
  {
3558
3558
  ref: listRef,
3559
3559
  className: "fixed z-10 right-0 mt-[130px] top-0 w-1/4 bg-white border-l border-gray-200 shadow-lg overflow-y-auto",
3560
3560
  style: { height: "calc(100vh - 130px)" },
3561
- children: filteredItems.length > 0 ? filteredItems.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
3561
+ children: filteredItems.length > 0 ? filteredItems.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
3562
3562
  "button",
3563
3563
  {
3564
3564
  onClick: (e) => {
@@ -3568,9 +3568,9 @@ var init_SelectWithSearchPanel = __esm({
3568
3568
  role: "option",
3569
3569
  tabIndex: -1,
3570
3570
  onMouseEnter: () => setHighlightedIndex(index),
3571
- children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { children: getNestedValue7(item, props.dataTextFieldName) })
3571
+ children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { children: getNestedValue7(item, props.dataTextFieldName) })
3572
3572
  }
3573
- ) }, item[props.dataKeyFieldName])) : /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "px-4 py-2 text-gray-500", children: "No results found" })
3573
+ ) }, item[props.dataKeyFieldName])) : /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "px-4 py-2 text-gray-500", children: "No results found" })
3574
3574
  }
3575
3575
  )
3576
3576
  ] }) })
@@ -3581,14 +3581,14 @@ var init_SelectWithSearchPanel = __esm({
3581
3581
  });
3582
3582
 
3583
3583
  // src/components/controls/edit/BooleanSelect.tsx
3584
- var import_react46, import_jsx_runtime67, BooleanSelect, BooleanSelect_default;
3584
+ var import_react47, import_jsx_runtime68, BooleanSelect, BooleanSelect_default;
3585
3585
  var init_BooleanSelect = __esm({
3586
3586
  "src/components/controls/edit/BooleanSelect.tsx"() {
3587
3587
  "use strict";
3588
- import_react46 = __toESM(require("react"));
3589
- import_jsx_runtime67 = require("react/jsx-runtime");
3588
+ import_react47 = __toESM(require("react"));
3589
+ import_jsx_runtime68 = require("react/jsx-runtime");
3590
3590
  BooleanSelect = (props) => {
3591
- const [list, setList] = (0, import_react46.useState)();
3591
+ const [list, setList] = (0, import_react47.useState)();
3592
3592
  const textChangeHandler = (event) => {
3593
3593
  const text = event.target.value;
3594
3594
  const boolValue = text?.toLowerCase() === "true" || text === "1";
@@ -3601,7 +3601,7 @@ var init_BooleanSelect = __esm({
3601
3601
  });
3602
3602
  }
3603
3603
  };
3604
- (0, import_react46.useEffect)(() => {
3604
+ (0, import_react47.useEffect)(() => {
3605
3605
  async function fetchData() {
3606
3606
  console.log("in select");
3607
3607
  if (props.dataset) {
@@ -3635,11 +3635,11 @@ var init_BooleanSelect = __esm({
3635
3635
  if (props.value !== void 0 && props.value !== null) {
3636
3636
  value = props.value;
3637
3637
  }
3638
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_react46.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("label", { className: "block", children: [
3639
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
3638
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_react47.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("label", { className: "block", children: [
3639
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
3640
3640
  " ",
3641
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "bg-error-weak", children: "*" }),
3642
- /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
3641
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "bg-error-weak", children: "*" }),
3642
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
3643
3643
  "select",
3644
3644
  {
3645
3645
  name: props.name,
@@ -3651,9 +3651,9 @@ var init_BooleanSelect = __esm({
3651
3651
  disabled: props?.attributes?.readOnly,
3652
3652
  className: "peer mt-1 py-1.5 block w-full text-black rounded shadow-sm\n disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none\n ",
3653
3653
  children: [
3654
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("option", { className: "", value: "", children: props.attributes?.placeholder || "Select" }),
3654
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("option", { className: "", value: "", children: props.attributes?.placeholder || "Select" }),
3655
3655
  list && list.map((item, i) => {
3656
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
3656
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
3657
3657
  "option",
3658
3658
  {
3659
3659
  className: "fac-select-option",
@@ -3666,7 +3666,7 @@ var init_BooleanSelect = __esm({
3666
3666
  ]
3667
3667
  }
3668
3668
  ),
3669
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
3669
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
3670
3670
  ] }) });
3671
3671
  };
3672
3672
  BooleanSelect_default = BooleanSelect;
@@ -3674,12 +3674,12 @@ var init_BooleanSelect = __esm({
3674
3674
  });
3675
3675
 
3676
3676
  // src/components/controls/edit/EmailInput.tsx
3677
- var import_react47, import_jsx_runtime68, EmailInput, EmailInput_default;
3677
+ var import_react48, import_jsx_runtime69, EmailInput, EmailInput_default;
3678
3678
  var init_EmailInput = __esm({
3679
3679
  "src/components/controls/edit/EmailInput.tsx"() {
3680
3680
  "use strict";
3681
- import_react47 = __toESM(require("react"));
3682
- import_jsx_runtime68 = require("react/jsx-runtime");
3681
+ import_react48 = __toESM(require("react"));
3682
+ import_jsx_runtime69 = require("react/jsx-runtime");
3683
3683
  EmailInput = (props) => {
3684
3684
  const textChangeHandler = (event) => {
3685
3685
  const text = event.target.value;
@@ -3704,11 +3704,11 @@ var init_EmailInput = __esm({
3704
3704
  if (props.value !== void 0 && props.value !== null) {
3705
3705
  value = props.value;
3706
3706
  }
3707
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_react47.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("label", { className: "block mb-1", children: [
3708
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "text-sm font-medium text-slate-700", children: props?.attributes?.label }),
3707
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_react48.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("label", { className: "block mb-1", children: [
3708
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "text-sm font-medium text-slate-700", children: props?.attributes?.label }),
3709
3709
  " ",
3710
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "bg-error-weak", children: "*" }),
3711
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
3710
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "bg-error-weak", children: "*" }),
3711
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3712
3712
  "input",
3713
3713
  {
3714
3714
  type: "email",
@@ -3724,7 +3724,7 @@ var init_EmailInput = __esm({
3724
3724
  className: "peer mt-1 py-1.5 block w-full rounded shadow-sm\n transition-all duration-500 ease-in-out"
3725
3725
  }
3726
3726
  ),
3727
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 mb-0 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
3727
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 mb-0 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
3728
3728
  ] }) });
3729
3729
  };
3730
3730
  EmailInput_default = EmailInput;
@@ -3732,13 +3732,13 @@ var init_EmailInput = __esm({
3732
3732
  });
3733
3733
 
3734
3734
  // src/components/controls/edit/TimeInput.tsx
3735
- var import_react48, import_jsx_runtime69, TimeInput, TimeInput_default;
3735
+ var import_react49, import_jsx_runtime70, TimeInput, TimeInput_default;
3736
3736
  var init_TimeInput = __esm({
3737
3737
  "src/components/controls/edit/TimeInput.tsx"() {
3738
3738
  "use strict";
3739
3739
  "use client";
3740
- import_react48 = __toESM(require("react"));
3741
- import_jsx_runtime69 = require("react/jsx-runtime");
3740
+ import_react49 = __toESM(require("react"));
3741
+ import_jsx_runtime70 = require("react/jsx-runtime");
3742
3742
  TimeInput = (props) => {
3743
3743
  const timeChangeHandler = (event) => {
3744
3744
  const timeValue = event.target.value;
@@ -3751,11 +3751,11 @@ var init_TimeInput = __esm({
3751
3751
  });
3752
3752
  }
3753
3753
  };
3754
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_react48.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("label", { className: "block mb-1", children: [
3755
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "text-sm font-medium", children: props?.attributes?.label }),
3754
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react49.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("label", { className: "block mb-1", children: [
3755
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("span", { className: "text-sm font-medium", children: props?.attributes?.label }),
3756
3756
  " ",
3757
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "bg-error-weak", children: "*" }),
3758
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3757
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("span", { className: "bg-error-weak", children: "*" }),
3758
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
3759
3759
  "input",
3760
3760
  {
3761
3761
  type: "time",
@@ -3768,7 +3768,7 @@ var init_TimeInput = __esm({
3768
3768
  className: "peer mt-1 py-1.5 block w-full rounded shadow-sm\n disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none"
3769
3769
  }
3770
3770
  ) }),
3771
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ?? "" })
3771
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ?? "" })
3772
3772
  ] }) });
3773
3773
  };
3774
3774
  TimeInput_default = TimeInput;
@@ -3776,18 +3776,18 @@ var init_TimeInput = __esm({
3776
3776
  });
3777
3777
 
3778
3778
  // src/components/controls/edit/AssetUpload.tsx
3779
- var import_react49, import_jsx_runtime70, AssetUpload, AssetUpload_default;
3779
+ var import_react50, import_jsx_runtime71, AssetUpload, AssetUpload_default;
3780
3780
  var init_AssetUpload = __esm({
3781
3781
  "src/components/controls/edit/AssetUpload.tsx"() {
3782
3782
  "use strict";
3783
3783
  "use client";
3784
- import_react49 = __toESM(require("react"));
3784
+ import_react50 = __toESM(require("react"));
3785
3785
  init_ClientButton();
3786
3786
  init_StyleTypes();
3787
3787
  init_AssetUtility();
3788
3788
  init_Hyperlink();
3789
3789
  init_Icon();
3790
- import_jsx_runtime70 = require("react/jsx-runtime");
3790
+ import_jsx_runtime71 = require("react/jsx-runtime");
3791
3791
  AssetUpload = (props) => {
3792
3792
  const isDisabled = props.attributes?.disable ?? false;
3793
3793
  let allValues = [];
@@ -3808,8 +3808,8 @@ var init_AssetUpload = __esm({
3808
3808
  }
3809
3809
  return "image";
3810
3810
  };
3811
- const [assetType, setAssetType] = import_react49.default.useState(getInitialTab);
3812
- (0, import_react49.useEffect)(() => {
3811
+ const [assetType, setAssetType] = import_react50.default.useState(getInitialTab);
3812
+ (0, import_react50.useEffect)(() => {
3813
3813
  setAssetType(getInitialTab());
3814
3814
  }, [props.value]);
3815
3815
  const assetUploadCallback = (newAsset) => {
@@ -3884,10 +3884,10 @@ var init_AssetUpload = __esm({
3884
3884
  }
3885
3885
  return false;
3886
3886
  };
3887
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(import_react49.default.Fragment, { children: [
3888
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("label", { className: "block mb-1", children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("span", { className: "text-sm font-medium", children: props?.attributes?.label }) }),
3889
- /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "flex gap-6 bg-neutral-100 rounded p-2", children: [
3890
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
3887
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(import_react50.default.Fragment, { children: [
3888
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("label", { className: "block mb-1", children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("span", { className: "text-sm font-medium", children: props?.attributes?.label }) }),
3889
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "flex gap-6 bg-neutral-100 rounded p-2", children: [
3890
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
3891
3891
  ClientButton_default,
3892
3892
  {
3893
3893
  className: assetType === "image" ? "px-2 py-1 rounded bg-body-200 scale-95" : "text-neutral-700",
@@ -3897,7 +3897,7 @@ var init_AssetUpload = __esm({
3897
3897
  children: "Image Upload"
3898
3898
  }
3899
3899
  ),
3900
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
3900
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
3901
3901
  ClientButton_default,
3902
3902
  {
3903
3903
  className: assetType === "video" ? "bg-body-200 px-2 py-1 rounded-md scale-95" : "text-neutral-700",
@@ -3908,13 +3908,13 @@ var init_AssetUpload = __esm({
3908
3908
  }
3909
3909
  )
3910
3910
  ] }),
3911
- shouldShowDetails() && /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "relative mt-4 rounded-md p-4 border-2 border-dotted border-gray-300 bg-gray-50", children: [
3912
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("span", { className: "absolute -top-2.5 left-3 bg-primary-600 text-white text-xs px-2 py-0.5 rounded-full", children: getAssetType(allValues[0]) === "video" ? "Video" : "Image" }),
3913
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "flex flex-col gap-3", children: allValues.map((digitalAsset, index) => /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "flex justify-between items-start gap-5", children: [
3914
- /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "grid grid-cols-2 gap-x-8 gap-y-3 text-sm w-full", children: [
3915
- /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { children: [
3916
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("p", { className: "text-gray-500", children: "Title" }),
3917
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
3911
+ shouldShowDetails() && /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "relative mt-4 rounded-md p-4 border-2 border-dotted border-gray-300 bg-gray-50", children: [
3912
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("span", { className: "absolute -top-2.5 left-3 bg-primary-600 text-white text-xs px-2 py-0.5 rounded-full", children: getAssetType(allValues[0]) === "video" ? "Video" : "Image" }),
3913
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "flex flex-col gap-3", children: allValues.map((digitalAsset, index) => /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "flex justify-between items-start gap-5", children: [
3914
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "grid grid-cols-2 gap-x-8 gap-y-3 text-sm w-full", children: [
3915
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { children: [
3916
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("p", { className: "text-gray-500", children: "Title" }),
3917
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
3918
3918
  "input",
3919
3919
  {
3920
3920
  type: "text",
@@ -3926,18 +3926,18 @@ var init_AssetUpload = __esm({
3926
3926
  }
3927
3927
  )
3928
3928
  ] }),
3929
- digitalAsset.intrinsicWidth && digitalAsset.intrinsicHeight && /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { children: [
3930
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("p", { className: "text-gray-500", children: "Resolution" }),
3931
- /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("p", { className: "font-medium text-gray-900 mt-3", children: [
3929
+ digitalAsset.intrinsicWidth && digitalAsset.intrinsicHeight && /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { children: [
3930
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("p", { className: "text-gray-500", children: "Resolution" }),
3931
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("p", { className: "font-medium text-gray-900 mt-3", children: [
3932
3932
  digitalAsset.intrinsicWidth,
3933
3933
  "\xD7",
3934
3934
  digitalAsset.intrinsicHeight
3935
3935
  ] })
3936
3936
  ] }),
3937
- (digitalAsset.assetUrl || digitalAsset.posterUrl) && /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { children: [
3938
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("p", { className: "text-gray-500", children: "Image / Poster" }),
3939
- /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "flex-shrink-0 flex flex-col gap-3 mt-1", children: [
3940
- getAssetType(digitalAsset) === "video" && digitalAsset.posterUrl && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
3937
+ (digitalAsset.assetUrl || digitalAsset.posterUrl) && /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { children: [
3938
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("p", { className: "text-gray-500", children: "Image / Poster" }),
3939
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "flex-shrink-0 flex flex-col gap-3 mt-1", children: [
3940
+ getAssetType(digitalAsset) === "video" && digitalAsset.posterUrl && /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
3941
3941
  "img",
3942
3942
  {
3943
3943
  src: AssetUtility_default.resolveUrl(props.serviceClient?.baseUrl, digitalAsset.posterUrl),
@@ -3945,7 +3945,7 @@ var init_AssetUpload = __esm({
3945
3945
  className: "w-32 h-auto object-cover rounded border p-1"
3946
3946
  }
3947
3947
  ),
3948
- getAssetType(digitalAsset) === "image" && digitalAsset.assetUrl && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
3948
+ getAssetType(digitalAsset) === "image" && digitalAsset.assetUrl && /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
3949
3949
  "img",
3950
3950
  {
3951
3951
  src: AssetUtility_default.resolveUrl(props.serviceClient?.baseUrl, digitalAsset.assetUrl),
@@ -3955,9 +3955,9 @@ var init_AssetUpload = __esm({
3955
3955
  )
3956
3956
  ] })
3957
3957
  ] }),
3958
- digitalAsset.assetUrl?.endsWith(".m3u8") && /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "col-span-2", children: [
3959
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("p", { className: "text-gray-500", children: "HLS Link" }),
3960
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
3958
+ digitalAsset.assetUrl?.endsWith(".m3u8") && /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "col-span-2", children: [
3959
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("p", { className: "text-gray-500", children: "HLS Link" }),
3960
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
3961
3961
  Hyperlink,
3962
3962
  {
3963
3963
  href: digitalAsset.assetUrl,
@@ -3968,12 +3968,12 @@ var init_AssetUpload = __esm({
3968
3968
  )
3969
3969
  ] })
3970
3970
  ] }),
3971
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
3971
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
3972
3972
  "span",
3973
3973
  {
3974
3974
  onClick: () => !isDisabled && deleteFile(index),
3975
3975
  className: isDisabled ? "cursor-not-allowed opacity-50" : "cursor-pointer",
3976
- children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Icon_default, { className: "w-4 h-4 text-primary", name: "delete" })
3976
+ children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Icon_default, { className: "w-4 h-4 text-primary", name: "delete" })
3977
3977
  }
3978
3978
  )
3979
3979
  ] }, index)) })
@@ -3985,12 +3985,12 @@ var init_AssetUpload = __esm({
3985
3985
  });
3986
3986
 
3987
3987
  // src/components/controls/edit/SwitchInput.tsx
3988
- var import_react50, import_jsx_runtime71, SwitchInput, SwitchInput_default;
3988
+ var import_react51, import_jsx_runtime72, SwitchInput, SwitchInput_default;
3989
3989
  var init_SwitchInput = __esm({
3990
3990
  "src/components/controls/edit/SwitchInput.tsx"() {
3991
3991
  "use strict";
3992
- import_react50 = __toESM(require("react"));
3993
- import_jsx_runtime71 = require("react/jsx-runtime");
3992
+ import_react51 = __toESM(require("react"));
3993
+ import_jsx_runtime72 = require("react/jsx-runtime");
3994
3994
  SwitchInput = (props) => {
3995
3995
  const textChangeHandler = (event) => {
3996
3996
  let text = event.target.checked;
@@ -4007,28 +4007,28 @@ var init_SwitchInput = __esm({
4007
4007
  if (props.value != void 0 && props.value != null && props.value != "" && (props.value == "true" || props.value.toString() == "true")) {
4008
4008
  value = true;
4009
4009
  }
4010
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_react50.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "flex items-start justify-between gap-4 py-3", children: [
4011
- /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "min-w-0", children: [
4012
- props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
4010
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_react51.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: "flex items-start justify-between gap-4 py-3", children: [
4011
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: "min-w-0", children: [
4012
+ props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
4013
4013
  "label",
4014
4014
  {
4015
4015
  htmlFor: props.name,
4016
4016
  className: "inline-block text-sm font-semibold text-slate-800",
4017
4017
  children: [
4018
4018
  props.attributes.label,
4019
- props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("span", { className: "bg-error-weak", children: "*" })
4019
+ props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: "bg-error-weak", children: "*" })
4020
4020
  ]
4021
4021
  }
4022
4022
  ),
4023
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage || "" })
4023
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage || "" })
4024
4024
  ] }),
4025
- /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
4025
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
4026
4026
  "label",
4027
4027
  {
4028
4028
  htmlFor: props.name,
4029
4029
  className: "relative inline-flex shrink-0 cursor-pointer items-center peer-disabled:cursor-not-allowed",
4030
4030
  children: [
4031
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
4031
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
4032
4032
  "input",
4033
4033
  {
4034
4034
  type: "checkbox",
@@ -4041,13 +4041,13 @@ var init_SwitchInput = __esm({
4041
4041
  className: "peer sr-only"
4042
4042
  }
4043
4043
  ),
4044
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
4044
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
4045
4045
  "div",
4046
4046
  {
4047
4047
  className: "h-6 w-11 rounded-full bg-slate-200 shadow-inner\n transition-colors duration-200 ease-in-out\n peer-checked:bg-blue-600\n peer-focus-visible:ring-2 peer-focus-visible:ring-blue-300 peer-focus-visible:ring-offset-2\n peer-disabled:bg-slate-100"
4048
4048
  }
4049
4049
  ),
4050
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
4050
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
4051
4051
  "div",
4052
4052
  {
4053
4053
  className: "absolute left-0.5 top-0.5 h-5 w-5 rounded-full bg-default shadow\n transition-transform duration-200 ease-in-out\n peer-checked:translate-x-5\n peer-disabled:bg-slate-50"
@@ -4145,15 +4145,15 @@ var init_DateTimeUtility = __esm({
4145
4145
  });
4146
4146
 
4147
4147
  // src/components/controls/edit/DateInput.tsx
4148
- var import_react51, import_jsx_runtime72, DateInput, DateInput_default;
4148
+ var import_react52, import_jsx_runtime73, DateInput, DateInput_default;
4149
4149
  var init_DateInput = __esm({
4150
4150
  "src/components/controls/edit/DateInput.tsx"() {
4151
4151
  "use strict";
4152
- import_react51 = require("react");
4152
+ import_react52 = require("react");
4153
4153
  init_DateTimeUtility();
4154
- import_jsx_runtime72 = require("react/jsx-runtime");
4154
+ import_jsx_runtime73 = require("react/jsx-runtime");
4155
4155
  DateInput = (props) => {
4156
- const value = (0, import_react51.useMemo)(() => {
4156
+ const value = (0, import_react52.useMemo)(() => {
4157
4157
  if (props.value === void 0 || props.value === null || props.value === "") {
4158
4158
  return "";
4159
4159
  }
@@ -4185,11 +4185,11 @@ var init_DateInput = __esm({
4185
4185
  groupKey: props.groupKey
4186
4186
  });
4187
4187
  };
4188
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("label", { className: "block mb-1", children: [
4189
- props.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: "text-sm font-medium", children: props.attributes.label }),
4188
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("label", { className: "block mb-1", children: [
4189
+ props.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { className: "text-sm font-medium", children: props.attributes.label }),
4190
4190
  " ",
4191
- props.attributes?.label && props.attributes.required && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: "bg-error-weak", children: "*" }),
4192
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
4191
+ props.attributes?.label && props.attributes.required && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { className: "bg-error-weak", children: "*" }),
4192
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
4193
4193
  "input",
4194
4194
  {
4195
4195
  type: "date",
@@ -4203,7 +4203,7 @@ var init_DateInput = __esm({
4203
4203
  className: `peer input mt-1 py-1.5 block w-full rounded shadow-sm ${props.inputClasses ?? ""}`
4204
4204
  }
4205
4205
  ),
4206
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props.attributes?.errorMessage ?? "" })
4206
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props.attributes?.errorMessage ?? "" })
4207
4207
  ] });
4208
4208
  };
4209
4209
  DateInput_default = DateInput;
@@ -4211,16 +4211,16 @@ var init_DateInput = __esm({
4211
4211
  });
4212
4212
 
4213
4213
  // src/components/controls/edit/RadioInput.tsx
4214
- var import_react52, import_jsx_runtime73, RadioInput, RadioInput_default;
4214
+ var import_react53, import_jsx_runtime74, RadioInput, RadioInput_default;
4215
4215
  var init_RadioInput = __esm({
4216
4216
  "src/components/controls/edit/RadioInput.tsx"() {
4217
4217
  "use strict";
4218
- import_react52 = require("react");
4218
+ import_react53 = require("react");
4219
4219
  init_Icon();
4220
- import_jsx_runtime73 = require("react/jsx-runtime");
4220
+ import_jsx_runtime74 = require("react/jsx-runtime");
4221
4221
  RadioInput = (props) => {
4222
- const [list, setList] = (0, import_react52.useState)([]);
4223
- (0, import_react52.useEffect)(() => {
4222
+ const [list, setList] = (0, import_react53.useState)([]);
4223
+ (0, import_react53.useEffect)(() => {
4224
4224
  async function loadData() {
4225
4225
  if (props.dataset) {
4226
4226
  setList(props.dataset);
@@ -4262,22 +4262,22 @@ var init_RadioInput = __esm({
4262
4262
  });
4263
4263
  }
4264
4264
  };
4265
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "block", children: [
4266
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { className: "text-sm font-medium", children: props.attributes?.label }),
4267
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "flex flex-col gap-3", children: list.map((item, index) => {
4265
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "block", children: [
4266
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "text-sm font-medium", children: props.attributes?.label }),
4267
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "flex flex-col gap-3", children: list.map((item, index) => {
4268
4268
  const itemValue = item[props.dataKeyFieldName];
4269
4269
  const isSelected = String(itemValue) === String(props.value ?? "");
4270
4270
  const isRecommended = props.dataRecommendedValue !== void 0 && String(itemValue) === String(props.dataRecommendedValue);
4271
4271
  const resultClassName = isSelected ? isRecommended ? "bg-success" : props.dataRecommendedValue ? "bg-alert" : "border-transparent" : "border-transparent";
4272
4272
  const iconName = isSelected && props.dataRecommendedValue ? isRecommended ? "checkCircle" : "xCircle" : void 0;
4273
4273
  const inputId = `${props.name}-${props.index ?? 0}-id-${index}`;
4274
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
4274
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
4275
4275
  "div",
4276
4276
  {
4277
4277
  className: `font-normal flex items-center justify-between gap-4 cursor-pointer border rounded p-2 ${resultClassName}`,
4278
4278
  children: [
4279
- /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "flex gap-4 items-start", children: [
4280
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
4279
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "flex gap-4 items-start", children: [
4280
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
4281
4281
  "input",
4282
4282
  {
4283
4283
  type: "radio",
@@ -4291,15 +4291,15 @@ var init_RadioInput = __esm({
4291
4291
  required: props.attributes?.required
4292
4292
  }
4293
4293
  ),
4294
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("label", { className: "text-body-950 pr-2", htmlFor: inputId, children: item[props.dataTextFieldName] })
4294
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("label", { className: "text-body-950 pr-2", htmlFor: inputId, children: item[props.dataTextFieldName] })
4295
4295
  ] }),
4296
- iconName && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Icon_default, { className: "w-5 h-5 text-success", name: iconName })
4296
+ iconName && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Icon_default, { className: "w-5 h-5 text-success", name: iconName })
4297
4297
  ]
4298
4298
  },
4299
4299
  String(itemValue)
4300
4300
  );
4301
4301
  }) }),
4302
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props.attributes?.errorMessage ?? "" })
4302
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props.attributes?.errorMessage ?? "" })
4303
4303
  ] });
4304
4304
  };
4305
4305
  RadioInput_default = RadioInput;
@@ -4307,15 +4307,15 @@ var init_RadioInput = __esm({
4307
4307
  });
4308
4308
 
4309
4309
  // src/components/controls/edit/Switcher.tsx
4310
- var import_react53, import_jsx_runtime74, Switcher, Switcher_default;
4310
+ var import_react54, import_jsx_runtime75, Switcher, Switcher_default;
4311
4311
  var init_Switcher = __esm({
4312
4312
  "src/components/controls/edit/Switcher.tsx"() {
4313
4313
  "use strict";
4314
- import_react53 = require("react");
4315
- import_jsx_runtime74 = require("react/jsx-runtime");
4314
+ import_react54 = require("react");
4315
+ import_jsx_runtime75 = require("react/jsx-runtime");
4316
4316
  Switcher = (props) => {
4317
- const [list, setList] = (0, import_react53.useState)([]);
4318
- (0, import_react53.useEffect)(() => {
4317
+ const [list, setList] = (0, import_react54.useState)([]);
4318
+ (0, import_react54.useEffect)(() => {
4319
4319
  async function loadData() {
4320
4320
  if (props.dataset) {
4321
4321
  setList(props.dataset);
@@ -4356,9 +4356,9 @@ var init_Switcher = __esm({
4356
4356
  });
4357
4357
  };
4358
4358
  const value = props.value === void 0 || props.value === null ? "" : String(props.value);
4359
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("label", { className: "block mb-1", children: [
4360
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "text-sm font-medium", children: props.attributes?.label }),
4361
- list.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
4359
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("label", { className: "block mb-1", children: [
4360
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { className: "text-sm font-medium", children: props.attributes?.label }),
4361
+ list.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
4362
4362
  "input",
4363
4363
  {
4364
4364
  type: "text",
@@ -4371,7 +4371,7 @@ var init_Switcher = __esm({
4371
4371
  disabled: props.attributes?.readOnly,
4372
4372
  className: `peer input mt-1 py-1.5 block w-full rounded shadow-sm ${props.inputClasses ?? ""}`
4373
4373
  }
4374
- ) : /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
4374
+ ) : /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
4375
4375
  "select",
4376
4376
  {
4377
4377
  name: props.name,
@@ -4382,8 +4382,8 @@ var init_Switcher = __esm({
4382
4382
  disabled: props.attributes?.readOnly,
4383
4383
  className: `peer select my-1 py-1 block w-full rounded shadow-sm ${props.inputClasses ?? ""}`,
4384
4384
  children: [
4385
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("option", { value: "", children: props.attributes?.placeholder || "Select" }),
4386
- list.map((item) => /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
4385
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("option", { value: "", children: props.attributes?.placeholder || "Select" }),
4386
+ list.map((item) => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
4387
4387
  "option",
4388
4388
  {
4389
4389
  value: item[props.dataKeyFieldName],
@@ -4394,7 +4394,7 @@ var init_Switcher = __esm({
4394
4394
  ]
4395
4395
  }
4396
4396
  ),
4397
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props.attributes?.errorMessage ?? "" })
4397
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props.attributes?.errorMessage ?? "" })
4398
4398
  ] });
4399
4399
  };
4400
4400
  Switcher_default = Switcher;
@@ -4402,14 +4402,14 @@ var init_Switcher = __esm({
4402
4402
  });
4403
4403
 
4404
4404
  // src/components/controls/edit/ReferenceInput.tsx
4405
- var import_jsx_runtime75, ReferenceInput, ReferenceInput_default;
4405
+ var import_jsx_runtime76, ReferenceInput, ReferenceInput_default;
4406
4406
  var init_ReferenceInput = __esm({
4407
4407
  "src/components/controls/edit/ReferenceInput.tsx"() {
4408
4408
  "use strict";
4409
4409
  init_SelectWithSearchInput();
4410
- import_jsx_runtime75 = require("react/jsx-runtime");
4410
+ import_jsx_runtime76 = require("react/jsx-runtime");
4411
4411
  ReferenceInput = (props) => {
4412
- return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(SelectWithSearchInput_default, { ...props });
4412
+ return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(SelectWithSearchInput_default, { ...props });
4413
4413
  };
4414
4414
  ReferenceInput_default = ReferenceInput;
4415
4415
  }
@@ -4420,12 +4420,12 @@ var InputControlClient_exports = {};
4420
4420
  __export(InputControlClient_exports, {
4421
4421
  default: () => InputControlClient_default
4422
4422
  });
4423
- var import_react54, import_jsx_runtime76, InputControl, InputControlClient_default;
4423
+ var import_react55, import_jsx_runtime77, InputControl, InputControlClient_default;
4424
4424
  var init_InputControlClient = __esm({
4425
4425
  "src/components/controls/edit/InputControlClient.tsx"() {
4426
4426
  "use strict";
4427
4427
  "use client";
4428
- import_react54 = __toESM(require("react"));
4428
+ import_react55 = __toESM(require("react"));
4429
4429
  init_MultilineTextInput();
4430
4430
  init_LineTextInput();
4431
4431
  init_MoneyInput();
@@ -4449,8 +4449,8 @@ var init_InputControlClient = __esm({
4449
4449
  init_RadioInput();
4450
4450
  init_Switcher();
4451
4451
  init_ReferenceInput();
4452
- import_jsx_runtime76 = require("react/jsx-runtime");
4453
- InputControl = import_react54.default.forwardRef(
4452
+ import_jsx_runtime77 = require("react/jsx-runtime");
4453
+ InputControl = import_react55.default.forwardRef(
4454
4454
  (props, ref) => {
4455
4455
  const ControlComponents = {
4456
4456
  [InputControlType_default.lineTextInput]: LineTextInput_default,
@@ -4478,7 +4478,7 @@ var init_InputControlClient = __esm({
4478
4478
  [InputControlType_default.referenceInput]: ReferenceInput_default
4479
4479
  };
4480
4480
  const SelectedControlComponent = ControlComponents[props.controlType];
4481
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_react54.default.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
4481
+ return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_react55.default.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
4482
4482
  }
4483
4483
  );
4484
4484
  InputControl.displayName = "InputControl";
@@ -4504,16 +4504,16 @@ var DataBindingControls_exports = {};
4504
4504
  __export(DataBindingControls_exports, {
4505
4505
  default: () => DataBindingControls_default
4506
4506
  });
4507
- var import_react55, import_navigation, import_jsx_runtime77, humanize, escapeODataString, parseFacetSelections, buildFacetFilter, parseODataSearch, normalizeSortOption, DUMMY_FACETS, DUMMY_SORT_OPTIONS, DataBindingControls, DataBindingControls_default;
4507
+ var import_react56, import_navigation, import_jsx_runtime78, humanize, escapeODataString, parseFacetSelections, buildFacetFilter, parseODataSearch, normalizeSortOption, DUMMY_FACETS, DUMMY_SORT_OPTIONS, DataBindingControls, DataBindingControls_default;
4508
4508
  var init_DataBindingControls = __esm({
4509
4509
  "src/components/pageRenderingEngine/nodes/DataBindingControls.tsx"() {
4510
4510
  "use strict";
4511
4511
  "use client";
4512
- import_react55 = require("react");
4512
+ import_react56 = require("react");
4513
4513
  import_navigation = require("next/navigation");
4514
4514
  init_InputControl();
4515
4515
  init_InputControlType();
4516
- import_jsx_runtime77 = require("react/jsx-runtime");
4516
+ import_jsx_runtime78 = require("react/jsx-runtime");
4517
4517
  humanize = (value) => value.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " ").trim();
4518
4518
  escapeODataString = (value) => value.replace(/'/g, "''");
4519
4519
  parseFacetSelections = (filter) => {
@@ -4590,12 +4590,12 @@ var init_DataBindingControls = __esm({
4590
4590
  const selectedFacetValues = parseFacetSelections(currentFilter);
4591
4591
  const currentSort = query?.["$orderby"] ?? query?.orderBy ?? "";
4592
4592
  const currentSearch = parseODataSearch(query?.["$search"]);
4593
- const [searchText, setSearchText] = (0, import_react55.useState)(currentSearch);
4594
- const lastNavigationUrl = (0, import_react55.useRef)(null);
4595
- (0, import_react55.useEffect)(() => {
4593
+ const [searchText, setSearchText] = (0, import_react56.useState)(currentSearch);
4594
+ const lastNavigationUrl = (0, import_react56.useRef)(null);
4595
+ (0, import_react56.useEffect)(() => {
4596
4596
  setSearchText(currentSearch);
4597
4597
  }, [currentSearch]);
4598
- const getQueryUrl = (0, import_react55.useCallback)(
4598
+ const getQueryUrl = (0, import_react56.useCallback)(
4599
4599
  (updates) => {
4600
4600
  const params = new URLSearchParams(query ?? {});
4601
4601
  Object.entries(updates).forEach(([key, value]) => {
@@ -4625,7 +4625,7 @@ var init_DataBindingControls = __esm({
4625
4625
  filter: void 0
4626
4626
  });
4627
4627
  };
4628
- const navigateWithoutReload = (0, import_react55.useCallback)(
4628
+ const navigateWithoutReload = (0, import_react56.useCallback)(
4629
4629
  (url) => {
4630
4630
  if (lastNavigationUrl.current === url) {
4631
4631
  return;
@@ -4641,7 +4641,7 @@ var init_DataBindingControls = __esm({
4641
4641
  },
4642
4642
  [router]
4643
4643
  );
4644
- (0, import_react55.useEffect)(() => {
4644
+ (0, import_react56.useEffect)(() => {
4645
4645
  const trimmedSearchText = searchText.trim();
4646
4646
  if (trimmedSearchText === currentSearch.trim()) {
4647
4647
  return;
@@ -4662,8 +4662,8 @@ var init_DataBindingControls = __esm({
4662
4662
  if (!shouldShowToolbar && !shouldShowFacets) {
4663
4663
  return null;
4664
4664
  }
4665
- const renderFacetLinks = (field, values, stacked = false) => /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: stacked ? "flex flex-col gap-1" : "flex flex-wrap gap-2", children: [
4666
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
4665
+ const renderFacetLinks = (field, values, stacked = false) => /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: stacked ? "flex flex-col gap-1" : "flex flex-wrap gap-2", children: [
4666
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
4667
4667
  "button",
4668
4668
  {
4669
4669
  type: "button",
@@ -4675,7 +4675,7 @@ var init_DataBindingControls = __esm({
4675
4675
  ),
4676
4676
  values.map((facet) => {
4677
4677
  const isSelected = selectedFacetValues.get(field) === facet.value;
4678
- return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(
4678
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
4679
4679
  "button",
4680
4680
  {
4681
4681
  type: "button",
@@ -4693,9 +4693,9 @@ var init_DataBindingControls = __esm({
4693
4693
  );
4694
4694
  })
4695
4695
  ] });
4696
- return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: mode === "toolbar" ? "mb-6" : "flex flex-col gap-2", children: [
4697
- shouldShowToolbar && /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "flex flex-col gap-3 md:flex-row md:items-center md:justify-between", children: [
4698
- showSearchBar && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "w-full max-w-xl", children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
4696
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: mode === "toolbar" ? "mb-6" : "flex flex-col gap-2", children: [
4697
+ shouldShowToolbar && /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "flex flex-col gap-3 md:flex-row md:items-center md:justify-between", children: [
4698
+ showSearchBar && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "w-full max-w-xl", children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
4699
4699
  InputControl_default,
4700
4700
  {
4701
4701
  name: "searchText",
@@ -4706,9 +4706,9 @@ var init_DataBindingControls = __esm({
4706
4706
  inputClasses: "!mt-0"
4707
4707
  }
4708
4708
  ) }),
4709
- hasSortControls && /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "flex items-center gap-2 text-sm", children: [
4710
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("span", { className: "font-medium", children: "Sort by" }),
4711
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
4709
+ hasSortControls && /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "flex items-center gap-2 text-sm", children: [
4710
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { className: "font-medium", children: "Sort by" }),
4711
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
4712
4712
  InputControl_default,
4713
4713
  {
4714
4714
  name: "sortOptions",
@@ -4729,10 +4729,10 @@ var init_DataBindingControls = __esm({
4729
4729
  )
4730
4730
  ] })
4731
4731
  ] }),
4732
- shouldShowFacets && facetGroups.length === 1 && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("nav", { "aria-label": `${humanize(facetGroups[0][0])} filters`, children: renderFacetLinks(facetGroups[0][0], facetGroups[0][1]) }),
4733
- shouldShowFacets && facetGroups.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "flex flex-col gap-2", children: facetGroups.map(([field, values]) => /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("details", { className: "border-b", open: true, children: [
4734
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("summary", { className: "cursor-pointer font-semibold", children: humanize(field) }),
4735
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "p-2", children: renderFacetLinks(field, values, true) })
4732
+ shouldShowFacets && facetGroups.length === 1 && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("nav", { "aria-label": `${humanize(facetGroups[0][0])} filters`, children: renderFacetLinks(facetGroups[0][0], facetGroups[0][1]) }),
4733
+ shouldShowFacets && facetGroups.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "flex flex-col gap-2", children: facetGroups.map(([field, values]) => /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("details", { className: "border-b", open: true, children: [
4734
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("summary", { className: "cursor-pointer font-semibold", children: humanize(field) }),
4735
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "p-2", children: renderFacetLinks(field, values, true) })
4736
4736
  ] }, field)) })
4737
4737
  ] });
4738
4738
  };
@@ -4745,13 +4745,13 @@ var Slider_exports = {};
4745
4745
  __export(Slider_exports, {
4746
4746
  default: () => Slider_default
4747
4747
  });
4748
- var import_react56, import_jsx_runtime78, Slider, ArrowButton, ProgressPill, Slider_default;
4748
+ var import_react57, import_jsx_runtime79, Slider, ArrowButton, ProgressPill, Slider_default;
4749
4749
  var init_Slider = __esm({
4750
4750
  "src/components/Slider.tsx"() {
4751
4751
  "use strict";
4752
4752
  "use client";
4753
- import_react56 = __toESM(require("react"));
4754
- import_jsx_runtime78 = require("react/jsx-runtime");
4753
+ import_react57 = __toESM(require("react"));
4754
+ import_jsx_runtime79 = require("react/jsx-runtime");
4755
4755
  Slider = ({
4756
4756
  children,
4757
4757
  slidesToShow = 4,
@@ -4769,13 +4769,13 @@ var init_Slider = __esm({
4769
4769
  pillStyle = "cumulative",
4770
4770
  progressPosition = "bottom"
4771
4771
  }) => {
4772
- const [currentSlide, setCurrentSlide] = (0, import_react56.useState)(0);
4773
- const [transition, setTransition] = (0, import_react56.useState)(true);
4774
- const [slidesToShowState, setSlidesToShowState] = (0, import_react56.useState)(
4772
+ const [currentSlide, setCurrentSlide] = (0, import_react57.useState)(0);
4773
+ const [transition, setTransition] = (0, import_react57.useState)(true);
4774
+ const [slidesToShowState, setSlidesToShowState] = (0, import_react57.useState)(
4775
4775
  typeof slidesToShow === "number" ? slidesToShow : slidesToShow.large
4776
4776
  );
4777
- const [isPlaying, setIsPlaying] = (0, import_react56.useState)(autoplay);
4778
- (0, import_react56.useEffect)(() => {
4777
+ const [isPlaying, setIsPlaying] = (0, import_react57.useState)(autoplay);
4778
+ (0, import_react57.useEffect)(() => {
4779
4779
  if (typeof slidesToShow === "number") return;
4780
4780
  const handleResize = () => {
4781
4781
  if (window.innerWidth >= 1024) {
@@ -4790,7 +4790,7 @@ var init_Slider = __esm({
4790
4790
  window.addEventListener("resize", handleResize);
4791
4791
  return () => window.removeEventListener("resize", handleResize);
4792
4792
  }, [slidesToShow]);
4793
- (0, import_react56.useEffect)(() => {
4793
+ (0, import_react57.useEffect)(() => {
4794
4794
  if (!autoplay) return;
4795
4795
  const timer = setInterval(() => {
4796
4796
  if (isPlaying) {
@@ -4799,7 +4799,7 @@ var init_Slider = __esm({
4799
4799
  }, autoplay_speed);
4800
4800
  return () => clearInterval(timer);
4801
4801
  }, [autoplay, autoplay_speed, currentSlide, isPlaying]);
4802
- const totalSlides = import_react56.Children.count(children);
4802
+ const totalSlides = import_react57.Children.count(children);
4803
4803
  const maxSlide = totalSlides - slidesToShowState;
4804
4804
  const nextSlide = () => {
4805
4805
  if (currentSlide >= maxSlide) {
@@ -4844,16 +4844,16 @@ var init_Slider = __esm({
4844
4844
  }
4845
4845
  };
4846
4846
  const translateX = -currentSlide * (100 / slidesToShowState);
4847
- const slides = import_react56.Children.map(children, (child, index) => {
4848
- if (!import_react56.default.isValidElement(child)) return null;
4847
+ const slides = import_react57.Children.map(children, (child, index) => {
4848
+ if (!import_react57.default.isValidElement(child)) return null;
4849
4849
  const childProps = child.props;
4850
4850
  const mergedClassName = `${childProps.className ?? ""} w-full`.trim();
4851
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
4851
+ return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
4852
4852
  "div",
4853
4853
  {
4854
4854
  className: `flex-none ${scaleOnHover ? "group hover:z-50" : ""} relative`,
4855
4855
  style: { width: `calc(${100 / slidesToShowState}%)`, paddingRight: gap },
4856
- children: (0, import_react56.cloneElement)(child, {
4856
+ children: (0, import_react57.cloneElement)(child, {
4857
4857
  className: mergedClassName
4858
4858
  })
4859
4859
  },
@@ -4871,14 +4871,14 @@ var init_Slider = __esm({
4871
4871
  return "bottom-4";
4872
4872
  }
4873
4873
  };
4874
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
4874
+ return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
4875
4875
  "div",
4876
4876
  {
4877
4877
  className: `relative w-full overflow-hidden ${className}`,
4878
4878
  onMouseEnter: handleMouseEnter,
4879
4879
  onMouseLeave: handleMouseLeave,
4880
4880
  children: [
4881
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
4881
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
4882
4882
  "div",
4883
4883
  {
4884
4884
  className: "flex h-full",
@@ -4889,18 +4889,18 @@ var init_Slider = __esm({
4889
4889
  children: slides
4890
4890
  }
4891
4891
  ),
4892
- show_arrows && /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(import_jsx_runtime78.Fragment, { children: [
4893
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
4892
+ show_arrows && /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_jsx_runtime79.Fragment, { children: [
4893
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
4894
4894
  ArrowButton,
4895
4895
  {
4896
4896
  direction: "left",
4897
4897
  onClick: prevSlide,
4898
4898
  visible: infinite_scroll || currentSlide > 0,
4899
4899
  className: arrowClassName,
4900
- children: /* @__PURE__ */ (0, import_jsx_runtime78.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_runtime78.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M15.75 19.5 8.25 12l7.5-7.5" }) })
4900
+ children: /* @__PURE__ */ (0, import_jsx_runtime79.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_runtime79.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M15.75 19.5 8.25 12l7.5-7.5" }) })
4901
4901
  }
4902
4902
  ),
4903
- /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
4903
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
4904
4904
  ArrowButton,
4905
4905
  {
4906
4906
  direction: "right",
@@ -4908,13 +4908,13 @@ var init_Slider = __esm({
4908
4908
  visible: infinite_scroll || currentSlide < maxSlide,
4909
4909
  className: arrowClassName,
4910
4910
  children: [
4911
- /* @__PURE__ */ (0, import_jsx_runtime78.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_runtime78.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "m8.25 4.5 7.5 7.5-7.5 7.5" }) }),
4911
+ /* @__PURE__ */ (0, import_jsx_runtime79.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_runtime79.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "m8.25 4.5 7.5 7.5-7.5 7.5" }) }),
4912
4912
  " "
4913
4913
  ]
4914
4914
  }
4915
4915
  )
4916
4916
  ] }),
4917
- show_dots && /* @__PURE__ */ (0, import_jsx_runtime78.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_runtime78.jsx)(
4917
+ show_dots && /* @__PURE__ */ (0, import_jsx_runtime79.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_runtime79.jsx)(
4918
4918
  ProgressPill,
4919
4919
  {
4920
4920
  active: index === currentSlide,
@@ -4940,7 +4940,7 @@ var init_Slider = __esm({
4940
4940
  visible,
4941
4941
  children,
4942
4942
  className = ""
4943
- }) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
4943
+ }) => /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
4944
4944
  "button",
4945
4945
  {
4946
4946
  className: `
@@ -4966,13 +4966,13 @@ var init_Slider = __esm({
4966
4966
  currentSlide,
4967
4967
  totalSlides
4968
4968
  }) => {
4969
- const [progress, setProgress] = (0, import_react56.useState)(0);
4970
- (0, import_react56.useEffect)(() => {
4969
+ const [progress, setProgress] = (0, import_react57.useState)(0);
4970
+ (0, import_react57.useEffect)(() => {
4971
4971
  if (active) {
4972
4972
  setProgress(0);
4973
4973
  }
4974
4974
  }, [active, index]);
4975
- (0, import_react56.useEffect)(() => {
4975
+ (0, import_react57.useEffect)(() => {
4976
4976
  if (!active || !isPlaying) {
4977
4977
  if (!active) {
4978
4978
  setProgress(0);
@@ -5027,7 +5027,7 @@ var init_Slider = __esm({
5027
5027
  const renderProgressBar = () => {
5028
5028
  if (style === "modern" && isActive || style === "cumulative" && shouldShowProgress) {
5029
5029
  const displayProgress = style === "cumulative" && isFilled ? 100 : progress;
5030
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
5030
+ return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
5031
5031
  "div",
5032
5032
  {
5033
5033
  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`,
@@ -5039,7 +5039,7 @@ var init_Slider = __esm({
5039
5039
  };
5040
5040
  const renderCumulativeFill = () => {
5041
5041
  if (style === "cumulative" && isFilled && !isActive) {
5042
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
5042
+ return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
5043
5043
  "div",
5044
5044
  {
5045
5045
  className: `absolute top-0 left-0 h-full rounded-full ${activeClassName || "bg-white"} transition-all duration-300`,
@@ -5049,7 +5049,7 @@ var init_Slider = __esm({
5049
5049
  }
5050
5050
  return null;
5051
5051
  };
5052
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
5052
+ return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
5053
5053
  "button",
5054
5054
  {
5055
5055
  className: `${baseClasses} ${getStyleClasses()}`,
@@ -5077,10 +5077,10 @@ __export(server_exports, {
5077
5077
  module.exports = __toCommonJS(server_exports);
5078
5078
 
5079
5079
  // src/components/pageRenderingEngine/PageBodyRenderer.tsx
5080
- var import_react58 = __toESM(require("react"));
5080
+ var import_react59 = __toESM(require("react"));
5081
5081
 
5082
5082
  // src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
5083
- var import_react22 = __toESM(require("react"));
5083
+ var import_react23 = __toESM(require("react"));
5084
5084
 
5085
5085
  // src/components/pageRenderingEngine/nodes/TextNode.tsx
5086
5086
  var import_jsx_runtime = require("react/jsx-runtime");
@@ -5524,7 +5524,7 @@ var EquationNode = ({ node }) => {
5524
5524
  var EquationNode_default = EquationNode;
5525
5525
 
5526
5526
  // src/components/controls/view/ViewControl.tsx
5527
- var import_react21 = __toESM(require("react"));
5527
+ var import_react22 = __toESM(require("react"));
5528
5528
 
5529
5529
  // src/components/controls/view/ViewControlTypes.tsx
5530
5530
  var ViewControlTypes = {
@@ -5533,6 +5533,7 @@ var ViewControlTypes = {
5533
5533
  asset: "asset",
5534
5534
  video: "video",
5535
5535
  multilineTextBullets: "multilineTextBullets",
5536
+ tagsBullets: "tagsBullets",
5536
5537
  boolean: "boolean",
5537
5538
  checkboxInput: "boolean",
5538
5539
  money: "money",
@@ -5714,19 +5715,41 @@ var MultilineTextBullets = (props) => {
5714
5715
  };
5715
5716
  var MultilineTextBulletsView_default = MultilineTextBullets;
5716
5717
 
5717
- // src/components/controls/view/MultilineTextView.tsx
5718
+ // src/components/controls/view/TagsBulletsView.tsx
5718
5719
  var import_react17 = __toESM(require("react"));
5719
5720
  var import_jsx_runtime24 = require("react/jsx-runtime");
5721
+ var getText = (node) => {
5722
+ if (node === null || node === void 0 || typeof node === "boolean") return "";
5723
+ if (typeof node === "string" || typeof node === "number") return String(node);
5724
+ if (Array.isArray(node)) return node.map(getText).join("");
5725
+ if (import_react17.default.isValidElement(node)) return getText(node.props.children);
5726
+ return "";
5727
+ };
5728
+ var TagsBulletsView = (props) => {
5729
+ const rawTags = Array.isArray(props.value) ? props.value : typeof props.value === "string" ? props.value.split(",") : [];
5730
+ const tags = rawTags.map((tag) => getText(tag).trim()).filter((tag) => tag);
5731
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react17.default.Fragment, { children: tags && tags.map((tag, index) => {
5732
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("span", { children: [
5733
+ index > 0 && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { children: " \u2022 " }),
5734
+ tag
5735
+ ] }, index);
5736
+ }) });
5737
+ };
5738
+ var TagsBulletsView_default = TagsBulletsView;
5739
+
5740
+ // src/components/controls/view/MultilineTextView.tsx
5741
+ var import_react18 = __toESM(require("react"));
5742
+ var import_jsx_runtime25 = require("react/jsx-runtime");
5720
5743
  var MultilineText = (props) => {
5721
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react17.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "break-all whitespace-pre-line", children: props.value }) });
5744
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_react18.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "break-all whitespace-pre-line", children: props.value }) });
5722
5745
  };
5723
5746
  var MultilineTextView_default = MultilineText;
5724
5747
 
5725
5748
  // src/components/controls/view/PercentageView.tsx
5726
- var import_react18 = __toESM(require("react"));
5727
- var import_jsx_runtime25 = require("react/jsx-runtime");
5749
+ var import_react19 = __toESM(require("react"));
5750
+ var import_jsx_runtime26 = require("react/jsx-runtime");
5728
5751
  var PercentageView = (props) => {
5729
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_react18.default.Fragment, { children: [
5752
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_react19.default.Fragment, { children: [
5730
5753
  props.value,
5731
5754
  "%"
5732
5755
  ] });
@@ -5734,16 +5757,16 @@ var PercentageView = (props) => {
5734
5757
  var PercentageView_default = PercentageView;
5735
5758
 
5736
5759
  // src/components/controls/view/ProgressIndicator.tsx
5737
- var import_react19 = __toESM(require("react"));
5738
- var import_jsx_runtime26 = require("react/jsx-runtime");
5760
+ var import_react20 = __toESM(require("react"));
5761
+ var import_jsx_runtime27 = require("react/jsx-runtime");
5739
5762
  var ProgressIndicator = (props) => {
5740
5763
  const percentage = 100;
5741
5764
  const circumference = Math.PI * 56;
5742
5765
  const offset = circumference * (1 - percentage / 100);
5743
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react19.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "relative w-48 h-48", children: [
5744
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "absolute top-0 left-0 w-full h-full rounded-full border border-gray-200" }),
5745
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "absolute top-0 left-0 w-full h-full rounded-full overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "w-full h-full rounded-full border-t-8 border-green-500", style: { transform: `rotate(-90deg)`, clipPath: `inset(0px ${offset}px 0px 0px)` } }) }),
5746
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "absolute top-0 left-0 w-full h-full flex items-center justify-center text-lg font-bold text-gray-800", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("span", { children: [
5766
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react20.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "relative w-48 h-48", children: [
5767
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "absolute top-0 left-0 w-full h-full rounded-full border border-gray-200" }),
5768
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "absolute top-0 left-0 w-full h-full rounded-full overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "w-full h-full rounded-full border-t-8 border-green-500", style: { transform: `rotate(-90deg)`, clipPath: `inset(0px ${offset}px 0px 0px)` } }) }),
5769
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "absolute top-0 left-0 w-full h-full flex items-center justify-center text-lg font-bold text-gray-800", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("span", { children: [
5747
5770
  percentage,
5748
5771
  "%"
5749
5772
  ] }) })
@@ -5752,18 +5775,18 @@ var ProgressIndicator = (props) => {
5752
5775
  var ProgressIndicator_default = ProgressIndicator;
5753
5776
 
5754
5777
  // src/components/controls/view/AiGeneratedSummary.tsx
5755
- var import_jsx_runtime27 = require("react/jsx-runtime");
5778
+ var import_jsx_runtime28 = require("react/jsx-runtime");
5756
5779
  var AiGeneratedSummary = (props) => {
5757
5780
  const lines = props.value?.split("\n").filter((line) => line.trim() !== "") || [];
5758
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("details", { className: "group rounded-xl border-2 bg-white shadow-sm border-p overflow-hidden", children: [
5759
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("summary", { className: "flex items-start justify-between cursor-pointer list-none", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex items-start gap-3 ", children: [
5760
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "bg-primary-base bg-transparent rounded mt-1 p-1", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: "1.5", stroke: "currentColor", className: "w-5", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M9.813 15.904 9 18.75l-.813-2.846a4.5 4.5 0 0 0-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 0 0 3.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 0 0 3.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 0 0-3.09 3.09ZM18.259 8.715 18 9.75l-.259-1.035a3.375 3.375 0 0 0-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 0 0 2.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 0 0 2.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 0 0-2.456 2.456ZM16.894 20.567 16.5 21.75l-.394-1.183a2.25 2.25 0 0 0-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 0 0 1.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 0 0 1.423 1.423l1.183.394-1.183.394a2.25 2.25 0 0 0-1.423 1.423Z" }) }) }),
5761
- /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { children: [
5762
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("h3", { className: "text-lg font-semibold ", children: "Quick Read" }),
5763
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("p", { className: "text-sm text-gray-500 mb-0", children: "Summary is AI-generated, author-reviewed" })
5781
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("details", { className: "group rounded-xl border-2 bg-white shadow-sm border-p overflow-hidden", children: [
5782
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("summary", { className: "flex items-start justify-between cursor-pointer list-none", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "flex items-start gap-3 ", children: [
5783
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "bg-primary-base bg-transparent rounded mt-1 p-1", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: "1.5", stroke: "currentColor", className: "w-5", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M9.813 15.904 9 18.75l-.813-2.846a4.5 4.5 0 0 0-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 0 0 3.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 0 0 3.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 0 0-3.09 3.09ZM18.259 8.715 18 9.75l-.259-1.035a3.375 3.375 0 0 0-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 0 0 2.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 0 0 2.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 0 0-2.456 2.456ZM16.894 20.567 16.5 21.75l-.394-1.183a2.25 2.25 0 0 0-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 0 0 1.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 0 0 1.423 1.423l1.183.394-1.183.394a2.25 2.25 0 0 0-1.423 1.423Z" }) }) }),
5784
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { children: [
5785
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("h3", { className: "text-lg font-semibold ", children: "Quick Read" }),
5786
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("p", { className: "text-sm text-gray-500 mb-0", children: "Summary is AI-generated, author-reviewed" })
5764
5787
  ] })
5765
5788
  ] }) }),
5766
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("ul", { className: "list-disc pl-6 space-y-3 text-gray-700 ps-4 pl-4", children: lines.map((line, index) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("li", { className: "m-0", children: line }, index)) }) })
5789
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("ul", { className: "list-disc pl-6 space-y-3 text-gray-700 ps-4 pl-4", children: lines.map((line, index) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("li", { className: "m-0", children: line }, index)) }) })
5767
5790
  ] });
5768
5791
  };
5769
5792
  var AiGeneratedSummary_default = AiGeneratedSummary;
@@ -5783,13 +5806,14 @@ var TimeUntilStarts = (0, import_dynamic6.default)(() => Promise.resolve().then(
5783
5806
  var TimeUntilStarts_default = TimeUntilStarts;
5784
5807
 
5785
5808
  // src/components/controls/view/ViewControl.tsx
5786
- var import_jsx_runtime30 = require("react/jsx-runtime");
5809
+ var import_jsx_runtime31 = require("react/jsx-runtime");
5787
5810
  var ViewControl = (props) => {
5788
5811
  const ControlComponents = {
5789
5812
  [ViewControlTypes_default.lineText]: LineTextView_default,
5790
5813
  [ViewControlTypes_default.emailText]: EmailTextView_default,
5791
5814
  [ViewControlTypes_default.asset]: Asset_default,
5792
5815
  [ViewControlTypes_default.multilineTextBullets]: MultilineTextBulletsView_default,
5816
+ [ViewControlTypes_default.tagsBullets]: TagsBulletsView_default,
5793
5817
  [ViewControlTypes_default.boolean]: BooleanView_default,
5794
5818
  [ViewControlTypes_default.checkboxInput]: BooleanView_default,
5795
5819
  [ViewControlTypes_default.timeUntilStarts]: TimeUntilStarts_default,
@@ -5812,12 +5836,12 @@ var ViewControl = (props) => {
5812
5836
  [ViewControlTypes_default.text]: LineTextView_default
5813
5837
  };
5814
5838
  const SelectedControlComponent = props.controlType ? ControlComponents[props.controlType] : void 0;
5815
- 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 });
5839
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react22.default.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
5816
5840
  };
5817
5841
  var ViewControl_default = ViewControl;
5818
5842
 
5819
5843
  // src/components/pageRenderingEngine/nodes/DatafieldNode.tsx
5820
- var import_jsx_runtime31 = require("react/jsx-runtime");
5844
+ var import_jsx_runtime32 = require("react/jsx-runtime");
5821
5845
  function getNestedProperty(obj, path) {
5822
5846
  if (!obj || !path) return null;
5823
5847
  if (path.includes(".")) {
@@ -5830,7 +5854,7 @@ function getNestedProperty(obj, path) {
5830
5854
  }
5831
5855
  const value = obj[path];
5832
5856
  if (Array.isArray(value)) {
5833
- return value.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { children: String(item) }, index));
5857
+ return value.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { children: String(item) }, index));
5834
5858
  }
5835
5859
  return value;
5836
5860
  }
@@ -5880,7 +5904,8 @@ var DatafieldNode = (props) => {
5880
5904
  const value = props.dataitem ? getNestedProperty(props.dataitem, fieldName) : null;
5881
5905
  const isEmptyValue = value === null || value === void 0 || value === "" || Array.isArray(value) && value.length === 0 || typeof value === "object" && value !== null && Object.keys(value).length === 0;
5882
5906
  const maxLines = props.node.maxLines;
5883
- if (maxLines && Number(maxLines) > 0) {
5907
+ const hasMaxLines = Boolean(maxLines && Number(maxLines) > 0);
5908
+ if (hasMaxLines) {
5884
5909
  Object.assign(styles, {
5885
5910
  display: "-webkit-box",
5886
5911
  overflow: "hidden",
@@ -5888,10 +5913,11 @@ var DatafieldNode = (props) => {
5888
5913
  WebkitLineClamp: String(maxLines)
5889
5914
  });
5890
5915
  }
5916
+ const title = hasMaxLines ? typeof value === "string" || typeof value === "number" ? String(value) : props.node.title : props.node.title;
5891
5917
  const dataType = props.node.dataType;
5892
5918
  if (isEmptyValue) return null;
5893
5919
  if (dataType === "rawContent") {
5894
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
5920
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
5895
5921
  PageBodyRenderer_default,
5896
5922
  {
5897
5923
  rawBody: String(value ?? `@databound[${fieldName}]`),
@@ -5907,12 +5933,13 @@ var DatafieldNode = (props) => {
5907
5933
  }
5908
5934
  );
5909
5935
  }
5910
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
5936
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
5911
5937
  "span",
5912
5938
  {
5913
5939
  className: `datafield-node ${props.node.format < Formats.length ? Formats[props.node.format] : ""}`,
5914
5940
  style: styles,
5915
- children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
5941
+ title,
5942
+ children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
5916
5943
  ViewControl_default,
5917
5944
  {
5918
5945
  controlType: dataType,
@@ -5925,7 +5952,7 @@ var DatafieldNode = (props) => {
5925
5952
  var DatafieldNode_default = DatafieldNode;
5926
5953
 
5927
5954
  // src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
5928
- var import_jsx_runtime32 = require("react/jsx-runtime");
5955
+ var import_jsx_runtime33 = require("react/jsx-runtime");
5929
5956
  var ParagraphNode = (props) => {
5930
5957
  const NodeTypes2 = {
5931
5958
  ["text"]: TextNode_default,
@@ -5945,9 +5972,9 @@ var ParagraphNode = (props) => {
5945
5972
  const isInlineOnlyParent = props.parentTag === "summary";
5946
5973
  const hasChildren = props.node.children && props.node.children.length > 0;
5947
5974
  if (isInlineOnlyParent) {
5948
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_jsx_runtime32.Fragment, { children: hasChildren && props.node.children.map((node, index) => {
5975
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_jsx_runtime33.Fragment, { children: hasChildren && props.node.children.map((node, index) => {
5949
5976
  const SelectedNode = NodeTypes2[node.type];
5950
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react22.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
5977
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react23.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
5951
5978
  SelectedNode,
5952
5979
  {
5953
5980
  node,
@@ -5959,10 +5986,10 @@ var ParagraphNode = (props) => {
5959
5986
  ) }, index);
5960
5987
  }) });
5961
5988
  }
5962
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: " " + formatClasses, children: [
5989
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: " " + formatClasses, children: [
5963
5990
  hasChildren && props.node.children.map((node, index) => {
5964
5991
  const SelectedNode = NodeTypes2[node.type];
5965
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react22.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
5992
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react23.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
5966
5993
  SelectedNode,
5967
5994
  {
5968
5995
  node,
@@ -5973,14 +6000,14 @@ var ParagraphNode = (props) => {
5973
6000
  }
5974
6001
  ) }, index);
5975
6002
  }),
5976
- !hasChildren && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "py-1.5 lg:py-2" })
6003
+ !hasChildren && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "py-1.5 lg:py-2" })
5977
6004
  ] });
5978
6005
  };
5979
6006
  var ParagraphNode_default = ParagraphNode;
5980
6007
 
5981
6008
  // src/components/pageRenderingEngine/nodes/HeadingNode.tsx
5982
- var import_react23 = __toESM(require("react"));
5983
- var import_jsx_runtime33 = require("react/jsx-runtime");
6009
+ var import_react24 = __toESM(require("react"));
6010
+ var import_jsx_runtime34 = require("react/jsx-runtime");
5984
6011
  var HeadingNode = (props) => {
5985
6012
  const NodeTypes2 = {
5986
6013
  ["text"]: TextNode_default,
@@ -5996,23 +6023,23 @@ var HeadingNode = (props) => {
5996
6023
  {
5997
6024
  }
5998
6025
  const formatClasses = FormatClass[props.node.format] || "";
5999
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_jsx_runtime33.Fragment, { children: import_react23.default.createElement(
6026
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_jsx_runtime34.Fragment, { children: import_react24.default.createElement(
6000
6027
  HeadingTag,
6001
6028
  { className: formatClasses },
6002
6029
  props.node.children && props.node.children.map((childNode, index) => {
6003
6030
  const SelectedNode = NodeTypes2[childNode.type];
6004
- 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);
6031
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_react24.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(SelectedNode, { node: childNode, dataitem: props.dataitem, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
6005
6032
  })
6006
6033
  ) });
6007
6034
  };
6008
6035
  var HeadingNode_default = HeadingNode;
6009
6036
 
6010
6037
  // src/components/pageRenderingEngine/nodes/ListNode.tsx
6011
- var import_react25 = __toESM(require("react"));
6038
+ var import_react26 = __toESM(require("react"));
6012
6039
 
6013
6040
  // src/components/pageRenderingEngine/nodes/ListItemNode.tsx
6014
- var import_react24 = __toESM(require("react"));
6015
- var import_jsx_runtime34 = require("react/jsx-runtime");
6041
+ var import_react25 = __toESM(require("react"));
6042
+ var import_jsx_runtime35 = require("react/jsx-runtime");
6016
6043
  var ListItemNode = (props) => {
6017
6044
  const NodeTypes2 = {
6018
6045
  text: TextNode_default,
@@ -6029,66 +6056,66 @@ var ListItemNode = (props) => {
6029
6056
  liStyle.fontSize = match[1].trim();
6030
6057
  }
6031
6058
  }
6032
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("li", { style: liStyle, children: props.node.children && props.node.children.map((node, index) => {
6059
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("li", { style: liStyle, children: props.node.children && props.node.children.map((node, index) => {
6033
6060
  const SelectedNode = NodeTypes2[node.type];
6034
6061
  if (node.type === "linebreak") {
6035
6062
  if (!foundFirstBreak) {
6036
6063
  foundFirstBreak = true;
6037
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", {}, index);
6064
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", {}, index);
6038
6065
  } else {
6039
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "py-1 lg:py-2" }, index);
6066
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "py-1 lg:py-2" }, index);
6040
6067
  }
6041
6068
  } else {
6042
6069
  foundFirstBreak = false;
6043
- 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);
6070
+ 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);
6044
6071
  }
6045
6072
  }) });
6046
6073
  };
6047
6074
  var ListItemNode_default = ListItemNode;
6048
6075
 
6049
6076
  // src/components/pageRenderingEngine/nodes/ListNode.tsx
6050
- var import_jsx_runtime35 = require("react/jsx-runtime");
6077
+ var import_jsx_runtime36 = require("react/jsx-runtime");
6051
6078
  var ListNode = (props) => {
6052
6079
  const NodeTypes2 = {
6053
6080
  listitem: ListItemNode_default
6054
6081
  };
6055
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_react25.default.Fragment, { children: [
6056
- props.node.listType == "bullet" && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("ul", { children: props.node.children && props.node.children.map((node, index) => {
6082
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_react26.default.Fragment, { children: [
6083
+ props.node.listType == "bullet" && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("ul", { children: props.node.children && props.node.children.map((node, index) => {
6057
6084
  const SelectedNode = NodeTypes2[node.type];
6058
- 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);
6085
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react26.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
6059
6086
  }) }),
6060
- props.node.listType == "number" && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("ol", { children: props.node.children && props.node.children.map((node, index) => {
6087
+ props.node.listType == "number" && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("ol", { children: props.node.children && props.node.children.map((node, index) => {
6061
6088
  const SelectedNode = NodeTypes2[node.type];
6062
- 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);
6089
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react26.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
6063
6090
  }) })
6064
6091
  ] });
6065
6092
  };
6066
6093
  var ListNode_default = ListNode;
6067
6094
 
6068
6095
  // src/components/pageRenderingEngine/nodes/QuoteNode.tsx
6069
- var import_react26 = __toESM(require("react"));
6070
- var import_jsx_runtime36 = require("react/jsx-runtime");
6096
+ var import_react27 = __toESM(require("react"));
6097
+ var import_jsx_runtime37 = require("react/jsx-runtime");
6071
6098
  var QuoteNode = (props) => {
6072
6099
  const NodeTypes2 = {
6073
6100
  ["text"]: TextNode_default,
6074
6101
  ["linebreak"]: LineBreakNode_default,
6075
6102
  ["link"]: LinkNode_default
6076
6103
  };
6077
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("blockquote", { children: props.node.children && props.node.children.map((node, index) => {
6104
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("blockquote", { children: props.node.children && props.node.children.map((node, index) => {
6078
6105
  const SelectedNode = NodeTypes2[node.type];
6079
- 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);
6106
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_react27.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(SelectedNode, { node, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
6080
6107
  }) });
6081
6108
  };
6082
6109
  var QuoteNode_default = QuoteNode;
6083
6110
 
6084
6111
  // src/components/pageRenderingEngine/nodes/CodeNode.tsx
6085
- var import_react28 = __toESM(require("react"));
6112
+ var import_react29 = __toESM(require("react"));
6086
6113
  var import_dynamic7 = __toESM(require("next/dynamic"));
6087
- var import_jsx_runtime38 = require("react/jsx-runtime");
6114
+ var import_jsx_runtime39 = require("react/jsx-runtime");
6088
6115
  var CopyButton2 = (0, import_dynamic7.default)(() => Promise.resolve().then(() => (init_CopyButton(), CopyButton_exports)), {
6089
6116
  ssr: false,
6090
6117
  // optional: fallback UI while loading
6091
- loading: () => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "text-gray-400 text-xs", children: "Copy" })
6118
+ loading: () => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { className: "text-gray-400 text-xs", children: "Copy" })
6092
6119
  });
6093
6120
  var CodeNode = (props) => {
6094
6121
  const NodeTypes2 = {
@@ -6102,14 +6129,14 @@ var CodeNode = (props) => {
6102
6129
  if (node.type === "link") return node.text || node.url || "";
6103
6130
  return "";
6104
6131
  }).join("") ?? "";
6105
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { children: [
6106
- /* @__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: [
6107
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { children: "Code Snippet" }),
6108
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(CopyButton2, { text: textContent })
6132
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { children: [
6133
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "flex items-center relative bg-neutral-strong px-4 py-3 text-xs font-sans justify-between rounded-t-md ", children: [
6134
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { children: "Code Snippet" }),
6135
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(CopyButton2, { text: textContent })
6109
6136
  ] }),
6110
- /* @__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) => {
6137
+ /* @__PURE__ */ (0, import_jsx_runtime39.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) => {
6111
6138
  const SelectedNode = NodeTypes2[node.type];
6112
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_react28.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
6139
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_react29.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
6113
6140
  SelectedNode,
6114
6141
  {
6115
6142
  node,
@@ -6124,15 +6151,15 @@ var CodeNode = (props) => {
6124
6151
  var CodeNode_default = CodeNode;
6125
6152
 
6126
6153
  // src/components/pageRenderingEngine/nodes/HorizontalRuleNode.tsx
6127
- var import_jsx_runtime39 = require("react/jsx-runtime");
6154
+ var import_jsx_runtime40 = require("react/jsx-runtime");
6128
6155
  var HorizontalRuleNode = () => {
6129
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("hr", {});
6156
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("hr", {});
6130
6157
  };
6131
6158
  var HorizontalRuleNode_default = HorizontalRuleNode;
6132
6159
 
6133
6160
  // src/components/pageRenderingEngine/nodes/WidgetNode.tsx
6134
- var import_react29 = __toESM(require("react"));
6135
- var import_jsx_runtime40 = require("react/jsx-runtime");
6161
+ var import_react30 = __toESM(require("react"));
6162
+ var import_jsx_runtime41 = require("react/jsx-runtime");
6136
6163
  var WidgetNode = (props) => {
6137
6164
  const getWidgetParameters = () => {
6138
6165
  const widgetInputParameters = {
@@ -6196,7 +6223,7 @@ var WidgetNode = (props) => {
6196
6223
  };
6197
6224
  const widgetCode = props.node?.widgetCode;
6198
6225
  if (!widgetCode) {
6199
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_jsx_runtime40.Fragment, { children: "Invalid widget" });
6226
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_jsx_runtime41.Fragment, { children: "Invalid widget" });
6200
6227
  }
6201
6228
  const widgetParams = getWidgetParameters();
6202
6229
  const WidgetRenderer = props.widgetRenderer;
@@ -6205,7 +6232,7 @@ var WidgetNode = (props) => {
6205
6232
  }
6206
6233
  return (
6207
6234
  // eslint-disable-next-line react-hooks/static-components
6208
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_react29.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
6235
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_react30.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
6209
6236
  WidgetRenderer,
6210
6237
  {
6211
6238
  params: widgetParams,
@@ -6223,11 +6250,11 @@ var WidgetNode_default = WidgetNode;
6223
6250
 
6224
6251
  // src/components/pageRenderingEngine/nodes/DivContainer.tsx
6225
6252
  var import_dynamic12 = __toESM(require("next/dynamic"));
6226
- var import_react57 = __toESM(require("react"));
6253
+ var import_react58 = __toESM(require("react"));
6227
6254
 
6228
6255
  // src/components/pageRenderingEngine/nodes/EmbedNode.tsx
6229
6256
  var import_dynamic8 = __toESM(require("next/dynamic"));
6230
- var import_jsx_runtime43 = require("react/jsx-runtime");
6257
+ var import_jsx_runtime44 = require("react/jsx-runtime");
6231
6258
  var IframeClient2 = (0, import_dynamic8.default)(() => Promise.resolve().then(() => (init_IframeClient(), IframeClient_exports)), {
6232
6259
  ssr: false
6233
6260
  });
@@ -6240,7 +6267,7 @@ var EmbedNode = (props) => {
6240
6267
  } else {
6241
6268
  src = props.node.embedSrc;
6242
6269
  }
6243
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "aspect-video", children: src && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(IframeClient2, { src }) });
6270
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "aspect-video", children: src && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(IframeClient2, { src }) });
6244
6271
  };
6245
6272
  var EmbedNode_default = EmbedNode;
6246
6273
 
@@ -6440,10 +6467,10 @@ var PathUtility = class {
6440
6467
  var PathUtility_default = new PathUtility();
6441
6468
 
6442
6469
  // src/components/NoDataFound.tsx
6443
- var import_jsx_runtime44 = require("react/jsx-runtime");
6470
+ var import_jsx_runtime45 = require("react/jsx-runtime");
6444
6471
  var NoDataFound = () => {
6445
- 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: [
6446
- /* @__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)(
6472
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center bg-neutral-weak", children: [
6473
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "mb-5", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "mx-auto w-20 h-20 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
6447
6474
  "svg",
6448
6475
  {
6449
6476
  className: "w-10 h-10",
@@ -6451,7 +6478,7 @@ var NoDataFound = () => {
6451
6478
  stroke: "currentColor",
6452
6479
  viewBox: "0 0 24 24",
6453
6480
  xmlns: "http://www.w3.org/2000/svg",
6454
- children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
6481
+ children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
6455
6482
  "path",
6456
6483
  {
6457
6484
  strokeLinecap: "round",
@@ -6462,8 +6489,8 @@ var NoDataFound = () => {
6462
6489
  )
6463
6490
  }
6464
6491
  ) }) }),
6465
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("h3", { className: "text-lg font-medium mb-2", children: "No data available" }),
6466
- /* @__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." })
6492
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("h3", { className: "text-lg font-medium mb-2", children: "No data available" }),
6493
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("p", { className: " max-w-sm mb-0", children: "No records found. Data may be empty or not available at the moment." })
6467
6494
  ] });
6468
6495
  };
6469
6496
  var NoDataFound_default = NoDataFound;
@@ -6471,7 +6498,7 @@ var NoDataFound_default = NoDataFound;
6471
6498
  // src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
6472
6499
  init_AssetUtility();
6473
6500
  var import_dynamic9 = __toESM(require("next/dynamic"));
6474
- var import_jsx_runtime45 = require("react/jsx-runtime");
6501
+ var import_jsx_runtime46 = require("react/jsx-runtime");
6475
6502
  var HlsPlayer4 = (0, import_dynamic9.default)(() => Promise.resolve().then(() => (init_HlsPlayer(), HlsPlayer_exports)), { ssr: false });
6476
6503
  var deviceToMediaQuery = (device) => {
6477
6504
  switch (device) {
@@ -6627,8 +6654,8 @@ var ImageGalleryNode = (props) => {
6627
6654
  right: "justify-end"
6628
6655
  };
6629
6656
  const formatClasses = FormatClass[props.node.format || ""] || "";
6630
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_jsx_runtime45.Fragment, { children: [
6631
- hlsSources.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_jsx_runtime45.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
6657
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(import_jsx_runtime46.Fragment, { children: [
6658
+ hlsSources.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_jsx_runtime46.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
6632
6659
  HlsPlayer4,
6633
6660
  {
6634
6661
  sources: hlsSources,
@@ -6643,7 +6670,7 @@ var ImageGalleryNode = (props) => {
6643
6670
  styles: hlsStyles
6644
6671
  }
6645
6672
  ) }),
6646
- (staticFallback || staticSources.length > 0) && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_jsx_runtime45.Fragment, { children: staticFallback ? /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("picture", { children: [
6673
+ (staticFallback || staticSources.length > 0) && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_jsx_runtime46.Fragment, { children: staticFallback ? /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("picture", { children: [
6647
6674
  DEVICE_ORDER.map((deviceKey) => {
6648
6675
  const match = staticSources.find(
6649
6676
  (img) => img.device === deviceKey
@@ -6659,7 +6686,7 @@ var ImageGalleryNode = (props) => {
6659
6686
  if (!srcUrl) {
6660
6687
  return null;
6661
6688
  }
6662
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
6689
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
6663
6690
  "source",
6664
6691
  {
6665
6692
  media: deviceToMediaQuery(match.device),
@@ -6684,7 +6711,7 @@ var ImageGalleryNode = (props) => {
6684
6711
  if (img.borderRadius) {
6685
6712
  styles.borderRadius = img.borderRadius;
6686
6713
  }
6687
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
6714
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
6688
6715
  "img",
6689
6716
  {
6690
6717
  loading: "lazy",
@@ -6699,7 +6726,7 @@ var ImageGalleryNode = (props) => {
6699
6726
  })()
6700
6727
  ] }) : (
6701
6728
  /* Case 2: Only device-specific images exist */
6702
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_jsx_runtime45.Fragment, { children: staticSources.map((img, index) => {
6729
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_jsx_runtime46.Fragment, { children: staticSources.map((img, index) => {
6703
6730
  const resolved = resolveImage(img);
6704
6731
  const imageUrl = resolved?.imageUrl;
6705
6732
  if (!imageUrl) {
@@ -6726,7 +6753,7 @@ var ImageGalleryNode = (props) => {
6726
6753
  default:
6727
6754
  display = "block";
6728
6755
  }
6729
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
6756
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
6730
6757
  "img",
6731
6758
  {
6732
6759
  loading: "lazy",
@@ -6867,28 +6894,28 @@ var shouldRenderContainer = (node, dataItem, session) => {
6867
6894
 
6868
6895
  // src/components/pageRenderingEngine/nodes/DocumentNode.tsx
6869
6896
  init_AssetUtility();
6870
- var import_jsx_runtime46 = require("react/jsx-runtime");
6897
+ var import_jsx_runtime47 = require("react/jsx-runtime");
6871
6898
  var getNestedValue5 = (obj, path) => {
6872
6899
  if (!obj || !path) return void 0;
6873
6900
  return path.split(".").reduce((current, key) => {
6874
6901
  return current && current[key] !== void 0 ? current[key] : void 0;
6875
6902
  }, obj);
6876
6903
  };
6877
- var PdfIcon = () => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
6904
+ var PdfIcon = () => /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
6878
6905
  "svg",
6879
6906
  {
6880
6907
  xmlns: "http://www.w3.org/2000/svg",
6881
6908
  viewBox: "0 0 48 48",
6882
6909
  className: "w-10 h-10",
6883
6910
  children: [
6884
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
6911
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
6885
6912
  "path",
6886
6913
  {
6887
6914
  fill: "#e53935",
6888
6915
  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"
6889
6916
  }
6890
6917
  ),
6891
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
6918
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
6892
6919
  "path",
6893
6920
  {
6894
6921
  fill: "#fff",
@@ -6898,55 +6925,55 @@ var PdfIcon = () => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
6898
6925
  ]
6899
6926
  }
6900
6927
  );
6901
- var ExcelIcon = () => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
6928
+ var ExcelIcon = () => /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
6902
6929
  "svg",
6903
6930
  {
6904
6931
  xmlns: "http://www.w3.org/2000/svg",
6905
6932
  viewBox: "0 0 48 48",
6906
6933
  className: "w-10 h-10",
6907
6934
  children: [
6908
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
6935
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
6909
6936
  "path",
6910
6937
  {
6911
6938
  fill: "#169154",
6912
6939
  d: "M29,6H15.744C14.781,6,14,6.781,14,7.744v7.259h15V6z"
6913
6940
  }
6914
6941
  ),
6915
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
6942
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
6916
6943
  "path",
6917
6944
  {
6918
6945
  fill: "#18482a",
6919
6946
  d: "M14,33.054v7.202C14,41.219,14.781,42,15.743,42H29v-8.946H14z"
6920
6947
  }
6921
6948
  ),
6922
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("path", { fill: "#0c8045", d: "M14 15.003H29V24.005000000000003H14z" }),
6923
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("path", { fill: "#17472a", d: "M14 24.005H29V33.055H14z" }),
6924
- /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("g", { children: [
6925
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
6949
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("path", { fill: "#0c8045", d: "M14 15.003H29V24.005000000000003H14z" }),
6950
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("path", { fill: "#17472a", d: "M14 24.005H29V33.055H14z" }),
6951
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("g", { children: [
6952
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
6926
6953
  "path",
6927
6954
  {
6928
6955
  fill: "#29c27f",
6929
6956
  d: "M42.256,6H29v9.003h15V7.744C44,6.781,43.219,6,42.256,6z"
6930
6957
  }
6931
6958
  ),
6932
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
6959
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
6933
6960
  "path",
6934
6961
  {
6935
6962
  fill: "#27663f",
6936
6963
  d: "M29,33.054V42h13.257C43.219,42,44,41.219,44,40.257v-7.202H29z"
6937
6964
  }
6938
6965
  ),
6939
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("path", { fill: "#19ac65", d: "M29 15.003H44V24.005000000000003H29z" }),
6940
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("path", { fill: "#129652", d: "M29 24.005H44V33.055H29z" })
6966
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("path", { fill: "#19ac65", d: "M29 15.003H44V24.005000000000003H29z" }),
6967
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("path", { fill: "#129652", d: "M29 24.005H44V33.055H29z" })
6941
6968
  ] }),
6942
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
6969
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
6943
6970
  "path",
6944
6971
  {
6945
6972
  fill: "#0c7238",
6946
6973
  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"
6947
6974
  }
6948
6975
  ),
6949
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
6976
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
6950
6977
  "path",
6951
6978
  {
6952
6979
  fill: "#fff",
@@ -6956,7 +6983,7 @@ var ExcelIcon = () => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
6956
6983
  ]
6957
6984
  }
6958
6985
  );
6959
- var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
6986
+ var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
6960
6987
  "svg",
6961
6988
  {
6962
6989
  xmlns: "http://www.w3.org/2000/svg",
@@ -6964,14 +6991,14 @@ var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
6964
6991
  className: "w-10 h-10",
6965
6992
  baseProfile: "basic",
6966
6993
  children: [
6967
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
6994
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
6968
6995
  "path",
6969
6996
  {
6970
6997
  fill: "#283593",
6971
6998
  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"
6972
6999
  }
6973
7000
  ),
6974
- /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
7001
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
6975
7002
  "linearGradient",
6976
7003
  {
6977
7004
  id: "qh2LT5tehRDFkLLfb-odWa",
@@ -6982,19 +7009,19 @@ var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
6982
7009
  gradientTransform: "translate(0 -339.89)",
6983
7010
  gradientUnits: "userSpaceOnUse",
6984
7011
  children: [
6985
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("stop", { offset: "0", "stop-color": "#66c0ff" }),
6986
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("stop", { offset: ".26", "stop-color": "#0094f0" })
7012
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("stop", { offset: "0", "stop-color": "#66c0ff" }),
7013
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("stop", { offset: ".26", "stop-color": "#0094f0" })
6987
7014
  ]
6988
7015
  }
6989
7016
  ),
6990
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
7017
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
6991
7018
  "path",
6992
7019
  {
6993
7020
  fill: "url(#qh2LT5tehRDFkLLfb-odWa)",
6994
7021
  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"
6995
7022
  }
6996
7023
  ),
6997
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
7024
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
6998
7025
  "path",
6999
7026
  {
7000
7027
  fill: "#1e88e5",
@@ -7002,21 +7029,21 @@ var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
7002
7029
  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"
7003
7030
  }
7004
7031
  ),
7005
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
7032
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
7006
7033
  "path",
7007
7034
  {
7008
7035
  fill: "#00e5ff",
7009
7036
  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"
7010
7037
  }
7011
7038
  ),
7012
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
7039
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
7013
7040
  "path",
7014
7041
  {
7015
7042
  fill: "#1565c0",
7016
7043
  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"
7017
7044
  }
7018
7045
  ),
7019
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
7046
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
7020
7047
  "path",
7021
7048
  {
7022
7049
  fill: "#fff",
@@ -7026,42 +7053,42 @@ var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
7026
7053
  ]
7027
7054
  }
7028
7055
  );
7029
- var StandardIcon = () => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
7056
+ var StandardIcon = () => /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
7030
7057
  "svg",
7031
7058
  {
7032
7059
  xmlns: "http://www.w3.org/2000/svg",
7033
7060
  viewBox: "0 0 48 48",
7034
7061
  className: "w-10 h-10",
7035
7062
  children: [
7036
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
7037
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" })
7063
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
7064
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" })
7038
7065
  ]
7039
7066
  }
7040
7067
  );
7041
- var PowerPointIcon = () => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
7068
+ var PowerPointIcon = () => /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
7042
7069
  "svg",
7043
7070
  {
7044
7071
  xmlns: "http://www.w3.org/2000/svg",
7045
7072
  viewBox: "0 0 48 48",
7046
7073
  className: "w-10 h-10",
7047
7074
  children: [
7048
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
7075
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
7049
7076
  "path",
7050
7077
  {
7051
7078
  fill: "#dc4c2c",
7052
7079
  d: "M8,24c0,9.941,8.059,18,18,18s18-8.059,18-18H26H8z"
7053
7080
  }
7054
7081
  ),
7055
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("path", { fill: "#f7a278", d: "M26,6v18h18C44,14.059,35.941,6,26,6z" }),
7056
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("path", { fill: "#c06346", d: "M26,6C16.059,6,8,14.059,8,24h18V6z" }),
7057
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
7082
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("path", { fill: "#f7a278", d: "M26,6v18h18C44,14.059,35.941,6,26,6z" }),
7083
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("path", { fill: "#c06346", d: "M26,6C16.059,6,8,14.059,8,24h18V6z" }),
7084
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
7058
7085
  "path",
7059
7086
  {
7060
7087
  fill: "#9b341f",
7061
7088
  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"
7062
7089
  }
7063
7090
  ),
7064
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
7091
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
7065
7092
  "path",
7066
7093
  {
7067
7094
  fill: "#fff",
@@ -7071,16 +7098,16 @@ var PowerPointIcon = () => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
7071
7098
  ]
7072
7099
  }
7073
7100
  );
7074
- var TextIcon = () => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
7101
+ var TextIcon = () => /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
7075
7102
  "svg",
7076
7103
  {
7077
7104
  xmlns: "http://www.w3.org/2000/svg",
7078
7105
  viewBox: "0 0 48 48",
7079
7106
  className: "w-10 h-10",
7080
7107
  children: [
7081
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
7082
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" }),
7083
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
7108
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
7109
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" }),
7110
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
7084
7111
  "path",
7085
7112
  {
7086
7113
  fill: "#1976D2",
@@ -7090,7 +7117,7 @@ var TextIcon = () => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
7090
7117
  ]
7091
7118
  }
7092
7119
  );
7093
- var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
7120
+ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
7094
7121
  "svg",
7095
7122
  {
7096
7123
  xmlns: "http://www.w3.org/2000/svg",
@@ -7100,14 +7127,14 @@ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
7100
7127
  version: "1.0",
7101
7128
  className: "w-10 h-10",
7102
7129
  children: [
7103
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("clipPath", { id: "273d29c8a6", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
7130
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("clipPath", { id: "273d29c8a6", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
7104
7131
  "path",
7105
7132
  {
7106
7133
  d: "M 8.90625 0 L 65.90625 0 L 65.90625 75 L 8.90625 75 Z M 8.90625 0 ",
7107
7134
  "clip-rule": "nonzero"
7108
7135
  }
7109
7136
  ) }) }),
7110
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("g", { "clip-path": "url(#273d29c8a6)", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
7137
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("g", { "clip-path": "url(#273d29c8a6)", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
7111
7138
  "path",
7112
7139
  {
7113
7140
  fill: "#ff9100",
@@ -7116,7 +7143,7 @@ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
7116
7143
  "fill-rule": "nonzero"
7117
7144
  }
7118
7145
  ) }),
7119
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
7146
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
7120
7147
  "path",
7121
7148
  {
7122
7149
  fill: "#fbe9e7",
@@ -7125,7 +7152,7 @@ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
7125
7152
  "fill-rule": "nonzero"
7126
7153
  }
7127
7154
  ),
7128
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
7155
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
7129
7156
  "path",
7130
7157
  {
7131
7158
  fill: "#ffe0b2",
@@ -7134,7 +7161,7 @@ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
7134
7161
  "fill-rule": "nonzero"
7135
7162
  }
7136
7163
  ),
7137
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
7164
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
7138
7165
  "path",
7139
7166
  {
7140
7167
  fill: "#ffe0b2",
@@ -7143,7 +7170,7 @@ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
7143
7170
  "fill-rule": "nonzero"
7144
7171
  }
7145
7172
  ),
7146
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
7173
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
7147
7174
  "path",
7148
7175
  {
7149
7176
  fill: "#ffe0b2",
@@ -7218,8 +7245,8 @@ var DocumentNode = (props) => {
7218
7245
  }
7219
7246
  }
7220
7247
  if (documents.length === 0) {
7221
- 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: [
7222
- /* @__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)(
7248
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_jsx_runtime47.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "py-4 px-2 bg-neutral-weak border rounded text-center flex flex-col gap-2", children: [
7249
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "mx-auto w-10 h-10 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
7223
7250
  "svg",
7224
7251
  {
7225
7252
  className: "w-5 h-5",
@@ -7227,7 +7254,7 @@ var DocumentNode = (props) => {
7227
7254
  stroke: "currentColor",
7228
7255
  viewBox: "0 0 24 24",
7229
7256
  xmlns: "http://www.w3.org/2000/svg",
7230
- children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
7257
+ children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
7231
7258
  "path",
7232
7259
  {
7233
7260
  strokeLinecap: "round",
@@ -7238,11 +7265,11 @@ var DocumentNode = (props) => {
7238
7265
  )
7239
7266
  }
7240
7267
  ) }),
7241
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "text-sm font-medium", children: "No documents found" }),
7242
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "text-xs", children: "No records found. Data may be empty or not available at the moment." })
7268
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "text-sm font-medium", children: "No documents found" }),
7269
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "text-xs", children: "No records found. Data may be empty or not available at the moment." })
7243
7270
  ] }) });
7244
7271
  }
7245
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "", children: documents.map((doc, index) => {
7272
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "", children: documents.map((doc, index) => {
7246
7273
  const documentUrl = AssetUtility_default.resolveUrl(
7247
7274
  props.assetBaseUrl,
7248
7275
  doc.assetUrl
@@ -7260,16 +7287,16 @@ var DocumentNode = (props) => {
7260
7287
  }
7261
7288
  }
7262
7289
  const { Icon: Icon2, extLabel } = getFileDetails(documentUrl);
7263
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
7290
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
7264
7291
  "div",
7265
7292
  {
7266
7293
  className: `flex items-center justify-between py-4 bg-default gap-4 ${index !== 0 ? "border-t" : ""}`,
7267
7294
  children: [
7268
- /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "flex items-center space-x-4", children: [
7269
- /* @__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, {}) }),
7270
- /* @__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 }) })
7295
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex items-center space-x-4", children: [
7296
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "flex items-center justify-center p-2 rounded bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Icon2, {}) }),
7297
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "flex items-baseline space-x-2", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("h4", { className: "text-base font-semibold", children: documentTitle }) })
7271
7298
  ] }),
7272
- /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
7299
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
7273
7300
  "a",
7274
7301
  {
7275
7302
  href: documentUrl,
@@ -7277,7 +7304,7 @@ var DocumentNode = (props) => {
7277
7304
  rel: "noopener noreferrer",
7278
7305
  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",
7279
7306
  children: [
7280
- /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
7307
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
7281
7308
  "svg",
7282
7309
  {
7283
7310
  className: "w-4 h-4 mr-2",
@@ -7285,7 +7312,7 @@ var DocumentNode = (props) => {
7285
7312
  stroke: "currentColor",
7286
7313
  viewBox: "0 0 24 24",
7287
7314
  children: [
7288
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
7315
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
7289
7316
  "path",
7290
7317
  {
7291
7318
  strokeLinecap: "round",
@@ -7294,7 +7321,7 @@ var DocumentNode = (props) => {
7294
7321
  d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"
7295
7322
  }
7296
7323
  ),
7297
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
7324
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
7298
7325
  "path",
7299
7326
  {
7300
7327
  strokeLinecap: "round",
@@ -7320,13 +7347,13 @@ var DocumentNode_default = DocumentNode;
7320
7347
 
7321
7348
  // src/components/pageRenderingEngine/nodes/GoogleMapNode.tsx
7322
7349
  var import_dynamic10 = __toESM(require("next/dynamic"));
7323
- var import_jsx_runtime47 = require("react/jsx-runtime");
7350
+ var import_jsx_runtime48 = require("react/jsx-runtime");
7324
7351
  var IframeClient3 = (0, import_dynamic10.default)(() => Promise.resolve().then(() => (init_IframeClient(), IframeClient_exports)), {
7325
7352
  ssr: false
7326
7353
  });
7327
7354
  var GoogleMapNode = (props) => {
7328
7355
  let src = props.node.embedUrl;
7329
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "google-map-container", children: src && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
7356
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "google-map-container", children: src && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
7330
7357
  IframeClient3,
7331
7358
  {
7332
7359
  src,
@@ -7338,7 +7365,7 @@ var GoogleMapNode = (props) => {
7338
7365
  var GoogleMapNode_default = GoogleMapNode;
7339
7366
 
7340
7367
  // src/components/pageRenderingEngine/nodes/DivContainer.tsx
7341
- var import_jsx_runtime79 = require("react/jsx-runtime");
7368
+ var import_jsx_runtime80 = require("react/jsx-runtime");
7342
7369
  var Pagination2 = (0, import_dynamic12.default)(() => Promise.resolve().then(() => (init_Pagination(), Pagination_exports)), { ssr: true });
7343
7370
  var DataBindingControls2 = (0, import_dynamic12.default)(() => Promise.resolve().then(() => (init_DataBindingControls(), DataBindingControls_exports)), {
7344
7371
  ssr: true
@@ -7597,7 +7624,7 @@ var DivContainer = async (props) => {
7597
7624
  response = await serviceClient.get(endpoint);
7598
7625
  result = response?.result;
7599
7626
  if (dataBindingProperties.showNoResultsMessage && (result === void 0 || result.length == 0)) {
7600
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(NoDataFound_default, {});
7627
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(NoDataFound_default, {});
7601
7628
  }
7602
7629
  if (dataBindingProperties.childCollectionName && props.dataitem) {
7603
7630
  childCollectionData = getNestedValue6(
@@ -7617,7 +7644,7 @@ var DivContainer = async (props) => {
7617
7644
  }
7618
7645
  const SelectedNode = NodeTypes2[node.type];
7619
7646
  if (!SelectedNode) return null;
7620
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_react57.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7647
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_react58.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
7621
7648
  SelectedNode,
7622
7649
  {
7623
7650
  node,
@@ -7754,7 +7781,7 @@ var DivContainer = async (props) => {
7754
7781
  dataBindingProperties?.showFacets || dataBindingProperties?.showSortOptions || dataBindingProperties?.showSearchBar
7755
7782
  );
7756
7783
  const WrapperComponent = Wrapper;
7757
- const renderedContainer = /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7784
+ const renderedContainer = /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
7758
7785
  WrapperComponent,
7759
7786
  {
7760
7787
  id: guid,
@@ -7768,11 +7795,11 @@ var DivContainer = async (props) => {
7768
7795
  item,
7769
7796
  idx,
7770
7797
  props.href ? void 0 : item?.links?.view
7771
- )?.map((child, i) => /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_react57.default.Fragment, { children: child }, i)) : renderChildren(props.node.children, props, item, idx)
7798
+ )?.map((child, i) => /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_react58.default.Fragment, { children: child }, i)) : renderChildren(props.node.children, props, item, idx)
7772
7799
  )
7773
7800
  }
7774
7801
  );
7775
- const paginationControl = dataBindingProperties?.enablePagination ? /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7802
+ const paginationControl = dataBindingProperties?.enablePagination ? /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
7776
7803
  Pagination2,
7777
7804
  {
7778
7805
  path: props.path,
@@ -7780,15 +7807,15 @@ var DivContainer = async (props) => {
7780
7807
  dataset: response
7781
7808
  }
7782
7809
  ) : null;
7783
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_react57.default.Fragment, { children: [
7784
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7810
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(import_react58.default.Fragment, { children: [
7811
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
7785
7812
  "style",
7786
7813
  {
7787
7814
  dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS }
7788
7815
  }
7789
7816
  ),
7790
- showDataBindingControls ? /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_react57.default.Fragment, { children: [
7791
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7817
+ showDataBindingControls ? /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(import_react58.default.Fragment, { children: [
7818
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
7792
7819
  DataBindingControls2,
7793
7820
  {
7794
7821
  mode: "toolbar",
@@ -7800,18 +7827,18 @@ var DivContainer = async (props) => {
7800
7827
  showSearchBar: dataBindingProperties?.showSearchBar
7801
7828
  }
7802
7829
  ),
7803
- /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
7830
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
7804
7831
  "div",
7805
7832
  {
7806
7833
  className: dataBindingProperties?.showFacets ? "grid items-start gap-6 lg:grid-cols-[minmax(0,1fr)_18rem]" : void 0,
7807
7834
  children: [
7808
- /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: "min-w-0", children: [
7835
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "min-w-0", children: [
7809
7836
  renderedContainer,
7810
7837
  paginationControl
7811
7838
  ] }),
7812
- dataBindingProperties?.showFacets && /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("aside", { className: "border bg-default p-3 lg:sticky lg:top-[90px] lg:self-start", children: [
7813
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("h2", { className: "mb-2 text-lg font-semibold", children: "Filters" }),
7814
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7839
+ dataBindingProperties?.showFacets && /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("aside", { className: "border bg-default p-3 lg:sticky lg:top-[90px] lg:self-start", children: [
7840
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("h2", { className: "mb-2 text-lg font-semibold", children: "Filters" }),
7841
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
7815
7842
  DataBindingControls2,
7816
7843
  {
7817
7844
  mode: "facets",
@@ -7825,16 +7852,16 @@ var DivContainer = async (props) => {
7825
7852
  ]
7826
7853
  }
7827
7854
  )
7828
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_react57.default.Fragment, { children: [
7855
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(import_react58.default.Fragment, { children: [
7829
7856
  renderedContainer,
7830
- paginationControl && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { children: paginationControl })
7857
+ paginationControl && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { children: paginationControl })
7831
7858
  ] })
7832
7859
  ] });
7833
7860
  };
7834
7861
  var DivContainer_default = DivContainer;
7835
7862
 
7836
7863
  // src/components/pageRenderingEngine/PageBodyRenderer.tsx
7837
- var import_jsx_runtime80 = require("react/jsx-runtime");
7864
+ var import_jsx_runtime81 = require("react/jsx-runtime");
7838
7865
  var NodeTypes = {
7839
7866
  ["paragraph"]: ParagraphNode_default,
7840
7867
  ["heading"]: HeadingNode_default,
@@ -7872,14 +7899,14 @@ var PageBodyRenderer = (props) => {
7872
7899
  }
7873
7900
  return true;
7874
7901
  };
7875
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_react58.default.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
7902
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_react59.default.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
7876
7903
  {
7877
7904
  }
7878
7905
  const SelectedNode = NodeTypes[node.type];
7879
7906
  if (!shouldRenderNode(node)) {
7880
7907
  return null;
7881
7908
  }
7882
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_react58.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_react58.default.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_react58.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
7909
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_react59.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_react59.default.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_react59.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7883
7910
  SelectedNode,
7884
7911
  {
7885
7912
  node,
@@ -7895,7 +7922,7 @@ var PageBodyRenderer = (props) => {
7895
7922
  device: props.device,
7896
7923
  widgetRenderer: props.widgetRenderer
7897
7924
  }
7898
- ) }) : /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_react58.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
7925
+ ) }) : /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_react59.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7899
7926
  SelectedNode,
7900
7927
  {
7901
7928
  node,