@clyrex-digital/clyrex-controls-dev 0.8.1-dev.20260723123821 → 0.8.1-dev.20260724060217

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
@@ -1003,6 +1003,7 @@ var init_InputControlType = __esm({
1003
1003
  select: "select",
1004
1004
  percentageInput: "percentage",
1005
1005
  asset: "asset",
1006
+ assetUpload: "assetUpload",
1006
1007
  phoneInput: "phone",
1007
1008
  numberInput: "number",
1008
1009
  checkboxInput: "boolean",
@@ -1014,6 +1015,9 @@ var init_InputControlType = __esm({
1014
1015
  selectWithSearchPanel: "selectWithSearchPanel",
1015
1016
  booleanSelect: "booleanSelect",
1016
1017
  switchInput: "switchInput",
1018
+ dateInput: "dateInput",
1019
+ radioInput: "radioInput",
1020
+ switcher: "switcher",
1017
1021
  videoInput: "videoInput"
1018
1022
  };
1019
1023
  InputControlType_default = InputControlType;
@@ -1028,7 +1032,7 @@ var init_Select = __esm({
1028
1032
  import_react19 = require("react");
1029
1033
  import_jsx_runtime22 = require("react/jsx-runtime");
1030
1034
  Select = (props) => {
1031
- const [list, setList] = (0, import_react19.useState)([]);
1035
+ const [list, setList] = (0, import_react19.useState)();
1032
1036
  const getSafeValue = (val) => {
1033
1037
  if (val === null || val === void 0) return "";
1034
1038
  if (typeof val === "boolean") return val ? "1" : "0";
@@ -1057,6 +1061,14 @@ var init_Select = __esm({
1057
1061
  groupKey: props.groupKey
1058
1062
  });
1059
1063
  };
1064
+ const inputChangeHandler = (event) => {
1065
+ props.callback?.({
1066
+ name: props.name,
1067
+ value: event.target.value,
1068
+ index: props.index,
1069
+ groupKey: props.groupKey
1070
+ });
1071
+ };
1060
1072
  (0, import_react19.useEffect)(() => {
1061
1073
  async function fetchData() {
1062
1074
  if (props.dataset) {
@@ -1066,7 +1078,11 @@ var init_Select = __esm({
1066
1078
  if (props.dataSource && props.serviceClient) {
1067
1079
  let dataSource = props.dataSource;
1068
1080
  let response;
1069
- if (props.dataSourceDependsOn && props.dependentValue) {
1081
+ if (props.dataSourceDependsOn) {
1082
+ if (!props.dependentValue) {
1083
+ setList([]);
1084
+ return;
1085
+ }
1070
1086
  dataSource = dataSource.replace(
1071
1087
  `{${props.dataSourceDependsOn}}`,
1072
1088
  props.dependentValue
@@ -1074,7 +1090,9 @@ var init_Select = __esm({
1074
1090
  }
1075
1091
  response = await props.serviceClient.get(dataSource);
1076
1092
  setList(response.result ?? []);
1093
+ return;
1077
1094
  }
1095
+ setList([]);
1078
1096
  }
1079
1097
  fetchData();
1080
1098
  }, [
@@ -1088,7 +1106,24 @@ var init_Select = __esm({
1088
1106
  props.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "text-sm font-medium inline-block pb-1", children: props.attributes?.label }),
1089
1107
  " ",
1090
1108
  props.attributes?.label && props.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "bg-error-weak", children: "*" }),
1091
- /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
1109
+ list && list.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1110
+ "input",
1111
+ {
1112
+ type: "text",
1113
+ name: props.name,
1114
+ id: props.name,
1115
+ value,
1116
+ onChange: inputChangeHandler,
1117
+ required: props.attributes?.required,
1118
+ placeholder: props.attributes?.placeholder,
1119
+ maxLength: props.attributes?.maxLength,
1120
+ pattern: props.attributes?.pattern,
1121
+ disabled: props.attributes?.readOnly,
1122
+ minLength: props.attributes?.minLength,
1123
+ className: `peer input select mt-1 py-1.5 block w-full rounded shadow-sm ${props.inputClasses ?? ""}`
1124
+ }
1125
+ ),
1126
+ list && list.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
1092
1127
  "select",
1093
1128
  {
1094
1129
  name: props.name,
@@ -1097,7 +1132,9 @@ var init_Select = __esm({
1097
1132
  onChange: textChangeHandler,
1098
1133
  required: props.attributes?.required,
1099
1134
  disabled: props.attributes?.readOnly,
1100
- 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",
1135
+ className: `peer select py-1.5 block w-full text-black rounded border-gray-300 shadow-sm
1136
+ focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50
1137
+ disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none ${props.inputClasses ?? ""}`,
1101
1138
  children: [
1102
1139
  /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("option", { value: "", children: props.attributes?.placeholder || "Select" }),
1103
1140
  list.map((item, index) => {
@@ -2842,17 +2879,356 @@ var init_SwitchInput = __esm({
2842
2879
  }
2843
2880
  });
2844
2881
 
2882
+ // src/components/utilities/DateTimeUtility.tsx
2883
+ var DateTimeUtility, DateTimeUtility_default;
2884
+ var init_DateTimeUtility = __esm({
2885
+ "src/components/utilities/DateTimeUtility.tsx"() {
2886
+ "use strict";
2887
+ DateTimeUtility = class {
2888
+ constructor() {
2889
+ }
2890
+ static formatDate(date) {
2891
+ if (!date) {
2892
+ throw new Error("Invalid date");
2893
+ }
2894
+ const pad = (num) => num.toString().padStart(2, "0");
2895
+ const year = date.getFullYear();
2896
+ const month = pad(date.getMonth() + 1);
2897
+ const day = pad(date.getDate());
2898
+ const hours = pad(date.getHours());
2899
+ const minutes = pad(date.getMinutes());
2900
+ const seconds = pad(date.getSeconds());
2901
+ return `${year}-${month}-${day}T${hours}:${minutes}:${seconds}`;
2902
+ }
2903
+ static getMonthShortNameCustom(month) {
2904
+ const monthNames = [
2905
+ "Jan",
2906
+ "Feb",
2907
+ "Mar",
2908
+ "Apr",
2909
+ "May",
2910
+ "Jun",
2911
+ "Jul",
2912
+ "Aug",
2913
+ "Sep",
2914
+ "Oct",
2915
+ "Nov",
2916
+ "Dec"
2917
+ ];
2918
+ if (month < 1 || month > 12) {
2919
+ throw new Error(
2920
+ "Invalid month. Please provide a value between 1 and 12."
2921
+ );
2922
+ }
2923
+ return monthNames[month - 1];
2924
+ }
2925
+ static getCurrentWeekRange() {
2926
+ const today = /* @__PURE__ */ new Date();
2927
+ const day = today.getDay();
2928
+ const diffToMonday = (day === 0 ? -6 : 1) - day;
2929
+ const monday = new Date(today);
2930
+ monday.setDate(today.getDate() + diffToMonday);
2931
+ monday.setHours(0, 0, 0, 0);
2932
+ const sunday = new Date(monday);
2933
+ sunday.setDate(monday.getDate() + 6);
2934
+ sunday.setHours(23, 59, 59, 999);
2935
+ return { start: monday, end: sunday };
2936
+ }
2937
+ static getCurrentMonthRange() {
2938
+ const now = /* @__PURE__ */ new Date();
2939
+ const start = new Date(now.getFullYear(), now.getMonth(), 1);
2940
+ const end = new Date(now.getFullYear(), now.getMonth() + 1, 0);
2941
+ return { start, end };
2942
+ }
2943
+ static formatShortDate(date) {
2944
+ const day = date.getDate();
2945
+ const month = this.getMonthShortNameCustom(date.getMonth() + 1);
2946
+ return `${day} ${month}`;
2947
+ }
2948
+ static formatIndianCurrencyShort(value) {
2949
+ if (value >= 1e7) {
2950
+ return `${(value / 1e7).toFixed(2)} Cr`;
2951
+ } else if (value >= 1e5) {
2952
+ return `${(value / 1e5).toFixed(2)} L`;
2953
+ } else if (value >= 1e3) {
2954
+ return `${(value / 1e3).toFixed(2)} K`;
2955
+ } else {
2956
+ return `${value}`;
2957
+ }
2958
+ }
2959
+ };
2960
+ DateTimeUtility_default = DateTimeUtility;
2961
+ }
2962
+ });
2963
+
2964
+ // src/components/controls/edit/DateInput.tsx
2965
+ var import_react37, import_jsx_runtime46, DateInput, DateInput_default;
2966
+ var init_DateInput = __esm({
2967
+ "src/components/controls/edit/DateInput.tsx"() {
2968
+ "use strict";
2969
+ import_react37 = require("react");
2970
+ init_DateTimeUtility();
2971
+ import_jsx_runtime46 = require("react/jsx-runtime");
2972
+ DateInput = (props) => {
2973
+ const value = (0, import_react37.useMemo)(() => {
2974
+ if (props.value === void 0 || props.value === null || props.value === "") {
2975
+ return "";
2976
+ }
2977
+ try {
2978
+ const rawValue = String(props.value);
2979
+ const utcDate = new Date(rawValue.endsWith("Z") ? rawValue : `${rawValue}Z`);
2980
+ const localDate = new Date(
2981
+ utcDate.getTime() - utcDate.getTimezoneOffset() * 6e4
2982
+ );
2983
+ return localDate.toISOString().slice(0, 10);
2984
+ } catch {
2985
+ return String(props.value);
2986
+ }
2987
+ }, [props.value]);
2988
+ const changeHandler = (event) => {
2989
+ const dateValue = event.target.value;
2990
+ let callbackValue = dateValue;
2991
+ const parsedDate = new Date(dateValue);
2992
+ if (dateValue && !Number.isNaN(parsedDate.getTime())) {
2993
+ const adjustedDate = new Date(
2994
+ parsedDate.getTime() + 2 * parsedDate.getTimezoneOffset() * 6e4
2995
+ );
2996
+ callbackValue = DateTimeUtility_default.formatDate(adjustedDate);
2997
+ }
2998
+ props.callback?.({
2999
+ name: props.name,
3000
+ value: callbackValue,
3001
+ index: props.index,
3002
+ groupKey: props.groupKey
3003
+ });
3004
+ };
3005
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("label", { className: "block mb-1", children: [
3006
+ props.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "text-sm font-medium", children: props.attributes.label }),
3007
+ " ",
3008
+ props.attributes?.label && props.attributes.required && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "bg-error-weak", children: "*" }),
3009
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
3010
+ "input",
3011
+ {
3012
+ type: "date",
3013
+ name: props.name,
3014
+ id: props.name,
3015
+ value,
3016
+ onChange: changeHandler,
3017
+ required: props.attributes?.required,
3018
+ disabled: props.attributes?.readOnly,
3019
+ max: String(props.attributes?.maxValue ?? "9999-12-31"),
3020
+ className: `peer input mt-1 py-1.5 block w-full rounded shadow-sm ${props.inputClasses ?? ""}`
3021
+ }
3022
+ ),
3023
+ /* @__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 ?? "" })
3024
+ ] });
3025
+ };
3026
+ DateInput_default = DateInput;
3027
+ }
3028
+ });
3029
+
3030
+ // src/components/controls/edit/RadioInput.tsx
3031
+ var import_react38, import_jsx_runtime47, RadioInput, RadioInput_default;
3032
+ var init_RadioInput = __esm({
3033
+ "src/components/controls/edit/RadioInput.tsx"() {
3034
+ "use strict";
3035
+ import_react38 = require("react");
3036
+ init_Icon();
3037
+ import_jsx_runtime47 = require("react/jsx-runtime");
3038
+ RadioInput = (props) => {
3039
+ const [list, setList] = (0, import_react38.useState)([]);
3040
+ (0, import_react38.useEffect)(() => {
3041
+ async function loadData() {
3042
+ if (props.dataset) {
3043
+ setList(props.dataset);
3044
+ return;
3045
+ }
3046
+ if (!props.dataSource || !props.serviceClient) {
3047
+ setList([]);
3048
+ return;
3049
+ }
3050
+ let dataSource = props.dataSource;
3051
+ if (props.dataSourceDependsOn) {
3052
+ if (!props.dependentValue) {
3053
+ setList([]);
3054
+ return;
3055
+ }
3056
+ dataSource = dataSource.replace(
3057
+ `{${props.dataSourceDependsOn}}`,
3058
+ props.dependentValue
3059
+ );
3060
+ }
3061
+ const response = await props.serviceClient.get(dataSource);
3062
+ setList(response.result ?? []);
3063
+ }
3064
+ loadData();
3065
+ }, [
3066
+ props.dataSource,
3067
+ props.dataSourceDependsOn,
3068
+ props.dataset,
3069
+ props.dependentValue,
3070
+ props.serviceClient
3071
+ ]);
3072
+ const changeHandler = (event) => {
3073
+ if (!props.attributes?.readOnly) {
3074
+ props.callback?.({
3075
+ name: props.name,
3076
+ value: event.target.value,
3077
+ index: props.index,
3078
+ groupKey: props.groupKey
3079
+ });
3080
+ }
3081
+ };
3082
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "block", children: [
3083
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "text-sm font-medium", children: props.attributes?.label }),
3084
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "flex flex-col gap-3", children: list.map((item, index) => {
3085
+ const itemValue = item[props.dataKeyFieldName];
3086
+ const isSelected = String(itemValue) === String(props.value ?? "");
3087
+ const isRecommended = props.dataRecommendedValue !== void 0 && String(itemValue) === String(props.dataRecommendedValue);
3088
+ const resultClassName = isSelected ? isRecommended ? "bg-success" : props.dataRecommendedValue ? "bg-alert" : "border-transparent" : "border-transparent";
3089
+ const iconName = isSelected && props.dataRecommendedValue ? isRecommended ? "checkCircle" : "xCircle" : void 0;
3090
+ const inputId = `${props.name}-${props.index ?? 0}-id-${index}`;
3091
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
3092
+ "div",
3093
+ {
3094
+ className: `font-normal flex items-center justify-between gap-4 cursor-pointer border rounded p-2 ${resultClassName}`,
3095
+ children: [
3096
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex gap-4 items-start", children: [
3097
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
3098
+ "input",
3099
+ {
3100
+ type: "radio",
3101
+ className: "form-radio mt-1.5 focus:outline-none",
3102
+ name: `${props.name}-${props.index ?? 0}`,
3103
+ id: inputId,
3104
+ value: itemValue,
3105
+ checked: isSelected,
3106
+ readOnly: props.attributes?.readOnly,
3107
+ onChange: changeHandler,
3108
+ required: props.attributes?.required
3109
+ }
3110
+ ),
3111
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("label", { className: "text-body-950 pr-2", htmlFor: inputId, children: item[props.dataTextFieldName] })
3112
+ ] }),
3113
+ iconName && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Icon_default, { className: "w-5 h-5 text-success", name: iconName })
3114
+ ]
3115
+ },
3116
+ String(itemValue)
3117
+ );
3118
+ }) }),
3119
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props.attributes?.errorMessage ?? "" })
3120
+ ] });
3121
+ };
3122
+ RadioInput_default = RadioInput;
3123
+ }
3124
+ });
3125
+
3126
+ // src/components/controls/edit/Switcher.tsx
3127
+ var import_react39, import_jsx_runtime48, Switcher, Switcher_default;
3128
+ var init_Switcher = __esm({
3129
+ "src/components/controls/edit/Switcher.tsx"() {
3130
+ "use strict";
3131
+ import_react39 = require("react");
3132
+ import_jsx_runtime48 = require("react/jsx-runtime");
3133
+ Switcher = (props) => {
3134
+ const [list, setList] = (0, import_react39.useState)([]);
3135
+ (0, import_react39.useEffect)(() => {
3136
+ async function loadData() {
3137
+ if (props.dataset) {
3138
+ setList(props.dataset);
3139
+ return;
3140
+ }
3141
+ if (!props.dataSource || !props.serviceClient) {
3142
+ setList([]);
3143
+ return;
3144
+ }
3145
+ let dataSource = props.dataSource;
3146
+ if (props.dataSourceDependsOn) {
3147
+ if (!props.dependentValue) {
3148
+ setList([]);
3149
+ return;
3150
+ }
3151
+ dataSource = dataSource.replace(
3152
+ `{${props.dataSourceDependsOn}}`,
3153
+ props.dependentValue
3154
+ );
3155
+ }
3156
+ const response = await props.serviceClient.get(dataSource);
3157
+ setList(response.result ?? []);
3158
+ }
3159
+ loadData();
3160
+ }, [
3161
+ props.dataSource,
3162
+ props.dataSourceDependsOn,
3163
+ props.dataset,
3164
+ props.dependentValue,
3165
+ props.serviceClient
3166
+ ]);
3167
+ const changeHandler = (event) => {
3168
+ props.callback?.({
3169
+ name: props.name,
3170
+ value: event.target.value,
3171
+ index: props.index,
3172
+ groupKey: props.groupKey
3173
+ });
3174
+ };
3175
+ const value = props.value === void 0 || props.value === null ? "" : String(props.value);
3176
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("label", { className: "block mb-1", children: [
3177
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("span", { className: "text-sm font-medium", children: props.attributes?.label }),
3178
+ list.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
3179
+ "input",
3180
+ {
3181
+ type: "text",
3182
+ name: props.name,
3183
+ id: props.name,
3184
+ value,
3185
+ onChange: changeHandler,
3186
+ required: props.attributes?.required,
3187
+ placeholder: props.attributes?.placeholder,
3188
+ disabled: props.attributes?.readOnly,
3189
+ className: `peer input mt-1 py-1.5 block w-full rounded shadow-sm ${props.inputClasses ?? ""}`
3190
+ }
3191
+ ) : /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
3192
+ "select",
3193
+ {
3194
+ name: props.name,
3195
+ id: props.name,
3196
+ value,
3197
+ onChange: changeHandler,
3198
+ required: props.attributes?.required,
3199
+ disabled: props.attributes?.readOnly,
3200
+ className: `peer select my-1 py-1 block w-full rounded shadow-sm ${props.inputClasses ?? ""}`,
3201
+ children: [
3202
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("option", { value: "", children: props.attributes?.placeholder || "Select" }),
3203
+ list.map((item) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
3204
+ "option",
3205
+ {
3206
+ value: item[props.dataKeyFieldName],
3207
+ children: item[props.dataTextFieldName]
3208
+ },
3209
+ String(item[props.dataKeyFieldName])
3210
+ ))
3211
+ ]
3212
+ }
3213
+ ),
3214
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props.attributes?.errorMessage ?? "" })
3215
+ ] });
3216
+ };
3217
+ Switcher_default = Switcher;
3218
+ }
3219
+ });
3220
+
2845
3221
  // src/components/controls/edit/InputControlClient.tsx
2846
3222
  var InputControlClient_exports = {};
2847
3223
  __export(InputControlClient_exports, {
2848
3224
  default: () => InputControlClient_default
2849
3225
  });
2850
- var import_react37, import_jsx_runtime46, InputControl, InputControlClient_default;
3226
+ var import_react40, import_jsx_runtime49, InputControl, InputControlClient_default;
2851
3227
  var init_InputControlClient = __esm({
2852
3228
  "src/components/controls/edit/InputControlClient.tsx"() {
2853
3229
  "use strict";
2854
3230
  "use client";
2855
- import_react37 = __toESM(require("react"));
3231
+ import_react40 = __toESM(require("react"));
2856
3232
  init_MultilineTextInput();
2857
3233
  init_LineTextInput();
2858
3234
  init_MoneyInput();
@@ -2872,8 +3248,11 @@ var init_InputControlClient = __esm({
2872
3248
  init_TimeInput();
2873
3249
  init_AssetUpload();
2874
3250
  init_SwitchInput();
2875
- import_jsx_runtime46 = require("react/jsx-runtime");
2876
- InputControl = import_react37.default.forwardRef(
3251
+ init_DateInput();
3252
+ init_RadioInput();
3253
+ init_Switcher();
3254
+ import_jsx_runtime49 = require("react/jsx-runtime");
3255
+ InputControl = import_react40.default.forwardRef(
2877
3256
  (props, ref) => {
2878
3257
  const ControlComponents = {
2879
3258
  [InputControlType_default.lineTextInput]: LineTextInput_default,
@@ -2893,10 +3272,14 @@ var init_InputControlClient = __esm({
2893
3272
  [InputControlType_default.booleanSelect]: BooleanSelect_default,
2894
3273
  [InputControlType_default.timeInput]: TimeInput_default,
2895
3274
  [InputControlType_default.asset]: AssetUpload_default,
2896
- [InputControlType_default.switchInput]: SwitchInput_default
3275
+ [InputControlType_default.assetUpload]: AssetUpload_default,
3276
+ [InputControlType_default.switchInput]: SwitchInput_default,
3277
+ [InputControlType_default.dateInput]: DateInput_default,
3278
+ [InputControlType_default.radioInput]: RadioInput_default,
3279
+ [InputControlType_default.switcher]: Switcher_default
2897
3280
  };
2898
3281
  const SelectedControlComponent = ControlComponents[props.controlType];
2899
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_react37.default.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(SelectedControlComponent, { ...props }) : "Control not found" });
3282
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_react40.default.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SelectedControlComponent, { ...props }) : "Control not found" });
2900
3283
  }
2901
3284
  );
2902
3285
  InputControl.displayName = "InputControl";
@@ -3123,29 +3506,29 @@ var LinkNodeButton_exports = {};
3123
3506
  __export(LinkNodeButton_exports, {
3124
3507
  default: () => LinkNodeButton_default
3125
3508
  });
3126
- var import_react38, import_jsx_runtime50, LinkNodeButton, LinkNodeButton_default;
3509
+ var import_react41, import_jsx_runtime53, LinkNodeButton, LinkNodeButton_default;
3127
3510
  var init_LinkNodeButton = __esm({
3128
3511
  "src/components/pageRenderingEngine/nodes/LinkNodeButton.tsx"() {
3129
3512
  "use strict";
3130
3513
  "use client";
3131
- import_react38 = require("react");
3514
+ import_react41 = require("react");
3132
3515
  init_Button();
3133
3516
  init_ServiceClient();
3134
3517
  init_ToastService();
3135
- import_jsx_runtime50 = require("react/jsx-runtime");
3518
+ import_jsx_runtime53 = require("react/jsx-runtime");
3136
3519
  LinkNodeButton = (props) => {
3137
3520
  const { node, dataitem, children, linkText, linkType, linkUrl } = props;
3138
- const [isLoading, setIsLoading] = (0, import_react38.useState)(false);
3139
- const [successMessage, setSuccessMessage] = (0, import_react38.useState)(null);
3521
+ const [isLoading, setIsLoading] = (0, import_react41.useState)(false);
3522
+ const [successMessage, setSuccessMessage] = (0, import_react41.useState)(null);
3140
3523
  console.log("LinkNodeButton props:", props);
3141
- const extractFieldNames = (0, import_react38.useCallback)((template) => {
3524
+ const extractFieldNames = (0, import_react41.useCallback)((template) => {
3142
3525
  if (!template) return [];
3143
3526
  const regex = /\{(\{\})?([a-zA-Z_$][a-zA-Z0-9_$]*)(?:\}\})?\}/g;
3144
3527
  const matches = Array.from(template.matchAll(regex));
3145
3528
  const fieldNames = matches.map((match) => match[2] || match[1]).filter((name, index, self) => self.indexOf(name) === index);
3146
3529
  return fieldNames;
3147
3530
  }, []);
3148
- const replaceTemplateVariables = (0, import_react38.useCallback)(
3531
+ const replaceTemplateVariables = (0, import_react41.useCallback)(
3149
3532
  (template, responseData) => {
3150
3533
  if (!template) return template;
3151
3534
  let result = template;
@@ -3177,7 +3560,7 @@ var init_LinkNodeButton = __esm({
3177
3560
  },
3178
3561
  [props.routeParameters, dataitem, extractFieldNames]
3179
3562
  );
3180
- const getNestedValue7 = (0, import_react38.useCallback)((obj, path) => {
3563
+ const getNestedValue7 = (0, import_react41.useCallback)((obj, path) => {
3181
3564
  if (!obj || !path) return void 0;
3182
3565
  if (obj[path] !== void 0) {
3183
3566
  return obj[path];
@@ -3192,7 +3575,7 @@ var init_LinkNodeButton = __esm({
3192
3575
  }
3193
3576
  return current;
3194
3577
  }, []);
3195
- const onClick = (0, import_react38.useCallback)(async () => {
3578
+ const onClick = (0, import_react41.useCallback)(async () => {
3196
3579
  if (!node.postUrl) {
3197
3580
  return {
3198
3581
  isSuccessful: false,
@@ -3299,32 +3682,32 @@ var init_LinkNodeButton = __esm({
3299
3682
  return children;
3300
3683
  }
3301
3684
  if (linkText) {
3302
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { children: linkText });
3685
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { children: linkText });
3303
3686
  }
3304
3687
  return node.title || "Button";
3305
3688
  };
3306
3689
  const fontSize = node.children?.[0]?.style?.match(/font-size:\s*([^;]+)/)?.[1];
3307
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "link-button-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
3690
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "link-button-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
3308
3691
  Button_default,
3309
3692
  {
3310
3693
  ButtonType: linkType,
3311
3694
  onClick,
3312
3695
  disabled: isLoading || !!successMessage,
3313
3696
  className: "w-full",
3314
- children: successMessage ? /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
3697
+ children: successMessage ? /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
3315
3698
  "span",
3316
3699
  {
3317
3700
  style: fontSize ? { fontSize } : void 0,
3318
3701
  className: "inline-flex items-center gap-2",
3319
3702
  children: [
3320
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
3703
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
3321
3704
  "svg",
3322
3705
  {
3323
3706
  xmlns: "http://www.w3.org/2000/svg",
3324
3707
  viewBox: "0 0 20 20",
3325
3708
  fill: "currentColor",
3326
3709
  className: "w-5 h-5",
3327
- children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
3710
+ children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
3328
3711
  "path",
3329
3712
  {
3330
3713
  fillRule: "evenodd",
@@ -3334,7 +3717,7 @@ var init_LinkNodeButton = __esm({
3334
3717
  )
3335
3718
  }
3336
3719
  ),
3337
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { children: successMessage })
3720
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { children: successMessage })
3338
3721
  ]
3339
3722
  }
3340
3723
  ) : renderButtonContent()
@@ -3351,9 +3734,9 @@ __export(CopyButton_exports, {
3351
3734
  default: () => CopyButton
3352
3735
  });
3353
3736
  function CopyButton({ text }) {
3354
- const [copied, setCopied] = (0, import_react45.useState)(false);
3355
- const timeoutRef = (0, import_react45.useRef)(null);
3356
- (0, import_react45.useEffect)(() => {
3737
+ const [copied, setCopied] = (0, import_react48.useState)(false);
3738
+ const timeoutRef = (0, import_react48.useRef)(null);
3739
+ (0, import_react48.useEffect)(() => {
3357
3740
  return () => {
3358
3741
  if (timeoutRef.current) clearTimeout(timeoutRef.current);
3359
3742
  };
@@ -3368,13 +3751,13 @@ function CopyButton({ text }) {
3368
3751
  console.error("Failed to copy: ", err);
3369
3752
  }
3370
3753
  };
3371
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
3754
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
3372
3755
  "button",
3373
3756
  {
3374
3757
  onClick: handleCopy,
3375
3758
  className: "flex gap-1 items-center hover:text-white transition",
3376
3759
  children: [
3377
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
3760
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
3378
3761
  "svg",
3379
3762
  {
3380
3763
  width: "16",
@@ -3382,7 +3765,7 @@ function CopyButton({ text }) {
3382
3765
  viewBox: "0 0 24 24",
3383
3766
  className: "w-4 h-4",
3384
3767
  fill: "currentColor",
3385
- children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
3768
+ children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
3386
3769
  "path",
3387
3770
  {
3388
3771
  fillRule: "evenodd",
@@ -3397,54 +3780,54 @@ function CopyButton({ text }) {
3397
3780
  }
3398
3781
  );
3399
3782
  }
3400
- var import_react45, import_jsx_runtime60;
3783
+ var import_react48, import_jsx_runtime63;
3401
3784
  var init_CopyButton = __esm({
3402
3785
  "src/components/CopyButton.tsx"() {
3403
3786
  "use strict";
3404
3787
  "use client";
3405
- import_react45 = require("react");
3406
- import_jsx_runtime60 = require("react/jsx-runtime");
3788
+ import_react48 = require("react");
3789
+ import_jsx_runtime63 = require("react/jsx-runtime");
3407
3790
  }
3408
3791
  });
3409
3792
 
3410
3793
  // src/components/IFrameLoaderView.tsx
3411
- var import_react48, import_jsx_runtime64, IFrameLoaderView, IFrameLoaderView_default;
3794
+ var import_react51, import_jsx_runtime67, IFrameLoaderView, IFrameLoaderView_default;
3412
3795
  var init_IFrameLoaderView = __esm({
3413
3796
  "src/components/IFrameLoaderView.tsx"() {
3414
3797
  "use strict";
3415
- import_react48 = __toESM(require("react"));
3416
- import_jsx_runtime64 = require("react/jsx-runtime");
3798
+ import_react51 = __toESM(require("react"));
3799
+ import_jsx_runtime67 = require("react/jsx-runtime");
3417
3800
  IFrameLoaderView = (props) => {
3418
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_react48.default.Fragment, { children: [
3419
- 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: [
3420
- /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "flex items-center mb-4", children: [
3421
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
3422
- /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "ml-2", children: [
3423
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
3424
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
3801
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(import_react51.default.Fragment, { children: [
3802
+ props.isDataFound == null && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "mt-4 bg-gray-200 rounded-md p-4 animate-pulse", children: [
3803
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex items-center mb-4", children: [
3804
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
3805
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "ml-2", children: [
3806
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
3807
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
3425
3808
  ] })
3426
3809
  ] }),
3427
- /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
3428
- /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "animate-pulse", children: [
3429
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
3430
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
3431
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
3432
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
3433
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
3810
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
3811
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "animate-pulse", children: [
3812
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
3813
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
3814
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
3815
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
3816
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
3434
3817
  ] }),
3435
- /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "animate-pulse", children: [
3436
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
3437
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
3438
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
3439
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
3440
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
3818
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "animate-pulse", children: [
3819
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
3820
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
3821
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
3822
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
3823
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
3441
3824
  ] }),
3442
- /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "animate-pulse", children: [
3443
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
3444
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
3445
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
3446
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
3447
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
3825
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "animate-pulse", children: [
3826
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
3827
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
3828
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
3829
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
3830
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
3448
3831
  ] })
3449
3832
  ] })
3450
3833
  ] }) }),
@@ -3460,19 +3843,19 @@ var IframeClient_exports = {};
3460
3843
  __export(IframeClient_exports, {
3461
3844
  default: () => IframeClient_default
3462
3845
  });
3463
- var import_react49, import_jsx_runtime65, IframeClient, IframeClient_default;
3846
+ var import_react52, import_jsx_runtime68, IframeClient, IframeClient_default;
3464
3847
  var init_IframeClient = __esm({
3465
3848
  "src/components/pageRenderingEngine/nodes/IframeClient.tsx"() {
3466
3849
  "use strict";
3467
3850
  "use client";
3468
- import_react49 = __toESM(require("react"));
3851
+ import_react52 = __toESM(require("react"));
3469
3852
  init_IFrameLoaderView();
3470
- import_jsx_runtime65 = require("react/jsx-runtime");
3853
+ import_jsx_runtime68 = require("react/jsx-runtime");
3471
3854
  IframeClient = ({ src }) => {
3472
- const iframeRef = (0, import_react49.useRef)(null);
3473
- const [iframeHeight, setIframeHeight] = (0, import_react49.useState)("100%");
3474
- const [isDataFound, setIsDataFound] = (0, import_react49.useState)(null);
3475
- (0, import_react49.useEffect)(() => {
3855
+ const iframeRef = (0, import_react52.useRef)(null);
3856
+ const [iframeHeight, setIframeHeight] = (0, import_react52.useState)("100%");
3857
+ const [isDataFound, setIsDataFound] = (0, import_react52.useState)(null);
3858
+ (0, import_react52.useEffect)(() => {
3476
3859
  const handleReceiveMessage = (event) => {
3477
3860
  const eventName = event?.data?.eventName;
3478
3861
  const payload = event?.data?.payload;
@@ -3487,7 +3870,7 @@ var init_IframeClient = __esm({
3487
3870
  window.addEventListener("message", handleReceiveMessage);
3488
3871
  return () => window.removeEventListener("message", handleReceiveMessage);
3489
3872
  }, []);
3490
- (0, import_react49.useEffect)(() => {
3873
+ (0, import_react52.useEffect)(() => {
3491
3874
  const handleResize = () => {
3492
3875
  if (iframeRef.current) {
3493
3876
  iframeRef.current.contentWindow?.postMessage({ eventName: "RESIZE" }, "*");
@@ -3499,7 +3882,7 @@ var init_IframeClient = __esm({
3499
3882
  const handleIframeLoad = () => {
3500
3883
  setIsDataFound(true);
3501
3884
  };
3502
- 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)(
3885
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_react52.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(IFrameLoaderView_default, { isDataFound, children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
3503
3886
  "iframe",
3504
3887
  {
3505
3888
  ref: iframeRef,
@@ -3719,21 +4102,21 @@ var Pagination_exports = {};
3719
4102
  __export(Pagination_exports, {
3720
4103
  default: () => Pagination_default
3721
4104
  });
3722
- var import_react50, import_jsx_runtime70, Pagination, Pagination_default;
4105
+ var import_react53, import_jsx_runtime73, Pagination, Pagination_default;
3723
4106
  var init_Pagination = __esm({
3724
4107
  "src/components/Pagination.tsx"() {
3725
4108
  "use strict";
3726
4109
  "use client";
3727
- import_react50 = require("react");
4110
+ import_react53 = require("react");
3728
4111
  init_OdataBuilder();
3729
4112
  init_Icon();
3730
4113
  init_StyleTypes();
3731
4114
  init_InputControlType();
3732
4115
  init_Hyperlink();
3733
- import_jsx_runtime70 = require("react/jsx-runtime");
4116
+ import_jsx_runtime73 = require("react/jsx-runtime");
3734
4117
  Pagination = (props) => {
3735
4118
  const { dataset, path, query, showPageSizeSelector = false, showJumpToPage = false } = props;
3736
- const builder = (0, import_react50.useMemo)(() => {
4119
+ const builder = (0, import_react53.useMemo)(() => {
3737
4120
  const b = new OdataBuilder(path);
3738
4121
  if (query) b.setQuery(query);
3739
4122
  return b;
@@ -3774,7 +4157,7 @@ var init_Pagination = __esm({
3774
4157
  return range;
3775
4158
  };
3776
4159
  const paginationRange = getPaginationRange();
3777
- const PageButton = ({ page, children }) => /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
4160
+ const PageButton = ({ page, children }) => /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
3778
4161
  Hyperlink,
3779
4162
  {
3780
4163
  linkType: "Link" /* Link */,
@@ -3789,9 +4172,9 @@ var init_Pagination = __esm({
3789
4172
  );
3790
4173
  const NavigationButton = ({ page, disabled, children }) => {
3791
4174
  if (disabled) {
3792
- 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 });
4175
+ return /* @__PURE__ */ (0, import_jsx_runtime73.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 });
3793
4176
  }
3794
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
4177
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
3795
4178
  Hyperlink,
3796
4179
  {
3797
4180
  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",
@@ -3801,35 +4184,35 @@ var init_Pagination = __esm({
3801
4184
  );
3802
4185
  };
3803
4186
  if (totalPages <= 1 && totalItems === 0) return null;
3804
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "py-6 border-t bg-default", children: [
3805
- /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "flex flex-col sm:flex-row items-center justify-between gap-4", children: [
3806
- /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "text-sm", children: [
4187
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "py-6 border-t bg-default", children: [
4188
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "flex flex-col sm:flex-row items-center justify-between gap-4", children: [
4189
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "text-sm", children: [
3807
4190
  "Showing ",
3808
- /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("span", { className: "font-semibold", children: [
4191
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("span", { className: "font-semibold", children: [
3809
4192
  startItem,
3810
4193
  "-",
3811
4194
  endItem
3812
4195
  ] }),
3813
4196
  " ",
3814
4197
  "out of ",
3815
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("span", { className: "font-semibold", children: totalItems.toLocaleString() }),
4198
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { className: "font-semibold", children: totalItems.toLocaleString() }),
3816
4199
  " results"
3817
4200
  ] }),
3818
- totalPages > 1 && /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "flex items-center space-x-1", children: [
3819
- /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(
4201
+ totalPages > 1 && /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "flex items-center space-x-1", children: [
4202
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
3820
4203
  NavigationButton,
3821
4204
  {
3822
4205
  page: activePageNumber - 1,
3823
4206
  disabled: activePageNumber === 1,
3824
4207
  children: [
3825
- /* @__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" }) }),
3826
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("span", { className: "text-sm", children: "Prev" })
4208
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Icon_default, { name: "chevronLeft", className: "w-4 h-4 mr-1" }) }),
4209
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { className: "text-sm", children: "Prev" })
3827
4210
  ]
3828
4211
  }
3829
4212
  ),
3830
4213
  paginationRange.map((item, index) => {
3831
4214
  if (item === "...") {
3832
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
4215
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
3833
4216
  "span",
3834
4217
  {
3835
4218
  className: "min-w-[20px] md:min-w-[40px] h-10 flex items-center justify-center text-gray-500",
@@ -3839,23 +4222,23 @@ var init_Pagination = __esm({
3839
4222
  );
3840
4223
  }
3841
4224
  const page = item;
3842
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(PageButton, { page, children: page }, page);
4225
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(PageButton, { page, children: page }, page);
3843
4226
  }),
3844
- /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(
4227
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
3845
4228
  NavigationButton,
3846
4229
  {
3847
4230
  page: activePageNumber + 1,
3848
4231
  disabled: activePageNumber === totalPages,
3849
4232
  children: [
3850
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("span", { className: "text-sm", children: "Next" }),
3851
- /* @__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" }) })
4233
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { className: "text-sm", children: "Next" }),
4234
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Icon_default, { name: "chevronRight", className: "w-4 h-4 ml-1" }) })
3852
4235
  ]
3853
4236
  }
3854
4237
  )
3855
4238
  ] }),
3856
- showJumpToPage && totalPages > 5 && /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "flex items-center space-x-2", children: [
3857
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("span", { className: "text-sm", children: "Go to:" }),
3858
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
4239
+ showJumpToPage && totalPages > 5 && /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "flex items-center space-x-2", children: [
4240
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { className: "text-sm", children: "Go to:" }),
4241
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
3859
4242
  "input",
3860
4243
  {
3861
4244
  type: "number",
@@ -3876,9 +4259,9 @@ var init_Pagination = __esm({
3876
4259
  ) })
3877
4260
  ] })
3878
4261
  ] }),
3879
- 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: [
3880
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("span", { className: "text-sm", children: "Show:" }),
3881
- /* @__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)(
4262
+ showPageSizeSelector && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "mt-4 pt-4 border-t bg-default", children: /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "flex items-center justify-center space-x-2", children: [
4263
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { className: "text-sm", children: "Show:" }),
4264
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "flex space-x-1", children: [10, 25, 50, 100].map((size) => /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
3882
4265
  Hyperlink,
3883
4266
  {
3884
4267
  className: `
@@ -3890,7 +4273,7 @@ var init_Pagination = __esm({
3890
4273
  },
3891
4274
  size
3892
4275
  )) }),
3893
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("span", { className: "text-sm", children: "per page" })
4276
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { className: "text-sm", children: "per page" })
3894
4277
  ] }) })
3895
4278
  ] });
3896
4279
  };
@@ -3903,13 +4286,13 @@ var Slider_exports = {};
3903
4286
  __export(Slider_exports, {
3904
4287
  default: () => Slider_default
3905
4288
  });
3906
- var import_react51, import_jsx_runtime71, Slider, ArrowButton, ProgressPill, Slider_default;
4289
+ var import_react54, import_jsx_runtime74, Slider, ArrowButton, ProgressPill, Slider_default;
3907
4290
  var init_Slider = __esm({
3908
4291
  "src/components/Slider.tsx"() {
3909
4292
  "use strict";
3910
4293
  "use client";
3911
- import_react51 = __toESM(require("react"));
3912
- import_jsx_runtime71 = require("react/jsx-runtime");
4294
+ import_react54 = __toESM(require("react"));
4295
+ import_jsx_runtime74 = require("react/jsx-runtime");
3913
4296
  Slider = ({
3914
4297
  children,
3915
4298
  slidesToShow = 4,
@@ -3927,13 +4310,13 @@ var init_Slider = __esm({
3927
4310
  pillStyle = "cumulative",
3928
4311
  progressPosition = "bottom"
3929
4312
  }) => {
3930
- const [currentSlide, setCurrentSlide] = (0, import_react51.useState)(0);
3931
- const [transition, setTransition] = (0, import_react51.useState)(true);
3932
- const [slidesToShowState, setSlidesToShowState] = (0, import_react51.useState)(
4313
+ const [currentSlide, setCurrentSlide] = (0, import_react54.useState)(0);
4314
+ const [transition, setTransition] = (0, import_react54.useState)(true);
4315
+ const [slidesToShowState, setSlidesToShowState] = (0, import_react54.useState)(
3933
4316
  typeof slidesToShow === "number" ? slidesToShow : slidesToShow.large
3934
4317
  );
3935
- const [isPlaying, setIsPlaying] = (0, import_react51.useState)(autoplay);
3936
- (0, import_react51.useEffect)(() => {
4318
+ const [isPlaying, setIsPlaying] = (0, import_react54.useState)(autoplay);
4319
+ (0, import_react54.useEffect)(() => {
3937
4320
  if (typeof slidesToShow === "number") return;
3938
4321
  const handleResize = () => {
3939
4322
  if (window.innerWidth >= 1024) {
@@ -3948,7 +4331,7 @@ var init_Slider = __esm({
3948
4331
  window.addEventListener("resize", handleResize);
3949
4332
  return () => window.removeEventListener("resize", handleResize);
3950
4333
  }, [slidesToShow]);
3951
- (0, import_react51.useEffect)(() => {
4334
+ (0, import_react54.useEffect)(() => {
3952
4335
  if (!autoplay) return;
3953
4336
  const timer = setInterval(() => {
3954
4337
  if (isPlaying) {
@@ -3957,7 +4340,7 @@ var init_Slider = __esm({
3957
4340
  }, autoplay_speed);
3958
4341
  return () => clearInterval(timer);
3959
4342
  }, [autoplay, autoplay_speed, currentSlide, isPlaying]);
3960
- const totalSlides = import_react51.Children.count(children);
4343
+ const totalSlides = import_react54.Children.count(children);
3961
4344
  const maxSlide = totalSlides - slidesToShowState;
3962
4345
  const nextSlide = () => {
3963
4346
  if (currentSlide >= maxSlide) {
@@ -4002,16 +4385,16 @@ var init_Slider = __esm({
4002
4385
  }
4003
4386
  };
4004
4387
  const translateX = -currentSlide * (100 / slidesToShowState);
4005
- const slides = import_react51.Children.map(children, (child, index) => {
4006
- if (!import_react51.default.isValidElement(child)) return null;
4388
+ const slides = import_react54.Children.map(children, (child, index) => {
4389
+ if (!import_react54.default.isValidElement(child)) return null;
4007
4390
  const childProps = child.props;
4008
4391
  const mergedClassName = `${childProps.className ?? ""} w-full`.trim();
4009
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
4392
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
4010
4393
  "div",
4011
4394
  {
4012
4395
  className: `flex-none ${scaleOnHover ? "group hover:z-50" : ""} relative`,
4013
4396
  style: { width: `calc(${100 / slidesToShowState}%)`, paddingRight: gap },
4014
- children: (0, import_react51.cloneElement)(child, {
4397
+ children: (0, import_react54.cloneElement)(child, {
4015
4398
  className: mergedClassName
4016
4399
  })
4017
4400
  },
@@ -4029,14 +4412,14 @@ var init_Slider = __esm({
4029
4412
  return "bottom-4";
4030
4413
  }
4031
4414
  };
4032
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
4415
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
4033
4416
  "div",
4034
4417
  {
4035
4418
  className: `relative w-full overflow-hidden ${className}`,
4036
4419
  onMouseEnter: handleMouseEnter,
4037
4420
  onMouseLeave: handleMouseLeave,
4038
4421
  children: [
4039
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
4422
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
4040
4423
  "div",
4041
4424
  {
4042
4425
  className: "flex h-full",
@@ -4047,18 +4430,18 @@ var init_Slider = __esm({
4047
4430
  children: slides
4048
4431
  }
4049
4432
  ),
4050
- show_arrows && /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(import_jsx_runtime71.Fragment, { children: [
4051
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
4433
+ show_arrows && /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(import_jsx_runtime74.Fragment, { children: [
4434
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
4052
4435
  ArrowButton,
4053
4436
  {
4054
4437
  direction: "left",
4055
4438
  onClick: prevSlide,
4056
4439
  visible: infinite_scroll || currentSlide > 0,
4057
4440
  className: arrowClassName,
4058
- 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" }) })
4441
+ children: /* @__PURE__ */ (0, import_jsx_runtime74.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_runtime74.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M15.75 19.5 8.25 12l7.5-7.5" }) })
4059
4442
  }
4060
4443
  ),
4061
- /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
4444
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
4062
4445
  ArrowButton,
4063
4446
  {
4064
4447
  direction: "right",
@@ -4066,13 +4449,13 @@ var init_Slider = __esm({
4066
4449
  visible: infinite_scroll || currentSlide < maxSlide,
4067
4450
  className: arrowClassName,
4068
4451
  children: [
4069
- /* @__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" }) }),
4452
+ /* @__PURE__ */ (0, import_jsx_runtime74.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_runtime74.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "m8.25 4.5 7.5 7.5-7.5 7.5" }) }),
4070
4453
  " "
4071
4454
  ]
4072
4455
  }
4073
4456
  )
4074
4457
  ] }),
4075
- 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)(
4458
+ show_dots && /* @__PURE__ */ (0, import_jsx_runtime74.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_runtime74.jsx)(
4076
4459
  ProgressPill,
4077
4460
  {
4078
4461
  active: index === currentSlide,
@@ -4098,7 +4481,7 @@ var init_Slider = __esm({
4098
4481
  visible,
4099
4482
  children,
4100
4483
  className = ""
4101
- }) => /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
4484
+ }) => /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
4102
4485
  "button",
4103
4486
  {
4104
4487
  className: `
@@ -4124,13 +4507,13 @@ var init_Slider = __esm({
4124
4507
  currentSlide,
4125
4508
  totalSlides
4126
4509
  }) => {
4127
- const [progress, setProgress] = (0, import_react51.useState)(0);
4128
- (0, import_react51.useEffect)(() => {
4510
+ const [progress, setProgress] = (0, import_react54.useState)(0);
4511
+ (0, import_react54.useEffect)(() => {
4129
4512
  if (active) {
4130
4513
  setProgress(0);
4131
4514
  }
4132
4515
  }, [active, index]);
4133
- (0, import_react51.useEffect)(() => {
4516
+ (0, import_react54.useEffect)(() => {
4134
4517
  if (!active || !isPlaying) {
4135
4518
  if (!active) {
4136
4519
  setProgress(0);
@@ -4185,7 +4568,7 @@ var init_Slider = __esm({
4185
4568
  const renderProgressBar = () => {
4186
4569
  if (style === "modern" && isActive || style === "cumulative" && shouldShowProgress) {
4187
4570
  const displayProgress = style === "cumulative" && isFilled ? 100 : progress;
4188
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
4571
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
4189
4572
  "div",
4190
4573
  {
4191
4574
  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`,
@@ -4197,7 +4580,7 @@ var init_Slider = __esm({
4197
4580
  };
4198
4581
  const renderCumulativeFill = () => {
4199
4582
  if (style === "cumulative" && isFilled && !isActive) {
4200
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
4583
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
4201
4584
  "div",
4202
4585
  {
4203
4586
  className: `absolute top-0 left-0 h-full rounded-full ${activeClassName || "bg-white"} transition-all duration-300`,
@@ -4207,7 +4590,7 @@ var init_Slider = __esm({
4207
4590
  }
4208
4591
  return null;
4209
4592
  };
4210
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
4593
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
4211
4594
  "button",
4212
4595
  {
4213
4596
  className: `${baseClasses} ${getStyleClasses()}`,
@@ -4235,6 +4618,7 @@ __export(index_exports, {
4235
4618
  DataFormRenderer: () => DataFormRenderer_default,
4236
4619
  DataList: () => DataList_default,
4237
4620
  DataListRenderer: () => DataListRenderer_default,
4621
+ DateInput: () => DateInput_default,
4238
4622
  DateTimeInput: () => DateTimeInput_default,
4239
4623
  EmailInput: () => EmailInput_default,
4240
4624
  EnterAnimationHydrator: () => EnterAnimationHydrator,
@@ -4249,6 +4633,8 @@ __export(index_exports, {
4249
4633
  PageBodyRenderer: () => PageBodyRenderer_default,
4250
4634
  PercentageInput: () => PercentageInput_default,
4251
4635
  PhoneInput: () => PhoneInput_default,
4636
+ RadioInput: () => RadioInput_default,
4637
+ Switcher: () => Switcher_default,
4252
4638
  TimeInput: () => TimeInput_default,
4253
4639
  Toast: () => Toast_default,
4254
4640
  ToastService: () => ToastService_default,
@@ -4640,13 +5026,13 @@ var InputControl_default = InputControl2;
4640
5026
  init_InputControlType();
4641
5027
 
4642
5028
  // src/components/pageRenderingEngine/PageBodyRenderer.tsx
4643
- var import_react53 = __toESM(require("react"));
5029
+ var import_react56 = __toESM(require("react"));
4644
5030
 
4645
5031
  // src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
4646
- var import_react40 = __toESM(require("react"));
5032
+ var import_react43 = __toESM(require("react"));
4647
5033
 
4648
5034
  // src/components/pageRenderingEngine/nodes/TextNode.tsx
4649
- var import_jsx_runtime47 = require("react/jsx-runtime");
5035
+ var import_jsx_runtime50 = require("react/jsx-runtime");
4650
5036
  var TextNode = (props) => {
4651
5037
  function cssStringToJson(cssString) {
4652
5038
  const styleObject = {};
@@ -4701,36 +5087,36 @@ var TextNode = (props) => {
4701
5087
  });
4702
5088
  }
4703
5089
  function renderWithLineBreaks(text) {
4704
- return text.split("\n").map((line, index, arr) => /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("span", { children: [
5090
+ return text.split("\n").map((line, index, arr) => /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("span", { children: [
4705
5091
  line,
4706
- index < arr.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("br", {})
5092
+ index < arr.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("br", {})
4707
5093
  ] }, index));
4708
5094
  }
4709
5095
  const displayText = props.linkText ? props.linkText : props.node.text;
4710
5096
  const finalText = props.dataitem && props.linkText ? displayText : props.dataitem ? replacePlaceholders(props.node.text, props.dataitem) : props.node.text;
4711
5097
  const content = typeof finalText === "string" ? renderWithLineBreaks(finalText) : finalText;
4712
- 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;
5098
+ const formattedContent = props.node.format & 64 ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("sup", { children: content }) : props.node.format & 32 ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("sub", { children: content }) : content;
4713
5099
  return (
4714
5100
  // @ts-expect-error custom code
4715
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { style: { ...styles }, className: getFormatClass(props.node.format), children: formattedContent })
5101
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { style: { ...styles }, className: getFormatClass(props.node.format), children: formattedContent })
4716
5102
  );
4717
5103
  };
4718
5104
  var TextNode_default = TextNode;
4719
5105
 
4720
5106
  // src/components/pageRenderingEngine/nodes/LineBreakNode.tsx
4721
- var import_jsx_runtime48 = require("react/jsx-runtime");
5107
+ var import_jsx_runtime51 = require("react/jsx-runtime");
4722
5108
  var LineBreakNode = () => {
4723
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "py-0.5 lg:py-1.5" });
5109
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "py-0.5 lg:py-1.5" });
4724
5110
  };
4725
5111
  var LineBreakNode_default = LineBreakNode;
4726
5112
 
4727
5113
  // src/components/pageRenderingEngine/nodes/LinkNode.tsx
4728
- var import_react39 = __toESM(require("react"));
5114
+ var import_react42 = __toESM(require("react"));
4729
5115
 
4730
5116
  // src/components/pageRenderingEngine/nodes/ImageNode.tsx
4731
5117
  init_AssetUtility();
4732
5118
  var import_dynamic5 = __toESM(require("next/dynamic"));
4733
- var import_jsx_runtime49 = require("react/jsx-runtime");
5119
+ var import_jsx_runtime52 = require("react/jsx-runtime");
4734
5120
  var HlsPlayer3 = (0, import_dynamic5.default)(() => Promise.resolve().then(() => (init_HlsPlayer(), HlsPlayer_exports)), { ssr: false });
4735
5121
  var getNestedValue = (obj, path) => {
4736
5122
  if (!obj || !path) return void 0;
@@ -4763,7 +5149,7 @@ var ImageNode = (props) => {
4763
5149
  assets = [image];
4764
5150
  }
4765
5151
  if (assets && assets.length > 0) {
4766
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
5152
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
4767
5153
  DeviceAssetSelector_default,
4768
5154
  {
4769
5155
  device: props.device,
@@ -4804,7 +5190,7 @@ var ImageNode = (props) => {
4804
5190
  right: "justify-end"
4805
5191
  };
4806
5192
  const isHls = imageUrl.endsWith(".m3u8");
4807
- const renderMedia = () => isHls ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
5193
+ const renderMedia = () => isHls ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
4808
5194
  HlsPlayer3,
4809
5195
  {
4810
5196
  assetUrl: imageUrl,
@@ -4817,7 +5203,7 @@ var ImageNode = (props) => {
4817
5203
  apiBaseUrl: props.apiBaseUrl,
4818
5204
  session: props.session
4819
5205
  }
4820
- ) : /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
5206
+ ) : /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
4821
5207
  "img",
4822
5208
  {
4823
5209
  style: styles,
@@ -4830,7 +5216,7 @@ var ImageNode = (props) => {
4830
5216
  }
4831
5217
  );
4832
5218
  if (props.node.width) {
4833
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: `flex ${FORMAT_CLASSES2[props.node.format] ?? ""}`, children: renderMedia() });
5219
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: `flex ${FORMAT_CLASSES2[props.node.format] ?? ""}`, children: renderMedia() });
4834
5220
  }
4835
5221
  return renderMedia();
4836
5222
  };
@@ -4840,7 +5226,7 @@ var ImageNode_default = ImageNode;
4840
5226
  init_StyleTypes();
4841
5227
  init_Hyperlink();
4842
5228
  var import_dynamic6 = __toESM(require("next/dynamic"));
4843
- var import_jsx_runtime51 = require("react/jsx-runtime");
5229
+ var import_jsx_runtime54 = require("react/jsx-runtime");
4844
5230
  var LinkNodeButton2 = (0, import_dynamic6.default)(() => Promise.resolve().then(() => (init_LinkNodeButton(), LinkNodeButton_exports)), {
4845
5231
  ssr: false
4846
5232
  });
@@ -4893,13 +5279,13 @@ var LinkNode = (props) => {
4893
5279
  const isButton = node.isButton === true;
4894
5280
  const renderChildren = () => {
4895
5281
  if (!node.children || node.children.length === 0) return null;
4896
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_jsx_runtime51.Fragment, { children: node.children.map((childNode, index) => {
5282
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_jsx_runtime54.Fragment, { children: node.children.map((childNode, index) => {
4897
5283
  const SelectedNode = NodeTypes2[childNode.type];
4898
5284
  if (!SelectedNode) {
4899
5285
  console.warn("Unknown node type:", childNode.type);
4900
5286
  return null;
4901
5287
  }
4902
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_react39.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
5288
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_react42.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
4903
5289
  SelectedNode,
4904
5290
  {
4905
5291
  node: childNode,
@@ -4912,15 +5298,15 @@ var LinkNode = (props) => {
4912
5298
  };
4913
5299
  const renderFallback = () => {
4914
5300
  if ((!node.children || node.children.length === 0) && linkText) {
4915
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { children: linkText });
5301
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { children: linkText });
4916
5302
  }
4917
5303
  if ((!node.children || node.children.length === 0) && !linkText) {
4918
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("br", {});
5304
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("br", {});
4919
5305
  }
4920
5306
  return null;
4921
5307
  };
4922
5308
  if (isButton) {
4923
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
5309
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
4924
5310
  LinkNodeButton2,
4925
5311
  {
4926
5312
  node,
@@ -4938,7 +5324,7 @@ var LinkNode = (props) => {
4938
5324
  }
4939
5325
  );
4940
5326
  }
4941
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
5327
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
4942
5328
  Hyperlink,
4943
5329
  {
4944
5330
  href: linkUrl || "#",
@@ -4954,10 +5340,10 @@ var LinkNode = (props) => {
4954
5340
  var LinkNode_default = LinkNode;
4955
5341
 
4956
5342
  // src/components/pageRenderingEngine/nodes/SVGIconNode.tsx
4957
- var import_jsx_runtime52 = require("react/jsx-runtime");
5343
+ var import_jsx_runtime55 = require("react/jsx-runtime");
4958
5344
  var SVGIconNode = ({ node }) => {
4959
5345
  if (!node?.svgCode) return null;
4960
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
5346
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
4961
5347
  "span",
4962
5348
  {
4963
5349
  style: {
@@ -4974,7 +5360,7 @@ var SVGIconNode_default = SVGIconNode;
4974
5360
 
4975
5361
  // src/components/pageRenderingEngine/nodes/EquationNode.tsx
4976
5362
  var import_katex = __toESM(require("katex"));
4977
- var import_jsx_runtime53 = require("react/jsx-runtime");
5363
+ var import_jsx_runtime56 = require("react/jsx-runtime");
4978
5364
  var EquationNode = ({ node }) => {
4979
5365
  const { equation, inline } = node;
4980
5366
  let html = "";
@@ -4989,7 +5375,7 @@ var EquationNode = ({ node }) => {
4989
5375
  });
4990
5376
  }
4991
5377
  if (inline) {
4992
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
5378
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
4993
5379
  "span",
4994
5380
  {
4995
5381
  className: "katex-inline",
@@ -4997,7 +5383,7 @@ var EquationNode = ({ node }) => {
4997
5383
  }
4998
5384
  );
4999
5385
  }
5000
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
5386
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5001
5387
  "div",
5002
5388
  {
5003
5389
  className: "katex-block my-3 text-center",
@@ -5008,7 +5394,7 @@ var EquationNode = ({ node }) => {
5008
5394
  var EquationNode_default = EquationNode;
5009
5395
 
5010
5396
  // src/components/pageRenderingEngine/nodes/DatafieldNode.tsx
5011
- var import_jsx_runtime54 = require("react/jsx-runtime");
5397
+ var import_jsx_runtime57 = require("react/jsx-runtime");
5012
5398
  function getNestedProperty(obj, path) {
5013
5399
  if (!obj || !path) return null;
5014
5400
  if (path.includes(".")) {
@@ -5021,7 +5407,7 @@ function getNestedProperty(obj, path) {
5021
5407
  }
5022
5408
  const value = obj[path];
5023
5409
  if (Array.isArray(value)) {
5024
- return value.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { children: String(item) }, index));
5410
+ return value.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { children: String(item) }, index));
5025
5411
  }
5026
5412
  return value;
5027
5413
  }
@@ -5082,7 +5468,7 @@ var DatafieldNode = (props) => {
5082
5468
  const dataType = props.node.dataType;
5083
5469
  if (isEmptyValue) return null;
5084
5470
  if (dataType === "rawContent") {
5085
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5471
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
5086
5472
  PageBodyRenderer_default,
5087
5473
  {
5088
5474
  rawBody: String(value ?? `@databound[${fieldName}]`),
@@ -5098,12 +5484,12 @@ var DatafieldNode = (props) => {
5098
5484
  }
5099
5485
  );
5100
5486
  }
5101
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5487
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
5102
5488
  "span",
5103
5489
  {
5104
5490
  className: `datafield-node ${props.node.format < Formats.length ? Formats[props.node.format] : ""}`,
5105
5491
  style: styles,
5106
- children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5492
+ children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
5107
5493
  ViewControl_default,
5108
5494
  {
5109
5495
  controlType: dataType,
@@ -5116,7 +5502,7 @@ var DatafieldNode = (props) => {
5116
5502
  var DatafieldNode_default = DatafieldNode;
5117
5503
 
5118
5504
  // src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
5119
- var import_jsx_runtime55 = require("react/jsx-runtime");
5505
+ var import_jsx_runtime58 = require("react/jsx-runtime");
5120
5506
  var ParagraphNode = (props) => {
5121
5507
  const NodeTypes2 = {
5122
5508
  ["text"]: TextNode_default,
@@ -5136,9 +5522,9 @@ var ParagraphNode = (props) => {
5136
5522
  const isInlineOnlyParent = props.parentTag === "summary";
5137
5523
  const hasChildren = props.node.children && props.node.children.length > 0;
5138
5524
  if (isInlineOnlyParent) {
5139
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_jsx_runtime55.Fragment, { children: hasChildren && props.node.children.map((node, index) => {
5525
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_jsx_runtime58.Fragment, { children: hasChildren && props.node.children.map((node, index) => {
5140
5526
  const SelectedNode = NodeTypes2[node.type];
5141
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_react40.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
5527
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react43.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
5142
5528
  SelectedNode,
5143
5529
  {
5144
5530
  node,
@@ -5150,10 +5536,10 @@ var ParagraphNode = (props) => {
5150
5536
  ) }, index);
5151
5537
  }) });
5152
5538
  }
5153
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: " " + formatClasses, children: [
5539
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: " " + formatClasses, children: [
5154
5540
  hasChildren && props.node.children.map((node, index) => {
5155
5541
  const SelectedNode = NodeTypes2[node.type];
5156
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_react40.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
5542
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react43.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
5157
5543
  SelectedNode,
5158
5544
  {
5159
5545
  node,
@@ -5164,14 +5550,14 @@ var ParagraphNode = (props) => {
5164
5550
  }
5165
5551
  ) }, index);
5166
5552
  }),
5167
- !hasChildren && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "py-1.5 lg:py-2" })
5553
+ !hasChildren && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "py-1.5 lg:py-2" })
5168
5554
  ] });
5169
5555
  };
5170
5556
  var ParagraphNode_default = ParagraphNode;
5171
5557
 
5172
5558
  // src/components/pageRenderingEngine/nodes/HeadingNode.tsx
5173
- var import_react41 = __toESM(require("react"));
5174
- var import_jsx_runtime56 = require("react/jsx-runtime");
5559
+ var import_react44 = __toESM(require("react"));
5560
+ var import_jsx_runtime59 = require("react/jsx-runtime");
5175
5561
  var HeadingNode = (props) => {
5176
5562
  const NodeTypes2 = {
5177
5563
  ["text"]: TextNode_default,
@@ -5187,23 +5573,23 @@ var HeadingNode = (props) => {
5187
5573
  {
5188
5574
  }
5189
5575
  const formatClasses = FormatClass[props.node.format] || "";
5190
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_jsx_runtime56.Fragment, { children: import_react41.default.createElement(
5576
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_jsx_runtime59.Fragment, { children: import_react44.default.createElement(
5191
5577
  HeadingTag,
5192
5578
  { className: formatClasses },
5193
5579
  props.node.children && props.node.children.map((childNode, index) => {
5194
5580
  const SelectedNode = NodeTypes2[childNode.type];
5195
- 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);
5581
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react44.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(SelectedNode, { node: childNode, dataitem: props.dataitem, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
5196
5582
  })
5197
5583
  ) });
5198
5584
  };
5199
5585
  var HeadingNode_default = HeadingNode;
5200
5586
 
5201
5587
  // src/components/pageRenderingEngine/nodes/ListNode.tsx
5202
- var import_react43 = __toESM(require("react"));
5588
+ var import_react46 = __toESM(require("react"));
5203
5589
 
5204
5590
  // src/components/pageRenderingEngine/nodes/ListItemNode.tsx
5205
- var import_react42 = __toESM(require("react"));
5206
- var import_jsx_runtime57 = require("react/jsx-runtime");
5591
+ var import_react45 = __toESM(require("react"));
5592
+ var import_jsx_runtime60 = require("react/jsx-runtime");
5207
5593
  var ListItemNode = (props) => {
5208
5594
  const NodeTypes2 = {
5209
5595
  text: TextNode_default,
@@ -5220,66 +5606,66 @@ var ListItemNode = (props) => {
5220
5606
  liStyle.fontSize = match[1].trim();
5221
5607
  }
5222
5608
  }
5223
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("li", { style: liStyle, children: props.node.children && props.node.children.map((node, index) => {
5609
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("li", { style: liStyle, children: props.node.children && props.node.children.map((node, index) => {
5224
5610
  const SelectedNode = NodeTypes2[node.type];
5225
5611
  if (node.type === "linebreak") {
5226
5612
  if (!foundFirstBreak) {
5227
5613
  foundFirstBreak = true;
5228
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", {}, index);
5614
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", {}, index);
5229
5615
  } else {
5230
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "py-1 lg:py-2" }, index);
5616
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: "py-1 lg:py-2" }, index);
5231
5617
  }
5232
5618
  } else {
5233
5619
  foundFirstBreak = false;
5234
- 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);
5620
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react45.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
5235
5621
  }
5236
5622
  }) });
5237
5623
  };
5238
5624
  var ListItemNode_default = ListItemNode;
5239
5625
 
5240
5626
  // src/components/pageRenderingEngine/nodes/ListNode.tsx
5241
- var import_jsx_runtime58 = require("react/jsx-runtime");
5627
+ var import_jsx_runtime61 = require("react/jsx-runtime");
5242
5628
  var ListNode = (props) => {
5243
5629
  const NodeTypes2 = {
5244
5630
  listitem: ListItemNode_default
5245
5631
  };
5246
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_react43.default.Fragment, { children: [
5247
- props.node.listType == "bullet" && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("ul", { children: props.node.children && props.node.children.map((node, index) => {
5632
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_react46.default.Fragment, { children: [
5633
+ props.node.listType == "bullet" && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("ul", { children: props.node.children && props.node.children.map((node, index) => {
5248
5634
  const SelectedNode = NodeTypes2[node.type];
5249
- 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);
5635
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_react46.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
5250
5636
  }) }),
5251
- props.node.listType == "number" && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("ol", { children: props.node.children && props.node.children.map((node, index) => {
5637
+ props.node.listType == "number" && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("ol", { children: props.node.children && props.node.children.map((node, index) => {
5252
5638
  const SelectedNode = NodeTypes2[node.type];
5253
- 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);
5639
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_react46.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
5254
5640
  }) })
5255
5641
  ] });
5256
5642
  };
5257
5643
  var ListNode_default = ListNode;
5258
5644
 
5259
5645
  // src/components/pageRenderingEngine/nodes/QuoteNode.tsx
5260
- var import_react44 = __toESM(require("react"));
5261
- var import_jsx_runtime59 = require("react/jsx-runtime");
5646
+ var import_react47 = __toESM(require("react"));
5647
+ var import_jsx_runtime62 = require("react/jsx-runtime");
5262
5648
  var QuoteNode = (props) => {
5263
5649
  const NodeTypes2 = {
5264
5650
  ["text"]: TextNode_default,
5265
5651
  ["linebreak"]: LineBreakNode_default,
5266
5652
  ["link"]: LinkNode_default
5267
5653
  };
5268
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("blockquote", { children: props.node.children && props.node.children.map((node, index) => {
5654
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("blockquote", { children: props.node.children && props.node.children.map((node, index) => {
5269
5655
  const SelectedNode = NodeTypes2[node.type];
5270
- 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);
5656
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_react47.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(SelectedNode, { node, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
5271
5657
  }) });
5272
5658
  };
5273
5659
  var QuoteNode_default = QuoteNode;
5274
5660
 
5275
5661
  // src/components/pageRenderingEngine/nodes/CodeNode.tsx
5276
- var import_react46 = __toESM(require("react"));
5662
+ var import_react49 = __toESM(require("react"));
5277
5663
  var import_dynamic7 = __toESM(require("next/dynamic"));
5278
- var import_jsx_runtime61 = require("react/jsx-runtime");
5664
+ var import_jsx_runtime64 = require("react/jsx-runtime");
5279
5665
  var CopyButton2 = (0, import_dynamic7.default)(() => Promise.resolve().then(() => (init_CopyButton(), CopyButton_exports)), {
5280
5666
  ssr: false,
5281
5667
  // optional: fallback UI while loading
5282
- loading: () => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { className: "text-gray-400 text-xs", children: "Copy" })
5668
+ loading: () => /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "text-gray-400 text-xs", children: "Copy" })
5283
5669
  });
5284
5670
  var CodeNode = (props) => {
5285
5671
  const NodeTypes2 = {
@@ -5293,14 +5679,14 @@ var CodeNode = (props) => {
5293
5679
  if (node.type === "link") return node.text || node.url || "";
5294
5680
  return "";
5295
5681
  }).join("") ?? "";
5296
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { children: [
5297
- /* @__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: [
5298
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { children: "Code Snippet" }),
5299
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(CopyButton2, { text: textContent })
5682
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { children: [
5683
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "flex items-center relative bg-neutral-strong px-4 py-3 text-xs font-sans justify-between rounded-t-md ", children: [
5684
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { children: "Code Snippet" }),
5685
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(CopyButton2, { text: textContent })
5300
5686
  ] }),
5301
- /* @__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) => {
5687
+ /* @__PURE__ */ (0, import_jsx_runtime64.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) => {
5302
5688
  const SelectedNode = NodeTypes2[node.type];
5303
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_react46.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5689
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_react49.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
5304
5690
  SelectedNode,
5305
5691
  {
5306
5692
  node,
@@ -5315,15 +5701,15 @@ var CodeNode = (props) => {
5315
5701
  var CodeNode_default = CodeNode;
5316
5702
 
5317
5703
  // src/components/pageRenderingEngine/nodes/HorizontalRuleNode.tsx
5318
- var import_jsx_runtime62 = require("react/jsx-runtime");
5704
+ var import_jsx_runtime65 = require("react/jsx-runtime");
5319
5705
  var HorizontalRuleNode = () => {
5320
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("hr", {});
5706
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("hr", {});
5321
5707
  };
5322
5708
  var HorizontalRuleNode_default = HorizontalRuleNode;
5323
5709
 
5324
5710
  // src/components/pageRenderingEngine/nodes/WidgetNode.tsx
5325
- var import_react47 = __toESM(require("react"));
5326
- var import_jsx_runtime63 = require("react/jsx-runtime");
5711
+ var import_react50 = __toESM(require("react"));
5712
+ var import_jsx_runtime66 = require("react/jsx-runtime");
5327
5713
  var WidgetNode = (props) => {
5328
5714
  const getWidgetParameters = () => {
5329
5715
  const widgetInputParameters = {
@@ -5387,7 +5773,7 @@ var WidgetNode = (props) => {
5387
5773
  };
5388
5774
  const widgetCode = props.node?.widgetCode;
5389
5775
  if (!widgetCode) {
5390
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_jsx_runtime63.Fragment, { children: "Invalid widget" });
5776
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_jsx_runtime66.Fragment, { children: "Invalid widget" });
5391
5777
  }
5392
5778
  const widgetParams = getWidgetParameters();
5393
5779
  const WidgetRenderer = props.widgetRenderer;
@@ -5396,7 +5782,7 @@ var WidgetNode = (props) => {
5396
5782
  }
5397
5783
  return (
5398
5784
  // eslint-disable-next-line react-hooks/static-components
5399
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_react47.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
5785
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react50.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
5400
5786
  WidgetRenderer,
5401
5787
  {
5402
5788
  params: widgetParams,
@@ -5414,11 +5800,11 @@ var WidgetNode_default = WidgetNode;
5414
5800
 
5415
5801
  // src/components/pageRenderingEngine/nodes/DivContainer.tsx
5416
5802
  var import_dynamic10 = __toESM(require("next/dynamic"));
5417
- var import_react52 = __toESM(require("react"));
5803
+ var import_react55 = __toESM(require("react"));
5418
5804
 
5419
5805
  // src/components/pageRenderingEngine/nodes/EmbedNode.tsx
5420
5806
  var import_dynamic8 = __toESM(require("next/dynamic"));
5421
- var import_jsx_runtime66 = require("react/jsx-runtime");
5807
+ var import_jsx_runtime69 = require("react/jsx-runtime");
5422
5808
  var IframeClient2 = (0, import_dynamic8.default)(() => Promise.resolve().then(() => (init_IframeClient(), IframeClient_exports)), {
5423
5809
  ssr: false
5424
5810
  });
@@ -5431,7 +5817,7 @@ var EmbedNode = (props) => {
5431
5817
  } else {
5432
5818
  src = props.node.embedSrc;
5433
5819
  }
5434
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "aspect-video", children: src && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(IframeClient2, { src }) });
5820
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "aspect-video", children: src && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(IframeClient2, { src }) });
5435
5821
  };
5436
5822
  var EmbedNode_default = EmbedNode;
5437
5823
 
@@ -5631,10 +6017,10 @@ var PathUtility = class {
5631
6017
  var PathUtility_default = new PathUtility();
5632
6018
 
5633
6019
  // src/components/NoDataFound.tsx
5634
- var import_jsx_runtime67 = require("react/jsx-runtime");
6020
+ var import_jsx_runtime70 = require("react/jsx-runtime");
5635
6021
  var NoDataFound = () => {
5636
- 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: [
5637
- /* @__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)(
6022
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center bg-neutral-weak", children: [
6023
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "mb-5", children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "mx-auto w-20 h-20 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
5638
6024
  "svg",
5639
6025
  {
5640
6026
  className: "w-10 h-10",
@@ -5642,7 +6028,7 @@ var NoDataFound = () => {
5642
6028
  stroke: "currentColor",
5643
6029
  viewBox: "0 0 24 24",
5644
6030
  xmlns: "http://www.w3.org/2000/svg",
5645
- children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6031
+ children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
5646
6032
  "path",
5647
6033
  {
5648
6034
  strokeLinecap: "round",
@@ -5653,8 +6039,8 @@ var NoDataFound = () => {
5653
6039
  )
5654
6040
  }
5655
6041
  ) }) }),
5656
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("h3", { className: "text-lg font-medium mb-2", children: "No data available" }),
5657
- /* @__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." })
6042
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("h3", { className: "text-lg font-medium mb-2", children: "No data available" }),
6043
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("p", { className: " max-w-sm mb-0", children: "No records found. Data may be empty or not available at the moment." })
5658
6044
  ] });
5659
6045
  };
5660
6046
  var NoDataFound_default = NoDataFound;
@@ -5662,7 +6048,7 @@ var NoDataFound_default = NoDataFound;
5662
6048
  // src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
5663
6049
  init_AssetUtility();
5664
6050
  var import_dynamic9 = __toESM(require("next/dynamic"));
5665
- var import_jsx_runtime68 = require("react/jsx-runtime");
6051
+ var import_jsx_runtime71 = require("react/jsx-runtime");
5666
6052
  var HlsPlayer4 = (0, import_dynamic9.default)(() => Promise.resolve().then(() => (init_HlsPlayer(), HlsPlayer_exports)), { ssr: false });
5667
6053
  var deviceToMediaQuery = (device) => {
5668
6054
  switch (device) {
@@ -5791,8 +6177,8 @@ var ImageGalleryNode = (props) => {
5791
6177
  right: "justify-end"
5792
6178
  };
5793
6179
  const formatClasses = FormatClass[props.node.format || ""] || "";
5794
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(import_jsx_runtime68.Fragment, { children: [
5795
- hlsSources.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_jsx_runtime68.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
6180
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(import_jsx_runtime71.Fragment, { children: [
6181
+ hlsSources.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_jsx_runtime71.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
5796
6182
  HlsPlayer4,
5797
6183
  {
5798
6184
  sources: hlsSources,
@@ -5807,7 +6193,7 @@ var ImageGalleryNode = (props) => {
5807
6193
  styles: hlsStyles
5808
6194
  }
5809
6195
  ) }),
5810
- (staticFallback || staticSources.length > 0) && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_jsx_runtime68.Fragment, { children: staticFallback ? /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("picture", { children: [
6196
+ (staticFallback || staticSources.length > 0) && /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_jsx_runtime71.Fragment, { children: staticFallback ? /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("picture", { children: [
5811
6197
  DEVICE_ORDER.map((deviceKey) => {
5812
6198
  const match = staticSources.find(
5813
6199
  (img) => img.device === deviceKey
@@ -5819,7 +6205,7 @@ var ImageGalleryNode = (props) => {
5819
6205
  if (!srcUrl) {
5820
6206
  return null;
5821
6207
  }
5822
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
6208
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
5823
6209
  "source",
5824
6210
  {
5825
6211
  media: deviceToMediaQuery(match.device),
@@ -5843,7 +6229,7 @@ var ImageGalleryNode = (props) => {
5843
6229
  if (img.borderRadius) {
5844
6230
  styles.borderRadius = img.borderRadius;
5845
6231
  }
5846
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
6232
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
5847
6233
  "img",
5848
6234
  {
5849
6235
  loading: "lazy",
@@ -5858,7 +6244,7 @@ var ImageGalleryNode = (props) => {
5858
6244
  })()
5859
6245
  ] }) : (
5860
6246
  /* Case 2: Only device-specific images exist */
5861
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_jsx_runtime68.Fragment, { children: staticSources.map((img, index) => {
6247
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_jsx_runtime71.Fragment, { children: staticSources.map((img, index) => {
5862
6248
  const imageUrl = resolveImageUrl(img);
5863
6249
  if (!imageUrl) {
5864
6250
  return null;
@@ -5884,7 +6270,7 @@ var ImageGalleryNode = (props) => {
5884
6270
  default:
5885
6271
  display = "block";
5886
6272
  }
5887
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
6273
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
5888
6274
  "img",
5889
6275
  {
5890
6276
  loading: "lazy",
@@ -6025,28 +6411,28 @@ var shouldRenderContainer = (node, dataItem, session) => {
6025
6411
 
6026
6412
  // src/components/pageRenderingEngine/nodes/DocumentNode.tsx
6027
6413
  init_AssetUtility();
6028
- var import_jsx_runtime69 = require("react/jsx-runtime");
6414
+ var import_jsx_runtime72 = require("react/jsx-runtime");
6029
6415
  var getNestedValue5 = (obj, path) => {
6030
6416
  if (!obj || !path) return void 0;
6031
6417
  return path.split(".").reduce((current, key) => {
6032
6418
  return current && current[key] !== void 0 ? current[key] : void 0;
6033
6419
  }, obj);
6034
6420
  };
6035
- var PdfIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6421
+ var PdfIcon = () => /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
6036
6422
  "svg",
6037
6423
  {
6038
6424
  xmlns: "http://www.w3.org/2000/svg",
6039
6425
  viewBox: "0 0 48 48",
6040
6426
  className: "w-10 h-10",
6041
6427
  children: [
6042
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6428
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
6043
6429
  "path",
6044
6430
  {
6045
6431
  fill: "#e53935",
6046
6432
  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"
6047
6433
  }
6048
6434
  ),
6049
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6435
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
6050
6436
  "path",
6051
6437
  {
6052
6438
  fill: "#fff",
@@ -6056,55 +6442,55 @@ var PdfIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6056
6442
  ]
6057
6443
  }
6058
6444
  );
6059
- var ExcelIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6445
+ var ExcelIcon = () => /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
6060
6446
  "svg",
6061
6447
  {
6062
6448
  xmlns: "http://www.w3.org/2000/svg",
6063
6449
  viewBox: "0 0 48 48",
6064
6450
  className: "w-10 h-10",
6065
6451
  children: [
6066
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6452
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
6067
6453
  "path",
6068
6454
  {
6069
6455
  fill: "#169154",
6070
6456
  d: "M29,6H15.744C14.781,6,14,6.781,14,7.744v7.259h15V6z"
6071
6457
  }
6072
6458
  ),
6073
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6459
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
6074
6460
  "path",
6075
6461
  {
6076
6462
  fill: "#18482a",
6077
6463
  d: "M14,33.054v7.202C14,41.219,14.781,42,15.743,42H29v-8.946H14z"
6078
6464
  }
6079
6465
  ),
6080
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("path", { fill: "#0c8045", d: "M14 15.003H29V24.005000000000003H14z" }),
6081
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("path", { fill: "#17472a", d: "M14 24.005H29V33.055H14z" }),
6082
- /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("g", { children: [
6083
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6466
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("path", { fill: "#0c8045", d: "M14 15.003H29V24.005000000000003H14z" }),
6467
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("path", { fill: "#17472a", d: "M14 24.005H29V33.055H14z" }),
6468
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("g", { children: [
6469
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
6084
6470
  "path",
6085
6471
  {
6086
6472
  fill: "#29c27f",
6087
6473
  d: "M42.256,6H29v9.003h15V7.744C44,6.781,43.219,6,42.256,6z"
6088
6474
  }
6089
6475
  ),
6090
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6476
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
6091
6477
  "path",
6092
6478
  {
6093
6479
  fill: "#27663f",
6094
6480
  d: "M29,33.054V42h13.257C43.219,42,44,41.219,44,40.257v-7.202H29z"
6095
6481
  }
6096
6482
  ),
6097
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("path", { fill: "#19ac65", d: "M29 15.003H44V24.005000000000003H29z" }),
6098
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("path", { fill: "#129652", d: "M29 24.005H44V33.055H29z" })
6483
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("path", { fill: "#19ac65", d: "M29 15.003H44V24.005000000000003H29z" }),
6484
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("path", { fill: "#129652", d: "M29 24.005H44V33.055H29z" })
6099
6485
  ] }),
6100
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6486
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
6101
6487
  "path",
6102
6488
  {
6103
6489
  fill: "#0c7238",
6104
6490
  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"
6105
6491
  }
6106
6492
  ),
6107
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6493
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
6108
6494
  "path",
6109
6495
  {
6110
6496
  fill: "#fff",
@@ -6114,7 +6500,7 @@ var ExcelIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6114
6500
  ]
6115
6501
  }
6116
6502
  );
6117
- var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6503
+ var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
6118
6504
  "svg",
6119
6505
  {
6120
6506
  xmlns: "http://www.w3.org/2000/svg",
@@ -6122,14 +6508,14 @@ var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6122
6508
  className: "w-10 h-10",
6123
6509
  baseProfile: "basic",
6124
6510
  children: [
6125
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6511
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
6126
6512
  "path",
6127
6513
  {
6128
6514
  fill: "#283593",
6129
6515
  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"
6130
6516
  }
6131
6517
  ),
6132
- /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6518
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
6133
6519
  "linearGradient",
6134
6520
  {
6135
6521
  id: "qh2LT5tehRDFkLLfb-odWa",
@@ -6140,19 +6526,19 @@ var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6140
6526
  gradientTransform: "translate(0 -339.89)",
6141
6527
  gradientUnits: "userSpaceOnUse",
6142
6528
  children: [
6143
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("stop", { offset: "0", "stop-color": "#66c0ff" }),
6144
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("stop", { offset: ".26", "stop-color": "#0094f0" })
6529
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("stop", { offset: "0", "stop-color": "#66c0ff" }),
6530
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("stop", { offset: ".26", "stop-color": "#0094f0" })
6145
6531
  ]
6146
6532
  }
6147
6533
  ),
6148
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6534
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
6149
6535
  "path",
6150
6536
  {
6151
6537
  fill: "url(#qh2LT5tehRDFkLLfb-odWa)",
6152
6538
  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"
6153
6539
  }
6154
6540
  ),
6155
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6541
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
6156
6542
  "path",
6157
6543
  {
6158
6544
  fill: "#1e88e5",
@@ -6160,21 +6546,21 @@ var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6160
6546
  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"
6161
6547
  }
6162
6548
  ),
6163
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6549
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
6164
6550
  "path",
6165
6551
  {
6166
6552
  fill: "#00e5ff",
6167
6553
  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"
6168
6554
  }
6169
6555
  ),
6170
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6556
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
6171
6557
  "path",
6172
6558
  {
6173
6559
  fill: "#1565c0",
6174
6560
  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"
6175
6561
  }
6176
6562
  ),
6177
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6563
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
6178
6564
  "path",
6179
6565
  {
6180
6566
  fill: "#fff",
@@ -6184,42 +6570,42 @@ var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6184
6570
  ]
6185
6571
  }
6186
6572
  );
6187
- var StandardIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6573
+ var StandardIcon = () => /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
6188
6574
  "svg",
6189
6575
  {
6190
6576
  xmlns: "http://www.w3.org/2000/svg",
6191
6577
  viewBox: "0 0 48 48",
6192
6578
  className: "w-10 h-10",
6193
6579
  children: [
6194
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
6195
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" })
6580
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
6581
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" })
6196
6582
  ]
6197
6583
  }
6198
6584
  );
6199
- var PowerPointIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6585
+ var PowerPointIcon = () => /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
6200
6586
  "svg",
6201
6587
  {
6202
6588
  xmlns: "http://www.w3.org/2000/svg",
6203
6589
  viewBox: "0 0 48 48",
6204
6590
  className: "w-10 h-10",
6205
6591
  children: [
6206
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6592
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
6207
6593
  "path",
6208
6594
  {
6209
6595
  fill: "#dc4c2c",
6210
6596
  d: "M8,24c0,9.941,8.059,18,18,18s18-8.059,18-18H26H8z"
6211
6597
  }
6212
6598
  ),
6213
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("path", { fill: "#f7a278", d: "M26,6v18h18C44,14.059,35.941,6,26,6z" }),
6214
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("path", { fill: "#c06346", d: "M26,6C16.059,6,8,14.059,8,24h18V6z" }),
6215
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6599
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("path", { fill: "#f7a278", d: "M26,6v18h18C44,14.059,35.941,6,26,6z" }),
6600
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("path", { fill: "#c06346", d: "M26,6C16.059,6,8,14.059,8,24h18V6z" }),
6601
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
6216
6602
  "path",
6217
6603
  {
6218
6604
  fill: "#9b341f",
6219
6605
  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"
6220
6606
  }
6221
6607
  ),
6222
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6608
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
6223
6609
  "path",
6224
6610
  {
6225
6611
  fill: "#fff",
@@ -6229,16 +6615,16 @@ var PowerPointIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6229
6615
  ]
6230
6616
  }
6231
6617
  );
6232
- var TextIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6618
+ var TextIcon = () => /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
6233
6619
  "svg",
6234
6620
  {
6235
6621
  xmlns: "http://www.w3.org/2000/svg",
6236
6622
  viewBox: "0 0 48 48",
6237
6623
  className: "w-10 h-10",
6238
6624
  children: [
6239
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
6240
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" }),
6241
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6625
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
6626
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" }),
6627
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
6242
6628
  "path",
6243
6629
  {
6244
6630
  fill: "#1976D2",
@@ -6248,7 +6634,7 @@ var TextIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6248
6634
  ]
6249
6635
  }
6250
6636
  );
6251
- var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6637
+ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
6252
6638
  "svg",
6253
6639
  {
6254
6640
  xmlns: "http://www.w3.org/2000/svg",
@@ -6258,14 +6644,14 @@ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6258
6644
  version: "1.0",
6259
6645
  className: "w-10 h-10",
6260
6646
  children: [
6261
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("clipPath", { id: "273d29c8a6", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6647
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("clipPath", { id: "273d29c8a6", children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
6262
6648
  "path",
6263
6649
  {
6264
6650
  d: "M 8.90625 0 L 65.90625 0 L 65.90625 75 L 8.90625 75 Z M 8.90625 0 ",
6265
6651
  "clip-rule": "nonzero"
6266
6652
  }
6267
6653
  ) }) }),
6268
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("g", { "clip-path": "url(#273d29c8a6)", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6654
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("g", { "clip-path": "url(#273d29c8a6)", children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
6269
6655
  "path",
6270
6656
  {
6271
6657
  fill: "#ff9100",
@@ -6274,7 +6660,7 @@ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6274
6660
  "fill-rule": "nonzero"
6275
6661
  }
6276
6662
  ) }),
6277
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6663
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
6278
6664
  "path",
6279
6665
  {
6280
6666
  fill: "#fbe9e7",
@@ -6283,7 +6669,7 @@ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6283
6669
  "fill-rule": "nonzero"
6284
6670
  }
6285
6671
  ),
6286
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6672
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
6287
6673
  "path",
6288
6674
  {
6289
6675
  fill: "#ffe0b2",
@@ -6292,7 +6678,7 @@ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6292
6678
  "fill-rule": "nonzero"
6293
6679
  }
6294
6680
  ),
6295
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6681
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
6296
6682
  "path",
6297
6683
  {
6298
6684
  fill: "#ffe0b2",
@@ -6301,7 +6687,7 @@ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6301
6687
  "fill-rule": "nonzero"
6302
6688
  }
6303
6689
  ),
6304
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6690
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
6305
6691
  "path",
6306
6692
  {
6307
6693
  fill: "#ffe0b2",
@@ -6377,8 +6763,8 @@ var DocumentNode = (props) => {
6377
6763
  }
6378
6764
  }
6379
6765
  if (documents.length === 0) {
6380
- 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: [
6381
- /* @__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)(
6766
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_jsx_runtime72.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: "py-4 px-2 bg-neutral-weak border rounded text-center flex flex-col gap-2", children: [
6767
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { className: "mx-auto w-10 h-10 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
6382
6768
  "svg",
6383
6769
  {
6384
6770
  className: "w-5 h-5",
@@ -6386,7 +6772,7 @@ var DocumentNode = (props) => {
6386
6772
  stroke: "currentColor",
6387
6773
  viewBox: "0 0 24 24",
6388
6774
  xmlns: "http://www.w3.org/2000/svg",
6389
- children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6775
+ children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
6390
6776
  "path",
6391
6777
  {
6392
6778
  strokeLinecap: "round",
@@ -6397,11 +6783,11 @@ var DocumentNode = (props) => {
6397
6783
  )
6398
6784
  }
6399
6785
  ) }),
6400
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "text-sm font-medium", children: "No documents found" }),
6401
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "text-xs", children: "No records found. Data may be empty or not available at the moment." })
6786
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { className: "text-sm font-medium", children: "No documents found" }),
6787
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { className: "text-xs", children: "No records found. Data may be empty or not available at the moment." })
6402
6788
  ] }) });
6403
6789
  }
6404
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "", children: documents.map((doc, index) => {
6790
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { className: "", children: documents.map((doc, index) => {
6405
6791
  const documentUrl = AssetUtility_default.resolveUrl(
6406
6792
  props.assetBaseUrl,
6407
6793
  doc.assetUrl
@@ -6419,16 +6805,16 @@ var DocumentNode = (props) => {
6419
6805
  }
6420
6806
  }
6421
6807
  const { Icon: Icon2, extLabel } = getFileDetails(documentUrl);
6422
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6808
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
6423
6809
  "div",
6424
6810
  {
6425
6811
  className: `flex items-center justify-between py-4 bg-default gap-4 ${index !== 0 ? "border-t" : ""}`,
6426
6812
  children: [
6427
- /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "flex items-center space-x-4", children: [
6428
- /* @__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, {}) }),
6429
- /* @__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 }) })
6813
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: "flex items-center space-x-4", children: [
6814
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { className: "flex items-center justify-center p-2 rounded bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Icon2, {}) }),
6815
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { className: "flex items-baseline space-x-2", children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("h4", { className: "text-base font-semibold", children: documentTitle }) })
6430
6816
  ] }),
6431
- /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6817
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
6432
6818
  "a",
6433
6819
  {
6434
6820
  href: documentUrl,
@@ -6436,7 +6822,7 @@ var DocumentNode = (props) => {
6436
6822
  rel: "noopener noreferrer",
6437
6823
  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",
6438
6824
  children: [
6439
- /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6825
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
6440
6826
  "svg",
6441
6827
  {
6442
6828
  className: "w-4 h-4 mr-2",
@@ -6444,7 +6830,7 @@ var DocumentNode = (props) => {
6444
6830
  stroke: "currentColor",
6445
6831
  viewBox: "0 0 24 24",
6446
6832
  children: [
6447
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6833
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
6448
6834
  "path",
6449
6835
  {
6450
6836
  strokeLinecap: "round",
@@ -6453,7 +6839,7 @@ var DocumentNode = (props) => {
6453
6839
  d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"
6454
6840
  }
6455
6841
  ),
6456
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6842
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
6457
6843
  "path",
6458
6844
  {
6459
6845
  strokeLinecap: "round",
@@ -6478,7 +6864,7 @@ var DocumentNode = (props) => {
6478
6864
  var DocumentNode_default = DocumentNode;
6479
6865
 
6480
6866
  // src/components/pageRenderingEngine/nodes/DivContainer.tsx
6481
- var import_jsx_runtime72 = require("react/jsx-runtime");
6867
+ var import_jsx_runtime75 = require("react/jsx-runtime");
6482
6868
  var Pagination2 = (0, import_dynamic10.default)(() => Promise.resolve().then(() => (init_Pagination(), Pagination_exports)), { ssr: true });
6483
6869
  var Slider2 = (0, import_dynamic10.default)(() => Promise.resolve().then(() => (init_Slider(), Slider_exports)), {
6484
6870
  ssr: false
@@ -6733,7 +7119,7 @@ var DivContainer = async (props) => {
6733
7119
  response = await serviceClient.get(endpoint);
6734
7120
  result = response?.result;
6735
7121
  if (dataBindingProperties.showNoResultsMessage && (result === void 0 || result.length == 0)) {
6736
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(NoDataFound_default, {});
7122
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(NoDataFound_default, {});
6737
7123
  }
6738
7124
  if (dataBindingProperties.childCollectionName && props.dataitem) {
6739
7125
  childCollectionData = getNestedValue6(
@@ -6753,7 +7139,7 @@ var DivContainer = async (props) => {
6753
7139
  }
6754
7140
  const SelectedNode = NodeTypes2[node.type];
6755
7141
  if (!SelectedNode) return null;
6756
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_react52.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
7142
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_react55.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
6757
7143
  SelectedNode,
6758
7144
  {
6759
7145
  node,
@@ -6886,14 +7272,14 @@ var DivContainer = async (props) => {
6886
7272
  noLinkColor && "no-link-color",
6887
7273
  !!props.node.enterAnimation && "enter-animation"
6888
7274
  ].filter(Boolean).join(" ");
6889
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(import_react52.default.Fragment, { children: [
6890
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
7275
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(import_react55.default.Fragment, { children: [
7276
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
6891
7277
  "style",
6892
7278
  {
6893
7279
  dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS }
6894
7280
  }
6895
7281
  ),
6896
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
7282
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
6897
7283
  Wrapper,
6898
7284
  {
6899
7285
  id: guid,
@@ -6907,11 +7293,11 @@ var DivContainer = async (props) => {
6907
7293
  item,
6908
7294
  idx,
6909
7295
  props.href ? void 0 : item?.links?.view
6910
- )?.map((child, i) => /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_react52.default.Fragment, { children: child }, i)) : renderChildren(props.node.children, props, item, idx)
7296
+ )?.map((child, i) => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_react55.default.Fragment, { children: child }, i)) : renderChildren(props.node.children, props, item, idx)
6911
7297
  )
6912
7298
  }
6913
7299
  ),
6914
- dataBindingProperties && props.node.dataBinding.enablePagination && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
7300
+ dataBindingProperties && props.node.dataBinding.enablePagination && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
6915
7301
  Pagination2,
6916
7302
  {
6917
7303
  path: props.path,
@@ -6924,7 +7310,7 @@ var DivContainer = async (props) => {
6924
7310
  var DivContainer_default = DivContainer;
6925
7311
 
6926
7312
  // src/components/pageRenderingEngine/PageBodyRenderer.tsx
6927
- var import_jsx_runtime73 = require("react/jsx-runtime");
7313
+ var import_jsx_runtime76 = require("react/jsx-runtime");
6928
7314
  var NodeTypes = {
6929
7315
  ["paragraph"]: ParagraphNode_default,
6930
7316
  ["heading"]: HeadingNode_default,
@@ -6961,14 +7347,14 @@ var PageBodyRenderer = (props) => {
6961
7347
  }
6962
7348
  return true;
6963
7349
  };
6964
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_react53.default.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
7350
+ return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_react56.default.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
6965
7351
  {
6966
7352
  }
6967
7353
  const SelectedNode = NodeTypes[node.type];
6968
7354
  if (!shouldRenderNode(node)) {
6969
7355
  return null;
6970
7356
  }
6971
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_react53.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_react53.default.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_react53.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
7357
+ return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_react56.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_react56.default.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_react56.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
6972
7358
  SelectedNode,
6973
7359
  {
6974
7360
  node,
@@ -6984,7 +7370,7 @@ var PageBodyRenderer = (props) => {
6984
7370
  device: props.device,
6985
7371
  widgetRenderer: props.widgetRenderer
6986
7372
  }
6987
- ) }) : /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_react53.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
7373
+ ) }) : /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_react56.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
6988
7374
  SelectedNode,
6989
7375
  {
6990
7376
  node,
@@ -7005,10 +7391,10 @@ var PageBodyRenderer = (props) => {
7005
7391
  var PageBodyRenderer_default = PageBodyRenderer;
7006
7392
 
7007
7393
  // src/components/pageRenderingEngine/EnterAnimationHydrator.tsx
7008
- var import_react54 = require("react");
7394
+ var import_react57 = require("react");
7009
7395
  var ENTER_ANIMATION_SELECTOR = ".enter-animation";
7010
7396
  function EnterAnimationHydrator() {
7011
- (0, import_react54.useEffect)(() => {
7397
+ (0, import_react57.useEffect)(() => {
7012
7398
  let observer;
7013
7399
  const observedElements = /* @__PURE__ */ new WeakSet();
7014
7400
  const revealAnimatedElements = () => {
@@ -7053,22 +7439,22 @@ function EnterAnimationHydrator() {
7053
7439
  }
7054
7440
 
7055
7441
  // src/components/Toast.tsx
7056
- var import_react55 = require("react");
7442
+ var import_react58 = require("react");
7057
7443
  init_ToastService();
7058
- var import_jsx_runtime74 = require("react/jsx-runtime");
7444
+ var import_jsx_runtime77 = require("react/jsx-runtime");
7059
7445
  var Toast = () => {
7060
- const [showToast, setShowToast] = (0, import_react55.useState)(false);
7061
- const [message, setMessage] = (0, import_react55.useState)("");
7062
- const [messageType, setMessageType] = (0, import_react55.useState)("error");
7063
- const timeoutRef = (0, import_react55.useRef)(null);
7064
- const closeToast = (0, import_react55.useCallback)(() => {
7446
+ const [showToast, setShowToast] = (0, import_react58.useState)(false);
7447
+ const [message, setMessage] = (0, import_react58.useState)("");
7448
+ const [messageType, setMessageType] = (0, import_react58.useState)("error");
7449
+ const timeoutRef = (0, import_react58.useRef)(null);
7450
+ const closeToast = (0, import_react58.useCallback)(() => {
7065
7451
  if (timeoutRef.current) {
7066
7452
  clearTimeout(timeoutRef.current);
7067
7453
  timeoutRef.current = null;
7068
7454
  }
7069
7455
  setShowToast(false);
7070
7456
  }, []);
7071
- const showMessage = (0, import_react55.useCallback)((message2, messageType2) => {
7457
+ const showMessage = (0, import_react58.useCallback)((message2, messageType2) => {
7072
7458
  if (timeoutRef.current) {
7073
7459
  clearTimeout(timeoutRef.current);
7074
7460
  }
@@ -7080,7 +7466,7 @@ var Toast = () => {
7080
7466
  timeoutRef.current = null;
7081
7467
  }, 4e3);
7082
7468
  }, []);
7083
- (0, import_react55.useEffect)(() => {
7469
+ (0, import_react58.useEffect)(() => {
7084
7470
  ToastService_default.initialize(showMessage, closeToast);
7085
7471
  return () => {
7086
7472
  closeToast();
@@ -7089,8 +7475,8 @@ var Toast = () => {
7089
7475
  });
7090
7476
  };
7091
7477
  }, [closeToast, showMessage]);
7092
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_jsx_runtime74.Fragment, { children: showToast && /* @__PURE__ */ (0, import_jsx_runtime74.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_runtime74.jsxs)("div", { className: `w-full items-center flex justify-between p-3 rounded-md relative shadow border bg-${messageType}-soft`, children: [
7093
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
7478
+ 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: [
7479
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
7094
7480
  "span",
7095
7481
  {
7096
7482
  className: "font-medium text-inherit text-sm",
@@ -7098,7 +7484,7 @@ var Toast = () => {
7098
7484
  children: message
7099
7485
  }
7100
7486
  ),
7101
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("button", { className: "absolute right-2 top-2 ml-2 focus:outline-none", onClick: closeToast, children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
7487
+ /* @__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)(
7102
7488
  "svg",
7103
7489
  {
7104
7490
  xmlns: "http://www.w3.org/2000/svg",
@@ -7106,7 +7492,7 @@ var Toast = () => {
7106
7492
  fill: "none",
7107
7493
  viewBox: "0 0 24 24",
7108
7494
  stroke: "currentColor",
7109
- children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M6 18L18 6M6 6l12 12" })
7495
+ children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M6 18L18 6M6 6l12 12" })
7110
7496
  }
7111
7497
  ) })
7112
7498
  ] }) }) });
@@ -7129,11 +7515,14 @@ init_ColorInput();
7129
7515
  init_BooleanSelect();
7130
7516
  init_EmailInput();
7131
7517
  init_TimeInput();
7518
+ init_DateInput();
7519
+ init_RadioInput();
7520
+ init_Switcher();
7132
7521
 
7133
7522
  // src/components/NavigationTabsV2.tsx
7134
7523
  var import_link3 = __toESM(require("next/link"));
7135
7524
  var import_navigation = require("next/navigation");
7136
- var import_jsx_runtime75 = require("react/jsx-runtime");
7525
+ var import_jsx_runtime78 = require("react/jsx-runtime");
7137
7526
  function resolveRoutePlaceholders(route, params) {
7138
7527
  return route.replace(/\{([^}]+)\}/g, (match, key) => {
7139
7528
  const value = params[key];
@@ -7158,8 +7547,8 @@ var NavigationTabsV2 = ({ tabs, params = {} }) => {
7158
7547
  isActive: tab.isActive
7159
7548
  })) || [];
7160
7549
  if (mappedTabs.length === 0) return null;
7161
- return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: "flex border-b bg-white rounded-t mb-3", children: mappedTabs.map(({ tabTitle, landingPageUrl, isActive }) => {
7162
- return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_link3.default, { href: landingPageUrl, className: "-mb-px", children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
7550
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "flex border-b bg-white rounded-t mb-3", children: mappedTabs.map(({ tabTitle, landingPageUrl, isActive }) => {
7551
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_link3.default, { href: landingPageUrl, className: "-mb-px", children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
7163
7552
  "div",
7164
7553
  {
7165
7554
  className: `text-sm font-medium border-b-2 px-6 py-2 transition
@@ -7172,14 +7561,14 @@ var NavigationTabsV2 = ({ tabs, params = {} }) => {
7172
7561
  var NavigationTabsV2_default = NavigationTabsV2;
7173
7562
 
7174
7563
  // src/components/dataForm/DataList.tsx
7175
- var import_react58 = __toESM(require("react"));
7564
+ var import_react61 = __toESM(require("react"));
7176
7565
  var import_navigation2 = require("next/navigation");
7177
7566
 
7178
7567
  // src/components/dataForm/NoContentView.tsx
7179
- var import_react56 = __toESM(require("react"));
7180
- var import_jsx_runtime76 = require("react/jsx-runtime");
7568
+ var import_react59 = __toESM(require("react"));
7569
+ var import_jsx_runtime79 = require("react/jsx-runtime");
7181
7570
  var NoContentView = (props) => {
7182
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_react56.default.Fragment, { children: props.isDataFound === false && props.children });
7571
+ return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_react59.default.Fragment, { children: props.isDataFound === false && props.children });
7183
7572
  };
7184
7573
  var NoContentView_default = NoContentView;
7185
7574
 
@@ -7187,39 +7576,39 @@ var NoContentView_default = NoContentView;
7187
7576
  init_InputControlType();
7188
7577
 
7189
7578
  // src/components/dataForm/ContentView.tsx
7190
- var import_react57 = __toESM(require("react"));
7191
- var import_jsx_runtime77 = require("react/jsx-runtime");
7579
+ var import_react60 = __toESM(require("react"));
7580
+ var import_jsx_runtime80 = require("react/jsx-runtime");
7192
7581
  var ContentView = (props) => {
7193
- return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(import_react57.default.Fragment, { children: [
7194
- props.isDataFound == null && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "", children: /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "bg-gray-200 rounded-md p-4 animate-pulse", children: [
7195
- /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "flex items-center mb-4", children: [
7196
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
7197
- /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "ml-2", children: [
7198
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
7199
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
7582
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(import_react60.default.Fragment, { children: [
7583
+ 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: [
7584
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "flex items-center mb-4", children: [
7585
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
7586
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "ml-2", children: [
7587
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
7588
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
7200
7589
  ] })
7201
7590
  ] }),
7202
- /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
7203
- /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "animate-pulse", children: [
7204
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
7205
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
7206
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
7207
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
7208
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
7591
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
7592
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "animate-pulse", children: [
7593
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
7594
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
7595
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
7596
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
7597
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
7209
7598
  ] }),
7210
- /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "animate-pulse", children: [
7211
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
7212
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
7213
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
7214
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
7215
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
7599
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "animate-pulse", children: [
7600
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
7601
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
7602
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
7603
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
7604
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
7216
7605
  ] }),
7217
- /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "animate-pulse", children: [
7218
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
7219
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
7220
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
7221
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
7222
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
7606
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "animate-pulse", children: [
7607
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
7608
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
7609
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
7610
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
7611
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
7223
7612
  ] })
7224
7613
  ] })
7225
7614
  ] }) }),
@@ -7279,7 +7668,7 @@ function FormReducer(state, action) {
7279
7668
  var FormReducer_default = FormReducer;
7280
7669
 
7281
7670
  // src/components/dataForm/DataList.tsx
7282
- var import_jsx_runtime78 = require("react/jsx-runtime");
7671
+ var import_jsx_runtime81 = require("react/jsx-runtime");
7283
7672
  var DataList = (props) => {
7284
7673
  const router = (0, import_navigation2.useRouter)();
7285
7674
  let builder = new OdataBuilder(props.path);
@@ -7287,9 +7676,9 @@ var DataList = (props) => {
7287
7676
  let activePageNumber = 0;
7288
7677
  let pages = 0;
7289
7678
  console.log(props.addLinkText);
7290
- const [isDataFound, setIsDataFound] = (0, import_react58.useState)(null);
7291
- const [searchTerm, setSearchTerm] = (0, import_react58.useState)(props.query?.searchTerm ?? "");
7292
- (0, import_react58.useEffect)(() => {
7679
+ const [isDataFound, setIsDataFound] = (0, import_react61.useState)(null);
7680
+ const [searchTerm, setSearchTerm] = (0, import_react61.useState)(props.query?.searchTerm ?? "");
7681
+ (0, import_react61.useEffect)(() => {
7293
7682
  if (props?.dataset) {
7294
7683
  if (props?.dataset.result && props.dataset.result.length > 0) {
7295
7684
  setIsDataFound(true);
@@ -7298,7 +7687,7 @@ var DataList = (props) => {
7298
7687
  }
7299
7688
  }
7300
7689
  }, [props.dataset]);
7301
- (0, import_react58.useEffect)(() => {
7690
+ (0, import_react61.useEffect)(() => {
7302
7691
  if (!props.query?.["$filter"] || !props.filters) return;
7303
7692
  const filterQuery = props.query["$filter"];
7304
7693
  props.filters.forEach((filter) => {
@@ -7317,7 +7706,7 @@ var DataList = (props) => {
7317
7706
  if (path.includes(".")) {
7318
7707
  return path.split(".").reduce((prev, curr) => prev ? prev[curr] : null, obj);
7319
7708
  } else if (Array.isArray(obj[path])) {
7320
- return obj[path].map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { children: item }, index));
7709
+ return obj[path].map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { children: item }, index));
7321
7710
  } else {
7322
7711
  return obj[path];
7323
7712
  }
@@ -7326,11 +7715,11 @@ var DataList = (props) => {
7326
7715
  inputValues: {},
7327
7716
  lastPropertyChanged: ""
7328
7717
  };
7329
- const [formState, dispatch] = (0, import_react58.useReducer)(FormReducer_default, initialState);
7718
+ const [formState, dispatch] = (0, import_react61.useReducer)(FormReducer_default, initialState);
7330
7719
  const getSearchableColumns = () => {
7331
7720
  return props.columns?.filter((c) => c.isSearchable)?.map((c) => c.name)?.join(",");
7332
7721
  };
7333
- const handleFilterChange = (0, import_react58.useCallback)(
7722
+ const handleFilterChange = (0, import_react61.useCallback)(
7334
7723
  (updatedValues) => {
7335
7724
  dispatch({
7336
7725
  type: FORM_INPUT_UPDATE,
@@ -7361,7 +7750,7 @@ var DataList = (props) => {
7361
7750
  },
7362
7751
  [dispatch, props, router]
7363
7752
  );
7364
- (0, import_react58.useEffect)(() => {
7753
+ (0, import_react61.useEffect)(() => {
7365
7754
  if (!props.columns.some((col) => col.isSearchable)) {
7366
7755
  return;
7367
7756
  }
@@ -7396,30 +7785,30 @@ var DataList = (props) => {
7396
7785
  const renderPageNumbers = () => {
7397
7786
  if (pages <= 10) {
7398
7787
  return Array.from({ length: pages }, (_, index) => index + 1).map(
7399
- (page) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_react58.default.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
7788
+ (page) => /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_react61.default.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7400
7789
  Hyperlink,
7401
7790
  {
7402
7791
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
7403
7792
  href: builder.getNewPageUrl(page),
7404
7793
  children: page
7405
7794
  }
7406
- ) : /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)
7795
+ ) : /* @__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)
7407
7796
  );
7408
7797
  } else {
7409
7798
  const showFirstPages = activePageNumber <= 5;
7410
7799
  const showLastPages = activePageNumber > pages - 5;
7411
7800
  if (showFirstPages) {
7412
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(import_jsx_runtime78.Fragment, { children: [
7413
- Array.from({ length: 8 }, (_, index) => index + 1).map((page) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_react58.default.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
7801
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(import_jsx_runtime81.Fragment, { children: [
7802
+ Array.from({ length: 8 }, (_, index) => index + 1).map((page) => /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_react61.default.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7414
7803
  Hyperlink,
7415
7804
  {
7416
7805
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
7417
7806
  href: builder.getNewPageUrl(page),
7418
7807
  children: page
7419
7808
  }
7420
- ) : /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)),
7421
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { className: "px-2 py-1", children: "..." }),
7422
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
7809
+ ) : /* @__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)),
7810
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: "px-2 py-1", children: "..." }),
7811
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7423
7812
  Hyperlink,
7424
7813
  {
7425
7814
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -7427,7 +7816,7 @@ var DataList = (props) => {
7427
7816
  children: pages - 1
7428
7817
  }
7429
7818
  ),
7430
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
7819
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7431
7820
  Hyperlink,
7432
7821
  {
7433
7822
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -7435,7 +7824,7 @@ var DataList = (props) => {
7435
7824
  children: pages
7436
7825
  }
7437
7826
  ),
7438
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "relative inline-block", children: /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
7827
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "relative inline-block", children: /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
7439
7828
  "select",
7440
7829
  {
7441
7830
  className: " py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
@@ -7447,18 +7836,18 @@ var DataList = (props) => {
7447
7836
  }
7448
7837
  },
7449
7838
  children: [
7450
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("option", { className: "", value: "", children: "Jump to" }),
7839
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("option", { className: "", value: "", children: "Jump to" }),
7451
7840
  Array.from(
7452
7841
  { length: Math.max(0, pages - 10) },
7453
7842
  (_, index) => index + 9
7454
- ).map((page) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("option", { value: page, children: page }, page))
7843
+ ).map((page) => /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("option", { value: page, children: page }, page))
7455
7844
  ]
7456
7845
  }
7457
7846
  ) })
7458
7847
  ] });
7459
7848
  } else if (showLastPages) {
7460
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(import_jsx_runtime78.Fragment, { children: [
7461
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
7849
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(import_jsx_runtime81.Fragment, { children: [
7850
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7462
7851
  Hyperlink,
7463
7852
  {
7464
7853
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -7466,7 +7855,7 @@ var DataList = (props) => {
7466
7855
  children: "1"
7467
7856
  }
7468
7857
  ),
7469
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
7858
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7470
7859
  Hyperlink,
7471
7860
  {
7472
7861
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -7474,21 +7863,21 @@ var DataList = (props) => {
7474
7863
  children: "2"
7475
7864
  }
7476
7865
  ),
7477
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { className: "px-2 py-1", children: "..." }),
7866
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: "px-2 py-1", children: "..." }),
7478
7867
  Array.from({ length: 8 }, (_, index) => pages - 7 + index).map(
7479
- (page) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_react58.default.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
7868
+ (page) => /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_react61.default.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7480
7869
  Hyperlink,
7481
7870
  {
7482
7871
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
7483
7872
  href: builder.getNewPageUrl(page),
7484
7873
  children: page
7485
7874
  }
7486
- ) : /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)
7875
+ ) : /* @__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)
7487
7876
  )
7488
7877
  ] });
7489
7878
  } else {
7490
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(import_jsx_runtime78.Fragment, { children: [
7491
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
7879
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(import_jsx_runtime81.Fragment, { children: [
7880
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7492
7881
  Hyperlink,
7493
7882
  {
7494
7883
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -7496,7 +7885,7 @@ var DataList = (props) => {
7496
7885
  children: "1"
7497
7886
  }
7498
7887
  ),
7499
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
7888
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7500
7889
  Hyperlink,
7501
7890
  {
7502
7891
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -7504,20 +7893,20 @@ var DataList = (props) => {
7504
7893
  children: "2"
7505
7894
  }
7506
7895
  ),
7507
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { className: "px-2 py-1", children: "..." }),
7896
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: "px-2 py-1", children: "..." }),
7508
7897
  Array.from(
7509
7898
  { length: 5 },
7510
7899
  (_, index) => activePageNumber - 2 + index
7511
- ).map((page) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_react58.default.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
7900
+ ).map((page) => /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_react61.default.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7512
7901
  Hyperlink,
7513
7902
  {
7514
7903
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
7515
7904
  href: builder.getNewPageUrl(page),
7516
7905
  children: page
7517
7906
  }
7518
- ) : /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)),
7519
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { className: "px-2 py-1", children: "..." }),
7520
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
7907
+ ) : /* @__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)),
7908
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: "px-2 py-1", children: "..." }),
7909
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7521
7910
  Hyperlink,
7522
7911
  {
7523
7912
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -7525,7 +7914,7 @@ var DataList = (props) => {
7525
7914
  children: pages - 1
7526
7915
  }
7527
7916
  ),
7528
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
7917
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7529
7918
  Hyperlink,
7530
7919
  {
7531
7920
  className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -7533,7 +7922,7 @@ var DataList = (props) => {
7533
7922
  children: pages
7534
7923
  }
7535
7924
  ),
7536
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "relative inline-block", children: /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
7925
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "relative inline-block", children: /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
7537
7926
  "select",
7538
7927
  {
7539
7928
  className: "px-2 py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
@@ -7545,8 +7934,8 @@ var DataList = (props) => {
7545
7934
  }
7546
7935
  },
7547
7936
  children: [
7548
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("option", { value: "", children: "Jump to" }),
7549
- Array.from({ length: pages - 4 }, (_, index) => index + 3).filter((page) => page > 2 && page < pages - 1).map((page) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("option", { value: page, children: page }, page))
7937
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("option", { value: "", children: "Jump to" }),
7938
+ 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))
7550
7939
  ]
7551
7940
  }
7552
7941
  ) })
@@ -7554,16 +7943,16 @@ var DataList = (props) => {
7554
7943
  }
7555
7944
  }
7556
7945
  };
7557
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(import_react58.default.Fragment, { children: [
7558
- /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(ContentView_default, { isDataFound, children: [
7559
- (props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
7946
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(import_react61.default.Fragment, { children: [
7947
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(ContentView_default, { isDataFound, children: [
7948
+ (props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
7560
7949
  "div",
7561
7950
  {
7562
7951
  className: `flex justify-between items-center bg-white pl-6 pr-2 h-14 mb-3 shadow-sm rounded-md sticky top-0`,
7563
7952
  children: [
7564
- props.title ? /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("h2", { className: "text-lg font-semibold text-black-800", children: props.title }) }) : /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", {}),
7565
- /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "flex items-center gap-3", children: [
7566
- props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
7953
+ 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", {}),
7954
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "flex items-center gap-3", children: [
7955
+ props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7567
7956
  InputControl_default,
7568
7957
  {
7569
7958
  name: "Search_input",
@@ -7575,7 +7964,7 @@ var DataList = (props) => {
7575
7964
  }
7576
7965
  }
7577
7966
  ),
7578
- props.filters && props.filters.map((filter) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
7967
+ props.filters && props.filters.map((filter) => /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7579
7968
  InputControl_default,
7580
7969
  {
7581
7970
  name: filter.name,
@@ -7590,15 +7979,15 @@ var DataList = (props) => {
7590
7979
  },
7591
7980
  filter.name
7592
7981
  )),
7593
- props.addLinkHref && /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
7982
+ props.addLinkHref && /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
7594
7983
  Hyperlink,
7595
7984
  {
7596
7985
  className: "gap-1",
7597
7986
  linkType: "Primary" /* Solid */,
7598
7987
  href: props.addLinkHref,
7599
7988
  children: [
7600
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(Icon_default, { name: "plus", className: "w-4 h-4" }),
7601
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
7989
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Icon_default, { name: "plus", className: "w-4 h-4" }),
7990
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
7602
7991
  ]
7603
7992
  }
7604
7993
  )
@@ -7606,8 +7995,8 @@ var DataList = (props) => {
7606
7995
  ]
7607
7996
  }
7608
7997
  ),
7609
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "flex-1 overflow-y-auto justify-end bg-white rounded shadow h-[calc(100vh-14rem)]", children: /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("table", { className: "w-full divide-y divide-gray-200", children: [
7610
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("thead", { className: "bg-gray-50 sticky top-0", children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("tr", { children: props?.columns?.map((column) => {
7998
+ /* @__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: [
7999
+ /* @__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) => {
7611
8000
  let url = builder.getNewOrderByUrl(column.name);
7612
8001
  let icon = "chevronUpDown";
7613
8002
  if (orderBy.includes(`${column.name} desc`)) {
@@ -7617,18 +8006,18 @@ var DataList = (props) => {
7617
8006
  icon = "chevronUp";
7618
8007
  url = builder.getNewOrderByUrl(column.name + " desc");
7619
8008
  }
7620
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
8009
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7621
8010
  "th",
7622
8011
  {
7623
8012
  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" : ""),
7624
- children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
8013
+ children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7625
8014
  Hyperlink,
7626
8015
  {
7627
8016
  href: column.enableSorting ? url : void 0,
7628
8017
  className: "!text-neutral-contrast ",
7629
- children: /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("span", { className: "flex items-center space-x-1", children: [
7630
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { className: "text-black", children: column.label }),
7631
- column.enableSorting && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(Icon_default, { className: "w-4 h-4", name: icon })
8018
+ children: /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("span", { className: "flex items-center space-x-1", children: [
8019
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: "text-black", children: column.label }),
8020
+ column.enableSorting && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Icon_default, { className: "w-4 h-4", name: icon })
7632
8021
  ] })
7633
8022
  }
7634
8023
  )
@@ -7636,24 +8025,24 @@ var DataList = (props) => {
7636
8025
  column.name
7637
8026
  );
7638
8027
  }) }) }),
7639
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("tbody", { className: "divide-y divide-gray-200 ", children: props.dataset?.result?.map((dataitem, index) => {
8028
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("tbody", { className: "divide-y divide-gray-200 ", children: props.dataset?.result?.map((dataitem, index) => {
7640
8029
  let validityClass = "";
7641
8030
  console.log("dataitem", dataitem);
7642
8031
  if (props.recordValidityColumnName && getNestedProperty2(dataitem, props.recordValidityColumnName) == false) {
7643
8032
  validityClass = "bg-alert-200";
7644
8033
  }
7645
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("tr", { className: validityClass, children: props?.columns?.map((column, colindex) => {
8034
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("tr", { className: validityClass, children: props?.columns?.map((column, colindex) => {
7646
8035
  console.log("column", column);
7647
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_react58.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
8036
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_react61.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7648
8037
  "td",
7649
8038
  {
7650
8039
  className: "px-6 py-2 whitespace-normal " + (column.controlType == ViewControlTypes_default.money ? "" : ""),
7651
- children: column.addhref === true ? /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
8040
+ children: column.addhref === true ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7652
8041
  Hyperlink,
7653
8042
  {
7654
8043
  className: "",
7655
8044
  href: `https://${dataitem[column.name]}`,
7656
- children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
8045
+ children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7657
8046
  ViewControl_default,
7658
8047
  {
7659
8048
  controlType: column.controlType,
@@ -7666,11 +8055,11 @@ var DataList = (props) => {
7666
8055
  }
7667
8056
  )
7668
8057
  }
7669
- ) : column.showAsLink ? /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
8058
+ ) : column.showAsLink ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7670
8059
  Hyperlink,
7671
8060
  {
7672
8061
  href: props.path + dataitem[props.columns[0].name] + "/" + (dataitem.linkUrlSegment ?? column.linkUrlSegment),
7673
- children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
8062
+ children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7674
8063
  ViewControl_default,
7675
8064
  {
7676
8065
  controlType: column.controlType,
@@ -7680,7 +8069,7 @@ var DataList = (props) => {
7680
8069
  }
7681
8070
  )
7682
8071
  }
7683
- ) : /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
8072
+ ) : /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7684
8073
  ViewControl_default,
7685
8074
  {
7686
8075
  controlType: column.controlType,
@@ -7694,10 +8083,10 @@ var DataList = (props) => {
7694
8083
  }) }, index);
7695
8084
  }) })
7696
8085
  ] }) }),
7697
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "pt-4 border-t border-t-gray-50 sticky bottom-0 h-11 mt-2 ", children: /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "flex items-center justify-between", children: [
7698
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "text-gray-700", children: label }),
7699
- /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "flex space-x-2 items-center", children: [
7700
- activePageNumber > 1 && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
8086
+ /* @__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: [
8087
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "text-gray-700", children: label }),
8088
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "flex space-x-2 items-center", children: [
8089
+ activePageNumber > 1 && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7701
8090
  Hyperlink,
7702
8091
  {
7703
8092
  className: "px-3 py-1 rounded-l-md border border-gray-300 bg-white text-gray-500 hover:bg-gray-200",
@@ -7705,9 +8094,9 @@ var DataList = (props) => {
7705
8094
  children: "Prev"
7706
8095
  }
7707
8096
  ),
7708
- activePageNumber <= 1 && /* @__PURE__ */ (0, import_jsx_runtime78.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" }),
8097
+ 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" }),
7709
8098
  renderPageNumbers(),
7710
- activePageNumber < pages && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
8099
+ activePageNumber < pages && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7711
8100
  Hyperlink,
7712
8101
  {
7713
8102
  className: "px-3 py-1 rounded-r-md border border-gray-300 bg-white text-gray-500 hover:bg-gray-200",
@@ -7715,19 +8104,19 @@ var DataList = (props) => {
7715
8104
  children: "Next"
7716
8105
  }
7717
8106
  ),
7718
- activePageNumber >= pages && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "px-3 py-1 rounded-r-md border border-gray-300 bg-gray-200 text-gray-500", children: "Next" })
8107
+ 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" })
7719
8108
  ] })
7720
8109
  ] }) })
7721
8110
  ] }),
7722
- /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(NoContentView_default, { isDataFound, children: [
7723
- (props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
8111
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(NoContentView_default, { isDataFound, children: [
8112
+ (props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
7724
8113
  "div",
7725
8114
  {
7726
8115
  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`,
7727
8116
  children: [
7728
- props.title ? /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("h2", { className: "text-lg font-semibold text-black", children: props.title }) }) : /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", {}),
7729
- /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "flex items-center gap-3", children: [
7730
- props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
8117
+ 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", {}),
8118
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "flex items-center gap-3", children: [
8119
+ props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7731
8120
  InputControl_default,
7732
8121
  {
7733
8122
  name: "Search_input",
@@ -7739,7 +8128,7 @@ var DataList = (props) => {
7739
8128
  }
7740
8129
  }
7741
8130
  ),
7742
- props.filters && props.filters.map((filter) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
8131
+ props.filters && props.filters.map((filter) => /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7743
8132
  InputControl_default,
7744
8133
  {
7745
8134
  name: filter.name,
@@ -7754,15 +8143,15 @@ var DataList = (props) => {
7754
8143
  },
7755
8144
  filter.name
7756
8145
  )),
7757
- props.addLinkHref && /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
8146
+ props.addLinkHref && /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
7758
8147
  Hyperlink,
7759
8148
  {
7760
8149
  className: "gap-1",
7761
8150
  linkType: "Primary" /* Solid */,
7762
8151
  href: props.addLinkHref,
7763
8152
  children: [
7764
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(Icon_default, { name: "plus", className: "w-4 h-4" }),
7765
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
8153
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Icon_default, { name: "plus", className: "w-4 h-4" }),
8154
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
7766
8155
  ]
7767
8156
  }
7768
8157
  )
@@ -7770,8 +8159,8 @@ var DataList = (props) => {
7770
8159
  ]
7771
8160
  }
7772
8161
  ),
7773
- /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "flex-grow overflow-y-auto justify-end bg-white rounded shadow h-[75vh]", children: [
7774
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("table", { className: "w-full divide-y divide-gray-200", children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("thead", { className: "bg-gray-50", children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("tr", { children: props?.columns?.map((column) => {
8162
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "flex-grow overflow-y-auto justify-end bg-white rounded shadow h-[75vh]", children: [
8163
+ /* @__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) => {
7775
8164
  let url = builder.getNewOrderByUrl(column.name);
7776
8165
  let icon = "chevronUpDown";
7777
8166
  if (orderBy.includes(`${column.name} desc`)) {
@@ -7781,18 +8170,18 @@ var DataList = (props) => {
7781
8170
  icon = "chevronUp";
7782
8171
  url = builder.getNewOrderByUrl(column.name + " desc");
7783
8172
  }
7784
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
8173
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7785
8174
  "th",
7786
8175
  {
7787
8176
  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" : ""),
7788
- children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
8177
+ children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7789
8178
  Hyperlink,
7790
8179
  {
7791
8180
  href: column.enableSorting ? url : void 0,
7792
8181
  className: "text-body-950",
7793
- children: /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("span", { className: "flex items-center space-x-1", children: [
7794
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { children: column.label }),
7795
- column.enableSorting && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(Icon_default, { className: "w-4 h-4", name: icon })
8182
+ children: /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("span", { className: "flex items-center space-x-1", children: [
8183
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { children: column.label }),
8184
+ column.enableSorting && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Icon_default, { className: "w-4 h-4", name: icon })
7796
8185
  ] })
7797
8186
  }
7798
8187
  )
@@ -7800,7 +8189,7 @@ var DataList = (props) => {
7800
8189
  column.name
7801
8190
  );
7802
8191
  }) }) }) }) }),
7803
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "w-full text-center bg-transparent pt-5", children: "There are no entries in the table at the moment." })
8192
+ /* @__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." })
7804
8193
  ] })
7805
8194
  ] })
7806
8195
  ] });
@@ -7808,12 +8197,12 @@ var DataList = (props) => {
7808
8197
  var DataList_default = DataList;
7809
8198
 
7810
8199
  // src/components/dataForm/DataListRenderer.tsx
7811
- var import_react59 = __toESM(require("react"));
8200
+ var import_react62 = __toESM(require("react"));
7812
8201
  init_ServiceClient();
7813
8202
  init_OdataBuilder();
7814
8203
  init_SelectWithSearchInput();
7815
8204
  var import_navigation3 = require("next/navigation");
7816
- var import_jsx_runtime79 = require("react/jsx-runtime");
8205
+ var import_jsx_runtime82 = require("react/jsx-runtime");
7817
8206
  var viewControlMap = {
7818
8207
  number: ViewControlTypes.number,
7819
8208
  lineText: ViewControlTypes.lineText,
@@ -7868,14 +8257,14 @@ var DataListRenderer = ({
7868
8257
  widgetProps
7869
8258
  }) => {
7870
8259
  const serviceClient = new ServiceClient_default(apiBaseUrl, session);
7871
- const [columns, setColumns] = (0, import_react59.useState)([]);
7872
- const [dataset, setDataset] = (0, import_react59.useState)();
7873
- const [filter, setFilters] = (0, import_react59.useState)([]);
7874
- const [addLinkHref, setAddLinkHref] = (0, import_react59.useState)("");
7875
- const [addLinkText, setAddLinkText] = (0, import_react59.useState)("");
7876
- const [serviceRoute, setServiceRoute] = (0, import_react59.useState)("");
8260
+ const [columns, setColumns] = (0, import_react62.useState)([]);
8261
+ const [dataset, setDataset] = (0, import_react62.useState)();
8262
+ const [filter, setFilters] = (0, import_react62.useState)([]);
8263
+ const [addLinkHref, setAddLinkHref] = (0, import_react62.useState)("");
8264
+ const [addLinkText, setAddLinkText] = (0, import_react62.useState)("");
8265
+ const [serviceRoute, setServiceRoute] = (0, import_react62.useState)("");
7877
8266
  const pathname = (0, import_navigation3.usePathname)();
7878
- (0, import_react59.useEffect)(() => {
8267
+ (0, import_react62.useEffect)(() => {
7879
8268
  if (!formDefinition) return;
7880
8269
  setColumns(mapApiToColumns(formDefinition));
7881
8270
  setFilters(mapApiToFilters(formDefinition));
@@ -7888,7 +8277,7 @@ var DataListRenderer = ({
7888
8277
  setAddLinkHref(resolvedAddLinkHref);
7889
8278
  setAddLinkText(formDefinition?.siteFormDataList?.addLinkText ?? "");
7890
8279
  }, [formDefinition, params]);
7891
- (0, import_react59.useEffect)(() => {
8280
+ (0, import_react62.useEffect)(() => {
7892
8281
  const fetchData = async () => {
7893
8282
  if (!serviceRoute) return;
7894
8283
  const resolvedRoute = resolveRoutePlaceholders2(serviceRoute, params);
@@ -7908,13 +8297,13 @@ var DataListRenderer = ({
7908
8297
  isActive: landingPageUrl === pathname
7909
8298
  };
7910
8299
  });
7911
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_react59.default.Fragment, { children: [
8300
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(import_react62.default.Fragment, { children: [
7912
8301
  resolvedTabs.length > 0 && // <NavigationTabsV2
7913
8302
  // tabs={resolvedTabs}
7914
8303
  // params={(widgetProps?.params ?? params) as Record<string, any>}
7915
8304
  // />
7916
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
7917
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
8305
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
8306
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
7918
8307
  DataList_default,
7919
8308
  {
7920
8309
  addLinkHref,
@@ -7936,13 +8325,13 @@ var DataListRenderer_default = DataListRenderer;
7936
8325
  init_InputControlType();
7937
8326
 
7938
8327
  // src/components/dataForm/DataForm.tsx
7939
- var import_react61 = __toESM(require("react"));
8328
+ var import_react64 = __toESM(require("react"));
7940
8329
  init_Icon();
7941
8330
  init_Button();
7942
8331
  init_StyleTypes();
7943
8332
 
7944
8333
  // src/components/dataForm/DataFormChildSection.tsx
7945
- var import_react60 = __toESM(require("react"));
8334
+ var import_react63 = __toESM(require("react"));
7946
8335
 
7947
8336
  // src/components/dataForm/StyleTypes.tsx
7948
8337
  var StyleTypes2 = /* @__PURE__ */ ((StyleTypes3) => {
@@ -7969,7 +8358,7 @@ var FORM_CHILD_ONE_TO_ONE_UPDATE = "FORM_CHILD_ONE_TO_ONE_UPDATE";
7969
8358
  var FORM_CHILD_ROW_ADD = "FORM_CHILD_ROW_ADD";
7970
8359
 
7971
8360
  // src/components/dataForm/DataFormChildSection.tsx
7972
- var import_jsx_runtime80 = require("react/jsx-runtime");
8361
+ var import_jsx_runtime83 = require("react/jsx-runtime");
7973
8362
  var DataFormChildSection = (props) => {
7974
8363
  const { section } = props;
7975
8364
  const isOneToOne = section.relationshipType === "one-to-one";
@@ -7981,7 +8370,7 @@ var DataFormChildSection = (props) => {
7981
8370
  return childItems.map((item, originalIndex) => ({ item, originalIndex })).filter((x) => !x.item.isDeleted) || [];
7982
8371
  };
7983
8372
  const childItemsToRender = getChildItemsForRendering();
7984
- const handleChildInputChange = (0, import_react60.useCallback)(
8373
+ const handleChildInputChange = (0, import_react63.useCallback)(
7985
8374
  (updatedValues) => {
7986
8375
  if (isOneToOne) {
7987
8376
  props.callback({
@@ -8008,7 +8397,7 @@ var DataFormChildSection = (props) => {
8008
8397
  },
8009
8398
  [props, isOneToOne, childItemsToRender]
8010
8399
  );
8011
- const onAddRow = (0, import_react60.useCallback)(() => {
8400
+ const onAddRow = (0, import_react63.useCallback)(() => {
8012
8401
  props.callback({
8013
8402
  sectionName: props.section.name,
8014
8403
  actionType: FORM_CHILD_ROW_ADD,
@@ -8017,7 +8406,7 @@ var DataFormChildSection = (props) => {
8017
8406
  rowIndex: -1
8018
8407
  });
8019
8408
  }, [props]);
8020
- const onDeleteRow = (0, import_react60.useCallback)(
8409
+ const onDeleteRow = (0, import_react63.useCallback)(
8021
8410
  (filteredIndex) => {
8022
8411
  const visibleItem = childItemsToRender[filteredIndex];
8023
8412
  if (visibleItem) {
@@ -8037,14 +8426,14 @@ var DataFormChildSection = (props) => {
8037
8426
  childItemsToRender,
8038
8427
  allChildItems: childItems
8039
8428
  });
8040
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_react60.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "rounded border-neutral-200 border px-6 py-4 mb-2", children: [
8041
- section.sectionTitle && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "mb-4 text-lg font-medium text-body-950", children: section.sectionTitle }),
8042
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "flex-grow flex flex-col justify-between overflow-y-auto", children: /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "flex flex-col justify-between gap-2", children: [
8043
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("table", { className: "w-full border-separate divide-y divide-gray-200", children: [
8044
- (!isOneToOne || childItemsToRender.length > 0) && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("thead", { className: "", children: section.sectionRows.map((sectionRow, sectionRowIndex) => {
8045
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("tr", { className: "", children: [
8429
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_react63.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: "rounded border-neutral-200 border px-6 py-4 mb-2", children: [
8430
+ section.sectionTitle && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: "mb-4 text-lg font-medium text-body-950", children: section.sectionTitle }),
8431
+ /* @__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: [
8432
+ /* @__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: [
8433
+ (!isOneToOne || childItemsToRender.length > 0) && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("thead", { className: "", children: section.sectionRows.map((sectionRow, sectionRowIndex) => {
8434
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("tr", { className: "", children: [
8046
8435
  sectionRow.elements.map((field, index) => {
8047
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
8436
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
8048
8437
  "th",
8049
8438
  {
8050
8439
  className: "py-3 font-normal text-left",
@@ -8053,21 +8442,21 @@ var DataFormChildSection = (props) => {
8053
8442
  field.name
8054
8443
  );
8055
8444
  }),
8056
- !section.readonly && !isOneToOne && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("th", { className: "py-3 font-normal text-left", children: "Actions" })
8445
+ !section.readonly && !isOneToOne && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("th", { className: "py-3 font-normal text-left", children: "Actions" })
8057
8446
  ] }, sectionRowIndex);
8058
8447
  }) }),
8059
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("tbody", { className: "divide-y divide-gray-200", children: childItemsToRender.map((visibleItem, filteredIndex) => {
8448
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("tbody", { className: "divide-y divide-gray-200", children: childItemsToRender.map((visibleItem, filteredIndex) => {
8060
8449
  const { item, originalIndex } = visibleItem;
8061
8450
  const rowKey = originalIndex;
8062
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_react60.default.Fragment, { children: section.sectionRows.map(
8451
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_react63.default.Fragment, { children: section.sectionRows.map(
8063
8452
  (sectionRow, sectionRowIndex) => {
8064
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
8453
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
8065
8454
  "tr",
8066
8455
  {
8067
8456
  className: "",
8068
8457
  children: [
8069
8458
  sectionRow.elements.map((field, index) => {
8070
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("td", { children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "w-11/12", children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
8459
+ 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)(
8071
8460
  InputControl_default,
8072
8461
  {
8073
8462
  index: filteredIndex,
@@ -8087,7 +8476,7 @@ var DataFormChildSection = (props) => {
8087
8476
  }
8088
8477
  ) }) }) }, field.name);
8089
8478
  }),
8090
- !section.readonly && !isOneToOne && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("td", { children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
8479
+ !section.readonly && !isOneToOne && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("td", { children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
8091
8480
  ClientButton_default,
8092
8481
  {
8093
8482
  ButtonType: StyleTypes2.Hollow,
@@ -8096,7 +8485,7 @@ var DataFormChildSection = (props) => {
8096
8485
  },
8097
8486
  dataRole: "delete",
8098
8487
  tabIndex: -1,
8099
- children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
8488
+ children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
8100
8489
  Icon_default,
8101
8490
  {
8102
8491
  className: "w-4 h-4",
@@ -8113,7 +8502,7 @@ var DataFormChildSection = (props) => {
8113
8502
  ) }, rowKey);
8114
8503
  }) })
8115
8504
  ] }) }),
8116
- !section.readonly && !isOneToOne && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "ml-1", children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
8505
+ !section.readonly && !isOneToOne && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: "ml-1", children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
8117
8506
  ClientButton_default,
8118
8507
  {
8119
8508
  ButtonType: "Link" /* Link */,
@@ -8128,9 +8517,9 @@ var DataFormChildSection = (props) => {
8128
8517
  var DataFormChildSection_default = DataFormChildSection;
8129
8518
 
8130
8519
  // src/components/dataForm/DataForm.tsx
8131
- var import_jsx_runtime81 = require("react/jsx-runtime");
8520
+ var import_jsx_runtime84 = require("react/jsx-runtime");
8132
8521
  var DataForm = (props) => {
8133
- const formRef = (0, import_react61.useRef)(null);
8522
+ const formRef = (0, import_react64.useRef)(null);
8134
8523
  console.log(props.dataItem, "dssads");
8135
8524
  const initialState = {
8136
8525
  inputValues: {},
@@ -8139,9 +8528,9 @@ var DataForm = (props) => {
8139
8528
  const childInitialState = {
8140
8529
  inputValues: []
8141
8530
  };
8142
- const [formState, dispatch] = (0, import_react61.useReducer)(FormReducer_default, initialState);
8531
+ const [formState, dispatch] = (0, import_react64.useReducer)(FormReducer_default, initialState);
8143
8532
  console.log(props.sections, "sections");
8144
- const clearHiddenChildSections = (0, import_react61.useCallback)(
8533
+ const clearHiddenChildSections = (0, import_react64.useCallback)(
8145
8534
  (changedProperty, newValues) => {
8146
8535
  if (!props.sections) return;
8147
8536
  const allChildSections = [];
@@ -8179,7 +8568,7 @@ var DataForm = (props) => {
8179
8568
  },
8180
8569
  [props.sections, formState.inputValues]
8181
8570
  );
8182
- const handleInputChange = (0, import_react61.useCallback)(
8571
+ const handleInputChange = (0, import_react64.useCallback)(
8183
8572
  async (updatedValues) => {
8184
8573
  dispatch({
8185
8574
  type: FORM_INPUT_UPDATE,
@@ -8194,7 +8583,7 @@ var DataForm = (props) => {
8194
8583
  },
8195
8584
  [dispatch, formState.inputValues, clearHiddenChildSections]
8196
8585
  );
8197
- const fetchData = (0, import_react61.useCallback)(async () => {
8586
+ const fetchData = (0, import_react64.useCallback)(async () => {
8198
8587
  if (!props.rules) return;
8199
8588
  if (Object.keys(formState.inputValues).length === 0) {
8200
8589
  return;
@@ -8225,7 +8614,7 @@ var DataForm = (props) => {
8225
8614
  console.error("Error fetching data:", error);
8226
8615
  }
8227
8616
  }, [formState.lastPropertyChanged, formState.inputValues]);
8228
- (0, import_react61.useEffect)(() => {
8617
+ (0, import_react64.useEffect)(() => {
8229
8618
  fetchData();
8230
8619
  }, [formState.inputValues, formState.lastPropertyChanged]);
8231
8620
  function replacePlaceholders(template, context, params) {
@@ -8245,7 +8634,7 @@ var DataForm = (props) => {
8245
8634
  }
8246
8635
  );
8247
8636
  }
8248
- const handleChildSectionChangeCallback = (0, import_react61.useCallback)(
8637
+ const handleChildSectionChangeCallback = (0, import_react64.useCallback)(
8249
8638
  (params) => {
8250
8639
  dispatch({
8251
8640
  type: params.actionType,
@@ -8290,7 +8679,7 @@ var DataForm = (props) => {
8290
8679
  });
8291
8680
  return cloned;
8292
8681
  }
8293
- const onClick = (0, import_react61.useCallback)(async () => {
8682
+ const onClick = (0, import_react64.useCallback)(async () => {
8294
8683
  if (props.onClick) {
8295
8684
  const isEdit = props.dataItem && Object.keys(props.dataItem).length > 0;
8296
8685
  const normalizedValues = normalizeChildSections(
@@ -8306,21 +8695,21 @@ var DataForm = (props) => {
8306
8695
  return { isSuccessful: true };
8307
8696
  }
8308
8697
  }, [formState, props]);
8309
- const handleAdditionalOnClick = (0, import_react61.useCallback)(async () => {
8698
+ const handleAdditionalOnClick = (0, import_react64.useCallback)(async () => {
8310
8699
  if (props.additionalActions?.onClick) {
8311
8700
  return await props.additionalActions.onClick(formState);
8312
8701
  } else {
8313
8702
  return { isSuccessful: true, message: "Action completed successfully" };
8314
8703
  }
8315
8704
  }, [formState, props]);
8316
- const onDelete = (0, import_react61.useCallback)(async () => {
8705
+ const onDelete = (0, import_react64.useCallback)(async () => {
8317
8706
  if (props.onDelete) {
8318
8707
  return await props.onDelete(formState);
8319
8708
  } else {
8320
8709
  return { isSuccessful: true };
8321
8710
  }
8322
8711
  }, [formState, props]);
8323
- (0, import_react61.useEffect)(() => {
8712
+ (0, import_react64.useEffect)(() => {
8324
8713
  if (props.dataItem) {
8325
8714
  dispatch({
8326
8715
  type: FORM_INITIAL_UPDATE,
@@ -8348,19 +8737,19 @@ var DataForm = (props) => {
8348
8737
  return false;
8349
8738
  }
8350
8739
  }
8351
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_react61.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "flex-grow flex flex-col", children: [
8352
- props.title && /* @__PURE__ */ (0, import_jsx_runtime81.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_runtime81.jsxs)(
8740
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_react64.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "flex-grow flex flex-col", children: [
8741
+ 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)(
8353
8742
  "div",
8354
8743
  {
8355
8744
  className: "inline-flex items-center gap-2 cursor-pointer",
8356
8745
  onClick: () => window.history.back(),
8357
8746
  children: [
8358
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Icon_default, { name: "chevronLeft", className: "w-4 h-4 text-primary-800" }),
8359
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("h2", { className: "text-lg font-semibold text-primary-800", children: props.title })
8747
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Icon_default, { name: "chevronLeft", className: "w-4 h-4 text-primary-800" }),
8748
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("h2", { className: "text-lg font-semibold text-primary-800", children: props.title })
8360
8749
  ]
8361
8750
  }
8362
8751
  ) }),
8363
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
8752
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
8364
8753
  "form",
8365
8754
  {
8366
8755
  className: "group space-y-6 pb-6 overflow-y-auto",
@@ -8381,8 +8770,8 @@ var DataForm = (props) => {
8381
8770
  }
8382
8771
  }
8383
8772
  },
8384
- children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "flex flex-col gap-6", children: props.sections?.map((section, sectionIndex) => {
8385
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_react61.default.Fragment, { children: !section.isChildSection && /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: " rounded-b-lg bg-white shadow border-neutral-200 border px-8 py-6 ", children: [
8773
+ children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: "flex flex-col gap-6", children: props.sections?.map((section, sectionIndex) => {
8774
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_react64.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: [
8386
8775
  section.sectionRows?.map(
8387
8776
  (sectionRow, sectionRowIndex) => {
8388
8777
  const elementsCount = sectionRow.elements.length;
@@ -8393,14 +8782,14 @@ var DataForm = (props) => {
8393
8782
  sectionRow.visible
8394
8783
  );
8395
8784
  }
8396
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_react61.default.Fragment, { children: isVisible && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "lg:flex gap-14 flex-1 mb-4 ", children: sectionRow.elements.map((field, index) => {
8397
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
8785
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_react64.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) => {
8786
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
8398
8787
  "div",
8399
8788
  {
8400
8789
  className: sectionRow.grow ? "grow" : "",
8401
8790
  children: [
8402
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { children: field.controlType }),
8403
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
8791
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { children: field.controlType }),
8792
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
8404
8793
  InputControl_default,
8405
8794
  {
8406
8795
  name: field.name,
@@ -8430,12 +8819,12 @@ var DataForm = (props) => {
8430
8819
  }) }) }, sectionRowIndex);
8431
8820
  }
8432
8821
  ),
8433
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { children: section.childSections?.map(
8822
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { children: section.childSections?.map(
8434
8823
  (childSection, childSectionIndex) => {
8435
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { children: childSection.name && evalutateCondition(
8824
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { children: childSection.name && evalutateCondition(
8436
8825
  formState.inputValues,
8437
8826
  childSection.visible
8438
- ) && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
8827
+ ) && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
8439
8828
  DataFormChildSection_default,
8440
8829
  {
8441
8830
  section: childSection,
@@ -8450,8 +8839,8 @@ var DataForm = (props) => {
8450
8839
  }) })
8451
8840
  }
8452
8841
  ),
8453
- /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "flex px-6 py-3 mt-2 mb-2 justify-end items-center gap-5", children: [
8454
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { children: props.additionalActions && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
8842
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "flex px-6 py-3 mt-2 mb-2 justify-end items-center gap-5", children: [
8843
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { children: props.additionalActions && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
8455
8844
  Button_default,
8456
8845
  {
8457
8846
  ButtonType: "PrimaryHollow" /* Hollow */,
@@ -8459,7 +8848,7 @@ var DataForm = (props) => {
8459
8848
  children: props.additionalActions.title
8460
8849
  }
8461
8850
  ) }),
8462
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { children: props.onDelete && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
8851
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { children: props.onDelete && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
8463
8852
  Button_default,
8464
8853
  {
8465
8854
  ButtonType: "PrimaryHollow" /* Hollow */,
@@ -8470,7 +8859,7 @@ var DataForm = (props) => {
8470
8859
  children: "Delete"
8471
8860
  }
8472
8861
  ) }),
8473
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { children: props.onClick && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
8862
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { children: props.onClick && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
8474
8863
  Button_default,
8475
8864
  {
8476
8865
  onValidate,
@@ -8488,7 +8877,7 @@ var DataForm_default = DataForm;
8488
8877
 
8489
8878
  // src/components/dataForm/DataFormRenderer.tsx
8490
8879
  init_ServiceClient();
8491
- var import_jsx_runtime82 = require("react/jsx-runtime");
8880
+ var import_jsx_runtime85 = require("react/jsx-runtime");
8492
8881
  function getAction(actions, code) {
8493
8882
  return actions?.find((a) => a.actionCode === code);
8494
8883
  }
@@ -8514,9 +8903,9 @@ var DataFormRenderer = ({
8514
8903
  "Delete"
8515
8904
  );
8516
8905
  const hasDataItem = dataItem && Object.keys(dataItem).length > 0;
8517
- return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: "flex-grow flex flex-col", children: [
8518
- widgetProps && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
8519
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
8906
+ return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "flex-grow flex flex-col", children: [
8907
+ widgetProps && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
8908
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
8520
8909
  DataForm_default,
8521
8910
  {
8522
8911
  title: !isAddPage ? "Edit " + formDefinition.formTitle + "- v2" : "Add " + formDefinition.formTitle + "- v2",
@@ -8544,6 +8933,7 @@ var DataFormRenderer_default = DataFormRenderer;
8544
8933
  DataFormRenderer,
8545
8934
  DataList,
8546
8935
  DataListRenderer,
8936
+ DateInput,
8547
8937
  DateTimeInput,
8548
8938
  EmailInput,
8549
8939
  EnterAnimationHydrator,
@@ -8558,6 +8948,8 @@ var DataFormRenderer_default = DataFormRenderer;
8558
8948
  PageBodyRenderer,
8559
8949
  PercentageInput,
8560
8950
  PhoneInput,
8951
+ RadioInput,
8952
+ Switcher,
8561
8953
  TimeInput,
8562
8954
  Toast,
8563
8955
  ToastService,