1(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{126:function(t,s,e){"use strict";e.r(s);var a=e(131),n={mixins:[Object(a.a)()],meta:function(){return{title:"СÑÑаниÑа не найдена"}}},i=e(0),o=Object(i.a)(n,(function(){var t=this,s=t.$createElement;return(t._self._c||s)("div",[t._v("СÑÑаниÑа не найдена")])}),[],!1,null,null,null);s.default=o.exports},127:function(t,s,e){"use strict";e.r(s);var a={components:{PostFull:e(142).a}},n=e(0),i=Object(n.a)(a,(function(){var t=this.$createElement,s=this._self._c||t;return s("div",[s("post-full")],1)}),[],!1,null,null,null);s.default=i.exports},128:function(t,s,e){"use strict";e.r(s);var a={mixins:[e(5).a],mounted:function(){this.initYaSearch()},watch:{$route:function(t,s){t.name===s.name&&this.initYaSearch()}},methods:{initYaSearch:function(){window.Ya={},window.yandex_site_callbacks=[],document.getElementById("ya-site-results").innerHTML="",(window.yandex_site_callbacks||(window.yandex_site_callbacks=[])).push((function(){return window.Ya.Site.Results.init()})),this.insertScript("https://site.yandex.net/v2.0/js/all.js",null,!0)}}},n=e(0),i=Object(n.a)(a,(function(){var t=this,s=t.$createElement;t._self._c;return t._m(0)}),[function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"page"},[e("h1",{staticClass:"title title_size_middle"},[t._v("РезÑлÑÑаÑÑ Ð¿Ð¾Ð¸Ñка")]),e("div",{attrs:{id:"ya-site-results"}})])}],!1,null,null,null);s.default=i.exports},129:function(t,s,e){"use strict";e.r(s);var a=e(1),n=e(131),i=e(8),o=e(132),r=e(133),l=e(141),c={components:{YaglaBanner:e(9).a,Loader:i.a,PostsWall:o.a,PostShort:r.a,Pagination:l.a},mixins:[Object(n.a)()],data:function(){return{dataLoad:!1,allowInfiniteLoading:!0,infiniteLoading:!1}},serverPrefetch:function(){return this.init(),this.getPosts()},beforeMount:function(){this.posts.length?this.dataLoad=!0:this.getPosts()},mounted:function(){this.init()},watch:{$route:function(t,s){t.name===s.name&&(this.init(),this.dataLoad=!1,this.getPosts())}},computed:{pageNumber:function(){return this.$route.params.number},canonical:function(){return"1"===this.pageNumber?a.a.host:a.a.host+this.$route.path},posts:function(){return this.$store.state.posts.shortPosts.pagePosts||[]},banners:function(){return Math.floor(this.posts.length/2)}},methods:{init:function(){this.changeMeta({title:"СÑаÑÑи о бизнеÑе и маÑкеÑинге - коллекÑÐ¸Ñ â"+this.pageNumber,canonical:this.canonical})},getPosts:function(){var t=this;return this.posts.length&&(this.infiniteLoading=!0),this.$store.dispatch("posts/getShortPosts",{listName:"pagePosts",limit:10,offset:10*(this.pageNumber-1)}).then((function(s){s.postExist?(t.dataLoad=!0,t.allowInfiniteLoading=s.allow,t.infiniteLoading=!1):t.$router.push({name:"404"})}))}}},u=e(0),h=Object(u.a)(c,(function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",[t.dataLoad?e("posts-wall",{attrs:{loading:t.infiniteLoading},on:{startload:function(s){return t.getPosts()}}},[t._l(t.posts,(function(t,s){return e("post-short",{key:s,style:{order:s+1},attrs:{post:t}})})),t.$store.state.general.yaglaBanners.mainBetweenPosts?t._l(t.banners,(function(s){return e("yagla-banner",{key:s+"b",style:{order:2*s},attrs:{banners:t.$store.state.general.yaglaBanners.mainBetweenPosts,index:s}})})):t._e(),e("pagination")],2):e("loader")],1)}),[],!1,null,null,null);s.default=h.exports},135:function(t,s,e){"use strict";(function(t){var a=e(8),n=e(131),i=e(1),o=e(139),r=e(140),l=e(5),c=e(150),u=e(18),h=e(22),d=e(7),p=e(24),m=e(25),g=e(142),f=e(12),v=e(9),_=e(151);s.a={name:"PostFull",components:{YaglaBanner:v.a,Comments:_.a,Loader:a.a,ListPosts:r.a,Share:c.a,Curtain:u.a,Dropdown:h.a,Btn:d.a,ContentMenu:p.a,Banner:m.a,PostFull:g.a},mixins:[Object(n.a)(),o.a,l.a,f.a],props:{inputPostId:{type:Number,default:null},childPost:Boolean},data:function(){return{dataLoad:!1,showInClient:!1,currentNavi:"",visibleNavi:!1,marginComments:0,showInClientShare:!1,visibleMobileShare:!1,visibleRelatedPosts:!1,visibleRelatedPost:!1,singleRelPost:null,error:""}},serverPrefetch:function(){var t=this;if(!this.isPreview)return this.getPost().then((function(s){return t.visibleNavi=!0,s?Promise.all([t.getComments(),t.getRelated(),t.getDiscussed(),t.getLastPosts()]):Promise.reject({code:404})}))},beforeMount:function(){!this.post||this.inputPostId?this.getPost():this.post&&this.initPost()},mounted:function(){this.showInClientShare=this.showInClient=!0},destroyed:function(){this.changeMarginComments(0)},watch:{$route:function(t,s){t.name===s.name&&(this.changeMarginComments(0),this.post||(this.dataLoad=!1,this.getPost()))},screen:function(){this.visibleNavi=this.screen>0&&this.screen>1150}},computed:{isPreview:function(){return this.$route.query.preview?1:0},currentUser:function(){return this.$store.state.auth.user},userIsAuthor:function(){return this.currentUser&&this.currentUser.authors&&this.currentUser.authors.length>0},userFirstAuthor:function(){return this.userIsAuthor?this.currentUser.authors[0]:null},postParams:function(){return{category:this.$route.params.category?this.$route.params.category.toLowerCase():"",url:this.$route.params.title?this.$route.params.title.toLowerCase():""}},post:function(){var t=this;return this.$store.state.posts.posts.find((function(s){return t.inputPostId?s.id===t.inputPostId:s.url.includes(t.postParams.url)}))},publishDateSchema:function(){return new Date(this.post.publish_time).toISOString()},relatedPosts:function(){return!(!this.post.related.related||!this.post.related.related.list.length)&&this.post.related.related},discussedPosts:function(){return!!this.post.related.discussed&&this.post.related.discussed},lastPosts:function(){return!!this.post.related.last&&this.post.related.last},casesPosts:function(){return!!this.post.related.cases&&this.post.related.cases},nativeBlocks:function(){return{cases:!!this.post.related.cases&&this.post.related.cases.list.slice(0,2),related:!!this.post.related.related&&this.post.related.related.list.slice(0,3)}},naviComponent:function(){var t="div";return this.showInClient&&(t=this.screen>0&&this.screen>1150?"div":"dropdown"),t},visibleMobileMenu:function(){return this.screen>0&&this.screen<=800},schema:function(){return'{\n\t\t\t\t"@context": "http://schema.org",\n\t\t\t\t"@type":"Article",\n\t\t\t\t"mainEntityOfPage":{\n\t\t\t\t\t"@type":"WebPage",\n\t\t\t\t\t"@id":"https://yagla.ru'.concat(this.post.url,'"\n\t\t\t\t},\n\t\t\t\t"headline":"').concat(this.post.title,'",\n\t\t\t\t"image":{\n\t\t\t\t\t"@type":"ImageObject",\n\t\t\t\t\t"url":"https://yagla.ru/post/b/').concat(this.post.id,'.jpg",\n\t\t\t\t\t"width":1200,\n\t\t\t\t\t"height":627\n\t\t\t\t},\n\t\t\t\t"datePublished":"').concat(this.publishDateSchema,'",\n\t\t\t\t"dateModified":"').concat(this.publishDateSchema,'",\n\t\t\t\t"articleSection":["').concat(this.post.category.title,'"],\n\t\t\t\t"commentCount":"').concat(this.post.countComments,'",\n\t\t\t\t"author":{\n\t\t\t\t\t"@type":"Person",\n\t\t\t\t\t"name":"').concat(this.author.name,'"\n\t\t\t\t},\n\t\t\t\t"publisher":{\n\t\t\t\t\t"@type":"Organization",\n\t\t\t\t\t"name":"yagla.ru",\n\t\t\t\t\t"url": "https://yagla.ru/",\n\t\t\t\t\t"logo":{\n\t\t\t\t\t\t"@type":"ImageObject",\n\t\t\t\t\t\t"url":"').concat(this.author.avatar?this.author.avatar.little:"https://img
1s.yagla.ru/avatars/avatar_media_big.webp",'",\n\t\t\t\t\t\t"width":200,\n\t\t\t\t\t\t"height":200\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}').replace(/\r|\n|\t/g,"")}},methods:{getPost:function(){var t=this;return this.error="",new Promise((function(s){var e=t.inputPostId?{postId:t.inputPostId}:{categoryUrl:t.postParams.category,postUrl:t.postParams.url,isPreview:t.isPreview};t.$store.dispatch("posts/getPost",e).then((function(e){e?(t.initPost(),s(!0)):(t.error="СÑаÑÑÑ Ð½Ðµ найдена или доÑÑÑп запÑеÑен",t.dataLoad=!0,s(!1))}))}))},initPost:function(){var s=this;if(this.changeMeta({title:this.post.pageTitle,description:this.post.pageMetaDescription,keywords:this.post.pageMetaKeywords,canonical:i.a.host+this.post.url,ogType:"article",ogImageBase:"post/b/".concat(this.post.id,".jpg"),ogImageVk:"post/vk/".concat(this.post.id,".jpg")}),this.relatedPosts&&(this.visibleRelatedPosts=!0),this.dataLoad=!0,t.browser){var e=[];if(e.push(this.getComments()),this.relatedPosts||e.push(this.getRelated()),this.discussedPosts||e.push(this.getDiscussed()),this.lastPosts||this.inputPostId||e.push(this.getLastPosts()),Promise.all(e).then((function(){s.casesPosts||s.getCases()})),2===this.post.status){this.postVoted=this.checkVoted();for(var a=this.$store.state.posts.excludePosts,n=function(t){var e=s.post.relatedpostIds[t];if(!a.find((function(t){return t===e})))return s.singleRelPost=e,"break"},o=0;o<this.post.relatedpostIds.length;o++){if("break"===n(o))break}var r=setInterval((function(){if(s.dataLoad&&s.$refs.relatedPost){clearInterval(r),s.insertNativeBlocks();var t=new IntersectionObserver((function(e){var a=e[0];a.isIntersecting&&s.singleRelPost&&(s.visibleRelatedPost=!0,t.unobserve(a.target))}),{rootMargin:window.innerHeight+"px"});t.observe(s.$refs.relatedPost)}new IntersectionObserver((function(t){t[0].isIntersecting&&((s.visibleRelatedPost||s.childPost)&&history.replaceState(null,null,s.post.url),s.changeMeta({title:s.post.pageTitle}))}),{rootMargin:"-300px"}).observe(s.$refs.post)}),100)}setTimeout((function(){if(s.$route.hash&&!s.inputPostId){var t=s.$route.hash;t.includes("comm")?(history.replaceState({},document.title,window.location.href.split("#")[0]),s.scrollTo("comments"+s.post.id)):s.scrollTo(t.substring(0,t.length-1))}s.post.tableContent&&s.initNavi()}),600),setTimeout((function(){s.screen>0&&s.screen>1150&&(s.visibleNavi=!0);var t=document.getElementById("comments"+s.post.id);t&&(t.style.maxWidth=document.documentElement.clientWidth+"px")}),300),window._hcwp=window._hcwp||[],window._hcwp.push({widget:"Stream",widget_id:72263,append:"#hcw"+this.post.id,href:"https://yagla.ru"+this.post.url,title:this.post.title,callback:function(t){t.on("streamMessage",(function(){s.$store.dispatch("posts/userEvent",{postId:s.post.id,event:"commented",propName:"countComments",newPropVal:++s.post.countComments})})),t.on("streamDeleteMessage",(function(){s.$store.dispatch("posts/userEvent",{postId:s.post.id,event:"deleteComment",propName:"countComments",newPropVal:--s.post.countComments})}))}})}},insertNativeBlocks:function(){var t=this.$refs.content.querySelectorAll("h2");t.length&&this.getEdu(),t.length>4&&this.getLeadmagnet();for(var s=0;s<t.length&&s<6;s++){var e=document.querySelector(".nat-block"+(s+1)+this.post.id);e&&t[s].parentNode.insertBefore(e,t[s])}document.querySelector(".native-blocks").remove()},getEdu:function(){this.$store.dispatch("posts/getEducationMenu",{postId:this.post.id,limit:6})},getLeadmagnet:function(){this.$store.dispatch("posts/getLeadmagnetMenu",{postId:this.post.id,limit:2})},initNavi:function(){var t=this,s=this.$refs.naviwrap&&this.$refs.naviwrap.querySelector(".post-navi__links");this.screen>1150&&s&&(s.style.maxHeight="280px",!this.inputPostId&&this.$refs.naviwrap&&this.changeMarginComments(this.$refs.naviwrap.clientHeight+25)),this.currentNavi=this.post.tableContent[0];var e=new IntersectionObserver((function(s){var e=s[0],a=t.post.tableContent.findIndex((function(t){return t.id===e.target.id}));if(e.isIntersecting){if(t.post.tableContent[a].isVisible=1,t.screen>1150&&t.$refs.navi){var n=t.$refs.navi.querySelector(".post-navi__links"),i=n.querySelector('[href="#'+s[0].target.id+'-"]');n.scrollTop=i.offsetTop-200}}else t.post.tableContent[a].isVisible=0;var o=t.post.tableContent.find((function(t){return 1===t.isVisible}));o&&(t.currentNavi=o)}));this.post.tableContent.forEach((function(t){var s=document.getElementById(t.id);s&&e.observe(s)}))},scrollTo:function(t){var s=document.getElementById(t);if(s){var e=20;
1this.screen<=650?e=110:this.screen<=800?e=130:this.screen<=1500&&(e=70),window.scrollTo({top:window.scrollY+s.getBoundingClientRect().top-e,behavior:"smooth"})}},getComments:function(){return this.$store.dispatch("posts/getComments",{postId:this.post.id})},getRelated:function(){var t=this;return this.$store.dispatch("posts/getSmallPosts",{source:"full-post",postId:this.post.id,url:"relatedPosts",name:"related",offset:this.post&&this.post.related.related?this.post.related.related.list.length:0,limit:this.post&&this.post.related.related?3:6,exclude:[this.post.id]}).then((function(s){t.visibleRelatedPosts=s}))},getDiscussed:function(){return this.$store.dispatch("posts/getSmallPosts",{source:"full-post",postId:this.post.id,url:"mostDiscussedPosts",name:"discussed",offset:0,limit:3,exclude:[this.post.id]})},getLastPosts:function(){return this.$store.dispatch("posts/getSmallPosts",{source:"full-post",postId:this.post.id,url:"lastPosts",name:"last",offset:0,limit:3,exclude:[this.post.id]})},getCases:function(){return this.$store.dispatch("posts/getSmallPosts",{source:"full-post",postId:this.post.id,url:"postsByCategory",name:"cases",offset:this.casesPosts?this.casesPosts.list.length:0,limit:6,category_id:i.a.caseCategoryId})},changeMarginComments:function(t){this.$store.commit("posts/updateMarginComments",t)},toggleNavi:function(){this.screen<=1150&&(this.visibleNavi=!this.visibleNavi)},shareAction:function(){this.$store.dispatch("posts/userEvent",{postId:this.post.id,event:"shared"})}}}}).call(this,e(6))},136:function(t,s,e){"use strict";(function(t){var a=e(138),n=e(149);s.a={components:{CommentsForm:a.a,Comment:n.a},data:function(){return{dataLoad:!1}},props:{post:{type:Object,required:!0}},mounted:function(){t.browser&&this.$store.dispatch("comments/refreshAuthUserInfo")},computed:{comments:function(){return this.post.comments?this.post.comments:[]}}}}).call(this,e(6))},138:function(t,s,e){"use strict";var a=e(11),n=e(7),i={props:{type:{type:String,default:"info"}}},o=e(0),r=Object(o.a)(i,(function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"inform",class:"inform_type_"+t.type},[t._t("default"),t.$slots.title?e("div",{staticClass:"inform__title title title_size_middle"},[t._t("title")],2):t._e(),t.$slots.text?e("div",{staticClass:"inform__text"},[t._t("text")],2):t._e(),t.$slots.btns?e("div",{staticClass:"inform__btns"},[t._t("btns")],2):t._e()],2)}),[],!1,null,null,null).exports,l=e(2),c=e(1),u=e(21),h={components:{SvgIco:l.a,Button:n.a,Modal:u.a},props:{show:Boolean},data:function(){return{showModal:!1}},mounted:function(){window.addEventListener("message",this.registerEventMessage)},methods:{socAuth:function(t){var s=screen.width?(screen.width-640)/2:0,e="height=720,width=640,top="+(screen.height?(screen.height-720)/2:0)+",left="+s+",scrollbars=yes,resizable,toolbar=no,menubar=no,location=no,directories=no";"vk"===t&&window.open(c.a.host+"/blogCommentAuth/redirect/?type="+t,null,e)},registerEventMessage:function(t){if("string"==typeof t.data&&"ybcas"===t.data.substring(0,5)){var s=JSON.parse(t.data.substring(5));s&&"authReg"===s.name&&(localStorage.setItem("ygbcauth",JSON.stringify({id:s.userAuthId,hash:s.userAuthHash})),this.$store.dispatch("comments/refreshAuthUserInfo"),this.showModal=!1)}}},watch:{show:function(t){this.showModal=t},showModal:function(t){t||this.$emit("close",!1)}}},d=Object(o.a)(h,(function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("modal",{staticClass:"sicialauthmodal",scopedSlots:t._u([{key:"head",fn:function(){return[e("div",{staticClass:"title title_size_middle"},[t._v("ÐвÑоÑизаÑиÑ")])]},proxy:!0},{key:"body",fn:function(){return[e("div",{staticClass:"auth_text"},[t._v("ЧÑÐ¾Ð±Ñ Ð¾ÑÑавиÑÑ ÐºÐ¾Ð¼Ð¼ÐµÐ½ÑаÑий или вопÑоÑ, необÑ
одимо войÑи ÑеÑез ÑоÑиалÑнÑÑ ÑеÑÑ")]),e("div",{staticClass:"auth__social"},[e("div",{staticClass:"auth__social__title"},[t._v("ÐойÑи ÑеÑез:")]),e("Button",{staticClass:"soc__btn",attrs:{color:"gray",size:"middle",title:"ÐойÑи ÑеÑез ÐконÑаке"},on:{click:function(s){return t.socAuth("vk")}}},[e("svg-ico",{staticClass:"soc__ico",attrs:{name:"soc-vk"}})],1)],1),e("div",{staticClass:"auth_descr"},[t._v("ÐвÑоÑизаÑÐ¸Ñ Ð¾ÑноÑиÑÑÑ ÑолÑко к комменÑаÑиÑм/вопÑоÑам")])]},proxy:!0}]),model:{value:t.showModal,callback:function(s){t.showModal=s},expression:"showModal"}})}),[],!1,null,null,null).exports,p={components:{Field:a.a,Button:n.a,Inform:r,SvgIco:l.a,CommentSocialAuthModal:d},props:{postId:{type:Number,required:!0},parentId:{type:Number,required:!0},btnName:{type:String,default:"ÐÑпÑавиÑÑ"},focus:Boolean},data:function(){return{val:"",loading:!1,existError:!1,errorMessage:"",final:"",showSocialAuthModal:!1,autoSendAfterAuth:!1}},mounted:function(){this.focus&&this.$refs.field.$el.querySelector("textarea").focus()},computed:{commentsAuthUser:function(){return this.$store.state.comments.authUser&&this.$store.state.comments.authUser.id?this.$store.state.comments.authUser:null},disabledBtn:function(){return!this.val.trim()}},methods:{send:function(){this.commentsAuthUser?this.addComment():(this.autoSendAfterAuth=!0,this.showSocialAuthModal=!0)},addComment:function(){this.loading=!0,this.existError=!1;var t=this;this.$store.dispatch("comments/addComment",{postId:this.postId,parentId:this.parentId,userAuthId:this.commentsAuthUser.id,userAuthHash:this.commentsAuthUser.hash,text:this.val}).then((function(s){s.success?(t.val="",t.$store.dispatch("posts/getComments",{postId:t.postId}).then((function(s){t.loading=!1,t.$emit("hideform")}))):(t.loading=!1,t.existError=!0,t.errorMessage=s.errors[0].message)}))},commentAuthUserSignOut:function(){this.$store.dispatch("comments/signout")},commentAuthUserSignIn:function(){this.showSocialAuthModal=!0,this.autoSendAfterAuth=!1},closeSocialAuthModal:function(){this.showSocialAuthModal=!1}},watch:{commentsAuthUser:function(t){t&&this.autoSendAfterAuth&&(this.autoSendAfterAuth=!1,this.addComment())}}},m=Object(o.a)(p,(function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",[e("div",{staticClass:"comment__user"},[t.commentsAuthUser?e("img",{staticClass:"comment__ava",attrs:{src:t.commentsAuthUser.info.photo}}):e("div",{staticClass:"comment__ava"},[e("SvgIco",{staticClass:"ava_user",attrs:{name:"user"}})],1),e("b",{staticClass:"comment__name"},[t._v(t._s(t.commentsAuthUser?t.commentsAuthUser.info.name:""))]),t.commentsAuthUser?e("Button",{on:{click:t.commentAuthUserSignOut}},[t._v("вÑйÑи")]):e("Button",{on:{click:t.commentAuthUserSignIn}},[t._v("войÑи")])],1),e("form",{staticClass:"comments__form",on:{submit:function(s){return s.preventDefault(),t.send()}}},[t.final.txt?e("Inform",{attrs:{type:t.final.type}},[t._v(t._s(t.final.txt))]):[e("Field",{ref:"field",staticClass:"comments__field",attrs:{type:"textarea",placeholder:"ÐведиÑе ÑекÑÑ","calc-height":"",disabled:t.loading},model:{value:t.val,callback:function(s){t.val=s},expression:"val"}}),t.existError?e("p",{staticClass:"red common-error"},[t._v(t._s(t.errorMessage))]):t._e(),e("Button",{attrs:{color:"gray",loading:t.loading,disabled:t.disabledBtn}},[t._v(t._s(t.btnName))])]],2),e("comment-social-auth-modal",{attrs:{show:t.showSocialAuthModal},on:{close:t.closeSocialAuthModal}})],1)}),[],!1,null,null,null);s.a=m.exports},140:function(t,s,e){"use strict";var a=e(7),n=e(2),i=e(8);function o(t,s,e){return s in t?Object.defineProperty(t,s,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[s]=e,t}var r={components:{Btn:a.a,SvgIco:n.a,Loader:i.a},props:{value:{type:[Object,Boolean],required:!0},type:{type:String,default:"normal"},skip:{type:Number,default:null},title:{type:String,default:""},moreBtn:Boolean,short:Boolean},computed:{dataLoad:function(){return!(!this.value||!this.value.list)&&this.value.list.length},classes:function(){var t;return o(t={},"list_type_"+this.type,!0),o(t,"list_short",this.short),t},loading:function(){return!!this.value&&this.value.loading},list:function(){return this.skip?this.value.list.slice(this.skip):this.value.list},visibleMoreBtn:function(){return this.moreBtn&&this.value.showMore}}},l=e(0),c=Object(l.a)(r,(function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"small-list block",class:t.classes},[e("Post"===t.$route.name?"div":"h2",{tag:"component",staticClass:"small-list__title title title_size_middle"},["cases"===t.type?e("svg-ico",{staticClass:"diamond",attrs:{name:"diam"}}):t._e(),t._v(t._s(t.title)+" ")],1),t.dataLoad?[t._l(t.list,(function(s,a){return e("router-link",{key:a,staticClass:"small-post",attrs:{to:s.url}},[e("p",{staticClass:"small-post__title"},[t._v(t._s(s.title)+" "),"cases"!==t.type?e("span",[t._v("СÑаÑÑÑ")]):t._e()]),t.short?t._e():e("div",{staticClass:"small-post__text"},[e("span",{domProps:{innerHTML:t._s(s.shortcontent)}}),e("span",{staticClass:"small-post__comm"},[e("svg-ico",{attrs:{name:"comm"}}),t._v(t._s(s.countComments?s.countComments:null)+" ")],1)])])})),t.visibleMoreBtn?e("btn",{staticClass:"btn_more",attrs:{color:"light",loading:t.loading,wide:""},on:{click:function(s){return t.$emit("loadmore")}}},[t._v(" ÐоказаÑÑ ÐµÑÑ "),e("svg-ico",{attrs:{name:"arr"}})],1):t._e()]:e("loader")],2)}),[],!1,null,null,null);s.a=c.exports},141:function(t,s,e){"use strict";var a={props:{endList:{type:Boolean,default:!1}},computed:{currentPageNum:function(){return+this.$route.params.number||1},links:function(){var t="AllPosts"===this.$route.name?"/blog/articles/page":"/blog/page",s=[{num:1,url:{path:t.slice(0,-4)}}];if(1===this.currentPageNum||this.currentPageNum<=4)s=s.concat([{num:2,url:{path:t+2+"/"}},{num:3,url:{path:t+3+"/"}},{num:4,url:{path:t+4+"/"}},{num:5,url:{path:t+5+"/"}}]);else if(this.currentPageNum>4){for(var e=this.endList?3:2,a=e;a>0&&a<=e;a--){var n=this.currentPageNum-a;s.push({num:n,url:{path:t+n+"/"}})}if(s.push({num:this.currentPageNum,url:{path:t+this.currentPageNum+"/"}}),!this.endList){var i=this.currentPageNum+1;s.push({num:i,url:{path:t+i+"/"}})}}return s}}},n=e(0),i=Object(n.a)(a,(function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{ref:"pagination",staticClass:"pagination"},t._l(t.links,(function(s,a){return e(s.num===t.currentPageNum?"div":"router-link",{key:a,tag:"component",attrs:{to:s.num!==t.currentPageNum?s.url:null}},[t._v(t._s(s.num))])})),1)}),[],!1,null,null,null);s.a=i.exports},142:function(t,s,e){"use strict";var a=e(135).a,n=e(0),i=Object(n.a)(a,(function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",[t.dataLoad?t.error?e("div",{staticClass:"page"},[t._v(t._s(t.error))]):[e("curtain",{staticStyle:{"z-index":"20"},attrs:{position:"bottom","close-btn":""},model:{value:t.visibleMobileShare,callback:function(s){t.visibleMobileShare=s},expression:"visibleMobileShare"}},[e("div",{staticClass:"mobile-share"},[e("div",{staticClass:"title title_size_middle"},[t._v("ÐоделиÑÑ ÑÑаÑÑей")]),e("share",{attrs:{big:""},on:{action:t.shareAction}})],1)]),e("div",{ref:"post"},[e("div",{staticClass:"post__full",class:t.classes},[e("script",{attrs:{type:"application/ld+json"},domProps:{innerHTML:t._s(t.schema)}}),t.post.tableContent?e("div",{ref:"navi",staticClass:"post-navi"},[e("div",{ref:"naviwrap",staticClass:"post-navi__wrap side-content",class:{open:t.visibleNavi},on:{click:function(s){return t.toggleNavi()}}},[e("div",{staticClass:"title title_size_small"},[t._v("ÐавигаÑÐ¸Ñ Ð¿Ð¾ ÑÑаÑÑе")]),e(t.naviComponent,{tag:"component",staticClass:"post-navi__links",model:{value:t.visibleNavi,callback:function(s){t.visibleNavi=s},expression:"visibleNavi"}},t._l(t.post.tableContent,(function(s){return e("a",{key:s.id,staticClass:"post-navi__link link",class:{current:t.currentNavi.id===s.id},attrs:{href:"#"+s.id+"-"},on:{click:function(e){return e.preventDefault(),t.scrollTo(s.id)}}},[t.currentNavi.id===s.id?e("svg-ico",{staticClass:"post-navi__arr",attrs:{name:"arr"}}):t._e(),e("span",{domProps:{innerHTML:t._s(s.title)}})],1)})),0),e("div",{staticClass:"post-navi__current",domProps:{innerHTML:t._s(t.currentNavi.title)}}),e("svg-ico",{staticClass:"post-navi__sel",attrs:{name:"arr-v"}})],1)]):t._e(),e("div",{staticClass:"page"}
1,[t.post.isPublished?t._e():e("div",{staticClass:"form__message form__warning"},[t._v("СÑаÑÑÑ Ð½Ðµ опÑбликована")]),e("div",{staticClass:"post__top"},[e("router-link",{staticClass:"post__cat link",attrs:{to:t.post.category.url}},[t._v(t._s(t.post.category.title))]),e(t.authorUrl?"router-link":"div",{tag:"component",staticClass:"post__author",class:{link:t.authorUrl},attrs:{to:t.authorUrl}},[e("div",[t.author.avatar?e("avatar",{attrs:{photo:t.author.avatar.little,size:"small"}}):t._e(),t._v(t._s(t.author.name)+" ")],1)])],1),e("h1",{staticClass:"post__title"},[t._v(t._s(t.post.title))]),t.post.isLongread?e("div",{staticClass:"post__label label-long"},[t._v("СÑаÑÑÑ")]):t._e(),t.isCase?e("div",{staticClass:"post__label label-case"},[e("svg-ico",{attrs:{name:"diam"}}),t._v("ÐÑимеÑÑ ÑоÑÑа ")],1):t._e(),t.post.isPublished?e("div",{staticClass:"post__props"},[e("tooltip",{attrs:{disabled:t.isSustained}},[e("template",{slot:"tooltip"},[e("span",{staticStyle:{"font-size":"13px"}},[t._v("ÐолиÑеÑÑво пÑоÑмоÑÑов бÑдеÑ"),e("br"),t._v(" показано ÑеÑез 3 Ð´Ð½Ñ Ñ Ð´Ð°ÑÑ"),e("br"),t._v(" пÑбликаÑии")])]),e("div",{staticClass:"post__prop"},[t.isSustained?t._e():e("div",{staticClass:"post__wait"},[e("svg-ico",{attrs:{name:"wait"}})],1),e("svg-ico",{staticClass:"post__view",attrs:{name:"eye"}}),t.isSustained?[t._v(t._s(t.post.countViews))]:t._e()],2)],2),e("a",{staticClass:"post__prop",attrs:{href:t.post.url+"#comments"+t.post.id},on:{click:function(s){return s.preventDefault(),t.scrollTo("comments"+t.post.id)}}},[e("svg-ico",{staticClass:"post__comm",attrs:{name:"comm"}}),t._v(" "+t._s(t.post.countComments?t.post.countComments:null)+" ")],1),t.showInClientShare?[e("div",{staticClass:"post__share"},[t.post.countShared?e("div",{staticClass:"post__prop",attrs:{title:"ÐоделиÑÑ"}},[e("svg-ico",{staticClass:"post__share-ico",attrs:{name:"share"}}),t._v(t._s(t.post.countShared)+" ")],1):e("b",[t._v("ÐоделиÑÑ")]),e("share",{on:{action:t.shareAction}})],1),e("btn",{staticClass:"post__share-btn",attrs:{color:"gray",size:"small"},on:{click:function(s){t.visibleMobileShare=!0}}},[t._v("ÐоделиÑÑ")])]:t._e()],2):t._e(),e("div",{ref:"content",staticClass:"post__body content",domProps:{innerHTML:t._s(t.post.content)}}),e("div",{staticClass:"native-blocks"},[e("div",{class:"nat-block1"+t.post.id},[t.showInClient&&t.post.isPublished&&!t.inputPostId?e("div",{staticClass:"nat-block nat_bg",attrs:{"data-nosnippet":""}},[e("noindex",[t._v(" ÐÐ¾Ð¼Ð°Ð½Ð´Ñ YAGLA и Kokoc Group ведÑÑ Ð½ÐµÑколÑко ÑелегÑам-каналов, где пÑбликÑÑÑÑÑ Ð¼Ð½ÐµÐ½Ð¸Ñ ÑкÑпеÑÑов и авÑоÑÑкие лонгÑÐ¸Ð´Ñ Ð¾ бизнеÑе и маÑкеÑинге, многие из коÑоÑÑÑ
не попадаÑÑ Ð½Ð° ÑÑÐ¾Ñ ÑайÑ. ÐбÑзаÑелÑно "),e("a",{staticClass:"link-v",attrs:{href:"https://t.me/addlist/EhE5LANnrBphMjUy",target:"_blank",rel:"nofollow"}},[t._v("подпиÑÑвайÑеÑÑ ÑÑÑ")])])],1):t._e()]),e("div",{class:"nat-block2"+t.post.id},[t.post.educationMenu&&t.post.educationMenu.length?e("div",{staticClass:"nat-block"},[e("noindex",[e("div",{staticClass:"small-list__title title title_size_small"},[t._v("ÐбÑÑение Ð¾Ñ Yagla")]),t._l(t.post.educationMenu.slice(0,3),(function(s,a){return e("a",{key:a,staticClass:"nat__link",attrs:{href:s.url,target:"_blank",rel:"nofollow"}},[t._v(t._s(s.title))])}))],2)],1):t._e()]),e("div",{class:"nat-block3"+t.post.id},[t.nativeBlocks.cases?e("div",{staticClass:"nat-block nat_bg"},[e("noindex",[e("div",{staticClass:"small-list__title title title_size_small"},[e("svg-ico",{staticClass:"diamond",attrs:{name:"diam"}}),t._v("ÐÑимеÑÑ ÑоÑÑа конвеÑÑий, заказов и пÑибÑли ")],1),t._l(t.nativeBlocks.cases,(function(s,a){return e("router-link",{key:a,staticClass:"nat__link",attrs:{to:s.url,rel:"nofollow"}},[t._v(t._s(s.title))])}))],2)],1):t._e()]),e("div",{class:"nat-block4"+t.post.id},[t.post.educationMenu&&t.post.educationMenu.length>3?e("div",{staticClass:"nat-block"},[e("noindex",[e("div",{staticClass:"small-list__title title title_size_small"},[t._v("ÐбÑÑение")]),t._l(t.post.educationMenu.slice(-3),(function(s,a){return e("a",{key:a,staticClass:"nat__link",attrs:{href:s.url,target:"_blank",rel:"nofollow"}},[t._v(t._s(s.title))])}))],2)],1):t._e()]),e("div",{class:"nat-block5"+t.post.id},[t.nativeBlocks.related?e("div",{staticClass:"nat-block nat_bg"},[e("noindex",[e("div",{staticClass:"small-list__title title title_size_small"},[t._v("ÐоÑ
ожие ÑÑаÑÑи")]),t._l(t.nativeBlocks.related,(function(s,a){return e("router-link",{key:a,staticClass:"nat__link",attrs:{to:s.url}},[t._v(t._s(s.title))])}))],2)],1):t._e()]),e("div",{class:"nat-block6"+t.post.id},[t.post.leadmagnet&&t.post.leadmagnet.length?e("div",{staticClass:"nat-block"},[e("noindex",[e("div",{staticClass:"small-list__title title title_size_small"},[t._v("СкаÑай полезнÑе маÑеÑÐ¸Ð°Ð»Ñ Ð¾Ñ Yagla беÑплаÑно")]),t._l(t.post.leadmagnet,(function(s,a){return e("a",{key:a,staticClass:"nat__link",attrs:{href:s.url,target:"_blank",rel:"nofollow"}},[t._v(t._s(s.title))])}))],2)],1):t._e()])]),t.inputPostId?t._e():e("div",{staticClass:"content crauthor-block nat_bg",attrs:{"data-nosnippet"
1:""}},[e("noindex",[e("noindex",[t._v(" ÐÐ¾Ð¼Ð°Ð½Ð´Ñ YAGLA и Kokoc Group ведÑÑ Ð½ÐµÑколÑко ÑелегÑам-каналов, где пÑбликÑÑÑÑÑ Ð¼Ð½ÐµÐ½Ð¸Ñ ÑкÑпеÑÑов и авÑоÑÑкие лонгÑÐ¸Ð´Ñ Ð¾ бизнеÑе и маÑкеÑинге, многие из коÑоÑÑÑ
не попадаÑÑ Ð½Ð° ÑÑÐ¾Ñ ÑайÑ. ÐбÑзаÑелÑно подпиÑÑвайÑеÑÑ Ð¿Ð¾ ÑÑÑлке: "),e("a",{staticClass:"link-v",attrs:{href:"https://t.me/addlist/EhE5LANnrBphMjUy",target:"_blank",rel:"nofollow"}},[t._v("https://t.me/addlist/EhE5LANnrBphMjUy")])])],1)],1),t.post.tags&&t.post.tags.length?e("div",[t._v(" ÐеÑки: "),t._l(t.post.tags,(function(s,a){return[e("router-link",{key:a,staticClass:"link-v",attrs:{to:s.url+"/"}},[t._v(t._s(s.entry))]),t._v(t._s(a!==t.post.tags.length-1?", ":"")+" ")]}))],2):t._e(),e(t.authorUrl?"router-link":"div",{tag:"router-link",staticClass:"post__full-author",attrs:{to:t.authorUrl}},[t.author.avatar?e("avatar",{attrs:{photo:t.author.avatar.big}}):t._e(),e("div",{staticClass:"full-author__name"},[e("b",[t._v(t._s(t.author.fullName||t.author.name))]),t.author.about?e("span",[t._v(t._s(t.author.about))]):t._e()])],1),t.post.isPublished?e("div",{staticClass:"post__props"},[e("div",{staticClass:"post__prop"},[t.isSustained?t._e():e("div",{staticClass:"post__wait"},[e("svg-ico",{attrs:{name:"wait"}})],1),e("svg-ico",{staticClass:"post__view",attrs:{name:"eye"}}),t.isSustained?[t._v(t._s(t.post.countViews))]:t._e()],2),e("a",{staticClass:"post__prop",attrs:{href:t.post.url+"#comments"+t.post.id},on:{click:function(s){return s.preventDefault(),t.scrollTo("comments"+t.post.id)}}},[e("svg-ico",{staticClass:"post__comm",attrs:{name:"comm"}}),t._v(" "+t._s(t.post.countComments?t.post.countComments:null)+" ")],1),e("rating",{attrs:{rating:t.post.rating,"is-voted":t.postVoted},on:{vote:t.goVote}})],1):t._e()],1)]),t.showInClientShare&&t.post.isPublished?[e("div",{staticClass:"post__share share-foot"},[e("b",[t._v("ÐоделиÑÑ ÑÑаÑÑей")]),e("share",{on:{action:t.shareAction}})],1),e("btn",{staticClass:"post__share-btn share-btn-foot",attrs:{color:"dark",size:"small"},on:{click:function(s){t.visibleMobileShare=!0}}},[e("svg-ico",{attrs:{name:"share"}}),t._v("ÐоделиÑÑ ")],1)]:t._e(),t.$store.state.general.yaglaBanners.mainBetweenPosts?e("yagla-banner",{attrs:{banners:t.$store.state.general.yaglaBanners.mainBetweenPosts,index:1}}):t._e(),t.visibleRelatedPosts?e("list-posts",{attrs:{skip:3,title:"ЧиÑайÑе еÑÑ ÑÑаÑÑи по ÑÑой Ñеме","more-btn":t.relatedPosts.list&&t.relatedPosts.list.length<=99},on:{loadmore:function(s){return t.getRelated()}},model:{value:t.relatedPosts,callback:function(s){t.relatedPosts=s},expression:"relatedPosts"}}):t._e(),t.post.isPublished?e("comments",{attrs:{post:t.post}}):t._e(),t.$store.state.general.yaglaBanners.mainBetweenPosts?e("yagla-banner",{attrs:{banners:t.$store.state.general.yaglaBanners.mainBetweenPosts,index:2}}):t._e(),t.inputPostId?t._e():e("list-posts",{attrs:{title:"ÐбÑÑждаемое"}
1,model:{value:t.discussedPosts,callback:function(s){t.discussedPosts=s},expression:"discussedPosts"}}),t.$store.state.general.yaglaBanners.mainBetweenPosts&&!t.inputPostId?e("yagla-banner",{attrs:{banners:t.$store.state.general.yaglaBanners.mainBetweenPosts,index:3}}):t._e(),t.visibleMobileMenu?e("div",{staticClass:"small-list block list_type_normal edu-page"},[e("div",{staticClass:"small-list__title title title_size_middle"},[t._v("ÐбÑÑение")]),e("content-menu")],1):t._e(),t.casesPosts?e("list-posts",{attrs:{skip:2,title:"ÐÑимеÑÑ ÑоÑÑа конвеÑÑий, заказов и пÑибÑли",type:"cases",short:""},model:{value:t.casesPosts,callback:function(s){t.casesPosts=s},expression:"casesPosts"}}):t._e(),t.inputPostId?t._e():e("list-posts",{attrs:{title:"Свежее"},model:{value:t.lastPosts,callback:function(s){t.lastPosts=s},expression:"lastPosts"}}),t.$store.state.general.yaglaBanners.mainBetweenPosts?e("yagla-banner",{staticStyle:{order:"2"},attrs:{banners:t.$store.state.general.yaglaBanners.mainBetweenPosts,index:4}}):t._e()],2),e("div",{ref:"relatedPost",staticClass:"related-post"},[t.visibleRelatedPost?e("post-full",{attrs:{"input-post-id":t.singleRelPost,"child-post":""}}):t._e()],1)]:e("loader")],2)}),[],!1,null,null,null);s.a=i.exports},149:function(t,s,e){"use strict";var a=e(138),n=e(12),i=e(2),o={name:"Comment",props:{comment:{type:Object,required:!0},postId:{type:Number,required:!0},showReplyBtn:{type:Boolean,default:!0}},mixins:[n.a],components:{CommentsForm:a.a,Comment:c,SvgIco:i.a},data:function(){return{reply:!1}},mounted:function(){document.addEventListener("replyOff",this.replyOff)},computed:{classes:function(){return{exist_childs:this.comment.childs,is_reply:this.reply}},curUser:function(){return this.$store.state.auth.user}},methods:{replyOn:function(){document.dispatchEvent(new CustomEvent("replyOff")),this.reply=!0},replyOff:function(){this.reply=!1}}},r=e(0),l=Object(r.a)(o,(function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"comments__item",class:t.classes},[e("div",{staticClass:"comment__user"},[e("div",{staticClass:"comment__ava"},[t.comment.photo?e("img",{staticClass:"comments__list__item__ava",attrs:{src:t.comment.photo,alt:t.comment.nick}}):e("SvgIco",{staticClass:"ava_user",attrs:{name:"user"}})],1),e("span",{staticClass:"comment__name",attrs:{itemprop:"name"}},[t._v(t._s(t.comment.nick))]),e("span",{staticClass:"comments__list__item__time",attrs:{itemprop:"commentTime"}},[t._v(t._s(t.formatTime(t.comment.time)))])]),e("div",{staticClass:"comment__body"},[e("div",{staticClass:"comment__txt"},[e("div",{staticClass:"comment__content",attrs:{itemprop:"commentText"},domProps:{innerHTML:t._s(t.comment.text)}}),!t.reply&&t.showReplyBtn?e("button",{staticClass:"comment__reply",on:{click:function(s){return t.replyOn()}}},[t._v("оÑвеÑиÑÑ")]):t._e()]),t.reply?e("CommentsForm",{staticClass:"comment__reply-form",attrs:{"parent-id":t.comment.id,"btn-name":"ÐÑвеÑиÑÑ",focus:"","post-id":t.postId},on:{hideform:function(s){return t.replyOff()}}}):t._e()],1),t.comment.childs?e("div",{staticClass:"comment__childs"},t._l(t.comment.childs,(function(s,a){return e("Comment",{key:a,attrs:{comment:s,"post-id":t.postId}})})),1):t._e()])}),[],!1,null,null,null),c=s.a=l.exports},150:function(t,s,e){"use strict";var a=e(1),n=e(2),i={props:{big:Boolean},components:{SvgIco:n.a},computed:{socials:function(){return[{name:"vk",title:"ÐÐонÑакÑе",url:this.getUrl("vk")},{name:"ok",title:"ÐдноклаÑÑники",url:this.getUrl("ok")},{name:"tg",title:"Telegram",url:this.getUrl("tg")},{name:"tw",title:"Twitter",url:this.getUrl("tw")},{name:"vb",title:"Viber",url:this.getUrl("vb")},{name:"wa",title:"WhatsApp",url:this.getUrl("wa")},{name:"yam",title:"Я.ÐеÑÑенджеÑ",url:this.getUrl("yam")},{name:"mm",title:"Ðой ÐиÑ",url:this.getUrl("mm")},{name:"lj",title:"LiveJournal",url:this.getUrl("lj")},{name:"in",title:"LinkedIn",url:this.getUrl("in")}]}},methods:{getUrl:function(t){var s=this.getSocial(t);return s.url+"/?"+this.encodeUrl(s.params)},encodeUrl:function(t){return Object.keys(t).map((function(s){return"".concat(encodeURIComponent(s),"=").concat(encodeURIComponent(t[s]))})).join("&")},popupOpen:function(t){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:650,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:420,a={scrollbars:1,resizable:1,menubar:0,toolbar:0,status:0,left:Math.floor((screen.width-s)/2),top:Math.floor((screen.height-e)/2),width:s,height:e},n=Object.keys(a).map((function(t){return"".concat(t,"=").concat(a[t])})).join(",");this.$emit("action"),window.open(t,"",n)},getSocial:function(t){var s=a.a.host+this.$route.path,e=document.title,n=document.querySelector('meta[name="description"]'),i=n?n.content:"",o=document.querySelector('meta[property="og:image"]'),r=o?o.content:"",l=document.querySelector('meta[property="vk:image"]'),c=l?l.content:"";switch(t){case"vk":return{url:"https://vk.com/share.php",params:{url:s,title:e,description:i,image:c}};
1case"fb":return{url:"https://www.facebook.com/sharer.php",params:{u:s}};case"ok":return{url:"https://connect.ok.ru/offer",params:{url:s,title:e,description:i,imageUrl:r}};case"tg":return{url:"https://t.me/share/url",params:{url:s,text:e}};case"tw":return{url:"https://twitter.com/intent/tweet",params:{text:e,url:s}};case"vb":return{url:"viber://forward",params:{text:e+": "+s}};case"wa":return{url:"https://api.whatsapp.com/send",params:{text:e+": "+s}};case"yam":return{url:"https://yandex.ru/chat",params:{text:e+": "+s}};case"mm":return{url:"https://connect.mail.ru/share",params:{url:s,title:e,description:i}};case"lj":return{url:"https://www.livejournal.com/update.bml",params:{subject:e,event:e+": "+s}};case"in":return{url:"https://www.linkedin.com/shareArticle",params:{mini:!0,url:s,title:e,summary:i}}}}}},o=e(0),r=Object(o.a)(i,(function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"share",class:{share_big:t.big}},t._l(t.socials,(function(s,a){return e("a",{key:a,class:"soc-"+s.name,attrs:{href:s.url,title:s.title,rel:"nofollow noopener",target:"_blank"},on:{click:function(e){return e.preventDefault(),t.popupOpen(s.url)}}},[e("svg-ico",{attrs:{name:"soc-"+s.name}})],1)})),0)}),[],!1,null,null,null);s.a=r.exports},151:function(t,s,e){"use strict";var a=e(136).a,n=e(0),i=Object(n.a)(a,(function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"comments-block",attrs:{id:"comments"+t.post.id}},[e("div",{staticClass:"title title_size_small"},[t._v("ÐапиÑаÑÑ ÐºÐ¾Ð¼Ð¼ÐµÐ½ÑаÑий")]),e("CommentsForm",{staticClass:"user_add_comment",attrs:{"parent-id":0,"post-id":t.post.id}}),t.comments.length?e("div",{staticClass:"comments__list"},t._l(t.comments,(function(s,a){return e("Comment",{key:a,attrs:{comment:s,"post-id":t.post.id}})})),1):t._e()],1)}),[],!1,null,null,null);s.a=i.exports},46:function(t,s,e){"use strict";e.r(s);var a=e(1),n=e(131),i=e(8),o=e(132),r=e(140),l=e(133),c=e(25),u=e(24),h=e(2),d=e(141),p={props:{pageNum:{type:Number,default:0},static:Boolean},data:function(){return{activated:!1,page:this.$route.params.number?+this.$route.params.number:1,currentPath:""}},watch:{page:function(){var t=this.$route.params.number?this.$route.fullPath.slice(0,-6):this.$route.fullPath;this.$emit("changepage",this.page>1?t+"page"+this.page:"")}},mounted:function(){var t=this,s=this.$refs.trigger;new IntersectionObserver((function(s){var e=s[0],a=t.page;t.static&&e.isIntersecting?a=t.pageNum:(e.isIntersecting?e.boundingClientRect.top>0?(t.activated=!0,a=t.pageNum):e.boundingClientRect.top<=0&&(a=t.pageNum-1):e.boundingClientRect.top>0&&t.activated?a=t.pageNum-1:e.boundingClientRect.top<=0&&(a=t.pageNum),a>0&&t.page!==a&&(t.page=a))})).observe(s)}},m=e(0),g=Object(m.a)(p,(function(){var t=this,s=t.$createElement;return(t._self._c||s)("div",{ref:"trigger",staticClass:"p-trigger"},[t._t("default")],2)}),[],!1,null,null,null).exports,f={components:{YaglaBanner:e(9).a,Loader:i.a,PostsWall:o.a,ListPosts:r.a,PostShort:l.a,Banner:c.a,ContentMenu:u.a,SvgIco:h.a,Pagination:d.a,PaginationTrigger:g},mixins:[Object(n.a)()],data:function(){return{dataLoad:!1,allowInfiniteLoading:!0,infiniteLoading:!1,currentPath:""}},serverPrefetch:function(){return this.init(),Promise.all([this.getPosts(),this.getDiscussed(),this.getCases(),this.getMostViewed()])},beforeMount:function(){this.posts.length?this.dataLoad=!0:this.getPosts(),this.discussedPosts||this.getDiscussed(),this.casesPosts||this.getCases(),this.mostViewedPosts||this.getMostViewed()},mounted:function(){this.init()},watch:{$route:function(){this.init(),this.dataLoad=!1,this.getPosts()}},computed:{screen:function(){return this.$store.state.general.screen},posts:function(){var t="Home"===this.$route.name?"main":"all";return this.$store.state.posts.shortPosts[t]||[]},discussedPosts:function(){return this.$store.state.posts.smallPosts.discussed||!1},casesPosts:function(){return this.$store.state.posts.smallPosts.cases||!1},mostViewedPosts:function(){return this.$store.state.posts.smallPosts.mostViewed||!1},visibleMobileMenu:function(){return this.screen>0&&this.screen<=800},pageNumber:function(){return this.$route.params.number},paginationTriggers:function(){return Math.floor(this.posts.length/10)},banners:function(){return Math.floor(this.posts.length/2)}},methods:{init:function(){var t=this.pageNumber?" - коллекÑÐ¸Ñ â"+this.pageNumber:"";this.changeMeta({title:"AllPosts"===this.$route.name&&"YAGLA - Ñекламн
1Ñе инÑÑÑÑменÑÑ, вознагÑаждение Ñ ÑекламнÑÑ
бÑджеÑов, кÑÑÑÑ Ð¸ ÑообÑеÑÑво "+t,description:"YAGLA - ÑекламнÑе инÑÑÑÑменÑÑ, вознагÑаждение Ñ ÑекламнÑÑ
бÑджеÑов, кÑÑÑÑ Ð¸ ÑообÑеÑÑво ",canonical:a.a.host+this.$route.fullPath})},getPosts:function(){var t=this;this.posts.length&&(this.infiniteLoading=!0);var s=this.$route.params.number?10*(this.pageNumber-1):this.posts?this.posts.filter((function(t){return 0===t.type})).length:0;return this.$store.dispatch("posts/getShortPosts",{listName:"Home"===this.$route.name?"main":"all",limit:10,offset:s,isFeed:"Home"===this.$route.name?1:0,clear:this.$route.params.number}).then((function(s){s.postExist?(t.dataLoad=!0,t.allowInfiniteLoading=s.allowInfinite,t.infiniteLoading=!1):t.$router.push({name:"404"})}))},getDiscussed:function(){return this.$store.dispatch("posts/getSmallPosts",{source:"category",url:"mostDiscussedPosts",name:"discussed",offset:this.discussedPosts?this.discussedPosts.list.length:0,limit:3})},getCases:function(){return this.$store.dispatch("posts/getSmallPosts",{source:"category",url:"postsByCategory",name:"cases",offset:this.casesPosts?this.casesPosts.list.length:0,limit:4,category_id:a.a.caseCategoryId})},getMostViewed:function(){return this.$store.dispatch("posts/getSmallPosts",{source:"category",url:"mostViewedPosts",name:"mostViewed",offset:this.mostViewedPosts?this.mostViewedPosts.list.length:0,limit:3})},changePage:function(t){this.currentPath||(this.currentPath=window.location.href),document.dispatchEvent(new CustomEvent("changeurl",{detail:{to:{fullPath:"/blog"+t},from:{fullPath:this.currentPath}}})),this.currentPath="/blog"+t}}},v=Object(m.a)(f,(function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",[t.$store.state.general.yaglaBanners.mainBeforePosts?e("yagla-banner",{attrs:{banners:t.$store.state.general.yaglaBanners.mainBeforePosts}}):t._e(),t.dataLoad?e("posts-wall",{attrs:{loading:t.infiniteLoading},on:{startload:function(s){return t.getPosts()}}},[t.discussedPosts?e("list-posts",{staticStyle:{order:"0"},attrs:{title:"ÐбÑÑждаемое","more-btn":""},on:{loadmore:function(s){return t.getDiscussed()}}
1,model:{value:t.discussedPosts,callback:function(s){t.discussedPosts=s},expression:"discussedPosts"}}):t._e(),e("div",{staticClass:"posts-switch"},[e("Home"===t.$route.name?"div":"router-link",{tag:"component",staticClass:"switch__link",class:{current:"Home"===t.$route.name},attrs:{to:{name:"Home"}}},[t._v("ÐенÑа")]),e("AllPosts"===t.$route.name?"div":"router-link",{tag:"component",staticClass:"switch__link",class:{current:"AllPosts"===t.$route.name},attrs:{to:{path:"/blog/articles/"}}},[t._v("ÐÑе ÑÑаÑÑи")])],1),e("pagination-trigger",{staticStyle:{order:"0"},attrs:{"page-num":1,static:""},on:{changepage:t.changePage}}),t._l(t.posts,(function(t,s){return e("post-short",{key:s,style:{order:s+1},attrs:{post:t}})})),t._l(t.paginationTriggers,(function(s,a){return e("pagination-trigger",{key:"t"+a,style:{order:10*s},attrs:{"page-num":s+1},on:{changepage:t.changePage}})})),t.$store.state.general.yaglaBanners.mainBetweenPosts?e("yagla-banner",{staticStyle:{order:"1"},attrs:{banners:t.$store.state.general.yaglaBanners.mainBeforePosts,index:2}}):t._e(),t.$store.state.general.yaglaBanners.mainBetweenPosts?e("yagla-banner",{staticStyle:{order:"2"},attrs:{banners:t.$store.state.general.yaglaBanners.mainBeforePosts,index:3}}):t._e(),t.$store.state.general.yaglaBanners.mainBetweenPosts?t._l(t.banners,(function(s){return e("yagla-banner",{key:s+"b",style:{order:2*(s+1)},attrs:{banners:t.$store.state.general.yaglaBanners.mainBetweenPosts,index:s+3}})})):t._e(),e("list-posts",{staticStyle:{order:"1"},attrs:{title:"ÐÑимеÑÑ ÑоÑÑа конвеÑÑий, заказов и пÑибÑли",type:"cases"},model:{value:t.casesPosts,callback:function(s){t.casesPosts=s},expression:"casesPosts"}}),t.visibleMobileMenu?e("div",{staticClass:"small-list list_type_normal block edu-page",staticStyle:{order:"2"}},[e("div",{staticClass:"small-list__title title title_size_middle"},[t._v("ÐбÑÑение")]),e("content-menu")],1):t._e(),e("list-posts",{staticStyle:{order:"2"},attrs:{title:"СамÑе ÑиÑаемÑе ÑÑаÑÑи за поÑледние 3 недели"},on:{loadmore:function(s){return t.getMostViewed()}},model:{value:t.mostViewedPosts,callback:function(s){t.mostViewedPosts=s},expression:"mostViewedPosts"}}),e("pagination")],2):e("loader")],1)}),[],!1,null,null,null);s.default=v.exports},47:function(t,s,e){"use strict";e.r(s);var a=e(1),n=e(131),i=e(8),o=e(133),r=e(132);function l(t,s,e){return s in t?Object.defineProperty(t,s,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[s]=e,t}var c={components:{YaglaBanner:e(9).a,Loader:i.a,PostShort:o.a,PostsWall:r.a},mixins:[Object(n.a)()],data:function(){return{dataLoad:!1,allowInfiniteLoading:!0,infiniteLoading:!1}},serverPrefetch:function(){var t=this;return this.getTag().then((function(s){return s?t.getPosts():Promise.reject({code:404})}))},beforeMount:function(){this.tag?this.initMeta():this.getTag(),this.posts.length?this.dataLoad=!0:this.getPosts()},watch:{$route:function(t){"Tag"!==t.name&&"Category"!==t.name||this.posts.length||(this.dataLoad=this.infiniteLoading=!1,this.allowInfiniteLoading=!0,this.getTag(),this.getPosts())}},computed:{pageType:function(){return"Tag"===this.$route.name?"tag":"category"},tagCode:function(){return this.$route.params.tagcode},tag:function(){var t=this;return"tag"===this.pageType?this.$store.state.posts.tags.find((function(s){return s.code===t.tagCode})):this.$store.state.posts.categories.find((function(s){return s.code===t.tagCode}))},posts:function(){return this.$store.state.posts.shortPosts[this.pageType+"-"+this.tagCode]||[]},banners:function(){return Math.floor(this.posts.length/2)},schema:function(){var t="";return this.posts.forEach((function(s,e){t+='{"@type":"ListItem", "position":'.concat(e+1,', "url":"https://yagla.ru').concat(s.url,'"},')})),'{\n\t\t\t"@context": "http://schema.org",\n\t\t\t"@type": "CollectionPage",\n\t\t\t"name": "'.concat(this.tag.name,' - Ñоп 10 ÑÑаÑей",\n\t\t\t"url": "https://yagla.ru').concat(this.tag.url,'",\n\t\t\t"image":{\n\t\t\t"@type":"ImageObject",\n\t\t\t"url":"https://yagla.ru/post/b/').concat(this.tag.id,'.jpg",\n\t\t\t"width":1200,\n\t\t\t"height":627\n\t\t\t}
1,\n\t\t\t"mainEntity": {\n\t\t\t"@type":"ItemList",\n\t\t\t"itemListElement":[').concat(t.slice(0,-1),"]\n\t\t\t}}")}},methods:{getTag:function(){var t=this;return new Promise((function(s){var e="tag"===t.pageType?"posts/getTag":"posts/getCategory";t.$store.dispatch(e,{code:t.tagCode}).then((function(e){e?(t.initMeta(),s(!0)):s(!1)}))}))},initMeta:function(){this.changeMeta({title:this.tag.name+" - Ñоп 10 ÑÑаÑей",canonical:a.a.host+this.tag.url,ogImageBase:"".concat(this.pageType,"/b/").concat(this.tag.id,".jpg"),ogImageVk:"".concat(this.pageType,"/vk/").concat(this.tag.id,".jpg")})},getPosts:function(){var t,s=this;if(this.allowInfiniteLoading)return this.posts.length&&(this.infiniteLoading=!0),this.$store.dispatch("posts/getShortPosts",(t={listName:this.pageType+"-"+this.tagCode},l(t,this.pageType+"Code",this.tagCode),l(t,"limit",10),l(t,"offset",this.posts?this.posts.length:0),t)).then((function(t){s.dataLoad=!0,s.allowInfiniteLoading=t.allowInfinite,s.infiniteLoading=!1}))}}},u=e(0),h=Object(u.a)(c,(function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",[t.dataLoad&&t.tag?e("posts-wall",{attrs:{loading:t.infiniteLoading},on:{startload:function(s){return t.getPosts()}}},[e("script",{attrs:{type:"application/ld+json"},domProps:{innerHTML:t._s(t.schema)}}),e("h1",{staticClass:"page-head title title_size_middle"},[t._v(t._s(t.tag.name)+" - Ñоп 10 ÑÑаÑей")]),t._l(t.posts,(function(t,s){return e("post-short",{key:s,style:{order:s+1},attrs:{post:t}})})),t.$store.state.general.yaglaBanners.mainBetweenPosts?t._l(t.banners,(function(s){return e("yagla-banner",{key:s+"b",style:{order:2*s},attrs:{banners:t.$store.state.general.yaglaBanners.mainBetweenPosts,index:s}})})):t._e()],2):e("loader")],1)}),[],!1,null,null,null);s.default=h.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.