1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Bt-pL16-.js","./BI5BN1rn.js","./BA2cZanY.js","./DyfadX0W.js","./oiGUARBV.js","./entry.im3Mr2Hu.css","./-zH4zj69.js","./DC1xVCuc.js","./BcA_P1LO.js","./ProductDescription.rco3-ksA.css","./DNJjNz6y.js","./D9qu97TR.js","./zEA6auws.js","./gV6p11mW.js","./C5dRWEu3.js","./CLo4tDe2.js","./D5xDRDHb.js","./QfiTXYh-.js","./On2whR69.js","./xXovmyTk.js","./Ddl9oPyk.js","./C8xoLpdX.js","./ProductPrice.BKnm5bDI.css","./BYvZ9L7_.js","./2Qv3K5mw.js","./OSwP1zfw.js","./N_WY53j0.js","./BkakuSTo.js","./basemap.DNVN2dqC.css","./BIhTPyY3.js","./Basemap.8BcP7dvF.css"])))=>i.map(i=>d[i]); 2import{s as ut,b as oa,c as It,d as ia,u as At,e as Ko,_ as Oa,f as Sa,g as Ma,h as rt,r as Go,i as Me,j as Jo,k as Zo,l as Pa,m as Qo,C as Vt,a as Xo,n as ei}from"./BI5BN1rn.js";import{_ as Zt}from"./-zH4zj69.js";import{u as ja,a as Aa,_ as Ua,b as Qt,c as Ue,d as ti}from"./BfTgRy77.js";import{z as at,w as oe,p as sa,e as c,r as $,G as $t,$ as Fa,a$ as Ba,N as Na,b0 as Ra,O as qa,I as e,as as i,ak as u,ar as ke,al as n,aw as V,ah as Fe,aF as Ye,ax as b,am as ve,aE as we,ao as v,ag as be,T as xa,aG as Xt,aH as La,aC as Ae,A as za,ac as je,aK as ai,i as Ha,J as Jt,b1 as oi,ay as ii,ap as si,k as ea,aT as ni,b2 as Ot,S as Ta,D as wt,a6 as Mt}from"./BA2cZanY.js";import Wa from"./B4yRIDW9.js";import{u as Ya}from"./DJ0Bxcfk.js";import li from"./D9WW6hHi.js";import{g as ri}from"./DyfadX0W.js";import{p as ui,r as ci}from"./uhIx-S5U.js";import{s as di}from"./xXovmyTk.js";import{_ as Ea}from"./CyGcP7Ue.js";import{u as vi}from"./BIhTPyY3.js";import{u as pi}from"./BcA_P1LO.js";import{u as fi}from"./DC1xVCuc.js";import{u as hi}from"./DROdXVxO.js";import{a as mi}from"./zypciNv-.js";import{b as gi}from"./DX5Qm-TS.js";import{u as ta}from"./B9kTkY8x.js";import{u as _i}from"./BL_Hk0sp.js";import"./oiGUARBV.js";import"./OSwP1zfw.js";import"./QfiTXYh-.js";import"./On2whR69.js";import"./2Qv3K5mw.js";import"./BDx6lZXm.js";import"./Ddl9oPyk.js";import"./BkakuSTo.js";function aa(pe,P,_,R){const{$store:T,$lightbox:G}=at(),{cdnDomain:X}=ut(T),{hasYoutubeConsent:ge}=oa(),{youtubeId:O}=It(),{makeSeoImageFilename:ie,makeLargefileUrl:re}=ia(),j=$(),y=$(),F=r=>{const M=X.value.match(/cdn/),q=R?.value;if(r&&r.video&&ge.value)return{href:"https://www.youtube-nocookie.com/embed/"+O(r.video)+"?autoplay=1",type:"video",title:(r.title?r.title:"")+(r.title&&r.description?" - ":"")+(r.description?r.description:"")};const H=ie(r.title,q);return{href:M?re(P.value,r.id,H):X.value+P.value+"/largefiles/"+r.id+".png",type:"image",title:(r.title?r.title:"")+(r.title&&r.description?" - ":"")+(r.description?r.description:"")}},g=c(()=>pe.value.filter(r=>!!r).map(F));oe(g,()=>{g.value.length&&E()});const N=r=>{if(r)try{r.close(),r.destroy()}catch{}},E=()=>{N(j.value),j.value=G({elements:g.value,touchNavigation:!0,loop:!0,autoplayVideos:!0})},D=r=>{_&&_(),j.value&&(typeof r=="number"&&r>=0?j.value.openAt(r):j.value.open())},he=r=>{r&&(_&&_(),N(y.value),y.value=G({elements:[F(r)],touchNavigation:!1,loop:!1,autoplayVideos:!0}),y.value.open())},A=()=>{j.value&&j.value.close(),y.value&&y.value.close()};return sa(()=>{N(j.value),N(y.value)}),{initializeLightbox:E,showLightbox:D,showSingleLightbox:he,closeLightbox:A}}const yi={key:0,id:"main-content",class:"js-ready"},bi=["aria-label"],ki={class:"container"},wi={class:"js-breadcrumb-navi"},Ii={class:"breadcrumb-navi-item breadcrumb-navi-root"},$i={class:"breadcrumb-navi-item breadcrumb-navi-current"},Ci={key:0,class:"video-controls"},Si=["title"],Pi=["aria-label"],xi=["aria-label"],Li=["title"],Ti=["aria-label"],Ei=["aria-label"],Di={class:"carousel-indicators hidden-print"},Vi=["data-slide-to","onClick"],Oi={class:"carousel-inner"},Mi=["data-srcset","data-lowsrc","width","height","type","media"],ji=["data-src","data-lowsrc","alt","type"],Ai={class:"video-fg"},Ui={class:"hero-caption-container"},Fi={class:"carousel-category-text hidden-print"},Bi={key:0,class:"vertical-centered"},Ni={class:"category-title js-carousel-productgroupname big-text"},Ri={key:0,class:"carousel-item-description js-carousel-item-description"},qi={class:"hero-buttons-container"}
2,zi={class:"category-showimages-button product-showimages-button"},Hi=["href","data-title"],Wi={class:"button-count"},Yi=["href","data-title"],Ki={class:"sr-only"},Gi={class:"sr-only"},Ji={key:2,id:"js-header-product",class:"page-header-bar text-center"},Zi={class:"container js-page-name page-header-title big-text"},Qi={key:0,class:"carousel-item-description js-carousel-item-description"},Xi={key:3,id:"js-header-product",class:"page-header-bar text-center visible-print-block"},es={class:"container js-page-name page-header-title big-text"},ts={class:"main-content-wrap"},as={class:"container main-content"},os=["data-category"],is={key:0,class:"category-info-wrap hidden-print space-below"},ss={class:"product-content-main product-content-text text-content"},ns={key:1,id:"js-product-images",class:"cateory-content-allimageslist list-unstyled hidden"},ls=["onClick","href","data-title"],rs=$t({__name:"Categorypage",props:{category:{type:Object,required:!0},products:{type:Object,required:!0},shopId:{type:String,required:!0},locations:{type:Array,required:!0}},setup(pe){const P=je(()=>Me(()=>import("./Bt-pL16-.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]),import.meta.url)),{$translate:_,$store:R,$eventbus:T}=at(),{hasYoutubeConsent:G}=oa(),{marketingname:X,makeLocationUrl:ge,youtubeId:O}=It(),{productLinkUrl:ie,isCollectionLinkContext:re}=Ya(),{shopTitle:j,limitedStorefront:y}=At(),{baseDomain:F,cdnDomain:g,locale:N,shopId:E,mySettings:D,cookieConsent:he}=ut(R),A=pe,{category:r,products:M,locations:q}=Fa(A),se=$(!1),H=$(-1),w=$(0),ue=$(!1),B=$(!1),W=$(null),ne=za({autoplay:0,controls:0,modestbranding:1,rel:0}),ce=$(),{onVideoEnded:ze,onVideoPaused:de,onVideoPlaying:Ie,activateVideo:C,pauseVideo:Le,toggleMute:De,togglePause:t,toggleMuteText:s,togglePauseText:d,isVideoPaused:x,isVideoMuted:Y,isVideoPlaying:J,getVideoReadyStatus:L}=ja(ce),{makeCarouselMainImage:Te,makeCarouselImage:f,makeSeoImageFilename:m}=ia(),k=c(()=>!!ue.value),Z=c(()=>r.value?.file_video?!0:r.value?.sharedFile.some(h=>h.video)),Q=$(!1),Ce=()=>{Q.value=!0},Be=()=>{Q.value=!1},Se=c(()=>Ve.value.length),Ne=()=>{Q.value||(w.value===0?w.value=Se.value-1:w.value--)},Ee=()=>{Q.value||(w.value===Se.value-1?w.value=0:w.value++)},Ke=c(()=>parseInt(D.value.pagetitlelocation)>0),Ge=c(()=>r.value?Ve.value[w.value].video:null),_e=c(()=>O(Ge.value)||"none-"+w.value),$e=c(()=>r.value?Ve.value[w.value]:null),Re=c(()=>{let h=[];if(!r.value)return[];if(r.value.file_id&&h.push({id:r.value.file_id,filename:m(r.value.file_title,r.value.name),title:r.value.file_title,description:r.value.file_description,video:r.value.file_video,image:Te(r.value,E.value)}),r.value.sharedFile)for(let p=0;p<r.value.sharedFile.length;p++){let ye=r.value.sharedFile[p];ye.image=f({id:r.value.sharedFile[p].id,filename:r.value.sharedFile[p].filename,title:r.value.sharedFile[p].title,description:r.value.sharedFile[p].description,video:r.value.sharedFile[p].video},E.value,r.value.name),h.push(ye)}return h}),Ve=c(()=>{const h=Sa(r.value?.channeldata?.description),p=r.value?.file_id;return Re.value.filter(ye=>p&&String(ye.id)===String(p)?!0:!h.has(String(ye.id)))});Aa(c(()=>Ve.value.map(h=>h.image)),w);const ot=c(()=>{const h=Sa(r.value?.channeldata?.description);return(r.value?.sharedFile||[]).filter(p=>!h.has(String(p.id)))}),Pe=c(()=>{const h=r.value?.channeldata?.description;return h?Go(h,r.value.sharedFile,E.value,g.value):""}),qe=()=>{ue.value=!0},fe=()=>{ue.value=!1},Oe=()=>{nt()},it=$(),{isSwiping:gt,direction:st}=Ko(it);oe(gt,(h,p)=>{p&&!h&&(st.value==="left"?Ee():st.value==="right"&&Ne())}),oe(B,h=>{T.$emit("inlineSearchVisible",h)}),oe(he,h=>{Oe()});const{initializeLightbox:nt,showLightbox:He,showSingleLightbox:ct,closeLightbox:dt}=aa(Ve,E,Le,c(()=>r.value?.name)),le=h=>Ve.value.findIndex(p=>String(p.id)===String(h.id)),te=h=>{const p=Ma(h,Re.value);p&&ct(p)};return Ba(()=>{R.imageIndex=0}),Na(()=>{ue.value=!1,R.imageIndex=0,se.value=!1,H.value=Number(r.value.id),T.$on("lightboxClick",()=>{Le()});{const h=document.querySelectorAll(".category-search-bar"),p=ye=>{B.value=!1,ye.forEach(lt=>{if(lt.isIntersecting){B.value=!0;return}})};W.value=new window.IntersectionObserver(p),h.forEach(ye=>{W.value&&W.value.observe(ye)})}T.$emit("inlineSearchVisible",!1),Oe()}),Ra(()=>{H.value!==Number(r.value.id)&&(se.value=!1,ue.value=!1,Oe(),C(),r.value&&T.$emit("productListViewed",{title:r.value.name,id:"cat-"+r.value.id,items:r.value.sharedProduct})),H.value=Number(r.value.id)}),sa(()=>{se.value=!1,H.value=Number(r.value.id),dt(),document.querySelectorAll(".category-search-bar").forEach(p=>{W.value&&W.value.unobserve(p)}),T.$emit("inlineSearchVisible",!1),T.$off("lightboxClick")}),(h,p)=>{const ye=Oa,lt=Zt,z=qa("youtube"),me=Zt,Ut=Ua;return e(r)?(i(),u("div",yi,[e(y)?v("",!0):(i(),u("nav",{key:0,class:ke("breadcrumb-navi-wrap"+(e(r).file_id?" has-image":"")),"aria-label":e(_)("Breadcrumb")},[n("div",ki,[n("ul",wi,[n("li",Ii,[V(ye,{to:"/"+e(N)},{default:Fe(()=>[Ye(b(e(j)),1)]),_:1},8,["to"])]),(i(!0),u(ve,null,we(e(q),(S,Je)=>(i(),u("li",$i,[V(ye,{to:e(ge)(e(E),e(N),void 0,e(q),Je)},{default:Fe(()=>[Ye(b(e(X)(S.targetObject)),1)]),_:2},1032,["to"])]))),256))])])],10,bi)),e(Se)>0?(i(),u("div",{key:1,id:"js-carousel-productgroup",class:ke("carousel slide carousel-fade items-"+e(Se)),"data-ride":"carousel","data-pause":"hover",role:"banner","data-interval":"10000",ref_key:"carouselcontainer",ref:it},[e(G)&&e(Ge)&&e(L)(e(_e))?(i(),u("div",Ci,[n("a",{href:"javascript:;
2",class:"toggle-video-audio",onClick:p[0]||(p[0]=S=>e(De)()),title:e(s)},[e(Y)?(i(),u("i",{key:1,class:"fa fa-fw fa-volume-off","aria-label":e(_)("Unmute audio")},null,8,xi)):(i(),u("i",{key:0,class:"fa fa-fw fa-volume-up","aria-label":e(_)("Mute audio")},null,8,Pi))],8,Si),n("a",{href:"javascript:;",class:"toggle-video-pause",onClick:p[1]||(p[1]=(...S)=>e(t)&&e(t)(...S)),title:e(d)},[e(x)?(i(),u("i",{key:1,class:"fa fa-fw fa-play","aria-label":e(_)("Play video")},null,8,Ei)):(i(),u("i",{key:0,class:"fa fa-fw fa-pause","aria-label":e(_)("Pause video")},null,8,Ti))],8,Li)])):v("",!0),n("ol",Di,[(i(!0),u(ve,null,we(e(Se),(S,Je)=>(i(),u("li",{"data-target":"#js-carousel-productgroup","data-slide-to":Je,class:ke(Je===e(w)?"active":""),onClick:Ct=>w.value=Je},null,10,Vi))),256))]),n("div",Oi,[e($e)?(i(),be(xa,{key:0,name:"carousel",mode:"in-out",onBeforeEnter:Ce,onAfterEnter:Be},{default:Fe(()=>[(i(),u("div",{key:e(w)},[n("div",{class:ke("js-carousel-productgroup-image carousel-item-image fit-cover mediabox"+(e($e).video&&e(G)?" has-video":"")+(e($e).video&&e(J)?" video-playing":""))},[n("picture",null,[(i(!0),u(ve,null,we(e($e).image.sources,S=>(i(),u("source",{"data-srcset":S.url,"data-lowsrc":S.lowurl,width:S.width,height:S.height,type:S.type,media:S.query},null,8,Mi))),256)),V(lt,null,{default:Fe(()=>[e($e).image.sources?(i(),u("img",{key:0,class:"mediabox-img lazyload","data-src":e($e).image.sources[0].url,"data-lowsrc":e($e).image.sources[0].lowurl,alt:e($e).image.title,type:e($e).image.sources[0].type},null,8,ji)):v("",!0)]),_:1})])],2)]))]),_:1})):v("",!0),e(G)&&e(Z)?(i(),be(xa,{key:1,name:"carousel",mode:"in-out"},{default:Fe(()=>[e(_e)?Xt((i(),u("div",{class:"video-bg cover hidden-print","aria-role":"camera",key:e(_e)},[n("div",Ai,[V(me,null,{default:Fe(()=>[V(z,{"video-id":e(_e),width:"100%",height:"100%","player-vars":e(ne),ref_key:"youtube_category",ref:ce,controls:!1,nocookie:!0,onNocookie:S=>!0,onReady:p[2]||(p[2]=S=>e(C)()),onCued:p[3]||(p[3]=S=>e(C)()),onPlaying:p[4]||(p[4]=S=>e(Ie)()),onEnded:p[5]||(p[5]=S=>e(ze)()),onError:p[6]||(p[6]=S=>e(ze)()),onPaused:p[7]||(p[7]=S=>e(de)())},null,8,["video-id","player-vars"])]),_:1})])])),[[La,e(L)(e(_e))]]):v("",!0)]),_:1})):v("",!0)]),n("div",Ui,[n("div",Fi,[e(Ke)?v("",!0):(i(),u("div",Bi,[n("div",Ni,[n("h1",null,b(e(r).name),1)]),e(r).file_description?(i(),u("p",Ri,b(e(r).file_description),1)):v("",!0)]))])]),n("div",qi,[n("div",zi,[e(Se)>1?(i(),u("a",{key:0,class:"store-lightbox-link",onClick:p[8]||(p[8]=Ae(S=>e(He)(),["prevent","stop"])),href:e(r).file_video&&e(G)?"https://www.youtube-nocookie.com/embed/"+e(O)(e(r).file_video)+"?autoplay=1":e(g)+e(E)+"/largefiles/"+e(r).file_id+"."+encodeURI(e(r).file_ext),"data-title":(e(r).file_title?"<h4>"+e(r).file_title+"</h4>":"")+(e(r).file_description?e(r).file_description:"")},[p[10]||(p[10]=n("span",{class:"fa fa-fw fa-images"},null,-1)),p[11]||(p[11]=Ye()),n("span",Wi,b(e(Se)),1)],8,Hi)):(i(),u("a",{key:1,class:"single-image-button store-lightbox-link",onClick:p[9]||(p[9]=Ae(S=>e(He)(),["prevent","stop"])),href:e(r).file_video&&e(G)?"https://www.youtube-nocookie.com/embed/"+e(O)(e(r).file_video)+"?autoplay=1":e(g)+e(E)+"/largefiles/"+e(r).file_id+"."+encodeURI(e(r).file_ext),"data-title":(e(r).file_title?"<h4>"+e(r).file_title+"</h4>":"")+(e(r).file_description?e(r).file_description:"")},[...p[12]||(p[12]=[n("span",{class:"fa-regular fa-magnifying-glass-plus fa-lg"},null,-1)])],8,Yi))])]),n("a",{class:"left carousel-control hidden-print",href:"javascript:;",role:"button","data-slide":"prev",onClick:Ne},[p[13]||(p[13]=n("i",{class:"fa fa-chevron-left","aria-hidden":"true"},null,-1)),n("span",Ki,b(e(_)("Previous")),1)]),n("a",{class:"right carousel-control hidden-print",href:"javascript:;",role:"button","data-slide":"next",onClick:Ee},[p[14]||(p[14]=n("i",{class:"fa fa-chevron-right","aria-hidden":"true"},null,-1)),n("span",Gi,b(e(_)("Next")),1)])],2)):v("",!0),e(Ke)||!e(Se)?(i(),u("div",Ji,[n("div",Zi,[n("h1",null,b(e(r).name),1),e(r).file_description?(i(),u("p",Qi,b(e(r).file_description),1)):v("",!0)])])):(i(),u("div",Xi,[n("div",es,[n("h1",null,b(e(r).name),1)])])),n("div",ts,[n("div",as,[n("div",{class:"js-main-category js-main-category-0 product-content-mainwrap","data-category":e(r).id},[e(rt)(e(r).channeldata?.description)&&e(r).view!=="showtimes"?Xt((i(),u("div",is,[n("div",ss,[V(e(P),{html:e(Pe),onClick:te},null,8,["html"])])],512)),[[La,e(r).channeldata]]):v("",!0),V(Ut,{shopId:e(E),baseDomain:e(F),category:e(r),products:e(M),view:e(r).view,context:"category",locations:e(q),defaultVersion:e(D).defaultversion,searchActive:e(k),productLinkUrl:S=>e(re)(e(r),e(q))?e(ie)(S,e(r)):void 0,onSearchStart:qe,onSearchClear:fe},null,8,["shopId","baseDomain","category","products","view","locations","defaultVersion","searchActive","productLinkUrl"]),e(ot).length?(i(),u("ul",ns,[(i(!0),u(ve,null,we(e(ot),S=>(i(),u("li",null,[n("a",{class:"store-lightbox-link",onClick:Ae(Je=>e(He)(le(S)),["prevent","stop"]),href:S.video&&e(G)?"https://www.youtube-nocookie.com/embed/"+e(O)(S.video)+"?autoplay=1":e(g)+e(E)+"/largefiles/"+S.id+"-"+encodeURI(S.filename.replace(/[^a-zA-Z0-9-_\.]/g,"")),"data-title":(S.title?"<h4>"+S.title+"</h4>":"")+(S.description?S.description:"")},b(S.title?S.title:"-"),9,ls)]))),256))])):v("",!0),V(Wa,{published:e(r).datepublished||"",modified:e(r).datemodified||"",dis
2play:e(r).datedisplay||""},null,8,["published","modified","display"])],8,os)])])])):v("",!0)}}}),us=Jo(rs,[["__scopeId","data-v-1b47f10b"]]),cs={key:0},ds={class:"js-grid-title-wrap"},vs={class:"js-grid-title-text"},ps={class:"deliverymethod"},fs={class:"deliverymethod-title"},hs={class:"deliverymethod-name"},ms={key:0,class:"deliverymethod-price"},gs={key:0,class:"deliverymethod-query"},_s={key:0},ys={key:1},bs={key:2},ks={class:"form-group"},ws=["disabled"],Is=$t({__name:"DeliveryMethods",props:{product:{type:Object,required:!0},shopId:{type:String,required:!0}},setup(pe){const{$store:P,$translate:_}=at(),{apiUrl:R}=ut(P),T=$(!1),G=$(!1),X=$(""),ge=$("FI"),O=pe,{currency:ie}=It(),{isFeatureEnabled:re}=Zo(),j=c(()=>O.product&&O.product.sharedDeliverymethod&&O.product.sharedDeliverymethod.length?O.product.sharedDeliverymethod.filter(r=>!parseInt(r.internal)):[]),y=c(()=>re("delivery2.0")?!!j.value.length:!1),F=c(()=>j.value.filter(r=>!parseInt(r.price)&&parseInt(r.shipit_pricing)&&parseInt(r.shipit_margin))),g=c(()=>!!X.value),N=c(()=>F.value.length>0),E=c(()=>N.value&&F.value.length==j.value.length),D=c(()=>F.value.length===1&&F.value.length<j.value.length),he=c(()=>N.value&&F.value.length<j.value.length),A=async r=>{r.preventDefault();let M=[...new Set(O.product.sharedDeliverymethod.map(H=>H.shipit_serviceid))];T.value=!0;let q;try{q=await $fetch(R.value+O.shopId+"/products/"+O.product.id+".json?shipit=true&postcode="+X.value+"&country="+ge.value+"&serviceids="+JSON.stringify(M))}catch{T.value=!1,G.value=!1;return}q.methods.forEach(H=>{let w=O.product.sharedDeliverymethod.find(ue=>ue.shipit_serviceid===H.serviceId);w&&(w.price=H.price)}),G.value=!0,T.value=!1};return(r,M)=>e(y)?(i(),u("div",cs,[n("div",ds,[n("h4",vs,b(e(_)("Delivery methods")),1)]),(i(!0),u(ve,null,we(e(j),q=>(i(),u("div",ps,[n("div",fs,[n("strong",hs,b(q.name),1),parseInt(q.price,10)>0?(i(),u("span",ms,b(e(ie)(q.price,pe.product.currency)),1)):v("",!0)])]))),256)),e(N)?(i(),u("div",gs,[M[1]||(M[1]=n("hr",null,null,-1)),e(D)&&!e(E)?(i(),u("p",_s,b(e(_)("The availability and cost of one of the shipping method options may vary depending on the delivery address.")),1)):e(he)?(i(),u("p",ys,b(e(_)("The availability and cost of some of the shipping method options may vary depending on the delivery address.")),1)):(i(),u("p",bs,b(e(_)("The availability and cost of the shipping method options may vary depending on the delivery address.")),1)),n("div",ks,[n("label",null,b(e(_)("Postal code")),1),Xt(n("input",{type:"text",class:"form-control","onUpdate:modelValue":M[0]||(M[0]=q=>Ha(X)?X.value=q:null)},null,512),[[ai,e(X)]])]),n("button",{class:"btn btn-default",onClick:A,disabled:!e(g)||e(T)?!0:void 0},b(e(_)("Get delivery pricing")),9,ws)])):v("",!0)])):v("",!0)}});var jt={exports:{}};var $s=jt.exports,Da;function Cs(){return Da||(Da=1,(function(pe,P){(function(_,R){pe.exports=R()})($s,(function(){function _(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_=function(s){return typeof s}:_=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},_(t)}function R(){return R=Object.assign||function(t){for(var s=1;s<arguments.length;s++){var d=arguments[s];for(var x in d)Object.prototype.hasOwnProperty.call(d,x)&&(t[x]=d[x])}return t},R.apply(this,arguments)}var T=4,G=.001,X=1e-7,ge=10,O=11,ie=1/(O-1),re=typeof Float32Array=="function";function j(t,s){return 1-3*s+3*t}function y(t,s){return 3*s-6*t}function F(t){return 3*t}function g(t,s,d){return((j(s,d)*t+y(s,d))*t+F(s))*t}function N(t,s,d){return 3*j(s,d)*t*t+2*y(s,d)*t+F(s)}function E(t,s,d,x,Y){var J,L,Te=0;do L=s+(d-s)/2,J=g(L,x,Y)-t,J>0?d=L:s=L;while(Math.abs(J)>X&&++Te<ge);return L}function D(t,s,d,x){for(var Y=0;Y<T;++Y){var J=N(s,d,x);if(J===0)return s;var L=g(s,d,x)-t;s-=L/J}return s}function he(t){return t}var A=function(s,d,x,Y){if(!(0<=s&&s<=1&&0<=x&&x<=1))throw new Error("bezier x values must be in [0, 1] range");if(s===d&&x===Y)return he;for(var J=re?new Float32Array(O):new Array(O),L=0;L<O;++L)J[L]=g(L*ie,s,x);function Te(f){for(var m=0,k=1,Z=O-1;k!==Z&&J[k]<=f;++k)m+=ie;--k;var Q=(f-J[k])/(J[k+1]-J[k]),Ce=m+Q*ie,Be=N(Ce,s,x);return Be>=G?D(f,Ce,s,x):Be===0?Ce:E(f,m,m+ie,s,x)}return function(m){return m===0?0:m===1?1:g(Te(m),d,Y)}},r={ease:[.25,.1,.25,1],linear:[0,0,1,1],"ease-in":[.42,0,1,1],"ease-out":[0,0,.58,1],"ease-in-out":[.42,0,.58,1]},M=!1;try{var q=Object.defineProperty({},"passive",{get:function(){M=!0}});window.addEventListener("test",null,q)}catch{}
2var se={$:function(s){return typeof s!="string"?s:document.querySelector(s)},on:function(s,d,x){var Y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{passive:!1};d instanceof Array||(d=[d]);for(var J=0;J<d.length;J++)s.addEventListener(d[J],x,M?Y:!1)},off:function(s,d,x){d instanceof Array||(d=[d]);for(var Y=0;Y<d.length;Y++)s.removeEventListener(d[Y],x)},cumulativeOffset:function(s){var d=0,x=0;do d+=s.offsetTop||0,x+=s.offsetLeft||0,s=s.offsetParent;while(s);return{top:d,left:x}}},H=["mousedown","wheel","DOMMouseScroll","mousewheel","keyup","touchmove"],w={container:"body",duration:500,lazy:!0,easing:"ease",offset:0,force:!0,cancelable:!0,onStart:!1,onDone:!1,onCancel:!1,x:!1,y:!0};function ue(t){w=R({},w,t)}var B=function(){var s,d,x,Y,J,L,Te,f,m,k,Z,Q,Ce,Be,Se,Ne,Ee,Ke,Ge,_e,$e,Re,Ve,ot=function(te){f&&(Ve=te,_e=!0)},Pe,qe,fe,Oe;function it(le){var te=le.scrollTop;return le.tagName.toLowerCase()==="body"&&(te=te||document.documentElement.scrollTop),te}function gt(le){var te=le.scrollLeft;return le.tagName.toLowerCase()==="body"&&(te=te||document.documentElement.scrollLeft),te}function st(){$e=se.cumulativeOffset(d),Re=se.cumulativeOffset(s),Q&&(Se=Re.left-$e.left+L,Ke=Se-Be),Ce&&(Ee=Re.top-$e.top+L,Ge=Ee-Ne)}function nt(le){if(_e)return He();qe||(qe=le),J||st(),fe=le-qe,Oe=Math.min(fe/x,1),Oe=Pe(Oe),ct(d,Ne+Ge*Oe,Be+Ke*Oe),fe<x?window.requestAnimationFrame(nt):He()}function He(){_e||ct(d,Ee,Se),qe=!1,se.off(d,H,ot),_e&&Z&&Z(Ve,s),!_e&&k&&k(s)}function ct(le,te,h){Ce&&(le.scrollTop=te),Q&&(le.scrollLeft=h),le.tagName.toLowerCase()==="body"&&(Ce&&(document.documentElement.scrollTop=te),Q&&(document.documentElement.scrollLeft=h))}function dt(le,te){var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(_(te)==="object"?h=te:typeof te=="number"&&(h.duration=te),s=se.$(le),!s)return console.warn("[vue-scrollto warn]: Trying to scroll to an element that is not on the page: "+le);if(d=se.$(h.container||w.container),x=h.hasOwnProperty("duration")?h.duration:w.duration,J=h.hasOwnProperty("lazy")?h.lazy:w.lazy,Y=h.easing||w.easing,L=h.hasOwnProperty("offset")?h.offset:w.offset,Te=h.hasOwnProperty("force")?h.force!==!1:w.force,f=h.hasOwnProperty("cancelable")?h.cancelable!==!1:w.cancelable,m=h.onStart||w.onStart,k=h.onDone||w.onDone,Z=h.onCancel||w.onCancel,Q=h.x===void 0?w.x:h.x,Ce=h.y===void 0?w.y:h.y,typeof L=="function"&&(L=L(s,d)),Be=gt(d),Ne=it(d),st(),_e=!1,!Te){var p=d.tagName.toLowerCase()==="body"?document.documentElement.clientHeight||window.innerHeight:d.offsetHeight,ye=Ne,lt=ye+p,z=Ee-L,me=z+s.offsetHeight;if(z>=ye&&me<=lt){k&&k(s);return}}if(m&&m(s),!Ge&&!Ke){k&&k(s);return}return typeof Y=="string"&&(Y=r[Y]||r.ease),Pe=A.apply(A,Y),se.on(d,H,ot,{passive:!0}),window.requestAnimationFrame(nt),function(){Ve=null,_e=!0}}return dt},W=B(),ne=[];function ce(t){for(var s=0;s<ne.length;++s)if(ne[s].el===t)return ne.splice(s,1),!0;return!1}function ze(t){for(var s=0;s<ne.length;++s)if(ne[s].el===t)return ne[s]}function de(t){var s=ze(t);return s||(ne.push(s={el:t,binding:{}}),s)}function Ie(t){var s=de(this).binding;if(s.value){if(t.preventDefault(),typeof s.value=="string")return W(s.value);W(s.value.el||s.value.element,s.value)}}var C={bind:function(s,d){de(s).binding=d,se.on(s,"click",Ie)},unbind:function(s){ce(s),se.off(s,"click",Ie)},update:function(s,d){de(s).binding=d}},Le={bind:C.bind,unbind:C.unbind,update:C.update,beforeMount:C.bind,unmounted:C.unbind,updated:C.update,scrollTo:W,bindings:ne},De=function(s,d){d&&ue(d),s.directive("scroll-to",Le);var x=s.config.globalProperties||s.prototype;x.$scrollTo=Le.scrollTo};return typeof window<"u"&&window.Vue&&(window.VueScrollTo=Le,window.VueScrollTo.setDefaults=ue,window.VueScrollTo.scroller=B,window.Vue.use&&window.Vue.use(De)),Le.install=De,Le}))})(jt)),jt.exports}var Ss=Cs();const Va=ri(Ss),Ps=["aria-label"],xs=["aria-label"],Ls={class:"container"},Ts={class:"js-breadcrumb-navi"},Es={class:"breadcrumb-navi-item breadcrumb-navi-root"},Ds={class:"breadcrumb-navi-item breadcrumb-navi-current"},Vs={key:0,class:"video-controls"},Os=["title"],Ms=["aria-label"],js=["aria-label"],As=["title"],Us=["aria-label"],Fs=["aria-label"],Bs={class:"carousel-inner"},Ns={class:"js-carousel-image item active"},Rs={class:"video-fg"},qs={class:"container"},zs={key:0,class:"ratings hidden-print"}
2,Hs={class:"product-showimages-button"},Ws=["href","data-title"],Ys={class:"button-count"},Ks=["href","data-title"],Gs={class:"container js-page-name page-header-title big-text"},Js={key:0,class:"ratings hidden-print"},Zs=["stuck"],Qs={class:"product-tab-name container"},Xs={class:"product-tabs-scroller"},en={class:"nav nav-tabs product-tabs container"},tn=["data-ref"],an=["onClick"],on={class:"main-content-wrap"},sn={class:"container main-content"},nn=["data-src"],ln={key:1,class:"alert alert-danger"},rn={key:1,class:"row product-content-mainwrap"},un={key:0,class:"col-sm-4 col-p-4 product-content-extras col-sm-push-8"},cn={key:0,class:"product-page-sidebarimage"},dn={class:"grid-content-image"},vn=["href","data-title"],pn={key:0,class:"product-sidebar-showimages-button text-center"},fn=["href","data-title"],hn={class:"button-text"},mn={key:0,class:"button-count"},gn={key:1},_n={key:0,class:"product-page-tags"},yn={class:"product-page-tagitem"},bn={key:1,class:"product-content-description"},kn={key:0,class:"container main-content"},wn={class:"product-content-infotitle"},In={class:"package-contents"},$n={class:"package-group"},Cn={key:0},Sn=["onClick"],Pn={class:"product-content-infotitle"},xn={key:0,id:"js-product-map",class:"product-content-map page-section","aria-role":"application"},Ln=["innerHTML"],Tn={class:"product-content-infotitle"},En={key:0,style:{width:"100%",height:"auto","aspect-ratio":"16/9"}},Dn=["href"],Vn={class:"button-text"},On={class:"product-content-infotitle flex-row"},Mn=["href","data-title"],jn={class:"button-text"},An={class:"product-content-gallery"},Un=["onClick","href","title","data-title"],Fn=["srcset"],Bn=["srcset"],Nn=["srcset"],Rn=["srcset"],qn=["src","alt"],zn={class:"js-grid-title-wrap"},Hn={class:"product-content-infotitle"},Wn=["data-ref"],Yn={key:0,class:"category-locator category-locator-product no-image"},Kn={class:"container"},Gn={class:"js-grid-title-wrap"},Jn={class:"product-content-infotitle"},Zn={class:"container main-content"},Qn=["innerHTML"],Xn=["data-ref"],el={key:0,class:"category-locator category-locator-product no-image"},tl={class:"container"},al={class:"js-grid-title-wrap"},ol={class:"product-content-infotitle"},il={class:"container main-content"},sl={class:"container main-content"},nl={key:4,class:"container sticky-location main-content"},ll={class:"js-breadcrumb-navi"},rl={class:"breadcrumb-navi-item breadcrumb-navi-current"},ul=["href","onClick"],cl={key:1},dl=$t({__name:"Productpage",props:{category:{type:Object,required:!1},product:{type:Object,required:!0},shopId:{type:String,required:!0},locations:{type:Array,required:!0},disableMenu:{type:Boolean,required:!1,default:!1}},setup(pe){const P=je(()=>Me(()=>import("./DNJjNz6y.js"),__vite__mapDeps([10,1,2,3,4,5]),import.meta.url)),_=je(()=>Me(()=>import("./D9qu97TR.js"),__vite__mapDeps([11,1,2,3,4,5]),import.meta.url)),R=je(()=>Me(()=>import("./zEA6auws.js"),__vite__mapDeps([12,1,2,3,4,5]),import.meta.url)),T=je(()=>Me(()=>import("./gV6p11mW.js"),__vite__mapDeps([13,2,1,3,4,5]),import.meta.url)),G=je(()=>Me(()=>import("./C5dRWEu3.js"),__vite__mapDeps([14,1,2,3,4,5]),import.meta.url)),X=je(()=>Me(()=>import("./CLo4tDe2.js"),__vite__mapDeps([15,2,1,3,4,5]),import.meta.url)),ge=je(()=>Me(()=>import("./D5xDRDHb.js"),__vite__mapDeps([16,1,2,3,4,5,6,17,18,19,8,7,20,21,22]),import.meta.url)),O=je(()=>Me(()=>import("./BYvZ9L7_.js"),__vite__mapDeps([23,24,1,2,3,4,5,25,17,18,19,8]),import.meta.url)),ie=je(()=>Me(()=>import("./N_WY53j0.js"),__vite__mapDeps([26,27,3,28,29,2,30]),import.meta.url)),re=je(()=>Me(()=>import("./Bt-pL16-.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]),import.meta.url)),{$store:j,$translate:y,$eventbus:F}=at(),{hasYoutubeConsent:g,hasMarketingConsent:N,hasStatisticsConsent:E}=oa(),{marketingname:D,makeLocationUrl:he,youtubeId:A}=It(),{productLinkUrl:r,isCollectionLinkContext:M}=Ya(),{googleMapsApiKey:q,googleMapsMapId:se,transparentNavBar:H}=At(),{mapsBasemapUrl:w}=vi(),{navigate:ue}=pi(),{onInternalHtmlLinkClick:B}=fi(),{baseDomain:W,cdnDomain:ne,locale:ce,shortLocale:ze,shopId:de,isWidget:Ie,mySettings:C}=ut(j),Le=pe,{category:De,product:t,shopId:s,locations:d,disableMenu:x}=Fa(Le),{actionText:Y,allImages:J,galleryImages:L,allRatings:Te,hasAdditionalImages:f,hasCoordinates:m,hasCu
2stomMap:k,hasRealDescription:Z,hasDescription:Q,hasPackagedOptions:Ce,hasTrailer:Be,hasUpsellCategories:Se,hasUpsellProducts:Ne,hasVisibleDeliverymethods:Ee,isContent:Ke,isEvent:Ge,isMovieLike:_e,numberOfVisibleOptions:$e,packagedProducts:Re,parsedDescription:Ve,pricingByOptions:ot,trailerUrl:Pe,upsellProducts:qe,upsellCategories:fe,upsellProductsLoaded:Oe,upsellCategoriesLoaded:it,upsellProductsLoading:gt,upsellCategoriesLoading:st,pendingUpsellProductCount:nt,pendingUpsellCategorySlots:He,hasResourcepoolHierarchy:ct,loadUpsellCategories:dt,loadUpsellProducts:le}=Pa(t,{shopId:s}),te=c(()=>!Oe.value&&nt.value>0),h=c(()=>!it.value&&He.value.length>0),p=c(()=>{const o={};for(let a=0;a<fe.value.length;a++)o[String(fe.value[a].id)]=fe.value[a];return o}),ye=c(()=>He.value.map(o=>({slot:o,category:p.value[String(o.id)]||null}))),{shopTitle:lt}=At(),z=za({}),me=(o,a)=>{z[a]=o},Ut=c(()=>z.youtube_product),{onVideoEnded:S,onVideoPlaying:Je,activateVideo:Ct,pauseVideo:St,toggleMute:Ka,togglePause:na,toggleMuteText:Ga,togglePauseText:Ja,isVideoPaused:Za,isVideoMuted:Qa,isVideoPlaying:la}=ja(Ut),{makeMainImage:Xa,makeSidebarImage:eo,makeSeoImageFilename:Ft,makeLargefileUrl:ra}=ia(),ua=o=>Ft(o?.title,t.value?.name),ca=o=>ra(s.value,o.id,ua(o)),Pt=c(()=>t.value?.file_id?ra(s.value,t.value.file_id,Ft(t.value.file_title,t.value.name)):""),_t=(o,a,U)=>ne.value+s.value+"/files/"+o.id+"/w"+a+"-h"+U+"-s/webp/"+ua(o)+".webp",Ze=$(null),yt=$(void 0),bt=c(()=>{if(t.value?.id)return t.value.id+":"+ce.value}),da=$(!1),to=$(!1),va=$(!1),Bt=$(!1);let kt,pa,fa,xt;const Qe=$([]),vt=$(new Set),Nt=$(1),ha=$(!0),Rt=$(!1),ma=$(null),ao={autoplay:0,controls:0,modestbranding:1,loop:1,nocookie:1,playsinline:1,rel:0},oo=c(()=>{const o=A(Pe.value);return{controls:1,modestbranding:1,loop:1,nocookie:1,playsinline:1,rel:0,...o?{playlist:o}:{}}}),ga=c(()=>Be.value?A(Pe.value)?g.value:!0:!1);let Lt;const Tt=c(()=>t.value?.mainimagelayout==="large"&&t.value.file_id),Et=c(()=>t.value?.mainimagelayout==="inline"&&t.value.file_id),_a=c(()=>L.value[0]),io=c(()=>{const o=_a.value;return o?o.video&&g.value?"https://www.youtube-nocookie.com/embed/"+A(o.video)+"?autoplay=1":ca(o):""}),so=c(()=>{const o=_a.value;return o?(o.title?"<h4>"+o.title+"</h4>":"")+(o.description?o.description:""):""}),no=(o,a,U,K,ee)=>{F.$emit("productClicked",{product:o,category:a,position:U,locations:K,path:ee})},ya=o=>{F.$emit("productViewed",{product:o,shopId:s.value})},Xe=c(()=>{let o=[];if(!(typeof t.value?.sharedTag>"u"||!t.value?.sharedTag)){for(var a=[],U=0;U<t.value?.sharedTag.length;U++){let K=t.value?.sharedTag[U].title.split(":::"),ee=t.value?.sharedTag[U].title.split(":::"+ce.value+":::");ce.value===C.value?.defaultversion&&K.length===2&&K[0]==="product"?a.push(K[1]):ee.length==2&&ee[0]==="product"&&a.push(ee[1])}o=a}if(s.value!==de.value&&C.value&&C.value.saleschannel&&C.value.saleschannel.sharedTag&&C.value.saleschannel.sharedTag.length){let K=[];for(let ee=0;ee<C.value.saleschannel.sharedTag.length;ee++)K[ee]=C.value.saleschannel.sharedTag[ee].title.split(ce.value+":::")[1];o=o.filter(ee=>K.includes(ee))}return o}),lo=c(()=>Re.value?.filter((o,a,U)=>!o.group||U.findIndex(K=>K.group===o.group)===a)),ro=o=>!o.group||!Re.value?[o]:Re.value?.filter(a=>a.group===o.group),uo=c(()=>Ie.value?Ze.value.closest(".product-dialog"):document.querySelector("body")),co=c(()=>Nt.value&&Array.from(vt.value)),vo=o=>Qe.value&&Qe.value.includes&&Qe.value.includes(o),po=c(()=>$e.value<6||ot.value||t.value&&Number(t.value.type)===Vt.TYPE_RESERVABLE?!1:!va.value),fo=c(()=>C.value?di({hideMode:C.value.hideshopfromlocal,shopId:de.value,productShopId:s.value,isContentSubtype:t.value&&parseInt(t.value.subtype,10)===Vt.SUBTYPE_CONTENT}):!1),qt=c(()=>C.value.upselltitle||y("Also recommended")),ho=c(()=>ui(ci({shop:C.value?.productlistcolumncount}))),zt=c(()=>Number(C.value.pagetitlelocation)>0),mo=c(()=>["naturaviva","melontakeskus","tervarumpu","verla","tentsilecamps","johkukauppa","store","skafurtour"].includes(s.value)),pt=c(()=>{let o=null;if(t.value&&t.value.channeldata&&t.value.channeldata.description){let a=t.value.channeldata.description.split("bookingChannelUUID=");a.length>1&&(o=a[1].split('"')[0])}return o}
2),ba=c(()=>{if(!pt.value)return;let o=null,a=t.value?.channeldata.description.split("online-sales/"+pt.value+"/experience/");return a.length>1&&(o=a[1].split('"')[0]),o}),go=c(()=>!1),ka=c(()=>k.value||!Ie.value&&m.value),_o=c(()=>m.value&&!k.value&&!!q.value&&N.value&&E.value),yo=c(()=>m.value&&!k.value&&!q.value&&!Ie.value),bo=c(()=>{const o=parseFloat(t.value?.channeldata?.latitude),a=parseFloat(t.value?.channeldata?.longitude);return{lat:o,lng:a}}),ko=c(()=>{const o=parseFloat(t.value?.channeldata?.latitude),a=parseFloat(t.value?.channeldata?.longitude);return!o||!a?[]:[{id:t.value?.id,lat:o,lng:a,title:D(t.value)}]}),xe=c(()=>{let o=[],a={};if(Ge.value?a.title=y("Tickets"):a.title=Y.value,Number(t.value?.subtype)!==Vt.SUBTYPE_CONTENT&&Number(t.value?.hide_pricing)!==Vt.PRICING_DISABLED&&(a.ref="product",o.push({...a})),Q.value&&(a.title=y("Description"),a.ref="description",o.push({...a})),ka.value&&(a.title=y("Map"),a.ref="map",o.push({...a})),ga.value&&(a.title=y("Trailer"),a.ref="trailer",o.push({...a})),f.value&&(a.title=y("Images")+" ("+L.value.length+")",a.ref="images",o.push({...a})),Ne.value&&(a.title=qt.value,a.ref="linkedproducts",o.push({...a})),Se.value)for(let U=0;U<fe.value.length;U++)fe.value[U].hidetitle||(a.title=fe.value[U].name,a.ref="linkedcategory_"+fe.value[U].id,o.push({...a}));return o.length>1?o:[]}),wo=o=>{if(Rt.value)return!1;for(let a=0;a<xe.value?.length;a++){if(vt.value.has(xe.value[a].ref)&&xe.value[a].ref!==o)return!1;if(vt.value.has(xe.value[a].ref)&&xe.value[a].ref===o)return!0}return!1},Io=o=>{vt.value.add(o),Nt.value+=1},$o=o=>{vt.value.delete(o),Nt.value+=1},wa=o=>{if(Lt)try{Lt()}catch{}if(o&&o.ref&&z[o.ref]){let a=z[o.ref];z[o.ref].$el?a=z[o.ref].$el:a=Ze.value.querySelectorAll("[data-ref="+o.ref+"]")[0];const U=getComputedStyle(a);let K=15;Ie.value&&(K=0),!H.value&&!Ie.value&&(K+=Number(document.querySelector("#js-navbar-main")?.clientHeight)),K+=Number(z.prodtabs?.clientHeight);const ee=Number(U.scrollMargin)?-parseInt(U.scrollMargin,10):-K,et=function(){Rt.value=!0},tt=function(){Rt.value=!1};try{Lt()}catch{}Lt=Va.scrollTo(a,400,{container:uo.value,offset:ee,cancelable:!1,lazy:!1,onStart:et,onDone:tt,onCancel:tt})}},Co=o=>{Qe.value.includes(o)||Qe.value.push(o)},So=o=>{Qe.value=Qe.value.filter(a=>a!=o)},Ht=()=>{{const o=l=>{l.forEach(I=>{if(da.value=I.isIntersecting,I.isIntersecting){document.getElementsByTagName("html")[0].classList.remove("stuck");let ae=z.prodtabs;ae&&(ae.$el&&(ae=ae.$el),ae.classList.remove("stuck"))}else{document.getElementsByTagName("html")[0].classList.add("stuck");let ae=z.prodtabs;ae&&(ae.$el&&(ae=ae.$el),ae.classList.add("stuck"))}})};xt?.disconnect(),xt=new window.IntersectionObserver(o);let a=z.pagetitle;if(a){a.$el&&(a=a.$el);try{xt.observe(a)}catch(l){console.log(l)}}const U=Ze.value.querySelectorAll(".category-search-bar"),K=l=>{Bt.value=!1,l.forEach(I=>{if(I.isIntersecting){Bt.value=!0;return}})};kt?.disconnect(),kt=new window.IntersectionObserver(K),U.forEach(l=>{kt&&kt.observe(l)});const ee={rootMargin:"-150px 0px 0px 0px",threshold:0},et=l=>{l.forEach(I=>{ha.value=I.isIntersecting})};if(fa=new window.IntersectionObserver(et,ee),a=z.product,a){a.$el?a=a.$el:a=Ze.value.querySelectorAll("[data-ref=productref]")[0];try{fa.observe(a)}catch{}}const tt={rootMargin:"-30% 0px -50%",threshold:0},ht=l=>{l.forEach(I=>{const ae=I.target.dataset.ref;ae&&(I.isIntersecting?Io(ae):$o(ae))})};pa=new window.IntersectionObserver(ht,tt),xe.value.forEach(l=>{let I=z[l.ref];if(I){I.$el?I=I.$el:I=Ze.value.querySelectorAll("[data-ref="+l.ref+"]")[0];try{pa.observe(I)}catch{}}})}},Po=o=>{to.value=o},xo=()=>{va.value=!0};oe(qe,async()=>{t.value&&F.$emit("productListViewed",{title:qt.value,id:"upsell-prod-"+t.value.id}),await Jt(),Ht()}),oe(fe,async()=>{for(let o=0;o<fe.value.length;o++)F.$emit("productListViewed",{title:fe.value[o].name,id:"cat-"+fe.value[o].id,items:fe.value[o].sharedProduct});await Jt(),Ht()});const Lo=async()=>{if(!(N.value&&E.value)||!t.value)return;let o=t.value,a=o.channeldata?parseFloat(o.channeldata.latitude):0,U=o.channeldata?parseFloat(o.channeldata.longitude):0;
2if(a&&U&&q.value){const K=window.google;if(!K?.maps?.importLibrary)return;const ee=Ze.value?.querySelector("#js-product-map");if(!ee)return;const et={lat:a,lng:U},tt="https://www.google.com/maps/search/?api=1&query="+encodeURIComponent(a+","+U),ht=se.value;try{const l=await K.maps.importLibrary("maps"),I=await K.maps.importLibrary("marker"),ae=l.Map,Kt=I.AdvancedMarkerElement,Gt=new ae(ee,{center:et,zoom:13,mapTypeId:K.maps.MapTypeId.ROADMAP,mapId:ht}),Ia=new Kt({map:Gt,position:et,title:D(o),gmpClickable:!0});Ia.addEventListener("gmp-click",()=>{const Yo=K.maps.InfoWindow,$a=document.createElement("div");$a.textContent=D(o);const Ca=document.createElement("div"),mt=document.createElement("a");mt.href=tt,mt.target="_blank",mt.rel="noopener noreferrer",mt.style.textDecoration="none",mt.textContent=y("View on Google Maps"),Ca.appendChild(mt),new Yo({headerContent:$a,content:Ca}).open({map:Gt,anchor:Ia})})}catch(l){console.log(l)}}},To=()=>{Vo()},Eo=async()=>{if(await Jt(),pt.value){const o=document.createElement("script");o.setAttribute("src","https://widgets.bokun.io/assets/javascripts/apps/build/BokunWidgetsLoader.js?bookingChannelUUID="+pt.value),document.head.appendChild(o)}},Do=(o="main")=>{let a="";t.value?.file_id&&(a=t.value.file_id,t.value?.mobileimage_id&&(a+=","+t.value.mobileimage_id));let U=Xa;return o==="sidebar"&&(U=eo),U(s.value,a,Ft(t.value?.file_title,t.value?.name),t.value?.name??"",t.value?.description??"")},We=c(()=>Do(Et.value?"sidebar":"main"));Aa(c(()=>Tt.value&&!Ie.value?[We.value]:[]));const{initializeLightbox:Vo,showLightbox:ft,showSingleLightbox:Oo,closeLightbox:Mo}=aa(L,s,St,c(()=>t.value?.name)),jo=o=>L.value.findIndex(a=>String(a.id)===String(o.id)),Ao=o=>{const a=Ma(o,J.value);a&&Oo(a)},Uo=c(()=>Pe.value?[{video:Pe.value,filename:"trailer"}]:[]),Fo=()=>{Bo(),No()},{initializeLightbox:Bo,showLightbox:No}=aa(Uo,s,St),Ro=o=>{Wt.value=o,Ho()},Wt=$(""),{product:Yt}=hi(Wt,de),{isProductModalVisible:qo,closeProductModal:zo,showProductModal:Ho}=Pa(Yt);Ba(()=>{j.imageIndex=0}),oi(()=>{yt.value,bt.value}),Na(()=>{j.imageIndex=0,yt.value=bt.value,To(),Ht(),le(),dt(),F.$on("lightboxClick",o=>{St()}),Dt(),ya(t.value)});const Dt=()=>{!m.value||!q.value||(!window.google||!Ze.value?.querySelector("#js-product-map")?setTimeout(Dt,100):Lo())},Wo=()=>{const o=xe.value.find(a=>a.ref==="product");o&&wa(o)};return oe([N,E],()=>{N.value&&E.value&&Dt()}),oe(co,Qo(()=>{for(let o=0;o<xe.value.length;o++)if(!Ie.value&&vt.value.has(xe.value[o].ref)){Va.scrollTo("[data-ref=tab_"+
2xe.value[o].ref+"]",400,{container:".product-tabs-scroller",x:!0,y:!1,offset:-40});return}},500)),oe(Bt,o=>{F.$emit("inlineSearchVisible",o)}),Ra(()=>{yt.value!==bt.value&&(Eo(),yt.value=bt.value,Dt(),Oe.value=!1,it.value=!1,gt.value=!1,st.value=!1,qe.value=[],fe.value=[],le(),dt(),Ct(),Qe.value=[],F.$emit("inlineSearchVisible",!1),ya(t.value)),yt.value=bt.value}),sa(()=>{Mo(),z.youtube_main&&z.youtube_main.player&&(z.youtube_main.player.pauseVideo(),z.youtube_main.player.stopVideo(),z.youtube_main.player.destroy(),ma.value=null),kt?.disconnect(),xt?.disconnect(),document.getElementsByTagName("html")[0].classList.remove("stuck"),F.$emit("inlineSearchVisible",!1)}),ii(()=>{z.youtube_main&&z.youtube_main.player&&(z.youtube_main.player.pauseVideo(),z.youtube_main.player.stopVideo(),z.youtube_main.player.destroy(),ma.value=null)}),(o,a)=>{const U=Oa,K=qa("youtube"),ee=Zt,et=Is,tt=Ua,ht=li;return i(),u(ve,null,[e(t)?(i(),u("div",{key:0,id:"main-content",class:"product",role:"region","aria-label":e(y)("Content"),ref_key:"productPage",ref:Ze},[e(x)?v("",!0):(i(),u("nav",{key:0,class:ke("breadcrumb-navi-wrap"+(e(Tt)?" has-image":"")),"aria-label":e(y)("Breadcrumb")},[n("div",Ls,[n("ul",Ts,[n("li",Es,[V(U,{to:"/"+e(ce)},{default:Fe(()=>[Ye(b(e(lt)),1)]),_:1},8,["to"])]),(i(!0),u(ve,null,we(e(d),(l,I)=>(i(),u("li",Ds,[V(U,{to:e(he)(e(de),e(ce),void 0,e(d),I)},{default:Fe(()=>[Ye(b(e(D)(l.targetObject)),1)]),_:2},1032,["to"])]))),256))])])],10,xs)),e(Tt)?(i(),u("div",{key:1,id:"js-carousel-productgroup",class:ke("carousel-product carousel slide carousel-fade items-1"+(e(xe).length&&!e(zt)?" above-tab-navi":""))},[e(g)&&e(la)?(i(),u("div",Vs,[n("a",{href:"javascript:;",class:"toggle-video-audio",onClick:a[0]||(a[0]=l=>e(Ka)()),title:e(Ga)},[e(Qa)?(i(),u("i",{key:1,class:"fa fa-fw fa-volume-off","aria-label":e(y)("Unmute audio")},null,8,js)):(i(),u("i",{key:0,class:"fa fa-fw fa-volume-up","aria-label":e(y)("Mute audio")},null,8,Ms))],8,Os),n("a",{href:"javascript:;",class:"toggle-video-pause",onClick:a[1]||(a[1]=(...l)=>e(na)&&e(na)(...l)),title:e(Ja)},[e(Za)?(i(),u("i",{key:1,class:"fa fa-fw fa-play","aria-label":e(y)("Play video")},null,8,Fs)):(i(),u("i",{key:0,class:"fa fa-fw fa-pause","aria-label":e(y)("Pause video")},null,8,Us))],8,As)])):v("",!0),n("div",Bs,[n("div",Ns,[n("div",{class:ke("js-carousel-product-image carousel-item-image mediabox fit-cover"+(e(t).file_video&&e(N)?" has-video":"")+(e(la)?" video-playing":""))},[e(We)?(i(),be(Ea,{key:0,image:e(We),classes:"product-slideimage mediabox-img"},null,8,["image"])):v("",!0)],2)]),e(t).file_video?(i(),u("div",{key:0,class:ke("video-bg cover hidden-print"+(e(t).file_video?"":" hidden")),"aria-role":"camera"},[n("div",Rs,[V(ee,null,{default:Fe(()=>[e(g)&&e(t).file_video?(i(),be(K,{key:0,"video-id":e(A)(e(t).file_video),width:"100%",height:"100%","player-vars":ao,ref:l=>me(l,"youtube_product"),nocookie:!0,playsinline:!0,controls:!1,onReady:a[2]||(a[2]=l=>e(Ct)()),onCued:a[3]||(a[3]=l=>e(Ct)()),onPlaying:a[4]||(a[4]=l=>e(Je)()),onEnded:a[5]||(a[5]=l=>e(S)()),onError:a[6]||(a[6]=l=>e(S)())},null,8,["video-id"])):v("",!0)]),_:1})])],2)):v("",!0)]),n("div",qs,[e(zt)?v("",!0):(i(),u("div",{key:0,class:"carousel-title js-carousel-productname big-text",ref:l=>me(l,"pagetitle")},[n("h1",null,b(e(D)(e(t))),1),e(_e)?(i(),u("div",zs,[(i(!0),u(ve,null,we(e(Te),l=>(i(),u("span",{class:ke("rating-icon rating-"+l)},null,2))),256))])):v("",!0)],512))]),n("div",Hs,[e(L).length>1?(i(),u("a",{key:0,class:"store-lightbox-link",onClick:a[7]||(a[7]=Ae(l=>e(ft)(),["prevent","stop"])),href:e(We)?.src||e(Pt),"data-title":(e(t).file_title?"<h4>"+e(t).file_title+"</h4>":"")+(e(t).file_description?e(t).file_description:"")},[a[15]||(a[15]=n("span",{class:"fa fa-fw fa-images"},null,-1)),n("span",Ys,b(e(L).length),1)],8,Ws)):(i(),u("a",{key:1,class:"single-image-button store-lightbox-link",onClick:a[8]||(a[8]=Ae(l=>e(ft)(),["prevent","stop"])),href:e(We)?.src||e(Pt),"data-title":(e(t).file_title?"<h4>"+e(t).file_title+"</h4>":"")+(e(t).file_description?e(t).file_description:"")},[...a[16]||(a[16]=[n("span",{class:"fa-regular fa-magnifying-glass-plus fa-lg"},null,-1)])],8,Ks))])],2)):v("",!0),e(zt)||!e(Tt)?(i(),u("div",{key:2,id:"js-header-product",class:ke("page-header-bar text-center"+(e(xe).length?" above-tab-navi":"")),ref:l=>me(l,"pagetitle")},[n("div",Gs,[n("h1",null,b(e(D)(e(t))),1),e(_e)?(i(),u("div",Js,[(i(!0),u(ve,null,we(e(Te),l=>(i(),u("span",{class:ke("rating-icon rating-"+l)},null,2))),256))])):v("",!0)])],2)):v("",!0),e(xe).length?(i(),u("div",{key:3,class:"product-tabs-wrapper",stuck:!(e(ha)||e(da))||e(Ke)?!0:void 0,ref:l=>me(l,"prodtabs")},[n("div",Qs,[n("span",null,b(e(D)(e(t))),1)]),n("div",Xs,[n("ul",en,[(i(!0),u(ve,null,we(e(xe),l=>(i(),u("li",{class:ke("product-tab "+l.ref+(wo(l.ref)?" active":"")),"data-ref":"tab_"+l.ref},[n("a",{href:"javascript:;
2",class:"is-clickable",onClick:I=>wa(l)},b(l.title),9,an)],10,tn))),256))])])],8,Zs)):v("",!0),V(e(ge),{id:"order-process-begin",product:e(t),"product-shop-id":e(s),"is-covered":e(po),onUncover:xo,onOnIntersectionElement:Po,onTicketSelectionResumed:Wo,ref:l=>me(l,"product"),class:"page-section orderprocess","data-ref":"product"},null,8,["product","product-shop-id","is-covered"]),n("div",on,[e(Q)||e(Xe)||e(Ee)?(i(),u("div",{key:0,class:ke(e(Q)?"page-section description":""),ref:l=>me(l,"description"),"data-ref":"description"},[n("div",sn,[e(ba)&&e(pt)?(i(),u("div",{id:"bokunwrap",class:ke("bokun-"+e(t).id),key:"bokun-"+e(t).id},[e(mo)?(i(),u("div",{key:0,class:"bokunWidget","data-src":"https://widgets.bokun.io/online-sales/"+e(pt)+"/experience/"+e(ba)}," ",8,nn)):(i(),u("div",ln,b(e(y)("Support for Bókun widgets is not activated for this shop. Please contact Johku customer service.")),1))],2)):e(Z)||e(Ee)||e(Xe)&&e(Xe).length>0?(i(),u("div",rn,[e(Et)||e(Ee)?(i(),u("div",un,[e(Et)?(i(),u("div",cn,[n("div",dn,[n("a",{class:"store-lightbox-link",onClick:a[9]||(a[9]=Ae(l=>e(ft)(),["prevent","stop"])),href:e(t).file_video&&e(g)?"https://www.youtube-nocookie.com/embed/"+e(A)(e(t).file_video)+"?autoplay=1":e(We)?.src||e(Pt),"data-title":(e(t).file_title?"<h4>"+e(t).file_title+"</h4>":"")+(e(t).file_description?e(t).file_description:"")},[e(We)?(i(),be(Ea,{key:0,image:e(We),classes:"product-slideimage"},null,8,["image"])):v("",!0)],8,vn)]),e(L).length>1?(i(),u("div",pn,[n("a",{class:"btn btn-sm btn-default store-lightbox-link",onClick:a[10]||(a[10]=Ae(l=>e(ft)(),["prevent","stop"])),href:e(t).file_video&&e(g)?"https://www.youtube-nocookie.com/embed/"+e(A)(e(t).file_video)+"?autoplay=1":e(We)?.src||e(Pt),"data-title":(e(t).file_title?"<h4>"+e(t).file_title+"</h4>":"")+(e(t).file_description?e(t).file_description:"")},[a[17]||(a[17]=n("span",{class:"fa fa-fw fa-image"},null,-1)),n("span",hn,b(e(y)("View large images")),1),a[18]||(a[18]=Ye()),e(L).length>1?(i(),u("span",mn,b("("+e(L).length+")"),1)):v("",!0)],8,fn)])):v("",!0),a[19]||(a[19]=n("hr",{class:"hidden-sm hidden-md hidden-lg"},null,-1))])):v("",!0),e(Ee)?(i(),u("div",gn,[V(et,{product:e(t),"shop-id":e(s)},null,8,["product","shop-id"])])):v("",!0)])):v("",!0),e(t).channeldata||e(Xe)&&e(Xe).length>0?(i(),u("div",{key:1,class:ke(["product-content-main product-content-text text-content",e(Ee)||e(Et)?"col-sm-8 col-p-8 col-sm-pull-4":"col-xs-12"])},[e(Xe)&&e(Xe).length>0?(i(),u("div",_n,[(i(!0),u(ve,null,we(e(Xe),(l,I)=>(i(),u("span",yn,b(l),1))),256))])):v("",!0),e(Z)?(i(),u("div",bn,[V(e(re),{html:e(Ve),onClick:Ao},null,8,["html"])])):v("",!0)],2)):v("",!0)])):v("",!0)]),e(Q)?(i(),u("div",kn,[e(_e)?(i(),be(e(_),{key:0,element:e(t),shopId:e(s),cookieConsent:e(g)},null,8,["element","shopId","cookieConsent"])):(i(),be(e(P),{key:1,element:e(t),shopId:e(s),cookieConsent:e(g)},null,8,["element","shopId","cookieConsent"])),V(e(R),{element:e(t),shopId:e(s),cookieConsent:e(g),class:"properties"},null,8,["element","shopId","cookieConsent"]),V(e(G),{element:e(t),shopId:e(s),cookieConsent:e(g),class:"connections"},null,8,["element","shopId","cookieConsent"]),V(e(T),{element:e(t),shopId:e(s),cookieConsent:e(g),class:"distances"},null,8,["element","shopId","cookieConsent"]),e(fo)?(i(),be(e(X),{key:2,element:e(t),shopId:e(s),cookieConsent:e(g)},null,8,["element","shopId","cookieConsent"])):v("",!0)])):v("",!0)],2)):v("",!0),e(Ce)&&!e(ct)?(i(),u("div",{key:1,class:"page-section container packagedoptions",ref:l=>me(l,"packagedoptions"),"data-ref":"packagedoptions"},[n("h2",wn,b(e(y)("Contains")),1),n("ul",In,[(i(!0),u(ve,null,we(e(lo),(l,I)=>(i(),u("li",$n,[(i(!0),u(ve,null,we(ro(l),(ae,Kt)=>(i(),u(ve,null,[Kt?(i(),u("span",Cn," "+b(e(y)("or"))+" ",1)):v("",!0),n("a",{class:"package-product",href:"javascript:;",onClick:Gt=>Ro(ae.id)},b(ae.name),9,Sn)],64))),256))]))),256))])],512)):v("",!0),e(ka)?(i(),u("div",{key:2,class:"container main-content-wrap page-section map",ref:l=>me(l,"map"),"data-ref":"map"},[V(ee,null,{default:Fe(()=>[n("h2",Pn,b(e(y)("Map")),1),e(_o)?(i(),u("div",xn)):e(yo)?(i(),be(e(ie),{key:1,class:"product-content-map page-section",center:e(bo),zoom:13,markers:e(ko),"fit-markers":!1,lang:e(ze),"tile-url":e(w)},null,8,["center","markers","lang","tile-url"])):v("",!0),e(k)?(i(),u("div",{key:2,id:"custom-map-iframe",class:"product-content-map",innerHTML:e(t).channeldata.custom,"aria-role":"application"},null,8,Ln)):v("",!0)]),_:1})],512)):v("",!0),e(ga)?(i(),u("div",{key:3,class:"container main-content-wrap page-section space-below trailer",ref:l=>me(l,"trailer"),"data-ref":"trailer"},[n("h2",Tn,b(e(y)("Trailer")),1),e(A)(e(Pe))?(i(),u("div",En,[V(ee,null,{default:Fe(()=>[e(g)?(i(),be(K,{key:0,"video-id":e(A)(e(Pe)),width:"100%",height:"100%","player-vars":e(o
2o),ref:l=>me(l,"youtube_trailer"),nocookie:!0,playsinline:!0,controls:!0},null,8,["video-id","player-vars"])):v("",!0)]),_:1})])):(i(),u("a",{key:1,class:"btn btn-primary btn-sm store-lightbox-link",onClick:a[11]||(a[11]=Ae(l=>Fo(),["prevent","stop"])),href:e(A)(e(Pe))?"https://www.youtube-nocookie.com/embed/"+e(A)(e(Pe))+"?autoplay=1":e(Pe),target:"_blank"},[a[20]||(a[20]=n("span",{class:"fa fa-fw fa-play"},null,-1)),a[21]||(a[21]=Ye()),n("span",Vn,b(e(y)("Show trailer")),1)],8,Dn))],512)):v("",!0),e(f)?(i(),u("div",{key:4,class:"container main-content-wrap page-section images",ref:l=>me(l,"images"),"data-ref":"images"},[n("h2",On,[n("span",null,b(e(y)("Images")),1),n("a",{class:"btn btn-primary btn-sm store-lightbox-link",onClick:a[12]||(a[12]=Ae(l=>e(ft)(),["prevent","stop"])),href:e(io),"data-title":e(so)},[a[22]||(a[22]=n("span",{class:"fa fa-fw fa-image"},null,-1)),a[23]||(a[23]=Ye()),n("span",jn,b(e(y)("View large images")),1)],8,Mn)]),n("div",An,[(i(!0),u(ve,null,we(e(L),l=>(i(),u("a",{onClick:[Ae(I=>e(ft)(jo(l)),["prevent","stop"]),a[13]||(a[13]=I=>e(St)())],class:ke("gallery-item store-lightbox-link fit-cover "+(l.video&&e(N)?"video-link":"image-link")),href:l.video&&e(N)?"https://www.youtube-nocookie.com/embed/"+e(A)(l.video)+"?autoplay=1":ca(l),title:(l.title?l.title:"")+(l.title&&l.description?" - ":"")+(l.description?l.description:""),"data-title":(l.title?"<h4>"+l.title+"</h4>":"")+(l.description?l.description:"")},[n("picture",null,[n("source",{srcset:_t(l,748,474),media:"(min-width: 640px) and (min-device-pixel-ratio: 1.5)",width:"374",height:"237",type:"image/webp"},null,8,Fn),n("source",{srcset:_t(l,374,237),media:"(min-width: 640px)",width:"374",height:"237",type:"image/webp"},null,8,Bn),n("source",{srcset:_t(l,1220,962),media:"(max-width: 639px) and (min-device-pixel-ratio: 1.5)",width:"610",height:"481",type:"image/webp"},null,8,Nn),n("source",{srcset:_t(l,610,481),media:"(max-width: 639px)",width:"610",height:"481",type:"image/webp"},null,8,Rn),n("img",{class:"product-slideimage",src:_t(l,374,237),alt:(e(t).file_title?e(t).file_title:"")+(e(t).file_title&&e(t).file_description?" - ":"")+(e(t).file_description?e(t).file_description:""),width:"420",height:"270"},null,8,qn)])],10,Un))),256))])],512)):v("",!0),(e(Ne)||e(te))&&!e(go)?(i(),u("div",{key:5,class:"container main-content page-section","data-ref":"linkedproducts",ref:l=>me(l,"linkedproducts")},[n("div",zn,[n("h2",Hn,b(e(qt)),1)]),e(te)?(i(),be(Qt,{key:0,count:e(nt)},null,8,["count"])):(i(),u("div",{key:1,class:"js-grid product-content-upsellwrap",style:si(e(ho))},[(i(!0),u(ve,null,we(e(qe),(l,I)=>(i(),be(e(O),{key:l.id,shopId:e(de),category:e(De),locations:e(d),defaultVersion:e(C).defaultversion,product:l},null,8,["shopId","category","locations","defaultVersion","product"]))),128))],4))],512)):v("",!0),(i(!0),u(ve,null,we(e(ye),l=>(i(),u(ve,{key:"linked-slot-"+l.slot.id},[l.category?(i(),u("div",{key:0,ref_for:!0,ref:I=>me(I,"linkedcategory_"+l.slot.id),"data-ref":"linkedcategory_"+l.slot.id,class:"page-section linkedcategory"},[l.category.hidetitle?v("",!0):(i(),u("div",Yn,[n("div",Kn,[n("div",Gn,[n("h2",Jn,b(l.category.name),1)])])])),n("div",Zn,[e(rt)(l.category.description)?(i(),u("p",{key:0,innerHTML:l.category.description,onClickCapture:a[14]||(a[14]=(...I)=>e(B)&&e(B)(...I))},null,40,Qn)):v("",!0),V(tt,{shopId:e(de),productShopId:e(s),baseDomain:e(W),category:l.category,products:l.category.sharedProduct,view:l.category.view,context:"linkedcategory",locations:e(d),defaultVersion:e(C).defaultversion,resourcePoolId:l.category.showtimeresourcepool_id,productlistcolumncount:l.category.productlistcolumncount,searchActive:vo(l.category.id),parentProduct:e(t),parentShopId:e(de),productLinkUrl:I=>e(M)(l.category,e(d))?e(r)(I,l.category):void 0,onSearchStart:Co,onSearchClear:So},null,8,["shopId","productShopId","baseDomain","category","products","view","locations","defaultVersion","resourcePoolId","productlistcolumncount","searchActive","parentProduct","parentShopId","productLinkUrl"])])],8,Wn)):e(h)?(i(),u("div",{key:1,ref_for:!0,ref:I=>me(I,"linkedcategory_"+l.slot.id),"data-ref":"linkedcategory_"+l.slot.id,class:"page-section linkedcategory"},[l.slot.hidetitle?v("",!0):(i(),u("div",el,[n("div",tl,[n("div",al,[n("h2",ol,[l.slot.title?(i(),u(ve,{key:0}
2,[Ye(b(l.slot.title),1)],64)):(i(),be(Ue,{key:1,width:"12rem"}))])])])])),n("div",il,[V(Qt,{view:l.slot.view,productlistcolumncount:l.slot.productlistcolumncount},null,8,["view","productlistcolumncount"])])],8,Xn)):v("",!0)],64))),128)),n("div",sl,[V(Wa,{published:e(t).datepublished||"",modified:e(t).datemodified||"",display:e(t).datedisplay||""},null,8,["published","modified","display"])])]),e(Ie)?(i(),u("div",nl,[a[24]||(a[24]=n("div",{class:"product-content-infotitle"},null,-1)),n("ul",ll,[(i(!0),u(ve,null,we(e(d),(l,I)=>(i(),u("li",rl,[I<e(d).length-1?(i(),u("a",{key:0,href:e(he)(e(de),e(ce),void 0,e(d),I),onClick:Ae(ae=>{no(void 0,e(De)??null,0,e(d)??[],e(he)(e(de),"",void 0,e(d),I)),e(ue)(e(he)(e(de),e(ce),void 0,e(d),I))},["prevent"])},b(e(D)(l.targetObject)),9,ul)):(i(),u("span",cl,b(e(D)(l.targetObject)),1))]))),256))])])):v("",!0)],8,Ps)):v("",!0),e(Yt)?(i(),be(ht,{key:1,id:e(Wt),"is-visible":e(qo),product:e(Yt),"shop-id":e(de),"product-shop-id":e(de),"base-domain":e(W),locale:e(ce),onClose:e(zo)},null,8,["id","is-visible","product","shop-id","product-shop-id","base-domain","locale","onClose"])):v("",!0)],64)}}}),vl=["id","aria-label"],pl={class:"sr-only"},fl={key:0,class:"breadcrumb-navi-wrap","aria-hidden":"true"},hl={class:"container"},ml={class:"js-breadcrumb-navi"},gl={class:"breadcrumb-navi-item breadcrumb-navi-root"},_l={class:"breadcrumb-navi-item breadcrumb-navi-current"},yl={class:"page-header-bar text-center","aria-hidden":"true"},bl={class:"container main-content","aria-hidden":"true"},kl={class:"row product-content-mainwrap sk-productpage-body"},wl={class:"col-sm-8 col-p-8"},Il={class:"sk-productpage-lines"},$l=$t({__name:"ProductpageSkeleton",props:{hideBreadcrumb:{type:Boolean,required:!1,default:!1}},setup(pe){const{$translate:P}=at(),_=c(()=>P("Loading..."));return(R,T)=>(i(),u("div",{id:pe.hideBreadcrumb?void 0:"main-content",class:"product product-page-skeleton",role:"status","aria-busy":"true","aria-label":e(_)},[n("span",pl,b(e(_)),1),pe.hideBreadcrumb?v("",!0):(i(),u("nav",fl,[n("div",hl,[n("ul",ml,[n("li",gl,[V(Ue,{width:"3.5rem"})]),n("li",_l,[V(Ue,{width:"8rem"})])])])])),n("div",yl,[V(Ue,{title:""})]),n("div",bl,[n("div",kl,[n("div",wl,[T[0]||(T[0]=n("div",{class:"sk-block sk-productpage-image"},null,-1)),n("div",Il,[V(Ue,{width:"90%"}),V(Ue,{width:"80%"}),V(Ue,{width:"70%"}),V(Ue,{width:"55%"})])]),T[1]||(T[1]=n("div",{class:"col-sm-4 col-p-4"},[n("div",{class:"sk-block sk-productpage-pricebox"})],-1))])])],8,vl))}});async function Cl(pe){const{$store:P}=at(),{apiKey:_}=ut(P),R=$([]),T=$(null),G=$(null),X=$(void 0),O=(g=>g.replace(/^\/[a-z]{2}_[A-Z]{2}\//,"/"))(ea(pe.path)??"/"),ie=ea(pe.locale)??"fi_FI",re=`aliases-${O}-${ie}${_.value?"-auth":""}`,{data:j,error:y}=await ta(re,()=>$fetch(P.apiUrl+P.shopId+"/aliases.json",{query:{path:O,versions:"true",all:"true",version:ie},headers:void 0}),{watch:[_]}),F=g=>{if(g&&g.length===1&&g[0].orig){G.value=g[0];return}R.value=g??[],T.value=R.value.length?R.value[R.value.length-1]:null,P.aliases=R.value};return y.value&&(X.value=y.value),F(j.value),oe(j,g=>{g!=null&&F(g)}),oe(y,g=>{X.value=g??void 0}),{aliases:R,alias:T,redirect:G,error:X}}async function Sl(pe){const{$store:P}=at(),{apiKey:_,locale:R}=ut(P),T=$([]),G=$(null),X=$(void 0),ge=$(void 0),O=()=>{},ie=ea(pe),re=R.value,j=ta(`category-${ie}-${re}${_.value?"-auth":""}`,()=>$fetch(P.apiUrl+P.shopId+"/"+re+"/categories/"+ie+".json",{query:{version:re},headers:O()}),{watch:[_]}),y=ta(`category-allproducts-${ie}-${re}${_.value?"-auth":""}`,()=>$fetch(P.apiUrl+P.shopId+"/"+re+"/categories/"+ie+"/allproducts.json",{query:{storefront:"true",details:"true",version:re},headers:O()}),{watch:[_]}),[{data:F,error:g},{data:N,error:E}]=await Promise.all([j,y]);return g.value&&(X.value=g.value),G.value=F.value,E.value&&(ge.value=E.value),T.value=N.value??[],oe(F,D=>{D!==void 0&&(G.value=D)}),oe(g,D=>{D&&(X.value=D)}),oe(N,D=>{D!==void 0&&(T.value=D??[])}),oe(E,D=>{D&&(ge.value=D)}),{category:G,products:T,categoryError:X,productsError:ge}}const Pl={key:0},xl={key:1,id:"main-content",role:"status","aria-busy":"true"},Ll={class:"breadcrumb-navi-wrap","aria-hidden":"true"},Tl={class:"container"},El={class:"js-breadcrumb-navi"},Dl={class:"breadcrumb-navi-item breadcrumb-navi-root"},Vl={class:"breadcrumb-navi-item breadcrumb-navi-current"},Ol={class:"page-header-bar text-center","aria-hidden":"true"},Ml={class:"container main-content",style:{"margin-top":"1.5rem"}},cr=$t({__name:"[...path]",async setup(pe){let P,_;const{$store:R,$translate:T}=at(),G=ni(),{baseDomain:X,cdnDomain:ge,locale:O,shopId:ie,categorySearchQuery:re,categorySearchKeywords:j,categorySearchStartDate:y,categorySearchEndDate:F,categorySearchParticipants:g,categorySearchDuration:N}=ut(R),{shopTitle:E}=At(),{marketingname:D,striptags:he}=It(),A=mi.useSession(),{aliases:r,alias:M,redirect:q,error:se}=([P,_]=Ot(()=>Cl({path:c(()=>G.path),locale:O})),P=await P,_(),P);
2if(q.value&&(q.value.dest.startsWith("http")?Ta(q.value.dest,{external:!0}):Ta(q.value.dest)),se.value&&A.value?.isPending!==!1&&([P,_]=Ot(()=>new Promise(f=>{const m=oe(M,Z=>{m(),Z&&(se.value=void 0),f()}),k=()=>{A.value?.data?.session?.token||(m(),f())};if(A.value?.isPending===!1)k();else{const Z=oe(()=>A.value?.isPending,Q=>{Q||(Z(),k())})}})),await P,_()),se.value)throw wt({fatal:!0,statusCode:se.value.statusCode??404,message:T("The requested page was not found.")});const H=c(()=>M.value?.type==="category"),w=c(()=>M.value?.type==="product"),ue=c(()=>M.value?.type==="collection"),B=c(()=>M.value?.targetObject),W=c(()=>M.value?.targetObject),ne=c(()=>M.value?.targetObject);let ce=$(null),ze=$(null);const de=c(()=>H.value&&!ce.value),Ie=c(()=>(w.value||ue.value)&&!C.value);if(H.value){const f=([P,_]=Ot(()=>Sl(B.value.id)),P=await P,_(),P),m=()=>{f.category.value&&((re.value?.[B.value.id]||j.value?.[B.value.id]?.length||y.value?.[B.value.id]||F.value?.[B.value.id]||g.value?.[B.value.id]&&g.value?.[B.value.id]!=="any"||N.value?.[B.value.id]&&N.value?.[B.value.id]!=="any")&&(f.category.value.view==="default"||f.category.value.view==="showtimes")&&(f.category.value.view="availabilitylist"),ce.value=f.category,ze.value=f.products)};if(m(),!f.category.value){const k=oe(f.category,Q=>{k(),Q?m():Mt(wt({statusCode:404,message:T("The requested page was not found.")}))}),Z=()=>{A.value?.data?.session?.token||(k(),Mt(wt({statusCode:404,message:T("The requested page was not found.")})))};if(A.value?.isPending===!1)Z();else{const Q=oe(()=>A.value?.isPending,Ce=>{Ce||(Q(),Z())})}}}let C=$(null);if(ue.value&&ne.value)C.value=gi(ne.value,M.value?.path||"collection-"+ne.value.canonical);else if(w.value){const{product:f}=([P,_]=Ot(()=>_i(()=>W.value?.id,()=>M.value?.shopid)),P=await P,_(),P);if(oe(f,m=>{C.value=m??null},{immediate:!0}),!f.value){const m=oe(f,Z=>{m(),Z?C.value=Z:Mt(wt({statusCode:404,message:T("The requested page was not found.")}))}),k=()=>{A.value?.data?.session?.token||(m(),Mt(wt({statusCode:404,message:T("The requested page was not found.")})))};if(A.value?.isPending===!1)k();else{const Z=oe(()=>A.value?.isPending,Q=>{Q||(Z(),k())})}}}const Le=c(()=>{const f=ce.value;return Ha(f)?f.value:f}),De=f=>typeof f=="string"?f.trim():"",{productStructuredData:t,categoryStructuredData:s}=ti({product:c(()=>ue.value?null:C.value),category:c(()=>H.value?Le.value:null)}),d=c(()=>{if(H.value){const f=De(Le.value?.pagetitle)||De(B.value?.pagetitle);return f||B.value.name+" - "+E.value}else{if(ue.value)return ne.value.name+" - "+E.value;if(w.value){const f=De(C.value?.pagetitle)||De(W.value?.pagetitle);return f||D(W.value)+L.value+" - "+E.value}}return E.value}),x=c(()=>H.value?B.value.name+" - "+E.value:ue.value?ne.value.name+" - "+E.value:w.value?D(W.value)+" - "+E.value:E.value),Y=c(()=>{if(H.value)return rt(B.value.description)?he(B.value.description):rt(B.value.channeldata?.description)?he(B.value.channeldata.description):B.value.name;if(ue.value)return rt(ne.value.description)?he(ne.value.description):ne.value.name;if(w.value)return rt(W.value.description)?he(W.value.description):rt(W.value.channeldata?.description)?he(W.value.channeldata.description):Number(W.value.usemarketingname)&&W.value.marketingname?W.value.marketingname:W.value.name}),J=c(()=>{let f=[],m;if(H.value?m=B.value:w.value&&(m=W.value),m&&M.value?.shopid&&(m.file_id&&m.file_ext&&f.push({url:ge.value+M.value.shopid+"/largefiles/"+m.file_id+"."+m.file_ext}),m.sharedFile?.length))for(let k=0;k<m.sharedFile.length;k++)f.push({url:ge.value+M.value.shopid+"/largefiles/"+m.sharedFile[k].id+"-"+m.sharedFile[k].filename});return f}),L=c(()=>{if(w.value&&C.value?.sharedTag?.length){let f=[],m=[];for(let k=0;k<C.value.sharedTag.length;k++)C.value.sharedTag[k].title.indexOf("seo:::")!==-1&&(m=C.value.sharedTag[k].title.split(":::"),(m.length<3||m[1]===O.value)&&f.push(m.pop()));if(f.length>0)return" - "+f.join(", ")}return""}),Te=c(()=>{const f=[];
2w.value&&t.value&&f.push(t.value),H.value&&s.value&&f.push(s.value);const m={title:d.value};return f.length>0&&(m.script=f),m});return Xo(Te),ei({title:x.value,ogTitle:x.value,description:Y.value,ogDescription:Y.value,ogImage:J.value}),(f,m)=>{const k=us,Z=dl;return e(M)?(i(),u("div",Pl,[e(ce)?(i(),be(k,{key:0,category:e(ce),products:e(ze),shopId:e(M).shopid,locations:e(r)},null,8,["category","products","shopId","locations"])):e(de)?(i(),u("div",xl,[n("nav",Ll,[n("div",Tl,[n("ul",El,[n("li",Dl,[V(Ue,{width:"3.5rem"})]),n("li",Vl,[V(Ue,{width:"8rem"})])])])]),n("div",Ol,[V(Ue,{title:""})]),n("div",Ml,[V(Qt)])])):v("",!0),e(C)?(i(),be(Z,{key:2,category:e(ue)?void 0:e(B),product:e(C),shopId:e(M).shopid,locations:e(r)},null,8,["category","product","shopId","locations"])):e(Ie)?(i(),be($l,{key:3})):v("",!0)])):v("",!0)}}});export{cr 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.