PageSourceSearch

https://static2.ntv.ru/assets/js/card-item-Qmv9yCpI.js

js ntv.ru collected 2026-09-24 15:34:39 UTC 10,289 bytes, 1 lines download raw bytes

1import{_ as _sfc_main$f}from"./two-column.type_style-C3X_IceH.js";import{d as defineComponent,ac as useHead,bz as NTV_PREFIX,ab as CDN,ae as setImg,$ as renderSlot,j as computed,ag as clear,bX as APP_DESK_DEFAULT,o as openBlock,c as createElementBlock,e as createVNode,f as withCtx,a as unref,v as createBlock,q as hUi,s as createTextVNode,t as toDisplayString,h as createCommentVNode,g as createBaseVNode,U as Transition,F as Fragment,k as renderList,m as mergeProps,Z as resolveDynamicComponent,D as fetchData,a5 as prefetchData,aj as API_WIDGETS_PATH,I as useRoute,y as ref,w as watch,aA as normalizeProps}from"../main-Osi-qHrI.js";import{e as getBreadcrumbList,g as getTodayMeta,f as getPublisher,h as getKeyWords,i as getImageSchema}from"./content-5dM5NiH6.js";import{u as useSdaEntity}from"./use-sda-entity-CnO_kTt3.js";import{_ as _sfc_main$c}from"./ad-full-width.type_style-oDi1nsbB.js";import{u as useStatSpider,a as useGostat}from"./use-stat-spider-BJsRLwG5.js";import{A as AnchorComments,_ as _sfc_main$e}from"./comments.type_style-CEO3A0eI.js";import{_ as _sfc_main$7}from"./content-img.type_style-D1V2s2Wf.js";import{_ as _sfc_main$6}from"./content-top.type_style-7wmqSeOG.js";import{_ as _sfc_main$5}from"./social-share.type_style-DQW88Qqe.js";import{_ as _sfc_main$8}from"./tags.type_style-zJu1OokM.js";import{_ as _sfc_main$9}from"./simple-card.type_style-BN40_2pF.js";import{N as NewsContentText}from"./content-text.type_style-KSEG8ppn.js";import{_ as _sfc_main$a}from"./base-card.type_style-BIIBla9L.js";import{_ as _sfc_main$b}from"./recommendations.type_style-Bwiw7gB5.js";import{_ as _sfc_main$d}from"./right-col.vue_vue_type_script_setup_true_lang-DACR4y34.js";import{u as usePreloadServer}from"./use-preload-server-DqjEJ3cY.js";import"./use-sda-slots-DZTxy-P8.js";import"./stat-BenMAn5m.js";import"./uexp-DLU-0kV0.js";import"./position-9wr9tuCt.js";import"./incut-source.type_style-Dxx5k0t0.js";import"./views.vue_vue_type_script_setup_true_lang-DVPmc9qP.js";import"./photo-gallery.type_style-D9ppVr3B.js";import"./use-custom-router-DJ9Yk2x1.js";/* empty css                                     *//* empty css                                  *//* empty css                                       */import"./form-item.type_style-DkUeUWlw.js";import"./form-error.type_style-CnDAmI8a.js";import"./validate-DGF7lndP.js";import"./form-pin.type_style-D2jSDKiM.js";import"./age-pin-pane.type_style-BWc38KNl.js";import"./oauth.type_style-BDNs8awx.js";import"./auth-icon.type_style-BW8O07Zi.js";import"./oauth-qKgWdK_7.js";/* empty css                              */import"./img-card.vue_vue_type_script_setup_true_lang-DM8jCHTg.js";import"./ad-side-bar.type_style-DZ7g9Tcm.js";const __default__$1=defineComponent({inheritAttrs:!1}),_sfc_main$4=defineComponent({...__default__$1,__name:"MetaCard",props:{texts:{},views:{},date:{},share:{},stat:{},tags:{},theme:{},category:{},videos:{},rest:{},noAd:{type:Boolean},isMsk:{type:Boolean},images:{},photoGalleries:{},cards:{},news:{},imageSource:{},id:{},title:{},annotation:{},img:{}},setup(e){const t=e,a=computed(()=>"".concat(clear(t.title)," ").concat("// Статьи НТВ")),o=computed(()=>clear(t.annotation||APP_DESK_DEFAULT)),s=computed(()=>getKeyWords(t.tags)),n=computed(()=>t.img?getImageSchema(t.img):null);var r,c;return useHead({title:a,meta:[...getTodayMeta("cards",t.id),{name:"title",content:a},{name:"description",content:o},{name:"keywords",content:s},{property:"og:type",content:"article"},{property:"og:title",content:a},{property:"og:description",content:o},...setImg(t.share,1024,576),{name:"twitter:url",content:"".concat(NTV_PREFIX,"/cards/").concat(t.id,"/")},{name:"twitter:title",content:a},{name:"twitter:description",content:o},{name:"twitter:image",content:"".concat(CDN).concat(t.share)}],link:[],script:[{...getBreadcrumbList("cards","Статьи",t.theme)},{...(r=s.value,c=t.images,{type:"application/ld+json",innerHTML:{"@context":"https://schema.org","@type":"Article",url:"".concat(NTV_PREFIX,"/cards/").concat(t.id,"/"),publisher:getPublisher(),headline:clear(t.title),description:o.value,mainEntityOfPage:"".concat(NTV_PREFIX,"/novosti/").concat(t.id,"/"),datePublished:t.date,about:r,...c?{image:c.map(e=>"".concat(CDN).concat(e.src))}:{}}})},n]}),(e,t)=>renderSlot(e.$slots,"default")}}),_hoisted_1$3={key:0,class:"card-content"},_hoisted_2$2={class:"card-content__main"},_hoisted_3={class:"card-content__soc"},_hoisted_4={class:"card-content__bottom"},_sfc_main$3=defineComponent({__name:"CardContent",props:{content:{}},setup:e=>(t,a)=>{const o=hUi;return e.content?(openBlock(),createElementBlock("section",_hoisted_1$3,[createVNode(unref(_sfc_main$6),{id:e.content.id,title:e.content.title,theme:e.content.theme,views:e.content.views,date:e.content.date,rest:e.content.rest,class:"content-item__top"},{"top-right":withCtx(()=>[createVNode(unref(_sfc_main$5),{dir:"horizontal",type:"trigger",title:e.content.title,class:"card-content__top-share"},null,8,["title"])]),_:1},8,["id","title","theme","views","date","rest"]),e.content.annotation?(openBlock(),createBlock(o,{key:0,inner:!0,type:"body",
1size:"m",class:"content-item__ann"},{default:withCtx(()=>[createTextVNode(toDisplayString(e.content.annotation),1)]),_:1})):createCommentVNode("",!0),e.content.img?(openBlock(),createBlock(unref(_sfc_main$7),{key:1,class:"card-content__img",img:e.content.img,"image-source":e.content.imageSource},null,8,["img","image-source"])):createCommentVNode("",!0),createBaseVNode("div",_hoisted_2$2,[createBaseVNode("div",_hoisted_3,[createVNode(unref(_sfc_main$5),{title:e.content.title,class:"card-content__share"},{default:withCtx(()=>[createVNode(unref(AnchorComments),{tag:"li",class:"card-content__comments-anchor"})]),_:1},8,["title"])]),createVNode(Transition,{mode:"out-in",name:"fade"},{default:withCtx(()=>[(openBlock(),createElementBlock("div",{key:e.content.id},[e.content.tags?(openBlock(),createBlock(unref(_sfc_main$8),{key:0,id:e.content.id,tags:e.content.tags,class:"card-content__tags"},null,8,["id","tags"])):createCommentVNode("",!0),renderSlot(t.$slots,"content")]))]),_:3}),createBaseVNode("div",_hoisted_4,[renderSlot(t.$slots,"content-bottom")])])])):createCommentVNode("",!0)}}),_hoisted_1$2={class:"card-read-also"},_hoisted_2$1={class:"card-read-also__content"},_sfc_main$2=defineComponent({__name:"CardReadAlso",props:{cards:{}},setup:e=>(t,a)=>{const o=hUi;return openBlock(),createElementBlock("div",_hoisted_1$2,[createVNode(o,{type:"subheading",size:"l",class:"card-read-also__title"},{default:withCtx(()=>[...a[0]||(a[0]=[createTextVNode("Читайте также",-1)])]),_:1}),createBaseVNode("div",_hoisted_2$1,[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.cards,e=>(openBlock(),createBlock(unref(_sfc_main$9),mergeProps({key:e.id},{ref_for:!0},e,{type:"article",link:"/cards/".concat(e.id)}),null,16,["link"]))),128))])])}}),_hoisted_1$1={class:"related-news"},_hoisted_2={class:"related-news__content"},_sfc_main$1=defineComponent({__name:"NewsRelated",props:{news:{}},setup:e=>(t,a)=>{const o=hUi;return openBlock(),createElementBlock("div",_hoisted_1$1,[createVNode(o,{type:"subheading",size:"l",class:"related-news__title"},{default:withCtx(()=>[...a[0]||(a[0]=[createTextVNode("Новости по теме",-1)])]),_:1}),createBaseVNode("div",_hoisted_2,[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.news,e=>(openBlock(),createBlock(resolveDynamicComponent(e.img?unref(_sfc_main$a):unref(_sfc_main$9)),mergeProps({key:e.id,ref_for:!0},e,{type:"news",link:"/novosti/".concat(e.id)}),null,16,["link"]))),128))])])}}),_hoisted_1={class:"card__blocks"},__default__=defineComponent({methods:{preloadPage:async(e,t)=>await prefetchData({client:e,path:API_WIDGETS_PATH,queryKey:["cards/item",t.params.id.toString()],params:{id:t.params.id.toString()}})}}),_sfc_main=defineComponent({...__default__,__name:"CardItem",setup(e){const t=useRoute(),a=ref(t.params.id.toString()),{data:o}=(e=>{const{suspense:t,data:a}=fetchData(["cards/item",e],{id:e});return usePreloadServer(async()=>{await t()}),{data:a}})(a),s=computed(()=>{var e,t;let a="common";return(null==(e=o.value)?void 0:e.isMsk)&&(a="msk"),1===(null==(t=o.value)?void 0:t.category)&&(a="economics"),a}),n=computed(()=>"article-".concat(a.value)),{showAd:r}=useSdaEntity(o);return useStatSpider(o,!0,"article"),useGostat(o,"article"),watch(t,()=>{"card-item"===t.name&&(a.value=t.params.id.toString())}),(e,t)=>{const c=hUi,i=_sfc_main$f;return openBlock(),createBlock(i,{class:"card"},{content:withCtx(()=>[unref(o)?(openBlock(),createBlock(unref(_sfc_main$4),normalizeProps(mergeProps({key:0},unref(o))),null,16)):createCommentVNode("",!0),unref(o)?(openBlock(),createBlock(unref(_sfc_main$3),{key:1,content:unref(o),class:"card__content"},{content:withCtx(()=>{var e;return[createBaseVNode("div",_hoisted_1,[(openBlock(!0),createElementBlock(Fragment,null,renderList(null==(e=unref(o))?void 0:e.texts,(e,t)=>(openBlock(),createElementBlock("div",{key:t,class:"card__block"},[createVNode(c,{type:"heading",size:"m",inner:!0,class:"card__title"},{default:withCtx(()=>[createTextVNode(toDisplayString(e.title),1)]),_:2},1024),createVNode(unref(NewsContentText),{text:e.text,galleries:unref(o).photoGalleries,images:unref(o).images,noads:!0,videos:unref(o).videos,type:"card"},null,8,["text","galleries","images","videos"])]))),128))])]}),"content-bottom":withCtx(()=>[unref(a)?(openBlock(),createBlock(unref(_sfc_main$e),{key:0,"thread-key":unref(n)},null,8,["thread-key"])):createCommentVNode("",!0)]),_:1},8,["content"])):createCommentVNode("",!0)]),rightCol:withCtx(()=>[createVNode(unref(_sfc_main$d),{offset:800,"show-ad":unref(r)},null,8,["show-ad"])]),footer:withCtx(()=>{var e,t;return[(null==(e=unref(o))?void 0:e.news)?(openBlock(),createBlock(unref(_sfc_main$1),{key:0,news:unref(o).news,class:"card__related-news"},null,8,["news"])):createCommentVNode("",!0),(null==(t=unref(o))?void 0:t.cards)?(openBlock(),createBlock(unref(_sfc_main$2),{key:1,cards:unref(o).cards,class:"card__read-also"},null,8,["cards"])):createCommentVNode("",!0),createVNode(unref(_sfc_main$b),{type:unref(s),class:"card__rec"},null,8,["type"]),unref(r)?(openBlock(),createBlock(unref(_sfc_main$c),{key:2})):createCommentVNode("",!0)]}),_:1})}}});
1export{_sfc_main as default};

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.