Skip to content

The only tool you need to know what is happening and how to fix it.

1.1 KB
Raw Blame
import"./DsnmJJEf.js";import{e as d,h as s,m as n,r as c,o as x,q as g,d as m,s as j,f as w}from"./BKFspo1J.js";import{i as l}from"./COK9M2N0.js";import{a as B,c as E}from"./DwMHXN8q.js";import{p as V}from"./CARHnQ8P.js";import{B as q}from"./DY5VVhnr.js";import{P as z}from"./MS5-RPlv.js";var C=d('<div class="mb-4 flex h-12 w-12 items-center justify-center rounded-full bg-background"><!></div>'),D=d("<!> ",1),F=d('<div class="flex flex-col items-center justify-center rounded-md bg-muted py-20 text-center text-muted-foreground"><!> <p> </p> <!></div>');function O(h,t){let f=V(t,"actionVariant",3,"success");var i=F(),v=s(i);{var p=e=>{var a=C(),u=s(a);j(u,()=>t.icon),c(a),m(e,a)};l(v,e=>{t.icon&&e(p)})}var r=n(v,2),y=s(r,!0);c(r);var k=n(r,2);{var A=e=>{q(e,{get variant(){return f()},get onclick(){return t.onAction},children:(a,u)=>{var _=D(),b=w(_);{var L=o=>{z(o,{class:"mr-2 h-4 w-4"})};l(b,o=>{f()==="success"&&o(L)})}var P=n(b);x(()=>g(P,` ${t.actionLabel??""}`)),m(a,_)},$$slots:{default:!0}})};l(k,e=>{t.actionLabel&&t.onAction&&e(A)})}c(i),x(()=>{B(r,1,E(t.actionLabel&&t.onAction?"mb-4":"")),g(y,t.message)}),m(h,i)}export{O as E};