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

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 +216 -280
  2. package/dist/index.mjs +163 -227
  3. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -116,117 +116,76 @@ 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"
189
- };
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
- );
223
- }
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 }
224
157
  };
225
- if (width) {
226
- return /* @__PURE__ */ jsx3("div", { style: { width }, children: renderMedia() });
227
- }
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
+ ) : (
172
+ // eslint-disable-next-line @next/next/no-img-element
173
+ /* @__PURE__ */ jsx3(
174
+ "img",
175
+ {
176
+ style: styles,
177
+ loading: "lazy",
178
+ className: "object-cover w-full",
179
+ src: resolvedAssetUrl,
180
+ width: selectedAsset.intrinsicWidth,
181
+ height: selectedAsset.intrinsicHeight,
182
+ alt: title || "Asset image"
183
+ }
184
+ )
185
+ );
186
+ if (width) return /* @__PURE__ */ jsx3("div", { style: { width }, children: renderMedia() });
228
187
  if (nodeProps?.format) {
229
- return /* @__PURE__ */ jsx3("div", { className: `flex ${formatClasses}`, children: renderMedia() });
188
+ return /* @__PURE__ */ jsx3("div", { className: `flex ${FORMAT_CLASSES[nodeProps.format] ?? ""}`, children: renderMedia() });
230
189
  }
231
190
  return renderMedia();
232
191
  };
@@ -1929,10 +1888,10 @@ InputControl.displayName = "InputControl";
1929
1888
  var InputControl_default = InputControl;
1930
1889
 
1931
1890
  // src/components/pageRenderingEngine/PageBodyRenderer.tsx
1932
- import React41 from "react";
1891
+ import React40 from "react";
1933
1892
 
1934
1893
  // src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
1935
- import React30 from "react";
1894
+ import React29 from "react";
1936
1895
 
1937
1896
  // src/components/pageRenderingEngine/nodes/TextNode.tsx
1938
1897
  import { jsx as jsx36, jsxs as jsxs22 } from "react/jsx-runtime";
