strapi-plugin-comments 3.1.3 → 3.2.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.
- package/dist/_chunks/{en-Cbt6CXo1.mjs → en-Y06L5Ws_.mjs} +4 -2
- package/dist/_chunks/en-nurIIakL.js +1 -0
- package/dist/_chunks/{fr-CztE_B7U.mjs → fr-Cv2agoba.mjs} +3 -1
- package/dist/_chunks/{fr-C4_v32Lz.js → fr-JAoXWyAN.js} +1 -1
- package/dist/_chunks/index-5LPolIUr.js +1 -0
- package/dist/_chunks/index-BHaPiDDi.js +5 -0
- package/dist/_chunks/{index-Cd0Ba7aa.mjs → index-Bu69cWq9.mjs} +119 -120
- package/dist/_chunks/index-CaQhYHpU.js +44 -0
- package/dist/_chunks/index-D1CAoT0G.mjs +5704 -0
- package/dist/_chunks/index-DCg7dWuW.mjs +119 -0
- package/dist/_chunks/{index-DLzwPdb9.js → index-DV3FvCxv.js} +44 -44
- package/dist/_chunks/{index-DNqB_KDi.mjs → index-rxGUTZN1.mjs} +7100 -7039
- package/dist/_chunks/{pl-D2JXVqZi.js → pl-DUaDM2d3.js} +1 -1
- package/dist/_chunks/{pl-DBv6tBP6.mjs → pl-a5516Yys.mjs} +3 -1
- package/dist/_chunks/{pt-BR-CCBBpLDV.js → pt-BR-BXuFBSgm.js} +1 -1
- package/dist/_chunks/{pt-BR-VqNYQ17j.mjs → pt-BR-DwEywOda.mjs} +3 -1
- package/dist/_chunks/{ru-DHi8VpMQ.mjs → ru-72L1_BWN.mjs} +3 -1
- package/dist/_chunks/{ru-DUiPYaBn.js → ru-B7jFc-n7.js} +1 -1
- package/dist/_chunks/{tr-D_0EQ9aV.js → tr-B2Tw9kcB.js} +1 -1
- package/dist/_chunks/{tr-ZRzw4I-8.mjs → tr-Ca93Ai2h.mjs} +3 -1
- package/dist/_chunks/{zh-Hans-D1xXhhCe.js → zh-Hans-Cp3JcN8q.js} +1 -1
- package/dist/_chunks/{zh-Hans-Bz2wrwoC.mjs → zh-Hans-DXLzMysj.mjs} +3 -1
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +4 -2
- package/dist/admin/src/components/SortableTh/index.d.ts +3 -2
- package/dist/admin/src/components/StatusBadge/index.d.ts +5 -1
- package/dist/admin/src/pages/Discover/index.d.ts +1 -5
- package/dist/admin/src/translations/en.d.ts +2 -0
- package/dist/admin/src/translations/fr.d.ts +2 -0
- package/dist/admin/src/translations/pl.d.ts +2 -0
- package/dist/admin/src/translations/pt-BR.d.ts +2 -0
- package/dist/admin/src/translations/ru.d.ts +2 -0
- package/dist/admin/src/translations/tr.d.ts +2 -0
- package/dist/admin/src/translations/zh-Hans.d.ts +2 -0
- package/dist/server/index.js +65 -59
- package/dist/server/index.mjs +1822 -1750
- package/package.json +9 -7
- package/dist/_chunks/en-DalOPLjA.js +0 -1
- package/dist/_chunks/index-BL18_3Ha.js +0 -2228
- package/dist/_chunks/index-BUf3iTvC.mjs +0 -38818
- package/dist/_chunks/index-BmKmka7n.js +0 -18
- package/dist/_chunks/index-CN6R_-01.js +0 -1
- package/dist/_chunks/index-EseY88Mr.mjs +0 -2010
|
@@ -1,50 +1,51 @@
|
|
|
1
1
|
import { jsx as e, Fragment as O, jsxs as i } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { Button as F, Box as p, Flex as q, Typography as m, Grid as s, Field as n, MultiSelect as x, MultiSelectOption as A, Accordion as y, Switch as oe, Toggle as B, Alert as re } from "@strapi/design-system";
|
|
3
|
+
import { Check as se, Play as le, ArrowClockwise as N } from "@strapi/icons";
|
|
4
|
+
import { useNotification as ae, Page as W, Layouts as j, Form as ce } from "@strapi/strapi/admin";
|
|
5
|
+
import { useMutation as T, useQuery as P, useQueryClient as de } from "@tanstack/react-query";
|
|
6
|
+
import { u as U, f as ge, a as he, g as t, l as D, e as pe } from "./index-D1CAoT0G.mjs";
|
|
7
|
+
import { useMemo as me, useRef as ue, useState as be, useCallback as Q } from "react";
|
|
6
8
|
import fe from "styled-components";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
onError: d.restartStrapiMutationError
|
|
24
|
-
}), w = P({
|
|
25
|
-
queryKey: l.config.getKey(),
|
|
26
|
-
queryFn: l.config.query
|
|
9
|
+
const M = ({
|
|
10
|
+
children: c,
|
|
11
|
+
condition: a
|
|
12
|
+
}) => a ? /* @__PURE__ */ e(O, { children: c }) : null, ye = (c = {}) => {
|
|
13
|
+
const a = U(), S = T({
|
|
14
|
+
mutationFn: a.settings.update,
|
|
15
|
+
onSuccess: c.updateSettingsMutationSuccess,
|
|
16
|
+
onError: c.updateSettingsMutationError
|
|
17
|
+
}), h = T({
|
|
18
|
+
mutationFn: a.settings.restore,
|
|
19
|
+
onSuccess: c.restoreSettingsMutationSuccess,
|
|
20
|
+
onError: c.restoreSettingsMutationError
|
|
21
|
+
}), w = T({
|
|
22
|
+
mutationFn: a.settings.restart,
|
|
23
|
+
onSuccess: c.restartStrapiMutationSuccess,
|
|
24
|
+
onError: c.restartStrapiMutationError
|
|
27
25
|
}), u = P({
|
|
28
|
-
queryKey:
|
|
29
|
-
queryFn:
|
|
26
|
+
queryKey: a.config.getKey(),
|
|
27
|
+
queryFn: a.config.query
|
|
30
28
|
}), b = P({
|
|
31
|
-
queryKey:
|
|
32
|
-
queryFn:
|
|
29
|
+
queryKey: a.contentTypeBuilder.all.getKey(),
|
|
30
|
+
queryFn: a.contentTypeBuilder.all.query
|
|
31
|
+
}), f = P({
|
|
32
|
+
queryKey: a.roles.getKey(),
|
|
33
|
+
queryFn: a.roles.query
|
|
33
34
|
});
|
|
34
35
|
return me(() => ({
|
|
35
|
-
config:
|
|
36
|
-
collectionTypes:
|
|
37
|
-
roles:
|
|
38
|
-
restoreSettingsMutation:
|
|
39
|
-
updateSettingsMutation:
|
|
40
|
-
restartStrapiMutation:
|
|
36
|
+
config: u,
|
|
37
|
+
collectionTypes: b,
|
|
38
|
+
roles: f,
|
|
39
|
+
restoreSettingsMutation: h,
|
|
40
|
+
updateSettingsMutation: S,
|
|
41
|
+
restartStrapiMutation: w
|
|
41
42
|
}), [
|
|
42
|
-
w,
|
|
43
|
-
b,
|
|
44
43
|
u,
|
|
44
|
+
f,
|
|
45
|
+
b,
|
|
46
|
+
h,
|
|
45
47
|
S,
|
|
46
|
-
|
|
47
|
-
h
|
|
48
|
+
w
|
|
48
49
|
]);
|
|
49
50
|
}, I = {
|
|
50
51
|
background: "neutral0",
|
|
@@ -52,24 +53,24 @@ const v = ({
|
|
|
52
53
|
shadow: "filterShadow",
|
|
53
54
|
padding: 6,
|
|
54
55
|
width: "100%"
|
|
55
|
-
},
|
|
56
|
+
}, Se = fe(re)(() => ({
|
|
56
57
|
"[role]": {
|
|
57
58
|
flexDirection: "column"
|
|
58
59
|
}
|
|
59
|
-
})),
|
|
60
|
-
const
|
|
61
|
-
config:
|
|
60
|
+
})), we = () => {
|
|
61
|
+
const c = ue(null), { toggleNotification: a } = ae(), [S, h] = be(!1), { isLoadingForPermissions: w, canSettingsChange: u } = he(), b = de(), f = U(), {
|
|
62
|
+
config: d,
|
|
62
63
|
collectionTypes: k,
|
|
63
|
-
roles:
|
|
64
|
+
roles: R,
|
|
64
65
|
restoreSettingsMutation: G,
|
|
65
|
-
updateSettingsMutation:
|
|
66
|
+
updateSettingsMutation: v,
|
|
66
67
|
restartStrapiMutation: V
|
|
67
|
-
} =
|
|
68
|
+
} = ye({
|
|
68
69
|
restoreSettingsMutationSuccess: () => {
|
|
69
70
|
b.invalidateQueries({
|
|
70
|
-
queryKey:
|
|
71
|
+
queryKey: f.config.getKey(),
|
|
71
72
|
exact: !1
|
|
72
|
-
}), h(!0),
|
|
73
|
+
}), h(!0), a({
|
|
73
74
|
message: t("page.settings.actions.restore.success"),
|
|
74
75
|
type: "success"
|
|
75
76
|
});
|
|
@@ -79,111 +80,111 @@ const v = ({
|
|
|
79
80
|
},
|
|
80
81
|
updateSettingsMutationSuccess: () => {
|
|
81
82
|
b.invalidateQueries({
|
|
82
|
-
queryKey:
|
|
83
|
+
queryKey: f.config.getKey(),
|
|
83
84
|
exact: !1
|
|
84
85
|
}), h(!0);
|
|
85
86
|
}
|
|
86
|
-
}), z =
|
|
87
|
-
|
|
88
|
-
}, []), J =
|
|
89
|
-
|
|
87
|
+
}), z = Q(() => {
|
|
88
|
+
c.current?.requestSubmit();
|
|
89
|
+
}, []), J = Q((r) => {
|
|
90
|
+
v.mutate({
|
|
90
91
|
...r,
|
|
91
|
-
blockedAuthorProps: r.blockedAuthorProps.split(",").map((
|
|
92
|
+
blockedAuthorProps: r.blockedAuthorProps.split(",").map((l) => l.trim())
|
|
92
93
|
});
|
|
93
|
-
}, [
|
|
94
|
-
if (
|
|
94
|
+
}, [v]);
|
|
95
|
+
if (d.status !== "success" || k.status !== "success" || R.status !== "success" || w)
|
|
95
96
|
return t("page.settings.loading");
|
|
96
|
-
const L = k.data.filter((r) => r.uid.includes("api::")), X =
|
|
97
|
+
const L = k.data.filter((r) => r.uid.includes("api::")), X = d.data.enabledCollections.filter((r) => L.some((l) => l.uid === r)), Y = D.isNil(d.data.badWords) ? !0 : d.data?.badWords, Z = !!d.data.gql?.auth, _ = d.data.moderatorRoles.filter((r) => R.data.filter((l) => l.code === r)), $ = d.data.client?.url, ee = d.data.client?.contactEmail, te = d.data.blockedAuthorProps ?? [], ne = () => h(!1);
|
|
97
98
|
return /* @__PURE__ */ i(O, { children: [
|
|
98
|
-
/* @__PURE__ */ e(
|
|
99
|
-
/* @__PURE__ */ i(
|
|
99
|
+
/* @__PURE__ */ e(W.Title, { children: "Comments - settings" }),
|
|
100
|
+
/* @__PURE__ */ i(W.Main, { children: [
|
|
100
101
|
/* @__PURE__ */ e(
|
|
101
|
-
|
|
102
|
+
j.Header,
|
|
102
103
|
{
|
|
103
104
|
title: t("page.settings.header.title"),
|
|
104
105
|
subtitle: t("page.settings.header.description"),
|
|
105
106
|
as: "h2",
|
|
106
|
-
primaryAction: /* @__PURE__ */ e(
|
|
107
|
+
primaryAction: /* @__PURE__ */ e(M, { condition: u, children: /* @__PURE__ */ e(F, { type: "submit", startIcon: /* @__PURE__ */ e(se, {}), onClick: z, children: t("page.settings.actions.submit") }) })
|
|
107
108
|
}
|
|
108
109
|
),
|
|
109
|
-
/* @__PURE__ */ i(
|
|
110
|
+
/* @__PURE__ */ i(j.Content, { children: [
|
|
110
111
|
S && /* @__PURE__ */ e(p, { marginBottom: 4, children: /* @__PURE__ */ e(
|
|
111
|
-
|
|
112
|
+
Se,
|
|
112
113
|
{
|
|
113
114
|
closeLabel: t("page.settings.actions.restart.alert.cancel"),
|
|
114
115
|
title: t("page.settings.actions.restart.alert.title"),
|
|
115
|
-
onClose:
|
|
116
|
-
action: /* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(F, { onClick: V.mutate, startIcon: /* @__PURE__ */ e(
|
|
116
|
+
onClose: ne,
|
|
117
|
+
action: /* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(F, { onClick: V.mutate, startIcon: /* @__PURE__ */ e(le, {}), children: t("page.settings.actions.restart") }) }),
|
|
117
118
|
children: /* @__PURE__ */ e(p, { marginTop: 4, children: t("page.settings.actions.restart.alert.description") })
|
|
118
119
|
}
|
|
119
120
|
) }),
|
|
120
121
|
/* @__PURE__ */ e(
|
|
121
|
-
|
|
122
|
+
ce,
|
|
122
123
|
{
|
|
123
124
|
method: "POST",
|
|
124
125
|
width: "auto",
|
|
125
126
|
height: "auto",
|
|
126
|
-
ref:
|
|
127
|
+
ref: c,
|
|
127
128
|
onSubmit: J,
|
|
128
129
|
initialValues: {
|
|
129
130
|
enabledCollections: X,
|
|
130
131
|
moderatorRoles: _,
|
|
131
132
|
badWords: Y,
|
|
132
|
-
clientEmail:
|
|
133
|
-
clientUrl:
|
|
133
|
+
clientEmail: ee,
|
|
134
|
+
clientUrl: $,
|
|
134
135
|
gqlAuthEnabled: Z,
|
|
135
|
-
approvalFlow:
|
|
136
|
-
entryLabel:
|
|
137
|
-
blockedAuthorProps:
|
|
136
|
+
approvalFlow: d.data.approvalFlow,
|
|
137
|
+
entryLabel: d.data.entryLabel,
|
|
138
|
+
blockedAuthorProps: te.join(", ")
|
|
138
139
|
},
|
|
139
|
-
children: ({ values: r, onChange:
|
|
140
|
+
children: ({ values: r, onChange: l }) => /* @__PURE__ */ i(q, { gap: 4, direction: "column", children: [
|
|
140
141
|
/* @__PURE__ */ i(p, { ...I, children: [
|
|
141
142
|
/* @__PURE__ */ e(m, { variant: "delta", as: "h2", children: t("page.settings.section.general") }),
|
|
142
|
-
/* @__PURE__ */ i(
|
|
143
|
-
/* @__PURE__ */ e(
|
|
143
|
+
/* @__PURE__ */ i(s.Root, { gap: 4, marginTop: 4, width: "100%", children: [
|
|
144
|
+
/* @__PURE__ */ e(s.Item, { xs: 12, children: /* @__PURE__ */ i(n.Root, { width: "100%", hint: t("page.settings.form.enabledCollections.hint"), children: [
|
|
144
145
|
/* @__PURE__ */ e(n.Label, { htmlFor: "enabledCollections", children: t("page.settings.form.enabledCollections.label") }),
|
|
145
146
|
/* @__PURE__ */ e(
|
|
146
|
-
|
|
147
|
+
x,
|
|
147
148
|
{
|
|
148
149
|
withTags: !0,
|
|
149
150
|
name: "enabledCollections",
|
|
150
151
|
value: r.enabledCollections,
|
|
151
152
|
onChange: (o) => {
|
|
152
|
-
|
|
153
|
+
l("enabledCollections", o);
|
|
153
154
|
},
|
|
154
|
-
children: L.map((o) => /* @__PURE__ */ e(
|
|
155
|
+
children: L.map((o) => /* @__PURE__ */ e(A, { value: o.uid, children: o.schema.displayName }, o.uid))
|
|
155
156
|
}
|
|
156
157
|
),
|
|
157
158
|
/* @__PURE__ */ e(n.Hint, {})
|
|
158
159
|
] }) }),
|
|
159
|
-
r.enabledCollections.length > 0 && /* @__PURE__ */ e(
|
|
160
|
-
/* @__PURE__ */ e(
|
|
161
|
-
/* @__PURE__ */ e(
|
|
162
|
-
const
|
|
163
|
-
if (
|
|
164
|
-
const { schema: { displayName:
|
|
165
|
-
return /* @__PURE__ */ i(
|
|
166
|
-
/* @__PURE__ */ e(
|
|
167
|
-
/* @__PURE__ */ e(
|
|
168
|
-
/* @__PURE__ */ e(
|
|
160
|
+
r.enabledCollections.length > 0 && /* @__PURE__ */ e(s.Item, { children: /* @__PURE__ */ i(s.Root, { gap: 4, width: "100%", children: [
|
|
161
|
+
/* @__PURE__ */ e(s.Item, { children: /* @__PURE__ */ e(m, { children: t("page.settings.form.contentTypesSettings.label") }) }),
|
|
162
|
+
/* @__PURE__ */ e(s.Item, { children: /* @__PURE__ */ e(y.Root, { style: { width: "100%" }, children: D.orderBy(r.enabledCollections).map((o) => {
|
|
163
|
+
const E = L.find((C) => C.uid === o);
|
|
164
|
+
if (E) {
|
|
165
|
+
const { schema: { displayName: C, attributes: H } } = E, K = Object.keys(H).filter((g) => H[g].type === "string");
|
|
166
|
+
return /* @__PURE__ */ i(y.Item, { value: o, children: [
|
|
167
|
+
/* @__PURE__ */ e(y.Header, { children: /* @__PURE__ */ e(y.Trigger, { children: /* @__PURE__ */ e(m, { variant: "epsilon", as: "h3", children: C }) }) }),
|
|
168
|
+
/* @__PURE__ */ e(y.Content, { children: /* @__PURE__ */ i(s.Root, { padding: 6, gap: 4, children: [
|
|
169
|
+
/* @__PURE__ */ e(s.Item, { children: /* @__PURE__ */ i(
|
|
169
170
|
n.Root,
|
|
170
171
|
{
|
|
171
172
|
width: "100%",
|
|
172
173
|
hint: t({
|
|
173
174
|
id: "page.settings.form.approvalFlow.hint",
|
|
174
|
-
props: { name:
|
|
175
|
+
props: { name: C }
|
|
175
176
|
}),
|
|
176
177
|
children: [
|
|
177
178
|
/* @__PURE__ */ e(n.Label, { children: t("page.settings.form.approvalFlow.label") }),
|
|
178
179
|
/* @__PURE__ */ e(
|
|
179
|
-
|
|
180
|
+
oe,
|
|
180
181
|
{
|
|
181
182
|
visibleLabels: !0,
|
|
182
183
|
onLabel: t("components.toogle.enabled"),
|
|
183
184
|
offLabel: t("components.toogle.disabled"),
|
|
184
185
|
checked: r.approvalFlow.includes(o),
|
|
185
186
|
onCheckedChange: (g) => {
|
|
186
|
-
|
|
187
|
+
l("approvalFlow", g ? [...r.approvalFlow, o] : r.approvalFlow.filter((ie) => ie !== o));
|
|
187
188
|
}
|
|
188
189
|
}
|
|
189
190
|
),
|
|
@@ -191,7 +192,7 @@ const v = ({
|
|
|
191
192
|
]
|
|
192
193
|
}
|
|
193
194
|
) }),
|
|
194
|
-
/* @__PURE__ */ e(
|
|
195
|
+
/* @__PURE__ */ e(M, { condition: K.length > 0, children: /* @__PURE__ */ e(s.Item, { children: /* @__PURE__ */ i(
|
|
195
196
|
n.Root,
|
|
196
197
|
{
|
|
197
198
|
width: "100%",
|
|
@@ -199,16 +200,16 @@ const v = ({
|
|
|
199
200
|
children: [
|
|
200
201
|
/* @__PURE__ */ e(n.Label, { children: t("page.settings.form.entryLabel.label") }),
|
|
201
202
|
/* @__PURE__ */ e(
|
|
202
|
-
|
|
203
|
+
x,
|
|
203
204
|
{
|
|
204
205
|
withTags: !0,
|
|
205
206
|
placeholder: t("page.settings.form.entryLabel.placeholder"),
|
|
206
207
|
name: "enabledCollections",
|
|
207
208
|
value: r.entryLabel[o] ?? [],
|
|
208
209
|
onChange: (g) => {
|
|
209
|
-
|
|
210
|
+
l("entryLabel", { ...r.entryLabel, [o]: g });
|
|
210
211
|
},
|
|
211
|
-
children:
|
|
212
|
+
children: K.map((g) => /* @__PURE__ */ e(A, { value: g, children: g }, g))
|
|
212
213
|
}
|
|
213
214
|
),
|
|
214
215
|
/* @__PURE__ */ e(n.Hint, {})
|
|
@@ -225,15 +226,15 @@ const v = ({
|
|
|
225
226
|
] }),
|
|
226
227
|
/* @__PURE__ */ i(p, { ...I, children: [
|
|
227
228
|
/* @__PURE__ */ e(m, { variant: "delta", as: "h2", children: t("page.settings.section.additional") }),
|
|
228
|
-
/* @__PURE__ */ i(
|
|
229
|
-
/* @__PURE__ */ e(
|
|
229
|
+
/* @__PURE__ */ i(s.Root, { gap: 4, marginTop: 4, width: "100%", children: [
|
|
230
|
+
/* @__PURE__ */ e(s.Item, { col: 4, xs: 12, alignItems: "start", children: /* @__PURE__ */ i(n.Root, { width: "100%", hint: t("page.settings.form.enabledCollections.hint"), children: [
|
|
230
231
|
/* @__PURE__ */ e(n.Label, { htmlFor: "enabledCollections", children: t("page.settings.form.enabledCollections.label") }),
|
|
231
232
|
/* @__PURE__ */ e(
|
|
232
|
-
|
|
233
|
+
B,
|
|
233
234
|
{
|
|
234
235
|
name: "badWords",
|
|
235
236
|
checked: r.badWords,
|
|
236
|
-
onChange:
|
|
237
|
+
onChange: l,
|
|
237
238
|
onLabel: t("components.toogle.enabled"),
|
|
238
239
|
offLabel: t("components.toogle.disabled"),
|
|
239
240
|
width: "100%"
|
|
@@ -241,19 +242,19 @@ const v = ({
|
|
|
241
242
|
),
|
|
242
243
|
/* @__PURE__ */ e(n.Hint, {})
|
|
243
244
|
] }) }),
|
|
244
|
-
/* @__PURE__ */ e(
|
|
245
|
+
/* @__PURE__ */ e(s.Item, { col: 4, xs: 12, alignItems: "start", children: /* @__PURE__ */ i(n.Root, { width: "100%", hint: t("page.settings.form.author.blockedProps.hint"), children: [
|
|
245
246
|
/* @__PURE__ */ e(n.Label, { htmlFor: "enabledCollections", children: t("page.settings.form.author.blockedProps.label") }),
|
|
246
|
-
/* @__PURE__ */ e(n.Input, { name: "blockedAuthorProps", value: r.blockedAuthorProps, onChange:
|
|
247
|
+
/* @__PURE__ */ e(n.Input, { name: "blockedAuthorProps", value: r.blockedAuthorProps, onChange: l }),
|
|
247
248
|
/* @__PURE__ */ e(n.Hint, {})
|
|
248
249
|
] }) }),
|
|
249
|
-
/* @__PURE__ */ e(
|
|
250
|
+
/* @__PURE__ */ e(s.Item, { col: 4, xs: 12, alignItems: "start", children: /* @__PURE__ */ i(n.Root, { width: "100%", hint: t("page.settings.form.gqlAuth.hint"), children: [
|
|
250
251
|
/* @__PURE__ */ e(n.Label, { children: t("page.settings.form.gqlAuth.label") }),
|
|
251
252
|
/* @__PURE__ */ e(
|
|
252
|
-
|
|
253
|
+
B,
|
|
253
254
|
{
|
|
254
255
|
name: "gqlAuthEnabled",
|
|
255
256
|
checked: r.gqlAuthEnabled,
|
|
256
|
-
onChange:
|
|
257
|
+
onChange: l,
|
|
257
258
|
onLabel: t("components.toogle.enabled"),
|
|
258
259
|
offLabel: t("components.toogle.disabled"),
|
|
259
260
|
width: "100%"
|
|
@@ -265,18 +266,18 @@ const v = ({
|
|
|
265
266
|
] }),
|
|
266
267
|
/* @__PURE__ */ i(p, { ...I, children: [
|
|
267
268
|
/* @__PURE__ */ e(m, { variant: "delta", as: "h2", children: t("page.settings.section.client") }),
|
|
268
|
-
/* @__PURE__ */ i(
|
|
269
|
-
/* @__PURE__ */ e(
|
|
269
|
+
/* @__PURE__ */ i(s.Root, { gap: 4, marginTop: 4, width: "100%", children: [
|
|
270
|
+
/* @__PURE__ */ e(s.Item, { col: 4, xs: 12, alignItems: "start", children: /* @__PURE__ */ i(n.Root, { width: "100%", hint: t("page.settings.form.client.url.hint"), children: [
|
|
270
271
|
/* @__PURE__ */ e(n.Label, { children: t("page.settings.form.client.url.label") }),
|
|
271
|
-
/* @__PURE__ */ e(n.Input, { name: "clientUrl", onChange:
|
|
272
|
+
/* @__PURE__ */ e(n.Input, { name: "clientUrl", onChange: l }),
|
|
272
273
|
/* @__PURE__ */ e(n.Hint, {})
|
|
273
274
|
] }) }),
|
|
274
|
-
/* @__PURE__ */ e(
|
|
275
|
+
/* @__PURE__ */ e(s.Item, { col: 4, xs: 12, alignItems: "start", children: /* @__PURE__ */ i(n.Root, { width: "100%", hint: t("page.settings.form.client.email.hint"), children: [
|
|
275
276
|
/* @__PURE__ */ e(n.Label, { children: t("page.settings.form.client.email.label") }),
|
|
276
|
-
/* @__PURE__ */ e(n.Input, { name: "clientEmail", onChange:
|
|
277
|
+
/* @__PURE__ */ e(n.Input, { name: "clientEmail", onChange: l }),
|
|
277
278
|
/* @__PURE__ */ e(n.Hint, {})
|
|
278
279
|
] }) }),
|
|
279
|
-
/* @__PURE__ */ e(
|
|
280
|
+
/* @__PURE__ */ e(s.Item, { col: 4, xs: 12, alignItems: "start", children: /* @__PURE__ */ i(
|
|
280
281
|
n.Root,
|
|
281
282
|
{
|
|
282
283
|
width: "100%",
|
|
@@ -284,16 +285,16 @@ const v = ({
|
|
|
284
285
|
children: [
|
|
285
286
|
/* @__PURE__ */ e(n.Label, { children: t("page.settings.form.moderatorRoles.label") }),
|
|
286
287
|
/* @__PURE__ */ e(
|
|
287
|
-
|
|
288
|
+
x,
|
|
288
289
|
{
|
|
289
290
|
withTags: !0,
|
|
290
291
|
placeholder: t("page.settings.form.moderatorRoles.placeholder"),
|
|
291
292
|
name: "enabledCollections",
|
|
292
293
|
value: r.moderatorRoles,
|
|
293
294
|
onChange: (o) => {
|
|
294
|
-
|
|
295
|
+
l("moderatorRoles", o);
|
|
295
296
|
},
|
|
296
|
-
children:
|
|
297
|
+
children: R.data.map((o) => /* @__PURE__ */ e(A, { value: o.code, children: o.name }, o.code))
|
|
297
298
|
}
|
|
298
299
|
),
|
|
299
300
|
/* @__PURE__ */ e(n.Hint, {})
|
|
@@ -302,19 +303,19 @@ const v = ({
|
|
|
302
303
|
) })
|
|
303
304
|
] })
|
|
304
305
|
] }),
|
|
305
|
-
/* @__PURE__ */ e(
|
|
306
|
+
/* @__PURE__ */ e(M, { condition: u, children: /* @__PURE__ */ e(p, { ...I, children: /* @__PURE__ */ i(q, { gap: 4, direction: "column", alignItems: "flex-start", children: [
|
|
306
307
|
/* @__PURE__ */ i(q, { gap: 2, direction: "column", alignItems: "flex-start", children: [
|
|
307
308
|
/* @__PURE__ */ e(m, { variant: "delta", as: "h2", children: t("page.settings.section.restore") }),
|
|
308
309
|
/* @__PURE__ */ e(m, { variant: "pi", as: "h4", children: t("page.settings.section.restore.subtitle") })
|
|
309
310
|
] }),
|
|
310
311
|
/* @__PURE__ */ e(
|
|
311
|
-
|
|
312
|
+
pe,
|
|
312
313
|
{
|
|
313
314
|
Trigger: ({ onClick: o }) => /* @__PURE__ */ e(
|
|
314
315
|
F,
|
|
315
316
|
{
|
|
316
317
|
variant: "danger-light",
|
|
317
|
-
startIcon: /* @__PURE__ */ e(
|
|
318
|
+
startIcon: /* @__PURE__ */ e(N, {}),
|
|
318
319
|
onClick: o,
|
|
319
320
|
children: t("page.settings.actions.restore")
|
|
320
321
|
}
|
|
@@ -322,7 +323,7 @@ const v = ({
|
|
|
322
323
|
onConfirm: G.mutate,
|
|
323
324
|
title: t("page.settings.actions.restore.confirmation.header"),
|
|
324
325
|
labelConfirm: t("page.settings.actions.restore.confirmation.button.confirm"),
|
|
325
|
-
iconConfirm: /* @__PURE__ */ e(
|
|
326
|
+
iconConfirm: /* @__PURE__ */ e(N, {}),
|
|
326
327
|
children: t("page.settings.actions.restore.confirmation.description")
|
|
327
328
|
}
|
|
328
329
|
)
|
|
@@ -333,9 +334,7 @@ const v = ({
|
|
|
333
334
|
] })
|
|
334
335
|
] })
|
|
335
336
|
] });
|
|
336
|
-
};
|
|
337
|
-
new pe();
|
|
338
|
-
const ve = () => /* @__PURE__ */ e(ye, { children: /* @__PURE__ */ e(Ce, {}) });
|
|
337
|
+
}, Te = () => /* @__PURE__ */ e(ge, { children: /* @__PURE__ */ e(we, {}) });
|
|
339
338
|
export {
|
|
340
|
-
|
|
339
|
+
Te as default
|
|
341
340
|
};
|