System.register(["./index-legacy.DRKniymH.js","./x-legacy.CxaJbVYS.js"],(function(t,e){"use strict";var s,w,l,i,r,o,n,a,c,u,d,m,g,p;return{setters:[t=>{s=t.d,w=t.t,l=t.r,i=t.o,r=t.h,o=t.w,n=t.c,a=t.b,c=t.u,u=t.g,d=t.a,m=t.e,g=t.T},t=>{p=t.X}],execute:function(){const e={key:0,class:"stwlite-tw-fixed stwlite-tw-top-10 stwlite-tw-right-5 stwlite-tw-w-80 stwlite-tw-rounded-lg stwlite-tw-bg-white stwlite-tw-shadow-lg stwlite-tw-ring-1 stwlite-tw-ring-black stwlite-tw-ring-opacity-5 stwlite-tw-overflow-hidden"},x={class:"stwlite-tw-p-4 stwlite-tw-flex stwlite-tw-items-start"},f={class:"stwlite-tw-flex-shrink-0"},y={key:0,class:"stwlite-tw-h-6 stwlite-tw-w-6 stwlite-tw-text-green-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},v={key:1,class:"stwlite-tw-h-6 stwlite-tw-w-6 stwlite-tw-text-red-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},h={class:"stwlite-tw-ml-3 stwlite-tw-w-0 stwlite-tw-flex-1 stwlite-tw-pt-0.5"},k={class:"stwlite-tw-text-sm stwlite-tw-font-medium stwlite-tw-text-gray-900 stwlite-tw-mt-0"},b={class:"stwlite-tw-mt-1 stwlite-tw-text-sm stwlite-tw-text-gray-500"},j={class:"stwlite-tw-ml-4 stwlite-tw-flex-shrink-0 stwlite-tw-flex"};t("_",s({__name:"Notification",props:{messageTitle:{},message:{},type:{},timeout:{default:5e3}},emits:["closeNotification"],setup(t,{emit:s}){const T=t,_=s,{message:C,type:M,messageTitle:N,timeout:B}=w(T),L=l(!0),z=()=>{L.value=!1,_("closeNotification")};return setTimeout((()=>{z()}),B.value),(t,s)=>(i(),r(g,{enter:"stwlite-tw-transform stwlite-tw-ease-out stwlite-tw-duration-300 stwlite-tw-transition","enter-from":"stwlite-tw-translate-y-2 stwlite-tw-opacity-0 sm:stwlite-tw-translate-y-0 sm:stwlite-tw-translate-x-2","enter-to":"stwlite-tw-translate-y-0 stwlite-tw-opacity-100 sm:stwlite-tw-translate-x-0",leave:"stwlite-tw-transition stwlite-tw-ease-in stwlite-tw-duration-200","leave-from":"stwlite-tw-opacity-100","leave-to":"stwlite-tw-opacity-0"},{default:o((()=>[L.value?(i(),n("div",e,[a("div",x,[a("div",f,["success"===c(M)?(i(),n("svg",y,s[0]||(s[0]=[a("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 13l4 4L19 7"},null,-1)]))):u("",!0),"error"===c(M)?(i(),n("svg",v,s[1]||(s[1]=[a("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"},null,-1)]))):u("",!0)]),a("div",h,[a("p",k,d(c(N)),1),a("p",b,d(c(C)),1)]),a("div",j,[a("button",{class:"stwlite-tw-inline-flex stwlite-tw-text-gray-400 hover:stwlite-tw-text-gray-500 focus:stwlite-tw-outline-none stwlite-tw-bg-transparent stwlite-tw-border-0 stwlite-tw-cursor-pointer",onClick:z},[s[2]||(s[2]=a("span",{class:"stwlite-tw-sr-only"},null,-1)),m(c(p),{class:"stwlite-tw-w-4 stwlite-tw-h-4"})])])])])):u("",!0)])),_:1}))}}))}}}));
