@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260709115728 → 0.8.1-dev.20260711052655

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
@@ -1,5 +1,3 @@
1
- "use client";
2
-
3
1
  "use strict";
4
2
  var __create = Object.create;
5
3
  var __defProp = Object.defineProperty;
@@ -807,13 +805,101 @@ var init_DateTimeViewClient = __esm({
807
805
  }
808
806
  });
809
807
 
808
+ // src/components/controls/view/VideoView.tsx
809
+ var import_jsx_runtime18, parseAssets, VideoView, VideoView_default;
810
+ var init_VideoView = __esm({
811
+ "src/components/controls/view/VideoView.tsx"() {
812
+ "use strict";
813
+ init_AssetUtility();
814
+ import_jsx_runtime18 = require("react/jsx-runtime");
815
+ parseAssets = (value) => {
816
+ if (!value) return [];
817
+ if (Array.isArray(value)) {
818
+ return value;
819
+ }
820
+ if (typeof value === "string") {
821
+ const trimmed = value.trim();
822
+ if (!trimmed) return [];
823
+ try {
824
+ const parsed = JSON.parse(trimmed);
825
+ if (Array.isArray(parsed)) {
826
+ return parsed;
827
+ }
828
+ if (parsed && typeof parsed === "object") {
829
+ return [parsed];
830
+ }
831
+ } catch {
832
+ return [{ assetUrl: trimmed }];
833
+ }
834
+ return [{ assetUrl: trimmed }];
835
+ }
836
+ if (typeof value === "object") {
837
+ return [value];
838
+ }
839
+ return [];
840
+ };
841
+ VideoView = (props) => {
842
+ const assets = parseAssets(props.value);
843
+ const asset = assets.find((item) => item.type?.toLowerCase() === "video") ?? assets[0];
844
+ if (!asset?.assetUrl) {
845
+ return null;
846
+ }
847
+ const resolvedAssetUrl = AssetUtility_default.resolveUrl(props.assetBaseUrl ?? props.apiBaseUrl, asset.assetUrl);
848
+ const resolvedPosterUrl = asset.posterUrl ? AssetUtility_default.resolveUrl(props.assetBaseUrl ?? props.apiBaseUrl, asset.posterUrl) : void 0;
849
+ const isHls = resolvedAssetUrl?.endsWith(".m3u8");
850
+ const isVideoFile = /\.(mp4|webm|ogg|mov)$/i.test(resolvedAssetUrl ?? "");
851
+ const titleText = typeof asset.title === "string" ? asset.title : typeof props.customProps?.title === "string" ? props.customProps.title : "Video";
852
+ const fileName = typeof asset.title === "string" ? asset.title : asset.assetUrl?.split("/").pop() || "video";
853
+ const containerStyle = {
854
+ width: props.width || "100%"
855
+ };
856
+ const renderMedia = () => {
857
+ if (resolvedAssetUrl && isVideoFile) {
858
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "w-full overflow-hidden rounded-lg bg-black", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
859
+ "video",
860
+ {
861
+ controls: true,
862
+ playsInline: true,
863
+ preload: "metadata",
864
+ poster: resolvedPosterUrl,
865
+ className: "w-full h-auto max-h-[70vh] object-contain bg-black",
866
+ style: { width: "100%" },
867
+ children: [
868
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("source", { src: resolvedAssetUrl }),
869
+ "Your browser does not support the video tag."
870
+ ]
871
+ }
872
+ ) });
873
+ }
874
+ return null;
875
+ };
876
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { style: containerStyle, className: "flex flex-col gap-2", children: [
877
+ titleText ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "font-medium text-sm", children: titleText }) : null,
878
+ renderMedia(),
879
+ resolvedAssetUrl ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
880
+ "a",
881
+ {
882
+ href: resolvedAssetUrl,
883
+ download: fileName,
884
+ target: "_blank",
885
+ rel: "noreferrer",
886
+ className: "inline-flex w-fit items-center rounded-md border border-slate-300 px-3 py-2 text-sm font-medium text-slate-700 hover:bg-slate-50",
887
+ children: "Download video"
888
+ }
889
+ ) : null
890
+ ] });
891
+ };
892
+ VideoView_default = VideoView;
893
+ }
894
+ });
895
+
810
896
  // src/components/controls/edit/MultilineTextInput.tsx
