"use strict";function isGutenbergActive(){return"undefined"!=typeof wp&&void 0!==wp.blocks}jQuery((function($){function orionOwl(){jQuery.each($(".owl-carousel"),(function(){var owl=$(this),childCount=$(".item",owl).length,number_items=1,number_items_desktop=4,owlAutoplay=!0,number_items_tablet=1,dots=!1,margin=0,owlAutoheight=!1,rtl="rtl"==$("html").attr("dir");("1"==owl.attr("data-dots")&&(dots=!0),owl.attr("data-autoplay"))&&(1!=("true"==owl.attr("data-autoplay")||"1"==owl.attr("data-autoplay"))&&(owlAutoplay=!1));if(owl.attr("data-autoheight"))owlAutoheight="true"==owl.attr("data-autoheight")||"1"==owl.attr("data-autoheight");owl.attr("data-margin")&&(margin=parseInt(owl.attr("data-margin"))),owl.attr("data-col")&&(number_items_desktop=parseInt(owl.attr("data-col"))),12==number_items_desktop?(number_items_tablet=3,number_items=6):6==number_items_desktop?(number_items=3,number_items_tablet=3):number_items=number_items_desktop>4?4:number_items_desktop,6>number_items_desktop&&number_items_desktop>1&&(number_items_tablet=2),owl.attr("data-tablet")&&(number_items_tablet=owl.attr("data-tablet"));var owlLoop="true";owl.attr("data-owlloop")&&(owlLoop=owl.attr("data-owlloop"));var data_slideby=0,slideByDesktop=1,slideByItems=1,slideByTablet=1,autoplayTimeout=5e3;owl.attr("data-autoplaytimeout")&&(autoplayTimeout=parseInt(owl.attr("data-autoplaytimeout"))),owl.attr("data-slideby")&&(data_slideby=parseInt(owl.attr("data-slideby"))),slideByDesktop=number_items_desktop>childCount/2?1:0!=data_slideby&&data_slideby<=number_items_desktop?data_slideby:number_items_desktop,slideByItems=number_items>childCount/2?1:0!=data_slideby&&data_slideby<=number_items?data_slideby:number_items,slideByTablet=number_items_tablet>childCount/2?1:0!=data_slideby&&data_slideby<=number_items_tablet?data_slideby:number_items_tablet;var hashListner=!1;if(owl.attr("data-hashlisten"))hashListner=owl.attr("data-hashlisten");var isloop="true"==owlLoop;if(owl.owlCarousel({rtl:rtl,loop:isloop,URLhashListener:hashListner,startPosition:"URLHash",animateOut:"fadeOut",autoplay:owlAutoplay,autoplayHoverPause:!0,autoplaySpeed:500,autoplayTimeout:autoplayTimeout,responsiveClass:!0,autoHeight:owlAutoheight,dots:dots,margin:margin,responsive:{0:{items:1,nav:!1,slideBy:1},600:{items:number_items_tablet,nav:!1,slideBy:slideByTablet},992:{items:number_items,nav:!1,slideBy:slideByItems},1200:{items:number_items_desktop,nav:!1,slideBy:slideByDesktop}}}),owl.hasClass("owl-equal-height")&&($(".owl-item",owl).each((function(){var $this=$(this),imageSource=$this.find("img").attr("src");$this.css("backgroundImage","url("+imageSource+")")})),function($carousel){var minratio=$carousel.data("minratio"),owlWidth=$carousel.innerWidth(),owlHeight=parseInt(owlWidth*minratio);$carousel.height(owlHeight),$(".owl-item",$carousel).height(owlHeight)}(owl)),owl.hasClass("owl-correct-height")&&(owlCorrectHeight(owl),owl.find(".widget_orion_tabs_w")&&$(".tabs-wrap a[role=tab]",owl).on("click",(function(){owlCorrectHeight(owl)}))),owl.on("changed.owl.carousel",(function(event){var urlHash=window.location.hash;if(""!=urlHash){var dataSearchQuery=urlHash.replace("#",""),navTab=$(".carousel-navigation a[data-navid="+dataSearchQuery+"]").parent("li");navTab.addClass("active"),navTab.siblings().removeClass("active"),history.replaceState(null,null," ")}})),1==owlAutoplay){$(owl).on("mouseleave",(function(){owl.trigger("play.owl.autoplay")})),$(owl).on("mouseenter",(function(){owl.trigger("stop.owl.autoplay")}));var navlinks=$(owl).closest(".so-panel.widget").find(".owl-nav-link");navlinks.length&&(navlinks.on("mouseenter",(function(){owl.trigger("stop.owl.autoplay")})),navlinks.on("mouseleave",(function(){owl.trigger("play.owl.autoplay")})))}owl.siblings().find(".owlnext").on("click",(function(){owl.trigger("next.owl.carousel")})),owl.siblings().find(".owlprev").on("click",(function(){owl.trigger("prev.owl.carousel")}))}))}function owlCorrectHeight($carousel){setTimeout((function(){var slideHeight=$("> .owl-stage-outer > .owl-stage > .owl-item.active",$carousel).outerHeight();$("> .owl-stage-outer",$carousel).height(slideHeight)}),1e3)}isGutenbergActive()&&setTimeout(orionOwl,100),$(orionOwl),$(".so-widget-orion_advanced_carousel_w .widget_orion_accordion_w .panel-heading").on("click",(function(){$(".so-widget-orion_advanced_carousel_w .owl-stage-outer").css("height","")}))}));