3 (c) 2010-2020 Google LLC. http://angularjs.org
12 return function(f, b, c) {
16 d = e.isDefined(c.path) ? c.path : a;
17 e.isUndefined(b) && (g = "Thu, 01 Jan 1970 00:00:00 GMT", b = "");
18 e.isString(g) && (g = new Date(g));
19 b = encodeURIComponent(f) + "=" + encodeURIComponent(b);
20 b = b + (d ? ";path=" + d : "") + (c.domain ? ";domain=" + c.domain : "");
21 b += g ? ";expires=" + g.toUTCString() : "";
22 b += c.secure ? ";secure" : "";
23 b += c.samesite ? ";samesite=" + c.samesite : "";
25 4096 < c && k.warn("Cookie '" + f + "' possibly not set or overflowed because it was too large (" +
26 c + " > 4096 bytes)!");
30 e.module("ngCookies", ["ng"]).info({
31 angularVersion: "1.8.2"
32 }).provider("$cookies", [function() {
33 var d = this.defaults = {};
34 this.$get = ["$$cookieReader", "$$cookieWriter", function(k, l) {
39 getObject: function(a) {
40 return (a = this.get(a)) ? e.fromJson(a) : a
45 put: function(a, h, f) {
46 l(a, h, f ? e.extend({}, d, f) : d)
48 putObject: function(a, d, f) {
49 this.put(a, e.toJson(d), f)
51 remove: function(a, h) {
52 l(a, void 0, h ? e.extend({}, d, h) : d)
57 m.$inject = ["$document", "$log", "$browser"];
58 e.module("ngCookies").provider("$$cookieWriter", function() {
61 })(window, window.angular);
62 //# sourceMappingURL=angular-cookies.min.js.map