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

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
@@ -807,13 +807,101 @@ var init_DateTimeViewClient = __esm({
807
807
  }
808
808
  });
809
809
 
810
+ // src/components/controls/view/VideoView.tsx
811
+ var import_jsx_runtime18, parseAssets, VideoView, VideoView_default;
812
+ var init_VideoView = __esm({
813
+ "src/components/controls/view/VideoView.tsx"() {
814
+ "use strict";
815
+ init_AssetUtility();
816
+ import_jsx_runtime18 = require("react/jsx-runtime");
817
+ parseAssets = (value) => {
818
+ if (!value) return [];
819
+ if (Array.isArray(value)) {
820
+ return value;
821
+ }
822
+ if (typeof value === "string") {
823
+ const trimmed = value.trim();
824
+ if (!trimmed) return [];
825
+ try {
826
+ const parsed = JSON.parse(trimmed);
827
+ if (Array.isArray(parsed)) {
828
+ return parsed;
829
+ }
830
+ if (parsed && typeof parsed === "object") {
831
+ return [parsed];
832
+ }
833
+ } catch {
834
+ return [{ assetUrl: trimmed }];
835
+ }
836
+ return [{ assetUrl: trimmed }];
837
+ }
838
+ if (typeof value === "object") {
839
+ return [value];
840
+ }
841
+ return [];
842
+ };
843
+ VideoView = (props) => {
844
+ const assets = parseAssets(props.value);
845
+ const asset = assets.find((item) => item.type?.toLowerCase() === "video") ?? assets[0];
846
+ if (!asset?.assetUrl) {
847
+ return null;
848
+ }
849
+ const resolvedAssetUrl = AssetUtility_default.resolveUrl(props.assetBaseUrl ?? props.apiBaseUrl, asset.assetUrl);
850
+ const resolvedPosterUrl = asset.posterUrl ? AssetUtility_default.resolveUrl(props.assetBaseUrl ?? props.apiBaseUrl, asset.posterUrl) : void 0;
851
+ const isHls = resolvedAssetUrl?.endsWith(".m3u8");
852
+ const isVideoFile = /\.(mp4|webm|ogg|mov)$/i.test(resolvedAssetUrl ?? "");
853
+ const titleText = typeof asset.title === "string" ? asset.title : typeof props.customProps?.title === "string" ? props.customProps.title : "Video";
854
+ const fileName = typeof asset.title === "string" ? asset.title : asset.assetUrl?.split("/").pop() || "video";
855
+ const containerStyle = {
856
+ width: props.width || "100%"
857
+ };
858
+ const renderMedia = () => {
859
+ if (resolvedAssetUrl && isVideoFile) {
860
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "w-full overflow-hidden rounded-lg bg-black", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
861
+ "video",
862
+ {
863
+ controls: true,
864
+ playsInline: true,
865
+ preload: "metadata",
866
+ poster: resolvedPosterUrl,
867
+ className: "w-full h-auto max-h-[70vh] object-contain bg-black",
868
+ style: { width: "100%" },
869
+ children: [
870
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("source", { src: resolvedAssetUrl }),
871
+ "Your browser does not support the video tag."
872
+ ]
873
+ }
874
+ ) });
875
+ }
876
+ return null;
877
+ };
878
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { style: containerStyle, className: "flex flex-col gap-2", children: [
879
+ titleText ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "font-medium text-sm", children: titleText }) : null,
880
+ renderMedia(),
881
+ resolvedAssetUrl ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
882
+ "a",
883
+ {
884
+ href: resolvedAssetUrl,
885
+ download: fileName,
886
+ target: "_blank",
887
+ rel: "noreferrer",
888
+ 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",
889
+ children: "Download video"
890
+ }
891
+ ) : null
892
+ ] });
893
+ };
894
+ VideoView_default = VideoView;
895
+ }
896
+ });
897
+
810
898
  // src/components/controls/edit/MultilineTextInput.tsx
