1import{B as b}from"./C9Ni6m5k.js";import{_}from"./DvmNImj2.js";import{e as B,f as w,L as C,i as x,B as E,h as L,r as M,j as A,l as R,u as V,o as c,c as i,b as u,w as $,m as d,F,a,x as H,O as N}from"./DgttN8Q_.js";import{u as T,a as I}from"./BawgSZT1.js";import"./BDThqjE3.js";const j={class:"methodology-page"},z={key:0,class:"methodology-page__loading"},D=["innerHTML"],K=B({__name:"[slug]",async setup(O){let t,m;const h=w(),p=C(),s=x(()=>h.params.slug);T(()=>`/v4/meta/methodology?path=${s.value}`);const{data:n,pending:f,error:y}=([t,m]=E(()=>I(`/v4/methodology/${s.value}`,{default:()=>null,lazy:!1})),t=await t,m(),t);if(y.value||!n.value?.body?.trim())throw L({statusCode:404,statusMessage:"ÐеÑÐ¾Ð´Ð¾Ð»Ð¾Ð³Ð¸Ñ Ð½Ðµ найдена"});const v=()=>{if(window.history.length>1){p.back();return}N(`/problems/${s.value}`)},o=M(null),g=r=>{const e=r.target?.closest('a[href^="#"]');if(!e||!o.value?.contains(e))return;const l=e.getAttribute("href");if(!l||l==="#")return;r.preventDefault();const k=l.slice(1);document.getElementById(k)?.scrollIntoView({behavior:"smooth",block:"start"})};return A(()=>{o.value?.addEventListener("click",g)}),R(()=>{o.value?.removeEventListener("click",g)}),V({bodyAttrs:{class:"gradient-background"}}),(r,e)=>(c(),i("div",j,[u(b,null,{default:$(()=>[d(f)?(c(),i("div",z,[u(_,{variant:"text",lines:1}),u(_,{variant:"paragraph",lines:12})])):d(n)?(c(),i(F,{key:1},[e[0]||(e[0]=a("h1",{class:"methodology-page__title"}," ÐеÑÐ¾Ð´Ð¾Ð»Ð¾Ð³Ð¸Ñ ",-1)),a("div",{ref_key:"contentRef",ref:o,class:"methodology-page__content",innerHTML:d(n).body},null,8,D),a("p",{class:"methodology-page__back-wrap"},[a("button",{type:"button",class:"methodology-page__back",onClick:v}," â ÐеÑнÑÑÑÑÑ Ð½Ð°Ð·Ð°Ð´ ")])],64)):H("",!0)]),_:1})]))}});export{K 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.