1import{u as $,_ as D}from"#entry";import{N as L,r as u,c as m,w as T,I as d,a1 as l,al as B,a6 as s,a2 as H,ac as f,J as e,ah as _,Y as N,ad as C,a3 as S,a4 as A,ap as y,aw as h}from"./D9Q9swNm.js";import{u as V}from"./BrDF5UPz.js";import{v as g,t as x}from"./CpZQd9Wh.js";import"./ZdSR-3Is.js";import"./EFBNc4s0.js";import"./92s3wAHG.js";const j={class:"flex flex-col items-start"},R={class:"text-grey-medium text-xs hidden lg:inline-block"},z={class:"pt-3"},E=["innerHTML"],F=["innerHTML"],Q={__name:"Description",setup(I){const{$screen:b}=$(),{property:r}=L(V()),a=u(!1),k=m(()=>{let t=r.value?.properties?.rating||0;return r.value?.properties?.integration==="interhome"&&(t=r.value?.properties?.rating||r.value?.property_basic_informations?.evaluation_stars||0),Array.from({length:5},(n,i)=>({icon:"star",class:i<t?"text-primary":"text-grey-darker"}))}),o=u(g(r.value?.property_descriptions?.description||"")),v=u(x(o.value,255));T(r,()=>{o.value=g(r.value?.property_descriptions?.description||""),v.value=x(o.value,255)},{deep:!0});const c=m(()=>o.value.length>255||!1),w=m(()=>{const{property_locations:t}=r.value||{};return t?[t.suburb&&`${t.suburb}, `,t.state&&`${t.state} - `,t.country&&`${t.country}`].filter(Boolean).join(""):""});return(t,n)=>{const i=D;return l(),d("div",j,[B(t.$slots,"default",{},()=>[s("p",R,[H(i,{icon:"map-marker-alt",class:"mr-2"}),s("strong",null,f(e(w)),1)]),s("div",{class:_(["flex items-center w-full justify-between",{"mt-6":e(b)?.isMobile}])},[s("h2",null,[s("strong",null,f(e(r)?.properties?.name??""),1)]),n[1]||(n[1]=s("div",{class:"items-center min-w-[85px] hidden lg:flex"},null,-1))],2)]),s("div",null,[(l(!0),d(N,null,C(e(k),(p,M)=>(l(),S(i,{key:M,icon:p.icon,class:_(p.class)},null,8,["icon","class"]))),128))]),s("div",null,[s("div",z,[y(s("span",{innerHTML:e(o)},null,8,E),[[h,!e(c)||e(a)]]),y(s("span",{innerHTML:e(v)},null,8,F),[[h,e(c)&&!e(a)]])]),e(c)?(l(),d("button",{key:0,class:"btn btn-link no-underline action-link p-0 mt-2",onClick:n[0]||(n[0]=p=>a.value=!e(a))},f(e(a)?"Close":"Read More"),1)):A("",!0)])])}}};export{Q 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.