\n
\n
\n ").concat(cookie.description?"
".concat(cookie.description,"
"):"","\n
");}},config.options);this.opened=false;this.acceptedCookies=getCookie("cookie-accepted")==="accepted"||getCookie("cookie-accepted")==="refused";this.optionalCookies={};this.optionalCookiesByName=[];config.optionalCookies.forEach(function(ck){var cookieName=ck.cookieName||"cookie-".concat(ck.name);var savedCookie=getCookie(cookieName);var cookie=_objectSpread({},ck,{cookieName:cookieName,accepted:savedCookie===_this.options.revokeValue?false:savedCookie===_this.options.acceptValue||ck.accepted});!savedCookie&&cookie.accepted&&setCookie(cookie.cookieName,_this.options.acceptValue,_this.options.lifetime);_this.optionalCookies[cookie.name]=cookie;_this.optionalCookiesByName.push(cookie.name);if('accepted'in cookie){if('accepted'===cookie.accepted){cookie.onAccept&&cookie.onAccept()}
if('refused'===cookie.accepted){cookie.onRevoke&&cookie.onRevoke()}}});}
_createClass(CookieControl,[{key:"init",value:function init(){if(!this.el)return;this.renderOptional();this.setupEvents();!this.acceptedCookies&&window.setTimeout(this.pending.bind(this),this.options.timeout);}},{key:"setupEvents",value:function setupEvents(){var _this2=this;_toConsumableArray(document.getElementsByClassNa