File: /var/www/clients/client64/web77/web/wp-content/plugins/complianz-gdpr/assets/js/dashboard.min.js
jQuery(document).ready(function(l){"use strict";l(document).on("click",".cmplz-dismiss-warning",function(){var c=l(this).data("warning_id"),s=l(this),t=(s.attr("disabled","disabled"),parseInt(l(".cmplz-task-switcher-count").html()),l(this).closest(".cmplz-progress-warning-container"));t.animate({position:"relative",right:"1000px"},500,function(){t.remove()}),l.ajax({type:"POST",url:complianz_admin.admin_url,dataType:"json",data:{action:"cmplz_dismiss_warning",id:c,nonce:complianz_admin.nonce},success:function(c){var t;s.removeAttr("disabled"),c.success&&(c=l(".cmplz-task-switcher-count.cmplz-remaining"),t=parseInt(c.html()),c.html(t-1),c=l(".cmplz-task-switcher-count.cmplz-all"),t=parseInt(c.html()),c.html(t-1))}})}),l(document).on("change","[name=cmplz_selected_region]",function(){var c,t,s,a={};a.region=l("#cmplz_selected_region").val(),a=a,c=l(this),t=c.closest(".cmplz-grid-container").data("template"),s=c.closest(".cmplz-grid-container").find(".cmplz-grid-content"),a.action="cmplz_load_gridblock",a.template=t,s.html('<div class="cmplz-skeleton"></div>'),l.ajax({type:"GET",url:complianz_admin.admin_url,dataType:"json",data:a,success:function(c){c.success&&s.html(c.html)}})}),l(document).on("click",".cmplz-task-switcher",function(){var t,c="remaining";l(this).find(".cmplz-task-switcher-count").hasClass("cmplz-all")&&(c="all"),l(".cmplz-"+c).closest(".cmplz-task-switcher").hasClass("active")||(t=l(this).closest(".cmplz-grid-container").find(".cmplz-grid-content"),"all"===c?(l(".cmplz-all").closest(".cmplz-task-switcher").addClass("active"),l(".cmplz-remaining").closest(".cmplz-task-switcher").removeClass("active")):(l(".cmplz-all").closest(".cmplz-task-switcher").removeClass("active"),l(".cmplz-remaining").closest(".cmplz-task-switcher").addClass("active")),t.html('<div class="cmplz-skeleton"></div>'),l.ajax({type:"GET",url:complianz_admin.admin_url,dataType:"json",data:{action:"cmplz_load_warnings",status:c},success:function(c){c.success&&(t.html(c.html),window.document.dispatchEvent(new Event("DOMContentLoaded",{bubbles:!0,cancelable:!0})))}}))}),l(".cmplz-trick a").hover(function(){l(this).find(".cmplz-bullet").css("background-color","#009fff")},function(){l(this).find(".cmplz-bullet").css("background-color","")})});