balmet.com

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

sp-scripts.min.js (10450B)


      1 "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,n){function r(e,t,r){if("undefined"!=typeof document){"number"==typeof(r=o({},n,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 a in r)r[a]&&(i+="; "+a,!0!==r[a]&&(i+="="+r[a].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 a=t[i].split("="),n=a.slice(1).join("="),o=u.read(a[0]).replace(/%3D/g,"=");if(r[o]=s.read(n,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(n)},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,a){var t=jQuery("#sp-optin-form-"+a).serialize(),r=jQuery.ajax({url:seedprod_api_url+"subscribers",type:"post",dataType:"json",timeout:5e3,data:t});jQuery("#sp-optin-form-"+a+" .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-"+a+" input[name^='seedprod_action']").val();if("1"==r&&(jQuery("#sp-optin-form-"+a).hide(),jQuery("#sp-optin-success-"+a).show()),"2"===r){var i=jQuery("#sp-optin-form-"+a+" input[name^='redirect_url']").val();window.location.href=i}jQuery("#sp-optin-form-"+a+" .sp-optin-submit").removeClass("sp-ajax-striped sp-ajax-animated")}).fail(function(e,t,r){jQuery("#sp-optin-form-"+a+" .sp-optin-submit").removeClass("sp-ajax-striped sp-ajax-animated"),1===seeprod_enable_recaptcha&&grecaptcha.reset(sp_emplacementRecaptcha[a])})}var x=[];function countdown(e,o,s,u,p){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),a=Math.floor(t%36e5/6e4),n=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(a,2)),jQuery("#sp-cd-seconds-"+s+" .sp-cd-amount").html(pad(n,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=p))},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_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",a=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 n="all "+a+"ms "+i;document.querySelector(e).style.WebkitTransition=n,document.querySelector(e).style.MozTransition=n,document.querySelector(e).style.MsTransition=n,document.querySelector(e).style.OTransition=n,document.querySelector(e).style.transition=n;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("#sp-page").html().split("[#"),i=1;i<r.length;i++){var a=t,n=r[i].split("]")[0],o=n.split(":");a=1<o.length?o[1]:t;var s=Date.create(o[0]),u=new RegExp("\\[#"+n+"]","g");e("#sp-page *").replaceText(u,s.format(a))}e(".sp-dynamic-text").contents().unwrap()}),jQuery(document).ready(function(e){for(var t=e("#sp-page").html().split("[q:"),r=1;r<t.length;r++){var i="",a=t[r].split("]")[0],n=a.split("=");i=1<n.length?n[1]:"";var o=n[0],s=new RegExp("\\[q:"+a+"]","g"),u=new URLSearchParams(window.location.search).get(o);null!=u&&(i=u),e("#sp-page *").replaceText(s,i)}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 a=jQuery(e+" .sp-testimonial-nav button").length-1,n=jQuery(e+" .sp-testimonial-nav button").eq(t).attr("data-index");0==t&&(0==r?r=i.length-1:r--),t==a&&(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!==n?(r=n,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,a,n,o,s,u,p,c){twttr.ready(function(e){window.twttr.widgets.createTimeline({sourceType:"profile",screenName:r},document.getElementById("sp-twitterembedtimeline-preview-"+t),{showReplies:i,width:a,height:n,chrome:o,align:s,borderColor:u,theme:p,lang:c}).then(function(e){})})}function seedprod_twittertweetbutton(t,r,i,a,n,o,s,u){twttr.ready(function(e){window.twttr.widgets.createShareButton(r,document.getElementById("sp-twittertweetbutton-preview-"+t),{size:i,text:a,hashtags:n,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 a=jQuery(e+" .sp-imagecarousel-nav button").length-1,n=jQuery(e+" .sp-imagecarousel-nav button").eq(t).attr("data-index");0==t&&(0==r?r=i.length-1:r--),t==a&&(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!==n?(r=n,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={};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))});