1import{_ as Y}from"./DDKO87YK.js";import{_ as Z}from"./DK6lQ68Z.js";import{_ as tt}from"./Cw9jy5Ul.js";import{_ as et}from"./DjOvOfs1.js";import{_ as rt}from"./DG37Sx_Q.js";import{_ as at}from"./DTOt3iOR.js";import{d as ot,l as nt,m as v,i as st,c as m,e as s,g as t,w as p,j as b,C as it,p as lt,q as ct,v as _t,o,y as ut,t as mt,F as x,r as C,x as i,a5 as h,B as pt,z as dt,A as yt,h as ft}from"./DjUjRTxR.js";import{u as gt}from"./D3XKq3mv.js";import{u as kt}from"./DWWdV8x_.js";import{u as vt}from"./Bh2xnyU_.js";import{u as bt}from"./Cyp3h_wz.js";import{$ as d}from"./B0Yev4sz.js";import{u as xt}from"./S0Bt4_NQ.js";import{u as Ct}from"./Ccx08mft.js";import"./DhdqehsD.js";import"./CQSF46WN.js";import"./BQHSZ1rp.js";import"./B-G3Xx3n.js";import"./BVGpt9TG.js";import"./Cchh0342.js";import"./D1fKpC9K.js";const ht={class:"frame"},Jt=ot({__name:"restauranter-bagerier",async setup(Bt){let a,l;gt();const{data:B}=nt()?([a,l]=v(()=>lt(ct()?.RestaurantsBakeriesQuery)),a=await a,l(),a):([a,l]=v(()=>_t("/api/restaurants-bakeries","$AvfDRku-QB")),a=await a,l(),a),e=kt(),_=e?.data?.value?.restaurant_bakery?.title||"",y=e?.data?.value?.restaurant_bakery?.image||null,f=e?.data?.value?.restaurant_bakery?.description||"",R=e?.data?.value?.restaurant_bakery?.textOpening,S=e?.data?.value?.restaurant_bakery?.description||"",O=e?.data?.value?.restaurant_bakery?.promotions||[],F=b(()=>e?.data?.value?.restaurant_bakery?.featured||[]),T=vt(F,B);bt({title:_,description:f,seo:e?.data?.value?.restaurant_bakery?.seo,image:y});const $=[{title:"Alle",path:d.restauranter_bagerier.path},{title:"Restauranter",path:d.restauranter.path},{title:"Bagerier",path:d.bagerier.path}],E=xt(O,e?.data.value?.promotions),g=b(()=>e?.data?.value?.restaurant_bakery?.informationsbar||null),{primaryLabel:w,primaryTo:D,primaryTarget:L,primaryRel:N,secondaryLabel:A,secondaryTo:P,secondaryTarget:Q,secondaryRel:V,overlayRef:c,overlayFormType:u,onPrimaryClick:G,onSecondaryClick:j}=Ct(g,"catering",st.SEND_EN_FORESPOERGELSE);return(Rt,n)=>{const q=Y,z=Z,H=tt,I=et,M=rt,J=at,K=pt,U=dt,W=yt,X=it;return o(),m("div",ht,[s(q,{title:t(_),description:t(f),image:t(y)},null,8,["title","description","image"]),s(z,{title:t(g)?.title||t(_)||void 0,to:t(D),target:t(L),rel:t(N),"secondary-label":t(A),"secondary-to":t(P),"secondary-target":t(Q),"secondary-rel":t(V),onClick:t(G),onSecondaryClick:t(j)},{default:p(()=>[ut(mt(t(w)),1)]),_:1},8,["title","to","target","rel","secondary-label","secondary-to","secondary-target","secondary-rel","onClick","onSecondaryClick"]),s(H,{links:$,text:t(S),"portable-text":t(R)??void 0,"text-alignment":"left"},null,8,["text","portable-text"]),s(J,{class:"gutter","data-tab-scroll-anchor":""},{default:p(()=>[(o(!0),m(x,null,C(t(E),r=>(o(),i(I,h({ref_for:!0},r,{key:r?.id?.current,style:{order:r.position}}),null,16,["style"]))),128)),(o(!0),m(x,null,C(t(T),(r,k)=>(o(),i(M,h({ref_for:!0},r,{key:r?.slug?.current??r?._id??k,style:{order:k}}),null,16,["style"]))),128))]),_:1}),s(X,{ref_key:"ctaOverlayRef",ref:c,"hide-nav":"","dialog-width":"1/2"},{default:p(()=>[t(u)==="catering"?(o(),i(K,{key:0,onClose:n[0]||(n[0]=r=>t(c)?.closeOverlay())})):t(u)==="lunch"?(o(),i(U,{key:1,onClose:n[1]||(n[1]=r=>t(c)?.closeOverlay())})):t(u)==="teambuilding"?(o(),i(W,{key:2,onClose:n[2]||(n[2]=r=>t(c)?.closeOverlay())})):ft("",!0)]),_:1},512)])}}});
1export{Jt 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.