PageSourceSearch

https://systrastudios.de/assets/toaster-C8YQJd0k.js

js systrastudios.de collected 2026-09-24 13:40:45 UTC 3,194 bytes, 1 lines download raw bytes

1import{r,j as t,V as d,k as n,A as c,l as u,m as l,D as p,n as y}from"./react-DViRqEpY.js";import{u as b}from"./use-toast-De0Ugcpa.js";import{c as N}from"./index-CHFZhq7L.js";import{c as a}from"./index-BIcjdN0f.js";import{X as j}from"./icons-DkOjBtBf.js";import"./supabase-CyS4guSS.js";const T=y,m=r.forwardRef(({className:s,...o},e)=>t.jsx(d,{ref:e,className:a("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",s),...o}));m.displayName=d.displayName;const R=N("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),f=r.forwardRef(({className:s,variant:o,...e},i)=>t.jsx(n,{ref:i,className:a(R({variant:o}),s),...e}));f.displayName=n.displayName;const V=r.forwardRef(({className:s,...o},e)=>t.jsx(c,{ref:e,className:a("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",s),...o}));V.displayName=c.displayName;const x=r.forwardRef(({className:s,...o},e)=>t.jsx(u,{ref:e,className:a("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",s),"toast-close":"",...o,children:t.jsx(j,{className:"h-4 w-4"})}));x.displayName=u.displayName;const v=r.forwardRef(({className:s,...o},e)=>t.jsx(l,{ref:e,className:a("text-sm font-semibold",s),...o}));v.displayName=l.displayName;const g=r.forwardRef(({className:s,...o},e)=>t.jsx(p,{ref:e,className:a("text-sm opacity-90",s),...o}));g.displayName=p.displayName;function z(){const{toasts:s}=b();return t.jsxs(T,{children:[s.map(function({id:o,title:e,description:i,action:h,...w}){return t.jsxs(f,{...w,children:[t.jsxs("div",{className:"grid gap-1",children:[e&&t.jsx(v,{children:e}),i&&t.jsx(g,{children:i})]}),h,t.jsx(x,{})]},o)}),t.jsx(m,{})]})}export{z as Toaster};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.