import{J as d,H as h,ax as f}from"./howhlbef.js";import{k as v,l as c,R as o,N as k,a0 as y,U as t,F as l,a7 as i,a6 as s,V as B,X as C,Z as N,u as g,a8 as b}from"./vendor/json-editor-vue-gplv2x2n.js";const V={key:0,op50:""},F=v({__name:"FilepathItem",props:{filepath:{},lineBreak:{type:Boolean},subpath:{type:Boolean},override:{}},setup(u){const n=u,m=d(),r=h(),a=c(()=>n.filepath&&r.value?f(n.filepath,r.value.rootDir):{path:n.filepath||""});return(e,p)=>(o(),k(b(e.filepath?"button":"span"),{class:N([e.filepath?"hover:underline":"",e.lineBreak?"":"ws-nowrap of-hidden truncate"]),"font-mono":"",title:e.override||e.filepath,onClick:p[0]||(p[0]=w=>e.filepath&&g(m)(e.filepath))},{default:y(()=>[e.override?(o(),t(l,{key:0},[i(s(e.override),1)],64)):a.value.moduleName?(o(),t(l,{key:1},[B("span",null,s(a.value.moduleName),1),e.subpath?(o(),t("span",V,s(a.value.path.slice(a.value.moduleName.length)),1)):C("",!0)],64)):(o(),t(l,{key:2},[i(s(a.value.path),1)],64))]),_:1},8,["class","title"]))}});export{F as _};
