"use strict";(self["webpackChunklin_cms_vue"]=self["webpackChunklin_cms_vue"]||[]).push([[5744],{95744:function(t,e,n){n.r(e),n.d(e,{cleanLoggedIn:function(){return h},loadLoggedIn:function(){return g},setLoggedIn:function(){return d}});var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},s="undefined"===typeof window,i={version:"1.1.1",storage:s?null:window.localStorage,session:{storage:s?null:window.sessionStorage}},o={set:function(t,e){if(!this.disabled)return void 0===e?this.remove(t):(this.storage.setItem(t,a(e)),e)},get:function(t,e){if(this.disabled)return e;var n=u(this.storage.getItem(t));return void 0===n?e:n},has:function(t){return void 0!==this.get(t)},remove:function(t){this.disabled||this.storage.removeItem(t)},clear:function(){this.disabled||this.storage.clear()},getAll:function(){if(this.disabled)return null;var t={};return this.forEach((function(e,n){t[e]=n})),t},forEach:function(t){if(!this.disabled)for(var e=0;e<this.storage.length;e++){var n=this.storage.key(e);t(n,this.get(n))}}};function a(t){return JSON.stringify(t)}function u(t){if("string"===typeof t)try{return JSON.parse(t)}catch(e){return t||void 0}}r(i,o),r(i.session,o);try{var c="__storejs__";i.set(c,c),i.get(c)!==c&&(i.disabled=!0),i.remove(c)}catch(v){i.disabled=!0}var f=i,l="__login__";function d(t){return f.session.set(l,t),t}function g(){return f.session.get(l,"")}function h(){f.session.remove(l)}}}]);
|