(function($){
var pxl_widget_elementor_handler=function($scope, $){
};
function soluris_svg_vector(){
$('.pxl-heading--inner .px-sub-title-stroke').each(function(){
var targetTextElement=$($(this).data('target'));
var svgStrokeElement=targetTextElement.find('.pxl-item--svg-stroke');
var textElement=targetTextElement.find('.pxl-item-text--svg-stroke');
var bbox=textElement[0].getBBox();
svgStrokeElement.attr('width', bbox.width);
svgStrokeElement.attr('height', bbox.height);
});
}
$(window).on('elementor/frontend/init', function(){
elementorFrontend.hooks.addAction('frontend/element_ready/global', pxl_widget_elementor_handler);
elementorFrontend.hooks.addAction('frontend/element_ready/global', function($scope){
soluris_svg_vector($scope);
});
});
})(jQuery);
;(function ($){
"use strict";
$(document).ready(function (){
$('.img-hover-scale').each(function (){
$(this).tilt();
});
});
})(jQuery);
(function($){
var PXLCountdownBarHandler=function($scope, $){
$('.pxl-countdown').each(function (){
var _this=$(this);
var count_down=$(this).find('> div').data("count-down");
setInterval(function (){
var startDateTime=new Date().getTime();
var endDateTime=new Date(count_down).getTime();
var distance=endDateTime - startDateTime;
var days=Math.floor(distance / (1000 * 60 * 60 * 24));
var hours=Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes=Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds=Math.floor((distance % (1000 * 60)) / 1000);
var text_day=days!==1 ? _this.attr('data-days'):_this.attr('data-day');
var text_hour=hours!==1 ? _this.attr('data-hours'):_this.attr('data-hour');
var text_minu=minutes!==1 ? _this.attr('data-minutes'):_this.attr('data-minute');
var text_second=seconds!==1 ? _this.attr('data-seconds'):_this.attr('data-second');
days=days < 10 ? '0' + days:days;
hours=hours < 10 ? '0' + hours:hours;
minutes=minutes < 10 ? '0' + minutes:minutes;
seconds=seconds < 10 ? '0' + seconds:seconds;
var arrDays=[];
var daysString=days.toString();
for (var i=0; i < daysString.length; i++){
arrDays.push('<span>' + daysString[i] + '</span>');
}
var arrHours=[];
var hoursString=hours.toString();
for (var i=0; i < hoursString.length; i++){
arrHours.push('<span>' + hoursString[i] + '</span>');
}
var arrMinutes=[];
var minutesString=minutes.toString();
for (var i=0; i < minutesString.length; i++){
arrMinutes.push('<span>' + minutesString[i] + '</span>');
}
var arrSeconds=[];
var secondsString=seconds.toString();
for (var i=0; i < secondsString.length; i++){
arrSeconds.push('<span>' + secondsString[i] + '</span>');
}
_this.html(''
+ '<div class="countdown-item countdown-day"><div class="countdown-item-inner"><div class="countdown-amount">' + arrDays.join() + ' </div><div class="countdown-period">' + text_day + '</div></div></div>'
+ '<div class="countdown-item countdown-hour"><div class="countdown-item-inner"><div class="countdown-amount">' + arrHours.join() + '</div><div class="countdown-period">' + text_hour + '</div></div></div>'
+ '<div class="countdown-item countdown-minute"><div class="countdown-item-inner"><div class="countdown-amount">' + arrMinutes.join() + '</div><div class="countdown-period">' + text_minu + '</div></div></div>'
+ '<div class="countdown-item countdown-second"><div class="countdown-item-inner"><div class="countdown-amount">' + arrSeconds.join() + '</div><div class="countdown-period">' + text_second + '</div></div></div>'
);
}, 100);
});
};
$(window).on('elementor/frontend/init', function(){
elementorFrontend.hooks.addAction('frontend/element_ready/pxl_countdown.default', PXLCountdownBarHandler);
});
})(jQuery);
(function($){
var PXLTypewriteHandler=function($scope, $){
var highlight_on=$scope.find(".typewrite");
if(highlight_on.length==0){
return false;
}
var TxtType=function(el, toRotate, period){
this.toRotate=toRotate;
this.el=el;
this.loopNum=0;
this.period=parseInt(period, 10)||1000;
this.txt='';
this.tick();
this.isDeleting=false;
};
TxtType.prototype.tick=function(){
var i=this.loopNum % this.toRotate.length;
var fullTxt=this.toRotate[i];
if(this.isDeleting){
this.txt=fullTxt.substring(0, this.txt.length - 1);
}else{
this.txt=fullTxt.substring(0, this.txt.length + 1);
}
this.el.innerHTML='<span class="wrap">'+this.txt+'</span>';
var that=this;
var delta=200 - Math.random() * 100;
if(this.isDeleting){ delta /=2; }
if(!this.isDeleting&&this.txt===fullTxt){
delta=this.period;
this.isDeleting=true;
}else if(this.isDeleting&&this.txt===''){
this.isDeleting=false;
this.loopNum++;
delta=500;
}
setTimeout(function(){
that.tick();
}, delta);
};
var elements=document.getElementsByClassName('typewrite');
for (var i=0; i<elements.length; i++){
var toRotate=elements[i].getAttribute('data-type');
var period=elements[i].getAttribute('data-period');
if(toRotate){
new TxtType(elements[i], JSON.parse(toRotate), period);
}}
};
$(window).on('elementor/frontend/init', function(){
elementorFrontend.hooks.addAction('frontend/element_ready/pxl_heading.default', PXLTypewriteHandler);
});
})(jQuery);
(function($){
var pxl_swiper_handler=function($scope, $){
var breakpoints=elementorFrontend.config.breakpoints,
carousel=$scope.find(".pxl-swiper-container");
if(carousel.length==0){
return false;
}
var galleryThumbs=new Swiper('.pxl-swiper-thumbs', {
spaceBetween: 0,
slidesPerView: 4,
freeMode: true,
watchSlidesProgress: true,
direction:'vertical'
});
$('.pxl-swiper-arrow-custom').parents('.pxl-swiper-sliders').addClass('pxl--hide-arrow');
$('.pxl-navigation-carousel').parents('.elementor-section').addClass('pxl--hide-arrow');
setTimeout(function(){
$('.pxl-swiper-arrow-custom.pxl-swiper-arrow-next').on('click', function (){
$(this).parents('.pxl-swiper-sliders').find('.pxl-swiper-arrow-main.pxl-swiper-arrow-next').trigger('click');
});
$('.pxl-swiper-arrow-custom.pxl-swiper-arrow-prev').on('click', function (){
$(this).parents('.pxl-swiper-sliders').find('.pxl-swiper-arrow-main.pxl-swiper-arrow-prev').trigger('click');
});
}, 300);
setTimeout(function(){
$('.pxl-navigation-carousel .pxl-navigation-arrow-prev').on('click', function (){
$(this).parents('.elementor-section').find('.pxl-swiper-arrow.pxl-swiper-arrow-prev').trigger('click');
});
$('.pxl-navigation-carousel .pxl-navigation-arrow-next').on('click', function (){
$(this).parents('.elementor-section').find('.pxl-swiper-arrow.pxl-swiper-arrow-next').trigger('click');
});
}, 300);
var data=carousel.data(),
settings=data.settings,
carousel_settings={
direction: settings['slide_direction'],
centeredSlides: settings['slide_center'],
effect: settings['slide_mode'],
wrapperClass:'pxl-swiper-wrapper',
slideClass: 'pxl-swiper-slide',
slidesPerView: settings['slides_to_show'],
slidesPerGroup: settings['slides_to_scroll'],
slidesPerColumn: settings['slide_percolumn'],
spaceBetween: 0,
navigation: {
nextEl: $scope.find(".pxl-swiper-arrow-next"),
prevEl: $scope.find(".pxl-swiper-arrow-prev"),
},
pagination:{
el: $scope.find(".pxl-swiper-dots"),
clickable:true,
modifierClass: 'pxl-swiper-pagination-',
bulletClass:'pxl-swiper-pagination-bullet',
renderCustom: function (swiper, element, current, total){
return current + ' of ' + total;
},
type: settings['pagination_type'],
},
speed: settings['speed'],
watchSlidesProgress: true,
watchSlidesVisibility: true,
breakpoints: {
0:{
slidesPerView: settings['slides_to_show_xs'],
slidesPerGroup: settings['slides_to_scroll'],
},
576:{
slidesPerView: settings['slides_to_show_sm'],
slidesPerGroup: settings['slides_to_scroll'],
},
768:{
slidesPerView: settings['slides_to_show_md'],
slidesPerGroup: settings['slides_to_scroll'],
},
992:{
slidesPerView: settings['slides_to_show_lg'],
slidesPerGroup: settings['slides_to_scroll'],
},
1200:{
slidesPerView: settings['slides_to_show'],
slidesPerGroup: settings['slides_to_scroll'],
},
1600:{
slidesPerView: settings['slides_to_show_xxl'],
slidesPerGroup: settings['slides_to_scroll'],
}},
on: {
progress: function (swiper){
var el_id=$scope.find('.pxl-slider-progressbar');
var el_width=1;
var el_autoplayTime=settings['delay'] / 100;
var el_id_slider=setInterval(f_frame, el_autoplayTime);
function f_frame(){
if(el_width >=100){
clearInterval(el_id_slider);
}else{
el_width++;
el_id.css('width', el_width + '%');
}}
},
slideChangeTransitionStart:function (swiper){
var activeIndex=this.activeIndex;
var current=this.slides.eq(activeIndex);
$scope.find('.pxl-element-slider .pxl-swiper-slide .wow').each(function(){
$(this).removeClass('animated').addClass('pxl-invisible');
});
current.find('.pxl-element-slider .wow').each(function(){
$(this).removeClass('pxl-invisible').addClass('animated');
});
},
slideChange: function (swiper){
var activeIndex=this.activeIndex;
var current=this.slides.eq(activeIndex);
$scope.find('.pxl-element-slider .pxl-swiper-slide .wow').each(function(){
$(this).removeClass('animated').addClass('pxl-invisible');
});
current.find('.pxl-element-slider .wow').each(function(){
$(this).removeClass('pxl-invisible').addClass('animated');
});
setTimeout(function(){
var dataid_slide=$('.swiper-slide-active').attr('data-swiper-slide-index');
$('.swiper-slide-number').removeClass('swiper-pagination-number-active');
$('.swiper-slide-number[data-swiper-slide-index="' + dataid_slide + '"]').addClass('swiper-pagination-number-active');
}, 1);
},
sliderMove: function (swiper){
var activeIndex=this.activeIndex;
var current=this.slides.eq(activeIndex);
$scope.find('.pxl-element-slider .pxl-swiper-slide .wow').each(function(){
$(this).removeClass('animated').addClass('pxl-invisible');
});
current.find('.pxl-element-slider .wow').each(function(){
$(this).removeClass('pxl-invisible').addClass('animated');
});
},
}};
if(settings['center']==='true'){
carousel_settings['centeredSlides']=true;
}
if(settings['slide_mode']==='fade'){
carousel_settings['fadeEffect']={
crossFade: true
};}
if($('.pxl-swiper-thumbs').length > 0){
carousel_settings['thumbs']={ swiper: galleryThumbs };}
if(settings['loop']==='true'){
carousel_settings['loop']=true;
}
if(settings['autoplay']==='true'){
carousel_settings['autoplay']={
delay:settings['delay'],
disableOnInteraction:settings['pause_on_interaction']
};}else{
carousel_settings['autoplay']=false;
}
carousel.each(function(index, element){
var swiper=new Swiper(carousel, carousel_settings);
if(settings['autoplay']==='true'&&settings['pause_on_hover']==='true'){
$(this).on({
mouseenter: function mouseenter(){
this.swiper.autoplay.stop();
},
mouseleave: function mouseleave(){
this.swiper.autoplay.start();
}});
}
$scope.find(".swiper-filter-wrap .filter-item").on("click", function(){
var target=$(this).attr('data-filter-target');
var parent=$(this).closest('.pxl-swiper-sliders');
$(this).siblings().removeClass("active");
$(this).addClass("active");
if(target=="all"){
parent.find("[data-filter]").removeClass("non-swiper-slide").addClass("swiper-slide-filter");
swiper.destroy();
swiper=new Swiper(carousel, carousel_settings);
}else{
parent.find(".swiper-slide-filter").not("[data-filter^='"+target+"'], [data-filter*=' "+target+"']").addClass("non-swiper-slide").removeClass("swiper-slide-filter");
parent.find("[data-filter^='"+target+"'], [data-filter*=' "+target+"']").removeClass("non-swiper-slide").addClass("swiper-slide-filter");
swiper.destroy();
swiper=new Swiper(carousel, carousel_settings);
}});
$('.swiper-filter-wrap').parents('.pxl-swiper-sliders').addClass('swiper-filter-active');
});
};
$(window).on('elementor/frontend/init', function(){
elementorFrontend.hooks.addAction('frontend/element_ready/pxl_post_carousel.default', pxl_swiper_handler);
elementorFrontend.hooks.addAction('frontend/element_ready/pxl_client_carousel.default', pxl_swiper_handler);
elementorFrontend.hooks.addAction('frontend/element_ready/pxl_team_carousel.default', pxl_swiper_handler);
elementorFrontend.hooks.addAction('frontend/element_ready/pxl_pricing_carousel.default', pxl_swiper_handler);
elementorFrontend.hooks.addAction('frontend/element_ready/pxl_image_carousel.default', pxl_swiper_handler);
elementorFrontend.hooks.addAction('frontend/element_ready/pxl_testimonial_carousel.default', pxl_swiper_handler);
elementorFrontend.hooks.addAction('frontend/element_ready/pxl_partner_carousel.default', pxl_swiper_handler);
elementorFrontend.hooks.addAction('frontend/element_ready/pxl_text_carousel.default', pxl_swiper_handler);
elementorFrontend.hooks.addAction('frontend/element_ready/pxl_icon_box_carousel.default', pxl_swiper_handler);
elementorFrontend.hooks.addAction('frontend/element_ready/pxl_button_carousel_next_prev.default', pxl_swiper_handler);
elementorFrontend.hooks.addAction('frontend/element_ready/pxl_slider.default', pxl_swiper_handler);
});
})(jQuery);
(function($){
var pxl_widget_elementor_handler=function($scope, $){
var wobbleElements=document.querySelectorAll('.pxl-wobble');
wobbleElements.forEach(function(el){
el.addEventListener('mouseover', function(){
if(!el.classList.contains('animating')&&!el.classList.contains('mouseover')){
el.classList.add('animating','mouseover');
var letters=el.innerText.split('');
setTimeout(function(){ el.classList.remove('animating'); }, (letters.length + 1) * 50);
var animationName=el.dataset.animation;
if(!animationName){ animationName="pxl-jump"; }
el.innerText='';
letters.forEach(function(letter){
if(letter==" "){
letter="&nbsp;";
}
el.innerHTML +='<span class="letter">'+letter+'</span>';
});
var letterElements=el.querySelectorAll('.letter');
letterElements.forEach(function(letter, i){
setTimeout(function(){
letter.classList.add(animationName);
}, 50 * i);
});
}});
el.addEventListener('mouseout', function(){
el.classList.remove('mouseover');
});
});
};
$(window).on('elementor/frontend/init', function(){
elementorFrontend.hooks.addAction('frontend/element_ready/pxl_button.default', pxl_widget_elementor_handler);
});
})(jQuery);
(function($){
var WidgetPieChartHandler=function($scope, $){
elementorFrontend.waypoint($scope.find('.pxl-piechart .percentage'), function (){
var track_color=$(this).data('track-color');
var bar_color=$(this).data('bar-color');
var line_width=$(this).data('line-width');
var chart_size=$(this).data('size');
var options={
animate: 2000,
lineWidth: line_width,
barColor: bar_color,
trackColor: track_color,
scaleColor: false,
rotate: 0,
size: chart_size
};
$(this).easyPieChart(options);
}, {
offset: '95%',
triggerOnce: true
});
};
$(window).on('elementor/frontend/init', function(){
elementorFrontend.hooks.addAction('frontend/element_ready/pxl_pie_chart.default', WidgetPieChartHandler);
});
})(jQuery);
!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof exports?module.exports=b(require("jquery")):b(jQuery)}(this,function(a){var b=function(a,b){var c,d=document.createElement("canvas");a.appendChild(d),"object"==typeof G_vmlCanvasManager&&G_vmlCanvasManager.initElement(d);var e=d.getContext("2d");d.width=d.height=b.size;var f=1;window.devicePixelRatio>1&&(f=window.devicePixelRatio,d.style.width=d.style.height=[b.size,"px"].join(""),d.width=d.height=b.size*f,e.scale(f,f)),e.translate(b.size/2,b.size/2),e.rotate((-0.5+b.rotate/180)*Math.PI);var g=(b.size-b.lineWidth)/2;b.scaleColor&&b.scaleLength&&(g-=b.scaleLength+2),Date.now=Date.now||function(){return+new Date};var h=function(a,b,c){c=Math.min(Math.max(-1,c||0),1);var d=0>=c?!0:!1;e.beginPath(),e.arc(0,0,g,0,2*Math.PI*c,d),e.strokeStyle=a,e.lineWidth=b,e.stroke()},i=function(){var a,c;e.lineWidth=1,e.fillStyle=b.scaleColor,e.save();for(var d=24;d>0;--d)d%6===0?(c=b.scaleLength,a=0):(c=.6*b.scaleLength,a=b.scaleLength-c),e.fillRect(-b.size/2+a,0,c,1),e.rotate(Math.PI/12);e.restore()},j=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(a){window.setTimeout(a,1e3/60)}}(),k=function(){b.scaleColor&&i(),b.trackColor&&h(b.trackColor,b.trackWidth||b.lineWidth,1)};this.getCanvas=function(){return d},this.getCtx=function(){return e},this.clear=function(){e.clearRect(b.size/-2,b.size/-2,b.size,b.size)},this.draw=function(a){b.scaleColor||b.trackColor?e.getImageData&&e.putImageData?c?e.putImageData(c,0,0):(k(),c=e.getImageData(0,0,b.size*f,b.size*f)):(this.clear(),k()):this.clear(),e.lineCap=b.lineCap;var d;d="function"==typeof b.barColor?b.barColor(a):b.barColor,h(d,b.lineWidth,a/100)}.bind(this),this.animate=function(a,c){var d=Date.now();b.onStart(a,c);var e=function(){var f=Math.min(Date.now()-d,b.animate.duration),g=b.easing(this,f,a,c-a,b.animate.duration);this.draw(g),b.onStep(a,c,g),f>=b.animate.duration?b.onStop(a,c):j(e)}.bind(this);j(e)}.bind(this)},c=function(a,c){var d={barColor:"#ef1e25",trackColor:"#f9f9f9",scaleColor:"#dfe0e0",scaleLength:5,lineCap:"round",lineWidth:3,trackWidth:void 0,size:110,rotate:0,animate:{duration:1e3,enabled:!0},easing:function(a,b,c,d,e){return b/=e/2,1>b?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c},onStart:function(a,b){},onStep:function(a,b,c){},onStop:function(a,b){}};if("undefined"!=typeof b)d.renderer=b;else{if("undefined"==typeof SVGRenderer)throw new Error("Please load either the SVG- or the CanvasRenderer");d.renderer=SVGRenderer}var e={},f=0,g=function(){this.el=a,this.options=e;for(var b in d)d.hasOwnProperty(b)&&(e[b]=c&&"undefined"!=typeof c[b]?c[b]:d[b],"function"==typeof e[b]&&(e[b]=e[b].bind(this)));"string"==typeof e.easing&&"undefined"!=typeof jQuery&&jQuery.isFunction(jQuery.easing[e.easing])?e.easing=jQuery.easing[e.easing]:e.easing=d.easing,"number"==typeof e.animate&&(e.animate={duration:e.animate,enabled:!0}),"boolean"!=typeof e.animate||e.animate||(e.animate={duration:1e3,enabled:e.animate}),this.renderer=new e.renderer(a,e),this.renderer.draw(f),a.dataset&&a.dataset.percent?this.update(parseFloat(a.dataset.percent)):a.getAttribute&&a.getAttribute("data-percent")&&this.update(parseFloat(a.getAttribute("data-percent")))}.bind(this);this.update=function(a){return a=parseFloat(a),e.animate.enabled?this.renderer.animate(f,a):this.renderer.draw(a),f=a,this}.bind(this),this.disableAnimation=function(){return e.animate.enabled=!1,this},this.enableAnimation=function(){return e.animate.enabled=!0,this},g()};a.fn.easyPieChart=function(b){return this.each(function(){var d;a.data(this,"easyPieChart")||(d=a.extend({},b,a(this).data()),a.data(this,"easyPieChart",new c(this,d)))})}});
!function(a,b){if("function"==typeof define&&define.amd)define(["module","exports"],b);else if("undefined"!=typeof exports)b(module,exports);else{var c={exports:{}};b(c,c.exports),a.WOW=c.exports}}(this,function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function d(a,b){return b.indexOf(a)>=0}function e(a,b){for(var c in b)if(null==a[c]){var d=b[c];a[c]=d}return a}function f(a){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(a)}function g(a){var b=arguments.length<=1||void 0===arguments[1]?!1:arguments[1],c=arguments.length<=2||void 0===arguments[2]?!1:arguments[2],d=arguments.length<=3||void 0===arguments[3]?null:arguments[3],e=void 0;return null!=document.createEvent?(e=document.createEvent("CustomEvent"),e.initCustomEvent(a,b,c,d)):null!=document.createEventObject?(e=document.createEventObject(),e.eventType=a):e.eventName=a,e}function h(a,b){null!=a.dispatchEvent?a.dispatchEvent(b):b in(null!=a)?a[b]():"on"+b in(null!=a)&&a["on"+b]()}function i(a,b,c){null!=a.addEventListener?a.addEventListener(b,c,!1):null!=a.attachEvent?a.attachEvent("on"+b,c):a[b]=c}function j(a,b,c){null!=a.removeEventListener?a.removeEventListener(b,c,!1):null!=a.detachEvent?a.detachEvent("on"+b,c):delete a[b]}function k(){return"innerHeight"in window?window.innerHeight:document.documentElement.clientHeight}Object.defineProperty(b,"__esModule",{value:!0});var l,m,n=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),o=window.WeakMap||window.MozWeakMap||function(){function a(){c(this,a),this.keys=[],this.values=[]}return n(a,[{key:"get",value:function(a){for(var b=0;b<this.keys.length;b++){var c=this.keys[b];if(c===a)return this.values[b]}}},{key:"set",value:function(a,b){for(var c=0;c<this.keys.length;c++){var d=this.keys[c];if(d===a)return this.values[c]=b,this}return this.keys.push(a),this.values.push(b),this}}]),a}(),p=window.MutationObserver||window.WebkitMutationObserver||window.MozMutationObserver||(m=l=function(){function a(){c(this,a),"undefined"!=typeof console&&null!==console&&(console.warn("MutationObserver is not supported by your browser."),console.warn("WOW.js cannot detect dom mutations, please call .sync() after loading new content."))}return n(a,[{key:"observe",value:function(){}}]),a}(),l.notSupported=!0,m),q=window.getComputedStyle||function(a){var b=/(\-([a-z]){1})/g;return{getPropertyValue:function(c){"float"===c&&(c="styleFloat"),b.test(c)&&c.replace(b,function(a,b){return b.toUpperCase()});var d=a.currentStyle;return(null!=d?d[c]:void 0)||null}}},r=function(){function a(){var b=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];c(this,a),this.defaults={boxClass:"wow",animateClass:"animated",offset:0,mobile:!0,live:!0,callback:null,scrollContainer:null,resetAnimation:!0},this.animate=function(){return"requestAnimationFrame"in window?function(a){return window.requestAnimationFrame(a)}:function(a){return a()}}(),this.vendors=["moz","webkit"],this.start=this.start.bind(this),this.resetAnimation=this.resetAnimation.bind(this),this.scrollHandler=this.scrollHandler.bind(this),this.scrollCallback=this.scrollCallback.bind(this),this.scrolled=!0,this.config=e(b,this.defaults),null!=b.scrollContainer&&(this.config.scrollContainer=document.querySelector(b.scrollContainer)),this.animationNameCache=new o,this.wowEvent=g(this.config.boxClass)}return n(a,[{key:"init",value:function(){this.element=window.document.documentElement,d(document.readyState,["interactive","complete"])?this.start():i(document,"DOMContentLoaded",this.start),this.finished=[]}},{key:"start",value:function(){var a=this;if(this.stopped=!1,this.boxes=[].slice.call(this.element.querySelectorAll("."+this.config.boxClass)),this.all=this.boxes.slice(0),this.boxes.length)if(this.disabled())this.resetStyle();else for(var b=0;b<this.boxes.length;b++){var c=this.boxes[b];this.applyStyle(c,!0)}if(this.disabled()||(i(this.config.scrollContainer||window,"scroll",this.scrollHandler),i(window,"resize",this.scrollHandler),this.interval=setInterval(this.scrollCallback,50)),this.config.live){var d=new p(function(b){for(var c=0;c<b.length;c++)for(var d=b[c],e=0;e<d.addedNodes.length;e++){var f=d.addedNodes[e];a.doSync(f)}});d.observe(document.body,{childList:!0,subtree:!0})}}},{key:"stop",value:function(){this.stopped=!0,j(this.config.scrollContainer||window,"scroll",this.scrollHandler),j(window,"resize",this.scrollHandler),null!=this.interval&&clearInterval(this.interval)}},{key:"sync",value:function(){p.notSupported&&this.doSync(this.element)}},{key:"doSync",value:function(a){if("undefined"!=typeof a&&null!==a||(a=this.element),1===a.nodeType){a=a.parentNode||a;for(var b=a.querySelectorAll("."+this.config.boxClass),c=0;c<b.length;c++){var e=b[c];d(e,this.all)||(this.boxes.push(e),this.all.push(e),this.stopped||this.disabled()?this.resetStyle():this.applyStyle(e,!0),this.scrolled=!0)}}}},{key:"show",value:function(a){return this.applyStyle(a),a.className=a.className+" "+this.config.animateClass,null!=this.config.callback&&this.config.callback(a),h(a,this.wowEvent),this.config.resetAnimation&&(i(a,"animationend",this.resetAnimation),i(a,"oanimationend",this.resetAnimation),i(a,"webkitAnimationEnd",this.resetAnimation),i(a,"MSAnimationEnd",this.resetAnimation)),a}},{key:"applyStyle",value:function(a,b){var c=this,d=a.getAttribute("data-wow-duration"),e=a.getAttribute("data-wow-delay"),f=a.getAttribute("data-wow-iteration");return this.animate(function(){return c.customStyle(a,b,d,e,f)})}},{key:"resetStyle",value:function(){for(var a=0;a<this.boxes.length;a++){var b=this.boxes[a];b.style.visibility="visible"}}},{key:"resetAnimation",value:function(a){if(a.type.toLowerCase().indexOf("animationend")>=0){var b=a.target||a.srcElement;b.className=b.className.replace(this.config.animateClass,"").trim()}}},{key:"customStyle",value:function(a,b,c,d,e){return b&&this.cacheAnimationName(a),a.style.visibility=b?"hidden":"visible",c&&this.vendorSet(a.style,{animationDuration:c}),d&&this.vendorSet(a.style,{animationDelay:d}),e&&this.vendorSet(a.style,{animationIterationCount:e}),this.vendorSet(a.style,{animationName:b?"none":this.cachedAnimationName(a)}),a}},{key:"vendorSet",value:function(a,b){for(var c in b)if(b.hasOwnProperty(c)){var d=b[c];a[""+c]=d;for(var e=0;e<this.vendors.length;e++){var f=this.vendors[e];a[""+f+c.charAt(0).toUpperCase()+c.substr(1)]=d}}}},{key:"vendorCSS",value:function(a,b){for(var c=q(a),d=c.getPropertyCSSValue(b),e=0;e<this.vendors.length;e++){var f=this.vendors[e];d=d||c.getPropertyCSSValue("-"+f+"-"+b)}return d}},{key:"animationName",value:function(a){var b=void 0;try{b=this.vendorCSS(a,"animation-name").cssText}catch(c){b=q(a).getPropertyValue("animation-name")}return"none"===b?"":b}},{key:"cacheAnimationName",value:function(a){return this.animationNameCache.set(a,this.animationName(a))}},{key:"cachedAnimationName",value:function(a){return this.animationNameCache.get(a)}},{key:"scrollHandler",value:function(){this.scrolled=!0}},{key:"scrollCallback",value:function(){if(this.scrolled){this.scrolled=!1;for(var a=[],b=0;b<this.boxes.length;b++){var c=this.boxes[b];if(c){if(this.isVisible(c)){this.show(c);continue}a.push(c)}}this.boxes=a,this.boxes.length||this.config.live||this.stop()}}},{key:"offsetTop",value:function(a){for(;void 0===a.offsetTop;)a=a.parentNode;for(var b=a.offsetTop;a.offsetParent;)a=a.offsetParent,b+=a.offsetTop;return b}},{key:"isVisible",value:function(a){var b=a.getAttribute("data-wow-offset")||this.config.offset,c=this.config.scrollContainer&&this.config.scrollContainer.scrollTop||window.pageYOffset,d=c+Math.min(this.element.clientHeight,k())-b,e=this.offsetTop(a),f=e+a.clientHeight;return d>=e&&f>=c}},{key:"disabled",value:function(){return!this.config.mobile&&f(navigator.userAgent)}}]),a}();b["default"]=r,a.exports=b["default"]});
var wow=new WOW(
{
boxClass:     'wow',
animateClass: 'animated',
offset:       0,
mobile:       true,
live:         true,
callback:     function(box){
},
scrollContainer: null,
resetAnimation: true,
}
);
wow.init();
(function(factory){if(typeof define==='function'&&define.amd){define(['jquery'],factory);}else if(typeof module==='object'&&module.exports){module.exports=function(root,jQuery){if(jQuery===undefined){if(typeof window!=='undefined'){jQuery=require('jquery');}else{jQuery=require('jquery')(root);}}
factory(jQuery);return jQuery;};}else{factory(jQuery);}}(function($){$.fn.tilt=function(options){const requestTick=function(){if(this.ticking)return;requestAnimationFrame(updateTransforms.bind(this));this.ticking=true;};const bindpxl_event=function(){const _this=this;$(this).on('mousemove',mouseMove);$(this).on('mouseenter',mouseEnter);if(this.settings.reset)$(this).on('mouseleave',mouseLeave);if(this.settings.glare)$(window).on('resize',updateGlareSize.bind(_this));};const setTransition=function(){if(this.timeout!==undefined)clearTimeout(this.timeout);$(this).css({'transition':`${this.settings.speed}ms ${this.settings.easing}`});if(this.settings.glare)this.glareElement.css({'transition':`opacity ${this.settings.speed}ms ${this.settings.easing}`});this.timeout=setTimeout(()=>{$(this).css({'transition':''});if(this.settings.glare)this.glareElement.css({'transition':''});},this.settings.speed);};const mouseEnter=function(event){this.ticking=false;$(this).css({'will-change':'transform'});setTransition.call(this);$(this).trigger("tilt.mouseEnter");};const getMousePositions=function(event){if(typeof(event)==="undefined"){event={pageX:$(this).offset().left+$(this).outerWidth()/ 2,pageY:$(this).offset().top+$(this).outerHeight()/ 2};}
return{x:event.pageX,y:event.pageY};};const mouseMove=function(event){this.mousePositions=getMousePositions(event);requestTick.call(this);};const mouseLeave=function(){setTransition.call(this);this.reset=true;requestTick.call(this);$(this).trigger("tilt.mouseLeave");};const getValues=function(){const width=$(this).outerWidth();const height=$(this).outerHeight();const left=$(this).offset().left;const top=$(this).offset().top;const percentageX=(this.mousePositions.x-left)/ width;const percentageY=(this.mousePositions.y-top)/ height;const tiltX=((this.settings.maxTilt / 2)-((percentageX)*this.settings.maxTilt)).toFixed(2);const tiltY=(((percentageY)*this.settings.maxTilt)-(this.settings.maxTilt / 2)).toFixed(2);const angle=Math.atan2(this.mousePositions.x-(left+width/2),-(this.mousePositions.y-(top+height/2)))*(180/Math.PI);return{tiltX,tiltY,'percentageX':percentageX*100,'percentageY':percentageY*100,angle};};const updateTransforms=function(){this.transforms=getValues.call(this);if(this.reset){this.reset=false;$(this).css('transform',`perspective(${this.settings.perspective}px)rotateX(0deg)rotateY(0deg)`);if(this.settings.glare){this.glareElement.css('transform',`rotate(180deg)translate(-50%,-50%)`);this.glareElement.css('opacity',`0`);}
return;}else{$(this).css('transform',`perspective(${this.settings.perspective}px)rotateX(${this.settings.disableAxis==='x'?0:this.transforms.tiltY}deg)rotateY(${this.settings.disableAxis==='y'?0:this.transforms.tiltX}deg)scale3d(${this.settings.scale},${this.settings.scale},${this.settings.scale})`);if(this.settings.glare){this.glareElement.css('transform',`rotate(${this.transforms.angle}deg)translate(-50%,-50%)`);this.glareElement.css('opacity',`${this.transforms.percentageY*this.settings.maxGlare / 100}`);}}
$(this).trigger("change",[this.transforms]);this.ticking=false;};const prepareGlare=function(){const glarePrerender=this.settings.glarePrerender;if(!glarePrerender)
$(this).append('<div class="js-tilt-glare"><div class="js-tilt-glare-inner"></div></div>');this.glareElementWrapper=$(this).find(".js-tilt-glare");this.glareElement=$(this).find(".js-tilt-glare-inner");if(glarePrerender)return;const stretch={'position':'absolute','top':'0','left':'0','width':'100%','height':'100%',};this.glareElementWrapper.css(stretch).css({'overflow':'hidden','pointer-pxl_event':'none',});this.glareElement.css({'position':'absolute','top':'50%','left':'50%','background-image':`linear-gradient(0deg,rgba(255,255,255,0)0%,rgba(255,255,255,1)100%)`,'width':`${$(this).outerWidth()*2}`,'height':`${$(this).outerWidth()*2}`,'transform':'rotate(180deg) translate(-50%, -50%)','transform-origin':'0% 0%','opacity':'0',});};const updateGlareSize=function(){this.glareElement.css({'width':`${$(this).outerWidth()*2}`,'height':`${$(this).outerWidth()*2}`,});};$.fn.tilt.destroy=function(){$(this).each(function(){$(this).find('.js-tilt-glare').remove();$(this).css({'will-change':'','transform':''});$(this).off('mousemove mouseenter mouseleave');});};$.fn.tilt.getValues=function(){const results=[];$(this).each(function(){this.mousePositions=getMousePositions.call(this);results.push(getValues.call(this));});return results;};$.fn.tilt.reset=function(){$(this).each(function(){this.mousePositions=getMousePositions.call(this);this.settings=$(this).data('settings');mouseLeave.call(this);setTimeout(()=>{this.reset=false;},this.settings.transition);});};return this.each(function(){this.settings=$.extend({maxTilt:$(this).is('[data-tilt-max]')?$(this).data('tilt-max'):20,perspective:$(this).is('[data-tilt-perspective]')?$(this).data('tilt-perspective'):300,easing:$(this).is('[data-tilt-easing]')?$(this).data('tilt-easing'):'cubic-bezier(.03,.98,.52,.99)',scale:$(this).is('[data-tilt-scale]')?$(this).data('tilt-scale'):'1',speed:$(this).is('[data-tilt-speed]')?$(this).data('tilt-speed'):'400',transition:$(this).is('[data-tilt-transition]')?$(this).data('tilt-transition'):true,disableAxis:$(this).is('[data-tilt-disable-axis]')?$(this).data('tilt-disable-axis'):null,axis:$(this).is('[data-tilt-axis]')?$(this).data('tilt-axis'):null,reset:$(this).is('[data-tilt-reset]')?$(this).data('tilt-reset'):true,glare:$(this).is('[data-tilt-glare]')?$(this).data('tilt-glare'):false,maxGlare:$(this).is('[data-tilt-maxglare]')?$(this).data('tilt-maxglare'):1,},options);if(this.settings.axis!==null){console.warn('Tilt.js: the axis setting has been renamed to disableAxis. See https://github.com/gijsroge/tilt.js/pull/26 for more information');this.settings.disableAxis=this.settings.axis;}
this.init=()=>{$(this).data('settings',this.settings);if(this.settings.glare)prepareGlare.call(this);bindpxl_event.call(this);};this.init();});};$('[data-tilt]').tilt();return true;}));
;(function ($){
"use strict";
var pxl_scroll_top;
var pxl_window_height;
var pxl_window_width;
var pxl_scroll_status='';
var pxl_last_scroll_top=0;
$(window).on('load', function (){
$(".pxl-loader").fadeOut("slow");
$('.pxl-element-slider').css('opacity', '1');
$('.pxl-element-slider').css('transition-delay', '300ms');
pxl_window_width=$(window).width();
soluris_header_sticky();
soluris_scroll_to_top();
soluris_footer_fixed();
soluris_quantity_icon();
soluris_document_click();
soluris_smooth_scroll();
soluris_svg_stroke();
});
$(document).ready(function(){
soluris_shop_view_layout();
});
$(window).on('scroll', function (){
pxl_scroll_top=$(window).scrollTop();
pxl_window_height=$(window).height();
pxl_window_width=$(window).width();
if(pxl_scroll_top < pxl_last_scroll_top){
pxl_scroll_status='up';
}else{
pxl_scroll_status='down';
}
pxl_last_scroll_top=pxl_scroll_top;
soluris_header_sticky();
soluris_scroll_to_top();
soluris_footer_fixed();
});
$(document).ready(function (){
var $soluris_menu=$('.pxl-header-elementor-main');
$soluris_menu.find('.pxl-menu-primary li').each(function (){
var $soluris_submenu=$(this).find('> ul.sub-menu');
if($soluris_submenu.length==1){
$(this).hover(function (){
if($soluris_submenu.offset().left + $soluris_submenu.width() > $(window).width()){
$soluris_submenu.addClass('pxl-sub-reverse');
}else if($soluris_submenu.offset().left < 0){
$soluris_submenu.addClass('pxl-sub-reverse');
}}, function (){
$soluris_submenu.removeClass('pxl-sub-reverse');
});
}});
var pxl_info_width=$('.pxl-info-slide1').parents('section').height();
$('.style-vertical').css('max-width', pxl_info_width);
$('.style-vertical').parent().css('max-width', pxl_info_width);
$('.section').parents('section').css('overflow', 'hidden');
$('.pxl-header-menu li.menu-item-has-children').append('<span class="pxl-menu-toggle"></span>');
$('.pxl-menu-toggle').on('click', function (){
if($(this).hasClass('active')){
$(this).closest('ul').find('.pxl-menu-toggle.active').toggleClass('active');
$(this).closest('ul').find('.sub-menu.active').toggleClass('active').slideToggle();
}else{
$(this).closest('ul').find('.pxl-menu-toggle.active').toggleClass('active');
$(this).closest('ul').find('.sub-menu.active').toggleClass('active').slideToggle();
$(this).toggleClass('active');
$(this).parent().find('> .sub-menu').toggleClass('active');
$(this).parent().find('> .sub-menu').slideToggle();
}});
$("#pxl-nav-mobile").on('click', function (){
$(this).toggleClass('active');
$('.pxl-header-menu').toggleClass('active');
});
$(".pxl-menu-close, .pxl-header-menu-backdrop, .is-one-page").on('click', function (){
$(this).parents('.pxl-header-main').find('.pxl-header-menu').removeClass('active');
$('#pxl-nav-mobile').removeClass('active');
});
$('.pxl-modal-close').on('click', function (){
$(this).parent().removeClass('open').addClass('remove');
$(this).parents('body').removeClass('ov-hidden');
});
$('.btn-sign-up').on('click', function (){
$('.pxl-user-register').addClass('u-open').removeClass('u-close');
$('.pxl-user-login').addClass('u-close').removeClass('u-open');
});
$('.btn-sign-in').on('click', function (){
$('.pxl-user-register').addClass('u-close').removeClass('u-open');
$('.pxl-user-login').addClass('u-open').removeClass('u-close');
});
$('.pxl-user-have-an-account').on('click', function (){
$(this).parents('.pxl-modal-content').find('.pxl-user-register').addClass('u-close').removeClass('u-open');
$(this).parents('.pxl-modal-content').find('.pxl-user-login').addClass('u-open').removeClass('u-close');
});
$('.h-btn-user').on('click', function (){
$('.pxl-user-popup').addClass('open').removeClass('remove');
$(this).find('.pxl-user-account').toggleClass('active');
});
$('.pxl-type-header-clip > .elementor-container').append('<div class="pxl-header-shape"><span></span></div>');
$('.pxl-scroll-top').click(function (){
$('html, body').animate({scrollTop: 0}, 800);
return false;
});
$('.pxl-grid-masonry').each(function (){
var eltime=100;
var elt_inner=$(this).children().length;
var _elt=elt_inner - 1;
$(this).find('> .pxl-grid-item > .wow').each(function (index, obj){
$(this).css('animation-delay', eltime + 'ms');
if(_elt===index){
eltime=100;
_elt=_elt + elt_inner;
}else{
eltime=eltime + 60;
}});
});
$('.pxl-item--text').each(function (){
var pxl_time=0;
var pxl_item_inner=$(this).children().length;
var _elt=pxl_item_inner - 1;
$(this).find('> .pxl-text--slide > .wow').each(function (index, obj){
$(this).css('transition-delay', pxl_time + 'ms');
if(_elt===index){
pxl_time=0;
_elt=_elt + pxl_item_inner;
}else{
pxl_time=pxl_time + 80;
}});
});
$('.btn-video, .pxl-video-popup, .btn-video-image').magnificPopup({
type: 'iframe',
mainClass: 'mfp-fade',
removalDelay: 160,
preloader: false,
fixedContentPos: false
});
$('.images-light-box').each(function (){
$(this).magnificPopup({
delegate: 'a.light-box',
type: 'image',
gallery: {
enabled: true
},
mainClass: 'mfp-fade',
});
});
document.querySelectorAll(".pxl-wobble:not([data-animation])").forEach(elem=> elem.setAttribute("data-animation", "pxl-xspin"));
var wobbleElements=document.querySelectorAll('.pxl-wobble');
wobbleElements.forEach(function(el){
el.addEventListener('mouseover', function(){
if(!el.classList.contains('animating')&&!el.classList.contains('mouseover')){
el.classList.add('animating','mouseover');
var letters=el.innerText.split('');
setTimeout(function(){ el.classList.remove('animating'); }, (letters.length + 1) * 50);
var animationName=el.dataset.animation;
if(!animationName){ animationName="pxl-jump"; }
el.innerText='';
letters.forEach(function(letter){
if(letter==" "){
letter="&nbsp;";
}
el.innerHTML +='<span class="letter">'+letter+'</span>';
});
var letterElements=el.querySelectorAll('.letter');
letterElements.forEach(function(letter, i){
setTimeout(function(){
letter.classList.add(animationName);
}, 50 * i);
});
}});
el.addEventListener('mouseout', function(){
el.classList.remove('mouseover');
});
});
$('.comment-reply a').append('');
$('.btn-nina').each(function (){
var eltime=0.045;
var elt_inner=$(this).children().length;
var _elt=elt_inner - 1;
$(this).find('> .pxl--btn-text > span').each(function (index, obj){
$(this).css('transition-delay', eltime + 's');
eltime=eltime + 0.045;
});
});
$('input').prop('readonly', false);
$(".pxl-search-popup-button").on('click', function (){
$('#pxl-search-popup').addClass('active');
$('#pxl-search-popup .search-field').focus();
});
$(".pxl-item--close").on('click', function (){
$('body').removeClass('body-overflow');
$('#pxl-search-popup').removeClass('active');
});
$(".pxl-cart-popup-button").on('click', function (){
console.log('asddas');
$('.pxl-widget-cart-wrap').toggleClass('open');
$('.pxl-widget-cart-wrap').focus();
});
$(".pxl-cart-popup-button .pxl-item--close").on('click', function (){
$('.pxl-widget-cart-wrap').removeClass('open');
});
$(".pxl-menu-close, .pxl-header-menu-backdrop").on('click', function (){
$('body').removeClass('body-overflow');
$('.pxl-widget-cart-wrap').removeClass('open');
});
$(".pxl-hidden-button").on('click', function (){
$('body').addClass('body-overflow');
$('#pxl-hidden-sidebar').addClass('active');
});
$("#pxl-hidden-sidebar .pxl-item--overlay, #pxl-hidden-sidebar .pxl-item--close").on('click', function (){
$('body').removeClass('body-overflow');
$('#pxl-hidden-sidebar').removeClass('active');
});
$('.pxl--widget-hover').each(function (){
$(this).hover(function (){
$(this).parents('.elementor-row').find('.pxl--widget-hover').removeClass('pxl--item-active');
$(this).parents('.elementor-container').find('.pxl--widget-hover').removeClass('pxl--item-active');
$(this).addClass('pxl--item-active');
});
});
$('.btn-plus-text').hover(function (){
$(this).find('span').toggle(300);
});
$(".pxl-nav-button").on('click', function (){
$(this).toggleClass('active');
$(this).parent().find('.pxl-nav-wrap').toggle(400);
});
$('.pxl-btn-effect4').append('<span class="pxl-btn-mask"></span>');
var boxEls=$('.el-bounce, .pxl-image-effect1');
$.each(boxEls, function(boxIndex, boxEl){
loopToggleClass(boxEl, 'bounce-active');
});
function loopToggleClass(el, toggleClass){
el=$(el);
let counter=0;
if(el.hasClass(toggleClass)){
waitFor(function (){
counter++;
return counter==2;
}, function (){
counter=0;
el.removeClass(toggleClass);
loopToggleClass(el, toggleClass);
}, 'Deactivate', 1000);
}else{
waitFor(function (){
counter++;
return counter==3;
}, function (){
counter=0;
el.addClass(toggleClass);
loopToggleClass(el, toggleClass);
}, 'Activate', 1000);
}}
function waitFor(condition, callback, message, time){
if(message==null||message==''||typeof message=='undefined'){
message='Timeout';
}
if(time==null||time==''||typeof time=='undefined'){
time=100;
}
var cond=condition();
if(cond){
callback();
}else{
setTimeout(function(){
console.log(message);
waitFor(condition, callback, message, time);
}, time);
}}
setTimeout(function(){
$('.md-align-center').parents('.rs-parallax-wrap').addClass('pxl-group-center');
}, 300);
if($('.pxl-image-tilt').length){
$('.pxl-image-tilt').each(function (){
var pxl_maxtilt=$(this).data('maxtilt'),
pxl_speedtilt=$(this).data('speedtilt');
$(this).tilt({
maxTilt: pxl_maxtilt,
speed: pxl_speedtilt,
});
});
}
$('.pxl-item--button').on('click', function (){
$(this).toggleClass('active');
$(this).parent().toggleClass('active');
});
$(".pxl-image-box2 .pxl-item--inner").hover(function(){
$(this).find('.pxl-item--description').slideToggle(220);
}, function(){
$(this).find('.pxl-item--description').slideToggle(220);
}
);
$('.wpcf7-select').each(function(){
var $this=$(this), numberOfOptions=$(this).children('option').length;
$this.addClass('pxl-select-hidden');
$this.wrap('<div class="pxl-select"></div>');
$this.after('<div class="pxl-select-higthlight"></div>');
var $styledSelect=$this.next('div.pxl-select-higthlight');
$styledSelect.text($this.children('option').eq(0).text());
var $list=$('<ul />', {
'class': 'pxl-select-options'
}).insertAfter($styledSelect);
for (var i=0; i < numberOfOptions; i++){
$('<li />', {
text: $this.children('option').eq(i).text(),
rel: $this.children('option').eq(i).val()
}).appendTo($list);
}
var $listItems=$list.children('li');
$styledSelect.click(function(e){
e.stopPropagation();
$('div.pxl-select-higthlight.active').not(this).each(function(){
$(this).removeClass('active').next('ul.pxl-select-options').addClass('pxl-select-lists-hide');
});
$(this).toggleClass('active');
});
$listItems.click(function(e){
e.stopPropagation();
$styledSelect.text($(this).text()).removeClass('active');
$this.val($(this).attr('rel'));
});
$(document).click(function(){
$styledSelect.removeClass('active');
});
});
});
function soluris_shop_view_layout(){
$(document).on('click','.pxl-view-layout .view-icon a', function(e){
e.preventDefault();
if(!$(this).parent('li').hasClass('active')){
$('.pxl-view-layout .view-icon').removeClass('active');
$(this).parent('li').addClass('active');
$(this).parents('.pxl-content-area').find('ul.products').removeAttr('class').addClass($(this).attr('data-cls'));
}});
}
setTimeout(function(){
$('.pxl-close, .pxl-close .pxl-icon-close, .pxl-item--overlay').click(function (e){
e.preventDefault();
$(this).parents('.pxl-widget-cart-wrap').removeClass('open');
$(this).parents('.pxl-modal').addClass('remove').removeClass('open');
$(this).parents('#page').find('.site-overlay').removeClass('open');
$(this).parents('body').removeClass('ov-hidden');
});
}, 300);
function soluris_header_sticky(){
if($('#pxl-header-elementor').hasClass('is-sticky')){
if(pxl_scroll_top > 100){
$('.pxl-header-elementor-sticky.pxl-sticky-stb').addClass('pxl-header-fixed');
}else{
$('.pxl-header-elementor-sticky.pxl-sticky-stb').removeClass('pxl-header-fixed');
}
if(pxl_scroll_status=='up'&&pxl_scroll_top > 100){
$('.pxl-header-elementor-sticky.pxl-sticky-stt').addClass('pxl-header-fixed');
}else{
$('.pxl-header-elementor-sticky.pxl-sticky-stt').removeClass('pxl-header-fixed');
}}
$('.pxl-header-elementor-sticky').parents('body').addClass('pxl-header-sticky');
}
function soluris_smooth_scroll(){
if($('body').hasClass('pxl-smooth-scroll')){
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t||self).Lenis=e()}(this,function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function e(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}function i(){return i=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t},i.apply(this,arguments)}function o(t,e){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},o(t,e)}function n(){}n.prototype={on:function(t,e,i){var o=this.e||(this.e={});return(o[t]||(o[t]=[])).push({fn:e,ctx:i}),this},once:function(t,e,i){var o=this;function n(){o.off(t,n),e.apply(i,arguments)}return n._=e,this.on(t,n,i)},emit:function(t){for(var e=[].slice.call(arguments,1),i=((this.e||(this.e={}))[t]||[]).slice(),o=0,n=i.length;o<n;o++)i[o].fn.apply(i[o].ctx,e);return this},off:function(t,e){var i=this.e||(this.e={}),o=i[t],n=[];if(o&&e)for(var r=0,s=o.length;r<s;r++)o[r].fn!==e&&o[r].fn._!==e&&n.push(o[r]);return n.length?i[t]=n:delete i[t],this}};var r=n;n.TinyEmitter=r,"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var s=function(t){var e={exports:{}};return function(t,e){t.exports=function(){var t=0;function e(e){return"__private_"+t+++"_"+e}function i(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}function o(){}o.prototype={on:function(t,e,i){var o=this.e||(this.e={});return(o[t]||(o[t]=[])).push({fn:e,ctx:i}),this},once:function(t,e,i){var o=this;function n(){o.off(t,n),e.apply(i,arguments)}return n._=e,this.on(t,n,i)},emit:function(t){for(var e=[].slice.call(arguments,1),i=((this.e||(this.e={}))[t]||[]).slice(),o=0,n=i.length;o<n;o++)i[o].fn.apply(i[o].ctx,e);return this},off:function(t,e){var i=this.e||(this.e={}),o=i[t],n=[];if(o&&e)for(var r=0,s=o.length;r<s;r++)o[r].fn!==e&&o[r].fn._!==e&&n.push(o[r]);return n.length?i[t]=n:delete i[t],this}};var n=o;n.TinyEmitter=o;var r,s="virtualscroll",l=e("options"),h=e("el"),a=e("emitter"),c=e("event"),u=e("touchStart"),d=e("bodyTouchAction");return function(){function t(t){var e=this;Object.defineProperty(this,l,{writable:!0,value:void 0}),Object.defineProperty(this,h,{writable:!0,value:void 0}),Object.defineProperty(this,a,{writable:!0,value:void 0}),Object.defineProperty(this,c,{writable:!0,value:void 0}),Object.defineProperty(this,u,{writable:!0,value:void 0}),Object.defineProperty(this,d,{writable:!0,value:void 0}),this._onWheel=function(t){var o=i(e,l)[l],n=i(e,c)[c];n.deltaX=t.wheelDeltaX||-1*t.deltaX,n.deltaY=t.wheelDeltaY||-1*t.deltaY,r.isFirefox&&1===t.deltaMode&&(n.deltaX*=o.firefoxMultiplier,n.deltaY*=o.firefoxMultiplier),n.deltaX*=o.mouseMultiplier,n.deltaY*=o.mouseMultiplier,e._notify(t)},this._onMouseWheel=function(t){var o=i(e,c)[c];o.deltaX=t.wheelDeltaX?t.wheelDeltaX:0,o.deltaY=t.wheelDeltaY?t.wheelDeltaY:t.wheelDelta,e._notify(t)},this._onTouchStart=function(t){var o=t.targetTouches?t.targetTouches[0]:t;i(e,u)[u].x=o.pageX,i(e,u)[u].y=o.pageY},this._onTouchMove=function(t){var o=i(e,l)[l];o.preventTouch&&!t.target.classList.contains(o.unpreventTouchClass)&&t.preventDefault();var n=i(e,c)[c],r=t.targetTouches?t.targetTouches[0]:t;n.deltaX=(r.pageX-i(e,u)[u].x)*o.touchMultiplier,n.deltaY=(r.pageY-i(e,u)[u].y)*o.touchMultiplier,i(e,u)[u].x=r.pageX,i(e,u)[u].y=r.pageY,e._notify(t)},this._onKeyDown=function(t){var o=i(e,c)[c];o.deltaX=o.deltaY=0;var n=window.innerHeight-40;switch(t.keyCode){case 37:case 38:o.deltaY=i(e,l)[l].keyStep;break;case 39:case 40:o.deltaY=-i(e,l)[l].keyStep;break;case 32:o.deltaY=n*(t.shiftKey?1:-1);break;default:return}e._notify(t)},i(this,h)[h]=window,t&&t.el&&(i(this,h)[h]=t.el,delete t.el),r||(r={hasWheelEvent:"onwheel"in document,hasMouseWheelEvent:"onmousewheel"in document,hasTouch:"ontouchstart"in document,hasTouchWin:navigator.msMaxTouchPoints&&navigator.msMaxTouchPoints>1,hasPointer:!!window.navigator.msPointerEnabled,hasKeyDown:"onkeydown"in document,isFirefox:navigator.userAgent.indexOf("Firefox")>-1}),i(this,l)[l]=Object.assign({mouseMultiplier:1,touchMultiplier:2,firefoxMultiplier:15,keyStep:120,preventTouch:!1,unpreventTouchClass:"vs-touchmove-allowed",useKeyboard:!0,useTouch:!0},t),i(this,a)[a]=new n,i(this,c)[c]={y:0,x:0,deltaX:0,deltaY:0},i(this,u)[u]={x:null,y:null},i(this,d)[d]=null,void 0!==i(this,l)[l].passive&&(this.listenerOptions={passive:i(this,l)[l].passive})}var e=t.prototype;return e._notify=function(t){var e=i(this,c)[c];e.x+=e.deltaX,e.y+=e.deltaY,i(this,a)[a].emit(s,{x:e.x,y:e.y,deltaX:e.deltaX,deltaY:e.deltaY,originalEvent:t})},e._bind=function(){r.hasWheelEvent&&i(this,h)[h].addEventListener("wheel",this._onWheel,this.listenerOptions),r.hasMouseWheelEvent&&i(this,h)[h].addEventListener("mousewheel",this._onMouseWheel,this.listenerOptions),r.hasTouch&&i(this,l)[l].useTouch&&(i(this,h)[h].addEventListener("touchstart",this._onTouchStart,this.listenerOptions),i(this,h)[h].addEventListener("touchmove",this._onTouchMove,this.listenerOptions)),r.hasPointer&&r.hasTouchWin&&(i(this,d)[d]=document.body.style.msTouchAction,document.body.style.msTouchAction="none",i(this,h)[h].addEventListener("MSPointerDown",this._onTouchStart,!0),i(this,h)[h].addEventListener("MSPointerMove",this._onTouchMove,!0)),r.hasKeyDown&&i(this,l)[l].useKeyboard&&document.addEventListener("keydown",this._onKeyDown)},e._unbind=function(){r.hasWheelEvent&&i(this,h)[h].removeEventListener("wheel",this._onWheel),r.hasMouseWheelEvent&&i(this,h)[h].removeEventListener("mousewheel",this._onMouseWheel),r.hasTouch&&(i(this,h)[h].removeEventListener("touchstart",this._onTouchStart),i(this,h)[h].removeEventListener("touchmove",this._onTouchMove)),r.hasPointer&&r.hasTouchWin&&(document.body.style.msTouchAction=i(this,d)[d],i(this,h)[h].removeEventListener("MSPointerDown",this._onTouchStart,!0),i(this,h)[h].removeEventListener("MSPointerMove",this._onTouchMove,!0)),r.hasKeyDown&&i(this,l)[l].useKeyboard&&document.removeEventListener("keydown",this._onKeyDown)},e.on=function(t,e){i(this,a)[a].on(s,t,e);var o=i(this,a)[a].e;o&&o[s]&&1===o[s].length&&this._bind()},e.off=function(t,e){i(this,a)[a].off(s,t,e);var o=i(this,a)[a].e;(!o[s]||o[s].length<=0)&&this._unbind()},e.destroy=function(){i(this,a)[a].off(),this._unbind()},t}()}()}(e),e.exports}();function l(t,e){var i=t%e;return(e>0&&i<0||e<0&&i>0)&&(i+=e),i}var h=["duration","easing"],a=function(){function t(){}var o=t.prototype;return o.to=function(t,e){var o=this,n=void 0===e?{}:e,r=n.duration,s=void 0===r?1:r,l=n.easing,a=void 0===l?function(t){return t}:l,c=function(t,e){if(null==t)return{};var i,o,n={},r=Object.keys(t);for(o=0;o<r.length;o++)e.indexOf(i=r[o])>=0||(n[i]=t[i]);return n}(n,h);this.target=t,this.fromKeys=i({},c),this.toKeys=i({},c),this.keys=Object.keys(i({},c)),this.keys.forEach(function(e){o.fromKeys[e]=t[e]}),this.duration=s,this.easing=a,this.currentTime=0,this.isRunning=!0},o.stop=function(){this.isRunning=!1},o.raf=function(t){var e=this;if(this.isRunning){this.currentTime=Math.min(this.currentTime+t,this.duration);var i=this.progress>=1?1:this.easing(this.progress);this.keys.forEach(function(t){var o=e.fromKeys[t];e.target[t]=o+(e.toKeys[t]-o)*i}),1===i&&this.stop()}},e(t,[{key:"progress",get:function(){return this.currentTime/this.duration}}]),t}();
return function(t){var i,n;function r(e){var i,o,n,r,l=void 0===e?{}:e,h=l.duration,c=void 0===h?1.2:h,u=l.easing,d=void 0===u?function(t){return Math.min(1,1.001-Math.pow(2,-10*t))}:u,p=l.smooth,f=void 0===p||p,v=l.mouseMultiplier,w=void 0===v?1:v,y=l.smoothTouch,m=void 0!==y&&y,g=l.touchMultiplier,b=void 0===g?2:g,T=l.direction,M=void 0===T?"vertical":T,S=l.gestureDirection,_=void 0===S?"vertical":S,O=l.infinite,E=void 0!==O&&O,W=l.wrapper,x=void 0===W?window:W,D=l.content,N=void 0===D?document.body:D;(r=t.call(this)||this).onWindowResize=function(){r.wrapperWidth=window.innerWidth,r.wrapperHeight=window.innerHeight},r.onWrapperResize=function(t){var e=t[0];if(e){var i=e.contentRect;r.wrapperWidth=i.width,r.wrapperHeight=i.height}},r.onContentResize=function(t){var e=t[0];if(e){var i=e.contentRect;r.contentWidth=i.width,r.contentHeight=i.height}},r.onVirtualScroll=function(t){var e=t.deltaY,i=t.deltaX,o=t.originalEvent;if(!("vertical"===r.gestureDirection&&0===e||"horizontal"===r.gestureDirection&&0===i)){var n=!!o.composedPath().find(function(t){return t.hasAttribute&&t.hasAttribute("data-lenis-prevent")});o.ctrlKey||n||(r.smooth=o.changedTouches?r.smoothTouch:r.options.smooth,r.stopped?o.preventDefault():r.smooth&&4!==o.buttons&&(r.smooth&&o.preventDefault(),r.targetScroll-="both"===r.gestureDirection?i+e:"horizontal"===r.gestureDirection?i:e,r.scrollTo(r.targetScroll)))}},r.onScroll=function(t){r.isScrolling&&r.smooth||(r.targetScroll=r.scroll=r.lastScroll=r.wrapperNode[r.scrollProperty],r.notify())},window.lenisVersion="0.2.28",r.options={duration:c,easing:d,smooth:f,mouseMultiplier:w,smoothTouch:m,touchMultiplier:b,direction:M,gestureDirection:_,infinite:E,wrapper:x,content:N},r.duration=c,r.easing=d,r.smooth=f,r.mouseMultiplier=w,r.smoothTouch=m,r.touchMultiplier=b,r.direction=M,r.gestureDirection=_,r.infinite=E,r.wrapperNode=x,r.contentNode=N,r.wrapperNode.addEventListener("scroll",r.onScroll),r.wrapperNode===window?(r.wrapperNode.addEventListener("resize",r.onWindowResize),r.onWindowResize()):(r.wrapperHeight=r.wrapperNode.offsetHeight,r.wrapperWidth=r.wrapperNode.offsetWidth,r.wrapperObserver=new ResizeObserver(r.onWrapperResize),r.wrapperObserver.observe(r.wrapperNode)),r.contentHeight=r.contentNode.offsetHeight,r.contentWidth=r.contentNode.offsetWidth,r.contentObserver=new ResizeObserver(r.onContentResize),r.contentObserver.observe(r.contentNode),r.targetScroll=r.scroll=r.lastScroll=r.wrapperNode[r.scrollProperty],r.animate=new a;var P=(null==(i=navigator)||null==(o=i.userAgentData)?void 0:o.platform)||(null==(n=navigator)?void 0:n.platform)||"unknown";return r.virtualScroll=new s({el:r.wrapperNode,firefoxMultiplier:50,mouseMultiplier:r.mouseMultiplier*(P.includes("Win")||P.includes("Linux")?.84:.4),touchMultiplier:r.touchMultiplier,passive:!1,useKeyboard:!1,useTouch:!0}),r.virtualScroll.on(r.onVirtualScroll),r}n=t,(i=r).prototype=Object.create(n.prototype),i.prototype.constructor=i,o(i,n);var h=r.prototype;return h.start=function(){var t=this.wrapperNode;this.wrapperNode===window&&(t=document.documentElement),t.classList.remove("lenis-stopped"),this.stopped=!1},h.stop=function(){var t=this.wrapperNode;this.wrapperNode===window&&(t=document.documentElement),t.classList.add("lenis-stopped"),this.stopped=!0,this.animate.stop()},h.destroy=function(){var t;this.wrapperNode===window&&this.wrapperNode.removeEventListener("resize",this.onWindowResize),this.wrapperNode.removeEventListener("scroll",this.onScroll),this.virtualScroll.destroy(),null==(t=this.wrapperObserver)||t.disconnect(),this.contentObserver.disconnect()},h.raf=function(t){var e=t-(this.now||0);this.now=t,!this.stopped&&this.smooth&&(this.lastScroll=this.scroll,this.animate.raf(.001*e),this.scroll===this.targetScroll&&(this.lastScroll=this.scroll),this.isScrolling&&(this.setScroll(this.scroll),this.notify()),this.isScrolling=this.scroll!==this.targetScroll)},h.setScroll=function(t){var e=this.infinite?l(t,this.limit):t;"horizontal"===this.direction?this.wrapperNode.scrollTo(e,0):this.wrapperNode.scrollTo(0,e)},h.notify=function(){var t=this.infinite?l(this.scroll,this.limit):this.scroll;this.emit("scroll",{scroll:t,limit:this.limit,velocity:this.velocity,direction:0===this.velocity?0:this.velocity>0?1:-1,progress:t/this.limit})},h.scrollTo=function(t,e){var i=void 0===e?{}:e,o=i.offset,n=void 0===o?0:o,r=i.immediate,s=void 0!==r&&r,l=i.duration,h=void 0===l?this.duration:l,a=i.easing,c=void 0===a?this.easing:a;if(null!=t&&!this.stopped){var u;if("number"==typeof t)u=t;else if("top"===t||"#top"===t)u=0;else if("bottom"===t)u=this.limit;else{var d;if("string"==typeof t)d=document.querySelector(t);else{if(null==t||!t.nodeType)return;d=t}if(!d)return;var p=0;if(this.wrapperNode!==window){var f=this.wrapperNode.getBoundingClientRect();p="horizontal"===this.direction?f.left:f.top}var v=d.getBoundingClientRect();u=("horizontal"===this.direction?v.left:v.top)+this.scroll-p}u+=n,this.targetScroll=this.infinite?u:Math.max(0,Math.min(u,this.limit)),!this.smooth||s?(this.animate.stop(),this.scroll=this.lastScroll=this.targetScroll,this.setScroll(this.targetScroll)):this.animate.to(this,{duration:h,easing:c,scroll:this.targetScroll})}},e(r,[{key:"scrollProperty",get:function(){return this.wrapperNode===window?"horizontal"===this.direction?"scrollX":"scrollY":"horizontal"===this.direction?"scrollLeft":"scrollTop"}},{key:"limit",get:function(){return"horizontal"===this.direction?this.contentWidth-this.wrapperWidth:this.contentHeight-this.wrapperHeight}},{key:"velocity",get:function(){return this.scroll-this.lastScroll}}]),r}(r)});
const lenis=new Lenis({
duration: 1.2,
easing: (t)=> Math.min(1, 1.001 - Math.pow(2, -10 * t)),
direction: 'vertical',
gestureDirection: 'vertical',
smooth: true,
mouseMultiplier: 1,
smoothTouch: false,
touchMultiplier: 2,
infinite: false,
})
function raf(time){
lenis.raf(time)
requestAnimationFrame(raf)
}
requestAnimationFrame(raf)
}}
function soluris_svg_stroke(){
var $svgElement=$('.pxl-heading--inner .pxl-item--svg-stroke');
var $textElement=$('.pxl-heading--inner .pxl-item-text--svg-stroke');
if($textElement.getBBox){
var bbox=$textElement[0].getBBox();
$svgElement.attr('width', bbox.width);
$svgElement.attr('height', bbox.height);
}}
function soluris_scroll_to_top(){
if(pxl_scroll_top < pxl_window_height){
$('.pxl-scroll-top').addClass('pxl-off').removeClass('pxl-on');
}
if(pxl_scroll_top > pxl_window_height){
$('.pxl-scroll-top').addClass('pxl-on').removeClass('pxl-off');
}}
function soluris_footer_fixed(){
setTimeout(function(){
var h_footer=$('.pxl-footer-fixed #pxl-footer-elementor').outerHeight() - 1;
$('.pxl-footer-fixed #pxl-main').css('margin-bottom', h_footer + 'px');
}, 600);
}
function soluris_document_click(){
$(document).on('click',function (e){
var target=$(e.target);
var check='.btn-nav-mobile';
if(!(target.is(check))&&target.closest('.pxl-hidden-template').length <=0&&$('body').hasClass('side-panel-open')){
$('.btn-nav-mobile').removeClass('cliked');
$('.pxl-hidden-template').removeClass('open');
$('body').removeClass('side-panel-open');
}});
$(document).on('click','.pxl-close',function(e){
e.preventDefault();
e.stopPropagation();
$(this).closest('.pxl-hidden-template').toggleClass('open');
$('.btn-nav-mobile').removeClass('cliked');
$('body').toggleClass('side-panel-open');
});
}
function soluris_popover(){
$(document).ready(function(){
$('[data-toggle="popover"]').popover();
});
}
function soluris_tooltip(){
$('.tooltips').append("<span></span>");
$('.tooltips:not([tooltip-position])').attr('tooltip-position','bottom');
$(".tooltips").mouseenter(function(){
$(this).find('span').empty().append($(this).attr('tooltip'));
});
}
function soluris_quantity_icon(){
$('#pxl-main .quantity').append('<span class="quantity-icon"><i class="quantity-down fas fa-sort-down"></i><i class="quantity-up fas fa-sort-up"></i></span>');
$('.quantity-up').on('click', function (){
$(this).parents('.quantity').find('input[type="number"]').get(0).stepUp();
});
$('.quantity-down').on('click', function (){
$(this).parents('.quantity').find('input[type="number"]').get(0).stepDown();
});
$('.woocommerce-cart-form .actions .button').removeAttr('disabled');
}
jQuery(document).on('updated_wc_div', function(){
soluris_quantity_icon();
});
jQuery(document).ajaxComplete(function(event, xhr, settings){
soluris_svg_stroke();
});
})(jQuery);
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=116)}({116:function(e,t,n){"use strict";n.r(t);var r=function(e){return"string"!=typeof e||""===e?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(e)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)};var o=function(e){return"string"!=typeof e||""===e?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(e)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(e)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)};var i=function(e,t){return function(n,i,a){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10,l=e[t];if(o(n)&&r(i))if("function"==typeof a)if("number"==typeof s){var c={callback:a,priority:s,namespace:i};if(l[n]){var u,d=l[n].handlers;for(u=d.length;u>0&&!(s>=d[u-1].priority);u--);u===d.length?d[u]=c:d.splice(u,0,c),l.__current.forEach((function(e){e.name===n&&e.currentIndex>=u&&e.currentIndex++}))}else l[n]={handlers:[c],runs:0};"hookAdded"!==n&&e.doAction("hookAdded",n,i,a,s)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}};var a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(i,a){var s=e[t];if(o(i)&&(n||r(a))){if(!s[i])return 0;var l=0;if(n)l=s[i].handlers.length,s[i]={runs:s[i].runs,handlers:[]};else for(var c=s[i].handlers,u=function(e){c[e].namespace===a&&(c.splice(e,1),l++,s.__current.forEach((function(t){t.name===i&&t.currentIndex>=e&&t.currentIndex--})))},d=c.length-1;d>=0;d--)u(d);return"hookRemoved"!==i&&e.doAction("hookRemoved",i,a),l}}};var s=function(e,t){return function(n,r){var o=e[t];return void 0!==r?n in o&&o[n].handlers.some((function(e){return e.namespace===r})):n in o}};var l=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(r){var o=e[t];o[r]||(o[r]={handlers:[],runs:0}),o[r].runs++;var i=o[r].handlers;for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];if(!i||!i.length)return n?s[0]:void 0;var c={name:r,currentIndex:0};for(o.__current.push(c);c.currentIndex<i.length;){var u=i[c.currentIndex],d=u.callback.apply(null,s);n&&(s[0]=d),c.currentIndex++}return o.__current.pop(),n?s[0]:void 0}};var c=function(e,t){return function(){var n,r,o=e[t];return null!==(n=null===(r=o.__current[o.__current.length-1])||void 0===r?void 0:r.name)&&void 0!==n?n:null}};var u=function(e,t){return function(n){var r=e[t];return void 0===n?void 0!==r.__current[0]:!!r.__current[0]&&n===r.__current[0].name}};var d=function(e,t){return function(n){var r=e[t];if(o(n))return r[n]&&r[n].runs?r[n].runs:0}},f=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.actions=Object.create(null),this.actions.__current=[],this.filters=Object.create(null),this.filters.__current=[],this.addAction=i(this,"actions"),this.addFilter=i(this,"filters"),this.removeAction=a(this,"actions"),this.removeFilter=a(this,"filters"),this.hasAction=s(this,"actions"),this.hasFilter=s(this,"filters"),this.removeAllActions=a(this,"actions",!0),this.removeAllFilters=a(this,"filters",!0),this.doAction=l(this,"actions"),this.applyFilters=l(this,"filters",!0),this.currentAction=c(this,"actions"),this.currentFilter=c(this,"filters"),this.doingAction=u(this,"actions"),this.doingFilter=u(this,"filters"),this.didAction=d(this,"actions"),this.didFilter=d(this,"filters")};var h=function(){return new f},p=h();p.addAction,p.addFilter,p.removeAction,p.removeFilter,p.hasAction,p.hasFilter,p.removeAllActions,p.removeAllFilters,p.doAction,p.applyFilters,p.currentAction,p.currentFilter,p.doingAction,p.doingFilter,p.didAction,p.didFilter,p.actions,p.filters;function v(e){return(v="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 m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=v(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==v(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}window.isEditMode=!1,window.eael=window.ea={hooks:h(),isEditMode:!1,elementStatusCheck:function(e){return!(!window.eaElementList||!(e in window.eaElementList))||(window.eaElementList=y(y({},window.eaElementList),{},g({},e,!0)),!1)},debounce:function(e,t){var n;return function(){var r=this,o=arguments;clearTimeout(n),n=setTimeout((function(){e.apply(r,o)}),t)}}},eael.hooks.addAction("widgets.reinit","ea",(function(e){var t=jQuery(".eael-filter-gallery-container",e),n=jQuery(".eael-post-grid:not(.eael-post-carousel)",e),r=jQuery(".eael-twitter-feed-masonry",e),o=jQuery(".eael-instafeed",e),i=jQuery(".premium-gallery-container",e),a=jQuery(".eael-event-calendar-cls",e),s=jQuery(".eael-testimonial-slider",e),l=jQuery(".eael-tm-carousel",e),c=jQuery(".eael-post-carousel:not(.eael-post-grid)",e),u=jQuery(".eael-logo-carousel",e),d=jQuery(".eael-twitter-feed-carousel",e);t.length&&t.isotope("layout"),n.length&&n.isotope("layout"),r.length&&r.isotope("layout"),o.length&&o.isotope("layout"),i.length&&i.isotope("layout"),a.length&&eael.hooks.doAction("eventCalendar.reinit"),s.length&&eael.hooks.doAction("testimonialSlider.reinit"),l.length&&eael.hooks.doAction("teamMemberCarousel.reinit"),c.length&&eael.hooks.doAction("postCarousel.reinit"),u.length&&eael.hooks.doAction("logoCarousel.reinit"),d.length&&eael.hooks.doAction("twitterCarousel.reinit")}));var w,b=function(e){void 0===window.eaelPreventResizeOnClick&&window.dispatchEvent(new Event("resize")),(e="object"===v(e)?e:jQuery(e)).find(".swiper-wrapper").each((function(){var e=jQuery(this).css("transform");jQuery(this).css("transform",e)}))};eael.hooks.addAction("ea-advanced-tabs-triggered","ea",b),eael.hooks.addAction("ea-advanced-accordion-triggered","ea",b),jQuery(window).on("elementor/frontend/init",(function(){window.isEditMode=elementorFrontend.isEditMode(),window.eael.isEditMode=elementorFrontend.isEditMode(),eael.hooks.doAction("init"),eael.isEditMode&&eael.hooks.doAction("editMode.init")})),function(e){eael.getToken=function(){localize.nonce&&!eael.noncegenerated&&e.ajax({url:localize.ajaxurl,type:"post",data:{action:"eael_get_token"},success:function(e){e.success&&(localize.nonce=e.data.nonce,eael.noncegenerated=!0)}})},eael.sanitizeURL=function(e){if(e.startsWith("/")||e.startsWith("#"))return e;try{var t=new URL(e);if(!["http:","https:","ftp:","ftps:","mailto:","news:","irc:","irc6:","ircs:","gopher:","nntp:","feed:","telnet:","mms:","rtsp:","sms:","svn:","tel:","fax:","xmpp:","webcal:","urn:"].includes(t.protocol))throw new Error("Invalid protocol");return t.toString()}catch(e){return console.error("Error sanitizing URL:",e.message),"#"}};var t=!0;window.addEventListener("hashchange",(function(){if(t){var n=window.location.hash.substr(1);"undefined"!==(n="safari"===n?"eael-safari":n)&&n&&/^[A-Za-z][-A-Za-z0-9_:.]*$/.test(n)&&e("#"+n).trigger("click")}})),e("a").on("click",(function(n){var r,o=e(this).attr("href");(r=(o=void 0===o?"":o).startsWith("#"))||(r=(o=o.replace(localize.page_permalink,"")).startsWith("#")),r&&(t=!1,setTimeout((function(){t=!0}),100));try{if(o.startsWith("#!")){var i=o.replace("#!","#");e(i).trigger("click")}else if(r&&(e(o).hasClass("eael-tab-item-trigger")||e(o).hasClass("eael-accordion-header"))&&(e(o).trigger("click"),void 0!==o&&o)){var a=e(o).closest(".eael-advance-tabs");if(a.length>0){var s=a.data("custom-id-offset");s=s?parseFloat(s):0,e("html, body").animate({scrollTop:e(o).offset().top-s},300)}}}catch(e){}})),e(document).on("click",".e-n-tab-title",(function(){setTimeout((function(){window.dispatchEvent(new Event("resize"))}),100)}))}(jQuery),(w=jQuery)(document).on("click",".theme-savoy .eael-product-popup .nm-qty-minus, .theme-savoy .eael-product-popup .nm-qty-plus",(function(e){var t=w(this),n=t.closest(".quantity").find(".qty"),r=parseFloat(n.val()),o=parseFloat(n.attr("max")),i=parseFloat(n.attr("min")),a=n.attr("step");r&&""!==r&&"NaN"!==r||(r=0),""!==o&&"NaN"!==o||(o=""),""!==i&&"NaN"!==i||(i=0),"any"!==a&&""!==a&&void 0!==a&&"NaN"!==parseFloat(a)||(a=1),t.hasClass("nm-qty-plus")?o&&(o==r||r>o)?n.val(o):n.val(r+parseFloat(a)):i&&(i==r||r<i)?n.val(i):r>0&&n.val(r-parseFloat(a))})),function(e){e.fn.isInViewport=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2;if(e(this).length<1)return!1;var n=e(this).offset().top,r=n+e(this).outerHeight()/t,o=e(window).scrollTop(),i=o+e(window).height()/t;return r>o&&n<i},e(document).ready((function(){var e=new URLSearchParams(location.search);if(e.has("popup-selector")&&(e.has("eael-lostpassword")||e.has("eael-resetpassword"))){var t=e.get("popup-selector");t.length&&/^[A-Za-z.#][A-Za-z0-9_:.#\s-]*$/.test(t)&&(t=t.replace(/_/g," "),setTimeout((function(){jQuery(t).trigger("click")}),300))}})),e(document).on("click",".eael-onpage-edit-template",(function(){var t=e(this),n=t.data("eael-template-id"),r=t.data("page-id"),o=t.data("mode");"edit"===o?(parent.window.$e.internal("panel/state-loading"),parent.window.$e.run("editor/documents/switch",{id:parseInt(n)}).then((function(){t.data("mode","save"),t.find("span").text("Save & Back"),t.find("i").addClass("eicon-arrow-left").removeClass("eicon-edit"),t.closest(".eael-onpage-edit-template-wrapper").addClass("eael-onpage-edit-activate").parent().addClass("eael-widget-otea-active"),parent.window.$e.internal("panel/state-ready")}))):"save"===o&&(parent.window.$e.internal("panel/state-loading"),parent.window.$e.run("editor/documents/switch",{id:parseInt(r),mode:"save",shouldScroll:!1}).then((function(){parent.window.$e.internal("panel/state-ready"),t.data("mode","edit")})))}))}(jQuery)}});