@clyrex-digital/clyrex-controls-dev 0.8.1-dev.20261013090602 → 0.8.1-dev.20261014075053

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
@@ -1266,7 +1266,7 @@ var WidgetNode = (props) => {
1266
1266
  var WidgetNode_default = WidgetNode;
1267
1267
 
1268
1268
  // src/components/pageRenderingEngine/nodes/DivContainer.tsx
1269
- import dynamic15 from "next/dynamic";
1269
+ import dynamic16 from "next/dynamic";
1270
1270
  import React23 from "react";
1271
1271
 
1272
1272
  // src/components/pageRenderingEngine/nodes/EmbedNode.tsx
@@ -2447,13 +2447,111 @@ var GoogleMapNode = (props) => {
2447
2447
  };
2448
2448
  var GoogleMapNode_default = GoogleMapNode;
2449
2449
 
2450
+ // src/components/pageRenderingEngine/nodes/MediaAccordionNode.tsx
2451
+ import dynamic15 from "next/dynamic";
2452
+ import { jsx as jsx38 } from "react/jsx-runtime";
2453
+ var MediaAccordionNodeClient = dynamic15(
2454
+ () => import("./MediaAccordionNodeClient-NI5ZWLOR.mjs"),
2455
+ { ssr: false }
2456
+ );
2457
+ var getNestedValue6 = (value, path) => path.split(".").reduce((current, key) => {
2458
+ if (!current || typeof current !== "object") return void 0;
2459
+ return current[key];
2460
+ }, value);
2461
+ var getAssetUrl = (value) => {
2462
+ if (typeof value === "string") {
2463
+ const trimmed = value.trim();
2464
+ if (!trimmed) return {};
2465
+ try {
2466
+ return getAssetUrl(JSON.parse(trimmed));
2467
+ } catch {
2468
+ return { url: trimmed };
2469
+ }
2470
+ }
2471
+ if (Array.isArray(value)) {
2472
+ const image = value.find(
2473
+ (entry) => entry && typeof entry === "object" && "assetUrl" in entry
2474
+ );
2475
+ return getAssetUrl(image);
2476
+ }
2477
+ if (value && typeof value === "object") {
2478
+ const asset = value;
2479
+ return {
2480
+ url: typeof asset.assetUrl === "string" ? asset.assetUrl : void 0,
2481
+ posterUrl: typeof asset.posterUrl === "string" ? asset.posterUrl : void 0
2482
+ };
2483
+ }
2484
+ return {};
2485
+ };
2486
+ var fetchStoryItems = async (node, apiBaseUrl, session, routeParameters) => {
2487
+ const dataSource = node.dataSource?.trim();
2488
+ if (!dataSource) return void 0;
2489
+ const endpoint = dataSource.replace(
2490
+ /\{(\w+)\}/g,
2491
+ (placeholder, key) => routeParameters?.[key] == null ? placeholder : String(routeParameters[key])
2492
+ );
2493
+ try {
2494
+ const response = await new ServiceClient_default(apiBaseUrl, session).get(endpoint);
2495
+ if (!response?.isSuccessful) {
2496
+ console.error(
2497
+ "Story accordion API request failed:",
2498
+ response?.message || endpoint
2499
+ );
2500
+ return void 0;
2501
+ }
2502
+ const result = response.result;
2503
+ const records = Array.isArray(result) ? result : [];
2504
+ return records.flatMap((record, index) => {
2505
+ const title = getNestedValue6(record, node.titleField || "title");
2506
+ const mappedMedia = getAssetUrl(
2507
+ getNestedValue6(record, node.mediaUrlField || "mediaUrl")
2508
+ );
2509
+ const explicitPoster = node.posterUrlField ? getAssetUrl(getNestedValue6(record, node.posterUrlField)).url : void 0;
2510
+ const mediaUrl = mappedMedia.url;
2511
+ if (!mediaUrl) return [];
2512
+ const typeValue = node.mediaTypeField ? getNestedValue6(record, node.mediaTypeField) : void 0;
2513
+ const mediaType = typeof typeValue === "string" ? typeValue.toLowerCase() === "video" ? "video" : "image" : /\.(mp4|webm|ogv|m3u8)(?:$|[?#])/i.test(mediaUrl) ? "video" : "image";
2514
+ return [
2515
+ {
2516
+ id: `api-story-${index}`,
2517
+ title: typeof title === "string" || typeof title === "number" ? String(title) : `Story ${index + 1}`,
2518
+ mediaUrl,
2519
+ posterUrl: explicitPoster || mappedMedia.posterUrl,
2520
+ mediaType
2521
+ }
2522
+ ];
2523
+ });
2524
+ } catch (error) {
2525
+ console.error("Story accordion API request failed:", error);
2526
+ return void 0;
2527
+ }
2528
+ };
2529
+ var MediaAccordionNode = async (props) => {
2530
+ const apiItems = await fetchStoryItems(
2531
+ props.node,
2532
+ props.apiBaseUrl,
2533
+ props.session,
2534
+ props.routeParameters
2535
+ );
2536
+ const node = apiItems ? { ...props.node, items: apiItems } : props.node;
2537
+ return /* @__PURE__ */ jsx38(
2538
+ MediaAccordionNodeClient,
2539
+ {
2540
+ node,
2541
+ apiBaseUrl: props.apiBaseUrl,
2542
+ assetBaseUrl: props.assetBaseUrl
2543
+ }
2544
+ );
2545
+ };
2546
+ var MediaAccordionNode_default = MediaAccordionNode;
2547
+
2450
2548
  // src/components/pageRenderingEngine/nodes/DivContainer.tsx
2451
- import { jsx as jsx38, jsxs as jsxs15 } from "react/jsx-runtime";
2452
- var Pagination = dynamic15(() => import("./Pagination-6R4XZLF6.mjs"), { ssr: true });
2453
- var DataBindingControls = dynamic15(() => import("./DataBindingControls-VSLL4WV2.mjs"), {
2549
+ import { jsx as jsx39, jsxs as jsxs15 } from "react/jsx-runtime";
2550
+ var Pagination = dynamic16(() => import("./Pagination-6R4XZLF6.mjs"), { ssr: true });
2551
+ var DataBindingControls = dynamic16(() => import("./DataBindingControls-VSLL4WV2.mjs"), {
2454
2552
  ssr: true
2455
2553
  });
2456
- var Slider = dynamic15(() => import("./Slider-XDYPGJYI.mjs"), {
2554
+ var Slider = dynamic16(() => import("./Slider-XDYPGJYI.mjs"), {
2457
2555
  ssr: false
2458
2556
  });
2459
2557
  function toCamelCase(str) {
@@ -2474,7 +2572,7 @@ function convertKeysToCamelCase(obj) {
2474
2572
  Object.entries(obj).filter(([_, value]) => value !== "" && value !== void 0).map(([key, value]) => [toCamelCase(key), convertKeysToCamelCase(value)])
2475
2573
  );
2476
2574
  }
2477
- var getNestedValue6 = (obj, path) => {
2575
+ var getNestedValue7 = (obj, path) => {
2478
2576
  if (!obj || !path) return void 0;
2479
2577
  return path.split(".").reduce((current, key) => {
2480
2578
  {
@@ -2519,7 +2617,7 @@ function generateCompleteBackgroundString(layers, apiBaseUrl, dataItem) {
2519
2617
  const imageValue = layer.value;
2520
2618
  let assetUrl = imageValue.assetUrl || "";
2521
2619
  if (layer.datafield && dataItem) {
2522
- const fieldValue = getNestedValue6(dataItem, layer.datafield);
2620
+ const fieldValue = getNestedValue7(dataItem, layer.datafield);
2523
2621
  const resolvedAssetUrl = resolveAssetUrl(fieldValue, layer.tag);
2524
2622
  if (resolvedAssetUrl) {
2525
2623
  assetUrl = resolvedAssetUrl;
@@ -2644,7 +2742,8 @@ var DivContainer = async (props) => {
2644
2742
  "svg-icon": SVGIconNode_default,
2645
2743
  document: DocumentNode_default,
2646
2744
  "google-map": GoogleMapNode_default,
2647
- counter: CounterNode_default
2745
+ counter: CounterNode_default,
2746
+ "story-accordion": MediaAccordionNode_default
2648
2747
  };
2649
2748
  const styles = props.node.cssProperties;
2650
2749
  const mobileStyles = props.node.mobileCssProperties;
@@ -2721,7 +2820,7 @@ var DivContainer = async (props) => {
2721
2820
  response = await serviceClient.get(endpoint);
2722
2821
  result = response?.result;
2723
2822
  if (dataBindingProperties.childCollectionName && props.dataitem) {
2724
- childCollectionData = getNestedValue6(
2823
+ childCollectionData = getNestedValue7(
2725
2824
  props.dataitem,
2726
2825
  dataBindingProperties.childCollectionName
2727
2826
  );
@@ -2743,7 +2842,7 @@ var DivContainer = async (props) => {
2743
2842
  }
2744
2843
  const SelectedNode = NodeTypes2[node.type];
2745
2844
  if (!SelectedNode) return null;
2746
- return /* @__PURE__ */ jsx38(React23.Fragment, { children: /* @__PURE__ */ jsx38(
2845
+ return /* @__PURE__ */ jsx39(React23.Fragment, { children: /* @__PURE__ */ jsx39(
2747
2846
  SelectedNode,
2748
2847
  {
2749
2848
  node,
@@ -2848,7 +2947,7 @@ var DivContainer = async (props) => {
2848
2947
  item,
2849
2948
  idx,
2850
2949
  props.href ? void 0 : item?.links?.view
2851
- )?.map((child, i) => /* @__PURE__ */ jsx38(React23.Fragment, { children: child }, i)) : renderChildren(props.node.children, props, item, idx)
2950
+ )?.map((child, i) => /* @__PURE__ */ jsx39(React23.Fragment, { children: child }, i)) : renderChildren(props.node.children, props, item, idx)
2852
2951
  );
2853
2952
  }
2854
2953
  return props.node.children.flatMap((node, childIndex) => {
@@ -2859,7 +2958,7 @@ var DivContainer = async (props) => {
2859
2958
  let repeatItems = null;
2860
2959
  const childCollectionName = node?.dataBinding?.childCollectionName;
2861
2960
  if (childCollectionName && props.dataitem) {
2862
- const nestedCollection = getNestedValue6(
2961
+ const nestedCollection = getNestedValue7(
2863
2962
  props.dataitem,
2864
2963
  childCollectionName
2865
2964
  );
@@ -2966,17 +3065,17 @@ var DivContainer = async (props) => {
2966
3065
  dataBindingProperties?.showFacets || dataBindingProperties?.showSortOptions || dataBindingProperties?.showSearchBar
2967
3066
  );
2968
3067
  const WrapperComponent = Wrapper;
2969
- const renderedContainer = /* @__PURE__ */ jsx38(
3068
+ const renderedContainer = /* @__PURE__ */ jsx39(
2970
3069
  WrapperComponent,
2971
3070
  {
2972
3071
  id: guid,
2973
3072
  style: combinedStyles,
2974
3073
  className: classNames || void 0,
2975
3074
  ...wrapperProps,
2976
- children: shouldShowNoDataMessage ? hasActiveFilter ? /* @__PURE__ */ jsx38(NoFilterResultsFound_default, {}) : /* @__PURE__ */ jsx38(NoDataFound_default, {}) : renderContainerChildren()
3075
+ children: shouldShowNoDataMessage ? hasActiveFilter ? /* @__PURE__ */ jsx39(NoFilterResultsFound_default, {}) : /* @__PURE__ */ jsx39(NoDataFound_default, {}) : renderContainerChildren()
2977
3076
  }
2978
3077
  );
2979
- const paginationControl = dataBindingProperties?.enablePagination ? /* @__PURE__ */ jsx38(
3078
+ const paginationControl = dataBindingProperties?.enablePagination ? /* @__PURE__ */ jsx39(
2980
3079
  Pagination,
2981
3080
  {
2982
3081
  path: props.path,
@@ -2985,14 +3084,14 @@ var DivContainer = async (props) => {
2985
3084
  }
2986
3085
  ) : null;
2987
3086
  return /* @__PURE__ */ jsxs15(React23.Fragment, { children: [
2988
- /* @__PURE__ */ jsx38(
3087
+ /* @__PURE__ */ jsx39(
2989
3088
  "style",
2990
3089
  {
2991
3090
  dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS }
2992
3091
  }
2993
3092
  ),
2994
3093
  showDataBindingControls ? /* @__PURE__ */ jsxs15(React23.Fragment, { children: [
2995
- /* @__PURE__ */ jsx38(
3094
+ /* @__PURE__ */ jsx39(
2996
3095
  DataBindingControls,
2997
3096
  {
2998
3097
  mode: "toolbar",
@@ -3014,7 +3113,7 @@ var DivContainer = async (props) => {
3014
3113
  renderedContainer,
3015
3114
  paginationControl
3016
3115
  ] }),
3017
- dataBindingProperties?.showFacets && /* @__PURE__ */ jsx38("aside", { className: "hidden lg:block", children: /* @__PURE__ */ jsx38(
3116
+ dataBindingProperties?.showFacets && /* @__PURE__ */ jsx39("aside", { className: "hidden lg:block", children: /* @__PURE__ */ jsx39(
3018
3117
  DataBindingControls,
3019
3118
  {
3020
3119
  mode: "facets",
@@ -3029,14 +3128,14 @@ var DivContainer = async (props) => {
3029
3128
  )
3030
3129
  ] }) : /* @__PURE__ */ jsxs15(React23.Fragment, { children: [
3031
3130
  renderedContainer,
3032
- paginationControl && /* @__PURE__ */ jsx38("div", { children: paginationControl })
3131
+ paginationControl && /* @__PURE__ */ jsx39("div", { children: paginationControl })
3033
3132
  ] })
3034
3133
  ] });
3035
3134
  };
3036
3135
  var DivContainer_default = DivContainer;
3037
3136
 
3038
3137
  // src/components/pageRenderingEngine/PageBodyRenderer.tsx
3039
- import { jsx as jsx39 } from "react/jsx-runtime";
3138
+ import { jsx as jsx40 } from "react/jsx-runtime";
3040
3139
  var NodeTypes = {
3041
3140
  ["paragraph"]: ParagraphNode_default,
3042
3141
  ["heading"]: HeadingNode_default,
@@ -3053,7 +3152,8 @@ var NodeTypes = {
3053
3152
  ["embed"]: EmbedNode_default,
3054
3153
  ["document"]: DocumentNode_default,
3055
3154
  ["google-map"]: GoogleMapNode_default,
3056
- ["counter"]: CounterNode_default
3155
+ ["counter"]: CounterNode_default,
3156
+ ["story-accordion"]: MediaAccordionNode_default
3057
3157
  };
3058
3158
  var PageBodyRenderer = (props) => {
3059
3159
  let pageBodyTree;
@@ -3075,14 +3175,14 @@ var PageBodyRenderer = (props) => {
3075
3175
  }
3076
3176
  return true;
3077
3177
  };
3078
- return /* @__PURE__ */ jsx39(React24.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
3178
+ return /* @__PURE__ */ jsx40(React24.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
3079
3179
  {
3080
3180
  }
3081
3181
  const SelectedNode = NodeTypes[node.type];
3082
3182
  if (!shouldRenderNode(node)) {
3083
3183
  return null;
3084
3184
  }
3085
- return /* @__PURE__ */ jsx39(React24.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx39(React24.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ jsx39(React24.Fragment, { children: /* @__PURE__ */ jsx39(
3185
+ return /* @__PURE__ */ jsx40(React24.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx40(React24.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ jsx40(React24.Fragment, { children: /* @__PURE__ */ jsx40(
3086
3186
  SelectedNode,
3087
3187
  {
3088
3188
  node,
@@ -3098,7 +3198,7 @@ var PageBodyRenderer = (props) => {
3098
3198
  device: props.device,
3099
3199
  widgetRenderer: props.widgetRenderer
3100
3200
  }
3101
- ) }) : /* @__PURE__ */ jsx39(React24.Fragment, { children: /* @__PURE__ */ jsx39(
3201
+ ) }) : /* @__PURE__ */ jsx40(React24.Fragment, { children: /* @__PURE__ */ jsx40(
3102
3202
  SelectedNode,
3103
3203
  {
3104
3204
  node,
@@ -3168,7 +3268,7 @@ function EnterAnimationHydrator() {
3168
3268
 
3169
3269
  // src/components/Toast.tsx
3170
3270
  import { useCallback, useEffect as useEffect2, useRef, useState } from "react";
3171
- import { Fragment as Fragment7, jsx as jsx40, jsxs as jsxs16 } from "react/jsx-runtime";
3271
+ import { Fragment as Fragment7, jsx as jsx41, jsxs as jsxs16 } from "react/jsx-runtime";
3172
3272
  var Toast = () => {
3173
3273
  const [showToast, setShowToast] = useState(false);
3174
3274
  const [message, setMessage] = useState("");
@@ -3202,8 +3302,8 @@ var Toast = () => {
3202
3302
  });
3203
3303
  };
3204
3304
  }, [closeToast, showMessage]);
3205
- return /* @__PURE__ */ jsx40(Fragment7, { children: showToast && /* @__PURE__ */ jsx40("div", { className: "fixed top-2 flex justify-center w-[calc(100%-2rem)] sm:w-1/2 max-w-xl left-1/2 -translate-x-1/2", style: { zIndex: 1e3 }, children: /* @__PURE__ */ jsxs16("div", { className: `w-full items-center flex justify-between p-3 pr-8 rounded-md relative shadow border bg-${messageType}-soft`, children: [
3206
- /* @__PURE__ */ jsx40(
3305
+ return /* @__PURE__ */ jsx41(Fragment7, { children: showToast && /* @__PURE__ */ jsx41("div", { className: "fixed top-2 flex justify-center w-[calc(100%-2rem)] sm:w-1/2 max-w-xl left-1/2 -translate-x-1/2", style: { zIndex: 1e3 }, children: /* @__PURE__ */ jsxs16("div", { className: `w-full items-center flex justify-between p-3 pr-8 rounded-md relative shadow border bg-${messageType}-soft`, children: [
3306
+ /* @__PURE__ */ jsx41(
3207
3307
  "span",
3208
3308
  {
3209
3309
  className: "font-medium text-inherit text-sm",
@@ -3211,7 +3311,7 @@ var Toast = () => {
3211
3311
  children: message
3212
3312
  }
3213
3313
  ),
3214
- /* @__PURE__ */ jsx40("button", { className: "absolute right-2 top-2 ml-2 focus:outline-none", onClick: closeToast, children: /* @__PURE__ */ jsx40(
3314
+ /* @__PURE__ */ jsx41("button", { className: "absolute right-2 top-2 ml-2 focus:outline-none", onClick: closeToast, children: /* @__PURE__ */ jsx41(
3215
3315
  "svg",
3216
3316
  {
3217
3317
  xmlns: "http://www.w3.org/2000/svg",
@@ -3219,7 +3319,7 @@ var Toast = () => {
3219
3319
  fill: "none",
3220
3320
  viewBox: "0 0 24 24",
3221
3321
  stroke: "currentColor",
3222
- children: /* @__PURE__ */ jsx40("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M6 18L18 6M6 6l12 12" })
3322
+ children: /* @__PURE__ */ jsx41("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M6 18L18 6M6 6l12 12" })
3223
3323
  }
3224
3324
  ) })
3225
3325
  ] }) }) });
@@ -3229,7 +3329,7 @@ var Toast_default = Toast;
3229
3329
  // src/components/NavigationTabsV2.tsx
3230
3330
  import Link2 from "next/link";
3231
3331
  import { usePathname } from "next/navigation";
3232
- import { jsx as jsx41 } from "react/jsx-runtime";
3332
+ import { jsx as jsx42 } from "react/jsx-runtime";
3233
3333
  function resolveRoutePlaceholders(route, params) {
3234
3334
  return route.replace(/\{([^}]+)\}/g, (match, key) => {
3235
3335
  const value = params[key];
@@ -3254,8 +3354,8 @@ var NavigationTabsV2 = ({ tabs, params = {} }) => {
3254
3354
  isActive: tab.isActive
3255
3355
  })) || [];
3256
3356
  if (mappedTabs.length === 0) return null;
3257
- return /* @__PURE__ */ jsx41("div", { className: "flex border-b bg-white rounded-t mb-3", children: mappedTabs.map(({ tabTitle, landingPageUrl, isActive }) => {
3258
- return /* @__PURE__ */ jsx41(Link2, { href: landingPageUrl, className: "-mb-px", children: /* @__PURE__ */ jsx41(
3357
+ return /* @__PURE__ */ jsx42("div", { className: "flex border-b bg-white rounded-t mb-3", children: mappedTabs.map(({ tabTitle, landingPageUrl, isActive }) => {
3358
+ return /* @__PURE__ */ jsx42(Link2, { href: landingPageUrl, className: "-mb-px", children: /* @__PURE__ */ jsx42(
3259
3359
  "div",
3260
3360
  {
3261
3361
  className: `text-sm font-medium border-b-2 px-6 py-2 transition
@@ -3273,46 +3373,46 @@ import { useRouter } from "next/navigation";
3273
3373
 
3274
3374
  // src/components/dataForm/NoContentView.tsx
3275
3375
  import React26 from "react";
3276
- import { jsx as jsx42 } from "react/jsx-runtime";
3376
+ import { jsx as jsx43 } from "react/jsx-runtime";
3277
3377
  var NoContentView = (props) => {
3278
- return /* @__PURE__ */ jsx42(React26.Fragment, { children: props.isDataFound === false && props.children });
3378
+ return /* @__PURE__ */ jsx43(React26.Fragment, { children: props.isDataFound === false && props.children });
3279
3379
  };
3280
3380
  var NoContentView_default = NoContentView;
3281
3381
 
3282
3382
  // src/components/dataForm/ContentView.tsx
3283
3383
  import React27 from "react";
3284
- import { jsx as jsx43, jsxs as jsxs17 } from "react/jsx-runtime";
3384
+ import { jsx as jsx44, jsxs as jsxs17 } from "react/jsx-runtime";
3285
3385
  var ContentView = (props) => {
3286
3386
  return /* @__PURE__ */ jsxs17(React27.Fragment, { children: [
3287
- props.isDataFound == null && /* @__PURE__ */ jsx43("div", { className: "", children: /* @__PURE__ */ jsxs17("div", { className: "bg-gray-200 rounded-md p-4 animate-pulse", children: [
3387
+ props.isDataFound == null && /* @__PURE__ */ jsx44("div", { className: "", children: /* @__PURE__ */ jsxs17("div", { className: "bg-gray-200 rounded-md p-4 animate-pulse", children: [
3288
3388
  /* @__PURE__ */ jsxs17("div", { className: "flex items-center mb-4", children: [
3289
- /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
3389
+ /* @__PURE__ */ jsx44("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
3290
3390
  /* @__PURE__ */ jsxs17("div", { className: "ml-2", children: [
3291
- /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
3292
- /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
3391
+ /* @__PURE__ */ jsx44("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
3392
+ /* @__PURE__ */ jsx44("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
3293
3393
  ] })
3294
3394
  ] }),
3295
3395
  /* @__PURE__ */ jsxs17("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
3296
3396
  /* @__PURE__ */ jsxs17("div", { className: "animate-pulse", children: [
3297
- /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
3298
- /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
3299
- /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
3300
- /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
3301
- /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
3397
+ /* @__PURE__ */ jsx44("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
3398
+ /* @__PURE__ */ jsx44("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
3399
+ /* @__PURE__ */ jsx44("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
3400
+ /* @__PURE__ */ jsx44("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
3401
+ /* @__PURE__ */ jsx44("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
3302
3402
  ] }),
3303
3403
  /* @__PURE__ */ jsxs17("div", { className: "animate-pulse", children: [
3304
- /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
3305
- /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
3306
- /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
3307
- /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
3308
- /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
3404
+ /* @__PURE__ */ jsx44("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
3405
+ /* @__PURE__ */ jsx44("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
3406
+ /* @__PURE__ */ jsx44("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
3407
+ /* @__PURE__ */ jsx44("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
3408
+ /* @__PURE__ */ jsx44("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
3309
3409
  ] }),
3310
3410
  /* @__PURE__ */ jsxs17("div", { className: "animate-pulse", children: [
3311
- /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
3312
- /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
3313
- /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
3314
- /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
3315
- /* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
3411
+ /* @__PURE__ */ jsx44("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
3412
+ /* @__PURE__ */ jsx44("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
3413
+ /* @__PURE__ */ jsx44("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
3414
+ /* @__PURE__ */ jsx44("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
3415
+ /* @__PURE__ */ jsx44("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
3316
3416
  ] })
3317
3417
  ] })
3318
3418
  ] }) }),
@@ -3366,7 +3466,7 @@ function FormReducer(state, action) {
3366
3466
  var FormReducer_default = FormReducer;
3367
3467
 
3368
3468
  // src/components/dataForm/DataList.tsx
3369
- import { Fragment as Fragment8, jsx as jsx44, jsxs as jsxs18 } from "react/jsx-runtime";
3469
+ import { Fragment as Fragment8, jsx as jsx45, jsxs as jsxs18 } from "react/jsx-runtime";
3370
3470
  var DataList = (props) => {
3371
3471
  const router = useRouter();
3372
3472
  let builder = new OdataBuilder(props.path);
@@ -3407,7 +3507,7 @@ var DataList = (props) => {
3407
3507
  if (path.includes(".")) {
3408
3508
  return path.split(".").reduce((prev, curr) => prev ? prev[curr] : null, obj);
3409
3509
  } else if (Array.isArray(obj[path])) {
3410
- return obj[path].map((item, index) => /* @__PURE__ */ jsx44("div", { children: item }, index));
3510
+ return obj[path].map((item, index) => /* @__PURE__ */ jsx45("div", { children: item }, index));
3411
3511
  } else {
3412
3512
  return obj[path];
3413
3513
  }
@@ -3489,30 +3589,30 @@ var DataList = (props) => {
3489
3589
  const renderPageNumbers = () => {
3490
3590
  if (pages <= 10) {
3491
3591
  return Array.from({ length: pages }, (_, index) => index + 1).map(
3492
- (page) => /* @__PURE__ */ jsx44(React28.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx44(
3592
+ (page) => /* @__PURE__ */ jsx45(React28.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx45(
3493
3593
  Hyperlink,
3494
3594
  {
3495
3595
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
3496
3596
  href: builder.getNewPageUrl(page),
3497
3597
  children: page
3498
3598
  }
3499
- ) : /* @__PURE__ */ jsx44("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)
3599
+ ) : /* @__PURE__ */ jsx45("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)
3500
3600
  );
3501
3601
  } else {
3502
3602
  const showFirstPages = activePageNumber <= 5;
3503
3603
  const showLastPages = activePageNumber > pages - 5;
3504
3604
  if (showFirstPages) {
3505
3605
  return /* @__PURE__ */ jsxs18(Fragment8, { children: [
3506
- Array.from({ length: 8 }, (_, index) => index + 1).map((page) => /* @__PURE__ */ jsx44(React28.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx44(
3606
+ Array.from({ length: 8 }, (_, index) => index + 1).map((page) => /* @__PURE__ */ jsx45(React28.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx45(
3507
3607
  Hyperlink,
3508
3608
  {
3509
3609
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
3510
3610
  href: builder.getNewPageUrl(page),
3511
3611
  children: page
3512
3612
  }
3513
- ) : /* @__PURE__ */ jsx44("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)),
3514
- /* @__PURE__ */ jsx44("span", { className: "px-2 py-1", children: "..." }),
3515
- /* @__PURE__ */ jsx44(
3613
+ ) : /* @__PURE__ */ jsx45("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)),
3614
+ /* @__PURE__ */ jsx45("span", { className: "px-2 py-1", children: "..." }),
3615
+ /* @__PURE__ */ jsx45(
3516
3616
  Hyperlink,
3517
3617
  {
3518
3618
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -3520,7 +3620,7 @@ var DataList = (props) => {
3520
3620
  children: pages - 1
3521
3621
  }
3522
3622
  ),
3523
- /* @__PURE__ */ jsx44(
3623
+ /* @__PURE__ */ jsx45(
3524
3624
  Hyperlink,
3525
3625
  {
3526
3626
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -3528,7 +3628,7 @@ var DataList = (props) => {
3528
3628
  children: pages
3529
3629
  }
3530
3630
  ),
3531
- /* @__PURE__ */ jsx44("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs18(
3631
+ /* @__PURE__ */ jsx45("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs18(
3532
3632
  "select",
3533
3633
  {
3534
3634
  className: " py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
@@ -3540,18 +3640,18 @@ var DataList = (props) => {
3540
3640
  }
3541
3641
  },
3542
3642
  children: [
3543
- /* @__PURE__ */ jsx44("option", { className: "", value: "", children: "Jump to" }),
3643
+ /* @__PURE__ */ jsx45("option", { className: "", value: "", children: "Jump to" }),
3544
3644
  Array.from(
3545
3645
  { length: Math.max(0, pages - 10) },
3546
3646
  (_, index) => index + 9
3547
- ).map((page) => /* @__PURE__ */ jsx44("option", { value: page, children: page }, page))
3647
+ ).map((page) => /* @__PURE__ */ jsx45("option", { value: page, children: page }, page))
3548
3648
  ]
3549
3649
  }
3550
3650
  ) })
3551
3651
  ] });
3552
3652
  } else if (showLastPages) {
3553
3653
  return /* @__PURE__ */ jsxs18(Fragment8, { children: [
3554
- /* @__PURE__ */ jsx44(
3654
+ /* @__PURE__ */ jsx45(
3555
3655
  Hyperlink,
3556
3656
  {
3557
3657
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -3559,7 +3659,7 @@ var DataList = (props) => {
3559
3659
  children: "1"
3560
3660
  }
3561
3661
  ),
3562
- /* @__PURE__ */ jsx44(
3662
+ /* @__PURE__ */ jsx45(
3563
3663
  Hyperlink,
3564
3664
  {
3565
3665
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -3567,21 +3667,21 @@ var DataList = (props) => {
3567
3667
  children: "2"
3568
3668
  }
3569
3669
  ),
3570
- /* @__PURE__ */ jsx44("span", { className: "px-2 py-1", children: "..." }),
3670
+ /* @__PURE__ */ jsx45("span", { className: "px-2 py-1", children: "..." }),
3571
3671
  Array.from({ length: 8 }, (_, index) => pages - 7 + index).map(
3572
- (page) => /* @__PURE__ */ jsx44(React28.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx44(
3672
+ (page) => /* @__PURE__ */ jsx45(React28.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx45(
3573
3673
  Hyperlink,
3574
3674
  {
3575
3675
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
3576
3676
  href: builder.getNewPageUrl(page),
3577
3677
  children: page
3578
3678
  }
3579
- ) : /* @__PURE__ */ jsx44("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)
3679
+ ) : /* @__PURE__ */ jsx45("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)
3580
3680
  )
3581
3681
  ] });
3582
3682
  } else {
3583
3683
  return /* @__PURE__ */ jsxs18(Fragment8, { children: [
3584
- /* @__PURE__ */ jsx44(
3684
+ /* @__PURE__ */ jsx45(
3585
3685
  Hyperlink,
3586
3686
  {
3587
3687
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -3589,7 +3689,7 @@ var DataList = (props) => {
3589
3689
  children: "1"
3590
3690
  }
3591
3691
  ),
3592
- /* @__PURE__ */ jsx44(
3692
+ /* @__PURE__ */ jsx45(
3593
3693
  Hyperlink,
3594
3694
  {
3595
3695
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -3597,20 +3697,20 @@ var DataList = (props) => {
3597
3697
  children: "2"
3598
3698
  }
3599
3699
  ),
3600
- /* @__PURE__ */ jsx44("span", { className: "px-2 py-1", children: "..." }),
3700
+ /* @__PURE__ */ jsx45("span", { className: "px-2 py-1", children: "..." }),
3601
3701
  Array.from(
3602
3702
  { length: 5 },
3603
3703
  (_, index) => activePageNumber - 2 + index
3604
- ).map((page) => /* @__PURE__ */ jsx44(React28.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx44(
3704
+ ).map((page) => /* @__PURE__ */ jsx45(React28.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx45(
3605
3705
  Hyperlink,
3606
3706
  {
3607
3707
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
3608
3708
  href: builder.getNewPageUrl(page),
3609
3709
  children: page
3610
3710
  }
3611
- ) : /* @__PURE__ */ jsx44("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)),
3612
- /* @__PURE__ */ jsx44("span", { className: "px-2 py-1", children: "..." }),
3613
- /* @__PURE__ */ jsx44(
3711
+ ) : /* @__PURE__ */ jsx45("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)),
3712
+ /* @__PURE__ */ jsx45("span", { className: "px-2 py-1", children: "..." }),
3713
+ /* @__PURE__ */ jsx45(
3614
3714
  Hyperlink,
3615
3715
  {
3616
3716
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -3618,7 +3718,7 @@ var DataList = (props) => {
3618
3718
  children: pages - 1
3619
3719
  }
3620
3720
  ),
3621
- /* @__PURE__ */ jsx44(
3721
+ /* @__PURE__ */ jsx45(
3622
3722
  Hyperlink,
3623
3723
  {
3624
3724
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -3626,7 +3726,7 @@ var DataList = (props) => {
3626
3726
  children: pages
3627
3727
  }
3628
3728
  ),
3629
- /* @__PURE__ */ jsx44("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs18(
3729
+ /* @__PURE__ */ jsx45("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs18(
3630
3730
  "select",
3631
3731
  {
3632
3732
  className: "px-2 py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
@@ -3638,8 +3738,8 @@ var DataList = (props) => {
3638
3738
  }
3639
3739
  },
3640
3740
  children: [
3641
- /* @__PURE__ */ jsx44("option", { value: "", children: "Jump to" }),
3642
- Array.from({ length: pages - 4 }, (_, index) => index + 3).filter((page) => page > 2 && page < pages - 1).map((page) => /* @__PURE__ */ jsx44("option", { value: page, children: page }, page))
3741
+ /* @__PURE__ */ jsx45("option", { value: "", children: "Jump to" }),
3742
+ Array.from({ length: pages - 4 }, (_, index) => index + 3).filter((page) => page > 2 && page < pages - 1).map((page) => /* @__PURE__ */ jsx45("option", { value: page, children: page }, page))
3643
3743
  ]
3644
3744
  }
3645
3745
  ) })
@@ -3654,9 +3754,9 @@ var DataList = (props) => {
3654
3754
  {
3655
3755
  className: `flex justify-between items-center bg-white pl-6 pr-2 h-14 mb-3 shadow-sm rounded-md sticky top-0`,
3656
3756
  children: [
3657
- props.title ? /* @__PURE__ */ jsx44("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ jsx44("h2", { className: "text-lg font-semibold text-black-800", children: props.title }) }) : /* @__PURE__ */ jsx44("div", {}),
3757
+ props.title ? /* @__PURE__ */ jsx45("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ jsx45("h2", { className: "text-lg font-semibold text-black-800", children: props.title }) }) : /* @__PURE__ */ jsx45("div", {}),
3658
3758
  /* @__PURE__ */ jsxs18("div", { className: "flex items-center gap-3", children: [
3659
- props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ jsx44(
3759
+ props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ jsx45(
3660
3760
  InputControl_default,
3661
3761
  {
3662
3762
  name: "Search_input",
@@ -3669,7 +3769,7 @@ var DataList = (props) => {
3669
3769
  }
3670
3770
  }
3671
3771
  ),
3672
- props.filters && props.filters.map((filter) => /* @__PURE__ */ jsx44(
3772
+ props.filters && props.filters.map((filter) => /* @__PURE__ */ jsx45(
3673
3773
  InputControl_default,
3674
3774
  {
3675
3775
  name: filter.name,
@@ -3691,8 +3791,8 @@ var DataList = (props) => {
3691
3791
  linkType: "Primary" /* Solid */,
3692
3792
  href: props.addLinkHref,
3693
3793
  children: [
3694
- /* @__PURE__ */ jsx44(Icon_default, { name: "plus", className: "w-4 h-4" }),
3695
- /* @__PURE__ */ jsx44("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
3794
+ /* @__PURE__ */ jsx45(Icon_default, { name: "plus", className: "w-4 h-4" }),
3795
+ /* @__PURE__ */ jsx45("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
3696
3796
  ]
3697
3797
  }
3698
3798
  )
@@ -3700,8 +3800,8 @@ var DataList = (props) => {
3700
3800
  ]
3701
3801
  }
3702
3802
  ),
3703
- /* @__PURE__ */ jsx44("div", { className: "flex-1 overflow-y-auto justify-end bg-white rounded shadow h-[calc(100vh-14rem)]", children: /* @__PURE__ */ jsxs18("table", { className: "w-full divide-y divide-gray-200", children: [
3704
- /* @__PURE__ */ jsx44("thead", { className: "bg-gray-50 sticky top-0", children: /* @__PURE__ */ jsxs18("tr", { children: [
3803
+ /* @__PURE__ */ jsx45("div", { className: "flex-1 overflow-y-auto justify-end bg-white rounded shadow h-[calc(100vh-14rem)]", children: /* @__PURE__ */ jsxs18("table", { className: "w-full divide-y divide-gray-200", children: [
3804
+ /* @__PURE__ */ jsx45("thead", { className: "bg-gray-50 sticky top-0", children: /* @__PURE__ */ jsxs18("tr", { children: [
3705
3805
  props?.columns?.map((column) => {
3706
3806
  let url = builder.getNewOrderByUrl(column.name);
3707
3807
  let icon = "chevronUpDown";
@@ -3712,18 +3812,18 @@ var DataList = (props) => {
3712
3812
  icon = "chevronUp";
3713
3813
  url = builder.getNewOrderByUrl(column.name + " desc");
3714
3814
  }
3715
- return /* @__PURE__ */ jsx44(
3815
+ return /* @__PURE__ */ jsx45(
3716
3816
  "th",
3717
3817
  {
3718
3818
  className: "px-6 py-3 text-left font-medium bg-neutral-soft " + (column.enableSorting ? "cursor-pointer " : "") + column.width + (column.controlType == ViewControlTypes_default.money ? " text-right" : ""),
3719
- children: /* @__PURE__ */ jsx44(
3819
+ children: /* @__PURE__ */ jsx45(
3720
3820
  Hyperlink,
3721
3821
  {
3722
3822
  href: column.enableSorting ? url : void 0,
3723
3823
  className: "!text-neutral-contrast ",
3724
3824
  children: /* @__PURE__ */ jsxs18("span", { className: "flex items-center space-x-1", children: [
3725
- /* @__PURE__ */ jsx44("span", { className: "text-black", children: column.label }),
3726
- column.enableSorting && /* @__PURE__ */ jsx44(Icon_default, { className: "w-4 h-4", name: icon })
3825
+ /* @__PURE__ */ jsx45("span", { className: "text-black", children: column.label }),
3826
+ column.enableSorting && /* @__PURE__ */ jsx45(Icon_default, { className: "w-4 h-4", name: icon })
3727
3827
  ] })
3728
3828
  }
3729
3829
  )
@@ -3731,25 +3831,25 @@ var DataList = (props) => {
3731
3831
  column.name
3732
3832
  );
3733
3833
  }),
3734
- props.onQuickView && /* @__PURE__ */ jsx44("th", { className: "px-6 py-3 text-right font-medium bg-neutral-soft w-32 text-black", children: "Action" })
3834
+ props.onQuickView && /* @__PURE__ */ jsx45("th", { className: "px-6 py-3 text-right font-medium bg-neutral-soft w-32 text-black", children: "Action" })
3735
3835
  ] }) }),
3736
- /* @__PURE__ */ jsx44("tbody", { className: "divide-y divide-gray-200 ", children: props.dataset?.result?.map((dataitem, index) => {
3836
+ /* @__PURE__ */ jsx45("tbody", { className: "divide-y divide-gray-200 ", children: props.dataset?.result?.map((dataitem, index) => {
3737
3837
  let validityClass = "";
3738
3838
  if (props.recordValidityColumnName && getNestedProperty2(dataitem, props.recordValidityColumnName) == false) {
3739
3839
  validityClass = "bg-alert-200";
3740
3840
  }
3741
3841
  return /* @__PURE__ */ jsxs18("tr", { className: validityClass, children: [
3742
3842
  props?.columns?.map((column, colindex) => {
3743
- return /* @__PURE__ */ jsx44(React28.Fragment, { children: /* @__PURE__ */ jsx44(
3843
+ return /* @__PURE__ */ jsx45(React28.Fragment, { children: /* @__PURE__ */ jsx45(
3744
3844
  "td",
3745
3845
  {
3746
3846
  className: "px-6 py-2 whitespace-normal " + (column.controlType == ViewControlTypes_default.money ? "" : ""),
3747
- children: column.addhref === true ? /* @__PURE__ */ jsx44(
3847
+ children: column.addhref === true ? /* @__PURE__ */ jsx45(
3748
3848
  Hyperlink,
3749
3849
  {
3750
3850
  className: "",
3751
3851
  href: `https://${dataitem[column.name]}`,
3752
- children: /* @__PURE__ */ jsx44(
3852
+ children: /* @__PURE__ */ jsx45(
3753
3853
  ViewControl_default,
3754
3854
  {
3755
3855
  controlType: column.controlType,
@@ -3762,11 +3862,11 @@ var DataList = (props) => {
3762
3862
  }
3763
3863
  )
3764
3864
  }
3765
- ) : column.showAsLink ? /* @__PURE__ */ jsx44(
3865
+ ) : column.showAsLink ? /* @__PURE__ */ jsx45(
3766
3866
  Hyperlink,
3767
3867
  {
3768
3868
  href: props.path + dataitem[props.columns[0].name] + "/" + (dataitem.linkUrlSegment ?? column.linkUrlSegment),
3769
- children: /* @__PURE__ */ jsx44(
3869
+ children: /* @__PURE__ */ jsx45(
3770
3870
  ViewControl_default,
3771
3871
  {
3772
3872
  controlType: column.controlType,
@@ -3776,7 +3876,7 @@ var DataList = (props) => {
3776
3876
  }
3777
3877
  )
3778
3878
  }
3779
- ) : /* @__PURE__ */ jsx44(
3879
+ ) : /* @__PURE__ */ jsx45(
3780
3880
  ViewControl_default,
3781
3881
  {
3782
3882
  controlType: column.controlType,
@@ -3788,7 +3888,7 @@ var DataList = (props) => {
3788
3888
  }
3789
3889
  ) }, colindex);
3790
3890
  }),
3791
- props.onQuickView && /* @__PURE__ */ jsx44("td", { className: "px-6 py-2 text-right whitespace-nowrap", children: /* @__PURE__ */ jsxs18(
3891
+ props.onQuickView && /* @__PURE__ */ jsx45("td", { className: "px-6 py-2 text-right whitespace-nowrap", children: /* @__PURE__ */ jsxs18(
3792
3892
  "button",
3793
3893
  {
3794
3894
  type: "button",
@@ -3809,22 +3909,22 @@ var DataList = (props) => {
3809
3909
  strokeLinecap: "round",
3810
3910
  strokeLinejoin: "round",
3811
3911
  children: [
3812
- /* @__PURE__ */ jsx44("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }),
3813
- /* @__PURE__ */ jsx44("circle", { cx: "12", cy: "12", r: "3" })
3912
+ /* @__PURE__ */ jsx45("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }),
3913
+ /* @__PURE__ */ jsx45("circle", { cx: "12", cy: "12", r: "3" })
3814
3914
  ]
3815
3915
  }
3816
3916
  ),
3817
- /* @__PURE__ */ jsx44("span", { children: props.quickViewLabel || "Quick View" })
3917
+ /* @__PURE__ */ jsx45("span", { children: props.quickViewLabel || "Quick View" })
3818
3918
  ]
3819
3919
  }
3820
3920
  ) })
3821
3921
  ] }, index);
3822
3922
  }) })
3823
3923
  ] }) }),
3824
- /* @__PURE__ */ jsx44("div", { className: "pt-4 border-t border-t-gray-50 sticky bottom-0 h-11 mt-2 ", children: /* @__PURE__ */ jsxs18("div", { className: "flex items-center justify-between", children: [
3825
- /* @__PURE__ */ jsx44("div", { className: "text-gray-700", children: label }),
3924
+ /* @__PURE__ */ jsx45("div", { className: "pt-4 border-t border-t-gray-50 sticky bottom-0 h-11 mt-2 ", children: /* @__PURE__ */ jsxs18("div", { className: "flex items-center justify-between", children: [
3925
+ /* @__PURE__ */ jsx45("div", { className: "text-gray-700", children: label }),
3826
3926
  /* @__PURE__ */ jsxs18("div", { className: "flex space-x-2 items-center", children: [
3827
- activePageNumber > 1 && /* @__PURE__ */ jsx44(
3927
+ activePageNumber > 1 && /* @__PURE__ */ jsx45(
3828
3928
  Hyperlink,
3829
3929
  {
3830
3930
  className: "px-3 py-1 rounded-l-md border border-gray-300 bg-white text-gray-500 hover:bg-gray-200",
@@ -3832,9 +3932,9 @@ var DataList = (props) => {
3832
3932
  children: "Prev"
3833
3933
  }
3834
3934
  ),
3835
- activePageNumber <= 1 && /* @__PURE__ */ jsx44("div", { className: "px-3 py-1 rounded-l-md border border-gray-300 bg-gray-200 text-gray-500 hover:bg-gray-200", children: "Prev" }),
3935
+ activePageNumber <= 1 && /* @__PURE__ */ jsx45("div", { className: "px-3 py-1 rounded-l-md border border-gray-300 bg-gray-200 text-gray-500 hover:bg-gray-200", children: "Prev" }),
3836
3936
  renderPageNumbers(),
3837
- activePageNumber < pages && /* @__PURE__ */ jsx44(
3937
+ activePageNumber < pages && /* @__PURE__ */ jsx45(
3838
3938
  Hyperlink,
3839
3939
  {
3840
3940
  className: "px-3 py-1 rounded-r-md border border-gray-300 bg-white text-gray-500 hover:bg-gray-200",
@@ -3842,7 +3942,7 @@ var DataList = (props) => {
3842
3942
  children: "Next"
3843
3943
  }
3844
3944
  ),
3845
- activePageNumber >= pages && /* @__PURE__ */ jsx44("div", { className: "px-3 py-1 rounded-r-md border border-gray-300 bg-gray-200 text-gray-500", children: "Next" })
3945
+ activePageNumber >= pages && /* @__PURE__ */ jsx45("div", { className: "px-3 py-1 rounded-r-md border border-gray-300 bg-gray-200 text-gray-500", children: "Next" })
3846
3946
  ] })
3847
3947
  ] }) })
3848
3948
  ] }),
@@ -3852,9 +3952,9 @@ var DataList = (props) => {
3852
3952
  {
3853
3953
  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`,
3854
3954
  children: [
3855
- props.title ? /* @__PURE__ */ jsx44("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ jsx44("h2", { className: "text-lg font-semibold text-black", children: props.title }) }) : /* @__PURE__ */ jsx44("div", {}),
3955
+ props.title ? /* @__PURE__ */ jsx45("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ jsx45("h2", { className: "text-lg font-semibold text-black", children: props.title }) }) : /* @__PURE__ */ jsx45("div", {}),
3856
3956
  /* @__PURE__ */ jsxs18("div", { className: "flex items-center gap-3", children: [
3857
- props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ jsx44(
3957
+ props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ jsx45(
3858
3958
  InputControl_default,
3859
3959
  {
3860
3960
  name: "Search_input",
@@ -3867,7 +3967,7 @@ var DataList = (props) => {
3867
3967
  }
3868
3968
  }
3869
3969
  ),
3870
- props.filters && props.filters.map((filter) => /* @__PURE__ */ jsx44(
3970
+ props.filters && props.filters.map((filter) => /* @__PURE__ */ jsx45(
3871
3971
  InputControl_default,
3872
3972
  {
3873
3973
  name: filter.name,
@@ -3889,8 +3989,8 @@ var DataList = (props) => {
3889
3989
  linkType: "Primary" /* Solid */,
3890
3990
  href: props.addLinkHref,
3891
3991
  children: [
3892
- /* @__PURE__ */ jsx44(Icon_default, { name: "plus", className: "w-4 h-4" }),
3893
- /* @__PURE__ */ jsx44("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
3992
+ /* @__PURE__ */ jsx45(Icon_default, { name: "plus", className: "w-4 h-4" }),
3993
+ /* @__PURE__ */ jsx45("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
3894
3994
  ]
3895
3995
  }
3896
3996
  )
@@ -3899,7 +3999,7 @@ var DataList = (props) => {
3899
3999
  }
3900
4000
  ),
3901
4001
  /* @__PURE__ */ jsxs18("div", { className: "flex-grow overflow-y-auto justify-end bg-white rounded shadow h-[75vh]", children: [
3902
- /* @__PURE__ */ jsx44("div", { children: /* @__PURE__ */ jsx44("table", { className: "w-full divide-y divide-gray-200", children: /* @__PURE__ */ jsx44("thead", { className: "bg-gray-50", children: /* @__PURE__ */ jsx44("tr", { children: props?.columns?.map((column) => {
4002
+ /* @__PURE__ */ jsx45("div", { children: /* @__PURE__ */ jsx45("table", { className: "w-full divide-y divide-gray-200", children: /* @__PURE__ */ jsx45("thead", { className: "bg-gray-50", children: /* @__PURE__ */ jsx45("tr", { children: props?.columns?.map((column) => {
3903
4003
  let url = builder.getNewOrderByUrl(column.name);
3904
4004
  let icon = "chevronUpDown";
3905
4005
  if (orderBy.includes(`${column.name} desc`)) {
@@ -3909,18 +4009,18 @@ var DataList = (props) => {
3909
4009
  icon = "chevronUp";
3910
4010
  url = builder.getNewOrderByUrl(column.name + " desc");
3911
4011
  }
3912
- return /* @__PURE__ */ jsx44(
4012
+ return /* @__PURE__ */ jsx45(
3913
4013
  "th",
3914
4014
  {
3915
4015
  className: "px-6 py-3 text-left font-medium bg-neutral-soft " + (column.enableSorting ? "cursor-pointer " : "") + column.width + (column.controlType == ViewControlTypes_default.money ? " text-right" : ""),
3916
- children: /* @__PURE__ */ jsx44(
4016
+ children: /* @__PURE__ */ jsx45(
3917
4017
  Hyperlink,
3918
4018
  {
3919
4019
  href: column.enableSorting ? url : void 0,
3920
4020
  className: "text-body-950",
3921
4021
  children: /* @__PURE__ */ jsxs18("span", { className: "flex items-center space-x-1", children: [
3922
- /* @__PURE__ */ jsx44("span", { children: column.label }),
3923
- column.enableSorting && /* @__PURE__ */ jsx44(Icon_default, { className: "w-4 h-4", name: icon })
4022
+ /* @__PURE__ */ jsx45("span", { children: column.label }),
4023
+ column.enableSorting && /* @__PURE__ */ jsx45(Icon_default, { className: "w-4 h-4", name: icon })
3924
4024
  ] })
3925
4025
  }
3926
4026
  )
@@ -3928,7 +4028,7 @@ var DataList = (props) => {
3928
4028
  column.name
3929
4029
  );
3930
4030
  }) }) }) }) }),
3931
- /* @__PURE__ */ jsx44("div", { className: "w-full text-center bg-transparent pt-5", children: "There are no entries in the table at the moment." })
4031
+ /* @__PURE__ */ jsx45("div", { className: "w-full text-center bg-transparent pt-5", children: "There are no entries in the table at the moment." })
3932
4032
  ] })
3933
4033
  ] })
3934
4034
  ] });
@@ -3938,7 +4038,7 @@ var DataList_default = DataList;
3938
4038
  // src/components/dataForm/DataListRenderer.tsx
3939
4039
  import React29, { useState as useState3, useEffect as useEffect4 } from "react";
3940
4040
  import { usePathname as usePathname2 } from "next/navigation";
3941
- import { jsx as jsx45, jsxs as jsxs19 } from "react/jsx-runtime";
4041
+ import { jsx as jsx46, jsxs as jsxs19 } from "react/jsx-runtime";
3942
4042
  var viewControlMap = {
3943
4043
  number: ViewControlTypes.number,
3944
4044
  lineText: ViewControlTypes.lineText,
@@ -4038,8 +4138,8 @@ var DataListRenderer = ({
4038
4138
  // tabs={resolvedTabs}
4039
4139
  // params={(widgetProps?.params ?? params) as Record<string, any>}
4040
4140
  // />
4041
- /* @__PURE__ */ jsx45(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
4042
- /* @__PURE__ */ jsx45(
4141
+ /* @__PURE__ */ jsx46(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
4142
+ /* @__PURE__ */ jsx46(
4043
4143
  DataList_default,
4044
4144
  {
4045
4145
  addLinkHref,
@@ -4084,7 +4184,7 @@ var FORM_CHILD_ONE_TO_ONE_UPDATE = "FORM_CHILD_ONE_TO_ONE_UPDATE";
4084
4184
  var FORM_CHILD_ROW_ADD = "FORM_CHILD_ROW_ADD";
4085
4185
 
4086
4186
  // src/components/dataForm/DataFormChildSection.tsx
4087
- import { jsx as jsx46, jsxs as jsxs20 } from "react/jsx-runtime";
4187
+ import { jsx as jsx47, jsxs as jsxs20 } from "react/jsx-runtime";
4088
4188
  var DataFormChildSection = (props) => {
4089
4189
  const { section } = props;
4090
4190
  const isOneToOne = section.relationshipType === "one-to-one";
@@ -4152,14 +4252,14 @@ var DataFormChildSection = (props) => {
4152
4252
  childItemsToRender,
4153
4253
  allChildItems: childItems
4154
4254
  });
4155
- return /* @__PURE__ */ jsx46(React30.Fragment, { children: /* @__PURE__ */ jsxs20("div", { className: "rounded border-neutral-200 border px-6 py-4 mb-2", children: [
4156
- section.sectionTitle && /* @__PURE__ */ jsx46("div", { className: "mb-4 text-lg font-medium text-body-950", children: section.sectionTitle }),
4157
- /* @__PURE__ */ jsx46("div", { className: "flex-grow flex flex-col justify-between overflow-y-auto", children: /* @__PURE__ */ jsxs20("div", { className: "flex flex-col justify-between gap-2", children: [
4158
- /* @__PURE__ */ jsx46("div", { children: /* @__PURE__ */ jsxs20("table", { className: "w-full border-separate divide-y divide-gray-200", children: [
4159
- (!isOneToOne || childItemsToRender.length > 0) && /* @__PURE__ */ jsx46("thead", { className: "", children: section.sectionRows.map((sectionRow, sectionRowIndex) => {
4255
+ return /* @__PURE__ */ jsx47(React30.Fragment, { children: /* @__PURE__ */ jsxs20("div", { className: "rounded border-neutral-200 border px-6 py-4 mb-2", children: [
4256
+ section.sectionTitle && /* @__PURE__ */ jsx47("div", { className: "mb-4 text-lg font-medium text-body-950", children: section.sectionTitle }),
4257
+ /* @__PURE__ */ jsx47("div", { className: "flex-grow flex flex-col justify-between overflow-y-auto", children: /* @__PURE__ */ jsxs20("div", { className: "flex flex-col justify-between gap-2", children: [
4258
+ /* @__PURE__ */ jsx47("div", { children: /* @__PURE__ */ jsxs20("table", { className: "w-full border-separate divide-y divide-gray-200", children: [
4259
+ (!isOneToOne || childItemsToRender.length > 0) && /* @__PURE__ */ jsx47("thead", { className: "", children: section.sectionRows.map((sectionRow, sectionRowIndex) => {
4160
4260
  return /* @__PURE__ */ jsxs20("tr", { className: "", children: [
4161
4261
  sectionRow.elements.map((field, index) => {
4162
- return /* @__PURE__ */ jsx46(
4262
+ return /* @__PURE__ */ jsx47(
4163
4263
  "th",
4164
4264
  {
4165
4265
  className: "py-3 font-normal text-left",
@@ -4168,13 +4268,13 @@ var DataFormChildSection = (props) => {
4168
4268
  field.name
4169
4269
  );
4170
4270
  }),
4171
- !section.readonly && !isOneToOne && /* @__PURE__ */ jsx46("th", { className: "py-3 font-normal text-left", children: "Actions" })
4271
+ !section.readonly && !isOneToOne && /* @__PURE__ */ jsx47("th", { className: "py-3 font-normal text-left", children: "Actions" })
4172
4272
  ] }, sectionRowIndex);
4173
4273
  }) }),
4174
- /* @__PURE__ */ jsx46("tbody", { className: "divide-y divide-gray-200", children: childItemsToRender.map((visibleItem, filteredIndex) => {
4274
+ /* @__PURE__ */ jsx47("tbody", { className: "divide-y divide-gray-200", children: childItemsToRender.map((visibleItem, filteredIndex) => {
4175
4275
  const { item, originalIndex } = visibleItem;
4176
4276
  const rowKey = originalIndex;
4177
- return /* @__PURE__ */ jsx46(React30.Fragment, { children: section.sectionRows.map(
4277
+ return /* @__PURE__ */ jsx47(React30.Fragment, { children: section.sectionRows.map(
4178
4278
  (sectionRow, sectionRowIndex) => {
4179
4279
  return /* @__PURE__ */ jsxs20(
4180
4280
  "tr",
@@ -4182,7 +4282,7 @@ var DataFormChildSection = (props) => {
4182
4282
  className: "",
4183
4283
  children: [
4184
4284
  sectionRow.elements.map((field, index) => {
4185
- return /* @__PURE__ */ jsx46("td", { children: /* @__PURE__ */ jsx46("div", { className: "flex-1", children: /* @__PURE__ */ jsx46("div", { className: "w-11/12", children: /* @__PURE__ */ jsx46(
4285
+ return /* @__PURE__ */ jsx47("td", { children: /* @__PURE__ */ jsx47("div", { className: "flex-1", children: /* @__PURE__ */ jsx47("div", { className: "w-11/12", children: /* @__PURE__ */ jsx47(
4186
4286
  InputControl_default,
4187
4287
  {
4188
4288
  index: filteredIndex,
@@ -4202,7 +4302,7 @@ var DataFormChildSection = (props) => {
4202
4302
  }
4203
4303
  ) }) }) }, field.name);
4204
4304
  }),
4205
- !section.readonly && !isOneToOne && /* @__PURE__ */ jsx46("td", { children: /* @__PURE__ */ jsx46(
4305
+ !section.readonly && !isOneToOne && /* @__PURE__ */ jsx47("td", { children: /* @__PURE__ */ jsx47(
4206
4306
  ClientButton_default,
4207
4307
  {
4208
4308
  ButtonType: StyleTypes2.Hollow,
@@ -4211,7 +4311,7 @@ var DataFormChildSection = (props) => {
4211
4311
  },
4212
4312
  dataRole: "delete",
4213
4313
  tabIndex: -1,
4214
- children: /* @__PURE__ */ jsx46(
4314
+ children: /* @__PURE__ */ jsx47(
4215
4315
  Icon_default,
4216
4316
  {
4217
4317
  className: "w-4 h-4",
@@ -4228,7 +4328,7 @@ var DataFormChildSection = (props) => {
4228
4328
  ) }, rowKey);
4229
4329
  }) })
4230
4330
  ] }) }),
4231
- !section.readonly && !isOneToOne && /* @__PURE__ */ jsx46("div", { className: "ml-1", children: /* @__PURE__ */ jsx46(
4331
+ !section.readonly && !isOneToOne && /* @__PURE__ */ jsx47("div", { className: "ml-1", children: /* @__PURE__ */ jsx47(
4232
4332
  ClientButton_default,
4233
4333
  {
4234
4334
  ButtonType: "Link" /* Link */,
@@ -4243,7 +4343,7 @@ var DataFormChildSection = (props) => {
4243
4343
  var DataFormChildSection_default = DataFormChildSection;
4244
4344
 
4245
4345
  // src/components/dataForm/DataForm.tsx
4246
- import { jsx as jsx47, jsxs as jsxs21 } from "react/jsx-runtime";
4346
+ import { jsx as jsx48, jsxs as jsxs21 } from "react/jsx-runtime";
4247
4347
  var DataForm = (props) => {
4248
4348
  const formRef = useRef2(null);
4249
4349
  console.log(props.dataItem, "dssads");
@@ -4463,19 +4563,19 @@ var DataForm = (props) => {
4463
4563
  return false;
4464
4564
  }
4465
4565
  }
4466
- return /* @__PURE__ */ jsx47(React31.Fragment, { children: /* @__PURE__ */ jsxs21("div", { className: "flex-grow flex flex-col", children: [
4467
- props.title && /* @__PURE__ */ jsx47("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__ */ jsxs21(
4566
+ return /* @__PURE__ */ jsx48(React31.Fragment, { children: /* @__PURE__ */ jsxs21("div", { className: "flex-grow flex flex-col", children: [
4567
+ props.title && /* @__PURE__ */ jsx48("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__ */ jsxs21(
4468
4568
  "div",
4469
4569
  {
4470
4570
  className: "inline-flex items-center gap-2 cursor-pointer",
4471
4571
  onClick: () => window.history.back(),
4472
4572
  children: [
4473
- /* @__PURE__ */ jsx47(Icon_default, { name: "chevronLeft", className: "w-4 h-4 text-primary-800" }),
4474
- /* @__PURE__ */ jsx47("h2", { className: "text-lg font-semibold text-primary-800", children: props.title })
4573
+ /* @__PURE__ */ jsx48(Icon_default, { name: "chevronLeft", className: "w-4 h-4 text-primary-800" }),
4574
+ /* @__PURE__ */ jsx48("h2", { className: "text-lg font-semibold text-primary-800", children: props.title })
4475
4575
  ]
4476
4576
  }
4477
4577
  ) }),
4478
- /* @__PURE__ */ jsx47(
4578
+ /* @__PURE__ */ jsx48(
4479
4579
  "form",
4480
4580
  {
4481
4581
  className: "group space-y-6 pb-6 overflow-y-auto",
@@ -4496,8 +4596,8 @@ var DataForm = (props) => {
4496
4596
  }
4497
4597
  }
4498
4598
  },
4499
- children: /* @__PURE__ */ jsx47("div", { className: "flex flex-col gap-6", children: props.sections?.map((section, sectionIndex) => {
4500
- return /* @__PURE__ */ jsx47(React31.Fragment, { children: !section.isChildSection && /* @__PURE__ */ jsxs21("div", { className: " rounded-b-lg bg-white shadow border-neutral-200 border px-8 py-6 ", children: [
4599
+ children: /* @__PURE__ */ jsx48("div", { className: "flex flex-col gap-6", children: props.sections?.map((section, sectionIndex) => {
4600
+ return /* @__PURE__ */ jsx48(React31.Fragment, { children: !section.isChildSection && /* @__PURE__ */ jsxs21("div", { className: " rounded-b-lg bg-white shadow border-neutral-200 border px-8 py-6 ", children: [
4501
4601
  section.sectionRows?.map(
4502
4602
  (sectionRow, sectionRowIndex) => {
4503
4603
  const elementsCount = sectionRow.elements.length;
@@ -4508,14 +4608,14 @@ var DataForm = (props) => {
4508
4608
  sectionRow.visible
4509
4609
  );
4510
4610
  }
4511
- return /* @__PURE__ */ jsx47(React31.Fragment, { children: isVisible && /* @__PURE__ */ jsx47("div", { className: "lg:flex gap-14 flex-1 mb-4 ", children: sectionRow.elements.map((field, index) => {
4611
+ return /* @__PURE__ */ jsx48(React31.Fragment, { children: isVisible && /* @__PURE__ */ jsx48("div", { className: "lg:flex gap-14 flex-1 mb-4 ", children: sectionRow.elements.map((field, index) => {
4512
4612
  return /* @__PURE__ */ jsxs21(
4513
4613
  "div",
4514
4614
  {
4515
4615
  className: sectionRow.grow ? "grow" : "",
4516
4616
  children: [
4517
- /* @__PURE__ */ jsx47("div", { children: field.controlType }),
4518
- /* @__PURE__ */ jsx47(
4617
+ /* @__PURE__ */ jsx48("div", { children: field.controlType }),
4618
+ /* @__PURE__ */ jsx48(
4519
4619
  InputControl_default,
4520
4620
  {
4521
4621
  name: field.name,
@@ -4545,12 +4645,12 @@ var DataForm = (props) => {
4545
4645
  }) }) }, sectionRowIndex);
4546
4646
  }
4547
4647
  ),
4548
- /* @__PURE__ */ jsx47("div", { children: section.childSections?.map(
4648
+ /* @__PURE__ */ jsx48("div", { children: section.childSections?.map(
4549
4649
  (childSection, childSectionIndex) => {
4550
- return /* @__PURE__ */ jsx47("div", { children: childSection.name && evalutateCondition(
4650
+ return /* @__PURE__ */ jsx48("div", { children: childSection.name && evalutateCondition(
4551
4651
  formState.inputValues,
4552
4652
  childSection.visible
4553
- ) && /* @__PURE__ */ jsx47(
4653
+ ) && /* @__PURE__ */ jsx48(
4554
4654
  DataFormChildSection_default,
4555
4655
  {
4556
4656
  section: childSection,
@@ -4566,7 +4666,7 @@ var DataForm = (props) => {
4566
4666
  }
4567
4667
  ),
4568
4668
  /* @__PURE__ */ jsxs21("div", { className: "flex px-6 py-3 mt-2 mb-2 justify-end items-center gap-5", children: [
4569
- /* @__PURE__ */ jsx47("div", { children: props.additionalActions && /* @__PURE__ */ jsx47(
4669
+ /* @__PURE__ */ jsx48("div", { children: props.additionalActions && /* @__PURE__ */ jsx48(
4570
4670
  Button_default,
4571
4671
  {
4572
4672
  ButtonType: "PrimaryHollow" /* Hollow */,
@@ -4574,7 +4674,7 @@ var DataForm = (props) => {
4574
4674
  children: props.additionalActions.title
4575
4675
  }
4576
4676
  ) }),
4577
- /* @__PURE__ */ jsx47("div", { children: props.onDelete && /* @__PURE__ */ jsx47(
4677
+ /* @__PURE__ */ jsx48("div", { children: props.onDelete && /* @__PURE__ */ jsx48(
4578
4678
  Button_default,
4579
4679
  {
4580
4680
  ButtonType: "PrimaryHollow" /* Hollow */,
@@ -4585,7 +4685,7 @@ var DataForm = (props) => {
4585
4685
  children: "Delete"
4586
4686
  }
4587
4687
  ) }),
4588
- /* @__PURE__ */ jsx47("div", { children: props.onClick && /* @__PURE__ */ jsx47(
4688
+ /* @__PURE__ */ jsx48("div", { children: props.onClick && /* @__PURE__ */ jsx48(
4589
4689
  Button_default,
4590
4690
  {
4591
4691
  onValidate,
@@ -4602,7 +4702,7 @@ var DataForm = (props) => {
4602
4702
  var DataForm_default = DataForm;
4603
4703
 
4604
4704
  // src/components/dataForm/DataFormRenderer.tsx
4605
- import { jsx as jsx48, jsxs as jsxs22 } from "react/jsx-runtime";
4705
+ import { jsx as jsx49, jsxs as jsxs22 } from "react/jsx-runtime";
4606
4706
  function getAction(actions, code) {
4607
4707
  return actions?.find((a) => a.actionCode === code);
4608
4708
  }
@@ -4629,8 +4729,8 @@ var DataFormRenderer = ({
4629
4729
  );
4630
4730
  const hasDataItem = dataItem && Object.keys(dataItem).length > 0;
4631
4731
  return /* @__PURE__ */ jsxs22("div", { className: "flex-grow flex flex-col", children: [
4632
- widgetProps && /* @__PURE__ */ jsx48(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
4633
- /* @__PURE__ */ jsx48(
4732
+ widgetProps && /* @__PURE__ */ jsx49(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
4733
+ /* @__PURE__ */ jsx49(
4634
4734
  DataForm_default,
4635
4735
  {
4636
4736
  title: !isAddPage ? "Edit " + formDefinition.formTitle + "- v2" : "Add " + formDefinition.formTitle + "- v2",