PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /home/trave494/cheaptravel.live/wordpress/wp-content/plugins/complianz-gdpr/grid/js/
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
IP: 209.182.202.254
Choose File :

Url:
Dir : /home/trave494/cheaptravel.live/wordpress/wp-content/plugins/complianz-gdpr/grid/js/grid.min.js

jQuery(document).ready(function($){initGrid();function initGrid(){var grid=new Muuri(".cmplz-grid",{dragEnabled:true,dragStartPredicate:function(item,e){return e.target.className==="cmplz-grid-title"},dragSortHeuristics:{sortInterval:50,minDragDistance:10,minBounceBackAngle:1},dragPlaceholder:{enabled:false,duration:400,createElement:function(item){return item.getElement().cloneNode(true)}},dragReleaseDuration:400,dragReleaseEasing:"ease",layoutOnInit:true}).on("move",function(){saveLayout(grid)});var layout=window.localStorage.getItem("cmplz_layout");if(layout){loadLayout(grid,layout)}else{grid.layout(true)}saveLayout(grid)}function serializeLayout(grid){var itemIds=grid.getItems().map(function(item){return item.getElement().getAttribute("data-id")});return JSON.stringify(itemIds)}function saveLayout(grid){var layout=serializeLayout(grid);window.localStorage.setItem("cmplz_layout",layout)}function loadLayout(grid,serializedLayout){var layout=JSON.parse(serializedLayout);var currentItems=grid.getItems();$(".cmplz-grid-item").each(function(){var toggle_id=$(this).data("id");if(typeof toggle_id==="undefined")return;if(!layout.includes(toggle_id.toString()))layout.push(toggle_id.toString());if(localStorage.getItem("cmplz_toggle_data_id_"+toggle_id)===null){window.localStorage.setItem("cmplz_toggle_data_id_"+toggle_id,"checked")}if(window.localStorage.getItem("cmplz_toggle_data_id_"+toggle_id)==="checked"){$(this).addClass("muuri-active")}else{$(this).removeClass("muuri-active")}});var currentItemIds=currentItems.map(function(item){return item.getElement().getAttribute("data-id")});var newItems=[];var itemId;var itemIndex;for(var i=0;i<layout.length;i++){itemId=layout[i];itemIndex=currentItemIds.indexOf(itemId);if(itemIndex>-1){newItems.push(currentItems[itemIndex])}}try{grid.sort(newItems,{layout:"instant"});grid.filter(".muuri-active");grid.render()}catch(err){window.localStorage.removeItem("cmplz_layout")}}$(".cmplz-grid-item").each(function(){var toggle_id=$(this).data("id");if(!window.localStorage.getItem("cmplz_toggle_data_id_"+toggle_id)){window.localStorage.setItem("cmplz_toggle_data_id_"+toggle_id,"checked")}$("#cmplz_toggle_data_id_"+toggle_id).change(function(){if(document.getElementById("cmplz_toggle_data_id_"+toggle_id).checked){window.localStorage.setItem("cmplz_toggle_data_id_"+toggle_id,"checked")}else{window.localStorage.setItem("cmplz_toggle_data_id_"+toggle_id,"unchecked")}initGrid()})});var tab=window.location.hash.substr(1).replace("#top","");$("ul.tabs li").click(function(){var tab_id=$(this).attr("data-tab");$("ul.tabs li").removeClass("current");$(".tab-content").removeClass("current");$(this).addClass("current");$("#"+tab_id).addClass("current")});var href=$(".tab-"+tab).attr("href");if(typeof href!=="undefined"){if(href.indexOf("#"+tab)!==-1){$(".tab-"+tab)[0].click();window.location.href=href}}var cmplzFormValues=JSON.parse(localStorage.getItem("cmplzFormValues"))||{};var checkboxes=$("#cmplz-toggle-dashboard :checkbox");if(localStorage.getItem("cmplzDashboardDefaultsSet")===null){checkboxes.each(function(){cmplzFormValues[this.id]="checked"});localStorage.setItem("cmplzFormValues",JSON.stringify(cmplzFormValues));localStorage.setItem("cmplzDashboardDefaultsSet","set")}updateStorage();checkboxes.on("change",function(){updateStorage()});function updateStorage(){checkboxes.each(function(){cmplzFormValues[this.id]=this.checked});localStorage.setItem("cmplzFormValues",JSON.stringify(cmplzFormValues))}$.each(cmplzFormValues,function(key,value){$("#"+key).prop("checked",value)});$("#cmplz-toggle-dashboard").hide();$("#cmplz-show-toggles").click(function(){if($("#cmplz-toggle-dashboard").is(":visible")){$("#cmplz-toggle-dashboard").slideUp();$("#cmplz-toggle-arrows").attr("class","dashicons dashicons-arrow-down-alt2")}else{$("#cmplz-toggle-dashboard").slideDown();$("#cmplz-toggle-arrows").attr("class","dashicons dashicons-arrow-up-alt2")}})});