811
- var import_react16, import_jsx_runtime19, MultilineTextInput, MultilineTextInput_default;
897
+ var import_react16, import_jsx_runtime20, MultilineTextInput, MultilineTextInput_default;
812
898
  var init_MultilineTextInput = __esm({
813
899
  "src/components/controls/edit/MultilineTextInput.tsx"() {
814
900
  "use strict";
815
901
  import_react16 = __toESM(require("react"));
816
- import_jsx_runtime19 = require("react/jsx-runtime");
902
+ import_jsx_runtime20 = require("react/jsx-runtime");
817
903
  MultilineTextInput = (props) => {
818
904
  const textChangeHandler = (event) => {
819
905
  const text = event.target.value;
@@ -832,11 +918,11 @@ var init_MultilineTextInput = __esm({
832
918
  if (props.value !== void 0 && props.value !== null) {
833
919
  value = props.value;
834
920
  }
835
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_react16.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("label", { className: "block mb-1", children: [
836
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
921
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react16.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("label", { className: "block mb-1", children: [
922
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
837
923
  " ",
838
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "bg-error-weak", children: "*" }),
839
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
924
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "bg-error-weak", children: "*" }),
925
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
840
926
  "textarea",
841
927
  {
842
928
  name: props.name,
@@ -853,7 +939,7 @@ var init_MultilineTextInput = __esm({
853
939
  className: "peer mt-1 py-1.5 block w-full rounded shadow-sm input"
854
940
  }
855
941
  ),
856
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
942
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
857
943
  ] }) });
858
944
  };
859
945
  MultilineTextInput_default = MultilineTextInput;
@@ -861,12 +947,12 @@ var init_MultilineTextInput = __esm({
861
947
  });
862
948
 
863
949
  // src/components/controls/edit/LineTextInput.tsx
864
- var import_react17, import_jsx_runtime20, LineTextInput, LineTextInput_default;
950
+ var import_react17, import_jsx_runtime21, LineTextInput, LineTextInput_default;
865
951
  var init_LineTextInput = __esm({
866
952
  "src/components/controls/edit/LineTextInput.tsx"() {
867
953
  "use strict";
868
954
  import_react17 = __toESM(require("react"));
869
- import_jsx_runtime20 = require("react/jsx-runtime");
955
+ import_jsx_runtime21 = require("react/jsx-runtime");
870
956
  LineTextInput = (props) => {
871
957
  const textChangeHandler = (event) => {
872
958
  const text = event.target.value;
@@ -885,11 +971,11 @@ var init_LineTextInput = __esm({
885
971
  if (props.value !== void 0 && props.value !== null) {
886
972
  value = props.value;
887
973
  }
888
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react17.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("label", { className: "block", children: [
889
- props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "text-sm inline-block pb-1 font-medium ", children: props?.attributes?.label }),
974
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_react17.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("label", { className: "block", children: [
975
+ props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "text-sm inline-block pb-1 font-medium ", children: props?.attributes?.label }),
890
976
  " ",
891
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "bg-error-weak !bg-transparent", children: "*" }),
892
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
977
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "bg-error-weak !bg-transparent", children: "*" }),
978
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
893
979
  "input",
894
980
  {
895
981
  type: "text",
@@ -909,7 +995,7 @@ var init_LineTextInput = __esm({
909
995
  `
910
996
  }
911
997
  ),
912
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
998
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
913
999
  ] }) });
914
1000
  };
915
1001
  LineTextInput_default = LineTextInput;
@@ -917,12 +1003,12 @@ var init_LineTextInput = __esm({
917
1003
  });
918
1004
 
919
1005
  // src/components/controls/edit/MoneyInput.tsx
920
- var import_react18, import_jsx_runtime21, MoneyInput, MoneyInput_default;
1006
+ var import_react18, import_jsx_runtime22, MoneyInput, MoneyInput_default;
921
1007
  var init_MoneyInput = __esm({
922
1008
  "src/components/controls/edit/MoneyInput.tsx"() {
923
1009
  "use strict";
924
1010
  import_react18 = __toESM(require("react"));
925
- import_jsx_runtime21 = require("react/jsx-runtime");
1011
+ import_jsx_runtime22 = require("react/jsx-runtime");
926
1012
  MoneyInput = (props) => {
927
1013
  const textChangeHandler = (event) => {
928
1014
  const rawValue = event.target.value;
@@ -951,11 +1037,11 @@ var init_MoneyInput = __esm({
951
1037
  e.preventDefault();
952
1038
  }
953
1039
  };
954
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_react18.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("label", { className: "block mb-1", children: [
955
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
1040
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_react18.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("label", { className: "block mb-1", children: [
1041
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
956
1042
  " ",
957
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "bg-error-weak", children: "*" }),
958
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1043
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "bg-error-weak", children: "*" }),
1044
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
959
1045
  "input",
960
1046
  {
961
1047
  type: "number",
@@ -975,7 +1061,7 @@ var init_MoneyInput = __esm({
975
1061
  className: "peer mt-1 py-1.5 block w-full rounded shadow-sm number-input"
976
1062
  }
977
1063
  ),
978
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
1064
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
979
1065
  ] }) });
980
1066
  };
981
1067
  MoneyInput_default = MoneyInput;
@@ -1008,19 +1094,20 @@ var init_InputControlType = __esm({
1008
1094
  selectWithSearchInput: "selectWithSearchInput",
1009
1095
  selectWithSearchPanel: "selectWithSearchPanel",
1010
1096
  booleanSelect: "booleanSelect",
1011
- switchInput: "switchInput"
1097
+ switchInput: "switchInput",
1098
+ videoInput: "videoInput"
1012
1099
  };
1013
1100
  InputControlType_default = InputControlType;
1014
1101
  }
1015
1102
  });
1016
1103
 
1017
1104
  // src/components/controls/edit/Select.tsx
1018
- var import_react19, import_jsx_runtime22, Select, Select_default;
1105
+ var import_react19, import_jsx_runtime23, Select, Select_default;
1019
1106
  var init_Select = __esm({
1020
1107
  "src/components/controls/edit/Select.tsx"() {
1021
1108
  "use strict";
1022
1109
  import_react19 = require("react");
1023
- import_jsx_runtime22 = require("react/jsx-runtime");
1110
+ import_jsx_runtime23 = require("react/jsx-runtime");
1024
1111
  Select = (props) => {
1025
1112
  const [list, setList] = (0, import_react19.useState)([]);
1026
1113
  const getSafeValue = (val) => {
@@ -1078,11 +1165,11 @@ var init_Select = __esm({
1078
1165
  props.dataSourceDependsOn
1079
1166
  ]);
1080
1167
  const value = getSafeValue(props.value);
1081
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("label", { className: "block", children: [
1082
- props.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "text-sm font-medium inline-block pb-1", children: props.attributes?.label }),
1168
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("label", { className: "block", children: [
1169
+ props.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "text-sm font-medium inline-block pb-1", children: props.attributes?.label }),
1083
1170
  " ",
1084
- props.attributes?.label && props.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "bg-error-weak", children: "*" }),
1085
- /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
1171
+ props.attributes?.label && props.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "bg-error-weak", children: "*" }),
1172
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
1086
1173
  "select",
1087
1174
  {
1088
1175
  name: props.name,
@@ -1093,16 +1180,16 @@ var init_Select = __esm({
1093
1180
  disabled: props.attributes?.readOnly,
1094
1181
  className: "peer select py-1.5 block w-full text-black rounded border-gray-300 shadow-sm\n focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50\n disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none",
1095
1182
  children: [
1096
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("option", { value: "", children: props.attributes?.placeholder || "Select" }),
1183
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("option", { value: "", children: props.attributes?.placeholder || "Select" }),
1097
1184
  list.map((item, index) => {
1098
1185
  const keyField = props.dataKeyFieldName;
1099
1186
  const textField = props.dataTextFieldName;
1100
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("option", { value: item[keyField], children: item[textField] }, index);
1187
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("option", { value: item[keyField], children: item[textField] }, index);
1101
1188
  })
1102
1189
  ]
1103
1190
  }
1104
1191
  ),
1105
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 text-alert text-sm", children: props.attributes?.errorMessage || "" })
1192
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 text-alert text-sm", children: props.attributes?.errorMessage || "" })
1106
1193
  ] });
1107
1194
  };
1108
1195
  Select_default = Select;
@@ -1110,12 +1197,12 @@ var init_Select = __esm({
1110
1197
  });
1111
1198
 
1112
1199
  // src/components/controls/edit/PercentageInput.tsx
1113
- var import_react20, import_jsx_runtime23, PercentageInput, PercentageInput_default;
1200
+ var import_react20, import_jsx_runtime24, PercentageInput, PercentageInput_default;
1114
1201
  var init_PercentageInput = __esm({
1115
1202
  "src/components/controls/edit/PercentageInput.tsx"() {
1116
1203
  "use strict";
1117
1204
  import_react20 = __toESM(require("react"));
1118
- import_jsx_runtime23 = require("react/jsx-runtime");
1205
+ import_jsx_runtime24 = require("react/jsx-runtime");
1119
1206
  PercentageInput = (props) => {
1120
1207
  const textChangeHandler = (event) => {
1121
1208
  const rawValue = event.target.value;
@@ -1144,11 +1231,11 @@ var init_PercentageInput = __esm({
1144
1231
  e.preventDefault();
1145
1232
  }
1146
1233
  };
1147
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react20.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("label", { className: "block mb-1", children: [
1148
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label ? props?.attributes?.label + " %" : "" }),
1234
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react20.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("label", { className: "block mb-1", children: [
1235
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label ? props?.attributes?.label + " %" : "" }),
1149
1236
  " ",
1150
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "bg-error-weak", children: "*" }),
1151
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1237
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "bg-error-weak", children: "*" }),
1238
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1152
1239
  "input",
1153
1240
  {
1154
1241
  type: "number",
@@ -1167,7 +1254,7 @@ var init_PercentageInput = __esm({
1167
1254
  className: "peer mt-1 py-1.5 block w-full rounded shadow-sm number-input"
1168
1255
  }
1169
1256
  ),
1170
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
1257
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
1171
1258
  ] }) });
1172
1259
  };
1173
1260
  PercentageInput_default = PercentageInput;
@@ -1175,12 +1262,12 @@ var init_PercentageInput = __esm({
1175
1262
  });
1176
1263
 
1177
1264
  // src/components/controls/edit/PhoneInput.tsx
1178
- var import_react21, import_jsx_runtime24, PhoneInput, PhoneInput_default;
1265
+ var import_react21, import_jsx_runtime25, PhoneInput, PhoneInput_default;
1179
1266
  var init_PhoneInput = __esm({
1180
1267
  "src/components/controls/edit/PhoneInput.tsx"() {
1181
1268
  "use strict";
1182
1269
  import_react21 = __toESM(require("react"));
1183
- import_jsx_runtime24 = require("react/jsx-runtime");
1270
+ import_jsx_runtime25 = require("react/jsx-runtime");
1184
1271
  PhoneInput = (props) => {
1185
1272
  const textChangeHandler = (event) => {
1186
1273
  const text = event.target.value;
@@ -1199,13 +1286,13 @@ var init_PhoneInput = __esm({
1199
1286
  if (props.value !== void 0 && props.value !== null) {
1200
1287
  value = props.value;
1201
1288
  }
1202
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react21.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("label", { className: "block mb-1", children: [
1203
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
1289
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_react21.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("label", { className: "block mb-1", children: [
1290
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
1204
1291
  " ",
1205
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "bg-error-weak", children: "*" }),
1206
- /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "flex items-center rounded border ", children: [
1207
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "px-3", children: props.prefix }),
1208
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1292
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "bg-error-weak", children: "*" }),
1293
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "flex items-center rounded border ", children: [
1294
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "px-3", children: props.prefix }),
1295
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1209
1296
  "input",
1210
1297
  {
1211
1298
  type: "text",
@@ -1223,7 +1310,7 @@ var init_PhoneInput = __esm({
1223
1310
  }
1224
1311
  )
1225
1312
  ] }),
1226
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
1313
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
1227
1314
  ] }) });
1228
1315
  };
1229
1316
  PhoneInput_default = PhoneInput;
@@ -1231,12 +1318,12 @@ var init_PhoneInput = __esm({
1231
1318
  });
1232
1319
 
1233
1320
  // src/components/controls/edit/NumberInput.tsx
1234
- var import_react22, import_jsx_runtime25, NumberInput, NumberInput_default;
1321
+ var import_react22, import_jsx_runtime26, NumberInput, NumberInput_default;
1235
1322
  var init_NumberInput = __esm({
1236
1323
  "src/components/controls/edit/NumberInput.tsx"() {
1237
1324
  "use strict";
1238
1325
  import_react22 = __toESM(require("react"));
1239
- import_jsx_runtime25 = require("react/jsx-runtime");
1326
+ import_jsx_runtime26 = require("react/jsx-runtime");
1240
1327
  NumberInput = (props) => {
1241
1328
  const textChangeHandler = (event) => {
1242
1329
  const text = event.target.value;
@@ -1259,11 +1346,11 @@ var init_NumberInput = __esm({
1259
1346
  if (props.value !== void 0 && props.value !== null) {
1260
1347
  value = props.value;
1261
1348
  }
1262
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_react22.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("label", { className: "block", children: [
1263
- props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "text-sm inline-block pb-1 font-medium ", children: props?.attributes?.label }),
1349
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react22.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("label", { className: "block", children: [
1350
+ props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "text-sm inline-block pb-1 font-medium ", children: props?.attributes?.label }),
1264
1351
  " ",
1265
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "bg-error-weak", children: "*" }),
1266
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1352
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "bg-error-weak", children: "*" }),
1353
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1267
1354
  "input",
1268
1355
  {
1269
1356
  type: "number",
@@ -1282,7 +1369,7 @@ var init_NumberInput = __esm({
1282
1369
  className: "peer py-1.5 block w-full rounded shadow-sm number-input input\n disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none\n "
1283
1370
  }
1284
1371
  ),
1285
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
1372
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
1286
1373
  ] }) });
1287
1374
  };
1288
1375
  NumberInput_default = NumberInput;
@@ -1290,12 +1377,12 @@ var init_NumberInput = __esm({
1290
1377
  });
1291
1378
 
1292
1379
  // src/components/controls/edit/CheckboxInput.tsx
1293
- var import_react23, import_jsx_runtime26, CheckboxInput, CheckboxInput_default;
1380
+ var import_react23, import_jsx_runtime27, CheckboxInput, CheckboxInput_default;
1294
1381
  var init_CheckboxInput = __esm({
1295
1382
  "src/components/controls/edit/CheckboxInput.tsx"() {
1296
1383
  "use strict";
1297
1384
  import_react23 = __toESM(require("react"));
1298
- import_jsx_runtime26 = require("react/jsx-runtime");
1385
+ import_jsx_runtime27 = require("react/jsx-runtime");
1299
1386
  CheckboxInput = (props) => {
1300
1387
  const textChangeHandler = (event) => {
1301
1388
  let text = event.target.checked;
@@ -1312,9 +1399,9 @@ var init_CheckboxInput = __esm({
1312
1399
  if (props.value != void 0 && props.value != null && props.value != "" && (props.value == "true" || props.value.toString() == "true")) {
1313
1400
  value = true;
1314
1401
  }
1315
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react23.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "mb-1", children: [
1316
- props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_jsx_runtime26.Fragment, { children: [
1317
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1402
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react23.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "mb-1", children: [
1403
+ props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_jsx_runtime27.Fragment, { children: [
1404
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1318
1405
  "label",
1319
1406
  {
1320
1407
  htmlFor: props.name,
@@ -1322,9 +1409,9 @@ var init_CheckboxInput = __esm({
1322
1409
  children: props.attributes.label
1323
1410
  }
1324
1411
  ),
1325
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "bg-error-weak", children: "*" })
1412
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "bg-error-weak", children: "*" })
1326
1413
  ] }),
1327
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1414
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1328
1415
  "input",
1329
1416
  {
1330
1417
  type: "checkbox",
@@ -1341,7 +1428,7 @@ var init_CheckboxInput = __esm({
1341
1428
  className: "peer mt-1 py-1.5 block rounded shadow-sm\n disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none\n "
1342
1429
  }
1343
1430
  ),
1344
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage || "" })
1431
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage || "" })
1345
1432
  ] }) });
1346
1433
  };
1347
1434
  CheckboxInput_default = CheckboxInput;
@@ -1349,12 +1436,12 @@ var init_CheckboxInput = __esm({
1349
1436
  });
1350
1437
 
1351
1438
  // src/components/controls/edit/OtpInput.tsx
1352
- var import_react24, import_jsx_runtime27, OtpInput, OtpInput_default;
1439
+ var import_react24, import_jsx_runtime28, OtpInput, OtpInput_default;
1353
1440
  var init_OtpInput = __esm({
1354
1441
  "src/components/controls/edit/OtpInput.tsx"() {
1355
1442
  "use strict";
1356
1443
  import_react24 = __toESM(require("react"));
1357
- import_jsx_runtime27 = require("react/jsx-runtime");
1444
+ import_jsx_runtime28 = require("react/jsx-runtime");
1358
1445
  OtpInput = (props) => {
1359
1446
  const textChangeHandler = (event) => {
1360
1447
  const text = event.target.value;
@@ -1376,11 +1463,11 @@ var init_OtpInput = __esm({
1376
1463
  if (props.value !== void 0 && props.value !== null) {
1377
1464
  value = props.value;
1378
1465
  }
1379
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react24.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("label", { htmlFor: props.name, className: "block mb-1 w-full", children: [
1380
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
1466
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_react24.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("label", { htmlFor: props.name, className: "block mb-1 w-full", children: [
1467
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
1381
1468
  " ",
1382
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "bg-error-weak", children: "*" }),
1383
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1469
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "bg-error-weak", children: "*" }),
1470
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1384
1471
  "input",
1385
1472
  {
1386
1473
  type: "text",
@@ -1400,7 +1487,7 @@ var init_OtpInput = __esm({
1400
1487
  className: "peer mt-1 py-1.5 block w-full rounded shadow-sm tracking-[1.25em] text-center"
1401
1488
  }
1402
1489
  ),
1403
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
1490
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
1404
1491
  ] }) });
1405
1492
  };
1406
1493
  OtpInput_default = OtpInput;
@@ -1408,12 +1495,12 @@ var init_OtpInput = __esm({
1408
1495
  });
1409
1496
 
1410
1497
  // src/components/controls/edit/DateTimeInput.tsx
1411
- var import_react25, import_jsx_runtime28, DateTimeInput, DateTimeInput_default;
1498
+ var import_react25, import_jsx_runtime29, DateTimeInput, DateTimeInput_default;
1412
1499
  var init_DateTimeInput = __esm({
1413
1500
  "src/components/controls/edit/DateTimeInput.tsx"() {
1414
1501
  "use strict";
1415
1502
  import_react25 = __toESM(require("react"));
1416
- import_jsx_runtime28 = require("react/jsx-runtime");
1503
+ import_jsx_runtime29 = require("react/jsx-runtime");
1417
1504
  DateTimeInput = (props) => {
1418
1505
  const textChangeHandler = (event) => {
1419
1506
  const localDate = new Date(event.target.value);
@@ -1445,12 +1532,12 @@ var init_DateTimeInput = __esm({
1445
1532
  e.preventDefault();
1446
1533
  }
1447
1534
  };
1448
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_react25.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("label", { className: "block mb-1", children: [
1449
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
1535
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react25.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("label", { className: "block mb-1", children: [
1536
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
1450
1537
  " ",
1451
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "bg-error-weak", children: "*" }),
1452
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "flex items-center gap-2", children: [
1453
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1538
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "bg-error-weak", children: "*" }),
1539
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "flex items-center gap-2", children: [
1540
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1454
1541
  "input",
1455
1542
  {
1456
1543
  type: "datetime-local",
@@ -1468,9 +1555,9 @@ var init_DateTimeInput = __esm({
1468
1555
  className: "peer mt-1 py-1.5 block w-full rounded shadow-sm\n disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none\n "
1469
1556
  }
1470
1557
  ),
1471
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { children: timeZoneAbbr })
1558
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { children: timeZoneAbbr })
1472
1559
  ] }),
1473
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
1560
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
1474
1561
  ] }) });
1475
1562
  };
1476
1563
  DateTimeInput_default = DateTimeInput;
@@ -1478,12 +1565,12 @@ var init_DateTimeInput = __esm({
1478
1565
  });
1479
1566
 
1480
1567
  // src/components/controls/edit/ColorInput.tsx
1481
- var import_react26, import_jsx_runtime29, ColorInput, ColorInput_default;
1568
+ var import_react26, import_jsx_runtime30, ColorInput, ColorInput_default;
1482
1569
  var init_ColorInput = __esm({
1483
1570
  "src/components/controls/edit/ColorInput.tsx"() {
1484
1571
  "use strict";
1485
1572
  import_react26 = __toESM(require("react"));
1486
- import_jsx_runtime29 = require("react/jsx-runtime");
1573
+ import_jsx_runtime30 = require("react/jsx-runtime");
1487
1574
  ColorInput = (props) => {
1488
1575
  const [color, setColor] = import_react26.default.useState("#3b82f6");
1489
1576
  (0, import_react26.useEffect)(() => {
@@ -1505,11 +1592,11 @@ var init_ColorInput = __esm({
1505
1592
  });
1506
1593
  }
1507
1594
  };
1508
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("label", { className: "block mb-1", children: [
1509
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "text-sm font-medium", children: props?.attributes?.label }),
1595
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("label", { className: "block mb-1", children: [
1596
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "text-sm font-medium", children: props?.attributes?.label }),
1510
1597
  " ",
1511
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "bg-error-weak", children: "*" }),
1512
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1598
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "bg-error-weak", children: "*" }),
1599
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1513
1600
  "input",
1514
1601
  {
1515
1602
  type: "color",
@@ -1522,7 +1609,7 @@ var init_ColorInput = __esm({
1522
1609
  className: `w-[78px] h-12 block cursor-pointer`
1523
1610
  }
1524
1611
  ),
1525
- props?.attributes?.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("p", { className: "mt-1 bg-error-weak text-sm", children: props.attributes.errorMessage })
1612
+ props?.attributes?.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "mt-1 bg-error-weak text-sm", children: props.attributes.errorMessage })
1526
1613
  ] });
1527
1614
  };
1528
1615
  ColorInput_default = ColorInput;
@@ -1530,13 +1617,13 @@ var init_ColorInput = __esm({
1530
1617
  });
1531
1618
 
1532
1619
  // src/components/controls/edit/SelectWithSearchInput.tsx
1533
- var import_react27, import_jsx_runtime30, SelectWithSearchInput, SelectWithSearchInput_default;
1620
+ var import_react27, import_jsx_runtime31, SelectWithSearchInput, SelectWithSearchInput_default;
1534
1621
  var init_SelectWithSearchInput = __esm({
1535
1622
  "src/components/controls/edit/SelectWithSearchInput.tsx"() {
1536
1623
  "use strict";
1537
1624
  "use client";
1538
1625
  import_react27 = require("react");
1539
- import_jsx_runtime30 = require("react/jsx-runtime");
1626
+ import_jsx_runtime31 = require("react/jsx-runtime");
1540
1627
  SelectWithSearchInput = (props) => {
1541
1628
  const [isOpen, setIsOpen] = (0, import_react27.useState)(false);
1542
1629
  const [searchTerm, setSearchTerm] = (0, import_react27.useState)("");
@@ -1607,15 +1694,15 @@ var init_SelectWithSearchInput = __esm({
1607
1694
  });
1608
1695
  }
1609
1696
  }, [highlightedIndex]);
1610
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "relative", children: [
1611
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("label", { children: [
1697
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "relative", children: [
1698
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("label", { children: [
1612
1699
  props.attributes?.label,
1613
1700
  " ",
1614
1701
  " ",
1615
- props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "bg-error-weak", children: "*" })
1702
+ props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "bg-error-weak", children: "*" })
1616
1703
  ] }),
1617
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "relative", children: [
1618
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1704
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "relative", children: [
1705
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1619
1706
  "input",
1620
1707
  {
1621
1708
  type: "text",
@@ -1631,13 +1718,13 @@ var init_SelectWithSearchInput = __esm({
1631
1718
  className: "peer py-1.5 select block w-full text-black rounded border-gray-300 shadow-sm\n focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50\n disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none\n "
1632
1719
  }
1633
1720
  ),
1634
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1721
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1635
1722
  "button",
1636
1723
  {
1637
1724
  type: "button",
1638
1725
  onClick: () => setIsOpen(!isOpen),
1639
1726
  className: "absolute right-2 top-3 h-5 w-5 text-gray-500 focus:outline-none",
1640
- children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1727
+ children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1641
1728
  "svg",
1642
1729
  {
1643
1730
  xmlns: "http://www.w3.org/2000/svg",
@@ -1646,7 +1733,7 @@ var init_SelectWithSearchInput = __esm({
1646
1733
  strokeWidth: 1.5,
1647
1734
  stroke: "currentColor",
1648
1735
  className: "w-full h-full",
1649
- children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1736
+ children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1650
1737
  "path",
1651
1738
  {
1652
1739
  strokeLinecap: "round",
@@ -1659,12 +1746,12 @@ var init_SelectWithSearchInput = __esm({
1659
1746
  }
1660
1747
  )
1661
1748
  ] }),
1662
- isOpen && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1749
+ isOpen && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1663
1750
  "div",
1664
1751
  {
1665
1752
  ref: dropdownRef,
1666
1753
  className: "absolute z-10 mt-2 w-full bg-white border border-gray-200 rounded-md shadow-lg max-h-48 overflow-y-auto",
1667
- children: filteredItems.length > 0 ? filteredItems.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1754
+ children: filteredItems.length > 0 ? filteredItems.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1668
1755
  "button",
1669
1756
  {
1670
1757
  onClick: (e) => handleSelect(e, item),
@@ -1672,10 +1759,10 @@ var init_SelectWithSearchInput = __esm({
1672
1759
  role: "option",
1673
1760
  tabIndex: -1,
1674
1761
  onMouseEnter: () => setHighlightedIndex(index),
1675
- children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { children: item[props.dataTextFieldName] })
1762
+ children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { children: item[props.dataTextFieldName] })
1676
1763
  },
1677
1764
  item[props.dataKeyFieldName]
1678
- )) : /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "px-4 py-2 text-gray-500", children: "No results found" })
1765
+ )) : /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "px-4 py-2 text-gray-500", children: "No results found" })
1679
1766
  }
1680
1767
  )
1681
1768
  ] });
@@ -1763,7 +1850,7 @@ var init_StyleTypes = __esm({
1763
1850
  });
1764
1851
 
1765
1852
  // src/components/ClientButton.tsx
1766
- var import_react28, import_jsx_runtime31, ClientButton, ClientButton_default;
1853
+ var import_react28, import_jsx_runtime32, ClientButton, ClientButton_default;
1767
1854
  var init_ClientButton = __esm({
1768
1855
  "src/components/ClientButton.tsx"() {
1769
1856
  "use strict";
@@ -1771,7 +1858,7 @@ var init_ClientButton = __esm({
1771
1858
  import_react28 = __toESM(require("react"));
1772
1859
  init_ToastService();
1773
1860
  init_StyleTypes();
1774
- import_jsx_runtime31 = require("react/jsx-runtime");
1861
+ import_jsx_runtime32 = require("react/jsx-runtime");
1775
1862
  ClientButton = (props) => {
1776
1863
  const execute = async (event) => {
1777
1864
  if (props.onClick !== void 0) {
@@ -1781,7 +1868,7 @@ var init_ClientButton = __esm({
1781
1868
  }
1782
1869
  };
1783
1870
  let buttonClass = props.ButtonType ? buttonClasses.get(props.ButtonType) : buttonClasses.get("Primary" /* Solid */);
1784
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react28.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1871
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react28.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1785
1872
  "button",
1786
1873
  {
1787
1874
  type: "button",
@@ -1796,7 +1883,7 @@ var init_ClientButton = __esm({
1796
1883
  });
1797
1884
 
1798
1885
  // src/components/Confirm.tsx
1799
- var import_react29, import_jsx_runtime32, Confirm, Confirm_default;
1886
+ var import_react29, import_jsx_runtime33, Confirm, Confirm_default;
1800
1887
  var init_Confirm = __esm({
1801
1888
  "src/components/Confirm.tsx"() {
1802
1889
  "use strict";
@@ -1804,7 +1891,7 @@ var init_Confirm = __esm({
1804
1891
  import_react29 = require("react");
1805
1892
  init_ClientButton();
1806
1893
  init_StyleTypes();
1807
- import_jsx_runtime32 = require("react/jsx-runtime");
1894
+ import_jsx_runtime33 = require("react/jsx-runtime");
1808
1895
  Confirm = ({ message, onConfirm, onCancel }) => {
1809
1896
  const [showModal, setShowModal] = (0, import_react29.useState)(true);
1810
1897
  const handleConfirmAction = () => {
@@ -1819,13 +1906,13 @@ var init_Confirm = __esm({
1819
1906
  onCancel();
1820
1907
  }
1821
1908
  };
1822
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_jsx_runtime32.Fragment, { children: showModal && /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "fixed inset-0 flex items-center justify-center z-50", children: [
1823
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "absolute inset-0 bg-black opacity-70" }),
1824
- /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "bg-white rounded-md p-6 w-2/6 shadow border z-50", children: [
1825
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("p", { className: "text-xl font-medium mb-4", children: "Confirmation" }),
1826
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("p", { className: "mb-4", children: message }),
1827
- /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex justify-end gap-8", children: [
1828
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1909
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_jsx_runtime33.Fragment, { children: showModal && /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "fixed inset-0 flex items-center justify-center z-50", children: [
1910
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "absolute inset-0 bg-black opacity-70" }),
1911
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "bg-white rounded-md p-6 w-2/6 shadow border z-50", children: [
1912
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "text-xl font-medium mb-4", children: "Confirmation" }),
1913
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "mb-4", children: message }),
1914
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex justify-end gap-8", children: [
1915
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1829
1916
  ClientButton_default,
1830
1917
  {
1831
1918
  onClick: handleCancelAction,
@@ -1833,7 +1920,7 @@ var init_Confirm = __esm({
1833
1920
  children: "Cancel"
1834
1921
  }
1835
1922
  ),
1836
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1923
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1837
1924
  ClientButton_default,
1838
1925
  {
1839
1926
  onClick: handleConfirmAction,
@@ -1851,7 +1938,7 @@ var init_Confirm = __esm({
1851
1938
  });
1852
1939
 
1853
1940
  // src/components/Button.tsx
1854
- var import_react30, import_jsx_runtime33, Button, Button_default;
1941
+ var import_react30, import_jsx_runtime34, Button, Button_default;
1855
1942
  var init_Button = __esm({
1856
1943
  "src/components/Button.tsx"() {
1857
1944
  "use strict";
@@ -1860,7 +1947,7 @@ var init_Button = __esm({
1860
1947
  init_ToastService();
1861
1948
  init_StyleTypes();
1862
1949
  init_Confirm();
1863
- import_jsx_runtime33 = require("react/jsx-runtime");
1950
+ import_jsx_runtime34 = require("react/jsx-runtime");
1864
1951
  Button = (props) => {
1865
1952
  const [inProgress, setInProgress] = (0, import_react30.useState)(false);
1866
1953
  const [isActionPerformed, setIsActionPerformed] = (0, import_react30.useState)(false);
@@ -1909,14 +1996,14 @@ var init_Button = __esm({
1909
1996
  return new Promise((resolve) => {
1910
1997
  const onConfirm = () => resolve(true);
1911
1998
  const onCancel = () => resolve(false);
1912
- setShowModal(/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Confirm_default, { message: props.confirmationMessage, onConfirm, onCancel }));
1999
+ setShowModal(/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Confirm_default, { message: props.confirmationMessage, onConfirm, onCancel }));
1913
2000
  });
1914
2001
  };
1915
2002
  let buttonClass = props.ButtonType ? buttonClasses.get(props.ButtonType) : buttonClasses.get("Primary" /* Solid */);
1916
2003
  let progressClass = props.ButtonType ? progressClasses.get(props.ButtonType) : progressClasses.get("Primary" /* Solid */);
1917
2004
  const isDisabled = inProgress || isActionPerformed && props.oneTimeAction;
1918
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(import_react30.default.Fragment, { children: [
1919
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
2005
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_react30.default.Fragment, { children: [
2006
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
1920
2007
  "button",
1921
2008
  {
1922
2009
  type: "submit",
@@ -1926,9 +2013,9 @@ var init_Button = __esm({
1926
2013
  className: buttonClass + " relative " + props.className,
1927
2014
  children: [
1928
2015
  isActionPerformed && props.oneTimeAction && responseMessage ? responseMessage : props.children,
1929
- inProgress && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react30.default.Fragment, { children: props.hideProgressIndicator === true ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "absolute bottom-0 left-0 h-0.5 bg-gray-400 rounded animate-progress" }) : /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("svg", { className: "animate-spin ml-2 mr-3 h-5 w-5 " + progressClass, xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", children: [
1930
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("circle", { className: "opacity-25", cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "4" }),
1931
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("path", { className: "opacity-75", fill: "currentColor", d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z" })
2016
+ inProgress && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_react30.default.Fragment, { children: props.hideProgressIndicator === true ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "absolute bottom-0 left-0 h-0.5 bg-gray-400 rounded animate-progress" }) : /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("svg", { className: "animate-spin ml-2 mr-3 h-5 w-5 " + progressClass, xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", children: [
2017
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("circle", { className: "opacity-25", cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "4" }),
2018
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("path", { className: "opacity-75", fill: "currentColor", d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z" })
1932
2019
  ] }) })
1933
2020
  ]
1934
2021
  }
@@ -1941,14 +2028,14 @@ var init_Button = __esm({
1941
2028
  });
1942
2029
 
1943
2030
  // src/components/controls/edit/SelectWithSearchPanel.tsx
1944
- var import_react31, import_jsx_runtime34, SelectWithSearchPanel, SelectWithSearchPanel_default;
2031
+ var import_react31, import_jsx_runtime35, SelectWithSearchPanel, SelectWithSearchPanel_default;
1945
2032
  var init_SelectWithSearchPanel = __esm({
1946
2033
  "src/components/controls/edit/SelectWithSearchPanel.tsx"() {
1947
2034
  "use strict";
1948
2035
  "use client";
1949
2036
  init_Button();
1950
2037
  import_react31 = __toESM(require("react"));
1951
- import_jsx_runtime34 = require("react/jsx-runtime");
2038
+ import_jsx_runtime35 = require("react/jsx-runtime");
1952
2039
  SelectWithSearchPanel = (props) => {
1953
2040
  const [isOpen, setIsOpen] = (0, import_react31.useState)(false);
1954
2041
  const [searchTerm, setSearchTerm] = (0, import_react31.useState)("");
@@ -2084,14 +2171,14 @@ var init_SelectWithSearchPanel = __esm({
2084
2171
  console.log("Form Data:", formData);
2085
2172
  return formData;
2086
2173
  }, []);
2087
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "relative", children: [
2088
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("label", { className: "text-sm mb-1 font-medium", children: [
2174
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "relative", children: [
2175
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("label", { className: "text-sm mb-1 font-medium", children: [
2089
2176
  props.attributes?.label,
2090
2177
  " ",
2091
2178
  " ",
2092
- props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "bg-error-weak", children: "*" })
2179
+ props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "bg-error-weak", children: "*" })
2093
2180
  ] }),
2094
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
2181
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2095
2182
  "input",
2096
2183
  {
2097
2184
  type: "text",
@@ -2105,14 +2192,14 @@ var init_SelectWithSearchPanel = __esm({
2105
2192
  disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none`
2106
2193
  }
2107
2194
  ) }),
2108
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { ref: containerRef, children: isOpen && /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_react31.default.Fragment, { children: [
2109
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "fixed z-50 right-0 bg-white top-[62px] w-1/4 border-l border-gray-200", children: [
2110
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "flex flex-col p-2 bg-accent-950 text-white", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("h5", { className: "text-md text-white font-medium", children: [
2195
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { ref: containerRef, children: isOpen && /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_react31.default.Fragment, { children: [
2196
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "fixed z-50 right-0 bg-white top-[62px] w-1/4 border-l border-gray-200", children: [
2197
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "flex flex-col p-2 bg-accent-950 text-white", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("h5", { className: "text-md text-white font-medium", children: [
2111
2198
  "Select a",
2112
2199
  " ",
2113
2200
  props.attributes?.label || props.attributes?.heading
2114
2201
  ] }) }),
2115
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "flex justify-end px-4 border-b py-2 border-gray-200 h-10", children: props.createFields && props.createFields.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
2202
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "flex justify-end px-4 border-b py-2 border-gray-200 h-10", children: props.createFields && props.createFields.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2116
2203
  "button",
2117
2204
  {
2118
2205
  type: "button",
@@ -2125,12 +2212,12 @@ var init_SelectWithSearchPanel = __esm({
2125
2212
  }
2126
2213
  ) })
2127
2214
  ] }),
2128
- isCreateOpen && /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "fixed right-0 w-1/4 h-full top-[62px] bg-white shadow-lg border-l border-gray-200 z-50", children: [
2129
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "flex flex-col p-2 bg-accent-950", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("h5", { className: "text-md font-medium text-white", children: [
2215
+ isCreateOpen && /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "fixed right-0 w-1/4 h-full top-[62px] bg-white shadow-lg border-l border-gray-200 z-50", children: [
2216
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "flex flex-col p-2 bg-accent-950", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("h5", { className: "text-md font-medium text-white", children: [
2130
2217
  "Create New ",
2131
2218
  props.attributes?.label
2132
2219
  ] }) }),
2133
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "flex justify-end px-4 border-b py-2 border-gray-200", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
2220
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "flex justify-end px-4 border-b py-2 border-gray-200", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2134
2221
  "button",
2135
2222
  {
2136
2223
  type: "button",
@@ -2139,10 +2226,10 @@ var init_SelectWithSearchPanel = __esm({
2139
2226
  children: "Close"
2140
2227
  }
2141
2228
  ) }),
2142
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "p-4", children: [
2143
- props.createFields?.map((field) => /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "mb-4", children: [
2144
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("label", { className: "text-sm mb-1 font-medium block", children: field.label }),
2145
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
2229
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "p-4", children: [
2230
+ props.createFields?.map((field) => /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "mb-4", children: [
2231
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("label", { className: "text-sm mb-1 font-medium block", children: field.label }),
2232
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2146
2233
  "input",
2147
2234
  {
2148
2235
  type: field.type,
@@ -2158,7 +2245,7 @@ var init_SelectWithSearchPanel = __esm({
2158
2245
  }
2159
2246
  )
2160
2247
  ] }, field.name)),
2161
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(Button_default, { onClick: async () => {
2248
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(Button_default, { onClick: async () => {
2162
2249
  handleSaveModal();
2163
2250
  return { isSuccessful: true };
2164
2251
  }, className: "w-full", children: [
@@ -2167,13 +2254,13 @@ var init_SelectWithSearchPanel = __esm({
2167
2254
  ] })
2168
2255
  ] })
2169
2256
  ] }),
2170
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
2257
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2171
2258
  "div",
2172
2259
  {
2173
2260
  ref: listRef,
2174
2261
  className: "fixed z-10 right-0 mt-[130px] top-0 w-1/4 bg-white border-l border-gray-200 shadow-lg overflow-y-auto",
2175
2262
  style: { height: "calc(100vh - 130px)" },
2176
- children: filteredItems.length > 0 ? filteredItems.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
2263
+ children: filteredItems.length > 0 ? filteredItems.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2177
2264
  "button",
2178
2265
  {
2179
2266
  onClick: (e) => {
@@ -2183,9 +2270,9 @@ var init_SelectWithSearchPanel = __esm({
2183
2270
  role: "option",
2184
2271
  tabIndex: -1,
2185
2272
  onMouseEnter: () => setHighlightedIndex(index),
2186
- children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { children: getNestedValue7(item, props.dataTextFieldName) })
2273
+ children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { children: getNestedValue7(item, props.dataTextFieldName) })
2187
2274
  }
2188
- ) }, item[props.dataKeyFieldName])) : /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "px-4 py-2 text-gray-500", children: "No results found" })
2275
+ ) }, item[props.dataKeyFieldName])) : /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "px-4 py-2 text-gray-500", children: "No results found" })
2189
2276
  }
2190
2277
  )
2191
2278
  ] }) })
@@ -2196,12 +2283,12 @@ var init_SelectWithSearchPanel = __esm({
2196
2283
  });
2197
2284
 
2198
2285
  // src/components/controls/edit/BooleanSelect.tsx
