@nice2dev/ui 1.3.17 → 1.4.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.
Files changed (44) hide show
  1. package/CHANGELOG.md +146 -0
  2. package/README.md +29 -2
  3. package/dist/{NiceDataGrid-aNPAHsWy.cjs → NiceDataGrid-BT6iCUgP.cjs} +1 -1
  4. package/dist/NiceForm-Bysp66Ef.cjs +1 -0
  5. package/dist/{NiceMention-CMqAGvO0.cjs → NiceMention-sc8W-DwH.cjs} +1 -1
  6. package/dist/NiceModuleLifecyclePanel-DBQPCa_V.cjs +1 -0
  7. package/dist/{NiceSavedQueryPanel-JHrSlHAV.cjs → NiceSavedQueryPanel-BbznsXFd.cjs} +1 -1
  8. package/dist/{NiceScheduler-2TwOZq-y.cjs → NiceScheduler-3Ez0zSQJ.cjs} +1 -1
  9. package/dist/{core-lazy-Cda-D35m.cjs → core-lazy-CL4ZIxF-.cjs} +1 -1
  10. package/dist/data/treeDragSession.mjs +52 -46
  11. package/dist/data.cjs +1 -1
  12. package/dist/editors/inputs/NiceAutocomplete.mjs +44 -46
  13. package/dist/editors/pickers/NiceDateTimePicker.mjs +1 -1
  14. package/dist/editors/pickers/pickerCommons.mjs +284 -87
  15. package/dist/editors/pickers/themePickerHelpers.mjs +10 -8
  16. package/dist/editors.cjs +1 -1
  17. package/dist/index.cjs +162 -162
  18. package/dist/index.d.ts +253 -31
  19. package/dist/index.mjs +1517 -1483
  20. package/dist/navigation/NiceIconRail.mjs +74 -53
  21. package/dist/navigation/NiceNavShell.mjs +855 -807
  22. package/dist/navigation/NiceSetupWizard.mjs +287 -278
  23. package/dist/navigation/NiceSidebarNav.mjs +1487 -1144
  24. package/dist/navigation/navItemDrag.mjs +42 -0
  25. package/dist/navigation/navShellPane.mjs +16 -11
  26. package/dist/navigation/sidebarColors.mjs +61 -50
  27. package/dist/navigation/sidebarNavTypes.mjs +1 -0
  28. package/dist/navigation/sidebarSearch.mjs +28 -0
  29. package/dist/navigation.cjs +1 -1
  30. package/dist/navigation.d.ts +70 -21
  31. package/dist/pickerCommons-CwcCc8Qi.cjs +1 -0
  32. package/dist/planning/NiceResourceAllocation.mjs +31 -31
  33. package/dist/style.css +4 -4
  34. package/dist/tools/NiceThemeDesigner.mjs +781 -708
  35. package/dist/tools/NiceThemePreview.mjs +344 -282
  36. package/dist/tools/themeCatalog.mjs +28 -44
  37. package/dist/tools/themeCatalogArchive.mjs +38 -0
  38. package/dist/tools/themeDesigner/ThemeSetEditors.mjs +400 -0
  39. package/dist/tools/themeDesigner/ThemeValueField.mjs +146 -0
  40. package/dist/tools/themeDesigner/themeDesignerPaths.mjs +105 -0
  41. package/package.json +4 -4
  42. package/dist/NiceForm-BtRBLffD.cjs +0 -1
  43. package/dist/NiceModuleLifecyclePanel-ugNtHimh.cjs +0 -1
  44. package/dist/pickerCommons-BWglYl6J.cjs +0 -1
@@ -1,164 +1,173 @@
1
- import { jsx as i, jsxs as s, Fragment as Q } from "react/jsx-runtime";
2
- import { useRovingFocus as _i, useNiceAccessMode as fi, useNiceTranslation as wi, useControlId as vi, useIntent as zi, useInputHints as bi, NiceIcon as S, NiceThemeProvider as gi } from "@nice2dev/ui-core";
3
- import { forwardRef as Ni, useRef as R, useState as b, useMemo as T, useEffect as le, useCallback as m, useContext as xi, createContext as ki } from "react";
1
+ import { jsx as i, jsxs as c, Fragment as V } from "react/jsx-runtime";
2
+ import { useRovingFocus as fi, useNiceAccessMode as _i, useNiceTranslation as wi, useControlId as vi, useIntent as zi, useInputHints as bi, NiceIcon as I, NiceThemeProvider as gi, useMediaQuery as Ni } from "@nice2dev/ui-core";
3
+ import { forwardRef as xi, useRef as L, useState as b, useMemo as P, useEffect as J, useCallback as h, useContext as ki, createContext as Si } from "react";
4
4
  import { NiceButton as Ge } from "../buttons/NiceButton.mjs";
