(window.webpackJsonp=window.webpackJsonp||[]).push([[26],{1123:function(t,e,o){"use strict";o(917)},1124:function(t,e,o){var n=o(11)(!1);n.push([t.i,".toc ul li{list-style:square}",""]),t.exports=n},1125:function(t,e,o){"use strict";o(918)},1126:function(t,e,o){var n=o(11)(!1);n.push([t.i,'.post-text blockquote{box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)!important;background-color:#fff;border-left-color:#2196f3!important;border-left:10px solid;border-color:#fff;color:rgba(0,0,0,.87);display:block;border-radius:5px;font-size:16px;margin-bottom:16px;padding:16px;position:relative;transition:box-shadow .28s cubic-bezier(.4,0,.2,1);will-change:box-shadow;font-weight:400;line-height:1.375rem;letter-spacing:.0071428571em}.post-text ul{list-style-type:none}.post-text ol,.post-text ul{padding:0;border:0;outline:0;font:inherit;vertical-align:baseline;margin-left:32px;margin-bottom:25px}.post-text ol{list-style-type:decimal}.post-text ol>li{padding:5px;font-size:110%}.post-text ul>li{position:relative;padding-left:20px;margin-bottom:12px}.post-text ul>li:before{background:#2196f3!important;content:"";width:8px;border-radius:50%;height:8px;position:absolute;left:0;top:8px}',""]),t.exports=n},1212:function(t,e,o){"use strict";o.r(e);var n=o(25),r=o(18),l=(o(59),o(35),o(52),o(22),o(49),o(0)),c=o(779),d=o(194),m={props:{blogSettings:{type:Object,required:!0},relatedPosts:{type:Array,required:!1,default:function(){return[]}}}},h=o(7),v=o(8),f=o.n(v),_=o(248),x=o(4),y=o(684),C=o(205),w=o(686),component=Object(h.a)(m,(function(){var t=this,e=t.$createElement,o=t._self._c||e;return t.blogSettings.is_related_post&&t.relatedPosts.length>0?o("v-row",{staticClass:"mt-2"},[o("v-col",{attrs:{cols:"12"}},[o("h2",{staticClass:"display-1"},[t._v(t._s(t.$t("headers.related_post"))+":")])]),t._v(" "),t._l(t.relatedPosts,(function(e){return o("v-col",{key:e.id,attrs:{cols:"12",lg:"4",md:"6",sm:"12"}},[o("v-card",{staticClass:"mx-auto",attrs:{"max-width":"400"}},[e.image?o("v-img",{staticClass:"align-end",attrs:{height:"200px",src:"/public/"+e.image}}):t._e(),t._v(" "),o("v-card-title",[o("NuxtLink",{attrs:{to:{name:"blog-slug",params:{slug:e.slug}},itemprop:"mainEntityOfPage url"}},[t._v("\n "+t._s(e.text)+"\n ")])],1),t._v(" "),e.summary?o("v-card-text",{staticClass:"text--primary"},[t._v("\n "+t._s(t._f("truncate")(e.summary,260,"..."))+"\n ")]):t._e()],1)],1)}))],2):t._e()}),[],!1,null,null,null),V=component.exports;f()(component,{VCard:_.a,VCardText:x.b,VCardTitle:x.c,VCol:y.a,VImg:C.a,VRow:w.a});var S={name:"Toc",props:{target:{type:String,default:""},h2Class:{type:String,default:"toc-2"},h3Class:{type:String,default:"toc-3"}},data:function(){return{matches:[]}},mounted:function(){var t=this;this.matches=document.querySelectorAll("".concat(this.target," h2, ").concat(this.target," h3")),this.$nextTick((function(){if(t.matches.length>1){var e=t.$refs.toc,ul=document.createElement("ul"),o=!1;t.matches.forEach((function(n,r){if(""!==n.textContent){if("H2"===n.tagName){n.id=r;var li=document.createElement("li"),a=document.createElement("a");a.innerHTML=n.textContent,a.href="#".concat(r),li.appendChild(a),li.classList.add(t.h2Class),ul.appendChild(li),o=!0}if("H3"===n.tagName){n.id=r;var l=document.createElement(o?"ol":"ul"),c=document.createElement("li"),d=document.createElement("a");d.innerHTML=n.textContent,d.href="#".concat(r),c.appendChild(d),c.classList.add(t.h2Class),l.appendChild(c),o?ul.appendChild(l):e.appendChild(l)}}})),e.appendChild(ul)}}))}},T=(o(1123),Object(h.a)(S,(function(){var t=this,e=t.$createElement,o=t._self._c||e;return t.matches.length>1?o("div",{staticClass:"d-flex justify-start flex-column"},[o("v-card",[o("v-card-text",[o("h4",[t._v(t._s(t.$t("common.post_subject"))+":")]),t._v(" "),o("div",{ref:"toc",staticClass:"toc"})])],1)],1):t._e()}),[],!1,null,null,null)),$=T.exports;f()(T,{VCard:_.a,VCardText:x.b});var k=o(56),P={name:"BlogContent",components:{RelatedBlogContent:V,ShareIcon:d.a,BlogMenu:c.a,Toc:$},mixins:[k.a],middleware:["blog-active"],layout:function(t){return t.store.state.layout.name||"default"},asyncData:function(t){return Object(r.a)(regeneratorRuntime.mark((function e(){var o,r,c,d,m,h,v,f,_,x,y,C,w,V,S,T;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=t.params,r=t.$axios,c=t.store,d=t.app,e.next=3,Promise.all([r.get("/api/site/settings/blog"),r.get("/api/site/settings/blog/social"),r.get("/api/blog/content/".concat(o.slug)),r.get("/api/blog/category")]);case 3:if(m=e.sent,h=Object(n.a)(m,4),v=h[0],f=h[1],_=h[2],x=h[3],y=[{text:d.i18n.messages[c.state.settings.locale].breadcrumbs.home,disabled:!1,href:"/"},{text:d.i18n.messages[c.state.settings.locale].breadcrumbs.blog_home,disabled:!1,href:"/blog"}],l.a.isEmpty(_.data.category)||y.push({text:_.data.category.name,disabled:!1,href:"/blog/category/".concat(_.data.category.slug)}),l.a.isEmpty(_.data.category)||y.push({text:_.data.title,disabled:!0}),c.commit("setBreadcrumbs",y),C="https://".concat(c.state.settings.domain,"/blog/").concat(o.slug),c.commit("setMetaOg",{title:_.data.title||"",url:C,image:_.data.image?"https://".concat(c.state.settings.domain,"/public/").concat(_.data.image):"",type:"article",description:_.data.meta_description||"",site_name:c.state.settings.name||""}),w=[],!(v.data.is_related_post&&v.data.related_post>0)){e.next=23;break}return e.next=19,Promise.all([r.get("/api/blog/content/".concat(o.slug,"/related"),{params:{limit:v.data.related_post}})]);case 19:V=e.sent,S=Object(n.a)(V,1),T=S[0],w=T.data;case 23:return e.abrupt("return",{url:C,relatedPosts:w,blogSettings:v.data,isDesktop:d.context.isDesktop,blogSocialSettings:f.data,categories:x.data,post:_.data});case 24:case"end":return e.stop()}}),e)})))()},data:function(){return{blogSettings:{},blogSocialSettings:{},post:{},show:!1,categories:[],relatedPosts:[],url:"",message:""}},computed:{isQaTheme:function(){return"qa"===this.$store.state.layout.name||"qa-fluid"===this.$store.state.layout.name},logo:function(){return this.$store.state.settings.logo},logoPath:function(){return"https://"+this.settings.domain+"/public/"+this.logo},showAdvert:function(){return this.$store.state.showAd},adTop:function(){return l.a.findWhere(this.$store.state.ad,{position:4})},adBottom:function(){return l.a.findWhere(this.$store.state.ad,{position:5})},adInArticle:function(){return l.a.findWhere(this.$store.state.ad,{position:6})},postImage:function(){return"/public/".concat(this.post.image)},settings:function(){return this.$store.state.settings},isLoggedIn:function(){return this.$auth.loggedIn}},mounted:function(){this.runScripts(this.$el)},head:function(){return{title:this.post.meta_title?this.post.meta_title:this.post.title+" - "+this.settings.name,meta:[{hid:"description",name:"description",content:this.post.meta_description||this.post.summary}]}}},I=(o(1125),o(142)),E=Object(h.a)(P,(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("v-row",[t.isQaTheme?t._e():o("v-col",{attrs:{cols:"12",lg:"3",md:"3"}},[o("blog-menu",{attrs:{categories:t.categories,show:t.isDesktop}})],1),t._v(" "),t.post?o("v-col",{attrs:{cols:"12",lg:t.isQaTheme?12:9,md:t.isQaTheme?12:9}},[t.adTop&&t.showAdvert?o("v-col",{staticClass:"text-center run-code",attrs:{cols:"12",lg:"9",md:"9"},domProps:{innerHTML:t._s(t.adTop.code)}}):t._e(),t._v(" "),o("v-card",{attrs:{itemprop:"blogPost",itemscope:"",itemtype:"https://schema.org/BlogPosting"}},[o("v-card-title",[o("v-row",[o("meta",{attrs:{itemprop:"author",content:t.post.author}}),t._v(" "),o("meta",{attrs:{itemprop:"mainEntityOfPage",content:t.url}}),t._v(" "),o("div",{staticClass:"d-none",attrs:{itemprop:"publisher",itemscope:"",itemtype:"https://schema.org/Organization"}},[o("meta",{attrs:{itemprop:"name",content:t.settings.domain}}),t._v(" "),t.logo?o("div",{attrs:{itemprop:"logo",itemscope:"",itemtype:"https://schema.org/ImageObject"}},[o("meta",{attrs:{itemprop:"url",content:t.logoPath}})]):t._e()]),t._v(" "),o("v-col",{attrs:{cols:"12",lg:"9",md:"12"}},[o("h1",{staticClass:"font-weight-bold",attrs:{itemprop:"name headline"}},[t._v("\n "+t._s(t.post.title)+"\n ")])]),t._v(" "),o("v-col",{staticClass:"d-flex justify-end align-start",attrs:{cols:"12",lg:"3",md:"12"}},[t.post.created||t.post.updated?o("span",{staticClass:"d-flex caption"},[t.post.created?o("v-icon",[t._v("mdi-clock-outline")]):t._e(),t._v(" "),t.post.created?o("time",{attrs:{datetime:t.post.created,itemprop:"datePublished"}},[t._v("\n "+t._s(t._f("toDate")(t.post.created,t.settings.locale)))]):t._e(),t._v(" "),t.post.updated?o("meta",{attrs:{content:t.post.updated,itemprop:"dateModified"}}):t._e()],1):t._e()])],1)],1),t._v(" "),t.blogSettings&&1===t.blogSettings.toc?o("v-col",{attrs:{cols:"12"}},[o("toc",{staticClass:"toc",attrs:{target:".post-text"}})],1):t._e(),t._v(" "),o("v-card-text",{staticClass:"post-text ql-viewer"},[o("v-row",[t.post.image?o("v-col",{staticClass:"text-center",attrs:{cols:"12",itemprop:"image",itemscope:""}},[o("meta",{attrs:{itemprop:"url contentUrl",itemtype:"https://schema.org/ImageObject",content:t.postImage}}),t._v(" "),o("v-img",{attrs:{src:t.postImage,alt:t.post.title,"max-height":"300",contain:""}})],1):t._e()],1),t._v(" "),o("v-row",{attrs:{itemprop:"articleBody"}},[t.adInArticle?o("v-col",[o("div",{staticClass:"run-code",domProps:{innerHTML:t._s(t.post.formatted_content_ad||t.post.content_ad)}})]):o("v-col",[o("div",{domProps:{innerHTML:t._s(t.post.formatted_content||t.post.content)}})])],1)],1),t._v(" "),t.blogSettings&&2===t.blogSettings.toc?o("v-col",{attrs:{cols:"12"}},[o("toc",{staticClass:"toc",attrs:{target:".post-text"}})],1):t._e(),t._v(" "),t.blogSocialSettings.active?o("share-icon",{attrs:{"hash-tags":t.post.tags||[],slug:"/blog/"+t.post.slug,"social-settings":t.blogSocialSettings}}):t._e()],1),t._v(" "),o("related-blog-content",{attrs:{"blog-settings":t.blogSettings,"related-posts":t.relatedPosts}})],1):t._e(),t._v(" "),o("client-only",[t.adBottom&&t.showAdvert?o("v-col",{staticClass:"text-center run-code",attrs:{cols:"12"},domProps:{innerHTML:t._s(t.adBottom.code)}}):t._e()],1)],1)}),[],!1,null,null,null);e.default=E.exports;f()(E,{VCard:_.a,VCardText:x.b,VCardTitle:x.c,VCol:y.a,VIcon:I.a,VImg:C.a,VRow:w.a})},779:function(t,e,o){"use strict";var n=o(0),r={props:{categories:{type:Array,required:!0},show:{type:Boolean,required:!1,default:!1}},methods:{isNotChildren:function(t){return!n.a.has(t,"children")||null===t.children||0===t.children.length},onResize:function(){this.show=window.innerWidth>960}}},l=o(7),c=o(8),d=o.n(c),m=o(164),h=o(248),v=o(142),f=o(241),_=o(242),x=o(163),y=o(9),C=o(91),w=o(690),V=o(86),S=o(13),T=o(58),$=o.n(T),k=o(104),component=Object(l.a)(r,(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{directives:[{name:"resize",rawName:"v-resize",value:t.onResize,expression:"onResize"}]},[o("v-card",[o("v-toolbar",{attrs:{color:"info",dark:""}},[o("v-toolbar-title",[t._v(t._s(t.$t("common.category")))]),t._v(" "),o("v-spacer"),t._v(" "),o("v-btn",{staticClass:"d-flex d-sm-flex d-md-none d-lg-none d-xl-none",attrs:{text:"",icon:""},on:{click:function(e){t.show=!t.show}}},[o("v-icon",[t._v("mdi-dots-vertical")])],1)],1),t._v(" "),o("v-slide-y-transition",[o("div",{directives:[{name:"show",rawName:"v-show",value:t.show,expression:"show"}],staticStyle:{"max-height":"500px","overflow-y":"auto"}},t._l(t.categories,(function(e,i){return o("div",{key:i},[t.isNotChildren(e)?o("v-list-item",{attrs:{to:{name:"blog-category-slug",params:{slug:e.slug}},router:"",exact:""}},[o("v-list-item-title",[t._v(t._s(e.name))])],1):o("v-list",[o("v-list-group",{attrs:{"no-action":""}},[o("v-list-item",{staticClass:"px-0 mx-0",attrs:{slot:"activator"},slot:"activator"},[o("v-list-item-title",[t._v(t._s(e.name))])],1),t._v(" "),t._l(e.children,(function(e){return o("v-list-item",{key:e.id,attrs:{to:{name:"blog-category-slug",params:{slug:e.slug}},router:"",exact:""}},[o("v-list-item-content",[o("v-list-item-title",[t._v(t._s(e.name))])],1)],1)}))],2)],1)],1)})),0)])],1)],1)}),[],!1,null,null,null);e.a=component.exports;d()(component,{VBtn:m.a,VCard:h.a,VIcon:v.a,VList:f.a,VListGroup:_.a,VListItem:x.a,VListItemContent:y.b,VListItemTitle:y.d,VSlideYTransition:C.g,VSpacer:w.a,VToolbar:V.a,VToolbarTitle:S.b}),$()(component,{Resize:k.a})},917:function(t,e,o){var content=o(1124);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(12).default)("45b56e50",content,!0,{sourceMap:!1})},918:function(t,e,o){var content=o(1126);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(12).default)("36b49968",content,!0,{sourceMap:!1})}}]);