OwlCyberSecurity - MANAGER
Edit File: sp-scripts.min.js
"use strict";function _typeof(e){return(_typeof="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})(e)}!function(e,t){var r,i;"object"==("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self,r=e.Cookies,(i=e.Cookies=t()).noConflict=function(){return e.Cookies=r,i})}(void 0,function(){function o(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)e[i]=r[i]}return e}var u={read:function(e){return e.replace(/%3B/g,";")},write:function(e){return e.replace(/;/g,"%3B")}};return function t(s,a){function r(e,t,r){if("undefined"!=typeof document){"number"==typeof(r=o({},a,r)).expires&&(r.expires=new Date(Date.now()+864e5*r.expires)),r.expires&&(r.expires=r.expires.toUTCString()),e=u.write(e).replace(/=/g,"%3D"),t=s.write(String(t),e);var i="";for(var n in r)r[n]&&(i+="; "+n,!0!==r[n]&&(i+="="+r[n].split(";")[0]));return document.cookie=e+"="+t+i}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],r={},i=0;i<t.length;i++){var n=t[i].split("="),a=n.slice(1).join("="),o=u.read(n[0]).replace(/%3D/g,"=");if(r[o]=s.read(a,o),e===o)break}return e?r[e]:r}},remove:function(e,t){r(e,"",o({},t,{expires:-1}))},withAttributes:function(e){return t(this.converter,o({},this.attributes,e))},withConverter:function(e){return t(o({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(a)},converter:{value:Object.freeze(s)}})}(u,{path:"/"})});var seedprodCookies=Cookies.noConflict(),sp_emplacementRecaptcha=[],sp_option_id="";jQuery("form[id^=sp-optin-form]").submit(function(e){e.preventDefault();var t=jQuery(this).attr("id").replace("sp-optin-form-","");if(1===seeprod_enable_recaptcha)grecaptcha.execute(sp_emplacementRecaptcha[t]);else{sp_send_request("",t)}});var sp_CaptchaCallback=function(){jQuery("div[id^=recaptcha-]").each(function(e,t){sp_option_id=t.id.replace("recaptcha-",""),sp_emplacementRecaptcha[sp_option_id]=grecaptcha.render(t,{sitekey:"6LdfOukUAAAAAMCOEFEZ9WOSKyoYrxJcgXsf66Xr",badge:"bottomright",type:"image",size:"invisible",callback:function(e){sp_send_request(e,sp_option_id)}})})};function sp_send_request(e,n){var t=jQuery("#sp-optin-form-"+n).serialize(),r=jQuery.ajax({url:seedprod_api_url+"subscribers",type:"post",dataType:"json",timeout:5e3,data:t});jQuery("#sp-optin-form-"+n+" .sp-optin-submit").addClass("sp-ajax-striped sp-ajax-animated");var i=jQuery.ajax({url:sp_subscriber_callback_url,type:"post",timeout:3e4,data:t});jQuery.when(r,i).done(function(e,t){var r=jQuery("#sp-optin-form-"+n+" input[name^='seedprod_action']").val();if("1"==r&&(jQuery("#sp-optin-form-"+n).hide(),jQuery("#sp-optin-success-"+n).show()),"2"===r){var i=jQuery("#sp-optin-form-"+n+" input[name^='redirect_url']").val();window.location.href=i}jQuery("#sp-optin-form-"+n+" .sp-optin-submit").removeClass("sp-ajax-striped sp-ajax-animated")}).fail(function(e,t,r){jQuery("#sp-optin-form-"+n+" .sp-optin-submit").removeClass("sp-ajax-striped sp-ajax-animated"),1===seeprod_enable_recaptcha&&grecaptcha.reset(sp_emplacementRecaptcha[n])})}var x=[];function countdown(e,o,s,u,c){var t=(new Date).getTime();if("vt"==e){o+=t;var r=seedprodCookies.get("seedprod_enddate_"+s);null!=r?o=r:seedprodCookies.set("seedprod_enddate_"+s,o,{expires:360})}x[s]=setInterval(function(){var e=(new Date).getTime(),t=o-e,r=Math.floor(t/864e5),i=Math.floor(t%864e5/36e5),n=Math.floor(t%36e5/6e4),a=Math.floor(t%6e4/1e3);0==r?jQuery("#sp-cd-days-"+s).hide():jQuery("#sp-cd-days-"+s+" .sp-cd-amount").html(pad(r,2)),jQuery("#sp-cd-hours-"+s+" .sp-cd-amount").html(pad(i,2)),jQuery("#sp-cd-minutes-"+s+" .sp-cd-amount").html(pad(n,2)),jQuery("#sp-cd-seconds-"+s+" .sp-cd-amount").html(pad(a,2)),t<0&&(clearInterval(x[s]),"1"==u&&(jQuery("#sp-countdown-"+s+" .sp-countdown-group").hide(),jQuery("#sp-countdown-expired-"+s).show()),"2"==u&&(jQuery("#sp-countdown-"+s+" .sp-countdown-group").hide(),window.location.href=c))},1e3)}function seedprod_animatedheadline(e,t,r,i){"true"==t&&window.setInterval(function(){jQuery("#sp-animated-head-"+e+" .sp-title-highlight .sp-title--headline.sp-animated").addClass("sp-hide-highlight"),setTimeout(function(){jQuery("#sp-animated-head-"+e+" .sp-title-highlight .sp-title--headline.sp-animated").removeClass("sp-hide-highlight")},200)},i)}function seedprod_rotateheadline(e,t,r){jQuery("#sp-animated-head-"+e+" .preview-sp-title").seedprod_responsive_title_shortcode()}function pad(e,t,r){return r=r||"0",(e+="").length>=t?e:new Array(t-e.length+1).join(r)+e}function seedprod_escapeHtml(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function seedprod_bg_slideshow(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:5e3,i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:"ease-in",n=4<arguments.length&&void 0!==arguments[4]?arguments[4]:500;document.querySelector(e).style.backgroundSize="cover",document.querySelector(e).style.backgroundRepeat="no-repeat",document.querySelector(e).style.backgroundPosition="center center";var a="all "+n+"ms "+i;document.querySelector(e).style.WebkitTransition=a,document.querySelector(e).style.MozTransition=a,document.querySelector(e).style.MsTransition=a,document.querySelector(e).style.OTransition=a,document.querySelector(e).style.transition=a;var o=0;document.querySelector(e).style.backgroundImage="url('"+t[o]+"')",o++,setInterval(function(){document.querySelector(e).style.backgroundImage="url('"+t[o]+"')",++o>=t.length&&(o=0)},r);var s=new Array;t.forEach(function(e,t){s[t]=new Image,s[t].src=e})}jQuery(document).ready(function(e){e('link[href*="/wp-content/themes/"]').remove()}),jQuery(document).ready(function(e){for(var t="{MM}/{dd}/{yyyy}",r=e("body").html().split("[#"),i=1;i<r.length;i++){var n=t,a=r[i].split("]")[0],o=a.split(":");n=1<o.length?o[1]:t;var s=Date.create(o[0]),u=new RegExp("\\[#"+a+"]","g");e("body *").replaceText(u,s.format(n))}e(".sp-dynamic-text").contents().unwrap()}),jQuery(document).ready(function(e){for(var t=e("body").html().split("[q:"),r=1;r<t.length;r++){var i="",n=t[r].split("]")[0],a=n.split("=");i=1<a.length?a[1]:"";var o=a[0],s=new RegExp("\\[q:"+n+"]","g"),u=new URLSearchParams(window.location.search).get(o);null!=u&&(i=u);var c=e("body").html().replace(s,seedprod_escapeHtml(i));e("body").html(c)}e(".sp-dynamic-text").contents().unwrap()}),jQuery(".sp-testimonial-nav button").click(function(){var e="#"+jQuery(this).parents(".sp-testimonials-wrapper").attr("id"),t=jQuery(e+" .sp-testimonial-nav button").index(this),r=0,i=jQuery(".sp-testimonial-wrapper",jQuery(this).parents(e));jQuery(i).each(function(e){1==jQuery(this).css("opacity")&&(r=e)});var n=jQuery(e+" .sp-testimonial-nav button").length-1,a=jQuery(e+" .sp-testimonial-nav button").eq(t).attr("data-index");0==t&&(0==r?r=i.length-1:r--),t==n&&(i.length-1==r?r=0:r++),i.css({opacity:0,height:"0",position:"absolute"}),jQuery(e+" .sp-testimonial-nav button[data-index]").css({opacity:.25}),void 0!==a?(r=a,jQuery(i).eq(r).css({opacity:1,height:"auto",position:"initial"}),jQuery(e+" .sp-testimonial-nav button").eq(t).css({opacity:1})):(jQuery(i).eq(r).css({opacity:1,height:"auto",position:"initial"}),jQuery(e+" .sp-testimonial-nav button").eq(r+1).css({opacity:1}))});var testimonial_timers={};function seedprod_twitterembedtimeline(t,r,i,n,a,o,s,u,c,p){twttr.ready(function(e){window.twttr.widgets.createTimeline({sourceType:"profile",screenName:r},document.getElementById("sp-twitterembedtimeline-preview-"+t),{showReplies:i,width:n,height:a,chrome:o,align:s,borderColor:u,theme:c,lang:p}).then(function(e){})})}function seedprod_twittertweetbutton(t,r,i,n,a,o,s,u){twttr.ready(function(e){window.twttr.widgets.createShareButton(r,document.getElementById("sp-twittertweetbutton-preview-"+t),{size:i,text:n,hashtags:a,via:o,related:s,lang:u})})}jQuery(".sp-testimonials-wrapper").each(function(e){var t="#"+jQuery(this).attr("id"),r=jQuery(this).attr("data-autoplay"),i=jQuery(this).attr("data-speed");i=""===i?5e3:1e3*parseInt(i),void 0!==r&&(testimonial_timers[t]=setInterval(function(){jQuery(t+" .sp-testimonial-nav button:last-child").trigger("click")},i))}),jQuery(".sp-testimonials-wrapper").hover(function(){var e="#"+jQuery(this).attr("id");clearInterval(testimonial_timers[e])}),jQuery(".sp-testimonials-wrapper").mouseleave(function(){var e="#"+jQuery(this).attr("id"),t=jQuery(this).attr("data-autoplay"),r=jQuery(this).attr("data-speed");r=""===r?5e3:1e3*parseInt(r),void 0!==t&&(testimonial_timers[e]=setInterval(function(){jQuery(e+" .sp-testimonial-nav button:last-child").trigger("click")},r))}),jQuery(".sp-imagecarousel-nav button").click(function(){var e="#"+jQuery(this).parents(".sp-imagecarousels-wrapper").attr("id"),t=jQuery(e+" .sp-imagecarousel-nav button").index(this),r=0,i=jQuery(".sp-imagecarousel-wrapper",jQuery(this).parents(e));jQuery(i).each(function(e){1==jQuery(this).css("opacity")&&(r=e)});var n=jQuery(e+" .sp-imagecarousel-nav button").length-1,a=jQuery(e+" .sp-imagecarousel-nav button").eq(t).attr("data-index");0==t&&(0==r?r=i.length-1:r--),t==n&&(i.length-1==r?r=0:r++),i.css({opacity:0,height:"0",position:"absolute"}),jQuery(e+" .sp-imagecarousel-nav button[data-index]").css({opacity:.25}),void 0!==a?(r=a,jQuery(i).eq(r).css({opacity:1,height:"auto",position:"initial"}),jQuery(e+" .sp-imagecarousel-nav button").eq(t).css({opacity:1})):(jQuery(i).eq(r).css({opacity:1,height:"auto",position:"initial"}),jQuery(e+" .sp-imagecarousel-nav button").eq(r+1).css({opacity:1}))});var imagecarousel_timers={};function PureDropdown(e){var t="seedprod-menu-active",r="role",i="aria-hidden",n=".menu-item a",a=window.hasOwnProperty&&window.hasOwnProperty("ontouchstart")?"touchstart":"mousedown",o=this;this._state=1,this.show=function(){0!==this._state&&(this._dropdownParent.classList.add(t),this._menu.setAttribute(i,!1),this._state=0)},this.hide=function(){1!==this._state&&(this._dropdownParent.classList.remove(t),this._menu.setAttribute(i,!0),this._link.focus(),this._state=1)},this.toggle=function(){this[1===this._state?"show":"hide"]()},this.halt=function(e){e.stopPropagation(),e.preventDefault()},this._dropdownParent=e,this._link=this._dropdownParent.querySelector(n),this._menu=this._dropdownParent.querySelector(".sub-menu"),this._firstMenuLink=this._menu.querySelector(n),this._link.setAttribute("aria-haspopup","true"),this._menu.setAttribute(r,"menu"),this._menu.setAttribute("aria-labelledby",this._link.getAttribute("id")),this._menu.setAttribute("aria-hidden","true"),[].forEach.call(this._menu.querySelectorAll("li"),function(e){e.setAttribute(r,"presentation")}),[].forEach.call(this._menu.querySelectorAll("a"),function(e){e.setAttribute(r,"menuitem")}),this._link.addEventListener("click",function(e){e.stopPropagation(),e.preventDefault(),o.toggle()}),document.addEventListener("keydown",function(e){var t,r,i,n,a;if(0===o._state&&!o._menu.querySelector(".menu-item-active"))if(t=o._menu.querySelector(":focus"),27===e.keyCode)o.halt(e),o.hide();else if(40===e.keyCode){for(o.halt(e),i=t?t.parentNode.nextSibling:null;i&&1!==i.nodeType;)i=i.nextSibling;a=i?i.querySelector(".menu-item a"):null,t?a&&a.focus():o._menu.querySelector(".menu-item a").focus()}else if(38===e.keyCode){for(o.halt(e),r=t?t.parentNode.previousSibling:null;r&&1!==r.nodeType;)r=r.previousSibling;n=r?r.querySelector(".menu-item a"):null,t?n&&n.focus():o._menu.querySelector(".menu-item:last-child .menu-item a").focus()}}),document.addEventListener(a,function(e){var t=e.target;t===o._link||o._menu.contains(t)||(o.hide(),o._link.blur())})}function initDropdowns(){for(var e=document.querySelectorAll(".menu-item-has-children"),t=0;t<e.length;t++)new PureDropdown(e[t])}jQuery(".sp-imagecarousels-wrapper").each(function(e){var t="#"+jQuery(this).attr("id"),r=jQuery(this).attr("data-autoplay"),i=jQuery(this).attr("data-speed");i=""===i?5e3:1e3*parseInt(i),void 0!==r&&(imagecarousel_timers[t]=setInterval(function(){jQuery(t+" .sp-imagecarousel-nav button:last-child").trigger("click")},i))}),jQuery(".sp-imagecarousels-wrapper").hover(function(){var e="#"+jQuery(this).attr("id");clearInterval(imagecarousel_timers[e])}),jQuery(".sp-imagecarousels-wrapper").mouseleave(function(){var e="#"+jQuery(this).attr("id"),t=jQuery(this).attr("data-autoplay"),r=jQuery(this).attr("data-speed");r=""===r?5e3:1e3*parseInt(r),void 0!==t&&(imagecarousel_timers[e]=setInterval(function(){jQuery(e+" .sp-imagecarousel-nav button:last-child").trigger("click")},r))}),jQuery(".hamburger").click(function(){jQuery(this).toggleClass("active"),jQuery(this).next(".nav-menu").toggleClass("active")});