opsfuse-ui 0.1.3 → 0.1.5

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.
@@ -4209,60 +4209,24 @@ 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
4248
4212
  //#region src/lib/brand-theme.ts
4249
- var Ro = [
4213
+ var Mo = [
4250
4214
  "recruitsmartly",
4251
4215
  "skillready",
4252
4216
  "worklog",
4253
4217
  "verity"
4254
- ], zo = "recruitsmartly";
4218
+ ], No = "recruitsmartly";
4255
4219
  //#endregion
4256
4220
  //#region src/lib/document-dark-mode.ts
4257
- function Bo() {
4221
+ function Po() {
4258
4222
  if (typeof document > "u") return !1;
4259
4223
  let e = document.documentElement;
4260
4224
  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);
4261
4225
  }
4262
- function Vo() {
4263
- let [e, t] = s.useState(() => typeof document > "u" ? !1 : Bo());
4226
+ function Fo() {
4227
+ let [e, t] = s.useState(() => typeof document > "u" ? !1 : Po());
4264
4228
  return s.useEffect(() => {
4265
- let e = () => t(Bo());
4229
+ let e = () => t(Po());
4266
4230
  e();
4267
4231
  let n = new MutationObserver(e);
4268
4232
  return n.observe(document.documentElement, {
@@ -4281,7 +4245,7 @@ function Vo() {
4281
4245
  }
4282
4246
  //#endregion
4283
4247
  //#region src/lib/theme-scope.ts
4284
- var Ho = "opsfuse-ui", Uo = {
4248
+ var Io = "opsfuse-ui", Lo = {
4285
4249
  "--color-background": "var(--background)",
4286
4250
  "--color-foreground": "var(--foreground)",
4287
4251
  "--color-card": "var(--card)",
@@ -4318,79 +4282,75 @@ var Ho = "opsfuse-ui", Uo = {
4318
4282
  "--color-text-disabled": "var(--disabled-foreground)",
4319
4283
  "--color-text-input-placeholder": "var(--muted-foreground)",
4320
4284
  "--color-subtle-foreground": "var(--subtle-foreground)"
4321
- }, Wo = s.createContext(null);
4322
- function Go({ theme: e, children: t }) {
4323
- return /* @__PURE__ */ h(Wo.Provider, {
4285
+ }, Ro = s.createContext(null);
4286
+ function zo({ theme: e, children: t }) {
4287
+ return /* @__PURE__ */ h(Ro.Provider, {
4324
4288
  value: e,
4325
4289
  children: t
4326
4290
  });
4327
4291
  }
4328
- function Ko() {
4329
- return s.useContext(Wo) ?? "recruitsmartly";
4292
+ function Bo() {
4293
+ return s.useContext(Ro) ?? "recruitsmartly";
4330
4294
  }
4331
- function qo(e) {
4295
+ function Vo(e) {
4332
4296
  return `brand-${e}`;
4333
4297
  }
4334
- function Jo(e, t, n, r) {
4298
+ function Ho(e, t, n, r) {
4335
4299
  return {
4336
- className: J(Ho, qo(e), t && "dark", n),
4300
+ className: J(Io, Vo(e), t && "dark", n),
4337
4301
  style: {
4338
- ...Uo,
4302
+ ...Lo,
4339
4303
  ...r
4340
4304
  }
4341
4305
  };
4342
4306
  }
4343
- function Yo(e, t) {
4344
- return Jo(Ko(), Vo(), e, t);
4307
+ function Uo(e, t) {
4308
+ return Ho(Bo(), Fo(), e, t);
4345
4309
  }
4346
4310
  //#endregion
4347
4311
  //#region src/components/ui/dialog.tsx
4348
- function Xo({ ...e }) {
4312
+ function Wo({ ...e }) {
4349
4313
  return /* @__PURE__ */ h(li, {
4350
4314
  "data-slot": "dialog",
4351
4315
  ...e
4352
4316
  });
4353
4317
  }
4354
- function Zo({ ...e }) {
4318
+ function Go({ ...e }) {
4355
4319
  return /* @__PURE__ */ h(ui, {
4356
4320
  "data-slot": "dialog-trigger",
4357
4321
  ...e
4358
4322
  });
4359
4323
  }
4360
- function Qo({ ...e }) {
4324
+ function Ko({ ...e }) {
4361
4325
  return /* @__PURE__ */ h(di, {
4362
4326
  "data-slot": "dialog-portal",
4363
4327
  ...e
4364
4328
  });
4365
4329
  }
4366
- function $o({ ...e }) {
4330
+ function qo({ ...e }) {
4367
4331
  return /* @__PURE__ */ h(gi, {
4368
4332
  "data-slot": "dialog-close",
4369
4333
  ...e
4370
4334
  });
4371
4335
  }
4372
- function es({ className: e, ...t }) {
4336
+ function Jo({ className: e, ...t }) {
4373
4337
  return /* @__PURE__ */ h(fi, {
4374
4338
  "data-slot": "dialog-overlay",
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),
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),
4376
4340
  ...t
4377
4341
  });
4378
4342
  }
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,
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, {
4383
4346
  "data-slot": "dialog-content",
4384
4347
  style: {
4385
- ...s.style,
4348
+ ...o.style,
4386
4349
  ...i
4387
4350
  },
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, {
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, {
4394
4354
  "data-slot": "dialog-close",
4395
4355
  asChild: !0,
4396
4356
  children: /* @__PURE__ */ g(jo, {
@@ -4405,14 +4365,14 @@ function ts({ className: e, children: t, showCloseButton: n = !0, style: i, ref:
4405
4365
  })]
4406
4366
  })] });
4407
4367
  }
4408
- function ns({ className: e, ...t }) {
4368
+ function Xo({ className: e, ...t }) {
4409
4369
  return /* @__PURE__ */ h("div", {
4410
4370
  "data-slot": "dialog-header",
4411
4371
  className: J("flex flex-col gap-2", e),
4412
4372
  ...t
4413
4373
  });
4414
4374
  }
4415
- function rs({ className: e, showCloseButton: t = !1, children: n, ...r }) {
4375
+ function Zo({ className: e, showCloseButton: t = !1, children: n, ...r }) {
4416
4376
  return /* @__PURE__ */ g("div", {
4417
4377
  "data-slot": "dialog-footer",
4418
4378
  className: J("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", e),
@@ -4426,38 +4386,38 @@ function rs({ className: e, showCloseButton: t = !1, children: n, ...r }) {
4426
4386
  })]
4427
4387
  });
4428
4388
  }
4429
- function is({ className: e, ...t }) {
4389
+ function Qo({ className: e, ...t }) {
4430
4390
  return /* @__PURE__ */ h(mi, {
4431
4391
  "data-slot": "dialog-title",
4432
4392
  className: J("font-heading text-base leading-none font-semibold", e),
4433
4393
  ...t
4434
4394
  });
4435
4395
  }
4436
- function as({ className: e, ...t }) {
4396
+ function $o({ className: e, ...t }) {
4437
4397
  return /* @__PURE__ */ h(hi, {
4438
4398
  "data-slot": "dialog-description",
4439
4399
  className: J("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground", e),
4440
4400
  ...t
4441
4401
  });
4442
4402
  }
4443
- var os = null;
4444
- function ss(e) {
4445
- os?.(e);
4403
+ var es = null;
4404
+ function ts(e) {
4405
+ es?.(e);
4446
4406
  }
4447
- function cs({ children: e }) {
4407
+ function ns({ children: e }) {
4448
4408
  let [t, n] = s.useState(null);
4449
- s.useLayoutEffect(() => (os = (e) => n(e), () => {
4450
- os = null;
4409
+ s.useLayoutEffect(() => (es = (e) => n(e), () => {
4410
+ es = null;
4451
4411
  }), []);
4452
4412
  let r = s.useCallback((e) => {
4453
4413
  e || n((e) => (e && e.onClose?.(), null));
4454
4414
  }, []);
4455
- return /* @__PURE__ */ g(m, { children: [e, t ? /* @__PURE__ */ h(Xo, {
4415
+ return /* @__PURE__ */ g(m, { children: [e, t ? /* @__PURE__ */ h(Wo, {
4456
4416
  open: !0,
4457
4417
  onOpenChange: r,
4458
- children: /* @__PURE__ */ g(ts, {
4418
+ children: /* @__PURE__ */ g(Yo, {
4459
4419
  showCloseButton: t.showCloseButton ?? !0,
4460
- children: [/* @__PURE__ */ g(ns, { children: [/* @__PURE__ */ h(is, { children: t.title }), /* @__PURE__ */ h(as, {
4420
+ children: [/* @__PURE__ */ g(Xo, { children: [/* @__PURE__ */ h(Qo, { children: t.title }), /* @__PURE__ */ h($o, {
4461
4421
  className: t.description ? void 0 : "sr-only",
4462
4422
  children: t.description ?? t.title
4463
4423
  })] }), t.children]
@@ -4466,26 +4426,26 @@ function cs({ children: e }) {
4466
4426
  }
4467
4427
  //#endregion
4468
4428
  //#region node_modules/sonner/dist/index.mjs
4469
- function ls(e) {
4429
+ function rs(e) {
4470
4430
  if (!e || typeof document > "u") return;
4471
4431
  let t = document.head || document.getElementsByTagName("head")[0], n = document.createElement("style");
4472
4432
  n.type = "text/css", t.appendChild(n), n.styleSheet ? n.styleSheet.cssText = e : n.appendChild(document.createTextNode(e));
4473
4433
  }
4474
- var us = (e) => {
4434
+ var is = (e) => {
4475
4435
  switch (e) {
4476
- case "success": return ps;
4477
- case "info": return hs;
4478
- case "warning": return ms;
4479
- case "error": return gs;
4436
+ case "success": return ss;
4437
+ case "info": return ls;
4438
+ case "warning": return cs;
4439
+ case "error": return us;
4480
4440
  default: return null;
4481
4441
  }
4482
- }, ds = Array(12).fill(0), fs = ({ visible: e, className: t }) => /* @__PURE__ */ c.createElement("div", {
4442
+ }, as = Array(12).fill(0), os = ({ visible: e, className: t }) => /* @__PURE__ */ c.createElement("div", {
4483
4443
  className: ["sonner-loading-wrapper", t].filter(Boolean).join(" "),
4484
4444
  "data-visible": e
4485
- }, /* @__PURE__ */ c.createElement("div", { className: "sonner-spinner" }, ds.map((e, t) => /* @__PURE__ */ c.createElement("div", {
4445
+ }, /* @__PURE__ */ c.createElement("div", { className: "sonner-spinner" }, as.map((e, t) => /* @__PURE__ */ c.createElement("div", {
4486
4446
  className: "sonner-loading-bar",
4487
4447
  key: `spinner-bar-${t}`
4488
- })))), ps = /* @__PURE__ */ c.createElement("svg", {
4448
+ })))), ss = /* @__PURE__ */ c.createElement("svg", {
4489
4449
  xmlns: "http://www.w3.org/2000/svg",
4490
4450
  viewBox: "0 0 20 20",
4491
4451
  fill: "currentColor",
@@ -4495,7 +4455,7 @@ var us = (e) => {
4495
4455
  fillRule: "evenodd",
4496
4456
  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",
4497
4457
  clipRule: "evenodd"
4498
- })), ms = /* @__PURE__ */ c.createElement("svg", {
4458
+ })), cs = /* @__PURE__ */ c.createElement("svg", {
4499
4459
  xmlns: "http://www.w3.org/2000/svg",
4500
4460
  viewBox: "0 0 24 24",
4501
4461
  fill: "currentColor",
@@ -4505,7 +4465,7 @@ var us = (e) => {
4505
4465
  fillRule: "evenodd",
4506
4466
  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",
4507
4467
  clipRule: "evenodd"
4508
- })), hs = /* @__PURE__ */ c.createElement("svg", {
4468
+ })), ls = /* @__PURE__ */ c.createElement("svg", {
4509
4469
  xmlns: "http://www.w3.org/2000/svg",
4510
4470
  viewBox: "0 0 20 20",
4511
4471
  fill: "currentColor",
@@ -4515,7 +4475,7 @@ var us = (e) => {
4515
4475
  fillRule: "evenodd",
4516
4476
  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",
4517
4477
  clipRule: "evenodd"
4518
- })), gs = /* @__PURE__ */ c.createElement("svg", {
4478
+ })), us = /* @__PURE__ */ c.createElement("svg", {
4519
4479
  xmlns: "http://www.w3.org/2000/svg",
4520
4480
  viewBox: "0 0 20 20",
4521
4481
  fill: "currentColor",
@@ -4525,7 +4485,7 @@ var us = (e) => {
4525
4485
  fillRule: "evenodd",
4526
4486
  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",
4527
4487
  clipRule: "evenodd"
4528
- })), _s = /* @__PURE__ */ c.createElement("svg", {
4488
+ })), ds = /* @__PURE__ */ c.createElement("svg", {
4529
4489
  xmlns: "http://www.w3.org/2000/svg",
4530
4490
  width: "12",
4531
4491
  height: "12",
@@ -4545,7 +4505,7 @@ var us = (e) => {
4545
4505
  y1: "6",
4546
4506
  x2: "18",
4547
4507
  y2: "18"
4548
- })), vs = () => {
4508
+ })), fs = () => {
4549
4509
  let [e, t] = c.useState(document.hidden);
4550
4510
  return c.useEffect(() => {
4551
4511
  let e = () => {
@@ -4553,7 +4513,7 @@ var us = (e) => {
4553
4513
  };
4554
4514
  return document.addEventListener("visibilitychange", e), () => window.removeEventListener("visibilitychange", e);
4555
4515
  }, []), e;
4556
- }, ys = 1, $ = new class {
4516
+ }, ps = 1, $ = new class {
4557
4517
  constructor() {
4558
4518
  this.subscribe = (e) => (this.subscribers.push(e), () => {
4559
4519
  let t = this.subscribers.indexOf(e);
@@ -4563,7 +4523,7 @@ var us = (e) => {
4563
4523
  }, this.addToast = (e) => {
4564
4524
  this.publish(e), this.toasts = [...this.toasts, e];
4565
4525
  }, this.create = (e) => {
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;
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;
4567
4527
  return this.dismissedToasts.has(r) && this.dismissedToasts.delete(r), i ? this.toasts = this.toasts.map((n) => n.id === r ? (this.publish({
4568
4528
  ...n,
4569
4529
  ...e,
@@ -4628,7 +4588,7 @@ var us = (e) => {
4628
4588
  type: "default",
4629
4589
  message: e
4630
4590
  });
4631
- else if (xs(e) && !e.ok) {
4591
+ else if (hs(e) && !e.ok) {
4632
4592
  i = !1;
4633
4593
  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 };
4634
4594
  this.create({
@@ -4672,7 +4632,7 @@ var us = (e) => {
4672
4632
  }), s = () => new Promise((e, t) => o.then(() => a[0] === "reject" ? t(a[1]) : e(a[1])).catch(t));
4673
4633
  return typeof n != "string" && typeof n != "number" ? { unwrap: s } : Object.assign(n, { unwrap: s });
4674
4634
  }, this.custom = (e, t) => {
4675
- let n = t?.id || ys++;
4635
+ let n = t?.id || ps++;
4676
4636
  return this.create({
4677
4637
  jsx: e(n),
4678
4638
  id: n,
@@ -4680,14 +4640,14 @@ var us = (e) => {
4680
4640
  }), n;
4681
4641
  }, this.getActiveToasts = () => this.toasts.filter((e) => !this.dismissedToasts.has(e.id)), this.subscribers = [], this.toasts = [], this.dismissedToasts = /* @__PURE__ */ new Set();
4682
4642
  }
4683
- }(), bs = (e, t) => {
4684
- let n = t?.id || ys++;
4643
+ }(), ms = (e, t) => {
4644
+ let n = t?.id || ps++;
4685
4645
  return $.addToast({
4686
4646
  title: e,
4687
4647
  ...t,
4688
4648
  id: n
4689
4649
  }), n;
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, {
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, {
4691
4651
  success: $.success,
4692
4652
  info: $.info,
4693
4653
  warning: $.warning,
@@ -4701,20 +4661,20 @@ var us = (e) => {
4701
4661
  getHistory: () => $.toasts,
4702
4662
  getToasts: () => $.getActiveToasts()
4703
4663
  });
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) {
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) {
4706
4666
  return e.label !== void 0;
4707
4667
  }
4708
- var ws = 3, Ts = "24px", Es = "16px", Ds = 4e3, Os = 356, ks = 14, As = 45, js = 200;
4709
- function Ms(...e) {
4668
+ var vs = 3, ys = "24px", bs = "16px", xs = 4e3, Ss = 356, Cs = 14, ws = 45, Ts = 200;
4669
+ function Es(...e) {
4710
4670
  return e.filter(Boolean).join(" ");
4711
4671
  }
4712
- function Ns(e) {
4672
+ function Ds(e) {
4713
4673
  let [t, n] = e.split("-"), r = [];
4714
4674
  return t && r.push(t), n && r.push(n), r;
4715
4675
  }
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";
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";
4718
4678
  U.current = c.useMemo(() => de * S + _e, [de, _e]), c.useEffect(() => {
4719
4679
  R.current = pe;
4720
4680
  }, [pe]), c.useEffect(() => {
@@ -4755,7 +4715,7 @@ var Ps = (e) => {
4755
4715
  let xe = c.useCallback(() => {
4756
4716
  M(!0), L(U.current), a((e) => e.filter((e) => e.toastId !== n.id)), setTimeout(() => {
4757
4717
  f(n);
4758
- }, js);
4718
+ }, Ts);
4759
4719
  }, [
4760
4720
  n,
4761
4721
  f,
@@ -4786,18 +4746,18 @@ var Ps = (e) => {
4786
4746
  }, [xe, n.delete]);
4787
4747
  function Se() {
4788
4748
  return T?.loading ? /* @__PURE__ */ c.createElement("div", {
4789
- className: Ms(w?.loader, n?.classNames?.loader, "sonner-loader"),
4749
+ className: Es(w?.loader, n?.classNames?.loader, "sonner-loader"),
4790
4750
  "data-visible": V === "loading"
4791
- }, T.loading) : /* @__PURE__ */ c.createElement(fs, {
4792
- className: Ms(w?.loader, n?.classNames?.loader),
4751
+ }, T.loading) : /* @__PURE__ */ c.createElement(os, {
4752
+ className: Es(w?.loader, n?.classNames?.loader),
4793
4753
  visible: V === "loading"
4794
4754
  });
4795
4755
  }
4796
- let Ce = n.icon || T?.[V] || us(V);
4756
+ let Ce = n.icon || T?.[V] || is(V);
4797
4757
  return /* @__PURE__ */ c.createElement("li", {
4798
4758
  tabIndex: 0,
4799
4759
  ref: z,
4800
- className: Ms(v, le, w?.toast, n?.classNames?.toast, w?.default, w?.[V], n?.classNames?.[V]),
4760
+ className: Es(v, le, w?.toast, n?.classNames?.toast, w?.default, w?.[V], n?.classNames?.[V]),
4801
4761
  "data-sonner-toast": "",
4802
4762
  "data-rich-colors": n.richColors ?? p,
4803
4763
  "data-styled": !(n.jsx || n.unstyled || r),
@@ -4840,7 +4800,7 @@ var Ps = (e) => {
4840
4800
  if (F || !H) return;
4841
4801
  G.current = null;
4842
4802
  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;
4843
- if (Math.abs(i) >= As || a > .11) {
4803
+ if (Math.abs(i) >= ws || a > .11) {
4844
4804
  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);
4845
4805
  return;
4846
4806
  } else {
@@ -4852,7 +4812,7 @@ var Ps = (e) => {
4852
4812
  onPointerMove: (t) => {
4853
4813
  var n, r;
4854
4814
  if (!G.current || !H || window.getSelection()?.toString().length > 0) return;
4855
- let i = t.clientY - G.current.y, a = t.clientX - G.current.x, o = e.swipeDirections ?? Ns(x);
4815
+ let i = t.clientY - G.current.y, a = t.clientX - G.current.x, o = e.swipeDirections ?? Ds(x);
4856
4816
  !E && (Math.abs(a) > 1 || Math.abs(i) > 1) && D(Math.abs(a) > Math.abs(i) ? "x" : "y");
4857
4817
  let s = {
4858
4818
  x: 0,
@@ -4878,46 +4838,46 @@ var Ps = (e) => {
4878
4838
  onClick: be || !H ? () => {} : () => {
4879
4839
  xe(), n.onDismiss == null || n.onDismiss.call(n, n);
4880
4840
  },
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", {
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", {
4883
4843
  "data-icon": "",
4884
- className: Ms(w?.icon, n?.classNames?.icon)
4844
+ className: Es(w?.icon, n?.classNames?.icon)
4885
4845
  }, n.promise || n.type === "loading" && !n.icon ? n.icon || Se() : null, n.type === "loading" ? null : Ce) : null, /* @__PURE__ */ c.createElement("div", {
4886
4846
  "data-content": "",
4887
- className: Ms(w?.content, n?.classNames?.content)
4847
+ className: Es(w?.content, n?.classNames?.content)
4888
4848
  }, /* @__PURE__ */ c.createElement("div", {
4889
4849
  "data-title": "",
4890
- className: Ms(w?.title, n?.classNames?.title)
4850
+ className: Es(w?.title, n?.classNames?.title)
4891
4851
  }, n.jsx ? n.jsx : typeof n.title == "function" ? n.title() : n.title), n.description ? /* @__PURE__ */ c.createElement("div", {
4892
4852
  "data-description": "",
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", {
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", {
4895
4855
  "data-button": !0,
4896
4856
  "data-cancel": !0,
4897
4857
  style: n.cancelButtonStyle || g,
4898
4858
  onClick: (e) => {
4899
- Cs(n.cancel) && H && (n.cancel.onClick == null || n.cancel.onClick.call(n.cancel, e), xe());
4859
+ _s(n.cancel) && H && (n.cancel.onClick == null || n.cancel.onClick.call(n.cancel, e), xe());
4900
4860
  },
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", {
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", {
4903
4863
  "data-button": !0,
4904
4864
  "data-action": !0,
4905
4865
  style: n.actionButtonStyle || _,
4906
4866
  onClick: (e) => {
4907
- Cs(n.action) && (n.action.onClick == null || n.action.onClick.call(n.action, e), !e.defaultPrevented && xe());
4867
+ _s(n.action) && (n.action.onClick == null || n.action.onClick.call(n.action, e), !e.defaultPrevented && xe());
4908
4868
  },
4909
- className: Ms(w?.actionButton, n?.classNames?.actionButton)
4869
+ className: Es(w?.actionButton, n?.classNames?.actionButton)
4910
4870
  }, n.action.label) : null);
4911
4871
  };
4912
- function Fs() {
4872
+ function ks() {
4913
4873
  if (typeof window > "u" || typeof document > "u") return "ltr";
4914
4874
  let e = document.documentElement.getAttribute("dir");
4915
4875
  return e === "auto" || !e ? window.getComputedStyle(document.documentElement).direction : e;
4916
4876
  }
4917
- function Is(e, t) {
4877
+ function As(e, t) {
4918
4878
  let n = {};
4919
4879
  return [e, t].forEach((e, t) => {
4920
- let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? Es : Ts;
4880
+ let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? bs : ys;
4921
4881
  function o(e) {
4922
4882
  [
4923
4883
  "top",
@@ -4938,8 +4898,8 @@ function Is(e, t) {
4938
4898
  }) : o(a);
4939
4899
  }), n;
4940
4900
  }
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) => {
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) => {
4943
4903
  w((t) => (t.find((t) => t.id === e.id)?.delete || $.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));
4944
4904
  }, []);
4945
4905
  return c.useEffect(() => $.subscribe((e) => {
@@ -5014,7 +4974,7 @@ var Ls = /* @__PURE__ */ c.forwardRef(function(e, t) {
5014
4974
  let [i, a] = t.split("-");
5015
4975
  return T.length ? /* @__PURE__ */ c.createElement("ol", {
5016
4976
  key: t,
5017
- dir: y === "auto" ? Fs() : y,
4977
+ dir: y === "auto" ? ks() : y,
5018
4978
  tabIndex: -1,
5019
4979
  ref: N,
5020
4980
  className: l,
@@ -5024,10 +4984,10 @@ var Ls = /* @__PURE__ */ c.forwardRef(function(e, t) {
5024
4984
  "data-x-position": a,
5025
4985
  style: {
5026
4986
  "--front-toast-height": `${E[0]?.height || 0}px`,
5027
- "--width": `${Os}px`,
4987
+ "--width": `${Ss}px`,
5028
4988
  "--gap": `${b}px`,
5029
4989
  ...g,
5030
- ...Is(u, d)
4990
+ ...As(u, d)
5031
4991
  },
5032
4992
  onBlur: (e) => {
5033
4993
  ne.current && !e.currentTarget.contains(e.relatedTarget) && (ne.current = !1, F.current &&= (F.current.focus({ preventScroll: !0 }), null));
@@ -5045,7 +5005,7 @@ var Ls = /* @__PURE__ */ c.forwardRef(function(e, t) {
5045
5005
  e.target instanceof HTMLElement && e.target.dataset.dismissible === "false" || A(!0);
5046
5006
  },
5047
5007
  onPointerUp: () => A(!1)
5048
- }, T.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /* @__PURE__ */ c.createElement(Ps, {
5008
+ }, T.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /* @__PURE__ */ c.createElement(Os, {
5049
5009
  key: n.id,
5050
5010
  icons: x,
5051
5011
  index: i,
@@ -5075,9 +5035,9 @@ var Ls = /* @__PURE__ */ c.forwardRef(function(e, t) {
5075
5035
  swipeDirections: e.swipeDirections
5076
5036
  }))) : null;
5077
5037
  }));
5078
- }), Rs = ({ style: r, className: o, ...s }) => {
5079
- let c = Ko(), l = Vo(), u = Jo(c, l);
5080
- return /* @__PURE__ */ h(Ls, {
5038
+ }), Ms = ({ style: r, className: o, ...s }) => {
5039
+ let c = Bo(), l = Fo(), u = Ho(c, l);
5040
+ return /* @__PURE__ */ h(js, {
5081
5041
  theme: l ? "dark" : "light",
5082
5042
  className: J("toaster group", u.className, o),
5083
5043
  icons: {
@@ -5101,7 +5061,7 @@ var Ls = /* @__PURE__ */ c.forwardRef(function(e, t) {
5101
5061
  };
5102
5062
  //#endregion
5103
5063
  //#region src/components/ui/label.tsx
5104
- function zs({ className: e, ...t }) {
5064
+ function Ns({ className: e, ...t }) {
5105
5065
  return /* @__PURE__ */ h(Oo, {
5106
5066
  "data-slot": "label",
5107
5067
  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),
@@ -5110,12 +5070,12 @@ function zs({ className: e, ...t }) {
5110
5070
  }
5111
5071
  //#endregion
5112
5072
  //#region src/components/ui/input.tsx
5113
- function Bs({ className: e, type: t, error: n = !1, label: r, helperText: i, startIcon: a, endIcon: o, appearance: s = "default", ...c }) {
5073
+ function Ps({ className: e, type: t, error: n = !1, label: r, helperText: i, startIcon: a, endIcon: o, appearance: s = "default", ...c }) {
5114
5074
  let u = a ? l(a, { className: J("stroke-text-input-placeholder") }) : null, d = o ? l(o, { className: J("stroke-text-input-placeholder") }) : null;
5115
5075
  return /* @__PURE__ */ g("div", {
5116
5076
  className: "w-full flex flex-col gap-2 h-fit ",
5117
5077
  children: [
5118
- !!r && /* @__PURE__ */ h(zs, { children: r }),
5078
+ !!r && /* @__PURE__ */ h(Ns, { children: r }),
5119
5079
  /* @__PURE__ */ g("div", {
5120
5080
  className: "w-full relative",
5121
5081
  children: [
@@ -5146,11 +5106,11 @@ function Bs({ className: e, type: t, error: n = !1, label: r, helperText: i, sta
5146
5106
  }
5147
5107
  //#endregion
5148
5108
  //#region src/components/ui/textarea.tsx
5149
- function Vs({ className: e, error: t = !1, label: n, helperText: r, ...i }) {
5109
+ function Fs({ className: e, error: t = !1, label: n, helperText: r, ...i }) {
5150
5110
  return /* @__PURE__ */ g("div", {
5151
5111
  className: "w-full flex flex-col gap-2",
5152
5112
  children: [
5153
- n && /* @__PURE__ */ h(zs, { children: n }),
5113
+ n && /* @__PURE__ */ h(Ns, { children: n }),
5154
5114
  /* @__PURE__ */ h("textarea", {
5155
5115
  "data-slot": "textarea",
5156
5116
  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),
@@ -5165,7 +5125,7 @@ function Vs({ className: e, error: t = !1, label: n, helperText: r, ...i }) {
5165
5125
  }
5166
5126
  //#endregion
5167
5127
  //#region src/components/ui/input-group.tsx
5168
- function Hs({ className: e, ...t }) {
5128
+ function Is({ className: e, ...t }) {
5169
5129
  return /* @__PURE__ */ h("div", {
5170
5130
  "data-slot": "input-group",
5171
5131
  role: "group",
@@ -5173,7 +5133,7 @@ function Hs({ className: e, ...t }) {
5173
5133
  ...t
5174
5134
  });
5175
5135
  }
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", {
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", {
5177
5137
  variants: { align: {
5178
5138
  "inline-start": "order-first pl-2 has-[>button]:ml-[-0.3rem] has-[>kbd]:ml-[-0.15rem]",
5179
5139
  "inline-end": "order-last pr-2 has-[>button]:mr-[-0.3rem] has-[>kbd]:mr-[-0.15rem]",
@@ -5182,19 +5142,19 @@ var Us = Ze("flex h-auto cursor-text items-center justify-center gap-2 py-1.5 te
5182
5142
  } },
5183
5143
  defaultVariants: { align: "inline-start" }
5184
5144
  });
5185
- function Ws({ className: e, align: t = "inline-start", ...n }) {
5145
+ function Rs({ className: e, align: t = "inline-start", ...n }) {
5186
5146
  return /* @__PURE__ */ h("div", {
5187
5147
  role: "group",
5188
5148
  "data-slot": "input-group-addon",
5189
5149
  "data-align": t,
5190
- className: J(Us({ align: t }), e),
5150
+ className: J(Ls({ align: t }), e),
5191
5151
  onClick: (e) => {
5192
5152
  e.target.closest("button") || e.currentTarget.parentElement?.querySelector("input")?.focus();
5193
5153
  },
5194
5154
  ...n
5195
5155
  });
5196
5156
  }
5197
- var Gs = Ze("flex items-center gap-2 text-sm shadow-none", {
5157
+ var zs = Ze("flex items-center gap-2 text-sm shadow-none", {
5198
5158
  variants: { size: {
5199
5159
  xs: "h-6 gap-1 rounded-[calc(var(--radius)-3px)] px-1.5 [&>svg:not([class*='size-'])]:size-3.5",
5200
5160
  sm: "",
@@ -5203,34 +5163,34 @@ var Gs = Ze("flex items-center gap-2 text-sm shadow-none", {
5203
5163
  } },
5204
5164
  defaultVariants: { size: "xs" }
5205
5165
  });
5206
- function Ks({ className: e, type: t = "button", variant: n = "ghost", size: r = "xs", ...i }) {
5166
+ function Bs({ className: e, type: t = "button", variant: n = "ghost", size: r = "xs", ...i }) {
5207
5167
  return /* @__PURE__ */ h(jo, {
5208
5168
  type: t,
5209
5169
  "data-size": r,
5210
5170
  variant: n,
5211
- className: J(Gs({ size: r }), e),
5171
+ className: J(zs({ size: r }), e),
5212
5172
  ...i
5213
5173
  });
5214
5174
  }
5215
- function qs({ className: e, ...t }) {
5175
+ function Vs({ className: e, ...t }) {
5216
5176
  return /* @__PURE__ */ h("span", {
5217
5177
  className: J("flex items-center gap-2 text-sm text-muted-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4", e),
5218
5178
  ...t
5219
5179
  });
5220
5180
  }
5221
- function Js({ className: e, ...t }) {
5222
- return /* @__PURE__ */ h(Bs, {
5181
+ function Hs({ className: e, ...t }) {
5182
+ return /* @__PURE__ */ h(Ps, {
5223
5183
  "data-slot": "input-group-control",
5224
5184
  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),
5225
5185
  ...t
5226
5186
  });
5227
5187
  }
5228
- function Ys({ className: e, ...t }) {
5229
- return /* @__PURE__ */ h(Vs, {
5188
+ function Us({ className: e, ...t }) {
5189
+ return /* @__PURE__ */ h(Fs, {
5230
5190
  "data-slot": "input-group-control",
5231
5191
  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),
5232
5192
  ...t
5233
5193
  });
5234
5194
  }
5235
5195
  //#endregion
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 };
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 };