@lunejs/admin-ui 0.1.5 → 0.2.1
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/_virtual/index10.js +5 -2
- package/dist/_virtual/index11.js +4 -0
- package/dist/_virtual/index6.js +3 -3
- package/dist/_virtual/index8.js +3 -5
- package/dist/lib/api/codegen/graphql.d.ts +1 -0
- package/dist/lib/api/codegen/graphql.js +8 -8
- package/dist/lib/collections/components/collection-details/cards/general-card.js +20 -14
- package/dist/lib/custom-fields/components/details/is-list/custom-field-is-list.js +6 -4
- package/dist/lib/custom-fields/components/details/use-form/form-schema.d.ts +1 -0
- package/dist/lib/custom-fields/components/details/use-form/form-schema.js +4 -3
- package/dist/lib/custom-fields/components/fields/color.js +3 -3
- package/dist/lib/custom-fields/components/fields/custom-field.js +44 -36
- package/dist/lib/custom-fields/components/fields/rich-text.d.ts +8 -0
- package/dist/lib/custom-fields/components/fields/rich-text.js +17 -0
- package/dist/lib/custom-fields/components/fields/shared/primitive.d.ts +2 -1
- package/dist/lib/custom-fields/components/fields/shared/primitive.js +67 -61
- package/dist/lib/custom-fields/utils/custom-field.utils.js +63 -51
- package/dist/lib/dashboard/pages/dashboard-page.js +5 -5
- package/dist/lib/product/components/product-details/cards/general-product-card.js +18 -12
- package/dist/lib/translate/components/form/translate-form-row-data.d.ts +2 -1
- package/dist/lib/translate/components/form/translate-form-row-data.js +51 -19
- package/dist/lib/translate/components/form/translate-rich-text.d.ts +8 -0
- package/dist/lib/translate/components/form/translate-rich-text.js +65 -0
- package/dist/lib/translate/components/product-form/custom-fields/translate-product-custom-fields.js +95 -63
- package/dist/lib/translate/components/product-form/translate-product-form.js +19 -18
- package/dist/node_modules/@tiptap/core/dist/index.js +3566 -0
- package/dist/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js +17 -0
- package/dist/node_modules/@tiptap/extension-bold/dist/index.js +80 -0
- package/dist/node_modules/@tiptap/extension-document/dist/index.js +13 -0
- package/dist/node_modules/@tiptap/extension-heading/dist/index.js +64 -0
- package/dist/node_modules/@tiptap/extension-italic/dist/index.js +78 -0
- package/dist/node_modules/@tiptap/extension-link/dist/index.js +305 -0
- package/dist/node_modules/@tiptap/extension-list/dist/index.js +713 -0
- package/dist/node_modules/@tiptap/extension-paragraph/dist/index.js +42 -0
- package/dist/node_modules/@tiptap/extension-table/dist/index.js +380 -0
- package/dist/node_modules/@tiptap/extension-text/dist/index.js +14 -0
- package/dist/node_modules/@tiptap/extension-text-style/dist/index.js +240 -0
- package/dist/node_modules/@tiptap/extension-underline/dist/index.js +66 -0
- package/dist/node_modules/@tiptap/extensions/dist/index.js +288 -0
- package/dist/node_modules/@tiptap/react/dist/index.js +482 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeep.js +1 -1
- package/dist/node_modules/es-toolkit/dist/object/cloneDeep.js +1 -1
- package/dist/node_modules/eventemitter3/index.js +1 -1
- package/dist/node_modules/eventemitter3/index2.js +1 -1
- package/dist/node_modules/fast-equals/dist/es/index.js +324 -0
- package/dist/node_modules/linkifyjs/dist/linkify.js +707 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/baseline.js +10 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/between-horizontal-end.js +10 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/between-vertical-end.js +10 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/bold.js +11 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/grid-2x2-plus.js +16 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/grid-2x2-x.js +16 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/italic.js +10 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/layout-list.js +13 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/link.js +9 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/list-ordered.js +13 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/table-columns-split.js +18 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/table-rows-split.js +18 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/table.js +11 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/underline.js +9 -0
- package/dist/node_modules/orderedmap/dist/index.js +103 -0
- package/dist/node_modules/prosemirror-commands/dist/index.js +388 -0
- package/dist/node_modules/prosemirror-dropcursor/dist/index.js +86 -0
- package/dist/node_modules/prosemirror-gapcursor/dist/index.js +204 -0
- package/dist/node_modules/prosemirror-history/dist/index.js +248 -0
- package/dist/node_modules/prosemirror-keymap/dist/index.js +62 -0
- package/dist/node_modules/prosemirror-model/dist/index.js +2733 -0
- package/dist/node_modules/prosemirror-schema-list/dist/index.js +88 -0
- package/dist/node_modules/prosemirror-state/dist/index.js +822 -0
- package/dist/node_modules/prosemirror-tables/dist/index.js +1446 -0
- package/dist/node_modules/prosemirror-transform/dist/index.js +1520 -0
- package/dist/node_modules/prosemirror-view/dist/index.js +3772 -0
- package/dist/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/recharts/es6/util/Events.js +1 -1
- package/dist/node_modules/recharts/es6/util/ReactUtils.js +1 -1
- package/dist/node_modules/rope-sequence/dist/index.js +100 -0
- package/dist/node_modules/use-sync-external-store/shim/index.js +1 -1
- package/dist/node_modules/w3c-keyname/index.js +93 -0
- package/dist/packages/lune-ui/dist/_virtual/index3.js +2 -5
- package/dist/packages/lune-ui/dist/_virtual/index6.js +5 -2
- package/dist/packages/lune-ui/dist/components/popover.js +15 -11
- package/dist/packages/lune-ui/dist/components/select.js +6 -6
- package/dist/packages/lune-ui/dist/form/form-date-picker.js +2 -2
- package/dist/packages/lune-ui/dist/form/form.js +4 -4
- package/dist/packages/lune-ui/dist/node_modules/@radix-ui/react-popover/dist/index.js +39 -38
- package/dist/packages/lune-ui/dist/node_modules/prop-types/index.js +1 -1
- package/dist/packages/lune-ui/dist/packages/lune-ui/node_modules/recharts/es6/util/Events.js +1 -1
- package/dist/shared/components/color-picker/color-picker.d.ts +2 -1
- package/dist/shared/components/color-picker/color-picker.js +11 -11
- package/dist/shared/components/data-table/data-table-filter.js +4 -4
- package/dist/shared/components/rich-editor/rich-editor.d.ts +8 -0
- package/dist/shared/components/rich-editor/rich-editor.js +97 -0
- package/dist/shared/components/rich-editor/toolbar/bold/rich-editor-toolbar-bold.d.ts +1 -0
- package/dist/shared/components/rich-editor/toolbar/bold/rich-editor-toolbar-bold.js +66 -0
- package/dist/shared/components/rich-editor/toolbar/color/rich-editor-toolbar-color.d.ts +1 -0
- package/dist/shared/components/rich-editor/toolbar/color/rich-editor-toolbar-color.js +66 -0
- package/dist/shared/components/rich-editor/toolbar/heading/rich-editor-toolbar-heading.d.ts +1 -0
- package/dist/shared/components/rich-editor/toolbar/heading/rich-editor-toolbar-heading.js +115 -0
- package/dist/shared/components/rich-editor/toolbar/italic/rich-editor-toolbar-italic.d.ts +1 -0
- package/dist/shared/components/rich-editor/toolbar/italic/rich-editor-toolbar-italic.js +66 -0
- package/dist/shared/components/rich-editor/toolbar/link/rich-editor-toolbar-link-form.d.ts +2 -0
- package/dist/shared/components/rich-editor/toolbar/link/rich-editor-toolbar-link-form.js +103 -0
- package/dist/shared/components/rich-editor/toolbar/link/rich-editor-toolbar-link.d.ts +1 -0
- package/dist/shared/components/rich-editor/toolbar/link/rich-editor-toolbar-link.js +64 -0
- package/dist/shared/components/rich-editor/toolbar/ol-list/rich-editor-toolbar-ul-list.d.ts +1 -0
- package/dist/shared/components/rich-editor/toolbar/ol-list/rich-editor-toolbar-ul-list.js +66 -0
- package/dist/shared/components/rich-editor/toolbar/table/rich-editor-toolbar-table.d.ts +1 -0
- package/dist/shared/components/rich-editor/toolbar/table/rich-editor-toolbar-table.js +108 -0
- package/dist/shared/components/rich-editor/toolbar/toolbar.d.ts +1 -0
- package/dist/shared/components/rich-editor/toolbar/toolbar.js +64 -0
- package/dist/shared/components/rich-editor/toolbar/ul-list/rich-editor-toolbar-ul-list.d.ts +1 -0
- package/dist/shared/components/rich-editor/toolbar/ul-list/rich-editor-toolbar-ul-list.js +66 -0
- package/dist/shared/components/rich-editor/toolbar/underline/rich-editor-toolbar-underline.d.ts +1 -0
- package/dist/shared/components/rich-editor/toolbar/underline/rich-editor-toolbar-underline.js +66 -0
- package/package.json +6 -1
package/dist/lib/translate/components/product-form/custom-fields/translate-product-custom-fields.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { isLast as
|
|
1
|
+
import { jsx as s, Fragment as V, jsxs as b } from "react/jsx-runtime";
|
|
2
|
+
import { isLast as r, isFirst as T } from "../../../../../packages/lune-common/dist/index.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "../../../../../packages/lune-ui/dist/node_modules/@radix-ui/react-accordion/dist/index.js";
|
|
5
|
-
import { cn as
|
|
5
|
+
import { cn as l } from "../../../../../packages/lune-ui/dist/lib/utils.js";
|
|
6
6
|
import "../../../../../packages/lune-ui/dist/node_modules/@radix-ui/react-alert-dialog/dist/index.js";
|
|
7
7
|
import "../../../../../packages/lune-ui/dist/node_modules/@radix-ui/react-avatar/dist/index.js";
|
|
8
8
|
import "../../../../../packages/lune-ui/dist/node_modules/@radix-ui/react-separator/dist/index.js";
|
|
@@ -32,88 +32,120 @@ import "../../../../../packages/lune-ui/dist/node_modules/@radix-ui/react-toggle
|
|
|
32
32
|
import "../../../../../packages/lune-ui/dist/components/toggle-group.js";
|
|
33
33
|
import "../../../../../packages/lune-ui/dist/node_modules/@radix-ui/react-tooltip/dist/index.js";
|
|
34
34
|
import "../../../../../packages/lune-ui/dist/form/form.js";
|
|
35
|
-
import { useWatch as
|
|
36
|
-
import { CustomFieldType as
|
|
37
|
-
import { isTranslatable as
|
|
38
|
-
import { TranslateFormRowData as
|
|
39
|
-
import { TranslateInput as
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
35
|
+
import { useWatch as f } from "../../../../../node_modules/react-hook-form/dist/index.esm.js";
|
|
36
|
+
import { CustomFieldType as m } from "../../../../api/codegen/graphql.js";
|
|
37
|
+
import { isTranslatable as v } from "../../../../custom-fields/utils/custom-field.utils.js";
|
|
38
|
+
import { TranslateFormRowData as d } from "../../form/translate-form-row-data.js";
|
|
39
|
+
import { TranslateInput as p } from "../../form/translate-input.js";
|
|
40
|
+
import { TranslateRichText as y } from "../../form/translate-rich-text.js";
|
|
41
|
+
import { TranslateTextarea as C } from "../../form/translate-textarea.js";
|
|
42
|
+
import { useTranslateProductFormContext as E } from "../use-form/use-translate-product-form.js";
|
|
43
|
+
const dt = ({ product: g }) => {
|
|
44
|
+
const i = E(), a = f({ defaultValue: i.formState.defaultValues }), n = g.customFieldEntries.filter(
|
|
45
|
+
(t) => v(t.definition.type)
|
|
45
46
|
);
|
|
46
|
-
return /* @__PURE__ */
|
|
47
|
-
(t,
|
|
48
|
-
|
|
47
|
+
return /* @__PURE__ */ s(V, { children: n.map(
|
|
48
|
+
(t, u) => t.definition.isList ? t.value.map((o, e) => /* @__PURE__ */ s(
|
|
49
|
+
d,
|
|
49
50
|
{
|
|
50
|
-
field:
|
|
51
|
-
reference:
|
|
51
|
+
field: T(e) ? t.definition.name : "",
|
|
52
|
+
reference: o,
|
|
52
53
|
className: {
|
|
53
|
-
row:
|
|
54
|
-
!e
|
|
55
|
-
e
|
|
54
|
+
row: l(
|
|
55
|
+
!r(e, t.value) && "border-0!",
|
|
56
|
+
r(e, t.value) && r(u, n) && "border-0!"
|
|
56
57
|
),
|
|
57
|
-
referenceCell:
|
|
58
|
+
referenceCell: l(!r(e, t.value) && "border-b")
|
|
58
59
|
},
|
|
59
|
-
children: /* @__PURE__ */
|
|
60
|
-
|
|
60
|
+
children: /* @__PURE__ */ s(
|
|
61
|
+
p,
|
|
61
62
|
{
|
|
62
|
-
defaultValue:
|
|
63
|
-
className:
|
|
64
|
-
!e
|
|
65
|
-
e
|
|
63
|
+
defaultValue: a.customFields?.[t.id][e],
|
|
64
|
+
className: l(
|
|
65
|
+
!r(e, t.value) && "border-b",
|
|
66
|
+
r(e, t.value) && r(u, n) && "ring-0! lg:[&:has(input:focus-visible)]:ring-primary/50! lg:[&:has(input:focus-visible)]:ring-[1px]!"
|
|
66
67
|
),
|
|
67
68
|
label: "English",
|
|
68
|
-
onChange: (
|
|
69
|
-
const
|
|
70
|
-
|
|
71
|
-
...
|
|
72
|
-
[t.id]:
|
|
69
|
+
onChange: (F) => {
|
|
70
|
+
const h = F.target.value, c = i.getValues("customFields")[t.id];
|
|
71
|
+
c[e] = h, i.setValue("customFields", {
|
|
72
|
+
...i.getValues("customFields"),
|
|
73
|
+
[t.id]: c
|
|
73
74
|
});
|
|
74
75
|
}
|
|
75
76
|
}
|
|
76
77
|
)
|
|
77
78
|
},
|
|
78
|
-
t.definition.id +
|
|
79
|
-
)) : /* @__PURE__ */
|
|
80
|
-
|
|
79
|
+
t.definition.id + e
|
|
80
|
+
)) : /* @__PURE__ */ b(
|
|
81
|
+
d,
|
|
81
82
|
{
|
|
83
|
+
richText: t.definition.type === m.RichText,
|
|
82
84
|
field: t.definition.name,
|
|
83
85
|
reference: t.value,
|
|
84
|
-
className:
|
|
85
|
-
children:
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
86
|
+
className: l(r(u, n) && "border-b-0"),
|
|
87
|
+
children: [
|
|
88
|
+
t.definition.type === m.SingleLineText && /* @__PURE__ */ s(
|
|
89
|
+
p,
|
|
90
|
+
{
|
|
91
|
+
defaultValue: a.customFields?.[t.id],
|
|
92
|
+
label: "English",
|
|
93
|
+
onChange: (o) => {
|
|
94
|
+
const e = o.target.value;
|
|
95
|
+
i.setValue("customFields", {
|
|
96
|
+
...i.getValues("customFields"),
|
|
97
|
+
[t.id]: e
|
|
98
|
+
});
|
|
99
|
+
}
|
|
96
100
|
}
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
101
|
+
),
|
|
102
|
+
t.definition.type === m.MultiLineText && /* @__PURE__ */ s(
|
|
103
|
+
C,
|
|
104
|
+
{
|
|
105
|
+
defaultValue: a.customFields?.[t.id],
|
|
106
|
+
label: "English",
|
|
107
|
+
onChange: (o) => {
|
|
108
|
+
const e = o.target.value;
|
|
109
|
+
i.setValue("customFields", {
|
|
110
|
+
...i.getValues("customFields"),
|
|
111
|
+
[t.id]: e
|
|
112
|
+
});
|
|
113
|
+
}
|
|
109
114
|
}
|
|
110
|
-
|
|
111
|
-
|
|
115
|
+
),
|
|
116
|
+
t.definition.type === m.RichText && /* @__PURE__ */ s(
|
|
117
|
+
y,
|
|
118
|
+
{
|
|
119
|
+
defaultValue: a.customFields?.[t.id],
|
|
120
|
+
label: "English",
|
|
121
|
+
onChange: (o) => {
|
|
122
|
+
i.setValue("customFields", {
|
|
123
|
+
...i.getValues("customFields"),
|
|
124
|
+
[t.id]: o
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
),
|
|
129
|
+
t.definition.type === m.Url && /* @__PURE__ */ s(
|
|
130
|
+
p,
|
|
131
|
+
{
|
|
132
|
+
defaultValue: a.customFields?.[t.id],
|
|
133
|
+
label: "English",
|
|
134
|
+
onChange: (o) => {
|
|
135
|
+
const e = o.target.value;
|
|
136
|
+
i.setValue("customFields", {
|
|
137
|
+
...i.getValues("customFields"),
|
|
138
|
+
[t.id]: e
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
)
|
|
143
|
+
]
|
|
112
144
|
},
|
|
113
145
|
t.definition.id
|
|
114
146
|
)
|
|
115
147
|
) });
|
|
116
148
|
};
|
|
117
149
|
export {
|
|
118
|
-
|
|
150
|
+
dt as TranslateProductCustomField
|
|
119
151
|
};
|
|
@@ -35,23 +35,23 @@ import "../../../../packages/lune-ui/dist/node_modules/@radix-ui/react-tooltip/d
|
|
|
35
35
|
import { Form as b } from "../../../../packages/lune-ui/dist/form/form.js";
|
|
36
36
|
import { H4 as x } from "../../../../packages/lune-ui/dist/typography/h4.js";
|
|
37
37
|
import { isTranslatable as u } from "../../../custom-fields/utils/custom-field.utils.js";
|
|
38
|
-
import { ImagePlaceholder as
|
|
39
|
-
import { TranslateFormHeader as
|
|
38
|
+
import { ImagePlaceholder as T } from "../../../../shared/components/placeholders/image-placeholder.js";
|
|
39
|
+
import { TranslateFormHeader as g } from "../form/translate-form-header.js";
|
|
40
40
|
import { TranslateFormRowData as s } from "../form/translate-form-row-data.js";
|
|
41
41
|
import { TranslateFormSeparator as a } from "../form/translate-form-separator.js";
|
|
42
42
|
import { TranslateInput as N } from "../form/translate-input.js";
|
|
43
|
-
import {
|
|
44
|
-
import { LocaleSelector as
|
|
43
|
+
import { TranslateRichText as F } from "../form/translate-rich-text.js";
|
|
44
|
+
import { LocaleSelector as v } from "../locale-selector/locale-selector.js";
|
|
45
45
|
import { TranslateProductCustomField as C } from "./custom-fields/translate-product-custom-fields.js";
|
|
46
46
|
import { TranslateOptions as w } from "./options/translate-product-options.js";
|
|
47
47
|
import { ReplaceProductSheet as S } from "./replace-product/replace-product-sheet.js";
|
|
48
48
|
import { TranslateProductFormSubmitButton as j } from "./submit-button/translate-product-form-submit-button.js";
|
|
49
49
|
import { useTranslateProductForm as P } from "./use-form/use-translate-product-form.js";
|
|
50
50
|
const Ce = ({ product: r }) => {
|
|
51
|
-
const
|
|
52
|
-
(
|
|
51
|
+
const i = P(r), m = !!r.options.length, l = !!r.customFieldEntries.filter(
|
|
52
|
+
(o) => u(o.definition.type)
|
|
53
53
|
).length;
|
|
54
|
-
return /* @__PURE__ */ e(b, { ...
|
|
54
|
+
return /* @__PURE__ */ e(b, { ...i, children: /* @__PURE__ */ t("form", { onSubmit: i.onSubmit, className: "w-full border-l", children: [
|
|
55
55
|
/* @__PURE__ */ t("header", { className: "flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between w-full p-4 border-b", children: [
|
|
56
56
|
/* @__PURE__ */ t("div", { className: "flex items-center gap-3", children: [
|
|
57
57
|
r.assets.items?.[0]?.source ? /* @__PURE__ */ e(
|
|
@@ -62,7 +62,7 @@ const Ce = ({ product: r }) => {
|
|
|
62
62
|
className: "shrink-0 size-10 sm:size-9 rounded-sm object-cover"
|
|
63
63
|
}
|
|
64
64
|
) : /* @__PURE__ */ e(
|
|
65
|
-
|
|
65
|
+
T,
|
|
66
66
|
{
|
|
67
67
|
className: "shrink-0 size-10 sm:size-9 rounded-sm object-cover",
|
|
68
68
|
initial: r.name
|
|
@@ -72,40 +72,41 @@ const Ce = ({ product: r }) => {
|
|
|
72
72
|
] }),
|
|
73
73
|
/* @__PURE__ */ t("div", { className: "flex flex-col sm:flex-row items-center gap-3", children: [
|
|
74
74
|
/* @__PURE__ */ e(S, {}),
|
|
75
|
-
/* @__PURE__ */ e(
|
|
75
|
+
/* @__PURE__ */ e(v, {}),
|
|
76
76
|
/* @__PURE__ */ e(j, { product: r })
|
|
77
77
|
] })
|
|
78
78
|
] }),
|
|
79
79
|
/* @__PURE__ */ e("div", { className: "p-4 sm:h-[calc(100vh-69px-69px-32px)] overflow-y-auto", children: /* @__PURE__ */ t(p, { className: "pb-0", children: [
|
|
80
80
|
/* @__PURE__ */ e("div", { className: "flex items-center justify-between px-4", children: /* @__PURE__ */ e(c, { children: "General" }) }),
|
|
81
|
-
/* @__PURE__ */ e(f, { className: "p-0 border-t lg:border-t-0", children: /* @__PURE__ */ t(d, { children: [
|
|
82
|
-
/* @__PURE__ */ e(
|
|
81
|
+
/* @__PURE__ */ e(f, { className: "p-0 border-t lg:border-t-0", children: /* @__PURE__ */ t(d, { className: "table-fixed", children: [
|
|
82
|
+
/* @__PURE__ */ e(g, {}),
|
|
83
83
|
/* @__PURE__ */ t(h, { children: [
|
|
84
84
|
/* @__PURE__ */ e(s, { field: "Name", reference: r.name, children: /* @__PURE__ */ e(
|
|
85
85
|
N,
|
|
86
86
|
{
|
|
87
87
|
label: "English",
|
|
88
|
-
...
|
|
89
|
-
onChange: (
|
|
88
|
+
...i.register("name"),
|
|
89
|
+
onChange: (o) => i.setValue("name", o.target.value)
|
|
90
90
|
}
|
|
91
91
|
) }),
|
|
92
92
|
/* @__PURE__ */ e(
|
|
93
93
|
s,
|
|
94
94
|
{
|
|
95
|
+
richText: !0,
|
|
95
96
|
field: "Description",
|
|
96
97
|
reference: r.description,
|
|
97
|
-
className: n(!
|
|
98
|
+
className: n(!m && "border-b-0"),
|
|
98
99
|
children: /* @__PURE__ */ e(
|
|
99
|
-
|
|
100
|
+
F,
|
|
100
101
|
{
|
|
101
102
|
label: "English",
|
|
102
|
-
...
|
|
103
|
-
onChange: (
|
|
103
|
+
...i.register("description"),
|
|
104
|
+
onChange: (o) => i.setValue("description", o)
|
|
104
105
|
}
|
|
105
106
|
)
|
|
106
107
|
}
|
|
107
108
|
),
|
|
108
|
-
|
|
109
|
+
m && /* @__PURE__ */ e(a, { text: "Options" }),
|
|
109
110
|
/* @__PURE__ */ e(w, { product: r }),
|
|
110
111
|
l && /* @__PURE__ */ e(a, { text: "Custom fields", className: "border-t!" }),
|
|
111
112
|
/* @__PURE__ */ e(C, { product: r })
|