https://www.hotelmanagement-network.com/wp-content/themes/goodlife-wp/assets/js/app.min.js?ver=4.6.0
1var skroller;!function(g,p,m){"use strict";var f=g(document),v=g(p),h=g("body"),a=new MobileDetect(p.navigator.userAgent);p.lazySizesConfig=p.lazySizesConfig||{},p.lazySizesConfig.expand=250,p.lazySizesConfig.loadMode=1,p.lazySizesConfig.loadHidden=!1;var b={menuscroll:g("#menu-scroll"),init:function(){var t,e,i=this;for(t in i)!i.hasOwnProperty(t)||void 0!==(e=i[t]).selector&&void 0!==e.init&&0<g(e.selector).length&&e.init()},fixedHeader:{selector:".subheader.fixed",init:function(){var t=this,e=g(t.selector);v.on("scroll.fixed-header",function(){t.scroll(e)}).trigger("scroll.fixed-header")},scroll:function(t){var e=v.scrollTop(),i="header--slide",o="header--unslide",a=t.find(".quick_search");400<e?(t.hasClass(o)&&t.removeClass(o),t.hasClass(i)||setTimeout(function(){t.addClass(i)},10)):e<400&&0<e?t.hasClass(i)&&(t.removeClass(i),t.addClass(o),a.removeClass("active")):(t.removeClass(i),t.removeClass(o),a.removeClass("active"))}},search:{selector:".quick_toggle",init:function(){g(this.selector).each(function(t){var e=g(this),i=e.parents(".quick_search");e.on("click",function(t){return i.toggleClass("active"),!1})})}},responsiveNav:{selector:"#wrapper",init:function(){var t=g(this.selector),e=g(".click-capture"),i=g("#mobile-menu"),o=i.find('.mobile-menu li:has(".sub-menu")>a span');g(".mobile-toggle-holder").on("click",function(){return t.removeClass("open-menu").addClass("open-menu"),!1}),e.add(i.find(".thb-close")).on("click",function(){t.removeClass("open-menu")}),o.on("click",function(t){var e=g(this).parents("a"),i=e.next(".sub-menu");e.hasClass("active")?(e.removeClass("active"),i.slideUp("200",function(){setTimeout(function(){b.menuscroll.update()},10)})):(e.addClass("active"),i.slideDown("200",function(){setTimeout(function(){b.menuscroll.update()},10)})),t.stopPropagation(),t.preventDefault()})}},categoryMenu:{selector:".sf-menu:not(.secondary)",init:function(){g(this.selector).find(".menu-item-has-children").each(function(){var t=g(this),e=t.find(">.sub-menu,>.thb_mega_menu_holder"),i=t.find(".thb_mega_menu li"),o=t.find(".category-children>.row");i.first().addClass("active"),t.hoverIntent(function(){gsap.to(e,{duration:.5,autoAlpha:1,ease:Quart.easeOut,onStart:function(){e.css("display","block")},onComplete:function(){b.circle_perc.control()}})},function(){gsap.to(e,{duration:.5,autoAlpha:0,ease:Quart.easeOut,onComplete:function(){e.css("display","none")}})}),i.on("mouseenter",function(){var t=g(this),e=t.index();i.removeClass("active"),t.addClass("active"),o.hide(),o.filter(":nth-child("+(e+1)+")").css({display:"flex"}),b.circle_perc.control()})})}},secondaryMenu:{selector:".secondary-holder",init:function(){var t=g(this.selector),e=t.find(".sf-menu"),i=-1;g(">li",e).each(function(){i=i>g(this).outerWidth()?i:g(this).outerWidth()}),e.css({display:"none",width:2*i+70}),t.hoverIntent(function(){gsap.to(e,{duration:.5,autoAlpha:1,ease:Quart.easeOut,onStart:function(){e.css("display","flex")}})},function(){gsap.to(e,{duration:.5,autoAlpha:0,ease:Quart.easeOut,onComplete:function(){e.css("display","none")}})})}},loginForm:{selector:"#thb-login",init:function(){var o=g(this.selector),a=g("#thb_login_form",o),n=g("#thb_registration_form",o),s=g("#thb_lost_form",o),t=g("ul",o),e=g("a",t),i=g(".lost_password",o),r=g(".back",o);e.on("click",function(){var t=g(this);return t.hasClass("active")||(e.removeClass("active"),t.addClass("active"),g(".thb-form-container",o).toggleClass("register-active")),!1}),i.on("click",function(){return t.addClass("lost"),g(".thb-form-container",o).removeClass("register-active"),g(".thb-form-container",o).addClass("lost-active"),!1}),r.on("click",function(){return t.removeClass("lost"),g(".thb-form-container",o).removeClass("lost-active"),!1}),s.on("submit",function(t){t.preventDefault();var e=g(this).find("button"),i=e.text();e.text(themeajax.l10n.loading).addClass("loading"),g.post(themeajax.url,s.serialize(),function(t){t=g.parseJSON(t);g(".thb-errors.lost-errors").html(t.message),e.text(i).removeClass("loading")})}),a.on("submit",function(t){t.preventDefault();var e=g(this).find("button"),i=e.text();e.text(themeajax.l10n.loading).addClass("loading"),g.post(themeajax.url,a.serialize(),function(t){t=g.parseJSON(t);g(".thb-errors.login-errors").html(t.message),!1===t.error?(o.addClass("loading"),p.location.reload(!0),e.hide()):e.text(i).removeClass("loading")})}),n.on("submit",function(t){t.preventDefault();var e=g(this).find("button"),i=e.text();e.text(themeajax.l10n.loading).addClass("loading"),g.post(themeajax.url,n.serialize(),function(t){t=g.parseJSON(t);g(".thb-errors.register-errors").html(t.message),!1===t.error?e.hide():e.text(i).removeClass("loading")})})}},magnificSingle:{selector:'[rel="magnific"]',init:function(){g(this.selector).each(function(){g(this).magnificPopup({type:"image",closeOnContentClick:!0,fixedContentPos:!0,closeBtnInside:!1,mainClass:"mfp-zoom-in",removalDelay:250,overflowY:"scroll",image:{verticalFit:!0,titleSrc:function(t){return t.el.attr("title")}},callbacks:{imageLoadComplete:function(){var t=this;m.delay(function(){t.wrap.addClass("mfp-image-loaded")},10)},beforeOpen:function(){this.st.image.markup=this.st.image.markup.replace("mfp-figure","mfp-figure mfp-with-anim")}}})})}},magnificImage:{selector:".thb-lightbox-on .blog-post",init:function(){g(this.selector).each(function(){g(this).magnificPopup({delegate:'[rel="mfp"]',type:"image",closeOnContentClick:!0,fixedContentPos:!0,mainClass:"mfp-zoom-in",removalDelay:250,closeBtnInside:!1,overflowY:"scroll",gallery:{enabled:!0,navigateByImgClick:!1,preload:[0,1]},image:{verticalFit:!0,titleSrc:function(t){return t.el.attr("title")}},callbacks:{imageLoadComplete:function(){var t=this;m.delay(function(){t.wrap.addClass("mfp-image-loaded")},10)},beforeOpen:function(){this.st.image.markup=this.st.image.markup.replace("mfp-figure","mfp-figure mfp-with-anim")},open:function(){g.magnificPopup.instance.next=function(){var t=this;t.wrap.removeClass("mfp-image-loaded"),setTimeout(function(){g.magnificPopup.proto.next.call(t)},125)},g.magnificPopup.instance.prev=function(){var t=this;this.wrap.removeClass("mfp-image-loaded"),setTimeout(function(){g.magnificPopup.proto.prev.call(t)},125)}}}})})}}
1,magnificInline:{selector:'[rel="inline"]',init:function(){g(this.selector).each(function(){g(this).magnificPopup({type:"inline",midClick:!0,mainClass:"mfp-fade thb-inline-lightbox",removalDelay:250,closeOnContentClick:!1,fixedContentPos:!0,closeBtnInside:!0,overflowY:"scroll"})})}},carousel:{selector:".slick",init:function(t){(t||g(this.selector)).each(function(){var e=g(this),t=e.data("columns"),i=!0===e.data("navigation"),o=!1!==e.data("autoplay"),a=!0===e.data("pagination"),n=e.data("speed")?e.data("speed"):1e3,s=!!e.data("center")&&e.data("center"),r=!!e.data("disablepadding")&&e.data("disablepadding"),l=!!e.data("vertical")&&e.data("vertical"),c=!0===e.data("fade"),d=e.hasClass("center-arrows"),u=e.data("asnavfor"),r={dots:a,arrows:i,infinite:!0,speed:n,centerMode:s,slidesToShow:t,slidesToScroll:1,rtl:h.hasClass("rtl"),rows:0,autoplay:o,centerPadding:r?0:"50px",autoplaySpeed:6e3,pauseOnHover:!0,focusOnSelect:!0,adaptiveHeight:!0,vertical:l,verticalSwiping:l,accessibility:!1,fade:c,cssEase:"ease-in-out",prevArrow:'<button type="button" class="slick-nav slick-prev"><i class="fa fa-angle-left"></i></button>',nextArrow:'<button type="button" class="slick-nav slick-next"><i class="fa fa-angle-right"></i></button>',responsive:[{breakpoint:1025,settings:{slidesToShow:t<3?t:l?t-1:3,centerPadding:r?0:"40px"}},{breakpoint:780,settings:{slidesToShow:t<2?t:l?t-1:2,centerPadding:r?0:"30px"}},{breakpoint:640,settings:{slidesToShow:t<2?t:l?t-1:1,centerPadding:r?0:"15px"}}]};u&&g(u).is(":visible")&&(r.asNavFor=u),(e.hasClass("product-images")||e.data("fade"))&&(r.fade=!0),e.hasClass("carousel-slider")&&(r.responsive=[{breakpoint:1025,settings:{slidesToShow:t<3?t:l?t-1:3}},{breakpoint:780,settings:{slidesToShow:t<2?t:l?t-1:2}},{breakpoint:640,settings:{slidesToShow:t<2?t:l?t-1:1}}]),e.on("init",function(){b.circle_perc.control(),d&&v.trigger("resize.position_arrows")}),d&&v.on("resize.position_arrows",function(){var t=e.find(".post-gallery").length?e.find(".post-gallery"):e.find(".thb-placeholder"),t=Math.round(t.outerHeight()/2);e.find(".slick-nav").css({top:t})}),e.on("afterChange",function(t,e,i,o){b.circle_perc.control()}),e.hasClass("post-slider-style4")&&(r.dotsClass="post-title-bullets",r.customPaging=function(t,e){var i=g(t.$slides[e]),t=i.find(".post-category").text(),i=i.find("h1").text();return g('<button type="button" class="post" />').html("<span>0"+(e+1)+'</span><aside class="post-category single_category_title">'+t+"</aside><h6>"+i+"</h6>")},r.responsive[0].settings.dots=!1,r.responsive[1].settings.dots=!1,r.responsive[2].settings.dots=!1,e.parents(".full-width-row").length&&e.on("setPosition",function(){var t=e.find(".slick-active .row.max_width"),t=v.width()-(t.offset().left+t.outerWidth())+15;e.find(".post-title-bullets").css("right",t+"px")})),e.hasClass("video-thumbnail-slider")&&(r.responsive[2].settings.slidesToShow=2),e.slick(r),e.find(".wp-post-image").on("lazyloaded",function(){d&&v.trigger("resize.position_arrows")}),e.parents(".vc_tta-container").length&&g(document).on("click.vc.tabs.data-api",function(){e.slick("refresh")})})}},cookieBar:{selector:".thb-cookie-bar",init:function(){var t=g(this.selector),e=g(".button",t);"hide"!==Cookies.get("thb-goodlife-cookiebar")&&gsap.to(t,{duration:.5,opacity:"1",y:"0%"}),e.on("click",function(){return Cookies.set("thb-goodlife-cookiebar","hide",{expires:30}),gsap.to(t,{duration:.5,opacity:"0",y:"100%"}),!1})}},paginationStyle2:{selector:".pagination-style2",init:function(){g(this.selector).each(function(){var t=g(this),e=t.data("security"),o=2,a=g(t.data("loadmore")),t=t.data("rand"),n=a.text(),t="thb_postajax_"+t,i=p[t].loop,s=p[t].style,r=p[t].columns,l=p[t].excerpts,c=p[t].count;0<a.length&&a.on("click",function(){return a.text(themeajax.l10n.loading),g.post(themeajax.url,{action:"thb_posts",security:e,count:c,loop:i,page:o,columns:r,style:s,excerpts:l},function(t){o++;var e=g.parseHTML(g.trim(t)),i=e?e.length:0;""===t||"undefined"===t||"No More Posts"===t||"No $args array created"===t?(t="",a.text(themeajax.l10n.nomore).removeClass("loading").off("click")):(g(e).insertBefore(a.parents(".masonry_loader")).hide(),g(e).show(),gsap.set(g(e),{op
1acity:0,y:20}),gsap.to(g(e),{duration:.25,stagger:.15,y:0,opacity:1,ease:Quart.easeOut}),(i<c?a.text(themeajax.l10n.nomore):a.text(n)).removeClass("loading"))}),!1})})}},paginationStyle3:{selector:".pagination-style3",init:function(){g(this.selector).each(function(){var o=g(this),t=o.data("security"),a=!1,n=2,e="thb_postajax_"+o.data("rand"),s=p[e].count,i=p[e].style,r=p[e].columns,l=p[e].excerpts,c=m.debounce(function(){!1===a&&v.scrollTop()+v.height()+150>=o.offset().top+o.outerHeight()&&g.ajax(themeajax.url,{method:"POST",data:{action:"thb_posts",security:t,count:s,style:i,excerpts:l,page:n,columns:r},beforeSend:function(){o.addClass("thb-loading-bottom"),a=!0},success:function(t){a=!1,n++;var e=g.parseHTML(g.trim(t)),i=e?e.length:0;""===t||"undefined"===t||"No More Posts"===t||"No $args array created"===t?v.off("scroll",c):(o.removeClass("thb-loading-bottom"),g(e).appendTo(o).hide(),g(e).show(),b.circle_perc.init(),gsap.set(g(e),{opacity:0,y:20}),gsap.to(g(e),{y:0,duration:.25,stagger:.15,opacity:1,ease:Quart.easeOut,onComplete:function(){s<=i&&v.on("scroll",c)}}))}})},30);v.scroll(c)})}},galleryArrows:{selector:".blog-post.format-gallery",init:function(t){var e=t||g(this.selector);f.on("keyup",function(t){37===t.keyCode&&e.find(".slick-prev",".gallery-pagination").length&&e.find(".slick-prev",".gallery-pagination")[0].click(),39===t.keyCode&&e.find(".slick-next",".gallery-pagination").length&&e.find(".slick-next",".gallery-pagination")[0].click()})}},articleScroll:{selector:"#infinite-article",org_post_url:p.location.href,org_post_title:document.title,org_shares:!1,init:function(){var t=this,r=g(t.selector),e=r.data("security"),i=r.data("infinite"),o=r.data("infinite-count"),a=r.find(".blog-post:first-child"),l=(a.find(".share-main"),a.data("id")),c=l,d=!1,n=(g("#footer").outerHeight()||0)+(g("#subfooter").outerHeight()||0),u=0,s=m.debounce(function(){t.location_change()},10),a=m.debounce(function(){(!o||u<parseInt(o,10))&&v.scrollTop()>=f.height()-v.height()-n-200&&!1===d&&(r.addClass("thb-loading-bottom"),l===c&&g.ajax(themeajax.url,{method:"POST",data:{action:"thb_infinite_ajax",post_id:c,security:e},beforeSend:function(){d=!(l=null)},success:function(t){u++,d=!1;var e,i,o=g.parseHTML(t),a=g(o).find(".adsbygoogle, .adworx_ad"),n=g(o).find(".twitter-tweet, .twitter-timeline"),s=g(o).find(".instagram-media");r.removeClass("thb-loading-bottom"),o?(t=g(o).find(".blog-post"),l=t.data("id"),c=l,g(o).appendTo(r),b.plyr.init(),b.circle_perc.init(),b.carousel.init(g(o).find(".slick")),b.fixedPosition.init(g(o).find(".fixed-me")),b.magnificImage.init(),b.parallax_bg.init(),b.topReviews.init(),b.shareArticleDetail.init(),b.animation.init(),void 0!==p.instgrm?p.instgrm.Embeds.process():s.length&&void 0===p.instgrm&&((e=document.createElement("script")).src="//platform.instagram.com/en_US/embeds.js",e.onload=function(){p.instgrm.Embeds.process()},h.append(e)),void 0!==p.twttr?twttr.widgets.load(document.getElementById("infinite-article")):n.length&&void 0===p.twttr&&(p.twttr=(s=document,e="twitter-wjs",n=s.getElementsByTagName("script")[0],i=p.twttr||{},s.getElementById(e)||((s=s.createElement("script")).id=e,s.src="https://platform.twitter.com/widgets.js",n.parentNode.insertBefore(s,n),i._e=[],i.ready=function(t){i._e.push(t)}),i)),t.hasClass("format-gallery")&&(f.off("keyup"),b.galleryArrows.init(t)),void 0!==p.googletag&&googletag.pubads().refresh(),void 0!==p.addthis&&addthis.toolbox(),void 0!==p.atnt&&p.atnt(),void 0!==p.adsbygoogle&&a.length&&a.each(function(){(adsbygoogle=p.adsbygoogle||[]).push({})}),void 0!==p.vc_js&&p.vc_js(),"undefined"!=typeof FB&&FB.init({status:!0,cookie:!0,xfbml:!0}),g(document.body).trigger("thb_after_infinite_load")):l=null}}))},100);"on"===i?(v.scroll(s),v.scroll(a)):v.scroll(m.debounce(function(){t.borderWidth(g(".post-detail-row").offset().top,g(".post-detail-row").outerHeight(!0))},10))},location_change:function(){var t,e,i,o,a=this,r=(g(a.selector),v.scrollTop()),l=r+v.height(),c=[];g(".post-detail-row").each(function(){var t=g(this),e=t.find(".blog-post"),i=e.data("id"),o=t.offset().top-((g(".subheader.fixed").outerHeight()||0)+(g("#wpadminbar").outerHeight()||0)),a=t.outerHeight(!0),n=e.data("url"),e=t.find(".post-title h1").text(),t=t.find(".share-main"),s=o+a;(o<r&&l<s||r<o&&o<l||r<s&&s<l)&&c.push({id:i,top:o,bottom:s,post_url:n,post_title:e,alength:a,shares:t})}
1),0===c.length?(e=a.org_post_url,i=a.org_post_title,o=a.org_shares):1===c.length?(e=(t=c.pop()).post_url,i=t.post_title,o=t.shares,a.borderWidth(t.top,t.alength)):(e=c[0].post_url,i=c[0].post_title,o=c[0].shares,a.borderWidth(c[0].top,c[0].alength)),a.updateURL(e,i,o)},updateURL:function(t,e,i){p.location.href!==t&&(""!==t&&(history.replaceState(null,null,t),document.title=e,g("#page-title").html(e),i&&(g(".subheader.fixed").find(".share-article-vertical").html(i.html()),b.shareArticleDetail.init())),this.updateGA(t,e))},updateGA:function(t,e){var i;"undefined"!=typeof _gaq?_gaq.push(["_trackPageview",t]):"undefined"!=typeof ga&&(i=/.+?\:\/\/.+?(\/.+?)(?:#|\?|$)/.exec(t)[1],ga("send","pageview",i)),"undefined"!=typeof gtag&&(e={page_title:e,page_location:location.href,page_path:location.pathname},gtag("event","page_view",e)),void 0!==p.reinvigorate&&void 0!==p.reinvigorate.ajax_track&&reinvigorate.ajax_track(t),"undefined"!=typeof googletag&&googletag.pubads().refresh()},borderWidth:function(t,e){e=(v.scrollTop()-t)/e;gsap.set(g(".progress",".subheader.fixed"),{scaleX:e})}},postGridAjaxify:{selector:".ajaxify-pagination",init:function(){var a=g(this.selector);a.data("initialized",!0);var n=p.History,s=p.document;if(!n.enabled)return!1;var e=n.getRootUrl();g.fn.ajaxify=m.debounce(function(){var t=g(this);return t.find(".page-numbers").on("click",function(t){var e=g(this),i=e.attr("href"),e=e.attr("title")||null;return!(2!==t.which&&!t.metaKey)||(n.pushState(null,e,i),t.preventDefault(),!1)}),t},50),a.ajaxify(),v.bind("statechange",function(){var i=n.getState().url,o=i.replace(e,""),t=g("#wpadminbar").outerHeight()||0;a.addClass("thb-loading"),jQuery("html, body").animate({scrollTop:a.offset().top-t-30},800),g.post(i,function(t){var t=g.parseHTML(t),e=g(t).filter("title").text(),t=g(t).find(".ajaxify-pagination").html();if(!t)return s.location.href=i,!1;a.stop(!0,!0),a.html(t).ajaxify().animate({opacity:1},500,"linear",function(){s.title=e,a.removeClass("thb-loading"),b.circle_perc.control(),g(s.body).trigger("sticky_kit:recalc")}),void 0!==p.pageTracker&&p.pageTracker._trackPageview(o),void 0!==p.reinvigorate&&void 0!==p.reinvigorate.ajax_track&&reinvigorate.ajax_track(i)})})}},circle_perc:{selector:".circle_perc",init:function(){var t=this,e=g(t.selector);t.control(e),v.on("scroll",function(){t.control(e)})},control:function(t){var i=-1;(t||g(this.selector)).filter(":in-viewport").each(function(){var t=g(this),e=t.data("dashoffset");i++,setTimeout(function(){gsap.to(t,{duration:1,attr:{"stroke-dashoffset":e}})},150*i)})}},newsletter:{selector:".newsletter-form",init:function(){g(this.selector).each(function(){var e=g(this),t=e.data("security");e.on("submit",function(){return g.post(themeajax.url,{action:"thb_subscribe_emails",security:t,email:e.find(".widget_subscribe").val()},function(t){t=g.parseHTML(g.trim(t));e.next(".result").html(t).fadeIn(200).delay(3e3).fadeOut(200)}),!1})})}},animation:{selector:".animation",init:function(){var t=this,e=g(t.selector);g(".animation.bottom-to-top-3d, .animation.top-to-bottom-3d").parent(":not(.slick-track)").addClass("perspective-wrap"),v.on("scroll.thb-animation",function(){t.control(e,!0)}).trigger("scroll.thb-animation")},container:function(t){t=g(this.selector,t);this.control(t,!1)},control:function(t,e){var i=0;(e?t.filter(":in-viewport"):t).each(function(){var t=g(this);!0!==t.data("thb-animated")&&(t.data("thb-animated",!0),gsap.to(t,{duration:.5,autoAlpha:1,x:0,y:0,z:0,rotationZ:"0deg",rotationX:"0deg",rotationY:"0deg",delay:.15*i})),i++})}},topReviews:{selector:".widget_topreviews .progress, .post-review .progress span",init:function(){var t=this,e=g(t.selector);t.control(e),v.on("scroll.thb-reviews",function(){t.control(e)}).trigger("scroll.thb-reviews")},control:function(t){var i=-1;t.filter(":in-viewport").each(function(){var t=g(this),e=t.data("width");i++,setTimeout(function(){gsap.to(t,{duration:1,width:e+"%"})},200*i)})}},plyr:{selector:".flex-video, .wp-video video",init:function(){var t=g(this.selector),e=themeajax.settings.thb_custom_video_player,i=themeajax.settings.viai_publisher_id,o={playsinline:!0,clickToPlay:!0};i&&""!==i&&(o.ads={enabled:!0,publisherId:i}),"on"===e&&(a.mobile()||a.tablet()||t.each(function(){new Plyr(g(this),o)}))}},comments:{selector:".expanded-comments-off #comment-toggle",init:function(){g(this.selector).on("click",function(){return g(this).toggleClass("active"),g(this).next(".comment-content-container").slideToggle(),!1})}},videoPlaylist:{selector:".video_playlist",init:function(){var t=g(this.selector);t.each(function(){var i=g(this),o=i.data("security"),a=i.find(".video-side");i.find(".video_play");t.on("click",".video_play",function(){var t=g(this),e=t.data("post-id");return t.hasClass("video-active")||(i.find(".video_play").removeClass("video-active"),i.find('.video_play[data-post-id="'+e+'"]').addClass("video-active"),a.addClass("thb-loading"),g.post(themeajax.url,{action:"thb-parse-embed",security:o,post_ID:e}
1,function(t){t.success&&(a.html(t.data.body),b.plyr.init()),a.removeClass("thb-loading")})),!1})})}},postListing:{selector:".thb_listing",init:function(){g(this.selector).each(function(){var t=g(this),e=t.data("security"),a=t.data("type"),n=t.data("count"),s=t.find("a"),r=t.parents(".widget_title").next("ul"),l=gsap.timeline();s.on("click",function(){var i=g(this),t=i.data("time"),o=r.find("li,p");o.length;return r.addClass("thb-loading"),g.post(themeajax.url,{action:"thb_listing",security:e,count:n,type:a,time:t},function(t){var t=g.parseHTML(g.trim(t)),e=!!t.length&&g(t).filter(function(){return 1===this.nodeType});s.removeClass("active"),i.addClass("active"),o.length&&(l.to(o,{duration:.5,stagger:.1,x:-30,opacity:0,onStart:function(){r.removeClass("thb-loading")},onComplete:function(){r.html(e)}}),e.length&&l.set(e,{x:30,opacity:0}).to(e,{duration:.5,stagger:.1,x:0,opacity:1}))}),!1})})}},shareArticleDetail:{selector:".share-article, .share-article-vertical",init:function(){g(this.selector).find(".social:not(.whatsapp)").on("click",function(){var t=screen.width/2-320,e=screen.height/2-220-100;return p.open(g(this).attr("href"),"mywin","left="+t+",top="+e+",width=640,height=440,toolbar=0"),!1})}},custom_scroll:{selector:".custom_scroll",init:function(){g(this.selector).each(function(){var t=g(this),e=new PerfectScrollbar(t[0],{suppressScrollX:!0});"menu-scroll"===t.attr("id")&&(b.menuscroll=e)})}},categoryDropdown:{selector:".thb-sibling-categories",init:function(){var r=this;g(r.selector).each(function(){var t=g(this),e=t.data("security"),i=t.find("li:not(.thb-pull-down)"),o=t.find("li.thb-pull-down"),a=t.find(".thb-pull-down .sub-menu"),n=[],s=t.parents(".category-element-holder").find(".category-element-content");o.find(">a").on("click",function(){return!1}),i.each(function(){n.push({el:g(this),width:g(this).outerWidth(!0),added:!1})}),i.remove(),r.start(t,n,a,o,s,e)})},start:function(r,t,l,c,o,a){var d=t;function e(){for(var t=r.outerWidth(),e=c.outerWidth(!0)+15,i=m.filter(d,{added:!1}),o=m.filter(d,{added:!0}),a=0;a<i.length;a++)e+=i[a].width;t<=e?m.last(i)&&(m.last(i).added=!0):(!m.first(o)||m.first(o).width+e<t)&&m.first(o)&&(m.first(o).added=!1);for(var n=0;n<i.length;n++)i[n].el.insertBefore(c);for(var s=0;s<o.length;s++)l.prepend(o[s].el);0===o.length?c.hide():c.css({display:"inline-block"})}m.each(d,function(t,e,i){t.el.find("[data-ajax-cat]").on("click",function(){return o.addClass("thb-loading-center"),g.post(themeajax.url,{action:"thb_ajax_cat",security:a,catid:g(this).data("ajax-cat"),style:o.data("style"),count:o.data("count")},function(t){o.removeClass("thb-loading-center");var e=g.parseHTML(g.trim(t));""===t||"undefined"===t||"No More Posts"===t||"No $args array created"===t?t="":(o.html(g(e)),b.circle_perc.control())}),!1})}),r.addClass("active");for(var i=0;i<d.length+1;i++)e();v.on("resize",function(){e()})}},parallax_bg:{selector:"body",active:0,init:function(){0<g('div[role="main"]').find(".parallax_bg").length&&(p.skroller=skrollr.init({forceHeight:!1,easing:"outCubic",mobileCheck:function(){return!1}}))}},fixedPosition:{selector:".fixed-me",init:function(t){var t=t||g(this.selector),i=g("#wpadminbar").outerHeight()||0;a.mobile()||t.each(function(){var t=g(this),e=27+(g(".subheader.fixed").length?50:0);t.stick_in_parent({offset_top:e+i,inner_scrolling:!1})}),g(".post-gallery.vertical").waitForImages(function(){g(document.body).trigger("sticky_kit:recalc")}),v.resize(m.debounce(function(){g(document.body).trigger("sticky_kit:detach")},30))}},toTop:{selector:"#scroll_totop",init:function(){var t=this;g(t.selector).on("click",function(){return gsap.to(v,{duration:.5,scrollTo:{y:0,autoKill:!1},ease:Quart.easeOut}),!1}),v.scroll(m.debounce(function(){t.control()},50))},control:function(){var t=g(this.selector);300<v.scrollTop()?gsap.to(t,{duration:.2,autoAlpha:1,ease:Quart.easeOut}):gsap.to(t,{duration:.2,autoAlpha:0,ease:Quart.easeOut})}},wpml:{selector:"#thb_language_selector_mobile",init:function(){g(this.selector).on("change",function(){var t=g(this).val();return t&&(p.location=t),!1})}},variations:{selector:"form.variations_form",init:function(){var t=g(this.selector),i=g("#product-images"),o=g("#product-thumbnails"),e=g(".first img",i).attr("src"),a=g(".first img",o).attr("src");t.on("show_variation",function(t,e){e.hasOwnProperty("image")&&e.image.src&&(g
1(".first img",i).attr("src",e.image.src).attr("srcset",""),g(".first img",o).attr("src",e.image.thumb_src).attr("srcset",""),i.hasClass("slick-initialized")&&i.slick("slickGoTo",0))}).on("reset_image",function(){g(".first img",i).attr("src",e).attr("srcset",""),g(".first img",o).attr("src",a).attr("srcset","")})}},quantity:{selector:".quantity:not(.hidden)",init:function(){var t=this;g(t.selector);t.initialize(),h.on("updated_cart_totals",function(){t.initialize()})},initialize:function(){g("div.quantity:not(.buttons_added), td.quantity:not(.buttons_added)").addClass("buttons_added").append('<input type="button" value="+" class="plus" />').prepend('<input type="button" value="-" class="minus" />').end().find('input[type="number"]').attr("type","text"),g(".plus, .minus").on("click",function(){var t=g(this).closest(".quantity").find(".qty"),e=parseFloat(t.val()),i=parseFloat(t.attr("max")),o=parseFloat(t.attr("min")),a=t.attr("step");return e&&""!==e&&"NaN"!==e||(e=0),""!==i&&"NaN"!==i||(i=""),""!==o&&"NaN"!==o||(o=0),"any"!==a&&""!==a&&void 0!==a&&"NaN"!==parseFloat(a)||(a=1),g(this).is(".plus")?i&&(i===e||i<e)?t.val(i):t.val(e+parseFloat(a)):o&&(o===e||e<o)?t.val(o):0<e&&t.val(e-parseFloat(a)),t.trigger("change"),!1})}},contact:{selector:".contact_map",init:function(){var h=this;g(h.selector).each(function(){var d,t=g(this),e=t.data("map-zoom"),i=t.data("map-style"),o=t.data("map-type"),a=t.data("pan-control"),n=t.data("zoom-control"),s=t.data("maptype-control"),r=t.data("scale-control"),l=t.data("streetview-control"),u=t.find(".thb-location"),p=new google.maps.LatLngBounds,o={center:{lat:-34.397,lng:150.644},styles:i,zoom:e,draggable:!("ontouchend"in document),scrollwheel:!1,panControl:a,zoomControl:n,mapTypeControl:s,scaleControl:r,streetViewControl:l,mapTypeId:o,gestureHandling:"cooperative"},f=new google.maps.Map(t[0],o);f.addListener("tilesloaded",function(){d||(u.each(function(t){var e=g(this).data("option"),i=e.latitude,o=e.longitude,a=new google.maps.LatLng(i,o),n=e.marker_image,s=e.marker_size,r=e.retina_marker,l=e.marker_title,c=e.marker_description,e=new Image;p.extend(a),e.src=n,g(e).on("load",function(){h.setMarkers(t,u.length,f,i,o,n,s,l,c,r)}),d=!0}),0<e?(f.setCenter(p.getCenter()),f.setZoom(e)):(f.setCenter(p.getCenter()),f.fitBounds(p)))}),v.on("resize",m.debounce(function(){f.setCenter(p.getCenter())},50))})},setMarkers:function(t,e,a,n,s,r,l,c,d,u){setTimeout(function(t){var e=(e=r.toLowerCase().split("."))[e.length-1];(g.inArray(e,["svg"])||u)&&(r=new google.maps.MarkerImage(r,null,null,null,new google.maps.Size(l[0]/2,l[1]/2)));var i=new google.maps.Marker({position:new google.maps.LatLng(n,s),map:a,animation:google.maps.Animation.DROP,icon:r,optimized:!1}),o=new google.maps.InfoWindow({content:"<h3>"+c+"</h3><div>"+d+"</div>"});i.addListener("click",function(){o.open(a,i)})},250*t,t)}},themeSwitcher:{selector:"#theme-switcher",init:function(){var t=g(this.selector);t.find(".style-toggle").on("click",function(){return t.add(g(this)).toggleClass("active"),!1})}}};g(function(){g("#vc_inline-anchor").length?v.on("vc_reload",function(){b.init()}):b.init()})}(jQuery,this,_);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.