@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260525053215 → 0.8.1-dev.20260526111119

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk-DOKQUUH3.mjs";
11
11
 
12
12
  // src/components/controls/view/ViewControl.tsx
13
- import React9 from "react";
13
+ import React10 from "react";
14
14
 
15
15
  // src/components/controls/view/ViewControlTypes.tsx
16
16
  var ViewControlTypes = {
@@ -93,6 +93,9 @@ var BooleanView = (props) => {
93
93
  };
94
94
  var BooleanView_default = BooleanView;
95
95
 
96
+ // src/components/controls/view/Asset.tsx
97
+ import React3 from "react";
98
+
96
99
  // src/components/utilities/AssetUtility.tsx
97
100
  var AssetUtility = class {
98
101
  constructor() {
@@ -103,14 +106,14 @@ var AssetUtility = class {
103
106
  if (!assetBaseUrl) return url;
104
107
  return `${assetBaseUrl}/${url}`;
105
108
  }
106
- // static getAssetUrl(apiBaseUrl: string) {
107
- // let domainName = apiBaseUrl.replace("https://", "");
108
- // return `https://cdn.g-assets.com/${domainName}`;
109
+ // // static getAssetUrl(apiBaseUrl: string) {
110
+ // // let domainName = apiBaseUrl.replace("https://", "");
111
+ // // return `https://cdn.g-assets.com/${domainName}`;
112
+ // // }
113
+ // static getAssetFullPath(apiBaseUrl: string, relativePath: string) {
114
+ // const domainName = apiBaseUrl.replace("https://", "");
115
+ // return `https://cdn.g-assets.com/${domainName}/${relativePath}`;
109
116
  // }
110
- static getAssetFullPath(apiBaseUrl, relativePath) {
111
- const domainName = apiBaseUrl.replace("https://", "");
112
- return `https://cdn.g-assets.com/${domainName}/${relativePath}`;
113
- }
114
117
  };
115
118
  var AssetUtility_default = AssetUtility;
116
119
 
@@ -203,34 +206,32 @@ var MediaAsset = (props) => {
203
206
  if (!assets || assets.length === 0) {
204
207
  return null;
205
208
  }
206
- const domainName = props.apiBaseUrl?.replace("https://", "");
207
- const assetBaseUrl = `https://cdn.g-assets.com/${domainName}`;
208
209
  console.log(props.customProps?.tag, "Tag in MediaAsset");
209
- return /* @__PURE__ */ jsx4(
210
+ return /* @__PURE__ */ jsx4(React3.Fragment, { children: props.assetBaseUrl ? /* @__PURE__ */ jsx4(
210
211
  DeviceAssetSelector_default,
211
212
  {
212
213
  assets,
213
214
  apiBaseUrl: props.apiBaseUrl,
214
- assetBaseUrl,
215
+ assetBaseUrl: props.assetBaseUrl,
215
216
  session: props,
216
217
  width: props.width,
217
218
  customProps: props.customProps,
218
219
  tag: props.customProps?.tag
219
220
  }
220
- );
221
+ ) : /* @__PURE__ */ jsx4("div", { children: "AssetBaseUrl is not set" }) });
221
222
  };
222
223
  var Asset_default = MediaAsset;
223
224
 
224
225
  // src/components/controls/view/LineTextView.tsx
225
- import React3 from "react";
226
+ import React4 from "react";
226
227
  import { jsx as jsx5 } from "react/jsx-runtime";
227
228
  var LineText = (props) => {
228
- return /* @__PURE__ */ jsx5(React3.Fragment, { children: props.value });
229
+ return /* @__PURE__ */ jsx5(React4.Fragment, { children: props.value });
229
230
  };
230
231
  var LineTextView_default = LineText;
231
232
 
232
233
  // src/components/controls/view/MoneyView.tsx
233
- import React4 from "react";
234
+ import React5 from "react";
234
235
 
235
236
  // src/components/utilities/CurrencyUtility.tsx
236
237
  var CurrencyUtility = class {
@@ -254,7 +255,7 @@ var CurrencyUtility_default = CurrencyUtility;
254
255
  import { jsx as jsx6, jsxs } from "react/jsx-runtime";
255
256
  var Money = (props) => {
256
257
  const parsedNumber = parseFloat(props.value);
257
- return /* @__PURE__ */ jsx6(React4.Fragment, { children: !Number.isNaN(parsedNumber) && /* @__PURE__ */ jsxs(React4.Fragment, { children: [
258
+ return /* @__PURE__ */ jsx6(React5.Fragment, { children: !Number.isNaN(parsedNumber) && /* @__PURE__ */ jsxs(React5.Fragment, { children: [
258
259
  /* @__PURE__ */ jsx6("span", { className: "mr-0.5", children: CurrencyUtility_default.getCurrencySymbol(props.unit) }),
259
260
  parsedNumber.toLocaleString()
260
261
  ] }) });
@@ -262,29 +263,29 @@ var Money = (props) => {
262
263
  var MoneyView_default = Money;
263
264
 
264
265
  // src/components/controls/view/MultilineTextBulletsView.tsx
265
- import React5 from "react";
266
+ import React6 from "react";
266
267
  import { jsx as jsx7 } from "react/jsx-runtime";
267
268
  var MultilineTextBullets = (props) => {
268
269
  const lines = props.value?.split("\\n");
269
- return /* @__PURE__ */ jsx7(React5.Fragment, { children: /* @__PURE__ */ jsx7("ul", { className: "list-disc", children: lines && lines.map((line, index) => {
270
+ return /* @__PURE__ */ jsx7(React6.Fragment, { children: /* @__PURE__ */ jsx7("ul", { className: "list-disc", children: lines && lines.map((line, index) => {
270
271
  return /* @__PURE__ */ jsx7("li", { children: line }, index);
271
272
  }) }) });
272
273
  };
273
274
  var MultilineTextBulletsView_default = MultilineTextBullets;
274
275
 
275
276
  // src/components/controls/view/MultilineTextView.tsx
276
- import React6 from "react";
277
+ import React7 from "react";
277
278
  import { jsx as jsx8 } from "react/jsx-runtime";
278
279
  var MultilineText = (props) => {
279
- return /* @__PURE__ */ jsx8(React6.Fragment, { children: /* @__PURE__ */ jsx8("span", { className: "whitespace-pre-line", children: props.value }) });
280
+ return /* @__PURE__ */ jsx8(React7.Fragment, { children: /* @__PURE__ */ jsx8("span", { className: "whitespace-pre-line", children: props.value }) });
280
281
  };
281
282
  var MultilineTextView_default = MultilineText;
282
283
 
283
284
  // src/components/controls/view/PercentageView.tsx
284
- import React7 from "react";
285
+ import React8 from "react";
285
286
  import { jsxs as jsxs2 } from "react/jsx-runtime";
286
287
  var PercentageView = (props) => {
287
- return /* @__PURE__ */ jsxs2(React7.Fragment, { children: [
288
+ return /* @__PURE__ */ jsxs2(React8.Fragment, { children: [
288
289
  props.value,
289
290
  "%"
290
291
  ] });
@@ -292,13 +293,13 @@ var PercentageView = (props) => {
292
293
  var PercentageView_default = PercentageView;
293
294
 
294
295
  // src/components/controls/view/ProgressIndicator.tsx
295
- import React8 from "react";
296
+ import React9 from "react";
296
297
  import { jsx as jsx9, jsxs as jsxs3 } from "react/jsx-runtime";
297
298
  var ProgressIndicator = (props) => {
298
299
  const percentage = 100;
299
300
  const circumference = Math.PI * 56;
300
301
  const offset = circumference * (1 - percentage / 100);
301
- return /* @__PURE__ */ jsx9(React8.Fragment, { children: /* @__PURE__ */ jsxs3("div", { className: "relative w-48 h-48", children: [
302
+ return /* @__PURE__ */ jsx9(React9.Fragment, { children: /* @__PURE__ */ jsxs3("div", { className: "relative w-48 h-48", children: [
302
303
  /* @__PURE__ */ jsx9("div", { className: "absolute top-0 left-0 w-full h-full rounded-full border border-gray-200" }),
303
304
  /* @__PURE__ */ jsx9("div", { className: "absolute top-0 left-0 w-full h-full rounded-full overflow-hidden", children: /* @__PURE__ */ jsx9("div", { className: "w-full h-full rounded-full border-t-8 border-green-500", style: { transform: `rotate(-90deg)`, clipPath: `inset(0px ${offset}px 0px 0px)` } }) }),
304
305
  /* @__PURE__ */ jsx9("div", { className: "absolute top-0 left-0 w-full h-full flex items-center justify-center text-lg font-bold text-gray-800", children: /* @__PURE__ */ jsxs3("span", { children: [
@@ -356,15 +357,15 @@ var ViewControl = (props) => {
356
357
  [ViewControlTypes_default.aiGeneratedSummary]: AiGeneratedSummary_default
357
358
  };
358
359
  const SelectedControlComponent = props.controlType ? ControlComponents[props.controlType] : void 0;
359
- return /* @__PURE__ */ jsx11(React9.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ jsx11(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
360
+ return /* @__PURE__ */ jsx11(React10.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ jsx11(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
360
361
  };
361
362
  var ViewControl_default = ViewControl;
362
363
 
363
364
  // src/components/controls/edit/InputControl.tsx
364
- import React27 from "react";
365
+ import React28 from "react";
365
366
 
366
367
  // src/components/controls/edit/MultilineTextInput.tsx
367
- import React10 from "react";
368
+ import React11 from "react";
368
369
  import { jsx as jsx12, jsxs as jsxs5 } from "react/jsx-runtime";
369
370
  var MultilineTextInput = (props) => {
370
371
  const textChangeHandler = (event) => {
@@ -384,7 +385,7 @@ var MultilineTextInput = (props) => {
384
385
  if (props.value !== void 0 && props.value !== null) {
385
386
  value = props.value;
386
387
  }
387
- return /* @__PURE__ */ jsx12(React10.Fragment, { children: /* @__PURE__ */ jsxs5("label", { className: "block mb-1", children: [
388
+ return /* @__PURE__ */ jsx12(React11.Fragment, { children: /* @__PURE__ */ jsxs5("label", { className: "block mb-1", children: [
388
389
  /* @__PURE__ */ jsx12("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
389
390
  " ",
390
391
  props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx12("span", { className: "bg-error-weak", children: "*" }),
@@ -411,7 +412,7 @@ var MultilineTextInput = (props) => {
411
412
  var MultilineTextInput_default = MultilineTextInput;
412
413
 
413
414
  // src/components/controls/edit/LineTextInput.tsx
414
- import React11 from "react";
415
+ import React12 from "react";
415
416
  import { jsx as jsx13, jsxs as jsxs6 } from "react/jsx-runtime";
416
417
  var LineTextInput = (props) => {
417
418
  const textChangeHandler = (event) => {
@@ -431,7 +432,7 @@ var LineTextInput = (props) => {
431
432
  if (props.value !== void 0 && props.value !== null) {
432
433
  value = props.value;
433
434
  }
434
- return /* @__PURE__ */ jsx13(React11.Fragment, { children: /* @__PURE__ */ jsxs6("label", { className: "block", children: [
435
+ return /* @__PURE__ */ jsx13(React12.Fragment, { children: /* @__PURE__ */ jsxs6("label", { className: "block", children: [
435
436
  props?.attributes?.label && /* @__PURE__ */ jsx13("span", { className: "text-sm inline-block pb-1 font-medium ", children: props?.attributes?.label }),
436
437
  " ",
437
438
  props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx13("span", { className: "bg-error-weak", children: "*" }),
@@ -461,7 +462,7 @@ var LineTextInput = (props) => {
461
462
  var LineTextInput_default = LineTextInput;
462
463
 
463
464
  // src/components/controls/edit/MoneyInput.tsx
464
- import React12 from "react";
465
+ import React13 from "react";
465
466
  import { jsx as jsx14, jsxs as jsxs7 } from "react/jsx-runtime";
466
467
  var MoneyInput = (props) => {
467
468
  const textChangeHandler = (event) => {
@@ -491,7 +492,7 @@ var MoneyInput = (props) => {
491
492
  e.preventDefault();
492
493
  }
493
494
  };
494
- return /* @__PURE__ */ jsx14(React12.Fragment, { children: /* @__PURE__ */ jsxs7("label", { className: "block mb-1", children: [
495
+ return /* @__PURE__ */ jsx14(React13.Fragment, { children: /* @__PURE__ */ jsxs7("label", { className: "block mb-1", children: [
495
496
  /* @__PURE__ */ jsx14("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
496
497
  " ",
497
498
  props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx14("span", { className: "bg-error-weak", children: "*" }),
@@ -635,7 +636,7 @@ var Select = (props) => {
635
636
  var Select_default = Select;
636
637
 
637
638
  // src/components/controls/edit/PercentageInput.tsx
638
- import React14 from "react";
639
+ import React15 from "react";
639
640
  import { jsx as jsx16, jsxs as jsxs9 } from "react/jsx-runtime";
640
641
  var PercentageInput = (props) => {
641
642
  const textChangeHandler = (event) => {
@@ -665,7 +666,7 @@ var PercentageInput = (props) => {
665
666
  e.preventDefault();
666
667
  }
667
668
  };
668
- return /* @__PURE__ */ jsx16(React14.Fragment, { children: /* @__PURE__ */ jsxs9("label", { className: "block mb-1", children: [
669
+ return /* @__PURE__ */ jsx16(React15.Fragment, { children: /* @__PURE__ */ jsxs9("label", { className: "block mb-1", children: [
669
670
  /* @__PURE__ */ jsx16("span", { className: "text-sm font-medium ", children: props?.attributes?.label ? props?.attributes?.label + " %" : "" }),
670
671
  " ",
671
672
  props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx16("span", { className: "bg-error-weak", children: "*" }),
@@ -694,7 +695,7 @@ var PercentageInput = (props) => {
694
695
  var PercentageInput_default = PercentageInput;
695
696
 
696
697
  // src/components/controls/edit/PhoneInput.tsx
697
- import React15 from "react";
698
+ import React16 from "react";
698
699
  import { jsx as jsx17, jsxs as jsxs10 } from "react/jsx-runtime";
699
700
  var PhoneInput = (props) => {
700
701
  const textChangeHandler = (event) => {
@@ -714,7 +715,7 @@ var PhoneInput = (props) => {
714
715
  if (props.value !== void 0 && props.value !== null) {
715
716
  value = props.value;
716
717
  }
717
- return /* @__PURE__ */ jsx17(React15.Fragment, { children: /* @__PURE__ */ jsxs10("label", { className: "block mb-1", children: [
718
+ return /* @__PURE__ */ jsx17(React16.Fragment, { children: /* @__PURE__ */ jsxs10("label", { className: "block mb-1", children: [
718
719
  /* @__PURE__ */ jsx17("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
719
720
  " ",
720
721
  props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx17("span", { className: "bg-error-weak", children: "*" }),
@@ -744,7 +745,7 @@ var PhoneInput = (props) => {
744
745
  var PhoneInput_default = PhoneInput;
745
746
 
746
747
  // src/components/controls/edit/NumberInput.tsx
747
- import React16 from "react";
748
+ import React17 from "react";
748
749
  import { jsx as jsx18, jsxs as jsxs11 } from "react/jsx-runtime";
749
750
  var NumberInput = (props) => {
750
751
  const textChangeHandler = (event) => {
@@ -768,7 +769,7 @@ var NumberInput = (props) => {
768
769
  if (props.value !== void 0 && props.value !== null) {
769
770
  value = props.value;
770
771
  }
771
- return /* @__PURE__ */ jsx18(React16.Fragment, { children: /* @__PURE__ */ jsxs11("label", { className: "block", children: [
772
+ return /* @__PURE__ */ jsx18(React17.Fragment, { children: /* @__PURE__ */ jsxs11("label", { className: "block", children: [
772
773
  props?.attributes?.label && /* @__PURE__ */ jsx18("span", { className: "text-sm inline-block pb-1 font-medium ", children: props?.attributes?.label }),
773
774
  " ",
774
775
  props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx18("span", { className: "bg-error-weak", children: "*" }),
@@ -797,7 +798,7 @@ var NumberInput = (props) => {
797
798
  var NumberInput_default = NumberInput;
798
799
 
799
800
  // src/components/controls/edit/CheckboxInput.tsx
800
- import React17 from "react";
801
+ import React18 from "react";
801
802
  import { jsx as jsx19, jsxs as jsxs12 } from "react/jsx-runtime";
802
803
  var CheckboxInput = (props) => {
803
804
  const textChangeHandler = (event) => {
@@ -815,7 +816,7 @@ var CheckboxInput = (props) => {
815
816
  if (props.value != void 0 && props.value != null && props.value != "" && (props.value == "true" || props.value.toString() == "true")) {
816
817
  value = true;
817
818
  }
818
- return /* @__PURE__ */ jsx19(React17.Fragment, { children: /* @__PURE__ */ jsxs12("label", { className: "inline-block mb-1", children: [
819
+ return /* @__PURE__ */ jsx19(React18.Fragment, { children: /* @__PURE__ */ jsxs12("label", { className: "inline-block mb-1", children: [
819
820
  /* @__PURE__ */ jsx19("span", { className: "text-sm font-medium", children: props?.attributes?.label }),
820
821
  " ",
821
822
  props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx19("span", { className: "bg-error-weak", children: "*" }),
@@ -842,7 +843,7 @@ var CheckboxInput = (props) => {
842
843
  var CheckboxInput_default = CheckboxInput;
843
844
 
844
845
  // src/components/controls/edit/OtpInput.tsx
845
- import React18 from "react";
846
+ import React19 from "react";
846
847
  import { jsx as jsx20, jsxs as jsxs13 } from "react/jsx-runtime";
847
848
  var OtpInput = (props) => {
848
849
  const textChangeHandler = (event) => {
@@ -865,7 +866,7 @@ var OtpInput = (props) => {
865
866
  if (props.value !== void 0 && props.value !== null) {
866
867
  value = props.value;
867
868
  }
868
- return /* @__PURE__ */ jsx20(React18.Fragment, { children: /* @__PURE__ */ jsxs13("label", { htmlFor: props.name, className: "block mb-1 w-full", children: [
869
+ return /* @__PURE__ */ jsx20(React19.Fragment, { children: /* @__PURE__ */ jsxs13("label", { htmlFor: props.name, className: "block mb-1 w-full", children: [
869
870
  /* @__PURE__ */ jsx20("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
870
871
  " ",
871
872
  props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx20("span", { className: "bg-error-weak", children: "*" }),
@@ -895,7 +896,7 @@ var OtpInput = (props) => {
895
896
  var OtpInput_default = OtpInput;
896
897
 
897
898
  // src/components/controls/edit/DateTimeInput.tsx
898
- import React19 from "react";
899
+ import React20 from "react";
899
900
  import { jsx as jsx21, jsxs as jsxs14 } from "react/jsx-runtime";
900
901
  var DateTimeInput = (props) => {
901
902
  const textChangeHandler = (event) => {
@@ -928,7 +929,7 @@ var DateTimeInput = (props) => {
928
929
  e.preventDefault();
929
930
  }
930
931
  };
931
- return /* @__PURE__ */ jsx21(React19.Fragment, { children: /* @__PURE__ */ jsxs14("label", { className: "block mb-1", children: [
932
+ return /* @__PURE__ */ jsx21(React20.Fragment, { children: /* @__PURE__ */ jsxs14("label", { className: "block mb-1", children: [
932
933
  /* @__PURE__ */ jsx21("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
933
934
  " ",
934
935
  props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx21("span", { className: "bg-error-weak", children: "*" }),
@@ -959,10 +960,10 @@ var DateTimeInput = (props) => {
959
960
  var DateTimeInput_default = DateTimeInput;
960
961
 
961
962
  // src/components/controls/edit/ColorInput.tsx
962
- import React20, { useEffect as useEffect2 } from "react";
963
+ import React21, { useEffect as useEffect2 } from "react";
963
964
  import { jsx as jsx22, jsxs as jsxs15 } from "react/jsx-runtime";
964
965
  var ColorInput = (props) => {
965
- const [color, setColor] = React20.useState("#3b82f6");
966
+ const [color, setColor] = React21.useState("#3b82f6");
966
967
  useEffect2(() => {
967
968
  if (props.value !== void 0 && props.value !== null) {
968
969
  if (typeof props.value === "string") {
@@ -1153,7 +1154,7 @@ var SelectWithSearchInput = (props) => {
1153
1154
  var SelectWithSearchInput_default = SelectWithSearchInput;
1154
1155
 
1155
1156
  // src/components/controls/edit/SelectWithSearchPanel.tsx
1156
- import React22, {
1157
+ import React23, {
1157
1158
  useEffect as useEffect4,
1158
1159
  useRef as useRef2,
1159
1160
  useState as useState3,
@@ -1316,7 +1317,7 @@ var SelectWithSearchPanel = (props) => {
1316
1317
  disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none`
1317
1318
  }
1318
1319
  ) }),
1319
- /* @__PURE__ */ jsx24("div", { ref: containerRef, children: isOpen && /* @__PURE__ */ jsxs17(React22.Fragment, { children: [
1320
+ /* @__PURE__ */ jsx24("div", { ref: containerRef, children: isOpen && /* @__PURE__ */ jsxs17(React23.Fragment, { children: [
1320
1321
  /* @__PURE__ */ jsxs17("div", { className: "fixed z-50 right-0 bg-white top-[62px] w-1/4 border-l border-gray-200", children: [
1321
1322
  /* @__PURE__ */ jsx24("div", { className: "flex flex-col p-2 bg-accent-950 text-white", children: /* @__PURE__ */ jsxs17("h5", { className: "text-md text-white font-medium", children: [
1322
1323
  "Select a",
@@ -1405,7 +1406,7 @@ var SelectWithSearchPanel = (props) => {
1405
1406
  var SelectWithSearchPanel_default = SelectWithSearchPanel;
1406
1407
 
1407
1408
  // src/components/controls/edit/BooleanSelect.tsx
1408
- import React23, {
1409
+ import React24, {
1409
1410
  useState as useState4,
1410
1411
  useEffect as useEffect5
1411
1412
  } from "react";
@@ -1458,7 +1459,7 @@ var BooleanSelect = (props) => {
1458
1459
  if (props.value !== void 0 && props.value !== null) {
1459
1460
  value = props.value;
1460
1461
  }
1461
- return /* @__PURE__ */ jsx25(React23.Fragment, { children: /* @__PURE__ */ jsxs18("label", { className: "block", children: [
1462
+ return /* @__PURE__ */ jsx25(React24.Fragment, { children: /* @__PURE__ */ jsxs18("label", { className: "block", children: [
1462
1463
  /* @__PURE__ */ jsx25("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
1463
1464
  " ",
1464
1465
  props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx25("span", { className: "bg-error-weak", children: "*" }),
@@ -1495,7 +1496,7 @@ var BooleanSelect = (props) => {
1495
1496
  var BooleanSelect_default = BooleanSelect;
1496
1497
 
1497
1498
  // src/components/controls/edit/EmailInput.tsx
1498
- import React24 from "react";
1499
+ import React25 from "react";
1499
1500
  import { jsx as jsx26, jsxs as jsxs19 } from "react/jsx-runtime";
1500
1501
  var EmailInput = (props) => {
1501
1502
  const textChangeHandler = (event) => {
@@ -1521,7 +1522,7 @@ var EmailInput = (props) => {
1521
1522
  if (props.value !== void 0 && props.value !== null) {
1522
1523
  value = props.value;
1523
1524
  }
1524
- return /* @__PURE__ */ jsx26(React24.Fragment, { children: /* @__PURE__ */ jsxs19("label", { className: "block mb-1", children: [
1525
+ return /* @__PURE__ */ jsx26(React25.Fragment, { children: /* @__PURE__ */ jsxs19("label", { className: "block mb-1", children: [
1525
1526
  /* @__PURE__ */ jsx26("span", { className: "text-sm font-medium text-slate-700", children: props?.attributes?.label }),
1526
1527
  " ",
1527
1528
  props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx26("span", { className: "bg-error-weak", children: "*" }),
@@ -1547,7 +1548,7 @@ var EmailInput = (props) => {
1547
1548
  var EmailInput_default = EmailInput;
1548
1549
 
1549
1550
  // src/components/controls/edit/TimeInput.tsx
1550
- import React25 from "react";
1551
+ import React26 from "react";
1551
1552
  import { jsx as jsx27, jsxs as jsxs20 } from "react/jsx-runtime";
1552
1553
  var TimeInput = (props) => {
1553
1554
  const timeChangeHandler = (event) => {
@@ -1561,7 +1562,7 @@ var TimeInput = (props) => {
1561
1562
  });
1562
1563
  }
1563
1564
  };
1564
- return /* @__PURE__ */ jsx27(React25.Fragment, { children: /* @__PURE__ */ jsxs20("label", { className: "block mb-1", children: [
1565
+ return /* @__PURE__ */ jsx27(React26.Fragment, { children: /* @__PURE__ */ jsxs20("label", { className: "block mb-1", children: [
1565
1566
  /* @__PURE__ */ jsx27("span", { className: "text-sm font-medium", children: props?.attributes?.label }),
1566
1567
  " ",
1567
1568
  props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx27("span", { className: "bg-error-weak", children: "*" }),
@@ -1584,7 +1585,7 @@ var TimeInput = (props) => {
1584
1585
  var TimeInput_default = TimeInput;
1585
1586
 
1586
1587
  // src/components/controls/edit/AssetUpload.tsx
1587
- import React26, { useEffect as useEffect6 } from "react";
1588
+ import React27, { useEffect as useEffect6 } from "react";
1588
1589
 
1589
1590
  // src/components/dataForm/Hyperlink.tsx
1590
1591
  import Link from "next/link";
@@ -1680,7 +1681,7 @@ var AssetUpload = (props) => {
1680
1681
  }
1681
1682
  return "image";
1682
1683
  };
1683
- const [assetType, setAssetType] = React26.useState(getInitialTab);
1684
+ const [assetType, setAssetType] = React27.useState(getInitialTab);
1684
1685
  useEffect6(() => {
1685
1686
  setAssetType(getInitialTab());
1686
1687
  }, [props.value]);
@@ -1756,7 +1757,7 @@ var AssetUpload = (props) => {
1756
1757
  }
1757
1758
  return false;
1758
1759
  };
1759
- return /* @__PURE__ */ jsxs21(React26.Fragment, { children: [
1760
+ return /* @__PURE__ */ jsxs21(React27.Fragment, { children: [
1760
1761
  /* @__PURE__ */ jsx34("label", { className: "block mb-1", children: /* @__PURE__ */ jsx34("span", { className: "text-sm font-medium", children: props?.attributes?.label }) }),
1761
1762
  /* @__PURE__ */ jsxs21("div", { className: "flex gap-6 bg-neutral-100 rounded p-2", children: [
1762
1763
  /* @__PURE__ */ jsx34(
@@ -1856,7 +1857,7 @@ var AssetUpload_default = AssetUpload;
1856
1857
 
1857
1858
  // src/components/controls/edit/InputControl.tsx
1858
1859
  import { jsx as jsx35 } from "react/jsx-runtime";
1859
- var InputControl = React27.forwardRef(
1860
+ var InputControl = React28.forwardRef(
1860
1861
  (props, ref) => {
1861
1862
  const ControlComponents = {
1862
1863
  [InputControlType_default.lineTextInput]: LineTextInput_default,
@@ -1878,17 +1879,17 @@ var InputControl = React27.forwardRef(
1878
1879
  [InputControlType_default.asset]: AssetUpload_default
1879
1880
  };
1880
1881
  const SelectedControlComponent = ControlComponents[props.controlType];
1881
- return /* @__PURE__ */ jsx35(React27.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ jsx35(SelectedControlComponent, { ...props }) : "Control not found" });
1882
+ return /* @__PURE__ */ jsx35(React28.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ jsx35(SelectedControlComponent, { ...props }) : "Control not found" });
1882
1883
  }
1883
1884
  );
1884
1885
  InputControl.displayName = "InputControl";
1885
1886
  var InputControl_default = InputControl;
1886
1887
 
1887
1888
  // src/components/pageRenderingEngine/PageBodyRenderer.tsx
1888
- import React40 from "react";
1889
+ import React41 from "react";
1889
1890
 
1890
1891
  // src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
1891
- import React29 from "react";
1892
+ import React30 from "react";
1892
1893
 
1893
1894
  // src/components/pageRenderingEngine/nodes/TextNode.tsx
1894
1895
  import { jsx as jsx36, jsxs as jsxs22 } from "react/jsx-runtime";
@@ -1970,7 +1971,7 @@ var LineBreakNode = () => {
1970
1971
  var LineBreakNode_default = LineBreakNode;
1971
1972
 
1972
1973
  // src/components/pageRenderingEngine/nodes/LinkNode.tsx
1973
- import React28 from "react";
1974
+ import React29 from "react";
1974
1975
 
1975
1976
  // src/components/pageRenderingEngine/nodes/ImageNode.tsx
1976
1977
  import dynamic3 from "next/dynamic";
@@ -1997,7 +1998,10 @@ var ImageNode = (props) => {
1997
1998
  } else if (props.dataitem && props.node.datafield) {
1998
1999
  const image = getNestedValue(props.dataitem, props.node.datafield);
1999
2000
  if (typeof image === "string") {
2000
- assets = JSON.parse(image);
2001
+ const trimmed = image.trim();
2002
+ if (trimmed) {
2003
+ assets = JSON.parse(trimmed);
2004
+ }
2001
2005
  } else if (Array.isArray(image)) {
2002
2006
  assets = image;
2003
2007
  } else if (image && typeof image === "object") {
@@ -2132,7 +2136,7 @@ var LinkNode = (props) => {
2132
2136
  console.warn("Unknown node type:", childNode.type);
2133
2137
  return null;
2134
2138
  }
2135
- return /* @__PURE__ */ jsx39(React28.Fragment, { children: /* @__PURE__ */ jsx39(
2139
+ return /* @__PURE__ */ jsx39(React29.Fragment, { children: /* @__PURE__ */ jsx39(
2136
2140
  SelectedNode,
2137
2141
  {
2138
2142
  node: childNode,
@@ -2371,7 +2375,7 @@ var ParagraphNode = (props) => {
2371
2375
  if (isInlineOnlyParent) {
2372
2376
  return /* @__PURE__ */ jsx43(Fragment3, { children: hasChildren && props.node.children.map((node, index) => {
2373
2377
  const SelectedNode = NodeTypes2[node.type];
2374
- return /* @__PURE__ */ jsx43(React29.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx43(
2378
+ return /* @__PURE__ */ jsx43(React30.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx43(
2375
2379
  SelectedNode,
2376
2380
  {
2377
2381
  node,
@@ -2386,7 +2390,7 @@ var ParagraphNode = (props) => {
2386
2390
  return /* @__PURE__ */ jsxs24("div", { className: " " + formatClasses, children: [
2387
2391
  hasChildren && props.node.children.map((node, index) => {
2388
2392
  const SelectedNode = NodeTypes2[node.type];
2389
- return /* @__PURE__ */ jsx43(React29.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx43(
2393
+ return /* @__PURE__ */ jsx43(React30.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx43(
2390
2394
  SelectedNode,
2391
2395
  {
2392
2396
  node,
@@ -2403,7 +2407,7 @@ var ParagraphNode = (props) => {
2403
2407
  var ParagraphNode_default = ParagraphNode;
2404
2408
 
2405
2409
  // src/components/pageRenderingEngine/nodes/HeadingNode.tsx
2406
- import React30 from "react";
2410
+ import React31 from "react";
2407
2411
  import { Fragment as Fragment4, jsx as jsx44 } from "react/jsx-runtime";
2408
2412
  var HeadingNode = (props) => {
2409
2413
  const NodeTypes2 = {
@@ -2420,22 +2424,22 @@ var HeadingNode = (props) => {
2420
2424
  {
2421
2425
  }
2422
2426
  const formatClasses = FormatClass[props.node.format] || "";
2423
- return /* @__PURE__ */ jsx44(Fragment4, { children: React30.createElement(
2427
+ return /* @__PURE__ */ jsx44(Fragment4, { children: React31.createElement(
2424
2428
  HeadingTag,
2425
2429
  { className: formatClasses },
2426
2430
  props.node.children && props.node.children.map((childNode, index) => {
2427
2431
  const SelectedNode = NodeTypes2[childNode.type];
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);
2432
+ 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);
2429
2433
  })
2430
2434
  ) });
2431
2435
  };
2432
2436
  var HeadingNode_default = HeadingNode;
2433
2437
 
2434
2438
  // src/components/pageRenderingEngine/nodes/ListNode.tsx
2435
- import React32 from "react";
2439
+ import React33 from "react";
2436
2440
 
2437
2441
  // src/components/pageRenderingEngine/nodes/ListItemNode.tsx
2438
- import React31 from "react";
2442
+ import React32 from "react";
2439
2443
  import { jsx as jsx45 } from "react/jsx-runtime";
2440
2444
  var ListItemNode = (props) => {
2441
2445
  const NodeTypes2 = {
@@ -2464,7 +2468,7 @@ var ListItemNode = (props) => {
2464
2468
  }
2465
2469
  } else {
2466
2470
  foundFirstBreak = false;
2467
- return /* @__PURE__ */ jsx45(React31.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx45(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
2471
+ return /* @__PURE__ */ jsx45(React32.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx45(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
2468
2472
  }
2469
2473
  }) });
2470
2474
  };
@@ -2476,21 +2480,21 @@ var ListNode = (props) => {
2476
2480
  const NodeTypes2 = {
2477
2481
  listitem: ListItemNode_default
2478
2482
  };
2479
- return /* @__PURE__ */ jsxs25(React32.Fragment, { children: [
2483
+ return /* @__PURE__ */ jsxs25(React33.Fragment, { children: [
2480
2484
  props.node.listType == "bullet" && /* @__PURE__ */ jsx46("ul", { children: props.node.children && props.node.children.map((node, index) => {
2481
2485
  const SelectedNode = NodeTypes2[node.type];
2482
- return /* @__PURE__ */ jsx46(React32.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx46(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
2486
+ return /* @__PURE__ */ jsx46(React33.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx46(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
2483
2487
  }) }),
2484
2488
  props.node.listType == "number" && /* @__PURE__ */ jsx46("ol", { children: props.node.children && props.node.children.map((node, index) => {
2485
2489
  const SelectedNode = NodeTypes2[node.type];
2486
- return /* @__PURE__ */ jsx46(React32.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx46(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
2490
+ return /* @__PURE__ */ jsx46(React33.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx46(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
2487
2491
  }) })
2488
2492
  ] });
2489
2493
  };
2490
2494
  var ListNode_default = ListNode;
2491
2495
 
2492
2496
  // src/components/pageRenderingEngine/nodes/QuoteNode.tsx
2493
- import React33 from "react";
2497
+ import React34 from "react";
2494
2498
  import { jsx as jsx47 } from "react/jsx-runtime";
2495
2499
  var QuoteNode = (props) => {
2496
2500
  const NodeTypes2 = {
@@ -2500,13 +2504,13 @@ var QuoteNode = (props) => {
2500
2504
  };
2501
2505
  return /* @__PURE__ */ jsx47("blockquote", { children: props.node.children && props.node.children.map((node, index) => {
2502
2506
  const SelectedNode = NodeTypes2[node.type];
2503
- return /* @__PURE__ */ jsx47(React33.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx47(SelectedNode, { node, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
2507
+ return /* @__PURE__ */ jsx47(React34.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx47(SelectedNode, { node, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
2504
2508
  }) });
2505
2509
  };
2506
2510
  var QuoteNode_default = QuoteNode;
2507
2511
 
2508
2512
  // src/components/pageRenderingEngine/nodes/CodeNode.tsx
2509
- import React34 from "react";
2513
+ import React35 from "react";
2510
2514
  import dynamic5 from "next/dynamic";
2511
2515
  import { jsx as jsx48, jsxs as jsxs26 } from "react/jsx-runtime";
2512
2516
  var CopyButton = dynamic5(() => import("./CopyButton-XONTQQW7.mjs"), {
@@ -2533,7 +2537,7 @@ var CodeNode = (props) => {
2533
2537
  ] }),
2534
2538
  /* @__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) => {
2535
2539
  const SelectedNode = NodeTypes2[node.type];
2536
- return /* @__PURE__ */ jsx48(React34.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx48(
2540
+ return /* @__PURE__ */ jsx48(React35.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx48(
2537
2541
  SelectedNode,
2538
2542
  {
2539
2543
  node,
@@ -2555,7 +2559,7 @@ var HorizontalRuleNode = () => {
2555
2559
  var HorizontalRuleNode_default = HorizontalRuleNode;
2556
2560
 
2557
2561
  // src/components/pageRenderingEngine/nodes/WidgetNode.tsx
2558
- import React35 from "react";
2562
+ import React36 from "react";
2559
2563
  import { Fragment as Fragment5, jsx as jsx50 } from "react/jsx-runtime";
2560
2564
  var WidgetNode = (props) => {
2561
2565
  const getWidgetParameters = () => {
@@ -2629,7 +2633,7 @@ var WidgetNode = (props) => {
2629
2633
  }
2630
2634
  return (
2631
2635
  // eslint-disable-next-line react-hooks/static-components
2632
- /* @__PURE__ */ jsx50(React35.Fragment, { children: /* @__PURE__ */ jsx50(
2636
+ /* @__PURE__ */ jsx50(React36.Fragment, { children: /* @__PURE__ */ jsx50(
2633
2637
  WidgetRenderer,
2634
2638
  {
2635
2639
  params: widgetParams,
@@ -2646,7 +2650,7 @@ var WidgetNode = (props) => {
2646
2650
  var WidgetNode_default = WidgetNode;
2647
2651
 
2648
2652
  // src/components/pageRenderingEngine/nodes/FormContainerNode.tsx
2649
- import React36, { useRef as useRef3, useReducer, useCallback as useCallback2, useEffect as useEffect7 } from "react";
2653
+ import React37, { useRef as useRef3, useReducer, useCallback as useCallback2, useEffect as useEffect7 } from "react";
2650
2654
 
2651
2655
  // src/components/pageRenderingEngine/nodes/InputControlNode.tsx
2652
2656
  import { jsx as jsx51 } from "react/jsx-runtime";
@@ -2759,7 +2763,7 @@ var FormContainerNode = (props) => {
2759
2763
  {
2760
2764
  }
2761
2765
  const SelectedNode = NodeTypes2[node2.type];
2762
- return /* @__PURE__ */ jsx52(React36.Fragment, { children: SelectedNode && node2.type == "input-control" && /* @__PURE__ */ jsx52(
2766
+ return /* @__PURE__ */ jsx52(React37.Fragment, { children: SelectedNode && node2.type == "input-control" && /* @__PURE__ */ jsx52(
2763
2767
  InputControlNode_default,
2764
2768
  {
2765
2769
  value: formState.inputValues[node2.name],
@@ -2774,7 +2778,7 @@ var FormContainerNode = (props) => {
2774
2778
  var FormContainerNode_default = FormContainerNode;
2775
2779
 
2776
2780
  // src/components/pageRenderingEngine/nodes/DivContainer.tsx
2777
- import React39 from "react";
2781
+ import React40 from "react";
2778
2782
 
2779
2783
  // src/components/pageRenderingEngine/nodes/EmbedNode.tsx
2780
2784
  import dynamic6 from "next/dynamic";
@@ -2796,7 +2800,7 @@ var EmbedNode = (props) => {
2796
2800
  var EmbedNode_default = EmbedNode;
2797
2801
 
2798
2802
  // src/components/Slider.tsx
2799
- import React37, { useState as useState5, useEffect as useEffect8, Children, cloneElement } from "react";
2803
+ import React38, { useState as useState5, useEffect as useEffect8, Children, cloneElement } from "react";
2800
2804
  import { Fragment as Fragment6, jsx as jsx54, jsxs as jsxs28 } from "react/jsx-runtime";
2801
2805
  var Slider = ({
2802
2806
  children,
@@ -2891,7 +2895,7 @@ var Slider = ({
2891
2895
  };
2892
2896
  const translateX = -currentSlide * (100 / slidesToShowState);
2893
2897
  const slides = Children.map(children, (child, index) => {
2894
- if (!React37.isValidElement(child)) return null;
2898
+ if (!React38.isValidElement(child)) return null;
2895
2899
  const childProps = child.props;
2896
2900
  const mergedClassName = `${childProps.className ?? ""} w-full`.trim();
2897
2901
  return /* @__PURE__ */ jsx54(
@@ -3991,7 +3995,7 @@ var DivContainer = async (props) => {
3991
3995
  }
3992
3996
  const SelectedNode = NodeTypes2[node.type];
3993
3997
  if (!SelectedNode) return null;
3994
- return /* @__PURE__ */ jsx58(React39.Fragment, { children: /* @__PURE__ */ jsx58(
3998
+ return /* @__PURE__ */ jsx58(React40.Fragment, { children: /* @__PURE__ */ jsx58(
3995
3999
  SelectedNode,
3996
4000
  {
3997
4001
  node,
@@ -4093,9 +4097,9 @@ var DivContainer = async (props) => {
4093
4097
  props.node.autoFormat && "auto-format",
4094
4098
  props.node.bgClass
4095
4099
  ].filter(Boolean).join(" ");
4096
- return /* @__PURE__ */ jsxs32(React39.Fragment, { children: [
4100
+ return /* @__PURE__ */ jsxs32(React40.Fragment, { children: [
4097
4101
  /* @__PURE__ */ jsx58("style", { dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS } }),
4098
- /* @__PURE__ */ jsx58(React39.Fragment, { children: /* @__PURE__ */ jsx58(
4102
+ /* @__PURE__ */ jsx58(React40.Fragment, { children: /* @__PURE__ */ jsx58(
4099
4103
  Wrapper,
4100
4104
  {
4101
4105
  id: guid,
@@ -4104,7 +4108,7 @@ var DivContainer = async (props) => {
4104
4108
  ...wrapperProps,
4105
4109
  children: dataToRender.map(
4106
4110
  (item, idx) => item?.links?.view && renderLink ? renderChildren(props.node.children, props, item, idx, props.href ? void 0 : item?.links?.view)?.map(
4107
- (child, i) => /* @__PURE__ */ jsx58(React39.Fragment, { children: child }, i)
4111
+ (child, i) => /* @__PURE__ */ jsx58(React40.Fragment, { children: child }, i)
4108
4112
  ) : renderChildren(props.node.children, props, item, idx)
4109
4113
  )
4110
4114
  }
@@ -4143,11 +4147,11 @@ var PageBodyRenderer = (props) => {
4143
4147
  if (pageBodyTree && pageBodyTree.root) {
4144
4148
  rootNode = pageBodyTree.root;
4145
4149
  }
4146
- return /* @__PURE__ */ jsx59(React40.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
4150
+ return /* @__PURE__ */ jsx59(React41.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
4147
4151
  {
4148
4152
  }
4149
4153
  const SelectedNode = NodeTypes[node.type];
4150
- return /* @__PURE__ */ jsx59(React40.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx59(React40.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ jsx59(React40.Fragment, { children: /* @__PURE__ */ jsx59(
4154
+ return /* @__PURE__ */ jsx59(React41.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx59(React41.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ jsx59(React41.Fragment, { children: /* @__PURE__ */ jsx59(
4151
4155
  SelectedNode,
4152
4156
  {
4153
4157
  node,
@@ -4163,7 +4167,7 @@ var PageBodyRenderer = (props) => {
4163
4167
  device: props.device,
4164
4168
  widgetRenderer: props.widgetRenderer
4165
4169
  }
4166
- ) }) : /* @__PURE__ */ jsx59(React40.Fragment, { children: /* @__PURE__ */ jsx59(
4170
+ ) }) : /* @__PURE__ */ jsx59(React41.Fragment, { children: /* @__PURE__ */ jsx59(
4167
4171
  SelectedNode,
4168
4172
  {
4169
4173
  node,
@@ -4294,22 +4298,22 @@ var NavigationTabsV2 = ({ tabs, params = {} }) => {
4294
4298
  var NavigationTabsV2_default = NavigationTabsV2;
4295
4299
 
4296
4300
  // src/components/dataForm/DataList.tsx
4297
- import React44, { useEffect as useEffect9, useState as useState8, useCallback as useCallback3, useReducer as useReducer2 } from "react";
4301
+ import React45, { useEffect as useEffect9, useState as useState8, useCallback as useCallback3, useReducer as useReducer2 } from "react";
4298
4302
  import { useRouter } from "next/navigation";
4299
4303
 
4300
4304
  // src/components/dataForm/NoContentView.tsx
4301
- import React42 from "react";
4305
+ import React43 from "react";
4302
4306
  import { jsx as jsx62 } from "react/jsx-runtime";
4303
4307
  var NoContentView = (props) => {
4304
- return /* @__PURE__ */ jsx62(React42.Fragment, { children: props.isDataFound === false && props.children });
4308
+ return /* @__PURE__ */ jsx62(React43.Fragment, { children: props.isDataFound === false && props.children });
4305
4309
  };
4306
4310
  var NoContentView_default = NoContentView;
4307
4311
 
4308
4312
  // src/components/dataForm/ContentView.tsx
4309
- import React43 from "react";
4313
+ import React44 from "react";
4310
4314
  import { jsx as jsx63, jsxs as jsxs34 } from "react/jsx-runtime";
4311
4315
  var ContentView = (props) => {
4312
- return /* @__PURE__ */ jsxs34(React43.Fragment, { children: [
4316
+ return /* @__PURE__ */ jsxs34(React44.Fragment, { children: [
4313
4317
  props.isDataFound == null && /* @__PURE__ */ jsx63("div", { className: "", children: /* @__PURE__ */ jsxs34("div", { className: "bg-gray-200 rounded-md p-4 animate-pulse", children: [
4314
4318
  /* @__PURE__ */ jsxs34("div", { className: "flex items-center mb-4", children: [
4315
4319
  /* @__PURE__ */ jsx63("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
@@ -4427,7 +4431,7 @@ var DataList = (props) => {
4427
4431
  const renderPageNumbers = () => {
4428
4432
  if (pages <= 10) {
4429
4433
  return Array.from({ length: pages }, (_, index) => index + 1).map(
4430
- (page) => /* @__PURE__ */ jsx64(React44.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx64(
4434
+ (page) => /* @__PURE__ */ jsx64(React45.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx64(
4431
4435
  Hyperlink,
4432
4436
  {
4433
4437
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -4441,7 +4445,7 @@ var DataList = (props) => {
4441
4445
  const showLastPages = activePageNumber > pages - 5;
4442
4446
  if (showFirstPages) {
4443
4447
  return /* @__PURE__ */ jsxs35(Fragment9, { children: [
4444
- Array.from({ length: 8 }, (_, index) => index + 1).map((page) => /* @__PURE__ */ jsx64(React44.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx64(
4448
+ Array.from({ length: 8 }, (_, index) => index + 1).map((page) => /* @__PURE__ */ jsx64(React45.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx64(
4445
4449
  Hyperlink,
4446
4450
  {
4447
4451
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -4507,7 +4511,7 @@ var DataList = (props) => {
4507
4511
  ),
4508
4512
  /* @__PURE__ */ jsx64("span", { className: "px-2 py-1", children: "..." }),
4509
4513
  Array.from({ length: 8 }, (_, index) => pages - 7 + index).map(
4510
- (page) => /* @__PURE__ */ jsx64(React44.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx64(
4514
+ (page) => /* @__PURE__ */ jsx64(React45.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx64(
4511
4515
  Hyperlink,
4512
4516
  {
4513
4517
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -4539,7 +4543,7 @@ var DataList = (props) => {
4539
4543
  Array.from(
4540
4544
  { length: 5 },
4541
4545
  (_, index) => activePageNumber - 2 + index
4542
- ).map((page) => /* @__PURE__ */ jsx64(React44.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx64(
4546
+ ).map((page) => /* @__PURE__ */ jsx64(React45.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx64(
4543
4547
  Hyperlink,
4544
4548
  {
4545
4549
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -4585,7 +4589,7 @@ var DataList = (props) => {
4585
4589
  }
4586
4590
  }
4587
4591
  };
4588
- return /* @__PURE__ */ jsxs35(React44.Fragment, { children: [
4592
+ return /* @__PURE__ */ jsxs35(React45.Fragment, { children: [
4589
4593
  /* @__PURE__ */ jsxs35(ContentView_default, { isDataFound, children: [
4590
4594
  (props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ jsxs35(
4591
4595
  "div",
@@ -4663,7 +4667,7 @@ var DataList = (props) => {
4663
4667
  }
4664
4668
  return /* @__PURE__ */ jsx64("tr", { className: validityClass, children: props?.columns?.map((column, colindex) => {
4665
4669
  console.log("column", column);
4666
- return /* @__PURE__ */ jsx64(React44.Fragment, { children: /* @__PURE__ */ jsx64(
4670
+ return /* @__PURE__ */ jsx64(React45.Fragment, { children: /* @__PURE__ */ jsx64(
4667
4671
  "td",
4668
4672
  {
4669
4673
  className: "px-6 py-2 whitespace-normal " + (column.controlType == ViewControlTypes_default.money ? "" : ""),
@@ -4815,7 +4819,7 @@ var DataList = (props) => {
4815
4819
  var DataList_default = DataList;
4816
4820
 
4817
4821
  // src/components/dataForm/DataListRenderer.tsx
4818
- import React45, { useState as useState9, useEffect as useEffect10 } from "react";
4822
+ import React46, { useState as useState9, useEffect as useEffect10 } from "react";
4819
4823
  import { usePathname as usePathname2 } from "next/navigation";
4820
4824
  import { jsx as jsx65, jsxs as jsxs36 } from "react/jsx-runtime";
4821
4825
  var viewControlMap = {
@@ -4906,7 +4910,7 @@ var DataListRenderer = ({
4906
4910
  const [tabItem, setTabItem] = useState9();
4907
4911
  const activeTab = tabItem?.find((tab) => tab.isActive);
4908
4912
  const activeHref = activeTab ? resolveRoutePlaceholders2(activeTab.landingPageUrl, params) : pathname;
4909
- return /* @__PURE__ */ jsxs36(React45.Fragment, { children: [
4913
+ return /* @__PURE__ */ jsxs36(React46.Fragment, { children: [
4910
4914
  widgetProps && /* @__PURE__ */ jsx65(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
4911
4915
  /* @__PURE__ */ jsx65(
4912
4916
  DataList_default,
@@ -4927,10 +4931,10 @@ var DataListRenderer = ({
4927
4931
  var DataListRenderer_default = DataListRenderer;
4928
4932
 
4929
4933
  // src/components/dataForm/DataForm.tsx
4930
- import React47, { useCallback as useCallback5, useEffect as useEffect11, useReducer as useReducer3, useRef as useRef4 } from "react";
4934
+ import React48, { useCallback as useCallback5, useEffect as useEffect11, useReducer as useReducer3, useRef as useRef4 } from "react";
4931
4935
 
4932
4936
  // src/components/dataForm/DataFormChildSection.tsx
4933
- import React46, { useCallback as useCallback4 } from "react";
4937
+ import React47, { useCallback as useCallback4 } from "react";
4934
4938
 
4935
4939
  // src/components/dataForm/StyleTypes.tsx
4936
4940
  var StyleTypes2 = /* @__PURE__ */ ((StyleTypes3) => {
@@ -5021,7 +5025,7 @@ var DataFormChildSection = (props) => {
5021
5025
  childItemsToRender,
5022
5026
  allChildItems: childItems
5023
5027
  });
5024
- return /* @__PURE__ */ jsx66(React46.Fragment, { children: /* @__PURE__ */ jsxs37("div", { className: "rounded border-neutral-200 border px-6 py-4 mb-2", children: [
5028
+ return /* @__PURE__ */ jsx66(React47.Fragment, { children: /* @__PURE__ */ jsxs37("div", { className: "rounded border-neutral-200 border px-6 py-4 mb-2", children: [
5025
5029
  section.sectionTitle && /* @__PURE__ */ jsx66("div", { className: "mb-4 text-lg font-medium text-body-950", children: section.sectionTitle }),
5026
5030
  /* @__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: [
5027
5031
  /* @__PURE__ */ jsx66("div", { children: /* @__PURE__ */ jsxs37("table", { className: "w-full border-separate divide-y divide-gray-200", children: [
@@ -5043,7 +5047,7 @@ var DataFormChildSection = (props) => {
5043
5047
  /* @__PURE__ */ jsx66("tbody", { className: "divide-y divide-gray-200", children: childItemsToRender.map((visibleItem, filteredIndex) => {
5044
5048
  const { item, originalIndex } = visibleItem;
5045
5049
  const rowKey = originalIndex;
5046
- return /* @__PURE__ */ jsx66(React46.Fragment, { children: section.sectionRows.map(
5050
+ return /* @__PURE__ */ jsx66(React47.Fragment, { children: section.sectionRows.map(
5047
5051
  (sectionRow, sectionRowIndex) => {
5048
5052
  return /* @__PURE__ */ jsxs37(
5049
5053
  "tr",
@@ -5332,7 +5336,7 @@ var DataForm = (props) => {
5332
5336
  return false;
5333
5337
  }
5334
5338
  }
5335
- return /* @__PURE__ */ jsx67(React47.Fragment, { children: /* @__PURE__ */ jsxs38("div", { className: "flex-grow flex flex-col", children: [
5339
+ return /* @__PURE__ */ jsx67(React48.Fragment, { children: /* @__PURE__ */ jsxs38("div", { className: "flex-grow flex flex-col", children: [
5336
5340
  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(
5337
5341
  "div",
5338
5342
  {
@@ -5366,7 +5370,7 @@ var DataForm = (props) => {
5366
5370
  }
5367
5371
  },
5368
5372
  children: /* @__PURE__ */ jsx67("div", { className: "flex flex-col gap-6", children: props.sections?.map((section, sectionIndex) => {
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: [
5373
+ 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: [
5370
5374
  section.sectionRows?.map(
5371
5375
  (sectionRow, sectionRowIndex) => {
5372
5376
  const elementsCount = sectionRow.elements.length;
@@ -5377,7 +5381,7 @@ var DataForm = (props) => {
5377
5381
  sectionRow.visible
5378
5382
  );
5379
5383
  }
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) => {
5384
+ 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) => {
5381
5385
  return /* @__PURE__ */ jsxs38(
5382
5386
  "div",
5383
5387
  {