PageSourceSearch

https://www.mentoday.ru/_nuxt/js/285_1dd52e0b5dcd7ba29082.js

js mentoday.ru collected 2026-09-24 18:12:16 UTC 10,719 bytes, 1 lines download raw bytes

1(window.webpackJsonp=window.webpackJsonp||[]).push([[285],{1980:function(e,t,o){"use strict";o(843)},1981:function(e,t,o){var n=o(16)((function(i){return i[1]}));n.push([e.i,".main__inner[data-v-2e81b948]{margin-top:30px;padding-bottom:30px}.main__billboard-topline[data-v-2e81b948]{margin-bottom:12px;margin-top:12px}.main__articles-popular[data-v-2e81b948]{margin-bottom:30px}",""]),n.locals={},e.exports=n},1982:function(e,t,o){"use strict";o(844)},1983:function(e,t,o){var n=o(16)((function(i){return i[1]}));n.push([e.i,".main__preview-section[data-v-2e81b948]:not(:first-child){margin-top:30px}@media only screen and (min-width:650px){.main__inner[data-v-2e81b948],.main__preview-section[data-v-2e81b948]:not(:first-child){margin-top:40px}.main__inner[data-v-2e81b948]{padding-bottom:40px}}",""]),n.locals={},e.exports=n},4202:function(e,t,o){"use strict";o.r(t);o(5);var n=o(1),base=o(2),r=o(26),c=o(1977),l=o(125),d=o(692),h=o(841),m=o(842);o(69);var f=o(735),_=function(e,t,o,desc){var n,r=arguments.length,c=r<3?t:null===desc?desc=Object.getOwnPropertyDescriptor(t,o):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,o,desc);else for(var i=e.length-1;i>=0;i--)(n=e[i])&&(c=(r<3?n(c):r>3?n(t,o,c):n(t,o))||c);return r>3&&c&&Object.defineProperty(t,o,c),c};let v=class extends(Object(n.mixins)(h.a,d.a)){constructor(){super(...arguments),this.depth=-1,this.topics=null,this.articles=null,this.initialNewsArticles=[],this.starsCode="",this.quoteOfDay=null,this.load=!1,this.renderedOnServer="complete"!==document.readyState}get enabledPopArticles(){return this.getPopArticles.length>0&&!base.IS_GIRLSPOWER}get hasMore(){return this.depth<c.a.length}async asyncData({store:e,route:t,redirect:n,error:r,app:c,res:d,query:h}){const m="string"==typeof h.accessHash?h.accessHash:void 0;let f=[],_="",v=null;const{MatrixApi:A}=await Promise.all([o.e(0),o.e(1),o.e(2),o.e(3)]).then(o.bind(null,28));try{const code=t.params.code;if(Number.isInteger(+code)){var S;const e=await A.article.fetchArticleById({id:+code,accessHash:m});if("redirect"in e)return n(301,e.redirect);let article;"article"in e&&(article=e.article);const link=Object(l.a)({article:article,query:t.query}),o=link.to?null===(S=c.router)||void 0===S?void 0:S.resolve(link.to).href:link.href;return article&&o?n(301,o):r({statusCode:404})}{const t=base.IS_GIRLSPOWER?{section:"articles",offset:0,limit:8}:{page:1};await e.dispatch("article/fetchArticles",t)}}catch(e){return r({statusCode:404})}try{e.commit("feature/setPayload",{sectionId:0})}catch(r){console.error(r)}try{(base.IS_POPMECH||base.IS_GOODHOUSE)&&base.AVAILABLE_SECTIONS_FOR_NEWS.includes("/")&&(f=await A.article.fetchLastArticleNews({count:4}))}catch(r){console.error(r)}try{if(base.IS_SLOVA){const{MatrixApi:e}=await Promise.all([o.e(0),o.e(1),o.e(2),o.e(3)]).then(o.bind(null,28)),{quote:t,stars:n}=await e.quote.fetchQuoteRandom();v=t,_=n[0].code}}catch(r){console.error(r)}return e.commit("setPageInfo",{type:"main",data:{id:0}}),e.commit("tar/setParams",{page:"1",articleTags:"",articleId:"0"}),e.commit("setPageName",t.name),{initialNewsArticles:f,starsCode:_,quoteOfDay:v}}async fetch(){}get sections(){const e=this.articles,t=this.topics;return c.a.filter((({section:section,subsection:o})=>{var n;if("topics"===section)return(null==t?void 0:t.mostCommentedTopics.length)||(null==t?void 0:t.popularTopics.length)||(null==t?void 0:t.weekTopics.length);return null==e||null===(n=e[o?`${section}_${o}`:section])||void 0===n?void 0:n.length}))}get isShowBillboardTopline(){return base.IS_COSMOPOLITAN||base.IS_GOODHOUSE||base.IS_ARCAN}get isShowArcanSigns(){return base.IS_ARCAN}get isShowQuoteOfTheDay(){return base.IS_SLOVA}get accessProjectAppendSeparator(){return base.IS_BAZAAR||base.IS_ESQUIRE}isLastSection(section){return c.a.length===section}getAppendSeparatorByIndex(e){if(this.accessProjectAppendSeparator)return this.isLastSection(e+1)&&m.a.length>e+1?this.getSeparatorByIndex(e+1):void 0}beforeRouteLeave(e,t,o){this.$store.commit("tar/resetParams",null),this.$store.commit("feature/setPayload",null),o()}
1async fetchArticles({section:section,subsection:e,otherArticles:t}){if("topics"===section){const e=await(async()=>{const{MatrixApi:e}=await Promise.all([o.e(0),o.e(1),o.e(2),o.e(3)]).then(o.bind(null,28));let t=[],n=[],r=[];const[c,l,d]=await Promise.allSettled([e.topic.fetchTopics({limit:4,offset:0,on_main:1}),e.topic.fetchTopicPopularWeek({limit:15,offset:0,on_main:1}),e.article.fetchMostCommentedArticles({type:25,count:5,page:1,on_main:1})]);return"fulfilled"===c.status&&(t=c.value.articles.map((e=>Object.freeze({active_from:e.active_from,image:e.image,comments_count:e.comments_count,code:e.code,name:e.name,id:e.id,user:e.user,type:e.type,section:e.section})))),"fulfilled"===d.status&&(r=d.value.articles.map((e=>Object.freeze({image:e.image,comments_count:e.comments_count,code:e.code,name:e.name,id:e.id,user:e.user})))),"fulfilled"===l.status&&(n=l.value.articles.map((e=>Object.freeze({active_from:e.active_from,image:e.image,comments_count:e.comments_count,code:e.code,name:e.name,id:e.id,user:e.user,type:e.type,section:e.section})))),n=n.reduce(((e,o)=>(t.some((i=>i.id===o.id))||r.some((i=>i.id===o.id))||e.length>=6||e.push(o),e)),[]),{popularTopics:t,weekTopics:n,mostCommentedTopics:r}})();await Promise.all([o.e(4),o.e(0),o.e(6),o.e(8),o.e(7),o.e(77)]).then(o.bind(null,4182));const t=e.popularTopics.length>0||e.mostCommentedTopics.length>0||e.weekTopics.length>0;return t&&(this.topics=e),{hasMore:t}}const n=this.getArticlesList.map((({id:e})=>e)),{MatrixApi:r}=await Promise.all([o.e(0),o.e(1),o.e(2),o.e(3)]).then(o.bind(null,28)),l="fresh"===section,d=base.IS_ARCAN?3:5;let h=[];if("function"==typeof t){const{articles:e}=await t({exclude_ids:n});h=e}else h=l?await r.article.fetchArticleFresh({count:d,exclude_ids:n,exclude_parent_sections:c.a.map((({section:section})=>section)).filter((section=>"fresh"!==section)).join(",")}):await r.article.fetchLastArticles({section:section,subsection:e,count:d,exclude_ids:n});const m=e?`${section}_${e}`:section;return this.articles=Object.freeze({...this.articles,[m]:h}),{hasMore:h.length>0}}getArticles(section,e){if("main"===section)return base.IS_ARCAN?this.getArticlesList.slice(0,3):this.getArticlesList;const t=e?`${section}_${e}`:section;return this.articles&&Array.isArray(this.articles[t])?this.articles[t]:[]}getArticleSection(e,t){const[article]=this.getArticles(e,t);return"fresh"===e&&article?{...article.section,code:"fresh"}:article?article.section:void 0}
1getArticleSubsection(e,t,o){const n=c.a[o];if(!n||!n.subsection)return;const section=this.getArticleSection(e,t);return section?section.subsection:void 0}async loadSection(){var e;if(this.load)return;if(!this.hasMore)return void(this.isVisibleFooter||this.setVisibleFooter(!0));this.depth++,this.load=!0,null===(e=this.$nuxt.$loading)||void 0===e||e.start();let t=!1;try{const e=c.a[this.depth];if(!e)return;const{section:section,subsection:o,otherArticles:n}=e;await Object(f.a)(),await this.nextSeparatorData(),this.isLastSection(this.depth+1)&&m.a.length>this.depth+1&&await this.nextSeparatorData();const{hasMore:r}=await this.fetchArticles({section:section,subsection:o,otherArticles:n});t=r}catch(e){console.error(e)}finally{var o;null===(o=this.$nuxt.$loading)||void 0===o||o.finish(),this.load=!1,t||this.loadSection()}}onChangeDepth(){this.setTars({page:(this.depth+2).toString(),articleId:"0",exclusive:this.adTarExclusive})}onRenderAd({bannerHash:e,bannerName:t,isEmpty:o}){this.sendAdStat({bannerHash:e,bannerName:t,isEmptyBanner:o})}};_([n.State],v.prototype,"isVisibleFooter",void 0),_([r.tarModule.Mutation("setParams")],v.prototype,"setTars",void 0),_([r.tarModule.State("exclusive")],v.prototype,"adTarExclusive",void 0),_([r.articleModule.Getter],v.prototype,"getArticlesList",void 0),_([r.articleModule.Getter],v.prototype,"getPopArticles",void 0),_([n.Mutation],v.prototype,"setVisibleFooter",void 0),_([Object(n.Watch)("depth")],v.prototype,"onChangeDepth",null),v=_([Object(n.Component)({components:{PreviewTopicsOnMain:()=>Promise.all([o.e(4),o.e(0),o.e(6),o.e(8),o.e(7),o.e(77)]).then(o.bind(null,4182)),ArcanSigns:()=>o.e(154).then(o.bind(null,4211)),QuoteOfTheDay:()=>Promise.all([o.e(0),o.e(190)]).then(o.bind(null,4285))}})],v);var A=v,S=(o(1980),o(1982),o(7)),component=Object(S.a)(A,(function(){var e=this,t=e._self._c;e._self._setupProxy;return t("InfiniteScroll",{staticClass:"main",on:{load:e.loadSection}},[e.isShowBillboardTopline?t("Ad",{staticClass:"main__billboard-topline",attrs:{"banner-name":"billboard_topline",id:"main-billboard-topline"},on:{render:e.onRenderAd}}):e._e(),e._v(" "),e.isShowArcanSigns?t("ArcanSigns"):e._e(),e._v(" "),e.isShowQuoteOfTheDay&&e.quoteOfDay?t("QuoteOfTheDay",{attrs:{quote:e.quoteOfDay,starsCode:e.starsCode}}):e._e(),e._v(" "),e.enabledPopArticles?t("ArticlesPopular",{staticClass:"main__articles-popular",attrs:{popArticles:e.getPopArticles}}):e._e(),e._v(" "),t("div",{key:"mainInner",staticClass:"main__inner",attrs:{id:"mainInner"}},[t("PreviewSection",{staticClass:"main__preview-section",attrs:{"initial-articles":e.getArticles("main"),"send-stats":!0,"initial-news-articles":e.initialNewsArticles,id:"previewSection-1",pageName:"home"},on:{"render:ad":e.onRenderAd}}),e._v(" "),e._l(e.sections,(function({section:section,subsection:o,title:title},n){return t("div",{key:o?`${section}_${o}`:section,staticClass:"main__preview-section"},[t("PreviewSection",{attrs:{keyIndex:n,"initial-articles":e.getArticles(section,o),sectionCount:n+1,"last-section":e.isLastSection(n+1),section:e.getArticleSection(section,o),subsection:e.getArticleSubsection(section,o,n),title:title,id:`previewSection-${n+2}`,separator:e.getSeparatorByIndex(n),"append-separator":e.getAppendSeparatorByIndex(n),pageName:"home"},on:{"render:ad":e.onRenderAd},scopedSlots:e._u(["topics"===section?{key:"customSection",fn:function(){return[t("PreviewTopicsOnMain",{staticClass:"main__preview-topics-on-main",attrs:{topics:e.topics}})]},proxy:!0}:null],null,!0)})],1)})),e._v(" "),t("ContentLoader",{directives:[{name:"show",rawName:"v-show",value:e.load,expression:"load"}]})],2)],1)}),[],!1,null,"2e81b948",null);t.default=component.exports},843:function(e,t,o){var content=o(1981);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,o(17).default)("85163ac0",content,!0,{sourceMap:!1})},844:function(e,t,o){var content=o(1983);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,o(17).default)("0dc3f51f",content,!0,{sourceMap:!1})}}]);

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.