import{u as v,a7 as u,c as B,Q as P}from"./DjuPWn_h.js";import{j as L,a6 as p,k as x,u as l,O as b,P as Q,I as e,M as T,S as $,W as D,D as f,L as m}from"./DGQDO-VU.js";const N={key:0,class:"container mx-auto space-y-2 py-4"},j={class:"w-full max-w-xl"},F={name:"LookPage",meta:{pageType:"look_detail"}},I=L({...F,async setup(S){let n,i;const t=v(),{data:a,fetchByQuery:_,fetching:g}=u(`page|look-${t.params.id}`),{data:s,fetchByQuery:y}=u(`page|look-parent-${t.params.slug}`),{list:d,fetchByQuery:k}=u(`page|look-related-${t.params.id}`);if([n,i]=p(()=>Promise.all([_({"fields.pageType":"Looks Detail Page","fields.slug":t.params.id,limit:1}),y({"fields.pageType":"Looks List Page","fields.slug":`lookbooks/${t.params.slug}`,select:"fields.slug,fields.pageTitle"})])),await n,i(),!a.value||!s.value)throw B({statusCode:404,statusMessage:"Page Not Found"});[n,i]=p(()=>k({"fields.pageType":"Looks Detail Page","fields.gender":a.value.fields.gender,"sys.id[nin]":a.value.sys.id,limit:50})),await n,i();const h=x(()=>{var c,r;return{fields:{font:"Default",title:"Get the look",description:"Laat je inspireren",visibleItems:"3",variant:"Slider",buttonText:"Bekijk meer",buttonLink:`/${(r=(c=s==null?void 0:s.value)==null?void 0:c.fields)==null?void 0:r.slug}`,page:d.value}}});return(c,r)=>{const o=P,C=f("CfCtPageFeed"),w=f("CfComponent");return l(g)?(m(),b("div",N,[Q("div",j,[e(o,{class:"mb-10 w-full","full-width":""})]),e(o,{type:"custom",class:"h-6 w-72"}),e(o,{type:"custom",class:"h-6 w-48"}),e(o,{type:"custom",class:"mb-10 h-6 w-72"}),e(o,{type:"custom",class:"h-40 w-full"})])):l(a)&&l(s)&&l(d)?(m(),T(w,{key:1,data:l(a)},{default:$(()=>[e(C,{data:h.value},null,8,["data"])]),_:1},8,["data"])):D("",!0)}}});export{I as default};