opsfuse-ui 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/.claude/skills/opsfuse-components/SKILL.md +47 -1
  2. package/.claude/skills/opsfuse-setup/SKILL.md +2 -1
  3. package/.claude/skills/opsfuse-ui-consistency/SKILL.md +10 -1
  4. package/README.md +5 -0
  5. package/dist/components/ui/button.d.ts.map +1 -1
  6. package/dist/components/ui/dialog.d.ts +1 -1
  7. package/dist/components/ui/dialog.d.ts.map +1 -1
  8. package/dist/components/ui/shadcn/shadcn-alert-dialog.d.ts +1 -1
  9. package/dist/components/ui/shadcn/shadcn-alert-dialog.d.ts.map +1 -1
  10. package/dist/components/ui/shadcn/shadcn-combobox.d.ts +1 -1
  11. package/dist/components/ui/shadcn/shadcn-combobox.d.ts.map +1 -1
  12. package/dist/components/ui/sheet.d.ts +1 -1
  13. package/dist/components/ui/sheet.d.ts.map +1 -1
  14. package/dist/core.js +3 -3
  15. package/dist/date-fns-BNhPf8zY.js +3871 -0
  16. package/dist/date-fns-locale.d.ts +2 -0
  17. package/dist/date-fns-locale.d.ts.map +1 -0
  18. package/dist/date-fns-locale.js +39648 -0
  19. package/dist/date-fns.d.ts +2 -0
  20. package/dist/date-fns.d.ts.map +1 -0
  21. package/dist/date-fns.js +3 -0
  22. package/dist/{es6-D-3xKXBT.js → es6-DckNYvTU.js} +1 -1
  23. package/dist/extended.js +2 -2
  24. package/dist/icons.js +1 -1
  25. package/dist/index.js +164 -163
  26. package/dist/{input-group-DIfVGMYe.js → input-group-D-1jufoY.js} +166 -126
  27. package/dist/{input-otp-DwLGFwVo.js → input-otp-DLKggEhE.js} +3357 -4675
  28. package/dist/isSameWeek-BUR9Q_Qt.js +537 -0
  29. package/dist/lib/opsfuse-portal-container.d.ts +26 -0
  30. package/dist/lib/opsfuse-portal-container.d.ts.map +1 -0
  31. package/dist/public-api.d.ts +1 -0
  32. package/dist/public-api.d.ts.map +1 -1
  33. package/dist/recharts.js +1 -1
  34. package/dist/style.css +1 -1
  35. package/dist/style.layered.css +1 -1
  36. package/dist/{toggle-group-D21Ul2kd.js → toggle-group-CnOf3y9P.js} +3602 -3593
  37. package/package.json +11 -1
  38. /package/dist/{clsx-D7D_XZ_-.js → clsx-BD2qMUU1.js} +0 -0
  39. /package/dist/{lucide-react-DLVJK_zM.js → lucide-react-BST2iBrS.js} +0 -0
@@ -1,5 +1,5 @@
1
- import { Dn as e, Fm as t, Vw as n, b as r, ig as i, jd as a } from "./lucide-react-DLVJK_zM.js";
2
- import { t as o } from "./clsx-D7D_XZ_-.js";
1
+ import { Dn as e, Fm as t, Vw as n, b as r, ig as i, jd as a } from "./lucide-react-BST2iBrS.js";
2
+ import { t as o } from "./clsx-BD2qMUU1.js";
3
3
  import * as s from "react";
4
4
  import c, { cloneElement as l, useLayoutEffect as u, useState as d } from "react";
5
5
  import * as f from "react-dom";
@@ -4179,8 +4179,8 @@ var Ao = Ze("cursor-pointer group/button inline-flex shrink-0 items-center justi
4179
4179
  sm: "h-8 gap-1 rounded-md px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5",
4180
4180
  lg: "h-10 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
4181
4181
  icon: "size-9",
4182
- "icon-xs": "size-6 rounded-[min(var(--radius-md),8px)] in-data-[slot=button-group]:rounded-md [&_svg:not([class*='size-'])]:size-3",
4183
- "icon-sm": "size-8 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-md",
4182
+ "icon-xs": "size-6 rounded-sm in-data-[slot=button-group]:rounded-sm [&_svg:not([class*='size-'])]:size-3",
4183
+ "icon-sm": "size-8 rounded-md in-data-[slot=button-group]:rounded-md",
4184
4184
  "icon-lg": "size-10"
4185
4185
  }
4186
4186
  },
@@ -4209,24 +4209,60 @@ function jo({ className: e, variant: t = "default", size: n = "default", motion:
4209
4209
  });
4210
4210
  }
4211
4211
  //#endregion
4212
+ //#region src/lib/opsfuse-portal-container.tsx
4213
+ var Mo = s.createContext(null);
4214
+ function No() {
4215
+ return s.useContext(Mo);
4216
+ }
4217
+ function Po({ container: e, children: t }) {
4218
+ return /* @__PURE__ */ h(Mo.Provider, {
4219
+ value: e,
4220
+ children: t
4221
+ });
4222
+ }
4223
+ function Fo(e, t) {
4224
+ typeof e == "function" ? e(t) : e && (e.current = t);
4225
+ }
4226
+ function Io({ className: e, ref: t, ...n }) {
4227
+ return /* @__PURE__ */ h("div", {
4228
+ ref: t,
4229
+ "data-slot": "modal-portal-host",
4230
+ "aria-hidden": !0,
4231
+ className: J("pointer-events-none absolute inset-0 z-[var(--z-popover)] overflow-visible [&>*]:pointer-events-auto", e),
4232
+ ...n
4233
+ });
4234
+ }
4235
+ function Lo(e) {
4236
+ let [t, n] = s.useState(null), r = s.useCallback((e) => {
4237
+ n(e);
4238
+ }, []);
4239
+ return {
4240
+ contentRef: s.useCallback((t) => {
4241
+ Fo(e, t);
4242
+ }, [e]),
4243
+ container: t,
4244
+ portalHostRef: r
4245
+ };
4246
+ }
4247
+ //#endregion
4212
4248
  //#region src/lib/brand-theme.ts
4213
- var Mo = [
4249
+ var Ro = [
4214
4250
  "recruitsmartly",
4215
4251
  "skillready",
4216
4252
  "worklog",
4217
4253
  "verity"
4218
- ], No = "recruitsmartly";
4254
+ ], zo = "recruitsmartly";
4219
4255
  //#endregion
4220
4256
  //#region src/lib/document-dark-mode.ts
