PageSourceSearch

https://campwilderness.co.uk/wp-content/themes/campwilderness/assets/js/scripts.min.js?ver=1791203807

js campwilderness.co.uk collected 2026-10-08 02:21:56 UTC 81,965 bytes, 2 lines download raw bytes

1/*! activeLearningGroup v0.1.0 | (c) 2024 Graeme Wetenhall | MIT License | https://bitbucket.org/grazzeee/ */
2function setCookie(e,t,i){var n=new Date;n.setTime(n.getTime()+24*i*60*60*1e3),document.cookie=e+"="+t+";expires="+n.toUTCString()}function getCookie(e){var t=document.cookie.match("(^|;) ?"+e+"=([^;]*)(;|$)");return t?t[2]:null}function eraseCookie(e){setCookie(e,getCookie(e),"-1")}$((function(){$(".theme-ard")[0]&&$(".accordion-block .close-wrap").on("click",(function(){$(this).parent(".accordion-block").toggleClass("show"),noClick(500)}))})),$((function(){function e(){trackScroll=$(window).scrollTop(),$(".alert-count-1")[0]||$(".alert-count-2")[0]||(user_has_scrolled=140,show_scrolled_menu=200),$(".alert-count-1")[0]&&(user_has_scrolled=200,show_scrolled_menu=260),$(".alert-count-2")[0]&&(user_has_scrolled=260,show_scrolled_menu=320),trackScroll>user_has_scrolled?$("body").addClass("user-has-scrolled"):$("body").removeClass("user-has-scrolled"),trackScroll>show_scrolled_menu?$("body").addClass("show-scrolled-menu"):$("body").removeClass("show-scrolled-menu")}$(".menu-nav-bt, .main-menu-popup .menu-nav-bt-close").on("click",(function(){noClick(500),$(".menu-is-active")[0]?($("body").removeClass("menu-animations"),setTimeout((function(){$("body").removeClass("menu-is-active")}),1e3)):($("body").addClass("menu-is-active"),setTimeout((function(){$("body").addClass("menu-animations")}),500))})),$(".main-menu-popup .outer-wrap .center-content-1090 .menu-nav-warp .menu-nav-warp-inner .menu-nav:eq(1) .menu .menu-item").appendTo(".main-menu-popup .outer-wrap .center-content-1090 .menu-nav-warp .menu-nav-warp-inner .menu-nav:eq(0) .menu"),e(),$(window).on("scroll",(function(){e()})),$(".menu-item-has-children").each((function(){$('<div class="show-children-items"></div>').appendTo(this)})),$(".show-children-items").on("click",(function(){noClick(500),$(this).parent(".menu-item").toggleClass("sub-menu-active"),$(this).parent(".menu-link").parent(".main-menu-item").toggleClass("active")})),$(window).resize((function(){1024<$(window).width()&&($("body").removeClass("menu-animations"),$(".main-menu-item").removeClass("active"),setTimeout((function(){$("body").removeClass("menu-is-active")}),1e3))}))})),$((function(){$(".theme-ard")[0]&&($(".fact-sheets .select2-cpt_venues").select2({minimumResultsForSearch:-1,placeholder:"Choose a centre",allowClear:!0}),$(".english-language-content .select2-cpt_venues").select2({minimumResultsForSearch:-1,placeholder:"Choose a centre/country",allowClear:!0}),$(".gallery-content .select2-cpt_venues").select2({minimumResultsForSearch:-1,placeholder:"Choose a centre/country",allowClear:!0}),$(".specialist_courses .select2-tax_specialist_courses").select2({minimumResultsForSearch:-1,placeholder:"Choose a course",allowClear:!0}))})),$((function(){$(".accreditation-carousel").flickity({autoPlay:!0,autoPlay:3e3,contain:!0,prevNextButtons:!1,pageDots:!1,freeScroll:!0,wrapAround:!0,cellAlign:"center"}).data("flickity")})),$((function(){$(".product-carousel-js").flickity({contain:!0,prevNextButtons:!0,pageDots:!0,freeScroll:!0,wrapAround:!0,draggable:!1,fullscreen:!0,lazyLoad:1,groupCells:!0,groupCells:"100%",cellAlign:"center"}).data("flickity")})),$((function(){var t=$(".faqs-carousel-answers").flickity({fade:!0,prevNextButtons:!1,pageDots:!1,freeScroll:!1,wrapAround:!0}),e=t.data("flickity"),i=$(".faq-carousel-questions"),n=i.find(".faq-button-question");t.on("select.flickity",(function(){n.filter(".is-selected").removeClass("is-selected"),n.eq(e.selectedIndex).addClass("is-selected")}
2)),i.on("click",".faq-button-question",(function(){var e=$(this).index();t.flickity("select",e)})),$(window).width()<=769&&$(".faq-button-question").addClass("faq-bt-mobile"),$(window).resize((function(){if(769<=$(window).width()){$(".faq-button-question").removeClass("faq-bt-mobile"),$(".faq-button-question").removeClass(".is-selected");t.flickity("select",0)}else $(".faq-button-question").addClass("faq-bt-mobile");t.flickity("destroy"),t.flickity({fade:!0,prevNextButtons:!1,pageDots:!1,freeScroll:!1,wrapAround:!0})}))})),$(document).on("click",".faq-button-question",(function(){var e=$(".faqs-carousel-answers").flickity({fade:!0,prevNextButtons:!1,pageDots:!1,freeScroll:!1,wrapAround:!0}),t=(e.data("flickity"),$(this).index());e.flickity("select",t)})),$(document).on("click",".faq-bt-mobile",(function(){$(".faq-button-question").removeClass("is-selected"),$(this).addClass("is-selected")})),$((function(){setTimeout((function(){$(".gallery-carousel-slider-js").flickity({contain:!0,prevNextButtons:!0,pageDots:!0,freeScroll:!0,wrapAround:!0,fullscreen:!0,lazyLoad:1,groupCells:3}).data("flickity");$(".module-hos-gallery .gallery-carousel").flickity({fade:!0,prevNextButtons:!0,pageDots:!1,freeScroll:!1,wrapAround:!1}),$(".gallery-carousel-prev").on("click",(function(){$(".flickity-prev-next-button.previous").click()})),$(".gallery-carousel-next").on("click",(function(){$(".flickity-prev-next-button.next").click()})),$(".module-hos-gallery .gallery-nav").flickity({asNavFor:".gallery-carousel",prevNextButtons:!1,pageDots:!1,cellAlign:"left"}),$(".module-hos-gallery .mobile-gallery-carousel").flickity({fade:!0,prevNextButtons:!1,pageDots:!0,groupCells:2,cellAlign:"center"})}),300)})),$((function(){$(".icon-carousel").flickity({contain:!0,watchCSS:!0,prevNextButtons:!0,pageDots:!0,freeScroll:!1,wrapAround:!0,cellAlign:"center"}).data("flickity")})),$((function(){$(".alc-latest-blog-js").flickity({contain:!0,prevNextButtons:!1,pageDots:!0,freeScroll:!1,wrapAround:!1,fullscreen:!0,lazyLoad:1,groupCells:1,cellAlign:"center"}).data("flickity")})),$((function(){var t=$(".list-venue-gallery-carousel").flickity({fade:!0,prevNextButtons:!1,pageDots:!1,freeScroll:!1,wrapAround:!1,resize:!0}),e=t.data("flickity"),i=$(".list-venue-gallery-carousel-nav"),n=i.find(".nav-slide");t.on("select.flickity",(function(){i.find(".is-selected").removeClass("is-selected"),n.eq(e.selectedIndex).addClass("is-selected")})),i.on("click",".nav-slide",(function(){console.log("click");var e=$(this).index();t.flickity("select",e)})),$(window).resize((function(){setTimeout((function(){t.flickity("resize")}),150)}))})),$((function(){var t=$(".content-media-block-content-carousel").flickity({fade:!0,prevNextButtons:!1,pageDots:!1,freeScroll:!1,wrapAround:!1,resize:!1,watchCSS:!0});function e(){$(window).width()<=769?$(".module-alg-content-media-block .content-media-block-content-carousel .accordion-content-item:eq(0)").addClass("accordion-active"):$(".module-alg-content-media-block .content-media-block-content-carousel .accordion-content-item").removeClass("active")}function i(){$(window).width()<=769?$(".module-alg-content-looking-for .content-media-block-content-carousel .accordion-content-item:eq(0)").addClass("accordion-active"):$(".module-alg-content-looking-for .content-media-block-content-carousel .accordion-content-item").removeClass("active")}Flkty=t.data("flickity"),$(".module-alg-content-media-block")[0]&&$(".accordion-menu-item").on("click",(function(){var e=$
2(this).children(".menu-item").data("index");console.log(e),t.flickity("select",e)})),$(".module-alg-content-media-block .content-media-block-content-carousel .accordion-content-item .title-wrap-animate").on("click",(function(){$(this).parent(".accordion-content-item").is(".accordion-active")?$(this).parent(".accordion-content-item").removeClass("accordion-active"):($(".content-media-block-content-carousel").children(".accordion-content-item").removeClass("accordion-active"),$(this).parent(".accordion-content-item").addClass("accordion-active"))})),$(".module-alg-content-looking-for .content-media-block-nav-carousel .accordion-menu-item").on("click",(function(){$(".module-alg-content-looking-for .accordion-menu-item .menu-item").removeClass("active"),$(this).children(".menu-item").addClass("active")})),$(".module-alg-content-looking-for .content-media-block-content-carousel .accordion-content-item .title-wrap-animate").on("click",(function(){$(this).parent(".content-inner").parent(".accordion-content-item").is(".accordion-active")?$(this).parent(".content-inner").parent(".accordion-content-item").removeClass("accordion-active"):($(".content-media-block-content-carousel").children(".accordion-content-item").removeClass("accordion-active"),$(this).parent(".content-inner").parent(".accordion-content-item").addClass("accordion-active"))})),e(),i(),$(window).resize((function(){e(),i()}))}
2)),$((function(){var e=$(".list-staff-members-carousel").flickity({contain:!0,cellAlign:"center",prevNextButtons:!1,pageDots:!0,lazyLoad:1,watchCSS:!0,resize:!0});function t(){769<=$(window).width()&&$(".list-staff-member-carousel-item").removeClass("accordion-active")}Flkty=e.data("flickity"),$(".list-staff-member-carousel-item .toggle-staff-accordion").on("click",(function(){$(this).parent(".list-staff-member-carousel-item").is(".accordion-active")?$(this).parent(".list-staff-member-carousel-item").removeClass("accordion-active"):($(".list-staff-member-carousel-item").removeClass("accordion-active"),$(this).parent(".list-staff-member-carousel-item").addClass("accordion-active"))})),t(),$(window).resize((function(){t()}))})),$((function(){var t=$(".module-alc-career-carousel .career-carousel-js").flickity({fade:!0,contain:!0,watchCSS:!0,prevNextButtons:!1,pageDots:!1,freeScroll:!1,wrapAround:!1}),e=t.data("flickity"),i=$(".module-alc-career-carousel .flickity-button-group"),n=i.find(".flickity-button");function a(){$(window).width()<=769?$(".theme-alc .module-alc-career-carousel .content-wrap:eq(0)").addClass("open"):$(".theme-alc .module-alc-career-carousel .content-wrap").removeClass("open")}t.on("select.flickity",(function(){n.filter(".module-alc-career-carousel .term-active").removeClass("term-active"),n.eq(e.selectedIndex).addClass("term-active")}
2)),i.on("click",".flickity-button",(function(){var e=$(this).index();t.flickity("select",e)})),$(".theme-alc .module-alc-career-carousel .accordion-toggle").on("click",(function(){$(this).parent(".content-wrap").is(".open")?$(this).parent(".content-wrap").removeClass("open"):($(".accordion-toggle").parent(".content-wrap").removeClass("open"),$(this).parent(".content-wrap").addClass("open"))})),a(),$(window).resize((function(){a()}));var o=$(".module-alc-career-carousel .gallery-image-wrap").flickity({watchCSS:!1,fade:!0,prevNextButtons:!1,pageDots:!1,freeScroll:!0,wrapAround:!0}),s=o.data("flickity"),l=$(".module-alc-career-carousel .gallery-nav-wrap"),r=l.find(".gallery-nav-item");o.on("select.flickity",(function(){r.filter(".is-selected").removeClass("is-selected"),r.eq(s.selectedIndex).addClass("is-selected")})),l.on("click",".gallery-nav-item",(function(){var e=$(this).index();o.flickity("select",e)}))})),$((function(){var t=$(".content-carousel-js").flickity({fade:!0,contain:!0,watchCSS:!0,prevNextButtons:!1,pageDots:!1,freeScroll:!1,wrapAround:!1}),e=t.data("flickity"),i=$(".flickity-button-group"),n=i.find(".flickity-button");function a(){$(window).width()<=769?$(".theme-bcc .module-bcc-content-carousel .content-wrap:eq(0)").addClass("open"):$(".theme-bcc .module-bcc-content-carousel .content-wrap").removeClass("open")}t.on("select.flickity",(function(){n.filter(".term-active").removeClass("term-active"),n.eq(e.selectedIndex).addClass("term-active")}
2)),i.on("click",".flickity-button",(function(){var e=$(this).index();t.flickity("select",e),t.flickity("resize")})),setTimeout((function(){$(".module-alc-content-carousel .category-menu-wrap .term-wrap:eq(0)").click()}),100),$(".theme-bcc .module-bcc-content-carousel .accordion-toggle, .theme-alc .module-alc-content-carousel .accordion-toggle").on("click",(function(){$(this).parent(".content-wrap").is(".open")?$(this).parent(".content-wrap").removeClass("open"):($(".accordion-toggle").parent(".content-wrap").removeClass("open"),$(this).parent(".content-wrap").addClass("open"))})),a(),$(window).resize((function(){a()}))})),$((function(){get_watchCss=$(".hero-carousel").attr("data-watchCss"),check_for_video=0,$(".slide-container").each((function(){video_check=$(this).attr("data-video-background"),1==video_check&&check_for_video++})),1<=check_for_video?video_autoplay=1e6:video_autoplay=8e3,"on"===get_watchCss&&$(".hero-carousel-image").flickity({asNavFor:".hero-carousel-content",prevNextButtons:!1,watchCSS:!0,pageDots:!1,fade:!0,freeScroll:!1,wrapAround:!1});$(".hero-carousel-content").flickity({fade:!0,watchCSS:!0,prevNextButtons:!1,pageDots:!1,freeScroll:!1,wrapAround:!1,autoPlay:video_autoplay,pauseAutoPlayOnHover:!1}),$(".mobile-hero-carousel-content").flickity({fade:!0,watchCSS:!0,prevNextButtons:!1,pageDots:!1,freeScroll:!1,wrapAround:!1,autoPlay:video_autoplay,pauseAutoPlayOnHover:!1}).data("flickity")})),$((function(){$(".module-alg-list-brands-hiring .list-brands-hiring-carousel").flickity({contain:!0,cellAlign:"center",prevNextButtons:!1,pageDots:!0,lazyLoad:1,watchCSS:!0,resize:!0}).data("flickity")})),$((function(){$(".list-experiences").flickity({watchCSS:!0,contain:!0,cellAlign:"left",prevNextButtons:!1,pageDots:!0,wrapAround:!1,fullscreen:!0})})),$((function(){setTimeout((function(){$(".module-ard-list-products .mobile.list-wrap").flickity({contain:!0,cellAlign:"left",prevNextButtons:!1,pageDots:!0,lazyLoad:1,watchCSS:!0,resize:!0}).data("flickity")}),100)})),$((function(){var t=$(".single-page-wrapper").flickity({contain:!0,prevNextButtons:!1,pageDots:!1,freeScroll:!1,wrapAround:!0,fullscreen:!0,lazyLoad:1,groupCells:1,cellAlign:"center"}),e=t.data("flickity"),i=$(".page-options-wrap"),n=i.find("li");t.on("select.flickity",(function(){i.find(".is-selected").removeClass("is-selected"),n.eq(e.selectedIndex).addClass("is-selected")}
2)),i.on("click","li",(function(){var e=$(this).index();t.flickity("select",e),setTimeout((function(){t.flickity("resize")}),150)})),setTimeout((function(){t.flickity("resize")}),150)})),$((function(){var e=$(".other-centres-js").flickity({contain:!0,prevNextButtons:!1,pageDots:!1,freeScroll:!0,wrapAround:!0,fullscreen:!0,lazyLoad:1,groupCells:3,cellAlign:"left"});e.data("flickity");setTimeout((function(){e.flickity("resize")}),250);var t=$(".alc-other-centres-js").flickity({contain:!0,prevNextButtons:!1,pageDots:!0,freeScroll:!1,wrapAround:!1,fullscreen:!0,lazyLoad:1,groupCells:3,cellAlign:"center"});t.data("flickity");setTimeout((function(){t.flickity("resize")}),250);var i=$(".alc-list-venues-js").flickity({contain:!0,prevNextButtons:!0,pageDots:!0,freeScroll:!1,wrapAround:!1,fullscreen:!0,lazyLoad:1,groupCells:1,cellAlign:"center"});i.data("flickity");setTimeout((function(){i.flickity("resize")}),250)})),$((function(){$(".other-products-js").flickity({contain:!0,cellAlign:"center",prevNextButtons:!1,pageDots:!1,freeScroll:!0,wrapAround:!1,fullscreen:!0,lazyLoad:1,groupCells:1}).data("flickity"),$(".alc-other-products-js").flickity({contain:!0,prevNextButtons:!1,pageDots:!0,freeScroll:!1,wrapAround:!1,fullscreen:!0,lazyLoad:1,groupCells:"100%",cellAlign:"center"}).data("flickity")})),$((function(){var t=$(".module-alc-product-information .product-content-info").flickity({fade:!0,prevNextButtons:!1,pageDots:!1,freeScroll:!1,wrapAround:!1,resize:!1,draggable:!1}),e=t.data("flickity"),i=$(".module-alc-product-information .product-list-menu"),n=i.find(".product-list-item");t.on("select.flickity",(function(){n.filter(".is-selected").removeClass("is-selected"),n.eq(e.selectedIndex).addClass("is-selected")}
2)),i.on("click",".product-list-item",(function(){var e=$(this).index();t.flickity("select",e),a.flickity("select",0),$(".menu-item-wrap").removeClass("is-selected"),$(".module-alc-product-information .child-product-information-menu").each((function(){$(this).children(".menu-item-wrap:eq(0)").addClass("is-selected")})),setTimeout((function(){t.flickity("resize")}),250),setTimeout((function(){a.flickity("resize")}),150),setTimeout((function(){o.flickity("resize")}),250)})),$(window).resize((function(){setTimeout((function(){t.flickity("resize")}),250),setTimeout((function(){a.flickity("resize")}),150),setTimeout((function(){o.flickity("resize")}),250)})),setTimeout((function(){$(".module-alc-product-information .product-list-menu .product-list-item:eq(0)").click(),$(".module-alc-product-information .product-list-menu .product-list-item:eq(0)").addClass("clicked")}),400);var a=$(".child-product-information-content").flickity({watchCSS:!1,fade:!0,prevNextButtons:!1,pageDots:!1,freeScroll:!1,wrapAround:!1,draggable:!1});$(".module-alc-product-information .child-product-information-menu").on("click",".menu-item-wrap",(function(){var e=$
2(this).index();a.flickity("select",e)})),$(".module-alc-product-information .child-product-information-menu .menu-item-wrap").on("click",(function(){get_product_id=$(this).attr("data-product-id"),$('.menu-item-wrap[data-product-id="'+get_product_id+'"]').removeClass("is-selected"),$(this).addClass("is-selected")}));var o=$(".module-alc-product-information .gallery-image-wrap").flickity({watchCSS:!1,fade:!0,prevNextButtons:!1,pageDots:!1,freeScroll:!0,wrapAround:!0}),s=o.data("flickity"),l=$(".module-alc-product-information .gallery-nav-wrap"),r=l.find(".gallery-nav-item");o.on("select.flickity",(function(){r.filter(".is-selected").removeClass("is-selected"),r.eq(s.selectedIndex).addClass("is-selected")})),l.on("click",".gallery-nav-item",(function(){get_product_id=$(this).parent(".gallery-nav-wrap").attr("data-product-id"),console.log(get_product_id);var e=$(this).index();o.flickity("select",e),$('.gallery-nav-wrap[data-product-id="'+get_product_id+'"] .gallery-nav-item').removeClass("is-selected"),$(this).addClass("is-selected")}))})),$((function(){var t=$(".module-alc-product-specific-information .product-content-info").flickity({fade:!0,prevNextButtons:!1,pageDots:!1,freeScroll:!1,wrapAround:!1,resize:!1,draggable:!1}),e=t.data("flickity"),i=$(".module-alc-product-specific-information .product-list-menu"),n=i.find(".product-list-item");t.on("select.flickity",(function(){n.filter(".is-selected").removeClass("is-selected"),n.eq(e.selectedIndex).addClass("is-selected")}
2)),i.on("click",".product-list-item",(function(){var e=$(this).index();t.flickity("select",e),a.flickity("select",0),$(".menu-item-wrap").removeClass("is-selected"),$(".module-alc-product-specific-information .child-product-information-menu").each((function(){$(this).children(".menu-item-wrap:eq(0)").addClass("is-selected")})),setTimeout((function(){t.flickity("resize")}),250),setTimeout((function(){a.flickity("resize")}),150)})),$(window).resize((function(){setTimeout((function(){t.flickity("resize")}),250),setTimeout((function(){a.flickity("resize")}),150)})),setTimeout((function(){$(".module-alc-product-specific-information .product-list-menu .product-list-item:eq(0)").click(),$(".module-alc-product-specific-information .product-list-menu .product-list-item:eq(0)").addClass("clicked")}),400);var a=$(".child-product-information-content").flickity({watchCSS:!1,fade:!0,prevNextButtons:!1,pageDots:!1,freeScroll:!1,wrapAround:!1,draggable:!1});$(".module-alc-product-specific-information .child-product-information-menu").on("click",".menu-item-wrap",(function(){var e=$
2(this).index();a.flickity("select",e)})),$(".module-alc-product-specific-information .child-product-information-menu .menu-item-wrap").on("click",(function(){get_product_id=$(this).attr("data-product-id"),console.log(get_product_id),$(".menu-item-wrap").removeClass("is-selected"),$('.menu-item-wrap[data-product-id="'+get_product_id+'"]').addClass("is-selected")}))})),$((function(){setTimeout((function(){$(".module-ard-product-list-products .list-products").flickity({contain:!0,cellAlign:"left",prevNextButtons:!1,pageDots:!0,lazyLoad:1,watchCSS:!0,resize:!0}).data("flickity")}),100)})),$((function(){setTimeout((function(){$(".module-ard-product-list-venue-locations .list-venues").flickity({contain:!0,cellAlign:"left",prevNextButtons:!1,pageDots:!0,groupCells:!0,lazyLoad:1,watchCSS:!0,resize:!0}).data("flickity")}),100)})),$((function(){})),$((function(){$(".explore-other-brands").flickity({contain:!0,cellAlign:"left",prevNextButtons:!1,pageDots:!0,wrapAround:!1,fullscreen:!0})})),$((function(){setTimeout((function(){$(".parent-course-terms-nav").flickity({asNavFor:".parent-course-terms-content",cellAlign:"center",prevNextButtons:!1,pageDots:!1,freeScroll:!1,wrapAround:!0,fullscreen:!0});var e=$(".parent-course-terms-content").flickity({fade:!0,prevNextButtons:!1,pageDots:!1,freeScroll:!1,wrapAround:!1,resize:!1});parentFlkty=e.data("flickity")}),100);var t=$(".child-course-terms-content").flickity({watchCSS:!0,fade:!0,prevNextButtons:!1,pageDots:!1,freeScroll:!1,wrapAround:!1}),e=t.data("flickity"),i=$(".child-course-terms-nav.button-group--cells"),n=i.find(".button");t.on("select.flickity",(function(){n.filter(".is-selected").removeClass("is-selected"),n.eq(e.selectedIndex).addClass("is-selected")}
2)),i.on("click",".button",(function(){var e=$(this).index();t.flickity("select",e)})),$(".toggle-specialist-courses").on("click",(function(){noClick(500),$(this).parent().parent().parent().parent(".term-slide-wrap").hasClass("toggle-active")?$(this).parent().parent().parent().parent(".term-slide-wrap").removeClass("toggle-active"):($(".parent-terms-wrap").children(".child-course-terms-carousel-wrap").children(".columns").find(".term-slide-wrap").removeClass("toggle-active"),$(this).parent().parent().parent().parent(".term-slide-wrap").addClass("toggle-active")),setTimeout((function(){$(".parent-course-terms-content").flickity({fade:!0,prevNextButtons:!1,pageDots:!1,freeScroll:!1,wrapAround:!1,resize:!1}).flickity("resize")}),150)})),$(".parent-nav-item").on("click",(function(){setTimeout((function(){$(".child-course-terms-content").flickity({watchCSS:!0,fade:!0,prevNextButtons:!1,pageDots:!1,freeScroll:!1,wrapAround:!1}).flickity("resize")}),150),setTimeout((function(){$(".parent-course-terms-content").flickity({fade:!0,prevNextButtons:!1,pageDots:!1,freeScroll:!1,wrapAround:!1,resize:!1}).flickity("resize")}),300)}))})),$((function(){get_watchCss=$(".testimonial-carousel").attr("data-watchCss"),get_prevNextButtons=$(".testimonial-carousel").attr("data-prevNextButtons"),get_wrapAround=$(".testimonial-carousel").attr("data-wrapAround"),get_pageDots=$(".testimonial-carousel").attr("data-pageDots"),get_autoPlay=$(".testimonial-carousel").attr("data-autoPlay");var e=$(".testimonial-carousel").flickity({watchCSS:get_watchCss,prevNextButtons:get_prevNextButtons,wrapAround:get_wrapAround,pageDots:get_pageDots,pauseAutoPlayOnHover:!0,autoPlay:get_autoPlay,groupCells:1,cellAlign:"center"}).data("flickity");$(".flickity-button.previous").on("click",(function(){e.previous()})),$(".flickity-button.next").on("click",(function(){e.next()}));$(".alc-testimonial-carousel").flickity({watchCSS:!0,prevNextButtons:!0,wrapAround:!0,pageDots:!0,pauseAutoPlayOnHover:!0,autoPlay:1e4,groupCells:1,cellAlign:"center"}).data("flickity")})),$((function(){setTimeout((function(){$(".module-ard-venue-other-centres .list-venues").flickity({contain:!0,cellAlign:"left",prevNextButtons:!1,pageDots:!0,lazyLoad:1,watchCSS:!0,resize:!0}).data("flickity")}),100)})),$((function(){$(".theme-bcc")[0]&&$(".select2-customer-type").select2({minimumResultsForSearch:-1,placeholder:"Choose customer type",allowClear:!0})})),$((function(){var t=new RegExp(location.host);$("a").each((function(e){url=$(this).attr("href"),check_text=$(this).text(),-1==this.href.indexOf("add-to-cart")&&"javascript:"!==url&&(""!=url&&null!=url?check_url=url.substring(0,1):check_url=url,"/"==check_url?($(this).addClass("local-link"),$(this).attr("target","_self")):"m"==check_url||"t"==check_url?($(this).addClass("external-link"),$(this).attr("target","_self")):t.test($(this).attr("href"))?(-1!=this.href.indexOf("#")?($(this).addClass("external-link"),$(this).addClass("internal-anchor")):-1!=this.href.indexOf("remove_item")||-1!=this.href.indexOf("remove_coupon")?($(this).addClass("external-link"),$(this).addClass("internal-anchor")):$(this).addClass("local-link"),$(this).attr("target","_self")):-1!=this.href.indexOf("#")?-1!=this.href.indexOf("www")?($(this).addClass("external-link"),$(this).addClass("external-anchor"),$(this).attr("target","_blank")):($(this).addClass("external-link"),$(this).addClass("internal-anchor"),$(this).attr("target","_self")):($(this).addClass("external-link"),$(this).attr("target","_blank")))})),$('a[href$=".pdf"]').attr("target","_blank"),$('a[href$=".doc"]').attr("target","_blank"),$('a[href$=".docx"]').attr("target","_blank"),$('a[href$=".txt"]').attr("target","_blank"),$('a[href$=".rtf"]').attr("target","_blank"),$('a[href*="facebook.com"]').attr("target","_blank"),$('a[href*="facebook.com"]').removeClass("local-link"),$('a[href*="facebook.com"]').addClass("external-link"),$('a[href*="twitter.com"]').attr("target","_blank"),$('a[href*="twitter.com"]').removeClass("activate-page-loader"),$('a[href*="twitter.com"]').addClass("external-link"),$(".social-button").click((function(){return window.open($(this).attr("href"),"title","width=800, height=700"),!1})),$('a[href*="/wp-admin/"]').attr("target","_blank"),$('a[href*="/wp-admin/"]').addClass("external-link"),$('a[href*="/wp-admin/"]').removeClass("local-link"),$('a[target$="_blank"]').removeClass("local-link"),Pressed=!1,$(window).keydown((function(e){91!=e.which&&17!=e.which||(Pressed=!0)})).keyup((function(e){91!=e.which&&17!=e.which||(Pressed=!1)}))})),$(document).on("click",".local-link",(function(){Pressed||$("html").removeClass("page-loaded")})),$((function(){$("table").each((function(e,t){$(this).attr("data-type","responsive"),$(this).addClass("responsive")})),$("table").addClass("full-width"),$(".table-fixed table").removeClass("full-width"),$(".table-fixed table").removeClass("responsive"),$(".table-fixed table").css("width","2000px"),$(".table-fixed").each((function(){$(this).children("table").wrap('<div style="width: 100%; overflow-x: scroll;"></div>')})),window.responsiveTables.init("table")})),storeDurationValues=[],$((function(){function e(){$(".select2-cpt_products").select2({minimumResultsForSearch:-1,placeholder:"Type of programme",allowClear:!0}),$(".select2-tax_location").select2({closeOnSelect:!1,minimumResultsForSearch:-1,placeholder:"Location",allowClear:!0}),$(".select2-tax_season").select2({minimumResultsForSearch:-1,placeholder:"Season",allowClear:!0})}function t(){$(".select2-cpt_products").select2({minimumResultsForSearch:-1,placeholder:"Type of programme",allowClear:!0}),$(".select2-tax_location").select2({closeOnSelect:!1,minimumResultsForSearch:-1,placeholder:"Location",allowClear:!0}),$(".select2-tax_season").select2({minimumResultsForSearch:-1,placeholder:"Season",allowClear:!0})}$(".theme-ard .activate-filter-menu").on("click",(function(){$("body").addClass("mobile-search-menu-active"),setTimeout((function(){$("body").addClass("mobile-search-animation")}),500),noClick(500),e()})),$(".theme-ard .close-filter-menu").on("click",(function(){$("body").removeClass("mobile-search-animation"),setTimeout((function(){$("body").removeClass("mobile-search-menu-active")}),500),noClick(500),e()})),$(".theme-bcc .activate-filter-menu").on("click",(function(){$("body").addClass("mobile-search-menu-active"),setTimeout((function(){$("body").addClass("mobile-search-animation"),t()}),500),noClick(500)})),$(".theme-bcc .close-filter-menu").on("click",(function(){$("body").removeClass("mobile-search-animation"),setTimeout((function(){$("body").removeClass("mobile-search-menu-active"),t()}),500),noClick(500)})),$(window).resize((function(){1024<$(window).width()&&($("body").removeClass("mobile-search-animation"),setTimeout((function(){$("body").removeClass("mobile-search-menu-active")}),500),e())})),$(".filter-more-filters").on("click",(function(){$(".hero-filtering").toggleClass("show-more-active"),noClick(500)})),$(".main-filters-js")[0]&&($(".filter-search-bt").on("click",(function(){var e=$
2(".select2-product option:selected").map((function(){return $(this).data("slug")})).get(),t=$(".select2-location option:selected").map((function(){return $(this).data("slug")})).get(),i=$(".select2-season option:selected").map((function(){return $(this).data("slug")})).get();$(".duration-checkbox").each((function(){if($(this).is(":checked")){var e=$(this).val();storeDurationValues.push(e)}})),""==e&&(e="all"),""==t&&(t="all"),""==i&&(i="all"),""==storeDurationValues&&(storeDurationValues="all"),ageMin=$("input.sliderValue[data-index=0]").val(),ageMax=$("input.sliderValue[data-index=1]").val(),window.location.href="?s=search&experience="+e+"&location="+t+"&season="+i+"&age-min="+ageMin+"&age-max="+ageMax+"&duration="+storeDurationValues})),$(".hero-search-bt").on("click",(function(){var e=$(".select2-cpt_products option:selected").map((function(){return $(this).data("slug")})).get(),t=$(".select2-tax_location option:selected").map((function(){return $(this).data("slug")})).get(),i=$(".select2-tax_season option:selected").map((function(){return $(this).data("slug")})).get();""==e&&(e="all"),""==t&&(t="all"),""==i&&(i="all"),ageMin=$("input.sliderValue[data-index=0]").val(),ageMax=$("input.sliderValue[data-index=1]").val(),window.location.href="?s=search&experience="+e+"&location="+t+"&season="+i+"&age-min="+ageMin+"&age-max="+ageMax})))})),$((function(){$(document).on("click",".select2-results__option strong",(function(){$(this).parent(".select2-results__option").toggleClass("show-nested-menu"),noClick(500)})),$(".select2-tax_location").on("select2:select",(function(e){var t=e.params.data.text,i=(i=e.params.data.id).replace('"',"");"Select all areas"==t&&($('.select2-tax_location option[data-parent="'+i+'"]').each((function(){$(this).prop("selected","selected")})),$(".select2-tax_location").select2(),$(".select2-tax_location").trigger("change"))}))})),$((function(){$(".theme-alg")[0]&&$(".select2-tax_blog_cat").select2({minimumResultsForSearch:-1,placeholder:"Filter Articles",allowClear:!0}),$(".theme-bcc")[0]&&($(".select2-product").select2({minimumResultsForSearch:-1,placeholder:"What would you like to do?",allowClear:!0}),$(".select2-location").select2({minimumResultsForSearch:-1,placeholder:"Where would you like to go?",allowClear:!0}),$(".select2-season").select2({minimumResultsForSearch:-1,placeholder:"When would you like to go?",allowClear:!0})),$(".theme-alc")[0]&&($(".select2-product").select2({minimumResultsForSearch:-1,placeholder:"What would you like to do?",allowClear:!0}),$(".select2-location").select2({minimumResultsForSearch:-1,placeholder:"Where would you like to go?",allowClear:!0}),$(".select2-season").select2({minimumResultsForSearch:-1,placeholder:"When would you like to go?",allowClear:!0})),$(".theme-ard")[0]&&($(".select2-cpt_products").select2({minimumResultsForSearch:-1,placeholder:"Type of programme",allowClear:!0}),$(".select2-tax_location").select2({closeOnSelect:!1,minimumResultsForSearch:-1,placeholder:"Location",allowClear:!0}),$(".select2-tax_season").select2({minimumResultsForSearch:-1,placeholder:"Season",allowClear:!0})),$(".theme-cws")[0]&&($(".select2-tax_woo_product").select2({minimumResultsForSearch:-1,placeholder:"Choose an experience type",allowClear:!0}),$(".select2-tax_woo_course_type").select2({minimumResultsForSearch:-1,placeholder:"Choose a course type",allowClear:!0}),$(".select2-tax_woo_days").select2({minimumResultsForSearch:-1,placeholder:"Choose the trip length",allowClear:!0}),$(".select2-tax_woo_season").select2({minimumResultsForSearch:-1,placeholder:"Choose a season",allowClear:!0}),$(".select2-cpt_venues").select2({minimumResultsForSearch:-1,placeholder:"Choose a venue",allowClear:!0}),$(".select-tent-number").select2({minimumResultsForSearch:-1,placeholder:"Tent",allowClear:!0}),$(".select-dietary-requirements").select2({minimumResultsForSearch:-1,placeholder:"Select Yes/No",allowClear:!0}),$(".select-medical-details").select2({minimumResultsForSearch:-1,placeholder:"Select Yes/No",allowClear:!0}),$(".select-gender").select2({minimumResultsForSearch:-1,placeholder:"Select Male/Female",allowClear:!0}),$(".select-guardian").select2({minimumResultsForSearch:-1,placeholder:"Select Relationship",allowClear:!0}),$(".select-tribe-buddies").select2({minimumResultsForSearch:-1,placeholder:"Select Yes/No",allowClear:!0}),$("#shop-main select").select2({minimumResultsForSearch:-1,allowClear:!0})),$(".select2-faq-categories").select2({minimumResultsForSearch:-1,placeholder:"Looking for anything specific?",allowClear:!0}),$(".select2-dates").select2({minimumResultsForSearch:-1,placeholder:"Choose a date",allowClear:!0}),$(".select2-guests").select2({minimumResultsForSearch:-1,placeholder:"Number of campers",allowClear:!0}),$(".select2-tents").select2({minimumResultsForSearch:-1,placeholder:"Number of tents",allowClear:!0}),$(".select2-cpt_campers").select2({minimumResultsForSearch:-1,placeholder:"My Campers",allowClear:!0})}
2)),$((function(){$(".filter-select").on("select2:open",(function(e){$(this).parent(".select-filter-wrap").hasClass("styling-bubble")&&$(".select2-dropdown").addClass("styling-bubble-dropdown"),$(this).parent(".select-filter-wrap").hasClass("bubble-dark")&&$(".select2-dropdown").addClass("styling-bubble-dark")}))})),$((function(){function e(e){if($(".theme-ard")[0]){if(e.parent(".select-filter-wrap").hasClass("cpt_products-filter"))var t=$(".select2-cpt_products option:selected").map((function(){return $(this).data("slug")})).get();if(e.parent(".select-filter-wrap").hasClass("tax_location-filter"))t=$(".select2-tax_location option:selected").map((function(){return $(this).data("slug")})).get();if(e.parent(".select-filter-wrap").hasClass("tax_season-filter"))t=$(".select2-tax_season option:selected").map((function(){return $(this).data("slug")})).get()}if($(".theme-bcc")[0]){if(e.parent(".select-filter-wrap").hasClass("products-filter-multiple"))t=$(".select2-product option:selected").map((function(){return $(this).data("slug")})).get();if(e.parent(".select-filter-wrap").hasClass("location-filter-multiple"))t=$(".select2-location option:selected").map((function(){return $(this).data("slug")})).get();if(e.parent(".select-filter-wrap").hasClass("seasons-filter-multiple"))t=$(".select2-season option:selected").map((function(){return $(this).data("slug")})).get()}var i=t.length;1<=i?e.parent(".select-filter-wrap").children(".filter-count.hide")[0]&&e.parent(".select-filter-wrap").children(".filter-count").removeClass("hide"):e.parent(".select-filter-wrap").children(".filter-count").addClass("hide"),e.parent(".select-filter-wrap").children(".filter-count").children(".count").text(i)}if(($(".theme-bcc")[0]||$(".theme-ard")[0])&&($(".filter-select.reload.filter-count-show").on("change",(function(){el=$(this),e(el)})),$(".filter-select.ajax.filter-count-show").on("change",(function(){el=$(this),e(el)}))),$(".main-filters-js")[0]&&setTimeout((function(){$(".theme-ard")[0]&&(e($(".select2-cpt_products.filter-select.reload")),e($(".select2-tax_location.filter-select.reload")),e($(".select2-tax_season.filter-select.reload"))),$(".theme-bcc")[0]&&(e($(".select2-product.filter-select.reload")),e($(".select2-location.filter-select.reload")),e($(".select2-season.filter-select.reload")))}),50),$(".main-filters-js")[0]){if($(".theme-ard")[0])null!=(t=getUrlParameter("experience"))&&""!=t&&"all"!=t&&(t=t.split(","),$.each($(".select2-cpt_products.filter-select"),(function(){$(this).val(t)})),$(".select2-cpt_products").select2({minimumResultsForSearch:-1,placeholder:"Type of programme",allowClear:!0})),null!=(i=getUrlParameter("location"))&&""!=i&&"all"!=i&&(i=i.split(","),$.each($(".select2-tax_location.filter-select"),(function(){$(this).val(i)})),$(".select2-tax_location").select2({minimumResultsForSearch:-1,placeholder:"Location",allowClear:!0})),null!=(n=getUrlParameter("season"))&&""!=n&&"all"!=n&&(n=n.split(","),$.each($(".select2-tax_season.filter-select"),(function(){$(this).val(n)})),$(".select2-tax_season").select2({minimumResultsForSearch:-1,placeholder:"Season",allowClear:!0}));if($(".theme-bcc")[0]){var t,i,n;null!=(t=getUrlParameter("experience"))&&""!=t&&"all"!=t&&(t=t.split(","),$.each($(".products-filter-multiple .filter-select"),(function(){$(this).val(t)})),$(".select2-product").select2({minimumResultsForSearch:-1,placeholder:"What would you like to do?",allowClear:!0})),null!=(i=getUrlParameter("location"))&&""!=i&&"all"!=i&&(i=i.split(","),$.each($(".location-filter-multiple .filter-select"),(function(){$(this).val(i)})),$(".select2-location").select2({minimumResultsForSearch:-1,placeholder:"Where would you like to go?",allowClear:!0})),null!=(n=getUrlParameter("season"))&&""!=n&&"all"!=n&&(n=n.split(","),$.each($(".seasons-filter-multiple .filter-select"),(function(){$(this).val(n)})),$(".select2-season").select2({minimumResultsForSearch:-1,placeholder:"When would you like to go?",allowClear:!0}));var a=getUrlParameter("duration");null!=a&&""!=a&&"all"!=a&&(a=a.split(","),$.each(a,(function(e,t){$(".duration-checkbox").each((function(){$(this).val()==t&&($(this).parent(".check-box-wrap").parent(".check-wrap").addClass("checked"),$(this).prop("checked",!0))})),console.log(t)})))}}$(".main-filters-js")[0]&&$(".check-wrap").on("click",(function(){$(this).hasClass("checked")?($(this).removeClass("checked"),$(this).children(".check-box-wrap").children(".duration-checkbox").prop("checked",!1)):($(this).addClass("checked"),$(this).children(".check-box-wrap").children(".duration-checkbox").prop("checked",!0))}))})),$((function(){var e=getUrlParameter("age-min"),t=getUrlParameter("age-max");null==e&&(e=7),$(".sliderValue[data-index=0]").val(e),null==t&&(t=14),$(".sliderValue[data-index=1]").val(t),$("#slider").slider({range:!0,min:7,max:14,step:1,values:[e,t],slide:function(e,t){if(t.values[0]==t.values[1])return!1;for(var i=0;i<t.values.length;++i)$("input.sliderValue[data-index="+i+"]").val(t.values[i])}}
2),$("input.sliderValue").change((function(){var e=$(this);$("#slider").slider("values",e.data("index"),e.val())}))})),$((function(){$("#flatpickr").flatpickr({dateFormat:"d-m-Y",allowInput:!1}),$("#checkin").flatpickr({dateFormat:"d-m-Y",allowInput:!1}),$("#checkout").flatpickr({dateFormat:"d-m-Y",allowInput:!1}),$("#checkin, #checkout").on("keyup",(function(){0==$(this).val().length?$(this).parent().removeClass("has_text"):$(this).parent().addClass("has_text")})),$("#checkin, #checkout").on("change",(function(){0==$(this).val().length?$(this).parent().removeClass("has_text"):$(this).parent().addClass("has_text")})),$("#checkin, #checkout").each((function(){""!==this.value.trim()&&$(this).parent().addClass("has_text")})),$("#checkin, #checkout").focus((function(){$(this).parent().addClass("active")})).blur((function(){$(this).parent().removeClass("active")}))})),(function(e,t){"function"==typeof define&&define.amd?define(["flickity/js/index","fizzy-ui-utils/utils"],t):"object"==typeof module&&module.exports?module.exports=t(require("flickity"),require("fizzy-ui-utils")):t(e.Flickity,e.fizzyUIUtils)})(this,(function(e,l){var t=e.Slide,a=t.prototype.updateTarget;t.prototype.updateTarget=function(){if(a.apply(this,arguments),this.parent.options.fade){var i=this.target-this.x,n=this.cells[0].x;this.cells.forEach((function(e){var t=e.x-n-i;e.renderPosition(t)}))}},t.prototype.setOpacity=function(t){this.cells.forEach((function(e){e.element.style.opacity=t}))};var i=e.prototype;e.createMethods.push("_createFade"),i._createFade=function(){this.fadeIndex=this.selectedIndex,this.prevSelectedIndex=this.selectedIndex,this.on("select",this.onSelectFade),this.on("dragEnd",this.onDragEndFade),this.on("settle",this.onSettleFade),this.on("activate",this.onActivateFade),this.on("deactivate",this.onDeactivateFade)};var n=i.updateSlides;i.updateSlides=function(){n.apply(this,arguments),this.options.fade&&this.slides.forEach((function(e,t){var i=t==this.selectedIndex?1:0;e.setOpacity(i)}),this)},i.onSelectFade=function(){this.fadeIndex=Math.min(this.prevSelectedIndex,this.slides.length-1),this.prevSelectedIndex=this.selectedIndex},i.onSettleFade=function(){delete this.didDragEnd,this.options.fade&&(this.selectedSlide.setOpacity(1),this.slides[this.fadeIndex]&&this.fadeIndex!=this.selectedIndex&&this.slides[this.fadeIndex].setOpacity(0))},i.onDragEndFade=function(){this.didDragEnd=!0},i.onActivateFade=function(){this.options.fade&&this.element.classList.add("is-fade")},i.onDeactivateFade=function(){this.options.fade&&(this.element.classList.remove("is-fade"),this.slides.forEach((function(e){e.setOpacity("")})))};var o=i.positionSlider;i.positionSlider=function(){this.options.fade?(this.fadeSlides(),this.dispatchScrollEvent()):o.apply(this,arguments)};var s=i.positionSliderAtSelected;i.positionSliderAtSelected=function(){this.options.fade&&this.setTranslateX(0),s.apply(this,arguments)},i.fadeSlides=function(){if(!(this.slides.length<2)){var e=this.getFadeIndexes(),t=this.slides[e.a],i=this.slides[e.b],n=this.wrapDifference(t.target,i.target),a=this.wrapDifference(t.target,-this.x);a/=n,t.setOpacity(1-a),i.setOpacity(a);var o=e.a;this.isDragging&&(o=.5<a?e.a:e.b),null!=this.fadeHideIndex&&this.fadeHideIndex!=o&&this.fadeHideIndex!=e.a&&this.fadeHideIndex!=e.b&&this.slides[this.fadeHideIndex].setOpacity(0),this.fadeHideIndex=o}},i.getFadeIndexes=function(){return this.isDragging||this.didDragEnd?this.options.wrapAround?this.getFadeDragWrapIndexes():this.getFadeDragLimitIndexes():{a:this.fadeIndex,b:this.selectedIndex}},i.getFadeDragWrapIndexes=function(){var e=this.slides.map((function(e,t){return this.getSlideDistance(-this.x,t)}),this),t=e.map((function(e){return Math.abs(e)})),i=Math.min.apply(Math,t),n=t.indexOf(i),a=e[n],o=this.slides.length,s=0<=a?1:-1;return{a:n,b:l.modulo(n+s,o)}},i.getFadeDragLimitIndexes=function(){for(var e=0,t=0;t<this.slides.length-1;t++){var i=this.slides[t];if(-this.x<i.target)break;e=t}return{a:e,b:e+1}},i.wrapDifference=function(e,t){var i=t-e;if(!this.options.wrapAround)return i;var n=i+this.slideableWidth,a=i-this.slideableWidth;return Math.abs(n)<Math.abs(i)&&(i=n),Math.abs(a)<Math.abs(i)&&(i=a),i};var r=i._getWrapShiftCells;i._getWrapShiftCells=function(){this.options.fade||r.apply(this,arguments)};var c=i.shiftWrapCells;return i.shiftWrapCells=function(){this.options.fade||c.apply(this,arguments)},e})),$((function(){$(".wpcf7")[0]&&document.querySelector(".wpcf7").addEventListener("wpcf7invalid",(function(e){$(".wpcf7-not-valid-tip").each((function(e){$(this).parent(".wpcf7-form-control-wrap").parent(".form-field").addClass("form-field-not-valid")}))}),!1);$(".form-submit").on("click",(function(){$(".wpcf7-submit").click()}))}));var getUrlParameter=function(e){var t,i,n=decodeURIComponent(window.location.search.substring(1)).split("&");for(i=0;i<n.length;i++)if((t=n[i].split("="))[0]===e)return void 0===t[1]||t[1]};function noClick(e){$(this).addClass("no-click"),setTimeout((function(){$(this).removeClass("no-click")}),e)}$((function(){})),$((function(){$(".module-alg-list-brands-experiences .accordion-toggle-js").on("click",(function(){noClick(500),$(this).parent(".inner-wrap").parent(".list-brands-experience-experience").parent(".list-experiences").parent(".columns").hasClass("accordion-active")?$(this).parent(".inner-wrap").parent(".list-brands-experience-experience").parent(".list-experiences").parent(".columns").removeClass("accordion-active"):$(this).parent(".inner-wrap").parent(".list-brands-experience-experience").parent(".list-experiences").parent(".columns").addClass("accordion-active")}))})),$((function(){$(".module-alg-list-brands-full-width .accordion-toggle-js").on("click",(function(){noClick(500),$(this).parent(".content-wrap-inner").hasClass("accordion-active")?$(this).parent(".content-wrap-inner").removeClass("accordion-active"):$(this).parent(".content-wrap-inner").addClass("accordion-active")}))})),$((function(){$(".theme-alc")[0]&&$(".module-alc-contact-form").on("click",".show-more-wrap",(function(){$(this).parent(".block").toggleClass("is-open"),noClick(500)}))})),$((function(){$(".theme-ard")[0]&&($(".module-ard-freaquently-asked-questions").on("click",".close-wrap",(function(){$(this).parent(".description-wrap").parent(".faq-question").toggleClass("is-selected"),noClick(500)})),$(".module-ard-list-faqs").on("click",".close-wrap",(function(){$(this).parent(".description-wrap").parent(".faq-question").toggleClass("is-selected"),noClick(500)}))),$(".theme-alc")[0]&&$(document.body).on("click",".list-faqs .faq-question .close-wrap",(function(){$(this).parent(".question-wrap").parent(".faq-question").toggleClass("is-open"),noClick(500)}))})),$(document).on("click",".list-faqs.show-related-videos",(function(){$(".faq-video-list").addClass("show-all")}
2)),$((function(){$(".theme-ard")[0]&&$(".module-ard-list-videos .show-all-videos").on("click",(function(){$(".module-ard-list-videos .module-faq-video-list").addClass("show-all-videos"),noClick(500)})),$(".theme-bcc")[0]&&$(".module-bcc-list-videos .show-all-videos").on("click",(function(){$(".module-bcc-list-videos .module-faq-video-list").addClass("show-all-videos"),noClick(500)})),$(".theme-cws")[0]&&$(".module-cws-list-videos .show-all-videos").on("click",(function(){$(".module-cws-list-videos .module-faq-video-list").addClass("show-all-videos"),noClick(500)}))})),$((function(){$(".theme-bcc")[0]&&$(".module-bcc-meet-the-staff .icon-wrap").on("click",(function(e){noClick(500),$(this).parent(".content-wrap").parent(".list-item").addClass("delay"),$(this).parent(".content-wrap").parent(".list-item").toggleClass("active")})),$(".theme-alc")[0]&&$(document.body).on("click",".module-alc-meet-the-staff .list-item",(function(e){noClick(500),$(this).addClass("delay"),$(this).toggleClass("active")})),$(".theme-cws")[0]&&$(".module-cws-meet-the-staff .icon-wrap").on("click",(function(e){noClick(500),$(this).parent(".content-wrap").parent(".list-item").addClass("delay"),$(this).parent(".content-wrap").parent(".list-item").toggleClass("active")})),$(".theme-ard")[0]&&($(".module-ard-team-members .close, .module-ard-team-members-grid .close").on("click",(function(e){noClick(500),$(this).parent(".content-wrap").parent(".container").parent(".column").toggleClass("active"),$(this).parent(".content-wrap").parent(".container").parent(".column").parent(".columns").toggleClass("open")})),$(".module-ard-team-members-grid .close").on("click",(function(e){noClick(500),$(this).parent(".content-wrap").parent(".container").parent(".team-grid-item").toggleClass("active")})))})),$((function(){$(".module-ard-single-centre-attributes-info .outer-wrap .container .container .column .container .description-wrap.toggle").on("click",(function(){noClick(500),$(this).parent(".container").parent(".column").hasClass("toggle-active")?$(this).parent().parent(".column").removeClass("toggle-active"):($(".module-ard-single-centre-attributes-info .outer-wrap .container .container .column").removeClass("toggle-active"),$(this).parent().parent(".column").addClass("toggle-active"))}))})),$((function(){$(".alg-menu .alg-menu-inner .menu-activate").on("click",(function(){$(this).parent(".alg-menu-inner").parent(".alg-menu").is(".active")?$(this).parent(".alg-menu-inner").parent(".alg-menu").removeClass("active"):($(this).parent(".alg-menu-inner").parent(".alg-menu").addClass("active"),$(this).parent(".alg-menu-inner").parent(".alg-menu").removeClass("active-about"))})),$(".alg-menu .alg-menu-inner .menu-about").on("click",(function(){$(this).parent(".alg-menu-inner").parent(".alg-menu").is(".active-about")?$(this).parent(".alg-menu-inner").parent(".alg-menu").removeClass("active-about"):($(this).parent(".alg-menu-inner").parent(".alg-menu").addClass("active-about"),$(this).parent(".alg-menu-inner").parent(".alg-menu").removeClass("active"))}));var t=$(".alg-menu-carousel").flickity({contain:!0,fade:!0,watchCSS:!0,prevNextButtons:!1,freeScroll:!1,wrapAround:!1,pageDots:!1,fullscreen:!0,lazyLoad:1,draggable:!1,groupCells:1}),e=t.data("flickity"),i=$(".alg-menu-button-group--cells"),n=i.find(".carousel-button");function a(){769<=$(window).width()&&($(".alg-menu-carousel .slide-container .category-accordion-wrap").removeClass("accordion-active"),$(".alg-menu-carousel").removeClass("sub-menu-active"))}t.on("select.flickity",(function(){n.filter(".is-selected").removeClass("is-selected"),n.eq(e.selectedIndex).addClass("is-selected")}
2)),i.on("click",".button",(function(){var e=$(this).index();t.flickity("select",e)})),i.on("click",".carousel-button",(function(){var e=$(this).index();t.flickity("select",e)})),$(".alg-menu-carousel .slide-container .category-accordion-wrap").on("click",(function(){$(this).parent(".slide-container").is(".accordion-active")?$(this).parent(".slide-container").removeClass("accordion-active"):($(".alg-menu-carousel .slide-container").removeClass("accordion-active"),$(this).parent(".slide-container").addClass("accordion-active"),$(".alg-menu-carousel").addClass("sub-menu-active"))})),$(".back-to-alg-menu").on("click",(function(){$(".alg-menu-carousel .slide-container").removeClass("accordion-active"),$(".alg-menu-carousel").removeClass("sub-menu-active")})),a(),$(window).resize((function(){a()}))})),$((function(){$("html").addClass("page-loaded"),window.addEventListener("pageshow",(function(e){(e.persisted||void 0!==window.performance&&2===window.performance.navigation.type)&&window.location.reload()}))})),$((function(){$(".login.wp-core-ui")[0]&&(setTimeout((function(){$(".login.wp-core-ui").addClass("login-page-loaded")}),500),setTimeout((function(){$(".login-bg").addClass("show")}),1e3),setTimeout((function(){$("#login").addClass("show")}),2e3),$("#login").children("h1").remove(),$(".login-logo").prependTo("form"),$(".social-links-wrap").appendTo("form"),$(".login-action-resetpass, login-action-checkemail")[0]&&($(".login-logo").prependTo("#login"),$(".social-links-wrap").appendTo("#login")),$("#backtoblog").remove(),$("#nav").insertAfter(".forgetmenot"))})),$((function(){$(".module-bcc-teacher-portal")[0]&&iFrameResize({log:!0})})),$((function(){$(document).on("click",".login-link",(function(){noClick(500),$(".login-tab").removeClass("active"),$(".register-tab").addClass("active"),$(".register-form").removeClass("active"),$(".login-form").addClass("active")})),$(document).on("click",".register-link",(function(){noClick(500),$(".register-tab").removeClass("active"),$(".login-tab").addClass("active"),$(".login-form").removeClass("active"),$(".register-form").addClass("active")})),$(document).on("click",".login-register, .cws-login-popup-close",(function(){noClick(500),$(".login-popup-is-active")[0]?($("body").removeClass("login-popup-animations"),setTimeout((function(){$("body").removeClass("login-popup-is-active")}),1e3)):($("body").addClass("login-popup-is-active"),setTimeout((function(){$("body").addClass("login-popup-animations")}),500))})),$("form#login").on("submit",(function(e){$("form#login p.status").show().text(ajax_login_object.loadingmessage),$.ajax({type:"POST",dataType:"json",url:ajax_login_object.ajaxurl,data:{action:"ajaxlogin",username:$("form#login #username").val(),password:$("form#login #password").val(),security:$("form#login #security").val()},success:function(e){$("form#login p.status").text(e.message),1==e.loggedin&&(document.location.href=ajax_login_object.redirecturl)}}),e.preventDefault()}))})),$((function(){$(".option-dont-show-again").click((function(){setCookie("hide-popup-notification-from-displaying-again","yes","30"),$("body").removeClass("animate-popup-notification"),setTimeout((function(){$("body").removeClass("show-popup-notification")}),300)})),$(".option-close-wrap").click((function(){setCookie("hide-popup-notification-from-displaying","yes","1"),$("body").removeClass("animate-popup-notification"),setTimeout((function(){$("body").removeClass("show-popup-notification")}),300)}))})),$((function(){$(document).on("click",".search-term-tag",(function(){var e=$
2(this).attr("data-slug");""!==e&&($('.filter-select option[value="'+e+'"]').prop("selected",!1).parent().trigger("change"),$(this).remove())})),$(document).on("click",".search-term-age",(function(){$("#slider").slider("values",0,7),$(".sliderValue.min").val("7"),$("#slider").slider("values",1,19),$(".sliderValue.max").val("19"),$(this).remove()}))})),$((function(){$(".grid").masonry({percentPosition:!0,columnWidth:".grid-sizer",itemSelector:".grid-item"})})),$((function(){$(document).on("click",".add-campers-to-account",(function(){if(noClick(500),$(".add-attending-campers").addClass("add-attending-campers-active"),$(this).hasClass("no-campers")){var e=$($(".add-attending-campers")).offset();$("html, body").stop().animate({scrollTop:e.top-150},500)}})),$(document).on("click",".account-camper-wrap",(function(){noClick(500),get_tent_no=$(this).attr("data-tent"),count_active=0,$(".account-camper-wrap.age-ok.camper-active").each((function(){count_active++})),null==get_tent_no||""==get_tent_no?0!=count_active?$(".add-campers-to-order").removeClass("no-click"):$(".add-campers-to-order").addClass("no-click"):0!=count_active?$('.add-campers-to-order[data-tent="'+get_tent_no+'"]').removeClass("no-click"):$('.add-campers-to-order[data-tent="'+get_tent_no+'"]').addClass("no-click")})),$(document).on("click","#flatpickr",(function(){noClick(500),$(".add-attending-campers-form .date-of-birth-wrap").removeClass("show-error"),$(".add-attending-campers-form .date-of-birth-wrap").removeClass("too-young"),$(".add-attending-campers-form .date-of-birth-wrap").removeClass("too-old")}));var e=getUrlParameter("party-size"),t=getUrlParameter("camper-ids");if(null!=e)if(""==t||null==t){var i=$("#check-availability").offset().top-100;$("html, body").animate({scrollTop:i},1e3)}else{i=$("#add-campers").offset().top-110;$("html, body").animate({scrollTop:i},1e3)}var n=getUrlParameter("tent-count"),a=getUrlParameter("tent-1-ids"),o=getUrlParameter("tent-2-ids"),s=getUrlParameter("tent-3-ids"),l=getUrlParameter("tent-4-ids"),r=getUrlParameter("tent-5-ids");if(null!=n)if(""==a||null==a||""==o||null==o||""==s||null==s||""==l||null==l||""==r||null==r){i=$("#check-availability").offset().top-100;$("html, body").animate({scrollTop:i},1e3)}else{i=$("#add-campers").offset().top-110;$("html, body").animate({scrollTop:i},1e3)}$(".radio-buttons .radio-button input[name=adult-child]").change((function(){var e=$
2(".radio-buttons .radio-button input[name=adult-child]:checked").val();"kid"==e?($(".add-attending-campers-acf-form #acf-field_605c94be12d72-child[value='child']").prop("checked",!0),$(".date-of-birth-wrap").removeClass("hide-field"),$(".child-extra-fields").removeClass("hide-field")):"adult"==e&&($(".add-attending-campers-acf-form #acf-field_605c94be12d72-adult[value='adult']").prop("checked",!0),$(".child-extra-fields").addClass("hide-field"))})),$(".date-of-birth-dd").on("keyup",(function(){if(3<=(e=$(this).val()).length)var e=e.substring(0,2);$(this).val(e)})),$(".date-of-birth-mm").on("keyup",(function(){if(3<=(e=$(this).val()).length)var e=e.substring(0,2);$(this).val(e)})),$(".date-of-birth-yyyy").on("keyup",(function(){if(5<=(e=$(this).val()).length)var e=e.substring(0,4);$(this).val(e)}))})),$((function(){$(".single_add_to_cart_button").on("click",(function(e){noClick(500),$(this).addClass("svg-loading")}))})),$((function(){$(".dashboard-edit-campers")[0]||($("<h2>Menu</h2>").prependTo(".woocommerce-MyAccount-navigation"),$(".woocommerce-MyAccount-navigation ul").append('<li class="woocommerce-MyAccount-navigation-link woocommerce-MyAccount-navigation-link--edit-campers"><a href="/my-account/edit-campers/" class="local-link" target="_self">Marketing Preferences</a></li>'),$(".woocommerce-MyAccount-navigation ul").append('<li class="woocommerce-MyAccount-navigation-link woocommerce-MyAccount-navigation-link--edit-campers"><a href="/camp-pack-downloads/" class="local-link" target="_self">Download Information</a></li>'))})),$(document).on("click",".options-wrap .option.delete",(function(){noClick(500),$(this).parent().parent(".inner-wrap").find('input[name="acf[field_606f0230e6300]"]').prop("checked",!0),$(this).parent().parent(".inner-wrap").find(".acf-form-submit input").click()})),$((function(){html='<div class="module-cws checkout-thankyou-wrapper">',html+='<div class="title-wrap">',html+="<h1>Thanks for booking your adventure this year!</h1>",html+="<h2>YOU ARE GOING TO HAVE A WONDERFUL TIME!</h2>",html+="</div>",html+='<div class="description-wrap">',html+='<p style="font-size:16px">You will receive a confirmation of your booking via email. In order to prepare for the trip you will receive a form to fill out for each Attendee regarding their details for camp. Please note if we do not receive these details before the trip your booking may be cancelled as we need this to ensure the safety of everyone staying with us.</p>',html+='<p style="font-size:16px">You will also have access to all the information you need to prepare for your trip, and details including the kit list, directions and more can be found in your <a href="/camp-pack-downloads/" title="Camp Pack">camp pack here</a>.</p>',html+='<p style="font-size:16px"></br></p>',html+='<p style="font-size:16px">Thanks,</p>',html+='<p style="font-size:16px">The Camp Wilderness Team</p>',html+="</div>",html+="</div>",$(".woocommerce-order-received")[0]&&$(".woocommerce-notice.woocommerce-notice--success.woocommerce-thankyou-order-received").parent(".woocommerce-order").prepend(html)})),$((function(){$(".woocommerce-checkout")[0]&&(get_tax=$(".includes_tax").text(),get_tax=get_tax.replace("Tax","VAT"),$(".includes_tax").text(get_tax)),$(document).on("click","#accept-order-terms",(function(){$(this).toggleClass("accept"),$(".woocommerce-checkout-payment").toggleClass("accept")}))})),$((function(){$(document).on("click",".pf-size-guide-modal-wrapper",(function(e){noClick(500),e.target==this&&$(".pf-size-guide-modal__close").click()}))})),$((function(){function e(e){return e.toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}var t,i,n;navigator.sayswho=(i=navigator.userAgent,n=i.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[],/trident/i.test(n[1])?"IE "+((t=/\brv[ :]+(\d+)/g.exec(i)||[])[1]||""):"Chrome"===n[1]&&null!=(t=i.match(/\b(OPR|Edge)\/(\d+)/))?t.slice(1).join(" ").replace("OPR","Opera"):(n=n[2]?[n[1],n[2]]:[navigator.appName,navigator.appVersion,"-?"],null!=(t=i.match(/version\/(\d+)/i))&&n.splice(1,1,t[1]),n.join(" "))),$("html").addClass(navigator.sayswho);navigator.appVersion;var a,o,s,l=navigator.userAgent,r=navigator.appName,c=""+parseFloat(navigator.appVersion),d=parseInt(navigator.appVersion,10);-1!=(o=l.indexOf("OPR/"))?(r="Opera",c=l.substring(o+4)):-1!=(o=l.indexOf("Opera"))?(r="Opera",c=l.substring(o+6),-1!=(o=l.indexOf("Version"))&&(c=l.substring(o+8))):-1!=(o=l.indexOf("MSIE"))?(r="Microsoft Internet Explorer",c=l.substring(o+5)):-1!=(o=l.indexOf("Chrome"))?(r="Chrome",c=l.substring(o+7)):-1!=(o=l.indexOf("Safari"))?(r="Safari",c=l.substring(o+7),-1!=(o=l.indexOf("Version"))&&(c=l.substring(o+8))):-1!=(o=l.indexOf("Firefox"))?(r="Firefox",c=l.substring(o+8)):(a=l.lastIndexOf(" ")+1)<(o=l.lastIndexOf("/"))&&(r=l.substring(a,o),c=l.substring(o+1),r.toLowerCase()==r.toUpperCase()&&(r=navigator.appName)),-1!=(s=c.indexOf(";"))&&(c=c.substring(0,s)),-1!=(s=c.indexOf(" "))&&(c=c.substring(0,s)),d=parseInt(""+c,10),isNaN(d)&&(c=""+parseFloat(navigator.appVersion),d=parseInt(navigator.appVersion,10)),$("html").addClass("browser-"+e(r)+" browser-"+e(r)+"-"+c).addClass("os-"+e(navigator.userAgent))})),(function(e,t){"function"==typeof define&&define.amd?define(["flickity/js/index","fizzy-ui-utils/utils"],t):"object"==typeof module&&module.exports?module.exports=t(require("flickity"),require("fizzy-ui-utils")):t(e.Flickity,e.fizzyUIUtils)})(this,(function(e,l){var t=e.Slide,a=t.prototype.updateTarget;t.prototype.updateTarget=function(){if(a.apply(this,arguments),this.parent.options.fade){var i=this.target-this.x,n=this.cells[0].x;
2this.cells.forEach((function(e){var t=e.x-n-i;e.renderPosition(t)}))}},t.prototype.setOpacity=function(t){this.cells.forEach((function(e){e.element.style.opacity=t}))};var i=e.prototype;e.createMethods.push("_createFade"),i._createFade=function(){this.fadeIndex=this.selectedIndex,this.prevSelectedIndex=this.selectedIndex,this.on("select",this.onSelectFade),this.on("dragEnd",this.onDragEndFade),this.on("settle",this.onSettleFade),this.on("activate",this.onActivateFade),this.on("deactivate",this.onDeactivateFade)};var n=i.updateSlides;i.updateSlides=function(){n.apply(this,arguments),this.options.fade&&this.slides.forEach((function(e,t){var i=t==this.selectedIndex?1:0;e.setOpacity(i)}),this)},i.onSelectFade=function(){this.fadeIndex=Math.min(this.prevSelectedIndex,this.slides.length-1),this.prevSelectedIndex=this.selectedIndex},i.onSettleFade=function(){delete this.didDragEnd,this.options.fade&&(this.selectedSlide.setOpacity(1),this.slides[this.fadeIndex]&&this.fadeIndex!=this.selectedIndex&&this.slides[this.fadeIndex].setOpacity(0))},i.onDragEndFade=function(){this.didDragEnd=!0},i.onActivateFade=function(){this.options.fade&&this.element.classList.add("is-fade")},i.onDeactivateFade=function(){this.options.fade&&(this.element.classList.remove("is-fade"),this.slides.forEach((function(e){e.setOpacity("")})))};var o=i.positionSlider;i.positionSlider=function(){this.options.fade?(this.fadeSlides(),this.dispatchScrollEvent()):o.apply(this,arguments)};var s=i.positionSliderAtSelected;i.positionSliderAtSelected=function(){this.options.fade&&this.setTranslateX(0),s.apply(this,arguments)},i.fadeSlides=function(){if(!(this.slides.length<2)){var e=this.getFadeIndexes(),t=this.slides[e.a],i=this.slides[e.b],n=this.wrapDifference(t.target,i.target),a=this.wrapDifference(t.target,-this.x);a/=n,t.setOpacity(1-a),i.setOpacity(a);var o=e.a;this.isDragging&&(o=.5<a?e.a:e.b),null!=this.fadeHideIndex&&this.fadeHideIndex!=o&&this.fadeHideIndex!=e.a&&this.fadeHideIndex!=e.b&&this.slides[this.fadeHideIndex].setOpacity(0),this.fadeHideIndex=o}},i.getFadeIndexes=function(){return this.isDragging||this.didDragEnd?this.options.wrapAround?this.getFadeDragWrapIndexes():this.getFadeDragLimitIndexes():{a:this.fadeIndex,b:this.selectedIndex}},i.getFadeDragWrapIndexes=function(){var e=this.slides.map((function(e,t){return this.getSlideDistance(-this.x,t)}),this),t=e.map((function(e){return Math.abs(e)})),i=Math.min.apply(Math,t),n=t.indexOf(i),a=e[n],o=this.slides.length,s=0<=a?1:-1;return{a:n,b:l.modulo(n+s,o)}},i.getFadeDragLimitIndexes=function(){for(var e=0,t=0;t<this.slides.length-1;t++){var i=this.slides[t];if(-this.x<i.target)break;e=t}return{a:e,b:e+1}},i.wrapDifference=function(e,t){var i=t-e;if(!this.options.wrapAround)return i;var n=i+this.slideableWidth,a=i-this.slideableWidth;return Math.abs(n)<Math.abs(i)&&(i=n),Math.abs(a)<Math.abs(i)&&(i=a),i};var r=i._getWrapShiftCells;i._getWrapShiftCells=function(){this.options.fade||r.apply(this,arguments)};var c=i.shiftWrapCells;return i.shiftWrapCells=function(){this.options.fade||c.apply(this,arguments)},e})),(function(t,i){if("function"!=typeof define||!define.amd)return i(t,t.document,t.jQuery);define(["jquery"],(function(e){return i(t,t.document,e)}))})(this,(function(e,t,g){if(!e.responsiveTables){var i={version:"1.0.6",titleTpl:function(e){return"<span data-type='responsive'>"+e+"</span>"},init:function(e,t){var i,n,a,o,s,l,r,c=g(e||"table.responsive");if(0<c.length)for(var d=0,u=c.length;d<u;d++)if(!(i=g(c[d])).attr("data-type")||t){i.attr("data-type","responsive"),n=(o=i.find("> thead > tr, > tbody > tr, > tr")).find("> th");for(var f=0,p=o.length;f<p;f++)for(var m=0,h=(s=g(o[f]).find("> td")).length;m<h;m++)a=n[m],r=g(s[m]),l=a.textContent||a.innerText||"",t&&r.find("span[data-type='responsive']").remove(),r.prepend(this.titleTpl(l))}}};return e.responsiveTables=i}console.error("window.responsiveTables is already defined globally",e.responsiveTables)})),(function(e,t){"function"==typeof define&&define.amd?define(["flickity/js/index","fizzy-ui-utils/utils"],t):"object"==typeof module&&module.exports?module.exports=t(require("flickity"),require("fizzy-ui-utils")):t(e.Flickity,e.fizzyUIUtils)})(this,(function(e,l){var t=e.Slide,a=t.prototype.updateTarget;t.prototype.updateTarget=function(){if(a.apply(this,arguments),this.parent.options.fade){var i=this.target-this.x,n=this.cells[0].x;
2this.cells.forEach((function(e){var t=e.x-n-i;e.renderPosition(t)}))}},t.prototype.setOpacity=function(t){this.cells.forEach((function(e){e.element.style.opacity=t}))};var i=e.prototype;e.createMethods.push("_createFade"),i._createFade=function(){this.fadeIndex=this.selectedIndex,this.prevSelectedIndex=this.selectedIndex,this.on("select",this.onSelectFade),this.on("dragEnd",this.onDragEndFade),this.on("settle",this.onSettleFade),this.on("activate",this.onActivateFade),this.on("deactivate",this.onDeactivateFade)};var n=i.updateSlides;i.updateSlides=function(){n.apply(this,arguments),this.options.fade&&this.slides.forEach((function(e,t){var i=t==this.selectedIndex?1:0;e.setOpacity(i)}),this)},i.onSelectFade=function(){this.fadeIndex=Math.min(this.prevSelectedIndex,this.slides.length-1),this.prevSelectedIndex=this.selectedIndex},i.onSettleFade=function(){delete this.didDragEnd,this.options.fade&&(this.selectedSlide.setOpacity(1),this.slides[this.fadeIndex]&&this.fadeIndex!=this.selectedIndex&&this.slides[this.fadeIndex].setOpacity(0))},i.onDragEndFade=function(){this.didDragEnd=!0},i.onActivateFade=function(){this.options.fade&&this.element.classList.add("is-fade")},i.onDeactivateFade=function(){this.options.fade&&(this.element.classList.remove("is-fade"),this.slides.forEach((function(e){e.setOpacity("")})))};var o=i.positionSlider;i.positionSlider=function(){this.options.fade?(this.fadeSlides(),this.dispatchScrollEvent()):o.apply(this,arguments)};var s=i.positionSliderAtSelected;i.positionSliderAtSelected=function(){this.options.fade&&this.setTranslateX(0),s.apply(this,arguments)},i.fadeSlides=function(){if(!(this.slides.length<2)){var e=this.getFadeIndexes(),t=this.slides[e.a],i=this.slides[e.b],n=this.wrapDifference(t.target,i.target),a=this.wrapDifference(t.target,-this.x);a/=n,t.setOpacity(1-a),i.setOpacity(a);var o=e.a;this.isDragging&&(o=.5<a?e.a:e.b),null!=this.fadeHideIndex&&this.fadeHideIndex!=o&&this.fadeHideIndex!=e.a&&this.fadeHideIndex!=e.b&&this.slides[this.fadeHideIndex].setOpacity(0),this.fadeHideIndex=o}},i.getFadeIndexes=function(){return this.isDragging||this.didDragEnd?this.options.wrapAround?this.getFadeDragWrapIndexes():this.getFadeDragLimitIndexes():{a:this.fadeIndex,b:this.selectedIndex}},i.getFadeDragWrapIndexes=function(){var e=this.slides.map((function(e,t){return this.getSlideDistance(-this.x,t)}),this),t=e.map((function(e){return Math.abs(e)})),i=Math.min.apply(Math,t),n=t.indexOf(i),a=e[n],o=this.slides.length,s=0<=a?1:-1;return{a:n,b:l.modulo(n+s,o)}},i.getFadeDragLimitIndexes=function(){for(var e=0,t=0;t<this.slides.length-1;t++){var i=this.slides[t];if(-this.x<i.target)break;e=t}return{a:e,b:e+1}},i.wrapDifference=function(e,t){var i=t-e;if(!this.options.wrapAround)return i;var n=i+this.slideableWidth,a=i-this.slideableWidth;return Math.abs(n)<Math.abs(i)&&(i=n),Math.abs(a)<Math.abs(i)&&(i=a),i};var r=i._getWrapShiftCells;i._getWrapShiftCells=function(){this.options.fade||r.apply(this,arguments)};var c=i.shiftWrapCells;return i.shiftWrapCells=function(){this.options.fade||c.apply(this,arguments)},e})),(function(f){if("undefined"!=typeof window){var e,p=0,m=!1,l=!1,b="message".length,C="[iFrameSizer]",x=C.length,S=null,a=window.requestAnimationFrame,h={max:1,scroll:1,bodyScroll:1,documentElementScroll:1},_={},i=null,g={autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",onClose:function(){return!0},onClosed:function(){},onInit:function(){},onMessage:function(){D("onMessage function not defined")},onResized:function(){},onScroll:function(){return!0}},F={};window.jQuery&&((e=window.jQuery).fn?e.fn.iFrameResize||(e.fn.iFrameResize=function(i){return this.filter("iframe").each((function(e,t){s(t,i)})).end()}):A("","Unable to bind to jQuery, it is not fully loaded.")),"function"==typeof define&&define.amd?define([],u):"object"==typeof module&&"object"==typeof module.exports&&(module.exports=u()),window.iFrameResize=window.iFrameResize||u()}function $(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function I(e,t,i){e.addEventListener(t,i,!1)}function z(e,t,i){e.removeEventListener(t,i,!1)}function n(e){return _[e]?_[e].log:m}function T(e,t){o("log",e,t,n(e))}function A(e,t){o("info",e,t,n(e))}function D(e,t){o("warn",e,t,!0)}function o(e,t,i,n){!0===n&&"object"==typeof window.console&&console[e](function(e){return C+"["+(i="Host page: "+(t=e),window.top!==window.self&&(i=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+t:"Nested host page: "+t),i)+"]";var t,i}(t),i)}function t(t){function r(){e("Height"),e("Width"),P((function(){W(y),R(k),m("onResized",y)}),y,"init")}function e(e){var t=Number(_[k]["max"+e]),i=Number(_[k]["min"+e]),n=e.toLowerCase(),a=Number(y[n]);T(k,"Checking "+n+" is in range "+i+"-"+t),a<i&&(a=i,T(k,"Set "+n+" to min value")),t<a&&(a=t,T(k,"Set "+n+" to max value")),y[n]=""+a}function c(e){return w.substr(w.indexOf(":")+b+e)}function d(e,t){var i;F[i=t]||(F[i]=setTimeout((function(){F[i]=null,B("Send Page Info","pageInfo:"+(function(){var e=document.body.getBoundingClientRect(),t=y.iframe.getBoundingClientRect();return JSON.stringify({iframeHeight:t.height,iframeWidth:t.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(t.top-e.top,10),offsetLeft:parseInt(t.left-e.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})})(),e,t)}),32))}function u(e){var t=e.getBoundingClientRect();return N(k),{x:Math.floor(Number(t.left)+Number(S.x)),y:Math.floor(Number(t.top)+Number(S.y))}}function f(e){var t=e?u(y.iframe):{x:0,y:0},i={x:Number(y.width)+t.x,y:Number(y.height)+t.y};T(k,"Reposition requested from iFrame (offset x:"+t.x+" y:"+t.y+")"),window.top!==window.self?window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](i.x,i.y):D(k,"Unable to scroll to requested position, window.parentIFrame not found"):(S=i,p(),T(k,"--"))}function p(){!1!==m("onScroll",S)?R(k):q()}function m(e,t){return O(k,e,t)}var i,n,a,o,s,l,h,g,$,v,w=t.data,y={},k=null;"[iFrameResizerChild]Ready"===w?(function(){for(var e in _)B("iFrame requested init",j(e),_[e].iframe,e)})():C===(""+w).substr(0,x)&&w.substr(x).split(":")[0]in _?(l=(s=w.substr(x).split(":"))[1]?parseInt(s[1],10):0,h=_[s[0]]&&_[s[0]].iframe,g=getComputedStyle(h),y={iframe:h,id:s[0],height:l+(v=g,"border-box"!==v.boxSizing?0:(v.paddingTop?parseInt(v.paddingTop,10):0)+(v.paddingBottom?parseInt(v.paddingBottom,10):0))+($=g,"border-box"!==$.boxSizing?0:($.borderTopWidth?parseInt($.borderTopWidth,10):0)+($.borderBottomWidth?parseInt($.borderBottomWidth,10):0)),width:s[2],type:s[3]}
2,k=y.id,_[k]&&(_[k].loaded=!0),(o=y.type in{true:1,false:1,undefined:1})&&T(k,"Ignoring init message from meta parent page"),!o&&(a=!0,_[n=k]||(a=!1,D(y.type+" No settings for "+n+". Message was: "+w)),a)&&(T(k,"Received: "+w),i=!0,null===y.iframe&&(D(k,"IFrame ("+y.id+") not found"),i=!1),i&&(function(){var e,i=t.origin,n=_[k]&&_[k].checkOrigin;if(n&&""+i!="null"&&!(n.constructor===Array?(function(){var e=0,t=!1;for(T(k,"Checking connection is from allowed list of origins: "+n);e<n.length;e++)if(n[e]===i){t=!0;break}return t})():(e=_[k]&&_[k].remoteHost,T(k,"Checking connection is from: "+e),i===e)))throw new Error("Unexpected message received from: "+i+" for "+y.iframe.id+". Message was: "+t.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0})()&&(function(){switch(_[k]&&_[k].firstRun&&_[k]&&(_[k].firstRun=!1),y.type){case"close":M(y.iframe);break;case"message":o=c(6),T(k,"onMessage passed: {iframe: "+y.iframe.id+", message: "+o+"}"),m("onMessage",{iframe:y.iframe,message:JSON.parse(o)}),T(k,"--");break;case"autoResize":_[k].autoResize=JSON.parse(c(9));break;case"scrollTo":f(!1);break;case"scrollToOffset":f(!0);break;case"pageInfo":d(_[k]&&_[k].iframe,k),a=k,s("Add ",I),_[a]&&(_[a].stopPageInfo=l);break;case"pageInfoStop":_[k]&&_[k].stopPageInfo&&(_[k].stopPageInfo(),delete _[k].stopPageInfo);break;case"inPageLink":t=c(9).split("#")[1]||"",i=decodeURIComponent(t),(n=document.getElementById(i)||document.getElementsByName(i)[0])?(e=u(n),T(k,"Moving to in page link (#"+t+") at x: "+e.x+" y: "+e.y),S={x:e.x,y:e.y},p(),T(k,"--")):window.top!==window.self?window.parentIFrame?window.parentIFrame.moveToAnchor(t):T(k,"In page link #"+t+" not found and window.parentIFrame not found"):T(k,"In page link #"+t+" not found");break;case"reset":E(y);break;case"init":r(),m("onInit",y.iframe);break;default:r()}var e,t,i,n,a,o;function s(t,i){function n(){_[a]?d(_[a].iframe,a):l()}["scroll","resize"].forEach((function(e){T(a,t+e+" listener for sendPageInfo"),i(window,e,n)}))}function l(){s("Remove ",z)}})())):A(k,"Ignored: "+w)}function O(e,t,i){var n=null,a=null;if(_[e]){if("function"!=typeof(n=_[e][t]))throw new TypeError(t+" on iFrame["+e+"] is not a function");a=n(i)}return a}function v(e){var t=e.id;delete _[t]}function M(e){var t=e.id;if(!1!==O(t,"onClose",t)){T(t,"Removing iFrame: "+t);try{e.parentNode&&e.parentNode.removeChild(e)}catch(e){D(e)}O(t,"onClosed",t),T(t,"--"),v(e)}else T(t,"Close iframe cancelled by onClose event")}function N(e){null===S&&T(e,"Get page position: "+(S={x:window.pageXOffset!==f?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==f?window.pageYOffset:document.documentElement.scrollTop}).x+","+S.y)}function R(e){null!==S&&(window.scrollTo(S.x,S.y),T(e,"Set page position: "+S.x+","+S.y),q())}function q(){S=null}function E(e){T(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame")),N(e.id),P((function(){W(e),B("reset","reset",e.iframe,e.id)}),e,"reset")}function W(o){function e(e){var t;t=e,o.id?(o.iframe.style[t]=o[t]+"px",T(o.id,"IFrame ("+s+") "+t+" set to "+o[t]+"px")):T("undefined","messageData id not set"),(function(e){function t(){Object.keys(_).forEach((function(e){function t(e){return"0px"===(_[i]&&_[i].iframe.style[e])}var i;_[i=e]&&null!==_[i].iframe.offsetParent&&(t("height")||t("width"))&&B("Visibility change","resize",_[i].iframe,i)}))}function i(e){T("window","Mutation observed: "+e[0].target+" "+e[0].type),r(t,16)}var n,a;l||"0"!==o[e]||(l=!0,T(s,"Hidden iFrame detected, creating visibility listener"),(a=$())&&(n=document.querySelector("body"),new a(i).observe(n,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0})))})(e)}var s=o.iframe.id;_[s]&&(_[s].sizeHeight&&e("height"),_[s].sizeWidth&&e("width"))}function P(e,t,i){i!==t.type&&a&&!window.jasmine?(T(t.id,"Requesting animation frame"),a(e)):e()}function B(e,t,i,n,a){var o,s=!1;n=n||i.id,_[n]&&(i&&"contentWindow"in i&&null!==i.contentWindow?(o=_[n]&&_[n].targetOrigin,T(n,"["+e+"] Sending msg to iframe["+n+"] ("+t+") targetOrigin: "+o),i.contentWindow.postMessage(C+t,o)):D(n,"["+e+"] IFrame("+n+") not found"),a&&_[n]&&_[n].warningTimeout&&(_[n].msgTimeout=setTimeout((function(){!_[n]||_[n].loaded||s||(s=!0,D(n,"IFrame has not responded within "+_[n].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))}),_[n].warningTimeout)))}function j(e){return e+":"+_[e].bodyMarginV1+":"+_[e].sizeWidth+":"+_[e].log+":"+_[e].interval+":"+_[e].enablePublicMethods+":"+_[e].autoResize+":"+_[e].bodyMargin+":"+_[e].heightCalculationMethod+":"+_[e].bodyBackgroun
2d+":"+_[e].bodyPadding+":"+_[e].tolerance+":"+_[e].inPageLinks+":"+_[e].resizeFrom+":"+_[e].widthCalculationMethod}function s(i,e){var t,n,a,o,s,l,r,c=(""===(n=i.id)&&(i.id=(t=e&&e.id||g.id+p++,null!==document.getElementById(t)&&(t+=p++),n=t),m=(e||{}).log,T(n,"Added missing iframe ID: "+n+" ("+i.src+")")),n);function d(e){1/0!==_[c][e]&&0!==_[c][e]&&(i.style[e]=_[c][e]+"px",T(c,"Set "+e+" = "+_[c][e]+"px"))}function u(e){if(_[c]["min"+e]>_[c]["max"+e])throw new Error("Value for min"+e+" can not be greater than max"+e)}c in _&&"iFrameResizer"in i?D(c,"Ignored iFrame, already setup."):(l=(l=e)||{},_[c]={firstRun:!0,iframe:i,remoteHost:i.src&&i.src.split("/").slice(0,3).join("/")},(function(){if("object"!=typeof l)throw new TypeError("Options is not an object")})(),Object.keys(l).forEach((function(e){var t=e.split("Callback");if(2===t.length){var i="on"+t[0].charAt(0).toUpperCase()+t[0].slice(1);this[i]=this[e],delete this[e],D(c,"Deprecated: '"+e+"' has been renamed '"+i+"'. The old method will be removed in the next major version.")}}),l),(function(e){for(var t in g)Object.prototype.hasOwnProperty.call(g,t)&&(_[c][t]=Object.prototype.hasOwnProperty.call(e,t)?e[t]:g[t])})(l),_[c]&&(_[c].targetOrigin=!0===_[c].checkOrigin?""===(r=_[c].remoteHost)||null!==r.match(/^(about:blank|javascript:|file:\/\/)/)?"*":r:"*"),(function(){switch(T(c,"IFrame scrolling "+(_[c]&&_[c].scrolling?"enabled":"disabled")+" for "+c),i.style.overflow=!1===(_[c]&&_[c].scrolling)?"hidden":"auto",_[c]&&_[c].scrolling){case"omit":break;case!0:i.scrolling="yes";break;case!1:i.scrolling="no";break;default:i.scrolling=_[c]?_[c].scrolling:"no"}})(),u("Height"),u("Width"),d("maxHeight"),d("minHeight"),d("maxWidth"),d("minWidth"),"number"!=typeof(_[c]&&_[c].bodyMargin)&&"0"!==(_[c]&&_[c].bodyMargin)||(_[c].bodyMarginV1=_[c].bodyMargin,_[c].bodyMargin=_[c].bodyMargin+"px"),a=j(c),(s=$())&&(o=s,i.parentNode&&new o(function(e){e.forEach((function(e){Array.prototype.slice.call(e.removedNodes).forEach((function(e){e===i&&M(i)}))}))}).observe(i.parentNode,{childList:!0})),I(i,"load",(function(){var e,t;B("iFrame.onload",a,i,f,!0),e=_[c]&&_[c].firstRun,t=_[c]&&_[c].heightCalculationMethod in h,!e&&t&&E({iframe:i,height:0,width:0,type:"init"})})),B("init",a,i,f,!0),_[c]&&(_[c].iframe.iFrameResizer={close:M.bind(null,_[c].iframe),removeListeners:v.bind(null,_[c].iframe),resize:B.bind(null,"Window resize","resize",_[c].iframe),moveToAnchor:function(e){B("Move to anchor","moveToAnchor:"+e,_[c].iframe,c)},sendMessage:function(e){B("Send Message","message:"+(e=JSON.stringify(e)),_[c].iframe,c)}}))}function r(e,t){null===i&&(i=setTimeout((function(){i=null,e()}),t))}function c(){"hidden"!==document.visibilityState&&(T("document","Trigger event: Visiblity change"),r((function(){d("Tab Visable","resize")}),16))}function d(i,n){Object.keys(_).forEach((function(e){var t;_[t=e]&&"parent"===_[t].resizeFrom&&_[t].autoResize&&!_[t].firstRun&&B(i,n,_[e].iframe,e)}))}function u(){function i(e,t){t&&(function(){if(!t.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==t.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+t.tagName+">")}(),s(t,e),n.push(t))}var n;return (function(){var e,t=["moz","webkit","o","ms"];for(e=0;e<t.length&&!a;e+=1)a=window[t[e]+"RequestAnimationFrame"];a?a=a.bind(window):T("setup","RequestAnimationFrame not supported")})(),I(window,"message",t),I(window,"resize",(function(){T("window","Trigger event: resize"),r((function(){d("Window resize","resize")}),16)})),I(document,"visibilitychange",c),I(document,"-webkit-visibilitychange",c),function(e,t){switch(n=[],e&&e.enablePublicMethods&&D("enablePublicMethods option has been removed, public methods are now always available in the iFrame"),typeof t){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(t||"iframe"),i.bind(f,e));break;case"object":i(e,t);break;default:throw new TypeError("Unexpected data type ("+typeof t+")")}return n}}})(),$((function(){$((function(){$("a[href*=\\#]:not([href=\\#])").click((function(){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var e=$
2(this.hash);if((e=e.length?e:$("[name="+this.hash.slice(1)+"]")).length)return $("html,body").animate({scrollTop:e.offset().top},1e3),!1}}))}))})),$((function(){$(".viewport_check:not(.in_viewport)").waypoint((function(){$(this.element).addClass("in_viewport"),this.destroy()}),{offset:"90%"})})),$((function(){var e;function t(){$(".img-mobile").children(".background-image").addClass("loaded"),$(".img-tablet-port").children(".background-image").addClass("loaded"),$(".img-tablet-land").children(".background-image").addClass("loaded"),$(".img-desktop").children(".background-image").addClass("loaded")}$(".fci-hero")[0]&&((e=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)<=768?$(".img-mobile").children(".background-image").waitForImages((function(){$(this).addClass("loaded animated fadeIn slow")})):e<=1024?$(".img-tablet-port").children(".background-image").waitForImages((function(){$(this).addClass("loaded animated fadeIn slow")})):e<=1280?$(".img-tablet-land").children(".background-image").waitForImages((function(){$(this).addClass("loaded animated fadeIn slow")})):$(".img-desktop").children(".background-image").waitForImages((function(){$(this).addClass("loaded animated fadeIn slow")})),setTimeout((function(){t()}),3e3))}));

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.