811
- var import_react16, import_jsx_runtime19, MultilineTextInput, MultilineTextInput_default;
899
+ var import_react16, import_jsx_runtime20, MultilineTextInput, MultilineTextInput_default;
812
900
  var init_MultilineTextInput = __esm({
813
901
  "src/components/controls/edit/MultilineTextInput.tsx"() {
814
902
  "use strict";
815
903
  import_react16 = __toESM(require("react"));
816
- import_jsx_runtime19 = require("react/jsx-runtime");
904
+ import_jsx_runtime20 = require("react/jsx-runtime");
817
905
  MultilineTextInput = (props) => {
818
906
  const textChangeHandler = (event) => {
819
907
  const text = event.target.value;
@@ -832,11 +920,11 @@ var init_MultilineTextInput = __esm({
832
920
  if (props.value !== void 0 && props.value !== null) {
833
921
  value = props.value;
834
922
  }
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 }),
923
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react16.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("label", { className: "block mb-1", children: [
924
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
837
925
  " ",
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)(
926
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "bg-error-weak", children: "*" }),
927
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
840
928
  "textarea",
841
929
  {
842
930
  name: props.name,
@@ -853,7 +941,7 @@ var init_MultilineTextInput = __esm({
853
941
  className: "peer mt-1 py-1.5 block w-full rounded shadow-sm input"
854
942
  }
855
943
  ),
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 : "" })
944
+ /* @__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
945
  ] }) });
858
946
  };
859
947
  MultilineTextInput_default = MultilineTextInput;
@@ -861,12 +949,12 @@ var init_MultilineTextInput = __esm({
861
949
  });
862
950
 
863
951
  // src/components/controls/edit/LineTextInput.tsx
864
- var import_react17, import_jsx_runtime20, LineTextInput, LineTextInput_default;
952
+ var import_react17, import_jsx_runtime21, LineTextInput, LineTextInput_default;
865
953
  var init_LineTextInput = __esm({
866
954
  "src/components/controls/edit/LineTextInput.tsx"() {
867
955
  "use strict";
868
956
  import_react17 = __toESM(require("react"));
869
- import_jsx_runtime20 = require("react/jsx-runtime");
957
+ import_jsx_runtime21 = require("react/jsx-runtime");
870
958
  LineTextInput = (props) => {
871
959
  const textChangeHandler = (event) => {
872
960
  const text = event.target.value;
@@ -885,11 +973,11 @@ var init_LineTextInput = __esm({
885
973
  if (props.value !== void 0 && props.value !== null) {
886
974
  value = props.value;
887
975
  }
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 }),
976
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_react17.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("label", { className: "block", children: [
977
+ props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "text-sm inline-block pb-1 font-medium ", children: props?.attributes?.label }),
890
978
  " ",
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)(
979
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "bg-error-weak !bg-transparent", children: "*" }),
980
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
893
981
  "input",
894
982
  {
895
983
  type: "text",
@@ -909,7 +997,7 @@ var init_LineTextInput = __esm({
909
997
  `
910
998
  }
911
999
  ),
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 : "" })
1000
+ /* @__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
1001
  ] }) });
914
1002
  };
915
1003
  LineTextInput_default = LineTextInput;
@@ -917,12 +1005,12 @@ var init_LineTextInput = __esm({
917
1005
  });
918
1006
 
919
1007
  // src/components/controls/edit/MoneyInput.tsx
920
- var import_react18, import_jsx_runtime21, MoneyInput, MoneyInput_default;
1008
+ var import_react18, import_jsx_runtime22, MoneyInput, MoneyInput_default;
921
1009
  var init_MoneyInput = __esm({
922
1010
  "src/components/controls/edit/MoneyInput.tsx"() {
923
1011
  "use strict";
924
1012
  import_react18 = __toESM(require("react"));
925
- import_jsx_runtime21 = require("react/jsx-runtime");
1013
+ import_jsx_runtime22 = require("react/jsx-runtime");
926
1014
  MoneyInput = (props) => {
927
1015
  const textChangeHandler = (event) => {
928
1016
  const rawValue = event.target.value;
@@ -951,11 +1039,11 @@ var init_MoneyInput = __esm({
951
1039
  e.preventDefault();
952
1040
  }
953
1041
  };
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 }),
1042
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_react18.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("label", { className: "block mb-1", children: [
1043
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
956
1044
  " ",
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)(
1045
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "bg-error-weak", children: "*" }),
1046
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
959
1047
  "input",
960
1048
  {
961
1049
  type: "number",
@@ -975,7 +1063,7 @@ var init_MoneyInput = __esm({
975
1063
  className: "peer mt-1 py-1.5 block w-full rounded shadow-sm number-input"
976
1064
  }
977
1065
  ),
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 : "" })
1066
+ /* @__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
1067
  ] }) });
980
1068
  };
981
1069
  MoneyInput_default = MoneyInput;
@@ -1008,19 +1096,20 @@ var init_InputControlType = __esm({
1008
1096
  selectWithSearchInput: "selectWithSearchInput",
1009
1097
  selectWithSearchPanel: "selectWithSearchPanel",
1010
1098
  booleanSelect: "booleanSelect",
1011
- switchInput: "switchInput"
1099
+ switchInput: "switchInput",
1100
+ videoInput: "videoInput"
1012
1101
  };
1013
1102
  InputControlType_default = InputControlType;
1014
1103
  }
1015
1104
  });
1016
1105
 
1017
1106
  // src/components/controls/edit/Select.tsx
1018
- var import_react19, import_jsx_runtime22, Select, Select_default;
1107
+ var import_react19, import_jsx_runtime23, Select, Select_default;
1019
1108
  var init_Select = __esm({
1020
1109
  "src/components/controls/edit/Select.tsx"() {
1021
1110
  "use strict";
1022
1111
  import_react19 = require("react");
1023
- import_jsx_runtime22 = require("react/jsx-runtime");
1112
+ import_jsx_runtime23 = require("react/jsx-runtime");
1024
1113
  Select = (props) => {
1025
1114
  const [list, setList] = (0, import_react19.useState)([]);
1026
1115
  const getSafeValue = (val) => {
@@ -1078,11 +1167,11 @@ var init_Select = __esm({
1078
1167
  props.dataSourceDependsOn
1079
1168
  ]);
1080
1169
  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 }),
1170
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("label", { className: "block", children: [
1171
+ props.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "text-sm font-medium inline-block pb-1", children: props.attributes?.label }),
1083
1172
  " ",
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)(
1173
+ props.attributes?.label && props.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "bg-error-weak", children: "*" }),
1174
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
1086
1175
  "select",
1087
1176
  {
1088
1177
  name: props.name,
@@ -1093,16 +1182,16 @@ var init_Select = __esm({
1093
1182
  disabled: props.attributes?.readOnly,
1094
1183
  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
1184
  children: [
1096
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("option", { value: "", children: props.attributes?.placeholder || "Select" }),
1185
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("option", { value: "", children: props.attributes?.placeholder || "Select" }),
1097
1186
  list.map((item, index) => {
1098
1187
  const keyField = props.dataKeyFieldName;
1099
1188
  const textField = props.dataTextFieldName;
1100
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("option", { value: item[keyField], children: item[textField] }, index);
1189
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("option", { value: item[keyField], children: item[textField] }, index);
1101
1190
  })
1102
1191
  ]
1103
1192
  }
1104
1193
  ),
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 || "" })
1194
+ /* @__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
1195
  ] });
1107
1196
  };
1108
1197
  Select_default = Select;
@@ -1110,12 +1199,12 @@ var init_Select = __esm({
1110
1199
  });
1111
1200
 
1112
1201
  // src/components/controls/edit/PercentageInput.tsx
1113
- var import_react20, import_jsx_runtime23, PercentageInput, PercentageInput_default;
1202
+ var import_react20, import_jsx_runtime24, PercentageInput, PercentageInput_default;
1114
1203
  var init_PercentageInput = __esm({
1115
1204
  "src/components/controls/edit/PercentageInput.tsx"() {
1116
1205
  "use strict";
1117
1206
  import_react20 = __toESM(require("react"));
1118
- import_jsx_runtime23 = require("react/jsx-runtime");
1207
+ import_jsx_runtime24 = require("react/jsx-runtime");
1119
1208
  PercentageInput = (props) => {
1120
1209
  const textChangeHandler = (event) => {
1121
1210
  const rawValue = event.target.value;
@@ -1144,11 +1233,11 @@ var init_PercentageInput = __esm({
1144
1233
  e.preventDefault();
1145
1234
  }
1146
1235
  };
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 + " %" : "" }),
1236
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react20.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("label", { className: "block mb-1", children: [
1237
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label ? props?.attributes?.label + " %" : "" }),
1149
1238
  " ",
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)(
1239
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "bg-error-weak", children: "*" }),
1240
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1152
1241
  "input",
1153
1242
  {
1154
1243
  type: "number",
@@ -1167,7 +1256,7 @@ var init_PercentageInput = __esm({
1167
1256
  className: "peer mt-1 py-1.5 block w-full rounded shadow-sm number-input"
1168
1257
  }
1169
1258
  ),
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 : "" })
1259
+ /* @__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
1260
  ] }) });
1172
1261
  };
1173
1262
  PercentageInput_default = PercentageInput;
@@ -1175,12 +1264,12 @@ var init_PercentageInput = __esm({
1175
1264
  });
1176
1265
 
1177
1266
  // src/components/controls/edit/PhoneInput.tsx
1178
- var import_react21, import_jsx_runtime24, PhoneInput, PhoneInput_default;
1267
+ var import_react21, import_jsx_runtime25, PhoneInput, PhoneInput_default;
1179
1268
  var init_PhoneInput = __esm({
1180
1269
  "src/components/controls/edit/PhoneInput.tsx"() {
1181
1270
  "use strict";
1182
1271
  import_react21 = __toESM(require("react"));
1183
- import_jsx_runtime24 = require("react/jsx-runtime");
1272
+ import_jsx_runtime25 = require("react/jsx-runtime");
1184
1273
  PhoneInput = (props) => {
1185
1274
  const textChangeHandler = (event) => {
1186
1275
  const text = event.target.value;
@@ -1199,13 +1288,13 @@ var init_PhoneInput = __esm({
1199
1288
  if (props.value !== void 0 && props.value !== null) {
1200
1289
  value = props.value;
1201
1290
  }
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 }),
1291
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_react21.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("label", { className: "block mb-1", children: [
1292
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
1204
1293
  " ",
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)(
1294
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "bg-error-weak", children: "*" }),
1295
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "flex items-center rounded border ", children: [
1296
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "px-3", children: props.prefix }),
1297
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1209
1298
  "input",
1210
1299
  {
1211
1300
  type: "text",
@@ -1223,7 +1312,7 @@ var init_PhoneInput = __esm({
1223
1312
  }
1224
1313
  )
1225
1314
  ] }),
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 : "" })
1315
+ /* @__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
1316
  ] }) });
1228
1317
  };
1229
1318
  PhoneInput_default = PhoneInput;
@@ -1231,12 +1320,12 @@ var init_PhoneInput = __esm({
1231
1320
  });
1232
1321
 
1233
1322
  // src/components/controls/edit/NumberInput.tsx
1234
- var import_react22, import_jsx_runtime25, NumberInput, NumberInput_default;
1323
+ var import_react22, import_jsx_runtime26, NumberInput, NumberInput_default;
1235
1324
  var init_NumberInput = __esm({
1236
1325
  "src/components/controls/edit/NumberInput.tsx"() {
1237
1326
  "use strict";
1238
1327
  import_react22 = __toESM(require("react"));
1239
- import_jsx_runtime25 = require("react/jsx-runtime");
1328
+ import_jsx_runtime26 = require("react/jsx-runtime");
1240
1329
  NumberInput = (props) => {
1241
1330
  const textChangeHandler = (event) => {
1242
1331
  const text = event.target.value;
@@ -1259,11 +1348,11 @@ var init_NumberInput = __esm({
1259
1348
  if (props.value !== void 0 && props.value !== null) {
1260
1349
  value = props.value;
1261
1350
  }
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 }),
1351
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react22.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("label", { className: "block", children: [
1352
+ props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "text-sm inline-block pb-1 font-medium ", children: props?.attributes?.label }),
1264
1353
  " ",
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)(
1354
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "bg-error-weak", children: "*" }),
1355
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1267
1356
  "input",
1268
1357
  {
1269
1358
  type: "number",
@@ -1282,7 +1371,7 @@ var init_NumberInput = __esm({
1282
1371
  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
1372
  }
1284
1373
  ),
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 : "" })
1374
+ /* @__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
1375
  ] }) });
1287
1376
  };
1288
1377
  NumberInput_default = NumberInput;
@@ -1290,12 +1379,12 @@ var init_NumberInput = __esm({
1290
1379
  });
1291
1380
 
1292
1381
  // src/components/controls/edit/CheckboxInput.tsx
1293
- var import_react23, import_jsx_runtime26, CheckboxInput, CheckboxInput_default;
1382
+ var import_react23, import_jsx_runtime27, CheckboxInput, CheckboxInput_default;
1294
1383
  var init_CheckboxInput = __esm({
1295
1384
  "src/components/controls/edit/CheckboxInput.tsx"() {
1296
1385
  "use strict";
1297
1386
  import_react23 = __toESM(require("react"));
1298
- import_jsx_runtime26 = require("react/jsx-runtime");
1387
+ import_jsx_runtime27 = require("react/jsx-runtime");
1299
1388
  CheckboxInput = (props) => {
1300
1389
  const textChangeHandler = (event) => {
1301
1390
  let text = event.target.checked;
@@ -1312,9 +1401,9 @@ var init_CheckboxInput = __esm({
1312
1401
  if (props.value != void 0 && props.value != null && props.value != "" && (props.value == "true" || props.value.toString() == "true")) {
1313
1402
  value = true;
1314
1403
  }
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)(
1404
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react23.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "mb-1", children: [
1405
+ props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_jsx_runtime27.Fragment, { children: [
1406
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1318
1407
  "label",
1319
1408
  {
1320
1409
  htmlFor: props.name,
@@ -1322,9 +1411,9 @@ var init_CheckboxInput = __esm({
1322
1411
  children: props.attributes.label
1323
1412
  }
1324
1413
  ),
1325
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "bg-error-weak", children: "*" })
1414
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "bg-error-weak", children: "*" })
1326
1415
  ] }),
1327
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1416
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1328
1417
  "input",
1329
1418
  {
1330
1419
  type: "checkbox",
@@ -1341,7 +1430,7 @@ var init_CheckboxInput = __esm({
1341
1430
  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
1431
  }
1343
1432
  ),
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 || "" })
1433
+ /* @__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
1434
  ] }) });
1346
1435
  };
1347
1436
  CheckboxInput_default = CheckboxInput;
@@ -1349,12 +1438,12 @@ var init_CheckboxInput = __esm({
1349
1438
  });
1350
1439
 
1351
1440
  // src/components/controls/edit/OtpInput.tsx
1352
- var import_react24, import_jsx_runtime27, OtpInput, OtpInput_default;
1441
+ var import_react24, import_jsx_runtime28, OtpInput, OtpInput_default;
1353
1442
  var init_OtpInput = __esm({
1354
1443
  "src/components/controls/edit/OtpInput.tsx"() {
1355
1444
  "use strict";
1356
1445
  import_react24 = __toESM(require("react"));
1357
- import_jsx_runtime27 = require("react/jsx-runtime");
1446
+ import_jsx_runtime28 = require("react/jsx-runtime");
1358
1447
  OtpInput = (props) => {
1359
1448
  const textChangeHandler = (event) => {
1360
1449
  const text = event.target.value;
@@ -1376,11 +1465,11 @@ var init_OtpInput = __esm({
1376
1465
  if (props.value !== void 0 && props.value !== null) {
1377
1466
  value = props.value;
1378
1467
  }
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 }),
1468
+ 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: [
1469
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
1381
1470
  " ",
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)(
1471
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "bg-error-weak", children: "*" }),
1472
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1384
1473
  "input",
1385
1474
  {
1386
1475
  type: "text",
@@ -1400,7 +1489,7 @@ var init_OtpInput = __esm({
1400
1489
  className: "peer mt-1 py-1.5 block w-full rounded shadow-sm tracking-[1.25em] text-center"
1401
1490
  }
1402
1491
  ),
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 : "" })
1492
+ /* @__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
1493
  ] }) });
1405
1494
  };
1406
1495
  OtpInput_default = OtpInput;
@@ -1408,12 +1497,12 @@ var init_OtpInput = __esm({
1408
1497
  });
1409
1498
 
1410
1499
  // src/components/controls/edit/DateTimeInput.tsx
1411
- var import_react25, import_jsx_runtime28, DateTimeInput, DateTimeInput_default;
1500
+ var import_react25, import_jsx_runtime29, DateTimeInput, DateTimeInput_default;
1412
1501
  var init_DateTimeInput = __esm({
1413
1502
  "src/components/controls/edit/DateTimeInput.tsx"() {
1414
1503
  "use strict";
1415
1504
  import_react25 = __toESM(require("react"));
1416
- import_jsx_runtime28 = require("react/jsx-runtime");
1505
+ import_jsx_runtime29 = require("react/jsx-runtime");
1417
1506
  DateTimeInput = (props) => {
1418
1507
  const textChangeHandler = (event) => {
1419
1508
  const localDate = new Date(event.target.value);
@@ -1445,12 +1534,12 @@ var init_DateTimeInput = __esm({
1445
1534
  e.preventDefault();
1446
1535
  }
1447
1536
  };
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 }),
1537
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react25.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("label", { className: "block mb-1", children: [
1538
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
1450
1539
  " ",
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)(
1540
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "bg-error-weak", children: "*" }),
1541
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "flex items-center gap-2", children: [
1542
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1454
1543
  "input",
1455
1544
  {
1456
1545
  type: "datetime-local",
@@ -1468,9 +1557,9 @@ var init_DateTimeInput = __esm({
1468
1557
  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
1558
  }
1470
1559
  ),
1471
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { children: timeZoneAbbr })
1560
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { children: timeZoneAbbr })
1472
1561
  ] }),
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 : "" })
1562
+ /* @__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
1563
  ] }) });
1475
1564
  };
1476
1565
  DateTimeInput_default = DateTimeInput;
@@ -1478,12 +1567,12 @@ var init_DateTimeInput = __esm({
1478
1567
  });
1479
1568
 
1480
1569
  // src/components/controls/edit/ColorInput.tsx
1481
- var import_react26, import_jsx_runtime29, ColorInput, ColorInput_default;
1570
+ var import_react26, import_jsx_runtime30, ColorInput, ColorInput_default;
1482
1571
  var init_ColorInput = __esm({
1483
1572
  "src/components/controls/edit/ColorInput.tsx"() {
1484
1573
  "use strict";
1485
1574
  import_react26 = __toESM(require("react"));
1486
- import_jsx_runtime29 = require("react/jsx-runtime");
1575
+ import_jsx_runtime30 = require("react/jsx-runtime");
1487
1576
  ColorInput = (props) => {
1488
1577
  const [color, setColor] = import_react26.default.useState("#3b82f6");
1489
1578
  (0, import_react26.useEffect)(() => {
@@ -1505,11 +1594,11 @@ var init_ColorInput = __esm({
1505
1594
  });
1506
1595
  }
1507
1596
  };
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 }),
1597
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("label", { className: "block mb-1", children: [
1598
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "text-sm font-medium", children: props?.attributes?.label }),
1510
1599
  " ",
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)(
1600
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "bg-error-weak", children: "*" }),
1601
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1513
1602
  "input",
1514
1603
  {
1515
1604
  type: "color",
@@ -1522,7 +1611,7 @@ var init_ColorInput = __esm({
1522
1611
  className: `w-[78px] h-12 block cursor-pointer`
1523
1612
  }
1524
1613
  ),
1525
- props?.attributes?.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("p", { className: "mt-1 bg-error-weak text-sm", children: props.attributes.errorMessage })
1614
+ props?.attributes?.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "mt-1 bg-error-weak text-sm", children: props.attributes.errorMessage })
1526
1615
  ] });
1527
1616
  };
1528
1617
  ColorInput_default = ColorInput;
@@ -1530,13 +1619,13 @@ var init_ColorInput = __esm({
1530
1619
  });
1531
1620
 
1532
1621
  // src/components/controls/edit/SelectWithSearchInput.tsx
1533
- var import_react27, import_jsx_runtime30, SelectWithSearchInput, SelectWithSearchInput_default;
1622
+ var import_react27, import_jsx_runtime31, SelectWithSearchInput, SelectWithSearchInput_default;
1534
1623
  var init_SelectWithSearchInput = __esm({
1535
1624
  "src/components/controls/edit/SelectWithSearchInput.tsx"() {
1536
1625
  "use strict";
1537
1626
  "use client";
1538
1627
  import_react27 = require("react");
1539
- import_jsx_runtime30 = require("react/jsx-runtime");
1628
+ import_jsx_runtime31 = require("react/jsx-runtime");
1540
1629
  SelectWithSearchInput = (props) => {
1541
1630
  const [isOpen, setIsOpen] = (0, import_react27.useState)(false);
1542
1631
  const [searchTerm, setSearchTerm] = (0, import_react27.useState)("");
@@ -1607,15 +1696,15 @@ var init_SelectWithSearchInput = __esm({
1607
1696
  });
1608
1697
  }
1609
1698
  }, [highlightedIndex]);
1610
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "relative", children: [
1611
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("label", { children: [
1699
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "relative", children: [
1700
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("label", { children: [
1612
1701
  props.attributes?.label,
1613
1702
  " ",
1614
1703
  " ",
1615
- props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "bg-error-weak", children: "*" })
1704
+ props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "bg-error-weak", children: "*" })
1616
1705
  ] }),
1617
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "relative", children: [
1618
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1706
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "relative", children: [
1707
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1619
1708
  "input",
1620
1709
  {
1621
1710
  type: "text",
@@ -1631,13 +1720,13 @@ var init_SelectWithSearchInput = __esm({
1631
1720
  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
1721
  }
1633
1722
  ),
1634
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1723
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1635
1724
  "button",
1636
1725
  {
1637
1726
  type: "button",
1638
1727
  onClick: () => setIsOpen(!isOpen),
1639
1728
  className: "absolute right-2 top-3 h-5 w-5 text-gray-500 focus:outline-none",
1640
- children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1729
+ children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1641
1730
  "svg",
1642
1731
  {
1643
1732
  xmlns: "http://www.w3.org/2000/svg",
@@ -1646,7 +1735,7 @@ var init_SelectWithSearchInput = __esm({
1646
1735
  strokeWidth: 1.5,
1647
1736
  stroke: "currentColor",
1648
1737
  className: "w-full h-full",
1649
- children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1738
+ children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1650
1739
  "path",
1651
1740
  {
1652
1741
  strokeLinecap: "round",
@@ -1659,12 +1748,12 @@ var init_SelectWithSearchInput = __esm({
1659
1748
  }
1660
1749
  )
1661
1750
  ] }),
1662
- isOpen && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1751
+ isOpen && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1663
1752
  "div",
1664
1753
  {
1665
1754
  ref: dropdownRef,
1666
1755
  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)(
1756
+ children: filteredItems.length > 0 ? filteredItems.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1668
1757
  "button",
1669
1758
  {
1670
1759
  onClick: (e) => handleSelect(e, item),
@@ -1672,10 +1761,10 @@ var init_SelectWithSearchInput = __esm({
1672
1761
  role: "option",
1673
1762
  tabIndex: -1,
1674
1763
  onMouseEnter: () => setHighlightedIndex(index),
1675
- children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { children: item[props.dataTextFieldName] })
1764
+ children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { children: item[props.dataTextFieldName] })
1676
1765
  },
1677
1766
  item[props.dataKeyFieldName]
1678
- )) : /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "px-4 py-2 text-gray-500", children: "No results found" })
1767
+ )) : /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "px-4 py-2 text-gray-500", children: "No results found" })
1679
1768
  }
1680
1769
  )
1681
1770
  ] });
@@ -1763,7 +1852,7 @@ var init_StyleTypes = __esm({
1763
1852
  });
1764
1853
 
1765
1854
  // src/components/ClientButton.tsx
1766
- var import_react28, import_jsx_runtime31, ClientButton, ClientButton_default;
1855
+ var import_react28, import_jsx_runtime32, ClientButton, ClientButton_default;
1767
1856
  var init_ClientButton = __esm({
1768
1857
  "src/components/ClientButton.tsx"() {
1769
1858
  "use strict";
@@ -1771,7 +1860,7 @@ var init_ClientButton = __esm({
1771
1860
  import_react28 = __toESM(require("react"));
1772
1861
  init_ToastService();
1773
1862
  init_StyleTypes();
1774
- import_jsx_runtime31 = require("react/jsx-runtime");
1863
+ import_jsx_runtime32 = require("react/jsx-runtime");
1775
1864
  ClientButton = (props) => {
1776
1865
  const execute = async (event) => {
1777
1866
  if (props.onClick !== void 0) {
@@ -1781,7 +1870,7 @@ var init_ClientButton = __esm({
1781
1870
  }
1782
1871
  };
1783
1872
  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)(
1873
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react28.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1785
1874
  "button",
1786
1875
  {
1787
1876
  type: "button",
@@ -1796,7 +1885,7 @@ var init_ClientButton = __esm({
1796
1885
  });
1797
1886
 
1798
1887
  // src/components/Confirm.tsx
1799
- var import_react29, import_jsx_runtime32, Confirm, Confirm_default;
1888
+ var import_react29, import_jsx_runtime33, Confirm, Confirm_default;
1800
1889
  var init_Confirm = __esm({
1801
1890
  "src/components/Confirm.tsx"() {
1802
1891
  "use strict";
@@ -1804,7 +1893,7 @@ var init_Confirm = __esm({
1804
1893
  import_react29 = require("react");
1805
1894
  init_ClientButton();
1806
1895
  init_StyleTypes();
1807
- import_jsx_runtime32 = require("react/jsx-runtime");
1896
+ import_jsx_runtime33 = require("react/jsx-runtime");
1808
1897
  Confirm = ({ message, onConfirm, onCancel }) => {
1809
1898
  const [showModal, setShowModal] = (0, import_react29.useState)(true);
1810
1899
  const handleConfirmAction = () => {
@@ -1819,13 +1908,13 @@ var init_Confirm = __esm({
1819
1908
  onCancel();
1820
1909
  }
1821
1910
  };
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)(
1911
+ 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: [
1912
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "absolute inset-0 bg-black opacity-70" }),
1913
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "bg-white rounded-md p-6 w-2/6 shadow border z-50", children: [
1914
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "text-xl font-medium mb-4", children: "Confirmation" }),
1915
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "mb-4", children: message }),
1916
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex justify-end gap-8", children: [
1917
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1829
1918
  ClientButton_default,
1830
1919
  {
1831
1920
  onClick: handleCancelAction,
@@ -1833,7 +1922,7 @@ var init_Confirm = __esm({
1833
1922
  children: "Cancel"
1834
1923
  }
1835
1924
  ),
1836
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1925
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1837
1926
  ClientButton_default,
1838
1927
  {
1839
1928
  onClick: handleConfirmAction,
@@ -1851,7 +1940,7 @@ var init_Confirm = __esm({
1851
1940
  });
1852
1941
 
1853
1942
  // src/components/Button.tsx
1854
- var import_react30, import_jsx_runtime33, Button, Button_default;
1943
+ var import_react30, import_jsx_runtime34, Button, Button_default;
1855
1944
  var init_Button = __esm({
1856
1945
  "src/components/Button.tsx"() {
1857
1946
  "use strict";
@@ -1860,7 +1949,7 @@ var init_Button = __esm({
1860
1949
  init_ToastService();
1861
1950
  init_StyleTypes();
1862
1951
  init_Confirm();
1863
- import_jsx_runtime33 = require("react/jsx-runtime");
1952
+ import_jsx_runtime34 = require("react/jsx-runtime");
1864
1953
  Button = (props) => {
1865
1954
  const [inProgress, setInProgress] = (0, import_react30.useState)(false);
1866
1955
  const [isActionPerformed, setIsActionPerformed] = (0, import_react30.useState)(false);
@@ -1909,14 +1998,14 @@ var init_Button = __esm({
1909
1998
  return new Promise((resolve) => {
1910
1999
  const onConfirm = () => resolve(true);
1911
2000
  const onCancel = () => resolve(false);
1912
- setShowModal(/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Confirm_default, { message: props.confirmationMessage, onConfirm, onCancel }));
2001
+ setShowModal(/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Confirm_default, { message: props.confirmationMessage, onConfirm, onCancel }));
1913
2002
  });
1914
2003
  };
1915
2004
  let buttonClass = props.ButtonType ? buttonClasses.get(props.ButtonType) : buttonClasses.get("Primary" /* Solid */);
1916
2005
  let progressClass = props.ButtonType ? progressClasses.get(props.ButtonType) : progressClasses.get("Primary" /* Solid */);
1917
2006
  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)(
2007
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_react30.default.Fragment, { children: [
2008
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
1920
2009
  "button",
1921
2010
  {
1922
2011
  type: "submit",
@@ -1926,9 +2015,9 @@ var init_Button = __esm({
1926
2015
  className: buttonClass + " relative " + props.className,
1927
2016
  children: [
1928
2017
  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" })
2018
+ 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: [
2019
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("circle", { className: "opacity-25", cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "4" }),
2020
+ /* @__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
2021
  ] }) })
1933
2022
  ]
1934
2023
  }
@@ -1941,14 +2030,14 @@ var init_Button = __esm({
1941
2030
  });
1942
2031
 
1943
2032
  // src/components/controls/edit/SelectWithSearchPanel.tsx
1944
- var import_react31, import_jsx_runtime34, SelectWithSearchPanel, SelectWithSearchPanel_default;
2033
+ var import_react31, import_jsx_runtime35, SelectWithSearchPanel, SelectWithSearchPanel_default;
1945
2034
  var init_SelectWithSearchPanel = __esm({
1946
2035
  "src/components/controls/edit/SelectWithSearchPanel.tsx"() {
1947
2036
  "use strict";
1948
2037
  "use client";
1949
2038
  init_Button();
1950
2039
  import_react31 = __toESM(require("react"));
1951
- import_jsx_runtime34 = require("react/jsx-runtime");
2040
+ import_jsx_runtime35 = require("react/jsx-runtime");
1952
2041
  SelectWithSearchPanel = (props) => {
1953
2042
  const [isOpen, setIsOpen] = (0, import_react31.useState)(false);
1954
2043
  const [searchTerm, setSearchTerm] = (0, import_react31.useState)("");
@@ -2084,14 +2173,14 @@ var init_SelectWithSearchPanel = __esm({
2084
2173
  console.log("Form Data:", formData);
2085
2174
  return formData;
2086
2175
  }, []);
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: [
2176
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "relative", children: [
2177
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("label", { className: "text-sm mb-1 font-medium", children: [
2089
2178
  props.attributes?.label,
2090
2179
  " ",
2091
2180
  " ",
2092
- props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "bg-error-weak", children: "*" })
2181
+ props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "bg-error-weak", children: "*" })
2093
2182
  ] }),
2094
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
2183
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2095
2184
  "input",
2096
2185
  {
2097
2186
  type: "text",
@@ -2105,14 +2194,14 @@ var init_SelectWithSearchPanel = __esm({
2105
2194
  disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none`
2106
2195
  }
2107
2196
  ) }),
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: [
2197
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { ref: containerRef, children: isOpen && /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_react31.default.Fragment, { children: [
2198
+ /* @__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: [
2199
+ /* @__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
2200
  "Select a",
2112
2201
  " ",
2113
2202
  props.attributes?.label || props.attributes?.heading
2114
2203
  ] }) }),
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)(
2204
+ /* @__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
2205
  "button",
2117
2206
  {
2118
2207
  type: "button",
@@ -2125,12 +2214,12 @@ var init_SelectWithSearchPanel = __esm({
2125
2214
  }
2126
2215
  ) })
2127
2216
  ] }),
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: [
2217
+ 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: [
2218
+ /* @__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
2219
  "Create New ",
2131
2220
  props.attributes?.label
2132
2221
  ] }) }),
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)(
2222
+ /* @__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
2223
  "button",
2135
2224
  {
2136
2225
  type: "button",
@@ -2139,10 +2228,10 @@ var init_SelectWithSearchPanel = __esm({
2139
2228
  children: "Close"
2140
2229
  }
2141
2230
  ) }),
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)(
2231
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "p-4", children: [
2232
+ props.createFields?.map((field) => /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "mb-4", children: [
2233
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("label", { className: "text-sm mb-1 font-medium block", children: field.label }),
2234
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2146
2235
  "input",
2147
2236
  {
2148
2237
  type: field.type,
@@ -2158,7 +2247,7 @@ var init_SelectWithSearchPanel = __esm({
2158
2247
  }
2159
2248
  )
2160
2249
  ] }, field.name)),
2161
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(Button_default, { onClick: async () => {
2250
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(Button_default, { onClick: async () => {
2162
2251
  handleSaveModal();
2163
2252
  return { isSuccessful: true };
2164
2253
  }, className: "w-full", children: [
@@ -2167,13 +2256,13 @@ var init_SelectWithSearchPanel = __esm({
2167
2256
  ] })
2168
2257
  ] })
2169
2258
  ] }),
2170
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
2259
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2171
2260
  "div",
2172
2261
  {
2173
2262
  ref: listRef,
2174
2263
  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
2264
  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)(
2265
+ children: filteredItems.length > 0 ? filteredItems.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2177
2266
  "button",
2178
2267
  {
2179
2268
  onClick: (e) => {
@@ -2183,9 +2272,9 @@ var init_SelectWithSearchPanel = __esm({
2183
2272
  role: "option",
2184
2273
  tabIndex: -1,
2185
2274
  onMouseEnter: () => setHighlightedIndex(index),
2186
- children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { children: getNestedValue7(item, props.dataTextFieldName) })
2275
+ children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { children: getNestedValue7(item, props.dataTextFieldName) })
2187
2276
  }
2188
- ) }, item[props.dataKeyFieldName])) : /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "px-4 py-2 text-gray-500", children: "No results found" })
2277
+ ) }, item[props.dataKeyFieldName])) : /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "px-4 py-2 text-gray-500", children: "No results found" })
2189
2278
  }
2190
2279
  )
2191
2280
  ] }) })
@@ -2196,12 +2285,12 @@ var init_SelectWithSearchPanel = __esm({
2196
2285
  });
2197
2286
 
2198
2287
  // src/components/controls/edit/BooleanSelect.tsx
2199
- var import_react32, import_jsx_runtime35, BooleanSelect, BooleanSelect_default;
2288
+ var import_react32, import_jsx_runtime36, BooleanSelect, BooleanSelect_default;
2200
2289
  var init_BooleanSelect = __esm({
2201
2290
  "src/components/controls/edit/BooleanSelect.tsx"() {
2202
2291
  "use strict";
2203
2292
  import_react32 = __toESM(require("react"));
2204
- import_jsx_runtime35 = require("react/jsx-runtime");
2293
+ import_jsx_runtime36 = require("react/jsx-runtime");
2205
2294
  BooleanSelect = (props) => {
2206
2295
  const [list, setList] = (0, import_react32.useState)();
2207
2296
  const textChangeHandler = (event) => {
@@ -2250,11 +2339,11 @@ var init_BooleanSelect = __esm({
2250
2339
  if (props.value !== void 0 && props.value !== null) {
2251
2340
  value = props.value;
2252
2341
  }
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 }),
2342
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react32.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("label", { className: "block", children: [
2343
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
2255
2344
  " ",
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)(
2345
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "bg-error-weak", children: "*" }),
2346
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
2258
2347
  "select",
2259
2348
  {
2260
2349
  name: props.name,
@@ -2266,9 +2355,9 @@ var init_BooleanSelect = __esm({
2266
2355
  disabled: props?.attributes?.readOnly,
2267
2356
  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
2357
  children: [
2269
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("option", { className: "", value: "", children: props.attributes?.placeholder || "Select" }),
2358
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("option", { className: "", value: "", children: props.attributes?.placeholder || "Select" }),
2270
2359
  list && list.map((item, i) => {
2271
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2360
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
2272
2361
  "option",
2273
2362
  {
2274
2363
  className: "fac-select-option",
@@ -2281,7 +2370,7 @@ var init_BooleanSelect = __esm({
2281
2370
  ]
2282
2371
  }
2283
2372
  ),
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 : "" })
2373
+ /* @__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
2374
  ] }) });
2286
2375
  };
2287
2376
  BooleanSelect_default = BooleanSelect;
@@ -2289,12 +2378,12 @@ var init_BooleanSelect = __esm({
2289
2378
  });
2290
2379
 
2291
2380
  // src/components/controls/edit/EmailInput.tsx
2292
- var import_react33, import_jsx_runtime36, EmailInput, EmailInput_default;
2381
+ var import_react33, import_jsx_runtime37, EmailInput, EmailInput_default;
2293
2382
  var init_EmailInput = __esm({
2294
2383
  "src/components/controls/edit/EmailInput.tsx"() {
2295
2384
  "use strict";
2296
2385
  import_react33 = __toESM(require("react"));
2297
- import_jsx_runtime36 = require("react/jsx-runtime");
2386
+ import_jsx_runtime37 = require("react/jsx-runtime");
2298
2387
  EmailInput = (props) => {
2299
2388
  const textChangeHandler = (event) => {
2300
2389
  const text = event.target.value;
@@ -2319,11 +2408,11 @@ var init_EmailInput = __esm({
2319
2408
  if (props.value !== void 0 && props.value !== null) {
2320
2409
  value = props.value;
2321
2410
  }
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 }),
2411
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_react33.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("label", { className: "block mb-1", children: [
2412
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "text-sm font-medium text-slate-700", children: props?.attributes?.label }),
2324
2413
  " ",
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)(
2414
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "bg-error-weak", children: "*" }),
2415
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2327
2416
  "input",
2328
2417
  {
2329
2418
  type: "email",
@@ -2339,7 +2428,7 @@ var init_EmailInput = __esm({
2339
2428
  className: "peer mt-1 py-1.5 block w-full rounded shadow-sm\n transition-all duration-500 ease-in-out"
2340
2429
  }
2341
2430
  ),
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 : "" })
2431
+ /* @__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
2432
  ] }) });
2344
2433
  };
2345
2434
  EmailInput_default = EmailInput;
@@ -2347,13 +2436,13 @@ var init_EmailInput = __esm({
2347
2436
  });
2348
2437
 
2349
2438
  // src/components/controls/edit/TimeInput.tsx
2350
- var import_react34, import_jsx_runtime37, TimeInput, TimeInput_default;
2439
+ var import_react34, import_jsx_runtime38, TimeInput, TimeInput_default;
2351
2440
  var init_TimeInput = __esm({
2352
2441
  "src/components/controls/edit/TimeInput.tsx"() {
2353
2442
  "use strict";
2354
2443
  "use client";
2355
2444
  import_react34 = __toESM(require("react"));
2356
- import_jsx_runtime37 = require("react/jsx-runtime");
2445
+ import_jsx_runtime38 = require("react/jsx-runtime");
2357
2446
  TimeInput = (props) => {
2358
2447
  const timeChangeHandler = (event) => {
2359
2448
  const timeValue = event.target.value;
@@ -2366,11 +2455,11 @@ var init_TimeInput = __esm({
2366
2455
  });
2367
2456
  }
2368
2457
  };
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 }),
2458
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_react34.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("label", { className: "block mb-1", children: [
2459
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "text-sm font-medium", children: props?.attributes?.label }),
2371
2460
  " ",
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)(
2461
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "bg-error-weak", children: "*" }),
2462
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2374
2463
  "input",
2375
2464
  {
2376
2465
  type: "time",
@@ -2383,7 +2472,7 @@ var init_TimeInput = __esm({
2383
2472
  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
2473
  }
2385
2474
  ) }),
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 ?? "" })
2475
+ /* @__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
2476
  ] }) });
2388
2477
  };
2389
2478
  TimeInput_default = TimeInput;
@@ -2398,7 +2487,7 @@ function Hyperlink(props) {
2398
2487
  if (target == "_blank") {
2399
2488
  additionalProps.rel = "noopener noreferrer";
2400
2489
  }
2401
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_jsx_runtime38.Fragment, { children: props.href ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2490
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_jsx_runtime39.Fragment, { children: props.href ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2402
2491
  import_link.default,
2403
2492
  {
2404
2493
  href: props.href,
@@ -2408,65 +2497,65 @@ function Hyperlink(props) {
2408
2497
  target,
2409
2498
  children: props.children
2410
2499
  }
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 }) });
2500
+ ) : 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
2501
  }
2413
- var import_link, import_jsx_runtime38;
2502
+ var import_link, import_jsx_runtime39;
2414
2503
  var init_Hyperlink = __esm({
2415
2504
  "src/components/dataForm/Hyperlink.tsx"() {
2416
2505
  "use strict";
2417
2506
  import_link = __toESM(require("next/link"));
2418
2507
  init_StyleTypes();
2419
- import_jsx_runtime38 = require("react/jsx-runtime");
2508
+ import_jsx_runtime39 = require("react/jsx-runtime");
2420
2509
  }
2421
2510
  });
2422
2511
 
2423
2512
  // src/svg/chevron-updown.tsx
2424
- var import_jsx_runtime39, ChevronUpDown, chevron_updown_default;
2513
+ var import_jsx_runtime40, ChevronUpDown, chevron_updown_default;
2425
2514
  var init_chevron_updown = __esm({
2426
2515
  "src/svg/chevron-updown.tsx"() {
2427
2516
  "use strict";
2428
- import_jsx_runtime39 = require("react/jsx-runtime");
2517
+ import_jsx_runtime40 = require("react/jsx-runtime");
2429
2518
  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" }) });
2519
+ 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
2520
  };
2432
2521
  chevron_updown_default = ChevronUpDown;
2433
2522
  }
2434
2523
  });
2435
2524
 
2436
2525
  // src/svg/chevron-down.tsx
2437
- var import_jsx_runtime40, ChevronDown, chevron_down_default;
2526
+ var import_jsx_runtime41, ChevronDown, chevron_down_default;
2438
2527
  var init_chevron_down = __esm({
2439
2528
  "src/svg/chevron-down.tsx"() {
2440
2529
  "use strict";
2441
- import_jsx_runtime40 = require("react/jsx-runtime");
2530
+ import_jsx_runtime41 = require("react/jsx-runtime");
2442
2531
  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" }) });
2532
+ 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
2533
  };
2445
2534
  chevron_down_default = ChevronDown;
2446
2535
  }
2447
2536
  });
2448
2537
 
2449
2538
  // src/svg/chevron-up.tsx
2450
- var import_jsx_runtime41, ChevronUp, chevron_up_default;
2539
+ var import_jsx_runtime42, ChevronUp, chevron_up_default;
2451
2540
  var init_chevron_up = __esm({
2452
2541
  "src/svg/chevron-up.tsx"() {
2453
2542
  "use strict";
2454
- import_jsx_runtime41 = require("react/jsx-runtime");
2543
+ import_jsx_runtime42 = require("react/jsx-runtime");
2455
2544
  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" }) });
2545
+ 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
2546
  };
2458
2547
  chevron_up_default = ChevronUp;
2459
2548
  }
2460
2549
  });
2461
2550
 
2462
2551
  // src/svg/plus.tsx
2463
- var import_jsx_runtime42, Plus, plus_default;
2552
+ var import_jsx_runtime43, Plus, plus_default;
2464
2553
  var init_plus = __esm({
2465
2554
  "src/svg/plus.tsx"() {
2466
2555
  "use strict";
2467
- import_jsx_runtime42 = require("react/jsx-runtime");
2556
+ import_jsx_runtime43 = require("react/jsx-runtime");
2468
2557
  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" }) });
2558
+ 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
2559
  };
2471
2560
  plus_default = Plus;
2472
2561
  }
@@ -2492,26 +2581,26 @@ var init_Icons = __esm({
2492
2581
  });
2493
2582
 
2494
2583
  // src/svg/Icon.tsx
2495
- var import_jsx_runtime43, Icon, Icon_default;
2584
+ var import_jsx_runtime44, Icon, Icon_default;
2496
2585
  var init_Icon = __esm({
2497
2586
  "src/svg/Icon.tsx"() {
2498
2587
  "use strict";
2499
2588
  init_Icons();
2500
- import_jsx_runtime43 = require("react/jsx-runtime");
2589
+ import_jsx_runtime44 = require("react/jsx-runtime");
2501
2590
  Icon = ({ name, className, ...props }) => {
2502
2591
  const IconComponent = Icons_default[name];
2503
2592
  if (!IconComponent) {
2504
2593
  console.error(`Icon "${name}" not found.`);
2505
2594
  return null;
2506
2595
  }
2507
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(IconComponent, { ...props, className });
2596
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(IconComponent, { ...props, className });
2508
2597
  };
2509
2598
  Icon_default = Icon;
2510
2599
  }
2511
2600
  });
2512
2601
 
2513
2602
  // src/components/controls/edit/AssetUpload.tsx
2514
- var import_react35, import_jsx_runtime44, AssetUpload, AssetUpload_default;
2603
+ var import_react35, import_jsx_runtime45, AssetUpload, AssetUpload_default;
2515
2604
  var init_AssetUpload = __esm({
2516
2605
  "src/components/controls/edit/AssetUpload.tsx"() {
2517
2606
  "use strict";
@@ -2522,7 +2611,7 @@ var init_AssetUpload = __esm({
2522
2611
  init_AssetUtility();
2523
2612
  init_Hyperlink();
2524
2613
  init_Icon();
2525
- import_jsx_runtime44 = require("react/jsx-runtime");
2614
+ import_jsx_runtime45 = require("react/jsx-runtime");
2526
2615
  AssetUpload = (props) => {
2527
2616
  const isDisabled = props.attributes?.disable ?? false;
2528
2617
  let allValues = [];
@@ -2619,10 +2708,10 @@ var init_AssetUpload = __esm({
2619
2708
  }
2620
2709
  return false;
2621
2710
  };
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)(
2711
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_react35.default.Fragment, { children: [
2712
+ /* @__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 }) }),
2713
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex gap-6 bg-neutral-100 rounded p-2", children: [
2714
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2626
2715
  ClientButton_default,
2627
2716
  {
2628
2717
  className: assetType === "image" ? "px-2 py-1 rounded bg-body-200 scale-95" : "text-neutral-700",
@@ -2632,7 +2721,7 @@ var init_AssetUpload = __esm({
2632
2721
  children: "Image Upload"
2633
2722
  }
2634
2723
  ),
2635
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2724
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2636
2725
  ClientButton_default,
2637
2726
  {
2638
2727
  className: assetType === "video" ? "bg-body-200 px-2 py-1 rounded-md scale-95" : "text-neutral-700",
@@ -2643,13 +2732,13 @@ var init_AssetUpload = __esm({
2643
2732
  }
2644
2733
  )
2645
2734
  ] }),
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)(
2735
+ 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: [
2736
+ /* @__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" }),
2737
+ /* @__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: [
2738
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "grid grid-cols-2 gap-x-8 gap-y-3 text-sm w-full", children: [
2739
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { children: [
2740
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("p", { className: "text-gray-500", children: "Title" }),
2741
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2653
2742
  "input",
2654
2743
  {
2655
2744
  type: "text",
@@ -2661,18 +2750,18 @@ var init_AssetUpload = __esm({
2661
2750
  }
2662
2751
  )
2663
2752
  ] }),
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: [
2753
+ digitalAsset.intrinsicWidth && digitalAsset.intrinsicHeight && /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { children: [
2754
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("p", { className: "text-gray-500", children: "Resolution" }),
2755
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("p", { className: "font-medium text-gray-900 mt-3", children: [
2667
2756
  digitalAsset.intrinsicWidth,
2668
2757
  "\xD7",
2669
2758
  digitalAsset.intrinsicHeight
2670
2759
  ] })
2671
2760
  ] }),
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)(
2761
+ (digitalAsset.assetUrl || digitalAsset.posterUrl) && /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { children: [
2762
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("p", { className: "text-gray-500", children: "Image / Poster" }),
2763
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex-shrink-0 flex flex-col gap-3 mt-1", children: [
2764
+ getAssetType(digitalAsset) === "video" && digitalAsset.posterUrl && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2676
2765
  "img",
2677
2766
  {
2678
2767
  src: AssetUtility_default.resolveUrl(props.serviceClient?.baseUrl, digitalAsset.posterUrl),
@@ -2680,7 +2769,7 @@ var init_AssetUpload = __esm({
2680
2769
  className: "w-32 h-auto object-cover rounded border p-1"
2681
2770
  }
2682
2771
  ),
2683
- getAssetType(digitalAsset) === "image" && digitalAsset.assetUrl && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2772
+ getAssetType(digitalAsset) === "image" && digitalAsset.assetUrl && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2684
2773
  "img",
2685
2774
  {
2686
2775
  src: AssetUtility_default.resolveUrl(props.serviceClient?.baseUrl, digitalAsset.assetUrl),
@@ -2690,9 +2779,9 @@ var init_AssetUpload = __esm({
2690
2779
  )
2691
2780
  ] })
2692
2781
  ] }),
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)(
2782
+ digitalAsset.assetUrl?.endsWith(".m3u8") && /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "col-span-2", children: [
2783
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("p", { className: "text-gray-500", children: "HLS Link" }),
2784
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2696
2785
  Hyperlink,
2697
2786
  {
2698
2787
  href: digitalAsset.assetUrl,
@@ -2703,12 +2792,12 @@ var init_AssetUpload = __esm({
2703
2792
  )
2704
2793
  ] })
2705
2794
  ] }),
2706
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2795
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2707
2796
  "span",
2708
2797
  {
2709
2798
  onClick: () => !isDisabled && deleteFile(index),
2710
2799
  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" })
2800
+ children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Icon_default, { className: "w-4 h-4 text-primary", name: "delete" })
2712
2801
  }
2713
2802
  )
2714
2803
  ] }, index)) })
@@ -2720,12 +2809,12 @@ var init_AssetUpload = __esm({
2720
2809
  });
2721
2810
 
2722
2811
  // src/components/controls/edit/SwitchInput.tsx
2723
- var import_react36, import_jsx_runtime45, SwitchInput, SwitchInput_default;
2812
+ var import_react36, import_jsx_runtime46, SwitchInput, SwitchInput_default;
2724
2813
  var init_SwitchInput = __esm({
2725
2814
  "src/components/controls/edit/SwitchInput.tsx"() {
2726
2815
  "use strict";
2727
2816
  import_react36 = __toESM(require("react"));
2728
- import_jsx_runtime45 = require("react/jsx-runtime");
2817
+ import_jsx_runtime46 = require("react/jsx-runtime");
2729
2818
  SwitchInput = (props) => {
2730
2819
  const textChangeHandler = (event) => {
2731
2820
  let text = event.target.checked;
@@ -2742,28 +2831,28 @@ var init_SwitchInput = __esm({
2742
2831
  if (props.value != void 0 && props.value != null && props.value != "" && (props.value == "true" || props.value.toString() == "true")) {
2743
2832
  value = true;
2744
2833
  }
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)(
2834
+ 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: [
2835
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "min-w-0", children: [
2836
+ props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
2748
2837
  "label",
2749
2838
  {
2750
2839
  htmlFor: props.name,
2751
2840
  className: "inline-block text-sm font-semibold text-slate-800",
2752
2841
  children: [
2753
2842
  props.attributes.label,
2754
- props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { className: "bg-error-weak", children: "*" })
2843
+ props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "bg-error-weak", children: "*" })
2755
2844
  ]
2756
2845
  }
2757
2846
  ),
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 || "" })
2847
+ /* @__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
2848
  ] }),
2760
- /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
2849
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
2761
2850
  "label",
2762
2851
  {
2763
2852
  htmlFor: props.name,
2764
2853
  className: "relative inline-flex shrink-0 cursor-pointer items-center peer-disabled:cursor-not-allowed",
2765
2854
  children: [
2766
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2855
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2767
2856
  "input",
2768
2857
  {
2769
2858
  type: "checkbox",
@@ -2776,13 +2865,13 @@ var init_SwitchInput = __esm({
2776
2865
  className: "peer sr-only"
2777
2866
  }
2778
2867
  ),
2779
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2868
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2780
2869
  "div",
2781
2870
  {
2782
2871
  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
2872
  }
2784
2873
  ),
2785
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2874
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2786
2875
  "div",
2787
2876
  {
2788
2877
  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 +2886,108 @@ var init_SwitchInput = __esm({
2797
2886
  }
2798
2887
  });
2799
2888
 
2889
+ // src/components/controls/edit/VideoInput.tsx
2890
+ var import_jsx_runtime47, normalizeVideoValue, VideoInput, VideoInput_default;
2891
+ var init_VideoInput = __esm({
2892
+ "src/components/controls/edit/VideoInput.tsx"() {
2893
+ "use strict";
2894
+ init_VideoView();
2895
+ import_jsx_runtime47 = require("react/jsx-runtime");
2896
+ normalizeVideoValue = (value) => {
2897
+ if (typeof value === "string") {
2898
+ const trimmed = value.trim();
2899
+ if (!trimmed) return void 0;
2900
+ try {
2901
+ const parsed = JSON.parse(trimmed);
2902
+ if (typeof parsed === "string") {
2903
+ return parsed;
2904
+ }
2905
+ if (parsed && typeof parsed === "object") {
2906
+ const candidate = parsed;
2907
+ if (typeof candidate.assetUrl === "string") return candidate.assetUrl;
2908
+ if (typeof candidate.url === "string") return candidate.url;
2909
+ if (typeof candidate.src === "string") return candidate.src;
2910
+ }
2911
+ } catch {
2912
+ return trimmed;
2913
+ }
2914
+ return trimmed;
2915
+ }
2916
+ if (value && typeof value === "object") {
2917
+ const candidate = value;
2918
+ if (typeof candidate.assetUrl === "string") return candidate.assetUrl;
2919
+ if (typeof candidate.url === "string") return candidate.url;
2920
+ if (typeof candidate.src === "string") return candidate.src;
2921
+ }
2922
+ return void 0;
2923
+ };
2924
+ VideoInput = (props) => {
2925
+ const isReadOnly = Boolean(
2926
+ props.attributes?.readOnly || props.disable || props.attributes?.disable
2927
+ );
2928
+ const videoUrl = normalizeVideoValue(props.value ?? props.defaultValue);
2929
+ const handleChange = (event) => {
2930
+ const text = event.target.value;
2931
+ props.callback?.({
2932
+ name: props.name,
2933
+ value: text,
2934
+ index: props.index,
2935
+ groupKey: props.groupKey
2936
+ });
2937
+ };
2938
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex flex-col gap-2", children: [
2939
+ "ayush testing",
2940
+ props.attributes?.label ? /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("label", { className: "text-sm font-medium", children: [
2941
+ props.attributes.label,
2942
+ props.attributes?.required ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "ml-1 text-red-500", children: "*" }) : null
2943
+ ] }) : null,
2944
+ isReadOnly ? /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_jsx_runtime47.Fragment, { children: [
2945
+ "called video view",
2946
+ console.log(props.value, "vkjbvbvbvsdjkvdfn"),
2947
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
2948
+ VideoView_default,
2949
+ {
2950
+ ...props,
2951
+ value: props.value ?? props.defaultValue,
2952
+ assetBaseUrl: props.serviceClient?.baseUrl
2953
+ }
2954
+ )
2955
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_jsx_runtime47.Fragment, { children: [
2956
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
2957
+ "input",
2958
+ {
2959
+ type: "text",
2960
+ name: props.name,
2961
+ id: props.name,
2962
+ value: videoUrl ?? "",
2963
+ onChange: handleChange,
2964
+ onBlur: props.onBlur,
2965
+ placeholder: props.attributes?.placeholder || "Paste a video URL or blob URL",
2966
+ disabled: isReadOnly,
2967
+ className: "peer input mt-1 block w-full rounded shadow-sm"
2968
+ }
2969
+ ),
2970
+ videoUrl ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
2971
+ VideoView_default,
2972
+ {
2973
+ ...props,
2974
+ value: props.value ?? props.defaultValue,
2975
+ assetBaseUrl: props.serviceClient?.baseUrl
2976
+ }
2977
+ ) : null
2978
+ ] })
2979
+ ] });
2980
+ };
2981
+ VideoInput_default = VideoInput;
2982
+ }
2983
+ });
2984
+
2800
2985
  // src/components/controls/edit/InputControlClient.tsx
2801
2986
  var InputControlClient_exports = {};
2802
2987
  __export(InputControlClient_exports, {
2803
2988
  default: () => InputControlClient_default
2804
2989
  });
2805
- var import_react37, import_jsx_runtime46, InputControl, InputControlClient_default;
2990
+ var import_react37, import_jsx_runtime48, InputControl, InputControlClient_default;
2806
2991
  var init_InputControlClient = __esm({
2807
2992
  "src/components/controls/edit/InputControlClient.tsx"() {
2808
2993
  "use strict";
@@ -2827,7 +3012,8 @@ var init_InputControlClient = __esm({
2827
3012
  init_TimeInput();
2828
3013
  init_AssetUpload();
2829
3014
  init_SwitchInput();
2830
- import_jsx_runtime46 = require("react/jsx-runtime");
3015
+ init_VideoInput();
3016
+ import_jsx_runtime48 = require("react/jsx-runtime");
2831
3017
  InputControl = import_react37.default.forwardRef(
2832
3018
  (props, ref) => {
2833
3019
  const ControlComponents = {
@@ -2848,10 +3034,11 @@ var init_InputControlClient = __esm({
2848
3034
  [InputControlType_default.booleanSelect]: BooleanSelect_default,
2849
3035
  [InputControlType_default.timeInput]: TimeInput_default,
2850
3036
  [InputControlType_default.asset]: AssetUpload_default,
2851
- [InputControlType_default.switchInput]: SwitchInput_default
3037
+ [InputControlType_default.switchInput]: SwitchInput_default,
3038
+ [InputControlType_default.videoInput]: VideoInput_default
2852
3039
  };
2853
3040
  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" });
3041
+ 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
3042
  }
2856
3043
  );
2857
3044
  InputControl.displayName = "InputControl";
@@ -3078,7 +3265,7 @@ var LinkNodeButton_exports = {};
3078
3265
  __export(LinkNodeButton_exports, {
3079
3266
  default: () => LinkNodeButton_default
3080
3267
  });
3081
- var import_react38, import_jsx_runtime50, LinkNodeButton, LinkNodeButton_default;
3268
+ var import_react38, import_jsx_runtime52, LinkNodeButton, LinkNodeButton_default;
3082
3269
  var init_LinkNodeButton = __esm({
3083
3270
  "src/components/pageRenderingEngine/nodes/LinkNodeButton.tsx"() {
3084
3271
  "use strict";
@@ -3087,7 +3274,7 @@ var init_LinkNodeButton = __esm({
3087
3274
  init_Button();
3088
3275
  init_ServiceClient();
3089
3276
  init_ToastService();
3090
- import_jsx_runtime50 = require("react/jsx-runtime");
3277
+ import_jsx_runtime52 = require("react/jsx-runtime");
3091
3278
  LinkNodeButton = (props) => {
3092
3279
  const { node, dataitem, children, linkText, linkType, linkUrl } = props;
3093
3280
  const [isLoading, setIsLoading] = (0, import_react38.useState)(false);
@@ -3227,11 +3414,11 @@ var init_LinkNodeButton = __esm({
3227
3414
  return children;
3228
3415
  }
3229
3416
  if (linkText) {
3230
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { children: linkText });
3417
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { children: linkText });
3231
3418
  }
3232
3419
  return node.title || "Button";
3233
3420
  };
3234
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "link-button-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
3421
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "link-button-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
3235
3422
  Button_default,
3236
3423
  {
3237
3424
  ButtonType: linkType,
@@ -3269,13 +3456,13 @@ function CopyButton({ text }) {
3269
3456
  console.error("Failed to copy: ", err);
3270
3457
  }
3271
3458
  };
3272
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
3459
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
3273
3460
  "button",
3274
3461
  {
3275
3462
  onClick: handleCopy,
3276
3463
  className: "flex gap-1 items-center hover:text-white transition",
3277
3464
  children: [
3278
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
3465
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3279
3466
  "svg",
3280
3467
  {
3281
3468
  width: "16",
@@ -3283,7 +3470,7 @@ function CopyButton({ text }) {
3283
3470
  viewBox: "0 0 24 24",
3284
3471
  className: "w-4 h-4",
3285
3472
  fill: "currentColor",
3286
- children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
3473
+ children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3287
3474
  "path",
3288
3475
  {
3289
3476
  fillRule: "evenodd",
@@ -3298,54 +3485,54 @@ function CopyButton({ text }) {
3298
3485
  }
3299
3486
  );
3300
3487
  }
3301
- var import_react45, import_jsx_runtime60;
3488
+ var import_react45, import_jsx_runtime62;
3302
3489
  var init_CopyButton = __esm({
3303
3490
  "src/components/CopyButton.tsx"() {
3304
3491
  "use strict";
3305
3492
  "use client";
3306
3493
  import_react45 = require("react");
3307
- import_jsx_runtime60 = require("react/jsx-runtime");
3494
+ import_jsx_runtime62 = require("react/jsx-runtime");
3308
3495
  }
3309
3496
  });
3310
3497
 
3311
3498
  // src/components/IFrameLoaderView.tsx
3312
- var import_react48, import_jsx_runtime64, IFrameLoaderView, IFrameLoaderView_default;
3499
+ var import_react48, import_jsx_runtime66, IFrameLoaderView, IFrameLoaderView_default;
3313
3500
  var init_IFrameLoaderView = __esm({
3314
3501
  "src/components/IFrameLoaderView.tsx"() {
3315
3502
  "use strict";
3316
3503
  import_react48 = __toESM(require("react"));
3317
- import_jsx_runtime64 = require("react/jsx-runtime");
3504
+ import_jsx_runtime66 = require("react/jsx-runtime");
3318
3505
  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" })
3506
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_react48.default.Fragment, { children: [
3507
+ 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: [
3508
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "flex items-center mb-4", children: [
3509
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
3510
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "ml-2", children: [
3511
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
3512
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
3326
3513
  ] })
3327
3514
  ] }),
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" })
3515
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
3516
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "animate-pulse", children: [
3517
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
3518
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
3519
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
3520
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
3521
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
3335
3522
  ] }),
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" })
3523
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "animate-pulse", children: [
3524
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
3525
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
3526
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
3527
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
3528
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
3342
3529
  ] }),
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" })
3530
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "animate-pulse", children: [
3531
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
3532
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
3533
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
3534
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
3535
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
3349
3536
  ] })
3350
3537
  ] })
3351
3538
  ] }) }),
@@ -3361,14 +3548,14 @@ var IframeClient_exports = {};
3361
3548
  __export(IframeClient_exports, {
3362
3549
  default: () => IframeClient_default
3363
3550
  });
3364
- var import_react49, import_jsx_runtime65, IframeClient, IframeClient_default;
3551
+ var import_react49, import_jsx_runtime67, IframeClient, IframeClient_default;
3365
3552
  var init_IframeClient = __esm({
3366
3553
  "src/components/pageRenderingEngine/nodes/IframeClient.tsx"() {
3367
3554
  "use strict";
3368
3555
  "use client";
3369
3556
  import_react49 = __toESM(require("react"));
3370
3557
  init_IFrameLoaderView();
3371
- import_jsx_runtime65 = require("react/jsx-runtime");
3558
+ import_jsx_runtime67 = require("react/jsx-runtime");
3372
3559
  IframeClient = ({ src }) => {
3373
3560
  const iframeRef = (0, import_react49.useRef)(null);
3374
3561
  const [iframeHeight, setIframeHeight] = (0, import_react49.useState)("100%");
@@ -3400,7 +3587,7 @@ var init_IframeClient = __esm({
3400
3587
  const handleIframeLoad = () => {
3401
3588
  setIsDataFound(true);
3402
3589
  };
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)(
3590
+ 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
3591
  "iframe",
3405
3592
  {
3406
3593
  ref: iframeRef,
@@ -3620,7 +3807,7 @@ var Pagination_exports = {};
3620
3807
  __export(Pagination_exports, {
3621
3808
  default: () => Pagination_default
3622
3809
  });
3623
- var import_react50, import_jsx_runtime70, Pagination, Pagination_default;
3810
+ var import_react50, import_jsx_runtime72, Pagination, Pagination_default;
3624
3811
  var init_Pagination = __esm({
3625
3812
  "src/components/Pagination.tsx"() {
3626
3813
  "use strict";
@@ -3631,7 +3818,7 @@ var init_Pagination = __esm({
3631
3818
  init_StyleTypes();
3632
3819
  init_InputControlType();
3633
3820
  init_Hyperlink();
3634
- import_jsx_runtime70 = require("react/jsx-runtime");
3821
+ import_jsx_runtime72 = require("react/jsx-runtime");
3635
3822
  Pagination = (props) => {
3636
3823
  const { dataset, path, query, showPageSizeSelector = false, showJumpToPage = false } = props;
3637
3824
  const builder = (0, import_react50.useMemo)(() => {
@@ -3675,7 +3862,7 @@ var init_Pagination = __esm({
3675
3862
  return range;
3676
3863
  };
3677
3864
  const paginationRange = getPaginationRange();
3678
- const PageButton = ({ page, children }) => /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
3865
+ const PageButton = ({ page, children }) => /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
3679
3866
  Hyperlink,
3680
3867
  {
3681
3868
  linkType: "Link" /* Link */,
@@ -3690,9 +3877,9 @@ var init_Pagination = __esm({
3690
3877
  );
3691
3878
  const NavigationButton = ({ page, disabled, children }) => {
3692
3879
  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 });
3880
+ 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
3881
  }
3695
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
3882
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
3696
3883
  Hyperlink,
3697
3884
  {
3698
3885
  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 +3889,35 @@ var init_Pagination = __esm({
3702
3889
  );
3703
3890
  };
3704
3891
  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: [
3892
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: "py-6 border-t bg-default", children: [
3893
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: "flex flex-col sm:flex-row items-center justify-between gap-4", children: [
3894
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: "text-sm", children: [
3708
3895
  "Showing ",
3709
- /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("span", { className: "font-semibold", children: [
3896
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("span", { className: "font-semibold", children: [
3710
3897
  startItem,
3711
3898
  "-",
3712
3899
  endItem
3713
3900
  ] }),
3714
3901
  " ",
3715
3902
  "out of ",
3716
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("span", { className: "font-semibold", children: totalItems.toLocaleString() }),
3903
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: "font-semibold", children: totalItems.toLocaleString() }),
3717
3904
  " results"
3718
3905
  ] }),
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)(
3906
+ totalPages > 1 && /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: "flex items-center space-x-1", children: [
3907
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
3721
3908
  NavigationButton,
3722
3909
  {
3723
3910
  page: activePageNumber - 1,
3724
3911
  disabled: activePageNumber === 1,
3725
3912
  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" })
3913
+ /* @__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" }) }),
3914
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: "text-sm", children: "Prev" })
3728
3915
  ]
3729
3916
  }
3730
3917
  ),
3731
3918
  paginationRange.map((item, index) => {
3732
3919
  if (item === "...") {
3733
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
3920
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
3734
3921
  "span",
3735
3922
  {
3736
3923
  className: "min-w-[20px] md:min-w-[40px] h-10 flex items-center justify-center text-gray-500",
@@ -3740,23 +3927,23 @@ var init_Pagination = __esm({
3740
3927
  );
3741
3928
  }
3742
3929
  const page = item;
3743
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(PageButton, { page, children: page }, page);
3930
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(PageButton, { page, children: page }, page);
3744
3931
  }),
3745
- /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(
3932
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
3746
3933
  NavigationButton,
3747
3934
  {
3748
3935
  page: activePageNumber + 1,
3749
3936
  disabled: activePageNumber === totalPages,
3750
3937
  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" }) })
3938
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: "text-sm", children: "Next" }),
3939
+ /* @__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
3940
  ]
3754
3941
  }
3755
3942
  )
3756
3943
  ] }),
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)(
3944
+ showJumpToPage && totalPages > 5 && /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: "flex items-center space-x-2", children: [
3945
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: "text-sm", children: "Go to:" }),
3946
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
3760
3947
  "input",
3761
3948
  {
3762
3949
  type: "number",
@@ -3777,9 +3964,9 @@ var init_Pagination = __esm({
3777
3964
  ) })
3778
3965
  ] })
3779
3966
  ] }),
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)(
3967
+ 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: [
3968
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: "text-sm", children: "Show:" }),
3969
+ /* @__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
3970
  Hyperlink,
3784
3971
  {
3785
3972
  className: `
@@ -3791,7 +3978,7 @@ var init_Pagination = __esm({
3791
3978
  },
3792
3979
  size
3793
3980
  )) }),
3794
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("span", { className: "text-sm", children: "per page" })
3981
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: "text-sm", children: "per page" })
3795
3982
  ] }) })
3796
3983
  ] });
3797
3984
  };
@@ -3804,13 +3991,13 @@ var Slider_exports = {};
3804
3991
  __export(Slider_exports, {
3805
3992
  default: () => Slider_default
3806
3993
  });
3807
- var import_react51, import_jsx_runtime71, Slider, ArrowButton, ProgressPill, Slider_default;
3994
+ var import_react51, import_jsx_runtime73, Slider, ArrowButton, ProgressPill, Slider_default;
3808
3995
  var init_Slider = __esm({
3809
3996
  "src/components/Slider.tsx"() {
3810
3997
  "use strict";
3811
3998
  "use client";
3812
3999
  import_react51 = __toESM(require("react"));
3813
- import_jsx_runtime71 = require("react/jsx-runtime");
4000
+ import_jsx_runtime73 = require("react/jsx-runtime");
3814
4001
  Slider = ({
3815
4002
  children,
3816
4003
  slidesToShow = 4,
@@ -3907,7 +4094,7 @@ var init_Slider = __esm({
3907
4094
  if (!import_react51.default.isValidElement(child)) return null;
3908
4095
  const childProps = child.props;
3909
4096
  const mergedClassName = `${childProps.className ?? ""} w-full`.trim();
3910
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
4097
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
3911
4098
  "div",
3912
4099
  {
3913
4100
  className: `flex-none ${scaleOnHover ? "group hover:z-50" : ""} relative`,
@@ -3930,14 +4117,14 @@ var init_Slider = __esm({
3930
4117
  return "bottom-4";
3931
4118
  }
3932
4119
  };
3933
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
4120
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
3934
4121
  "div",
3935
4122
  {
3936
4123
  className: `relative w-full overflow-hidden ${className}`,
3937
4124
  onMouseEnter: handleMouseEnter,
3938
4125
  onMouseLeave: handleMouseLeave,
3939
4126
  children: [
3940
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
4127
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
3941
4128
  "div",
3942
4129
  {
3943
4130
  className: "flex h-full",
@@ -3948,18 +4135,18 @@ var init_Slider = __esm({
3948
4135
  children: slides
3949
4136
  }
3950
4137
  ),
3951
- show_arrows && /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(import_jsx_runtime71.Fragment, { children: [
3952
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
4138
+ show_arrows && /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(import_jsx_runtime73.Fragment, { children: [
4139
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
3953
4140
  ArrowButton,
3954
4141
  {
3955
4142
  direction: "left",
3956
4143
  onClick: prevSlide,
3957
4144
  visible: infinite_scroll || currentSlide > 0,
3958
4145
  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" }) })
4146
+ 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
4147
  }
3961
4148
  ),
3962
- /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
4149
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
3963
4150
  ArrowButton,
3964
4151
  {
3965
4152
  direction: "right",
@@ -3967,13 +4154,13 @@ var init_Slider = __esm({
3967
4154
  visible: infinite_scroll || currentSlide < maxSlide,
3968
4155
  className: arrowClassName,
3969
4156
  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" }) }),
4157
+ /* @__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
4158
  " "
3972
4159
  ]
3973
4160
  }
3974
4161
  )
3975
4162
  ] }),
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)(
4163
+ 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
4164
  ProgressPill,
3978
4165
  {
3979
4166
  active: index === currentSlide,
@@ -3999,7 +4186,7 @@ var init_Slider = __esm({
3999
4186
  visible,
4000
4187
  children,
4001
4188
  className = ""
4002
- }) => /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
4189
+ }) => /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
4003
4190
  "button",
4004
4191
  {
4005
4192
  className: `
@@ -4086,7 +4273,7 @@ var init_Slider = __esm({
4086
4273
  const renderProgressBar = () => {
4087
4274
  if (style === "modern" && isActive || style === "cumulative" && shouldShowProgress) {
4088
4275
  const displayProgress = style === "cumulative" && isFilled ? 100 : progress;
4089
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
4276
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
4090
4277
  "div",
4091
4278
  {
4092
4279
  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 +4285,7 @@ var init_Slider = __esm({
4098
4285
  };
4099
4286
  const renderCumulativeFill = () => {
4100
4287
  if (style === "cumulative" && isFilled && !isActive) {
4101
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
4288
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
4102
4289
  "div",
4103
4290
  {
4104
4291
  className: `absolute top-0 left-0 h-full rounded-full ${activeClassName || "bg-white"} transition-all duration-300`,
@@ -4108,7 +4295,7 @@ var init_Slider = __esm({
4108
4295
  }
4109
4296
  return null;
4110
4297
  };
4111
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
4298
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
4112
4299
  "button",
4113
4300
  {
4114
4301
  className: `${baseClasses} ${getStyleClasses()}`,
@@ -4133,6 +4320,20 @@ __export(EnterAnimationClient_exports, {
4133
4320
  });
4134
4321
  function EnterAnimationClient({ hasEnterAnimation, children }) {
4135
4322
  const ref = (0, import_react52.useRef)(null);
4323
+ console.log("render");
4324
+ (0, import_react52.useEffect)(() => {
4325
+ console.log("effect");
4326
+ console.log("ref", ref.current);
4327
+ if (!hasEnterAnimation) {
4328
+ console.log("no animation");
4329
+ return;
4330
+ }
4331
+ if (!ref.current) {
4332
+ console.log("no ref");
4333
+ return;
4334
+ }
4335
+ console.log("observer started");
4336
+ }, []);
4136
4337
  (0, import_react52.useEffect)(() => {
4137
4338
  if (!hasEnterAnimation || !ref.current) return;
4138
4339
  const observer = new IntersectionObserver(
@@ -4150,17 +4351,17 @@ function EnterAnimationClient({ hasEnterAnimation, children }) {
4150
4351
  return () => observer.disconnect();
4151
4352
  }, [hasEnterAnimation]);
4152
4353
  if (!children) return null;
4153
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_jsx_runtime72.Fragment, { children: children && // enforce passing the ref to Wrapper
4354
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_jsx_runtime74.Fragment, { children: children && // enforce passing the ref to Wrapper
4154
4355
  //@ts-ignore
4155
4356
  import_react52.default.cloneElement(children, { ref }) });
4156
4357
  }
4157
- var import_react52, import_jsx_runtime72;
4358
+ var import_react52, import_jsx_runtime74;
4158
4359
  var init_EnterAnimationClient = __esm({
4159
4360
  "src/components/pageRenderingEngine/nodes/EnterAnimationClient.tsx"() {
4160
4361
  "use strict";
4161
4362
  "use client";
4162
4363
  import_react52 = __toESM(require("react"));
4163
- import_jsx_runtime72 = require("react/jsx-runtime");
4364
+ import_jsx_runtime74 = require("react/jsx-runtime");
4164
4365
  }
4165
4366
  });
4166
4367
 
@@ -4203,6 +4404,7 @@ var ViewControlTypes = {
4203
4404
  lineText: "lineText",
4204
4405
  emailText: "email",
4205
4406
  asset: "asset",
4407
+ video: "video",
4206
4408
  multilineTextBullets: "multilineTextBullets",
4207
4409
  boolean: "boolean",
4208
4410
  checkboxInput: "boolean",
@@ -4533,12 +4735,14 @@ var DateTimeView = (0, import_dynamic3.default)(() => Promise.resolve().then(()
4533
4735
  var DateTimeVew_default = DateTimeView;
4534
4736
 
4535
4737
  // src/components/controls/view/ViewControl.tsx
4536
- var import_jsx_runtime18 = require("react/jsx-runtime");
4738
+ init_VideoView();
4739
+ var import_jsx_runtime19 = require("react/jsx-runtime");
4537
4740
  var ViewControl = (props) => {
4538
4741
  const ControlComponents = {
4539
4742
  [ViewControlTypes_default.lineText]: LineTextView_default,
4540
4743
  [ViewControlTypes_default.emailText]: EmailTextView_default,
4541
4744
  [ViewControlTypes_default.asset]: Asset_default,
4745
+ [ViewControlTypes_default.video]: VideoView_default,
4542
4746
  [ViewControlTypes_default.multilineTextBullets]: MultilineTextBulletsView_default,
4543
4747
  [ViewControlTypes_default.boolean]: BooleanView_default,
4544
4748
  [ViewControlTypes_default.checkboxInput]: BooleanView_default,
@@ -4562,7 +4766,7 @@ var ViewControl = (props) => {
4562
4766
  [ViewControlTypes_default.text]: LineTextView_default
4563
4767
  };
4564
4768
  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 });
4769
+ 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
4770
  };
4567
4771
  var ViewControl_default = ViewControl;
4568
4772
 
@@ -4583,7 +4787,7 @@ var import_react54 = __toESM(require("react"));
4583
4787
  var import_react40 = __toESM(require("react"));
4584
4788
 
4585
4789
  // src/components/pageRenderingEngine/nodes/TextNode.tsx
4586
- var import_jsx_runtime47 = require("react/jsx-runtime");
4790
+ var import_jsx_runtime49 = require("react/jsx-runtime");
4587
4791
  var TextNode = (props) => {
4588
4792
  function cssStringToJson(cssString) {
4589
4793
  const styleObject = {};
@@ -4638,26 +4842,26 @@ var TextNode = (props) => {
4638
4842
  });
4639
4843
  }
4640
4844
  function renderWithLineBreaks(text) {
4641
- return text.split("\n").map((line, index, arr) => /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("span", { children: [
4845
+ return text.split("\n").map((line, index, arr) => /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("span", { children: [
4642
4846
  line,
4643
- index < arr.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("br", {})
4847
+ index < arr.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("br", {})
4644
4848
  ] }, index));
4645
4849
  }
4646
4850
  const displayText = props.linkText ? props.linkText : props.node.text;
4647
4851
  const finalText = props.dataitem && props.linkText ? displayText : props.dataitem ? replacePlaceholders(props.node.text, props.dataitem) : props.node.text;
4648
4852
  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;
4853
+ 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
4854
  return (
4651
4855
  // @ts-expect-error custom code
4652
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { style: { ...styles }, className: getFormatClass(props.node.format), children: formattedContent })
4856
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("span", { style: { ...styles }, className: getFormatClass(props.node.format), children: formattedContent })
4653
4857
  );
4654
4858
  };
4655
4859
  var TextNode_default = TextNode;
4656
4860
 
4657
4861
  // src/components/pageRenderingEngine/nodes/LineBreakNode.tsx
4658
- var import_jsx_runtime48 = require("react/jsx-runtime");
4862
+ var import_jsx_runtime50 = require("react/jsx-runtime");
4659
4863
  var LineBreakNode = () => {
4660
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "py-0.5 lg:py-1.5" });
4864
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "py-0.5 lg:py-1.5" });
4661
4865
  };
4662
4866
  var LineBreakNode_default = LineBreakNode;
4663
4867
 
@@ -4667,7 +4871,7 @@ var import_react39 = __toESM(require("react"));
4667
4871
  // src/components/pageRenderingEngine/nodes/ImageNode.tsx
4668
4872
  init_AssetUtility();
4669
4873
  var import_dynamic5 = __toESM(require("next/dynamic"));
4670
- var import_jsx_runtime49 = require("react/jsx-runtime");
4874
+ var import_jsx_runtime51 = require("react/jsx-runtime");
4671
4875
  var HlsPlayer3 = (0, import_dynamic5.default)(() => Promise.resolve().then(() => (init_HlsPlayer(), HlsPlayer_exports)), { ssr: false });
4672
4876
  var getNestedValue = (obj, path) => {
4673
4877
  if (!obj || !path) return void 0;
@@ -4700,7 +4904,7 @@ var ImageNode = (props) => {
4700
4904
  assets = [image];
4701
4905
  }
4702
4906
  if (assets && assets.length > 0) {
4703
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
4907
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
4704
4908
  DeviceAssetSelector_default,
4705
4909
  {
4706
4910
  device: props.device,
@@ -4741,7 +4945,7 @@ var ImageNode = (props) => {
4741
4945
  right: "justify-end"
4742
4946
  };
4743
4947
  const isHls = imageUrl.endsWith(".m3u8");
4744
- const renderMedia = () => isHls ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
4948
+ const renderMedia = () => isHls ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
4745
4949
  HlsPlayer3,
4746
4950
  {
4747
4951
  assetUrl: imageUrl,
@@ -4754,7 +4958,7 @@ var ImageNode = (props) => {
4754
4958
  apiBaseUrl: props.apiBaseUrl,
4755
4959
  session: props.session
4756
4960
  }
4757
- ) : /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
4961
+ ) : /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
4758
4962
  "img",
4759
4963
  {
4760
4964
  style: styles,
@@ -4767,7 +4971,7 @@ var ImageNode = (props) => {
4767
4971
  }
4768
4972
  );
4769
4973
  if (props.node.width) {
4770
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: `flex ${FORMAT_CLASSES2[props.node.format] ?? ""}`, children: renderMedia() });
4974
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: `flex ${FORMAT_CLASSES2[props.node.format] ?? ""}`, children: renderMedia() });
4771
4975
  }
4772
4976
  return renderMedia();
4773
4977
  };
@@ -4777,7 +4981,7 @@ var ImageNode_default = ImageNode;
4777
4981
  init_StyleTypes();
4778
4982
  init_Hyperlink();
4779
4983
  var import_dynamic6 = __toESM(require("next/dynamic"));
4780
- var import_jsx_runtime51 = require("react/jsx-runtime");
4984
+ var import_jsx_runtime53 = require("react/jsx-runtime");
4781
4985
  var LinkNodeButton2 = (0, import_dynamic6.default)(() => Promise.resolve().then(() => (init_LinkNodeButton(), LinkNodeButton_exports)), {
4782
4986
  ssr: false
4783
4987
  });
@@ -4830,13 +5034,13 @@ var LinkNode = (props) => {
4830
5034
  const isButton = node.isButton === true;
4831
5035
  const renderChildren = () => {
4832
5036
  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) => {
5037
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_jsx_runtime53.Fragment, { children: node.children.map((childNode, index) => {
4834
5038
  const SelectedNode = NodeTypes2[childNode.type];
4835
5039
  if (!SelectedNode) {
4836
5040
  console.warn("Unknown node type:", childNode.type);
4837
5041
  return null;
4838
5042
  }
4839
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_react39.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
5043
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react39.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
4840
5044
  SelectedNode,
4841
5045
  {
4842
5046
  node: childNode,
@@ -4849,15 +5053,15 @@ var LinkNode = (props) => {
4849
5053
  };
4850
5054
  const renderFallback = () => {
4851
5055
  if ((!node.children || node.children.length === 0) && linkText) {
4852
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { children: linkText });
5056
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { children: linkText });
4853
5057
  }
4854
5058
  if ((!node.children || node.children.length === 0) && !linkText) {
4855
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("br", {});
5059
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("br", {});
4856
5060
  }
4857
5061
  return null;
4858
5062
  };
4859
5063
  if (isButton) {
4860
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
5064
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
4861
5065
  LinkNodeButton2,
4862
5066
  {
4863
5067
  node,
@@ -4875,7 +5079,7 @@ var LinkNode = (props) => {
4875
5079
  }
4876
5080
  );
4877
5081
  }
4878
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
5082
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
4879
5083
  Hyperlink,
4880
5084
  {
4881
5085
  href: linkUrl || "#",
@@ -4891,10 +5095,10 @@ var LinkNode = (props) => {
4891
5095
  var LinkNode_default = LinkNode;
4892
5096
 
4893
5097
  // src/components/pageRenderingEngine/nodes/SVGIconNode.tsx
4894
- var import_jsx_runtime52 = require("react/jsx-runtime");
5098
+ var import_jsx_runtime54 = require("react/jsx-runtime");
4895
5099
  var SVGIconNode = ({ node }) => {
4896
5100
  if (!node?.svgCode) return null;
4897
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
5101
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
4898
5102
  "span",
4899
5103
  {
4900
5104
  style: {
@@ -4911,7 +5115,7 @@ var SVGIconNode_default = SVGIconNode;
4911
5115
 
4912
5116
  // src/components/pageRenderingEngine/nodes/EquationNode.tsx
4913
5117
  var import_katex = __toESM(require("katex"));
4914
- var import_jsx_runtime53 = require("react/jsx-runtime");
5118
+ var import_jsx_runtime55 = require("react/jsx-runtime");
4915
5119
  var EquationNode = ({ node }) => {
4916
5120
  const { equation, inline } = node;
4917
5121
  let html = "";
@@ -4926,7 +5130,7 @@ var EquationNode = ({ node }) => {
4926
5130
  });
4927
5131
  }
4928
5132
  if (inline) {
4929
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
5133
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
4930
5134
  "span",
4931
5135
  {
4932
5136
  className: "katex-inline",
@@ -4934,7 +5138,7 @@ var EquationNode = ({ node }) => {
4934
5138
  }
4935
5139
  );
4936
5140
  }
4937
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
5141
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
4938
5142
  "div",
4939
5143
  {
4940
5144
  className: "katex-block my-3 text-center",
@@ -4945,7 +5149,7 @@ var EquationNode = ({ node }) => {
4945
5149
  var EquationNode_default = EquationNode;
4946
5150
 
4947
5151
  // src/components/pageRenderingEngine/nodes/DatafieldNode.tsx
4948
- var import_jsx_runtime54 = require("react/jsx-runtime");
5152
+ var import_jsx_runtime56 = require("react/jsx-runtime");
4949
5153
  function getNestedProperty(obj, path) {
4950
5154
  if (!obj || !path) return null;
4951
5155
  if (path.includes(".")) {
@@ -4958,7 +5162,7 @@ function getNestedProperty(obj, path) {
4958
5162
  }
4959
5163
  const value = obj[path];
4960
5164
  if (Array.isArray(value)) {
4961
- return value.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { children: String(item) }, index));
5165
+ return value.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { children: String(item) }, index));
4962
5166
  }
4963
5167
  return value;
4964
5168
  }
@@ -5019,7 +5223,7 @@ var DatafieldNode = (props) => {
5019
5223
  const dataType = props.node.dataType;
5020
5224
  if (isEmptyValue) return null;
5021
5225
  if (dataType === "rawContent") {
5022
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5226
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5023
5227
  PageBodyRenderer_default,
5024
5228
  {
5025
5229
  rawBody: String(value ?? `@databound[${fieldName}]`),
@@ -5035,12 +5239,12 @@ var DatafieldNode = (props) => {
5035
5239
  }
5036
5240
  );
5037
5241
  }
5038
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5242
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5039
5243
  "span",
5040
5244
  {
5041
5245
  className: `datafield-node ${props.node.format < Formats.length ? Formats[props.node.format] : ""}`,
5042
5246
  style: styles,
5043
- children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5247
+ children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5044
5248
  ViewControl_default,
5045
5249
  {
5046
5250
  controlType: dataType,
@@ -5053,7 +5257,7 @@ var DatafieldNode = (props) => {
5053
5257
  var DatafieldNode_default = DatafieldNode;
5054
5258
 
5055
5259
  // src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
5056
- var import_jsx_runtime55 = require("react/jsx-runtime");
5260
+ var import_jsx_runtime57 = require("react/jsx-runtime");
5057
5261
  var ParagraphNode = (props) => {
5058
5262
  const NodeTypes2 = {
5059
5263
  ["text"]: TextNode_default,
@@ -5073,9 +5277,9 @@ var ParagraphNode = (props) => {
5073
5277
  const isInlineOnlyParent = props.parentTag === "summary";
5074
5278
  const hasChildren = props.node.children && props.node.children.length > 0;
5075
5279
  if (isInlineOnlyParent) {
5076
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_jsx_runtime55.Fragment, { children: hasChildren && props.node.children.map((node, index) => {
5280
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_jsx_runtime57.Fragment, { children: hasChildren && props.node.children.map((node, index) => {
5077
5281
  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)(
5282
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_react40.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
5079
5283
  SelectedNode,
5080
5284
  {
5081
5285
  node,
@@ -5087,10 +5291,10 @@ var ParagraphNode = (props) => {
5087
5291
  ) }, index);
5088
5292
  }) });
5089
5293
  }
5090
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: " " + formatClasses, children: [
5294
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: " " + formatClasses, children: [
5091
5295
  hasChildren && props.node.children.map((node, index) => {
5092
5296
  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)(
5297
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_react40.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
5094
5298
  SelectedNode,
5095
5299
  {
5096
5300
  node,
@@ -5101,14 +5305,14 @@ var ParagraphNode = (props) => {
5101
5305
  }
5102
5306
  ) }, index);
5103
5307
  }),
5104
- !hasChildren && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "py-1.5 lg:py-2" })
5308
+ !hasChildren && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "py-1.5 lg:py-2" })
5105
5309
  ] });
5106
5310
  };
5107
5311
  var ParagraphNode_default = ParagraphNode;
5108
5312
 
5109
5313
  // src/components/pageRenderingEngine/nodes/HeadingNode.tsx
5110
5314
  var import_react41 = __toESM(require("react"));
5111
- var import_jsx_runtime56 = require("react/jsx-runtime");
5315
+ var import_jsx_runtime58 = require("react/jsx-runtime");
5112
5316
  var HeadingNode = (props) => {
5113
5317
  const NodeTypes2 = {
5114
5318
  ["text"]: TextNode_default,
@@ -5124,12 +5328,12 @@ var HeadingNode = (props) => {
5124
5328
  {
5125
5329
  }
5126
5330
  const formatClasses = FormatClass[props.node.format] || "";
5127
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_jsx_runtime56.Fragment, { children: import_react41.default.createElement(
5331
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_jsx_runtime58.Fragment, { children: import_react41.default.createElement(
5128
5332
  HeadingTag,
5129
5333
  { className: formatClasses },
5130
5334
  props.node.children && props.node.children.map((childNode, index) => {
5131
5335
  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);
5336
+ 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
5337
  })
5134
5338
  ) });
5135
5339
  };
@@ -5140,7 +5344,7 @@ var import_react43 = __toESM(require("react"));
5140
5344
 
5141
5345
  // src/components/pageRenderingEngine/nodes/ListItemNode.tsx
5142
5346
  var import_react42 = __toESM(require("react"));
5143
- var import_jsx_runtime57 = require("react/jsx-runtime");
5347
+ var import_jsx_runtime59 = require("react/jsx-runtime");
5144
5348
  var ListItemNode = (props) => {
5145
5349
  const NodeTypes2 = {
5146
5350
  text: TextNode_default,
@@ -5157,37 +5361,37 @@ var ListItemNode = (props) => {
5157
5361
  liStyle.fontSize = match[1].trim();
5158
5362
  }
5159
5363
  }
5160
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("li", { style: liStyle, children: props.node.children && props.node.children.map((node, index) => {
5364
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("li", { style: liStyle, children: props.node.children && props.node.children.map((node, index) => {
5161
5365
  const SelectedNode = NodeTypes2[node.type];
5162
5366
  if (node.type === "linebreak") {
5163
5367
  if (!foundFirstBreak) {
5164
5368
  foundFirstBreak = true;
5165
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", {}, index);
5369
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", {}, index);
5166
5370
  } else {
5167
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "py-1 lg:py-2" }, index);
5371
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "py-1 lg:py-2" }, index);
5168
5372
  }
5169
5373
  } else {
5170
5374
  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);
5375
+ 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
5376
  }
5173
5377
  }) });
5174
5378
  };
5175
5379
  var ListItemNode_default = ListItemNode;
5176
5380
 
5177
5381
  // src/components/pageRenderingEngine/nodes/ListNode.tsx
5178
- var import_jsx_runtime58 = require("react/jsx-runtime");
5382
+ var import_jsx_runtime60 = require("react/jsx-runtime");
5179
5383
  var ListNode = (props) => {
5180
5384
  const NodeTypes2 = {
5181
5385
  listitem: ListItemNode_default
5182
5386
  };
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) => {
5387
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_react43.default.Fragment, { children: [
5388
+ props.node.listType == "bullet" && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("ul", { children: props.node.children && props.node.children.map((node, index) => {
5185
5389
  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);
5390
+ 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
5391
  }) }),
5188
- props.node.listType == "number" && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("ol", { children: props.node.children && props.node.children.map((node, index) => {
5392
+ props.node.listType == "number" && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("ol", { children: props.node.children && props.node.children.map((node, index) => {
5189
5393
  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);
5394
+ 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
5395
  }) })
5192
5396
  ] });
5193
5397
  };
@@ -5195,16 +5399,16 @@ var ListNode_default = ListNode;
5195
5399
 
5196
5400
  // src/components/pageRenderingEngine/nodes/QuoteNode.tsx
5197
5401
  var import_react44 = __toESM(require("react"));
5198
- var import_jsx_runtime59 = require("react/jsx-runtime");
5402
+ var import_jsx_runtime61 = require("react/jsx-runtime");
5199
5403
  var QuoteNode = (props) => {
5200
5404
  const NodeTypes2 = {
5201
5405
  ["text"]: TextNode_default,
5202
5406
  ["linebreak"]: LineBreakNode_default,
5203
5407
  ["link"]: LinkNode_default
5204
5408
  };
5205
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("blockquote", { children: props.node.children && props.node.children.map((node, index) => {
5409
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("blockquote", { children: props.node.children && props.node.children.map((node, index) => {
5206
5410
  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);
5411
+ 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
5412
  }) });
5209
5413
  };
5210
5414
  var QuoteNode_default = QuoteNode;
@@ -5212,11 +5416,11 @@ var QuoteNode_default = QuoteNode;
5212
5416
  // src/components/pageRenderingEngine/nodes/CodeNode.tsx
5213
5417
  var import_react46 = __toESM(require("react"));
5214
5418
  var import_dynamic7 = __toESM(require("next/dynamic"));
5215
- var import_jsx_runtime61 = require("react/jsx-runtime");
5419
+ var import_jsx_runtime63 = require("react/jsx-runtime");
5216
5420
  var CopyButton2 = (0, import_dynamic7.default)(() => Promise.resolve().then(() => (init_CopyButton(), CopyButton_exports)), {
5217
5421
  ssr: false,
5218
5422
  // optional: fallback UI while loading
5219
- loading: () => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { className: "text-gray-400 text-xs", children: "Copy" })
5423
+ loading: () => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { className: "text-gray-400 text-xs", children: "Copy" })
5220
5424
  });
5221
5425
  var CodeNode = (props) => {
5222
5426
  const NodeTypes2 = {
@@ -5230,14 +5434,14 @@ var CodeNode = (props) => {
5230
5434
  if (node.type === "link") return node.text || node.url || "";
5231
5435
  return "";
5232
5436
  }).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 })
5437
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { children: [
5438
+ /* @__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: [
5439
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { children: "Code Snippet" }),
5440
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(CopyButton2, { text: textContent })
5237
5441
  ] }),
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) => {
5442
+ /* @__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
5443
  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)(
5444
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_react46.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
5241
5445
  SelectedNode,
5242
5446
  {
5243
5447
  node,
@@ -5252,15 +5456,15 @@ var CodeNode = (props) => {
5252
5456
  var CodeNode_default = CodeNode;
5253
5457
 
5254
5458
  // src/components/pageRenderingEngine/nodes/HorizontalRuleNode.tsx
5255
- var import_jsx_runtime62 = require("react/jsx-runtime");
5459
+ var import_jsx_runtime64 = require("react/jsx-runtime");
5256
5460
  var HorizontalRuleNode = () => {
5257
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("hr", {});
5461
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("hr", {});
5258
5462
  };
5259
5463
  var HorizontalRuleNode_default = HorizontalRuleNode;
5260
5464
 
5261
5465
  // src/components/pageRenderingEngine/nodes/WidgetNode.tsx
5262
5466
  var import_react47 = __toESM(require("react"));
5263
- var import_jsx_runtime63 = require("react/jsx-runtime");
5467
+ var import_jsx_runtime65 = require("react/jsx-runtime");
5264
5468
  var WidgetNode = (props) => {
5265
5469
  const getWidgetParameters = () => {
5266
5470
  const widgetInputParameters = {
@@ -5324,7 +5528,7 @@ var WidgetNode = (props) => {
5324
5528
  };
5325
5529
  const widgetCode = props.node?.widgetCode;
5326
5530
  if (!widgetCode) {
5327
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_jsx_runtime63.Fragment, { children: "Invalid widget" });
5531
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_jsx_runtime65.Fragment, { children: "Invalid widget" });
5328
5532
  }
5329
5533
  const widgetParams = getWidgetParameters();
5330
5534
  const WidgetRenderer = props.widgetRenderer;
@@ -5333,7 +5537,7 @@ var WidgetNode = (props) => {
5333
5537
  }
5334
5538
  return (
5335
5539
  // 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)(
5540
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react47.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
5337
5541
  WidgetRenderer,
5338
5542
  {
5339
5543
  params: widgetParams,
@@ -5355,7 +5559,7 @@ var import_react53 = __toESM(require("react"));
5355
5559
 
5356
5560
  // src/components/pageRenderingEngine/nodes/EmbedNode.tsx
5357
5561
  var import_dynamic8 = __toESM(require("next/dynamic"));
5358
- var import_jsx_runtime66 = require("react/jsx-runtime");
5562
+ var import_jsx_runtime68 = require("react/jsx-runtime");
5359
5563
  var IframeClient2 = (0, import_dynamic8.default)(() => Promise.resolve().then(() => (init_IframeClient(), IframeClient_exports)), {
5360
5564
  ssr: false
5361
5565
  });
@@ -5368,7 +5572,7 @@ var EmbedNode = (props) => {
5368
5572
  } else {
5369
5573
  src = props.node.embedSrc;
5370
5574
  }
5371
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "aspect-video", children: src && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(IframeClient2, { src }) });
5575
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "aspect-video", children: src && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(IframeClient2, { src }) });
5372
5576
  };
5373
5577
  var EmbedNode_default = EmbedNode;
5374
5578
 
@@ -5547,10 +5751,10 @@ var PathUtility = class {
5547
5751
  var PathUtility_default = new PathUtility();
5548
5752
 
5549
5753
  // src/components/NoDataFound.tsx
5550
- var import_jsx_runtime67 = require("react/jsx-runtime");
5754
+ var import_jsx_runtime69 = require("react/jsx-runtime");
5551
5755
  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)(
5756
+ 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: [
5757
+ /* @__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
5758
  "svg",
5555
5759
  {
5556
5760
  className: "w-10 h-10",
@@ -5558,7 +5762,7 @@ var NoDataFound = () => {
5558
5762
  stroke: "currentColor",
5559
5763
  viewBox: "0 0 24 24",
5560
5764
  xmlns: "http://www.w3.org/2000/svg",
5561
- children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
5765
+ children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
5562
5766
  "path",
5563
5767
  {
5564
5768
  strokeLinecap: "round",
@@ -5569,8 +5773,8 @@ var NoDataFound = () => {
5569
5773
  )
5570
5774
  }
5571
5775
  ) }) }),
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." })
5776
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("h3", { className: "text-lg font-medium mb-2", children: "No data available" }),
5777
+ /* @__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
5778
  ] });
5575
5779
  };
5576
5780
  var NoDataFound_default = NoDataFound;
@@ -5578,7 +5782,7 @@ var NoDataFound_default = NoDataFound;
5578
5782
  // src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
5579
5783
  init_AssetUtility();
5580
5784
  var import_dynamic9 = __toESM(require("next/dynamic"));
5581
- var import_jsx_runtime68 = require("react/jsx-runtime");
5785
+ var import_jsx_runtime70 = require("react/jsx-runtime");
5582
5786
  var HlsPlayer4 = (0, import_dynamic9.default)(() => Promise.resolve().then(() => (init_HlsPlayer(), HlsPlayer_exports)), { ssr: false });
5583
5787
  var deviceToMediaQuery = (device) => {
5584
5788
  switch (device) {
@@ -5707,8 +5911,8 @@ var ImageGalleryNode = (props) => {
5707
5911
  right: "justify-end"
5708
5912
  };
5709
5913
  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)(
5914
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(import_jsx_runtime70.Fragment, { children: [
5915
+ hlsSources.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_jsx_runtime70.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
5712
5916
  HlsPlayer4,
5713
5917
  {
5714
5918
  sources: hlsSources,
@@ -5723,7 +5927,7 @@ var ImageGalleryNode = (props) => {
5723
5927
  styles: hlsStyles
5724
5928
  }
5725
5929
  ) }),
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: [
5930
+ (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
5931
  DEVICE_ORDER.map((deviceKey) => {
5728
5932
  const match = staticSources.find(
5729
5933
  (img) => img.device === deviceKey
@@ -5735,7 +5939,7 @@ var ImageGalleryNode = (props) => {
5735
5939
  if (!srcUrl) {
5736
5940
  return null;
5737
5941
  }
5738
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
5942
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
5739
5943
  "source",
5740
5944
  {
5741
5945
  media: deviceToMediaQuery(match.device),
@@ -5759,7 +5963,7 @@ var ImageGalleryNode = (props) => {
5759
5963
  if (img.borderRadius) {
5760
5964
  styles.borderRadius = img.borderRadius;
5761
5965
  }
5762
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
5966
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
5763
5967
  "img",
5764
5968
  {
5765
5969
  loading: "lazy",
@@ -5774,7 +5978,7 @@ var ImageGalleryNode = (props) => {
5774
5978
  })()
5775
5979
  ] }) : (
5776
5980
  /* Case 2: Only device-specific images exist */
5777
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_jsx_runtime68.Fragment, { children: staticSources.map((img, index) => {
5981
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_jsx_runtime70.Fragment, { children: staticSources.map((img, index) => {
5778
5982
  const imageUrl = resolveImageUrl(img);
5779
5983
  if (!imageUrl) {
5780
5984
  return null;
@@ -5800,7 +6004,7 @@ var ImageGalleryNode = (props) => {
5800
6004
  default:
5801
6005
  display = "block";
5802
6006
  }
5803
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
6007
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
5804
6008
  "img",
5805
6009
  {
5806
6010
  loading: "lazy",
@@ -5941,28 +6145,28 @@ var shouldRenderContainer = (node, dataItem, session) => {
5941
6145
 
5942
6146
  // src/components/pageRenderingEngine/nodes/DocumentNode.tsx
5943
6147
  init_AssetUtility();
5944
- var import_jsx_runtime69 = require("react/jsx-runtime");
6148
+ var import_jsx_runtime71 = require("react/jsx-runtime");
5945
6149
  var getNestedValue5 = (obj, path) => {
5946
6150
  if (!obj || !path) return void 0;
5947
6151
  return path.split(".").reduce((current, key) => {
5948
6152
  return current && current[key] !== void 0 ? current[key] : void 0;
5949
6153
  }, obj);
5950
6154
  };
5951
- var PdfIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6155
+ var PdfIcon = () => /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
5952
6156
  "svg",
5953
6157
  {
5954
6158
  xmlns: "http://www.w3.org/2000/svg",
5955
6159
  viewBox: "0 0 48 48",
5956
6160
  className: "w-10 h-10",
5957
6161
  children: [
5958
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6162
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
5959
6163
  "path",
5960
6164
  {
5961
6165
  fill: "#e53935",
5962
6166
  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
6167
  }
5964
6168
  ),
5965
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6169
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
5966
6170
  "path",
5967
6171
  {
5968
6172
  fill: "#fff",
@@ -5972,55 +6176,55 @@ var PdfIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
5972
6176
  ]
5973
6177
  }
5974
6178
  );
5975
- var ExcelIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6179
+ var ExcelIcon = () => /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
5976
6180
  "svg",
5977
6181
  {
5978
6182
  xmlns: "http://www.w3.org/2000/svg",
5979
6183
  viewBox: "0 0 48 48",
5980
6184
  className: "w-10 h-10",
5981
6185
  children: [
5982
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6186
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
5983
6187
  "path",
5984
6188
  {
5985
6189
  fill: "#169154",
5986
6190
  d: "M29,6H15.744C14.781,6,14,6.781,14,7.744v7.259h15V6z"
5987
6191
  }
5988
6192
  ),
5989
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6193
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
5990
6194
  "path",
5991
6195
  {
5992
6196
  fill: "#18482a",
5993
6197
  d: "M14,33.054v7.202C14,41.219,14.781,42,15.743,42H29v-8.946H14z"
5994
6198
  }
5995
6199
  ),
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)(
6200
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("path", { fill: "#0c8045", d: "M14 15.003H29V24.005000000000003H14z" }),
6201
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("path", { fill: "#17472a", d: "M14 24.005H29V33.055H14z" }),
6202
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("g", { children: [
6203
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
6000
6204
  "path",
6001
6205
  {
6002
6206
  fill: "#29c27f",
6003
6207
  d: "M42.256,6H29v9.003h15V7.744C44,6.781,43.219,6,42.256,6z"
6004
6208
  }
6005
6209
  ),
6006
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6210
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
6007
6211
  "path",
6008
6212
  {
6009
6213
  fill: "#27663f",
6010
6214
  d: "M29,33.054V42h13.257C43.219,42,44,41.219,44,40.257v-7.202H29z"
6011
6215
  }
6012
6216
  ),
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" })
6217
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("path", { fill: "#19ac65", d: "M29 15.003H44V24.005000000000003H29z" }),
6218
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("path", { fill: "#129652", d: "M29 24.005H44V33.055H29z" })
6015
6219
  ] }),
6016
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6220
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
6017
6221
  "path",
6018
6222
  {
6019
6223
  fill: "#0c7238",
6020
6224
  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
6225
  }
6022
6226
  ),
6023
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6227
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
6024
6228
  "path",
6025
6229
  {
6026
6230
  fill: "#fff",
@@ -6030,7 +6234,7 @@ var ExcelIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6030
6234
  ]
6031
6235
  }
6032
6236
  );
6033
- var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6237
+ var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
6034
6238
  "svg",
6035
6239
  {
6036
6240
  xmlns: "http://www.w3.org/2000/svg",
@@ -6038,14 +6242,14 @@ var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6038
6242
  className: "w-10 h-10",
6039
6243
  baseProfile: "basic",
6040
6244
  children: [
6041
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6245
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
6042
6246
  "path",
6043
6247
  {
6044
6248
  fill: "#283593",
6045
6249
  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
6250
  }
6047
6251
  ),
6048
- /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6252
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
6049
6253
  "linearGradient",
6050
6254
  {
6051
6255
  id: "qh2LT5tehRDFkLLfb-odWa",
@@ -6056,19 +6260,19 @@ var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6056
6260
  gradientTransform: "translate(0 -339.89)",
6057
6261
  gradientUnits: "userSpaceOnUse",
6058
6262
  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" })
6263
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("stop", { offset: "0", "stop-color": "#66c0ff" }),
6264
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("stop", { offset: ".26", "stop-color": "#0094f0" })
6061
6265
  ]
6062
6266
  }
6063
6267
  ),
6064
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6268
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
6065
6269
  "path",
6066
6270
  {
6067
6271
  fill: "url(#qh2LT5tehRDFkLLfb-odWa)",
6068
6272
  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
6273
  }
6070
6274
  ),
6071
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6275
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
6072
6276
  "path",
6073
6277
  {
6074
6278
  fill: "#1e88e5",
@@ -6076,21 +6280,21 @@ var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6076
6280
  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
6281
  }
6078
6282
  ),
6079
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6283
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
6080
6284
  "path",
6081
6285
  {
6082
6286
  fill: "#00e5ff",
6083
6287
  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
6288
  }
6085
6289
  ),
6086
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6290
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
6087
6291
  "path",
6088
6292
  {
6089
6293
  fill: "#1565c0",
6090
6294
  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
6295
  }
6092
6296
  ),
6093
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6297
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
6094
6298
  "path",
6095
6299
  {
6096
6300
  fill: "#fff",
@@ -6100,42 +6304,42 @@ var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6100
6304
  ]
6101
6305
  }
6102
6306
  );
6103
- var StandardIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6307
+ var StandardIcon = () => /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
6104
6308
  "svg",
6105
6309
  {
6106
6310
  xmlns: "http://www.w3.org/2000/svg",
6107
6311
  viewBox: "0 0 48 48",
6108
6312
  className: "w-10 h-10",
6109
6313
  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" })
6314
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
6315
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" })
6112
6316
  ]
6113
6317
  }
6114
6318
  );
6115
- var PowerPointIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6319
+ var PowerPointIcon = () => /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
6116
6320
  "svg",
6117
6321
  {
6118
6322
  xmlns: "http://www.w3.org/2000/svg",
6119
6323
  viewBox: "0 0 48 48",
6120
6324
  className: "w-10 h-10",
6121
6325
  children: [
6122
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6326
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
6123
6327
  "path",
6124
6328
  {
6125
6329
  fill: "#dc4c2c",
6126
6330
  d: "M8,24c0,9.941,8.059,18,18,18s18-8.059,18-18H26H8z"
6127
6331
  }
6128
6332
  ),
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)(
6333
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("path", { fill: "#f7a278", d: "M26,6v18h18C44,14.059,35.941,6,26,6z" }),
6334
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("path", { fill: "#c06346", d: "M26,6C16.059,6,8,14.059,8,24h18V6z" }),
6335
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
6132
6336
  "path",
6133
6337
  {
6134
6338
  fill: "#9b341f",
6135
6339
  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
6340
  }
6137
6341
  ),
6138
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6342
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
6139
6343
  "path",
6140
6344
  {
6141
6345
  fill: "#fff",
@@ -6145,16 +6349,16 @@ var PowerPointIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6145
6349
  ]
6146
6350
  }
6147
6351
  );
6148
- var TextIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6352
+ var TextIcon = () => /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
6149
6353
  "svg",
6150
6354
  {
6151
6355
  xmlns: "http://www.w3.org/2000/svg",
6152
6356
  viewBox: "0 0 48 48",
6153
6357
  className: "w-10 h-10",
6154
6358
  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)(
6359
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
6360
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" }),
6361
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
6158
6362
  "path",
6159
6363
  {
6160
6364
  fill: "#1976D2",
@@ -6164,7 +6368,7 @@ var TextIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6164
6368
  ]
6165
6369
  }
6166
6370
  );
6167
- var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6371
+ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
6168
6372
  "svg",
6169
6373
  {
6170
6374
  xmlns: "http://www.w3.org/2000/svg",
@@ -6174,14 +6378,14 @@ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6174
6378
  version: "1.0",
6175
6379
  className: "w-10 h-10",
6176
6380
  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)(
6381
+ /* @__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
6382
  "path",
6179
6383
  {
6180
6384
  d: "M 8.90625 0 L 65.90625 0 L 65.90625 75 L 8.90625 75 Z M 8.90625 0 ",
6181
6385
  "clip-rule": "nonzero"
6182
6386
  }
6183
6387
  ) }) }),
6184
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("g", { "clip-path": "url(#273d29c8a6)", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6388
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("g", { "clip-path": "url(#273d29c8a6)", children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
6185
6389
  "path",
6186
6390
  {
6187
6391
  fill: "#ff9100",
@@ -6190,7 +6394,7 @@ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6190
6394
  "fill-rule": "nonzero"
6191
6395
  }
6192
6396
  ) }),
6193
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6397
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
6194
6398
  "path",
6195
6399
  {
6196
6400
  fill: "#fbe9e7",
@@ -6199,7 +6403,7 @@ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6199
6403
  "fill-rule": "nonzero"
6200
6404
  }
6201
6405
  ),
6202
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6406
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
6203
6407
  "path",
6204
6408
  {
6205
6409
  fill: "#ffe0b2",
@@ -6208,7 +6412,7 @@ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6208
6412
  "fill-rule": "nonzero"
6209
6413
  }
6210
6414
  ),
6211
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6415
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
6212
6416
  "path",
6213
6417
  {
6214
6418
  fill: "#ffe0b2",
@@ -6217,7 +6421,7 @@ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6217
6421
  "fill-rule": "nonzero"
6218
6422
  }
6219
6423
  ),
6220
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6424
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
6221
6425
  "path",
6222
6426
  {
6223
6427
  fill: "#ffe0b2",
@@ -6293,8 +6497,8 @@ var DocumentNode = (props) => {
6293
6497
  }
6294
6498
  }
6295
6499
  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)(
6500
+ 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: [
6501
+ /* @__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
6502
  "svg",
6299
6503
  {
6300
6504
  className: "w-5 h-5",
@@ -6302,7 +6506,7 @@ var DocumentNode = (props) => {
6302
6506
  stroke: "currentColor",
6303
6507
  viewBox: "0 0 24 24",
6304
6508
  xmlns: "http://www.w3.org/2000/svg",
6305
- children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6509
+ children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
6306
6510
  "path",
6307
6511
  {
6308
6512
  strokeLinecap: "round",
@@ -6313,11 +6517,11 @@ var DocumentNode = (props) => {
6313
6517
  )
6314
6518
  }
6315
6519
  ) }),
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." })
6520
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "text-sm font-medium", children: "No documents found" }),
6521
+ /* @__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
6522
  ] }) });
6319
6523
  }
6320
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "", children: documents.map((doc, index) => {
6524
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "", children: documents.map((doc, index) => {
6321
6525
  const documentUrl = AssetUtility_default.resolveUrl(
6322
6526
  props.assetBaseUrl,
6323
6527
  doc.assetUrl
@@ -6335,16 +6539,16 @@ var DocumentNode = (props) => {
6335
6539
  }
6336
6540
  }
6337
6541
  const { Icon: Icon2, extLabel } = getFileDetails(documentUrl);
6338
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6542
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
6339
6543
  "div",
6340
6544
  {
6341
6545
  className: `flex items-center justify-between py-4 bg-default gap-4 ${index !== 0 ? "border-t" : ""}`,
6342
6546
  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 }) })
6547
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "flex items-center space-x-4", children: [
6548
+ /* @__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, {}) }),
6549
+ /* @__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
6550
  ] }),
6347
- /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6551
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
6348
6552
  "a",
6349
6553
  {
6350
6554
  href: documentUrl,
@@ -6352,7 +6556,7 @@ var DocumentNode = (props) => {
6352
6556
  rel: "noopener noreferrer",
6353
6557
  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
6558
  children: [
6355
- /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6559
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
6356
6560
  "svg",
6357
6561
  {
6358
6562
  className: "w-4 h-4 mr-2",
@@ -6360,7 +6564,7 @@ var DocumentNode = (props) => {
6360
6564
  stroke: "currentColor",
6361
6565
  viewBox: "0 0 24 24",
6362
6566
  children: [
6363
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6567
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
6364
6568
  "path",
6365
6569
  {
6366
6570
  strokeLinecap: "round",
@@ -6369,7 +6573,7 @@ var DocumentNode = (props) => {
6369
6573
  d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"
6370
6574
  }
6371
6575
  ),
6372
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6576
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
6373
6577
  "path",
6374
6578
  {
6375
6579
  strokeLinecap: "round",
@@ -6394,7 +6598,7 @@ var DocumentNode = (props) => {
6394
6598
  var DocumentNode_default = DocumentNode;
6395
6599
 
6396
6600
  // src/components/pageRenderingEngine/nodes/DivContainer.tsx
6397
- var import_jsx_runtime73 = require("react/jsx-runtime");
6601
+ var import_jsx_runtime75 = require("react/jsx-runtime");
6398
6602
  var Pagination2 = (0, import_dynamic10.default)(() => Promise.resolve().then(() => (init_Pagination(), Pagination_exports)), { ssr: true });
6399
6603
  var Slider2 = (0, import_dynamic10.default)(() => Promise.resolve().then(() => (init_Slider(), Slider_exports)), {
6400
6604
  ssr: false
@@ -6651,7 +6855,7 @@ var DivContainer = async (props) => {
6651
6855
  response = await serviceClient.get(endpoint);
6652
6856
  result = response?.result;
6653
6857
  if (dataBindingProperties.showNoResultsMessage && (result === void 0 || result.length == 0)) {
6654
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(NoDataFound_default, {});
6858
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(NoDataFound_default, {});
6655
6859
  }
6656
6860
  if (dataBindingProperties.childCollectionName && props.dataitem) {
6657
6861
  childCollectionData = getNestedValue6(
@@ -6671,7 +6875,7 @@ var DivContainer = async (props) => {
6671
6875
  }
6672
6876
  const SelectedNode = NodeTypes2[node.type];
6673
6877
  if (!SelectedNode) return null;
6674
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_react53.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
6878
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_react53.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
6675
6879
  SelectedNode,
6676
6880
  {
6677
6881
  node,
@@ -6803,14 +7007,14 @@ var DivContainer = async (props) => {
6803
7007
  props.node.bgClass,
6804
7008
  noLinkColor && "no-link-color"
6805
7009
  ].filter(Boolean).join(" ");
6806
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(import_react53.default.Fragment, { children: [
6807
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
7010
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(import_react53.default.Fragment, { children: [
7011
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
6808
7012
  "style",
6809
7013
  {
6810
7014
  dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS }
6811
7015
  }
6812
7016
  ),
6813
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(EnterAnimationClient2, { hasEnterAnimation: !!props.node.enterAnimation, children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
7017
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(EnterAnimationClient2, { hasEnterAnimation: !!props.node.enterAnimation, children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
6814
7018
  Wrapper,
6815
7019
  {
6816
7020
  id: guid,
@@ -6824,11 +7028,11 @@ var DivContainer = async (props) => {
6824
7028
  item,
6825
7029
  idx,
6826
7030
  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)
7031
+ )?.map((child, i) => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_react53.default.Fragment, { children: child }, i)) : renderChildren(props.node.children, props, item, idx)
6828
7032
  )
6829
7033
  }
6830
7034
  ) }),
6831
- dataBindingProperties && props.node.dataBinding.enablePagination && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
7035
+ dataBindingProperties && props.node.dataBinding.enablePagination && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
6832
7036
  Pagination2,
6833
7037
  {
6834
7038
  path: props.path,
@@ -6841,7 +7045,7 @@ var DivContainer = async (props) => {
6841
7045
  var DivContainer_default = DivContainer;
6842
7046
 
6843
7047
  // src/components/pageRenderingEngine/PageBodyRenderer.tsx
6844
- var import_jsx_runtime74 = require("react/jsx-runtime");
7048
+ var import_jsx_runtime76 = require("react/jsx-runtime");
6845
7049
  var NodeTypes = {
6846
7050
  ["paragraph"]: ParagraphNode_default,
6847
7051
  ["heading"]: HeadingNode_default,
@@ -6878,14 +7082,14 @@ var PageBodyRenderer = (props) => {
6878
7082
  }
6879
7083
  return true;
6880
7084
  };
6881
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_react54.default.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
7085
+ return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_react54.default.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
6882
7086
  {
6883
7087
  }
6884
7088
  const SelectedNode = NodeTypes[node.type];
6885
7089
  if (!shouldRenderNode(node)) {
6886
7090
  return null;
6887
7091
  }
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)(
7092
+ 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
7093
  SelectedNode,
6890
7094
  {
6891
7095
  node,
@@ -6901,7 +7105,7 @@ var PageBodyRenderer = (props) => {
6901
7105
  device: props.device,
6902
7106
  widgetRenderer: props.widgetRenderer
6903
7107
  }
6904
- ) }) : /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_react54.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
7108
+ ) }) : /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_react54.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
6905
7109
  SelectedNode,
6906
7110
  {
6907
7111
  node,
@@ -6924,7 +7128,7 @@ var PageBodyRenderer_default = PageBodyRenderer;
6924
7128
  // src/components/Toast.tsx
6925
7129
  var import_react55 = require("react");
6926
7130
  init_ToastService();
6927
- var import_jsx_runtime75 = require("react/jsx-runtime");
7131
+ var import_jsx_runtime77 = require("react/jsx-runtime");
6928
7132
  var Toast = () => {
6929
7133
  const [showToast, setShowToast] = (0, import_react55.useState)(false);
6930
7134
  const [message, setMessage] = (0, import_react55.useState)("");
@@ -6958,8 +7162,8 @@ var Toast = () => {
6958
7162
  });
6959
7163
  };
6960
7164
  }, [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)(
7165
+ 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: [
7166
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
6963
7167
  "span",
6964
7168
  {
6965
7169
  className: "font-medium text-inherit text-sm",
@@ -6967,7 +7171,7 @@ var Toast = () => {
6967
7171
  children: message
6968
7172
  }
6969
7173
  ),
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)(
7174
+ /* @__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
7175
  "svg",
6972
7176
  {
6973
7177
  xmlns: "http://www.w3.org/2000/svg",
@@ -6975,7 +7179,7 @@ var Toast = () => {
6975
7179
  fill: "none",
6976
7180
  viewBox: "0 0 24 24",
6977
7181
  stroke: "currentColor",
6978
- children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M6 18L18 6M6 6l12 12" })
7182
+ children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M6 18L18 6M6 6l12 12" })
6979
7183
  }
6980
7184
  ) })
6981
7185
  ] }) }) });
@@ -7002,7 +7206,7 @@ init_TimeInput();
7002
7206
  // src/components/NavigationTabsV2.tsx
7003
7207
  var import_link3 = __toESM(require("next/link"));
7004
7208
  var import_navigation = require("next/navigation");
7005
- var import_jsx_runtime76 = require("react/jsx-runtime");
7209
+ var import_jsx_runtime78 = require("react/jsx-runtime");
7006
7210
  function resolveRoutePlaceholders(route, params) {
7007
7211
  return route.replace(/\{([^}]+)\}/g, (match, key) => {
7008
7212
  const value = params[key];
@@ -7027,8 +7231,8 @@ var NavigationTabsV2 = ({ tabs, params = {} }) => {
7027
7231
  isActive: tab.isActive
7028
7232
  })) || [];
7029
7233
  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)(
7234
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "flex border-b bg-white rounded-t mb-3", children: mappedTabs.map(({ tabTitle, landingPageUrl, isActive }) => {
7235
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_link3.default, { href: landingPageUrl, className: "-mb-px", children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
7032
7236
  "div",
7033
7237
  {
7034
7238
  className: `text-sm font-medium border-b-2 px-6 py-2 transition
@@ -7046,9 +7250,9 @@ var import_navigation2 = require("next/navigation");
7046
7250
 
7047
7251
  // src/components/dataForm/NoContentView.tsx
7048
7252
  var import_react56 = __toESM(require("react"));
7049
- var import_jsx_runtime77 = require("react/jsx-runtime");
7253
+ var import_jsx_runtime79 = require("react/jsx-runtime");
7050
7254
  var NoContentView = (props) => {
7051
- return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_react56.default.Fragment, { children: props.isDataFound === false && props.children });
7255
+ return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_react56.default.Fragment, { children: props.isDataFound === false && props.children });
7052
7256
  };
7053
7257
  var NoContentView_default = NoContentView;
7054
7258
 
@@ -7057,38 +7261,38 @@ init_InputControlType();
7057
7261
 
7058
7262
  // src/components/dataForm/ContentView.tsx
7059
7263
  var import_react57 = __toESM(require("react"));
7060
- var import_jsx_runtime78 = require("react/jsx-runtime");
7264
+ var import_jsx_runtime80 = require("react/jsx-runtime");
7061
7265
  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" })
7266
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(import_react57.default.Fragment, { children: [
7267
+ 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: [
7268
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "flex items-center mb-4", children: [
7269
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
7270
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "ml-2", children: [
7271
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
7272
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
7069
7273
  ] })
7070
7274
  ] }),
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" })
7275
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
7276
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "animate-pulse", children: [
7277
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
7278
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
7279
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
7280
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
7281
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
7078
7282
  ] }),
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" })
7283
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "animate-pulse", children: [
7284
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
7285
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
7286
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
7287
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
7288
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
7085
7289
  ] }),
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" })
7290
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "animate-pulse", children: [
7291
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
7292
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
7293
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
7294
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
7295
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
7092
7296
  ] })
7093
7297
  ] })
7094
7298
  ] }) }),
@@ -7148,7 +7352,7 @@ function FormReducer(state, action) {
7148
7352
  var FormReducer_default = FormReducer;
7149
7353
 
7150
7354
  // src/components/dataForm/DataList.tsx
7151
- var import_jsx_runtime79 = require("react/jsx-runtime");
7355
+ var import_jsx_runtime81 = require("react/jsx-runtime");
7152
7356
  var DataList = (props) => {
7153
7357
  const router = (0, import_navigation2.useRouter)();
7154
7358
  let builder = new OdataBuilder(props.path);
@@ -7186,7 +7390,7 @@ var DataList = (props) => {
7186
7390
  if (path.includes(".")) {
7187
7391
  return path.split(".").reduce((prev, curr) => prev ? prev[curr] : null, obj);
7188
7392
  } else if (Array.isArray(obj[path])) {
7189
- return obj[path].map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { children: item }, index));
7393
+ return obj[path].map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { children: item }, index));
7190
7394
  } else {
7191
7395
  return obj[path];
7192
7396
  }
@@ -7265,30 +7469,30 @@ var DataList = (props) => {
7265
7469
  const renderPageNumbers = () => {
7266
7470
  if (pages <= 10) {
7267
7471
  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)(
7472
+ (page) => /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_react58.default.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7269
7473
  Hyperlink,
7270
7474
  {
7271
7475
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
7272
7476
  href: builder.getNewPageUrl(page),
7273
7477
  children: page
7274
7478
  }
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)
7479
+ ) : /* @__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
7480
  );
7277
7481
  } else {
7278
7482
  const showFirstPages = activePageNumber <= 5;
7279
7483
  const showLastPages = activePageNumber > pages - 5;
7280
7484
  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)(
7485
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(import_jsx_runtime81.Fragment, { children: [
7486
+ 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
7487
  Hyperlink,
7284
7488
  {
7285
7489
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
7286
7490
  href: builder.getNewPageUrl(page),
7287
7491
  children: page
7288
7492
  }
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)(
7493
+ ) : /* @__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)),
7494
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: "px-2 py-1", children: "..." }),
7495
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7292
7496
  Hyperlink,
7293
7497
  {
7294
7498
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -7296,7 +7500,7 @@ var DataList = (props) => {
7296
7500
  children: pages - 1
7297
7501
  }
7298
7502
  ),
7299
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7503
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7300
7504
  Hyperlink,
7301
7505
  {
7302
7506
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -7304,7 +7508,7 @@ var DataList = (props) => {
7304
7508
  children: pages
7305
7509
  }
7306
7510
  ),
7307
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { className: "relative inline-block", children: /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
7511
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "relative inline-block", children: /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
7308
7512
  "select",
7309
7513
  {
7310
7514
  className: " py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
@@ -7316,18 +7520,18 @@ var DataList = (props) => {
7316
7520
  }
7317
7521
  },
7318
7522
  children: [
7319
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("option", { className: "", value: "", children: "Jump to" }),
7523
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("option", { className: "", value: "", children: "Jump to" }),
7320
7524
  Array.from(
7321
7525
  { length: Math.max(0, pages - 10) },
7322
7526
  (_, index) => index + 9
7323
- ).map((page) => /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("option", { value: page, children: page }, page))
7527
+ ).map((page) => /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("option", { value: page, children: page }, page))
7324
7528
  ]
7325
7529
  }
7326
7530
  ) })
7327
7531
  ] });
7328
7532
  } else if (showLastPages) {
7329
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_jsx_runtime79.Fragment, { children: [
7330
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7533
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(import_jsx_runtime81.Fragment, { children: [
7534
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7331
7535
  Hyperlink,
7332
7536
  {
7333
7537
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -7335,7 +7539,7 @@ var DataList = (props) => {
7335
7539
  children: "1"
7336
7540
  }
7337
7541
  ),
7338
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7542
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7339
7543
  Hyperlink,
7340
7544
  {
7341
7545
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -7343,21 +7547,21 @@ var DataList = (props) => {
7343
7547
  children: "2"
7344
7548
  }
7345
7549
  ),
7346
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { className: "px-2 py-1", children: "..." }),
7550
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: "px-2 py-1", children: "..." }),
7347
7551
  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)(
7552
+ (page) => /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_react58.default.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7349
7553
  Hyperlink,
7350
7554
  {
7351
7555
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
7352
7556
  href: builder.getNewPageUrl(page),
7353
7557
  children: page
7354
7558
  }
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)
7559
+ ) : /* @__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
7560
  )
7357
7561
  ] });
7358
7562
  } else {
7359
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_jsx_runtime79.Fragment, { children: [
7360
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7563
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(import_jsx_runtime81.Fragment, { children: [
7564
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7361
7565
  Hyperlink,
7362
7566
  {
7363
7567
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -7365,7 +7569,7 @@ var DataList = (props) => {
7365
7569
  children: "1"
7366
7570
  }
7367
7571
  ),
7368
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7572
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7369
7573
  Hyperlink,
7370
7574
  {
7371
7575
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -7373,20 +7577,20 @@ var DataList = (props) => {
7373
7577
  children: "2"
7374
7578
  }
7375
7579
  ),
7376
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { className: "px-2 py-1", children: "..." }),
7580
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: "px-2 py-1", children: "..." }),
7377
7581
  Array.from(
7378
7582
  { length: 5 },
7379
7583
  (_, 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)(
7584
+ ).map((page) => /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_react58.default.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7381
7585
  Hyperlink,
7382
7586
  {
7383
7587
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
7384
7588
  href: builder.getNewPageUrl(page),
7385
7589
  children: page
7386
7590
  }
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)(
7591
+ ) : /* @__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)),
7592
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: "px-2 py-1", children: "..." }),
7593
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7390
7594
  Hyperlink,
7391
7595
  {
7392
7596
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -7394,7 +7598,7 @@ var DataList = (props) => {
7394
7598
  children: pages - 1
7395
7599
  }
7396
7600
  ),
7397
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7601
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7398
7602
  Hyperlink,
7399
7603
  {
7400
7604
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -7402,7 +7606,7 @@ var DataList = (props) => {
7402
7606
  children: pages
7403
7607
  }
7404
7608
  ),
7405
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { className: "relative inline-block", children: /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
7609
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "relative inline-block", children: /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
7406
7610
  "select",
7407
7611
  {
7408
7612
  className: "px-2 py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
@@ -7414,8 +7618,8 @@ var DataList = (props) => {
7414
7618
  }
7415
7619
  },
7416
7620
  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))
7621
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("option", { value: "", children: "Jump to" }),
7622
+ 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
7623
  ]
7420
7624
  }
7421
7625
  ) })
@@ -7423,16 +7627,16 @@ var DataList = (props) => {
7423
7627
  }
7424
7628
  }
7425
7629
  };
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)(
7630
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(import_react58.default.Fragment, { children: [
7631
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(ContentView_default, { isDataFound, children: [
7632
+ (props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
7429
7633
  "div",
7430
7634
  {
7431
7635
  className: `flex justify-between items-center bg-white pl-6 pr-2 h-14 mb-3 shadow-sm rounded-md sticky top-0`,
7432
7636
  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)(
7637
+ 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", {}),
7638
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "flex items-center gap-3", children: [
7639
+ props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7436
7640
  InputControl_default,
7437
7641
  {
7438
7642
  name: "Search_input",
@@ -7444,7 +7648,7 @@ var DataList = (props) => {
7444
7648
  }
7445
7649
  }
7446
7650
  ),
7447
- props.filters && props.filters.map((filter) => /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7651
+ props.filters && props.filters.map((filter) => /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7448
7652
  InputControl_default,
7449
7653
  {
7450
7654
  name: filter.name,
@@ -7459,15 +7663,15 @@ var DataList = (props) => {
7459
7663
  },
7460
7664
  filter.name
7461
7665
  )),
7462
- props.addLinkHref && /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
7666
+ props.addLinkHref && /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
7463
7667
  Hyperlink,
7464
7668
  {
7465
7669
  className: "gap-1",
7466
7670
  linkType: "Primary" /* Solid */,
7467
7671
  href: props.addLinkHref,
7468
7672
  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" })
7673
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Icon_default, { name: "plus", className: "w-4 h-4" }),
7674
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
7471
7675
  ]
7472
7676
  }
7473
7677
  )
@@ -7475,8 +7679,8 @@ var DataList = (props) => {
7475
7679
  ]
7476
7680
  }
7477
7681
  ),
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) => {
7682
+ /* @__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: [
7683
+ /* @__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
7684
  let url = builder.getNewOrderByUrl(column.name);
7481
7685
  let icon = "chevronUpDown";
7482
7686
  if (orderBy.includes(`${column.name} desc`)) {
@@ -7486,18 +7690,18 @@ var DataList = (props) => {
7486
7690
  icon = "chevronUp";
7487
7691
  url = builder.getNewOrderByUrl(column.name + " desc");
7488
7692
  }
7489
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7693
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7490
7694
  "th",
7491
7695
  {
7492
7696
  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)(
7697
+ children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7494
7698
  Hyperlink,
7495
7699
  {
7496
7700
  href: column.enableSorting ? url : void 0,
7497
7701
  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 })
7702
+ children: /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("span", { className: "flex items-center space-x-1", children: [
7703
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: "text-black", children: column.label }),
7704
+ column.enableSorting && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Icon_default, { className: "w-4 h-4", name: icon })
7501
7705
  ] })
7502
7706
  }
7503
7707
  )
@@ -7505,24 +7709,24 @@ var DataList = (props) => {
7505
7709
  column.name
7506
7710
  );
7507
7711
  }) }) }),
7508
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("tbody", { className: "divide-y divide-gray-200 ", children: props.dataset?.result?.map((dataitem, index) => {
7712
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("tbody", { className: "divide-y divide-gray-200 ", children: props.dataset?.result?.map((dataitem, index) => {
7509
7713
  let validityClass = "";
7510
7714
  console.log("dataitem", dataitem);
7511
7715
  if (props.recordValidityColumnName && getNestedProperty2(dataitem, props.recordValidityColumnName) == false) {
7512
7716
  validityClass = "bg-alert-200";
7513
7717
  }
7514
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("tr", { className: validityClass, children: props?.columns?.map((column, colindex) => {
7718
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("tr", { className: validityClass, children: props?.columns?.map((column, colindex) => {
7515
7719
  console.log("column", column);
7516
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_react58.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7720
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_react58.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7517
7721
  "td",
7518
7722
  {
7519
7723
  className: "px-6 py-2 whitespace-normal " + (column.controlType == ViewControlTypes_default.money ? "" : ""),
7520
- children: column.addhref === true ? /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7724
+ children: column.addhref === true ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7521
7725
  Hyperlink,
7522
7726
  {
7523
7727
  className: "",
7524
7728
  href: `https://${dataitem[column.name]}`,
7525
- children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7729
+ children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7526
7730
  ViewControl_default,
7527
7731
  {
7528
7732
  controlType: column.controlType,
@@ -7535,11 +7739,11 @@ var DataList = (props) => {
7535
7739
  }
7536
7740
  )
7537
7741
  }
7538
- ) : column.showAsLink ? /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7742
+ ) : column.showAsLink ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7539
7743
  Hyperlink,
7540
7744
  {
7541
7745
  href: props.path + dataitem[props.columns[0].name] + "/" + (dataitem.linkUrlSegment ?? column.linkUrlSegment),
7542
- children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7746
+ children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7543
7747
  ViewControl_default,
7544
7748
  {
7545
7749
  controlType: column.controlType,
@@ -7549,7 +7753,7 @@ var DataList = (props) => {
7549
7753
  }
7550
7754
  )
7551
7755
  }
7552
- ) : /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7756
+ ) : /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7553
7757
  ViewControl_default,
7554
7758
  {
7555
7759
  controlType: column.controlType,
@@ -7563,10 +7767,10 @@ var DataList = (props) => {
7563
7767
  }) }, index);
7564
7768
  }) })
7565
7769
  ] }) }),
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)(
7770
+ /* @__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: [
7771
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "text-gray-700", children: label }),
7772
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "flex space-x-2 items-center", children: [
7773
+ activePageNumber > 1 && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7570
7774
  Hyperlink,
7571
7775
  {
7572
7776
  className: "px-3 py-1 rounded-l-md border border-gray-300 bg-white text-gray-500 hover:bg-gray-200",
@@ -7574,9 +7778,9 @@ var DataList = (props) => {
7574
7778
  children: "Prev"
7575
7779
  }
7576
7780
  ),
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" }),
7781
+ 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
7782
  renderPageNumbers(),
7579
- activePageNumber < pages && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7783
+ activePageNumber < pages && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7580
7784
  Hyperlink,
7581
7785
  {
7582
7786
  className: "px-3 py-1 rounded-r-md border border-gray-300 bg-white text-gray-500 hover:bg-gray-200",
@@ -7584,19 +7788,19 @@ var DataList = (props) => {
7584
7788
  children: "Next"
7585
7789
  }
7586
7790
  ),
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" })
7791
+ 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
7792
  ] })
7589
7793
  ] }) })
7590
7794
  ] }),
7591
- /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(NoContentView_default, { isDataFound, children: [
7592
- (props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
7795
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(NoContentView_default, { isDataFound, children: [
7796
+ (props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
7593
7797
  "div",
7594
7798
  {
7595
7799
  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
7800
  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)(
7801
+ 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", {}),
7802
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "flex items-center gap-3", children: [
7803
+ props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7600
7804
  InputControl_default,
7601
7805
  {
7602
7806
  name: "Search_input",
@@ -7608,7 +7812,7 @@ var DataList = (props) => {
7608
7812
  }
7609
7813
  }
7610
7814
  ),
7611
- props.filters && props.filters.map((filter) => /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7815
+ props.filters && props.filters.map((filter) => /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7612
7816
  InputControl_default,
7613
7817
  {
7614
7818
  name: filter.name,
@@ -7623,15 +7827,15 @@ var DataList = (props) => {
7623
7827
  },
7624
7828
  filter.name
7625
7829
  )),
7626
- props.addLinkHref && /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
7830
+ props.addLinkHref && /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
7627
7831
  Hyperlink,
7628
7832
  {
7629
7833
  className: "gap-1",
7630
7834
  linkType: "Primary" /* Solid */,
7631
7835
  href: props.addLinkHref,
7632
7836
  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" })
7837
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Icon_default, { name: "plus", className: "w-4 h-4" }),
7838
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
7635
7839
  ]