4221
- function Po() {
4257
+ function Bo() {
4222
4258
  if (typeof document > "u") return !1;
4223
4259
  let e = document.documentElement;
4224
4260
  return e.classList.contains("dark") || e.getAttribute("data-theme") === "dark" || e.getAttribute("data-mode") === "dark" || e.getAttribute("data-color-mode") === "dark" || e.classList.contains("theme-dark") || (document.body?.classList.contains("dark") ?? !1);
4225
4261
  }
4226
- function Fo() {
4227
- let [e, t] = s.useState(() => typeof document > "u" ? !1 : Po());
4262
+ function Vo() {
4263
+ let [e, t] = s.useState(() => typeof document > "u" ? !1 : Bo());
4228
4264
  return s.useEffect(() => {
4229
- let e = () => t(Po());
4265
+ let e = () => t(Bo());
4230
4266
  e();
4231
4267
  let n = new MutationObserver(e);
4232
4268
  return n.observe(document.documentElement, {
@@ -4245,7 +4281,7 @@ function Fo() {
4245
4281
  }
4246
4282
  //#endregion
4247
4283
  //#region src/lib/theme-scope.ts
4248
- var Io = "opsfuse-ui", Lo = {
4284
+ var Ho = "opsfuse-ui", Uo = {
4249
4285
  "--color-background": "var(--background)",
4250
4286
  "--color-foreground": "var(--foreground)",
4251
4287
  "--color-card": "var(--card)",
@@ -4282,75 +4318,79 @@ var Io = "opsfuse-ui", Lo = {
4282
4318
  "--color-text-disabled": "var(--disabled-foreground)",
4283
4319
  "--color-text-input-placeholder": "var(--muted-foreground)",
4284
4320
  "--color-subtle-foreground": "var(--subtle-foreground)"
4285
- }, Ro = s.createContext(null);
4286
- function zo({ theme: e, children: t }) {
4287
- return /* @__PURE__ */ h(Ro.Provider, {
4321
+ }, Wo = s.createContext(null);
4322
+ function Go({ theme: e, children: t }) {
4323
+ return /* @__PURE__ */ h(Wo.Provider, {
4288
4324
  value: e,
4289
4325
  children: t
4290
4326
  });
4291
4327
  }
4292
- function Bo() {
4293
- return s.useContext(Ro) ?? "recruitsmartly";
4328
+ function Ko() {
4329
+ return s.useContext(Wo) ?? "recruitsmartly";
4294
4330
  }
4295
- function Vo(e) {
4331
+ function qo(e) {
4296
4332
  return `brand-${e}`;
4297
4333
  }
4298
- function Ho(e, t, n, r) {
4334
+ function Jo(e, t, n, r) {
4299
4335
  return {
4300
- className: J(Io, Vo(e), t && "dark", n),
4336
+ className: J(Ho, qo(e), t && "dark", n),
4301
4337
  style: {
4302
- ...Lo,
4338
+ ...Uo,
4303
4339
  ...r
4304
4340
  }
4305
4341
  };
4306
4342
  }
4307
- function Uo(e, t) {
4308
- return Ho(Bo(), Fo(), e, t);
4343
+ function Yo(e, t) {
4344
+ return Jo(Ko(), Vo(), e, t);
4309
4345
  }
4310
4346
  //#endregion
4311
4347
  //#region src/components/ui/dialog.tsx
4312
- function Wo({ ...e }) {
4348
+ function Xo({ ...e }) {
4313
4349
  return /* @__PURE__ */ h(li, {
4314
4350
  "data-slot": "dialog",
4315
4351
  ...e
4316
4352
  });
4317
4353
  }
4318
- function Go({ ...e }) {
4354
+ function Zo({ ...e }) {
4319
4355
  return /* @__PURE__ */ h(ui, {
4320
4356
  "data-slot": "dialog-trigger",
4321
4357
  ...e
4322
4358
  });
4323
4359
  }
4324
- function Ko({ ...e }) {
4360
+ function Qo({ ...e }) {
4325
4361
  return /* @__PURE__ */ h(di, {
4326
4362
  "data-slot": "dialog-portal",
4327
4363
  ...e
4328
4364
  });
4329
4365
  }
4330
- function qo({ ...e }) {
4366
+ function $o({ ...e }) {
4331
4367
  return /* @__PURE__ */ h(gi, {
4332
4368
  "data-slot": "dialog-close",
4333
4369
  ...e
4334
4370
  });
4335
4371
  }
4336
- function Jo({ className: e, ...t }) {
4372
+ function es({ className: e, ...t }) {
4337
4373
  return /* @__PURE__ */ h(fi, {
4338
4374
  "data-slot": "dialog-overlay",
4339
- className: J("fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0", e),
4375
+ className: J("fixed inset-0 isolate z-[var(--z-modal)] bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0", e),
4340
4376
  ...t
4341
4377
  });
4342
4378
  }
4343
- function Yo({ className: e, children: t, showCloseButton: n = !0, style: i, ...a }) {
4344
- let o = Uo();
4345
- return /* @__PURE__ */ g(Ko, { children: [/* @__PURE__ */ h(Jo, {}), /* @__PURE__ */ g(pi, {
4379
+ function ts({ className: e, children: t, showCloseButton: n = !0, style: i, ref: a, ...o }) {
4380
+ let s = Yo(), { contentRef: c, container: l, portalHostRef: u } = Lo(a);
4381
+ return /* @__PURE__ */ g(Qo, { children: [/* @__PURE__ */ h(es, {}), /* @__PURE__ */ g(pi, {
4382
+ ref: c,
4346
4383
  "data-slot": "dialog-content",
4347
4384
  style: {
4348
- ...o.style,
4385
+ ...s.style,
4349
4386
  ...i
4350
4387
  },
4351
- className: J(o.className, "fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-6 rounded-xl bg-popover p-6 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-md data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", e),
4352
- ...a,
4353
- children: [t, n && /* @__PURE__ */ h(gi, {
4388
+ className: J(s.className, "fixed top-1/2 left-1/2 z-[var(--z-modal)] grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-6 overflow-visible rounded-xl bg-popover p-6 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-md data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", e),
4389
+ ...o,
4390
+ children: [/* @__PURE__ */ g(Po, {
4391
+ container: l,
4392
+ children: [t, /* @__PURE__ */ h(Io, { ref: u })]
4393
+ }), n && /* @__PURE__ */ h(gi, {
4354
4394
  "data-slot": "dialog-close",
4355
4395
  asChild: !0,
4356
4396
  children: /* @__PURE__ */ g(jo, {
@@ -4365,14 +4405,14 @@ function Yo({ className: e, children: t, showCloseButton: n = !0, style: i, ...a
4365
4405
  })]
4366
4406
  })] });
4367
4407
  }
4368
- function Xo({ className: e, ...t }) {
4408
+ function ns({ className: e, ...t }) {
4369
4409
  return /* @__PURE__ */ h("div", {
4370
4410
  "data-slot": "dialog-header",
4371
4411
  className: J("flex flex-col gap-2", e),
4372
4412
  ...t
4373
4413
  });
4374
4414
  }
4375
- function Zo({ className: e, showCloseButton: t = !1, children: n, ...r }) {
4415
+ function rs({ className: e, showCloseButton: t = !1, children: n, ...r }) {
4376
4416
  return /* @__PURE__ */ g("div", {
4377
4417
  "data-slot": "dialog-footer",
4378
4418
  className: J("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", e),
@@ -4386,38 +4426,38 @@ function Zo({ className: e, showCloseButton: t = !1, children: n, ...r }) {
4386
4426
  })]
4387
4427
  });
4388
4428
  }
4389
- function Qo({ className: e, ...t }) {
4429
+ function is({ className: e, ...t }) {
4390
4430
  return /* @__PURE__ */ h(mi, {
4391
4431
  "data-slot": "dialog-title",
4392
4432
  className: J("font-heading text-base leading-none font-semibold", e),
4393
4433
  ...t
4394
4434
  });
4395
4435
  }
4396
- function $o({ className: e, ...t }) {
4436
+ function as({ className: e, ...t }) {
4397
4437
  return /* @__PURE__ */ h(hi, {
4398
4438
  "data-slot": "dialog-description",
4399
4439
  className: J("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground", e),
4400
4440
  ...t
4401
4441
  });
4402
4442
  }
4403
- var es = null;
4404
- function ts(e) {
4405
- es?.(e);
4443
+ var os = null;
4444
+ function ss(e) {
4445
+ os?.(e);
4406
4446
  }
4407
- function ns({ children: e }) {
4447
+ function cs({ children: e }) {
4408
4448
  let [t, n] = s.useState(null);
4409
- s.useLayoutEffect(() => (es = (e) => n(e), () => {
4410
- es = null;
4449
+ s.useLayoutEffect(() => (os = (e) => n(e), () => {
4450
+ os = null;
4411
4451
  }), []);
4412
4452
  let r = s.useCallback((e) => {
4413
4453
  e || n((e) => (e && e.onClose?.(), null));
4414
4454
  }, []);
4415
- return /* @__PURE__ */ g(m, { children: [e, t ? /* @__PURE__ */ h(Wo, {
4455
+ return /* @__PURE__ */ g(m, { children: [e, t ? /* @__PURE__ */ h(Xo, {
4416
4456
  open: !0,
4417
4457
  onOpenChange: r,
4418
- children: /* @__PURE__ */ g(Yo, {
4458
+ children: /* @__PURE__ */ g(ts, {
4419
4459
  showCloseButton: t.showCloseButton ?? !0,
4420
- children: [/* @__PURE__ */ g(Xo, { children: [/* @__PURE__ */ h(Qo, { children: t.title }), /* @__PURE__ */ h($o, {
4460
+ children: [/* @__PURE__ */ g(ns, { children: [/* @__PURE__ */ h(is, { children: t.title }), /* @__PURE__ */ h(as, {
4421
4461
  className: t.description ? void 0 : "sr-only",
4422
4462
  children: t.description ?? t.title
4423
4463
  })] }), t.children]
@@ -4426,26 +4466,26 @@ function ns({ children: e }) {
4426
4466
  }
4427
4467
  //#endregion
4428
4468
  //#region node_modules/sonner/dist/index.mjs
4429
- function rs(e) {
4469
+ function ls(e) {
4430
4470
  if (!e || typeof document > "u") return;
4431
4471
  let t = document.head || document.getElementsByTagName("head")[0], n = document.createElement("style");
4432
4472
  n.type = "text/css", t.appendChild(n), n.styleSheet ? n.styleSheet.cssText = e : n.appendChild(document.createTextNode(e));
4433
4473
  }
4434
- var is = (e) => {
4474
+ var us = (e) => {
4435
4475
  switch (e) {
4436
- case "success": return ss;
4437
- case "info": return ls;
4438
- case "warning": return cs;
4439
- case "error": return us;
4476
+ case "success": return ps;
4477
+ case "info": return hs;
4478
+ case "warning": return ms;
4479
+ case "error": return gs;
4440
4480
  default: return null;
4441
4481
  }
4442
- }, as = Array(12).fill(0), os = ({ visible: e, className: t }) => /* @__PURE__ */ c.createElement("div", {
4482
+ }, ds = Array(12).fill(0), fs = ({ visible: e, className: t }) => /* @__PURE__ */ c.createElement("div", {
4443
4483
  className: ["sonner-loading-wrapper", t].filter(Boolean).join(" "),
4444
4484
  "data-visible": e
4445
- }, /* @__PURE__ */ c.createElement("div", { className: "sonner-spinner" }, as.map((e, t) => /* @__PURE__ */ c.createElement("div", {
4485
+ }, /* @__PURE__ */ c.createElement("div", { className: "sonner-spinner" }, ds.map((e, t) => /* @__PURE__ */ c.createElement("div", {
4446
4486
  className: "sonner-loading-bar",
4447
4487
  key: `spinner-bar-${t}`
4448
- })))), ss = /* @__PURE__ */ c.createElement("svg", {
4488
+ })))), ps = /* @__PURE__ */ c.createElement("svg", {
4449
4489
  xmlns: "http://www.w3.org/2000/svg",
4450
4490
  viewBox: "0 0 20 20",
4451
4491
  fill: "currentColor",
@@ -4455,7 +4495,7 @@ var is = (e) => {
4455
4495
  fillRule: "evenodd",
4456
4496
  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",
4457
4497
  clipRule: "evenodd"
4458
- })), cs = /* @__PURE__ */ c.createElement("svg", {
4498
+ })), ms = /* @__PURE__ */ c.createElement("svg", {
4459
4499
  xmlns: "http://www.w3.org/2000/svg",
4460
4500
  viewBox: "0 0 24 24",
4461
4501
  fill: "currentColor",
@@ -4465,7 +4505,7 @@ var is = (e) => {
4465
4505
  fillRule: "evenodd",
4466
4506
  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",
4467
4507
  clipRule: "evenodd"
4468
- })), ls = /* @__PURE__ */ c.createElement("svg", {
4508
+ })), hs = /* @__PURE__ */ c.createElement("svg", {
4469
4509
  xmlns: "http://www.w3.org/2000/svg",
4470
4510
  viewBox: "0 0 20 20",
4471
4511
  fill: "currentColor",
@@ -4475,7 +4515,7 @@ var is = (e) => {
4475
4515
  fillRule: "evenodd",
4476
4516
  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",
4477
4517
  clipRule: "evenodd"
4478
- })), us = /* @__PURE__ */ c.createElement("svg", {
4518
+ })), gs = /* @__PURE__ */ c.createElement("svg", {
4479
4519
  xmlns: "http://www.w3.org/2000/svg",
4480
4520
  viewBox: "0 0 20 20",
4481
4521
  fill: "currentColor",
@@ -4485,7 +4525,7 @@ var is = (e) => {
4485
4525
  fillRule: "evenodd",
4486
4526
  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",
4487
4527
  clipRule: "evenodd"
4488
- })), ds = /* @__PURE__ */ c.createElement("svg", {
4528
+ })), _s = /* @__PURE__ */ c.createElement("svg", {
4489
4529
  xmlns: "http://www.w3.org/2000/svg",
4490
4530
  width: "12",
4491
4531
  height: "12",
@@ -4505,7 +4545,7 @@ var is = (e) => {
4505
4545
  y1: "6",
4506
4546
  x2: "18",
4507
4547
  y2: "18"
4508
- })), fs = () => {
4548
+ })), vs = () => {
4509
4549
  let [e, t] = c.useState(document.hidden);
4510
4550
  return c.useEffect(() => {
4511
4551
  let e = () => {
@@ -4513,7 +4553,7 @@ var is = (e) => {
4513
4553
  };
4514
4554
  return document.addEventListener("visibilitychange", e), () => window.removeEventListener("visibilitychange", e);
4515
4555
  }, []), e;
4516
- }, ps = 1, $ = new class {
4556
+ }, ys = 1, $ = new class {
4517
4557
  constructor() {
4518
4558
  this.subscribe = (e) => (this.subscribers.push(e), () => {
4519
4559
  let t = this.subscribers.indexOf(e);
@@ -4523,7 +4563,7 @@ var is = (e) => {
4523
4563
  }, this.addToast = (e) => {
4524
4564
  this.publish(e), this.toasts = [...this.toasts, e];
4525
4565
  }, this.create = (e) => {
4526
- let { message: t, ...n } = e, r = typeof e?.id == "number" || e.id?.length > 0 ? e.id : ps++, i = this.toasts.find((e) => e.id === r), a = e.dismissible === void 0 ? !0 : e.dismissible;
4566
+ let { message: t, ...n } = e, r = typeof e?.id == "number" || e.id?.length > 0 ? e.id : ys++, i = this.toasts.find((e) => e.id === r), a = e.dismissible === void 0 ? !0 : e.dismissible;
4527
4567
  return this.dismissedToasts.has(r) && this.dismissedToasts.delete(r), i ? this.toasts = this.toasts.map((n) => n.id === r ? (this.publish({
4528
4568
  ...n,
4529
4569
  ...e,
@@ -4588,7 +4628,7 @@ var is = (e) => {
4588
4628
  type: "default",
4589
4629
  message: e
4590
4630
  });
4591
- else if (hs(e) && !e.ok) {
4631
+ else if (xs(e) && !e.ok) {
4592
4632
  i = !1;
4593
4633
  let r = typeof t.error == "function" ? await t.error(`HTTP error! status: ${e.status}`) : t.error, a = typeof t.description == "function" ? await t.description(`HTTP error! status: ${e.status}`) : t.description, o = typeof r == "object" && !c.isValidElement(r) ? r : { message: r };
4594
4634
  this.create({
@@ -4632,7 +4672,7 @@ var is = (e) => {
4632
4672
  }), s = () => new Promise((e, t) => o.then(() => a[0] === "reject" ? t(a[1]) : e(a[1])).catch(t));
4633
4673
  return typeof n != "string" && typeof n != "number" ? { unwrap: s } : Object.assign(n, { unwrap: s });
4634
4674
  }, this.custom = (e, t) => {
4635
- let n = t?.id || ps++;
4675
+ let n = t?.id || ys++;
4636
4676
  return this.create({
4637
4677
  jsx: e(n),
4638
4678
  id: n,
@@ -4640,14 +4680,14 @@ var is = (e) => {
4640
4680
  }), n;
4641
4681
  }, this.getActiveToasts = () => this.toasts.filter((e) => !this.dismissedToasts.has(e.id)), this.subscribers = [], this.toasts = [], this.dismissedToasts = /* @__PURE__ */ new Set();
4642
4682
  }
4643
- }(), ms = (e, t) => {
4644
- let n = t?.id || ps++;
4683
+ }(), bs = (e, t) => {
4684
+ let n = t?.id || ys++;
4645
4685
  return $.addToast({
4646
4686
  title: e,
4647
4687
  ...t,
4648
4688
  id: n
4649
4689
  }), n;
4650
- }, hs = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", gs = Object.assign(ms, {
4690
+ }, xs = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", Ss = Object.assign(bs, {
4651
4691
  success: $.success,
4652
4692
  info: $.info,
4653
4693
  warning: $.warning,
@@ -4661,20 +4701,20 @@ var is = (e) => {
4661
4701
  getHistory: () => $.toasts,
4662
4702
  getToasts: () => $.getActiveToasts()
4663
4703
  });
4664
- rs("[data-sonner-toaster][dir=ltr],html[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%)}[data-sonner-toaster][dir=rtl],html[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%)}[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:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[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);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[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 rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [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)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [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;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [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);background:var(--normal-bg);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-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[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}[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}[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,0)) translateX(var(--swipe-amount-x,0));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{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{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{from{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-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--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-sonner-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-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-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, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--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-sonner-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-sonner-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]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[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]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[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]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[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]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[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:first-child{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)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{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%)}");
4665
- function _s(e) {
4704
+ ls("[data-sonner-toaster][dir=ltr],html[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%)}[data-sonner-toaster][dir=rtl],html[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%)}[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:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[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);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[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 rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [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)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [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;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [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);background:var(--normal-bg);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-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[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}[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}[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,0)) translateX(var(--swipe-amount-x,0));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{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{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{from{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-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--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-sonner-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-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-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, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--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-sonner-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-sonner-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]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[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]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[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]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[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]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[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:first-child{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)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{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%)}");
4705
+ function Cs(e) {
4666
4706
  return e.label !== void 0;
4667
4707
  }
4668
- var vs = 3, ys = "24px", bs = "16px", xs = 4e3, Ss = 356, Cs = 14, ws = 45, Ts = 200;
4669
- function Es(...e) {
4708
+ var ws = 3, Ts = "24px", Es = "16px", Ds = 4e3, Os = 356, ks = 14, As = 45, js = 200;
4709
+ function Ms(...e) {
4670
4710
  return e.filter(Boolean).join(" ");
4671
4711
  }
4672
- function Ds(e) {
4712
+ function Ns(e) {
4673
4713
  let [t, n] = e.split("-"), r = [];
4674
4714
  return t && r.push(t), n && r.push(n), r;
4675
4715
  }
4676
- var Os = (e) => {
4677
- let { invert: t, toast: n, unstyled: r, interacting: i, setHeights: a, visibleToasts: o, heights: s, index: l, toasts: u, expanded: d, removeToast: f, defaultRichColors: p, closeButton: m, style: h, cancelButtonStyle: g, actionButtonStyle: _, className: v = "", descriptionClassName: y = "", duration: b, position: x, gap: S, expandByDefault: C, classNames: w, icons: T, closeButtonAriaLabel: ee = "Close toast" } = e, [E, D] = c.useState(null), [te, O] = c.useState(null), [k, A] = c.useState(!1), [j, M] = c.useState(!1), [N, P] = c.useState(!1), [F, ne] = c.useState(!1), [re, ie] = c.useState(!1), [I, L] = c.useState(0), [ae, oe] = c.useState(0), R = c.useRef(n.duration || b || xs), se = c.useRef(null), z = c.useRef(null), ce = l === 0, B = l + 1 <= o, V = n.type, H = n.dismissible !== !1, le = n.className || "", ue = n.descriptionClassName || "", de = c.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), fe = c.useMemo(() => n.closeButton ?? m, [n.closeButton, m]), pe = c.useMemo(() => n.duration || b || xs, [n.duration, b]), me = c.useRef(0), U = c.useRef(0), W = c.useRef(0), G = c.useRef(null), [he, ge] = x.split("-"), _e = c.useMemo(() => s.reduce((e, t, n) => n >= de ? e : e + t.height, 0), [s, de]), ve = fs(), ye = n.invert || t, be = V === "loading";
4716
+ var Ps = (e) => {
4717
+ let { invert: t, toast: n, unstyled: r, interacting: i, setHeights: a, visibleToasts: o, heights: s, index: l, toasts: u, expanded: d, removeToast: f, defaultRichColors: p, closeButton: m, style: h, cancelButtonStyle: g, actionButtonStyle: _, className: v = "", descriptionClassName: y = "", duration: b, position: x, gap: S, expandByDefault: C, classNames: w, icons: T, closeButtonAriaLabel: ee = "Close toast" } = e, [E, D] = c.useState(null), [te, O] = c.useState(null), [k, A] = c.useState(!1), [j, M] = c.useState(!1), [N, P] = c.useState(!1), [F, ne] = c.useState(!1), [re, ie] = c.useState(!1), [I, L] = c.useState(0), [ae, oe] = c.useState(0), R = c.useRef(n.duration || b || Ds), se = c.useRef(null), z = c.useRef(null), ce = l === 0, B = l + 1 <= o, V = n.type, H = n.dismissible !== !1, le = n.className || "", ue = n.descriptionClassName || "", de = c.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), fe = c.useMemo(() => n.closeButton ?? m, [n.closeButton, m]), pe = c.useMemo(() => n.duration || b || Ds, [n.duration, b]), me = c.useRef(0), U = c.useRef(0), W = c.useRef(0), G = c.useRef(null), [he, ge] = x.split("-"), _e = c.useMemo(() => s.reduce((e, t, n) => n >= de ? e : e + t.height, 0), [s, de]), ve = vs(), ye = n.invert || t, be = V === "loading";
4678
4718
  U.current = c.useMemo(() => de * S + _e, [de, _e]), c.useEffect(() => {
4679
4719
  R.current = pe;
4680
4720
  }, [pe]), c.useEffect(() => {
@@ -4715,7 +4755,7 @@ var Os = (e) => {
4715
4755
  let xe = c.useCallback(() => {
4716
4756
  M(!0), L(U.current), a((e) => e.filter((e) => e.toastId !== n.id)), setTimeout(() => {
4717
4757
  f(n);
4718
- }, Ts);
4758
+ }, js);
4719
4759
  }, [
4720
4760
  n,
4721
4761
  f,
@@ -4746,18 +4786,18 @@ var Os = (e) => {
4746
4786
  }, [xe, n.delete]);
4747
4787
  function Se() {
4748
4788
  return T?.loading ? /* @__PURE__ */ c.createElement("div", {
4749
- className: Es(w?.loader, n?.classNames?.loader, "sonner-loader"),
4789
+ className: Ms(w?.loader, n?.classNames?.loader, "sonner-loader"),
4750
4790
  "data-visible": V === "loading"
4751
- }, T.loading) : /* @__PURE__ */ c.createElement(os, {
4752
- className: Es(w?.loader, n?.classNames?.loader),
4791
+ }, T.loading) : /* @__PURE__ */ c.createElement(fs, {
4792
+ className: Ms(w?.loader, n?.classNames?.loader),
4753
4793
  visible: V === "loading"
4754
4794
  });
4755
4795
  }
4756
- let Ce = n.icon || T?.[V] || is(V);
4796
+ let Ce = n.icon || T?.[V] || us(V);
4757
4797
  return /* @__PURE__ */ c.createElement("li", {
4758
4798
  tabIndex: 0,
4759
4799
  ref: z,
4760
- className: Es(v, le, w?.toast, n?.classNames?.toast, w?.default, w?.[V], n?.classNames?.[V]),
4800
+ className: Ms(v, le, w?.toast, n?.classNames?.toast, w?.default, w?.[V], n?.classNames?.[V]),
4761
4801
  "data-sonner-toast": "",
4762
4802
  "data-rich-colors": n.richColors ?? p,
4763
4803
  "data-styled": !(n.jsx || n.unstyled || r),
@@ -4800,7 +4840,7 @@ var Os = (e) => {
4800
4840
  if (F || !H) return;
4801
4841
  G.current = null;
4802
4842
  let e = Number(z.current?.style.getPropertyValue("--swipe-amount-x").replace("px", "") || 0), t = Number(z.current?.style.getPropertyValue("--swipe-amount-y").replace("px", "") || 0), r = (/* @__PURE__ */ new Date()).getTime() - se.current?.getTime(), i = E === "x" ? e : t, a = Math.abs(i) / r;
4803
- if (Math.abs(i) >= ws || a > .11) {
4843
+ if (Math.abs(i) >= As || a > .11) {
4804
4844
  L(U.current), n.onDismiss == null || n.onDismiss.call(n, n), O(E === "x" ? e > 0 ? "right" : "left" : t > 0 ? "down" : "up"), xe(), ne(!0);
4805
4845
  return;
4806
4846
  } else {
@@ -4812,7 +4852,7 @@ var Os = (e) => {
4812
4852
  onPointerMove: (t) => {
4813
4853
  var n, r;
4814
4854
  if (!G.current || !H || window.getSelection()?.toString().length > 0) return;
4815
- let i = t.clientY - G.current.y, a = t.clientX - G.current.x, o = e.swipeDirections ?? Ds(x);
4855
+ let i = t.clientY - G.current.y, a = t.clientX - G.current.x, o = e.swipeDirections ?? Ns(x);
4816
4856
  !E && (Math.abs(a) > 1 || Math.abs(i) > 1) && D(Math.abs(a) > Math.abs(i) ? "x" : "y");
4817
4857
  let s = {
4818
4858
  x: 0,
@@ -4838,46 +4878,46 @@ var Os = (e) => {
4838
4878
  onClick: be || !H ? () => {} : () => {
4839
4879
  xe(), n.onDismiss == null || n.onDismiss.call(n, n);
4840
4880
  },
4841
- className: Es(w?.closeButton, n?.classNames?.closeButton)
4842
- }, T?.close ?? ds) : null, (V || n.icon || n.promise) && n.icon !== null && (T?.[V] !== null || n.icon) ? /* @__PURE__ */ c.createElement("div", {
4881
+ className: Ms(w?.closeButton, n?.classNames?.closeButton)
4882
+ }, T?.close ?? _s) : null, (V || n.icon || n.promise) && n.icon !== null && (T?.[V] !== null || n.icon) ? /* @__PURE__ */ c.createElement("div", {
4843
4883
  "data-icon": "",
4844
- className: Es(w?.icon, n?.classNames?.icon)
4884
+ className: Ms(w?.icon, n?.classNames?.icon)
4845
4885
  }, n.promise || n.type === "loading" && !n.icon ? n.icon || Se() : null, n.type === "loading" ? null : Ce) : null, /* @__PURE__ */ c.createElement("div", {
4846
4886
  "data-content": "",
4847
- className: Es(w?.content, n?.classNames?.content)
4887
+ className: Ms(w?.content, n?.classNames?.content)
4848
4888
  }, /* @__PURE__ */ c.createElement("div", {
4849
4889
  "data-title": "",
4850
- className: Es(w?.title, n?.classNames?.title)
4890
+ className: Ms(w?.title, n?.classNames?.title)
4851
4891
  }, n.jsx ? n.jsx : typeof n.title == "function" ? n.title() : n.title), n.description ? /* @__PURE__ */ c.createElement("div", {
4852
4892
  "data-description": "",
4853
- className: Es(y, ue, w?.description, n?.classNames?.description)
4854
- }, typeof n.description == "function" ? n.description() : n.description) : null), /* @__PURE__ */ c.isValidElement(n.cancel) ? n.cancel : n.cancel && _s(n.cancel) ? /* @__PURE__ */ c.createElement("button", {
4893
+ className: Ms(y, ue, w?.description, n?.classNames?.description)
4894
+ }, typeof n.description == "function" ? n.description() : n.description) : null), /* @__PURE__ */ c.isValidElement(n.cancel) ? n.cancel : n.cancel && Cs(n.cancel) ? /* @__PURE__ */ c.createElement("button", {
4855
4895
  "data-button": !0,
4856
4896
  "data-cancel": !0,
4857
4897
  style: n.cancelButtonStyle || g,
4858
4898
  onClick: (e) => {
4859
- _s(n.cancel) && H && (n.cancel.onClick == null || n.cancel.onClick.call(n.cancel, e), xe());
4899
+ Cs(n.cancel) && H && (n.cancel.onClick == null || n.cancel.onClick.call(n.cancel, e), xe());
4860
4900
  },
4861
- className: Es(w?.cancelButton, n?.classNames?.cancelButton)
4862
- }, n.cancel.label) : null, /* @__PURE__ */ c.isValidElement(n.action) ? n.action : n.action && _s(n.action) ? /* @__PURE__ */ c.createElement("button", {
4901
+ className: Ms(w?.cancelButton, n?.classNames?.cancelButton)
4902
+ }, n.cancel.label) : null, /* @__PURE__ */ c.isValidElement(n.action) ? n.action : n.action && Cs(n.action) ? /* @__PURE__ */ c.createElement("button", {
4863
4903
  "data-button": !0,
4864
4904
  "data-action": !0,
4865
4905
  style: n.actionButtonStyle || _,
4866
4906
  onClick: (e) => {
4867
- _s(n.action) && (n.action.onClick == null || n.action.onClick.call(n.action, e), !e.defaultPrevented && xe());
4907
+ Cs(n.action) && (n.action.onClick == null || n.action.onClick.call(n.action, e), !e.defaultPrevented && xe());
4868
4908
  },
4869
- className: Es(w?.actionButton, n?.classNames?.actionButton)
4909
+ className: Ms(w?.actionButton, n?.classNames?.actionButton)
4870
4910
  }, n.action.label) : null);
4871
4911
  };
4872
- function ks() {
4912
+ function Fs() {
4873
4913
  if (typeof window > "u" || typeof document > "u") return "ltr";
4874
4914
  let e = document.documentElement.getAttribute("dir");
4875
4915
  return e === "auto" || !e ? window.getComputedStyle(document.documentElement).direction : e;
4876
4916
  }
4877
- function As(e, t) {
4917
+ function Is(e, t) {
4878
4918
  let n = {};
4879
4919
  return [e, t].forEach((e, t) => {
4880
- let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? bs : ys;
4920
+ let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? Es : Ts;
4881
4921
  function o(e) {
4882
4922
  [
4883
4923
  "top",
@@ -4898,8 +4938,8 @@ function As(e, t) {
4898
4938
  }) : o(a);
4899
4939
  }), n;
4900
4940
  }
4901
- var js = /* @__PURE__ */ c.forwardRef(function(e, t) {
4902
- let { id: n, invert: r, position: i = "bottom-right", hotkey: a = ["altKey", "KeyT"], expand: o, closeButton: s, className: l, offset: u, mobileOffset: d, theme: f = "light", richColors: m, duration: h, style: g, visibleToasts: _ = vs, toastOptions: v, dir: y = ks(), gap: b = Cs, icons: x, containerAriaLabel: S = "Notifications" } = e, [C, w] = c.useState([]), T = c.useMemo(() => n ? C.filter((e) => e.toasterId === n) : C.filter((e) => !e.toasterId), [C, n]), ee = c.useMemo(() => Array.from(new Set([i].concat(T.filter((e) => e.position).map((e) => e.position)))), [T, i]), [E, D] = c.useState([]), [te, O] = c.useState(!1), [k, A] = c.useState(!1), [j, M] = c.useState(f === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : f), N = c.useRef(null), P = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), F = c.useRef(null), ne = c.useRef(!1), re = c.useCallback((e) => {
4941
+ var Ls = /* @__PURE__ */ c.forwardRef(function(e, t) {
4942
+ let { id: n, invert: r, position: i = "bottom-right", hotkey: a = ["altKey", "KeyT"], expand: o, closeButton: s, className: l, offset: u, mobileOffset: d, theme: f = "light", richColors: m, duration: h, style: g, visibleToasts: _ = ws, toastOptions: v, dir: y = Fs(), gap: b = ks, icons: x, containerAriaLabel: S = "Notifications" } = e, [C, w] = c.useState([]), T = c.useMemo(() => n ? C.filter((e) => e.toasterId === n) : C.filter((e) => !e.toasterId), [C, n]), ee = c.useMemo(() => Array.from(new Set([i].concat(T.filter((e) => e.position).map((e) => e.position)))), [T, i]), [E, D] = c.useState([]), [te, O] = c.useState(!1), [k, A] = c.useState(!1), [j, M] = c.useState(f === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : f), N = c.useRef(null), P = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), F = c.useRef(null), ne = c.useRef(!1), re = c.useCallback((e) => {
4903
4943
  w((t) => (t.find((t) => t.id === e.id)?.delete || $.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));
4904
4944
  }, []);
4905
4945
  return c.useEffect(() => $.subscribe((e) => {
@@ -4974,7 +5014,7 @@ var js = /* @__PURE__ */ c.forwardRef(function(e, t) {
4974
5014
  let [i, a] = t.split("-");
4975
5015
  return T.length ? /* @__PURE__ */ c.createElement("ol", {
4976
5016
  key: t,
4977
- dir: y === "auto" ? ks() : y,
5017
+ dir: y === "auto" ? Fs() : y,
4978
5018
  tabIndex: -1,
4979
5019
  ref: N,
4980
5020
  className: l,
@@ -4984,10 +5024,10 @@ var js = /* @__PURE__ */ c.forwardRef(function(e, t) {
4984
5024
  "data-x-position": a,
4985
5025
  style: {
4986
5026
  "--front-toast-height": `${E[0]?.height || 0}px`,
4987
- "--width": `${Ss}px`,
5027
+ "--width": `${Os}px`,
4988
5028
  "--gap": `${b}px`,
4989
5029
  ...g,
4990
- ...As(u, d)
5030
+ ...Is(u, d)
4991
5031
  },
4992
5032
  onBlur: (e) => {
4993
5033
  ne.current && !e.currentTarget.contains(e.relatedTarget) && (ne.current = !1, F.current &&= (F.current.focus({ preventScroll: !0 }), null));
@@ -5005,7 +5045,7 @@ var js = /* @__PURE__ */ c.forwardRef(function(e, t) {
5005
5045
  e.target instanceof HTMLElement && e.target.dataset.dismissible === "false" || A(!0);
5006
5046
  },
5007
5047
  onPointerUp: () => A(!1)
5008
- }, T.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /* @__PURE__ */ c.createElement(Os, {
5048
+ }, T.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /* @__PURE__ */ c.createElement(Ps, {
5009
5049
  key: n.id,
5010
5050
  icons: x,
5011
5051
  index: i,
@@ -5035,9 +5075,9 @@ var js = /* @__PURE__ */ c.forwardRef(function(e, t) {
5035
5075
  swipeDirections: e.swipeDirections
5036
5076
  }))) : null;
5037
5077
  }));
5038
- }), Ms = ({ style: r, className: o, ...s }) => {
5039
- let c = Bo(), l = Fo(), u = Ho(c, l);
5040
- return /* @__PURE__ */ h(js, {
5078
+ }), Rs = ({ style: r, className: o, ...s }) => {
5079
+ let c = Ko(), l = Vo(), u = Jo(c, l);
5080
+ return /* @__PURE__ */ h(Ls, {
5041
5081
  theme: l ? "dark" : "light",
5042
5082
  className: J("toaster group", u.className, o),
5043
5083
  icons: {
@@ -5061,7 +5101,7 @@ var js = /* @__PURE__ */ c.forwardRef(function(e, t) {
5061
5101
  };
5062
5102
  //#endregion
5063
5103
  //#region src/components/ui/label.tsx
5064
- function Ns({ className: e, ...t }) {
5104
+ function zs({ className: e, ...t }) {
5065
5105
  return /* @__PURE__ */ h(Oo, {
5066
5106
  "data-slot": "label",
5067
5107
  className: J("flex items-center text-foreground gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50", e),
@@ -5070,12 +5110,12 @@ function Ns({ className: e, ...t }) {
5070
5110
  }
5071
5111
  //#endregion
5072
5112
  //#region src/components/ui/input.tsx
5073
- function Ps({ className: e, type: t, error: n = !1, label: r, helperText: i, startIcon: a, endIcon: o, appearance: s = "default", ...c }) {
5113
+ function Bs({ className: e, type: t, error: n = !1, label: r, helperText: i, startIcon: a, endIcon: o, appearance: s = "default", ...c }) {
5074
5114
  let u = a ? l(a, { className: J("stroke-text-input-placeholder") }) : null, d = o ? l(o, { className: J("stroke-text-input-placeholder") }) : null;
5075
5115
  return /* @__PURE__ */ g("div", {
5076
5116
  className: "w-full flex flex-col gap-2 h-fit ",
5077
5117
  children: [
5078
- !!r && /* @__PURE__ */ h(Ns, { children: r }),
5118
+ !!r && /* @__PURE__ */ h(zs, { children: r }),
5079
5119
  /* @__PURE__ */ g("div", {
5080
5120
  className: "w-full relative",
5081
5121
  children: [
@@ -5106,11 +5146,11 @@ function Ps({ className: e, type: t, error: n = !1, label: r, helperText: i, sta
5106
5146
  }
5107
5147
  //#endregion
5108
5148
  //#region src/components/ui/textarea.tsx
5109
- function Fs({ className: e, error: t = !1, label: n, helperText: r, ...i }) {
5149
+ function Vs({ className: e, error: t = !1, label: n, helperText: r, ...i }) {
5110
5150
  return /* @__PURE__ */ g("div", {
5111
5151
  className: "w-full flex flex-col gap-2",
5112
5152
  children: [
5113
- n && /* @__PURE__ */ h(Ns, { children: n }),
5153
+ n && /* @__PURE__ */ h(zs, { children: n }),
5114
5154
  /* @__PURE__ */ h("textarea", {
5115
5155
  "data-slot": "textarea",
5116
5156
  className: J("flex-1 border-input placeholder:text-text-disabled focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", e),
@@ -5125,7 +5165,7 @@ function Fs({ className: e, error: t = !1, label: n, helperText: r, ...i }) {
5125
5165
  }
5126
5166
  //#endregion
5127
5167
  //#region src/components/ui/input-group.tsx
5128
- function Is({ className: e, ...t }) {
5168
+ function Hs({ className: e, ...t }) {
5129
5169
  return /* @__PURE__ */ h("div", {
5130
5170
  "data-slot": "input-group",
5131
5171
  role: "group",
@@ -5133,7 +5173,7 @@ function Is({ className: e, ...t }) {
5133
5173
  ...t
5134
5174
  });
5135
5175
  }
5136
- var Ls = Ze("flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4", {
5176
+ var Us = Ze("flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4", {
5137
5177
  variants: { align: {
5138
5178
  "inline-start": "order-first pl-2 has-[>button]:ml-[-0.3rem] has-[>kbd]:ml-[-0.15rem]",
5139
5179
  "inline-end": "order-last pr-2 has-[>button]:mr-[-0.3rem] has-[>kbd]:mr-[-0.15rem]",
@@ -5142,19 +5182,19 @@ var Ls = Ze("flex h-auto cursor-text items-center justify-center gap-2 py-1.5 te
5142
5182
  } },
5143
5183
  defaultVariants: { align: "inline-start" }
5144
5184
  });
5145
- function Rs({ className: e, align: t = "inline-start", ...n }) {
5185
+ function Ws({ className: e, align: t = "inline-start", ...n }) {
5146
5186
  return /* @__PURE__ */ h("div", {
5147
5187
  role: "group",
5148
5188
  "data-slot": "input-group-addon",
5149
5189
  "data-align": t,
5150
- className: J(Ls({ align: t }), e),
5190
+ className: J(Us({ align: t }), e),
5151
5191
  onClick: (e) => {
5152
5192
  e.target.closest("button") || e.currentTarget.parentElement?.querySelector("input")?.focus();
5153
5193
  },
5154
5194
  ...n
5155
5195
  });
5156
5196
  }
5157
- var zs = Ze("flex items-center gap-2 text-sm shadow-none", {
5197
+ var Gs = Ze("flex items-center gap-2 text-sm shadow-none", {
5158
5198
  variants: { size: {
5159
5199
  xs: "h-6 gap-1 rounded-[calc(var(--radius)-3px)] px-1.5 [&>svg:not([class*='size-'])]:size-3.5",
5160
5200
  sm: "",
@@ -5163,34 +5203,34 @@ var zs = Ze("flex items-center gap-2 text-sm shadow-none", {
5163
5203
  } },
5164
5204
  defaultVariants: { size: "xs" }
5165
5205
  });
5166
- function Bs({ className: e, type: t = "button", variant: n = "ghost", size: r = "xs", ...i }) {
5206
+ function Ks({ className: e, type: t = "button", variant: n = "ghost", size: r = "xs", ...i }) {
5167
5207
  return /* @__PURE__ */ h(jo, {
5168
5208
  type: t,
5169
5209
  "data-size": r,
5170
5210
  variant: n,
5171
- className: J(zs({ size: r }), e),
5211
+ className: J(Gs({ size: r }), e),
5172
5212
  ...i
5173
5213
  });
5174
5214
  }
5175
- function Vs({ className: e, ...t }) {
5215
+ function qs({ className: e, ...t }) {
5176
5216
  return /* @__PURE__ */ h("span", {
5177
5217
  className: J("flex items-center gap-2 text-sm text-muted-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4", e),
5178
5218
  ...t
5179
5219
  });
5180
5220
  }
5181
- function Hs({ className: e, ...t }) {
5182
- return /* @__PURE__ */ h(Ps, {
5221
+ function Js({ className: e, ...t }) {
5222
+ return /* @__PURE__ */ h(Bs, {
5183
5223
  "data-slot": "input-group-control",
5184
5224
  className: J("flex-1 rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 disabled:bg-transparent aria-invalid:ring-0 dark:bg-transparent dark:disabled:bg-transparent", e),
5185
5225
  ...t
5186
5226
  });
5187
5227
  }
5188
- function Us({ className: e, ...t }) {
5189
- return /* @__PURE__ */ h(Fs, {
5228
+ function Ys({ className: e, ...t }) {
5229
+ return /* @__PURE__ */ h(Vs, {
5190
5230
  "data-slot": "input-group-control",
5191
5231
  className: J("flex-1 resize-none rounded-none border-0 bg-transparent py-2 shadow-none ring-0 focus-visible:ring-0 disabled:bg-transparent aria-invalid:ring-0 dark:bg-transparent dark:disabled:bg-transparent", e),
5192
5232
  ...t
5193
5233
  });
5194
5234
  }
5195
5235
  //#endregion
5196
- export { ca as $, Io as A, xt as At, xo as B, $e as Bt, ts as C, yr as Ct, Vo as D, It as Dt, Ho as E, qt as Et, Ao as F, lt as Ft, no as G, bo as H, Ze as Ht, ko as I, ut as It, Ca as J, Q as K, To as L, nt as Lt, No as M, ht as Mt, Mo as N, mt as Nt, Bo as O, Ot, jo as P, ft as Pt, xa as Q, So as R, tt as Rt, Go as S, Or as St, zo as T, sn as Tt, Co as U, J as Ut, yo as V, et as Vt, _o as W, Z as X, X as Y, la as Z, Xo as _, li as _t, Vs as a, bi as at, ns as b, ii as bt, Ps as c, Oi as ct, gs as d, ki as dt, da as et, Wo as f, gi as ft, Zo as g, di as gt, $o as h, fi as ht, Hs as i, wi as it, Po as j, _t as jt, Uo as k, Dt as kt, Ns as l, Hi as lt, Yo as m, hi as mt, Rs as n, ba as nt, Us as o, Ei as ot, qo as p, pi as pt, oa as q, Bs as r, Ci as rt, Fs as s, Ai as st, Is as t, ua as tt, Ms as u, Ti as ut, Jo as v, mi as vt, Lo as w, ln as wt, Qo as x, jr as xt, Ko as y, ui as yt, wo as z, at as zt };
5236
+ export { X as $, Ho as A, qt as At, ko as B, ut as Bt, ss as C, ui as Ct, qo as D, yr as Dt, Jo as E, Or as Et, Po as F, _t as Ft, yo as G, et as Gt, So as H, tt as Ht, Lo as I, ht as It, _o as J, bo as K, Ze as Kt, No as L, mt as Lt, zo as M, Ot as Mt, Ro as N, Dt as Nt, Ko as O, ln as Ot, Io as P, xt as Pt, Ca as Q, jo as R, ft as Rt, Zo as S, mi as St, Go as T, jr as Tt, wo as U, at as Ut, To as V, nt as Vt, xo as W, $e as Wt, Q as X, no as Y, oa as Z, ns as _, pi as _t, qs as a, ua as at, cs as b, di as bt, Bs as c, wi as ct, Ss as d, Ai as dt, Z as et, Xo as f, Oi as ft, rs as g, gi as gt, as as h, ki as ht, Js as i, da as it, Bo as j, It as jt, Yo as k, sn as kt, zs as l, bi as lt, ts as m, Ti as mt, Ws as n, xa as nt, Ys as o, ba as ot, $o as p, Hi as pt, Co as q, J as qt, Ks as r, ca as rt, Vs as s, Ci as st, Hs as t, la as tt, Rs as u, Ei as ut, es as v, hi as vt, Uo as w, ii as wt, is as x, li as xt, Qo as y, fi as yt, Ao as z, lt as zt };