1import{r as p,d,j as n,p as l,T as u,c as g}from"./shared.bundle.js";const f=({nid:r,trigger:i,content:s})=>{const[t,e]=p.useState({status:"loading",source:null,content:s}),o=d(i);return p.useEffect(()=>{t.content?e({status:"processed",source:"attribute",content:d(s)}):fetch(`/jsonapi/node/brief?filter[drupal_internal__nid]=${r}`).then(a=>a.json()).then(a=>{a.data.length>0?e({status:"processed",source:"fetch",content:a.data[0].attributes.body.processed}):e({status:"error",content:null})})},[e]),t.status==="loading"?n.jsx(n.Fragment,{children:l(`<span data-status="loading">${o}</span>`)}):n.jsxs(n.Fragment,{children:[t.content&&n.jsx(u,{className:"ds-c-tooltip__trigger-link",component:"a",placement:"auto",title:l(t.content),"data-source":t.source,onOpen:()=>{var c;(c=window==null?void 0:window.utag)!=null&&c.link&&window.utag.link({event_name:"tooltip_viewed",text:o})},children:o}),t.status==="error"&&l(`<span data-tooltip-error="true">${o}</span>`)]})};(r=>{r.behaviors.DSTooltip={attach:i=>{const s=i.querySelectorAll("[data-tooltip-id]");s&&s.forEach(t=>{const e=g.createRoot(t),o=t.innerHTML.trim();e.render(n.jsx(f,{nid:t.getAttribute("data-tooltip-id"),trigger:o,content:t.hasAttribute("data-content")?t.getAttribute("data-content"):null}))})}}})(Drupal);
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.