iBet uBet web content aggregator. Adding the entire web to your favor.
iBet uBet web content aggregator. Adding the entire web to your favor.



Link to original content: http://ecommercedb.com/_nuxt/GGENp0mR.js
import{j as a}from"./llFuKhWI.js";const T=2e3,v="info",m=!1,A=()=>{const i=a("notifications",()=>[]),s=a("notification",()=>null),n=a(()=>!1,"$TTGe6TBwi2"),l=(e,t=!0)=>{var r,c;const o={message:e.message,severity:e.severity??v,duration:e.duration??T,closable:e.closable??m,error:e.error};!t&&(i.value.find(f=>f.message===o.message)||(r=s.value)!=null&&r.message&&o.message===((c=s.value)==null?void 0:c.message))||(i.value.push(o),n.value||u())},u=()=>{var t;const e=i.value.shift()??null;e?(s.value=e,n.value=!0,setTimeout(()=>{s.value=null,setTimeout(()=>{u()},300)},(t=s.value)==null?void 0:t.duration)):n.value=!1};return{notification:s,addMessage:l}};export{A as u};