@@ -2014,15 +1973,12 @@ var LineBreakNode = () => {
2014
1973
  var LineBreakNode_default = LineBreakNode;
2015
1974
 
2016
1975
  // src/components/pageRenderingEngine/nodes/LinkNode.tsx
2017
- import React29 from "react";
1976
+ import React28 from "react";
2018
1977
 
2019
1978
  // src/components/pageRenderingEngine/nodes/ImageNode.tsx
2020
- import React28 from "react";
2021
1979
  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
- });
1980
+ import { jsx as jsx38 } from "react/jsx-runtime";
1981
+ var HlsPlayer = dynamic3(() => import("./HlsPlayer-GZR4QXJY.mjs"), { ssr: false });
2026
1982
  var getNestedValue = (obj, path) => {
2027
1983
  if (!obj || !path) return void 0;
2028
1984
  return path.split(".").reduce((current, key) => {
@@ -2036,20 +1992,13 @@ var ImageNode = (props) => {
2036
1992
  const currentDevice = props.device;
2037
1993
  if (props.node.device) {
2038
1994
  const nodeDevice = props.node.device;
2039
- if (nodeDevice !== currentDevice) {
2040
- return null;
2041
- }
1995
+ if (nodeDevice !== currentDevice) return null;
2042
1996
  }
2043
- console.log("ImageNode device / currentDevice:", props.node.device, currentDevice);
2044
1997
  if (props.node.imageUrl.startsWith("http")) {
2045
1998
  imageUrl = props.node.imageUrl;
2046
- posterUrl = AssetUtility_default.resolveUrl(
2047
- props.assetBaseUrl,
2048
- props.node.posterUrl
2049
- );
1999
+ posterUrl = AssetUtility_default.resolveUrl(props.assetBaseUrl, props.node.posterUrl);
2050
2000
  } else if (props.dataitem && props.node.datafield) {
2051
2001
  const image = getNestedValue(props.dataitem, props.node.datafield);
2052
- console.log("ImageNode Datafield Image:", image);
2053
2002
  try {
2054
2003
  if (typeof image === "string") {
2055
2004
  assets = JSON.parse(image);
@@ -2058,11 +2007,10 @@ var ImageNode = (props) => {
2058
2007
  } else if (image && typeof image === "object") {
2059
2008
  assets = [image];
2060
2009
  }
2061
- } catch (error) {
2062
- console.error("Error parsing assets in ImageNode:", error);
2010
+ } catch {
2063
2011
  }
2064
2012
  if (assets && assets.length > 0) {
2065
- return /* @__PURE__ */ jsx38(Fragment2, { children: /* @__PURE__ */ jsx38(
2013
+ return /* @__PURE__ */ jsx38(
2066
2014
  DeviceAssetSelector_default,
2067
2015
  {
2068
2016
  device: props.device,
@@ -2079,11 +2027,10 @@ var ImageNode = (props) => {
2079
2027
  height: props.node.height,
2080
2028
  format: props.node.format,
2081
2029
  tag: props.node.tag,
2082
- // Add tag to ImageNode if needed
2083
2030
  placementCode: props.node.placementCode
2084
2031
  }
2085
2032
  }
2086
- ) });
2033
+ );
2087
2034
  } else {
2088
2035
  imageUrl = AssetUtility_default.resolveUrl(props.assetBaseUrl, props.node.imageUrl);
2089
2036
  posterUrl = AssetUtility_default.resolveUrl(props.assetBaseUrl, props.node.posterUrl);
@@ -2092,56 +2039,45 @@ var ImageNode = (props) => {
2092
2039
  imageUrl = AssetUtility_default.resolveUrl(props.assetBaseUrl, props.node.imageUrl);
2093
2040
  posterUrl = AssetUtility_default.resolveUrl(props.assetBaseUrl, props.node.posterUrl);
2094
2041
  }
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"
2042
+ if (!imageUrl) return null;
2043
+ const styles = {
2044
+ ...props.node.height && { height: props.node.height },
2045
+ ...props.node.borderRadius && { borderRadius: props.node.borderRadius },
2046
+ ...props.node.width && { width: props.node.width }
2107
2047
  };
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
- }
2048
+ const FORMAT_CLASSES2 = {
2049
+ center: "justify-center",
2050
+ left: "justify-start",
2051
+ right: "justify-end"
2142
2052
  };
2053
+ const isHls = imageUrl.endsWith(".m3u8");
2054
+ const renderMedia = () => isHls ? /* @__PURE__ */ jsx38(
2055
+ HlsPlayer,
2056
+ {
2057
+ assetUrl: imageUrl,
2058
+ posterUrl,
2059
+ intrinsicWidth: props.node.intrinsicWidth,
2060
+ intrinsicHeight: props.node.intrinsicHeight,
2061
+ showControls: props.node.showControls === "true",
2062
+ loop: props.node.loop === "true",
2063
+ playOptions: props.node.playOptions,
2064
+ apiBaseUrl: props.apiBaseUrl,
2065
+ session: props.session
2066
+ }
2067
+ ) : /* @__PURE__ */ jsx38(
2068
+ "img",
2069
+ {
2070
+ style: styles,
2071
+ loading: "lazy",
2072
+ className: "object-cover",
2073
+ src: imageUrl,
2074
+ width: props.node.intrinsicWidth,
2075
+ alt: props.node.title,
2076
+ height: props.node.intrinsicHeight
2077
+ }
2078
+ );
2143
2079
  if (props.node.width) {
2144
- return /* @__PURE__ */ jsx38("div", { className: `flex ${formatClasses}`, children: renderMedia() });
2080
+ return /* @__PURE__ */ jsx38("div", { className: `flex ${FORMAT_CLASSES2[props.node.format] ?? ""}`, children: renderMedia() });
2145
2081
  }
2146
2082
  return renderMedia();
2147
2083
  };
@@ -2149,7 +2085,7 @@ var ImageNode_default = ImageNode;
2149
2085
 
2150
2086
  // src/components/pageRenderingEngine/nodes/LinkNode.tsx
2151
2087
  import dynamic4 from "next/dynamic";
2152
- import { Fragment as Fragment3, jsx as jsx39, jsxs as jsxs23 } from "react/jsx-runtime";
2088
+ import { Fragment as Fragment2, jsx as jsx39, jsxs as jsxs23 } from "react/jsx-runtime";
2153
2089
  var LinkNodeButton = dynamic4(() => import("./LinkNodeButton-WDDPNYWI.mjs"), {
2154
2090
  ssr: false
2155
2091
  });
@@ -2196,13 +2132,13 @@ var LinkNode = (props) => {
2196
2132
  const isButton = node.isButton === true;
2197
2133
  const renderChildren = () => {
2198
2134
  if (!node.children || node.children.length === 0) return null;
2199
- return /* @__PURE__ */ jsx39(Fragment3, { children: node.children.map((childNode, index) => {
2135
+ return /* @__PURE__ */ jsx39(Fragment2, { children: node.children.map((childNode, index) => {
2200
2136
  const SelectedNode = NodeTypes2[childNode.type];
2201
2137
  if (!SelectedNode) {
2202
2138
  console.warn("Unknown node type:", childNode.type);
2203
2139
  return null;
2204
2140
  }
2205
- return /* @__PURE__ */ jsx39(React29.Fragment, { children: /* @__PURE__ */ jsx39(
2141
+ return /* @__PURE__ */ jsx39(React28.Fragment, { children: /* @__PURE__ */ jsx39(
2206
2142
  SelectedNode,
2207
2143
  {
2208
2144
  node: childNode,
@@ -2419,7 +2355,7 @@ var DatafieldNode = (props) => {
2419
2355
  var DatafieldNode_default = DatafieldNode;
2420
2356
 
2421
2357
  // src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
2422
- import { Fragment as Fragment4, jsx as jsx43, jsxs as jsxs24 } from "react/jsx-runtime";
2358
+ import { Fragment as Fragment3, jsx as jsx43, jsxs as jsxs24 } from "react/jsx-runtime";
2423
2359
  var ParagraphNode = (props) => {
2424
2360
  const NodeTypes2 = {
2425
2361
  ["text"]: TextNode_default,
@@ -2439,9 +2375,9 @@ var ParagraphNode = (props) => {
2439
2375
  const isInlineOnlyParent = props.parentTag === "summary";
2440
2376
  const hasChildren = props.node.children && props.node.children.length > 0;
2441
2377
  if (isInlineOnlyParent) {
2442
- return /* @__PURE__ */ jsx43(Fragment4, { children: hasChildren && props.node.children.map((node, index) => {
2378
+ return /* @__PURE__ */ jsx43(Fragment3, { children: hasChildren && props.node.children.map((node, index) => {
2443
2379
  const SelectedNode = NodeTypes2[node.type];
2444
- return /* @__PURE__ */ jsx43(React30.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx43(
2380
+ return /* @__PURE__ */ jsx43(React29.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx43(
2445
2381
  SelectedNode,
2446
2382
  {
2447
2383
  node,
@@ -2456,7 +2392,7 @@ var ParagraphNode = (props) => {
2456
2392
  return /* @__PURE__ */ jsxs24("div", { className: " " + formatClasses, children: [
2457
2393
  hasChildren && props.node.children.map((node, index) => {
2458
2394
  const SelectedNode = NodeTypes2[node.type];
2459
- return /* @__PURE__ */ jsx43(React30.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx43(
2395
+ return /* @__PURE__ */ jsx43(React29.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx43(
2460
2396
  SelectedNode,
2461
2397
  {
2462
2398
  node,
@@ -2473,8 +2409,8 @@ var ParagraphNode = (props) => {
2473
2409
  var ParagraphNode_default = ParagraphNode;
2474
2410
 
2475
2411
  // src/components/pageRenderingEngine/nodes/HeadingNode.tsx
2476
- import React31 from "react";
2477
- import { Fragment as Fragment5, jsx as jsx44 } from "react/jsx-runtime";
2412
+ import React30 from "react";
2413
+ import { Fragment as Fragment4, jsx as jsx44 } from "react/jsx-runtime";
2478
2414
  var HeadingNode = (props) => {
2479
2415
  const NodeTypes2 = {
2480
2416
  ["text"]: TextNode_default,
@@ -2490,22 +2426,22 @@ var HeadingNode = (props) => {
2490
2426
  {
2491
2427
  }
2492
2428
  const formatClasses = FormatClass[props.node.format] || "";
2493
- return /* @__PURE__ */ jsx44(Fragment5, { children: React31.createElement(
2429
+ return /* @__PURE__ */ jsx44(Fragment4, { children: React30.createElement(
2494
2430
  HeadingTag,
2495
2431
  { className: formatClasses },
2496
2432
  props.node.children && props.node.children.map((childNode, index) => {
2497
2433
  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);
2434
+ 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
2435
  })
2500
2436
  ) });
2501
2437
  };
2502
2438
  var HeadingNode_default = HeadingNode;
2503
2439
 
2504
2440
  // src/components/pageRenderingEngine/nodes/ListNode.tsx
2505
- import React33 from "react";
2441
+ import React32 from "react";
2506
2442
 
2507
2443
  // src/components/pageRenderingEngine/nodes/ListItemNode.tsx
2508
- import React32 from "react";
2444
+ import React31 from "react";
2509
2445
  import { jsx as jsx45 } from "react/jsx-runtime";
2510
2446
  var ListItemNode = (props) => {
2511
2447
  const NodeTypes2 = {
@@ -2534,7 +2470,7 @@ var ListItemNode = (props) => {
2534
2470
  }
2535
2471
  } else {
2536
2472
  foundFirstBreak = false;
2537
- return /* @__PURE__ */ jsx45(React32.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx45(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
2473
+ return /* @__PURE__ */ jsx45(React31.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx45(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
2538
2474
  }
2539
2475
  }) });
2540
2476
  };
@@ -2546,21 +2482,21 @@ var ListNode = (props) => {
2546
2482
  const NodeTypes2 = {
2547
2483
  listitem: ListItemNode_default
2548
2484
  };
2549
- return /* @__PURE__ */ jsxs25(React33.Fragment, { children: [
2485
+ return /* @__PURE__ */ jsxs25(React32.Fragment, { children: [
2550
2486
  props.node.listType == "bullet" && /* @__PURE__ */ jsx46("ul", { children: props.node.children && props.node.children.map((node, index) => {
2551
2487
  const SelectedNode = NodeTypes2[node.type];
2552
- return /* @__PURE__ */ jsx46(React33.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx46(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
2488
+ return /* @__PURE__ */ jsx46(React32.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx46(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
2553
2489
  }) }),
2554
2490
  props.node.listType == "number" && /* @__PURE__ */ jsx46("ol", { children: props.node.children && props.node.children.map((node, index) => {
2555
2491
  const SelectedNode = NodeTypes2[node.type];
2556
- return /* @__PURE__ */ jsx46(React33.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx46(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
2492
+ return /* @__PURE__ */ jsx46(React32.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx46(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
2557
2493
  }) })
2558
2494
  ] });
2559
2495
  };
2560
2496
  var ListNode_default = ListNode;
2561
2497
 
2562
2498
  // src/components/pageRenderingEngine/nodes/QuoteNode.tsx
2563
- import React34 from "react";
2499
+ import React33 from "react";
2564
2500
  import { jsx as jsx47 } from "react/jsx-runtime";
2565
2501
  var QuoteNode = (props) => {
2566
2502
  const NodeTypes2 = {
@@ -2570,13 +2506,13 @@ var QuoteNode = (props) => {
2570
2506
  };
2571
2507
  return /* @__PURE__ */ jsx47("blockquote", { children: props.node.children && props.node.children.map((node, index) => {
2572
2508
  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);
2509
+ return /* @__PURE__ */ jsx47(React33.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx47(SelectedNode, { node, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
2574
2510
  }) });
2575
2511
  };
2576
2512
  var QuoteNode_default = QuoteNode;
2577
2513
 
2578
2514
  // src/components/pageRenderingEngine/nodes/CodeNode.tsx
2579
- import React35 from "react";
2515
+ import React34 from "react";
2580
2516
  import dynamic5 from "next/dynamic";
2581
2517
  import { jsx as jsx48, jsxs as jsxs26 } from "react/jsx-runtime";
2582
2518
  var CopyButton = dynamic5(() => import("./CopyButton-XONTQQW7.mjs"), {
@@ -2603,7 +2539,7 @@ var CodeNode = (props) => {
2603
2539
  ] }),
2604
2540
  /* @__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
2541
  const SelectedNode = NodeTypes2[node.type];
2606
- return /* @__PURE__ */ jsx48(React35.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx48(
2542
+ return /* @__PURE__ */ jsx48(React34.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx48(
2607
2543
  SelectedNode,
2608
2544
  {
2609
2545
  node,
@@ -2625,8 +2561,8 @@ var HorizontalRuleNode = () => {
2625
2561
  var HorizontalRuleNode_default = HorizontalRuleNode;
2626
2562
 
2627
2563
  // src/components/pageRenderingEngine/nodes/WidgetNode.tsx
2628
- import React36 from "react";
2629
- import { Fragment as Fragment6, jsx as jsx50 } from "react/jsx-runtime";
2564
+ import React35 from "react";
2565
+ import { Fragment as Fragment5, jsx as jsx50 } from "react/jsx-runtime";
2630
2566
  var WidgetNode = (props) => {
2631
2567
  const getWidgetParameters = () => {
2632
2568
  const widgetInputParameters = {
@@ -2690,7 +2626,7 @@ var WidgetNode = (props) => {
2690
2626
  };
2691
2627
  const widgetCode = props.node?.widgetCode;
2692
2628
  if (!widgetCode) {
2693
- return /* @__PURE__ */ jsx50(Fragment6, { children: "Invalid widget" });
2629
+ return /* @__PURE__ */ jsx50(Fragment5, { children: "Invalid widget" });
2694
2630
  }
2695
2631
  const widgetParams = getWidgetParameters();
2696
2632
  const WidgetRenderer = props.widgetRenderer;
@@ -2699,7 +2635,7 @@ var WidgetNode = (props) => {
2699
2635
  }
2700
2636
  return (
2701
2637
  // eslint-disable-next-line react-hooks/static-components
2702
- /* @__PURE__ */ jsx50(React36.Fragment, { children: /* @__PURE__ */ jsx50(
2638
+ /* @__PURE__ */ jsx50(React35.Fragment, { children: /* @__PURE__ */ jsx50(
2703
2639
  WidgetRenderer,
2704
2640
  {
2705
2641
  params: widgetParams,
@@ -2716,7 +2652,7 @@ var WidgetNode = (props) => {
2716
2652
  var WidgetNode_default = WidgetNode;
2717
2653
 
2718
2654
  // src/components/pageRenderingEngine/nodes/FormContainerNode.tsx
2719
- import React37, { useRef as useRef3, useReducer, useCallback as useCallback2, useEffect as useEffect7 } from "react";
2655
+ import React36, { useRef as useRef3, useReducer, useCallback as useCallback2, useEffect as useEffect7 } from "react";
2720
2656
 
2721
2657
  // src/components/pageRenderingEngine/nodes/InputControlNode.tsx
2722
2658
  import { jsx as jsx51 } from "react/jsx-runtime";
@@ -2829,7 +2765,7 @@ var FormContainerNode = (props) => {
2829
2765
  {
2830
2766
  }
2831
2767
  const SelectedNode = NodeTypes2[node2.type];
2832
- return /* @__PURE__ */ jsx52(React37.Fragment, { children: SelectedNode && node2.type == "input-control" && /* @__PURE__ */ jsx52(
2768
+ return /* @__PURE__ */ jsx52(React36.Fragment, { children: SelectedNode && node2.type == "input-control" && /* @__PURE__ */ jsx52(
2833
2769
  InputControlNode_default,
2834
2770
  {
2835
2771
  value: formState.inputValues[node2.name],
@@ -2844,7 +2780,7 @@ var FormContainerNode = (props) => {
2844
2780
  var FormContainerNode_default = FormContainerNode;
2845
2781
 
2846
2782
  // src/components/pageRenderingEngine/nodes/DivContainer.tsx
2847
- import React40 from "react";
2783
+ import React39 from "react";
2848
2784
 
2849
2785
  // src/components/pageRenderingEngine/nodes/EmbedNode.tsx
2850
2786
  import dynamic6 from "next/dynamic";
@@ -2866,8 +2802,8 @@ var EmbedNode = (props) => {
2866
2802
  var EmbedNode_default = EmbedNode;
2867
2803
 
2868
2804
  // 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";
2805
+ import React37, { useState as useState5, useEffect as useEffect8, Children, cloneElement } from "react";
2806
+ import { Fragment as Fragment6, jsx as jsx54, jsxs as jsxs28 } from "react/jsx-runtime";
2871
2807
  var Slider = ({
2872
2808
  children,
2873
2809
  slidesToShow = 4,
@@ -2961,7 +2897,7 @@ var Slider = ({
2961
2897
  };
2962
2898
  const translateX = -currentSlide * (100 / slidesToShowState);
2963
2899
  const slides = Children.map(children, (child, index) => {
2964
- if (!React38.isValidElement(child)) return null;
2900
+ if (!React37.isValidElement(child)) return null;
2965
2901
  const childProps = child.props;
2966
2902
  const mergedClassName = `${childProps.className ?? ""} w-full`.trim();
2967
2903
  return /* @__PURE__ */ jsx54(
@@ -3005,7 +2941,7 @@ var Slider = ({
3005
2941
  children: slides
3006
2942
  }
3007
2943
  ),
3008
- show_arrows && /* @__PURE__ */ jsxs28(Fragment7, { children: [
2944
+ show_arrows && /* @__PURE__ */ jsxs28(Fragment6, { children: [
3009
2945
  /* @__PURE__ */ jsx54(
3010
2946
  ArrowButton,
3011
2947
  {
@@ -3701,7 +3637,7 @@ var Pagination_default = Pagination;
3701
3637
 
3702
3638
  // src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
3703
3639
  import dynamic7 from "next/dynamic";
3704
- import { Fragment as Fragment8, jsx as jsx57, jsxs as jsxs31 } from "react/jsx-runtime";
3640
+ import { Fragment as Fragment7, jsx as jsx57, jsxs as jsxs31 } from "react/jsx-runtime";
3705
3641
  var HlsPlayer2 = dynamic7(() => import("./HlsPlayer-GZR4QXJY.mjs"), { ssr: false });
3706
3642
  var deviceToMediaQuery = (device) => {
3707
3643
  switch (device) {
@@ -3770,8 +3706,8 @@ var ImageGalleryNode = (props) => {
3770
3706
  right: "justify-end"
3771
3707
  };
3772
3708
  const formatClasses = FormatClass[props.node.format || ""] || "";
3773
- return /* @__PURE__ */ jsxs31(Fragment8, { children: [
3774
- hlsSources.length > 0 && /* @__PURE__ */ jsx57(Fragment8, { children: /* @__PURE__ */ jsx57(
3709
+ return /* @__PURE__ */ jsxs31(Fragment7, { children: [
3710
+ hlsSources.length > 0 && /* @__PURE__ */ jsx57(Fragment7, { children: /* @__PURE__ */ jsx57(
3775
3711
  HlsPlayer2,
3776
3712
  {
3777
3713
  sources: hlsSources,
@@ -3785,7 +3721,7 @@ var ImageGalleryNode = (props) => {
3785
3721
  session: props.session
3786
3722
  }
3787
3723
  ) }),
3788
- staticFallback && /* @__PURE__ */ jsx57(Fragment8, { children: /* @__PURE__ */ jsxs31("picture", { children: [
3724
+ staticFallback && /* @__PURE__ */ jsx57(Fragment7, { children: /* @__PURE__ */ jsxs31("picture", { children: [
3789
3725
  DEVICE_ORDER.map((deviceKey) => {
3790
3726
  const match = staticSources.find((img) => img.device === deviceKey);
3791
3727
  if (!match) return null;
@@ -4061,7 +3997,7 @@ var DivContainer = async (props) => {
4061
3997
  }
4062
3998
  const SelectedNode = NodeTypes2[node.type];
4063
3999
  if (!SelectedNode) return null;
4064
- return /* @__PURE__ */ jsx58(React40.Fragment, { children: /* @__PURE__ */ jsx58(
4000
+ return /* @__PURE__ */ jsx58(React39.Fragment, { children: /* @__PURE__ */ jsx58(
4065
4001
  SelectedNode,
4066
4002
  {
4067
4003
  node,
@@ -4163,9 +4099,9 @@ var DivContainer = async (props) => {
4163
4099
  props.node.autoFormat && "auto-format",
4164
4100
  props.node.bgClass
4165
4101
  ].filter(Boolean).join(" ");
4166
- return /* @__PURE__ */ jsxs32(React40.Fragment, { children: [
4102
+ return /* @__PURE__ */ jsxs32(React39.Fragment, { children: [
4167
4103
  /* @__PURE__ */ jsx58("style", { dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS } }),
4168
- /* @__PURE__ */ jsx58(React40.Fragment, { children: /* @__PURE__ */ jsx58(
4104
+ /* @__PURE__ */ jsx58(React39.Fragment, { children: /* @__PURE__ */ jsx58(
4169
4105
  Wrapper,
4170
4106
  {
4171
4107
  id: guid,
@@ -4174,7 +4110,7 @@ var DivContainer = async (props) => {
4174
4110
  ...wrapperProps,
4175
4111
  children: dataToRender.map(
4176
4112
  (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)
4113
+ (child, i) => /* @__PURE__ */ jsx58(React39.Fragment, { children: child }, i)
4178
4114
  ) : renderChildren(props.node.children, props, item, idx)
4179
4115
  )
4180
4116
  }
@@ -4213,11 +4149,11 @@ var PageBodyRenderer = (props) => {
4213
4149
  if (pageBodyTree && pageBodyTree.root) {
4214
4150
  rootNode = pageBodyTree.root;
4215
4151
  }
4216
- return /* @__PURE__ */ jsx59(React41.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
4152
+ return /* @__PURE__ */ jsx59(React40.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
4217
4153
  {
4218
4154
  }
4219
4155
  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(
4156
+ return /* @__PURE__ */ jsx59(React40.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx59(React40.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ jsx59(React40.Fragment, { children: /* @__PURE__ */ jsx59(
4221
4157
  SelectedNode,
4222
4158
  {
4223
4159
  node,
@@ -4233,7 +4169,7 @@ var PageBodyRenderer = (props) => {
4233
4169
  device: props.device,
4234
4170
  widgetRenderer: props.widgetRenderer
4235
4171
  }
4236
- ) }) : /* @__PURE__ */ jsx59(React41.Fragment, { children: /* @__PURE__ */ jsx59(
4172
+ ) }) : /* @__PURE__ */ jsx59(React40.Fragment, { children: /* @__PURE__ */ jsx59(
4237
4173
  SelectedNode,
4238
4174
  {
4239
4175
  node,
@@ -4255,7 +4191,7 @@ var PageBodyRenderer_default = PageBodyRenderer;
4255
4191
 
4256
4192
  // src/components/Toast.tsx
4257
4193
  import { useState as useState7 } from "react";
4258
- import { Fragment as Fragment9, jsx as jsx60, jsxs as jsxs33 } from "react/jsx-runtime";
4194
+ import { Fragment as Fragment8, jsx as jsx60, jsxs as jsxs33 } from "react/jsx-runtime";
4259
4195
  var Toast = () => {
4260
4196
  const [showToast, setShowToast] = useState7(false);
4261
4197
  const [message, setMessage] = useState7("");
@@ -4298,7 +4234,7 @@ var Toast = () => {
4298
4234
  const closeToast = () => {
4299
4235
  setShowToast(false);
4300
4236
  };
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: [
4237
+ 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
4238
  /* @__PURE__ */ jsx60(
4303
4239
  "span",
4304
4240
  {
@@ -4364,22 +4300,22 @@ var NavigationTabsV2 = ({ tabs, params = {} }) => {
4364
4300
  var NavigationTabsV2_default = NavigationTabsV2;
4365
4301
 
4366
4302
  // src/components/dataForm/DataList.tsx
4367
- import React45, { useEffect as useEffect9, useState as useState8, useCallback as useCallback3, useReducer as useReducer2 } from "react";
4303
+ import React44, { useEffect as useEffect9, useState as useState8, useCallback as useCallback3, useReducer as useReducer2 } from "react";
4368
4304
  import { useRouter } from "next/navigation";
4369
4305
 
4370
4306
  // src/components/dataForm/NoContentView.tsx
4371
- import React43 from "react";
4307
+ import React42 from "react";
4372
4308
  import { jsx as jsx62 } from "react/jsx-runtime";
4373
4309
  var NoContentView = (props) => {
4374
- return /* @__PURE__ */ jsx62(React43.Fragment, { children: props.isDataFound === false && props.children });
4310
+ return /* @__PURE__ */ jsx62(React42.Fragment, { children: props.isDataFound === false && props.children });
4375
4311
  };
4376
4312
  var NoContentView_default = NoContentView;
4377
4313
 
4378
4314
  // src/components/dataForm/ContentView.tsx
4379
- import React44 from "react";
4315
+ import React43 from "react";
4380
4316
  import { jsx as jsx63, jsxs as jsxs34 } from "react/jsx-runtime";
4381
4317
  var ContentView = (props) => {
4382
- return /* @__PURE__ */ jsxs34(React44.Fragment, { children: [
4318
+ return /* @__PURE__ */ jsxs34(React43.Fragment, { children: [
4383
4319
  props.isDataFound == null && /* @__PURE__ */ jsx63("div", { className: "", children: /* @__PURE__ */ jsxs34("div", { className: "bg-gray-200 rounded-md p-4 animate-pulse", children: [
4384
4320
  /* @__PURE__ */ jsxs34("div", { className: "flex items-center mb-4", children: [
4385
4321
  /* @__PURE__ */ jsx63("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
@@ -4418,7 +4354,7 @@ var ContentView = (props) => {
4418
4354
  var ContentView_default = ContentView;
4419
4355
 
4420
4356
  // src/components/dataForm/DataList.tsx
4421
- import { Fragment as Fragment10, jsx as jsx64, jsxs as jsxs35 } from "react/jsx-runtime";
4357
+ import { Fragment as Fragment9, jsx as jsx64, jsxs as jsxs35 } from "react/jsx-runtime";
4422
4358
  var DataList = (props) => {
4423
4359
  console.log(props.dataset, "datasetssssss");
4424
4360
  const router = useRouter();
@@ -4497,7 +4433,7 @@ var DataList = (props) => {
4497
4433
  const renderPageNumbers = () => {
4498
4434
  if (pages <= 10) {
4499
4435
  return Array.from({ length: pages }, (_, index) => index + 1).map(
4500
- (page) => /* @__PURE__ */ jsx64(React45.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx64(
4436
+ (page) => /* @__PURE__ */ jsx64(React44.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx64(
4501
4437
  Hyperlink,
4502
4438
  {
4503
4439
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -4510,8 +4446,8 @@ var DataList = (props) => {
4510
4446
  const showFirstPages = activePageNumber <= 5;
4511
4447
  const showLastPages = activePageNumber > pages - 5;
4512
4448
  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(
4449
+ return /* @__PURE__ */ jsxs35(Fragment9, { children: [
4450
+ Array.from({ length: 8 }, (_, index) => index + 1).map((page) => /* @__PURE__ */ jsx64(React44.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx64(
4515
4451
  Hyperlink,
4516
4452
  {
4517
4453
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -4558,7 +4494,7 @@ var DataList = (props) => {
4558
4494
  ) })
4559
4495
  ] });
4560
4496
  } else if (showLastPages) {
4561
- return /* @__PURE__ */ jsxs35(Fragment10, { children: [
4497
+ return /* @__PURE__ */ jsxs35(Fragment9, { children: [
4562
4498
  /* @__PURE__ */ jsx64(
4563
4499
  Hyperlink,
4564
4500
  {
@@ -4577,7 +4513,7 @@ var DataList = (props) => {
4577
4513
  ),
4578
4514
  /* @__PURE__ */ jsx64("span", { className: "px-2 py-1", children: "..." }),
4579
4515
  Array.from({ length: 8 }, (_, index) => pages - 7 + index).map(
4580
- (page) => /* @__PURE__ */ jsx64(React45.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx64(
4516
+ (page) => /* @__PURE__ */ jsx64(React44.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx64(
4581
4517
  Hyperlink,
4582
4518
  {
4583
4519
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -4588,7 +4524,7 @@ var DataList = (props) => {
4588
4524
  )
4589
4525
  ] });
4590
4526
  } else {
4591
- return /* @__PURE__ */ jsxs35(Fragment10, { children: [
4527
+ return /* @__PURE__ */ jsxs35(Fragment9, { children: [
4592
4528
  /* @__PURE__ */ jsx64(
4593
4529
  Hyperlink,
4594
4530
  {
@@ -4609,7 +4545,7 @@ var DataList = (props) => {
4609
4545
  Array.from(
4610
4546
  { length: 5 },
4611
4547
  (_, index) => activePageNumber - 2 + index
4612
- ).map((page) => /* @__PURE__ */ jsx64(React45.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx64(
4548
+ ).map((page) => /* @__PURE__ */ jsx64(React44.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx64(
4613
4549
  Hyperlink,
4614
4550
  {
4615
4551
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -4655,7 +4591,7 @@ var DataList = (props) => {
4655
4591
  }
4656
4592
  }
4657
4593
  };
4658
- return /* @__PURE__ */ jsxs35(React45.Fragment, { children: [
4594
+ return /* @__PURE__ */ jsxs35(React44.Fragment, { children: [
4659
4595
  /* @__PURE__ */ jsxs35(ContentView_default, { isDataFound, children: [
4660
4596
  (props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ jsxs35(
4661
4597
  "div",
@@ -4733,7 +4669,7 @@ var DataList = (props) => {
4733
4669
  }
4734
4670
  return /* @__PURE__ */ jsx64("tr", { className: validityClass, children: props?.columns?.map((column, colindex) => {
4735
4671
  console.log("column", column);
4736
- return /* @__PURE__ */ jsx64(React45.Fragment, { children: /* @__PURE__ */ jsx64(
4672
+ return /* @__PURE__ */ jsx64(React44.Fragment, { children: /* @__PURE__ */ jsx64(
4737
4673
  "td",
4738
4674
  {
4739
4675
  className: "px-6 py-2 whitespace-normal " + (column.controlType == ViewControlTypes_default.money ? "" : ""),
@@ -4885,7 +4821,7 @@ var DataList = (props) => {
4885
4821
  var DataList_default = DataList;
4886
4822
 
4887
4823
  // src/components/dataForm/DataListRenderer.tsx
4888
- import React46, { useState as useState9, useEffect as useEffect10 } from "react";
4824
+ import React45, { useState as useState9, useEffect as useEffect10 } from "react";
4889
4825
  import { usePathname as usePathname2 } from "next/navigation";
4890
4826
  import { jsx as jsx65, jsxs as jsxs36 } from "react/jsx-runtime";
4891
4827
  var viewControlMap = {
@@ -4976,7 +4912,7 @@ var DataListRenderer = ({
4976
4912
  const [tabItem, setTabItem] = useState9();
4977
4913
  const activeTab = tabItem?.find((tab) => tab.isActive);
4978
4914
  const activeHref = activeTab ? resolveRoutePlaceholders2(activeTab.landingPageUrl, params) : pathname;
4979
- return /* @__PURE__ */ jsxs36(React46.Fragment, { children: [
4915
+ return /* @__PURE__ */ jsxs36(React45.Fragment, { children: [
4980
4916
  widgetProps && /* @__PURE__ */ jsx65(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
4981
4917
  /* @__PURE__ */ jsx65(
4982
4918
  DataList_default,
@@ -4997,10 +4933,10 @@ var DataListRenderer = ({
4997
4933
  var DataListRenderer_default = DataListRenderer;
4998
4934
 
4999
4935
  // src/components/dataForm/DataForm.tsx
5000
- import React48, { useCallback as useCallback5, useEffect as useEffect11, useReducer as useReducer3, useRef as useRef4 } from "react";
4936
+ import React47, { useCallback as useCallback5, useEffect as useEffect11, useReducer as useReducer3, useRef as useRef4 } from "react";
5001
4937
 
5002
4938
  // src/components/dataForm/DataFormChildSection.tsx
5003
- import React47, { useCallback as useCallback4 } from "react";
4939
+ import React46, { useCallback as useCallback4 } from "react";
5004
4940
 
5005
4941
  // src/components/dataForm/StyleTypes.tsx
5006
4942
  var StyleTypes2 = /* @__PURE__ */ ((StyleTypes3) => {
@@ -5091,7 +5027,7 @@ var DataFormChildSection = (props) => {
5091
5027
  childItemsToRender,
5092
5028
  allChildItems: childItems
5093
5029
  });
5094
- return /* @__PURE__ */ jsx66(React47.Fragment, { children: /* @__PURE__ */ jsxs37("div", { className: "rounded border-neutral-200 border px-6 py-4 mb-2", children: [
5030
+ return /* @__PURE__ */ jsx66(React46.Fragment, { children: /* @__PURE__ */ jsxs37("div", { className: "rounded border-neutral-200 border px-6 py-4 mb-2", children: [
5095
5031
  section.sectionTitle && /* @__PURE__ */ jsx66("div", { className: "mb-4 text-lg font-medium text-body-950", children: section.sectionTitle }),
5096
5032
  /* @__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
5033
  /* @__PURE__ */ jsx66("div", { children: /* @__PURE__ */ jsxs37("table", { className: "w-full border-separate divide-y divide-gray-200", children: [
@@ -5113,7 +5049,7 @@ var DataFormChildSection = (props) => {
5113
5049
  /* @__PURE__ */ jsx66("tbody", { className: "divide-y divide-gray-200", children: childItemsToRender.map((visibleItem, filteredIndex) => {
5114
5050
  const { item, originalIndex } = visibleItem;
5115
5051
  const rowKey = originalIndex;
5116
- return /* @__PURE__ */ jsx66(React47.Fragment, { children: section.sectionRows.map(
5052
+ return /* @__PURE__ */ jsx66(React46.Fragment, { children: section.sectionRows.map(
5117
5053
  (sectionRow, sectionRowIndex) => {
5118
5054
  return /* @__PURE__ */ jsxs37(
5119
5055
  "tr",
@@ -5402,7 +5338,7 @@ var DataForm = (props) => {
5402
5338
  return false;
5403
5339
  }
5404
5340
  }
5405
- return /* @__PURE__ */ jsx67(React48.Fragment, { children: /* @__PURE__ */ jsxs38("div", { className: "flex-grow flex flex-col", children: [
5341
+ return /* @__PURE__ */ jsx67(React47.Fragment, { children: /* @__PURE__ */ jsxs38("div", { className: "flex-grow flex flex-col", children: [
5406
5342
  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
5343
  "div",
5408
5344
  {
@@ -5436,7 +5372,7 @@ var DataForm = (props) => {
5436
5372
  }
5437
5373
  },
5438
5374
  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: [
5375
+ 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
5376
  section.sectionRows?.map(
5441
5377
  (sectionRow, sectionRowIndex) => {
5442
5378
  const elementsCount = sectionRow.elements.length;
@@ -5447,7 +5383,7 @@ var DataForm = (props) => {
5447
5383
  sectionRow.visible
5448
5384
  );
5449
5385
  }
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) => {
5386
+ 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
5387
  return /* @__PURE__ */ jsxs38(
5452
5388
  "div",
5453
5389
  {