(window.webpackJsonp=window.webpackJsonp||[]).push([[67],{451:function(t,e,n){"use strict";var r={props:{post:{type:Object,required:!0}},computed:{hasOptions:function(){return this.post&&this.post.options&&(this.hasPhotogallery||this.hasVideo||this.hasPodcast)},hasPhotogallery:function(){return this.post.options.has_photogallery},hasVideo:function(){return this.post.options.has_video},hasPodcast:function(){return this.post.options.has_podcast}}},o=n(4),component=Object(o.a)(r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.hasOptions?n("span",{staticClass:"articleoptions articleoptions-text"},[t.hasPhotogallery?n("span",{staticClass:"articleoptions-item text-photo",attrs:{title:t.__("Obsahuje fotogalériu")}}):t._e(),t._v(" "),t.hasVideo?n("span",{staticClass:"articleoptions-item text-video",attrs:{title:t.__("Obsahuje video")}}):t._e(),t._v(" "),t.hasPodcast?n("span",{staticClass:"articleoptions-item text-audio",attrs:{title:t.__("Obsahuje podcast")}}):t._e()]):t._e()}),[],!1,null,null,null);e.a=component.exports},452:function(t,e,n){"use strict";n(96);var r={props:{length:{type:Number,default:10},height:{type:Number,default:100},margin:{type:String,default:null}}},o=n(4),component=Object(o.a)(r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("client-only",[n("div",{staticClass:"articlelist"},t._l(new Array(t.length),(function(e){return n("div",{key:e,staticClass:"articlelist-item preloader",staticStyle:{width:"100%"},style:{height:t.height+"px",marginBottom:t.margin}})})),0)])}),[],!1,null,null,null);e.a=component.exports},453:function(t,e,n){"use strict";n(96);var r={components:{ArticleTextOptions:n(451).a},props:{post:{type:Object,required:!0},index:{type:Number,default:1}}},o=n(4),component=Object(o.a)(r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("article",{staticClass:"media is-default is-style-6"},[t.post.thumbnail&&t.post.thumbnail.featured_small?n("figure",{staticClass:"media-left"},[n("app-link",{staticClass:"media-image image",attrs:{to:t.$linkPost(t.post)}},[n("thumbnail",{attrs:{thumbnail:t.post.thumbnail,size:"featured_small"}}),t._v(" "),n("article-text-options",{staticClass:"articleoptions-image-text",attrs:{post:t.post}})],1)],1):t._e(),t._v(" "),n("header",{staticClass:"media-content"},[n("h2",{staticClass:"media-title title"},[n("time",{staticClass:"media-datetime append is-before is-primary",attrs:{datetime:t.$datetime(t.post.post_date)}},[t._v(t._s(t.$postTime(t.post.post_date)))]),t._v(" "),n("app-link",{staticClass:"link media-link",attrs:{to:t.$linkPost(t.post)}},[t._v("\n        "+t._s(t.post.post_title))])],1)])])}),[],!1,null,null,null);e.a=component.exports},455:function(t,e,n){"use strict";var r,o=n(97),d=(n(96),n(57)),l=n(453),c=n(452),h=Object(d.b)(r||(r=Object(o.a)(["\n  query posts($where: PostWhereInput = {}, $page: Int = 1, $per_page: Int = 7) {\n    postsElastic(where: $where, per_page: $per_page, page: $page) {\n      data {\n        ID\n        post_title\n        post_name\n        post_type\n        post_date\n        options {\n          crosspromolink\n          has_photogallery\n          has_video\n          has_podcast\n        }\n      }\n    }\n  }\n"]))),m={components:{Post:l.a,Preloader:c.a},props:{where:{type:Object,default:function(){return{}}},title:{type:String,default:null},limit:{type:Number,default:3}},asyncData:function(){return{posts:null}},mounted:function(){},apollo:{posts:{query:function(){return h},update:function(data){return null==data?void 0:data.postsElastic},variables:function(){return{where:Object.assign({statusIn:["publish"],typeIn:["any"],orderBy:{field:"DATE",order:"DESC"},options:{is_hiddenarticle:!1}},this.where),per_page:this.limit}}}}},f=n(4),component=Object(f.a)(m,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"widget"},[n("h2",{staticClass:"widget-title-wrap hr"},[n("span",{staticClass:"hr-item"},[n("span",{staticClass:"widget-title title"},[t._v(t._s(t.title||t.__("Posledné príspevky")))])])]),t._v(" "),n("div",{staticClass:"widget-content"},[t.posts&&t.posts.data.length?n("div",{staticClass:"articlelist"},t._l(t.posts.data,(function(t,e){return n("div",{key:t.ID,staticClass:"articlelist-item"},[n("post",{attrs:{post:t,index:e}})],1)})),0):t.$apollo.loading?n("preloader",{attrs:{length:t.limit,height:75}}):t._e()],1)])}),[],!1,null,null,null);e.a=component.exports},461:function(t,e,n){"use strict";n(20),n(14),n(17),n(21),n(22);var r=n(8),o=n(7);function d(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 l={data:function(){return{adId:"sidebar_1",mapping:[],isActive:!1,isSizeMappingLoaded:!1,isDev:!1}},computed:function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?d(Object(source),!0).forEach((function(e){Object(r.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):d(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({},Object(o.c)({isAdsHidden:"object/isAdsHidden"})),mounted:function(){window.addEventListener("resize",this.handleResize),this.handleResize(),this.handleMappings()},destroyed:function(){window.removeEventListener("resize",this.handleResize)},methods:{handleResize:function(){this.isActive=!0},handleMappings:function(){var t=this;if(void 0===window.gptDev)if(window.addEventListener("resize",this.handleResize),this.handleResize(),void 0!==window.gptInited&&window.gptInited){this.mapping=window.googletag.sizeMapping().addSize([0,0],[]).addSize([768,0],["fluid",[1,1],[300,250],[300,300],[300,600]]).build();var e=this.$pbjsGetSizesFromSizeMap(this.mapping);e.length&&window.pbjs_AdUnits.push({code:"/".concat(this.$gptAds.networkCode,"/").concat(this.adId),mediaTypes:{banner:{sizes:e}},bids:[{bidder:"teads",params:{pageId:197705,placementId:213424}},{bidder:"adf",params:{mid:472901}},{bidder:"r2b2",params:{d:"webnoviny.sk",g:"hb",p:"300x600_1",m:0}},{bidder:"r2b2",params:{d:"sita.sk",g:"hb",p:"300x300_1",m:0}},{bidder:"r2b2",params:{d:"sita.sk",g:"hb",p:"300x600_1",m:0}}]}),this.isSizeMappingLoaded=!0}else setTimeout((function(){return t.handleMappings()}),100);else this.isDev=!0}}},c=n(4),component=Object(c.a)(l,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.isAdsHidden?t._e():n("div",{staticClass:"gpt-wrap is-sidebar1"},[t.isActive&&t.isSizeMappingLoaded||t.isDev?n("gpt-ad",{attrs:{id:t.adId,size:[300,300],"size-mapping":t.mapping,"ad-unit":t.adId}}):t._e()],1)}),[],!1,null,null,null);e.a=component.exports},462:function(t,e,n){"use strict";var r={data:function(){return{adId:"sidebar_2",mapping:[],isActive:!1,isSizeMappingLoaded:!1,isDev:!1}},mounted:function(){window.addEventListener("resize",this.handleResize),this.handleResize(),this.handleMappings()},destroyed:function(){window.removeEventListener("resize",this.handleResize)},methods:{handleResize:function(){this.isActive=!0},handleMappings:function(){var t=this;if(void 0===window.gptDev)if(window.addEventListener("resize",this.handleResize),this.handleResize(),void 0!==window.gptInited&&window.gptInited){this.mapping=window.googletag.sizeMapping().addSize([0,0],[]).addSize([768,0],["fluid",[1,1],[300,250],[300,300],[300,600]]).build();var e=this.$pbjsGetSizesFromSizeMap(this.mapping);e.length&&window.pbjs_AdUnits.push({code:"/".concat(this.$gptAds.networkCode,"/").concat(this.adId),mediaTypes:{banner:{sizes:e}},bids:[{bidder:"teads",params:{pageId:197705,placementId:213424}},{bidder:"adf",params:{mid:472902}},{bidder:"r2b2",params:{d:"webnoviny.sk",g:"hb",p:"300x600_2",m:0}}]}),this.isSizeMappingLoaded=!0}else setTimeout((function(){return t.handleMappings()}),100);else this.isDev=!0}}},o=n(4),component=Object(o.a)(r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.isActive&&t.isSizeMappingLoaded||t.isDev?n("gpt-ad",{attrs:{id:t.adId,size:[300,600],"size-mapping":t.mapping,"ad-unit":t.adId}}):t._e()}),[],!1,null,null,null);e.a=component.exports},516:function(t,e,n){t.exports=n.p+"img/aquacity-logo.f77a9fd.svg"},709:function(t,e,n){"use strict";n.r(e);var r=[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"widget"},[r("div",{staticClass:"widget-content"},[r("div",{staticClass:"partners is-center"},[r("h2",{staticClass:"partners-title"},[t._v("HLAVNÝ PARTNER")]),t._v(" "),r("div",{staticClass:"partners-content"},[r("a",{staticClass:"partners-link",attrs:{href:"https://aquacity.sk/",target:"_blank",rel:"noopener noreferrer"}},[r("img",{staticClass:"partners-image",staticStyle:{"max-height":"70px","max-width":"none"},attrs:{src:n(516),alt:"Aquacity Poprad"}})])])])])])}],o=(n(20),n(14),n(17),n(21),n(22),n(8)),d=n(7),l=n(455),c=n(461),h=n(462);function m(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 f={components:{LatestArticles:l.a,AdSidebar1:c.a,AdSidebar2:h.a},computed:function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?m(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):m(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({},Object(d.c)({website:"object/website"}))},v=n(4),component=Object(v.a)(f,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"main-sidebar"},[t._m(0),t._v(" "),n("ad-sidebar1"),t._v(" "),n("latest-articles",{attrs:{where:{typeIn:[t.website]}}}),t._v(" "),n("ad-sidebar2")],1)}),r,!1,null,null,null);e.default=component.exports}}]);