strapi-plugin-comments 3.0.7-beta.1 → 3.0.8
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/README.md +21 -3
- package/dist/_chunks/index-B5PjDM8c.js +1 -0
- package/dist/_chunks/index-BGCzzYSK.js +2175 -0
- package/dist/_chunks/index-BS9J96Lh.mjs +2022 -0
- package/dist/_chunks/{index-DbSxM8lO.js → index-C06AHjYM.js} +35 -35
- package/dist/_chunks/{index-CVaM8WKt.mjs → index-C9SDOq14.mjs} +1659 -1666
- package/dist/_chunks/index-Chf4p7eV.js +18 -0
- package/dist/_chunks/{index-D9B514y5.mjs → index-Dz0m9-CE.mjs} +9443 -9389
- package/dist/_chunks/{index-wsRcN626.mjs → index-iv4k-YuD.mjs} +124 -123
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/server/index.js +15 -15
- package/dist/server/index.mjs +1002 -1005
- package/dist/server/src/controllers/index.d.ts +105 -0
- package/dist/server/src/index.d.ts +420 -0
- package/dist/server/src/services/admin/admin.service.d.ts +105 -0
- package/dist/server/src/services/client.service.d.ts +105 -0
- package/dist/server/src/services/index.d.ts +315 -0
- package/dist/server/src/validators/api/controllers/client.controller.validator.d.ts +105 -0
- package/package.json +10 -10
- package/dist/_chunks/index-BgJ65O-2.js +0 -44
- package/dist/_chunks/index-BpDl_L4E.mjs +0 -5715
- package/dist/_chunks/index-CTrpEEVW.js +0 -2153
- package/dist/_chunks/index-CYrQYscU.js +0 -1
|
@@ -1,76 +1,75 @@
|
|
|
1
1
|
import { jsx as e, Fragment as O, jsxs as i } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import { useTracking as
|
|
4
|
-
import { useMutation as A, useQuery as M, useQueryClient as
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import Se from "
|
|
2
|
+
import { l as N, e as F, f as ae, B as p, a3 as re, F as q, T as m, $ as r, o as n, a4 as T, a5 as x, a6 as f, a7 as se, a8 as Q, a9 as W, aa as le } from "./index-Dz0m9-CE.mjs";
|
|
3
|
+
import { useTracking as ce, useNotification as de, Page as j, Layouts as D, Form as ge } from "@strapi/strapi/admin";
|
|
4
|
+
import { useMutation as A, useQuery as M, useQueryClient as he, QueryClient as pe } from "@tanstack/react-query";
|
|
5
|
+
import { useMemo as me, useRef as ue, useState as be, useCallback as $ } from "react";
|
|
6
|
+
import fe from "styled-components";
|
|
7
|
+
import { u as U, e as ye, a as Se, g as t, d as we } from "./index-BS9J96Lh.mjs";
|
|
8
8
|
const P = ({
|
|
9
|
-
children:
|
|
9
|
+
children: d,
|
|
10
10
|
condition: l
|
|
11
|
-
}) => l ? /* @__PURE__ */ e(O, { children:
|
|
12
|
-
const l =
|
|
11
|
+
}) => l ? /* @__PURE__ */ e(O, { children: d }) : null, Re = (d = {}) => {
|
|
12
|
+
const l = U(), y = A({
|
|
13
13
|
mutationFn: l.settings.update,
|
|
14
|
-
onSuccess:
|
|
15
|
-
onError:
|
|
16
|
-
}),
|
|
14
|
+
onSuccess: d.updateSettingsMutationSuccess,
|
|
15
|
+
onError: d.updateSettingsMutationError
|
|
16
|
+
}), S = A({
|
|
17
17
|
mutationFn: l.settings.restore,
|
|
18
|
-
onSuccess:
|
|
19
|
-
onError:
|
|
20
|
-
}),
|
|
18
|
+
onSuccess: d.restoreSettingsMutationSuccess,
|
|
19
|
+
onError: d.restoreSettingsMutationError
|
|
20
|
+
}), h = A({
|
|
21
21
|
mutationFn: l.settings.restart,
|
|
22
|
-
onSuccess:
|
|
23
|
-
onError:
|
|
24
|
-
}),
|
|
22
|
+
onSuccess: d.restartStrapiMutationSuccess,
|
|
23
|
+
onError: d.restartStrapiMutationError
|
|
24
|
+
}), w = M({
|
|
25
25
|
queryKey: l.config.getKey(),
|
|
26
26
|
queryFn: l.config.query
|
|
27
|
-
}),
|
|
27
|
+
}), u = M({
|
|
28
28
|
queryKey: l.contentTypeBuilder.all.getKey(),
|
|
29
29
|
queryFn: l.contentTypeBuilder.all.query
|
|
30
|
-
}),
|
|
30
|
+
}), b = M({
|
|
31
31
|
queryKey: l.roles.getKey(),
|
|
32
32
|
queryFn: l.roles.query
|
|
33
33
|
});
|
|
34
|
-
return
|
|
35
|
-
config:
|
|
36
|
-
collectionTypes:
|
|
37
|
-
roles:
|
|
38
|
-
restoreSettingsMutation:
|
|
39
|
-
updateSettingsMutation:
|
|
40
|
-
restartStrapiMutation:
|
|
34
|
+
return me(() => ({
|
|
35
|
+
config: w,
|
|
36
|
+
collectionTypes: u,
|
|
37
|
+
roles: b,
|
|
38
|
+
restoreSettingsMutation: S,
|
|
39
|
+
updateSettingsMutation: y,
|
|
40
|
+
restartStrapiMutation: h
|
|
41
41
|
}), [
|
|
42
|
-
|
|
43
|
-
f,
|
|
42
|
+
w,
|
|
44
43
|
b,
|
|
45
|
-
|
|
44
|
+
u,
|
|
46
45
|
S,
|
|
47
|
-
|
|
46
|
+
y,
|
|
47
|
+
h
|
|
48
48
|
]);
|
|
49
|
-
},
|
|
49
|
+
}, I = {
|
|
50
50
|
background: "neutral0",
|
|
51
51
|
hasRadius: !0,
|
|
52
52
|
shadow: "filterShadow",
|
|
53
53
|
padding: 6,
|
|
54
54
|
width: "100%"
|
|
55
|
-
},
|
|
55
|
+
}, Ie = fe(le)(() => ({
|
|
56
56
|
"[role]": {
|
|
57
57
|
flexDirection: "column"
|
|
58
58
|
}
|
|
59
59
|
})), Ce = () => {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
updateSettingsMutation: k,
|
|
60
|
+
const { trackUsage: d } = ce(), l = ue(null), { toggleNotification: y } = de(), [S, h] = be(!1), { isLoadingForPermissions: w, canSettingsChange: u } = Se(), b = he(), v = U(), {
|
|
61
|
+
config: c,
|
|
62
|
+
collectionTypes: k,
|
|
63
|
+
roles: C,
|
|
64
|
+
restoreSettingsMutation: z,
|
|
65
|
+
updateSettingsMutation: E,
|
|
67
66
|
restartStrapiMutation: G
|
|
68
|
-
} =
|
|
67
|
+
} = Re({
|
|
69
68
|
restoreSettingsMutationSuccess: () => {
|
|
70
69
|
b.invalidateQueries({
|
|
71
|
-
queryKey:
|
|
70
|
+
queryKey: v.config.getKey(),
|
|
72
71
|
exact: !1
|
|
73
|
-
}), h(!0),
|
|
72
|
+
}), h(!0), y({
|
|
74
73
|
message: t("page.settings.actions.restore.success"),
|
|
75
74
|
type: "success"
|
|
76
75
|
});
|
|
@@ -80,91 +79,93 @@ const P = ({
|
|
|
80
79
|
},
|
|
81
80
|
updateSettingsMutationSuccess: () => {
|
|
82
81
|
b.invalidateQueries({
|
|
83
|
-
queryKey:
|
|
82
|
+
queryKey: v.config.getKey(),
|
|
84
83
|
exact: !1
|
|
85
84
|
}), h(!0);
|
|
86
85
|
}
|
|
87
|
-
}), V =
|
|
88
|
-
|
|
89
|
-
}, []),
|
|
90
|
-
|
|
91
|
-
...
|
|
92
|
-
blockedAuthorProps:
|
|
86
|
+
}), V = $(() => {
|
|
87
|
+
l.current?.requestSubmit();
|
|
88
|
+
}, []), J = $((a) => {
|
|
89
|
+
E.mutate({
|
|
90
|
+
...a,
|
|
91
|
+
blockedAuthorProps: a.blockedAuthorProps.split(",").map((s) => s.trim())
|
|
93
92
|
});
|
|
94
|
-
}, [
|
|
95
|
-
if (
|
|
93
|
+
}, [E]);
|
|
94
|
+
if (c.status !== "success" || k.status !== "success" || C.status !== "success" || w)
|
|
96
95
|
return t("page.settings.loading");
|
|
97
|
-
const
|
|
96
|
+
const L = k.data.filter((a) => a.uid.includes("api::")), X = c.data.enabledCollections.filter((a) => L.some((s) => s.uid === a)), Y = N.isNil(c.data.badWords) ? !0 : c.data?.badWords, Z = !!c.data.gql?.auth, _ = c.data.moderatorRoles.filter((a) => C.data.filter((s) => s.code === a)), ee = c.data.client?.url, te = c.data.client?.contactEmail, ne = c.data.blockedAuthorProps ?? [], ie = () => h(!1);
|
|
98
97
|
return /* @__PURE__ */ i(O, { children: [
|
|
99
|
-
/* @__PURE__ */ e(
|
|
100
|
-
/* @__PURE__ */ i(
|
|
98
|
+
/* @__PURE__ */ e(j.Title, { children: "Comments - settings" }),
|
|
99
|
+
/* @__PURE__ */ i(j.Main, { children: [
|
|
101
100
|
/* @__PURE__ */ e(
|
|
102
|
-
|
|
101
|
+
D.Header,
|
|
103
102
|
{
|
|
104
103
|
title: t("page.settings.header.title"),
|
|
105
104
|
subtitle: t("page.settings.header.description"),
|
|
106
105
|
as: "h2",
|
|
107
|
-
primaryAction: /* @__PURE__ */ e(P, { condition: u, children: /* @__PURE__ */ e(
|
|
106
|
+
primaryAction: /* @__PURE__ */ e(P, { condition: u, children: /* @__PURE__ */ e(F, { type: "submit", startIcon: /* @__PURE__ */ e(ae, {}), onClick: V, children: t("page.settings.actions.submit") }) })
|
|
108
107
|
}
|
|
109
108
|
),
|
|
110
|
-
/* @__PURE__ */ i(
|
|
109
|
+
/* @__PURE__ */ i(D.Content, { children: [
|
|
111
110
|
S && /* @__PURE__ */ e(p, { marginBottom: 4, children: /* @__PURE__ */ e(
|
|
112
|
-
|
|
111
|
+
Ie,
|
|
113
112
|
{
|
|
114
113
|
closeLabel: t("page.settings.actions.restart.alert.cancel"),
|
|
115
114
|
title: t("page.settings.actions.restart.alert.title"),
|
|
116
|
-
onClose:
|
|
117
|
-
action: /* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(
|
|
115
|
+
onClose: ie,
|
|
116
|
+
action: /* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(F, { onClick: G.mutate, startIcon: /* @__PURE__ */ e(re, {}), children: t("page.settings.actions.restart") }) }),
|
|
118
117
|
children: /* @__PURE__ */ e(p, { marginTop: 4, children: t("page.settings.actions.restart.alert.description") })
|
|
119
118
|
}
|
|
120
119
|
) }),
|
|
121
120
|
/* @__PURE__ */ e(
|
|
122
|
-
|
|
121
|
+
ge,
|
|
123
122
|
{
|
|
124
123
|
method: "POST",
|
|
125
|
-
|
|
126
|
-
|
|
124
|
+
width: "auto",
|
|
125
|
+
height: "auto",
|
|
126
|
+
ref: l,
|
|
127
|
+
onSubmit: J,
|
|
127
128
|
initialValues: {
|
|
128
|
-
enabledCollections:
|
|
129
|
-
moderatorRoles:
|
|
130
|
-
badWords:
|
|
131
|
-
clientEmail:
|
|
132
|
-
clientUrl:
|
|
133
|
-
gqlAuthEnabled:
|
|
134
|
-
approvalFlow:
|
|
135
|
-
entryLabel:
|
|
136
|
-
blockedAuthorProps:
|
|
129
|
+
enabledCollections: X,
|
|
130
|
+
moderatorRoles: _,
|
|
131
|
+
badWords: Y,
|
|
132
|
+
clientEmail: te,
|
|
133
|
+
clientUrl: ee,
|
|
134
|
+
gqlAuthEnabled: Z,
|
|
135
|
+
approvalFlow: c.data.approvalFlow,
|
|
136
|
+
entryLabel: c.data.entryLabel,
|
|
137
|
+
blockedAuthorProps: ne.join(", ")
|
|
137
138
|
},
|
|
138
|
-
children: ({ values:
|
|
139
|
-
/* @__PURE__ */ i(p, { ...
|
|
139
|
+
children: ({ values: a, onChange: s }) => /* @__PURE__ */ i(q, { gap: 4, direction: "column", children: [
|
|
140
|
+
/* @__PURE__ */ i(p, { ...I, children: [
|
|
140
141
|
/* @__PURE__ */ e(m, { variant: "delta", as: "h2", children: t("page.settings.section.general") }),
|
|
141
|
-
/* @__PURE__ */ i(
|
|
142
|
-
/* @__PURE__ */ e(
|
|
142
|
+
/* @__PURE__ */ i(r.Root, { gap: 4, marginTop: 4, width: "100%", children: [
|
|
143
|
+
/* @__PURE__ */ e(r.Item, { xs: 12, children: /* @__PURE__ */ i(n.Root, { width: "100%", hint: t("page.settings.form.enabledCollections.hint"), children: [
|
|
143
144
|
/* @__PURE__ */ e(n.Label, { htmlFor: "enabledCollections", children: t("page.settings.form.enabledCollections.label") }),
|
|
144
145
|
/* @__PURE__ */ e(
|
|
145
|
-
|
|
146
|
+
T,
|
|
146
147
|
{
|
|
147
148
|
withTags: !0,
|
|
148
149
|
name: "enabledCollections",
|
|
149
|
-
value:
|
|
150
|
+
value: a.enabledCollections,
|
|
150
151
|
onChange: (o) => {
|
|
151
152
|
s("enabledCollections", o);
|
|
152
153
|
},
|
|
153
|
-
children:
|
|
154
|
+
children: L.map((o) => /* @__PURE__ */ e(x, { value: o.uid, children: o.schema.displayName }, o.uid))
|
|
154
155
|
}
|
|
155
156
|
),
|
|
156
157
|
/* @__PURE__ */ e(n.Hint, {})
|
|
157
158
|
] }) }),
|
|
158
|
-
|
|
159
|
-
/* @__PURE__ */ e(
|
|
160
|
-
/* @__PURE__ */ e(
|
|
161
|
-
const
|
|
162
|
-
if (
|
|
163
|
-
const { schema: { displayName: R, attributes:
|
|
164
|
-
return /* @__PURE__ */ i(
|
|
165
|
-
/* @__PURE__ */ e(
|
|
166
|
-
/* @__PURE__ */ e(
|
|
167
|
-
/* @__PURE__ */ e(
|
|
159
|
+
a.enabledCollections.length > 0 && /* @__PURE__ */ e(r.Item, { children: /* @__PURE__ */ i(r.Root, { gap: 4, width: "100%", children: [
|
|
160
|
+
/* @__PURE__ */ e(r.Item, { children: /* @__PURE__ */ e(m, { children: t("page.settings.form.contentTypesSettings.label") }) }),
|
|
161
|
+
/* @__PURE__ */ e(r.Item, { children: /* @__PURE__ */ e(f.Root, { style: { width: "100%" }, children: N.orderBy(a.enabledCollections).map((o) => {
|
|
162
|
+
const H = L.find((R) => R.uid === o);
|
|
163
|
+
if (H) {
|
|
164
|
+
const { schema: { displayName: R, attributes: K } } = H, B = Object.keys(K).filter((g) => K[g].type === "string");
|
|
165
|
+
return /* @__PURE__ */ i(f.Item, { value: o, children: [
|
|
166
|
+
/* @__PURE__ */ e(f.Header, { children: /* @__PURE__ */ e(f.Trigger, { children: /* @__PURE__ */ e(m, { variant: "epsilon", as: "h3", children: R }) }) }),
|
|
167
|
+
/* @__PURE__ */ e(f.Content, { children: /* @__PURE__ */ i(r.Root, { padding: 6, gap: 4, children: [
|
|
168
|
+
/* @__PURE__ */ e(r.Item, { children: /* @__PURE__ */ i(
|
|
168
169
|
n.Root,
|
|
169
170
|
{
|
|
170
171
|
width: "100%",
|
|
@@ -180,9 +181,9 @@ const P = ({
|
|
|
180
181
|
visibleLabels: !0,
|
|
181
182
|
onLabel: t("components.toogle.enabled"),
|
|
182
183
|
offLabel: t("components.toogle.disabled"),
|
|
183
|
-
checked:
|
|
184
|
+
checked: a.approvalFlow.includes(o),
|
|
184
185
|
onCheckedChange: (g) => {
|
|
185
|
-
s("approvalFlow", g ? [...
|
|
186
|
+
s("approvalFlow", g ? [...a.approvalFlow, o] : a.approvalFlow.filter((oe) => oe !== o));
|
|
186
187
|
}
|
|
187
188
|
}
|
|
188
189
|
),
|
|
@@ -190,7 +191,7 @@ const P = ({
|
|
|
190
191
|
]
|
|
191
192
|
}
|
|
192
193
|
) }),
|
|
193
|
-
/* @__PURE__ */ e(P, { condition:
|
|
194
|
+
/* @__PURE__ */ e(P, { condition: B.length > 0, children: /* @__PURE__ */ e(r.Item, { children: /* @__PURE__ */ i(
|
|
194
195
|
n.Root,
|
|
195
196
|
{
|
|
196
197
|
width: "100%",
|
|
@@ -198,16 +199,16 @@ const P = ({
|
|
|
198
199
|
children: [
|
|
199
200
|
/* @__PURE__ */ e(n.Label, { children: t("page.settings.form.entryLabel.label") }),
|
|
200
201
|
/* @__PURE__ */ e(
|
|
201
|
-
|
|
202
|
+
T,
|
|
202
203
|
{
|
|
203
204
|
withTags: !0,
|
|
204
205
|
placeholder: t("page.settings.form.entryLabel.placeholder"),
|
|
205
206
|
name: "enabledCollections",
|
|
206
|
-
value:
|
|
207
|
+
value: a.entryLabel[o] ?? [],
|
|
207
208
|
onChange: (g) => {
|
|
208
|
-
s("entryLabel", { ...
|
|
209
|
+
s("entryLabel", { ...a.entryLabel, [o]: g });
|
|
209
210
|
},
|
|
210
|
-
children:
|
|
211
|
+
children: B.map((g) => /* @__PURE__ */ e(x, { value: g, children: g }, g))
|
|
211
212
|
}
|
|
212
213
|
),
|
|
213
214
|
/* @__PURE__ */ e(n.Hint, {})
|
|
@@ -222,16 +223,16 @@ const P = ({
|
|
|
222
223
|
] }) })
|
|
223
224
|
] })
|
|
224
225
|
] }),
|
|
225
|
-
/* @__PURE__ */ i(p, { ...
|
|
226
|
+
/* @__PURE__ */ i(p, { ...I, children: [
|
|
226
227
|
/* @__PURE__ */ e(m, { variant: "delta", as: "h2", children: t("page.settings.section.additional") }),
|
|
227
|
-
/* @__PURE__ */ i(
|
|
228
|
-
/* @__PURE__ */ e(
|
|
228
|
+
/* @__PURE__ */ i(r.Root, { gap: 4, marginTop: 4, width: "100%", children: [
|
|
229
|
+
/* @__PURE__ */ e(r.Item, { xs: 4, alignItems: "start", children: /* @__PURE__ */ i(n.Root, { width: "100%", hint: t("page.settings.form.enabledCollections.hint"), children: [
|
|
229
230
|
/* @__PURE__ */ e(n.Label, { htmlFor: "enabledCollections", children: t("page.settings.form.enabledCollections.label") }),
|
|
230
231
|
/* @__PURE__ */ e(
|
|
231
|
-
|
|
232
|
+
Q,
|
|
232
233
|
{
|
|
233
234
|
name: "badWords",
|
|
234
|
-
checked:
|
|
235
|
+
checked: a.badWords,
|
|
235
236
|
onChange: s,
|
|
236
237
|
onLabel: t("components.toogle.enabled"),
|
|
237
238
|
offLabel: t("components.toogle.disabled"),
|
|
@@ -240,18 +241,18 @@ const P = ({
|
|
|
240
241
|
),
|
|
241
242
|
/* @__PURE__ */ e(n.Hint, {})
|
|
242
243
|
] }) }),
|
|
243
|
-
/* @__PURE__ */ e(
|
|
244
|
+
/* @__PURE__ */ e(r.Item, { xs: 4, alignItems: "start", children: /* @__PURE__ */ i(n.Root, { width: "100%", hint: t("page.settings.form.author.blockedProps.hint"), children: [
|
|
244
245
|
/* @__PURE__ */ e(n.Label, { htmlFor: "enabledCollections", children: t("page.settings.form.author.blockedProps.label") }),
|
|
245
246
|
/* @__PURE__ */ e(n.Input, { name: "blockedProps", onChange: s }),
|
|
246
247
|
/* @__PURE__ */ e(n.Hint, {})
|
|
247
248
|
] }) }),
|
|
248
|
-
/* @__PURE__ */ e(
|
|
249
|
+
/* @__PURE__ */ e(r.Item, { xs: 4, alignItems: "start", children: /* @__PURE__ */ i(n.Root, { width: "100%", hint: t("page.settings.form.gqlAuth.hint"), children: [
|
|
249
250
|
/* @__PURE__ */ e(n.Label, { children: t("page.settings.form.gqlAuth.label") }),
|
|
250
251
|
/* @__PURE__ */ e(
|
|
251
|
-
|
|
252
|
+
Q,
|
|
252
253
|
{
|
|
253
254
|
name: "gqlAuthEnabled",
|
|
254
|
-
checked:
|
|
255
|
+
checked: a.gqlAuthEnabled,
|
|
255
256
|
onChange: s,
|
|
256
257
|
onLabel: t("components.toogle.enabled"),
|
|
257
258
|
offLabel: t("components.toogle.disabled"),
|
|
@@ -262,20 +263,20 @@ const P = ({
|
|
|
262
263
|
] }) })
|
|
263
264
|
] })
|
|
264
265
|
] }),
|
|
265
|
-
/* @__PURE__ */ i(p, { ...
|
|
266
|
+
/* @__PURE__ */ i(p, { ...I, children: [
|
|
266
267
|
/* @__PURE__ */ e(m, { variant: "delta", as: "h2", children: t("page.settings.section.client") }),
|
|
267
|
-
/* @__PURE__ */ i(
|
|
268
|
-
/* @__PURE__ */ e(
|
|
268
|
+
/* @__PURE__ */ i(r.Root, { gap: 4, marginTop: 4, width: "100%", children: [
|
|
269
|
+
/* @__PURE__ */ e(r.Item, { xs: 4, alignItems: "start", children: /* @__PURE__ */ i(n.Root, { width: "100%", hint: t("page.settings.form.client.url.hint"), children: [
|
|
269
270
|
/* @__PURE__ */ e(n.Label, { children: t("page.settings.form.client.url.label") }),
|
|
270
271
|
/* @__PURE__ */ e(n.Input, { name: "clientUrl", onChange: s }),
|
|
271
272
|
/* @__PURE__ */ e(n.Hint, {})
|
|
272
273
|
] }) }),
|
|
273
|
-
/* @__PURE__ */ e(
|
|
274
|
+
/* @__PURE__ */ e(r.Item, { xs: 4, alignItems: "start", children: /* @__PURE__ */ i(n.Root, { width: "100%", hint: t("page.settings.form.client.email.hint"), children: [
|
|
274
275
|
/* @__PURE__ */ e(n.Label, { children: t("page.settings.form.client.email.label") }),
|
|
275
276
|
/* @__PURE__ */ e(n.Input, { name: "clientEmail", onChange: s }),
|
|
276
277
|
/* @__PURE__ */ e(n.Hint, {})
|
|
277
278
|
] }) }),
|
|
278
|
-
/* @__PURE__ */ e(
|
|
279
|
+
/* @__PURE__ */ e(r.Item, { xs: 4, alignItems: "start", children: /* @__PURE__ */ i(
|
|
279
280
|
n.Root,
|
|
280
281
|
{
|
|
281
282
|
width: "100%",
|
|
@@ -283,16 +284,16 @@ const P = ({
|
|
|
283
284
|
children: [
|
|
284
285
|
/* @__PURE__ */ e(n.Label, { children: t("page.settings.form.moderatorRoles.label") }),
|
|
285
286
|
/* @__PURE__ */ e(
|
|
286
|
-
|
|
287
|
+
T,
|
|
287
288
|
{
|
|
288
289
|
withTags: !0,
|
|
289
290
|
placeholder: t("page.settings.form.moderatorRoles.placeholder"),
|
|
290
291
|
name: "enabledCollections",
|
|
291
|
-
value:
|
|
292
|
+
value: a.moderatorRoles,
|
|
292
293
|
onChange: (o) => {
|
|
293
294
|
s("moderatorRoles", o);
|
|
294
295
|
},
|
|
295
|
-
children:
|
|
296
|
+
children: C.data.map((o) => /* @__PURE__ */ e(x, { value: o.code, children: o.name }, o.code))
|
|
296
297
|
}
|
|
297
298
|
),
|
|
298
299
|
/* @__PURE__ */ e(n.Hint, {})
|
|
@@ -301,27 +302,27 @@ const P = ({
|
|
|
301
302
|
) })
|
|
302
303
|
] })
|
|
303
304
|
] }),
|
|
304
|
-
/* @__PURE__ */ e(P, { condition: u, children: /* @__PURE__ */ e(p, { ...
|
|
305
|
+
/* @__PURE__ */ e(P, { condition: u, children: /* @__PURE__ */ e(p, { ...I, children: /* @__PURE__ */ i(q, { gap: 4, direction: "column", alignItems: "flex-start", children: [
|
|
305
306
|
/* @__PURE__ */ i(q, { gap: 2, direction: "column", alignItems: "flex-start", children: [
|
|
306
307
|
/* @__PURE__ */ e(m, { variant: "delta", as: "h2", children: t("page.settings.section.restore") }),
|
|
307
308
|
/* @__PURE__ */ e(m, { variant: "pi", as: "h4", children: t("page.settings.section.restore.subtitle") })
|
|
308
309
|
] }),
|
|
309
310
|
/* @__PURE__ */ e(
|
|
310
|
-
|
|
311
|
+
we,
|
|
311
312
|
{
|
|
312
313
|
Trigger: ({ onClick: o }) => /* @__PURE__ */ e(
|
|
313
|
-
|
|
314
|
+
F,
|
|
314
315
|
{
|
|
315
316
|
variant: "danger-light",
|
|
316
|
-
startIcon: /* @__PURE__ */ e(
|
|
317
|
+
startIcon: /* @__PURE__ */ e(W, {}),
|
|
317
318
|
onClick: o,
|
|
318
319
|
children: t("page.settings.actions.restore")
|
|
319
320
|
}
|
|
320
321
|
),
|
|
321
|
-
onConfirm:
|
|
322
|
+
onConfirm: z.mutate,
|
|
322
323
|
title: t("page.settings.actions.restore.confirmation.header"),
|
|
323
324
|
labelConfirm: t("page.settings.actions.restore.confirmation.button.confirm"),
|
|
324
|
-
iconConfirm: /* @__PURE__ */ e(
|
|
325
|
+
iconConfirm: /* @__PURE__ */ e(W, {}),
|
|
325
326
|
children: t("page.settings.actions.restore.confirmation.description")
|
|
326
327
|
}
|
|
327
328
|
)
|
|
@@ -333,8 +334,8 @@ const P = ({
|
|
|
333
334
|
] })
|
|
334
335
|
] });
|
|
335
336
|
};
|
|
336
|
-
new
|
|
337
|
-
const
|
|
337
|
+
new pe();
|
|
338
|
+
const Pe = () => /* @__PURE__ */ e(ye, { children: /* @__PURE__ */ e(Ce, {}) });
|
|
338
339
|
export {
|
|
339
|
-
|
|
340
|
+
Pe as default
|
|
340
341
|
};
|
package/dist/admin/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("../_chunks/index-
|
|
1
|
+
"use strict";const e=require("../_chunks/index-BGCzzYSK.js");require("react");module.exports=e.index;
|
package/dist/admin/index.mjs
CHANGED