1import{_ as R}from"./B2HA5h9Q.js";import{_ as S}from"./DylI3uTB.js";import{at as E,g as c,p as B,ar as V,au as v,R as g,U as H,G as N,av as O,o,c as i,q as m,J as z,B as A,C as f,F as D,t as F,b as k,a as M,z as I,E as K,r as L,_ as P}from"./DVhzBP7E.js";import"./B_9s2iSN.js";import"./Bd4zp4ib.js";const $="gvr_rec_exp";function q(){const t=E($,{default:()=>"",maxAge:7776e3,sameSite:"lax",path:"/"});return t.value!=="metarank"&&t.value!=="algolia"&&(t.value=Math.random()<.5?"metarank":"algolia"),c(()=>t.value==="algolia"?"algolia":"metarank")}const G={class:"homepage-recommendations","aria-label":"More homes to explore"},T=["onClick"],j={key:1,class:"recommendation-placeholder"},J=B({__name:"RecommendedRow",setup(t){const{recEvent:u}=V(),a=q(),_=v()?.keyword||v()?.utm_term,n=g("/api/rec/home",{params:{count:12,..._?{kw:_}:{}},server:!1,lazy:!0,immediate:!1},"$pI8fVVy_qM"),d=g("/api/recommendations",{params:{limit:12,surface:"home_ab"},server:!1,lazy:!0,immediate:!1},"$mRZkG78hKA");H(()=>{a.value==="algolia"?d.execute():n.execute()});const r=c(()=>a.value==="algolia"?(d.data.value?.recommendations||[]).map(e=>({id:String(e.id),name:e.name,web_name:e.webName||e.name,city:e.city,state_name:e.state,resort_area_name:e.resortArea,bedrooms_number:e.bedrooms!=null?String(e.bedrooms):void 0,bathrooms_number:e.bathrooms!=null?String(e.bathrooms):void 0,max_occupants:e.maxOccupants!=null?String(e.maxOccupants):void 0,default_image_path:e.image,price_daily:e.priceDaily!=null?String(e.priceDaily):null,reva_rating_average:e.ratingAverage,reva_review_count:e.reviewCount})):n.data.value?.properties||[]),h=c(()=>a.value==="algolia"?"Homes picked for you":n.data.value?.personalized?"Picked for you from what you've been browsing":"Popular homes guests are booking right now"),p=L(!1);N(r,e=>{!p.value&&e.length>=4&&(p.value=!0,u("row_impression","",{source:"home",variant:a.value}))});function b(e){u("click",e,{ranking:a.value==="metarank"?n.data.value?.ranking:null,source:"home",variant:a.value})}return(e,s)=>{const x=R,w=S,y=K,C=O("reveal");return o(),i("section",G,[m(r).length>=4?z((o(),A(w,{key:0,title:"Recommended for you",subtitle:m(h),"link-to":"/listings/","link-label":"Browse all"},{default:f(()=>[(o(!0),i(D,null,F(m(r),l=>(o(),i("div",{key:l.id,class:"contents",onClick:U=>b(l.id)},[k(x,{property:l},null,8,["property"])],8,T))),128))]),_:1},8,["subtitle"])),[[C]]):(o(),i("div",j,[s[1]||(s[1]=M("h2",null,"Still finding your favorite?",-1)),k(y,{to:"/listings/"},{default:f(()=>[...s[0]||(s[0]=[I("Explore all Florida homes â",-1)])]),_:1})]))])}}}),ee=Object.assign(P(J,[["__scopeId","data-v-e81392cf"]]),{__name:"HomepageRecommendedRow"});export{ee as default};
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.