5
- import { NiceSpinner as Si } from "../display/NiceSpinner.mjs";
6
- import { NiceLanguagePicker as Ci } from "../editors/pickers/NiceLanguagePicker.mjs";
7
- import { NiceThemePicker as Ii } from "../editors/pickers/NiceThemePicker.mjs";
8
- import { NiceConfirmDialog as yi } from "../feedback/NiceConfirmDialog.mjs";
9
- const $i = [], Qe = /* @__PURE__ */ ki(null);
10
- function Fi() {
11
- const C = xi(Qe);
12
- if (!C)
5
+ import { NiceSpinner as Ci } from "../display/NiceSpinner.mjs";
6
+ import { NiceLanguagePicker as Ii } from "../editors/pickers/NiceLanguagePicker.mjs";
7
+ import { NiceThemePicker as yi } from "../editors/pickers/NiceThemePicker.mjs";
8
+ import { NiceConfirmDialog as $i } from "../feedback/NiceConfirmDialog.mjs";
9
+ const Li = [], Ve = /* @__PURE__ */ Si(null);
10
+ function ji() {
11
+ const g = ki(Ve);
12
+ if (!g)
13
13
  throw new Error("useSetupWizard must be used within NiceSetupWizard");
14
- return C;
14
+ return g;
15
15
  }
16
- const Li = /* @__PURE__ */ i(S, { name: "refresh", size: 18 }), ji = /* @__PURE__ */ Object.assign(
17
- /* @__PURE__ */ Ni(
16
+ const Mi = /* @__PURE__ */ i(I, { name: "refresh", size: 18 });
17
+ function qi({ children: g }) {
18
+ const M = L(null), p = Ni("(prefers-reduced-motion: reduce)");
19
+ return J(() => {
20
+ const Y = M.current?.querySelectorAll("svg") ?? [];
21
+ for (const S of Y)
22
+ p ? S.pauseAnimations?.() : S.unpauseAnimations?.();
23
+ }, [p, g]), /* @__PURE__ */ i("div", { ref: M, className: "nice-setup-wizard__loading-indicator", "aria-hidden": "true", children: g });
24
+ }
25
+ const Di = /* @__PURE__ */ Object.assign(
26
+ /* @__PURE__ */ xi(
18
27
  ({
19
- steps: C = $i,
20
- initialValues: oe = {},
21
- activeStep: f,
22
- completedSteps: Ve,
23
- layout: q = "horizontal",
24
- size: P = "md",
28
+ steps: g = Li,
29
+ initialValues: M = {},
30
+ activeStep: p,
31
+ completedSteps: Y,
32
+ layout: S = "horizontal",
33
+ size: W = "md",
25
34
  defaultQuickMode: Je = !1,
26
- allowQuickModeToggle: ue = !0,
35
+ allowQuickModeToggle: pe = !0,
27
36
  showStepNumbers: Ye = !0,
28
37
  showProgress: Ue = !0,
29
- showEstimatedTime: pe = !1,
38
+ showEstimatedTime: me = !1,
30
39
  allowStepClick: Xe = !0,
31
- showReviewStep: me = !1,
32
- persistKey: h,
33
- animation: he = "slide",
40
+ showReviewStep: he = !1,
41
+ persistKey: f,
42
+ animation: fe = "slide",
34
43
  theme: _e,
35
- branding: V,
36
- showLanguagePicker: fe = !1,
44
+ branding: U,
45
+ showLanguagePicker: we = !1,
37
46
  languagePickerProps: Ze,
38
- showThemePicker: we = !1,
47
+ showThemePicker: ve = !1,
39
48
  themePickerProps: Ke,
40
- showRestart: J = !1,
41
- onRestart: Y,
42
- restart: g = {},
43
- header: ve,
44
- footer: ze,
45
- onStepChange: be,
46
- onValuesChange: W,
49
+ showRestart: X = !1,
50
+ onRestart: Z,
51
+ restart: N = {},
52
+ header: ze,
53
+ footer: be,
54
+ onStepChange: ge,
55
+ onValuesChange: A,
47
56
  onComplete: E,
48
- onCancel: U,
49
- labels: p = {},
57
+ onCancel: K,
58
+ labels: m = {},
50
59
  accessMode: ei,
51
- height: ge,
52
- loading: X = !1,
60
+ height: Ne,
61
+ loading: ee = !1,
53
62
  loadingText: ii,
54
63
  loadingIndicator: ni,
55
- id: Ne,
64
+ id: xe,
56
65
  className: ti,
57
- style: xe
58
- }, $) => {
59
- const ke = R(null);
60
- _i(ke, {
61
- orientation: q === "vertical" ? "vertical" : "horizontal",
66
+ style: ke
67
+ }, q) => {
68
+ const Se = L(null);
69
+ fi(Se, {
70
+ orientation: S === "vertical" ? "vertical" : "horizontal",
62
71
  wrap: !0,
63
72
  activateOnMove: !0
64
73
  });
65
- const Z = fi(ei, Ne), Se = Z === "hidden", { t: d } = wi(), Ce = vi(Ne), [L, ai] = b(Je), F = T(() => L ? C.filter((e) => !e.quickModeSkip) : C, [C, L]), r = T(() => {
66
- if (!me)
74
+ const ie = _i(ei, xe), Ce = ie === "hidden", { t: d } = wi(), Ie = vi(xe), [B, ai] = b(Je), F = P(() => B ? g.filter((e) => !e.quickModeSkip) : g, [g, B]), r = P(() => {
75
+ if (!he)
67
76
  return F;
68
77
  const e = {
69
78
  id: "__review__",
70
- title: p.review ?? d("wizard.review", "Review"),
71
- icon: /* @__PURE__ */ i(S, { name: "clipboard", size: 16 }),
72
- content: (n) => /* @__PURE__ */ s("div", { className: "nice-setup-wizard__review", children: [
79
+ title: m.review ?? d("wizard.review", "Review"),
80
+ icon: /* @__PURE__ */ i(I, { name: "clipboard", size: 16 }),
81
+ content: (n) => /* @__PURE__ */ c("div", { className: "nice-setup-wizard__review", children: [
73
82
  /* @__PURE__ */ i("h3", { children: d("wizard.reviewTitle", "Review Your Setup") }),
74
- F.filter((a) => a.summary).map((a) => /* @__PURE__ */ s("div", { className: "nice-setup-wizard__review-section", children: [
83
+ F.filter((a) => a.summary).map((a) => /* @__PURE__ */ c("div", { className: "nice-setup-wizard__review-section", children: [
75
84
  /* @__PURE__ */ i("h4", { children: a.title }),
76
85
  a.summary?.(n.values)
77
86
  ] }, a.id))
78
87
  ] })
79
88
  };
80
89
  return [...F, e];
81
- }, [F, me, p.review, d]), [u, Ie] = b(() => {
82
- if (h)
90
+ }, [F, he, m.review, d]), [u, ye] = b(() => {
91
+ if (f)
83
92
  try {
84
- const e = localStorage.getItem(h);
93
+ const e = localStorage.getItem(f);
85
94
  if (e)
86
- return { ...oe, ...JSON.parse(e) };
95
+ return { ...M, ...JSON.parse(e) };
87
96
  } catch {
88
97
  }
89
- return oe;
90
- }), [w, ye] = b(() => {
98
+ return M;
99
+ }), [w, $e] = b(() => {
100
+ if (p)
101
+ return p;
91
102
  if (f)
92
- return f;
93
- if (h)
94
103
  try {
95
- const e = localStorage.getItem(`${h}_step`);
104
+ const e = localStorage.getItem(`${f}_step`);
96
105
  if (e && r.some((n) => n.id === e))
97
106
  return e;
98
107
  } catch {
99
108
  }
100
109
  return r[0]?.id ?? "";
101
- }), [K, $e] = b(() => /* @__PURE__ */ new Set([w])), [B, Le] = b({}), [Be, j] = b(!1), [Me, Oe] = b(!1), ee = R(!1), [Re, ie] = b("next"), [ri, ne] = b(!1), Te = r.findIndex((e) => e.id === w), o = Te >= 0 ? Te : r.length > 0 ? 0 : -1, t = r[o], M = o === 0, te = o === r.length - 1, k = r.some((e) => e.final) ? !!t?.final : te && t?.final !== !1, N = T(() => {
110
+ }), [ne, Le] = b(() => /* @__PURE__ */ new Set([w])), [O, Me] = b({}), [qe, j] = b(!1), [Be, Oe] = b(!1), te = L(!1), [Re, ae] = b("next"), [ri, re] = b(!1), Te = r.findIndex((e) => e.id === w), l = Te >= 0 ? Te : r.length > 0 ? 0 : -1, t = r[l], R = l === 0, se = l === r.length - 1, C = r.some((e) => e.final) ? !!t?.final : se && t?.final !== !1, x = P(() => {
102
111
  const e = /* @__PURE__ */ new Map();
103
112
  for (const n of r)
104
113
  n.numbered !== !1 && e.set(n.id, e.size + 1);
105
114
  return e;
106
- }, [r]), ci = r.slice(0, o + 1).filter((e) => e.numbered !== !1).length, A = N.size > 0 ? ci / N.size * 100 : 0, qe = R(f);
107
- le(() => {
108
- if (f === void 0 || f === qe.current)
115
+ }, [r]), si = r.slice(0, l + 1).filter((e) => e.numbered !== !1).length, D = x.size > 0 ? si / x.size * 100 : 0, Pe = L(p);
116
+ J(() => {
117
+ if (p === void 0 || p === Pe.current)
109
118
  return;
110
- const e = r.findIndex((n) => n.id === f);
111
- e < 0 || (qe.current = f, f !== w && (ie(
119
+ const e = r.findIndex((n) => n.id === p);
120
+ e < 0 || (Pe.current = p, p !== w && (ae(
112
121
  e > r.findIndex((n) => n.id === w) ? "next" : "prev"
113
- ), ye(f), $e((n) => new Set(n).add(f))));
114
- }, [f, r, w]), le(() => {
115
- h && (localStorage.setItem(h, JSON.stringify(u)), localStorage.setItem(`${h}_step`, w));
116
- }, [u, w, h]);
117
- const ae = m(
122
+ ), $e(p), Le((n) => new Set(n).add(p))));
123
+ }, [p, r, w]), J(() => {
124
+ f && (localStorage.setItem(f, JSON.stringify(u)), localStorage.setItem(`${f}_step`, w));
125
+ }, [u, w, f]);
126
+ const ce = h(
118
127
  (e, n) => {
119
- Ie((a) => {
120
- const l = { ...a, [e]: n };
121
- return W?.(l), l;
128
+ ye((a) => {
129
+ const o = { ...a, [e]: n };
130
+ return A?.(o), o;
122
131
  });
123
132
  },
124
- [W]
125
- ), Pe = m(
133
+ [A]
134
+ ), We = h(
126
135
  (e) => {
127
- Ie((n) => {
136
+ ye((n) => {
128
137
  const a = { ...n, ...e };
129
- return W?.(a), a;
138
+ return A?.(a), a;
130
139
  });
131
140
  },
132
- [W]
133
- ), x = m((e, n) => {
134
- Le((a) => ({ ...a, [e]: n }));
135
- }, []), O = m((e) => {
136
- Le((n) => {
141
+ [A]
142
+ ), k = h((e, n) => {
143
+ Me((a) => ({ ...a, [e]: n }));
144
+ }, []), T = h((e) => {
145
+ Me((n) => {
137
146
  const a = { ...n };
138
147
  return delete a[e], a;
139
148
  });
140
- }, []), D = R(null), [si, di] = b(0), v = m(
149
+ }, []), H = L(null), [ci, di] = b(0), v = h(
141
150
  (e) => {
142
151
  const n = r.findIndex((a) => a.id === e);
143
- n >= 0 && (D.current = null, ie(n > o ? "next" : "prev"), ye(e), $e((a) => new Set(a).add(e)), be?.(e, n));
152
+ n >= 0 && (H.current = null, ae(n > l ? "next" : "prev"), $e(e), Le((a) => new Set(a).add(e)), ge?.(e, n));
144
153
  },
145
- [r, o, be]
146
- ), I = m(
154
+ [r, l, ge]
155
+ ), y = h(
147
156
  (e, n) => e.nextStep ? typeof e.nextStep == "function" ? e.nextStep(u) : e.nextStep : r[n + 1]?.id ?? "",
148
157
  [u, r]
149
- ), H = m(async () => {
158
+ ), Q = h(async () => {
150
159
  if (!(!t || t.canProceed === !1)) {
151
160
  if (t.validate) {
152
161
  j(!0);
153
162
  try {
154
163
  const e = await t.validate(u);
155
164
  if (e) {
156
- x(t.id, e), j(!1);
165
+ k(t.id, e), j(!1);
157
166
  return;
158
167
  }
159
- O(t.id);
168
+ T(t.id);
160
169
  } catch (e) {
161
- x(t.id, String(e)), j(!1);
170
+ k(t.id, String(e)), j(!1);
162
171
  return;
163
172
  }
164
173
  j(!1);
@@ -166,172 +175,172 @@ const Li = /* @__PURE__ */ i(S, { name: "refresh", size: 18 }), ji = /* @__PURE_
166
175
  if (t.fields) {
167
176
  for (const e of t.fields) {
168
177
  if (e.required && !u[e.id]) {
169
- x(t.id, `${e.label} ${d("wizard.isRequired", "is required")}`);
178
+ k(t.id, `${e.label} ${d("wizard.isRequired", "is required")}`);
170
179
  return;
171
180
  }
172
181
  if (e.validation?.custom) {
173
182
  const n = e.validation.custom(u[e.id]);
174
183
  if (n) {
175
- x(t.id, n);
184
+ k(t.id, n);
176
185
  return;
177
186
  }
178
187
  }
179
188
  }
180
- O(t.id);
189
+ T(t.id);
181
190
  }
182
- if (k) {
183
- if (ee.current)
191
+ if (C) {
192
+ if (te.current)
184
193
  return;
185
- ee.current = !0, Oe(!0);
194
+ te.current = !0, Oe(!0);
186
195
  try {
187
- await E?.(u), h && (localStorage.removeItem(h), localStorage.removeItem(`${h}_step`));
196
+ await E?.(u), f && (localStorage.removeItem(f), localStorage.removeItem(`${f}_step`));
188
197
  } catch (e) {
189
- x(t.id, e instanceof Error ? e.message : String(e));
198
+ k(t.id, e instanceof Error ? e.message : String(e));
190
199
  } finally {
191
- ee.current = !1, Oe(!1);
200
+ te.current = !1, Oe(!1);
192
201
  }
193
202
  } else {
194
- const e = I(t, o);
195
- e && r.some((n) => n.id === e) ? v(e) : (D.current = t.id, di((n) => n + 1));
203
+ const e = y(t, l);
204
+ e && r.some((n) => n.id === e) ? v(e) : (H.current = t.id, di((n) => n + 1));
196
205
  }
197
206
  }
198
207
  }, [
199
208
  t,
200
209
  u,
201
- k,
202
- o,
210
+ C,
211
+ l,
203
212
  E,
204
- h,
213
+ f,
205
214
  d,
206
- x,
207
- O,
215
+ k,
216
+ T,
208
217
  v,
209
- I,
218
+ y,
210
219
  r
211
220
  ]);
212
- le(() => {
213
- const e = D.current;
221
+ J(() => {
222
+ const e = H.current;
214
223
  if (e === null)
215
224
  return;
216
225
  if (e !== w) {
217
- D.current = null;
226
+ H.current = null;
218
227
  return;
219
228
  }
220
- const n = r.findIndex((l) => l.id === e);
229
+ const n = r.findIndex((o) => o.id === e);
221
230
  if (n < 0)
222
231
  return;
223
- const a = I(r[n], n);
224
- a && r.some((l) => l.id === a) && v(a);
225
- }, [r, w, I, v, si]);
226
- const G = m(() => {
227
- if (M || t?.canGoBack === !1)
232
+ const a = y(r[n], n);
233
+ a && r.some((o) => o.id === a) && v(a);
234
+ }, [r, w, y, v, ci]);
235
+ const G = h(() => {
236
+ if (R || t?.canGoBack === !1)
228
237
  return;
229
- const e = t?.prevStep ?? r[o - 1]?.id;
230
- e && (ie("prev"), v(e));
231
- }, [M, t, o, r, v]), re = m(() => {
232
- if (t?.optional && !k) {
233
- const e = I(t, o);
238
+ const e = t?.prevStep ?? r[l - 1]?.id;
239
+ e && (ae("prev"), v(e));
240
+ }, [R, t, l, r, v]), de = h(() => {
241
+ if (t?.optional && !C) {
242
+ const e = y(t, l);
234
243
  e && v(e);
235
244
  }
236
- }, [t, k, o, I, v]), We = m(() => {
245
+ }, [t, C, l, y, v]), Ae = h(() => {
237
246
  E?.(u);
238
- }, [E, u]), ce = m(() => {
239
- U?.();
240
- }, [U]), li = m(() => {
241
- g.skipConfirm ? Y?.() : ne(!0);
242
- }, [g.skipConfirm, Y]), se = m(() => {
247
+ }, [E, u]), oe = h(() => {
248
+ K?.();
249
+ }, [K]), oi = h(() => {
250
+ N.skipConfirm ? Z?.() : re(!0);
251
+ }, [N.skipConfirm, Z]), le = h(() => {
243
252
  ai((e) => !e);
244
- }, []), y = T(
253
+ }, []), $ = P(
245
254
  () => ({
246
255
  values: u,
247
- setValue: ae,
248
- setValues: Pe,
256
+ setValue: ce,
257
+ setValues: We,
249
258
  currentStep: t,
250
- currentIndex: o,
259
+ currentIndex: l,
251
260
  totalSteps: r.length,
252
- visitedSteps: K,
253
- errors: B,
254
- setError: x,
255
- clearError: O,
256
- goNext: H,
261
+ visitedSteps: ne,
262
+ errors: O,
263
+ setError: k,
264
+ clearError: T,
265
+ goNext: Q,
257
266
  goPrev: G,
258
267
  goTo: v,
259
- skip: re,
260
- complete: We,
261
- cancel: ce,
262
- isFirst: M,
263
- isLast: te,
264
- isQuickMode: L,
265
- toggleQuickMode: se,
266
- progress: A,
268
+ skip: de,
269
+ complete: Ae,
270
+ cancel: oe,
271
+ isFirst: R,
272
+ isLast: se,
273
+ isQuickMode: B,
274
+ toggleQuickMode: le,
275
+ progress: D,
267
276
  t: d
268
277
  }),
269
278
  [
270
279
  u,
271
- ae,
272
- Pe,
280
+ ce,
281
+ We,
273
282
  t,
274
- o,
283
+ l,
275
284
  r.length,
276
- K,
277
- B,
278
- x,
285
+ ne,
279
286
  O,
280
- H,
287
+ k,
288
+ T,
289
+ Q,
281
290
  G,
282
291
  v,
283
- re,
284
- We,
285
- ce,
286
- M,
287
- te,
288
- L,
292
+ de,
293
+ Ae,
294
+ oe,
295
+ R,
289
296
  se,
290
- A,
297
+ B,
298
+ le,
299
+ D,
291
300
  d
292
301
  ]
293
- ), Ee = T(() => {
294
- if (!pe)
302
+ ), Ee = P(() => {
303
+ if (!me)
295
304
  return null;
296
305
  const n = r.map((a) => a.estimatedTime).filter(Boolean).map((a) => {
297
- const l = a.match(/(\d+)\s*(min|sec|s|m)/i);
298
- if (!l)
306
+ const o = a.match(/(\d+)\s*(min|sec|s|m)/i);
307
+ if (!o)
299
308
  return 0;
300
- const _ = parseInt(l[1], 10);
301
- return l[2].toLowerCase().startsWith("m") ? _ : _ / 60;
302
- }).reduce((a, l) => a + l, 0);
309
+ const _ = parseInt(o[1], 10);
310
+ return o[2].toLowerCase().startsWith("m") ? _ : _ / 60;
311
+ }).reduce((a, o) => a + o, 0);
303
312
  return n > 0 ? `~${Math.ceil(n)} min` : null;
304
- }, [r, pe]), de = R(null), oi = m(
313
+ }, [r, me]), ue = L(null), li = h(
305
314
  (e) => {
306
- de.current = e, typeof $ == "function" ? $(e) : $ && ($.current = e);
315
+ ue.current = e, typeof q == "function" ? q(e) : q && (q.current = e);
307
316
  },
308
- [$]
317
+ [q]
309
318
  );
310
319
  zi(
311
320
  ["sectionPrev", "sectionNext"],
312
321
  (e) => {
313
- e.intent === "sectionNext" ? H() : G();
322
+ e.intent === "sectionNext" ? Q() : G();
314
323
  },
315
- { ref: de, enabled: !Se && !!t }
324
+ { ref: ue, enabled: !Ce && !!t }
316
325
  );
317
- const Fe = !M && t?.canGoBack !== !1, je = t?.canProceed !== !1;
326
+ const Fe = !R && t?.canGoBack !== !1, je = t?.canProceed !== !1;
318
327
  if (bi(
319
- de,
328
+ ue,
320
329
  [
321
- ...Fe ? [{ intent: "sectionPrev", label: p.prev ?? d("wizard.prev", "Back") }] : [],
330
+ ...Fe ? [{ intent: "sectionPrev", label: m.prev ?? d("wizard.prev", "Back") }] : [],
322
331
  ...je ? [
323
332
  {
324
333
  intent: "sectionNext",
325
- label: t?.nextLabel ?? (k ? p.finish ?? d("wizard.finish", "Finish") : p.next ?? d("wizard.next", "Continue"))
334
+ label: t?.nextLabel ?? (C ? m.finish ?? d("wizard.finish", "Finish") : m.next ?? d("wizard.next", "Continue"))
326
335
  }
327
336
  ] : []
328
337
  ],
329
- { enabled: !!t && !X }
330
- ), !t && !X)
338
+ { enabled: !!t && !ee }
339
+ ), !t && !ee)
331
340
  return null;
332
341
  const ui = (e, n) => {
333
- const a = e.id === w, l = !a && (!!Ve?.includes(e.id) || K.has(e.id) && n < o), _ = !a && !l, z = !!B[e.id], c = Xe && (l || n <= o);
334
- return /* @__PURE__ */ s(
342
+ const a = e.id === w, o = !a && (!!Y?.includes(e.id) || ne.has(e.id) && n < l), _ = !a && !o, z = !!O[e.id], s = Xe && (o || n <= l);
343
+ return /* @__PURE__ */ c(
335
344
  "button",
336
345
  {
337
346
  type: "button",
@@ -341,20 +350,20 @@ const Li = /* @__PURE__ */ i(S, { name: "refresh", size: 18 }), ji = /* @__PURE_
341
350
  className: [
342
351
  "nice-setup-wizard__step-indicator",
343
352
  a && "nice-setup-wizard__step-indicator--active",
344
- l && "nice-setup-wizard__step-indicator--completed",
353
+ o && "nice-setup-wizard__step-indicator--completed",
345
354
  _ && "nice-setup-wizard__step-indicator--pending",
346
355
  z && "nice-setup-wizard__step-indicator--error"
347
356
  ].filter(Boolean).join(" "),
348
- onClick: () => c && v(e.id),
349
- disabled: !c,
357
+ onClick: () => s && v(e.id),
358
+ disabled: !s,
350
359
  children: [
351
- /* @__PURE__ */ i("span", { className: "nice-setup-wizard__step-marker", children: z ? "!" : l ? /* @__PURE__ */ i(S, { name: "check", size: 14 }) : Ye && e.numbered !== !1 ? N.get(e.id) : e.icon || /* @__PURE__ */ i(S, { name: "circle", size: 12 }) }),
352
- /* @__PURE__ */ s("span", { className: "nice-setup-wizard__step-info", children: [
360
+ /* @__PURE__ */ i("span", { className: "nice-setup-wizard__step-marker", children: z ? "!" : o ? /* @__PURE__ */ i(I, { name: "check", size: 14 }) : Ye && e.numbered !== !1 ? x.get(e.id) : e.icon || /* @__PURE__ */ i(I, { name: "circle", size: 12 }) }),
361
+ /* @__PURE__ */ c("span", { className: "nice-setup-wizard__step-info", children: [
353
362
  /* @__PURE__ */ i("span", { className: "nice-setup-wizard__step-title", children: e.title }),
354
363
  e.subtitle && /* @__PURE__ */ i("span", { className: "nice-setup-wizard__step-subtitle", children: e.subtitle }),
355
- e.optional && /* @__PURE__ */ s("span", { className: "nice-setup-wizard__step-optional", children: [
364
+ e.optional && /* @__PURE__ */ c("span", { className: "nice-setup-wizard__step-optional", children: [
356
365
  "(",
357
- p.optional ?? d("wizard.optional", "optional"),
366
+ m.optional ?? d("wizard.optional", "optional"),
358
367
  ")"
359
368
  ] })
360
369
  ] }),
@@ -366,7 +375,7 @@ const Li = /* @__PURE__ */ i(S, { name: "refresh", size: 18 }), ji = /* @__PURE_
366
375
  }, pi = (e) => {
367
376
  if (e.showWhen && !e.showWhen(u))
368
377
  return null;
369
- const n = u[e.id] ?? e.defaultValue ?? "", a = (c) => ae(e.id, c);
378
+ const n = u[e.id] ?? e.defaultValue ?? "", a = (s) => ce(e.id, s);
370
379
  if (e.render)
371
380
  return /* @__PURE__ */ i(
372
381
  "div",
@@ -376,9 +385,9 @@ const Li = /* @__PURE__ */ i(S, { name: "refresh", size: 18 }), ji = /* @__PURE_
376
385
  },
377
386
  e.id
378
387
  );
379
- const l = `${Ce}-${e.id}`, _ = {
380
- id: l,
381
- disabled: e.disabled || Z === "disabled" || Z === "readOnly",
388
+ const o = `${Ie}-${e.id}`, _ = {
389
+ id: o,
390
+ disabled: e.disabled || ie === "disabled" || ie === "readOnly",
382
391
  placeholder: e.placeholder,
383
392
  required: e.required
384
393
  };
@@ -391,51 +400,51 @@ const Li = /* @__PURE__ */ i(S, { name: "refresh", size: 18 }), ji = /* @__PURE_
391
400
  ..._,
392
401
  className: "nice-setup-wizard__input nice-setup-wizard__textarea",
393
402
  value: String(n),
394
- onChange: (c) => a(c.target.value),
403
+ onChange: (s) => a(s.target.value),
395
404
  rows: 4
396
405
  }
397
406
  );
398
407
  break;
399
408
  case "select":
400
- z = /* @__PURE__ */ s(
409
+ z = /* @__PURE__ */ c(
401
410
  "select",
402
411
  {
403
412
  ..._,
404
413
  className: "nice-setup-wizard__input nice-setup-wizard__select",
405
414
  value: String(n),
406
- onChange: (c) => a(c.target.value),
415
+ onChange: (s) => a(s.target.value),
407
416
  children: [
408
417
  /* @__PURE__ */ i("option", { value: "", children: e.placeholder || d("wizard.select", "Select...") }),
409
- e.options?.map((c) => /* @__PURE__ */ i("option", { value: c.value, children: c.label }, c.value))
418
+ e.options?.map((s) => /* @__PURE__ */ i("option", { value: s.value, children: s.label }, s.value))
410
419
  ]
411
420
  }
412
421
  );
413
422
  break;
414
423
  case "radio":
415
- z = /* @__PURE__ */ i("div", { className: "nice-setup-wizard__radio-group", children: e.options?.map((c) => /* @__PURE__ */ s("label", { className: "nice-setup-wizard__radio-label", children: [
424
+ z = /* @__PURE__ */ i("div", { className: "nice-setup-wizard__radio-group", children: e.options?.map((s) => /* @__PURE__ */ c("label", { className: "nice-setup-wizard__radio-label", children: [
416
425
  /* @__PURE__ */ i(
417
426
  "input",
418
427
  {
419
428
  type: "radio",
420
- name: l,
421
- value: c.value,
422
- checked: n === c.value,
423
- onChange: () => a(c.value),
429
+ name: o,
430
+ value: s.value,
431
+ checked: n === s.value,
432
+ onChange: () => a(s.value),
424
433
  disabled: _.disabled
425
434
  }
426
435
  ),
427
- c.icon && /* @__PURE__ */ i("span", { className: "nice-setup-wizard__radio-icon", children: c.icon }),
428
- /* @__PURE__ */ i("span", { children: c.label })
429
- ] }, c.value)) });
436
+ s.icon && /* @__PURE__ */ i("span", { className: "nice-setup-wizard__radio-icon", children: s.icon }),
437
+ /* @__PURE__ */ i("span", { children: s.label })
438
+ ] }, s.value)) });
430
439
  break;
431
440
  case "checkbox":
432
- z = /* @__PURE__ */ s("label", { className: "nice-setup-wizard__checkbox-label", children: [
441
+ z = /* @__PURE__ */ c("label", { className: "nice-setup-wizard__checkbox-label", children: [
433
442
  /* @__PURE__ */ i(
434
443
  "input",
435
444
  {
436
445
  type: "checkbox",
437
446
  checked: !!n,
438
- onChange: (c) => a(c.target.checked),
447
+ onChange: (s) => a(s.target.checked),
439
448
  disabled: _.disabled
440
449
  }
441
450
  ),
@@ -443,9 +452,9 @@ const Li = /* @__PURE__ */ i(S, { name: "refresh", size: 18 }), ji = /* @__PURE_
443
452
  ] });
444
453
  break;
445
454
  case "switch":
446
- z = /* @__PURE__ */ s("label", { className: "nice-setup-wizard__switch-label", children: [
455
+ z = /* @__PURE__ */ c("label", { className: "nice-setup-wizard__switch-label", children: [
447
456
  /* @__PURE__ */ i("span", { className: "nice-setup-wizard__switch-text", children: e.label }),
448
- /* @__PURE__ */ s(
457
+ /* @__PURE__ */ c(
449
458
  "span",
450
459
  {
451
460
  className: `nice-setup-wizard__switch${n ? " nice-setup-wizard__switch--on" : ""}`,
@@ -455,7 +464,7 @@ const Li = /* @__PURE__ */ i(S, { name: "refresh", size: 18 }), ji = /* @__PURE_
455
464
  {
456
465
  type: "checkbox",
457
466
  checked: !!n,
458
- onChange: (c) => a(c.target.checked),
467
+ onChange: (s) => a(s.target.checked),
459
468
  disabled: _.disabled
460
469
  }
461
470
  ),
@@ -467,7 +476,7 @@ const Li = /* @__PURE__ */ i(S, { name: "refresh", size: 18 }), ji = /* @__PURE_
467
476
  ] });
468
477
  break;
469
478
  case "slider":
470
- z = /* @__PURE__ */ s("div", { className: "nice-setup-wizard__slider-wrapper", children: [
479
+ z = /* @__PURE__ */ c("div", { className: "nice-setup-wizard__slider-wrapper", children: [
471
480
  /* @__PURE__ */ i(
472
481
  "input",
473
482
  {
@@ -477,7 +486,7 @@ const Li = /* @__PURE__ */ i(S, { name: "refresh", size: 18 }), ji = /* @__PURE_
477
486
  value: Number(n) || e.validation?.min || 0,
478
487
  min: e.validation?.min,
479
488
  max: e.validation?.max,
480
- onChange: (c) => a(Number(c.target.value))
489
+ onChange: (s) => a(Number(s.target.value))
481
490
  }
482
491
  ),
483
492
  /* @__PURE__ */ i("span", { className: "nice-setup-wizard__slider-value", children: String(n ?? "") })
@@ -491,7 +500,7 @@ const Li = /* @__PURE__ */ i(S, { name: "refresh", size: 18 }), ji = /* @__PURE_
491
500
  ..._,
492
501
  className: "nice-setup-wizard__input",
493
502
  value: String(n),
494
- onChange: (c) => a(c.target.value),
503
+ onChange: (s) => a(s.target.value),
495
504
  minLength: e.validation?.minLength,
496
505
  maxLength: e.validation?.maxLength,
497
506
  min: e.validation?.min,
@@ -500,12 +509,12 @@ const Li = /* @__PURE__ */ i(S, { name: "refresh", size: 18 }), ji = /* @__PURE_
500
509
  }
501
510
  );
502
511
  }
503
- return /* @__PURE__ */ s(
512
+ return /* @__PURE__ */ c(
504
513
  "div",
505
514
  {
506
515
  className: `nice-setup-wizard__field${e.fullWidth ? " nice-setup-wizard__field--full" : ""}`,
507
516
  children: [
508
- e.type !== "checkbox" && e.type !== "switch" && /* @__PURE__ */ s("label", { htmlFor: l, className: "nice-setup-wizard__label", children: [
517
+ e.type !== "checkbox" && e.type !== "switch" && /* @__PURE__ */ c("label", { htmlFor: o, className: "nice-setup-wizard__label", children: [
509
518
  e.label,
510
519
  e.required && /* @__PURE__ */ i("span", { className: "nice-setup-wizard__required", children: "*" })
511
520
  ] }),
@@ -515,64 +524,64 @@ const Li = /* @__PURE__ */ i(S, { name: "refresh", size: 18 }), ji = /* @__PURE_
515
524
  },
516
525
  e.id
517
526
  );
518
- }, mi = () => t.fields ? /* @__PURE__ */ i("div", { className: "nice-setup-wizard__fields", children: t.fields.map(pi) }) : t.content ? typeof t.content == "function" ? t.content(y) : t.content : null;
519
- if (Se)
527
+ }, mi = () => t.fields ? /* @__PURE__ */ i("div", { className: "nice-setup-wizard__fields", children: t.fields.map(pi) }) : t.content ? typeof t.content == "function" ? t.content($) : t.content : null;
528
+ if (Ce)
520
529
  return null;
521
- const Ae = fe || we || J, De = g.label ?? d("wizard.restart", "Start over"), hi = X || !t, He = /* @__PURE__ */ i(Qe.Provider, { value: y, children: /* @__PURE__ */ s(
530
+ const De = we || ve || X, He = N.label ?? d("wizard.restart", "Start over"), hi = ee || !t, Qe = /* @__PURE__ */ i(Ve.Provider, { value: $, children: /* @__PURE__ */ c(
522
531
  "div",
523
532
  {
524
- ref: oi,
525
- id: Ce,
533
+ ref: li,
534
+ id: Ie,
526
535
  className: [
527
536
  "nice-setup-wizard",
528
- `nice-setup-wizard--${q}`,
529
- `nice-size-${P}`,
530
- he !== "none" && `nice-setup-wizard--anim-${he}`,
537
+ `nice-setup-wizard--${S}`,
538
+ `nice-size-${W}`,
539
+ fe !== "none" && `nice-setup-wizard--anim-${fe}`,
531
540
  ti
532
541
  ].filter(Boolean).join(" "),
533
- style: ge != null ? { height: ge, minHeight: 0, maxHeight: "none", boxSizing: "border-box", ...xe } : xe,
542
+ style: Ne != null ? { height: Ne, minHeight: 0, maxHeight: "none", boxSizing: "border-box", ...ke } : ke,
534
543
  children: [
535
- (V || ve || ue || Ae) && /* @__PURE__ */ s("header", { className: "nice-setup-wizard__header", children: [
536
- V && /* @__PURE__ */ i("div", { className: "nice-setup-wizard__branding", children: V }),
537
- Ae && /* @__PURE__ */ s("div", { className: "nice-setup-wizard__header-controls", children: [
538
- fe && /* @__PURE__ */ i(Ci, { compact: !0, variant: "ghost", ...Ze }),
539
- we && /* @__PURE__ */ i(Ii, { compact: !0, variant: "ghost", ...Ke }),
540
- J && /* @__PURE__ */ i(
544
+ (U || ze || pe || De) && /* @__PURE__ */ c("header", { className: "nice-setup-wizard__header", children: [
545
+ U && /* @__PURE__ */ i("div", { className: "nice-setup-wizard__branding", children: U }),
546
+ De && /* @__PURE__ */ c("div", { className: "nice-setup-wizard__header-controls", children: [
547
+ we && /* @__PURE__ */ i(Ii, { compact: !0, variant: "ghost", ...Ze }),
548
+ ve && /* @__PURE__ */ i(yi, { compact: !0, variant: "ghost", ...Ke }),
549
+ X && /* @__PURE__ */ i(
541
550
  "button",
542
551
  {
543
552
  type: "button",
544
553
  className: "nice-setup-wizard__icon-btn nice-setup-wizard__restart",
545
- onClick: li,
546
- title: De,
547
- "aria-label": De,
548
- children: g.icon ?? Li
554
+ onClick: oi,
555
+ title: He,
556
+ "aria-label": He,
557
+ children: N.icon ?? Mi
549
558
  }
550
559
  )
551
560
  ] }),
552
- ve,
553
- ue && /* @__PURE__ */ s("label", { className: "nice-setup-wizard__quick-toggle", children: [
554
- /* @__PURE__ */ i("input", { type: "checkbox", checked: L, onChange: se }),
555
- /* @__PURE__ */ i("span", { children: p.quickMode ?? d("wizard.quickMode", "Quick Setup") })
561
+ ze,
562
+ pe && /* @__PURE__ */ c("label", { className: "nice-setup-wizard__quick-toggle", children: [
563
+ /* @__PURE__ */ i("input", { type: "checkbox", checked: B, onChange: le }),
564
+ /* @__PURE__ */ i("span", { children: m.quickMode ?? d("wizard.quickMode", "Quick Setup") })
556
565
  ] }),
557
566
  Ee && /* @__PURE__ */ i("span", { className: "nice-setup-wizard__time", children: Ee })
558
567
  ] }),
559
- hi ? /* @__PURE__ */ s("div", { className: "nice-setup-wizard__loading", role: "status", "aria-busy": "true", children: [
560
- /* @__PURE__ */ i("div", { className: "nice-setup-wizard__loading-indicator", "aria-hidden": "true", children: ni ?? /* @__PURE__ */ i(Si, { size: "lg" }) }),
568
+ hi ? /* @__PURE__ */ c("div", { className: "nice-setup-wizard__loading", role: "status", "aria-busy": "true", children: [
569
+ /* @__PURE__ */ i(qi, { children: ni ?? /* @__PURE__ */ i(Ci, { size: "lg" }) }),
561
570
  /* @__PURE__ */ i("div", { className: "nice-setup-wizard__loading-text", children: ii ?? d("wizard.loading", "Loading…") })
562
- ] }) : /* @__PURE__ */ s(Q, { children: [
563
- q !== "minimal" && /* @__PURE__ */ i("nav", { className: "nice-setup-wizard__nav", ref: ke, role: "tablist", children: r.map(ui) }),
571
+ ] }) : /* @__PURE__ */ c(V, { children: [
572
+ S !== "minimal" && /* @__PURE__ */ i("nav", { className: "nice-setup-wizard__nav", ref: Se, role: "tablist", children: r.map(ui) }),
564
573
  Ue && /* @__PURE__ */ i("div", { className: "nice-setup-wizard__progress", children: /* @__PURE__ */ i(
565
574
  "div",
566
575
  {
567
576
  className: "nice-setup-wizard__progress-bar",
568
- style: { width: `${A}%` },
577
+ style: { width: `${D}%` },
569
578
  role: "progressbar",
570
- "aria-valuenow": A,
579
+ "aria-valuenow": D,
571
580
  "aria-valuemin": 0,
572
581
  "aria-valuemax": 100
573
582
  }
574
583
  ) }),
575
- /* @__PURE__ */ s(
584
+ /* @__PURE__ */ c(
576
585
  "div",
577
586
  {
578
587
  className: [
@@ -584,22 +593,22 @@ const Li = /* @__PURE__ */ i(S, { name: "refresh", size: 18 }), ji = /* @__PURE_
584
593
  children: [
585
594
  t.description && /* @__PURE__ */ i("p", { className: "nice-setup-wizard__step-description", children: t.description }),
586
595
  mi(),
587
- B[t.id] && /* @__PURE__ */ i("div", { className: "nice-setup-wizard__error", role: "alert", children: B[t.id] })
596
+ O[t.id] && /* @__PURE__ */ i("div", { className: "nice-setup-wizard__error", role: "alert", children: O[t.id] })
588
597
  ]
589
598
  },
590
599
  w
591
600
  ),
592
- /* @__PURE__ */ s("footer", { className: "nice-setup-wizard__footer", children: [
593
- /* @__PURE__ */ s("div", { className: "nice-setup-wizard__actions-left", children: [
594
- U && /* @__PURE__ */ i("button", { type: "button", className: "nice-btn nice-btn--text", onClick: ce, children: p.cancel ?? d("wizard.cancel", "Cancel") }),
595
- t.optional && !k && /* @__PURE__ */ i("button", { type: "button", className: "nice-btn nice-btn--text", onClick: re, children: p.skip ?? d("wizard.skip", "Skip") }),
596
- t.actions?.filter((e) => e.position === "left").map((e) => /* @__PURE__ */ s(
601
+ /* @__PURE__ */ c("footer", { className: "nice-setup-wizard__footer", children: [
602
+ /* @__PURE__ */ c("div", { className: "nice-setup-wizard__actions-left", children: [
603
+ K && /* @__PURE__ */ i("button", { type: "button", className: "nice-btn nice-btn--text", onClick: oe, children: m.cancel ?? d("wizard.cancel", "Cancel") }),
604
+ t.optional && !C && /* @__PURE__ */ i("button", { type: "button", className: "nice-btn nice-btn--text", onClick: de, children: m.skip ?? d("wizard.skip", "Skip") }),
605
+ t.actions?.filter((e) => e.position === "left").map((e) => /* @__PURE__ */ c(
597
606
  "button",
598
607
  {
599
608
  type: "button",
600
609
  className: `nice-btn nice-btn--${e.variant || "outlined"}`,
601
- onClick: () => e.onClick(y),
602
- disabled: e.disabled?.(y),
610
+ onClick: () => e.onClick($),
611
+ disabled: e.disabled?.($),
603
612
  children: [
604
613
  e.icon,
605
614
  " ",
@@ -609,14 +618,14 @@ const Li = /* @__PURE__ */ i(S, { name: "refresh", size: 18 }), ji = /* @__PURE_
609
618
  e.id
610
619
  ))
611
620
  ] }),
612
- /* @__PURE__ */ s("div", { className: "nice-setup-wizard__actions-right", children: [
613
- t.actions?.filter((e) => e.position !== "left").map((e) => /* @__PURE__ */ s(
621
+ /* @__PURE__ */ c("div", { className: "nice-setup-wizard__actions-right", children: [
622
+ t.actions?.filter((e) => e.position !== "left").map((e) => /* @__PURE__ */ c(
614
623
  "button",
615
624
  {
616
625
  type: "button",
617
626
  className: `nice-btn nice-btn--${e.variant || "outlined"}`,
618
- onClick: () => e.onClick(y),
619
- disabled: e.disabled?.(y),
627
+ onClick: () => e.onClick($),
628
+ disabled: e.disabled?.($),
620
629
  children: [
621
630
  e.icon,
622
631
  " ",
@@ -625,8 +634,8 @@ const Li = /* @__PURE__ */ i(S, { name: "refresh", size: 18 }), ji = /* @__PURE_
625
634
  },
626
635
  e.id
627
636
  )),
628
- Fe && /* @__PURE__ */ i(Ge, { variant: "outline", size: P, onClick: G, children: p.prev ?? /* @__PURE__ */ s(Q, { children: [
629
- /* @__PURE__ */ i(S, { name: "arrow-left", size: 14 }),
637
+ Fe && /* @__PURE__ */ i(Ge, { variant: "outline", size: W, onClick: G, children: m.prev ?? /* @__PURE__ */ c(V, { children: [
638
+ /* @__PURE__ */ i(I, { name: "arrow-left", size: 14 }),
630
639
  " ",
631
640
  d("wizard.prev", "Back")
632
641
  ] }) }),
@@ -634,54 +643,54 @@ const Li = /* @__PURE__ */ i(S, { name: "refresh", size: 18 }), ji = /* @__PURE_
634
643
  Ge,
635
644
  {
636
645
  variant: "primary",
637
- size: P,
638
- onClick: H,
639
- disabled: Be || Me || !je,
640
- loading: Be || Me,
641
- children: t.nextLabel ?? (k ? p.finish ?? /* @__PURE__ */ s(Q, { children: [
646
+ size: W,
647
+ onClick: Q,
648
+ disabled: qe || Be || !je,
649
+ loading: qe || Be,
650
+ children: t.nextLabel ?? (C ? m.finish ?? /* @__PURE__ */ c(V, { children: [
642
651
  d("wizard.finish", "Finish"),
643
652
  " ",
644
- /* @__PURE__ */ i(S, { name: "check", size: 14 })
645
- ] }) : p.next ?? /* @__PURE__ */ s(Q, { children: [
653
+ /* @__PURE__ */ i(I, { name: "check", size: 14 })
654
+ ] }) : m.next ?? /* @__PURE__ */ c(V, { children: [
646
655
  d("wizard.next", "Continue"),
647
656
  " ",
648
- /* @__PURE__ */ i(S, { name: "arrow-right", size: 14 })
657
+ /* @__PURE__ */ i(I, { name: "arrow-right", size: 14 })
649
658
  ] }))
650
659
  }
651
660
  )
652
661
  ] })
653
662
  ] }),
654
- ze && /* @__PURE__ */ i("div", { className: "nice-setup-wizard__custom-footer", children: ze }),
655
- q === "minimal" && N.has(t.id) && /* @__PURE__ */ i("div", { className: "nice-setup-wizard__minimal-indicator", children: p.stepOf ? p.stepOf.replace("{current}", String(N.get(t.id))).replace("{total}", String(N.size)) : `${N.get(t.id)} / ${N.size}` })
663
+ be && /* @__PURE__ */ i("div", { className: "nice-setup-wizard__custom-footer", children: be }),
664
+ S === "minimal" && x.has(t.id) && /* @__PURE__ */ i("div", { className: "nice-setup-wizard__minimal-indicator", children: m.stepOf ? m.stepOf.replace("{current}", String(x.get(t.id))).replace("{total}", String(x.size)) : `${x.get(t.id)} / ${x.size}` })
656
665
  ] }),
657
- J && !g.skipConfirm && /* @__PURE__ */ i(
658
- yi,
666
+ X && !N.skipConfirm && /* @__PURE__ */ i(
667
+ $i,
659
668
  {
660
669
  visible: ri,
661
670
  variant: "warning",
662
- size: P,
663
- header: g.confirmTitle ?? d("wizard.restartConfirmTitle", "Start setup over?"),
664
- message: g.confirmMessage ?? d(
671
+ size: W,
672
+ header: N.confirmTitle ?? d("wizard.restartConfirmTitle", "Start setup over?"),
673
+ message: N.confirmMessage ?? d(
665
674
  "wizard.restartConfirmMessage",
666
675
  "This will discard your progress and restart the setup from the beginning."
667
676
  ),
668
- acceptLabel: g.confirmLabel ?? d("wizard.restartConfirmAccept", "Yes, start over"),
669
- rejectLabel: g.cancelLabel ?? d("wizard.restartConfirmReject", "Cancel"),
677
+ acceptLabel: N.confirmLabel ?? d("wizard.restartConfirmAccept", "Yes, start over"),
678
+ rejectLabel: N.cancelLabel ?? d("wizard.restartConfirmReject", "Cancel"),
670
679
  onAccept: () => {
671
- ne(!1), Y?.();
680
+ re(!1), Z?.();
672
681
  },
673
- onReject: () => ne(!1)
682
+ onReject: () => re(!1)
674
683
  }
675
684
  )
676
685
  ]
677
686
  }
678
687
  ) });
679
- return _e != null ? /* @__PURE__ */ i(gi, { theme: _e, children: He }) : He;
688
+ return _e != null ? /* @__PURE__ */ i(gi, { theme: _e, children: Qe }) : Qe;
680
689
  }
681
690
  ),
682
691
  { displayName: "NiceSetupWizard" }
683
692
  );
684
693
  export {
685
- ji as NiceSetupWizard,
686
- Fi as useSetupWizard
694
+ Di as NiceSetupWizard,
695
+ ji as useSetupWizard
687
696
  };