1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[606],{1529:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/kontakty",function(){return s(8480)}])},9162:function(e,t,s){"use strict";s.d(t,{_:function(){return a},l:function(){return r}});let a=/^[+]?[()/0-9. -]{9,}$/,r=/^[^!@#$%^&*()_+=\[\]{}|;:'",<>/?]+$/},7409:function(e,t,s){"use strict";var a=s(5893),r=s(7294),i=s(3495),l=s(1526),n=s(2294),d=s(7851);t.Z=e=>{let{id:t,label:s,bigLabel:o=!1,bodyTextBefore:c,bodyTextAfter:m,children:x,open:u=!0}=e,[h,p]=(0,r.useState)(u);return(0,r.useEffect)(()=>{p(u)},[u]),(0,a.jsxs)("div",{className:"relative",id:t,children:[(0,a.jsxs)("div",{onClick:()=>{p(e=>!e)},className:(0,d.m)("relative z-10 flex cursor-pointer items-center justify-between gap-2 rounded-tl-[5px] border-b-[1px] border-b-blue-100 bg-white px-8 py-[19px] font-semibold text-blue-900 hover:bg-blue-50",o&&"text-xl md:text-3xl"),children:[(0,a.jsx)("span",{children:s}),(0,a.jsx)(i.E.div,{initial:h?"open":"closed",animate:h?"open":"closed",variants:{open:{rotate:180},closed:{rotate:0}},transition:{type:"tween"},children:(0,a.jsx)(n.Z,{className:"h-5 w-5"})})]}),(0,a.jsx)(l.M,{initial:!1,children:h&&(0,a.jsxs)(i.E.div,{initial:{opacity:0,y:-60},animate:{opacity:1,y:0},exit:{opacity:0,y:-60},transition:{opacity:{duration:.2}},className:"left-0 right-0 top-[100%] z-10 w-full border-b-[1px] border-b-blue-100 bg-white px-8 py-6",children:[c&&(0,a.jsx)("p",{className:"pb-6",children:c}),(0,a.jsx)("div",{children:x}),m&&(0,a.jsx)("p",{className:"pt-6",children:m})]},"dropdown-body")})]})}},2341:function(e,t,s){"use strict";var a=s(5893),r=s(8113),i=s(2046);t.Z=e=>{let{title:t,icon:s,children:l}=e;return(0,a.jsxs)("div",{className:"grid grid-cols-[24px_auto] gap-6",children:[(0,a.jsx)("div",{className:"relative top-1 text-cyan-600",children:(0,i.q7)(s,"lg")}),(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsx)(r.Z,{size:"md",children:t}),(0,a.jsx)("div",{children:l})]})]})}},74:function(e,t,s){"use strict";s.d(t,{Z:function(){return l}});var a=s(5893),r=s(7294),i=s(7851),l=r.forwardRef((e,t)=>{let{type:s="text",placeholder:r,id:l,label:n,required:d=!1,errorMessage:o,name:c,size:m,...x}=e;return(0,a.jsxs)("div",{className:"flex-1 basis-0",children:[(0,a.jsxs)("div",{className:"flex max-w-[400px] flex-col gap-4",children:[(0,a.jsxs)("label",{className:"flex gap-2 text-blue-900",htmlFor:l,children:[(0,a.jsx)("span",{children:n}),d&&(0,a.jsx)("span",{className:"text-base text-red-500",children:"*"})]}
1),(0,a.jsx)("input",{className:(0,i.m)("rounded-[5px] border border-gray-400 bg-white px-4 py-[19px] text-base placeholder:text-gray-400 focus:outline-blue-400",o&&"border-red-500 focus:outline-red-300",m&&({short:"w-[50%]"})[m]),id:l,type:s,name:c,placeholder:r,...x,required:!1,ref:t})]}),o?(0,a.jsx)("div",{className:"my-1 h-5 text-xs text-red-500",children:o}):(0,a.jsx)("div",{className:"my-1 h-5"})]})})},2680:function(e,t,s){"use strict";var a=s(5893),r=s(1664),i=s.n(r),l=s(2433),n=s(6472),d=s(1409),o=s(2062);t.Z=e=>{let{href:t}=e,s=(0,o.Z)(d.Z.locationBar.button);return(0,a.jsx)("div",{className:"mx-auto max-w-[1424px] px-8",children:(0,a.jsxs)("div",{className:'relative mt-[68px] flex h-[232px] items-end justify-center rounded-bl-[20px] rounded-tr-[20px] bg-[url("/images/location-bg-mobile.png")] bg-cover bg-center bg-no-repeat py-5 sm:px-4 lg:h-[128px] lg:items-center lg:justify-end lg:bg-[url("/images/location-bg.png")] lg:px-8',children:[(0,a.jsxs)("div",{className:"absolute left-5 right-0 top-[-85px] mx-auto flex w-fit items-end lg:left-20 lg:mx-0",children:[(0,a.jsx)(l.Z,{className:"relative left-5 top-4 h-20 w-20"}),(0,a.jsx)(l.Z,{className:"h-[183px] w-[183px]"})]}),(0,a.jsx)(i(),{href:t,title:"Naj\xedt odbÄrov\xe9 m\xedsto",children:(0,a.jsx)(n.Z,{variant:"primary",icon:"arrowRightCircle",children:s})})]})})}},2037:function(e,t,s){"use strict";var a=s(5893);t.Z=e=>{let{children:t}=e;return(0,a.jsx)("div",{className:"mx-auto my-10 max-w-[1424px] px-8 xl:my-16",children:t})}},9435:function(e,t,s){"use strict";var a=s(5893),r=s(7851);t.Z=e=>{let{children:t,noPadding:s=!1}=e;return(0,a.jsx)("h1",{className:(0,r.m)("pb-12 text-3.5xl font-semibold md:text-4.5xl",s&&"pb-0 xl:pb-0"),children:t})}},8113:function(e,t,s){"use strict";s.d(t,{Z:function(){return a.Z}});var a=s(94)},8480:function(e,t,s){"use strict";s.r(t),s.d(t,{__N_SSP:function(){return T},default:function(){return q}});var a=s(5893),r=s(2170),i=s(4580),l=s(1163),n=s(7294),d=s(5935),o=s(2037),c=s(9435),m=s(7409),x=s(2341),u=s(74),h=s(7851),p=n.forwardRef((e,t)=>{let{placeholder:s,id:r,label:i,name:l,required:n=!1,errorMessage:d,...o}=e;return(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"flex max-w-[830px] flex-col gap-4",children:[(0,a.jsxs)("label",{className:"flex gap-2 text-blue-900",htmlFor:r,children:[(0,a.jsx)("span",{children:i}),n&&(0,a.jsx)("span",{className:"text-base text-red-500",children:"*"})]}),(0,a.jsx)("textarea",{className:(0,h.m)("rounded-[5px] border border-gray-400 bg-white px-4 py-[19px] text-base placeholder:text-gray-400 focus:outline-blue-400",d&&"border-red-500 focus:outline-red-300"),id:r,rows:7,name:l,placeholder:s,...o,ref:t})]}),d?(0,a.jsx)("div",{className:"my-1 h-5 text-xs text-red-500",children:d}):(0,a.jsx)("div",{className:"my-1 h-5"})]})}),f=s(8113),v=s(6472),j=s(9498),b=s(3448),g=s(319),N=s(9214),y=s(7536),Z=s(6312),w=s(1409),_=s(2062),F=s(9162),E=()=>{var e,t,s,r,i;let[l,d]=(0,g.D)(N.Lw),{executeRecaptcha:o}=(0,j.CL)(),c=(0,_.Z)(w.Z.contactForm.title),m=(0,_.Z)(w.Z.contactForm.requiredFieldNote),x=(0,_.Z)(w.Z.contactForm.requiredFiled),h=(0,_.Z)(w.Z.contactForm.invalidEmailFormat),E=(0,_.Z)(w.Z.contactForm.invalidPhoneFormat),k=(0,_.Z)(w.Z.contactForm.messages.success),P=(0,_.Z)(w.Z.contactForm.messages.error),S=b.Ry({firstName:b.Z_().min(1,x),lastName:b.Z_().min(1,x),email:b.Z_().email(h).min(1,x),phone:b.Z_().min(1,x).regex(F._,E),yourQuestion:b.Z_()}),{register:T,handleSubmit:q,reset:C,formState:{errors:z,isSubmitting:M}}=(0,y.cI)({resolver:(0,Z.F)(S)}),[Q,O]=(0,n.useState)(!1),R=async e=>{O(!1);try{let t=await (null==o?void 0:o("contact_submit"));if(!t){O(!0);return}let s=await fetch("/api/recaptcha/verify",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:t,action:"contact_submit"})}),a=await s.json().catch(()=>({}))||{};if(!s.ok||!a.success){O(!0);return}await l({variables:{data:{firstname:e.firstName,lastname:e.lastName,email:e.email,phone:e.phone,message:e.yourQuestion||""}}})}catch(e){O(!0)}};return(0,n.useEffect)(()=>{d.called&&!d.error&&(O(!1),C(),setTimeout(()=>{d.reset()},1e4))},[d,C]),(0,a.jsxs)("div",{children:[(0,a.jsx)(f.Z,{size:"lg",children:c}),(0,a.jsxs)("form",{className:"mt-10 max-w-[895px] bg-white p-8 pb-10",onSubmit:q(R),children:[(0,a.jsxs)("div",{className:"mb-10",children:[(0,a.jsx)("span",{className:"text-base text-red-500",children:"*"})," ",(0,a.jsx)("span",{children:m})]}),(0,a.jsxs)("div",{className:"min-[840px]:flex gap-7",children:[(0,a.jsx)(u.Z,{id:"firstName",label:"Jm\xe9no",required:!0,...T("firstName"),errorMessage:z.firstName&&(null===(e=z.firstName)||void 0===e?void 0:e.message)}),(0,a.jsx)(u.Z,{id:"lastName",label:"PÅ\xedjmen\xed",required:!0,...T("lastName"),errorMessage:z.lastName&&(null===(t=z.lastName)||void 0===t?void 0:t.message)})]}),(0,a.jsxs)("div",{className:"min-[840px]:flex gap-7",children:[(0,a.jsx)(u.Z,{id:"email",label:"Email",required:!0,...T("email"),errorMessage:z.email&&(null===(s=z.email)||void 0===s?void 0:s.message)}),(0,a.jsx)(u.Z,{id:"phone",label:"Telefon",required:!0,...T("phone"),errorMessage:z.phone&&(null===(r=z.phone)||void 0===r?void 0:r.message)})]}),(0,a.jsx)(p,{id:"yourQuestion",label:"V\xe1Å¡ dotaz",...T("yourQuestion"),errorMessage:z.yourQuestion&&(null===(i=z.yourQuestion)||void 0===i?void 0:i.message)}),(0,a.jsx)("div",{className:"flex justify-end",children:(0,a.jsx)(v.Z,{type:"submit",variant:"primary",disabled:M||d.loading,children:"Odeslat dotaz"})}),d.called&&!d.error&&(0,a.jsx)("div",{className:"my-8",children:(0,a.jsx)("p",{className:"text-sm",children:k})}),(Q||d.called&&d.error)&&(0,a.jsx)("div",{className:"my-8",children:(0,a.jsx)("p",{className:"text-sm text-red-600",children:P})})]})]})},k=s(2680),P=s(2046),S=e=>{let{title:t,contacts:s}
1=e,r=(0,l.useRouter)(),[i,u]=(0,n.useState)("");return(0,n.useEffect)(()=>{u(r.asPath.split("#")[1]||"")},[r.asPath]),(0,n.useEffect)(()=>{if(!i)return;let e=setTimeout(()=>{let e=document.getElementById(i);e&&e.scrollIntoView({behavior:"smooth"})},100);return()=>{clearTimeout(e)}},[i]),(0,a.jsxs)(o.Z,{children:[(0,a.jsx)(c.Z,{children:t}),(0,a.jsx)("div",{className:"flex max-w-[894px] flex-col gap-8 lg:gap-10",children:s.map((e,t)=>{var s,r;return(0,a.jsx)("div",{children:(0,a.jsxs)(m.Z,{id:e.anchor?e.anchor:(0,P.cD)(e.name),label:e.name,open:0===t||!!e.anchor&&e.anchor===i,children:[e.note&&(0,a.jsx)("div",{className:"page-content !mb-8 !mt-0",children:(0,d.ZP)(e.note?e.note:"")}),e.tabs&&e.tabs.map(t=>(0,a.jsx)("div",{className:"mb-8 max-w-[475px]",children:(0,a.jsx)(m.Z,{id:e.anchor?e.anchor:(0,P.cD)(e.name),label:t.title,open:!!e.anchor&&e.anchor===i,children:t.content&&(0,a.jsx)("div",{className:"page-content !mb-8 !mt-0",children:(0,d.ZP)(t.content?t.content:"")})})},t.id)),(0,a.jsx)("div",{className:"mb-8",children:e.address&&(null===(s=e.address)||void 0===s?void 0:s.title)&&(null===(r=e.address)||void 0===r?void 0:r.content)&&(0,a.jsx)(x.Z,{title:e.address.title,icon:"mapPin",children:e.address.content})})]})},e.id)})}),(0,a.jsx)("div",{className:"mt-12 xl:mt-20",children:(0,a.jsx)(E,{})}),(0,a.jsx)("div",{className:"mt-24 lg:mt-[152px]",children:(0,a.jsx)(k.Z,{href:"/odberova-mista"})})]})},T=!0,q=e=>{let{data:t}=e,s=(null==t?void 0:t.contact.data.attributes.contacts.map(e=>{var t,s,a;return{id:e.id,name:e.name,note:e.note,anchor:e.anchor||"",address:{title:(null===(t=e.address)||void 0===t?void 0:t.AddressName)||"",content:(null===(s=e.address)||void 0===s?void 0:s.Address)||""},tabs:null===(a=e.tabs)||void 0===a?void 0:a.map(e=>({id:e.id,title:e.Title,content:e.Content}))}}))||[];return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.Z,{title:"Kontakty"}),(0,a.jsx)(i.Z,{children:(0,a.jsx)(S,{title:"Kontakty",contacts:s})})]})}}},function(e){e.O(0,[156,536,935,234,201,580,538,888,774,179],function(){return e(e.s=1529)}),_N_E=e.O()}]);
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.