(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[185],{4654:function(){},7513:function(e,t,r){Promise.resolve().then(r.bind(r,547)),Promise.resolve().then(r.bind(r,9057)),Promise.resolve().then(r.t.bind(r,1952,23)),Promise.resolve().then(r.t.bind(r,7960,23)),Promise.resolve().then(r.bind(r,61)),Promise.resolve().then(r.bind(r,1449)),Promise.resolve().then(r.bind(r,8836)),Promise.resolve().then(r.bind(r,8482)),Promise.resolve().then(r.bind(r,3034)),Promise.resolve().then(r.bind(r,1886)),Promise.resolve().then(r.bind(r,4496)),Promise.resolve().then(r.bind(r,4888)),Promise.resolve().then(r.bind(r,8087)),Promise.resolve().then(r.bind(r,7239)),Promise.resolve().then(r.t.bind(r,5878,23)),Promise.resolve().then(r.t.bind(r,8003,23)),Promise.resolve().then(r.t.bind(r,1034,23)),Promise.resolve().then(r.t.bind(r,457,23)),Promise.resolve().then(r.t.bind(r,970,23)),Promise.resolve().then(r.t.bind(r,6539,23)),Promise.resolve().then(r.bind(r,5328)),Promise.resolve().then(r.bind(r,1864))},547:function(e,t,r){"use strict";r.d(t,{default:function(){return a}});var n=r(7437);function a(){return(0,n.jsx)("button",{className:"bg-transparent hover:opacity-75 underline",onClick:()=>{let e=document.getElementById("qc-cmp2-persistent-link");null==e||e.click()},children:"S\xfcti be\xe1ll\xedt\xe1sok"})}},9057:function(e,t,r){"use strict";r.d(t,{default:function(){return v}});var n=r(7437),a=r(173),l=r(4927),o=r.n(l),i=r(7435);let s=r.n(i)()({level:"info"}),c=e=>{try{return new URL(e),!0}catch(e){return!1}};var d=r(5566);let u=async(e,t,r,n)=>{let a=c(e)?e:"";try{var l,o,i,u,h;let r=null!==(l=d.env.API_TOKEN)&&void 0!==l?l:"";if(!r&&!(r=null!==(u=null==n?void 0:null===(i=n.headers)||void 0===i?void 0:null===(o=i.Authorization)||void 0===o?void 0:o.replace("Bearer ",""))&&void 0!==u?u:""))throw Error("API_TOKEN variable isn't specified!");let c=null!=n?n:{};if(c.next={...c.next,tags:t},r&&(c.headers={...c.headers,Authorization:"Bearer ".concat(r)}),!a){let t=null!==(h=d.env.API_URL)&&void 0!==h?h:"";if(!t)throw Error("API_URL variable isn't specified!");"/"===t.substring(t.length-1)&&(t=t.slice(0,-1)),"/"===e.charAt(0)&&(e=e.slice(1)),a="".concat(t,"/api/").concat(e)}let m=await fetch(a,c);if(!m.ok){let e={fetchUrl:a,...m};throw s.error(e),Error("Invalid API request!")}return m.json()}catch(e){if("Invalid API request!"!==e.message&&(a&&s.error({url:a}),s.error(e)),!r)throw e}return null},h=async(e,t,r)=>{var n;let a="".concat(e,"/api/subscriptions"),l="newsletter-subscriptions-".concat(r.email),i=o().stringify({filters:{email:r.email},pagination:{limit:1,start:0}}),s=await u("".concat(a,"?").concat(i),[l],!1,{headers:{Authorization:"Bearer ".concat(t)}}),c=null!==(n=null==s?void 0:s.data)&&void 0!==n?n:[];return(!(c.length>0)||!c[0])&&(await u(a,["new-".concat(l)],!1,{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(t)},body:JSON.stringify({data:{email:r.email,first_name:r.firstName,last_name:r.lastName}})}),!0)};var m=r(5566);let f=async(e,t,r,n)=>{if(!n){alert("Az \xc1ltal\xe1nos Szerződ\xe9si Felt\xe9telek elfogad\xe1sa k\xf6telező!");return}if(!r.email||!r.lastName||!r.firstName){alert("Minden mező kit\xf6lt\xe9s k\xf6telező!");return}let l=m.env.NEWSLETTER_API_KEY,o=null;if(l){var i,s,c,d;let e=l?new a.Z({api_key:l}):null,t=await e.subscribers.find(r.email).catch(()=>{});if(!(o=null!==(s=null==t?void 0:null===(i=t.data)||void 0===i?void 0:i.data)&&void 0!==s?s:null)){let t=await e.subscribers.createOrUpdate({email:r.email,fields:{name:"".concat(r.lastName," ").concat(r.firstName)}}).catch(()=>{});o=null!==(d=null==t?void 0:null===(c=t.data)||void 0===c?void 0:c.data)&&void 0!==d?d:null}}l&&o||alert(await h(e,t,r)?"Sikeres feliratkoz\xe1s!":"A feliratkoz\xe1s meghi\xfasult!")};function v(e){var t,r,a;async function l(t){var r,n,a,l,o,i,s;t.preventDefault();let c=Object.fromEntries(new FormData(t.target)),d={email:null!==(o=null===(r=c.email)||void 0===r?void 0:r.toString())&&void 0!==o?o:"",lastName:null!==(i=null===(n=c.last_name)||void 0===n?void 0:n.toString())&&void 0!==i?i:"",firstName:null!==(s=null===(a=c.first_name)||void 0===a?void 0:a.toString())&&void 0!==s?s:""},u=(null===(l=t.currentTarget.elements.namedItem("accept_checkbox"))||void 0===l?void 0:l.checked)===!0;await f(e.apiUrl,e.apiToken,d,u)}return(0,n.jsx)("form",{onSubmit:l,children:(0,n.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,n.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,n.jsxs)("div",{className:"flex flex-row gap-2",children:[(0,n.jsx)("div",{className:"basis-1/2",children:(0,n.jsx)("input",{type:"text",id:"last_name",name:"last_name",placeholder:"Vezet\xe9kn\xe9v",required:!0,className:"".concat(null!==(t=e.inputClassName)&&void 0!==t?t:""," w-full bg-transparent placeholder:gray-light-color text-sm border px-3 py-2 transition duration-300 ease focus:outline-none focus:border-secondary-color hover:border-border-secondary-color shadow-sm focus:shadow")})}),(0,n.jsx)("div",{className:"basis-1/2",children:(0,n.jsx)("input",{type:"text",id:"first_name",name:"first_name",placeholder:"Keresztn\xe9v",required:!0,className:"".concat(null!==(r=e.inputClassName)&&void 0!==r?r:""," w-full bg-transparent placeholder:gray-light-color text-sm border px-3 py-2 transition duration-300 ease focus:outline-none focus:border-secondary-color hover:border-border-secondary-color shadow-sm focus:shadow")})})]}),(0,n.jsx)("div",{children:(0,n.jsx)("input",{type:"email",id:"email",name:"email",placeholder:"Email",required:!0,className:"".concat(null!==(a=e.inputClassName)&&void 0!==a?a:""," w-full bg-transparent placeholder:gray-light-color text-sm border px-3 py-2 transition duration-300 ease focus:outline-none focus:border-secondary-color hover:border-border-secondary-color shadow-sm focus:shadow")})})]}),(0,n.jsxs)("div",{className:"flex",children:[(0,n.jsx)("input",{id:"accept_checkbox",type:"checkbox",value:"",className:"w-5 h-5 mt-px accent-secondary-color hover:cursor-pointer"}),(0,n.jsx)("label",{htmlFor:"accept_checkbox",className:"ms-4 hover:cursor-pointer",children:(0,n.jsx)("span",{children:"Megismertem \xe9s elfogadom az Adatkezel\xe9si t\xe1j\xe9koztat\xf3ban foglaltakat \xe9s hozz\xe1j\xe1rulok, hogy a rendszer h\xedrlevelek k\xfcldj\xf6n nekem."})})]}),(0,n.jsx)("div",{children:(0,n.jsx)("button",{type:"submit",className:"text-white bg-secondary-color hover:opacity-85 font-medium text-sm w-full sm:w-auto px-5 py-2.5 text-center",children:"Feliratkoz\xe1s"})})]})})}},61:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return c}});var n=r(7437),a=r(2265),l=r(9376),o=r(1556),i=r(1952),s=r.n(i);function c(){let e=(0,l.useRouter)(),[t,r]=(0,a.useState)(""),i=e=>{"Enter"===e&&d()},c=e=>{e=e.replace(/\s+/g," "),(/^[A-Za-zÁÉÍÓÖŐÚÜŰáéíóöőúüű\s]+$/.test(e)||!e)&&r(e)},d=()=>{let r=t.trim(),n=r.length;if(0===n||n>=3&&n<=30){let t=r?"/kereses?global_filter=".concat(encodeURIComponent(r)):"/";e.push(t)}};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("label",{className:"sr-only",children:"Keres\xe9s"}),(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)("input",{type:"text",minLength:3,maxLength:30,autoComplete:"false",placeholder:"Keres\xe9s...",className:"".concat(s().searchInput," block w-full bg-transparent placeholder:text-gray-dark-color dark:placeholder:text-gray-light-color text-sm  px-3 py-2 transition duration-300 ease focus:outline-none border border-gray-dark-color dark:border-dirty-white-color focus:border-secondary-color dark:focus:border-secondary-color shadow-sm focus:shadow"),value:t,onKeyDown:e=>i(e.key),onChange:e=>c(e.target.value)}),(0,n.jsx)("button",{type:"submit",className:"absolute end-0 bottom-0 font-medium rounded-lg text-sm px-3 py-2",onClick:d,children:(0,n.jsx)(o.Z,{"aria-hidden":"true",className:"h-5 w-5 text-black-400"})})]})]})}},1449:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return d}});var n,a,l=r(7437),o=r(5922),i=r(1),s=r(9158),c=r(2265);function d(e){let{theme:t,setTheme:r}=(0,o.F)(),[n,a]=(0,c.useState)(!1);(0,c.useEffect)(()=>{a(!0)},[]);let d=()=>{r("light"===t?"dark":"light")};return n?(0,l.jsx)(l.Fragment,{children:e.isOnlyIcon?(0,l.jsx)("button",{className:"relative flex-shrink-0 rounded-full bg-white p-1 dark:bg-transparent hover:opacity-80 active:outline-none",title:"light"===t?"V\xe1lt\xe1s s\xf6t\xe9t m\xf3dra":"V\xe1lt\xe1s vil\xe1gos m\xf3dra",onClick:d,children:"light"===t?(0,l.jsx)(i.Z,{"aria-hidden":"true",className:"h-6 w-6 text-primary-color dark:text-dirty-white-color"}):(0,l.jsx)(s.Z,{"aria-hidden":"true",className:"h-6 w-6 text-primary-color dark:text-dirty-white-color"})}):(0,l.jsxs)("button",{className:"inline-flex gap-3 w-10/12 min-w-72 justify-center text-dirty-white-color bg-primary-color hover:opacity-90 border dark:border-dirty-white-color focus:ring-0 focus:ring-gray-300 font-medium rounded-lg text-sm px-5 py-2.5 focus:outline-none dark:focus:ring-gray-800",onClick:d,children:[(0,l.jsx)("span",{children:"light"===t?(0,l.jsx)(i.Z,{className:"h-6 w-6 text-dirty-white-color"}):(0,l.jsx)(s.Z,{className:"h-6 w-6 text-dirty-white-color"})}),(0,l.jsx)("span",{className:"pt-0.5 text-dirty-white-color",children:"light"===t?"V\xe1lt\xe1s s\xf6t\xe9t m\xf3dra":"V\xe1lt\xe1s vil\xe1gos m\xf3dra"})]})}):null}(n=a||(a={})).Light="light",n.Dark="dark"},8836:function(e,t,r){"use strict";r.d(t,{default:function(){return l}});var n=r(7437),a=r(2265);function l(e){let[t,r]=(0,a.useState)(0),[l,o]=(0,a.useState)(!0),i=(0,a.useRef)(0),s=(0,a.useRef)(e.labels.length);return(0,a.useEffect)(()=>{let e=setInterval(()=>{o(!1),setTimeout(()=>{let e=i.current,t=e+1<=s.current-1?e+1:0;r(t),o(!0),i.current=t},500)},8e3);return()=>clearInterval(e)},[]),(0,n.jsx)("div",{className:"w-full text-center",children:(0,n.jsx)("span",{className:"".concat(l?"opacity-100":"opacity-0"," transition-opacity ease-in-out delay-150 duration-300 text-secondary-color"),children:e.labels[t]})})}},8482:function(e,t,r){"use strict";r.d(t,{ThemeProvider:function(){return l}});var n=r(7437);r(2265);var a=r(5922);function l(e){let{children:t,...r}=e;return(0,n.jsx)(a.f,{...r,children:t})}},3034:function(e,t,r){"use strict";var n,a=r(7437);r(2265);var l=r(4562),o=r(2977),i=r(554),s=r(1020);let c=null!==(n=r(5566).env.APPINSIGHTS_INSTRUMENTATION_KEY)&&void 0!==n?n:"",d=new o.Z,u=c?new l.R({config:{instrumentationKey:c,enableAutoRouteTracking:!0,enableCorsCorrelation:!0,enableRequestHeaderTracking:!0,enableResponseHeaderTracking:!0,enableAjaxPerfTracking:!0,isBrowserLinkTrackingEnabled:!0,extensions:[d]}}):null;null==u||u.loadAppInsights(),t.default=(0,s.Z)(d,e=>{let{children:t}=e;return(0,a.jsx)(i.Y.Provider,{value:d,children:t})})},7960:function(){},1952:function(e){e.exports={ratesCategory:"_styles_ratesCategory__CM1Kb",swipe:"_styles_swipe__Figdb",rate:"_styles_rate__vT9Y4",searchInput:"_styles_searchInput__HVUgC",headerBottomMoreItem:"_styles_headerBottomMoreItem__sMgpi"}},1864:function(e,t,r){"use strict";r.r(t),t.default={src:"/_next/static/media/kontroll_logo.918ede23.svg",height:220,width:800,blurWidth:0,blurHeight:0}},5328:function(e,t,r){"use strict";r.r(t),t.default={src:"/_next/static/media/kontroll_logo_10_23.7b6afcd2.svg",height:99,width:500,blurWidth:0,blurHeight:0}}},function(e){e.O(0,[559,501,878,667,616,889,971,117,744],function(){return e(e.s=7513)}),_N_E=e.O()}]);