@cobaltcore-dev/aurora 0.14.0 → 0.15.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.
@@ -0,0 +1,613 @@
1
+ import { B as e, K as t, U as n, g as r, lt as i, r as a, tt as o, ut as s, y as c } from "./build-DgeVmENN.mjs";
2
+ import { r as l } from "./trpcClient-Dy_MP_Pv.mjs";
3
+ import { t as u } from "./useProjectId-DBc5lpoU.mjs";
4
+ import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
5
+ import { useEffect as m, useRef as h, useState as g } from "react";
6
+ import { useRouteContext as _ } from "@tanstack/react-router";
7
+ import { Trans as v, useLingui as y } from "@lingui/react";
8
+ //#region src/client/hooks/useModalTracking.ts
9
+ var b = ({ isOpen: e, actionPrefix: t }) => {
10
+ let { onTrackEvent: n } = _({ strict: !1 }), r = h(!1), i = h(!1);
11
+ return m(() => {
12
+ e && !r.current && (n?.({
13
+ source: "modal",
14
+ action: `${t}.open`
15
+ }), r.current = !0);
16
+ }, [
17
+ e,
18
+ n,
19
+ t
20
+ ]), {
21
+ trackClose: () => {
22
+ e && !i.current && n?.({
23
+ source: "modal",
24
+ action: `${t}.close`
25
+ });
26
+ },
27
+ markSubmitted: () => {
28
+ i.current = !0;
29
+ },
30
+ resetTracking: () => {
31
+ i.current = !1, r.current = !1;
32
+ }
33
+ };
34
+ }, x = ({ isOpen: n, bucketName: r, onClose: i, onSuccess: s, onError: c }) => {
35
+ let { i18n: h, _: g } = y(), _ = u(), x = l.useUtils(), { trackClose: S, markSubmitted: C, resetTracking: w } = b({
36
+ isOpen: n,
37
+ actionPrefix: "storage.ceph.bucket.policy.delete"
38
+ }), { data: T, isLoading: E, error: D } = l.storage.ceph.bucketPolicy.get.useQuery({
39
+ project_id: _,
40
+ bucketName: r
41
+ }, {
42
+ enabled: n && !!_,
43
+ retry: !1
44
+ }), O = l.storage.ceph.bucketPolicy.delete.useMutation({
45
+ onSuccess: () => {
46
+ x.storage.ceph.bucketPolicy.get.invalidate(), s?.(r), k();
47
+ },
48
+ onError: (e) => {
49
+ c?.(r, e.message);
50
+ }
51
+ });
52
+ m(() => {
53
+ n || (O.reset(), w());
54
+ }, [n, r]);
55
+ let k = () => {
56
+ O.reset(), w(), i();
57
+ }, A = () => {
58
+ C(), O.mutate({
59
+ project_id: _,
60
+ bucketName: r
61
+ });
62
+ };
63
+ if (!n) return null;
64
+ let j = !!T?.policy, M = O.isPending;
65
+ return /*#__PURE__*/ f(a, {
66
+ title: h._({ id: "On9AgT" }),
67
+ open: n,
68
+ onCancel: () => {
69
+ S(), k();
70
+ },
71
+ confirmButtonLabel: h._({ id: "VMoZmg" }),
72
+ confirmButtonVariant: "primary-danger",
73
+ onConfirm: A,
74
+ cancelButtonLabel: h._({ id: "dEgA5A" }),
75
+ size: "small",
76
+ disableConfirmButton: M || E || !j || !!D,
77
+ children: /*#__PURE__*/ p(o, {
78
+ direction: "vertical",
79
+ gap: "4",
80
+ children: [
81
+ E && /*#__PURE__*/ f("div", {
82
+ className: "flex items-center justify-center py-4",
83
+ children: /*#__PURE__*/ f(t, {
84
+ variant: "primary",
85
+ size: "large"
86
+ })
87
+ }),
88
+ D && /*#__PURE__*/ f(e, {
89
+ variant: "error",
90
+ title: h._({ id: "XicAqm" }),
91
+ children: D.message
92
+ }),
93
+ !E && !D && !j && /*#__PURE__*/ f(e, {
94
+ variant: "warning",
95
+ title: h._({ id: "GZjazt" }),
96
+ children: /*#__PURE__*/ f(v, { id: "/HejCc" })
97
+ }),
98
+ !E && !D && j && /*#__PURE__*/ p(d, { children: [/*#__PURE__*/ f("p", {
99
+ className: "text-theme-default",
100
+ children: /*#__PURE__*/ f(v, {
101
+ id: "QDUXIq",
102
+ values: { bucketName: r },
103
+ components: { 0: /*#__PURE__*/ f("strong", {}) }
104
+ })
105
+ }), /*#__PURE__*/ f("p", {
106
+ className: "text-theme-default",
107
+ children: /*#__PURE__*/ f(v, { id: "Rsh494" })
108
+ })] }),
109
+ O.isError && /*#__PURE__*/ f(e, {
110
+ variant: "error",
111
+ title: h._({ id: "+Pe7SS" }),
112
+ children: O.error?.message
113
+ })
114
+ ]
115
+ })
116
+ });
117
+ };
118
+ //#endregion
119
+ //#region src/client/routes/_auth/projects/$projectId/storage/-components/Ceph/hooks/bucketStateHelpers.ts
120
+ function S(e, t, n) {
121
+ let r = e.filter((e) => e.isLatest && !e.isDeleteMarker), i = e.filter((e) => !e.isDeleteMarker), a = t && e.length > 0 && i.length === 0, o = t && e.some((e) => e.isDeleteMarker || !e.isLatest && !e.isDeleteMarker), s = t ? n > 0 ? n : r.length : n + i.length;
122
+ return {
123
+ currentVersions: r,
124
+ hasOnlyDeleteMarkers: a,
125
+ hasOldVersionsOrDeleteMarkers: o,
126
+ effectiveCurrentObjectCount: s,
127
+ isBucketEmpty: s === 0
128
+ };
129
+ }
130
+ //#endregion
131
+ //#region src/client/routes/_auth/projects/$projectId/storage/-components/Ceph/Buckets/EmptyBucketModal.tsx
132
+ var C = ({ isOpen: e, bucket: r, onClose: s, onSuccess: c, onError: d }) => {
133
+ let { i18n: m, _: h } = y(), _ = u(), [x, C] = g(""), [w, T] = g(null), [E, D] = g(!1), { trackClose: O, markSubmitted: k, resetTracking: A } = b({
134
+ isOpen: e,
135
+ actionPrefix: "storage.ceph.bucket.empty"
136
+ }), j = l.useUtils(), { data: M, isLoading: N, error: P } = l.storage.ceph.versioning.getStatus.useQuery({
137
+ project_id: _ ?? "",
138
+ bucket: r?.name ?? ""
139
+ }, {
140
+ enabled: !!_ && !!r && e,
141
+ staleTime: 30 * 1e3
142
+ }), { data: F, isLoading: I, error: L } = l.storage.ceph.objects.list.useQuery({
143
+ project_id: _ ?? "",
144
+ containerName: r?.name ?? "",
145
+ maxKeys: 100,
146
+ delimiter: "",
147
+ showVersions: !0
148
+ }, {
149
+ enabled: !!_ && !!r && e && M?.status !== "Unversioned",
150
+ staleTime: 30 * 1e3
151
+ }), R = M?.status === "Enabled" || M?.status === "Suspended", { isBucketEmpty: z, hasOnlyDeleteMarkers: B } = S(F?.versions ?? [], R, r?.count ?? 0), V = z && B, H = l.storage.ceph.objects.deleteAll.useMutation({ onSettled: () => {
152
+ j.storage.ceph.containers.list.invalidate(), j.storage.ceph.objects.list.invalidate(), U();
153
+ } }), U = () => {
154
+ C(""), T(null), D(!1), H.reset(), A(), s();
155
+ }, W = (e) => {
156
+ let t = e.target.value;
157
+ C(t), w && T(null);
158
+ }, G = () => {
159
+ if (!r) return;
160
+ if (x.trim() !== r.name) {
161
+ T(m._({ id: "wxVsr5" }));
162
+ return;
163
+ }
164
+ k();
165
+ let e = r.name, t = V || E;
166
+ H.mutate({
167
+ project_id: _,
168
+ containerName: e,
169
+ includeVersionsAndDeleteMarkers: t
170
+ }, {
171
+ onSuccess: (t) => {
172
+ c?.(e, t);
173
+ },
174
+ onError: (t) => {
175
+ d?.(e, t.message);
176
+ }
177
+ });
178
+ }, K = (e) => {
179
+ e.key === "Enter" && G();
180
+ };
181
+ if (!e || !r) return null;
182
+ let q = r.name, J = N || I, Y = !!P || !!L;
183
+ return V && !J ? /*#__PURE__*/ f(a, {
184
+ title: m._({ id: "1mFMeP" }),
185
+ open: e,
186
+ onCancel: () => {
187
+ O(), U();
188
+ },
189
+ confirmButtonLabel: m._({ id: "1mFMeP" }),
190
+ confirmButtonVariant: "primary-danger",
191
+ onConfirm: G,
192
+ cancelButtonLabel: m._({ id: "dEgA5A" }),
193
+ size: "small",
194
+ disableConfirmButton: H.isPending || x.trim() !== r.name || Y,
195
+ children: /*#__PURE__*/ p(o, {
196
+ direction: "vertical",
197
+ gap: "6",
198
+ children: [
199
+ Y && /*#__PURE__*/ f("div", {
200
+ className: "bg-theme-danger-10 text-theme-danger rounded p-4",
201
+ children: /*#__PURE__*/ f(v, { id: "5p97CR" })
202
+ }),
203
+ /*#__PURE__*/ f("p", {
204
+ className: "text-theme-default m-0",
205
+ children: /*#__PURE__*/ f(v, { id: "T3+VKR" })
206
+ }),
207
+ /*#__PURE__*/ f(n, {
208
+ label: m._({ id: "dEHa3L" }),
209
+ required: !0,
210
+ value: x,
211
+ onChange: W,
212
+ onKeyDown: K,
213
+ invalid: !!w,
214
+ errortext: w || void 0,
215
+ disabled: H.isPending || Y,
216
+ placeholder: r.name,
217
+ autoFocus: !0
218
+ })
219
+ ]
220
+ })
221
+ }) : /*#__PURE__*/ f(a, {
222
+ title: m._({ id: "CfKRC1" }),
223
+ open: e,
224
+ onCancel: () => {
225
+ O(), U();
226
+ },
227
+ confirmButtonLabel: m._({ id: "CfKRC1" }),
228
+ confirmButtonVariant: "primary-danger",
229
+ onConfirm: G,
230
+ cancelButtonLabel: m._({ id: "dEgA5A" }),
231
+ size: "small",
232
+ disableConfirmButton: H.isPending || x.trim() !== r.name || Y,
233
+ children: J ? /*#__PURE__*/ p(o, {
234
+ direction: "horizontal",
235
+ gap: "2",
236
+ alignment: "center",
237
+ children: [/*#__PURE__*/ f(t, {}), /*#__PURE__*/ f("span", {
238
+ className: "text-juno-grey-light-1 text-sm",
239
+ children: /*#__PURE__*/ f(v, { id: "rPuPb+" })
240
+ })]
241
+ }) : /*#__PURE__*/ p(o, {
242
+ direction: "vertical",
243
+ gap: "6",
244
+ children: [
245
+ Y && /*#__PURE__*/ f("div", {
246
+ className: "bg-theme-danger-10 text-theme-danger rounded p-4",
247
+ children: /*#__PURE__*/ f(v, { id: "5p97CR" })
248
+ }),
249
+ /*#__PURE__*/ f("p", {
250
+ className: "text-theme-default m-0",
251
+ children: M && M.status !== "Unversioned" ? /*#__PURE__*/ f(v, {
252
+ id: "i9I/nL",
253
+ values: { bucketName: q }
254
+ }) : /*#__PURE__*/ f(v, {
255
+ id: "KvQbFT",
256
+ values: { bucketName: q }
257
+ })
258
+ }),
259
+ M && M.status !== "Unversioned" && /*#__PURE__*/ f(i, {
260
+ checked: E,
261
+ onChange: (e) => D(e.target.checked),
262
+ label: m._({ id: "mbmb/h" }),
263
+ disabled: H.isPending || Y
264
+ }),
265
+ /*#__PURE__*/ f(n, {
266
+ label: m._({ id: "dEHa3L" }),
267
+ required: !0,
268
+ value: x,
269
+ onChange: W,
270
+ onKeyDown: K,
271
+ invalid: !!w,
272
+ errortext: w || void 0,
273
+ disabled: H.isPending || Y,
274
+ placeholder: r.name,
275
+ autoFocus: !0
276
+ })
277
+ ]
278
+ })
279
+ });
280
+ }, w = ({ isOpen: e, bucket: i, onClose: h, onSuccess: _, onError: x }) => {
281
+ let { i18n: C, _: w } = y(), T = u(), [E, D] = g(""), [O, k] = g(null), { trackClose: A, markSubmitted: j, resetTracking: M } = b({
282
+ isOpen: e,
283
+ actionPrefix: "storage.ceph.bucket.delete"
284
+ }), N = l.useUtils(), { data: P, isLoading: F } = l.storage.ceph.versioning.getStatus.useQuery({
285
+ project_id: T ?? "",
286
+ bucket: i?.name ?? ""
287
+ }, { enabled: e && i !== null }), I = P?.status === "Enabled" || P?.status === "Suspended", { data: L, isLoading: R, error: z } = l.storage.ceph.objects.list.useQuery({
288
+ project_id: T ?? "",
289
+ containerName: i?.name ?? "",
290
+ maxKeys: 100,
291
+ delimiter: "",
292
+ showVersions: !0
293
+ }, { enabled: e && i !== null }), B = l.storage.ceph.containers.delete.useMutation({ onSettled: () => {
294
+ N.storage.ceph.containers.list.invalidate();
295
+ } });
296
+ m(() => {
297
+ e || (D(""), k(null), B.reset(), M());
298
+ }, [e, i?.name]);
299
+ let V = () => {
300
+ D(""), k(null), B.reset(), M(), h();
301
+ }, H = (e) => {
302
+ let t = e.target.value;
303
+ D(t), O && k(null);
304
+ }, U = () => {
305
+ if (!i || z) return;
306
+ if (E.trim() !== i.name) {
307
+ k(C._({ id: "wxVsr5" }));
308
+ return;
309
+ }
310
+ j();
311
+ let e = i.name;
312
+ B.mutate({
313
+ project_id: T,
314
+ bucketName: e
315
+ }, {
316
+ onSuccess: () => {
317
+ V(), _?.(e);
318
+ },
319
+ onError: (t) => {
320
+ V(), x?.(e, t.message);
321
+ }
322
+ });
323
+ }, W = (e) => {
324
+ e.key === "Enter" && U();
325
+ };
326
+ if (!e || !i) return null;
327
+ let G = L?.objects?.length ?? 0, { effectiveCurrentObjectCount: K, hasOldVersionsOrDeleteMarkers: q } = S(L?.versions ?? [], I, G), J = K > 0, Y = q, X = J || Y, Z = z?.message, Q = R || F;
328
+ return /*#__PURE__*/ f(a, {
329
+ title: C._({ id: "IwlPLb" }),
330
+ open: e,
331
+ onCancel: () => {
332
+ A(), V();
333
+ },
334
+ confirmButtonLabel: X ? void 0 : C._({ id: "IwlPLb" }),
335
+ confirmButtonVariant: X ? void 0 : "primary-danger",
336
+ onConfirm: X ? void 0 : U,
337
+ cancelButtonLabel: X ? void 0 : C._({ id: "dEgA5A" }),
338
+ modalFooter: X ? /*#__PURE__*/ f(r, {
339
+ className: "flex justify-end",
340
+ children: /*#__PURE__*/ f(s, { children: /*#__PURE__*/ f(c, {
341
+ variant: "primary",
342
+ onClick: V,
343
+ "data-testid": "delete-has-objects-close-button",
344
+ children: /*#__PURE__*/ f(v, { id: "yz7wBu" })
345
+ }) })
346
+ }) : void 0,
347
+ size: "small",
348
+ disableConfirmButton: B.isPending || Q || !!z || E.trim() !== i.name,
349
+ children: /*#__PURE__*/ p(o, {
350
+ direction: "vertical",
351
+ gap: "6",
352
+ children: [z && /*#__PURE__*/ f("p", {
353
+ className: "text-theme-error",
354
+ role: "alert",
355
+ "aria-live": "assertive",
356
+ children: /*#__PURE__*/ f(v, {
357
+ id: "MJLqeY",
358
+ values: { errorMessage: Z }
359
+ })
360
+ }), Q ? /*#__PURE__*/ p(o, {
361
+ direction: "horizontal",
362
+ gap: "2",
363
+ alignment: "center",
364
+ children: [/*#__PURE__*/ f(t, {}), /*#__PURE__*/ f("span", {
365
+ className: "text-juno-grey-light-1 text-sm",
366
+ children: /*#__PURE__*/ f(v, { id: "rPuPb+" })
367
+ })]
368
+ }) : X ? /*#__PURE__*/ p("div", {
369
+ className: "text-theme-default",
370
+ children: [/*#__PURE__*/ f("p", {
371
+ className: "mb-4",
372
+ children: /*#__PURE__*/ f(v, { id: "8/m18Q" })
373
+ }), /*#__PURE__*/ p("ul", {
374
+ className: "list-disc space-y-1 pl-5",
375
+ children: [J && /*#__PURE__*/ f("li", { children: /*#__PURE__*/ f(v, { id: "5Od/iS" }) }), Y && /*#__PURE__*/ f("li", { children: /*#__PURE__*/ f(v, { id: "vi0pmB" }) })]
376
+ })]
377
+ }) : /*#__PURE__*/ p(d, { children: [/*#__PURE__*/ f("p", {
378
+ className: "text-theme-default",
379
+ children: /*#__PURE__*/ f(v, { id: "/pOQrn" })
380
+ }), /*#__PURE__*/ f(n, {
381
+ label: C._({ id: "dEHa3L" }),
382
+ required: !0,
383
+ value: E,
384
+ onChange: H,
385
+ onKeyDown: W,
386
+ invalid: !!O,
387
+ errortext: O || void 0,
388
+ disabled: B.isPending,
389
+ placeholder: i.name
390
+ })] })]
391
+ })
392
+ });
393
+ }, T = ({ isOpen: e, bucket: t, onClose: r, onSuccess: i, onError: s }) => {
394
+ let { i18n: c, _: d } = y(), m = u(), [h, _] = g(""), [x, S] = g(null), { trackClose: C, markSubmitted: w, resetTracking: T } = b({
395
+ isOpen: e,
396
+ actionPrefix: "storage.ceph.bucket.versions.delete"
397
+ }), E = l.useUtils(), D = l.storage.ceph.objects.deleteAll.useMutation({ onSettled: () => {
398
+ E.storage.ceph.containers.list.invalidate(), E.storage.ceph.objects.list.invalidate(), O();
399
+ } }), O = () => {
400
+ _(""), S(null), D.reset(), T(), r();
401
+ }, k = (e) => {
402
+ let t = e.target.value;
403
+ _(t), x && S(null);
404
+ }, A = () => {
405
+ if (!t) return;
406
+ if (h.trim() !== t.name) {
407
+ S(c._({ id: "wxVsr5" }));
408
+ return;
409
+ }
410
+ w();
411
+ let e = t.name;
412
+ D.mutate({
413
+ project_id: m,
414
+ containerName: e,
415
+ includeVersionsAndDeleteMarkers: !0
416
+ }, {
417
+ onSuccess: (t) => {
418
+ i?.(e, t);
419
+ },
420
+ onError: (t) => {
421
+ s?.(e, t.message);
422
+ }
423
+ });
424
+ };
425
+ return !e || !t ? null : /*#__PURE__*/ f(a, {
426
+ title: c._({ id: "1mFMeP" }),
427
+ open: e,
428
+ onCancel: () => {
429
+ C(), O();
430
+ },
431
+ confirmButtonLabel: c._({ id: "1mFMeP" }),
432
+ confirmButtonVariant: "primary-danger",
433
+ onConfirm: A,
434
+ cancelButtonLabel: c._({ id: "dEgA5A" }),
435
+ size: "small",
436
+ disableConfirmButton: D.isPending || h.trim() !== t.name,
437
+ children: /*#__PURE__*/ p(o, {
438
+ direction: "vertical",
439
+ gap: "6",
440
+ children: [/*#__PURE__*/ f("p", {
441
+ className: "text-theme-default m-0",
442
+ children: /*#__PURE__*/ f(v, { id: "T3+VKR" })
443
+ }), /*#__PURE__*/ f(n, {
444
+ label: c._({ id: "dEHa3L" }),
445
+ required: !0,
446
+ value: h,
447
+ onChange: k,
448
+ onKeyDown: (e) => {
449
+ e.key === "Enter" && A();
450
+ },
451
+ invalid: !!x,
452
+ errortext: x || void 0,
453
+ disabled: D.isPending,
454
+ placeholder: t.name,
455
+ autoFocus: !0,
456
+ className: "overflow-x-hidden [overflow-wrap:anywhere]"
457
+ })]
458
+ })
459
+ });
460
+ }, E = (e) => ({
461
+ message: /*#__PURE__*/ f(v, { id: "M3bysB" }),
462
+ description: /*#__PURE__*/ f(v, {
463
+ id: "VKCkZH",
464
+ values: { bucketName: e }
465
+ })
466
+ }), D = (e, t) => ({
467
+ message: /*#__PURE__*/ f(v, { id: "UaP7Th" }),
468
+ description: /*#__PURE__*/ f(v, {
469
+ id: "boefwq",
470
+ values: {
471
+ bucketName: e,
472
+ errorMessage: t
473
+ }
474
+ })
475
+ }), O = (e, t) => ({
476
+ message: /*#__PURE__*/ f(v, { id: "b95YH9" }),
477
+ description: t === 0 ? /*#__PURE__*/ f(v, {
478
+ id: "8erw15",
479
+ values: { bucketName: e }
480
+ }) : t === 1 ? /*#__PURE__*/ f(v, {
481
+ id: "QpbWpf",
482
+ values: {
483
+ bucketName: e,
484
+ deletedCount: t
485
+ }
486
+ }) : /*#__PURE__*/ f(v, {
487
+ id: "JPWqr2",
488
+ values: {
489
+ bucketName: e,
490
+ deletedCount: t
491
+ }
492
+ })
493
+ }), k = (e, t) => ({
494
+ message: /*#__PURE__*/ f(v, { id: "66YUKF" }),
495
+ description: /*#__PURE__*/ f(v, {
496
+ id: "t7ewhH",
497
+ values: {
498
+ bucketName: e,
499
+ errorMessage: t
500
+ }
501
+ })
502
+ }), A = (e) => ({
503
+ message: /*#__PURE__*/ f(v, { id: "bHUarC" }),
504
+ description: /*#__PURE__*/ f(v, {
505
+ id: "hQdfmR",
506
+ values: { bucketName: e }
507
+ })
508
+ }), j = (e, t) => ({
509
+ message: /*#__PURE__*/ f(v, { id: "1NFtQz" }),
510
+ description: /*#__PURE__*/ f(v, {
511
+ id: "CongmL",
512
+ values: {
513
+ bucketName: e,
514
+ errorMessage: t
515
+ }
516
+ })
517
+ }), M = (e, t, n) => {
518
+ let r = n.length > 0, i = e + n.length, a = n.length;
519
+ return {
520
+ message: r ? /*#__PURE__*/ f(v, { id: "6fuDFZ" }) : /*#__PURE__*/ f(v, { id: "BOoOLQ" }),
521
+ description: r ? /*#__PURE__*/ f(v, {
522
+ id: "pD/2BQ",
523
+ values: {
524
+ emptiedCount: e,
525
+ totalBuckets: i,
526
+ totalDeleted: t,
527
+ errorsLength: a
528
+ }
529
+ }) : /*#__PURE__*/ f(v, {
530
+ id: "YVLcyI",
531
+ values: {
532
+ emptiedCount: e,
533
+ totalDeleted: t
534
+ }
535
+ })
536
+ };
537
+ }, N = (e) => ({
538
+ message: /*#__PURE__*/ f(v, { id: "nU1mHK" }),
539
+ description: /*#__PURE__*/ f(v, {
540
+ id: "z/5vyM",
541
+ values: { bucketName: e }
542
+ })
543
+ }), P = (e, t) => ({
544
+ message: /*#__PURE__*/ f(v, { id: "eslBIK" }),
545
+ description: /*#__PURE__*/ f(v, {
546
+ id: "jMaofI",
547
+ values: {
548
+ bucketName: e,
549
+ errorMessage: t
550
+ }
551
+ })
552
+ }), F = (e) => ({
553
+ message: /*#__PURE__*/ f(v, { id: "Ni6RvO" }),
554
+ description: /*#__PURE__*/ f(v, {
555
+ id: "RHm1CB",
556
+ values: { bucketName: e }
557
+ })
558
+ }), I = (e, t) => ({
559
+ message: /*#__PURE__*/ f(v, { id: "5PhMH2" }),
560
+ description: /*#__PURE__*/ f(v, {
561
+ id: "pQB7Sy",
562
+ values: {
563
+ bucketName: e,
564
+ errorMessage: t
565
+ }
566
+ })
567
+ }), L = (e) => ({
568
+ message: /*#__PURE__*/ f(v, { id: "QAoi3Q" }),
569
+ description: /*#__PURE__*/ f(v, {
570
+ id: "LT2Vv7",
571
+ values: { bucketName: e }
572
+ })
573
+ }), R = (e, t) => ({
574
+ message: /*#__PURE__*/ f(v, { id: "cBfLPr" }),
575
+ description: /*#__PURE__*/ f(v, {
576
+ id: "XjGaah",
577
+ values: {
578
+ bucketName: e,
579
+ errorMessage: t
580
+ }
581
+ })
582
+ }), z = (e, t) => ({
583
+ message: /*#__PURE__*/ f(v, { id: "V6AQa5" }),
584
+ description: t === 0 ? /*#__PURE__*/ f(v, {
585
+ id: "EJqSbS",
586
+ values: { bucketName: e }
587
+ }) : t === 1 ? /*#__PURE__*/ f(v, {
588
+ id: "NwXhO7",
589
+ values: {
590
+ deletedCount: t,
591
+ bucketName: e
592
+ }
593
+ }) : /*#__PURE__*/ f(v, {
594
+ id: "nPI6Rk",
595
+ values: {
596
+ deletedCount: t,
597
+ bucketName: e
598
+ }
599
+ })
600
+ }), B = (e, t) => ({
601
+ message: /*#__PURE__*/ f(v, { id: "W1ZvXE" }),
602
+ description: /*#__PURE__*/ f(v, {
603
+ id: "pPr2iF",
604
+ values: {
605
+ bucketName: e,
606
+ errorMessage: t
607
+ }
608
+ })
609
+ });
610
+ //#endregion
611
+ export { w as _, O as a, x as b, L as c, N as d, I as f, T as g, z as h, A as i, M as l, B as m, E as n, k as o, F as p, j as r, R as s, D as t, P as u, C as v, b as x, S as y };
612
+
613
+ //# sourceMappingURL=BucketToastNotifications-D2Cq2VrV.mjs.map