7636
7840
  }
7637
7841
  )
@@ -7639,8 +7843,8 @@ var DataList = (props) => {
7639
7843
  ]
7640
7844
  }
7641
7845
  ),
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) => {
7846
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "flex-grow overflow-y-auto justify-end bg-white rounded shadow h-[75vh]", children: [
7847
+ /* @__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
7848
  let url = builder.getNewOrderByUrl(column.name);
7645
7849
  let icon = "chevronUpDown";
7646
7850
  if (orderBy.includes(`${column.name} desc`)) {
@@ -7650,18 +7854,18 @@ var DataList = (props) => {
7650
7854
  icon = "chevronUp";
7651
7855
  url = builder.getNewOrderByUrl(column.name + " desc");
7652
7856
  }
7653
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7857
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7654
7858
  "th",
7655
7859
  {
7656
7860
  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)(
7861
+ children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7658
7862
  Hyperlink,
7659
7863
  {
7660
7864
  href: column.enableSorting ? url : void 0,
7661
7865
  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 })
7866
+ children: /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("span", { className: "flex items-center space-x-1", children: [
7867
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { children: column.label }),
7868
+ column.enableSorting && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Icon_default, { className: "w-4 h-4", name: icon })
7665
7869
  ] })
7666
7870
  }
7667
7871
  )
@@ -7669,7 +7873,7 @@ var DataList = (props) => {
7669
7873
  column.name
7670
7874
  );
7671
7875
  }) }) }) }) }),
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." })
7876
+ /* @__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
7877
  ] })
7674
7878
  ] })
7675
7879
  ] });
@@ -7682,7 +7886,7 @@ init_ServiceClient();
7682
7886
  init_OdataBuilder();
7683
7887
  init_SelectWithSearchInput();
7684
7888
  var import_navigation3 = require("next/navigation");
7685
- var import_jsx_runtime80 = require("react/jsx-runtime");
7889
+ var import_jsx_runtime82 = require("react/jsx-runtime");
7686
7890
  var viewControlMap = {
7687
7891
  number: ViewControlTypes.number,
7688
7892
  lineText: ViewControlTypes.lineText,
@@ -7777,15 +7981,15 @@ var DataListRenderer = ({
7777
7981
  isActive: landingPageUrl === pathname
7778
7982
  };
7779
7983
  });
7780
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(import_react59.default.Fragment, { children: [
7781
- resolvedTabs.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
7984
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(import_react59.default.Fragment, { children: [
7985
+ resolvedTabs.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
7782
7986
  NavigationTabsV2_default,
7783
7987
  {
7784
7988
  tabs: resolvedTabs,
7785
7989
  params: widgetProps?.params ?? params
7786
7990
  }
7787
7991
  ),
7788
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
7992
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
7789
7993
  DataList_default,
7790
7994
  {
7791
7995
  addLinkHref,
@@ -7840,7 +8044,7 @@ var FORM_CHILD_ONE_TO_ONE_UPDATE = "FORM_CHILD_ONE_TO_ONE_UPDATE";
7840
8044
  var FORM_CHILD_ROW_ADD = "FORM_CHILD_ROW_ADD";
7841
8045
 
7842
8046
  // src/components/dataForm/DataFormChildSection.tsx
7843
- var import_jsx_runtime81 = require("react/jsx-runtime");
8047
+ var import_jsx_runtime83 = require("react/jsx-runtime");
7844
8048
  var DataFormChildSection = (props) => {
7845
8049
  const { section } = props;
7846
8050
  const isOneToOne = section.relationshipType === "one-to-one";
@@ -7908,14 +8112,14 @@ var DataFormChildSection = (props) => {
7908
8112
  childItemsToRender,
7909
8113
  allChildItems: childItems
7910
8114
  });
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: [
8115
+ 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: [
8116
+ section.sectionTitle && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: "mb-4 text-lg font-medium text-body-950", children: section.sectionTitle }),
8117
+ /* @__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: [
8118
+ /* @__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: [
8119
+ (!isOneToOne || childItemsToRender.length > 0) && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("thead", { className: "", children: section.sectionRows.map((sectionRow, sectionRowIndex) => {
8120
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("tr", { className: "", children: [
7917
8121
  sectionRow.elements.map((field, index) => {
7918
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
8122
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
7919
8123
  "th",
7920
8124
  {
7921
8125
  className: "py-3 font-normal text-left",
@@ -7924,21 +8128,21 @@ var DataFormChildSection = (props) => {
7924
8128
  field.name
7925
8129
  );
7926
8130
  }),
7927
- !section.readonly && !isOneToOne && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("th", { className: "py-3 font-normal text-left", children: "Actions" })
8131
+ !section.readonly && !isOneToOne && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("th", { className: "py-3 font-normal text-left", children: "Actions" })
7928
8132
  ] }, sectionRowIndex);
7929
8133
  }) }),
7930
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("tbody", { className: "divide-y divide-gray-200", children: childItemsToRender.map((visibleItem, filteredIndex) => {
8134
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("tbody", { className: "divide-y divide-gray-200", children: childItemsToRender.map((visibleItem, filteredIndex) => {
7931
8135
  const { item, originalIndex } = visibleItem;
7932
8136
  const rowKey = originalIndex;
7933
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_react60.default.Fragment, { children: section.sectionRows.map(
8137
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_react60.default.Fragment, { children: section.sectionRows.map(
7934
8138
  (sectionRow, sectionRowIndex) => {
7935
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
8139
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
7936
8140
  "tr",
7937
8141
  {
7938
8142
  className: "",
7939
8143
  children: [
7940
8144
  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)(
8145
+ 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
8146
  InputControl_default,
7943
8147
  {
7944
8148
  index: filteredIndex,
@@ -7958,7 +8162,7 @@ var DataFormChildSection = (props) => {
7958
8162
  }
7959
8163
  ) }) }) }, field.name);
7960
8164
  }),
7961
- !section.readonly && !isOneToOne && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("td", { children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
8165
+ !section.readonly && !isOneToOne && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("td", { children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
7962
8166
  ClientButton_default,
7963
8167
  {
7964
8168
  ButtonType: StyleTypes2.Hollow,
@@ -7967,7 +8171,7 @@ var DataFormChildSection = (props) => {
7967
8171
  },
7968
8172
  dataRole: "delete",
7969
8173
  tabIndex: -1,
7970
- children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
8174
+ children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
7971
8175
  Icon_default,
7972
8176
  {
7973
8177
  className: "w-4 h-4",
@@ -7984,7 +8188,7 @@ var DataFormChildSection = (props) => {
7984
8188
  ) }, rowKey);
7985
8189
  }) })
7986
8190
  ] }) }),
7987
- !section.readonly && !isOneToOne && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "ml-1", children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
8191
+ !section.readonly && !isOneToOne && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: "ml-1", children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
7988
8192
  ClientButton_default,
7989
8193
  {
7990
8194
  ButtonType: "Link" /* Link */,
@@ -7999,7 +8203,7 @@ var DataFormChildSection = (props) => {
7999
8203
  var DataFormChildSection_default = DataFormChildSection;
8000
8204
 
8001
8205
  // src/components/dataForm/DataForm.tsx
8002
- var import_jsx_runtime82 = require("react/jsx-runtime");
8206
+ var import_jsx_runtime84 = require("react/jsx-runtime");
8003
8207
  var DataForm = (props) => {
8004
8208
  const formRef = (0, import_react61.useRef)(null);
8005
8209
  console.log(props.dataItem, "dssads");
@@ -8219,19 +8423,19 @@ var DataForm = (props) => {
8219
8423
  return false;
8220
8424
  }
8221
8425
  }
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)(
8426
+ 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: [
8427
+ 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
8428
  "div",
8225
8429
  {
8226
8430
  className: "inline-flex items-center gap-2 cursor-pointer",
8227
8431
  onClick: () => window.history.back(),
8228
8432
  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 })
8433
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Icon_default, { name: "chevronLeft", className: "w-4 h-4 text-primary-800" }),
8434
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("h2", { className: "text-lg font-semibold text-primary-800", children: props.title })
8231
8435
  ]
8232
8436
  }
