@clyrex-digital/clyrex-controls-dev 0.8.1-dev.20260827063633 → 0.8.1-dev.20260827101734

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
@@ -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_runtime41.jsxs)(
1712
+ return /* @__PURE__ */ (0, import_jsx_runtime43.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_runtime41.jsx)(
1718
+ /* @__PURE__ */ (0, import_jsx_runtime43.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_runtime41.jsx)(
1726
+ children: /* @__PURE__ */ (0, import_jsx_runtime43.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_react30, import_jsx_runtime41;
1741
+ var import_react30, import_jsx_runtime43;
1742
1742
  var init_CopyButton = __esm({
1743
1743
  "src/components/CopyButton.tsx"() {
1744
1744
  "use strict";
1745
1745
  "use client";
1746
1746
  import_react30 = require("react");
1747
- import_jsx_runtime41 = require("react/jsx-runtime");
1747
+ import_jsx_runtime43 = require("react/jsx-runtime");
1748
1748
  }
1749
1749
  });
1750
1750
 
1751
1751
  // src/components/IFrameLoaderView.tsx
1752
- var import_react33, import_jsx_runtime45, IFrameLoaderView, IFrameLoaderView_default;
1752
+ var import_react33, import_jsx_runtime47, IFrameLoaderView, IFrameLoaderView_default;
1753
1753
  var init_IFrameLoaderView = __esm({
1754
1754
  "src/components/IFrameLoaderView.tsx"() {
1755
1755
  "use strict";
1756
1756
  import_react33 = __toESM(require("react"));
1757
- import_jsx_runtime45 = require("react/jsx-runtime");
1757
+ import_jsx_runtime47 = require("react/jsx-runtime");
1758
1758
  IFrameLoaderView = (props) => {
1759
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_react33.default.Fragment, { children: [
1760
- props.isDataFound == null && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "mt-4 bg-gray-200 rounded-md p-4 animate-pulse", children: [
1761
- /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex items-center mb-4", children: [
1762
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
1763
- /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "ml-2", children: [
1764
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
1765
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
1759
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_react33.default.Fragment, { children: [
1760
+ props.isDataFound == null && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "mt-4 bg-gray-200 rounded-md p-4 animate-pulse", children: [
1761
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex items-center mb-4", children: [
1762
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
1763
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "ml-2", children: [
1764
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
1765
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
1766
1766
  ] })
1767
1767
  ] }),
1768
- /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
1769
- /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "animate-pulse", children: [
1770
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
1771
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
1772
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
1773
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
1774
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
1768
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
1769
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "animate-pulse", children: [
1770
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
1771
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
1772
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
1773
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
1774
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
1775
1775
  ] }),
1776
- /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "animate-pulse", children: [
1777
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
1778
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
1779
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
1780
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
1781
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
1776
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "animate-pulse", children: [
1777
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
1778
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
1779
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
1780
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
1781
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
1782
1782
  ] }),
1783
- /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "animate-pulse", children: [
1784
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
1785
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
1786
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
1787
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
1788
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
1783
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "animate-pulse", children: [
1784
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
1785
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
1786
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
1787
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
1788
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
1789
1789
  ] })
1790
1790
  ] })
1791
1791
  ] }) }),
@@ -1801,14 +1801,14 @@ var IframeClient_exports = {};
1801
1801
  __export(IframeClient_exports, {
1802
1802
  default: () => IframeClient_default
1803
1803
  });
1804
- var import_react34, import_jsx_runtime46, IframeClient, IframeClient_default;
1804
+ var import_react34, import_jsx_runtime48, 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
1809
  import_react34 = __toESM(require("react"));
1810
1810
  init_IFrameLoaderView();
