1import{a as i,o,b as e,T as g,ag as a,f as l,S as p,C as r,N as d,n as w,t as c,au as k}from"./BYqnAuL0.js";const _=["height","width","stroke"],x={__name:"AlertCircleIcon",props:{height:{type:String,default:"24"},width:{type:String,default:"24"},stroke:{type:String,default:"#2d3748"}},setup(s){return(n,t)=>(o(),i("svg",{xmlns:"http://www.w3.org/2000/svg",height:s.height,width:s.width,fill:"none",viewBox:"0 0 24 24",stroke:s.stroke,"stroke-width":"2"},[...t[0]||(t[0]=[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1)])],8,_))}},y=["height","__dirname","stroke"],v={__name:"CheckCircleIcon",props:{height:{type:String,default:"24"},width:{type:String,default:"24"},stroke:{type:String,default:"#2d3748"}},setup(s){return(n,t)=>(o(),i("svg",{xmlns:"http://www.w3.org/2000/svg",height:s.height,__dirname:s.width,fill:"none",viewBox:"0 0 24 24",stroke:s.stroke,"stroke-width":"2"},[...t[0]||(t[0]=[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1)])],8,y))}},C=["height","width","stroke"],S={__name:"XIcon",props:{height:{type:String,default:"24"},width:{type:String,default:"24"},stroke:{type:String,default:"#2d3748"}},setup(s){return(n,t)=>(o(),i("svg",{height:s.height,width:s.width,xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:s.stroke,"stroke-width":"2"},[...t[0]||(t[0]=[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"},null,-1)])],8,C))}},I={components:{AlertCircleIcon:x,CheckCircleIcon:v,XIcon:S},props:{title:{type:String,default:""},message:{type:String,default:""},show:{type:Boolean,default:!1},delay:{type:Number,default:5e3},status:{type:String,default:""},hideToast:{type:Function,default:()=>{}}},updated(){this.show&&setTimeout(()=>this.hideToast(),this.delay)},methods:{onToastClose(){this.hideToast()}}},b={"aria-live":"assertive",class:"pointer-events-none fixed inset-0 z-50 flex items-end px-4 py-6 sm:items-start sm:p-6"},T={class:"flex w-full flex-col items-center space-y-4 sm:items-end"},B={key:0,class:"pointer-events-auto w-full max-w-sm overflow-hidden rounded-lg bg-tan-med shadow-lg ring-1 ring-black ring-opacity-5"},A={class:"p-4"},M={class:"flex items-start"},N={class:"flex-shrink-0"},$={class:"ml-3 w-0 flex-1 pt-0.5"},z={class:"mt-1 mb-0 text-sm text-maroon-dark"},X={class:"ml-4 flex flex-shrink-0"};function j(s,n,t,V,D,h){const u=a("CheckCircleIcon"),m=a("AlertCircleIcon"),f=a("XIcon");return o(),i("div",b,[e("div",T,[l(k,{"enter-active-class":"transform ease-out duration-300 transition","enter-from-class":"translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2","enter-to-class":"translate-y-0 opacity-100 sm:translate-x-0","leave-active-class":"transition ease-in duration-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:p(()=>[t.show?(o(),i("div",B,[e("div",A,[e("div",M,[e("div",N,[t.status==="success"?(o(),d(u,{key:0,height:"24",width:"24",class:"text-green-med",stroke:"#519872","aria-hidden":"true"})):r("",!0),t.status==="error"?(o(),d(m,{key:1,height:"24",width:"24",class:"text-red-med",stroke:"#cf4844","aria-hidden":"true"})):r("",!0)]),e("div",$,[e("p",{class:w(`mb-0 text-sm font-medium ${t.status==="success"?"text-green-med":""} ${t.status==="error"?"text-red-med":""}`)},c(t.title),3),e("p",z,c(t.message),1)]),e("div",X,[e("button",{type:"button",class:"inline-flex rounded-md bg-tan-med text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-1 focus:ring-indigo-500 focus:ring-offset-2",onClick:n[0]||(n[0]=E=>h.onToastClose())},[n[1]||(n[1]=e("span",{class:"sr-only"},"Close",-1)),l(f,{height:"20",width:"20",stroke:"#562f2e",class:"focus-visible:outline-none","aria-hidden":"true"})])])])])])):r("",!0)]),_:1})])])}const L=g(I,[["render",j]]);export{L as A};
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.