@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260423090220 → 0.8.1-dev.20260423095249

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.js CHANGED
@@ -76,8 +76,14 @@ var init_StyleTypes = __esm({
76
76
  "src/components/StyleTypes.tsx"() {
77
77
  "use strict";
78
78
  buttonClasses = /* @__PURE__ */ new Map([
79
- ["Primary" /* Solid */, "btn-solid"],
80
- ["PrimaryHollow" /* Hollow */, "btn-hollow"],
79
+ [
80
+ "Primary" /* Solid */,
81
+ "btn-solid relative inline-flex items-center justify-center rounded px-4 py-3 lg:py-2 font-medium shadow-sm hover:shadow-lg focus:outline-none active:scale-95 disabled:opacity-50 disabled:cursor-not-allowed transition duration-150 ease-in-out"
82
+ ],
83
+ [
84
+ "PrimaryHollow" /* Hollow */,
85
+ "btn-hollow inline-flex font-medium items-center justify-center px-4 py-3 lg:py-2 rounded hover:shadow-md focus:outline-none transition duration-150 ease-in-out active:scale-95"
86
+ ],
81
87
  ["Link" /* Link */, "btn-link"]
82
88
  ]);
83
89
  progressClasses = /* @__PURE__ */ new Map([
@@ -489,14 +495,14 @@ var HlsPlayer_exports = {};
489
495
  __export(HlsPlayer_exports, {
490
496
  default: () => HlsPlayer_default
491
497
  });
492
- var import_react35, import_hls, import_jsx_runtime44, HlsPlayer, HlsPlayer_default;
498
+ var import_react35, import_hls, import_jsx_runtime45, HlsPlayer, HlsPlayer_default;
493
499
  var init_HlsPlayer = __esm({
494
500
  "src/components/HlsPlayer.tsx"() {
495
501
  "use strict";
496
502
  "use client";
497
503
  import_react35 = __toESM(require("react"));
498
504
  import_hls = __toESM(require("hls.js"));
499
- import_jsx_runtime44 = require("react/jsx-runtime");
505
+ import_jsx_runtime45 = require("react/jsx-runtime");
500
506
  HlsPlayer = import_react35.default.memo(
501
507
  ({
502
508
  sources,
@@ -639,7 +645,7 @@ var init_HlsPlayer = __esm({
639
645
  const fallbackPoster = posterUrl ?? resolvedSources.find((s) => !s.media)?.posterUrl ?? resolvedSources[0]?.posterUrl;
640
646
  const isPlayOnHover = playOptions === "playOnHover";
641
647
  if (resolvedSources.length === 0) return null;
642
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
648
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
643
649
  "div",
644
650
  {
645
651
  className: "relative w-full aspect-video bg-black",
@@ -647,7 +653,7 @@ var init_HlsPlayer = __esm({
647
653
  onMouseLeave: handleMouseLeave,
648
654
  onMouseMove: handleMouseMove,
649
655
  children: [
650
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
656
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
651
657
  "video",
652
658
  {
653
659
  ref: videoRef,
@@ -659,7 +665,7 @@ var init_HlsPlayer = __esm({
659
665
  loop,
660
666
  playsInline: true,
661
667
  onClick: !isMobile ? handlePlayPause : void 0,
662
- children: resolvedSources.map(({ src, media }, i) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
668
+ children: resolvedSources.map(({ src, media }, i) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
663
669
  "source",
664
670
  {
665
671
  src,
@@ -670,7 +676,7 @@ var init_HlsPlayer = __esm({
670
676
  ))
671
677
  }
672
678
  ),
673
- !isMobile && fallbackPoster && /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
679
+ !isMobile && fallbackPoster && /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
674
680
  "picture",
675
681
  {
676
682
  className: "absolute inset-0 pointer-events-none",
@@ -679,8 +685,8 @@ var init_HlsPlayer = __esm({
679
685
  transition: "opacity 0.4s ease"
680
686
  },
681
687
  children: [
682
- posterSources.map(({ media, posterUrl: src }, i) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("source", { media, srcSet: src }, i)),
683
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
688
+ posterSources.map(({ media, posterUrl: src }, i) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("source", { media, srcSet: src }, i)),
689
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
684
690
  "img",
685
691
  {
686
692
  src: fallbackPoster,
@@ -693,7 +699,7 @@ var init_HlsPlayer = __esm({
693
699
  ]
694
700
  }
695
701
  ),
696
- !isMobile && !isPlayOnHover && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
702
+ !isMobile && !isPlayOnHover && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
697
703
  "div",
698
704
  {
699
705
  className: "absolute inset-0 flex items-center justify-center pointer-events-none",
@@ -701,7 +707,7 @@ var init_HlsPlayer = __esm({
701
707
  opacity: isControlsVisible ? 1 : 0,
702
708
  transition: "opacity 0.3s ease"
703
709
  },
704
- children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
710
+ children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
705
711
  "button",
706
712
  {
707
713
  type: "button",
@@ -740,13 +746,13 @@ var init_HlsPlayer = __esm({
740
746
  },
741
747
  children: isPlaying ? (
742
748
  /* Pause — two rounded bars */
743
- /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
744
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("rect", { x: "3.5", y: "2.5", width: "4.5", height: "15", rx: "1.5", fill: "white" }),
745
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("rect", { x: "12", y: "2.5", width: "4.5", height: "15", rx: "1.5", fill: "white" })
749
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
750
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("rect", { x: "3.5", y: "2.5", width: "4.5", height: "15", rx: "1.5", fill: "white" }),
751
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("rect", { x: "12", y: "2.5", width: "4.5", height: "15", rx: "1.5", fill: "white" })
746
752
  ] })
747
753
  ) : (
748
754
  /* Play — solid triangle, nudged right for optical balance */
749
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("path", { d: "M5 3.5L17 10L5 16.5V3.5Z", fill: "white" }) })
755
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("path", { d: "M5 3.5L17 10L5 16.5V3.5Z", fill: "white" }) })
750
756
  )
751
757
  }
752
758
  )
@@ -767,7 +773,7 @@ var LinkNodeButton_exports = {};
767
773
  __export(LinkNodeButton_exports, {
768
774
  default: () => LinkNodeButton_default
769
775
  });
770
- var import_react37, import_jsx_runtime47, LinkNodeButton, LinkNodeButton_default;
776
+ var import_react37, import_jsx_runtime48, LinkNodeButton, LinkNodeButton_default;
771
777
  var init_LinkNodeButton = __esm({
772
778
  "src/components/pageRenderingEngine/nodes/LinkNodeButton.tsx"() {
773
779
  "use strict";
@@ -776,7 +782,7 @@ var init_LinkNodeButton = __esm({
776
782
  init_Button();
777
783
  init_ServiceClient();
778
784
  init_ToastService();
779
- import_jsx_runtime47 = require("react/jsx-runtime");
785
+ import_jsx_runtime48 = require("react/jsx-runtime");
780
786
  LinkNodeButton = (props) => {
781
787
  const { node, dataitem, children, linkText, linkType, linkUrl } = props;
782
788
  const [isLoading, setIsLoading] = (0, import_react37.useState)(false);
@@ -919,11 +925,11 @@ var init_LinkNodeButton = __esm({
919
925
  return children;
920
926
  }
921
927
  if (linkText) {
922
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { children: linkText });
928
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("span", { children: linkText });
923
929
  }
924
930
  return node.title || "Button";
925
931
  };
926
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "link-button-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
932
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "link-button-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
927
933
  Button_default,
928
934
  {
929
935
  ButtonType: linkType,
@@ -961,13 +967,13 @@ function CopyButton({ text }) {
961
967
  console.error("Failed to copy: ", err);
962
968
  }
963
969
  };
964
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
970
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
965
971
  "button",
966
972
  {
967
973
  onClick: handleCopy,
968
974
  className: "flex gap-1 items-center hover:text-white transition",
969
975
  children: [
970
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
976
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
971
977
  "svg",
972
978
  {
973
979
  width: "16",
@@ -975,7 +981,7 @@ function CopyButton({ text }) {
975
981
  viewBox: "0 0 24 24",
976
982
  className: "w-4 h-4",
977
983
  fill: "currentColor",
978
- children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
984
+ children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
979
985
  "path",
980
986
  {
981
987
  fillRule: "evenodd",
@@ -990,54 +996,54 @@ function CopyButton({ text }) {
990
996
  }
991
997
  );
992
998
  }
993
- var import_react44, import_jsx_runtime57;
999
+ var import_react44, import_jsx_runtime58;
994
1000
  var init_CopyButton = __esm({
995
1001
  "src/components/CopyButton.tsx"() {
996
1002
  "use strict";
997
1003
  "use client";
998
1004
  import_react44 = require("react");
999
- import_jsx_runtime57 = require("react/jsx-runtime");
1005
+ import_jsx_runtime58 = require("react/jsx-runtime");
1000
1006
  }
1001
1007
  });
1002
1008
 
1003
1009
  // src/components/IFrameLoaderView.tsx
1004
- var import_react48, import_jsx_runtime63, IFrameLoaderView, IFrameLoaderView_default;
1010
+ var import_react48, import_jsx_runtime64, IFrameLoaderView, IFrameLoaderView_default;
1005
1011
  var init_IFrameLoaderView = __esm({
1006
1012
  "src/components/IFrameLoaderView.tsx"() {
1007
1013
  "use strict";
1008
1014
  import_react48 = __toESM(require("react"));
1009
- import_jsx_runtime63 = require("react/jsx-runtime");
1015
+ import_jsx_runtime64 = require("react/jsx-runtime");
1010
1016
  IFrameLoaderView = (props) => {
1011
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_react48.default.Fragment, { children: [
1012
- props.isDataFound == null && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "mt-4 bg-gray-200 rounded-md p-4 animate-pulse", children: [
1013
- /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "flex items-center mb-4", children: [
1014
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
1015
- /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "ml-2", children: [
1016
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
1017
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
1017
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_react48.default.Fragment, { children: [
1018
+ props.isDataFound == null && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "mt-4 bg-gray-200 rounded-md p-4 animate-pulse", children: [
1019
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "flex items-center mb-4", children: [
1020
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
1021
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "ml-2", children: [
1022
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
1023
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
1018
1024
  ] })
1019
1025
  ] }),
1020
- /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
1021
- /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "animate-pulse", children: [
1022
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
1023
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
1024
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
1025
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
1026
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
1026
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
1027
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "animate-pulse", children: [
1028
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
1029
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
1030
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
1031
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
1032
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
1027
1033
  ] }),
1028
- /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "animate-pulse", children: [
1029
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
1030
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
1031
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
1032
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
1033
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
1034
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "animate-pulse", children: [
1035
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
1036
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
1037
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
1038
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
1039
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
1034
1040
  ] }),
1035
- /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "animate-pulse", children: [
1036
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
1037
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
1038
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
1039
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
1040
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
1041
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "animate-pulse", children: [
1042
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
1043
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
1044
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
1045
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
1046
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
1041
1047
  ] })
1042
1048
  ] })
1043
1049
  ] }) }),
@@ -1053,14 +1059,14 @@ var IframeClient_exports = {};
1053
1059
  __export(IframeClient_exports, {
1054
1060
  default: () => IframeClient_default
1055
1061
  });
1056
- var import_react49, import_jsx_runtime64, IframeClient, IframeClient_default;
1062
+ var import_react49, import_jsx_runtime65, IframeClient, IframeClient_default;
1057
1063
  var init_IframeClient = __esm({
1058
1064
  "src/components/pageRenderingEngine/nodes/IframeClient.tsx"() {
1059
1065
  "use strict";
1060
1066
  "use client";
1061
1067
  import_react49 = __toESM(require("react"));
1062
1068
  init_IFrameLoaderView();
1063
- import_jsx_runtime64 = require("react/jsx-runtime");
1069
+ import_jsx_runtime65 = require("react/jsx-runtime");
1064
1070
  IframeClient = ({ src }) => {
1065
1071
  const iframeRef = (0, import_react49.useRef)(null);
1066
1072
  const [iframeHeight, setIframeHeight] = (0, import_react49.useState)("100%");
@@ -1092,7 +1098,7 @@ var init_IframeClient = __esm({
1092
1098
  const handleIframeLoad = () => {
1093
1099
  setIsDataFound(true);
1094
1100
  };
1095
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_react49.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(IFrameLoaderView_default, { isDataFound, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
1101
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react49.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(IFrameLoaderView_default, { isDataFound, children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
1096
1102
  "iframe",
1097
1103
  {
1098
1104
  ref: iframeRef,
@@ -2842,7 +2848,7 @@ var import_link = __toESM(require("next/link"));
2842
2848
  init_StyleTypes();
2843
2849
  var import_jsx_runtime34 = require("react/jsx-runtime");
2844
2850
  function Hyperlink(props) {
2845
- let linkClass = props.linkType ? buttonClasses.get(props.linkType) : "";
2851
+ let linkClass = props.linkType ? buttonClasses.get(props.linkType) : buttonClasses.get("Link" /* Link */);
2846
2852
  const target = props?.href?.startsWith("http") ? "_blank" : "_self";
2847
2853
  const additionalProps = {};
2848
2854
  if (target == "_blank") {
@@ -3567,8 +3573,51 @@ var DataList_default = DataList;
3567
3573
  // src/components/dataForm/DataListRenderer.tsx
3568
3574
  var import_react34 = __toESM(require("react"));
3569
3575
  init_ServiceClient();
3576
+ var import_navigation3 = require("next/navigation");
3577
+
3578
+ // src/components/NavigationTabsV2.tsx
3579
+ var import_link2 = __toESM(require("next/link"));
3570
3580
  var import_navigation2 = require("next/navigation");
3571
3581
  var import_jsx_runtime41 = require("react/jsx-runtime");
3582
+ function resolveRoutePlaceholders(route, params) {
3583
+ return route.replace(/\{([^}]+)\}/g, (match, key) => {
3584
+ const value = params[key];
3585
+ if (value === void 0 || value === null) {
3586
+ console.warn(`No value found for route param: ${key}`);
3587
+ return "";
3588
+ }
3589
+ return value;
3590
+ });
3591
+ }
3592
+ var NavigationTabsV2 = ({ tabs, params = {} }) => {
3593
+ const pathname = (0, import_navigation2.usePathname)();
3594
+ const shouldHideTabs = pathname?.includes("/add");
3595
+ if (shouldHideTabs) return null;
3596
+ const mappedTabs = tabs?.sort((a, b) => a.displayOrder - b.displayOrder)?.map((tab) => ({
3597
+ tabTitle: tab.tabTitle,
3598
+ displayOrder: tab.displayOrder,
3599
+ landingPageUrl: resolveRoutePlaceholders(
3600
+ tab.landingPageUrl,
3601
+ params
3602
+ ),
3603
+ isActive: tab.isActive
3604
+ })) || [];
3605
+ if (mappedTabs.length === 0) return null;
3606
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "flex border-b bg-white rounded-t mb-3", children: mappedTabs.map(({ tabTitle, landingPageUrl, isActive }) => {
3607
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_link2.default, { href: landingPageUrl, className: "-mb-px", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3608
+ "div",
3609
+ {
3610
+ className: `text-sm font-medium border-b-2 px-6 py-2 transition
3611
+ ${isActive ? "bg-info-base" : "bg-neutral-weak "}`,
3612
+ children: tabTitle
3613
+ }
3614
+ ) }, landingPageUrl);
3615
+ }) });
3616
+ };
3617
+ var NavigationTabsV2_default = NavigationTabsV2;
3618
+
3619
+ // src/components/dataForm/DataListRenderer.tsx
3620
+ var import_jsx_runtime42 = require("react/jsx-runtime");
3572
3621
  var viewControlMap = {
3573
3622
  number: ViewControlTypes.number,
3574
3623
  lineText: ViewControlTypes.lineText,
@@ -3576,7 +3625,7 @@ var viewControlMap = {
3576
3625
  date: ViewControlTypes.date,
3577
3626
  boolean: ViewControlTypes.boolean
3578
3627
  };
3579
- function resolveRoutePlaceholders(route, params) {
3628
+ function resolveRoutePlaceholders2(route, params) {
3580
3629
  return route.replace(/\{([^}]+)\}/g, (match, key) => {
3581
3630
  const value = params[key];
3582
3631
  if (value === void 0 || value === null) {
@@ -3616,6 +3665,7 @@ var DataListRenderer = ({
3616
3665
  apiBaseUrl,
3617
3666
  session,
3618
3667
  params,
3668
+ tabs,
3619
3669
  query,
3620
3670
  path,
3621
3671
  widgetProps
@@ -3627,14 +3677,14 @@ var DataListRenderer = ({
3627
3677
  const [addLinkHref, setAddLinkHref] = (0, import_react34.useState)("");
3628
3678
  const [addLinkText, setAddLinkText] = (0, import_react34.useState)("");
3629
3679
  const [serviceRoute, setServiceRoute] = (0, import_react34.useState)("");
3630
- const pathname = (0, import_navigation2.usePathname)();
3680
+ const pathname = (0, import_navigation3.usePathname)();
3631
3681
  (0, import_react34.useEffect)(() => {
3632
3682
  if (!formDefinition) return;
3633
3683
  setColumns(mapApiToColumns(formDefinition));
3634
3684
  setFilters(mapApiToFilters(formDefinition));
3635
3685
  setServiceRoute(formDefinition?.siteFormDataList?.serviceRoute ?? "/");
3636
3686
  const rawAddLinkHref = formDefinition?.siteFormDataList?.addLinkHref ?? "";
3637
- const resolvedAddLinkHref = resolveRoutePlaceholders(
3687
+ const resolvedAddLinkHref = resolveRoutePlaceholders2(
3638
3688
  rawAddLinkHref,
3639
3689
  params
3640
3690
  );
@@ -3644,7 +3694,7 @@ var DataListRenderer = ({
3644
3694
  (0, import_react34.useEffect)(() => {
3645
3695
  const fetchData = async () => {
3646
3696
  if (!serviceRoute) return;
3647
- const resolvedRoute = resolveRoutePlaceholders(serviceRoute, params);
3697
+ const resolvedRoute = resolveRoutePlaceholders2(serviceRoute, params);
3648
3698
  const queryString = OdataBuilder.getOdataQueryString(query);
3649
3699
  const separator = resolvedRoute.includes("?") ? "&" : "?";
3650
3700
  const finalUrl = resolvedRoute + (queryString ? separator + queryString : "");
@@ -3655,21 +3705,24 @@ var DataListRenderer = ({
3655
3705
  }, [serviceRoute, query, params]);
3656
3706
  const [tabItem, setTabItem] = (0, import_react34.useState)();
3657
3707
  const activeTab = tabItem?.find((tab) => tab.isActive);
3658
- const activeHref = activeTab ? resolveRoutePlaceholders(activeTab.landingPageUrl, params) : pathname;
3659
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_react34.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3660
- DataList_default,
3661
- {
3662
- addLinkHref,
3663
- addLinkText,
3664
- title: (formDefinition?.formTitle || "") + "-V2",
3665
- path,
3666
- columns,
3667
- dataset,
3668
- filters: filter,
3669
- serviceClient,
3670
- query
3671
- }
3672
- ) });
3708
+ const activeHref = activeTab ? resolveRoutePlaceholders2(activeTab.landingPageUrl, params) : pathname;
3709
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_react34.default.Fragment, { children: [
3710
+ widgetProps && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
3711
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
3712
+ DataList_default,
3713
+ {
3714
+ addLinkHref,
3715
+ addLinkText,
3716
+ title: (formDefinition?.formTitle || "") + "-V2",
3717
+ path,
3718
+ columns,
3719
+ dataset,
3720
+ filters: filter,
3721
+ serviceClient,
3722
+ query
3723
+ }
3724
+ )
3725
+ ] });
3673
3726
  };
3674
3727
  var DataListRenderer_default = DataListRenderer;
3675
3728
 
@@ -3680,7 +3733,7 @@ var import_react53 = __toESM(require("react"));
3680
3733
  var import_react39 = __toESM(require("react"));
3681
3734
 
3682
3735
  // src/components/pageRenderingEngine/nodes/TextNode.tsx
3683
- var import_jsx_runtime42 = require("react/jsx-runtime");
3736
+ var import_jsx_runtime43 = require("react/jsx-runtime");
3684
3737
  var TextNode = (props) => {
3685
3738
  function cssStringToJson(cssString) {
3686
3739
  const styleObject = {};
@@ -3738,24 +3791,24 @@ var TextNode = (props) => {
3738
3791
  });
3739
3792
  }
3740
3793
  function renderWithLineBreaks(text) {
3741
- return text.split("\n").map((line, index, arr) => /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("span", { children: [
3794
+ return text.split("\n").map((line, index, arr) => /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("span", { children: [
3742
3795
  line,
3743
- index < arr.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("br", {})
3796
+ index < arr.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("br", {})
3744
3797
  ] }, index));
3745
3798
  }
3746
3799
  const displayText = props.linkText ? props.linkText : props.node.text;
3747
3800
  const finalText = props.dataitem && props.linkText ? displayText : props.dataitem ? replacePlaceholders(props.node.text, props.dataitem) : props.node.text;
3748
3801
  return (
3749
3802
  // @ts-expect-error custom code
3750
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { style: { ...styles }, className: getFormatClass(props.node.format), children: typeof finalText === "string" ? renderWithLineBreaks(finalText) : finalText })
3803
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { style: { ...styles }, className: getFormatClass(props.node.format), children: typeof finalText === "string" ? renderWithLineBreaks(finalText) : finalText })
3751
3804
  );
3752
3805
  };
3753
3806
  var TextNode_default = TextNode;
3754
3807
 
3755
3808
  // src/components/pageRenderingEngine/nodes/LineBreakNode.tsx
3756
- var import_jsx_runtime43 = require("react/jsx-runtime");
3809
+ var import_jsx_runtime44 = require("react/jsx-runtime");
3757
3810
  var LineBreakNode = () => {
3758
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "py-0.5 lg:py-1.5" });
3811
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "py-0.5 lg:py-1.5" });
3759
3812
  };
3760
3813
  var LineBreakNode_default = LineBreakNode;
3761
3814
 
@@ -3791,7 +3844,7 @@ var import_dynamic = __toESM(require("next/dynamic"));
3791
3844
 
3792
3845
  // src/components/DeviceAssetSelector.tsx
3793
3846
  init_HlsPlayer();
3794
- var import_jsx_runtime45 = require("react/jsx-runtime");
3847
+ var import_jsx_runtime46 = require("react/jsx-runtime");
3795
3848
  var DeviceAssetSelector = ({
3796
3849
  assets,
3797
3850
  assetBaseUrl,
@@ -3866,7 +3919,7 @@ var DeviceAssetSelector = ({
3866
3919
  const formatClasses = FormatClass[nodeProps?.format || ""] || "";
3867
3920
  const renderMedia = () => {
3868
3921
  if (isHls) {
3869
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
3922
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
3870
3923
  HlsPlayer_default,
3871
3924
  {
3872
3925
  assetUrl: resolvedAssetUrl,
@@ -3883,7 +3936,7 @@ var DeviceAssetSelector = ({
3883
3936
  } else {
3884
3937
  return (
3885
3938
  /* eslint-disable-next-line @next/next/no-img-element */
3886
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
3939
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
3887
3940
  "img",
3888
3941
  {
3889
3942
  style: styles,
@@ -3899,17 +3952,17 @@ var DeviceAssetSelector = ({
3899
3952
  }
3900
3953
  };
3901
3954
  if (width) {
3902
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { style: { width }, children: renderMedia() });
3955
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { style: { width }, children: renderMedia() });
3903
3956
  }
3904
3957
  if (nodeProps?.format) {
3905
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: `flex ${formatClasses}`, children: renderMedia() });
3958
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: `flex ${formatClasses}`, children: renderMedia() });
3906
3959
  }
3907
3960
  return renderMedia();
3908
3961
  };
3909
3962
  var DeviceAssetSelector_default = DeviceAssetSelector;
3910
3963
 
3911
3964
  // src/components/pageRenderingEngine/nodes/ImageNode.tsx
3912
- var import_jsx_runtime46 = require("react/jsx-runtime");
3965
+ var import_jsx_runtime47 = require("react/jsx-runtime");
3913
3966
  var HlsPlayer2 = (0, import_dynamic.default)(() => Promise.resolve().then(() => (init_HlsPlayer(), HlsPlayer_exports)), {
3914
3967
  ssr: false
3915
3968
  });
@@ -3952,7 +4005,7 @@ var ImageNode = (props) => {
3952
4005
  console.error("Error parsing assets in ImageNode:", error);
3953
4006
  }
3954
4007
  if (assets && assets.length > 0) {
3955
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_jsx_runtime46.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4008
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_jsx_runtime47.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
3956
4009
  DeviceAssetSelector_default,
3957
4010
  {
3958
4011
  device: props.device,
@@ -4001,7 +4054,7 @@ var ImageNode = (props) => {
4001
4054
  const isHls = imageUrl?.endsWith(".m3u8");
4002
4055
  const renderMedia = () => {
4003
4056
  if (isHls) {
4004
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4057
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
4005
4058
  HlsPlayer2,
4006
4059
  {
4007
4060
  assetUrl: imageUrl,
@@ -4016,7 +4069,7 @@ var ImageNode = (props) => {
4016
4069
  }
4017
4070
  );
4018
4071
  } else {
4019
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_react36.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4072
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_react36.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
4020
4073
  "img",
4021
4074
  {
4022
4075
  style: styles,
@@ -4031,7 +4084,7 @@ var ImageNode = (props) => {
4031
4084
  }
4032
4085
  };
4033
4086
  if (props.node.width) {
4034
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: `flex ${formatClasses}`, children: renderMedia() });
4087
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: `flex ${formatClasses}`, children: renderMedia() });
4035
4088
  }
4036
4089
  return renderMedia();
4037
4090
  };
@@ -4040,7 +4093,7 @@ var ImageNode_default = ImageNode;
4040
4093
  // src/components/pageRenderingEngine/nodes/LinkNode.tsx
4041
4094
  init_StyleTypes();
4042
4095
  var import_dynamic2 = __toESM(require("next/dynamic"));
4043
- var import_jsx_runtime48 = require("react/jsx-runtime");
4096
+ var import_jsx_runtime49 = require("react/jsx-runtime");
4044
4097
  var LinkNodeButton2 = (0, import_dynamic2.default)(() => Promise.resolve().then(() => (init_LinkNodeButton(), LinkNodeButton_exports)), {
4045
4098
  ssr: false
4046
4099
  });
@@ -4087,13 +4140,13 @@ var LinkNode = (props) => {
4087
4140
  const isButton = node.isButton === true;
4088
4141
  const renderChildren = () => {
4089
4142
  if (!node.children || node.children.length === 0) return null;
4090
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_jsx_runtime48.Fragment, { children: node.children.map((childNode, index) => {
4143
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_jsx_runtime49.Fragment, { children: node.children.map((childNode, index) => {
4091
4144
  const SelectedNode = NodeTypes2[childNode.type];
4092
4145
  if (!SelectedNode) {
4093
4146
  console.warn("Unknown node type:", childNode.type);
4094
4147
  return null;
4095
4148
  }
4096
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_react38.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
4149
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_react38.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
4097
4150
  SelectedNode,
4098
4151
  {
4099
4152
  node: childNode,
@@ -4106,15 +4159,15 @@ var LinkNode = (props) => {
4106
4159
  };
4107
4160
  const renderFallback = () => {
4108
4161
  if ((!node.children || node.children.length === 0) && linkText) {
4109
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("span", { children: linkText });
4162
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("span", { children: linkText });
4110
4163
  }
4111
4164
  if ((!node.children || node.children.length === 0) && !linkText) {
4112
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("br", {});
4165
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("br", {});
4113
4166
  }
4114
4167
  return null;
4115
4168
  };
4116
4169
  if (isButton) {
4117
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
4170
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
4118
4171
  LinkNodeButton2,
4119
4172
  {
4120
4173
  node,
@@ -4132,7 +4185,7 @@ var LinkNode = (props) => {
4132
4185
  }
4133
4186
  );
4134
4187
  }
4135
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
4188
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
4136
4189
  Hyperlink,
4137
4190
  {
4138
4191
  href: linkUrl || "#",
@@ -4148,10 +4201,10 @@ var LinkNode = (props) => {
4148
4201
  var LinkNode_default = LinkNode;
4149
4202
 
4150
4203
  // src/components/pageRenderingEngine/nodes/SVGIconNode.tsx
4151
- var import_jsx_runtime49 = require("react/jsx-runtime");
4204
+ var import_jsx_runtime50 = require("react/jsx-runtime");
4152
4205
  var SVGIconNode = ({ node }) => {
4153
4206
  if (!node?.svgCode) return null;
4154
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
4207
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
4155
4208
  "span",
4156
4209
  {
4157
4210
  style: {
@@ -4168,7 +4221,7 @@ var SVGIconNode_default = SVGIconNode;
4168
4221
 
4169
4222
  // src/components/pageRenderingEngine/nodes/EquationNode.tsx
4170
4223
  var import_katex = __toESM(require("katex"));
4171
- var import_jsx_runtime50 = require("react/jsx-runtime");
4224
+ var import_jsx_runtime51 = require("react/jsx-runtime");
4172
4225
  var EquationNode = ({ node }) => {
4173
4226
  const { equation, inline } = node;
4174
4227
  let html = "";
@@ -4183,7 +4236,7 @@ var EquationNode = ({ node }) => {
4183
4236
  });
4184
4237
  }
4185
4238
  if (inline) {
4186
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
4239
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
4187
4240
  "span",
4188
4241
  {
4189
4242
  className: "katex-inline",
@@ -4191,7 +4244,7 @@ var EquationNode = ({ node }) => {
4191
4244
  }
4192
4245
  );
4193
4246
  }
4194
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
4247
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
4195
4248
  "div",
4196
4249
  {
4197
4250
  className: "katex-block my-3 text-center",
@@ -4202,7 +4255,7 @@ var EquationNode = ({ node }) => {
4202
4255
  var EquationNode_default = EquationNode;
4203
4256
 
4204
4257
  // src/components/pageRenderingEngine/nodes/DatafieldNode.tsx
4205
- var import_jsx_runtime51 = require("react/jsx-runtime");
4258
+ var import_jsx_runtime52 = require("react/jsx-runtime");
4206
4259
  function getNestedProperty(obj, path) {
4207
4260
  if (!obj || !path) return null;
4208
4261
  if (path.includes(".")) {
@@ -4215,7 +4268,7 @@ function getNestedProperty(obj, path) {
4215
4268
  }
4216
4269
  const value = obj[path];
4217
4270
  if (Array.isArray(value)) {
4218
- return value.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { children: String(item) }, index));
4271
+ return value.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { children: String(item) }, index));
4219
4272
  }
4220
4273
  return value;
4221
4274
  }
@@ -4276,7 +4329,7 @@ var DatafieldNode = (props) => {
4276
4329
  const dataType = props.node.dataType;
4277
4330
  if (isEmptyValue) return null;
4278
4331
  if (dataType === "rawContent") {
4279
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
4332
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
4280
4333
  PageBodyRenderer_default,
4281
4334
  {
4282
4335
  rawBody: String(value ?? `@databound[${fieldName}]`),
@@ -4292,12 +4345,12 @@ var DatafieldNode = (props) => {
4292
4345
  }
4293
4346
  );
4294
4347
  }
4295
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
4348
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
4296
4349
  "span",
4297
4350
  {
4298
4351
  className: `datafield-node ${props.node.format < Formats.length ? Formats[props.node.format] : ""}`,
4299
4352
  style: styles,
4300
- children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
4353
+ children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
4301
4354
  ViewControl_default,
4302
4355
  {
4303
4356
  controlType: dataType,
@@ -4310,7 +4363,7 @@ var DatafieldNode = (props) => {
4310
4363
  var DatafieldNode_default = DatafieldNode;
4311
4364
 
4312
4365
  // src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
4313
- var import_jsx_runtime52 = require("react/jsx-runtime");
4366
+ var import_jsx_runtime53 = require("react/jsx-runtime");
4314
4367
  var ParagraphNode = (props) => {
4315
4368
  const NodeTypes2 = {
4316
4369
  ["text"]: TextNode_default,
@@ -4330,9 +4383,9 @@ var ParagraphNode = (props) => {
4330
4383
  const isInlineOnlyParent = props.parentTag === "summary";
4331
4384
  const hasChildren = props.node.children && props.node.children.length > 0;
4332
4385
  if (isInlineOnlyParent) {
4333
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_jsx_runtime52.Fragment, { children: hasChildren && props.node.children.map((node, index) => {
4386
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_jsx_runtime53.Fragment, { children: hasChildren && props.node.children.map((node, index) => {
4334
4387
  const SelectedNode = NodeTypes2[node.type];
4335
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react39.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
4388
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react39.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
4336
4389
  SelectedNode,
4337
4390
  {
4338
4391
  node,
@@ -4344,10 +4397,10 @@ var ParagraphNode = (props) => {
4344
4397
  ) }, index);
4345
4398
  }) });
4346
4399
  }
4347
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: " " + formatClasses, children: [
4400
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: " " + formatClasses, children: [
4348
4401
  hasChildren && props.node.children.map((node, index) => {
4349
4402
  const SelectedNode = NodeTypes2[node.type];
4350
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react39.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
4403
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react39.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
4351
4404
  SelectedNode,
4352
4405
  {
4353
4406
  node,
@@ -4358,14 +4411,14 @@ var ParagraphNode = (props) => {
4358
4411
  }
4359
4412
  ) }, index);
4360
4413
  }),
4361
- !hasChildren && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "py-1.5 lg:py-2" })
4414
+ !hasChildren && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "py-1.5 lg:py-2" })
4362
4415
  ] });
4363
4416
  };
4364
4417
  var ParagraphNode_default = ParagraphNode;
4365
4418
 
4366
4419
  // src/components/pageRenderingEngine/nodes/HeadingNode.tsx
4367
4420
  var import_react40 = __toESM(require("react"));
4368
- var import_jsx_runtime53 = require("react/jsx-runtime");
4421
+ var import_jsx_runtime54 = require("react/jsx-runtime");
4369
4422
  var HeadingNode = (props) => {
4370
4423
  const NodeTypes2 = {
4371
4424
  ["text"]: TextNode_default,
@@ -4381,12 +4434,12 @@ var HeadingNode = (props) => {
4381
4434
  {
4382
4435
  }
4383
4436
  const formatClasses = FormatClass[props.node.format] || "";
4384
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_jsx_runtime53.Fragment, { children: import_react40.default.createElement(
4437
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_jsx_runtime54.Fragment, { children: import_react40.default.createElement(
4385
4438
  HeadingTag,
4386
4439
  { className: formatClasses },
4387
4440
  props.node.children && props.node.children.map((childNode, index) => {
4388
4441
  const SelectedNode = NodeTypes2[childNode.type];
4389
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react40.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(SelectedNode, { node: childNode, dataitem: props.dataitem, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
4442
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_react40.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(SelectedNode, { node: childNode, dataitem: props.dataitem, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
4390
4443
  })
4391
4444
  ) });
4392
4445
  };
@@ -4397,7 +4450,7 @@ var import_react42 = __toESM(require("react"));
4397
4450
 
4398
4451
  // src/components/pageRenderingEngine/nodes/ListItemNode.tsx
4399
4452
  var import_react41 = __toESM(require("react"));
4400
- var import_jsx_runtime54 = require("react/jsx-runtime");
4453
+ var import_jsx_runtime55 = require("react/jsx-runtime");
4401
4454
  var ListItemNode = (props) => {
4402
4455
  const NodeTypes2 = {
4403
4456
  text: TextNode_default,
@@ -4414,37 +4467,37 @@ var ListItemNode = (props) => {
4414
4467
  liStyle.fontSize = match[1].trim();
4415
4468
  }
4416
4469
  }
4417
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("li", { style: liStyle, children: props.node.children && props.node.children.map((node, index) => {
4470
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("li", { style: liStyle, children: props.node.children && props.node.children.map((node, index) => {
4418
4471
  const SelectedNode = NodeTypes2[node.type];
4419
4472
  if (node.type === "linebreak") {
4420
4473
  if (!foundFirstBreak) {
4421
4474
  foundFirstBreak = true;
4422
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", {}, index);
4475
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", {}, index);
4423
4476
  } else {
4424
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "py-1 lg:py-2" }, index);
4477
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "py-1 lg:py-2" }, index);
4425
4478
  }
4426
4479
  } else {
4427
4480
  foundFirstBreak = false;
4428
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_react41.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
4481
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_react41.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
4429
4482
  }
4430
4483
  }) });
4431
4484
  };
4432
4485
  var ListItemNode_default = ListItemNode;
4433
4486
 
4434
4487
  // src/components/pageRenderingEngine/nodes/ListNode.tsx
4435
- var import_jsx_runtime55 = require("react/jsx-runtime");
4488
+ var import_jsx_runtime56 = require("react/jsx-runtime");
4436
4489
  var ListNode = (props) => {
4437
4490
  const NodeTypes2 = {
4438
4491
  listitem: ListItemNode_default
4439
4492
  };
4440
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_react42.default.Fragment, { children: [
4441
- props.node.listType == "bullet" && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("ul", { children: props.node.children && props.node.children.map((node, index) => {
4493
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_react42.default.Fragment, { children: [
4494
+ props.node.listType == "bullet" && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("ul", { children: props.node.children && props.node.children.map((node, index) => {
4442
4495
  const SelectedNode = NodeTypes2[node.type];
4443
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_react42.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
4496
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_react42.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
4444
4497
  }) }),
4445
- props.node.listType == "number" && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("ol", { children: props.node.children && props.node.children.map((node, index) => {
4498
+ props.node.listType == "number" && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("ol", { children: props.node.children && props.node.children.map((node, index) => {
4446
4499
  const SelectedNode = NodeTypes2[node.type];
4447
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_react42.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
4500
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_react42.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
4448
4501
  }) })
4449
4502
  ] });
4450
4503
  };
@@ -4452,16 +4505,16 @@ var ListNode_default = ListNode;
4452
4505
 
4453
4506
  // src/components/pageRenderingEngine/nodes/QuoteNode.tsx
4454
4507
  var import_react43 = __toESM(require("react"));
4455
- var import_jsx_runtime56 = require("react/jsx-runtime");
4508
+ var import_jsx_runtime57 = require("react/jsx-runtime");
4456
4509
  var QuoteNode = (props) => {
4457
4510
  const NodeTypes2 = {
4458
4511
  ["text"]: TextNode_default,
4459
4512
  ["linebreak"]: LineBreakNode_default,
4460
4513
  ["link"]: LinkNode_default
4461
4514
  };
4462
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("blockquote", { children: props.node.children && props.node.children.map((node, index) => {
4515
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("blockquote", { children: props.node.children && props.node.children.map((node, index) => {
4463
4516
  const SelectedNode = NodeTypes2[node.type];
4464
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_react43.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(SelectedNode, { node, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
4517
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_react43.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(SelectedNode, { node, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
4465
4518
  }) });
4466
4519
  };
4467
4520
  var QuoteNode_default = QuoteNode;
@@ -4469,11 +4522,11 @@ var QuoteNode_default = QuoteNode;
4469
4522
  // src/components/pageRenderingEngine/nodes/CodeNode.tsx
4470
4523
  var import_react45 = __toESM(require("react"));
4471
4524
  var import_dynamic3 = __toESM(require("next/dynamic"));
4472
- var import_jsx_runtime58 = require("react/jsx-runtime");
4525
+ var import_jsx_runtime59 = require("react/jsx-runtime");
4473
4526
  var CopyButton2 = (0, import_dynamic3.default)(() => Promise.resolve().then(() => (init_CopyButton(), CopyButton_exports)), {
4474
4527
  ssr: false,
4475
4528
  // optional: fallback UI while loading
4476
- loading: () => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "text-gray-400 text-xs", children: "Copy" })
4529
+ loading: () => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "text-gray-400 text-xs", children: "Copy" })
4477
4530
  });
4478
4531
  var CodeNode = (props) => {
4479
4532
  const NodeTypes2 = {
@@ -4487,14 +4540,14 @@ var CodeNode = (props) => {
4487
4540
  if (node.type === "link") return node.text || node.url || "";
4488
4541
  return "";
4489
4542
  }).join("") ?? "";
4490
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { children: [
4491
- /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "flex items-center relative bg-neutral-strong px-4 py-3 text-xs font-sans justify-between rounded-t-md ", children: [
4492
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { children: "Code Snippet" }),
4493
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(CopyButton2, { text: textContent })
4543
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { children: [
4544
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "flex items-center relative bg-neutral-strong px-4 py-3 text-xs font-sans justify-between rounded-t-md ", children: [
4545
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { children: "Code Snippet" }),
4546
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(CopyButton2, { text: textContent })
4494
4547
  ] }),
4495
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("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) => {
4548
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("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) => {
4496
4549
  const SelectedNode = NodeTypes2[node.type];
4497
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react45.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
4550
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react45.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
4498
4551
  SelectedNode,
4499
4552
  {
4500
4553
  node,
@@ -4509,15 +4562,15 @@ var CodeNode = (props) => {
4509
4562
  var CodeNode_default = CodeNode;
4510
4563
 
4511
4564
  // src/components/pageRenderingEngine/nodes/HorizontalRuleNode.tsx
4512
- var import_jsx_runtime59 = require("react/jsx-runtime");
4565
+ var import_jsx_runtime60 = require("react/jsx-runtime");
4513
4566
  var HorizontalRuleNode = () => {
4514
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("hr", {});
4567
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("hr", {});
4515
4568
  };
4516
4569
  var HorizontalRuleNode_default = HorizontalRuleNode;
4517
4570
 
4518
4571
  // src/components/pageRenderingEngine/nodes/WidgetNode.tsx
4519
4572
  var import_react46 = __toESM(require("react"));
4520
- var import_jsx_runtime60 = require("react/jsx-runtime");
4573
+ var import_jsx_runtime61 = require("react/jsx-runtime");
4521
4574
  var WidgetNode = (props) => {
4522
4575
  const getWidgetParameters = () => {
4523
4576
  const widgetInputParameters = {
@@ -4574,7 +4627,7 @@ var WidgetNode = (props) => {
4574
4627
  };
4575
4628
  const widgetCode = props.node?.widgetCode;
4576
4629
  if (!widgetCode) {
4577
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_jsx_runtime60.Fragment, { children: "Invalid widget" });
4630
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_jsx_runtime61.Fragment, { children: "Invalid widget" });
4578
4631
  }
4579
4632
  const widgetParams = getWidgetParameters();
4580
4633
  const WidgetRenderer = props.widgetRenderer;
@@ -4583,7 +4636,7 @@ var WidgetNode = (props) => {
4583
4636
  }
4584
4637
  return (
4585
4638
  // eslint-disable-next-line react-hooks/static-components
4586
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react46.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
4639
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_react46.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
4587
4640
  WidgetRenderer,
4588
4641
  {
4589
4642
  params: widgetParams,
@@ -4603,9 +4656,9 @@ var WidgetNode_default = WidgetNode;
4603
4656
  var import_react47 = __toESM(require("react"));
4604
4657
 
4605
4658
  // src/components/pageRenderingEngine/nodes/InputControlNode.tsx
4606
- var import_jsx_runtime61 = require("react/jsx-runtime");
4659
+ var import_jsx_runtime62 = require("react/jsx-runtime");
4607
4660
  var InputControlNode = (props) => {
4608
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
4661
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
4609
4662
  InputControl_default,
4610
4663
  {
4611
4664
  name: props.node.name,
@@ -4635,7 +4688,7 @@ var InputControlNode_default = InputControlNode;
4635
4688
 
4636
4689
  // src/components/pageRenderingEngine/nodes/FormContainerNode.tsx
4637
4690
  init_ServiceClient();
4638
- var import_jsx_runtime62 = require("react/jsx-runtime");
4691
+ var import_jsx_runtime63 = require("react/jsx-runtime");
4639
4692
  var FormContainerNode = (props) => {
4640
4693
  const NodeTypes2 = {
4641
4694
  ["input-control"]: InputControlNode_default
@@ -4665,12 +4718,12 @@ var FormContainerNode = (props) => {
4665
4718
  };
4666
4719
  fetchInitialData();
4667
4720
  }, [props.apiBaseUrl, props.node, props.session, props.routeParameters]);
4668
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("form", { className: "group space-y-6 pb-6 overflow-y-auto", noValidate: true, ref: formRef, children: [
4721
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("form", { className: "group space-y-6 pb-6 overflow-y-auto", noValidate: true, ref: formRef, children: [
4669
4722
  node.children && node.children.map((node2, index) => {
4670
4723
  {
4671
4724
  }
4672
4725
  const SelectedNode = NodeTypes2[node2.type];
4673
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_react47.default.Fragment, { children: SelectedNode && node2.type == "input-control" && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
4726
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_react47.default.Fragment, { children: SelectedNode && node2.type == "input-control" && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
4674
4727
  InputControlNode_default,
4675
4728
  {
4676
4729
  value: formState.inputValues[node2.name],
@@ -4679,7 +4732,7 @@ var FormContainerNode = (props) => {
4679
4732
  }
4680
4733
  ) }, index);
4681
4734
  }),
4682
- node.children.length == 0 && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "py-0.5 lg:py-1.5" })
4735
+ node.children.length == 0 && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "py-0.5 lg:py-1.5" })
4683
4736
  ] });
4684
4737
  };
4685
4738
  var FormContainerNode_default = FormContainerNode;
@@ -4689,7 +4742,7 @@ var import_react52 = __toESM(require("react"));
4689
4742
 
4690
4743
  // src/components/pageRenderingEngine/nodes/EmbedNode.tsx
4691
4744
  var import_dynamic4 = __toESM(require("next/dynamic"));
4692
- var import_jsx_runtime65 = require("react/jsx-runtime");
4745
+ var import_jsx_runtime66 = require("react/jsx-runtime");
4693
4746
  var IframeClient2 = (0, import_dynamic4.default)(() => Promise.resolve().then(() => (init_IframeClient(), IframeClient_exports)), {
4694
4747
  ssr: false
4695
4748
  });
@@ -4702,7 +4755,7 @@ var EmbedNode = (props) => {
4702
4755
  } else {
4703
4756
  src = props.node.embedSrc;
4704
4757
  }
4705
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "aspect-video", children: src && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(IframeClient2, { src }) });
4758
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "aspect-video", children: src && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(IframeClient2, { src }) });
4706
4759
  };
4707
4760
  var EmbedNode_default = EmbedNode;
4708
4761
 
@@ -4711,7 +4764,7 @@ init_ServiceClient();
4711
4764
 
4712
4765
  // src/components/Slider.tsx
4713
4766
  var import_react50 = __toESM(require("react"));
4714
- var import_jsx_runtime66 = require("react/jsx-runtime");
4767
+ var import_jsx_runtime67 = require("react/jsx-runtime");
4715
4768
  var Slider = ({
4716
4769
  children,
4717
4770
  slidesToShow = 4,
@@ -4808,7 +4861,7 @@ var Slider = ({
4808
4861
  if (!import_react50.default.isValidElement(child)) return null;
4809
4862
  const childProps = child.props;
4810
4863
  const mergedClassName = `${childProps.className ?? ""} w-full`.trim();
4811
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
4864
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4812
4865
  "div",
4813
4866
  {
4814
4867
  className: `flex-none ${scaleOnHover ? "group hover:z-50" : ""} relative`,
@@ -4831,14 +4884,14 @@ var Slider = ({
4831
4884
  return "bottom-4";
4832
4885
  }
4833
4886
  };
4834
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
4887
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
4835
4888
  "div",
4836
4889
  {
4837
4890
  className: `relative w-full overflow-hidden ${className}`,
4838
4891
  onMouseEnter: handleMouseEnter,
4839
4892
  onMouseLeave: handleMouseLeave,
4840
4893
  children: [
4841
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
4894
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4842
4895
  "div",
4843
4896
  {
4844
4897
  className: "flex h-full",
@@ -4849,18 +4902,18 @@ var Slider = ({
4849
4902
  children: slides
4850
4903
  }
4851
4904
  ),
4852
- show_arrows && /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_jsx_runtime66.Fragment, { children: [
4853
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
4905
+ show_arrows && /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(import_jsx_runtime67.Fragment, { children: [
4906
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4854
4907
  ArrowButton,
4855
4908
  {
4856
4909
  direction: "left",
4857
4910
  onClick: prevSlide,
4858
4911
  visible: infinite_scroll || currentSlide > 0,
4859
4912
  className: arrowClassName,
4860
- children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: "w-6 h-6", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M15.75 19.5 8.25 12l7.5-7.5" }) })
4913
+ children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: "w-6 h-6", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M15.75 19.5 8.25 12l7.5-7.5" }) })
4861
4914
  }
4862
4915
  ),
4863
- /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
4916
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
4864
4917
  ArrowButton,
4865
4918
  {
4866
4919
  direction: "right",
@@ -4868,13 +4921,13 @@ var Slider = ({
4868
4921
  visible: infinite_scroll || currentSlide < maxSlide,
4869
4922
  className: arrowClassName,
4870
4923
  children: [
4871
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: "w-6 h-6", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "m8.25 4.5 7.5 7.5-7.5 7.5" }) }),
4924
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: "w-6 h-6", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "m8.25 4.5 7.5 7.5-7.5 7.5" }) }),
4872
4925
  " "
4873
4926
  ]
4874
4927
  }
4875
4928
  )
4876
4929
  ] }),
4877
- show_dots && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: `absolute left-1/2 -translate-x-1/2 flex justify-center space-x-1.5 ${getProgressPositionClass()}`, children: Array.from({ length: totalSlides }).map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
4930
+ show_dots && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: `absolute left-1/2 -translate-x-1/2 flex justify-center space-x-1.5 ${getProgressPositionClass()}`, children: Array.from({ length: totalSlides }).map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4878
4931
  ProgressPill,
4879
4932
  {
4880
4933
  active: index === currentSlide,
@@ -4900,7 +4953,7 @@ var ArrowButton = ({
4900
4953
  visible,
4901
4954
  children,
4902
4955
  className = ""
4903
- }) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
4956
+ }) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4904
4957
  "button",
4905
4958
  {
4906
4959
  className: `
@@ -4987,7 +5040,7 @@ var ProgressPill = ({
4987
5040
  const renderProgressBar = () => {
4988
5041
  if (style === "modern" && isActive || style === "cumulative" && shouldShowProgress) {
4989
5042
  const displayProgress = style === "cumulative" && isFilled ? 100 : progress;
4990
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
5043
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4991
5044
  "div",
4992
5045
  {
4993
5046
  className: `absolute top-0 left-0 h-full rounded-full ${style === "cumulative" && isFilled ? activeClassName || "bg-white" : activeClassName || "bg-white"} transition-all duration-50 ease-linear`,
@@ -4999,7 +5052,7 @@ var ProgressPill = ({
4999
5052
  };
5000
5053
  const renderCumulativeFill = () => {
5001
5054
  if (style === "cumulative" && isFilled && !isActive) {
5002
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
5055
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
5003
5056
  "div",
5004
5057
  {
5005
5058
  className: `absolute top-0 left-0 h-full rounded-full ${activeClassName || "bg-white"} transition-all duration-300`,
@@ -5009,7 +5062,7 @@ var ProgressPill = ({
5009
5062
  }
5010
5063
  return null;
5011
5064
  };
5012
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
5065
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
5013
5066
  "button",
5014
5067
  {
5015
5068
  className: `${baseClasses} ${getStyleClasses()}`,
@@ -5185,10 +5238,10 @@ var PathUtility = class {
5185
5238
  var PathUtility_default = new PathUtility();
5186
5239
 
5187
5240
  // src/components/NoDataFound.tsx
5188
- var import_jsx_runtime67 = require("react/jsx-runtime");
5241
+ var import_jsx_runtime68 = require("react/jsx-runtime");
5189
5242
  var NoDataFound = () => {
5190
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center bg-neutral-weak", children: [
5191
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "mb-5", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "mx-auto w-20 h-20 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
5243
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center bg-neutral-weak", children: [
5244
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "mb-5", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "mx-auto w-20 h-20 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
5192
5245
  "svg",
5193
5246
  {
5194
5247
  className: "w-10 h-10",
@@ -5196,7 +5249,7 @@ var NoDataFound = () => {
5196
5249
  stroke: "currentColor",
5197
5250
  viewBox: "0 0 24 24",
5198
5251
  xmlns: "http://www.w3.org/2000/svg",
5199
- children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
5252
+ children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
5200
5253
  "path",
5201
5254
  {
5202
5255
  strokeLinecap: "round",
@@ -5207,8 +5260,8 @@ var NoDataFound = () => {
5207
5260
  )
5208
5261
  }
5209
5262
  ) }) }),
5210
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("h3", { className: "text-lg font-medium mb-2", children: "No data available" }),
5211
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("p", { className: " max-w-sm mb-0", children: "No records found. Data may be empty or not available at the moment." })
5263
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("h3", { className: "text-lg font-medium mb-2", children: "No data available" }),
5264
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("p", { className: " max-w-sm mb-0", children: "No records found. Data may be empty or not available at the moment." })
5212
5265
  ] });
5213
5266
  };
5214
5267
  var NoDataFound_default = NoDataFound;
@@ -5216,7 +5269,7 @@ var NoDataFound_default = NoDataFound;
5216
5269
  // src/components/Pagination.tsx
5217
5270
  var import_react51 = require("react");
5218
5271
  init_StyleTypes();
5219
- var import_jsx_runtime68 = require("react/jsx-runtime");
5272
+ var import_jsx_runtime69 = require("react/jsx-runtime");
5220
5273
  var Pagination = (props) => {
5221
5274
  const { dataset, path, query, showPageSizeSelector = false, showJumpToPage = false } = props;
5222
5275
  const builder = (0, import_react51.useMemo)(() => {
@@ -5260,7 +5313,7 @@ var Pagination = (props) => {
5260
5313
  return range;
5261
5314
  };
5262
5315
  const paginationRange = getPaginationRange();
5263
- const PageButton = ({ page, children }) => /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
5316
+ const PageButton = ({ page, children }) => /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
5264
5317
  Hyperlink,
5265
5318
  {
5266
5319
  linkType: "Link" /* Link */,
@@ -5275,9 +5328,9 @@ var Pagination = (props) => {
5275
5328
  );
5276
5329
  const NavigationButton = ({ page, disabled, children }) => {
5277
5330
  if (disabled) {
5278
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "min-w-[20px] md:min-w-[40px] h-10 flex items-center justify-center px-2 md:px-3 border bg-neutral-base cursor-not-allowed", children });
5331
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "min-w-[20px] md:min-w-[40px] h-10 flex items-center justify-center px-2 md:px-3 border bg-neutral-base cursor-not-allowed", children });
5279
5332
  }
5280
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
5333
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
5281
5334
  Hyperlink,
5282
5335
  {
5283
5336
  className: "min-w-[20px] md:min-w-[40px] h-10 flex items-center justify-center px-2 md:px-3 border transition-colors duration-150",
@@ -5287,35 +5340,35 @@ var Pagination = (props) => {
5287
5340
  );
5288
5341
  };
5289
5342
  if (totalPages <= 1 && totalItems === 0) return null;
5290
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "py-6 border-t bg-default", children: [
5291
- /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "flex flex-col sm:flex-row items-center justify-between gap-4", children: [
5292
- /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "text-sm", children: [
5343
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "py-6 border-t bg-default", children: [
5344
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "flex flex-col sm:flex-row items-center justify-between gap-4", children: [
5345
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "text-sm", children: [
5293
5346
  "Showing ",
5294
- /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("span", { className: "font-semibold", children: [
5347
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("span", { className: "font-semibold", children: [
5295
5348
  startItem,
5296
5349
  "-",
5297
5350
  endItem
5298
5351
  ] }),
5299
5352
  " ",
5300
5353
  "out of ",
5301
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "font-semibold", children: totalItems.toLocaleString() }),
5354
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "font-semibold", children: totalItems.toLocaleString() }),
5302
5355
  " results"
5303
5356
  ] }),
5304
- totalPages > 1 && /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "flex items-center space-x-1", children: [
5305
- /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
5357
+ totalPages > 1 && /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "flex items-center space-x-1", children: [
5358
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
5306
5359
  NavigationButton,
5307
5360
  {
5308
5361
  page: activePageNumber - 1,
5309
5362
  disabled: activePageNumber === 1,
5310
5363
  children: [
5311
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Icon_default, { name: "chevronLeft", className: "w-4 h-4 mr-1" }) }),
5312
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "text-sm", children: "Prev" })
5364
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Icon_default, { name: "chevronLeft", className: "w-4 h-4 mr-1" }) }),
5365
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "text-sm", children: "Prev" })
5313
5366
  ]
5314
5367
  }
5315
5368
  ),
5316
5369
  paginationRange.map((item, index) => {
5317
5370
  if (item === "...") {
5318
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
5371
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
5319
5372
  "span",
5320
5373
  {
5321
5374
  className: "min-w-[20px] md:min-w-[40px] h-10 flex items-center justify-center text-gray-500",
@@ -5325,23 +5378,23 @@ var Pagination = (props) => {
5325
5378
  );
5326
5379
  }
5327
5380
  const page = item;
5328
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(PageButton, { page, children: page }, page);
5381
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(PageButton, { page, children: page }, page);
5329
5382
  }),
5330
- /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
5383
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
5331
5384
  NavigationButton,
5332
5385
  {
5333
5386
  page: activePageNumber + 1,
5334
5387
  disabled: activePageNumber === totalPages,
5335
5388
  children: [
5336
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "text-sm", children: "Next" }),
5337
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Icon_default, { name: "chevronRight", className: "w-4 h-4 ml-1" }) })
5389
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "text-sm", children: "Next" }),
5390
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Icon_default, { name: "chevronRight", className: "w-4 h-4 ml-1" }) })
5338
5391
  ]
5339
5392
  }
5340
5393
  )
5341
5394
  ] }),
5342
- showJumpToPage && totalPages > 5 && /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "flex items-center space-x-2", children: [
5343
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "text-sm", children: "Go to:" }),
5344
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
5395
+ showJumpToPage && totalPages > 5 && /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "flex items-center space-x-2", children: [
5396
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "text-sm", children: "Go to:" }),
5397
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
5345
5398
  "input",
5346
5399
  {
5347
5400
  type: "number",
@@ -5362,9 +5415,9 @@ var Pagination = (props) => {
5362
5415
  ) })
5363
5416
  ] })
5364
5417
  ] }),
5365
- showPageSizeSelector && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "mt-4 pt-4 border-t bg-default", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "flex items-center justify-center space-x-2", children: [
5366
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "text-sm", children: "Show:" }),
5367
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "flex space-x-1", children: [10, 25, 50, 100].map((size) => /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
5418
+ showPageSizeSelector && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "mt-4 pt-4 border-t bg-default", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "flex items-center justify-center space-x-2", children: [
5419
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "text-sm", children: "Show:" }),
5420
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "flex space-x-1", children: [10, 25, 50, 100].map((size) => /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
5368
5421
  Hyperlink,
5369
5422
  {
5370
5423
  className: `
@@ -5376,7 +5429,7 @@ var Pagination = (props) => {
5376
5429
  },
5377
5430
  size
5378
5431
  )) }),
5379
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "text-sm", children: "per page" })
5432
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "text-sm", children: "per page" })
5380
5433
  ] }) })
5381
5434
  ] });
5382
5435
  };
@@ -5384,7 +5437,7 @@ var Pagination_default = Pagination;
5384
5437
 
5385
5438
  // src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
5386
5439
  var import_dynamic5 = __toESM(require("next/dynamic"));
5387
- var import_jsx_runtime69 = require("react/jsx-runtime");
5440
+ var import_jsx_runtime70 = require("react/jsx-runtime");
5388
5441
  var HlsPlayer3 = (0, import_dynamic5.default)(() => Promise.resolve().then(() => (init_HlsPlayer(), HlsPlayer_exports)), { ssr: false });
5389
5442
  var deviceToMediaQuery = (device) => {
5390
5443
  switch (device) {
@@ -5453,8 +5506,8 @@ var ImageGalleryNode = (props) => {
5453
5506
  right: "justify-end"
5454
5507
  };
5455
5508
  const formatClasses = FormatClass[props.node.format || ""] || "";
5456
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_jsx_runtime69.Fragment, { children: [
5457
- hlsSources.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_jsx_runtime69.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
5509
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(import_jsx_runtime70.Fragment, { children: [
5510
+ hlsSources.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_jsx_runtime70.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
5458
5511
  HlsPlayer3,
5459
5512
  {
5460
5513
  sources: hlsSources,
@@ -5468,14 +5521,14 @@ var ImageGalleryNode = (props) => {
5468
5521
  session: props.session
5469
5522
  }
5470
5523
  ) }),
5471
- staticFallback && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_jsx_runtime69.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("picture", { children: [
5524
+ staticFallback && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_jsx_runtime70.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("picture", { children: [
5472
5525
  DEVICE_ORDER.map((deviceKey) => {
5473
5526
  const match = staticSources.find((img) => img.device === deviceKey);
5474
5527
  if (!match) return null;
5475
5528
  const srcUrl = resolveImageUrl(match.imageUrl);
5476
5529
  if (!srcUrl) return null;
5477
5530
  const mediaQuery = deviceToMediaQuery(match.device);
5478
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
5531
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
5479
5532
  "source",
5480
5533
  {
5481
5534
  media: mediaQuery,
@@ -5499,7 +5552,7 @@ var ImageGalleryNode = (props) => {
5499
5552
  if (img.borderRadius) styles.borderRadius = img.borderRadius;
5500
5553
  return (
5501
5554
  // eslint-disable-next-line @next/next/no-img-element
5502
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
5555
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
5503
5556
  "img",
5504
5557
  {
5505
5558
  loading: "lazy",
@@ -5519,8 +5572,8 @@ var ImageGalleryNode = (props) => {
5519
5572
  var ImageGalleryNode_default = ImageGalleryNode;
5520
5573
 
5521
5574
  // src/components/pageRenderingEngine/nodes/DivContainer.tsx
5522
- var import_link2 = __toESM(require("next/link"));
5523
- var import_jsx_runtime70 = require("react/jsx-runtime");
5575
+ var import_link3 = __toESM(require("next/link"));
5576
+ var import_jsx_runtime71 = require("react/jsx-runtime");
5524
5577
  function toCamelCase(str) {
5525
5578
  return str.replace(/-([a-z])/g, (_, letter) => letter.toUpperCase());
5526
5579
  }
@@ -5725,7 +5778,7 @@ var DivContainer = async (props) => {
5725
5778
  response = await serviceClient.get(endpoint);
5726
5779
  result = response?.result;
5727
5780
  if (dataBindingProperties.showNoResultsMessage && (result === void 0 || result.length == 0)) {
5728
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(NoDataFound_default, {});
5781
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(NoDataFound_default, {});
5729
5782
  }
5730
5783
  if (dataBindingProperties.childCollectionName && props.dataitem) {
5731
5784
  childCollectionData = getNestedValue2(props.dataitem, dataBindingProperties.childCollectionName);
@@ -5742,7 +5795,7 @@ var DivContainer = async (props) => {
5742
5795
  }
5743
5796
  const SelectedNode = NodeTypes2[node.type];
5744
5797
  if (!SelectedNode) return null;
5745
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react52.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
5798
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_react52.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
5746
5799
  SelectedNode,
5747
5800
  {
5748
5801
  node,
@@ -5812,7 +5865,7 @@ var DivContainer = async (props) => {
5812
5865
  wrapperProps = { ...props.node.componentProperties, "slidesToShow": slidesToShow };
5813
5866
  break;
5814
5867
  case !!(props.node.href || props.href):
5815
- Wrapper = import_link2.default;
5868
+ Wrapper = import_link3.default;
5816
5869
  let href = props.node.href || props.href;
5817
5870
  if (href?.includes("{")) {
5818
5871
  href = resolveHrefTemplate(href, props.dataitem);
@@ -5844,9 +5897,9 @@ var DivContainer = async (props) => {
5844
5897
  props.node.autoFormat && "auto-format",
5845
5898
  props.node.bgClass
5846
5899
  ].filter(Boolean).join(" ");
5847
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(import_react52.default.Fragment, { children: [
5848
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("style", { dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS } }),
5849
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react52.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
5900
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(import_react52.default.Fragment, { children: [
5901
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("style", { dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS } }),
5902
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_react52.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
5850
5903
  Wrapper,
5851
5904
  {
5852
5905
  id: guid,
@@ -5855,18 +5908,18 @@ var DivContainer = async (props) => {
5855
5908
  ...wrapperProps,
5856
5909
  children: dataToRender.map(
5857
5910
  (item, idx) => item?.links?.view && renderLink ? renderChildren(props.node.children, props, item, idx, props.href ? void 0 : item?.links?.view)?.map(
5858
- (child, i) => /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react52.default.Fragment, { children: child }, i)
5911
+ (child, i) => /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_react52.default.Fragment, { children: child }, i)
5859
5912
  ) : renderChildren(props.node.children, props, item, idx)
5860
5913
  )
5861
5914
  }
5862
5915
  ) }),
5863
- dataBindingProperties && props.node.dataBinding.enablePagination && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Pagination_default, { path: props.path, query: props.query, dataset: response }) })
5916
+ dataBindingProperties && props.node.dataBinding.enablePagination && /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Pagination_default, { path: props.path, query: props.query, dataset: response }) })
5864
5917
  ] });
5865
5918
  };
5866
5919
  var DivContainer_default = DivContainer;
5867
5920
 
5868
5921
  // src/components/pageRenderingEngine/PageBodyRenderer.tsx
5869
- var import_jsx_runtime71 = require("react/jsx-runtime");
5922
+ var import_jsx_runtime72 = require("react/jsx-runtime");
5870
5923
  var NodeTypes = {
5871
5924
  ["paragraph"]: ParagraphNode_default,
5872
5925
  ["heading"]: HeadingNode_default,
@@ -5894,11 +5947,11 @@ var PageBodyRenderer = (props) => {
5894
5947
  if (pageBodyTree && pageBodyTree.root) {
5895
5948
  rootNode = pageBodyTree.root;
5896
5949
  }
5897
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_react53.default.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
5950
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_react53.default.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
5898
5951
  {
5899
5952
  }
5900
5953
  const SelectedNode = NodeTypes[node.type];
5901
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_react53.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_react53.default.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_react53.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
5954
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_react53.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_react53.default.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_react53.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
5902
5955
  SelectedNode,
5903
5956
  {
5904
5957
  node,
@@ -5914,7 +5967,7 @@ var PageBodyRenderer = (props) => {
5914
5967
  device: props.device,
5915
5968
  widgetRenderer: props.widgetRenderer
5916
5969
  }
5917
- ) }) : /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_react53.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
5970
+ ) }) : /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_react53.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
5918
5971
  SelectedNode,
5919
5972
  {
5920
5973
  node,
@@ -5937,7 +5990,7 @@ var PageBodyRenderer_default = PageBodyRenderer;
5937
5990
  // src/components/Toast.tsx
5938
5991
  var import_react54 = require("react");
5939
5992
  init_ToastService();
5940
- var import_jsx_runtime72 = require("react/jsx-runtime");
5993
+ var import_jsx_runtime73 = require("react/jsx-runtime");
5941
5994
  var Toast = () => {
5942
5995
  const [showToast, setShowToast] = (0, import_react54.useState)(false);
5943
5996
  const [message, setMessage] = (0, import_react54.useState)("");
@@ -5980,8 +6033,8 @@ var Toast = () => {
5980
6033
  const closeToast = () => {
5981
6034
  setShowToast(false);
5982
6035
  };
5983
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_jsx_runtime72.Fragment, { children: showToast && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("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__ */ (0, import_jsx_runtime72.jsxs)("div", { className: `w-full items-center flex justify-between p-3 rounded-md relative shadow border bg-${messageType}-soft`, children: [
5984
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
6036
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_jsx_runtime73.Fragment, { children: showToast && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("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__ */ (0, import_jsx_runtime73.jsxs)("div", { className: `w-full items-center flex justify-between p-3 rounded-md relative shadow border bg-${messageType}-soft`, children: [
6037
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
5985
6038
  "span",
5986
6039
  {
5987
6040
  className: "font-medium text-inherit text-sm",
@@ -5989,7 +6042,7 @@ var Toast = () => {
5989
6042
  children: message
5990
6043
  }
5991
6044
  ),
5992
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("button", { className: "absolute right-2 top-2 ml-2 focus:outline-none", onClick: closeToast, children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
6045
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("button", { className: "absolute right-2 top-2 ml-2 focus:outline-none", onClick: closeToast, children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
5993
6046
  "svg",
5994
6047
  {
5995
6048
  xmlns: "http://www.w3.org/2000/svg",
@@ -5997,7 +6050,7 @@ var Toast = () => {
5997
6050
  fill: "none",
5998
6051
  viewBox: "0 0 24 24",
5999
6052
  stroke: "currentColor",
6000
- children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M6 18L18 6M6 6l12 12" })
6053
+ children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M6 18L18 6M6 6l12 12" })
6001
6054
  }
6002
6055
  ) })
6003
6056
  ] }) }) });
@@ -6006,47 +6059,6 @@ var Toast_default = Toast;
6006
6059
 
6007
6060
  // src/index.ts
6008
6061
  init_ToastService();
6009
-
6010
- // src/components/NavigationTabsV2.tsx
6011
- var import_link3 = __toESM(require("next/link"));
6012
- var import_navigation3 = require("next/navigation");
6013
- var import_jsx_runtime73 = require("react/jsx-runtime");
6014
- function resolveRoutePlaceholders2(route, params) {
6015
- return route.replace(/\{([^}]+)\}/g, (match, key) => {
6016
- const value = params[key];
6017
- if (value === void 0 || value === null) {
6018
- console.warn(`No value found for route param: ${key}`);
6019
- return "";
6020
- }
6021
- return value;
6022
- });
6023
- }
6024
- var NavigationTabsV2 = ({ tabs, params = {} }) => {
6025
- const pathname = (0, import_navigation3.usePathname)();
6026
- const shouldHideTabs = pathname?.includes("/add");
6027
- if (shouldHideTabs) return null;
6028
- const mappedTabs = tabs?.sort((a, b) => a.displayOrder - b.displayOrder)?.map((tab) => ({
6029
- tabTitle: tab.tabTitle,
6030
- displayOrder: tab.displayOrder,
6031
- landingPageUrl: resolveRoutePlaceholders2(
6032
- tab.landingPageUrl,
6033
- params
6034
- ),
6035
- isActive: tab.isActive
6036
- })) || [];
6037
- if (mappedTabs.length === 0) return null;
6038
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "flex border-b bg-white rounded-t mb-3", children: mappedTabs.map(({ tabTitle, landingPageUrl, isActive }) => {
6039
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_link3.default, { href: landingPageUrl, className: "-mb-px", children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
6040
- "div",
6041
- {
6042
- className: `text-sm font-medium border-b-2 px-6 py-2 transition
6043
- ${isActive ? "bg-info-base" : "bg-neutral-weak "}`,
6044
- children: tabTitle
6045
- }
6046
- ) }, landingPageUrl);
6047
- }) });
6048
- };
6049
- var NavigationTabsV2_default = NavigationTabsV2;
6050
6062
  // Annotate the CommonJS export names for ESM import in node:
6051
6063
  0 && (module.exports = {
6052
6064
  BooleanSelect,