@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260320071939 → 0.8.1-dev.20260320074145

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/index.mjs CHANGED
@@ -1,5 +1,3 @@
1
- "use client";
2
-
3
1
  // src/components/controls/view/ViewControl.tsx
4
2
  import React11 from "react";
5
3
 
@@ -2914,60 +2912,7 @@ var QuoteNode_default = QuoteNode;
2914
2912
 
2915
2913
  // src/components/pageRenderingEngine/nodes/CodeNode.tsx
2916
2914
  import React42 from "react";
2917
-
2918
- // src/components/CopyButton.tsx
2919
- import { useState as useState8, useRef as useRef3, useEffect as useEffect7 } from "react";
2920
- import { jsx as jsx52, jsxs as jsxs26 } from "react/jsx-runtime";
2921
- function CopyButton({ text }) {
2922
- const [copied, setCopied] = useState8(false);
2923
- const timeoutRef = useRef3(null);
2924
- useEffect7(() => {
2925
- return () => {
2926
- if (timeoutRef.current) clearTimeout(timeoutRef.current);
2927
- };
2928
- }, []);
2929
- const handleCopy = async () => {
2930
- try {
2931
- await navigator.clipboard.writeText(text);
2932
- setCopied(true);
2933
- if (timeoutRef.current) clearTimeout(timeoutRef.current);
2934
- timeoutRef.current = setTimeout(() => setCopied(false), 2e3);
2935
- } catch (err) {
2936
- console.error("Failed to copy: ", err);
2937
- }
2938
- };
2939
- return /* @__PURE__ */ jsxs26(
2940
- "button",
2941
- {
2942
- onClick: handleCopy,
2943
- className: "flex gap-1 items-center hover:text-white transition",
2944
- children: [
2945
- /* @__PURE__ */ jsx52(
2946
- "svg",
2947
- {
2948
- width: "16",
2949
- height: "16",
2950
- viewBox: "0 0 24 24",
2951
- className: "w-4 h-4",
2952
- fill: "currentColor",
2953
- children: /* @__PURE__ */ jsx52(
2954
- "path",
2955
- {
2956
- fillRule: "evenodd",
2957
- clipRule: "evenodd",
2958
- d: "M12 4C10.8954 4 10 4.89543 10 6H14C14 4.89543 13.1046 4 12 4ZM8.53513 4C9.22675 2.8044 10.5194 2 12 2C13.4806 2 14.7733 2.8044 15.4649 4H17C18.6569 4 20 5.34315 20 7V19C20 20.6569 18.6569 22 17 22H7C5.34315 22 4 20.6569 4 19V7C4 5.34315 5.34315 4 7 4H8.53513ZM8 6H7C6.44772 6 6 6.44772 6 7V19C6 19.5523 6.44772 20 7 20H17C17.5523 20 18 19.5523 18 19V7C18 6.44772 17.5523 6 17 6H16C16 7.10457 15.1046 8 14 8H10C8.89543 8 8 7.10457 8 6Z"
2959
- }
2960
- )
2961
- }
2962
- ),
2963
- copied ? "Copied!" : "Copy code"
2964
- ]
2965
- }
2966
- );
2967
- }
2968
-
2969
- // src/components/pageRenderingEngine/nodes/CodeNode.tsx
2970
- import { jsx as jsx53, jsxs as jsxs27 } from "react/jsx-runtime";
2915
+ import { jsx as jsx52 } from "react/jsx-runtime";
2971
2916
  var CodeNode = (props) => {
2972
2917
  const NodeTypes2 = {
2973
2918
  ["text"]: TextNode_default,
@@ -2980,23 +2925,17 @@ var CodeNode = (props) => {
2980
2925
  if (node.type === "link") return node.text || node.url || "";
2981
2926
  return "";
2982
2927
  }).join("") ?? "";
2983
- return /* @__PURE__ */ jsxs27("div", { className: "code-block", children: [
2984
- /* @__PURE__ */ jsxs27("div", { className: "flex items-center relative text-gray-200 bg-gray-800 px-4 py-2.5 text-xs font-sans justify-between rounded-t-md", children: [
2985
- /* @__PURE__ */ jsx53("span", { children: "Code Snippet" }),
2986
- /* @__PURE__ */ jsx53(CopyButton, { text: textContent })
2987
- ] }),
2988
- /* @__PURE__ */ jsx53("code", { className: "block bg-gray-900 text-gray-100 p-4 rounded-b-md text-sm whitespace-pre-wrap", children: props.node.children && props.node.children.map((node, index) => {
2989
- const SelectedNode = NodeTypes2[node.type];
2990
- return /* @__PURE__ */ jsx53(React42.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx53(SelectedNode, { node, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
2991
- }) })
2992
- ] });
2928
+ return /* @__PURE__ */ jsx52("div", { className: "code-block", children: /* @__PURE__ */ jsx52("code", { className: "block bg-gray-900 text-gray-100 p-4 rounded-b-md text-sm whitespace-pre-wrap", children: props.node.children && props.node.children.map((node, index) => {
2929
+ const SelectedNode = NodeTypes2[node.type];
2930
+ return /* @__PURE__ */ jsx52(React42.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx52(SelectedNode, { node, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
2931
+ }) }) });
2993
2932
  };
2994
2933
  var CodeNode_default = CodeNode;
2995
2934
 
2996
2935
  // src/components/pageRenderingEngine/nodes/HorizontalRuleNode.tsx
2997
- import { jsx as jsx54 } from "react/jsx-runtime";
2936
+ import { jsx as jsx53 } from "react/jsx-runtime";
2998
2937
  var HorizontalRuleNode = (props) => {
2999
- return /* @__PURE__ */ jsx54("hr", {});
2938
+ return /* @__PURE__ */ jsx53("hr", {});
3000
2939
  };
3001
2940
  var HorizontalRuleNode_default = HorizontalRuleNode;
3002
2941
 
@@ -3005,11 +2944,11 @@ import React48 from "react";
3005
2944
 
3006
2945
  // src/components/pageRenderingEngine/nodes/ImageNode.tsx
3007
2946
  import React43 from "react";
3008
- import { jsx as jsx55 } from "react/jsx-runtime";
2947
+ import { jsx as jsx54 } from "react/jsx-runtime";
3009
2948
  var ImageNode = (props) => {
3010
2949
  const { node, apiBaseUrl = "" } = props;
3011
2950
  let imageUrl = node.imageUrl.startsWith("http") ? node.imageUrl : `${apiBaseUrl}/digitalassets/storefront/${node.imageUrl}`;
3012
- return /* @__PURE__ */ jsx55(React43.Fragment, { children: node.width ? /* @__PURE__ */ jsx55("div", { style: { width: node.width }, children: /* @__PURE__ */ jsx55(
2951
+ return /* @__PURE__ */ jsx54(React43.Fragment, { children: node.width ? /* @__PURE__ */ jsx54("div", { style: { width: node.width }, children: /* @__PURE__ */ jsx54(
3013
2952
  "img",
3014
2953
  {
3015
2954
  loading: "lazy",
@@ -3019,7 +2958,7 @@ var ImageNode = (props) => {
3019
2958
  height: node.intrinsicHeight,
3020
2959
  alt: node.title
3021
2960
  }
3022
- ) }) : /* @__PURE__ */ jsx55(
2961
+ ) }) : /* @__PURE__ */ jsx54(
3023
2962
  "img",
3024
2963
  {
3025
2964
  loading: "lazy",
@@ -3035,7 +2974,7 @@ var ImageNode_default = ImageNode;
3035
2974
 
3036
2975
  // src/components/pageRenderingEngine/nodes/WidgetNode.tsx
3037
2976
  import { Suspense } from "react";
3038
- import { Fragment as Fragment5, jsx as jsx56, jsxs as jsxs28 } from "react/jsx-runtime";
2977
+ import { Fragment as Fragment5, jsx as jsx55, jsxs as jsxs26 } from "react/jsx-runtime";
3039
2978
  var WidgetNode = (props) => {
3040
2979
  const getWidgetParameters = () => {
3041
2980
  const widgetInputParameters = { ...props.routeParameters ?? {} };
@@ -3090,12 +3029,12 @@ var WidgetNode = (props) => {
3090
3029
  const SelectedWidget = props.widgetRegistry?.[props.node.widgetCode];
3091
3030
  if (!SelectedWidget) {
3092
3031
  console.warn("Widget not found:", props.node.widgetCode);
3093
- return /* @__PURE__ */ jsxs28(Fragment5, { children: [
3032
+ return /* @__PURE__ */ jsxs26(Fragment5, { children: [
3094
3033
  "Widget not found: ",
3095
3034
  props.node.widgetCode
3096
3035
  ] });
3097
3036
  }
3098
- return /* @__PURE__ */ jsx56(Suspense, { fallback: /* @__PURE__ */ jsx56("div", { className: "container mt-2", children: "..." }), children: /* @__PURE__ */ jsx56(
3037
+ return /* @__PURE__ */ jsx55(Suspense, { fallback: /* @__PURE__ */ jsx55("div", { className: "container mt-2", children: "..." }), children: /* @__PURE__ */ jsx55(
3099
3038
  SelectedWidget,
3100
3039
  {
3101
3040
  params: getWidgetParameters(),
@@ -3110,42 +3049,42 @@ var WidgetNode = (props) => {
3110
3049
  var WidgetNode_default = WidgetNode;
3111
3050
 
3112
3051
  // src/components/pageRenderingEngine/nodes/IframeClient.tsx
3113
- import React46, { useEffect as useEffect8, useRef as useRef4, useState as useState9 } from "react";
3052
+ import React46, { useEffect as useEffect7, useRef as useRef3, useState as useState8 } from "react";
3114
3053
 
3115
3054
  // src/components/IFrameLoaderView.tsx
3116
3055
  import React45 from "react";
3117
- import { jsx as jsx57, jsxs as jsxs29 } from "react/jsx-runtime";
3056
+ import { jsx as jsx56, jsxs as jsxs27 } from "react/jsx-runtime";
3118
3057
  var IFrameLoaderView = (props) => {
3119
- return /* @__PURE__ */ jsxs29(React45.Fragment, { children: [
3120
- props.isDataFound == null && /* @__PURE__ */ jsx57("div", { className: "", children: /* @__PURE__ */ jsxs29("div", { className: "mt-4 bg-gray-200 rounded-md p-4 animate-pulse", children: [
3121
- /* @__PURE__ */ jsxs29("div", { className: "flex items-center mb-4", children: [
3122
- /* @__PURE__ */ jsx57("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
3123
- /* @__PURE__ */ jsxs29("div", { className: "ml-2", children: [
3124
- /* @__PURE__ */ jsx57("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
3125
- /* @__PURE__ */ jsx57("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
3058
+ return /* @__PURE__ */ jsxs27(React45.Fragment, { children: [
3059
+ props.isDataFound == null && /* @__PURE__ */ jsx56("div", { className: "", children: /* @__PURE__ */ jsxs27("div", { className: "mt-4 bg-gray-200 rounded-md p-4 animate-pulse", children: [
3060
+ /* @__PURE__ */ jsxs27("div", { className: "flex items-center mb-4", children: [
3061
+ /* @__PURE__ */ jsx56("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
3062
+ /* @__PURE__ */ jsxs27("div", { className: "ml-2", children: [
3063
+ /* @__PURE__ */ jsx56("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
3064
+ /* @__PURE__ */ jsx56("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
3126
3065
  ] })
3127
3066
  ] }),
3128
- /* @__PURE__ */ jsxs29("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
3129
- /* @__PURE__ */ jsxs29("div", { className: "animate-pulse", children: [
3130
- /* @__PURE__ */ jsx57("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
3131
- /* @__PURE__ */ jsx57("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
3132
- /* @__PURE__ */ jsx57("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
3133
- /* @__PURE__ */ jsx57("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
3134
- /* @__PURE__ */ jsx57("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
3067
+ /* @__PURE__ */ jsxs27("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
3068
+ /* @__PURE__ */ jsxs27("div", { className: "animate-pulse", children: [
3069
+ /* @__PURE__ */ jsx56("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
3070
+ /* @__PURE__ */ jsx56("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
3071
+ /* @__PURE__ */ jsx56("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
3072
+ /* @__PURE__ */ jsx56("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
3073
+ /* @__PURE__ */ jsx56("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
3135
3074
  ] }),
3136
- /* @__PURE__ */ jsxs29("div", { className: "animate-pulse", children: [
3137
- /* @__PURE__ */ jsx57("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
3138
- /* @__PURE__ */ jsx57("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
3139
- /* @__PURE__ */ jsx57("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
3140
- /* @__PURE__ */ jsx57("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
3141
- /* @__PURE__ */ jsx57("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
3075
+ /* @__PURE__ */ jsxs27("div", { className: "animate-pulse", children: [
3076
+ /* @__PURE__ */ jsx56("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
3077
+ /* @__PURE__ */ jsx56("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
3078
+ /* @__PURE__ */ jsx56("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
3079
+ /* @__PURE__ */ jsx56("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
3080
+ /* @__PURE__ */ jsx56("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
3142
3081
  ] }),
3143
- /* @__PURE__ */ jsxs29("div", { className: "animate-pulse", children: [
3144
- /* @__PURE__ */ jsx57("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
3145
- /* @__PURE__ */ jsx57("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
3146
- /* @__PURE__ */ jsx57("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
3147
- /* @__PURE__ */ jsx57("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
3148
- /* @__PURE__ */ jsx57("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
3082
+ /* @__PURE__ */ jsxs27("div", { className: "animate-pulse", children: [
3083
+ /* @__PURE__ */ jsx56("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
3084
+ /* @__PURE__ */ jsx56("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
3085
+ /* @__PURE__ */ jsx56("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
3086
+ /* @__PURE__ */ jsx56("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
3087
+ /* @__PURE__ */ jsx56("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
3149
3088
  ] })
3150
3089
  ] })
3151
3090
  ] }) }),
@@ -3155,12 +3094,12 @@ var IFrameLoaderView = (props) => {
3155
3094
  var IFrameLoaderView_default = IFrameLoaderView;
3156
3095
 
3157
3096
  // src/components/pageRenderingEngine/nodes/IframeClient.tsx
3158
- import { jsx as jsx58 } from "react/jsx-runtime";
3097
+ import { jsx as jsx57 } from "react/jsx-runtime";
3159
3098
  var IframeClient = ({ src }) => {
3160
- const iframeRef = useRef4(null);
3161
- const [iframeHeight, setIframeHeight] = useState9("100%");
3162
- const [isDataFound, setIsDataFound] = useState9(null);
3163
- useEffect8(() => {
3099
+ const iframeRef = useRef3(null);
3100
+ const [iframeHeight, setIframeHeight] = useState8("100%");
3101
+ const [isDataFound, setIsDataFound] = useState8(null);
3102
+ useEffect7(() => {
3164
3103
  const handleReceiveMessage = (event) => {
3165
3104
  const eventName = event?.data?.eventName;
3166
3105
  const payload = event?.data?.payload;
@@ -3175,7 +3114,7 @@ var IframeClient = ({ src }) => {
3175
3114
  window.addEventListener("message", handleReceiveMessage);
3176
3115
  return () => window.removeEventListener("message", handleReceiveMessage);
3177
3116
  }, []);
3178
- useEffect8(() => {
3117
+ useEffect7(() => {
3179
3118
  const handleResize = () => {
3180
3119
  if (iframeRef.current) {
3181
3120
  iframeRef.current.contentWindow?.postMessage({ eventName: "RESIZE" }, "*");
@@ -3187,7 +3126,7 @@ var IframeClient = ({ src }) => {
3187
3126
  const handleIframeLoad = () => {
3188
3127
  setIsDataFound(true);
3189
3128
  };
3190
- return /* @__PURE__ */ jsx58(React46.Fragment, { children: /* @__PURE__ */ jsx58(IFrameLoaderView_default, { isDataFound, children: /* @__PURE__ */ jsx58(
3129
+ return /* @__PURE__ */ jsx57(React46.Fragment, { children: /* @__PURE__ */ jsx57(IFrameLoaderView_default, { isDataFound, children: /* @__PURE__ */ jsx57(
3191
3130
  "iframe",
3192
3131
  {
3193
3132
  ref: iframeRef,
@@ -3201,7 +3140,7 @@ var IframeClient = ({ src }) => {
3201
3140
  var IframeClient_default = IframeClient;
3202
3141
 
3203
3142
  // src/components/pageRenderingEngine/nodes/EmbedNode.tsx
3204
- import { jsx as jsx59 } from "react/jsx-runtime";
3143
+ import { jsx as jsx58 } from "react/jsx-runtime";
3205
3144
  var EmbedNode = (props) => {
3206
3145
  let src;
3207
3146
  if (props.node.provider == "youtube") {
@@ -3211,13 +3150,13 @@ var EmbedNode = (props) => {
3211
3150
  } else {
3212
3151
  src = props.node.embedSrc;
3213
3152
  }
3214
- return /* @__PURE__ */ jsx59("div", { className: "aspect-video", children: src && /* @__PURE__ */ jsx59(IframeClient_default, { src }) });
3153
+ return /* @__PURE__ */ jsx58("div", { className: "aspect-video", children: src && /* @__PURE__ */ jsx58(IframeClient_default, { src }) });
3215
3154
  };
3216
3155
  var EmbedNode_default = EmbedNode;
3217
3156
 
3218
3157
  // src/components/pageRenderingEngine/nodes/VideoNode.tsx
3219
3158
  import React47 from "react";
3220
- import { jsx as jsx60 } from "react/jsx-runtime";
3159
+ import { jsx as jsx59 } from "react/jsx-runtime";
3221
3160
  var VideoNode = (props) => {
3222
3161
  let src;
3223
3162
  if (props.node.provider == "youtube") {
@@ -3225,12 +3164,12 @@ var VideoNode = (props) => {
3225
3164
  } else if (props.node.provider == "bunny") {
3226
3165
  src = `https://iframe.mediadelivery.net/embed/${props.node.videoId}?autoplay=false&loop=false&muted=false&preload=true&responsive=true`;
3227
3166
  }
3228
- return /* @__PURE__ */ jsx60(React47.Fragment, { children: src && /* @__PURE__ */ jsx60("iframe", { className: "w-full aspect-video rounded", src, loading: "lazy", allow: "accelerometer;gyroscope;autoplay;encrypted-media;picture-in-picture;", allowFullScreen: true }) });
3167
+ return /* @__PURE__ */ jsx59(React47.Fragment, { children: src && /* @__PURE__ */ jsx59("iframe", { className: "w-full aspect-video rounded", src, loading: "lazy", allow: "accelerometer;gyroscope;autoplay;encrypted-media;picture-in-picture;", allowFullScreen: true }) });
3229
3168
  };
3230
3169
  var VideoNode_default = VideoNode;
3231
3170
 
3232
3171
  // src/components/pageRenderingEngine/nodes/LayoutItemNode.tsx
3233
- import { jsx as jsx61 } from "react/jsx-runtime";
3172
+ import { jsx as jsx60 } from "react/jsx-runtime";
3234
3173
  var LayoutItemNode = (props) => {
3235
3174
  const NodeTypes2 = {
3236
3175
  ["paragraph"]: ParagraphNode_default,
@@ -3291,11 +3230,11 @@ var LayoutItemNode = (props) => {
3291
3230
  } else {
3292
3231
  updatedLayout = removeParagraphsAtStartAndEnd(props.node);
3293
3232
  }
3294
- return /* @__PURE__ */ jsx61(React48.Fragment, { children: /* @__PURE__ */ jsx61("div", { className: "layout-item " + cssClasses, style: { ...styles }, children: updatedLayout.children.map((node, index) => {
3233
+ return /* @__PURE__ */ jsx60(React48.Fragment, { children: /* @__PURE__ */ jsx60("div", { className: "layout-item " + cssClasses, style: { ...styles }, children: updatedLayout.children.map((node, index) => {
3295
3234
  {
3296
3235
  }
3297
3236
  const SelectedNode = NodeTypes2[node.type];
3298
- return /* @__PURE__ */ jsx61(React48.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx61(
3237
+ return /* @__PURE__ */ jsx60(React48.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx60(
3299
3238
  SelectedNode,
3300
3239
  {
3301
3240
  node,
@@ -3325,7 +3264,7 @@ var AssetUtility = class {
3325
3264
  var AssetUtility_default = AssetUtility;
3326
3265
 
3327
3266
  // src/components/pageRenderingEngine/nodes/LayoutContainerNode.tsx
3328
- import { Fragment as Fragment6, jsx as jsx62, jsxs as jsxs30 } from "react/jsx-runtime";
3267
+ import { Fragment as Fragment6, jsx as jsx61, jsxs as jsxs28 } from "react/jsx-runtime";
3329
3268
  var LayoutContainerNode = (props) => {
3330
3269
  const VERTICAL_ALIGNMENT_CLASSES = {
3331
3270
  start: "items-start",
@@ -3395,7 +3334,7 @@ var LayoutContainerNode = (props) => {
3395
3334
  if (backgroundLayers.length) {
3396
3335
  styles.background = backgroundLayers.join(", ");
3397
3336
  }
3398
- const renderChildren = () => props.node.children?.map((node, index) => /* @__PURE__ */ jsx62(
3337
+ const renderChildren = () => props.node.children?.map((node, index) => /* @__PURE__ */ jsx61(
3399
3338
  LayoutItemNode_default,
3400
3339
  {
3401
3340
  node,
@@ -3409,8 +3348,8 @@ var LayoutContainerNode = (props) => {
3409
3348
  },
3410
3349
  index
3411
3350
  ));
3412
- return /* @__PURE__ */ jsxs30(Fragment6, { children: [
3413
- sectionWidth === "mixed" && /* @__PURE__ */ jsx62("div", { className: cssClasses, style: styles, children: /* @__PURE__ */ jsx62("div", { className: "container", children: /* @__PURE__ */ jsx62(
3351
+ return /* @__PURE__ */ jsxs28(Fragment6, { children: [
3352
+ sectionWidth === "mixed" && /* @__PURE__ */ jsx61("div", { className: cssClasses, style: styles, children: /* @__PURE__ */ jsx61("div", { className: "container", children: /* @__PURE__ */ jsx61(
3414
3353
  "div",
3415
3354
  {
3416
3355
  className: `grid gap-y-4 lg:gap-y-0 ${gridCssClasses} ${addPadding ? "py-8 lg:py-6" : ""}`,
@@ -3418,7 +3357,7 @@ var LayoutContainerNode = (props) => {
3418
3357
  children: renderChildren()
3419
3358
  }
3420
3359
  ) }) }),
3421
- sectionWidth === "full" && /* @__PURE__ */ jsx62(
3360
+ sectionWidth === "full" && /* @__PURE__ */ jsx61(
3422
3361
  "div",
3423
3362
  {
3424
3363
  className: `grid gap-y-4 lg:gap-y-0 ${cssClasses} ${gridCssClasses} ${addPadding ? "p-8 lg:p-0" : ""}`,
@@ -3426,7 +3365,7 @@ var LayoutContainerNode = (props) => {
3426
3365
  children: renderChildren()
3427
3366
  }
3428
3367
  ),
3429
- sectionWidth === "fixed" && /* @__PURE__ */ jsx62("div", { className: "container", children: /* @__PURE__ */ jsx62(
3368
+ sectionWidth === "fixed" && /* @__PURE__ */ jsx61("div", { className: "container", children: /* @__PURE__ */ jsx61(
3430
3369
  "div",
3431
3370
  {
3432
3371
  className: `grid gap-y-4 lg:gap-y-0 ${cssClasses} ${gridCssClasses} ${addPadding ? "px-8 py-6 lg:px-6 lg:py-6" : ""}`,
@@ -3439,12 +3378,12 @@ var LayoutContainerNode = (props) => {
3439
3378
  var LayoutContainerNode_default = LayoutContainerNode;
3440
3379
 
3441
3380
  // src/components/pageRenderingEngine/nodes/FormContainerNode.tsx
3442
- import React49, { useRef as useRef5, useReducer as useReducer2, useCallback as useCallback3, useEffect as useEffect9 } from "react";
3381
+ import React49, { useRef as useRef4, useReducer as useReducer2, useCallback as useCallback3, useEffect as useEffect8 } from "react";
3443
3382
 
3444
3383
  // src/components/pageRenderingEngine/nodes/InputControlNode.tsx
3445
- import { jsx as jsx63 } from "react/jsx-runtime";
3384
+ import { jsx as jsx62 } from "react/jsx-runtime";
3446
3385
  var InputControlNode = (props) => {
3447
- return /* @__PURE__ */ jsx63("div", { children: /* @__PURE__ */ jsx63(
3386
+ return /* @__PURE__ */ jsx62("div", { children: /* @__PURE__ */ jsx62(
3448
3387
  InputControl_default,
3449
3388
  {
3450
3389
  name: props.node.name,
@@ -3473,13 +3412,13 @@ var InputControlNode = (props) => {
3473
3412
  var InputControlNode_default = InputControlNode;
3474
3413
 
3475
3414
  // src/components/pageRenderingEngine/nodes/FormContainerNode.tsx
3476
- import { jsx as jsx64, jsxs as jsxs31 } from "react/jsx-runtime";
3415
+ import { jsx as jsx63, jsxs as jsxs29 } from "react/jsx-runtime";
3477
3416
  var FormContainerNode = (props) => {
3478
3417
  const NodeTypes2 = {
3479
3418
  ["input-control"]: InputControlNode_default
3480
3419
  };
3481
3420
  const { node } = props;
3482
- const formRef = useRef5(null);
3421
+ const formRef = useRef4(null);
3483
3422
  const initialState = {
3484
3423
  inputValues: {},
3485
3424
  lastPropertyChanged: ""
@@ -3496,7 +3435,7 @@ var FormContainerNode = (props) => {
3496
3435
  return true;
3497
3436
  }
3498
3437
  };
3499
- useEffect9(() => {
3438
+ useEffect8(() => {
3500
3439
  const fetchInitialData = async () => {
3501
3440
  if (!props.fetchData || !node.dataFetchApi) return;
3502
3441
  const response = await props.fetchData(
@@ -3513,12 +3452,12 @@ var FormContainerNode = (props) => {
3513
3452
  };
3514
3453
  fetchInitialData();
3515
3454
  }, [props.fetchData, node.dataFetchApi, props.routeParameters]);
3516
- return /* @__PURE__ */ jsxs31("form", { className: "group space-y-6 pb-6 overflow-y-auto", noValidate: true, ref: formRef, children: [
3455
+ return /* @__PURE__ */ jsxs29("form", { className: "group space-y-6 pb-6 overflow-y-auto", noValidate: true, ref: formRef, children: [
3517
3456
  node.children && node.children.map((node2, index) => {
3518
3457
  {
3519
3458
  }
3520
3459
  const SelectedNode = NodeTypes2[node2.type];
3521
- return /* @__PURE__ */ jsx64(React49.Fragment, { children: SelectedNode && node2.type == "input-control" && /* @__PURE__ */ jsx64(
3460
+ return /* @__PURE__ */ jsx63(React49.Fragment, { children: SelectedNode && node2.type == "input-control" && /* @__PURE__ */ jsx63(
3522
3461
  InputControlNode_default,
3523
3462
  {
3524
3463
  value: formState.inputValues[node2.name],
@@ -3527,7 +3466,7 @@ var FormContainerNode = (props) => {
3527
3466
  }
3528
3467
  ) }, index);
3529
3468
  }),
3530
- node.children.length == 0 && /* @__PURE__ */ jsx64("div", { className: "py-0.5 lg:py-1.5" })
3469
+ node.children.length == 0 && /* @__PURE__ */ jsx63("div", { className: "py-0.5 lg:py-1.5" })
3531
3470
  ] });
3532
3471
  };
3533
3472
  var FormContainerNode_default = FormContainerNode;
@@ -3535,7 +3474,7 @@ var FormContainerNode_default = FormContainerNode;
3535
3474
  // src/components/pageRenderingEngine/nodes/DivContainer.tsx
3536
3475
  import React50 from "react";
3537
3476
  import Link3 from "next/link";
3538
- import { jsx as jsx65, jsxs as jsxs32 } from "react/jsx-runtime";
3477
+ import { jsx as jsx64, jsxs as jsxs30 } from "react/jsx-runtime";
3539
3478
  var DivContainer = (props) => {
3540
3479
  const { cssProperties: styles, hoverCssProperties: hoverStyles, mobileCssProperties: mobileStyles } = props.node;
3541
3480
  const updatedStyles = convertKeysToCamelCase(styles);
@@ -3654,9 +3593,9 @@ ${mobileCssRules.join("\n")}
3654
3593
  return css2;
3655
3594
  };
3656
3595
  const css = generateCssString(updatedStyle, hoverStyles, mobileStyles);
3657
- return /* @__PURE__ */ jsxs32(React50.Fragment, { children: [
3658
- /* @__PURE__ */ jsx65("style", { dangerouslySetInnerHTML: { __html: css } }),
3659
- props.node.href && props.node.href !== "" ? /* @__PURE__ */ jsx65(Link3, { href: props.node.href, className: "block", children: /* @__PURE__ */ jsx65(
3596
+ return /* @__PURE__ */ jsxs30(React50.Fragment, { children: [
3597
+ /* @__PURE__ */ jsx64("style", { dangerouslySetInnerHTML: { __html: css } }),
3598
+ props.node.href && props.node.href !== "" ? /* @__PURE__ */ jsx64(Link3, { href: props.node.href, className: "block", children: /* @__PURE__ */ jsx64(
3660
3599
  "div",
3661
3600
  {
3662
3601
  id: guid,
@@ -3664,7 +3603,7 @@ ${mobileCssRules.join("\n")}
3664
3603
  className: containerPaddingClass,
3665
3604
  children: props.node.children?.map((node, index) => {
3666
3605
  const SelectedNode = NodeTypes2[node.type];
3667
- return /* @__PURE__ */ jsx65(React50.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx65(
3606
+ return /* @__PURE__ */ jsx64(React50.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx64(
3668
3607
  SelectedNode,
3669
3608
  {
3670
3609
  node,
@@ -3679,9 +3618,9 @@ ${mobileCssRules.join("\n")}
3679
3618
  ) }, index);
3680
3619
  })
3681
3620
  }
3682
- ) }) : /* @__PURE__ */ jsx65("div", { id: guid, style: { ...backgroundStyle }, className: containerPaddingClass, children: props.node.children && props.node.children.map((node, index) => {
3621
+ ) }) : /* @__PURE__ */ jsx64("div", { id: guid, style: { ...backgroundStyle }, className: containerPaddingClass, children: props.node.children && props.node.children.map((node, index) => {
3683
3622
  const SelectedNode = NodeTypes2[node.type];
3684
- return /* @__PURE__ */ jsx65(React50.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx65(
3623
+ return /* @__PURE__ */ jsx64(React50.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx64(
3685
3624
  SelectedNode,
3686
3625
  {
3687
3626
  node,
@@ -3700,7 +3639,7 @@ ${mobileCssRules.join("\n")}
3700
3639
  var DivContainer_default = DivContainer;
3701
3640
 
3702
3641
  // src/components/pageRenderingEngine/PageBodyRenderer.tsx
3703
- import { jsx as jsx66 } from "react/jsx-runtime";
3642
+ import { jsx as jsx65 } from "react/jsx-runtime";
3704
3643
  var NodeTypes = {
3705
3644
  ["paragraph"]: ParagraphNode_default,
3706
3645
  ["heading"]: HeadingNode_default,
@@ -3728,11 +3667,11 @@ var PageBodyRenderer = (props) => {
3728
3667
  if (pageBodyTree && pageBodyTree.root) {
3729
3668
  rootNode = pageBodyTree.root;
3730
3669
  }
3731
- return /* @__PURE__ */ jsx66(React51.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
3670
+ return /* @__PURE__ */ jsx65(React51.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
3732
3671
  {
3733
3672
  }
3734
3673
  const SelectedNode = NodeTypes[node.type];
3735
- return /* @__PURE__ */ jsx66(React51.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx66(React51.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ jsx66(React51.Fragment, { children: /* @__PURE__ */ jsx66(
3674
+ return /* @__PURE__ */ jsx65(React51.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx65(React51.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ jsx65(React51.Fragment, { children: /* @__PURE__ */ jsx65(
3736
3675
  SelectedNode,
3737
3676
  {
3738
3677
  node,
@@ -3745,7 +3684,7 @@ var PageBodyRenderer = (props) => {
3745
3684
  apiBaseUrl: props.apiBaseUrl,
3746
3685
  widgetRegistry: props.widgetRegistry
3747
3686
  }
3748
- ) }) : /* @__PURE__ */ jsx66(React51.Fragment, { children: /* @__PURE__ */ jsx66(
3687
+ ) }) : /* @__PURE__ */ jsx65(React51.Fragment, { children: /* @__PURE__ */ jsx65(
3749
3688
  SelectedNode,
3750
3689
  {
3751
3690
  node,