@arudovwen/form-builder-react 1.4.45 → 1.4.46

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.
@@ -1,14 +1,14 @@
1
1
  import mi, { createContext as mo, useState as P, useMemo as oi, useEffect as I, forwardRef as ye, createElement as Sn, Fragment as Zi, useContext as ji, useRef as Di, useCallback as $, memo as an } from "react";
2
2
  import { v4 as Ai } from "uuid";
3
3
  import bo from "react-datepicker";
4
- import { Listbox as di, Transition as Bi, Combobox as Pi, ComboboxInput as vo, ComboboxButton as ho, ComboboxOptions as po, ComboboxOption as go } from "@headlessui/react";
4
+ import { Listbox as di, Transition as Ei, Combobox as Pi, ComboboxInput as vo, ComboboxButton as ho, ComboboxOptions as po, ComboboxOption as go } from "@headlessui/react";
5
5
  import { toast as ki, Toaster as Ae } from "sonner";
6
6
  import Ii from "axios";
7
7
  import sn from "react-currency-input-field";
8
8
  import { createPortal as fo } from "react-dom";
9
- import { appendErrors as xo, useForm as En, useFieldArray as mn, useWatch as yo, FormProvider as Ao } from "react-hook-form";
9
+ import { appendErrors as xo, useForm as Bn, useFieldArray as mn, useWatch as yo, FormProvider as Ao } from "react-hook-form";
10
10
  import { validateFieldsNatively as So, toNestErrors as No } from "@hookform/resolvers";
11
- import * as E from "yup";
11
+ import * as B from "yup";
12
12
  import jo from "papaparse";
13
13
  import * as Xn from "xlsx";
14
14
  import { Link as ko } from "react-router-dom";
@@ -138,14 +138,14 @@ function Mo() {
138
138
  }
139
139
  return null;
140
140
  }
141
- var D = Object.assign, G = 0, H, R, T, B, U, ci, ni;
141
+ var D = Object.assign, G = 0, H, R, T, E, U, ci, ni;
142
142
  function si() {
143
143
  }
144
144
  si.__reactDisabledLog = !0;
