1import{u as v,H as u,c as l,d as s,t as C,F as f,e as B,a1 as w,n as S,b as r,C as L}from"./index-Dvm4xnRL.js";import{u as z}from"./watson-theme-table-of-contents-CTBmRvLy.js";const H={class:"table-of-contents__heading"},O={class:"table-of-contents__list"},q={key:0,class:"table-of-contents__item"},x=["href","innerHTML"],M={__name:"watson-theme-table-of-contents",props:{heading:{type:String,required:!1,default:null},list:{type:String,required:!0},backgroundColor:{type:String,required:!1,default:null}},setup(a){const p=v(),h=z(p.props.url),{initializeLinks:m}=h,i=a,d=u(()=>{var t;const e=[],n=(t=i.list)==null?void 0:t.split(` 2`);return n==null||n.forEach(y=>{const c=y.split("#");if(c.length!==2)return;let o=c[0].trim(),g=!1;o[0]==="_"&&(g=!0,o=o.substring(1)),e.push({name:o,link:c[1].trim(),hideInBody:g})}),e});m(d.value);const k=u(()=>b(i.backgroundColor)===",0)"?"":"table-of-contents--background"),b=e=>e==null?void 0:e.slice(-3),_=u(()=>({"--background":i.backgroundColor||"initial"}));return(e,n)=>(r(),l("div",{class:S(["table-of-contents",k.value]),style:w(_.value)},[s("div",H,C(a.heading&&a.heading.length>0?a.heading:e.$page.props.settings.translations.tableOfContents.defaultHeading),1),s("ul",O,[(r(!0),l(f,null,B(d.value,t=>(r(),l(f,{key:t.link},[t.hideInBody?L("",!0):(r(),l("li",q,[n[0]||(n[0]=s("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",class:"table-of-contents__icon"},[s("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1)),s("a",{href:`#${t.link}`,class:"table-of-contents__link",innerHTML:t.name},null,8,x)]))],64))),128))])],6))}};export{M as default}; 3//# sourceMappingURL=watson-theme-table-of-contents-D3UauAFe.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.