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