import{d as m,a as y,al as h,u as w,aV as b,o as r,e as i,i as C,t as k,h as s,f as D,b_ as E,q as x,k as n,_ as A}from"./index-D92x6h1h.js";/* empty css                                                                      */const S={class:"drill-cell"},V={class:"drill-cell__text"},B=["title","aria-label"],N=m({__name:"DrillDownCell",props:{value:{},row:{},col:{}},setup(c){const o=c,u=y(),d=h(),{t:a}=w(),p=b("idnodeGridActivelyEditing",void 0),_=n(()=>{const e=o.value;if(e==null||e===""){const t=o.row[o.col.field];return t==null?"":String(t)}return String(e)}),l=n(()=>{const e=o.col.targetUuidField;if(!e)return null;const t=o.row[e];return typeof t=="string"&&t?t:null}),v=n(()=>{const e=o.col.targetAccessKey;return e?!!u.data?.[e]:!0}),f=n(()=>!p?.value&&l.value!==null&&v.value);function g(e){e.stopPropagation(),l.value!==null&&d.open(l.value)}return(e,t)=>(r(),i("span",S,[C("span",V,k(_.value),1),f.value?(r(),i("button",{key:0,type:"button",class:"drill-cell__icon",title:s(a)("Open in editor"),"aria-label":s(a)("Open in editor"),onClick:g},[D(s(E),{size:14,"aria-hidden":"true"})],8,B)):x("",!0)]))}}),R=A(N,[["__scopeId","data-v-b3736b81"]]);export{R as D};
