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

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
@@ -1739,12 +1739,62 @@ var init_commentParser = __esm({
1739
1739
  });
1740
1740
 
1741
1741
  // src/components/controls/view/commentImages.ts
1742
- var pickUrl, pickAlt, resolveCommentImageUrl, collectCommentImages;
1742
+ var INDIVIDUAL_IMAGE_THRESHOLD, MAX_VISIBLE_GALLERY_IMAGES, isImageNode, flattenText, isBlankFiller, groupConsecutiveImages, pickUrl, pickAlt, resolveCommentImageUrl, collectCommentImages;
1743
1743
  var init_commentImages = __esm({
1744
1744
  "src/components/controls/view/commentImages.ts"() {
1745
1745
  "use strict";
1746
1746
  init_AssetUtility();
1747
1747
  init_commentTypes();
1748
+ INDIVIDUAL_IMAGE_THRESHOLD = 1;
1749
+ MAX_VISIBLE_GALLERY_IMAGES = 4;
1750
+ isImageNode = (node) => !!node && !isTextNode(node) && asElementNode(node).type === "image";
1751
+ flattenText = (node) => {
1752
+ if (!node) return "";
1753
+ if (isTextNode(node)) return node.text ?? "";
1754
+ return (asElementNode(node).children ?? []).map(flattenText).join("");
1755
+ };
1756
+ isBlankFiller = (node) => {
1757
+ if (!node || isTextNode(node)) return false;
1758
+ const element = asElementNode(node);
1759
+ if (element.type === "linebreak" || element.type === "line-break") return true;
1760
+ if (element.type === "paragraph") return flattenText(node).trim() === "";
1761
+ return false;
1762
+ };
1763
+ groupConsecutiveImages = (nodes) => {
1764
+ const groups = [];
1765
+ let i = 0;
1766
+ while (i < nodes.length) {
1767
+ const node = nodes[i];
1768
+ if (!isImageNode(node)) {
1769
+ groups.push({ kind: "other", node });
1770
+ i += 1;
1771
+ continue;
1772
+ }
1773
+ const runImages = [asElementNode(node)];
1774
+ let cursor = i + 1;
1775
+ while (cursor < nodes.length) {
1776
+ if (isImageNode(nodes[cursor])) {
1777
+ runImages.push(asElementNode(nodes[cursor]));
1778
+ cursor += 1;
1779
+ continue;
1780
+ }
1781
+ if (isBlankFiller(nodes[cursor])) {
1782
+ let peek = cursor + 1;
1783
+ while (peek < nodes.length && isBlankFiller(nodes[peek])) {
1784
+ peek += 1;
1785
+ }
1786
+ if (peek < nodes.length && isImageNode(nodes[peek])) {
1787
+ cursor = peek;
1788
+ continue;
1789
+ }
1790
+ }
1791
+ break;
1792
+ }
1793
+ groups.push({ kind: "images", nodes: runImages });
1794
+ i = cursor;
1795
+ }
1796
+ return groups;
1797
+ };
1748
1798
  pickUrl = (node) => typeof node.url === "string" && node.url || typeof node.src === "string" && node.src || typeof node.assetUrl === "string" && node.assetUrl || "";
1749
1799
  pickAlt = (node) => typeof node.fileName === "string" && node.fileName || typeof node.altText === "string" && node.altText || typeof node.alt === "string" && node.alt || "";
1750
1800
  resolveCommentImageUrl = (node, assetBaseUrl) => {
@@ -2030,9 +2080,12 @@ var init_CommentImageNode = __esm({
2030
2080
  loading: "lazy",
2031
2081
  onClick: clickable ? () => preview?.openPreview(resolvedUrl) : void 0,
2032
2082
  style: {
2033
- maxWidth: "100%",
2034
- height: "auto",
2035
2083
  display: "block",
2084
+ width: "auto",
2085
+ height: "auto",
2086
+ objectFit: "cover",
2087
+ borderRadius: "0.375rem",
2088
+ margin: "0.5rem 0",
2036
2089
  cursor: clickable ? "zoom-in" : "default"
2037
2090
  }
2038
2091
  }
@@ -2545,12 +2598,98 @@ var init_CommentNodeRenderer = __esm({
2545
2598
  }
2546
2599
  });
2547
2600
 
2601
+ // src/components/controls/view/CommentImageGallery.tsx
2602
+ var import_jsx_runtime37, gridStyle, cellStyle, cellImgStyle, moreOverlayStyle, CommentImageGallery, CommentImageGallery_default;
2603
+ var init_CommentImageGallery = __esm({
2604
+ "src/components/controls/view/CommentImageGallery.tsx"() {
2605
+ "use strict";
2606
+ "use client";
2607
+ init_commentImages();
2608
+ init_CommentImagePreviewContext();
2609
+ import_jsx_runtime37 = require("react/jsx-runtime");
2610
+ gridStyle = {
2611
+ display: "grid",
2612
+ gridTemplateColumns: "repeat(2, 1fr)",
2613
+ gap: "2px",
2614
+ maxWidth: "360px",
2615
+ borderRadius: "0.375rem",
2616
+ overflow: "hidden",
2617
+ margin: "0.5rem 0"
2618
+ };
2619
+ cellStyle = {
2620
+ position: "relative",
2621
+ display: "block",
2622
+ // Landscape cells keep the grid short when a run wraps onto 2+ rows.
2623
+ aspectRatio: "3 / 2",
2624
+ width: "100%",
2625
+ padding: 0,
2626
+ border: "none",
2627
+ background: "none",
2628
+ cursor: "zoom-in",
2629
+ overflow: "hidden"
2630
+ };
2631
+ cellImgStyle = {
2632
+ display: "block",
2633
+ width: "100%",
2634
+ height: "100%",
2635
+ objectFit: "cover"
2636
+ };
2637
+ moreOverlayStyle = {
2638
+ position: "absolute",
2639
+ inset: 0,
2640
+ display: "flex",
2641
+ alignItems: "center",
2642
+ justifyContent: "center",
2643
+ background: "rgba(0, 0, 0, 0.5)",
2644
+ color: "#fff",
2645
+ fontSize: "1.25rem",
2646
+ fontWeight: 600
2647
+ };
2648
+ CommentImageGallery = ({ nodes, assetBaseUrl }) => {
2649
+ const preview = useCommentImagePreview();
2650
+ const cells = nodes.map((node) => ({
2651
+ id: typeof node.id === "string" && node.id || void 0,
2652
+ src: resolveCommentImageUrl(node, assetBaseUrl),
2653
+ alt: typeof node.fileName === "string" && node.fileName || typeof node.alt === "string" && node.alt || ""
2654
+ })).filter((cell) => !!cell.src);
2655
+ if (cells.length === 0) {
2656
+ return null;
2657
+ }
2658
+ const visibleCount = Math.min(cells.length, MAX_VISIBLE_GALLERY_IMAGES);
2659
+ const remaining = cells.length - MAX_VISIBLE_GALLERY_IMAGES;
2660
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "comment-image-gallery", style: gridStyle, children: cells.slice(0, visibleCount).map((cell, i) => {
2661
+ const isLastVisible = i === visibleCount - 1;
2662
+ const showMoreOverlay = isLastVisible && remaining > 0;
2663
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
2664
+ "button",
2665
+ {
2666
+ type: "button",
2667
+ className: "comment-image-gallery-cell",
2668
+ style: cellStyle,
2669
+ "aria-label": showMoreOverlay ? `Show ${remaining} more photo${remaining === 1 ? "" : "s"}` : cell.alt || "View image",
2670
+ onClick: () => preview?.openPreview(cell.src),
2671
+ children: [
2672
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("img", { src: cell.src, alt: cell.alt, loading: "lazy", style: cellImgStyle }),
2673
+ showMoreOverlay ? /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("span", { className: "comment-image-gallery-more-overlay", style: moreOverlayStyle, children: [
2674
+ "+",
2675
+ remaining
2676
+ ] }) : null
2677
+ ]
2678
+ },
2679
+ cell.id ?? `comment-gallery-${i}`
2680
+ );
2681
+ }) });
2682
+ };
2683
+ CommentImageGallery_default = CommentImageGallery;
2684
+ }
2685
+ });
2686
+
2548
2687
  // src/components/controls/view/CommentRendererClient.tsx
2549
2688
  var CommentRendererClient_exports = {};
2550
2689
  __export(CommentRendererClient_exports, {
2551
2690
  default: () => CommentRendererClient_default
2552
2691
  });
2553
- var import_react25, import_jsx_runtime37, CommentRendererClient, CommentRendererClient_default;
2692
+ var import_react25, import_jsx_runtime38, CommentRendererClient, CommentRendererClient_default;
2554
2693
  var init_CommentRendererClient = __esm({
2555
2694
  "src/components/controls/view/CommentRendererClient.tsx"() {
2556
2695
  "use strict";
@@ -2559,8 +2698,9 @@ var init_CommentRendererClient = __esm({
2559
2698
  init_commentParser();
2560
2699
  init_commentImages();
2561
2700
  init_CommentNodeRenderer();
2701
+ init_CommentImageGallery();
2562
2702
  init_CommentImagePreviewContext();
2563
- import_jsx_runtime37 = require("react/jsx-runtime");
2703
+ import_jsx_runtime38 = require("react/jsx-runtime");
2564
2704
  CommentRendererClient = ({ value, className, assetBaseUrl, apiBaseUrl }) => {
2565
2705
  const nodes = import_react25.default.useMemo(() => parseSerializedContent(value), [value]);
2566
2706
  const resolvedAssetBaseUrl = assetBaseUrl ?? apiBaseUrl;
@@ -2568,17 +2708,42 @@ var init_CommentRendererClient = __esm({
2568
2708
  () => collectCommentImages(nodes, resolvedAssetBaseUrl),
2569
2709
  [nodes, resolvedAssetBaseUrl]
2570
2710
  );
2711
+ const groups = import_react25.default.useMemo(() => groupConsecutiveImages(nodes), [nodes]);
2571
2712
  if (!nodes || nodes.length === 0) {
2572
2713
  return null;
2573
2714
  }
2574
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(CommentImagePreviewProvider, { images, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: className ?? "comment-renderer", children: nodes.map((node, index) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2575
- CommentNodeRenderer_default,
2576
- {
2577
- node,
2578
- assetBaseUrl: resolvedAssetBaseUrl
2579
- },
2580
- node.id ?? `comment-node-${index}`
2581
- )) }) });
2715
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(CommentImagePreviewProvider, { images, children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: className ?? "comment-renderer", children: groups.map((group, groupIndex) => {
2716
+ if (group.kind === "images") {
2717
+ const key = group.nodes[0]?.id ?? `comment-group-${groupIndex}`;
2718
+ if (group.nodes.length <= INDIVIDUAL_IMAGE_THRESHOLD) {
2719
+ return group.nodes.map((node2, i) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2720
+ CommentNodeRenderer_default,
2721
+ {
2722
+ node: node2,
2723
+ assetBaseUrl: resolvedAssetBaseUrl
2724
+ },
2725
+ node2.id ?? `${key}-${i}`
2726
+ ));
2727
+ }
2728
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2729
+ CommentImageGallery_default,
2730
+ {
2731
+ nodes: group.nodes,
2732
+ assetBaseUrl: resolvedAssetBaseUrl
2733
+ },
2734
+ key
2735
+ );
2736
+ }
2737
+ const node = group.node;
2738
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2739
+ CommentNodeRenderer_default,
2740
+ {
2741
+ node,
2742
+ assetBaseUrl: resolvedAssetBaseUrl
2743
+ },
2744
+ node.id ?? `comment-group-${groupIndex}`
2745
+ );
2746
+ }) }) });
2582
2747
  };
2583
2748
  CommentRendererClient_default = CommentRendererClient;
2584
2749
  }
@@ -2607,13 +2772,13 @@ function CopyButton({ text }) {
2607
2772
  console.error("Failed to copy: ", err);
2608
2773
  }
2609
2774
  };
2610
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
2775
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
2611
2776
  "button",
2612
2777
  {
2613
2778
  onClick: handleCopy,
2614
2779
  className: "flex gap-1 items-center hover:text-white transition",
2615
2780
  children: [
2616
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2781
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2617
2782
  "svg",
2618
2783
  {
2619
2784
  width: "16",
@@ -2621,7 +2786,7 @@ function CopyButton({ text }) {
2621
2786
  viewBox: "0 0 24 24",
2622
2787
  className: "w-4 h-4",
2623
2788
  fill: "currentColor",
2624
- children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2789
+ children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2625
2790
  "path",
2626
2791
  {
2627
2792
  fillRule: "evenodd",
@@ -2636,54 +2801,54 @@ function CopyButton({ text }) {
2636
2801
  }
2637
2802
  );
2638
2803
  }
2639
- var import_react32, import_jsx_runtime45;
2804
+ var import_react32, import_jsx_runtime46;
2640
2805
  var init_CopyButton = __esm({
2641
2806
  "src/components/CopyButton.tsx"() {
2642
2807
  "use strict";
2643
2808
  "use client";
2644
2809
  import_react32 = require("react");
2645
- import_jsx_runtime45 = require("react/jsx-runtime");
2810
+ import_jsx_runtime46 = require("react/jsx-runtime");
2646
2811
  }
2647
2812
  });
2648
2813
 
2649
2814
  // src/components/IFrameLoaderView.tsx
2650
- var import_react35, import_jsx_runtime49, IFrameLoaderView, IFrameLoaderView_default;
2815
+ var import_react35, import_jsx_runtime50, IFrameLoaderView, IFrameLoaderView_default;
2651
2816
  var init_IFrameLoaderView = __esm({
2652
2817
  "src/components/IFrameLoaderView.tsx"() {
2653
2818
  "use strict";
2654
2819
  import_react35 = __toESM(require("react"));
2655
- import_jsx_runtime49 = require("react/jsx-runtime");
2820
+ import_jsx_runtime50 = require("react/jsx-runtime");
2656
2821
  IFrameLoaderView = (props) => {
2657
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_react35.default.Fragment, { children: [
2658
- props.isDataFound == null && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "mt-4 bg-gray-200 rounded-md p-4 animate-pulse", children: [
2659
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex items-center mb-4", children: [
2660
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
2661
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "ml-2", children: [
2662
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
2663
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
2822
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_react35.default.Fragment, { children: [
2823
+ props.isDataFound == null && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "mt-4 bg-gray-200 rounded-md p-4 animate-pulse", children: [
2824
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex items-center mb-4", children: [
2825
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
2826
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "ml-2", children: [
2827
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
2828
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
2664
2829
  ] })
2665
2830
  ] }),
2666
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
2667
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "animate-pulse", children: [
2668
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
2669
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
2670
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
2671
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
2672
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
2831
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
2832
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "animate-pulse", children: [
2833
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
2834
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
2835
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
2836
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
2837
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
2673
2838
  ] }),
2674
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "animate-pulse", children: [
2675
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
2676
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
2677
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
2678
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
2679
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
2839
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "animate-pulse", children: [
2840
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
2841
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
2842
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
2843
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
2844
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
2680
2845
  ] }),
2681
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "animate-pulse", children: [
2682
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
2683
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
2684
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
2685
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
2686
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
2846
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "animate-pulse", children: [
2847
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
2848
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
2849
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
2850
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
2851
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
2687
2852
  ] })
2688
2853
  ] })
2689
2854
  ] }) }),
@@ -2699,14 +2864,14 @@ var IframeClient_exports = {};
2699
2864
  __export(IframeClient_exports, {
2700
2865
  default: () => IframeClient_default
2701
2866
  });
