GDPR Cookie Compliance - Version 3.0.2

Version Description

  • Caching plugin conflicts handled
Download this release

Release Info

Developer MooveAgency
Plugin Icon 128x128 GDPR Cookie Compliance
Version 3.0.2
Comparing to
See all releases

Code changes from version 3.0.1 to 3.0.2

controllers/moove-controller.php CHANGED
@@ -34,6 +34,12 @@ class Moove_GDPR_Controller {
34
  add_editor_style( moove_gdpr_get_plugin_directory_url() . 'dist/styles/custom-editor-style.css' );
35
  }
36
 
 
 
 
 
 
 
37
  /**
38
  * Reading plugin statistics from WordPress.org
39
  * - star rating
34
  add_editor_style( moove_gdpr_get_plugin_directory_url() . 'dist/styles/custom-editor-style.css' );
35
  }
36
 
37
+ public static function moove_gdpr_localize_scripts() {
38
+ $content_cnt = new Moove_GDPR_Content();
39
+ echo json_encode( $content_cnt->moove_gdpr_get_localize_scripts() );
40
+ die();
41
+ }
42
+
43
  /**
44
  * Reading plugin statistics from WordPress.org
45
  * - star rating
dist/scripts/main.js CHANGED
@@ -1,2 +1,2 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.postscribe=e():t.postscribe=e()}(this,function(){return function(t){function e(r){if(o[r])return o[r].exports;var n=o[r]={exports:{},id:r,loaded:!1};return t[r].call(n.exports,n,n.exports,e),n.loaded=!0,n.exports}var o={};return e.m=t,e.c=o,e.p="",e(0)}([function(t,e,o){"use strict";var r=o(1),n=function(t){return t&&t.__esModule?t:{default:t}}(r);t.exports=n.default},function(t,e,o){"use strict";function r(){}function n(){var t=f.shift();if(t){var e=l.last(t);e.afterDequeue(),t.stream=i.apply(void 0,t),e.afterStreamStart()}}function i(t,e,o){function i(t){t=o.beforeWrite(t),m.write(t),o.afterWrite(t)}m=new d.default(t,o),m.id=_++,m.name=o.name||m.id,s.streams[m.name]=m;var c=t.ownerDocument,p={close:c.close,open:c.open,write:c.write,writeln:c.writeln};a(c,{close:r,open:r,write:function(){for(var t=arguments.length,e=Array(t),o=0;o<t;o++)e[o]=arguments[o];return i(e.join(""))},writeln:function(){for(var t=arguments.length,e=Array(t),o=0;o<t;o++)e[o]=arguments[o];return i(e.join("")+"\n")}});var l=m.win.onerror||r;return m.win.onerror=function(t,e,r){o.error({msg:t+" - "+e+": "+r}),l.apply(m.win,[t,e,r])},m.write(e,function(){a(c,p),m.win.onerror=l,o.done(),m=null,n()}),m}function s(t,e,o){if(l.isFunction(o))o={done:o};else if("clear"===o)return f=[],m=null,void(_=0);o=l.defaults(o,u),t=/^#/.test(t)?window.document.getElementById(t.substr(1)):t.jquery?t[0]:t;var i=[t,e,o];return t.postscribe={cancel:function(){i.stream?i.stream.abort():i[1]=r}},o.beforeEnqueue(i),f.push(i),m||n(),t.postscribe}e.__esModule=!0;var a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(t[r]=o[r])}return t};e.default=s;var c=o(2),d=function(t){return t&&t.__esModule?t:{default:t}}(c),p=o(4),l=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}(p),u={afterAsync:r,afterDequeue:r,afterStreamStart:r,afterWrite:r,autoFix:!0,beforeEnqueue:r,beforeWriteToken:function(t){return t},beforeWrite:function(t){return t},done:r,error:function(t){throw new Error(t.msg)},releaseAsync:!1},_=0,f=[],m=null;a(s,{streams:{},queue:f,WriteStream:d.default})},function(t,e,o){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(t,e){var o=l+e,r=t.getAttribute(o);return p.existy(r)?String(r):r}function i(t,e){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=l+e;p.existy(o)&&""!==o?t.setAttribute(r,o):t.removeAttribute(r)}e.__esModule=!0;var s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(t[r]=o[r])}return t},a=o(3),c=function(t){return t&&t.__esModule?t:{default:t}}(a),d=o(4),p=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}(d),l="data-ps-",u="ps-style",_="ps-script",f=function(){function t(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,t),this.root=e,this.options=o,this.doc=e.ownerDocument,this.win=this.doc.defaultView||this.doc.parentWindow,this.parser=new c.default("",{autoFix:o.autoFix}),this.actuals=[e],this.proxyHistory="",this.proxyRoot=this.doc.createElement(e.nodeName),this.scriptStack=[],this.writeQueue=[],i(this.proxyRoot,"proxyof",0)}return t.prototype.write=function(){var t;for((t=this.writeQueue).push.apply(t,arguments);!this.deferredRemote&&this.writeQueue.length;){var e=this.writeQueue.shift();p.isFunction(e)?this._callFunction(e):this._writeImpl(e)}},t.prototype._callFunction=function(t){var e={type:"function",value:t.name||t.toString()};this._onScriptStart(e),t.call(this.win,this.doc),this._onScriptDone(e)},t.prototype._writeImpl=function(t){this.parser.append(t);for(var e=void 0,o=void 0,r=void 0,n=[];(e=this.parser.readToken())&&!(o=p.isScript(e))&&!(r=p.isStyle(e));)(e=this.options.beforeWriteToken(e))&&n.push(e);n.length>0&&this._writeStaticTokens(n),o&&this._handleScriptToken(e),r&&this._handleStyleToken(e)},t.prototype._writeStaticTokens=function(t){var e=this._buildChunk(t);return e.actual?(e.html=this.proxyHistory+e.actual,this.proxyHistory+=e.proxy,this.proxyRoot.innerHTML=e.html,this._walkChunk(),e):null},t.prototype._buildChunk=function(t){for(var e=this.actuals.length,o=[],r=[],n=[],i=t.length,s=0;s<i;s++){var a=t[s],c=a.toString();if(o.push(c),a.attrs){if(!/^noscript$/i.test(a.tagName)){var d=e++;r.push(c.replace(/(\/?>)/," "+l+"id="+d+" $1")),a.attrs.id!==_&&a.attrs.id!==u&&n.push("atomicTag"===a.type?"":"<"+a.tagName+" "+l+"proxyof="+d+(a.unary?" />":">"))}}else r.push(c),n.push("endTag"===a.type?c:"")}return{tokens:t,raw:o.join(""),actual:r.join(""),proxy:n.join("")}},t.prototype._walkChunk=function(){for(var t=void 0,e=[this.proxyRoot];p.existy(t=e.shift());){var o=1===t.nodeType;if(!(o&&n(t,"proxyof"))){o&&(this.actuals[n(t,"id")]=t,i(t,"id"));var r=t.parentNode&&n(t.parentNode,"proxyof");r&&this.actuals[r].appendChild(t)}e.unshift.apply(e,p.toArray(t.childNodes))}},t.prototype._handleScriptToken=function(t){var e=this,o=this.parser.clear();o&&this.writeQueue.unshift(o),t.src=t.attrs.src||t.attrs.SRC,(t=this.options.beforeWriteToken(t))&&(t.src&&this.scriptStack.length?this.deferredRemote=t:this._onScriptStart(t),this._writeScriptToken(t,function(){e._onScriptDone(t)}))},t.prototype._handleStyleToken=function(t){var e=this.parser.clear();e&&this.writeQueue.unshift(e),t.type=t.attrs.type||t.attrs.TYPE||"text/css",t=this.options.beforeWriteToken(t),t&&this._writeStyleToken(t),e&&this.write()},t.prototype._writeStyleToken=function(t){var e=this._buildStyle(t);this._insertCursor(e,u),t.content&&(e.styleSheet&&!e.sheet?e.styleSheet.cssText=t.content:e.appendChild(this.doc.createTextNode(t.content)))},t.prototype._buildStyle=function(t){var e=this.doc.createElement(t.tagName);return e.setAttribute("type",t.type),p.eachKey(t.attrs,function(t,o){e.setAttribute(t,o)}),e},t.prototype._insertCursor=function(t,e){this._writeImpl('<span id="'+e+'"/>');var o=this.doc.getElementById(e);o&&o.parentNode.replaceChild(t,o)},t.prototype._onScriptStart=function(t){t.outerWrites=this.writeQueue,this.writeQueue=[],this.scriptStack.unshift(t)},t.prototype._onScriptDone=function(t){return t!==this.scriptStack[0]?void this.options.error({msg:"Bad script nesting or script finished twice"}):(this.scriptStack.shift(),this.write.apply(this,t.outerWrites),void(!this.scriptStack.length&&this.deferredRemote&&(this._onScriptStart(this.deferredRemote),this.deferredRemote=null)))},t.prototype._writeScriptToken=function(t,e){var o=this._buildScript(t),r=this._shouldRelease(o),n=this.options.afterAsync;t.src&&(o.src=t.src,this._scriptLoadHandler(o,r?n:function(){e(),n()}));try{this._insertCursor(o,_),o.src&&!r||e()}catch(t){this.options.error(t),e()}},t.prototype._buildScript=function(t){var e=this.doc.createElement(t.tagName);return p.eachKey(t.attrs,function(t,o){e.setAttribute(t,o)}),t.content&&(e.text=t.content),e},t.prototype._scriptLoadHandler=function(t,e){function o(){t=t.onload=t.onreadystatechange=t.onerror=null}function r(){o(),null!=e&&e(),e=null}function n(t){o(),a(t),null!=e&&e(),e=null}function i(t,e){var o=t["on"+e];null!=o&&(t["_on"+e]=o)}var a=this.options.error;i(t,"load"),i(t,"error"),s(t,{onload:function(){if(t._onload)try{t._onload.apply(this,Array.prototype.slice.call(arguments,0))}catch(e){n({msg:"onload handler failed "+e+" @ "+t.src})}r()},onerror:function(){if(t._onerror)try{t._onerror.apply(this,Array.prototype.slice.call(arguments,0))}catch(e){return void n({msg:"onerror handler failed "+e+" @ "+t.src})}n({msg:"remote script failed "+t.src})},onreadystatechange:function(){/^(loaded|complete)$/.test(t.readyState)&&r()}})},t.prototype._shouldRelease=function(t){return!/^script$/i.test(t.nodeName)||!!(this.options.releaseAsync&&t.src&&t.hasAttribute("async"))},t}();e.default=f},function(t,e,o){!function(e,o){t.exports=function(){return function(t){function e(r){if(o[r])return o[r].exports;var n=o[r]={exports:{},id:r,loaded:!1};return t[r].call(n.exports,n,n.exports,e),n.loaded=!0,n.exports}var o={};return e.m=t,e.c=o,e.p="",e(0)}([function(t,e,o){"use strict";var r=o(1),n=function(t){return t&&t.__esModule?t:{default:t}}(r);t.exports=n.default},function(t,e,o){"use strict";function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var i=o(2),s=r(i),a=o(3),c=r(a),d=o(6),p=function(t){return t&&t.__esModule?t:{default:t}}(d),l=o(5),u={comment:/^<!--/,endTag:/^<\//,atomicTag:/^<\s*(script|style|noscript|iframe|textarea)[\s\/>]/i,startTag:/^</,chars:/^[^<]/},_=function(){function t(){var e=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n(this,t),this.stream=o;var i=!1,a={};for(var c in s)s.hasOwnProperty(c)&&(r.autoFix&&(a[c+"Fix"]=!0),i=i||a[c+"Fix"]);i?(this._readToken=(0,p.default)(this,a,function(){return e._readTokenImpl()}),this._peekToken=(0,p.default)(this,a,function(){return e._peekTokenImpl()})):(this._readToken=this._readTokenImpl,this._peekToken=this._peekTokenImpl)}return t.prototype.append=function(t){this.stream+=t},t.prototype.prepend=function(t){this.stream=t+this.stream},t.prototype._readTokenImpl=function(){var t=this._peekTokenImpl();if(t)return this.stream=this.stream.slice(t.length),t},t.prototype._peekTokenImpl=function(){for(var t in u)if(u.hasOwnProperty(t)&&u[t].test(this.stream)){var e=c[t](this.stream);if(e)return"startTag"===e.type&&/script|style/i.test(e.tagName)?null:(e.text=this.stream.substr(0,e.length),e)}},t.prototype.peekToken=function(){return this._peekToken()},t.prototype.readToken=function(){return this._readToken()},t.prototype.readTokens=function(t){for(var e=void 0;e=this.readToken();)if(t[e.type]&&!1===t[e.type](e))return},t.prototype.clear=function(){var t=this.stream;return this.stream="",t},t.prototype.rest=function(){return this.stream},t}();e.default=_,_.tokenToString=function(t){return t.toString()},_.escapeAttributes=function(t){var e={};for(var o in t)t.hasOwnProperty(o)&&(e[o]=(0,l.escapeQuotes)(t[o],null));return e},_.supports=s;for(var f in s)s.hasOwnProperty(f)&&(_.browserHasFlaw=_.browserHasFlaw||!s[f]&&f)},function(t,e){"use strict";e.__esModule=!0;var o=!1,r=!1,n=window.document.createElement("div");try{var i="<P><I></P></I>";n.innerHTML=i,e.tagSoup=o=n.innerHTML!==i}catch(t){e.tagSoup=o=!1}try{n.innerHTML="<P><i><P></P></i></P>",e.selfClose=r=2===n.childNodes.length}catch(t){e.selfClose=r=!1}n=null,e.tagSoup=o,e.selfClose=r},function(t,e,o){"use strict";function r(t){var e=t.indexOf("--\x3e");if(e>=0)return new d.CommentToken(t.substr(4,e-1),e+3)}function n(t){var e=t.indexOf("<");return new d.CharsToken(e>=0?e:t.length)}function i(t){if(-1!==t.indexOf(">")){var e=t.match(p.startTag);if(e){var o=function(){var t={},o={},r=e[2];return e[2].replace(p.attr,function(e,n){arguments[2]||arguments[3]||arguments[4]||arguments[5]?arguments[5]?(t[arguments[5]]="",o[arguments[5]]=!0):t[n]=arguments[2]||arguments[3]||arguments[4]||p.fillAttr.test(n)&&n||"":t[n]="",r=r.replace(e,"")}),{v:new d.StartTagToken(e[1],e[0].length,t,o,!!e[3],r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""))}}();if("object"===(void 0===o?"undefined":c(o)))return o.v}}}function s(t){var e=i(t);if(e){var o=t.slice(e.length);if(o.match(new RegExp("</\\s*"+e.tagName+"\\s*>","i"))){var r=o.match(new RegExp("([\\s\\S]*?)</\\s*"+e.tagName+"\\s*>","i"));if(r)return new d.AtomicTagToken(e.tagName,r[0].length+e.length,e.attrs,e.booleanAttrs,r[1])}}}function a(t){var e=t.match(p.endTag);if(e)return new d.EndTagToken(e[1],e[0].length)}e.__esModule=!0;var 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};e.comment=r,e.chars=n,e.startTag=i,e.atomicTag=s,e.endTag=a;var d=o(4),p={startTag:/^<([\-A-Za-z0-9_]+)((?:\s+[\w\-]+(?:\s*=?\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,endTag:/^<\/([\-A-Za-z0-9_]+)[^>]*>/,attr:/(?:([\-A-Za-z0-9_]+)\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))|(?:([\-A-Za-z0-9_]+)(\s|$)+)/g,fillAttr:/^(checked|compact|declare|defer|disabled|ismap|multiple|nohref|noresize|noshade|nowrap|readonly|selected)$/i}},function(t,e,o){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0,e.EndTagToken=e.AtomicTagToken=e.StartTagToken=e.TagToken=e.CharsToken=e.CommentToken=e.Token=void 0;var n=o(5),i=(e.Token=function t(e,o){r(this,t),this.type=e,this.length=o,this.text=""},e.CommentToken=function(){function t(e,o){r(this,t),this.type="comment",this.length=o||(e?e.length:0),this.text="",this.content=e}return t.prototype.toString=function(){return"\x3c!--"+this.content},t}(),e.CharsToken=function(){function t(e){r(this,t),this.type="chars",this.length=e,this.text=""}return t.prototype.toString=function(){return this.text},t}(),e.TagToken=function(){function t(e,o,n,i,s){r(this,t),this.type=e,this.length=n,this.text="",this.tagName=o,this.attrs=i,this.booleanAttrs=s,this.unary=!1,this.html5Unary=!1}return t.formatTag=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o="<"+t.tagName;for(var r in t.attrs)if(t.attrs.hasOwnProperty(r)){o+=" "+r;var i=t.attrs[r];void 0!==t.booleanAttrs&&void 0!==t.booleanAttrs[r]||(o+='="'+(0,n.escapeQuotes)(i)+'"')}return t.rest&&(o+=" "+t.rest),o+=t.unary&&!t.html5Unary?"/>":">",void 0!==e&&null!==e&&(o+=e+"</"+t.tagName+">"),o},t}());e.StartTagToken=function(){function t(e,o,n,i,s,a){r(this,t),this.type="startTag",this.length=o,this.text="",this.tagName=e,this.attrs=n,this.booleanAttrs=i,this.html5Unary=!1,this.unary=s,this.rest=a}return t.prototype.toString=function(){return i.formatTag(this)},t}(),e.AtomicTagToken=function(){function t(e,o,n,i,s){r(this,t),this.type="atomicTag",this.length=o,this.text="",this.tagName=e,this.attrs=n,this.booleanAttrs=i,this.unary=!1,this.html5Unary=!1,this.content=s}return t.prototype.toString=function(){return i.formatTag(this,this.content)},t}(),e.EndTagToken=function(){function t(e,o){r(this,t),this.type="endTag",this.length=o,this.text="",this.tagName=e}return t.prototype.toString=function(){return"</"+this.tagName+">"},t}()},function(t,e){"use strict";function o(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return t?t.replace(/([^"]*)"/g,function(t,e){return/\\/.test(e)?e+'"':e+'\\"'}):e}e.__esModule=!0,e.escapeQuotes=o},function(t,e){"use strict";function o(t){return t&&"startTag"===t.type&&(t.unary=a.test(t.tagName)||t.unary,t.html5Unary=!/\/>$/.test(t.text)),t}function r(t,e){var r=t.stream,n=o(e());return t.stream=r,n}function n(t,e){var o=e.pop();t.prepend("</"+o.tagName+">")}function i(){var t=[];return t.last=function(){return this[this.length-1]},t.lastTagNameEq=function(t){var e=this.last();return e&&e.tagName&&e.tagName.toUpperCase()===t.toUpperCase()},t.containsTagName=function(t){for(var e,o=0;e=this[o];o++)if(e.tagName===t)return!0;return!1},t}function s(t,e,s){function a(){var e=r(t,s);e&&p[e.type]&&p[e.type](e)}var d=i(),p={startTag:function(o){var r=o.tagName;"TR"===r.toUpperCase()&&d.lastTagNameEq("TABLE")?(t.prepend("<TBODY>"),a()):e.selfCloseFix&&c.test(r)&&d.containsTagName(r)?d.lastTagNameEq(r)?n(t,d):(t.prepend("</"+o.tagName+">"),a()):o.unary||d.push(o)},endTag:function(o){d.last()?e.tagSoupFix&&!d.lastTagNameEq(o.tagName)?n(t,d):d.pop():e.tagSoupFix&&(s(),a())}};return function(){return a(),o(s())}}e.__esModule=!0,e.default=s;var a=/^(AREA|BASE|BASEFONT|BR|COL|FRAME|HR|IMG|INPUT|ISINDEX|LINK|META|PARAM|EMBED)$/i,c=/^(COLGROUP|DD|DT|LI|OPTIONS|P|TD|TFOOT|TH|THEAD|TR)$/i}])}()}()},function(t,e){"use strict";function o(t){return void 0!==t&&null!==t}function r(t){return"function"==typeof t}function n(t,e,o){var r=void 0,n=t&&t.length||0;for(r=0;r<n;r++)e.call(o,t[r],r)}function i(t,e,o){for(var r in t)t.hasOwnProperty(r)&&e.call(o,r,t[r])}function s(t,e){return t=t||{},i(e,function(e,r){o(t[e])||(t[e]=r)}),t}function a(t){try{return Array.prototype.slice.call(t)}catch(o){var e=function(){var e=[];return n(t,function(t){e.push(t)}),{v:e}}();if("object"===(void 0===e?"undefined":u(e)))return e.v}}function c(t){return t[t.length-1]}function d(t,e){return!(!t||"startTag"!==t.type&&"atomicTag"!==t.type||!("tagName"in t)||!~t.tagName.toLowerCase().indexOf(e))}function p(t){return d(t,"script")}function l(t){return d(t,"style")}e.__esModule=!0;var u="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};e.existy=o,e.isFunction=r,e.each=n,e.eachKey=i,e.defaults=s,e.toArray=a,e.last=c,e.isTag=d,e.isScript=p,e.isStyle=l}])}),function(t){var e={common:{init:function(){"use strict";function e(t,e){try{jQuery().gdpr_cookie_compliance_analytics(t,e)}catch(t){}}function o(){var o=d("moove_gdpr_popup"),r={};return r.strict="0",r.thirdparty="0",r.advanced="0",o&&(o=JSON.parse(o),r.strict=o.strict,r.thirdparty=o.thirdparty,r.advanced=o.advanced,i(r),e("script_inject",o)),"1"!==moove_frontend_gdpr_scripts.strict_init&&t(document).find("iframe[data-gdpr-iframesrc]").each(function(){t(this).attr("src",t(this).attr("data-gdpr-iframesrc"))}),r}function r(t){c("moove_gdpr_popup",JSON.stringify({strict:"1",thirdparty:"1",advanced:"1"}),365),n("enabled-all"),e("accept_all","")}function n(e){var r=!1;try{void 0!==moove_frontend_gdpr_scripts.force_reload&&"true"===moove_frontend_gdpr_scripts.force_reload&&(r=!0)}catch(t){}var n=o(),i=moove_frontend_gdpr_scripts.enabled_default.third_party,a=moove_frontend_gdpr_scripts.enabled_default.advanced;if(document.cookie.indexOf("moove_gdpr_popup")>=0||1==i||1==a){d("moove_gdpr_popup");1==i&&(f.strict=1,f.thirdparty=i),1==a&&(f.strict=1,f.advanced=a),f&&(parseInt(n.strict)-parseInt(f.strict)<0&&(r=!0),parseInt(n.thirdparty)-parseInt(f.thirdparty)<0&&(r=!0),parseInt(n.advanced)-parseInt(f.advanced)<0&&(r=!0))}if(r)location.reload(!0);else{p(d("moove_gdpr_popup")),s(),t("#moove_gdpr_save_popup_settings_button").show()}}function i(e){e&&(1===parseInt(e.strict)?t("#moove_gdpr_strict_cookies").is(":checked")||(t("#moove_gdpr_strict_cookies").click(),t("#third_party_cookies fieldset").removeClass("fl-disabled"),t("#moove_gdpr_performance_cookies").prop("disabled",!1),t("#third_party_cookies .moove-gdpr-strict-secondary-warning-message").slideUp(),t("#advanced-cookies fieldset").removeClass("fl-disabled"),t("#advanced-cookies .moove-gdpr-strict-secondary-warning-message").slideUp(),t("#moove_gdpr_advanced_cookies").prop("disabled",!1)):t("#moove_gdpr_strict_cookies").is(":checked")&&(t("#moove_gdpr_strict_cookies").click().prop("checked",!0),t("#third_party_cookies fieldset").addClass("fl-disabled").closest(".moove-gdpr-status-bar").removeClass("checkbox-selected"),t("#moove_gdpr_performance_cookies").prop("disabled",!0).prop("checked",!1),t("#advanced-cookies fieldset").addClass("fl-disabled").closest(".moove-gdpr-status-bar").removeClass("checkbox-selected"),t("#moove_gdpr_advanced_cookies").prop("disabled",!0).prop("checked",!1)),1===parseInt(e.thirdparty)?t("#moove_gdpr_performance_cookies").is(":checked")||t("#moove_gdpr_performance_cookies").click():t("#moove_gdpr_performance_cookies").is(":checked")&&t("#moove_gdpr_performance_cookies").click(),1===parseInt(e.advanced)?t("#moove_gdpr_advanced_cookies").is(":checked")||t("#moove_gdpr_advanced_cookies").click():t("#moove_gdpr_advanced_cookies").is(":checked")&&t("#moove_gdpr_advanced_cookies").click(),t('input[data-name="moove_gdpr_performance_cookies"]').prop("checked",t("#moove_gdpr_performance_cookies").is(":checked")),t('input[data-name="moove_gdpr_strict_cookies"]').prop("checked",t("#moove_gdpr_strict_cookies").is(":checked")),t('input[data-name="moove_gdpr_advanced_cookies"]').prop("checked",t("#moove_gdpr_advanced_cookies").is(":checked")))}function s(){t("#moove_gdpr_cookie_info_bar").length>0&&(t("#moove_gdpr_cookie_info_bar").addClass("moove-gdpr-info-bar-hidden"),t("body").removeClass("gdpr-infobar-visible"))}function a(){if(void 0!==moove_frontend_gdpr_scripts.display_cookie_banner){if("true"===moove_frontend_gdpr_scripts.display_cookie_banner)t("#moove_gdpr_cookie_info_bar").length>0&&(t("#moove_gdpr_cookie_info_bar").removeClass("moove-gdpr-info-bar-hidden"),t("#moove_gdpr_save_popup_settings_button:not(.button-visible)").hide(),t("body").addClass("gdpr-infobar-visible"),e("show_infobar",""));else if(t("#moove_gdpr_cookie_info_bar").length>0){t("#moove_gdpr_cookie_info_bar").addClass("moove-gdpr-info-bar-hidden"),t("body").removeClass("gdpr-infobar-visible");var o={strict:1,thirdparty:1,advanced:1};p(JSON.stringify(o))}}else t("#moove_gdpr_cookie_info_bar").length>0&&(t("#moove_gdpr_cookie_info_bar").removeClass("moove-gdpr-info-bar-hidden"),t("#moove_gdpr_save_popup_settings_button:not(.button-visible)").hide(),t("body").addClass("gdpr-infobar-visible"),e("show_infobar",""))}function c(t,e,o){var r;if(o){var n=new Date;n.setTime(n.getTime()+24*o*60*60*1e3),r="; expires="+n.toGMTString()}else r="";document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)+r+"; path=/",JSON.parse(e)}function d(t){for(var e=encodeURIComponent(t)+"=",o=document.cookie.split(";"),r=0;r<o.length;r++){for(var n=o[r];" "===n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(e))return decodeURIComponent(n.substring(e.length,n.length))}return null}function p(r){if(f=o(),r){var n=r;r=JSON.parse(r);o();if(!1!==m){var i=JSON.parse(m);1===parseInt(i.thirdparty)&&1===parseInt(r.thirdparty)&&(r.thirdparty="0"),1===parseInt(i.advanced)&&1===parseInt(r.advanced)&&(r.advanced="0")}e("script_inject",r),h=!0,1===parseInt(r.strict)&&t(document).find("iframe[data-gdpr-iframesrc]").each(function(){t(this).attr("src",t(this).attr("data-gdpr-iframesrc"))}),t.post(moove_frontend_gdpr_scripts.ajaxurl,{action:"moove_gdpr_get_scripts",strict:r.strict,thirdparty:r.thirdparty,advanced:r.advanced},function(e){m=n;var o=JSON.parse(e);o.header&&postscribe(document.head,o.header),o.body&&t(o.body).prependTo(document.body),o.footer&&postscribe(document.body,o.footer)})}else a()}function l(){var e=!0;t("#moove_gdpr_cookie_modal").find("input[type=checkbox]").each(function(){t(this).is(":checked")||(e=!1)}),e?t(".moove-gdpr-button-holder .moove-gdpr-modal-allow-all").hide().removeClass("button-visible"):t(".moove-gdpr-button-holder .moove-gdpr-modal-save-settings").is(":visible")?t(".moove-gdpr-button-holder .moove-gdpr-modal-allow-all").hide().removeClass("button-visible"):t(".moove-gdpr-button-holder .moove-gdpr-modal-allow-all").show().addClass("button-visible")}function u(){for(var t=document.cookie.split("; "),e=0;e<t.length;e++)for(var o=window.location.hostname.split(".");o.length>0;){var r=encodeURIComponent(t[e].split(";")[0].split("=")[0])+"=; expires=Thu, 01-Jan-1970 00:00:01 GMT; domain="+o.join(".")+" ; path=",n=location.pathname.split("/");for(document.cookie=r+"/";n.length>0;)document.cookie=r+n.join("/"),n.pop();o.shift()}}function _(){var e=d("moove_gdpr_popup");u();var o="0",r="0",n="0",i=!1;e&&(e=JSON.parse(e),o=e.strict,r=e.advanced,n=e.thirdparty),t("#moove_gdpr_strict_cookies").length>0?t("#moove_gdpr_strict_cookies").is(":checked")?(o="1",i=!0):o="0":(i=!0,o="1"),t("#moove_gdpr_performance_cookies").is(":checked")?(n="1",i=!0):n="0",t("#moove_gdpr_advanced_cookies").is(":checked")?(r="1",i=!0):r="0",!e&&i?(c("moove_gdpr_popup",JSON.stringify({strict:o,thirdparty:n,advanced:r}),365),s(),t("#moove_gdpr_save_popup_settings_button").show()):e&&c("moove_gdpr_popup",JSON.stringify({strict:o,thirdparty:n,advanced:r}),365);var e=d("moove_gdpr_popup");e&&(e=JSON.parse(e),"0"==e.strict&&"0"==e.advanced&&"0"==e.thirdparty&&u())}t(document).on("click","#moove_gdpr_cookie_info_bar .moove-gdpr-infobar-reject-btn",function(e){e.preventDefault(),c("moove_gdpr_popup",JSON.stringify({strict:"1",thirdparty:"0",advanced:"0"}),365),t("#moove_gdpr_cookie_info_bar").length>0&&(t("#moove_gdpr_cookie_info_bar").addClass("moove-gdpr-info-bar-hidden"),t("body").removeClass("gdpr-infobar-visible"),location.reload(!0))}),t.fn.moove_gdpr_read_cookies=function(t){var e=d("moove_gdpr_popup"),o={};return o.strict="0",o.thirdparty="0",o.advanced="0",e&&(e=JSON.parse(e),o.strict=e.strict,o.thirdparty=e.thirdparty,o.advanced=e.advanced),o};var f=o(),m=!1,h=!1;if(t.fn.moove_gdpr_save_cookie=function(o){var r=d("moove_gdpr_popup"),n=t(window).scrollTop();if(!r){if(o.thirdParty)var s="1";else var s="0";if(o.advanced)var a="1";else var a="0";if(o.scrollEnable){var p=o.scrollEnable;t(window).scroll(function(){!h&&t(this).scrollTop()-n>p&&("undefined"===o.thirdparty&&"undefined"===o.advanced||(c("moove_gdpr_popup",JSON.stringify({strict:"1",thirdparty:s,advanced:a}),365),r=JSON.parse(r),i(r)))})}else"undefined"===o.thirdparty&&"undefined"===o.advanced||(c("moove_gdpr_popup",JSON.stringify({strict:"1",thirdparty:s,advanced:a}),365),r=JSON.parse(r),i(r));r=d("moove_gdpr_popup"),r&&(r=JSON.parse(r),e("script_inject",r),h=!0,1===parseInt(r.strict)&&t(document).find("iframe[data-gdpr-iframesrc]").each(function(){t(this).attr("src",t(this).attr("data-gdpr-iframesrc"))}),jQuery.post(moove_frontend_gdpr_scripts.ajaxurl,{action:"moove_gdpr_get_scripts",strict:r.strict,thirdparty:r.thirdparty,advanced:r.advanced},function(e){var o=JSON.parse(e);o.header&&postscribe(document.head,o.header),o.body&&t(o.body).prependTo(document.body),o.footer&&postscribe(document.body,o.footer)}))}},"undefined"==typeof lity){var v=moove_frontend_gdpr_scripts.plugin_dir+"/dist/scripts/lity.js",g=moove_frontend_gdpr_scripts.plugin_dir+"/dist/styles/lity.css";postscribe(document.body,'<script src="'+v+'"><\/script>'),postscribe(document.head,'<link href="'+g+'" rel="stylesheet">')}var y="",k=!1;if(window.location.hash){var b=window.location.hash.substring(1);"moove_gdpr_cookie_modal"===b&&(k=!0,e("opened_modal_from_link",""),setTimeout(function(){y=lity("#moove_gdpr_cookie_modal"),t(".lity").addClass("moove_gdpr_cookie_modal_open"),t(document).moove_lity_open()},500))}if(window.location.hash){var b=window.location.hash.substring(1);"gdpr_cookie_modal"===b&&(k=!0,e("opened_modal_from_link",""),setTimeout(function(){y=lity("#moove_gdpr_cookie_modal"),t(".lity").addClass("moove_gdpr_cookie_modal_open"),t(document).moove_lity_open()},500))}!function(){var e=(location.pathname,t(window).scrollTop());t("#moove_gdpr_save_popup_settings_button").show();var r=moove_frontend_gdpr_scripts.enabled_default.third_party,n=moove_frontend_gdpr_scripts.enabled_default.advanced;if(void 0!==moove_frontend_gdpr_scripts.enable_on_scroll&&"true"===moove_frontend_gdpr_scripts.enable_on_scroll&&1!==parseInt(r)&&1!==parseInt(n)&&(r=1,n=1),document.cookie.indexOf("moove_gdpr_popup")>=0||1==r||1==n){var l=d("moove_gdpr_popup");if(l){var _=o();"0"==_.strict&&"0"==_.advanced&&"0"==_.thirdparty&&(u(),a())}else{var f=!1;if("undefined"!=typeof sessionStorage&&(f=sessionStorage.getItem("gdpr_session")),void 0!==moove_frontend_gdpr_scripts.enable_on_scroll&&"true"===moove_frontend_gdpr_scripts.enable_on_scroll)if(f)try{i(JSON.parse(f)),a(),h=!0,p(f)}catch(t){}else t(window).scroll(function(){if(!h&&t(this).scrollTop()-e>200){l={strict:1,thirdparty:r,advanced:n},d("moove_gdpr_popup")||"undefined"!=typeof sessionStorage&&((f=sessionStorage.getItem("gdpr_session"))||(sessionStorage.setItem("gdpr_session",JSON.stringify(l)),f=sessionStorage.getItem("gdpr_session")));try{i(l),l=JSON.stringify(l),a(),h=!0,p(l),void 0!==moove_frontend_gdpr_scripts.gdpr_aos_hide&&"true"===moove_frontend_gdpr_scripts.gdpr_aos_hide&&(c("moove_gdpr_popup",l,365),s())}catch(t){}}});else l={strict:1,thirdparty:r,advanced:n},i(l),l=JSON.stringify(l),a()}p(l)}else a()}(),t(document).on("click",'[data-href*="#moove_gdpr_cookie_modal"],[href*="#moove_gdpr_cookie_modal"]',function(o){o.preventDefault(),k=!0,y=lity("#moove_gdpr_cookie_modal"),t(".lity").addClass("moove_gdpr_cookie_modal_open"),t(document).moove_lity_open(),e("opened_modal_from_link","")}),t(document).on("click",'[data-href*="#gdpr_cookie_modal"],[href*="#gdpr_cookie_modal"]',function(o){o.preventDefault(),k=!0,y=lity("#moove_gdpr_cookie_modal"),t(".lity").addClass("moove_gdpr_cookie_modal_open"),t(document).moove_lity_open(),e("opened_modal_from_link","")}),t(document).on("click","#moove_gdpr_cookie_info_bar .moove-gdpr-close-modal-button a, #moove_gdpr_cookie_info_bar .moove-gdpr-close-modal-button button",function(t){t.preventDefault()}),t(document).on("click",".moove-gdpr-modal-close",function(e){e.preventDefault(),t(".lity .lity-close").click(),t(document).moove_lity_close()}),t(document).on("click","#moove-gdpr-menu .moove-gdpr-tab-nav",function(o){o.preventDefault(),o.stopPropagation(),t("#moove-gdpr-menu li").removeClass("menu-item-selected"),t(this).parent().addClass("menu-item-selected"),t(".moove-gdpr-tab-content .moove-gdpr-tab-main").hide(),t(t(this).attr("href")).show(),t(t(this).attr("data-href")).show(),e("clicked_to_tab",t(this).attr("data-href"))}),t(document).on("lity:close",function(e,o){t(document).moove_lity_close()}),t.fn.moove_lity_close=function(e){k&&(t("body").removeClass("moove_gdpr_overflow"),k=!1)},t.fn.moove_lity_open=function(e){if(k){t("body").addClass("moove_gdpr_overflow");var o=d("moove_gdpr_popup");t(".moove-gdpr-status-bar input[type=checkbox]").each(function(){t(this).is(":checked")?t(this).closest(".moove-gdpr-tab-main").find(".moove-gdpr-strict-warning-message").slideUp():t(this).closest(".moove-gdpr-tab-main").find(".moove-gdpr-strict-warning-message").slideDown()}),o&&(o=JSON.parse(o),i(o)),t(".moove-gdpr-modal-save-settings").hide().removeClass("button-visible"),l()}},t(document).on("lity:open",function(e,o){t(document).moove_lity_open()}),t(document).on("click",".fl-disabled",function(e){t("#moove_gdpr_cookie_modal .moove-gdpr-modal-content").is(".moove_gdpr_modal_theme_v2")?(t("#moove_gdpr_strict_cookies").click(),t(this).click()):t(this).closest(".moove-gdpr-tab-main-content").find(".moove-gdpr-strict-secondary-warning-message").slideDown()}),t(document).on("change",".moove-gdpr-status-bar input[type=checkbox]",function(e){t(".moove-gdpr-modal-save-settings").show().addClass("button-visible"),t(".moove-gdpr-modal-allow-all").hide().removeClass("button-visible");var o=t(this).closest(".moove-gdpr-tab-main").attr("id");t(this).closest(".moove-gdpr-status-bar").toggleClass("checkbox-selected"),t(this).closest(".moove-gdpr-tab-main").toggleClass("checkbox-selected"),t("#moove-gdpr-menu .menu-item-"+o).toggleClass("menu-item-off"),t(this).is(":checked")?t(this).closest(".moove-gdpr-tab-main").find(".moove-gdpr-strict-warning-message").slideUp():t(this).closest(".moove-gdpr-tab-main").find(".moove-gdpr-strict-warning-message").slideDown(),t(this).is("#moove_gdpr_strict_cookies")&&(t(this).is(":checked")?(t("#third_party_cookies fieldset").removeClass("fl-disabled"),t("#moove_gdpr_performance_cookies").prop("disabled",!1),t("#third_party_cookies .moove-gdpr-strict-secondary-warning-message").slideUp(),t("#advanced-cookies fieldset").removeClass("fl-disabled"),t("#advanced-cookies .moove-gdpr-strict-secondary-warning-message").slideUp(),t("#moove_gdpr_advanced_cookies").prop("disabled",!1)):(t(".gdpr_cookie_settings_shortcode_content").find("input").each(function(){t(this).prop("checked",!1)}),
2
- t("#third_party_cookies fieldset").addClass("fl-disabled").closest(".moove-gdpr-status-bar").removeClass("checkbox-selected"),t("#moove_gdpr_performance_cookies").prop("disabled",!0).prop("checked",!1),t("#advanced-cookies fieldset").addClass("fl-disabled").closest(".moove-gdpr-status-bar").removeClass("checkbox-selected"),t("#moove_gdpr_advanced_cookies").prop("disabled",!0).prop("checked",!1))),t('input[data-name="'+t(this).attr("name")+'"]').prop("checked",t(this).is(":checked")),l()}),t(document).on("click",".gdpr_cookie_settings_shortcode_content a.gdpr-shr-save-settings",function(e){e.preventDefault(),_(),t(".lity .lity-close").click(),t(document).moove_lity_close(),n("modal-save-settings")}),t(document).on("change",".gdpr_cookie_settings_shortcode_content input[type=checkbox]",function(e){var o=t(this).attr("data-name"),r=t("#"+o);t(this).is(":checked")?(t('input[data-name="'+o+'"]').prop("checked",!0),"moove_gdpr_strict_cookies"!==t(this).attr("data-name")&&(t(this).closest(".gdpr_cookie_settings_shortcode_content").find('input[data-name="moove_gdpr_strict_cookies"]').is(":checked")||(t('input[data-name="'+o+'"]').prop("checked",!1),t('.gdpr_cookie_settings_shortcode_content input[data-name="moove_gdpr_strict_cookies"]').closest(".gdpr-shr-switch").css("transform","scale(1.2)"),setTimeout(function(){t('.gdpr_cookie_settings_shortcode_content input[data-name="moove_gdpr_strict_cookies"]').closest(".gdpr-shr-switch").css("transform","scale(1)")},300)))):(t('input[data-name="'+o+'"]').prop("checked",t(this).is(":checked")),"moove_gdpr_strict_cookies"===t(this).attr("data-name")&&t(".gdpr_cookie_settings_shortcode_content").find('input[type="checkbox"]').prop("checked",!1)),r.click()}),t(document).on("click",".moove-gdpr-modal-allow-all",function(e){e.preventDefault(),t("#moove_gdpr_cookie_modal").find("input[type=checkbox]").each(function(){var e=t(this);e.is(":checked")||e.click()}),r("enable_all enable-all-button"),t(".lity .lity-close").click(),s(),_(),t(document).moove_lity_close()}),t(document).on("click",".moove-gdpr-infobar-allow-all",function(t){t.preventDefault(),r("enable_all allow-btn")}),t(document).on("click",".moove-gdpr-modal-save-settings",function(e){e.preventDefault(),_(),t(".lity .lity-close").click(),t(document).moove_lity_close(),n("modal-save-settings")})},finalize:function(){}}},o={fire:function(t,o,r){var n,i=e;o=void 0===o?"init":o,n=""!==t,n=n&&i[t],(n=n&&"function"==typeof i[t][o])&&i[t][o](r)},loadEvents:function(){o.fire("common"),t.each(document.body.className.replace(/-/g,"_").split(/\s+/),function(t,e){o.fire(e),o.fire(e,"finalize")}),o.fire("common","finalize")}};t(document).ready(o.loadEvents)}(jQuery);
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.postscribe=t():e.postscribe=t()}(this,function(){return function(e){function t(r){if(o[r])return o[r].exports;var n=o[r]={exports:{},id:r,loaded:!1};return e[r].call(n.exports,n,n.exports,t),n.loaded=!0,n.exports}var o={};return t.m=e,t.c=o,t.p="",t(0)}([function(e,t,o){"use strict";var r=o(1),n=function(e){return e&&e.__esModule?e:{default:e}}(r);e.exports=n.default},function(e,t,o){"use strict";function r(){}function n(){var e=f.shift();if(e){var t=l.last(e);t.afterDequeue(),e.stream=i.apply(void 0,e),t.afterStreamStart()}}function i(e,t,o){function i(e){e=o.beforeWrite(e),m.write(e),o.afterWrite(e)}m=new d.default(e,o),m.id=_++,m.name=o.name||m.id,s.streams[m.name]=m;var c=e.ownerDocument,p={close:c.close,open:c.open,write:c.write,writeln:c.writeln};a(c,{close:r,open:r,write:function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return i(t.join(""))},writeln:function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return i(t.join("")+"\n")}});var l=m.win.onerror||r;return m.win.onerror=function(e,t,r){o.error({msg:e+" - "+t+": "+r}),l.apply(m.win,[e,t,r])},m.write(t,function(){a(c,p),m.win.onerror=l,o.done(),m=null,n()}),m}function s(e,t,o){if(l.isFunction(o))o={done:o};else if("clear"===o)return f=[],m=null,void(_=0);o=l.defaults(o,u),e=/^#/.test(e)?window.document.getElementById(e.substr(1)):e.jquery?e[0]:e;var i=[e,t,o];return e.postscribe={cancel:function(){i.stream?i.stream.abort():i[1]=r}},o.beforeEnqueue(i),f.push(i),m||n(),e.postscribe}t.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e};t.default=s;var c=o(2),d=function(e){return e&&e.__esModule?e:{default:e}}(c),p=o(4),l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t.default=e,t}(p),u={afterAsync:r,afterDequeue:r,afterStreamStart:r,afterWrite:r,autoFix:!0,beforeEnqueue:r,beforeWriteToken:function(e){return e},beforeWrite:function(e){return e},done:r,error:function(e){throw new Error(e.msg)},releaseAsync:!1},_=0,f=[],m=null;a(s,{streams:{},queue:f,WriteStream:d.default})},function(e,t,o){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){var o=l+t,r=e.getAttribute(o);return p.existy(r)?String(r):r}function i(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=l+t;p.existy(o)&&""!==o?e.setAttribute(r,o):e.removeAttribute(r)}t.__esModule=!0;var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},a=o(3),c=function(e){return e&&e.__esModule?e:{default:e}}(a),d=o(4),p=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t.default=e,t}(d),l="data-ps-",u="ps-style",_="ps-script",f=function(){function e(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,e),this.root=t,this.options=o,this.doc=t.ownerDocument,this.win=this.doc.defaultView||this.doc.parentWindow,this.parser=new c.default("",{autoFix:o.autoFix}),this.actuals=[t],this.proxyHistory="",this.proxyRoot=this.doc.createElement(t.nodeName),this.scriptStack=[],this.writeQueue=[],i(this.proxyRoot,"proxyof",0)}return e.prototype.write=function(){var e;for((e=this.writeQueue).push.apply(e,arguments);!this.deferredRemote&&this.writeQueue.length;){var t=this.writeQueue.shift();p.isFunction(t)?this._callFunction(t):this._writeImpl(t)}},e.prototype._callFunction=function(e){var t={type:"function",value:e.name||e.toString()};this._onScriptStart(t),e.call(this.win,this.doc),this._onScriptDone(t)},e.prototype._writeImpl=function(e){this.parser.append(e);for(var t=void 0,o=void 0,r=void 0,n=[];(t=this.parser.readToken())&&!(o=p.isScript(t))&&!(r=p.isStyle(t));)(t=this.options.beforeWriteToken(t))&&n.push(t);n.length>0&&this._writeStaticTokens(n),o&&this._handleScriptToken(t),r&&this._handleStyleToken(t)},e.prototype._writeStaticTokens=function(e){var t=this._buildChunk(e);return t.actual?(t.html=this.proxyHistory+t.actual,this.proxyHistory+=t.proxy,this.proxyRoot.innerHTML=t.html,this._walkChunk(),t):null},e.prototype._buildChunk=function(e){for(var t=this.actuals.length,o=[],r=[],n=[],i=e.length,s=0;s<i;s++){var a=e[s],c=a.toString();if(o.push(c),a.attrs){if(!/^noscript$/i.test(a.tagName)){var d=t++;r.push(c.replace(/(\/?>)/," "+l+"id="+d+" $1")),a.attrs.id!==_&&a.attrs.id!==u&&n.push("atomicTag"===a.type?"":"<"+a.tagName+" "+l+"proxyof="+d+(a.unary?" />":">"))}}else r.push(c),n.push("endTag"===a.type?c:"")}return{tokens:e,raw:o.join(""),actual:r.join(""),proxy:n.join("")}},e.prototype._walkChunk=function(){for(var e=void 0,t=[this.proxyRoot];p.existy(e=t.shift());){var o=1===e.nodeType;if(!(o&&n(e,"proxyof"))){o&&(this.actuals[n(e,"id")]=e,i(e,"id"));var r=e.parentNode&&n(e.parentNode,"proxyof");r&&this.actuals[r].appendChild(e)}t.unshift.apply(t,p.toArray(e.childNodes))}},e.prototype._handleScriptToken=function(e){var t=this,o=this.parser.clear();o&&this.writeQueue.unshift(o),e.src=e.attrs.src||e.attrs.SRC,(e=this.options.beforeWriteToken(e))&&(e.src&&this.scriptStack.length?this.deferredRemote=e:this._onScriptStart(e),this._writeScriptToken(e,function(){t._onScriptDone(e)}))},e.prototype._handleStyleToken=function(e){var t=this.parser.clear();t&&this.writeQueue.unshift(t),e.type=e.attrs.type||e.attrs.TYPE||"text/css",e=this.options.beforeWriteToken(e),e&&this._writeStyleToken(e),t&&this.write()},e.prototype._writeStyleToken=function(e){var t=this._buildStyle(e);this._insertCursor(t,u),e.content&&(t.styleSheet&&!t.sheet?t.styleSheet.cssText=e.content:t.appendChild(this.doc.createTextNode(e.content)))},e.prototype._buildStyle=function(e){var t=this.doc.createElement(e.tagName);return t.setAttribute("type",e.type),p.eachKey(e.attrs,function(e,o){t.setAttribute(e,o)}),t},e.prototype._insertCursor=function(e,t){this._writeImpl('<span id="'+t+'"/>');var o=this.doc.getElementById(t);o&&o.parentNode.replaceChild(e,o)},e.prototype._onScriptStart=function(e){e.outerWrites=this.writeQueue,this.writeQueue=[],this.scriptStack.unshift(e)},e.prototype._onScriptDone=function(e){return e!==this.scriptStack[0]?void this.options.error({msg:"Bad script nesting or script finished twice"}):(this.scriptStack.shift(),this.write.apply(this,e.outerWrites),void(!this.scriptStack.length&&this.deferredRemote&&(this._onScriptStart(this.deferredRemote),this.deferredRemote=null)))},e.prototype._writeScriptToken=function(e,t){var o=this._buildScript(e),r=this._shouldRelease(o),n=this.options.afterAsync;e.src&&(o.src=e.src,this._scriptLoadHandler(o,r?n:function(){t(),n()}));try{this._insertCursor(o,_),o.src&&!r||t()}catch(e){this.options.error(e),t()}},e.prototype._buildScript=function(e){var t=this.doc.createElement(e.tagName);return p.eachKey(e.attrs,function(e,o){t.setAttribute(e,o)}),e.content&&(t.text=e.content),t},e.prototype._scriptLoadHandler=function(e,t){function o(){e=e.onload=e.onreadystatechange=e.onerror=null}function r(){o(),null!=t&&t(),t=null}function n(e){o(),a(e),null!=t&&t(),t=null}function i(e,t){var o=e["on"+t];null!=o&&(e["_on"+t]=o)}var a=this.options.error;i(e,"load"),i(e,"error"),s(e,{onload:function(){if(e._onload)try{e._onload.apply(this,Array.prototype.slice.call(arguments,0))}catch(t){n({msg:"onload handler failed "+t+" @ "+e.src})}r()},onerror:function(){if(e._onerror)try{e._onerror.apply(this,Array.prototype.slice.call(arguments,0))}catch(t){return void n({msg:"onerror handler failed "+t+" @ "+e.src})}n({msg:"remote script failed "+e.src})},onreadystatechange:function(){/^(loaded|complete)$/.test(e.readyState)&&r()}})},e.prototype._shouldRelease=function(e){return!/^script$/i.test(e.nodeName)||!!(this.options.releaseAsync&&e.src&&e.hasAttribute("async"))},e}();t.default=f},function(e,t,o){!function(t,o){e.exports=function(){return function(e){function t(r){if(o[r])return o[r].exports;var n=o[r]={exports:{},id:r,loaded:!1};return e[r].call(n.exports,n,n.exports,t),n.loaded=!0,n.exports}var o={};return t.m=e,t.c=o,t.p="",t(0)}([function(e,t,o){"use strict";var r=o(1),n=function(e){return e&&e.__esModule?e:{default:e}}(r);e.exports=n.default},function(e,t,o){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t.default=e,t}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=o(2),s=r(i),a=o(3),c=r(a),d=o(6),p=function(e){return e&&e.__esModule?e:{default:e}}(d),l=o(5),u={comment:/^<!--/,endTag:/^<\//,atomicTag:/^<\s*(script|style|noscript|iframe|textarea)[\s\/>]/i,startTag:/^</,chars:/^[^<]/},_=function(){function e(){var t=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n(this,e),this.stream=o;var i=!1,a={};for(var c in s)s.hasOwnProperty(c)&&(r.autoFix&&(a[c+"Fix"]=!0),i=i||a[c+"Fix"]);i?(this._readToken=(0,p.default)(this,a,function(){return t._readTokenImpl()}),this._peekToken=(0,p.default)(this,a,function(){return t._peekTokenImpl()})):(this._readToken=this._readTokenImpl,this._peekToken=this._peekTokenImpl)}return e.prototype.append=function(e){this.stream+=e},e.prototype.prepend=function(e){this.stream=e+this.stream},e.prototype._readTokenImpl=function(){var e=this._peekTokenImpl();if(e)return this.stream=this.stream.slice(e.length),e},e.prototype._peekTokenImpl=function(){for(var e in u)if(u.hasOwnProperty(e)&&u[e].test(this.stream)){var t=c[e](this.stream);if(t)return"startTag"===t.type&&/script|style/i.test(t.tagName)?null:(t.text=this.stream.substr(0,t.length),t)}},e.prototype.peekToken=function(){return this._peekToken()},e.prototype.readToken=function(){return this._readToken()},e.prototype.readTokens=function(e){for(var t=void 0;t=this.readToken();)if(e[t.type]&&!1===e[t.type](t))return},e.prototype.clear=function(){var e=this.stream;return this.stream="",e},e.prototype.rest=function(){return this.stream},e}();t.default=_,_.tokenToString=function(e){return e.toString()},_.escapeAttributes=function(e){var t={};for(var o in e)e.hasOwnProperty(o)&&(t[o]=(0,l.escapeQuotes)(e[o],null));return t},_.supports=s;for(var f in s)s.hasOwnProperty(f)&&(_.browserHasFlaw=_.browserHasFlaw||!s[f]&&f)},function(e,t){"use strict";t.__esModule=!0;var o=!1,r=!1,n=window.document.createElement("div");try{var i="<P><I></P></I>";n.innerHTML=i,t.tagSoup=o=n.innerHTML!==i}catch(e){t.tagSoup=o=!1}try{n.innerHTML="<P><i><P></P></i></P>",t.selfClose=r=2===n.childNodes.length}catch(e){t.selfClose=r=!1}n=null,t.tagSoup=o,t.selfClose=r},function(e,t,o){"use strict";function r(e){var t=e.indexOf("--\x3e");if(t>=0)return new d.CommentToken(e.substr(4,t-1),t+3)}function n(e){var t=e.indexOf("<");return new d.CharsToken(t>=0?t:e.length)}function i(e){if(-1!==e.indexOf(">")){var t=e.match(p.startTag);if(t){var o=function(){var e={},o={},r=t[2];return t[2].replace(p.attr,function(t,n){arguments[2]||arguments[3]||arguments[4]||arguments[5]?arguments[5]?(e[arguments[5]]="",o[arguments[5]]=!0):e[n]=arguments[2]||arguments[3]||arguments[4]||p.fillAttr.test(n)&&n||"":e[n]="",r=r.replace(t,"")}),{v:new d.StartTagToken(t[1],t[0].length,e,o,!!t[3],r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""))}}();if("object"===(void 0===o?"undefined":c(o)))return o.v}}}function s(e){var t=i(e);if(t){var o=e.slice(t.length);if(o.match(new RegExp("</\\s*"+t.tagName+"\\s*>","i"))){var r=o.match(new RegExp("([\\s\\S]*?)</\\s*"+t.tagName+"\\s*>","i"));if(r)return new d.AtomicTagToken(t.tagName,r[0].length+t.length,t.attrs,t.booleanAttrs,r[1])}}}function a(e){var t=e.match(p.endTag);if(t)return new d.EndTagToken(t[1],t[0].length)}t.__esModule=!0;var c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.comment=r,t.chars=n,t.startTag=i,t.atomicTag=s,t.endTag=a;var d=o(4),p={startTag:/^<([\-A-Za-z0-9_]+)((?:\s+[\w\-]+(?:\s*=?\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,endTag:/^<\/([\-A-Za-z0-9_]+)[^>]*>/,attr:/(?:([\-A-Za-z0-9_]+)\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))|(?:([\-A-Za-z0-9_]+)(\s|$)+)/g,fillAttr:/^(checked|compact|declare|defer|disabled|ismap|multiple|nohref|noresize|noshade|nowrap|readonly|selected)$/i}},function(e,t,o){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0,t.EndTagToken=t.AtomicTagToken=t.StartTagToken=t.TagToken=t.CharsToken=t.CommentToken=t.Token=void 0;var n=o(5),i=(t.Token=function e(t,o){r(this,e),this.type=t,this.length=o,this.text=""},t.CommentToken=function(){function e(t,o){r(this,e),this.type="comment",this.length=o||(t?t.length:0),this.text="",this.content=t}return e.prototype.toString=function(){return"\x3c!--"+this.content},e}(),t.CharsToken=function(){function e(t){r(this,e),this.type="chars",this.length=t,this.text=""}return e.prototype.toString=function(){return this.text},e}(),t.TagToken=function(){function e(t,o,n,i,s){r(this,e),this.type=t,this.length=n,this.text="",this.tagName=o,this.attrs=i,this.booleanAttrs=s,this.unary=!1,this.html5Unary=!1}return e.formatTag=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o="<"+e.tagName;for(var r in e.attrs)if(e.attrs.hasOwnProperty(r)){o+=" "+r;var i=e.attrs[r];void 0!==e.booleanAttrs&&void 0!==e.booleanAttrs[r]||(o+='="'+(0,n.escapeQuotes)(i)+'"')}return e.rest&&(o+=" "+e.rest),o+=e.unary&&!e.html5Unary?"/>":">",void 0!==t&&null!==t&&(o+=t+"</"+e.tagName+">"),o},e}());t.StartTagToken=function(){function e(t,o,n,i,s,a){r(this,e),this.type="startTag",this.length=o,this.text="",this.tagName=t,this.attrs=n,this.booleanAttrs=i,this.html5Unary=!1,this.unary=s,this.rest=a}return e.prototype.toString=function(){return i.formatTag(this)},e}(),t.AtomicTagToken=function(){function e(t,o,n,i,s){r(this,e),this.type="atomicTag",this.length=o,this.text="",this.tagName=t,this.attrs=n,this.booleanAttrs=i,this.unary=!1,this.html5Unary=!1,this.content=s}return e.prototype.toString=function(){return i.formatTag(this,this.content)},e}(),t.EndTagToken=function(){function e(t,o){r(this,e),this.type="endTag",this.length=o,this.text="",this.tagName=t}return e.prototype.toString=function(){return"</"+this.tagName+">"},e}()},function(e,t){"use strict";function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e?e.replace(/([^"]*)"/g,function(e,t){return/\\/.test(t)?t+'"':t+'\\"'}):t}t.__esModule=!0,t.escapeQuotes=o},function(e,t){"use strict";function o(e){return e&&"startTag"===e.type&&(e.unary=a.test(e.tagName)||e.unary,e.html5Unary=!/\/>$/.test(e.text)),e}function r(e,t){var r=e.stream,n=o(t());return e.stream=r,n}function n(e,t){var o=t.pop();e.prepend("</"+o.tagName+">")}function i(){var e=[];return e.last=function(){return this[this.length-1]},e.lastTagNameEq=function(e){var t=this.last();return t&&t.tagName&&t.tagName.toUpperCase()===e.toUpperCase()},e.containsTagName=function(e){for(var t,o=0;t=this[o];o++)if(t.tagName===e)return!0;return!1},e}function s(e,t,s){function a(){var t=r(e,s);t&&p[t.type]&&p[t.type](t)}var d=i(),p={startTag:function(o){var r=o.tagName;"TR"===r.toUpperCase()&&d.lastTagNameEq("TABLE")?(e.prepend("<TBODY>"),a()):t.selfCloseFix&&c.test(r)&&d.containsTagName(r)?d.lastTagNameEq(r)?n(e,d):(e.prepend("</"+o.tagName+">"),a()):o.unary||d.push(o)},endTag:function(o){d.last()?t.tagSoupFix&&!d.lastTagNameEq(o.tagName)?n(e,d):d.pop():t.tagSoupFix&&(s(),a())}};return function(){return a(),o(s())}}t.__esModule=!0,t.default=s;var a=/^(AREA|BASE|BASEFONT|BR|COL|FRAME|HR|IMG|INPUT|ISINDEX|LINK|META|PARAM|EMBED)$/i,c=/^(COLGROUP|DD|DT|LI|OPTIONS|P|TD|TFOOT|TH|THEAD|TR)$/i}])}()}()},function(e,t){"use strict";function o(e){return void 0!==e&&null!==e}function r(e){return"function"==typeof e}function n(e,t,o){var r=void 0,n=e&&e.length||0;for(r=0;r<n;r++)t.call(o,e[r],r)}function i(e,t,o){for(var r in e)e.hasOwnProperty(r)&&t.call(o,r,e[r])}function s(e,t){return e=e||{},i(t,function(t,r){o(e[t])||(e[t]=r)}),e}function a(e){try{return Array.prototype.slice.call(e)}catch(o){var t=function(){var t=[];return n(e,function(e){t.push(e)}),{v:t}}();if("object"===(void 0===t?"undefined":u(t)))return t.v}}function c(e){return e[e.length-1]}function d(e,t){return!(!e||"startTag"!==e.type&&"atomicTag"!==e.type||!("tagName"in e)||!~e.tagName.toLowerCase().indexOf(t))}function p(e){return d(e,"script")}function l(e){return d(e,"style")}t.__esModule=!0;var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.existy=o,t.isFunction=r,t.each=n,t.eachKey=i,t.defaults=s,t.toArray=a,t.last=c,t.isTag=d,t.isScript=p,t.isStyle=l}])}),function(e){var t={common:{init:function(){"use strict";function t(e,t){try{jQuery().gdpr_cookie_compliance_analytics(e,t)}catch(e){}}function o(){var o=d("moove_gdpr_popup"),r={};return r.strict="0",r.thirdparty="0",r.advanced="0",o&&(o=JSON.parse(o),r.strict=o.strict,r.thirdparty=o.thirdparty,r.advanced=o.advanced,i(r),t("script_inject",o)),"1"!==moove_frontend_gdpr_scripts.strict_init&&e(document).find("iframe[data-gdpr-iframesrc]").each(function(){e(this).attr("src",e(this).attr("data-gdpr-iframesrc"))}),r}function r(e){c("moove_gdpr_popup",JSON.stringify({strict:"1",thirdparty:"1",advanced:"1"}),365),n("enabled-all"),t("accept_all","")}function n(t){var r=!1;try{void 0!==moove_frontend_gdpr_scripts.force_reload&&"true"===moove_frontend_gdpr_scripts.force_reload&&(r=!0)}catch(e){}var n=o(),i=moove_frontend_gdpr_scripts.enabled_default.third_party,a=moove_frontend_gdpr_scripts.enabled_default.advanced;if(document.cookie.indexOf("moove_gdpr_popup")>=0||1==i||1==a){d("moove_gdpr_popup");1==i&&(f.strict=1,f.thirdparty=i),1==a&&(f.strict=1,f.advanced=a),f&&(parseInt(n.strict)-parseInt(f.strict)<0&&(r=!0),parseInt(n.thirdparty)-parseInt(f.thirdparty)<0&&(r=!0),parseInt(n.advanced)-parseInt(f.advanced)<0&&(r=!0))}if(r)location.reload(!0);else{p(d("moove_gdpr_popup")),s(),e("#moove_gdpr_save_popup_settings_button").show()}}function i(t){t&&(1===parseInt(t.strict)?e("#moove_gdpr_strict_cookies").is(":checked")||(e("#moove_gdpr_strict_cookies").click(),e("#third_party_cookies fieldset").removeClass("fl-disabled"),e("#moove_gdpr_performance_cookies").prop("disabled",!1),e("#third_party_cookies .moove-gdpr-strict-secondary-warning-message").slideUp(),e("#advanced-cookies fieldset").removeClass("fl-disabled"),e("#advanced-cookies .moove-gdpr-strict-secondary-warning-message").slideUp(),e("#moove_gdpr_advanced_cookies").prop("disabled",!1)):e("#moove_gdpr_strict_cookies").is(":checked")&&(e("#moove_gdpr_strict_cookies").click().prop("checked",!0),e("#third_party_cookies fieldset").addClass("fl-disabled").closest(".moove-gdpr-status-bar").removeClass("checkbox-selected"),e("#moove_gdpr_performance_cookies").prop("disabled",!0).prop("checked",!1),e("#advanced-cookies fieldset").addClass("fl-disabled").closest(".moove-gdpr-status-bar").removeClass("checkbox-selected"),e("#moove_gdpr_advanced_cookies").prop("disabled",!0).prop("checked",!1)),1===parseInt(t.thirdparty)?e("#moove_gdpr_performance_cookies").is(":checked")||e("#moove_gdpr_performance_cookies").click():e("#moove_gdpr_performance_cookies").is(":checked")&&e("#moove_gdpr_performance_cookies").click(),1===parseInt(t.advanced)?e("#moove_gdpr_advanced_cookies").is(":checked")||e("#moove_gdpr_advanced_cookies").click():e("#moove_gdpr_advanced_cookies").is(":checked")&&e("#moove_gdpr_advanced_cookies").click(),e('input[data-name="moove_gdpr_performance_cookies"]').prop("checked",e("#moove_gdpr_performance_cookies").is(":checked")),e('input[data-name="moove_gdpr_strict_cookies"]').prop("checked",e("#moove_gdpr_strict_cookies").is(":checked")),e('input[data-name="moove_gdpr_advanced_cookies"]').prop("checked",e("#moove_gdpr_advanced_cookies").is(":checked")))}function s(){e("#moove_gdpr_cookie_info_bar").length>0&&(e("#moove_gdpr_cookie_info_bar").addClass("moove-gdpr-info-bar-hidden"),e("body").removeClass("gdpr-infobar-visible"))}function a(){if(void 0!==moove_frontend_gdpr_scripts.display_cookie_banner){if("true"===moove_frontend_gdpr_scripts.display_cookie_banner)e("#moove_gdpr_cookie_info_bar").length>0&&(e("#moove_gdpr_cookie_info_bar").removeClass("moove-gdpr-info-bar-hidden"),e("#moove_gdpr_save_popup_settings_button:not(.button-visible)").hide(),e("body").addClass("gdpr-infobar-visible"),t("show_infobar",""));else if(e("#moove_gdpr_cookie_info_bar").length>0){e("#moove_gdpr_cookie_info_bar").addClass("moove-gdpr-info-bar-hidden"),e("body").removeClass("gdpr-infobar-visible");var o={strict:1,thirdparty:1,advanced:1};p(JSON.stringify(o))}}else e("#moove_gdpr_cookie_info_bar").length>0&&(e("#moove_gdpr_cookie_info_bar").removeClass("moove-gdpr-info-bar-hidden"),e("#moove_gdpr_save_popup_settings_button:not(.button-visible)").hide(),e("body").addClass("gdpr-infobar-visible"),t("show_infobar",""))}function c(e,t,o){var r;if(o){var n=new Date;n.setTime(n.getTime()+24*o*60*60*1e3),r="; expires="+n.toGMTString()}else r="";document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)+r+"; path=/",JSON.parse(t)}function d(e){for(var t=encodeURIComponent(e)+"=",o=document.cookie.split(";"),r=0;r<o.length;r++){for(var n=o[r];" "===n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(t))return decodeURIComponent(n.substring(t.length,n.length))}return null}function p(r){if(f=o(),r){var n=r;r=JSON.parse(r);o();if(!1!==m){var i=JSON.parse(m);1===parseInt(i.thirdparty)&&1===parseInt(r.thirdparty)&&(r.thirdparty="0"),1===parseInt(i.advanced)&&1===parseInt(r.advanced)&&(r.advanced="0")}t("script_inject",r),h=!0,1===parseInt(r.strict)&&e(document).find("iframe[data-gdpr-iframesrc]").each(function(){e(this).attr("src",e(this).attr("data-gdpr-iframesrc"))}),e.post(moove_frontend_gdpr_scripts.ajaxurl,{action:"moove_gdpr_get_scripts",strict:r.strict,thirdparty:r.thirdparty,advanced:r.advanced},function(t){m=n;var o=JSON.parse(t);o.header&&postscribe(document.head,o.header),o.body&&e(o.body).prependTo(document.body),o.footer&&postscribe(document.body,o.footer)})}else a()}function l(){var t=!0;e("#moove_gdpr_cookie_modal").find("input[type=checkbox]").each(function(){e(this).is(":checked")||(t=!1)}),t?e(".moove-gdpr-button-holder .moove-gdpr-modal-allow-all").hide().removeClass("button-visible"):e(".moove-gdpr-button-holder .moove-gdpr-modal-save-settings").is(":visible")?e(".moove-gdpr-button-holder .moove-gdpr-modal-allow-all").hide().removeClass("button-visible"):e(".moove-gdpr-button-holder .moove-gdpr-modal-allow-all").show().addClass("button-visible")}function u(){for(var e=document.cookie.split("; "),t=0;t<e.length;t++)for(var o=window.location.hostname.split(".");o.length>0;){var r=encodeURIComponent(e[t].split(";")[0].split("=")[0])+"=; expires=Thu, 01-Jan-1970 00:00:01 GMT; domain="+o.join(".")+" ; path=",n=location.pathname.split("/");for(document.cookie=r+"/";n.length>0;)document.cookie=r+n.join("/"),n.pop();o.shift()}}function _(){var t=d("moove_gdpr_popup");u();var o="0",r="0",n="0",i=!1;t&&(t=JSON.parse(t),o=t.strict,r=t.advanced,n=t.thirdparty),e("#moove_gdpr_strict_cookies").length>0?e("#moove_gdpr_strict_cookies").is(":checked")?(o="1",i=!0):o="0":(i=!0,o="1"),e("#moove_gdpr_performance_cookies").is(":checked")?(n="1",i=!0):n="0",e("#moove_gdpr_advanced_cookies").is(":checked")?(r="1",i=!0):r="0",!t&&i?(c("moove_gdpr_popup",JSON.stringify({strict:o,thirdparty:n,advanced:r}),365),s(),e("#moove_gdpr_save_popup_settings_button").show()):t&&c("moove_gdpr_popup",JSON.stringify({strict:o,thirdparty:n,advanced:r}),365);var t=d("moove_gdpr_popup");t&&(t=JSON.parse(t),"0"==t.strict&&"0"==t.advanced&&"0"==t.thirdparty&&u())}e(document).on("click","#moove_gdpr_cookie_info_bar .moove-gdpr-infobar-reject-btn",function(t){t.preventDefault(),c("moove_gdpr_popup",JSON.stringify({strict:"1",thirdparty:"0",advanced:"0"}),365),e("#moove_gdpr_cookie_info_bar").length>0&&(e("#moove_gdpr_cookie_info_bar").addClass("moove-gdpr-info-bar-hidden"),e("body").removeClass("gdpr-infobar-visible"),location.reload(!0))}),e.fn.moove_gdpr_read_cookies=function(e){var t=d("moove_gdpr_popup"),o={};return o.strict="0",o.thirdparty="0",o.advanced="0",t&&(t=JSON.parse(t),o.strict=t.strict,o.thirdparty=t.thirdparty,o.advanced=t.advanced),o};var f=o(),m=!1,h=!1;if(e.fn.moove_gdpr_save_cookie=function(o){var r=d("moove_gdpr_popup"),n=e(window).scrollTop();if(!r){if(o.thirdParty)var s="1";else var s="0";if(o.advanced)var a="1";else var a="0";if(o.scrollEnable){var p=o.scrollEnable;e(window).scroll(function(){!h&&e(this).scrollTop()-n>p&&("undefined"===o.thirdparty&&"undefined"===o.advanced||(c("moove_gdpr_popup",JSON.stringify({strict:"1",thirdparty:s,advanced:a}),365),r=JSON.parse(r),i(r)))})}else"undefined"===o.thirdparty&&"undefined"===o.advanced||(c("moove_gdpr_popup",JSON.stringify({strict:"1",thirdparty:s,advanced:a}),365),r=JSON.parse(r),i(r));r=d("moove_gdpr_popup"),r&&(r=JSON.parse(r),t("script_inject",r),h=!0,1===parseInt(r.strict)&&e(document).find("iframe[data-gdpr-iframesrc]").each(function(){e(this).attr("src",e(this).attr("data-gdpr-iframesrc"))}),jQuery.post(moove_frontend_gdpr_scripts.ajaxurl,{action:"moove_gdpr_get_scripts",strict:r.strict,thirdparty:r.thirdparty,advanced:r.advanced},function(t){var o=JSON.parse(t);o.header&&postscribe(document.head,o.header),o.body&&e(o.body).prependTo(document.body),o.footer&&postscribe(document.body,o.footer)}))}},"undefined"==typeof lity){var v=moove_frontend_gdpr_scripts.plugin_dir+"/dist/scripts/lity.js",g=moove_frontend_gdpr_scripts.plugin_dir+"/dist/styles/lity.css";postscribe(document.body,'<script src="'+v+'"><\/script>'),postscribe(document.head,'<link href="'+g+'" rel="stylesheet">')}var y="",k=!1;if(window.location.hash){var b=window.location.hash.substring(1);"moove_gdpr_cookie_modal"===b&&(k=!0,t("opened_modal_from_link",""),setTimeout(function(){y=lity("#moove_gdpr_cookie_modal"),e(".lity").addClass("moove_gdpr_cookie_modal_open"),e(document).moove_lity_open()},500))}if(window.location.hash){var b=window.location.hash.substring(1);"gdpr_cookie_modal"===b&&(k=!0,t("opened_modal_from_link",""),setTimeout(function(){y=lity("#moove_gdpr_cookie_modal"),e(".lity").addClass("moove_gdpr_cookie_modal_open"),e(document).moove_lity_open()},500))}!function(){var t=(location.pathname,e(window).scrollTop());e("#moove_gdpr_save_popup_settings_button").show();var r=moove_frontend_gdpr_scripts.enabled_default.third_party,n=moove_frontend_gdpr_scripts.enabled_default.advanced;if(void 0!==moove_frontend_gdpr_scripts.enable_on_scroll&&"true"===moove_frontend_gdpr_scripts.enable_on_scroll&&1!==parseInt(r)&&1!==parseInt(n)&&(r=1,n=1),document.cookie.indexOf("moove_gdpr_popup")>=0||1==r||1==n){var l=d("moove_gdpr_popup");if(l){var _=o();"0"==_.strict&&"0"==_.advanced&&"0"==_.thirdparty&&(u(),a())}else{var f=!1;if("undefined"!=typeof sessionStorage&&(f=sessionStorage.getItem("gdpr_session")),void 0!==moove_frontend_gdpr_scripts.enable_on_scroll&&"true"===moove_frontend_gdpr_scripts.enable_on_scroll)if(f)try{i(JSON.parse(f)),a(),h=!0,p(f)}catch(e){}else e(window).scroll(function(){if(!h&&e(this).scrollTop()-t>200){l={strict:1,thirdparty:r,advanced:n},d("moove_gdpr_popup")||"undefined"!=typeof sessionStorage&&((f=sessionStorage.getItem("gdpr_session"))||(sessionStorage.setItem("gdpr_session",JSON.stringify(l)),f=sessionStorage.getItem("gdpr_session")));try{i(l),l=JSON.stringify(l),a(),h=!0,p(l),void 0!==moove_frontend_gdpr_scripts.gdpr_aos_hide&&"true"===moove_frontend_gdpr_scripts.gdpr_aos_hide&&(c("moove_gdpr_popup",l,365),s())}catch(e){}}});else l={strict:1,thirdparty:r,advanced:n},i(l),l=JSON.stringify(l),a()}p(l)}else a()}(),e(document).on("click",'[data-href*="#moove_gdpr_cookie_modal"],[href*="#moove_gdpr_cookie_modal"]',function(o){o.preventDefault(),k=!0,y=lity("#moove_gdpr_cookie_modal"),e(".lity").addClass("moove_gdpr_cookie_modal_open"),e(document).moove_lity_open(),t("opened_modal_from_link","")}),e(document).on("click",'[data-href*="#gdpr_cookie_modal"],[href*="#gdpr_cookie_modal"]',function(o){o.preventDefault(),k=!0,y=lity("#moove_gdpr_cookie_modal"),e(".lity").addClass("moove_gdpr_cookie_modal_open"),e(document).moove_lity_open(),t("opened_modal_from_link","")}),e(document).on("click","#moove_gdpr_cookie_info_bar .moove-gdpr-close-modal-button a, #moove_gdpr_cookie_info_bar .moove-gdpr-close-modal-button button",function(e){e.preventDefault()}),e(document).on("click",".moove-gdpr-modal-close",function(t){t.preventDefault(),e(".lity .lity-close").click(),e(document).moove_lity_close()}),e(document).on("click","#moove-gdpr-menu .moove-gdpr-tab-nav",function(o){o.preventDefault(),o.stopPropagation(),e("#moove-gdpr-menu li").removeClass("menu-item-selected"),e(this).parent().addClass("menu-item-selected"),e(".moove-gdpr-tab-content .moove-gdpr-tab-main").hide(),e(e(this).attr("href")).show(),e(e(this).attr("data-href")).show(),t("clicked_to_tab",e(this).attr("data-href"))}),e(document).on("lity:close",function(t,o){e(document).moove_lity_close()}),e.fn.moove_lity_close=function(t){k&&(e("body").removeClass("moove_gdpr_overflow"),k=!1)},e.fn.moove_lity_open=function(t){if(k){e("body").addClass("moove_gdpr_overflow");var o=d("moove_gdpr_popup");e(".moove-gdpr-status-bar input[type=checkbox]").each(function(){e(this).is(":checked")?e(this).closest(".moove-gdpr-tab-main").find(".moove-gdpr-strict-warning-message").slideUp():e(this).closest(".moove-gdpr-tab-main").find(".moove-gdpr-strict-warning-message").slideDown()}),o&&(o=JSON.parse(o),i(o)),e(".moove-gdpr-modal-save-settings").hide().removeClass("button-visible"),l()}},e(document).on("lity:open",function(t,o){e(document).moove_lity_open()}),e(document).on("click",".fl-disabled",function(t){e("#moove_gdpr_cookie_modal .moove-gdpr-modal-content").is(".moove_gdpr_modal_theme_v2")?(e("#moove_gdpr_strict_cookies").click(),e(this).click()):e(this).closest(".moove-gdpr-tab-main-content").find(".moove-gdpr-strict-secondary-warning-message").slideDown()}),e(document).on("change",".moove-gdpr-status-bar input[type=checkbox]",function(t){e(".moove-gdpr-modal-save-settings").show().addClass("button-visible"),e(".moove-gdpr-modal-allow-all").hide().removeClass("button-visible");var o=e(this).closest(".moove-gdpr-tab-main").attr("id");e(this).closest(".moove-gdpr-status-bar").toggleClass("checkbox-selected"),e(this).closest(".moove-gdpr-tab-main").toggleClass("checkbox-selected"),e("#moove-gdpr-menu .menu-item-"+o).toggleClass("menu-item-off"),e(this).is(":checked")?e(this).closest(".moove-gdpr-tab-main").find(".moove-gdpr-strict-warning-message").slideUp():e(this).closest(".moove-gdpr-tab-main").find(".moove-gdpr-strict-warning-message").slideDown(),e(this).is("#moove_gdpr_strict_cookies")&&(e(this).is(":checked")?(e("#third_party_cookies fieldset").removeClass("fl-disabled"),e("#moove_gdpr_performance_cookies").prop("disabled",!1),e("#third_party_cookies .moove-gdpr-strict-secondary-warning-message").slideUp(),e("#advanced-cookies fieldset").removeClass("fl-disabled"),e("#advanced-cookies .moove-gdpr-strict-secondary-warning-message").slideUp(),e("#moove_gdpr_advanced_cookies").prop("disabled",!1)):(e(".gdpr_cookie_settings_shortcode_content").find("input").each(function(){e(this).prop("checked",!1)}),
2
+ e("#third_party_cookies fieldset").addClass("fl-disabled").closest(".moove-gdpr-status-bar").removeClass("checkbox-selected"),e("#moove_gdpr_performance_cookies").prop("disabled",!0).prop("checked",!1),e("#advanced-cookies fieldset").addClass("fl-disabled").closest(".moove-gdpr-status-bar").removeClass("checkbox-selected"),e("#moove_gdpr_advanced_cookies").prop("disabled",!0).prop("checked",!1))),e('input[data-name="'+e(this).attr("name")+'"]').prop("checked",e(this).is(":checked")),l()}),e(document).on("click",".gdpr_cookie_settings_shortcode_content a.gdpr-shr-save-settings",function(t){t.preventDefault(),_(),e(".lity .lity-close").click(),e(document).moove_lity_close(),n("modal-save-settings")}),e(document).on("change",".gdpr_cookie_settings_shortcode_content input[type=checkbox]",function(t){var o=e(this).attr("data-name"),r=e("#"+o);e(this).is(":checked")?(e('input[data-name="'+o+'"]').prop("checked",!0),"moove_gdpr_strict_cookies"!==e(this).attr("data-name")&&(e(this).closest(".gdpr_cookie_settings_shortcode_content").find('input[data-name="moove_gdpr_strict_cookies"]').is(":checked")||(e('input[data-name="'+o+'"]').prop("checked",!1),e('.gdpr_cookie_settings_shortcode_content input[data-name="moove_gdpr_strict_cookies"]').closest(".gdpr-shr-switch").css("transform","scale(1.2)"),setTimeout(function(){e('.gdpr_cookie_settings_shortcode_content input[data-name="moove_gdpr_strict_cookies"]').closest(".gdpr-shr-switch").css("transform","scale(1)")},300)))):(e('input[data-name="'+o+'"]').prop("checked",e(this).is(":checked")),"moove_gdpr_strict_cookies"===e(this).attr("data-name")&&e(".gdpr_cookie_settings_shortcode_content").find('input[type="checkbox"]').prop("checked",!1)),r.click()}),e(document).on("click",".moove-gdpr-modal-allow-all",function(t){t.preventDefault(),e("#moove_gdpr_cookie_modal").find("input[type=checkbox]").each(function(){var t=e(this);t.is(":checked")||t.click()}),r("enable_all enable-all-button"),e(".lity .lity-close").click(),s(),_(),e(document).moove_lity_close()}),e(document).on("click",".moove-gdpr-infobar-allow-all",function(e){e.preventDefault(),r("enable_all allow-btn")}),e(document).on("click",".moove-gdpr-modal-save-settings",function(t){t.preventDefault(),_(),e(".lity .lity-close").click(),e(document).moove_lity_close(),n("modal-save-settings")})},finalize:function(){}}},o={fire:function(e,o,r){var n,i=t;o=void 0===o?"init":o,n=""!==e,n=n&&i[e],(n=n&&"function"==typeof i[e][o])&&i[e][o](r)},loadEvents:function(){void 0!==moove_frontend_gdpr_scripts.geo_location&&"true"===moove_frontend_gdpr_scripts.geo_location?jQuery.post(moove_frontend_gdpr_scripts.ajaxurl,{action:"moove_gdpr_localize_scripts"},function(e){var t=JSON.parse(e);void 0!==t.display_cookie_banner&&(moove_frontend_gdpr_scripts.display_cookie_banner=t.display_cookie_banner),void 0!==t.enabled_default&&(moove_frontend_gdpr_scripts.enabled_default=t.enabled_default),o.fire("common")}):o.fire("common"),e.each(document.body.className.replace(/-/g,"_").split(/\s+/),function(e,t){o.fire(t),o.fire(t,"finalize")}),o.fire("common","finalize")}};e(document).ready(o.loadEvents)}(jQuery);
moove-actions.php CHANGED
@@ -208,6 +208,7 @@ class Moove_GDPR_Actions {
208
  $modal_options = get_option( $option_name );
209
  $force_reload = apply_filters( 'gdpr_force_reload', false );
210
  $force_reload = $force_reload ? 'true' : 'false';
 
211
  $loc_data = array(
212
  'ajaxurl' => admin_url( 'admin-ajax.php' ),
213
  'post_id' => get_the_ID(),
@@ -218,6 +219,7 @@ class Moove_GDPR_Actions {
218
  'third_party' => isset( $modal_options['moove_gdpr_third_party_cookies_enable_first_visit'] ) && intval( $modal_options['moove_gdpr_third_party_cookies_enable_first_visit'] ) ? intval( $modal_options['moove_gdpr_third_party_cookies_enable_first_visit'] ) : 0,
219
  'advanced' => isset( $modal_options['moove_gdpr_advanced_cookies_enable_first_visit'] ) && intval( $modal_options['moove_gdpr_advanced_cookies_enable_first_visit'] ) ? intval( $modal_options['moove_gdpr_advanced_cookies_enable_first_visit'] ) : 0,
220
  ),
 
221
  'force_reload' => $force_reload,
222
  'is_single' => is_single(),
223
  'current_user' => get_current_user_id(),
@@ -271,6 +273,9 @@ class Moove_GDPR_Actions {
271
  add_action( 'wp_ajax_moove_gdpr_get_scripts', array( 'Moove_GDPR_Controller', 'moove_gdpr_get_scripts' ) );
272
  add_action( 'wp_ajax_nopriv_moove_gdpr_get_scripts', array( 'Moove_GDPR_Controller', 'moove_gdpr_get_scripts' ) );
273
 
 
 
 
274
  add_action( 'wp_ajax_moove_gdpr_remove_php_cookies', array( 'Moove_GDPR_Controller', 'moove_gdpr_remove_php_cookies' ) );
275
  add_action( 'wp_ajax_nopriv_moove_gdpr_remove_php_cookies', array( 'Moove_GDPR_Controller', 'moove_gdpr_remove_php_cookies' ) );
276
 
208
  $modal_options = get_option( $option_name );
209
  $force_reload = apply_filters( 'gdpr_force_reload', false );
210
  $force_reload = $force_reload ? 'true' : 'false';
211
+ $geo_location_enabled = isset( $modal_options['moove_gdpr_geolocation_eu'] ) && intval( $modal_options['moove_gdpr_geolocation_eu'] ) === 1 ? 'true' : 'false';
212
  $loc_data = array(
213
  'ajaxurl' => admin_url( 'admin-ajax.php' ),
214
  'post_id' => get_the_ID(),
219
  'third_party' => isset( $modal_options['moove_gdpr_third_party_cookies_enable_first_visit'] ) && intval( $modal_options['moove_gdpr_third_party_cookies_enable_first_visit'] ) ? intval( $modal_options['moove_gdpr_third_party_cookies_enable_first_visit'] ) : 0,
220
  'advanced' => isset( $modal_options['moove_gdpr_advanced_cookies_enable_first_visit'] ) && intval( $modal_options['moove_gdpr_advanced_cookies_enable_first_visit'] ) ? intval( $modal_options['moove_gdpr_advanced_cookies_enable_first_visit'] ) : 0,
221
  ),
222
+ 'geo_location' => $geo_location_enabled,
223
  'force_reload' => $force_reload,
224
  'is_single' => is_single(),
225
  'current_user' => get_current_user_id(),
273
  add_action( 'wp_ajax_moove_gdpr_get_scripts', array( 'Moove_GDPR_Controller', 'moove_gdpr_get_scripts' ) );
274
  add_action( 'wp_ajax_nopriv_moove_gdpr_get_scripts', array( 'Moove_GDPR_Controller', 'moove_gdpr_get_scripts' ) );
275
 
276
+ add_action( 'wp_ajax_moove_gdpr_localize_scripts', array( 'Moove_GDPR_Controller', 'moove_gdpr_localize_scripts' ) );
277
+ add_action( 'wp_ajax_nopriv_moove_gdpr_localize_scripts', array( 'Moove_GDPR_Controller', 'moove_gdpr_localize_scripts' ) );
278
+
279
  add_action( 'wp_ajax_moove_gdpr_remove_php_cookies', array( 'Moove_GDPR_Controller', 'moove_gdpr_remove_php_cookies' ) );
280
  add_action( 'wp_ajax_nopriv_moove_gdpr_remove_php_cookies', array( 'Moove_GDPR_Controller', 'moove_gdpr_remove_php_cookies' ) );
281
 
moove-content.php CHANGED
@@ -35,6 +35,12 @@ class Moove_GDPR_Content {
35
  return $_content;
36
  }
37
 
 
 
 
 
 
 
38
  /**
39
  * Strict Necessary Tab Content
40
  *
35
  return $_content;
36
  }
37
 
38
+ public static function moove_gdpr_get_localize_scripts() {
39
+ $loc_data = array();
40
+ $gdpr_loc_data = apply_filters( 'gdpr_extend_loc_data', $loc_data );
41
+ return $gdpr_loc_data;
42
+ }
43
+
44
  /**
45
  * Strict Necessary Tab Content
46
  *
moove-gdpr.php CHANGED
@@ -6,7 +6,7 @@ if ( ! defined( 'ABSPATH' ) ) { exit; } // Exit if accessed directly
6
  * Plugin Name: GDPR Cookie Compliance
7
  * Plugin URI: https://wordpress.org/plugins/gdpr-cookie-compliance/
8
  * Description: GDPR is an EU wide legislation that specifies how user data should be handled. This plugin has settings that can assist you with GDPR cookie compliance requirements.
9
- * Version: 3.0.1
10
  * Author: Moove Agency
11
  * Domain Path: /languages
12
  * Author URI: https://www.mooveagency.com
@@ -15,7 +15,7 @@ if ( ! defined( 'ABSPATH' ) ) { exit; } // Exit if accessed directly
15
  */