2199
- var import_react32, import_jsx_runtime35, BooleanSelect, BooleanSelect_default;
2286
+ var import_react32, import_jsx_runtime36, BooleanSelect, BooleanSelect_default;
2200
2287
  var init_BooleanSelect = __esm({
2201
2288
  "src/components/controls/edit/BooleanSelect.tsx"() {
2202
2289
  "use strict";
2203
2290
  import_react32 = __toESM(require("react"));
2204
- import_jsx_runtime35 = require("react/jsx-runtime");
2291
+ import_jsx_runtime36 = require("react/jsx-runtime");
2205
2292
  BooleanSelect = (props) => {
2206
2293
  const [list, setList] = (0, import_react32.useState)();
2207
2294
  const textChangeHandler = (event) => {
@@ -2250,11 +2337,11 @@ var init_BooleanSelect = __esm({
2250
2337
  if (props.value !== void 0 && props.value !== null) {
2251
2338
  value = props.value;
2252
2339
  }
2253
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react32.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("label", { className: "block", children: [
2254
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
2340
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react32.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("label", { className: "block", children: [
2341
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
2255
2342
  " ",
2256
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "bg-error-weak", children: "*" }),
2257
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
2343
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "bg-error-weak", children: "*" }),
2344
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
2258
2345
  "select",
2259
2346
  {
2260
2347
  name: props.name,
@@ -2266,9 +2353,9 @@ var init_BooleanSelect = __esm({
2266
2353
  disabled: props?.attributes?.readOnly,
2267
2354
  className: "peer mt-1 py-1.5 block w-full text-black rounded shadow-sm\n disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none\n ",
2268
2355
  children: [
2269
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("option", { className: "", value: "", children: props.attributes?.placeholder || "Select" }),
2356
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("option", { className: "", value: "", children: props.attributes?.placeholder || "Select" }),
2270
2357
  list && list.map((item, i) => {
2271
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2358
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
2272
2359
  "option",
2273
2360
  {
2274
2361
  className: "fac-select-option",
@@ -2281,7 +2368,7 @@ var init_BooleanSelect = __esm({
2281
2368
  ]
2282
2369
  }
2283
2370
  ),
2284
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
2371
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
2285
2372
  ] }) });
2286
2373
  };
2287
2374
  BooleanSelect_default = BooleanSelect;
@@ -2289,12 +2376,12 @@ var init_BooleanSelect = __esm({
2289
2376
  });
2290
2377
 
2291
2378
  // src/components/controls/edit/EmailInput.tsx
2292
- var import_react33, import_jsx_runtime36, EmailInput, EmailInput_default;
2379
+ var import_react33, import_jsx_runtime37, EmailInput, EmailInput_default;
2293
2380
  var init_EmailInput = __esm({
2294
2381
  "src/components/controls/edit/EmailInput.tsx"() {
2295
2382
  "use strict";
2296
2383
  import_react33 = __toESM(require("react"));
2297
- import_jsx_runtime36 = require("react/jsx-runtime");
2384
+ import_jsx_runtime37 = require("react/jsx-runtime");
2298
2385
  EmailInput = (props) => {
2299
2386
  const textChangeHandler = (event) => {
2300
2387
  const text = event.target.value;
@@ -2319,11 +2406,11 @@ var init_EmailInput = __esm({
2319
2406
  if (props.value !== void 0 && props.value !== null) {
2320
2407
  value = props.value;
2321
2408
  }
2322
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react33.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("label", { className: "block mb-1", children: [
2323
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "text-sm font-medium text-slate-700", children: props?.attributes?.label }),
2409
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_react33.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("label", { className: "block mb-1", children: [
2410
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "text-sm font-medium text-slate-700", children: props?.attributes?.label }),
2324
2411
  " ",
2325
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "bg-error-weak", children: "*" }),
2326
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
2412
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "bg-error-weak", children: "*" }),
2413
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2327
2414
  "input",
2328
2415
  {
2329
2416
  type: "email",
@@ -2339,7 +2426,7 @@ var init_EmailInput = __esm({
2339
2426
  className: "peer mt-1 py-1.5 block w-full rounded shadow-sm\n transition-all duration-500 ease-in-out"
2340
2427
  }
2341
2428
  ),
2342
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 mb-0 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
2429
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 mb-0 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
2343
2430
  ] }) });
2344
2431
  };
2345
2432
  EmailInput_default = EmailInput;
@@ -2347,13 +2434,13 @@ var init_EmailInput = __esm({
2347
2434
  });
2348
2435
 
2349
2436
  // src/components/controls/edit/TimeInput.tsx
2350
- var import_react34, import_jsx_runtime37, TimeInput, TimeInput_default;
2437
+ var import_react34, import_jsx_runtime38, TimeInput, TimeInput_default;
2351
2438
  var init_TimeInput = __esm({
2352
2439
  "src/components/controls/edit/TimeInput.tsx"() {
2353
2440
  "use strict";
2354
2441
  "use client";
2355
2442
  import_react34 = __toESM(require("react"));
2356
- import_jsx_runtime37 = require("react/jsx-runtime");
2443
+ import_jsx_runtime38 = require("react/jsx-runtime");
2357
2444
  TimeInput = (props) => {
2358
2445
  const timeChangeHandler = (event) => {
2359
2446
  const timeValue = event.target.value;
@@ -2366,11 +2453,11 @@ var init_TimeInput = __esm({
2366
2453
  });
2367
2454
  }
2368
2455
  };
2369
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_react34.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("label", { className: "block mb-1", children: [
2370
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "text-sm font-medium", children: props?.attributes?.label }),
2456
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_react34.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("label", { className: "block mb-1", children: [
2457
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "text-sm font-medium", children: props?.attributes?.label }),
2371
2458
  " ",
2372
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "bg-error-weak", children: "*" }),
2373
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2459
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "bg-error-weak", children: "*" }),
2460
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2374
2461
  "input",
2375
2462
  {
2376
2463
  type: "time",
@@ -2383,7 +2470,7 @@ var init_TimeInput = __esm({
2383
2470
  className: "peer mt-1 py-1.5 block w-full rounded shadow-sm\n disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none"
2384
2471
  }
2385
2472
  ) }),
2386
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ?? "" })
2473
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ?? "" })
2387
2474
  ] }) });
2388
2475
  };
2389
2476
  TimeInput_default = TimeInput;
@@ -2398,7 +2485,7 @@ function Hyperlink(props) {
2398
2485
  if (target == "_blank") {
2399
2486
  additionalProps.rel = "noopener noreferrer";
2400
2487
  }
2401
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_jsx_runtime38.Fragment, { children: props.href ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2488
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_jsx_runtime39.Fragment, { children: props.href ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2402
2489
  import_link.default,
2403
2490
  {
2404
2491
  href: props.href,
@@ -2408,65 +2495,65 @@ function Hyperlink(props) {
2408
2495
  target,
2409
2496
  children: props.children
2410
2497
  }
2411
- ) : props.isHeading ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("h5", { className: props.className + "inline-block", children: props.children }) : /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: props.className, children: props.children }) });
2498
+ ) : props.isHeading ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("h5", { className: props.className + "inline-block", children: props.children }) : /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { className: props.className, children: props.children }) });
2412
2499
  }
2413
- var import_link, import_jsx_runtime38;
2500
+ var import_link, import_jsx_runtime39;
2414
2501
  var init_Hyperlink = __esm({
2415
2502
  "src/components/dataForm/Hyperlink.tsx"() {
2416
2503
  "use strict";
2417
2504
  import_link = __toESM(require("next/link"));
2418
2505
  init_StyleTypes();
2419
- import_jsx_runtime38 = require("react/jsx-runtime");
2506
+ import_jsx_runtime39 = require("react/jsx-runtime");
2420
2507
  }
2421
2508
  });
2422
2509
 
2423
2510
  // src/svg/chevron-updown.tsx
2424
- var import_jsx_runtime39, ChevronUpDown, chevron_updown_default;
2511
+ var import_jsx_runtime40, ChevronUpDown, chevron_updown_default;
2425
2512
  var init_chevron_updown = __esm({
2426
2513
  "src/svg/chevron-updown.tsx"() {
2427
2514
  "use strict";
2428
- import_jsx_runtime39 = require("react/jsx-runtime");
2515
+ import_jsx_runtime40 = require("react/jsx-runtime");
2429
2516
  ChevronUpDown = (props) => {
2430
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: props.className, children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9" }) });
2517
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: props.className, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9" }) });
2431
2518
  };
2432
2519
  chevron_updown_default = ChevronUpDown;
2433
2520
  }
2434
2521
  });
2435
2522
 
2436
2523
  // src/svg/chevron-down.tsx
2437
- var import_jsx_runtime40, ChevronDown, chevron_down_default;
2524
+ var import_jsx_runtime41, ChevronDown, chevron_down_default;
2438
2525
  var init_chevron_down = __esm({
2439
2526
  "src/svg/chevron-down.tsx"() {
2440
2527
  "use strict";
2441
- import_jsx_runtime40 = require("react/jsx-runtime");
2528
+ import_jsx_runtime41 = require("react/jsx-runtime");
2442
2529
  ChevronDown = (props) => {
2443
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: props.className, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M19.5 8.25l-7.5 7.5-7.5-7.5" }) });
2530
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: props.className, children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M19.5 8.25l-7.5 7.5-7.5-7.5" }) });
2444
2531
  };
2445
2532
  chevron_down_default = ChevronDown;
2446
2533
  }
2447
2534
  });
2448
2535
 
2449
2536
  // src/svg/chevron-up.tsx
2450
- var import_jsx_runtime41, ChevronUp, chevron_up_default;
2537
+ var import_jsx_runtime42, ChevronUp, chevron_up_default;
2451
2538
  var init_chevron_up = __esm({
2452
2539
  "src/svg/chevron-up.tsx"() {
2453
2540
  "use strict";
2454
- import_jsx_runtime41 = require("react/jsx-runtime");
2541
+ import_jsx_runtime42 = require("react/jsx-runtime");
2455
2542
  ChevronUp = (props) => {
2456
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: props.className, children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M4.5 15.75l7.5-7.5 7.5 7.5" }) });
2543
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: props.className, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M4.5 15.75l7.5-7.5 7.5 7.5" }) });
2457
2544
  };
2458
2545
  chevron_up_default = ChevronUp;
2459
2546
  }
2460
2547
  });
2461
2548
 
2462
2549
  // src/svg/plus.tsx