8233
8437
  ) }),
8234
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
8438
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
8235
8439
  "form",
8236
8440
  {
8237
8441
  className: "group space-y-6 pb-6 overflow-y-auto",
@@ -8252,8 +8456,8 @@ var DataForm = (props) => {
8252
8456
  }
8253
8457
  }
8254
8458
  },
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: [
8459
+ children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: "flex flex-col gap-6", children: props.sections?.map((section, sectionIndex) => {
8460
+ 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
8461
  section.sectionRows?.map(
8258
8462
  (sectionRow, sectionRowIndex) => {
8259
8463
  const elementsCount = sectionRow.elements.length;
@@ -8264,14 +8468,14 @@ var DataForm = (props) => {
8264
8468
  sectionRow.visible
8265
8469
  );
8266
8470
  }
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)(
8471
+ 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) => {
8472
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
8269
8473
  "div",
8270
8474
  {
8271
8475
  className: sectionRow.grow ? "grow" : "",
8272
8476
  children: [
8273
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { children: field.controlType }),
8274
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
8477
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { children: field.controlType }),
8478
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
8275
8479
  InputControl_default,
8276
8480
  {
8277
8481
  name: field.name,
@@ -8301,12 +8505,12 @@ var DataForm = (props) => {
8301
8505
  }) }) }, sectionRowIndex);
