1 |
- {"version":3,"sources":["angular-local-storage.js"],"names":["window","angular","isDefined","isUndefined","isNumber","isObject","isArray","extend","toJson","module","provider","this","prefix","storageType","cookie","expiry","path","notify","setItem","removeItem","setPrefix","setStorageType","setStorageCookie","exp","setStorageCookieDomain","domain","setNotify","itemSet","itemRemove","$get","$rootScope","$window","$document","$parse","webStorage","self","document","substr","deriveQualifiedKey","key","browserSupportsLocalStorage","supported","Math","round","random","e","$broadcast","message","addToLocalStorage","value","newvalue","addToCookies","getFromLocalStorage","getFromCookies","item","getItem","JSON","parse","removeFromLocalStorage","i","arguments","length","removeFromCookies","getKeysForLocalStorage","prefixLength","keys","push","Description","clearAllFromLocalStorage","regularExpression","prefixRegex","RegExp","testRegex","clearAllFromCookies","test","browserSupportsCookies","navigator","cookieEnabled","indexOf","call","daysToExpiry","expiryDate","Date","cookieDomain","setTime","getTime","toGMTString","cookiePath","encodeURIComponent","cookies","split","thisCookie","charAt","substring","storedValues","decodeURIComponent","getStorageType","bindToScope","scope","def","lsKey","assign","$watch","newVal","lengthOfLocalStorage","count","storage","isSupported","set","add","get","remove","clearAll","bind","deriveKey"],"mappings":";;;;;;;CAOA,SAAWA,EAAQC,GACnB,GAAIC,GAAYD,EAAQC,UACtBC,EAAcF,EAAQE,YACtBC,EAAWH,EAAQG,SACnBC,EAAWJ,EAAQI,SACnBC,EAAUL,EAAQK,QAClBC,EAASN,EAAQM,OACjBC,EAASP,EAAQO,MAEnBP,GACGQ,OAAO,yBACPC,SAAS,sBAAuB,WAO/BC,KAAKC,OAAS,KAGdD,KAAKE,YAAc,eAKnBF,KAAKG,QACHC,OAAQ,GACRC,KAAM,KAIRL,KAAKM,QACHC,SAAS,EACTC,YAAY,GAIdR,KAAKS,UAAY,SAASR,GAExB,MADAD,MAAKC,OAASA,EACPD,MAITA,KAAKU,eAAiB,SAASR,GAE7B,MADAF,MAAKE,YAAcA,EACZF,MAITA,KAAKW,iBAAmB,SAASC,EAAKP,GAGpC,MAFAL,MAAKG,OA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