2702
- var import_react36, import_jsx_runtime50, IframeClient, IframeClient_default;
2867
+ var import_react36, import_jsx_runtime51, IframeClient, IframeClient_default;
2703
2868
  var init_IframeClient = __esm({
2704
2869
  "src/components/pageRenderingEngine/nodes/IframeClient.tsx"() {
2705
2870
  "use strict";
2706
2871
  "use client";
2707
2872
  import_react36 = __toESM(require("react"));
2708
2873
  init_IFrameLoaderView();
2709
- import_jsx_runtime50 = require("react/jsx-runtime");
2874
+ import_jsx_runtime51 = require("react/jsx-runtime");
2710
2875
  IframeClient = ({
2711
2876
  src,
2712
2877
  width,
@@ -2745,7 +2910,7 @@ var init_IframeClient = __esm({
2745
2910
  const handleIframeLoad = () => {
2746
2911
  setIsDataFound(true);
2747
2912
  };
2748
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react36.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(IFrameLoaderView_default, { isDataFound, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2913
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_react36.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(IFrameLoaderView_default, { isDataFound, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
2749
2914
  "iframe",
2750
2915
  {
2751
2916
  ref: iframeRef,
@@ -3038,52 +3203,52 @@ var init_OdataBuilder = __esm({
3038
3203
  });
3039
3204
 
3040
3205
  // src/svg/chevron-updown.tsx
3041
- var import_jsx_runtime56, ChevronUpDown, chevron_updown_default;
3206
+ var import_jsx_runtime57, ChevronUpDown, chevron_updown_default;
3042
3207
  var init_chevron_updown = __esm({
3043
3208
  "src/svg/chevron-updown.tsx"() {
3044
3209
  "use strict";
3045
- import_jsx_runtime56 = require("react/jsx-runtime");
3210
+ import_jsx_runtime57 = require("react/jsx-runtime");
3046
3211
  ChevronUpDown = (props) => {
3047
- 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: "M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9" }) });
3212
+ 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: "M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9" }) });
3048
3213
  };
3049
3214
  chevron_updown_default = ChevronUpDown;
3050
3215
  }
3051
3216
  });
3052
3217
 
3053
3218
  // src/svg/chevron-down.tsx
3054
- var import_jsx_runtime57, ChevronDown, chevron_down_default;
3219
+ var import_jsx_runtime58, ChevronDown, chevron_down_default;
3055
3220
  var init_chevron_down = __esm({
3056
3221
  "src/svg/chevron-down.tsx"() {
3057
3222
  "use strict";
3058
- import_jsx_runtime57 = require("react/jsx-runtime");
3223
+ import_jsx_runtime58 = require("react/jsx-runtime");
3059
3224
  ChevronDown = (props) => {
3060
- 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: "M19.5 8.25l-7.5 7.5-7.5-7.5" }) });
3225
+ return /* @__PURE__ */ (0, import_jsx_runtime58.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_runtime58.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M19.5 8.25l-7.5 7.5-7.5-7.5" }) });
3061
3226
  };
3062
3227
  chevron_down_default = ChevronDown;
3063
3228
  }
3064
3229
  });
3065
3230
 
3066
3231
  // src/svg/chevron-up.tsx
3067
- var import_jsx_runtime58, ChevronUp, chevron_up_default;
3232
+ var import_jsx_runtime59, ChevronUp, chevron_up_default;
3068
3233
  var init_chevron_up = __esm({
3069
3234
  "src/svg/chevron-up.tsx"() {
3070
3235
  "use strict";
3071
- import_jsx_runtime58 = require("react/jsx-runtime");
3236
+ import_jsx_runtime59 = require("react/jsx-runtime");
3072
3237
  ChevronUp = (props) => {
3073
- return /* @__PURE__ */ (0, import_jsx_runtime58.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_runtime58.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M4.5 15.75l7.5-7.5 7.5 7.5" }) });
3238
+ return /* @__PURE__ */ (0, import_jsx_runtime59.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_runtime59.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M4.5 15.75l7.5-7.5 7.5 7.5" }) });
3074
3239
  };
3075
3240
  chevron_up_default = ChevronUp;
3076
3241
  }
3077
3242
  });
3078
3243
 
3079
3244
  // src/svg/plus.tsx
3080
- var import_jsx_runtime59, Plus, plus_default;
3245
+ var import_jsx_runtime60, Plus, plus_default;
3081
3246
  var init_plus = __esm({
3082
3247
  "src/svg/plus.tsx"() {
3083
3248
  "use strict";
3084
- import_jsx_runtime59 = require("react/jsx-runtime");
3249
+ import_jsx_runtime60 = require("react/jsx-runtime");
3085
3250
  Plus = (props) => {
3086
- return /* @__PURE__ */ (0, import_jsx_runtime59.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_runtime59.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M12 4.5v15m7.5-7.5h-15" }) });
3251
+ return /* @__PURE__ */ (0, import_jsx_runtime60.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_runtime60.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M12 4.5v15m7.5-7.5h-15" }) });
3087
3252
  };
3088
3253
  plus_default = Plus;
3089
3254
  }
@@ -3109,19 +3274,19 @@ var init_Icons = __esm({
3109
3274
  });
3110
3275
 
3111
3276
  // src/svg/Icon.tsx
3112
- var import_jsx_runtime60, Icon, Icon_default;
3277
+ var import_jsx_runtime61, Icon, Icon_default;
3113
3278
  var init_Icon = __esm({
3114
3279
  "src/svg/Icon.tsx"() {
3115
3280
  "use strict";
3116
3281
  init_Icons();
3117
- import_jsx_runtime60 = require("react/jsx-runtime");
3282
+ import_jsx_runtime61 = require("react/jsx-runtime");
3118
3283
  Icon = ({ name, className, ...props }) => {
3119
3284
  const IconComponent = Icons_default[name];
3120
3285
  if (!IconComponent) {
3121
3286
  console.error(`Icon "${name}" not found.`);
3122
3287
  return null;
3123
3288
  }
3124
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(IconComponent, { ...props, className });
3289
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(IconComponent, { ...props, className });
3125
3290
  };
3126
3291
  Icon_default = Icon;
3127
3292
  }
@@ -3132,7 +3297,7 @@ var Pagination_exports = {};
3132
3297
  __export(Pagination_exports, {
3133
3298
  default: () => Pagination_default
3134
3299
  });
3135
- var import_react37, import_jsx_runtime61, Pagination, Pagination_default;
3300
+ var import_react37, import_jsx_runtime62, Pagination, Pagination_default;
3136
3301
  var init_Pagination = __esm({
3137
3302
  "src/components/Pagination.tsx"() {
3138
3303
  "use strict";
@@ -3143,7 +3308,7 @@ var init_Pagination = __esm({
3143
3308
  init_StyleTypes();
3144
3309
  init_InputControlType();
3145
3310
  init_Hyperlink();
3146
- import_jsx_runtime61 = require("react/jsx-runtime");
3311
+ import_jsx_runtime62 = require("react/jsx-runtime");
3147
3312
  Pagination = (props) => {
3148
3313
  const { dataset, path, query, showPageSizeSelector = false, showJumpToPage = false } = props;
3149
3314
  const builder = (0, import_react37.useMemo)(() => {
@@ -3187,7 +3352,7 @@ var init_Pagination = __esm({
3187
3352
  return range;
3188
3353
  };
3189
3354
  const paginationRange = getPaginationRange();
3190
- const PageButton = ({ page, children }) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
3355
+ const PageButton = ({ page, children }) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3191
3356
  Hyperlink,
3192
3357
  {
3193
3358
  linkType: "Link" /* Link */,
@@ -3202,9 +3367,9 @@ var init_Pagination = __esm({
3202
3367
  );
3203
3368
  const NavigationButton = ({ page, disabled, children }) => {
3204
3369
  if (disabled) {
3205
- return /* @__PURE__ */ (0, import_jsx_runtime61.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 });
3370
+ return /* @__PURE__ */ (0, import_jsx_runtime62.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 });
3206
3371
  }
3207
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
3372
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3208
3373
  Hyperlink,
3209
3374
  {
3210
3375
  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",
@@ -3214,35 +3379,35 @@ var init_Pagination = __esm({
3214
3379
  );
3215
3380
  };
3216
3381
  if (totalPages <= 1 && totalItems === 0) return null;
3217
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "py-6 border-t bg-default", children: [
3218
- /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex flex-col sm:flex-row items-center justify-between gap-4", children: [
3219
- /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "text-sm", children: [
3382
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "py-6 border-t bg-default", children: [
3383
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "flex flex-col sm:flex-row items-center justify-between gap-4", children: [
3384
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "text-sm", children: [
3220
3385
  "Showing ",
3221
- /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("span", { className: "font-semibold", children: [
3386
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("span", { className: "font-semibold", children: [
3222
3387
  startItem,
3223
3388
  "-",
3224
3389
  endItem
3225
3390
  ] }),
3226
3391
  " ",
3227
3392
  "out of ",
3228
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { className: "font-semibold", children: totalItems.toLocaleString() }),
3393
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { className: "font-semibold", children: totalItems.toLocaleString() }),
3229
3394
  " results"
3230
3395
  ] }),
3231
- totalPages > 1 && /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex items-center space-x-1", children: [
3232
- /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
3396
+ totalPages > 1 && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "flex items-center space-x-1", children: [
3397
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
3233
3398
  NavigationButton,
3234
3399
  {
3235
3400
  page: activePageNumber - 1,
3236
3401
  disabled: activePageNumber === 1,
3237
3402
  children: [
3238
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Icon_default, { name: "chevronLeft", className: "w-4 h-4 mr-1" }) }),
3239
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { className: "text-sm", children: "Prev" })
3403
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Icon_default, { name: "chevronLeft", className: "w-4 h-4 mr-1" }) }),
3404
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { className: "text-sm", children: "Prev" })
3240
3405
  ]
3241
3406
  }
3242
3407
  ),
3243
3408
  paginationRange.map((item, index) => {
3244
3409
  if (item === "...") {
3245
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
3410
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3246
3411
  "span",
3247
3412
  {
3248
3413
  className: "min-w-[20px] md:min-w-[40px] h-10 flex items-center justify-center text-gray-500",
@@ -3252,23 +3417,23 @@ var init_Pagination = __esm({
3252
3417
  );
3253
3418
  }
3254
3419
  const page = item;
3255
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(PageButton, { page, children: page }, page);
3420
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(PageButton, { page, children: page }, page);
3256
3421
  }),
3257
- /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
3422
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
3258
3423
  NavigationButton,
3259
3424
  {
3260
3425
  page: activePageNumber + 1,
3261
3426
  disabled: activePageNumber === totalPages,
3262
3427
  children: [
3263
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { className: "text-sm", children: "Next" }),
3264
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Icon_default, { name: "chevronRight", className: "w-4 h-4 ml-1" }) })
3428
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { className: "text-sm", children: "Next" }),
3429
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Icon_default, { name: "chevronRight", className: "w-4 h-4 ml-1" }) })
3265
3430
  ]
3266
3431
  }
3267
3432
  )
3268
3433
  ] }),
3269
- showJumpToPage && totalPages > 5 && /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex items-center space-x-2", children: [
3270
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { className: "text-sm", children: "Go to:" }),
3271
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
3434
+ showJumpToPage && totalPages > 5 && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "flex items-center space-x-2", children: [
3435
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { className: "text-sm", children: "Go to:" }),
3436
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3272
3437
  "input",
3273
3438
  {
3274
3439
  type: "number",
@@ -3289,9 +3454,9 @@ var init_Pagination = __esm({
3289
3454
  ) })
3290
3455
  ] })
3291
3456
  ] }),
