1import{Z as e}from"./dist-DKo5RuAg.js";import{a as t,i as n,n as r,o as i,r as a}from"./utils-Bs7CU-bV.js";var o=r(`notifications`,[],a(()=>sessionStorage),{getOnInit:!0}),s=i([]),c=i(null,(t,n,{type:r,message:i,isDismissable:a=!0})=>{try{n(o,[...t(o),{id:e(),type:r,message:i,isDismissable:a}])}catch{n(s,[...t(s),{id:e(),type:r,message:i,isDismissable:a}])}}),l=i(null,(t,n,{type:r,message:i,isDismissable:a=!0})=>{n(s,[...t(s),{id:e(),type:r,message:i,isDismissable:a}])}),u=i(null,(e,t)=>{let n=[];try{n=e(o),t(o,[])}catch{}t(s,[...e(s),...n])}),d=i(null,(e,t,n)=>{t(s,e(s).filter(e=>e.id!==n))});function f(){let[e]=n(s),r=t(c),i=t(l),a=t(u);return{notifications:e,showNotification:i,setNotification:r,dismissNotification:t(d),flushNotifications:a}}export{f as t}; 2//# sourceMappingURL=useNotifications-DsA22em1.js.map
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.