PageSourceSearch

https://cdn.xn--90aivcdt6dxbc.xn--p1ai/front/dist/assets/PopularAsideBlock-UYdtRtpG.js

js xn--90aivcdt6dxbc.xn--p1ai collected 2026-10-03 19:01:47 UTC 5,763 bytes, 1 lines download raw bytes

1import{_ as u,I as p,r as g,c as r,o as n,b as i,a as h,F as _,i as C,d as H,t as k,f,n as w}from"./main-Dt5VkVGI.js";import"./modulepreload-polyfill-B5Qt9EMX.js";const V="data:image/svg+xml,%3csvg%20width='19'%20height='20'%20viewBox='0%200%2019%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M17.8418%200.638637C17.4008%200.228845%2016.8267%200%2016.221%200H0.813023C0.595164%200%200.382568%200.085152%200.228382%200.244811C0.0741973%200.399149%200.00526229%200.675894%200%200.894094C0%201.10698%200.0584093%201.25067%200.223119%201.46355C0.387829%201.67642%200.834069%201.65514%200.834069%201.65514L16.221%201.66046C16.4015%201.66046%2016.5825%201.72965%2016.7151%201.85205C16.8214%201.95317%2016.8798%202.08622%2016.8798%202.23523V15.2209C16.8798%2015.3486%2016.832%2015.471%2016.742%2015.5828C16.6246%2015.6892%2016.4599%2015.769%2016.3326%2015.785C15.4448%2015.8702%2014.7381%2016.4556%2014.4934%2017.2432L13.9514%2016.5886C13.5636%2016.1043%2012.9631%2015.8116%2012.2664%2015.785H1.62079V14.6887C1.62079%2014.6887%201.50922%2014.1565%200.802496%2014.1724C0.0952443%2014.1884%200.0052594%2014.6833%200.0052594%2014.6833V16.6046C0.0052594%2017.0623%200.377302%2017.4348%200.834069%2017.4348H12.2348C12.4153%2017.4402%2012.5748%2017.5093%2012.6705%2017.6317L14.3392%2019.6487C14.5255%2019.8776%2014.807%2020%2015.0943%2020C15.2059%2020%2015.3175%2019.9787%2015.4238%2019.9415C15.8063%2019.8031%2016.0616%2019.4412%2016.0616%2019.0367V17.834C16.0616%2017.6264%2016.2421%2017.4508%2016.5183%2017.4242C17.0446%2017.355%2017.5603%2017.0995%2017.9323%2016.727C17.9481%2016.711%2017.9591%2016.7004%2017.9697%2016.6844C18.3365%2016.264%2018.5327%2015.7531%2018.5327%2015.2156V2.22991C18.5327%201.62321%2018.2886%201.05375%2017.8418%200.638637Z'%20fill='%230184FF'/%3e%3cpath%20d='M2.63013%205.1626C4.28302%205.1626%205.58543%205.68946%205.58543%207.4617C5.58543%209.23393%204.28302%209.76079%202.63013%209.76079H1.514V12.012H0.046875V5.1626H2.63013ZM2.69907%206.45586H1.514V8.47285H2.69907C3.4542%208.47285%204.08621%208.2653%204.08621%207.4617C4.08621%206.65273%203.4542%206.45586%202.69907%206.45586Z'%20fill='black'/%3e%3cpath%20d='M9.44413%2012.4004V11.5382C7.39289%2011.4477%206.04785%2010.394%206.04785%208.58984C6.04785%206.78567%207.38763%205.73195%209.44413%205.64143V4.7793H10.8528V5.64143C12.8883%205.73726%2014.217%206.79635%2014.217%208.58984C14.217%2010.3833%2012.8883%2011.4424%2010.8528%2011.5382V12.4004H9.44413ZM9.44413%2010.3141V6.8655C8.02542%206.96132%207.51498%207.71704%207.51498%208.58984C7.52024%209.46265%208.03068%2010.2184%209.44413%2010.3141ZM10.8581%2010.3141C12.2453%2010.2077%2012.7557%209.45202%2012.7557%208.58984C12.7557%207.72767%2012.2453%206.97195%2010.8581%206.8655V10.3141Z'%20fill='black'/%3e%3c/svg%3e",b={components:{InlineSvg:p},inject:["breakpoint","ymHandler"],props:{title:{type:String,default:""},items:{type:Array,default:()=>[]},hideDesktopTitle:{type:Boolean,default:!1}},data(){return{isFullViewed:!1,mobLimitViewed:1,maxHeightFullList:0,maxHeightLimitedItems:0,prevInnerWidth:0}},computed:{resultItems(){return this.breakpoint.isTabletWide?this.adaptiveItems:this.items},adaptiveItems(){return this.isFullViewed?this.items:this.items.slice(0,this.mobLimitViewed)},numberOfHiddenElements(){var s;return(((s=this.items)==null?void 0:s.length)||0)-this.mobLimitViewed},canHideElements(){return this.numberOfHiddenElements>0},toggleText(){return this.isFullViewed?"Свернуть":"Смотреть еще"},rootStyle(){return{"--max-height-list":`${this.maxHeightFullList||0}px`,"--max-height-limited":`${this.maxHeightLimitedItems||0}px`}}},watch:{resultItems(){this.updateMaxHeight()}},mounted(){this.updateMaxHeight(),window.addEventListener("resize",this.resizeHandler)},methods:{toggleViewed(){this.isFullViewed=!this.isFullViewed},updateMaxHeight(){this.$nextTick().then(()=>{this.$refs.list.style.height="auto",this.$nextTick().then(()=>{var t,l,d,o;this.maxHeightFullList=((l=(t=this.$refs)==null?void 0:t.list)==null?void 0:l.scrollHeight)||0;let s=0;for(let e=0;e<this.mobLimitViewed;e++)s=+(((o=(d=this.$refs[`item_${e}`])==null?void 0:d[0])==null?void 0:o.scrollHeight)||0);this.maxHeightLimitedItems=s,this.$refs.list.style.height=""})})},resizeHandler(){window.innerWidth!==this.prevInnerWidth&&(this.updateMaxHeight(),this.prevInnerWidth=window.innerWidth)}}},x={class:"popular-aside-block__inner"},v=["innerHTML"],L={ref:"list",class:"popular-aside-block__list"},y={class:"popular-aside-block__item-main"},I=["href","innerHTML"],M={key:1,class:"popular-aside-block__actions"},F={class:"popular-aside-block__toggle-name"};function T(s,t,l,d,o,e){const m=g("InlineSvg");return n(),r("div",{class:w(["popular-aside-block",{"popular-aside-block--is-full-viewed":o.isFullViewed||!e.canHideElements,"popular-aside-block--hide-desktop-title":l.hideDesktopTitle}]),style:f(e.rootStyle)},[i("div",x,[l.title?(n(),r("h3",{key:0,class:"popular-aside-block__title u-block-title-md",innerHTML:l.title},null,8,v)):h("",!0),i("div",L,[(n(!0),r(_,null,C(e.resultItems,(a,c)=>(n(),r("div",{key:`popular-aside-block__item-${a.id}`,ref_for:!0,ref:`item_${c}`,class:"popular-aside-block__item"},[t[2]||(t[2]=i("img",{src:V,class:"popular-aside-block__item-logo"},null,-1)),i("div",y,[i("a",{href:a.url,class:"popular-aside-block__item-name u-text-md fw-700",onClick:t[0]||(t[0]=S=>e.ymHandler({operation:"click_interestingNewsPage"})),innerHTML:a.name},null,8,I)])]))),128))],512),e.canHideElements?(n(),r("div",M,[i("div",{class:"popular-aside-block__toggle",onClick:t[1]||(t[1]=(...a)=>e.toggleViewed&&e.toggleViewed(...a))},[i("span",F,k(e.toggleText),1),H(m,{src:"arrow-prev",class:"popular-aside-block__toggle-icon"})])])):h("",!0)])],6)}const W=u(b,[["render",T]]);export{W 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.