@tech_carthagos/page-builder 1.0.12 → 1.0.13

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,15 +1,15 @@
1
- import { jsxs as k, jsx as n, Fragment as ot } from "react/jsx-runtime";
1
+ import { jsxs as M, jsx as n, Fragment as ot } from "react/jsx-runtime";
2
2
  import * as m from "react";
3
3
  import p, { useState as Te, forwardRef as Yo, isValidElement as Xe, useEffect as Uo } from "react";
4
- import { c as Y, P as we, B as Ae, L as kt, F as Zo, k as me, C as Ee, a as It, S as Mt, W as rt, H as Dt, T as At, b as Lt, d as Vt, I as Ht, V as _t, D as Bt, e as zt, u as re, f as _e, g as te, h as Be, i as W, j as ie, l as Xo, m as Re, n as Ko, o as qo, p as Qo, q as Jo, r as ze, s as er, t as tr, M as or, v as rr, w as ar, x as nr, y as sr, z as lr, A as ir, N as Oe, E as Ot, G as cr, J as Me, K as xt, O as dr, Q as Ke, R as Ct, U as St, X as ur, Y as fr, Z as pr, _ as mr, $ as hr, a0 as qe, a1 as Qe } from "./index-B9a24yCs.js";
5
- import gr from "react-dom";
4
+ import { c as Y, P as we, B as Ae, L as kt, F as Zo, k as me, C as Ee, a as It, S as Mt, W as rt, H as Dt, T as At, b as Vt, d as Lt, I as Ht, V as _t, D as Bt, e as zt, u as re, f as _e, g as te, h as Be, i as W, j as ie, l as Xo, m as Re, n as Ko, o as qo, p as Qo, q as Jo, r as ze, s as er, t as tr, M as or, v as rr, w as ar, x as nr, y as sr, z as lr, A as ir, N as Oe, E as Ot, G as cr, J as dr, K as Me, O as xt, Q as ur, R as Ke, U as Ct, X as St, Y as fr, Z as pr, _ as mr, $ as hr, a0 as gr, a1 as qe, a2 as Qe } from "./index-DWRynqVc.js";
5
+ import vr from "react-dom";
6
6
  /**
7
7
  * @license lucide-react v0.462.0 - ISC
8
8
  *
9
9
  * This source code is licensed under the ISC license.
10
10
  * See the LICENSE file in the root directory of this source tree.
11
11
  */
