1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[380],{7008:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/citycard-details",function(){return r(3711)}])},833:function(e,t,r){"use strict";r.d(t,{Z:function(){return h}});var s=r(5893),i=r(7294),n=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var s,i,n;if(Array.isArray(t)){if((s=t.length)!=r.length)return!1;for(i=s;0!==i--;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((s=(n=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(i=s;0!==i--;)if(!Object.prototype.hasOwnProperty.call(r,n[i]))return!1;for(i=s;0!==i--;){var a=n[i];if(!e(t[a],r[a]))return!1}return!0}return t!==t&&r!==r};const a="__googleMapsScriptId";var o;!function(e){e[e.INITIALIZED=0]="INITIALIZED",e[e.LOADING=1]="LOADING",e[e.SUCCESS=2]="SUCCESS",e[e.FAILURE=3]="FAILURE"}(o||(o={}));class l{constructor({apiKey:e,authReferrerPolicy:t,channel:r,client:s,id:i=a,language:o,libraries:c=[],mapIds:d,nonce:h,region:u,retries:p=3,url:m="https://maps.googleapis.com/maps/api/js",version:g}){if(this.CALLBACK="__googleMapsCallback",this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=e,this.authReferrerPolicy=t,this.channel=r,this.client=s,this.id=i||a,this.language=o,this.libraries=c,this.mapIds=d,this.nonce=h,this.region=u,this.retries=p,this.url=m,this.version=g,l.instance){if(!n(this.options,l.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(l.instance.options)}`);return l.instance}l.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?o.FAILURE:this.done?o.SUCCESS:this.loading?o.LOADING:o.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let e=this.url;return e+=`?callback=${this.CALLBACK}`,this.apiKey&&(e+=`&key=${this.apiKey}`),this.channel&&(e+=`&channel=${this.channel}`),this.client&&(e+=`&client=${this.client}`),this.libraries.length>0&&(e+=`&libraries=${this.libraries.join(",")}`),this.language&&(e+=`&language=${this.language}`),this.region&&(e+=`®ion=${this.region}`),this.version&&(e+=`&v=${this.version}`),this.mapIds&&(e+=`&map_ids=${this.mapIds.join(",")}`),this.authReferrerPolicy&&(e+=`&auth_referrer_policy=${this.authReferrerPolicy}`),e}deleteScript(){const e=document.getElementById(this.id);e&&e.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise(((e,t)=>{this.loadCallback((r=>{r?t(r.error):e(window.google)}))}))}loadCallback(e){this.callbacks.push(e),this.execute()}setScript(){if(document.getElementById(this.id))return void this.callback();const e=this.createUrl(),t=document.createElement("script");t.id=this.id,t.type="text/javascript",t.src=e,t.onerror=this.loadErrorCallback.bind(this),t.defer=!0,t.async=!0,this.nonce&&(t.nonce=this.nonce),document.head.appendChild(t)}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(e){if(this.errors.push(e),this.errors.length<=this.retries){const e=this.errors.length*Math.pow(2,this.errors.length);console.log(`Failed to load Google Maps script, retrying in ${e} ms.`),setTimeout((()=>{this.deleteScript(),this.setScript()}),e)}else this.onerrorEvent=e,this.callback()}setCallback(){window.__googleMapsCallback=this.callback.bind(this)}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach((e=>{e(this.onerrorEvent)})),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version)return console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."),void this.callback();this.loading||(this.loading=!0,this.setCallback(),this.setScript())}}}var c="/_next/static/media/Icon_POI_selected_m.62924dfd.svg",d="/_next/static/media/Icon_POI_unselected_m.4ab1e847.svg",h=function(e){var t,r=e.selectMarker,n=e.markerList,a=e.className,o=e.center,h=(0,i.useRef)(null);return(0,i.useEffect)((function(){var e;new l({apiKey:"AIzaSyCCzpQxRX6qnFZqfBIMi2byP0ZDEPt6Y4U"}).load().then((function(){var s=window.google;h.current&&(e=new s.maps.Map(h.current,{center:null!==o&&void 0!==o?o:{lat:47.4443956,lng:19.1740384},zoom:12,disableDefaultUI:!0}
1),n.forEach((function(i){var n=new s.maps.Marker({position:{lat:isNaN(i.lat)?Number.parseFloat(i.lat):i.lat,lng:isNaN(i.lon)?Number.parseFloat(i.lon):i.lon},map:e});i.isActive?n.setIcon(c):n.setIcon(d);var a,o=new s.maps.InfoWindow({content:i.address});s.maps.event.addListener(n,"click",(a=n,function(){o.open({anchor:a,map:e,shouldFocus:!1}),t&&t.close(),t=o,r(i.id)}))})))}))})),(0,s.jsx)("div",{id:"map",ref:h,className:null!==a&&void 0!==a?a:"h-[600px] mb-[40px]"})}},3711:function(e,t,r){"use strict";r.r(t),r.d(t,{CityCardDetails:function(){return _},default:function(){return x}});var s=r(5893),i=r(9008),n=r.n(i),a=r(5675),o=r.n(a),l=r(1163),c=r(7294),d=r(833),h=function(e){var t=e.openHours,r=function(e,t,r,i){var n=function(e){var t=e.split(":");return"".concat(t[0],":").concat(t[1])};return"1"===e?(0,s.jsx)(s.Fragment,{children:"Sz\xfcnnap"}):"1"===t?(0,s.jsx)(s.Fragment,{children:"Bejelentkez\xe9s sz\xfcks\xe9ges"}):(0,s.jsxs)(s.Fragment,{children:[" ",n(r)," - ",n(i)]})};return(0,s.jsxs)("p",{className:"font-montserrat font-regular text-[1.8rem] leading-[26px] pt-10",children:["Nyitva:",(0,s.jsx)("br",{}),"H\xe9tf\u0151:",r(t.monday_is_holiday,t.monday_must_reserve,t.monday_opening_time,t.monday_closing_time),(0,s.jsx)("br",{}),"Kedd:",r(t.tuesday_is_holiday,t.tuesday_must_reserve,t.tuesday_opening_time,t.tuesday_closing_time),(0,s.jsx)("br",{}),"Szerda:",r(t.wednesday_is_holiday,t.wednesday_must_reserve,t.wednesday_opening_time,t.wednesday_closing_time),(0,s.jsx)("br",{}),"Cs\xfct\xf6rt\xf6k:",r(t.thursday_is_holiday,t.thursday_must_reserve,t.thursday_opening_time,t.thursday_closing_time),(0,s.jsx)("br",{}),"P\xe9ntek:",r(t.friday_is_holiday,t.friday_must_reserve,t.friday_opening_time,t.friday_closing_time),(0,s.jsx)("br",{}),"Szombat:",r(t.saturday_is_holiday,t.saturday_must_reserve,t.saturday_opening_time,t.saturday_closing_time),(0,s.jsx)("br",{}),"Vas\xe1rnap:",r(t.sunday_is_holiday,t.sunday_must_reserve,t.sunday_opening_time,t.sunday_closing_time)]})},u=r(8014),p=r(5177),m=r(9692),g=r(8100),f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=(0,c.useState)(),r=t[0],s=t[1],i=(0,g.ZP)("".concat(u.D7,"/partner-api/place-site?id=").concat(e),m._i),n=i.data;i.error;return(0,c.useEffect)((function(){n&&s(n)}),[n]),r},_=function(){var e=(0,p.b)().highContrastOn,t=(0,l.useRouter)().query.contentId,r=f(t),i=(0,c.useMemo)((function(){return r?Number.parseFloat(r.lat):0}),[r]),a=(0,c.useMemo)((function(){return r?Number.parseFloat(r.lon):0}),[r]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(n(),{children:[(0,s.jsx)("meta",{property:"og:title",content:"V\xe1rosk\xe1rtya"}),(0,s.jsx)("meta",{property:"og:description",content:"Budapest 18 ker\xfclet \xf6nkorm\xe1nyzati weboldal"}),(0,s.jsx)("meta",{property:"og:image",content:"https://webteszt.bp18app.hu/body/logo.jpg"}),(0,s.jsx)("title",{children:"V\xe1rosk\xe1rtya"}),(0,s.jsx)("meta",{name:"description",content:"Budapest 18 ker\xfclet \xf6nkorm\xe1nyzati weboldal"}),(0,s.jsx)("meta",{name:"viewport",content:"initial-scale=1.0, width=device-width"}),(0,s.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,s.jsx)("div",{className:"grid grid-cols-12 text-article pb-22.5 gap-desktop font-montserrat article-list-styles article-content clear-a pt-36 2xl:pt-0",children:(0,s.jsx)("div",{className:"col-start-2 2xl:col-start-3 col-span-10 2xl:col-span-8",children:r&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{children:(0,s.jsx)("p",{className:"font-montserrat font-medium text-[2.4rem]",children:r.name})}),(0,s.jsxs)("div",{className:"w-full 2xl:flex 2xl:flex-row gap-8 pb-8 pt-10",children:[(0,s.jsxs)("div",{className:"2xl:w-1/2 w-full grid mb-10",children:[(0,s.jsxs)("p",{className:"font-montserrat font-regular text-[1.8rem]",children:[(0,s.jsx)("p",{dangerouslySetInnerHTML:{__html:r.opening_hours.comment}}),r.home_page_url&&(0,s.jsxs)("p",{className:"pt-10",children:["Weboldal:"," ",(0,s.jsx)("a",{target:"_blank",href:r.home_page_url,rel:"noreferrer",children:r.home_page_url})]})]}),(0,s.jsxs)("p",{className:"font-montserrat font-semibold text-[2.2rem] leading-[28px]",children:[(0,s.jsxs)("p",{className:"text-[#c4002d]",children:[r.discount,"% kedvezm\xe9ny"]}),(0,s.jsxs)("p",{children:["Kateg\xf3ria: ",r.category]})]}),(0,s.jsx)(h,{openHours:r.opening_hours})]}),(0,s.jsx)("div",{className:"2xl:w-1/2 w-full h-[600px] grid",children:(0,s.jsx)(o(),{loader:m.kM,src:"".concat(u.nP,"/").concat(r.base_img_url),alt:r.name,title:r.name,height:"321px",width:"100%",objectFit:"contain",layout:"responsive"})})]}),(0,s.jsxs)("div",{className:"w-full 2xl:flex 2xl:flex-row pb-8 pt-20",children:[(0,s.jsxs)("div",{className:"2xl:w-1/2 w-full h-[321px] grid p-8 mb-10 ".concat(e?"bg-[#303030]":"bg-[#ecf0f6]"),children:[(0,s.jsx)("p",{className:"font-montserrat font-regular text-[3rem] leading-[36px] ".concat(e?"text-[#fff]":"text-[#b6182d]"),children:"T\xe9rk\xe9p"}),(0,s.jsx)("p",{className:"font-montserrat font-regular text-[2.4rem] leading-[20px]",children:r.name}),(0,s.jsx)("p",{className:"font-montserrat font-regular text-[2.4rem] leading-[29px]",children:r.address})]}),(0,s.jsx)("div",{className:"2xl:w-1/2 w-full h-[321px] grid",children:(0,s.jsx)(d.Z,{selectMarker:function(){},markerList:[{lat:i,lon:a,address:r.address}],className:"h-[321px]",center:{lat:i,lng:a}})})]})]})})})]})},x=_},9008:function(e,t,r){e.exports=r(3121)}},function(e){e.O(0,[774,888,179],(function(){return t=7008,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
2//# sourceMappingURL=citycard-details-f3bb87f83d3a248e.js.map
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.