@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260522061527 → 0.8.1-dev.20260523060518

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.
Files changed (3) hide show
  1. package/dist/index.js +217 -287
  2. package/dist/index.mjs +164 -234
  3. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -116,117 +116,73 @@ var AssetUtility_default = AssetUtility;
116
116
 
117
117
  // src/components/DeviceAssetSelector.tsx
118
118
  import { jsx as jsx3 } from "react/jsx-runtime";
119
+ var FORMAT_CLASSES = {
120
+ center: "justify-center",
121
+ left: "justify-start",
122
+ right: "justify-end"
123
+ };
119
124
  var DeviceAssetSelector = ({
120
125
  assets,
121
126
  assetBaseUrl,
122
127
  session,
123
- // This should receive the session
124
128
  width,
125
129
  tag,
126
- customProps,
127
130
  nodeProps,
128
131
  device
129
132
  }) => {
130
- console.log("\u{1F511} Session in DeviceAssetSelector:", session);
131
133
  const targetTag = tag || nodeProps?.tag;
132
- const selectAssetByDevice = (assets2, currentDevice) => {
133
- if (!assets2 || assets2.length === 0) return void 0;
134
- const exactMatch = assets2.find((asset) => asset.device === currentDevice);
135
- if (exactMatch) return exactMatch;
136
- const noDeviceMatch = assets2.find((asset) => !asset.device || asset.device === "");
137
- if (noDeviceMatch) return noDeviceMatch;
138
- return void 0;
139
- };
140
- const selectAssetByTagAndDevice = (assets2, currentDevice, targetTag2) => {
141
- if (!assets2 || assets2.length === 0) return void 0;
142
- if (!targetTag2) return selectAssetByDevice(assets2, currentDevice);
143
- const taggedAssets = assets2.filter((asset) => asset.tag === targetTag2);
144
- if (taggedAssets.length === 0) {
145
- return selectAssetByDevice(assets2, currentDevice);
146
- }
147
- const exactTaggedMatch = taggedAssets.find((asset) => asset.device === currentDevice);
148
- if (exactTaggedMatch) return exactTaggedMatch;
149
- const noDeviceTaggedMatch = taggedAssets.find((asset) => !asset.device || asset.device === "");
150
- if (noDeviceTaggedMatch) return noDeviceTaggedMatch;
151
- return void 0;
152
- };
134
+ const selectAssetByDevice = (assets2, currentDevice) => assets2.find((a) => a.device === currentDevice) ?? assets2.find((a) => !a.device || a.device === "");
153
135
  const selectAsset = () => {
154
- if (!assets || assets.length === 0) return void 0;
136
+ if (!assets?.length) return void 0;
155
137
  if (targetTag) {
156
- return selectAssetByTagAndDevice(assets, device, targetTag);
138
+ const tagged = assets.filter((a) => a.tag === targetTag);
139
+ if (tagged.length) {
140
+ return tagged.find((a) => a.device === device) ?? tagged.find((a) => !a.device || a.device === "");
141
+ }
157
142
  }
158
143
  return selectAssetByDevice(assets, device);
159
144
  };
160
145
  const selectedAsset = selectAsset();
161
- if (!selectedAsset) {
162
- console.warn("No suitable asset found for device:", device, "and tag:", targetTag);
163
- return null;
164
- }
146
+ if (!selectedAsset) return null;
165
147
  const resolvedAssetUrl = AssetUtility_default.resolveUrl(assetBaseUrl, selectedAsset.assetUrl);
166
148
  const resolvedThumbnailUrl = selectedAsset.posterUrl ? AssetUtility_default.resolveUrl(assetBaseUrl, selectedAsset.posterUrl) : void 0;
167
- console.log("Selected Asset:", resolvedThumbnailUrl);
168
149
  const title = selectedAsset.title || nodeProps?.title;
169
- const intrinsicWidth = selectedAsset.intrinsicWidth?.toString();
170
- const intrinsicHeight = selectedAsset.intrinsicHeight?.toString();
171
150
  const isHls = resolvedAssetUrl?.endsWith(".m3u8");
172
- const showControls = customProps?.showControls ?? nodeProps?.showControls === "true";
173
- const loop = customProps?.loop ?? nodeProps?.loop === "true";
174
- const playOptions = customProps?.playOptions ?? nodeProps?.playOptions;
175
- const styles = {};
176
- if (nodeProps?.height) {
177
- styles.height = nodeProps.height;
178
- }
179
- if (nodeProps?.borderRadius) {
180
- styles.borderRadius = nodeProps.borderRadius;
181
- }
182
- if (nodeProps?.width) {
183
- styles.width = nodeProps.width;
184
- }
185
- const FormatClass = {
186
- "center": "justify-center",
187
- "left": "justify-start",
188
- "right": "justify-end"
151
+ const showControls = nodeProps?.showControls === "true";
152
+ const loop = nodeProps?.loop === "true";
153
+ const styles = {
154
+ ...nodeProps?.borderRadius && { borderRadius: nodeProps.borderRadius },
155
+ ...nodeProps?.width && { width: nodeProps.width },
156
+ ...nodeProps?.height && { height: nodeProps.height }
189
157
  };
190
- const formatClasses = FormatClass[nodeProps?.format || ""] || "";
191
- const renderMedia = () => {
192
- if (isHls) {
193
- return /* @__PURE__ */ jsx3(
194
- HlsPlayer_default,
195
- {
196
- assetUrl: resolvedAssetUrl,
197
- posterUrl: resolvedThumbnailUrl,
198
- intrinsicWidth,
199
- intrinsicHeight,
200
- showControls,
201
- loop,
202
- playOptions,
203
- apiBaseUrl: assetBaseUrl,
204
- session
205
- }
206
- );
207
- } else {
208
- return (
209
- /* eslint-disable-next-line @next/next/no-img-element */
210
- /* @__PURE__ */ jsx3(
211
- "img",
212
- {
213
- style: styles,
214
- loading: "lazy",
215
- className: "object-cover w-full",
216
- src: resolvedAssetUrl,
217
- width: selectedAsset.intrinsicWidth,
218
- alt: title || "Asset image",
219
- height: selectedAsset.intrinsicHeight
220
- }
221
- )
222
- );
158
+ const renderMedia = () => isHls ? /* @__PURE__ */ jsx3(
159
+ HlsPlayer_default,
160
+ {
161
+ assetUrl: resolvedAssetUrl,
162
+ posterUrl: resolvedThumbnailUrl,
163
+ intrinsicWidth: selectedAsset.intrinsicWidth?.toString(),
164
+ intrinsicHeight: selectedAsset.intrinsicHeight?.toString(),
165
+ showControls,
166
+ loop,
167
+ playOptions: nodeProps?.playOptions,
168
+ apiBaseUrl: assetBaseUrl,
169
+ session
170
+ }
171
+ ) : /* @__PURE__ */ jsx3(
172
+ "img",
173
+ {
174
+ style: styles,
175
+ loading: "lazy",
176
+ className: "object-cover w-full",
177
+ src: resolvedAssetUrl,
178
+ width: selectedAsset.intrinsicWidth,
179
+ height: selectedAsset.intrinsicHeight,
180
+ alt: title || "Asset image"
223
181
  }
224
- };
225
- if (width) {
226
- return /* @__PURE__ */ jsx3("div", { style: { width }, children: renderMedia() });
227
- }
182
+ );
183
+ if (width) return /* @__PURE__ */ jsx3("div", { style: { width }, children: renderMedia() });
228
184
  if (nodeProps?.format) {
229
- return /* @__PURE__ */ jsx3("div", { className: `flex ${formatClasses}`, children: renderMedia() });
185
+ return /* @__PURE__ */ jsx3("div", { className: `flex ${FORMAT_CLASSES[nodeProps.format] ?? ""}`, children: renderMedia() });
230
186
  }
231
187
  return renderMedia();
232
188
  };
@@ -1929,10 +1885,10 @@ InputControl.displayName = "InputControl";
1929
1885
  var InputControl_default = InputControl;
1930
1886
 
1931
1887
  // src/components/pageRenderingEngine/PageBodyRenderer.tsx
1932
- import React41 from "react";
1888
+ import React40 from "react";
1933
1889
 
1934
1890
  // src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
1935
- import React30 from "react";
1891
+ import React29 from "react";
1936
1892
 
1937
1893
  // src/components/pageRenderingEngine/nodes/TextNode.tsx
1938
1894
  import { jsx as jsx36, jsxs as jsxs22 } from "react/jsx-runtime";
@@ -2014,15 +1970,12 @@ var LineBreakNode = () => {
2014
1970
  var LineBreakNode_default = LineBreakNode;
2015
1971
 
2016
1972
  // src/components/pageRenderingEngine/nodes/LinkNode.tsx
2017
- import React29 from "react";
1973
+ import React28 from "react";
2018
1974
 
2019
1975
  // src/components/pageRenderingEngine/nodes/ImageNode.tsx
2020
- import React28 from "react";
2021
1976
  import dynamic3 from "next/dynamic";
2022
- import { Fragment as Fragment2, jsx as jsx38 } from "react/jsx-runtime";
2023
- var HlsPlayer = dynamic3(() => import("./HlsPlayer-GZR4QXJY.mjs"), {
2024
- ssr: false
2025
- });
1977
+ import { jsx as jsx38 } from "react/jsx-runtime";
1978
+ var HlsPlayer = dynamic3(() => import("./HlsPlayer-GZR4QXJY.mjs"), { ssr: false });
2026
1979
  var getNestedValue = (obj, path) => {
2027
1980
  if (!obj || !path) return void 0;
2028
1981
  return path.split(".").reduce((current, key) => {
@@ -2036,33 +1989,22 @@ var ImageNode = (props) => {
2036
1989
  const currentDevice = props.device;
2037
1990
  if (props.node.device) {
2038
1991
  const nodeDevice = props.node.device;
2039
- if (nodeDevice !== currentDevice) {
2040
- return null;
2041
- }
1992
+ if (nodeDevice !== currentDevice) return null;
2042
1993
  }
2043
- console.log("ImageNode device / currentDevice:", props.node.device, currentDevice);
2044
1994
  if (props.node.imageUrl.startsWith("http")) {
2045
1995
  imageUrl = props.node.imageUrl;
2046
- posterUrl = AssetUtility_default.resolveUrl(
2047
- props.assetBaseUrl,
2048
- props.node.posterUrl
2049
- );
1996
+ posterUrl = AssetUtility_default.resolveUrl(props.assetBaseUrl, props.node.posterUrl);
2050
1997
  } else if (props.dataitem && props.node.datafield) {
2051
1998
  const image = getNestedValue(props.dataitem, props.node.datafield);
2052
- console.log("ImageNode Datafield Image:", image);
2053
- try {
2054
- if (typeof image === "string") {
2055
- assets = JSON.parse(image);
2056
- } else if (Array.isArray(image)) {
2057
- assets = image;
2058
- } else if (image && typeof image === "object") {
2059
- assets = [image];
2060
- }
2061
- } catch (error) {
2062
- console.error("Error parsing assets in ImageNode:", error);
1999
+ if (typeof image === "string") {
2000
+ assets = JSON.parse(image);
2001
+ } else if (Array.isArray(image)) {
2002
+ assets = image;
2003
+ } else if (image && typeof image === "object") {
2004
+ assets = [image];
2063
2005
  }
2064
2006
  if (assets && assets.length > 0) {
2065
- return /* @__PURE__ */ jsx38(Fragment2, { children: /* @__PURE__ */ jsx38(
2007
+ return /* @__PURE__ */ jsx38(
2066
2008
  DeviceAssetSelector_default,
2067
2009
  {
2068
2010
  device: props.device,
@@ -2079,11 +2021,10 @@ var ImageNode = (props) => {
2079
2021
  height: props.node.height,
2080
2022
  format: props.node.format,
2081
2023
  tag: props.node.tag,
2082
- // Add tag to ImageNode if needed
2083
2024
  placementCode: props.node.placementCode
2084
2025
  }
2085
2026
  }
2086
- ) });
2027
+ );
2087
2028
  } else {
2088
2029
  imageUrl = AssetUtility_default.resolveUrl(props.assetBaseUrl, props.node.imageUrl);
2089
2030
  posterUrl = AssetUtility_default.resolveUrl(props.assetBaseUrl, props.node.posterUrl);
@@ -2092,56 +2033,45 @@ var ImageNode = (props) => {
2092
2033
  imageUrl = AssetUtility_default.resolveUrl(props.assetBaseUrl, props.node.imageUrl);
2093
2034
  posterUrl = AssetUtility_default.resolveUrl(props.assetBaseUrl, props.node.posterUrl);
2094
2035
  }
2095
- console.log("ImageNode Assets:", assets);
2096
- if (!imageUrl) {
2097
- return null;
2098
- }
2099
- const styles = {};
2100
- if (props.node.height) styles.height = props.node.height;
2101
- if (props.node.borderRadius) styles.borderRadius = props.node.borderRadius;
2102
- if (props.node.width) styles.width = props.node.width;
2103
- const FormatClass = {
2104
- "center": "justify-center",
2105
- "left": "justify-start",
2106
- "right": "justify-end"
2036
+ if (!imageUrl) return null;
2037
+ const styles = {
2038
+ ...props.node.height && { height: props.node.height },
2039
+ ...props.node.borderRadius && { borderRadius: props.node.borderRadius },
2040
+ ...props.node.width && { width: props.node.width }
2107
2041
  };
2108
- {
2109
- }
2110
- const formatClasses = FormatClass[props.node.format] || "";
2111
- const isHls = imageUrl?.endsWith(".m3u8");
2112
- const renderMedia = () => {
2113
- if (isHls) {
2114
- return /* @__PURE__ */ jsx38(
2115
- HlsPlayer,
2116
- {
2117
- assetUrl: imageUrl,
2118
- posterUrl,
2119
- intrinsicWidth: props.node.intrinsicWidth,
2120
- intrinsicHeight: props.node.intrinsicHeight,
2121
- showControls: props.node.showControls === "true",
2122
- loop: props.node.loop === "true",
2123
- playOptions: props.node.playOptions,
2124
- apiBaseUrl: props.apiBaseUrl,
2125
- session: props.session
2126
- }
2127
- );
2128
- } else {
2129
- return /* @__PURE__ */ jsx38(React28.Fragment, { children: /* @__PURE__ */ jsx38(
2130
- "img",
2131
- {
2132
- style: styles,
2133
- loading: "lazy",
2134
- className: "object-cover",
2135
- src: imageUrl,
2136
- width: props.node.intrinsicWidth,
2137
- alt: props.node.title,
2138
- height: props.node.intrinsicHeight
2139
- }
2140
- ) });
2141
- }
2042
+ const FORMAT_CLASSES2 = {
2043
+ center: "justify-center",
2044
+ left: "justify-start",
2045
+ right: "justify-end"
2142
2046
  };
2047
+ const isHls = imageUrl.endsWith(".m3u8");
2048
+ const renderMedia = () => isHls ? /* @__PURE__ */ jsx38(
2049
+ HlsPlayer,
2050
+ {
2051
+ assetUrl: imageUrl,
2052
+ posterUrl,
2053
+ intrinsicWidth: props.node.intrinsicWidth,
2054
+ intrinsicHeight: props.node.intrinsicHeight,
2055
+ showControls: props.node.showControls === "true",
2056
+ loop: props.node.loop === "true",
2057
+ playOptions: props.node.playOptions,
2058
+ apiBaseUrl: props.apiBaseUrl,
2059
+ session: props.session
2060
+ }
2061
+ ) : /* @__PURE__ */ jsx38(
2062
+ "img",
2063
+ {
2064
+ style: styles,
2065
+ loading: "lazy",
2066
+ className: "object-cover",
2067
+ src: imageUrl,
2068
+ width: props.node.intrinsicWidth,
2069
+ alt: props.node.title,
2070
+ height: props.node.intrinsicHeight
2071
+ }
2072
+ );
2143
2073
  if (props.node.width) {
2144
- return /* @__PURE__ */ jsx38("div", { className: `flex ${formatClasses}`, children: renderMedia() });
2074
+ return /* @__PURE__ */ jsx38("div", { className: `flex ${FORMAT_CLASSES2[props.node.format] ?? ""}`, children: renderMedia() });
2145
2075
  }
2146
2076
  return renderMedia();
2147
2077
  };
@@ -2149,7 +2079,7 @@ var ImageNode_default = ImageNode;
2149
2079
 
2150
2080
  // src/components/pageRenderingEngine/nodes/LinkNode.tsx
2151
2081
  import dynamic4 from "next/dynamic";
2152
- import { Fragment as Fragment3, jsx as jsx39, jsxs as jsxs23 } from "react/jsx-runtime";
2082
+ import { Fragment as Fragment2, jsx as jsx39, jsxs as jsxs23 } from "react/jsx-runtime";
2153
2083
  var LinkNodeButton = dynamic4(() => import("./LinkNodeButton-WDDPNYWI.mjs"), {
2154
2084
  ssr: false
2155
2085
  });
@@ -2196,13 +2126,13 @@ var LinkNode = (props) => {
2196
2126
  const isButton = node.isButton === true;
2197
2127
  const renderChildren = () => {
2198
2128
  if (!node.children || node.children.length === 0) return null;
2199
- return /* @__PURE__ */ jsx39(Fragment3, { children: node.children.map((childNode, index) => {
2129
+ return /* @__PURE__ */ jsx39(Fragment2, { children: node.children.map((childNode, index) => {
2200
2130
  const SelectedNode = NodeTypes2[childNode.type];
2201
2131
  if (!SelectedNode) {
2202
2132
  console.warn("Unknown node type:", childNode.type);
2203
2133
  return null;
2204
2134
  }
2205
- return /* @__PURE__ */ jsx39(React29.Fragment, { children: /* @__PURE__ */ jsx39(
2135
+ return /* @__PURE__ */ jsx39(React28.Fragment, { children: /* @__PURE__ */ jsx39(
2206
2136
  SelectedNode,
2207
2137
  {
2208
2138
  node: childNode,
@@ -2419,7 +2349,7 @@ var DatafieldNode = (props) => {
2419
2349
  var DatafieldNode_default = DatafieldNode;
2420
2350
 
2421
2351
  // src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
2422
- import { Fragment as Fragment4, jsx as jsx43, jsxs as jsxs24 } from "react/jsx-runtime";
2352
+ import { Fragment as Fragment3, jsx as jsx43, jsxs as jsxs24 } from "react/jsx-runtime";
2423
2353
  var ParagraphNode = (props) => {
2424
2354
  const NodeTypes2 = {
2425
2355
  ["text"]: TextNode_default,
@@ -2439,9 +2369,9 @@ var ParagraphNode = (props) => {
2439
2369
  const isInlineOnlyParent = props.parentTag === "summary";
2440
2370
  const hasChildren = props.node.children && props.node.children.length > 0;
2441
2371
  if (isInlineOnlyParent) {
2442
- return /* @__PURE__ */ jsx43(Fragment4, { children: hasChildren && props.node.children.map((node, index) => {
2372
+ return /* @__PURE__ */ jsx43(Fragment3, { children: hasChildren && props.node.children.map((node, index) => {
2443
2373
  const SelectedNode = NodeTypes2[node.type];
2444
- return /* @__PURE__ */ jsx43(React30.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx43(
2374
+ return /* @__PURE__ */ jsx43(React29.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx43(
2445
2375
  SelectedNode,
2446
2376
  {
2447
2377
  node,
@@ -2456,7 +2386,7 @@ var ParagraphNode = (props) => {
2456
2386
  return /* @__PURE__ */ jsxs24("div", { className: " " + formatClasses, children: [
2457
2387
  hasChildren && props.node.children.map((node, index) => {
2458
2388
  const SelectedNode = NodeTypes2[node.type];
2459
- return /* @__PURE__ */ jsx43(React30.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx43(
2389
+ return /* @__PURE__ */ jsx43(React29.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx43(
2460
2390
  SelectedNode,
2461
2391
  {
2462
2392
  node,
@@ -2473,8 +2403,8 @@ var ParagraphNode = (props) => {
2473
2403
  var ParagraphNode_default = ParagraphNode;
2474
2404
 
2475
2405
  // src/components/pageRenderingEngine/nodes/HeadingNode.tsx
2476
- import React31 from "react";
2477
- import { Fragment as Fragment5, jsx as jsx44 } from "react/jsx-runtime";
2406
+ import React30 from "react";
2407
+ import { Fragment as Fragment4, jsx as jsx44 } from "react/jsx-runtime";
2478
2408
  var HeadingNode = (props) => {
2479
2409
  const NodeTypes2 = {
2480
2410
  ["text"]: TextNode_default,
@@ -2490,22 +2420,22 @@ var HeadingNode = (props) => {
2490
2420
  {
2491
2421
  }
2492
2422
  const formatClasses = FormatClass[props.node.format] || "";
2493
- return /* @__PURE__ */ jsx44(Fragment5, { children: React31.createElement(
2423
+ return /* @__PURE__ */ jsx44(Fragment4, { children: React30.createElement(
2494
2424
  HeadingTag,
2495
2425
  { className: formatClasses },
2496
2426
  props.node.children && props.node.children.map((childNode, index) => {
2497
2427
  const SelectedNode = NodeTypes2[childNode.type];
2498
- return /* @__PURE__ */ jsx44(React31.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx44(SelectedNode, { node: childNode, dataitem: props.dataitem, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
2428
+ return /* @__PURE__ */ jsx44(React30.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx44(SelectedNode, { node: childNode, dataitem: props.dataitem, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
2499
2429
  })
2500
2430
  ) });
2501
2431
  };
2502
2432
  var HeadingNode_default = HeadingNode;
2503
2433
 
2504
2434
  // src/components/pageRenderingEngine/nodes/ListNode.tsx
2505
- import React33 from "react";
2435
+ import React32 from "react";
2506
2436
 
2507
2437
  // src/components/pageRenderingEngine/nodes/ListItemNode.tsx
2508
- import React32 from "react";
2438
+ import React31 from "react";
2509
2439
  import { jsx as jsx45 } from "react/jsx-runtime";
2510
2440
  var ListItemNode = (props) => {
2511
2441
  const NodeTypes2 = {
@@ -2534,7 +2464,7 @@ var ListItemNode = (props) => {
2534
2464
  }
2535
2465
  } else {
2536
2466
  foundFirstBreak = false;
2537
- return /* @__PURE__ */ jsx45(React32.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx45(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
2467
+ return /* @__PURE__ */ jsx45(React31.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx45(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
2538
2468
  }
2539
2469
  }) });
2540
2470
  };
@@ -2546,21 +2476,21 @@ var ListNode = (props) => {
2546
2476
  const NodeTypes2 = {
2547
2477
  listitem: ListItemNode_default
2548
2478
  };
2549
- return /* @__PURE__ */ jsxs25(React33.Fragment, { children: [
2479
+ return /* @__PURE__ */ jsxs25(React32.Fragment, { children: [
2550
2480
  props.node.listType == "bullet" && /* @__PURE__ */ jsx46("ul", { children: props.node.children && props.node.children.map((node, index) => {
2551
2481
  const SelectedNode = NodeTypes2[node.type];
2552
- return /* @__PURE__ */ jsx46(React33.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx46(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
2482
+ return /* @__PURE__ */ jsx46(React32.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx46(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
2553
2483
  }) }),
2554
2484
  props.node.listType == "number" && /* @__PURE__ */ jsx46("ol", { children: props.node.children && props.node.children.map((node, index) => {
2555
2485
  const SelectedNode = NodeTypes2[node.type];
2556
- return /* @__PURE__ */ jsx46(React33.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx46(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
2486
+ return /* @__PURE__ */ jsx46(React32.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx46(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
2557
2487
  }) })
2558
2488
  ] });
2559
2489
  };
2560
2490
  var ListNode_default = ListNode;
2561
2491
 
2562
2492
  // src/components/pageRenderingEngine/nodes/QuoteNode.tsx
2563
- import React34 from "react";
2493
+ import React33 from "react";
2564
2494
  import { jsx as jsx47 } from "react/jsx-runtime";
2565
2495
  var QuoteNode = (props) => {
2566
2496
  const NodeTypes2 = {
@@ -2570,13 +2500,13 @@ var QuoteNode = (props) => {
2570
2500
  };
2571
2501
  return /* @__PURE__ */ jsx47("blockquote", { children: props.node.children && props.node.children.map((node, index) => {
2572
2502
  const SelectedNode = NodeTypes2[node.type];
2573
- return /* @__PURE__ */ jsx47(React34.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx47(SelectedNode, { node, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
2503
+ return /* @__PURE__ */ jsx47(React33.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx47(SelectedNode, { node, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
2574
2504
  }) });
2575
2505
  };
2576
2506
  var QuoteNode_default = QuoteNode;
2577
2507
 
2578
2508
  // src/components/pageRenderingEngine/nodes/CodeNode.tsx
2579
- import React35 from "react";
2509
+ import React34 from "react";
2580
2510
  import dynamic5 from "next/dynamic";
2581
2511
  import { jsx as jsx48, jsxs as jsxs26 } from "react/jsx-runtime";
2582
2512
  var CopyButton = dynamic5(() => import("./CopyButton-XONTQQW7.mjs"), {
@@ -2603,7 +2533,7 @@ var CodeNode = (props) => {
2603
2533
  ] }),
2604
2534
  /* @__PURE__ */ jsx48("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) => {
2605
2535
  const SelectedNode = NodeTypes2[node.type];
2606
- return /* @__PURE__ */ jsx48(React35.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx48(
2536
+ return /* @__PURE__ */ jsx48(React34.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx48(
2607
2537
  SelectedNode,
2608
2538
  {
2609
2539
  node,
@@ -2625,8 +2555,8 @@ var HorizontalRuleNode = () => {
2625
2555
  var HorizontalRuleNode_default = HorizontalRuleNode;
2626
2556
 
2627
2557
  // src/components/pageRenderingEngine/nodes/WidgetNode.tsx
2628
- import React36 from "react";
2629
- import { Fragment as Fragment6, jsx as jsx50 } from "react/jsx-runtime";
2558
+ import React35 from "react";
2559
+ import { Fragment as Fragment5, jsx as jsx50 } from "react/jsx-runtime";
2630
2560
  var WidgetNode = (props) => {
2631
2561
  const getWidgetParameters = () => {
2632
2562
  const widgetInputParameters = {
@@ -2690,7 +2620,7 @@ var WidgetNode = (props) => {
2690
2620
  };
2691
2621
  const widgetCode = props.node?.widgetCode;
2692
2622
  if (!widgetCode) {
2693
- return /* @__PURE__ */ jsx50(Fragment6, { children: "Invalid widget" });
2623
+ return /* @__PURE__ */ jsx50(Fragment5, { children: "Invalid widget" });
2694
2624
  }
2695
2625
  const widgetParams = getWidgetParameters();
2696
2626
  const WidgetRenderer = props.widgetRenderer;
@@ -2699,7 +2629,7 @@ var WidgetNode = (props) => {
2699
2629
  }
2700
2630
  return (
2701
2631
  // eslint-disable-next-line react-hooks/static-components
2702
- /* @__PURE__ */ jsx50(React36.Fragment, { children: /* @__PURE__ */ jsx50(
2632
+ /* @__PURE__ */ jsx50(React35.Fragment, { children: /* @__PURE__ */ jsx50(
2703
2633
  WidgetRenderer,
2704
2634
  {
2705
2635
  params: widgetParams,
@@ -2716,7 +2646,7 @@ var WidgetNode = (props) => {
2716
2646
  var WidgetNode_default = WidgetNode;
2717
2647
 
2718
2648
  // src/components/pageRenderingEngine/nodes/FormContainerNode.tsx
2719
- import React37, { useRef as useRef3, useReducer, useCallback as useCallback2, useEffect as useEffect7 } from "react";
2649
+ import React36, { useRef as useRef3, useReducer, useCallback as useCallback2, useEffect as useEffect7 } from "react";
2720
2650
 
2721
2651
  // src/components/pageRenderingEngine/nodes/InputControlNode.tsx
2722
2652
  import { jsx as jsx51 } from "react/jsx-runtime";
@@ -2829,7 +2759,7 @@ var FormContainerNode = (props) => {
2829
2759
  {
2830
2760
  }
2831
2761
  const SelectedNode = NodeTypes2[node2.type];
2832
- return /* @__PURE__ */ jsx52(React37.Fragment, { children: SelectedNode && node2.type == "input-control" && /* @__PURE__ */ jsx52(
2762
+ return /* @__PURE__ */ jsx52(React36.Fragment, { children: SelectedNode && node2.type == "input-control" && /* @__PURE__ */ jsx52(
2833
2763
  InputControlNode_default,
2834
2764
  {
2835
2765
  value: formState.inputValues[node2.name],
@@ -2844,7 +2774,7 @@ var FormContainerNode = (props) => {
2844
2774
  var FormContainerNode_default = FormContainerNode;
2845
2775
 
2846
2776
  // src/components/pageRenderingEngine/nodes/DivContainer.tsx
2847
- import React40 from "react";
2777
+ import React39 from "react";
2848
2778
 
2849
2779
  // src/components/pageRenderingEngine/nodes/EmbedNode.tsx
2850
2780
  import dynamic6 from "next/dynamic";
@@ -2866,8 +2796,8 @@ var EmbedNode = (props) => {
2866
2796
  var EmbedNode_default = EmbedNode;
2867
2797
 
2868
2798
  // src/components/Slider.tsx
2869
- import React38, { useState as useState5, useEffect as useEffect8, Children, cloneElement } from "react";
2870
- import { Fragment as Fragment7, jsx as jsx54, jsxs as jsxs28 } from "react/jsx-runtime";
2799
+ import React37, { useState as useState5, useEffect as useEffect8, Children, cloneElement } from "react";
2800
+ import { Fragment as Fragment6, jsx as jsx54, jsxs as jsxs28 } from "react/jsx-runtime";
2871
2801
  var Slider = ({
2872
2802
  children,
2873
2803
  slidesToShow = 4,
@@ -2961,7 +2891,7 @@ var Slider = ({
2961
2891
  };
2962
2892
  const translateX = -currentSlide * (100 / slidesToShowState);
2963
2893
  const slides = Children.map(children, (child, index) => {
2964
- if (!React38.isValidElement(child)) return null;
2894
+ if (!React37.isValidElement(child)) return null;
2965
2895
  const childProps = child.props;
2966
2896
  const mergedClassName = `${childProps.className ?? ""} w-full`.trim();
2967
2897
  return /* @__PURE__ */ jsx54(
@@ -3005,7 +2935,7 @@ var Slider = ({
3005
2935
  children: slides
3006
2936
  }
3007
2937
  ),
3008
- show_arrows && /* @__PURE__ */ jsxs28(Fragment7, { children: [
2938
+ show_arrows && /* @__PURE__ */ jsxs28(Fragment6, { children: [
3009
2939
  /* @__PURE__ */ jsx54(
3010
2940
  ArrowButton,
3011
2941
  {
@@ -3701,7 +3631,7 @@ var Pagination_default = Pagination;
3701
3631
 
3702
3632
  // src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
3703
3633
  import dynamic7 from "next/dynamic";
3704
- import { Fragment as Fragment8, jsx as jsx57, jsxs as jsxs31 } from "react/jsx-runtime";
3634
+ import { Fragment as Fragment7, jsx as jsx57, jsxs as jsxs31 } from "react/jsx-runtime";
3705
3635
  var HlsPlayer2 = dynamic7(() => import("./HlsPlayer-GZR4QXJY.mjs"), { ssr: false });
3706
3636
  var deviceToMediaQuery = (device) => {
3707
3637
  switch (device) {
@@ -3770,8 +3700,8 @@ var ImageGalleryNode = (props) => {
3770
3700
  right: "justify-end"
3771
3701
  };
3772
3702
  const formatClasses = FormatClass[props.node.format || ""] || "";
3773
- return /* @__PURE__ */ jsxs31(Fragment8, { children: [
3774
- hlsSources.length > 0 && /* @__PURE__ */ jsx57(Fragment8, { children: /* @__PURE__ */ jsx57(
3703
+ return /* @__PURE__ */ jsxs31(Fragment7, { children: [
3704
+ hlsSources.length > 0 && /* @__PURE__ */ jsx57(Fragment7, { children: /* @__PURE__ */ jsx57(
3775
3705
  HlsPlayer2,
3776
3706
  {
3777
3707
  sources: hlsSources,
@@ -3785,7 +3715,7 @@ var ImageGalleryNode = (props) => {
3785
3715
  session: props.session
3786
3716
  }
3787
3717
  ) }),
3788
- staticFallback && /* @__PURE__ */ jsx57(Fragment8, { children: /* @__PURE__ */ jsxs31("picture", { children: [
3718
+ staticFallback && /* @__PURE__ */ jsx57(Fragment7, { children: /* @__PURE__ */ jsxs31("picture", { children: [
3789
3719
  DEVICE_ORDER.map((deviceKey) => {
3790
3720
  const match = staticSources.find((img) => img.device === deviceKey);
3791
3721
  if (!match) return null;
@@ -4061,7 +3991,7 @@ var DivContainer = async (props) => {
4061
3991
  }
4062
3992
  const SelectedNode = NodeTypes2[node.type];
4063
3993
  if (!SelectedNode) return null;
4064
- return /* @__PURE__ */ jsx58(React40.Fragment, { children: /* @__PURE__ */ jsx58(
3994
+ return /* @__PURE__ */ jsx58(React39.Fragment, { children: /* @__PURE__ */ jsx58(
4065
3995
  SelectedNode,
4066
3996
  {
4067
3997
  node,
@@ -4163,9 +4093,9 @@ var DivContainer = async (props) => {
4163
4093
  props.node.autoFormat && "auto-format",
4164
4094
  props.node.bgClass
4165
4095
  ].filter(Boolean).join(" ");
4166
- return /* @__PURE__ */ jsxs32(React40.Fragment, { children: [
4096
+ return /* @__PURE__ */ jsxs32(React39.Fragment, { children: [
4167
4097
  /* @__PURE__ */ jsx58("style", { dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS } }),
4168
- /* @__PURE__ */ jsx58(React40.Fragment, { children: /* @__PURE__ */ jsx58(
4098
+ /* @__PURE__ */ jsx58(React39.Fragment, { children: /* @__PURE__ */ jsx58(
4169
4099
  Wrapper,
4170
4100
  {
4171
4101
  id: guid,
@@ -4174,7 +4104,7 @@ var DivContainer = async (props) => {
4174
4104
  ...wrapperProps,
4175
4105
  children: dataToRender.map(
4176
4106
  (item, idx) => item?.links?.view && renderLink ? renderChildren(props.node.children, props, item, idx, props.href ? void 0 : item?.links?.view)?.map(
4177
- (child, i) => /* @__PURE__ */ jsx58(React40.Fragment, { children: child }, i)
4107
+ (child, i) => /* @__PURE__ */ jsx58(React39.Fragment, { children: child }, i)
4178
4108
  ) : renderChildren(props.node.children, props, item, idx)
4179
4109
  )
4180
4110
  }
@@ -4213,11 +4143,11 @@ var PageBodyRenderer = (props) => {
4213
4143
  if (pageBodyTree && pageBodyTree.root) {
4214
4144
  rootNode = pageBodyTree.root;
4215
4145
  }
4216
- return /* @__PURE__ */ jsx59(React41.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
4146
+ return /* @__PURE__ */ jsx59(React40.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
4217
4147
  {
4218
4148
  }
4219
4149
  const SelectedNode = NodeTypes[node.type];
4220
- return /* @__PURE__ */ jsx59(React41.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx59(React41.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ jsx59(React41.Fragment, { children: /* @__PURE__ */ jsx59(
4150
+ return /* @__PURE__ */ jsx59(React40.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx59(React40.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ jsx59(React40.Fragment, { children: /* @__PURE__ */ jsx59(
4221
4151
  SelectedNode,
4222
4152
  {
4223
4153
  node,
@@ -4233,7 +4163,7 @@ var PageBodyRenderer = (props) => {
4233
4163
  device: props.device,
4234
4164
  widgetRenderer: props.widgetRenderer
4235
4165
  }
4236
- ) }) : /* @__PURE__ */ jsx59(React41.Fragment, { children: /* @__PURE__ */ jsx59(
4166
+ ) }) : /* @__PURE__ */ jsx59(React40.Fragment, { children: /* @__PURE__ */ jsx59(
4237
4167
  SelectedNode,
4238
4168
  {
4239
4169
  node,
@@ -4255,7 +4185,7 @@ var PageBodyRenderer_default = PageBodyRenderer;
4255
4185
 
4256
4186
  // src/components/Toast.tsx
4257
4187
  import { useState as useState7 } from "react";
4258
- import { Fragment as Fragment9, jsx as jsx60, jsxs as jsxs33 } from "react/jsx-runtime";
4188
+ import { Fragment as Fragment8, jsx as jsx60, jsxs as jsxs33 } from "react/jsx-runtime";
4259
4189
  var Toast = () => {
4260
4190
  const [showToast, setShowToast] = useState7(false);
4261
4191
  const [message, setMessage] = useState7("");
@@ -4298,7 +4228,7 @@ var Toast = () => {
4298
4228
  const closeToast = () => {
4299
4229
  setShowToast(false);
4300
4230
  };
4301
- return /* @__PURE__ */ jsx60(Fragment9, { children: showToast && /* @__PURE__ */ jsx60("div", { className: "fixed top-2 flex justify-center w-1/2 max-w-xl left-1/2 -translate-x-1/2", style: { zIndex: 1e3 }, children: /* @__PURE__ */ jsxs33("div", { className: `w-full items-center flex justify-between p-3 rounded-md relative shadow border bg-${messageType}-soft`, children: [
4231
+ return /* @__PURE__ */ jsx60(Fragment8, { children: showToast && /* @__PURE__ */ jsx60("div", { className: "fixed top-2 flex justify-center w-1/2 max-w-xl left-1/2 -translate-x-1/2", style: { zIndex: 1e3 }, children: /* @__PURE__ */ jsxs33("div", { className: `w-full items-center flex justify-between p-3 rounded-md relative shadow border bg-${messageType}-soft`, children: [
4302
4232
  /* @__PURE__ */ jsx60(
4303
4233
  "span",
4304
4234
  {
@@ -4364,22 +4294,22 @@ var NavigationTabsV2 = ({ tabs, params = {} }) => {
4364
4294
  var NavigationTabsV2_default = NavigationTabsV2;
4365
4295
 
4366
4296
  // src/components/dataForm/DataList.tsx
4367
- import React45, { useEffect as useEffect9, useState as useState8, useCallback as useCallback3, useReducer as useReducer2 } from "react";
4297
+ import React44, { useEffect as useEffect9, useState as useState8, useCallback as useCallback3, useReducer as useReducer2 } from "react";
4368
4298
  import { useRouter } from "next/navigation";
4369
4299
 
4370
4300
  // src/components/dataForm/NoContentView.tsx
4371
- import React43 from "react";
4301
+ import React42 from "react";
4372
4302
  import { jsx as jsx62 } from "react/jsx-runtime";
4373
4303
  var NoContentView = (props) => {
4374
- return /* @__PURE__ */ jsx62(React43.Fragment, { children: props.isDataFound === false && props.children });
4304
+ return /* @__PURE__ */ jsx62(React42.Fragment, { children: props.isDataFound === false && props.children });
4375
4305
  };
4376
4306
  var NoContentView_default = NoContentView;
4377
4307
 
4378
4308
  // src/components/dataForm/ContentView.tsx
4379
- import React44 from "react";
4309
+ import React43 from "react";
4380
4310
  import { jsx as jsx63, jsxs as jsxs34 } from "react/jsx-runtime";
4381
4311
  var ContentView = (props) => {
4382
- return /* @__PURE__ */ jsxs34(React44.Fragment, { children: [
4312
+ return /* @__PURE__ */ jsxs34(React43.Fragment, { children: [
4383
4313
  props.isDataFound == null && /* @__PURE__ */ jsx63("div", { className: "", children: /* @__PURE__ */ jsxs34("div", { className: "bg-gray-200 rounded-md p-4 animate-pulse", children: [
4384
4314
  /* @__PURE__ */ jsxs34("div", { className: "flex items-center mb-4", children: [
4385
4315
  /* @__PURE__ */ jsx63("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
@@ -4418,7 +4348,7 @@ var ContentView = (props) => {
4418
4348
  var ContentView_default = ContentView;
4419
4349
 
4420
4350
  // src/components/dataForm/DataList.tsx
4421
- import { Fragment as Fragment10, jsx as jsx64, jsxs as jsxs35 } from "react/jsx-runtime";
4351
+ import { Fragment as Fragment9, jsx as jsx64, jsxs as jsxs35 } from "react/jsx-runtime";
4422
4352
  var DataList = (props) => {
4423
4353
  console.log(props.dataset, "datasetssssss");
4424
4354
  const router = useRouter();
@@ -4497,7 +4427,7 @@ var DataList = (props) => {
4497
4427
  const renderPageNumbers = () => {
4498
4428
  if (pages <= 10) {
4499
4429
  return Array.from({ length: pages }, (_, index) => index + 1).map(
4500
- (page) => /* @__PURE__ */ jsx64(React45.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx64(
4430
+ (page) => /* @__PURE__ */ jsx64(React44.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx64(
4501
4431
  Hyperlink,
4502
4432
  {
4503
4433
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -4510,8 +4440,8 @@ var DataList = (props) => {
4510
4440
  const showFirstPages = activePageNumber <= 5;
4511
4441
  const showLastPages = activePageNumber > pages - 5;
4512
4442
  if (showFirstPages) {
4513
- return /* @__PURE__ */ jsxs35(Fragment10, { children: [
4514
- Array.from({ length: 8 }, (_, index) => index + 1).map((page) => /* @__PURE__ */ jsx64(React45.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx64(
4443
+ return /* @__PURE__ */ jsxs35(Fragment9, { children: [
4444
+ Array.from({ length: 8 }, (_, index) => index + 1).map((page) => /* @__PURE__ */ jsx64(React44.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx64(
4515
4445
  Hyperlink,
4516
4446
  {
4517
4447
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -4558,7 +4488,7 @@ var DataList = (props) => {
4558
4488
  ) })
4559
4489
  ] });
4560
4490
  } else if (showLastPages) {
4561
- return /* @__PURE__ */ jsxs35(Fragment10, { children: [
4491
+ return /* @__PURE__ */ jsxs35(Fragment9, { children: [
4562
4492
  /* @__PURE__ */ jsx64(
4563
4493
  Hyperlink,
4564
4494
  {
@@ -4577,7 +4507,7 @@ var DataList = (props) => {
4577
4507
  ),
4578
4508
  /* @__PURE__ */ jsx64("span", { className: "px-2 py-1", children: "..." }),
4579
4509
  Array.from({ length: 8 }, (_, index) => pages - 7 + index).map(
4580
- (page) => /* @__PURE__ */ jsx64(React45.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx64(
4510
+ (page) => /* @__PURE__ */ jsx64(React44.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx64(
4581
4511
  Hyperlink,
4582
4512
  {
4583
4513
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -4588,7 +4518,7 @@ var DataList = (props) => {
4588
4518
  )
4589
4519
  ] });
4590
4520
  } else {
4591
- return /* @__PURE__ */ jsxs35(Fragment10, { children: [
4521
+ return /* @__PURE__ */ jsxs35(Fragment9, { children: [
4592
4522
  /* @__PURE__ */ jsx64(
4593
4523
  Hyperlink,
4594
4524
  {
@@ -4609,7 +4539,7 @@ var DataList = (props) => {
4609
4539
  Array.from(
4610
4540
  { length: 5 },
4611
4541
  (_, index) => activePageNumber - 2 + index
4612
- ).map((page) => /* @__PURE__ */ jsx64(React45.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx64(
4542
+ ).map((page) => /* @__PURE__ */ jsx64(React44.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx64(
4613
4543
  Hyperlink,
4614
4544
  {
4615
4545
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -4655,7 +4585,7 @@ var DataList = (props) => {
4655
4585
  }
4656
4586
  }
4657
4587
  };
4658
- return /* @__PURE__ */ jsxs35(React45.Fragment, { children: [
4588
+ return /* @__PURE__ */ jsxs35(React44.Fragment, { children: [
4659
4589
  /* @__PURE__ */ jsxs35(ContentView_default, { isDataFound, children: [
4660
4590
  (props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ jsxs35(
4661
4591
  "div",
@@ -4733,7 +4663,7 @@ var DataList = (props) => {
4733
4663
  }
4734
4664
  return /* @__PURE__ */ jsx64("tr", { className: validityClass, children: props?.columns?.map((column, colindex) => {
4735
4665
  console.log("column", column);
4736
- return /* @__PURE__ */ jsx64(React45.Fragment, { children: /* @__PURE__ */ jsx64(
4666
+ return /* @__PURE__ */ jsx64(React44.Fragment, { children: /* @__PURE__ */ jsx64(
4737
4667
  "td",
4738
4668
  {
4739
4669
  className: "px-6 py-2 whitespace-normal " + (column.controlType == ViewControlTypes_default.money ? "" : ""),
@@ -4885,7 +4815,7 @@ var DataList = (props) => {
4885
4815
  var DataList_default = DataList;
4886
4816
 
4887
4817
  // src/components/dataForm/DataListRenderer.tsx
4888
- import React46, { useState as useState9, useEffect as useEffect10 } from "react";
4818
+ import React45, { useState as useState9, useEffect as useEffect10 } from "react";
4889
4819
  import { usePathname as usePathname2 } from "next/navigation";
4890
4820
  import { jsx as jsx65, jsxs as jsxs36 } from "react/jsx-runtime";
4891
4821
  var viewControlMap = {
@@ -4976,7 +4906,7 @@ var DataListRenderer = ({
4976
4906
  const [tabItem, setTabItem] = useState9();
4977
4907
  const activeTab = tabItem?.find((tab) => tab.isActive);
4978
4908
  const activeHref = activeTab ? resolveRoutePlaceholders2(activeTab.landingPageUrl, params) : pathname;
4979
- return /* @__PURE__ */ jsxs36(React46.Fragment, { children: [
4909
+ return /* @__PURE__ */ jsxs36(React45.Fragment, { children: [
4980
4910
  widgetProps && /* @__PURE__ */ jsx65(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
4981
4911
  /* @__PURE__ */ jsx65(
4982
4912
  DataList_default,
@@ -4997,10 +4927,10 @@ var DataListRenderer = ({
4997
4927
  var DataListRenderer_default = DataListRenderer;
4998
4928
 
4999
4929
  // src/components/dataForm/DataForm.tsx
5000
- import React48, { useCallback as useCallback5, useEffect as useEffect11, useReducer as useReducer3, useRef as useRef4 } from "react";
4930
+ import React47, { useCallback as useCallback5, useEffect as useEffect11, useReducer as useReducer3, useRef as useRef4 } from "react";
5001
4931
 
5002
4932
  // src/components/dataForm/DataFormChildSection.tsx
5003
- import React47, { useCallback as useCallback4 } from "react";
4933
+ import React46, { useCallback as useCallback4 } from "react";
5004
4934
 
5005
4935
  // src/components/dataForm/StyleTypes.tsx
5006
4936
  var StyleTypes2 = /* @__PURE__ */ ((StyleTypes3) => {
@@ -5091,7 +5021,7 @@ var DataFormChildSection = (props) => {
5091
5021
  childItemsToRender,
5092
5022
  allChildItems: childItems
5093
5023
  });
5094
- return /* @__PURE__ */ jsx66(React47.Fragment, { children: /* @__PURE__ */ jsxs37("div", { className: "rounded border-neutral-200 border px-6 py-4 mb-2", children: [
5024
+ return /* @__PURE__ */ jsx66(React46.Fragment, { children: /* @__PURE__ */ jsxs37("div", { className: "rounded border-neutral-200 border px-6 py-4 mb-2", children: [
5095
5025
  section.sectionTitle && /* @__PURE__ */ jsx66("div", { className: "mb-4 text-lg font-medium text-body-950", children: section.sectionTitle }),
5096
5026
  /* @__PURE__ */ jsx66("div", { className: "flex-grow flex flex-col justify-between overflow-y-auto", children: /* @__PURE__ */ jsxs37("div", { className: "flex flex-col justify-between gap-2", children: [
5097
5027
  /* @__PURE__ */ jsx66("div", { children: /* @__PURE__ */ jsxs37("table", { className: "w-full border-separate divide-y divide-gray-200", children: [
@@ -5113,7 +5043,7 @@ var DataFormChildSection = (props) => {
5113
5043
  /* @__PURE__ */ jsx66("tbody", { className: "divide-y divide-gray-200", children: childItemsToRender.map((visibleItem, filteredIndex) => {
5114
5044
  const { item, originalIndex } = visibleItem;
5115
5045
  const rowKey = originalIndex;
5116
- return /* @__PURE__ */ jsx66(React47.Fragment, { children: section.sectionRows.map(
5046
+ return /* @__PURE__ */ jsx66(React46.Fragment, { children: section.sectionRows.map(
5117
5047
  (sectionRow, sectionRowIndex) => {
5118
5048
  return /* @__PURE__ */ jsxs37(
5119
5049
  "tr",
@@ -5402,7 +5332,7 @@ var DataForm = (props) => {
5402
5332
  return false;
5403
5333
  }
5404
5334
  }
5405
- return /* @__PURE__ */ jsx67(React48.Fragment, { children: /* @__PURE__ */ jsxs38("div", { className: "flex-grow flex flex-col", children: [
5335
+ return /* @__PURE__ */ jsx67(React47.Fragment, { children: /* @__PURE__ */ jsxs38("div", { className: "flex-grow flex flex-col", children: [
5406
5336
  props.title && /* @__PURE__ */ jsx67("div", { className: "inline-flex items-center gap-2 px-6 py-3 border border-neutral-200 bg-white shadow-sm rounded-t-md", children: /* @__PURE__ */ jsxs38(
5407
5337
  "div",
5408
5338
  {
@@ -5436,7 +5366,7 @@ var DataForm = (props) => {
5436
5366
  }
5437
5367
  },
5438
5368
  children: /* @__PURE__ */ jsx67("div", { className: "flex flex-col gap-6", children: props.sections?.map((section, sectionIndex) => {
5439
- return /* @__PURE__ */ jsx67(React48.Fragment, { children: !section.isChildSection && /* @__PURE__ */ jsxs38("div", { className: " rounded-b-lg bg-white shadow border-neutral-200 border px-8 py-6 ", children: [
5369
+ return /* @__PURE__ */ jsx67(React47.Fragment, { children: !section.isChildSection && /* @__PURE__ */ jsxs38("div", { className: " rounded-b-lg bg-white shadow border-neutral-200 border px-8 py-6 ", children: [
5440
5370
  section.sectionRows?.map(
5441
5371
  (sectionRow, sectionRowIndex) => {
5442
5372
  const elementsCount = sectionRow.elements.length;
@@ -5447,7 +5377,7 @@ var DataForm = (props) => {
5447
5377
  sectionRow.visible
5448
5378
  );
5449
5379
  }
5450
- return /* @__PURE__ */ jsx67(React48.Fragment, { children: isVisible && /* @__PURE__ */ jsx67("div", { className: "lg:flex gap-14 flex-1 mb-4 ", children: sectionRow.elements.map((field, index) => {
5380
+ return /* @__PURE__ */ jsx67(React47.Fragment, { children: isVisible && /* @__PURE__ */ jsx67("div", { className: "lg:flex gap-14 flex-1 mb-4 ", children: sectionRow.elements.map((field, index) => {
5451
5381
  return /* @__PURE__ */ jsxs38(
5452
5382
  "div",
5453
5383
  {