(function ($){
"use strict";
const WGLMathUtils={
map: (x, a, b, c, d)=> (x - a) * (d - c) / (b - a) + c,
lerp: (a, b, n)=> (1 - n) * a + n * b,
};
const wglGetWinSize=()=> {
return {
width: window.innerWidth,
height: window.innerHeight
};};
let wglWinSize=wglGetWinSize();
window.addEventListener('resize', ()=> wglWinSize=wglGetWinSize());
class WGLTextPathHandlerClass extends elementorModules.frontend.handlers.Base {
getDefaultSettings(){
return {
selectors: {
pathContainer: '.wgl-text-path',
svg: '.wgl-text-path > svg',
line: '.wgl-text-path > .simple_line',
}};}
getDefaultElements(){
var _this$getSettings=this.getSettings(),
selectors=_this$getSettings.selectors;
var element=this.$element[0];
return {
widgetWrapper: element,
pathContainer: element.querySelector(selectors.pathContainer),
svg: element.querySelector(selectors.svg),
line: element.querySelector(selectors.line),
textPath: element.querySelector(selectors.textPath)
};}
fetchSVG(){
const {
url
}=this.elements.pathContainer.dataset;
if(!url||!url.endsWith('.svg')){
return Promise.reject(url);
}
return fetch(url).then(res=> res.text()).then(svg=> {
this.elements.pathContainer.innerHTML=svg;
this.elements=this.getDefaultElements();
});
}
onInit(){
this.elements=this.getDefaultElements();
if(this.elements.pathContainer.dataset.url){
this.fetchSVG().then(()=> {
this.initSVG();
});
}else{
this.initSVG();
}}
initSVG(){
this.pathId=`wgl-path-${this.elements.widgetWrapper.dataset.id}`;
this.textPathId=`wgl-text-path-${this.elements.widgetWrapper.dataset.id}`;
if(!this.elements.svg&&!this.elements.line){
return;
}
this.getPropertyPosition();
this.initTextPath();
this.initAnimation();
}
mobilecheck(){
var check=false;
(function(a){if(/(android|ipad|playbook|silk|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm(os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s)|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp(i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac(|\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt(|\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg(g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v)|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v)|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-|)|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0,4)))check=true})(navigator.userAgent||navigator.vendor||window.opera);
return check;
}
initAnimation(){
if(this.elements.pathContainer.classList.contains("loop_animation")){
window.addEventListener('resize', ()=> {
this.getPropertyPosition();
this.appendAnimate();
});
if(this.elements.pathContainer.classList.contains("clone_text")){
window.addEventListener('resize', ()=> {
this.cloneText();
});
}
if(this.elements.line){
this.animate_line();
if(!this.mobilecheck()){
window.addEventListener('resize', this.debounce(()=> {
this.createMarquee();
}), false);
}else{
screen.orientation.addEventListener('change', this.debounce(()=> {
this.createMarquee();
}), false);
}}
if(this.elements.pathContainer.classList.contains("stop_on_hover")
&& this.elements.svg
){
this.elements.svg.addEventListener('mouseenter', e=> {
this.elements.svg.pauseAnimations();
});
this.elements.svg.addEventListener('touchstart', e=> {
this.elements.svg.pauseAnimations();
});
this.elements.svg.addEventListener('touchend', e=> {
this.elements.svg.unpauseAnimations();
});
this.elements.svg.addEventListener('mouseleave', e=> {
this.elements.svg.unpauseAnimations();
});
}}
if(this.elements.pathContainer.classList.contains("scroll_animation")){
this.svgRect=this.elements.svg ? this.elements.svg.getBoundingClientRect():this.elements.line.getBoundingClientRect();
this.positionY=this.svgRect.top + window.pageYOffset;
window.addEventListener('resize', ()=> {
this.getPropertyPosition();
this.appendAnimate();
this.svgRect=this.elements.svg ? this.elements.svg.getBoundingClientRect():this.elements.line.getBoundingClientRect();
this.positionY=this.svgRect.top + window.pageYOffset;
});
this.observer=new IntersectionObserver((entries)=> {
entries.forEach(entry=> {
this.isVisible=entry.intersectionRatio > 0;
if(!this.isVisible){
this.update();
}});
});
this.observer.observe(this.elements.svg ? this.elements.svg:this.elements.line);
requestAnimationFrame(()=> this.render());
}
window.addEventListener('resize', ()=> {
this.textPosChange();
});
}
createMarquee(){
if('animate' in this.marquee_el&&typeof this.marquee_el.animate==='function'){
if(typeof this.marquee!=='undefined') this.marquee.cancel();
if(!this.elements.line.querySelector('.text--word')) return;
let vw=this.elements.line.querySelector('.text--word').clientWidth;
this.marquee=this.marquee_el.animate([
{ transform: 'translateX(0)', offset: 0 },
{ transform: 'translateX(-' + vw + 'px)', offset: 1 }
],
{
duration: this.animation_speed,
easing: 'linear',
delay: 0,
iterations: Infinity,
fill: 'forwards'
});
}}
animate_line(){
this.marquee=undefined;
this.marquee_el=this.elements.line.querySelector('.simple_line--wrapper');
if('animate' in this.marquee_el&&typeof this.marquee_el.animate==='function'){
this.createMarquee();
if(this.elements.pathContainer.classList.contains("stop_on_hover")){
this.marquee_el.addEventListener('mouseenter', ()=> {this.pauseMarquee()});
this.marquee_el.addEventListener('mouseleave', ()=> {this.playMarquee()});
}}
}
playMarquee(){
if(this.marquee.playState==='paused') this.marquee.play();
}
pauseMarquee(){
if(this.marquee.playState==='running') this.marquee.pause();
}
debounce(func){
var scheduled, context, args;
return function (){
context=this; args=[];
for (var i=0; i < arguments.length; ++i) args[i]=arguments[i];
!!scheduled&&window.cancelAnimationFrame(scheduled);
scheduled=window.requestAnimationFrame(function (){
func.apply(context, args);
scheduled=null;
});
}}
textPosChange(){
document.querySelectorAll('tspan.text_divider').forEach(function(e){
if(e.closest('svg')){
e.setAttribute("dy", -1 * getComputedStyle(e.closest('svg')).getPropertyValue('--top-offset'));
e.setAttribute("dx", -1 * getComputedStyle(e.closest('svg')).getPropertyValue('--left-offset'));
}});
document.querySelectorAll('tspan.divider').forEach(function(e){
if(e.closest('svg')){
e.setAttribute("dy", getComputedStyle(e.closest('svg')).getPropertyValue('--top-offset'));
e.setAttribute("dx", getComputedStyle(e.closest('svg')).getPropertyValue('--left-offset'));
}});
}
setOffset(offset, endPoint){
this.startOffset={
value: parseInt(offset),
getDefaultStartPoint: offset||0,
getDefaultEndPoint: endPoint||0,
amt: 0.1
};
if(!this.elements.textPath){
return;
}
this.elements.textPath.setAttribute('startOffset', this.elements.pathContainer.classList.contains("clone_text") ? 0:offset + '');
}
appendAnimate(){
if(!this.elements.textPath){
return;
}
if(this.elements.pathContainer.classList.contains("loop_animation")&&!this.elements.pathContainer.classList.contains("clone_text")
){
if(this.elements.svg.querySelector('animate')){
this.elements.svg.querySelector('animate').remove();
}
if(this.elements.pathContainer.dataset.typeSvg!=='circle'){
this.elements.textPath.insertAdjacentHTML('beforeend', '<animate attributeName="startOffset" from="'+this.startPoint +'" to="'+ this.endPoint +'" begin="0s" dur="'+(this.animation_speed/1000)+'s" repeatCount="indefinite"/>');
}
if(this.elements.pathContainer.dataset.typeSvg==='circle'){
this.elements.pathContainer.classList.add('rotate_circle');
this.elements.svg.style.animationDuration=this.animation_speed/1000 + 's';
}}
}
cloneText(){
if(!this.elements.textPath&&!this.elements.line){
return;
}
let animation_speed=this.animation_speed;
let to=this.endPoint;
let from=this.startPoint;
let backspace=this.elements.pathContainer.dataset.backspaceCount;
if(this.elements.line){
this.elements.line.querySelector('.simple_line--wrapper').innerHTML='';
}
this.word.innerHTML=this.getDefautWord;
this.width=Math.ceil(this.elements.textPath ? this.elements.textPath.getBBox().width:this.word.querySelector('.text--word').getBoundingClientRect().width);
this.times=Math.ceil(window.innerWidth / this.width);
if(this.elements.textPath){
this.elements.textPath.parentNode.style.width=`${(this.times + 1) * this.width}px`;
}else{
this.elements.line.querySelector('.simple_line--wrapper').style.width=`${(this.times + 1) * this.width}px`;
}
let countItem=0;
let i;
if(this.times!==Infinity&&this.times < 100){
let times_item=this.elements.pathContainer.classList.contains("clone_text")&&this.elements.pathContainer.classList.contains("scroll_animation") ? 2 * this.times:this.times;
for (i=0; i < times_item; i++){
let space='';
for (let k=0; k <=backspace; k++){
space +='\u00A0';
countItem++;
}
if(this.elements.textPath){
this.word.insertAdjacentHTML('beforeend', space);
}else{
this.word.querySelectorAll('.text--word')[i].insertAdjacentHTML('beforeend', space);
}
if(this.elements.pathContainer.classList.contains("add_divider")
){
if(this.elements.textPath){
this.word.insertAdjacentHTML('beforeend', '<tspan class="divider" dy="' + getComputedStyle(this.elements.svg).getPropertyValue('--top-offset') + '" dx="' + getComputedStyle(this.elements.svg).getPropertyValue('--left-offset') + '">' + this.divider() + '</tspan>');
}else{
this.word.querySelectorAll(':scope > .text--word')[i].insertAdjacentHTML('beforeend', '<span class="divider">' + this.divider() + '</span>');
}}
this.word.insertAdjacentHTML('beforeend', this.getDefautWord);
}
if(!this.elements.pathContainer.classList.contains("scroll_animation")
){
if(this.elements.textPath){
if(this.elements.pathContainer.dataset.typeSvg!=='circle'){
this.word.innerHTML +='<animate attributeName="startOffset" from="' + from + '" to="' + to + '" begin="0s" dur="' + (animation_speed / 1000) + 's" repeatCount="indefinite"/>';
}
if(this.elements.pathContainer.dataset.typeSvg==='circle'){
this.elements.pathContainer.classList.add('rotate_circle');
this.elements.svg.style.animationDuration=animation_speed / 1000 + 's';
}}
}}
this.textPosChange();
}
onElementChange(setting){
var _this$getElementSetti=this.getElementSettings(),
startPoint=this.elements.svg ? getComputedStyle(this.elements.svg).getPropertyValue('--start-point'):getComputedStyle(this.elements.line).getPropertyValue('--start-point'),
endPoint=this.elements.svg ? getComputedStyle(this.elements.svg).getPropertyValue('--end-point'):getComputedStyle(this.elements.line).getPropertyValue('--end-point') ,
text=_this$getElementSetti.text;
this.animation_speed=_this$getElementSetti.animation_speed;
switch (setting){
case 'start_point':
case 'end_point':
case 'start_point_mobile':
case 'start_point_mobile_extra':
case 'start_point_tablet':
case 'start_point_tablet_extra':
case 'start_point_laptop':
case 'start_point_desktop':
case 'start_point_widescreen':
case 'end_point_mobile':
case 'end_point_mobile_extra':
case 'end_point_tablet':
case 'end_point_tablet_extra':
case 'end_point_laptop':
case 'end_point_desktop':
case 'end_point_widescreen':
this.getPropertyPosition();
this.setOffset(startPoint ? startPoint:0, endPoint ? endPoint:0);
this.appendAnimate();
break;
case 'top_offset':
case 'left_offset':
case 'top_offset_mobile':
case 'top_offset_mobile_extra':
case 'top_offset_tablet':
case 'top_offset_tablet_extra':
case 'top_offset_laptop':
case 'top_offset_desktop':
case 'top_offset_widescreen':
case 'left_offset_mobile':
case 'left_offset_mobile_extra':
case 'left_offset_tablet':
case 'left_offset_tablet_extra':
case 'left_offset_laptop':
case 'left_offset_desktop':
case 'left_offset_widescreen':
this.textPosChange();
break;
case 'text':
case 'animation_speed':
this.getPropertyPosition();
this.setText(text);
this.appendAnimate();
if(this.elements.pathContainer.classList.contains("clone_text")){
this.cloneText();
}
if(this.elements.line){
this.animate_line();
}
break;
default:
break;
}}
attachIdToPath(){
if(!this.elements.svg){
return;
}
var path=this.elements.svg.querySelector('[data-path-anchor]')||this.elements.svg.querySelector('path');
if(!path){
return;
}
path.id=this.pathId;
}
getPropertyPosition(){
this.startPoint=this.elements.svg ? getComputedStyle(this.elements.svg).getPropertyValue('--start-point'):getComputedStyle(this.elements.line).getPropertyValue('--start-point');
this.endPoint=this.elements.svg ? getComputedStyle(this.elements.svg).getPropertyValue('--end-point'):getComputedStyle(this.elements.line).getPropertyValue('--end-point');
}
initTextPath(){
var _this$getElementSetti2=this.getElementSettings();
this.animation_speed=_this$getElementSetti2.animation_speed;
var text=this.elements.pathContainer.dataset.text;
this.attachIdToPath();
if(this.elements.svg){
this.elements.svg.innerHTML +="\n\t\t\t<text>\n\t\t\t\t<textPath id=\"".concat(this.textPathId, "\" href=\"#").concat(this.pathId, "\"></textPath>\n\t\t\t</text>\n\t\t");
this.elements.textPath=this.elements.svg.querySelector("#".concat(this.textPathId));
}else if(this.elements.line){
this.elements.line.innerHTML +="<div class=\"simple_line--wrapper\"></div>";
}
this.setOffset(this.startPoint ? this.startPoint:0,  this.endPoint ?  this.endPoint:0);
this.setText(text);
}
setText(newText){
if(!newText){
return;
}
var _this$getElementSetti4;
var _this$getElementSetti3=(_this$getElementSetti4=this.getElementSettings())===null||_this$getElementSetti4===void 0 ? void 0:_this$getElementSetti4.link,
url=_this$getElementSetti3.url,
isExternal=_this$getElementSetti3.is_external,
nofollow=_this$getElementSetti3.nofollow;
var target=isExternal ? '_blank':'',
rel=nofollow ? 'nofollow':'';
if(this.elements.pathContainer.classList.contains("add_divider")
){
if(this.elements.svg){
newText='<tspan class="text_divider" dy="'+(-1 * getComputedStyle(this.elements.svg).getPropertyValue('--top-offset'))+'" dx="'+(-1 * getComputedStyle(this.elements.svg).getPropertyValue('--left-offset'))+'"> '.concat((0, newText), '</tspan>');
}else{
newText='<span class="text"> '.concat((0, newText), '</span>');
}}
if(url){
newText="<a href=\"".concat((0, this.escapeHTML)(url), "\" rel=\"").concat(rel, "\" target=\"").concat(target, "\">").concat((0, newText), "</a>");
}
if(this.elements.pathContainer.classList.contains("add_divider")
&& !this.elements.pathContainer.classList.contains("clone_text")
){
if(this.elements.svg){
newText +='<tspan class="divider" dy="'+getComputedStyle(this.elements.svg).getPropertyValue('--top-offset')+'" dx="'+getComputedStyle(this.elements.svg).getPropertyValue('--left-offset')+'">'+ this.divider() +'</tspan>';
}else{
newText +='<span class="divider_line">'+ this.divider() +'</span>';
}}
if(this.elements.svg){
this.elements.textPath.innerHTML='';
this.elements.textPath.innerHTML=newText;
}else{
let newNode=document.createElement('span');
newNode.className='text--word';
newNode.innerHTML=newText;
this.elements.line.querySelector('.simple_line--wrapper').innerHTML='';
this.elements.line.querySelector('.simple_line--wrapper').appendChild(newNode);
}
if(this.elements.pathContainer.classList.contains("clone_text")){
this.word=this.elements.svg ? this.elements.textPath:this.elements.line.querySelector('.simple_line--wrapper');
this.getDefautWord=this.word.innerHTML;
this.cloneText();
}
this.appendAnimate();
if(this.elements.svg){
var existingClone=this.elements.svg.querySelector("#".concat(this.textPathId, "-clone"));
if(existingClone){
existingClone.remove();
}
if(this.shouldReverseText()){
var clone=this.elements.textPath.cloneNode();
clone.id +='-clone';
clone.classList.add('elementor-hidden');
clone.textContent=newText;
this.elements.textPath.parentNode.appendChild(clone);
this.reverseToRTL();
}}
}
isRTL(){
var _this$getElementSetti5=this.getElementSettings(),
direction=_this$getElementSetti5.text_path_direction;
var isRTL=elementorFrontend.config.is_rtl;
if(direction){
isRTL='rtl'===direction;
}
return isRTL;
}
shouldReverseText(){
return this.isRTL()&&-1===navigator.userAgent.indexOf('Firefox');
}
escapeHTML(str){
var specialChars={
'&': '&amp;',
'<': '&lt;',
'>': '&gt;',
"'": '&#39;',
'"': '&quot;'
};
return str.replace(/[&<>'"]/g, function (tag){
return specialChars[tag]||tag;
});
}
reverseToRTL(){
var parentElement=this.elements.textPath;
parentElement=parentElement.querySelector('a')||parentElement;
var pattern=/([\u0591-\u07FF\u200F\u202B\u202E\uFB1D-\uFDFD\uFE70-\uFEFC\s$&+,:;=?@#|'<>.^*()%!-]+)/ig;
parentElement.textContent=parentElement.textContent.replace(pattern, function (word){
return word.split('').reverse().join('');
});
parentElement.setAttribute('aria-hidden', true);
}
computeOffset(){
const fromValue=parseInt(this.startOffset.getDefaultStartPoint);
const toValue=parseInt(this.startOffset.getDefaultEndPoint);
const val=WGLMathUtils.map(this.positionY - window.pageYOffset, wglWinSize.height, -1 * this.svgRect.height,  fromValue, toValue);
if(fromValue > toValue){
return Math.max(Math.min(val, fromValue), toValue);
}else{
return Math.min(Math.max(val, fromValue), toValue);
}}
updateTextPathOffset(){
if(!this.elements.textPath&&!this.elements.line){
return;
}
if(this.elements.pathContainer.dataset.typeSvg==='circle'){
let rotate=360 * this.startOffset.value / 100;
this.elements.svg.style.transform='rotate(' + rotate + 'deg)';
}else if(this.elements.pathContainer.dataset.typeSvg==='wgl_line_simple'){
this.elements.line.style.transform='translateX(' + this.startOffset.value + 'px)';
}else{
this.elements.textPath.setAttribute('startOffset', this.startOffset.value + '%');
}}
divider(){
let divider;
switch (this.elements.pathContainer.dataset.dType){
case 'star':
divider='*';
break;
case 'line':
divider='//';
break;
case 'arrow':
divider='<svg viewBox="0 0 31 31" xmlns="http://www.w3.org/2000/svg"><path d="M18.6742 30.3182L13.2701 30.2776L13.1406 13.0492L13.1316 11.8549L12.287 12.6994L5.30318 19.6833L1.44794 15.828L15.7504 1.52543L30.2803 16.0555L26.4931 19.8426L19.3983 12.7477L18.5355 11.8849L18.5447 13.105L18.6742 30.3182Z"/></svg>';
break;
case 'custom':
divider=this.elements.pathContainer.dataset.dCustom;
break;
default:
break;
}
return divider
}
update(){
const currentOffset=this.computeOffset();
this.startOffset.value=WGLMathUtils.lerp(this.startOffset.value, currentOffset, this.startOffset.amt);
this.updateTextPathOffset();
}
render(){
if(this.isVisible){
this.update();
}
requestAnimationFrame(()=> this.render());
}}
jQuery(window).on('elementor/frontend/init', function (){
const addHandler=($element)=> {
elementorFrontend.elementsHandler.addHandler(WGLTextPathHandlerClass, {
$element,
});
};
elementorFrontend.hooks.addAction('frontend/element_ready/wgl-text-path.default', addHandler);
});
})(jQuery);
(function ($){
"use strict";
jQuery(window).on('elementor/frontend/init', function (){
if(window.elementorFrontend.isEditMode()){
window.elementorFrontend.hooks.addAction('frontend/element_ready/wgl-blog.default',
function ($scope){
wglParallaxVideo();
wglBlogMasonryInit();
wglCarouselSwiper();
}
);
window.elementorFrontend.hooks.addAction('frontend/element_ready/wgl-button.default',
function ($scope){
wglButtonAnimation();
}
);
window.elementorFrontend.hooks.addAction('frontend/element_ready/wgl-carousel.default',
function ($scope){
wglCarouselSwiper();
wglCursorInit();
}
);
window.elementorFrontend.hooks.addAction('frontend/element_ready/wgl-portfolio.default',
function ($scope){
wglIsotope();
wglCarouselSwiper();
wglScrollAnimation();
wglCursorInit();
}
);
window.elementorFrontend.hooks.addAction('frontend/element_ready/wgl-gallery.default',
function ($scope){
wglImagesGallery();
wglCarouselSwiper();
wglScrollAnimation();
}
);
window.elementorFrontend.hooks.addAction('frontend/element_ready/wgl-pie-chart.default',
function ($scope){
wglPieChartInit();
}
);
window.elementorFrontend.hooks.addAction('frontend/element_ready/wgl-double-heading.default',
function ($scope){
wglCursorInit();
}
);
window.elementorFrontend.hooks.addAction('frontend/element_ready/wgl-info-box.default',
function ($scope){
wglCursorInit();
}
);
window.elementorFrontend.hooks.addAction('frontend/element_ready/wgl-service-1.default',
function ($scope){
wglCursorInit();
}
);
window.elementorFrontend.hooks.addAction('frontend/element_ready/wgl-progress-bar.default',
function ($scope){
wglProgressBarsInit($scope[0]);
}
);
window.elementorFrontend.hooks.addAction('frontend/element_ready/wgl-testimonials.default',
function ($scope){
wglCarouselSwiper();
wglCursorInit();
}
);
window.elementorFrontend.hooks.addAction('frontend/element_ready/wgl-instagram.default',
function ($scope){
wglCarouselSwiper();
}
);
window.elementorFrontend.hooks.addAction('frontend/element_ready/wgl-toggle-accordion.default',
function ($scope){
wglAccordionInit();
}
);
window.elementorFrontend.hooks.addAction('frontend/element_ready/wgl-accordion-service.default',
function ($scope){
wglServicesAccordionInit();
}
);
window.elementorFrontend.hooks.addAction('frontend/element_ready/wgl-team.default',
function ($scope){
wglIsotope();
wglCarouselSwiper();
wglScrollAnimation();
wglCursorInit();
}
);
window.elementorFrontend.hooks.addAction('frontend/element_ready/wgl-tabs.default',
function ($scope){
wglTabsInit();
wglMenuLavalamp();
}
);
window.elementorFrontend.hooks.addAction('frontend/element_ready/wgl-clients.default',
function ($scope){
wglCarouselSwiper();
}
);
window.elementorFrontend.hooks.addAction('frontend/element_ready/wgl-image-layers.default',
function ($scope){
wglImgLayers();
}
);
window.elementorFrontend.hooks.addAction('frontend/element_ready/wgl-video-popup.default',
function ($scope){
wglVideoboxInit();
}
);
window.elementorFrontend.hooks.addAction('frontend/element_ready/wgl-countdown.default',
function ($scope){
wglCountdownInit();
}
);
window.elementorFrontend.hooks.addAction('frontend/element_ready/wgl-time-line-vertical.default',
function ($scope){
wglInitTimelineAppear();
}
);
window.elementorFrontend.hooks.addAction('frontend/element_ready/wgl-striped-services.default',
function ($scope){
wglStripedServicesInit();
}
);
window.elementorFrontend.hooks.addAction('frontend/element_ready/wgl-image-comparison.default',
function ($scope){
wglImageComparison();
}
);
window.elementorFrontend.hooks.addAction('frontend/element_ready/wgl-circuit-service.default',
function ($scope){
wglCircuitService();
}
);
window.elementorFrontend.hooks.addAction('frontend/element_ready/wgl-counter.default',
function ($scope){
wglCounterInit();
wglCursorInit();
}
);
window.elementorFrontend.hooks.addAction('frontend/element_ready/wgl-menu.default',
function ($scope){
wglMenuLavalamp();
wglMobileHeader();
}
);
window.elementorFrontend.hooks.addAction('frontend/element_ready/wgl-header-search.default',
function ($scope){
wglSearchInit();
}
);
window.elementorFrontend.hooks.addAction('frontend/element_ready/wgl-header-side_panel.default',
function ($scope){
wglSidePanelInit();
}
);
window.elementorFrontend.hooks.addAction('frontend/element_ready/wgl-products-grid.default',
function ($scope){
wglIsotope();
wglCarouselSwiper();
}
);
window.elementorFrontend.hooks.addAction('frontend/element_ready/wgl-header-login.default',
function($scope){
wglWoocommerceLoginIn();
}
);
window.elementorFrontend.hooks.addAction('frontend/element_ready/wgl-showcase.default',
function($scope){
wglShowcaseInit();
wglCursorInit();
}
);
window.elementorFrontend.hooks.addAction('frontend/element_ready/wgl-time-line-horizontal.default',
function($scope){
wglTimelineHorizontal();
}
);
}});
})(jQuery);
(function($){
$.fn.appear=function(fn, options){
var settings=$.extend({
data: undefined,
one: true,
accX: 0,
accY: 0
}, options);
return this.each(function(){
var t=$(this);
t.appeared=false;
if(!fn){
t.trigger('appear', settings.data);
return;
}
var w=$(window);
var check=function(){
if(!t.is(':visible')){
t.appeared=false;
return;
}
var a=w.scrollLeft();
var b=w.scrollTop();
var o=t.offset();
var x=o.left;
var y=o.top;
var ax=settings.accX;
var ay=settings.accY;
var th=t.height();
var wh=w.height();
var tw=t.width();
var ww=w.width();
if(y + th + ay >=b &&
y <=b + wh + ay &&
x + tw + ax >=a &&
x <=a + ww + ax){
if(!t.appeared) t.trigger('appear', settings.data);
}else{
t.appeared=false;
}};
var modifiedFn=function(){
t.appeared=true;
if(settings.one){
w.unbind('scroll', check);
var i=$.inArray(check, $.fn.appear.checks);
if(i >=0) $.fn.appear.checks.splice(i, 1);
}
fn.apply(this, arguments);
};
if(settings.one) t.one('appear', settings.data, modifiedFn);
else t.bind('appear', settings.data, modifiedFn);
w.scroll(check);
$.fn.appear.checks.push(check);
(check)();
});
};
$.extend($.fn.appear, {
checks: [],
timeout: null,
checkAll: function(){
var length=$.fn.appear.checks.length;
if(length > 0){
while (length--){
try {
($.fn.appear.checks[length])();
} catch (e){}}
}},
run: function(){
if($.fn.appear.timeout) clearTimeout($.fn.appear.timeout);
$.fn.appear.timeout=setTimeout($.fn.appear.checkAll, 20);
}});
$.each(['append', 'prepend', 'after', 'before', 'attr',
'removeAttr', 'addClass', 'removeClass', 'toggleClass',
'remove', 'css', 'show', 'hide'], function(i, n){
var old=$.fn[n];
if(old){
$.fn[n]=function(){
var r=old.apply(this, arguments);
$.fn.appear.run();
return r;
}}
});
})(jQuery);
(()=>{"use strict";var e,r,a,n={},c={};function __webpack_require__(e){var r=c[e];if(void 0!==r)return r.exports;var a=c[e]={exports:{}};return n[e](a,a.exports,__webpack_require__),a.exports}__webpack_require__.m=n,e=[],__webpack_require__.O=(r,a,n,c)=>{if(!a){var b=1/0;for(o=0;o<e.length;o++){for(var[a,n,c]=e[o],i=!0,t=0;t<a.length;t++)(!1&c||b>=c)&&Object.keys(__webpack_require__.O).every(e=>__webpack_require__.O[e](a[t]))?a.splice(t--,1):(i=!1,c<b&&(b=c));if(i){e.splice(o--,1);var _=n();void 0!==_&&(r=_)}}return r}c=c||0;for(var o=e.length;o>0&&e[o-1][2]>c;o--)e[o]=e[o-1];e[o]=[a,n,c]},__webpack_require__.f={},__webpack_require__.e=e=>Promise.all(Object.keys(__webpack_require__.f).reduce((r,a)=>(__webpack_require__.f[a](e,r),r),[])),__webpack_require__.u=e=>635===e?"code-highlight.38ec4828db8d33cccbe9.bundle.min.js":519===e?"video-playlist.d48e1a11007fe8c248f8.bundle.min.js":375===e?"paypal-button.5c63e4c8f36fb06aff31.bundle.min.js":786===e?"bd4b7d0b3467c3b749da.bundle.min.js":857===e?"stripe-button.b7e32b5d713d60752c7e.bundle.min.js":581===e?"progress-tracker.7b160888e308c5f64701.bundle.min.js":961===e?"animated-headline.bc08854fb1e1a80434b2.bundle.min.js":692===e?"media-carousel.87c2cf115553a2c4f709.bundle.min.js":897===e?"carousel.e2af910b095554625156.bundle.min.js":416===e?"countdown.05b148ca20af32fc8e9f.bundle.min.js":292===e?"hotspot.737497535441dc0bc037.bundle.min.js":325===e?"form.cfd61a9174be80f835c6.bundle.min.js":543===e?"gallery.cca2358f59857ce6f62f.bundle.min.js":970===e?"lottie.55ad84218daed1323133.bundle.min.js":334===e?"nav-menu.3afa8f5eb1fef7c22561.bundle.min.js":887===e?"popup.61d4fcab8891b2e07802.bundle.min.js":535===e?"load-more.7c4417f8a727b79f546f.bundle.min.js":396===e?"posts.844727d8428792223d2f.bundle.min.js":726===e?"portfolio.3d0e387cc28c07bae511.bundle.min.js":316===e?"share-buttons.b99b5ff11c944a3a8ea9.bundle.min.js":829===e?"slides.8e9b74f1b31471377df8.bundle.min.js":158===e?"social.de5cec83bf689b2f1f01.bundle.min.js":404===e?"table-of-contents.485ffc086d8923139868.bundle.min.js":345===e?"archive-posts.0b71f7023819e3872142.bundle.min.js":798===e?"search-form.9abeafeecde90cf7e0f4.bundle.min.js":6===e?"woocommerce-menu-cart.33fbf47b819947e7a2a7.bundle.min.js":80===e?"woocommerce-purchase-summary.118e54b95a68f0ad8c09.bundle.min.js":354===e?"woocommerce-checkout-page.8391e03a51a57a42528a.bundle.min.js":4===e?"woocommerce-cart.9131ef5e40333f8066dd.bundle.min.js":662===e?"woocommerce-my-account.ab469f426496c628ac6c.bundle.min.js":621===e?"woocommerce-notices.181b8701c45ec5374829.bundle.min.js":787===e?"product-add-to-cart.a4f88a0c19e95b3912b6.bundle.min.js":993===e?"loop.1594a1df76e87a11eda2.bundle.min.js":932===e?"loop-carousel.881847b13e8fe1f8bfc2.bundle.min.js":550===e?"ajax-pagination.505018eb312c83998279.bundle.min.js":727===e?"mega-menu.857df1cf3198ae47b617.bundle.min.js":87===e?"mega-menu-stretch-content.7ed04741ba7d5a80c556.bundle.min.js":912===e?"menu-title-keyboard-handler.b3891112675eb0b0c4d5.bundle.min.js":33===e?"nested-carousel.659b0373371215e60dab.bundle.min.js":225===e?"taxonomy-filter.6526351a1205655def47.bundle.min.js":579===e?"off-canvas.82d118980fb5aa03c82b.bundle.min.js":1===e?"contact-buttons.e1605c5cfaccbff3c14b.bundle.min.js":61===e?"contact-buttons-var-10.11bf4233106e1245bd61.bundle.min.js":249===e?"floating-bars-var-2.5287acd8570f1ce2dde3.bundle.min.js":440===e?"floating-bars-var-3.e9e9c0ea3c6fb0e51c58.bundle.min.js":187===e?"search.f239247b514b4d0e8743.bundle.min.js":void 0,__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),r={},a="elementor-pro:",__webpack_require__.l=(e,n,c,b)=>{if(r[e])r[e].push(n);else{var i,t;if(void 0!==c)for(var _=document.getElementsByTagName("script"),o=0;o<_.length;o++){var u=_[o];if(u.getAttribute("src")==e||u.getAttribute("data-webpack")==a+c){i=u;break}}i||(t=!0,(i=document.createElement("script")).charset="utf-8",__webpack_require__.nc&&i.setAttribute("nonce",__webpack_require__.nc),i.setAttribute("data-webpack",a+c),i.src=e),r[e]=[n];var onScriptComplete=(a,n)=>{i.onerror=i.onload=null,clearTimeout(d);var c=r[e];if(delete r[e],i.parentNode&&i.parentNode.removeChild(i),c&&c.forEach(e=>e(n)),a)return a(n)},d=setTimeout(onScriptComplete.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=onScriptComplete.bind(null,i.onerror),i.onload=onScriptComplete.bind(null,i.onload),t&&document.head.appendChild(i)}},(()=>{var e;__webpack_require__.g.importScripts&&(e=__webpack_require__.g.location+"");var r=__webpack_require__.g.document;if(!e&&r&&(r.currentScript&&"SCRIPT"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var a=r.getElementsByTagName("script");if(a.length)for(var n=a.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=a[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),__webpack_require__.p=e})(),(()=>{var e={978:0};__webpack_require__.f.j=(r,a)=>{var n=__webpack_require__.o(e,r)?e[r]:void 0;if(0!==n)if(n)a.push(n[2]);else if(978!=r){var c=new Promise((a,c)=>n=e[r]=[a,c]);a.push(n[2]=c);var b=__webpack_require__.p+__webpack_require__.u(r),i=new Error;__webpack_require__.l(b,a=>{if(__webpack_require__.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var c=a&&("load"===a.type?"missing":a.type),b=a&&a.target&&a.target.src;i.message="Loading chunk "+r+" failed.\n("+c+": "+b+")",i.name="ChunkLoadError",i.type=c,i.request=b,n[1](i)}},"chunk-"+r,r)}else e[r]=0},__webpack_require__.O.j=r=>0===e[r];var webpackJsonpCallback=(r,a)=>{var n,c,[b,i,t]=a,_=0;if(b.some(r=>0!==e[r])){for(n in i)__webpack_require__.o(i,n)&&(__webpack_require__.m[n]=i[n]);if(t)var o=t(__webpack_require__)}for(r&&r(a);_<b.length;_++)c=b[_],__webpack_require__.o(e,c)&&e[c]&&e[c][0](),e[c]=0;return __webpack_require__.O(o)},r=self.webpackChunkelementor_pro=self.webpackChunkelementor_pro||[];r.forEach(webpackJsonpCallback.bind(null,0)),r.push=webpackJsonpCallback.bind(null,r.push.bind(r))})()})();
(self.webpackChunkelementor_pro=self.webpackChunkelementor_pro||[]).push([[313],{6550(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isScrollSnapActive=t.escapeHTML=void 0;t.escapeHTML=e=>{const t={"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"};return e.replace(/[&<>'"]/g,e=>t[e]||e)};t.isScrollSnapActive=()=>"yes"===(elementorFrontend.isEditMode()?elementor.settings.page.model.attributes?.scroll_snap:elementorFrontend.config.settings.page?.scroll_snap)},3e3(e,t,n){"use strict";var s=n(6784);n(2258);var i=s(n(4906)),o=s(n(2450)),r=s(n(4409)),a=s(n(7937)),l=s(n(8098)),c=s(n(6275)),d=s(n(3268)),u=s(n(4992));class ElementorProFrontend extends elementorModules.ViewModule{onInit(){super.onInit(),this.config=ElementorProFrontendConfig,this.modules={},this.initOnReadyComponents()}bindEvents(){jQuery(window).on("elementor/frontend/init",this.onElementorFrontendInit.bind(this))}initModules(){let e={motionFX:i.default,sticky:o.default,codeHighlight:r.default,videoPlaylist:a.default,payments:l.default,progressTracker:c.default};elementorProFrontend.trigger("elementor-pro/modules/init/before"),e=elementorFrontend.hooks.applyFilters("elementor-pro/frontend/handlers",e),jQuery.each(e,(e,t)=>{this.modules[e]=new t}),this.modules.linkActions={addAction:(...e)=>{elementorFrontend.utils.urlActions.addAction(...e)}}}onElementorFrontendInit(){this.initModules()}initOnReadyComponents(){this.utils={controls:new d.default,DropdownMenuHeightController:u.default}}}window.elementorProFrontend=new ElementorProFrontend},3268(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=class Controls{getControlValue(e,t,n){let s;return s="object"==typeof e[t]&&n?e[t][n]:e[t],s}getResponsiveControlValue(e,t,n=""){const s=elementorFrontend.getCurrentDeviceMode(),i=this.getControlValue(e,t,n);if("widescreen"===s){const s=this.getControlValue(e,`${t}_widescreen`,n);return s||0===s?s:i}const o=elementorFrontend.breakpoints.getActiveBreakpointsList({withDesktop:!0});let r=s,a=o.indexOf(s),l="";for(;a<=o.length;){if("desktop"===r){l=i;break}const s=`${t}_${r}`,c=this.getControlValue(e,s,n);if(c||0===c){l=c;break}a++,r=o[a]}return l}}},4992(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=class DropdownMenuHeightController{constructor(e){this.widgetConfig=e}calculateStickyMenuNavHeight(){this.widgetConfig.elements.$dropdownMenuContainer.css(this.widgetConfig.settings.menuHeightCssVarName,"");const e=this.widgetConfig.elements.$dropdownMenuContainer.offset().top-jQuery(window).scrollTop();return elementorFrontend.elements.$window.height()-e}calculateMenuTabContentHeight(e){return elementorFrontend.elements.$window.height()-e[0].getBoundingClientRect().top}isElementSticky(){return this.widgetConfig.elements.$element.hasClass("elementor-sticky")||this.widgetConfig.elements.$element.parents(".elementor-sticky").length}getMenuHeight(){return this.isElementSticky()?this.calculateStickyMenuNavHeight()+"px":this.widgetConfig.settings.dropdownMenuContainerMaxHeight}setMenuHeight(e){this.widgetConfig.elements.$dropdownMenuContainer.css(this.widgetConfig.settings.menuHeightCssVarName,e)}reassignMobileMenuHeight(){const e=this.isToggleActive()?this.getMenuHeight():0;return this.setMenuHeight(e)}reassignMenuHeight(e){if(!this.isElementSticky()||0===e.length)return;const t=elementorFrontend.elements.$window.height()-e[0].getBoundingClientRect().top;e.height()>t&&(e.css("height",this.calculateMenuTabContentHeight(e)+"px"),e.css("overflow-y","scroll"))}resetMenuHeight(e){this.isElementSticky()&&(e.css("height","initial"),e.css("overflow-y","visible"))}isToggleActive(){const e=this.widgetConfig.elements.$menuToggle;return this.widgetConfig.attributes?.menuToggleState?"true"===e.attr(this.widgetConfig.attributes.menuToggleState):e.hasClass(this.widgetConfig.classes.menuToggleActiveClass)}}},2258(e,t,n){"use strict";n.p=ElementorProFrontendConfig.urls.assets+"js/"},4409(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class _default extends elementorModules.Module{constructor(){super(),elementorFrontend.elementsHandler.attachHandler("code-highlight",()=>n.e(635).then(n.bind(n,7193)))}}t.default=_default},4906(e,t,n){"use strict";var s=n(6784);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=s(n(820));class _default extends elementorModules.Module{constructor(){super(),elementorFrontend.elementsHandler.attachHandler("global",i.default,null)}}t.default=_default},820(e,t,n){"use strict";var s=n(6784);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=s(n(739));class _default extends elementorModules.frontend.handlers.Base{__construct(...e){super.__construct(...e),this.toggle=elementorFrontend.debounce(this.toggle,200)}getDefaultSettings(){return{selectors:{container:".elementor-widget-container"}}}getDefaultElements(){const e=this.getSettings("selectors");let t=this.$element.find(e.container);return 0===t.length&&(t=this.$element),{$container:t}}bindEvents(){elementorFrontend.elements.$window.on("resize",this.toggle)}unbindEvents(){elementorFrontend.elements.$window.off("resize",this.toggle)}addCSSTransformEvents(){this.getElementSettings("motion_fx_motion_fx_scrolling")&&!this.isTransitionEventAdded&&(this.isTransitionEventAdded=!0,this.elements.$container.on("mouseenter",()=>{this.elements.$container.css("--e-transform-transition-duration","")}))}initEffects(){this.effects={translateY:{interaction:"scroll",actions:["translateY"]},translateX:{interaction:"scroll",actions:["translateX"]},rotateZ:{interaction:"scroll",actions:["rotateZ"]},scale:{interaction:"scroll",actions:["scale"]},opacity:{interaction:"scroll",actions:["opacity"]},blur:{interaction:"scroll",actions:["blur"]},mouseTrack:{interaction:"mouseMove",actions:["translateXY"]},tilt:{interaction:"mouseMove",actions:["tilt"]}}}prepareOptions(e){const t=this.getElementSettings(),n="motion_fx"===e?"element":"background",s={};jQuery.each(t,(n,i)=>{const o=new RegExp("^"+e+"_(.+?)_effect"),r=n.match(o);if(!r||!i)return;const a={},l=r[1];jQuery.each(t,(t,n)=>{const s=new RegExp(e+"_"+l+"_(.+)"),i=t.match(s);if(!i)return;"effect"!==i[1]&&("object"==typeof n&&(n=Object.keys(n.sizes).length?n.sizes:n.size),a[i[1]]=n)});const c=this.effects[l],d=c.interaction;s[d]||(s[d]={}),c.actions.forEach(e=>s[d][e]=a)});let i,o,r=this.$element;const a=this.getElementType();if("element"===n&&!["section","container"].includes(a)){let e;i=r,e="column"===a?".elementor-widget-wrap":".elementor-widget-container",o=r.find("> "+e),r=0===o.length?this.$element:o}const l={type:n,interactions:s,elementSettings:t,$element:r,$dimensionsElement:i,refreshDimensions:this.isEdit,range:t[e+"_range"],classes:{element:"elementor-motion-effects-element",parent:"elementor-motion-effects-parent",backgroundType:"elementor-motion-effects-element-type-background",container:"elementor-motion-effects-container",layer:"elementor-motion-effects-layer",perspective:"elementor-motion-effects-perspective"}};return l.range||"fixed"!==this.getCurrentDeviceSetting("_position")||(l.range="page"),"fixed"===this.getCurrentDeviceSetting("_position")&&(l.isFixedPosition=!0),"background"===n&&"column"===this.getElementType()&&(l.addBackgroundLayerTo=" > .elementor-element-populated"),l}activate(e){const t=this.prepareOptions(e);jQuery.isEmptyObject(t.interactions)||(this[e]=new i.default(t))}deactivate(e){this[e]&&(this[e].destroy(),delete this[e])}toggle(){const e=elementorFrontend.getCurrentDeviceMode(),t=this.getElementSettings();["motion_fx","background_motion_fx"].forEach(n=>{const s=t[n+"_devices"];(!s||-1!==s.indexOf(e))&&(t[n+"_motion_fx_scrolling"]||t[n+"_motion_fx_mouse"])?this[n]?this.refreshInstance(n):this.activate(n):this.deactivate(n)})}refreshInstance(e){const t=this[e];if(!t)return;const n=this.prepareOptions(e);t.setSettings(n),t.refresh()}onInit(){super.onInit();const e=window.matchMedia("(prefers-reduced-motion: reduce)");e&&e.matches||(this.initEffects(),this.addCSSTransformEvents(),this.toggle())}onElementChange(e){if(/motion_fx_((scrolling)|(mouse)|(devices))$/.test(e))return"motion_fx_motion_fx_scrolling"===e&&this.addCSSTransformEvents(),void this.toggle();const t=e.match(".*?(motion_fx|_transform)");if(t){const e=t[0].match("(_transform)")?"motion_fx":t[0];this.refreshInstance(e),this[e]||this.activate(e)}/^_position/.test(e)&&["motion_fx","background_motion_fx"].forEach(e=>{this.refreshInstance(e)})}onDestroy(){super.onDestroy(),["motion_fx","background_motion_fx"].forEach(e=>{this.deactivate(e)})}}t.default=_default},3039(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class _default extends elementorModules.Module{getMovePointFromPassedPercents(e,t){return+(t/e*100).toFixed(2)}getEffectValueFromMovePoint(e,t){return e*t/100}getStep(e,t){return"element"===this.getSettings("type")?this.getElementStep(e,t):this.getBackgroundStep(e,t)}getElementStep(e,t){return-(e-50)*t.speed}getBackgroundStep(e,t){const n=this.getSettings("dimensions.movable"+t.axis.toUpperCase());return-this.getEffectValueFromMovePoint(n,e)}getDirectionMovePoint(e,t,n){let s;return e<n.start?"out-in"===t?s=0:"in-out"===t?s=100:(s=this.getMovePointFromPassedPercents(n.start,e),"in-out-in"===t&&(s=100-s)):e<n.end?"in-out-in"===t?s=0:"out-in-out"===t?s=100:(s=this.getMovePointFromPassedPercents(n.end-n.start,e-n.start),"in-out"===t&&(s=100-s)):"in-out"===t?s=0:"out-in"===t?s=100:(s=this.getMovePointFromPassedPercents(100-n.end,100-e),"in-out-in"===t&&(s=100-s)),s}translateX(e,t){e.axis="x",e.unit="px",this.transform("translateX",t,e)}translateY(e,t){e.axis="y",e.unit="px",this.transform("translateY",t,e)}translateXY(e,t,n){this.translateX(e,t),this.translateY(e,n)}tilt(e,t,n){const s={speed:e.speed/10,direction:e.direction};this.rotateX(s,n),this.rotateY(s,100-t)}rotateX(e,t){e.axis="x",e.unit="deg",this.transform("rotateX",t,e)}rotateY(e,t){e.axis="y",e.unit="deg",this.transform("rotateY",t,e)}rotateZ(e,t){e.unit="deg",this.transform("rotateZ",t,e)}scale(e,t){const n=this.getDirectionMovePoint(t,e.direction,e.range);this.updateRulePart("transform","scale",1+e.speed*n/1e3)}transform(e,t,n){n.direction&&(t=100-t),this.updateRulePart("transform",e,this.getStep(t,n)+n.unit)}setCSSTransformVariables(e){this.CSSTransformVariables=[],jQuery.each(e,(e,t)=>{const n=e.match(/_transform_(.+?)_effect/m);if(n&&t){if("perspective"===n[1])return void this.CSSTransformVariables.unshift(n[1]);if(this.CSSTransformVariables.includes(n[1]))return;this.CSSTransformVariables.push(n[1])}})}opacity(e,t){const n=this.getDirectionMovePoint(t,e.direction,e.range),s=e.level/10,i=1-s+this.getEffectValueFromMovePoint(s,n);this.$element.css({opacity:i,"will-change":"opacity"})}blur(e,t){const n=this.getDirectionMovePoint(t,e.direction,e.range),s=e.level-this.getEffectValueFromMovePoint(e.level,n);this.updateRulePart("filter","blur",s+"px")}updateRulePart(e,t,n){this.rulesVariables[e]||(this.rulesVariables[e]={}),this.rulesVariables[e][t]||(this.rulesVariables[e][t]=!0,this.updateRule(e));const s=`--${t}`;this.$element[0].style.setProperty(s,n)}updateRule(e){let t="";t+=this.concatTransformCSSProperties(e),t+=this.concatTransformMotionEffectCSSProperties(e),this.$element.css(e,t)}concatTransformCSSProperties(e){let t="";return"transform"===e&&jQuery.each(this.CSSTransformVariables,(e,n)=>{const s=n;n.startsWith("flip")&&(n=n.replace("flip","scale"));const i=n.startsWith("rotate")||n.startsWith("skew")?"deg":"px",o=n.startsWith("scale")?1:0+i;t+=`${n}(var(--e-transform-${s}, ${o}))`}),t}concatTransformMotionEffectCSSProperties(e){let t="";return jQuery.each(this.rulesVariables[e],e=>{t+=`${e}(var(--${e}))`}),t}runAction(e,t,n,...s){t.affectedRange&&(t.affectedRange.start>n&&(n=t.affectedRange.start),t.affectedRange.end<n&&(n=t.affectedRange.end)),this[e](t,n,...s)}refresh(){this.rulesVariables={},this.CSSTransformVariables=[],this.$element.css({transform:"",filter:"",opacity:"","will-change":""})}onInit(){this.$element=this.getSettings("$targetElement"),this.refresh()}}t.default=_default},3323(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class _default extends elementorModules.ViewModule{__construct(e){this.motionFX=e.motionFX,this.intersectionObservers||this.setElementInViewportObserver()}setElementInViewportObserver(){this.intersectionObserver=elementorModules.utils.Scroll.scrollObserver({callback:e=>{e.isInViewport?this.onInsideViewport():this.removeAnimationFrameRequest()}});const e="page"===this.motionFX.getSettings("range")?elementorFrontend.elements.$body[0]:this.motionFX.elements.$parent[0];this.intersectionObserver.observe(e)}onInsideViewport=()=>{this.run(),this.animationFrameRequest=requestAnimationFrame(this.onInsideViewport)};runCallback(...e){this.getSettings("callback")(...e)}removeIntersectionObserver(){this.intersectionObserver&&this.intersectionObserver.unobserve(this.motionFX.elements.$parent[0])}removeAnimationFrameRequest(){this.animationFrameRequest&&cancelAnimationFrame(this.animationFrameRequest)}destroy(){this.removeAnimationFrameRequest(),this.removeIntersectionObserver()}onInit(){super.onInit()}}t.default=_default},5481(e,t,n){"use strict";var s=n(6784);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=s(n(3323));class MouseMoveInteraction extends i.default{bindEvents(){MouseMoveInteraction.mouseTracked||(elementorFrontend.elements.$window.on("mousemove",MouseMoveInteraction.updateMousePosition),MouseMoveInteraction.mouseTracked=!0)}run(){const e=MouseMoveInteraction.mousePosition,t=this.oldMousePosition;if(t.x===e.x&&t.y===e.y)return;this.oldMousePosition={x:e.x,y:e.y};const n=100/innerWidth*e.x,s=100/innerHeight*e.y;this.runCallback(n,s)}onInit(){this.oldMousePosition={},super.onInit()}}t.default=MouseMoveInteraction,MouseMoveInteraction.mousePosition={},MouseMoveInteraction.updateMousePosition=e=>{MouseMoveInteraction.mousePosition={x:e.clientX,y:e.clientY}}},2647(e,t,n){"use strict";var s=n(6784);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=s(n(3323));class _default extends i.default{run(){if(pageYOffset===this.windowScrollTop)return!1;this.onScrollMovement(),this.windowScrollTop=pageYOffset}onScrollMovement(){this.updateMotionFxDimensions(),this.updateAnimation(),this.resetTransitionVariable()}resetTransitionVariable(){this.motionFX.$element.css("--e-transform-transition-duration","100ms")}updateMotionFxDimensions(){this.motionFX.getSettings().refreshDimensions&&this.motionFX.defineDimensions()}updateAnimation(){let e;e="page"===this.motionFX.getSettings("range")?elementorModules.utils.Scroll.getPageScrollPercentage():this.motionFX.getSettings("isFixedPosition")?elementorModules.utils.Scroll.getPageScrollPercentage({},window.innerHeight):elementorModules.utils.Scroll.getElementViewportPercentage(this.motionFX.elements.$parent),this.runCallback(e)}}t.default=_default},739(e,t,n){"use strict";var s=n(6784);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=s(n(2647)),o=s(n(5481)),r=s(n(3039));class _default extends elementorModules.ViewModule{getDefaultSettings(){return{type:"element",$element:null,$dimensionsElement:null,addBackgroundLayerTo:null,interactions:{},refreshDimensions:!1,range:"viewport",classes:{element:"motion-fx-element",parent:"motion-fx-parent",backgroundType:"motion-fx-element-type-background",container:"motion-fx-container",layer:"motion-fx-layer",perspective:"motion-fx-perspective"}}}bindEvents(){this.defineDimensions=this.defineDimensions.bind(this),elementorFrontend.elements.$window.on("resize elementor-pro/motion-fx/recalc",this.defineDimensions)}unbindEvents(){elementorFrontend.elements.$window.off("resize elementor-pro/motion-fx/recalc",this.defineDimensions)}addBackgroundLayer(){const e=this.getSettings();this.elements.$motionFXContainer=jQuery("<div>",{class:e.classes.container}),this.elements.$motionFXLayer=jQuery("<div>",{class:e.classes.layer}),this.updateBackgroundLayerSize(),this.elements.$motionFXContainer.prepend(this.elements.$motionFXLayer);(e.addBackgroundLayerTo?this.$element.find(e.addBackgroundLayerTo):this.$element).prepend(this.elements.$motionFXContainer)}removeBackgroundLayer(){this.elements.$motionFXContainer.remove()}updateBackgroundLayerSize(){const e=this.getSettings(),t={x:0,y:0},n=e.interactions.mouseMove,s=e.interactions.scroll;n&&n.translateXY&&(t.x=10*n.translateXY.speed,t.y=10*n.translateXY.speed),s&&(s.translateX&&(t.x=10*s.translateX.speed),s.translateY&&(t.y=10*s.translateY.speed)),this.elements.$motionFXLayer.css({width:100+t.x+"%",height:100+t.y+"%"})}defineDimensions(){const e=this.getSettings("$dimensionsElement")||this.$element,t=e.offset(),n={elementHeight:e.outerHeight(),elementWidth:e.outerWidth(),elementTop:t.top,elementLeft:t.left};n.elementRange=n.elementHeight+innerHeight,this.setSettings("dimensions",n),"background"===this.getSettings("type")&&this.defineBackgroundLayerDimensions()}defineBackgroundLayerDimensions(){const e=this.getSettings("dimensions");e.layerHeight=this.elements.$motionFXLayer.height(),e.layerWidth=this.elements.$motionFXLayer.width(),e.movableX=e.layerWidth-e.elementWidth,e.movableY=e.layerHeight-e.elementHeight,this.setSettings("dimensions",e)}initInteractionsTypes(){this.interactionsTypes={scroll:i.default,mouseMove:o.default}}prepareSpecialActions(){const e=this.getSettings(),t=!(!e.interactions.mouseMove||!e.interactions.mouseMove.tilt);this.elements.$parent.toggleClass(e.classes.perspective,t)}cleanSpecialActions(){const e=this.getSettings();this.elements.$parent.removeClass(e.classes.perspective)}runInteractions(){const e=this.getSettings();this.actions.setCSSTransformVariables(e.elementSettings),this.prepareSpecialActions(),jQuery.each(e.interactions,(e,t)=>{this.interactions[e]=new this.interactionsTypes[e]({motionFX:this,callback:(...e)=>{jQuery.each(t,(t,n)=>this.actions.runAction(t,n,...e))}}),this.interactions[e].run()})}destroyInteractions(){this.cleanSpecialActions(),jQuery.each(this.interactions,(e,t)=>t.destroy()),this.interactions={}}refresh(){this.actions.setSettings(this.getSettings()),"background"===this.getSettings("type")&&(this.updateBackgroundLayerSize(),this.defineBackgroundLayerDimensions()),this.actions.refresh(),this.destroyInteractions(),this.runInteractions()}destroy(){this.destroyInteractions(),this.actions.refresh();const e=this.getSettings();this.$element.removeClass(e.classes.element),this.elements.$parent.removeClass(e.classes.parent),"background"===e.type&&(this.$element.removeClass(e.classes.backgroundType),this.removeBackgroundLayer())}onInit(){super.onInit();const e=this.getSettings();this.$element=e.$element,this.elements.$parent=this.$element.parent(),this.$element.addClass(e.classes.element),this.elements.$parent=this.$element.parent(),this.elements.$parent.addClass(e.classes.parent),"background"===e.type&&(this.$element.addClass(e.classes.backgroundType),this.addBackgroundLayer()),this.defineDimensions(),e.$targetElement="element"===e.type?this.$element:this.elements.$motionFXLayer,this.interactions={},this.actions=new r.default(e),this.initInteractionsTypes(),this.runInteractions()}}t.default=_default},8098(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class _default extends elementorModules.Module{constructor(){super(),elementorFrontend.elementsHandler.attachHandler("paypal-button",()=>n.e(375).then(n.bind(n,466))),elementorFrontend.elementsHandler.attachHandler("stripe-button",()=>Promise.all([n.e(786),n.e(857)]).then(n.bind(n,9036)))}}t.default=_default},6275(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class _default extends elementorModules.Module{constructor(){super(),elementorFrontend.elementsHandler.attachHandler("progress-tracker",()=>n.e(581).then(n.bind(n,287)))}}t.default=_default},2450(e,t,n){"use strict";var s=n(6784);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=s(n(2121));class _default extends elementorModules.Module{constructor(){super(),elementorFrontend.elementsHandler.attachHandler("section",i.default,null),elementorFrontend.elementsHandler.attachHandler("container",i.default,null),elementorFrontend.elementsHandler.attachHandler("widget",i.default,null)}}t.default=_default},2121(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=n(6550);t.default=elementorModules.frontend.handlers.Base.extend({currentConfig:{},debouncedReactivate:null,bindEvents(){elementorFrontend.addListenerOnce(this.getUniqueHandlerID()+"sticky","resize",this.reactivateOnResize)},unbindEvents(){elementorFrontend.removeListeners(this.getUniqueHandlerID()+"sticky","resize",this.reactivateOnResize)},isStickyInstanceActive(){return void 0!==this.$element.data("sticky")},getResponsiveSetting(e){const t=this.getElementSettings();return elementorFrontend.getCurrentDeviceSetting(t,e)},getResponsiveSettingList:e=>["",...Object.keys(elementorFrontend.config.responsive.activeBreakpoints)].map(t=>t?`${e}_${t}`:e),getConfig(){const e=this.getElementSettings(),t={to:e.sticky,offset:this.getResponsiveSetting("sticky_offset"),effectsOffset:this.getResponsiveSetting("sticky_effects_offset"),classes:{sticky:"elementor-sticky",stickyActive:"elementor-sticky--active elementor-section--handles-inside",stickyEffects:"elementor-sticky--effects",spacer:"elementor-sticky__spacer"},isRTL:elementorFrontend.config.is_rtl,isScrollSnapActive:(0,s.isScrollSnapActive)(),handleScrollbarWidth:elementorFrontend.isEditMode()},n=elementorFrontend.elements.$wpAdminBar,i=this.isContainerElement(this.$element[0])&&!this.isContainerElement(this.$element[0].parentElement);return n.length&&"top"===e.sticky&&"fixed"===n.css("position")&&(t.offset+=n.height()),e.sticky_parent&&!i&&(t.parent=".e-con, .e-con-inner, .elementor-widget-wrap"),t},activate(){this.currentConfig=this.getConfig(),this.$element.sticky(this.currentConfig)},deactivate(){this.isStickyInstanceActive()&&this.$element.sticky("destroy")},run(e){if(this.getElementSettings("sticky")){var t=elementorFrontend.getCurrentDeviceMode();-1!==this.getElementSettings("sticky_on").indexOf(t)?!0===e?this.reactivate():this.isStickyInstanceActive()||this.activate():this.deactivate()}else this.deactivate()},reactivateOnResize(){clearTimeout(this.debouncedReactivate),this.debouncedReactivate=setTimeout(()=>{const e=this.getConfig();JSON.stringify(e)!==JSON.stringify(this.currentConfig)&&this.run(!0)},300)},reactivate(){this.deactivate(),this.activate()},onElementChange(e){-1!==["sticky","sticky_on"].indexOf(e)&&this.run(!0);-1!==[...this.getResponsiveSettingList("sticky_offset"),...this.getResponsiveSettingList("sticky_effects_offset"),"sticky_parent"].indexOf(e)&&this.reactivate()},onDeviceModeChange(){setTimeout(()=>this.run(!0))},onInit(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),elementorFrontend.isEditMode()&&elementor.listenTo(elementor.channels.deviceMode,"change",()=>this.onDeviceModeChange()),this.run()},onDestroy(){elementorModules.frontend.handlers.Base.prototype.onDestroy.apply(this,arguments),this.deactivate()},isContainerElement:e=>["e-con","e-con-inner"].some(t=>e?.classList.contains(t))})},7937(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class _default extends elementorModules.Module{constructor(){super(),elementorFrontend.hooks.addAction("frontend/element_ready/video-playlist.default",e=>{n.e(519).then(n.bind(n,4161)).then(({default:t})=>{elementorFrontend.elementsHandler.addHandler(t,{$element:e,toggleSelf:!1})})})}}t.default=_default},6784(e){e.exports=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}},e=>{var t;t=3e3,e(e.s=t)}]);