USR_PREFS_CK_NAME="undefined"!=typeof USR_PREFS_CK_NAME?USR_PREFS_CK_NAME:"lwaio_consent_preferences",ACTED_CONSENT_CK_NAME="undefined"!=typeof ACTED_CONSENT_CK_NAME?ACTED_CONSENT_CK_NAME:"lwaio_consent_acted",EXP_CK_NAME="undefined"!=typeof EXP_CK_NAME?EXP_CK_NAME:"1 Year",function(e){"use strict";let t={set:function(e,t,o,i=""){let s="";if(o){let e=new Date;e.setTime(e.getTime()+24*o*60*60*1e3),s="; expires="+e.toGMTString()}i&&(i="; domain="+i),document.cookie=e+"="+t+s+"; path=/"+i},read:function(e){let t=e+"=",o=document.cookie.split(";"),i=o.length;for(let e=0;e<i;e++){let i=o[e];for(;" "==i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return i.substring(t.length,i.length)}return null},exists:function(e){return null!==this.read(e)},getallcookies:function(){let e=document.cookie.split(";"),t={},o=e.length;for(let i=0;i<o;i++){let o=e[i].split("=");t[(o[0]+"").trim()]=unescape(o[1])}return t},erase:function(e,t){t?this.set(e,"",-10,t):this.set(e,"",-10)}},o={bar_config:{},show_config:{},allowed_categories:[],set:function(e){if("function"!=typeof JSON.parse)return void console.log("LWAIOCookieConsent requires JSON.parse but your browser doesn't support it");this.settings=JSON.parse(e.settings),EXP_CK_NAME=this.settings.cookie_expiry,this.bar_elm=jQuery(this.settings.notify_div_id),this.show_again_elm=jQuery(this.settings.show_again_div_id),this.details_elm=this.bar_elm.find(".lwaio_messagebar_detail"),this.main_button=jQuery("#cookie_action_accept"),this.main_link=jQuery("#cookie_action_link"),this.reject_button=jQuery("#cookie_action_reject"),this.settings_button=jQuery("#cookie_action_settings"),this.save_button=jQuery("#cookie_action_save"),this.confirm_button=jQuery("#cookie_action_confirm"),this.cancel_button=jQuery("#cookie_action_cancel"),this.accept_all_button=jQuery("#cookie_action_accept_all"),this.configBar(),this.toggleBar(),this.attachEvents(),this.configButtons(),this.settings.auto_scroll&&window.addEventListener("scroll",o.acceptOnScroll,!1);let i=JSON.parse(t.read(USR_PREFS_CK_NAME)),s=t.read(ACTED_CONSENT_CK_NAME),n="";n=new CustomEvent("LwAioCookieConsentOnLoad",{detail:{lwaio_consent_preferences:i,lwaio_consent_acted:s}}),window.dispatchEvent(n)},attachEvents:function(){jQuery(".lwaio_action_button").click(function(e){e.preventDefault();let i="",s="",n="",a="",c=jQuery(this).attr("data-lwaio_action");if("accept_all"==c)o.enableAllCookies(),o.accept_all_close(),s=JSON.parse(t.read(USR_PREFS_CK_NAME)),n=JSON.stringify(s),a=t.read(ACTED_CONSENT_CK_NAME),t.set(USR_PREFS_CK_NAME,n,EXP_CK_NAME),i=new CustomEvent("LwAioCookieConsentOnAcceptAll",{detail:{lwaio_consent_preferences:s,lwaio_consent_acted:a}}),window.dispatchEvent(i),o.logConsent(c);else if("accept"==c)o.accept_close(),s=JSON.parse(t.read(USR_PREFS_CK_NAME)),n=JSON.stringify(s),a=t.read(ACTED_CONSENT_CK_NAME),t.set(USR_PREFS_CK_NAME,n,EXP_CK_NAME),i=new CustomEvent("LwAioCookieConsentOnAccept",{detail:{lwaio_consent_preferences:s,lwaio_consent_acted:a}}),window.dispatchEvent(i),o.logConsent(c);else if("reject"==c){o.reject_close(),s=JSON.parse(t.read(USR_PREFS_CK_NAME)),a=t.read(ACTED_CONSENT_CK_NAME),t.erase(USR_PREFS_CK_NAME),i=new CustomEvent("LwAioCookieConsentOnReject",{detail:{lwaio_consent_preferences:s,lwaio_consent_acted:a}}),window.dispatchEvent(i);let e=t.getallcookies();"object"==typeof e&&null!==e&&jQuery.each(e,function(e,o){e!=ACTED_CONSENT_CK_NAME&&t.erase(e,"."+window.location.host)}),o.logConsent(c)}else"settings"==c?(o.bar_elm.slideUp(o.settings.animate_speed_hide),o.show_again_elm.slideUp(o.settings.animate_speed_hide)):"close"==c?o.displayHeader():"show_settings"==c?o.show_details():"hide_settings"==c?o.hide_details():"close_banner"==c&&(o.hideHeader(),o.accept_close(),"yes"!=(a=t.read(ACTED_CONSENT_CK_NAME))&&(s=JSON.parse(t.read(USR_PREFS_CK_NAME)),n=JSON.stringify(s),t.set(USR_PREFS_CK_NAME,n,EXP_CK_NAME),i=new CustomEvent("LwAioCookieConsentOnAccept",{detail:{lwaio_consent_preferences:s,lwaio_consent_acted:a}}),window.dispatchEvent(i)))}),jQuery(".group-switch-buttons input").each(function(){let e=jQuery(this).val(),i={},s="";if(t.read(USR_PREFS_CK_NAME)&&(i=JSON.parse(t.read(USR_PREFS_CK_NAME))),"necessary"==e||jQuery(this).is(":checked"))i[e]="yes",o.allowed_categories.push(e);else{i[e]="no";let t=o.allowed_categories.length;for(let i=0;i<t;i++)o.allowed_categories[i]==e&&o.allowed_categories.splice(i,1)}s=JSON.stringify(i),t.set(USR_PREFS_CK_NAME,s,EXP_CK_NAME)}),jQuery(document).on("click","#lwaio-consent-show-again",function(t){t.preventDefault(),jQuery(o.settings.notify_div_id).find("p.lwaio").show(),jQuery(o.settings.notify_div_id).find(".lwaio.group-description-buttons").show(),o.displayHeader(),e(this).hide()}),jQuery(document).on("click",".group-switch-buttons input",function(){let e=jQuery(this).val(),i={},s="";if(t.read(USR_PREFS_CK_NAME)&&(i=JSON.parse(t.read(USR_PREFS_CK_NAME))),jQuery(this).is(":checked"))i[e]="yes",o.allowed_categories.push(e);else{i[e]="no";let t=o.allowed_categories.length;for(let i=0;i<t;i++)o.allowed_categories[i]==e&&o.allowed_categories.splice(i,1)}s=JSON.stringify(i),t.set(USR_PREFS_CK_NAME,s,EXP_CK_NAME)}),jQuery(document).on("click","#lwaio_consent_tabs_overview",function(e){e.preventDefault();let t=jQuery(this);jQuery("#lwaio_consent_tabs").find("a").removeClass("tab_selected"),t.addClass("tab_selected"),t.css("border-bottom-color",o.settings.border_active_color),t.css("background-color",o.settings.background_active_color),jQuery("#lwaio_consent_tabs_about").css("border-bottom-color",o.settings.border_color),jQuery("#lwaio_consent_tabs_about").css("background-color",o.settings.background_color),jQuery("#lwaio_consent_about").hide(),jQuery("#lwaio_consent_overview").show()}),jQuery(document).on("click","#lwaio_consent_tabs_about",function(e){e.preventDefault();let t=jQuery(this);jQuery("#lwaio_consent_tabs").find("a").removeClass("tab_selected"),t.addClass("tab_selected"),t.css("border-bottom-color",o.settings.border_active_color),t.css("background-color",o.settings.background_active_color),jQuery("#lwaio_consent_tabs_overview").css("border-bottom-color",o.settings.border_color),jQuery("#lwaio_consent_tabs_overview").css("background-color",o.settings.background_color),jQuery("#lwaio_consent_overview").hide(),jQuery("#lwaio_consent_about").show()}),jQuery(document).on("click","#lwaio_consent_overview_cookie_container_types a",function(e){e.preventDefault();let t=jQuery(this),i=t.parent();i.find("a").removeClass("lwaio_consent_overview_cookie_container_type_selected"),i.find("a").css("border-right-color",o.settings.border_color),i.find("a").css("background-color",o.settings.background_color),t.addClass("lwaio_consent_overview_cookie_container_type_selected"),t.css("border-right-color",o.settings.border_active_color),t.css("background-color",o.settings.background_active_color);let s=jQuery(this).attr("data-target"),n=i.siblings("#lwaio_consent_overview_cookie_container_type_details");n.find(".lwaio_consent_cookie_type_details").hide(),n.find("#"+s).show()})},configButtons:function(){this.settings_button.attr("style",`color: ${this.settings.button_link_color} !important; background-color: ${this.settings.secondary_color} !important`),this.main_button.css("color",this.settings.button_link_color),this.main_button.css("background-color",this.settings.primary_color),this.accept_all_button.css("color",this.settings.button_link_color),this.accept_all_button.css("background-color",this.settings.primary_color),this.confirm_button.css("color",this.settings.button_link_color),this.confirm_button.css("background-color",this.settings.primary_color),this.main_link.css("color",this.settings.secondary_color),this.reject_button.css("display","inline-block"),this.reject_button.attr("style",`color: ${this.settings.button_link_color} !important; background-color: ${this.settings.secondary_color} !important`),this.cancel_button.css("color",this.settings.button_link_color),this.cancel_button.css("display","inline-block"),this.cancel_button.css("background-color",this.settings.secondary_color),this.save_button.css("color",this.settings.button_link_color),this.save_button.css("background-color",this.settings.primary_color),this.details_elm.find("table.lwaio_consent_cookie_type_table tr").css("border-color",o.settings.border_color),this.details_elm.find(".lwaio_consent_cookie_type_intro").css("border-color",o.settings.border_color),this.details_elm.find("a").each(function(){jQuery(this).css("border-color",o.settings.border_color),jQuery(this).css("background-color",o.settings.background_color)}),this.details_elm.find("a.lwaio_consent_overview_cookie_container_type_selected").css("border-right-color",o.settings.border_active_color),this.details_elm.find("a.lwaio_consent_overview_cookie_container_type_selected").css("background-color",o.settings.background_active_color),this.details_elm.find("#lwaio_consent").css("border-color",o.settings.border_color),this.details_elm.find("#lwaio_consent_tabs").css("border-color",o.settings.border_color),this.details_elm.find("#lwaio_consent_tabs .tab_selected").css("border-bottom-color",o.settings.border_active_color),this.details_elm.find("#lwaio_consent_tabs .tab_selected").css("background-color",o.settings.background_active_color)},configBar:function(){this.bar_config={"background-color":this.settings.background,color:this.settings.text,"border-top":"1px solid "+this.settings.secondary_color},this.show_config={width:"auto","background-color":this.settings.background,color:this.settings.text,position:"fixed",opacity:this.settings.opacity,bottom:"0","border-top":"1px solid "+this.settings.secondary_color},"right"==this.settings.show_again_position?this.show_config.right=this.settings.show_again_margin+"%":this.show_config.left=this.settings.show_again_margin+"%",this.bar_config.position="fixed",this.bar_config.opacity=this.settings.opacity,this.bar_elm.find(".lwaio_messagebar_content").css("max-width","800px"),"bottom"==this.settings.banner_position?this.bar_config.bottom="0":this.bar_config.top="0",this.bar_elm.css(this.bar_config).hide(),this.show_again_elm.css(this.show_config).hide()},toggleBar:function(){t.exists(ACTED_CONSENT_CK_NAME)?this.hideHeader():(this.displayHeader(),this.settings.auto_hide&&setTimeout(function(){o.accept_close()},this.settings.auto_hide_delay))},accept_close:function(){return t.set(ACTED_CONSENT_CK_NAME,"yes",EXP_CK_NAME),this.settings.notify_animate_hide?this.bar_elm.slideUp(this.settings.animate_speed_hide,i.runScripts):this.bar_elm.hide(i.runScripts),this.show_again_elm.slideDown(this.settings.animate_speed_hide),1==this.settings.accept_reload&&window.location.reload(!0),!1},accept_all_close:function(){return t.set(ACTED_CONSENT_CK_NAME,"yes",EXP_CK_NAME),this.settings.notify_animate_hide?this.bar_elm.slideUp(this.settings.animate_speed_hide,i.runScripts):this.bar_elm.hide(i.runScripts),this.show_again_elm.slideDown(this.settings.animate_speed_hide),1==this.settings.accept_reload&&window.location.reload(!0),!1},reject_close:function(){return t.set(ACTED_CONSENT_CK_NAME,"yes",EXP_CK_NAME),o.disableAllCookies(),this.settings.notify_animate_hide?this.bar_elm.slideUp(this.settings.animate_speed_hide,i.runScripts):this.bar_elm.hide(i.runScripts),this.show_again_elm.slideDown(this.settings.animate_speed_hide),1==this.settings.decline_reload&&window.location.reload(!0),!1},logConsent:function(e){this.settings.logging_on&&jQuery.ajax({url:log_obj.ajax_url,type:"POST",data:{action:"lwaio_log_consent_action",lwaio_user_action:e,cookie_list:t.getallcookies()},success:function(e){}})},disableAllCookies:function(){let i={},s="";t.read(USR_PREFS_CK_NAME)&&(i=JSON.parse(t.read(USR_PREFS_CK_NAME)),jQuery.each(i,function(t,s){if("necessary"!=t){i[t]="no",e('.group-switch-buttons input[value="'+t+'"]').prop("checked",!1);let s=o.allowed_categories.length;for(let e=0;e<s;e++)o.allowed_categories[e]==t&&o.allowed_categories.splice(e,1)}}),s=JSON.stringify(i),t.set(USR_PREFS_CK_NAME,s,EXP_CK_NAME))},enableAllCookies:function(){let i={},s="";t.read(USR_PREFS_CK_NAME)&&(i=JSON.parse(t.read(USR_PREFS_CK_NAME)),jQuery.each(i,function(t,s){if("necessary"!=t){i[t]="yes",e('.group-switch-buttons input[value="'+t+'"]').prop("checked",!0);let s=o.allowed_categories.length;for(let e=0;e<s;e++)o.allowed_categories[e]==t&&o.allowed_categories.splice(e,1)}}),s=JSON.stringify(i),t.set(USR_PREFS_CK_NAME,s,EXP_CK_NAME))},show_details:function(){this.details_elm.show(),this.bar_elm.css("opacity",1),this.details_elm.css("border-top-color",o.settings.border_color),this.settings_button.attr("data-lwaio_action","hide_settings")},hide_details:function(){this.details_elm.hide(),this.bar_elm.css("opacity",o.settings.opacity),this.settings_button.attr("data-lwaio_action","show_settings")},displayHeader:function(e,t){this.bar_elm.show(),e&&(jQuery(o.settings.notify_div_id).find("p.lwaio").hide(),jQuery(o.settings.notify_div_id).find(".lwaio.group-description-buttons").hide()),this.show_again_elm.slideUp(this.settings.animate_speed_hide)},hideHeader:function(e){this.bar_elm.slideUp(this.settings.animate_speed_hide),e||this.show_again_elm.slideDown(this.settings.animate_speed_hide)},acceptOnScroll:function(){let i=e(window).scrollTop()/(e(document).height()-e(window).height());Math.round(100*i)>o.settings.auto_scroll_offset&&!t.exists(ACTED_CONSENT_CK_NAME)&&(o.accept_close(),window.removeEventListener("scroll",o.acceptOnScroll,!1),1==o.settings.auto_scroll_reload&&window.location.reload())}},i={blockingStatus:!0,scriptsLoaded:!1,set:function(e){"function"==typeof JSON.parse?this.cookies=JSON.parse(e.cookies):console.log("LWAIOCookieConsent requires JSON.parse but your browser doesn't support it")},removeCookieByCategory:function(){if(1==i.blockingStatus)for(let e in i.cookies){let s=i.cookies[e],n=s.lwaio_category_slug;if(-1===o.allowed_categories.indexOf(n)){let e=s.data;if(e&&0!=e.length)for(let o in e){let i=e[o];t.erase(i.name)}}}},runScripts:function(){let e=["iframe","IFRAME","EMBED","embed","OBJECT","object","IMG","img"],s=function(e){n.renderScripts(),a.renderSrcElement(),e(),i.scriptsLoaded=!0},n={scriptsDone:function(){let e=document.createEvent("Event");e.initEvent("DOMContentLoaded",!0,!0),window.document.dispatchEvent(e)},seq:function(e,t,o){void 0===o&&(o=0),e[o](function(){++o===e.length?t():n.seq(e,t,o)})},insertScript:function(e,s){let n=["data-wpl-class","data-wpl-label","data-wpl-placeholder","data-wpl-script-type","data-wpl-src"],a=e.getAttribute("data-wpl-script-type"),c=e.getAttribute("data-wpl-element-position"),r=e.getAttribute("data-wpl-block"),l=document.createElement("script");l.type="text/plain",e.async&&(l.async=e.async),e.defer&&(l.defer=e.defer),e.src?(l.onload=s,l.onerror=s,l.src=e.src):l.textContent=e.innerText;let _=jQuery(e).prop("attributes"),d=_.length;for(let e=0;e<d;++e)"id"!==_[e].nodeName&&-1!==n.indexOf(_[e].nodeName)&&l.setAttribute(_[e].nodeName,_[e].value);!0===i.blockingStatus?("yes"==t.read(ACTED_CONSENT_CK_NAME)&&-1!==o.allowed_categories.indexOf(a)||null==t.read(ACTED_CONSENT_CK_NAME)&&"false"===r)&&(l.setAttribute("data-wpl-consent","accepted"),l.type="text/javascript"):l.type="text/javascript",e.type!=l.type&&("head"===c?(document.head.appendChild(l),e.src||s(),e.parentNode.removeChild(e)):(document.body.appendChild(l),e.src||s(),e.parentNode.removeChild(e)))},renderScripts:function(){let e=document.querySelectorAll('script[data-wpl-class="wpl-blocker-script"]');if(e.length>0){let t,o=[];Array.prototype.forEach.call(e,function(e){t=e.getAttribute("type");e.tagName;o.push(function(t){n.insertScript(e,t)})}),n.seq(o,n.scriptsDone)}}},a={renderSrcElement:function(){let s=document.querySelectorAll('[data-wpl-class="wpl-blocker-script"]'),n=s.length;for(let a=0;a<n;a++){let n=s[a],c=n.tagName;if(-1!==e.indexOf(c)){let e=n.getAttribute("data-wpl-script-type"),s=n.getAttribute("data-wpl-block");!0===i.blockingStatus?"yes"==t.read(ACTED_CONSENT_CK_NAME)&&-1!==o.allowed_categories.indexOf(e)||null!=t.read(ACTED_CONSENT_CK_NAME)&&"false"===s?this.replaceSrc(n):this.addPlaceholder(n):this.replaceSrc(n)}}},addPlaceholder:function(e){if(0===jQuery(e).prev(".wpl-iframe-placeholder").length){let t=e.getAttribute("data-wpl-placeholder"),o=e.getAttribute("width"),i=e.getAttribute("height");null==o&&(o=e.offsetWidth),null==i&&(i=e.offsetHeight);let s=/px/,n='<div style="width:'+(o=s.test(o)?o:o+"px")+"; height:"+(i=s.test(i)?i:i+"px")+';" class="wpl-iframe-placeholder"><div class="wpl-inner-text">'+t+"</div></div>";"IMG"!==e.tagName&&jQuery(n).insertBefore(e),e.removeAttribute("src"),e.style.display="none"}},replaceSrc:function(e){if(!e.hasAttribute("src")){let t=e.getAttribute("data-wpl-src");e.setAttribute("src",t),jQuery(e).prev(".wpl-iframe-placeholder").length>0&&jQuery(e).prev(".wpl-iframe-placeholder").remove(),e.style.display="block"}}};(function(){jQuery(document).on("click",".wpl_manage_current_consent",function(){o.displayHeader()})})(),s(i.removeCookieByCategory)}};e(document).ready(function(){"undefined"!=typeof lwaiobar_settings&&o.set({settings:lwaiobar_settings}),"undefined"!=typeof lwaios_list&&(i.set({cookies:lwaios_list}),i.runScripts())}),e(document).ready(function(){e(".lwaio-column").click(function(){e(".lwaio-column",this),e(this).children(".lwaio-columns").hasClass("active-group")||(e(".lwaio-columns").removeClass("active-group"),e(this).children(".lwaio-columns").addClass("active-group")),e(this).siblings(".description-container").hasClass("hide")&&(e(".description-container").addClass("hide"),e(this).siblings(".description-container").removeClass("hide"))})})}(jQuery);
(function($, elementor){
'use strict';
window.JetPopupElementorFrontend={
init: function(){
if(! elementor){
return false;
}
elementor.hooks.addAction('frontend/element_ready/widget', JetPopupElementorFrontend.elementorWidget);
const widgets={
'jet-popup-action-button.default':JetPopupElementorFrontend.widgetPopupActionButton,
'jet-popup-mailchimp.default':JetPopupElementorFrontend.widgetPopupMailchimp
};
$.each(widgets, function(widget, callback){
elementor.hooks.addAction('frontend/element_ready/' + widget, callback);
});
},
elementorWidget: function($scope){
let widget_id=$scope.data('id'),
widgetType=$scope.data('element_type'),
popupSettings=$scope.data('jet-popup')||false;
if(popupSettings){
let openEvent=popupSettings[ 'trigger-type' ],
customSelector=popupSettings[ 'trigger-custom-selector' ],
popupData={
popupId: popupSettings[ 'attached-popup' ]
};
if($scope.hasClass('jet-popup-attach-event-inited') ){
return false;
}
$scope.addClass('jet-popup-attach-event-inited');
switch(openEvent){
case 'click-self':
$scope.addClass('jet-popup-cursor-pointer');
$scope.on('click.JetPopup', function(event){
event.preventDefault();
var $target=$(this);
if(elementor.hooks){
popupData=elementor.hooks.applyFilters('jet-popup/widget-extensions/popup-data',
popupData,
popupSettings,
$scope,
event
);
}
$(window).trigger({
type: 'jet-popup-open-trigger',
popupData: popupData,
triggeredBy: $scope,
});
return false;
});
break;
case 'click':
$scope.on('click.JetPopup', '.elementor-button, .jet-button__instance .jet-popup-action-button__instance', function(event){
event.preventDefault();
if(elementor.hooks){
popupData=elementor.hooks.applyFilters('jet-popup/widget-extensions/popup-data',
popupData,
popupSettings,
$scope,
event
);
}
$(window).trigger({
type: 'jet-popup-open-trigger',
popupData: popupData,
triggeredBy: $(this),
});
return false;
});
break;
case 'click-selector':
if(''!==customSelector){
$(customSelector).addClass('jet-popup-cursor-pointer');
$scope.on('click.JetPopup', customSelector, function(event){
event.preventDefault();
var $target=$(event.currentTarget);
$target.addClass('jet-popup-cursor-pointer');
if(elementor.hooks){
popupData=elementor.hooks.applyFilters('jet-popup/widget-extensions/popup-data',
popupData,
popupSettings,
$scope,
event
);
}
$(window).trigger({
type: 'jet-popup-open-trigger',
popupData: popupData,
triggeredBy: $target,
});
return false;
});
}
break;
case 'hover':
$scope.on('mouseenter.JetPopup', function(event){
if(elementor.hooks){
popupData=elementor.hooks.applyFilters('jet-popup/widget-extensions/popup-data',
popupData,
popupSettings,
$scope,
event
);
}
$(window).trigger({
type: 'jet-popup-open-trigger',
popupData: popupData,
triggeredBy: $scope,
});
});
break;
case 'scroll-to':
elementor.waypoint($scope, function(event){
if(elementor.hooks){
popupData=elementor.hooks.applyFilters('jet-popup/widget-extensions/popup-data',
popupData,
popupSettings,
$scope,
event
);
}
$(window).trigger({
type: 'jet-popup-open-trigger',
popupData: popupData,
triggeredBy: $scope,
});
}, {
offset: 'bottom-in-view'
});
break;
}}
},
widgetPopupActionButton: function($scope){
var $button=$('.jet-popup-action-button__instance', $scope),
settings=$button.data('settings'),
actionType=settings['action-type'];
window.JetPopupFrontend.actionButtonHandle($button, actionType);
},
widgetPopupMailchimp: function($scope){
var $target=$scope.find('.jet-popup-mailchimp'),
scoreId=$scope.data('id'),
settings=$target.data('settings'),
$subscribeForm=$('.jet-popup-mailchimp__form', $target),
$fields=$('.jet-popup-mailchimp__fields', $target),
$mailField=$('.jet-popup-mailchimp__mail-field', $target),
$inputData=$mailField.data('instance-data'),
$submitButton=$('.jet-popup-mailchimp__submit', $target),
$subscribeFormMessage=$('.jet-popup-mailchimp__message', $target),
invalidMailMessage='Please specify a valid email',
timeout=null,
ajaxRequest=null,
$currentPopup=$target.closest('.jet-popup');
$mailField.on('focus', function(){
$mailField.removeClass('mail-invalid');
});
$(document).keydown(function(event){
if(13===event.keyCode&&$mailField.is(':focus') ){
subscribeHandle();
return false;
}});
$submitButton.on('click', function(){
subscribeHandle();
return false;
});
self.subscribeHandle=function(){
var inputValue=$mailField.val(),
sendData={
'email': inputValue,
'target_list_id': settings['target_list_id']||'',
'data': $inputData
},
serializeArray=$subscribeForm.serializeArray(),
additionalFields={};
if(validateEmail(inputValue) ){
$.each(serializeArray, function(key, fieldData){
if('email'===fieldData.name){
sendData[ fieldData.name ]=fieldData.value;
}else{
additionalFields[ fieldData.name ]=fieldData.value;
}});
sendData['additional']=additionalFields;
ajaxRequest=jQuery.ajax({
type: 'POST',
url: window.jetPopupData.ajax_url,
data: {
'action': 'jet_popup_mailchimp_ajax',
'data': sendData
},
beforeSend: function(jqXHR, ajaxSettings){
if(null!==ajaxRequest){
ajaxRequest.abort();
}},
error: function(jqXHR, ajaxSettings){
},
success: function(data, textStatus, jqXHR){
var successType=data.type,
message=data.message||'',
responceClass='jet-popup-mailchimp--response-' + successType;
$submitButton.removeClass('loading');
$target.removeClass('jet-popup-mailchimp--response-error');
$target.addClass(responceClass);
$('span', $subscribeFormMessage).html(message);
$subscribeFormMessage.css({ 'visibility': 'visible' });
timeout=setTimeout(function(){
$subscribeFormMessage.css({ 'visibility': 'hidden' });
$target.removeClass(responceClass);
}, 10000);
if(settings['redirect']){
window.location.href=settings['redirect_url'];
}
$(window).trigger({
type: 'jet-popup/mailchimp',
elementId: scoreId,
successType: successType,
inputData: $inputData
});
if(true===settings['close_popup_when_success']&&$currentPopup[0]&&'success'===successType){
var popupId=$currentPopup.attr('id');
timeout=setTimeout(function(){
$(window).trigger({
type: 'jet-popup-close-trigger',
popupData: {
popupId: popupId,
constantly: false
}});
}, 3000);
}}
});
$submitButton.addClass('loading');
}else{
$mailField.addClass('mail-invalid');
$target.addClass('jet-popup-mailchimp--response-error');
$('span', $subscribeFormMessage).html(invalidMailMessage);
$subscribeFormMessage.css({ 'visibility': 'visible' });
timeout=setTimeout(function(){
$target.removeClass('jet-popup-mailchimp--response-error');
$subscribeFormMessage.css({ 'visibility': 'hidden' });
$mailField.removeClass('mail-invalid');
}, 10000);
}}
function validateEmail(email){
var re=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
return re.test(email);
}},
};
$(window).on('elementor/frontend/init', ()=> {
window.JetPopupElementorFrontend.init();
});
}(jQuery, window.elementorFrontend) );
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t():"function"==typeof define&&define.amd?define(t):t()}(0,function(){"use strict";function e(e){var t=this.constructor;return this.then(function(o){return t.resolve(e()).then(function(){return o})},function(o){return t.resolve(e()).then(function(){return t.reject(o)})})}function t(e){return!(!e||void 0===e.length)}function o(){}function n(e){if(!(this instanceof n))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],c(e,this)}function i(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,n._immediateFn(function(){var o=1===e._state?t.onFulfilled:t.onRejected;if(null!==o){var n;try{n=o(e._value)}catch(e){return void r(t.promise,e)}a(t.promise,n)}else(1===e._state?a:r)(t.promise,e._value)})):e._deferreds.push(t)}function a(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var o=t.then;if(t instanceof n)return e._state=3,e._value=t,void s(e);if("function"==typeof o)return void c(function(e,t){return function(){e.apply(t,arguments)}}(o,t),e)}e._state=1,e._value=t,s(e)}catch(t){r(e,t)}}function r(e,t){e._state=2,e._value=t,s(e)}function s(e){2===e._state&&0===e._deferreds.length&&n._immediateFn(function(){e._handled||n._unhandledRejectionFn(e._value)});for(var t=0,o=e._deferreds.length;o>t;t++)i(e,e._deferreds[t]);e._deferreds=null}function c(e,t){var o=!1;try{e(function(e){o||(o=!0,a(t,e))},function(e){o||(o=!0,r(t,e))})}catch(e){if(o)return;o=!0,r(t,e)}}var d=setTimeout;n.prototype.catch=function(e){return this.then(null,e)},n.prototype.then=function(e,t){var n=new this.constructor(o);return i(this,new function(e,t,o){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=o}(e,t,n)),n},n.prototype.finally=e,n.all=function(e){return new n(function(o,n){function i(e,t){try{if(t&&("object"==typeof t||"function"==typeof t)){var s=t.then;if("function"==typeof s)return void s.call(t,function(t){i(e,t)},n)}a[e]=t,0==--r&&o(a)}catch(e){n(e)}}if(!t(e))return n(new TypeError("Promise.all accepts an array"));var a=Array.prototype.slice.call(e);if(0===a.length)return o([]);for(var r=a.length,s=0;a.length>s;s++)i(s,a[s])})},n.resolve=function(e){return e&&"object"==typeof e&&e.constructor===n?e:new n(function(t){t(e)})},n.reject=function(e){return new n(function(t,o){o(e)})},n.race=function(e){return new n(function(o,i){if(!t(e))return i(new TypeError("Promise.race accepts an array"));for(var a=0,r=e.length;r>a;a++)n.resolve(e[a]).then(o,i)})},n._immediateFn="function"==typeof setImmediate&&function(e){setImmediate(e)}||function(e){d(e,0)},n._unhandledRejectionFn=function(e){void 0!==console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var l=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw Error("unable to locate global object")}();"Promise"in l?l.Promise.prototype.finally||(l.Promise.prototype.finally=e):l.Promise=n}),function(e,t,o){"use strict";var n={addedScripts:{},addedStyles:{},addedAssetsPromises:[],init:function(){var o={"jet-tabs.default":n.tabsInit,"jet-accordion.default":n.accordionInit,"jet-image-accordion.default":n.imageAccordionInit,"jet-switcher.default":n.switcherInit};e.each(o,function(e,o){t.hooks.addAction("frontend/element_ready/"+e,o)})},tabsInit:function(o){var i,a,r=e(".jet-tabs",o).first(),s=(r.data("id"),e(window)),c=e(".jet-tabs__control-wrapper",r).first(),d=e(".jet-tabs__content-wrapper",r).first(),l=e("> .jet-tabs__control",c),u=e("> .jet-tabs__content",d),h=e.extend(r.data("settings")||{},n.getElementorElementSettings(o)),f=[],g=null,p=window.location.hash||!1,m=!!p&&p.replace("#","").split("&"),v=(h.tabsPosition,[]),w=[],_=elementorFrontend.getCurrentDeviceMode(),j=t.config.responsive.activeBreakpoints;if(a="desktop",w.desktop=""!=h.tabs_position?h.tabs_position:"top",v.desktop="jet-tabs-position-"+w.desktop,Object.keys(j).reverse().forEach(function(e){"widescreen"===e?(w[e]=h["tabs_position_"+e]&&""!=h["tabs_position_"+e]?h["tabs_position_"+e]:"top",v[e]="jet-tabs-position-"+w[e]):(w[e]=h["tabs_position_"+e]&&""!=h["tabs_position_"+e]?h["tabs_position_"+e]:w[a],v[e]="jet-tabs-position-"+w[e],a=e)}),!r.hasClass(v[_])){for(const[e,t]of Object.entries(v))r.removeClass(t);r.addClass(v[_])}if("click"===h.event?l.on("click.jetTabs",function(){var t=e(this),o=+t.data("tab")-1,n=t.data("template-id");clearInterval(g),h.ajaxTemplate&&n&&T(o),x(o)}):"ontouchend"in window||"ontouchstart"in window?(l.on("touchstart",function(t){i=e(window).scrollTop()}),l.on("touchend",function(t){var o=e(this),n=+o.data("tab")-1,a=o.data("template-id");if(i!==e(window).scrollTop())return!1;clearInterval(g),h.ajaxTemplate&&a&&T(n),x(n)})):l.on("mouseenter",function(t){var o=e(this),n=+o.data("tab")-1,i=o.data("template-id");clearInterval(g),h.ajaxTemplate&&i&&T(n),x(n)}),s.load(function(){var e=u.eq([h.activeIndex]).outerHeight(!0);"yes"!=h.no_active_tabs&&(e+=parseInt(d.css("border-top-width"))+parseInt(d.css("border-bottom-width")),d.css("min-height",e))}),"left"!==w[_]&&"right"!==w[_]){var b=e(".jet-tabs__content.active-content",o);if(b[0]){new MutationObserver((e,t)=>{for(var o of e)if("childList"===o.type){b.closest(".jet-tabs__content-wrapper").css("min-height","auto");var n=b.outerHeight(!0);n+=parseInt(b.css("border-top-width"))+parseInt(b.css("border-bottom-width")),b.closest(".jet-tabs__content-wrapper").css("min-height",n)}}).observe(b[0],{childList:!0,subtree:!0})}}if(h.autoSwitch){var y=h.activeIndex,C=l.length;g=setInterval(function(){y<C-1?y++:y=0,h.ajaxTemplate&&T(y),x(y)},+h.autoSwitchDelay)}function x(t){var o,n=l.eq(t),i=u.eq(t),a="auto",f=c.outerHeight(!0),g=elementorFrontend.getCurrentDeviceMode(),p=0;if(l.removeClass("active-tab"),n.addClass("active-tab"),l.attr("aria-expanded","false"),n.attr("aria-expanded","true"),u.removeClass("active-content"),"stretch"===c.css("align-self")&&(c.each(function(){p+=e(this).outerHeight(!0)}),f=p),a=i.outerHeight(!0),a+=parseInt(d.css("border-top-width"))+parseInt(d.css("border-bottom-width")),i.addClass("active-content"),u.attr("aria-hidden","true"),i.attr("aria-hidden","false"),"left"===w[g]||"right"===w[g])a<f?(r.css({"min-height":"auto"}),d.css({"min-height":f}),r.css({"min-height":f})):a<d.outerHeight(!0)&&(d.css({"min-height":a}),r.css({"min-height":a}));else{d.css({"min-height":a});var m=d;if(m[0]){new MutationObserver((e,t)=>{for(var o of e)"childList"===o.type&&(a=i.outerHeight(!0),a+=parseInt(d.css("border-top-width"))+parseInt(d.css("border-bottom-width")),d.css({"min-height":a}))}).observe(m[0],{childList:!0,subtree:!0})}}s.trigger("jet-tabs/tabs/show-tab-event/before",{target:r,tabIndex:t}),o&&clearTimeout(o),o=setTimeout(function(){s.trigger("jet-tabs/tabs/show-tab-event/after",{target:r,tabIndex:t}),!0===h.switchScrolling&&e("html, body").animate({scrollTop:d.offset().top-h.switchScrollingOffset.size},300)},500)}function T(t){var o=u.eq(t),i=o.data("template-loaded")||!1,a=o.data("template-id"),c=e(".jet-tabs-loader",o);if(i||!1===a)return!1;s.trigger("jet-tabs/ajax-load-template/before",{toggleIndex:t,target:r,contentHolder:o}),o.data("template-loaded",!0),e.ajax({type:"GET",url:window.JetTabsSettings.templateApiUrl,dataType:"json",data:{id:a,dev:window.JetTabsSettings.devMode},success:function(e,i,a){var d=e.template_content,l=e.template_scripts,u=e.template_styles;for(var h in l)n.addedAssetsPromises.push(n.loadScriptAsync(h,l[h]));for(var f in u)n.addedAssetsPromises.push(n.loadStyle(f,u[f]));Promise.all(n.addedAssetsPromises).then(function(i){c.remove(),o.append(d),n.elementorFrontendInit(o),s.trigger("jet-tabs/ajax-load-template/after",{toggleIndex:t,target:r,contentHolder:o,responce:e})},function(e){console.log("Script Loaded Error")})}})}h.ajaxTemplate&&T(h.activeIndex),e(window).on("resize.jetTabs orientationchange.jetTabs",n.debounce(50,function(){_=elementorFrontend.getCurrentDeviceMode();for(const[e,t]of Object.entries(v))r.removeClass(t);r.addClass(v[_])})),e(".jet-tabs__control",o).keydown(function(t){var o=e(this),n=t.which||t.keyCode;if((13==n||32==n)&&!o.hasClass("active-tab"))return o.click(),!1;if(37==n){var i=o.prev().data("tab"),a=o.prev().data("template-id");null!=i?(clearInterval(g),h.ajaxTemplate&&a&&T(i-1),x(i-1),o.prev().focus()):o.focus()}if(39==n){var r=o.next().data("tab");a=o.next().data("template-id");null!=r?(clearInterval(g),h.ajaxTemplate&&a&&T(r-1),x(r-1),o.next().focus()):o.focus()}}),m&&l.each(function(t){var o=e(this),n=o.attr("id"),i=o.data("template-id"),a=t;m.forEach(function(e,t){e===n&&(h.ajaxTemplate&&i&&T(a),x(a))})}),l.each(function(){f.push('a[href*="#'+e(this).attr("id")+'"]')}),e(document).on("click.jetTabAnchor",f.join(","),function(t){var n=e(this.hash);if(n.closest(o)[0]){var i=n.data("tab")-1;h.ajaxTemplate&&T(i),x(i)}})},switcherInit:function(t){var o,n=e(".jet-switcher",t).first(),i=(n.data("id"),e(window)),a=e(".jet-switcher__control-wrapper",n).first(),r=e(".jet-switcher__content-wrapper",n).first(),s=e("> .jet-switcher__control-instance",a),c=e("> .jet-switcher__control-instance > .jet-switcher__control, > .jet-switcher__control",a),d=e("> .jet-switcher__content",r),l=(e("> .jet-switcher__content--disable",r),e("> .jet-switcher__content--enable",r),n.hasClass("jet-switcher--disable"));n.data("settings");function u(e){var t,o,a,s="auto";r.css({height:r.outerHeight(!0)}),n.toggleClass("jet-switcher--disable jet-switcher--enable"),t=(l=!n.hasClass("jet-switcher--disable"))?c.eq(1):c.eq(0),o=l?d.eq(1):d.eq(0),d.removeClass("active-content"),s=o.outerHeight(!0),s+=parseInt(r.css("border-top-width"))+parseInt(r.css("border-bottom-width")),o.addClass("active-content"),c.attr("aria-expanded","false"),t.attr("aria-expanded","true"),d.attr("aria-hidden","true"),o.attr("aria-hidden","false"),r.css({height:s}),i.trigger("jet-tabs/switcher/show-case-event/before",{target:n,caseIndex:e}),a&&clearTimeout(a),a=setTimeout(function(){i.trigger("jet-tabs/switcher/show-case-event/after",{target:n,caseIndex:e}),r.css({height:"auto"})},500)}"ontouchend"in window||"ontouchstart"in window?(s.on("touchstart",function(t){o=e(window).scrollTop()}),s.on("touchend",function(t){if(o!==e(window).scrollTop())return!1;u()})):s.on("click.jetSwitcher",function(){u()}),e(window).on("resize.jetSwitcher orientationchange.jetSwitcher",function(){r.css({height:"auto"})}),e(".jet-switcher__control",t).keydown(function(o){var i=e(this),a=o.which||o.keyCode;if(13!=a&&32!=a||(u(),e('[aria-expanded="true"]',t).focus()),37==a)if(0!=i.prev().length&&i.prev().hasClass("jet-switcher__control")&&n.hasClass("jet-switcher--preset-1"))i.prev().focus(),u();else if(n.hasClass("jet-switcher--preset-2")){if(i.hasClass("jet-switcher__control--disable"))return!1;i.hasClass("jet-switcher__control--enable")&&(e(".jet-switcher__control--disable",t).focus(),u())}if(39==a)if(0!=i.next().length&&i.next().hasClass("jet-switcher__control")&&n.hasClass("jet-switcher--preset-1"))i.next().focus(),u();else if(n.hasClass("jet-switcher--preset-2"))if(i.hasClass("jet-switcher__control--disable"))e(".jet-switcher__control--enable",t).focus(),u();else if(i.hasClass("jet-switcher__control--enable"))return!1})},accordionInit:function(t){var o,i,a,r=e(".jet-accordion",t).first(),s=(r.data("id"),e(window)),c=e("> .jet-accordion__inner > .jet-toggle > .jet-toggle__control",r),d=r.data("settings"),l=e("> .jet-accordion__inner > .jet-toggle",r),u=[],h=window.location.hash||!1,f=!!h&&h.replace("#","").split("&");function g(t){var o=l.eq(t),i=e("> .jet-toggle__content",o),a=e("> .jet-toggle__content > .jet-toggle__content-inner",o),c=i.data("template-loaded")||!1,d=i.data("template-id"),u=e(".jet-tabs-loader",a);if(c||!1===d)return!1;s.trigger("jet-tabs/ajax-load-template/before",{toggleIndex:t,target:r,contentHolder:i}),i.data("template-loaded",!0),e.ajax({type:"GET",url:window.JetTabsSettings.templateApiUrl,dataType:"json",data:{id:d,dev:window.JetTabsSettings.devMode},success:function(e,o,c){var d=e.template_content,l=e.template_scripts,h=e.template_styles;for(var f in l)n.addedAssetsPromises.push(n.loadScriptAsync(f,l[f]));for(var g in h)n.addedAssetsPromises.push(n.loadStyle(g,h[g]));Promise.all(n.addedAssetsPromises).then(function(o){u.remove(),a.append(d),n.elementorFrontendInit(a),s.trigger("jet-tabs/ajax-load-template/after",{toggleIndex:t,target:r,contentHolder:i,responce:e})},function(e){console.log("Script Loaded Error")})}})}l.each(function(){e(this).hasClass("active-toggle")&&d.ajaxTemplate&&g(e(this).find(".jet-toggle__control").data("toggle")-1)}),e(window).on("resize.jetAccordion orientationchange.jetAccordion",function(){var t=e("> .jet-accordion__inner > .active-toggle",r);e("> .jet-toggle__content",t).css({height:"auto"})}),e(".jet-toggle__control",t).keydown(function(t){var o=e(this),n=t.which||t.keyCode;if(13==n||32==n)return o.click(),!1;37==n&&0!=o.closest(".jet-accordion__item").prev().length&&o.closest(".jet-accordion__item").prev().find(".jet-toggle__control").focus(),39==n&&0!=o.closest(".jet-accordion__item").next().length&&o.closest(".jet-accordion__item").next().find(".jet-toggle__control").focus()}),c.on("click.jetAccordion",function(){var t=e(this),n=t.closest(".jet-toggle"),c=+t.data("toggle")-1;elementorFrontend.getCurrentDeviceMode();if(d.collapsible)n.hasClass("active-toggle")||l.each(function(t){var n=e(this),a=e("> .jet-toggle__control",n),l=e("> .jet-toggle__content",n),u=e("> .jet-toggle__content > .jet-toggle__content-inner",n).outerHeight();u+=parseInt(l.css("border-top-width"))+parseInt(l.css("border-bottom-width")),t===c?(n.addClass("active-toggle"),l.css({height:u}),a.attr("aria-expanded","true"),d.ajaxTemplate&&g(c),s.trigger("jet-tabs/accordion/show-toggle-event/before",{target:r,toggleIndex:c}),o&&clearTimeout(o),o=setTimeout(function(){s.trigger("jet-tabs/accordion/show-toggle-event/after",{target:r,toggleIndex:c}),l.css({height:"auto"}),!0===d.switchScrolling&&e("html, body").animate({scrollTop:n.offset().top-d.switchScrollingOffset.size},d.switchScrollingDelay)},500)):n.hasClass("active-toggle")&&(l.css({height:l.outerHeight()}),n.removeClass("active-toggle"),a.attr("aria-expanded","false"),i&&clearTimeout(i),i=setTimeout(function(){l.css({height:0})},5))});else{var u=e("> .jet-toggle__content",n),h=e("> .jet-toggle__content > .jet-toggle__content-inner",n).outerHeight();h+=parseInt(u.css("border-top-width"))+parseInt(u.css("border-bottom-width")),a&&clearTimeout(a),a=setTimeout(function(){n.toggleClass("active-toggle"),n.hasClass("active-toggle")?(u.css({height:h}),t.attr("aria-expanded","true"),d.ajaxTemplate&&g(c),s.trigger("jet-tabs/accordion/show-toggle-event/before",{target:r,toggleIndex:c}),o&&clearTimeout(o),o=setTimeout(function(){s.trigger("jet-tabs/accordion/show-toggle-event/after",{target:r,toggleIndex:c}),u.css({height:"auto"}),!0===d.switchScrolling&&e("html, body").animate({scrollTop:t.offset().top-d.switchScrollingOffset.size},d.switchScrollingDelay)},200)):(u.css({height:u.outerHeight()}),t.attr("aria-expanded","false"),i&&clearTimeout(i),i=setTimeout(function(){u.css({height:0})},5))},200)}}),f&&c.each(function(t){var o=e(this),n=o.attr("id");f.forEach(function(e,t){e===n&&o.trigger("click.jetAccordion")})}),c.each(function(){u.push('a[href*="#'+e(this).attr("id")+'"]')}),e(document).on("click.jetAccordionAnchor",u.join(","),function(o){var n=e(this.hash);n.closest(t)[0]&&n.trigger("click.jetAccordion")})},imageAccordionInit:function(t){var o,n=e(".jet-image-accordion",t);n.length&&(o=n.data("settings"),new jetImageAccordion(n,o).init())},loadScriptAsync:function(e,t){return n.addedScripts.hasOwnProperty(e)?e:t?(n.addedScripts[e]=t,new Promise(function(o,n){var i=document.createElement("script");i.src=t,i.async=!0,i.onload=function(){o(e)},document.head.appendChild(i)})):void 0},loadStyle:function(e,t){return n.addedStyles.hasOwnProperty(e)&&n.addedStyles[e]===t?e:t?(n.addedStyles[e]=t,new Promise(function(o,n){var i=document.createElement("link");i.id=e,i.rel="stylesheet",i.href=t,i.type="text/css",i.media="all",i.onload=function(){o(e)},document.head.appendChild(i)})):void 0},elementorFrontendInit:function(t){t.find("[data-element_type]").each(function(){var t=e(this),o=t.data("element_type");if(o)try{"widget"===o&&(o=t.data("widget_type"),window.elementorFrontend.hooks.doAction("frontend/element_ready/widget",t,e)),window.elementorFrontend.hooks.doAction("frontend/element_ready/global",t,e),window.elementorFrontend.hooks.doAction("frontend/element_ready/"+o,t,e)}catch(e){return console.log(e),t.remove(),!1}})},getElementorElementSettings:function(e){return window.elementorFrontend&&window.elementorFrontend.isEditMode()&&e.hasClass("elementor-element-edit-mode")?n.getEditorElementSettings(e):e.data("settings")||{}},getEditorElementSettings:function(e){var o,n=e.data("model-cid");return n&&t.hasOwnProperty("config")&&t.config.hasOwnProperty("elements")&&t.config.elements.hasOwnProperty("data")&&(o=t.config.elements.data[n])?o.toJSON():{}},debounce:function(e,t){var o;return function(n){o&&clearTimeout(o),o=setTimeout(function(){t.call(this,n),o=null},e)}}};window.jetImageAccordion=function(t,o){var n,i=this,a=t,r=e(".jet-image-accordion__item",a),s=r.length;o=o||{};o=e.extend({orientation:"vertical",activeSize:{size:50,unit:"%"},duration:500,activeItem:-1},o),n=o.activeItem,this.layoutBuild=function(){r.css({"transition-duration":o.duration+"ms"}),r.each(function(t){t===n&&(e(this).addClass("active-accordion"),i.layoutRender())}),e(".jet-image-accordion__image-instance",r).imagesLoaded().progress(function(t,o){var n=e(o.img),i=n.closest(".jet-image-accordion__item"),a=e(".jet-image-accordion__item-loader",i);n.addClass("loaded"),a.fadeTo(250,0,function(){e(this).remove()})}),i.layoutRender(),i.addEvents()},this.layoutRender=function(t){var n=o.activeSize.size,i=((100/s).toFixed(2),n/((100-n)/(s-1)));e(".jet-image-accordion__item:not(.active-accordion)",a).css({"flex-grow":1}),e(".active-accordion",a).css({"flex-grow":i})},this.addEvents=function(){var t=e(window).scrollTop();"ontouchend"in window||"ontouchstart"in window?(r.on("touchstart.jetImageAccordion",function(o){t=e(window).scrollTop()}),r.on("touchend.jetImageAccordion",function(o){o.stopPropagation();var n=e(this);if(t!==e(window).scrollTop())return!1;n.hasClass("active-accordion")?r.removeClass("active-accordion"):(r.removeClass("active-accordion"),n.addClass("active-accordion")),i.layoutRender()})):(r.on("mouseenter",function(t){var o=e(this);o.hasClass("active-accordion")||(r.removeClass("active-accordion"),o.addClass("active-accordion")),i.layoutRender()}),e(".jet-image-accordion__item",a).keydown(function(t){var o=e(this),a=t.which||t.keyCode;13!=a&&32!=a||(o.hasClass("active-accordion")?(r.removeClass("active-accordion"),-1!==n&&r.eq(n).addClass("active-accordion"),i.layoutRender()):(r.removeClass("active-accordion"),o.addClass("active-accordion")),i.layoutRender()),37==a&&0!=o.prev().length&&(r.removeClass("active-accordion"),o.prev().focus(),o.prev().addClass("active-accordion"),i.layoutRender()),39==a&&0!=o.next().length&&(r.removeClass("active-accordion"),o.next().focus(),o.next().addClass("active-accordion"),i.layoutRender())})),a.on("mouseleave.jetImageAccordion",function(e){r.removeClass("active-accordion"),-1!==n&&r.eq(n).addClass("active-accordion"),i.layoutRender()})},this.init=function(){i.layoutBuild()}},e(window).on("elementor/frontend/init",n.init),window.JetTabs=n}(jQuery,window.elementorFrontend,window.JetTabsSettings);