1(window.webpackJsonp=window.webpackJsonp||[]).push([[344],{1033:function(e,t,o){var content=o(2460);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,o(17).default)("48695212",content,!0,{sourceMap:!1})},2459:function(e,t,o){"use strict";o(1033)},2460:function(e,t,o){var n=o(16)((function(i){return i[1]}));n.push([e.i,".page-matcher__spinner[data-v-57f5986a]{--color:#000;--size:30px;margin:calc(var(--window-height)*.5 - var(--size)/2 - var(--navbar-height)/2) auto 0}@media only screen and (min-width:768px){.page-matcher__spinner[data-v-57f5986a]{--size:60px}}",""]),n.locals={},e.exports=n},4263:function(e,t,o){"use strict";o.r(t);o(5),o(595),o(596),o(173);var n=o(63),c=o.n(n),l=o(4232),r=o(1),d=o(736),m=o(2458),base=o(2),f=o(123),h=o(9);function v({section:section,subsection:e}){return"recipes"===section&&"blog"!==e&&!base.IS_DEFINED_SUBPLATFORM}var P=o(180),_=o(633),w=o(737);var I=o(639);let y=null;o(62);var A=o(638),O=o(690),S=o(92);var C=o(784),E=function(e,t,o,desc){var n,c=arguments.length,l=c<3?t:null===desc?desc=Object.getOwnPropertyDescriptor(t,o):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,o,desc);else for(var i=e.length-1;i>=0;i--)(n=e[i])&&(l=(c<3?n(l):c>3?n(t,o,l):n(t,o))||l);return c>3&&l&&Object.defineProperty(t,o,l),l};const V=base.IS_GIFTS_THEVOICE;let R=class extends r.Vue{get localComponentName(){return this.isReady&&this.$data.componentProps.isEnabledABVideoArticle?this.appVariant>4?"VideoDetailPage":"VideoFeed":this.$data.componentName}get localComponentProps(){return!this.isReady&&this.$data.componentProps.isEnabledABVideoArticle?{...this.$data.componentProps,loadingPage:!0,activatedVideoFeed:!1}:this.$data.componentProps}beforeRouteLeave(e,t,o){this.$store.commit("setAppOffAd",!1),this.$store.commit("article/setArticle",null),this.$store.commit("tar/resetParams",null),this.$store.commit("feature/setPayload",null),d.a.startNewScrollSession(),o()}async asyncData({route:e,store:t,error:n,query:r,redirect:d,res:E,$config:R,app:{router:H}}){var N,T,D;const j=t.getters["section/sections"],M=t.getters["section/subsiteSections"],F=t.getters["subsection/subsections"],$={...j,...M},z=Object(m.a)({route:e,sections:$,subsections:F});if(null==z||!z.name)return void n({statusCode:404});if(V&&z.name===h.z){var x;const[section,t]=e.path.split("/").filter(Boolean);if(!!F[`${t}_${$[section]?null===(x=$[section])||void 0===x?void 0:x.id:void 0}`]&&H)return d(301,H.resolve({name:h.w,params:{section:section}}).href)}const L="string"==typeof r.accessHash?r.accessHash:void 0,B=!(null===(N=z.params)||void 0===N||!N.code)&&v({section:null===(T=z.params)||void 0===T?void 0:T.section,subsection:null===(D=z.params)||void 0===D?void 0:D.subsection})?"recipe":z.name;try{switch(B){case h.w:case h.z:{var k,G,U;const l=null===(k=z.params)||void 0===k?void 0:k.section,m=null===(G=z.params)||void 0===G?void 0:G.subsection;if(l&&M[l])return n({statusCode:404});const f=Number.isInteger(+r.page)?+r.page:void 0;if(1===f&&H){const t={...r};return delete t.page,d(301,H.resolve({path:e.path,query:t}).href)}const P=$[l],_=P?F[`${m}_${P.id}`]:void 0,w="video"===l&&(base.IS_COSMOPOLITAN||base.IS_GOODHOUSE||base.IS_POPMECH||base.IS_MHEALTH||base.IS_GRAZIA||base.IS_ESQUIRE)?await async function({sections:e}){var t;const n=(null===(t=e.video)||void 0===t?void 0:t.id)||null,c=base.IS_COSMOPOLITAN||base.IS_GRAZIA||base.IS_GOODHOUSE||base.IS_MHEALTH||base.IS_POPMECH,{MatrixApi:l}=await Promise.all([o.e(0),o.e(1),o.e(2),o.e(3)]).then(o.bind(null,28));if(c){await Object(O.a)();const[e,t,o,c]=await Promise.allSettled([l.article.fetchArticlesVideo({orientation:2,limit:6,offset:0,count:6}),l.article.fetchArticlesVideo({orientation:1,limit:6,offset:0,count:6}),l.article.fetchVideoRecommendation({vertical:1,limit:10,offset:0,logic:2}),l.article.fetchVideoRecommendation({vertical:0,limit:10,offset:0,logic:2})]),r={items:[],totalCount:0},d={items:[],totalCount:0},m={items:[],totalCount:0},f={items:[],totalCount:0};if("fulfilled"===e.status&&(r.items=Object(S.a)(e.value.articles),r.totalCount=e.value.total_count),"fulfilled"===t.status&&(d.items=Object(S.a)(t.value.articles),d.totalCount=t.value.total_count),"fulfilled"===o.status){const e=[];for(const{id:t}of r.items)if(e.push(t),e.length>2)break;m.items=o.value.articles.reduce(((t,article)=>
1(e.includes(article.id)||t.push(Object.freeze(article)),t)),[]),m.totalCount=o.value.total_count}if("fulfilled"===c.status){const e=[];for(const{id:t}of d.items)if(e.push(t),e.length>2)break;f.items=c.value.articles.reduce(((t,article)=>(e.includes(article.id)||t.push(Object.freeze(article)),t)),[]),f.totalCount=c.value.total_count}return{pageType:"video",componentName:"VideoCatalog",componentProps:{sectionId:n,subsectionId:null,isEnabledPagination:!1,newVerticalVideos:r,newHorizontalVideos:d,popularVerticalVideos:m,popularHorizontalVideos:f}}}const{articles:r}=await l.article.fetchVideoArticlesByBlock({code:"video-fixed",videoType:A.c.YANDEX,withPositions:!1}),d=await l.article.fetchArticlesVideo({orientation:2,count:6,page:1}),m=[{items:d.articles}],f=d.total_count,h=await l.article.fetchArticlesVideo({orientation:1,count:5,page:1});return{pageType:"video",componentName:"VideoListPage",componentProps:{sectionId:n,subsectionId:null,isEnabledPagination:!1,mainVideoSeparatorItems:r,videosBlocks:m,newVideosBlocks:[{items:h.articles}],totalCardsCount:f,totalSeparatorCount:h.total_count}}}({sections:$}):await async function({page:e,section:section,subsection:t,accessHash:n}){var l;const{MatrixApi:r}=await Promise.all([o.e(0),o.e(1),o.e(2),o.e(3)]).then(o.bind(null,28)),d=base.IS_ESQUIRE&&"news"===section.code,m=v({section:section.code,subsection:null==t?void 0:t.code});let f=0;const h=base.ENABLED_PAGINATION_SECTION_PAGE&&!m&&"video"!==section.code;let P=[],_=[],w=5;(base.IS_GIRLSPOWER||d)&&(w=9),base.IS_ARCAN&&(w=3);const A=h?{page:1,count:9}:{offset:0,limit:w};let O=A.limit||A.count||0;var S;if(A.page&&A.count&&(A.page=null!=e?e:A.page,O=A.page*A.count),y&&(y.cancel(),y=null),y=c.a.CancelToken.source(),m)P=await r.recipe.fetchRecipeArticles({...A,category_code:section.code,cancelToken:null===(S=y)||void 0===S?void 0:S.token,accessHash:n});else if("video"===section.code){var C;P=await r.article.fetchVideoArticles({...A,cancelToken:null===(C=y)||void 0===C?void 0:C.token,accessHash:n})}else{var E;const{articles:e,total_count:o}=await r.article.fetchArticles({...A,section:section.parent_code||section.code,subsection:section.parent_code?section.code:null==t?void 0:t.code,cancelToken:null===(E=y)||void 0===E?void 0:E.token,accessHash:n});if(P=e,f=o&&A.count?Math.ceil(o/A.count):f,!e.length&&h)throw new Error("articles not found")}if((base.IS_POPMECH||base.IS_GOODHOUSE)&&base.AVAILABLE_SECTIONS_FOR_NEWS.includes(section.code)){const e=base.IS_POPMECH?"news":section.code,t=base.IS_POPMECH?section.code:"news";_=await r.article.fetchLastArticleNews({section:e,subsection:t,count:4})}Object.freeze(P);let V=9;(base.IS_BAZAAR||base.IS_POPMECH)&&(V=5),base.IS_ARCAN&&(V=3);const R=P.length>0?Object(I.a)({section:P[0].section}):null;return{pageType:"category",componentName:"Section",componentProps:{sectionId:(null==R?void 0:R.id)||null,subsectionId:(null==R||null===(l=R.subsection)||void 0===l?void 0:l.id)||null,initialOffset:O,isEnabledPagination:h,isRecipes:m,initialArticles:P,initialNewsArticles:_,limit:V,totalPages:f}}}({page:f,section:P,subsection:_,accessHash:L}),C=w.componentProps.sectionId,E=w.componentProps.subsectionId;return t.commit("feature/setPayload",{sectionId:B===h.z?E:C,sectionCode:null==P?void 0:P.code,subsectionCode:null==_?void 0:_.code}),t.commit("setPageName",z.name),t.commit("setVisibleFooter",null!==(U=w.componentProps.isEnabledPagination)&&void 0!==U&&U),C?(t.commit("tar/setParams",{articleTags:"",page:"1",articleId:z.name===h.z?null==E?void 0:E.toString():null==C?void 0:C.toString()}),t.commit("setPageInfo",{type:w.pageType,data:{id:z.name===h.z?E:C,parentId:z.name===h.z?C:null}})):(t.commit("setPageInfo",{type:w.pageType}),t.commit("tar/resetParams",null)),t.commit("switchVideoFeed",!1),w}case h.J:case h.H:case h.i:case h.t:{var J,Z,Q,W,X,Y;const n=null===(J=z.params)||void 0===J?void 0:J.id,c=n&&Number.isInteger(+n)?+n:null===(Z=z.params)||void 0===Z?void 0:Z.code;if(!c)throw new Error("article code undefined");const m=await async function({code:code,accessHash:e,sections:t}){var n;await Promise.all([Object(_.h)(),Promise.all([o.e(0),o.e(10),o.e(19),o.e(28),o.e(26),o.e(30),o.e(36),o.e(35),o.e(43),o.e(47)]).then(o.bind(null,4168)),Promise.all([o.e(4),o.e(0),o.e(6),o.e(8),o.e(1),o.e(7),o.e(2),o.e(13),o.e(3),o.e(17),o.e(20),o.e(23),o.e(29),o.e(5),o.e(28),o.e(37),o.e(41),o.e(53),o.e(68)]).then(o.bind(null,4250)),Promise.all([o.e(0),o.e(62),o.e(75)]).then(o.bind(null,4248))]);const{MatrixApi:c}=await Promise.all([o.e(0),o.e(1),o.e(2),o.e(3)]).then(o.bind(null,28)),l="string"==typeof code?await c.article.fetchArticle({code:code,accessHash:e}):await c.article.fetchArticleById({id:+code,accessHash:e}),r="redirect"in l?l.redirect:null,article="article"in l?l.article:null;if(r)return{componentProps:{redirectUrl:r}};if(!article)return null;const{modifyArticle:d}=await Promise.all([o.e(0),o.e(2)]).then(o.bind(null,4177));d(article,{order:0});const m=null===(n=article.section)||void 0===n?void 0:n.code;let f=[],h=null;if(!m||!t[m])return null;const v=P.a&&"video"===article.type&&!!article.first_video&&!!article.first_video.external_id&&["yandex","yandex_cloud"].includes(article.first_video.external_type);let I=null,y="Detail";const A="award"===article.type;let O="article";if(base.IS_POPMECH&&"blog"===article.type){const[e,t]=await Promise.allSettled([c.reaction.fetchReactions({id:article.i
1d}),c.comment.fetchComments({item_id:article.id,model_id:1})]);"fulfilled"===e.status&&(h=e.value),"fulfilled"===t.status&&(f=t.value)}v&&article.id?(I=await c.article.fetchShortVideoArticle({id:article.id,accessHash:e}),O="videoarticle",y=base.ENABLED_VIDEO_DETAIL_PAGE?"VideoDetailPage":"VideoFeed"):A&&(y="StarAwardsPage");const S="VideoDetailPage"===y&&Object(w.a)();return Object.freeze(article),{pageType:O,componentName:y,componentProps:{article:article,videoArticle:I,comments:f,reactions:h,enabledVideoFeed:v,isEnabledABVideoArticle:S}}}({code:c,accessHash:L,sections:$,subsections:F});if(null==m||!m.componentProps.article)throw new Error("article not found");const{article:article,enabledVideoFeed:v}=m.componentProps,I=article.section.code?M[article.section.code]:void 0;if(null!=I&&null!==(Q=I.subsite)&&void 0!==Q&&Q.host){const e="PROD"===R.APP_FRONT_ENV?I.subsite.host:`${R.APP_FRONT_ENV.toLowerCase()}.${I.subsite.host}`,t=new URL(`https://${e}/-${article.id}/`);return L&&t.searchParams.set("accessHash",L),d(301,t.toString())}if(H){if("biography"===article.type)return d(301,H.resolve({name:h.d,params:{symbol
1:article.code}}).href);if("topic"===article.type)return d(301,H.resolve({name:h.F,params:{code:article.code}}).href);const link=Object(f.a)({article:article,query:r}),t=decodeURIComponent(e.fullPath),o=decodeURIComponent(link.to?H.resolve(link.to).href:link.href);if(t!==o)return d(301,o)}"StarAwardsPage"===m.componentName?(t.commit("setAppOffAd",!0),t.commit("setVisibleFooter",!0)):t.commit("setVisibleFooter",!1),t.commit("switchVideoFeed",v),t.commit("tar/setParams",{articleNative:null!==(W=article.native)&&void 0!==W&&W.length?article.native:null,articleId:article.is_old_article?"111":article.id.toString(),articleTags:article.tags.map((e=>e.code)).join(","),page:"1",content:article.negative_content?"negative":""}),t.commit("setPageName","detail"),t.commit("setPageInfo",{type:m.pageType,data:{id:article.id,parentId:article.section.subsection.id,scroll:1},orderArticleIds:[article.id]});const y=article.active_to?Object(l.a)(article.active_to,"yyyy-MM-dd HH:mm",new Date):null;let A=Date.now();return base.IS_PROD&&(A=(new Date).setHours((new Date).getHours()+3)),article.native_advertising&&y&&y.getTime()<A&&t.commit("modal/toggleContentOverlapModal",!0),t.commit("article/setArticle",{id:article.id,off_ad:!!article.off_ad,in_yandex_news:!!article.in_yandex_news,type:article.type,codeAward:null!==(X=null===(Y=article.poll_attached)||void 0===Y||null===(Y=Y.award)||void 0===Y?void 0:Y.slug)&&void 0!==X?X:null}),null==E||E.setHeader("Cache-Control",Object(C.a)({page:"article",appMode:R.NODE_APP_MODE})),m}case"recipe":{var K,ee;const c=null===(K=z.params)||void 0===K?void 0:K.code,l=null===(ee=z.params)||void 0===ee?void 0:ee.section;if(l&&M[l])return n({statusCode:404});if(!c)throw new Error("recipe code undefined");const section=l?$[l]:null,m=await async function({code:code,accessHash:e}){const{MatrixApi:t}=await Promise.all([o.e(0),o.e(1),o.e(2),o.e(3)]).then(o.bind(null,28)),n=await t.recipe.fetchRecipeByCode({code:code,accessHash:e}),c=base.enabledRecipeIngredientsList?await t.recipe.fetchRecipeCategories({accessHash:e}):[];let l=[],r=[],d=[];if(!n.step_by_step&&n.id)try{const[o,c,m]=await Promise.all([t.recipe.fetchRecipeRecommendsSimilar({id:n.id,accessHash:e}),t.recipe.fetchRecipeRecommendsCategory({id:n.id,accessHash:e}),t.recipe.fetchRecipeRecommendsSeason({id:n.id,accessHash:e})]);l=o,r=c,d=m}catch(e){console.error("Error loading recipe recommendations:",e)}return{componentName:"Recipe",componentProps:{isStepsRecipe:n.step_by_step,initialRecipes:Object.freeze([n]),initialRecipe:n,ingredientsItems:Object.freeze(c),recipesSimilar:Object.freeze(l),recipesCategory:Object.freeze(r),recipesSeason:Object.freeze(d)}}}({code:c,accessHash:L}),{initialRecipe:h}=m.componentProps,link=Object(f.a)({query:r,article:{id:h.id,code:h.code,section:{code:"recipes",subsection:{code:h.category_code}}}}),v=decodeURIComponent(e.fullPath),P=link.to?null==H?void 0:H.resolve(link.to).href:link.href;return P&&v!==P?d(301,P):(t.commit("setPageInfo",{type:"recipe",data:{id:h.id,parentId:null==section?void 0:section.id}}),t.commit("switchVideoFeed",!1),m)}default:throw new Error("page not found")}}catch(e){if("ERR_REDIRECT"===(null==e?void 0:e.message))throw e;if(!c.a.isCancel(e)){const t=e;n({statusCode:404,message:(null==t?void 0:t.message)||""}),console.error(e)}}}mounted(){this.$store.commit("switchVideoFeed",this.$data.componentProps.enabledVideoFeed)}beforeDestroy(){this.$store.commit("switchVideoFeed",!1)}};E([r.State],R.prototype,"isReady",void 0),E([r.Getter],R.prototype,"appVariant",void 0),R=E([Object(r.Component)({components:{Section:()=>Promise.all([o.e(4),o.e(0),o.e(10),o.e(34),o.e(37),o.e(36),o.e(135),o.e(137),o.e(292)]).then(o.bind(null,4388)),Detail:()=>Promise.all([o.e(0),o.e(10),o.e(19),o.e(28),o.e(26),o.e(30),o.e(36),o.e(35),o.e(43),o.e(47)]).then(o.bind(null,4168)),Recipe:()=>Promise.all([o.e(0),o.e(26),o.e(30),o.e(291)]).then(o.bind(null,4389)),VideoFeed:()=>Promise.all([o.e(0),o.e(10),o.e(19),o.e(47),o.e(134),o.e(380)]).then(o.bind(null,4390)),VideoListPage:()=>Promise.all([o.e(4),o.e(0),o.e(6),o.e(7),o.e(11),o.e(12),o.e(14),o.e(15),o.e(18),o.e(22),o.e(25),o.e(32),o.e(34),o.e(38),o.e(42),o.e(57),o.e(65
1),o.e(125),o.e(176)]).then(o.bind(null,4242)),VideoCatalog:()=>Promise.all([o.e(4),o.e(0),o.e(6),o.e(7),o.e(14),o.e(32),o.e(34),o.e(57),o.e(67),o.e(110),o.e(125),o.e(350)]).then(o.bind(null,4391)),VideoDetailPage:()=>Promise.all([o.e(0),o.e(1),o.e(2),o.e(10),o.e(3),o.e(19),o.e(28),o.e(26),o.e(30),o.e(36),o.e(35),o.e(43),o.e(47),o.e(69),o.e(134),o.e(188)]).then(o.bind(null,4252)),StarAwardsPage:()=>Promise.all([o.e(0),o.e(21),o.e(25),o.e(74),o.e(118),o.e(165)]).then(o.bind(null,4237))}})],R);var H=R,N=(o(2459),o(7)),component=Object(N.a)(H,(function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"page-matcher"},[e.localComponentProps.loadingPage?t("MSpinner",{staticClass:"page-matcher__spinner"}):e._e(),e._v(" "),t(e.localComponentName,e._b({tag:"component"},"component",e.localComponentProps,!1))],1)}),[],!1,null,"57f5986a",null);t.default=component.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.