3292
- showPageSizeSelector && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "mt-4 pt-4 border-t bg-default", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex items-center justify-center space-x-2", children: [
3293
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { className: "text-sm", children: "Show:" }),
3294
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "flex space-x-1", children: [10, 25, 50, 100].map((size) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
3457
+ showPageSizeSelector && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "mt-4 pt-4 border-t bg-default", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "flex items-center justify-center space-x-2", children: [
3458
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { className: "text-sm", children: "Show:" }),
3459
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "flex space-x-1", children: [10, 25, 50, 100].map((size) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3295
3460
  Hyperlink,
3296
3461
  {
3297
3462
  className: `
@@ -3303,7 +3468,7 @@ var init_Pagination = __esm({
3303
3468
  },
3304
3469
  size
3305
3470
  )) }),
3306
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { className: "text-sm", children: "per page" })
3471
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { className: "text-sm", children: "per page" })
3307
3472
  ] }) })
3308
3473
  ] });
3309
3474
  };
@@ -3312,12 +3477,12 @@ var init_Pagination = __esm({
3312
3477
  });
3313
3478
 
3314
3479
  // src/components/controls/edit/MultilineTextInput.tsx
3315
- var import_react38, import_jsx_runtime62, MultilineTextInput, MultilineTextInput_default;
3480
+ var import_react38, import_jsx_runtime63, MultilineTextInput, MultilineTextInput_default;
3316
3481
  var init_MultilineTextInput = __esm({
3317
3482
  "src/components/controls/edit/MultilineTextInput.tsx"() {
3318
3483
  "use strict";
3319
3484
  import_react38 = __toESM(require("react"));
3320
- import_jsx_runtime62 = require("react/jsx-runtime");
3485
+ import_jsx_runtime63 = require("react/jsx-runtime");
3321
3486
  MultilineTextInput = (props) => {
3322
3487
  const textChangeHandler = (event) => {
3323
3488
  const text = event.target.value;
@@ -3336,11 +3501,11 @@ var init_MultilineTextInput = __esm({
3336
3501
  if (props.value !== void 0 && props.value !== null) {
3337
3502
  value = props.value;
3338
3503
  }
3339
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_react38.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("label", { className: "block mb-1", children: [
3340
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
3504
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_react38.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("label", { className: "block mb-1", children: [
3505
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
3341
3506
  " ",
3342
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { className: "bg-error-weak", children: "*" }),
3343
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3507
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { className: "bg-error-weak", children: "*" }),
3508
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
3344
3509
  "textarea",
3345
3510
  {
3346
3511
  name: props.name,
@@ -3357,7 +3522,7 @@ var init_MultilineTextInput = __esm({
3357
3522
  className: "peer mt-1 py-1.5 block w-full rounded shadow-sm input"
3358
3523
  }
3359
3524
  ),
3360
- /* @__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 : "" })
3525
+ /* @__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 : "" })
3361
3526
  ] }) });
3362
3527
  };
3363
3528
  MultilineTextInput_default = MultilineTextInput;
@@ -3365,12 +3530,12 @@ var init_MultilineTextInput = __esm({
3365
3530
  });
3366
3531
 
3367
3532
  // src/components/controls/edit/LineTextInput.tsx
3368
- var import_react39, import_jsx_runtime63, LineTextInput, LineTextInput_default;
3533
+ var import_react39, import_jsx_runtime64, LineTextInput, LineTextInput_default;
3369
3534
  var init_LineTextInput = __esm({
3370
3535
  "src/components/controls/edit/LineTextInput.tsx"() {
3371
3536
  "use strict";
3372
3537
  import_react39 = __toESM(require("react"));
3373
- import_jsx_runtime63 = require("react/jsx-runtime");
3538
+ import_jsx_runtime64 = require("react/jsx-runtime");
3374
3539
  LineTextInput = (props) => {
3375
3540
  const textChangeHandler = (event) => {
3376
3541
  const text = event.target.value;
@@ -3389,11 +3554,11 @@ var init_LineTextInput = __esm({
3389
3554
  if (props.value !== void 0 && props.value !== null) {
3390
3555
  value = props.value;
3391
3556
  }
3392
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_react39.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("label", { className: "block", children: [
3393
- props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { className: "text-sm inline-block pb-1 font-medium ", children: props?.attributes?.label }),
3557
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_react39.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("label", { className: "block", children: [
3558
+ props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "text-sm inline-block pb-1 font-medium ", children: props?.attributes?.label }),
3394
3559
  " ",
3395
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { className: "bg-error-weak !bg-transparent", children: "*" }),
3396
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
3560
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "bg-error-weak !bg-transparent", children: "*" }),
3561
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
3397
3562
  "input",
3398
3563
  {
3399
3564
  type: "text",
@@ -3413,7 +3578,7 @@ var init_LineTextInput = __esm({
3413
3578
  `
3414
3579
  }
3415
3580
  ),
3416
- /* @__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 : "" })
3581
+ /* @__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 : "" })
3417
3582
  ] }) });
3418
3583
  };
3419
3584
  LineTextInput_default = LineTextInput;
@@ -3421,12 +3586,12 @@ var init_LineTextInput = __esm({
3421
3586
  });
3422
3587
 
3423
3588
  // src/components/controls/edit/MoneyInput.tsx
3424
- var import_react40, import_jsx_runtime64, MoneyInput, MoneyInput_default;
3589
+ var import_react40, import_jsx_runtime65, MoneyInput, MoneyInput_default;
3425
3590
  var init_MoneyInput = __esm({
3426
3591
  "src/components/controls/edit/MoneyInput.tsx"() {
3427
3592
  "use strict";
3428
3593
  import_react40 = __toESM(require("react"));
3429
- import_jsx_runtime64 = require("react/jsx-runtime");
3594
+ import_jsx_runtime65 = require("react/jsx-runtime");
3430
3595
  MoneyInput = (props) => {
3431
3596
  const textChangeHandler = (event) => {
3432
3597
  const rawValue = event.target.value;
@@ -3455,11 +3620,11 @@ var init_MoneyInput = __esm({
3455
3620
  e.preventDefault();
3456
3621
  }
3457
3622
  };
3458
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_react40.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("label", { className: "block mb-1", children: [
3459
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
3623
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react40.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("label", { className: "block mb-1", children: [
3624
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
3460
3625
  " ",
3461
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "bg-error-weak", children: "*" }),
3462
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
3626
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { className: "bg-error-weak", children: "*" }),
3627
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
3463
3628
  "input",
3464
3629
  {
3465
3630
  type: "number",
@@ -3479,7 +3644,7 @@ var init_MoneyInput = __esm({
3479
3644
  className: "peer mt-1 py-1.5 block w-full rounded shadow-sm number-input"
3480
3645
  }
3481
3646
  ),
3482
- /* @__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 : "" })
3647
+ /* @__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 : "" })
3483
3648
  ] }) });
3484
3649
  };
3485
3650
  MoneyInput_default = MoneyInput;
@@ -3487,12 +3652,12 @@ var init_MoneyInput = __esm({
3487
3652
  });
3488
3653
 
3489
3654
  // src/components/controls/edit/Select.tsx
3490
- var import_react41, import_jsx_runtime65, Select, Select_default;
3655
+ var import_react41, import_jsx_runtime66, Select, Select_default;
3491
3656
  var init_Select = __esm({
3492
3657
  "src/components/controls/edit/Select.tsx"() {
3493
3658
  "use strict";
3494
3659
  import_react41 = require("react");
3495
- import_jsx_runtime65 = require("react/jsx-runtime");
3660
+ import_jsx_runtime66 = require("react/jsx-runtime");
3496
3661
  Select = (props) => {
3497
3662
  const [list, setList] = (0, import_react41.useState)();
3498
3663
  const getSafeValue = (val) => {
@@ -3564,11 +3729,11 @@ var init_Select = __esm({
3564
3729
  props.dataSourceDependsOn
3565
3730
  ]);
3566
3731
  const value = getSafeValue(props.value);
3567
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("label", { className: "block", children: [
3568
- props.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { className: "text-sm font-medium inline-block pb-1", children: props.attributes?.label }),
3732
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("label", { className: "block", children: [
3733
+ props.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { className: "text-sm font-medium inline-block pb-1", children: props.attributes?.label }),
3569
3734
  " ",
3570
- props.attributes?.label && props.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { className: "bg-error-weak", children: "*" }),
3571
- list && list.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
3735
+ props.attributes?.label && props.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { className: "bg-error-weak", children: "*" }),
3736
+ list && list.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
3572
3737
  "input",
3573
3738
  {
3574
3739
  type: "text",
@@ -3585,7 +3750,7 @@ var init_Select = __esm({
3585
3750
  className: `peer input select mt-1 py-1.5 block w-full rounded shadow-sm ${props.inputClasses ?? ""}`
3586
3751
  }
3587
3752
  ),
3588
- list && list.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
3753
+ list && list.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
3589
3754
  "select",
3590
3755
  {
3591
3756
  name: props.name,
@@ -3598,16 +3763,16 @@ var init_Select = __esm({
3598
3763
  focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50
3599
3764
  disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none ${props.inputClasses ?? ""}`,
3600
3765
  children: [
3601
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("option", { value: "", children: props.attributes?.placeholder || "Select" }),
3766
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("option", { value: "", children: props.attributes?.placeholder || "Select" }),
3602
3767
  list.map((item, index) => {
3603
3768
  const keyField = props.dataKeyFieldName;
3604
3769
  const textField = props.dataTextFieldName;
3605
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("option", { value: item[keyField], children: item[textField] }, index);
3770
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("option", { value: item[keyField], children: item[textField] }, index);
3606
3771
  })
3607
3772
  ]
3608
3773
  }
3609
3774
  ),
3610
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 text-alert text-sm", children: props.attributes?.errorMessage || "" })
3775
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 text-alert text-sm", children: props.attributes?.errorMessage || "" })
3611
3776
  ] });
3612
3777
  };
3613
3778
  Select_default = Select;
@@ -3615,12 +3780,12 @@ var init_Select = __esm({
3615
3780
  });
3616
3781
 
3617
3782
  // src/components/controls/edit/PercentageInput.tsx
3618
- var import_react42, import_jsx_runtime66, PercentageInput, PercentageInput_default;
3783
+ var import_react42, import_jsx_runtime67, PercentageInput, PercentageInput_default;
3619
3784
  var init_PercentageInput = __esm({
3620
3785
  "src/components/controls/edit/PercentageInput.tsx"() {
3621
3786
  "use strict";
3622
3787
  import_react42 = __toESM(require("react"));
3623
- import_jsx_runtime66 = require("react/jsx-runtime");
3788
+ import_jsx_runtime67 = require("react/jsx-runtime");
3624
3789
  PercentageInput = (props) => {
3625
3790
  const textChangeHandler = (event) => {
3626
3791
  const rawValue = event.target.value;
@@ -3649,11 +3814,11 @@ var init_PercentageInput = __esm({
3649
3814
  e.preventDefault();
3650
3815
  }
3651
3816
  };
3652
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react42.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("label", { className: "block mb-1", children: [
3653
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label ? props?.attributes?.label + " %" : "" }),
3817
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_react42.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("label", { className: "block mb-1", children: [
3818
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label ? props?.attributes?.label + " %" : "" }),
3654
3819
  " ",
3655
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { className: "bg-error-weak", children: "*" }),
3656
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
3820
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "bg-error-weak", children: "*" }),
3821
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
3657
3822
  "input",
3658
3823
  {
3659
3824
  type: "number",
@@ -3672,7 +3837,7 @@ var init_PercentageInput = __esm({
3672
3837
  className: "peer mt-1 py-1.5 block w-full rounded shadow-sm number-input"
3673
3838
  }
3674
3839
  ),
3675
- /* @__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 : "" })
3840
+ /* @__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 : "" })
3676
3841
  ] }) });
3677
3842
  };
3678
3843
  PercentageInput_default = PercentageInput;
@@ -3680,12 +3845,12 @@ var init_PercentageInput = __esm({
3680
3845
  });
3681
3846
 
3682
3847
  // src/components/controls/edit/PhoneInput.tsx
3683
- var import_react43, import_jsx_runtime67, PhoneInput, PhoneInput_default;
3848
+ var import_react43, import_jsx_runtime68, PhoneInput, PhoneInput_default;
3684
3849
  var init_PhoneInput = __esm({
3685
3850
  "src/components/controls/edit/PhoneInput.tsx"() {
3686
3851
  "use strict";
3687
3852
  import_react43 = __toESM(require("react"));
3688
- import_jsx_runtime67 = require("react/jsx-runtime");
3853
+ import_jsx_runtime68 = require("react/jsx-runtime");
3689
3854
  PhoneInput = (props) => {
3690
3855
  const textChangeHandler = (event) => {
3691
3856
  const text = event.target.value;
@@ -3704,13 +3869,13 @@ var init_PhoneInput = __esm({
3704
3869
  if (props.value !== void 0 && props.value !== null) {
3705
3870
  value = props.value;
3706
3871
  }
3707
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_react43.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("label", { className: "block mb-1", children: [
3708
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
3872
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_react43.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("label", { className: "block mb-1", children: [
3873
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
3709
3874
  " ",
3710
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "bg-error-weak", children: "*" }),
3711
- /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex items-center rounded border ", children: [
3712
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "px-3", children: props.prefix }),
3713
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
3875
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "bg-error-weak", children: "*" }),
3876
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "flex items-center rounded border ", children: [
3877
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "px-3", children: props.prefix }),
3878
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
3714
3879
  "input",
3715
3880
  {
3716
3881
  type: "text",
@@ -3728,7 +3893,7 @@ var init_PhoneInput = __esm({
3728
3893
  }
3729
3894
  )
3730
3895
  ] }),
3731
- /* @__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 : "" })
3896
+ /* @__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 : "" })
3732
3897
  ] }) });
3733
3898
  };
3734
3899
  PhoneInput_default = PhoneInput;
@@ -3736,12 +3901,12 @@ var init_PhoneInput = __esm({
3736
3901
  });
3737
3902
 
3738
3903
  // src/components/controls/edit/NumberInput.tsx
3739
- var import_react44, import_jsx_runtime68, NumberInput, NumberInput_default;
3904
+ var import_react44, import_jsx_runtime69, NumberInput, NumberInput_default;
3740
3905
  var init_NumberInput = __esm({
3741
3906
  "src/components/controls/edit/NumberInput.tsx"() {
3742
3907
  "use strict";
3743
3908
  import_react44 = __toESM(require("react"));
3744
- import_jsx_runtime68 = require("react/jsx-runtime");
3909
+ import_jsx_runtime69 = require("react/jsx-runtime");
3745
3910
  NumberInput = (props) => {
3746
3911
  const textChangeHandler = (event) => {
3747
3912
  const text = event.target.value;
@@ -3764,11 +3929,11 @@ var init_NumberInput = __esm({
3764
3929
  if (props.value !== void 0 && props.value !== null) {
3765
3930
  value = props.value;
3766
3931
  }
3767
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_react44.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("label", { className: "block", children: [
3768
- props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "text-sm inline-block pb-1 font-medium ", children: props?.attributes?.label }),
3932
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_react44.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("label", { className: "block", children: [
3933
+ props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "text-sm inline-block pb-1 font-medium ", children: props?.attributes?.label }),
3769
3934
  " ",
3770
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "bg-error-weak", children: "*" }),
3771
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
3935
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "bg-error-weak", children: "*" }),
3936
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3772
3937
  "input",
3773
3938
  {
3774
3939
  type: "number",
@@ -3787,7 +3952,7 @@ var init_NumberInput = __esm({
3787
3952
  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 "
3788
3953
  }
3789
3954
  ),
3790
- /* @__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 : "" })
3955
+ /* @__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 : "" })
3791
3956
  ] }) });
3792
3957
  };
3793
3958
  NumberInput_default = NumberInput;
@@ -3795,12 +3960,12 @@ var init_NumberInput = __esm({
3795
3960
  });
3796
3961
 
3797
3962
  // src/components/controls/edit/CheckboxInput.tsx
3798
- var import_react45, import_jsx_runtime69, CheckboxInput, CheckboxInput_default;
3963
+ var import_react45, import_jsx_runtime70, CheckboxInput, CheckboxInput_default;
3799
3964
  var init_CheckboxInput = __esm({
3800
3965
  "src/components/controls/edit/CheckboxInput.tsx"() {
3801
3966
  "use strict";
3802
3967
  import_react45 = __toESM(require("react"));
3803
- import_jsx_runtime69 = require("react/jsx-runtime");
3968
+ import_jsx_runtime70 = require("react/jsx-runtime");
3804
3969
  CheckboxInput = (props) => {
3805
3970
  const textChangeHandler = (event) => {
3806
3971
  let text = event.target.checked;
@@ -3817,9 +3982,9 @@ var init_CheckboxInput = __esm({
3817
3982
  if (props.value != void 0 && props.value != null && props.value != "" && (props.value == "true" || props.value.toString() == "true")) {
3818
3983
  value = true;
3819
3984
  }
3820
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_react45.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "mb-1", children: [
3821
- props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_jsx_runtime69.Fragment, { children: [
3822
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3985
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react45.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "mb-1", children: [
3986
+ props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(import_jsx_runtime70.Fragment, { children: [
3987
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
3823
3988
  "label",
3824
3989
  {
3825
3990
  htmlFor: props.name,
@@ -3827,9 +3992,9 @@ var init_CheckboxInput = __esm({
3827
3992
  children: props.attributes.label
3828
3993
  }
3829
3994
  ),
3830
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "bg-error-weak", children: "*" })
3995
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("span", { className: "bg-error-weak", children: "*" })
3831
3996
  ] }),
3832
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3997
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
3833
3998
  "input",
3834
3999
  {
3835
4000
  type: "checkbox",
@@ -3846,7 +4011,7 @@ var init_CheckboxInput = __esm({
3846
4011
  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 "
3847
4012
  }
3848
4013
  ),
3849
- /* @__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 || "" })
4014
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage || "" })
3850
4015
  ] }) });
3851
4016
  };
3852
4017
  CheckboxInput_default = CheckboxInput;
@@ -3854,12 +4019,12 @@ var init_CheckboxInput = __esm({
3854
4019
  });
3855
4020
 
3856
4021
  // src/components/controls/edit/OtpInput.tsx
3857
- var import_react46, import_jsx_runtime70, OtpInput, OtpInput_default;
4022
+ var import_react46, import_jsx_runtime71, OtpInput, OtpInput_default;
3858
4023
  var init_OtpInput = __esm({
3859
4024
  "src/components/controls/edit/OtpInput.tsx"() {
3860
4025
  "use strict";
3861
4026
  import_react46 = __toESM(require("react"));
3862
- import_jsx_runtime70 = require("react/jsx-runtime");
4027
+ import_jsx_runtime71 = require("react/jsx-runtime");
3863
4028
  OtpInput = (props) => {
3864
4029
  const textChangeHandler = (event) => {
3865
4030
  const text = event.target.value;
@@ -3881,11 +4046,11 @@ var init_OtpInput = __esm({
3881
4046
  if (props.value !== void 0 && props.value !== null) {
3882
4047
  value = props.value;
3883
4048
  }
3884
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react46.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("label", { htmlFor: props.name, className: "block mb-1 w-full", children: [
3885
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
4049
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_react46.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("label", { htmlFor: props.name, className: "block mb-1 w-full", children: [
4050
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
3886
4051
  " ",
3887
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("span", { className: "bg-error-weak", children: "*" }),
3888
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
4052
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("span", { className: "bg-error-weak", children: "*" }),
4053
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
3889
4054
  "input",
3890
4055
  {
3891
4056
  type: "text",
@@ -3905,7 +4070,7 @@ var init_OtpInput = __esm({
3905
4070
  className: "peer mt-1 py-1.5 block w-full rounded shadow-sm tracking-[1.25em] text-center"
3906
4071
  }
3907
4072
  ),
3908
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
4073
+ /* @__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 : "" })
3909
4074
  ] }) });
3910
4075
  };
3911
4076
  OtpInput_default = OtpInput;
@@ -3913,12 +4078,12 @@ var init_OtpInput = __esm({
3913
4078
  });
3914
4079
 
3915
4080
  // src/components/controls/edit/DateTimeInput.tsx
3916
- var import_react47, import_jsx_runtime71, DateTimeInput, DateTimeInput_default;
4081
+ var import_react47, import_jsx_runtime72, DateTimeInput, DateTimeInput_default;
3917
4082
  var init_DateTimeInput = __esm({
3918
4083
  "src/components/controls/edit/DateTimeInput.tsx"() {
3919
4084
  "use strict";
3920
4085
  import_react47 = __toESM(require("react"));
3921
- import_jsx_runtime71 = require("react/jsx-runtime");
4086
+ import_jsx_runtime72 = require("react/jsx-runtime");
3922
4087
  DateTimeInput = (props) => {
3923
4088
  const textChangeHandler = (event) => {
3924
4089
  const localDate = new Date(event.target.value);
@@ -3950,12 +4115,12 @@ var init_DateTimeInput = __esm({
3950
4115
  e.preventDefault();
3951
4116
  }
3952
4117
  };
3953
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_react47.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("label", { className: "block mb-1", children: [
3954
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
4118
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_react47.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("label", { className: "block mb-1", children: [
4119
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
3955
4120
  " ",
3956
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("span", { className: "bg-error-weak", children: "*" }),
3957
- /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "flex items-center gap-2", children: [
3958
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
4121
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: "bg-error-weak", children: "*" }),
4122
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: "flex items-center gap-2", children: [
4123
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
3959
4124
  "input",
3960
4125
  {
3961
4126
  type: "datetime-local",
@@ -3973,9 +4138,9 @@ var init_DateTimeInput = __esm({
3973
4138
  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 "
3974
4139
  }
3975
4140
  ),
3976
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("span", { children: timeZoneAbbr })
4141
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { children: timeZoneAbbr })
3977
4142
  ] }),
3978
- /* @__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 : "" })
4143
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
3979
4144
  ] }) });
3980
4145
  };
3981
4146
  DateTimeInput_default = DateTimeInput;
@@ -3983,12 +4148,12 @@ var init_DateTimeInput = __esm({
3983
4148
  });
3984
4149
 
3985
4150
  // src/components/controls/edit/ColorInput.tsx
3986
- var import_react48, import_jsx_runtime72, ColorInput, ColorInput_default;
4151
+ var import_react48, import_jsx_runtime73, ColorInput, ColorInput_default;
3987
4152
  var init_ColorInput = __esm({
3988
4153
  "src/components/controls/edit/ColorInput.tsx"() {
3989
4154
  "use strict";
3990
4155
  import_react48 = __toESM(require("react"));
3991
- import_jsx_runtime72 = require("react/jsx-runtime");
4156
+ import_jsx_runtime73 = require("react/jsx-runtime");
3992
4157
  ColorInput = (props) => {
3993
4158
  const [color, setColor] = import_react48.default.useState("#3b82f6");
3994
4159
  (0, import_react48.useEffect)(() => {
@@ -4010,11 +4175,11 @@ var init_ColorInput = __esm({
4010
4175
  });
4011
4176
  }
4012
4177
  };
4013
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("label", { className: "block mb-1", children: [
4014
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: "text-sm font-medium", children: props?.attributes?.label }),
4178
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("label", { className: "block mb-1", children: [
4179
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { className: "text-sm font-medium", children: props?.attributes?.label }),
4015
4180
  " ",
4016
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: "bg-error-weak", children: "*" }),
4017
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
4181
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { className: "bg-error-weak", children: "*" }),
4182
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
4018
4183
  "input",
4019
4184
  {
4020
4185
  type: "color",
@@ -4027,7 +4192,7 @@ var init_ColorInput = __esm({
4027
4192
  className: `w-[78px] h-12 block cursor-pointer`
4028
4193
  }
4029
4194
  ),
4030
- props?.attributes?.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("p", { className: "mt-1 bg-error-weak text-sm", children: props.attributes.errorMessage })
4195
+ props?.attributes?.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("p", { className: "mt-1 bg-error-weak text-sm", children: props.attributes.errorMessage })
4031
4196
  ] });
4032
4197
  };
4033
4198
  ColorInput_default = ColorInput;
@@ -4035,13 +4200,13 @@ var init_ColorInput = __esm({
4035
4200
  });
4036
4201
 
4037
4202
  // src/components/controls/edit/SelectWithSearchInput.tsx
4038
- var import_react49, import_jsx_runtime73, SelectWithSearchInput, SelectWithSearchInput_default;
4203
+ var import_react49, import_jsx_runtime74, SelectWithSearchInput, SelectWithSearchInput_default;
4039
4204
  var init_SelectWithSearchInput = __esm({
4040
4205
  "src/components/controls/edit/SelectWithSearchInput.tsx"() {
4041
4206
  "use strict";
4042
4207
  "use client";
4043
4208
  import_react49 = __toESM(require("react"));
4044
- import_jsx_runtime73 = require("react/jsx-runtime");
4209
+ import_jsx_runtime74 = require("react/jsx-runtime");
4045
4210
  SelectWithSearchInput = (props) => {
4046
4211
  const [isOpen, setIsOpen] = (0, import_react49.useState)(false);
4047
4212
  const [searchTerm, setSearchTerm] = (0, import_react49.useState)("");
@@ -4136,14 +4301,14 @@ var init_SelectWithSearchInput = __esm({
4136
4301
  }
4137
4302
  }, [highlightedIndex]);
4138
4303
  const isReadOnly = props.attributes?.readOnly || props.disable || props.attributes?.disable;
4139
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "relative", children: [
4140
- /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("label", { className: "pb-1", children: [
4304
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "relative", children: [
4305
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("label", { className: "pb-1", children: [
4141
4306
  props.attributes?.label,
4142
4307
  " ",
4143
- props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { className: "bg-error-weak", children: "*" })
4308
+ props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "bg-error-weak", children: "*" })
4144
4309
  ] }),
4145
- /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "relative", children: [
4146
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
4310
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "relative", children: [
4311
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
4147
4312
  "input",
4148
4313
  {
4149
4314
  type: "text",
@@ -4165,7 +4330,7 @@ var init_SelectWithSearchInput = __esm({
4165
4330
  `
4166
4331
  }
4167
4332
  ),
4168
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
4333
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
4169
4334
  "button",
4170
4335
  {
4171
4336
  type: "button",
@@ -4176,7 +4341,7 @@ var init_SelectWithSearchInput = __esm({
4176
4341
  }
4177
4342
  },
4178
4343
  className: "absolute right-2 top-3 h-5 w-5 text-gray-500 focus:outline-none",
4179
- children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
4344
+ children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
4180
4345
  "svg",
4181
4346
  {
4182
4347
  xmlns: "http://www.w3.org/2000/svg",
@@ -4185,7 +4350,7 @@ var init_SelectWithSearchInput = __esm({
4185
4350
  strokeWidth: 1.5,
4186
4351
  stroke: "currentColor",
4187
4352
  className: "w-full h-full",
4188
- children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
4353
+ children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
4189
4354
  "path",
4190
4355
  {
4191
4356
  strokeLinecap: "round",
@@ -4198,12 +4363,12 @@ var init_SelectWithSearchInput = __esm({
4198
4363
  }
4199
4364
  )
4200
4365
  ] }),
4201
- !isReadOnly && isOpen && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
4366
+ !isReadOnly && isOpen && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
4202
4367
  "div",
4203
4368
  {
4204
4369
  ref: dropdownRef,
4205
4370
  className: "absolute z-10 w-full bg-default border border-gray-200 shadow-lg max-h-48 overflow-y-auto",
4206
- children: filteredItems.length > 0 ? filteredItems.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
4371
+ children: filteredItems.length > 0 ? filteredItems.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
4207
4372
  "button",
4208
4373
  {
4209
4374
  onClick: (e) => handleSelect(e, item),
@@ -4211,10 +4376,10 @@ var init_SelectWithSearchInput = __esm({
4211
4376
  role: "option",
4212
4377
  tabIndex: -1,
4213
4378
  onMouseEnter: () => setHighlightedIndex(index),
4214
- children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { children: item[props.dataTextFieldName] })
4379
+ children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { children: item[props.dataTextFieldName] })
4215
4380
  },
4216
4381
  item[props.dataKeyFieldName]
4217
- )) : /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "px-4 py-2 text-gray-500", children: "No results found" })
4382
+ )) : /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "px-4 py-2 text-gray-500", children: "No results found" })
4218
4383
  }
4219
4384
  )
4220
4385
  ] });
@@ -4224,14 +4389,14 @@ var init_SelectWithSearchInput = __esm({
4224
4389
  });
4225
4390
 
4226
4391
  // src/components/controls/edit/SelectWithSearchPanel.tsx
4227
- var import_react50, import_jsx_runtime74, SelectWithSearchPanel, SelectWithSearchPanel_default;
4392
+ var import_react50, import_jsx_runtime75, SelectWithSearchPanel, SelectWithSearchPanel_default;
4228
4393
  var init_SelectWithSearchPanel = __esm({
4229
4394
  "src/components/controls/edit/SelectWithSearchPanel.tsx"() {
4230
4395
  "use strict";
4231
4396
  "use client";
4232
4397
  init_Button();
4233
4398
  import_react50 = __toESM(require("react"));
4234
- import_jsx_runtime74 = require("react/jsx-runtime");
4399
+ import_jsx_runtime75 = require("react/jsx-runtime");
4235
4400
  SelectWithSearchPanel = (props) => {
4236
4401
  const [isOpen, setIsOpen] = (0, import_react50.useState)(false);
4237
4402
  const [searchTerm, setSearchTerm] = (0, import_react50.useState)("");
@@ -4367,14 +4532,14 @@ var init_SelectWithSearchPanel = __esm({
4367
4532
  console.log("Form Data:", formData);
4368
4533
  return formData;
4369
4534
  }, []);
4370
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "relative", children: [
4371
- /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("label", { className: "text-sm mb-1 font-medium", children: [
4535
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "relative", children: [
4536
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("label", { className: "text-sm mb-1 font-medium", children: [
4372
4537
  props.attributes?.label,
4373
4538
  " ",
4374
4539
  " ",
4375
- props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "bg-error-weak", children: "*" })
4540
+ props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { className: "bg-error-weak", children: "*" })
4376
4541
  ] }),
4377
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
4542
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
4378
4543
  "input",
4379
4544
  {
4380
4545
  type: "text",
@@ -4388,14 +4553,14 @@ var init_SelectWithSearchPanel = __esm({
4388
4553
  disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none`
4389
4554
  }
4390
4555
  ) }),
4391
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { ref: containerRef, children: isOpen && /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(import_react50.default.Fragment, { children: [
4392
- /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "fixed z-50 right-0 bg-white top-[62px] w-1/4 border-l border-gray-200", children: [
4393
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "flex flex-col p-2 bg-accent-950 text-white", children: /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("h5", { className: "text-md text-white font-medium", children: [
4556
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { ref: containerRef, children: isOpen && /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(import_react50.default.Fragment, { children: [
4557
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "fixed z-50 right-0 bg-white top-[62px] w-1/4 border-l border-gray-200", children: [
4558
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: "flex flex-col p-2 bg-accent-950 text-white", children: /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("h5", { className: "text-md text-white font-medium", children: [
4394
4559
  "Select a",
4395
4560
  " ",
4396
4561
  props.attributes?.label || props.attributes?.heading
4397
4562
  ] }) }),
4398
- /* @__PURE__ */ (0, import_jsx_runtime74.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_runtime74.jsx)(
4563
+ /* @__PURE__ */ (0, import_jsx_runtime75.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_runtime75.jsx)(
4399
4564
  "button",
4400
4565
  {
4401
4566
  type: "button",
@@ -4408,12 +4573,12 @@ var init_SelectWithSearchPanel = __esm({
4408
4573
  }
4409
4574
  ) })
4410
4575
  ] }),
