import{C as e,E as t,Mt as n,Qt as r,W as i,X as a,_ as o,c as s,h as c,m as l,tn as u,v as d}from"./vendor/json-editor-vue-ddj4xtqm.js";import{Tt as f,_ as p,ot as m,v as h}from"#entry";var g={flex:`~ gap-2 items-center`,class:`group`},_=[`title`],v={key:0,op50:``},y={key:0,flex:`~ gap1`,pr2:``,op0:``,"group-hover:op100":``},b=t({__name:`FilepathItem`,props:{filepath:{},lineBreak:{type:Boolean},subpath:{type:Boolean},override:{}},setup(t){let b=t,x=h(),S=p(),C=m(),w=l(()=>b.filepath&&C.value?f(b.filepath,C.value.rootDir):{path:b.filepath||``});return(l,f)=>(i(),d(`span`,g,[c(`span`,{class:r([t.lineBreak?``:`ws-nowrap of-hidden truncate`]),"font-mono":``,title:t.override||t.filepath},[t.override?(i(),d(s,{key:0},[e(u(t.override),1)],64)):w.value.moduleName?(i(),d(s,{key:1},[c(`span`,null,u(w.value.moduleName),1),t.subpath?(i(),d(`span`,v,u(w.value.path.slice(w.value.moduleName.length)),1)):o(``,!0)],64)):(i(),d(s,{key:2},[e(u(w.value.path),1)],64))],10,_),a(l.$slots,`default`),t.filepath?(i(),d(`div`,y,[c(`button`,{"text-sm":``,op40:``,hover:`op100 text-primary`,title:`Open in editor`,onClick:f[0]||=e=>n(x)(t.filepath)},[...f[2]||=[c(`div`,{"i-carbon-script-reference":``},null,-1)]]),c(`button`,{"text-sm":``,op40:``,hover:`op100 text-primary`,title:`Copy path`,onClick:f[1]||=e=>n(S)(t.filepath)},[...f[3]||=[c(`div`,{"i-carbon-copy":``},null,-1)]])])):o(``,!0)]))}}),x=Object.assign(b,{__name:`FilepathItem`});export{x as t};