import Pe from"./Bz4IcuNm.js";import{d as W,b as Xe,g as D,v as Ge,h as Qe,aY as Ze,u as et,cf as tt,A as at,cg as st,aV as nt,ch as ot,ay as lt,Q as it,l as rt,C as ct}from"./DB-BdW1A.js";import{j as O,L as l,M as m,S as z,I as T,O as f,Z as dt,z as Fe,o as ut,k as M,P as n,u as y,a as We,D as ze,a0 as De,a1 as mt,U as p,W as u,V as r,X as Ke,a2 as ft,al as gt,H as Je,Y as Ye,_ as H,J as ht,b as bt}from"./DokyoHAC.js";import pt from"./C53zYwgM.js";const Pt=O({__name:"Logo",props:{linkTo:{type:[Object,String],default:"/"}},setup(t){return(d,g)=>{const c=Pe,a=W;return l(),m(a,{class:"block",to:t.linkTo},{default:z(()=>[T(c)]),_:1},8,["to"])}}}),Xt=O({__name:"Vwo",setup(t){const{$config:d}=D(),g=d.public.vwoAccountId;return g&&Xe({script:[{type:"text/javascript",id:"vwoCode",innerHTML:` window._vwo_code || (function() { var account_id=${g}, version=2.1, settings_tolerance=2000, hide_element='body', hide_element_style = 'opacity:0 !important;filter:alpha(opacity=0) !important;background:none !important;transition:none !important;', f=false,w=window,d=document,v=d.querySelector('#vwoCode'),cK='_vwo_'+account_id+'_settings',cc={};try{var c=JSON.parse(localStorage.getItem('_vwo_'+account_id+'_config'));cc=c&&typeof c==='object'?c:{}}catch(e){}var stT=cc.stT==='session'?w.sessionStorage:w.localStorage;code={use_existing_jquery:function(){return typeof use_existing_jquery!=='undefined'?use_existing_jquery:undefined},library_tolerance:function(){return typeof library_tolerance!=='undefined'?library_tolerance:undefined},settings_tolerance:function(){return cc.sT||settings_tolerance},hide_element_style:function(){return'{'+(cc.hES||hide_element_style)+'}'},hide_element:function(){if(performance.getEntriesByName('first-contentful-paint')[0]){return''}return typeof cc.hE==='string'?cc.hE:hide_element},getVersion:function(){return version},finish:function(e){if(!f){f=true;var t=d.getElementById('_vis_opt_path_hides');if(t)t.parentNode.removeChild(t);if(e)(new Image).src='https://dev.visualwebsiteoptimizer.com/ee.gif?a='+account_id+e}},finished:function(){return f},addScript:function(e){var t=d.createElement('script');t.type='text/javascript';if(e.src){t.src=e.src}else{t.text=e.text}d.getElementsByTagName('head')[0].appendChild(t)},load:function(e,t){var i=this.getSettings(),n=d.createElement('script'),r=this;t=t||{};if(i){n.textContent=i;d.getElementsByTagName('head')[0].appendChild(n);if(!w.VWO||VWO.caE){stT.removeItem(cK);r.load(e)}}else{var o=new XMLHttpRequest;o.open('GET',e,true);o.withCredentials=!t.dSC;o.responseType=t.responseType||'text';o.onload=function(){if(t.onloadCb){return t.onloadCb(o,e)}if(o.status===200||o.status===304){_vwo_code.addScript({text:o.responseText})}else{_vwo_code.finish('&e=loading_failure:'+e)}};o.onerror=function(){if(t.onerrorCb){return t.onerrorCb(e)}_vwo_code.finish('&e=loading_failure:'+e)};o.send()}},getSettings:function(){try{var e=stT.getItem(cK);if(!e){return}e=JSON.parse(e);if(Date.now()>e.e){stT.removeItem(cK);return}return e.s}catch(e){return}},init:function(){if(d.URL.indexOf('__vwo_disable__')>-1)return;var e=this.settings_tolerance();w._vwo_settings_timer=setTimeout(function(){_vwo_code.finish();stT.removeItem(cK)},e);var t;if(this.hide_element()!=='body'){t=d.createElement('style');var i=this.hide_element(),n=i?i+this.hide_element_style():'',r=d.getElementsByTagName('head')[0];t.setAttribute('id','_vis_opt_path_hides');v&&t.setAttribute('nonce',v.nonce);t.setAttribute('type','text/css');if(t.styleSheet)t.styleSheet.cssText=n;else t.appendChild(d.createTextNode(n));r.appendChild(t)}else{t=d.getElementsByTagName('head')[0];var n=d.createElement('div');n.style.cssText='z-index: 2147483647 !important;position: fixed !important;left: 0 !important;top: 0 !important;width: 100% !important;height: 100% !important;background: white !important;';n.setAttribute('id','_vis_opt_path_hides');n.classList.add('_vis_hide_layer');t.parentNode.insertBefore(n,t.nextSibling)}var o=window._vis_opt_url||d.URL,s='https://dev.visualwebsiteoptimizer.com/j.php?a='+account_id+'&u='+encodeURIComponent(o)+'&vn='+version;if(w.location.search.indexOf('_vwo_xhr')!==-1){this.addScript({src:s})}else{this.load(s+'&x=true')}}};w._vwo_code=code;code.init();})(); `}]}),(c,a)=>(l(),f("div"))}}),yt=["data-businessunit-id","data-template-id","data-locale","data-button-color","data-button-text-color","data-name","data-link-color","data-theme","data-style-height","data-style-width","data-style-alignment","data-stars","data-reviewnumber","data-review-languages","data-sku","data-no-reviews","data-fullwidth","data-schema-type","data-third-party-reviews"],vt=["href"],U="trustpilot-widget",_t=O({__name:"Trustpilot",props:{templateId:{type:String,required:!0},options:{type:Object,default:void 0}},setup(t){const{$config:d}=D(),g=t,{templateId:c,options:a}=dt(g);function v(){if(!document.getElementById(U)){const e=document.createElement("script");e.id=U,e.async=!0,e.src="https://widget.trustpilot.com/bootstrap/v5/tp.widget.bootstrap.min.js",document.body.appendChild(e)}}Fe(()=>{v()}),ut(()=>{var e;(e=document==null?void 0:document.getElementById(U))==null||e.remove(),window.Trustpilot&&delete window.Trustpilot});const i=M(()=>{var _,S,E,I,$,R,A,j;const e={locale:"nl-NL",styleHeight:"100%",styleWidth:"100%",theme:"light"},o="Missing sku option in Trustpilot Widget";switch(c.value){case"53aa8912dec7e10d38f59f36":e.reviewLanguages="nl",e.styleHeight="140px",e.stars="1,2,3,4,5";break;case"5418052cfbfb950d88702476":case"5418015fb0d04a0c9cf721f2":e.reviewLanguages="nl",e.styleHeight="30px",e.stars="1,2,3,4,5";break;case"530d0eaf748a510e2093cf9b":e.styleHeight="850px";break;case"539adbd6dec7e10e686debee":case"539ad60defb9600b94d7df2c":case"539ad998dec7e10e686debe0":e.reviewLanguages="nl",e.styleHeight="500px",e.stars="1,2,3,4,5";break;case"5406e65db0d04a09e042d5fc":e.styleHeight="28px";break;case"5419b757fa0340045cd0c938":e.styleHeight="25px";break;case"5419b6ffb0d04a076446a9af":e.styleHeight="20px";break;case"5419b6a8b0d04a076446a9ad":e.styleAlignment="center",e.styleHeight="24px";break;case"5419b732fbfb950b10de65e5":e.styleHeight="24px";break;case"5419b637fa0340045cd0c936":e.styleHeight="20px";break;case"53aa8807dec7e10d38f59f32":e.styleHeight="150px";break;case"539ad0ffdec7e10e686debd7":e.reviewLanguages="nl",e.styleHeight="350px",e.stars="1,2,3,4,5";break;case"54d39695764ea907c0f34825":case"577258fb31f02306e4e3aaf9":e.styleAlignment="center",e.styleHeight="24px",e.noReviews="hide",e.scrollToList=!0,(_=a==null?void 0:a.value)!=null&&_.sku||console.warn(o);break;case"544a426205dc0a09088833c6":case"57177697fdb1180308e3815f":e.reviewLanguages="nl",e.styleHeight="700px",e.noReviews="hide",e.reviewnumber=10,e.fullwidth=!0,(S=a==null?void 0:a.value)!=null&&S.sku||console.warn(o);break;case"60f537b5b0f1639de1fe048c":e.reviewLanguages="nl",e.styleHeight="140px",e.noReviews="hide",(E=a==null?void 0:a.value)!=null&&E.sku||console.warn(o);break;case"546f0626f97a75059086a588":e.styleHeight="700px",e.noReviews="hide",(I=a==null?void 0:a.value)!=null&&I.sku||console.warn(o);break;case"5763bccae0a06d08e809ecbb":e.reviewLanguages="nl",e.styleHeight="700px",e.noReviews="hide",e.fullwidth=!0,($=a==null?void 0:a.value)!=null&&$.name||console.warn("Missing name option in Trustpilot Widget"),(R=a==null?void 0:a.value)!=null&&R.sku||console.warn(o);break;case"5717796816f630043868e2e8":e.reviewLanguages="nl",e.styleHeight="700px",e.noReviews="hide",e.reviewnumber=10,e.fullwidth=!0,(A=a==null?void 0:a.value)!=null&&A.name||console.warn("Missing name option in Trustpilot Widget"),(j=a==null?void 0:a.value)!=null&&j.sku||console.warn(o);break;case"54d0e1d8764ea9078c79e6ee":e.reviewLanguages="nl",e.styleHeight="300px",e.stars="1,2,3,4,5";break;case"56278e9abfbbba0bdcd568bc":e.styleHeight="52px";break;case"54ad5defc6454f065c28af8b":e.reviewLanguages="nl",e.styleHeight="240px",e.stars="1,2,3,4,5";break;case"5613c9cde69ddc09340c6beb":e.styleHeight="100%";break}return{...e,...a==null?void 0:a.value}});return(e,o)=>(l(),f("div",{class:"trustpilot-widget","data-businessunit-id":y(d).public.trustpilotBusinessunitId,"data-template-id":y(c),"data-locale":i.value.locale,"data-button-color":i.value.buttonColor,"data-button-text-color":i.value.buttonTextColor,"data-name":i.value.name,"data-link-color":i.value.linkColor,"data-theme":i.value.theme,"data-style-height":i.value.styleHeight,"data-style-width":i.value.styleWidth,"data-style-alignment":i.value.styleAlignment,"data-stars":i.value.stars,"data-reviewnumber":i.value.reviewnumber,"data-review-languages":i.value.reviewLanguages,"data-sku":i.value.sku,"data-no-reviews":i.value.scrollToList,"data-fullwidth":i.value.fullwidth,"data-schema-type":i.value.schemaType,"data-third-party-reviews":i.value.thirdPartyReviews},[n("a",{href:y(d).public.trustpilotUrl,target:"_blank",rel:"noopener"},"Trustpilot",8,vt)],8,yt))}}),q=(t,d)=>{var g,c;return((c=(g=d==null?void 0:d.find(a=>a.fields.key===t))==null?void 0:g.fields)==null?void 0:c.value)||""},wt={id:"footer",class:"w-full"},xt={class:"container"},kt={class:"py-6 text-center lg:flex lg:items-center lg:justify-center"},Ct={class:"text-lg"},Tt={key:0,class:"border-b border-gray-200"},St={class:"container pb-6 pt-4 md:mx-auto md:flex md:items-center md:justify-between md:py-12"},Nt=n("div",{class:"mb-6 py-2 text-4xl md:m-0 md:basis-1/2 md:text-center lg:text-5xl"},[H(" €7,50 korting op je volgende aankoop? "),n("br"),H("Van Tilburg, voor jou! ")],-1),Lt=n("p",{class:"mb-2.5 text-base"},"Schrijf je nu in op onze nieuwsbrief.",-1),Ht=n("label",{for:"newsletter-subscribe",class:"sr-only"},"Your Email",-1),It={class:"relative w-full md:flex md:items-end"},jt=["disabled"],Et=["disabled"],$t=n("span",null,"Aanmelden",-1),Rt=[$t],At={class:"flex items-start"},Bt={key:0,class:"ml-1 text-[8px] font-bold uppercase leading-none tracking-tight text-green-400"},Mt=["open"],Ot=["open"],Vt=["open"],Ut={class:"mt-10 md:border-t md:border-gray-200"},qt={class:"container lg:py-6"},Wt={class:"lg:flex lg:flex-wrap lg:items-center lg:justify-center xl:flex-nowrap"},zt={class:"mb-2 whitespace-nowrap text-gray-300 lg:mx-6 lg:mb-0"},Dt={class:"flex justify-between whitespace-nowrap pb-9 text-gray-300 lg:gap-6 lg:pb-0"},Gt=O({__name:"AppFooter",props:{data:{type:Object,required:!0}},setup(t){var j,K,J;const{trackEmailOptin:d}=Ge(),g=Qe(),{lg:c}=Ze(),{$i18n:a}=D(),{isOnline:v}=tt(),i=et(),e=t,o={details:(j=e.data)!=null&&j.checkout?"group mb-6 lg:basis-5/12 lg:pr-20":"open:pb-6 lg:max-w-xs lg:border-0 group border-b border-gray-200 open:border-0 lg:basis-3/12 lg:pr-10",detailsLast:(K=e.data)!=null&&K.checkout?"group mb-6 lg:basis-5/12 lg:pr-20":"open:pb-6 lg:max-w-xs group lg:basis-3/12 lg:pr-10",summary:(J=e.data)!=null&&J.checkout?"flex items-center py-3 text-xl lg:text-4xl pointer-events-none cursor-text group-open:mb-0 lg:group-open:mb-4":"flex items-center py-3 text-xl lg:text-4xl lg:pointer-events-none lg:cursor-text",paragraph:"text-base mb-6 leading-6 lg:-mt-1 lg:pt-1",ul:"flex flex-col gap-2 border-b border-t border-gray-300 bg-gray-100 px-4 py-6 lg:p-0 lg:border-0 lg:bg-transparent",navigation:"flex items-center gap-6"},_=We(""),S=We(!1),E=h=>{var b;return(b=h.fields)!=null&&b.url?W:"div"},I=M(()=>{var h;return(h=e.data)!=null&&h.checkout?!1:!i.path.includes("/basket")}),$=M(()=>{var h,b,w,x,k,C,B,N,L;return[(w=(b=(h=e.data)==null?void 0:h.theme)==null?void 0:b.fields)!=null&&w.backgroundColor?`background-color: ${(C=(k=(x=e.data)==null?void 0:x.theme)==null?void 0:k.fields)==null?void 0:C.backgroundColor}; border-color: ${(L=(N=(B=e.data)==null?void 0:B.theme)==null?void 0:N.fields)==null?void 0:L.backgroundColor};`:""].join(" ")}),R=M(()=>{var h,b,w,x,k,C;return[(w=(b=(h=e.data)==null?void 0:h.theme)==null?void 0:b.fields)!=null&&w.backgroundColor?`color: ${(C=(k=(x=e.data)==null?void 0:x.theme)==null?void 0:k.fields)==null?void 0:C.backgroundColor};`:""].join(" ")});function A(){S.value=!0,d(_.value,"footer"),g.show(a.t("email_option_confirmation"),at.confirm),_.value=""}return(h,b)=>{var F,P,X,G,Q,Z,ee,te,ae,se,ne,oe,le,ie,re,ce,de,ue,me,fe,ge,he,be,pe,ye,ve,_e,we,xe,ke,Ce,Te,Se,Ne,Le,He,Ie,je,Ee,$e,Re;const w=_t,x=st,k=nt,C=ot,B=pt,N=lt,L=it,V=ze("CfNavigationSet"),Y=ze("CfIconSet");return l(),f("footer",wt,[De(n("div",xt,[n("div",kt,[n("p",Ct,p(y(q)("trustpilot.customers",((X=(P=(F=t.data)==null?void 0:F.microcopy)==null?void 0:P.fields)==null?void 0:X.resources)||[])),1),T(w,{class:"mt-3 lg:mt-1.5","template-id":"5419b732fbfb950b10de65e5"})])],512),[[mt,!((G=t.data)!=null&&G.checkout)]]),I.value?u("",!0):(l(),f("div",Tt)),I.value?(l(),f("div",{key:1,class:r(["border-y border-brand-blue bg-brand-blue",((ee=(Z=(Q=t.data)==null?void 0:Q.theme)==null?void 0:Z.fields)==null?void 0:ee.color)==="Light"?"text-white":"text-black"]),style:Ke($.value)},[n("div",St,[Nt,n("form",{method:"post",class:"md:mx-auto lg:max-w-lg lg:basis-1/2",onSubmit:ft(A,["prevent"])},[Lt,Ht,n("div",It,[De(n("input",{id:"newsletter-subscribe",type:"email",name:"9c1c1c5da9eebd227867ae4354b2b807","onUpdate:modelValue":b[0]||(b[0]=s=>_.value=s),class:"mb-2.5 border-white bg-transparent bg-none text-white placeholder:text-white hover:border-white hover:ring-white focus:border-white focus:ring-white md:mb-0",placeholder:"Jouw e-mailadres..",title:"E-mailadres",pattern:"[^@\\s]+@[^@\\s]+\\.[^@\\s]+",disabled:S.value,required:""},null,8,jt),[[gt,_.value]]),n("button",{type:"submit",disabled:S.value,class:"btn w-full border-0 px-8 text-brand-blue md:ml-4 md:w-auto",style:Ke(R.value)},Rt,12,Et)])],32)])],6)):u("",!0),n("div",{class:r(["container pt-6 lg:flex xl:pt-8",(te=t.data)!=null&&te.checkout?"lg:justify-start":"lg:justify-between"])},[(ae=t.data)!=null&&ae.footerNavigation1?(l(),f("details",{key:0,open:"",class:r(o.details)},[n("summary",{class:r(["pointer-events-none cursor-text",o.summary])},p((ne=(se=t.data.footerNavigation1)==null?void 0:se.fields)==null?void 0:ne.name),3),n("p",{class:r(o.paragraph)},p(y(q)("footer.contact",((ie=(le=(oe=t.data)==null?void 0:oe.microcopy)==null?void 0:le.fields)==null?void 0:ie.resources)||[])),3),n("ul",{class:r(`text-lg ${o.ul} !border-0 bg-transparent !p-0`)},[(l(!0),f(Je,null,Ye((ce=(re=t.data.footerNavigation1)==null?void 0:re.fields)==null?void 0:ce.navigation,s=>{var Ae,Be;return l(),f("li",{key:s.sys.id},[(l(),m(ht(E(s)),{class:r((Ae=s==null?void 0:s.fields)!=null&&Ae.url.includes("tel:")?`${o.navigation} underline`:o.navigation),to:(Be=s==null?void 0:s.fields)==null?void 0:Be.url},{default:z(()=>{var Me,Oe,Ve,Ue,qe;return[(Me=s==null?void 0:s.fields)!=null&&Me.url.includes("tel:")?(l(),m(x,{key:0,class:"h-6 w-6"})):(Oe=s==null?void 0:s.fields)!=null&&Oe.url.includes("chat")?(l(),m(k,{key:1,class:"h-6 w-6"})):(Ve=s==null?void 0:s.fields)!=null&&Ve.url.includes("mailto")?(l(),m(C,{key:2,class:"h-6 w-6"})):(l(),m(B,{key:3,class:"h-6 w-6"})),n("div",At,[H(p((Ue=s==null?void 0:s.fields)==null?void 0:Ue.name)+" ",1),(qe=s==null?void 0:s.fields)!=null&&qe.url.includes("chat")&&y(v)?(l(),f("span",Bt," Online ")):u("",!0)])]}),_:2},1032,["class","to"]))])}),128))],2)],2)):u("",!0),(de=t.data)!=null&&de.footerNavigation2?(l(),f("details",{key:1,open:((ue=t.data)==null?void 0:ue.checkout)||y(c),class:r(o.details)},[n("summary",{class:r(o.summary)},[H(p((fe=(me=t.data.footerNavigation2)==null?void 0:me.fields)==null?void 0:fe.name)+" ",1),(ge=t.data)!=null&&ge.checkout?u("",!0):(l(),m(N,{key:0,class:"ml-auto h-4 w-4 lg:!hidden"})),(he=t.data)!=null&&he.checkout?u("",!0):(l(),m(L,{key:1,class:"ml-auto h-4 w-4 lg:!hidden"}))],2),t.data.footerNavigation2?(l(),m(V,{key:0,"navigation-set":t.data.footerNavigation2,class:r(o.ul),"navigation-class":o.navigation,checkout:(be=t.data)==null?void 0:be.checkout},null,8,["navigation-set","class","navigation-class","checkout"])):u("",!0)],10,Mt)):u("",!0),(pe=t.data)!=null&&pe.footerNavigation3?(l(),f("details",{key:2,open:y(c),class:r(o.details)},[n("summary",{class:r(o.summary)},[H(p((ve=(ye=t.data.footerNavigation3)==null?void 0:ye.fields)==null?void 0:ve.name)+" ",1),T(N,{class:"ml-auto h-4 w-4 lg:!hidden"}),T(L,{class:"ml-auto h-4 w-4 lg:!hidden"})],2),t.data.footerNavigation3?(l(),m(V,{key:0,"navigation-set":t.data.footerNavigation3,class:r(o.ul),"navigation-class":o.navigation,checkout:(_e=t.data)==null?void 0:_e.checkout},null,8,["navigation-set","class","navigation-class","checkout"])):u("",!0)],10,Ot)):u("",!0),(we=t.data)!=null&&we.footerNavigation4?(l(),f("div",{key:3,class:r(o.detailsLast)},[n("details",{open:y(c),class:r(o.detailsLast)},[n("summary",{class:r(o.summary)},[H(p((ke=(xe=t.data.footerNavigation4)==null?void 0:xe.fields)==null?void 0:ke.name)+" ",1),T(N,{class:"ml-auto h-4 w-4 lg:!hidden"}),T(L,{class:"ml-auto h-4 w-4 lg:!hidden"})],2),T(V,{"navigation-set":t.data.footerNavigation4,class:r(o.ul),"navigation-class":o.navigation},null,8,["navigation-set","class","navigation-class"])],10,Vt),(Ce=t.data)!=null&&Ce.socialMedia?(l(),m(Y,{key:0,"icon-set":(Te=t.data)==null?void 0:Te.socialMedia,"title-class":"text-lg mb-4","icon-class":"w-6 h-6","ul-class":"flex flex-wrap gap-5",prefix:"social",class:"my-6 max-w-xs lg:mb-0 lg:mt-4"},null,8,["icon-set"])):u("",!0)],2)):u("",!0)],2),n("div",Ut,[n("div",qt,[n("div",Wt,[(Se=t.data)!=null&&Se.paymentMethods?(l(),m(Y,{key:0,"icon-set":(Ne=t.data)==null?void 0:Ne.paymentMethods,"title-class":"text-lg mb-4 lg:mb-0 lg:mr-2 lg:text-base","icon-class":"w-10 h-7 bg-gray-50 p-1 rounded-sm","ul-class":"flex flex-wrap gap-1",prefix:"payment",class:r(["my-6 lg:my-0 lg:flex lg:basis-full lg:items-center lg:justify-center xl:basis-2/3 xl:justify-start",(Le=t.data)!=null&&Le.checkout?"mt-2 lg:my-6":""])},null,8,["icon-set","class"])):u("",!0),n("div",zt," © "+p(new Date().getFullYear())+" "+p(y(q)("footer.copyright",((je=(Ie=(He=t.data)==null?void 0:He.microcopy)==null?void 0:Ie.fields)==null?void 0:je.resources)||[])),1),n("div",Dt,[(l(!0),f(Je,null,Ye((Re=($e=(Ee=t.data)==null?void 0:Ee.legal)==null?void 0:$e.fields)==null?void 0:Re.navigation,s=>(l(),m(W,{key:s.sys.id,to:s.fields.url,class:"no-underline"},{default:z(()=>[n("span",null,p(s.fields.name),1)]),_:2},1032,["to"]))),128))])])])])])}}}),Qt=()=>{const{isLoggedIn:t,refresh:d}=rt(),{data:g,fetch:c,fetching:a}=ct("customerSync","customerSync"),v=()=>{t.value&&!a.value&&c().then(()=>{g.value&&d()}),setTimeout(v,6e5)};return Fe(()=>{v()}),bt(t,i=>{i&&v()}),{sync:v}};export{Pt as _,Xt as a,Gt as b,Qt as u};