@clyrex-digital/clyrex-controls-dev 0.8.1-dev.20260829045216 → 0.8.1-dev.20260829103635

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
@@ -78,7 +78,8 @@ var ViewControlTypes = {
78
78
  aiGeneratedSummary: "aiGeneratedSummary",
79
79
  booleanView: "booleanView",
80
80
  text: "text",
81
- commentRenderer: "commentRenderer"
81
+ commentRenderer: "commentRenderer",
82
+ avatar: "avatar"
82
83
  };
83
84
  var ViewControlTypes_default = ViewControlTypes;
84
85
 
@@ -416,8 +417,61 @@ var CommentRenderer = dynamic5(() => import("./CommentRendererClient-XPZN5L64.mj
416
417
  });
417
418
  var Commentrenderer_default = CommentRenderer;
418
419
 
419
- // src/components/controls/view/ViewControl.tsx
420
+ // src/components/controls/view/AvatarView.tsx
420
421
  import { jsx as jsx15 } from "react/jsx-runtime";
422
+ var AVATAR_COLORS = [
423
+ "bg-error-strong",
424
+ "bg-accent-base",
425
+ "bg-warning-base",
426
+ "bg-success-base",
427
+ "bg-info-base",
428
+ "bg-primary-base",
429
+ "bg-secondary-base"
430
+ ];
431
+ var getAvatarColor = (text) => {
432
+ let hash = 0;
433
+ for (let i = 0; i < text.length; i += 1) {
434
+ hash = hash * 31 + text.charCodeAt(i) >>> 0;
435
+ }
436
+ return AVATAR_COLORS[hash % AVATAR_COLORS.length];
437
+ };
438
+ var getInitials = (text) => {
439
+ const words = text.trim().split(/\s+/).filter(Boolean);
440
+ if (words.length === 0) {
441
+ return "?";
442
+ }
443
+ if (words.length === 1) {
444
+ return words[0].slice(0, 2).toUpperCase();
445
+ }
446
+ return `${words[0][0]}${words[words.length - 1][0]}`.toUpperCase();
447
+ };
448
+ var AvatarView = (props) => {
449
+ const text = props.value === null || props.value === void 0 ? "" : String(props.value).trim();
450
+ if (!text) {
451
+ return null;
452
+ }
453
+ const size = props.width ?? "1.75rem";
454
+ return /* @__PURE__ */ jsx15(
455
+ "span",
456
+ {
457
+ className: `avatar-view inline-flex flex-shrink-0 items-center justify-center rounded-full font-semibold uppercase select-none overflow-hidden ${getAvatarColor(text)}`,
458
+ title: text,
459
+ "aria-label": text,
460
+ style: {
461
+ width: size,
462
+ height: size,
463
+ fontSize: "0.6875rem",
464
+ letterSpacing: "0.02em",
465
+ lineHeight: 1
466
+ },
467
+ children: getInitials(text)
468
+ }
469
+ );
470
+ };
471
+ var AvatarView_default = AvatarView;
472
+
473
+ // src/components/controls/view/ViewControl.tsx
474
+ import { jsx as jsx16 } from "react/jsx-runtime";
421
475
  var ViewControl = (props) => {
422
476
  const ControlComponents = {
423
477
  [ViewControlTypes_default.lineText]: LineTextView_default,
@@ -445,10 +499,11 @@ var ViewControl = (props) => {
445
499
  [ViewControlTypes_default.aiGeneratedSummary]: AiGeneratedSummary_default,
446
500
  [ViewControlTypes_default.booleanView]: BooleanView_default,
447
501
  [ViewControlTypes_default.text]: LineTextView_default,
448
- [ViewControlTypes_default.commentRenderer]: Commentrenderer_default
502
+ [ViewControlTypes_default.commentRenderer]: Commentrenderer_default,
503
+ [ViewControlTypes_default.avatar]: AvatarView_default
449
504
  };
450
505
  const SelectedControlComponent = props.controlType ? ControlComponents[props.controlType] : void 0;
451
- return /* @__PURE__ */ jsx15(React14.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ jsx15(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
506
+ return /* @__PURE__ */ jsx16(React14.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ jsx16(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
452
507
  };
453
508
  var ViewControl_default = ViewControl;
454
509
 
@@ -459,7 +514,7 @@ import React24 from "react";
459
514
  import React16 from "react";
460
515
 
461
516
  // src/components/pageRenderingEngine/nodes/TextNode.tsx
462
- import { jsx as jsx16, jsxs as jsxs6 } from "react/jsx-runtime";
517
+ import { jsx as jsx17, jsxs as jsxs6 } from "react/jsx-runtime";
463
518
  var TextNode = (props) => {
464
519
  function cssStringToJson(cssString) {
465
520
  const styleObject = {};
@@ -516,24 +571,24 @@ var TextNode = (props) => {
516
571
  function renderWithLineBreaks(text) {
517
572
  return text.split("\n").map((line, index, arr) => /* @__PURE__ */ jsxs6("span", { children: [
518
573
  line,
519
- index < arr.length - 1 && /* @__PURE__ */ jsx16("br", {})
574
+ index < arr.length - 1 && /* @__PURE__ */ jsx17("br", {})
520
575
  ] }, index));
521
576
  }
522
577
  const displayText = props.linkText ? props.linkText : props.node.text;
523
578
  const finalText = props.dataitem && props.linkText ? displayText : props.dataitem ? replacePlaceholders(props.node.text, props.dataitem) : props.node.text;
524
579
  const content = typeof finalText === "string" ? renderWithLineBreaks(finalText) : finalText;
525
- const formattedContent = props.node.format & 64 ? /* @__PURE__ */ jsx16("sup", { children: content }) : props.node.format & 32 ? /* @__PURE__ */ jsx16("sub", { children: content }) : content;
580
+ const formattedContent = props.node.format & 64 ? /* @__PURE__ */ jsx17("sup", { children: content }) : props.node.format & 32 ? /* @__PURE__ */ jsx17("sub", { children: content }) : content;
526
581
  return (
527
582
  // @ts-expect-error custom code
528
- /* @__PURE__ */ jsx16("span", { style: { ...styles }, className: getFormatClass(props.node.format), children: formattedContent })
583
+ /* @__PURE__ */ jsx17("span", { style: { ...styles }, className: getFormatClass(props.node.format), children: formattedContent })
529
584
  );
530
585
  };
531
586
  var TextNode_default = TextNode;
532
587
 
533
588
  // src/components/pageRenderingEngine/nodes/LineBreakNode.tsx
534
- import { jsx as jsx17 } from "react/jsx-runtime";
589
+ import { jsx as jsx18 } from "react/jsx-runtime";
535
590
  var LineBreakNode = () => {
536
- return /* @__PURE__ */ jsx17("div", { className: "py-0.5 lg:py-1.5" });
591
+ return /* @__PURE__ */ jsx18("div", { className: "py-0.5 lg:py-1.5" });
537
592
  };
538
593
  var LineBreakNode_default = LineBreakNode;
539
594
 
@@ -542,7 +597,7 @@ import React15 from "react";
542
597
 
543
598
  // src/components/pageRenderingEngine/nodes/ImageNode.tsx
544
599
  import dynamic6 from "next/dynamic";
545
- import { jsx as jsx18 } from "react/jsx-runtime";
600
+ import { jsx as jsx19 } from "react/jsx-runtime";
546
601
  var HlsPlayer2 = dynamic6(() => import("./HlsPlayer-IW52N5RG.mjs"), { ssr: false });
547
602
  var getNestedValue = (obj, path) => {
548
603
  if (!obj || !path) return void 0;
@@ -575,7 +630,7 @@ var ImageNode = (props) => {
575
630
  assets = [image];
576
631
  }
577
632
  if (assets && assets.length > 0) {
578
- return /* @__PURE__ */ jsx18(
633
+ return /* @__PURE__ */ jsx19(
579
634
  DeviceAssetSelector_default,
580
635
  {
581
636
  device: props.device,
@@ -616,7 +671,7 @@ var ImageNode = (props) => {
616
671
  right: "justify-end"
617
672
  };
618
673
  const isHls = imageUrl.endsWith(".m3u8");
619
- const renderMedia = () => isHls ? /* @__PURE__ */ jsx18(
674
+ const renderMedia = () => isHls ? /* @__PURE__ */ jsx19(
620
675
  HlsPlayer2,
621
676
  {
622
677
  assetUrl: imageUrl,
@@ -629,7 +684,7 @@ var ImageNode = (props) => {
629
684
  apiBaseUrl: props.apiBaseUrl,
630
685
  session: props.session
631
686
  }
632
- ) : /* @__PURE__ */ jsx18(
687
+ ) : /* @__PURE__ */ jsx19(
633
688
  "img",
634
689
  {
635
690
  style: styles,
@@ -642,7 +697,7 @@ var ImageNode = (props) => {
642
697
  }
643
698
  );
644
699
  if (props.node.width) {
645
- return /* @__PURE__ */ jsx18("div", { className: `flex ${FORMAT_CLASSES2[props.node.format] ?? ""}`, children: renderMedia() });
700
+ return /* @__PURE__ */ jsx19("div", { className: `flex ${FORMAT_CLASSES2[props.node.format] ?? ""}`, children: renderMedia() });
646
701
  }
647
702
  return renderMedia();
648
703
  };
@@ -650,7 +705,7 @@ var ImageNode_default = ImageNode;
650
705
 
651
706
  // src/components/pageRenderingEngine/nodes/LinkNode.tsx
652
707
  import dynamic7 from "next/dynamic";
653
- import { Fragment, jsx as jsx19, jsxs as jsxs7 } from "react/jsx-runtime";
708
+ import { Fragment, jsx as jsx20, jsxs as jsxs7 } from "react/jsx-runtime";
654
709
  var LinkNodeButton = dynamic7(() => import("./LinkNodeButton-BEAX4I4C.mjs"), {
655
710
  ssr: false
656
711
  });
@@ -703,13 +758,13 @@ var LinkNode = (props) => {
703
758
  const isButton = node.isButton === true;
704
759
  const renderChildren = () => {
705
760
  if (!node.children || node.children.length === 0) return null;
706
- return /* @__PURE__ */ jsx19(Fragment, { children: node.children.map((childNode, index) => {
761
+ return /* @__PURE__ */ jsx20(Fragment, { children: node.children.map((childNode, index) => {
707
762
  const SelectedNode = NodeTypes2[childNode.type];
708
763
  if (!SelectedNode) {
709
764
  console.warn("Unknown node type:", childNode.type);
710
765
  return null;
711
766
  }
712
- return /* @__PURE__ */ jsx19(React15.Fragment, { children: /* @__PURE__ */ jsx19(
767
+ return /* @__PURE__ */ jsx20(React15.Fragment, { children: /* @__PURE__ */ jsx20(
713
768
  SelectedNode,
714
769
  {
715
770
  node: childNode,
@@ -722,10 +777,10 @@ var LinkNode = (props) => {
722
777
  };
723
778
  const renderFallback = () => {
724
779
  if ((!node.children || node.children.length === 0) && linkText) {
725
- return /* @__PURE__ */ jsx19("span", { children: linkText });
780
+ return /* @__PURE__ */ jsx20("span", { children: linkText });
726
781
  }
727
782
  if ((!node.children || node.children.length === 0) && !linkText) {
728
- return /* @__PURE__ */ jsx19("br", {});
783
+ return /* @__PURE__ */ jsx20("br", {});
729
784
  }
730
785
  return null;
731
786
  };
@@ -764,10 +819,10 @@ var LinkNode = (props) => {
764
819
  var LinkNode_default = LinkNode;
765
820
 
766
821
  // src/components/pageRenderingEngine/nodes/SVGIconNode.tsx
767
- import { jsx as jsx20 } from "react/jsx-runtime";
822
+ import { jsx as jsx21 } from "react/jsx-runtime";
768
823
  var SVGIconNode = ({ node }) => {
769
824
  if (!node?.svgCode) return null;
770
- return /* @__PURE__ */ jsx20(
825
+ return /* @__PURE__ */ jsx21(
771
826
  "span",
772
827
  {
773
828
  style: {
@@ -784,7 +839,7 @@ var SVGIconNode_default = SVGIconNode;
784
839
 
785
840
  // src/components/pageRenderingEngine/nodes/EquationNode.tsx
786
841
  import katex from "katex";
787
- import { jsx as jsx21 } from "react/jsx-runtime";
842
+ import { jsx as jsx22 } from "react/jsx-runtime";
788
843
  var EquationNode = ({ node }) => {
789
844
  const { equation, inline } = node;
790
845
  let html = "";
@@ -799,7 +854,7 @@ var EquationNode = ({ node }) => {
799
854
  });
800
855
  }
801
856
  if (inline) {
802
- return /* @__PURE__ */ jsx21(
857
+ return /* @__PURE__ */ jsx22(
803
858
  "span",
804
859
  {
805
860
  className: "katex-inline",
@@ -807,7 +862,7 @@ var EquationNode = ({ node }) => {
807
862
  }
808
863
  );
809
864
  }
810
- return /* @__PURE__ */ jsx21(
865
+ return /* @__PURE__ */ jsx22(
811
866
  "div",
812
867
  {
813
868
  className: "katex-block my-3 text-center",
@@ -818,7 +873,7 @@ var EquationNode = ({ node }) => {
818
873
  var EquationNode_default = EquationNode;
819
874
 
820
875
  // src/components/pageRenderingEngine/nodes/DatafieldNode.tsx
821
- import { jsx as jsx22 } from "react/jsx-runtime";
876
+ import { jsx as jsx23 } from "react/jsx-runtime";
822
877
  function getNestedProperty(obj, path) {
823
878
  if (!obj || !path) return null;
824
879
  if (path.includes(".")) {
@@ -831,7 +886,7 @@ function getNestedProperty(obj, path) {
831
886
  }
832
887
  const value = obj[path];
833
888
  if (Array.isArray(value)) {
834
- return value.map((item, index) => /* @__PURE__ */ jsx22("div", { children: String(item) }, index));
889
+ return value.map((item, index) => /* @__PURE__ */ jsx23("div", { children: String(item) }, index));
835
890
  }
836
891
  return value;
837
892
  }
@@ -894,7 +949,7 @@ var DatafieldNode = (props) => {
894
949
  const dataType = props.node.dataType;
895
950
  if (isEmptyValue) return null;
896
951
  if (dataType === "rawContent") {
897
- return /* @__PURE__ */ jsx22(
952
+ return /* @__PURE__ */ jsx23(
898
953
  PageBodyRenderer_default,
899
954
  {
900
955
  rawBody: String(value ?? `@databound[${fieldName}]`),
@@ -910,13 +965,13 @@ var DatafieldNode = (props) => {
910
965
  }
911
966
  );
912
967
  }
913
- return /* @__PURE__ */ jsx22(
968
+ return /* @__PURE__ */ jsx23(
914
969
  "span",
915
970
  {
916
971
  className: `datafield-node ${props.node.format < Formats.length ? Formats[props.node.format] : ""}`,
917
972
  style: styles,
918
973
  title,
919
- children: /* @__PURE__ */ jsx22(
974
+ children: /* @__PURE__ */ jsx23(
920
975
  ViewControl_default,
921
976
  {
922
977
  controlType: dataType,
@@ -931,7 +986,7 @@ var DatafieldNode = (props) => {
931
986
  var DatafieldNode_default = DatafieldNode;
932
987
 
933
988
  // src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
934
- import { Fragment as Fragment2, jsx as jsx23, jsxs as jsxs8 } from "react/jsx-runtime";
989
+ import { Fragment as Fragment2, jsx as jsx24, jsxs as jsxs8 } from "react/jsx-runtime";
935
990
  var ParagraphNode = (props) => {
936
991
  const NodeTypes2 = {
937
992
  ["text"]: TextNode_default,
@@ -951,9 +1006,9 @@ var ParagraphNode = (props) => {
951
1006
  const isInlineOnlyParent = props.parentTag === "summary";
952
1007
  const hasChildren = props.node.children && props.node.children.length > 0;
953
1008
  if (isInlineOnlyParent) {
954
- return /* @__PURE__ */ jsx23(Fragment2, { children: hasChildren && props.node.children.map((node, index) => {
1009
+ return /* @__PURE__ */ jsx24(Fragment2, { children: hasChildren && props.node.children.map((node, index) => {
955
1010
  const SelectedNode = NodeTypes2[node.type];
956
- return /* @__PURE__ */ jsx23(React16.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx23(
1011
+ return /* @__PURE__ */ jsx24(React16.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx24(
957
1012
  SelectedNode,
958
1013
  {
959
1014
  node,
@@ -969,7 +1024,7 @@ var ParagraphNode = (props) => {
969
1024
  return /* @__PURE__ */ jsxs8("div", { className: " " + formatClasses, children: [
970
1025
  hasChildren && props.node.children.map((node, index) => {
971
1026
  const SelectedNode = NodeTypes2[node.type];
972
- return /* @__PURE__ */ jsx23(React16.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx23(
1027
+ return /* @__PURE__ */ jsx24(React16.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx24(
973
1028
  SelectedNode,
974
1029
  {
975
1030
  node,
@@ -981,14 +1036,14 @@ var ParagraphNode = (props) => {
981
1036
  }
982
1037
  ) }, index);
983
1038
  }),
984
- !hasChildren && /* @__PURE__ */ jsx23("div", { className: "py-1.5 lg:py-2" })
1039
+ !hasChildren && /* @__PURE__ */ jsx24("div", { className: "py-1.5 lg:py-2" })
985
1040
  ] });
986
1041
  };
987
1042
  var ParagraphNode_default = ParagraphNode;
988
1043
 
989
1044
  // src/components/pageRenderingEngine/nodes/HeadingNode.tsx
990
1045
  import React17 from "react";
991
- import { Fragment as Fragment3, jsx as jsx24 } from "react/jsx-runtime";
1046
+ import { Fragment as Fragment3, jsx as jsx25 } from "react/jsx-runtime";
992
1047
  var HeadingNode = (props) => {
993
1048
  const NodeTypes2 = {
994
1049
  ["text"]: TextNode_default,
@@ -1004,12 +1059,12 @@ var HeadingNode = (props) => {
1004
1059
  {
1005
1060
  }
1006
1061
  const formatClasses = FormatClass[props.node.format] || "";
1007
- return /* @__PURE__ */ jsx24(Fragment3, { children: React17.createElement(
1062
+ return /* @__PURE__ */ jsx25(Fragment3, { children: React17.createElement(
1008
1063
  HeadingTag,
1009
1064
  { className: formatClasses },
1010
1065
  props.node.children && props.node.children.map((childNode, index) => {
1011
1066
  const SelectedNode = NodeTypes2[childNode.type];
1012
- return /* @__PURE__ */ jsx24(React17.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx24(SelectedNode, { node: childNode, dataitem: props.dataitem, session: props.session, apiBaseUrl: props.apiBaseUrl, assetBaseUrl: props.assetBaseUrl, routeParameters: props.routeParameters }) }, index);
1067
+ return /* @__PURE__ */ jsx25(React17.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx25(SelectedNode, { node: childNode, dataitem: props.dataitem, session: props.session, apiBaseUrl: props.apiBaseUrl, assetBaseUrl: props.assetBaseUrl, routeParameters: props.routeParameters }) }, index);
1013
1068
  })
1014
1069
  ) });
1015
1070
  };
@@ -1020,7 +1075,7 @@ import React19 from "react";
1020
1075
 
1021
1076
  // src/components/pageRenderingEngine/nodes/ListItemNode.tsx
1022
1077
  import React18 from "react";
1023
- import { jsx as jsx25 } from "react/jsx-runtime";
1078
+ import { jsx as jsx26 } from "react/jsx-runtime";
1024
1079
  var ListItemNode = (props) => {
1025
1080
  const NodeTypes2 = {
1026
1081
  text: TextNode_default,
@@ -1037,37 +1092,37 @@ var ListItemNode = (props) => {
1037
1092
  liStyle.fontSize = match[1].trim();
1038
1093
  }
1039
1094
  }
1040
- return /* @__PURE__ */ jsx25("li", { style: liStyle, children: props.node.children && props.node.children.map((node, index) => {
1095
+ return /* @__PURE__ */ jsx26("li", { style: liStyle, children: props.node.children && props.node.children.map((node, index) => {
1041
1096
  const SelectedNode = NodeTypes2[node.type];
1042
1097
  if (node.type === "linebreak") {
1043
1098
  if (!foundFirstBreak) {
1044
1099
  foundFirstBreak = true;
1045
- return /* @__PURE__ */ jsx25("div", {}, index);
1100
+ return /* @__PURE__ */ jsx26("div", {}, index);
1046
1101
  } else {
1047
- return /* @__PURE__ */ jsx25("div", { className: "py-1 lg:py-2" }, index);
1102
+ return /* @__PURE__ */ jsx26("div", { className: "py-1 lg:py-2" }, index);
1048
1103
  }
1049
1104
  } else {
1050
1105
  foundFirstBreak = false;
1051
- return /* @__PURE__ */ jsx25(React18.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx25(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
1106
+ return /* @__PURE__ */ jsx26(React18.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx26(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
1052
1107
  }
1053
1108
  }) });
1054
1109
  };
1055
1110
  var ListItemNode_default = ListItemNode;
1056
1111
 
1057
1112
  // src/components/pageRenderingEngine/nodes/ListNode.tsx
1058
- import { jsx as jsx26, jsxs as jsxs9 } from "react/jsx-runtime";
1113
+ import { jsx as jsx27, jsxs as jsxs9 } from "react/jsx-runtime";
1059
1114
  var ListNode = (props) => {
1060
1115
  const NodeTypes2 = {
1061
1116
  listitem: ListItemNode_default
1062
1117
  };
1063
1118
  return /* @__PURE__ */ jsxs9(React19.Fragment, { children: [
1064
- props.node.listType == "bullet" && /* @__PURE__ */ jsx26("ul", { children: props.node.children && props.node.children.map((node, index) => {
1119
+ props.node.listType == "bullet" && /* @__PURE__ */ jsx27("ul", { children: props.node.children && props.node.children.map((node, index) => {
1065
1120
  const SelectedNode = NodeTypes2[node.type];
1066
- return /* @__PURE__ */ jsx26(React19.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx26(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
1121
+ return /* @__PURE__ */ jsx27(React19.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx27(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
1067
1122
  }) }),
1068
- props.node.listType == "number" && /* @__PURE__ */ jsx26("ol", { children: props.node.children && props.node.children.map((node, index) => {
1123
+ props.node.listType == "number" && /* @__PURE__ */ jsx27("ol", { children: props.node.children && props.node.children.map((node, index) => {
1069
1124
  const SelectedNode = NodeTypes2[node.type];
1070
- return /* @__PURE__ */ jsx26(React19.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx26(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
1125
+ return /* @__PURE__ */ jsx27(React19.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx27(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
1071
1126
  }) })
1072
1127
  ] });
1073
1128
  };
@@ -1075,16 +1130,16 @@ var ListNode_default = ListNode;
1075
1130
 
1076
1131
  // src/components/pageRenderingEngine/nodes/QuoteNode.tsx
1077
1132
  import React20 from "react";
1078
- import { jsx as jsx27 } from "react/jsx-runtime";
1133
+ import { jsx as jsx28 } from "react/jsx-runtime";
1079
1134
  var QuoteNode = (props) => {
1080
1135
  const NodeTypes2 = {
1081
1136
  ["text"]: TextNode_default,
1082
1137
  ["linebreak"]: LineBreakNode_default,
1083
1138
  ["link"]: LinkNode_default
1084
1139
  };
1085
- return /* @__PURE__ */ jsx27("blockquote", { children: props.node.children && props.node.children.map((node, index) => {
1140
+ return /* @__PURE__ */ jsx28("blockquote", { children: props.node.children && props.node.children.map((node, index) => {
1086
1141
  const SelectedNode = NodeTypes2[node.type];
1087
- return /* @__PURE__ */ jsx27(React20.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx27(SelectedNode, { node, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
1142
+ return /* @__PURE__ */ jsx28(React20.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx28(SelectedNode, { node, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
1088
1143
  }) });
1089
1144
  };
1090
1145
  var QuoteNode_default = QuoteNode;
@@ -1092,11 +1147,11 @@ var QuoteNode_default = QuoteNode;
1092
1147
  // src/components/pageRenderingEngine/nodes/CodeNode.tsx
1093
1148
  import React21 from "react";
1094
1149
  import dynamic8 from "next/dynamic";
1095
- import { jsx as jsx28, jsxs as jsxs10 } from "react/jsx-runtime";
1150
+ import { jsx as jsx29, jsxs as jsxs10 } from "react/jsx-runtime";
1096
1151
  var CopyButton = dynamic8(() => import("./CopyButton-UPJPMJUB.mjs"), {
1097
1152
  ssr: false,
1098
1153
  // optional: fallback UI while loading
1099
- loading: () => /* @__PURE__ */ jsx28("span", { className: "text-gray-400 text-xs", children: "Copy" })
1154
+ loading: () => /* @__PURE__ */ jsx29("span", { className: "text-gray-400 text-xs", children: "Copy" })
1100
1155
  });
1101
1156
  var CodeNode = (props) => {
1102
1157
  const NodeTypes2 = {
@@ -1112,12 +1167,12 @@ var CodeNode = (props) => {
1112
1167
  }).join("") ?? "";
1113
1168
  return /* @__PURE__ */ jsxs10("div", { children: [
1114
1169
  /* @__PURE__ */ jsxs10("div", { className: "flex items-center relative bg-neutral-strong px-4 py-3 text-xs font-sans justify-between rounded-t-md ", children: [
1115
- /* @__PURE__ */ jsx28("span", { children: "Code Snippet" }),
1116
- /* @__PURE__ */ jsx28(CopyButton, { text: textContent })
1170
+ /* @__PURE__ */ jsx29("span", { children: "Code Snippet" }),
1171
+ /* @__PURE__ */ jsx29(CopyButton, { text: textContent })
1117
1172
  ] }),
1118
- /* @__PURE__ */ jsx28("code", { className: "bg-neutral-soft p-4 text-sm whitespace-pre-wrap border border-2 block", children: props.node.children && props.node.children.map((node, index) => {
1173
+ /* @__PURE__ */ jsx29("code", { className: "bg-neutral-soft p-4 text-sm whitespace-pre-wrap border border-2 block", children: props.node.children && props.node.children.map((node, index) => {
1119
1174
  const SelectedNode = NodeTypes2[node.type];
1120
- return /* @__PURE__ */ jsx28(React21.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx28(
1175
+ return /* @__PURE__ */ jsx29(React21.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx29(
1121
1176
  SelectedNode,
1122
1177
  {
1123
1178
  node,
@@ -1132,15 +1187,15 @@ var CodeNode = (props) => {
1132
1187
  var CodeNode_default = CodeNode;
1133
1188
 
1134
1189
  // src/components/pageRenderingEngine/nodes/HorizontalRuleNode.tsx
1135
- import { jsx as jsx29 } from "react/jsx-runtime";
1190
+ import { jsx as jsx30 } from "react/jsx-runtime";
1136
1191
  var HorizontalRuleNode = () => {
1137
- return /* @__PURE__ */ jsx29("hr", {});
1192
+ return /* @__PURE__ */ jsx30("hr", {});
1138
1193
  };
1139
1194
  var HorizontalRuleNode_default = HorizontalRuleNode;
1140
1195
 
1141
1196
  // src/components/pageRenderingEngine/nodes/WidgetNode.tsx
1142
1197
  import React22 from "react";
1143
- import { Fragment as Fragment4, jsx as jsx30 } from "react/jsx-runtime";
1198
+ import { Fragment as Fragment4, jsx as jsx31 } from "react/jsx-runtime";
1144
1199
  var WidgetNode = (props) => {
1145
1200
  const getWidgetParameters = () => {
1146
1201
  const widgetInputParameters = {
@@ -1204,7 +1259,7 @@ var WidgetNode = (props) => {
1204
1259
  };
1205
1260
  const widgetCode = props.node?.widgetCode;
1206
1261
  if (!widgetCode) {
1207
- return /* @__PURE__ */ jsx30(Fragment4, { children: "Invalid widget" });
1262
+ return /* @__PURE__ */ jsx31(Fragment4, { children: "Invalid widget" });
1208
1263
  }
1209
1264
  const widgetParams = getWidgetParameters();
1210
1265
  const WidgetRenderer = props.widgetRenderer;
@@ -1213,7 +1268,7 @@ var WidgetNode = (props) => {
1213
1268
  }
1214
1269
  return (
1215
1270
  // eslint-disable-next-line react-hooks/static-components
1216
- /* @__PURE__ */ jsx30(React22.Fragment, { children: /* @__PURE__ */ jsx30(
1271
+ /* @__PURE__ */ jsx31(React22.Fragment, { children: /* @__PURE__ */ jsx31(
1217
1272
  WidgetRenderer,
1218
1273
  {
1219
1274
  params: widgetParams,
@@ -1235,7 +1290,7 @@ import React23 from "react";
1235
1290
 
1236
1291
  // src/components/pageRenderingEngine/nodes/EmbedNode.tsx
1237
1292
  import dynamic9 from "next/dynamic";
1238
- import { jsx as jsx31 } from "react/jsx-runtime";
1293
+ import { jsx as jsx32 } from "react/jsx-runtime";
1239
1294
  var IframeClient = dynamic9(() => import("./IframeClient-WF2KLXZB.mjs"), {
1240
1295
  ssr: false
1241
1296
  });
@@ -1248,7 +1303,7 @@ var EmbedNode = (props) => {
1248
1303
  } else {
1249
1304
  src = props.node.embedSrc;
1250
1305
  }
1251
- return /* @__PURE__ */ jsx31("div", { className: "aspect-video", children: src && /* @__PURE__ */ jsx31(IframeClient, { src }) });
1306
+ return /* @__PURE__ */ jsx32("div", { className: "aspect-video", children: src && /* @__PURE__ */ jsx32(IframeClient, { src }) });
1252
1307
  };
1253
1308
  var EmbedNode_default = EmbedNode;
1254
1309
 
@@ -1441,10 +1496,10 @@ var PathUtility = class {
1441
1496
  var PathUtility_default = new PathUtility();
1442
1497
 
1443
1498
  // src/components/NoDataFound.tsx
1444
- import { jsx as jsx32, jsxs as jsxs11 } from "react/jsx-runtime";
1499
+ import { jsx as jsx33, jsxs as jsxs11 } from "react/jsx-runtime";
1445
1500
  var NoDataFound = () => {
1446
1501
  return /* @__PURE__ */ jsxs11("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center bg-neutral-weak", children: [
1447
- /* @__PURE__ */ jsx32("div", { className: "mb-5", children: /* @__PURE__ */ jsx32("div", { className: "mx-auto w-20 h-20 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ jsx32(
1502
+ /* @__PURE__ */ jsx33("div", { className: "mb-5", children: /* @__PURE__ */ jsx33("div", { className: "mx-auto w-20 h-20 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ jsx33(
1448
1503
  "svg",
1449
1504
  {
1450
1505
  className: "w-10 h-10",
@@ -1452,7 +1507,7 @@ var NoDataFound = () => {
1452
1507
  stroke: "currentColor",
1453
1508
  viewBox: "0 0 24 24",
1454
1509
  xmlns: "http://www.w3.org/2000/svg",
1455
- children: /* @__PURE__ */ jsx32(
1510
+ children: /* @__PURE__ */ jsx33(
1456
1511
  "path",
1457
1512
  {
1458
1513
  strokeLinecap: "round",
@@ -1463,15 +1518,15 @@ var NoDataFound = () => {
1463
1518
  )
1464
1519
  }
1465
1520
  ) }) }),
1466
- /* @__PURE__ */ jsx32("h3", { className: "text-lg font-medium mb-2", children: "No data available" }),
1467
- /* @__PURE__ */ jsx32("p", { className: " max-w-sm mb-0", children: "No records found. Data may be empty or not available at the moment." })
1521
+ /* @__PURE__ */ jsx33("h3", { className: "text-lg font-medium mb-2", children: "No data available" }),
1522
+ /* @__PURE__ */ jsx33("p", { className: " max-w-sm mb-0", children: "No records found. Data may be empty or not available at the moment." })
1468
1523
  ] });
1469
1524
  };
1470
1525
  var NoDataFound_default = NoDataFound;
1471
1526
 
1472
1527
  // src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
1473
1528
  import dynamic10 from "next/dynamic";
1474
- import { Fragment as Fragment5, jsx as jsx33, jsxs as jsxs12 } from "react/jsx-runtime";
1529
+ import { Fragment as Fragment5, jsx as jsx34, jsxs as jsxs12 } from "react/jsx-runtime";
1475
1530
  var HlsPlayer3 = dynamic10(() => import("./HlsPlayer-IW52N5RG.mjs"), { ssr: false });
1476
1531
  var deviceToMediaQuery = (device) => {
1477
1532
  switch (device) {
@@ -1628,7 +1683,7 @@ var ImageGalleryNode = (props) => {
1628
1683
  };
1629
1684
  const formatClasses = FormatClass[props.node.format || ""] || "";
1630
1685
  return /* @__PURE__ */ jsxs12(Fragment5, { children: [
1631
- hlsSources.length > 0 && /* @__PURE__ */ jsx33(Fragment5, { children: /* @__PURE__ */ jsx33(
1686
+ hlsSources.length > 0 && /* @__PURE__ */ jsx34(Fragment5, { children: /* @__PURE__ */ jsx34(
1632
1687
  HlsPlayer3,
1633
1688
  {
1634
1689
  sources: hlsSources,
@@ -1643,7 +1698,7 @@ var ImageGalleryNode = (props) => {
1643
1698
  styles: hlsStyles
1644
1699
  }
1645
1700
  ) }),
1646
- (staticFallback || staticSources.length > 0) && /* @__PURE__ */ jsx33(Fragment5, { children: staticFallback ? /* @__PURE__ */ jsxs12("picture", { children: [
1701
+ (staticFallback || staticSources.length > 0) && /* @__PURE__ */ jsx34(Fragment5, { children: staticFallback ? /* @__PURE__ */ jsxs12("picture", { children: [
1647
1702
  DEVICE_ORDER.map((deviceKey) => {
1648
1703
  const match = staticSources.find(
1649
1704
  (img) => img.device === deviceKey
@@ -1659,7 +1714,7 @@ var ImageGalleryNode = (props) => {
1659
1714
  if (!srcUrl) {
1660
1715
  return null;
1661
1716
  }
1662
- return /* @__PURE__ */ jsx33(
1717
+ return /* @__PURE__ */ jsx34(
1663
1718
  "source",
1664
1719
  {
1665
1720
  media: deviceToMediaQuery(match.device),
@@ -1684,7 +1739,7 @@ var ImageGalleryNode = (props) => {
1684
1739
  if (img.borderRadius) {
1685
1740
  styles.borderRadius = img.borderRadius;
1686
1741
  }
1687
- return /* @__PURE__ */ jsx33(
1742
+ return /* @__PURE__ */ jsx34(
1688
1743
  "img",
1689
1744
  {
1690
1745
  loading: "lazy",
@@ -1699,7 +1754,7 @@ var ImageGalleryNode = (props) => {
1699
1754
  })()
1700
1755
  ] }) : (
1701
1756
  /* Case 2: Only device-specific images exist */
1702
- /* @__PURE__ */ jsx33(Fragment5, { children: staticSources.map((img, index) => {
1757
+ /* @__PURE__ */ jsx34(Fragment5, { children: staticSources.map((img, index) => {
1703
1758
  const resolved = resolveImage(img);
1704
1759
  const imageUrl = resolved?.imageUrl;
1705
1760
  if (!imageUrl) {
@@ -1726,7 +1781,7 @@ var ImageGalleryNode = (props) => {
1726
1781
  default:
1727
1782
  display = "block";
1728
1783
  }
1729
- return /* @__PURE__ */ jsx33(
1784
+ return /* @__PURE__ */ jsx34(
1730
1785
  "img",
1731
1786
  {
1732
1787
  loading: "lazy",
@@ -1866,7 +1921,7 @@ var shouldRenderContainer = (node, dataItem, session) => {
1866
1921
  };
1867
1922
 
1868
1923
  // src/components/pageRenderingEngine/nodes/DocumentNode.tsx
1869
- import { Fragment as Fragment6, jsx as jsx34, jsxs as jsxs13 } from "react/jsx-runtime";
1924
+ import { Fragment as Fragment6, jsx as jsx35, jsxs as jsxs13 } from "react/jsx-runtime";
1870
1925
  var getNestedValue5 = (obj, path) => {
1871
1926
  if (!obj || !path) return void 0;
1872
1927
  return path.split(".").reduce((current, key) => {
@@ -1880,14 +1935,14 @@ var PdfIcon = () => /* @__PURE__ */ jsxs13(
1880
1935
  viewBox: "0 0 48 48",
1881
1936
  className: "w-10 h-10",
1882
1937
  children: [
1883
- /* @__PURE__ */ jsx34(
1938
+ /* @__PURE__ */ jsx35(
1884
1939
  "path",
1885
1940
  {
1886
1941
  fill: "#e53935",
1887
1942
  d: "M38,42H10c-2.209,0-4-1.791-4-4V10c0-2.209,1.791-4,4-4h28c2.209,0,4,1.791,4,4v28 C42,40.209,40.209,42,38,42z"
1888
1943
  }
1889
1944
  ),
1890
- /* @__PURE__ */ jsx34(
1945
+ /* @__PURE__ */ jsx35(
1891
1946
  "path",
1892
1947
  {
1893
1948
  fill: "#fff",
@@ -1904,48 +1959,48 @@ var ExcelIcon = () => /* @__PURE__ */ jsxs13(
1904
1959
  viewBox: "0 0 48 48",
1905
1960
  className: "w-10 h-10",
1906
1961
  children: [
1907
- /* @__PURE__ */ jsx34(
1962
+ /* @__PURE__ */ jsx35(
1908
1963
  "path",
1909
1964
  {
1910
1965
  fill: "#169154",
1911
1966
  d: "M29,6H15.744C14.781,6,14,6.781,14,7.744v7.259h15V6z"
1912
1967
  }
1913
1968
  ),
1914
- /* @__PURE__ */ jsx34(
1969
+ /* @__PURE__ */ jsx35(
1915
1970
  "path",
1916
1971
  {
1917
1972
  fill: "#18482a",
1918
1973
  d: "M14,33.054v7.202C14,41.219,14.781,42,15.743,42H29v-8.946H14z"
1919
1974
  }
1920
1975
  ),
1921
- /* @__PURE__ */ jsx34("path", { fill: "#0c8045", d: "M14 15.003H29V24.005000000000003H14z" }),
1922
- /* @__PURE__ */ jsx34("path", { fill: "#17472a", d: "M14 24.005H29V33.055H14z" }),
1976
+ /* @__PURE__ */ jsx35("path", { fill: "#0c8045", d: "M14 15.003H29V24.005000000000003H14z" }),
1977
+ /* @__PURE__ */ jsx35("path", { fill: "#17472a", d: "M14 24.005H29V33.055H14z" }),
1923
1978
  /* @__PURE__ */ jsxs13("g", { children: [
1924
- /* @__PURE__ */ jsx34(
1979
+ /* @__PURE__ */ jsx35(
1925
1980
  "path",
1926
1981
  {
1927
1982
  fill: "#29c27f",
1928
1983
  d: "M42.256,6H29v9.003h15V7.744C44,6.781,43.219,6,42.256,6z"
1929
1984
  }
1930
1985
  ),
1931
- /* @__PURE__ */ jsx34(
1986
+ /* @__PURE__ */ jsx35(
1932
1987
  "path",
1933
1988
  {
1934
1989
  fill: "#27663f",
1935
1990
  d: "M29,33.054V42h13.257C43.219,42,44,41.219,44,40.257v-7.202H29z"
1936
1991
  }
1937
1992
  ),
1938
- /* @__PURE__ */ jsx34("path", { fill: "#19ac65", d: "M29 15.003H44V24.005000000000003H29z" }),
1939
- /* @__PURE__ */ jsx34("path", { fill: "#129652", d: "M29 24.005H44V33.055H29z" })
1993
+ /* @__PURE__ */ jsx35("path", { fill: "#19ac65", d: "M29 15.003H44V24.005000000000003H29z" }),
1994
+ /* @__PURE__ */ jsx35("path", { fill: "#129652", d: "M29 24.005H44V33.055H29z" })
1940
1995
  ] }),
1941
- /* @__PURE__ */ jsx34(
1996
+ /* @__PURE__ */ jsx35(
1942
1997
  "path",
1943
1998
  {
1944
1999
  fill: "#0c7238",
1945
2000
  d: "M22.319,34H5.681C4.753,34,4,33.247,4,32.319V15.681C4,14.753,4.753,14,5.681,14h16.638 C23.247,14,24,14.753,24,15.681v16.638C24,33.247,23.247,34,22.319,34z"
1946
2001
  }
1947
2002
  ),
1948
- /* @__PURE__ */ jsx34(
2003
+ /* @__PURE__ */ jsx35(
1949
2004
  "path",
1950
2005
  {
1951
2006
  fill: "#fff",
@@ -1963,7 +2018,7 @@ var WordIcon = () => /* @__PURE__ */ jsxs13(
1963
2018
  className: "w-10 h-10",
1964
2019
  baseProfile: "basic",
1965
2020
  children: [
1966
- /* @__PURE__ */ jsx34(
2021
+ /* @__PURE__ */ jsx35(
1967
2022
  "path",
1968
2023
  {
1969
2024
  fill: "#283593",
@@ -1981,19 +2036,19 @@ var WordIcon = () => /* @__PURE__ */ jsxs13(
1981
2036
  gradientTransform: "translate(0 -339.89)",
1982
2037
  gradientUnits: "userSpaceOnUse",
1983
2038
  children: [
1984
- /* @__PURE__ */ jsx34("stop", { offset: "0", "stop-color": "#66c0ff" }),
1985
- /* @__PURE__ */ jsx34("stop", { offset: ".26", "stop-color": "#0094f0" })
2039
+ /* @__PURE__ */ jsx35("stop", { offset: "0", "stop-color": "#66c0ff" }),
2040
+ /* @__PURE__ */ jsx35("stop", { offset: ".26", "stop-color": "#0094f0" })
1986
2041
  ]
1987
2042
  }
1988
2043
  ),
1989
- /* @__PURE__ */ jsx34(
2044
+ /* @__PURE__ */ jsx35(
1990
2045
  "path",
1991
2046
  {
1992
2047
  fill: "url(#qh2LT5tehRDFkLLfb-odWa)",
1993
2048
  d: "M9,20.208c0-2.624,2.126-4.75,4.749-4.75h21.857L41,12.778v13.527 C41,28.346,39.346,30,37.306,30H15.332C11.835,30,9,32.836,9,36.333L9,20.208L9,20.208z"
1994
2049
  }
1995
2050
  ),
1996
- /* @__PURE__ */ jsx34(
2051
+ /* @__PURE__ */ jsx35(
1997
2052
  "path",
1998
2053
  {
1999
2054
  fill: "#1e88e5",
@@ -2001,21 +2056,21 @@ var WordIcon = () => /* @__PURE__ */ jsxs13(
2001
2056
  d: "M9,20.208c0-2.624,2.126-4.75,4.749-4.75h21.857L41,12.778v13.527 C41,28.346,39.346,30,37.306,30H15.332C11.835,30,9,32.836,9,36.333L9,20.208L9,20.208z"
2002
2057
  }
2003
2058
  ),
2004
- /* @__PURE__ */ jsx34(
2059
+ /* @__PURE__ */ jsx35(
2005
2060
  "path",
2006
2061
  {
2007
2062
  fill: "#00e5ff",
2008
2063
  d: "M9,10.333C9,6.836,11.835,4,15.332,4h21.975C39.346,4,41,5.654,41,7.694v5.611 C41,15.346,39.346,17,37.306,17H15.332C11.835,17,9,19.836,9,23.333C9,23.333,9,10.333,9,10.333z"
2009
2064
  }
2010
2065
  ),
2011
- /* @__PURE__ */ jsx34(
2066
+ /* @__PURE__ */ jsx35(
2012
2067
  "path",
2013
2068
  {
2014
2069
  fill: "#1565c0",
2015
2070
  d: "M7.5,23h10c1.933,0,3.5,1.567,3.5,3.5v10c0,1.933-1.567,3.5-3.5,3.5h-10C5.567,40,4,38.433,4,36.5 v-10C4,24.567,5.567,23,7.5,23z"
2016
2071
  }
2017
2072
  ),
2018
- /* @__PURE__ */ jsx34(
2073
+ /* @__PURE__ */ jsx35(
2019
2074
  "path",
2020
2075
  {
2021
2076
  fill: "#fff",
@@ -2032,8 +2087,8 @@ var StandardIcon = () => /* @__PURE__ */ jsxs13(
2032
2087
  viewBox: "0 0 48 48",
2033
2088
  className: "w-10 h-10",
2034
2089
  children: [
2035
- /* @__PURE__ */ jsx34("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
2036
- /* @__PURE__ */ jsx34("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" })
2090
+ /* @__PURE__ */ jsx35("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
2091
+ /* @__PURE__ */ jsx35("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" })
2037
2092
  ]
2038
2093
  }
2039
2094
  );
@@ -2044,23 +2099,23 @@ var PowerPointIcon = () => /* @__PURE__ */ jsxs13(
2044
2099
  viewBox: "0 0 48 48",
2045
2100
  className: "w-10 h-10",
2046
2101
  children: [
2047
- /* @__PURE__ */ jsx34(
2102
+ /* @__PURE__ */ jsx35(
2048
2103
  "path",
2049
2104
  {
2050
2105
  fill: "#dc4c2c",
2051
2106
  d: "M8,24c0,9.941,8.059,18,18,18s18-8.059,18-18H26H8z"
2052
2107
  }
2053
2108
  ),
2054
- /* @__PURE__ */ jsx34("path", { fill: "#f7a278", d: "M26,6v18h18C44,14.059,35.941,6,26,6z" }),
2055
- /* @__PURE__ */ jsx34("path", { fill: "#c06346", d: "M26,6C16.059,6,8,14.059,8,24h18V6z" }),
2056
- /* @__PURE__ */ jsx34(
2109
+ /* @__PURE__ */ jsx35("path", { fill: "#f7a278", d: "M26,6v18h18C44,14.059,35.941,6,26,6z" }),
2110
+ /* @__PURE__ */ jsx35("path", { fill: "#c06346", d: "M26,6C16.059,6,8,14.059,8,24h18V6z" }),
2111
+ /* @__PURE__ */ jsx35(
2057
2112
  "path",
2058
2113
  {
2059
2114
  fill: "#9b341f",
2060
2115
  d: "M22.319,34H5.681C4.753,34,4,33.247,4,32.319V15.681C4,14.753,4.753,14,5.681,14h16.638 C23.247,14,24,14.753,24,15.681v16.638C24,33.247,23.247,34,22.319,34z"
2061
2116
  }
2062
2117
  ),
2063
- /* @__PURE__ */ jsx34(
2118
+ /* @__PURE__ */ jsx35(
2064
2119
  "path",
2065
2120
  {
2066
2121
  fill: "#fff",
@@ -2077,9 +2132,9 @@ var TextIcon = () => /* @__PURE__ */ jsxs13(
2077
2132
  viewBox: "0 0 48 48",
2078
2133
  className: "w-10 h-10",
2079
2134
  children: [
2080
- /* @__PURE__ */ jsx34("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
2081
- /* @__PURE__ */ jsx34("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" }),
2082
- /* @__PURE__ */ jsx34(
2135
+ /* @__PURE__ */ jsx35("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
2136
+ /* @__PURE__ */ jsx35("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" }),
2137
+ /* @__PURE__ */ jsx35(
2083
2138
  "path",
2084
2139
  {
2085
2140
  fill: "#1976D2",
@@ -2099,14 +2154,14 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs13(
2099
2154
  version: "1.0",
2100
2155
  className: "w-10 h-10",
2101
2156
  children: [
2102
- /* @__PURE__ */ jsx34("defs", { children: /* @__PURE__ */ jsx34("clipPath", { id: "273d29c8a6", children: /* @__PURE__ */ jsx34(
2157
+ /* @__PURE__ */ jsx35("defs", { children: /* @__PURE__ */ jsx35("clipPath", { id: "273d29c8a6", children: /* @__PURE__ */ jsx35(
2103
2158
  "path",
2104
2159
  {
2105
2160
  d: "M 8.90625 0 L 65.90625 0 L 65.90625 75 L 8.90625 75 Z M 8.90625 0 ",
2106
2161
  "clip-rule": "nonzero"
2107
2162
  }
2108
2163
  ) }) }),
2109
- /* @__PURE__ */ jsx34("g", { "clip-path": "url(#273d29c8a6)", children: /* @__PURE__ */ jsx34(
2164
+ /* @__PURE__ */ jsx35("g", { "clip-path": "url(#273d29c8a6)", children: /* @__PURE__ */ jsx35(
2110
2165
  "path",
2111
2166
  {
2112
2167
  fill: "#ff9100",
@@ -2115,7 +2170,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs13(
2115
2170
  "fill-rule": "nonzero"
2116
2171
  }
2117
2172
  ) }),
2118
- /* @__PURE__ */ jsx34(
2173
+ /* @__PURE__ */ jsx35(
2119
2174
  "path",
2120
2175
  {
2121
2176
  fill: "#fbe9e7",
@@ -2124,7 +2179,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs13(
2124
2179
  "fill-rule": "nonzero"
2125
2180
  }
2126
2181
  ),
2127
- /* @__PURE__ */ jsx34(
2182
+ /* @__PURE__ */ jsx35(
2128
2183
  "path",
2129
2184
  {
2130
2185
  fill: "#ffe0b2",
@@ -2133,7 +2188,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs13(
2133
2188
  "fill-rule": "nonzero"
2134
2189
  }
2135
2190
  ),
2136
- /* @__PURE__ */ jsx34(
2191
+ /* @__PURE__ */ jsx35(
2137
2192
  "path",
2138
2193
  {
2139
2194
  fill: "#ffe0b2",
@@ -2142,7 +2197,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs13(
2142
2197
  "fill-rule": "nonzero"
2143
2198
  }
2144
2199
  ),
2145
- /* @__PURE__ */ jsx34(
2200
+ /* @__PURE__ */ jsx35(
2146
2201
  "path",
2147
2202
  {
2148
2203
  fill: "#ffe0b2",
@@ -2217,8 +2272,8 @@ var DocumentNode = (props) => {
2217
2272
  }
2218
2273
  }
2219
2274
  if (documents.length === 0) {
2220
- return /* @__PURE__ */ jsx34(Fragment6, { children: /* @__PURE__ */ jsxs13("div", { className: "py-4 px-2 bg-neutral-weak border rounded text-center flex flex-col gap-2", children: [
2221
- /* @__PURE__ */ jsx34("div", { className: "mx-auto w-10 h-10 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ jsx34(
2275
+ return /* @__PURE__ */ jsx35(Fragment6, { children: /* @__PURE__ */ jsxs13("div", { className: "py-4 px-2 bg-neutral-weak border rounded text-center flex flex-col gap-2", children: [
2276
+ /* @__PURE__ */ jsx35("div", { className: "mx-auto w-10 h-10 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ jsx35(
2222
2277
  "svg",
2223
2278
  {
2224
2279
  className: "w-5 h-5",
@@ -2226,7 +2281,7 @@ var DocumentNode = (props) => {
2226
2281
  stroke: "currentColor",
2227
2282
  viewBox: "0 0 24 24",
2228
2283
  xmlns: "http://www.w3.org/2000/svg",
2229
- children: /* @__PURE__ */ jsx34(
2284
+ children: /* @__PURE__ */ jsx35(
2230
2285
  "path",
2231
2286
  {
2232
2287
  strokeLinecap: "round",
@@ -2237,11 +2292,11 @@ var DocumentNode = (props) => {
2237
2292
  )
2238
2293
  }
2239
2294
  ) }),
2240
- /* @__PURE__ */ jsx34("div", { className: "text-sm font-medium", children: "No documents found" }),
2241
- /* @__PURE__ */ jsx34("div", { className: "text-xs", children: "No records found. Data may be empty or not available at the moment." })
2295
+ /* @__PURE__ */ jsx35("div", { className: "text-sm font-medium", children: "No documents found" }),
2296
+ /* @__PURE__ */ jsx35("div", { className: "text-xs", children: "No records found. Data may be empty or not available at the moment." })
2242
2297
  ] }) });
2243
2298
  }
2244
- return /* @__PURE__ */ jsx34("div", { className: "", children: documents.map((doc, index) => {
2299
+ return /* @__PURE__ */ jsx35("div", { className: "", children: documents.map((doc, index) => {
2245
2300
  const documentUrl = AssetUtility_default.resolveUrl(
2246
2301
  props.assetBaseUrl,
2247
2302
  doc.assetUrl
@@ -2265,8 +2320,8 @@ var DocumentNode = (props) => {
2265
2320
  className: `flex items-center justify-between py-4 bg-default gap-4 ${index !== 0 ? "border-t" : ""}`,
2266
2321
  children: [
2267
2322
  /* @__PURE__ */ jsxs13("div", { className: "flex items-center space-x-4", children: [
2268
- /* @__PURE__ */ jsx34("div", { className: "flex items-center justify-center p-2 rounded bg-neutral-soft", children: /* @__PURE__ */ jsx34(Icon, {}) }),
2269
- /* @__PURE__ */ jsx34("div", { className: "flex items-baseline space-x-2", children: /* @__PURE__ */ jsx34("h4", { className: "text-base font-semibold", children: documentTitle }) })
2323
+ /* @__PURE__ */ jsx35("div", { className: "flex items-center justify-center p-2 rounded bg-neutral-soft", children: /* @__PURE__ */ jsx35(Icon, {}) }),
2324
+ /* @__PURE__ */ jsx35("div", { className: "flex items-baseline space-x-2", children: /* @__PURE__ */ jsx35("h4", { className: "text-base font-semibold", children: documentTitle }) })
2270
2325
  ] }),
2271
2326
  /* @__PURE__ */ jsxs13(
2272
2327
  "a",
@@ -2284,7 +2339,7 @@ var DocumentNode = (props) => {
2284
2339
  stroke: "currentColor",
2285
2340
  viewBox: "0 0 24 24",
2286
2341
  children: [
2287
- /* @__PURE__ */ jsx34(
2342
+ /* @__PURE__ */ jsx35(
2288
2343
  "path",
2289
2344
  {
2290
2345
  strokeLinecap: "round",
@@ -2293,7 +2348,7 @@ var DocumentNode = (props) => {
2293
2348
  d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"
2294
2349
  }
2295
2350
  ),
2296
- /* @__PURE__ */ jsx34(
2351
+ /* @__PURE__ */ jsx35(
2297
2352
  "path",
2298
2353
  {
2299
2354
  strokeLinecap: "round",
@@ -2319,13 +2374,13 @@ var DocumentNode_default = DocumentNode;
2319
2374
 
2320
2375
  // src/components/pageRenderingEngine/nodes/GoogleMapNode.tsx
2321
2376
  import dynamic11 from "next/dynamic";
2322
- import { jsx as jsx35 } from "react/jsx-runtime";
2377
+ import { jsx as jsx36 } from "react/jsx-runtime";
2323
2378
  var IframeClient2 = dynamic11(() => import("./IframeClient-WF2KLXZB.mjs"), {
2324
2379
  ssr: false
2325
2380
  });
2326
2381
  var GoogleMapNode = (props) => {
2327
2382
  let src = props.node.embedUrl;
2328
- return /* @__PURE__ */ jsx35("div", { className: "google-map-container", children: src && /* @__PURE__ */ jsx35(
2383
+ return /* @__PURE__ */ jsx36("div", { className: "google-map-container", children: src && /* @__PURE__ */ jsx36(
2329
2384
  IframeClient2,
2330
2385
  {
2331
2386
  src,
@@ -2337,7 +2392,7 @@ var GoogleMapNode = (props) => {
2337
2392
  var GoogleMapNode_default = GoogleMapNode;
2338
2393
 
2339
2394
  // src/components/pageRenderingEngine/nodes/DivContainer.tsx
2340
- import { jsx as jsx36, jsxs as jsxs14 } from "react/jsx-runtime";
2395
+ import { jsx as jsx37, jsxs as jsxs14 } from "react/jsx-runtime";
2341
2396
  var Pagination = dynamic12(() => import("./Pagination-T7Z2NXKO.mjs"), { ssr: true });
2342
2397
  var DataBindingControls = dynamic12(() => import("./DataBindingControls-JLAO3NJL.mjs"), {
2343
2398
  ssr: true
@@ -2596,7 +2651,7 @@ var DivContainer = async (props) => {
2596
2651
  response = await serviceClient.get(endpoint);
2597
2652
  result = response?.result;
2598
2653
  if (dataBindingProperties.showNoResultsMessage && (result === void 0 || result.length == 0)) {
2599
- return /* @__PURE__ */ jsx36(NoDataFound_default, {});
2654
+ return /* @__PURE__ */ jsx37(NoDataFound_default, {});
2600
2655
  }
2601
2656
  if (dataBindingProperties.childCollectionName && props.dataitem) {
2602
2657
  childCollectionData = getNestedValue6(
@@ -2616,7 +2671,7 @@ var DivContainer = async (props) => {
2616
2671
  }
2617
2672
  const SelectedNode = NodeTypes2[node.type];
2618
2673
  if (!SelectedNode) return null;
2619
- return /* @__PURE__ */ jsx36(React23.Fragment, { children: /* @__PURE__ */ jsx36(
2674
+ return /* @__PURE__ */ jsx37(React23.Fragment, { children: /* @__PURE__ */ jsx37(
2620
2675
  SelectedNode,
2621
2676
  {
2622
2677
  node,
@@ -2753,7 +2808,7 @@ var DivContainer = async (props) => {
2753
2808
  dataBindingProperties?.showFacets || dataBindingProperties?.showSortOptions || dataBindingProperties?.showSearchBar
2754
2809
  );
2755
2810
  const WrapperComponent = Wrapper;
2756
- const renderedContainer = /* @__PURE__ */ jsx36(
2811
+ const renderedContainer = /* @__PURE__ */ jsx37(
2757
2812
  WrapperComponent,
2758
2813
  {
2759
2814
  id: guid,
@@ -2767,11 +2822,11 @@ var DivContainer = async (props) => {
2767
2822
  item,
2768
2823
  idx,
2769
2824
  props.href ? void 0 : item?.links?.view
2770
- )?.map((child, i) => /* @__PURE__ */ jsx36(React23.Fragment, { children: child }, i)) : renderChildren(props.node.children, props, item, idx)
2825
+ )?.map((child, i) => /* @__PURE__ */ jsx37(React23.Fragment, { children: child }, i)) : renderChildren(props.node.children, props, item, idx)
2771
2826
  )
2772
2827
  }
2773
2828
  );
2774
- const paginationControl = dataBindingProperties?.enablePagination ? /* @__PURE__ */ jsx36(
2829
+ const paginationControl = dataBindingProperties?.enablePagination ? /* @__PURE__ */ jsx37(
2775
2830
  Pagination,
2776
2831
  {
2777
2832
  path: props.path,
@@ -2780,14 +2835,14 @@ var DivContainer = async (props) => {
2780
2835
  }
2781
2836
  ) : null;
2782
2837
  return /* @__PURE__ */ jsxs14(React23.Fragment, { children: [
2783
- /* @__PURE__ */ jsx36(
2838
+ /* @__PURE__ */ jsx37(
2784
2839
  "style",
2785
2840
  {
2786
2841
  dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS }
2787
2842
  }
2788
2843
  ),
2789
2844
  showDataBindingControls ? /* @__PURE__ */ jsxs14(React23.Fragment, { children: [
2790
- /* @__PURE__ */ jsx36(
2845
+ /* @__PURE__ */ jsx37(
2791
2846
  DataBindingControls,
2792
2847
  {
2793
2848
  mode: "toolbar",
@@ -2809,8 +2864,8 @@ var DivContainer = async (props) => {
2809
2864
  paginationControl
2810
2865
  ] }),
2811
2866
  dataBindingProperties?.showFacets && /* @__PURE__ */ jsxs14("aside", { className: "border bg-default p-3 lg:sticky lg:top-[90px] lg:self-start", children: [
2812
- /* @__PURE__ */ jsx36("h2", { className: "mb-2 text-lg font-semibold", children: "Filters" }),
2813
- /* @__PURE__ */ jsx36(
2867
+ /* @__PURE__ */ jsx37("h2", { className: "mb-2 text-lg font-semibold", children: "Filters" }),
2868
+ /* @__PURE__ */ jsx37(
2814
2869
  DataBindingControls,
2815
2870
  {
2816
2871
  mode: "facets",
@@ -2826,14 +2881,14 @@ var DivContainer = async (props) => {
2826
2881
  )
2827
2882
  ] }) : /* @__PURE__ */ jsxs14(React23.Fragment, { children: [
2828
2883
  renderedContainer,
2829
- paginationControl && /* @__PURE__ */ jsx36("div", { children: paginationControl })
2884
+ paginationControl && /* @__PURE__ */ jsx37("div", { children: paginationControl })
2830
2885
  ] })
2831
2886
  ] });
2832
2887
  };
2833
2888
  var DivContainer_default = DivContainer;
2834
2889
 
2835
2890
  // src/components/pageRenderingEngine/PageBodyRenderer.tsx
2836
- import { jsx as jsx37 } from "react/jsx-runtime";
2891
+ import { jsx as jsx38 } from "react/jsx-runtime";
2837
2892
  var NodeTypes = {
2838
2893
  ["paragraph"]: ParagraphNode_default,
2839
2894
  ["heading"]: HeadingNode_default,
@@ -2871,14 +2926,14 @@ var PageBodyRenderer = (props) => {
2871
2926
  }
2872
2927
  return true;
2873
2928
  };
2874
- return /* @__PURE__ */ jsx37(React24.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
2929
+ return /* @__PURE__ */ jsx38(React24.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
2875
2930
  {
2876
2931
  }
2877
2932
  const SelectedNode = NodeTypes[node.type];
2878
2933
  if (!shouldRenderNode(node)) {
2879
2934
  return null;
2880
2935
  }
2881
- return /* @__PURE__ */ jsx37(React24.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx37(React24.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ jsx37(React24.Fragment, { children: /* @__PURE__ */ jsx37(
2936
+ return /* @__PURE__ */ jsx38(React24.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx38(React24.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ jsx38(React24.Fragment, { children: /* @__PURE__ */ jsx38(
2882
2937
  SelectedNode,
2883
2938
  {
2884
2939
  node,
@@ -2894,7 +2949,7 @@ var PageBodyRenderer = (props) => {
2894
2949
  device: props.device,
2895
2950
  widgetRenderer: props.widgetRenderer
2896
2951
  }
2897
- ) }) : /* @__PURE__ */ jsx37(React24.Fragment, { children: /* @__PURE__ */ jsx37(
2952
+ ) }) : /* @__PURE__ */ jsx38(React24.Fragment, { children: /* @__PURE__ */ jsx38(
2898
2953
  SelectedNode,
2899
2954
  {
2900
2955
  node,
@@ -2964,7 +3019,7 @@ function EnterAnimationHydrator() {
2964
3019
 
2965
3020
  // src/components/Toast.tsx
2966
3021
  import { useCallback, useEffect as useEffect2, useRef, useState } from "react";
2967
- import { Fragment as Fragment7, jsx as jsx38, jsxs as jsxs15 } from "react/jsx-runtime";
3022
+ import { Fragment as Fragment7, jsx as jsx39, jsxs as jsxs15 } from "react/jsx-runtime";
2968
3023
  var Toast = () => {
2969
3024
  const [showToast, setShowToast] = useState(false);
2970
3025
  const [message, setMessage] = useState("");
@@ -2998,8 +3053,8 @@ var Toast = () => {
2998
3053
  });
2999
3054
  };
3000
3055
  }, [closeToast, showMessage]);
3001
- return /* @__PURE__ */ jsx38(Fragment7, { children: showToast && /* @__PURE__ */ jsx38("div", { className: "fixed top-2 flex justify-center w-1/2 max-w-xl left-1/2 -translate-x-1/2", style: { zIndex: 1e3 }, children: /* @__PURE__ */ jsxs15("div", { className: `w-full items-center flex justify-between p-3 rounded-md relative shadow border bg-${messageType}-soft`, children: [
3002
- /* @__PURE__ */ jsx38(
3056
+ return /* @__PURE__ */ jsx39(Fragment7, { children: showToast && /* @__PURE__ */ jsx39("div", { className: "fixed top-2 flex justify-center w-1/2 max-w-xl left-1/2 -translate-x-1/2", style: { zIndex: 1e3 }, children: /* @__PURE__ */ jsxs15("div", { className: `w-full items-center flex justify-between p-3 rounded-md relative shadow border bg-${messageType}-soft`, children: [
3057
+ /* @__PURE__ */ jsx39(
3003
3058
  "span",
3004
3059
  {
3005
3060
  className: "font-medium text-inherit text-sm",
@@ -3007,7 +3062,7 @@ var Toast = () => {
3007
3062
  children: message
3008
3063
  }
3009
3064
  ),
3010
- /* @__PURE__ */ jsx38("button", { className: "absolute right-2 top-2 ml-2 focus:outline-none", onClick: closeToast, children: /* @__PURE__ */ jsx38(
3065
+ /* @__PURE__ */ jsx39("button", { className: "absolute right-2 top-2 ml-2 focus:outline-none", onClick: closeToast, children: /* @__PURE__ */ jsx39(
3011
3066
  "svg",
3012
3067
  {
3013
3068
  xmlns: "http://www.w3.org/2000/svg",
@@ -3015,7 +3070,7 @@ var Toast = () => {
3015
3070
  fill: "none",
3016
3071
  viewBox: "0 0 24 24",
3017
3072
  stroke: "currentColor",
3018
- children: /* @__PURE__ */ jsx38("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M6 18L18 6M6 6l12 12" })
3073
+ children: /* @__PURE__ */ jsx39("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M6 18L18 6M6 6l12 12" })
3019
3074
  }
3020
3075
  ) })
3021
3076
  ] }) }) });
@@ -3025,7 +3080,7 @@ var Toast_default = Toast;
3025
3080
  // src/components/NavigationTabsV2.tsx
3026
3081
  import Link2 from "next/link";
3027
3082
  import { usePathname } from "next/navigation";
3028
- import { jsx as jsx39 } from "react/jsx-runtime";
3083
+ import { jsx as jsx40 } from "react/jsx-runtime";
3029
3084
  function resolveRoutePlaceholders(route, params) {
3030
3085
  return route.replace(/\{([^}]+)\}/g, (match, key) => {
3031
3086
  const value = params[key];
@@ -3050,8 +3105,8 @@ var NavigationTabsV2 = ({ tabs, params = {} }) => {
3050
3105
  isActive: tab.isActive
3051
3106
  })) || [];
3052
3107
  if (mappedTabs.length === 0) return null;
3053
- return /* @__PURE__ */ jsx39("div", { className: "flex border-b bg-white rounded-t mb-3", children: mappedTabs.map(({ tabTitle, landingPageUrl, isActive }) => {
3054
- return /* @__PURE__ */ jsx39(Link2, { href: landingPageUrl, className: "-mb-px", children: /* @__PURE__ */ jsx39(
3108
+ return /* @__PURE__ */ jsx40("div", { className: "flex border-b bg-white rounded-t mb-3", children: mappedTabs.map(({ tabTitle, landingPageUrl, isActive }) => {
3109
+ return /* @__PURE__ */ jsx40(Link2, { href: landingPageUrl, className: "-mb-px", children: /* @__PURE__ */ jsx40(
3055
3110
  "div",
3056
3111
  {
3057
3112
  className: `text-sm font-medium border-b-2 px-6 py-2 transition
@@ -3069,46 +3124,46 @@ import { useRouter } from "next/navigation";
3069
3124
 
3070
3125
  // src/components/dataForm/NoContentView.tsx
3071
3126
  import React26 from "react";
3072
- import { jsx as jsx40 } from "react/jsx-runtime";
3127
+ import { jsx as jsx41 } from "react/jsx-runtime";
3073
3128
  var NoContentView = (props) => {
3074
- return /* @__PURE__ */ jsx40(React26.Fragment, { children: props.isDataFound === false && props.children });
3129
+ return /* @__PURE__ */ jsx41(React26.Fragment, { children: props.isDataFound === false && props.children });
3075
3130
  };
3076
3131
  var NoContentView_default = NoContentView;
3077
3132
 
3078
3133
  // src/components/dataForm/ContentView.tsx
3079
3134
  import React27 from "react";
3080
- import { jsx as jsx41, jsxs as jsxs16 } from "react/jsx-runtime";
3135
+ import { jsx as jsx42, jsxs as jsxs16 } from "react/jsx-runtime";
3081
3136
  var ContentView = (props) => {
3082
3137
  return /* @__PURE__ */ jsxs16(React27.Fragment, { children: [
3083
- props.isDataFound == null && /* @__PURE__ */ jsx41("div", { className: "", children: /* @__PURE__ */ jsxs16("div", { className: "bg-gray-200 rounded-md p-4 animate-pulse", children: [
3138
+ props.isDataFound == null && /* @__PURE__ */ jsx42("div", { className: "", children: /* @__PURE__ */ jsxs16("div", { className: "bg-gray-200 rounded-md p-4 animate-pulse", children: [
3084
3139
  /* @__PURE__ */ jsxs16("div", { className: "flex items-center mb-4", children: [
3085
- /* @__PURE__ */ jsx41("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
3140
+ /* @__PURE__ */ jsx42("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
3086
3141
  /* @__PURE__ */ jsxs16("div", { className: "ml-2", children: [
3087
- /* @__PURE__ */ jsx41("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
3088
- /* @__PURE__ */ jsx41("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
3142
+ /* @__PURE__ */ jsx42("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
3143
+ /* @__PURE__ */ jsx42("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
3089
3144
  ] })
3090
3145
  ] }),
3091
3146
  /* @__PURE__ */ jsxs16("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
3092
3147
  /* @__PURE__ */ jsxs16("div", { className: "animate-pulse", children: [
3093
- /* @__PURE__ */ jsx41("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
3094
- /* @__PURE__ */ jsx41("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
3095
- /* @__PURE__ */ jsx41("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
3096
- /* @__PURE__ */ jsx41("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
3097
- /* @__PURE__ */ jsx41("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
3148
+ /* @__PURE__ */ jsx42("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
3149
+ /* @__PURE__ */ jsx42("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
3150
+ /* @__PURE__ */ jsx42("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
3151
+ /* @__PURE__ */ jsx42("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
3152
+ /* @__PURE__ */ jsx42("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
3098
3153
  ] }),
3099
3154
  /* @__PURE__ */ jsxs16("div", { className: "animate-pulse", children: [
3100
- /* @__PURE__ */ jsx41("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
3101
- /* @__PURE__ */ jsx41("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
3102
- /* @__PURE__ */ jsx41("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
3103
- /* @__PURE__ */ jsx41("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
3104
- /* @__PURE__ */ jsx41("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
3155
+ /* @__PURE__ */ jsx42("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
3156
+ /* @__PURE__ */ jsx42("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
3157
+ /* @__PURE__ */ jsx42("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
3158
+ /* @__PURE__ */ jsx42("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
3159
+ /* @__PURE__ */ jsx42("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
3105
3160
  ] }),
3106
3161
  /* @__PURE__ */ jsxs16("div", { className: "animate-pulse", children: [
3107
- /* @__PURE__ */ jsx41("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
3108
- /* @__PURE__ */ jsx41("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
3109
- /* @__PURE__ */ jsx41("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
3110
- /* @__PURE__ */ jsx41("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
3111
- /* @__PURE__ */ jsx41("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
3162
+ /* @__PURE__ */ jsx42("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
3163
+ /* @__PURE__ */ jsx42("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
3164
+ /* @__PURE__ */ jsx42("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
3165
+ /* @__PURE__ */ jsx42("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
3166
+ /* @__PURE__ */ jsx42("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
3112
3167
  ] })
3113
3168
  ] })
3114
3169
  ] }) }),
@@ -3162,7 +3217,7 @@ function FormReducer(state, action) {
3162
3217
  var FormReducer_default = FormReducer;
3163
3218
 
3164
3219
  // src/components/dataForm/DataList.tsx
3165
- import { Fragment as Fragment8, jsx as jsx42, jsxs as jsxs17 } from "react/jsx-runtime";
3220
+ import { Fragment as Fragment8, jsx as jsx43, jsxs as jsxs17 } from "react/jsx-runtime";
3166
3221
  var DataList = (props) => {
3167
3222
  const router = useRouter();
3168
3223
  let builder = new OdataBuilder(props.path);
@@ -3203,7 +3258,7 @@ var DataList = (props) => {
3203
3258
  if (path.includes(".")) {
3204
3259
  return path.split(".").reduce((prev, curr) => prev ? prev[curr] : null, obj);
3205
3260
  } else if (Array.isArray(obj[path])) {
3206
- return obj[path].map((item, index) => /* @__PURE__ */ jsx42("div", { children: item }, index));
3261
+ return obj[path].map((item, index) => /* @__PURE__ */ jsx43("div", { children: item }, index));
3207
3262
  } else {
3208
3263
  return obj[path];
3209
3264
  }
@@ -3285,30 +3340,30 @@ var DataList = (props) => {
3285
3340
  const renderPageNumbers = () => {
3286
3341
  if (pages <= 10) {
3287
3342
  return Array.from({ length: pages }, (_, index) => index + 1).map(
3288
- (page) => /* @__PURE__ */ jsx42(React28.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx42(
3343
+ (page) => /* @__PURE__ */ jsx43(React28.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx43(
3289
3344
  Hyperlink,
3290
3345
  {
3291
3346
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
3292
3347
  href: builder.getNewPageUrl(page),
3293
3348
  children: page
3294
3349
  }
3295
- ) : /* @__PURE__ */ jsx42("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)
3350
+ ) : /* @__PURE__ */ jsx43("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)
3296
3351
  );
3297
3352
  } else {
3298
3353
  const showFirstPages = activePageNumber <= 5;
3299
3354
  const showLastPages = activePageNumber > pages - 5;
3300
3355
  if (showFirstPages) {
3301
3356
  return /* @__PURE__ */ jsxs17(Fragment8, { children: [
3302
- Array.from({ length: 8 }, (_, index) => index + 1).map((page) => /* @__PURE__ */ jsx42(React28.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx42(
3357
+ Array.from({ length: 8 }, (_, index) => index + 1).map((page) => /* @__PURE__ */ jsx43(React28.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx43(
3303
3358
  Hyperlink,
3304
3359
  {
3305
3360
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
3306
3361
  href: builder.getNewPageUrl(page),
3307
3362
  children: page
3308
3363
  }
3309
- ) : /* @__PURE__ */ jsx42("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)),
3310
- /* @__PURE__ */ jsx42("span", { className: "px-2 py-1", children: "..." }),
3311
- /* @__PURE__ */ jsx42(
3364
+ ) : /* @__PURE__ */ jsx43("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)),
3365
+ /* @__PURE__ */ jsx43("span", { className: "px-2 py-1", children: "..." }),
3366
+ /* @__PURE__ */ jsx43(
3312
3367
  Hyperlink,
3313
3368
  {
3314
3369
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -3316,7 +3371,7 @@ var DataList = (props) => {
3316
3371
  children: pages - 1
3317
3372
  }
3318
3373
  ),
3319
- /* @__PURE__ */ jsx42(
3374
+ /* @__PURE__ */ jsx43(
3320
3375
  Hyperlink,
3321
3376
  {
3322
3377
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -3324,7 +3379,7 @@ var DataList = (props) => {
3324
3379
  children: pages
3325
3380
  }
3326
3381
  ),
3327
- /* @__PURE__ */ jsx42("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs17(
3382
+ /* @__PURE__ */ jsx43("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs17(
3328
3383
  "select",
3329
3384
  {
3330
3385
  className: " py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
@@ -3336,18 +3391,18 @@ var DataList = (props) => {
3336
3391
  }
3337
3392
  },
3338
3393
  children: [
3339
- /* @__PURE__ */ jsx42("option", { className: "", value: "", children: "Jump to" }),
3394
+ /* @__PURE__ */ jsx43("option", { className: "", value: "", children: "Jump to" }),
3340
3395
  Array.from(
3341
3396
  { length: Math.max(0, pages - 10) },
3342
3397
  (_, index) => index + 9
3343
- ).map((page) => /* @__PURE__ */ jsx42("option", { value: page, children: page }, page))
3398
+ ).map((page) => /* @__PURE__ */ jsx43("option", { value: page, children: page }, page))
3344
3399
  ]
3345
3400
  }
3346
3401
  ) })
3347
3402
  ] });
3348
3403
  } else if (showLastPages) {
3349
3404
  return /* @__PURE__ */ jsxs17(Fragment8, { children: [
3350
- /* @__PURE__ */ jsx42(
3405
+ /* @__PURE__ */ jsx43(
3351
3406
  Hyperlink,
3352
3407
  {
3353
3408
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -3355,7 +3410,7 @@ var DataList = (props) => {
3355
3410
  children: "1"
3356
3411
  }
3357
3412
  ),
3358
- /* @__PURE__ */ jsx42(
3413
+ /* @__PURE__ */ jsx43(
3359
3414
  Hyperlink,
3360
3415
  {
3361
3416
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -3363,21 +3418,21 @@ var DataList = (props) => {
3363
3418
  children: "2"
3364
3419
  }
3365
3420
  ),
3366
- /* @__PURE__ */ jsx42("span", { className: "px-2 py-1", children: "..." }),
3421
+ /* @__PURE__ */ jsx43("span", { className: "px-2 py-1", children: "..." }),
3367
3422
  Array.from({ length: 8 }, (_, index) => pages - 7 + index).map(
3368
- (page) => /* @__PURE__ */ jsx42(React28.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx42(
3423
+ (page) => /* @__PURE__ */ jsx43(React28.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx43(
3369
3424
  Hyperlink,
3370
3425
  {
3371
3426
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
3372
3427
  href: builder.getNewPageUrl(page),
3373
3428
  children: page
3374
3429
  }
3375
- ) : /* @__PURE__ */ jsx42("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)
3430
+ ) : /* @__PURE__ */ jsx43("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)
3376
3431
  )
3377
3432
  ] });
3378
3433
  } else {
3379
3434
  return /* @__PURE__ */ jsxs17(Fragment8, { children: [
3380
- /* @__PURE__ */ jsx42(
3435
+ /* @__PURE__ */ jsx43(
3381
3436
  Hyperlink,
3382
3437
  {
3383
3438
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -3385,7 +3440,7 @@ var DataList = (props) => {
3385
3440
  children: "1"
3386
3441
  }
3387
3442
  ),
3388
- /* @__PURE__ */ jsx42(
3443
+ /* @__PURE__ */ jsx43(
3389
3444
  Hyperlink,
3390
3445
  {
3391
3446
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -3393,20 +3448,20 @@ var DataList = (props) => {
3393
3448
  children: "2"
3394
3449
  }
3395
3450
  ),
3396
- /* @__PURE__ */ jsx42("span", { className: "px-2 py-1", children: "..." }),
3451
+ /* @__PURE__ */ jsx43("span", { className: "px-2 py-1", children: "..." }),
3397
3452
  Array.from(
3398
3453
  { length: 5 },
3399
3454
  (_, index) => activePageNumber - 2 + index
3400
- ).map((page) => /* @__PURE__ */ jsx42(React28.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx42(
3455
+ ).map((page) => /* @__PURE__ */ jsx43(React28.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx43(
3401
3456
  Hyperlink,
3402
3457
  {
3403
3458
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
3404
3459
  href: builder.getNewPageUrl(page),
3405
3460
  children: page
3406
3461
  }
3407
- ) : /* @__PURE__ */ jsx42("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)),
3408
- /* @__PURE__ */ jsx42("span", { className: "px-2 py-1", children: "..." }),
3409
- /* @__PURE__ */ jsx42(
3462
+ ) : /* @__PURE__ */ jsx43("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)),
3463
+ /* @__PURE__ */ jsx43("span", { className: "px-2 py-1", children: "..." }),
3464
+ /* @__PURE__ */ jsx43(
3410
3465
  Hyperlink,
3411
3466
  {
3412
3467
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -3414,7 +3469,7 @@ var DataList = (props) => {
3414
3469
  children: pages - 1
3415
3470
  }
3416
3471
  ),
3417
- /* @__PURE__ */ jsx42(
3472
+ /* @__PURE__ */ jsx43(
3418
3473
  Hyperlink,
3419
3474
  {
3420
3475
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -3422,7 +3477,7 @@ var DataList = (props) => {
3422
3477
  children: pages
3423
3478
  }
3424
3479
  ),
3425
- /* @__PURE__ */ jsx42("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs17(
3480
+ /* @__PURE__ */ jsx43("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs17(
3426
3481
  "select",
3427
3482
  {
3428
3483
  className: "px-2 py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
@@ -3434,8 +3489,8 @@ var DataList = (props) => {
3434
3489
  }
3435
3490
  },
3436
3491
  children: [
3437
- /* @__PURE__ */ jsx42("option", { value: "", children: "Jump to" }),
3438
- Array.from({ length: pages - 4 }, (_, index) => index + 3).filter((page) => page > 2 && page < pages - 1).map((page) => /* @__PURE__ */ jsx42("option", { value: page, children: page }, page))
3492
+ /* @__PURE__ */ jsx43("option", { value: "", children: "Jump to" }),
3493
+ Array.from({ length: pages - 4 }, (_, index) => index + 3).filter((page) => page > 2 && page < pages - 1).map((page) => /* @__PURE__ */ jsx43("option", { value: page, children: page }, page))
3439
3494
  ]
3440
3495
  }
3441
3496
  ) })
@@ -3450,9 +3505,9 @@ var DataList = (props) => {
3450
3505
  {
3451
3506
  className: `flex justify-between items-center bg-white pl-6 pr-2 h-14 mb-3 shadow-sm rounded-md sticky top-0`,
3452
3507
  children: [
3453
- props.title ? /* @__PURE__ */ jsx42("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ jsx42("h2", { className: "text-lg font-semibold text-black-800", children: props.title }) }) : /* @__PURE__ */ jsx42("div", {}),
3508
+ props.title ? /* @__PURE__ */ jsx43("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ jsx43("h2", { className: "text-lg font-semibold text-black-800", children: props.title }) }) : /* @__PURE__ */ jsx43("div", {}),
3454
3509
  /* @__PURE__ */ jsxs17("div", { className: "flex items-center gap-3", children: [
3455
- props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ jsx42(
3510
+ props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ jsx43(
3456
3511
  InputControl_default,
3457
3512
  {
3458
3513
  name: "Search_input",
@@ -3464,7 +3519,7 @@ var DataList = (props) => {
3464
3519
  }
3465
3520
  }
3466
3521
  ),
3467
- props.filters && props.filters.map((filter) => /* @__PURE__ */ jsx42(
3522
+ props.filters && props.filters.map((filter) => /* @__PURE__ */ jsx43(
3468
3523
  InputControl_default,
3469
3524
  {
3470
3525
  name: filter.name,
@@ -3486,8 +3541,8 @@ var DataList = (props) => {
3486
3541
  linkType: "Primary" /* Solid */,
3487
3542
  href: props.addLinkHref,
3488
3543
  children: [
3489
- /* @__PURE__ */ jsx42(Icon_default, { name: "plus", className: "w-4 h-4" }),
3490
- /* @__PURE__ */ jsx42("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
3544
+ /* @__PURE__ */ jsx43(Icon_default, { name: "plus", className: "w-4 h-4" }),
3545
+ /* @__PURE__ */ jsx43("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
3491
3546
  ]
3492
3547
  }
3493
3548
  )
@@ -3495,8 +3550,8 @@ var DataList = (props) => {
3495
3550
  ]
3496
3551
  }
3497
3552
  ),
3498
- /* @__PURE__ */ jsx42("div", { className: "flex-1 overflow-y-auto justify-end bg-white rounded shadow h-[calc(100vh-14rem)]", children: /* @__PURE__ */ jsxs17("table", { className: "w-full divide-y divide-gray-200", children: [
3499
- /* @__PURE__ */ jsx42("thead", { className: "bg-gray-50 sticky top-0", children: /* @__PURE__ */ jsxs17("tr", { children: [
3553
+ /* @__PURE__ */ jsx43("div", { className: "flex-1 overflow-y-auto justify-end bg-white rounded shadow h-[calc(100vh-14rem)]", children: /* @__PURE__ */ jsxs17("table", { className: "w-full divide-y divide-gray-200", children: [
3554
+ /* @__PURE__ */ jsx43("thead", { className: "bg-gray-50 sticky top-0", children: /* @__PURE__ */ jsxs17("tr", { children: [
3500
3555
  props?.columns?.map((column) => {
3501
3556
  let url = builder.getNewOrderByUrl(column.name);
3502
3557
  let icon = "chevronUpDown";
@@ -3507,18 +3562,18 @@ var DataList = (props) => {
3507
3562
  icon = "chevronUp";
3508
3563
  url = builder.getNewOrderByUrl(column.name + " desc");
3509
3564
  }
3510
- return /* @__PURE__ */ jsx42(
3565
+ return /* @__PURE__ */ jsx43(
3511
3566
  "th",
3512
3567
  {
3513
3568
  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" : ""),
3514
- children: /* @__PURE__ */ jsx42(
3569
+ children: /* @__PURE__ */ jsx43(
3515
3570
  Hyperlink,
3516
3571
  {
3517
3572
  href: column.enableSorting ? url : void 0,
3518
3573
  className: "!text-neutral-contrast ",
3519
3574
  children: /* @__PURE__ */ jsxs17("span", { className: "flex items-center space-x-1", children: [
3520
- /* @__PURE__ */ jsx42("span", { className: "text-black", children: column.label }),
3521
- column.enableSorting && /* @__PURE__ */ jsx42(Icon_default, { className: "w-4 h-4", name: icon })
3575
+ /* @__PURE__ */ jsx43("span", { className: "text-black", children: column.label }),
3576
+ column.enableSorting && /* @__PURE__ */ jsx43(Icon_default, { className: "w-4 h-4", name: icon })
3522
3577
  ] })
3523
3578
  }
3524
3579
  )
@@ -3526,25 +3581,25 @@ var DataList = (props) => {
3526
3581
  column.name
3527
3582
  );
3528
3583
  }),
3529
- props.onQuickView && /* @__PURE__ */ jsx42("th", { className: "px-6 py-3 text-right font-medium bg-neutral-soft w-32 text-black", children: "Action" })
3584
+ props.onQuickView && /* @__PURE__ */ jsx43("th", { className: "px-6 py-3 text-right font-medium bg-neutral-soft w-32 text-black", children: "Action" })
3530
3585
  ] }) }),
3531
- /* @__PURE__ */ jsx42("tbody", { className: "divide-y divide-gray-200 ", children: props.dataset?.result?.map((dataitem, index) => {
3586
+ /* @__PURE__ */ jsx43("tbody", { className: "divide-y divide-gray-200 ", children: props.dataset?.result?.map((dataitem, index) => {
3532
3587
  let validityClass = "";
3533
3588
  if (props.recordValidityColumnName && getNestedProperty2(dataitem, props.recordValidityColumnName) == false) {
3534
3589
  validityClass = "bg-alert-200";
3535
3590
  }
3536
3591
  return /* @__PURE__ */ jsxs17("tr", { className: validityClass, children: [
3537
3592
  props?.columns?.map((column, colindex) => {
3538
- return /* @__PURE__ */ jsx42(React28.Fragment, { children: /* @__PURE__ */ jsx42(
3593
+ return /* @__PURE__ */ jsx43(React28.Fragment, { children: /* @__PURE__ */ jsx43(
3539
3594
  "td",
3540
3595
  {
3541
3596
  className: "px-6 py-2 whitespace-normal " + (column.controlType == ViewControlTypes_default.money ? "" : ""),
3542
- children: column.addhref === true ? /* @__PURE__ */ jsx42(
3597
+ children: column.addhref === true ? /* @__PURE__ */ jsx43(
3543
3598
  Hyperlink,
3544
3599
  {
3545
3600
  className: "",
3546
3601
  href: `https://${dataitem[column.name]}`,
3547
- children: /* @__PURE__ */ jsx42(
3602
+ children: /* @__PURE__ */ jsx43(
3548
3603
  ViewControl_default,
3549
3604
  {
3550
3605
  controlType: column.controlType,
@@ -3557,11 +3612,11 @@ var DataList = (props) => {
3557
3612
  }
3558
3613
  )
3559
3614
  }
3560
- ) : column.showAsLink ? /* @__PURE__ */ jsx42(
3615
+ ) : column.showAsLink ? /* @__PURE__ */ jsx43(
3561
3616
  Hyperlink,
3562
3617
  {
3563
3618
  href: props.path + dataitem[props.columns[0].name] + "/" + (dataitem.linkUrlSegment ?? column.linkUrlSegment),
3564
- children: /* @__PURE__ */ jsx42(
3619
+ children: /* @__PURE__ */ jsx43(
3565
3620
  ViewControl_default,
3566
3621
  {
3567
3622
  controlType: column.controlType,
@@ -3571,7 +3626,7 @@ var DataList = (props) => {
3571
3626
  }
3572
3627
  )
3573
3628
  }
3574
- ) : /* @__PURE__ */ jsx42(
3629
+ ) : /* @__PURE__ */ jsx43(
3575
3630
  ViewControl_default,
3576
3631
  {
3577
3632
  controlType: column.controlType,
@@ -3583,7 +3638,7 @@ var DataList = (props) => {
3583
3638
  }
3584
3639
  ) }, colindex);
3585
3640
  }),
3586
- props.onQuickView && /* @__PURE__ */ jsx42("td", { className: "px-6 py-2 text-right whitespace-nowrap", children: /* @__PURE__ */ jsxs17(
3641
+ props.onQuickView && /* @__PURE__ */ jsx43("td", { className: "px-6 py-2 text-right whitespace-nowrap", children: /* @__PURE__ */ jsxs17(
3587
3642
  "button",
3588
3643
  {
3589
3644
  type: "button",
@@ -3604,22 +3659,22 @@ var DataList = (props) => {
3604
3659
  strokeLinecap: "round",
3605
3660
  strokeLinejoin: "round",
3606
3661
  children: [
3607
- /* @__PURE__ */ jsx42("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }),
3608
- /* @__PURE__ */ jsx42("circle", { cx: "12", cy: "12", r: "3" })
3662
+ /* @__PURE__ */ jsx43("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }),
3663
+ /* @__PURE__ */ jsx43("circle", { cx: "12", cy: "12", r: "3" })
3609
3664
  ]
3610
3665
  }
3611
3666
  ),
3612
- /* @__PURE__ */ jsx42("span", { children: props.quickViewLabel || "Quick View" })
3667
+ /* @__PURE__ */ jsx43("span", { children: props.quickViewLabel || "Quick View" })
3613
3668
  ]
3614
3669
  }
3615
3670
  ) })
3616
3671
  ] }, index);
3617
3672
  }) })
3618
3673
  ] }) }),
3619
- /* @__PURE__ */ jsx42("div", { className: "pt-4 border-t border-t-gray-50 sticky bottom-0 h-11 mt-2 ", children: /* @__PURE__ */ jsxs17("div", { className: "flex items-center justify-between", children: [
3620
- /* @__PURE__ */ jsx42("div", { className: "text-gray-700", children: label }),
3674
+ /* @__PURE__ */ jsx43("div", { className: "pt-4 border-t border-t-gray-50 sticky bottom-0 h-11 mt-2 ", children: /* @__PURE__ */ jsxs17("div", { className: "flex items-center justify-between", children: [
3675
+ /* @__PURE__ */ jsx43("div", { className: "text-gray-700", children: label }),
3621
3676
  /* @__PURE__ */ jsxs17("div", { className: "flex space-x-2 items-center", children: [
3622
- activePageNumber > 1 && /* @__PURE__ */ jsx42(
3677
+ activePageNumber > 1 && /* @__PURE__ */ jsx43(
3623
3678
  Hyperlink,
3624
3679
  {
3625
3680
  className: "px-3 py-1 rounded-l-md border border-gray-300 bg-white text-gray-500 hover:bg-gray-200",
@@ -3627,9 +3682,9 @@ var DataList = (props) => {
3627
3682
  children: "Prev"
3628
3683
  }
3629
3684
  ),
3630
- activePageNumber <= 1 && /* @__PURE__ */ jsx42("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" }),
3685
+ activePageNumber <= 1 && /* @__PURE__ */ jsx43("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" }),
3631
3686
  renderPageNumbers(),
3632
- activePageNumber < pages && /* @__PURE__ */ jsx42(
3687
+ activePageNumber < pages && /* @__PURE__ */ jsx43(
3633
3688
  Hyperlink,
3634
3689
  {
3635
3690
  className: "px-3 py-1 rounded-r-md border border-gray-300 bg-white text-gray-500 hover:bg-gray-200",
@@ -3637,7 +3692,7 @@ var DataList = (props) => {
3637
3692
  children: "Next"
3638
3693
  }
3639
3694
  ),
3640
- activePageNumber >= pages && /* @__PURE__ */ jsx42("div", { className: "px-3 py-1 rounded-r-md border border-gray-300 bg-gray-200 text-gray-500", children: "Next" })
3695
+ activePageNumber >= pages && /* @__PURE__ */ jsx43("div", { className: "px-3 py-1 rounded-r-md border border-gray-300 bg-gray-200 text-gray-500", children: "Next" })
3641
3696
  ] })
3642
3697
  ] }) })
3643
3698
  ] }),
@@ -3647,9 +3702,9 @@ var DataList = (props) => {
3647
3702
  {
3648
3703
  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`,
3649
3704
  children: [
3650
- props.title ? /* @__PURE__ */ jsx42("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ jsx42("h2", { className: "text-lg font-semibold text-black", children: props.title }) }) : /* @__PURE__ */ jsx42("div", {}),
3705
+ props.title ? /* @__PURE__ */ jsx43("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ jsx43("h2", { className: "text-lg font-semibold text-black", children: props.title }) }) : /* @__PURE__ */ jsx43("div", {}),
3651
3706
  /* @__PURE__ */ jsxs17("div", { className: "flex items-center gap-3", children: [
3652
- props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ jsx42(
3707
+ props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ jsx43(
3653
3708
  InputControl_default,
3654
3709
  {
3655
3710
  name: "Search_input",
@@ -3661,7 +3716,7 @@ var DataList = (props) => {
3661
3716
  }
3662
3717
  }
3663
3718
  ),
3664
- props.filters && props.filters.map((filter) => /* @__PURE__ */ jsx42(
3719
+ props.filters && props.filters.map((filter) => /* @__PURE__ */ jsx43(
3665
3720
  InputControl_default,
3666
3721
  {
3667
3722
  name: filter.name,
@@ -3683,8 +3738,8 @@ var DataList = (props) => {
3683
3738
  linkType: "Primary" /* Solid */,
3684
3739
  href: props.addLinkHref,
3685
3740
  children: [
3686
- /* @__PURE__ */ jsx42(Icon_default, { name: "plus", className: "w-4 h-4" }),
3687
- /* @__PURE__ */ jsx42("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
3741
+ /* @__PURE__ */ jsx43(Icon_default, { name: "plus", className: "w-4 h-4" }),
3742
+ /* @__PURE__ */ jsx43("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
3688
3743
  ]
3689
3744
  }
3690
3745
  )
@@ -3693,7 +3748,7 @@ var DataList = (props) => {
3693
3748
  }
3694
3749
  ),
3695
3750
  /* @__PURE__ */ jsxs17("div", { className: "flex-grow overflow-y-auto justify-end bg-white rounded shadow h-[75vh]", children: [
3696
- /* @__PURE__ */ jsx42("div", { children: /* @__PURE__ */ jsx42("table", { className: "w-full divide-y divide-gray-200", children: /* @__PURE__ */ jsx42("thead", { className: "bg-gray-50", children: /* @__PURE__ */ jsx42("tr", { children: props?.columns?.map((column) => {
3751
+ /* @__PURE__ */ jsx43("div", { children: /* @__PURE__ */ jsx43("table", { className: "w-full divide-y divide-gray-200", children: /* @__PURE__ */ jsx43("thead", { className: "bg-gray-50", children: /* @__PURE__ */ jsx43("tr", { children: props?.columns?.map((column) => {
3697
3752
  let url = builder.getNewOrderByUrl(column.name);
3698
3753
  let icon = "chevronUpDown";
3699
3754
  if (orderBy.includes(`${column.name} desc`)) {
@@ -3703,18 +3758,18 @@ var DataList = (props) => {
3703
3758
  icon = "chevronUp";
3704
3759
  url = builder.getNewOrderByUrl(column.name + " desc");
3705
3760
  }
3706
- return /* @__PURE__ */ jsx42(
3761
+ return /* @__PURE__ */ jsx43(
3707
3762
  "th",
3708
3763
  {
3709
3764
  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" : ""),
3710
- children: /* @__PURE__ */ jsx42(
3765
+ children: /* @__PURE__ */ jsx43(
3711
3766
  Hyperlink,
3712
3767
  {
3713
3768
  href: column.enableSorting ? url : void 0,
3714
3769
  className: "text-body-950",
3715
3770
  children: /* @__PURE__ */ jsxs17("span", { className: "flex items-center space-x-1", children: [
3716
- /* @__PURE__ */ jsx42("span", { children: column.label }),
3717
- column.enableSorting && /* @__PURE__ */ jsx42(Icon_default, { className: "w-4 h-4", name: icon })
3771
+ /* @__PURE__ */ jsx43("span", { children: column.label }),
3772
+ column.enableSorting && /* @__PURE__ */ jsx43(Icon_default, { className: "w-4 h-4", name: icon })
3718
3773
  ] })
3719
3774
  }
3720
3775
  )
@@ -3722,7 +3777,7 @@ var DataList = (props) => {
3722
3777
  column.name
3723
3778
  );
3724
3779
  }) }) }) }) }),
3725
- /* @__PURE__ */ jsx42("div", { className: "w-full text-center bg-transparent pt-5", children: "There are no entries in the table at the moment." })
3780
+ /* @__PURE__ */ jsx43("div", { className: "w-full text-center bg-transparent pt-5", children: "There are no entries in the table at the moment." })
3726
3781
  ] })
3727
3782
  ] })
3728
3783
  ] });
@@ -3732,7 +3787,7 @@ var DataList_default = DataList;
3732
3787
  // src/components/dataForm/DataListRenderer.tsx
3733
3788
  import React29, { useState as useState3, useEffect as useEffect4 } from "react";
3734
3789
  import { usePathname as usePathname2 } from "next/navigation";
3735
- import { jsx as jsx43, jsxs as jsxs18 } from "react/jsx-runtime";
3790
+ import { jsx as jsx44, jsxs as jsxs18 } from "react/jsx-runtime";
3736
3791
  var viewControlMap = {
3737
3792
  number: ViewControlTypes.number,
3738
3793
  lineText: ViewControlTypes.lineText,
@@ -3832,8 +3887,8 @@ var DataListRenderer = ({
3832
3887
  // tabs={resolvedTabs}
3833
3888
  // params={(widgetProps?.params ?? params) as Record<string, any>}
3834
3889
  // />
3835
- /* @__PURE__ */ jsx43(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
3836
- /* @__PURE__ */ jsx43(
3890
+ /* @__PURE__ */ jsx44(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
3891
+ /* @__PURE__ */ jsx44(
3837
3892
  DataList_default,
3838
3893
  {
3839
3894
  addLinkHref,
@@ -3878,7 +3933,7 @@ var FORM_CHILD_ONE_TO_ONE_UPDATE = "FORM_CHILD_ONE_TO_ONE_UPDATE";
3878
3933
  var FORM_CHILD_ROW_ADD = "FORM_CHILD_ROW_ADD";
3879
3934
 
3880
3935
  // src/components/dataForm/DataFormChildSection.tsx
3881
- import { jsx as jsx44, jsxs as jsxs19 } from "react/jsx-runtime";
3936
+ import { jsx as jsx45, jsxs as jsxs19 } from "react/jsx-runtime";
3882
3937
  var DataFormChildSection = (props) => {
3883
3938
  const { section } = props;
3884
3939
  const isOneToOne = section.relationshipType === "one-to-one";
@@ -3946,14 +4001,14 @@ var DataFormChildSection = (props) => {
3946
4001
  childItemsToRender,
3947
4002
  allChildItems: childItems
3948
4003
  });
3949
- return /* @__PURE__ */ jsx44(React30.Fragment, { children: /* @__PURE__ */ jsxs19("div", { className: "rounded border-neutral-200 border px-6 py-4 mb-2", children: [
3950
- section.sectionTitle && /* @__PURE__ */ jsx44("div", { className: "mb-4 text-lg font-medium text-body-950", children: section.sectionTitle }),
3951
- /* @__PURE__ */ jsx44("div", { className: "flex-grow flex flex-col justify-between overflow-y-auto", children: /* @__PURE__ */ jsxs19("div", { className: "flex flex-col justify-between gap-2", children: [
3952
- /* @__PURE__ */ jsx44("div", { children: /* @__PURE__ */ jsxs19("table", { className: "w-full border-separate divide-y divide-gray-200", children: [
3953
- (!isOneToOne || childItemsToRender.length > 0) && /* @__PURE__ */ jsx44("thead", { className: "", children: section.sectionRows.map((sectionRow, sectionRowIndex) => {
4004
+ return /* @__PURE__ */ jsx45(React30.Fragment, { children: /* @__PURE__ */ jsxs19("div", { className: "rounded border-neutral-200 border px-6 py-4 mb-2", children: [
4005
+ section.sectionTitle && /* @__PURE__ */ jsx45("div", { className: "mb-4 text-lg font-medium text-body-950", children: section.sectionTitle }),
4006
+ /* @__PURE__ */ jsx45("div", { className: "flex-grow flex flex-col justify-between overflow-y-auto", children: /* @__PURE__ */ jsxs19("div", { className: "flex flex-col justify-between gap-2", children: [
4007
+ /* @__PURE__ */ jsx45("div", { children: /* @__PURE__ */ jsxs19("table", { className: "w-full border-separate divide-y divide-gray-200", children: [
4008
+ (!isOneToOne || childItemsToRender.length > 0) && /* @__PURE__ */ jsx45("thead", { className: "", children: section.sectionRows.map((sectionRow, sectionRowIndex) => {
3954
4009
  return /* @__PURE__ */ jsxs19("tr", { className: "", children: [
3955
4010
  sectionRow.elements.map((field, index) => {
3956
- return /* @__PURE__ */ jsx44(
4011
+ return /* @__PURE__ */ jsx45(
3957
4012
  "th",
3958
4013
  {
3959
4014
  className: "py-3 font-normal text-left",
@@ -3962,13 +4017,13 @@ var DataFormChildSection = (props) => {
3962
4017
  field.name
3963
4018
  );
3964
4019
  }),
3965
- !section.readonly && !isOneToOne && /* @__PURE__ */ jsx44("th", { className: "py-3 font-normal text-left", children: "Actions" })
4020
+ !section.readonly && !isOneToOne && /* @__PURE__ */ jsx45("th", { className: "py-3 font-normal text-left", children: "Actions" })
3966
4021
  ] }, sectionRowIndex);
3967
4022
  }) }),
3968
- /* @__PURE__ */ jsx44("tbody", { className: "divide-y divide-gray-200", children: childItemsToRender.map((visibleItem, filteredIndex) => {
4023
+ /* @__PURE__ */ jsx45("tbody", { className: "divide-y divide-gray-200", children: childItemsToRender.map((visibleItem, filteredIndex) => {
3969
4024
  const { item, originalIndex } = visibleItem;
3970
4025
  const rowKey = originalIndex;
3971
- return /* @__PURE__ */ jsx44(React30.Fragment, { children: section.sectionRows.map(
4026
+ return /* @__PURE__ */ jsx45(React30.Fragment, { children: section.sectionRows.map(
3972
4027
  (sectionRow, sectionRowIndex) => {
3973
4028
  return /* @__PURE__ */ jsxs19(
3974
4029
  "tr",
@@ -3976,7 +4031,7 @@ var DataFormChildSection = (props) => {
3976
4031
  className: "",
3977
4032
  children: [
3978
4033
  sectionRow.elements.map((field, index) => {
3979
- return /* @__PURE__ */ jsx44("td", { children: /* @__PURE__ */ jsx44("div", { className: "flex-1", children: /* @__PURE__ */ jsx44("div", { className: "w-11/12", children: /* @__PURE__ */ jsx44(
4034
+ return /* @__PURE__ */ jsx45("td", { children: /* @__PURE__ */ jsx45("div", { className: "flex-1", children: /* @__PURE__ */ jsx45("div", { className: "w-11/12", children: /* @__PURE__ */ jsx45(
3980
4035
  InputControl_default,
3981
4036
  {
3982
4037
  index: filteredIndex,
@@ -3996,7 +4051,7 @@ var DataFormChildSection = (props) => {
3996
4051
  }
3997
4052
  ) }) }) }, field.name);
3998
4053
  }),
3999
- !section.readonly && !isOneToOne && /* @__PURE__ */ jsx44("td", { children: /* @__PURE__ */ jsx44(
4054
+ !section.readonly && !isOneToOne && /* @__PURE__ */ jsx45("td", { children: /* @__PURE__ */ jsx45(
4000
4055
  ClientButton_default,
4001
4056
  {
4002
4057
  ButtonType: StyleTypes2.Hollow,
@@ -4005,7 +4060,7 @@ var DataFormChildSection = (props) => {
4005
4060
  },
4006
4061
  dataRole: "delete",
4007
4062
  tabIndex: -1,
4008
- children: /* @__PURE__ */ jsx44(
4063
+ children: /* @__PURE__ */ jsx45(
4009
4064
  Icon_default,
4010
4065
  {
4011
4066
  className: "w-4 h-4",
@@ -4022,7 +4077,7 @@ var DataFormChildSection = (props) => {
4022
4077
  ) }, rowKey);
4023
4078
  }) })
4024
4079
  ] }) }),
4025
- !section.readonly && !isOneToOne && /* @__PURE__ */ jsx44("div", { className: "ml-1", children: /* @__PURE__ */ jsx44(
4080
+ !section.readonly && !isOneToOne && /* @__PURE__ */ jsx45("div", { className: "ml-1", children: /* @__PURE__ */ jsx45(
4026
4081
  ClientButton_default,
4027
4082
  {
4028
4083
  ButtonType: "Link" /* Link */,
@@ -4037,7 +4092,7 @@ var DataFormChildSection = (props) => {
4037
4092
  var DataFormChildSection_default = DataFormChildSection;
4038
4093
 
4039
4094
  // src/components/dataForm/DataForm.tsx
4040
- import { jsx as jsx45, jsxs as jsxs20 } from "react/jsx-runtime";
4095
+ import { jsx as jsx46, jsxs as jsxs20 } from "react/jsx-runtime";
4041
4096
  var DataForm = (props) => {
4042
4097
  const formRef = useRef2(null);
4043
4098
  console.log(props.dataItem, "dssads");
@@ -4257,19 +4312,19 @@ var DataForm = (props) => {
4257
4312
  return false;
4258
4313
  }
4259
4314
  }
4260
- return /* @__PURE__ */ jsx45(React31.Fragment, { children: /* @__PURE__ */ jsxs20("div", { className: "flex-grow flex flex-col", children: [
4261
- props.title && /* @__PURE__ */ jsx45("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__ */ jsxs20(
4315
+ return /* @__PURE__ */ jsx46(React31.Fragment, { children: /* @__PURE__ */ jsxs20("div", { className: "flex-grow flex flex-col", children: [
4316
+ props.title && /* @__PURE__ */ jsx46("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__ */ jsxs20(
4262
4317
  "div",
4263
4318
  {
4264
4319
  className: "inline-flex items-center gap-2 cursor-pointer",
4265
4320
  onClick: () => window.history.back(),
4266
4321
  children: [
4267
- /* @__PURE__ */ jsx45(Icon_default, { name: "chevronLeft", className: "w-4 h-4 text-primary-800" }),
4268
- /* @__PURE__ */ jsx45("h2", { className: "text-lg font-semibold text-primary-800", children: props.title })
4322
+ /* @__PURE__ */ jsx46(Icon_default, { name: "chevronLeft", className: "w-4 h-4 text-primary-800" }),
4323
+ /* @__PURE__ */ jsx46("h2", { className: "text-lg font-semibold text-primary-800", children: props.title })
4269
4324
  ]
4270
4325
  }
4271
4326
  ) }),
4272
- /* @__PURE__ */ jsx45(
4327
+ /* @__PURE__ */ jsx46(
4273
4328
  "form",
4274
4329
  {
4275
4330
  className: "group space-y-6 pb-6 overflow-y-auto",
@@ -4290,8 +4345,8 @@ var DataForm = (props) => {
4290
4345
  }
4291
4346
  }
4292
4347
  },
4293
- children: /* @__PURE__ */ jsx45("div", { className: "flex flex-col gap-6", children: props.sections?.map((section, sectionIndex) => {
4294
- return /* @__PURE__ */ jsx45(React31.Fragment, { children: !section.isChildSection && /* @__PURE__ */ jsxs20("div", { className: " rounded-b-lg bg-white shadow border-neutral-200 border px-8 py-6 ", children: [
4348
+ children: /* @__PURE__ */ jsx46("div", { className: "flex flex-col gap-6", children: props.sections?.map((section, sectionIndex) => {
4349
+ return /* @__PURE__ */ jsx46(React31.Fragment, { children: !section.isChildSection && /* @__PURE__ */ jsxs20("div", { className: " rounded-b-lg bg-white shadow border-neutral-200 border px-8 py-6 ", children: [
4295
4350
  section.sectionRows?.map(
4296
4351
  (sectionRow, sectionRowIndex) => {
4297
4352
  const elementsCount = sectionRow.elements.length;
@@ -4302,14 +4357,14 @@ var DataForm = (props) => {
4302
4357
  sectionRow.visible
4303
4358
  );
4304
4359
  }
4305
- return /* @__PURE__ */ jsx45(React31.Fragment, { children: isVisible && /* @__PURE__ */ jsx45("div", { className: "lg:flex gap-14 flex-1 mb-4 ", children: sectionRow.elements.map((field, index) => {
4360
+ return /* @__PURE__ */ jsx46(React31.Fragment, { children: isVisible && /* @__PURE__ */ jsx46("div", { className: "lg:flex gap-14 flex-1 mb-4 ", children: sectionRow.elements.map((field, index) => {
4306
4361
  return /* @__PURE__ */ jsxs20(
4307
4362
  "div",
4308
4363
  {
4309
4364
  className: sectionRow.grow ? "grow" : "",
4310
4365
  children: [
4311
- /* @__PURE__ */ jsx45("div", { children: field.controlType }),
4312
- /* @__PURE__ */ jsx45(
4366
+ /* @__PURE__ */ jsx46("div", { children: field.controlType }),
4367
+ /* @__PURE__ */ jsx46(
4313
4368
  InputControl_default,
4314
4369
  {
4315
4370
  name: field.name,
@@ -4339,12 +4394,12 @@ var DataForm = (props) => {
4339
4394
  }) }) }, sectionRowIndex);
4340
4395
  }
4341
4396
  ),
4342
- /* @__PURE__ */ jsx45("div", { children: section.childSections?.map(
4397
+ /* @__PURE__ */ jsx46("div", { children: section.childSections?.map(
4343
4398
  (childSection, childSectionIndex) => {
4344
- return /* @__PURE__ */ jsx45("div", { children: childSection.name && evalutateCondition(
4399
+ return /* @__PURE__ */ jsx46("div", { children: childSection.name && evalutateCondition(
4345
4400
  formState.inputValues,
4346
4401
  childSection.visible
4347
- ) && /* @__PURE__ */ jsx45(
4402
+ ) && /* @__PURE__ */ jsx46(
4348
4403
  DataFormChildSection_default,
4349
4404
  {
4350
4405
  section: childSection,
@@ -4360,7 +4415,7 @@ var DataForm = (props) => {
4360
4415
  }
4361
4416
  ),
4362
4417
  /* @__PURE__ */ jsxs20("div", { className: "flex px-6 py-3 mt-2 mb-2 justify-end items-center gap-5", children: [
4363
- /* @__PURE__ */ jsx45("div", { children: props.additionalActions && /* @__PURE__ */ jsx45(
4418
+ /* @__PURE__ */ jsx46("div", { children: props.additionalActions && /* @__PURE__ */ jsx46(
4364
4419
  Button_default,
4365
4420
  {
4366
4421
  ButtonType: "PrimaryHollow" /* Hollow */,
@@ -4368,7 +4423,7 @@ var DataForm = (props) => {
4368
4423
  children: props.additionalActions.title
4369
4424
  }
4370
4425
  ) }),
4371
- /* @__PURE__ */ jsx45("div", { children: props.onDelete && /* @__PURE__ */ jsx45(
4426
+ /* @__PURE__ */ jsx46("div", { children: props.onDelete && /* @__PURE__ */ jsx46(
4372
4427
  Button_default,
4373
4428
  {
4374
4429
  ButtonType: "PrimaryHollow" /* Hollow */,
@@ -4379,7 +4434,7 @@ var DataForm = (props) => {
4379
4434
  children: "Delete"
4380
4435
  }
4381
4436
  ) }),
4382
- /* @__PURE__ */ jsx45("div", { children: props.onClick && /* @__PURE__ */ jsx45(
4437
+ /* @__PURE__ */ jsx46("div", { children: props.onClick && /* @__PURE__ */ jsx46(
4383
4438
  Button_default,
4384
4439
  {
4385
4440
  onValidate,
@@ -4396,7 +4451,7 @@ var DataForm = (props) => {
4396
4451
  var DataForm_default = DataForm;
4397
4452
 
4398
4453
  // src/components/dataForm/DataFormRenderer.tsx
4399
- import { jsx as jsx46, jsxs as jsxs21 } from "react/jsx-runtime";
4454
+ import { jsx as jsx47, jsxs as jsxs21 } from "react/jsx-runtime";
4400
4455
  function getAction(actions, code) {
4401
4456
  return actions?.find((a) => a.actionCode === code);
4402
4457
  }
@@ -4423,8 +4478,8 @@ var DataFormRenderer = ({
4423
4478
  );
4424
4479
  const hasDataItem = dataItem && Object.keys(dataItem).length > 0;
4425
4480
  return /* @__PURE__ */ jsxs21("div", { className: "flex-grow flex flex-col", children: [
4426
- widgetProps && /* @__PURE__ */ jsx46(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
4427
- /* @__PURE__ */ jsx46(
4481
+ widgetProps && /* @__PURE__ */ jsx47(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
4482
+ /* @__PURE__ */ jsx47(
4428
4483
  DataForm_default,
4429
4484
  {
4430
4485
  title: !isAddPage ? "Edit " + formDefinition.formTitle + "- v2" : "Add " + formDefinition.formTitle + "- v2",