1import{_ as W,a as A,b as B}from"./DAVtNkM4.js";import{_ as L}from"./CgFoWQrr.js";import{u as U,a as z}from"./AaeZjh46.js";import{aK as F,aL as H,aM as f,b6 as J,aN as p,aO as M,aP as e,aQ as O,aJ as Y,b2 as j,aR as i,aS as y,aT as v,aU as w,aV as s,aW as g,aX as I,aY as k,b1 as _,b0 as q}from"./CpGpzoR8.js";import"./vLtF5-6X.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};o.SENTRY_RELEASE={id:"3341ff1504e6d8903f38e8cfb4cf65119aff65ef"};var t=new o.Error().stack;t&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[t]="6e969b08-a0e9-4016-9746-7df3eea2fdde",o._sentryDebugIdIdentifier="sentry-dbid-6e969b08-a0e9-4016-9746-7df3eea2fdde")}catch{}})();const K={class:"main-content background-color"},Q={class:"row"},X={class:"review"},G={class:"review-score"},Z={class:"review-name"},ee={key:0},ae={__name:"reviews",async setup(o){let t,r;const{page:a,fetchPage:D}=U(),{defaults:$,fetchDefaults:x}=z(),{locale:m}=H(),N=Y();[t,r]=f(()=>D()),await t,r(),[t,r]=f(()=>x()),await t,r();const{data:u}=([t,r]=f(()=>O("reviews",{query:{language:m.value},key:`${m.value}/reviews`})),t=await t,r(),t),R=()=>u.value.filter(c=>c.rating).reduce((c,l)=>c+parseInt(l.rating,10),0)/u.value.length,T=d=>{const c=parseInt(d/2,10),l=Array(c).fill("fa-star");return d/2%1!==0&&l.push("fa-star-half"),l},b=N.public.siteUrl;return J({script:[{type:"application/ld+json",innerHTML:JSON.stringify({"@context":"http://schema.org","@type":"AggregateRating","@id":`${b}#aggregaterating`,bestRating:10,ratingValue:R(),ratingCount:u.value.length,itemReviewed:{"@id":`${b}#hotel`}})}]}),(d,c)=>{const l=A,C=L,P=B,S=j("font-awesome-icon"),E=W;return i(),p(E,{page:e(a)},{default:M(()=>[e(a).headingImage?(i(),p(l,{key:0,"heading-image":{image:e(a).headingImage,imageWebp:e(a).headingImageWebp,imagePortrait:e(a).headingImagePortrait,imagePortraitWebp:e(a).headingImagePortraitWebp}},null,8,["heading-image"])):y("",!0),v(C,{breadcrumbs:e(a).breadcrumbs,class:w(e(a).headingImage?"":"no-slider"),home:e($)[e(m)].website.hotelName},null,8,["breadcrumbs","class","home"]),v(P,{title:e(a).title||e(a).header,content:e(a).content,"booking-id":e(a).bookingID},null,8,["title","content","booking-id"]),s("section",K,[s("div",Q,[(i(!0),g(I,null,k(e(u),n=>(i(),g("div",{key:n.ID,class:"columns column12"},[s("div",X,[s("h3",null,_(n.header),1),s("span",G,[(i(!0),g(I,null,k(T(n.rating),(h,V)=>(i(),p(S,{key:`${n.ID}-${h}-${V}`,icon:`fa ${h}`,size:"1x"},null,8,["icon"]))),128))]),s("p",null,'"'+_(n.content)+'"',1),s("div",Z,[q(_(n.firstName)+" ",1),n.date?(i(),g("span",ee," , "+_(d.$d(new Date(n.date.date.split(" ")[0]),"short")),1)):y("",!0),s("div",{class:w(["review-logo",n.source])},null,2)])])]))),128))])])]),_:1},8,["page"])}}},ie=F(ae,[["__scopeId","data-v-149a0b01"]]);export{ie as default}; 2//# sourceMappingURL=BbX56NWj.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.