!function(c){function t(t){for(var e,o,n=t[0],i=t[1],r=t[2],a=0,s=[];a<n.length;a++)o=n[a],Object.prototype.hasOwnProperty.call(l,o)&&l[o]&&s.push(l[o][0]),l[o]=0;for(e in i)Object.prototype.hasOwnProperty.call(i,e)&&(c[e]=i[e]);for(f&&f(t);s.length;)s.shift()();return p.push.apply(p,r||[]),u()}function u(){for(var t,e=0;e<p.length;e++){for(var o=p[e],n=!0,i=1;i<o.length;i++){var r=o[i];0!==l[r]&&(n=!1)}n&&(p.splice(e--,1),t=a(a.s=o[0]))}return t}var o={},l={0:0},p=[];function a(t){if(o[t])return o[t].exports;var e=o[t]={i:t,l:!1,exports:{}};return c[t].call(e.exports,e,e.exports,a),e.l=!0,e.exports}a.m=c,a.c=o,a.d=function(t,e,o){a.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},a.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(a.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)a.d(o,n,function(t){return e[t]}.bind(null,n));return o},a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,"a",e),e},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},a.p="";var e=window.webpackJsonp=window.webpackJsonp||[],n=e.push.bind(e);e.push=t,e=e.slice();for(var i=0;i<e.length;i++)t(e[i]);var f=n;p.push([9,1]),u()}([,,,,function(t,e,o){"use strict";var n=o(10);o.n(n).a},function(t,e,o){"use strict";var n=o(15);o.n(n).a},,,,function(t,e,o){"use strict";o.r(e);var n=o(3),i=o(0);function r(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function a(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?r(Object(o),!0).forEach(function(t){s(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function s(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var u="localStorage",l={name:"VueCookieLaw",props:{buttonText:{type:String,default:"Got it!"},buttonDecline:{type:Boolean,default:!1},buttonDeclineText:{type:String,default:"Decline"},buttonLink:{type:[String,Object],required:!1},buttonLinkText:{type:String,default:"More info"},buttonLinkNewTab:{type:Boolean,default:!1},message:{type:String,default:"This website uses cookies to ensure you get the best experience on our website."},theme:{type:String,default:"base"},position:{type:String,default:"bottom"},transitionName:{type:String,default:"slideFromBottom"},buttonClass:{type:String,default:"Cookie__button"},buttonDeclineClass:{type:String,default:"Cookie__button--decline"},storageName:{type:String,default:"cookie:accepted"},storageType:{type:String,default:u},cookieOptions:{type:Object,default:function(){},required:!1}},data:function(){return{supportsLocalStorage:!0,isOpen:!1}},computed:{containerPosition:function(){return"Cookie--".concat(this.position)},cookieTheme:function(){return"Cookie--".concat(this.theme)},externalButtonLink:function(){return"string"==typeof this.buttonLink&&this.buttonLink.length},internalButtonLink:function(){return"object"===c(this.buttonLink)&&null!=this.buttonLink&&Object.keys(this.buttonLink).length},target:function(){return this.buttonLinkNewTab?"_blank":"_self"},canUseLocalStorage:function(){return this.storageType===u&&this.supportsLocalStorage}},created:function(){if(this.storageType===u)try{var t="__vue-cookielaw-check-localStorage";window.localStorage.setItem(t,t),window.localStorage.removeItem(t)}catch(t){console.info("Local storage is not supported, falling back to cookie use"),this.supportsLocalStorage=!1}this.getVisited()||(this.isOpen=!0)},mounted:function(){this.isAccepted()&&this.$emit("accept")},methods:{setVisited:function(){this.canUseLocalStorage?localStorage.setItem(this.storageName,!0):i.c(this.storageName,!0,a({},this.cookieOptions,{expires:"1Y"}))},setAccepted:function(){this.canUseLocalStorage?localStorage.setItem(this.storageName,!0):i.c(this.storageName,!0,a({},this.cookieOptions,{expires:"1Y"}))},setDeclined:function(){this.canUseLocalStorage?localStorage.setItem(this.storageName,!1):i.c(this.storageName,!1,a({},this.cookieOptions,{expires:"1Y"}))},getVisited:function(){var t=!1;return"string"==typeof(t=this.canUseLocalStorage?localStorage.getItem(this.storageName):i.a(this.storageName))&&(t=JSON.parse(t)),!(null==t)},isAccepted:function(){var t=!1;return"string"==typeof(t=this.canUseLocalStorage?localStorage.getItem(this.storageName):i.a(this.storageName))&&(t=JSON.parse(t)),t},accept:function(){this.setVisited(),this.setAccepted(),this.isOpen=!1,this.$emit("accept")},close:function(){this.isOpen=!1,this.$emit("close")},decline:function(){this.setVisited(),this.setDeclined(),this.isOpen=!1,this.$emit("decline")},revoke:function(){this.canUseLocalStorage?localStorage.removeItem(this.storageName):i.b(this.storageName),this.isOpen=!0,this.$emit("revoke")},open:function(){this.getVisited()||(this.isOpen=!0)}}},p=(o(4),o(1)),f={name:"app",components:{CookieLaw:Object(p.a)(l,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("transition",{attrs:{appear:"",name:t.transitionName}},[t.isOpen?o("div",{staticClass:"Cookie",class:[t.containerPosition,t.cookieTheme]},[t._t("default",[o("div",{staticClass:"Cookie__content"},[t._t("message",[t._v(t._s(t.message))])],2),t._v(" "),o("div",{staticClass:"Cookie__buttons"},[t.externalButtonLink?o("a",{class:t.buttonClass,attrs:{target:t.target,href:t.buttonLink}},[t._v(t._s(t.buttonLinkText))]):t._e(),t._v(" "),t.internalButtonLink?o("router-link",{class:t.buttonClass,attrs:{to:t.buttonLink}},[t._v(t._s(t.buttonLinkText))]):t._e(),t._v(" "),t.buttonDecline?o("button",{class:t.buttonDeclineClass,on:{click:t.decline}},[t._v(t._s(t.buttonDeclineText))]):t._e(),t._v(" "),o("button",{class:t.buttonClass,on:{click:t.accept}},[t._v(t._s(t.buttonText))])],1)],{accept:t.accept,close:t.close,decline:t.decline,open:t.open})],2):t._e()])},[],!1,null,null,null).exports},data:function(){return{theme:"base"}}},d=(o(5),Object(p.a)(f,function(){var o=this,t=o.$createElement,e=o._self._c||t;return e("div",{attrs:{id:"app"}},[e("select",{directives:[{name:"model",rawName:"v-model",value:o.theme,expression:"theme"}],on:{change:function(t){var e=Array.prototype.filter.call(t.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});o.theme=t.target.multiple?e:e[0]}}},[e("option",{attrs:{value:"base"}},[o._v("Base")]),o._v(" "),e("option",{attrs:{value:"blood-orange"}},[o._v("Blood Orange")]),o._v(" "),e("option",{attrs:{value:"dark-lime"}},[o._v("Dark Lime")]),o._v(" "),e("option",{attrs:{value:"royal"}},[o._v("Royal")]),o._v(" "),e("option",{attrs:{value:"base--rounded"}},[o._v("Base Round")]),o._v(" "),e("option",{attrs:{value:"blood-orange--rounded"}},[o._v("Blood Orange Round")]),o._v(" "),e("option",{attrs:{value:"dark-lime--rounded"}},[o._v("Dark Lime Round")]),o._v(" "),e("option",{attrs:{value:"royal--rounded"}},[o._v("Royal Round")])]),o._v(" "),e("cookie-law",{attrs:{theme:o.theme,position:"top","transition-name":"fade"}}),o._v(" "),e("cookie-law",{attrs:{theme:o.theme},scopedSlots:o._u([{key:"default",fn:function(t){return e("div",{staticClass:"container"},[e("p",[o._v("\n        Lorem ipsum, dolor sit amet consectetur adipisicing elit. Ex, hic?\n      ")]),o._v(" "),e("button",{staticClass:"Cookie__button",on:{click:t.accept}},[e("span",[o._v("I accept")])]),o._v(" "),e("button",{staticClass:"Cookie__button",on:{click:t.close}},[e("span",[o._v("Close")])]),o._v(" "),e("button",{staticClass:"Cookie__button",on:{click:t.decline}},[e("span",[o._v("Decline")])])])}}])})],1)},[],!1,null,null,null).exports);n.a.config.productionTip=!1,new n.a({el:"#app",render:function(t){return t(d)}})},function(t,e){},,,,,function(t,e){}]);