react-hook-form-cloudscape 1.4.3-dev.1 → 1.4.3

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.
@@ -9,7 +9,7 @@ export interface CAttributeEditorProps<T extends FieldValues> extends Omit<Attri
9
9
  name: FieldArrayPath<T>;
10
10
  control: Control<T>;
11
11
  definition: Definition<T>[];
12
- defaultValue?: FieldArray<T>;
12
+ defaultValue: FieldArray<T>;
13
13
  handleState?: boolean;
14
14
  onRemoveButtonClick?: (event: NonCancelableCustomEvent<AttributeEditorProps.RemoveButtonClickDetail>, remove: UseFieldArrayRemove) => void;
15
15
  onAddButtonClick?: (event: NonCancelableCustomEvent<object>, append: UseFieldArrayAppend<T, ArrayPath<T>>) => void;
@@ -17,7 +17,7 @@ const CAttributeEditor = (_a) => {
17
17
  }
18
18
  onRemoveButtonClick === null || onRemoveButtonClick === void 0 ? void 0 : onRemoveButtonClick(e, remove);
19
19
  }, onAddButtonClick: (e) => {
20
- if (handleState && defaultValue) {
20
+ if (handleState) {
21
21
  append(defaultValue);
22
22
  }
23
23
  onAddButtonClick === null || onAddButtonClick === void 0 ? void 0 : onAddButtonClick(e, append);
@@ -1 +1 @@
1
- {"version":3,"file":"attribute-editor.js","sourceRoot":"","sources":["../../src/components/attribute-editor/attribute-editor.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,eAAe,EAAkD,MAAM,+BAA+B,CAAC;AAChH,OAAO,EAIL,aAAa,EACb,YAAY,EACZ,GAAG,GAKJ,MAAM,iBAAiB,CAAC;AAsBzB,MAAM,gBAAgB,GAAG,CAAmC,EAStB,EAAE,EAAE;QATkB,EAC1D,IAAI,EACJ,OAAO,EACP,mBAAmB,EACnB,gBAAgB,EAChB,UAAU,EACV,YAAY,EACZ,WAAW,GAAG,IAAI,OAEkB,EADjC,KAAK,cARkD,2GAS3D,CADS;IAER,MAAM,EAAE,MAAM,EAAE,GAAG,YAAY,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC;IAC7C,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,aAAa,CAAe;QAC7D,IAAI;QACJ,OAAO;KACR,CAAC,CAAC;IAEH,MAAM,mBAAmB,GAAG,OAAO,CACjC,GAAG,EAAE,CACH,UAAU,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,iBACtB,SAAS,EAAE,CAAC,KAAmB,EAAE,KAAa,EAAE,EAAE,CAChD,GAAG,CAAC,KAAK;YACR,GAAG,CAAC,MAAM,EAAE,GAAG,IAAI,IAAI,KAAK,IAAI,GAAG,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,WAAW,EAAE,UAAU,CAAwB,IACpG,GAAG,EACN,CAAC,EACL,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,CAAC,CAC3B,CAAC;IAEF,OAAO,CACL,oBAAC,eAAe,kBACd,UAAU,EAAE,mBAAmB,EAC/B,KAAK,EAAG,MAAyB,IAAI,EAAE,EACvC,mBAAmB,EAAE,CAAC,CAAC,EAAE,EAAE;YACzB,IAAI,WAAW,EAAE,CAAC;gBAChB,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;YAC7B,CAAC;YACD,mBAAmB,aAAnB,mBAAmB,uBAAnB,mBAAmB,CAAG,CAAC,EAAE,MAAM,CAAC,CAAC;QACnC,CAAC,EACD,gBAAgB,EAAE,CAAC,CAAC,EAAE,EAAE;YACtB,IAAI,WAAW,IAAI,YAAY,EAAE,CAAC;gBAChC,MAAM,CAAC,YAAY,CAAC,CAAC;YACvB,CAAC;YACD,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAG,CAAC,EAAE,MAAM,CAAC,CAAC;QAChC,CAAC,IACG,KAAK,EACT,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"attribute-editor.js","sourceRoot":"","sources":["../../src/components/attribute-editor/attribute-editor.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,eAAe,EAAkD,MAAM,+BAA+B,CAAC;AAChH,OAAO,EAIL,aAAa,EACb,YAAY,EACZ,GAAG,GAKJ,MAAM,iBAAiB,CAAC;AAsBzB,MAAM,gBAAgB,GAAG,CAAmC,EAStB,EAAE,EAAE;QATkB,EAC1D,IAAI,EACJ,OAAO,EACP,mBAAmB,EACnB,gBAAgB,EAChB,UAAU,EACV,YAAY,EACZ,WAAW,GAAG,IAAI,OAEkB,EADjC,KAAK,cARkD,2GAS3D,CADS;IAER,MAAM,EAAE,MAAM,EAAE,GAAG,YAAY,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC;IAC7C,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,aAAa,CAAe;QAC7D,IAAI;QACJ,OAAO;KACR,CAAC,CAAC;IAEH,MAAM,mBAAmB,GAAG,OAAO,CACjC,GAAG,EAAE,CACH,UAAU,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,iBACtB,SAAS,EAAE,CAAC,KAAmB,EAAE,KAAa,EAAE,EAAE,CAChD,GAAG,CAAC,KAAK;YACR,GAAG,CAAC,MAAM,EAAE,GAAG,IAAI,IAAI,KAAK,IAAI,GAAG,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,WAAW,EAAE,UAAU,CAAwB,IACpG,GAAG,EACN,CAAC,EACL,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,CAAC,CAC3B,CAAC;IAEF,OAAO,CACL,oBAAC,eAAe,kBACd,UAAU,EAAE,mBAAmB,EAC/B,KAAK,EAAG,MAAyB,IAAI,EAAE,EACvC,mBAAmB,EAAE,CAAC,CAAC,EAAE,EAAE;YACzB,IAAI,WAAW,EAAE,CAAC;gBAChB,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;YAC7B,CAAC;YACD,mBAAmB,aAAnB,mBAAmB,uBAAnB,mBAAmB,CAAG,CAAC,EAAE,MAAM,CAAC,CAAC;QACnC,CAAC,EACD,gBAAgB,EAAE,CAAC,CAAC,EAAE,EAAE;YACtB,IAAI,WAAW,EAAE,CAAC;gBAChB,MAAM,CAAC,YAAY,CAAC,CAAC;YACvB,CAAC;YACD,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAG,CAAC,EAAE,MAAM,CAAC,CAAC;QAChC,CAAC,IACG,KAAK,EACT,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -9,7 +9,7 @@ export interface CAttributeEditorProps<T extends FieldValues> extends Omit<Attri
9
9
  name: FieldArrayPath<T>;
10
10
  control: Control<T>;
11
11
  definition: Definition<T>[];
12
- defaultValue?: FieldArray<T>;
12
+ defaultValue: FieldArray<T>;
13
13
  handleState?: boolean;
14
14
  onRemoveButtonClick?: (event: NonCancelableCustomEvent<AttributeEditorProps.RemoveButtonClickDetail>, remove: UseFieldArrayRemove) => void;
15
15
  onAddButtonClick?: (event: NonCancelableCustomEvent<object>, append: UseFieldArrayAppend<T, ArrayPath<T>>) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-hook-form-cloudscape",
3
- "version": "1.4.3-dev.1",
3
+ "version": "1.4.3",
4
4
  "description": "A React Hook Form wrapper designed for effortless integration of validations into Cloudscape forms and inputs",
5
5
  "repository": {
6
6
  "type": "git",
@@ -15,15 +15,15 @@ var we;
15
15
  function Yr() {
16
16
  if (we) return L;
17
17
  we = 1;
18
- var l = De, u = Symbol.for("react.element"), a = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, f = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, n = { key: !0, ref: !0, __self: !0, __source: !0 };
18
+ var l = De, u = Symbol.for("react.element"), n = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, f = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
19
19
  function t(d, v, R) {
20
20
  var o, p = {}, _ = null, g = null;
21
21
  R !== void 0 && (_ = "" + R), v.key !== void 0 && (_ = "" + v.key), v.ref !== void 0 && (g = v.ref);
22
- for (o in v) s.call(v, o) && !n.hasOwnProperty(o) && (p[o] = v[o]);
22
+ for (o in v) s.call(v, o) && !a.hasOwnProperty(o) && (p[o] = v[o]);
23
23
  if (d && d.defaultProps) for (o in v = d.defaultProps, v) p[o] === void 0 && (p[o] = v[o]);
24
24
  return { $$typeof: u, type: d, key: _, ref: g, props: p, _owner: f.current };
25
25
  }
26
- return L.Fragment = a, L.jsx = t, L.jsxs = t, L;
26
+ return L.Fragment = n, L.jsx = t, L.jsxs = t, L;
27
27
  }
28
28
  var U = {};
29
29
  /**
@@ -38,7 +38,7 @@ var U = {};
38
38
  var ke;
39
39
  function Mr() {
40
40
  return ke || (ke = 1, process.env.NODE_ENV !== "production" && function() {
41
- var l = De, u = Symbol.for("react.element"), a = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), f = Symbol.for("react.strict_mode"), n = Symbol.for("react.profiler"), t = Symbol.for("react.provider"), d = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), R = Symbol.for("react.suspense"), o = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), T = Symbol.iterator, K = "@@iterator";
41
+ var l = De, u = Symbol.for("react.element"), n = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), f = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), t = Symbol.for("react.provider"), d = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), R = Symbol.for("react.suspense"), o = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), T = Symbol.iterator, K = "@@iterator";
42
42
  function Ae(e) {
43
43
  if (e === null || typeof e != "object")
44
44
  return null;
@@ -66,7 +66,7 @@ function Mr() {
66
66
  var $e = !1, We = !1, Ye = !1, Me = !1, Le = !1, ae;
67
67
  ae = Symbol.for("react.module.reference");
68
68
  function Ue(e) {
69
- return !!(typeof e == "string" || typeof e == "function" || e === s || e === n || Le || e === f || e === R || e === o || Me || e === g || $e || We || Ye || typeof e == "object" && e !== null && (e.$$typeof === _ || e.$$typeof === p || e.$$typeof === t || e.$$typeof === d || e.$$typeof === v || // This needs to include all possible module reference object
69
+ return !!(typeof e == "string" || typeof e == "function" || e === s || e === a || Le || e === f || e === R || e === o || Me || e === g || $e || We || Ye || typeof e == "object" && e !== null && (e.$$typeof === _ || e.$$typeof === p || e.$$typeof === t || e.$$typeof === d || e.$$typeof === v || // This needs to include all possible module reference object
70
70
  // types supported by any Flight configuration anywhere since
71
71
  // we don't know which Flight build this will end up being used
72
72
  // with.
@@ -92,9 +92,9 @@ function Mr() {
92
92
  switch (e) {
93
93
  case s:
94
94
  return "Fragment";
95
- case a:
96
- return "Portal";
97
95
  case n:
96
+ return "Portal";
97
+ case a:
98
98
  return "Profiler";
99
99
  case f:
100
100
  return "StrictMode";
@@ -633,10 +633,10 @@ var E = Lr();
633
633
  const qr = ({
634
634
  name: l,
635
635
  control: u,
636
- onRemoveButtonClick: a,
636
+ onRemoveButtonClick: n,
637
637
  onAddButtonClick: s,
638
638
  definition: f,
639
- defaultValue: n,
639
+ defaultValue: a,
640
640
  handleState: t = !0,
641
641
  ...d
642
642
  }) => {
@@ -656,10 +656,10 @@ const qr = ({
656
656
  definition: _,
657
657
  items: R || [],
658
658
  onRemoveButtonClick: (g) => {
659
- t && p(g.detail.itemIndex), a == null || a(g, p);
659
+ t && p(g.detail.itemIndex), n == null || n(g, p);
660
660
  },
661
661
  onAddButtonClick: (g) => {
662
- t && n && o(n), s == null || s(g, o);
662
+ t && o(a), s == null || s(g, o);
663
663
  },
664
664
  ...d
665
665
  }
@@ -667,18 +667,18 @@ const qr = ({
667
667
  }, Gr = ({
668
668
  name: l,
669
669
  control: u,
670
- defaultValue: a,
670
+ defaultValue: n,
671
671
  rules: s,
672
672
  shouldUnregister: f = !1,
673
- onBlur: n,
673
+ onBlur: a,
674
674
  onChange: t,
675
675
  ...d
676
676
  }) => {
677
677
  const v = x(
678
678
  (o) => {
679
- n == null || n(o);
679
+ a == null || a(o);
680
680
  },
681
- [n]
681
+ [a]
682
682
  ), R = x(
683
683
  (o) => {
684
684
  t == null || t(o);
@@ -690,7 +690,7 @@ const qr = ({
690
690
  {
691
691
  name: l,
692
692
  control: u,
693
- defaultValue: a,
693
+ defaultValue: n,
694
694
  rules: s,
695
695
  shouldUnregister: f,
696
696
  render: ({ field: { ref: o, onBlur: p, onChange: _, value: g } }) => /* @__PURE__ */ E.jsx(
@@ -713,78 +713,78 @@ const qr = ({
713
713
  }, Kr = ({
714
714
  name: l,
715
715
  control: u,
716
- onChange: a,
716
+ onChange: n,
717
717
  ...s
718
718
  }) => {
719
719
  const f = x(
720
- (n, t) => {
721
- n(t.detail.checked), a == null || a(t);
720
+ (a, t) => {
721
+ a(t.detail.checked), n == null || n(t);
722
722
  },
723
- [a]
723
+ [n]
724
724
  );
725
725
  return /* @__PURE__ */ E.jsx(
726
726
  S,
727
727
  {
728
728
  name: l,
729
729
  control: u,
730
- render: ({ field: { ref: n, onChange: t, value: d = !1 } }) => /* @__PURE__ */ E.jsx(yr, { ref: n, onChange: f.bind(null, t), checked: d, ...s })
730
+ render: ({ field: { ref: a, onChange: t, value: d = !1 } }) => /* @__PURE__ */ E.jsx(yr, { ref: a, onChange: f.bind(null, t), checked: d, ...s })
731
731
  }
732
732
  );
733
733
  }, zr = ({
734
734
  name: l,
735
735
  control: u,
736
- onSelectionChange: a,
736
+ onSelectionChange: n,
737
737
  ...s
738
738
  }) => {
739
739
  const f = x(
740
- (n, t) => {
741
- n(t.detail.selectedItems), a == null || a(t);
740
+ (a, t) => {
741
+ a(t.detail.selectedItems), n == null || n(t);
742
742
  },
743
- [a]
743
+ [n]
744
744
  );
745
745
  return /* @__PURE__ */ E.jsx(
746
746
  S,
747
747
  {
748
748
  name: l,
749
749
  control: u,
750
- render: ({ field: { onChange: n, value: t } }) => /* @__PURE__ */ E.jsx(Rr, { onSelectionChange: f.bind(null, n), selectedItems: t, ...s })
750
+ render: ({ field: { onChange: a, value: t } }) => /* @__PURE__ */ E.jsx(Rr, { onSelectionChange: f.bind(null, a), selectedItems: t, ...s })
751
751
  }
752
752
  );
753
753
  }, Xr = ({
754
754
  name: l,
755
755
  control: u,
756
- onChange: a,
756
+ onChange: n,
757
757
  ...s
758
758
  }) => {
759
759
  const f = x(
760
- (n, t) => {
761
- n(t.detail.value), a == null || a(t);
760
+ (a, t) => {
761
+ a(t.detail.value), n == null || n(t);
762
762
  },
763
- [a]
763
+ [n]
764
764
  );
765
765
  return /* @__PURE__ */ E.jsx(
766
766
  S,
767
767
  {
768
768
  name: l,
769
769
  control: u,
770
- render: ({ field: { onChange: n, value: t } }) => /* @__PURE__ */ E.jsx(_r, { value: t || "", onChange: f.bind(null, n), ...s })
770
+ render: ({ field: { onChange: a, value: t } }) => /* @__PURE__ */ E.jsx(_r, { value: t || "", onChange: f.bind(null, a), ...s })
771
771
  }
772
772
  );
773
773
  }, Hr = ({
774
774
  name: l,
775
775
  control: u,
776
- defaultValue: a,
776
+ defaultValue: n,
777
777
  rules: s,
778
778
  shouldUnregister: f = !1,
779
- onBlur: n,
779
+ onBlur: a,
780
780
  onChange: t,
781
781
  ...d
782
782
  }) => {
783
783
  const v = x(
784
784
  (o) => {
785
- n == null || n(o);
785
+ a == null || a(o);
786
786
  },
787
- [n]
787
+ [a]
788
788
  ), R = x(
789
789
  (o) => {
790
790
  t == null || t(o);
@@ -796,7 +796,7 @@ const qr = ({
796
796
  {
797
797
  name: l,
798
798
  control: u,
799
- defaultValue: a,
799
+ defaultValue: n,
800
800
  rules: s,
801
801
  shouldUnregister: f,
802
802
  render: ({ field: { ref: o, onChange: p, onBlur: _, value: g } }) => /* @__PURE__ */ E.jsx(
@@ -819,15 +819,15 @@ const qr = ({
819
819
  }, Zr = ({
820
820
  name: l,
821
821
  control: u,
822
- onBlur: a,
822
+ onBlur: n,
823
823
  onChange: s,
824
824
  ...f
825
825
  }) => {
826
- const n = x(
826
+ const a = x(
827
827
  (d) => {
828
- a == null || a(d);
828
+ n == null || n(d);
829
829
  },
830
- [a]
830
+ [n]
831
831
  ), t = x(
832
832
  (d) => {
833
833
  s == null || s(d);
@@ -845,7 +845,7 @@ const qr = ({
845
845
  ref: d,
846
846
  value: o,
847
847
  onBlur: (p) => {
848
- v(), n(p);
848
+ v(), a(p);
849
849
  },
850
850
  onChange: (p) => {
851
851
  R(p.detail.value), t(p);
@@ -858,18 +858,18 @@ const qr = ({
858
858
  }, Qr = ({
859
859
  name: l,
860
860
  control: u,
861
- defaultValue: a,
861
+ defaultValue: n,
862
862
  rules: s,
863
863
  shouldUnregister: f = !1,
864
- onBlur: n,
864
+ onBlur: a,
865
865
  onChange: t,
866
866
  ...d
867
867
  }) => {
868
868
  const v = x(
869
869
  (o) => {
870
- n == null || n(o);
870
+ a == null || a(o);
871
871
  },
872
- [n]
872
+ [a]
873
873
  ), R = x(
874
874
  (o) => {
875
875
  t == null || t(o);
@@ -881,7 +881,7 @@ const qr = ({
881
881
  {
882
882
  name: l,
883
883
  control: u,
884
- defaultValue: a,
884
+ defaultValue: n,
885
885
  rules: s,
886
886
  shouldUnregister: f,
887
887
  render: ({ field: { ref: o, onBlur: p, onChange: _, value: g } }) => /* @__PURE__ */ E.jsx(
@@ -901,31 +901,31 @@ const qr = ({
901
901
  )
902
902
  }
903
903
  );
904
- }, te = (l = []) => l != null && l.length ? l.map((u) => "options" in u ? te(u.options) : u.value).flat() : [], ne = (l = [], u = []) => l != null && l.length && (u != null && u.length) ? l.reduce((a, s) => {
904
+ }, te = (l = []) => l != null && l.length ? l.map((u) => "options" in u ? te(u.options) : u.value).flat() : [], ne = (l = [], u = []) => l != null && l.length && (u != null && u.length) ? l.reduce((n, s) => {
905
905
  if (l != null && l.length) {
906
906
  if ("options" in s) {
907
907
  const f = ne(s.options, u);
908
- f != null && f.length && a.push(...f);
908
+ f != null && f.length && n.push(...f);
909
909
  }
910
- "value" in s && u.find((f) => f === s.value) && a.push(s);
910
+ "value" in s && u.find((f) => f === s.value) && n.push(s);
911
911
  }
912
- return a;
912
+ return n;
913
913
  }, []).flat() : [], Br = { transformMultiselectOptionsToArray: te, mapSelectedOptionsWithOptions: ne }, et = ({
914
914
  name: l,
915
915
  control: u,
916
- options: a,
916
+ options: n,
917
917
  defaultValue: s,
918
918
  rules: f,
919
- onBlur: n,
919
+ onBlur: a,
920
920
  onChange: t,
921
921
  shouldUnregister: d = !1,
922
922
  ...v
923
923
  }) => {
924
924
  const R = x(
925
925
  (p, _) => {
926
- p(), n == null || n(_);
926
+ p(), a == null || a(_);
927
927
  },
928
- [n]
928
+ [a]
929
929
  ), o = x(
930
930
  (p, _) => {
931
931
  p(te(_.detail.selectedOptions)), t == null || t(_);
@@ -944,10 +944,10 @@ const qr = ({
944
944
  Tr,
945
945
  {
946
946
  ref: p,
947
- options: a,
947
+ options: n,
948
948
  onBlur: () => R.bind(null, g),
949
949
  onChange: o.bind(null, _),
950
- selectedOptions: ne(a, T),
950
+ selectedOptions: ne(n, T),
951
951
  ...v
952
952
  }
953
953
  )
@@ -956,52 +956,52 @@ const qr = ({
956
956
  }, rt = ({
957
957
  name: l,
958
958
  control: u,
959
- onChange: a,
959
+ onChange: n,
960
960
  ...s
961
961
  }) => {
962
962
  const f = x(
963
- (n, t) => {
964
- n(t.detail.value), a == null || a(t);
963
+ (a, t) => {
964
+ a(t.detail.value), n == null || n(t);
965
965
  },
966
- [a]
966
+ [n]
967
967
  );
968
968
  return /* @__PURE__ */ E.jsx(
969
969
  S,
970
970
  {
971
971
  name: l,
972
972
  control: u,
973
- render: ({ field: { onChange: n, value: t } }) => /* @__PURE__ */ E.jsx(Or, { onChange: f.bind(null, n), value: t, items: s.items, ...s })
973
+ render: ({ field: { onChange: a, value: t } }) => /* @__PURE__ */ E.jsx(Or, { onChange: f.bind(null, a), value: t, items: s.items, ...s })
974
974
  }
975
975
  );
976
976
  }, Fe = (l = [], u) => {
977
- let a = null;
978
- return l && u && (a = l.reduce(
977
+ let n = null;
978
+ return l && u && (n = l.reduce(
979
979
  (s, f) => {
980
980
  if ("options" in f) {
981
- const n = Fe(f.options, u);
982
- n && s.push(n);
981
+ const a = Fe(f.options, u);
982
+ a && s.push(a);
983
983
  }
984
984
  return "value" in f && f.value === u && s.push(f), s;
985
985
  },
986
986
  []
987
- )[0]), a || null;
987
+ )[0]), n || null;
988
988
  }, Ur = {
989
989
  mapSelectedOptionWithOptions: Fe
990
990
  }, tt = ({
991
991
  name: l,
992
992
  control: u,
993
- defaultValue: a,
993
+ defaultValue: n,
994
994
  rules: s,
995
995
  shouldUnregister: f = !1,
996
- onBlur: n,
996
+ onBlur: a,
997
997
  onChange: t,
998
998
  ...d
999
999
  }) => {
1000
1000
  const v = x(
1001
1001
  (o, p) => {
1002
- o(), n == null || n(p);
1002
+ o(), a == null || a(p);
1003
1003
  },
1004
- [n]
1004
+ [a]
1005
1005
  ), R = x(
1006
1006
  (o, p) => {
1007
1007
  o(p.detail.selectedOption.value), t == null || t(p);
@@ -1013,7 +1013,7 @@ const qr = ({
1013
1013
  {
1014
1014
  name: l,
1015
1015
  control: u,
1016
- defaultValue: a,
1016
+ defaultValue: n,
1017
1017
  rules: s,
1018
1018
  shouldUnregister: f,
1019
1019
  render: ({ field: { ref: o, onChange: p, onBlur: _, value: g } }) => /* @__PURE__ */ E.jsx(
@@ -1031,24 +1031,24 @@ const qr = ({
1031
1031
  }, nt = ({
1032
1032
  name: l,
1033
1033
  control: u,
1034
- defaultValue: a,
1034
+ defaultValue: n,
1035
1035
  rules: s,
1036
1036
  shouldUnregister: f = !1,
1037
- onChange: n,
1037
+ onChange: a,
1038
1038
  ...t
1039
1039
  }) => {
1040
1040
  const d = x(
1041
1041
  (v) => {
1042
- n == null || n(v);
1042
+ a == null || a(v);
1043
1043
  },
1044
- [n]
1044
+ [a]
1045
1045
  );
1046
1046
  return /* @__PURE__ */ E.jsx(
1047
1047
  S,
1048
1048
  {
1049
1049
  name: l,
1050
1050
  control: u,
1051
- defaultValue: a,
1051
+ defaultValue: n,
1052
1052
  rules: s,
1053
1053
  shouldUnregister: f,
1054
1054
  render: ({ field: { onChange: v, value: R } }) => /* @__PURE__ */ E.jsx(
@@ -1066,24 +1066,24 @@ const qr = ({
1066
1066
  }, at = ({
1067
1067
  name: l,
1068
1068
  control: u,
1069
- onChange: a,
1069
+ onChange: n,
1070
1070
  ...s
1071
1071
  }) => {
1072
1072
  const f = x(
1073
- (n, t) => {
1074
- n([...t.detail.tags]), a == null || a(t);
1073
+ (a, t) => {
1074
+ a([...t.detail.tags]), n == null || n(t);
1075
1075
  },
1076
- [a]
1076
+ [n]
1077
1077
  );
1078
1078
  return /* @__PURE__ */ E.jsx(
1079
1079
  S,
1080
1080
  {
1081
1081
  name: l,
1082
1082
  control: u,
1083
- render: ({ field: { ref: n, onChange: t, value: d } }) => /* @__PURE__ */ E.jsx(
1083
+ render: ({ field: { ref: a, onChange: t, value: d } }) => /* @__PURE__ */ E.jsx(
1084
1084
  wr,
1085
1085
  {
1086
- ref: n,
1086
+ ref: a,
1087
1087
  tags: d || [],
1088
1088
  onChange: f.bind(null, t),
1089
1089
  ...s
@@ -1094,24 +1094,24 @@ const qr = ({
1094
1094
  }, it = ({
1095
1095
  name: l,
1096
1096
  control: u,
1097
- onChange: a,
1097
+ onChange: n,
1098
1098
  ...s
1099
1099
  }) => {
1100
1100
  const f = x(
1101
- (n, t) => {
1102
- n(t.detail.filteringText), a == null || a(t);
1101
+ (a, t) => {
1102
+ a(t.detail.filteringText), n == null || n(t);
1103
1103
  },
1104
- [a]
1104
+ [n]
1105
1105
  );
1106
1106
  return /* @__PURE__ */ E.jsx(
1107
1107
  S,
1108
1108
  {
1109
1109
  name: l,
1110
1110
  control: u,
1111
- render: ({ field: { ref: n, onChange: t, value: d } }) => /* @__PURE__ */ E.jsx(
1111
+ render: ({ field: { ref: a, onChange: t, value: d } }) => /* @__PURE__ */ E.jsx(
1112
1112
  kr,
1113
1113
  {
1114
- ref: n,
1114
+ ref: a,
1115
1115
  filteringText: d,
1116
1116
  onChange: f.bind(null, t),
1117
1117
  ...s
@@ -1122,18 +1122,18 @@ const qr = ({
1122
1122
  }, lt = ({
1123
1123
  name: l,
1124
1124
  control: u,
1125
- defaultValue: a,
1125
+ defaultValue: n,
1126
1126
  rules: s,
1127
1127
  shouldUnregister: f = !1,
1128
- onBlur: n,
1128
+ onBlur: a,
1129
1129
  onChange: t,
1130
1130
  ...d
1131
1131
  }) => {
1132
1132
  const v = x(
1133
1133
  (o, p) => {
1134
- o(), n == null || n(p);
1134
+ o(), a == null || a(p);
1135
1135
  },
1136
- [n]
1136
+ [a]
1137
1137
  ), R = x(
1138
1138
  (o, p) => {
1139
1139
  o(p.detail.value), t == null || t(p);
@@ -1145,7 +1145,7 @@ const qr = ({
1145
1145
  {
1146
1146
  name: l,
1147
1147
  control: u,
1148
- defaultValue: a,
1148
+ defaultValue: n,
1149
1149
  rules: s,
1150
1150
  shouldUnregister: f,
1151
1151
  render: ({ field: { onChange: o, onBlur: p, value: _, ref: g } }) => /* @__PURE__ */ E.jsx(
@@ -1161,33 +1161,33 @@ const qr = ({
1161
1161
  )
1162
1162
  }
1163
1163
  );
1164
- }, st = ({ name: l, control: u, onChange: a, ...s }) => {
1164
+ }, st = ({ name: l, control: u, onChange: n, ...s }) => {
1165
1165
  const f = x(
1166
- (n, t) => {
1167
- n(t.detail.value), a == null || a(t);
1166
+ (a, t) => {
1167
+ a(t.detail.value), n == null || n(t);
1168
1168
  },
1169
- [a]
1169
+ [n]
1170
1170
  );
1171
1171
  return /* @__PURE__ */ E.jsx(
1172
1172
  S,
1173
1173
  {
1174
1174
  name: l,
1175
1175
  control: u,
1176
- render: ({ field: { onChange: n, value: t } }) => /* @__PURE__ */ E.jsx(Dr, { onChange: f.bind(null, n), value: t, items: s.items, ...s })
1176
+ render: ({ field: { onChange: a, value: t } }) => /* @__PURE__ */ E.jsx(Dr, { onChange: f.bind(null, a), value: t, items: s.items, ...s })
1177
1177
  }
1178
1178
  );
1179
1179
  }, ut = ({
1180
1180
  name: l,
1181
1181
  control: u,
1182
- onBlur: a,
1182
+ onBlur: n,
1183
1183
  onChange: s,
1184
1184
  ...f
1185
1185
  }) => {
1186
- const n = x(
1186
+ const a = x(
1187
1187
  (d, v) => {
1188
- d(), a == null || a(v);
1188
+ d(), n == null || n(v);
1189
1189
  },
1190
- [a]
1190
+ [n]
1191
1191
  ), t = x(
1192
1192
  (d, v) => {
1193
1193
  d(v.detail.value), s == null || s(v);
@@ -1205,7 +1205,7 @@ const qr = ({
1205
1205
  name: l,
1206
1206
  ref: d,
1207
1207
  value: o,
1208
- onBlur: n.bind(null, R),
1208
+ onBlur: a.bind(null, R),
1209
1209
  onChange: t.bind(null, v),
1210
1210
  ...f
1211
1211
  }
@@ -1215,21 +1215,21 @@ const qr = ({
1215
1215
  }, ot = ({
1216
1216
  name: l,
1217
1217
  control: u,
1218
- onChange: a,
1218
+ onChange: n,
1219
1219
  ...s
1220
1220
  }) => {
1221
1221
  const f = x(
1222
- (n, t) => {
1223
- n(t.detail.checked), a == null || a(t);
1222
+ (a, t) => {
1223
+ a(t.detail.checked), n == null || n(t);
1224
1224
  },
1225
- [a]
1225
+ [n]
1226
1226
  );
1227
1227
  return /* @__PURE__ */ E.jsx(
1228
1228
  S,
1229
1229
  {
1230
1230
  name: l,
1231
1231
  control: u,
1232
- render: ({ field: { ref: n, onChange: t, value: d = !1 } }) => /* @__PURE__ */ E.jsx(Ar, { ref: n, name: l, checked: d, onChange: f.bind(null, t), ...s })
1232
+ render: ({ field: { ref: a, onChange: t, value: d = !1 } }) => /* @__PURE__ */ E.jsx(Ar, { ref: a, name: l, checked: d, onChange: f.bind(null, t), ...s })
1233
1233
  }
1234
1234
  );
1235
1235
  };