2463
- var import_jsx_runtime42, Plus, plus_default;
2550
+ var import_jsx_runtime43, Plus, plus_default;
2464
2551
  var init_plus = __esm({
2465
2552
  "src/svg/plus.tsx"() {
2466
2553
  "use strict";
2467
- import_jsx_runtime42 = require("react/jsx-runtime");
2554
+ import_jsx_runtime43 = require("react/jsx-runtime");
2468
2555
  Plus = (props) => {
2469
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: props.className, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M12 4.5v15m7.5-7.5h-15" }) });
2556
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: props.className, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M12 4.5v15m7.5-7.5h-15" }) });
2470
2557
  };
2471
2558
  plus_default = Plus;
2472
2559
  }
@@ -2492,26 +2579,26 @@ var init_Icons = __esm({
2492
2579
  });
2493
2580
 
2494
2581
  // src/svg/Icon.tsx
2495
- var import_jsx_runtime43, Icon, Icon_default;
2582
+ var import_jsx_runtime44, Icon, Icon_default;
2496
2583
  var init_Icon = __esm({
2497
2584
  "src/svg/Icon.tsx"() {
2498
2585
  "use strict";
2499
2586
  init_Icons();
2500
- import_jsx_runtime43 = require("react/jsx-runtime");
2587
+ import_jsx_runtime44 = require("react/jsx-runtime");
2501
2588
  Icon = ({ name, className, ...props }) => {
2502
2589
  const IconComponent = Icons_default[name];
2503
2590
  if (!IconComponent) {
2504
2591
  console.error(`Icon "${name}" not found.`);
2505
2592
  return null;
2506
2593
  }
2507
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(IconComponent, { ...props, className });
2594
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(IconComponent, { ...props, className });
2508
2595
  };
2509
2596
  Icon_default = Icon;
2510
2597
  }
2511
2598
  });
2512
2599
 
2513
2600
  // src/components/controls/edit/AssetUpload.tsx
2514
- var import_react35, import_jsx_runtime44, AssetUpload, AssetUpload_default;
2601
+ var import_react35, import_jsx_runtime45, AssetUpload, AssetUpload_default;
2515
2602
  var init_AssetUpload = __esm({
2516
2603
  "src/components/controls/edit/AssetUpload.tsx"() {
2517
2604
  "use strict";
@@ -2522,7 +2609,7 @@ var init_AssetUpload = __esm({
2522
2609
  init_AssetUtility();
2523
2610
  init_Hyperlink();
2524
2611
  init_Icon();
2525
- import_jsx_runtime44 = require("react/jsx-runtime");
2612
+ import_jsx_runtime45 = require("react/jsx-runtime");
2526
2613
  AssetUpload = (props) => {
2527
2614
  const isDisabled = props.attributes?.disable ?? false;
2528
2615
  let allValues = [];
@@ -2619,10 +2706,10 @@ var init_AssetUpload = __esm({
2619
2706
  }
2620
2707
  return false;
2621
2708
  };
2622
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_react35.default.Fragment, { children: [
2623
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("label", { className: "block mb-1", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: "text-sm font-medium", children: props?.attributes?.label }) }),
2624
- /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "flex gap-6 bg-neutral-100 rounded p-2", children: [
2625
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2709
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_react35.default.Fragment, { children: [
2710
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("label", { className: "block mb-1", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { className: "text-sm font-medium", children: props?.attributes?.label }) }),
2711
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex gap-6 bg-neutral-100 rounded p-2", children: [
2712
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2626
2713
  ClientButton_default,
2627
2714
  {
2628
2715
  className: assetType === "image" ? "px-2 py-1 rounded bg-body-200 scale-95" : "text-neutral-700",
@@ -2632,7 +2719,7 @@ var init_AssetUpload = __esm({
2632
2719
  children: "Image Upload"
2633
2720
  }
2634
2721
  ),
2635
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2722
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2636
2723
  ClientButton_default,
2637
2724
  {
2638
2725
  className: assetType === "video" ? "bg-body-200 px-2 py-1 rounded-md scale-95" : "text-neutral-700",
@@ -2643,13 +2730,13 @@ var init_AssetUpload = __esm({
2643
2730
  }
2644
2731
  )
2645
2732
  ] }),
2646
- shouldShowDetails() && /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "relative mt-4 rounded-md p-4 border-2 border-dotted border-gray-300 bg-gray-50", children: [
2647
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: "absolute -top-2.5 left-3 bg-primary-600 text-white text-xs px-2 py-0.5 rounded-full", children: getAssetType(allValues[0]) === "video" ? "Video" : "Image" }),
2648
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "flex flex-col gap-3", children: allValues.map((digitalAsset, index) => /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "flex justify-between items-start gap-5", children: [
2649
- /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "grid grid-cols-2 gap-x-8 gap-y-3 text-sm w-full", children: [
2650
- /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { children: [
2651
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("p", { className: "text-gray-500", children: "Title" }),
2652
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2733
+ shouldShowDetails() && /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "relative mt-4 rounded-md p-4 border-2 border-dotted border-gray-300 bg-gray-50", children: [
2734
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { className: "absolute -top-2.5 left-3 bg-primary-600 text-white text-xs px-2 py-0.5 rounded-full", children: getAssetType(allValues[0]) === "video" ? "Video" : "Image" }),
2735
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "flex flex-col gap-3", children: allValues.map((digitalAsset, index) => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex justify-between items-start gap-5", children: [
2736
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "grid grid-cols-2 gap-x-8 gap-y-3 text-sm w-full", children: [
2737
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { children: [
2738
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("p", { className: "text-gray-500", children: "Title" }),
2739
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2653
2740
  "input",
2654
2741
  {
2655
2742
  type: "text",
@@ -2661,18 +2748,18 @@ var init_AssetUpload = __esm({
2661
2748
  }
2662
2749
  )
2663
2750
  ] }),
2664
- digitalAsset.intrinsicWidth && digitalAsset.intrinsicHeight && /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { children: [
2665
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("p", { className: "text-gray-500", children: "Resolution" }),
2666
- /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("p", { className: "font-medium text-gray-900 mt-3", children: [
2751
+ digitalAsset.intrinsicWidth && digitalAsset.intrinsicHeight && /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { children: [
2752
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("p", { className: "text-gray-500", children: "Resolution" }),
2753
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("p", { className: "font-medium text-gray-900 mt-3", children: [
2667
2754
  digitalAsset.intrinsicWidth,
2668
2755
  "\xD7",
2669
2756
  digitalAsset.intrinsicHeight
2670
2757
  ] })
2671
2758
  ] }),
2672
- (digitalAsset.assetUrl || digitalAsset.posterUrl) && /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { children: [
2673
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("p", { className: "text-gray-500", children: "Image / Poster" }),
2674
- /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "flex-shrink-0 flex flex-col gap-3 mt-1", children: [
2675
- getAssetType(digitalAsset) === "video" && digitalAsset.posterUrl && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2759
+ (digitalAsset.assetUrl || digitalAsset.posterUrl) && /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { children: [
2760
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("p", { className: "text-gray-500", children: "Image / Poster" }),
2761
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex-shrink-0 flex flex-col gap-3 mt-1", children: [
2762
+ getAssetType(digitalAsset) === "video" && digitalAsset.posterUrl && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2676
2763
  "img",
2677
2764
  {
2678
2765
  src: AssetUtility_default.resolveUrl(props.serviceClient?.baseUrl, digitalAsset.posterUrl),
@@ -2680,7 +2767,7 @@ var init_AssetUpload = __esm({
2680
2767
  className: "w-32 h-auto object-cover rounded border p-1"
2681
2768
  }
2682
2769
  ),
2683
- getAssetType(digitalAsset) === "image" && digitalAsset.assetUrl && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2770
+ getAssetType(digitalAsset) === "image" && digitalAsset.assetUrl && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2684
2771
  "img",
2685
2772
  {
2686
2773
  src: AssetUtility_default.resolveUrl(props.serviceClient?.baseUrl, digitalAsset.assetUrl),
@@ -2690,9 +2777,9 @@ var init_AssetUpload = __esm({
2690
2777
  )
2691
2778
  ] })
2692
2779
  ] }),
2693
- digitalAsset.assetUrl?.endsWith(".m3u8") && /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "col-span-2", children: [
2694
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("p", { className: "text-gray-500", children: "HLS Link" }),
2695
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2780
+ digitalAsset.assetUrl?.endsWith(".m3u8") && /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "col-span-2", children: [
2781
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("p", { className: "text-gray-500", children: "HLS Link" }),
2782
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2696
2783
  Hyperlink,
2697
2784
  {
2698
2785
  href: digitalAsset.assetUrl,
@@ -2703,12 +2790,12 @@ var init_AssetUpload = __esm({
2703
2790
  )
2704
2791
  ] })
2705
2792
  ] }),
2706
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2793
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2707
2794
  "span",
2708
2795
  {
2709
2796
  onClick: () => !isDisabled && deleteFile(index),
2710
2797
  className: isDisabled ? "cursor-not-allowed opacity-50" : "cursor-pointer",
2711
- children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Icon_default, { className: "w-4 h-4 text-primary", name: "delete" })
2798
+ children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Icon_default, { className: "w-4 h-4 text-primary", name: "delete" })
2712
2799
  }
2713
2800
  )
2714
2801
  ] }, index)) })
@@ -2720,12 +2807,12 @@ var init_AssetUpload = __esm({
2720
2807
  });
2721
2808
 
2722
2809
  // src/components/controls/edit/SwitchInput.tsx
2723
- var import_react36, import_jsx_runtime45, SwitchInput, SwitchInput_default;
2810
+ var import_react36, import_jsx_runtime46, SwitchInput, SwitchInput_default;
2724
2811
  var init_SwitchInput = __esm({
2725
2812
  "src/components/controls/edit/SwitchInput.tsx"() {
2726
2813
  "use strict";
2727
2814
  import_react36 = __toESM(require("react"));
2728
- import_jsx_runtime45 = require("react/jsx-runtime");
2815
+ import_jsx_runtime46 = require("react/jsx-runtime");
2729
2816
  SwitchInput = (props) => {
2730
2817
  const textChangeHandler = (event) => {
2731
2818
  let text = event.target.checked;
@@ -2742,28 +2829,28 @@ var init_SwitchInput = __esm({
2742
2829
  if (props.value != void 0 && props.value != null && props.value != "" && (props.value == "true" || props.value.toString() == "true")) {
2743
2830
  value = true;
2744
2831
  }
2745
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react36.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex items-start justify-between gap-4 py-3", children: [
2746
- /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "min-w-0", children: [
2747
- props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
2832
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_react36.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "flex items-start justify-between gap-4 py-3", children: [
2833
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "min-w-0", children: [
2834
+ props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
2748
2835
  "label",
2749
2836
  {
2750
2837
  htmlFor: props.name,
2751
2838
  className: "inline-block text-sm font-semibold text-slate-800",
2752
2839
  children: [
2753
2840
  props.attributes.label,
2754
- props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { className: "bg-error-weak", children: "*" })
2841
+ props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "bg-error-weak", children: "*" })
2755
2842
  ]
2756
2843
  }
2757
2844
  ),
2758
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage || "" })
2845
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage || "" })
2759
2846
  ] }),
2760
- /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
2847
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
2761
2848
  "label",
2762
2849
  {
2763
2850
  htmlFor: props.name,
2764
2851
  className: "relative inline-flex shrink-0 cursor-pointer items-center peer-disabled:cursor-not-allowed",
2765
2852
  children: [
2766
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2853
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2767
2854
  "input",
2768
2855
  {
2769
2856
  type: "checkbox",
@@ -2776,13 +2863,13 @@ var init_SwitchInput = __esm({
2776
2863
  className: "peer sr-only"
2777
2864
  }
2778
2865
  ),
2779
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2866
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2780
2867
  "div",
2781
2868
  {
2782
2869
  className: "h-6 w-11 rounded-full bg-slate-200 shadow-inner\n transition-colors duration-200 ease-in-out\n peer-checked:bg-blue-600\n peer-focus-visible:ring-2 peer-focus-visible:ring-blue-300 peer-focus-visible:ring-offset-2\n peer-disabled:bg-slate-100"
2783
2870
  }
2784
2871
  ),
2785
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2872
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2786
2873
  "div",
2787
2874
  {
2788
2875
  className: "absolute left-0.5 top-0.5 h-5 w-5 rounded-full bg-default shadow\n transition-transform duration-200 ease-in-out\n peer-checked:translate-x-5\n peer-disabled:bg-slate-50"
@@ -2797,12 +2884,108 @@ var init_SwitchInput = __esm({
2797
2884
  }
2798
2885
  });
2799
2886
 
2887
+ // src/components/controls/edit/VideoInput.tsx
2888
+ var import_jsx_runtime47, normalizeVideoValue, VideoInput, VideoInput_default;
2889
+ var init_VideoInput = __esm({
2890
+ "src/components/controls/edit/VideoInput.tsx"() {
2891
+ "use strict";
2892
+ init_VideoView();
2893
+ import_jsx_runtime47 = require("react/jsx-runtime");
2894
+ normalizeVideoValue = (value) => {
2895
+ if (typeof value === "string") {
2896
+ const trimmed = value.trim();
2897
+ if (!trimmed) return void 0;
2898
+ try {
2899
+ const parsed = JSON.parse(trimmed);
2900
+ if (typeof parsed === "string") {
2901
+ return parsed;
2902
+ }
2903
+ if (parsed && typeof parsed === "object") {
2904
+ const candidate = parsed;
2905
+ if (typeof candidate.assetUrl === "string") return candidate.assetUrl;
2906
+ if (typeof candidate.url === "string") return candidate.url;
2907
+ if (typeof candidate.src === "string") return candidate.src;
2908
+ }
2909
+ } catch {
2910
+ return trimmed;
2911
+ }
2912
+ return trimmed;
2913
+ }
2914
+ if (value && typeof value === "object") {
2915
+ const candidate = value;
2916
+ if (typeof candidate.assetUrl === "string") return candidate.assetUrl;
2917
+ if (typeof candidate.url === "string") return candidate.url;
2918
+ if (typeof candidate.src === "string") return candidate.src;
2919
+ }
2920
+ return void 0;
2921
+ };
2922
+ VideoInput = (props) => {
2923
+ const isReadOnly = Boolean(
2924
+ props.attributes?.readOnly || props.disable || props.attributes?.disable
2925
+ );
2926
+ const videoUrl = normalizeVideoValue(props.value ?? props.defaultValue);
2927
+ const handleChange = (event) => {
2928
+ const text = event.target.value;
2929
+ props.callback?.({
2930
+ name: props.name,
2931
+ value: text,
2932
+ index: props.index,
2933
+ groupKey: props.groupKey
2934
+ });
2935
+ };
2936
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex flex-col gap-2", children: [
2937
+ "ayush testing",
2938
+ props.attributes?.label ? /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("label", { className: "text-sm font-medium", children: [
2939
+ props.attributes.label,
2940
+ props.attributes?.required ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "ml-1 text-red-500", children: "*" }) : null
2941
+ ] }) : null,
2942
+ isReadOnly ? /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_jsx_runtime47.Fragment, { children: [
2943
+ "called video view",
2944
+ console.log(props.value, "vkjbvbvbvsdjkvdfn"),
2945
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
2946
+ VideoView_default,
2947
+ {
2948
+ ...props,
2949
+ value: props.value ?? props.defaultValue,
2950
+ assetBaseUrl: props.serviceClient?.baseUrl
2951
+ }
2952
+ )
2953
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_jsx_runtime47.Fragment, { children: [
2954
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
2955
+ "input",
2956
+ {
2957
+ type: "text",
2958
+ name: props.name,
2959
+ id: props.name,
2960
+ value: videoUrl ?? "",
2961
+ onChange: handleChange,
2962
+ onBlur: props.onBlur,
2963
+ placeholder: props.attributes?.placeholder || "Paste a video URL or blob URL",
2964
+ disabled: isReadOnly,
2965
+ className: "peer input mt-1 block w-full rounded shadow-sm"
2966
+ }
2967
+ ),
2968
+ videoUrl ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
2969
+ VideoView_default,
2970
+ {
2971
+ ...props,
2972
+ value: props.value ?? props.defaultValue,
2973
+ assetBaseUrl: props.serviceClient?.baseUrl
2974
+ }
2975
+ ) : null
2976
+ ] })
2977
+ ] });
2978
+ };
2979
+ VideoInput_default = VideoInput;
2980
+ }
2981
+ });
2982
+
2800
2983
  // src/components/controls/edit/InputControlClient.tsx
2801
2984
  var InputControlClient_exports = {};
2802
2985
  __export(InputControlClient_exports, {
2803
2986
  default: () => InputControlClient_default
2804
2987
  });
2805
- var import_react37, import_jsx_runtime46, InputControl, InputControlClient_default;
2988
+ var import_react37, import_jsx_runtime48, InputControl, InputControlClient_default;
2806
2989
  var init_InputControlClient = __esm({
2807
2990
  "src/components/controls/edit/InputControlClient.tsx"() {
2808
2991
  "use strict";
@@ -2827,7 +3010,8 @@ var init_InputControlClient = __esm({
2827
3010
  init_TimeInput();
2828
3011
  init_AssetUpload();
2829
3012
  init_SwitchInput();
2830
- import_jsx_runtime46 = require("react/jsx-runtime");
3013
+ init_VideoInput();
3014
+ import_jsx_runtime48 = require("react/jsx-runtime");
2831
3015
  InputControl = import_react37.default.forwardRef(
2832
3016
  (props, ref) => {
2833
3017
  const ControlComponents = {
@@ -2848,10 +3032,11 @@ var init_InputControlClient = __esm({
2848
3032
  [InputControlType_default.booleanSelect]: BooleanSelect_default,
2849
3033
  [InputControlType_default.timeInput]: TimeInput_default,
2850
3034
  [InputControlType_default.asset]: AssetUpload_default,
2851
- [InputControlType_default.switchInput]: SwitchInput_default
3035
+ [InputControlType_default.switchInput]: SwitchInput_default,
3036
+ [InputControlType_default.videoInput]: VideoInput_default
2852
3037
  };
2853
3038
  const SelectedControlComponent = ControlComponents[props.controlType];
2854
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_react37.default.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(SelectedControlComponent, { ...props }) : "Control not found" });
3039
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_react37.default.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SelectedControlComponent, { ...props }) : "Control not found" });
2855
3040
  }
2856
3041
  );
2857
3042
  InputControl.displayName = "InputControl";
@@ -3078,7 +3263,7 @@ var LinkNodeButton_exports = {};
3078
3263
  __export(LinkNodeButton_exports, {
3079
3264
  default: () => LinkNodeButton_default
3080
3265
  });
3081
- var import_react38, import_jsx_runtime50, LinkNodeButton, LinkNodeButton_default;
3266
+ var import_react38, import_jsx_runtime52, LinkNodeButton, LinkNodeButton_default;
3082
3267
  var init_LinkNodeButton = __esm({
3083
3268
  "src/components/pageRenderingEngine/nodes/LinkNodeButton.tsx"() {
3084
3269
  "use strict";
@@ -3087,7 +3272,7 @@ var init_LinkNodeButton = __esm({
3087
3272
  init_Button();
3088
3273
  init_ServiceClient();
3089
3274
  init_ToastService();
3090
- import_jsx_runtime50 = require("react/jsx-runtime");
3275
+ import_jsx_runtime52 = require("react/jsx-runtime");
3091
3276
  LinkNodeButton = (props) => {
3092
3277
  const { node, dataitem, children, linkText, linkType, linkUrl } = props;
3093
3278
  const [isLoading, setIsLoading] = (0, import_react38.useState)(false);
@@ -3227,11 +3412,11 @@ var init_LinkNodeButton = __esm({
3227
3412
  return children;
3228
3413
  }
3229
3414
  if (linkText) {
3230
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { children: linkText });
3415
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { children: linkText });
3231
3416
  }
3232
3417
  return node.title || "Button";
3233
3418
  };
3234
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "link-button-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
3419
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "link-button-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
3235
3420
  Button_default,
3236
3421
  {
3237
3422
  ButtonType: linkType,
@@ -3269,13 +3454,13 @@ function CopyButton({ text }) {
3269
3454
  console.error("Failed to copy: ", err);
3270
3455
  }
3271
3456
  };
3272
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
3457
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
3273
3458
  "button",
3274
3459
  {
3275
3460
  onClick: handleCopy,
3276
3461
  className: "flex gap-1 items-center hover:text-white transition",
3277
3462
  children: [
3278
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
3463
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3279
3464
  "svg",
3280
3465
  {
3281
3466
  width: "16",
@@ -3283,7 +3468,7 @@ function CopyButton({ text }) {
3283
3468
  viewBox: "0 0 24 24",
3284
3469
  className: "w-4 h-4",
3285
3470
  fill: "currentColor",
3286
- children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
3471
+ children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3287
3472
  "path",
3288
3473
  {
3289
3474
  fillRule: "evenodd",
@@ -3298,54 +3483,54 @@ function CopyButton({ text }) {
3298
3483
  }
3299
3484
  );
3300
3485
  }
3301
- var import_react45, import_jsx_runtime60;
3486
+ var import_react45, import_jsx_runtime62;
3302
3487
  var init_CopyButton = __esm({
3303
3488
  "src/components/CopyButton.tsx"() {
3304
3489
  "use strict";
3305
3490
  "use client";
3306
3491
  import_react45 = require("react");
3307
- import_jsx_runtime60 = require("react/jsx-runtime");
3492
+ import_jsx_runtime62 = require("react/jsx-runtime");
3308
3493
  }
3309
3494
  });
3310
3495
 
3311
3496
  // src/components/IFrameLoaderView.tsx
3312
- var import_react48, import_jsx_runtime64, IFrameLoaderView, IFrameLoaderView_default;
3497
+ var import_react48, import_jsx_runtime66, IFrameLoaderView, IFrameLoaderView_default;
3313
3498
  var init_IFrameLoaderView = __esm({
3314
3499
  "src/components/IFrameLoaderView.tsx"() {
3315
3500
  "use strict";
3316
3501
  import_react48 = __toESM(require("react"));
3317
- import_jsx_runtime64 = require("react/jsx-runtime");
3502
+ import_jsx_runtime66 = require("react/jsx-runtime");
3318
3503
  IFrameLoaderView = (props) => {
3319
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_react48.default.Fragment, { children: [
3320
- 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: [
3321
- /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "flex items-center mb-4", children: [
3322
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
3323
- /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "ml-2", children: [
3324
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
3325
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
3504
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_react48.default.Fragment, { children: [
3505
+ props.isDataFound == null && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "mt-4 bg-gray-200 rounded-md p-4 animate-pulse", children: [
3506
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "flex items-center mb-4", children: [
3507
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
3508
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "ml-2", children: [
3509
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
3510
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
3326
3511
  ] })
3327
3512
  ] }),
3328
- /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
3329
- /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "animate-pulse", children: [
3330
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
3331
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
3332
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
3333
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
3334
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
3513
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
3514
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "animate-pulse", children: [
3515
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
3516
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
3517
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
3518
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
3519
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
3335
3520
  ] }),
3336
- /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "animate-pulse", children: [
3337
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
3338
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
3339
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
3340
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
3341
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
3521
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "animate-pulse", children: [
3522
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
3523
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
3524
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
3525
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
3526
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
3342
3527
  ] }),
3343
- /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "animate-pulse", children: [
3344
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
3345
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
3346
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
3347
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
3348
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
3528
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "animate-pulse", children: [
3529
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
3530
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
3531
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
3532
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
3533
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
3349
3534
  ] })
3350
3535
  ] })
3351
3536
  ] }) }),
@@ -3361,14 +3546,14 @@ var IframeClient_exports = {};
3361
3546
  __export(IframeClient_exports, {
3362
3547
  default: () => IframeClient_default
3363
3548
  });
3364
- var import_react49, import_jsx_runtime65, IframeClient, IframeClient_default;
3549
+ var import_react49, import_jsx_runtime67, IframeClient, IframeClient_default;
3365
3550
  var init_IframeClient = __esm({
3366
3551
  "src/components/pageRenderingEngine/nodes/IframeClient.tsx"() {
3367
3552
  "use strict";
3368
3553
  "use client";
3369
3554
  import_react49 = __toESM(require("react"));
3370
3555
  init_IFrameLoaderView();
3371
- import_jsx_runtime65 = require("react/jsx-runtime");
3556
+ import_jsx_runtime67 = require("react/jsx-runtime");
3372
3557
  IframeClient = ({ src }) => {
3373
3558
  const iframeRef = (0, import_react49.useRef)(null);
3374
3559
  const [iframeHeight, setIframeHeight] = (0, import_react49.useState)("100%");
@@ -3400,7 +3585,7 @@ var init_IframeClient = __esm({
3400
3585
  const handleIframeLoad = () => {
3401
3586
  setIsDataFound(true);
3402
3587
  };
3403
- 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)(
3588
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_react49.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(IFrameLoaderView_default, { isDataFound, children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
3404
3589
  "iframe",
3405
3590
  {
3406
3591
  ref: iframeRef,
@@ -3620,7 +3805,7 @@ var Pagination_exports = {};
3620
3805
  __export(Pagination_exports, {
3621
3806
  default: () => Pagination_default
3622
3807
  });
3623
- var import_react50, import_jsx_runtime70, Pagination, Pagination_default;
3808
+ var import_react50, import_jsx_runtime72, Pagination, Pagination_default;
3624
3809
  var init_Pagination = __esm({
3625
3810
  "src/components/Pagination.tsx"() {
3626
3811
  "use strict";
@@ -3631,7 +3816,7 @@ var init_Pagination = __esm({
3631
3816
  init_StyleTypes();
3632
3817
  init_InputControlType();
3633
3818
  init_Hyperlink();
3634
- import_jsx_runtime70 = require("react/jsx-runtime");
3819
+ import_jsx_runtime72 = require("react/jsx-runtime");
3635
3820
  Pagination = (props) => {
3636
3821
  const { dataset, path, query, showPageSizeSelector = false, showJumpToPage = false } = props;
3637
3822
  const builder = (0, import_react50.useMemo)(() => {
@@ -3675,7 +3860,7 @@ var init_Pagination = __esm({
3675
3860
  return range;
3676
3861
  };
3677
3862
  const paginationRange = getPaginationRange();
3678
- const PageButton = ({ page, children }) => /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
3863
+ const PageButton = ({ page, children }) => /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
3679
3864
  Hyperlink,
3680
3865
  {
3681
3866
  linkType: "Link" /* Link */,
@@ -3690,9 +3875,9 @@ var init_Pagination = __esm({
3690
3875
  );
3691
3876
  const NavigationButton = ({ page, disabled, children }) => {
3692
3877
  if (disabled) {
3693
- return /* @__PURE__ */ (0, import_jsx_runtime70.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 });
3878
+ return /* @__PURE__ */ (0, import_jsx_runtime72.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 });
3694
3879
  }
3695
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
3880
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
3696
3881
  Hyperlink,
3697
3882
  {
3698
3883
  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",
@@ -3702,35 +3887,35 @@ var init_Pagination = __esm({
3702
3887
  );
3703
3888
  };
3704
3889
  if (totalPages <= 1 && totalItems === 0) return null;
3705
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "py-6 border-t bg-default", children: [
3706
- /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "flex flex-col sm:flex-row items-center justify-between gap-4", children: [
3707
- /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "text-sm", children: [
3890
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: "py-6 border-t bg-default", children: [
3891
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: "flex flex-col sm:flex-row items-center justify-between gap-4", children: [
3892
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: "text-sm", children: [
3708
3893
  "Showing ",
3709
- /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("span", { className: "font-semibold", children: [
3894
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("span", { className: "font-semibold", children: [
3710
3895
  startItem,
3711
3896
  "-",
3712
3897
  endItem
3713
3898
  ] }),
3714
3899
  " ",
3715
3900
  "out of ",
3716
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("span", { className: "font-semibold", children: totalItems.toLocaleString() }),
3901
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: "font-semibold", children: totalItems.toLocaleString() }),
3717
3902
  " results"
3718
3903
  ] }),
3719
- totalPages > 1 && /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "flex items-center space-x-1", children: [
3720
- /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(
3904
+ totalPages > 1 && /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: "flex items-center space-x-1", children: [
3905
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
3721
3906
  NavigationButton,
3722
3907
  {
3723
3908
  page: activePageNumber - 1,
3724
3909
  disabled: activePageNumber === 1,
3725
3910
  children: [
3726
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Icon_default, { name: "chevronLeft", className: "w-4 h-4 mr-1" }) }),
3727
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("span", { className: "text-sm", children: "Prev" })
3911
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Icon_default, { name: "chevronLeft", className: "w-4 h-4 mr-1" }) }),
3912
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: "text-sm", children: "Prev" })
3728
3913
  ]
3729
3914
  }
3730
3915
  ),
3731
3916
  paginationRange.map((item, index) => {
3732
3917
  if (item === "...") {
3733
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
3918
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
3734
3919
  "span",
3735
3920
  {
3736
3921
  className: "min-w-[20px] md:min-w-[40px] h-10 flex items-center justify-center text-gray-500",
@@ -3740,23 +3925,23 @@ var init_Pagination = __esm({
3740
3925
  );
3741
3926
  }
3742
3927
  const page = item;
3743
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(PageButton, { page, children: page }, page);
3928
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(PageButton, { page, children: page }, page);
3744
3929
  }),
3745
- /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(
3930
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
3746
3931
  NavigationButton,
3747
3932
  {
3748
3933
  page: activePageNumber + 1,
3749
3934
  disabled: activePageNumber === totalPages,
3750
3935
  children: [
3751
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("span", { className: "text-sm", children: "Next" }),
3752
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Icon_default, { name: "chevronRight", className: "w-4 h-4 ml-1" }) })
3936
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: "text-sm", children: "Next" }),
3937
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Icon_default, { name: "chevronRight", className: "w-4 h-4 ml-1" }) })
3753
3938
  ]
3754
3939
  }
3755
3940
  )
3756
3941
  ] }),
3757
- showJumpToPage && totalPages > 5 && /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "flex items-center space-x-2", children: [
3758
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("span", { className: "text-sm", children: "Go to:" }),
3759
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
3942
+ showJumpToPage && totalPages > 5 && /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: "flex items-center space-x-2", children: [
3943
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: "text-sm", children: "Go to:" }),
3944
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
3760
3945
  "input",
3761
3946
  {
3762
3947
  type: "number",
@@ -3777,9 +3962,9 @@ var init_Pagination = __esm({
3777
3962
  ) })
3778
3963
  ] })
3779
3964
  ] }),
3780
- showPageSizeSelector && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "mt-4 pt-4 border-t bg-default", children: /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "flex items-center justify-center space-x-2", children: [
3781
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("span", { className: "text-sm", children: "Show:" }),
3782
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "flex space-x-1", children: [10, 25, 50, 100].map((size) => /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
3965
+ showPageSizeSelector && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { className: "mt-4 pt-4 border-t bg-default", children: /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: "flex items-center justify-center space-x-2", children: [
3966
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: "text-sm", children: "Show:" }),
3967
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { className: "flex space-x-1", children: [10, 25, 50, 100].map((size) => /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
3783
3968
  Hyperlink,
3784
3969
  {
3785
3970
  className: `
@@ -3791,7 +3976,7 @@ var init_Pagination = __esm({
3791
3976
  },
3792
3977
  size
3793
3978
  )) }),
3794
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("span", { className: "text-sm", children: "per page" })
3979
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: "text-sm", children: "per page" })
3795
3980
  ] }) })
3796
3981
  ] });
3797
3982
  };
@@ -3804,13 +3989,13 @@ var Slider_exports = {};
3804
3989
  __export(Slider_exports, {
3805
3990
  default: () => Slider_default
3806
3991
  });
3807
- var import_react51, import_jsx_runtime71, Slider, ArrowButton, ProgressPill, Slider_default;
3992
+ var import_react51, import_jsx_runtime73, Slider, ArrowButton, ProgressPill, Slider_default;
3808
3993
  var init_Slider = __esm({
3809
3994
  "src/components/Slider.tsx"() {
3810
3995
  "use strict";
3811
3996
  "use client";
3812
3997
  import_react51 = __toESM(require("react"));
3813
- import_jsx_runtime71 = require("react/jsx-runtime");
3998
+ import_jsx_runtime73 = require("react/jsx-runtime");
3814
3999
  Slider = ({
3815
4000
  children,
3816
4001
  slidesToShow = 4,
@@ -3907,7 +4092,7 @@ var init_Slider = __esm({
3907
4092
  if (!import_react51.default.isValidElement(child)) return null;
3908
4093
  const childProps = child.props;
3909
4094
  const mergedClassName = `${childProps.className ?? ""} w-full`.trim();
3910
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
4095
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
3911
4096
  "div",
3912
4097
  {
3913
4098
  className: `flex-none ${scaleOnHover ? "group hover:z-50" : ""} relative`,
@@ -3930,14 +4115,14 @@ var init_Slider = __esm({
3930
4115
  return "bottom-4";
3931
4116
  }
3932
4117
  };
3933
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
4118
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
3934
4119
  "div",
3935
4120
  {
3936
4121
  className: `relative w-full overflow-hidden ${className}`,
3937
4122
  onMouseEnter: handleMouseEnter,
3938
4123
  onMouseLeave: handleMouseLeave,
3939
4124
  children: [
3940
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
4125
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
3941
4126
  "div",
3942
4127
  {
3943
4128
  className: "flex h-full",
@@ -3948,18 +4133,18 @@ var init_Slider = __esm({
3948
4133
  children: slides
3949
4134
  }
3950
4135
  ),
3951
- show_arrows && /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(import_jsx_runtime71.Fragment, { children: [
3952
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
4136
+ show_arrows && /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(import_jsx_runtime73.Fragment, { children: [
4137
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
3953
4138
  ArrowButton,
3954
4139
  {
3955
4140
  direction: "left",
3956
4141
  onClick: prevSlide,
3957
4142
  visible: infinite_scroll || currentSlide > 0,
3958
4143
  className: arrowClassName,
3959
- children: /* @__PURE__ */ (0, import_jsx_runtime71.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_runtime71.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M15.75 19.5 8.25 12l7.5-7.5" }) })
4144
+ children: /* @__PURE__ */ (0, import_jsx_runtime73.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_runtime73.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M15.75 19.5 8.25 12l7.5-7.5" }) })
3960
4145
  }
3961
4146
  ),
3962
- /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
4147
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
3963
4148
  ArrowButton,
3964
4149
  {
3965
4150
  direction: "right",
@@ -3967,13 +4152,13 @@ var init_Slider = __esm({
3967
4152
  visible: infinite_scroll || currentSlide < maxSlide,
3968
4153
  className: arrowClassName,
3969
4154
  children: [
3970
- /* @__PURE__ */ (0, import_jsx_runtime71.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_runtime71.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "m8.25 4.5 7.5 7.5-7.5 7.5" }) }),
4155
+ /* @__PURE__ */ (0, import_jsx_runtime73.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_runtime73.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "m8.25 4.5 7.5 7.5-7.5 7.5" }) }),
3971
4156
  " "
3972
4157
  ]
3973
4158
  }
3974
4159
  )
3975
4160
  ] }),
3976
- show_dots && /* @__PURE__ */ (0, import_jsx_runtime71.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_runtime71.jsx)(
4161
+ show_dots && /* @__PURE__ */ (0, import_jsx_runtime73.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_runtime73.jsx)(
3977
4162
  ProgressPill,
3978
4163
  {
3979
4164
  active: index === currentSlide,
@@ -3999,7 +4184,7 @@ var init_Slider = __esm({
3999
4184
  visible,
4000
4185
  children,
4001
4186
  className = ""
4002
- }) => /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
4187
+ }) => /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
4003
4188
  "button",
4004
4189
  {
4005
4190
  className: `
@@ -4086,7 +4271,7 @@ var init_Slider = __esm({
4086
4271
  const renderProgressBar = () => {
4087
4272
  if (style === "modern" && isActive || style === "cumulative" && shouldShowProgress) {
4088
4273
  const displayProgress = style === "cumulative" && isFilled ? 100 : progress;
4089
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
4274
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
4090
4275
  "div",
4091
4276
  {
4092
4277
  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`,
@@ -4098,7 +4283,7 @@ var init_Slider = __esm({
4098
4283
  };
4099
4284
  const renderCumulativeFill = () => {
4100
4285
  if (style === "cumulative" && isFilled && !isActive) {
4101
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
4286
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
4102
4287
  "div",
4103
4288
  {
4104
4289
  className: `absolute top-0 left-0 h-full rounded-full ${activeClassName || "bg-white"} transition-all duration-300`,
@@ -4108,7 +4293,7 @@ var init_Slider = __esm({
4108
4293
  }
4109
4294
  return null;
4110
4295
  };
4111
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
4296
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
4112
4297
  "button",
4113
4298
  {
4114
4299
  className: `${baseClasses} ${getStyleClasses()}`,
@@ -4150,17 +4335,17 @@ function EnterAnimationClient({ hasEnterAnimation, children }) {
4150
4335
  return () => observer.disconnect();
4151
4336
  }, [hasEnterAnimation]);
4152
4337
  if (!children) return null;
4153
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_jsx_runtime72.Fragment, { children: children && // enforce passing the ref to Wrapper
4338
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_jsx_runtime74.Fragment, { children: children && // enforce passing the ref to Wrapper
4154
4339
  //@ts-ignore
4155
4340
  import_react52.default.cloneElement(children, { ref }) });
4156
4341
  }
4157
- var import_react52, import_jsx_runtime72;
4342
+ var import_react52, import_jsx_runtime74;
4158
4343
  var init_EnterAnimationClient = __esm({
4159
4344
  "src/components/pageRenderingEngine/nodes/EnterAnimationClient.tsx"() {
4160
4345
  "use strict";
4161
4346
  "use client";
4162
4347
  import_react52 = __toESM(require("react"));
4163
- import_jsx_runtime72 = require("react/jsx-runtime");
4348
+ import_jsx_runtime74 = require("react/jsx-runtime");
4164
4349
  }
4165
4350
  });
4166
4351
 
@@ -4203,6 +4388,7 @@ var ViewControlTypes = {
4203
4388
  lineText: "lineText",
4204
4389
  emailText: "email",
4205
4390
  asset: "asset",
4391
+ video: "video",
4206
4392
  multilineTextBullets: "multilineTextBullets",
4207
4393
  boolean: "boolean",
4208
4394
  checkboxInput: "boolean",
@@ -4533,12 +4719,14 @@ var DateTimeView = (0, import_dynamic3.default)(() => Promise.resolve().then(()
4533
4719
  var DateTimeVew_default = DateTimeView;
4534
4720
 
4535
4721
  // src/components/controls/view/ViewControl.tsx
4536
- var import_jsx_runtime18 = require("react/jsx-runtime");
4722
+ init_VideoView();
4723
+ var import_jsx_runtime19 = require("react/jsx-runtime");
4537
4724
  var ViewControl = (props) => {
4538
4725
  const ControlComponents = {
4539
4726
  [ViewControlTypes_default.lineText]: LineTextView_default,
4540
4727
  [ViewControlTypes_default.emailText]: EmailTextView_default,
4541
4728
  [ViewControlTypes_default.asset]: Asset_default,
4729
+ [ViewControlTypes_default.video]: VideoView_default,
4542
4730
  [ViewControlTypes_default.multilineTextBullets]: MultilineTextBulletsView_default,
4543
4731
  [ViewControlTypes_default.boolean]: BooleanView_default,
4544
4732
  [ViewControlTypes_default.checkboxInput]: BooleanView_default,
@@ -4562,7 +4750,7 @@ var ViewControl = (props) => {
4562
4750
  [ViewControlTypes_default.text]: LineTextView_default
4563
4751
  };
4564
4752
  const SelectedControlComponent = props.controlType ? ControlComponents[props.controlType] : void 0;
4565
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_react15.default.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
4753
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_react15.default.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
4566
4754
  };
4567
4755
  var ViewControl_default = ViewControl;
4568
4756
 
@@ -4583,7 +4771,7 @@ var import_react54 = __toESM(require("react"));
4583
4771
  var import_react40 = __toESM(require("react"));
4584
4772
 
4585
4773
  // src/components/pageRenderingEngine/nodes/TextNode.tsx
4586
- var import_jsx_runtime47 = require("react/jsx-runtime");
4774
+ var import_jsx_runtime49 = require("react/jsx-runtime");
4587
4775
  var TextNode = (props) => {
4588
4776
  function cssStringToJson(cssString) {
4589
4777
  const styleObject = {};
@@ -4638,26 +4826,26 @@ var TextNode = (props) => {
4638
4826
  });
4639
4827
  }
4640
4828
  function renderWithLineBreaks(text) {
4641
- return text.split("\n").map((line, index, arr) => /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("span", { children: [
4829
+ return text.split("\n").map((line, index, arr) => /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("span", { children: [
4642
4830
  line,
4643
- index < arr.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("br", {})
4831
+ index < arr.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("br", {})
4644
4832
  ] }, index));
4645
4833
  }
4646
4834
  const displayText = props.linkText ? props.linkText : props.node.text;
4647
4835
  const finalText = props.dataitem && props.linkText ? displayText : props.dataitem ? replacePlaceholders(props.node.text, props.dataitem) : props.node.text;
4648
4836
  const content = typeof finalText === "string" ? renderWithLineBreaks(finalText) : finalText;
4649
- const formattedContent = props.node.format & 64 ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("sup", { children: content }) : props.node.format & 32 ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("sub", { children: content }) : content;
4837
+ const formattedContent = props.node.format & 64 ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("sup", { children: content }) : props.node.format & 32 ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("sub", { children: content }) : content;
4650
4838
  return (
4651
4839
  // @ts-expect-error custom code
4652
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { style: { ...styles }, className: getFormatClass(props.node.format), children: formattedContent })
4840
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("span", { style: { ...styles }, className: getFormatClass(props.node.format), children: formattedContent })
4653
4841
  );
4654
4842
  };
4655
4843
  var TextNode_default = TextNode;
4656
4844
 
4657
4845
  // src/components/pageRenderingEngine/nodes/LineBreakNode.tsx
4658
- var import_jsx_runtime48 = require("react/jsx-runtime");
4846
+ var import_jsx_runtime50 = require("react/jsx-runtime");
4659
4847
  var LineBreakNode = () => {
4660
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "py-0.5 lg:py-1.5" });
4848
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "py-0.5 lg:py-1.5" });
4661
4849
  };
4662
4850
  var LineBreakNode_default = LineBreakNode;
4663
4851
 
@@ -4667,7 +4855,7 @@ var import_react39 = __toESM(require("react"));
4667
4855
  // src/components/pageRenderingEngine/nodes/ImageNode.tsx
4668
4856
  init_AssetUtility();
4669
4857
  var import_dynamic5 = __toESM(require("next/dynamic"));
4670
- var import_jsx_runtime49 = require("react/jsx-runtime");
4858
+ var import_jsx_runtime51 = require("react/jsx-runtime");
4671
4859
  var HlsPlayer3 = (0, import_dynamic5.default)(() => Promise.resolve().then(() => (init_HlsPlayer(), HlsPlayer_exports)), { ssr: false });
4672
4860
  var getNestedValue = (obj, path) => {
4673
4861
  if (!obj || !path) return void 0;
@@ -4700,7 +4888,7 @@ var ImageNode = (props) => {
4700
4888
  assets = [image];
4701
4889
  }
4702
4890
  if (assets && assets.length > 0) {
4703
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
4891
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
4704
4892
  DeviceAssetSelector_default,
4705
4893
  {
4706
4894
  device: props.device,
@@ -4741,7 +4929,7 @@ var ImageNode = (props) => {
4741
4929
  right: "justify-end"
4742
4930
  };
4743
4931
  const isHls = imageUrl.endsWith(".m3u8");
4744
- const renderMedia = () => isHls ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
4932
+ const renderMedia = () => isHls ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
4745
4933
  HlsPlayer3,
4746
4934
  {
4747
4935
  assetUrl: imageUrl,
@@ -4754,7 +4942,7 @@ var ImageNode = (props) => {
4754
4942
  apiBaseUrl: props.apiBaseUrl,
4755
4943
  session: props.session
4756
4944
  }
4757
- ) : /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
4945
+ ) : /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
4758
4946
  "img",
4759
4947
  {
4760
4948
  style: styles,
@@ -4767,7 +4955,7 @@ var ImageNode = (props) => {
4767
4955
  }
4768
4956
  );
4769
4957
  if (props.node.width) {
4770
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: `flex ${FORMAT_CLASSES2[props.node.format] ?? ""}`, children: renderMedia() });
4958
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: `flex ${FORMAT_CLASSES2[props.node.format] ?? ""}`, children: renderMedia() });
4771
4959
  }
4772
4960
  return renderMedia();
4773
4961
  };
@@ -4777,7 +4965,7 @@ var ImageNode_default = ImageNode;
4777
4965
  init_StyleTypes();
4778
4966
  init_Hyperlink();
4779
4967
  var import_dynamic6 = __toESM(require("next/dynamic"));
4780
- var import_jsx_runtime51 = require("react/jsx-runtime");
4968
+ var import_jsx_runtime53 = require("react/jsx-runtime");
4781
4969
  var LinkNodeButton2 = (0, import_dynamic6.default)(() => Promise.resolve().then(() => (init_LinkNodeButton(), LinkNodeButton_exports)), {
4782
4970
  ssr: false
4783
4971
  });
@@ -4830,13 +5018,13 @@ var LinkNode = (props) => {
4830
5018
  const isButton = node.isButton === true;
4831
5019
  const renderChildren = () => {
4832
5020
  if (!node.children || node.children.length === 0) return null;
4833
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_jsx_runtime51.Fragment, { children: node.children.map((childNode, index) => {
5021
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_jsx_runtime53.Fragment, { children: node.children.map((childNode, index) => {
4834
5022
  const SelectedNode = NodeTypes2[childNode.type];
4835
5023
  if (!SelectedNode) {
4836
5024
  console.warn("Unknown node type:", childNode.type);
4837
5025
  return null;
4838
5026
  }
4839
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_react39.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
5027
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react39.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
4840
5028
  SelectedNode,
4841
5029
  {
4842
5030
  node: childNode,
@@ -4849,15 +5037,15 @@ var LinkNode = (props) => {
4849
5037
  };
4850
5038
  const renderFallback = () => {
4851
5039
  if ((!node.children || node.children.length === 0) && linkText) {
4852
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { children: linkText });
5040
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { children: linkText });
4853
5041
  }
4854
5042
  if ((!node.children || node.children.length === 0) && !linkText) {
4855
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("br", {});
5043
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("br", {});
4856
5044
  }
4857
5045
  return null;
4858
5046
  };
4859
5047
  if (isButton) {
4860
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
5048
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
4861
5049
  LinkNodeButton2,
4862
5050
  {
4863
5051
  node,
@@ -4875,7 +5063,7 @@ var LinkNode = (props) => {
4875
5063
  }
4876
5064
  );
4877
5065
  }
4878
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
5066
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
4879
5067
  Hyperlink,
4880
5068
  {
4881
5069
  href: linkUrl || "#",
@@ -4891,10 +5079,10 @@ var LinkNode = (props) => {
4891
5079
  var LinkNode_default = LinkNode;
4892
5080
 
4893
5081
  // src/components/pageRenderingEngine/nodes/SVGIconNode.tsx
4894
- var import_jsx_runtime52 = require("react/jsx-runtime");
5082
+ var import_jsx_runtime54 = require("react/jsx-runtime");
4895
5083
  var SVGIconNode = ({ node }) => {
4896
5084
  if (!node?.svgCode) return null;
4897
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
5085
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
4898
5086
  "span",
4899
5087
  {
4900
5088
  style: {
@@ -4911,7 +5099,7 @@ var SVGIconNode_default = SVGIconNode;
4911
5099
 
4912
5100
  // src/components/pageRenderingEngine/nodes/EquationNode.tsx
4913
5101
  var import_katex = __toESM(require("katex"));
4914
- var import_jsx_runtime53 = require("react/jsx-runtime");
5102
+ var import_jsx_runtime55 = require("react/jsx-runtime");
4915
5103
  var EquationNode = ({ node }) => {
4916
5104
  const { equation, inline } = node;
4917
5105
  let html = "";
@@ -4926,7 +5114,7 @@ var EquationNode = ({ node }) => {
4926
5114
  });
4927
5115
  }
4928
5116
  if (inline) {
4929
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
5117
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
4930
5118
  "span",
4931
5119
  {
4932
5120
  className: "katex-inline",
@@ -4934,7 +5122,7 @@ var EquationNode = ({ node }) => {
4934
5122
  }
4935
5123
  );
4936
5124
  }
4937
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
5125
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
4938
5126
  "div",
4939
5127
  {
4940
5128
  className: "katex-block my-3 text-center",
@@ -4945,7 +5133,7 @@ var EquationNode = ({ node }) => {
4945
5133
  var EquationNode_default = EquationNode;
4946
5134
 
4947
5135
  // src/components/pageRenderingEngine/nodes/DatafieldNode.tsx
4948
- var import_jsx_runtime54 = require("react/jsx-runtime");
5136
+ var import_jsx_runtime56 = require("react/jsx-runtime");
4949
5137
  function getNestedProperty(obj, path) {
4950
5138
  if (!obj || !path) return null;
4951
5139
  if (path.includes(".")) {
@@ -4958,7 +5146,7 @@ function getNestedProperty(obj, path) {
4958
5146
  }
4959
5147
  const value = obj[path];
4960
5148
  if (Array.isArray(value)) {
4961
- return value.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { children: String(item) }, index));
5149
+ return value.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { children: String(item) }, index));
4962
5150
  }
4963
5151
  return value;
4964
5152
  }
@@ -5019,7 +5207,7 @@ var DatafieldNode = (props) => {
5019
5207
  const dataType = props.node.dataType;
5020
5208
  if (isEmptyValue) return null;
5021
5209
  if (dataType === "rawContent") {
5022
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5210
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5023
5211
  PageBodyRenderer_default,
5024
5212
  {
5025
5213
  rawBody: String(value ?? `@databound[${fieldName}]`),
@@ -5035,12 +5223,12 @@ var DatafieldNode = (props) => {
5035
5223
  }
5036
5224
  );
5037
5225
  }
5038
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5226
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5039
5227
  "span",
5040
5228
  {
5041
5229
  className: `datafield-node ${props.node.format < Formats.length ? Formats[props.node.format] : ""}`,
5042
5230
  style: styles,
5043
- children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5231
+ children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5044
5232
  ViewControl_default,
5045
5233
  {
5046
5234
  controlType: dataType,
@@ -5053,7 +5241,7 @@ var DatafieldNode = (props) => {
5053
5241
  var DatafieldNode_default = DatafieldNode;
5054
5242
 
5055
5243
  // src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
5056
- var import_jsx_runtime55 = require("react/jsx-runtime");
5244
+ var import_jsx_runtime57 = require("react/jsx-runtime");
5057
5245
  var ParagraphNode = (props) => {
5058
5246
  const NodeTypes2 = {
5059
5247
  ["text"]: TextNode_default,
@@ -5073,9 +5261,9 @@ var ParagraphNode = (props) => {
5073
5261
  const isInlineOnlyParent = props.parentTag === "summary";
5074
5262
  const hasChildren = props.node.children && props.node.children.length > 0;
5075
5263
  if (isInlineOnlyParent) {
5076
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_jsx_runtime55.Fragment, { children: hasChildren && props.node.children.map((node, index) => {
5264
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_jsx_runtime57.Fragment, { children: hasChildren && props.node.children.map((node, index) => {
5077
5265
  const SelectedNode = NodeTypes2[node.type];
5078
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_react40.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
5266
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_react40.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
5079
5267
  SelectedNode,
5080
5268
  {
5081
5269
  node,
@@ -5087,10 +5275,10 @@ var ParagraphNode = (props) => {
5087
5275
  ) }, index);
5088
5276
  }) });
5089
5277
  }
5090
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: " " + formatClasses, children: [
5278
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: " " + formatClasses, children: [
5091
5279
  hasChildren && props.node.children.map((node, index) => {
5092
5280
  const SelectedNode = NodeTypes2[node.type];
5093
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_react40.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
5281
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_react40.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
5094
5282
  SelectedNode,
5095
5283
  {
5096
5284
  node,
@@ -5101,14 +5289,14 @@ var ParagraphNode = (props) => {
5101
5289
  }
5102
5290
  ) }, index);
5103
5291
  }),
5104
- !hasChildren && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "py-1.5 lg:py-2" })
5292
+ !hasChildren && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "py-1.5 lg:py-2" })
5105
5293
  ] });
5106
5294
  };
5107
5295
  var ParagraphNode_default = ParagraphNode;
5108
5296
 
5109
5297
  // src/components/pageRenderingEngine/nodes/HeadingNode.tsx
5110
5298
  var import_react41 = __toESM(require("react"));
5111
- var import_jsx_runtime56 = require("react/jsx-runtime");
5299
+ var import_jsx_runtime58 = require("react/jsx-runtime");
5112
5300
  var HeadingNode = (props) => {
5113
5301
  const NodeTypes2 = {
5114
5302
  ["text"]: TextNode_default,
@@ -5124,12 +5312,12 @@ var HeadingNode = (props) => {
5124
5312
  {
5125
5313
  }
5126
5314
  const formatClasses = FormatClass[props.node.format] || "";
5127
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_jsx_runtime56.Fragment, { children: import_react41.default.createElement(
5315
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_jsx_runtime58.Fragment, { children: import_react41.default.createElement(
5128
5316
  HeadingTag,
5129
5317
  { className: formatClasses },
5130
5318
  props.node.children && props.node.children.map((childNode, index) => {
5131
5319
  const SelectedNode = NodeTypes2[childNode.type];
5132
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_react41.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(SelectedNode, { node: childNode, dataitem: props.dataitem, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
5320
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react41.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(SelectedNode, { node: childNode, dataitem: props.dataitem, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
5133
5321
  })
5134
5322
  ) });
5135
5323
  };
@@ -5140,7 +5328,7 @@ var import_react43 = __toESM(require("react"));
5140
5328
 
5141
5329
  // src/components/pageRenderingEngine/nodes/ListItemNode.tsx
5142
5330
  var import_react42 = __toESM(require("react"));
5143
- var import_jsx_runtime57 = require("react/jsx-runtime");
5331
+ var import_jsx_runtime59 = require("react/jsx-runtime");
5144
5332
  var ListItemNode = (props) => {
5145
5333
  const NodeTypes2 = {
5146
5334
  text: TextNode_default,
@@ -5157,37 +5345,37 @@ var ListItemNode = (props) => {
5157
5345
  liStyle.fontSize = match[1].trim();
5158
5346
  }
5159
5347
  }
5160
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("li", { style: liStyle, children: props.node.children && props.node.children.map((node, index) => {
5348
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("li", { style: liStyle, children: props.node.children && props.node.children.map((node, index) => {
5161
5349
  const SelectedNode = NodeTypes2[node.type];
5162
5350
  if (node.type === "linebreak") {
5163
5351
  if (!foundFirstBreak) {
5164
5352
  foundFirstBreak = true;
5165
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", {}, index);
5353
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", {}, index);
5166
5354
  } else {
5167
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "py-1 lg:py-2" }, index);
5355
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "py-1 lg:py-2" }, index);
5168
5356
  }
5169
5357
  } else {
5170
5358
  foundFirstBreak = false;
5171
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_react42.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
5359
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react42.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
5172
5360
  }
5173
5361
  }) });
5174
5362
  };
5175
5363
  var ListItemNode_default = ListItemNode;
5176
5364
 
5177
5365
  // src/components/pageRenderingEngine/nodes/ListNode.tsx
5178
- var import_jsx_runtime58 = require("react/jsx-runtime");
5366
+ var import_jsx_runtime60 = require("react/jsx-runtime");
5179
5367
  var ListNode = (props) => {
5180
5368
  const NodeTypes2 = {
5181
5369
  listitem: ListItemNode_default
5182
5370
  };
5183
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_react43.default.Fragment, { children: [
5184
- props.node.listType == "bullet" && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("ul", { children: props.node.children && props.node.children.map((node, index) => {
5371
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_react43.default.Fragment, { children: [
5372
+ props.node.listType == "bullet" && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("ul", { children: props.node.children && props.node.children.map((node, index) => {
5185
5373
  const SelectedNode = NodeTypes2[node.type];
5186
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react43.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
5374
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react43.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
5187
5375
  }) }),
5188
- props.node.listType == "number" && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("ol", { children: props.node.children && props.node.children.map((node, index) => {
5376
+ props.node.listType == "number" && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("ol", { children: props.node.children && props.node.children.map((node, index) => {
5189
5377
  const SelectedNode = NodeTypes2[node.type];
5190
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react43.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
5378
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react43.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
5191
5379
  }) })
5192
5380
  ] });
5193
5381
  };
@@ -5195,16 +5383,16 @@ var ListNode_default = ListNode;
5195
5383
 
5196
5384
  // src/components/pageRenderingEngine/nodes/QuoteNode.tsx
5197
5385
  var import_react44 = __toESM(require("react"));
5198
- var import_jsx_runtime59 = require("react/jsx-runtime");
5386
+ var import_jsx_runtime61 = require("react/jsx-runtime");
5199
5387
  var QuoteNode = (props) => {
5200
5388
  const NodeTypes2 = {
5201
5389
  ["text"]: TextNode_default,
5202
5390
  ["linebreak"]: LineBreakNode_default,
5203
5391
  ["link"]: LinkNode_default
5204
5392
  };
5205
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("blockquote", { children: props.node.children && props.node.children.map((node, index) => {
5393
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("blockquote", { children: props.node.children && props.node.children.map((node, index) => {
5206
5394
  const SelectedNode = NodeTypes2[node.type];
5207
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react44.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(SelectedNode, { node, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
5395
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_react44.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(SelectedNode, { node, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
5208
5396
  }) });
5209
5397
  };
5210
5398
  var QuoteNode_default = QuoteNode;
@@ -5212,11 +5400,11 @@ var QuoteNode_default = QuoteNode;
5212
5400
  // src/components/pageRenderingEngine/nodes/CodeNode.tsx
5213
5401
  var import_react46 = __toESM(require("react"));
5214
5402
  var import_dynamic7 = __toESM(require("next/dynamic"));
5215
- var import_jsx_runtime61 = require("react/jsx-runtime");
5403
+ var import_jsx_runtime63 = require("react/jsx-runtime");
5216
5404
  var CopyButton2 = (0, import_dynamic7.default)(() => Promise.resolve().then(() => (init_CopyButton(), CopyButton_exports)), {
5217
5405
  ssr: false,
5218
5406
  // optional: fallback UI while loading
5219
- loading: () => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { className: "text-gray-400 text-xs", children: "Copy" })
5407
+ loading: () => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { className: "text-gray-400 text-xs", children: "Copy" })
5220
5408
  });
5221
5409
  var CodeNode = (props) => {
5222
5410
  const NodeTypes2 = {
@@ -5230,14 +5418,14 @@ var CodeNode = (props) => {
5230
5418
  if (node.type === "link") return node.text || node.url || "";
5231
5419
  return "";
5232
5420
  }).join("") ?? "";
5233
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { children: [
5234
- /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex items-center relative bg-neutral-strong px-4 py-3 text-xs font-sans justify-between rounded-t-md ", children: [
5235
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { children: "Code Snippet" }),
5236
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(CopyButton2, { text: textContent })
5421
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { children: [
5422
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "flex items-center relative bg-neutral-strong px-4 py-3 text-xs font-sans justify-between rounded-t-md ", children: [
5423
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { children: "Code Snippet" }),
5424
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(CopyButton2, { text: textContent })
5237
5425
  ] }),
5238
- /* @__PURE__ */ (0, import_jsx_runtime61.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) => {
5426
+ /* @__PURE__ */ (0, import_jsx_runtime63.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) => {
5239
5427
  const SelectedNode = NodeTypes2[node.type];
5240
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_react46.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5428
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_react46.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
5241
5429
  SelectedNode,
5242
5430
  {
5243
5431
  node,
@@ -5252,15 +5440,15 @@ var CodeNode = (props) => {
5252
5440
  var CodeNode_default = CodeNode;
5253
5441
 
5254
5442
  // src/components/pageRenderingEngine/nodes/HorizontalRuleNode.tsx
5255
- var import_jsx_runtime62 = require("react/jsx-runtime");
5443
+ var import_jsx_runtime64 = require("react/jsx-runtime");
5256
5444
  var HorizontalRuleNode = () => {
5257
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("hr", {});
5445
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("hr", {});
5258
5446
  };
5259
5447
  var HorizontalRuleNode_default = HorizontalRuleNode;
5260
5448
 
5261
5449
  // src/components/pageRenderingEngine/nodes/WidgetNode.tsx
5262
5450
  var import_react47 = __toESM(require("react"));
5263
- var import_jsx_runtime63 = require("react/jsx-runtime");
5451
+ var import_jsx_runtime65 = require("react/jsx-runtime");
5264
5452
  var WidgetNode = (props) => {
5265
5453
  const getWidgetParameters = () => {
5266
5454
  const widgetInputParameters = {
@@ -5324,7 +5512,7 @@ var WidgetNode = (props) => {
5324
5512
  };
5325
5513
  const widgetCode = props.node?.widgetCode;
5326
5514
  if (!widgetCode) {
5327
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_jsx_runtime63.Fragment, { children: "Invalid widget" });
5515
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_jsx_runtime65.Fragment, { children: "Invalid widget" });
5328
5516
  }
5329
5517
  const widgetParams = getWidgetParameters();
5330
5518
  const WidgetRenderer = props.widgetRenderer;
@@ -5333,7 +5521,7 @@ var WidgetNode = (props) => {
5333
5521
  }
5334
5522
  return (
5335
5523
  // eslint-disable-next-line react-hooks/static-components
5336
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_react47.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
5524
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react47.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
5337
5525
  WidgetRenderer,
5338
5526
  {
5339
5527
  params: widgetParams,
@@ -5355,7 +5543,7 @@ var import_react53 = __toESM(require("react"));
5355
5543
 
5356
5544
  // src/components/pageRenderingEngine/nodes/EmbedNode.tsx
5357
5545
  var import_dynamic8 = __toESM(require("next/dynamic"));
5358
- var import_jsx_runtime66 = require("react/jsx-runtime");
5546
+ var import_jsx_runtime68 = require("react/jsx-runtime");
5359
5547
  var IframeClient2 = (0, import_dynamic8.default)(() => Promise.resolve().then(() => (init_IframeClient(), IframeClient_exports)), {
5360
5548
  ssr: false
5361
5549
  });
@@ -5368,7 +5556,7 @@ var EmbedNode = (props) => {
5368
5556
  } else {
5369
5557
  src = props.node.embedSrc;
5370
5558
  }
5371
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "aspect-video", children: src && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(IframeClient2, { src }) });
5559
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "aspect-video", children: src && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(IframeClient2, { src }) });
5372
5560
  };
5373
5561
  var EmbedNode_default = EmbedNode;
5374
5562
 
@@ -5547,10 +5735,10 @@ var PathUtility = class {
5547
5735
  var PathUtility_default = new PathUtility();
5548
5736
 
5549
5737
  // src/components/NoDataFound.tsx
5550
- var import_jsx_runtime67 = require("react/jsx-runtime");
5738
+ var import_jsx_runtime69 = require("react/jsx-runtime");
5551
5739
  var NoDataFound = () => {
5552
- 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: [
5553
- /* @__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)(
5740
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center bg-neutral-weak", children: [
5741
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "mb-5", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "mx-auto w-20 h-20 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
5554
5742
  "svg",
5555
5743
  {
5556
5744
  className: "w-10 h-10",
@@ -5558,7 +5746,7 @@ var NoDataFound = () => {
5558
5746
  stroke: "currentColor",
5559
5747
  viewBox: "0 0 24 24",
5560
5748
  xmlns: "http://www.w3.org/2000/svg",
5561
- children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
5749
+ children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
5562
5750
  "path",
5563
5751
  {
5564
5752
  strokeLinecap: "round",
@@ -5569,8 +5757,8 @@ var NoDataFound = () => {
5569
5757
  )
5570
5758
  }
5571
5759
  ) }) }),
5572
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("h3", { className: "text-lg font-medium mb-2", children: "No data available" }),
5573
- /* @__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." })
5760
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("h3", { className: "text-lg font-medium mb-2", children: "No data available" }),
5761
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("p", { className: " max-w-sm mb-0", children: "No records found. Data may be empty or not available at the moment." })
5574
5762
  ] });
5575
5763
  };
5576
5764
  var NoDataFound_default = NoDataFound;
@@ -5578,7 +5766,7 @@ var NoDataFound_default = NoDataFound;
5578
5766
  // src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
5579
5767
  init_AssetUtility();
5580
5768
  var import_dynamic9 = __toESM(require("next/dynamic"));
5581
- var import_jsx_runtime68 = require("react/jsx-runtime");
5769
+ var import_jsx_runtime70 = require("react/jsx-runtime");
5582
5770
  var HlsPlayer4 = (0, import_dynamic9.default)(() => Promise.resolve().then(() => (init_HlsPlayer(), HlsPlayer_exports)), { ssr: false });
5583
5771
  var deviceToMediaQuery = (device) => {
5584
5772
  switch (device) {
@@ -5707,8 +5895,8 @@ var ImageGalleryNode = (props) => {
5707
5895
  right: "justify-end"
5708
5896
  };
5709
5897
  const formatClasses = FormatClass[props.node.format || ""] || "";
5710
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(import_jsx_runtime68.Fragment, { children: [
5711
- hlsSources.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_jsx_runtime68.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
5898
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(import_jsx_runtime70.Fragment, { children: [
5899
+ hlsSources.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_jsx_runtime70.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
5712
5900
  HlsPlayer4,
5713
5901
  {
5714
5902
  sources: hlsSources,
@@ -5723,7 +5911,7 @@ var ImageGalleryNode = (props) => {
5723
5911
  styles: hlsStyles
5724
5912
  }
5725
5913
  ) }),
5726
- (staticFallback || staticSources.length > 0) && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_jsx_runtime68.Fragment, { children: staticFallback ? /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("picture", { children: [
5914
+ (staticFallback || staticSources.length > 0) && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_jsx_runtime70.Fragment, { children: staticFallback ? /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("picture", { children: [
5727
5915
  DEVICE_ORDER.map((deviceKey) => {
5728
5916
  const match = staticSources.find(
5729
5917
  (img) => img.device === deviceKey
@@ -5735,7 +5923,7 @@ var ImageGalleryNode = (props) => {
5735
5923
  if (!srcUrl) {
5736
5924
  return null;
5737
5925
  }
5738
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
5926
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
5739
5927
  "source",
5740
5928
  {
5741
5929
  media: deviceToMediaQuery(match.device),
@@ -5759,7 +5947,7 @@ var ImageGalleryNode = (props) => {
5759
5947
  if (img.borderRadius) {
5760
5948
  styles.borderRadius = img.borderRadius;
5761
5949
  }
5762
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
5950
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
5763
5951
  "img",
5764
5952
  {
5765
5953
  loading: "lazy",
@@ -5774,7 +5962,7 @@ var ImageGalleryNode = (props) => {
5774
5962
  })()
5775
5963
  ] }) : (
5776
5964
  /* Case 2: Only device-specific images exist */
5777
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_jsx_runtime68.Fragment, { children: staticSources.map((img, index) => {
5965
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_jsx_runtime70.Fragment, { children: staticSources.map((img, index) => {
5778
5966
  const imageUrl = resolveImageUrl(img);
5779
5967
  if (!imageUrl) {
5780
5968
  return null;
@@ -5800,7 +5988,7 @@ var ImageGalleryNode = (props) => {
5800
5988
  default:
5801
5989
  display = "block";
5802
5990
  }
5803
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
5991
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
5804
5992
  "img",
5805
5993
  {
5806
5994
  loading: "lazy",
@@ -5941,28 +6129,28 @@ var shouldRenderContainer = (node, dataItem, session) => {
5941
6129
 
5942
6130
  // src/components/pageRenderingEngine/nodes/DocumentNode.tsx
5943
6131
  init_AssetUtility();
5944
- var import_jsx_runtime69 = require("react/jsx-runtime");
6132
+ var import_jsx_runtime71 = require("react/jsx-runtime");
5945
6133
  var getNestedValue5 = (obj, path) => {
5946
6134
  if (!obj || !path) return void 0;
5947
6135
  return path.split(".").reduce((current, key) => {
5948
6136
  return current && current[key] !== void 0 ? current[key] : void 0;
5949
6137
  }, obj);
5950
6138
  };
5951
- var PdfIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6139
+ var PdfIcon = () => /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
5952
6140
  "svg",
5953
6141
  {
5954
6142
  xmlns: "http://www.w3.org/2000/svg",
5955
6143
  viewBox: "0 0 48 48",
5956
6144
  className: "w-10 h-10",
5957
6145
  children: [
5958
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6146
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
5959
6147
  "path",
5960
6148
  {
5961
6149
  fill: "#e53935",
5962
6150
  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"
5963
6151
  }
5964
6152
  ),
5965
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6153
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
5966
6154
  "path",
5967
6155
  {
5968
6156
  fill: "#fff",
@@ -5972,55 +6160,55 @@ var PdfIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
5972
6160
  ]
5973
6161
  }
5974
6162
  );
5975
- var ExcelIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6163
+ var ExcelIcon = () => /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
5976
6164
  "svg",
5977
6165
  {
5978
6166
  xmlns: "http://www.w3.org/2000/svg",
5979
6167
  viewBox: "0 0 48 48",
5980
6168
  className: "w-10 h-10",
5981
6169
  children: [
5982
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6170
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
5983
6171
  "path",
5984
6172
  {
5985
6173
  fill: "#169154",
5986
6174
  d: "M29,6H15.744C14.781,6,14,6.781,14,7.744v7.259h15V6z"
5987
6175
  }
5988
6176
  ),
5989
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6177
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
5990
6178
  "path",
5991
6179
  {
5992
6180
  fill: "#18482a",
5993
6181
  d: "M14,33.054v7.202C14,41.219,14.781,42,15.743,42H29v-8.946H14z"
5994
6182
  }
5995
6183
  ),
5996
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("path", { fill: "#0c8045", d: "M14 15.003H29V24.005000000000003H14z" }),
5997
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("path", { fill: "#17472a", d: "M14 24.005H29V33.055H14z" }),
5998
- /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("g", { children: [
5999
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6184
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("path", { fill: "#0c8045", d: "M14 15.003H29V24.005000000000003H14z" }),
6185
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("path", { fill: "#17472a", d: "M14 24.005H29V33.055H14z" }),
6186
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("g", { children: [
6187
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
6000
6188
  "path",
6001
6189
  {
6002
6190
  fill: "#29c27f",
6003
6191
  d: "M42.256,6H29v9.003h15V7.744C44,6.781,43.219,6,42.256,6z"
6004
6192
  }
6005
6193
  ),
6006
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6194
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
6007
6195
  "path",
6008
6196
  {
6009
6197
  fill: "#27663f",
6010
6198
  d: "M29,33.054V42h13.257C43.219,42,44,41.219,44,40.257v-7.202H29z"
6011
6199
  }
6012
6200
  ),
6013
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("path", { fill: "#19ac65", d: "M29 15.003H44V24.005000000000003H29z" }),
6014
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("path", { fill: "#129652", d: "M29 24.005H44V33.055H29z" })
6201
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("path", { fill: "#19ac65", d: "M29 15.003H44V24.005000000000003H29z" }),
6202
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("path", { fill: "#129652", d: "M29 24.005H44V33.055H29z" })
6015
6203
  ] }),
6016
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6204
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
6017
6205
  "path",
6018
6206
  {
6019
6207
  fill: "#0c7238",
6020
6208
  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"
6021
6209
  }
6022
6210
  ),
6023
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6211
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
6024
6212
  "path",
6025
6213
  {
6026
6214
  fill: "#fff",
@@ -6030,7 +6218,7 @@ var ExcelIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6030
6218
  ]
6031
6219
  }
6032
6220
  );
6033
- var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6221
+ var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
6034
6222
  "svg",
6035
6223
  {
6036
6224
  xmlns: "http://www.w3.org/2000/svg",
@@ -6038,14 +6226,14 @@ var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6038
6226
  className: "w-10 h-10",
6039
6227
  baseProfile: "basic",
6040
6228
  children: [
6041
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6229
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
6042
6230
  "path",
6043
6231
  {
6044
6232
  fill: "#283593",
6045
6233
  d: "M9,33.595l14.911-18.706L41,26v13.306C41,41.346,39.346,43,37.306,43H15.332 C11.835,43,9,40.164,9,36.667C9,36.667,9,33.595,9,33.595z"
6046
6234
  }
6047
6235
  ),
6048
- /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6236
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
6049
6237
  "linearGradient",
6050
6238
  {
6051
6239
  id: "qh2LT5tehRDFkLLfb-odWa",
@@ -6056,19 +6244,19 @@ var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6056
6244
  gradientTransform: "translate(0 -339.89)",
6057
6245
  gradientUnits: "userSpaceOnUse",
6058
6246
  children: [
6059
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("stop", { offset: "0", "stop-color": "#66c0ff" }),
6060
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("stop", { offset: ".26", "stop-color": "#0094f0" })
6247
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("stop", { offset: "0", "stop-color": "#66c0ff" }),
6248
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("stop", { offset: ".26", "stop-color": "#0094f0" })
6061
6249
  ]
6062
6250
  }
6063
6251
  ),
6064
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6252
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
6065
6253
  "path",
6066
6254
  {
6067
6255
  fill: "url(#qh2LT5tehRDFkLLfb-odWa)",
6068
6256
  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"
6069
6257
  }
6070
6258
  ),
6071
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6259
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
6072
6260
  "path",
6073
6261
  {
6074
6262
  fill: "#1e88e5",
@@ -6076,21 +6264,21 @@ var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6076
6264
  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"
6077
6265
  }
6078
6266
  ),
6079
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6267
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
6080
6268
  "path",
6081
6269
  {
6082
6270
  fill: "#00e5ff",
6083
6271
  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"
6084
6272
  }
6085
6273
  ),
6086
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6274
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
6087
6275
  "path",
6088
6276
  {
6089
6277
  fill: "#1565c0",
6090
6278
  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"
6091
6279
  }
6092
6280
  ),
6093
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6281
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
6094
6282
  "path",
6095
6283
  {
6096
6284
  fill: "#fff",
@@ -6100,42 +6288,42 @@ var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6100
6288
  ]
6101
6289
  }
6102
6290
  );
6103
- var StandardIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6291
+ var StandardIcon = () => /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
6104
6292
  "svg",
6105
6293
  {
6106
6294
  xmlns: "http://www.w3.org/2000/svg",
6107
6295
  viewBox: "0 0 48 48",
6108
6296
  className: "w-10 h-10",
6109
6297
  children: [
6110
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
6111
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" })
6298
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
6299
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" })
6112
6300
  ]
6113
6301
  }
6114
6302
  );
6115
- var PowerPointIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6303
+ var PowerPointIcon = () => /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
6116
6304
  "svg",
6117
6305
  {
6118
6306
  xmlns: "http://www.w3.org/2000/svg",
6119
6307
  viewBox: "0 0 48 48",
6120
6308
  className: "w-10 h-10",
6121
6309
  children: [
6122
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6310
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
6123
6311
  "path",
6124
6312
  {
6125
6313
  fill: "#dc4c2c",
6126
6314
  d: "M8,24c0,9.941,8.059,18,18,18s18-8.059,18-18H26H8z"
6127
6315
  }
6128
6316
  ),
6129
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("path", { fill: "#f7a278", d: "M26,6v18h18C44,14.059,35.941,6,26,6z" }),
6130
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("path", { fill: "#c06346", d: "M26,6C16.059,6,8,14.059,8,24h18V6z" }),
6131
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6317
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("path", { fill: "#f7a278", d: "M26,6v18h18C44,14.059,35.941,6,26,6z" }),
6318
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("path", { fill: "#c06346", d: "M26,6C16.059,6,8,14.059,8,24h18V6z" }),
6319
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
6132
6320
  "path",
6133
6321
  {
6134
6322
  fill: "#9b341f",
6135
6323
  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"
6136
6324
  }
6137
6325
  ),
6138
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6326
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
6139
6327
  "path",
6140
6328
  {
6141
6329
  fill: "#fff",
@@ -6145,16 +6333,16 @@ var PowerPointIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6145
6333
  ]
6146
6334
  }
6147
6335
  );
6148
- var TextIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6336
+ var TextIcon = () => /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
6149
6337
  "svg",
6150
6338
  {
6151
6339
  xmlns: "http://www.w3.org/2000/svg",
6152
6340
  viewBox: "0 0 48 48",
6153
6341
  className: "w-10 h-10",
6154
6342
  children: [
6155
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
6156
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" }),
6157
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6343
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
6344
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" }),
6345
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
6158
6346
  "path",
6159
6347
  {
6160
6348
  fill: "#1976D2",
@@ -6164,7 +6352,7 @@ var TextIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6164
6352
  ]
6165
6353
  }
6166
6354
  );
6167
- var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6355
+ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
6168
6356
  "svg",
6169
6357
  {
6170
6358
  xmlns: "http://www.w3.org/2000/svg",
@@ -6174,14 +6362,14 @@ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6174
6362
  version: "1.0",
6175
6363
  className: "w-10 h-10",
6176
6364
  children: [
6177
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("clipPath", { id: "273d29c8a6", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6365
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("clipPath", { id: "273d29c8a6", children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
6178
6366
  "path",
6179
6367
  {
6180
6368
  d: "M 8.90625 0 L 65.90625 0 L 65.90625 75 L 8.90625 75 Z M 8.90625 0 ",
6181
6369
  "clip-rule": "nonzero"
6182
6370
  }
6183
6371
  ) }) }),
6184
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("g", { "clip-path": "url(#273d29c8a6)", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6372
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("g", { "clip-path": "url(#273d29c8a6)", children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
6185
6373
  "path",
6186
6374
  {
6187
6375
  fill: "#ff9100",
@@ -6190,7 +6378,7 @@ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6190
6378
  "fill-rule": "nonzero"
6191
6379
  }
6192
6380
  ) }),
6193
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6381
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
6194
6382
  "path",
6195
6383
  {
6196
6384
  fill: "#fbe9e7",
@@ -6199,7 +6387,7 @@ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6199
6387
  "fill-rule": "nonzero"
6200
6388
  }
6201
6389
  ),
6202
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6390
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
6203
6391
  "path",
6204
6392
  {
6205
6393
  fill: "#ffe0b2",
@@ -6208,7 +6396,7 @@ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6208
6396
  "fill-rule": "nonzero"
6209
6397
  }
6210
6398
  ),
6211
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6399
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
6212
6400
  "path",
6213
6401
  {
6214
6402
  fill: "#ffe0b2",
@@ -6217,7 +6405,7 @@ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6217
6405
  "fill-rule": "nonzero"
6218
6406
  }
6219
6407
  ),
6220
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6408
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
6221
6409
  "path",
6222
6410
  {
6223
6411
  fill: "#ffe0b2",
@@ -6293,8 +6481,8 @@ var DocumentNode = (props) => {
6293
6481
  }
6294
6482
  }
6295
6483
  if (documents.length === 0) {
6296
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_jsx_runtime69.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "py-4 px-2 bg-neutral-weak border rounded text-center flex flex-col gap-2", children: [
6297
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "mx-auto w-10 h-10 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6484
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_jsx_runtime71.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "py-4 px-2 bg-neutral-weak border rounded text-center flex flex-col gap-2", children: [
6485
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "mx-auto w-10 h-10 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
6298
6486
  "svg",
6299
6487
  {
6300
6488
  className: "w-5 h-5",
@@ -6302,7 +6490,7 @@ var DocumentNode = (props) => {
6302
6490
  stroke: "currentColor",
6303
6491
  viewBox: "0 0 24 24",
6304
6492
  xmlns: "http://www.w3.org/2000/svg",
6305
- children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6493
+ children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
6306
6494
  "path",
6307
6495
  {
6308
6496
  strokeLinecap: "round",
@@ -6313,11 +6501,11 @@ var DocumentNode = (props) => {
6313
6501
  )
6314
6502
  }
6315
6503
  ) }),
6316
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "text-sm font-medium", children: "No documents found" }),
6317
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "text-xs", children: "No records found. Data may be empty or not available at the moment." })
6504
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "text-sm font-medium", children: "No documents found" }),
6505
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "text-xs", children: "No records found. Data may be empty or not available at the moment." })
6318
6506
  ] }) });
6319
6507
  }
6320
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "", children: documents.map((doc, index) => {
6508
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "", children: documents.map((doc, index) => {
6321
6509
  const documentUrl = AssetUtility_default.resolveUrl(
6322
6510
  props.assetBaseUrl,
6323
6511
  doc.assetUrl
@@ -6335,16 +6523,16 @@ var DocumentNode = (props) => {
6335
6523
  }
6336
6524
  }
6337
6525
  const { Icon: Icon2, extLabel } = getFileDetails(documentUrl);
6338
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6526
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
6339
6527
  "div",
6340
6528
  {
6341
6529
  className: `flex items-center justify-between py-4 bg-default gap-4 ${index !== 0 ? "border-t" : ""}`,
6342
6530
  children: [
6343
- /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "flex items-center space-x-4", children: [
6344
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "flex items-center justify-center p-2 rounded bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Icon2, {}) }),
6345
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "flex items-baseline space-x-2", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("h4", { className: "text-base font-semibold", children: documentTitle }) })
6531
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "flex items-center space-x-4", children: [
6532
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "flex items-center justify-center p-2 rounded bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Icon2, {}) }),
6533
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "flex items-baseline space-x-2", children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("h4", { className: "text-base font-semibold", children: documentTitle }) })
6346
6534
  ] }),
6347
- /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6535
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
6348
6536
  "a",
6349
6537
  {
6350
6538
  href: documentUrl,
@@ -6352,7 +6540,7 @@ var DocumentNode = (props) => {
6352
6540
  rel: "noopener noreferrer",
6353
6541
  className: "inline-flex items-center px-4 py-2 text-sm font-medium bg-default border rounded focus:outline-none focus:ring-2 focus:ring-offset-2 transition-colors",
6354
6542
  children: [
6355
- /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6543
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
6356
6544
  "svg",
6357
6545
  {
6358
6546
  className: "w-4 h-4 mr-2",
@@ -6360,7 +6548,7 @@ var DocumentNode = (props) => {
6360
6548
  stroke: "currentColor",
6361
6549
  viewBox: "0 0 24 24",
6362
6550
  children: [
6363
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6551
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
6364
6552
  "path",
6365
6553
  {
6366
6554
  strokeLinecap: "round",
@@ -6369,7 +6557,7 @@ var DocumentNode = (props) => {
6369
6557
  d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"
6370
6558
  }
6371
6559
  ),
6372
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6560
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
6373
6561
  "path",
6374
6562
  {
6375
6563
  strokeLinecap: "round",
@@ -6394,7 +6582,7 @@ var DocumentNode = (props) => {
6394
6582
  var DocumentNode_default = DocumentNode;
6395
6583
 
6396
6584
  // src/components/pageRenderingEngine/nodes/DivContainer.tsx
6397
- var import_jsx_runtime73 = require("react/jsx-runtime");
6585
+ var import_jsx_runtime75 = require("react/jsx-runtime");
6398
6586
  var Pagination2 = (0, import_dynamic10.default)(() => Promise.resolve().then(() => (init_Pagination(), Pagination_exports)), { ssr: true });
6399
6587
  var Slider2 = (0, import_dynamic10.default)(() => Promise.resolve().then(() => (init_Slider(), Slider_exports)), {
6400
6588
  ssr: false
@@ -6651,7 +6839,7 @@ var DivContainer = async (props) => {
6651
6839
  response = await serviceClient.get(endpoint);
6652
6840
  result = response?.result;
6653
6841
  if (dataBindingProperties.showNoResultsMessage && (result === void 0 || result.length == 0)) {
6654
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(NoDataFound_default, {});
6842
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(NoDataFound_default, {});
6655
6843
  }
6656
6844
  if (dataBindingProperties.childCollectionName && props.dataitem) {
6657
6845
  childCollectionData = getNestedValue6(
@@ -6671,7 +6859,7 @@ var DivContainer = async (props) => {
6671
6859
  }
6672
6860
  const SelectedNode = NodeTypes2[node.type];
6673
6861
  if (!SelectedNode) return null;
6674
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_react53.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
6862
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_react53.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
6675
6863
  SelectedNode,
6676
6864
  {
6677
6865
  node,
@@ -6803,14 +6991,14 @@ var DivContainer = async (props) => {
6803
6991
  props.node.bgClass,
6804
6992
  noLinkColor && "no-link-color"
6805
6993
  ].filter(Boolean).join(" ");
6806
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(import_react53.default.Fragment, { children: [
6807
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
6994
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(import_react53.default.Fragment, { children: [
6995
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
6808
6996
  "style",
6809
6997
  {
6810
6998
  dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS }
6811
6999
  }
6812
7000
  ),
6813
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(EnterAnimationClient2, { hasEnterAnimation: !!props.node.enterAnimation, children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
7001
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(EnterAnimationClient2, { hasEnterAnimation: !!props.node.enterAnimation, children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
6814
7002
  Wrapper,
6815
7003
  {
6816
7004
  id: guid,
@@ -6824,11 +7012,11 @@ var DivContainer = async (props) => {
6824
7012
  item,
6825
7013
  idx,
6826
7014
  props.href ? void 0 : item?.links?.view
6827
- )?.map((child, i) => /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_react53.default.Fragment, { children: child }, i)) : renderChildren(props.node.children, props, item, idx)
7015
+ )?.map((child, i) => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_react53.default.Fragment, { children: child }, i)) : renderChildren(props.node.children, props, item, idx)
6828
7016
  )
6829
7017
  }
6830
7018
  ) }),
6831
- dataBindingProperties && props.node.dataBinding.enablePagination && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
7019
+ dataBindingProperties && props.node.dataBinding.enablePagination && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
6832
7020
  Pagination2,
6833
7021
  {
6834
7022
  path: props.path,
@@ -6841,7 +7029,7 @@ var DivContainer = async (props) => {
6841
7029
  var DivContainer_default = DivContainer;
6842
7030
 
6843
7031
  // src/components/pageRenderingEngine/PageBodyRenderer.tsx
6844
- var import_jsx_runtime74 = require("react/jsx-runtime");
7032
+ var import_jsx_runtime76 = require("react/jsx-runtime");
6845
7033
  var NodeTypes = {
6846
7034
  ["paragraph"]: ParagraphNode_default,
6847
7035
  ["heading"]: HeadingNode_default,
@@ -6878,14 +7066,14 @@ var PageBodyRenderer = (props) => {
6878
7066
  }
6879
7067
  return true;
6880
7068
  };
6881
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_react54.default.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
7069
+ return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_react54.default.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
6882
7070
  {
6883
7071
  }
6884
7072
  const SelectedNode = NodeTypes[node.type];
6885
7073
  if (!shouldRenderNode(node)) {
6886
7074
  return null;
6887
7075
  }
6888
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_react54.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_react54.default.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_react54.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
7076
+ return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_react54.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_react54.default.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_react54.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
6889
7077
  SelectedNode,
6890
7078
  {
6891
7079
  node,
@@ -6901,7 +7089,7 @@ var PageBodyRenderer = (props) => {
6901
7089
  device: props.device,
6902
7090
  widgetRenderer: props.widgetRenderer
6903
7091
  }
6904
- ) }) : /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_react54.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
7092
+ ) }) : /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_react54.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
6905
7093
  SelectedNode,
6906
7094
  {
6907
7095
  node,
@@ -6924,7 +7112,7 @@ var PageBodyRenderer_default = PageBodyRenderer;
6924
7112
  // src/components/Toast.tsx
6925
7113
  var import_react55 = require("react");
6926
7114
  init_ToastService();
6927
- var import_jsx_runtime75 = require("react/jsx-runtime");
7115
+ var import_jsx_runtime77 = require("react/jsx-runtime");
6928
7116
  var Toast = () => {
6929
7117
  const [showToast, setShowToast] = (0, import_react55.useState)(false);
6930
7118
  const [message, setMessage] = (0, import_react55.useState)("");
@@ -6958,8 +7146,8 @@ var Toast = () => {
6958
7146
  });
6959
7147
  };
6960
7148
  }, [closeToast, showMessage]);
6961
- return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_jsx_runtime75.Fragment, { children: showToast && /* @__PURE__ */ (0, import_jsx_runtime75.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_runtime75.jsxs)("div", { className: `w-full items-center flex justify-between p-3 rounded-md relative shadow border bg-${messageType}-soft`, children: [
6962
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
7149
+ return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_jsx_runtime77.Fragment, { children: showToast && /* @__PURE__ */ (0, import_jsx_runtime77.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_runtime77.jsxs)("div", { className: `w-full items-center flex justify-between p-3 rounded-md relative shadow border bg-${messageType}-soft`, children: [
7150
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
6963
7151
  "span",
6964
7152
  {
6965
7153
  className: "font-medium text-inherit text-sm",
@@ -6967,7 +7155,7 @@ var Toast = () => {
6967
7155
  children: message
6968
7156
  }
6969
7157
  ),
6970
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("button", { className: "absolute right-2 top-2 ml-2 focus:outline-none", onClick: closeToast, children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
7158
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("button", { className: "absolute right-2 top-2 ml-2 focus:outline-none", onClick: closeToast, children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
6971
7159
  "svg",
6972
7160
  {
6973
7161
  xmlns: "http://www.w3.org/2000/svg",
@@ -6975,7 +7163,7 @@ var Toast = () => {
6975
7163
  fill: "none",
6976
7164
  viewBox: "0 0 24 24",
6977
7165
  stroke: "currentColor",
6978
- children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M6 18L18 6M6 6l12 12" })
7166
+ children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M6 18L18 6M6 6l12 12" })
6979
7167
  }
6980
7168
  ) })
6981
7169
  ] }) }) });
@@ -7002,7 +7190,7 @@ init_TimeInput();
7002
7190
  // src/components/NavigationTabsV2.tsx
7003
7191
  var import_link3 = __toESM(require("next/link"));
7004
7192
  var import_navigation = require("next/navigation");
7005
- var import_jsx_runtime76 = require("react/jsx-runtime");
7193
+ var import_jsx_runtime78 = require("react/jsx-runtime");
7006
7194
  function resolveRoutePlaceholders(route, params) {
7007
7195
  return route.replace(/\{([^}]+)\}/g, (match, key) => {
7008
7196
  const value = params[key];
@@ -7027,8 +7215,8 @@ var NavigationTabsV2 = ({ tabs, params = {} }) => {
7027
7215
  isActive: tab.isActive
7028
7216
  })) || [];
7029
7217
  if (mappedTabs.length === 0) return null;
7030
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "flex border-b bg-white rounded-t mb-3", children: mappedTabs.map(({ tabTitle, landingPageUrl, isActive }) => {
7031
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_link3.default, { href: landingPageUrl, className: "-mb-px", children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
7218
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "flex border-b bg-white rounded-t mb-3", children: mappedTabs.map(({ tabTitle, landingPageUrl, isActive }) => {
7219
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_link3.default, { href: landingPageUrl, className: "-mb-px", children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
7032
7220
  "div",
7033
7221
  {
7034
7222
  className: `text-sm font-medium border-b-2 px-6 py-2 transition
@@ -7046,9 +7234,9 @@ var import_navigation2 = require("next/navigation");
7046
7234
 
7047
7235
  // src/components/dataForm/NoContentView.tsx
7048
7236
  var import_react56 = __toESM(require("react"));
7049
- var import_jsx_runtime77 = require("react/jsx-runtime");
7237
+ var import_jsx_runtime79 = require("react/jsx-runtime");
7050
7238
  var NoContentView = (props) => {
7051
- return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_react56.default.Fragment, { children: props.isDataFound === false && props.children });
7239
+ return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_react56.default.Fragment, { children: props.isDataFound === false && props.children });
7052
7240
  };
7053
7241
  var NoContentView_default = NoContentView;
7054
7242
 
@@ -7057,38 +7245,38 @@ init_InputControlType();
7057
7245
 
7058
7246
  // src/components/dataForm/ContentView.tsx
7059
7247
  var import_react57 = __toESM(require("react"));
7060
- var import_jsx_runtime78 = require("react/jsx-runtime");
7248
+ var import_jsx_runtime80 = require("react/jsx-runtime");
7061
7249
  var ContentView = (props) => {
7062
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(import_react57.default.Fragment, { children: [
7063
- props.isDataFound == null && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "", children: /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "bg-gray-200 rounded-md p-4 animate-pulse", children: [
7064
- /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "flex items-center mb-4", children: [
7065
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
7066
- /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "ml-2", children: [
7067
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
7068
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
7250
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(import_react57.default.Fragment, { children: [
7251
+ props.isDataFound == null && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "", children: /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "bg-gray-200 rounded-md p-4 animate-pulse", children: [
7252
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "flex items-center mb-4", children: [
7253
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
7254
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "ml-2", children: [
7255
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
7256
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
7069
7257
  ] })
7070
7258
  ] }),
7071
- /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
7072
- /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "animate-pulse", children: [
7073
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
7074
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
7075
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
7076
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
7077
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
7259
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
7260
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "animate-pulse", children: [
7261
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
7262
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
7263
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
7264
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
7265
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
7078
7266
  ] }),
7079
- /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "animate-pulse", children: [
7080
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
7081
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
7082
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
7083
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
7084
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
7267
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "animate-pulse", children: [
7268
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
7269
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
7270
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
7271
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
7272
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
7085
7273
  ] }),
7086
- /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "animate-pulse", children: [
7087
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
7088
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
7089
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
7090
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
7091
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
7274
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "animate-pulse", children: [
7275
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
7276
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
7277
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
7278
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
7279
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
7092
7280
  ] })
7093
7281
  ] })
7094
7282
  ] }) }),
@@ -7148,7 +7336,7 @@ function FormReducer(state, action) {
7148
7336
  var FormReducer_default = FormReducer;
7149
7337
 
7150
7338
  // src/components/dataForm/DataList.tsx
7151
- var import_jsx_runtime79 = require("react/jsx-runtime");
7339
+ var import_jsx_runtime81 = require("react/jsx-runtime");
7152
7340
  var DataList = (props) => {
7153
7341
  const router = (0, import_navigation2.useRouter)();
7154
7342
  let builder = new OdataBuilder(props.path);
@@ -7186,7 +7374,7 @@ var DataList = (props) => {
7186
7374
  if (path.includes(".")) {
7187
7375
  return path.split(".").reduce((prev, curr) => prev ? prev[curr] : null, obj);
7188
7376
  } else if (Array.isArray(obj[path])) {
7189
- return obj[path].map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { children: item }, index));
7377
+ return obj[path].map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { children: item }, index));
7190
7378
  } else {
7191
7379
  return obj[path];
7192
7380
  }
@@ -7265,30 +7453,30 @@ var DataList = (props) => {
7265
7453
  const renderPageNumbers = () => {
7266
7454
  if (pages <= 10) {
7267
7455
  return Array.from({ length: pages }, (_, index) => index + 1).map(
7268
- (page) => /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_react58.default.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7456
+ (page) => /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_react58.default.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7269
7457
  Hyperlink,
7270
7458
  {
7271
7459
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
7272
7460
  href: builder.getNewPageUrl(page),
7273
7461
  children: page
7274
7462
  }
7275
- ) : /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)
7463
+ ) : /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)
7276
7464
  );
7277
7465
  } else {
7278
7466
  const showFirstPages = activePageNumber <= 5;
7279
7467
  const showLastPages = activePageNumber > pages - 5;
7280
7468
  if (showFirstPages) {
7281
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_jsx_runtime79.Fragment, { children: [
7282
- Array.from({ length: 8 }, (_, index) => index + 1).map((page) => /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_react58.default.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7469
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(import_jsx_runtime81.Fragment, { children: [
7470
+ Array.from({ length: 8 }, (_, index) => index + 1).map((page) => /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_react58.default.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7283
7471
  Hyperlink,
7284
7472
  {
7285
7473
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
7286
7474
  href: builder.getNewPageUrl(page),
7287
7475
  children: page
7288
7476
  }
7289
- ) : /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)),
7290
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { className: "px-2 py-1", children: "..." }),
7291
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7477
+ ) : /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)),
7478
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: "px-2 py-1", children: "..." }),
7479
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7292
7480
  Hyperlink,
7293
7481
  {
7294
7482
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -7296,7 +7484,7 @@ var DataList = (props) => {
7296
7484
  children: pages - 1
7297
7485
  }
7298
7486
  ),
7299
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7487
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7300
7488
  Hyperlink,
7301
7489
  {
7302
7490
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -7304,7 +7492,7 @@ var DataList = (props) => {
7304
7492
  children: pages
7305
7493
  }
7306
7494
  ),
7307
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { className: "relative inline-block", children: /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
7495
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "relative inline-block", children: /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
7308
7496
  "select",
7309
7497
  {
7310
7498
  className: " py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
@@ -7316,18 +7504,18 @@ var DataList = (props) => {
7316
7504
  }
7317
7505
  },
7318
7506
  children: [
7319
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("option", { className: "", value: "", children: "Jump to" }),
7507
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("option", { className: "", value: "", children: "Jump to" }),
7320
7508
  Array.from(
7321
7509
  { length: Math.max(0, pages - 10) },
7322
7510
  (_, index) => index + 9
7323
- ).map((page) => /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("option", { value: page, children: page }, page))
7511
+ ).map((page) => /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("option", { value: page, children: page }, page))
7324
7512
  ]
7325
7513
  }
7326
7514
  ) })
7327
7515
  ] });
7328
7516
  } else if (showLastPages) {
7329
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_jsx_runtime79.Fragment, { children: [
7330
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7517
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(import_jsx_runtime81.Fragment, { children: [
7518
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7331
7519
  Hyperlink,
7332
7520
  {
7333
7521
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -7335,7 +7523,7 @@ var DataList = (props) => {
7335
7523
  children: "1"
7336
7524
  }
7337
7525
  ),
7338
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7526
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7339
7527
  Hyperlink,
7340
7528
  {
7341
7529
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -7343,21 +7531,21 @@ var DataList = (props) => {
7343
7531
  children: "2"
7344
7532
  }
7345
7533
  ),
7346
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { className: "px-2 py-1", children: "..." }),
7534
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: "px-2 py-1", children: "..." }),
7347
7535
  Array.from({ length: 8 }, (_, index) => pages - 7 + index).map(
7348
- (page) => /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_react58.default.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7536
+ (page) => /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_react58.default.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7349
7537
  Hyperlink,
7350
7538
  {
7351
7539
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
7352
7540
  href: builder.getNewPageUrl(page),
7353
7541
  children: page
7354
7542
  }
7355
- ) : /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)
7543
+ ) : /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)
7356
7544
  )
7357
7545
  ] });
7358
7546
  } else {
7359
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_jsx_runtime79.Fragment, { children: [
7360
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7547
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(import_jsx_runtime81.Fragment, { children: [
7548
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7361
7549
  Hyperlink,
7362
7550
  {
7363
7551
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -7365,7 +7553,7 @@ var DataList = (props) => {
7365
7553
  children: "1"
7366
7554
  }
7367
7555
  ),
7368
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7556
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7369
7557
  Hyperlink,
7370
7558
  {
7371
7559
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -7373,20 +7561,20 @@ var DataList = (props) => {
7373
7561
  children: "2"
7374
7562
  }
7375
7563
  ),
7376
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { className: "px-2 py-1", children: "..." }),
7564
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: "px-2 py-1", children: "..." }),
7377
7565
  Array.from(
7378
7566
  { length: 5 },
7379
7567
  (_, index) => activePageNumber - 2 + index
7380
- ).map((page) => /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_react58.default.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7568
+ ).map((page) => /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_react58.default.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7381
7569
  Hyperlink,
7382
7570
  {
7383
7571
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
7384
7572
  href: builder.getNewPageUrl(page),
7385
7573
  children: page
7386
7574
  }
7387
- ) : /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)),
7388
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { className: "px-2 py-1", children: "..." }),
7389
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7575
+ ) : /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)),
7576
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: "px-2 py-1", children: "..." }),
7577
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7390
7578
  Hyperlink,