4411
- isCreateOpen && /* @__PURE__ */ (0, import_jsx_runtime74.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: [
4412
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "flex flex-col p-2 bg-accent-950", children: /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("h5", { className: "text-md font-medium text-white", children: [
4576
+ isCreateOpen && /* @__PURE__ */ (0, import_jsx_runtime75.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: [
4577
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: "flex flex-col p-2 bg-accent-950", children: /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("h5", { className: "text-md font-medium text-white", children: [
4413
4578
  "Create New ",
4414
4579
  props.attributes?.label
4415
4580
  ] }) }),
4416
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "flex justify-end px-4 border-b py-2 border-gray-200", children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
4581
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: "flex justify-end px-4 border-b py-2 border-gray-200", children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
4417
4582
  "button",
4418
4583
  {
4419
4584
  type: "button",
@@ -4422,10 +4587,10 @@ var init_SelectWithSearchPanel = __esm({
4422
4587
  children: "Close"
4423
4588
  }
4424
4589
  ) }),
4425
- /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "p-4", children: [
4426
- props.createFields?.map((field) => /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "mb-4", children: [
4427
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("label", { className: "text-sm mb-1 font-medium block", children: field.label }),
4428
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
4590
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "p-4", children: [
4591
+ props.createFields?.map((field) => /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "mb-4", children: [
4592
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("label", { className: "text-sm mb-1 font-medium block", children: field.label }),
4593
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
4429
4594
  "input",
4430
4595
  {
4431
4596
  type: field.type,
@@ -4441,7 +4606,7 @@ var init_SelectWithSearchPanel = __esm({
4441
4606
  }
4442
4607
  )
4443
4608
  ] }, field.name)),
4444
- /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(Button_default, { onClick: async () => {
4609
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(Button_default, { onClick: async () => {
4445
4610
  handleSaveModal();
4446
4611
  return { isSuccessful: true };
4447
4612
  }, className: "w-full", children: [
@@ -4450,13 +4615,13 @@ var init_SelectWithSearchPanel = __esm({
4450
4615
  ] })
4451
4616
  ] })
4452
4617
  ] }),
4453
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
4618
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
4454
4619
  "div",
4455
4620
  {
4456
4621
  ref: listRef,
4457
4622
  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",
4458
4623
  style: { height: "calc(100vh - 130px)" },
4459
- children: filteredItems.length > 0 ? filteredItems.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
4624
+ children: filteredItems.length > 0 ? filteredItems.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
4460
4625
  "button",
4461
4626
  {
4462
4627
  onClick: (e) => {
@@ -4466,9 +4631,9 @@ var init_SelectWithSearchPanel = __esm({
4466
4631
  role: "option",
4467
4632
  tabIndex: -1,
4468
4633
  onMouseEnter: () => setHighlightedIndex(index),
4469
- children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { children: getNestedValue7(item, props.dataTextFieldName) })
4634
+ children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { children: getNestedValue7(item, props.dataTextFieldName) })
4470
4635
  }
4471
- ) }, item[props.dataKeyFieldName])) : /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "px-4 py-2 text-gray-500", children: "No results found" })
4636
+ ) }, item[props.dataKeyFieldName])) : /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: "px-4 py-2 text-gray-500", children: "No results found" })
4472
4637
  }
4473
4638
  )
4474
4639
  ] }) })
@@ -4479,12 +4644,12 @@ var init_SelectWithSearchPanel = __esm({
4479
4644
  });
4480
4645
 
4481
4646
  // src/components/controls/edit/BooleanSelect.tsx
