1import{_ as C}from"./Adfox-c2965d16.js";import{_ as R}from"./ArticleOpinionItem-b435a250.js";import{_ as U}from"./ArticlesPreviewList-6204b427.js";import{_ as j}from"./Banner-0ea3d849.js";import{u as H}from"./useInitialState-034af1d9.js";import{u as V}from"./useUserDataUpdate-30e82c7b.js";import{u as W,g as z}from"./index-5e4ad7dc.js";import{t as G}from"./trailingSlash-0f36b6b1.js";import{g as q}from"./meta-95cede1a.js";import{c as J}from"./socials-04267ff6.js";import{g as K}from"./getAdfoxSessionUnit-d818a3ad.js";import{z as Q,x as X,a4 as Y,O as Z,f as T,y as t,A as uu,at as eu,C as p,a6 as y,a8 as f,aa as tu,ab as v,a7 as g,ac as su,av as n,D as k}from"./vendor-0c36d451.js";import{u as ou}from"./useDesktopRightBanner-a3d81551.js";import{_ as au}from"./plugin-vue_export-helper-c27b6911.js";import"./useCategoryHelper-414056ac.js";import"./BaseImage-a5981352.js";/* empty css */import"./SvgIcon-e596f7e4.js";import"./isLocked-e08ca20f.js";import"./ArticlePreviewItem-559cd78b.js";import"./PartnerTool-28e344dc.js";import"./Tooltip-9de21ff1.js";/* empty css *//* empty css */import"./isNonEmptyObject-8ba6e004.js";import"./returnLinkTarget-76d01e4e.js";/* empty css */import"./DotsLoader-fd0be209.js";import"./Loader-fc37ff41.js";import"./logger-e10aea59.js";import"./no-photo-a9ea1a49.js";import"./SalmonButton-fdee9c07.js";import"./consola-a319bdc8.js";import"./sentry-852b7929.js";import"./polyfills-c07c29bf.js";import"./axios-e9234e4d.js";import"./imask/esm-18c5e0c7.js";import"./lodash-ed29789a.js";import"./crypto-bn-573a9517.js";import"./elliptic-ad06cbf4.js";const iu={class:"page-theme"},ru={class:"page-theme__content"},nu={key:0,class:"page-theme__title"},lu={class:"page-theme__ad adfox--300x600"},_=12,mu=Q({__name:"PageThemes",setup(cu){V();const h=X(),x=W(),i=Y(),s=Z("adfox"),l=T({}),d=T(null),{desktopRightBanner:w,changeBanner:S}=ou(s.units),D=t(()=>i.getters["viewport/isMobile"]),$=t(()=>i.getters["viewport/isTablet"]),M=t(()=>i.getters["viewport/isWideTablet"]),I=t(()=>i.getters["viewport/isDesktopOrHigher"]),N=t(()=>D.value?"Mobile_content_1":$.value||M.value?"Tablet_content":"Billboard_content"),F=t(()=>{const u=N.value,e=u==="Billboard_content";return K(s.units,u,e)}),P=t(()=>{var u,e;return D.value?((u=s==null?void 0:s.units)==null?void 0:u.Mobile_bottom)||{}:((e=s==null?void 0:s.units)==null?void 0:e.Tablet_bottom)||{}}),E=(u,e)=>l.value=J({title:e.seo_title||"«ÐедомоÑÑи» â ведÑÑее деловое издание РоÑÑии",subtitle:`${e.seo_description} ${u}`||"ÐаÑеÑÑвеннÑй конÑÐµÐ½Ñ Ð¾ бизнеÑе, Ñкономике, ÑинанÑаÑ
и полиÑике. Свежие новоÑÑи, ÑкÑпеÑÑнÑе ÑÑаÑÑи и аналиÑика в деловом издании «ÐедомоÑÑи»",keywords:e.seo_keywords||"ведомоÑÑи, vedomosti, деловое издание о бизнеÑе, полиÑике, Ñкономике, ÑинанÑаÑ
, недвижимоÑÑи, инвеÑÑиÑиÑÑ
, обÑеÑÑве, менеджменÑе, медиа",image:q(x.value),type:"website",url:`${z()}${h.path}`},{customTitle:!0,useCDN:!1});uu({title:t(()=>l.value.title),meta:t(()=>l.value.meta),link:t(()=>l.value.link)});const{data:o,save:L}=H(`page-themes_${G(h.path)}`),O=u=>{u&&(d.value=u)},B=u=>{var e;O(u.title),E(((e=u.articles[0])==null?void 0:e.title)??"",u.seoMeta)};o.value&&B(o.value);const b=t(()=>{const u=h.path.match(/^\/themes\/([^/]+)/);return u?u[1]:null});return eu(async()=>{var A;if(!b.value)return;const u=await i.dispatch("articlesPreviewList/fetch",{url:`/lists/theme-${b.value}-top`,offset:0,limit:_+1,server:!0}),{documents:e,header:m,description:a}=u,c=((A=e==null?void 0:e.documents)==null?void 0:A.length)>0?e.documents:e,r=Array.isArray(c)?c:[];o.value={title:m||(a==null?void 0:a.title)||null,articles:r.slice(0,_),hasMore:r.length>_,seoMeta:{seo_title:u.seo_title,seo_description:u.seo_description,seo_keywords:u.seo_keywords}},L(),B(o.value)}),(u,e)=>{var m,a;return p(),y("div",null,[f("div",iu,[f("div",ru,[d.value?(p(),y("h1",nu,tu(d.value),1)):v("",!0),g(n(U),{class:"page-theme__list","is-page":!0,limit:_,"initial-articles":(m=n(o))==null?void 0:m.articles,"initial-has-more":(a=n(o))==null?void 0:a.hasMore,onIncreaseCounter:n(S),onGetLatestArticleTitle:E},{pageContent:su(({article:c,index:r})=>[g(R,{article:c},null,8,["article"]),!I.value&&r===2?(p(),k(C,{key:0,unit:F.value,class:"adfox--
1pages"},null,8,["unit"])):v("",!0),r===11?(p(),k(C,{key:1,unit:P.value,class:"adfox--pages"},null,8,["unit"])):v("",!0)]),_:1},8,["initial-articles","initial-has-more","onIncreaseCounter"])]),f("div",lu,[g(j,{unit:n(w)},null,8,["unit"])])])])}}}),Yu=au(mu,[["__scopeId","data-v-281b9392"]]);export{Yu 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.