12
- const Ft = Y("Columns2", [
12
+ const $t = Y("Columns2", [
13
13
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
14
14
  ["path", { d: "M12 3v18", key: "108xh3" }]
15
15
  ]);
@@ -19,7 +19,7 @@ const Ft = Y("Columns2", [
19
19
  * This source code is licensed under the ISC license.
20
20
  * See the LICENSE file in the root directory of this source tree.
21
21
  */
22
- const vr = Y("GripVertical", [
22
+ const br = Y("GripVertical", [
23
23
  ["circle", { cx: "9", cy: "12", r: "1", key: "1vctgf" }],
24
24
  ["circle", { cx: "9", cy: "5", r: "1", key: "hp0tcf" }],
25
25
  ["circle", { cx: "9", cy: "19", r: "1", key: "fkjjf6" }],
@@ -33,7 +33,7 @@ const vr = Y("GripVertical", [
33
33
  * This source code is licensed under the ISC license.
34
34
  * See the LICENSE file in the root directory of this source tree.
35
35
  */
36
- const $t = Y("Heading", [
36
+ const Ft = Y("Heading", [
37
37
  ["path", { d: "M6 12h12", key: "8npq4p" }],
38
38
  ["path", { d: "M6 20V4", key: "1w1bmo" }],
39
39
  ["path", { d: "M18 20V4", key: "o2hl4u" }]
@@ -89,7 +89,7 @@ const Yt = Y("MoveVertical", [
89
89
  * This source code is licensed under the ISC license.
90
90
  * See the LICENSE file in the root directory of this source tree.
91
91
  */
92
- const br = Y("Redo2", [
92
+ const yr = Y("Redo2", [
93
93
  ["path", { d: "m15 14 5-5-5-5", key: "12vg1m" }],
94
94
  ["path", { d: "M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13", key: "6uklza" }]
95
95
  ]);
@@ -99,7 +99,7 @@ const br = Y("Redo2", [
99
99
  * This source code is licensed under the ISC license.
100
100
  * See the LICENSE file in the root directory of this source tree.
101
101
  */
102
- const yr = Y("Save", [
102
+ const wr = Y("Save", [
103
103
  [
104
104
  "path",
105
105
  {
@@ -125,7 +125,7 @@ const Ne = Y("Square", [
125
125
  * This source code is licensed under the ISC license.
126
126
  * See the LICENSE file in the root directory of this source tree.
127
127
  */
128
- const wr = Y("Trash2", [
128
+ const xr = Y("Trash2", [
129
129
  ["path", { d: "M3 6h18", key: "d0wm0j" }],
130
130
  ["path", { d: "M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6", key: "4alrt4" }],
131
131
  ["path", { d: "M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2", key: "v07s0e" }],
@@ -149,7 +149,7 @@ const Ut = Y("Type", [
149
149
  * This source code is licensed under the ISC license.
150
150
  * See the LICENSE file in the root directory of this source tree.
151
151
  */
152
- const xr = Y("Undo2", [
152
+ const Cr = Y("Undo2", [
153
153
  ["path", { d: "M9 14 4 9l5-5", key: "102s5s" }],
154
154
  ["path", { d: "M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11", key: "f3b9sd" }]
155
155
  ]);
@@ -159,7 +159,7 @@ const xr = Y("Undo2", [
159
159
  * This source code is licensed under the ISC license.
160
160
  * See the LICENSE file in the root directory of this source tree.
161
161
  */
162
- const Cr = Y("Video", [
162
+ const Sr = Y("Video", [
163
163
  [
164
164
  "path",
165
165
  {
@@ -168,7 +168,7 @@ const Cr = Y("Video", [
168
168
  }
169
169
  ],
170
170
  ["rect", { x: "2", y: "6", width: "14", height: "12", rx: "2", key: "158x01" }]
171
- ]), Sr = () => {
171
+ ]), Er = () => {
172
172
  const { connectors: e } = we(), t = [
173
173
  {
174
174
  name: "Container",
@@ -177,8 +177,8 @@ const Cr = Y("Video", [
177
177
  },
178
178
  {
179
179
  name: "Columns",
180
- icon: Ft,
181
- element: /* @__PURE__ */ k(me, { is: It, canvas: !0, children: [
180
+ icon: $t,
181
+ element: /* @__PURE__ */ M(me, { is: It, canvas: !0, children: [
182
182
  /* @__PURE__ */ n(me, { is: Ee, canvas: !0 }),
183
183
  /* @__PURE__ */ n(me, { is: Ee, canvas: !0 })
184
184
  ] })
@@ -196,7 +196,7 @@ const Cr = Y("Video", [
196
196
  ], o = [
197
197
  {
198
198
  name: "Heading",
199
- icon: $t,
199
+ icon: Ft,
200
200
  element: /* @__PURE__ */ n(Dt, {})
201
201
  },
202
202
  {
@@ -207,12 +207,12 @@ const Cr = Y("Video", [
207
207
  {
208
208
  name: "Button",
209
209
  icon: Wt,
210
- element: /* @__PURE__ */ n(Lt, {})
210
+ element: /* @__PURE__ */ n(Vt, {})
211
211
  },
212
212
  {
213
213
  name: "Link",
214
214
  icon: kt,
215
- element: /* @__PURE__ */ n(Vt, {})
215
+ element: /* @__PURE__ */ n(Lt, {})
216
216
  }
217
217
  ], a = [
218
218
  {
@@ -236,24 +236,24 @@ const Cr = Y("Video", [
236
236
  icon: Yt,
237
237
  element: /* @__PURE__ */ n(zt, {})
238
238
  }
239
- ], s = (i, d) => /* @__PURE__ */ k("div", { className: "space-y-2", children: [
239
+ ], s = (i, c) => /* @__PURE__ */ M("div", { className: "space-y-2", children: [
240
240
  /* @__PURE__ */ n("span", { className: "text-xs text-muted-foreground/70", children: i }),
241
- /* @__PURE__ */ n("div", { className: "grid grid-cols-2 gap-1.5", children: d.map((c) => /* @__PURE__ */ k(
241
+ /* @__PURE__ */ n("div", { className: "grid grid-cols-2 gap-1.5", children: c.map((d) => /* @__PURE__ */ M(
242
242
  Ae,
243
243
  {
244
244
  variant: "outline",
245
245
  size: "sm",
246
246
  className: "flex flex-col items-center justify-center h-14 cursor-grab active:cursor-grabbing text-muted-foreground hover:text-foreground",
247
- ref: (u) => u && e.create(u, c.element),
247
+ ref: (u) => u && e.create(u, d.element),
248
248
  children: [
249
- /* @__PURE__ */ n(c.icon, { className: "h-4 w-4 mb-1" }),
250
- /* @__PURE__ */ n("span", { className: "text-[10px]", children: c.name })
249
+ /* @__PURE__ */ n(d.icon, { className: "h-4 w-4 mb-1" }),
250
+ /* @__PURE__ */ n("span", { className: "text-[10px]", children: d.name })
251
251
  ]
252
252
  },
253
- c.name
253
+ d.name
254
254
  )) })
255
255
  ] });
256
- return /* @__PURE__ */ k("div", { className: "space-y-4", children: [
256
+ return /* @__PURE__ */ M("div", { className: "space-y-4", children: [
257
257
  /* @__PURE__ */ n("h3", { className: "text-sm font-medium text-muted-foreground", children: "Components" }),
258
258
  s("Layout", t),
259
259
  s("Basic", o),
@@ -261,18 +261,18 @@ const Cr = Y("Video", [
261
261
  s("Utility", r)
262
262
  ] });
263
263
  };
264
- var Er = m.createContext(void 0);
264
+ var Nr = m.createContext(void 0);
265
265
  function at(e) {
266
- const t = m.useContext(Er);
266
+ const t = m.useContext(Nr);
267
267
  return e || t || "ltr";
268
268
  }
269
- function Nr(e, [t, o]) {
269
+ function Tr(e, [t, o]) {
270
270
  return Math.min(o, Math.max(t, e));
271
271
  }
272
- function Tr(e, t) {
272
+ function Rr(e, t) {
273
273
  return m.useReducer((o, a) => t[o][a] ?? o, e);
274
274
  }
275
- var nt = "ScrollArea", [Zt] = _e(nt), [Rr, X] = Zt(nt), Xt = m.forwardRef(
275
+ var nt = "ScrollArea", [Zt] = _e(nt), [Pr, X] = Zt(nt), Xt = m.forwardRef(
276
276
  (e, t) => {
277
277
  const {
278
278
  __scopeScrollArea: o,
@@ -280,40 +280,40 @@ var nt = "ScrollArea", [Zt] = _e(nt), [Rr, X] = Zt(nt), Xt = m.forwardRef(
280
280
  dir: r,
281
281
  scrollHideDelay: s = 600,
282
282
  ...i
283
- } = e, [d, c] = m.useState(null), [u, f] = m.useState(null), [h, g] = m.useState(null), [l, N] = m.useState(null), [v, b] = m.useState(null), [E, S] = m.useState(0), [x, T] = m.useState(0), [B, R] = m.useState(!1), [D, A] = m.useState(!1), I = re(t, (O) => c(O)), z = at(r);
283
+ } = e, [c, d] = m.useState(null), [u, f] = m.useState(null), [h, g] = m.useState(null), [l, N] = m.useState(null), [v, b] = m.useState(null), [S, C] = m.useState(0), [w, T] = m.useState(0), [_, R] = m.useState(!1), [k, D] = m.useState(!1), P = re(t, (O) => d(O)), V = at(r);
284
284
  return /* @__PURE__ */ n(
285
- Rr,
285
+ Pr,
286
286
  {
287
287
  scope: o,
288
288
  type: a,
289
- dir: z,
289
+ dir: V,
290
290
  scrollHideDelay: s,
291
- scrollArea: d,
291
+ scrollArea: c,
292
292
  viewport: u,
293
293
  onViewportChange: f,
294
294
  content: h,
295
295
  onContentChange: g,
296
296
  scrollbarX: l,
297
297
  onScrollbarXChange: N,
298
- scrollbarXEnabled: B,
298
+ scrollbarXEnabled: _,
299
299
  onScrollbarXEnabledChange: R,
300
300
  scrollbarY: v,
301
301
  onScrollbarYChange: b,
302
- scrollbarYEnabled: D,
303
- onScrollbarYEnabledChange: A,
304
- onCornerWidthChange: S,
302
+ scrollbarYEnabled: k,
303
+ onScrollbarYEnabledChange: D,
304
+ onCornerWidthChange: C,
305
305
  onCornerHeightChange: T,
306
306
  children: /* @__PURE__ */ n(
307
307
  te.div,
308
308
  {
309
- dir: z,
309
+ dir: V,
310
310
  ...i,
311
- ref: I,
311
+ ref: P,
312
312
  style: {
313
313
  position: "relative",
314
314
  // Pass corner sizes as CSS vars to reduce re-renders of context consumers
315
- "--radix-scroll-area-corner-width": E + "px",
316
- "--radix-scroll-area-corner-height": x + "px",
315
+ "--radix-scroll-area-corner-width": S + "px",
316
+ "--radix-scroll-area-corner-height": w + "px",
317
317
  ...e.style
318
318
  }
319
319
  }
@@ -325,8 +325,8 @@ var nt = "ScrollArea", [Zt] = _e(nt), [Rr, X] = Zt(nt), Xt = m.forwardRef(
325
325
  Xt.displayName = nt;
326
326
  var Kt = "ScrollAreaViewport", qt = m.forwardRef(
327
327
  (e, t) => {
328
- const { __scopeScrollArea: o, children: a, nonce: r, ...s } = e, i = X(Kt, o), d = m.useRef(null), c = re(t, d, i.onViewportChange);
329
- return /* @__PURE__ */ k(ot, { children: [
328
+ const { __scopeScrollArea: o, children: a, nonce: r, ...s } = e, i = X(Kt, o), c = m.useRef(null), d = re(t, c, i.onViewportChange);
329
+ return /* @__PURE__ */ M(ot, { children: [
330
330
  /* @__PURE__ */ n(
331
331
  "style",
332
332
  {
@@ -341,7 +341,7 @@ var Kt = "ScrollAreaViewport", qt = m.forwardRef(
341
341
  {
342
342
  "data-radix-scroll-area-viewport": "",
343
343
  ...s,
344
- ref: c,
344
+ ref: d,
345
345
  style: {
346
346
  /**
347
347
  * We don't support `visible` because the intention is to have at least one scrollbar
@@ -367,26 +367,26 @@ var Kt = "ScrollAreaViewport", qt = m.forwardRef(
367
367
  qt.displayName = Kt;
368
368
  var oe = "ScrollAreaScrollbar", st = m.forwardRef(
369
369
  (e, t) => {
370
- const { forceMount: o, ...a } = e, r = X(oe, e.__scopeScrollArea), { onScrollbarXEnabledChange: s, onScrollbarYEnabledChange: i } = r, d = e.orientation === "horizontal";
371
- return m.useEffect(() => (d ? s(!0) : i(!0), () => {
372
- d ? s(!1) : i(!1);
373
- }), [d, s, i]), r.type === "hover" ? /* @__PURE__ */ n(Pr, { ...a, ref: t, forceMount: o }) : r.type === "scroll" ? /* @__PURE__ */ n(kr, { ...a, ref: t, forceMount: o }) : r.type === "auto" ? /* @__PURE__ */ n(Qt, { ...a, ref: t, forceMount: o }) : r.type === "always" ? /* @__PURE__ */ n(lt, { ...a, ref: t }) : null;
370
+ const { forceMount: o, ...a } = e, r = X(oe, e.__scopeScrollArea), { onScrollbarXEnabledChange: s, onScrollbarYEnabledChange: i } = r, c = e.orientation === "horizontal";
371
+ return m.useEffect(() => (c ? s(!0) : i(!0), () => {
372
+ c ? s(!1) : i(!1);
373
+ }), [c, s, i]), r.type === "hover" ? /* @__PURE__ */ n(kr, { ...a, ref: t, forceMount: o }) : r.type === "scroll" ? /* @__PURE__ */ n(Ir, { ...a, ref: t, forceMount: o }) : r.type === "auto" ? /* @__PURE__ */ n(Qt, { ...a, ref: t, forceMount: o }) : r.type === "always" ? /* @__PURE__ */ n(lt, { ...a, ref: t }) : null;
374
374
  }
375
375
  );
376
376
  st.displayName = oe;
377
- var Pr = m.forwardRef((e, t) => {
377
+ var kr = m.forwardRef((e, t) => {
378
378
  const { forceMount: o, ...a } = e, r = X(oe, e.__scopeScrollArea), [s, i] = m.useState(!1);
379
379
  return m.useEffect(() => {
380
- const d = r.scrollArea;
381
- let c = 0;
382
- if (d) {
380
+ const c = r.scrollArea;
381
+ let d = 0;
382
+ if (c) {
383
383
  const u = () => {
384
- window.clearTimeout(c), i(!0);
384
+ window.clearTimeout(d), i(!0);
385
385
  }, f = () => {
386
- c = window.setTimeout(() => i(!1), r.scrollHideDelay);
386
+ d = window.setTimeout(() => i(!1), r.scrollHideDelay);
387
387
  };
388
- return d.addEventListener("pointerenter", u), d.addEventListener("pointerleave", f), () => {
389
- window.clearTimeout(c), d.removeEventListener("pointerenter", u), d.removeEventListener("pointerleave", f);
388
+ return c.addEventListener("pointerenter", u), c.addEventListener("pointerleave", f), () => {
389
+ window.clearTimeout(d), c.removeEventListener("pointerenter", u), c.removeEventListener("pointerleave", f);
390
390
  };
391
391
  }
392
392
  }, [r.scrollArea, r.scrollHideDelay]), /* @__PURE__ */ n(Be, { present: o || s, children: /* @__PURE__ */ n(
@@ -397,8 +397,8 @@ var Pr = m.forwardRef((e, t) => {
397
397
  ref: t
398
398
  }
399
399
  ) });
400
- }), kr = m.forwardRef((e, t) => {
401
- const { forceMount: o, ...a } = e, r = X(oe, e.__scopeScrollArea), s = e.orientation === "horizontal", i = $e(() => c("SCROLL_END"), 100), [d, c] = Tr("hidden", {
400
+ }), Ir = m.forwardRef((e, t) => {
401
+ const { forceMount: o, ...a } = e, r = X(oe, e.__scopeScrollArea), s = e.orientation === "horizontal", i = Fe(() => d("SCROLL_END"), 100), [c, d] = Rr("hidden", {
402
402
  hidden: {
403
403
  SCROLL: "scrolling"
404
404
  },
@@ -417,38 +417,38 @@ var Pr = m.forwardRef((e, t) => {
417
417
  }
418
418
  });
419
419
  return m.useEffect(() => {
420
- if (d === "idle") {
421
- const u = window.setTimeout(() => c("HIDE"), r.scrollHideDelay);
420
+ if (c === "idle") {
421
+ const u = window.setTimeout(() => d("HIDE"), r.scrollHideDelay);
422
422
  return () => window.clearTimeout(u);
423
423
  }
424
- }, [d, r.scrollHideDelay, c]), m.useEffect(() => {
424
+ }, [c, r.scrollHideDelay, d]), m.useEffect(() => {
425
425
  const u = r.viewport, f = s ? "scrollLeft" : "scrollTop";
426
426
  if (u) {
427
427
  let h = u[f];
428
428
  const g = () => {
429
429
  const l = u[f];
430
- h !== l && (c("SCROLL"), i()), h = l;
430
+ h !== l && (d("SCROLL"), i()), h = l;
431
431
  };
432
432
  return u.addEventListener("scroll", g), () => u.removeEventListener("scroll", g);
433
433
  }
434
- }, [r.viewport, s, c, i]), /* @__PURE__ */ n(Be, { present: o || d !== "hidden", children: /* @__PURE__ */ n(
434
+ }, [r.viewport, s, d, i]), /* @__PURE__ */ n(Be, { present: o || c !== "hidden", children: /* @__PURE__ */ n(
435
435
  lt,
436
436
  {
437
- "data-state": d === "hidden" ? "hidden" : "visible",
437
+ "data-state": c === "hidden" ? "hidden" : "visible",
438
438
  ...a,
439
439
  ref: t,
440
- onPointerEnter: W(e.onPointerEnter, () => c("POINTER_ENTER")),
441
- onPointerLeave: W(e.onPointerLeave, () => c("POINTER_LEAVE"))
440
+ onPointerEnter: W(e.onPointerEnter, () => d("POINTER_ENTER")),
441
+ onPointerLeave: W(e.onPointerLeave, () => d("POINTER_LEAVE"))
442
442
  }
443
443
  ) });
444
444
  }), Qt = m.forwardRef((e, t) => {
445
- const o = X(oe, e.__scopeScrollArea), { forceMount: a, ...r } = e, [s, i] = m.useState(!1), d = e.orientation === "horizontal", c = $e(() => {
445
+ const o = X(oe, e.__scopeScrollArea), { forceMount: a, ...r } = e, [s, i] = m.useState(!1), c = e.orientation === "horizontal", d = Fe(() => {
446
446
  if (o.viewport) {
447
447
  const u = o.viewport.offsetWidth < o.viewport.scrollWidth, f = o.viewport.offsetHeight < o.viewport.scrollHeight;
448
- i(d ? u : f);
448
+ i(c ? u : f);
449
449
  }
450
450
  }, 10);
451
- return ye(o.viewport, c), ye(o.content, c), /* @__PURE__ */ n(Be, { present: a || s, children: /* @__PURE__ */ n(
451
+ return ye(o.viewport, d), ye(o.content, d), /* @__PURE__ */ n(Be, { present: a || s, children: /* @__PURE__ */ n(
452
452
  lt,
453
453
  {
454
454
  "data-state": s ? "visible" : "hidden",
@@ -457,30 +457,30 @@ var Pr = m.forwardRef((e, t) => {
457
457
  }
458
458
  ) });
459
459
  }), lt = m.forwardRef((e, t) => {
460
- const { orientation: o = "vertical", ...a } = e, r = X(oe, e.__scopeScrollArea), s = m.useRef(null), i = m.useRef(0), [d, c] = m.useState({
460
+ const { orientation: o = "vertical", ...a } = e, r = X(oe, e.__scopeScrollArea), s = m.useRef(null), i = m.useRef(0), [c, d] = m.useState({
461
461
  content: 0,
462
462
  viewport: 0,
463
463
  scrollbar: { size: 0, paddingStart: 0, paddingEnd: 0 }
464
- }), u = ro(d.viewport, d.content), f = {
464
+ }), u = ro(c.viewport, c.content), f = {
465
465
  ...a,
466
- sizes: d,
467
- onSizesChange: c,
466
+ sizes: c,
467
+ onSizesChange: d,
468
468
  hasThumb: u > 0 && u < 1,
469
469
  onThumbChange: (g) => s.current = g,
470
470
  onThumbPointerUp: () => i.current = 0,
471
471
  onThumbPointerDown: (g) => i.current = g
472
472
  };
473
473
  function h(g, l) {
474
- return Vr(g, i.current, d, l);
474
+ return Hr(g, i.current, c, l);
475
475
  }
476
476
  return o === "horizontal" ? /* @__PURE__ */ n(
477
- Ir,
477
+ Mr,
478
478
  {
479
479
  ...f,
480
480
  ref: t,
481
481
  onThumbPositionChange: () => {
482
482
  if (r.viewport && s.current) {
483
- const g = r.viewport.scrollLeft, l = Et(g, d, r.dir);
483
+ const g = r.viewport.scrollLeft, l = Et(g, c, r.dir);
484
484
  s.current.style.transform = `translate3d(${l}px, 0, 0)`;
485
485
  }
486
486
  },
@@ -492,13 +492,13 @@ var Pr = m.forwardRef((e, t) => {
492
492
  }
493
493
  }
494
494
  ) : o === "vertical" ? /* @__PURE__ */ n(
495
- Mr,
495
+ Dr,
496
496
  {
497
497
  ...f,
498
498
  ref: t,
499
499
  onThumbPositionChange: () => {
500
500
  if (r.viewport && s.current) {
501
- const g = r.viewport.scrollTop, l = Et(g, d);
501
+ const g = r.viewport.scrollTop, l = Et(g, c);
502
502
  s.current.style.transform = `translate3d(0, ${l}px, 0)`;
503
503
  }
504
504
  },
@@ -510,11 +510,11 @@ var Pr = m.forwardRef((e, t) => {
510
510
  }
511
511
  }
512
512
  ) : null;
513
- }), Ir = m.forwardRef((e, t) => {
514
- const { sizes: o, onSizesChange: a, ...r } = e, s = X(oe, e.__scopeScrollArea), [i, d] = m.useState(), c = m.useRef(null), u = re(t, c, s.onScrollbarXChange);
513
+ }), Mr = m.forwardRef((e, t) => {
514
+ const { sizes: o, onSizesChange: a, ...r } = e, s = X(oe, e.__scopeScrollArea), [i, c] = m.useState(), d = m.useRef(null), u = re(t, d, s.onScrollbarXChange);
515
515
  return m.useEffect(() => {
516
- c.current && d(getComputedStyle(c.current));
517
- }, [c]), /* @__PURE__ */ n(
516
+ d.current && c(getComputedStyle(d.current));
517
+ }, [d]), /* @__PURE__ */ n(
518
518
  eo,
519
519
  {
520
520
  "data-orientation": "horizontal",
@@ -525,7 +525,7 @@ var Pr = m.forwardRef((e, t) => {
525
525
  bottom: 0,
526
526
  left: s.dir === "rtl" ? "var(--radix-scroll-area-corner-width)" : 0,
527
527
  right: s.dir === "ltr" ? "var(--radix-scroll-area-corner-width)" : 0,
528
- "--radix-scroll-area-thumb-width": Fe(o) + "px",
528
+ "--radix-scroll-area-thumb-width": $e(o) + "px",
529
529
  ...e.style
530
530
  },
531
531
  onThumbPointerDown: (f) => e.onThumbPointerDown(f.x),
@@ -537,23 +537,23 @@ var Pr = m.forwardRef((e, t) => {
537
537
  }
538
538
  },
539
539
  onResize: () => {
540
- c.current && s.viewport && i && a({
540
+ d.current && s.viewport && i && a({
541
541
  content: s.viewport.scrollWidth,
542
542
  viewport: s.viewport.offsetWidth,
543
543
  scrollbar: {
544
- size: c.current.clientWidth,
545
- paddingStart: Ve(i.paddingLeft),
546
- paddingEnd: Ve(i.paddingRight)
544
+ size: d.current.clientWidth,
545
+ paddingStart: Le(i.paddingLeft),
546
+ paddingEnd: Le(i.paddingRight)
547
547
  }
548
548
  });
549
549
  }
550
550
  }
551
551
  );
552
- }), Mr = m.forwardRef((e, t) => {
553
- const { sizes: o, onSizesChange: a, ...r } = e, s = X(oe, e.__scopeScrollArea), [i, d] = m.useState(), c = m.useRef(null), u = re(t, c, s.onScrollbarYChange);
552
+ }), Dr = m.forwardRef((e, t) => {
553
+ const { sizes: o, onSizesChange: a, ...r } = e, s = X(oe, e.__scopeScrollArea), [i, c] = m.useState(), d = m.useRef(null), u = re(t, d, s.onScrollbarYChange);
554
554
  return m.useEffect(() => {
555
- c.current && d(getComputedStyle(c.current));
556
- }, [c]), /* @__PURE__ */ n(
555
+ d.current && c(getComputedStyle(d.current));
556
+ }, [d]), /* @__PURE__ */ n(
557
557
  eo,
558
558
  {
559
559
  "data-orientation": "vertical",
@@ -565,7 +565,7 @@ var Pr = m.forwardRef((e, t) => {
565
565
  right: s.dir === "ltr" ? 0 : void 0,
566
566
  left: s.dir === "rtl" ? 0 : void 0,
567
567
  bottom: "var(--radix-scroll-area-corner-height)",
568
- "--radix-scroll-area-thumb-height": Fe(o) + "px",
568
+ "--radix-scroll-area-thumb-height": $e(o) + "px",
569
569
  ...e.style
570
570
  },
571
571
  onThumbPointerDown: (f) => e.onThumbPointerDown(f.y),
@@ -577,46 +577,46 @@ var Pr = m.forwardRef((e, t) => {
577
577
  }
578
578
  },
579
579
  onResize: () => {
580
- c.current && s.viewport && i && a({
580
+ d.current && s.viewport && i && a({
581
581
  content: s.viewport.scrollHeight,
582
582
  viewport: s.viewport.offsetHeight,
583
583
  scrollbar: {
584
- size: c.current.clientHeight,
585
- paddingStart: Ve(i.paddingTop),
586
- paddingEnd: Ve(i.paddingBottom)
584
+ size: d.current.clientHeight,
585
+ paddingStart: Le(i.paddingTop),
586
+ paddingEnd: Le(i.paddingBottom)
587
587
  }
588
588
  });
589
589
  }
590
590
  }
591
591
  );
592
- }), [Dr, Jt] = Zt(oe), eo = m.forwardRef((e, t) => {
592
+ }), [Ar, Jt] = Zt(oe), eo = m.forwardRef((e, t) => {
593
593
  const {
594
594
  __scopeScrollArea: o,
595
595
  sizes: a,
596
596
  hasThumb: r,
597
597
  onThumbChange: s,
598
598
  onThumbPointerUp: i,
599
- onThumbPointerDown: d,
600
- onThumbPositionChange: c,
599
+ onThumbPointerDown: c,
600
+ onThumbPositionChange: d,
601
601
  onDragScroll: u,
602
602
  onWheelScroll: f,
603
603
  onResize: h,
604
604
  ...g
605
- } = e, l = X(oe, o), [N, v] = m.useState(null), b = re(t, (I) => v(I)), E = m.useRef(null), S = m.useRef(""), x = l.viewport, T = a.content - a.viewport, B = ie(f), R = ie(c), D = $e(h, 10);
606
- function A(I) {
607
- if (E.current) {
608
- const z = I.clientX - E.current.left, O = I.clientY - E.current.top;
609
- u({ x: z, y: O });
605
+ } = e, l = X(oe, o), [N, v] = m.useState(null), b = re(t, (P) => v(P)), S = m.useRef(null), C = m.useRef(""), w = l.viewport, T = a.content - a.viewport, _ = ie(f), R = ie(d), k = Fe(h, 10);
606
+ function D(P) {
607
+ if (S.current) {
608
+ const V = P.clientX - S.current.left, O = P.clientY - S.current.top;
609
+ u({ x: V, y: O });
610
610
  }
611
611
  }
612
612
  return m.useEffect(() => {
613
- const I = (z) => {
614
- const O = z.target;
615
- (N == null ? void 0 : N.contains(O)) && B(z, T);
613
+ const P = (V) => {
614
+ const O = V.target;
615
+ (N == null ? void 0 : N.contains(O)) && _(V, T);
616
616
  };
617
- return document.addEventListener("wheel", I, { passive: !1 }), () => document.removeEventListener("wheel", I, { passive: !1 });
618
- }, [x, N, T, B]), m.useEffect(R, [a, R]), ye(N, D), ye(l.content, D), /* @__PURE__ */ n(
619
- Dr,
617
+ return document.addEventListener("wheel", P, { passive: !1 }), () => document.removeEventListener("wheel", P, { passive: !1 });
618
+ }, [w, N, T, _]), m.useEffect(R, [a, R]), ye(N, k), ye(l.content, k), /* @__PURE__ */ n(
619
+ Ar,
620
620
  {
621
621
  scope: o,
622
622
  scrollbar: N,
@@ -624,36 +624,36 @@ var Pr = m.forwardRef((e, t) => {
624
624
  onThumbChange: ie(s),
625
625
  onThumbPointerUp: ie(i),
626
626
  onThumbPositionChange: R,
627
- onThumbPointerDown: ie(d),
627
+ onThumbPointerDown: ie(c),
628
628
  children: /* @__PURE__ */ n(
629
629
  te.div,
630
630
  {
631
631
  ...g,
632
632
  ref: b,
633
633
  style: { position: "absolute", ...g.style },
634
- onPointerDown: W(e.onPointerDown, (I) => {
635
- I.button === 0 && (I.target.setPointerCapture(I.pointerId), E.current = N.getBoundingClientRect(), S.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", l.viewport && (l.viewport.style.scrollBehavior = "auto"), A(I));
634
+ onPointerDown: W(e.onPointerDown, (P) => {
635
+ P.button === 0 && (P.target.setPointerCapture(P.pointerId), S.current = N.getBoundingClientRect(), C.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", l.viewport && (l.viewport.style.scrollBehavior = "auto"), D(P));
636
636
  }),
637
- onPointerMove: W(e.onPointerMove, A),
638
- onPointerUp: W(e.onPointerUp, (I) => {
639
- const z = I.target;
640
- z.hasPointerCapture(I.pointerId) && z.releasePointerCapture(I.pointerId), document.body.style.webkitUserSelect = S.current, l.viewport && (l.viewport.style.scrollBehavior = ""), E.current = null;
637
+ onPointerMove: W(e.onPointerMove, D),
638
+ onPointerUp: W(e.onPointerUp, (P) => {
639
+ const V = P.target;
640
+ V.hasPointerCapture(P.pointerId) && V.releasePointerCapture(P.pointerId), document.body.style.webkitUserSelect = C.current, l.viewport && (l.viewport.style.scrollBehavior = ""), S.current = null;
641
641
  })
642
642
  }
643
643
  )
644
644
  }
645
645
  );
646
- }), Le = "ScrollAreaThumb", to = m.forwardRef(
646
+ }), Ve = "ScrollAreaThumb", to = m.forwardRef(
647
647
  (e, t) => {
648
- const { forceMount: o, ...a } = e, r = Jt(Le, e.__scopeScrollArea);
649
- return /* @__PURE__ */ n(Be, { present: o || r.hasThumb, children: /* @__PURE__ */ n(Ar, { ref: t, ...a }) });
648
+ const { forceMount: o, ...a } = e, r = Jt(Ve, e.__scopeScrollArea);
649
+ return /* @__PURE__ */ n(Be, { present: o || r.hasThumb, children: /* @__PURE__ */ n(Vr, { ref: t, ...a }) });
650
650
  }
651
- ), Ar = m.forwardRef(
651
+ ), Vr = m.forwardRef(
652
652
  (e, t) => {
653
- const { __scopeScrollArea: o, style: a, ...r } = e, s = X(Le, o), i = Jt(Le, o), { onThumbPositionChange: d } = i, c = re(
653
+ const { __scopeScrollArea: o, style: a, ...r } = e, s = X(Ve, o), i = Jt(Ve, o), { onThumbPositionChange: c } = i, d = re(
654
654
  t,
655
655
  (h) => i.onThumbChange(h)
656
- ), u = m.useRef(void 0), f = $e(() => {
656
+ ), u = m.useRef(void 0), f = Fe(() => {
657
657
  u.current && (u.current(), u.current = void 0);
658
658
  }, 100);
659
659
  return m.useEffect(() => {
@@ -661,18 +661,18 @@ var Pr = m.forwardRef((e, t) => {
661
661
  if (h) {
662
662
  const g = () => {
663
663
  if (f(), !u.current) {
664
- const l = Hr(h, d);
665
- u.current = l, d();
664
+ const l = _r(h, c);
665
+ u.current = l, c();
666
666
  }
667
667
  };
668
- return d(), h.addEventListener("scroll", g), () => h.removeEventListener("scroll", g);
668
+ return c(), h.addEventListener("scroll", g), () => h.removeEventListener("scroll", g);
669
669
  }
670
- }, [s.viewport, f, d]), /* @__PURE__ */ n(
670
+ }, [s.viewport, f, c]), /* @__PURE__ */ n(
671
671
  te.div,
672
672
  {
673
673
  "data-state": i.hasThumb ? "visible" : "hidden",
674
674
  ...r,
675
- ref: c,
675
+ ref: d,
676
676
  style: {
677
677
  width: "var(--radix-scroll-area-thumb-width)",
678
678
  height: "var(--radix-scroll-area-thumb-height)",
@@ -687,7 +687,7 @@ var Pr = m.forwardRef((e, t) => {
687
687
  );
688
688
  }
689
689
  );
690
- to.displayName = Le;
690
+ to.displayName = Ve;
691
691
  var it = "ScrollAreaCorner", oo = m.forwardRef(
692
692
  (e, t) => {
693
693
  const o = X(it, e.__scopeScrollArea), a = !!(o.scrollbarX && o.scrollbarY);
@@ -696,11 +696,11 @@ var it = "ScrollAreaCorner", oo = m.forwardRef(
696
696
  );
697
697
  oo.displayName = it;
698
698
  var Lr = m.forwardRef((e, t) => {
699
- const { __scopeScrollArea: o, ...a } = e, r = X(it, o), [s, i] = m.useState(0), [d, c] = m.useState(0), u = !!(s && d);
699
+ const { __scopeScrollArea: o, ...a } = e, r = X(it, o), [s, i] = m.useState(0), [c, d] = m.useState(0), u = !!(s && c);
700
700
  return ye(r.scrollbarX, () => {
701
701
  var h;
702
702
  const f = ((h = r.scrollbarX) == null ? void 0 : h.offsetHeight) || 0;
703
- r.onCornerHeightChange(f), c(f);
703
+ r.onCornerHeightChange(f), d(f);
704
704
  }), ye(r.scrollbarY, () => {
705
705
  var h;
706
706
  const f = ((h = r.scrollbarY) == null ? void 0 : h.offsetWidth) || 0;
@@ -712,7 +712,7 @@ var Lr = m.forwardRef((e, t) => {
712
712
  ref: t,
713
713
  style: {
714
714
  width: s,
715
- height: d,
715
+ height: c,
716
716
  position: "absolute",
717
717
  right: r.dir === "ltr" ? 0 : void 0,
718
718
  left: r.dir === "rtl" ? 0 : void 0,
@@ -722,24 +722,24 @@ var Lr = m.forwardRef((e, t) => {
722
722
  }
723
723
  ) : null;
724
724
  });
725
- function Ve(e) {
725
+ function Le(e) {
726
726
  return e ? parseInt(e, 10) : 0;
727
727
  }
728
728
  function ro(e, t) {
729
729
  const o = e / t;
730
730
  return isNaN(o) ? 0 : o;
731
731
  }
732
- function Fe(e) {
732
+ function $e(e) {
733
733
  const t = ro(e.viewport, e.content), o = e.scrollbar.paddingStart + e.scrollbar.paddingEnd, a = (e.scrollbar.size - o) * t;
734
734
  return Math.max(a, 18);
735
735
  }
736
- function Vr(e, t, o, a = "ltr") {
737
- const r = Fe(o), s = r / 2, i = t || s, d = r - i, c = o.scrollbar.paddingStart + i, u = o.scrollbar.size - o.scrollbar.paddingEnd - d, f = o.content - o.viewport, h = a === "ltr" ? [0, f] : [f * -1, 0];
738
- return ao([c, u], h)(e);
736
+ function Hr(e, t, o, a = "ltr") {
737
+ const r = $e(o), s = r / 2, i = t || s, c = r - i, d = o.scrollbar.paddingStart + i, u = o.scrollbar.size - o.scrollbar.paddingEnd - c, f = o.content - o.viewport, h = a === "ltr" ? [0, f] : [f * -1, 0];
738
+ return ao([d, u], h)(e);
739
739
  }
740
740
  function Et(e, t, o = "ltr") {
741
- const a = Fe(t), r = t.scrollbar.paddingStart + t.scrollbar.paddingEnd, s = t.scrollbar.size - r, i = t.content - t.viewport, d = s - a, c = o === "ltr" ? [0, i] : [i * -1, 0], u = Nr(e, c);
742
- return ao([0, i], [0, d])(u);
741
+ const a = $e(t), r = t.scrollbar.paddingStart + t.scrollbar.paddingEnd, s = t.scrollbar.size - r, i = t.content - t.viewport, c = s - a, d = o === "ltr" ? [0, i] : [i * -1, 0], u = Tr(e, d);
742
+ return ao([0, i], [0, c])(u);
743
743
  }
744
744
  function ao(e, t) {
745
745
  return (o) => {
@@ -751,15 +751,15 @@ function ao(e, t) {
751
751
  function no(e, t) {
752
752
  return e > 0 && e < t;
753
753
  }
754
- var Hr = (e, t = () => {
754
+ var _r = (e, t = () => {
755
755
  }) => {
756
756
  let o = { left: e.scrollLeft, top: e.scrollTop }, a = 0;
757
757
  return function r() {
758
- const s = { left: e.scrollLeft, top: e.scrollTop }, i = o.left !== s.left, d = o.top !== s.top;
759
- (i || d) && t(), o = s, a = window.requestAnimationFrame(r);
758
+ const s = { left: e.scrollLeft, top: e.scrollTop }, i = o.left !== s.left, c = o.top !== s.top;
759
+ (i || c) && t(), o = s, a = window.requestAnimationFrame(r);
760
760
  }(), () => window.cancelAnimationFrame(a);
761
761
  };
762
- function $e(e, t) {
762
+ function Fe(e, t) {
763
763
  const o = ie(e), a = m.useRef(0);
764
764
  return m.useEffect(() => () => window.clearTimeout(a.current), []), m.useCallback(() => {
765
765
  window.clearTimeout(a.current), a.current = window.setTimeout(o, t);
@@ -779,11 +779,11 @@ function ye(e, t) {
779
779
  }
780
780
  }, [e, o]);
781
781
  }
782
- var so = Xt, _r = qt, Br = oo;
783
- const ct = m.forwardRef(({ className: e, children: t, ...o }, a) => /* @__PURE__ */ k(so, { ref: a, className: Re("relative overflow-hidden", e), ...o, children: [
784
- /* @__PURE__ */ n(_r, { className: "h-full w-full rounded-[inherit]", children: t }),
782
+ var so = Xt, Br = qt, zr = oo;
783
+ const ct = m.forwardRef(({ className: e, children: t, ...o }, a) => /* @__PURE__ */ M(so, { ref: a, className: Re("relative overflow-hidden", e), ...o, children: [
784
+ /* @__PURE__ */ n(Br, { className: "h-full w-full rounded-[inherit]", children: t }),
785
785
  /* @__PURE__ */ n(lo, {}),
786
- /* @__PURE__ */ n(Br, {})
786
+ /* @__PURE__ */ n(zr, {})
787
787
  ] }));
788
788
  ct.displayName = so.displayName;
789
789
  const lo = m.forwardRef(({ className: e, orientation: t = "vertical", ...o }, a) => /* @__PURE__ */ n(
@@ -802,21 +802,21 @@ const lo = m.forwardRef(({ className: e, orientation: t = "vertical", ...o }, a)
802
802
  }
803
803
  ));
804
804
  lo.displayName = st.displayName;
805
- const zr = () => {
805
+ const Or = () => {
806
806
  const { selected: e, actions: t } = we((o) => {
807
- var s, i, d, c, u, f, h;
807
+ var s, i, c, d, u, f, h;
808
808
  const a = o.events.selected ? Array.from(o.events.selected)[0] : null;
809
809
  let r;
810
810
  return a && (r = {
811
811
  id: a,
812
- name: ((i = (s = o.nodes[a]) == null ? void 0 : s.data) == null ? void 0 : i.displayName) || ((c = (d = o.nodes[a]) == null ? void 0 : d.data) == null ? void 0 : c.name),
812
+ name: ((i = (s = o.nodes[a]) == null ? void 0 : s.data) == null ? void 0 : i.displayName) || ((d = (c = o.nodes[a]) == null ? void 0 : c.data) == null ? void 0 : d.name),
813
813
  settings: (f = (u = o.nodes[a]) == null ? void 0 : u.related) == null ? void 0 : f.settings,
814
814
  isDeletable: ((h = o.nodes[a]) == null ? void 0 : h.id) !== "ROOT"
815
815
  }), { selected: r };
816
816
  });
817
- return /* @__PURE__ */ n("div", { className: "h-full flex flex-col", children: e ? /* @__PURE__ */ k(ot, { children: [
818
- /* @__PURE__ */ k("div", { className: "flex items-center justify-between pb-3 border-b border-border mb-3", children: [
819
- /* @__PURE__ */ k("div", { children: [
817
+ return /* @__PURE__ */ n("div", { className: "h-full flex flex-col", children: e ? /* @__PURE__ */ M(ot, { children: [
818
+ /* @__PURE__ */ M("div", { className: "flex items-center justify-between pb-3 border-b border-border mb-3", children: [
819
+ /* @__PURE__ */ M("div", { children: [
820
820
  /* @__PURE__ */ n("span", { className: "text-xs text-muted-foreground", children: "Selected" }),
821
821
  /* @__PURE__ */ n("h3", { className: "text-sm font-semibold", children: e.name })
822
822
  ] }),
@@ -826,20 +826,20 @@ const zr = () => {
826
826
  onClick: () => t.delete(e.id),
827
827
  className: "p-1.5 rounded hover:bg-destructive/10 text-destructive transition-colors",
828
828
  title: "Delete element",
829
- children: /* @__PURE__ */ n(wr, { className: "h-4 w-4" })
829
+ children: /* @__PURE__ */ n(xr, { className: "h-4 w-4" })
830
830
  }
831
831
  )
832
832
  ] }),
833
833
  /* @__PURE__ */ n(ct, { className: "flex-1 -mr-4 pr-4", children: e.settings && p.createElement(e.settings) })
834
834
  ] }) : /* @__PURE__ */ n("div", { className: "text-center py-8", children: /* @__PURE__ */ n("p", { className: "text-sm text-muted-foreground", children: "Select an element to edit its properties" }) }) });
835
- }, Or = (e) => {
835
+ }, $r = (e) => {
836
836
  switch (e) {
837
837
  case "Container":
838
838
  return Ne;
839
839
  case "Text":
840
840
  return Ut;
841
841
  case "Heading":
842
- return $t;
842
+ return Ft;
843
843
  case "Button":
844
844
  return Wt;
845
845
  case "Image":
@@ -849,74 +849,74 @@ const zr = () => {
849
849
  case "Spacer":
850
850
  return Yt;
851
851
  case "Video":
852
- return Cr;
852
+ return Sr;
853
853
  case "Columns":
854
- return Ft;
854
+ return $t;
855
855
  case "Link":
856
856
  return kt;
857
857
  default:
858
858
  return Ne;
859
859
  }
860
860
  }, io = ({ nodeId: e, depth: t = 0, onDragStart: o, onDragOver: a, onDrop: r, draggedId: s }) => {
861
- const { node: i, actions: d, selectedNodeId: c, childNodes: u, parentId: f } = we((C, de) => {
862
- var ue, w;
863
- const $ = C.nodes[e], ae = ((ue = $ == null ? void 0 : $.data) == null ? void 0 : ue.nodes) || [], F = C.events.selected ? Array.from(C.events.selected)[0] : null, K = (w = $ == null ? void 0 : $.data) == null ? void 0 : w.parent;
861
+ const { node: i, actions: c, selectedNodeId: d, childNodes: u, parentId: f } = we((E, de) => {
862
+ var ue, x;
863
+ const F = E.nodes[e], ae = ((ue = F == null ? void 0 : F.data) == null ? void 0 : ue.nodes) || [], $ = E.events.selected ? Array.from(E.events.selected)[0] : null, K = (x = F == null ? void 0 : F.data) == null ? void 0 : x.parent;
864
864
  return {
865
- node: $,
865
+ node: F,
866
866
  childNodes: ae,
867
- selectedNodeId: F,
867
+ selectedNodeId: $,
868
868
  parentId: K
869
869
  };
870
870
  }), [h, g] = Te(!0), [l, N] = Te(!1);
871
871
  if (!i) return null;
872
- const v = i.data.displayName || i.data.name || "Unknown", b = u.length > 0, E = c === e, S = e === "ROOT", x = Or(v), T = s === e, B = i.data.isCanvas, R = (C) => {
873
- C.stopPropagation(), S || d.selectNode(e);
874
- }, D = (C) => {
875
- C.stopPropagation(), g(!h);
876
- }, A = (C) => {
877
- if (S) {
878
- C.preventDefault();
872
+ const v = i.data.displayName || i.data.name || "Unknown", b = u.length > 0, S = d === e, C = e === "ROOT", w = $r(v), T = s === e, _ = i.data.isCanvas, R = (E) => {
873
+ E.stopPropagation(), C || c.selectNode(e);
874
+ }, k = (E) => {
875
+ E.stopPropagation(), g(!h);
876
+ }, D = (E) => {
877
+ if (C) {
878
+ E.preventDefault();
879
879
  return;
880
880
  }
881
- C.stopPropagation(), o(e, f);
882
- }, I = (C) => {
883
- C.preventDefault(), C.stopPropagation(), s && s !== e && B && N(!0);
884
- }, z = (C) => {
885
- C.stopPropagation(), N(!1);
886
- }, O = (C) => {
887
- C.preventDefault(), C.stopPropagation(), N(!1), s && s !== e && r(e);
881
+ E.stopPropagation(), o(e, f);
882
+ }, P = (E) => {
883
+ E.preventDefault(), E.stopPropagation(), s && s !== e && _ && N(!0);
884
+ }, V = (E) => {
885
+ E.stopPropagation(), N(!1);
886
+ }, O = (E) => {
887
+ E.preventDefault(), E.stopPropagation(), N(!1), s && s !== e && r(e);
888
888
  };
889
- return /* @__PURE__ */ k("div", { className: "select-none", children: [
890
- /* @__PURE__ */ k(
889
+ return /* @__PURE__ */ M("div", { className: "select-none", children: [
890
+ /* @__PURE__ */ M(
891
891
  "div",
892
892
  {
893
- className: `flex items-center gap-1 py-1 px-1 rounded cursor-pointer text-sm transition-colors ${E ? "bg-primary/10 text-primary" : "hover:bg-secondary/50"} ${T ? "opacity-50" : ""} ${l ? "bg-primary/20 ring-1 ring-primary" : ""}`,
893
+ className: `flex items-center gap-1 py-1 px-1 rounded cursor-pointer text-sm transition-colors ${S ? "bg-primary/10 text-primary" : "hover:bg-secondary/50"} ${T ? "opacity-50" : ""} ${l ? "bg-primary/20 ring-1 ring-primary" : ""}`,
894
894
  style: { paddingLeft: `${t * 12 + 4}px` },
895
895
  onClick: R,
896
- draggable: !S,
897
- onDragStart: A,
898
- onDragOver: I,
899
- onDragLeave: z,
896
+ draggable: !C,
897
+ onDragStart: D,
898
+ onDragOver: P,
899
+ onDragLeave: V,
900
900
  onDrop: O,
901
901
  children: [
902
- !S && /* @__PURE__ */ n(vr, { className: "h-3 w-3 text-muted-foreground/50 cursor-grab active:cursor-grabbing" }),
903
- b ? /* @__PURE__ */ n("button", { onClick: D, className: "p-0.5 hover:bg-secondary rounded", children: h ? /* @__PURE__ */ n(Ko, { className: "h-3 w-3" }) : /* @__PURE__ */ n(qo, { className: "h-3 w-3" }) }) : /* @__PURE__ */ n("span", { className: "w-4" }),
904
- /* @__PURE__ */ n(x, { className: "h-3.5 w-3.5 text-muted-foreground shrink-0" }),
905
- /* @__PURE__ */ n("span", { className: `truncate ${S ? "font-medium" : ""}`, children: S ? "Root" : v })
902
+ !C && /* @__PURE__ */ n(br, { className: "h-3 w-3 text-muted-foreground/50 cursor-grab active:cursor-grabbing" }),
903
+ b ? /* @__PURE__ */ n("button", { onClick: k, className: "p-0.5 hover:bg-secondary rounded", children: h ? /* @__PURE__ */ n(Ko, { className: "h-3 w-3" }) : /* @__PURE__ */ n(qo, { className: "h-3 w-3" }) }) : /* @__PURE__ */ n("span", { className: "w-4" }),
904
+ /* @__PURE__ */ n(w, { className: "h-3.5 w-3.5 text-muted-foreground shrink-0" }),
905
+ /* @__PURE__ */ n("span", { className: `truncate ${C ? "font-medium" : ""}`, children: C ? "Root" : v })
906
906
  ]
907
907
  }
908
908
  ),
909
- b && h && /* @__PURE__ */ n("div", { children: u.map((C) => /* @__PURE__ */ n(
909
+ b && h && /* @__PURE__ */ n("div", { children: u.map((E) => /* @__PURE__ */ n(
910
910
  io,
911
911
  {
912
- nodeId: C,
912
+ nodeId: E,
913
913
  depth: t + 1,
914
914
  onDragStart: o,
915
915
  onDragOver: a,
916
916
  onDrop: r,
917
917
  draggedId: s
918
918
  },
919
- C
919
+ E
920
920
  )) })
921
921
  ] });
922
922
  }, Fr = () => {
@@ -924,7 +924,7 @@ const zr = () => {
924
924
  nodeIds: Object.keys(u.nodes)
925
925
  })), i = (u, f) => {
926
926
  t(u), a(f);
927
- }, d = (u) => {
927
+ }, c = (u) => {
928
928
  if (e && u && e !== u)
929
929
  try {
930
930
  s.move(e, u, 0);
@@ -933,7 +933,7 @@ const zr = () => {
933
933
  }
934
934
  t(null), a(null);
935
935
  };
936
- return /* @__PURE__ */ k("div", { className: "space-y-2", onDragEnd: () => {
936
+ return /* @__PURE__ */ M("div", { className: "space-y-2", onDragEnd: () => {
937
937
  t(null), a(null);
938
938
  }, children: [
939
939
  /* @__PURE__ */ n("h3", { className: "text-sm font-medium text-muted-foreground", children: "Layers" }),
@@ -942,7 +942,7 @@ const zr = () => {
942
942
  {
943
943
  nodeId: "ROOT",
944
944
  onDragStart: i,
945
- onDrop: d,
945
+ onDrop: c,
946
946
  draggedId: e
947
947
  }
948
948
  ) }),
@@ -951,10 +951,10 @@ const zr = () => {
951
951
  };
952
952
  // @__NO_SIDE_EFFECTS__
953
953
  function Nt(e) {
954
- const t = /* @__PURE__ */ $r(e), o = m.forwardRef((a, r) => {
955
- const { children: s, ...i } = a, d = m.Children.toArray(s), c = d.find(Gr);
956
- if (c) {
957
- const u = c.props.children, f = d.map((h) => h === c ? m.Children.count(u) > 1 ? m.Children.only(null) : m.isValidElement(u) ? u.props.children : null : h);
954
+ const t = /* @__PURE__ */ jr(e), o = m.forwardRef((a, r) => {
955
+ const { children: s, ...i } = a, c = m.Children.toArray(s), d = c.find(Wr);
956
+ if (d) {
957
+ const u = d.props.children, f = c.map((h) => h === d ? m.Children.count(u) > 1 ? m.Children.only(null) : m.isValidElement(u) ? u.props.children : null : h);
958
958
  return /* @__PURE__ */ n(t, { ...i, ref: r, children: m.isValidElement(u) ? m.cloneElement(u, void 0, f) : null });
959
959
  }
960
960
  return /* @__PURE__ */ n(t, { ...i, ref: r, children: s });
@@ -962,68 +962,68 @@ function Nt(e) {
962
962
  return o.displayName = `${e}.Slot`, o;
963
963
  }
964
964
  // @__NO_SIDE_EFFECTS__
965
- function $r(e) {
965
+ function jr(e) {
966
966
  const t = m.forwardRef((o, a) => {
967
967
  const { children: r, ...s } = o;
968
968
  if (m.isValidElement(r)) {
969
- const i = Yr(r), d = Wr(s, r.props);
970
- return r.type !== m.Fragment && (d.ref = a ? Qo(a, i) : i), m.cloneElement(r, d);
969
+ const i = Ur(r), c = Yr(s, r.props);
970
+ return r.type !== m.Fragment && (c.ref = a ? Qo(a, i) : i), m.cloneElement(r, c);
971
971
  }
972
972
  return m.Children.count(r) > 1 ? m.Children.only(null) : null;
973
973
  });
974
974
  return t.displayName = `${e}.SlotClone`, t;
975
975
  }
976
- var jr = Symbol("radix.slottable");
977
- function Gr(e) {
978
- return m.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === jr;
976
+ var Gr = Symbol("radix.slottable");
977
+ function Wr(e) {
978
+ return m.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Gr;
979
979
  }
980
- function Wr(e, t) {
980
+ function Yr(e, t) {
981
981
  const o = { ...t };
982
982
  for (const a in t) {
983
983
  const r = e[a], s = t[a];
984
- /^on[A-Z]/.test(a) ? r && s ? o[a] = (...d) => {
985
- const c = s(...d);
986
- return r(...d), c;
984
+ /^on[A-Z]/.test(a) ? r && s ? o[a] = (...c) => {
985
+ const d = s(...c);
986
+ return r(...c), d;
987
987
  } : r && (o[a] = r) : a === "style" ? o[a] = { ...r, ...s } : a === "className" && (o[a] = [r, s].filter(Boolean).join(" "));
988
988
  }
989
989
  return { ...e, ...o };
990
990
  }
991
- function Yr(e) {
991
+ function Ur(e) {
992
992
  var a, r;
993
993
  let t = (a = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : a.get, o = t && "isReactWarning" in t && t.isReactWarning;
994
994
  return o ? e.ref : (t = (r = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : r.get, o = t && "isReactWarning" in t && t.isReactWarning, o ? e.props.ref : e.props.ref || e.ref);
995
995
  }
996
- function Ur(e) {
996
+ function Zr(e) {
997
997
  const t = e + "CollectionProvider", [o, a] = _e(t), [r, s] = o(
998
998
  t,
999
999
  { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
1000
1000
  ), i = (v) => {
1001
- const { scope: b, children: E } = v, S = p.useRef(null), x = p.useRef(/* @__PURE__ */ new Map()).current;
1002
- return /* @__PURE__ */ n(r, { scope: b, itemMap: x, collectionRef: S, children: E });
1001
+ const { scope: b, children: S } = v, C = p.useRef(null), w = p.useRef(/* @__PURE__ */ new Map()).current;
1002
+ return /* @__PURE__ */ n(r, { scope: b, itemMap: w, collectionRef: C, children: S });
1003
1003
  };
1004
1004
  i.displayName = t;
1005
- const d = e + "CollectionSlot", c = /* @__PURE__ */ Nt(d), u = p.forwardRef(
1005
+ const c = e + "CollectionSlot", d = /* @__PURE__ */ Nt(c), u = p.forwardRef(
1006
1006
  (v, b) => {
1007
- const { scope: E, children: S } = v, x = s(d, E), T = re(b, x.collectionRef);
1008
- return /* @__PURE__ */ n(c, { ref: T, children: S });
1007
+ const { scope: S, children: C } = v, w = s(c, S), T = re(b, w.collectionRef);
1008
+ return /* @__PURE__ */ n(d, { ref: T, children: C });
1009
1009
  }
1010
1010
  );
1011
- u.displayName = d;
1011
+ u.displayName = c;
1012
1012
  const f = e + "CollectionItemSlot", h = "data-radix-collection-item", g = /* @__PURE__ */ Nt(f), l = p.forwardRef(
1013
1013
  (v, b) => {
1014
- const { scope: E, children: S, ...x } = v, T = p.useRef(null), B = re(b, T), R = s(f, E);
1015
- return p.useEffect(() => (R.itemMap.set(T, { ref: T, ...x }), () => void R.itemMap.delete(T))), /* @__PURE__ */ n(g, { [h]: "", ref: B, children: S });
1014
+ const { scope: S, children: C, ...w } = v, T = p.useRef(null), _ = re(b, T), R = s(f, S);
1015
+ return p.useEffect(() => (R.itemMap.set(T, { ref: T, ...w }), () => void R.itemMap.delete(T))), /* @__PURE__ */ n(g, { [h]: "", ref: _, children: C });
1016
1016
  }
1017
1017
  );
1018
1018
  l.displayName = f;
1019
1019
  function N(v) {
1020
1020
  const b = s(e + "CollectionConsumer", v);
1021
1021
  return p.useCallback(() => {
1022
- const S = b.collectionRef.current;
1023
- if (!S) return [];
1024
- const x = Array.from(S.querySelectorAll(`[${h}]`));
1022
+ const C = b.collectionRef.current;
1023
+ if (!C) return [];
1024
+ const w = Array.from(C.querySelectorAll(`[${h}]`));
1025
1025
  return Array.from(b.itemMap.values()).sort(
1026
- (R, D) => x.indexOf(R.ref.current) - x.indexOf(D.ref.current)
1026
+ (R, k) => w.indexOf(R.ref.current) - w.indexOf(k.ref.current)
1027
1027
  );
1028
1028
  }, [b.collectionRef, b.itemMap]);
1029
1029
  }
@@ -1033,37 +1033,37 @@ function Ur(e) {
1033
1033
  a
1034
1034
  ];
1035
1035
  }
1036
- var Je = "rovingFocusGroup.onEntryFocus", Zr = { bubbles: !1, cancelable: !0 }, Pe = "RovingFocusGroup", [et, co, Xr] = Ur(Pe), [Kr, uo] = _e(
1036
+ var Je = "rovingFocusGroup.onEntryFocus", Xr = { bubbles: !1, cancelable: !0 }, Pe = "RovingFocusGroup", [et, co, Kr] = Zr(Pe), [qr, uo] = _e(
1037
1037
  Pe,
1038
- [Xr]
1039
- ), [qr, Qr] = Kr(Pe), fo = m.forwardRef(
1040
- (e, t) => /* @__PURE__ */ n(et.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ n(et.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ n(Jr, { ...e, ref: t }) }) })
1038
+ [Kr]
1039
+ ), [Qr, Jr] = qr(Pe), fo = m.forwardRef(
1040
+ (e, t) => /* @__PURE__ */ n(et.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ n(et.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ n(ea, { ...e, ref: t }) }) })
1041
1041
  );
1042
1042
  fo.displayName = Pe;
1043
- var Jr = m.forwardRef((e, t) => {
1043
+ var ea = m.forwardRef((e, t) => {
1044
1044
  const {
1045
1045
  __scopeRovingFocusGroup: o,
1046
1046
  orientation: a,
1047
1047
  loop: r = !1,
1048
1048
  dir: s,
1049
1049
  currentTabStopId: i,
1050
- defaultCurrentTabStopId: d,
1051
- onCurrentTabStopIdChange: c,
1050
+ defaultCurrentTabStopId: c,
1051
+ onCurrentTabStopIdChange: d,
1052
1052
  onEntryFocus: u,
1053
1053
  preventScrollOnEntryFocus: f = !1,
1054
1054
  ...h
1055
1055
  } = e, g = m.useRef(null), l = re(t, g), N = at(s), [v, b] = ze({
1056
1056
  prop: i,
1057
- defaultProp: d ?? null,
1058
- onChange: c,
1057
+ defaultProp: c ?? null,
1058
+ onChange: d,
1059
1059
  caller: Pe
1060
- }), [E, S] = m.useState(!1), x = ie(u), T = co(o), B = m.useRef(!1), [R, D] = m.useState(0);
1060
+ }), [S, C] = m.useState(!1), w = ie(u), T = co(o), _ = m.useRef(!1), [R, k] = m.useState(0);
1061
1061
  return m.useEffect(() => {
1062
- const A = g.current;
1063
- if (A)
1064
- return A.addEventListener(Je, x), () => A.removeEventListener(Je, x);
1065
- }, [x]), /* @__PURE__ */ n(
1066
- qr,
1062
+ const D = g.current;
1063
+ if (D)
1064
+ return D.addEventListener(Je, w), () => D.removeEventListener(Je, w);
1065
+ }, [w]), /* @__PURE__ */ n(
1066
+ Qr,
1067
1067
  {
1068
1068
  scope: o,
1069
1069
  orientation: a,
@@ -1071,43 +1071,43 @@ var Jr = m.forwardRef((e, t) => {
1071
1071
  loop: r,
1072
1072
  currentTabStopId: v,
1073
1073
  onItemFocus: m.useCallback(
1074
- (A) => b(A),
1074
+ (D) => b(D),
1075
1075
  [b]
1076
1076
  ),
1077
- onItemShiftTab: m.useCallback(() => S(!0), []),
1077
+ onItemShiftTab: m.useCallback(() => C(!0), []),
1078
1078
  onFocusableItemAdd: m.useCallback(
1079
- () => D((A) => A + 1),
1079
+ () => k((D) => D + 1),
1080
1080
  []
1081
1081
  ),
1082
1082
  onFocusableItemRemove: m.useCallback(
1083
- () => D((A) => A - 1),
1083
+ () => k((D) => D - 1),
1084
1084
  []
1085
1085
  ),
1086
1086
  children: /* @__PURE__ */ n(
1087
1087
  te.div,
1088
1088
  {
1089
- tabIndex: E || R === 0 ? -1 : 0,
1089
+ tabIndex: S || R === 0 ? -1 : 0,
1090
1090
  "data-orientation": a,
1091
1091
  ...h,
1092
1092
  ref: l,
1093
1093
  style: { outline: "none", ...e.style },
1094
1094
  onMouseDown: W(e.onMouseDown, () => {
1095
- B.current = !0;
1095
+ _.current = !0;
1096
1096
  }),
1097
- onFocus: W(e.onFocus, (A) => {
1098
- const I = !B.current;
1099
- if (A.target === A.currentTarget && I && !E) {
1100
- const z = new CustomEvent(Je, Zr);
1101
- if (A.currentTarget.dispatchEvent(z), !z.defaultPrevented) {
1102
- const O = T().filter((F) => F.focusable), C = O.find((F) => F.active), de = O.find((F) => F.id === v), ae = [C, de, ...O].filter(
1097
+ onFocus: W(e.onFocus, (D) => {
1098
+ const P = !_.current;
1099
+ if (D.target === D.currentTarget && P && !S) {
1100
+ const V = new CustomEvent(Je, Xr);
1101
+ if (D.currentTarget.dispatchEvent(V), !V.defaultPrevented) {
1102
+ const O = T().filter(($) => $.focusable), E = O.find(($) => $.active), de = O.find(($) => $.id === v), ae = [E, de, ...O].filter(
1103
1103
  Boolean
1104
- ).map((F) => F.ref.current);
1104
+ ).map(($) => $.ref.current);
1105
1105
  ho(ae, f);
1106
1106
  }
1107
1107
  }
1108
- B.current = !1;
1108
+ _.current = !1;
1109
1109
  }),
1110
- onBlur: W(e.onBlur, () => S(!1))
1110
+ onBlur: W(e.onBlur, () => C(!1))
1111
1111
  }
1112
1112
  )
1113
1113
  }
@@ -1120,8 +1120,8 @@ var Jr = m.forwardRef((e, t) => {
1120
1120
  active: r = !1,
1121
1121
  tabStopId: s,
1122
1122
  children: i,
1123
- ...d
1124
- } = e, c = Jo(), u = s || c, f = Qr(po, o), h = f.currentTabStopId === u, g = co(o), { onFocusableItemAdd: l, onFocusableItemRemove: N, currentTabStopId: v } = f;
1123
+ ...c
1124
+ } = e, d = Jo(), u = s || d, f = Jr(po, o), h = f.currentTabStopId === u, g = co(o), { onFocusableItemAdd: l, onFocusableItemRemove: N, currentTabStopId: v } = f;
1125
1125
  return m.useEffect(() => {
1126
1126
  if (a)
1127
1127
  return l(), () => N();
@@ -1137,7 +1137,7 @@ var Jr = m.forwardRef((e, t) => {
1137
1137
  {
1138
1138
  tabIndex: h ? 0 : -1,
1139
1139
  "data-orientation": f.orientation,
1140
- ...d,
1140
+ ...c,
1141
1141
  ref: t,
1142
1142
  onMouseDown: W(e.onMouseDown, (b) => {
1143
1143
  a ? f.onItemFocus(u) : b.preventDefault();
@@ -1149,18 +1149,18 @@ var Jr = m.forwardRef((e, t) => {
1149
1149
  return;
1150
1150
  }
1151
1151
  if (b.target !== b.currentTarget) return;
1152
- const E = oa(b, f.orientation, f.dir);
1153
- if (E !== void 0) {
1152
+ const S = ra(b, f.orientation, f.dir);
1153
+ if (S !== void 0) {
1154
1154
  if (b.metaKey || b.ctrlKey || b.altKey || b.shiftKey) return;
1155
1155
  b.preventDefault();
1156
- let x = g().filter((T) => T.focusable).map((T) => T.ref.current);
1157
- if (E === "last") x.reverse();
1158
- else if (E === "prev" || E === "next") {
1159
- E === "prev" && x.reverse();
1160
- const T = x.indexOf(b.currentTarget);
1161
- x = f.loop ? ra(x, T + 1) : x.slice(T + 1);
1156
+ let w = g().filter((T) => T.focusable).map((T) => T.ref.current);
1157
+ if (S === "last") w.reverse();
1158
+ else if (S === "prev" || S === "next") {
1159
+ S === "prev" && w.reverse();
1160
+ const T = w.indexOf(b.currentTarget);
1161
+ w = f.loop ? aa(w, T + 1) : w.slice(T + 1);
1162
1162
  }
1163
- setTimeout(() => ho(x));
1163
+ setTimeout(() => ho(w));
1164
1164
  }
1165
1165
  }),
1166
1166
  children: typeof i == "function" ? i({ isCurrentTabStop: h, hasTabStop: v != null }) : i
@@ -1171,7 +1171,7 @@ var Jr = m.forwardRef((e, t) => {
1171
1171
  }
1172
1172
  );
1173
1173
  mo.displayName = po;
1174
- var ea = {
1174
+ var ta = {
1175
1175
  ArrowLeft: "prev",
1176
1176
  ArrowUp: "prev",
1177
1177
  ArrowRight: "next",
@@ -1181,24 +1181,24 @@ var ea = {
1181
1181
  PageDown: "last",
1182
1182
  End: "last"
1183
1183
  };
1184
- function ta(e, t) {
1184
+ function oa(e, t) {
1185
1185
  return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
1186
1186
  }
1187
- function oa(e, t, o) {
1188
- const a = ta(e.key, o);
1187
+ function ra(e, t, o) {
1188
+ const a = oa(e.key, o);
1189
1189
  if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(a)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(a)))
1190
- return ea[a];
1190
+ return ta[a];
1191
1191
  }
1192
1192
  function ho(e, t = !1) {
1193
1193
  const o = document.activeElement;
1194
1194
  for (const a of e)
1195
1195
  if (a === o || (a.focus({ preventScroll: t }), document.activeElement !== o)) return;
1196
1196
  }
1197
- function ra(e, t) {
1197
+ function aa(e, t) {
1198
1198
  return e.map((o, a) => e[(t + a) % e.length]);
1199
1199
  }
1200
- var aa = fo, na = mo, go = "Toggle", dt = m.forwardRef((e, t) => {
1201
- const { pressed: o, defaultPressed: a, onPressedChange: r, ...s } = e, [i, d] = ze({
1200
+ var na = fo, sa = mo, go = "Toggle", dt = m.forwardRef((e, t) => {
1201
+ const { pressed: o, defaultPressed: a, onPressedChange: r, ...s } = e, [i, c] = ze({
1202
1202
  prop: o,
1203
1203
  onChange: r,
1204
1204
  defaultProp: a ?? !1,
@@ -1214,7 +1214,7 @@ var aa = fo, na = mo, go = "Toggle", dt = m.forwardRef((e, t) => {
1214
1214
  ...s,
1215
1215
  ref: t,
1216
1216
  onClick: W(e.onClick, () => {
1217
- e.disabled || d(!i);
1217
+ e.disabled || c(!i);
1218
1218
  })
1219
1219
  }
1220
1220
  );
@@ -1225,20 +1225,20 @@ var vo = dt, ce = "ToggleGroup", [bo] = _e(ce, [
1225
1225
  ]), yo = uo(), ut = p.forwardRef((e, t) => {
1226
1226
  const { type: o, ...a } = e;
1227
1227
  if (o === "single")
1228
- return /* @__PURE__ */ n(sa, { ...a, ref: t });
1229
- if (o === "multiple")
1230
1228
  return /* @__PURE__ */ n(la, { ...a, ref: t });
1229
+ if (o === "multiple")
1230
+ return /* @__PURE__ */ n(ia, { ...a, ref: t });
1231
1231
  throw new Error(`Missing prop \`type\` expected on \`${ce}\``);
1232
1232
  });
1233
1233
  ut.displayName = ce;
1234
- var [wo, xo] = bo(ce), sa = p.forwardRef((e, t) => {
1234
+ var [wo, xo] = bo(ce), la = p.forwardRef((e, t) => {
1235
1235
  const {
1236
1236
  value: o,
1237
1237
  defaultValue: a,
1238
1238
  onValueChange: r = () => {
1239
1239
  },
1240
1240
  ...s
1241
- } = e, [i, d] = ze({
1241
+ } = e, [i, c] = ze({
1242
1242
  prop: o,
1243
1243
  defaultProp: a ?? "",
1244
1244
  onChange: r,
@@ -1250,29 +1250,29 @@ var [wo, xo] = bo(ce), sa = p.forwardRef((e, t) => {
1250
1250
  scope: e.__scopeToggleGroup,
1251
1251
  type: "single",
1252
1252
  value: p.useMemo(() => i ? [i] : [], [i]),
1253
- onItemActivate: d,
1254
- onItemDeactivate: p.useCallback(() => d(""), [d]),
1253
+ onItemActivate: c,
1254
+ onItemDeactivate: p.useCallback(() => c(""), [c]),
1255
1255
  children: /* @__PURE__ */ n(Co, { ...s, ref: t })
1256
1256
  }
1257
1257
  );
1258
- }), la = p.forwardRef((e, t) => {
1258
+ }), ia = p.forwardRef((e, t) => {
1259
1259
  const {
1260
1260
  value: o,
1261
1261
  defaultValue: a,
1262
1262
  onValueChange: r = () => {
1263
1263
  },
1264
1264
  ...s
1265
- } = e, [i, d] = ze({
1265
+ } = e, [i, c] = ze({
1266
1266
  prop: o,
1267
1267
  defaultProp: a ?? [],
1268
1268
  onChange: r,
1269
1269
  caller: ce
1270
- }), c = p.useCallback(
1271
- (f) => d((h = []) => [...h, f]),
1272
- [d]
1270
+ }), d = p.useCallback(
1271
+ (f) => c((h = []) => [...h, f]),
1272
+ [c]
1273
1273
  ), u = p.useCallback(
1274
- (f) => d((h = []) => h.filter((g) => g !== f)),
1275
- [d]
1274
+ (f) => c((h = []) => h.filter((g) => g !== f)),
1275
+ [c]
1276
1276
  );
1277
1277
  return /* @__PURE__ */ n(
1278
1278
  wo,
@@ -1280,14 +1280,14 @@ var [wo, xo] = bo(ce), sa = p.forwardRef((e, t) => {
1280
1280
  scope: e.__scopeToggleGroup,
1281
1281
  type: "multiple",
1282
1282
  value: i,
1283
- onItemActivate: c,
1283
+ onItemActivate: d,
1284
1284
  onItemDeactivate: u,
1285
1285
  children: /* @__PURE__ */ n(Co, { ...s, ref: t })
1286
1286
  }
1287
1287
  );
1288
1288
  });
1289
1289
  ut.displayName = ce;
1290
- var [ia, ca] = bo(ce), Co = p.forwardRef(
1290
+ var [ca, da] = bo(ce), Co = p.forwardRef(
1291
1291
  (e, t) => {
1292
1292
  const {
1293
1293
  __scopeToggleGroup: o,
@@ -1295,49 +1295,49 @@ var [ia, ca] = bo(ce), Co = p.forwardRef(
1295
1295
  rovingFocus: r = !0,
1296
1296
  orientation: s,
1297
1297
  dir: i,
1298
- loop: d = !0,
1299
- ...c
1300
- } = e, u = yo(o), f = at(i), h = { role: "group", dir: f, ...c };
1301
- return /* @__PURE__ */ n(ia, { scope: o, rovingFocus: r, disabled: a, children: r ? /* @__PURE__ */ n(
1302
- aa,
1298
+ loop: c = !0,
1299
+ ...d
1300
+ } = e, u = yo(o), f = at(i), h = { role: "group", dir: f, ...d };
1301
+ return /* @__PURE__ */ n(ca, { scope: o, rovingFocus: r, disabled: a, children: r ? /* @__PURE__ */ n(
1302
+ na,
1303
1303
  {
1304
1304
  asChild: !0,
1305
1305
  ...u,
1306
1306
  orientation: s,
1307
1307
  dir: f,
1308
- loop: d,
1308
+ loop: c,
1309
1309
  children: /* @__PURE__ */ n(te.div, { ...h, ref: t })
1310
1310
  }
1311
1311
  ) : /* @__PURE__ */ n(te.div, { ...h, ref: t }) });
1312
1312
  }
1313
1313
  ), He = "ToggleGroupItem", So = p.forwardRef(
1314
1314
  (e, t) => {
1315
- const o = xo(He, e.__scopeToggleGroup), a = ca(He, e.__scopeToggleGroup), r = yo(e.__scopeToggleGroup), s = o.value.includes(e.value), i = a.disabled || e.disabled, d = { ...e, pressed: s, disabled: i }, c = p.useRef(null);
1315
+ const o = xo(He, e.__scopeToggleGroup), a = da(He, e.__scopeToggleGroup), r = yo(e.__scopeToggleGroup), s = o.value.includes(e.value), i = a.disabled || e.disabled, c = { ...e, pressed: s, disabled: i }, d = p.useRef(null);
1316
1316
  return a.rovingFocus ? /* @__PURE__ */ n(
1317
- na,
1317
+ sa,
1318
1318
  {
1319
1319
  asChild: !0,
1320
1320
  ...r,
1321
1321
  focusable: !i,
1322
1322
  active: s,
1323
- ref: c,
1324
- children: /* @__PURE__ */ n(Tt, { ...d, ref: t })
1323
+ ref: d,
1324
+ children: /* @__PURE__ */ n(Tt, { ...c, ref: t })
1325
1325
  }
1326
- ) : /* @__PURE__ */ n(Tt, { ...d, ref: t });
1326
+ ) : /* @__PURE__ */ n(Tt, { ...c, ref: t });
1327
1327
  }
1328
1328
  );
1329
1329
  So.displayName = He;
1330
1330
  var Tt = p.forwardRef(
1331
1331
  (e, t) => {
1332
- const { __scopeToggleGroup: o, value: a, ...r } = e, s = xo(He, o), i = { role: "radio", "aria-checked": e.pressed, "aria-pressed": void 0 }, d = s.type === "single" ? i : void 0;
1332
+ const { __scopeToggleGroup: o, value: a, ...r } = e, s = xo(He, o), i = { role: "radio", "aria-checked": e.pressed, "aria-pressed": void 0 }, c = s.type === "single" ? i : void 0;
1333
1333
  return /* @__PURE__ */ n(
1334
1334
  dt,
1335
1335
  {
1336
- ...d,
1336
+ ...c,
1337
1337
  ...r,
1338
1338
  ref: t,
1339
- onPressedChange: (c) => {
1340
- c ? s.onItemActivate(a) : s.onItemDeactivate(a);
1339
+ onPressedChange: (d) => {
1340
+ d ? s.onItemActivate(a) : s.onItemDeactivate(a);
1341
1341
  }
1342
1342
  }
1343
1343
  );
@@ -1362,8 +1362,8 @@ const To = er(
1362
1362
  size: "default"
1363
1363
  }
1364
1364
  }
1365
- ), da = m.forwardRef(({ className: e, variant: t, size: o, ...a }, r) => /* @__PURE__ */ n(vo, { ref: r, className: Re(To({ variant: t, size: o, className: e })), ...a }));
1366
- da.displayName = vo.displayName;
1365
+ ), ua = m.forwardRef(({ className: e, variant: t, size: o, ...a }, r) => /* @__PURE__ */ n(vo, { ref: r, className: Re(To({ variant: t, size: o, className: e })), ...a }));
1366
+ ua.displayName = vo.displayName;
1367
1367
  const Ro = m.createContext({
1368
1368
  size: "default",
1369
1369
  variant: "default"
@@ -1388,20 +1388,20 @@ const ko = m.forwardRef(({ className: e, children: t, variant: o, size: a, ...r
1388
1388
  );
1389
1389
  });
1390
1390
  ko.displayName = No.displayName;
1391
- var ua = (e) => {
1391
+ var fa = (e) => {
1392
1392
  switch (e) {
1393
1393
  case "success":
1394
- return ma;
1394
+ return ha;
1395
1395
  case "info":
1396
- return ga;
1396
+ return va;
1397
1397
  case "warning":
1398
- return ha;
1398
+ return ga;
1399
1399
  case "error":
1400
- return va;
1400
+ return ba;
1401
1401
  default:
1402
1402
  return null;
1403
1403
  }
1404
- }, fa = Array(12).fill(0), pa = ({ visible: e, className: t }) => p.createElement("div", { className: ["sonner-loading-wrapper", t].filter(Boolean).join(" "), "data-visible": e }, p.createElement("div", { className: "sonner-spinner" }, fa.map((o, a) => p.createElement("div", { className: "sonner-loading-bar", key: `spinner-bar-${a}` })))), ma = p.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", height: "20", width: "20" }, p.createElement("path", { fillRule: "evenodd", d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z", clipRule: "evenodd" })), ha = p.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", height: "20", width: "20" }, p.createElement("path", { fillRule: "evenodd", d: "M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z", clipRule: "evenodd" })), ga = p.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", height: "20", width: "20" }, p.createElement("path", { fillRule: "evenodd", d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z", clipRule: "evenodd" })), va = p.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", height: "20", width: "20" }, p.createElement("path", { fillRule: "evenodd", d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z", clipRule: "evenodd" })), ba = p.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }, p.createElement("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), p.createElement("line", { x1: "6", y1: "6", x2: "18", y2: "18" })), ya = () => {
1404
+ }, pa = Array(12).fill(0), ma = ({ visible: e, className: t }) => p.createElement("div", { className: ["sonner-loading-wrapper", t].filter(Boolean).join(" "), "data-visible": e }, p.createElement("div", { className: "sonner-spinner" }, pa.map((o, a) => p.createElement("div", { className: "sonner-loading-bar", key: `spinner-bar-${a}` })))), ha = p.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", height: "20", width: "20" }, p.createElement("path", { fillRule: "evenodd", d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z", clipRule: "evenodd" })), ga = p.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", height: "20", width: "20" }, p.createElement("path", { fillRule: "evenodd", d: "M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z", clipRule: "evenodd" })), va = p.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", height: "20", width: "20" }, p.createElement("path", { fillRule: "evenodd", d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z", clipRule: "evenodd" })), ba = p.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", height: "20", width: "20" }, p.createElement("path", { fillRule: "evenodd", d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z", clipRule: "evenodd" })), ya = p.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }, p.createElement("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), p.createElement("line", { x1: "6", y1: "6", x2: "18", y2: "18" })), wa = () => {
1405
1405
  let [e, t] = p.useState(document.hidden);
1406
1406
  return p.useEffect(() => {
1407
1407
  let o = () => {
@@ -1409,7 +1409,7 @@ var ua = (e) => {
1409
1409
  };
1410
1410
  return document.addEventListener("visibilitychange", o), () => window.removeEventListener("visibilitychange", o);
1411
1411
  }, []), e;
1412
- }, tt = 1, wa = class {
1412
+ }, tt = 1, xa = class {
1413
1413
  constructor() {
1414
1414
  this.subscribe = (e) => (this.subscribers.push(e), () => {
1415
1415
  let t = this.subscribers.indexOf(e);
@@ -1420,229 +1420,229 @@ var ua = (e) => {
1420
1420
  this.publish(e), this.toasts = [...this.toasts, e];
1421
1421
  }, this.create = (e) => {
1422
1422
  var t;
1423
- let { message: o, ...a } = e, r = typeof (e == null ? void 0 : e.id) == "number" || ((t = e.id) == null ? void 0 : t.length) > 0 ? e.id : tt++, s = this.toasts.find((d) => d.id === r), i = e.dismissible === void 0 ? !0 : e.dismissible;
1424
- return this.dismissedToasts.has(r) && this.dismissedToasts.delete(r), s ? this.toasts = this.toasts.map((d) => d.id === r ? (this.publish({ ...d, ...e, id: r, title: o }), { ...d, ...e, id: r, dismissible: i, title: o }) : d) : this.addToast({ title: o, ...a, dismissible: i, id: r }), r;
1423
+ let { message: o, ...a } = e, r = typeof (e == null ? void 0 : e.id) == "number" || ((t = e.id) == null ? void 0 : t.length) > 0 ? e.id : tt++, s = this.toasts.find((c) => c.id === r), i = e.dismissible === void 0 ? !0 : e.dismissible;
1424
+ return this.dismissedToasts.has(r) && this.dismissedToasts.delete(r), s ? this.toasts = this.toasts.map((c) => c.id === r ? (this.publish({ ...c, ...e, id: r, title: o }), { ...c, ...e, id: r, dismissible: i, title: o }) : c) : this.addToast({ title: o, ...a, dismissible: i, id: r }), r;
1425
1425
  }, this.dismiss = (e) => (this.dismissedToasts.add(e), e || this.toasts.forEach((t) => {
1426
1426
  this.subscribers.forEach((o) => o({ id: t.id, dismiss: !0 }));
1427
1427
  }), this.subscribers.forEach((t) => t({ id: e, dismiss: !0 })), e), this.message = (e, t) => this.create({ ...t, message: e }), this.error = (e, t) => this.create({ ...t, message: e, type: "error" }), this.success = (e, t) => this.create({ ...t, type: "success", message: e }), this.info = (e, t) => this.create({ ...t, type: "info", message: e }), this.warning = (e, t) => this.create({ ...t, type: "warning", message: e }), this.loading = (e, t) => this.create({ ...t, type: "loading", message: e }), this.promise = (e, t) => {
1428
1428
  if (!t) return;
1429
1429
  let o;
1430
1430
  t.loading !== void 0 && (o = this.create({ ...t, promise: e, type: "loading", message: t.loading, description: typeof t.description != "function" ? t.description : void 0 }));
1431
- let a = e instanceof Promise ? e : e(), r = o !== void 0, s, i = a.then(async (c) => {
1432
- if (s = ["resolve", c], p.isValidElement(c)) r = !1, this.create({ id: o, type: "default", message: c });
1433
- else if (Ca(c) && !c.ok) {
1431
+ let a = e instanceof Promise ? e : e(), r = o !== void 0, s, i = a.then(async (d) => {
1432
+ if (s = ["resolve", d], p.isValidElement(d)) r = !1, this.create({ id: o, type: "default", message: d });
1433
+ else if (Sa(d) && !d.ok) {
1434
1434
  r = !1;
1435
- let u = typeof t.error == "function" ? await t.error(`HTTP error! status: ${c.status}`) : t.error, f = typeof t.description == "function" ? await t.description(`HTTP error! status: ${c.status}`) : t.description;
1435
+ let u = typeof t.error == "function" ? await t.error(`HTTP error! status: ${d.status}`) : t.error, f = typeof t.description == "function" ? await t.description(`HTTP error! status: ${d.status}`) : t.description;
1436
1436
  this.create({ id: o, type: "error", message: u, description: f });
1437
1437
  } else if (t.success !== void 0) {
1438
1438
  r = !1;
1439
- let u = typeof t.success == "function" ? await t.success(c) : t.success, f = typeof t.description == "function" ? await t.description(c) : t.description;
1439
+ let u = typeof t.success == "function" ? await t.success(d) : t.success, f = typeof t.description == "function" ? await t.description(d) : t.description;
1440
1440
  this.create({ id: o, type: "success", message: u, description: f });
1441
1441
  }
1442
- }).catch(async (c) => {
1443
- if (s = ["reject", c], t.error !== void 0) {
1442
+ }).catch(async (d) => {
1443
+ if (s = ["reject", d], t.error !== void 0) {
1444
1444
  r = !1;
1445
- let u = typeof t.error == "function" ? await t.error(c) : t.error, f = typeof t.description == "function" ? await t.description(c) : t.description;
1445
+ let u = typeof t.error == "function" ? await t.error(d) : t.error, f = typeof t.description == "function" ? await t.description(d) : t.description;
1446
1446
  this.create({ id: o, type: "error", message: u, description: f });
1447
1447
  }
1448
1448
  }).finally(() => {
1449
- var c;
1450
- r && (this.dismiss(o), o = void 0), (c = t.finally) == null || c.call(t);
1451
- }), d = () => new Promise((c, u) => i.then(() => s[0] === "reject" ? u(s[1]) : c(s[1])).catch(u));
1452
- return typeof o != "string" && typeof o != "number" ? { unwrap: d } : Object.assign(o, { unwrap: d });
1449
+ var d;
1450
+ r && (this.dismiss(o), o = void 0), (d = t.finally) == null || d.call(t);
1451
+ }), c = () => new Promise((d, u) => i.then(() => s[0] === "reject" ? u(s[1]) : d(s[1])).catch(u));
1452
+ return typeof o != "string" && typeof o != "number" ? { unwrap: c } : Object.assign(o, { unwrap: c });
1453
1453
  }, this.custom = (e, t) => {
1454
1454
  let o = (t == null ? void 0 : t.id) || tt++;
1455
1455
  return this.create({ jsx: e(o), id: o, ...t }), o;
1456
1456
  }, this.getActiveToasts = () => this.toasts.filter((e) => !this.dismissedToasts.has(e.id)), this.subscribers = [], this.toasts = [], this.dismissedToasts = /* @__PURE__ */ new Set();
1457
1457
  }
1458
- }, G = new wa(), xa = (e, t) => {
1458
+ }, G = new xa(), Ca = (e, t) => {
1459
1459
  let o = (t == null ? void 0 : t.id) || tt++;
1460
1460
  return G.addToast({ title: e, ...t, id: o }), o;
1461
- }, Ca = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", Sa = xa, Ea = () => G.toasts, Na = () => G.getActiveToasts(), Ta = Object.assign(Sa, { success: G.success, info: G.info, warning: G.warning, error: G.error, custom: G.custom, message: G.message, promise: G.promise, dismiss: G.dismiss, loading: G.loading }, { getHistory: Ea, getToasts: Na });
1462
- function Ra(e, { insertAt: t } = {}) {
1461
+ }, Sa = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", Ea = Ca, Na = () => G.toasts, Ta = () => G.getActiveToasts(), Ra = Object.assign(Ea, { success: G.success, info: G.info, warning: G.warning, error: G.error, custom: G.custom, message: G.message, promise: G.promise, dismiss: G.dismiss, loading: G.loading }, { getHistory: Na, getToasts: Ta });
1462
+ function Pa(e, { insertAt: t } = {}) {
1463
1463
  if (typeof document > "u") return;
1464
1464
  let o = document.head || document.getElementsByTagName("head")[0], a = document.createElement("style");
1465
1465
  a.type = "text/css", t === "top" && o.firstChild ? o.insertBefore(a, o.firstChild) : o.appendChild(a), a.styleSheet ? a.styleSheet.cssText = e : a.appendChild(document.createTextNode(e));
1466
1466
  }
1467
- Ra(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
1467
+ Pa(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
1468
1468
  `);
1469
1469
  function De(e) {
1470
1470
  return e.label !== void 0;
1471
1471
  }
1472
- var Pa = 3, ka = "32px", Ia = "16px", Rt = 4e3, Ma = 356, Da = 14, Aa = 20, La = 200;
1472
+ var ka = 3, Ia = "32px", Ma = "16px", Rt = 4e3, Da = 356, Aa = 14, Va = 20, La = 200;
1473
1473
  function ee(...e) {
1474
1474
  return e.filter(Boolean).join(" ");
1475
1475
  }
1476
- function Va(e) {
1476
+ function Ha(e) {
1477
1477
  let [t, o] = e.split("-"), a = [];
1478
1478
  return t && a.push(t), o && a.push(o), a;
1479
1479
  }
1480
- var Ha = (e) => {
1481
- var t, o, a, r, s, i, d, c, u, f, h;
1482
- let { invert: g, toast: l, unstyled: N, interacting: v, setHeights: b, visibleToasts: E, heights: S, index: x, toasts: T, expanded: B, removeToast: R, defaultRichColors: D, closeButton: A, style: I, cancelButtonStyle: z, actionButtonStyle: O, className: C = "", descriptionClassName: de = "", duration: $, position: ae, gap: F, loadingIcon: K, expandByDefault: ue, classNames: w, icons: U, closeButtonAriaLabel: je = "Close toast", pauseWhenPageIsHidden: M } = e, [L, H] = p.useState(null), [j, he] = p.useState(null), [_, Ge] = p.useState(!1), [xe, ke] = p.useState(!1), [Ce, We] = p.useState(!1), [pt, Ao] = p.useState(!1), [Lo, mt] = p.useState(!1), [Vo, Ye] = p.useState(0), [Ho, ht] = p.useState(0), Se = p.useRef(l.duration || $ || Rt), gt = p.useRef(null), fe = p.useRef(null), _o = x === 0, Bo = x + 1 <= E, Z = l.type, ge = l.dismissible !== !1, zo = l.className || "", Oo = l.descriptionClassName || "", Ie = p.useMemo(() => S.findIndex((y) => y.toastId === l.id) || 0, [S, l.id]), Fo = p.useMemo(() => {
1480
+ var _a = (e) => {
1481
+ var t, o, a, r, s, i, c, d, u, f, h;
1482
+ let { invert: g, toast: l, unstyled: N, interacting: v, setHeights: b, visibleToasts: S, heights: C, index: w, toasts: T, expanded: _, removeToast: R, defaultRichColors: k, closeButton: D, style: P, cancelButtonStyle: V, actionButtonStyle: O, className: E = "", descriptionClassName: de = "", duration: F, position: ae, gap: $, loadingIcon: K, expandByDefault: ue, classNames: x, icons: U, closeButtonAriaLabel: je = "Close toast", pauseWhenPageIsHidden: A } = e, [L, B] = p.useState(null), [j, he] = p.useState(null), [z, Ge] = p.useState(!1), [xe, ke] = p.useState(!1), [Ce, We] = p.useState(!1), [pt, Ao] = p.useState(!1), [Vo, mt] = p.useState(!1), [Lo, Ye] = p.useState(0), [Ho, ht] = p.useState(0), Se = p.useRef(l.duration || F || Rt), gt = p.useRef(null), fe = p.useRef(null), _o = w === 0, Bo = w + 1 <= S, Z = l.type, ge = l.dismissible !== !1, zo = l.className || "", Oo = l.descriptionClassName || "", Ie = p.useMemo(() => C.findIndex((y) => y.toastId === l.id) || 0, [C, l.id]), $o = p.useMemo(() => {
1483
1483
  var y;
1484
- return (y = l.closeButton) != null ? y : A;
1485
- }, [l.closeButton, A]), vt = p.useMemo(() => l.duration || $ || Rt, [l.duration, $]), Ue = p.useRef(0), ve = p.useRef(0), bt = p.useRef(0), be = p.useRef(null), [$o, jo] = ae.split("-"), yt = p.useMemo(() => S.reduce((y, P, V) => V >= Ie ? y : y + P.height, 0), [S, Ie]), wt = ya(), Go = l.invert || g, Ze = Z === "loading";
1486
- ve.current = p.useMemo(() => Ie * F + yt, [Ie, yt]), p.useEffect(() => {
1484
+ return (y = l.closeButton) != null ? y : D;
1485
+ }, [l.closeButton, D]), vt = p.useMemo(() => l.duration || F || Rt, [l.duration, F]), Ue = p.useRef(0), ve = p.useRef(0), bt = p.useRef(0), be = p.useRef(null), [Fo, jo] = ae.split("-"), yt = p.useMemo(() => C.reduce((y, I, H) => H >= Ie ? y : y + I.height, 0), [C, Ie]), wt = wa(), Go = l.invert || g, Ze = Z === "loading";
1486
+ ve.current = p.useMemo(() => Ie * $ + yt, [Ie, yt]), p.useEffect(() => {
1487
1487
  Se.current = vt;
1488
1488
  }, [vt]), p.useEffect(() => {
1489
1489
  Ge(!0);
1490
1490
  }, []), p.useEffect(() => {
1491
1491
  let y = fe.current;
1492
1492
  if (y) {
1493
- let P = y.getBoundingClientRect().height;
1494
- return ht(P), b((V) => [{ toastId: l.id, height: P, position: l.position }, ...V]), () => b((V) => V.filter((q) => q.toastId !== l.id));
1493
+ let I = y.getBoundingClientRect().height;
1494
+ return ht(I), b((H) => [{ toastId: l.id, height: I, position: l.position }, ...H]), () => b((H) => H.filter((q) => q.toastId !== l.id));
1495
1495
  }
1496
1496
  }, [b, l.id]), p.useLayoutEffect(() => {
1497
- if (!_) return;
1498
- let y = fe.current, P = y.style.height;
1497
+ if (!z) return;
1498
+ let y = fe.current, I = y.style.height;
1499
1499
  y.style.height = "auto";
1500
- let V = y.getBoundingClientRect().height;
1501
- y.style.height = P, ht(V), b((q) => q.find((Q) => Q.toastId === l.id) ? q.map((Q) => Q.toastId === l.id ? { ...Q, height: V } : Q) : [{ toastId: l.id, height: V, position: l.position }, ...q]);
1502
- }, [_, l.title, l.description, b, l.id]);
1500
+ let H = y.getBoundingClientRect().height;
1501
+ y.style.height = I, ht(H), b((q) => q.find((Q) => Q.toastId === l.id) ? q.map((Q) => Q.toastId === l.id ? { ...Q, height: H } : Q) : [{ toastId: l.id, height: H, position: l.position }, ...q]);
1502
+ }, [z, l.title, l.description, b, l.id]);
1503
1503
  let ne = p.useCallback(() => {
1504
- ke(!0), Ye(ve.current), b((y) => y.filter((P) => P.toastId !== l.id)), setTimeout(() => {
1504
+ ke(!0), Ye(ve.current), b((y) => y.filter((I) => I.toastId !== l.id)), setTimeout(() => {
1505
1505
  R(l);
1506
1506
  }, La);
1507
1507
  }, [l, R, b, ve]);
1508
1508
  p.useEffect(() => {
1509
1509
  if (l.promise && Z === "loading" || l.duration === 1 / 0 || l.type === "loading") return;
1510
1510
  let y;
1511
- return B || v || M && wt ? (() => {
1511
+ return _ || v || A && wt ? (() => {
1512
1512
  if (bt.current < Ue.current) {
1513
- let P = (/* @__PURE__ */ new Date()).getTime() - Ue.current;
1514
- Se.current = Se.current - P;
1513
+ let I = (/* @__PURE__ */ new Date()).getTime() - Ue.current;
1514
+ Se.current = Se.current - I;
1515
1515
  }
1516
1516
  bt.current = (/* @__PURE__ */ new Date()).getTime();
1517
1517
  })() : Se.current !== 1 / 0 && (Ue.current = (/* @__PURE__ */ new Date()).getTime(), y = setTimeout(() => {
1518
- var P;
1519
- (P = l.onAutoClose) == null || P.call(l, l), ne();
1518
+ var I;
1519
+ (I = l.onAutoClose) == null || I.call(l, l), ne();
1520
1520
  }, Se.current)), () => clearTimeout(y);
1521
- }, [B, v, l, Z, M, wt, ne]), p.useEffect(() => {
1521
+ }, [_, v, l, Z, A, wt, ne]), p.useEffect(() => {
1522
1522
  l.delete && ne();
1523
1523
  }, [ne, l.delete]);
1524
1524
  function Wo() {
1525
- var y, P, V;
1526
- return U != null && U.loading ? p.createElement("div", { className: ee(w == null ? void 0 : w.loader, (y = l == null ? void 0 : l.classNames) == null ? void 0 : y.loader, "sonner-loader"), "data-visible": Z === "loading" }, U.loading) : K ? p.createElement("div", { className: ee(w == null ? void 0 : w.loader, (P = l == null ? void 0 : l.classNames) == null ? void 0 : P.loader, "sonner-loader"), "data-visible": Z === "loading" }, K) : p.createElement(pa, { className: ee(w == null ? void 0 : w.loader, (V = l == null ? void 0 : l.classNames) == null ? void 0 : V.loader), visible: Z === "loading" });
1525
+ var y, I, H;
1526
+ return U != null && U.loading ? p.createElement("div", { className: ee(x == null ? void 0 : x.loader, (y = l == null ? void 0 : l.classNames) == null ? void 0 : y.loader, "sonner-loader"), "data-visible": Z === "loading" }, U.loading) : K ? p.createElement("div", { className: ee(x == null ? void 0 : x.loader, (I = l == null ? void 0 : l.classNames) == null ? void 0 : I.loader, "sonner-loader"), "data-visible": Z === "loading" }, K) : p.createElement(ma, { className: ee(x == null ? void 0 : x.loader, (H = l == null ? void 0 : l.classNames) == null ? void 0 : H.loader), visible: Z === "loading" });
1527
1527
  }
1528
- return p.createElement("li", { tabIndex: 0, ref: fe, className: ee(C, zo, w == null ? void 0 : w.toast, (t = l == null ? void 0 : l.classNames) == null ? void 0 : t.toast, w == null ? void 0 : w.default, w == null ? void 0 : w[Z], (o = l == null ? void 0 : l.classNames) == null ? void 0 : o[Z]), "data-sonner-toast": "", "data-rich-colors": (a = l.richColors) != null ? a : D, "data-styled": !(l.jsx || l.unstyled || N), "data-mounted": _, "data-promise": !!l.promise, "data-swiped": Lo, "data-removed": xe, "data-visible": Bo, "data-y-position": $o, "data-x-position": jo, "data-index": x, "data-front": _o, "data-swiping": Ce, "data-dismissible": ge, "data-type": Z, "data-invert": Go, "data-swipe-out": pt, "data-swipe-direction": j, "data-expanded": !!(B || ue && _), style: { "--index": x, "--toasts-before": x, "--z-index": T.length - x, "--offset": `${xe ? Vo : ve.current}px`, "--initial-height": ue ? "auto" : `${Ho}px`, ...I, ...l.style }, onDragEnd: () => {
1529
- We(!1), H(null), be.current = null;
1528
+ return p.createElement("li", { tabIndex: 0, ref: fe, className: ee(E, zo, x == null ? void 0 : x.toast, (t = l == null ? void 0 : l.classNames) == null ? void 0 : t.toast, x == null ? void 0 : x.default, x == null ? void 0 : x[Z], (o = l == null ? void 0 : l.classNames) == null ? void 0 : o[Z]), "data-sonner-toast": "", "data-rich-colors": (a = l.richColors) != null ? a : k, "data-styled": !(l.jsx || l.unstyled || N), "data-mounted": z, "data-promise": !!l.promise, "data-swiped": Vo, "data-removed": xe, "data-visible": Bo, "data-y-position": Fo, "data-x-position": jo, "data-index": w, "data-front": _o, "data-swiping": Ce, "data-dismissible": ge, "data-type": Z, "data-invert": Go, "data-swipe-out": pt, "data-swipe-direction": j, "data-expanded": !!(_ || ue && z), style: { "--index": w, "--toasts-before": w, "--z-index": T.length - w, "--offset": `${xe ? Lo : ve.current}px`, "--initial-height": ue ? "auto" : `${Ho}px`, ...P, ...l.style }, onDragEnd: () => {
1529
+ We(!1), B(null), be.current = null;
1530
1530
  }, onPointerDown: (y) => {
1531
1531
  Ze || !ge || (gt.current = /* @__PURE__ */ new Date(), Ye(ve.current), y.target.setPointerCapture(y.pointerId), y.target.tagName !== "BUTTON" && (We(!0), be.current = { x: y.clientX, y: y.clientY }));
1532
1532
  }, onPointerUp: () => {
1533
- var y, P, V, q;
1533
+ var y, I, H, q;
1534
1534
  if (pt || !ge) return;
1535
1535
  be.current = null;
1536
- let Q = Number(((y = fe.current) == null ? void 0 : y.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0), se = Number(((P = fe.current) == null ? void 0 : P.style.getPropertyValue("--swipe-amount-y").replace("px", "")) || 0), pe = (/* @__PURE__ */ new Date()).getTime() - ((V = gt.current) == null ? void 0 : V.getTime()), J = L === "x" ? Q : se, le = Math.abs(J) / pe;
1537
- if (Math.abs(J) >= Aa || le > 0.11) {
1536
+ let Q = Number(((y = fe.current) == null ? void 0 : y.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0), se = Number(((I = fe.current) == null ? void 0 : I.style.getPropertyValue("--swipe-amount-y").replace("px", "")) || 0), pe = (/* @__PURE__ */ new Date()).getTime() - ((H = gt.current) == null ? void 0 : H.getTime()), J = L === "x" ? Q : se, le = Math.abs(J) / pe;
1537
+ if (Math.abs(J) >= Va || le > 0.11) {
1538
1538
  Ye(ve.current), (q = l.onDismiss) == null || q.call(l, l), he(L === "x" ? Q > 0 ? "right" : "left" : se > 0 ? "down" : "up"), ne(), Ao(!0), mt(!1);
1539
1539
  return;
1540
1540
  }
1541
- We(!1), H(null);
1541
+ We(!1), B(null);
1542
1542
  }, onPointerMove: (y) => {
1543
- var P, V, q, Q;
1544
- if (!be.current || !ge || ((P = window.getSelection()) == null ? void 0 : P.toString().length) > 0) return;
1545
- let se = y.clientY - be.current.y, pe = y.clientX - be.current.x, J = (V = e.swipeDirections) != null ? V : Va(ae);
1546
- !L && (Math.abs(pe) > 1 || Math.abs(se) > 1) && H(Math.abs(pe) > Math.abs(se) ? "x" : "y");
1543
+ var I, H, q, Q;
1544
+ if (!be.current || !ge || ((I = window.getSelection()) == null ? void 0 : I.toString().length) > 0) return;
1545
+ let se = y.clientY - be.current.y, pe = y.clientX - be.current.x, J = (H = e.swipeDirections) != null ? H : Ha(ae);
1546
+ !L && (Math.abs(pe) > 1 || Math.abs(se) > 1) && B(Math.abs(pe) > Math.abs(se) ? "x" : "y");
1547
1547
  let le = { x: 0, y: 0 };
1548
1548
  L === "y" ? (J.includes("top") || J.includes("bottom")) && (J.includes("top") && se < 0 || J.includes("bottom") && se > 0) && (le.y = se) : L === "x" && (J.includes("left") || J.includes("right")) && (J.includes("left") && pe < 0 || J.includes("right") && pe > 0) && (le.x = pe), (Math.abs(le.x) > 0 || Math.abs(le.y) > 0) && mt(!0), (q = fe.current) == null || q.style.setProperty("--swipe-amount-x", `${le.x}px`), (Q = fe.current) == null || Q.style.setProperty("--swipe-amount-y", `${le.y}px`);
1549
- } }, Fo && !l.jsx ? p.createElement("button", { "aria-label": je, "data-disabled": Ze, "data-close-button": !0, onClick: Ze || !ge ? () => {
1549
+ } }, $o && !l.jsx ? p.createElement("button", { "aria-label": je, "data-disabled": Ze, "data-close-button": !0, onClick: Ze || !ge ? () => {
1550
1550
  } : () => {
1551
1551
  var y;
1552
1552
  ne(), (y = l.onDismiss) == null || y.call(l, l);
1553
- }, className: ee(w == null ? void 0 : w.closeButton, (r = l == null ? void 0 : l.classNames) == null ? void 0 : r.closeButton) }, (s = U == null ? void 0 : U.close) != null ? s : ba) : null, l.jsx || Xe(l.title) ? l.jsx ? l.jsx : typeof l.title == "function" ? l.title() : l.title : p.createElement(p.Fragment, null, Z || l.icon || l.promise ? p.createElement("div", { "data-icon": "", className: ee(w == null ? void 0 : w.icon, (i = l == null ? void 0 : l.classNames) == null ? void 0 : i.icon) }, l.promise || l.type === "loading" && !l.icon ? l.icon || Wo() : null, l.type !== "loading" ? l.icon || (U == null ? void 0 : U[Z]) || ua(Z) : null) : null, p.createElement("div", { "data-content": "", className: ee(w == null ? void 0 : w.content, (d = l == null ? void 0 : l.classNames) == null ? void 0 : d.content) }, p.createElement("div", { "data-title": "", className: ee(w == null ? void 0 : w.title, (c = l == null ? void 0 : l.classNames) == null ? void 0 : c.title) }, typeof l.title == "function" ? l.title() : l.title), l.description ? p.createElement("div", { "data-description": "", className: ee(de, Oo, w == null ? void 0 : w.description, (u = l == null ? void 0 : l.classNames) == null ? void 0 : u.description) }, typeof l.description == "function" ? l.description() : l.description) : null), Xe(l.cancel) ? l.cancel : l.cancel && De(l.cancel) ? p.createElement("button", { "data-button": !0, "data-cancel": !0, style: l.cancelButtonStyle || z, onClick: (y) => {
1554
- var P, V;
1555
- De(l.cancel) && ge && ((V = (P = l.cancel).onClick) == null || V.call(P, y), ne());
1556
- }, className: ee(w == null ? void 0 : w.cancelButton, (f = l == null ? void 0 : l.classNames) == null ? void 0 : f.cancelButton) }, l.cancel.label) : null, Xe(l.action) ? l.action : l.action && De(l.action) ? p.createElement("button", { "data-button": !0, "data-action": !0, style: l.actionButtonStyle || O, onClick: (y) => {
1557
- var P, V;
1558
- De(l.action) && ((V = (P = l.action).onClick) == null || V.call(P, y), !y.defaultPrevented && ne());
1559
- }, className: ee(w == null ? void 0 : w.actionButton, (h = l == null ? void 0 : l.classNames) == null ? void 0 : h.actionButton) }, l.action.label) : null));
1553
+ }, className: ee(x == null ? void 0 : x.closeButton, (r = l == null ? void 0 : l.classNames) == null ? void 0 : r.closeButton) }, (s = U == null ? void 0 : U.close) != null ? s : ya) : null, l.jsx || Xe(l.title) ? l.jsx ? l.jsx : typeof l.title == "function" ? l.title() : l.title : p.createElement(p.Fragment, null, Z || l.icon || l.promise ? p.createElement("div", { "data-icon": "", className: ee(x == null ? void 0 : x.icon, (i = l == null ? void 0 : l.classNames) == null ? void 0 : i.icon) }, l.promise || l.type === "loading" && !l.icon ? l.icon || Wo() : null, l.type !== "loading" ? l.icon || (U == null ? void 0 : U[Z]) || fa(Z) : null) : null, p.createElement("div", { "data-content": "", className: ee(x == null ? void 0 : x.content, (c = l == null ? void 0 : l.classNames) == null ? void 0 : c.content) }, p.createElement("div", { "data-title": "", className: ee(x == null ? void 0 : x.title, (d = l == null ? void 0 : l.classNames) == null ? void 0 : d.title) }, typeof l.title == "function" ? l.title() : l.title), l.description ? p.createElement("div", { "data-description": "", className: ee(de, Oo, x == null ? void 0 : x.description, (u = l == null ? void 0 : l.classNames) == null ? void 0 : u.description) }, typeof l.description == "function" ? l.description() : l.description) : null), Xe(l.cancel) ? l.cancel : l.cancel && De(l.cancel) ? p.createElement("button", { "data-button": !0, "data-cancel": !0, style: l.cancelButtonStyle || V, onClick: (y) => {
1554
+ var I, H;
1555
+ De(l.cancel) && ge && ((H = (I = l.cancel).onClick) == null || H.call(I, y), ne());
1556
+ }, className: ee(x == null ? void 0 : x.cancelButton, (f = l == null ? void 0 : l.classNames) == null ? void 0 : f.cancelButton) }, l.cancel.label) : null, Xe(l.action) ? l.action : l.action && De(l.action) ? p.createElement("button", { "data-button": !0, "data-action": !0, style: l.actionButtonStyle || O, onClick: (y) => {
1557
+ var I, H;
1558
+ De(l.action) && ((H = (I = l.action).onClick) == null || H.call(I, y), !y.defaultPrevented && ne());
1559
+ }, className: ee(x == null ? void 0 : x.actionButton, (h = l == null ? void 0 : l.classNames) == null ? void 0 : h.actionButton) }, l.action.label) : null));
1560
1560
  };
1561
1561
  function Pt() {
1562
1562
  if (typeof window > "u" || typeof document > "u") return "ltr";
1563
1563
  let e = document.documentElement.getAttribute("dir");
1564
1564
  return e === "auto" || !e ? window.getComputedStyle(document.documentElement).direction : e;
1565
1565
  }
1566
- function _a(e, t) {
1566
+ function Ba(e, t) {
1567
1567
  let o = {};
1568
1568
  return [e, t].forEach((a, r) => {
1569
- let s = r === 1, i = s ? "--mobile-offset" : "--offset", d = s ? Ia : ka;
1570
- function c(u) {
1569
+ let s = r === 1, i = s ? "--mobile-offset" : "--offset", c = s ? Ma : Ia;
1570
+ function d(u) {
1571
1571
  ["top", "right", "bottom", "left"].forEach((f) => {
1572
1572
  o[`${i}-${f}`] = typeof u == "number" ? `${u}px` : u;
1573
1573
  });
1574
1574
  }
1575
- typeof a == "number" || typeof a == "string" ? c(a) : typeof a == "object" ? ["top", "right", "bottom", "left"].forEach((u) => {
1576
- a[u] === void 0 ? o[`${i}-${u}`] = d : o[`${i}-${u}`] = typeof a[u] == "number" ? `${a[u]}px` : a[u];
1577
- }) : c(d);
1575
+ typeof a == "number" || typeof a == "string" ? d(a) : typeof a == "object" ? ["top", "right", "bottom", "left"].forEach((u) => {
1576
+ a[u] === void 0 ? o[`${i}-${u}`] = c : o[`${i}-${u}`] = typeof a[u] == "number" ? `${a[u]}px` : a[u];
1577
+ }) : d(c);
1578
1578
  }), o;
1579
1579
  }
1580
1580
  Yo(function(e, t) {
1581
- let { invert: o, position: a = "bottom-right", hotkey: r = ["altKey", "KeyT"], expand: s, closeButton: i, className: d, offset: c, mobileOffset: u, theme: f = "light", richColors: h, duration: g, style: l, visibleToasts: N = Pa, toastOptions: v, dir: b = Pt(), gap: E = Da, loadingIcon: S, icons: x, containerAriaLabel: T = "Notifications", pauseWhenPageIsHidden: B } = e, [R, D] = p.useState([]), A = p.useMemo(() => Array.from(new Set([a].concat(R.filter((M) => M.position).map((M) => M.position)))), [R, a]), [I, z] = p.useState([]), [O, C] = p.useState(!1), [de, $] = p.useState(!1), [ae, F] = p.useState(f !== "system" ? f : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), K = p.useRef(null), ue = r.join("+").replace(/Key/g, "").replace(/Digit/g, ""), w = p.useRef(null), U = p.useRef(!1), je = p.useCallback((M) => {
1582
- D((L) => {
1583
- var H;
1584
- return (H = L.find((j) => j.id === M.id)) != null && H.delete || G.dismiss(M.id), L.filter(({ id: j }) => j !== M.id);
1581
+ let { invert: o, position: a = "bottom-right", hotkey: r = ["altKey", "KeyT"], expand: s, closeButton: i, className: c, offset: d, mobileOffset: u, theme: f = "light", richColors: h, duration: g, style: l, visibleToasts: N = ka, toastOptions: v, dir: b = Pt(), gap: S = Aa, loadingIcon: C, icons: w, containerAriaLabel: T = "Notifications", pauseWhenPageIsHidden: _ } = e, [R, k] = p.useState([]), D = p.useMemo(() => Array.from(new Set([a].concat(R.filter((A) => A.position).map((A) => A.position)))), [R, a]), [P, V] = p.useState([]), [O, E] = p.useState(!1), [de, F] = p.useState(!1), [ae, $] = p.useState(f !== "system" ? f : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), K = p.useRef(null), ue = r.join("+").replace(/Key/g, "").replace(/Digit/g, ""), x = p.useRef(null), U = p.useRef(!1), je = p.useCallback((A) => {
1582
+ k((L) => {
1583
+ var B;
1584
+ return (B = L.find((j) => j.id === A.id)) != null && B.delete || G.dismiss(A.id), L.filter(({ id: j }) => j !== A.id);
1585
1585
  });
1586
1586
  }, []);
1587
- return p.useEffect(() => G.subscribe((M) => {
1588
- if (M.dismiss) {
1589
- D((L) => L.map((H) => H.id === M.id ? { ...H, delete: !0 } : H));
1587
+ return p.useEffect(() => G.subscribe((A) => {
1588
+ if (A.dismiss) {
1589
+ k((L) => L.map((B) => B.id === A.id ? { ...B, delete: !0 } : B));
1590
1590
  return;
1591
1591
  }
1592
1592
  setTimeout(() => {
1593
- gr.flushSync(() => {
1594
- D((L) => {
1595
- let H = L.findIndex((j) => j.id === M.id);
1596
- return H !== -1 ? [...L.slice(0, H), { ...L[H], ...M }, ...L.slice(H + 1)] : [M, ...L];
1593
+ vr.flushSync(() => {
1594
+ k((L) => {
1595
+ let B = L.findIndex((j) => j.id === A.id);
1596
+ return B !== -1 ? [...L.slice(0, B), { ...L[B], ...A }, ...L.slice(B + 1)] : [A, ...L];
1597
1597
  });
1598
1598
  });
1599
1599
  });
1600
1600
  }), []), p.useEffect(() => {
1601
1601
  if (f !== "system") {
1602
- F(f);
1602
+ $(f);
1603
1603
  return;
1604
1604
  }
1605
- if (f === "system" && (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? F("dark") : F("light")), typeof window > "u") return;
1606
- let M = window.matchMedia("(prefers-color-scheme: dark)");
1605
+ if (f === "system" && (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? $("dark") : $("light")), typeof window > "u") return;
1606
+ let A = window.matchMedia("(prefers-color-scheme: dark)");
1607
1607
  try {
1608
- M.addEventListener("change", ({ matches: L }) => {
1609
- F(L ? "dark" : "light");
1608
+ A.addEventListener("change", ({ matches: L }) => {
1609
+ $(L ? "dark" : "light");
1610
1610
  });
1611
1611
  } catch {
1612
- M.addListener(({ matches: H }) => {
1612
+ A.addListener(({ matches: B }) => {
1613
1613
  try {
1614
- F(H ? "dark" : "light");
1614
+ $(B ? "dark" : "light");
1615
1615
  } catch (j) {
1616
1616
  console.error(j);
1617
1617
  }
1618
1618
  });
1619
1619
  }
1620
1620
  }, [f]), p.useEffect(() => {
1621
- R.length <= 1 && C(!1);
1621
+ R.length <= 1 && E(!1);
1622
1622
  }, [R]), p.useEffect(() => {
1623
- let M = (L) => {
1624
- var H, j;
1625
- r.every((he) => L[he] || L.code === he) && (C(!0), (H = K.current) == null || H.focus()), L.code === "Escape" && (document.activeElement === K.current || (j = K.current) != null && j.contains(document.activeElement)) && C(!1);
1623
+ let A = (L) => {
1624
+ var B, j;
1625
+ r.every((he) => L[he] || L.code === he) && (E(!0), (B = K.current) == null || B.focus()), L.code === "Escape" && (document.activeElement === K.current || (j = K.current) != null && j.contains(document.activeElement)) && E(!1);
1626
1626
  };
1627
- return document.addEventListener("keydown", M), () => document.removeEventListener("keydown", M);
1627
+ return document.addEventListener("keydown", A), () => document.removeEventListener("keydown", A);
1628
1628
  }, [r]), p.useEffect(() => {
1629
1629
  if (K.current) return () => {
1630
- w.current && (w.current.focus({ preventScroll: !0 }), w.current = null, U.current = !1);
1630
+ x.current && (x.current.focus({ preventScroll: !0 }), x.current = null, U.current = !1);
1631
1631
  };
1632
- }, [K.current]), p.createElement("section", { ref: t, "aria-label": `${T} ${ue}`, tabIndex: -1, "aria-live": "polite", "aria-relevant": "additions text", "aria-atomic": "false", suppressHydrationWarning: !0 }, A.map((M, L) => {
1633
- var H;
1634
- let [j, he] = M.split("-");
1635
- return R.length ? p.createElement("ol", { key: M, dir: b === "auto" ? Pt() : b, tabIndex: -1, ref: K, className: d, "data-sonner-toaster": !0, "data-theme": ae, "data-y-position": j, "data-lifted": O && R.length > 1 && !s, "data-x-position": he, style: { "--front-toast-height": `${((H = I[0]) == null ? void 0 : H.height) || 0}px`, "--width": `${Ma}px`, "--gap": `${E}px`, ...l, ..._a(c, u) }, onBlur: (_) => {
1636
- U.current && !_.currentTarget.contains(_.relatedTarget) && (U.current = !1, w.current && (w.current.focus({ preventScroll: !0 }), w.current = null));
1637
- }, onFocus: (_) => {
1638
- _.target instanceof HTMLElement && _.target.dataset.dismissible === "false" || U.current || (U.current = !0, w.current = _.relatedTarget);
1639
- }, onMouseEnter: () => C(!0), onMouseMove: () => C(!0), onMouseLeave: () => {
1640
- de || C(!1);
1641
- }, onDragEnd: () => C(!1), onPointerDown: (_) => {
1642
- _.target instanceof HTMLElement && _.target.dataset.dismissible === "false" || $(!0);
1643
- }, onPointerUp: () => $(!1) }, R.filter((_) => !_.position && L === 0 || _.position === M).map((_, Ge) => {
1632
+ }, [K.current]), p.createElement("section", { ref: t, "aria-label": `${T} ${ue}`, tabIndex: -1, "aria-live": "polite", "aria-relevant": "additions text", "aria-atomic": "false", suppressHydrationWarning: !0 }, D.map((A, L) => {
1633
+ var B;
1634
+ let [j, he] = A.split("-");
1635
+ return R.length ? p.createElement("ol", { key: A, dir: b === "auto" ? Pt() : b, tabIndex: -1, ref: K, className: c, "data-sonner-toaster": !0, "data-theme": ae, "data-y-position": j, "data-lifted": O && R.length > 1 && !s, "data-x-position": he, style: { "--front-toast-height": `${((B = P[0]) == null ? void 0 : B.height) || 0}px`, "--width": `${Da}px`, "--gap": `${S}px`, ...l, ...Ba(d, u) }, onBlur: (z) => {
1636
+ U.current && !z.currentTarget.contains(z.relatedTarget) && (U.current = !1, x.current && (x.current.focus({ preventScroll: !0 }), x.current = null));
1637
+ }, onFocus: (z) => {
1638
+ z.target instanceof HTMLElement && z.target.dataset.dismissible === "false" || U.current || (U.current = !0, x.current = z.relatedTarget);
1639
+ }, onMouseEnter: () => E(!0), onMouseMove: () => E(!0), onMouseLeave: () => {
1640
+ de || E(!1);
1641
+ }, onDragEnd: () => E(!1), onPointerDown: (z) => {
1642
+ z.target instanceof HTMLElement && z.target.dataset.dismissible === "false" || F(!0);
1643
+ }, onPointerUp: () => F(!1) }, R.filter((z) => !z.position && L === 0 || z.position === A).map((z, Ge) => {
1644
1644
  var xe, ke;
1645
- return p.createElement(Ha, { key: _.id, icons: x, index: Ge, toast: _, defaultRichColors: h, duration: (xe = v == null ? void 0 : v.duration) != null ? xe : g, className: v == null ? void 0 : v.className, descriptionClassName: v == null ? void 0 : v.descriptionClassName, invert: o, visibleToasts: N, closeButton: (ke = v == null ? void 0 : v.closeButton) != null ? ke : i, interacting: de, position: M, style: v == null ? void 0 : v.style, unstyled: v == null ? void 0 : v.unstyled, classNames: v == null ? void 0 : v.classNames, cancelButtonStyle: v == null ? void 0 : v.cancelButtonStyle, actionButtonStyle: v == null ? void 0 : v.actionButtonStyle, removeToast: je, toasts: R.filter((Ce) => Ce.position == _.position), heights: I.filter((Ce) => Ce.position == _.position), setHeights: z, expandByDefault: s, gap: E, loadingIcon: S, expanded: O, pauseWhenPageIsHidden: B, swipeDirections: e.swipeDirections });
1645
+ return p.createElement(_a, { key: z.id, icons: w, index: Ge, toast: z, defaultRichColors: h, duration: (xe = v == null ? void 0 : v.duration) != null ? xe : g, className: v == null ? void 0 : v.className, descriptionClassName: v == null ? void 0 : v.descriptionClassName, invert: o, visibleToasts: N, closeButton: (ke = v == null ? void 0 : v.closeButton) != null ? ke : i, interacting: de, position: A, style: v == null ? void 0 : v.style, unstyled: v == null ? void 0 : v.unstyled, classNames: v == null ? void 0 : v.classNames, cancelButtonStyle: v == null ? void 0 : v.cancelButtonStyle, actionButtonStyle: v == null ? void 0 : v.actionButtonStyle, removeToast: je, toasts: R.filter((Ce) => Ce.position == z.position), heights: P.filter((Ce) => Ce.position == z.position), setHeights: V, expandByDefault: s, gap: S, loadingIcon: C, expanded: O, pauseWhenPageIsHidden: _, swipeDirections: e.swipeDirections });
1646
1646
  })) : null;
1647
1647
  }));
1648
1648
  });
@@ -1651,38 +1651,38 @@ const Io = {
1651
1651
  tablet: { width: 768, icon: rr, label: "Tablet (768px)" },
1652
1652
  small: { width: 1024, icon: or, label: "Small Desktop (1024px)" },
1653
1653
  desktop: { width: "100%", icon: tr, label: "Desktop (Full)" }
1654
- }, Ba = ({ onSave: e, deviceSize: t, onDeviceSizeChange: o }) => {
1655
- const { actions: a, query: r, canUndo: s, canRedo: i } = we((c, u) => ({
1654
+ }, za = ({ onSave: e, deviceSize: t, onDeviceSizeChange: o }) => {
1655
+ const { actions: a, query: r, canUndo: s, canRedo: i } = we((d, u) => ({
1656
1656
  canUndo: u.history.canUndo(),
1657
1657
  canRedo: u.history.canRedo()
1658
- })), d = () => {
1659
- const c = r.serialize();
1660
- e == null || e(c), Ta.success("Page saved successfully");
1658
+ })), c = () => {
1659
+ const d = r.serialize();
1660
+ e == null || e(d), Ra.success("Page saved successfully");
1661
1661
  };
1662
- return /* @__PURE__ */ k("div", { className: "flex items-center gap-4", children: [
1662
+ return /* @__PURE__ */ M("div", { className: "flex items-center gap-4", children: [
1663
1663
  /* @__PURE__ */ n(nr, { children: /* @__PURE__ */ n(
1664
1664
  Po,
1665
1665
  {
1666
1666
  type: "single",
1667
1667
  value: t,
1668
- onValueChange: (c) => c && o(c),
1668
+ onValueChange: (d) => d && o(d),
1669
1669
  className: "bg-muted rounded-md p-1",
1670
- children: Object.entries(Io).map(([c, { icon: u, label: f }]) => /* @__PURE__ */ k(sr, { children: [
1670
+ children: Object.entries(Io).map(([d, { icon: u, label: f }]) => /* @__PURE__ */ M(sr, { children: [
1671
1671
  /* @__PURE__ */ n(lr, { asChild: !0, children: /* @__PURE__ */ n(
1672
1672
  ko,
1673
1673
  {
1674
- value: c,
1674
+ value: d,
1675
1675
  size: "sm",
1676
1676
  className: "data-[state=on]:bg-background data-[state=on]:shadow-sm",
1677
1677
  children: /* @__PURE__ */ n(u, { className: "h-4 w-4" })
1678
1678
  }
1679
1679
  ) }),
1680
1680
  /* @__PURE__ */ n(ir, { side: "bottom", children: /* @__PURE__ */ n("p", { children: f }) })
1681
- ] }, c))
1681
+ ] }, d))
1682
1682
  }
1683
1683
  ) }),
1684
1684
  /* @__PURE__ */ n("div", { className: "h-6 w-px bg-border" }),
1685
- /* @__PURE__ */ k("div", { className: "flex items-center gap-2", children: [
1685
+ /* @__PURE__ */ M("div", { className: "flex items-center gap-2", children: [
1686
1686
  /* @__PURE__ */ n(
1687
1687
  Ae,
1688
1688
  {
@@ -1690,7 +1690,7 @@ const Io = {
1690
1690
  size: "sm",
1691
1691
  onClick: () => a.history.undo(),
1692
1692
  disabled: !s,
1693
- children: /* @__PURE__ */ n(xr, { className: "h-4 w-4" })
1693
+ children: /* @__PURE__ */ n(Cr, { className: "h-4 w-4" })
1694
1694
  }
1695
1695
  ),
1696
1696
  /* @__PURE__ */ n(
@@ -1700,11 +1700,11 @@ const Io = {
1700
1700
  size: "sm",
1701
1701
  onClick: () => a.history.redo(),
1702
1702
  disabled: !i,
1703
- children: /* @__PURE__ */ n(br, { className: "h-4 w-4" })
1703
+ children: /* @__PURE__ */ n(yr, { className: "h-4 w-4" })
1704
1704
  }
1705
1705
  ),
1706
- /* @__PURE__ */ k(Ae, { size: "sm", onClick: d, children: [
1707
- /* @__PURE__ */ n(yr, { className: "h-4 w-4 mr-2" }),
1706
+ /* @__PURE__ */ M(Ae, { size: "sm", onClick: c, children: [
1707
+ /* @__PURE__ */ n(wr, { className: "h-4 w-4 mr-2" }),
1708
1708
  "Save"
1709
1709
  ] })
1710
1710
  ] })
@@ -1737,27 +1737,69 @@ ft.craft = {
1737
1737
  )
1738
1738
  }
1739
1739
  };
1740
- const za = ({ htmlJson: e }) => {
1740
+ const Oa = ({ htmlJson: e }) => {
1741
1741
  const { actions: t } = we();
1742
1742
  return Uo(() => {
1743
1743
  e && t.deserialize(e);
1744
1744
  }, [e]), /* @__PURE__ */ n(cr, { children: /* @__PURE__ */ n(me, { id: "mainBody", is: ft, canvas: !0 }) });
1745
- }, Mo = ({ className: e, style: t, children: o }) => {
1745
+ }, Mo = ({
1746
+ className: e,
1747
+ backgroundColor: t = "transparent",
1748
+ backgroundImage: o = "",
1749
+ backgroundSize: a = "cover",
1750
+ backgroundRepeat: r = "no-repeat",
1751
+ padding: s = { top: 16, right: 16, bottom: 16, left: 16 },
1752
+ margin: i = { top: 0, right: 0, bottom: 0, left: 0 },
1753
+ width: c = "auto",
1754
+ minHeight: d = 100,
1755
+ maxWidth: u = "none",
1756
+ display: f = "block",
1757
+ flexDirection: h = "column",
1758
+ justifyContent: g = "flex-start",
1759
+ alignItems: l = "stretch",
1760
+ gap: N = 0,
1761
+ borderRadius: v = 8,
1762
+ borderWidth: b = 1,
1763
+ borderColor: S = "transparent",
1764
+ borderStyle: C = "dashed",
1765
+ boxShadow: w = "none",
1766
+ children: T
1767
+ }) => {
1746
1768
  const {
1747
- connectors: { connect: a, drag: r },
1748
- selected: s
1749
- } = Oe((i) => ({
1750
- selected: i.events.selected
1751
- }));
1769
+ connectors: { connect: _, drag: R },
1770
+ selected: k
1771
+ } = Oe((V) => ({
1772
+ selected: V.events.selected
1773
+ })), D = typeof s == "object" ? `${s.top}px ${s.right}px ${s.bottom}px ${s.left}px` : `${s}px`, P = typeof i == "object" ? `${i.top}px ${i.right}px ${i.bottom}px ${i.left}px` : `${i}px`;
1752
1774
  return /* @__PURE__ */ n(
1753
1775
  "div",
1754
1776
  {
1755
- style: { ...t },
1756
- className: Ot(e, s ? "border border-blue-500" : ""),
1757
- ref: (i) => {
1758
- i && a(r(i));
1777
+ style: {
1778
+ backgroundColor: t,
1779
+ backgroundImage: o ? `url(${o})` : "none",
1780
+ backgroundSize: a,
1781
+ backgroundRepeat: r,
1782
+ padding: D,
1783
+ margin: P,
1784
+ width: c === "auto" ? "100%" : c,
1785
+ minHeight: `${d}px`,
1786
+ maxWidth: u === "none" ? "none" : `${u}px`,
1787
+ display: f,
1788
+ flexDirection: f === "flex" ? h : void 0,
1789
+ justifyContent: f === "flex" ? g : void 0,
1790
+ alignItems: f === "flex" ? l : void 0,
1791
+ gap: f === "flex" ? `${N}px` : void 0,
1792
+ borderRadius: `${v}px`,
1793
+ borderWidth: `${b}px`,
1794
+ borderColor: S,
1795
+ borderStyle: C,
1796
+ boxShadow: w === "none" ? "none" : w
1759
1797
  },
1760
- children: o
1798
+ className: Ot(e, k ? "border border-blue-500" : ""),
1799
+ ref: (V) => {
1800
+ V && _(R(V));
1801
+ },
1802
+ children: T
1761
1803
  }
1762
1804
  );
1763
1805
  };
@@ -1765,10 +1807,29 @@ Mo.craft = {
1765
1807
  isCanvas: !0,
1766
1808
  props: {
1767
1809
  ClassNames: "p-4",
1768
- style: {}
1769
- }
1810
+ backgroundColor: "transparent",
1811
+ backgroundImage: "",
1812
+ backgroundSize: "cover",
1813
+ backgroundRepeat: "no-repeat",
1814
+ padding: { top: 16, right: 16, bottom: 16, left: 16 },
1815
+ margin: { top: 0, right: 0, bottom: 0, left: 0 },
1816
+ width: "auto",
1817
+ minHeight: 100,
1818
+ maxWidth: "none",
1819
+ display: "block",
1820
+ flexDirection: "column",
1821
+ justifyContent: "flex-start",
1822
+ alignItems: "stretch",
1823
+ gap: 0,
1824
+ borderRadius: 8,
1825
+ borderWidth: 1,
1826
+ borderColor: "transparent",
1827
+ borderStyle: "dashed",
1828
+ boxShadow: "none"
1829
+ },
1830
+ related: { settings: dr }
1770
1831
  };
1771
- const Oa = () => /* @__PURE__ */ k(
1832
+ const $a = () => /* @__PURE__ */ M(
1772
1833
  "svg",
1773
1834
  {
1774
1835
  width: "150",
@@ -1907,8 +1968,8 @@ const Oa = () => /* @__PURE__ */ k(
1907
1968
  minHeight: r = 100,
1908
1969
  maxWidth: s = "none",
1909
1970
  display: i = "block",
1910
- flexDirection: d = "column",
1911
- justifyContent: c = "flex-start",
1971
+ flexDirection: c = "column",
1972
+ justifyContent: d = "flex-start",
1912
1973
  alignItems: u = "stretch",
1913
1974
  gap: f = 0,
1914
1975
  borderRadius: h = 8,
@@ -1919,11 +1980,11 @@ const Oa = () => /* @__PURE__ */ k(
1919
1980
  children: b
1920
1981
  }) => {
1921
1982
  const {
1922
- connectors: { connect: E, drag: S },
1923
- isActive: x
1924
- } = Oe((D) => ({
1925
- isActive: D.events.selected
1926
- })), T = typeof t == "object" ? `${t.top}px ${t.right}px ${t.bottom}px ${t.left}px` : `${t}px`, B = typeof o == "object" ? `${o.top}px ${o.right}px ${o.bottom}px ${o.left}px` : `${o}px`, R = [
1983
+ connectors: { connect: S, drag: C },
1984
+ isActive: w
1985
+ } = Oe((k) => ({
1986
+ isActive: k.events.selected
1987
+ })), T = typeof t == "object" ? `${t.top}px ${t.right}px ${t.bottom}px ${t.left}px` : `${t}px`, _ = typeof o == "object" ? `${o.top}px ${o.right}px ${o.bottom}px ${o.left}px` : `${o}px`, R = [
1927
1988
  {
1928
1989
  url: "https://myracereel.com/privacy-data-privacy",
1929
1990
  name: "Privacy & Data Policy"
@@ -1941,13 +2002,13 @@ const Oa = () => /* @__PURE__ */ k(
1941
2002
  style: {
1942
2003
  backgroundColor: e,
1943
2004
  padding: T,
1944
- margin: B,
2005
+ margin: _,
1945
2006
  width: a === "auto" ? "100%" : a,
1946
2007
  minHeight: `${r}px`,
1947
2008
  maxWidth: s === "none" ? "none" : `${s}px`,
1948
2009
  display: i,
1949
- flexDirection: i === "flex" ? d : void 0,
1950
- justifyContent: i === "flex" ? c : void 0,
2010
+ flexDirection: i === "flex" ? c : void 0,
2011
+ justifyContent: i === "flex" ? d : void 0,
1951
2012
  alignItems: i === "flex" ? u : void 0,
1952
2013
  gap: i === "flex" ? `${f}px` : void 0,
1953
2014
  borderRadius: `${h}px`,
@@ -1957,21 +2018,21 @@ const Oa = () => /* @__PURE__ */ k(
1957
2018
  boxShadow: v === "none" ? "none" : v
1958
2019
  },
1959
2020
  className: "bg-black",
1960
- ref: (D) => D && E(S(D)),
1961
- children: /* @__PURE__ */ n(Ee, { className: "flex justify-center w-full", children: /* @__PURE__ */ k("div", { className: "w-full flex flex-col py-10 gap-y-3.5 ", children: [
1962
- /* @__PURE__ */ k("div", { className: "flex w-full gap-x-1 justify-center items-center", children: [
2021
+ ref: (k) => k && S(C(k)),
2022
+ children: /* @__PURE__ */ n(Ee, { className: "flex justify-center w-full", children: /* @__PURE__ */ M("div", { className: "w-full flex flex-col py-10 gap-y-3.5 ", children: [
2023
+ /* @__PURE__ */ M("div", { className: "flex w-full gap-x-1 justify-center items-center", children: [
1963
2024
  /* @__PURE__ */ n("div", { className: "text-white text-sm", children: "Powered by" }),
1964
- /* @__PURE__ */ n(Oa, {})
2025
+ /* @__PURE__ */ n($a, {})
1965
2026
  ] }),
1966
- /* @__PURE__ */ n("div", { className: "flex @md:flex-row @max-md:flex-col md:flex-row justify-center items-center gap-x-6 gap-y-2 w-full flex-col", children: R.map((D) => /* @__PURE__ */ n(
2027
+ /* @__PURE__ */ n("div", { className: "flex @md:flex-row @max-md:flex-col md:flex-row justify-center items-center gap-x-6 gap-y-2 w-full flex-col", children: R.map((k) => /* @__PURE__ */ n(
1967
2028
  "a",
1968
2029
  {
1969
2030
  className: "text-white",
1970
- href: D.url,
2031
+ href: k.url,
1971
2032
  target: "_blank",
1972
- children: D.name
2033
+ children: k.name
1973
2034
  },
1974
- D.name
2035
+ k.name
1975
2036
  )) })
1976
2037
  ] }) })
1977
2038
  }
@@ -1993,8 +2054,8 @@ const Oa = () => /* @__PURE__ */ k(
1993
2054
  bottom: t.margin || 0,
1994
2055
  left: t.margin || 0
1995
2056
  };
1996
- return /* @__PURE__ */ k("div", { className: "space-y-3", children: [
1997
- /* @__PURE__ */ k(Me, { title: "Layout", defaultOpen: !0, children: [
2057
+ return /* @__PURE__ */ M("div", { className: "space-y-3", children: [
2058
+ /* @__PURE__ */ M(Me, { title: "Layout", defaultOpen: !0, children: [
1998
2059
  /* @__PURE__ */ n(
1999
2060
  xt,
2000
2061
  {
@@ -2007,9 +2068,9 @@ const Oa = () => /* @__PURE__ */ k(
2007
2068
  onChange: (r) => e((s) => s.display = r)
2008
2069
  }
2009
2070
  ),
2010
- t.display === "flex" && /* @__PURE__ */ k(ot, { children: [
2071
+ t.display === "flex" && /* @__PURE__ */ M(ot, { children: [
2011
2072
  /* @__PURE__ */ n(
2012
- dr,
2073
+ ur,
2013
2074
  {
2014
2075
  label: "Direction",
2015
2076
  value: t.flexDirection || "column",
@@ -2045,7 +2106,7 @@ const Oa = () => /* @__PURE__ */ k(
2045
2106
  )
2046
2107
  ] })
2047
2108
  ] }),
2048
- /* @__PURE__ */ k(Me, { title: "Spacing", defaultOpen: !0, children: [
2109
+ /* @__PURE__ */ M(Me, { title: "Spacing", defaultOpen: !0, children: [
2049
2110
  /* @__PURE__ */ n(
2050
2111
  Ct,
2051
2112
  {
@@ -2071,7 +2132,7 @@ const Oa = () => /* @__PURE__ */ k(
2071
2132
  onChange: (r) => e((s) => s.background = r)
2072
2133
  }
2073
2134
  ) }),
2074
- /* @__PURE__ */ k(Me, { title: "Border", defaultOpen: !1, children: [
2135
+ /* @__PURE__ */ M(Me, { title: "Border", defaultOpen: !1, children: [
2075
2136
  /* @__PURE__ */ n(
2076
2137
  Ke,
2077
2138
  {
@@ -2123,9 +2184,9 @@ Do.craft = {
2123
2184
  },
2124
2185
  related: { settings: Fa }
2125
2186
  };
2126
- const Ya = ({ initialData: e, onSave: t, onStateChange: o }) => {
2127
- var c;
2128
- const a = ur(), [r, s] = Te("desktop"), i = ((c = Io[r]) == null ? void 0 : c.width) || "100%", d = (u) => {
2187
+ const Ua = ({ initialData: e, onSave: t, onStateChange: o }) => {
2188
+ var d;
2189
+ const a = fr(), [r, s] = Te("desktop"), i = ((d = Io[r]) == null ? void 0 : d.width) || "100%", c = (u) => {
2129
2190
  if (o)
2130
2191
  try {
2131
2192
  const f = u.serialize();
@@ -2134,7 +2195,7 @@ const Ya = ({ initialData: e, onSave: t, onStateChange: o }) => {
2134
2195
  }
2135
2196
  };
2136
2197
  return /* @__PURE__ */ n(
2137
- fr,
2198
+ pr,
2138
2199
  {
2139
2200
  resolver: {
2140
2201
  Body: ft,
@@ -2143,24 +2204,24 @@ const Ya = ({ initialData: e, onSave: t, onStateChange: o }) => {
2143
2204
  Section: Mt,
2144
2205
  Container: Ee,
2145
2206
  Text: At,
2146
- ButtonComponent: Lt,
2207
+ ButtonComponent: Vt,
2147
2208
  Heading: Dt,
2148
2209
  Image: Ht,
2149
- Img: pr,
2210
+ Img: mr,
2150
2211
  Divider: Bt,
2151
2212
  Spacer: zt,
2152
2213
  Video: _t,
2153
2214
  Columns: It,
2154
- Link: Vt,
2215
+ Link: Lt,
2155
2216
  Footer: Do
2156
2217
  },
2157
2218
  enabled: !0,
2158
- onNodesChange: (u) => d(u),
2159
- children: /* @__PURE__ */ n(mr, { value: r, children: /* @__PURE__ */ n(hr, { value: a, children: /* @__PURE__ */ k("div", { className: "flex flex-col h-full", children: [
2160
- /* @__PURE__ */ k("div", { className: "flex items-center justify-between pb-4 border-b border-border", children: [
2219
+ onNodesChange: (u) => c(u),
2220
+ children: /* @__PURE__ */ n(hr, { value: r, children: /* @__PURE__ */ n(gr, { value: a, children: /* @__PURE__ */ M("div", { className: "flex flex-col h-full", children: [
2221
+ /* @__PURE__ */ M("div", { className: "flex items-center justify-between pb-4 border-b border-border", children: [
2161
2222
  /* @__PURE__ */ n("h2", { className: "text-lg font-semibold", children: "Page Builder" }),
2162
2223
  /* @__PURE__ */ n(
2163
- Ba,
2224
+ za,
2164
2225
  {
2165
2226
  onSave: t,
2166
2227
  deviceSize: r,
@@ -2168,9 +2229,9 @@ const Ya = ({ initialData: e, onSave: t, onStateChange: o }) => {
2168
2229
  }
2169
2230
  )
2170
2231
  ] }),
2171
- /* @__PURE__ */ k("div", { className: "flex gap-4 mt-4 flex-1 min-h-0", children: [
2172
- /* @__PURE__ */ n(qe, { className: "w-56 shrink-0", children: /* @__PURE__ */ k(Qe, { className: "p-4 space-y-6", children: [
2173
- /* @__PURE__ */ n(Sr, {}),
2232
+ /* @__PURE__ */ M("div", { className: "flex gap-4 mt-4 flex-1 min-h-0", children: [
2233
+ /* @__PURE__ */ n(qe, { className: "w-56 shrink-0", children: /* @__PURE__ */ M(Qe, { className: "p-4 space-y-6", children: [
2234
+ /* @__PURE__ */ n(Er, {}),
2174
2235
  /* @__PURE__ */ n(Fr, {})
2175
2236
  ] }) }),
2176
2237
  /* @__PURE__ */ n(qe, { className: "flex-1 overflow-hidden bg-muted/30 flex flex-col", children: /* @__PURE__ */ n(Qe, { className: "p-4 flex-1 flex justify-center overflow-hidden", children: /* @__PURE__ */ n(ct, { className: "h-full w-full", children: /* @__PURE__ */ n("div", { className: "flex justify-center min-h-full", children: /* @__PURE__ */ n(
@@ -2181,15 +2242,15 @@ const Ya = ({ initialData: e, onSave: t, onStateChange: o }) => {
2181
2242
  width: typeof i == "number" ? `${i}px` : i,
2182
2243
  maxWidth: "100%"
2183
2244
  },
2184
- children: /* @__PURE__ */ n(za, { htmlJson: e })
2245
+ children: /* @__PURE__ */ n(Oa, { htmlJson: e })
2185
2246
  }
2186
2247
  ) }) }) }) }),
2187
- /* @__PURE__ */ n(qe, { className: "w-72 shrink-0 flex flex-col", children: /* @__PURE__ */ n(Qe, { className: "p-4 flex-1 overflow-hidden", children: /* @__PURE__ */ n(zr, {}) }) })
2248
+ /* @__PURE__ */ n(qe, { className: "w-72 shrink-0 flex flex-col", children: /* @__PURE__ */ n(Qe, { className: "p-4 flex-1 overflow-hidden", children: /* @__PURE__ */ n(Or, {}) }) })
2188
2249
  ] })
2189
2250
  ] }) }) })
2190
2251
  }
2191
2252
  );
2192
2253
  };
2193
2254
  export {
2194
- Ya as default
2255
+ Ua as default
2195
2256
  };