7391
7579
  {
7392
7580
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -7394,7 +7582,7 @@ var DataList = (props) => {
7394
7582
  children: pages - 1
7395
7583
  }
7396
7584
  ),
7397
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7585
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7398
7586
  Hyperlink,
7399
7587
  {
7400
7588
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -7402,7 +7590,7 @@ var DataList = (props) => {
7402
7590
  children: pages
7403
7591
  }
7404
7592
  ),
7405
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { className: "relative inline-block", children: /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
7593
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "relative inline-block", children: /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
7406
7594
  "select",
7407
7595
  {
7408
7596
  className: "px-2 py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
@@ -7414,8 +7602,8 @@ var DataList = (props) => {
7414
7602
  }
7415
7603
  },
7416
7604
  children: [
7417
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("option", { value: "", children: "Jump to" }),
7418
- Array.from({ length: pages - 4 }, (_, index) => index + 3).filter((page) => page > 2 && page < pages - 1).map((page) => /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("option", { value: page, children: page }, page))
7605
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("option", { value: "", children: "Jump to" }),
7606
+ Array.from({ length: pages - 4 }, (_, index) => index + 3).filter((page) => page > 2 && page < pages - 1).map((page) => /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("option", { value: page, children: page }, page))
7419
7607
  ]
7420
7608
  }
