strapi-plugin-comments 3.0.7 → 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-YPqaQ-iX.js → index-C06AHjYM.js} +28 -28
- package/dist/_chunks/{index-DGKkpdmq.mjs → index-C9SDOq14.mjs} +27 -23
- package/dist/_chunks/index-Chf4p7eV.js +18 -0
- package/dist/_chunks/{index-CF4vndXw.mjs → index-Dz0m9-CE.mjs} +11117 -11055
- package/dist/_chunks/{index-CwHmRIcs.mjs → index-iv4k-YuD.mjs} +80 -78
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/server/index.js +16 -16
- package/dist/server/index.mjs +738 -736
- package/package.json +10 -10
- package/dist/_chunks/index-Bpnqk6JP.js +0 -1
- package/dist/_chunks/index-CFIjHfkZ.js +0 -2153
- package/dist/_chunks/index-CHDv123w.js +0 -44
- package/dist/_chunks/index-pLgOJz-6.mjs +0 -5718
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { jsx as e, Fragment as
|
|
2
|
-
import { e as
|
|
3
|
-
import { useTracking as ce, useNotification as de, Page as
|
|
1
|
+
import { jsx as e, Fragment as O, jsxs as i } from "react/jsx-runtime";
|
|
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
4
|
import { useMutation as A, useQuery as M, useQueryClient as he, QueryClient as pe } from "@tanstack/react-query";
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import we from "
|
|
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
9
|
children: d,
|
|
10
10
|
condition: l
|
|
11
|
-
}) => l ? /* @__PURE__ */ e(
|
|
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
14
|
onSuccess: d.updateSettingsMutationSuccess,
|
|
15
15
|
onError: d.updateSettingsMutationError
|
|
@@ -31,7 +31,7 @@ const P = ({
|
|
|
31
31
|
queryKey: l.roles.getKey(),
|
|
32
32
|
queryFn: l.roles.query
|
|
33
33
|
});
|
|
34
|
-
return
|
|
34
|
+
return me(() => ({
|
|
35
35
|
config: w,
|
|
36
36
|
collectionTypes: u,
|
|
37
37
|
roles: b,
|
|
@@ -46,24 +46,24 @@ const P = ({
|
|
|
46
46
|
y,
|
|
47
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
|
-
})),
|
|
60
|
-
const { trackUsage: d } = ce(), l =
|
|
59
|
+
})), Ce = () => {
|
|
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
61
|
config: c,
|
|
62
62
|
collectionTypes: k,
|
|
63
|
-
roles:
|
|
64
|
-
restoreSettingsMutation:
|
|
63
|
+
roles: C,
|
|
64
|
+
restoreSettingsMutation: z,
|
|
65
65
|
updateSettingsMutation: E,
|
|
66
|
-
restartStrapiMutation:
|
|
66
|
+
restartStrapiMutation: G
|
|
67
67
|
} = Re({
|
|
68
68
|
restoreSettingsMutationSuccess: () => {
|
|
69
69
|
b.invalidateQueries({
|
|
@@ -83,37 +83,37 @@ const P = ({
|
|
|
83
83
|
exact: !1
|
|
84
84
|
}), h(!0);
|
|
85
85
|
}
|
|
86
|
-
}),
|
|
86
|
+
}), V = $(() => {
|
|
87
87
|
l.current?.requestSubmit();
|
|
88
|
-
}, []),
|
|
88
|
+
}, []), J = $((a) => {
|
|
89
89
|
E.mutate({
|
|
90
|
-
...
|
|
91
|
-
blockedAuthorProps:
|
|
90
|
+
...a,
|
|
91
|
+
blockedAuthorProps: a.blockedAuthorProps.split(",").map((s) => s.trim())
|
|
92
92
|
});
|
|
93
93
|
}, [E]);
|
|
94
|
-
if (c.status !== "success" || k.status !== "success" ||
|
|
94
|
+
if (c.status !== "success" || k.status !== "success" || C.status !== "success" || w)
|
|
95
95
|
return t("page.settings.loading");
|
|
96
|
-
const
|
|
97
|
-
return /* @__PURE__ */ i(
|
|
98
|
-
/* @__PURE__ */ e(
|
|
99
|
-
/* @__PURE__ */ i(
|
|
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);
|
|
97
|
+
return /* @__PURE__ */ i(O, { children: [
|
|
98
|
+
/* @__PURE__ */ e(j.Title, { children: "Comments - settings" }),
|
|
99
|
+
/* @__PURE__ */ i(j.Main, { children: [
|
|
100
100
|
/* @__PURE__ */ e(
|
|
101
|
-
|
|
101
|
+
D.Header,
|
|
102
102
|
{
|
|
103
103
|
title: t("page.settings.header.title"),
|
|
104
104
|
subtitle: t("page.settings.header.description"),
|
|
105
105
|
as: "h2",
|
|
106
|
-
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") }) })
|
|
107
107
|
}
|
|
108
108
|
),
|
|
109
|
-
/* @__PURE__ */ i(
|
|
109
|
+
/* @__PURE__ */ i(D.Content, { children: [
|
|
110
110
|
S && /* @__PURE__ */ e(p, { marginBottom: 4, children: /* @__PURE__ */ e(
|
|
111
|
-
|
|
111
|
+
Ie,
|
|
112
112
|
{
|
|
113
113
|
closeLabel: t("page.settings.actions.restart.alert.cancel"),
|
|
114
114
|
title: t("page.settings.actions.restart.alert.title"),
|
|
115
115
|
onClose: ie,
|
|
116
|
-
action: /* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(
|
|
116
|
+
action: /* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(F, { onClick: G.mutate, startIcon: /* @__PURE__ */ e(re, {}), children: t("page.settings.actions.restart") }) }),
|
|
117
117
|
children: /* @__PURE__ */ e(p, { marginTop: 4, children: t("page.settings.actions.restart.alert.description") })
|
|
118
118
|
}
|
|
119
119
|
) }),
|
|
@@ -121,49 +121,51 @@ const P = ({
|
|
|
121
121
|
ge,
|
|
122
122
|
{
|
|
123
123
|
method: "POST",
|
|
124
|
+
width: "auto",
|
|
125
|
+
height: "auto",
|
|
124
126
|
ref: l,
|
|
125
|
-
onSubmit:
|
|
127
|
+
onSubmit: J,
|
|
126
128
|
initialValues: {
|
|
127
|
-
enabledCollections:
|
|
129
|
+
enabledCollections: X,
|
|
128
130
|
moderatorRoles: _,
|
|
129
|
-
badWords:
|
|
131
|
+
badWords: Y,
|
|
130
132
|
clientEmail: te,
|
|
131
133
|
clientUrl: ee,
|
|
132
|
-
gqlAuthEnabled:
|
|
134
|
+
gqlAuthEnabled: Z,
|
|
133
135
|
approvalFlow: c.data.approvalFlow,
|
|
134
136
|
entryLabel: c.data.entryLabel,
|
|
135
137
|
blockedAuthorProps: ne.join(", ")
|
|
136
138
|
},
|
|
137
|
-
children: ({ values:
|
|
138
|
-
/* @__PURE__ */ i(p, { ...
|
|
139
|
+
children: ({ values: a, onChange: s }) => /* @__PURE__ */ i(q, { gap: 4, direction: "column", children: [
|
|
140
|
+
/* @__PURE__ */ i(p, { ...I, children: [
|
|
139
141
|
/* @__PURE__ */ e(m, { variant: "delta", as: "h2", children: t("page.settings.section.general") }),
|
|
140
|
-
/* @__PURE__ */ i(
|
|
141
|
-
/* @__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: [
|
|
142
144
|
/* @__PURE__ */ e(n.Label, { htmlFor: "enabledCollections", children: t("page.settings.form.enabledCollections.label") }),
|
|
143
145
|
/* @__PURE__ */ e(
|
|
144
|
-
|
|
146
|
+
T,
|
|
145
147
|
{
|
|
146
148
|
withTags: !0,
|
|
147
149
|
name: "enabledCollections",
|
|
148
|
-
value:
|
|
150
|
+
value: a.enabledCollections,
|
|
149
151
|
onChange: (o) => {
|
|
150
152
|
s("enabledCollections", o);
|
|
151
153
|
},
|
|
152
|
-
children:
|
|
154
|
+
children: L.map((o) => /* @__PURE__ */ e(x, { value: o.uid, children: o.schema.displayName }, o.uid))
|
|
153
155
|
}
|
|
154
156
|
),
|
|
155
157
|
/* @__PURE__ */ e(n.Hint, {})
|
|
156
158
|
] }) }),
|
|
157
|
-
|
|
158
|
-
/* @__PURE__ */ e(
|
|
159
|
-
/* @__PURE__ */ e(
|
|
160
|
-
const H =
|
|
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);
|
|
161
163
|
if (H) {
|
|
162
164
|
const { schema: { displayName: R, attributes: K } } = H, B = Object.keys(K).filter((g) => K[g].type === "string");
|
|
163
165
|
return /* @__PURE__ */ i(f.Item, { value: o, children: [
|
|
164
166
|
/* @__PURE__ */ e(f.Header, { children: /* @__PURE__ */ e(f.Trigger, { children: /* @__PURE__ */ e(m, { variant: "epsilon", as: "h3", children: R }) }) }),
|
|
165
|
-
/* @__PURE__ */ e(f.Content, { children: /* @__PURE__ */ i(
|
|
166
|
-
/* @__PURE__ */ e(
|
|
167
|
+
/* @__PURE__ */ e(f.Content, { children: /* @__PURE__ */ i(r.Root, { padding: 6, gap: 4, children: [
|
|
168
|
+
/* @__PURE__ */ e(r.Item, { children: /* @__PURE__ */ i(
|
|
167
169
|
n.Root,
|
|
168
170
|
{
|
|
169
171
|
width: "100%",
|
|
@@ -179,9 +181,9 @@ const P = ({
|
|
|
179
181
|
visibleLabels: !0,
|
|
180
182
|
onLabel: t("components.toogle.enabled"),
|
|
181
183
|
offLabel: t("components.toogle.disabled"),
|
|
182
|
-
checked:
|
|
184
|
+
checked: a.approvalFlow.includes(o),
|
|
183
185
|
onCheckedChange: (g) => {
|
|
184
|
-
s("approvalFlow", g ? [...
|
|
186
|
+
s("approvalFlow", g ? [...a.approvalFlow, o] : a.approvalFlow.filter((oe) => oe !== o));
|
|
185
187
|
}
|
|
186
188
|
}
|
|
187
189
|
),
|
|
@@ -189,7 +191,7 @@ const P = ({
|
|
|
189
191
|
]
|
|
190
192
|
}
|
|
191
193
|
) }),
|
|
192
|
-
/* @__PURE__ */ e(P, { condition: B.length > 0, children: /* @__PURE__ */ e(
|
|
194
|
+
/* @__PURE__ */ e(P, { condition: B.length > 0, children: /* @__PURE__ */ e(r.Item, { children: /* @__PURE__ */ i(
|
|
193
195
|
n.Root,
|
|
194
196
|
{
|
|
195
197
|
width: "100%",
|
|
@@ -197,16 +199,16 @@ const P = ({
|
|
|
197
199
|
children: [
|
|
198
200
|
/* @__PURE__ */ e(n.Label, { children: t("page.settings.form.entryLabel.label") }),
|
|
199
201
|
/* @__PURE__ */ e(
|
|
200
|
-
|
|
202
|
+
T,
|
|
201
203
|
{
|
|
202
204
|
withTags: !0,
|
|
203
205
|
placeholder: t("page.settings.form.entryLabel.placeholder"),
|
|
204
206
|
name: "enabledCollections",
|
|
205
|
-
value:
|
|
207
|
+
value: a.entryLabel[o] ?? [],
|
|
206
208
|
onChange: (g) => {
|
|
207
|
-
s("entryLabel", { ...
|
|
209
|
+
s("entryLabel", { ...a.entryLabel, [o]: g });
|
|
208
210
|
},
|
|
209
|
-
children: B.map((g) => /* @__PURE__ */ e(
|
|
211
|
+
children: B.map((g) => /* @__PURE__ */ e(x, { value: g, children: g }, g))
|
|
210
212
|
}
|
|
211
213
|
),
|
|
212
214
|
/* @__PURE__ */ e(n.Hint, {})
|
|
@@ -221,16 +223,16 @@ const P = ({
|
|
|
221
223
|
] }) })
|
|
222
224
|
] })
|
|
223
225
|
] }),
|
|
224
|
-
/* @__PURE__ */ i(p, { ...
|
|
226
|
+
/* @__PURE__ */ i(p, { ...I, children: [
|
|
225
227
|
/* @__PURE__ */ e(m, { variant: "delta", as: "h2", children: t("page.settings.section.additional") }),
|
|
226
|
-
/* @__PURE__ */ i(
|
|
227
|
-
/* @__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: [
|
|
228
230
|
/* @__PURE__ */ e(n.Label, { htmlFor: "enabledCollections", children: t("page.settings.form.enabledCollections.label") }),
|
|
229
231
|
/* @__PURE__ */ e(
|
|
230
|
-
|
|
232
|
+
Q,
|
|
231
233
|
{
|
|
232
234
|
name: "badWords",
|
|
233
|
-
checked:
|
|
235
|
+
checked: a.badWords,
|
|
234
236
|
onChange: s,
|
|
235
237
|
onLabel: t("components.toogle.enabled"),
|
|
236
238
|
offLabel: t("components.toogle.disabled"),
|
|
@@ -239,18 +241,18 @@ const P = ({
|
|
|
239
241
|
),
|
|
240
242
|
/* @__PURE__ */ e(n.Hint, {})
|
|
241
243
|
] }) }),
|
|
242
|
-
/* @__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: [
|
|
243
245
|
/* @__PURE__ */ e(n.Label, { htmlFor: "enabledCollections", children: t("page.settings.form.author.blockedProps.label") }),
|
|
244
246
|
/* @__PURE__ */ e(n.Input, { name: "blockedProps", onChange: s }),
|
|
245
247
|
/* @__PURE__ */ e(n.Hint, {})
|
|
246
248
|
] }) }),
|
|
247
|
-
/* @__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: [
|
|
248
250
|
/* @__PURE__ */ e(n.Label, { children: t("page.settings.form.gqlAuth.label") }),
|
|
249
251
|
/* @__PURE__ */ e(
|
|
250
|
-
|
|
252
|
+
Q,
|
|
251
253
|
{
|
|
252
254
|
name: "gqlAuthEnabled",
|
|
253
|
-
checked:
|
|
255
|
+
checked: a.gqlAuthEnabled,
|
|
254
256
|
onChange: s,
|
|
255
257
|
onLabel: t("components.toogle.enabled"),
|
|
256
258
|
offLabel: t("components.toogle.disabled"),
|
|
@@ -261,20 +263,20 @@ const P = ({
|
|
|
261
263
|
] }) })
|
|
262
264
|
] })
|
|
263
265
|
] }),
|
|
264
|
-
/* @__PURE__ */ i(p, { ...
|
|
266
|
+
/* @__PURE__ */ i(p, { ...I, children: [
|
|
265
267
|
/* @__PURE__ */ e(m, { variant: "delta", as: "h2", children: t("page.settings.section.client") }),
|
|
266
|
-
/* @__PURE__ */ i(
|
|
267
|
-
/* @__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: [
|
|
268
270
|
/* @__PURE__ */ e(n.Label, { children: t("page.settings.form.client.url.label") }),
|
|
269
271
|
/* @__PURE__ */ e(n.Input, { name: "clientUrl", onChange: s }),
|
|
270
272
|
/* @__PURE__ */ e(n.Hint, {})
|
|
271
273
|
] }) }),
|
|
272
|
-
/* @__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: [
|
|
273
275
|
/* @__PURE__ */ e(n.Label, { children: t("page.settings.form.client.email.label") }),
|
|
274
276
|
/* @__PURE__ */ e(n.Input, { name: "clientEmail", onChange: s }),
|
|
275
277
|
/* @__PURE__ */ e(n.Hint, {})
|
|
276
278
|
] }) }),
|
|
277
|
-
/* @__PURE__ */ e(
|
|
279
|
+
/* @__PURE__ */ e(r.Item, { xs: 4, alignItems: "start", children: /* @__PURE__ */ i(
|
|
278
280
|
n.Root,
|
|
279
281
|
{
|
|
280
282
|
width: "100%",
|
|
@@ -282,16 +284,16 @@ const P = ({
|
|
|
282
284
|
children: [
|
|
283
285
|
/* @__PURE__ */ e(n.Label, { children: t("page.settings.form.moderatorRoles.label") }),
|
|
284
286
|
/* @__PURE__ */ e(
|
|
285
|
-
|
|
287
|
+
T,
|
|
286
288
|
{
|
|
287
289
|
withTags: !0,
|
|
288
290
|
placeholder: t("page.settings.form.moderatorRoles.placeholder"),
|
|
289
291
|
name: "enabledCollections",
|
|
290
|
-
value:
|
|
292
|
+
value: a.moderatorRoles,
|
|
291
293
|
onChange: (o) => {
|
|
292
294
|
s("moderatorRoles", o);
|
|
293
295
|
},
|
|
294
|
-
children:
|
|
296
|
+
children: C.data.map((o) => /* @__PURE__ */ e(x, { value: o.code, children: o.name }, o.code))
|
|
295
297
|
}
|
|
296
298
|
),
|
|
297
299
|
/* @__PURE__ */ e(n.Hint, {})
|
|
@@ -300,27 +302,27 @@ const P = ({
|
|
|
300
302
|
) })
|
|
301
303
|
] })
|
|
302
304
|
] }),
|
|
303
|
-
/* @__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: [
|
|
304
306
|
/* @__PURE__ */ i(q, { gap: 2, direction: "column", alignItems: "flex-start", children: [
|
|
305
307
|
/* @__PURE__ */ e(m, { variant: "delta", as: "h2", children: t("page.settings.section.restore") }),
|
|
306
308
|
/* @__PURE__ */ e(m, { variant: "pi", as: "h4", children: t("page.settings.section.restore.subtitle") })
|
|
307
309
|
] }),
|
|
308
310
|
/* @__PURE__ */ e(
|
|
309
|
-
|
|
311
|
+
we,
|
|
310
312
|
{
|
|
311
313
|
Trigger: ({ onClick: o }) => /* @__PURE__ */ e(
|
|
312
|
-
|
|
314
|
+
F,
|
|
313
315
|
{
|
|
314
316
|
variant: "danger-light",
|
|
315
|
-
startIcon: /* @__PURE__ */ e(
|
|
317
|
+
startIcon: /* @__PURE__ */ e(W, {}),
|
|
316
318
|
onClick: o,
|
|
317
319
|
children: t("page.settings.actions.restore")
|
|
318
320
|
}
|
|
319
321
|
),
|
|
320
|
-
onConfirm:
|
|
322
|
+
onConfirm: z.mutate,
|
|
321
323
|
title: t("page.settings.actions.restore.confirmation.header"),
|
|
322
324
|
labelConfirm: t("page.settings.actions.restore.confirmation.button.confirm"),
|
|
323
|
-
iconConfirm: /* @__PURE__ */ e(
|
|
325
|
+
iconConfirm: /* @__PURE__ */ e(W, {}),
|
|
324
326
|
children: t("page.settings.actions.restore.confirmation.description")
|
|
325
327
|
}
|
|
326
328
|
)
|
|
@@ -333,7 +335,7 @@ const P = ({
|
|
|
333
335
|
] });
|
|
334
336
|
};
|
|
335
337
|
new pe();
|
|
336
|
-
const Pe = () => /* @__PURE__ */ e(
|
|
338
|
+
const Pe = () => /* @__PURE__ */ e(ye, { children: /* @__PURE__ */ e(Ce, {}) });
|
|
337
339
|
export {
|
|
338
340
|
Pe as default
|
|
339
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