145
145
  function hi() {
146
146
  {
147
147
  if (G === 0) {
148
- H = console.log, R = console.info, T = console.warn, B = console.error, U = console.group, ci = console.groupCollapsed, ni = console.groupEnd;
148
+ H = console.log, R = console.info, T = console.warn, E = console.error, U = console.group, ci = console.groupCollapsed, ni = console.groupEnd;
149
149
  var b = {
150
150
  configurable: !0,
151
151
  enumerable: !0,
@@ -184,7 +184,7 @@ function Mo() {
184
184
  value: T
185
185
  }),
186
186
  error: D({}, b, {
187
- value: B
187
+ value: E
188
188
  }),
189
189
  group: D({}, b, {
190
190
  value: U
@@ -666,10 +666,10 @@ const gi = mo(void 0), oe = {
666
666
  );
667
667
  R && d(
668
668
  (T) => T == null ? void 0 : T.map(
669
- (B) => B.id === G ? {
670
- ...B,
671
- questionData: B.questionData.filter((U) => R.type === "grid" ? U.gridId !== R.id && U.id !== R.id : U.id !== D)
672
- } : B
669
+ (E) => E.id === G ? {
670
+ ...E,
671
+ questionData: E.questionData.filter((U) => R.type === "grid" ? U.gridId !== R.id && U.id !== R.id : U.id !== D)
672
+ } : E
673
673
  )
674
674
  );
675
675
  },
@@ -682,7 +682,7 @@ const gi = mo(void 0), oe = {
682
682
  (U) => U.id === D
683
683
  );
684
684
  if (R === -1) return;
685
- const T = H.questionData[R], B = (U, ci = {}) => ({
685
+ const T = H.questionData[R], E = (U, ci = {}) => ({
686
686
  ...JSON.parse(JSON.stringify(U)),
687
687
  id: Ai(),
688
688
  ...ci
@@ -695,10 +695,10 @@ const gi = mo(void 0), oe = {
695
695
  if (T.type === "grid") {
696
696
  const hi = (si = ni == null ? void 0 : ni.map((li, pi) => ({ e: li, i: pi })).filter(
697
697
  ({ e: li }) => li.id === T.id || li.gridId === T.id
698
- )) == null ? void 0 : si.map(({ i: li }) => li), vi = hi.length ? Math.max(...hi) + 1 : R + 1, w = Ai(), K = B(T, {});
698
+ )) == null ? void 0 : si.map(({ i: li }) => li), vi = hi.length ? Math.max(...hi) + 1 : R + 1, w = Ai(), K = E(T, {});
699
699
  K.id = w;
700
700
  const X = ni.filter((li) => li.gridId === T.id), ui = X == null ? void 0 : X.map(
701
- (li) => B(li, { gridId: w })
701
+ (li) => E(li, { gridId: w })
702
702
  ), J = [
703
703
  ...ni.slice(0, vi),
704
704
  K,
@@ -707,7 +707,7 @@ const gi = mo(void 0), oe = {
707
707
  ];
708
708
  return { ...ci, questionData: J };
709
709
  } else {
710
- const hi = B(
710
+ const hi = E(
711
711
  T,
712
712
  T.gridId ? { gridId: T.gridId } : {}
713
713
  ), vi = [
@@ -760,10 +760,10 @@ const gi = mo(void 0), oe = {
760
760
  d(
761
761
  (R) => R == null ? void 0 : R.map(
762
762
  (T) => {
763
- var B;
763
+ var E;
764
764
  return T.id === H ? {
765
765
  ...T,
766
- questionData: (B = T.questionData) == null ? void 0 : B.map(
766
+ questionData: (E = T.questionData) == null ? void 0 : E.map(
767
767
  (U) => {
768
768
  var ci;
769
769
  return U.type === "grid" && U.gridData ? {
@@ -793,7 +793,7 @@ const gi = mo(void 0), oe = {
793
793
  return R.id === G ? {
794
794
  ...R,
795
795
  questionData: (T = R.questionData) == null ? void 0 : T.map(
796
- (B) => B.id === D.id ? { ...B, ...D } : B
796
+ (E) => E.id === D.id ? { ...E, ...D } : E
797
797
  )
798
798
  } : R;
799
799
  }
@@ -806,7 +806,7 @@ const gi = mo(void 0), oe = {
806
806
  sectionId: H,
807
807
  targetIndex: R,
808
808
  targetId: T,
809
- targetGridId: B,
809
+ targetGridId: E,
810
810
  targetCol: U
811
811
  } = D;
812
812
  d(
@@ -815,18 +815,18 @@ const gi = mo(void 0), oe = {
815
815
  const si = [...ni.questionData], hi = si.findIndex((w) => w.id === G);
816
816
  if (hi === -1) return ni;
817
817
  const vi = { ...si[hi] };
818
- if (B !== void 0 && U !== void 0) {
818
+ if (E !== void 0 && U !== void 0) {
819
819
  if (vi.type === "grid") return ni;
820
820
  const w = si.findIndex(
821
821
  (X) => {
822
822
  var ui;
823
- return X.id !== G && X.gridId === B && ((ui = X.gridPosition) == null ? void 0 : ui.col) === U;
823
+ return X.id !== G && X.gridId === E && ((ui = X.gridPosition) == null ? void 0 : ui.col) === U;
824
824
  }
825
825
  );
826
826
  let K = si.map(
827
827
  (X) => X.id === G ? {
828
828
  ...X,
829
- gridId: B,
829
+ gridId: E,
830
830
  gridPosition: { col: U }
831
831
  } : X
832
832
  );
@@ -836,13 +836,13 @@ const gi = mo(void 0), oe = {
836
836
  return delete J.gridId, delete J.gridPosition, J;
837
837
  })), { ...ni, questionData: K };
838
838
  }
839
- if (vi.gridId && R !== void 0 && B === void 0) {
839
+ if (vi.gridId && R !== void 0 && E === void 0) {
840
840
  const w = { ...vi };
841
841
  delete w.gridId, delete w.gridPosition;
842
842
  const K = si.filter((ui) => ui.id !== G), X = Math.min(R, K.length);
843
843
  return K.splice(X, 0, w), { ...ni, questionData: K };
844
844
  }
845
- if (!vi.gridId && R !== void 0 && B === void 0 && !T) {
845
+ if (!vi.gridId && R !== void 0 && E === void 0 && !T) {
846
846
  si.splice(hi, 1);
847
847
  const w = Math.min(R, si.length);
848
848
  return si.splice(w, 0, vi), { ...ni, questionData: si };
@@ -934,7 +934,7 @@ function q() {
934
934
  for (var i, e, o = 0, s = "", a = arguments.length; o < a; o++) (i = arguments[o]) && (e = Ne(i)) && (s && (s += " "), s += e);
935
935
  return s;
936
936
  }
937
- function Eo({ type: i = "calendar", className: e }) {
937
+ function Bo({ type: i = "calendar", className: e }) {
938
938
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: i === "calendar" ? /* @__PURE__ */ n.jsxs(
939
939
  "svg",
940
940
  {
@@ -1132,7 +1132,7 @@ const Nn = ({
1132
1132
  bo,
1133
1133
  {
1134
1134
  showIcon: !0,
1135
- icon: /* @__PURE__ */ n.jsx(Eo, { className: "react-datepicker__calendar-icon" }),
1135
+ icon: /* @__PURE__ */ n.jsx(Bo, { className: "react-datepicker__calendar-icon" }),
1136
1136
  showPopperArrow: !1,
1137
1137
  dateFormat: s,
1138
1138
  disabled: o,
@@ -1149,7 +1149,7 @@ const Nn = ({
1149
1149
  }
1150
1150
  ) });
1151
1151
  };
1152
- function Bo({
1152
+ function Eo({
1153
1153
  element: i,
1154
1154
  validationData: e
1155
1155
  }) {
@@ -1217,11 +1217,11 @@ const je = Object.freeze({
1217
1217
  rotate: 0,
1218
1218
  vFlip: !1,
1219
1219
  hFlip: !1
1220
- }), Bn = Object.freeze({
1220
+ }), En = Object.freeze({
1221
1221
  ...je,
1222
1222
  ...nn
1223
1223
  }), jn = Object.freeze({
1224
- ...Bn,
1224
+ ...En,
1225
1225
  body: "",
1226
1226
  hidden: !1
1227
1227
  });
@@ -1344,7 +1344,7 @@ const Te = /^[a-z0-9]+(-[a-z0-9]+)*$/, ln = (i, e, o, s = "") => {
1344
1344
  return null;
1345
1345
  }, $i = (i, e) => i ? !!((e && i.prefix === "" || i.prefix) && i.name) : !1;
1346
1346
  let Ui = !1;
1347
- function Ee(i) {
1347
+ function Be(i) {
1348
1348
  return typeof i == "boolean" && (Ui = i), Ui;
1349
1349
  }
1350
1350
  function le(i) {
@@ -1376,11 +1376,11 @@ function Ko(i, e) {
1376
1376
  const s = Oi(e, o);
1377
1377
  return !!Me(s, i);
1378
1378
  }
1379
- const Be = Object.freeze({
1379
+ const Ee = Object.freeze({
1380
1380
  width: null,
1381
1381
  height: null
1382
1382
  }), Le = Object.freeze({
1383
- ...Be,
1383
+ ...Ee,
1384
1384
  ...nn
1385
1385
  }), Go = /(-?[0-9.]*[0-9]+[0-9.]*)/g, Ho = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
1386
1386
  function de(i, e, o) {
@@ -1425,7 +1425,7 @@ function Wo(i, e, o) {
1425
1425
  const Uo = (i) => i === "unset" || i === "undefined" || i === "none";
1426
1426
  function zo(i, e) {
1427
1427
  const o = {
1428
- ...Bn,
1428
+ ...En,
1429
1429
  ...i
1430
1430
  }, s = {
1431
1431
  ...Le,
@@ -1947,7 +1947,7 @@ function pa(i, e) {
1947
1947
  }));
1948
1948
  }
1949
1949
  const ga = (i, e) => {
1950
- const o = ta(i, !0, Ee()), s = ua(o);
1950
+ const o = ta(i, !0, Be()), s = ua(o);
1951
1951
  if (!s.pending.length) {
1952
1952
  let d = !0;
1953
1953
  return e && setTimeout(() => {
@@ -1976,7 +1976,7 @@ function fa(i, e) {
1976
1976
  const o = { ...i };
1977
1977
  for (const s in e) {
1978
1978
  const a = e[s], l = typeof a;
1979
- s in Be ? (a === null || a && (l === "string" || l === "number")) && (o[s] = a) : l === typeof o[s] && (o[s] = s === "rotate" ? a % 4 : a);
1979
+ s in Ee ? (a === null || a && (l === "string" || l === "number")) && (o[s] = a) : l === typeof o[s] && (o[s] = s === "rotate" ? a % 4 : a);
1980
1980
  }
1981
1981
  return o;
1982
1982
  }
@@ -2051,7 +2051,7 @@ const Re = {
2051
2051
  xmlnsXlink: "http://www.w3.org/1999/xlink",
2052
2052
  "aria-hidden": !0,
2053
2053
  role: "img"
2054
- }, Ea = {
2054
+ }, Ba = {
2055
2055
  display: "inline-block"
2056
2056
  }, Mn = {
2057
2057
  backgroundColor: "currentColor"
@@ -2071,7 +2071,7 @@ for (const i in be) {
2071
2071
  for (const o in me)
2072
2072
  e[i + o] = me[o];
2073
2073
  }
2074
- const Ba = {
2074
+ const Ea = {
2075
2075
  ...Re,
2076
2076
  inline: !0
2077
2077
  };
@@ -2079,7 +2079,7 @@ function ve(i) {
2079
2079
  return i + (i.match(/^[-0-9.]+$/) ? "px" : "");
2080
2080
  }
2081
2081
  const La = (i, e, o) => {
2082
- const s = e.inline ? Ba : Re, a = fa(s, e), l = e.mode || "svg", t = {}, u = e.style || {}, d = {
2082
+ const s = e.inline ? Ea : Re, a = fa(s, e), l = e.mode || "svg", t = {}, u = e.style || {}, d = {
2083
2083
  ...l === "svg" ? Ta : {}
2084
2084
  };
2085
2085
  if (o) {
@@ -2164,12 +2164,12 @@ const La = (i, e, o) => {
2164
2164
  "--svg": ka(f),
2165
2165
  width: ve(c.width),
2166
2166
  height: ve(c.height),
2167
- ...Ea,
2167
+ ...Ba,
2168
2168
  ...y ? Mn : De,
2169
2169
  ...u
2170
2170
  }, Sn("span", d);
2171
2171
  };
2172
- Ee(!0);
2172
+ Be(!0);
2173
2173
  Zo("", aa);
2174
2174
  if (typeof document != "undefined" && typeof window != "undefined") {
2175
2175
  const i = window;
@@ -2259,7 +2259,7 @@ function Ie(i) {
2259
2259
  }, [i.icon, e]);
2260
2260
  const { name: h, data: v } = t;
2261
2261
  return v ? La({
2262
- ...Bn,
2262
+ ...En,
2263
2263
  ...v
2264
2264
  }, i, h) : i.children ? i.children : i.fallback ? i.fallback : Sn("span", {});
2265
2265
  }
@@ -2327,7 +2327,7 @@ function Rn({
2327
2327
  ]
2328
2328
  }
2329
2329
  ),
2330
- /* @__PURE__ */ n.jsx(Bi, { as: Zi, leave: "custom-select__transition", children: /* @__PURE__ */ n.jsx(
2330
+ /* @__PURE__ */ n.jsx(Ei, { as: Zi, leave: "custom-select__transition", children: /* @__PURE__ */ n.jsx(
2331
2331
  di.Options,
2332
2332
  {
2333
2333
  anchor: "bottom start",
@@ -2978,7 +2978,7 @@ const Ri = ({
2978
2978
  /* @__PURE__ */ n.jsx("span", { className: "absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none", children: /* @__PURE__ */ n.jsx(_, { icon: "lucide:chevron-down" }) })
2979
2979
  ] }),
2980
2980
  /* @__PURE__ */ n.jsx(
2981
- Bi,
2981
+ Ei,
2982
2982
  {
2983
2983
  leave: "transition ease-in duration-100",
2984
2984
  leaveFrom: "opacity-100",
@@ -3816,7 +3816,7 @@ function bs({
3816
3816
  children: /* @__PURE__ */ n.jsxs("div", { className: "listbox-wrapper", children: [
3817
3817
  /* @__PURE__ */ n.jsx(di.Button, { className: "listbox-button", children: r.fieldType }),
3818
3818
  /* @__PURE__ */ n.jsx(
3819
- Bi,
3819
+ Ei,
3820
3820
  {
3821
3821
  as: Zi,
3822
3822
  leave: "transition ease-in duration-100",
@@ -3851,7 +3851,7 @@ function bs({
3851
3851
  children: /* @__PURE__ */ n.jsxs("div", { className: "listbox-wrapper", children: [
3852
3852
  /* @__PURE__ */ n.jsx(di.Button, { className: "listbox-button", children: r.operator.replace("_", " ") }),
3853
3853
  /* @__PURE__ */ n.jsx(
3854
- Bi,
3854
+ Ei,
3855
3855
  {
3856
3856
  as: Zi,
3857
3857
  leave: "transition ease-in duration-100",
@@ -3895,7 +3895,7 @@ function bs({
3895
3895
  children: /* @__PURE__ */ n.jsxs("div", { className: "listbox-wrapper", children: [
3896
3896
  /* @__PURE__ */ n.jsx(di.Button, { className: "listbox-button", children: r.fieldValue === !0 ? "True" : r.fieldValue === !1 ? "False" : "Select value" }),
3897
3897
  /* @__PURE__ */ n.jsx(
3898
- Bi,
3898
+ Ei,
3899
3899
  {
3900
3900
  as: Zi,
3901
3901
  leave: "transition ease-in duration-100",
@@ -3935,25 +3935,25 @@ function bs({
3935
3935
  }) })
3936
3936
  ] });
3937
3937
  }
3938
- const vs = E.object().shape({
3939
- inputLabel: E.string().nullable(),
3940
- placeholder: E.string().nullable(),
3941
- description: E.string().nullable(),
3942
- isReadOnly: E.boolean(),
3943
- isDisabled: E.boolean(),
3944
- isRequired: E.boolean(),
3945
- requiredMessage: E.string().nullable(),
3946
- minLengthMessage: E.string().nullable(),
3947
- maxLengthMessage: E.string().nullable(),
3948
- maxLength: E.number().typeError("Expecting a number").nullable(),
3949
- minLength: E.number().typeError("Expecting a number").nullable(),
3950
- inputType: E.string().nullable(),
3951
- maxAmountMessage: E.string().nullable(),
3952
- maxAmount: E.string().nullable(),
3953
- options: E.array().of(
3954
- E.object().shape({
3955
- label: E.string().nullable(),
3956
- value: E.string().when("label", {
3938
+ const vs = B.object().shape({
3939
+ inputLabel: B.string().nullable(),
3940
+ placeholder: B.string().nullable(),
3941
+ description: B.string().nullable(),
3942
+ isReadOnly: B.boolean(),
3943
+ isDisabled: B.boolean(),
3944
+ isRequired: B.boolean(),
3945
+ requiredMessage: B.string().nullable(),
3946
+ minLengthMessage: B.string().nullable(),
3947
+ maxLengthMessage: B.string().nullable(),
3948
+ maxLength: B.number().typeError("Expecting a number").nullable(),
3949
+ minLength: B.number().typeError("Expecting a number").nullable(),
3950
+ inputType: B.string().nullable(),
3951
+ maxAmountMessage: B.string().nullable(),
3952
+ maxAmount: B.string().nullable(),
3953
+ options: B.array().of(
3954
+ B.object().shape({
3955
+ label: B.string().nullable(),
3956
+ value: B.string().when("label", {
3957
3957
  is: (i) => i && i.length > 0,
3958
3958
  then: (i) => i.required("Value is required when label is present"),
3959
3959
  otherwise: (i) => i.nullable()
@@ -3964,10 +3964,10 @@ const vs = E.object().shape({
3964
3964
  then: (i) => i.required("Options are required for radio or checkbox inputs"),
3965
3965
  otherwise: (i) => i.nullable()
3966
3966
  }),
3967
- options1: E.array().of(
3968
- E.object().shape({
3969
- label: E.string().nullable(),
3970
- value: E.string().when("label", {
3967
+ options1: B.array().of(
3968
+ B.object().shape({
3969
+ label: B.string().nullable(),
3970
+ value: B.string().when("label", {
3971
3971
  is: (i) => i && i.length > 0,
3972
3972
  then: (i) => i.required("Value is required when label is present"),
3973
3973
  otherwise: (i) => i.nullable()
@@ -3978,32 +3978,32 @@ const vs = E.object().shape({
3978
3978
  then: (i) => i.required("Options are required for radio or checkbox inputs"),
3979
3979
  otherwise: (i) => i.nullable()
3980
3980
  }),
3981
- prefix: E.string().nullable(),
3982
- url: E.string().nullable(),
3983
- method: E.string().nullable(),
3984
- denominators: E.mixed().nullable(),
3985
- responseType: E.string().nullable(),
3986
- minAmount: E.string().nullable(),
3987
- heading: E.string().nullable(),
3988
- minAmountMessage: E.string().nullable(),
3989
- columns: E.number().nullable().max(4).min(2),
3990
- value: E.mixed().nullable(),
3991
- customClass: E.string().nullable(),
3992
- elementClass: E.string().nullable(),
3993
- apiUrl: E.string().nullable(),
3994
- selectType: E.string().default("list"),
3995
- dateType: E.string().default("basic"),
3996
- validationUrl: E.string(),
3997
- signatureLink: E.string(),
3998
- minDate: E.string().nullable(),
3999
- maxDate: E.string().nullable(),
4000
- canHaveDateRange: E.boolean(),
4001
- allowYearPicker: E.boolean(),
4002
- isHidden: E.boolean(),
4003
- visibilityDependentFields: E.array().nullable(),
4004
- isMultiple: E.boolean(),
4005
- acceptedFiles: E.array(),
4006
- showState: E.boolean()
3981
+ prefix: B.string().nullable(),
3982
+ url: B.string().nullable(),
3983
+ method: B.string().nullable(),
3984
+ denominators: B.mixed().nullable(),
3985
+ responseType: B.string().nullable(),
3986
+ minAmount: B.string().nullable(),
3987
+ heading: B.string().nullable(),
3988
+ minAmountMessage: B.string().nullable(),
3989
+ columns: B.number().nullable().max(4).min(2),
3990
+ value: B.mixed().nullable(),
3991
+ customClass: B.string().nullable(),
3992
+ elementClass: B.string().nullable(),
3993
+ apiUrl: B.string().nullable(),
3994
+ selectType: B.string().default("list"),
3995
+ dateType: B.string().default("basic"),
3996
+ validationUrl: B.string(),
3997
+ signatureLink: B.string(),
3998
+ minDate: B.string().nullable(),
3999
+ maxDate: B.string().nullable(),
4000
+ canHaveDateRange: B.boolean(),
4001
+ allowYearPicker: B.boolean(),
4002
+ isHidden: B.boolean(),
4003
+ visibilityDependentFields: B.array().nullable(),
4004
+ isMultiple: B.boolean(),
4005
+ acceptedFiles: B.array(),
4006
+ showState: B.boolean()
4007
4007
  }), hs = [
4008
4008
  { title: "Configurations", key: "basic" },
4009
4009
  { title: "Validations", key: "validation" }
@@ -4023,7 +4023,7 @@ const vs = E.object().shape({
4023
4023
  trigger: p,
4024
4024
  formState: { errors: x, isSubmitting: j, isValid: S },
4025
4025
  reset: N
4026
- } = En({
4026
+ } = Bn({
4027
4027
  resolver: Dn(vs),
4028
4028
  defaultValues: {
4029
4029
  ...o,
@@ -4056,7 +4056,7 @@ const vs = E.object().shape({
4056
4056
  headers: {
4057
4057
  Authorization: `Bearer ${xi("token")}`
4058
4058
  }
4059
- }, B = $(async () => {
4059
+ }, E = $(async () => {
4060
4060
  var w, K, X;
4061
4061
  if (!A.apiUrl || !/^https?:\/\//.test(A.apiUrl)) {
4062
4062
  ki.info("Please provide a valid API URL");
@@ -4083,7 +4083,7 @@ const vs = E.object().shape({
4083
4083
  }
4084
4084
  }, [o.type, f, A.apiUrl]), U = ["manual", "api", "sheet"];
4085
4085
  function ci() {
4086
- r === "api" && B();
4086
+ r === "api" && E();
4087
4087
  }
4088
4088
  const ni = () => /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col justify-start gap-y-1", children: [
4089
4089
  /* @__PURE__ */ n.jsx("div", { className: "flex items-center mb-4 gap-x-5", children: U == null ? void 0 : U.map((w) => /* @__PURE__ */ n.jsxs("label", { className: "items-center text-base capitalize gap-x-3", children: [
@@ -5195,22 +5195,22 @@ function ys({
5195
5195
  if (!(!m || !p)) {
5196
5196
  d(!0);
5197
5197
  try {
5198
- let B;
5198
+ let E;
5199
5199
  if (p.toLowerCase() === "get") {
5200
5200
  const U = `${m}?value=${k}`;
5201
- B = await Ii.get(U, S);
5201
+ E = await Ii.get(U, S);
5202
5202
  } else if (p.toLowerCase() === "post")
5203
- B = await Ii.post(m, { value: k }, S);
5203
+ E = await Ii.post(m, { value: k }, S);
5204
5204
  else
5205
5205
  throw new Error("Unsupported HTTP method");
5206
- B.status === 200 && ((((ii = (O = B == null ? void 0 : B.data) == null ? void 0 : O.data) == null ? void 0 : ii.status) || ((z = B == null ? void 0 : B.data) == null ? void 0 : z.status)) === !0 ? (c(!0), x === "string" ? v(
5207
- ((L = (Z = B == null ? void 0 : B.data) == null ? void 0 : Z.data) == null ? void 0 : L.description) || ((W = B == null ? void 0 : B.data) == null ? void 0 : W.description) || "Validation successful"
5206
+ E.status === 200 && ((((ii = (O = E == null ? void 0 : E.data) == null ? void 0 : O.data) == null ? void 0 : ii.status) || ((z = E == null ? void 0 : E.data) == null ? void 0 : z.status)) === !0 ? (c(!0), x === "string" ? v(
5207
+ ((L = (Z = E == null ? void 0 : E.data) == null ? void 0 : Z.data) == null ? void 0 : L.description) || ((W = E == null ? void 0 : E.data) == null ? void 0 : W.description) || "Validation successful"
5208
5208
  ) : f(
5209
- ((G = (D = B == null ? void 0 : B.data) == null ? void 0 : D.data) == null ? void 0 : G.description) || ((H = B == null ? void 0 : B.data) == null ? void 0 : H.description) || {}
5209
+ ((G = (D = E == null ? void 0 : E.data) == null ? void 0 : D.data) == null ? void 0 : G.description) || ((H = E == null ? void 0 : E.data) == null ? void 0 : H.description) || {}
5210
5210
  )) : (console.error("Invalid input:", k), v("Unable to validate input"), c(!1)));
5211
- } catch (B) {
5212
- console.error("Error validating input:", B), v(
5213
- ((T = (R = B == null ? void 0 : B.response) == null ? void 0 : R.data) == null ? void 0 : T.message) || "Unable to validate input"
5211
+ } catch (E) {
5212
+ console.error("Error validating input:", E), v(
5213
+ ((T = (R = E == null ? void 0 : E.response) == null ? void 0 : R.data) == null ? void 0 : T.message) || "Unable to validate input"
5214
5214
  ), c(!1);
5215
5215
  } finally {
5216
5216
  d(!1);
@@ -5527,7 +5527,7 @@ function Ms({
5527
5527
  ] });
5528
5528
  }
5529
5529
  const Ts = an(Ms);
5530
- function Es({
5530
+ function Bs({
5531
5531
  value: i = [],
5532
5532
  onChange: e,
5533
5533
  isReadOnly: o = !1,
@@ -5639,7 +5639,7 @@ function Es({
5639
5639
  )
5640
5640
  ] });
5641
5641
  }
5642
- function Bs({
5642
+ function Es({
5643
5643
  element: i,
5644
5644
  validationData: e
5645
5645
  }) {
@@ -5659,7 +5659,7 @@ function Bs({
5659
5659
  [i.id, s]
5660
5660
  );
5661
5661
  return /* @__PURE__ */ n.jsx(
5662
- Es,
5662
+ Bs,
5663
5663
  {
5664
5664
  value: t,
5665
5665
  onChange: u,
@@ -5711,7 +5711,7 @@ const ge = ({
5711
5711
  /* @__PURE__ */ n.jsx("span", { className: "custom-select__icon", children: /* @__PURE__ */ n.jsx(_, { icon: "lucide:chevron-down" }) })
5712
5712
  ] }),
5713
5713
  /* @__PURE__ */ n.jsx(
5714
- Bi,
5714
+ Ei,
5715
5715
  {
5716
5716
  as: mi.Fragment,
5717
5717
  leave: "custom-select__transition",
@@ -6433,13 +6433,13 @@ const He = {
6433
6433
  multiSelect: Rn,
6434
6434
  numberField: bn,
6435
6435
  amountField: gs,
6436
- date: Bo,
6436
+ date: Eo,
6437
6437
  password: Ka,
6438
6438
  checkbox: Va,
6439
6439
  radio: Ga,
6440
6440
  email: bn,
6441
6441
  file: Oa,
6442
- dataGrid: Bs,
6442
+ dataGrid: Es,
6443
6443
  section: Ha,
6444
6444
  validateInput: ys,
6445
6445
  tableInput: Ss,
@@ -6558,12 +6558,12 @@ const He = {
6558
6558
  var G, H, R;
6559
6559
  const k = S + 1, O = (H = (G = t.find((T) => T.id === e)) == null ? void 0 : G.questionData) == null ? void 0 : H.find(
6560
6560
  (T) => {
6561
- var B;
6562
- return T.gridId === i.id && ((B = T.gridPosition) == null ? void 0 : B.col) === k;
6561
+ var E;
6562
+ return T.gridId === i.id && ((E = T.gridPosition) == null ? void 0 : E.col) === k;
6563
6563
  }
6564
6564
  ), ii = (R = O == null ? void 0 : O.id) != null ? R : null, z = Array.isArray(o) && o.find((T) => {
6565
- var B;
6566
- return ((B = T == null ? void 0 : T.props) == null ? void 0 : B.col) === k;
6565
+ var E;
6566
+ return ((E = T == null ? void 0 : T.props) == null ? void 0 : E.col) === k;
6567
6567
  }), Z = c && g === S, L = !!z, W = c && !!l, D = L && ii && A === "edit" ? {
6568
6568
  draggable: !0,
6569
6569
  onDragStart: (T) => {
@@ -6830,11 +6830,11 @@ function Hs({ elementData: i, sectionId: e }) {
6830
6830
  })
6831
6831
  ] });
6832
6832
  }
6833
- const Vs = an(Hs), Fs = E.object({
6834
- title: E.string(),
6835
- description: E.string(),
6836
- disabled: E.boolean().default(!1),
6837
- isHidden: E.boolean().default(!1)
6833
+ const Vs = an(Hs), Fs = B.object({
6834
+ title: B.string(),
6835
+ description: B.string(),
6836
+ disabled: B.boolean().default(!1),
6837
+ isHidden: B.boolean().default(!1)
6838
6838
  }).required(), yn = xi("config"), Ws = ({ isOpen: i, onClose: e, section: o }) => {
6839
6839
  const { updateSection: s } = mi.useContext(gi), {
6840
6840
  register: a,
@@ -6842,7 +6842,7 @@ const Vs = an(Hs), Fs = E.object({
6842
6842
  watch: t,
6843
6843
  formState: { errors: u, isSubmitting: d, isValid: r },
6844
6844
  reset: c
6845
- } = En({
6845
+ } = Bn({
6846
6846
  resolver: Dn(Fs),
6847
6847
  defaultValues: o
6848
6848
  });
@@ -6969,7 +6969,7 @@ const Vs = an(Hs), Fs = E.object({
6969
6969
  "div",
6970
6970
  {
6971
6971
  ref: s,
6972
- className: "relative flex flex-col h-full px-6 pb-5 mx-auto gap-x-4",
6972
+ className: "relative flex flex-col h-full pb-5 mx-auto gap-x-4",
6973
6973
  children: [
6974
6974
  i && /* @__PURE__ */ n.jsx(
6975
6975
  Ws,
@@ -6979,16 +6979,16 @@ const Vs = an(Hs), Fs = E.object({
6979
6979
  section: o.current
6980
6980
  }
6981
6981
  ),
6982
- /* @__PURE__ */ n.jsxs("div", { className: "relative flex flex-col flex-1 w-full py-4 gap-y-6", children: [
6982
+ /* @__PURE__ */ n.jsxs("div", { className: "relative flex flex-col flex-1 w-full gap-y-4", children: [
6983
6983
  t == null ? void 0 : t.map(
6984
6984
  (m, p) => /* @__PURE__ */ n.jsx(
6985
6985
  "div",
6986
6986
  {
6987
- className: "bg-white group cursor-pointer rounded ",
6987
+ className: "bg-white group cursor-pointer rounded-lg ",
6988
6988
  children: /* @__PURE__ */ n.jsxs(
6989
6989
  "div",
6990
6990
  {
6991
- className: `border border-gray-100 rounded px-4 shadow-[rgba(149,157,165,0.2)_0px_2px_4px] transition-colors duration-200
6991
+ className: `bg-white border border-gray-100 rounded-lg px-4 shadow-[rgba(149,157,165,0.2)_0px_2px_2px] transition-colors duration-200
6992
6992
  ${r === m.id ? "border-dashed border-blue-400 bg-[#f7f8fa]" : ""} ${c.includes(p) ? "min-h-[300px] pb-6 " : ""}`,
6993
6993
  children: [
6994
6994
  /* @__PURE__ */ n.jsxs("div", { className: "flex items-center justify-between", children: [
@@ -7118,18 +7118,18 @@ function _s({
7118
7118
  console.error("Drop error:", d);
7119
7119
  }
7120
7120
  }, []);
7121
- return /* @__PURE__ */ n.jsxs("div", { className: "flex gap-4", children: [
7121
+ return /* @__PURE__ */ n.jsxs("div", { className: "flex gap-x-6 h-full", children: [
7122
7122
  /* @__PURE__ */ n.jsx(
7123
7123
  "div",
7124
7124
  {
7125
7125
  onDragOver: (u) => u.preventDefault(),
7126
7126
  onDrop: (u) => t(u),
7127
- className: "bg-white p-4 border border-[#E4E7EC] shadow rounded-lg h-full overflow-y-auto no-scrollbar max-h-[calc(100vh-60px)] flex-1 form_builder",
7127
+ className: " h-full overflow-y-auto no-scrollbar max-h-[calc(100vh-80px)] flex-1 form_builder",
7128
7128
  children: /* @__PURE__ */ n.jsx(Us, {})
7129
7129
  }
7130
7130
  ),
7131
7131
  /* @__PURE__ */ n.jsx(
7132
- Bi,
7132
+ Ei,
7133
7133
  {
7134
7134
  show: l,
7135
7135
  as: "div",
@@ -7139,8 +7139,8 @@ function _s({
7139
7139
  leave: "transition-all duration-300 ease-in-out origin-right",
7140
7140
  leaveFrom: "opacity-100 w-2/5 translate-x-0",
7141
7141
  leaveTo: "opacity-0 w-0 translate-x-10 px-0 overflow-hidden border-transparent shadow-none",
7142
- className: "shrink-0 bg-white shadow border border-[#E4E7EC] rounded-lg h-full overflow-y-auto no-scrollbar max-h-[calc(100vh-60px)] form_preview w-2/5",
7143
- children: /* @__PURE__ */ n.jsx("div", { className: "py-4 px-2 min-w-[320px]", children: /* @__PURE__ */ n.jsx(zs, {}) })
7142
+ className: "shrink-0 overflow-y-auto no-scrollbar max-h-[calc(100vh-70px)] form_preview w-2/5",
7143
+ children: /* @__PURE__ */ n.jsx("div", { className: "px-2 shadow_box min-w-[320px] bg-white border border-gray-100 rounded-lg", children: /* @__PURE__ */ n.jsx(zs, {}) })
7144
7144
  }
7145
7145
  )
7146
7146
  ] });
@@ -7187,7 +7187,7 @@ const An = [
7187
7187
  )
7188
7188
  })).filter((g) => g.elements.length > 0);
7189
7189
  return /* @__PURE__ */ n.jsxs("div", { className: "pt-4 pb-6", children: [
7190
- /* @__PURE__ */ n.jsx("div", { className: "px-5 mb-4", children: /* @__PURE__ */ n.jsx(
7190
+ /* @__PURE__ */ n.jsx("div", { className: "px-5 mb-6", children: /* @__PURE__ */ n.jsx(
7191
7191
  "input",
7192
7192
  {
7193
7193
  className: "field-control",
@@ -7198,8 +7198,7 @@ const An = [
7198
7198
  id: "search"
7199
7199
  }
7200
7200
  ) }),
7201
- /* @__PURE__ */ n.jsx("hr", {}),
7202
- /* @__PURE__ */ n.jsx("div", { children: /* @__PURE__ */ n.jsx("ul", { className: "grid gap-y-5 mt-3 px-5 max-h-[80vh] overflow-y-auto no-scrollbar", children: v == null ? void 0 : v.map((g, y) => {
7201
+ /* @__PURE__ */ n.jsx("div", { children: /* @__PURE__ */ n.jsx("ul", { className: "grid gap-y-5 mt-3 px-5 max-h-[85vh] overflow-y-auto no-scrollbar", children: v == null ? void 0 : v.map((g, y) => {
7203
7202
  var f;
7204
7203
  return /* @__PURE__ */ n.jsxs("li", { children: [
7205
7204
  /* @__PURE__ */ n.jsx("h4", { className: "mb-2 text-[11px] font-bold text-gray-500 uppercase", children: g.title }),
@@ -7235,7 +7234,7 @@ const An = [
7235
7234
  ] }, y);
7236
7235
  }) }) })
7237
7236
  ] });
7238
- }, Ys = an(Js), Ei = ({
7237
+ }, Ys = an(Js), Bi = ({
7239
7238
  text: i = "",
7240
7239
  isDisabled: e = !1,
7241
7240
  isLoading: o = !1,
@@ -7420,7 +7419,7 @@ function Qs({
7420
7419
  function j() {
7421
7420
  g(!1), u && y !== i && u(y.trim());
7422
7421
  }
7423
- return /* @__PURE__ */ n.jsxs("div", { className: "px-[30px] py-3 flex justify-between items-center bg-[#F9F9FB] top_bar", children: [
7422
+ return /* @__PURE__ */ n.jsxs("div", { className: "px-[30px] py-3 flex justify-between items-center bg-[#F9F9FB] top_bar h-full", children: [
7424
7423
  /* @__PURE__ */ n.jsxs("span", { className: "flex items-center gap-x-2", children: [
7425
7424
  e && /* @__PURE__ */ n.jsx(
7426
7425
  "button",
@@ -7463,7 +7462,7 @@ function Qs({
7463
7462
  ),
7464
7463
  /* @__PURE__ */ n.jsxs("div", { className: "flex justify-end text-xs gap-x-3", children: [
7465
7464
  /* @__PURE__ */ n.jsx(
7466
- Ei,
7465
+ Bi,
7467
7466
  {
7468
7467
  onClick: () => r((S) => !S),
7469
7468
  text: "Preview",
@@ -7476,7 +7475,7 @@ function Qs({
7476
7475
  }
7477
7476
  ),
7478
7477
  /* @__PURE__ */ n.jsx(
7479
- Ei,
7478
+ Bi,
7480
7479
  {
7481
7480
  onClick: p,
7482
7481
  text: "Save",
@@ -7489,7 +7488,7 @@ function Qs({
7489
7488
  }
7490
7489
  ),
7491
7490
  /* @__PURE__ */ n.jsx(
7492
- Ei,
7491
+ Bi,
7493
7492
  {
7494
7493
  onClick: x,
7495
7494
  text: "Publish",
@@ -7527,25 +7526,25 @@ function Xs({
7527
7526
  }) {
7528
7527
  return /* @__PURE__ */ n.jsxs(Se, { children: [
7529
7528
  /* @__PURE__ */ n.jsx(Ae, { position: "top-right", richColors: !0, closeButton: !0 }),
7530
- /* @__PURE__ */ n.jsxs("div", { className: "w-full h-full bg-[#F8F9FC] flex flex-col", children: [
7531
- /* @__PURE__ */ n.jsx("div", { className: "border-b bg-white border-[#E4E7EC]", children: /* @__PURE__ */ n.jsx(
7532
- Qs,
7533
- {
7534
- title: o,
7535
- goBackUrl: s,
7536
- onSubmit: i,
7537
- onPublish: l,
7538
- previewLoading: t,
7539
- saveLoading: u,
7540
- publishLoading: d,
7541
- onTitleChange: r
7542
- }
7543
- ) }),
7544
- /* @__PURE__ */ n.jsxs("div", { className: "flex flex-1 ", children: [
7545
- /* @__PURE__ */ n.jsx("div", { children: /* @__PURE__ */ n.jsx("div", { className: "w-[270px] h-[calc(100vh-64px)] border-r border-[#E4E7EC] bg-white ", children: /* @__PURE__ */ n.jsx(Ys, {}) }) }),
7546
- /* @__PURE__ */ n.jsx("div", { className: "flex-1 h-full max-h-full z-[1] p-4", children: a ? /* @__PURE__ */ n.jsx(Ve, { loadingClass: "!w-full !h-[800px]" }) : /* @__PURE__ */ n.jsx(_s, { questionData: e, uploadUrl: c }) })
7529
+ /* @__PURE__ */ n.jsx("div", { className: "w-full h-full bg-[#F8F9FC] flex flex-col", children: /* @__PURE__ */ n.jsxs("div", { className: "flex flex-1 ", children: [
7530
+ /* @__PURE__ */ n.jsx("div", { children: /* @__PURE__ */ n.jsx("div", { className: "w-[270px] h-screen border-r border-[#E4E7EC] bg-white ", children: /* @__PURE__ */ n.jsx(Ys, {}) }) }),
7531
+ /* @__PURE__ */ n.jsxs("div", { className: "flex-1 h-full max-h-full z-[1]", children: [
7532
+ /* @__PURE__ */ n.jsx("div", { className: " h-[70px]", children: /* @__PURE__ */ n.jsx(
7533
+ Qs,
7534
+ {
7535
+ title: o,
7536
+ goBackUrl: s,
7537
+ onSubmit: i,
7538
+ onPublish: l,
7539
+ previewLoading: t,
7540
+ saveLoading: u,
7541
+ publishLoading: d,
7542
+ onTitleChange: r
7543
+ }
7544
+ ) }),
7545
+ /* @__PURE__ */ n.jsx("div", { className: "p-6 h-[calc(100vh-70px)]", children: a ? /* @__PURE__ */ n.jsx(Ve, { loadingClass: "!w-full !h-[800px]" }) : /* @__PURE__ */ n.jsx(_s, { questionData: e, uploadUrl: c }) })
7547
7546
  ] })
7548
- ] })
7547
+ ] }) })
7549
7548
  ] });
7550
7549
  }
7551
7550
  const Sl = ({
@@ -7591,19 +7590,19 @@ const Sl = ({
7591
7590
  minAmount: (i) => `Minimum amount is ${i}`,
7592
7591
  maxAmount: (i) => `Maximum amount is ${i}`
7593
7592
  }, il = (i) => ({
7594
- textField: E.string().nullable(),
7595
- longText: E.string().nullable(),
7596
- numberField: E.number().nullable().transform((o) => isNaN(o) ? null : o),
7597
- amountField: E.number().nullable().transform((o) => isNaN(o) ? null : o),
7598
- selectField: E.string().nullable(),
7599
- checkbox: E.mixed().nullable(),
7600
- radio: E.mixed().nullable(),
7601
- email: E.string().nullable().test("email-format", Mi.email, (o) => !o || o.trim() === "" ? !0 : /^[a-zA-Z0-9._%+\-]+@[a-zA-Z0-9.\-]+\.[a-zA-Z]{2,}$/.test(o)),
7602
- date: E.date().typeError("Invalid date").nullable(),
7603
- url: E.string().nullable().test("url-format", Mi.url, (o) => !o || o.trim() === "" ? !0 : /^(https?:\/\/)?([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}(\/.*)?$/.test(
7593
+ textField: B.string().nullable(),
7594
+ longText: B.string().nullable(),
7595
+ numberField: B.number().nullable().transform((o) => isNaN(o) ? null : o),
7596
+ amountField: B.number().nullable().transform((o) => isNaN(o) ? null : o),
7597
+ selectField: B.string().nullable(),
7598
+ checkbox: B.mixed().nullable(),
7599
+ radio: B.mixed().nullable(),
7600
+ email: B.string().nullable().test("email-format", Mi.email, (o) => !o || o.trim() === "" ? !0 : /^[a-zA-Z0-9._%+\-]+@[a-zA-Z0-9.\-]+\.[a-zA-Z]{2,}$/.test(o)),
7601
+ date: B.date().typeError("Invalid date").nullable(),
7602
+ url: B.string().nullable().test("url-format", Mi.url, (o) => !o || o.trim() === "" ? !0 : /^(https?:\/\/)?([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}(\/.*)?$/.test(
7604
7603
  o
7605
7604
  ))
7606
- })[i] || E.mixed().nullable(), nl = (i, e, o) => e ? i.type === "boolean" ? i.oneOf([!0], o || Mi.required) : i.required(o || Mi.required) : i, el = (i, {
7605
+ })[i] || B.mixed().nullable(), nl = (i, e, o) => e ? i.type === "boolean" ? i.oneOf([!0], o || Mi.required) : i.required(o || Mi.required) : i, el = (i, {
7607
7606
  minLength: e,
7608
7607
  maxLength: o,
7609
7608
  minLengthMessage: s,
@@ -7650,7 +7649,7 @@ function al(i) {
7650
7649
  s
7651
7650
  )), e[a] = r;
7652
7651
  });
7653
- }), E.object().shape(e);
7652
+ }), B.object().shape(e);
7654
7653
  }
7655
7654
  const en = ({ element: i, validationData: e }) => {
7656
7655
  const o = He[i.type], { answerData: s } = ji(gi), a = oi(
@@ -7870,7 +7869,7 @@ const ul = ({
7870
7869
  ), f = (ni = y == null ? void 0 : y.length) != null ? ni : 0, m = xi("config"), p = oi(
7871
7870
  () => al(y),
7872
7871
  [y]
7873
- ), x = En({
7872
+ ), x = Bn({
7874
7873
  resolver: Dn(p),
7875
7874
  mode: "onSubmit",
7876
7875
  defaultValues: {}
@@ -7942,7 +7941,7 @@ const ul = ({
7942
7941
  Object.keys(z).length > 0 || s == null || s(li);
7943
7942
  },
7944
7943
  [z, y, s]
7945
- ), B = $(async () => {
7944
+ ), E = $(async () => {
7946
7945
  var J, li;
7947
7946
  if (!o) {
7948
7947
  const pi = (li = (J = y == null ? void 0 : y[v]) == null ? void 0 : J.questionData) == null ? void 0 : li.map(
@@ -8015,29 +8014,32 @@ const ul = ({
8015
8014
  (ui = y == null ? void 0 : y[v]) == null ? void 0 : ui.id
8016
8015
  ) }),
8017
8016
  !d && /* @__PURE__ */ n.jsx("footer", { className: "flex items-center justify-end gap-4 footer flex-wrap", children: t === "multi" ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
8018
- /* @__PURE__ */ n.jsxs("div", { className: "flex gap-x-4 justify-end navigation_container", children: [
8019
- v > 0 && /* @__PURE__ */ n.jsx(
8020
- Ei,
8021
- {
8022
- type: "button",
8023
- text: "Back",
8024
- onClick: U,
8025
- btnClass: "text-gray-700 back_btn text-sm border-[#98A2B3] !font-medium !py-[10px] px-10 bg-gray-200 rounded-lg"
8026
- }
8027
- ),
8017
+ /* @__PURE__ */ n.jsxs("div", { className: "flex gap-x-4 justify-between navigation_container w-full", children: [
8018
+ /* @__PURE__ */ n.jsxs("div", { children: [
8019
+ " ",
8020
+ v > 0 && /* @__PURE__ */ n.jsx(
8021
+ Bi,
8022
+ {
8023
+ type: "button",
8024
+ text: "Back",
8025
+ onClick: U,
8026
+ btnClass: "text-gray-700 back_btn text-sm border-[#98A2B3] !font-medium !py-[10px] px-10 bg-gray-200 rounded-lg"
8027
+ }
8028
+ )
8029
+ ] }),
8028
8030
  v < f - 1 && /* @__PURE__ */ n.jsx(
8029
- Ei,
8031
+ Bi,
8030
8032
  {
8031
8033
  type: "button",
8032
8034
  text: "Next",
8033
- onClick: B,
8035
+ onClick: E,
8034
8036
  style: { background: (m == null ? void 0 : m.buttonColor) || "#333" },
8035
8037
  btnClass: "text-gray-700 next_btn text-sm border-[#98A2B3] !font-medium !py-[10px] px-10 bg-blue-600 text-white rounded-lg continue_btn"
8036
8038
  }
8037
8039
  )
8038
8040
  ] }),
8039
8041
  (v === f - 1 || l) && !o && (u != null ? u : /* @__PURE__ */ n.jsx(
8040
- Ei,
8042
+ Bi,
8041
8043
  {
8042
8044
  isDisabled: Z || Object.keys(z).length > 0,
8043
8045
  isLoading: Z,
@@ -8048,7 +8050,7 @@ const ul = ({
8048
8050
  }
8049
8051
  ))
8050
8052
  ] }) : !o && (u != null ? u : /* @__PURE__ */ n.jsx(
8051
- Ei,
8053
+ Bi,
8052
8054
  {
8053
8055
  isDisabled: Z || Object.keys(z).length > 0,
8054
8056
  isLoading: Z,