(window.webpackJsonp=window.webpackJsonp||[]).push([[114],{464:function(t,e,n){"use strict";n(20),n(14),n(17),n(21),n(22);var o=n(8),r=(n(63),n(7)),l=n(475),c=n(484),d={data:function(){return{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;void 0===window.gptDev?(window.addEventListener("resize",this.handleResize),this.handleResize(),void 0!==window.gptInited&&window.gptInited?(this.mapping=window.googletag.sizeMapping().addSize([0,0],["fluid",[1,1],[300,100],[300,160]]).addSize([352,0],["fluid",[1,1],[300,100],[300,160],[320,100]]).addSize([500,0],["fluid",[1,1],[300,100],[300,160],[320,100],[468,60]]).addSize([622,0],["fluid",[1,1],[300,100],[300,160],[320,100],[468,60],[590,90]]).addSize([672,0],["fluid",[1,1],[300,100],[300,160],[320,100],[468,60],[590,90],[640,100]]).build(),this.isSizeMappingLoaded=!0):setTimeout((function(){return t.handleMappings()}),100)):this.isDev=!0}}},m=n(4),h=Object(m.a)(d,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.isActive&&t.isSizeMappingLoaded||t.isDev?n("gpt-ad",{attrs:{id:"content_1",size:[336,280],"size-mapping":t.mapping,"ad-unit":"content_1"}}):t._e()}),[],!1,null,null,null).exports,meta=n(485),_=n(486),v=n(479),f=n(476),y=n(480),w=n(481),O=n(482),k=n(474),j=n(472),C=n(488);function z(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 P={components:{AudioPlayer:n(487).a,Views:j.a,WpContent:k.a,Author:_.a,PostMeta:meta.a,ArticlesTopInside:c.a,RecommendedArticles:l.a,Related:v.a,Share:f.a,Celebrities:y.a,Companies:w.a,Tags:O.a,AdContent1:h,Sendtip:C.a},props:{post:{type:Object,required:!0},defaultAuthorName:{type:String,default:null}},computed:function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?z(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):z(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({size:function(){return["wide","fullwidth"].includes(this.layout)&&this.post&&this.post.thumbnail&&this.post.thumbnail.large?"large":"medium"}},Object(r.c)({layout:"object/layout",emailReportLink:"social/emailReportLink",activeAdblock:"layout/isAdblockActive"}))},x=Object(m.a)(P,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return"default"===t.layout?n("article",{staticClass:"main-content entry is-article",class:"post-"+t.post.ID},[n("admincheck",{attrs:{post:t.post}}),t._v(" "),n("views",{attrs:{"post-id":t.post.ID}}),t._v(" "),n("articles-top-inside"),t._v(" "),n("header",{staticClass:"entry-heading"},[n("h1",{staticClass:"entry-title title"},[t._v("\n      "+t._s(t.post.post_title)+"\n    ")]),t._v(" "),n("post-meta",{attrs:{post:t.post}}),t._v(" "),n("share",{staticClass:"is-narrow"}),t._v(" "),n("entry-image",{staticClass:"is-featured",attrs:{thumbnail:t.post.thumbnail,video:t.post.video,"is-lazy":!1}}),t._v(" "),n("ad-content1")],1),t._v(" "),n("main",{staticClass:"entry-main"},[t.post.audio?n("audio-player",{attrs:{post:t.post}}):t._e(),t._v(" "),n("author",{attrs:{post:t.post,"author-name":t.defaultAuthorName}}),t._v(" "),n("wp-content",{staticClass:"content entry-content is-narrow",attrs:{html:t.post.post_content,postid:t.post.ID,posttitle:t.post.post_title,adblock:t.activeAdblock,posttype:t.post.post_type}}),t._v(" "),n("related",{attrs:{post:t.post,classes:"is-narrow"}}),t._v(" "),n("share",{staticClass:"is-narrow"}),t._v(" "),n("celebrities",{attrs:{post:t.post,classes:"is-narrow"}}),t._v(" "),n("companies",{attrs:{post:t.post,classes:"is-narrow"}}),t._v(" "),n("tags",{attrs:{post:t.post,classes:"is-narrow"}}),t._v(" "),n("div",{staticClass:"has-text-right "},[n("a",{staticClass:"link has-text-danger",attrs:{href:t.emailReportLink}},[n("small",{staticClass:"icon icon-notification"}),t._v("\n        "+t._s(t.__("Nahlásiť problém"))+"\n      ")])])],1),t._v(" "),n("footer",{staticClass:"entry-main"},[t._t("footer"),t._v(" "),n("recommended-articles"),t._v(" "),n("sendtip")],2)],1):"wide"===t.layout?n("article",{staticClass:"main-content entry is-article"},[n("admincheck",{attrs:{post:t.post}}),t._v(" "),n("views",{attrs:{"post-id":t.post.ID}}),t._v(" "),n("header",{staticClass:"entry-heading"},[n("h1",{staticClass:"entry-title title"},[t._v(t._s(t.post.post_title))]),t._v(" "),n("entry-image",{staticClass:"is-featured",attrs:{size:t.size,thumbnail:t.post.thumbnail,url:t.post.thumbnail.full,video:t.post.video,"is-lazy":!1}}),t._v(" "),n("ad-content1")],1),t._v(" "),n("main",{staticClass:"entry-main"},[n("wp-content",{staticClass:"content entry-content is-wide",attrs:{html:t.post.post_content,adblock:t.activeAdblock,posttype:t.post.post_type}})],1)],1):n("article",{staticClass:"main-content entry is-article"},[n("header",{staticClass:"entry-heading"},[n("h1",{staticClass:"entry-title title"},[t._v(t._s(t.post.post_title))])]),t._v(" "),n("main",{staticClass:"entry-main"},[n("wp-content",{staticClass:"content is-fullwidth entry-content",attrs:{html:t.post.post_content,adblock:t.activeAdblock,posttype:t.post.post_type}})],1)])}),[],!1,null,null,null);e.a=x.exports},465:function(t,e,n){"use strict";var o={props:{title:{type:String,default:null},action:{type:String,required:!0}}},r=n(4),component=Object(r.a)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"widget newsletter"},[n("h2",{staticClass:"widget-title-wrap hr is-breakable"},[n("span",{staticClass:"hr-item"},[n("span",{staticClass:"widget-title newsletter-title title"},[t._v(t._s(t.title||t.__("Newsletter")))])])]),t._v(" "),n("div",{staticClass:"widget-content newsletter-content"},[n("form",{attrs:{action:t.action,method:"post",target:"_blank"}},[t._m(0),t._v(" "),t._m(1),t._v(" "),n("button",{staticClass:"button is-primary",attrs:{type:"submit"}},[t._v("\n        Prihlásiť na odber noviniek\n      ")])])])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"field"},[e("input",{staticClass:"input",attrs:{type:"email",name:"email",required:"",placeholder:"Váš E-mail"}})])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("p",{staticClass:"newsletter-terms"},[n("label",[n("input",{attrs:{type:"checkbox",required:"",name:"newsletter-check",value:"1"}})]),t._v("\n        Súhlasím s\n        "),n("a",{staticClass:"link",attrs:{href:"https://sita.sk/podmienky-pouzivania/",target:"_blank"}},[t._v("podmienkami používania")]),t._v("\n        a potvrdzujem, že som sa oboznámil s\n        "),n("a",{staticClass:"link",attrs:{href:"https://sita.sk/ochrana-osobnych-udajov-cookies/",target:"_blank"}},[t._v("ochranou osobných údajov")])])}],!1,null,null,null);e.a=component.exports},651:function(t,e,n){"use strict";n.r(e);n(20),n(14),n(17),n(21),n(22);var o,r=n(8),l=n(12),c=n(97),d=(n(25),n(57)),m=n(7),h=n(478),_=n(2),v=n(465),f=n(464);function y(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 w,O=Object(d.b)(o||(o=Object(c.a)(["\n  query post($where: PostWhereInput = {}) {\n    postElastic(where: $where) {\n      ID\n      post_title\n      post_name\n      post_type\n      post_status\n      post_date\n      post_content\n      post_excerpt\n      terms {\n        post_tag {\n          ID\n          path\n          slug\n          name\n          taxonomy\n        }\n        category {\n          ID\n          path\n          slug\n          name\n          taxonomy\n          level\n          level_lowest\n        }\n        category_vskolstve {\n          ID\n          path\n          slug\n          name\n          taxonomy\n          level\n          level_lowest\n        }\n        location {\n          ID\n          path\n          slug\n          name\n          taxonomy\n          level\n          level_lowest\n        }\n        celebrity {\n          ID\n          name\n          taxonomy\n          path\n        }\n        company {\n          ID\n          name\n          taxonomy\n          path\n        }\n      }\n      post_author {\n        display_name\n        login\n        slug\n        avatar\n        source\n      }\n      thumbnail {\n        full\n        large\n        medium\n        medium_large\n        html_caption\n        html_description\n      }\n      recommended_posts {\n        ID\n        post_title\n        post_name\n        post_type\n      }\n      audio {\n        id\n        url\n        length\n      }\n      video {\n        mp4_url\n        length\n      }\n      options {\n        ads_hidden\n        facebookcomment\n        is_fullwidth\n      }\n      head {\n        title\n        meta {\n          name\n          property\n          content\n        }\n      }\n    }\n  }\n"]))),k={components:{Newsletter:v.a,Preloader:h.a,Post:f.a},props:{slug:{type:String,required:!0},defaultAuthorName:{type:String,default:"SITA Školstvo"}},asyncData:function(t){return Object(l.a)(regeneratorRuntime.mark((function e(){var n,o,r,l,c,d,m,h;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.app,o=t.params,r=t.store,l=t.route,c=t.$dayjs,r.commit("crm/unlockedTemporary",!1),d={path:"vskolstve/".concat(o.slug)},e.next=5,Object(_.d)(O,d,n.apolloProvider.defaultClient);case 5:if(m=e.sent){e.next=8;break}return e.abrupt("return",n.$tryRedirect(n.context));case 8:return h={"@context":"https://schema.org/","@type":"NewsArticle",mainEntityOfPage:{"@type":"WebPage","@id":Object(_.b)(l.fullPath)},headline:m.post_title,image:[m.thumbnail.full],datePublished:c(m.post_date).toISOString(),dateModified:c(m.post_date).toISOString(),author:{"@type":n.$isPerson(m.post_author.display_name)?"Person":"Organization",name:m.post_author.display_name||o.defaultAuthorName}},m.post_excerpt&&(h.description=m.post_excerpt),r.commit("object/set",{postId:m.ID,postType:m.post_type,postStatus:m.post_status,title:m.post_title,route:l,conditionalTags:["is_singular","is_single"],taxonomies:m.terms,author:m.post_author,website:m.post_type,meta:n.$convertHeadMeta(m.head.meta),isLocked:m.post_content.indexOf("<contentlocker")>=0,isAdsHidden:m.options&&m.options.ads_hidden,layout:m.options&&m.options.is_fullwidth?"wide":"default",schema:h}),e.next=13,n.$jsonLd(h);case 13:return e.abrupt("return",{post:m});case 14:case"end":return e.stop()}}),e)})))()},computed:function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?y(Object(source),!0).forEach((function(e){Object(r.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):y(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({},Object(m.c)({isPremium:"crm/isPremium"})),watch:{isPremium:(w=Object(l.a)(regeneratorRuntime.mark((function t(e){var n,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=2;break}return t.abrupt("return",!1);case 2:return n={path:"vskolstve/".concat(this.post.post_name),cacheBuster:"unlocked"},t.next=5,Object(_.d)(O,n,this.$apolloProvider.defaultClient);case 5:(o=t.sent)&&(this.post=o,"undefined"!=typeof window&&void 0!==window.fbAsyncInit&&(window.fbAsyncInit(),this.isAdsHidden&&(window.googletag.pubads().clear(),window.googletag.pubads().refresh())),Object(_.e)(".contentlocked",300,300));case 7:case"end":return t.stop()}}),t,this)}))),function(t){return w.apply(this,arguments)})},watchQuery:!0},j=n(4),component=Object(j.a)(k,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.post?n("post",{attrs:{post:t.post,"default-author-name":t.defaultAuthorName},scopedSlots:t._u([{key:"footer",fn:function(){return[n("newsletter",{attrs:{title:t.__("Bezplatné novinky emailom zo školstva raz týždenne"),action:"https://isita.ecomailapp.cz/public/subscribe/17/5a4345e2cfc20db946d8662a976213f2"}})]},proxy:!0}],null,!1,159640031)}):t.$apollo.loading?n("preloader"):t._e()],1)}),[],!1,null,null,null);e.default=component.exports}}]);