PageSourceSearch

https://happytravels.com.au/wp-content/themes/bonvoyage-child/build/app.min.js?ver=1791304625

js happytravels.com.au collected 2026-10-06 20:00:32 UTC 66,086 bytes, 2 lines download raw bytes

1/*! For license information please see app.min.js.LICENSE.txt */
2(()=>{var e={779(){let e=document.querySelector(".ht-video-box video");if(e){let t=document.querySelector(".ht-video-box .review-intro__right__play"),i=e.querySelector("source"),o=i.getAttribute("src"),n=i.getAttribute("data-breeze");!o&&n&&(i.setAttribute("src",n),e.load()),t&&i&&(t.addEventListener("click",function(){e.play()}),e.addEventListener("play",()=>t.classList.add("video_playing")),e.addEventListener("pause",()=>t.classList.remove("video_playing")),e.addEventListener("ended",()=>t.classList.remove("video_playing")),e.addEventListener("click",()=>{e.paused?e.play():e.pause()}))}var t=document.querySelectorAll("[data-fiji-accordion]");t.length||t.forEach(function(e){var t=e.querySelectorAll(".fiji-main-intro__accordion-item");function i(e,t){var i=e.getAttribute("aria-controls"),o=i?document.getElementById(i):null;e.setAttribute("aria-expanded",t?"true":"false"),o&&(o.hidden=!t)}t.forEach(function(e){e.addEventListener("click",function(){var o="true"===e.getAttribute("aria-expanded");t.forEach(function(e){i(e,!1)}),i(e,!o)})})})},8(){!function(e,t,o,n){let a="comboTree";const s={source:[],isMultiple:!1,cascadeSelect:!1,selected:[],collapse:!1,selectAll:!1,animationTime:200};function r(t,i){this.options=e.extend({},s,i),this._defaults=s,this._name=a,this.constructorFunc(t,i)}r.prototype.constructorFunc=function(t,i){this.input=t,this._input=e(t),this.init()},r.prototype.init=function(){this.id="ct-"+Math.floor(999999*Math.random()),this._input.addClass("ct-input-box"),this._input.wrap('<div id="'+this.id+'-wrapper" class="ct-wrapper"></div>'),this._input.wrap('<div class="ct-input-wrapper"></div>'),this._wrapper=e("#"+this.id+"-wrapper"),this._arrowBtn=e('<button class="ct-arrow-btn" type="button">⯆</button>'),this._input.after(this._arrowBtn),this._wrapper.append('<div class="ct-drop-down-container"></div>'),this._dropDownContainer=this._wrapper.find(".ct-drop-down-container"),this._dropDownContainer.html(this.createSourceHTML()),this._filterInput=this.options.isMultiple?this._wrapper.find("#"+this.id+"-multi-filter"):null,this._selectAllInput=this.options.isMultiple&&this.options.selectAll?this._wrapper.find(".select-all-input"):null,this._sourceUl=this._wrapper.find(".ct-source-ul-main"),this._listItems=this._dropDownContainer.find("li"),this._listItemsTitle=this._dropDownContainer.find("span.ct-list-item-title"),this._selectedItem={},this._selectedItems=[],this.processSelected(),this.bindings()},r.prototype.unbind=function(){this._arrowBtn.off("click"),this._input.off("click"),this._listItems.off("click"),this._listItemsTitle.off("click"),this._listItemsTitle.off("mousemove"),this._input.off("keyup"),this._input.off("keydown"),this._input.off("mouseup."+this.id),e(o).off("mouseup."+this.id)},r.prototype.destroy=function(){this.unbind(),this._wrapper.before(this._input),this._wrapper.remove(),this._input.removeData("plugin_"+a)},r.prototype.removeSourceHTML=function(){this._dropDownContainer.html("")},r.prototype.createSourceHTML=function(){let e="";return this.options.isMultiple&&(e+=this.createFilterHTMLForMultiSelect()),e+=this.createSourceSubItemsHTML(this.options.source,!1),e},r.prototype.createFilterHTMLForMultiSelect=function(){return'<input id="'+this.id+'-multi-filter" type="text" class="ct-multiples-filter" placeholder="Type to filter"/>'},r.prototype.createSelectAllHTMLForMultiSelect=function(){return'<li id="ct-select-all-li"><label class="select-all"><input type="checkbox" id="'+this.id+'-select-all-input"class="select-all-input">[Select All]</label></li>'},r.prototype.createSourceSubItemsHTML=function(e,t,i=!1){let o='<ul id="'+this.id+"-source-ul"+(t||"-main")+'" class="ct-source-ul-'+(t?"parent":"main")+'" style="'+((this.options.collapse||i)&&t?"display:none;":"")+'">';!1===t&&this.options.isMultiple&&this.options.selectAll&&(o+=this.createSelectAllHTMLForMultiSelect());for(let t=0;t<e.length;t++)o+=this.createSourceItemHTML(e[t]);return o+="</ul>",o},r.prototype.createSourceItemHTML=function(e){let t="";const i=e.hasOwnProperty("subs"),o=!!e.hasOwnProperty("collapse")&&e.hasOwnProperty("collapse");let a=e.isSelectable===n||e.isSelectable,s=a?"selectable":"not-selectable";return t+='<li id="ct-'+this.id+"-li-"+e.id+'" class="ct-item-'+(i?"parent":"child")+'"> ',t+=`${i?`<span class="ct-parent-plus">${this.options.collapse||o?"+":"-"}</span>`:""}
2<span\n      data-id="${e.id}"\n      data-selectable="${a}"\n      class="ct-list-item-title ${s}"\n    >${this.options.isMultiple&&a?'<input type="checkbox" />':""}${e.title}</span>`,i&&(t+=this.createSourceSubItemsHTML(e.subs,e.id,o)),t+="</li>",t},r.prototype.bindings=function(){const t=this;e(this._input).focus(function(i){t._dropDownContainer.is(":visible")||e(t._dropDownContainer).slideToggle(t.options.animationTime)}),this._arrowBtn.on("click",function(e){e.stopPropagation(),t.toggleDropDown()}),this._input.on("click",function(e){e.stopPropagation(),t._dropDownContainer.is(":visible")||t.toggleDropDown()}),this._listItems.on("click",function(i){i.stopPropagation(),e(this).hasClass("ct-item-parent")&&t.toggleSelectionTree(this)}),this._listItemsTitle.on("click",function(e){e.stopPropagation(),t.options.isMultiple?t.multiItemClick(this):(t.singleItemClick(this),console.log("test"))}),this._listItemsTitle.on("mousemove",function(e){e.stopPropagation(),t.dropDownMenuHover(this)}),this._selectAllInput&&this._selectAllInput.parent("label").on("mousemove",function(e){e.stopPropagation(),t.dropDownMenuHover(this)}),this._input.on("keyup",function(e){switch(e.stopPropagation(),e.keyCode){case 27:t.closeDropDownMenu();break;case 13:case 39:case 37:case 40:case 38:e.preventDefault();break;default:t.options.isMultiple||t.filterDropDownMenu()}}),this._filterInput&&this._filterInput.on("keyup",function(i){switch(i.stopPropagation(),i.keyCode){case 27:e(this).val()?(e(this).val(""),t.filterDropDownMenu()):t.closeDropDownMenu();break;case 40:case 38:i.preventDefault(),t.dropDownInputKeyControl(i.keyCode-39);break;case 37:case 39:i.preventDefault(),t.dropDownInputKeyToggleTreeControl(i.keyCode-38);break;case 13:t.multiItemClick(t._elemHoveredItem),i.preventDefault();break;default:t.filterDropDownMenu()}}),this._input.on("keydown",function(e){switch(e.stopPropagation(),e.keyCode){case 9:t.closeDropDownMenu();break;case 40:case 38:e.preventDefault(),t.dropDownInputKeyControl(e.keyCode-39);break;case 37:case 39:e.preventDefault(),t.dropDownInputKeyToggleTreeControl(e.keyCode-38);break;case 13:t.options.isMultiple?t.multiItemClick(t._elemHoveredItem):t.singleItemClick(t._elemHoveredItem),e.preventDefault();break;default:t.options.isMultiple&&e.preventDefault()}}),e(o).on("mouseup."+t.id,function(e){!t._wrapper.is(e.target)&&0===t._wrapper.has(e.target).length&&t._dropDownContainer.is(":visible")&&t.closeDropDownMenu()}),this._selectAllInput&&this._selectAllInput.on("click",function(i){i.stopPropagation(),e(i.target).prop("checked")?t.selectAll():t.clearSelection()})},r.prototype.toggleDropDown=function(){const t=this;e(this._dropDownContainer).slideToggle(this.options.animationTime,function(){t._dropDownContainer.is(":visible")&&e(t._input).focus()})},r.prototype.closeDropDownMenu=function(){e(this._dropDownContainer).slideUp(this.options.animationTime)},r.prototype.toggleSelectionTree=function(t,i){const o=e(t).children("ul")[0];i===n?(e(o).is(":visible")?e(t).children("span.ct-parent-plus").html("+"):e(t).children("span.ct-parent-plus").html("-"),e(o).slideToggle(this.options.animationTime)):1!=i||e(o).is(":visible")?-1==i&&(e(o).is(":visible")?(e(t).children("span.ct-parent-plus").html("+"),e(o).slideUp(this.options.animationTime)):this.dropDownMenuHover(t)):(e(t).children("span.ct-parent-plus").html("-"),e(o).slideDown(this.options.animationTime))},r.prototype.selectMultipleItem=function(t){if(e(t).parent("li").hasClass("ct-item-parent")&&0==e(t).data("selectable")&&this.toggleSelectionTree(e(t).parent("li")),1==e(t).data("selectable")){this._selectedItem={id:e(t).attr("data-id"),title:e(t).text()};if(this.isItemInArray(this._selectedItem,this.options.source)){const i=this.isItemInArray(this._selectedItem,this._selectedItems);i?(this._selectedItems.splice(parseInt(i),1),e(t).find("input").prop("checked",!1)):(this._selectedItems.push(this._selectedItem),e(t).find("input").prop("checked",!0))}}},r.prototype.singleItemClick=function(t){1==e(t).data("selectable")?(this._selectedItem={id:e(t).attr("data-id"),title:e(t).text()},this.refreshInputVal(),this.closeDropDownMenu()):e(t).parent("li").hasClass("ct-item-parent")&&this.toggleSelectionTree(e(t).parent("li"))},r.prototype.multiItemClick=function(t){if(this.selectMultipleItem(t),this.options.cascadeSelect&&e(t).data("selectable")&&e(t).parent("li").hasClass("ct-item-parent")){e(t).parent("li").children("ul").first().find('input[type="checkbox"]').each(function(){const i=e(this);e(t).children('input[type="checkbox"]').first().prop("checked")!==i.prop("checked")&&(i.prop("checked",!e(t).children('input[type="checkbox"]').first().prop("checked")),i.trigger("click"))})}this.refreshInputVal()},r.prototype.isItemInArray=function(e,t){for(let i=0;i<t.length;i++){if(e.id==t[i].id&&e.title==t[i].title)return i+"";if(t[i].hasOwnProperty("subs")){const o=this.isItemInArray(e,t[i].subs);if(o)return o}}return!1},r.prototype.refreshInputVal=function(){let e="";if(this.options.isMultiple)for(let t=0;t<this._selectedItems.length;t++)e+=this._selectedItems[t].title,t<this._selectedItems.length-1&&(e+=", ");else e=this._selectedItem.title;this._input.val(e),this._input.trigger("change"),this.changeHandler&&this.changeHandler()},r.prototype.dropDownMenuHover=function(t,i){this._wrapper.find(".ct-tree-item-hover").removeClass("ct-tree-item-hover"),e(t).addClass("ct-tree-item-hover"),this._elemHoveredItem=e(t),i&&t&&this.dropDownScrollToHoveredItem(this._elemHoveredItem)},r.prototype.dropDownScrollToHoveredItem=function(e){this._sourceUl.parent().scrollTop(e[0].offsetTop-30)},r.prototype.dropDownInputKeyToggleTreeControl=function(t){const i=this._elemHoveredItem;e(i).parent("li").hasClass("ct-item-parent")?this.toggleSelectionTree(e(i).parent("li"),t):-1==t&&this.dropDownMenuHover(i)},r.prototype.dropDownInputKeyControl=function(e){this._dropDownContainer.is(":visible")||this.toggleDropDown();const t=this._listItems.find("span.ct-list-item-title:visible");let i=this._elemHoveredItem?t.index(this._elemHoveredItem)+e:0;i=(t.length+i)%t.length,this.dropDownMenuHover(t[i],!0)},r.prototype.filterDropDownMenu=function(){let t="";t=this.options.isMultiple?this._wrapper.find("#"+this.id+"-multi-filter").val():this._input.val(),""!=t?(this._listItemsTitle.hide(),this._listItemsTitle.siblings("span.ct-parent-plus").hide(),list=this._listItems.filter(function(e,i){return-1!=i.innerHTML.toLowerCase().indexOf(t.toLowerCase())}).each(function(t,i){e(this.children).show(),e(this).siblings("span.ct-parent-plus").show()})):(this._listItemsTitle.show(),this._listItemsTitle.siblings("span.ct-parent-plus").show())},r.prototype.processSelected=function(){const t=this._listItemsTitle;let i=this._selectedItem,o=this._selectedItems;this.options.selected.forEach(function(n){let a=e(t).filter(function(){return e(this).data("id")==n});a.length>0&&(e(a).find("input").attr("checked",!0),i={id:a.data("id"),title:a.text()},o.push(i))}),this._selectedItem=i,this.refreshInputVal()},r.prototype.findItembyId=function(e,t){if(e&&t)for(let i=0;i<t.length;i++){if(t[i].id==e)return{id:t[i].id,title:t[i].title};if(t[i].hasOwnProperty("subs")){let o=this.findItembyId(e,t[i].subs);if(o)return o}}return null},r.prototype.getSelectedIds=function(){if(this.options.isMultiple&&this._selectedItems.length>0){const e=[];for(i=0;i<this._selectedItems.length;i++)e.push(this._selectedItems[i].id);return e}return!this.options.isMultiple&&this._selectedItem.hasOwnProperty("id")?[this._selectedItem.id]:null},r.prototype.getSelectedNames=function(){if(this.options.isMultiple&&this._selectedItems.length>0){const e=[];for(i=0;i<this._selectedItems.length;i++)e.push(this._selectedItems[i].title);return e}return!this.options.isMultiple&&this._selectedItem.hasOwnProperty("id")?this._selectedItem.title:null},r.prototype.setSource=function(e){this._selectedItems=[],this.destroy(),this.options.source=e,this.constructorFunc(this.input,this.options)},r.prototype.clearSelection=function(){for(i=0;i<this._selectedItems.length;i++){let t="#ct-"+this.id+"-li-"+this._selectedItems[i].id;t=t.replaceAll(".","\\.");let o=this._wrapper.find(t);e(o).find("input").prop("checked",!1)}this._selectedItems=[],this._selectedItem={},this._selectAllInput&&this._selectAllInput.prop("checked",!1),this.refreshInputVal()},r.prototype.setSelection=function(t){if(t&&t.length&&t.length>0)for(let i=0;i<t.length;i++){let o=this.findItembyId(t[i],this.options.source);if(o){if(this.isItemInArray(o,this.options.source)){if(!this.isItemInArray(o,this._selectedItems)){let n="#"+this.id+"-li"+t[i];n=n.replaceAll(".","\\.");let a=e(n);this._selectedItems.push(o),this._selectedItem=o,this.options.cascadeSelect?e(a).find("input").prop("checked",!0):e(a).find("input:first").prop("checked",!0)}}}}this.refreshInputVal()},r.prototype.selectAll=function(){const t=this;this._selectedItems=[],this._wrapper.find("#"+this.id+"-source-ul-main").find("[data-selectable=true] input[type='checkbox']").each(function(i,o){let n=e(o
2).parent("span").first(),a={id:n.data("id"),title:n.text()};e(o).prop("checked",!0),t._selectedItems.push(a)}),this._selectAllInput&&this._selectAllInput.prop("checked",!0),this.refreshInputVal()},r.prototype.onChange=function(e){e&&"function"==typeof e&&(this.changeHandler=e)},e.fn[a]=function(t){const i=[];return this.each(function(){e.data(this,"plugin_"+a)||(e.data(this,"plugin_"+a,new r(this,t)),i.push(e(this).data()["plugin_"+a]))}),1==this.length?i[0]:i}}(jQuery,window,document)},266(){function e(){let e=jQuery(".campervan-carousel__wrap");e.length&&(window.innerWidth<680?(void 0!==e.data("owl.carousel")&&e.data("owl.carousel").destroy(),e.removeClass("owl-carousel")):e.owlCarousel({items:6,slideSpeed:2e3,autoplay:!1,dots:!1,loop:!0,nav:!1,lazyLoad:!0,responsive:{0:{items:2},768:{items:3},1020:{items:4},1400:{items:6}}}))}function t(){var e=jQuery(".vehicle-style-list");jQuery(window).width()<769?e.hasClass("owl-loaded")||e.owlCarousel({items:2,slideSpeed:2e3,autoplay:!1,dots:!1,loop:!0,nav:!0,lazyLoad:!0,navText:['<svg xmlns="http://www.w3.org/2000/svg" width="18" height="24" viewBox="0 0 18 34" fill="none"><path d="M16.5 1.36865L1.5 15.843L16.5 30.3173" stroke="#ea7d1e" stroke-width="2"/></svg>','<svg xmlns="http://www.w3.org/2000/svg" width="18" height="24" viewBox="0 0 18 34" fill="none"><path d="M1.5 1.36865L16.5 15.843L1.5 30.3173" stroke="#ea7d1e" stroke-width="2"/></svg>'],responsive:{0:{items:1},600:{items:2}}}):e.hasClass("owl-loaded")&&(e.trigger("destroy.owl.carousel"),e.find(".owl-stage-outer").children().unwrap(),e.removeClass("owl-carousel owl-loaded"))}function i(e,t){let i=e.getBoundingClientRect().top+window.scrollY-t;window.scrollTo({top:i,behavior:"smooth"})}jQuery(document).ready(function(t){t(".mobile_menu").simpleMobileMenu({hamburgerId:"sm_menu_ham",wrapperClass:"sm_menu_outer",submenuClass:"submenu",menuStyle:"slide"}),t(".ht-nav-mobile .sm_menu_ham").on("click",function(){t("#sm_menu_ham").click()});let i=jQuery("#sync1"),o=jQuery("#sync2");if(i.owlCarousel({items:1,slideSpeed:2e3,autoplay:!0,dots:!1,loop:!0,nav:!1,margin:10,lazyLoad:!0}).on("changed.owl.carousel",function(e){var t=e.item.count-1,i=Math.round(e.item.index-e.item.count/2-.5);i<0&&(i=t);i>t&&(i=0);o.find(".owl-item").removeClass("current").eq(i).addClass("current");let n=o.find(".owl-item.active").length-1,a=o.find(".owl-item.active").first().index(),s=o.find(".owl-item.active").last().index();i>s&&o.data("owl.carousel").to(i,100,!0);i<a&&o.data("owl.carousel").to(i-n,100,!0)}),o.on("initialized.owl.carousel",function(){o.find(".owl-item").eq(0).addClass("current")}).owlCarousel({items:3,dots:!1,autoplay:!0,smartSpeed:200,nav:!1,slideSpeed:500,slideBy:1,lazyLoad:!0,responsiveRefreshRate:100}).on("changed.owl.carousel",function(e){var t=e.item.index;i.data("owl.carousel").to(t,100,!0)}),o.on("click",".owl-item",function(e){e.preventDefault();var t=jQuery(this).index();i.data("owl.carousel").to(t,300,!0)}),document.querySelector("#tour_sort")){document.querySelector("#tour_sort").addEventListener("change",e=>{let t=e.target.value,i=document.querySelectorAll(".tour-filter-and-sort .ht-latest-products__single"),o=Array.prototype.slice.call(i,0),n=document.querySelector(".tour-filter-and-sort .ht-latest-products__wrap");"price-asc"==t?o.sort((e,t)=>e.getAttribute("data-price")-t.getAttribute("data-price")):"price-desc"==t?o.sort((e,t)=>t.getAttribute("data-price")-e.getAttribute("data-price")):"name-desc"==t?o.sort((e,t)=>String.prototype.localeCompare.call(t.getAttribute("data-name").toLowerCase(),e.getAttribute("data-name").toLowerCase())):o.sort((e,t)=>String.prototype.localeCompare.call(e.getAttribute("data-name").toLowerCase(),t.getAttribute("data-name").toLowerCase())),n.append(...o)})}let n=document.querySelectorAll(".tour-filter__btns ul li a"),a=document.querySelectorAll(".tour-filter-and-sort .ht-latest-products__wrap .ht-latest-products__single"),s=document.querySelector(".tour-filter__mobile-toggle"),r=document.querySelector(".tour-filter__btns");n.forEach(e=>{e.onclick=function(){let e=this.getAttribute("data-package"),t=this.innerText,i=new URL(window.location);"all"===e?i.searchParams.delete("category"):i.searchParams.set("category",e),window.history.replaceState({},"",i);for(let e of a)e.classList.remove("hide");for(let e of n)e.classList.remove("active");if(this.classList.add("active"),"all"!==e)for(let t of a){t.getAttribute("data-package").split(",").includes(e)?t.classList.add("show"):t.classList.add("hide")}r.classList.remove("is-active"),s.innerText=t}}),s&&s.addEventListener("click",e=>{r.classList.toggle("is-active")});
2let l=document.querySelectorAll(".ht-nav-desktop__main-menu .has-sub-menu");document.addEventListener("click",e=>{let t=!1;for(var i=0;i<l.length;i++)l[i].contains(e.target)&&(t=!0);if(t){for(i=0;i<l.length;i++)l[i].contains(e.target)||l[i].classList.remove("is-active");e.target.closest(".has-sub-menu").classList.toggle("is-active")}else for(i=0;i<l.length;i++)l[i].classList.remove("is-active")}),jQuery(".campervan-roadtrips-list").owlCarousel({items:4,slideSpeed:2e3,autoplay:!1,dots:!1,loop:!1,nav:!1,lazyLoad:!0,responsive:{0:{items:1,loop:!0,dots:!0},768:{items:2,loop:!0,dots:!0},992:{items:3,loop:!0,dots:!0},1200:{items:4}}});var c=jQuery(".caravan-booking-steps-list:not(.ectp-steps)");jQuery(window).width()<769&&c.length&&c.owlCarousel({items:1,slideSpeed:2e3,autoplay:!1,dots:!1,loop:!1,nav:!1,lazyLoad:!0,margin:20,responsive:{0:{dots:!0},580:{dots:!0},768:{dots:!1}}});var d=t(".text-description-with-slider__gallery-main"),u=t(".text-description-with-slider__gallery-nav");d.owlCarousel({items:1,slideSpeed:500,nav:!1,dots:!1,autoplay:!1,loop:!0,responsiveRefreshRate:200}).on("changed.owl.carousel",function(e){var t=e.item.count-1,i=Math.round(e.item.index-e.item.count/2-.5);i<0&&(i=t);i>t&&(i=0);u.find(".owl-item").removeClass("current").eq(i).addClass("current");var o=u.find(".owl-item.active").length-1,n=u.find(".owl-item.active").first().index(),a=u.find(".owl-item.active").last().index();i>a&&u.trigger("to.owl.carousel",[i-o,300,!0]);i<n&&u.trigger("to.owl.carousel",[i,300,!0])}),u.owlCarousel({items:3,dots:!1,nav:!1,margin:10,smartSpeed:200,slideSpeed:500,slideBy:3,responsiveRefreshRate:100}).on("click",".owl-item",function(e){e.preventDefault();var i=t(this).index();d.trigger("to.owl.carousel",[i,300,!0])}),t(".campervan-carousel__wrap")&&(window.addEventListener("resize",t=>{e()}),e()),jQuery(".book-modal-close, .book-modal-overlay").on("click",function(){jQuery(".book-modal").css("display","none")})}),document.addEventListener("DOMContentLoaded",function(){let e=document.querySelector(".confirmation-intro__right video");if(e){let t=document.querySelector(".confirmation-intro__right .confirmation-intro__right__play"),i=e.querySelector("source"),o=i.getAttribute("src"),n=i.getAttribute("data-breeze");!o&&n&&(i.setAttribute("src",n),e.load()),e&&t&&i&&(t.addEventListener("click",function(){e.play()}),e.addEventListener("play",()=>{t.classList.add("video_playing")}),e.addEventListener("pause",()=>{t.classList.remove("video_playing")}),e.addEventListener("ended",()=>{t.classList.remove("video_playing")}),e.addEventListener("click",()=>{e.paused?e.play():e.pause()}))}let t=document.querySelectorAll(".ht-scrollToAvailability"),o=document.querySelector(".multi-tour-table");if(t&&o)for(var n=0;n<t.length;n++)t[n].addEventListener("click",function(){let e=window.innerWidth<=768?50:150;i(o,e)});var a=document.querySelector("#gform_wrapper_4");function s(){var e=document.querySelector("#gform_wrapper_4 .gform_next_button");e&&e.addEventListener("click",function(e){e.preventDefault(),a.classList.add("loading"),setTimeout(function(){a.classList.remove("loading")},3e3)})}s(),jQuery(document).bind("gform_post_render",function(){s()});let r=document.querySelector(".travel-search .ht-nav__search .button svg");if(r){let e=document.querySelector(".travel-search .ht-nav__search .search__btn"),t=document.querySelector(".travel-search .ht-nav-search--box-text");e.addEventListener("click",function(e){const i=encodeURIComponent(t.value.trim());window.location.href="/search?keyword="+i});let i=document.querySelector(".travel-search .ht-nav-search--box-text");r.addEventListener("click",function(e){const t=encodeURIComponent(i.value.trim());window.location.href="/search?keyword="+t}),i.addEventListener("keydown",e=>{if("Enter"===e.key&&""!==i.value.trim()){const e=encodeURIComponent(i.value.trim());window.location.href="/search?keyword="+e}})}let l=document.querySelector(".ht-nav-desktop .ht-nav-popup .ht-nav__search .search__btn"),c=document.querySelector(".ht-nav-desktop .ht-nav-popup .ht-nav-search--box-text");l.addEventListener("click",function(e){const t=encodeURIComponent(c.value.trim());window.location.href="/search?keyword="+t});let d=document.querySelector(".ht-nav-desktop .ht-nav-popup .ht-nav__search .button svg"),u=document.querySelector(".ht-nav-desktop .ht-nav-popup .ht-nav-search--box-text");d.addEventListener("click",function(e){const t=encodeURIComponent(u.value.trim());window.location.href="/search?keyword="+t}),u.addEventListener("keydown",e=>{if("Enter"===e.key&&""!==u.value.trim()){const e=encodeURIComponent(u.value.trim());window.location.href="/search?keyword="+e}});let p=document.querySelector(".ht-nav-mobile .ht-nav-popup .ht-nav__search .button svg"),h=document.querySelector(".ht-nav-mobile .ht-nav-popup .ht-nav-search--box-text");p.addEventListener("click",function(e){const t=encodeURIComponent(h.value.trim());window.location.href="/search?keyword="+t});let m=document.querySelector(".ht-nav-mobile .ht-nav-popup .ht-nav__search .search__btn"),v=document.querySelector(".ht-nav-mobile .ht-nav-popup .ht-nav-search--box-text");m.addEventListener("click",function(e){const t=encodeURIComponent(v.value.trim());window.location.href="/search?keyword="+t}),h.addEventListener("keydown",e=>{if("Enter"===e.key&&""!==h.value.trim()){const e=encodeURIComponent(h.value.trim());window.location.href="/search?keyword="+e}});let f=document.querySelector(".ht-nav-desktop .ht-nav-popup"),g=document.querySelector(".ht-nav-mobile .ht-nav-popup");document.body.addEventListener("click",function(e){e.target.classList.contains("search-toggle")?f.classList.contains("search-open")?f.classList.remove("search-open"):(f.classList.add("search-open"),u.focus()):e.target.classList.contains("mobile-search-toggle")?g.classList.contains("search-open")?g.classList.remove("search-open"):(g.classList.add("search-open"),v.focus()):e.target.classList.contains("ht-nav-popup")||e.target.classList.contains("ht-nav__quicklinks-wrap")||e.target.classList.contains("ht-nav__search")||e.target.classList.contains("ht-nav-search--box-text")||e.target.classList.contains("ht-nav__quicklinks--list")||e.target.classList.contains("ht-nav__quicklinks")||e.target.classList.contains("ht-nav-popup__inner")||(f.classList.remove("search-open"),g.classList.remove("search-open"))})}),jQuery(".ht-text-media__slider").length&&jQuery(".ht-text-media__slider").owlCarousel({items:1,slideSpeed:2e3,auto
2play:!0,dots:!1,loop:!0,nav:!1,margin:10,lazyLoad:!0}),jQuery(".sidebar-gallery").length&&jQuery(".sidebar-gallery").owlCarousel({items:1,slideSpeed:2e3,autoplay:!1,dots:!1,loop:!0,nav:!0,margin:10,lazyLoad:!0}),jQuery(".campervan-popular-vehicles-list-item__image").length&&jQuery(".campervan-popular-vehicles-list-item__image").each(function(){jQuery(this).owlCarousel({items:1,slideSpeed:2e3,autoplay:!1,dots:!1,loop:!0,nav:!0,lazyLoad:!0,navText:['<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M22.9954 14.219L17.0045 19.9999L22.9954 25.7809" stroke="white" stroke-width="2"/> </svg>','<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M17.0046 14.219L22.9955 19.9999L17.0046 25.7809" stroke="white" stroke-width="2"/> </svg>']})}),t(),jQuery(window).on("resize",function(){t()}),jQuery(".campervan-carousel__wrap-slider.owl-carousel").length&&(jQuery(".campervan-carousel__wrap-slider.owl-carousel").trigger("destroy.owl.carousel"),jQuery(".campervan-carousel__wrap-slider.owl-carousel").owlCarousel({items:6,slideSpeed:2e3,autoplay:!1,dots:!1,loop:!0,nav:!1,lazyLoad:!0,margin:38,responsive:{0:{items:3,margin:20},480:{items:3,margin:20},680:{items:4,margin:20},768:{items:6,margin:20}}}))},820(){jQuery(document).ready(function(e){jQuery(".image-gallery.owl-carousel").owlCarousel({loop:!0,margin:10,dots:!1,lazyLoad:!0,nav:!0,navText:["<span class='gallery-arrow gallery-prev'></span>","<span class='gallery-arrow gallery-next'></span>"],responsive:{0:{items:1},600:{items:2},1e3:{items:3}}}),jQuery(".faq-title").on("click",function(){"none"==jQuery(this).next().css("display")?(jQuery(".faq-title").next().slideUp(),jQuery(".faq-title").parent().removeClass("active"),jQuery(this).next().slideDown(),jQuery(this).parent().addClass("active")):(jQuery(this).next().slideUp(),jQuery(this).parent().removeClass("active"))}),e(".ht-popup-close").on("click",function(){e(this).parents(".ht-popup-wrapper").removeClass("show")}),e(".ht-popup-trigger").on("click",function(){let t=e(this).attr("data-id");e('.ht-popup-wrapper[data-id="'+t+'"]').addClass("show")}),jQuery(document).on("gform_confirmation_loaded",function(t,i){if(29===i||43===i){var o=e(".ht-guide-btn").attr("data-url");o?window.open(o,"_blank"):console.log("Field 14 is empty or does not contain a valid URL.")}if(window.location.href.includes("staging")&&44===i||!window.location.href.includes("staging")&&51===i){var n=jQuery(".campervan-guidebook-right-form").attr("data-guide-url");n&&setTimeout(function(){window.open(n,"_blank")},1e3)}41==i&&(window.location.href="https://happytravels.com.au/campervan-confirmation-page/")})})},207(){jQuery(document).ready(function(e){function t(){let t=e(".ht-review-intro-v2-list.mobile-show");e(window).width()<992?t.hasClass("owl-loaded")||t.owlCarousel({loop:!0,margin:20,nav:!1,dots:!0,autoplay:!1,autoplayTimeout:3e3,smartSpeed:600,autoHeight:!0,responsive:{0:{items:1},800:{items:2}}}):t.hasClass("owl-loaded")&&t.owlCarousel("destroy").removeClass("owl-carousel")}e(".taxonomy-page__featured-lists").trigger("destroy.owl.carousel"),jQuery(window).width()<1020&&jQuery(".taxonomy-page__featured-lists").owlCarousel({loop:!1,margin:30,dots:!1,lazyLoad:!0,nav:!1,autoplay:!1,items:2,responsive:{0:{items:2,margin:16,dots:!0},680:{items:2,margin:30},1020:{items:2,margin:30}}}),e(".wc_payment_method input").on("change",function(){jQuery("body").trigger("update_checkout")}),jQuery("body").on("update_checkout",function(){"till_payments_applepay"==e(".wc_payment_method .input-radio:checked").val()?(e(".checkout-payment-section").addClass("show-applepay"),e("#applepay-button").addClass("show")):e(".checkout-payment-section").removeClass("show-applepay")}),jQuery(document).on("gform_post_render",function(e,t,i){let o=document.querySelector(".reviews-add-review.ht-popup-trigger"),n=document.getElementById("input_42_20");if(o&&n){let e=o.getAttribute("data-product-id");e&&(n.value=e,n.classList.add("testingclass"))}}),jQuery(document).on("gform_confirmation_loaded",function(e,t){20==t&&(window.parent.location.href="https://happytravels.com.au/east-coast-confirmation-page/")}),t(),e(window).on("resize",t);
2let i=document.querySelector(".review-intro__right video");if(i){let e=document.querySelector(".review-intro__right .review-intro__right__play"),t=i.querySelector("source"),o=t.getAttribute("src"),n=t.getAttribute("data-breeze");!o&&n&&(t.setAttribute("src",n),i.load()),e&&t&&(e.addEventListener("click",function(){i.play()}),i.addEventListener("play",()=>e.classList.add("video_playing")),i.addEventListener("pause",()=>e.classList.remove("video_playing")),i.addEventListener("ended",()=>e.classList.remove("video_playing")),i.addEventListener("click",()=>{i.paused?i.play():i.pause()}))}let o=document.querySelectorAll(".social-media-images-block .image-item.has_play_button video");o.length>0&&o.forEach(e=>{let t=e.closest(".image-item").querySelector(".social-media__play"),i=e.querySelector("source");if(!i)return;let o=i.getAttribute("src"),n=i.getAttribute("data-breeze");!o&&n&&(i.setAttribute("src",n),e.load()),t&&(t.addEventListener("click",function(){e.play()}),e.addEventListener("play",()=>t.classList.add("video_playing")),e.addEventListener("pause",()=>t.classList.remove("video_playing")),e.addEventListener("ended",()=>t.classList.remove("video_playing")),e.addEventListener("click",()=>{e.paused?e.play():e.pause()}))});let n=e(".reviews-listing-products__tab.active").data("tab-slug"),a=parseInt(e(".reviews-listing-products__tab.active").data("total"))||0,s=12;function r(t,i=1,o=0,n=!1){let a;a=t&&"all"!=t?e(".reviews-listing-lists .review-item").filter(function(){let i=e(this).data("slug");return i&&i.toLowerCase().includes(t.toLowerCase())}):e(".reviews-listing-lists .review-item");let r=(i-1)*s,l=r+s,c=a.slice(r,l);return e(".reviews-listing-lists .review-item").hide(),c.show(),c.length}e(window).width()<768&&(s=5),r(n,1,a),e(".reviews-tab-mobile").on("click",function(t){t.preventDefault(),e(this).parent().toggleClass("show")}),e(".reviews-listing-products__tab").on("click",function(t){t.preventDefault(),r(e(this).data("tab-slug"),1,parseInt(e(this).data("total"))||0),e(".reviews-listing-products__tab").removeClass("active"),e(this).addClass("active"),e(this).parents(".reviews-tab-wrap").removeClass("show");let i=e(this).text();e(".reviews-tab-mobile-text").text(i)}),e(document).on("gform_post_render",function(t,i){if(42==i){let t=e(".ht-review-page #field_42_20");if(t){t.css({display:"block",marginBottom:"16px",position:"relative"}),t.find(".ginput_container").append('<label class="gfield_label gform-field-label">Select Product</label><input type="text" class="ht-custom-review-product" name="ht_custom_review_product" /><div class="ht-nav-search-results"></div>');let i,o=algoliasearch(frontend_ajax_object.algolia_api_id,frontend_ajax_object.algolia_search_key).initIndex(frontend_ajax_object.algolia_index_name);e(document).on("input",".ht-custom-review-product",function(){let t=e(this),n=t.val(),a=t.closest(".ginput_container").find(".ht-nav-search-results");clearTimeout(i),i=setTimeout(function(){n.length>1?function(t,i){o.search(t,{hitsPerPage:5}).then(function(t){!function(t,i){if(0===t.length)return void i.html("No results found");let o="";e.each(t,function(e,t){o+=`\n                    <a href="javascript:void(0);" data-product-id="${t.objectID}">\n                        <strong>${t.title}</strong>\n                    </a>\n                `}),i.html(o)}(t.hits,i)}).catch(function(e){console.error("Search error:",e)})}(n,a):a.html("")},500)}),e(document).on("click",".ht-nav-search-results a",function(t){t.preventDefault();let i=e(this).data("product-id"),o=e(this).closest(".ginput_container").find('input[type="hidden"]'),n=e(this).closest(".ginput_container").find(".ht-custom-review-product");o.length&&o.val(i),n.val(e.trim(e(this).text())),e(this).parent().html("")})}}});new Swiper(".home_card_slider_carousel",{slidesPerView:5,spaceBetween:10,loopFillGroupWithBlank:!1,loop:!0,grid:{rows:1,fill:"row"},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},breakpoints:{0:{slidesPerView:2,slidesPerGroup:2,loop:!1,grid:{rows:2,fill:"row"},navigation:{enabled:!1},pagination:{el:".swiper-pagination",clickable:!0,dynamicBullets:!1}},580:{slidesPerView:2,slidesPerGroup:2,loop:!0},768:{slidesPerView:4,loop:!0,navigation:{enabled:!1}},1025:{slidesPerView:5,loop:!0,navigation:{enabled:!1}},1260:{slidesPerView:5,loop:!0,navigation:{enabled:!0}}}});function l(){window.innerWidth<992&&(document.querySelector(".ht-support-slider.swiper-initialized")||new Swiper(".ht-support-slider",{slidesPerView:1,spaceBetween:16,pagination:{el:".swiper-pagination",clickable:!0,dynamicBullets:!1},breakpoints:{768:{slidesPerView:2}}}))}window.addEventListener("load",l),window.addEventListener("resize",l)}),document.addEventListener("DOMContentLoaded",function(){document.addEventListener("click",function(e){let t=e.target.closest(".guide-btn");if(t){let e=t.dataset.id;document.querySelectorAll(".ht-popup-builder").forEach(function(e){e.classList.remove("active")});
2let i=document.querySelector(`.ht-popup-builder[data-popup="${e}"]`);return void(i&&i.classList.add("active"))}let i=e.target.closest(".ht-popup-builder-close");if(i){let e=i.dataset.popup,t=document.querySelector(`.ht-popup-builder[data-popup="${e}"]`);return void(t&&t.classList.remove("active"))}});var e=document.querySelectorAll("[data-fiji-accordion]");e.length&&e.forEach(function(e){var t=e.querySelectorAll(".fiji-main-intro__accordion-item");function i(e,t){var i=e.getAttribute("aria-controls"),o=i?document.getElementById(i):null;e.setAttribute("aria-expanded",t?"true":"false"),o&&(o.hidden=!t)}t.forEach(function(e){e.addEventListener("click",function(){var o="true"===e.getAttribute("aria-expanded");t.forEach(function(e){i(e,!1)}),i(e,!o)})})})}),gform&&gform.addFilter("gform_datepicker_options_pre_init",function(e,t,i,o){if(o.closest(".form-popup").length){var n,a=e.beforeShow,s=e.onClose;e.beforeShow=function(e,t){var i=!a||a.call(this,e,t);return n&&clearInterval(n),n=setInterval(function(){if(t.dpDiv.is(":visible")){var i=e.getBoundingClientRect();t.dpDiv.css({position:"fixed",top:i.bottom+2,left:i.left,right:"auto",zIndex:1e7})}},100),i},e.onClose=function(){s&&s.call(this),n&&(clearInterval(n),n=null)}}return e})},278(){function e(){const e=document.querySelector(".ht-campervan-age input");let t=document.querySelector(".ht-campervan-page3 .gform_next_button");if(e&&!e.hasAttribute("data-age-limit-applied")){let i;e.setAttribute("data-age-limit-applied","true"),e.addEventListener("keyup",function(){clearTimeout(i),i=setTimeout(function(){let i=parseInt(e.value,10);isNaN(i)||(t.style.pointerEvents=i<18||i>120?"none":"unset")},500)})}}function t(){const e=document.querySelector(".ht-campervan-page3 .gform_next_button");e&&!e.hasAttribute("data-validation-applied")&&(e.setAttribute("data-validation-applied","true"),e.addEventListener("click",function(e){let t=document.querySelector(".ht-campervan-age input").value,i=document.querySelector(".ht-campervan-question-country").value,o=document.querySelector(".ht-campervan-question-transmission").value,n=document.querySelector(".ht-campervan-question-shower").value;if((""===t||t<18)&&alert("Age must be 18 or above."),!(t&&i&&o&&n))return e.preventDefault(),!1}))}jQuery(document).ready(function(e){if($(document).ready(function(){$(".package-item").hide(),$(".packages-variation-lists-tab__title:first").addClass("active"),$(".package-item:first").show().addClass("active"),$(".packages-variation-lists-tab__title").on("click",function(){var e=$
2(this).attr("id");$(".packages-variation-lists-tab__title").removeClass("active"),$(".package-item").removeClass("active").hide(),$(this).addClass("active"),$('[data-id="'+e+'"]').addClass("active").show()})}),$(".ht-road-trip__slider").owlCarousel({loop:!0,nav:!0,dots:!1,items:1,autoheight:!0,lazyLoad:!0,navText:['<img src="'+frontend_ajax_object.stylesheeturl+'/images/review-arrow-left.svg">','<img src="'+frontend_ajax_object.stylesheeturl+'/images/review-arrow-right.svg">']}),$(document).ready(function(){$(".owl-carousel-review").owlCarousel({loop:!0,nav:!0,dots:!1,lazyLoad:!0,margin:20,navText:['<img src="'+frontend_ajax_object.stylesheeturl+'/images/review-arrow-left.svg">','<img src="'+frontend_ajax_object.stylesheeturl+'/images/review-arrow-right.svg">'],responsiveClass:!0,responsive:{0:{items:1,margin:0},600:{items:2,margin:20},1e3:{items:3,loop:!0,margin:20}},onInitialized:function(e){i()}}),$(".most-popular-vehicles__wrap_slider").owlCarousel({loop:!0,nav:!0,dots:!1,navText:['<img src="'+frontend_ajax_object.stylesheeturl+'/images/review-arrow-left.svg">','<img src="'+frontend_ajax_object.stylesheeturl+'/images/review-arrow-right.svg">'],responsiveClass:!0,responsive:{0:{items:1,dots:!0,nav:!1},1200:{margin:20,items:1,dots:!0,nav:!1,loop:!0},1280:{margin:20,items:1,dots:!1,nav:!0,loop:!0}},onInitialized:function(e){i()}});var e=$(".review-content");$(".review-content p").each(function(){$this=$(this);var e=4*parseFloat($($this).css("line-height"));$($this)[0].scrollHeight>e&&$($this).parent().find(".read-more").show(),$(".owl-stage-outer.owl-height").css("height","auto")}),e.find(".read-more").click(function(){$this=$(this).parent(),$($this).addClass("show-full"),$(this).hide(),$($this).find(".read-less").show()}),e.find(".read-less").click(function(){$this=$(this).parent(),$($this).removeClass("show-full"),$(this).hide(),$($this).find(".read-more").show()}),$(document).ready(function(){const e=$("<ul></ul>");$(".product-page__main-text h2:not(.gform_title)").each(function(t){const i=$(this),o=`section_${t}_${i.text().trim().toLowerCase().replace(/[^a-zA-Z0-9]+/g,"_")}`;i.attr("id",o);let n=i.attr("data-tab-title");n||(n=i.text().trim()),"frequently asked questions"==n.toLowerCase()&&(n="FAQ");const a=$("<li></li>"),s=$("<a></a>").attr("href",`#${o}`);s.text(n),a.append(s),e.append(a),setTimeout(function(){e.addClass("show")},100)}),$(".ht-navigation-pdp-menu").html(e),e.find("a").on("click",function(e){e.preventDefault();const t=$(this).attr("href"),i=$(t);i.length&&$("html, body").animate({scrollTop:i.offset().top-200},500)})});let t=$(".product-page__sidebar a[href=#trip_intinerary]");
2function i(){$(".review-content p").each(function(){var e=$(this),t=5*parseFloat(e.css("line-height"));e[0].scrollHeight>t?e.parent().find(".read-more").show():e.parent().find(".read-more").hide(),$(".owl-stage-outer.owl-height").css("height","auto")})}t&&t.on("click",function(e){e.preventDefault();const t=$(this).attr("href"),i=$(t);i.length&&$("html, body").animate({scrollTop:i.offset().top-200},500)})}),jQuery("div").hasClass("destination_filter_wrp")){var t=jQuery(".ht-nav-desktop .ht-nav__left a").attr("href");jQuery(".destination_filter_wrp li a").each(function(){jQuery(this).click(function(e){e.preventDefault();var i=jQuery(this).attr("alt"),o=t+"/wp-admin/admin-ajax.php",n={action:"filter_tours",limit:8,cat:i};jQuery.post(o,n,function(e){jQuery(".latest_deal_new_inner ").html(e)})})})}jQuery(".home-search .home-search__input").focus(function(){jQuery(".home-search .home-search__list").addClass("active"),jQuery(this).attr("placeholder","Search destination/region")}),jQuery(".home-search .home-search__input").blur(function(){setTimeout(function(){jQuery(".home-search .home-search__list").removeClass("active")},200)});const i=$(".pickup-dropdown-main-wrapper"),o=$(".pickup-country-dropdown"),n=$(".pickup-country-state-dropdown");$(document).mouseup(e=>{i.is(e.target)||0!==i.has(e.target).length||(i.removeClass("dropdown-active"),o.removeClass("visible"),n.removeClass("visible"))});const a=$(".pickoff-dropdown-main-wrapper"),s=$(".pickoff-country-dropdown"),r=$(".pickoff-country-state-dropdown");$(document).mouseup(e=>{a.is(e.target)||0!==a.has(e.target).length||(a.removeClass("dropdown-active"),s.removeClass("visible"),r.removeClass("visible"))}),jQuery(".ht-nav-desktop-sub-tab-item").hover(function(){jQuery(this).parent(".ht-nav-desktop-sub-tabs-group").find(".ht-nav-desktop-sub-tab-item").removeClass("is-active"),jQuery(this).addClass("is-active")});var l=document.querySelectorAll(".tour-catogory ul li a"),c=document.querySelectorAll(".tour-box-main > div");l.forEach(e=>{e.onclick=function(){var e=this.getAttribute("id"),t=document.querySelectorAll("."+e);for(let e of c)e.classList.remove("show");for(let e of l)e.classList.remove("active");this.classList.add("active");for(let e of t)e.classList.add("show")}}),jQuery("body").on("click","#gform_wrapper_4 .gform_page_footer input, #gform_wrapper_4 .gform_page_footer button",function(){jQuery(".gform_page .gform_page_fields .gform_fields .gfield, .gform_page_footer input, .gform_page_footer button ").fadeTo("fast",0)}),$(document).on("change",".ht-latest-product-filter .tour_sort",function(){var e=$
2(this).val();$(".search-filter-form input[name=orderby]").val(e),$(".search-filter-form input[name=page_num]").val(1),$(".search-filter-form").submit()}),jQuery("body").on("click",".price-duration a.icons-text",function(e){e.preventDefault(),jQuery('.form-popup[data-popup="availability-enquiry"]').css("display","flex")})}),document.addEventListener("DOMContentLoaded",function(){flatpickr(".ht-campervan-dates",{mode:"range",dateFormat:"D, d M Y",position:"below",minDate:"today",onChange:function(e,t,i){if(2===e.length){let o=e[0],n=e[1],a=Math.abs(n-o);Math.ceil(a/864e5)<5?(alert("Please select a minimum of 5 days."),i.clear()):i.input.value=t}}})}),jQuery(document).ready(function(e){var t=[{id:0,title:"Australia",subs:[{id:17,title:"Sydney"},{id:15,title:"Melbourne"},{id:19,title:"Brisbane"},{id:12,title:"Cairns"},{id:10,title:"Adelaide"},{id:16,title:"Perth"},{id:14,title:"Hobart"},{id:21,title:"Gold Coast"},{id:11,title:"Alice Springs"},{id:13,title:"Darwin"},{id:22,title:"Broome"}]}];e(".pickup-country-dropdown ul li").on("click",function(){e(this).show();var i,o=e(this).data("country"),n=e(this).data("countryname");e(".pickoff-dropdown").html('<span><svg width="25" height="23" viewBox="0 0 25 23" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M13.2684 21.95C15.4727 19.1914 20.5 12.5055 20.5 8.75C20.5 4.19531 16.8047 0.5 12.25 0.5C7.69531 0.5 4 4.19531 4 8.75C4 12.5055 9.02734 19.1914 11.2316 21.95C11.7602 22.6074 12.7398 22.6074 13.2684 21.95ZM12.25 6C12.9793 6 13.6788 6.28973 14.1945 6.80546C14.7103 7.32118 15 8.02065 15 8.75C15 9.47935 14.7103 10.1788 14.1945 10.6945C13.6788 11.2103 12.9793 11.5 12.25 11.5C11.5207 11.5 10.8212 11.2103 10.3055 10.6945C9.78973 10.1788 9.5 9.47935 9.5 8.75C9.5 8.02065 9.78973 7.32118 10.3055 6.80546C10.8212 6.28973 11.5207 6 12.25 6Z" fill="black"></path> </svg> </span> Drop off location'),e(".ht-campervan-pickup",".ht-campervan-pickoff").val(""),e(this).closest(".pickup-dropdown-main-wrapper").find(".pickup-dropdown").html('<span class="back-to-country"><svg width="10" height="17" viewBox="0 0 10 17" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M9.18652 15.4346L2.00017 8.50005L9.18652 1.56554" stroke="#A6ABAE" stroke-opacity="0.6" stroke-width="2"/> </svg> </span>'+n),"australia"===o&&(i=t[0].subs,o="Australia"),e(".ht-campervan-country input").val(o);var a=e(".pickup-country-state-dropdown"),s=e(".pickoff-country-state-dropdown");if(a.empty(),s.empty(),i){var r=e("<ul></ul>");i.forEach(function(t){var i=e("<li></li>").attr("data-state",t.title).html('<span><svg width="25" height="23" viewBox="0 0 25 23" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M13.2684 21.95C15.4727 19.1914 20.5 12.5055 20.5 8.75C20.5 4.19531 16.8047 0.5 12.25 0.5C7.69531 0.5 4 4.19531 4 8.75C4 12.5055 9.02734 19.1914 11.2316 21.95C11.7602 22.6074 12.7398 22.6074 13.2684 21.95ZM12.25 6C12.9793 6 13.6788 6.28973 14.1945 6.80546C14.7103 7.32118 15 8.02065 15 8.75C15 9.47935 14.7103 10.1788 14.1945 10.6945C13.6788 11.2103 12.9793 11.5 12.25 11.5C11.5207 11.5 10.8212 11.2103 10.3055 10.6945C9.78973 10.1788 9.5 9.47935 9.5 8.75C9.5 8.02065 9.78973 7.32118 10.3055 6.80546C10.8212 6.28973 11.5207 6 12.25 6Z" fill="black"></path></svg></span> <div class="country-list-inner-wrapper">'+t.title+"</div>");r.append(i)}),a.append(r)}if(i){r=e("<ul></ul>");i.forEach(function(t){var i=e("<li></li>").attr("data-state",t.title).html('<span><svg width="25" height="23" viewBox="0 0 25 23" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M13.2684 21.95C15.4727 19.1914 20.5 12.5055 20.5 8.75C20.5 4.19531 16.8047 0.5 12.25 0.5C7.69531 0.5 4 4.19531 4 8.75C4 12.5055 9.02734 19.1914 11.2316 21.95C11.7602 22.6074 12.7398 22.6074 13.2684 21.95ZM12.25 6C12.9793 6 13.6788 6.28973 14.1945 6.80546C14.7103 7.32118 15 8.02065 15 8.75C15 9.47935 14.7103 10.1788 14.1945 10.6945C13.6788 11.2103 12.9793 11.5 12.25 11.5C11.5207 11.5 10.8212 11.2103 10.3055 10.6945C9.78973 10.1788 9.5 9.47935 9.5 8.75C9.5 8.02065 9.78973 7.32118 10.3055 6.80546C10.8212 6.28973 11.5207 6 12.25 6Z" fill="black"></path></svg></span> <div class="country-list-inner-wrapper">'+t.title+"</div>");r.append(i)}),s.append(r)}a.addClass("visible"),e(".pickup-country-dropdown").removeClass("visible")}),e(document).on("click",".pickup-country-state-dropdown ul li",function(){var t=e(this).data("state");e(this).closest(".pickup-dropdown-main-wrapper").find(".pickup-dropdown").html("<span><svg width='15' height='23' viewBox='0 0 17 23' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M9.26836 21.95C11.4727 19.1914 16.5 12.5055 16.5 8.75C16.5 4.19531 12.8047 0.5 8.25 0.5C3.69531 0.5 0 4.19531 0 8.75C0 12.5055 5.02734 19.1914 7.23164 21.95C7.76016 22.6074 8.73984 22.6074 9.26836 21.95ZM8.25 6C8.97935 6 9.67882 6.28973 10.1945 6.80546C10.7103 7.32118 11 8.02065 11 8.75C11 9.47935 10.7103 10.1788 10.1945 10.6945C9.67882 11.2103 8.97935 11.5 8.25 11.5C7.52065 11.5 6.82118 11.2103 6.30546 10.6945C5.78973 10.1788 5.5 9.47935 5.5 8.75C5.5 8.02065 5.78973 7.32118 6.30546 6.80546C6.82118 6.28973 7.52065 6 8.25 6Z' fill='black'/></svg></span>"+t),e(".pickup-country-dropdown").removeClass("visible"),e(".pickup-country-state-dropdown").removeClass("visible"),e(".pickup-dropdown-main-wrapper").removeClass("dropdown-active"),e(".ht-campervan-pickup").val(t),e(".pickoff-dropdown-main-wrapper").addClass("dropdown-active"),e(".pickoff-country-state-dropdown").addClass("visible")}),e(document).on("click",".pickup-dropdown .back-to-country",function(){console.log("here"),e(".pickup-dropdown").html('<span><svg width="25" height="23" viewBox="0 0 25 23" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M13.2684 21.95C15.4727 19.1914 20.5 12.5055 20.5 8.75C20.5 4.19531 16.8047 0.5 12.25 0.5C7.69531 0.5 4 4.19531 4 8.75C4 12.5055 9.02734 19.1914 11.2316 21.95C11.7602 22.6074 12.7398 22.6074 13.2684 21.95ZM12.25 6C12.9793 6 13.6788 6.28973 14.1945 6.80546C14.7103 7.32118 15 8.02065 15 8.75C15 9.47935 14.7103 10.1788 14.1945 10.6945C13.6788 11.2103 12.9793 11.5 12.25 11.5C11.5207 11.5 10.8212 11.2103 10.3055 10.6945C9.78973 10.1788 9.5 9.47935 9.5 8.75C9.5 8.02065 9.78973 7.32118 10.3055 6.80546C10.8212 6.28973 11.5207 6 12.25 6Z" fill="black"/></span> Pick up location'),e(".pickup-country-state-dropdown").removeClass("visible")}),e(".pickup-dropdown").on("click",function(){e(".pickup-country-dropdown").addClass("visible"),e(".pickup-dropdown-main-wrapper").addClass("dropdown-active")}),e(".ht-nav-desktop-tab li a").each(function(){var t;e(this).on("mouseenter",function(){var i=e(this);let o=e(this).parent().attr("data-id");console.log(o),t=setTimeout(function(){i.parent("li").addClass("active-tab").siblings().removeClass("active-tab"),console.log("ht-nav-desktop-sub-tab-items-"+o),i.closest(".ht-nav-desktop__sub-menu").find(".ht-nav-desktop-sub-tab-items").removeClass("active"),i.closest(".ht-nav-desktop__sub-menu").find(".ht-nav-desktop-sub-tab-items-"+o).addClass("active")},0)}),e(this).on("mouseleave",function(){clearTimeout(t)})})}),jQuery(document).ready(function(e){function t(t,i,o,n){e(document).on("click",t,function(){if(e(i).hasClass("visible"))return e(i).removeClass("visible"),!1;e(".additional-content-dropdown").each(function(){e(this).removeClass("visible")});let a=e(this).closest(".additional-dropdown-main-wrapper").find(i);if(0===a.find("ul").length){let s=e("<ul></ul>");
2n.forEach(function(t){let i=e("<li></li>").text(t).attr("data-value",t);s.append(i)}),a.append(s),e(i).find("li").on("click",function(){let n=e(this).attr("data-value");console.log(n),console.log(o),e(o).val(n).trigger("change"),console.log("value:",t+"===="+e(o).val()),e(i).find("li").removeClass("active"),e(this).addClass("active"),e(t).find(".additional-dropdown-text").text(n),a.removeClass("visible")})}a.toggleClass("visible")})}t(".age-dropdown",".age-content-dropdown",".campervan-age-input",["18 to 20","21 to 24","25+"]),t(".country-dropdown",".country-content-dropdown",".campervan-country-input",["Australia","New Zealand","United Kingdom","Ireland","Germany","France","Spain","Belgium","USA","Netherlands","Sweden","Denmark","Afghanistan","Albania","Algeria","Andorra","Angola","Antigua and Barbuda","Argentina","Armenia","Austria","Azerbaijan","Bahamas","Bahrain","Bangladesh","Barbados","Belarus","Belize","Benin","Bhutan","Bolivia","Bosnia and Herzegovina","Botswana","Brazil","Brunei","Bulgaria","Burkina Faso","Burundi","Cabo Verde","Cambodia","Cameroon","Canada","Central African Republic","Chad","Chile","China","Colombia","Comoros","Congo (Brazzaville)","Congo (Kinshasa)","Costa Rica","Croatia","Cuba","Cyprus","Czech Republic","Djibouti","Dominica","Dominican Republic","Ecuador","Egypt","El Salvador","Equatorial Guinea","Eritrea","Estonia","Eswatini","Ethiopia","Fiji","Finland","Gabon","Gambia","Georgia","Ghana","Greece","Grenada","Guatemala","Guinea","Guinea-Bissau","Guyana","Haiti","Honduras","Hungary","Iceland","India","Indonesia","Iran","Iraq","Israel","Italy","Ivory Coast","Jamaica","Japan","Jordan","Kazakhstan","Kenya","Kiribati","Korea, North","Korea, South","Kosovo","Kuwait","Kyrgyzstan","Laos","Latvia","Lebanon","Lesotho","Liberia","Libya","Liechtenstein","Lithuania","Luxembourg","Madagascar","Malawi","Malaysia","Maldives","Mali","Malta","Marshall Islands","Mauritania","Mauritius","Mexico","Micronesia","Moldova","Monaco","Mongolia","Montenegro","Morocco","Mozambique","Myanmar","Namibia","Nauru","Nepal","Nicaragua","Niger","Nigeria","North Macedonia","Norway","Oman","Pakistan","Palau","Palestine","Panama","Papua New Guinea","Paraguay","Peru","Philippines","Poland","Portugal","Qatar","Romania","Russia","Rwanda","Saint Kitts and Nevis","Saint Lucia","Saint Vincent and the Grenadines","Samoa","San Marino","Sao Tome and Principe","Saudi Arabia","Senegal","Serbia","Seychelles","Sierra Leone","Singapore","Slovakia","Slovenia","Solomon Islands","Somalia","South Africa","South Sudan","Sri Lanka","Sudan","Suriname","Switzerland","Syria","Taiwan","Tajikistan","Tanzania","Thailand","Timor-Leste","Togo","Tonga","Trinidad and Tobago","Tunisia","Turkey","Turkmenistan","Tuvalu","Uganda","Ukraine","United Arab Emirates","Uruguay","Uzbekistan","Vanuatu","Vatican City","Venezuela","Vietnam","Yemen","Zambia","Zimbabwe"]),t(".transmission-dropdown",".transmission-content-dropdown",".campervan-transmission-input",["Manual","Auto","I don’t mind / no preference"]),t(".shower-dropdown",".shower-content-dropdown",".campervan-shower-input",["Yes","No","Unsure"]),e(document).on("click",function(t){e(t.target).closest(".additional-dropdown-main-wrapper").length||e(".additional-dropdown-main-wrapper .visible").removeClass("visible")});var i=[{id:0,title:"Australia",subs:[{id:17,title:"Sydney"},{id:15,title:"Melbourne"},{id:19,title:"Brisbane"},{id:12,title:"Cairns"},{id:10,title:"Adelaide"},{id:16,title:"Perth"},{id:14,title:"Hobart"},{id:21,title:"Gold Coast"},{id:11,title:"Alice Springs"},{id:13,title:"Darwin"},{id:22,title:"Broome"}]}];e(".pickoff-country-dropdown ul li").on("click",function(){var t,o=e(this).data("country"),n=e(this).data("countryname");e(this).closest(".pickoff-dropdown-main-wrapper").find(".pickoff-dropdown").html('<span class="back-to-country"><svg width="10" height="17" viewBox="0 0 10 17" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M9.18652 15.4346L2.00017 8.50005L9.18652 1.56554" stroke="#A6ABAE" stroke-opacity="0.6" stroke-width="2"/> </svg> </span>'+n),"australia"===o&&(t=i[0].subs);var a=e(".pickoff-country-state-dropdown");
2if(a.empty(),t){var s=e("<ul></ul>");t.forEach(function(t){var i=e("<li></li>").attr("data-state",t.title).html('<span><svg width="25" height="23" viewBox="0 0 25 23" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M13.2684 21.95C15.4727 19.1914 20.5 12.5055 20.5 8.75C20.5 4.19531 16.8047 0.5 12.25 0.5C7.69531 0.5 4 4.19531 4 8.75C4 12.5055 9.02734 19.1914 11.2316 21.95C11.7602 22.6074 12.7398 22.6074 13.2684 21.95ZM12.25 6C12.9793 6 13.6788 6.28973 14.1945 6.80546C14.7103 7.32118 15 8.02065 15 8.75C15 9.47935 14.7103 10.1788 14.1945 10.6945C13.6788 11.2103 12.9793 11.5 12.25 11.5C11.5207 11.5 10.8212 11.2103 10.3055 10.6945C9.78973 10.1788 9.5 9.47935 9.5 8.75C9.5 8.02065 9.78973 7.32118 10.3055 6.80546C10.8212 6.28973 11.5207 6 12.25 6Z" fill="black"></path></svg></span> <div class="country-list-inner-wrapper">'+t.title+"</div>");s.append(i)}),a.append(s)}a.addClass("visible")}),e(document).on("click",".pickoff-country-state-dropdown ul li",function(){var t=e(this).data("state");e(this).closest(".pickoff-dropdown-main-wrapper").find(".pickoff-dropdown").html("<span><svg width='15' height='23' viewBox='0 0 17 23' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M9.26836 21.95C11.4727 19.1914 16.5 12.5055 16.5 8.75C16.5 4.19531 12.8047 0.5 8.25 0.5C3.69531 0.5 0 4.19531 0 8.75C0 12.5055 5.02734 19.1914 7.23164 21.95C7.76016 22.6074 8.73984 22.6074 9.26836 21.95ZM8.25 6C8.97935 6 9.67882 6.28973 10.1945 6.80546C10.7103 7.32118 11 8.02065 11 8.75C11 9.47935 10.7103 10.1788 10.1945 10.6945C9.67882 11.2103 8.97935 11.5 8.25 11.5C7.52065 11.5 6.82118 11.2103 6.30546 10.6945C5.78973 10.1788 5.5 9.47935 5.5 8.75C5.5 8.02065 5.78973 7.32118 6.30546 6.80546C6.82118 6.28973 7.52065 6 8.25 6Z' fill='black'/></svg></span>"+t),e(".pickoff-country-dropdown").removeClass("visible"),e(".pickoff-country-state-dropdown").removeClass("visible"),e(".pickoff-dropdown-main-wrapper").removeClass("dropdown-active"),e(".ht-campervan-pickoff").val(t),e("input.ht-campervan-dates").click()}),e(document).on("click",".pickoff-dropdown .back-to-country",function(){console.log("here"),e(".pickoff-dropdown").html('<span><svg width="25" height="23" viewBox="0 0 25 23" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M13.2684 21.95C15.4727 19.1914 20.5 12.5055 20.5 8.75C20.5 4.19531 16.8047 0.5 12.25 0.5C7.69531 0.5 4 4.19531 4 8.75C4 12.5055 9.02734 19.1914 11.2316 21.95C11.7602 22.6074 12.7398 22.6074 13.2684 21.95ZM12.25 6C12.9793 6 13.6788 6.28973 14.1945 6.80546C14.7103 7.32118 15 8.02065 15 8.75C15 9.47935 14.7103 10.1788 14.1945 10.6945C13.6788 11.2103 12.9793 11.5 12.25 11.5C11.5207 11.5 10.8212 11.2103 10.3055 10.6945C9.78973 10.1788 9.5 9.47935 9.5 8.75C9.5 8.02065 9.78973 7.32118 10.3055 6.80546C10.8212 6.28973 11.5207 6 12.25 6Z" fill="black"/></span> Drop off location'),e(".pickoff-country-state-dropdown").removeClass("visible")}),e(".pickoff-dropdown").on("click",function(){e(".pickoff-country-state-dropdown").addClass("visible"),e(".pickoff-dropdown-main-wrapper").addClass("dropdown-active")}),e(document).on("click",".campervan-finder-2 .image-choices-choice",function(){const t=e(this).closest(".gchoice");e(".gchoice").removeClass("image-choices-choice-selected");t.find('input[type="radio"]').is(":checked");console.log("Input is checked"),t.find('input[type="radio"]').prop("checked",!0).trigger("change"),t.addClass("image-choices-choice-selected")}),e(".ht-title-rating").on("click",function(t){t.preventDefault();let i=e("#reviews");if(i.length){let t=i.offset().top-200;e("html, body").animate({scrollTop:t},800)}})}),document.addEventListener("DOMContentLoaded",e),"undefined"!=typeof gform&&gform.addAction("gform_post_render",function(t,i){e()}),document.addEventListener("DOMContentLoaded",function(){t()}),"undefined"!=typeof gform&&gform.addAction("gform_post_render",function(e,i){t()}),document.addEventListener("click",function(e){if(e.target.matches(".campervan-finder-2__form .gform_next_button")){const o=document.querySelector(".ht-campervan-pickup").value,n=document.querySelector(".ht-campervan-pickoff").value,a=document.querySelector(".ht-campervan-dates").value,s=document.querySelector(".ht-campervan-passengers").value;if(!a)return!1;function t(e){const t=e.getDate();return`${t}${t%10==1&&11!==t?"st":t%10==2&&12!==t?"nd":t%10==3&&13!==t?"rd":"th"}
2 ${e.toLocaleString("default",{month:"long"})}, ${e.getFullYear()}`}function i(e,t){const i=e.trim().split(/[,\s]+/),o=parseInt(i[1],10),n=i[2];return new Date(t,{Jan:0,Feb:1,Mar:2,Apr:3,May:4,Jun:5,Jul:6,Aug:7,Sep:8,Oct:9,Nov:10,Dec:11}[n],o)}const r=(new Date).getFullYear(),[l,c]=a.split(" to "),d=i(l,r);let u=i(c,r);u<d&&(u=i(c,r+1));const p=t(d),h=t(u),m=Math.abs(u-d),v=`${o} > ${n} &nbsp;&nbsp; ${Math.ceil(m/864e5)} Days &nbsp;&nbsp; ${s} <br>${p} > ${h}`;document.querySelector(".ht-campervans_all_output").innerHTML=v}}),document.addEventListener("DOMContentLoaded",function(){var e=document.querySelector(".ht-campervan-passengers"),t=document.getElementById("adult-count"),i=document.getElementById("child-count");if(e){e.addEventListener("click",function(e){e.stopPropagation(),document.getElementById("passenger-dropdown-content").classList.toggle("open")}),document.addEventListener("click",function(){document.getElementById("passenger-dropdown-content").classList.remove("open")}),document.querySelectorAll(".increment, .decrement").forEach(function(o){o.addEventListener("click",function(o){o.stopPropagation();var n,a=document.getElementById(this.getAttribute("data-target")),s=parseInt(a.value);this.classList.contains("increment")?s<9&&(a.value=s+1):this.classList.contains("decrement")&&s>0&&s>0&&(a.value=s-1),n=parseInt(t.value)+parseInt(i.value),console.log(n),e.value=n>10?"10+ Passengers":n+" Passengers"})}),document.querySelector(".done-button").addEventListener("click",function(){document.getElementById("passenger-dropdown-content").classList.remove("open")})}let o=new URLSearchParams(window.location.search).get("category");if(o){let e=document.querySelector('.tour-filter__btns [data-package="'+o+'"]');if(e){let t=document.querySelector(".tour-filter-and-sort");t&&setTimeout(function(){let i=t.getBoundingClientRect().top+window.scrollY-150;console.log("menuScrollToOffset"),console.log(i),window.scrollTo({top:i,behavior:"smooth"}),e.click(),document.querySelector(".tour-filter__mobile-toggle").innerHTML=e.innerHTML},200)}}let n=document.querySelector(".campervan-heading-desc.layout2 .button-group a:first-child"),a=document.querySelector(".campervan-finder-2");n&&a&&n.addEventListener("click",function(e){e.preventDefault();let t=a.getBoundingClientRect().top+window.scrollY-200;window.scrollTo({top:t,behavior:"smooth"})})}),window.addEventListener("load",function(){setTimeout(function(){const e=[].slice.call(document.querySelectorAll("video.lazy-video"));if("IntersectionObserver"in window){const t=new IntersectionObserver(function(e,i){e.forEach(function(e){if(e.isIntersecting){const i=e.target;i.querySelectorAll("source").forEach(e=>{e.src=e.dataset.src}),i.load(),i.classList.remove("lazy-video"),t.unobserve(i)}})});e.forEach(e=>{t.observe(e)})}},300)})},620(){jQuery(document).ready(function(){$(".ht-banner-slider").trigger("destroy.owl.carousel"),jQuery("body:not(.page-template-sale) .ht-banner-slider, body:not(.home) .ht-banner-slider").owlCarousel({autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!0,loop:!0,nav:!0,lazyLoad:!0,dots:!1,items:1,navText:['<img src="'+frontend_ajax_object.stylesheeturl+'/images/arrow-left.svg">','<img src="'+frontend_ajax_object.stylesheeturl+'/images/arrow-right.svg">']}),$(".page-template-sale .ht-banner-slider").trigger("destroy.owl.carousel");const e=$("#search-input, .search-input"),t=$("#search-list");e.on("click",function(){t.toggle()}),$(document).on("click",function(i){t.is(i.target)||0!==t.has(i.target).length||e.is(i.target)||t.hide()})})},696(){!function(e){var t={hamburgerId:"sm_menu_ham",wrapperClass:"sm_menu_outer",submenuClass:"submenu",menuStyle:"slide",onMenuLoad:function(){return!0},onMenuToggle:function(){return!0}};e.fn.simpleMobileMenu=function(i){if(0===this.length)return this;var o={},n=e(this),a=function(){o.overlay=e("<div/>",{id:"smOverlay",class:"overlay"}),o.hamburger=e("<div/>",{id:o.settings.hamburgerId,html:"<span></span><span></span><span></span><span></span>"}),o.smmOuter=e("<div/>",{class:o.settings.wrapperClass+" "+o.styleClass}),n.appendTo(o.smmOuter),o.hamburger.add(o.smmOuter).appendTo(e("body")),o.overlay.appendTo(e("body"))}
2,s=function(){o.smmOuter.find("ul."+o.settings.submenuClass).each(function(){var t=e(this),i=t.closest("li"),n=i.find("> a"),a=e("<li/>",{class:"back",html:"<a href='#'>"+n.text()+"</a>"});i.addClass("hasChild"),"slide"===o.settings.menuStyle.toLowerCase()&&a.prependTo(t)})},r=function(t){e("#smOverlay").toggleClass("open"),e("#"+o.settings.hamburgerId).toggleClass("open"),e("."+o.settings.wrapperClass).toggleClass("active").find("li.active").removeClass("active"),e("body").toggleClass("mmactive"),"accordion"===o.settings.menuStyle.toLowerCase()&&e("."+o.settings.wrapperClass).find("ul."+o.settings.submenuClass).hide(),"function"==typeof o.settings.onMenuToggle&&o.settings.onMenuToggle(n,e("#"+o.settings.hamburgerId).hasClass("open"))};o.settings=e.extend({},t,i),o.styleClass="slide"===o.settings.menuStyle.toLowerCase()?"slide":"accordion",a(),s(),"function"==typeof o.settings.onMenuLoad&&o.settings.onMenuLoad(n),o.hamburger.click(r),o.overlay.click(r),o.smmOuter.filter(".slide").find("li.hasChild > a").click(function(t){e("."+o.settings.wrapperClass).scrollTop(0),e(this).parent().addClass("active").siblings().removeClass("active")}
2),o.smmOuter.filter(".accordion").find("li.hasChild > a").click(function(t){t.preventDefault();var i=e(this),n=e(this).parent(),a=n.siblings(".active");n.find("> ."+o.settings.submenuClass).slideToggle(function(){if(e(this).is(":visible")){var t=i[0].offsetTop;e("."+o.settings.wrapperClass).stop().animate({scrollTop:t},300)}}),a.find("ul."+o.settings.submenuClass).slideUp(function(){e(this).find(".hasChild").removeClass("active")}),n.toggleClass("active").siblings().removeClass("active")}),o.smmOuter.find("li.back a").click(function(t){t.preventDefault(),e(this).closest("ul."+o.settings.submenuClass).parent().removeClass("active")})}}(jQuery)},486(){jQuery(document).ready(function(e){e(".reviews-gallery").hasClass("owl-loaded")||(e(".reviews-gallery").addClass("owl-carousel owl-theme"),e(".reviews-gallery").owlCarousel({loop:!0,margin:5,nav:!1,dots:!1,responsiveClass:!0,lazyLoad:!0,responsive:{0:{items:2.5},600:{items:3.5},1e3:{items:6,loop:!1}}})),Fancybox.bind("[data-fancybox]",{caption:!1})}),document.addEventListener("DOMContentLoaded",()=>{const e=document.querySelectorAll(".ht-reviews-list-item"),t=document.querySelectorAll(".filter-btn"),i=document.querySelector(".reviews-loadmore");let o=0,n="all";function a(){o=0,e.forEach(e=>{const t=e.getAttribute("data-rating");"all"===n||n===t?(e.classList.add("filtered"),e.classList.remove("visible")):e.classList.remove("filtered","visible")}),s()}function s(){const e=document.querySelectorAll(".ht-reviews-list-item.filtered");Array.from(e).slice(o,o+2).forEach(e=>e.classList.add("visible")),o+=2,i&&(o>=e.length?i.style.display="none":i.style.display="block")}t.forEach(e=>{e.addEventListener("click",()=>{t.forEach(e=>e.classList.remove("active")),e.classList.add("active"),n=e.getAttribute("data-rating"),a()})}),i&&i.addEventListener("click",s),a()}),document.addEventListener("DOMContentLoaded",()=>{let e=document.querySelectorAll(".ht-reviews-list-item"),t=document.querySelectorAll(".review-table-cell"),i=document.querySelector(".reviews-loadmore"),o=0,n="all";function a(){o=0,e.forEach(e=>{let t=e.getAttribute("data-rating");"all"===n||n===t?(e.classList.add("filtered"),e.classList.remove("visible")):e.classList.remove("filtered","visible")}),s()}function s(){let e=document.querySelectorAll(".ht-reviews-list-item.filtered");Array.from(e).slice(o,o+3).forEach(e=>e.classList.add("visible")),o+=3,i&&(o>=e.length?i.style.display="none":i.style.display="block")}t.forEach(i=>{i.addEventListener("click",()=>{let o=i.getAttribute("data-rating");Array.from(e).filter(e=>"all"===o||e.getAttribute("data-rating")===o).length>0&&(t.forEach(e=>e.classList.remove("active")),i.classList.add("active"),n=o,a(),t.forEach(e=>{e.classList.remove("active")}),i.classList.add("active"))})}),i&&i.addEventListener("click",s),a()})},376(){document.addEventListener("DOMContentLoaded",function(){const e=document.querySelector(".home_card_slider_carousel");e&&setTimeout(()=>{e.classList.add("loaded")},1500)})}};const t={};function o(i){const n=t[i];if(void 0!==n)return n.exports;const a=t[i]={exports:{}};return e[i](a,a.exports,o),a.exports}o.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var i in t)o.o(t,i)&&!o.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},o.o=(e,t)=>Object.hasOwn(e,t),(()=>{"use strict";o(696),o(8),o(266),o(620),o(278),o(486),o(820),o(779),o(376),o(207)})()})();

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.