Skip to Content

JavaScript File

URL: https://static.insales-cdn.com/assets/static-versioned/4.81/static/libs/js-cookie/3.0.0/js.cookie.min.js
HTTP Status: 200 OK
MIME Type: text/javascript
Last Modified: Wed, 10 Jul 2024 13:51:35 GMT
Download Time: Less than a second
Cookies: None
Size: 2 KB
HTTP Headers:  16 headers
Links In:  1 pages
OK Issues: No issues found

1/*! js-cookie v3.0.0-rc.1 | MIT */

2!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self,function(){var n=e.Cookies,r=e.Cookies=t();r.noConflict=function(){return e.Cookies=n,r}

3}

4())}

5(this,function(){"use strict";function e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}

6return e}

7var t={read:function(e){return e.replace(/(%[\dA-F]{2}

8)+/gi,decodeURIComponent)}

9,write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}

10}

11;return function n(r,o){function i(t,n,i){if("undefined"!=typeof document){"number"==typeof(i=e({}

12,o,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),n=r.write(n,t);var c="";for(var u in i)i[u]&&(c+="; "+u,!0!==i[u]&&(c+="="+i[u].split(";")[0]));return document.cookie=t+"="+n+c}

13}

14return Object.create({set:i,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],o={}

15,i=0;i<n.length;i++){var c=n[i].split("="),u=c.slice(1).join("=");'"'===u[0]&&(u=u.slice(1,-1));try{var f=t.read(c[0]);if(o[f]=r.read(u,f),e===f)break}

16catch(e){}

17}

18return e?o[e]:o}

19}

20,remove:function(t,n){i(t,"",e({}

21,n,{expires:-1}

22))}

23,withAttributes:function(t){return n(this.converter,e({}

24,this.attributes,t))}

25,withConverter:function(t){return n(e({}

26,this.converter,t),this.attributes)}

27}

28,{attributes:{value:Object.freeze(o)}

29,converter:{value:Object.freeze(r)}

30}

31)}

32(t,{path:"/"}

33)}

34);