1import{_ as j}from"./y0w7jmSH.js";import{Y as M,Z as R,h as n,o as l,c as i,a as u,i as s,t as _,y as d,$ as V,a0 as z,b as D,a3 as E}from"./C20c5uje.js";const H={class:"b-branchinformation grid grid-cols-1 items-center gap-x-12 md:grid-cols-2"},I={key:0,class:"mb-12 text-4xl font-bold"},O={key:1,class:"mb-8 flex flex-col items-start justify-start"},Q=["href"],U={key:0,class:"flex items-center gap-x-2"},Z=["href"],A={key:2,class:"mb-12"},F=["item","index"],G={class:"my-0 py-0 text-base"},Y={class:"my-0 py-0 text-base font-bold text-theme-on-bg"},J={key:3,class:"rte"},K={key:0,class:"aspect-square bg-grey-10"},P={key:0,class:"h-full"},W=["src"],te={__name:"index",props:{data:{type:Object,required:!0}},setup(B){const c=B,L=M(),{page:f}=R(L),w=E();""+w.public.spaimg.baseUrl;const $=w.public.googleMaps.token,a=n(()=>{var t,e,o,r,p;return(o=(e=(t=c==null?void 0:c.data)==null?void 0:t.properties)==null?void 0:e.branch)!=null&&o[0]||((p=(r=f==null?void 0:f.value)==null?void 0:r.current)==null?void 0:p.contentTypeAlias)==="baseBranchDepartment"?f.value.current:null}),C=n(()=>{var t,e,o,r,p,h,b,m;return((e=(t=a==null?void 0:a.value)==null?void 0:t.properties)==null?void 0:e.branchName)||((r=(o=c==null?void 0:c.data)==null?void 0:o.properties)==null?void 0:r.nodeName)||((m=(b=(h=(p=c==null?void 0:c.data)==null?void 0:p.properties)==null?void 0:h.branch)==null?void 0:b[0])==null?void 0:m.nodeName)||""}),g=n(()=>{var t,e,o,r;return((r=(o=(e=(t=a.value)==null?void 0:t.properties)==null?void 0:e.mapQuery)==null?void 0:o.toLowerCase())==null?void 0:r.replace(/\s/g,"+"))||""}),y=n(()=>{var t,e,o,r;return((r=(o=(e=(t=a.value)==null?void 0:t.properties)==null?void 0:e.branchStreet)==null?void 0:o.toLowerCase())==null?void 0:r.replace(/\s/g,"+"))||""}),S=n(()=>{var t,e;return((e=(t=a.value)==null?void 0:t.properties)==null?void 0:e.branchZip)||""}),T=n(()=>{var t,e;return((e=(t=a.value)==null?void 0:t.properties)==null?void 0:e.branchCity)||""}),v=n(()=>{var t,e;return((e=(t=a.value)==null?void 0:t.properties)==null?void 0:e.branchTelephone)||""}),x=n(()=>{var t,e;return((e=(t=a.value)==null?void 0:t.properties)==null?void 0:e.branchMail)||""}),k=n(()=>{var t,e;return((e=(t=a.value)==null?void 0:t.properties)==null?void 0:e.branchOpeningHoursExtraInfo)||""}),N=n(()=>{var t,e;return((e=(t=a.value)==null?void 0:t.properties)==null?void 0:e.openHours)||[]});return(t,e)=>{var r,p,h,b;const o=j;return l(),i("div",H,[u("div",null,[s(C)?(l(),i("h1",I,_(s(C)),1)):d("",!0),s(v)?(l(),i("div",O,[u("a",{href:"tel:"+s(v),class:"duration-50 text-lg font-bold text-theme-secondary transition-all ease-in-out hover:underline"},_(s(v)),9,Q),s(x)?(l(),i("div",U,[u("a",{href:"mailto:"+s(x),class:"duration-50 text-lg font-bold text-theme-primary transition-all ease-in-out hover:underline"},_(s(x)),9,Z)])):d("",!0)])):d("",!0),(r=s(N))!=null&&r.length?(l(),i("div",A,[e[0]||(e[0]=u("p",{class:"pb-2 text-lg font-bold"},"Ã
bningstider",-1)),(l(!0),i(V,null,z(s(N),(m,q)=>(l(),i("div",{class:"flex items-center justify-between space-y-1.5",key:q,item:m.properties,index:q},[u("p",G,_(m.properties.label),1),u("p",Y,_(m.properties.tidspunkt),1)],8,F))),128))])):d("",!0),(p=s(k))!=null&&p.markup?(l(),i("div",J,[e[1]||(e[1]=u("p",{class:"text-lg font-bold"},"Information om afdelingen",-1)),D(o,{template:(h=s(k))==null?void 0:h.markup,blocks:((b=s(k))==null?void 0:b.blocks)||[]},null,8,["template","blocks"])])):d("",!0)]),s(g)||s(y)?(l(),i("div",K,[s(g)||s(y)?(l(),i("div",P,[u("iframe",{title:"Google maps",loading:"lazy",width:"100%",height:"100%",frameborder:"0",style:{border:"0"},src:s(g)?`https://www.google.com/maps/embed/v1/place?q=${s(g)}&key=${s($)}`:`https://www.google.com/maps/embed/v1/place?q=${s(y)},${s(T)},${s(S)}&key=${s($)}`},null,8,W)])):d("",!0)])):d("",!0)])}}};export{te 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.