1import{_ as j}from"./OE792LXM.js";import{_ as A,h as E,g as F}from"./C4px83aR.js";import{bv as H,c5 as U,bf as q,bN as G,dj as K,dk as J,dl as Q,b4 as W,dm as X,b5 as Y}from"./Le86XqBW.js";import{_ as Z}from"./Bjnhd-IB.js";import{_ as ee,a as te,b as ae}from"./YFEp1gXM.js";import{_ as se}from"./71WsTiaD.js";import{u as oe}from"./Bw2qFNX9.js";import{B as ne,v as ie,D as e,a4 as u,a5 as l,$ as s,a7 as L,a6 as i,O as c,V as n,G as r,N as b,a1 as p,a8 as ce,aa as C,k as d,U as o}from"./D8NHD-St.js";const re={class:"card-image"},le={class:"image","aria-hidden":"true"},de={class:"is-size-7"},ue={class:"card-content"},pe={class:"card__title is-5"},me={class:"is-size-7"},_e={class:"subtitle is-7 is-size-7-mobile card-subtitle mb-0 has-text-wrap-balance"},he={class:"is-size-7 has-text-weight-bold tags mt-2"},fe={key:0,class:"tag"},ge={key:1,class:"tag"},ye={key:0,class:"mt-2"},ve={class:"is-size-6 is-size-7-mobile"},be={class:"has-text-weight-bold is-size-4 has-text-primary has-line-height-1"},ke={class:"is-size-7"},xe={key:0,class:"soldout-overlay is-rounded"},$e={class:"tag is-dark is-large is-uppercase has-text-weight-normal"},ze=ne({__name:"SearchResult",props:{product:{},keepLayout:{type:Boolean},headingLevel:{},focused:{type:Boolean},priority:{type:Boolean}},setup(m){const _=m,{product:t}=ie(_),D=d(()=>_.headingLevel?`h${_.headingLevel}`:"h3"),N=H(),O=()=>{_.product&&N.emit("shop:offer:searchresult:clicked",_.product)},x=d(()=>t.value?.variants.find(a=>a.id===t.value?.displayedVariantId)),S=d(()=>oe(t.value?.rooms.filter(a=>a.roomType).map(a=>X(a.roomType))??[])),$=d(()=>!E(t.value?.variants??[])),g=d(()=>{if(x.value)return x.value.persons;const{min:a,max:y}=t.value?.persons??{};if(a===y)return a}),z=d(()=>F(t.value?.variants??[])??t.value?.price),k=d(()=>{if(!t.value)return;const{total:a,list:y}=t.value.price,h={before:y,after:a};return g.value===2&&(h.before/=g.value,h.after/=g.value),h});return(a,y)=>{const h=j,B=A,V=U,T=Z,I=ee,P=se,v=q,w=te,R=ae,M=W;return e(t)?(o(),u(M,{key:0,to:`${a.$shop.offerLink(e(t))}`,class:L(["is-block is-fullheight is-relative",{"is-focused":m.focused}]),onClick:O},{default:l(()=>[s("article",{class:L(["card card-offer is-fullheight is-clipped",{"keep-layout":m.keepLayout}])},[s("div",re,[s("figure",le,[e(t).image?(o(),u(h,{key:0,thumbhash:e(t).image.hash,alt:e(t).contact?.name??"",fetchpriority:m.priority?"high":"low",decoding:"async",loading:m.priority?"eager":"lazy",class:"has-img-fallback",src:a.$shop.resizeImageTo(e(t).image,720,50),"src-set":a.$shop.srcSet(e(t).image,[[440,200],[200,220],[290,220],[480,300],[288,180],[352,220],[416,260]]),"auto-sizes":"",width:"720",height:"320"},null,8,["thumbhash","alt","fetchpriority","loading","src","src-set"])):i("",!0)]),c(T,{top:"",left:""},{default:l(()=>[c(V,null,{fallback:l(()=>[c(B,{decorations:e(t).decorations},null,8,["decorations"])]),default:l(()=>[c(B,{decorations:e(t).decorations},null,8,["decorations"])]),_:1})]),_:1}),e(t)&&!e($)?(o(),u(T,{key:0,right:"",top:""},{default:l(()=>[c(I,{before:e(z).list,after:e(z).total,class:"is-size-6 is-flex is-flex-direction-column py-1 has-line-height-1 is-height-auto"},{default:l(()=>[s("span",de,n(a.$t("general.up-to")),1)]),_:1},8,["before","after"])]),_:1})):i("",!0)]),s("div",ue,[s("div",pe,[e(t).contact?(o(),r(b,{key:0},[s("span",me,[p(n(e(t).contact.city),1),e(t).contact.state?(o(),r(b,{key:0},[p(", "+n(e(t).contact.state),1)],64)):i("",!0)]),(o(),u(ce(e(D)),{class:"has-text-weight-bold is-size-5 title has-text-wrap-balance mb-0"},{default:l(()=>[p(n(e(t).contact.name),1)]),_:1})),e(t).contact.category>0?(o(),u(P,{key:0,stars:e(t).contact.category},null,8,["stars"])):i("",!0)],64)):i("",!0)]),s("div",null,[s("p",_e,n(e(t).display),1),s("div",he,[(o(!0),r(b,null,C(e(S),f=>(o(),r("span",{key:f,class:"tag"},[c(v,{"path-data":e(G),scale:.75,class:"mr-1"},null,8,["path-data"]),s("span",null,n(a.$t(`roomType.${f}`)),1)]))),128)),e(t).persons?(o(),r("span",fe,[c(v,{"path-data":e(K),scale:.75,class:"mr-1"},null,8,["path-data"]),s("span",null,[c(w,{min:e(t).persons.min,max:e(t).persons.max},null,8,["min","max"]),p(" "+n(a.$t("general.person",e(g))),1)])])):i("",!0),e(t).nights?(o(),r("span",ge,[c(v,{"path-data":e(J),scale:.75,class:"mr-1"},null,8,["path-data"]),s("span",null,[c(w,{min:e(t).nights.min,max:e(t).nights.max},null,8,["min","max"]),p(" "+n(a.$t("general.nights")),1)])])):i("",!0),(o(!0),r(b,null,C(e(t).boards,f=>(o(),r("span",{key:f.shortName,class:"tag"},[c(v,{"path-data":e(Q),scale:.75,class:"mr-1"},null,8,["path-data"]),p(" "+n(f.longName),1)]))),128))])]),e(t).price?(o(),r("div",ye,[s("div",ve,[e(k)?(o(),u(R,{key:0,"before-price":e(k).before,"after-price":e(k).after,class:"reduction"},null,8,["before-price","after-price"])):i("",!0),s("p",be,n(a.$formatter.currencySymbol(e(t).price.display,e(t).price.currency)),1),s("p",ke,n(a.$t(`priceType.${e(t).price.displayType}`)),1)])])):i("",!0)])],2),e($)?(o(),r("div",xe,[s("span",$e,n(a.$t("general.sold-out")),1)])):i("",!0)]),_:1},8,["to","class"])):i("",!0)}}}),Se=Object.assign(Y(ze,[["__scopeId","data-v-45d62db4"]]),{__name:"SearchResult"});export{Se as _}; 2//# debugId=73b662df-3395-42de-b4e3-8482d6c8669d
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.