PageSourceSearch

https://burninghut.ru/_nuxt/v2.5-D_QCI5C1.js

js burninghut.ru collected 2026-10-02 02:59:29 UTC 5,996 bytes, 2 lines download raw bytes

1import{bv as _,a$ as f,aM as r,aS as b,aU as a,bD as m,b8 as w,bF as I,aN as p,aR as h,bB as y,aW as g,aV as S,aO as T,bU as B,by as u,bK as N,a_ as O,b5 as M,bx as L,bP as v,bL as D,bM as H,aY as U}from"./v2.5-BMcaV3uw.js";import{B as E}from"./v2.5-BiI7n_B2.js";import{u as C}from"./v2.5-BQIraYlX.js";import{A as R}from"./v2.5-DEFZDvQ_.js";import{A as V}from"./v2.5-VIJ3Sybn.js";import{B as j,u as q}from"./v2.5-DIElmj8H.js";import{g as k}from"./v2.5-GPSLwxfs.js";import{u as F}from"./v2.5-D-eVecjP.js";import"./v2.5-DWISQF8l.js";import"./v2.5-BRJEEl2u.js";import"./v2.5-B7N6t0J0.js";import"./v2.5-DkGqg5mS.js";import"./v2.5-oTGtRQ8F.js";import"./v2.5-C6I23XfG.js";import"./v2.5-Cj-ViZPP.js";import"./v2.5-DZH76Q_D.js";import"./v2.5-Cdi8qH88.js";import"./v2.5-DNW5NMLe.js";import"./v2.5-D8TyGkrf.js";import"./v2.5-CK00X63w.js";import"./v2.5-C_Vj38L8.js";import"./v2.5-BaKoKTdJ.js";import"./v2.5-gGNNyXXj.js";import"./v2.5-BjAPnAym.js";import"./v2.5-DSGPwoBd.js";import"./v2.5-DqEEBpTC.js";import"./v2.5-DFB7JJhI.js";import"./v2.5-BQYU8Zrc.js";import"./v2.5-B06Kionk.js";import"./v2.5-NmSCM9sb.js";try{let e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="228ba2ff-3826-4464-85a5-e6fc34956ee9",e._sentryDebugIdIdentifier="sentry-dbid-228ba2ff-3826-4464-85a5-e6fc34956ee9")}catch{}const W=_({name:"ArchiveTopPeriods",components:{BHLink:E},props:{title:{type:String,required:!0},items:{type:Array,required:!0}},emits:["close"],computed:{isMobile(){return C().isMobile},currentItem(){const[e]=this.items.filter(t=>t.isActive);return e},listClass(){return{"list--mobile":this.isMobile}}},methods:{getClassListItem(e){return{"list__item--current":e.isActive}},getComponentItem(e){return e.isActive?"span":"BHLink"},getPropsItem(e){return e.isActive?null:{href:e.link.href}},OnClickItem(){this.$emit("close")}}},"$3C3Z2ohHBp"),K={class:"periods"},Y={class:"periods__content"},G={class:"periods__title"},Q={class:"periods__list list"};function Z(e,t,o,l,i,n){return r(),b("div",K,[a("div",Y,[a("div",G,m(e.title),1),a("div",Q,[(r(!0),b(w,null,I(e.items,s=>(r(),p(S(e.getComponentItem(s)),g({key:s.id,class:["list__item",e.getClassListItem(s)]},{ref_for:!0},e.getPropsItem(s),{colorless:"",onClick:e.OnClickItem}),{default:h(()=>[y(m(s.title),1)]),_:2},1040,["class","onClick"]))),128))])])])}const P=f(W,[["render",Z],["__scopeId","data-v-28305eeb"]]),z=_({name:"ArchiveTopPeriodsMobile",components:{ArchiveTopPeriods:P,ActionSheet:R},props:{title:{type:String,required:!0},closeClickOutside:{type:Boolean,default:!0},items:{type:Array,required:!0}},emits:["close"],methods:{closeActionSheet(){this.$emit("close")}}},"$SiSj-QjKc6");function J(e,t,o,l,i,n){const s=u("ArchiveTopPeriods"),d=u("ActionSheet");return r(),p(d,g({"close-click-outside":e.closeClickOutside},B(e.$attrs)),{default:h(()=>[T(s,{items:e.items,title:e.title,onClose:e.closeActionSheet},null,8,["items","title","onClose"])]),_:1},16,["close-click-outside"])}const X=f(z,[["render",J],["__scopeId","data-v-a268e590"]]),x=_({name:"ArchiveTopSwitch"},"$0y8ON_hFNP"),ee={class:"switch"},te={class:"switch__title"};function se(e,t,o,l,i,n){return r(),b("button",ee,[a("span",te,[N(e.$slots,"default",{},void 0,!0)]),t[0]||(t[0]=a("span",{class:"switch__icon"},null,-1))])}const oe=f(x,[["render",se],["__scopeId","data-v-a27396f3"]]),A={week:{id:"week",url:"/week/",title:"За неделю"},month:{id:"month",url:"/month/",title:"За месяц"},year:{id:"year",url:"/year/",title:"За год"}},ie=_({name:"ArchiveTop",components:{BaseArchive:j,ArchiveTopPeriods:P,ArchiveTopSwitch:oe},provide(){return{eventCategory:()=>"Лучшее"}},scrollToTop:!0,async setup(){let e,t;const{$api:o}=M(),l=F(),i=L(),n=k(i.params.topPeriod)||"week",s=+k(i.params.pageNumber||1),d=i.fullPath.replace(i.hash,"");if(!Object.keys(A).includes(n))throw v({statusCode:404,message:"Invalid period"});const{data:c,error:$}=([e,t]=D(()=>H("top-posts",async()=>o.archives.top({period:n,page:s,limit:V}))),e=await e,t(),e);if(c.value?.data.meta.total_pages===0)throw v({statusCode:404,message:"No data"});if($.value)throw v($.value);return c.value?.data&&l.addSeoByPath(d,c.value.data.seo),q(),{articles:c.value?.data.items,meta:c.value?.data.meta,currentPeriod:n}},data:()=>({periods:A,title:"Лучшее",baseUrl:"/top"}),computed:{isMobile(){return C().isMobile},currentTitle(){const[e]=Object.values(this.periods).filter(t=>t?.id===this.currentPeriod);return e?.title||this.title},link(){const{baseUrl:e,currentPeriod:t}=this;return{href:`${e}/${t}`}},switchItems(){const{periods:e,currentPeriod:t}=this;return Object.values(e).map(o=>({id:o?.id,title:o?.title,isActive:o?.id===t,link:{href:`${this.baseUrl}${o?.url}`}}))}},methods:{getLinkPeriod(e){return{href:`${this.baseUrl}${e.url}`}},getComponentTab(e){return e.id===this.currentPeriod?"span":"BHLink"},getPropsTab(e){return e.id===this.currentPeriod?null:{link:this.getLinkPeriod(e)}},getClassTab(e){return{"tabs__item--current":e.id===this.currentPeriod}},onSwitchClick(){const{switchItems:e,title:t}=this;O().open(X,{items:e,title:t,closeClickOutside:!0},{transition:"modal-fade"})}}},"$YP9cytsIes"),re={class:"archive-top__header"},ae={class:"archive-top__title"},ne={class:"archive__switch"};function ce(e,t,o,l,i,n){const s=u("ArchiveTopPeriods"),d=u("ArchiveTopSwitch"),c=u("BaseArchive");return e.articles&&e.meta?(r(),p(c,{key:0,class:"archive-top",articles:e.articles,link:e.link,meta:e.meta,slug:"top"},{header:h(()=>
1[a("div",re,[a("h1",ae,m(e.title),1),a("div",ne,[e.isMobile?(r(),p(d,{key:1,onClick:e.onSwitchClick},{default:h(()=>[y(m(e.currentTitle),1)]),_:1},8,["onClick"])):(r(),p(s,{key:0,items:e.switchItems,title:e.title},null,8,["items","title"]))])])]),_:1},8,["articles","link","meta"])):U("",!0)}const Re=f(ie,[["render",ce],["__scopeId","data-v-5ae01339"]]);export{Re as default};
2//# sourceMappingURL=v2.5-D_QCI5C1.js.map

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.