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.
@@ -1,76 +1,75 @@
1
1
  import { jsx as e, Fragment as O, jsxs as i } from "react/jsx-runtime";
2
- import { a1 as oe, e as I, f as re, B as p, a2 as ae, F as q, T as m, Z as a, m as n, a3 as x, a4 as T, a5 as y, a6 as se, a7 as B, a8 as N } from "./index-D9B514y5.mjs";
3
- import { useTracking as le, useNotification as ce, Page as Q, Layouts as W, Form as de } from "@strapi/strapi/admin";
4
- import { useMutation as A, useQuery as M, useQueryClient as ge, QueryClient as he } from "@tanstack/react-query";
5
- import { u as $, f as pe, a as me, g as t, l as j, e as ue } from "./index-BpDl_L4E.mjs";
6
- import { useMemo as be, useRef as fe, useState as ye, useCallback as D } from "react";
7
- import Se from "styled-components";
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: c,
9
+ children: d,
10
10
  condition: l
11
- }) => l ? /* @__PURE__ */ e(O, { children: c }) : null, we = (c = {}) => {
12
- const l = $(), S = A({
11
+ }) => l ? /* @__PURE__ */ e(O, { children: d }) : null, Re = (d = {}) => {
12
+ const l = U(), y = A({
13
13
  mutationFn: l.settings.update,
14
- onSuccess: c.updateSettingsMutationSuccess,
15
- onError: c.updateSettingsMutationError
16
- }), h = A({
14
+ onSuccess: d.updateSettingsMutationSuccess,
15
+ onError: d.updateSettingsMutationError
16
+ }), S = A({
17
17
  mutationFn: l.settings.restore,
18
- onSuccess: c.restoreSettingsMutationSuccess,
19
- onError: c.restoreSettingsMutationError
20
- }), w = A({
18
+ onSuccess: d.restoreSettingsMutationSuccess,
19
+ onError: d.restoreSettingsMutationError
20
+ }), h = A({
21
21
  mutationFn: l.settings.restart,
22
- onSuccess: c.restartStrapiMutationSuccess,
23
- onError: c.restartStrapiMutationError
24
- }), u = M({
22
+ onSuccess: d.restartStrapiMutationSuccess,
23
+ onError: d.restartStrapiMutationError
24
+ }), w = M({
25
25
  queryKey: l.config.getKey(),
26
26
  queryFn: l.config.query
27
- }), b = M({
27
+ }), u = M({
28
28
  queryKey: l.contentTypeBuilder.all.getKey(),
29
29
  queryFn: l.contentTypeBuilder.all.query
30
- }), f = M({
30
+ }), b = M({
31
31
  queryKey: l.roles.getKey(),
32
32
  queryFn: l.roles.query
33
33
  });
34
- return be(() => ({
35
- config: u,
36
- collectionTypes: b,
37
- roles: f,
38
- restoreSettingsMutation: h,
39
- updateSettingsMutation: S,
40
- restartStrapiMutation: w
34
+ return me(() => ({
35
+ config: w,
36
+ collectionTypes: u,
37
+ roles: b,
38
+ restoreSettingsMutation: S,
39
+ updateSettingsMutation: y,
40
+ restartStrapiMutation: h
41
41
  }), [
42
- u,
43
- f,
42
+ w,
44
43
  b,
45
- h,
44
+ u,
46
45
  S,
47
- w
46
+ y,
47
+ h
48
48
  ]);
49
- }, C = {
49
+ }, I = {
50
50
  background: "neutral0",
51
51
  hasRadius: !0,
52
52
  shadow: "filterShadow",
53
53
  padding: 6,
54
54
  width: "100%"
55
- }, Re = Se(oe)(() => ({
55
+ }, Ie = fe(le)(() => ({
56
56
  "[role]": {
57
57
  flexDirection: "column"
58
58
  }
59
59
  })), Ce = () => {
60
- le();
61
- const c = fe(null), { toggleNotification: l } = ce(), [S, h] = ye(!1), { isLoadingForPermissions: w, canSettingsChange: u } = me(), b = ge(), f = $(), {
62
- config: d,
63
- collectionTypes: v,
64
- roles: L,
65
- restoreSettingsMutation: U,
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
- } = we({
67
+ } = Re({
69
68
  restoreSettingsMutationSuccess: () => {
70
69
  b.invalidateQueries({
71
- queryKey: f.config.getKey(),
70
+ queryKey: v.config.getKey(),
72
71
  exact: !1
73
- }), h(!0), l({
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: f.config.getKey(),
82
+ queryKey: v.config.getKey(),
84
83
  exact: !1
85
84
  }), h(!0);
86
85
  }
87
- }), V = D(() => {
88
- c.current?.requestSubmit();
89
- }, []), Z = D((r) => {
90
- k.mutate({
91
- ...r,
92
- blockedAuthorProps: r.blockedAuthorProps.split(",").map((s) => s.trim())
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
- }, [k]);
95
- if (d.status !== "success" || v.status !== "success" || L.status !== "success" || w)
93
+ }, [E]);
94
+ if (c.status !== "success" || k.status !== "success" || C.status !== "success" || w)
96
95
  return t("page.settings.loading");
97
- const F = v.data.filter((r) => r.uid.includes("api::")), z = d.data.enabledCollections.filter((r) => F.some((s) => s.uid === r)), J = j.isNil(d.data.badWords) ? !0 : d.data?.badWords, X = !!d.data.gql?.auth, Y = d.data.moderatorRoles.filter((r) => L.data.filter((s) => s.code === r)), _ = d.data.client?.url, ee = d.data.client?.contactEmail, te = d.data.blockedAuthorProps ?? [], ne = () => h(!1);
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(Q.Title, { children: "Comments - settings" }),
100
- /* @__PURE__ */ i(Q.Main, { children: [
98
+ /* @__PURE__ */ e(j.Title, { children: "Comments - settings" }),
99
+ /* @__PURE__ */ i(j.Main, { children: [
101
100
  /* @__PURE__ */ e(
102
- W.Header,
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(I, { type: "submit", startIcon: /* @__PURE__ */ e(re, {}), onClick: V, children: t("page.settings.actions.submit") }) })
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(W.Content, { children: [
109
+ /* @__PURE__ */ i(D.Content, { children: [
111
110
  S && /* @__PURE__ */ e(p, { marginBottom: 4, children: /* @__PURE__ */ e(
112
- Re,
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: ne,
117
- action: /* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(I, { onClick: G.mutate, startIcon: /* @__PURE__ */ e(ae, {}), children: t("page.settings.actions.restart") }) }),
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
- de,
121
+ ge,
123
122
  {
124
123
  method: "POST",
125
- ref: c,
126
- onSubmit: Z,
124
+ width: "auto",
125
+ height: "auto",
126
+ ref: l,
127
+ onSubmit: J,
127
128
  initialValues: {
128
- enabledCollections: z,
129
- moderatorRoles: Y,
130
- badWords: J,
131
- clientEmail: ee,
132
- clientUrl: _,
133
- gqlAuthEnabled: X,
134
- approvalFlow: d.data.approvalFlow,
135
- entryLabel: d.data.entryLabel,
136
- blockedAuthorProps: te.join(", ")
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: r, onChange: s }) => /* @__PURE__ */ i(q, { gap: 4, direction: "column", children: [
139
- /* @__PURE__ */ i(p, { ...C, children: [
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(a.Root, { gap: 4, marginTop: 4, width: "100%", children: [
142
- /* @__PURE__ */ e(a.Item, { xs: 12, children: /* @__PURE__ */ i(n.Root, { width: "100%", hint: t("page.settings.form.enabledCollections.hint"), children: [
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
- x,
146
+ T,
146
147
  {
147
148
  withTags: !0,
148
149
  name: "enabledCollections",
149
- value: r.enabledCollections,
150
+ value: a.enabledCollections,
150
151
  onChange: (o) => {
151
152
  s("enabledCollections", o);
152
153
  },
153
- children: F.map((o) => /* @__PURE__ */ e(T, { value: o.uid, children: o.schema.displayName }, o.uid))
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
- r.enabledCollections.length > 0 && /* @__PURE__ */ e(a.Item, { children: /* @__PURE__ */ i(a.Root, { gap: 4, width: "100%", children: [
159
- /* @__PURE__ */ e(a.Item, { children: /* @__PURE__ */ e(m, { children: t("page.settings.form.contentTypesSettings.label") }) }),
160
- /* @__PURE__ */ e(a.Item, { children: /* @__PURE__ */ e(y.Root, { style: { width: "100%" }, children: j.orderBy(r.enabledCollections).map((o) => {
161
- const E = F.find((R) => R.uid === o);
162
- if (E) {
163
- const { schema: { displayName: R, attributes: H } } = E, K = Object.keys(H).filter((g) => H[g].type === "string");
164
- return /* @__PURE__ */ i(y.Item, { value: o, children: [
165
- /* @__PURE__ */ e(y.Header, { children: /* @__PURE__ */ e(y.Trigger, { children: /* @__PURE__ */ e(m, { variant: "epsilon", as: "h3", children: R }) }) }),
166
- /* @__PURE__ */ e(y.Content, { children: /* @__PURE__ */ i(a.Root, { padding: 6, gap: 4, children: [
167
- /* @__PURE__ */ e(a.Item, { children: /* @__PURE__ */ i(
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: r.approvalFlow.includes(o),
184
+ checked: a.approvalFlow.includes(o),
184
185
  onCheckedChange: (g) => {
185
- s("approvalFlow", g ? [...r.approvalFlow, o] : r.approvalFlow.filter((ie) => ie !== o));
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: K.length > 0, children: /* @__PURE__ */ e(a.Item, { children: /* @__PURE__ */ i(
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
- x,
202
+ T,
202
203
  {
203
204
  withTags: !0,
204
205
  placeholder: t("page.settings.form.entryLabel.placeholder"),
205
206
  name: "enabledCollections",
206
- value: r.entryLabel[o] ?? [],
207
+ value: a.entryLabel[o] ?? [],
207
208
  onChange: (g) => {
208
- s("entryLabel", { ...r.entryLabel, [o]: g });
209
+ s("entryLabel", { ...a.entryLabel, [o]: g });
209
210
  },
210
- children: K.map((g) => /* @__PURE__ */ e(T, { value: g, children: g }, g))
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, { ...C, children: [
226
+ /* @__PURE__ */ i(p, { ...I, children: [
226
227
  /* @__PURE__ */ e(m, { variant: "delta", as: "h2", children: t("page.settings.section.additional") }),
227
- /* @__PURE__ */ i(a.Root, { gap: 4, marginTop: 4, width: "100%", children: [
228
- /* @__PURE__ */ e(a.Item, { xs: 4, children: /* @__PURE__ */ i(n.Root, { width: "100%", hint: t("page.settings.form.enabledCollections.hint"), children: [
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
- B,
232
+ Q,
232
233
  {
233
234
  name: "badWords",
234
- checked: r.badWords,
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(a.Item, { xs: 4, children: /* @__PURE__ */ i(n.Root, { width: "100%", hint: t("page.settings.form.author.blockedProps.hint"), children: [
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(a.Item, { xs: 4, children: /* @__PURE__ */ i(n.Root, { width: "100%", hint: t("page.settings.form.gqlAuth.hint"), children: [
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
- B,
252
+ Q,
252
253
  {
253
254
  name: "gqlAuthEnabled",
254
- checked: r.gqlAuthEnabled,
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, { ...C, children: [
266
+ /* @__PURE__ */ i(p, { ...I, children: [
266
267
  /* @__PURE__ */ e(m, { variant: "delta", as: "h2", children: t("page.settings.section.client") }),
267
- /* @__PURE__ */ i(a.Root, { gap: 4, marginTop: 4, width: "100%", children: [
268
- /* @__PURE__ */ e(a.Item, { xs: 4, children: /* @__PURE__ */ i(n.Root, { width: "100%", hint: t("page.settings.form.client.url.hint"), children: [
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(a.Item, { xs: 4, children: /* @__PURE__ */ i(n.Root, { width: "100%", hint: t("page.settings.form.client.email.hint"), children: [
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(a.Item, { xs: 4, children: /* @__PURE__ */ i(
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
- x,
287
+ T,
287
288
  {
288
289
  withTags: !0,
289
290
  placeholder: t("page.settings.form.moderatorRoles.placeholder"),
290
291
  name: "enabledCollections",
291
- value: r.moderatorRoles,
292
+ value: a.moderatorRoles,
292
293
  onChange: (o) => {
293
294
  s("moderatorRoles", o);
294
295
  },
295
- children: L.data.map((o) => /* @__PURE__ */ e(T, { value: o.code, children: o.name }, o.code))
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, { ...C, children: /* @__PURE__ */ i(q, { gap: 4, direction: "column", alignItems: "flex-start", children: [
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
- ue,
311
+ we,
311
312
  {
312
313
  Trigger: ({ onClick: o }) => /* @__PURE__ */ e(
313
- I,
314
+ F,
314
315
  {
315
316
  variant: "danger-light",
316
- startIcon: /* @__PURE__ */ e(N, {}),
317
+ startIcon: /* @__PURE__ */ e(W, {}),
317
318
  onClick: o,
318
319
  children: t("page.settings.actions.restore")
319
320
  }
320
321
  ),
321
- onConfirm: U.mutate,
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(N, {}),
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 he();
337
- const Me = () => /* @__PURE__ */ e(pe, { children: /* @__PURE__ */ e(Ce, {}) });
337
+ new pe();
338
+ const Pe = () => /* @__PURE__ */ e(ye, { children: /* @__PURE__ */ e(Ce, {}) });
338
339
  export {
339
- Me as default
340
+ Pe as default
340
341
  };
@@ -1 +1 @@
1
- "use strict";const e=require("../_chunks/index-CTrpEEVW.js");require("react");module.exports=e.index;
1
+ "use strict";const e=require("../_chunks/index-BGCzzYSK.js");require("react");module.exports=e.index;
@@ -1,4 +1,4 @@
1
- import { ah as t } from "../_chunks/index-D9B514y5.mjs";
1
+ import { al as t } from "../_chunks/index-Dz0m9-CE.mjs";
2
2
  import "react";
3
3
  export {
4
4
  t as default