1var Mbm_Gdpr_Cookie_Manager=function(o){function t(e,o,t,n){n=n||"/";var a=new Date,t=(a.setDate(a.getDate()+t),"expires="+a.toUTCString());document.cookie=e+"="+o+";"+t+";path="+n+";"}function n(e){e+="=";for(var o=decodeURIComponent(document.cookie).split(";"),t=0;t<o.length;t++){var n=o[t].trim();if(0==n.indexOf(e))return n.substring(e.length,n.length)}return""}return{setCookie:t,getCookie:n,deleteCookie:function(e,o){o=o||"/",document.cookie=e+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path="+o+";"},doRun:function(){o(document).ready(function(){var e;"1"==n((setting=o.extend({accept_btn:".mbm-gdpr-cookie-btn",cookie_key:"mbm_gdpr_cookie",cookie_bar:"#mbm-eu_cookie_notify"},e)).cookie_key)?o(setting.cookie_bar).hide():(o(setting.cookie_bar).show(),o(document).on("click",setting.accept_btn,function(e){e.preventDefault(),t(setting.cookie_key,1,365,"/"),o(setting.cookie_bar).hide()}))})}}}(jQuery);function mbm_gdpr_run(){var d,o,e,t;(d=jQuery)(".MBM_Form").each(function(){var e,o=d(this);o.find(".load_gdpr").length&&(void 0!==mbm_fex.ui&&mbm_fex.ui.block.element(o,{message:"Loading form...",overlayCSS:{backgroundColor:"#000",opacity:.2,cursor:"wait"}}),setTimeout(function(){mbm_fex.ui.block.msg("Loading fields...")},500),e=o.find("input[name=MBM_Form_ID]").val(),d.ajax({method:"POST",url:mbm_fex.ajaxurl,data:{action:"mbm_gdpr_get_docset",form_id:e},dataType:"JSON",form:o}).done(function(e){e&&"OK"===e.status?(mbm_fex.ui.block.msg("Loaded"),o.find(".load_gdpr").addClass("loaded").append(e.html)):console.log(e),mbm_fex.ui.block.unblock(o)}))}),d(".load_gdpr_docset").length&&(e=(o=d(".load_gdpr_docset").closest("form")).find(".load_gdpr_docset").data("docset_id"),t=mbm_fex.ajaxurl,mbm_fex.ui.block.element(o,{message:"Loading form...",overlayCSS:{backgroundColor:"#000",opacity:.2,cursor:"wait"}}),setTimeout(function(){mbm_fex.ui.block.msg("Loading fields...")},500),d.ajax({method:"POST",url:t,data:{action:"mbm_gdpr_get_docset_by_id",docset_id:e},dataType:"JSON",form:o}).done(function(e){e&&"OK"===e.status?(mbm_fex.ui.block.msg("Loaded"),o.find(".load_gdpr_docset").html(e.html)):console.log(e),mbm_fex.ui.block.unblock(o)})),d(document).on("click",".preview_consent",function(e){e.preventDefault();var e=d(this).data("version_id"),t=d(this).html();d.ajax({url:mbm_fex.ajaxurl,type:"POST",data:{action:"get_document_by_version",version_id:e},title:t}).done(function(e){var o;e&&"OK"==e.status&&(o=d("#consent_popup").dialog({title:t,draggable:!1,height:"600",width:"80%",modal:!0,buttons:{Close:function(){o.dialog("close")}},close:function(){},open:function(){d(".consent_content").html(e.data)}}))})}),d(document).on("click",".button-unconsent",function(e){var a=d(this),i=(d(".withdraw-consent-message").html(""),d(".withdraw-consent-message").css("display","none"),d("#consent_popup").dialog({title:"Withdraw consent",draggable:!1,height:"200",width:"80%",modal:!0,buttons:{Yes:function(){i.dialog("close"),a.html('Withdrawing consent <i class="fa fa-spinner fa-spin"></i>');var e=a.data("form_id"),o=a.data("form_entry_id"),t=a.data("version_id"),n=a.data("doc_type_id");d.ajax({url:"undefined"!=typeof mbm_fex?mbm_fex.ajaxurl:"/wp-admin/admin-ajax.php",type:"POST",data:{action:"mbm_form_unconsented",form_id:e,form_entry_id:o,version_id:t,doc_type_id:n,nonce:a.data("nonce")}}).done(function(e){e&&"OK"==e.status?(a.text("Consent is withdrawn"),d(".withdraw-consent-message").html("<h3 style='color:green;' '>"+e.data+"</h3>"),d(".withdraw-consent-message").css("display","block"),d("#item-"+o+"-"+t+"-"+n).fadeOut("fast")):e&&"ERROR"==e.status&&(a.text("Withdraw"),d(".withdraw-consent-message").html("<h3 style='color:#ce0000;' '>"+e.data+"</h3>"),d(".withdraw-consent-message").css("display","block"))})},No:function(){i.dialog("close")}},close:function(){},open:function(){d(".consent_content").html("Are you sure, you want to withdraw consent for this form?")}}))})}function msgUI(e){jQuery(".blockMsg").html(e)}Mbm_Gdpr_Cookie_Manager.doRun(),mbm_gdpr_run();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.