@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260525110354 → 0.8.1-dev.20260526112357

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: /* @__PURE__ */ jsx4(
210
211
  DeviceAssetSelector_default,
211
212
  {
212
213
  assets,
213
214
  apiBaseUrl: props.apiBaseUrl,
214
- assetBaseUrl,
215
+ assetBaseUrl: props.assetBaseUrl ? props.assetBaseUrl : props.apiBaseUrl,
215
216
  session: props,
216
217
  width: props.width,
217
218
  customProps: props.customProps,
218
219
  tag: props.customProps?.tag
219
220
  }
220
- );
221
+ ) });
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";
@@ -2135,7 +2136,7 @@ var LinkNode = (props) => {
2135
2136
  console.warn("Unknown node type:", childNode.type);
2136
2137
  return null;
2137
2138
  }
2138
- return /* @__PURE__ */ jsx39(React28.Fragment, { children: /* @__PURE__ */ jsx39(
2139
+ return /* @__PURE__ */ jsx39(React29.Fragment, { children: /* @__PURE__ */ jsx39(
2139
2140
  SelectedNode,
2140
2141
  {
2141
2142
  node: childNode,
@@ -2374,7 +2375,7 @@ var ParagraphNode = (props) => {
2374
2375
  if (isInlineOnlyParent) {
2375
2376
  return /* @__PURE__ */ jsx43(Fragment3, { children: hasChildren && props.node.children.map((node, index) => {
2376
2377
  const SelectedNode = NodeTypes2[node.type];
2377
- return /* @__PURE__ */ jsx43(React29.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx43(
2378
+ return /* @__PURE__ */ jsx43(React30.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx43(
2378
2379
  SelectedNode,
2379
2380
  {
2380
2381
  node,
@@ -2389,7 +2390,7 @@ var ParagraphNode = (props) => {
2389
2390
  return /* @__PURE__ */ jsxs24("div", { className: " " + formatClasses, children: [
2390
2391
  hasChildren && props.node.children.map((node, index) => {
2391
2392
  const SelectedNode = NodeTypes2[node.type];
2392
- return /* @__PURE__ */ jsx43(React29.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx43(
2393
+ return /* @__PURE__ */ jsx43(React30.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx43(
2393
2394
  SelectedNode,
2394
2395
  {
2395
2396
  node,
@@ -2406,7 +2407,7 @@ var ParagraphNode = (props) => {
2406
2407
  var ParagraphNode_default = ParagraphNode;
2407
2408
 
2408
2409
  // src/components/pageRenderingEngine/nodes/HeadingNode.tsx
2409
- import React30 from "react";
2410
+ import React31 from "react";
2410
2411
  import { Fragment as Fragment4, jsx as jsx44 } from "react/jsx-runtime";
2411
2412
  var HeadingNode = (props) => {
2412
2413
  const NodeTypes2 = {
@@ -2423,22 +2424,22 @@ var HeadingNode = (props) => {
2423
2424
  {
2424
2425
  }
2425
2426
  const formatClasses = FormatClass[props.node.format] || "";
2426
- return /* @__PURE__ */ jsx44(Fragment4, { children: React30.createElement(
2427
+ return /* @__PURE__ */ jsx44(Fragment4, { children: React31.createElement(
2427
2428
  HeadingTag,
2428
2429
  { className: formatClasses },
2429
2430
  props.node.children && props.node.children.map((childNode, index) => {
2430
2431
  const SelectedNode = NodeTypes2[childNode.type];
2431
- 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);
2432
2433
  })
2433
2434
  ) });
2434
2435
  };
2435
2436
  var HeadingNode_default = HeadingNode;
2436
2437
 
2437
2438
  // src/components/pageRenderingEngine/nodes/ListNode.tsx
2438
- import React32 from "react";
2439
+ import React33 from "react";
2439
2440
 
2440
2441
  // src/components/pageRenderingEngine/nodes/ListItemNode.tsx
2441
- import React31 from "react";
2442
+ import React32 from "react";
2442
2443
  import { jsx as jsx45 } from "react/jsx-runtime";
2443
2444
  var ListItemNode = (props) => {
2444
2445
  const NodeTypes2 = {
@@ -2467,7 +2468,7 @@ var ListItemNode = (props) => {
2467
2468
  }
2468
2469
  } else {
2469
2470
  foundFirstBreak = false;
2470
- 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);
2471
2472
  }
2472
2473
  }) });
2473
2474
  };
@@ -2479,21 +2480,21 @@ var ListNode = (props) => {
2479
2480
  const NodeTypes2 = {
2480
2481
  listitem: ListItemNode_default
2481
2482
  };
2482
- return /* @__PURE__ */ jsxs25(React32.Fragment, { children: [
2483
+ return /* @__PURE__ */ jsxs25(React33.Fragment, { children: [
2483
2484
  props.node.listType == "bullet" && /* @__PURE__ */ jsx46("ul", { children: props.node.children && props.node.children.map((node, index) => {
2484
2485
  const SelectedNode = NodeTypes2[node.type];
2485
- 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);
2486
2487
  }) }),
2487
2488
  props.node.listType == "number" && /* @__PURE__ */ jsx46("ol", { children: props.node.children && props.node.children.map((node, index) => {
2488
2489
  const SelectedNode = NodeTypes2[node.type];
2489
- 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);
2490
2491
  }) })
2491
2492
  ] });
2492
2493
  };
2493
2494
  var ListNode_default = ListNode;
2494
2495
 
2495
2496
  // src/components/pageRenderingEngine/nodes/QuoteNode.tsx
2496
- import React33 from "react";
2497
+ import React34 from "react";
2497
2498
  import { jsx as jsx47 } from "react/jsx-runtime";
2498
2499
  var QuoteNode = (props) => {
2499
2500
  const NodeTypes2 = {
@@ -2503,13 +2504,13 @@ var QuoteNode = (props) => {
2503
2504
  };
2504
2505
  return /* @__PURE__ */ jsx47("blockquote", { children: props.node.children && props.node.children.map((node, index) => {
2505
2506
  const SelectedNode = NodeTypes2[node.type];
2506
- 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);
2507
2508
  }) });
2508
2509
  };
2509
2510
  var QuoteNode_default = QuoteNode;
2510
2511
 
2511
2512
  // src/components/pageRenderingEngine/nodes/CodeNode.tsx
2512
- import React34 from "react";
2513
+ import React35 from "react";
2513
2514
  import dynamic5 from "next/dynamic";
2514
2515
  import { jsx as jsx48, jsxs as jsxs26 } from "react/jsx-runtime";
2515
2516
  var CopyButton = dynamic5(() => import("./CopyButton-XONTQQW7.mjs"), {
@@ -2536,7 +2537,7 @@ var CodeNode = (props) => {
2536
2537
  ] }),
2537
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) => {
2538
2539
  const SelectedNode = NodeTypes2[node.type];
2539
- return /* @__PURE__ */ jsx48(React34.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx48(
2540
+ return /* @__PURE__ */ jsx48(React35.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx48(
2540
2541
  SelectedNode,
2541
2542
  {
2542
2543
  node,
@@ -2558,7 +2559,7 @@ var HorizontalRuleNode = () => {
2558
2559
  var HorizontalRuleNode_default = HorizontalRuleNode;
2559
2560
 
2560
2561
  // src/components/pageRenderingEngine/nodes/WidgetNode.tsx
2561
- import React35 from "react";
2562
+ import React36 from "react";
2562
2563
  import { Fragment as Fragment5, jsx as jsx50 } from "react/jsx-runtime";
2563
2564
  var WidgetNode = (props) => {
2564
2565
  const getWidgetParameters = () => {
@@ -2632,7 +2633,7 @@ var WidgetNode = (props) => {
2632
2633
  }
2633
2634
  return (
2634
2635
  // eslint-disable-next-line react-hooks/static-components
2635
- /* @__PURE__ */ jsx50(React35.Fragment, { children: /* @__PURE__ */ jsx50(
2636
+ /* @__PURE__ */ jsx50(React36.Fragment, { children: /* @__PURE__ */ jsx50(
2636
2637
  WidgetRenderer,
2637
2638
  {
2638
2639
  params: widgetParams,
@@ -2649,7 +2650,7 @@ var WidgetNode = (props) => {
2649
2650
  var WidgetNode_default = WidgetNode;
2650
2651
 
2651
2652
  // src/components/pageRenderingEngine/nodes/FormContainerNode.tsx
2652
- 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";
2653
2654
 
2654
2655
  // src/components/pageRenderingEngine/nodes/InputControlNode.tsx
2655
2656
  import { jsx as jsx51 } from "react/jsx-runtime";
@@ -2762,7 +2763,7 @@ var FormContainerNode = (props) => {
2762
2763
  {
2763
2764
  }
2764
2765
  const SelectedNode = NodeTypes2[node2.type];
2765
- 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(
2766
2767
  InputControlNode_default,
2767
2768
  {
2768
2769
  value: formState.inputValues[node2.name],
@@ -2777,7 +2778,7 @@ var FormContainerNode = (props) => {
2777
2778
  var FormContainerNode_default = FormContainerNode;
2778
2779
 
2779
2780
  // src/components/pageRenderingEngine/nodes/DivContainer.tsx
2780
- import React39 from "react";
2781
+ import React40 from "react";
2781
2782
 
2782
2783
  // src/components/pageRenderingEngine/nodes/EmbedNode.tsx
2783
2784
  import dynamic6 from "next/dynamic";
@@ -2799,7 +2800,7 @@ var EmbedNode = (props) => {
2799
2800
  var EmbedNode_default = EmbedNode;
2800
2801
 
2801
2802
  // src/components/Slider.tsx
2802
- 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";
2803
2804
  import { Fragment as Fragment6, jsx as jsx54, jsxs as jsxs28 } from "react/jsx-runtime";
2804
2805
  var Slider = ({
2805
2806
  children,
@@ -2894,7 +2895,7 @@ var Slider = ({
2894
2895
  };
2895
2896
  const translateX = -currentSlide * (100 / slidesToShowState);
2896
2897
  const slides = Children.map(children, (child, index) => {
2897
- if (!React37.isValidElement(child)) return null;
2898
+ if (!React38.isValidElement(child)) return null;
2898
2899
  const childProps = child.props;
2899
2900
  const mergedClassName = `${childProps.className ?? ""} w-full`.trim();
2900
2901
  return /* @__PURE__ */ jsx54(
@@ -3994,7 +3995,7 @@ var DivContainer = async (props) => {
3994
3995
  }
3995
3996
  const SelectedNode = NodeTypes2[node.type];
3996
3997
  if (!SelectedNode) return null;
3997
- return /* @__PURE__ */ jsx58(React39.Fragment, { children: /* @__PURE__ */ jsx58(
3998
+ return /* @__PURE__ */ jsx58(React40.Fragment, { children: /* @__PURE__ */ jsx58(
3998
3999
  SelectedNode,
3999
4000
  {
4000
4001
  node,
@@ -4096,9 +4097,9 @@ var DivContainer = async (props) => {
4096
4097
  props.node.autoFormat && "auto-format",
4097
4098
  props.node.bgClass
4098
4099
  ].filter(Boolean).join(" ");
4099
- return /* @__PURE__ */ jsxs32(React39.Fragment, { children: [
4100
+ return /* @__PURE__ */ jsxs32(React40.Fragment, { children: [
4100
4101
  /* @__PURE__ */ jsx58("style", { dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS } }),
4101
- /* @__PURE__ */ jsx58(React39.Fragment, { children: /* @__PURE__ */ jsx58(
4102
+ /* @__PURE__ */ jsx58(React40.Fragment, { children: /* @__PURE__ */ jsx58(
4102
4103
  Wrapper,
4103
4104
  {
4104
4105
  id: guid,
@@ -4107,7 +4108,7 @@ var DivContainer = async (props) => {
4107
4108
  ...wrapperProps,
4108
4109
  children: dataToRender.map(
4109
4110
  (item, idx) => item?.links?.view && renderLink ? renderChildren(props.node.children, props, item, idx, props.href ? void 0 : item?.links?.view)?.map(
4110
- (child, i) => /* @__PURE__ */ jsx58(React39.Fragment, { children: child }, i)
4111
+ (child, i) => /* @__PURE__ */ jsx58(React40.Fragment, { children: child }, i)
4111
4112
  ) : renderChildren(props.node.children, props, item, idx)
4112
4113
  )
4113
4114
  }
@@ -4146,11 +4147,11 @@ var PageBodyRenderer = (props) => {
4146
4147
  if (pageBodyTree && pageBodyTree.root) {
4147
4148
  rootNode = pageBodyTree.root;
4148
4149
  }
4149
- 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) => {
4150
4151
  {
4151
4152
  }
4152
4153
  const SelectedNode = NodeTypes[node.type];
4153
- 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(
4154
4155
  SelectedNode,
4155
4156
  {
4156
4157
  node,
@@ -4166,7 +4167,7 @@ var PageBodyRenderer = (props) => {
4166
4167
  device: props.device,
4167
4168
  widgetRenderer: props.widgetRenderer
4168
4169
  }
4169
- ) }) : /* @__PURE__ */ jsx59(React40.Fragment, { children: /* @__PURE__ */ jsx59(
4170
+ ) }) : /* @__PURE__ */ jsx59(React41.Fragment, { children: /* @__PURE__ */ jsx59(
4170
4171
  SelectedNode,
4171
4172
  {
4172
4173
  node,
@@ -4297,22 +4298,22 @@ var NavigationTabsV2 = ({ tabs, params = {} }) => {
4297
4298
  var NavigationTabsV2_default = NavigationTabsV2;
4298
4299
 
4299
4300
  // src/components/dataForm/DataList.tsx
4300
- 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";
4301
4302
  import { useRouter } from "next/navigation";
4302
4303
 
4303
4304
  // src/components/dataForm/NoContentView.tsx
4304
- import React42 from "react";
4305
+ import React43 from "react";
4305
4306
  import { jsx as jsx62 } from "react/jsx-runtime";
4306
4307
  var NoContentView = (props) => {
4307
- return /* @__PURE__ */ jsx62(React42.Fragment, { children: props.isDataFound === false && props.children });
4308
+ return /* @__PURE__ */ jsx62(React43.Fragment, { children: props.isDataFound === false && props.children });
4308
4309
  };
4309
4310
  var NoContentView_default = NoContentView;
4310
4311
 
4311
4312
  // src/components/dataForm/ContentView.tsx
4312
- import React43 from "react";
4313
+ import React44 from "react";
4313
4314
  import { jsx as jsx63, jsxs as jsxs34 } from "react/jsx-runtime";
4314
4315
  var ContentView = (props) => {
4315
- return /* @__PURE__ */ jsxs34(React43.Fragment, { children: [
4316
+ return /* @__PURE__ */ jsxs34(React44.Fragment, { children: [
4316
4317
  props.isDataFound == null && /* @__PURE__ */ jsx63("div", { className: "", children: /* @__PURE__ */ jsxs34("div", { className: "bg-gray-200 rounded-md p-4 animate-pulse", children: [
4317
4318
  /* @__PURE__ */ jsxs34("div", { className: "flex items-center mb-4", children: [
4318
4319
  /* @__PURE__ */ jsx63("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
@@ -4430,7 +4431,7 @@ var DataList = (props) => {
4430
4431
  const renderPageNumbers = () => {
4431
4432
  if (pages <= 10) {
4432
4433
  return Array.from({ length: pages }, (_, index) => index + 1).map(
4433
- (page) => /* @__PURE__ */ jsx64(React44.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx64(
4434
+ (page) => /* @__PURE__ */ jsx64(React45.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx64(
4434
4435
  Hyperlink,
4435
4436
  {
4436
4437
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -4444,7 +4445,7 @@ var DataList = (props) => {
4444
4445
  const showLastPages = activePageNumber > pages - 5;
4445
4446
  if (showFirstPages) {
4446
4447
  return /* @__PURE__ */ jsxs35(Fragment9, { children: [
4447
- 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(
4448
4449
  Hyperlink,
4449
4450
  {
4450
4451
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -4510,7 +4511,7 @@ var DataList = (props) => {
4510
4511
  ),
4511
4512
  /* @__PURE__ */ jsx64("span", { className: "px-2 py-1", children: "..." }),
4512
4513
  Array.from({ length: 8 }, (_, index) => pages - 7 + index).map(
4513
- (page) => /* @__PURE__ */ jsx64(React44.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx64(
4514
+ (page) => /* @__PURE__ */ jsx64(React45.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx64(
4514
4515
  Hyperlink,
4515
4516
  {
4516
4517
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -4542,7 +4543,7 @@ var DataList = (props) => {
4542
4543
  Array.from(
4543
4544
  { length: 5 },
4544
4545
  (_, index) => activePageNumber - 2 + index
4545
- ).map((page) => /* @__PURE__ */ jsx64(React44.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx64(
4546
+ ).map((page) => /* @__PURE__ */ jsx64(React45.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx64(
4546
4547
  Hyperlink,
4547
4548
  {
4548
4549
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -4588,7 +4589,7 @@ var DataList = (props) => {
4588
4589
  }
4589
4590
  }
4590
4591
  };
4591
- return /* @__PURE__ */ jsxs35(React44.Fragment, { children: [
4592
+ return /* @__PURE__ */ jsxs35(React45.Fragment, { children: [
4592
4593
  /* @__PURE__ */ jsxs35(ContentView_default, { isDataFound, children: [
4593
4594
  (props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ jsxs35(
4594
4595
  "div",
@@ -4666,7 +4667,7 @@ var DataList = (props) => {
4666
4667
  }
4667
4668
  return /* @__PURE__ */ jsx64("tr", { className: validityClass, children: props?.columns?.map((column, colindex) => {
4668
4669
  console.log("column", column);
4669
- return /* @__PURE__ */ jsx64(React44.Fragment, { children: /* @__PURE__ */ jsx64(
4670
+ return /* @__PURE__ */ jsx64(React45.Fragment, { children: /* @__PURE__ */ jsx64(
4670
4671
  "td",
4671
4672
  {
4672
4673
  className: "px-6 py-2 whitespace-normal " + (column.controlType == ViewControlTypes_default.money ? "" : ""),
@@ -4818,7 +4819,7 @@ var DataList = (props) => {
4818
4819
  var DataList_default = DataList;
4819
4820
 
4820
4821
  // src/components/dataForm/DataListRenderer.tsx
4821
- import React45, { useState as useState9, useEffect as useEffect10 } from "react";
4822
+ import React46, { useState as useState9, useEffect as useEffect10 } from "react";
4822
4823
  import { usePathname as usePathname2 } from "next/navigation";
4823
4824
  import { jsx as jsx65, jsxs as jsxs36 } from "react/jsx-runtime";
4824
4825
  var viewControlMap = {
@@ -4909,7 +4910,7 @@ var DataListRenderer = ({
4909
4910
  const [tabItem, setTabItem] = useState9();
4910
4911
  const activeTab = tabItem?.find((tab) => tab.isActive);
4911
4912
  const activeHref = activeTab ? resolveRoutePlaceholders2(activeTab.landingPageUrl, params) : pathname;
4912
- return /* @__PURE__ */ jsxs36(React45.Fragment, { children: [
4913
+ return /* @__PURE__ */ jsxs36(React46.Fragment, { children: [
4913
4914
  widgetProps && /* @__PURE__ */ jsx65(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
4914
4915
  /* @__PURE__ */ jsx65(
4915
4916
  DataList_default,
@@ -4930,10 +4931,10 @@ var DataListRenderer = ({
4930
4931
  var DataListRenderer_default = DataListRenderer;
4931
4932
 
4932
4933
  // src/components/dataForm/DataForm.tsx
4933
- 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";
4934
4935
 
4935
4936
  // src/components/dataForm/DataFormChildSection.tsx
4936
- import React46, { useCallback as useCallback4 } from "react";
4937
+ import React47, { useCallback as useCallback4 } from "react";
4937
4938
 
4938
4939
  // src/components/dataForm/StyleTypes.tsx
4939
4940
  var StyleTypes2 = /* @__PURE__ */ ((StyleTypes3) => {
@@ -5024,7 +5025,7 @@ var DataFormChildSection = (props) => {
5024
5025
  childItemsToRender,
5025
5026
  allChildItems: childItems
5026
5027
  });
5027
- 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: [
5028
5029
  section.sectionTitle && /* @__PURE__ */ jsx66("div", { className: "mb-4 text-lg font-medium text-body-950", children: section.sectionTitle }),
5029
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: [
5030
5031
  /* @__PURE__ */ jsx66("div", { children: /* @__PURE__ */ jsxs37("table", { className: "w-full border-separate divide-y divide-gray-200", children: [
@@ -5046,7 +5047,7 @@ var DataFormChildSection = (props) => {
5046
5047
  /* @__PURE__ */ jsx66("tbody", { className: "divide-y divide-gray-200", children: childItemsToRender.map((visibleItem, filteredIndex) => {
5047
5048
  const { item, originalIndex } = visibleItem;
5048
5049
  const rowKey = originalIndex;
5049
- return /* @__PURE__ */ jsx66(React46.Fragment, { children: section.sectionRows.map(
5050
+ return /* @__PURE__ */ jsx66(React47.Fragment, { children: section.sectionRows.map(
5050
5051
  (sectionRow, sectionRowIndex) => {
5051
5052
  return /* @__PURE__ */ jsxs37(
5052
5053
  "tr",
@@ -5335,7 +5336,7 @@ var DataForm = (props) => {
5335
5336
  return false;
5336
5337
  }
5337
5338
  }
5338
- 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: [
5339
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(
5340
5341
  "div",
5341
5342
  {
@@ -5369,7 +5370,7 @@ var DataForm = (props) => {
5369
5370
  }
5370
5371
  },
5371
5372
  children: /* @__PURE__ */ jsx67("div", { className: "flex flex-col gap-6", children: props.sections?.map((section, sectionIndex) => {
5372
- 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: [
5373
5374
  section.sectionRows?.map(
5374
5375
  (sectionRow, sectionRowIndex) => {
5375
5376
  const elementsCount = sectionRow.elements.length;
@@ -5380,7 +5381,7 @@ var DataForm = (props) => {
5380
5381
  sectionRow.visible
5381
5382
  );
5382
5383
  }
5383
- 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) => {
5384
5385
  return /* @__PURE__ */ jsxs38(
5385
5386
  "div",
5386
5387
  {