7421
7609
  ) })
@@ -7423,16 +7611,16 @@ var DataList = (props) => {
7423
7611
  }
7424
7612
  }
7425
7613
  };
7426
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_react58.default.Fragment, { children: [
7427
- /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(ContentView_default, { isDataFound, children: [
7428
- (props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
7614
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(import_react58.default.Fragment, { children: [
7615
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(ContentView_default, { isDataFound, children: [
7616
+ (props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
7429
7617
  "div",
7430
7618
  {
7431
7619
  className: `flex justify-between items-center bg-white pl-6 pr-2 h-14 mb-3 shadow-sm rounded-md sticky top-0`,
7432
7620
  children: [
7433
- props.title ? /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("h2", { className: "text-lg font-semibold text-black-800", children: props.title }) }) : /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", {}),
7434
- /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: "flex items-center gap-3", children: [
7435
- props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7621
+ props.title ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("h2", { className: "text-lg font-semibold text-black-800", children: props.title }) }) : /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", {}),
7622
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "flex items-center gap-3", children: [
7623
+ props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7436
7624
  InputControl_default,
7437
7625
  {
7438
7626
  name: "Search_input",
@@ -7444,7 +7632,7 @@ var DataList = (props) => {
7444
7632
  }
7445
7633
  }
7446
7634
  ),
7447
- props.filters && props.filters.map((filter) => /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7635
+ props.filters && props.filters.map((filter) => /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7448
7636
  InputControl_default,
7449
7637
  {
7450
7638
  name: filter.name,
@@ -7459,15 +7647,15 @@ var DataList = (props) => {
7459
7647
  },
7460
7648
  filter.name
7461
7649
  )),
7462
- props.addLinkHref && /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
7650
+ props.addLinkHref && /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
7463
7651
  Hyperlink,
7464
7652
  {
7465
7653
  className: "gap-1",
7466
7654
  linkType: "Primary" /* Solid */,
7467
7655
  href: props.addLinkHref,
7468
7656
  children: [
7469
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Icon_default, { name: "plus", className: "w-4 h-4" }),
7470
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
7657
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Icon_default, { name: "plus", className: "w-4 h-4" }),
7658
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
7471
7659
  ]
7472
7660
  }
7473
7661
  )
@@ -7475,8 +7663,8 @@ var DataList = (props) => {
7475
7663
  ]
7476
7664
  }
7477
7665
  ),
7478
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { className: "flex-1 overflow-y-auto justify-end bg-white rounded shadow h-[calc(100vh-14rem)]", children: /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("table", { className: "w-full divide-y divide-gray-200", children: [
7479
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("thead", { className: "bg-gray-50 sticky top-0", children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("tr", { children: props?.columns?.map((column) => {
7666
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "flex-1 overflow-y-auto justify-end bg-white rounded shadow h-[calc(100vh-14rem)]", children: /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("table", { className: "w-full divide-y divide-gray-200", children: [
7667
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("thead", { className: "bg-gray-50 sticky top-0", children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("tr", { children: props?.columns?.map((column) => {
7480
7668
  let url = builder.getNewOrderByUrl(column.name);
7481
7669
  let icon = "chevronUpDown";
7482
7670
  if (orderBy.includes(`${column.name} desc`)) {
@@ -7486,18 +7674,18 @@ var DataList = (props) => {
7486
7674
  icon = "chevronUp";
7487
7675
  url = builder.getNewOrderByUrl(column.name + " desc");
7488
7676
  }
7489
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7677
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7490
7678
  "th",
7491
7679
  {
7492
7680
  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" : ""),
7493
- children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7681
+ children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7494
7682
  Hyperlink,
7495
7683
  {
7496
7684
  href: column.enableSorting ? url : void 0,
7497
7685
  className: "!text-neutral-contrast ",
7498
- children: /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("span", { className: "flex items-center space-x-1", children: [
7499
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { className: "text-black", children: column.label }),
7500
- column.enableSorting && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Icon_default, { className: "w-4 h-4", name: icon })
7686
+ children: /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("span", { className: "flex items-center space-x-1", children: [
7687
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: "text-black", children: column.label }),
7688
+ column.enableSorting && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Icon_default, { className: "w-4 h-4", name: icon })
7501
7689
  ] })
7502
7690
  }
7503
7691
  )
@@ -7505,24 +7693,24 @@ var DataList = (props) => {
7505
7693
  column.name
7506
7694
  );
7507
7695
  }) }) }),
7508
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("tbody", { className: "divide-y divide-gray-200 ", children: props.dataset?.result?.map((dataitem, index) => {
7696
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("tbody", { className: "divide-y divide-gray-200 ", children: props.dataset?.result?.map((dataitem, index) => {
7509
7697
  let validityClass = "";
7510
7698
  console.log("dataitem", dataitem);
7511
7699
  if (props.recordValidityColumnName && getNestedProperty2(dataitem, props.recordValidityColumnName) == false) {
7512
7700
  validityClass = "bg-alert-200";
7513
7701
  }
7514
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("tr", { className: validityClass, children: props?.columns?.map((column, colindex) => {
7702
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("tr", { className: validityClass, children: props?.columns?.map((column, colindex) => {
7515
7703
  console.log("column", column);
7516
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_react58.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7704
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_react58.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7517
7705
  "td",
7518
7706
  {
7519
7707
  className: "px-6 py-2 whitespace-normal " + (column.controlType == ViewControlTypes_default.money ? "" : ""),
7520
- children: column.addhref === true ? /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7708
+ children: column.addhref === true ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7521
7709
  Hyperlink,
7522
7710
  {
7523
7711
  className: "",
7524
7712
  href: `https://${dataitem[column.name]}`,
7525
- children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7713
+ children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7526
7714
  ViewControl_default,
7527
7715
  {
7528
7716
  controlType: column.controlType,
@@ -7535,11 +7723,11 @@ var DataList = (props) => {
7535
7723
  }
7536
7724
  )
7537
7725
  }
7538
- ) : column.showAsLink ? /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7726
+ ) : column.showAsLink ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7539
7727
  Hyperlink,
7540
7728
  {
7541
7729
  href: props.path + dataitem[props.columns[0].name] + "/" + (dataitem.linkUrlSegment ?? column.linkUrlSegment),
7542
- children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7730
+ children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7543
7731
  ViewControl_default,
7544
7732
  {
7545
7733
  controlType: column.controlType,
@@ -7549,7 +7737,7 @@ var DataList = (props) => {
7549
7737
  }
7550
7738
  )
7551
7739
  }
7552
- ) : /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7740
+ ) : /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7553
7741
  ViewControl_default,
7554
7742
  {
7555
7743
  controlType: column.controlType,
@@ -7563,10 +7751,10 @@ var DataList = (props) => {
7563
7751
  }) }, index);
7564
7752
  }) })
7565
7753
  ] }) }),
7566
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { className: "pt-4 border-t border-t-gray-50 sticky bottom-0 h-11 mt-2 ", children: /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: "flex items-center justify-between", children: [
7567
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { className: "text-gray-700", children: label }),
7568
- /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: "flex space-x-2 items-center", children: [
7569
- activePageNumber > 1 && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7754
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "pt-4 border-t border-t-gray-50 sticky bottom-0 h-11 mt-2 ", children: /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "flex items-center justify-between", children: [
7755
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "text-gray-700", children: label }),
7756
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "flex space-x-2 items-center", children: [
7757
+ activePageNumber > 1 && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7570
7758
  Hyperlink,
7571
7759
  {
7572
7760
  className: "px-3 py-1 rounded-l-md border border-gray-300 bg-white text-gray-500 hover:bg-gray-200",
@@ -7574,9 +7762,9 @@ var DataList = (props) => {
7574
7762
  children: "Prev"
7575
7763
  }
7576
7764
  ),
7577
- activePageNumber <= 1 && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("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" }),
7765
+ activePageNumber <= 1 && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("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" }),
7578
7766
  renderPageNumbers(),
7579
- activePageNumber < pages && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7767
+ activePageNumber < pages && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7580
7768
  Hyperlink,
7581
7769
  {
7582
7770
  className: "px-3 py-1 rounded-r-md border border-gray-300 bg-white text-gray-500 hover:bg-gray-200",
@@ -7584,19 +7772,19 @@ var DataList = (props) => {
7584
7772
  children: "Next"
7585
7773
  }
7586
7774
  ),
7587
- activePageNumber >= pages && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { className: "px-3 py-1 rounded-r-md border border-gray-300 bg-gray-200 text-gray-500", children: "Next" })
7775
+ activePageNumber >= pages && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "px-3 py-1 rounded-r-md border border-gray-300 bg-gray-200 text-gray-500", children: "Next" })
7588
7776
  ] })
7589
7777
  ] }) })
7590
7778
  ] }),
7591
- /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(NoContentView_default, { isDataFound, children: [
7592
- (props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
7779
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(NoContentView_default, { isDataFound, children: [
7780
+ (props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
7593
7781
  "div",
7594
7782
  {
7595
7783
  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`,
7596
7784
  children: [
7597
- props.title ? /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("h2", { className: "text-lg font-semibold text-black", children: props.title }) }) : /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", {}),
7598
- /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: "flex items-center gap-3", children: [
7599
- props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7785
+ props.title ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("h2", { className: "text-lg font-semibold text-black", children: props.title }) }) : /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", {}),
7786
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "flex items-center gap-3", children: [
7787
+ props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7600
7788
  InputControl_default,
7601
7789
  {
7602
7790
  name: "Search_input",
@@ -7608,7 +7796,7 @@ var DataList = (props) => {
7608
7796
  }
7609
7797
  }
7610
7798
  ),
7611
- props.filters && props.filters.map((filter) => /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7799
+ props.filters && props.filters.map((filter) => /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7612
7800
  InputControl_default,
7613
7801
  {
7614
7802
  name: filter.name,
@@ -7623,15 +7811,15 @@ var DataList = (props) => {
7623
7811
  },
7624
7812
  filter.name
7625
7813
  )),
7626
- props.addLinkHref && /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
7814
+ props.addLinkHref && /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
7627
7815
  Hyperlink,
7628
7816
  {
7629
7817
  className: "gap-1",
7630
7818
  linkType: "Primary" /* Solid */,
7631
7819
  href: props.addLinkHref,
7632
7820
  children: [
7633
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Icon_default, { name: "plus", className: "w-4 h-4" }),
7634
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
7821
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Icon_default, { name: "plus", className: "w-4 h-4" }),
7822
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
7635
7823
  ]
7636
7824
  }
7637
7825
  )
@@ -7639,8 +7827,8 @@ var DataList = (props) => {
7639
7827
  ]
7640
7828
  }
7641
7829
  ),
7642
- /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: "flex-grow overflow-y-auto justify-end bg-white rounded shadow h-[75vh]", children: [
7643
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("table", { className: "w-full divide-y divide-gray-200", children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("thead", { className: "bg-gray-50", children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("tr", { children: props?.columns?.map((column) => {
7830
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "flex-grow overflow-y-auto justify-end bg-white rounded shadow h-[75vh]", children: [
7831
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("table", { className: "w-full divide-y divide-gray-200", children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("thead", { className: "bg-gray-50", children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("tr", { children: props?.columns?.map((column) => {
7644
7832
  let url = builder.getNewOrderByUrl(column.name);
7645
7833
  let icon = "chevronUpDown";
7646
7834
  if (orderBy.includes(`${column.name} desc`)) {
@@ -7650,18 +7838,18 @@ var DataList = (props) => {
7650
7838
  icon = "chevronUp";
7651
7839
  url = builder.getNewOrderByUrl(column.name + " desc");
7652
7840
  }
7653
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7841
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7654
7842
  "th",
7655
7843
  {
7656
7844
  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" : ""),
7657
- children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7845
+ children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7658
7846
  Hyperlink,
7659
7847
  {
7660
7848
  href: column.enableSorting ? url : void 0,
7661
7849
  className: "text-body-950",
7662
- children: /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("span", { className: "flex items-center space-x-1", children: [
7663
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { children: column.label }),
7664
- column.enableSorting && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Icon_default, { className: "w-4 h-4", name: icon })
7850
+ children: /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("span", { className: "flex items-center space-x-1", children: [
7851
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { children: column.label }),
7852
+ column.enableSorting && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Icon_default, { className: "w-4 h-4", name: icon })
7665
7853
  ] })
7666
7854
  }
7667
7855
  )
@@ -7669,7 +7857,7 @@ var DataList = (props) => {
7669
7857
  column.name
7670
7858
  );
7671
7859
  }) }) }) }) }),
7672
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { className: "w-full text-center bg-transparent pt-5", children: "There are no entries in the table at the moment." })
7860
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "w-full text-center bg-transparent pt-5", children: "There are no entries in the table at the moment." })
7673
7861
  ] })
7674
7862
  ] })
7675
7863
  ] });
@@ -7682,7 +7870,7 @@ init_ServiceClient();
7682
7870
  init_OdataBuilder();
7683
7871
  init_SelectWithSearchInput();
7684
7872
  var import_navigation3 = require("next/navigation");
7685
- var import_jsx_runtime80 = require("react/jsx-runtime");
7873
+ var import_jsx_runtime82 = require("react/jsx-runtime");
7686
7874
  var viewControlMap = {
7687
7875
  number: ViewControlTypes.number,
7688
7876
  lineText: ViewControlTypes.lineText,
@@ -7777,15 +7965,15 @@ var DataListRenderer = ({
7777
7965
  isActive: landingPageUrl === pathname
7778
7966
  };
7779
7967
  });
7780
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(import_react59.default.Fragment, { children: [
7781
- resolvedTabs.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
7968
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(import_react59.default.Fragment, { children: [
7969
+ resolvedTabs.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
7782
7970
  NavigationTabsV2_default,
7783
7971
  {
7784
7972
  tabs: resolvedTabs,
7785
7973
  params: widgetProps?.params ?? params
7786
7974
  }
7787
7975
  ),
7788
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
7976
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
7789
7977
  DataList_default,
7790
7978
  {
7791
7979
  addLinkHref,
@@ -7840,7 +8028,7 @@ var FORM_CHILD_ONE_TO_ONE_UPDATE = "FORM_CHILD_ONE_TO_ONE_UPDATE";
7840
8028
  var FORM_CHILD_ROW_ADD = "FORM_CHILD_ROW_ADD";
7841
8029
 
7842
8030
  // src/components/dataForm/DataFormChildSection.tsx
7843
- var import_jsx_runtime81 = require("react/jsx-runtime");
8031
+ var import_jsx_runtime83 = require("react/jsx-runtime");
7844
8032
  var DataFormChildSection = (props) => {
7845
8033
  const { section } = props;
7846
8034
  const isOneToOne = section.relationshipType === "one-to-one";
@@ -7908,14 +8096,14 @@ var DataFormChildSection = (props) => {
7908
8096
  childItemsToRender,
7909
8097
  allChildItems: childItems
7910
8098
  });
7911
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_react60.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "rounded border-neutral-200 border px-6 py-4 mb-2", children: [
7912
- section.sectionTitle && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "mb-4 text-lg font-medium text-body-950", children: section.sectionTitle }),
7913
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "flex-grow flex flex-col justify-between overflow-y-auto", children: /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "flex flex-col justify-between gap-2", children: [
7914
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("table", { className: "w-full border-separate divide-y divide-gray-200", children: [
7915
- (!isOneToOne || childItemsToRender.length > 0) && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("thead", { className: "", children: section.sectionRows.map((sectionRow, sectionRowIndex) => {
7916
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("tr", { className: "", children: [
8099
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_react60.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: "rounded border-neutral-200 border px-6 py-4 mb-2", children: [
8100
+ section.sectionTitle && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: "mb-4 text-lg font-medium text-body-950", children: section.sectionTitle }),
8101
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: "flex-grow flex flex-col justify-between overflow-y-auto", children: /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: "flex flex-col justify-between gap-2", children: [
8102
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("table", { className: "w-full border-separate divide-y divide-gray-200", children: [
8103
+ (!isOneToOne || childItemsToRender.length > 0) && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("thead", { className: "", children: section.sectionRows.map((sectionRow, sectionRowIndex) => {
8104
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("tr", { className: "", children: [
7917
8105
  sectionRow.elements.map((field, index) => {
7918
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
8106
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
7919
8107
  "th",
7920
8108
  {
7921
8109
  className: "py-3 font-normal text-left",
@@ -7924,21 +8112,21 @@ var DataFormChildSection = (props) => {
7924
8112
  field.name
7925
8113
  );
7926
8114
  }),
7927
- !section.readonly && !isOneToOne && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("th", { className: "py-3 font-normal text-left", children: "Actions" })
8115
+ !section.readonly && !isOneToOne && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("th", { className: "py-3 font-normal text-left", children: "Actions" })
7928
8116
  ] }, sectionRowIndex);
7929
8117
  }) }),
7930
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("tbody", { className: "divide-y divide-gray-200", children: childItemsToRender.map((visibleItem, filteredIndex) => {
8118
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("tbody", { className: "divide-y divide-gray-200", children: childItemsToRender.map((visibleItem, filteredIndex) => {
7931
8119
  const { item, originalIndex } = visibleItem;
7932
8120
  const rowKey = originalIndex;
7933
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_react60.default.Fragment, { children: section.sectionRows.map(
8121
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_react60.default.Fragment, { children: section.sectionRows.map(
7934
8122
  (sectionRow, sectionRowIndex) => {
7935
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
8123
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
7936
8124
  "tr",
7937
8125
  {
7938
8126
  className: "",
7939
8127
  children: [
7940
8128
  sectionRow.elements.map((field, index) => {
7941
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("td", { children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "w-11/12", children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
8129
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("td", { children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: "w-11/12", children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
7942
8130
  InputControl_default,
7943
8131
  {
7944
8132
  index: filteredIndex,
@@ -7958,7 +8146,7 @@ var DataFormChildSection = (props) => {
7958
8146
  }
7959
8147
  ) }) }) }, field.name);
7960
8148
  }),
7961
- !section.readonly && !isOneToOne && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("td", { children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
8149
+ !section.readonly && !isOneToOne && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("td", { children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
7962
8150
  ClientButton_default,
7963
8151
  {
7964
8152
  ButtonType: StyleTypes2.Hollow,
@@ -7967,7 +8155,7 @@ var DataFormChildSection = (props) => {
7967
8155
  },
7968
8156
  dataRole: "delete",
7969
8157
  tabIndex: -1,
7970
- children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
8158
+ children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
7971
8159
  Icon_default,
7972
8160
  {
7973
8161
  className: "w-4 h-4",
@@ -7984,7 +8172,7 @@ var DataFormChildSection = (props) => {
7984
8172
  ) }, rowKey);
7985
8173
  }) })
7986
8174
  ] }) }),
7987
- !section.readonly && !isOneToOne && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "ml-1", children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
8175
+ !section.readonly && !isOneToOne && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: "ml-1", children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
7988
8176
  ClientButton_default,
7989
8177
  {
7990
8178
  ButtonType: "Link" /* Link */,
@@ -7999,7 +8187,7 @@ var DataFormChildSection = (props) => {
7999
8187
  var DataFormChildSection_default = DataFormChildSection;
8000
8188
 
8001
8189
  // src/components/dataForm/DataForm.tsx
8002
- var import_jsx_runtime82 = require("react/jsx-runtime");
8190
+ var import_jsx_runtime84 = require("react/jsx-runtime");
8003
8191
  var DataForm = (props) => {
8004
8192
  const formRef = (0, import_react61.useRef)(null);
8005
8193
  console.log(props.dataItem, "dssads");
@@ -8219,19 +8407,19 @@ var DataForm = (props) => {
8219
8407
  return false;
8220
8408
  }
8221
8409
  }
8222
- return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_react61.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: "flex-grow flex flex-col", children: [
8223
- props.title && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("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__ */ (0, import_jsx_runtime82.jsxs)(
8410
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_react61.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "flex-grow flex flex-col", children: [
8411
+ props.title && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("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__ */ (0, import_jsx_runtime84.jsxs)(
8224
8412
  "div",
8225
8413
  {
8226
8414
  className: "inline-flex items-center gap-2 cursor-pointer",
8227
8415
  onClick: () => window.history.back(),
8228
8416
  children: [
8229
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Icon_default, { name: "chevronLeft", className: "w-4 h-4 text-primary-800" }),
8230
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("h2", { className: "text-lg font-semibold text-primary-800", children: props.title })
8417
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Icon_default, { name: "chevronLeft", className: "w-4 h-4 text-primary-800" }),
8418
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("h2", { className: "text-lg font-semibold text-primary-800", children: props.title })
8231
8419
  ]
8232
8420
  }
8233
8421
  ) }),
8234
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
8422
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
8235
8423
  "form",
8236
8424
  {
8237
8425
  className: "group space-y-6 pb-6 overflow-y-auto",
@@ -8252,8 +8440,8 @@ var DataForm = (props) => {
8252
8440
  }
8253
8441
  }
8254
8442
  },
8255
- children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "flex flex-col gap-6", children: props.sections?.map((section, sectionIndex) => {
8256
- return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_react61.default.Fragment, { children: !section.isChildSection && /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: " rounded-b-lg bg-white shadow border-neutral-200 border px-8 py-6 ", children: [
8443
+ children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: "flex flex-col gap-6", children: props.sections?.map((section, sectionIndex) => {
8444
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_react61.default.Fragment, { children: !section.isChildSection && /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: " rounded-b-lg bg-white shadow border-neutral-200 border px-8 py-6 ", children: [
8257
8445
  section.sectionRows?.map(
8258
8446
  (sectionRow, sectionRowIndex) => {
8259
8447
  const elementsCount = sectionRow.elements.length;
@@ -8264,14 +8452,14 @@ var DataForm = (props) => {
8264
8452
  sectionRow.visible
8265
8453
  );
8266
8454
  }
8267
- return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_react61.default.Fragment, { children: isVisible && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "lg:flex gap-14 flex-1 mb-4 ", children: sectionRow.elements.map((field, index) => {
8268
- return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
8455
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_react61.default.Fragment, { children: isVisible && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: "lg:flex gap-14 flex-1 mb-4 ", children: sectionRow.elements.map((field, index) => {
8456
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
8269
8457
  "div",
8270
8458
  {
8271
8459
  className: sectionRow.grow ? "grow" : "",
8272
8460
  children: [
8273
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { children: field.controlType }),
8274
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
8461
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { children: field.controlType }),
8462
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
8275
8463
  InputControl_default,
8276
8464
  {
8277
8465
  name: field.name,
@@ -8301,12 +8489,12 @@ var DataForm = (props) => {
8301
8489
  }) }) }, sectionRowIndex);
8302
8490
  }
8303
8491
  ),
8304
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { children: section.childSections?.map(
8492
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { children: section.childSections?.map(
8305
8493
  (childSection, childSectionIndex) => {
8306
- return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { children: childSection.name && evalutateCondition(
8494
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { children: childSection.name && evalutateCondition(
8307
8495
  formState.inputValues,
8308
8496
  childSection.visible
8309
- ) && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
8497
+ ) && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
8310
8498
  DataFormChildSection_default,
8311
8499
  {
8312
8500
  section: childSection,
@@ -8321,8 +8509,8 @@ var DataForm = (props) => {
8321
8509
  }) })
8322
8510
  }
8323
8511
  ),
8324
- /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: "flex px-6 py-3 mt-2 mb-2 justify-end items-center gap-5", children: [
8325
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { children: props.additionalActions && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
8512
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "flex px-6 py-3 mt-2 mb-2 justify-end items-center gap-5", children: [
8513
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { children: props.additionalActions && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
8326
8514
  Button_default,
8327
8515
  {
8328
8516
  ButtonType: "PrimaryHollow" /* Hollow */,
@@ -8330,7 +8518,7 @@ var DataForm = (props) => {
8330
8518
  children: props.additionalActions.title
8331
8519
  }
8332
8520
  ) }),
8333
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { children: props.onDelete && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
8521
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { children: props.onDelete && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
8334
8522
  Button_default,
8335
8523
  {
8336
8524
  ButtonType: "PrimaryHollow" /* Hollow */,
@@ -8341,7 +8529,7 @@ var DataForm = (props) => {
8341
8529
  children: "Delete"
8342
8530
  }
8343
8531
  ) }),
8344
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { children: props.onClick && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
8532
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { children: props.onClick && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
8345
8533
  Button_default,
8346
8534
  {
8347
8535
  onValidate,
@@ -8359,7 +8547,7 @@ var DataForm_default = DataForm;
8359
8547
 
8360
8548
  // src/components/dataForm/DataFormRenderer.tsx
8361
8549
  init_ServiceClient();
8362
- var import_jsx_runtime83 = require("react/jsx-runtime");
8550
+ var import_jsx_runtime85 = require("react/jsx-runtime");
8363
8551
  function getAction(actions, code) {
8364
8552
  return actions?.find((a) => a.actionCode === code);
8365
8553
  }
@@ -8385,9 +8573,9 @@ var DataFormRenderer = ({
8385
8573
  "Delete"
8386
8574
  );
8387
8575
  const hasDataItem = dataItem && Object.keys(dataItem).length > 0;
8388
- return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: "flex-grow flex flex-col", children: [
8389
- widgetProps && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
8390
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
8576
+ return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "flex-grow flex flex-col", children: [
8577
+ widgetProps && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
8578
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
8391
8579
  DataForm_default,
8392
8580
  {
8393
8581
  title: !isAddPage ? "Edit " + formDefinition.formTitle + "- v2" : "Add " + formDefinition.formTitle + "- v2",