@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260326055821 → 0.8.1-dev.20260326063413

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/index.js +184 -36
  2. package/dist/index.mjs +308 -160
  3. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -45,47 +45,192 @@ var NumberView_default = NumberView;
45
45
 
46
46
  // src/components/controls/view/DateView.tsx
47
47
  import React2 from "react";
48
- import moment from "moment-timezone";
49
- import { jsx as jsx2 } from "react/jsx-runtime";
48
+
49
+ // src/components/controls/view/TimeZoneAbbrevations.tsx
50
+ var timeZoneAbbreviations = {
51
+ "Asia/Calcutta": "IST",
52
+ "Asia/Kolkata": "IST",
53
+ "America/New_York": "EST",
54
+ "America/Los_Angeles": "PST",
55
+ "Europe/London": "GMT",
56
+ "Europe/Paris": "CET",
57
+ "Asia/Tokyo": "JST",
58
+ "America/Chicago": "CST",
59
+ "America/Denver": "MST",
60
+ "Asia/Shanghai": "CST",
61
+ "Asia/Hong_Kong": "HKT",
62
+ "Australia/Sydney": "AEST",
63
+ "Australia/Melbourne": "AEST",
64
+ "Australia/Perth": "AWST",
65
+ "Pacific/Auckland": "NZST",
66
+ "Europe/Berlin": "CET",
67
+ "Europe/Madrid": "CET",
68
+ "Europe/Rome": "CET",
69
+ "Europe/Athens": "EET",
70
+ "Europe/Istanbul": "TRT",
71
+ "Africa/Cairo": "EET",
72
+ "Africa/Johannesburg": "SAST",
73
+ "Asia/Dubai": "GST",
74
+ "Asia/Singapore": "SGT",
75
+ "Asia/Seoul": "KST",
76
+ "America/Toronto": "EST",
77
+ "America/Vancouver": "PST",
78
+ "America/Sao_Paulo": "BRT",
79
+ "America/Mexico_City": "CST",
80
+ "Asia/Manila": "PHT",
81
+ "Asia/Jakarta": "WIB",
82
+ "Asia/Bangkok": "ICT",
83
+ "Asia/Karachi": "PKT",
84
+ "Asia/Tehran": "IRST",
85
+ "Asia/Baghdad": "AST",
86
+ "Europe/Moscow": "MSK",
87
+ "Europe/Amsterdam": "CET",
88
+ "Europe/Brussels": "CET",
89
+ "Europe/Zurich": "CET",
90
+ "America/Anchorage": "AKST",
91
+ "Pacific/Honolulu": "HST",
92
+ "Antarctica/McMurdo": "NZST",
93
+ "Atlantic/Reykjavik": "GMT",
94
+ "Asia/Riyadh": "AST",
95
+ "America/Argentina/Buenos_Aires": "ART",
96
+ "America/Bogota": "COT",
97
+ "Africa/Nairobi": "EAT",
98
+ "Asia/Kuala_Lumpur": "MYT",
99
+ "Asia/Ho_Chi_Minh": "ICT",
100
+ "Europe/Warsaw": "CET",
101
+ "Europe/Prague": "CET",
102
+ "America/Phoenix": "MST",
103
+ "America/Indianapolis": "EST",
104
+ "Pacific/Fiji": "FJT",
105
+ "Asia/Colombo": "IST",
106
+ "Africa/Lagos": "WAT",
107
+ "America/Caracas": "VET",
108
+ "America/Halifax": "AST",
109
+ "Pacific/Tahiti": "TAHT",
110
+ "America/St_Johns": "NST",
111
+ "Europe/Bucharest": "EET",
112
+ "Europe/Helsinki": "EET",
113
+ "Europe/Kiev": "EET",
114
+ "Europe/Oslo": "CET",
115
+ "Europe/Stockholm": "CET",
116
+ "Europe/Lisbon": "WET",
117
+ "Asia/Beirut": "EET",
118
+ "Asia/Damascus": "EET",
119
+ "Asia/Jerusalem": "IST",
120
+ "Asia/Amman": "EET",
121
+ "America/Santiago": "CLT",
122
+ "America/Lima": "PET",
123
+ "America/Montevideo": "UYT",
124
+ "Asia/Tashkent": "UZT",
125
+ "Asia/Yerevan": "AMT",
126
+ "Asia/Baku": "AZT",
127
+ "Europe/Vilnius": "EET",
128
+ "Europe/Riga": "EET",
129
+ "Europe/Tallinn": "EET",
130
+ "Europe/Sofia": "EET",
131
+ "Africa/Casablanca": "WET",
132
+ "America/Guatemala": "CST",
133
+ "America/Panama": "EST",
134
+ "America/Costa_Rica": "CST",
135
+ "Pacific/Port_Moresby": "PGT",
136
+ "Asia/Makassar": "WITA",
137
+ "Asia/Vladivostok": "VLAT",
138
+ "Asia/Krasnoyarsk": "KRAT",
139
+ "Asia/Novosibirsk": "NOVT",
140
+ "Asia/Yakutsk": "YAKT",
141
+ "Asia/Sakhalin": "SAKT",
142
+ "Asia/Ulaanbaatar": "ULAT",
143
+ "Asia/Choibalsan": "CHOT",
144
+ "Asia/Omsk": "OMST",
145
+ "Asia/Kamchatka": "PETT",
146
+ "Pacific/Pago_Pago": "SST",
147
+ "Pacific/Guam": "ChST",
148
+ "Pacific/Saipan": "ChST",
149
+ "Pacific/Palau": "PWT",
150
+ "Pacific/Efate": "VUT",
151
+ "Pacific/Kosrae": "KOST",
152
+ "Pacific/Nauru": "NRT",
153
+ "Pacific/Tarawa": "GILT",
154
+ "Pacific/Enderbury": "PHOT",
155
+ "Pacific/Fakaofo": "TKT",
156
+ "Pacific/Chatham": "CHAST",
157
+ "Pacific/Tongatapu": "TOT",
158
+ "Pacific/Funafuti": "TVT",
159
+ "Pacific/Majuro": "MHT",
160
+ "Pacific/Kwajalein": "MHT",
161
+ "Pacific/Wake": "WAKT",
162
+ "Pacific/Wallis": "WFT"
163
+ };
164
+
165
+ // src/components/controls/view/DateView.tsx
166
+ import { jsx as jsx2, jsxs } from "react/jsx-runtime";
50
167
  var DateView = (props) => {
168
+ const getTimeZoneAbbreviation = (timeZone) => {
169
+ return timeZoneAbbreviations[timeZone] || timeZone;
170
+ };
171
+ const getRelativeTime = (dateString) => {
172
+ const now = /* @__PURE__ */ new Date();
173
+ const date = /* @__PURE__ */ new Date(dateString + "Z");
174
+ const diffMs = now.getTime() - date.getTime();
175
+ const diffSec = Math.floor(diffMs / 1e3);
176
+ const diffMin = Math.floor(diffSec / 60);
177
+ const diffHr = Math.floor(diffMin / 60);
178
+ const diffDay = Math.floor(diffHr / 24);
179
+ if (diffSec < 60) return "Just now";
180
+ if (diffMin < 60) return `${diffMin} minute${diffMin > 1 ? "s" : ""} ago`;
181
+ if (diffHr < 24) return `${diffHr} hour${diffHr > 1 ? "s" : ""} ago`;
182
+ if (diffDay < 7) return `${diffDay} day${diffDay > 1 ? "s" : ""} ago`;
183
+ return new Intl.DateTimeFormat("en", {
184
+ day: "2-digit",
185
+ month: "short",
186
+ year: "numeric"
187
+ }).format(date);
188
+ };
189
+ console.log("DateView props:", props);
190
+ const parseAndFormatDate = (dateString, format) => {
191
+ const parsedDate = /* @__PURE__ */ new Date(dateString + "Z");
192
+ if (format === "relative") {
193
+ return getRelativeTime(dateString);
194
+ }
195
+ switch (props.controlType) {
196
+ case "date":
197
+ return new Intl.DateTimeFormat("en", {
198
+ day: "2-digit",
199
+ month: "short",
200
+ year: "numeric"
201
+ }).format(parsedDate);
202
+ case "time":
203
+ return `${formatTime(parsedDate)} ${getTimeZoneAbbreviation(Intl.DateTimeFormat().resolvedOptions().timeZone)} (${getTimePeriod(parsedDate)})`;
204
+ default:
205
+ return parsedDate.getSeconds() === 0 ? new Intl.DateTimeFormat("en", { day: "2-digit", month: "short", year: "numeric", hour: "2-digit", minute: "2-digit" }).format(parsedDate) : new Intl.DateTimeFormat("en", { day: "2-digit", month: "short", year: "numeric", hour: "2-digit", minute: "2-digit", second: "2-digit" }).format(parsedDate);
206
+ }
207
+ };
208
+ const formatTime = (date) => {
209
+ return date.getSeconds() === 0 ? new Intl.DateTimeFormat("en", { hour: "2-digit", minute: "2-digit" }).format(date) : new Intl.DateTimeFormat("en", { hour: "2-digit", minute: "2-digit", second: "2-digit" }).format(date);
210
+ };
211
+ const getTimePeriod = (date) => {
212
+ const hours = date.getHours();
213
+ if (hours >= 5 && hours < 8) return "Early Morning";
214
+ if (hours >= 8 && hours < 12) return "Morning";
215
+ if (hours >= 12 && hours < 14) return "Noon";
216
+ if (hours >= 14 && hours < 17) return "Afternoon";
217
+ if (hours >= 17 && hours < 20) return "Evening";
218
+ if (hours >= 20 && hours < 22) return "Late Evening";
219
+ if (hours >= 22 || hours < 5) return "Night";
220
+ return "Late Night";
221
+ };
51
222
  let localDateTime = "";
52
- let timezone;
223
+ let timeZoneAbbreviation = "";
53
224
  try {
54
- const val = props.value && props.value.toString().includes("Z") ? props.value : props.value + "Z";
55
- const parsedDate = new Date(val);
56
- const timezoneOffset = parsedDate.getTimezoneOffset();
57
- timezone = moment.tz.zone(moment.tz.guess())?.abbr(timezoneOffset);
58
- if (props.format && props.format == "timeago") {
59
- localDateTime = formatTimeAgo(parsedDate);
60
- } else {
61
- localDateTime = parsedDate.toLocaleString() + " " + timezone;
62
- }
225
+ localDateTime = parseAndFormatDate(props.value, props.format);
226
+ timeZoneAbbreviation = getTimeZoneAbbreviation(Intl.DateTimeFormat().resolvedOptions().timeZone);
63
227
  } catch (error) {
64
- console.error("Error parsing date:", props.value);
65
- }
66
- function formatTimeAgo(inputDate) {
67
- const currentDate = /* @__PURE__ */ new Date();
68
- const timeDifference = Math.floor((currentDate.getTime() - inputDate.getTime()) / 1e3);
69
- if (timeDifference < 10) {
70
- return "few secs ago";
71
- } else if (timeDifference < 60) {
72
- return `${timeDifference} secs ago`;
73
- } else if (timeDifference < 3600) {
74
- const minutes = Math.floor(timeDifference / 60);
75
- return `${minutes} min${minutes > 1 ? "s" : ""} ago`;
76
- } else if (timeDifference < 86400) {
77
- const hours = Math.floor(timeDifference / 3600);
78
- const remainingMinutes = Math.floor(timeDifference % 3600 / 60);
79
- return `${hours} hour${hours > 1 ? "s" : ""}, ${remainingMinutes} min${remainingMinutes > 1 ? "s" : ""} ago`;
80
- } else if (timeDifference < 14 * 3600) {
81
- const daysAgo = Math.floor(timeDifference / 86400);
82
- return `${daysAgo} day${daysAgo > 1 ? "s" : ""} ago`;
83
- } else {
84
- const formattedDate = inputDate.toLocaleString();
85
- return formattedDate;
86
- }
228
+ console.error("Error parsing date:", props.value, error);
87
229
  }
88
- return /* @__PURE__ */ jsx2(React2.Fragment, { children: /* @__PURE__ */ jsx2("div", { className: "inline-flex gap-1", children: localDateTime == "Invalid Date undefined" ? "-" : localDateTime }) });
230
+ return /* @__PURE__ */ jsx2(React2.Fragment, { children: /* @__PURE__ */ jsxs("div", { className: "inline-flex flex-wrap gap-1", children: [
231
+ /* @__PURE__ */ jsx2("span", { children: localDateTime }),
232
+ !props.format && props.controlType != "date" && /* @__PURE__ */ jsx2("span", { children: timeZoneAbbreviation })
233
+ ] }) });
89
234
  };
