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