import{bE as C,bG as T,cr as j,bI as N,bK as q,ct as w,de as z,q as i,aM as A,am as V,bR as R,cz as k,I as h,b$ as E,c3 as $,aR as F,aE as a,u as s,F as G,aP as H,s as v,bX as B,t as p,bx as m,H as S,b3 as g,v as M,c9 as U}from"./index-pVvkWKzi.js";const D=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"),K=N()({name:"VTooltip",props:D(),emits:{"update:modelValue":e=>!0},setup(e,n){let{slots:t}=n;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"),x=i(()=>e.origin==="auto"||e.origin==="overlap"||e.origin.split(" ").length>1||e.location.split(" ").length>1?e.origin:e.origin+" center"),I=i(()=>e.transition?e.transition:r.value?"scale-transition":"fade-transition"),P=i(()=>V({"aria-describedby":c.value},e.activatorProps));return R(()=>{const O=k.filterProps(e);return h(k,V({ref:o,class:["v-tooltip",e.class],style:e.style,id:c.value},O,{modelValue:r.value,"onUpdate:modelValue":u=>r.value=u,transition:I.value,absolute:!0,location:l.value,origin:x.value,persistent:!0,role:"tooltip",activatorProps:P.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}})}),E({},o)}}),L={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 n=e.slice(1);return parseInt(n)+" "+this.$i18n.t("dating.before")}else return parseInt(e)+" "+this.$i18n.t("dating.after")}}},W={key:0,class:"breadcrumbs"},X={key:1},J={key:2};function Q(e,n,t,r,f,b){const c=F("router-link");return t.data?(a(),s("div",W,[(a(!0),s(G,null,H(t.data,(o,l)=>(a(),s("span",{key:l},[l!=0?(a(),v(B,{key:0,size:"small",class:"breadcrumb-icon my-n1",style:{"font-size":"inherit"},icon:"mdi-menu-right"})):p("",!0),t.link?(a(),s("span",X,[h(c,{to:{name:"Object",params:{objectid:o.objectId}}},{default:m(()=>[S(g(o.title),1)]),_:2},1032,["to"])])):(a(),s("span",J,g(o.title),1))]))),128))])):p("",!0)}const te=$(L,[["render",Q],["__scopeId","data-v-41a14b73"]]),Y={name:"ChildTreeSearchButton",props:{objectid:{type:[String,Number],required:!0}}};function Z(e,n,t,r,f,b){return a(),v(U,{class:"child-tree-search-button",icon:"",height:28,width:28,to:{name:"Search",query:{parent_id:t.objectid,sorting:"title",qfilter:[]}}},{default:m(()=>[h(B,{color:"grey",size:24},{default:m(()=>[S("mdi-file-tree")]),_:1}),e.$vuetify.display.sm||e.$vuetify.display.xs?p("",!0):(a(),v(K,{key:0,activator:"parent",location:"bottom","open-delay":"200"},{default:m(()=>[M("span",null,g(e.$t("user_info.init_child_search")),1)]),_:1}))]),_:1},8,["to"])}const ae=$(Y,[["render",Z],["__scopeId","data-v-78ac3b2d"]]);export{ae as C,te as O,K as V};