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

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