@box/metadata-editor 1.58.4 → 1.59.0

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.
Files changed (28) hide show
  1. package/dist/chunks/metadata-instance-form-card-wrapper.js +41 -40
  2. package/dist/chunks/shared-field-styles.module.js +8 -0
  3. package/dist/chunks/utils2.js +33 -33
  4. package/dist/esm/lib/components/metadata-editor-fields/metadata-editor-field-wrapper.js +128 -96
  5. package/dist/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form/metadata-instance-form.js +110 -106
  6. package/dist/esm/lib/components/metadata-instance-list/metadata-instance-list.js +19 -15
  7. package/dist/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance/metadata-instance.js +39 -35
  8. package/dist/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance-content/metadata-instance-content.js +27 -20
  9. package/dist/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance-entry/metadata-instance-entry.js +71 -55
  10. package/dist/esm/lib/utils/check-if-has-bounding-boxes.js +4 -0
  11. package/dist/esm/lib/utils/is-interactive-form-element.js +4 -0
  12. package/dist/styles/metadata-instance-content.css +1 -1
  13. package/dist/styles/metadata-instance-form-card-wrapper.css +1 -1
  14. package/dist/styles/shared-field-styles.css +1 -0
  15. package/dist/styles/utils.css +1 -1
  16. package/dist/types/lib/components/metadata-editor-fields/types.d.ts +2 -0
  17. package/dist/types/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form/types.d.ts +2 -0
  18. package/dist/types/lib/components/metadata-instance-list/metadata-instance-list.d.ts +1 -1
  19. package/dist/types/lib/components/metadata-instance-list/subcomponents/metadata-instance/metadata-instance.d.ts +1 -1
  20. package/dist/types/lib/components/metadata-instance-list/subcomponents/metadata-instance/types.d.ts +3 -1
  21. package/dist/types/lib/components/metadata-instance-list/subcomponents/metadata-instance-content/metadata-instance-content.d.ts +1 -1
  22. package/dist/types/lib/components/metadata-instance-list/subcomponents/metadata-instance-content/types.d.ts +3 -1
  23. package/dist/types/lib/components/metadata-instance-list/subcomponents/metadata-instance-entry/metadata-instance-entry.d.ts +1 -1
  24. package/dist/types/lib/components/metadata-instance-list/subcomponents/metadata-instance-entry/types.d.ts +4 -1
  25. package/dist/types/lib/components/metadata-instance-list/types.d.ts +3 -1
  26. package/dist/types/lib/utils/check-if-has-bounding-boxes.d.ts +2 -0
  27. package/dist/types/lib/utils/is-interactive-form-element.d.ts +1 -0
  28. package/package.json +3 -3
@@ -1,24 +1,25 @@
1
- import { useBlueprintModernization as v, Card as A } from "@box/blueprint-web";
1
+ import { useBlueprintModernization as y, Card as A } from "@box/blueprint-web";
2
2
  import M from "clsx";
