import{S as n,a as t}from"./p-7e860896.js";import{C as s}from"./p-7957afd8.js";function o(){return new s}const a=(s=o())=>({token:s.get(n),uid:s.get(t)});function i(n,t){const s=!!a(n).token;return null==t||t.new("KimlikUtilFunctions").debugGroup("isUserLoggedIn",{result:s,storage:a(n)}),s}function r(n="/",t,s=o(),a=(n=>window.location=n.path)){t?null==t||t.logout().then((()=>{s.clear(),a({path:n})})):(s.clear(),a({path:n}))}export{o as a,a as g,i,r as l}