PageSourceSearch

https://stackoverflow.co/public/product/B_vxwRGk.js

js stackoverflow.co collected 2026-10-01 06:46:01 UTC 3,341 bytes, 1 lines download raw bytes

1import{pt as e}from"./DtfFzSVZ.js";import{F as t,It as n,Lt as r,N as i,R as a,Rt as o,X as s,_ as c,ct as l,d as u,f as d,gt as f,l as p,r as m,rt as h,v as g}from"./Ca5AV-z9.js";import{t as _}from"./CQAlVeMC.js";import{y as v}from"./yQ3tIOVq.js";import{t as y}from"./CJR7iIOB.js";import{t as b}from"./BDNMzG2s2.js";import{t as x}from"./DOnKBnX2.js";var S=e(y()),C={width:`20`,height:`20`,viewBox:`0 0 20 20`,class:`svg-icon IconList`,"aria-hidden":`true`};function w(e,n){return t(),d(`svg`,C,[...n[0]||=[p(`path`,{d:`M3 15.25a1 1 0 1 1 0 2 1 1 0 0 1 0-2m14.5.25a.75.75 0 0 1 0 1.5h-11a.75.75 0 0 1 0-1.5zM3 9.25a1 1 0 1 1 0 2 1 1 0 0 1 0-2m14.5.25a.75.75 0 0 1 0 1.5h-11a.75.75 0 0 1 0-1.5zM3 3.25a1 1 0 1 1 0 2 1 1 0 0 1 0-2m14.5.25a.75.75 0 0 1 0 1.5h-11a.75.75 0 0 1 0-1.5z`},null,-1)]])}var T={render:w},E={class:`d-none md:d-block m12`},D={class:`s-btn s-btn__unset fl1 ta-left p0 d-block c-pointer`},O={class:`nav__inner list-reset bar-md`},k={class:`ta-right d-block`},A={class:`fl1 ta-left ml12`},j={class:`fl-shrink0 mr12`},M=b({__name:`ResourcesBooksNavigation`,props:{rootUrl:{type:String,required:!1,default:`/`},chapters:{type:Object,required:!1,default:()=>[]},currentChapter:{type:String,required:!1,default:null},currentSection:{type:String,required:!1,default:null},minimal:{type:Boolean,required:!1,default:!1}},setup(e){let y=e,b=l([y.currentChapter]),C=l(!1),w=l(!1),M=l(!1),N=(0,S.default)(()=>{M.value!==!0&&!y.minimal&&P.value>980&&(C.value=document.documentElement.scrollTop>800)}),{width:P}=v();return i(()=>{window&&window.addEventListener(`scroll`,N)}),(i,l)=>{let v=_;return t(),d(m,null,[p(`div`,E,[p(`button`,{onClick:l[0]||=e=>h(w)?w.value=!f(w):w=!f(w),type:`button`,class:`fs-body2 w100 bar0 as-stretch fw-bold bg-white p12 bar-md ba bc-black-200 mb0 d-flex jc-space-between ai-center`},[p(`div`,D,[g(f(x),{class:`va-middle mtn2`,style:r(f(w)?`transform: rotate(90deg)`:``)},null,8,[`style`]),l[3]||=c(` Table of contents `,-1)]),g(f(T))])]),p(`nav`,{onMouseover:l[1]||=e=>{h(C)?C.value=!1:C=!1,h(M)?M.value=!0:M=!0},onMouseleave:l[2]||=e=>{h(M)?M.value=!1:M=!1,f(N)()},class:n([`nav w100 mb24 blr-lg`,{"pl12 pr12 pt12 pb2":!e.minimal,"md:d-none":!f(w)}])},[p(`ol`,O,[(t(!0),d(m,null,a(e.chapters,(r,i)=>(t(),d(`li`,{class:n([`collapsable bar-md`,{"bg-black-100":!f(C)&&f(b).includes(r.slug.current),"is-collapsed":f(C)&&!f(b).includes(r.slug.current)}])},[g(v,{class:n([`px24 py12 w100 d-flex fw-bold fs-body2 jc-center mb8`,f(b).includes(r.slug.current)?`bg-blue-dark fc-white`:`fc-black bg-off-white h:bc-black-300`]),to:`${y.rootUrl}/${r.slug?.current}/`},{default:s(()=>[p(`strong`,k,o(i+1)+`. `,1),p(`div`,A,o(r.title),1)]),_:2},1032,[`class`,`to`]),r.sections&&f(b).includes(r.slug.current)?(t(),d(`ol`,{key:0,class:n([`collapsable list-reset mb8 pb8`,{"is-collapsed":f(C)}])},[(t(!0),d(m,null,a(r.sections,(a,c)=>(t(),d(`li`,null,[g(v,{class:`py6 d-block fs-body2 px12 mx6 d-flex fc-black-500 bc-transparent h:bg-black-150 h:fc-black`,to:`${y.rootUrl}/${r.slug?.current}/${a.slug?.current}/`},{default:s(()=>[p(`strong`,j,o(i+1)+`.`+o(c+1),1),p(`div`,{class:n({"fw-bold td-underline":e.currentSection===a.slug.current&&e.currentChapter==r.slug.current})},o(a.title),3)]),_:2},1032,[`to`])]))),256))],2)):u(``,!0)],2))),256))])],34)],64)}}},[[`__scopeId`,`data-v-c946987e`]]);export{T as n,M as t};

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.