8302
8506
  }
8303
8507
  ),
8304
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { children: section.childSections?.map(
8508
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { children: section.childSections?.map(
8305
8509
  (childSection, childSectionIndex) => {
8306
- return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { children: childSection.name && evalutateCondition(
8510
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { children: childSection.name && evalutateCondition(
8307
8511
  formState.inputValues,
8308
8512
  childSection.visible
8309
- ) && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
8513
+ ) && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
8310
8514
  DataFormChildSection_default,
8311
8515
  {
8312
8516
  section: childSection,
@@ -8321,8 +8525,8 @@ var DataForm = (props) => {
8321
8525
  }) })
8322
8526
  }
8323
8527
  ),
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)(
8528
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "flex px-6 py-3 mt-2 mb-2 justify-end items-center gap-5", children: [
8529
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { children: props.additionalActions && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
8326
8530
  Button_default,
8327
8531
  {
8328
8532
  ButtonType: "PrimaryHollow" /* Hollow */,
@@ -8330,7 +8534,7 @@ var DataForm = (props) => {
8330
8534
  children: props.additionalActions.title
8331
8535
  }
8332
8536
  ) }),
8333
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { children: props.onDelete && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
8537
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { children: props.onDelete && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
8334
8538
  Button_default,
8335
8539
  {
8336
8540
  ButtonType: "PrimaryHollow" /* Hollow */,
@@ -8341,7 +8545,7 @@ var DataForm = (props) => {
8341
8545
  children: "Delete"
8342
8546
  }
8343
8547
  ) }),
8344
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { children: props.onClick && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
8548
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { children: props.onClick && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
8345
8549
  Button_default,
8346
8550
  {
8347
8551
  onValidate,
@@ -8359,7 +8563,7 @@ var DataForm_default = DataForm;
8359
8563
 
8360
8564
  // src/components/dataForm/DataFormRenderer.tsx
8361
8565
  init_ServiceClient();
8362
- var import_jsx_runtime83 = require("react/jsx-runtime");
8566
+ var import_jsx_runtime85 = require("react/jsx-runtime");
8363
8567
  function getAction(actions, code) {
8364
8568
  return actions?.find((a) => a.actionCode === code);
8365
8569
  }
@@ -8385,9 +8589,9 @@ var DataFormRenderer = ({
8385
8589
  "Delete"
8386
8590
  );
8387
8591
  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)(
8592
+ return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "flex-grow flex flex-col", children: [
8593
+ widgetProps && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
8594
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
8391
8595
  DataForm_default,
8392
8596
  {
8393
8597
  title: !isAddPage ? "Edit " + formDefinition.formTitle + "- v2" : "Add " + formDefinition.formTitle + "- v2",