import{bO as C,bQ as T,cz as j,bS as N,bU as q,cB as w,dp as z,q as i,aS as A,ar as V,b$ as H,cH as k,I as h,c9 as F,cd as S,aX as U,aK as n,u as s,F as R,aV as D,s as p,c5 as $,t as v,bH as m,H as B,b9 as g,v as E,cj as G}from"./index-UvaAT40e.js";const K=C({id:String,text:String,...T(j({closeOnBack:!1,location:"end",locationStrategy:"connected",eager:!0,minWidth:0,offset:10,openOnClick:!1,openOnHover:!0,origin:"auto",scrim:!1,scrollStrategy:"reposition",transition:!1}),["absolute","persistent"])},"VTooltip"),L=N()({name:"VTooltip",props:K(),emits:{"update:modelValue":e=>!0},setup(e,a){let{slots:t}=a;const r=q(e,"modelValue"),{scopeId:f}=w(),b=z(),c=i(()=>e.id||`v-tooltip-${b}`),o=A(),l=i(()=>e.location.split(" ").length>1?e.location:e.location+" center"),O=i(()=>e.origin==="auto"||e.origin==="overlap"||e.origin.split(" ").length>1||e.location.split(" ").length>1?e.origin:e.origin+" center"),x=i(()=>e.transition?e.transition:r.value?"scale-transition":"fade-transition"),I=i(()=>V({"aria-describedby":c.value},e.activatorProps));return H(()=>{const P=k.filterProps(e);return h(k,V({ref:o,class:["v-tooltip",e.class],style:e.style,id:c.value},P,{modelValue:r.value,"onUpdate:modelValue":u=>r.value=u,transition:x.value,absolute:!0,location:l.value,origin:O.value,persistent:!0,role:"tooltip",activatorProps:I.value,_disableGlobalStack:!0},f),{activator:t.activator,default:function(){var _;for(var u=arguments.length,y=new Array(u),d=0;d<u;d++)y[d]=arguments[d];return((_=t.default)==null?void 0:_.call(t,...y))??e.text}})}),F({},o)}}),M={name:"ObjectBreadcrumbs",props:{data:{type:Array,default:()=>[]},link:{type:Boolean,default:!0}},computed:{intended:function(){return"px-"+(2+this.intend)}},methods:{pretty_date:function(e){if(e.charAt(0)=="-"){let a=e.slice(1);return parseInt(a)+" "+this.$i18n.t("dating.before")}else return parseInt(e)+" "+this.$i18n.t("dating.after")}}},Q={key:0,class:"breadcrumbs"},W={key:1},X={key:2};function J(e,a,t,r,f,b){const c=U("router-link");return t.data?(n(),s("div",Q,[(n(!0),s(R,null,D(t.data,(o,l)=>(n(),s("span",{key:l},[l!=0?(n(),p($,{key:0,size:"small",class:"breadcrumb-icon my-n1",style:{"font-size":"inherit"},icon:"mdi-menu-right"})):v("",!0),t.link?(n(),s("span",W,[h(c,{to:{name:"Object",params:{objectid:o.objectId}}},{default:m(()=>[B(g(o.title),1)]),_:2},1032,["to"])])):(n(),s("span",X,g(o.title),1))]))),128))])):v("",!0)}const te=S(M,[["render",J],["__scopeId","data-v-41a14b73"]]),Y={name:"ChildTreeSearchButton",props:{objectid:{type:[String,Number],required:!0}}};function Z(e,a,t,r,f,b){return n(),p(G,{class:"child-tree-search-button",icon:"",height:28,width:28,to:{name:"Search",query:{parent_id:t.objectid,sorting:"title",qfilter:[]}}},{default:m(()=>[h($,{color:"grey",size:24},{default:m(()=>a[0]||(a[0]=[B("mdi-file-tree")])),_:1}),e.$vuetify.display.sm||e.$vuetify.display.xs?v("",!0):(n(),p(L,{key:0,activator:"parent",location:"bottom","open-delay":"200"},{default:m(()=>[E("span",null,g(e.$t("user_info.init_child_search")),1)]),_:1}))]),_:1},8,["to"])}const ae=S(Y,[["render",Z],["__scopeId","data-v-78ac3b2d"]]);export{ae as C,te as O,L as V};