1(window.webpackJsonp=window.webpackJsonp||[]).push([[22],{696:function(t,e,n){"use strict";n(18),n(14),n(12),n(10),n(15),n(37),n(38);var r=n(3),o=n(6),c=n(7),l=n(91),d=n(193);function f(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}var m={name:"InfoPanel",props:{item:{type:Object,required:!0},inWindow:{type:Boolean,required:!1,default:!1},active:{type:Boolean,required:!0},schema:{type:String,required:!1,default:"places"}},components:{AddToFav:l.a,AvgRating:d.a},data:function(){return{isActive:!1,cover:"",ratingsCount:null,ratingAvg:"",ratingRemainder:""}},computed:function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?f(Object(source),!0).forEach((function(e){Object(r.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):f(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({},Object(c.c)(["allCommunities"]),{hasCover:function(){switch(this.schema){case"places":return!!this.item.featuredImage}},title:function(){return this.item.title},link:function(){switch(this.schema){case"places":return"../vendeglatohelyek/"+this.item.slug}},hasFav:function(){return["places","biomarkets"].includes(this.schema)}}),watch:{item:function(t){var e=this;this.active&&(this.$refs.avgRating&&this.$refs.avgRating.reset(),this.getImage(),this.$nextTick((function(){e.$refs.ratings&&e.$refs.ratings.getRatings(),e.$refs.avgRating&&e.$refs.avgRating.getRatingAvg()})))}},methods:{showSpot:function(t){var e=this.allCommunities.filter((function(e){return e.uniqueKey===t}))[0];this.$emit("selectSpot",e)},selectSpot:function(t){var e=this.allCommunities.filter((function(e){return e.id===t}))[0];this.$emit("selectSpot",e)},getImage:function(){var t=this;this.item.featuredImage&&o.c.storage.getURL({fileId:this.item.featuredImage[0],size:{path:"375_9999_100"}}).then((function(e){return t.cover=e}))},close:function(){this.$emit("close"),this.cover=""}}},v=n(4),component=Object(v.a)(m,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"infowindow",class:[{"is-active":t.active},{"in-window":t.inWindow},{"no-cover":!t.hasCover&&t.active}]},[n("div",{staticClass:"infowindow__close",on:{click:function(e){return t.close()}}},[n("i",{staticClass:"fas fa-times"})]),t._v(" "),n("div",{staticClass:"infowindow__fav"},[t.active&&t.hasFav?n("AddToFav",{attrs:{data:t.item,button:!1,schema:t.schema}}):t._e()],1),t._v(" "),n("div",{staticClass:"infowindow__header"},[t.hasCover?n("div",{staticClass:"infowindow__cover lazy",style:"background-image: url('"+t.cover+"');"}):t._e(),t._v(" "),n("h2",{staticClass:"infowindow__title"},["places"===t.schema?n("nuxt-link",{attrs:{to:t.link}},[t._v("\n "+t._s(t.title)+"\n ")]):t._e(),t._v(" "),"places"!==t.schema?n("span",[t._v("\n "+t._s(t.title)+"\n ")]):t._e()],1),t._v(" "),t.item.spot?n("div",{staticClass:"infowindow__subtitle"},[n("strong",{on:{click:function(e){return t.selectSpot(t.item.spotOfId)}}},[t._v(t._s(t.item.spotOf))]),t._v(" átvevÅhely\n ")]):t._e(),t._v(" "),t.item.ratings?n("div",{staticClass:"infowindow__rating"},[n("AvgRating",{ref:"avgRating",attrs:{ratings:t.item.ratings}})],1):t._e()]),t._v(" "),n("div",{staticClass:"infowindow__intro"},[t._v("\n "+t._s(t.item.intro)+"\n ")]),t._v(" "),t.item.tulajdonsagok?n("div",{staticClass:"infowindow__chars"},t._l(t.item.tulajdonsagok,(function(e){return e?n("span",{staticClass:"tag tag--char"},[e.icon?n("img",{attrs:{src:"/chars/"+e.id+".png",width:"30"}}):t._e(),t._v(" "),e.icon?t._e():n("span",{staticClass:"img"}),t._v("\n "+t._s(e.title)+"\n ")]):t._e()})),0):t._e(),t._v(" "),n("div",{staticClass:"infowindow__content"},[t.item.contact&&t.item.contact.addressText?n("div",{staticClass:"infowindow__data infowindow__address"},[t._v("\n "+t._s(t.item.contact.addressText||null)+"\n ")]):t._e(),t._v(" "),t.item.nyitvaTartas?n("div",{staticClass:"infowindow__data"},[n("h4",[t._v("Nyitva tartás:")]),t._v(" "),n("table",{staticClass:"infowindow__hours"},[n("tbody",t._l(t.item.nyitvaTartas,(function(e){return n("tr",[n("td",[n("strong",[t._v(" "+t._s(e.days)+": ")])]),t._v(" "),n("td",[n("span",[t._v("\n "+t._s(e.hours)+"\n ")])])])})),0)])]):t._e(),t._v(" "),t.item.opening?n("div",{staticClass:"infowindow__data"},[n("h4",[t._v("Nyitva tartás:")]),t._v(" "),n("table",{staticClass:"infowindow__hours"},[n("tbody",t._l(t.item.opening,(function(e){return n("tr",[n("td",[n("strong",[t._v(" "+t._s(e.days)+": ")])]),t._v(" "),n("td",[n("span",[t._v("\n "+t._s(e.hours)+"\n ")])])])})),0)])]):t._e(),t._v(" "),t.item.contact&&!t.item.spot?n("div",{staticClass:"infowindow__data"},[n("div",{staticClass:"infowindow__contacts"},[n("h4",[t._v("Linkek:")]),t._v(" "),t.item.contact.facebook?n("a",{staticClass:"btn btn--icon-left btn--facebook",attrs:{href:t.item.contact.facebook,target:"_blank"}},[n("i",{staticClass:"fab fa-facebook-f"}),t._v("\n Facebook\n ")]):t._e(),t._v(" "),t.item.contact.email?n("a",{staticClass:"btn btn--icon-left btn--email",attrs:{href:"mailto:"+t.item.contact.email}},[n("i",{staticClass:"fas fa-paper-plane"}),t._v("\n Email\n ")]):t._e(),t._v(" "),t.item.contact.phone?n("a",{staticClass:"btn btn--icon-left btn--phone",attrs:{href:"tel:"+t.item.contact.phone}},[n("i",{staticClass:"fas fa-phone"}),t._v("\n Telefon\n ")]):t._e(),t._v(" "),t.item.contact.menuLink?n("a",{staticClass:"btn btn--icon-left btn--menulink",attrs:{href:t.item.contact.menuLink,target:"_blank"}},[n("i",{staticClass:"fas fa-file"}),t._v("\n Ãtlap\n ")]):t._e(),t._v(" "),t.item.contact.website?n("a",{staticClass:"btn btn--icon-left btn--website",attrs:{href:t.item.contact.website,target:"_blank"}},[n("i",{staticClass:"far fa-globe"}),t._v("\n Website\n ")]):t._e()])]):t._e(),t._v(" "),t.item.spots&&t.item.spots.length>0?n("div",{staticClass:"infowindow__data"},[n("h4",[t._v("ÃtvevÅhelyek ("+t._s(t.item.spots.length)+"):")]),t._v(" "),t._l(t.item.spots,(function(e){return n("div",{staticClass:"spot"},[n("strong",{staticClass:"spot__title"},[t._v("\n "+t._s(e.title)+"\n ")]),t._v(" "),e.contact.addressText?n("span",{staticClass:"spot__address"},[t._v("\n "+t._s(e.contact.addressText)+"\n ")]):t._e(),t._v(" "),n("div",{staticClass:"spot__contacts"},[e.contact.facebook?n("a",{staticClass:"btn btn--icon-left btn--facebook",attrs:{href:e.contact.facebook,target:"_blank"}},[n("i",{staticClass:"fab fa-facebook-f"}),t._v("\n Facebook\n ")]):t._e(),t._v(" "),e.contact.email?n("a",{staticClass:"btn btn--icon-left btn--email",attrs:{href:"mailto:"+e.contact.email}},[n("i",{staticClass:"fas fa-paper-plane"}),t._v("\n Email\n ")]):t._e(),t._v(" "),e.contact.phone?n("a",{staticClass:"btn btn--icon-left btn--phone",attrs:{href:"tel:"+e.contact.phone}},[n("i",{staticClass:"fas fa-phone"}),t._v("\n Telefon\n ")]):t._e(),t._v(" "),e.contact.menuLink?n("a",{staticClass:"btn btn--icon-left btn--menulink",attrs:{href:e.contact.menuLink,target:"_blank"}},[n("i",{staticClass:"fas fa-file"}),t._v("\n Ãtlap\n ")]):t._e(),t._v(" "),e.contact.website?n("a",{staticClass:"btn btn--icon-left btn--website",attrs:{href:e.contact.website,target:"_blank"}},[n("i",{staticClass:"far fa-globe"}),t._v("\n Website\n ")]):t._e()])])}))],2):t._e()]),t._v(" "),"places"===t.schema?n("div",{staticClass:"infowindow__footer"},[n("nuxt-link",{staticClass:"btn btn--primary btn--icon-right btn--next float-left",attrs:{to:t.link}},[t._v("\n Adatlap\n "),n("i",{staticClass:"fa fa-long-arrow-right"})])],1):t._e()])}),[],!1,null,"697bbf26",null);e.a=component.exports},743:function(t,e,n){"use strict";var r={name:"SectionHeader",props:{title:{type:String,required:!0},subtitle:{type:String,required:!1},bordered:{type:Boolean,required:!1,default:!0}},data:function(){return{}}},o=n(4),component=Object(o.a)(r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"section__header",class:{"no-border":!t.bordered}},[n("div",{staticClass:"container"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12"},[n("h2",{staticClass:"section__title m-b-0 text-center"},[t._v("\n "+t._s(t.title)+"\n ")])])]),t._v(" "),t.subtitle?n("div",{staticClass:"row"},[n("div",{staticClass:"col-12"},[n("div",{staticClass:"section__subtitle m-t-1 text-center"},[t._v("\n "+t._s(t.subtitle)+"\n ")])])]):t._e()])])}),[],!1,null,"597ce856",null);e.a=component.exports},760:function(t,e,n){"use strict";n(64),n(63),n(65),n(28),n(54),n(55),n(18),n(14),n(12),n(10),n(15);var r=n(3),o=n(6),c=n(7),l=n(697),d=n.n(l),f=n(696);function m(t){if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(t=function(t,e){if(!t)return;if("string"==typeof t)return v(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v(t,e)}(t))){var i=0,e=function(){};return{s:e,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:e}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,r,o=!0,c=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return o=t.done,t},e:function(t){c=!0,r=t},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw r}}}}function v(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function h(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}var _={props:{data:{type:Array,required:!0},schema:{type:String,required:!1,default:null}},name:"MapGeneral",components:{InfoPanel:f.a,GmapCluster:d.a},computed:function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};
1i%2?h(Object(source),!0).forEach((function(e){Object(r.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):h(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({},Object(c.d)(["mapStyles"])),data:function(){return{loaded:!1,mapZoom:7,mapCenter:{lat:47.49801,lng:19.03991},selectedItem:{},infoWinOpen:!1}},methods:{load:function(t){this.loaded=t},markerLatLng:function(t,e){return{lat:t,lng:e}},selectSpot:function(t){this.selectedItem=t,t&&t.contact&&t.contact.location&&this.$refs.gmap.panTo(this.markerLatLng(t.contact.location.lat,t.contact.location.lng))},closeInfo:function(){this.infoWinOpen=!1,this.selectedItem={}},toggleInfoWindow:function(t){var e=this;if(this.selectedItem=t,this.$refs.gmap.panTo(this.markerLatLng(t.contact.location.lat,t.contact.location.lng)),this.infoTitle=t.title,t.featuredImage)o.c.storage.getURL({fileId:t.featuredImage[0],size:{path:"375_9999_100"}}).then((function(t){return e.infoThumb=t}));this.infoAddress=t.contact.addressText||null,this.infoSlug=t.slug,this.infoWinOpen=!0},generateBounds:function(){var t,e=new google.maps.LatLngBounds,n=m(this.data);try{for(n.s();!(t=n.n()).done;){var r=t.value;r.contact&&r.contact.location&&e.extend(this.markerLatLng(r.contact.location.lat,r.contact.location.lng))}}catch(t){n.e(t)}finally{n.f()}this.$refs.gmap.$mapObject.fitBounds(e)},removeInfoWindow:function(){this.infoWinOpen=!1,this.infoSlug="",this.infoTitle="",this.infoAddress=""}}},C=n(4),component=Object(C.a)(_,(function(){var t=this,e=t.$createElement,n=t._self._c||e;
1return n("div",{staticClass:"maps",class:{"is-loading":!t.loaded}},[n("client-only",[n("GmapMap",{ref:"gmap",attrs:{zoom:t.mapZoom,center:t.mapCenter,options:{styles:t.mapStyles,disableDefaultUI:!0,mapTypeControl:!1,fullscreenControl:!1,streetViewControl:!1},"map-type-id":"roadmap"},on:{tilesloaded:function(e){return t.load(!0)}}},[n("GmapCluster",t._l(t.data,(function(e){return e.contact&&e.contact.location&&e.contact.location.lat&&e.contact.location.lng?n("GmapMarker",{key:e.id,attrs:{animation:e.id===t.selectedItem.id?1:null,position:t.markerLatLng(e.contact.location.lat,e.contact.location.lng),clickable:!0,draggable:!1,icon:e.id===t.selectedItem.id?{url:"/svg/pin-selected.svg",scaledSize:{width:24,height:36}}:{url:"/svg/pin-default.svg",scaledSize:{width:24,height:36}}},on:{click:function(n){return t.toggleInfoWindow(e)}}}):t._e()})),1)],1),t._v(" "),n("InfoPanel",{attrs:{item:t.selectedItem,active:t.infoWinOpen,schema:t.schema,inWindow:""},on:{close:t.closeInfo,selectSpot:t.selectSpot}})],1),t._v(" "),n("div",{staticClass:"maps__loader"})],1)}),[],!1,null,"cc4fef82",null);e.a=component.exports},775:function(t,e,n){"use strict";n.r(e);n(18),n(14),n(15),n(93),n(66),n(12),n(10),n(139),n(37),n(38);var r=n(3),o=(n(768),n(39),n(13)),c=n(92),l=n(743),d={name:"Notice",props:{type:{type:String,required:!1,default:"general"}},data:function(){return{}},methods:{close:function(){this.$emit("close")}}},f=n(4),m=Object(f.a)(d,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:"notice--"+t.type},[n("div",{staticClass:"notice__icon"},[t._t("icon")],2),t._v(" "),n("div",{staticClass:"notice__content"},[n("h3",{staticClass:"notice__title"},[t._t("title")],2),t._v(" "),n("div",{staticClass:"notice__text"},[t._t("text")],2)]),t._v(" "),n("div",{staticClass:"notice__close",on:{click:function(e){return t.close()}}},[n("i",{staticClass:"fas fa-times"})])])}),[],!1,null,null,null).exports,v=(n(64),n(63),n(65),n(28),n(54),n(55),n(6)),h=n(7),_=n(8),C=n.n(_),y=n(703),w=n(696),k=n(697),O=n.n(k);function j(t){if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(t=function(t,e){if(!t)return;if("string"==typeof t)return x(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return x(t,e)}(t))){var i=0,e=function(){};return{s:e,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:e}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,r,o=!0,c=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return o=t.done,t},e:function(t){c=!0,r=t},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw r}}}}function x(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function S(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function P(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?S(Object(source),!0).forEach((function(e){Object(r.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):S(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var I={name:"PlacesMap",components:{VueFuse:y.a,InfoPanel:w.a,GmapCluster:O.a},data:function(){return{mapZoom:7,mapCenter:{lat:47.49801,lng:19.03991},mapMarkers:null,infoWinOpen:!1,searchKeys:["title","slug","intro","contact.location.address"],searchList:[],searchResults:[],searchInput:"",selectedPlace:{},filterChars:[]}},computed:P({},Object(h.c)(["allPlaces"]),{},Object(h.d)(["mapStyles"]),{hasInfoPanel:function(){return this.infoWinOpen},filteredItems:function(){var t=this;return this.filterChars.length?this.allPlaces.filter((function(s){return s.tulajdonsagok?s.tulajdonsagok.some((function(e){return t.filterChars.includes(e)})):null})):this.allPlaces}}),watch:{searchResults:function(){this.$refs.gmap.$mapObject?this.searchResults.length>0&&(this.generateBounds(),this.$refs.gmap.$mapObject.getZoom()>18&&this.$refs.gmap.$mapObject.setZoom(18)):this.searchResults=this.filteredItems}},methods:P({},Object(h.b)(["getAllPlaces","getAllChars"]),{markerLatLng:function(t,e){return{lat:t,lng:e}},closeInfo:function(){this.infoWinOpen=!1,this.selectedPlace={}},hoverPlace:function(t){this.hoveredPlace=t},clearHoverPlace:function(){this.hoveredPlace=""},toggleInfoWindow:function(t,e){this.selectedPlace=t,this.infoWindowPos=this.markerLatLng(t.contact.location.lat,t.contact.location.lng),this.$refs.gmap.panTo(this.markerLatLng(t.contact.location.lat,t.contact.location.lng)),this.infoTitle=t.title,this.infoAddress=t.contact.addressText||null,this.infoSlug=t.slug,this.infoWinOpen=!0},generateBounds:function(){var t,e=new google.maps.LatLngBounds,n=j(this.searchResults);try{for(n.s();!(t=n.n()).done;){var r=t.value;r.contact&&r.contact.location&&e.extend(this.markerLatLng(r.contact.location.lat,r.contact.location.lng))}}catch(t){n.e(t)}finally{n.f()}this.$refs.gmap.$mapObject.fitBounds(e)},removeInfoWindow:function(){this.infoWinOpen=!1,this.infoSlug="",this.infoTitle="",this.infoAddress=""},toggleFilters:function(){this.filtersVisible=!this.filtersVisible},hideFilters:function(){this.filtersVisible=!1},clearFilters:function(){this.filterChars=[],delete this.$route.query.chars},toggleList:function(){this.listVisible=!this.listVisible},hideList:function(){this.listVisible=!1}}),mounted:function(){var t=this;0===this.allPlaces.length&&this.getAllPlaces(),this.$on("searchResults",(function(e){t.searchResults=e})),this.$refs.gmap&&this.filteredItems&&this.filteredItems.length>0&&this.$refs.gmap.$mapPromise.then((function(map){n(141);t.generateBounds(),console.log(map.markers)}))}},$=Object(f.a)(I,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"home__map",class:{"has-panel":t.hasInfoPanel}},[n("VueFuse",{attrs:{inWindow:"",placeholder:"pl. név, város, stb.","event-name":"searchResults",search:t.searchInput,tokenize:!0,threshold:.25,list:t.filteredItems,keys:["title","intro","contact.location.address","slug"]}}),t._v(" "),n("client-only",[n("GmapMap",{ref:"gmap",attrs:{zoom:t.mapZo
1om,center:t.mapCenter,options:{styles:t.mapStyles,disableDefaultUI:!0,mapTypeControl:!1,fullscreenControl:!1,streetViewControl:!1},"map-type-id":"roadmap"}},[n("GmapCluster",t._l(t.searchResults,(function(e,r){return e.contact&&e.contact.location?n("GmapMarker",{key:r,attrs:{animation:e.id===t.selectedPlace.id?1:null,position:t.markerLatLng(e.contact.location.lat,e.contact.location.lng),clickable:!0,draggable:!1,icon:e.id===t.selectedPlace.id?{url:"/svg/pin-selected.svg",scaledSize:{width:24,height:36}}:{url:"/svg/pin-default.svg",scaledSize:{width:24,height:36}}},on:{click:function(n){return t.toggleInfoWindow(e,r)}}}):t._e()})),1)],1)],1),t._v(" "),n("InfoPanel",{attrs:{item:t.selectedPlace,active:t.infoWinOpen,schema:"places",inWindow:""},on:{close:t.closeInfo}})],1)}),[],!1,null,"53ccc512",null).exports,R=n(194),A=n(195),T=n(567),L=n.n(T),z=(n(569),{name:"CardBlog",props:{item:{type:Object,required:!0}},data:function(){return{moment:L.a,image:null}},computed:{thisMonth:function(){return L()(new Date(this.item.date)).format("MM")},year:function(){if(this.item&&this.item.date)return new Date(this.item.date).getFullYear()},monthDay:function(){if(this.item&&this.item.date)return new Date(this.item.date).getFullYear()}},mounted:function(){var t=this;this.item&&this.item.featured_media&&this.$axios.$get("https://blog.gasztrohos.hu/wp-json/wp/v2/media/".concat(this.item.featured_media)).then((function(e){t.image=e.media_details.sizes.thumbnail.source_url}))},methods:{intro:function(t){var e=t.replace(/(<([^>]+)>)/gi,"");return Object(_.truncate)(e,{length:100})}}}),E=Object(f.a)(z,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card card--blog"},[n("a",{directives:[{name:"lazy",rawName:"v-lazy:background-image",value:t.image||"/images/logo-empty.png",expression:"image || '/images/logo-empty.png'",arg:"background-image"}],staticClass:"card__cover lazy",attrs:{href:t.item.link,target:"_blank"}}),t._v(" "),n("h3",{staticClass:"card__title m-t-3 text-center"},[t._v("\n "+t._s(t.item.title.rendered)+"\n ")]),t._v(" "),t.item.excerpt.rendered?n("div",{staticClass:"card__intro p-l-1 p-r-1"},[t._v("\n "+t._s(t.intro(t.item.excerpt.rendered))+"\n ")]):t._e(),t._v(" "),n("div",{staticClass:"card__footer m-t-1"},[n("a",{staticClass:"btn btn--light btn--next",attrs:{href:t.item.link,target:"_blank"}},[t._v(" Tovább "),n("i",{staticClass:"far fa-long-arrow-right"})])])])}),[],!1,null,"15d3e80b",null).exports,N=n(707),B=n(270),D=n(760),M=(n(75),{name:"Slide",props:{active:{type:Boolean},image:{type:[String,Number]},title:{type:String},text:{type:String},link:{type:String},isPrev:{type:Boolean},isNext:{type:Boolean}},fetch:function(){var t=this;return Object(o.a)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,v.c.storage.getURL({fileId:t.image,size:{path:"1440_9999_100"}});case 2:n=e.sent,t.bg=n;case 4:case"end":return e.stop()}}),e)})))()},data:function(){return{bg:null}}}),W=Object(f.a)(M,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"slide",class:[{"is-active":t.active},{"is-prev":t.isPrev},{"is-next":t.isNext}]},[n("div",{directives:[{name:"lazy",rawName:"v-lazy:background-image",value:t.bg,expression:"bg",arg:"background-image"}],staticClass:"slide__bg lazy"}),t._v(" "),n("div",{staticClass:"slide__content"},[n("div",{staticClass:"container"},[n("div",{staticClass:"row"},[n("h3",{staticClass:"slide__title"},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),t.text?n("div",{staticClass:"slide__text"},[t._v("\n "+t._s(t.text)+"\n ")]):t._e(),t._v(" "),t.link?n("div",{staticClass:"slide__buttons"},[n("a",{staticClass:"btn btn--light btn--next",attrs:{href:t.link}},[t._v("\n Tovább\n "),n("i",{staticClass:"far fa-long-arrow-right"})])]):t._e()])])])])}),[],!1,null,"53d28eed",null).exports,F={name:"Slider",props:{slides:{type:Array,required:!0},hasDots:{type:Boolean,default:!0}},components:{Slide:W},data:function(){return{current:0,interval:null,userClicked:!1,userClickedTimeout:null,isHovering:!1}},beforeDestroy:function(){clearInterval(this.interval)},created:function(){this.autoscroll()},methods:{autoscroll:function(){var t=this;this.interval=setInterval((function(){t.userClicked?t.userClickedTimeout=setTimeout((function(){t.userClicked=!1}),5e3):t.isHovering||(t.current===t.slides.length-1?t.current=0:t.current++)}),5e3)},next:function(){var t=this;setTimeout((function(){t.userClicked=!0,clearTimeout(t.userClickedTimeout),t.current===t.slides.length-1?t.current=0:t.current++}
1),100)},prev:function(){var t=this;setTimeout((function(){t.userClicked=!0,clearTimeout(t.userClickedTimeout),0===t.current?t.current=t.slides.length-1:t.current--}),100)}}},G=Object(f.a)(F,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"slider",class:{"has-dots":t.hasDots},on:{mouseover:function(e){t.isHovering=!0},mouseleave:function(e){t.isHovering=!1}}},[n("div",{staticClass:"slider__content"},t._l(t.slides,(function(e,i){return n("Slide",{key:"slide_"+i,attrs:{active:t.current===i,isPrev:t.current>i,isNext:t.current<i,title:e.title,text:e.text,image:e.image,link:e.link}})})),1),t._v(" "),n("div",{staticClass:"slider__btn--prev",on:{click:function(e){return t.prev()}}},[n("i",{staticClass:"far fa-long-arrow-left"})]),t._v(" "),n("div",{staticClass:"slider__btn--next",on:{click:function(e){return t.next()}}},[n("i",{staticClass:"far fa-long-arrow-right"})]),t._v(" "),n("div",{staticClass:"slider__dots"},t._l(this.slides,(function(e,i){return n("span",{key:"dot_"+i,class:{"is-active":t.current===i},on:{click:function(e){t.current=i}}})})),0)])}),[],!1,null,"1a959e5e",null).exports;n(168);function H(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function V(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?H(Object(source),!0).forEach((function(e){Object(r.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):H(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var K={mixins:[n(199).a],name:"HomePage",components:{SectionHeader:l.a,Notice:m,Algolia:B.a,CardHely:R.a,CardRecept:A.a,CardBlog:E,CardCampaign:N.a,PlacesMap:$,MapGeneral:D.a,Slider:G},directives:{onClickaway:c.directive},asyncData:function(t){return Object(o.a)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.$axios,e.next=3,v.c.content.get({schemaKey:"home",populate:[{field:"slider",populate:["image"]},{field:"featuredPlaces",populate:["featuredImage","logo"]}]});case 3:return n=e.sent,e.abrupt("return",{slides:n.slider.map((function(t){return{title:t.title,text:t.text,link:t.link,image:t.image?t.image[0]:"/img/bg-cardboard.jpg"}})),featuredPlaces:n.featuredPlaces.filter((function(t){var e;return(null===(e=t.featuredImage)||void 0===e?void 0:e.length)>0})).filter((function(t){var e;return(null===(e=t.logo)||void 0===e?void 0:e.length)>0})).map((function(t){return V({},t,{featuredImage:[t.featuredImage[0].id],logo:[t.logo[0].id]})}))});case 5:case"end":return e.stop()}}),e)})))()},data:function(){return{blogsLoaded:!1,recipesLoaded:!1,teamLoaded:!1,blogs:[],showStartNotice:!1,tab:"allPlaces",slides:[],places:[],seasonalRecipes:[],events:[],team:[],featuredPlaces:[],mapNav:!1,nav:[{id:"all",label:"Ãsszes"}],mapFull:!1,search:"",searchResults:[]}},head:{title:"FÅoldal",meta:[{hid:"description",name:"description",content:"HÅsködj velünk, egyél jót!"}]},computed:V({},Object(h.c)(["user","account","profile","allPlaces","allShops","allBiopiac","allGardens","allCommunities"]),{season:function(){var t=(new Date).getMonth()+1;return[3,4,5].includes(t)?"spring":[6,7,8].includes(t)?"summer":[9,10,11].includes(t)?"autumn":[1,2,12].includes(t)?"winter":void 0},randomPlaces:function(){return Object(_.shuffle)(this.allPlaces).slice(0,6)},today:function(){var t=(new Date).toISOString();return t},startNoticeVisible:function(){return!!this.profile&&!this.profile.startNoticeSeen},markers:function(){return"all"===this.tab?Object(_.union)(this.allPlaces,this.allShops,this.allBiopiac,this.allGardens,this.allCommunities):this["".concat(this.tab)]},schema:function(){switch(this.tab){case"allShops":return"shops";case"allPlaces":return"places";case"allBiopiac":return"biomarkets";case"allGardens":return"gardens";case"allCommunities":return"communities"}},results:function(){return this.searchResults.length?this.searchResults:this.markers}}),watch:{results:function(t){this.$refs.map&&(this.$refs.map.$mapObject&&t.length>0&&(this.$refs.map.generateBounds(),this.$refs.map.$mapObject.getZoom()>18&&this.$refs.map.$mapObject.setZoom(18)))}},methods:V({},Object(h.b)(["refreshProfile","loading","setUser","getAllPlaces","getAllShops","getAllBiopiac","getAllGardens","getAllCommunities"]),{observeBlog:function(t,e){t&&this.getBlogs()},getBlogs:function(){var t=this;return Object(o.a)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$axios.$get("https://blog.gasztrohos.hu/wp-json/wp/v2/posts?per_page=4");case 2:n=e.sent,e.prev=3,JSON.parse(n),e.next=10;break;case 7:return e.prev=7,e.t0=e.catch(3),e.abrupt("return",!1);case 10:t.blogs=n,t.blogsLoaded=!0;case 12:case"end":return e.stop()}}),e,null,[[3,7]])})))()},observeMap:function(t,e){t&&this.getAllPlaces()},observeRecipes:function(t,e){var n=this;t&&this.$axios.$get("/flamelink/environments/production/content/recept/en-US.json?print=pretty?auth=".concat("TNqesuYv0798TuR0m9KmIR9ygR2IM34vC6oPLhfi",'&orderBy="season"')).then((function(t){var e=Object(_.shuffle)(Object.values(t).filter((function(t){return t.showOnHomePage})).slice(0,6)),r=6-e.length;if(r>0){var o=Object(_.shuffle)(Object.values(t).filter((function(t){return t.published})).filter((function(t){return!e.includes(t.id)})).filter((function(t){return n.calculateSeasonabilityScore(t)>0})).slice(0,r));e=C.a.flatten([e,o])}n.seasonalRecipes=e,n.recipesLoaded=!0}
1)).catch((function(t){}))},observeTeam:function(t,e){var n=this;return Object(o.a)(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,v.c.content.getByField({schemaKey:"onkentesek",populate:!0});case 2:e=t.sent,n.team=Object.values(e).filter((function(t){return t.teamMemberType.includes("EMPLOYEE")})),n.teamLoaded=!0;case 5:case"end":return t.stop()}}),t)})))()},observeEvents:function(t,e){var n=this;t&&this.$axios.$get("/flamelink/environments/production/content/campaign/en-US.json?print=pretty&auth=".concat("TNqesuYv0798TuR0m9KmIR9ygR2IM34vC6oPLhfi",'&orderBy="end"&startAt="').concat(this.today,'"')).then((function(t){n.events=Object.values(t)})).catch((function(t){}))},slugify:function(t){var e,map=(e={"-":" "},Object(r.a)(e,"-","_"),Object(r.a)(e,"a","á|à |ã|â|Ã|Ã|Ã|Ã"),Object(r.a)(e,"e","é|è|ê|Ã|Ã|Ã"),Object(r.a)(e,"i","Ã|ì|î|Ã|Ã|Ã"),Object(r.a)(e,"o","ö|Å|ó|ò|ô|õ|Ã|Ã|Ã|Ã"),Object(r.a)(e,"u","ü|ű|ú|ù|û|ü|Ã|Ã|Ã|Ã"),Object(r.a)(e,"c","ç|Ã"),Object(r.a)(e,"n","ñ|Ã"),e);for(var pattern in t=t?t.toLowerCase():"",map)t=t.replace(new RegExp(map[pattern],"g"),pattern);return t},count:function(t){if("all"!==t)return this[t].length},setTab:function(t){this.tab=t},toggleMap:function(){this.mapFull=!this.mapFull},toggleMapNav:function(){this.mapNav=!this.mapNav},mapNavAway:function(){this.mapNav&&this.hideMapNav()},hideMapNav:function(){this.mapNav=!1},closeStartNotice:function(){this.profile&&v.c.content.update({schemaKey:"profile",entryId:this.profile.uid,data:{startNoticeSeen:!0}}).then((function(){}))}}),mounted:function(){var t=this;this.allShops.length||this.getAllShops(),this.allBiopiac.length||this.getAllBiopiac(),this.allGardens.length||this.getAllGardens(),this.allCommunities.length||this.getAllCommunities(),this.$on("searchResults",(function(e){t.searchResults=e}))}},U=Object(f.a)(K,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("main",{staticClass:"home"},[n("section",{staticClass:"home__slider"},[n("div",{staticClass:"container wide p-0"},[n("div",{staticClass:"row m-0"},[n("div",{staticClass:"col-12 p-0"},[n("a",{attrs:{href:"/atlathatosag"}},[n("img",{staticClass:"home__easz-logo top-logo",attrs:{src:"/images/easz-logo.png",alt:"Etikus AdománygyűjtÅ Szervezet"}})]),t._v(" "),n("Slider",{attrs:{slides:t.slides}})],1)])])]),t._v(" "),n("section",{directives:[{name:"observe-visibility",rawName:"v-observe-visibility",value:{callback:t.observeBlog,once:!0},expression:"{\n callback: observeBlog,\n once: true\n }"}],staticClass:"home__blog m-t-4"},[t.blogsLoaded?n("div",{staticClass:"container"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12"},[n("SectionHeader",{attrs:{title:"GasztrohÅs Blog"}})],1)]),t._v(" "),n("div",{staticClass:"row"},t._l(t.blogs,(function(t){return n("div",{key:t.id,staticClass:"col-md-3 col-sm-6 col-6 card__containe m-b-1"},[n("CardBlog",{key:t.id,attrs:{item:t}})],1)})),0),t._v(" "),t._m(0)]):t._e()]),t._v(" "),n("section",{staticClass:"page__content"},[n("div",{staticClass:"container"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12"},[n("SectionHeader",{attrs:{title:"Szolgáltatásaink",bordered:!1}})],1)]),t._v(" "),n("div",{staticClass:"row equal justify-center m-b-2"},[n("div",{staticClass:"col-lg-3 col-md-3 col-sm-6 col-12 m-b-1"},[n("nuxt-link",{staticClass:"card card--home",attrs:{to:"/gasztrohos-probatetel"}},[n("div",{staticClass:"card__image"},[n("img",{attrs:{src:"/images/services/csapatepito.png",alt:""}})]),t._v(" "),n("h3",{staticClass:"card__title"},[t._v("PróbatÃtel csapatépÃtÅ")])])],1),t._v(" "),n("div",{staticClass:"col-lg-3 col-md-3 col-sm-6 col-12 m-b-1"},[n("nuxt-link",{staticClass:"card card--home",attrs:{to:"/kitelepulesek"}},[n("div",{staticClass:"card__image"},[n("img",{attrs:{src:"/images/services/eloadasok.png",alt:""}})]),t._v(" "),n("h3",{staticClass:"card__title"},[t._v("ElÅadások, kitelepülések")])])],1),t._v(" "),n("div",{staticClass:"col-lg-3 col-md-3 col-sm-6 col-12 m-b-1"},[n("nuxt-link",{staticClass:"card card--home",attrs:{to:"/palantak"}},[n("div",{staticClass:"card__image"},[n("img",{attrs:{src:"/images/services/palantak.png",alt:""}})]),t._v(" "),n("h3",{staticClass:"card__title"},[t._v("Szemléletformáló program ovisoknak")])])],1),t._v(" "),n("div",{staticClass:"col-lg-3 col-md-3 col-sm-6 col-12 m-b-1"},[n("nuxt-link",{staticClass:"card card--home",attrs:{to:"/rendezveny-tanacsadas"}},[n("div",{staticClass:"card__image"},[n("img",{attrs:{src:"/images/services/catering-tanacsadas.png",alt:""}})]),t._v(" "),n("h3",{staticClass:"card__title"},[t._v("Zöld rendezvény tanácsadás")])])],1)]),t._v(" "),t._m(1)])]),t._v(" "),n("div",{staticClass:"maps__count"},[n("strong",[t._v(t._s(t.searchResults.length))]),t._v(" találat megjelenÃtve\n ")]),t._v(" "),t._v("\n --\x3e\n "),n("section",{staticClass:"page__content"},[n("div",{staticClass:"container"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12"},[n("SectionHeader",{attrs:{title:"Fenntartható receptek",subtitle:"Ãnycsiklandozó receptek helyi, szezonális alapanyagokból"}})],1)]),t._v(" "),n("div",{directives:[{name:"observe-visibility",rawName:"v-observe-visibility",value:{callback:t.observeRecipes,once:!0},expression:"{ callback: observeRecipes, once: true }"}],staticClass:"row equal justify-center"},t._l(t.seasonalRecipes,(function(t){return n("div",{key:t.id,staticClass:"col-6 col-sm-4 col-md-3 col-lg-2 card__container"}
1,[n("CardRecept",{attrs:{item:t,inFav:""}})],1)})),0),t._v(" "),n("div",{staticClass:"row m-t-1 m-b-2"},[n("div",{staticClass:"col-12 text-center"},[n("nuxt-link",{staticClass:"btn btn--light btn--next inline-block w-a",attrs:{to:"/receptek"}},[t._v("\n Még több recept "),n("i",{staticClass:"far fa-long-arrow-right"})])],1)]),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-12"},[n("SectionHeader",{attrs:{title:"Csapatunk",subtitle:"Klikkelj, hogy megtudd, kit rejt a maszk!"}})],1)]),t._v(" "),n("div",{directives:[{name:"observe-visibility",rawName:"v-observe-visibility",value:{callback:t.observeTeam,once:!0},expression:"{ callback: observeTeam, once: true }"}],staticClass:"row list"},t._l(t.team,(function(p){return n("div",{key:p.id,staticClass:"col-lg-2 col-md-3 col-sm-4 col-6 m-b-1"},[n("div",{staticClass:"card card--onkentes"},[n("nuxt-link",{staticClass:"card__image",attrs:{to:"/csapat/"+p.slug}},[n("img",{directives:[{name:"lazy",rawName:"v-lazy",value:p.maskImage[0].url,expression:"p.maskImage[0].url"}],attrs:{alt:""}}),t._v(" "),n("img",{directives:[{name:"lazy",rawName:"v-lazy",value:p.imageNormal[0].url,expression:"p.imageNormal[0].url"}],staticClass:"hover",attrs:{alt:""}})]),t._v(" "),n("div",{staticClass:"card__title"},[t._v("\n "+t._s(p.name)+"\n ")]),t._v(" "),n("div",{staticClass:"card__subtitle"},[n("strong",[t._v("SzupererÅ: ")]),t._v("\n "+t._s(p.superpower)+"\n ")])],1)])})),0),t._v(" "),n("div",{staticClass:"row m-t-1"},[n("div",{staticClass:"col-12 text-center"},[n("nuxt-link",{staticClass:"btn btn--light btn--next inline-block w-a",attrs:{to:"/csapat"}},[t._v("\n Tovább az önkéntesekhez "),n("i",{staticClass:"far fa-long-arrow-right"})])],1)])])])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"row m-t-1 m-b-2"},[e("div",{staticClass:"col-12 text-center"},[e("a",{staticClass:"btn btn--light btn--next inline-block w-a",attrs:{href:"https://blog.gasztrohos.hu",target:"_blank"}},[this._v("\n Olvass tovább a blogon! "),e("i",{staticClass:"far fa-long-arrow-right"})])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"row m-t-2 m-b-4"},[e("div",{staticClass:"col-md-3"}),this._v(" "),e("div",{staticClass:"col-sm-6 col-12"},[e("h5",{staticClass:"w-100 text-center"},[this._v("TOVAÌBBI TEVEÌKENYSEÌGEINK A FELSOÌ MENUÌSORBAN MEGTALAÌLHATOÌAK")])])])}],!1,null,null,null);e.default=U.exports}}]);
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.