1import{Ft as e,H as t,J as n,Ot as r,U as i}from"./Cass4hK2.js";import{t as a}from"./DzNMttcx.js";r(),t();var o=Symbol(`nuxt-ui.toast-max`);function s(){let t=a(`toasts`,()=>[]),r=i(o,void 0),s=e(!1),c=[],l=()=>`${Date.now()}-${Math.random().toString(36).slice(2,9)}`;async function u(){if(!(s.value||c.length===0)){for(s.value=!0;c.length>0;){let e=c.shift();await n(),t.value=[...t.value,e].slice(-(r?.value??5))}s.value=!1}}function d(e){let n={id:l(),open:!0,...e},r=t.value.findIndex(e=>e.id===n.id);return r===-1?(c.push(n),u(),n):(t.value[r]={...t.value[r],...n,_duplicate:(t.value[r]._duplicate||0)+1},n)}function f(e,r){let i=t.value.findIndex(t=>t.id===e);i!==-1&&(t.value[i]={...t.value[i],...r,duration:r.duration,open:!0,_updated:!0},n(()=>{let n=t.value.findIndex(t=>t.id===e);n!==-1&&t.value[n]._updated&&(t.value[n]={...t.value[n],_updated:void 0})}))}function p(e){let n=t.value.findIndex(t=>t.id===e);n!==-1&&t.value[n]._updated||(n!==-1&&(t.value[n]={...t.value[n],open:!1}),setTimeout(()=>{t.value=t.value.filter(t=>t.id!==e)},200))}function m(){t.value=[]}return{toasts:t,add:d,update:f,remove:p,clear:m}}function c(){let e=s(),t=(t,n)=>{e.add({title:n?.title,description:t,duration:n?.timeout})};return{success(e,n){t(e,{timeout:n?.timeout})},error(e,n){t(e,{title:n?.title??`Error`,timeout:n?.timeout})},info(e,n){t(e,{timeout:n?.timeout})},warning(e,n){t(e,{title:n?.title??`Warning`,timeout:n?.timeout})}}}export{o as n,s as r,c as t};
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.