1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./C6EH4f4W.js","./DCyeFcVR.js","./entry.BrNrazmu.css"])))=>i.map(i=>d[i]); 2import{aC as xe,q as oe,u as ne,s as o,y as b,a as i,A as r,o as t,J as ue,m as c,k as d,b as j,c as x,D as ge,f as v,t as g,at as me,F as q,d as Q,v as ve,a1 as ke,aB as Te,B as Ee,aH as we,O as de,I as fe,aG as Ce,S as se,aD as Se,V as Oe,Y as je,T as re,U as ie,W as Ae}from"./DCyeFcVR.js";import{n as Be,a as Ie,u as Le}from"./aD-saLfY.js";import{_ as ze}from"./CPYoOgWn.js";import{_ as Ne}from"./DMZEUcZr.js";import Re from"./LhCiwln8.js";import $e from"./CEWiK427.js";import Me from"./t0O5kcoZ.js";import{_ as Ge}from"./DplGIlxi.js";import{_ as De,a as Je}from"./CrEdmZtx.js";import{i as Ue,v as Fe,u as He}from"./DEJO65QX.js";import{n as pe}from"./swAZvLvx.js";import Ke from"./CrL913EX.js";import{g as ae,a as We}from"./P_cU2zAF.js";import{o as Pe,O as Xe,a as Y,e as le,b as ce,c as _e,u as Ve,g as Ze,d as qe}from"./Ra0JoAId.js";import Qe from"./BVwJp2oA.js";import{c as Ye}from"./BE24_G_B.js";import{n as et}from"./5LMxbqup.js";import{u as tt}from"./CFPjii2T.js";import"./BI1kTDjq.js";import"./D0N1TuNX.js";import"./Bd0lGyqO.js";import"./iOFGY2gD.js";import"./DKzNMMjz.js";import"./BK4WnWnN.js";import"./BZ4OY99Z.js";import"./dKzbW00s.js";import"./CHMwUKUF.js";import"./BB9qluyJ.js";import"./Btqb_qF3.js";import"./CF__aqrP.js";import"./BD3fcAeq.js";const ot=xe(` 3 query gastroQuery($id: ID!) { 4 Gastro(filter: { id: { _eq: $id } }) { 5 id 6 gastroname: Gastroname 7 status 8 kategorie 9 hero_image { 10 type: __typename 11 pixxio 12 image { 13 id 14 copyright 15 focal_point_x 16 focal_point_y 17 } 18 media_description 19 } 20 object_contact_strasse: OBJECT_CONTACT_STRASSE 21 object_contact_tel: OBJECT_CONTACT_TEL 22 object_contact_mobil: OBJECT_CONTACT_MOBIL 23 object_contact_email: OBJECT_CONTACT_EMAIL 24 object_contact_webseite1: OBJECT_CONTACT_WEBSEITE1 25 satourn_plz 26 satourn_ort 27 latitude: Latitude 28 longitude: Longitude 29 object_closed_montag: OBJECT_CLOSED_MONTAG 30 object_closed_dienstag: OBJECT_CLOSED_DIENSTAG 31 object_closed_mitwoch: OBJECT_CLOSED_MITWOCH 32 object_closed_donnerstag: OBJECT_CLOSED_DONNERSTAG 33 object_closed_freitag: OBJECT_CLOSED_FREITAG 34 object_closed_samstag: OBJECT_CLOSED_SAMSTAG 35 object_closed_sonntag: OBJECT_CLOSED_SONNTAG 36 object_closed_feiertag: OBJECT_CLOSED_FEIERTAG 37 merkmal 38 room_sitzeindoor: ROOM_SITZEINDOOR 39 room_sitzegastgarten: ROOM_SITZEGASTGARTEN 40 room_sitzeterrasse: ROOM_SITZETERRASSE 41 room_sitzesaal: ROOM_SITZESAAL 42 stammdaten_translation { 43 languages_code { 44 code 45 } 46 object_text_name: OBJECT_TEXT_NAME 47 seo { 48 slug 49 title 50 description 51 meta_robots 52 opengraph_image { 53 id 54 } 55 } 56 } 57 allgemein_texte_so_translation { 58 languages_code { 59 code 60 } 61 object_text_teaser_sommer: OBJECT_TEXT_TEASER_SOMMER 62 object_text_teaser_sommer_html: OBJECT_TEXT_TEASER_SOMMER_HTML 63 object_text_beschreibung_sommer_html: OBJECT_TEXT_BESCHREIBUNG_SOMMER_HTML 64 } 65 oeffnungszeiten_translation { 66 languages_code { 67 code 68 } 69 object_oeffnungszeiten: OBJECT_OEFFNUNGSZEITEN 70 object_betriebsurlaub: OBJECT_BETRIEBSURLAUB 71 } 72 weitere_info_translation { 73 languages_code { 74 code 75 } 76 object_text_weitere_info: OBJECT_TEXT_WEITERE_INFO 77 } 78 anreise_translation { 79 languages_code { 80 code 81 } 82 object_anreise: OBJECT_ANREISE 83 object_anreise_link: OBJECT_ANREISE_LINK 84 } 85 weekly_schedule { 86 weekday 87 from_time 88 to_time 89 } 90 content_teaser { 91 id 92 gastroname: Gastroname 93 stammdaten_translation { 94 languages_code { code } 95 object_text_name: OBJECT_TEXT_NAME 96 seo { 97 slug 98 } 99 } 100 allgemein_texte_so_translation { 101 languages_code { code } 102 object_text_teaser_sommer: OBJECT_TEXT_TEASER_SOMMER 103 object_text_teaser_sommer_html: OBJECT_TEXT_TEASER_SOMMER_HTML 104 } 105 hero_image { 106 type: __typename 107 pixxio 108 image { 109 id 110 copyright 111 focal_point_x 112 focal_point_y 113 } 114 } 115 images(filter: { is_primary: { _eq: true } }, limit: 1) { 116 oa_images_id { 117 url 118 oa_author_name 119 oa_copyright 120 } 121 } 122 } 123 images(sort: ["sort"]) { 124 is_primary 125 is_logo 126 oa_images_id { 127 id 128 url 129 oa_author_name 130 oa_copyright 131 } 132 } 133 media_galerie { 134 item { 135 ... on dw_n_media_element_image { 136 ...nested_image 137 } 138 ... on dw_n_media_element_video { 139 ...nested_video 140 } 141 } 142 } 143 } 144 } 145`,[Be,Ie]),nt={class:"grid grid-cols-1 sm:grid-cols-3 gap-x-32 gap-y-48"},at={key:0,class:"flex flex-col gap-16"},st={key:0,class:"flex flex-col gap-2"},rt={key:1,class:"flex flex-col gap-16"},it={class:"flex flex-col gap-2"},lt={key:2,class:"flex flex-col gap-16"},ct={key:0,class:"grid grid-cols-1 sm:grid-cols-3 gap-x-32 gap-y-48"},_t={key:0,class:"flex flex-col gap-16"},ut={class:"flex flex-col gap-2"},gt={key:1,class:"flex flex-col gap-16"},mt={key:0,class:"flex flex-col gap-2"},dt={key:2,class:"flex flex-col gap-16"},ft={key:0,class:"flex flex-col gap-2"},pt=oe({__name:"GastroGoodToKnow",props:{gastro:{},oeffnungszeiten:{},kueche:{},weitereInfo:{}},setup(k){const{t:a}=ne(),s=k,C={1:"Montag",2:"Dienstag",3:"Mittwoch",4:"Donnerstag",5:"Freitag",6:"Samstag",0:"Sonntag"},J=[1,2,3,4,5,6,0];function A(e){return e?e.substring(0,5):""}const $=o(()=>{const e=s.gastro?.weekly_schedule,n=new Set((e??[]).map(B=>B.weekday)),G=[],h=[...e??[]].sort((B,Z)=>J.indexOf(B.weekday)-J.indexOf(Z.weekday));for(const B of h)G.push({day:C[B.weekday]??String(B.weekday),info:`${A(B.from_time)} bis ${A(B.to_time)} Uhr`,closed:!1}
145);const E={1:!!s.gastro?.object_closed_montag,2:!!s.gastro?.object_closed_dienstag,3:!!s.gastro?.object_closed_mitwoch,4:!!s.gastro?.object_closed_donnerstag,5:!!s.gastro?.object_closed_freitag,6:!!s.gastro?.object_closed_samstag,0:!!s.gastro?.object_closed_sonntag};for(const B of J)E[B]&&!n.has(B)&&G.push({day:C[B]??String(B),info:"geschlossen",closed:!0});return G}),U=o(()=>{const e=s.gastro,n=[];return e?.object_closed_montag&&n.push("Montag"),e?.object_closed_dienstag&&n.push("Dienstag"),e?.object_closed_mitwoch&&n.push("Mittwoch"),e?.object_closed_donnerstag&&n.push("Donnerstag"),e?.object_closed_freitag&&n.push("Freitag"),e?.object_closed_samstag&&n.push("Samstag"),e?.object_closed_sonntag&&n.push("Sonntag"),e?.object_closed_feiertag&&n.push("Feiertage"),n}),_=o(()=>$.value.length>0||!!s.oeffnungszeiten?.object_oeffnungszeiten||!!s.oeffnungszeiten?.object_betriebsurlaub),f=o(()=>U.value.length>0),p=o(()=>{try{const e=s.gastro?.merkmal;if(!e)return[];const n=typeof e=="string"?JSON.parse(e):e;return(Array.isArray(n)?n:[]).filter(h=>h.includes("Barrierefreiheit")||h.includes("ACCESSIBILITY_")||h.includes("Barrierefrei")||h.includes("Rollstuhl")||h.includes("Mindeststandards")).map(h=>h.split("/").pop())}catch{return[]}}),T=o(()=>{try{const e=s.gastro?.merkmal;if(!e)return[];const n=typeof e=="string"?JSON.parse(e):e;return(Array.isArray(n)?n:[]).filter(h=>h.startsWith("Küchenangebote/")||h.startsWith("küchenangebote/")).map(h=>h.split("/").pop())}catch{return[]}}),L=o(()=>{try{const e=s.gastro?.merkmal;if(!e)return[];const n=typeof e=="string"?JSON.parse(e):e;return(Array.isArray(n)?n:[]).filter(h=>h.includes("Sonstiges")||h.includes("sonstige Angebote")||h.includes("Tiere")||h.includes("Hunde")).map(h=>h.split("/").pop())}catch{return[]}}),H=o(()=>!!s.gastro?.room_sitzeindoor||!!s.gastro?.room_sitzegastgarten||!!s.gastro?.room_sitzeterrasse||!!s.gastro?.room_sitzesaal),F=o(()=>s.kueche),W=o(()=>T.value.length>0||!!F.value?.kitchen_zeiten),z=o(()=>H.value||W.value||L.value.length>0||!!s.weitereInfo?.object_text_weitere_info),K=o(()=>_.value||f.value||p.value.length>0||z.value);function M(e){return e?e.replace(/\n/g,"<br>").replace(/<a\b([^>]*?)>/gi,(n,G)=>/target=/i.test(G)?n:`<a${G} target="_blank" rel="noopener noreferrer">`):""}return(e,n)=>{const G=ge,h=Ge,E=me,B=Je,Z=De,ee=ue;return r(K)?(t(),b(ee,{key:0,background:"neutral-5",customContainerClass:"flex flex-col gap-48"},{default:c(()=>[d(h,null,{default:c(()=>[d(G,{semantic:"h2-style"},{default:c(()=>[v(g(r(a)("gastro.good_to_know.headline")),1)]),_:1})]),_:1}),j("div",nt,[r(_)?(t(),x("div",at,[n[0]||(n[0]=j("hr",{class:"border-neutral-100"},null,-1)),d(E,{strong:""},{default:c(()=>[v(g(r(a)("gastro.good_to_know.opening_hours")),1)]),_:1}),r($).length?(t(),x("div",st,[(t(!0),x(q,null,Q(r($),S=>(t(),x("div",{key:S.day},[d(E,null,{default:c(()=>[j("strong",null,g(S.day)+":",1),v(" "+g(S.info),1)]),_:2},1024)]))),128))])):i("",!0),e.oeffnungszeiten?.object_oeffnungszeiten?(t(),b(E,{key:1,html:M(e.oeffnungszeiten.object_oeffnungszeiten)},null,8,["html"])):i("",!0),e.oeffnungszeiten?.object_betriebsurlaub?(t(),b(E,{key:2,html:M(e.oeffnungszeiten.object_betriebsurlaub)},null,8,["html"])):i("",!0)])):i("",!0),r(f)?(t(),x("div",rt,[n[1]||(n[1]=j("hr",{class:"border-neutral-100"},null,-1)),d(E,{strong:""},{default:c(()=>[v(g(r(a)("gastro.good_to_know.closed_days")),1)]),_:1}),j("div",it,[(t(!0),x(q,null,Q(r(U),S=>(t(),b(E,{key:S},{default:c(()=>[v(g(S),1)]),_:2},1024))),128))])])):i("",!0),r(p).length?(t(),x("div",lt,[n[2]||(n[2]=j("hr",{class:"border-neutral-100"},null,-1)),d(E,{strong:""},{default:c(()=>[v(g(r(a)("gastro.good_to_know.accessibility")),1)]),_:1}),d(Z,{class:"!mt-0"},{default:c(()=>[(t(!0),x(q,null,Q(r(p),S=>(t(),b(B,{key:S},{default:c(()=>[v(g(S),1)]),_:2},1024))),128))]),_:1})])):i("",!0)]),r(z)?(t(),x("div",ct,[r(H)?(t(),x("div",_t,[n[3]||(n[3]=j("hr",{class:"border-neutral-100"},null,-1)),d(E,{strong:""},{default:c(()=>[v(g(r(a)("gastro.good_to_know.capacity")),1)]),_:1}),j("div",ut,[e.gastro?.room_sitzeindoor?(t(),b(E,{key:0},{default:c(()=>[v(g(r(a)("gastro.good_to_know.seats_indoor"))+": "+g(e.gastro.room_sitzeindoor),1)]),_:1})):i("",!0),e.gastro?.room_sitzegastgarten?(t(),b(E,{key:1},{default:c(()=>[v(g(r(a)("gastro.good_to_know.seats_garden"))+": "+g(e.gastro.room_sitzegastgarten),1)]),_:1})):i("",!0),e.gastro?.room_sitzeterrasse?(t(),b(E,{key:2},{default:c(()=>[v(g(r(a)("gastro.good_to_know.seats_terrace"))+": "+g(e.gastro.room_sitzeterrasse),1)]),_:1})):i("",!0),e.gastro?.room_sitzesaal?(t(),b(E,{key:3},{default:c(()=>[v(g(r(a)("gastro.good_to_know.seats_hall"))+": "+g(e.gastro.room_sitzesaal),1)]),_:1})):i("",!0)])])):i("",!0),r(W)?(t(),x("div",gt,[n[4]||(n[4]=j("hr",{class:"border-neutral-100"},null,-1)),d(E,{strong:""},{default:c(()=>[v(g(r(a)("gastro.good_to_know.kitchen_offer")),1)]),_:1}),r(T).length?(t(),x("div",mt,[(t(!0),x(q,null,Q(r(T),S=>(t(),b(E,{key:S},{default:c(()=>[v(g(S),1)]),_:2},1024))),128))])):i("",!0),r(F)?.kitchen_zeiten?(t(),b(E,{key:1,html:M(r(F).kitchen_zeiten)},null,8,["html"])):i("",!0)])):i("",!0),r(L).length||e.weitereInfo?.object_text_weitere_info?(t(),x("div",dt,[n[5]||(n[5]=j("hr",{class:"border-neutral-100"},null,-1)),d(E,{strong:""},{default:c(()=>[v(g(r(a)("gastro.good_to_know.other_info")),1)]),_:1}),r(L).length?(t(),x("div",ft,[(t(!0),x(q,null,Q(r(L),S=>(t(),b(E,{key:S},{default:c(()=>[v(g(S),1)]),_:2},1024))),128))])):i("",!0),e.weitereInfo?.object_text_weitere_info?(t(),b(E,{key:1,html:M(e.weitereInfo.object_text_weitere_info)},null,8,["html"])):i("",!0)])):i("",!0)])):i("",!0)]),_:1})):i("",!0)}}}),ht=Object.assign(pt,{__name:"GastroGoodToKnow"}),bt={class:"grid grid-cols-1 lg:grid-cols-2 gap-0 lg:gap-64"},yt={key:0,class:"flex flex-col gap-24 mt-auto mb-auto"},xt={class:"flex flex-col gap-8"},vt={class:"uppercase tracking-[0.1em] text-xs text-neutral-500 font-bold"},kt={class:"grid grid-cols-1 sm:grid-cols-2 gap-16"},Tt={class:"flex flex-col gap-8"},Et={key:0,class:"flex flex-col gap-1"},wt=["href"],Ct={class:"flex flex-col gap-8"},St=["href"],Ot=["href"],jt=["href"],At={class:"relative mt-48 lg:mt-0 min-h-[400px] -mx-16 sm:-mx-24 lg:mx-0 overflow-hidden"},Bt={key:1,class:"absolute inset-0 bg-neutral-100 flex items-center justify-center"},It=oe({__name:"GastroContact",props:{gastro:{},gastroTitle:{},anreise:{}},setup(k){const{t:a}=ne(),s=k,C=o(()=>{const _=s.gastro;if(!_)return null;const f=_.object_contact_strasse,p=[_.satourn_plz,_.satourn_ort].filter(
145Boolean).join(" ");return!f&&!p?null:{street:f,city:p}}),J=o(()=>{const _=s.anreise?.object_anreise_link;if(_)return _;const f=s.gastro?.latitude,p=s.gastro?.longitude;return f&&p?`https://www.google.com/maps/dir/?api=1&destination=${f},${p}`:null}),A=o(()=>!!C.value||!!s.gastro?.object_contact_tel||!!s.gastro?.object_contact_email||!!s.gastro?.object_contact_webseite1),$=o(()=>{const _=s.gastro?.latitude,f=s.gastro?.longitude;if(!_||!f)return null;const p=parseFloat(_),T=parseFloat(f);return Number.isNaN(p)||Number.isNaN(T)?null:[p,T]}),U=ve(null);return ke(async()=>{const _=await Te(()=>import("./C6EH4f4W.js").then(f=>f.l),__vite__mapDeps([0,1,2]),import.meta.url);U.value=_.divIcon({html:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 32" width="32" height="42"> 146 <path d="M12 0C7.163 0 3 4.163 3 9c0 7.5 9 23 9 23s9-15.5 9-23C21 4.163 16.837 0 12 0z" fill="#1a1a1a"/> 147 <circle cx="12" cy="9" r="4" fill="white"/> 148 </svg>`,className:"",iconSize:[32,42],iconAnchor:[16,42],popupAnchor:[0,-42]})}),(_,f)=>{const p=ge,T=me,L=Ee,H=Fe,F=He,W=Ue,z=we,K=ue;return A.value||$.value?(t(),b(K,{key:0,background:"neutral-5",customContainerClass:"flex flex-col gap-48"},{default:c(()=>[j("div",bt,[A.value?(t(),x("div",yt,[j("div",xt,[j("span",vt,g(r(a)("gastro.good_to_know.contact")),1),_.gastroTitle?(t(),b(p,{key:0,semantic:"h2-style"},{default:c(()=>[v(g(_.gastroTitle),1)]),_:1})):i("",!0)]),f[0]||(f[0]=j("hr",{class:"border-neutral-100"},null,-1)),j("div",kt,[j("div",Tt,[C.value?(t(),x("div",Et,[C.value.street?(t(),b(T,{key:0},{default:c(()=>[v(g(C.value.street),1)]),_:1})):i("",!0),C.value.city?(t(),b(T,{key:1},{default:c(()=>[v(g(C.value.city),1)]),_:1})):i("",!0)])):i("",!0),J.value?(t(),x("a",{key:1,href:J.value,target:"_blank",rel:"noopener noreferrer",class:"flex items-center gap-8 text-current no-underline"},[d(L,{name:"i-material-symbols-location-on",class:"!size-20 shrink-0"}),d(T,{strong:""},{default:c(()=>[v(g(r(a)("gastro.good_to_know.plan_route")),1)]),_:1})],8,wt)):i("",!0)]),j("div",Ct,[_.gastro?.object_contact_tel?(t(),x("a",{key:0,href:`tel:${_.gastro.object_contact_tel}`,class:"flex items-center gap-8 text-current no-underline"},[d(L,{name:"i-material-symbols-call",class:"!size-20 shrink-0"}),d(T,{strong:""},{default:c(()=>[v(g(_.gastro.object_contact_tel),1)]),_:1})],8,St)):i("",!0),_.gastro?.object_contact_email?(t(),x("a",{key:1,href:`mailto:${_.gastro.object_contact_email}`,class:"flex items-center gap-8 text-current no-underline"},[d(L,{name:"i-material-symbols-mail",class:"!size-20 shrink-0"}),d(T,{strong:""},{default:c(()=>[v(g(_.gastro.object_contact_email),1)]),_:1})],8,Ot)):i("",!0),_.gastro?.object_contact_webseite1?(t(),x("a",{key:2,href:r(pe)(_.gastro.object_contact_webseite1),target:"_blank",rel:"noopener noreferrer",class:"flex items-center gap-8 text-current no-underline"},[d(L,{name:"i-material-symbols-web-traffic",class:"!size-20 shrink-0"}),d(T,{strong:""},{default:c(()=>[v(g(r(a)("gastro.good_to_know.open_website")),1)]),_:1})],8,jt)):i("",!0)])])])):i("",!0),j("div",At,[d(z,null,{default:c(()=>[$.value?(t(),b(W,{key:0,zoom:15,center:$.value,"use-global-leaflet":!1,style:{position:"absolute",inset:"0",width:"100%",height:"100%","z-index":"0"}},{default:c(()=>[d(H,{url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",attribution:'© <a href="https://www.openstreetmap.org/">OpenStreetMap</a> contributors',"layer-type":"base"}),U.value?(t(),b(F,{key:0,"lat-lng":$.value,icon:U.value},null,8,["lat-lng","icon"])):i("",!0)]),_:1},8,["center"])):i("",!0),$.value?i("",!0):(t(),x("div",Bt,[d(T,{class:"text-neutral-400"},{default:c(()=>[v(g(r(a)("gastro.good_to_know.no_map")),1)]),_:1})]))]),_:1})])])]),_:1})):i("",!0)}}}),Lt=Object.assign(It,{__name:"GastroContact"}),zt=oe({__name:"GastroContent",props:{gastro:{}},setup(k){const{t:a}=ne(),s=new Set(["Betriebsart","Kuechenart"]),C=de().meta.locale,J=fe();function A(m){return m?.find(l=>l.languages_code?.code===C||l.languages_code===C)??m?.[0]}const $=o(()=>A(k.gastro?.stammdaten_translation??[])),U=o(()=>A(k.gastro?.allgemein_texte_so_translation??[])),_=o(()=>null),f=o(()=>$.value?.object_text_name??k.gastro?.gastroname??"");
148function p(m,l){const u=[m,l].filter(Boolean);return u.length>0?u.join(" - "):null}const T=o(()=>k.gastro?.images),L=o(()=>{const m=T.value?.find(u=>u.is_primary&&u.oa_images_id?.url);if(m?.oa_images_id){const u=m.oa_images_id,w=T.value?.find(D=>D.is_logo&&D.oa_images_id?.url),y=Pe(u.url,Xe);return{from:"oa",url:y?.src??Y(u.url,"1280x720c"),copyright:p(u.oa_author_name,u.oa_copyright),logoUrl:Y(w?.oa_images_id?.url,"300x300"),srcset:y?.srcset??null}}const l=k.gastro?.hero_image;if(l){const u=T.value?.find(P=>P.is_logo&&P.oa_images_id?.url),w=Y(u?.oa_images_id?.url,"300x300"),y=ae(l.pixxio);if(y)return{from:"directus",url:y,copyright:l?.pixxio?.metadata?.Copyright??null,logoUrl:w,srcset:We(l.pixxio)||null};const D=l.image?.id;if(D)return{from:"directus",url:`${J.public.directusBaseUrl}assets/${D}`,copyright:l?.image?.copyright??null,logoUrl:w,srcset:null}}return null}),H=o(()=>L.value?.url??null),F=o(()=>L.value?.srcset??null),W=o(()=>L.value?.copyright??null),z=o(()=>L.value?.logoUrl??null),K=o(()=>({headline:f.value,tagline:"",semantic:"h1",media_block:H.value?[{item:{type:"image",src:H.value,srcset:F.value??void 0,alt:f.value}}]:[]})),M=o(()=>({id:0,type:"hero_text",headline:f.value,semantic:"h1",text:""})),e=o(()=>{const m=[],l=(O,N,I,R)=>{I&&m.push({icon:O,content:{id:R,nested_headline:N,text:I,link_intern:[],link_extern:null}})},u=k.gastro?.object_contact_strasse,w=[k.gastro?.satourn_plz,k.gastro?.satourn_ort].filter(Boolean).join(" "),y=[u,w].filter(Boolean).join("<br>")||null;l("i-material-symbols-location-on",a("gastro.facts.address"),y,1);let D=null;try{const O=k.gastro?.kategorie;if(O){const N=typeof O=="string"?JSON.parse(O):O;D=(Array.isArray(N)?N:[N]).map(R=>R?.title??R).filter(R=>R&&!s.has(R)).join(", ")||null}}catch{}l("i-material-symbols-dehaze",a("gastro.facts.category"),D,2);let P=null;try{const O=k.gastro?.merkmal;if(O){const N=typeof O=="string"?JSON.parse(O):O,R=(Array.isArray(N)?N:[]).filter(te=>te.startsWith("regionale Angebote/")||te.startsWith("Regionale Angebote/")).map(te=>te.split("/").pop()).filter(Boolean);P=R.length?R.join(", "):null}}catch{}l("i-material-symbols-chef-hat-outline",a("gastro.facts.cuisine"),P,3);const V=k.gastro?.object_contact_tel||k.gastro?.object_contact_mobil;V&&m.push({icon:"i-material-symbols-call",content:{id:4,nested_headline:a("gastro.facts.phone"),link_intern:[],link_extern:`tel:${V}`,text:V}});const X=pe(k.gastro?.object_contact_webseite1);return X&&m.push({icon:"i-material-symbols-language",content:{id:5,nested_headline:a("gastro.facts.website"),link_intern:[],link_extern:X,text:X}}),m}),n=o(()=>le(U.value)),G=o(()=>!!n.value||!!U.value?.object_text_beschreibung_sommer_html||e.value.length>0),h=o(()=>U.value?.object_text_beschreibung_sommer_html?.trim()||null),E=o(()=>{const m=[];for(let l=0;l<e.value.length;l+=4){const u=e.value.slice(l,l+4);m.push({id:l/4,dw_ce_feature_row_id:{id:l/4,status:"published",feature_item:u.map((w,y)=>({id:l+y,item:w.content,icon:w.icon}))}})}return{id:0,type:"dw_ce_feature",semantic:"h2-style",o_headline:a("gastro.overview.headline"),o_text:h.value,row:m}}),B=o(()=>{if(!T.value?.length)return null;const m=T.value.filter(l=>l.oa_images_id?.url).map((l,u)=>{const w=l.oa_images_id,y=Y(w.url,"750x500c");return{id:u,item:{type:"dw_n_media_element_image",id:u,image:{},pixxio:{id:u,fileName:"",directLinks:ce(w.url,_e),previewFileURL:y,originalFileURL:y,metadata:{Copyright:p(w.oa_author_name,w.oa_copyright),CopyrightNotice:null,Titel_CZ:"",Titel_DE:"",Titel_EN:"",Titel_PL:"","ALT-Text_CZ":"","ALT-Text_DE":"","ALT
148-Text_EN":"","ALT-Text_PL":""}},media_description:null,hide_media_description:!1}}});return m.length?{id:0,type:"media_slider",status:"published",semantic:"h2-style",o_headline:a("gastro.gallery.headline"),media_block:m}:null}),Z=o(()=>{const m=k.gastro?.media_galerie;if(!m?.length)return null;const l=m.filter(u=>u.item).map((u,w)=>({id:w,item:u.item}));return l.length?{id:0,type:"media_slider",status:"published",semantic:"h2-style",o_headline:a("gastro.gallery.headline"),media_block:l}:null}),ee=o(()=>B.value??Z.value),S=o(()=>{const m=k.gastro?.content_teaser;if(!m?.length)return null;const l=m.filter(u=>u?.id).map((u,w)=>{const y=u,D=y.stammdaten_translation?.find(I=>I.languages_code?.code===C)??y.stammdaten_translation?.[0],P=y.allgemein_texte_so_translation?.find(I=>I.languages_code?.code===C)??y.allgemein_texte_so_translation?.[0],X=D?.seo?.slug?.replace(/^\/|\/$/g,"")||Ce(y.gastroname||"");let O;const N=y.images?.[0]?.oa_images_id;if(N?.url){const I=Y(N.url,"750x500c");O={pixxio:{directLinks:ce(N.url,_e),previewFileURL:I,originalFileURL:I,metadata:{Copyright:p(N.oa_author_name,N.oa_copyright)}},image:null}}if(!O){const I=y.hero_image;if(I){const R=ae(I.pixxio);O=R?{pixxio:{...I.pixxio,previewFileURL:R,originalFileURL:R},image:null}:I.image?.id?{pixxio:null,image:I.image}:void 0}}return{id:w,item:{id:y.id,headline:D?.object_text_name||y.gastroname||"",tagline:null,text:le(P),image:O,link_extern:`/gastro/${X}/`,link_intern:[]}}});return l.length?{id:0,type:"dw_ce_content_teaser",semantic:"h2-style",o_headline:a("gastro.teaser.headline"),tagline:a("gastro.teaser.tagline"),teaser:l}:null}),he=o(()=>A(k.gastro?.oeffnungszeiten_translation??[])),be=o(()=>A(k.gastro?.weitere_info_translation??[])),ye=o(()=>A(k.gastro?.anreise_translation??[]));return(m,l)=>{const u=ze,w=Ne,y=Re,D=$e,P=Me,V=ht,X=Lt,O=Ke;return t(),x("div",null,[H.value?(t(),b(w,{key:0,content:K.value,logoSrc:z.value??void 0,copyrightText:W.value??void 0},{actions:c(()=>[d(u,{collection:"Gastro",id:m.gastro.id,theme:"dark"},null,8,["id"])]),_:1},8,["content","logoSrc","copyrightText"])):(t(),b(y,{key:1,content:M.value},null,8,["content"])),G.value?(t(),b(D,{key:2,content:E.value,leadHtml:n.value,readMoreLabel:r(a)("gastro.read_more"),textAfterRows:!0},null,8,["content","leadHtml","readMoreLabel"])):i("",!0),ee.value?(t(),b(P,{key:3,content:ee.value,background:"neutral-0"},null,8,["content"])):i("",!0),d(V,{gastro:m.gastro,oeffnungszeiten:he.value,kueche:_.value,weitereInfo:be.value},null,8,["gastro","oeffnungszeiten","kueche","weitereInfo"]),d(X,{gastro:m.gastro,gastroTitle:f.value,anreise:ye.value},null,8,["gastro","gastroTitle","anreise"]),S.value?(t(),b(O,{key:4,content:S.value},null,8,["content"])):i("",!0)])}}}),Nt=Object.assign(zt,{__name:"GastroContent"}),mo=oe({__name:"Gastro",async setup(k){let a,s;Le();const{meta:C}=tt(),J=C.locale,A=fe(),$=de(),{data:U}=([a,s]=se(()=>re(`gastro-${C.id}`,()=>ie(ot,{variables:{id:C.id}}))),a=await a,s(),a),{data:{value:{config:_}}}=([a,s]=se(()=>re(`config-${J}`,()=>ie(Ye(A.public.environment),{}))),a=await a,s(),a),f=_?.[0]??_,p=o(()=>U?.value?.Gastro?.[0]??null);Se(et,f.newsletter_background);const{t:T}=ne(),L=o(()=>({type:"ce_newsletter",id:0,headline:T("gastro.newsletter.headline"),tagline:T("gastro.newsletter.tagline"),semantic:"h2",image:null})),H=o(()=>{const z=p.value?.stammdaten_translation??[];return z.find(K=>K.languages_code?.code===J)??z[0]??null}),F=o(()=>H.value?.seo??null),W=o(()=>F.value?.title||H.value?.object_text_name||p.value?.gastroname||"");return Oe({title:()=>W.value,description:()=>F.value?.description||void 0,ogTitle:()=>W.value,ogDescription:()=>F.value?.description||void 0,ogImage:()=>{const K=p.value?.images?.find(e=>e.is_primary&&e.oa_images_id?.url);if(K?.oa_images_id?.url)return qe(K.oa_images_id.url,"1200x630c",A.public.siteUrl);const M=p.value?.hero_image;if(M){const e=ae(M.pixxio);if(e)return e;if(M.image?.id)return`${A.public.directusBaseUrl}assets/${M.image.id}`}},robots:()=>{const z=F.value?.meta_robots;return z?z.replace(/-/g,", ").replace(/,\s,\s/g,", "):void 0}}),Ve(()=>[Ze(p.value,{siteUrl:A.public.siteUrl,canonicalUrl:`${A.public.siteUrl}${$.path}`,locale:J})],()=>f),(z,K)=>{const M=Ae,e=je;return t(),b(e,{name:"gastro"},{default:c(()=>[d(Nt,{gastro:p.value},null,8,["gastro"]),d(Qe,{content:L.value},null,8,["content"]),d(M,{content:r(f).footer_navigation?.translations?.[0]??null,config:r(f)},null,8,["content","config"])]),_:1})}}});
148export{mo 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.