(window.webpackJsonp=window.webpackJsonp||[]).push([[69],{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},454: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-style-2"},[n("header",{staticClass:"media-content"},[n("h2",{staticClass:"media-title title",attrs:{"data-appendtextbefore":t.index+1}},[n("app-link",{staticClass:"link media-link",attrs:{to:t.$linkPost(t.post)}},[n("article-text-options",{attrs:{post:t.post}}),t._v(t._s(t.post.post_title)+"\n      ")],1)],1)])])}),[],!1,null,null,null);e.a=component.exports},456:function(t,e,n){"use strict";var r,o=n(97),c=(n(96),n(57)),l=n(454),d=n(452),h=Object(c.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"]))),v={components:{Post:l.a,Preloader:d.a},props:{after:{type:String,required:!0},where:{type:Object,default:function(){return{}}},limit:{type:Number,default:10}},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:["blog","post","vskolstve","nasadoprava","nasvidiek","venergetike","vofinanciach","vpriemysle","vtechnologiach","nasaveda","vzdravotnictve","vrealitach","vpotravinarstve","autolike","cestujsi","sitaklima"],orderBy:{field:"VIEWS",order:"DESC"},dateQuery:{after:this.after},options:{is_hiddenarticle:!1}},this.where),per_page:this.limit}}}}},f=n(4),component=Object(f.a)(v,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return 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 c(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?c(Object(source),!0).forEach((function(e){Object(r.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):c(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}}},d=n(4),component=Object(d.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},470:function(t,e,n){"use strict";n(96);var r,o=n(97),c=n(57),l=n(454),d=n(452),h=Object(c.b)(r||(r=Object(o.a)(['\n  query posts(\n    $post_type: [String] = ["any"]\n    $post_status: [PostStatusEnum] = [publish, future]\n    $order_by_field: PostOrderByFieldEnum = VIEWS\n    $order_by_order: OrderByOrderEnum = DESC\n    $date_after: String = "2000-01-01 00:00:00"\n    $page: Int = 1\n    $per_page: Int = 10\n  ) {\n    postsElastic(\n      where: {\n        statusIn: $post_status\n        typeIn: $post_type\n        orderBy: { field: $order_by_field, order: $order_by_order }\n        dateQuery: { after: $date_after }\n        taxonomyNotIn: { taxonomy: category, ID: 9 } # lebo tam nesmu byt zaujimavosti\n      }\n      per_page: $per_page\n      page: $page\n    ) {\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']))),v={components:{Post:l.a,Preloader:d.a},props:{after:{type:String,required:!0},limit:{type:Number,default:10}},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{post_type:["blog","post","vskolstve","nasadoprava","nasvidiek","venergetike","vofinanciach","vpriemysle","vtechnologiach","nasaveda","vzdravotnictve","vrealitach","vpotravinarstve","autolike","cestujsi","sitaklima"],post_status:["publish"],per_page:this.limit,date_after:this.after}}}}},f=n(4),_={components:{TabContent:Object(f.a)(v,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return 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:10,height:75}}):t._e()],1)}),[],!1,null,null,null).exports},props:{limit:{type:Number,default:10}},data:function(){return{activeId:1}},computed:{},methods:{hoursBefore:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:24;return this.$dayjs().subtract(t,"hours").startOf("hour").format()},setActive:function(t){this.activeId=t},isActive:function(t){return this.activeId===t},activeClass:function(t){return this.isActive(t)?"piped-link is-active":"piped-link"}}},m=Object(f.a)(_,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"widget"},[n("div",{staticClass:"widget-title-wrap hr"},[n("div",{staticClass:"hr-item"},[n("h2",{staticClass:"widget-title title"},[t._v(t._s(t.__("Najčítanejšie")))])]),t._v(" "),n("div",{staticClass:"hr-right piped"},[n("span",{staticClass:"piped-item"},[n("a",{class:t.activeClass(1),on:{click:function(e){return t.setActive(1)}}},[t._v(t._s(t.__("24h")))])]),n("span",{staticClass:"piped-item"},[n("a",{class:t.activeClass(2),on:{click:function(e){return t.setActive(2)}}},[t._v(t._s(t.__("48h")))])]),n("span",{staticClass:"piped-item"},[n("a",{class:t.activeClass(3),on:{click:function(e){return t.setActive(3)}}},[t._v(t._s(t.__("72h")))])]),n("span",{staticClass:"piped-item"},[n("a",{class:t.activeClass(4),on:{click:function(e){return t.setActive(4)}}},[t._v(t._s(t.__("168h")))])])])]),t._v(" "),t.isActive(1)?n("tab-content",{attrs:{after:t.hoursBefore(24),limit:t.limit}}):t._e(),t._v(" "),t.isActive(2)?n("tab-content",{attrs:{after:t.hoursBefore(48),limit:t.limit}}):t._e(),t._v(" "),t.isActive(3)?n("tab-content",{attrs:{after:t.hoursBefore(72),limit:t.limit}}):t._e(),t._v(" "),t.isActive(4)?n("tab-content",{attrs:{after:t.hoursBefore(168),limit:t.limit}}):t._e()],1)}),[],!1,null,null,null);e.a=m.exports},642:function(t,e,n){"use strict";n.r(e);n(20),n(14),n(17),n(21),n(22);var r=n(8),o=n(7),c=n(470),l=(n(96),{components:{TabContent:n(456).a},props:{where:{type:Object,default:function(){return{}}},limit:{type:Number,default:10}},data:function(){return{activeId:1}},computed:{},methods:{hoursBefore:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:24,e=this.$dayjs().subtract(t,"hours").startOf("hour").format();return e},setActive:function(t){this.activeId=t},isActive:function(t){return this.activeId===t},activeClass:function(t){return this.isActive(t)?"piped-link is-active":"piped-link"}}}),d=n(4),h=Object(d.a)(l,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"widget top-articles-category"},[n("div",{staticClass:"widget-title-wrap hr"},[n("div",{staticClass:"hr-item"},[n("h2",{staticClass:"widget-title title"},[t._v(t._s(t.__("Najčítanejšie")))])]),t._v(" "),n("div",{staticClass:"hr-right piped"},[n("span",{staticClass:"piped-item"},[n("a",{class:t.activeClass(1),on:{click:function(e){return t.setActive(1)}}},[t._v(t._s(t.__("24h")))])]),n("span",{staticClass:"piped-item"},[n("a",{class:t.activeClass(2),on:{click:function(e){return t.setActive(2)}}},[t._v(t._s(t.__("48h")))])]),n("span",{staticClass:"piped-item"},[n("a",{class:t.activeClass(3),on:{click:function(e){return t.setActive(3)}}},[t._v(t._s(t.__("72h")))])]),n("span",{staticClass:"piped-item"},[n("a",{class:t.activeClass(4),on:{click:function(e){return t.setActive(4)}}},[t._v(t._s(t.__("168h")))])])])]),t._v(" "),t.isActive(1)?n("tab-content",{attrs:{after:t.hoursBefore(24),where:t.where,limit:t.limit}}):t._e(),t._v(" "),t.isActive(2)?n("tab-content",{attrs:{after:t.hoursBefore(48),where:t.where,limit:t.limit}}):t._e(),t._v(" "),t.isActive(3)?n("tab-content",{attrs:{after:t.hoursBefore(72),where:t.where,limit:t.limit}}):t._e(),t._v(" "),t.isActive(4)?n("tab-content",{attrs:{after:t.hoursBefore(168),where:t.where,limit:t.limit}}):t._e()],1)}),[],!1,null,null,null).exports,v=n(461),f=n(462);function _(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 m(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?_(Object(source),!0).forEach((function(e){Object(r.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):_(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var y={components:{TopArticles:c.a,TopArticlesCategory:h,AdSidebar1:v.a,AdSidebar2:f.a},computed:m(m({},Object(o.c)({categories:"object/categories"})),{},{hasSportCategory:function(){var t;return!(null===(t=this.categories)||void 0===t||!t.length)&&this.categories.some((function(t){return"sport"===t.slug}))}})},w=Object(d.a)(y,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"main-sidebar"},[n("ad-sidebar1"),t._v(" "),t.hasSportCategory?n("top-articles-category",{attrs:{where:{taxonomy:{taxonomy:"category",path:"sport"},typeIn:"post"},limit:7}}):n("top-articles"),t._v(" "),n("ad-sidebar2")],1)}),[],!1,null,null,null);e.default=w.exports}}]);