1import{a as g}from"/build/_shared/chunk-QHB3C3X7.js";import{a as e,d as h}from"/build/_shared/chunk-OSPM4LG7.js";import{m as n,p as i}from"/build/_shared/chunk-OQ64XKCY.js";import{b as S,d as s,g as O,h as a,i as r}from"/build/_shared/chunk-BQCUINC5.js";var m=S((x,u)=>{r();u.exports={}});r();r();var P=s(m()),p=s(O());var l=s(g());function f(){let t=n(),N=i();return(0,p.useEffect)(()=>{console.log("DATA",t)},[t]),(0,p.useEffect)(()=>{if(t.path){e("activeNodeId",parseInt(t.path.activeNodeId)),e("algParams",JSON.parse(t.path.algParams)),e("clusters",JSON.parse(t.path.clusters)),e("forceNodes",JSON.parse(t.path.forceNodes)),e("nodeIdCounter",parseInt(JSON.parse(t.path.forceNodes).links.length)),e("searchString",t.path.searchString),e("traversalPath",JSON.parse(t.path.traversalPath)),e("pathName",t.path.pathName),e("clusterCounter",JSON.parse(t.path.clusterCounter)),e("pathId",t.path.pathId);let o=new l.default().parse(JSON.parse(t.path.traversalPath)).first(function(I){return I.model.attributes.nodeId===parseInt(t.path.activeNodeId)});console.log("MOST RECENT NODE:",o);let d=h(o.model.attributes.doi)||"",c=JSON.parse(t.path.clusters)[o.model.attributes.doi];N.submit({redirectURL:t.tour?`${d}?isPathRedirect=true&tour=true&updateIndex=${c}&impression=true`:`${d}?isPathRedirect=true&updateIndex=${c}&impression=true`},{method:"post",action:"/redirect-paths"})}},[t]),a.createElement("div",null)}export{f 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.