90
235
  var DateView_default = DateView;
91
236
 
@@ -99,10 +244,10 @@ var LineTextView_default = LineText;
99
244
 
100
245
  // src/components/controls/view/MoneyView.tsx
101
246
  import React4 from "react";
102
- import { jsx as jsx4, jsxs } from "react/jsx-runtime";
247
+ import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
103
248
  var Money = (props) => {
104
249
  const parsedNumber = parseFloat(props.value);
105
- return /* @__PURE__ */ jsx4(React4.Fragment, { children: !Number.isNaN(parsedNumber) && /* @__PURE__ */ jsxs("span", { className: parsedNumber < 0 ? "text-alert" : "", children: [
250
+ return /* @__PURE__ */ jsx4(React4.Fragment, { children: !Number.isNaN(parsedNumber) && /* @__PURE__ */ jsxs2("span", { className: parsedNumber < 0 ? "text-alert" : "", children: [
106
251
  /* @__PURE__ */ jsx4("span", { className: "mr-0.5", children: "\u20B9" }),
107
252
  parsedNumber.toLocaleString()
108
253
  ] }) });
@@ -130,9 +275,9 @@ var MultilineTextView_default = MultilineText;
130
275
 
131
276
  // src/components/controls/view/PercentageView.tsx
132
277
  import React7 from "react";
133
- import { jsxs as jsxs2 } from "react/jsx-runtime";
278
+ import { jsxs as jsxs3 } from "react/jsx-runtime";
134
279
  var PercentageView = (props) => {
135
- return /* @__PURE__ */ jsxs2(React7.Fragment, { children: [
280
+ return /* @__PURE__ */ jsxs3(React7.Fragment, { children: [
136
281
  props.value,
137
282
  "%"
138
283
  ] });
@@ -141,15 +286,15 @@ var PercentageView_default = PercentageView;
141
286
 
142
287
  // src/components/controls/view/ProgressIndicator.tsx
143
288
  import React8 from "react";
144
- import { jsx as jsx7, jsxs as jsxs3 } from "react/jsx-runtime";
289
+ import { jsx as jsx7, jsxs as jsxs4 } from "react/jsx-runtime";
145
290
  var ProgressIndicator = (props) => {
146
291
  const percentage = 100;
147
292
  const circumference = Math.PI * 56;
148
293
  const offset = circumference * (1 - percentage / 100);
149
- return /* @__PURE__ */ jsx7(React8.Fragment, { children: /* @__PURE__ */ jsxs3("div", { className: "relative w-48 h-48", children: [
294
+ return /* @__PURE__ */ jsx7(React8.Fragment, { children: /* @__PURE__ */ jsxs4("div", { className: "relative w-48 h-48", children: [
150
295
  /* @__PURE__ */ jsx7("div", { className: "absolute top-0 left-0 w-full h-full rounded-full border border-gray-200" }),
151
296
  /* @__PURE__ */ jsx7("div", { className: "absolute top-0 left-0 w-full h-full rounded-full overflow-hidden", children: /* @__PURE__ */ jsx7("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)` } }) }),
152
- /* @__PURE__ */ jsx7("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: [
297
+ /* @__PURE__ */ jsx7("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__ */ jsxs4("span", { children: [
153
298
  percentage,
154
299
  "%"
155
300
  ] }) })
@@ -158,7 +303,7 @@ var ProgressIndicator = (props) => {
158
303
  var ProgressIndicator_default = ProgressIndicator;
159
304
 
160
305
  // src/components/controls/view/ViewControl.tsx
161
- import { jsx as jsx8 } from "react/jsx-runtime";
306
+ import { jsx as jsx8, jsxs as jsxs5 } from "react/jsx-runtime";
162
307
  var ViewControl = React9.forwardRef(
163
308
  (props, ref) => {
164
309
  const ControlComponents = {
@@ -180,7 +325,10 @@ var ViewControl = React9.forwardRef(
180
325
  // [ViewControlTypes.aiGeneratedSummary]: AiGeneratedSummary,
181
326
  };
182
327
  const SelectedControlComponent = props.controlType ? ControlComponents[props.controlType] : void 0;
183
- return /* @__PURE__ */ jsx8(React9.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ jsx8(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
328
+ return /* @__PURE__ */ jsxs5(React9.Fragment, { children: [
329
+ props.controlType,
330
+ SelectedControlComponent ? /* @__PURE__ */ jsx8(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType
331
+ ] });
184
332
  }
185
333
  );
186
334
  ViewControl.displayName = "ViewControl";
@@ -191,7 +339,7 @@ import React29 from "react";
191
339
 
192
340
  // src/components/controls/edit/MultilineTextInput.tsx
193
341
  import React10 from "react";
194
- import { jsx as jsx9, jsxs as jsxs4 } from "react/jsx-runtime";
342
+ import { jsx as jsx9, jsxs as jsxs6 } from "react/jsx-runtime";
195
343
  var MultilineTextInput = (props) => {
196
344
  const textChangeHandler = (event) => {
197
345
  const text = event.target.value;
@@ -210,7 +358,7 @@ var MultilineTextInput = (props) => {
210
358
  if (props.value !== void 0 && props.value !== null) {
211
359
  value = props.value;
212
360
  }
213
- return /* @__PURE__ */ jsx9(React10.Fragment, { children: /* @__PURE__ */ jsxs4("label", { className: "block mb-1", children: [
361
+ return /* @__PURE__ */ jsx9(React10.Fragment, { children: /* @__PURE__ */ jsxs6("label", { className: "block mb-1", children: [
214
362
  /* @__PURE__ */ jsx9("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
215
363
  " ",
216
364
  props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx9("span", { className: "text-alert", children: "*" }),
@@ -238,7 +386,7 @@ var MultilineTextInput_default = MultilineTextInput;
238
386
 
239
387
  // src/components/controls/edit/LineTextInput.tsx
240
388
  import React11 from "react";
241
- import { jsx as jsx10, jsxs as jsxs5 } from "react/jsx-runtime";
389
+ import { jsx as jsx10, jsxs as jsxs7 } from "react/jsx-runtime";
242
390
  var LineTextInput = (props) => {
243
391
  const textChangeHandler = (event) => {
244
392
  const text = event.target.value;
@@ -257,7 +405,7 @@ var LineTextInput = (props) => {
257
405
  if (props.value !== void 0 && props.value !== null) {
258
406
  value = props.value;
259
407
  }
260
- return /* @__PURE__ */ jsx10(React11.Fragment, { children: /* @__PURE__ */ jsxs5("label", { className: "block", children: [
408
+ return /* @__PURE__ */ jsx10(React11.Fragment, { children: /* @__PURE__ */ jsxs7("label", { className: "block", children: [
261
409
  props?.attributes?.label && /* @__PURE__ */ jsx10("span", { className: "text-sm inline-block pb-1 font-medium ", children: props?.attributes?.label }),
262
410
  " ",
263
411
  props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx10("span", { className: "text-alert", children: "*" }),
@@ -290,7 +438,7 @@ var LineTextInput_default = LineTextInput;
290
438
 
291
439
  // src/components/controls/edit/MoneyInput.tsx
292
440
  import React12 from "react";
293
- import { jsx as jsx11, jsxs as jsxs6 } from "react/jsx-runtime";
441
+ import { jsx as jsx11, jsxs as jsxs8 } from "react/jsx-runtime";
294
442
  var MoneyInput = (props) => {
295
443
  const textChangeHandler = (event) => {
296
444
  const rawValue = event.target.value;
@@ -319,7 +467,7 @@ var MoneyInput = (props) => {
319
467
  e.preventDefault();
320
468
  }
321
469
  };
322
- return /* @__PURE__ */ jsx11(React12.Fragment, { children: /* @__PURE__ */ jsxs6("label", { className: "block mb-1", children: [
470
+ return /* @__PURE__ */ jsx11(React12.Fragment, { children: /* @__PURE__ */ jsxs8("label", { className: "block mb-1", children: [
323
471
  /* @__PURE__ */ jsx11("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
324
472
  " ",
325
473
  props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx11("span", { className: "text-alert", children: "*" }),
@@ -374,7 +522,7 @@ var InputControlType_default = InputControlType;
374
522
 
375
523
  // src/components/controls/edit/Select.tsx
376
524
  import { useState, useEffect } from "react";
377
- import { jsx as jsx12, jsxs as jsxs7 } from "react/jsx-runtime";
525
+ import { jsx as jsx12, jsxs as jsxs9 } from "react/jsx-runtime";
378
526
  var Select = (props) => {
379
527
  const [list, setList] = useState([]);
380
528
  const getSafeValue = (val) => {
@@ -432,10 +580,10 @@ var Select = (props) => {
432
580
  props.dataSourceDependsOn
433
581
  ]);
434
582
  const value = getSafeValue(props.value);
435
- return /* @__PURE__ */ jsxs7("label", { className: "block", children: [
583
+ return /* @__PURE__ */ jsxs9("label", { className: "block", children: [
436
584
  props.attributes?.label && /* @__PURE__ */ jsx12("span", { className: "text-sm font-medium inline-block pb-1", children: props.attributes?.label }),
437
585
  props.attributes?.label && props.attributes?.required && /* @__PURE__ */ jsx12("span", { className: "text-alert", children: "*" }),
438
- /* @__PURE__ */ jsxs7(
586
+ /* @__PURE__ */ jsxs9(
439
587
  "select",
440
588
  {
441
589
  name: props.name,
@@ -462,7 +610,7 @@ var Select_default = Select;
462
610
 
463
611
  // src/components/controls/edit/PercentageInput.tsx
464
612
  import React14 from "react";
465
- import { jsx as jsx13, jsxs as jsxs8 } from "react/jsx-runtime";
613
+ import { jsx as jsx13, jsxs as jsxs10 } from "react/jsx-runtime";
466
614
  var PercentageInput = (props) => {
467
615
  const textChangeHandler = (event) => {
468
616
  const rawValue = event.target.value;
@@ -491,7 +639,7 @@ var PercentageInput = (props) => {
491
639
  e.preventDefault();
492
640
  }
493
641
  };
494
- return /* @__PURE__ */ jsx13(React14.Fragment, { children: /* @__PURE__ */ jsxs8("label", { className: "block mb-1", children: [
642
+ return /* @__PURE__ */ jsx13(React14.Fragment, { children: /* @__PURE__ */ jsxs10("label", { className: "block mb-1", children: [
495
643
  /* @__PURE__ */ jsx13("span", { className: "text-sm font-medium ", children: props?.attributes?.label ? props?.attributes?.label + " %" : "" }),
496
644
  " ",
497
645
  props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx13("span", { className: "text-alert", children: "*" }),
@@ -521,7 +669,7 @@ var PercentageInput_default = PercentageInput;
521
669
 
522
670
  // src/components/controls/edit/PhoneInput.tsx
523
671
  import React15 from "react";
524
- import { jsx as jsx14, jsxs as jsxs9 } from "react/jsx-runtime";
672
+ import { jsx as jsx14, jsxs as jsxs11 } from "react/jsx-runtime";
525
673
  var PhoneInput = (props) => {
526
674
  const textChangeHandler = (event) => {
527
675
  const text = event.target.value;
@@ -540,9 +688,9 @@ var PhoneInput = (props) => {
540
688
  if (props.value !== void 0 && props.value !== null) {
541
689
  value = props.value;
542
690
  }
543
- return /* @__PURE__ */ jsx14(React15.Fragment, { children: /* @__PURE__ */ jsxs9("label", { className: "block mb-1", children: [
691
+ return /* @__PURE__ */ jsx14(React15.Fragment, { children: /* @__PURE__ */ jsxs11("label", { className: "block mb-1", children: [
544
692
  /* @__PURE__ */ jsx14("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
545
- /* @__PURE__ */ jsxs9("div", { className: "flex items-center bg-gray-100 rounded border border-gray-300 \n focus-within:border-indigo-300 focus-within:ring focus-within:ring-indigo-200 focus-within:ring-opacity-50", children: [
693
+ /* @__PURE__ */ jsxs11("div", { className: "flex items-center bg-gray-100 rounded border border-gray-300 \n focus-within:border-indigo-300 focus-within:ring focus-within:ring-indigo-200 focus-within:ring-opacity-50", children: [
546
694
  /* @__PURE__ */ jsx14("span", { className: "px-3 text-gray-700", children: props.prefix }),
547
695
  /* @__PURE__ */ jsx14(
548
696
  "input",
@@ -569,7 +717,7 @@ var PhoneInput_default = PhoneInput;
569
717
 
570
718
  // src/components/controls/edit/NumberInput.tsx
571
719
  import React16 from "react";
572
- import { jsx as jsx15, jsxs as jsxs10 } from "react/jsx-runtime";
720
+ import { jsx as jsx15, jsxs as jsxs12 } from "react/jsx-runtime";
573
721
  var NumberInput = (props) => {
574
722
  const textChangeHandler = (event) => {
575
723
  const text = event.target.value;
@@ -592,7 +740,7 @@ var NumberInput = (props) => {
592
740
  if (props.value !== void 0 && props.value !== null) {
593
741
  value = props.value;
594
742
  }
595
- return /* @__PURE__ */ jsx15(React16.Fragment, { children: /* @__PURE__ */ jsxs10("label", { className: "block", children: [
743
+ return /* @__PURE__ */ jsx15(React16.Fragment, { children: /* @__PURE__ */ jsxs12("label", { className: "block", children: [
596
744
  props?.attributes?.label && /* @__PURE__ */ jsx15("span", { className: "text-sm inline-block pb-1 font-medium ", children: props?.attributes?.label }),
597
745
  " ",
598
746
  props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx15("span", { className: "text-alert", children: "*" }),
@@ -622,7 +770,7 @@ var NumberInput_default = NumberInput;
622
770
 
623
771
  // src/components/controls/edit/CheckboxInput.tsx
624
772
  import React17 from "react";
625
- import { jsx as jsx16, jsxs as jsxs11 } from "react/jsx-runtime";
773
+ import { jsx as jsx16, jsxs as jsxs13 } from "react/jsx-runtime";
626
774
  var CheckboxInput = (props) => {
627
775
  const textChangeHandler = (event) => {
628
776
  let text = event.target.checked;
@@ -641,7 +789,7 @@ var CheckboxInput = (props) => {
641
789
  if (props.value != void 0 && props.value != null && props.value != "" && (props.value == "true" || props.value.toString() == "true")) {
642
790
  value = true;
643
791
  }
644
- return /* @__PURE__ */ jsx16(React17.Fragment, { children: /* @__PURE__ */ jsxs11("label", { className: "block mb-1", children: [
792
+ return /* @__PURE__ */ jsx16(React17.Fragment, { children: /* @__PURE__ */ jsxs13("label", { className: "block mb-1", children: [
645
793
  /* @__PURE__ */ jsx16("span", { className: "text-sm font-medium", children: props?.attributes?.label }),
646
794
  " ",
647
795
  props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx16("span", { className: "text-alert", children: "*" }),
@@ -669,7 +817,7 @@ var CheckboxInput_default = CheckboxInput;
669
817
 
670
818
  // src/components/controls/edit/OtpInput.tsx
671
819
  import React18 from "react";
672
- import { jsx as jsx17, jsxs as jsxs12 } from "react/jsx-runtime";
820
+ import { jsx as jsx17, jsxs as jsxs14 } from "react/jsx-runtime";
673
821
  var OtpInput = (props) => {
674
822
  const textChangeHandler = (event) => {
675
823
  const text = event.target.value;
@@ -691,7 +839,7 @@ var OtpInput = (props) => {
691
839
  if (props.value !== void 0 && props.value !== null) {
692
840
  value = props.value;
693
841
  }
694
- return /* @__PURE__ */ jsx17(React18.Fragment, { children: /* @__PURE__ */ jsxs12("label", { htmlFor: props.name, className: "block mb-1 w-full", children: [
842
+ return /* @__PURE__ */ jsx17(React18.Fragment, { children: /* @__PURE__ */ jsxs14("label", { htmlFor: props.name, className: "block mb-1 w-full", children: [
695
843
  /* @__PURE__ */ jsx17("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
696
844
  /* @__PURE__ */ jsx17(
697
845
  "input",
@@ -796,7 +944,7 @@ var DateTimeUtility_default = DateTimeUtility;
796
944
 
797
945
  // src/components/controls/edit/DateTimeInput.tsx
798
946
  import React19 from "react";
799
- import { jsx as jsx18, jsxs as jsxs13 } from "react/jsx-runtime";
947
+ import { jsx as jsx18, jsxs as jsxs15 } from "react/jsx-runtime";
800
948
  var DateTimeInput = (props) => {
801
949
  const textChangeHandler = (event) => {
802
950
  const localDate = new Date(event.target.value);
@@ -831,11 +979,11 @@ var DateTimeInput = (props) => {
831
979
  timeZoneAbbr = now2.toLocaleTimeString("en", { timeZoneName: "short" }).split(" ")[2];
832
980
  localvalue = localDate?.toISOString()?.slice(0, 16);
833
981
  }
834
- return /* @__PURE__ */ jsx18(React19.Fragment, { children: /* @__PURE__ */ jsxs13("label", { className: "block mb-1", children: [
982
+ return /* @__PURE__ */ jsx18(React19.Fragment, { children: /* @__PURE__ */ jsxs15("label", { className: "block mb-1", children: [
835
983
  /* @__PURE__ */ jsx18("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
836
984
  " ",
837
985
  props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx18("span", { className: "text-alert", children: "*" }),
838
- /* @__PURE__ */ jsxs13("div", { className: "flex items-center gap-2", children: [
986
+ /* @__PURE__ */ jsxs15("div", { className: "flex items-center gap-2", children: [
839
987
  /* @__PURE__ */ jsx18(
840
988
  "input",
841
989
  {
@@ -862,7 +1010,7 @@ var DateTimeInput_default = DateTimeInput;
862
1010
 
863
1011
  // src/components/controls/edit/ColorInput.tsx
864
1012
  import React20, { useEffect as useEffect2 } from "react";
865
- import { jsx as jsx19, jsxs as jsxs14 } from "react/jsx-runtime";
1013
+ import { jsx as jsx19, jsxs as jsxs16 } from "react/jsx-runtime";
866
1014
  var ColorInput = (props) => {
867
1015
  const [color, setColor] = React20.useState("#3b82f6");
868
1016
  useEffect2(() => {
@@ -884,7 +1032,7 @@ var ColorInput = (props) => {
884
1032
  });
885
1033
  }
886
1034
  };
887
- return /* @__PURE__ */ jsxs14("label", { className: "block mb-1", children: [
1035
+ return /* @__PURE__ */ jsxs16("label", { className: "block mb-1", children: [
888
1036
  /* @__PURE__ */ jsx19("span", { className: "text-sm font-medium", children: props?.attributes?.label }),
889
1037
  " ",
890
1038
  props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx19("span", { className: "text-alert", children: "*" }),
@@ -908,7 +1056,7 @@ var ColorInput_default = ColorInput;
908
1056
 
909
1057
  // src/components/controls/edit/SelectWithSearchInput.tsx
910
1058
  import { useEffect as useEffect3, useRef, useState as useState2 } from "react";
911
- import { jsx as jsx20, jsxs as jsxs15 } from "react/jsx-runtime";
1059
+ import { jsx as jsx20, jsxs as jsxs17 } from "react/jsx-runtime";
912
1060
  var SelectWithSearchInput = (props) => {
913
1061
  const [isOpen, setIsOpen] = useState2(false);
914
1062
  const [searchTerm, setSearchTerm] = useState2("");
@@ -979,11 +1127,11 @@ var SelectWithSearchInput = (props) => {
979
1127
  });
980
1128
  }
981
1129
  }, [highlightedIndex]);
982
- return /* @__PURE__ */ jsxs15("div", { className: "relative", children: [
1130
+ return /* @__PURE__ */ jsxs17("div", { className: "relative", children: [
983
1131
  /* @__PURE__ */ jsx20("label", { children: props.attributes?.label }),
984
1132
  " ",
985
1133
  props?.attributes?.required && /* @__PURE__ */ jsx20("span", { className: "text-alert", children: "*" }),
986
- /* @__PURE__ */ jsxs15("div", { className: "relative", children: [
1134
+ /* @__PURE__ */ jsxs17("div", { className: "relative", children: [
987
1135
  /* @__PURE__ */ jsx20(
988
1136
  "input",
989
1137
  {
@@ -1133,7 +1281,7 @@ var ClientButton = (props) => {
1133
1281
  var ClientButton_default = ClientButton;
1134
1282
 
1135
1283
  // src/components/Confirm.tsx
1136
- import { Fragment, jsx as jsx22, jsxs as jsxs16 } from "react/jsx-runtime";
1284
+ import { Fragment, jsx as jsx22, jsxs as jsxs18 } from "react/jsx-runtime";
1137
1285
  var Confirm = ({ message, onConfirm, onCancel }) => {
1138
1286
  const [showModal, setShowModal] = useState3(true);
1139
1287
  const handleConfirmAction = () => {
@@ -1148,12 +1296,12 @@ var Confirm = ({ message, onConfirm, onCancel }) => {
1148
1296
  onCancel();
1149
1297
  }
1150
1298
  };
1151
- return /* @__PURE__ */ jsx22(Fragment, { children: showModal && /* @__PURE__ */ jsxs16("div", { className: "fixed inset-0 flex items-center justify-center z-50", children: [
1299
+ return /* @__PURE__ */ jsx22(Fragment, { children: showModal && /* @__PURE__ */ jsxs18("div", { className: "fixed inset-0 flex items-center justify-center z-50", children: [
1152
1300
  /* @__PURE__ */ jsx22("div", { className: "absolute inset-0 bg-black opacity-70" }),
1153
- /* @__PURE__ */ jsxs16("div", { className: "bg-white rounded-md p-6 w-2/6 shadow border z-50", children: [
1301
+ /* @__PURE__ */ jsxs18("div", { className: "bg-white rounded-md p-6 w-2/6 shadow border z-50", children: [
1154
1302
  /* @__PURE__ */ jsx22("p", { className: "text-xl font-medium mb-4", children: "Confirmation" }),
1155
1303
  /* @__PURE__ */ jsx22("p", { className: "mb-4", children: message }),
1156
- /* @__PURE__ */ jsxs16("div", { className: "flex justify-end gap-8", children: [
1304
+ /* @__PURE__ */ jsxs18("div", { className: "flex justify-end gap-8", children: [
1157
1305
  /* @__PURE__ */ jsx22(
1158
1306
  ClientButton_default,
1159
1307
  {
@@ -1178,7 +1326,7 @@ var Confirm_default = Confirm;
1178
1326
  }
1179
1327
 
1180
1328
  // src/components/Button.tsx
1181
- import { jsx as jsx23, jsxs as jsxs17 } from "react/jsx-runtime";
1329
+ import { jsx as jsx23, jsxs as jsxs19 } from "react/jsx-runtime";
1182
1330
  var Button = (props) => {
1183
1331
  const [inProgress, setInProgress] = useState4(false);
1184
1332
  const [isActionPerformed, setIsActionPerformed] = useState4(false);
@@ -1233,8 +1381,8 @@ var Button = (props) => {
1233
1381
  let buttonClass = props.ButtonType ? buttonClasses.get(props.ButtonType) : buttonClasses.get("Primary" /* Solid */);
1234
1382
  let progressClass = props.ButtonType ? progressClasses.get(props.ButtonType) : progressClasses.get("Primary" /* Solid */);
1235
1383
  const isDisabled = inProgress || isActionPerformed && props.oneTimeAction;
1236
- return /* @__PURE__ */ jsxs17(React24.Fragment, { children: [
1237
- /* @__PURE__ */ jsxs17(
1384
+ return /* @__PURE__ */ jsxs19(React24.Fragment, { children: [
1385
+ /* @__PURE__ */ jsxs19(
1238
1386
  "button",
1239
1387
  {
1240
1388
  type: "submit",
@@ -1244,7 +1392,7 @@ var Button = (props) => {
1244
1392
  className: buttonClass + " relative " + props.className,
1245
1393
  children: [
1246
1394
  isActionPerformed && props.oneTimeAction && responseMessage ? responseMessage : props.children,
1247
- inProgress && /* @__PURE__ */ jsx23(React24.Fragment, { children: props.hideProgressIndicator === true ? /* @__PURE__ */ jsx23("div", { className: "absolute bottom-0 left-0 h-0.5 bg-gray-400 rounded animate-progress" }) : /* @__PURE__ */ jsxs17("svg", { className: "animate-spin ml-2 mr-3 h-5 w-5 " + progressClass, xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", children: [
1395
+ inProgress && /* @__PURE__ */ jsx23(React24.Fragment, { children: props.hideProgressIndicator === true ? /* @__PURE__ */ jsx23("div", { className: "absolute bottom-0 left-0 h-0.5 bg-gray-400 rounded animate-progress" }) : /* @__PURE__ */ jsxs19("svg", { className: "animate-spin ml-2 mr-3 h-5 w-5 " + progressClass, xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", children: [
1248
1396
  /* @__PURE__ */ jsx23("circle", { className: "opacity-25", cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "4" }),
1249
1397
  /* @__PURE__ */ jsx23("path", { className: "opacity-75", fill: "currentColor", d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z" })
1250
1398
  ] }) })
@@ -1263,7 +1411,7 @@ import React25, {
1263
1411
  useState as useState5,
1264
1412
  useCallback
1265
1413
  } from "react";
1266
- import { jsx as jsx24, jsxs as jsxs18 } from "react/jsx-runtime";
1414
+ import { jsx as jsx24, jsxs as jsxs20 } from "react/jsx-runtime";
1267
1415
  var SelectWithSearchPanel = (props) => {
1268
1416
  const [isOpen, setIsOpen] = useState5(false);
1269
1417
  const [searchTerm, setSearchTerm] = useState5("");
@@ -1399,7 +1547,7 @@ var SelectWithSearchPanel = (props) => {
1399
1547
  console.log("Form Data:", formData);
1400
1548
  return formData;
1401
1549
  }, []);
1402
- return /* @__PURE__ */ jsxs18("div", { className: "relative", children: [
1550
+ return /* @__PURE__ */ jsxs20("div", { className: "relative", children: [
1403
1551
  /* @__PURE__ */ jsx24("label", { className: "text-sm mb-1 font-medium", children: props.attributes?.label }),
1404
1552
  /* @__PURE__ */ jsx24("div", { children: /* @__PURE__ */ jsx24(
1405
1553
  "input",
@@ -1415,9 +1563,9 @@ var SelectWithSearchPanel = (props) => {
1415
1563
  disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none`
1416
1564
  }
1417
1565
  ) }),
1418
- /* @__PURE__ */ jsx24("div", { ref: containerRef, children: isOpen && /* @__PURE__ */ jsxs18(React25.Fragment, { children: [
1419
- /* @__PURE__ */ jsxs18("div", { className: "fixed z-50 right-0 bg-white top-[62px] w-1/4 border-l border-gray-200", children: [
1420
- /* @__PURE__ */ jsx24("div", { className: "flex flex-col p-2 bg-accent-950 text-white", children: /* @__PURE__ */ jsxs18("h5", { className: "text-md text-white font-medium", children: [
1566
+ /* @__PURE__ */ jsx24("div", { ref: containerRef, children: isOpen && /* @__PURE__ */ jsxs20(React25.Fragment, { children: [
1567
+ /* @__PURE__ */ jsxs20("div", { className: "fixed z-50 right-0 bg-white top-[62px] w-1/4 border-l border-gray-200", children: [
1568
+ /* @__PURE__ */ jsx24("div", { className: "flex flex-col p-2 bg-accent-950 text-white", children: /* @__PURE__ */ jsxs20("h5", { className: "text-md text-white font-medium", children: [
1421
1569
  "Select a",
1422
1570
  " ",
1423
1571
  props.attributes?.label || props.attributes?.heading
@@ -1435,8 +1583,8 @@ var SelectWithSearchPanel = (props) => {
1435
1583
  }
1436
1584
  ) })
1437
1585
  ] }),
1438
- isCreateOpen && /* @__PURE__ */ jsxs18("div", { className: "fixed right-0 w-1/4 h-full top-[62px] bg-white shadow-lg border-l border-gray-200 z-50", children: [
1439
- /* @__PURE__ */ jsx24("div", { className: "flex flex-col p-2 bg-accent-950", children: /* @__PURE__ */ jsxs18("h5", { className: "text-md font-medium text-white", children: [
1586
+ isCreateOpen && /* @__PURE__ */ jsxs20("div", { className: "fixed right-0 w-1/4 h-full top-[62px] bg-white shadow-lg border-l border-gray-200 z-50", children: [
1587
+ /* @__PURE__ */ jsx24("div", { className: "flex flex-col p-2 bg-accent-950", children: /* @__PURE__ */ jsxs20("h5", { className: "text-md font-medium text-white", children: [
1440
1588
  "Create New ",
1441
1589
  props.attributes?.label
1442
1590
  ] }) }),
@@ -1449,8 +1597,8 @@ var SelectWithSearchPanel = (props) => {
1449
1597
  children: "Close"
1450
1598
  }
1451
1599
  ) }),
1452
- /* @__PURE__ */ jsxs18("div", { className: "p-4", children: [
1453
- props.createFields?.map((field) => /* @__PURE__ */ jsxs18("div", { className: "mb-4", children: [
1600
+ /* @__PURE__ */ jsxs20("div", { className: "p-4", children: [
1601
+ props.createFields?.map((field) => /* @__PURE__ */ jsxs20("div", { className: "mb-4", children: [
1454
1602
  /* @__PURE__ */ jsx24("label", { className: "text-sm mb-1 font-medium block", children: field.label }),
1455
1603
  /* @__PURE__ */ jsx24(
1456
1604
  "input",
@@ -1468,7 +1616,7 @@ var SelectWithSearchPanel = (props) => {
1468
1616
  }
1469
1617
  )
1470
1618
  ] }, field.name)),
1471
- /* @__PURE__ */ jsxs18(Button_default, { onClick: async () => {
1619
+ /* @__PURE__ */ jsxs20(Button_default, { onClick: async () => {
1472
1620
  handleSaveModal();
1473
1621
  return { isSuccessful: true };
1474
1622
  }, className: "w-full", children: [
@@ -1508,7 +1656,7 @@ import React26, {
1508
1656
  useState as useState6,
1509
1657
  useEffect as useEffect5
1510
1658
  } from "react";
1511
- import { jsx as jsx25, jsxs as jsxs19 } from "react/jsx-runtime";
1659
+ import { jsx as jsx25, jsxs as jsxs21 } from "react/jsx-runtime";
1512
1660
  var BooleanSelect = (props) => {
1513
1661
  const [list, setList] = useState6();
1514
1662
  const textChangeHandler = (event) => {
@@ -1557,11 +1705,11 @@ var BooleanSelect = (props) => {
1557
1705
  if (props.value !== void 0 && props.value !== null) {
1558
1706
  value = props.value;
1559
1707
  }
1560
- return /* @__PURE__ */ jsx25(React26.Fragment, { children: /* @__PURE__ */ jsxs19("label", { className: "block", children: [
1708
+ return /* @__PURE__ */ jsx25(React26.Fragment, { children: /* @__PURE__ */ jsxs21("label", { className: "block", children: [
1561
1709
  /* @__PURE__ */ jsx25("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
1562
1710
  " ",
1563
1711
  props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx25("span", { className: "text-alert", children: "*" }),
1564
- /* @__PURE__ */ jsxs19(
1712
+ /* @__PURE__ */ jsxs21(
1565
1713
  "select",
1566
1714
  {
1567
1715
  name: props.name,
@@ -1595,7 +1743,7 @@ var BooleanSelect_default = BooleanSelect;
1595
1743
 
1596
1744
  // src/components/controls/edit/EmailInput.tsx
1597
1745
  import React27 from "react";
1598
- import { jsx as jsx26, jsxs as jsxs20 } from "react/jsx-runtime";
1746
+ import { jsx as jsx26, jsxs as jsxs22 } from "react/jsx-runtime";
1599
1747
  var EmailInput = (props) => {
1600
1748
  const textChangeHandler = (event) => {
1601
1749
  const text = event.target.value;
@@ -1620,7 +1768,7 @@ var EmailInput = (props) => {
1620
1768
  if (props.value !== void 0 && props.value !== null) {
1621
1769
  value = props.value;
1622
1770
  }
1623
- return /* @__PURE__ */ jsx26(React27.Fragment, { children: /* @__PURE__ */ jsxs20("label", { className: "block mb-1", children: [
1771
+ return /* @__PURE__ */ jsx26(React27.Fragment, { children: /* @__PURE__ */ jsxs22("label", { className: "block mb-1", children: [
1624
1772
  /* @__PURE__ */ jsx26("span", { className: "text-sm font-medium text-slate-700", children: props?.attributes?.label }),
1625
1773
  " ",
1626
1774
  props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx26("span", { className: "text-alert", children: "*" }),
@@ -1647,7 +1795,7 @@ var EmailInput_default = EmailInput;
1647
1795
 
1648
1796
  // src/components/controls/edit/TimeInput.tsx
1649
1797
  import React28 from "react";
1650
- import { jsx as jsx27, jsxs as jsxs21 } from "react/jsx-runtime";
1798
+ import { jsx as jsx27, jsxs as jsxs23 } from "react/jsx-runtime";
1651
1799
  var TimeInput = (props) => {
1652
1800
  const timeChangeHandler = (event) => {
1653
1801
  const timeValue = event.target.value;
@@ -1660,7 +1808,7 @@ var TimeInput = (props) => {
1660
1808
  });
1661
1809
  }
1662
1810
  };
1663
- return /* @__PURE__ */ jsx27(React28.Fragment, { children: /* @__PURE__ */ jsxs21("label", { className: "block mb-1", children: [
1811
+ return /* @__PURE__ */ jsx27(React28.Fragment, { children: /* @__PURE__ */ jsxs23("label", { className: "block mb-1", children: [
1664
1812
  /* @__PURE__ */ jsx27("span", { className: "text-sm font-medium", children: props?.attributes?.label }),
1665
1813
  props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx27("span", { className: "text-alert", children: "*" }),
1666
1814
  /* @__PURE__ */ jsx27("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ jsx27(
@@ -1724,33 +1872,33 @@ var NoContentView_default = NoContentView;
1724
1872
 
1725
1873
  // src/components/dataForm/ContentView.tsx
1726
1874
  import React31 from "react";
1727
- import { jsx as jsx30, jsxs as jsxs22 } from "react/jsx-runtime";
1875
+ import { jsx as jsx30, jsxs as jsxs24 } from "react/jsx-runtime";
1728
1876
  var ContentView = (props) => {
1729
- return /* @__PURE__ */ jsxs22(React31.Fragment, { children: [
1730
- props.isDataFound == null && /* @__PURE__ */ jsx30("div", { className: "", children: /* @__PURE__ */ jsxs22("div", { className: "bg-gray-200 rounded-md p-4 animate-pulse", children: [
1731
- /* @__PURE__ */ jsxs22("div", { className: "flex items-center mb-4", children: [
1877
+ return /* @__PURE__ */ jsxs24(React31.Fragment, { children: [
1878
+ props.isDataFound == null && /* @__PURE__ */ jsx30("div", { className: "", children: /* @__PURE__ */ jsxs24("div", { className: "bg-gray-200 rounded-md p-4 animate-pulse", children: [
1879
+ /* @__PURE__ */ jsxs24("div", { className: "flex items-center mb-4", children: [
1732
1880
  /* @__PURE__ */ jsx30("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
1733
- /* @__PURE__ */ jsxs22("div", { className: "ml-2", children: [
1881
+ /* @__PURE__ */ jsxs24("div", { className: "ml-2", children: [
1734
1882
  /* @__PURE__ */ jsx30("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
1735
1883
  /* @__PURE__ */ jsx30("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
1736
1884
  ] })
1737
1885
  ] }),
1738
- /* @__PURE__ */ jsxs22("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
1739
- /* @__PURE__ */ jsxs22("div", { className: "animate-pulse", children: [
1886
+ /* @__PURE__ */ jsxs24("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
1887
+ /* @__PURE__ */ jsxs24("div", { className: "animate-pulse", children: [
1740
1888
  /* @__PURE__ */ jsx30("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
1741
1889
  /* @__PURE__ */ jsx30("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
1742
1890
  /* @__PURE__ */ jsx30("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
1743
1891
  /* @__PURE__ */ jsx30("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
1744
1892
  /* @__PURE__ */ jsx30("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
1745
1893
  ] }),
1746
- /* @__PURE__ */ jsxs22("div", { className: "animate-pulse", children: [
1894
+ /* @__PURE__ */ jsxs24("div", { className: "animate-pulse", children: [
1747
1895
  /* @__PURE__ */ jsx30("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
1748
1896
  /* @__PURE__ */ jsx30("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
1749
1897
  /* @__PURE__ */ jsx30("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
1750
1898
  /* @__PURE__ */ jsx30("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
1751
1899
  /* @__PURE__ */ jsx30("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
1752
1900
  ] }),
1753
- /* @__PURE__ */ jsxs22("div", { className: "animate-pulse", children: [
1901
+ /* @__PURE__ */ jsxs24("div", { className: "animate-pulse", children: [
1754
1902
  /* @__PURE__ */ jsx30("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
1755
1903
  /* @__PURE__ */ jsx30("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
1756
1904
  /* @__PURE__ */ jsx30("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
@@ -2035,7 +2183,7 @@ function FormReducer(state, action) {
2035
2183
  var FormReducer_default = FormReducer;
2036
2184
 
2037
2185
  // src/components/dataForm/DataList.tsx
2038
- import { Fragment as Fragment3, jsx as jsx37, jsxs as jsxs23 } from "react/jsx-runtime";
2186
+ import { Fragment as Fragment3, jsx as jsx37, jsxs as jsxs25 } from "react/jsx-runtime";
2039
2187
  var DataList = (props) => {
2040
2188
  console.log(props.dataset, "datasetssssss");
2041
2189
  const router = useRouter();
@@ -2127,7 +2275,7 @@ var DataList = (props) => {
2127
2275
  const showFirstPages = activePageNumber <= 5;
2128
2276
  const showLastPages = activePageNumber > pages - 5;
2129
2277
  if (showFirstPages) {
2130
- return /* @__PURE__ */ jsxs23(Fragment3, { children: [
2278
+ return /* @__PURE__ */ jsxs25(Fragment3, { children: [
2131
2279
  Array.from({ length: 8 }, (_, index) => index + 1).map((page) => /* @__PURE__ */ jsx37(React32.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx37(
2132
2280
  Hyperlink,
2133
2281
  {
@@ -2153,7 +2301,7 @@ var DataList = (props) => {
2153
2301
  children: pages
2154
2302
  }
2155
2303
  ),
2156
- /* @__PURE__ */ jsx37("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs23(
2304
+ /* @__PURE__ */ jsx37("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs25(
2157
2305
  "select",
2158
2306
  {
2159
2307
  className: " py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
@@ -2175,7 +2323,7 @@ var DataList = (props) => {
2175
2323
  ) })
2176
2324
  ] });
2177
2325
  } else if (showLastPages) {
2178
- return /* @__PURE__ */ jsxs23(Fragment3, { children: [
2326
+ return /* @__PURE__ */ jsxs25(Fragment3, { children: [
2179
2327
  /* @__PURE__ */ jsx37(
2180
2328
  Hyperlink,
2181
2329
  {
@@ -2205,7 +2353,7 @@ var DataList = (props) => {
2205
2353
  )
2206
2354
  ] });
2207
2355
  } else {
2208
- return /* @__PURE__ */ jsxs23(Fragment3, { children: [
2356
+ return /* @__PURE__ */ jsxs25(Fragment3, { children: [
2209
2357
  /* @__PURE__ */ jsx37(
2210
2358
  Hyperlink,
2211
2359
  {
@@ -2251,7 +2399,7 @@ var DataList = (props) => {
2251
2399
  children: pages
2252
2400
  }
2253
2401
  ),
2254
- /* @__PURE__ */ jsx37("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs23(
2402
+ /* @__PURE__ */ jsx37("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs25(
2255
2403
  "select",
2256
2404
  {
2257
2405
  className: "px-2 py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
@@ -2272,15 +2420,15 @@ var DataList = (props) => {
2272
2420
  }
2273
2421
  }
2274
2422
  };
2275
- return /* @__PURE__ */ jsxs23(React32.Fragment, { children: [
2276
- /* @__PURE__ */ jsxs23(ContentView_default, { isDataFound, children: [
2277
- (props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ jsxs23(
2423
+ return /* @__PURE__ */ jsxs25(React32.Fragment, { children: [
2424
+ /* @__PURE__ */ jsxs25(ContentView_default, { isDataFound, children: [
2425
+ (props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ jsxs25(
2278
2426
  "div",
2279
2427
  {
2280
2428
  className: `flex justify-between items-center bg-white pl-6 pr-2 h-14 mb-3 shadow-sm rounded-md border-b border-neutral-200 sticky top-0`,
2281
2429
  children: [
2282
2430
  props.title ? /* @__PURE__ */ jsx37("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ jsx37("h2", { className: "text-lg font-semibold text-black-800", children: props.title }) }) : /* @__PURE__ */ jsx37("div", {}),
2283
- /* @__PURE__ */ jsxs23("div", { className: "flex items-center gap-3", children: [
2431
+ /* @__PURE__ */ jsxs25("div", { className: "flex items-center gap-3", children: [
2284
2432
  props.filters && props.filters.map((filter) => /* @__PURE__ */ jsx37(
2285
2433
  InputControl_default,
2286
2434
  {
@@ -2296,7 +2444,7 @@ var DataList = (props) => {
2296
2444
  },
2297
2445
  filter.name
2298
2446
  )),
2299
- props.addLinkHref && /* @__PURE__ */ jsxs23(
2447
+ props.addLinkHref && /* @__PURE__ */ jsxs25(
2300
2448
  Hyperlink,
2301
2449
  {
2302
2450
  className: "gap-1",
@@ -2312,7 +2460,7 @@ var DataList = (props) => {
2312
2460
  ]
2313
2461
  }
2314
2462
  ),
2315
- /* @__PURE__ */ jsx37("div", { className: "flex-1 overflow-y-auto justify-end bg-white rounded shadow h-[calc(100vh-14rem)]", children: /* @__PURE__ */ jsxs23("table", { className: "w-full divide-y divide-gray-200", children: [
2463
+ /* @__PURE__ */ jsx37("div", { className: "flex-1 overflow-y-auto justify-end bg-white rounded shadow h-[calc(100vh-14rem)]", children: /* @__PURE__ */ jsxs25("table", { className: "w-full divide-y divide-gray-200", children: [
2316
2464
  /* @__PURE__ */ jsx37("thead", { className: "bg-gray-50 sticky top-0", children: /* @__PURE__ */ jsx37("tr", { children: props?.columns?.map((column) => {
2317
2465
  let url = builder.getNewOrderByUrl(column.name);
2318
2466
  let icon = "chevronUpDown";
@@ -2327,7 +2475,7 @@ var DataList = (props) => {
2327
2475
  "th",
2328
2476
  {
2329
2477
  className: "px-6 py-3 text-left font-medium cursor-pointer bg-neutral-soft " + column.width + (column.controlType == ViewControlTypes_default.money ? " text-right" : ""),
2330
- children: /* @__PURE__ */ jsx37(Hyperlink, { href: url, className: "!text-neutral-contrast ", children: /* @__PURE__ */ jsxs23("span", { className: "flex items-center space-x-1", children: [
2478
+ children: /* @__PURE__ */ jsx37(Hyperlink, { href: url, className: "!text-neutral-contrast ", children: /* @__PURE__ */ jsxs25("span", { className: "flex items-center space-x-1", children: [
2331
2479
  /* @__PURE__ */ jsx37("span", { className: "text-black", children: column.label }),
2332
2480
  column.enableSorting && /* @__PURE__ */ jsx37(Icon_default, { className: "w-4 h-4", name: icon })
2333
2481
  ] }) })
@@ -2393,9 +2541,9 @@ var DataList = (props) => {
2393
2541
  }) }, index);
2394
2542
  }) })
2395
2543
  ] }) }),
2396
- /* @__PURE__ */ jsx37("div", { className: "pt-4 border-t border-t-gray-50 sticky bottom-0 h-11 mt-2 ", children: /* @__PURE__ */ jsxs23("div", { className: "flex items-center justify-between", children: [
2544
+ /* @__PURE__ */ jsx37("div", { className: "pt-4 border-t border-t-gray-50 sticky bottom-0 h-11 mt-2 ", children: /* @__PURE__ */ jsxs25("div", { className: "flex items-center justify-between", children: [
2397
2545
  /* @__PURE__ */ jsx37("div", { className: "text-gray-700", children: label }),
2398
- /* @__PURE__ */ jsxs23("div", { className: "flex space-x-2 items-center", children: [
2546
+ /* @__PURE__ */ jsxs25("div", { className: "flex space-x-2 items-center", children: [
2399
2547
  activePageNumber > 1 && /* @__PURE__ */ jsx37(
2400
2548
  Hyperlink,
2401
2549
  {
@@ -2418,14 +2566,14 @@ var DataList = (props) => {
2418
2566
  ] })
2419
2567
  ] }) })
2420
2568
  ] }),
2421
- /* @__PURE__ */ jsxs23(NoContentView_default, { isDataFound, children: [
2422
- (props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ jsxs23(
2569
+ /* @__PURE__ */ jsxs25(NoContentView_default, { isDataFound, children: [
2570
+ (props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ jsxs25(
2423
2571
  "div",
2424
2572
  {
2425
2573
  className: `flex justify-between items-center bg-white pl-6 pr-2 h-14 mb-3 shadow-sm rounded-md border-b border-neutral-200`,
2426
2574
  children: [
2427
2575
  props.title ? /* @__PURE__ */ jsx37("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ jsx37("h2", { className: "text-lg font-semibold text-black", children: props.title }) }) : /* @__PURE__ */ jsx37("div", {}),
2428
- /* @__PURE__ */ jsxs23("div", { className: "flex items-center gap-3", children: [
2576
+ /* @__PURE__ */ jsxs25("div", { className: "flex items-center gap-3", children: [
2429
2577
  props.filters && props.filters.map((filter) => /* @__PURE__ */ jsx37(
2430
2578
  InputControl_default,
2431
2579
  {
@@ -2441,7 +2589,7 @@ var DataList = (props) => {
2441
2589
  },
2442
2590
  filter.name
2443
2591
  )),
2444
- props.addLinkHref && /* @__PURE__ */ jsxs23(
2592
+ props.addLinkHref && /* @__PURE__ */ jsxs25(
2445
2593
  Hyperlink,
2446
2594
  {
2447
2595
  className: "gap-1",
@@ -2457,7 +2605,7 @@ var DataList = (props) => {
2457
2605
  ]
2458
2606
  }
2459
2607
  ),
2460
- /* @__PURE__ */ jsxs23("div", { className: "flex-grow overflow-y-auto justify-end bg-white rounded shadow h-[75vh]", children: [
2608
+ /* @__PURE__ */ jsxs25("div", { className: "flex-grow overflow-y-auto justify-end bg-white rounded shadow h-[75vh]", children: [
2461
2609
  /* @__PURE__ */ jsx37("div", { children: /* @__PURE__ */ jsx37("table", { className: "w-full divide-y divide-gray-200", children: /* @__PURE__ */ jsx37("thead", { className: "bg-gray-50", children: /* @__PURE__ */ jsx37("tr", { children: props?.columns?.map((column) => {
2462
2610
  let url = builder.getNewOrderByUrl(column.name);
2463
2611
  let icon = "chevronUpDown";
@@ -2472,7 +2620,7 @@ var DataList = (props) => {
2472
2620
  "th",
2473
2621
  {
2474
2622
  className: "px-6 py-3 text-left font-medium cursor-pointer bg-neutral-soft " + column.width + (column.controlType == ViewControlTypes_default.money ? " text-right" : ""),
2475
- children: /* @__PURE__ */ jsx37(Hyperlink, { href: url, className: "text-body-950", children: /* @__PURE__ */ jsxs23("span", { className: "flex items-center space-x-1", children: [
2623
+ children: /* @__PURE__ */ jsx37(Hyperlink, { href: url, className: "text-body-950", children: /* @__PURE__ */ jsxs25("span", { className: "flex items-center space-x-1", children: [
2476
2624
  /* @__PURE__ */ jsx37("span", { children: column.label }),
2477
2625
  column.enableSorting && /* @__PURE__ */ jsx37(Icon_default, { className: "w-4 h-4", name: icon })
2478
2626
  ] }) })
@@ -2569,7 +2717,7 @@ var LineBreakNode_default = LineBreakNode;
2569
2717
  // src/components/pageRenderingEngine/nodes/LinkNode.tsx
2570
2718
  import React33 from "react";
2571
2719
  import Link2 from "next/link";
2572
- import { jsx as jsx40, jsxs as jsxs24 } from "react/jsx-runtime";
2720
+ import { jsx as jsx40, jsxs as jsxs26 } from "react/jsx-runtime";
2573
2721
  var LinkNode = (props) => {
2574
2722
  const NodeTypes2 = {
2575
2723
  ["text"]: TextNode_default
@@ -2577,7 +2725,7 @@ var LinkNode = (props) => {
2577
2725
  {
2578
2726
  }
2579
2727
  let formatClasses = props.node.cssClass || "";
2580
- return /* @__PURE__ */ jsxs24(Link2, { className: formatClasses, href: props.node.url, title: props.node.title, children: [
2728
+ return /* @__PURE__ */ jsxs26(Link2, { className: formatClasses, href: props.node.url, title: props.node.title, children: [
2581
2729
  props.node.children && props.node.children.map((node, index) => {
2582
2730
  const SelectedNode = NodeTypes2[node.type];
2583
2731
  return /* @__PURE__ */ jsx40(React33.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx40(SelectedNode, { node }) }, index);
@@ -2749,7 +2897,7 @@ var DatafieldNode = (props) => {
2749
2897
  var DatafieldNode_default = DatafieldNode;
2750
2898
 
2751
2899
  // src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
2752
- import { Fragment as Fragment4, jsx as jsx44, jsxs as jsxs25 } from "react/jsx-runtime";
2900
+ import { Fragment as Fragment4, jsx as jsx44, jsxs as jsxs27 } from "react/jsx-runtime";
2753
2901
  var ParagraphNode = (props) => {
2754
2902
  const NodeTypes2 = {
2755
2903
  ["text"]: TextNode_default,
@@ -2783,7 +2931,7 @@ var ParagraphNode = (props) => {
2783
2931
  ) }, index);
2784
2932
  }) });
2785
2933
  }
2786
- return /* @__PURE__ */ jsxs25("div", { className: " " + formatClasses, children: [
2934
+ return /* @__PURE__ */ jsxs27("div", { className: " " + formatClasses, children: [
2787
2935
  hasChildren && props.node.children.map((node, index) => {
2788
2936
  const SelectedNode = NodeTypes2[node.type];
2789
2937
  return /* @__PURE__ */ jsx44(React34.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx44(
@@ -2871,12 +3019,12 @@ var ListItemNode = (props) => {
2871
3019
  var ListItemNode_default = ListItemNode;
2872
3020
 
2873
3021
  // src/components/pageRenderingEngine/nodes/ListNode.tsx
2874
- import { jsx as jsx47, jsxs as jsxs26 } from "react/jsx-runtime";
3022
+ import { jsx as jsx47, jsxs as jsxs28 } from "react/jsx-runtime";
2875
3023
  var ListNode = (props) => {
2876
3024
  const NodeTypes2 = {
2877
3025
  listitem: ListItemNode_default
2878
3026
  };
2879
- return /* @__PURE__ */ jsxs26(React37.Fragment, { children: [
3027
+ return /* @__PURE__ */ jsxs28(React37.Fragment, { children: [
2880
3028
  props.node.listType == "bullet" && /* @__PURE__ */ jsx47("ul", { children: props.node.children && props.node.children.map((node, index) => {
2881
3029
  const SelectedNode = NodeTypes2[node.type];
2882
3030
  return /* @__PURE__ */ jsx47(React37.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx47(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
@@ -2908,7 +3056,7 @@ var QuoteNode_default = QuoteNode;
2908
3056
  // src/components/pageRenderingEngine/nodes/CodeNode.tsx
2909
3057
  import React39 from "react";
2910
3058
  import dynamic from "next/dynamic";
2911
- import { jsx as jsx49, jsxs as jsxs27 } from "react/jsx-runtime";
3059
+ import { jsx as jsx49, jsxs as jsxs29 } from "react/jsx-runtime";
2912
3060
  var CopyButton = dynamic(() => import("./CopyButton-XONTQQW7.mjs"), {
2913
3061
  ssr: false,
2914
3062
  // optional: fallback UI while loading
@@ -2926,8 +3074,8 @@ var CodeNode = (props) => {
2926
3074
  if (node.type === "link") return node.text || node.url || "";
2927
3075
  return "";
2928
3076
  }).join("") ?? "";
2929
- return /* @__PURE__ */ jsxs27("div", { children: [
2930
- /* @__PURE__ */ jsxs27("div", { className: "flex items-center relative bg-neutral-strong px-4 py-3 text-xs font-sans justify-between rounded-t-md ", children: [
3077
+ return /* @__PURE__ */ jsxs29("div", { children: [
3078
+ /* @__PURE__ */ jsxs29("div", { className: "flex items-center relative bg-neutral-strong px-4 py-3 text-xs font-sans justify-between rounded-t-md ", children: [
2931
3079
  /* @__PURE__ */ jsx49("span", { children: "Code Snippet" }),
2932
3080
  /* @__PURE__ */ jsx49(CopyButton, { text: textContent })
2933
3081
  ] }),
@@ -3229,7 +3377,7 @@ var ImageNode = (props) => {
3229
3377
  var ImageNode_default = ImageNode;
3230
3378
 
3231
3379
  // src/components/pageRenderingEngine/nodes/WidgetNode.tsx
3232
- import { Fragment as Fragment7, jsx as jsx53, jsxs as jsxs28 } from "react/jsx-runtime";
3380
+ import { Fragment as Fragment7, jsx as jsx53, jsxs as jsxs30 } from "react/jsx-runtime";
3233
3381
  var WidgetNode = (props) => {
3234
3382
  const getWidgetParameters = () => {
3235
3383
  const widgetInputParameters = {
@@ -3293,7 +3441,7 @@ var WidgetNode = (props) => {
3293
3441
  if (process.env.NODE_ENV !== "production") {
3294
3442
  console.warn("Widget not found:", widgetCode);
3295
3443
  }
3296
- return /* @__PURE__ */ jsxs28(Fragment7, { children: [
3444
+ return /* @__PURE__ */ jsxs30(Fragment7, { children: [
3297
3445
  "Widget not found: ",
3298
3446
  widgetCode
3299
3447
  ] });
@@ -3556,7 +3704,7 @@ var ServiceClient = class {
3556
3704
  var ServiceClient_default = ServiceClient;
3557
3705
 
3558
3706
  // src/components/pageRenderingEngine/nodes/FormContainerNode.tsx
3559
- import { jsx as jsx55, jsxs as jsxs29 } from "react/jsx-runtime";
3707
+ import { jsx as jsx55, jsxs as jsxs31 } from "react/jsx-runtime";
3560
3708
  var FormContainerNode = (props) => {
3561
3709
  const NodeTypes2 = {
3562
3710
  ["input-control"]: InputControlNode_default
@@ -3586,7 +3734,7 @@ var FormContainerNode = (props) => {
3586
3734
  };
3587
3735
  fetchInitialData();
3588
3736
  }, [props.apiBaseUrl, props.node, props.session, props.routeParameters]);
3589
- return /* @__PURE__ */ jsxs29("form", { className: "group space-y-6 pb-6 overflow-y-auto", noValidate: true, ref: formRef, children: [
3737
+ return /* @__PURE__ */ jsxs31("form", { className: "group space-y-6 pb-6 overflow-y-auto", noValidate: true, ref: formRef, children: [
3590
3738
  node.children && node.children.map((node2, index) => {
3591
3739
  {
3592
3740
  }
@@ -3629,7 +3777,7 @@ var EmbedNode_default = EmbedNode;
3629
3777
 
3630
3778
  // src/components/Slider.tsx
3631
3779
  import React42, { useState as useState8, useEffect as useEffect8, Children, cloneElement } from "react";
3632
- import { Fragment as Fragment8, jsx as jsx57, jsxs as jsxs30 } from "react/jsx-runtime";
3780
+ import { Fragment as Fragment8, jsx as jsx57, jsxs as jsxs32 } from "react/jsx-runtime";
3633
3781
  var Slider = ({
3634
3782
  children,
3635
3783
  slidesToShow = 4,
@@ -3749,7 +3897,7 @@ var Slider = ({
3749
3897
  return "bottom-4";
3750
3898
  }
3751
3899
  };
3752
- return /* @__PURE__ */ jsxs30(
3900
+ return /* @__PURE__ */ jsxs32(
3753
3901
  "div",
3754
3902
  {
3755
3903
  className: `relative w-full overflow-hidden ${className}`,
@@ -3767,7 +3915,7 @@ var Slider = ({
3767
3915
  children: slides
3768
3916
  }
3769
3917
  ),
3770
- show_arrows && /* @__PURE__ */ jsxs30(Fragment8, { children: [
3918
+ show_arrows && /* @__PURE__ */ jsxs32(Fragment8, { children: [
3771
3919
  /* @__PURE__ */ jsx57(
3772
3920
  ArrowButton,
3773
3921
  {
@@ -3778,7 +3926,7 @@ var Slider = ({
3778
3926
  children: /* @__PURE__ */ jsx57("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: "w-6 h-6", children: /* @__PURE__ */ jsx57("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M15.75 19.5 8.25 12l7.5-7.5" }) })
3779
3927
  }
3780
3928
  ),
3781
- /* @__PURE__ */ jsxs30(
3929
+ /* @__PURE__ */ jsxs32(
3782
3930
  ArrowButton,
3783
3931
  {
3784
3932
  direction: "right",
@@ -3927,7 +4075,7 @@ var ProgressPill = ({
3927
4075
  }
3928
4076
  return null;
3929
4077
  };
3930
- return /* @__PURE__ */ jsxs30(
4078
+ return /* @__PURE__ */ jsxs32(
3931
4079
  "button",
3932
4080
  {
3933
4081
  className: `${baseClasses} ${getStyleClasses()}`,
@@ -4103,9 +4251,9 @@ var PathUtility = class {
4103
4251
  var PathUtility_default = new PathUtility();
4104
4252
 
4105
4253
  // src/components/NoDataFound.tsx
4106
- import { jsx as jsx58, jsxs as jsxs31 } from "react/jsx-runtime";
4254
+ import { jsx as jsx58, jsxs as jsxs33 } from "react/jsx-runtime";
4107
4255
  var NoDataFound = () => {
4108
- return /* @__PURE__ */ jsxs31("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center bg-neutral-weak", children: [
4256
+ return /* @__PURE__ */ jsxs33("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center bg-neutral-weak", children: [
4109
4257
  /* @__PURE__ */ jsx58("div", { className: "mb-5", children: /* @__PURE__ */ jsx58("div", { className: "mx-auto w-20 h-20 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ jsx58(
4110
4258
  "svg",
4111
4259
  {
@@ -4133,7 +4281,7 @@ var NoDataFound_default = NoDataFound;
4133
4281
 
4134
4282
  // src/components/Pagination.tsx
4135
4283
  import { useMemo } from "react";
4136
- import { jsx as jsx59, jsxs as jsxs32 } from "react/jsx-runtime";
4284
+ import { jsx as jsx59, jsxs as jsxs34 } from "react/jsx-runtime";
4137
4285
  var Pagination = (props) => {
4138
4286
  const { dataset, path, query, showPageSizeSelector = false, showJumpToPage = false } = props;
4139
4287
  const builder = useMemo(() => {
@@ -4204,11 +4352,11 @@ var Pagination = (props) => {
4204
4352
  );
4205
4353
  };
4206
4354
  if (totalPages <= 1 && totalItems === 0) return null;
4207
- return /* @__PURE__ */ jsxs32("div", { className: "py-6 border-t bg-default", children: [
4208
- /* @__PURE__ */ jsxs32("div", { className: "flex flex-col sm:flex-row items-center justify-between gap-4", children: [
4209
- /* @__PURE__ */ jsxs32("div", { className: "text-sm", children: [
4355
+ return /* @__PURE__ */ jsxs34("div", { className: "py-6 border-t bg-default", children: [
4356
+ /* @__PURE__ */ jsxs34("div", { className: "flex flex-col sm:flex-row items-center justify-between gap-4", children: [
4357
+ /* @__PURE__ */ jsxs34("div", { className: "text-sm", children: [
4210
4358
  "Showing ",
4211
- /* @__PURE__ */ jsxs32("span", { className: "font-semibold", children: [
4359
+ /* @__PURE__ */ jsxs34("span", { className: "font-semibold", children: [
4212
4360
  startItem,
4213
4361
  "-",
4214
4362
  endItem
@@ -4218,8 +4366,8 @@ var Pagination = (props) => {
4218
4366
  /* @__PURE__ */ jsx59("span", { className: "font-semibold", children: totalItems.toLocaleString() }),
4219
4367
  " results"
4220
4368
  ] }),
4221
- totalPages > 1 && /* @__PURE__ */ jsxs32("div", { className: "flex items-center space-x-1", children: [
4222
- /* @__PURE__ */ jsxs32(
4369
+ totalPages > 1 && /* @__PURE__ */ jsxs34("div", { className: "flex items-center space-x-1", children: [
4370
+ /* @__PURE__ */ jsxs34(
4223
4371
  NavigationButton,
4224
4372
  {
4225
4373
  page: activePageNumber - 1,
@@ -4244,7 +4392,7 @@ var Pagination = (props) => {
4244
4392
  const page = item;
4245
4393
  return /* @__PURE__ */ jsx59(PageButton, { page, children: page }, page);
4246
4394
  }),
4247
- /* @__PURE__ */ jsxs32(
4395
+ /* @__PURE__ */ jsxs34(
4248
4396
  NavigationButton,
4249
4397
  {
4250
4398
  page: activePageNumber + 1,
@@ -4256,7 +4404,7 @@ var Pagination = (props) => {
4256
4404
  }
4257
4405
  )
4258
4406
  ] }),
4259
- showJumpToPage && totalPages > 5 && /* @__PURE__ */ jsxs32("div", { className: "flex items-center space-x-2", children: [
4407
+ showJumpToPage && totalPages > 5 && /* @__PURE__ */ jsxs34("div", { className: "flex items-center space-x-2", children: [
4260
4408
  /* @__PURE__ */ jsx59("span", { className: "text-sm", children: "Go to:" }),
4261
4409
  /* @__PURE__ */ jsx59("div", { className: "relative", children: /* @__PURE__ */ jsx59(
4262
4410
  "input",
@@ -4279,7 +4427,7 @@ var Pagination = (props) => {
4279
4427
  ) })
4280
4428
  ] })
4281
4429
  ] }),
4282
- showPageSizeSelector && /* @__PURE__ */ jsx59("div", { className: "mt-4 pt-4 border-t bg-default", children: /* @__PURE__ */ jsxs32("div", { className: "flex items-center justify-center space-x-2", children: [
4430
+ showPageSizeSelector && /* @__PURE__ */ jsx59("div", { className: "mt-4 pt-4 border-t bg-default", children: /* @__PURE__ */ jsxs34("div", { className: "flex items-center justify-center space-x-2", children: [
4283
4431
  /* @__PURE__ */ jsx59("span", { className: "text-sm", children: "Show:" }),
4284
4432
  /* @__PURE__ */ jsx59("div", { className: "flex space-x-1", children: [10, 25, 50, 100].map((size) => /* @__PURE__ */ jsx59(
4285
4433
  Hyperlink,
@@ -4378,7 +4526,7 @@ var ImageGalleryNode = (props) => {
4378
4526
  var ImageGalleryNode_default = ImageGalleryNode;
4379
4527
 
4380
4528
  // src/components/pageRenderingEngine/nodes/DivContainer.tsx
4381
- import { jsx as jsx61, jsxs as jsxs33 } from "react/jsx-runtime";
4529
+ import { jsx as jsx61, jsxs as jsxs35 } from "react/jsx-runtime";
4382
4530
  function toCamelCase(str) {
4383
4531
  return str.replace(/-([a-z])/g, (_, letter) => letter.toUpperCase());
4384
4532
  }
@@ -4673,7 +4821,7 @@ var DivContainer = async (props) => {
4673
4821
  props.node.autoFormat && "auto-format",
4674
4822
  props.node.bgClass
4675
4823
  ].filter(Boolean).join(" ");
4676
- return /* @__PURE__ */ jsxs33(React44.Fragment, { children: [
4824
+ return /* @__PURE__ */ jsxs35(React44.Fragment, { children: [
4677
4825
  /* @__PURE__ */ jsx61("style", { dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS } }),
4678
4826
  /* @__PURE__ */ jsx61(React44.Fragment, { children: /* @__PURE__ */ jsx61(
4679
4827
  Wrapper,