3
- import { TEMPLATE_CUSTOM_PROPERTIES as b } from "../esm/lib/constants.js";
4
- import { MetadataInstanceFormFooter as O } from "../esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-footer/metadata-instance-form-footer.js";
5
- import { MetadataInstanceFormHeader as R } from "../esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-header/metadata-instance-form-header.js";
6
- import { jsx as a, jsxs as T } from "react/jsx-runtime";
7
- import '../styles/metadata-instance-form-card-wrapper.css';const x = "_metadataInstanceForm_moyil_1", D = "_wrapperGradient_moyil_7", L = "_suggestionsFetching_moyil_17", N = "_metadataInstanceFormContent_moyil_23", G = "_showOverlay_moyil_30", s = {
8
- metadataInstanceForm: x,
9
- wrapperGradient: D,
10
- suggestionsFetching: L,
11
- metadataInstanceFormContent: N,
12
- showOverlay: G
13
- }, U = (n) => {
3
+ import { TEMPLATE_CUSTOM_PROPERTIES as R } from "../esm/lib/constants.js";
4
+ import { MetadataInstanceFormFooter as b } from "../esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-footer/metadata-instance-form-footer.js";
5
+ import { MetadataInstanceFormHeader as z } from "../esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-header/metadata-instance-form-header.js";
6
+ import { jsx as a, jsxs as G } from "react/jsx-runtime";
7
+ import '../styles/metadata-instance-form-card-wrapper.css';const O = "_metadataInstanceForm_ztv76_1", T = "_wrapperGradient_ztv76_7", x = "_suggestionsFetching_ztv76_17", D = "_metadataInstanceFormContent_ztv76_23", L = "_metadataInstanceFormContentReducedGap_ztv76_30", N = "_showOverlay_ztv76_34", n = {
8
+ metadataInstanceForm: O,
9
+ wrapperGradient: T,
10
+ suggestionsFetching: x,
11
+ metadataInstanceFormContent: D,
12
+ metadataInstanceFormContentReducedGap: L,
13
+ showOverlay: N
14
+ }, W = (s) => {
14
15
  const {
15
16
  areAiSuggestionsAvailable: o,
16
- children: i,
17
- className: r,
18
- formRef: l,
19
- isAdvancedExtractAgentEnabled: m = !1,
20
- isAiSuggestionsFeatureEnabled: d,
21
- isBetaLanguageEnabled: c,
17
+ children: r,
18
+ className: i,
19
+ formRef: d,
20
+ isAdvancedExtractAgentEnabled: c = !1,
21
+ isAiSuggestionsFeatureEnabled: l,
22
+ isBetaLanguageEnabled: m,
22
23
  isConfidenceScoreReviewEnabled: g = !1,
23
24
  isLargeFile: p = !1,
24
25
  isDeleteButtonDisabled: u,
@@ -28,43 +29,43 @@ import '../styles/metadata-instance-form-card-wrapper.css';const x = "_metadataI
28
29
  isFetchingSuggestions: e,
29
30
  isFormDirty: h = !1,
30
31
  selectedTemplateInstance: t,
31
- getAiSuggestions: y,
32
- handleCancel: w,
33
- handleDelete: C
34
- } = n, {
35
- enableModernizedComponents: I
36
- } = v(), E = t?.templateKey === b, S = !!f[t?.templateKey];
32
+ getAiSuggestions: v,
33
+ handleCancel: C,
34
+ handleDelete: I
35
+ } = s, {
36
+ enableModernizedComponents: w
37
+ } = y(), E = t?.templateKey === R, S = !!f[t?.templateKey];
37
38
  return /* @__PURE__ */ a("div", {
38
- className: e && s.wrapperGradient,
39
- "data-modern": I,
40
- children: /* @__PURE__ */ T(A, {
41
- ref: l,
42
- className: M(r, {
43
- [s.suggestionsFetching]: e
39
+ className: e && n.wrapperGradient,
40
+ "data-modern": w,
41
+ children: /* @__PURE__ */ G(A, {
42
+ ref: d,
43
+ className: M(i, {
44
+ [n.suggestionsFetching]: e
44
45
  }),
45
- children: [/* @__PURE__ */ a(R, {
46
+ children: [/* @__PURE__ */ a(z, {
46
47
  areAiSuggestionsAvailable: o,
47
48
  hasSuggestions: S,
48
- isAdvancedExtractAgentEnabled: m,
49
- isAiSuggestionsFeatureEnabled: d && !E,
50
- isBetaLanguageEnabled: c,
49
+ isAdvancedExtractAgentEnabled: c,
50
+ isAiSuggestionsFeatureEnabled: l && !E,
51
+ isBetaLanguageEnabled: m,
51
52
  isConfidenceScoreReviewEnabled: g,
52
53
  isLargeFile: p,
53
54
  isLoading: e,
54
- onAutofill: y,
55
+ onAutofill: v,
55
56
  onToggleReviewFilter: F,
56
57
  shouldShowOnlyReviewFields: _,
57
58
  templateName: t?.displayName
58
- }), t && i, /* @__PURE__ */ a(O, {
59
+ }), t && r, /* @__PURE__ */ a(b, {
59
60
  isDeleteButtonDisabled: u,
60
61
  isLoading: e,
61
- onCancel: () => w(h),
62
- onDelete: C
62
+ onCancel: () => C(h),
63
+ onDelete: I
63
64
  })]
64
65
  })
65
66
  });
66
67
  };
67
68
  export {
68
- U as M,
69
- s
69
+ W as M,
70
+ n as s
70
71
  };
@@ -0,0 +1,8 @@
1
+ import '../styles/shared-field-styles.css';const e = "_spacious_1325e_1", l = "_clickableField_1325e_5", s = "_selectedField_1325e_14", c = {
2
+ spacious: e,
3
+ clickableField: l,
4
+ selectedField: s
5
+ };
6
+ export {
7
+ c as s
8
+ };
@@ -1,55 +1,55 @@
1
1
  import d from "clsx";
2
2
  import { convertISOStringtoRFC3339String as b } from "../esm/lib/utils/convertDate.js";
3
3
  import m from "../esm/lib/components/interactive-text/interactive-text.js";
4
- import { jsxs as g, jsx as r } from "react/jsx-runtime";
5
- import { isConfidenceScoreNeedingReview as T } from "../esm/lib/utils/confidence-score/is-confidence-score-needing-review.js";
6
- import { LowConfidenceBadge as f } from "../esm/lib/components/metadata-editor-fields/components/low-confidence-badge/low-confidence-badge.js";
7
- import { AiLogoBadge as x } from "../esm/lib/components/metadata-editor-fields/components/ai-logo-badge/ai-logo-badge.js";
8
- import '../styles/utils.css';const h = "_noAttributesText_1u4tq_2", q = "_fieldWrapper_1u4tq_6", v = "_hasSuggestion_1u4tq_11", C = "_hasConfidenceReview_1u4tq_16", N = "_dateField_1u4tq_44", w = "_aiApproved_1u4tq_48", A = "_labelWrapper_1u4tq_95", W = "_labelText_1u4tq_101", I = "_labelTruncated_1u4tq_104", F = "_labelIcon_1u4tq_111", l = {
9
- noAttributesText: h,
10
- fieldWrapper: q,
11
- hasSuggestion: v,
12
- hasConfidenceReview: C,
13
- dateField: N,
14
- aiApproved: w,
15
- labelWrapper: A,
16
- labelText: W,
17
- labelTruncated: I,
18
- labelIcon: F
19
- }, O = (a, t, s = !1, i = "label", e) => (c) => {
4
+ import { jsxs as v, jsx as a } from "react/jsx-runtime";
5
+ import { isConfidenceScoreNeedingReview as g } from "../esm/lib/utils/confidence-score/is-confidence-score-needing-review.js";
6
+ import { LowConfidenceBadge as T } from "../esm/lib/components/metadata-editor-fields/components/low-confidence-badge/low-confidence-badge.js";
7
+ import { AiLogoBadge as f } from "../esm/lib/components/metadata-editor-fields/components/ai-logo-badge/ai-logo-badge.js";
8
+ import '../styles/utils.css';const x = "_noAttributesText_1oruv_2", h = "_fieldWrapper_1oruv_6", C = "_hasSuggestion_1oruv_11", N = "_hasConfidenceReview_1oruv_16", w = "_dateField_1oruv_44", A = "_aiApproved_1oruv_49", W = "_labelWrapper_1oruv_96", I = "_labelText_1oruv_102", F = "_labelTruncated_1oruv_105", R = "_labelIcon_1oruv_112", l = {
9
+ noAttributesText: x,
10
+ fieldWrapper: h,
11
+ hasSuggestion: C,
12
+ hasConfidenceReview: N,
13
+ dateField: w,
14
+ aiApproved: A,
15
+ labelWrapper: W,
16
+ labelText: I,
17
+ labelTruncated: F,
18
+ labelIcon: R
19
+ }, z = (r, t, o = !1, i = "label", e) => (c) => {
20
20
  const {
21
21
  className: u,
22
- ...n
23
- } = c, o = d(u || l.labelText, l.labelTruncated), _ = !!e && T(e), p = () => e && _ ? /* @__PURE__ */ r(f, {
22
+ ...s
23
+ } = c, n = d(u || l.labelText, l.labelTruncated), _ = !!e && g(e), p = () => e && _ ? /* @__PURE__ */ a(T, {
24
24
  confidenceScore: e
25
- }) : s || e ? /* @__PURE__ */ r(x, {
25
+ }) : o || e ? /* @__PURE__ */ a(f, {
26
26
  className: l.labelIcon,
27
27
  confidenceScore: e
28
28
  }) : null;
29
- return /* @__PURE__ */ g("div", {
29
+ return /* @__PURE__ */ v("div", {
30
30
  className: l.labelWrapper,
31
- children: [t ? /* @__PURE__ */ r(m, {
31
+ children: [t ? /* @__PURE__ */ a(m, {
32
32
  as: i,
33
- className: o,
33
+ className: n,
34
34
  tooltipText: t,
35
- ...n,
36
- children: a
37
- }) : /* @__PURE__ */ r("label", {
38
- className: o,
39
- ...n,
40
- children: a
35
+ ...s,
36
+ children: r
37
+ }) : /* @__PURE__ */ a("label", {
38
+ className: n,
39
+ ...s,
40
+ children: r
41
41
  }), p()]
42
42
  });
43
- }, z = (a) => {
43
+ }, P = (r) => {
44
44
  try {
45
- const t = b(a), s = new Date(t);
46
- return isNaN(s.getTime()) ? null : t;
45
+ const t = b(r), o = new Date(t);
46
+ return isNaN(o.getTime()) ? null : t;
47
47
  } catch {
48
48
  return null;
49
49
  }
50
50
  };
51
51
  export {
52
- O as g,
52
+ z as g,
53
53
  l as s,
54
- z as t
54
+ P as t
55
55
  };
@@ -1,109 +1,141 @@
1
- import G from "clsx";
2
- import { useFormikContext as H } from "formik";
3
- import J from "lodash/isEqual";
4
- import K from "lodash/isUndefined";
5
- import { forwardRef as Q, useCallback as d, useEffect as k, useMemo as X } from "react";
6
- import { A as r } from "../../../../chunks/types.js";
7
- import { UpdateModeFieldWrapper as Y } from "./components/update-mode-field-wrapper/update-mode-field-wrapper.js";
8
- import { editorFieldTypes as Z } from "./editor-field-types.js";
9
- import { s as u } from "../../../../chunks/utils2.js";
10
- import { jsx as l, jsxs as _ } from "react/jsx-runtime";
11
- import { isConfidenceScoreNeedingReview as P } from "../../utils/confidence-score/is-confidence-score-needing-review.js";
12
- import { AiSuggestionField as O } from "./components/ai-suggestion-field/ai-suggestion-field.js";
13
- import { LowConfidenceSuggestionField as R } from "./components/low-confidence-suggestion-field/low-confidence-suggestion-field.js";
14
- const ge = /* @__PURE__ */ Q(({
15
- disableForm: h,
16
- portalElement: v,
1
+ import v from "clsx";
2
+ import { useFormikContext as R } from "formik";
3
+ import M from "lodash/isEqual";
4
+ import ee from "lodash/isUndefined";
5
+ import { forwardRef as oe, useCallback as a, useEffect as K, useMemo as ie } from "react";
6
+ import { A as p } from "../../../../chunks/types.js";
7
+ import { checkIfHasBoundingBoxes as te } from "../../utils/check-if-has-bounding-boxes.js";
8
+ import { isInteractiveFormElement as T } from "../../utils/is-interactive-form-element.js";
9
+ import { s as d } from "../../../../chunks/shared-field-styles.module.js";
10
+ import { UpdateModeFieldWrapper as ne } from "./components/update-mode-field-wrapper/update-mode-field-wrapper.js";
11
+ import { editorFieldTypes as se } from "./editor-field-types.js";
12
+ import { s as f } from "../../../../chunks/utils2.js";
13
+ import { jsx as l, jsxs as re } from "react/jsx-runtime";
14
+ import { isConfidenceScoreNeedingReview as q } from "../../utils/confidence-score/is-confidence-score-needing-review.js";
15
+ import { AiSuggestionField as ce } from "./components/ai-suggestion-field/ai-suggestion-field.js";
16
+ import { LowConfidenceSuggestionField as ae } from "./components/low-confidence-suggestion-field/low-confidence-suggestion-field.js";
17
+ const Ne = /* @__PURE__ */ oe(({
18
+ disableForm: x,
19
+ portalElement: N,
17
20
  field: e,
18
- index: L,
19
- taxonomyOptionsFetcher: $,
20
- isExternallyOwned: C,
21
- isMultilevelTaxonomyFieldEnabled: N,
22
- isConfidenceScoreReviewEnabled: n = !1
23
- }, V) => {
21
+ index: w,
22
+ taxonomyOptionsFetcher: I,
23
+ isExternallyOwned: V,
24
+ isMultilevelTaxonomyFieldEnabled: P,
25
+ isConfidenceScoreReviewEnabled: s = !1,
26
+ onSelectMetadataField: n,
27
+ selectedMetadataFieldId: H
28
+ }, B) => {
24
29
  const {
25
30
  setFieldValue: t
26
- } = H(), m = e.aiSuggestionState || r.Initial, s = m === r.Pending, F = m === r.Applied, x = m === r.Initial, f = Z[e.type], {
27
- aiSuggestion: i,
28
- aiSuggestionConfidenceScore: A,
29
- type: g,
30
- value: a
31
- } = e, U = f && !e.hidden, j = !K(e.updateMode), o = `metadata.fields[${L}]`, T = e.type === "taxonomy" && e.optionsRules?.multiSelect, M = n && !!e.confidenceScore, I = M && P(e.confidenceScore), q = M && !s && !P(e.confidenceScore), B = G({
32
- [u.aiApproved]: F || q,
33
- [u.hasSuggestion]: s,
34
- [u.hasConfidenceReview]: !s && I,
35
- [u.dateField]: g === "date"
36
- }), p = d((c) => {
37
- t(`${o}.aiSuggestionState`, c);
38
- }, [o, t]), S = d((c) => {
39
- t(`${o}.value`, c), p(r.Applied), n && (t(`${o}.confidenceScore`, A), t(`${o}.aiSuggestionConfidenceScore`, void 0));
40
- }, [o, t, p, A, n]), y = d(() => {
41
- p(r.Initial), t(`${o}.aiSuggestion`, void 0), n && t(`${o}.aiSuggestionConfidenceScore`, void 0);
42
- }, [p, t, o, n]), w = d(() => {
43
- t(`${o}.confidenceScore.isAccepted`, !0);
44
- }, [o, t]), z = d(() => {
45
- const c = g === "multiSelect" || g === "taxonomy" ? [] : "";
46
- t(`${o}.value`, c), t(`${o}.confidenceScore`, void 0);
47
- }, [o, t, g]), W = d(() => {
48
- y(), n && e.confidenceScore && t(`${o}.confidenceScore`, void 0);
49
- }, [y, n, e.confidenceScore, t, o]);
50
- k(() => {
51
- s && (!a || Array.isArray(a) && a.length === 0) && S(i);
52
- }, [i, s, S]), k(() => {
53
- x && i && p(r.Pending);
54
- }, [x, i, p]);
55
- const D = X(() => i ? J(a, i) : !1, [i, a]);
56
- return U ? j ? /* @__PURE__ */ l(Y, {
57
- fieldNamePrefix: o,
58
- fieldType: e.type,
59
- isTaxonomyMultiSelect: T,
60
- children: /* @__PURE__ */ l(f, {
61
- ref: V,
62
- description: e.description,
63
- disableForm: h,
31
+ } = R(), h = e.aiSuggestionState || p.Initial, c = h === p.Pending, W = h === p.Applied, F = h === p.Initial, y = se[e.type], {
32
+ aiSuggestion: r,
33
+ aiSuggestionConfidenceScore: k,
34
+ type: m,
35
+ value: u
36
+ } = e, z = y && !e.hidden, G = !ee(e.updateMode), o = `metadata.fields[${w}]`, J = e.type === "taxonomy" && e.optionsRules?.multiSelect, C = s && !!e.confidenceScore, L = C && q(e.confidenceScore), Q = C && !c && !q(e.confidenceScore), D = H === e.id, X = te(e.targetLocation), S = C && X && !!n, Y = v({
37
+ [f.aiApproved]: W || Q,
38
+ [f.hasSuggestion]: c,
39
+ [f.hasConfidenceReview]: !c && L,
40
+ [f.dateField]: m === "date"
41
+ }), g = a((i) => {
42
+ t(`${o}.aiSuggestionState`, i);
43
+ }, [o, t]), A = a((i) => {
44
+ t(`${o}.value`, i), g(p.Applied), s && (t(`${o}.confidenceScore`, k), t(`${o}.aiSuggestionConfidenceScore`, void 0));
45
+ }, [o, t, g, k, s]), $ = a(() => {
46
+ g(p.Initial), t(`${o}.aiSuggestion`, void 0), s && t(`${o}.aiSuggestionConfidenceScore`, void 0);
47
+ }, [g, t, o, s]), Z = a(() => {
48
+ t(`${o}.confidenceScore.isAccepted`, !0), n?.(null);
49
+ }, [o, t, n]), _ = a(() => {
50
+ const i = m === "multiSelect" || m === "taxonomy" ? [] : "";
51
+ t(`${o}.value`, i), t(`${o}.confidenceScore`, void 0), n?.(null);
52
+ }, [o, t, m, n]), U = a(() => {
53
+ $(), s && e.confidenceScore && (t(`${o}.confidenceScore`, void 0), n?.(null));
54
+ }, [$, s, e.confidenceScore, t, o, n]), b = a((i) => {
55
+ n && (T(i.target) || n(e));
56
+ }, [e, n]), O = a((i) => {
57
+ if (i.key === "Enter") {
58
+ if (!n || T(i.target))
59
+ return;
60
+ i.preventDefault(), i.stopPropagation(), n(e);
61
+ }
62
+ }, [e, n]);
63
+ K(() => {
64
+ c && (!u || Array.isArray(u) && u.length === 0) && A(r);
65
+ }, [r, c, A]), K(() => {
66
+ F && r && g(p.Pending);
67
+ }, [F, r, g]);
68
+ const E = ie(() => r ? M(u, r) : !1, [r, u]);
69
+ if (!z)
70
+ return null;
71
+ const j = {
72
+ "data-metadata-field": !0,
73
+ "data-testid": "metadata-field",
74
+ onClick: b,
75
+ onKeyDown: O,
76
+ role: "button",
77
+ tabIndex: 0
78
+ };
79
+ if (G) {
80
+ const i = /* @__PURE__ */ l(ne, {
64
81
  fieldNamePrefix: o,
65
- isAiSuggestionApplied: !1,
66
- isExternallyOwned: C,
67
- isMultilevelTaxonomyFieldEnabled: N,
68
- label: e.displayName,
69
- levels: e.levels,
70
- onValueEdited: W,
71
- portalElement: v,
72
- taxonomyOptionsFetcher: $
73
- })
74
- }, e.key) : /* @__PURE__ */ _("div", {
75
- className: u.fieldWrapper,
76
- children: [/* @__PURE__ */ l(f, {
77
- ref: V,
78
- className: B,
82
+ fieldType: e.type,
83
+ isTaxonomyMultiSelect: J,
84
+ children: /* @__PURE__ */ l(y, {
85
+ ref: B,
86
+ description: e.description,
87
+ disableForm: x,
88
+ fieldNamePrefix: o,
89
+ isAiSuggestionApplied: !1,
90
+ isExternallyOwned: V,
91
+ isMultilevelTaxonomyFieldEnabled: P,
92
+ label: e.displayName,
93
+ levels: e.levels,
94
+ onValueEdited: U,
95
+ portalElement: N,
96
+ taxonomyOptionsFetcher: I
97
+ })
98
+ }, e.key);
99
+ return S ? /* @__PURE__ */ l("div", {
100
+ className: v(d.spacious, d.clickableField, D && d.selectedField),
101
+ ...j,
102
+ children: i
103
+ }) : i;
104
+ }
105
+ return /* @__PURE__ */ re("div", {
106
+ className: v(f.fieldWrapper, s && d.spacious, S && d.clickableField, S && D && d.selectedField),
107
+ ...S && j,
108
+ children: [/* @__PURE__ */ l(y, {
109
+ ref: B,
110
+ className: Y,
79
111
  description: e.description,
80
- disableForm: h,
112
+ disableForm: x,
81
113
  fieldNamePrefix: o,
82
- isAiSuggestionApplied: F,
83
- isExternallyOwned: C,
84
- confidenceScore: n && !s ? e.confidenceScore : void 0,
85
- isMultilevelTaxonomyFieldEnabled: N,
114
+ isAiSuggestionApplied: W,
115
+ isExternallyOwned: V,
116
+ confidenceScore: s && !c ? e.confidenceScore : void 0,
117
+ isMultilevelTaxonomyFieldEnabled: P,
86
118
  label: e.displayName,
87
- onValueEdited: W,
88
- portalElement: v,
89
- taxonomyOptionsFetcher: $
90
- }), s && /* @__PURE__ */ l(O, {
91
- aiSuggestion: i,
92
- confidenceLevel: n ? A?.level : void 0,
93
- isSameValue: D,
119
+ onValueEdited: U,
120
+ portalElement: N,
121
+ taxonomyOptionsFetcher: I
122
+ }), c && /* @__PURE__ */ l(ce, {
123
+ aiSuggestion: r,
124
+ confidenceLevel: s ? k?.level : void 0,
125
+ isSameValue: E,
94
126
  onAiSuggestionAppend: () => {
95
- const c = [...new Set([a, i].flat().filter(Boolean))];
96
- S(c);
127
+ const i = [...new Set([u, r].flat().filter(Boolean))];
128
+ A(i);
97
129
  },
98
- onAiSuggestionIgnore: y,
99
- onAiSuggestionReplace: () => S(i),
100
- type: g
101
- }), !s && I && /* @__PURE__ */ l(R, {
102
- onAccept: w,
103
- onClear: z
130
+ onAiSuggestionIgnore: $,
131
+ onAiSuggestionReplace: () => A(r),
132
+ type: m
133
+ }), !c && L && /* @__PURE__ */ l(ae, {
134
+ onAccept: Z,
135
+ onClear: _
104
136
  })]
105
- }, e.key) : null;
137
+ }, e.key);
106
138
  });
107
139
  export {
108
- ge as MetadataEditorFieldWrapper
140
+ Ne as MetadataEditorFieldWrapper
109
141
  };