PageSourceSearch

https://farmacjapraktyczna.pl/frontend/assets/TableOfContents-19fd8d9d.js

js farmacjapraktyczna.pl collected 2026-10-07 18:39:40 UTC 2,555 bytes, 1 lines download raw bytes

1import{r as y,z as v,C as T,o as t,f as s,g as l,k as b,F as d,J as f,j as u,l as g,L as m,n as k}from"./main-1db27485.js";import{V as C}from"./vue-scrollto-8086e943.js";import"./_commonjsHelpers-725317a4.js";const H={key:0,class:"article__aside__table-of-contents--mobile"},x=l("p",{class:"underlined-heading__text"},"Spis treści artykułu",-1),L=[x],M={class:"article__aside__table-of-contents__ol"},S=["onClick","href","innerHTML"],z={key:1,class:"article__aside__table-of-contents--desktop"},q=l("p",{class:"underlined-heading__text"},"Spis treści artykułu",-1),N=[q],V={class:"article__aside__table-of-contents__ol"},B=["onClick","href","innerHTML"],E={key:2,class:"quiz__article__aside__box"},$=l("label",{class:"quiz__article__aside__list__title"},"Spis treści artykułu",-1),w={class:"quiz__article__aside__list"},A=["innerHTML","onClick"],J={__name:"TableOfContents",props:["type","color"],setup(c){const a=y([]),r=c;function p(i){let o=document.createElement("div");return o.innerHTML=i,o.textContent||o.innerText}v(()=>{let i=".article__user-content";r.type=="contest"&&(i=".quiz__article__content");let o="h2",e=document.querySelectorAll(i+" "+o);if(e.length>0)for(let n=0;n<e.length;n++){let _=T.slugify(p(e[n].innerHTML));_&&!isNaN(_.charAt(0))&&(_="go-"+_),a.value.push({id:_,title:p(e[n].innerHTML)}),e[n].id=_}});const h=async i=>{await k(),C.scrollTo("#"+i,300)};return(i,o)=>a.value.length?(t(),s(d,{key:0},[c.type=="mobile"?(t(),s("div",H,[l("div",{class:"article__aside__table-of-contents__heading-box underlined-heading",style:b({color:r.color,borderColor:r.color})},L,4),l("ol",M,[(t(!0),s(d,null,f(a.value,e=>
1(t(),s("li",{class:g(["article__aside__table-of-contents__li",e.id])},[l("a",{class:"article__aside__table-of-contents__link",onClick:m(n=>h(e.id),["prevent"]),href:"#"+e.id,innerHTML:e.title},null,8,S)],2))),256))])])):u("",!0),c.type=="desktop"?(t(),s("div",z,[l("div",{class:"article__aside__table-of-contents__heading-box underlined-heading",style:b({color:r.color,borderColor:r.color})},N,4),l("ol",V,[(t(!0),s(d,null,f(a.value,e=>(t(),s("li",{class:g(["article__aside__table-of-contents__li",e.id])},[l("a",{class:"article__aside__table-of-contents__link",onClick:m(n=>h(e.id),["prevent"]),href:"#"+e.id,innerHTML:e.title},null,8,B)],2))),256))])])):u("",!0),c.type=="contest"?(t(),s("nav",E,[$,l("ol",w,[(t(!0),s(d,null,f(a.value,e=>(t(),s("li",{class:"quiz__article__aside__list__item",innerHTML:e.title,onClick:m(n=>h(e.id),["prevent"])},null,8,A))),256))])])):u("",!0)],64)):u("",!0)}};export{J 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.