1import{_ as K}from"./CmtWVFmT.js";import{d as V,n as Y,l as O,D as Z,r as N,a0 as A,P as D,c as o,s as r,x as l,o as n,G as L,g as e,k as c,q as w,w as y,i as F,aa as G,L as I,a1 as J,e as Q,O as W,a9 as X,F as H,a as R,K as ee,C as h,t as k,v as E,j as P,a8 as te}from"#entry";import{u as ne}from"./DEZXOLM4.js";import{_ as oe}from"./Cqx98se5.js";import{u as se}from"./BRb1dums.js";const ae={key:0,class:"relative bg-[#0b9fd4] w-full overflow-hidden transition-all duration-300"},ie=["title"],le={class:"block w-full"},re=["srcset"],ce=["src","alt"],ue={class:"block w-full"},pe=["srcset"],de=["src","alt"],me=["aria-label"],xe=V({__name:"HeaderCompetitionStripe",props:{enabled:{type:Boolean,default:void 0},hide:{type:Boolean,default:!1},forceShow:{type:Boolean,default:!1}},setup(t){const u=t,m=Y(),x=O().public.website,d=ne(),M=N(!1);Z(()=>{M.value=!0});const f=l(()=>x.lang==="sk"),C=l(()=>f.value?"sk":"cz"),_=l(()=>`/images/common/stripe-competition-mobile-${C.value}.png`),T=l(()=>`/images/common/stripe-competition-desktop-${C.value}.png`),v=l(()=>f.value?"Veľká narodeninová súťaž - Objednajte si roÄné balenie a vyhrajte! Každý vyhráva":"Velká narozeninová soutÄž - Objednejte si roÄnà balenà a vyhrajte! Každý vyhrává"),b=l(()=>f.value?"ZavrieÅ¥":"ZavÅÃt"),s=A("nm_competition_stripe_closed",{default:()=>!1,watch:!0,maxAge:3600,path:"/",sameSite:"lax"}),S=()=>{s.value=!0},$=l(()=>!M.value||u.hide||u.enabled===!1?!1:u.forceShow||m.query.preview_stripe==="true"?!0:s.value?!1:d.showStripe.value);return(U,i)=>{const B=F,j=D("click-track");return $.value?(n(),o("div",ae,[c(d).isYearOffer.value?L((n(),o("button",{key:0,type:"button",class:"block w-full focus:outline-none cursor-pointer",title:v.value,onClick:i[0]||(i[0]=g=>c(d).handleStripeClick())},[e("picture",le,[e("source",{media:"(max-width: 640px)",srcset:_.value,width:"520",height:"140"},null,8,re),e("img",{src:T.value,alt:v.value,width:"1920",height:"156",class:"w-full h-auto mx-auto max-w-[1920px] block object-contain aspect-[520/140] sm:aspect-[1920/156]",loading:"eager",fetchpriority:"high"},null,8,ce)])],8,ie)),[[j,{id:"header-competition-stripe",type:"cta"}]]):L((n(),w(B,{key:1,to:c(d).targetUrl.value,class:"block w-full focus:outline-none",title:v.value},{default:y(()=>[e("picture",ue,[e("source",{media:"(max-width: 640px)",srcset:_.value,width:"520",height:"140"},null,8,pe),e("img",{src:T.value,alt:v.value,width:"1920",height:"156",class:"w-full h-auto mx-auto max-w-[1920px] block object-contain aspect-[520/140] sm:aspect-[1920/156]",loading:"eager",fetchpriority:"high"},null,8,de)])]),_:1},8,["to","title"])),[[j,{id:"header-competition-stripe",type:"cta"}]]),e("button",{type:"button",onClick:G(S,["stop","prevent"]),class:"absolute top-1.5 right-2 sm:top-2 sm:right-4 z-20 p-1.5 rounded-full bg-black/25 hover:bg-black/50 text-white transition-all cursor-pointer flex items-center justify-center focus:outline-none focus:ring-2 focus:ring-white/80","aria-label":b.value},[...i[1]||(i[1]=[e("svg",{width:"12",height:"12",viewBox:"0 0 12 12",class:"w-3 h-3 stroke-white stroke-2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("path",{d:"M1 1L11 11","stroke-linecap":"round","stroke-linejoin":"round"}),e("path",{d:"M1 11L11 1","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])],8,me)])):r("",!0)}}}),he=Object.assign(xe,{__name:"HeaderCompetitionStripe"}),ve=I("/images/cancel-anytime.svg"),fe=I("/images/cancel-anytime-mobile.svg");function _e(){const t=se();return l(()=>t.href)}function be(t,u,m){return t.map(p=>{if(p.aboutUs){const x=`https://www.naturamed.${u}/o-naturamed?returnTo=${m}`;return{...p,to:x}}return p})}function ge(t){const m=O().public.website,p=_e().value;return be(t,m.lang,p)}const ke={id:"star-component-header0",class:"bg-grey-100 text-grey-700 text-18 font-light sm:py-3 py-2 relative z-[--z-index-header-rating]"},we={class:"sticky top-0 z-[--z-index-header]"},ye={class:"container main-header-container flex justify-between items-center gap-4 xl:gap-6"},Le={class:"xl:w-[200px] w-auto shrink-0 transition-all duration-300"},Ce=["src","alt"],Te={key:0,id:"header-supplement",class:"sm:text-[13px] text-[12px]"},Se={class:"max-xl:hidden","aria-label":"Main Navigation"},$e={class:"flex gap-8 xl:gap-12"},je={key:1},Me={key:2,class:"absolute top-full mt-1 left-1/2 -translate-x-1/2 whitespace-nowrap pointer-events-none"}
1,Be={class:"flex items-center sm:gap-5 gap-4 max-[500px]:pr-5"},ze={class:"flex flex-col items-center"},He=["innerHTML"],Re=["innerHTML"],Ne=["innerHTML"],Oe=["innerHTML"],Ue={key:2,class:"text-highlight text-[15px] mt-0.5 font-medium max-sm:hidden"},Ee=["aria-expanded","aria-label"],Pe={key:0,class:"h-[3px] w-full bg-primary absolute top-2"},Ve={class:"flex flex-col justify-center items-center w-full min-h-full pt-24 pb-8"},Ze={class:"flex flex-col gap-6 text-center"},Ae={key:1},De={key:2,class:"flex justify-center mt-1 pointer-events-none"},Fe=V({__name:"Header",props:{logoSrc:{},navigationItems:{},buttonText:{},btnClass:{default:"btn-primary"},smButtonText:{},buttonLink:{},hidePhoneMenu:{type:Boolean},hideSupplementLable:{type:Boolean}},setup(t){const u=J(),m=l(()=>u.path.includes("fleximed-rocne-balenie")),p=A("abTest_7"),x=l(()=>p.value==="b"),d=t,f=O().public.website,{t:C}=Q(),_=ge(d.navigationItems),{openOrderForm:T}=te(),v=W().getReturnTo(),b=N(!1),s=N(!1),S=()=>{s.value=!s.value},$=()=>{b.value=window.scrollY>0};return Z(()=>{window.addEventListener("scroll",$,{passive:!0})}),X(()=>{window.removeEventListener("scroll",$,{passive:!0})}),(U,i)=>{const B=K,j=he,g=F,q=oe,z=D("click-track");return n(),o(H,null,[e("div",ke,[R(B,{"customers-rated-text":""})]),e("header",we,[ee(U.$slots,"stripe",{},()=>[R(j)]),e("div",{class:h([b.value?"py-2":"sm:py-6 py-4","bg-white border-b duration-300 relative z-20"])},[e("div",ye,[e("div",Le,[R(g,{to:c(v),class:"block w-full","prefetch-on":"interaction"},{default:y(()=>[e("img",{class:h([[b.value?"sm:max-h-[50px] max-h-[30px] max-[360px]:max-h-[28px]":"sm:max-h-[70px] max-h-[40px] max-[360px]:max-h-[32px]"],"w-auto object-contain object-left max-w-[200px] max-[480px]:max-w-[160px] max-[400px]:max-w-[130px] max-[360px]:max-w-[110px] duration-300 transition-all"]),src:t.logoSrc,alt:c(f).productName},null,10,Ce),t.hideSupplementLable?r("",!0):(n(),o("span",Te,k(c(C)("FOOTER_SUPPLEMENT_LABEL")),1))]),_:1},8,["to"])]),e("nav",Se,[e("ul",$e,[(n(!0),o(H,null,E(c(_),a=>(n(),o("li",{key:a.text,class:"nav-link relative"},[a.to?L((n(),w(g,{key:0,to:a.to,"prefetch-on":"interaction"},{default:y(()=>[P(k(a.text),1)]),_:2},1032,["to"])),[[z,{id:"header-nav-link",type:"navigation"}]]):(n(),o("span",je,k(a.text),1)),x.value&&a.text==="RoÄné balenie"?(n(),o("div",Me,[...i[1]||(i[1]=[e("img",{src:ve,alt:"ZruÅ¡Ãte kedykoľvek a bez poplatkov",class:"w-[160px] h-auto max-w-none"},null,-1)])])):r("",!0)]))),128))])]),e("div",Be,[e("div",ze,[t.buttonLink?r("",!0):L((n(),o("button",{key:0,onClick:i[0]||(i[0]=a=>c(T)()),class:h([d.btnClass,"max-[400px]:!px-0"])},[e("span",{class:"xl:text-[22px] lg:text-[20px] sm:text-[16px] text-[14px] duration-300 max-sm:hidden block -mt-0.5",innerHTML:t.buttonText},null,8,He),e("span",{class:"py-1 px-2 text-[13px] duration-300 sm:hidden block -mt-0.5",innerHTML:t.smButtonText||t.buttonText},null,8,Re)],2)),[[z,{id:"header-order-btn",type:"cta"}]]),t.buttonLink?(n(),w(g,{key:1,to:t.buttonLink,"prefetch-on":"interaction"},{default:y(()=>[e("button",{class:h([d.btnClass,"max-[400px]:!px-0"])},[e("span",{class:"xl:text-[22px] lg:text-[20px] sm:text-[16px] text-[14px] duration-300 max-sm:hidden block -mt-0.5",innerHTML:t.buttonText},null,8,Ne),e("span",{class:"py-1 px-2 text-[13px] duration-300 sm:hidden block -mt-0.5",innerHTML:t.smButtonText||t.buttonText},null,8,Oe)],2)]),_:1},8,["to"])):r("",!0),x.value&&m.value?(n(),o("div",Ue," ZruÅ¡Ãte kedykoľvek a bez poplatkov ")):r("",!0)]),e("div",{onClick:S,role:"button","aria-expanded":s.value?"true":"false","aria-label":s.value?"ZavrieÅ¥ mobilné menu":"OtvoriÅ¥ mobilné menu",tabindex:"0",class:"relative cursor-pointer xl:hidden h-[24px] mt-1.5 w-[24px]"},[e("span",{class:h([{"rotate-45 top-2":s.value,"rotate-0 top-0":!s.value},"h-[3px] w-full bg-primary absolute duration-100"])},null,2),s.value?r("",!0):(n(),o("span",Pe)),e("span",{class:h([{"-rotate-45 top-2":s.value,"rotate-0 top-4":!s.value},"h-[3px] w-full bg-primary absolute duration-100"])},null,2)],8,Ee)])])],2),t.hidePhoneMenu?r("",!0):(n(),w(q,{key:0})),e("div",{class:h([{"opacity-0 invisible pointer-events-none":!s.value,"opacity-100 visible pointer-events-auto":s.value},"fixed top-0 bg-white w-full h-screen duration-300 z-10 overflow-y-auto"])},[e("div",Ve,[e("ul",Ze,[(n(!0),o(H,null,E(c(_),a=>(n(),o("li",{key:a.text,class:"mobile-nav-link"},[a.to?L((n(),w(g,{key:0,onClick:S,to:a.to,"prefetch-on":"interaction"},{default:y(()=>[P(k(a.text),1)]),_:2},1032,["to"])),[[z,{id:"header-nav-link-mobile",type:"navigation"}]]):(n(),o("span",Ae,k(a.text),1)),x.value&&a.text==="RoÄné balenie"?(n(),o("div",De,[...i[2]||(i[2]=[e("img",{src:fe,alt:"ZruÅ¡Ãte kedykoľvek a bez poplatkov",class:"w-[160px] h-auto max-w-none"},null,-1)])])):r("",!0)]))),128))])])],2)])],64)}}}),Je=Object.assign(Fe,{__name:"Header"});export{Je as _};
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.