1import{u as Q,_ as Y}from"./index.fd682a8f.js";import{_ as P,v as A,a as b,s as ee,z as te,o,d as n,g as r,j as y,i as s,F as M,r as N,b as e,f as l,l as V,k as K,p as U,m as Z,u as se,w as oe,c as le,e as u,t as a,A as T,B as ne,C as ae,D as z,E as D,G as E,H as j}from"./entry.d7e49e10.js";import{P as ie,a as ce,b as de,_ as re,c as pe}from"./Map.2ac87567.js";import{u as _e,a as ue}from"./useGetContent.a81bd263.js";import{_ as me}from"./Slider.7ac1d02c.js";import"./drag.16778467.js";import"./Theme.06e3623f.js";const W=i=>(U("data-v-6dba0121"),i=i(),Z(),i),he={key:0,class:"bg-light block-slider py-14 md:py-20"},fe=W(()=>s("div",{class:"relative flex min-h-[2.5rem] items-center justify-between md:space-x-12"},[s("p",{class:"text-dark w-fit text-[clamp(1.50rem,calc(2.49rem+-1.03vw),2.25rem)] font-bold leading-[1.16] md:shrink-0 md:grow lg:basis-[350px]"},"Billeder fra stedet")],-1)),ge={class:"hide-scrollbars overflow-auto"},ye=["href","data-pswp-width","data-pswp-height"],xe=["src","alt"],ke=W(()=>s("span",null," ",-1)),be={__name:"GallerySlider",props:{items:{type:Array,required:!0},uuid:{type:String}},setup(i){const h=i;let w=A(null),f=A(null);const C=`gallery-slider-${h.uuid}`,t=b(()=>{if(Array.isArray(f.value)&&f.value!==null){let g=f.value,c=g.shift();return[...g,c]}return null});return ee(()=>{typeof h.items<"u"&&(f.value=h.items.map(({url:g,...c})=>({thumbnailURL:`${g}`,largeURL:g,...c})),w.value||(w.value=new ie({maxWidthToAnimate:0,gallery:`#${C}`,children:"a",pswpModule:()=>te(()=>import("./photoswipe.esm.060dc2da.js"),[],import.meta.url)}),w.value.init()))}),(g,c)=>{const x=V,v=K,S=ce;return i.items.length>1?(o(),n("section",he,[r(v,{class:"px-4 pb-11"},{default:y(()=>[r(x,{"inner-class":"col-span-full md:col-start-2 md:col-span-10"},{default:y(()=>[fe]),_:1})]),_:1}),s("div",ge,[r(v,{class:"md:max-w-[unset]"},{default:y(()=>[r(S,{id:C,class:"snap-wrap scroll-pl-4 pl-4 md:scroll-pl-[calc((20px+((100vw-32px)/12)))] md:space-x-8 md:pl-[calc((20px+((100vw-32px)/12)))] 3xl:pl-[calc((100vw-1407px)/2)] 3xl:scroll-pl-[calc((100vw-1407px)/2)]"},{default:y(()=>[(o(!0),n(M,null,N(e(t),(p,$)=>(o(),n("a",{key:$,class:"relative group flex flex-col w-[calc(100%-32px)] flex-none snap-start max-w-[555px] md:w-[555px]",href:`${p.largeURL}?w=${p.width>2560?2560:p.width}`,"data-pswp-width":p.width,"data-pswp-height":p.height},[s("img",{width:"555",height:"416",src:`${p.thumbnailURL}?fit=thumb&w=555&h=416`,alt:p.description,class:"bg-powder w-full object-cover saturate-50"},null,8,xe)],8,ye))),128)),ke]),_:1})]),_:1})])])):l("",!0)}}},we=P(be,[["__scopeId","data-v-6dba0121"]]);const m=i=>(U("data-v-cee1a702"),i=i(),Z(),i),ve={class:"relative bg-green text-white"},Ce={class:"px-4 pt-40 lg:pt-44 pb-24 lg:pb-0 space-y-12 md:space-y-16 lg:col-start-2 lg:col-span-5 lg:min-h-[675px]"},Se={class:"space-y-4 lg:pr-24"},$e={class:"h4"},Le={class:"text-[18px] leading-[1.55] md:text-[22px] md:leading-[1.27] pb-8"},Te=m(()=>s("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",fill:"none",viewBox:"0 0 32 32"},[s("path",{fill:"currentColor",d:"m9.0987 22.8997 9.2-4.6 4.6-9.20003-9.2 4.60003-4.6 9.2Zm6.9-5.5667c-.3778 0-.6942-.128-.9493-.384-.256-.2551-.384-.5715-.384-.9493s.128-.6947.384-.9507c.2551-.2551.5715-.3827.9493-.3827s.6947.1276.9507.3827c.2551.256.3826.5729.3826.9507s-.1275.6942-.3826.9493c-.256.256-.5729.384-.9507.384Zm0 11.3333c-1.7556 0-3.4053-.3333-4.9493-1-1.54492-.6666-2.88404-1.5666-4.01737-2.7-1.13333-1.1333-2.03333-2.4724-2.7-4.0173-.66667-1.544-1-3.1938-1-4.9493 0-1.7556.33333-3.4058 1-4.9507.66667-1.54399 1.56667-2.88266 2.7-4.01599 1.13333-1.13334 2.47245-2.03334 4.01737-2.7 1.544-.66667 3.1937-1 4.9493-1 1.7556 0 3.4058.33333 4.9507 1 1.544.66666 2.8826 1.56666 4.016 2.7 1.1333 1.13333 2.0333 2.472 2.7 4.01599.6666 1.5449 1 3.1951 1 4.9507 0 1.7555-.3334 3.4053-1 4.9493-.6667 1.5449-1.5667 2.884-2.7 4.0173-1.1334 1.1334-2.472 2.0334-4.016 2.7-1.5449.6667-3.1951 1-4.9507 1Zm0-2c2.9778 0 5.5-1.0333 7.5667-3.1 2.0666-2.0666 3.1-4.5888 3.1-7.5666 0-2.9778-1.0334-5.5-3.1-7.56669-2.0667-2.06667-4.5889-3.1-7.5667-3.1-2.9778 0-5.5 1.03333-7.56667 3.1-2.06667 2.06669-3.1 4.58889-3.1 7.56669 0 2.9778 1.03333 5.5 3.1 7.5666 2.06667 2.0667 4.58887 3.1 7.56667 3.1Z"})],-1)),Be=m(()=>s("span",null,"Se på kort",-1)),Fe=[Te,Be],Re={class:"bg-light pt-12 pb-20 md:py-24"},Ge={class:"space-y-16 md:space-y-0 md:grid md:grid-cols-11 md:gap-x-8"},Ie={class:"col-span-6 xl:col-span-5 flex flex-col space-y-4 md:space-y-11"},Oe={key:1,class:"text-sm leading-[1.64]"},Ae={class:"col-span-full md:col-start-7 md:col-span-5 space-y-16 md:space-y-10"},ze={key:0,class:"col-span-full lg:col-span-2 space-y-4"},De=m(()=>s("h6",null,"På stedet er der",-1)),Ee={class:"list-disc pl-6 facility-formatting"},je={key:0},Pe={key:1},Me=m(()=>s("p",null,"Døgnåben",-1)),Ne=[Me],Ve={key:2},Ke={key:4},Ue=m(()=>
1s("p",null,"Vandhane",-1)),Ze=[Ue],We={key:5},qe=m(()=>s("p",null,"Bemandet facilitet",-1)),He=[qe],Xe={key:6},Je=m(()=>s("p",null,"Mulighed for bookning",-1)),Qe=[Je],Ye={key:7},et={key:1,class:"col-span-full lg:col-span-2 facility-formatting"},tt=m(()=>s("h6",{class:"mb-4"},"Ansvarlig enhed",-1)),st={key:0},ot={key:1},lt={href:"https://citizen.dw3.dk/6fe86ae5-ea3c-45e8-b974-f33db42f5828",target:"_blank",class:"underline"},nt={key:2},at=["href"],it={key:3},ct=["href"],dt={key:2,class:"col-span-full lg:row-start-2 lg:col-span-4 space-y-4 max-w-[414px] facility-formatting"},rt=m(()=>s("h6",{class:"mb-4"},"Adresse",-1)),pt={key:3,class:"col-span-full space-y-4 max-w-[414px]"},_t={__name:"[slug]",async setup(i){var $;let h,w;const f=se(),C=(($=f==null?void 0:f.params)==null?void 0:$.slug)??!1,t=([h,w]=oe(()=>_e("GetFacility","facilityCollection",{slug:C})),h=await h,w(),h);if(!t)throw le({statusCode:404,statusMessage:"Page Not Found",fatal:!0});const g=b(()=>t.contact?t.contact.split(",")[0]==="Giv et praj app - Kolding Kommune":!1),c=b(()=>t.contact?t.contact.split(",")[0]:!1),x=b(()=>t.contact?t.contact.split(",")[1]:!1),v=b(()=>{var _,d;return(_=t==null?void 0:t.seo)!=null&&_.seoTitle?(d=t==null?void 0:t.seo)==null?void 0:d.seoTitle:t!=null&&t.title?`${t.title} â Oplev Kolding`:"Facilitet â Oplev Kolding"}),S=b(()=>{var _,d;return((d=(_=t.value)==null?void 0:_.seo)==null?void 0:d.description)??""}),p=b(()=>{var _,d,L;return(L=(d=(_=t.value)==null?void 0:_.seo)==null?void 0:d.ogimage)!=null&&L.url?`${t.value.seo.ogimage.url}?w=1200&h=630&fit=thumb`:""});return Q({title:v,description:S,ogDescription:S,ogTitle:v,ogImage:p}),(_,d)=>{var I,O;const L=Y,R=V,G=K,q=re,B=pe,F=we,H=ue,X=de,J=me;return o(),n("div",null,[s("section",ve,[r(G,null,{default:y(()=>[r(R,{"inner-class":"col-span-full grid lg:grid-cols-12",gap:""},{default:y(()=>[s("div",Ce,[s("div",Se,[s("h1",$e,a(e(T)(e(t)).title),1),s("p",Le,a(e(T)(e(t)).shortDescription),1),s("button",{onClick:d[0]||(d[0]=k=>e(ne)("map",!1)),class:"flex space-x-3.5 items-center text-center h-[52px] w-full xs:w-fit italic font-bold font-times text-[20px] leading-[1.2] rounded-full bg-jasmine text-dark transition-all hover:bg-parchment ease-in-out duration-200 pl-3.5 pr-7 hover:pl-[22px] hover:pr-9"},Fe)])]),typeof e(t).assets.items[0]<"u"||typeof e(t).images.items[0]<"u"?(o(),u(L,{key:0,image:typeof e(t).assets.items[0]<"u"?e(t).assets.items[0]:e(t).images.items[0],w:865,h:675,fit:"thumb","inner-class":"block w-full lg:absolute lg:top-0 lg:right-0 lg:bottom-0 lg:w-1/2 lg:h-full lg:object-cover"},null,8,["image"])):l("",!0)]),_:1})]),_:1})]),s("section",Re,[r(G,{class:"px-4"},{default:y(()=>[r(R,{"inner-class":"col-span-full lg:col-start-2 lg:col-span-11",gap:""},{default:y(()=>[s("div",Ge,[s("div",Ie,[e(T)(e(t)).text?(o(),u(q,{key:0,document:e(T)(e(t)).text.json,class:"lg:max-w-[80%]",space:"space-y-4","element-classes":{h2:"text-[20px]",h3:"!mt-12 text-[18px]",h4:"!mt-12 text-[18px]",p:"text-sm leading-[1.64]"}},null,8,["document"])):l("",!0),e(t).facilityRemarkOnSeason?(o(),n("p",Oe,a(e(t).facilityRemarkOnSeason),1)):l("",!0)]),s("div",Ae,[s("div",{class:ae(["grid grid-cols-5",{"gap-12":e(t).facilityTypeCodes||e(t).facilitySeason||e(t).organizationResponsible||e(c)||e(x)}])},[e(t).facilitySeason||e(t).facilityTypeCodes?(o(),n("div",ze,[De,s("ul",Ee,[e(t).facilitySeason&&String(e(t).facilitySeason).length<1?(o(),n("li",je,[s("p",null,a(e(t).facilitySeason),1)])):l("",!0),e(t).facilityAlwaysOpen?(o(),n("li",Pe,Ne)):l("",!0),e(t).handicapStatus&&e(t).handicapStatusCode!==9?(o(),n("li",Ve,[s("p",null,a(e(t).handicapStatus),1)])):l("",!0),e(t).facilityTypeCodes?(o(!0),n(M,{key:3},N(e(t).facilityTypeCodes,(k,ut)=>(o(),n("li",null,[s("p",null,a(e(D)[k]!==void 0?e(D)[k]:e(E)[k]!==void 0?e(E)[k]:e(j)[k]!==void 0?e(j)[k]:null),1)]))),256)):l("",!0),e(t).facilityWaterTapCode?(o(),n("li",Ke,Ze)):l("",!0),e(t).facilityStaffedCode?(o(),n("li",We,He)):l("",!0),e(t).bookFacilityCode?(o(),n("li",Xe,Qe)):l("",!0),e(t).numberOfSeats&&e(t).numberOfSeats!=="0"&&e(t).numberOfSeats!==0?(o(),n("li",Ye,[s("p",null,a(e(t).numberOfSeats===1?"1 plads":`${e(t).numberOfSeats} antal pladser`),1)])):l("",!0)])])):l("",!0),e(t).organizationResponsible&&e(t).organizationResponsible!=="1"||e(c)||e(x)?(o(),n("div",et,[tt,e(t).organizationResponsible&&e(t).organizationResponsible!=="1"?(o(),n("p",st,a(e(t).organizationResponsible),1)):l("",!0),e(g)?(o(),n("p",ot,[s("a",lt,a(e(c)),1)])):e(c)?(o(),n("p",nt,[z("E-mail: "),s("a",{href:`mailto:${e(c)}`,class:"underline"},a(e(c)),9,at)])):l("",!0),e(x)?(o(),n("p",it,[z("Tlf: "),s("a",{href:`tel:${e(x)}`,class:"underline"},a(e(x)),9,ct)])):l("",!0)])):l("",!0),e(t).address?(o(),n("div",dt,[rt,s("p",null,a(e(t).address),1)])):l("",!0),e(t).location||e(t).gpxLink?(o(),n("div",pt,[e(t).location?(o(),u(B,{key:0,class:"w-full",block:{title:"Vis pÃ¥ Google maps",externalLink:`https://www.google.dk/maps/@${Number(e(t).location.lat).toFixed(7)},${Number(e(t).location.lng).toFixed(7)},18z`,svg:"Maps"},theme:"dark",target:"_blank"},null,8,["block"])):l("",!0),e(t).gpxLink?(o(),u(B,{key:1,class:"w-full",block:{title:"Download GPX",externalLink:e(t).gpxLink,svg:"Download"},theme:"dark"},null,8,["block"])):l("",!0),e(t).bookFacilityCode&&e(t).bookingLink?(o(),u(B,{key:2,class:"w-full",block:{title:"Book her",externalLink:e(t).bookingLink,svg:"Link"},target:"_blank",theme:"dark"},null,8,["block"])):l("",!0)])):l("",!0)],2)])])]),_:1})]),_:1})]),typeof e(t).images.items<"u"&&e(t).images.items.length>1&&typeof e(t).assets.items<"u"&&e(t).assets.items.length>0?(o(),u(F,{key:0,items:[...e(t).images.items,...e(t).assets.items],uuid:e(t).sys.id},null,8,["items","uuid"])):typeof e(t).images.items<"u"&&e(t).images.items.length>1?(o(),u(F,{key:1,items:e(t).images.items,uuid:e(t).sys.id},null,8,["items","uuid"])):typeof e(t).assets.items<"u"&&e(t).assets.items.length>1?(o(),u(F,{key:2,items:e(t).assets.items,uuid:e(t).sys.id},null,8,["items","uuid"])):l("",!0),r(H,{items:(O=(I=e(t))==null?void 0:I.bodyCollection)==null?void 0:O.items},null,8,["items"]),r(X,{content:e(t),"content-map":!0},null,8,["content"]),typeof e(t).nearbyFacilitiesCollection.items<"u"&&e(t).nearbyFacilitiesCollection.items.length?(o(),u(J,{key:3,block:{title:"Relaterede faciliteter",colorTheme:{name:"Green"},type:"Facility",itemsCollection:{items:e(t).nearbyFacilitiesCollection.items}}},null,8,["block"])):l("",!0)])}}}
1,bt=P(_t,[["__scopeId","data-v-cee1a702"]]);export{bt 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.