1document.addEventListener("alpine:initialized",()=>{const t=new URLSearchParams(window.location.search),s=t.get("faq");if(s){const t=document.getElementById("faq-"+s);if(t){const s=Alpine.$data(t);s&&void 0!==s.open&&(s.open=!0,history.replaceState(null,"",window.location.pathname),setTimeout(()=>t.scrollIntoView({behavior:"smooth",block:"start"}),50))}}const e=t.get("attraction");e&&(window.__pendingAttraction=e,history.replaceState(null,"",window.location.pathname))}),document.addEventListener("alpine:init",()=>{Alpine.data("flyoutSearch",()=>({query:"",debounceTimer:null,results:{page:[],post:[],offer:[],add_on:[],hotel_room:[],apartment:[],activity:[],conference_offer:[],conference_room:[],faq:[],attraction:[]},hasPages:!1,hasPosts:!1,hasOffers:!1,hasAddOns:!1,hasHotelRooms:!1,hasApartments:!1,hasActivities:!1,hasConferenceOffers:!1,hasConferenceRooms:!1,hasFaqs:!1,hasAttractions:!1,loading:!1,showResults:!1,showNoResults:!1,search(){clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(()=>{this._doSearch()},300)},_doSearch(){this.query.trim().length<2?this.reset():(this.loading=!0,fetch(flyoutSearchAjax.ajax_url,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({action:"flyout_search",query:this.query.trim()})}).then(t=>t.json()).then(t=>{this.loading=!1;const s=s=>(t[s]||[]).map(t=>({uid:t.uid,id:t.id,title:t.title,permalink:t.permalink,site_name:t.site_name}));this.results={page:s("page"),post:s("post"),offer:s("offer"),add_on:s("add_on"),hotel_room:s("hotel_room"),apartment:s("apartment"),activity:s("activity"),conference_offer:s("conference_offer"),conference_room:s("conference_room"),faq:s("faq"),attraction:s("attraction")},this.hasPages=this.results.page.length>0,this.hasPosts=this.results.post.length>0,this.hasOffers=this.results.offer.length>0,this.hasAddOns=this.results.add_on.length>0,this.hasHotelRooms=this.results.hotel_room.length>0,this.hasApartments=this.results.apartment.length>0,this.hasActivities=this.results.activity.length>0,this.hasConferenceOffers=this.results.conference_offer.length>0,this.hasConferenceRooms=this.results.conference_room.length>0,this.hasFaqs=this.results.faq.length>0,this.hasAttractions=this.results.attraction.length>0;const e=this.hasPages||this.hasPosts||this.hasOffers||this.hasAddOns||this.hasHotelRooms||this.hasApartments||this.hasActivities||this.hasConferenceOffers||this.hasConferenceRooms||this.hasFaqs||this.hasAttractions;this.showResults=e,this.showNoResults=!e}).catch(t=>{console.error("Fetch error:",t),this.loading=!1,this.reset()}))},reset(){this.results={page:[],post:[],offer:[],add_on:[],hotel_room:[],apartment:[],activity:[],conference_offer:[],conference_room:[],faq:[],attraction:[]},this.hasPages=this.hasPosts=this.hasOffers=this.hasAddOns=this.hasHotelRooms=this.hasApartments=this.hasActivities=this.hasConferenceOffers=this.hasConferenceRooms=this.hasFaqs=this.hasAttractions=!1,this.showResults=this.showNoResults=!1},clearSearch(){this.query="",this.results={page:[],post:[],offer:[],add_on:[],hotel_room:[],apartment:[],activity:[],conference_offer:[],conference_room:[],faq:[],attraction:[]},this.showResults=!1,this.showNoResults=!1,this.loading=!1}}))}); 2//# sourceMappingURL=flyout-search.min.js.map
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.