1811
- import_jsx_runtime46 = require("react/jsx-runtime");
1811
+ import_jsx_runtime48 = require("react/jsx-runtime");
1812
1812
  IframeClient = ({
1813
1813
  src,
1814
1814
  width,
@@ -1847,7 +1847,7 @@ var init_IframeClient = __esm({
1847
1847
  const handleIframeLoad = () => {
1848
1848
  setIsDataFound(true);
1849
1849
  };
1850
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_react34.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(IFrameLoaderView_default, { isDataFound, children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
1850
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_react34.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(IFrameLoaderView_default, { isDataFound, children: /* @__PURE__ */ (0, import_jsx_runtime48.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_runtime52, ChevronUpDown, chevron_updown_default;
2143
+ var import_jsx_runtime54, 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_runtime52 = require("react/jsx-runtime");
2147
+ import_jsx_runtime54 = require("react/jsx-runtime");
2148
2148
  ChevronUpDown = (props) => {
2149
- 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: "M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9" }) });
2149
+ return /* @__PURE__ */ (0, import_jsx_runtime54.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_runtime54.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_runtime53, ChevronDown, chevron_down_default;
2156
+ var import_jsx_runtime55, 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_runtime53 = require("react/jsx-runtime");
2160
+ import_jsx_runtime55 = require("react/jsx-runtime");
2161
2161
  ChevronDown = (props) => {
2162
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: props.className, children: /* @__PURE__ */ (0, import_jsx_runtime53.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_runtime55.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_runtime55.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_runtime54, ChevronUp, chevron_up_default;
2169
+ var import_jsx_runtime56, 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_runtime54 = require("react/jsx-runtime");
2173
+ import_jsx_runtime56 = require("react/jsx-runtime");
2174
2174
  ChevronUp = (props) => {
2175
- return /* @__PURE__ */ (0, import_jsx_runtime54.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_runtime54.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M4.5 15.75l7.5-7.5 7.5 7.5" }) });
2175
+ return /* @__PURE__ */ (0, import_jsx_runtime56.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_runtime56.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_runtime55, Plus, plus_default;
2182
+ var import_jsx_runtime57, Plus, plus_default;
2183
2183
  var init_plus = __esm({
2184
2184
  "src/svg/plus.tsx"() {
2185
2185
  "use strict";
2186
- import_jsx_runtime55 = require("react/jsx-runtime");
2186
+ import_jsx_runtime57 = require("react/jsx-runtime");
2187
2187
  Plus = (props) => {
2188
- return /* @__PURE__ */ (0, import_jsx_runtime55.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_runtime55.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M12 4.5v15m7.5-7.5h-15" }) });
2188
+ return /* @__PURE__ */ (0, import_jsx_runtime57.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_runtime57.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_runtime56, Icon, Icon_default;
2214
+ var import_jsx_runtime58, 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_runtime56 = require("react/jsx-runtime");
2219
+ import_jsx_runtime58 = 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_runtime56.jsx)(IconComponent, { ...props, className });
2226
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(IconComponent, { ...props, className });
2227
2227
  };
2228
2228
  Icon_default = Icon;
2229
2229
  }
@@ -2234,7 +2234,7 @@ var Pagination_exports = {};
2234
2234
  __export(Pagination_exports, {
2235
2235
  default: () => Pagination_default
2236
2236
  });
2237
- var import_react35, import_jsx_runtime57, Pagination, Pagination_default;
2237
+ var import_react35, import_jsx_runtime59, Pagination, Pagination_default;
2238
2238
  var init_Pagination = __esm({
2239
2239
  "src/components/Pagination.tsx"() {
2240
2240
  "use strict";
@@ -2245,7 +2245,7 @@ var init_Pagination = __esm({
2245
2245
  init_StyleTypes();
2246
2246
  init_InputControlType();
2247
2247
  init_Hyperlink();
2248
- import_jsx_runtime57 = require("react/jsx-runtime");
2248
+ import_jsx_runtime59 = require("react/jsx-runtime");
2249
2249
  Pagination = (props) => {
2250
2250
  const { dataset, path, query, showPageSizeSelector = false, showJumpToPage = false } = props;
2251
2251
  const builder = (0, import_react35.useMemo)(() => {
@@ -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_runtime57.jsx)(
2292
+ const PageButton = ({ page, children }) => /* @__PURE__ */ (0, import_jsx_runtime59.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_runtime57.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_runtime59.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_runtime57.jsx)(
2309
+ return /* @__PURE__ */ (0, import_jsx_runtime59.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_runtime57.jsxs)("div", { className: "py-6 border-t bg-default", children: [
2320
- /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "flex flex-col sm:flex-row items-center justify-between gap-4", children: [
2321
- /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "text-sm", children: [
2319
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "py-6 border-t bg-default", children: [
2320
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "flex flex-col sm:flex-row items-center justify-between gap-4", children: [
2321
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "text-sm", children: [
2322
2322
  "Showing ",
2323
- /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("span", { className: "font-semibold", children: [
2323
+ /* @__PURE__ */ (0, import_jsx_runtime59.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_runtime57.jsx)("span", { className: "font-semibold", children: totalItems.toLocaleString() }),
2330
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "font-semibold", children: totalItems.toLocaleString() }),
2331
2331
  " results"
2332
2332
  ] }),
2333
- totalPages > 1 && /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "flex items-center space-x-1", children: [
2334
- /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
2333
+ totalPages > 1 && /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "flex items-center space-x-1", children: [
2334
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
2335
2335
  NavigationButton,
2336
2336
  {
2337
2337
  page: activePageNumber - 1,
2338
2338
  disabled: activePageNumber === 1,
2339
2339
  children: [
2340
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Icon_default, { name: "chevronLeft", className: "w-4 h-4 mr-1" }) }),
2341
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "text-sm", children: "Prev" })
2340
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Icon_default, { name: "chevronLeft", className: "w-4 h-4 mr-1" }) }),
2341
+ /* @__PURE__ */ (0, import_jsx_runtime59.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_runtime57.jsx)(
2347
+ return /* @__PURE__ */ (0, import_jsx_runtime59.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_runtime57.jsx)(PageButton, { page, children: page }, page);
2357
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(PageButton, { page, children: page }, page);
2358
2358
  }),
2359
- /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
2359
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
2360
2360
  NavigationButton,
2361
2361
  {
2362
2362
  page: activePageNumber + 1,
2363
2363
  disabled: activePageNumber === totalPages,
2364
2364
  children: [
2365
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "text-sm", children: "Next" }),
2366
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Icon_default, { name: "chevronRight", className: "w-4 h-4 ml-1" }) })
2365
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "text-sm", children: "Next" }),
2366
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime59.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_runtime57.jsxs)("div", { className: "flex items-center space-x-2", children: [
2372
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "text-sm", children: "Go to:" }),
2373
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
2371
+ showJumpToPage && totalPages > 5 && /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "flex items-center space-x-2", children: [
2372
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "text-sm", children: "Go to:" }),
2373
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime59.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_runtime57.jsx)("div", { className: "mt-4 pt-4 border-t bg-default", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "flex items-center justify-center space-x-2", children: [
2395
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "text-sm", children: "Show:" }),
2396
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "flex space-x-1", children: [10, 25, 50, 100].map((size) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
2394
+ showPageSizeSelector && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "mt-4 pt-4 border-t bg-default", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "flex items-center justify-center space-x-2", children: [
2395
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "text-sm", children: "Show:" }),
2396
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "flex space-x-1", children: [10, 25, 50, 100].map((size) => /* @__PURE__ */ (0, import_jsx_runtime59.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_runtime57.jsx)("span", { className: "text-sm", children: "per page" })
2408
+ /* @__PURE__ */ (0, import_jsx_runtime59.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_react36, import_jsx_runtime58, MultilineTextInput, MultilineTextInput_default;
2417
+ var import_react36, import_jsx_runtime60, MultilineTextInput, MultilineTextInput_default;
2418
2418
  var init_MultilineTextInput = __esm({
2419
2419
  "src/components/controls/edit/MultilineTextInput.tsx"() {
2420
2420
  "use strict";
2421
2421
  import_react36 = __toESM(require("react"));
2422
- import_jsx_runtime58 = require("react/jsx-runtime");
2422
+ import_jsx_runtime60 = 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_runtime58.jsx)(import_react36.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("label", { className: "block mb-1", children: [
2442
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
2441
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react36.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("label", { className: "block mb-1", children: [
2442
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
2443
2443
  " ",
2444
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "bg-error-weak", children: "*" }),
2445
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
2444
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("span", { className: "bg-error-weak", children: "*" }),
2445
+ /* @__PURE__ */ (0, import_jsx_runtime60.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_runtime58.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_runtime60.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_react37, import_jsx_runtime59, LineTextInput, LineTextInput_default;
2470
+ var import_react37, import_jsx_runtime61, LineTextInput, LineTextInput_default;
2471
2471
  var init_LineTextInput = __esm({
2472
2472
  "src/components/controls/edit/LineTextInput.tsx"() {
2473
2473
  "use strict";
2474
2474
  import_react37 = __toESM(require("react"));
2475
- import_jsx_runtime59 = require("react/jsx-runtime");
2475
+ import_jsx_runtime61 = 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_runtime59.jsx)(import_react37.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("label", { className: "block", children: [
2495
- props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "text-sm inline-block pb-1 font-medium ", children: props?.attributes?.label }),
2494
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_react37.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("label", { className: "block", children: [
2495
+ props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime61.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_runtime59.jsx)("span", { className: "bg-error-weak !bg-transparent", children: "*" }),
2498
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
2497
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { className: "bg-error-weak !bg-transparent", children: "*" }),
2498
+ /* @__PURE__ */ (0, import_jsx_runtime61.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_runtime59.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_runtime61.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_react38, import_jsx_runtime60, MoneyInput, MoneyInput_default;
2526
+ var import_react38, import_jsx_runtime62, MoneyInput, MoneyInput_default;
2527
2527
  var init_MoneyInput = __esm({
2528
2528
  "src/components/controls/edit/MoneyInput.tsx"() {
2529
2529
  "use strict";
2530
2530
  import_react38 = __toESM(require("react"));
2531
- import_jsx_runtime60 = require("react/jsx-runtime");
2531
+ import_jsx_runtime62 = 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_runtime60.jsx)(import_react38.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("label", { className: "block mb-1", children: [
2561
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
2560
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_react38.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("label", { className: "block mb-1", children: [
2561
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
2562
2562
  " ",
2563
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("span", { className: "bg-error-weak", children: "*" }),
2564
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
2563
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { className: "bg-error-weak", children: "*" }),
2564
+ /* @__PURE__ */ (0, import_jsx_runtime62.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_runtime60.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_runtime62.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,12 +2589,12 @@ var init_MoneyInput = __esm({
2589
2589
  });
2590
2590
 
2591
2591
  // src/components/controls/edit/Select.tsx
2592
- var import_react39, import_jsx_runtime61, Select, Select_default;
2592
+ var import_react39, import_jsx_runtime63, Select, Select_default;
2593
2593
  var init_Select = __esm({
2594
2594
  "src/components/controls/edit/Select.tsx"() {
2595
2595
  "use strict";
2596
2596
  import_react39 = require("react");
2597
- import_jsx_runtime61 = require("react/jsx-runtime");
2597
+ import_jsx_runtime63 = require("react/jsx-runtime");
2598
2598
  Select = (props) => {
2599
2599
  const [list, setList] = (0, import_react39.useState)();
2600
2600
  const getSafeValue = (val) => {
@@ -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_runtime61.jsxs)("label", { className: "block", children: [
2670
- props.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { className: "text-sm font-medium inline-block pb-1", children: props.attributes?.label }),
2669
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("label", { className: "block", children: [
2670
+ props.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime63.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_runtime61.jsx)("span", { className: "bg-error-weak", children: "*" }),
2673
- list && list.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
2672
+ props.attributes?.label && props.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { className: "bg-error-weak", children: "*" }),
2673
+ list && list.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime63.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_runtime61.jsxs)(
2690
+ list && list.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime63.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_runtime61.jsx)("option", { value: "", children: props.attributes?.placeholder || "Select" }),
2703
+ /* @__PURE__ */ (0, import_jsx_runtime63.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_runtime61.jsx)("option", { value: item[keyField], children: item[textField] }, index);
2707
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("option", { value: item[keyField], children: item[textField] }, index);
2708
2708
  })
2709
2709
  ]
2710
2710
  }
2711
2711
  ),
2712
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 text-alert text-sm", children: props.attributes?.errorMessage || "" })
2712
+ /* @__PURE__ */ (0, import_jsx_runtime63.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_react40, import_jsx_runtime62, PercentageInput, PercentageInput_default;
2720
+ var import_react40, import_jsx_runtime64, PercentageInput, PercentageInput_default;
2721
2721
  var init_PercentageInput = __esm({
2722
2722
  "src/components/controls/edit/PercentageInput.tsx"() {
2723
2723
  "use strict";
2724
2724
  import_react40 = __toESM(require("react"));
2725
- import_jsx_runtime62 = require("react/jsx-runtime");
2725
+ import_jsx_runtime64 = 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_runtime62.jsx)(import_react40.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("label", { className: "block mb-1", children: [
2755
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label ? props?.attributes?.label + " %" : "" }),
2754
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_react40.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("label", { className: "block mb-1", children: [
2755
+ /* @__PURE__ */ (0, import_jsx_runtime64.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_runtime62.jsx)("span", { className: "bg-error-weak", children: "*" }),
2758
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
2757
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "bg-error-weak", children: "*" }),
2758
+ /* @__PURE__ */ (0, import_jsx_runtime64.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_runtime62.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_runtime64.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_react41, import_jsx_runtime63, PhoneInput, PhoneInput_default;
2785
+ var import_react41, import_jsx_runtime65, PhoneInput, PhoneInput_default;
2786
2786
  var init_PhoneInput = __esm({
2787
2787
  "src/components/controls/edit/PhoneInput.tsx"() {
2788
2788
  "use strict";
2789
2789
  import_react41 = __toESM(require("react"));
2790
- import_jsx_runtime63 = require("react/jsx-runtime");
2790
+ import_jsx_runtime65 = 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_runtime63.jsx)(import_react41.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("label", { className: "block mb-1", children: [
2810
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
2809
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react41.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("label", { className: "block mb-1", children: [
2810
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
2811
2811
  " ",
2812
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { className: "bg-error-weak", children: "*" }),
2813
- /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "flex items-center rounded border ", children: [
2814
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { className: "px-3", children: props.prefix }),
2815
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
2812
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { className: "bg-error-weak", children: "*" }),
2813
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "flex items-center rounded border ", children: [
2814
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { className: "px-3", children: props.prefix }),
2815
+ /* @__PURE__ */ (0, import_jsx_runtime65.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_runtime63.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_runtime65.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_react42, import_jsx_runtime64, NumberInput, NumberInput_default;
2841
+ var import_react42, import_jsx_runtime66, NumberInput, NumberInput_default;
2842
2842
  var init_NumberInput = __esm({
2843
2843
  "src/components/controls/edit/NumberInput.tsx"() {
2844
2844
  "use strict";
2845
2845
  import_react42 = __toESM(require("react"));
2846
- import_jsx_runtime64 = require("react/jsx-runtime");
2846
+ import_jsx_runtime66 = 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_runtime64.jsx)(import_react42.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("label", { className: "block", children: [
2870
- props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "text-sm inline-block pb-1 font-medium ", children: props?.attributes?.label }),
2869
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react42.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("label", { className: "block", children: [
2870
+ props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime66.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_runtime64.jsx)("span", { className: "bg-error-weak", children: "*" }),
2873
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
2872
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { className: "bg-error-weak", children: "*" }),
2873
+ /* @__PURE__ */ (0, import_jsx_runtime66.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_runtime64.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_runtime66.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_react43, import_jsx_runtime65, CheckboxInput, CheckboxInput_default;
2900
+ var import_react43, import_jsx_runtime67, CheckboxInput, CheckboxInput_default;
2901
2901
  var init_CheckboxInput = __esm({
2902
2902
  "src/components/controls/edit/CheckboxInput.tsx"() {
2903
2903
  "use strict";
2904
2904
  import_react43 = __toESM(require("react"));
2905
- import_jsx_runtime65 = require("react/jsx-runtime");
2905
+ import_jsx_runtime67 = 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_runtime65.jsx)(import_react43.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "mb-1", children: [
2923
- props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx_runtime65.Fragment, { children: [
2924
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
2922
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_react43.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "mb-1", children: [
2923
+ props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(import_jsx_runtime67.Fragment, { children: [
2924
+ /* @__PURE__ */ (0, import_jsx_runtime67.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_runtime65.jsx)("span", { className: "bg-error-weak", children: "*" })
2932
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "bg-error-weak", children: "*" })
2933
2933
  ] }),
2934
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
2934
+ /* @__PURE__ */ (0, import_jsx_runtime67.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_runtime65.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_runtime67.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_react44, import_jsx_runtime66, OtpInput, OtpInput_default;
2959
+ var import_react44, import_jsx_runtime68, OtpInput, OtpInput_default;
2960
2960
  var init_OtpInput = __esm({
2961
2961
  "src/components/controls/edit/OtpInput.tsx"() {
2962
2962
  "use strict";
2963
2963
  import_react44 = __toESM(require("react"));
2964
- import_jsx_runtime66 = require("react/jsx-runtime");
2964
+ import_jsx_runtime68 = 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_runtime66.jsx)(import_react44.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("label", { htmlFor: props.name, className: "block mb-1 w-full", children: [
2987
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
2986
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_react44.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("label", { htmlFor: props.name, className: "block mb-1 w-full", children: [
2987
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
2988
2988
  " ",
2989
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { className: "bg-error-weak", children: "*" }),
2990
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
2989
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "bg-error-weak", children: "*" }),
2990
+ /* @__PURE__ */ (0, import_jsx_runtime68.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_runtime66.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_runtime68.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_react45, import_jsx_runtime67, DateTimeInput, DateTimeInput_default;
3018
+ var import_react45, import_jsx_runtime69, DateTimeInput, DateTimeInput_default;
3019
3019
  var init_DateTimeInput = __esm({
3020
3020
  "src/components/controls/edit/DateTimeInput.tsx"() {
3021
3021
  "use strict";
3022
3022
  import_react45 = __toESM(require("react"));
3023
- import_jsx_runtime67 = require("react/jsx-runtime");
3023
+ import_jsx_runtime69 = 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_runtime67.jsx)(import_react45.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("label", { className: "block mb-1", children: [
3056
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
3055
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_react45.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("label", { className: "block mb-1", children: [
3056
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
3057
3057
  " ",
3058
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "bg-error-weak", children: "*" }),
3059
- /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex items-center gap-2", children: [
3060
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
3058
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "bg-error-weak", children: "*" }),
3059
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "flex items-center gap-2", children: [
3060
+ /* @__PURE__ */ (0, import_jsx_runtime69.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_runtime67.jsx)("span", { children: timeZoneAbbr })
3078
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { children: timeZoneAbbr })
3079
3079
  ] }),
3080
- /* @__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 : "" })
3080
+ /* @__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 ? props.attributes.errorMessage : "" })
3081
3081
  ] }) });
3082
3082
  };
3083
3083
  DateTimeInput_default = DateTimeInput;
@@ -3085,12 +3085,12 @@ var init_DateTimeInput = __esm({
3085
3085
  });
3086
3086
 
3087
3087
  // src/components/controls/edit/ColorInput.tsx
3088
- var import_react46, import_jsx_runtime68, ColorInput, ColorInput_default;
3088
+ var import_react46, import_jsx_runtime70, ColorInput, ColorInput_default;
3089
3089
  var init_ColorInput = __esm({
3090
3090
  "src/components/controls/edit/ColorInput.tsx"() {
3091
3091
  "use strict";
3092
3092
  import_react46 = __toESM(require("react"));
3093
- import_jsx_runtime68 = require("react/jsx-runtime");
3093
+ import_jsx_runtime70 = require("react/jsx-runtime");
3094
3094
  ColorInput = (props) => {
3095
3095
  const [color, setColor] = import_react46.default.useState("#3b82f6");
3096
3096
  (0, import_react46.useEffect)(() => {
@@ -3112,11 +3112,11 @@ var init_ColorInput = __esm({
3112
3112
  });
3113
3113
  }
3114
3114
  };
3115
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("label", { className: "block mb-1", children: [
3116
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "text-sm font-medium", children: props?.attributes?.label }),
3115
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("label", { className: "block mb-1", children: [
3116
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("span", { className: "text-sm font-medium", children: props?.attributes?.label }),
3117
3117
  " ",
3118
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "bg-error-weak", children: "*" }),
3119
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
3118
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("span", { className: "bg-error-weak", children: "*" }),
3119
+ /* @__PURE__ */ (0, import_jsx_runtime70.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_runtime68.jsx)("p", { className: "mt-1 bg-error-weak text-sm", children: props.attributes.errorMessage })
3132
+ props?.attributes?.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("p", { className: "mt-1 bg-error-weak text-sm", children: props.attributes.errorMessage })
3133
3133
  ] });
3134
3134
  };
3135
3135
  ColorInput_default = ColorInput;
@@ -3137,13 +3137,13 @@ var init_ColorInput = __esm({
3137
3137
  });
3138
3138
 
3139
3139
  // src/components/controls/edit/SelectWithSearchInput.tsx
3140
- var import_react47, import_jsx_runtime69, SelectWithSearchInput, SelectWithSearchInput_default;
3140
+ var import_react47, import_jsx_runtime71, 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
3145
  import_react47 = __toESM(require("react"));
3146
- import_jsx_runtime69 = require("react/jsx-runtime");
3146
+ import_jsx_runtime71 = require("react/jsx-runtime");
3147
3147
  SelectWithSearchInput = (props) => {
3148
3148
  const [isOpen, setIsOpen] = (0, import_react47.useState)(false);
3149
3149
  const [searchTerm, setSearchTerm] = (0, import_react47.useState)("");
@@ -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_runtime69.jsxs)("div", { className: "relative", children: [
3242
- /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("label", { className: "pb-1", children: [
3241
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "relative", children: [
3242
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("label", { className: "pb-1", children: [
3243
3243
  props.attributes?.label,
3244
3244
  " ",
3245
- props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "bg-error-weak", children: "*" })
3245
+ props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("span", { className: "bg-error-weak", children: "*" })
3246
3246
  ] }),
3247
- /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "relative", children: [
3248
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3247
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "relative", children: [
3248
+ /* @__PURE__ */ (0, import_jsx_runtime71.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_runtime69.jsx)(
3270
+ /* @__PURE__ */ (0, import_jsx_runtime71.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_runtime69.jsx)(
3281
+ children: /* @__PURE__ */ (0, import_jsx_runtime71.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_runtime69.jsx)(
3290
+ children: /* @__PURE__ */ (0, import_jsx_runtime71.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_runtime69.jsx)(
3303
+ !isReadOnly && isOpen && /* @__PURE__ */ (0, import_jsx_runtime71.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_runtime69.jsx)(
3308
+ children: filteredItems.length > 0 ? filteredItems.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime71.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_runtime69.jsx)("span", { children: item[props.dataTextFieldName] })
3316
+ children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("span", { children: item[props.dataTextFieldName] })
3317
3317
  },
3318
3318
  item[props.dataKeyFieldName]
3319
- )) : /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "px-4 py-2 text-gray-500", children: "No results found" })
3319
+ )) : /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "px-4 py-2 text-gray-500", children: "No results found" })
3320
3320
  }
3321
3321
  )
3322
3322
  ] });
@@ -3326,14 +3326,14 @@ var init_SelectWithSearchInput = __esm({
3326
3326
  });
3327
3327
 
3328
3328
  // src/components/controls/edit/SelectWithSearchPanel.tsx
3329
- var import_react48, import_jsx_runtime70, SelectWithSearchPanel, SelectWithSearchPanel_default;
3329
+ var import_react48, import_jsx_runtime72, 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
3335
  import_react48 = __toESM(require("react"));
3336
- import_jsx_runtime70 = require("react/jsx-runtime");
3336
+ import_jsx_runtime72 = require("react/jsx-runtime");
3337
3337
  SelectWithSearchPanel = (props) => {
3338
3338
  const [isOpen, setIsOpen] = (0, import_react48.useState)(false);
3339
3339
  const [searchTerm, setSearchTerm] = (0, import_react48.useState)("");
@@ -3469,14 +3469,14 @@ var init_SelectWithSearchPanel = __esm({
3469
3469
  console.log("Form Data:", formData);
3470
3470
  return formData;
3471
3471
  }, []);
3472
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "relative", children: [
3473
- /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("label", { className: "text-sm mb-1 font-medium", children: [
3472
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: "relative", children: [
3473
+ /* @__PURE__ */ (0, import_jsx_runtime72.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_runtime70.jsx)("span", { className: "bg-error-weak", children: "*" })
3477
+ props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: "bg-error-weak", children: "*" })
3478
3478
  ] }),
3479
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
3479
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime72.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_runtime70.jsx)("div", { ref: containerRef, children: isOpen && /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(import_react48.default.Fragment, { children: [
3494
- /* @__PURE__ */ (0, import_jsx_runtime70.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_runtime70.jsx)("div", { className: "flex flex-col p-2 bg-accent-950 text-white", children: /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("h5", { className: "text-md text-white font-medium", children: [
3493
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { ref: containerRef, children: isOpen && /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(import_react48.default.Fragment, { children: [
3494
+ /* @__PURE__ */ (0, import_jsx_runtime72.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_runtime72.jsx)("div", { className: "flex flex-col p-2 bg-accent-950 text-white", children: /* @__PURE__ */ (0, import_jsx_runtime72.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_runtime70.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_runtime70.jsx)(
3500
+ /* @__PURE__ */ (0, import_jsx_runtime72.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_runtime72.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_runtime70.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_runtime70.jsx)("div", { className: "flex flex-col p-2 bg-accent-950", children: /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("h5", { className: "text-md font-medium text-white", children: [
3513
+ isCreateOpen && /* @__PURE__ */ (0, import_jsx_runtime72.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_runtime72.jsx)("div", { className: "flex flex-col p-2 bg-accent-950", children: /* @__PURE__ */ (0, import_jsx_runtime72.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_runtime70.jsx)("div", { className: "flex justify-end px-4 border-b py-2 border-gray-200", children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
3518
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { className: "flex justify-end px-4 border-b py-2 border-gray-200", children: /* @__PURE__ */ (0, import_jsx_runtime72.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_runtime70.jsxs)("div", { className: "p-4", children: [
3528
- props.createFields?.map((field) => /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "mb-4", children: [
3529
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("label", { className: "text-sm mb-1 font-medium block", children: field.label }),
3530
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
3527
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: "p-4", children: [
3528
+ props.createFields?.map((field) => /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: "mb-4", children: [
3529
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("label", { className: "text-sm mb-1 font-medium block", children: field.label }),
3530
+ /* @__PURE__ */ (0, import_jsx_runtime72.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_runtime70.jsxs)(Button_default, { onClick: async () => {
3546
+ /* @__PURE__ */ (0, import_jsx_runtime72.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_runtime70.jsx)(
3555
+ /* @__PURE__ */ (0, import_jsx_runtime72.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_runtime70.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
3561
+ children: filteredItems.length > 0 ? filteredItems.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime72.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_runtime70.jsx)("span", { children: getNestedValue7(item, props.dataTextFieldName) })
3571
+ children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { children: getNestedValue7(item, props.dataTextFieldName) })
3572
3572
  }
3573
- ) }, item[props.dataKeyFieldName])) : /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "px-4 py-2 text-gray-500", children: "No results found" })
3573
+ ) }, item[props.dataKeyFieldName])) : /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { className: "px-4 py-2 text-gray-500", children: "No results found" })
3574
3574
  }
3575
3575
  )
3576
3576
  ] }) })
@@ -3581,12 +3581,12 @@ var init_SelectWithSearchPanel = __esm({
3581
3581
  });
3582
3582
 
3583
3583
  // src/components/controls/edit/BooleanSelect.tsx
3584
- var import_react49, import_jsx_runtime71, BooleanSelect, BooleanSelect_default;
3584
+ var import_react49, import_jsx_runtime73, BooleanSelect, BooleanSelect_default;
3585
3585
  var init_BooleanSelect = __esm({
3586
3586
  "src/components/controls/edit/BooleanSelect.tsx"() {
3587
3587
  "use strict";
3588
3588
  import_react49 = __toESM(require("react"));
3589
- import_jsx_runtime71 = require("react/jsx-runtime");
3589
+ import_jsx_runtime73 = require("react/jsx-runtime");
3590
3590
  BooleanSelect = (props) => {
3591
3591
  const [list, setList] = (0, import_react49.useState)();
3592
3592
  const textChangeHandler = (event) => {
@@ -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_runtime71.jsx)(import_react49.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("label", { className: "block", children: [
3639
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
3638
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_react49.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("label", { className: "block", children: [
3639
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
3640
3640
  " ",
3641
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("span", { className: "bg-error-weak", children: "*" }),
3642
- /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
3641
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { className: "bg-error-weak", children: "*" }),
3642
+ /* @__PURE__ */ (0, import_jsx_runtime73.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_runtime71.jsx)("option", { className: "", value: "", children: props.attributes?.placeholder || "Select" }),
3654
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("option", { className: "", value: "", children: props.attributes?.placeholder || "Select" }),
3655
3655
  list && list.map((item, i) => {
3656
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
3656
+ return /* @__PURE__ */ (0, import_jsx_runtime73.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_runtime71.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_runtime73.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_react50, import_jsx_runtime72, EmailInput, EmailInput_default;
3677
+ var import_react50, import_jsx_runtime74, EmailInput, EmailInput_default;
3678
3678
  var init_EmailInput = __esm({
3679
3679
  "src/components/controls/edit/EmailInput.tsx"() {
3680
3680
  "use strict";
3681
3681
  import_react50 = __toESM(require("react"));
3682
- import_jsx_runtime72 = require("react/jsx-runtime");
3682
+ import_jsx_runtime74 = 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_runtime72.jsx)(import_react50.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("label", { className: "block mb-1", children: [
3708
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: "text-sm font-medium text-slate-700", children: props?.attributes?.label }),
3707
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_react50.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("label", { className: "block mb-1", children: [
3708
+ /* @__PURE__ */ (0, import_jsx_runtime74.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_runtime72.jsx)("span", { className: "bg-error-weak", children: "*" }),
3711
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
3710
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "bg-error-weak", children: "*" }),
3711
+ /* @__PURE__ */ (0, import_jsx_runtime74.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_runtime72.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_runtime74.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_react51, import_jsx_runtime73, TimeInput, TimeInput_default;
3735
+ var import_react51, import_jsx_runtime75, 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
3740
  import_react51 = __toESM(require("react"));
3741
- import_jsx_runtime73 = require("react/jsx-runtime");
3741
+ import_jsx_runtime75 = 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_runtime73.jsx)(import_react51.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("label", { className: "block mb-1", children: [
3755
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { className: "text-sm font-medium", children: props?.attributes?.label }),
3754
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_react51.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("label", { className: "block mb-1", children: [
3755
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { className: "text-sm font-medium", children: props?.attributes?.label }),
3756
3756
  " ",
3757
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { className: "bg-error-weak", children: "*" }),
3758
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
3757
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { className: "bg-error-weak", children: "*" }),
3758
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime75.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_runtime73.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_runtime75.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,7 +3776,7 @@ var init_TimeInput = __esm({
3776
3776
  });
3777
3777
 
3778
3778
  // src/components/controls/edit/AssetUpload.tsx
3779
- var import_react52, import_jsx_runtime74, AssetUpload, AssetUpload_default;
3779
+ var import_react52, import_jsx_runtime76, AssetUpload, AssetUpload_default;
3780
3780
  var init_AssetUpload = __esm({
3781
3781
  "src/components/controls/edit/AssetUpload.tsx"() {
3782
3782
  "use strict";
@@ -3787,7 +3787,7 @@ var init_AssetUpload = __esm({
3787
3787
  init_AssetUtility();
3788
3788
  init_Hyperlink();
3789
3789
  init_Icon();
3790
- import_jsx_runtime74 = require("react/jsx-runtime");
3790
+ import_jsx_runtime76 = require("react/jsx-runtime");
3791
3791
  AssetUpload = (props) => {
3792
3792
  const isDisabled = props.attributes?.disable ?? false;
3793
3793
  let allValues = [];
@@ -3884,10 +3884,10 @@ var init_AssetUpload = __esm({
3884
3884
  }
3885
3885
  return false;
3886
3886
  };
3887
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(import_react52.default.Fragment, { children: [
3888
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("label", { className: "block mb-1", children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "text-sm font-medium", children: props?.attributes?.label }) }),
3889
- /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "flex gap-6 bg-neutral-100 rounded p-2", children: [
3890
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
3887
+ return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(import_react52.default.Fragment, { children: [
3888
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("label", { className: "block mb-1", children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { className: "text-sm font-medium", children: props?.attributes?.label }) }),
3889
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "flex gap-6 bg-neutral-100 rounded p-2", children: [
3890
+ /* @__PURE__ */ (0, import_jsx_runtime76.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_runtime74.jsx)(
3900
+ /* @__PURE__ */ (0, import_jsx_runtime76.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_runtime74.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_runtime74.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_runtime74.jsx)("div", { className: "flex flex-col gap-3", children: allValues.map((digitalAsset, index) => /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "flex justify-between items-start gap-5", children: [
3914
- /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "grid grid-cols-2 gap-x-8 gap-y-3 text-sm w-full", children: [
3915
- /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { children: [
3916
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("p", { className: "text-gray-500", children: "Title" }),
3917
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
3911
+ shouldShowDetails() && /* @__PURE__ */ (0, import_jsx_runtime76.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_runtime76.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_runtime76.jsx)("div", { className: "flex flex-col gap-3", children: allValues.map((digitalAsset, index) => /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "flex justify-between items-start gap-5", children: [
3914
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "grid grid-cols-2 gap-x-8 gap-y-3 text-sm w-full", children: [
3915
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { children: [
3916
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("p", { className: "text-gray-500", children: "Title" }),
3917
+ /* @__PURE__ */ (0, import_jsx_runtime76.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_runtime74.jsxs)("div", { children: [
3930
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("p", { className: "text-gray-500", children: "Resolution" }),
3931
- /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("p", { className: "font-medium text-gray-900 mt-3", children: [
3929
+ digitalAsset.intrinsicWidth && digitalAsset.intrinsicHeight && /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { children: [
3930
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("p", { className: "text-gray-500", children: "Resolution" }),
3931
+ /* @__PURE__ */ (0, import_jsx_runtime76.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_runtime74.jsxs)("div", { children: [
3938
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("p", { className: "text-gray-500", children: "Image / Poster" }),
3939
- /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "flex-shrink-0 flex flex-col gap-3 mt-1", children: [
3940
- getAssetType(digitalAsset) === "video" && digitalAsset.posterUrl && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
3937
+ (digitalAsset.assetUrl || digitalAsset.posterUrl) && /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { children: [
3938
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("p", { className: "text-gray-500", children: "Image / Poster" }),
3939
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "flex-shrink-0 flex flex-col gap-3 mt-1", children: [
3940
+ getAssetType(digitalAsset) === "video" && digitalAsset.posterUrl && /* @__PURE__ */ (0, import_jsx_runtime76.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_runtime74.jsx)(
3948
+ getAssetType(digitalAsset) === "image" && digitalAsset.assetUrl && /* @__PURE__ */ (0, import_jsx_runtime76.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_runtime74.jsxs)("div", { className: "col-span-2", children: [
3959
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("p", { className: "text-gray-500", children: "HLS Link" }),
3960
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
3958
+ digitalAsset.assetUrl?.endsWith(".m3u8") && /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "col-span-2", children: [
3959
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("p", { className: "text-gray-500", children: "HLS Link" }),
3960
+ /* @__PURE__ */ (0, import_jsx_runtime76.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_runtime74.jsx)(
3971
+ /* @__PURE__ */ (0, import_jsx_runtime76.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_runtime74.jsx)(Icon_default, { className: "w-4 h-4 text-primary", name: "delete" })
3976
+ children: /* @__PURE__ */ (0, import_jsx_runtime76.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_react53, import_jsx_runtime75, SwitchInput, SwitchInput_default;
3988
+ var import_react53, import_jsx_runtime77, SwitchInput, SwitchInput_default;
3989
3989
  var init_SwitchInput = __esm({
3990
3990
  "src/components/controls/edit/SwitchInput.tsx"() {
3991
3991
  "use strict";
3992
3992
  import_react53 = __toESM(require("react"));
3993
- import_jsx_runtime75 = require("react/jsx-runtime");
3993
+ import_jsx_runtime77 = 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_runtime75.jsx)(import_react53.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "flex items-start justify-between gap-4 py-3", children: [
4011
- /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "min-w-0", children: [
4012
- props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
4010
+ return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_react53.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "flex items-start justify-between gap-4 py-3", children: [
4011
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "min-w-0", children: [
4012
+ props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime77.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_runtime75.jsx)("span", { className: "bg-error-weak", children: "*" })
4019
+ props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("span", { className: "bg-error-weak", children: "*" })
4020
4020
  ]
4021
4021
  }
4022
4022
  ),
4023
- /* @__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 || "" })
4023
+ /* @__PURE__ */ (0, import_jsx_runtime77.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_runtime75.jsxs)(
4025
+ /* @__PURE__ */ (0, import_jsx_runtime77.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_runtime75.jsx)(
4031
+ /* @__PURE__ */ (0, import_jsx_runtime77.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_runtime75.jsx)(
4044
+ /* @__PURE__ */ (0, import_jsx_runtime77.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_runtime75.jsx)(
4050
+ /* @__PURE__ */ (0, import_jsx_runtime77.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,13 +4145,13 @@ var init_DateTimeUtility = __esm({
4145
4145
  });
4146
4146
 
4147
4147
  // src/components/controls/edit/DateInput.tsx
4148
- var import_react54, import_jsx_runtime76, DateInput, DateInput_default;
4148
+ var import_react54, import_jsx_runtime78, DateInput, DateInput_default;
4149
4149
  var init_DateInput = __esm({
4150
4150
  "src/components/controls/edit/DateInput.tsx"() {
4151
4151
  "use strict";
4152
4152
  import_react54 = require("react");
4153
4153
  init_DateTimeUtility();
4154
- import_jsx_runtime76 = require("react/jsx-runtime");
4154
+ import_jsx_runtime78 = require("react/jsx-runtime");
4155
4155
  DateInput = (props) => {
4156
4156
  const value = (0, import_react54.useMemo)(() => {
4157
4157
  if (props.value === void 0 || props.value === null || props.value === "") {
@@ -4185,11 +4185,11 @@ var init_DateInput = __esm({
4185
4185
  groupKey: props.groupKey
4186
4186
  });
4187
4187
  };
4188
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("label", { className: "block mb-1", children: [
4189
- props.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { className: "text-sm font-medium", children: props.attributes.label }),
4188
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("label", { className: "block mb-1", children: [
4189
+ props.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { className: "text-sm font-medium", children: props.attributes.label }),
4190
4190
  " ",
4191
- props.attributes?.label && props.attributes.required && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { className: "bg-error-weak", children: "*" }),
4192
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
4191
+ props.attributes?.label && props.attributes.required && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { className: "bg-error-weak", children: "*" }),
4192
+ /* @__PURE__ */ (0, import_jsx_runtime78.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_runtime76.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_runtime78.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,13 +4211,13 @@ var init_DateInput = __esm({
4211
4211
  });
4212
4212
 
4213
4213
  // src/components/controls/edit/RadioInput.tsx
4214
- var import_react55, import_jsx_runtime77, RadioInput, RadioInput_default;
4214
+ var import_react55, import_jsx_runtime79, RadioInput, RadioInput_default;
4215
4215
  var init_RadioInput = __esm({
4216
4216
  "src/components/controls/edit/RadioInput.tsx"() {
4217
4217
  "use strict";
4218
4218
  import_react55 = require("react");
4219
4219
  init_Icon();
4220
- import_jsx_runtime77 = require("react/jsx-runtime");
4220
+ import_jsx_runtime79 = require("react/jsx-runtime");
4221
4221
  RadioInput = (props) => {
4222
4222
  const [list, setList] = (0, import_react55.useState)([]);
4223
4223
  (0, import_react55.useEffect)(() => {
@@ -4262,22 +4262,22 @@ var init_RadioInput = __esm({
4262
4262
  });
4263
4263
  }
4264
4264
  };
4265
- return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "block", children: [
4266
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("span", { className: "text-sm font-medium", children: props.attributes?.label }),
4267
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "flex flex-col gap-3", children: list.map((item, index) => {
4265
+ return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: "block", children: [
4266
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { className: "text-sm font-medium", children: props.attributes?.label }),
4267
+ /* @__PURE__ */ (0, import_jsx_runtime79.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_runtime77.jsxs)(
4274
+ return /* @__PURE__ */ (0, import_jsx_runtime79.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_runtime77.jsxs)("div", { className: "flex gap-4 items-start", children: [
4280
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
4279
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: "flex gap-4 items-start", children: [
4280
+ /* @__PURE__ */ (0, import_jsx_runtime79.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_runtime77.jsx)("label", { className: "text-body-950 pr-2", htmlFor: inputId, children: item[props.dataTextFieldName] })
4294
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("label", { className: "text-body-950 pr-2", htmlFor: inputId, children: item[props.dataTextFieldName] })
4295
4295
  ] }),
4296
- iconName && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(Icon_default, { className: "w-5 h-5 text-success", name: iconName })
4296
+ iconName && /* @__PURE__ */ (0, import_jsx_runtime79.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_runtime77.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_runtime79.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,12 +4307,12 @@ var init_RadioInput = __esm({
4307
4307
  });
4308
4308
 
4309
4309
  // src/components/controls/edit/Switcher.tsx
4310
- var import_react56, import_jsx_runtime78, Switcher, Switcher_default;
4310
+ var import_react56, import_jsx_runtime80, Switcher, Switcher_default;
4311
4311
  var init_Switcher = __esm({
4312
4312
  "src/components/controls/edit/Switcher.tsx"() {
4313
4313
  "use strict";
4314
4314
  import_react56 = require("react");
4315
- import_jsx_runtime78 = require("react/jsx-runtime");
4315
+ import_jsx_runtime80 = require("react/jsx-runtime");
4316
4316
  Switcher = (props) => {
4317
4317
  const [list, setList] = (0, import_react56.useState)([]);
4318
4318
  (0, import_react56.useEffect)(() => {
@@ -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_runtime78.jsxs)("label", { className: "block mb-1", children: [
4360
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { className: "text-sm font-medium", children: props.attributes?.label }),
4361
- list.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
4359
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("label", { className: "block mb-1", children: [
4360
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("span", { className: "text-sm font-medium", children: props.attributes?.label }),
4361
+ list.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime80.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_runtime78.jsxs)(
4374
+ ) : /* @__PURE__ */ (0, import_jsx_runtime80.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_runtime78.jsx)("option", { value: "", children: props.attributes?.placeholder || "Select" }),
4386
- list.map((item) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
4385
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("option", { value: "", children: props.attributes?.placeholder || "Select" }),
4386
+ list.map((item) => /* @__PURE__ */ (0, import_jsx_runtime80.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_runtime78.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_runtime80.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_runtime79, ReferenceInput, ReferenceInput_default;
4405
+ var import_jsx_runtime81, 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_runtime79 = require("react/jsx-runtime");
4410
+ import_jsx_runtime81 = require("react/jsx-runtime");
4411
4411
  ReferenceInput = (props) => {
4412
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(SelectWithSearchInput_default, { ...props });
4412
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(SelectWithSearchInput_default, { ...props });
4413
4413
  };
4414
4414
  ReferenceInput_default = ReferenceInput;
4415
4415
  }
@@ -4420,7 +4420,7 @@ var InputControlClient_exports = {};
4420
4420
  __export(InputControlClient_exports, {
4421
4421
  default: () => InputControlClient_default
4422
4422
  });
4423
- var import_react57, import_jsx_runtime80, InputControl, InputControlClient_default;
4423
+ var import_react57, import_jsx_runtime82, InputControl, InputControlClient_default;
4424
4424
  var init_InputControlClient = __esm({
4425
4425
  "src/components/controls/edit/InputControlClient.tsx"() {
4426
4426
  "use strict";
@@ -4449,7 +4449,7 @@ var init_InputControlClient = __esm({
4449
4449
  init_RadioInput();
4450
4450
  init_Switcher();
4451
4451
  init_ReferenceInput();
4452
- import_jsx_runtime80 = require("react/jsx-runtime");
4452
+ import_jsx_runtime82 = require("react/jsx-runtime");
4453
4453
  InputControl = import_react57.default.forwardRef(
4454
4454
  (props, ref) => {
4455
4455
  const ControlComponents = {
@@ -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_runtime80.jsx)(import_react57.default.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
4481
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_react57.default.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
4482
4482
  }
4483
4483
  );
4484
4484
  InputControl.displayName = "InputControl";
@@ -4504,7 +4504,7 @@ var DataBindingControls_exports = {};
4504
4504
  __export(DataBindingControls_exports, {
4505
4505
  default: () => DataBindingControls_default
4506
4506
  });
4507
- var import_react58, import_navigation, import_jsx_runtime81, humanize, escapeODataString, parseFacetSelections, buildFacetFilter, parseODataSearch, normalizeSortOption, DUMMY_FACETS, DUMMY_SORT_OPTIONS, DataBindingControls, DataBindingControls_default;
4507
+ var import_react58, import_navigation, import_jsx_runtime83, 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";
@@ -4513,7 +4513,7 @@ var init_DataBindingControls = __esm({
4513
4513
  import_navigation = require("next/navigation");
4514
4514
  init_InputControl();
4515
4515
  init_InputControlType();
4516
- import_jsx_runtime81 = require("react/jsx-runtime");
4516
+ import_jsx_runtime83 = 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) => {
@@ -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_runtime81.jsxs)("div", { className: stacked ? "flex flex-col gap-1" : "flex flex-wrap gap-2", children: [
4666
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
4665
+ const renderFacetLinks = (field, values, stacked = false) => /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: stacked ? "flex flex-col gap-1" : "flex flex-wrap gap-2", children: [
4666
+ /* @__PURE__ */ (0, import_jsx_runtime83.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_runtime81.jsxs)(
4678
+ return /* @__PURE__ */ (0, import_jsx_runtime83.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_runtime81.jsxs)("div", { className: mode === "toolbar" ? "mb-6" : "flex flex-col gap-2", children: [
4697
- shouldShowToolbar && /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "flex flex-col gap-3 md:flex-row md:items-center md:justify-between", children: [
4698
- showSearchBar && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "w-full max-w-xl", children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
4696
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: mode === "toolbar" ? "mb-6" : "flex flex-col gap-2", children: [
4697
+ shouldShowToolbar && /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: "flex flex-col gap-3 md:flex-row md:items-center md:justify-between", children: [
4698
+ showSearchBar && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: "w-full max-w-xl", children: /* @__PURE__ */ (0, import_jsx_runtime83.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_runtime81.jsxs)("div", { className: "flex items-center gap-2 text-sm", children: [
4710
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: "font-medium", children: "Sort by" }),
4711
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
4709
+ hasSortControls && /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: "flex items-center gap-2 text-sm", children: [
4710
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("span", { className: "font-medium", children: "Sort by" }),
4711
+ /* @__PURE__ */ (0, import_jsx_runtime83.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_runtime81.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_runtime81.jsx)("div", { className: "flex flex-col gap-2", children: facetGroups.map(([field, values]) => /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("details", { className: "border-b", open: true, children: [
4734
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("summary", { className: "cursor-pointer font-semibold", children: humanize(field) }),
4735
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "p-2", children: renderFacetLinks(field, values, true) })
4732
+ shouldShowFacets && facetGroups.length === 1 && /* @__PURE__ */ (0, import_jsx_runtime83.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_runtime83.jsx)("div", { className: "flex flex-col gap-2", children: facetGroups.map(([field, values]) => /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("details", { className: "border-b", open: true, children: [
4734
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("summary", { className: "cursor-pointer font-semibold", children: humanize(field) }),
4735
+ /* @__PURE__ */ (0, import_jsx_runtime83.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_react59, import_jsx_runtime82, Slider, ArrowButton, ProgressPill, Slider_default;
4748
+ var import_react59, import_jsx_runtime84, 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
4753
  import_react59 = __toESM(require("react"));
4754
- import_jsx_runtime82 = require("react/jsx-runtime");
4754
+ import_jsx_runtime84 = require("react/jsx-runtime");
4755
4755
  Slider = ({
4756
4756
  children,
4757
4757
  slidesToShow = 4,
@@ -4848,7 +4848,7 @@ var init_Slider = __esm({
4848
4848
  if (!import_react59.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_runtime82.jsx)(
4851
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
4852
4852
  "div",
4853
4853
  {
4854
4854
  className: `flex-none ${scaleOnHover ? "group hover:z-50" : ""} relative`,
@@ -4871,14 +4871,14 @@ var init_Slider = __esm({
4871
4871
  return "bottom-4";
4872
4872
  }
4873
4873
  };
4874
- return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
4874
+ return /* @__PURE__ */ (0, import_jsx_runtime84.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_runtime82.jsx)(
4881
+ /* @__PURE__ */ (0, import_jsx_runtime84.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_runtime82.jsxs)(import_jsx_runtime82.Fragment, { children: [
4893
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
4892
+ show_arrows && /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(import_jsx_runtime84.Fragment, { children: [
4893
+ /* @__PURE__ */ (0, import_jsx_runtime84.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_runtime82.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_runtime82.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M15.75 19.5 8.25 12l7.5-7.5" }) })
4900
+ children: /* @__PURE__ */ (0, import_jsx_runtime84.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_runtime84.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_runtime82.jsxs)(
4903
+ /* @__PURE__ */ (0, import_jsx_runtime84.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_runtime82.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_runtime82.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "m8.25 4.5 7.5 7.5-7.5 7.5" }) }),
4911
+ /* @__PURE__ */ (0, import_jsx_runtime84.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_runtime84.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_runtime82.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_runtime82.jsx)(
4917
+ show_dots && /* @__PURE__ */ (0, import_jsx_runtime84.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_runtime84.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_runtime82.jsx)(
4943
+ }) => /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
4944
4944
  "button",
4945
4945
  {
4946
4946
  className: `
@@ -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_runtime82.jsx)(
5030
+ return /* @__PURE__ */ (0, import_jsx_runtime84.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_runtime82.jsx)(
5042
+ return /* @__PURE__ */ (0, import_jsx_runtime84.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_runtime82.jsxs)(
5052
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
5053
5053
  "button",
5054
5054
  {
5055
5055
  className: `${baseClasses} ${getStyleClasses()}`,
@@ -5878,16 +5878,411 @@ var CommentImageNode = ({ node, assetBaseUrl }) => {
5878
5878
  };
5879
5879
  var CommentImageNode_default = CommentImageNode;
5880
5880
 
5881
- // src/components/controls/view/CommentNodeRenderer.tsx
5881
+ // src/components/controls/view/CommentFileNode.tsx
5882
+ init_AssetUtility();
5883
+
5884
+ // src/components/controls/view/FileIcon.tsx
5882
5885
  var import_jsx_runtime32 = require("react/jsx-runtime");
5886
+ var PdfIcon = () => /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
5887
+ "svg",
5888
+ {
5889
+ xmlns: "http://www.w3.org/2000/svg",
5890
+ viewBox: "0 0 48 48",
5891
+ className: "w-10 h-10",
5892
+ children: [
5893
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
5894
+ "path",
5895
+ {
5896
+ fill: "#e53935",
5897
+ 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"
5898
+ }
5899
+ ),
5900
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
5901
+ "path",
5902
+ {
5903
+ fill: "#fff",
5904
+ d: "M34.841,26.799c-1.692-1.757-6.314-1.041-7.42-0.911c-1.627-1.562-2.734-3.45-3.124-4.101 c0.586-1.757,0.976-3.515,1.041-5.402c0-1.627-0.651-3.385-2.473-3.385c-0.651,0-1.237,0.391-1.562,0.911 c-0.781,1.367-0.456,4.101,0.781,6.899c-0.716,2.018-1.367,3.97-3.189,7.42c-1.888,0.781-5.858,2.604-6.183,4.556 c-0.13,0.586,0.065,1.172,0.521,1.627C13.688,34.805,14.273,35,14.859,35c2.408,0,4.751-3.32,6.379-6.118 c1.367-0.456,3.515-1.107,5.663-1.497c2.538,2.213,4.751,2.538,5.923,2.538c1.562,0,2.148-0.651,2.343-1.237 C35.492,28.036,35.297,27.32,34.841,26.799z M33.214,27.905c-0.065,0.456-0.651,0.911-1.692,0.651 c-1.237-0.325-2.343-0.911-3.32-1.692c0.846-0.13,2.734-0.325,4.101-0.065C32.824,26.929,33.344,27.254,33.214,27.905z M22.344,14.497c0.13-0.195,0.325-0.325,0.521-0.325c0.586,0,0.716,0.716,0.716,1.302c-0.065,1.367-0.325,2.734-0.781,4.036 C21.824,16.905,22.019,15.083,22.344,14.497z M22.214,27.124c0.521-1.041,1.237-2.864,1.497-3.645 c0.586,0.976,1.562,2.148,2.083,2.669C25.794,26.213,23.776,26.604,22.214,27.124z M18.374,29.728 c-1.497,2.473-3.059,4.036-3.905,4.036c-0.13,0-0.26-0.065-0.391-0.13c-0.195-0.13-0.26-0.325-0.195-0.586 C14.078,32.136,15.77,30.899,18.374,29.728z"
5905
+ }
5906
+ )
5907
+ ]
5908
+ }
5909
+ );
5910
+ var ExcelIcon = () => /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
5911
+ "svg",
5912
+ {
5913
+ xmlns: "http://www.w3.org/2000/svg",
5914
+ viewBox: "0 0 48 48",
5915
+ className: "w-10 h-10",
5916
+ children: [
5917
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
5918
+ "path",
5919
+ {
5920
+ fill: "#169154",
5921
+ d: "M29,6H15.744C14.781,6,14,6.781,14,7.744v7.259h15V6z"
5922
+ }
5923
+ ),
5924
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
5925
+ "path",
5926
+ {
5927
+ fill: "#18482a",
5928
+ d: "M14,33.054v7.202C14,41.219,14.781,42,15.743,42H29v-8.946H14z"
5929
+ }
5930
+ ),
5931
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("path", { fill: "#0c8045", d: "M14 15.003H29V24.005000000000003H14z" }),
5932
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("path", { fill: "#17472a", d: "M14 24.005H29V33.055H14z" }),
5933
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("g", { children: [
5934
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
5935
+ "path",
5936
+ {
5937
+ fill: "#29c27f",
5938
+ d: "M42.256,6H29v9.003h15V7.744C44,6.781,43.219,6,42.256,6z"
5939
+ }
5940
+ ),
5941
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
5942
+ "path",
5943
+ {
5944
+ fill: "#27663f",
5945
+ d: "M29,33.054V42h13.257C43.219,42,44,41.219,44,40.257v-7.202H29z"
5946
+ }
5947
+ ),
5948
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("path", { fill: "#19ac65", d: "M29 15.003H44V24.005000000000003H29z" }),
5949
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("path", { fill: "#129652", d: "M29 24.005H44V33.055H29z" })
5950
+ ] }),
5951
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
5952
+ "path",
5953
+ {
5954
+ fill: "#0c7238",
5955
+ 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"
5956
+ }
5957
+ ),
5958
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
5959
+ "path",
5960
+ {
5961
+ fill: "#fff",
5962
+ d: "M9.807 19L12.193 19 14.129 22.754 16.175 19 18.404 19 15.333 24 18.474 29 16.123 29 14.013 25.07 11.912 29 9.526 29 12.719 23.982z"
5963
+ }
5964
+ )
5965
+ ]
5966
+ }
5967
+ );
5968
+ var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
5969
+ "svg",
5970
+ {
5971
+ xmlns: "http://www.w3.org/2000/svg",
5972
+ viewBox: "0 0 48 48",
5973
+ className: "w-10 h-10",
5974
+ baseProfile: "basic",
5975
+ children: [
5976
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
5977
+ "path",
5978
+ {
5979
+ fill: "#283593",
5980
+ 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"
5981
+ }
5982
+ ),
5983
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
5984
+ "linearGradient",
5985
+ {
5986
+ id: "qh2LT5tehRDFkLLfb-odWa",
5987
+ x1: "9",
5988
+ x2: "33.506",
5989
+ y1: "364.445",
5990
+ y2: "364.445",
5991
+ gradientTransform: "translate(0 -339.89)",
5992
+ gradientUnits: "userSpaceOnUse",
5993
+ children: [
5994
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("stop", { offset: "0", "stop-color": "#66c0ff" }),
5995
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("stop", { offset: ".26", "stop-color": "#0094f0" })
5996
+ ]
5997
+ }
5998
+ ),
5999
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
6000
+ "path",
6001
+ {
6002
+ fill: "url(#qh2LT5tehRDFkLLfb-odWa)",
6003
+ 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"
6004
+ }
6005
+ ),
6006
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
6007
+ "path",
6008
+ {
6009
+ fill: "#1e88e5",
6010
+ "fill-opacity": ".6",
6011
+ 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"
6012
+ }
6013
+ ),
6014
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
6015
+ "path",
6016
+ {
6017
+ fill: "#00e5ff",
6018
+ 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"
6019
+ }
6020
+ ),
6021
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
6022
+ "path",
6023
+ {
6024
+ fill: "#1565c0",
6025
+ 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"
6026
+ }
6027
+ ),
6028
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
6029
+ "path",
6030
+ {
6031
+ fill: "#fff",
6032
+ d: "M18.327,26.643l-2.092,9.713l-2.501,0.002L12.5,30.529l-1.293,5.829H8.683l-2.01-9.713h2.062 l1.24,6.41l1.232-6.41h2.528l1.291,6.41l1.21-6.41L18.327,26.643L18.327,26.643z"
6033
+ }
6034
+ )
6035
+ ]
6036
+ }
6037
+ );
6038
+ var StandardIcon = () => /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
6039
+ "svg",
6040
+ {
6041
+ xmlns: "http://www.w3.org/2000/svg",
6042
+ viewBox: "0 0 48 48",
6043
+ className: "w-10 h-10",
6044
+ children: [
6045
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
6046
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" })
6047
+ ]
6048
+ }
6049
+ );
6050
+ var PowerPointIcon = () => /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
6051
+ "svg",
6052
+ {
6053
+ xmlns: "http://www.w3.org/2000/svg",
6054
+ viewBox: "0 0 48 48",
6055
+ className: "w-10 h-10",
6056
+ children: [
6057
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
6058
+ "path",
6059
+ {
6060
+ fill: "#dc4c2c",
6061
+ d: "M8,24c0,9.941,8.059,18,18,18s18-8.059,18-18H26H8z"
6062
+ }
6063
+ ),
6064
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("path", { fill: "#f7a278", d: "M26,6v18h18C44,14.059,35.941,6,26,6z" }),
6065
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("path", { fill: "#c06346", d: "M26,6C16.059,6,8,14.059,8,24h18V6z" }),
6066
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
6067
+ "path",
6068
+ {
6069
+ fill: "#9b341f",
6070
+ 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"
6071
+ }
6072
+ ),
6073
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
6074
+ "path",
6075
+ {
6076
+ fill: "#fff",
6077
+ d: "M14.673,19.012H10v10h2.024v-3.521H14.3c1.876,0,3.397-1.521,3.397-3.397v-0.058 C17.697,20.366,16.343,19.012,14.673,19.012z M15.57,22.358c0,0.859-0.697,1.556-1.556,1.556h-1.99v-3.325h1.99 c0.859,0,1.556,0.697,1.556,1.556V22.358z"
6078
+ }
6079
+ )
6080
+ ]
6081
+ }
6082
+ );
6083
+ var TextIcon = () => /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
6084
+ "svg",
6085
+ {
6086
+ xmlns: "http://www.w3.org/2000/svg",
6087
+ viewBox: "0 0 48 48",
6088
+ className: "w-10 h-10",
6089
+ children: [
6090
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
6091
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" }),
6092
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
6093
+ "path",
6094
+ {
6095
+ fill: "#1976D2",
6096
+ d: "M16 21H33V23H16zM16 25H29V27H16zM16 29H33V31H16zM16 33H29V35H16z"
6097
+ }
6098
+ )
6099
+ ]
6100
+ }
6101
+ );
6102
+ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
6103
+ "svg",
6104
+ {
6105
+ xmlns: "http://www.w3.org/2000/svg",
6106
+ zoomAndPan: "magnify",
6107
+ viewBox: "0 0 75 74.999997",
6108
+ preserveAspectRatio: "xMidYMid meet",
6109
+ version: "1.0",
6110
+ className: "w-10 h-10",
6111
+ children: [
6112
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("clipPath", { id: "273d29c8a6", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
6113
+ "path",
6114
+ {
6115
+ d: "M 8.90625 0 L 65.90625 0 L 65.90625 75 L 8.90625 75 Z M 8.90625 0 ",
6116
+ "clip-rule": "nonzero"
6117
+ }
6118
+ ) }) }),
6119
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("g", { "clip-path": "url(#273d29c8a6)", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
6120
+ "path",
6121
+ {
6122
+ fill: "#ff9100",
6123
+ d: "M 65.882812 75 L 8.929688 75 L 8.929688 0 L 48.085938 0 L 65.882812 17.855469 Z M 65.882812 75 ",
6124
+ "fill-opacity": "1",
6125
+ "fill-rule": "nonzero"
6126
+ }
6127
+ ) }),
6128
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
6129
+ "path",
6130
+ {
6131
+ fill: "#fbe9e7",
6132
+ d: "M 63.214844 19.644531 L 46.304688 19.644531 L 46.304688 2.679688 Z M 63.214844 19.644531 ",
6133
+ "fill-opacity": "1",
6134
+ "fill-rule": "nonzero"
6135
+ }
6136
+ ),
6137
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
6138
+ "path",
6139
+ {
6140
+ fill: "#ffe0b2",
6141
+ d: "M 26.523438 50.59375 L 33.824219 50.59375 L 33.824219 53.570312 L 22.339844 53.570312 L 22.339844 51.410156 L 29.566406 38.789062 L 22.265625 38.789062 L 22.265625 35.796875 L 33.691406 35.796875 L 33.691406 37.910156 Z M 26.523438 50.59375 ",
6142
+ "fill-opacity": "1",
6143
+ "fill-rule": "nonzero"
6144
+ }
6145
+ ),
6146
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
6147
+ "path",
6148
+ {
6149
+ fill: "#ffe0b2",
6150
+ d: "M 36.183594 35.796875 L 39.757812 35.796875 L 39.757812 53.570312 L 36.183594 53.570312 Z M 36.183594 35.796875 ",
6151
+ "fill-opacity": "1",
6152
+ "fill-rule": "nonzero"
6153
+ }
6154
+ ),
6155
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
6156
+ "path",
6157
+ {
6158
+ fill: "#ffe0b2",
6159
+ d: "M 46.34375 47.320312 L 46.34375 53.570312 L 42.765625 53.570312 L 42.765625 35.796875 L 48.800781 35.796875 C 50.550781 35.796875 51.953125 36.34375 52.992188 37.433594 C 54.035156 38.523438 54.554688 39.9375 54.554688 41.683594 C 54.554688 43.425781 54.039062 44.796875 53.011719 45.808594 C 51.980469 46.820312 50.550781 47.320312 48.726562 47.320312 Z M 46.34375 44.332031 L 48.800781 44.332031 C 49.484375 44.332031 50.007812 44.105469 50.382812 43.660156 C 50.757812 43.210938 50.941406 42.5625 50.941406 41.707031 C 50.941406 40.816406 50.753906 40.113281 50.371094 39.585938 C 49.988281 39.0625 49.476562 38.796875 48.839844 38.789062 L 46.34375 38.789062 Z M 46.34375 44.332031 ",
6160
+ "fill-opacity": "1",
6161
+ "fill-rule": "nonzero"
6162
+ }
6163
+ )
6164
+ ]
6165
+ }
6166
+ );
6167
+ var getFileDetails = (url) => {
6168
+ const extMatch = url.match(/\.([a-zA-Z0-9]+)(?:[\?#]|$)/);
6169
+ const ext = extMatch ? extMatch[1].toLowerCase() : "";
6170
+ let Icon2 = StandardIcon;
6171
+ let extLabel = "FILE";
6172
+ if (ext === "pdf") {
6173
+ Icon2 = PdfIcon;
6174
+ extLabel = "PDF";
6175
+ } else if (["xls", "xlsx", "csv"].includes(ext)) {
6176
+ Icon2 = ExcelIcon;
6177
+ extLabel = "Excel";
6178
+ } else if (["doc", "docx"].includes(ext)) {
6179
+ Icon2 = WordIcon;
6180
+ extLabel = "Word";
6181
+ } else if (["ppt", "pptx"].includes(ext)) {
6182
+ Icon2 = PowerPointIcon;
6183
+ extLabel = "PowerPoint";
6184
+ } else if (["txt", "rtf"].includes(ext)) {
6185
+ Icon2 = TextIcon;
6186
+ extLabel = "Text";
6187
+ } else if (["zip", "rar", "7z"].includes(ext)) {
6188
+ Icon2 = ArchiveIcon;
6189
+ extLabel = "Archive";
6190
+ } else if (ext) {
6191
+ extLabel = ext.toUpperCase();
6192
+ }
6193
+ return { Icon: Icon2, extLabel };
6194
+ };
6195
+ var FileIcon = ({ fileName, className }) => {
6196
+ const { Icon: Icon2 } = getFileDetails(fileName);
6197
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Icon2, {}) });
6198
+ };
6199
+ var FileIcon_default = FileIcon;
6200
+
6201
+ // src/components/controls/view/CommentFileNode.tsx
6202
+ var import_jsx_runtime33 = require("react/jsx-runtime");
6203
+ var formatFileSize = (sizeBytes) => {
6204
+ const bytes = typeof sizeBytes === "number" ? sizeBytes : Number(sizeBytes);
6205
+ if (!Number.isFinite(bytes) || bytes <= 0) {
6206
+ return "";
6207
+ }
6208
+ if (bytes < 1024) {
6209
+ return `${bytes} B`;
6210
+ }
6211
+ const units = ["KB", "MB", "GB"];
6212
+ let value = bytes / 1024;
6213
+ let unitIndex = 0;
6214
+ while (value >= 1024 && unitIndex < units.length - 1) {
6215
+ value /= 1024;
6216
+ unitIndex += 1;
6217
+ }
6218
+ return `${value.toFixed(value < 10 ? 1 : 0)} ${units[unitIndex]}`;
6219
+ };
6220
+ var CommentFileNode = ({ node, assetBaseUrl }) => {
6221
+ const rawUrl = typeof node.url === "string" && node.url || typeof node.src === "string" && node.src || typeof node.assetUrl === "string" && node.assetUrl || "";
6222
+ if (!rawUrl) {
6223
+ return null;
6224
+ }
6225
+ const href = AssetUtility_default.resolveUrl(assetBaseUrl, rawUrl);
6226
+ if (!href) {
6227
+ return null;
6228
+ }
6229
+ const fileName = typeof node.fileName === "string" && node.fileName || typeof node.name === "string" && node.name || rawUrl.split("/").pop() || "file";
6230
+ const sizeLabel = formatFileSize(node.fileSize);
6231
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
6232
+ "a",
6233
+ {
6234
+ href,
6235
+ target: "_blank",
6236
+ rel: "noopener noreferrer",
6237
+ download: fileName,
6238
+ className: "comment-node-file",
6239
+ style: {
6240
+ display: "inline-flex",
6241
+ alignItems: "center",
6242
+ gap: "8px",
6243
+ padding: "8px 12px",
6244
+ border: "1px solid rgba(0,0,0,0.12)",
6245
+ borderRadius: "8px",
6246
+ textDecoration: "none",
6247
+ color: "inherit",
6248
+ maxWidth: "100%"
6249
+ },
6250
+ children: [
6251
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(FileIcon_default, { fileName, className: "comment-node-file-icon" }),
6252
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
6253
+ "span",
6254
+ {
6255
+ className: "comment-node-file-text",
6256
+ style: { display: "flex", flexDirection: "column", minWidth: 0 },
6257
+ children: [
6258
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
6259
+ "span",
6260
+ {
6261
+ className: "comment-node-file-name",
6262
+ style: { overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" },
6263
+ children: fileName
6264
+ }
6265
+ ),
6266
+ sizeLabel ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "comment-node-file-size", style: { fontSize: "0.8em", opacity: 0.7 }, children: sizeLabel }) : null
6267
+ ]
6268
+ }
6269
+ )
6270
+ ]
6271
+ }
6272
+ );
6273
+ };
6274
+ var CommentFileNode_default = CommentFileNode;
6275
+
6276
+ // src/components/controls/view/CommentNodeRenderer.tsx
6277
+ var import_jsx_runtime34 = require("react/jsx-runtime");
5883
6278
  var TextLeafNode = ({ node }) => {
5884
6279
  let content = node.text;
5885
- if (node.code) content = /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("code", { className: "comment-node-code", children: content });
5886
- if (node.bold) content = /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("strong", { children: content });
5887
- if (node.italic) content = /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("em", { children: content });
5888
- if (node.underline) content = /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("u", { children: content });
5889
- if (node.strikethrough) content = /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("s", { children: content });
5890
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react22.default.Fragment, { children: content });
6280
+ if (node.code) content = /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("code", { className: "comment-node-code", children: content });
6281
+ if (node.bold) content = /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("strong", { children: content });
6282
+ if (node.italic) content = /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("em", { children: content });
6283
+ if (node.underline) content = /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("u", { children: content });
6284
+ if (node.strikethrough) content = /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("s", { children: content });
6285
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_react22.default.Fragment, { children: content });
5891
6286
  };
5892
6287
  var renderChildren = (children, keyPrefix, assetBaseUrl) => {
5893
6288
  if (!children || children.length === 0) {
@@ -5895,7 +6290,7 @@ var renderChildren = (children, keyPrefix, assetBaseUrl) => {
5895
6290
  }
5896
6291
  return children.map((child, index) => {
5897
6292
  const childKey = isTextNode(child) ? void 0 : asElementNode(child).id;
5898
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
6293
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
5899
6294
  CommentNodeRenderer,
5900
6295
  {
5901
6296
  node: child,
@@ -5915,56 +6310,58 @@ var CommentNodeRenderer = ({ node, assetBaseUrl }) => {
5915
6310
  return null;
5916
6311
  }
5917
6312
  if (isTextNode(node)) {
5918
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(TextLeafNode, { node });
6313
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(TextLeafNode, { node });
5919
6314
  }
5920
6315
  const element = asElementNode(node);
5921
6316
  const key = element.id ?? element.type;
5922
6317
  switch (element.type) {
5923
6318
  case "paragraph":
5924
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("p", { className: "comment-node-paragraph", children: renderChildren(element.children, key, assetBaseUrl) ?? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("br", {}) });
6319
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", { className: "comment-node-paragraph", children: renderChildren(element.children, key, assetBaseUrl) ?? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("br", {}) });
5925
6320
  case "heading": {
5926
6321
  const level = headingLevelFromTag(element.tag ?? element.level);
5927
6322
  const HeadingTag = `h${level}`;
5928
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(HeadingTag, { className: "comment-node-heading", children: renderChildren(element.children, key, assetBaseUrl) });
6323
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(HeadingTag, { className: "comment-node-heading", children: renderChildren(element.children, key, assetBaseUrl) });
5929
6324
  }
5930
6325
  case "list": {
5931
6326
  const ordered = element.listType === "number" || element.ordered === true;
5932
6327
  const ListTag = ordered ? "ol" : "ul";
5933
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(ListTag, { className: "comment-node-list", children: renderChildren(element.children, key, assetBaseUrl) });
6328
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(ListTag, { className: "comment-node-list", children: renderChildren(element.children, key, assetBaseUrl) });
5934
6329
  }
5935
6330
  case "listitem":
5936
6331
  case "list-item":
5937
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("li", { className: "comment-node-listitem", children: renderChildren(element.children, key, assetBaseUrl) });
6332
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("li", { className: "comment-node-listitem", children: renderChildren(element.children, key, assetBaseUrl) });
5938
6333
  case "quote":
5939
6334
  case "blockquote":
5940
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("blockquote", { className: "comment-node-quote", children: renderChildren(element.children, key, assetBaseUrl) });
6335
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("blockquote", { className: "comment-node-quote", children: renderChildren(element.children, key, assetBaseUrl) });
5941
6336
  case "code":
5942
6337
  case "code-block":
5943
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("pre", { className: "comment-node-codeblock", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("code", { children: renderChildren(element.children, key, assetBaseUrl) }) });
6338
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("pre", { className: "comment-node-codeblock", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("code", { children: renderChildren(element.children, key, assetBaseUrl) }) });
5944
6339
  case "image":
5945
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(CommentImageNode_default, { node: element, assetBaseUrl });
6340
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(CommentImageNode_default, { node: element, assetBaseUrl });
6341
+ case "file":
6342
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(CommentFileNode_default, { node: element, assetBaseUrl });
5946
6343
  case "link": {
5947
6344
  const url = typeof element.url === "string" ? element.url : "#";
5948
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("a", { href: url, target: "_blank", rel: "noopener noreferrer", className: "comment-node-link", children: renderChildren(element.children, key, assetBaseUrl) });
6345
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("a", { href: url, target: "_blank", rel: "noopener noreferrer", className: "comment-node-link", children: renderChildren(element.children, key, assetBaseUrl) });
5949
6346
  }
5950
6347
  case "mention": {
5951
6348
  const label = element.label ?? element.mentionName ?? element.text ?? "";
5952
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("span", { className: "comment-node-mention", children: [
6349
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("span", { className: "comment-node-mention", children: [
5953
6350
  "@",
5954
6351
  label
5955
6352
  ] });
5956
6353
  }
5957
6354
  case "linebreak":
5958
6355
  case "line-break":
5959
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("br", {});
6356
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("br", {});
5960
6357
  default:
5961
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react22.default.Fragment, { children: renderChildren(element.children, key, assetBaseUrl) });
6358
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_react22.default.Fragment, { children: renderChildren(element.children, key, assetBaseUrl) });
5962
6359
  }
5963
6360
  };
5964
6361
  var CommentNodeRenderer_default = CommentNodeRenderer;
5965
6362
 
5966
6363
  // src/components/controls/view/Commentrenderer.tsx
5967
- var import_jsx_runtime33 = require("react/jsx-runtime");
6364
+ var import_jsx_runtime35 = require("react/jsx-runtime");
5968
6365
  var CommentRenderer = ({ value, className, assetBaseUrl, apiBaseUrl }) => {
5969
6366
  const nodes = import_react23.default.useMemo(() => parseSerializedContent(value), [value]);
5970
6367
  if (!nodes || nodes.length === 0) {
@@ -5972,7 +6369,7 @@ var CommentRenderer = ({ value, className, assetBaseUrl, apiBaseUrl }) => {
5972
6369
  }
5973
6370
  const resolvedAssetBaseUrl = assetBaseUrl ?? apiBaseUrl;
5974
6371
  console.log(resolvedAssetBaseUrl, "resolvedAssetBaseUrl");
5975
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: className ?? "comment-renderer", children: nodes.map((node, index) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
6372
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: className ?? "comment-renderer", children: nodes.map((node, index) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5976
6373
  CommentNodeRenderer_default,
5977
6374
  {
5978
6375
  node,
@@ -5984,7 +6381,7 @@ var CommentRenderer = ({ value, className, assetBaseUrl, apiBaseUrl }) => {
5984
6381
  var Commentrenderer_default = CommentRenderer;
5985
6382
 
5986
6383
  // src/components/controls/view/ViewControl.tsx
5987
- var import_jsx_runtime34 = require("react/jsx-runtime");
6384
+ var import_jsx_runtime36 = require("react/jsx-runtime");
5988
6385
  var ViewControl = (props) => {
5989
6386
  const ControlComponents = {
5990
6387
  [ViewControlTypes_default.lineText]: LineTextView_default,
@@ -6015,12 +6412,12 @@ var ViewControl = (props) => {
6015
6412
  [ViewControlTypes_default.commentRenderer]: Commentrenderer_default
6016
6413
  };
6017
6414
  const SelectedControlComponent = props.controlType ? ControlComponents[props.controlType] : void 0;
6018
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_react24.default.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
6415
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react24.default.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
6019
6416
  };
6020
6417
  var ViewControl_default = ViewControl;
6021
6418
 
6022
6419
  // src/components/pageRenderingEngine/nodes/DatafieldNode.tsx
6023
- var import_jsx_runtime35 = require("react/jsx-runtime");
6420
+ var import_jsx_runtime37 = require("react/jsx-runtime");
6024
6421
  function getNestedProperty(obj, path) {
6025
6422
  if (!obj || !path) return null;
6026
6423
  if (path.includes(".")) {
@@ -6033,7 +6430,7 @@ function getNestedProperty(obj, path) {
6033
6430
  }
6034
6431
  const value = obj[path];
6035
6432
  if (Array.isArray(value)) {
6036
- return value.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { children: String(item) }, index));
6433
+ return value.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { children: String(item) }, index));
6037
6434
  }
6038
6435
  return value;
6039
6436
  }
@@ -6096,7 +6493,7 @@ var DatafieldNode = (props) => {
6096
6493
  const dataType = props.node.dataType;
6097
6494
  if (isEmptyValue) return null;
6098
6495
  if (dataType === "rawContent") {
6099
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
6496
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
6100
6497
  PageBodyRenderer_default,
6101
6498
  {
6102
6499
  rawBody: String(value ?? `@databound[${fieldName}]`),
@@ -6112,13 +6509,13 @@ var DatafieldNode = (props) => {
6112
6509
  }
6113
6510
  );
6114
6511
  }
6115
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
6512
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
6116
6513
  "span",
6117
6514
  {
6118
6515
  className: `datafield-node ${props.node.format < Formats.length ? Formats[props.node.format] : ""}`,
6119
6516
  style: styles,
6120
6517
  title,
6121
- children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
6518
+ children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
6122
6519
  ViewControl_default,
6123
6520
  {
6124
6521
  controlType: dataType,
@@ -6133,7 +6530,7 @@ var DatafieldNode = (props) => {
6133
6530
  var DatafieldNode_default = DatafieldNode;
6134
6531
 
6135
6532
  // src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
6136
- var import_jsx_runtime36 = require("react/jsx-runtime");
6533
+ var import_jsx_runtime38 = require("react/jsx-runtime");
6137
6534
  var ParagraphNode = (props) => {
6138
6535
  const NodeTypes2 = {
6139
6536
  ["text"]: TextNode_default,
@@ -6153,9 +6550,9 @@ var ParagraphNode = (props) => {
6153
6550
  const isInlineOnlyParent = props.parentTag === "summary";
6154
6551
  const hasChildren = props.node.children && props.node.children.length > 0;
6155
6552
  if (isInlineOnlyParent) {
6156
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_jsx_runtime36.Fragment, { children: hasChildren && props.node.children.map((node, index) => {
6553
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_jsx_runtime38.Fragment, { children: hasChildren && props.node.children.map((node, index) => {
6157
6554
  const SelectedNode = NodeTypes2[node.type];
6158
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react25.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
6555
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_react25.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
6159
6556
  SelectedNode,
6160
6557
  {
6161
6558
  node,
@@ -6168,10 +6565,10 @@ var ParagraphNode = (props) => {
6168
6565
  ) }, index);
6169
6566
  }) });
6170
6567
  }
6171
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: " " + formatClasses, children: [
6568
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: " " + formatClasses, children: [
6172
6569
  hasChildren && props.node.children.map((node, index) => {
6173
6570
  const SelectedNode = NodeTypes2[node.type];
6174
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react25.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
6571
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_react25.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
6175
6572
  SelectedNode,
6176
6573
  {
6177
6574
  node,
@@ -6183,14 +6580,14 @@ var ParagraphNode = (props) => {
6183
6580
  }
6184
6581
  ) }, index);
6185
6582
  }),
6186
- !hasChildren && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "py-1.5 lg:py-2" })
6583
+ !hasChildren && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "py-1.5 lg:py-2" })
6187
6584
  ] });
6188
6585
  };
6189
6586
  var ParagraphNode_default = ParagraphNode;
6190
6587
 
6191
6588
  // src/components/pageRenderingEngine/nodes/HeadingNode.tsx
6192
6589
  var import_react26 = __toESM(require("react"));
6193
- var import_jsx_runtime37 = require("react/jsx-runtime");
6590
+ var import_jsx_runtime39 = require("react/jsx-runtime");
6194
6591
  var HeadingNode = (props) => {
6195
6592
  const NodeTypes2 = {
6196
6593
  ["text"]: TextNode_default,
@@ -6206,12 +6603,12 @@ var HeadingNode = (props) => {
6206
6603
  {
6207
6604
  }
6208
6605
  const formatClasses = FormatClass[props.node.format] || "";
6209
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_jsx_runtime37.Fragment, { children: import_react26.default.createElement(
6606
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_jsx_runtime39.Fragment, { children: import_react26.default.createElement(
6210
6607
  HeadingTag,
6211
6608
  { className: formatClasses },
6212
6609
  props.node.children && props.node.children.map((childNode, index) => {
6213
6610
  const SelectedNode = NodeTypes2[childNode.type];
6214
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_react26.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(SelectedNode, { node: childNode, dataitem: props.dataitem, session: props.session, apiBaseUrl: props.apiBaseUrl, assetBaseUrl: props.assetBaseUrl, routeParameters: props.routeParameters }) }, index);
6611
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_react26.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(SelectedNode, { node: childNode, dataitem: props.dataitem, session: props.session, apiBaseUrl: props.apiBaseUrl, assetBaseUrl: props.assetBaseUrl, routeParameters: props.routeParameters }) }, index);
6215
6612
  })
6216
6613
  ) });
6217
6614
  };
@@ -6222,7 +6619,7 @@ var import_react28 = __toESM(require("react"));
6222
6619
 
6223
6620
  // src/components/pageRenderingEngine/nodes/ListItemNode.tsx
6224
6621
  var import_react27 = __toESM(require("react"));
6225
- var import_jsx_runtime38 = require("react/jsx-runtime");
6622
+ var import_jsx_runtime40 = require("react/jsx-runtime");
6226
6623
  var ListItemNode = (props) => {
6227
6624
  const NodeTypes2 = {
6228
6625
  text: TextNode_default,
@@ -6239,37 +6636,37 @@ var ListItemNode = (props) => {
6239
6636
  liStyle.fontSize = match[1].trim();
6240
6637
  }
6241
6638
  }
6242
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("li", { style: liStyle, children: props.node.children && props.node.children.map((node, index) => {
6639
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("li", { style: liStyle, children: props.node.children && props.node.children.map((node, index) => {
6243
6640
  const SelectedNode = NodeTypes2[node.type];
6244
6641
  if (node.type === "linebreak") {
6245
6642
  if (!foundFirstBreak) {
6246
6643
  foundFirstBreak = true;
6247
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", {}, index);
6644
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", {}, index);
6248
6645
  } else {
6249
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "py-1 lg:py-2" }, index);
6646
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "py-1 lg:py-2" }, index);
6250
6647
  }
6251
6648
  } else {
6252
6649
  foundFirstBreak = false;
6253
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_react27.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
6650
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_react27.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
6254
6651
  }
6255
6652
  }) });
6256
6653
  };
6257
6654
  var ListItemNode_default = ListItemNode;
6258
6655
 
6259
6656
  // src/components/pageRenderingEngine/nodes/ListNode.tsx
6260
- var import_jsx_runtime39 = require("react/jsx-runtime");
6657
+ var import_jsx_runtime41 = require("react/jsx-runtime");
6261
6658
  var ListNode = (props) => {
6262
6659
  const NodeTypes2 = {
6263
6660
  listitem: ListItemNode_default
6264
6661
  };
6265
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_react28.default.Fragment, { children: [
6266
- props.node.listType == "bullet" && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("ul", { children: props.node.children && props.node.children.map((node, index) => {
6662
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(import_react28.default.Fragment, { children: [
6663
+ props.node.listType == "bullet" && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("ul", { children: props.node.children && props.node.children.map((node, index) => {
6267
6664
  const SelectedNode = NodeTypes2[node.type];
6268
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_react28.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
6665
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_react28.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
6269
6666
  }) }),
6270
- props.node.listType == "number" && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("ol", { children: props.node.children && props.node.children.map((node, index) => {
6667
+ props.node.listType == "number" && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("ol", { children: props.node.children && props.node.children.map((node, index) => {
6271
6668
  const SelectedNode = NodeTypes2[node.type];
6272
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_react28.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
6669
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_react28.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
6273
6670
  }) })
6274
6671
  ] });
6275
6672
  };
@@ -6277,16 +6674,16 @@ var ListNode_default = ListNode;
6277
6674
 
6278
6675
  // src/components/pageRenderingEngine/nodes/QuoteNode.tsx
6279
6676
  var import_react29 = __toESM(require("react"));
6280
- var import_jsx_runtime40 = require("react/jsx-runtime");
6677
+ var import_jsx_runtime42 = require("react/jsx-runtime");
6281
6678
  var QuoteNode = (props) => {
6282
6679
  const NodeTypes2 = {
6283
6680
  ["text"]: TextNode_default,
6284
6681
  ["linebreak"]: LineBreakNode_default,
6285
6682
  ["link"]: LinkNode_default
6286
6683
  };
6287
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("blockquote", { children: props.node.children && props.node.children.map((node, index) => {
6684
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("blockquote", { children: props.node.children && props.node.children.map((node, index) => {
6288
6685
  const SelectedNode = NodeTypes2[node.type];
6289
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_react29.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(SelectedNode, { node, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
6686
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_react29.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(SelectedNode, { node, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
6290
6687
  }) });
6291
6688
  };
6292
6689
  var QuoteNode_default = QuoteNode;
@@ -6294,11 +6691,11 @@ var QuoteNode_default = QuoteNode;
6294
6691
  // src/components/pageRenderingEngine/nodes/CodeNode.tsx
6295
6692
  var import_react31 = __toESM(require("react"));
6296
6693
  var import_dynamic7 = __toESM(require("next/dynamic"));
6297
- var import_jsx_runtime42 = require("react/jsx-runtime");
6694
+ var import_jsx_runtime44 = require("react/jsx-runtime");
6298
6695
  var CopyButton2 = (0, import_dynamic7.default)(() => Promise.resolve().then(() => (init_CopyButton(), CopyButton_exports)), {
6299
6696
  ssr: false,
6300
6697
  // optional: fallback UI while loading
6301
- loading: () => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: "text-gray-400 text-xs", children: "Copy" })
6698
+ loading: () => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: "text-gray-400 text-xs", children: "Copy" })
6302
6699
  });
6303
6700
  var CodeNode = (props) => {
6304
6701
  const NodeTypes2 = {
@@ -6312,14 +6709,14 @@ var CodeNode = (props) => {
6312
6709
  if (node.type === "link") return node.text || node.url || "";
6313
6710
  return "";
6314
6711
  }).join("") ?? "";
6315
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { children: [
6316
- /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "flex items-center relative bg-neutral-strong px-4 py-3 text-xs font-sans justify-between rounded-t-md ", children: [
6317
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { children: "Code Snippet" }),
6318
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(CopyButton2, { text: textContent })
6712
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { children: [
6713
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "flex items-center relative bg-neutral-strong px-4 py-3 text-xs font-sans justify-between rounded-t-md ", children: [
6714
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { children: "Code Snippet" }),
6715
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(CopyButton2, { text: textContent })
6319
6716
  ] }),
6320
- /* @__PURE__ */ (0, import_jsx_runtime42.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) => {
6717
+ /* @__PURE__ */ (0, import_jsx_runtime44.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) => {
6321
6718
  const SelectedNode = NodeTypes2[node.type];
6322
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_react31.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
6719
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react31.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
6323
6720
  SelectedNode,
6324
6721
  {
6325
6722
  node,
@@ -6334,15 +6731,15 @@ var CodeNode = (props) => {
6334
6731
  var CodeNode_default = CodeNode;
6335
6732
 
6336
6733
  // src/components/pageRenderingEngine/nodes/HorizontalRuleNode.tsx
6337
- var import_jsx_runtime43 = require("react/jsx-runtime");
6734
+ var import_jsx_runtime45 = require("react/jsx-runtime");
6338
6735
  var HorizontalRuleNode = () => {
6339
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("hr", {});
6736
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("hr", {});
6340
6737
  };
6341
6738
  var HorizontalRuleNode_default = HorizontalRuleNode;
6342
6739
 
6343
6740
  // src/components/pageRenderingEngine/nodes/WidgetNode.tsx
6344
6741
  var import_react32 = __toESM(require("react"));
6345
- var import_jsx_runtime44 = require("react/jsx-runtime");
6742
+ var import_jsx_runtime46 = require("react/jsx-runtime");
6346
6743
  var WidgetNode = (props) => {
6347
6744
  const getWidgetParameters = () => {
6348
6745
  const widgetInputParameters = {
@@ -6406,7 +6803,7 @@ var WidgetNode = (props) => {
6406
6803
  };
6407
6804
  const widgetCode = props.node?.widgetCode;
6408
6805
  if (!widgetCode) {
6409
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_jsx_runtime44.Fragment, { children: "Invalid widget" });
6806
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_jsx_runtime46.Fragment, { children: "Invalid widget" });
6410
6807
  }
6411
6808
  const widgetParams = getWidgetParameters();
6412
6809
  const WidgetRenderer = props.widgetRenderer;
@@ -6415,7 +6812,7 @@ var WidgetNode = (props) => {
6415
6812
  }
6416
6813
  return (
6417
6814
  // eslint-disable-next-line react-hooks/static-components
6418
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react32.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
6815
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_react32.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
6419
6816
  WidgetRenderer,
6420
6817
  {
6421
6818
  params: widgetParams,
@@ -6437,7 +6834,7 @@ var import_react60 = __toESM(require("react"));
6437
6834
 
6438
6835
  // src/components/pageRenderingEngine/nodes/EmbedNode.tsx
6439
6836
  var import_dynamic8 = __toESM(require("next/dynamic"));
6440
- var import_jsx_runtime47 = require("react/jsx-runtime");
6837
+ var import_jsx_runtime49 = require("react/jsx-runtime");
6441
6838
  var IframeClient2 = (0, import_dynamic8.default)(() => Promise.resolve().then(() => (init_IframeClient(), IframeClient_exports)), {
6442
6839
  ssr: false
6443
6840
  });
@@ -6450,7 +6847,7 @@ var EmbedNode = (props) => {
6450
6847
  } else {
6451
6848
  src = props.node.embedSrc;
6452
6849
  }
6453
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "aspect-video", children: src && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(IframeClient2, { src }) });
6850
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "aspect-video", children: src && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(IframeClient2, { src }) });
6454
6851
  };
6455
6852
  var EmbedNode_default = EmbedNode;
6456
6853
 
@@ -6650,10 +7047,10 @@ var PathUtility = class {
6650
7047
  var PathUtility_default = new PathUtility();
6651
7048
 
6652
7049
  // src/components/NoDataFound.tsx
6653
- var import_jsx_runtime48 = require("react/jsx-runtime");
7050
+ var import_jsx_runtime50 = require("react/jsx-runtime");
6654
7051
  var NoDataFound = () => {
6655
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center bg-neutral-weak", children: [
6656
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "mb-5", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "mx-auto w-20 h-20 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
7052
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center bg-neutral-weak", children: [
7053
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "mb-5", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "mx-auto w-20 h-20 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
6657
7054
  "svg",
6658
7055
  {
6659
7056
  className: "w-10 h-10",
@@ -6661,7 +7058,7 @@ var NoDataFound = () => {
6661
7058
  stroke: "currentColor",
6662
7059
  viewBox: "0 0 24 24",
6663
7060
  xmlns: "http://www.w3.org/2000/svg",
6664
- children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
7061
+ children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
6665
7062
  "path",
6666
7063
  {
6667
7064
  strokeLinecap: "round",
@@ -6672,8 +7069,8 @@ var NoDataFound = () => {
6672
7069
  )
6673
7070
  }
6674
7071
  ) }) }),
6675
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("h3", { className: "text-lg font-medium mb-2", children: "No data available" }),
6676
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("p", { className: " max-w-sm mb-0", children: "No records found. Data may be empty or not available at the moment." })
7072
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("h3", { className: "text-lg font-medium mb-2", children: "No data available" }),
7073
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("p", { className: " max-w-sm mb-0", children: "No records found. Data may be empty or not available at the moment." })
6677
7074
  ] });
6678
7075
  };
6679
7076
  var NoDataFound_default = NoDataFound;
@@ -6681,7 +7078,7 @@ var NoDataFound_default = NoDataFound;
6681
7078
  // src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
6682
7079
  init_AssetUtility();
6683
7080
  var import_dynamic9 = __toESM(require("next/dynamic"));
6684
- var import_jsx_runtime49 = require("react/jsx-runtime");
7081
+ var import_jsx_runtime51 = require("react/jsx-runtime");
6685
7082
  var HlsPlayer4 = (0, import_dynamic9.default)(() => Promise.resolve().then(() => (init_HlsPlayer(), HlsPlayer_exports)), { ssr: false });
6686
7083
  var deviceToMediaQuery = (device) => {
6687
7084
  switch (device) {
@@ -6837,8 +7234,8 @@ var ImageGalleryNode = (props) => {
6837
7234
  right: "justify-end"
6838
7235
  };
6839
7236
  const formatClasses = FormatClass[props.node.format || ""] || "";
6840
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_jsx_runtime49.Fragment, { children: [
6841
- hlsSources.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_jsx_runtime49.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
7237
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_jsx_runtime51.Fragment, { children: [
7238
+ hlsSources.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_jsx_runtime51.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
6842
7239
  HlsPlayer4,
6843
7240
  {
6844
7241
  sources: hlsSources,
@@ -6853,7 +7250,7 @@ var ImageGalleryNode = (props) => {
6853
7250
  styles: hlsStyles
6854
7251
  }
6855
7252
  ) }),
6856
- (staticFallback || staticSources.length > 0) && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_jsx_runtime49.Fragment, { children: staticFallback ? /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("picture", { children: [
7253
+ (staticFallback || staticSources.length > 0) && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_jsx_runtime51.Fragment, { children: staticFallback ? /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("picture", { children: [
6857
7254
  DEVICE_ORDER.map((deviceKey) => {
6858
7255
  const match = staticSources.find(
6859
7256
  (img) => img.device === deviceKey
@@ -6869,7 +7266,7 @@ var ImageGalleryNode = (props) => {
6869
7266
  if (!srcUrl) {
6870
7267
  return null;
6871
7268
  }
6872
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
7269
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
6873
7270
  "source",
6874
7271
  {
6875
7272
  media: deviceToMediaQuery(match.device),
@@ -6894,7 +7291,7 @@ var ImageGalleryNode = (props) => {
6894
7291
  if (img.borderRadius) {
6895
7292
  styles.borderRadius = img.borderRadius;
6896
7293
  }
6897
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
7294
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
6898
7295
  "img",
6899
7296
  {
6900
7297
  loading: "lazy",
@@ -6909,7 +7306,7 @@ var ImageGalleryNode = (props) => {
6909
7306
  })()
6910
7307
  ] }) : (
6911
7308
  /* Case 2: Only device-specific images exist */
6912
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_jsx_runtime49.Fragment, { children: staticSources.map((img, index) => {
7309
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_jsx_runtime51.Fragment, { children: staticSources.map((img, index) => {
6913
7310
  const resolved = resolveImage(img);
6914
7311
  const imageUrl = resolved?.imageUrl;
6915
7312
  if (!imageUrl) {
@@ -6936,7 +7333,7 @@ var ImageGalleryNode = (props) => {
6936
7333
  default:
6937
7334
  display = "block";
6938
7335
  }
6939
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
7336
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
6940
7337
  "img",
6941
7338
  {
6942
7339
  loading: "lazy",
@@ -7077,28 +7474,28 @@ var shouldRenderContainer = (node, dataItem, session) => {
7077
7474
 
7078
7475
  // src/components/pageRenderingEngine/nodes/DocumentNode.tsx
7079
7476
  init_AssetUtility();
7080
- var import_jsx_runtime50 = require("react/jsx-runtime");
7477
+ var import_jsx_runtime52 = require("react/jsx-runtime");
7081
7478
  var getNestedValue5 = (obj, path) => {
7082
7479
  if (!obj || !path) return void 0;
7083
7480
  return path.split(".").reduce((current, key) => {
7084
7481
  return current && current[key] !== void 0 ? current[key] : void 0;
7085
7482
  }, obj);
7086
7483
  };
7087
- var PdfIcon = () => /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
7484
+ var PdfIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
7088
7485
  "svg",
7089
7486
  {
7090
7487
  xmlns: "http://www.w3.org/2000/svg",
7091
7488
  viewBox: "0 0 48 48",
7092
7489
  className: "w-10 h-10",
7093
7490
  children: [
7094
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
7491
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
7095
7492
  "path",
7096
7493
  {
7097
7494
  fill: "#e53935",
7098
7495
  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"
7099
7496
  }
7100
7497
  ),
7101
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
7498
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
7102
7499
  "path",
7103
7500
  {
7104
7501
  fill: "#fff",
@@ -7108,55 +7505,55 @@ var PdfIcon = () => /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
7108
7505
  ]
7109
7506
  }
7110
7507
  );
7111
- var ExcelIcon = () => /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
7508
+ var ExcelIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
7112
7509
  "svg",
7113
7510
  {
7114
7511
  xmlns: "http://www.w3.org/2000/svg",
7115
7512
  viewBox: "0 0 48 48",
7116
7513
  className: "w-10 h-10",
7117
7514
  children: [
7118
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
7515
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
7119
7516
  "path",
7120
7517
  {
7121
7518
  fill: "#169154",
7122
7519
  d: "M29,6H15.744C14.781,6,14,6.781,14,7.744v7.259h15V6z"
7123
7520
  }
7124
7521
  ),
7125
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
7522
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
7126
7523
  "path",
7127
7524
  {
7128
7525
  fill: "#18482a",
7129
7526
  d: "M14,33.054v7.202C14,41.219,14.781,42,15.743,42H29v-8.946H14z"
7130
7527
  }
7131
7528
  ),
7132
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("path", { fill: "#0c8045", d: "M14 15.003H29V24.005000000000003H14z" }),
7133
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("path", { fill: "#17472a", d: "M14 24.005H29V33.055H14z" }),
7134
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("g", { children: [
7135
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
7529
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("path", { fill: "#0c8045", d: "M14 15.003H29V24.005000000000003H14z" }),
7530
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("path", { fill: "#17472a", d: "M14 24.005H29V33.055H14z" }),
7531
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("g", { children: [
7532
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
7136
7533
  "path",
7137
7534
  {
7138
7535
  fill: "#29c27f",
7139
7536
  d: "M42.256,6H29v9.003h15V7.744C44,6.781,43.219,6,42.256,6z"
7140
7537
  }
7141
7538
  ),
7142
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
7539
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
7143
7540
  "path",
7144
7541
  {
7145
7542
  fill: "#27663f",
7146
7543
  d: "M29,33.054V42h13.257C43.219,42,44,41.219,44,40.257v-7.202H29z"
7147
7544
  }
7148
7545
  ),
7149
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("path", { fill: "#19ac65", d: "M29 15.003H44V24.005000000000003H29z" }),
7150
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("path", { fill: "#129652", d: "M29 24.005H44V33.055H29z" })
7546
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("path", { fill: "#19ac65", d: "M29 15.003H44V24.005000000000003H29z" }),
7547
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("path", { fill: "#129652", d: "M29 24.005H44V33.055H29z" })
7151
7548
  ] }),
7152
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
7549
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
7153
7550
  "path",
7154
7551
  {
7155
7552
  fill: "#0c7238",
7156
7553
  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"
7157
7554
  }
7158
7555
  ),
7159
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
7556
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
7160
7557
  "path",
7161
7558
  {
7162
7559
  fill: "#fff",
@@ -7166,7 +7563,7 @@ var ExcelIcon = () => /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
7166
7563
  ]
7167
7564
  }
7168
7565
  );
7169
- var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
7566
+ var WordIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
7170
7567
  "svg",
7171
7568
  {
7172
7569
  xmlns: "http://www.w3.org/2000/svg",
@@ -7174,14 +7571,14 @@ var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
7174
7571
  className: "w-10 h-10",
7175
7572
  baseProfile: "basic",
7176
7573
  children: [
7177
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
7574
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
7178
7575
  "path",
7179
7576
  {
7180
7577
  fill: "#283593",
7181
7578
  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"
7182
7579
  }
7183
7580
  ),
7184
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
7581
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
7185
7582
  "linearGradient",
7186
7583
  {
7187
7584
  id: "qh2LT5tehRDFkLLfb-odWa",
@@ -7192,19 +7589,19 @@ var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
7192
7589
  gradientTransform: "translate(0 -339.89)",
7193
7590
  gradientUnits: "userSpaceOnUse",
7194
7591
  children: [
7195
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("stop", { offset: "0", "stop-color": "#66c0ff" }),
7196
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("stop", { offset: ".26", "stop-color": "#0094f0" })
7592
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("stop", { offset: "0", "stop-color": "#66c0ff" }),
7593
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("stop", { offset: ".26", "stop-color": "#0094f0" })
7197
7594
  ]
7198
7595
  }
7199
7596
  ),
7200
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
7597
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
7201
7598
  "path",
7202
7599
  {
7203
7600
  fill: "url(#qh2LT5tehRDFkLLfb-odWa)",
7204
7601
  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"
7205
7602
  }
7206
7603
  ),
7207
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
7604
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
7208
7605
  "path",
7209
7606
  {
7210
7607
  fill: "#1e88e5",
@@ -7212,21 +7609,21 @@ var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
7212
7609
  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"
7213
7610
  }
7214
7611
  ),
7215
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
7612
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
7216
7613
  "path",
7217
7614
  {
7218
7615
  fill: "#00e5ff",
7219
7616
  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"
7220
7617
  }
7221
7618
  ),
7222
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
7619
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
7223
7620
  "path",
7224
7621
  {
7225
7622
  fill: "#1565c0",
7226
7623
  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"
7227
7624
  }
7228
7625
  ),
7229
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
7626
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
7230
7627
  "path",
7231
7628
  {
7232
7629
  fill: "#fff",
@@ -7236,42 +7633,42 @@ var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
7236
7633
  ]
7237
7634
  }
7238
7635
  );
7239
- var StandardIcon = () => /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
7636
+ var StandardIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
7240
7637
  "svg",
7241
7638
  {
7242
7639
  xmlns: "http://www.w3.org/2000/svg",
7243
7640
  viewBox: "0 0 48 48",
7244
7641
  className: "w-10 h-10",
7245
7642
  children: [
7246
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
7247
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" })
7643
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
7644
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" })
7248
7645
  ]
7249
7646
  }
7250
7647
  );
7251
- var PowerPointIcon = () => /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
7648
+ var PowerPointIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
7252
7649
  "svg",
7253
7650
  {
7254
7651
  xmlns: "http://www.w3.org/2000/svg",
7255
7652
  viewBox: "0 0 48 48",
7256
7653
  className: "w-10 h-10",
7257
7654
  children: [
7258
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
7655
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
7259
7656
  "path",
7260
7657
  {
7261
7658
  fill: "#dc4c2c",
7262
7659
  d: "M8,24c0,9.941,8.059,18,18,18s18-8.059,18-18H26H8z"
7263
7660
  }
7264
7661
  ),
7265
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("path", { fill: "#f7a278", d: "M26,6v18h18C44,14.059,35.941,6,26,6z" }),
7266
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("path", { fill: "#c06346", d: "M26,6C16.059,6,8,14.059,8,24h18V6z" }),
7267
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
7662
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("path", { fill: "#f7a278", d: "M26,6v18h18C44,14.059,35.941,6,26,6z" }),
7663
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("path", { fill: "#c06346", d: "M26,6C16.059,6,8,14.059,8,24h18V6z" }),
7664
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
7268
7665
  "path",
7269
7666
  {
7270
7667
  fill: "#9b341f",
7271
7668
  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"
7272
7669
  }
7273
7670
  ),
7274
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
7671
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
7275
7672
  "path",
7276
7673
  {
7277
7674
  fill: "#fff",
@@ -7281,16 +7678,16 @@ var PowerPointIcon = () => /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
7281
7678
  ]
7282
7679
  }
7283
7680
  );
7284
- var TextIcon = () => /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
7681
+ var TextIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
7285
7682
  "svg",
7286
7683
  {
7287
7684
  xmlns: "http://www.w3.org/2000/svg",
7288
7685
  viewBox: "0 0 48 48",
7289
7686
  className: "w-10 h-10",
7290
7687
  children: [
7291
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
7292
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" }),
7293
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
7688
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
7689
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" }),
7690
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
7294
7691
  "path",
7295
7692
  {
7296
7693
  fill: "#1976D2",
@@ -7300,7 +7697,7 @@ var TextIcon = () => /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
7300
7697
  ]
7301
7698
  }
7302
7699
  );
7303
- var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
7700
+ var ArchiveIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
7304
7701
  "svg",
7305
7702
  {
7306
7703
  xmlns: "http://www.w3.org/2000/svg",
@@ -7310,14 +7707,14 @@ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
7310
7707
  version: "1.0",
7311
7708
  className: "w-10 h-10",
7312
7709
  children: [
7313
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("clipPath", { id: "273d29c8a6", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
7710
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("clipPath", { id: "273d29c8a6", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
7314
7711
  "path",
7315
7712
  {
7316
7713
  d: "M 8.90625 0 L 65.90625 0 L 65.90625 75 L 8.90625 75 Z M 8.90625 0 ",
7317
7714
  "clip-rule": "nonzero"
7318
7715
  }
7319
7716
  ) }) }),
7320
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("g", { "clip-path": "url(#273d29c8a6)", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
7717
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("g", { "clip-path": "url(#273d29c8a6)", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
7321
7718
  "path",
7322
7719
  {
7323
7720
  fill: "#ff9100",
@@ -7326,7 +7723,7 @@ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
7326
7723
  "fill-rule": "nonzero"
7327
7724
  }
7328
7725
  ) }),
7329
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
7726
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
7330
7727
  "path",
7331
7728
  {
7332
7729
  fill: "#fbe9e7",
@@ -7335,7 +7732,7 @@ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
7335
7732
  "fill-rule": "nonzero"
7336
7733
  }
7337
7734
  ),
7338
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
7735
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
7339
7736
  "path",
7340
7737
  {
7341
7738
  fill: "#ffe0b2",
@@ -7344,7 +7741,7 @@ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
7344
7741
  "fill-rule": "nonzero"
7345
7742
  }
7346
7743
  ),
7347
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
7744
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
7348
7745
  "path",
7349
7746
  {
7350
7747
  fill: "#ffe0b2",
@@ -7353,7 +7750,7 @@ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
7353
7750
  "fill-rule": "nonzero"
7354
7751
  }
7355
7752
  ),
7356
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
7753
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
7357
7754
  "path",
7358
7755
  {
7359
7756
  fill: "#ffe0b2",
@@ -7365,28 +7762,28 @@ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
7365
7762
  ]
7366
7763
  }
7367
7764
  );
7368
- var getFileDetails = (url) => {
7765
+ var getFileDetails2 = (url) => {
7369
7766
  const extMatch = url.match(/\.([a-zA-Z0-9]+)(?:[\?#]|$)/);
7370
7767
  const ext = extMatch ? extMatch[1].toLowerCase() : "";
7371
- let Icon2 = StandardIcon;
7768
+ let Icon2 = StandardIcon2;
7372
7769
  let extLabel = "FILE";
7373
7770
  if (ext === "pdf") {
7374
- Icon2 = PdfIcon;
7771
+ Icon2 = PdfIcon2;
7375
7772
  extLabel = "PDF";
7376
7773
  } else if (["xls", "xlsx", "csv"].includes(ext)) {
7377
- Icon2 = ExcelIcon;
7774
+ Icon2 = ExcelIcon2;
7378
7775
  extLabel = "Excel";
7379
7776
  } else if (["doc", "docx"].includes(ext)) {
7380
- Icon2 = WordIcon;
7777
+ Icon2 = WordIcon2;
7381
7778
  extLabel = "Word";
7382
7779
  } else if (["ppt", "pptx"].includes(ext)) {
7383
- Icon2 = PowerPointIcon;
7780
+ Icon2 = PowerPointIcon2;
7384
7781
  extLabel = "PowerPoint";
7385
7782
  } else if (["txt", "rtf"].includes(ext)) {
7386
- Icon2 = TextIcon;
7783
+ Icon2 = TextIcon2;
7387
7784
  extLabel = "Text";
7388
7785
  } else if (["zip", "rar", "7z"].includes(ext)) {
7389
- Icon2 = ArchiveIcon;
7786
+ Icon2 = ArchiveIcon2;
7390
7787
  extLabel = "Archive";
7391
7788
  } else if (ext) {
7392
7789
  extLabel = ext.toUpperCase();
@@ -7428,8 +7825,8 @@ var DocumentNode = (props) => {
7428
7825
  }
7429
7826
  }
7430
7827
  if (documents.length === 0) {
7431
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_jsx_runtime50.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "py-4 px-2 bg-neutral-weak border rounded text-center flex flex-col gap-2", children: [
7432
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "mx-auto w-10 h-10 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
7828
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_jsx_runtime52.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "py-4 px-2 bg-neutral-weak border rounded text-center flex flex-col gap-2", children: [
7829
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "mx-auto w-10 h-10 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
7433
7830
  "svg",
7434
7831
  {
7435
7832
  className: "w-5 h-5",
@@ -7437,7 +7834,7 @@ var DocumentNode = (props) => {
7437
7834
  stroke: "currentColor",
7438
7835
  viewBox: "0 0 24 24",
7439
7836
  xmlns: "http://www.w3.org/2000/svg",
7440
- children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
7837
+ children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
7441
7838
  "path",
7442
7839
  {
7443
7840
  strokeLinecap: "round",
@@ -7448,11 +7845,11 @@ var DocumentNode = (props) => {
7448
7845
  )
7449
7846
  }
7450
7847
  ) }),
7451
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "text-sm font-medium", children: "No documents found" }),
7452
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "text-xs", children: "No records found. Data may be empty or not available at the moment." })
7848
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "text-sm font-medium", children: "No documents found" }),
7849
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "text-xs", children: "No records found. Data may be empty or not available at the moment." })
7453
7850
  ] }) });
7454
7851
  }
7455
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "", children: documents.map((doc, index) => {
7852
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "", children: documents.map((doc, index) => {
7456
7853
  const documentUrl = AssetUtility_default.resolveUrl(
7457
7854
  props.assetBaseUrl,
7458
7855
  doc.assetUrl
@@ -7469,17 +7866,17 @@ var DocumentNode = (props) => {
7469
7866
  documentTitle = documentUrl.split("/").pop()?.replace(/\.[^/.]+$/, "") || "Document";
7470
7867
  }
7471
7868
  }
7472
- const { Icon: Icon2, extLabel } = getFileDetails(documentUrl);
7473
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
7869
+ const { Icon: Icon2, extLabel } = getFileDetails2(documentUrl);
7870
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
7474
7871
  "div",
7475
7872
  {
7476
7873
  className: `flex items-center justify-between py-4 bg-default gap-4 ${index !== 0 ? "border-t" : ""}`,
7477
7874
  children: [
7478
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex items-center space-x-4", children: [
7479
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "flex items-center justify-center p-2 rounded bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Icon2, {}) }),
7480
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "flex items-baseline space-x-2", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("h4", { className: "text-base font-semibold", children: documentTitle }) })
7875
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "flex items-center space-x-4", children: [
7876
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "flex items-center justify-center p-2 rounded bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Icon2, {}) }),
7877
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "flex items-baseline space-x-2", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("h4", { className: "text-base font-semibold", children: documentTitle }) })
7481
7878
  ] }),
7482
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
7879
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
7483
7880
  "a",
7484
7881
  {
7485
7882
  href: documentUrl,
@@ -7487,7 +7884,7 @@ var DocumentNode = (props) => {
7487
7884
  rel: "noopener noreferrer",
7488
7885
  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",
7489
7886
  children: [
7490
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
7887
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
7491
7888
  "svg",
7492
7889
  {
7493
7890
  className: "w-4 h-4 mr-2",
@@ -7495,7 +7892,7 @@ var DocumentNode = (props) => {
7495
7892
  stroke: "currentColor",
7496
7893
  viewBox: "0 0 24 24",
7497
7894
  children: [
7498
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
7895
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
7499
7896
  "path",
7500
7897
  {
7501
7898
  strokeLinecap: "round",
@@ -7504,7 +7901,7 @@ var DocumentNode = (props) => {
7504
7901
  d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"
7505
7902
  }
7506
7903
  ),
7507
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
7904
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
7508
7905
  "path",
7509
7906
  {
7510
7907
  strokeLinecap: "round",
@@ -7530,13 +7927,13 @@ var DocumentNode_default = DocumentNode;
7530
7927
 
7531
7928
  // src/components/pageRenderingEngine/nodes/GoogleMapNode.tsx
7532
7929
  var import_dynamic10 = __toESM(require("next/dynamic"));
7533
- var import_jsx_runtime51 = require("react/jsx-runtime");
7930
+ var import_jsx_runtime53 = require("react/jsx-runtime");
7534
7931
  var IframeClient3 = (0, import_dynamic10.default)(() => Promise.resolve().then(() => (init_IframeClient(), IframeClient_exports)), {
7535
7932
  ssr: false
7536
7933
  });
7537
7934
  var GoogleMapNode = (props) => {
7538
7935
  let src = props.node.embedUrl;
7539
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "google-map-container", children: src && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
7936
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "google-map-container", children: src && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
7540
7937
  IframeClient3,
7541
7938
  {
7542
7939
  src,
@@ -7548,7 +7945,7 @@ var GoogleMapNode = (props) => {
7548
7945
  var GoogleMapNode_default = GoogleMapNode;
7549
7946
 
7550
7947
  // src/components/pageRenderingEngine/nodes/DivContainer.tsx
7551
- var import_jsx_runtime83 = require("react/jsx-runtime");
7948
+ var import_jsx_runtime85 = require("react/jsx-runtime");
7552
7949
  var Pagination2 = (0, import_dynamic12.default)(() => Promise.resolve().then(() => (init_Pagination(), Pagination_exports)), { ssr: true });
7553
7950
  var DataBindingControls2 = (0, import_dynamic12.default)(() => Promise.resolve().then(() => (init_DataBindingControls(), DataBindingControls_exports)), {
7554
7951
  ssr: true
@@ -7807,7 +8204,7 @@ var DivContainer = async (props) => {
7807
8204
  response = await serviceClient.get(endpoint);
7808
8205
  result = response?.result;
7809
8206
  if (dataBindingProperties.showNoResultsMessage && (result === void 0 || result.length == 0)) {
7810
- return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(NoDataFound_default, {});
8207
+ return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(NoDataFound_default, {});
7811
8208
  }
7812
8209
  if (dataBindingProperties.childCollectionName && props.dataitem) {
7813
8210
  childCollectionData = getNestedValue6(
@@ -7827,7 +8224,7 @@ var DivContainer = async (props) => {
7827
8224
  }
7828
8225
  const SelectedNode = NodeTypes2[node.type];
7829
8226
  if (!SelectedNode) return null;
7830
- return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_react60.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
8227
+ return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_react60.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
7831
8228
  SelectedNode,
7832
8229
  {
7833
8230
  node,
@@ -7964,7 +8361,7 @@ var DivContainer = async (props) => {
7964
8361
  dataBindingProperties?.showFacets || dataBindingProperties?.showSortOptions || dataBindingProperties?.showSearchBar
7965
8362
  );
7966
8363
  const WrapperComponent = Wrapper;
7967
- const renderedContainer = /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
8364
+ const renderedContainer = /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
7968
8365
  WrapperComponent,
7969
8366
  {
7970
8367
  id: guid,
@@ -7978,11 +8375,11 @@ var DivContainer = async (props) => {
7978
8375
  item,
7979
8376
  idx,
7980
8377
  props.href ? void 0 : item?.links?.view
7981
- )?.map((child, i) => /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_react60.default.Fragment, { children: child }, i)) : renderChildren2(props.node.children, props, item, idx)
8378
+ )?.map((child, i) => /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_react60.default.Fragment, { children: child }, i)) : renderChildren2(props.node.children, props, item, idx)
7982
8379
  )
7983
8380
  }
7984
8381
  );
7985
- const paginationControl = dataBindingProperties?.enablePagination ? /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
8382
+ const paginationControl = dataBindingProperties?.enablePagination ? /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
7986
8383
  Pagination2,
7987
8384
  {
7988
8385
  path: props.path,
@@ -7990,15 +8387,15 @@ var DivContainer = async (props) => {
7990
8387
  dataset: response
7991
8388
  }
7992
8389
  ) : null;
7993
- return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(import_react60.default.Fragment, { children: [
7994
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
8390
+ return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_react60.default.Fragment, { children: [
8391
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
7995
8392
  "style",
7996
8393
  {
7997
8394
  dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS }
7998
8395
  }
7999
8396
  ),
8000
- showDataBindingControls ? /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(import_react60.default.Fragment, { children: [
8001
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
8397
+ showDataBindingControls ? /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_react60.default.Fragment, { children: [
8398
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
8002
8399
  DataBindingControls2,
8003
8400
  {
8004
8401
  mode: "toolbar",
@@ -8010,18 +8407,18 @@ var DivContainer = async (props) => {
8010
8407
  showSearchBar: dataBindingProperties?.showSearchBar
8011
8408
  }
8012
8409
  ),
8013
- /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
8410
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
8014
8411
  "div",
8015
8412
  {
8016
8413
  className: dataBindingProperties?.showFacets ? "grid items-start gap-6 lg:grid-cols-[minmax(0,1fr)_18rem]" : void 0,
8017
8414
  children: [
8018
- /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: "min-w-0", children: [
8415
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "min-w-0", children: [
8019
8416
  renderedContainer,
8020
8417
  paginationControl
8021
8418
  ] }),
8022
- dataBindingProperties?.showFacets && /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("aside", { className: "border bg-default p-3 lg:sticky lg:top-[90px] lg:self-start", children: [
8023
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("h2", { className: "mb-2 text-lg font-semibold", children: "Filters" }),
8024
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
8419
+ dataBindingProperties?.showFacets && /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("aside", { className: "border bg-default p-3 lg:sticky lg:top-[90px] lg:self-start", children: [
8420
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("h2", { className: "mb-2 text-lg font-semibold", children: "Filters" }),
8421
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
8025
8422
  DataBindingControls2,
8026
8423
  {
8027
8424
  mode: "facets",
@@ -8035,16 +8432,16 @@ var DivContainer = async (props) => {
8035
8432
  ]
8036
8433
  }
8037
8434
  )
8038
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(import_react60.default.Fragment, { children: [
8435
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_react60.default.Fragment, { children: [
8039
8436
  renderedContainer,
8040
- paginationControl && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { children: paginationControl })
8437
+ paginationControl && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { children: paginationControl })
8041
8438
  ] })
8042
8439
  ] });
8043
8440
  };
8044
8441
  var DivContainer_default = DivContainer;
8045
8442
 
8046
8443
  // src/components/pageRenderingEngine/PageBodyRenderer.tsx
8047
- var import_jsx_runtime84 = require("react/jsx-runtime");
8444
+ var import_jsx_runtime86 = require("react/jsx-runtime");
8048
8445
  var NodeTypes = {
8049
8446
  ["paragraph"]: ParagraphNode_default,
8050
8447
  ["heading"]: HeadingNode_default,
@@ -8082,14 +8479,14 @@ var PageBodyRenderer = (props) => {
8082
8479
  }
8083
8480
  return true;
8084
8481
  };
8085
- return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_react61.default.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
8482
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_react61.default.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
8086
8483
  {
8087
8484
  }
8088
8485
  const SelectedNode = NodeTypes[node.type];
8089
8486
  if (!shouldRenderNode(node)) {
8090
8487
  return null;
8091
8488
  }
8092
- return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_react61.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_react61.default.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_react61.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
8489
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_react61.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_react61.default.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_react61.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
8093
8490
  SelectedNode,
8094
8491
  {
8095
8492
  node,
@@ -8105,7 +8502,7 @@ var PageBodyRenderer = (props) => {
8105
8502
  device: props.device,
8106
8503
  widgetRenderer: props.widgetRenderer
8107
8504
  }
8108
- ) }) : /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_react61.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
8505
+ ) }) : /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_react61.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
8109
8506
  SelectedNode,
8110
8507
  {
8111
8508
  node,