const monstroid2ResponsiveMenu=(options={})=> { const defaults={ wrapper: '.main-navigation', menu: '.menu', threshold: 640, mobileMenuClass: 'mobile-menu', mobileMenuOpenClass: 'mobile-menu-open', mobileMenuToggleButtonClass: 'mobile-menu-toggle-button', toggleButtonTemplate: '' } options=Object.assign(defaults, options); const wrapper=options.wrapper.nodeType ? options.wrapper : document.querySelector(options.wrapper); const menu=options.menu.nodeType ? options.menu : document.querySelector(options.menu); let toggleButton, toggleButtonOpenBlock, toggleButtonCloseBlock, isMobileMenu, isMobileMenuOpen; const init=[ addToggleButton, checkScreenWidth, addResizeHandler ] if(wrapper&&menu){ runSeries(init); } function addToggleButton(){ toggleButton=document.createElement('button'); toggleButton.innerHTML=options.toggleButtonTemplate.trim(); toggleButton.className=options.mobileMenuToggleButtonClass; wrapper.insertBefore(toggleButton, wrapper.children[0]); toggleButtonOpenBlock=toggleButton.querySelector('.mobile-menu-open'); toggleButtonCloseBlock=toggleButton.querySelector('.mobile-menu-close'); toggleButton.addEventListener('click', mobileMenuToggle); } function switchToMobileMenu(){ wrapper.classList.add(options.mobileMenuClass); toggleButton.style.display="block"; isMobileMenuOpen=false; hideMenu(); } function switchToDesktopMenu(){ wrapper.classList.remove(options.mobileMenuClass); toggleButton.style.display="none"; showMenu(); } function mobileMenuToggle(){ if(isMobileMenuOpen){ hideMenu(); }else{ showMenu(); } isMobileMenuOpen = !isMobileMenuOpen; } function hideMenu(){ wrapper.classList.remove(options.mobileMenuOpenClass); menu.style.display="none"; toggleButtonOpenBlock.style.display="none"; toggleButtonCloseBlock.style.display="block"; } function showMenu(){ wrapper.classList.add(options.mobileMenuOpenClass); menu.style.display="block"; toggleButtonOpenBlock.style.display="block"; toggleButtonCloseBlock.style.display="none"; } function checkScreenWidth(){ let currentMobileMenuStatus=window.innerWidth < options.threshold ? true:false; if(isMobileMenu!==currentMobileMenuStatus){ isMobileMenu=currentMobileMenuStatus; isMobileMenu ? switchToMobileMenu():switchToDesktopMenu(); }} function addResizeHandler(){ window.addEventListener('resize', resizeHandler); } function resizeHandler(){ window.requestAnimationFrame(checkScreenWidth) } function runSeries(functions){ functions.forEach(func=> func()); }}; !function(n){n.fn.UItoTop=function(o){var e={text:"To Top",min:200,inDelay:600,outDelay:400,containerID:"toTop",containerHoverID:"toTopHover",scrollSpeed:1200,easingType:"linear"},t=n.extend(e,o),i="#"+t.containerID,a="#"+t.containerHoverID;n("body").append(''+t.text+""),n(i).hide().on("click.UItoTop",function(){return n("html, body").animate({scrollTop:0},t.scrollSpeed,t.easingType),n("#"+t.containerHoverID,this).stop().animate({opacity:0},t.inDelay,t.easingType),!1}).hover(function(){n(a,this).stop().animate({opacity:1},600,"linear")},function(){n(a,this).stop().animate({opacity:0},700,"linear")}),n(window).scroll(function(){var o=n(window).scrollTop();"undefined"==typeof document.body.style.maxHeight&&n(i).css({position:"absolute",top:o+n(window).height()-50}),o>t.min?n(i).fadeIn(t.inDelay):n(i).fadeOut(t.Outdelay)})}}(jQuery); ;var Monstroid2_Theme_JS; (function($){ 'use strict'; Monstroid2_Theme_JS={ init: function(){ this.page_preloader_init(); this.toTopInit(); this.responsiveMenuInit(); this.magnificPopupInit(); this.swiperInit(); }, page_preloader_init: function(self){ if($('.page-preloader-cover')[0]){ $('.page-preloader-cover').delay(500).fadeTo(500, 0, function(){ $(this).remove(); }); }}, toTopInit: function(){ if($.isFunction(jQuery.fn.UItoTop)){ $().UItoTop({ text: '', scrollSpeed: 600 }); }}, responsiveMenuInit: function(){ if(typeof monstroid2ResponsiveMenu!=='undefined'){ monstroid2ResponsiveMenu(); }}, magnificPopupInit: function(){ if(typeof $.magnificPopup!=='undefined'){ $('[data-popup="magnificPopup"]').magnificPopup({ type: 'image' }); $(".gallery > .gallery-item a").filter("[href$='.png'],[href$='.jpg']").magnificPopup({ type: 'image', gallery: { enabled: true, navigateByImgClick: true, }, }); }}, swiperInit: function(){ if(typeof Swiper!=='undefined'){ var mySwiper=new Swiper('.swiper-container', { loop: true, spaceBetween: 10, autoHeight: true, navigation: { nextEl: '.swiper-button-next', prevEl: '.swiper-button-prev' }}) }} }; Monstroid2_Theme_JS.init(); }(jQuery)); (function($){ 'use strict'; var JetMenu=function(element, options){ this.defaultSettings={ enabled: false, threshold: 767, mouseLeaveDelay: 500, openSubType: 'click', megaWidthType: 'container', megaWidthSelector: '', mainMenuSelector: '.jet-menu', menuItemSelector: '.jet-menu-item', moreMenuContent: '···', templates: { mobileMenuToogleButton: '', }} this.settings=$.extend(this.defaultSettings, options); this.$window=$(window); this.$document=$(document); this.$element=$(element); this.$instance=$(this.settings.mainMenuSelector, this.$element).addClass('jet-responsive-menu'); this.$menuItems=$('>' + this.settings.menuItemSelector, this.$instance).addClass('jet-responsive-menu-item'); this.$moreItemsInstance=null; this.hiddenItemsArray=[]; this.$mobileStateCover=null; this.createMenuInstance(); this.$instance.trigger('jetMenuCreated'); } JetMenu.prototype={ constructor: JetMenu, createMenuInstance: function(){ var self=this, mainMenuWidth, totalVisibleItemsWidth=0; this.subMenuRebuild(); this.subMegaMenuRebuild(); $('body').append('
'); this.$mobileStateCover=$('.jet-mobile-menu-cover'); if(! tools.isEmpty(this.settings.moreMenuContent)&&self.settings.enabled){ self.$instance.append(''); self.$moreItemsInstance=$('> .jet-responsive-menu-available-items', this.$instance); self.$moreItemsInstance.attr({ 'hidden': 'hidden' }); } if(! tools.isEmpty(this.settings.templates.mobileMenuToogleButton)){ this.$element.prepend(this.settings.templates.mobileMenuToogleButton); this.$mobileToogleButton=$('.jet-mobile-menu-toggle-button', this.$element); } if(this.isThreshold()){ this.$element.addClass('jet-mobile-menu'); $('body').addClass('jet-mobile-menu-active'); }else{ $('body').addClass('jet-desktop-menu-active'); this.rebuildItems(); this.$instance.trigger('rebuildItems'); } this.subMenuHandler(); this.mobileViewHandler(); this.watch(); }, subMenuHandler: function(){ var self=this, transitionend='transitionend oTransitionEnd webkitTransitionEnd', prevClickedItem=null, menuItem, menuItemParents, timer; if(self.mobileAndTabletcheck()){ this.$instance.on('touchstart', '.jet-menu-item > a', touchStartItem); this.$instance.on('touchend', '.jet-menu-item > a', touchEndItem); }else{ switch(this.settings.openSubType){ case 'hover': this.$instance.on('mouseenter', '.jet-menu-item > a', mouseEnterHandler); this.$instance.on('mouseleave', '.jet-menu-item > a', mouseLeaveHandler); break; case 'click': this.$instance.on('click', '.jet-menu-item > a', clickHandler); break; } this.$instance.on('mouseenter', '.jet-sub-menu, .jet-sub-mega-menu', mouseEnterSubMenuHandler); this.$instance.on('mouseenter', mouseEnterInstanceHandler); this.$instance.on('mouseleave', mouseLeaveInstanceHandler); } function touchStartItem(event){ var $currentTarget=$(event.currentTarget), $this=$currentTarget.closest('.jet-menu-item'); $this.data('offset', $this.offset().top); } function touchEndItem(event){ var $this, $siblingsItems, $link, $currentTarget, subMenu, offset; event.preventDefault(); event.stopPropagation(); $currentTarget=$(event.currentTarget); $this=$currentTarget.closest('.jet-menu-item'); $siblingsItems=$this.siblings('.jet-menu-item.jet-menu-item-has-children'); $link=$('> a', $this); subMenu=$('.jet-sub-menu:first, .jet-sub-mega-menu', $this); offset=$this.data('offset'); if(offset!==$this.offset().top){ return false; } if($siblingsItems[0]){ $siblingsItems.removeClass('jet-menu-hover'); $('jet-menu-item-has-children', $siblingsItems).removeClass('jet-menu-hover'); } if(! $('.jet-sub-menu, .jet-sub-mega-menu', $this)[0]||$this.hasClass('jet-menu-hover')){ window.location=$link.attr('href'); $('body').removeClass('jet-mobile-menu-visible'); self.$element.removeClass('jet-mobile-menu-active-state'); return false; } if(subMenu[0]){ $this.addClass('jet-menu-hover'); }} function clickHandler(event){ var $this, $siblingsItems, $link, $currentTarget, subMenu; event.preventDefault(); event.stopPropagation(); $currentTarget=$(event.currentTarget); $this=$currentTarget.closest('.jet-menu-item'); $siblingsItems=$this.siblings('.jet-menu-item.jet-menu-item-has-children'); $link=$('> a', $this); subMenu=$('.jet-sub-menu:first, .jet-sub-mega-menu', $this); if($siblingsItems[0]){ $siblingsItems.removeClass('jet-menu-hover'); $('jet-menu-item-has-children', $siblingsItems).removeClass('jet-menu-hover'); } if(! $('.jet-sub-menu, .jet-sub-mega-menu', $this)[0]||$this.hasClass('jet-menu-hover')){ window.location=$link.attr('href'); $('body').removeClass('jet-mobile-menu-visible'); self.$element.removeClass('jet-mobile-menu-active-state'); return false; } if(subMenu[0]){ $this.addClass('jet-menu-hover'); }} function mouseEnterHandler(event){ var subMenu; menuItem=$(event.target).parents('.jet-menu-item'); subMenu=menuItem.children('.jet-sub-menu, .jet-sub-mega-menu').first(); $('.jet-menu-hover', this.$instance).removeClass('jet-menu-hover'); if(subMenu[0]){ menuItem.addClass('jet-menu-hover'); }} function mouseLeaveHandler(event){ } function mouseEnterSubMenuHandler(event){ clearTimeout(timer); } function mouseEnterInstanceHandler(event){ clearTimeout(timer); } function mouseLeaveInstanceHandler(event){ timer=setTimeout(function(){ $('.jet-menu-hover', this.$instance).removeClass('jet-menu-hover'); }, self.settings.mouseLeaveDelay); } var windowWidth=$(window).width(); self.$window.on('orientationchange resize', function(event){ if($('body').hasClass('jet-mobile-menu-active')){ return; } if($(window).width()===windowWidth){ return; } windowWidth=$(window).width(); self.$instance.find('.jet-menu-item').removeClass('jet-menu-hover'); }); self.$document.on('touchend', function(event){ if($('body').hasClass('jet-mobile-menu-active')){ return; } if($(event.target).closest('.jet-menu-item').length){ return; } self.$instance.find('.jet-menu-item').removeClass('jet-menu-hover'); }); }, mobileViewHandler: function(){ var self=this, toogleStartEvent='mousedown', toogleEndEvent='mouseup'; if('ontouchend' in window||'ontouchstart' in window){ toogleStartEvent='touchstart'; toogleEndEvent='touchend'; } this.$mobileToogleButton.on(toogleEndEvent, function(event){ event.preventDefault(); $('body').toggleClass('jet-mobile-menu-visible'); self.$element.toggleClass('jet-mobile-menu-active-state'); }); this.$document.on(toogleEndEvent, function(event){ if($(event.target).closest(self.$element).length){ return; } if(! self.$element.hasClass('jet-mobile-menu')||! self.$element.hasClass('jet-mobile-menu-active-state')){ return; } $('body').removeClass('jet-mobile-menu-visible'); self.$element.removeClass('jet-mobile-menu-active-state'); }); }, watch: function(delay){ var delay=delay||10; $(window).on('resize.jetResponsiveMenu orientationchange.jetResponsiveMenu', this.debounce(delay, this.watcher.bind(this))); this.$instance.trigger('containerResize'); }, watcher: function(event){ if(this.isThreshold()){ this.$element.addClass('jet-mobile-menu'); $('body').addClass('jet-mobile-menu-active'); $('body').removeClass('jet-desktop-menu-active'); this.$menuItems.removeAttr('hidden'); if(0!==this.hiddenItemsArray.length){ $('> .jet-sub-menu', this.$moreItemsInstance).empty(); } if(this.settings.enabled){ this.$moreItemsInstance.attr({ 'hidden': 'hidden' }); }}else{ this.$element.removeClass('jet-mobile-menu'); $('body').removeClass('jet-mobile-menu-active'); $('body').addClass('jet-desktop-menu-active'); $('body').removeClass('jet-mobile-menu-visible'); this.rebuildItems(); this.$instance.trigger('rebuildItems'); this.$instance.trigger('containerResize'); }}, rebuildItems: function(){ if(! this.settings.enabled){ return false; } var self=this, mainMenuWidth=this.$instance.width(), correctedMenuWidth=this.$instance.width() - self.$moreItemsInstance.outerWidth(true), iterationVisibleItemsWidth=0, iterationHiddenItemsWidth=this.getVisibleItemsWidth(), visibleItemsArray=[], hiddenItemsArray=[]; self.$menuItems.each(function(){ var $this=$(this); iterationVisibleItemsWidth +=$this.outerWidth(true); if(iterationVisibleItemsWidth > correctedMenuWidth&&! tools.inArray(this, hiddenItemsArray)){ hiddenItemsArray.push(this); }else{ visibleItemsArray.push(this); }}); hiddenItemsArray.forEach(function(item){ var $item=$(item); $item.attr({ 'hidden': 'hidden' }); }); visibleItemsArray.forEach(function(item, index){ var $item=$(item); $item.removeAttr('hidden'); }); $('> .jet-sub-menu', self.$moreItemsInstance).empty(); hiddenItemsArray.forEach(function(item){ var $clone=$(item).clone(); $('.jet-sub-mega-menu', $clone).remove(); $clone.addClass('jet-sub-menu-item'); $clone.removeAttr('hidden'); $('> .top-level-link', $clone).toggleClass('top-level-link sub-level-link'); $('> .jet-sub-menu', self.$moreItemsInstance).append($clone); }); if(0==hiddenItemsArray.length){ self.$moreItemsInstance.attr({ 'hidden': 'hidden' }); self.$moreItemsInstance.addClass('jet-empty'); }else{ self.$moreItemsInstance.removeAttr('hidden'); self.$moreItemsInstance.removeClass('jet-empty'); } self.hiddenItemsArray=hiddenItemsArray; }, subMenuRebuild: function(){ var self=this, initSubMenuPosition=false; this.$instance.on('rebuildItems', function(){ var $subMenuList=$('.jet-sub-menu', self.$instance), maxWidth=self.$window.outerWidth(true), isRTL=$('body').hasClass('rtl'); if(! $subMenuList[0]){ return; } if(initSubMenuPosition){ $subMenuList.removeClass('inverse-side'); initSubMenuPosition=false; } $subMenuList.each(function(){ var $this=$(this), subMenuOffset=$this.offset().left, subMenuPos=subMenuOffset + $this.outerWidth(true); if(! isRTL){ if(subMenuPos >=maxWidth){ $this.addClass('inverse-side'); $this.find('.jet-sub-menu').addClass('inverse-side'); initSubMenuPosition=true; }else if(subMenuOffset < 0){ $this.removeClass('inverse-side'); $this.find('.jet-sub-menu').removeClass('inverse-side'); }}else{ if(subMenuOffset < 0){ $this.addClass('inverse-side'); $this.find('.jet-sub-menu').addClass('inverse-side'); initSubMenuPosition=true; }else if(subMenuPos >=maxWidth){ $this.removeClass('inverse-side'); $this.find('.jet-sub-menu').removeClass('inverse-side'); }} }); }); }, subMegaMenuRebuild: function(){ var self=this; this.$instance.on('containerResize', function(){ var $megaMenuList=$('.jet-sub-mega-menu', self.$instance), maxWidth=$('body').outerWidth(true); switch(self.settings.megaWidthType){ case 'items': var visibleItemsWidth=self.getVisibleItemsWidth(), firstOffset=$('> .jet-menu-item:first', self.$instance).position().left; $megaMenuList.css({ 'width': visibleItemsWidth + 'px', 'left': firstOffset }); break; case 'selector': var customSelector=$(self.settings.megaWidthSelector), instanceOffset=null, customSelectorOffset=null; if(customSelector[0]){ instanceOffset=self.$instance.offset().left; customSelectorOffset=customSelector.offset().left; $megaMenuList.css({ 'width': customSelector.outerWidth(), 'left': (customSelectorOffset - instanceOffset) + 'px' }); } break; } if($megaMenuList[0]){ $megaMenuList.css({ 'maxWidth': '' }); $megaMenuList.each(function(){ var $this=$(this), megaMenuOffsetLeft=$this.offset().left, megaMenuOffsetRight=megaMenuOffsetLeft + $this.outerWidth(true); if(megaMenuOffsetRight >=maxWidth){ $this.css({ 'maxWidth': maxWidth - megaMenuOffsetLeft }); }}); }}); }, getVisibleItemsWidth: function(){ var totalVisibleItemsWidth=0; this.$menuItems.each(function(){ var $this=$(this); if(! $this.hasAttr('hidden')){ totalVisibleItemsWidth +=$this.outerWidth(true); }}); return totalVisibleItemsWidth; }, isThreshold: function(){ return(this.$window.width() < this.settings.threshold) ? true:false; }, mobileAndTabletcheck: function(){ var check=false; (function(a){if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|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|xda|xiino|android|ipad|playbook|silk/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; }, debounce: function(threshold, callback){ var timeout; return function debounced($event){ function delayed(){ callback.call(this, $event); timeout=null; } if(timeout){ clearTimeout(timeout); } timeout=setTimeout(delayed, threshold); };}} var tools={ isEmpty: function(value){ return(( false===value)||(''===value)||(null===value)||(undefined===value)); }, isEmptyObject: function(value){ return(true===this.isEmpty(value))||(0===value.length); }, isString: function(value){ return(( 'string'===typeof value)||(value instanceof String)); }, isArray: function(value){ return $.isArray(value); }, inArray: function(value, array){ return($.inArray(value, array)!==-1); }}; $.fn.hasAttr=function(name){ return this.attr(name)!==undefined; }; $.fn.JetMenu=function(options){ return this.each(function(){ var $this=$(this), pluginOptions=('object'===typeof options) ? options:{}; if(! $this.data('JetMenu')){ $this.data('JetMenu', new JetMenu(this, pluginOptions)); }}); };}(jQuery)); (function($){ 'use strict'; var jetMenu={ init: function(){ var rollUp=false, jetMenuMouseleaveDelay=500, jetMenuMegaWidthType='container', jetMenuMegaWidthSelector='', jetMenuMegaOpenSubType='hover', jetMenuMobileBreakpoint=768; if(window.jetMenuPublicSettings&&window.jetMenuPublicSettings.menuSettings){ rollUp=('true'===jetMenuPublicSettings.menuSettings.jetMenuRollUp) ? true:false; jetMenuMouseleaveDelay=jetMenuPublicSettings.menuSettings.jetMenuMouseleaveDelay||500; jetMenuMegaWidthType=jetMenuPublicSettings.menuSettings.jetMenuMegaWidthType||'container'; jetMenuMegaWidthSelector=jetMenuPublicSettings.menuSettings.jetMenuMegaWidthSelector||''; jetMenuMegaOpenSubType=jetMenuPublicSettings.menuSettings.jetMenuMegaOpenSubType||'hover'; jetMenuMobileBreakpoint=jetMenuPublicSettings.menuSettings.jetMenuMobileBreakpoint||768; } $('.jet-menu-container').JetMenu({ enabled: rollUp, mouseLeaveDelay: +jetMenuMouseleaveDelay, megaWidthType: jetMenuMegaWidthType, megaWidthSelector: jetMenuMegaWidthSelector, openSubType: jetMenuMegaOpenSubType, threshold: +jetMenuMobileBreakpoint }); }, }; jetMenu.init(); }(jQuery)); !function(e,a){"use strict";a.utilites.namespace("CherryAjaxHandler"),a.CherryAjaxHandler=function(t){var n=this,r={handlerId:"",cache:!1,processData:!0,url:"",async:!1,beforeSendCallback:function(){},errorCallback:function(){},successCallback:function(){},completeCallback:function(){}};return t&&e.extend(r,t),window[r.handlerId]?(n.handlerSettings=window[r.handlerId]||{},n.ajaxRequest=null,n.ajaxProcessing=!1,n.data={action:n.handlerSettings.action,nonce:n.handlerSettings.nonce},""===r.url&&(r.url="false"===n.handlerSettings.is_public?window.ajaxurl:window.cherryHandlerAjaxUrl.ajax_url),n.send=function(){n.ajaxProcessing&&a.cherryHandlerUtils.noticeCreate("error-notice",n.handlerSettings.sys_messages.wait_processing,n.handlerSettings.is_public),n.ajaxProcessing=!0,n.ajaxRequest=jQuery.ajax({type:n.handlerSettings.type,url:r.url,data:n.data,cache:r.cache,dataType:n.handlerSettings.data_type,processData:r.processData,beforeSend:function(e,a){null===n.ajaxRequest||r.async||n.ajaxRequest.abort(),r.beforeSendCallback&&"function"==typeof r.beforeSendCallback&&r.beforeSendCallback(e,a)},error:function(a,t,n){e(document).trigger({type:"cherry-ajax-handler-error",jqXHR:a,textStatus:t,errorThrown:n}),r.errorCallback&&"function"==typeof r.errorCallback&&r.errorCallback(a,t,n)},success:function(t,c,s){n.ajaxProcessing=!1,e(document).trigger({type:"cherry-ajax-handler-success",response:t,jqXHR:s,textStatus:c}),r.successCallback&&"function"==typeof r.successCallback&&r.successCallback(t,c,s),a.cherryHandlerUtils.noticeCreate(t.type,t.message,n.handlerSettings.is_public)},complete:function(a,t){e(document).trigger({type:"cherry-ajax-handler-complete",jqXHR:a,textStatus:t}),r.completeCallback&&"function"==typeof r.completeCallback&&r.completeCallback(a,t)}})},n.sendData=function(e){var a=e||{};n.data={action:n.handlerSettings.action,nonce:n.handlerSettings.nonce,data:a},n.send()},void(n.sendFormData=function(t){var r,c=e(t);r=a.cherryHandlerUtils.serializeObject(c),n.sendData(r)})):(window.console&&window.console.warn("Handler id not found"),!1)},a.utilites.namespace("cherryHandlerUtils"),a.cherryHandlerUtils={noticeCreate:function(a,t,n){function r(){var a=100;e(".cherry-handler-notice").each(function(){e(this).css({top:a}),a+=e(this).outerHeight(!0)})}var c,s,i=0,o=n||!1;return t&&"true"!==o?(c=e('
'+t+"
"),e("body").prepend(c),r(),i=-1*(c.outerWidth(!0)+10),c.css({right:i}),s=setTimeout(function(){c.css({right:10}).addClass("show-state")},100),s=setTimeout(function(){i=-1*(c.outerWidth(!0)+10),c.css({right:i}).removeClass("show-state")},4e3),void(s=setTimeout(function(){c.remove(),clearTimeout(s)},4500))):!1},serializeObject:function(a){var t=this,n={},r={},c={validate:/^[a-zA-Z][a-zA-Z0-9_-]*(?:\[(?:\d*|[a-zA-Z0-9_-]+)\])*$/,key:/[a-zA-Z0-9_-]+|(?=\[\])/g,push:/^$/,fixed:/^\d+$/,named:/^[a-zA-Z0-9_-]+$/};return this.build=function(e,a,t){return e[a]=t,e},this.push_counter=function(e){return void 0===r[e]&&(r[e]=0),r[e]++},e.each(a.serializeArray(),function(){var a,r,s,i;if(c.validate.test(this.name)){for(r=this.name.match(c.key),s=this.value,i=this.name;void 0!==(a=r.pop());)i=i.replace(new RegExp("\\["+a+"\\]$"),""),a.match(c.push)?s=t.build([],t.push_counter(i),s):a.match(c.fixed)?s=t.build([],a,s):a.match(c.named)&&(s=t.build({},a,s));n=e.extend(!0,n,s)}}),n}}}(jQuery,window.CherryJsCore); !function(a,b){"use strict";function c(){if(!e){e=!0;var a,c,d,f,g=-1!==navigator.appVersion.indexOf("MSIE 10"),h=!!navigator.userAgent.match(/Trident.*rv:11\./),i=b.querySelectorAll("iframe.wp-embedded-content");for(c=0;c1e3)g=1e3;else if(~~g<200)g=200;f.height=g}if("link"===d.message)if(h=b.createElement("a"),i=b.createElement("a"),h.href=f.getAttribute("src"),i.href=d.value,i.host===h.host)if(b.activeElement===f)a.top.location.href=d.value}else;}},d)a.addEventListener("message",a.wp.receiveEmbedMessage,!1),b.addEventListener("DOMContentLoaded",c,!1),a.addEventListener("load",c,!1)}(window,document); !function(a){a.fn.hoverIntent=function(b,c,d){var e={interval:100,sensitivity:6,timeout:0};e="object"==typeof b?a.extend(e,b):a.isFunction(c)?a.extend(e,{over:b,out:c,selector:d}):a.extend(e,{over:b,out:b,selector:c});var f,g,h,i,j=function(a){f=a.pageX,g=a.pageY},k=function(b,c){return c.hoverIntent_t=clearTimeout(c.hoverIntent_t),Math.sqrt((h-f)*(h-f)+(i-g)*(i-g))Previous',nextArrow:'',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,t){return i('