16
 
17
 
18
- define( 'MOOVE_GDPR_VERSION', '3.0.1' );
19
  if ( ! defined( 'MOOVE_SHOP_URL' ) ) :
20
  define( 'MOOVE_SHOP_URL', 'https://shop.mooveagency.com' );
21
  endif;
6
  * Plugin Name: GDPR Cookie Compliance
7
  * Plugin URI: https://wordpress.org/plugins/gdpr-cookie-compliance/
8
  * Description: GDPR is an EU wide legislation that specifies how user data should be handled. This plugin has settings that can assist you with GDPR cookie compliance requirements.
9
+ * Version: 3.0.2
10
  * Author: Moove Agency
11
  * Domain Path: /languages
12
  * Author URI: https://www.mooveagency.com
15
  */
16
 
17
 
18
+ define( 'MOOVE_GDPR_VERSION', '3.0.2' );
19
  if ( ! defined( 'MOOVE_SHOP_URL' ) ) :
20
  define( 'MOOVE_SHOP_URL', 'https://shop.mooveagency.com' );
21
  endif;
readme.txt CHANGED
@@ -182,6 +182,9 @@ THIS PLUGIN DOES NOT MAKE YOUR WEBSITE COMPLIANT. YOU ARE RESPONSIBLE FOR ENSURI
182
 
183
  == Changelog ==
184
 
 
 
 
185
  = 3.0.1 =
186
  * Fixed missing method issue.
187
 
182
 
183
  == Changelog ==
184
 
185
+ = 3.0.2 =
186
+ * Caching plugin conflicts handled
187
+
188
  = 3.0.1 =
189
  * Fixed missing method issue.
190