PageSourceSearch

https://thebucks.co/javascript/bundle.js?m=1782094251

js thebucks.co collected 2026-10-05 01:49:31 UTC 15,414 bytes, 1 lines download raw bytes

1function activityQuickViewShow(t){var e=$(t),i=e.data("location-variant-id");if(i){var a=e.data("quick-view-url");e.addClass("btn--ellipsis"),e.find(".btn-quick-view-text").addClass("hidden"),$.ajax(a+"/"+i,{success:function(t){e.removeClass("btn--ellipsis"),e.find(".btn-quick-view-text").removeClass("hidden");var i=$("#activity-quick-view-modal");if(i){$("body").addClass("overflow-hidden"),i.addClass("bg-modal-black-90"),i.removeClass("pointer-events-none");var a=$("#activity-quick-view-details");a&&a.removeClass("invisible");var o=$("#activity-quick-view-details-content");o&&o.html(t)}},error:function(t){e.find(".btn-quick-view-text").removeClass("hidden"),e.removeClass("btn--ellipsis")}})}else{var o=$('#location-picker, select[name="location"]').closest(".select");$("html, body").animate({scrollTop:0},(function(){o.addClass("alert")}))}}function activityQuickViewHide(){var t=$("#activity-quick-view-modal");if(t){t.removeClass("bg-modal-black-90"),t.addClass("pointer-events-none"),$("body").removeClass("overflow-hidden");
1var e=$("#activity-quick-view-details");e&&e.addClass("invisible");var i=$("#activity-quick-view-details-content");i&&i.html("")}}!function(t,e,i){var a=i(t),o=i(e);function n(){jQuery("div.quantity:not(.buttons_added), td.quantity:not(.buttons_added)").each((function(t,e){var i=jQuery(e);i.addClass("buttons_added"),i.children().first().before('<input type="button" value="-" class="minus" />'),i.children().last().after('<input type="button" value="+" class="plus" />')}))}function s(t,e){sessionStorage.setItem(t,e)}function r(t){sessionStorage.removeItem(t)}function l(t){return sessionStorage.getItem(t)}function d(t){r("selectedLocation"),s("selectedBaseLocation",t)}function c(){var e=new URLSearchParams(t.location.search).get("location");return null==e?l("selectedBaseLocation"):e}function u(t){t&&t.each((function(){i(this).addClass("hidden")}))}function h(t){t&&t.each((function(){i(this).removeClass("hidden")}))}if(o.ready((function(){i(".slider--location").each((function(t){var e=i(this).find(".slick-dots"),a=e.children().length;e.find("button").append("/"+a)})),function(){if(i(".post-slider").length){var t=i(".post-slider .slick-dots li").length;i(".post-slider .slick-dots button").append(" / "+t)}}(),function(){o.on("click",".btn--add-to-quote",(function(t){if(i(this).attr("href").endsWith("//")||i(this).attr("href").endsWith("/0/")){var e=i('#location-picker, select[name="location"]').closest(".select");i("html, body").animate({scrollTop:0},(function(){e.addClass("alert")}))}else v(i(this).attr("href")),i(".btn[data-id="+i(this).attr("data-id")+"]").each((function(){var t="1"===i(this).attr("data-added"),e=i(this).hasClass("btn--main-quote");t?(i(this).attr("data-added","0"),i("option[value="+i(this).attr("data-id")+"]").attr("data-added","0"),i(this).attr("href","/api/enquiry/add/"+i(this).attr("data-id")),i(this).hasClass("btn--add-to-quote-quick-view")?i(this).text("Add to quote"):i(this).text(e?"ADD TO QUOTE":"ADD +"),i(this).removeClass("btn--red")):(i("option[value="+i(this).attr("data-id")+"]").attr("data-added","1"),i(this).attr("data-added","1"),i(this).attr("href","/api/enquiry/remove/"+i(this).attr("data-id")),i(this).hasClass("btn--add-to-quote-quick-view")?i(this).text("Remove from quote"):i(this).text(e?"REMOVE FROM QUOTE":"REMOVE -"),i(this).addClass("btn--red"))}));return!1})),o.on("change",".checkbox input",(function(t){var e=i(this).attr("value");v("/api/enquiry/remove/"+e+"/"),i(".btn[data-id="+e+"]").each((function(){var t=i(this).hasClass("btn--main-quote");i(this).attr("data-added","0"),i(this).attr("href","/api/enquiry/add/"+e),i(this).text(t?"ADD TO QUOTE":"ADD +"),i(this).removeClass("btn--red")})),i("option[value="+e+"]").each((function(){i(this).attr("data-added","0")}))}));var e=i("#quote-form form");e.on("submit",(function(a){var o=e.find("button");return o.addClass("disabled").addClass("btn--spinning"),o.html('<div class="spinner"><div></div><div></div><div></div><div></div></div>'),e.serializeArray().filter((function(t){return t.name.includes("Prod")})).length>0&&o.after("<p class='button__note'>Hold tight for 10 seconds, your quote will be displayed shortly</p>"),grecaptcha.ready((function(){var a=e.attr("action");grecaptcha.execute(t.reCaptchaKey,{action:a}).then((function(o){i("#g-recaptcha-response").val(o),i.ajax(a,{method:"POST",data:e.serialize(),success:function(a){e.hide(),v("/api/enquiry/product-list/"),t.dataLayer=t.dataLayer||[],t.dataLayer.push({formLocation:t.location.href.split("?")[0],event:"quote_success"}),a.quote&&a.quote.productCount>0&&a.quote.link?t.location.href=a.quote.link:(i(".enquire-heading h3").text("Congratulations!"),i(".enquire-heading p").text("We have sent you an email with further details, please check your spam folder and ensure to mark this email as safe. Our planners will review your request and be in touch shortly with a plan."),e.remove())},error:function(){alert("An error occured while submitting your request. Please refresh the page and try again. If this error persists, please contact us.")}})}))})),!1})),v("/api/enquiry/product-list/");var a=i("#quote-form .form__btn-dropdown");a.on("click",(function(){a.parent().parent().find(".form__body").slideToggle(),a.toggleClass("expanded"),Cookies.set("quote_expanded",a.hasClass("expanded"))})),"false"!==Cookies.get("quote_expanded")&&a.trigger("click")}(),i(".field--datepicker").daterangepicker({autoUpdateInput:!0,autoApply:!0,locale:{format:"DD/MM/YYYY"}})})),a.resize((function(){i(".section-posts").length&&function(){if(!i(".section-posts").length)return;var t=i(".section-posts .section__content"),e=i(".section-posts .posts-scroll .posts");t.css("height","auto"),e.css("width","auto"),e.hasClass("slick-initialized")&&e.slick("unslick");if(o.width()>767){var a=0;e.find(".post").each((function(){a+=i(this).outerWidth(!0)})),e.css("width",a);var n=i(".section-posts .posts-scroll").outerHeight();t.css("height",n)}else e.slick({arrows:!1}
1)}()})).resize(),a.scroll((function(){i(this).scrollTop()?i(".header").addClass("fixed"):i(".header").removeClass("fixed")})).scroll(),a.on("load",(function(){a.resize(),a.scroll()})),i((function(){i("select:not(.field)").selectric()})),i(".form--radios").on("click",(function(){i("#check-accomodation:checked").length?i(".accomodation").slideDown().find("input").prop("required",!0):i(".accomodation").slideUp().find("input").prop("required",!1)})),i(".slider--location .slider__slides").slick({infinite:!1,arrows:!0,slidesToShow:5,slidesToScroll:1,responsive:[{breakpoint:1024,settings:{slidesToShow:3}},{breakpoint:767,settings:{slidesToShow:1,dots:!0}}]}),i(".slider--testimonial .slider__slides").on("init",(function(){var t=i(this).find(".testimonial__inner"),e=Math.max.apply(null,t.map((function(){return i(this).height()})).get());t.height(e)})).slick({infinite:!1,arrows:!0,slidesToShow:3,slidesToScroll:1,responsive:[{breakpoint:767,settings:{slidesToShow:1}}]}),String.prototype.getDecimals||(String.prototype.getDecimals=function(){var t=(""+this).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}),jQuery(e).ready((function(){n()})),jQuery(e).on("updated_wc_div",(function(){n()})),jQuery(e).on("click",".plus, .minus",(function(){var t=jQuery(this).closest(".quantity").find(".qty"),e=parseFloat(t.val()),i=parseFloat(t.attr("max")),a=parseFloat(t.attr("min")),o=t.attr("step");e&&""!==e&&"NaN"!==e||(e=0),""!==i&&"NaN"!==i||(i=""),""!==a&&"NaN"!==a||(a=0),"any"!==o&&""!==o&&void 0!==o&&"NaN"!==parseFloat(o)||(o=1),jQuery(this).is(".plus")?i&&e>=i?t.val(i):t.val((e+parseFloat(o)).toFixed(o.getDecimals())):a&&e<=a?t.val(a):e>0&&t.val((e-parseFloat(o)).toFixed(o.getDecimals())),t.trigger("change")})),i(".header-menu").on("click",(function(t){i(".mobile-menu").toggleClass("expanded"),t.preventDefault()})),i(".hasdropdown > a").on("click",(function(t){a.width()<1023&&(t.preventDefault(),i(this).parent().find(".dropdown").slideToggle())})),i(".featured-slider").slick({arrows:!0,dots:!0,responsive:[{breakpoint:767,settings:{arrows:!1}
1}]}),i(".slider--news-slider .slider__slides").slick({infinite:!1,dots:!0,slidesToShow:3,slidesToScroll:1,lazyLoad:"ondemand",responsive:[{breakpoint:1024,settings:{slidesToShow:2}},{breakpoint:767,settings:{slidesToShow:2,arrows:!1}},{breakpoint:550,settings:{slidesToShow:1,arrows:!1}}]}).on("setPosition",(function(t,e){e.$slides.css("height",e.$slideTrack.height()+"px")})),i(".scroll").click((function(t){t.preventDefault();var e=i(this).attr("href").split("#")[1],a=i("#"+e).offset().top;i("body, html").animate({scrollTop:a},1e3)})),i(".location-big").length&&d(i(".location-big").data("location")),i('select[name="location"]').length&&(i('select[name="location"]').on("change",(function(){if(this.value){d(i('select[name="location"] option:selected').data("location"));var t=i('select[name="location"] option:selected').data("location"),e=i(".tag-"+t);u(i(".location__tag")),h(e)}})),c())){i('select[name="location"]').val(c()).change();var p=c(),f=i(".tag-"+p);u(i(".location__tag")),h(f)}function v(t){var e=i("#quote-form");if(e.length){var a=e.find(".form__dropdown"),o=e.find(".form__body");a.addClass("loading"),i.ajax(t,{success:function(t){o.html(t),a.removeClass("loading");var e=o.find(".checkbox").length,n=i(".btn--get-a-quote"),s=n.find(".btn__quotenumber");s.text(e),e?(a.show(),s.show(),n.addClass("btn--quote")):(a.hide(),s.hide(),n.removeClass("btn--quote"))}})}}i("#location-picker").length&&function(){var e=i("#product-list"),a=i("#location-picker").val(),o=i("#field-time").val(),n=i("#field-CATEGORY").val(),s=i("#field-sort").val(),r=1;function l(){a=a||"all";var t=[location.protocol,"//",location.host,location.pathname].join("")+"/view-more/"+a+"/"+r;params={time:o,category:n,sort:s},t+="?"+i.param(params),i.ajax(t,{success:function(t){e.append(t),i("#show-more-products")&&i("#show-more-products").click((function(t){t.preventDefault(),i(this).parent().remove(),r+=1,l()})),1==r&&h()},error:function(){console.error("ajax error")}})}function u(){r=1,e.empty(),l()}function h(){t&&t.scrollTo(0,0)}i("#location-picker").on("change",(function(){a=this.value,d(this.value),i(this).closest(".select").removeClass("alert"),u()})),i("#field-time").on("change",(function(){o=this.value,u()})),i("#field-CATEGORY").on("change",(function(){n=this.value,u()})),i("#field-sort").on("change",(function(){s=this.value,u()}));var p=c();p?(a=p,setTimeout((function(){i("#location-picker").val(c()).trigger("change"),i("#location-picker").prop("selectedIndex",i("#location-picker")[0].selectedIndex).selectric("refresh")}),300)):u(),h()}(),i('.filter select[name="location"]').on("change",(function(t){var e=parseInt(i(this).val())||0,a=i(this).children("option:selected").attr("data-people")||i(this).attr("data-people")||"You tell us!",o=i(this).children("option:selected").attr("data-price")||i(this).attr("data-price")||"On Request",n=i(this).children("option:selected").attr("data-content")||i(this).attr("data-content"),s=i(this).children("option:selected").attr("data-time")||i(this).attr("data-time")||"On Request",r=i(this).children("option:selected").attr("data-specification")||i(this).attr("data-specification"),l=e?i(this).find("option:selected").text():"<b>Select...</b>",d="1"===i(this).find("option:selected").attr("data-added"),c=i(this).children("option:selected").attr("data-what-to-expect")||i(this).attr("data-what-to-expect");"<b>Select...</b>"!==l&&i(".list-what-to-expect").replaceWith(c);var u=i(this).children("option:selected").attr("data-keep-in-mind")||i(this).attr("data-keep-in-mind");"<b>Select...</b>"!==l&&(i(".location-specific-list").html(u),i(".location-specific-list .available-in").remove());var h=i(this).children("option:selected").attr("data-images-html")||i(this).attr("data-images-html");if(h)if(0===i(".details__product--images").find("figure.video").length)i(".details__product--images").replaceWith(h);else{var p=i("<div>").html(h),f=p.find("figure:first img").prop("outerHTML");f&&i(".details__product--images figure.video img").replaceWith(f),i(".details__product--images figure:not(.video)").remove(),p.find("figure:not(:first)").each((function(){i(".details__product--images").append(i(this).clone())})),"function"==typeof reinitializeYouTubePlayer&&reinitializeYouTubePlayer()}i("#destination").html(l),i(".list-specification").replaceWith(r),i("#people").text(a),i("#price").text(o),i("#time").text(s),i(".details__info").html(n),i(this).closest(".select").removeClass("alert");var v=i(".details__actions .btn--add-to-quote"),m=v.attr("href");m=m.replace(/\/\d+\/$/,"/"+e+"/"),d?(v.attr("href","/api/enquiry/remove/"+e+"/"),v.addClass("btn--red"),v.text("REMOVE FROM QUOTE")):(v.attr("href","/api/enquiry/add/"+e+"/"),v.removeClass("btn--red"),v.text("ADD TO QUOTE")),v.attr("data-added",d?"1":"0"),v.attr("data-id",e);var g=i("#related-activities");if(e){v.removeClass("disabled");var y=[location.protocol,"//",location.host,location.pathname].join("")+"/view-related/"+e;i.ajax(y,{success:function(t){g.empty(),g.append(t)},error:function(t){console.log(t)}})}else v.addClass("disabled"),g.empty(),g.append(i('<p style="width: 100%;text-align: center;margin-bottom: 80px;" >Select a location to view more activities</p>'))})).trigger("change"),i(".btn--get-a-quote").on("click",(function(t){t.preventDefault(),e.getElementById("quote-form").scrollIntoView({behavior:"smooth"})})),i(".footer__quote button").on("click",(function(e){var a=i(".footer__quote input"),o=a.val();fetch("/api/quote/"+o).then((function(t){return t.json()})).then((function(e){null===e.reference?(alert("This quote does not exist. Please try again."),a.val("")):t.location.href=e.link}))}))}(window,document,window.jQuery),function(){var t=document.getElementById("youtubeRef"),e=document.createElement("script");e.src="https://www.youtube.com/iframe_api";var i,a=document.getElementsByTagName("script")[0];function o(t){var e=document.querySelector("figure.video img"),i=document.querySelector("figure.video"),a=!1,o=!1;var n=0;e.onmousedown=function(){a=!1,o=!0},e.onmousemove=function(t){o&&(n+=t.movementX,a=!0)},e.onmouseup=function(){(!a||a&&Math.abs(n)<20)&&(i.classList.add("active"),t.target.playVideo()),o=!1}}a.parentNode.insertBefore(e,a),window.onYouTubeIframeAPIReady=function(){t&&(i=new YT.Player("youtubeRef",{height:"390",width:"640",videoId:t.getAttribute("data-id"),events:{onReady:o}}))},window.reinitializeYouTubePlayer=function(){(t=document.getElementById("youtubeRef"))&&(i&&i.destroy&&i.destroy(),i=new YT.Player("youtubeRef",{height:"390",width:"640",videoId:t.getAttribute("data-id"),events:{onReady:o}}))}}();var i,acc=document.querySelectorAll(".accordion-header");for(i=0;i<acc.length;i++)acc[i].addEventListener("click",(function(){this.parentElement.classList.toggle("active"),this.classList.toggle("active"),$(this.nextElementSibling).slideToggle()}));if($(".section-posts-news").length){var _params=new URLSearchParams(window.location.search),categoryId=_params.get("category"),links=document.querySelectorAll(".category-filter .filter__link");links.forEach((function(t){var e=t.getAttribute("data-category");categoryId===e&&(t.classList.add("active"),console.log("scrolling"),$("html, body").animate({scrollTop:$(".category-filter").offset().top-100},0))})),categoryId||document.getElementById("all-categories").classList.add("active")}

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.