4482
- var import_react51, import_jsx_runtime75, BooleanSelect, BooleanSelect_default;
4647
+ var import_react51, import_jsx_runtime76, BooleanSelect, BooleanSelect_default;
4483
4648
  var init_BooleanSelect = __esm({
4484
4649
  "src/components/controls/edit/BooleanSelect.tsx"() {
4485
4650
  "use strict";
4486
4651
  import_react51 = __toESM(require("react"));
4487
- import_jsx_runtime75 = require("react/jsx-runtime");
4652
+ import_jsx_runtime76 = require("react/jsx-runtime");
4488
4653
  BooleanSelect = (props) => {
4489
4654
  const [list, setList] = (0, import_react51.useState)();
4490
4655
  const textChangeHandler = (event) => {
@@ -4533,11 +4698,11 @@ var init_BooleanSelect = __esm({
4533
4698
  if (props.value !== void 0 && props.value !== null) {
4534
4699
  value = props.value;
4535
4700
  }
4536
- return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_react51.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("label", { className: "block", children: [
4537
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
4701
+ return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_react51.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("label", { className: "block", children: [
4702
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
4538
4703
  " ",
4539
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { className: "bg-error-weak", children: "*" }),
4540
- /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
4704
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { className: "bg-error-weak", children: "*" }),
4705
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
4541
4706
  "select",
4542
4707
  {
4543
4708
  name: props.name,
@@ -4549,9 +4714,9 @@ var init_BooleanSelect = __esm({
4549
4714
  disabled: props?.attributes?.readOnly,
4550
4715
  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 ",
4551
4716
  children: [
4552
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("option", { className: "", value: "", children: props.attributes?.placeholder || "Select" }),
4717
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("option", { className: "", value: "", children: props.attributes?.placeholder || "Select" }),
4553
4718
  list && list.map((item, i) => {
4554
- return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
4719
+ return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
4555
4720
  "option",
4556
4721
  {
4557
4722
  className: "fac-select-option",
@@ -4564,7 +4729,7 @@ var init_BooleanSelect = __esm({
4564
4729
  ]
4565
4730
  }
4566
4731
  ),
4567
- /* @__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 ? props.attributes.errorMessage : "" })
4732
+ /* @__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 ? props.attributes.errorMessage : "" })
4568
4733
  ] }) });
4569
4734
  };
4570
4735
  BooleanSelect_default = BooleanSelect;
@@ -4572,12 +4737,12 @@ var init_BooleanSelect = __esm({
4572
4737
  });
4573
4738
 
4574
4739
  // src/components/controls/edit/EmailInput.tsx
4575
- var import_react52, import_jsx_runtime76, EmailInput, EmailInput_default;
4740
+ var import_react52, import_jsx_runtime77, EmailInput, EmailInput_default;
4576
4741
  var init_EmailInput = __esm({
4577
4742
  "src/components/controls/edit/EmailInput.tsx"() {
4578
4743
  "use strict";
4579
4744
  import_react52 = __toESM(require("react"));
4580
- import_jsx_runtime76 = require("react/jsx-runtime");
4745
+ import_jsx_runtime77 = require("react/jsx-runtime");
4581
4746
  EmailInput = (props) => {
4582
4747
  const textChangeHandler = (event) => {
4583
4748
  const text = event.target.value;
@@ -4602,11 +4767,11 @@ var init_EmailInput = __esm({
4602
4767
  if (props.value !== void 0 && props.value !== null) {
4603
4768
  value = props.value;
4604
4769
  }
4605
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_react52.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("label", { className: "block mb-1", children: [
4606
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { className: "text-sm font-medium text-slate-700", children: props?.attributes?.label }),
4770
+ return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_react52.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("label", { className: "block mb-1", children: [
4771
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("span", { className: "text-sm font-medium text-slate-700", children: props?.attributes?.label }),
4607
4772
  " ",
4608
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { className: "bg-error-weak", children: "*" }),
4609
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
4773
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("span", { className: "bg-error-weak", children: "*" }),
4774
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
4610
4775
  "input",
4611
4776
  {
4612
4777
  type: "email",
@@ -4622,7 +4787,7 @@ var init_EmailInput = __esm({
4622
4787
  className: "peer mt-1 py-1.5 block w-full rounded shadow-sm\n transition-all duration-500 ease-in-out"
4623
4788
  }
4624
4789
  ),
4625
- /* @__PURE__ */ (0, import_jsx_runtime76.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 : "" })
4790
+ /* @__PURE__ */ (0, import_jsx_runtime77.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 : "" })
4626
4791
  ] }) });
4627
4792
  };
4628
4793
  EmailInput_default = EmailInput;
@@ -4630,13 +4795,13 @@ var init_EmailInput = __esm({
4630
4795
  });
4631
4796
 
4632
4797
  // src/components/controls/edit/TimeInput.tsx
4633
- var import_react53, import_jsx_runtime77, TimeInput, TimeInput_default;
4798
+ var import_react53, import_jsx_runtime78, TimeInput, TimeInput_default;
4634
4799
  var init_TimeInput = __esm({
4635
4800
  "src/components/controls/edit/TimeInput.tsx"() {
4636
4801
  "use strict";
4637
4802
  "use client";
4638
4803
  import_react53 = __toESM(require("react"));
4639
- import_jsx_runtime77 = require("react/jsx-runtime");
4804
+ import_jsx_runtime78 = require("react/jsx-runtime");
4640
4805
  TimeInput = (props) => {
4641
4806
  const timeChangeHandler = (event) => {
4642
4807
  const timeValue = event.target.value;
@@ -4649,11 +4814,11 @@ var init_TimeInput = __esm({
4649
4814
  });
4650
4815
  }
4651
4816
  };
4652
- return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_react53.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("label", { className: "block mb-1", children: [
4653
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("span", { className: "text-sm font-medium", children: props?.attributes?.label }),
4817
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_react53.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("label", { className: "block mb-1", children: [
4818
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { className: "text-sm font-medium", children: props?.attributes?.label }),
4654
4819
  " ",
4655
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("span", { className: "bg-error-weak", children: "*" }),
4656
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
4820
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { className: "bg-error-weak", children: "*" }),
4821
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
4657
4822
  "input",
4658
4823
  {
4659
4824
  type: "time",
@@ -4666,7 +4831,7 @@ var init_TimeInput = __esm({
4666
4831
  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"
4667
4832
  }
4668
4833
  ) }),
4669
- /* @__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 ?? "" })
4834
+ /* @__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 ?? "" })
4670
4835
  ] }) });
4671
4836
  };
4672
4837
  TimeInput_default = TimeInput;
@@ -4674,7 +4839,7 @@ var init_TimeInput = __esm({
4674
4839
  });
4675
4840
 
4676
4841
  // src/components/controls/edit/AssetUpload.tsx
4677
- var import_react54, import_jsx_runtime78, AssetUpload, AssetUpload_default;
4842
+ var import_react54, import_jsx_runtime79, AssetUpload, AssetUpload_default;
4678
4843
  var init_AssetUpload = __esm({
4679
4844
  "src/components/controls/edit/AssetUpload.tsx"() {
4680
4845
  "use strict";
@@ -4685,7 +4850,7 @@ var init_AssetUpload = __esm({
4685
4850
  init_AssetUtility();
4686
4851
  init_Hyperlink();
4687
4852
  init_Icon();
4688
- import_jsx_runtime78 = require("react/jsx-runtime");
4853
+ import_jsx_runtime79 = require("react/jsx-runtime");
4689
4854
  AssetUpload = (props) => {
4690
4855
  const isDisabled = props.attributes?.disable ?? false;
4691
4856
  let allValues = [];
@@ -4782,10 +4947,10 @@ var init_AssetUpload = __esm({
4782
4947
  }
4783
4948
  return false;
4784
4949
  };
4785
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(import_react54.default.Fragment, { children: [
4786
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("label", { className: "block mb-1", children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { className: "text-sm font-medium", children: props?.attributes?.label }) }),
4787
- /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "flex gap-6 bg-neutral-100 rounded p-2", children: [
4788
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
4950
+ return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_react54.default.Fragment, { children: [
4951
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("label", { className: "block mb-1", children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { className: "text-sm font-medium", children: props?.attributes?.label }) }),
4952
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: "flex gap-6 bg-neutral-100 rounded p-2", children: [
4953
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
4789
4954
  ClientButton_default,
4790
4955
  {
4791
4956
  className: assetType === "image" ? "px-2 py-1 rounded bg-body-200 scale-95" : "text-neutral-700",
@@ -4795,7 +4960,7 @@ var init_AssetUpload = __esm({
4795
4960
  children: "Image Upload"
4796
4961
  }
4797
4962
  ),
4798
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
4963
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
4799
4964
  ClientButton_default,
4800
4965
  {
4801
4966
  className: assetType === "video" ? "bg-body-200 px-2 py-1 rounded-md scale-95" : "text-neutral-700",
@@ -4806,13 +4971,13 @@ var init_AssetUpload = __esm({
4806
4971
  }
4807
4972
  )
4808
4973
  ] }),
4809
- shouldShowDetails() && /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "relative mt-4 rounded-md p-4 border-2 border-dotted border-gray-300 bg-gray-50", children: [
4810
- /* @__PURE__ */ (0, import_jsx_runtime78.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" }),
4811
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "flex flex-col gap-3", children: allValues.map((digitalAsset, index) => /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "flex justify-between items-start gap-5", children: [
4812
- /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "grid grid-cols-2 gap-x-8 gap-y-3 text-sm w-full", children: [
4813
- /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { children: [
4814
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("p", { className: "text-gray-500", children: "Title" }),
4815
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
4974
+ shouldShowDetails() && /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: "relative mt-4 rounded-md p-4 border-2 border-dotted border-gray-300 bg-gray-50", children: [
4975
+ /* @__PURE__ */ (0, import_jsx_runtime79.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" }),
4976
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { className: "flex flex-col gap-3", children: allValues.map((digitalAsset, index) => /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: "flex justify-between items-start gap-5", children: [
4977
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: "grid grid-cols-2 gap-x-8 gap-y-3 text-sm w-full", children: [
4978
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { children: [
4979
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("p", { className: "text-gray-500", children: "Title" }),
4980
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
4816
4981
  "input",
4817
4982
  {
4818
4983
  type: "text",
@@ -4824,18 +4989,18 @@ var init_AssetUpload = __esm({
4824
4989
  }
4825
4990
  )
4826
4991
  ] }),
4827
- digitalAsset.intrinsicWidth && digitalAsset.intrinsicHeight && /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { children: [
4828
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("p", { className: "text-gray-500", children: "Resolution" }),
4829
- /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("p", { className: "font-medium text-gray-900 mt-3", children: [
4992
+ digitalAsset.intrinsicWidth && digitalAsset.intrinsicHeight && /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { children: [
4993
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("p", { className: "text-gray-500", children: "Resolution" }),
4994
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("p", { className: "font-medium text-gray-900 mt-3", children: [
4830
4995
  digitalAsset.intrinsicWidth,
4831
4996
  "\xD7",
4832
4997
  digitalAsset.intrinsicHeight
4833
4998
  ] })
4834
4999
  ] }),
4835
- (digitalAsset.assetUrl || digitalAsset.posterUrl) && /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { children: [
4836
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("p", { className: "text-gray-500", children: "Image / Poster" }),
4837
- /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "flex-shrink-0 flex flex-col gap-3 mt-1", children: [
4838
- getAssetType(digitalAsset) === "video" && digitalAsset.posterUrl && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
5000
+ (digitalAsset.assetUrl || digitalAsset.posterUrl) && /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { children: [
5001
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("p", { className: "text-gray-500", children: "Image / Poster" }),
5002
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: "flex-shrink-0 flex flex-col gap-3 mt-1", children: [
5003
+ getAssetType(digitalAsset) === "video" && digitalAsset.posterUrl && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
4839
5004
  "img",
4840
5005
  {
4841
5006
  src: AssetUtility_default.resolveUrl(props.serviceClient?.baseUrl, digitalAsset.posterUrl),
@@ -4843,7 +5008,7 @@ var init_AssetUpload = __esm({
4843
5008
  className: "w-32 h-auto object-cover rounded border p-1"
4844
5009
  }
4845
5010
  ),
4846
- getAssetType(digitalAsset) === "image" && digitalAsset.assetUrl && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
5011
+ getAssetType(digitalAsset) === "image" && digitalAsset.assetUrl && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
4847
5012
  "img",
4848
5013
  {
4849
5014
  src: AssetUtility_default.resolveUrl(props.serviceClient?.baseUrl, digitalAsset.assetUrl),
@@ -4853,9 +5018,9 @@ var init_AssetUpload = __esm({
4853
5018
  )
4854
5019
  ] })
4855
5020
  ] }),
4856
- digitalAsset.assetUrl?.endsWith(".m3u8") && /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "col-span-2", children: [
4857
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("p", { className: "text-gray-500", children: "HLS Link" }),
4858
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
5021
+ digitalAsset.assetUrl?.endsWith(".m3u8") && /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: "col-span-2", children: [
5022
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("p", { className: "text-gray-500", children: "HLS Link" }),
5023
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
4859
5024
  Hyperlink,
4860
5025
  {
4861
5026
  href: digitalAsset.assetUrl,
@@ -4866,12 +5031,12 @@ var init_AssetUpload = __esm({
4866
5031
  )
4867
5032
  ] })
4868
5033
  ] }),
4869
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
5034
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
4870
5035
  "span",
4871
5036
  {
4872
5037
  onClick: () => !isDisabled && deleteFile(index),
4873
5038
  className: isDisabled ? "cursor-not-allowed opacity-50" : "cursor-pointer",
4874
- children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(Icon_default, { className: "w-4 h-4 text-primary", name: "delete" })
5039
+ children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Icon_default, { className: "w-4 h-4 text-primary", name: "delete" })
4875
5040
  }
4876
5041
  )
4877
5042
  ] }, index)) })
@@ -4883,12 +5048,12 @@ var init_AssetUpload = __esm({
4883
5048
  });
4884
5049
 
4885
5050
  // src/components/controls/edit/SwitchInput.tsx
4886
- var import_react55, import_jsx_runtime79, SwitchInput, SwitchInput_default;
5051
+ var import_react55, import_jsx_runtime80, SwitchInput, SwitchInput_default;
4887
5052
  var init_SwitchInput = __esm({
4888
5053
  "src/components/controls/edit/SwitchInput.tsx"() {
4889
5054
  "use strict";
4890
5055
  import_react55 = __toESM(require("react"));
4891
- import_jsx_runtime79 = require("react/jsx-runtime");
5056
+ import_jsx_runtime80 = require("react/jsx-runtime");
4892
5057
  SwitchInput = (props) => {
4893
5058
  const textChangeHandler = (event) => {
4894
5059
  let text = event.target.checked;
@@ -4905,28 +5070,28 @@ var init_SwitchInput = __esm({
4905
5070
  if (props.value != void 0 && props.value != null && props.value != "" && (props.value == "true" || props.value.toString() == "true")) {
4906
5071
  value = true;
4907
5072
  }
4908
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_react55.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: "flex items-start justify-between gap-4 py-3", children: [
4909
- /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: "min-w-0", children: [
4910
- props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
5073
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_react55.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "flex items-start justify-between gap-4 py-3", children: [
5074
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "min-w-0", children: [
5075
+ props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
4911
5076
  "label",
4912
5077
  {
4913
5078
  htmlFor: props.name,
4914
5079
  className: "inline-block text-sm font-semibold text-slate-800",
4915
5080
  children: [
4916
5081
  props.attributes.label,
4917
- props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { className: "bg-error-weak", children: "*" })
5082
+ props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("span", { className: "bg-error-weak", children: "*" })
4918
5083
  ]
4919
5084
  }
4920
5085
  ),
4921
- /* @__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 || "" })
5086
+ /* @__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 || "" })
4922
5087
  ] }),
4923
- /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
5088
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
4924
5089
  "label",
4925
5090
  {
4926
5091
  htmlFor: props.name,
4927
5092
  className: "relative inline-flex shrink-0 cursor-pointer items-center peer-disabled:cursor-not-allowed",
4928
5093
  children: [
4929
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
5094
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
4930
5095
  "input",
4931
5096
  {
4932
5097
  type: "checkbox",
@@ -4939,13 +5104,13 @@ var init_SwitchInput = __esm({
4939
5104
  className: "peer sr-only"
4940
5105
  }
4941
5106
  ),
4942
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
5107
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
4943
5108
  "div",
4944
5109
  {
4945
5110
  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"
4946
5111
  }
4947
5112
  ),
4948
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
5113
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
4949
5114
  "div",
4950
5115
  {
4951
5116
  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"
@@ -5043,13 +5208,13 @@ var init_DateTimeUtility = __esm({
5043
5208
  });
5044
5209
 
5045
5210
  // src/components/controls/edit/DateInput.tsx
5046
- var import_react56, import_jsx_runtime80, DateInput, DateInput_default;
5211
+ var import_react56, import_jsx_runtime81, DateInput, DateInput_default;
5047
5212
  var init_DateInput = __esm({
5048
5213
  "src/components/controls/edit/DateInput.tsx"() {
5049
5214
  "use strict";
5050
5215
  import_react56 = require("react");
5051
5216
  init_DateTimeUtility();
5052
- import_jsx_runtime80 = require("react/jsx-runtime");
5217
+ import_jsx_runtime81 = require("react/jsx-runtime");
5053
5218
  DateInput = (props) => {
5054
5219
  const value = (0, import_react56.useMemo)(() => {
5055
5220
  if (props.value === void 0 || props.value === null || props.value === "") {
@@ -5083,11 +5248,11 @@ var init_DateInput = __esm({
5083
5248
  groupKey: props.groupKey
5084
5249
  });
5085
5250
  };
5086
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("label", { className: "block mb-1", children: [
5087
- props.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("span", { className: "text-sm font-medium", children: props.attributes.label }),
5251
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("label", { className: "block mb-1", children: [
5252
+ props.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: "text-sm font-medium", children: props.attributes.label }),
5088
5253
  " ",
5089
- props.attributes?.label && props.attributes.required && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("span", { className: "bg-error-weak", children: "*" }),
5090
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
5254
+ props.attributes?.label && props.attributes.required && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: "bg-error-weak", children: "*" }),
5255
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
5091
5256
  "input",
5092
5257
  {
5093
5258
  type: "date",
@@ -5101,7 +5266,7 @@ var init_DateInput = __esm({
5101
5266
  className: `peer input mt-1 py-1.5 block w-full rounded shadow-sm ${props.inputClasses ?? ""}`
5102
5267
  }
5103
5268
  ),
5104
- /* @__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 ?? "" })
5269
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props.attributes?.errorMessage ?? "" })
5105
5270
  ] });
5106
5271
  };
5107
5272
  DateInput_default = DateInput;
@@ -5109,13 +5274,13 @@ var init_DateInput = __esm({
5109
5274
  });
5110
5275
 
5111
5276
  // src/components/controls/edit/RadioInput.tsx
5112
- var import_react57, import_jsx_runtime81, RadioInput, RadioInput_default;
5277
+ var import_react57, import_jsx_runtime82, RadioInput, RadioInput_default;
5113
5278
  var init_RadioInput = __esm({
5114
5279
  "src/components/controls/edit/RadioInput.tsx"() {
5115
5280
  "use strict";
5116
5281
  import_react57 = require("react");
5117
5282
  init_Icon();
5118
- import_jsx_runtime81 = require("react/jsx-runtime");
5283
+ import_jsx_runtime82 = require("react/jsx-runtime");
5119
5284
  RadioInput = (props) => {
5120
5285
  const [list, setList] = (0, import_react57.useState)([]);
5121
5286
  (0, import_react57.useEffect)(() => {
@@ -5160,22 +5325,22 @@ var init_RadioInput = __esm({
5160
5325
  });
5161
5326
  }
5162
5327
  };
5163
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "block", children: [
5164
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: "text-sm font-medium", children: props.attributes?.label }),
5165
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "flex flex-col gap-3", children: list.map((item, index) => {
5328
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: "block", children: [
5329
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { className: "text-sm font-medium", children: props.attributes?.label }),
5330
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "flex flex-col gap-3", children: list.map((item, index) => {
5166
5331
  const itemValue = item[props.dataKeyFieldName];
5167
5332
  const isSelected = String(itemValue) === String(props.value ?? "");
5168
5333
  const isRecommended = props.dataRecommendedValue !== void 0 && String(itemValue) === String(props.dataRecommendedValue);
5169
5334
  const resultClassName = isSelected ? isRecommended ? "bg-success" : props.dataRecommendedValue ? "bg-alert" : "border-transparent" : "border-transparent";
5170
5335
  const iconName = isSelected && props.dataRecommendedValue ? isRecommended ? "checkCircle" : "xCircle" : void 0;
5171
5336
  const inputId = `${props.name}-${props.index ?? 0}-id-${index}`;
5172
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
5337
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
5173
5338
  "div",
5174
5339
  {
5175
5340
  className: `font-normal flex items-center justify-between gap-4 cursor-pointer border rounded p-2 ${resultClassName}`,
5176
5341
  children: [
5177
- /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "flex gap-4 items-start", children: [
5178
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
5342
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: "flex gap-4 items-start", children: [
5343
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
5179
5344
  "input",
5180
5345
  {
5181
5346
  type: "radio",
@@ -5189,15 +5354,15 @@ var init_RadioInput = __esm({
5189
5354
  required: props.attributes?.required
5190
5355
  }
5191
5356
  ),
5192
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("label", { className: "text-body-950 pr-2", htmlFor: inputId, children: item[props.dataTextFieldName] })
5357
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("label", { className: "text-body-950 pr-2", htmlFor: inputId, children: item[props.dataTextFieldName] })
5193
5358
  ] }),
5194
- iconName && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Icon_default, { className: "w-5 h-5 text-success", name: iconName })
5359
+ iconName && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Icon_default, { className: "w-5 h-5 text-success", name: iconName })
5195
5360
  ]
5196
5361
  },
5197
5362
  String(itemValue)
5198
5363
  );
5199
5364
  }) }),
5200
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props.attributes?.errorMessage ?? "" })
5365
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props.attributes?.errorMessage ?? "" })
5201
5366
  ] });
5202
5367
  };
5203
5368
  RadioInput_default = RadioInput;
@@ -5205,12 +5370,12 @@ var init_RadioInput = __esm({
5205
5370
  });
5206
5371
 
5207
5372
  // src/components/controls/edit/Switcher.tsx
5208
- var import_react58, import_jsx_runtime82, Switcher, Switcher_default;
5373
+ var import_react58, import_jsx_runtime83, Switcher, Switcher_default;
5209
5374
  var init_Switcher = __esm({
5210
5375
  "src/components/controls/edit/Switcher.tsx"() {
5211
5376
  "use strict";
5212
5377
  import_react58 = require("react");
5213
- import_jsx_runtime82 = require("react/jsx-runtime");
5378
+ import_jsx_runtime83 = require("react/jsx-runtime");
5214
5379
  Switcher = (props) => {
5215
5380
  const [list, setList] = (0, import_react58.useState)([]);
5216
5381
  (0, import_react58.useEffect)(() => {
@@ -5254,9 +5419,9 @@ var init_Switcher = __esm({
5254
5419
  });
5255
5420
  };
5256
5421
  const value = props.value === void 0 || props.value === null ? "" : String(props.value);
5257
- return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("label", { className: "block mb-1", children: [
5258
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { className: "text-sm font-medium", children: props.attributes?.label }),
5259
- list.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
5422
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("label", { className: "block mb-1", children: [
5423
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("span", { className: "text-sm font-medium", children: props.attributes?.label }),
5424
+ list.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
5260
5425
  "input",
5261
5426
  {
5262
5427
  type: "text",
@@ -5269,7 +5434,7 @@ var init_Switcher = __esm({
5269
5434
  disabled: props.attributes?.readOnly,
5270
5435
  className: `peer input mt-1 py-1.5 block w-full rounded shadow-sm ${props.inputClasses ?? ""}`
5271
5436
  }
5272
- ) : /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
5437
+ ) : /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
5273
5438
  "select",
5274
5439
  {
5275
5440
  name: props.name,
@@ -5280,8 +5445,8 @@ var init_Switcher = __esm({
5280
5445
  disabled: props.attributes?.readOnly,
5281
5446
  className: `peer select my-1 py-1 block w-full rounded shadow-sm ${props.inputClasses ?? ""}`,
5282
5447
  children: [
5283
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("option", { value: "", children: props.attributes?.placeholder || "Select" }),
5284
- list.map((item) => /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
5448
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("option", { value: "", children: props.attributes?.placeholder || "Select" }),
5449
+ list.map((item) => /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
5285
5450
  "option",
5286
5451
  {
5287
5452
  value: item[props.dataKeyFieldName],
@@ -5292,7 +5457,7 @@ var init_Switcher = __esm({
5292
5457
  ]
5293
5458
  }
5294
5459
  ),
5295
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props.attributes?.errorMessage ?? "" })
5460
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props.attributes?.errorMessage ?? "" })
5296
5461
  ] });
5297
5462
  };
5298
5463
  Switcher_default = Switcher;
@@ -5300,14 +5465,14 @@ var init_Switcher = __esm({
5300
5465
  });
5301
5466
 
5302
5467
  // src/components/controls/edit/ReferenceInput.tsx
5303
- var import_jsx_runtime83, ReferenceInput, ReferenceInput_default;
5468
+ var import_jsx_runtime84, ReferenceInput, ReferenceInput_default;
5304
5469
  var init_ReferenceInput = __esm({
5305
5470
  "src/components/controls/edit/ReferenceInput.tsx"() {
5306
5471
  "use strict";
5307
5472
  init_SelectWithSearchInput();
5308
- import_jsx_runtime83 = require("react/jsx-runtime");
5473
+ import_jsx_runtime84 = require("react/jsx-runtime");
5309
5474
  ReferenceInput = (props) => {
5310
- return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(SelectWithSearchInput_default, { ...props });
5475
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(SelectWithSearchInput_default, { ...props });
5311
5476
  };
5312
5477
  ReferenceInput_default = ReferenceInput;
5313
5478
  }
@@ -5318,7 +5483,7 @@ var InputControlClient_exports = {};
5318
5483
  __export(InputControlClient_exports, {
5319
5484
  default: () => InputControlClient_default
5320
5485
  });
5321
- var import_react59, import_jsx_runtime84, InputControl, InputControlClient_default;
5486
+ var import_react59, import_jsx_runtime85, InputControl, InputControlClient_default;
5322
5487
  var init_InputControlClient = __esm({
5323
5488
  "src/components/controls/edit/InputControlClient.tsx"() {
5324
5489
  "use strict";
@@ -5347,7 +5512,7 @@ var init_InputControlClient = __esm({
5347
5512
  init_RadioInput();
5348
5513
  init_Switcher();
5349
5514
  init_ReferenceInput();
5350
- import_jsx_runtime84 = require("react/jsx-runtime");
5515
+ import_jsx_runtime85 = require("react/jsx-runtime");
5351
5516
  InputControl = import_react59.default.forwardRef(
5352
5517
  (props, ref) => {
5353
5518
  const ControlComponents = {
@@ -5376,7 +5541,7 @@ var init_InputControlClient = __esm({
5376
5541
  [InputControlType_default.referenceInput]: ReferenceInput_default
5377
5542
  };
5378
5543
  const SelectedControlComponent = ControlComponents[props.controlType];
5379
- return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_react59.default.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
5544
+ return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_react59.default.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
5380
5545
  }
5381
5546
  );
5382
5547
  InputControl.displayName = "InputControl";
@@ -5402,7 +5567,7 @@ var DataBindingControls_exports = {};
5402
5567
  __export(DataBindingControls_exports, {
5403
5568
  default: () => DataBindingControls_default
5404
5569
  });
5405
- var import_react60, import_navigation, import_jsx_runtime85, humanize, escapeODataString, parseFacetSelections, buildFacetFilter, parseODataSearch, normalizeSortOption, DUMMY_FACETS, DUMMY_SORT_OPTIONS, DataBindingControls, DataBindingControls_default;
5570
+ var import_react60, import_navigation, import_jsx_runtime86, humanize, escapeODataString, parseFacetSelections, buildFacetFilter, parseODataSearch, normalizeSortOption, DUMMY_FACETS, DUMMY_SORT_OPTIONS, DataBindingControls, DataBindingControls_default;
5406
5571
  var init_DataBindingControls = __esm({
5407
5572
  "src/components/pageRenderingEngine/nodes/DataBindingControls.tsx"() {
5408
5573
  "use strict";
@@ -5411,7 +5576,7 @@ var init_DataBindingControls = __esm({
5411
5576
  import_navigation = require("next/navigation");
5412
5577
  init_InputControl();
5413
5578
  init_InputControlType();
5414
- import_jsx_runtime85 = require("react/jsx-runtime");
5579
+ import_jsx_runtime86 = require("react/jsx-runtime");
5415
5580
  humanize = (value) => value.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " ").trim();
5416
5581
  escapeODataString = (value) => value.replace(/'/g, "''");
5417
5582
  parseFacetSelections = (filter) => {
@@ -5560,8 +5725,8 @@ var init_DataBindingControls = __esm({
5560
5725
  if (!shouldShowToolbar && !shouldShowFacets) {
5561
5726
  return null;
5562
5727
  }
5563
- const renderFacetLinks = (field, values, stacked = false) => /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: stacked ? "flex flex-col gap-1" : "flex flex-wrap gap-2", children: [
5564
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
5728
+ const renderFacetLinks = (field, values, stacked = false) => /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: stacked ? "flex flex-col gap-1" : "flex flex-wrap gap-2", children: [
5729
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
5565
5730
  "button",
5566
5731
  {
5567
5732
  type: "button",
@@ -5573,7 +5738,7 @@ var init_DataBindingControls = __esm({
5573
5738
  ),
5574
5739
  values.map((facet) => {
5575
5740
  const isSelected = selectedFacetValues.get(field) === facet.value;
5576
- return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
5741
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
5577
5742
  "button",
5578
5743
  {
5579
5744
  type: "button",
@@ -5591,9 +5756,9 @@ var init_DataBindingControls = __esm({
5591
5756
  );
5592
5757
  })
5593
5758
  ] });
5594
- return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: mode === "toolbar" ? "mb-6" : "flex flex-col gap-2", children: [
5595
- shouldShowToolbar && /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "flex flex-col gap-3 md:flex-row md:items-center md:justify-between", children: [
5596
- showSearchBar && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "w-full max-w-xl", children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
5759
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: mode === "toolbar" ? "mb-6" : "flex flex-col gap-2", children: [
5760
+ shouldShowToolbar && /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "flex flex-col gap-3 md:flex-row md:items-center md:justify-between", children: [
5761
+ showSearchBar && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "w-full max-w-xl", children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
5597
5762
  InputControl_default,
5598
5763
  {
5599
5764
  name: "searchText",
@@ -5604,9 +5769,9 @@ var init_DataBindingControls = __esm({
5604
5769
  inputClasses: "!mt-0"
5605
5770
  }
5606
5771
  ) }),
5607
- hasSortControls && /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "flex items-center gap-2 text-sm", children: [
5608
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { className: "font-medium", children: "Sort by" }),
5609
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
5772
+ hasSortControls && /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "flex items-center gap-2 text-sm", children: [
5773
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("span", { className: "font-medium", children: "Sort by" }),
5774
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
5610
5775
  InputControl_default,
5611
5776
  {
5612
5777
  name: "sortOptions",
@@ -5627,10 +5792,10 @@ var init_DataBindingControls = __esm({
5627
5792
  )
5628
5793
  ] })
5629
5794
  ] }),
5630
- shouldShowFacets && facetGroups.length === 1 && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("nav", { "aria-label": `${humanize(facetGroups[0][0])} filters`, children: renderFacetLinks(facetGroups[0][0], facetGroups[0][1]) }),
5631
- shouldShowFacets && facetGroups.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "flex flex-col gap-2", children: facetGroups.map(([field, values]) => /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("details", { className: "border-b", open: true, children: [
5632
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("summary", { className: "cursor-pointer font-semibold", children: humanize(field) }),
5633
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "p-2", children: renderFacetLinks(field, values, true) })
5795
+ shouldShowFacets && facetGroups.length === 1 && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("nav", { "aria-label": `${humanize(facetGroups[0][0])} filters`, children: renderFacetLinks(facetGroups[0][0], facetGroups[0][1]) }),
5796
+ shouldShowFacets && facetGroups.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "flex flex-col gap-2", children: facetGroups.map(([field, values]) => /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("details", { className: "border-b", open: true, children: [
5797
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("summary", { className: "cursor-pointer font-semibold", children: humanize(field) }),
5798
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "p-2", children: renderFacetLinks(field, values, true) })
5634
5799
  ] }, field)) })
5635
5800
  ] });
5636
5801
  };
@@ -5643,13 +5808,13 @@ var Slider_exports = {};
5643
5808
  __export(Slider_exports, {
5644
5809
  default: () => Slider_default
5645
5810
  });
5646
- var import_react61, import_jsx_runtime86, Slider, ArrowButton, ProgressPill, Slider_default;
5811
+ var import_react61, import_jsx_runtime87, Slider, ArrowButton, ProgressPill, Slider_default;
5647
5812
  var init_Slider = __esm({
5648
5813
  "src/components/Slider.tsx"() {
5649
5814
  "use strict";
5650
5815
  "use client";
5651
5816
  import_react61 = __toESM(require("react"));
5652
- import_jsx_runtime86 = require("react/jsx-runtime");
5817
+ import_jsx_runtime87 = require("react/jsx-runtime");
5653
5818
  Slider = ({
5654
5819
  children,
5655
5820
  slidesToShow = 4,
@@ -5746,7 +5911,7 @@ var init_Slider = __esm({
5746
5911
  if (!import_react61.default.isValidElement(child)) return null;
5747
5912
  const childProps = child.props;
5748
5913
  const mergedClassName = `${childProps.className ?? ""} w-full`.trim();
5749
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
5914
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
5750
5915
  "div",
5751
5916
  {
5752
5917
  className: `flex-none ${scaleOnHover ? "group hover:z-50" : ""} relative`,
@@ -5769,14 +5934,14 @@ var init_Slider = __esm({
5769
5934
  return "bottom-4";
5770
5935
  }
5771
5936
  };
5772
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
5937
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(
5773
5938
  "div",
5774
5939
  {
5775
5940
  className: `relative w-full overflow-hidden ${className}`,
5776
5941
  onMouseEnter: handleMouseEnter,
5777
5942
  onMouseLeave: handleMouseLeave,
5778
5943
  children: [
5779
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
5944
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
5780
5945
  "div",
5781
5946
  {
5782
5947
  className: "flex h-full",
@@ -5787,18 +5952,18 @@ var init_Slider = __esm({
5787
5952
  children: slides
5788
5953
  }
5789
5954
  ),
5790
- show_arrows && /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(import_jsx_runtime86.Fragment, { children: [
5791
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
5955
+ show_arrows && /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(import_jsx_runtime87.Fragment, { children: [
5956
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
5792
5957
  ArrowButton,
5793
5958
  {
5794
5959
  direction: "left",
5795
5960
  onClick: prevSlide,
5796
5961
  visible: infinite_scroll || currentSlide > 0,
5797
5962
  className: arrowClassName,
5798
- children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: "w-6 h-6", children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M15.75 19.5 8.25 12l7.5-7.5" }) })
5963
+ children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: "w-6 h-6", children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M15.75 19.5 8.25 12l7.5-7.5" }) })
5799
5964
  }
5800
5965
  ),
5801
- /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
5966
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(
5802
5967
  ArrowButton,
5803
5968
  {
5804
5969
  direction: "right",
@@ -5806,13 +5971,13 @@ var init_Slider = __esm({
5806
5971
  visible: infinite_scroll || currentSlide < maxSlide,
5807
5972
  className: arrowClassName,
5808
5973
  children: [
5809
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: "w-6 h-6", children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "m8.25 4.5 7.5 7.5-7.5 7.5" }) }),
5974
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: "w-6 h-6", children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "m8.25 4.5 7.5 7.5-7.5 7.5" }) }),
5810
5975
  " "
5811
5976
  ]
5812
5977
  }
5813
5978
  )
5814
5979
  ] }),
5815
- show_dots && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: `absolute left-1/2 -translate-x-1/2 flex justify-center space-x-1.5 ${getProgressPositionClass()}`, children: Array.from({ length: totalSlides }).map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
5980
+ show_dots && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: `absolute left-1/2 -translate-x-1/2 flex justify-center space-x-1.5 ${getProgressPositionClass()}`, children: Array.from({ length: totalSlides }).map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
5816
5981
  ProgressPill,
5817
5982
  {
5818
5983
  active: index === currentSlide,
@@ -5838,7 +6003,7 @@ var init_Slider = __esm({
5838
6003
  visible,
5839
6004
  children,
5840
6005
  className = ""
5841
- }) => /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
6006
+ }) => /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
5842
6007
  "button",
5843
6008
  {
5844
6009
  className: `
@@ -5925,7 +6090,7 @@ var init_Slider = __esm({
5925
6090
  const renderProgressBar = () => {
5926
6091
  if (style === "modern" && isActive || style === "cumulative" && shouldShowProgress) {
5927
6092
  const displayProgress = style === "cumulative" && isFilled ? 100 : progress;
5928
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
6093
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
5929
6094
  "div",
5930
6095
  {
5931
6096
  className: `absolute top-0 left-0 h-full rounded-full ${style === "cumulative" && isFilled ? activeClassName || "bg-white" : activeClassName || "bg-white"} transition-all duration-50 ease-linear`,
@@ -5937,7 +6102,7 @@ var init_Slider = __esm({
5937
6102
  };
5938
6103
  const renderCumulativeFill = () => {
5939
6104
  if (style === "cumulative" && isFilled && !isActive) {
5940
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
6105
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
5941
6106
  "div",
5942
6107
  {
5943
6108
  className: `absolute top-0 left-0 h-full rounded-full ${activeClassName || "bg-white"} transition-all duration-300`,
@@ -5947,7 +6112,7 @@ var init_Slider = __esm({
5947
6112
  }
5948
6113
  return null;
5949
6114
  };
5950
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
6115
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(
5951
6116
  "button",
5952
6117
  {
5953
6118
  className: `${baseClasses} ${getStyleClasses()}`,
@@ -6713,7 +6878,7 @@ var CommentRenderer = (0, import_dynamic7.default)(() => Promise.resolve().then(
6713
6878
  var Commentrenderer_default = CommentRenderer;
6714
6879
 
6715
6880
  // src/components/controls/view/ViewControl.tsx
6716
- var import_jsx_runtime38 = require("react/jsx-runtime");
6881
+ var import_jsx_runtime39 = require("react/jsx-runtime");
6717
6882
  var ViewControl = (props) => {
6718
6883
  const ControlComponents = {
6719
6884
  [ViewControlTypes_default.lineText]: LineTextView_default,
@@ -6744,12 +6909,12 @@ var ViewControl = (props) => {
6744
6909
  [ViewControlTypes_default.commentRenderer]: Commentrenderer_default
6745
6910
  };
6746
6911
  const SelectedControlComponent = props.controlType ? ControlComponents[props.controlType] : void 0;
6747
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_react26.default.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
6912
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_react26.default.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
6748
6913
  };
6749
6914
  var ViewControl_default = ViewControl;
6750
6915
 
6751
6916
  // src/components/pageRenderingEngine/nodes/DatafieldNode.tsx
6752
- var import_jsx_runtime39 = require("react/jsx-runtime");
6917
+ var import_jsx_runtime40 = require("react/jsx-runtime");
6753
6918
  function getNestedProperty(obj, path) {
6754
6919
  if (!obj || !path) return null;
6755
6920
  if (path.includes(".")) {
@@ -6762,7 +6927,7 @@ function getNestedProperty(obj, path) {
6762
6927
  }
6763
6928
  const value = obj[path];
6764
6929
  if (Array.isArray(value)) {
6765
- return value.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { children: String(item) }, index));
6930
+ return value.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { children: String(item) }, index));
6766
6931
  }
6767
6932
  return value;
6768
6933
  }
@@ -6825,7 +6990,7 @@ var DatafieldNode = (props) => {
6825
6990
  const dataType = props.node.dataType;
6826
6991
  if (isEmptyValue) return null;
6827
6992
  if (dataType === "rawContent") {
6828
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
6993
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
6829
6994
  PageBodyRenderer_default,
6830
6995
  {
6831
6996
  rawBody: String(value ?? `@databound[${fieldName}]`),
@@ -6841,13 +7006,13 @@ var DatafieldNode = (props) => {
6841
7006
  }
6842
7007
  );
6843
7008
  }
6844
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
7009
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
6845
7010
  "span",
6846
7011
  {
6847
7012
  className: `datafield-node ${props.node.format < Formats.length ? Formats[props.node.format] : ""}`,
6848
7013
  style: styles,
6849
7014
  title,
6850
- children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
7015
+ children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
6851
7016
  ViewControl_default,
6852
7017
  {
6853
7018
  controlType: dataType,
@@ -6862,7 +7027,7 @@ var DatafieldNode = (props) => {
6862
7027
  var DatafieldNode_default = DatafieldNode;
6863
7028
 
6864
7029
  // src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
6865
- var import_jsx_runtime40 = require("react/jsx-runtime");
7030
+ var import_jsx_runtime41 = require("react/jsx-runtime");
6866
7031
  var ParagraphNode = (props) => {
6867
7032
  const NodeTypes2 = {
6868
7033
  ["text"]: TextNode_default,
@@ -6882,9 +7047,9 @@ var ParagraphNode = (props) => {
6882
7047
  const isInlineOnlyParent = props.parentTag === "summary";
6883
7048
  const hasChildren = props.node.children && props.node.children.length > 0;
6884
7049
  if (isInlineOnlyParent) {
6885
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_jsx_runtime40.Fragment, { children: hasChildren && props.node.children.map((node, index) => {
7050
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_jsx_runtime41.Fragment, { children: hasChildren && props.node.children.map((node, index) => {
6886
7051
  const SelectedNode = NodeTypes2[node.type];
6887
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_react27.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
7052
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_react27.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
6888
7053
  SelectedNode,
6889
7054
  {
6890
7055
  node,
@@ -6897,10 +7062,10 @@ var ParagraphNode = (props) => {
6897
7062
  ) }, index);
6898
7063
  }) });
6899
7064
  }
6900
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: " " + formatClasses, children: [
7065
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: " " + formatClasses, children: [
6901
7066
  hasChildren && props.node.children.map((node, index) => {
6902
7067
  const SelectedNode = NodeTypes2[node.type];
6903
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_react27.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
7068
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_react27.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
6904
7069
  SelectedNode,
6905
7070
  {
6906
7071
  node,
@@ -6912,14 +7077,14 @@ var ParagraphNode = (props) => {
6912
7077
  }
6913
7078
  ) }, index);
6914
7079
  }),
6915
- !hasChildren && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "py-1.5 lg:py-2" })
7080
+ !hasChildren && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "py-1.5 lg:py-2" })
6916
7081
  ] });
6917
7082
  };
6918
7083
  var ParagraphNode_default = ParagraphNode;
6919
7084
 
6920
7085
  // src/components/pageRenderingEngine/nodes/HeadingNode.tsx
6921
7086
  var import_react28 = __toESM(require("react"));
6922
- var import_jsx_runtime41 = require("react/jsx-runtime");
7087
+ var import_jsx_runtime42 = require("react/jsx-runtime");
6923
7088
  var HeadingNode = (props) => {
6924
7089
  const NodeTypes2 = {
6925
7090
  ["text"]: TextNode_default,
@@ -6935,12 +7100,12 @@ var HeadingNode = (props) => {
6935
7100
  {
6936
7101
  }
6937
7102
  const formatClasses = FormatClass[props.node.format] || "";
6938
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_jsx_runtime41.Fragment, { children: import_react28.default.createElement(
7103
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_jsx_runtime42.Fragment, { children: import_react28.default.createElement(
6939
7104
  HeadingTag,
6940
7105
  { className: formatClasses },
6941
7106
  props.node.children && props.node.children.map((childNode, index) => {
6942
7107
  const SelectedNode = NodeTypes2[childNode.type];
6943
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_react28.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(SelectedNode, { node: childNode, dataitem: props.dataitem, session: props.session, apiBaseUrl: props.apiBaseUrl, assetBaseUrl: props.assetBaseUrl, routeParameters: props.routeParameters }) }, index);
7108
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_react28.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(SelectedNode, { node: childNode, dataitem: props.dataitem, session: props.session, apiBaseUrl: props.apiBaseUrl, assetBaseUrl: props.assetBaseUrl, routeParameters: props.routeParameters }) }, index);
6944
7109
  })
6945
7110
  ) });
6946
7111
  };
@@ -6951,7 +7116,7 @@ var import_react30 = __toESM(require("react"));
6951
7116
 
6952
7117
  // src/components/pageRenderingEngine/nodes/ListItemNode.tsx
6953
7118
  var import_react29 = __toESM(require("react"));
6954
- var import_jsx_runtime42 = require("react/jsx-runtime");
7119
+ var import_jsx_runtime43 = require("react/jsx-runtime");
6955
7120
  var ListItemNode = (props) => {
6956
7121
  const NodeTypes2 = {
6957
7122
  text: TextNode_default,
@@ -6968,37 +7133,37 @@ var ListItemNode = (props) => {
6968
7133
  liStyle.fontSize = match[1].trim();
6969
7134
  }
6970
7135
  }
6971
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("li", { style: liStyle, children: props.node.children && props.node.children.map((node, index) => {
7136
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("li", { style: liStyle, children: props.node.children && props.node.children.map((node, index) => {
6972
7137
  const SelectedNode = NodeTypes2[node.type];
6973
7138
  if (node.type === "linebreak") {
6974
7139
  if (!foundFirstBreak) {
6975
7140
  foundFirstBreak = true;
6976
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", {}, index);
7141
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", {}, index);
6977
7142
  } else {
6978
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "py-1 lg:py-2" }, index);
7143
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "py-1 lg:py-2" }, index);
6979
7144
  }
6980
7145
  } else {
6981
7146
  foundFirstBreak = false;
6982
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_react29.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
7147
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react29.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
6983
7148
  }
6984
7149
  }) });
6985
7150
  };
6986
7151
  var ListItemNode_default = ListItemNode;
6987
7152
 
6988
7153
  // src/components/pageRenderingEngine/nodes/ListNode.tsx
6989
- var import_jsx_runtime43 = require("react/jsx-runtime");
7154
+ var import_jsx_runtime44 = require("react/jsx-runtime");
6990
7155
  var ListNode = (props) => {
6991
7156
  const NodeTypes2 = {
6992
7157
  listitem: ListItemNode_default
6993
7158
  };
6994
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_react30.default.Fragment, { children: [
6995
- props.node.listType == "bullet" && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("ul", { children: props.node.children && props.node.children.map((node, index) => {
7159
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_react30.default.Fragment, { children: [
7160
+ props.node.listType == "bullet" && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("ul", { children: props.node.children && props.node.children.map((node, index) => {
6996
7161
  const SelectedNode = NodeTypes2[node.type];
6997
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react30.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
7162
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react30.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
6998
7163
  }) }),
6999
- props.node.listType == "number" && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("ol", { children: props.node.children && props.node.children.map((node, index) => {
7164
+ props.node.listType == "number" && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("ol", { children: props.node.children && props.node.children.map((node, index) => {
7000
7165
  const SelectedNode = NodeTypes2[node.type];
7001
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react30.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
7166
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react30.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
7002
7167
  }) })
7003
7168
  ] });
7004
7169
  };
@@ -7006,16 +7171,16 @@ var ListNode_default = ListNode;
7006
7171
 
7007
7172
  // src/components/pageRenderingEngine/nodes/QuoteNode.tsx
7008
7173
  var import_react31 = __toESM(require("react"));
7009
- var import_jsx_runtime44 = require("react/jsx-runtime");
7174
+ var import_jsx_runtime45 = require("react/jsx-runtime");
7010
7175
  var QuoteNode = (props) => {
7011
7176
  const NodeTypes2 = {
7012
7177
  ["text"]: TextNode_default,
7013
7178
  ["linebreak"]: LineBreakNode_default,
7014
7179
  ["link"]: LinkNode_default
7015
7180
  };
7016
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("blockquote", { children: props.node.children && props.node.children.map((node, index) => {
7181
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("blockquote", { children: props.node.children && props.node.children.map((node, index) => {
7017
7182
  const SelectedNode = NodeTypes2[node.type];
7018
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react31.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SelectedNode, { node, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
7183
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react31.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SelectedNode, { node, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
7019
7184
  }) });
7020
7185
  };
7021
7186
  var QuoteNode_default = QuoteNode;
@@ -7023,11 +7188,11 @@ var QuoteNode_default = QuoteNode;
7023
7188
  // src/components/pageRenderingEngine/nodes/CodeNode.tsx
7024
7189
  var import_react33 = __toESM(require("react"));
7025
7190
  var import_dynamic8 = __toESM(require("next/dynamic"));
7026
- var import_jsx_runtime46 = require("react/jsx-runtime");
7191
+ var import_jsx_runtime47 = require("react/jsx-runtime");
7027
7192
  var CopyButton2 = (0, import_dynamic8.default)(() => Promise.resolve().then(() => (init_CopyButton(), CopyButton_exports)), {
7028
7193
  ssr: false,
7029
7194
  // optional: fallback UI while loading
7030
- loading: () => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "text-gray-400 text-xs", children: "Copy" })
7195
+ loading: () => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "text-gray-400 text-xs", children: "Copy" })
7031
7196
  });
7032
7197
  var CodeNode = (props) => {
7033
7198
  const NodeTypes2 = {
@@ -7041,14 +7206,14 @@ var CodeNode = (props) => {
7041
7206
  if (node.type === "link") return node.text || node.url || "";
7042
7207
  return "";
7043
7208
  }).join("") ?? "";
7044
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { children: [
7045
- /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "flex items-center relative bg-neutral-strong px-4 py-3 text-xs font-sans justify-between rounded-t-md ", children: [
7046
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { children: "Code Snippet" }),
7047
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(CopyButton2, { text: textContent })
7209
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { children: [
7210
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex items-center relative bg-neutral-strong px-4 py-3 text-xs font-sans justify-between rounded-t-md ", children: [
7211
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { children: "Code Snippet" }),
7212
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(CopyButton2, { text: textContent })
7048
7213
  ] }),
7049
- /* @__PURE__ */ (0, import_jsx_runtime46.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) => {
7214
+ /* @__PURE__ */ (0, import_jsx_runtime47.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) => {
7050
7215
  const SelectedNode = NodeTypes2[node.type];
7051
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_react33.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
7216
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_react33.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
7052
7217
  SelectedNode,
7053
7218
  {
7054
7219
  node,
@@ -7063,15 +7228,15 @@ var CodeNode = (props) => {
7063
7228
  var CodeNode_default = CodeNode;
7064
7229
 
7065
7230
  // src/components/pageRenderingEngine/nodes/HorizontalRuleNode.tsx
7066
- var import_jsx_runtime47 = require("react/jsx-runtime");
7231
+ var import_jsx_runtime48 = require("react/jsx-runtime");
7067
7232
  var HorizontalRuleNode = () => {
7068
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("hr", {});
7233
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("hr", {});
7069
7234
  };
7070
7235
  var HorizontalRuleNode_default = HorizontalRuleNode;
7071
7236
 
7072
7237
  // src/components/pageRenderingEngine/nodes/WidgetNode.tsx
7073
7238
  var import_react34 = __toESM(require("react"));
7074
- var import_jsx_runtime48 = require("react/jsx-runtime");
7239
+ var import_jsx_runtime49 = require("react/jsx-runtime");
7075
7240
  var WidgetNode = (props) => {
7076
7241
  const getWidgetParameters = () => {
7077
7242
  const widgetInputParameters = {
@@ -7135,7 +7300,7 @@ var WidgetNode = (props) => {
7135
7300
  };
7136
7301
  const widgetCode = props.node?.widgetCode;
7137
7302
  if (!widgetCode) {
7138
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_jsx_runtime48.Fragment, { children: "Invalid widget" });
7303
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_jsx_runtime49.Fragment, { children: "Invalid widget" });
7139
7304
  }
7140
7305
  const widgetParams = getWidgetParameters();
7141
7306
  const WidgetRenderer = props.widgetRenderer;
@@ -7144,7 +7309,7 @@ var WidgetNode = (props) => {
7144
7309
  }
7145
7310
  return (
7146
7311
  // eslint-disable-next-line react-hooks/static-components
7147
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_react34.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
7312
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_react34.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
7148
7313
  WidgetRenderer,
7149
7314
  {
7150
7315
  params: widgetParams,
@@ -7166,7 +7331,7 @@ var import_react62 = __toESM(require("react"));
7166
7331
 
7167
7332
  // src/components/pageRenderingEngine/nodes/EmbedNode.tsx
7168
7333
  var import_dynamic9 = __toESM(require("next/dynamic"));
7169
- var import_jsx_runtime51 = require("react/jsx-runtime");
7334
+ var import_jsx_runtime52 = require("react/jsx-runtime");
7170
7335
  var IframeClient2 = (0, import_dynamic9.default)(() => Promise.resolve().then(() => (init_IframeClient(), IframeClient_exports)), {
7171
7336
  ssr: false
7172
7337
  });
@@ -7179,7 +7344,7 @@ var EmbedNode = (props) => {
7179
7344
  } else {
7180
7345
  src = props.node.embedSrc;
7181
7346
  }
7182
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "aspect-video", children: src && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(IframeClient2, { src }) });
7347
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "aspect-video", children: src && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(IframeClient2, { src }) });
7183
7348
  };
7184
7349
  var EmbedNode_default = EmbedNode;
7185
7350
 
@@ -7379,10 +7544,10 @@ var PathUtility = class {
7379
7544
  var PathUtility_default = new PathUtility();
7380
7545
 
7381
7546
  // src/components/NoDataFound.tsx
7382
- var import_jsx_runtime52 = require("react/jsx-runtime");
7547
+ var import_jsx_runtime53 = require("react/jsx-runtime");
7383
7548
  var NoDataFound = () => {
7384
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center bg-neutral-weak", children: [
7385
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "mb-5", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "mx-auto w-20 h-20 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
7549
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center bg-neutral-weak", children: [
7550
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "mb-5", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "mx-auto w-20 h-20 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
7386
7551
  "svg",
7387
7552
  {
7388
7553
  className: "w-10 h-10",
@@ -7390,7 +7555,7 @@ var NoDataFound = () => {
7390
7555
  stroke: "currentColor",
7391
7556
  viewBox: "0 0 24 24",
7392
7557
  xmlns: "http://www.w3.org/2000/svg",
7393
- children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
7558
+ children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
7394
7559
  "path",
7395
7560
  {
7396
7561
  strokeLinecap: "round",
@@ -7401,8 +7566,8 @@ var NoDataFound = () => {
7401
7566
  )
7402
7567
  }
7403
7568
  ) }) }),
7404
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("h3", { className: "text-lg font-medium mb-2", children: "No data available" }),
7405
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("p", { className: " max-w-sm mb-0", children: "No records found. Data may be empty or not available at the moment." })
7569
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("h3", { className: "text-lg font-medium mb-2", children: "No data available" }),
7570
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("p", { className: " max-w-sm mb-0", children: "No records found. Data may be empty or not available at the moment." })
7406
7571
  ] });
7407
7572
  };
7408
7573
  var NoDataFound_default = NoDataFound;
@@ -7410,7 +7575,7 @@ var NoDataFound_default = NoDataFound;
7410
7575
  // src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
7411
7576
  init_AssetUtility();
7412
7577
  var import_dynamic10 = __toESM(require("next/dynamic"));
7413
- var import_jsx_runtime53 = require("react/jsx-runtime");
7578
+ var import_jsx_runtime54 = require("react/jsx-runtime");
7414
7579
  var HlsPlayer4 = (0, import_dynamic10.default)(() => Promise.resolve().then(() => (init_HlsPlayer(), HlsPlayer_exports)), { ssr: false });
7415
7580
  var deviceToMediaQuery = (device) => {
7416
7581
  switch (device) {
@@ -7566,8 +7731,8 @@ var ImageGalleryNode = (props) => {
7566
7731
  right: "justify-end"
7567
7732
  };
7568
7733
  const formatClasses = FormatClass[props.node.format || ""] || "";
7569
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_jsx_runtime53.Fragment, { children: [
7570
- hlsSources.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_jsx_runtime53.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
7734
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_jsx_runtime54.Fragment, { children: [
7735
+ hlsSources.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_jsx_runtime54.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
7571
7736
  HlsPlayer4,
7572
7737
  {
7573
7738
  sources: hlsSources,
@@ -7582,7 +7747,7 @@ var ImageGalleryNode = (props) => {
7582
7747
  styles: hlsStyles
7583
7748
  }
7584
7749
  ) }),
7585
- (staticFallback || staticSources.length > 0) && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_jsx_runtime53.Fragment, { children: staticFallback ? /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("picture", { children: [
7750
+ (staticFallback || staticSources.length > 0) && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_jsx_runtime54.Fragment, { children: staticFallback ? /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("picture", { children: [
7586
7751
  DEVICE_ORDER.map((deviceKey) => {
7587
7752
  const match = staticSources.find(
7588
7753
  (img) => img.device === deviceKey
@@ -7598,7 +7763,7 @@ var ImageGalleryNode = (props) => {
7598
7763
  if (!srcUrl) {
7599
7764
  return null;
7600
7765
  }
7601
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
7766
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
7602
7767
  "source",
7603
7768
  {
7604
7769
  media: deviceToMediaQuery(match.device),
@@ -7623,7 +7788,7 @@ var ImageGalleryNode = (props) => {
7623
7788
  if (img.borderRadius) {
7624
7789
  styles.borderRadius = img.borderRadius;
7625
7790
  }
7626
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
7791
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
7627
7792
  "img",
7628
7793
  {
7629
7794
  loading: "lazy",
@@ -7638,7 +7803,7 @@ var ImageGalleryNode = (props) => {
7638
7803
  })()
7639
7804
  ] }) : (
7640
7805
  /* Case 2: Only device-specific images exist */
7641
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_jsx_runtime53.Fragment, { children: staticSources.map((img, index) => {
7806
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_jsx_runtime54.Fragment, { children: staticSources.map((img, index) => {
7642
7807
  const resolved = resolveImage(img);
7643
7808
  const imageUrl = resolved?.imageUrl;
7644
7809
  if (!imageUrl) {
@@ -7665,7 +7830,7 @@ var ImageGalleryNode = (props) => {
7665
7830
  default:
7666
7831
  display = "block";
7667
7832
  }
7668
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
7833
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
7669
7834
  "img",
7670
7835
  {
7671
7836
  loading: "lazy",
@@ -7806,28 +7971,28 @@ var shouldRenderContainer = (node, dataItem, session) => {
7806
7971
 
7807
7972
  // src/components/pageRenderingEngine/nodes/DocumentNode.tsx
7808
7973
  init_AssetUtility();
7809
- var import_jsx_runtime54 = require("react/jsx-runtime");
7974
+ var import_jsx_runtime55 = require("react/jsx-runtime");
7810
7975
  var getNestedValue5 = (obj, path) => {
7811
7976
  if (!obj || !path) return void 0;
7812
7977
  return path.split(".").reduce((current, key) => {
7813
7978
  return current && current[key] !== void 0 ? current[key] : void 0;
7814
7979
  }, obj);
7815
7980
  };
7816
- var PdfIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
7981
+ var PdfIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
7817
7982
  "svg",
7818
7983
  {
7819
7984
  xmlns: "http://www.w3.org/2000/svg",
7820
7985
  viewBox: "0 0 48 48",
7821
7986
  className: "w-10 h-10",
7822
7987
  children: [
7823
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
7988
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
7824
7989
  "path",
7825
7990
  {
7826
7991
  fill: "#e53935",
7827
7992
  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"
7828
7993
  }
7829
7994
  ),
7830
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
7995
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
7831
7996
  "path",
7832
7997
  {
7833
7998
  fill: "#fff",
@@ -7837,55 +8002,55 @@ var PdfIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
7837
8002
  ]
7838
8003
  }
7839
8004
  );
7840
- var ExcelIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
8005
+ var ExcelIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
7841
8006
  "svg",
7842
8007
  {
7843
8008
  xmlns: "http://www.w3.org/2000/svg",
7844
8009
  viewBox: "0 0 48 48",
7845
8010
  className: "w-10 h-10",
7846
8011
  children: [
7847
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
8012
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
7848
8013
  "path",
7849
8014
  {
7850
8015
  fill: "#169154",
7851
8016
  d: "M29,6H15.744C14.781,6,14,6.781,14,7.744v7.259h15V6z"
7852
8017
  }
7853
8018
  ),
7854
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
8019
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
7855
8020
  "path",
7856
8021
  {
7857
8022
  fill: "#18482a",
7858
8023
  d: "M14,33.054v7.202C14,41.219,14.781,42,15.743,42H29v-8.946H14z"
7859
8024
  }
7860
8025
  ),
7861
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("path", { fill: "#0c8045", d: "M14 15.003H29V24.005000000000003H14z" }),
7862
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("path", { fill: "#17472a", d: "M14 24.005H29V33.055H14z" }),
7863
- /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("g", { children: [
7864
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
8026
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("path", { fill: "#0c8045", d: "M14 15.003H29V24.005000000000003H14z" }),
8027
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("path", { fill: "#17472a", d: "M14 24.005H29V33.055H14z" }),
8028
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("g", { children: [
8029
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
7865
8030
  "path",
7866
8031
  {
7867
8032
  fill: "#29c27f",
7868
8033
  d: "M42.256,6H29v9.003h15V7.744C44,6.781,43.219,6,42.256,6z"
7869
8034
  }
7870
8035
  ),
7871
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
8036
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
7872
8037
  "path",
7873
8038
  {
7874
8039
  fill: "#27663f",
7875
8040
  d: "M29,33.054V42h13.257C43.219,42,44,41.219,44,40.257v-7.202H29z"
7876
8041
  }
7877
8042
  ),
7878
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("path", { fill: "#19ac65", d: "M29 15.003H44V24.005000000000003H29z" }),
7879
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("path", { fill: "#129652", d: "M29 24.005H44V33.055H29z" })
8043
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("path", { fill: "#19ac65", d: "M29 15.003H44V24.005000000000003H29z" }),
8044
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("path", { fill: "#129652", d: "M29 24.005H44V33.055H29z" })
7880
8045
  ] }),
7881
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
8046
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
7882
8047
  "path",
7883
8048
  {
7884
8049
  fill: "#0c7238",
7885
8050
  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"
7886
8051
  }
7887
8052
  ),
7888
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
8053
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
7889
8054
  "path",
7890
8055
  {
7891
8056
  fill: "#fff",
@@ -7895,7 +8060,7 @@ var ExcelIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
7895
8060
  ]
7896
8061
  }
7897
8062
  );
7898
- var WordIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
8063
+ var WordIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
7899
8064
  "svg",
7900
8065
  {
7901
8066
  xmlns: "http://www.w3.org/2000/svg",
@@ -7903,14 +8068,14 @@ var WordIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
7903
8068
  className: "w-10 h-10",
7904
8069
  baseProfile: "basic",
7905
8070
  children: [
7906
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
8071
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
7907
8072
  "path",
7908
8073
  {
7909
8074
  fill: "#283593",
7910
8075
  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"
7911
8076
  }
7912
8077
  ),
7913
- /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
8078
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
7914
8079
  "linearGradient",
7915
8080
  {
7916
8081
  id: "qh2LT5tehRDFkLLfb-odWa",
@@ -7921,19 +8086,19 @@ var WordIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
7921
8086
  gradientTransform: "translate(0 -339.89)",
7922
8087
  gradientUnits: "userSpaceOnUse",
7923
8088
  children: [
7924
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("stop", { offset: "0", "stop-color": "#66c0ff" }),
7925
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("stop", { offset: ".26", "stop-color": "#0094f0" })
8089
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("stop", { offset: "0", "stop-color": "#66c0ff" }),
8090
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("stop", { offset: ".26", "stop-color": "#0094f0" })
7926
8091
  ]
7927
8092
  }
7928
8093
  ),
7929
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
8094
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
7930
8095
  "path",
7931
8096
  {
7932
8097
  fill: "url(#qh2LT5tehRDFkLLfb-odWa)",
7933
8098
  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"
7934
8099
  }
7935
8100
  ),
7936
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
8101
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
7937
8102
  "path",
7938
8103
  {
7939
8104
  fill: "#1e88e5",
@@ -7941,21 +8106,21 @@ var WordIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
7941
8106
  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"
7942
8107
  }
7943
8108
  ),
7944
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
8109
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
7945
8110
  "path",
7946
8111
  {
7947
8112
  fill: "#00e5ff",
7948
8113
  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"
7949
8114
  }
7950
8115
  ),
7951
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
8116
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
7952
8117
  "path",
7953
8118
  {
7954
8119
  fill: "#1565c0",
7955
8120
  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"
7956
8121
  }
7957
8122
  ),
7958
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
8123
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
7959
8124
  "path",
7960
8125
  {
7961
8126
  fill: "#fff",
@@ -7965,42 +8130,42 @@ var WordIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
7965
8130
  ]
7966
8131
  }
7967
8132
  );
7968
- var StandardIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
8133
+ var StandardIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
7969
8134
  "svg",
7970
8135
  {
7971
8136
  xmlns: "http://www.w3.org/2000/svg",
7972
8137
  viewBox: "0 0 48 48",
7973
8138
  className: "w-10 h-10",
7974
8139
  children: [
7975
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
7976
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" })
8140
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
8141
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" })
7977
8142
  ]
7978
8143
  }
7979
8144
  );
7980
- var PowerPointIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
8145
+ var PowerPointIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
7981
8146
  "svg",
7982
8147
  {
7983
8148
  xmlns: "http://www.w3.org/2000/svg",
7984
8149
  viewBox: "0 0 48 48",
7985
8150
  className: "w-10 h-10",
7986
8151
  children: [
7987
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
8152
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
7988
8153
  "path",
7989
8154
  {
7990
8155
  fill: "#dc4c2c",
7991
8156
  d: "M8,24c0,9.941,8.059,18,18,18s18-8.059,18-18H26H8z"
7992
8157
  }
7993
8158
  ),
7994
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("path", { fill: "#f7a278", d: "M26,6v18h18C44,14.059,35.941,6,26,6z" }),
7995
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("path", { fill: "#c06346", d: "M26,6C16.059,6,8,14.059,8,24h18V6z" }),
7996
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
8159
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("path", { fill: "#f7a278", d: "M26,6v18h18C44,14.059,35.941,6,26,6z" }),
8160
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("path", { fill: "#c06346", d: "M26,6C16.059,6,8,14.059,8,24h18V6z" }),
8161
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
7997
8162
  "path",
7998
8163
  {
7999
8164
  fill: "#9b341f",
8000
8165
  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"
8001
8166
  }
8002
8167
  ),
8003
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
8168
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
8004
8169
  "path",
8005
8170
  {
8006
8171
  fill: "#fff",
@@ -8010,16 +8175,16 @@ var PowerPointIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
8010
8175
  ]
8011
8176
  }
8012
8177
  );
8013
- var TextIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
8178
+ var TextIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
8014
8179
  "svg",
8015
8180
  {
8016
8181
  xmlns: "http://www.w3.org/2000/svg",
8017
8182
  viewBox: "0 0 48 48",
8018
8183
  className: "w-10 h-10",
8019
8184
  children: [
8020
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
8021
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" }),
8022
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
8185
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
8186
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" }),
8187
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
8023
8188
  "path",
8024
8189
  {
8025
8190
  fill: "#1976D2",
@@ -8029,7 +8194,7 @@ var TextIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
8029
8194
  ]
8030
8195
  }
8031
8196
  );
8032
- var ArchiveIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
8197
+ var ArchiveIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
8033
8198
  "svg",
8034
8199
  {
8035
8200
  xmlns: "http://www.w3.org/2000/svg",
@@ -8039,14 +8204,14 @@ var ArchiveIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
8039
8204
  version: "1.0",
8040
8205
  className: "w-10 h-10",
8041
8206
  children: [
8042
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("clipPath", { id: "273d29c8a6", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
8207
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("clipPath", { id: "273d29c8a6", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
8043
8208
  "path",
8044
8209
  {
8045
8210
  d: "M 8.90625 0 L 65.90625 0 L 65.90625 75 L 8.90625 75 Z M 8.90625 0 ",
8046
8211
  "clip-rule": "nonzero"
8047
8212
  }
8048
8213
  ) }) }),
8049
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("g", { "clip-path": "url(#273d29c8a6)", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
8214
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("g", { "clip-path": "url(#273d29c8a6)", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
8050
8215
  "path",
8051
8216
  {
8052
8217
  fill: "#ff9100",
@@ -8055,7 +8220,7 @@ var ArchiveIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
8055
8220
  "fill-rule": "nonzero"
8056
8221
  }
8057
8222
  ) }),
8058
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
8223
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
8059
8224
  "path",
8060
8225
  {
8061
8226
  fill: "#fbe9e7",
@@ -8064,7 +8229,7 @@ var ArchiveIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
8064
8229
  "fill-rule": "nonzero"
8065
8230
  }
8066
8231
  ),
8067
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
8232
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
8068
8233
  "path",
8069
8234
  {
8070
8235
  fill: "#ffe0b2",
@@ -8073,7 +8238,7 @@ var ArchiveIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
8073
8238
  "fill-rule": "nonzero"
8074
8239
  }
8075
8240
  ),
8076
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
8241
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
8077
8242
  "path",
8078
8243
  {
8079
8244
  fill: "#ffe0b2",
@@ -8082,7 +8247,7 @@ var ArchiveIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
8082
8247
  "fill-rule": "nonzero"
8083
8248
  }
8084
8249
  ),
8085
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
8250
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
8086
8251
  "path",
8087
8252
  {
8088
8253
  fill: "#ffe0b2",
@@ -8157,8 +8322,8 @@ var DocumentNode = (props) => {
8157
8322
  }
8158
8323
  }
8159
8324
  if (documents.length === 0) {
8160
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_jsx_runtime54.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "py-4 px-2 bg-neutral-weak border rounded text-center flex flex-col gap-2", children: [
8161
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "mx-auto w-10 h-10 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
8325
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_jsx_runtime55.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: "py-4 px-2 bg-neutral-weak border rounded text-center flex flex-col gap-2", children: [
8326
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "mx-auto w-10 h-10 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
8162
8327
  "svg",
8163
8328
  {
8164
8329
  className: "w-5 h-5",
@@ -8166,7 +8331,7 @@ var DocumentNode = (props) => {
8166
8331
  stroke: "currentColor",
8167
8332
  viewBox: "0 0 24 24",
8168
8333
  xmlns: "http://www.w3.org/2000/svg",
8169
- children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
8334
+ children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
8170
8335
  "path",
8171
8336
  {
8172
8337
  strokeLinecap: "round",
@@ -8177,11 +8342,11 @@ var DocumentNode = (props) => {
8177
8342
  )
8178
8343
  }
8179
8344
  ) }),
8180
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "text-sm font-medium", children: "No documents found" }),
8181
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "text-xs", children: "No records found. Data may be empty or not available at the moment." })
8345
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "text-sm font-medium", children: "No documents found" }),
8346
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "text-xs", children: "No records found. Data may be empty or not available at the moment." })
8182
8347
  ] }) });
8183
8348
  }
8184
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "", children: documents.map((doc, index) => {
8349
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "", children: documents.map((doc, index) => {
8185
8350
  const documentUrl = AssetUtility_default.resolveUrl(
8186
8351
  props.assetBaseUrl,
8187
8352
  doc.assetUrl
@@ -8199,16 +8364,16 @@ var DocumentNode = (props) => {
8199
8364
  }
8200
8365
  }
8201
8366
  const { Icon: Icon2, extLabel } = getFileDetails2(documentUrl);
8202
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
8367
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
8203
8368
  "div",
8204
8369
  {
8205
8370
  className: `flex items-center justify-between py-4 bg-default gap-4 ${index !== 0 ? "border-t" : ""}`,
8206
8371
  children: [
8207
- /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "flex items-center space-x-4", children: [
8208
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "flex items-center justify-center p-2 rounded bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Icon2, {}) }),
8209
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "flex items-baseline space-x-2", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("h4", { className: "text-base font-semibold", children: documentTitle }) })
8372
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: "flex items-center space-x-4", children: [
8373
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "flex items-center justify-center p-2 rounded bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Icon2, {}) }),
8374
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "flex items-baseline space-x-2", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("h4", { className: "text-base font-semibold", children: documentTitle }) })
8210
8375
  ] }),
8211
- /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
8376
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
8212
8377
  "a",
8213
8378
  {
8214
8379
  href: documentUrl,
@@ -8216,7 +8381,7 @@ var DocumentNode = (props) => {
8216
8381
  rel: "noopener noreferrer",
8217
8382
  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",
8218
8383
  children: [
8219
- /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
8384
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
8220
8385
  "svg",
8221
8386
  {
8222
8387
  className: "w-4 h-4 mr-2",
@@ -8224,7 +8389,7 @@ var DocumentNode = (props) => {
8224
8389
  stroke: "currentColor",
8225
8390
  viewBox: "0 0 24 24",
8226
8391
  children: [
8227
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
8392
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
8228
8393
  "path",
8229
8394
  {
8230
8395
  strokeLinecap: "round",
@@ -8233,7 +8398,7 @@ var DocumentNode = (props) => {
8233
8398
  d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"
8234
8399
  }
8235
8400
  ),
8236
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
8401
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
8237
8402
  "path",
8238
8403
  {
8239
8404
  strokeLinecap: "round",
@@ -8259,13 +8424,13 @@ var DocumentNode_default = DocumentNode;
8259
8424
 
8260
8425
  // src/components/pageRenderingEngine/nodes/GoogleMapNode.tsx
8261
8426
  var import_dynamic11 = __toESM(require("next/dynamic"));
8262
- var import_jsx_runtime55 = require("react/jsx-runtime");
8427
+ var import_jsx_runtime56 = require("react/jsx-runtime");
8263
8428
  var IframeClient3 = (0, import_dynamic11.default)(() => Promise.resolve().then(() => (init_IframeClient(), IframeClient_exports)), {
8264
8429
  ssr: false
8265
8430
  });
8266
8431
  var GoogleMapNode = (props) => {
8267
8432
  let src = props.node.embedUrl;
8268
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "google-map-container", children: src && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
8433
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "google-map-container", children: src && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
8269
8434
  IframeClient3,
8270
8435
  {
8271
8436
  src,
@@ -8277,7 +8442,7 @@ var GoogleMapNode = (props) => {
8277
8442
  var GoogleMapNode_default = GoogleMapNode;
8278
8443
 
8279
8444
  // src/components/pageRenderingEngine/nodes/DivContainer.tsx
8280
- var import_jsx_runtime87 = require("react/jsx-runtime");
8445
+ var import_jsx_runtime88 = require("react/jsx-runtime");
8281
8446
  var Pagination2 = (0, import_dynamic13.default)(() => Promise.resolve().then(() => (init_Pagination(), Pagination_exports)), { ssr: true });
8282
8447
  var DataBindingControls2 = (0, import_dynamic13.default)(() => Promise.resolve().then(() => (init_DataBindingControls(), DataBindingControls_exports)), {
8283
8448
  ssr: true
@@ -8536,7 +8701,7 @@ var DivContainer = async (props) => {
8536
8701
  response = await serviceClient.get(endpoint);
8537
8702
  result = response?.result;
8538
8703
  if (dataBindingProperties.showNoResultsMessage && (result === void 0 || result.length == 0)) {
8539
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(NoDataFound_default, {});
8704
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(NoDataFound_default, {});
8540
8705
  }
8541
8706
  if (dataBindingProperties.childCollectionName && props.dataitem) {
8542
8707
  childCollectionData = getNestedValue6(
@@ -8556,7 +8721,7 @@ var DivContainer = async (props) => {
8556
8721
  }
8557
8722
  const SelectedNode = NodeTypes2[node.type];
8558
8723
  if (!SelectedNode) return null;
8559
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_react62.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
8724
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react62.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
8560
8725
  SelectedNode,
8561
8726
  {
8562
8727
  node,
@@ -8693,7 +8858,7 @@ var DivContainer = async (props) => {
8693
8858
  dataBindingProperties?.showFacets || dataBindingProperties?.showSortOptions || dataBindingProperties?.showSearchBar
8694
8859
  );
8695
8860
  const WrapperComponent = Wrapper;
8696
- const renderedContainer = /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
8861
+ const renderedContainer = /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
8697
8862
  WrapperComponent,
8698
8863
  {
8699
8864
  id: guid,
@@ -8707,11 +8872,11 @@ var DivContainer = async (props) => {
8707
8872
  item,
8708
8873
  idx,
8709
8874
  props.href ? void 0 : item?.links?.view
8710
- )?.map((child, i) => /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_react62.default.Fragment, { children: child }, i)) : renderChildren2(props.node.children, props, item, idx)
8875
+ )?.map((child, i) => /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react62.default.Fragment, { children: child }, i)) : renderChildren2(props.node.children, props, item, idx)
8711
8876
  )
8712
8877
  }
8713
8878
  );
8714
- const paginationControl = dataBindingProperties?.enablePagination ? /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
8879
+ const paginationControl = dataBindingProperties?.enablePagination ? /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
8715
8880
  Pagination2,
8716
8881
  {
8717
8882
  path: props.path,
@@ -8719,15 +8884,15 @@ var DivContainer = async (props) => {
8719
8884
  dataset: response
8720
8885
  }
8721
8886
  ) : null;
8722
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(import_react62.default.Fragment, { children: [
8723
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
8887
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_react62.default.Fragment, { children: [
8888
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
8724
8889
  "style",
8725
8890
  {
8726
8891
  dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS }
8727
8892
  }
8728
8893
  ),
8729
- showDataBindingControls ? /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(import_react62.default.Fragment, { children: [
8730
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
8894
+ showDataBindingControls ? /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_react62.default.Fragment, { children: [
8895
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
8731
8896
  DataBindingControls2,
8732
8897
  {
8733
8898
  mode: "toolbar",
@@ -8739,18 +8904,18 @@ var DivContainer = async (props) => {
8739
8904
  showSearchBar: dataBindingProperties?.showSearchBar
8740
8905
  }
8741
8906
  ),
8742
- /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(
8907
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(
8743
8908
  "div",
8744
8909
  {
8745
8910
  className: dataBindingProperties?.showFacets ? "grid items-start gap-6 lg:grid-cols-[minmax(0,1fr)_18rem]" : void 0,
8746
8911
  children: [
8747
- /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "min-w-0", children: [
8912
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: "min-w-0", children: [
8748
8913
  renderedContainer,
8749
8914
  paginationControl
8750
8915
  ] }),
8751
- dataBindingProperties?.showFacets && /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("aside", { className: "border bg-default p-3 lg:sticky lg:top-[90px] lg:self-start", children: [
8752
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("h2", { className: "mb-2 text-lg font-semibold", children: "Filters" }),
8753
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
8916
+ dataBindingProperties?.showFacets && /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("aside", { className: "border bg-default p-3 lg:sticky lg:top-[90px] lg:self-start", children: [
8917
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("h2", { className: "mb-2 text-lg font-semibold", children: "Filters" }),
8918
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
8754
8919
  DataBindingControls2,
8755
8920
  {
8756
8921
  mode: "facets",
@@ -8764,16 +8929,16 @@ var DivContainer = async (props) => {
8764
8929
  ]
8765
8930
  }
8766
8931
  )
8767
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(import_react62.default.Fragment, { children: [
8932
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_react62.default.Fragment, { children: [
8768
8933
  renderedContainer,
8769
- paginationControl && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { children: paginationControl })
8934
+ paginationControl && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { children: paginationControl })
8770
8935
  ] })
8771
8936
  ] });
8772
8937
  };
8773
8938
  var DivContainer_default = DivContainer;
8774
8939
 
8775
8940
  // src/components/pageRenderingEngine/PageBodyRenderer.tsx
8776
- var import_jsx_runtime88 = require("react/jsx-runtime");
8941
+ var import_jsx_runtime89 = require("react/jsx-runtime");
8777
8942
  var NodeTypes = {
8778
8943
  ["paragraph"]: ParagraphNode_default,
8779
8944
  ["heading"]: HeadingNode_default,
@@ -8811,14 +8976,14 @@ var PageBodyRenderer = (props) => {
8811
8976
  }
8812
8977
  return true;
8813
8978
  };
8814
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react63.default.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
8979
+ return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_react63.default.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
8815
8980
  {
8816
8981
  }
8817
8982
  const SelectedNode = NodeTypes[node.type];
8818
8983
  if (!shouldRenderNode(node)) {
8819
8984
  return null;
8820
8985
  }
8821
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react63.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react63.default.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react63.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
8986
+ return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_react63.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_react63.default.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_react63.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
8822
8987
  SelectedNode,
8823
8988
  {
8824
8989
  node,
@@ -8834,7 +8999,7 @@ var PageBodyRenderer = (props) => {
8834
8999
  device: props.device,
8835
9000
  widgetRenderer: props.widgetRenderer
8836
9001
  }
8837
- ) }) : /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react63.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
9002
+ ) }) : /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_react63.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
8838
9003
  SelectedNode,
8839
9004
  {
8840
9005
  node,