import{bO as oe,cc as Ae,d8 as Rt,bS as ue,af as ft,db as Dt,b$ as de,I as d,bJ as ce,bz as be,di as Tt,cS as Qe,cU as Et,dj as Ft,de as qe,cY as Lt,q as A,aY as Nt,c7 as Ie,c5 as te,cV as vt,d7 as Bt,cw as mt,cW as He,d9 as zt,cZ as ht,cE as gt,aM as Ut,dk as Wt,dl as Ht,cy as pt,d6 as Yt,cC as yt,df as bt,bd as Y,dm as Jt,bU as Ve,dn as Gt,aS as R,b_ as Xt,dp as Zt,dq as Qt,dr as Ke,ar as re,F as Q,ds as Kt,dt as ea,cQ as Re,cd as fe,cf as ee,ce as De,aC as K,bC as z,aK as q,s as I,bH as w,v as E,b9 as F,cH as xt,t as B,cj as ae,H as G,u as D,as as Ye,cg as _t,d5 as wt,du as ta,ch as W,cl as he,co as pe,aV as le,at as Le,cs as Ne,ci as se,bi as J,c4 as aa,bM as Be,dv as la,b5 as me,dd as na,ay as kt,dw as ia,cF as Se,bD as sa,aF as ra,dx as oa,dy as ua,dz as da,dA as ca,dB as fa,dC as va,dD as ma,da as ha,cB as ga,dE as pa,dF as ya,dh as ba,g as xa,dG as _a,c0 as wa,dH as xe,cq as ka,ct as Sa,aH as St,cr as qa}from"./index-UvaAT40e.js";import{d as Va,V as et,c as _e,e as Pa}from"./VDataTable-BagkVmHP.js";import{a as qt,b as Vt,V as Pe,d as ja}from"./VInput-tBjZAjEz.js";import{t as je,e as Te,a as Pt,b as $a,c as Ma,d as Ca,f as Oa,i as Aa,s as we,g as Ia,m as Ra}from"./transform-CA9Jdjju.js";import{m as Da,u as Ta,a as Ea,V as Fa,b as tt,g as at}from"./VSliderTrack-BSvqM6gM.js";import{V as ze}from"./VChip-DWC_1h7b.js";import{a as La,O as Ue}from"./ObjectCard-Ck5X7LdM.js";import{V as Na,O as Ba}from"./ChildTreeSearchButton-C65ZPLlZ.js";import{L as za}from"./LoadingSpinner-CRcacgcO.js";import{t as ne}from"./triplestore-YmGWX4yk.js";function Ua(e,t){var a,i;const l=t.value,n={passive:!((a=t.modifiers)!=null&&a.active)};window.addEventListener("resize",l,n),e._onResize=Object(e._onResize),e._onResize[t.instance.$.uid]={handler:l,options:n},(i=t.modifiers)!=null&&i.quiet||l()}function Wa(e,t){var a;if(!((a=e._onResize)!=null&&a[t.instance.$.uid]))return;const{handler:l,options:n}=e._onResize[t.instance.$.uid];window.removeEventListener("resize",l,n),delete e._onResize[t.instance.$.uid]}const Ha={mounted:Ua,unmounted:Wa},ye=Symbol.for("vuetify:v-expansion-panel"),jt=oe({...Ae(),...Rt()},"VExpansionPanelText"),$e=ue()({name:"VExpansionPanelText",props:jt(),setup(e,t){let{slots:l}=t;const n=ft(ye);if(!n)throw new Error("[Vuetify] v-expansion-panel-text needs to be placed inside v-expansion-panel");const{hasContent:a,onAfterLeave:i}=Dt(e,n.isSelected);return de(()=>d(Tt,{onAfterLeave:i},{default:()=>{var s;return[ce(d("div",{class:["v-expansion-panel-text",e.class],style:e.style},[l.default&&a.value&&d("div",{class:"v-expansion-panel-text__wrapper"},[(s=l.default)==null?void 0:s.call(l)])]),[[be,n.isSelected.value]])]}})),{}}}),$t=oe({color:String,expandIcon:{type:Qe,default:"$expand"},collapseIcon:{type:Qe,default:"$collapse"},hideActions:Boolean,focusable:Boolean,static:Boolean,ripple:{type:[Boolean,Object],default:!1},readonly:Boolean,...Ae(),...Et()},"VExpansionPanelTitle"),Me=ue()({name:"VExpansionPanelTitle",directives:{Ripple:Ft},props:$t(),setup(e,t){let{slots:l}=t;const n=ft(ye);if(!n)throw new Error("[Vuetify] v-expansion-panel-title needs to be placed inside v-expansion-panel");const{backgroundColorClasses:a,backgroundColorStyles:i}=qe(e,"color"),{dimensionStyles:s}=Lt(e),c=A(()=>({collapseIcon:e.collapseIcon,disabled:n.disabled.value,expanded:n.isSelected.value,expandIcon:e.expandIcon,readonly:e.readonly})),h=A(()=>n.isSelected.value?e.collapseIcon:e.expandIcon);return de(()=>{var f;return ce(d("button",{class:["v-expansion-panel-title",{"v-expansion-panel-title--active":n.isSelected.value,"v-expansion-panel-title--focusable":e.focusable,"v-expansion-panel-title--static":e.static},a.value,e.class],style:[i.value,s.value,e.style],type:"button",tabindex:n.disabled.value?-1:void 0,disabled:n.disabled.value,"aria-expanded":n.isSelected.value,onClick:e.readonly?void 0:n.toggle},[d("span",{class:"v-expansion-panel-title__overlay"},null),(f=l.default)==null?void 0:f.call(l,c.value),!e.hideActions&&d(Ie,{defaults:{VIcon:{icon:h.value}}},{default:()=>{var u;return[d("span",{class:"v-expansion-panel-title__icon"},[((u=l.actions)==null?void 0:u.call(l,c.value))??d(te,null,null)])]}})]),[[Nt("ripple"),e.ripple]])}),{}}}),Mt=oe({title:String,text:String,bgColor:String,...vt(),...Bt(),...mt(),...He(),...$t(),...jt()},"VExpansionPanel"),Ct=ue()({name:"VExpansionPanel",props:Mt(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:l}=t;const n=zt(e,ye),{backgroundColorClasses:a,backgroundColorStyles:i}=qe(e,"bgColor"),{elevationClasses:s}=ht(e),{roundedClasses:c}=gt(e),h=A(()=>(n==null?void 0:n.disabled.value)||e.disabled),f=A(()=>n.group.items.value.reduce((o,v,k)=>(n.group.selected.value.includes(v.id)&&o.push(k),o),[])),u=A(()=>{const o=n.group.items.value.findIndex(v=>v.id===n.id);return!n.isSelected.value&&f.value.some(v=>v-o===1)}),r=A(()=>{const o=n.group.items.value.findIndex(v=>v.id===n.id);return!n.isSelected.value&&f.value.some(v=>v-o===-1)});return Ut(ye,n),de(()=>{const o=!!(l.text||e.text),v=!!(l.title||e.title),k=Me.filterProps(e),p=$e.filterProps(e);return d(e.tag,{class:["v-expansion-panel",{"v-expansion-panel--active":n.isSelected.value,"v-expansion-panel--before-active":u.value,"v-expansion-panel--after-active":r.value,"v-expansion-panel--disabled":h.value},c.value,a.value,e.class],style:[i.value,e.style]},{default:()=>[d("div",{class:["v-expansion-panel__shadow",...s.value]},null),d(Ie,{defaults:{VExpansionPanelTitle:{...k},VExpansionPanelText:{...p}}},{default:()=>{var _;return[v&&d(Me,{key:"title"},{default:()=>[l.title?l.title():e.title]}),o&&d($e,{key:"text"},{default:()=>[l.text?l.text():e.text]}),(_=l.default)==null?void 0:_.call(l)]}})]})}),{groupItem:n}}}),Ya=["default","accordion","inset","popout"],Ja=oe({flat:Boolean,...Wt(),...Ht(Mt(),["bgColor","collapseIcon","color","eager","elevation","expandIcon","focusable","hideActions","readonly","ripple","rounded","tile","static"]),...pt(),...Ae(),...He(),variant:{type:String,default:"default",validator:e=>Ya.includes(e)}},"VExpansionPanels"),Ga=ue()({name:"VExpansionPanels",props:Ja(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:l}=t;const{next:n,prev:a}=Yt(e,ye),{themeClasses:i}=yt(e),s=A(()=>e.variant&&`v-expansion-panels--variant-${e.variant}`);return bt({VExpansionPanel:{bgColor:Y(e,"bgColor"),collapseIcon:Y(e,"collapseIcon"),color:Y(e,"color"),eager:Y(e,"eager"),elevation:Y(e,"elevation"),expandIcon:Y(e,"expandIcon"),focusable:Y(e,"focusable"),hideActions:Y(e,"hideActions"),readonly:Y(e,"readonly"),ripple:Y(e,"ripple"),rounded:Y(e,"rounded"),static:Y(e,"static")}}),de(()=>d(e.tag,{class:["v-expansion-panels",{"v-expansion-panels--flat":e.flat,"v-expansion-panels--tile":e.tile},i.value,s.value,e.class],style:e.style},{default:()=>{var c;return[(c=l.default)==null?void 0:c.call(l,{prev:a,next:n})]}})),{next:n,prev:a}}}),Xa=oe({indeterminate:Boolean,inset:Boolean,flat:Boolean,loading:{type:[Boolean,String],default:!1},...qt(),...Jt()},"VSwitch"),Za=ue()({name:"VSwitch",inheritAttrs:!1,props:Xa(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:indeterminate":e=>!0},setup(e,t){let{attrs:l,slots:n}=t;const a=Ve(e,"indeterminate"),i=Ve(e,"modelValue"),{loaderClasses:s}=Gt(e),{isFocused:c,focus:h,blur:f}=Vt(e),u=R(),r=Xt&&window.matchMedia("(forced-colors: active)").matches,o=A(()=>typeof e.loading=="string"&&e.loading!==""?e.loading:e.color),v=Zt(),k=A(()=>e.id||`switch-${v}`);function p(){a.value&&(a.value=!1)}function _(V){var y,x;V.stopPropagation(),V.preventDefault(),(x=(y=u.value)==null?void 0:y.input)==null||x.click()}return de(()=>{const[V,y]=Qt(l),x=Pe.filterProps(e),$=Ke.filterProps(e);return d(Pe,re({class:["v-switch",{"v-switch--flat":e.flat},{"v-switch--inset":e.inset},{"v-switch--indeterminate":a.value},s.value,e.class]},V,x,{modelValue:i.value,"onUpdate:modelValue":S=>i.value=S,id:k.value,focused:c.value,style:e.style}),{...n,default:S=>{let{id:P,messagesId:j,isDisabled:O,isReadonly:b,isValid:g}=S;const m={model:i,isValid:g};return d(Ke,re({ref:u},$,{modelValue:i.value,"onUpdate:modelValue":[M=>i.value=M,p],id:P.value,"aria-describedby":j.value,type:"checkbox","aria-checked":a.value?"mixed":void 0,disabled:O.value,readonly:b.value,onFocus:h,onBlur:f},y),{...n,default:M=>{let{backgroundColorClasses:C,backgroundColorStyles:T}=M;return d("div",{class:["v-switch__track",r?void 0:C.value],style:T.value,onClick:_},[n["track-true"]&&d("div",{key:"prepend",class:"v-switch__track-true"},[n["track-true"](m)]),n["track-false"]&&d("div",{key:"append",class:"v-switch__track-false"},[n["track-false"](m)])])},input:M=>{let{inputNode:C,icon:T,backgroundColorClasses:X,backgroundColorStyles:H}=M;return d(Q,null,[C,d("div",{class:["v-switch__thumb",{"v-switch__thumb--filled":T||e.loading},e.inset||r?void 0:X.value],style:e.inset?void 0:H.value},[n.thumb?d(Ie,{defaults:{VIcon:{icon:T,size:"x-small"}}},{default:()=>[n.thumb({...m,icon:T})]}):d(Kt,null,{default:()=>[e.loading?d(ea,{name:"v-switch",active:!0,color:g.value===!1?void 0:o.value},{default:L=>n.loader?n.loader(L):d(Re,{active:L.isActive,color:L.color,indeterminate:!0,size:"16",width:"2"},null)}):T&&d(te,{key:String(T),icon:T,size:"x-small"},null)]})])])}})}})}),{}}}),Qa={class:"v-data-table__tr"},Ka={key:1,class:"d-flex justify-center ml-1 pt-2"},el={class:"mx-1"},Ee=15,tl={__name:"TermFilter",props:{field:{type:String,required:!0},data:{type:Array,required:!0},loading:{type:Boolean,required:!1,default:!1},andOrMode:{type:Boolean,required:!1,default:!1}},setup(e){const t=e,l=ee(),n=De(),a=R(15),i=[{align:"start",sortable:!1,value:"label"},{align:"end",sortable:!1,value:"count",width:"30px"}],s=R(),c=R([]),h=R(!1);function f(){s.value=[],c.value=[];let o=new URLSearchParams(l.fullPath.split("?")[1]).getAll("qfilter");if(o=o.filter(v=>v.startsWith(t.field))[0],o){let v;o.includes("-IS_AND-")?(v=o.split("-IS_AND-")[1].split("-AND-"),h.value=!0):(v=o.split("-IS_OR-")[1].split("-OR-"),h.value=!1);let k;for(let p of v){k=!1;for(let _ of t.data)if(_.iri.split("/").slice(-1)==p){s.value.push(_.iri),k=!0;break}k||c.value.push(p)}}}K(()=>f()),z([()=>t.data,()=>l.query],([,],[r,o])=>{(r.q!=o.q||r.parent_id!=o.parent_id||JSON.stringify(r.qfilter)!=JSON.stringify(o.qfilter))&&f()});async function u(){await Ye();let r="-OR-";h.value&&(r="-AND-");let v=new URLSearchParams(l.fullPath.split("?")[1]).getAll("qfilter"),k=v.findIndex(V=>V.startsWith(t.field)),p=s.value.map(V=>V);if(p.length){let V=p.map(x=>x.split("/").slice(-1)).join(r),y=`${t.field}-IS_${r.slice(1)}${V}`;k!=-1?v[k]=y:v.push(y)}else v=v.filter(V=>!V.startsWith(t.field));let _=Object.assign({},l.query);v.length?v.length==1?_.qfilter=v[0]:_.qfilter=v:delete _.qfilter,delete _.page,JSON.stringify(l.query)!=JSON.stringify(_)&&n.push({query:_})}return(r,o)=>ce((q(),I(Ct,null,{default:w(()=>[d(Me,{class:"pa-4"},{default:w(()=>[E("div",null,F(r.$t(`label.${t.field}`)),1)]),_:1}),d($e,null,{default:w(()=>[t.data&&t.loading?(q(),I(xt,{key:0,contained:"","model-value":t.loading,class:"align-center justify-center",scrim:!1,transition:"fade-transition"},{default:w(()=>[d(Re,{size:"30",width:"4",indeterminate:"",color:"grey-lighten-4"})]),_:1},8,["model-value"])):B("",!0),d(Va,{modelValue:s.value,"onUpdate:modelValue":[o[2]||(o[2]=v=>s.value=v),u],class:"filter-table",density:"compact","show-select":"","select-strategy":"all","items-per-page":a.value,headers:i,items:t.data,"item-key":"label","item-value":"iri"},{headers:w(()=>o[4]||(o[4]=[])),bottom:w(()=>[E("tr",Qa,[o[5]||(o[5]=E("td",{style:{width:"30px"}},null,-1)),E("td",null,[t.data&&a.value<t.data.length?(q(),I(ae,{key:0,class:"mr-2",variant:"outlined",size:"small",onClick:o[0]||(o[0]=v=>a.value=a.value+Ee)},{default:w(()=>[G(F(r.$t("site_navigation.more")),1)]),_:1})):B("",!0),t.data&&a.value>Ee?(q(),I(ae,{key:1,variant:"outlined",size:"small",onClick:o[1]||(o[1]=v=>a.value=a.value-Ee)},{default:w(()=>[G(F(r.$t("site_navigation.less")),1)]),_:1})):B("",!0)])])]),_:1},8,["modelValue","items-per-page","items"]),t.andOrMode?(q(),D("div",Ka,[o[6]||(o[6]=E("div",null,"OR",-1)),E("div",el,[d(Za,{modelValue:h.value,"onUpdate:modelValue":[o[3]||(o[3]=v=>h.value=v),u],class:"ma-0 pa-0",density:"compact",inset:"","hide-details":"",ripple:!1},null,8,["modelValue"])]),o[7]||(o[7]=E("div",null,"AND",-1))])):B("",!0)]),_:1})]),_:1},512)),[[be,t.data&&t.data.length>0]])}},al=fe(tl,[["__scopeId","data-v-55f9c9d7"]]);function ll(e,t){let l=0;for(let n of e)n!=null&&(n=+n)>=n&&++l;return l}function nl(e){return e}var il=Array.prototype,sl=il.slice;function Fe(e){return()=>e}function rl(e,t,l){let n;for(;;){const a=je(e,t,l);if(a===n||a===0||!isFinite(a))return[e,t];a>0?(e=Math.floor(e/a)*a,t=Math.ceil(t/a)*a):a<0&&(e=Math.ceil(e*a)/a,t=Math.floor(t*a)/a),n=a}}function ol(e){return Math.max(1,Math.ceil(Math.log(ll(e))/Math.LN2)+1)}function ul(){var e=nl,t=Te,l=ol;function n(a){Array.isArray(a)||(a=Array.from(a));var i,s=a.length,c,h,f=new Array(s);for(i=0;i<s;++i)f[i]=e(a[i],i,a);var u=t(f),r=u[0],o=u[1],v=l(f,r,o);if(!Array.isArray(v)){const x=o,$=+v;if(t===Te&&([r,o]=rl(r,o,$)),v=Pt(r,o,$),v[0]<=r&&(h=je(r,o,$)),v[v.length-1]>=o)if(x>=o&&t===Te){const S=je(r,o,$);isFinite(S)&&(S>0?o=(Math.floor(o/S)+1)*S:S<0&&(o=(Math.ceil(o*-S)+1)/-S))}else v.pop()}for(var k=v.length,p=0,_=k;v[p]<=r;)++p;for(;v[_-1]>o;)--_;(p||_<k)&&(v=v.slice(p,_),k=_-p);var V=new Array(k+1),y;for(i=0;i<=k;++i)y=V[i]=[],y.x0=i>0?v[i-1]:r,y.x1=i<k?v[i]:o;if(isFinite(h)){if(h>0)for(i=0;i<s;++i)(c=f[i])!=null&&r<=c&&c<=o&&V[Math.min(k,Math.floor((c-r)/h))].push(a[i]);else if(h<0){for(i=0;i<s;++i)if((c=f[i])!=null&&r<=c&&c<=o){const x=Math.floor((r-c)*h);V[Math.min(k,x+(v[x]<=c))].push(a[i])}}}else for(i=0;i<s;++i)(c=f[i])!=null&&r<=c&&c<=o&&V[$a(v,c,0,k)].push(a[i]);return V}return n.value=function(a){return arguments.length?(e=typeof a=="function"?a:Fe(a),n):e},n.domain=function(a){return arguments.length?(t=typeof a=="function"?a:Fe([a[0],a[1]]),n):t},n.thresholds=function(a){return arguments.length?(l=typeof a=="function"?a:Fe(Array.isArray(a)?sl.call(a):a),n):l},n}function dl(e,t,l){e=+e,t=+t,l=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+l;for(var n=-1,a=Math.max(0,Math.ceil((t-e)/l))|0,i=new Array(a);++n<a;)i[n]=e+n*l;return i}function cl(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Ce(e,t){if((l=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var l,n=e.slice(0,l);return[n.length>1?n[0]+n.slice(2):n,+e.slice(l+1)]}function ge(e){return e=Ce(Math.abs(e)),e?e[1]:NaN}function fl(e,t){return function(l,n){for(var a=l.length,i=[],s=0,c=e[0],h=0;a>0&&c>0&&(h+c+1>n&&(c=Math.max(1,n-h)),i.push(l.substring(a-=c,a+c)),!((h+=c+1)>n));)c=e[s=(s+1)%e.length];return i.reverse().join(t)}}function vl(e){return function(t){return t.replace(/[0-9]/g,function(l){return e[+l]})}}var ml=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Oe(e){if(!(t=ml.exec(e)))throw new Error("invalid format: "+e);var t;return new Je({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Oe.prototype=Je.prototype;function Je(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Je.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function hl(e){e:for(var t=e.length,l=1,n=-1,a;l<t;++l)switch(e[l]){case".":n=a=l;break;case"0":n===0&&(n=l),a=l;break;default:if(!+e[l])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(a+1):e}var Ot;function gl(e,t){var l=Ce(e,t);if(!l)return e+"";var n=l[0],a=l[1],i=a-(Ot=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,s=n.length;return i===s?n:i>s?n+new Array(i-s+1).join("0"):i>0?n.slice(0,i)+"."+n.slice(i):"0."+new Array(1-i).join("0")+Ce(e,Math.max(0,t+i-1))[0]}function lt(e,t){var l=Ce(e,t);if(!l)return e+"";var n=l[0],a=l[1];return a<0?"0."+new Array(-a).join("0")+n:n.length>a+1?n.slice(0,a+1)+"."+n.slice(a+1):n+new Array(a-n.length+2).join("0")}const nt={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:cl,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>lt(e*100,t),r:lt,s:gl,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function it(e){return e}var st=Array.prototype.map,rt=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function pl(e){var t=e.grouping===void 0||e.thousands===void 0?it:fl(st.call(e.grouping,Number),e.thousands+""),l=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?it:vl(st.call(e.numerals,String)),s=e.percent===void 0?"%":e.percent+"",c=e.minus===void 0?"−":e.minus+"",h=e.nan===void 0?"NaN":e.nan+"";function f(r){r=Oe(r);var o=r.fill,v=r.align,k=r.sign,p=r.symbol,_=r.zero,V=r.width,y=r.comma,x=r.precision,$=r.trim,S=r.type;S==="n"?(y=!0,S="g"):nt[S]||(x===void 0&&(x=12),$=!0,S="g"),(_||o==="0"&&v==="=")&&(_=!0,o="0",v="=");var P=p==="$"?l:p==="#"&&/[boxX]/.test(S)?"0"+S.toLowerCase():"",j=p==="$"?n:/[%p]/.test(S)?s:"",O=nt[S],b=/[defgprs%]/.test(S);x=x===void 0?6:/[gprs]/.test(S)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function g(m){var M=P,C=j,T,X,H;if(S==="c")C=O(m)+C,m="";else{m=+m;var L=m<0||1/m<0;if(m=isNaN(m)?h:O(Math.abs(m),x),$&&(m=hl(m)),L&&+m==0&&k!=="+"&&(L=!1),M=(L?k==="("?k:c:k==="-"||k==="("?"":k)+M,C=(S==="s"?rt[8+Ot/3]:"")+C+(L&&k==="("?")":""),b){for(T=-1,X=m.length;++T<X;)if(H=m.charCodeAt(T),48>H||H>57){C=(H===46?a+m.slice(T+1):m.slice(T))+C,m=m.slice(0,T);break}}}y&&!_&&(m=t(m,1/0));var Z=M.length+m.length+C.length,U=Z<V?new Array(V-Z+1).join(o):"";switch(y&&_&&(m=t(U+m,U.length?V-C.length:1/0),U=""),v){case"<":m=M+m+C+U;break;case"=":m=M+U+m+C;break;case"^":m=U.slice(0,Z=U.length>>1)+M+m+C+U.slice(Z);break;default:m=U+M+m+C;break}return i(m)}return g.toString=function(){return r+""},g}function u(r,o){var v=f((r=Oe(r),r.type="f",r)),k=Math.max(-8,Math.min(8,Math.floor(ge(o)/3)))*3,p=Math.pow(10,-k),_=rt[8+k/3];return function(V){return v(p*V)+_}}return{format:f,formatPrefix:u}}var ke,At,It;yl({thousands:",",grouping:[3],currency:["$",""]});function yl(e){return ke=pl(e),At=ke.format,It=ke.formatPrefix,ke}function bl(e){return Math.max(0,-ge(Math.abs(e)))}function xl(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ge(t)/3)))*3-ge(Math.abs(e)))}function _l(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ge(t)-ge(e))+1}function wl(e,t,l,n){var a=Ma(e,t,l),i;switch(n=Oe(n??",f"),n.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(i=xl(a,s))&&(n.precision=i),It(n,s)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(i=_l(a,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=i-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(i=bl(a))&&(n.precision=i-(n.type==="%")*2);break}}return At(n)}function kl(e){var t=e.domain;return e.ticks=function(l){var n=t();return Pt(n[0],n[n.length-1],l??10)},e.tickFormat=function(l,n){var a=t();return wl(a[0],a[a.length-1],l??10,n)},e.nice=function(l){l==null&&(l=10);var n=t(),a=0,i=n.length-1,s=n[a],c=n[i],h,f,u=10;for(c<s&&(f=s,s=c,c=f,f=a,a=i,i=f);u-- >0;){if(f=je(s,c,l),f===h)return n[a]=s,n[i]=c,t(n);if(f>0)s=Math.floor(s/f)*f,c=Math.ceil(c/f)*f;else if(f<0)s=Math.ceil(s*f)/f,c=Math.floor(c*f)/f;else break;h=f}return e},e}function We(){var e=Ca();return e.copy=function(){return Oa(e,We())},Aa.apply(e,arguments),kl(e)}const Sl=["id"],ql={__name:"DateHistogram",props:{field:{type:String,required:!0},data:{type:Array,default:()=>[]},modelValue:{type:Array,default:()=>[]},height:{type:Number,required:!1,default:120},maxNBins:{type:Number,required:!1,default:50}},emits:["update:modelValue"],setup(e,{emit:t}){const l=e,n=t,{t:a}=_t();var i,s;K(()=>{c(),h()}),z(()=>l.data,u=>{s.style("display","none"),u.length&&(i.selectAll("rect").remove(),h())}),z(()=>l.modelValue,u=>{s.style("display","none"),i.selectAll("rect").attr("fill",r=>f(r,u))});function c(){i=we(`div#histogram-${l.field}`).append("svg").attr("preserveAspectRatio","xMinYMin meet").attr("viewBox",`0 0 300 ${l.height}`).classed("svg-content",!0).append("g").attr("transform","translate(0,0)")}function h(){const u=Math.min(...l.data),r=Math.max(...l.data),o=We().range([0,300]).domain([u,r]);var v=i.append("g").attr("class","x axis").attr("transform",`translate(0, ${l.height})`).call(Ia(o).tickValues([]));v.selectAll("path").style("stroke","#c4c4c4").style("stroke-width","2px");var k=[];k=dl(u,r,(r-u)/Math.min(l.maxNBins,l.data.length)),k=k.map(y=>Math.floor(y));var p=ul().domain(o.domain()).thresholds(k),_=p(l.data),V=We().range([l.height,0]);V.domain([0,Ra(_,y=>y.length)]),s=we("body").append("div").attr("class","date-histogram-tooltip"),i.selectAll("rect").data(_).enter().append("rect").attr("x",y=>o(y.x0)).attr("y",y=>V(y.length)).attr("width",y=>o(y.x1)-o(y.x0)).attr("height",y=>l.height-V(y.length)).attr("fill",y=>f(y,l.modelValue)).on("mouseover",(y,x)=>{we(y.currentTarget).attr("fill","black");const $=x.x0==u?x.x0:x.x0+1;s.style("display","block").html("<p>"+a("site_navigation.time_interval")+": <strong>"+$+" &#8211 "+x.x1+"</strong></p><p>"+a("site_navigation.count")+": <strong>"+x.length+"</strong></p>")}).on("mousemove",y=>{s.style("top",y.pageY-10+"px").style("left",y.pageX+12+"px")}).on("mouseout",(y,x)=>{const $=f(x,l.modelValue);we(y.currentTarget).attr("fill",$),s.style("display","none")}).on("click",(y,x)=>{const $=x.x0==u?x.x0:x.x0+1;n("update:modelValue",[$,x.x1])})}function f(u,r){return u.x1>r[0]&&u.x0<r[1]?"#757575":"#c4c4c4"}return(u,r)=>(q(),D("div",{id:"histogram-"+l.field,class:"svg-container"},null,8,Sl))}},Vl=fe(ql,[["__scopeId","data-v-56ee6c4a"]]),Pl=oe({...ja(),...qt(),...Da(),strict:Boolean,modelValue:{type:Array,default:()=>[0,0]}},"VRangeSlider"),jl=ue()({name:"VRangeSlider",props:Pl(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,end:e=>!0,start:e=>!0},setup(e,t){let{slots:l,emit:n}=t;const a=R(),i=R(),s=R(),{rtlClasses:c}=wt();function h(g){if(!a.value||!i.value)return;const m=at(g,a.value.$el,e.direction),M=at(g,i.value.$el,e.direction),C=Math.abs(m),T=Math.abs(M);return C<T||C===T&&m<0?a.value.$el:i.value.$el}const f=Ta(e),u=Ve(e,"modelValue",void 0,g=>g!=null&&g.length?g.map(m=>f.roundValue(m)):[0,0]),{activeThumbRef:r,hasLabels:o,max:v,min:k,mousePressed:p,onSliderMousedown:_,onSliderTouchstart:V,position:y,trackContainerRef:x,readonly:$}=Ea({props:e,steps:f,onSliderStart:()=>{n("start",u.value)},onSliderEnd:g=>{var C;let{value:m}=g;const M=r.value===((C=a.value)==null?void 0:C.$el)?[m,u.value[1]]:[u.value[0],m];!e.strict&&M[0]<M[1]&&(u.value=M),n("end",u.value)},onSliderMove:g=>{var T,X,H,L;let{value:m}=g;const[M,C]=u.value;!e.strict&&M===C&&M!==k.value&&(r.value=m>M?(T=i.value)==null?void 0:T.$el:(X=a.value)==null?void 0:X.$el,(H=r.value)==null||H.focus()),r.value===((L=a.value)==null?void 0:L.$el)?u.value=[Math.min(m,C),C]:u.value=[M,Math.max(M,m)]},getActiveThumb:h}),{isFocused:S,focus:P,blur:j}=Vt(e),O=A(()=>y(u.value[0])),b=A(()=>y(u.value[1]));return de(()=>{const g=Pe.filterProps(e),m=!!(e.label||l.label||l.prepend);return d(Pe,re({class:["v-slider","v-range-slider",{"v-slider--has-labels":!!l["tick-label"]||o.value,"v-slider--focused":S.value,"v-slider--pressed":p.value,"v-slider--disabled":e.disabled},c.value,e.class],style:e.style,ref:s},g,{focused:S.value}),{...l,prepend:m?M=>{var C,T;return d(Q,null,[((C=l.label)==null?void 0:C.call(l,M))??(e.label?d(ta,{class:"v-slider__label",text:e.label},null):void 0),(T=l.prepend)==null?void 0:T.call(l,M)])}:void 0,default:M=>{var X,H;let{id:C,messagesId:T}=M;return d("div",{class:"v-slider__container",onMousedown:$.value?void 0:_,onTouchstartPassive:$.value?void 0:V},[d("input",{id:`${C.value}_start`,name:e.name||C.value,disabled:!!e.disabled,readonly:!!e.readonly,tabindex:"-1",value:u.value[0]},null),d("input",{id:`${C.value}_stop`,name:e.name||C.value,disabled:!!e.disabled,readonly:!!e.readonly,tabindex:"-1",value:u.value[1]},null),d(Fa,{ref:x,start:O.value,stop:b.value},{"tick-label":l["tick-label"]}),d(tt,{ref:a,"aria-describedby":T.value,focused:S&&r.value===((X=a.value)==null?void 0:X.$el),modelValue:u.value[0],"onUpdate:modelValue":L=>u.value=[L,u.value[1]],onFocus:L=>{var Z,U,ie,N;P(),r.value=(Z=a.value)==null?void 0:Z.$el,u.value[0]===u.value[1]&&u.value[1]===k.value&&L.relatedTarget!==((U=i.value)==null?void 0:U.$el)&&((ie=a.value)==null||ie.$el.blur(),(N=i.value)==null||N.$el.focus())},onBlur:()=>{j(),r.value=void 0},min:k.value,max:u.value[1],position:O.value,ripple:e.ripple},{"thumb-label":l["thumb-label"]}),d(tt,{ref:i,"aria-describedby":T.value,focused:S&&r.value===((H=i.value)==null?void 0:H.$el),modelValue:u.value[1],"onUpdate:modelValue":L=>u.value=[u.value[0],L],onFocus:L=>{var Z,U,ie,N;P(),r.value=(Z=i.value)==null?void 0:Z.$el,u.value[0]===u.value[1]&&u.value[0]===v.value&&L.relatedTarget!==((U=a.value)==null?void 0:U.$el)&&((ie=i.value)==null||ie.$el.blur(),(N=a.value)==null||N.$el.focus())},onBlur:()=>{j(),r.value=void 0},min:u.value[0],max:v.value,position:b.value,ripple:e.ripple},{"thumb-label":l["thumb-label"]})])}})}),{}}}),$l={class:"mt-3 px-2"},Ml={__name:"DateFilter",props:{field:{type:String,required:!0},data:{type:Array,required:!0},loading:{type:Boolean,required:!1,default:!1}},setup(e){const t=e,l=R([-3e3,2e3]),n=A(()=>t.data.length?Math.min(...t.data):-3e3),a=A(()=>t.data.length?Math.max(...t.data):3e3),i=A(()=>[...new Set(t.data)].length>1),s=ee(),c=De();function h(){let r=new URLSearchParams(s.fullPath.split("?")[1]).getAll("qfilter");if(r=r.filter(o=>o.startsWith(t.field))[0],r){let o=r.split(":");l.value=[parseInt(o[1]),parseInt(o[3])]}else l.value=[n.value,a.value]}K(()=>h()),z(()=>s.query,(u,r)=>{(u.q!=r.q||u.parent_id!=r.parent_id||JSON.stringify(u.qfilter)!=JSON.stringify(r.qfilter))&&h()}),z(()=>t.data,()=>h());function f(){let r=new URLSearchParams(s.fullPath.split("?")[1]).getAll("qfilter");if(r=r.filter(v=>!v.startsWith(t.field)),!(l.value[0]==n.value&&l.value[1]==a.value)){let v=Math.max(l.value[0],n.value),k=Math.min(l.value[1],a.value),p=`from:${v}:to:${k}`;r.push(`${t.field}-IS-${p}`)}let o=Object.assign({},s.query);o.qfilter=r,delete o.page,JSON.stringify(s.query)!=JSON.stringify(o)&&c.push({query:o})}return(u,r)=>ce((q(),I(Ct,null,{default:w(()=>[d(Me,{class:"pa-4"},{default:w(()=>[E("div",null,F(u.$t(`label.${e.field}`)),1)]),_:1}),d($e,null,{default:w(()=>[e.data&&e.loading?(q(),I(xt,{key:0,contained:"","model-value":e.loading,class:"align-center justify-center",scrim:!1,transition:"fade-transition"},{default:w(()=>[d(Re,{size:"30",width:"4",indeterminate:"",color:"grey-lighten-4"})]),_:1},8,["model-value"])):B("",!0),E("div",$l,[d(W,{class:"px-2"},{default:w(()=>[d(Vl,{modelValue:l.value,"onUpdate:modelValue":[r[0]||(r[0]=o=>l.value=o),f],field:t.field,data:e.data},null,8,["modelValue","field","data"])]),_:1}),d(W,null,{default:w(()=>[d(jl,{modelValue:l.value,"onUpdate:modelValue":r[1]||(r[1]=o=>l.value=o),max:a.value,min:n.value,"hide-details":"","thumb-size":"12","track-size":"1",step:"1","track-fill-color":"#757575",class:"align-center foreground",onEnd:f},null,8,["modelValue","max","min"])]),_:1}),d(W,{justify:"space-between",class:"px-2 mb-1"},{default:w(()=>[d(he,{elevation:"0",class:"px-1"},{default:w(()=>[d(et,{modelValue:l.value[0],"onUpdate:modelValue":[r[2]||(r[2]=o=>l.value[0]=o),f],class:"pa-0","hide-details":"",variant:"underlined",density:"compact",type:"number",style:{width:"100px"}},{prepend:w(()=>[G(F(u.$t("dating.from"))+": ",1)]),_:1},8,["modelValue"])]),_:1}),d(he,{elevation:"0",class:"px-1"},{default:w(()=>[d(et,{modelValue:l.value[1],"onUpdate:modelValue":[r[3]||(r[3]=o=>l.value[1]=o),f],class:"pa-0","hide-details":"",variant:"underlined",density:"compact",type:"number",style:{width:"98px"}},{prepend:w(()=>[G(F(u.$t("dating.to"))+": ",1)]),_:1},8,["modelValue"])]),_:1})]),_:1})])]),_:1})]),_:1},512)),[[be,e.data&&i.value]])}},Cl=fe(Ml,[["__scopeId","data-v-5165f668"]]),Ol={key:0,class:"px-2 my-1"},Al={key:0,class:"mr-1"},Il={class:"mt-4"},Rl={key:0,class:"py-2 d-flex justify-center",style:{"background-color":"#f5f5f5"}},Dl={class:"text-subtitle-1"},Tl={__name:"FilterPanel",props:{aggregation:{type:Object,required:!1,default:()=>{}}},emits:["drawer-closed"],setup(e,{emit:t}){const l=e,n=t,a=ee(),i=De(),s=R({}),c=R({}),h=A(()=>{let p=Object.assign({},a.query);return"qfilter"in p&&p.qfilter.length||p.parent_id});z(()=>a.query,(p,_)=>{(p.q!=_.q||p.parent_id!=_.parent_id||JSON.stringify(p.qfilter)!=JSON.stringify(_.qfilter))&&u()}),z(l.aggregation,()=>{u()}),K(()=>{u(),k()});function f(p){for(let _ of Object.values(p))if(_.type=="term_aggregation"){if(_.values.length)return!1}else if([...new Set(_.values)].length>1)return!1;return!0}function u(){let p=s.value;s.value={};let V=new URLSearchParams(a.fullPath.split("?")[1]).getAll("qfilter");for(let y of V)if(y.includes("from")&&y.includes("to")){let[x,$]=y.split("-IS-");s.value[x]={values:[{label:$}]}}else{let x,$,S;y.includes("-IS_AND-")?([x,S]=y.split("-IS_AND-"),$="-AND-"):([x,S]=y.split("-IS_OR-"),$="-OR-");let P;s.value[x]={connective:$,values:[]};for(let j of S.split($))for(let O of Object.values(l.aggregation))if(Object.keys(O).includes(x)){P=!1;for(let b of O[x].values)if(b.iri.split("/").slice(-1)==j){s.value[x].values.push(b),P=!0;break}if(!P&&p[x]){let b=p[x].values.find(g=>g.iri.split("/").slice(-1)==j);b&&s.value[x].values.push(b)}break}}}function r(p){return p.includes("from:")&&p.includes(":to:")&&(p=p.replace("from:","").replace(":to:"," - ")),p}function o(p,_){let y=new URLSearchParams(a.fullPath.split("?")[1]).getAll("qfilter"),x=y.findIndex(j=>j.startsWith(p)),S=s.value[p].values.filter(j=>j!=_).map(j=>j.iri.split("/").splice(-1));if(S.length){let j="-IS_OR-";s.value[p].connective=="-AND-"&&(j="-IS_AND-"),y[x]=p+j+S.join(s.value[p].connective)}else y.splice(x,1);let P=Object.assign({},a.query);y.length?y.length==1?P.qfilter=y[0]:P.qfilter=y:delete P.qfilter,delete P.page,i.push({query:P})}function v(){let p=Object.assign({},a.query);p.qfilter=[],delete p.page,delete p.parent_id,i.push({query:p})}function k(){let _=new URLSearchParams(a.fullPath.split("?")[1]).getAll("qfilter");for(const V of _){let y=V.split("-IS_OR-")[0].split("-IS_AND-")[0];for(const[x,$]of Object.entries(l.aggregation)){let S=Object.keys($).indexOf(y);S>-1&&(x in c.value?c.value[x].push(S):c.value[x]=[S])}}}return(p,_)=>(q(),I(Ne,{elevation:"0",class:"mx-2 pa-2"},{default:w(()=>[d(W,{align:"center",justify:"space-between",class:"pa-0 ma-1"},{default:w(()=>[_[2]||(_[2]=E("div",{class:"pa-2",style:{color:"rgba(0, 0, 0, 0.6)"}},"Filter",-1)),E("div",null,[h.value?(q(),I(ze,{key:0,class:"pa-1 pr-3 py-2",closable:"",label:"",variant:"outlined",color:"red","onClick:close":v},{default:w(()=>[G(F(p.$t("site_navigation.clear_all_filters")),1)]),_:1})):B("",!0),p.$vuetify.display.mobile?(q(),I(ae,{key:1,icon:"",onClick:_[0]||(_[0]=V=>n("drawer-closed"))},{default:w(()=>[d(te,null,{default:w(()=>_[1]||(_[1]=[G("mdi-close")])),_:1})]),_:1})):B("",!0)])]),_:1}),d(pe,{class:"my-2",horizontal:""}),(q(!0),D(Q,null,le(s.value,(V,y)=>(q(),D("div",{key:y},[V.values.length?(q(),D("div",Ol,[E("div",null,F(p.$t(`label.${y}`))+":",1),(q(!0),D(Q,null,le(V.values,(x,$)=>(q(),D("span",{key:x.iri},[d(ze,{class:"mr-1 mb-1",closable:"",label:"",variant:"outlined",color:"red","onClick:close":S=>o(y,x)},{default:w(()=>[G(F(r(x.label)),1)]),_:2},1032,["onClick:close"]),$!=V.values.length-1?(q(),D("span",Al,F(V.connective.replaceAll("-","")),1)):B("",!0)]))),128))])):B("",!0)]))),128)),E("div",Il,[(q(!0),D(Q,null,le(l.aggregation,(V,y)=>(q(),D("div",{key:y},[ce(d(he,{class:Le(["my-2",{"no-grouping-panel":y=="no_grouping"}]),variant:"outlined",elevation:"0"},{default:w(()=>[y!="no_grouping"?(q(),D("div",Rl,[E("div",Dl,[E("span",null,F(p.$t(`search.filter_group.${y}`)),1)])])):B("",!0),d(Ga,{modelValue:c.value[y],"onUpdate:modelValue":x=>c.value[y]=x,variant:"accordion",multiple:""},{default:w(()=>[(q(!0),D(Q,null,le(V,(x,$)=>(q(),D("div",{key:"field"+$,style:{width:"100%"},class:Le({"grouping-panel":y!="no_grouping"})},[x.type=="term_aggregation"?(q(),I(al,{key:0,field:$,data:x.values,loading:x.loading,"and-or-mode":x.andOrOption},null,8,["field","data","loading","and-or-mode"])):(q(),I(Cl,{key:1,field:$,data:x.values,loading:x.loading},null,8,["field","data","loading"]))],2))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:2},1032,["class"]),[[be,!f(V)]])]))),128))])]),_:1}))}},ot=fe(Tl,[["__scopeId","data-v-dbdb6ffa"]]),El={__name:"ResultGrid",props:{objectCardsData:{type:Array,required:!0},searchMode:{type:String,required:!1,default:null}},setup(e){const t=e;return(l,n)=>(q(),I(W,{class:"mx-1"},{default:w(()=>[(q(!0),D(Q,null,le(t.objectCardsData,(a,i)=>(q(),I(se,{key:i,class:Le(["d-flex child-flex",{custom5cols:l.$vuetify.display.xl,custom1col:l.$vuetify.display.xs}]),sm:"6",md:"4",lg:"3"},{default:w(()=>[d(J(La),{"object-data":a,"image-height":270,"search-mode":t.searchMode,"with-breadcrumbs":"","forward-query-params":""},null,8,["object-data","search-mode"])]),_:2},1032,["class"]))),128))]),_:1}))}},Fl=fe(El,[["__scopeId","data-v-ba5b688d"]]),Ll={__name:"ObjectAvatar",props:{object:{type:Object,default:()=>null}},setup(e){const t=e;return(l,n)=>t.object?(q(),I(he,{key:0,elevation:"0",rounded:"0",to:{name:"Object",params:{objectid:t.object.iri.split("/").slice(-1)[0]}}},{default:w(()=>[d(Na,{location:"left","open-delay":"200","min-width":"135","min-height":"135","content-class":"image-tooltip"},{activator:w(({props:a})=>[d(aa,re({size:"60",rounded:"0"},a),{default:w(()=>[d(J(Ue),{images:t.object.images,"image-height":60,with_tree_button:!1},null,8,["images"])]),_:2},1040)]),default:w(()=>[d(J(Ue),{images:t.object.images,"image-height":135,with_tree_button:!1},null,8,["images"])]),_:1})]),_:1},8,["to"])):(q(),I(he,{key:1,width:"50",height:"50",variant:"outlined",rounded:"0",class:"d-inline-flex"},{default:w(()=>[d(te,{color:"red"},{default:w(()=>n[0]||(n[0]=[G("mdi-exclamation")])),_:1})]),_:1}))}},Nl={class:"text-body-2"},ut={__name:"ResultTableItemRelations",props:{relations:{type:Array,default:null},label:{type:String,default:""}},setup(e){const t=e,l=R(),n=R(!1),a=R(0);function i(){a.value=Math.floor(l.value.getBoundingClientRect().width/68)*2}K(()=>i());const s=A(()=>n.value?t.relations:t.relations.length>a.value?t.relations.slice(0,a.value-2):t.relations);return(c,h)=>ce((q(),I(W,null,{default:w(()=>[d(se,null,{default:w(()=>[E("span",Nl,F(c.$t(e.label)),1),d(pe),E("div",{ref_key:"avatarsDiv",ref:l,class:"d-flex flex-wrap align-center mt-1"},[(q(!0),D(Q,null,le(s.value,(f,u)=>(q(),D("div",{key:u,class:"ma-1 pa-0"},[d(J(Ll),{object:f},null,8,["object"])]))),128)),e.relations.length-s.value.length>0?(q(),I(ae,{key:0,variant:"text",onClick:h[0]||(h[0]=Be(f=>n.value=!0,["prevent"]))},{default:w(()=>[E("span",null,F(e.relations.length-s.value.length)+" weitere...",1)]),_:1})):B("",!0),n.value?(q(),I(ae,{key:1,variant:"text",onClick:h[1]||(h[1]=Be(f=>n.value=!1,["prevent"]))},{default:w(()=>h[2]||(h[2]=[E("span",null,"weniger...",-1)])),_:1})):B("",!0)],512)]),_:1})]),_:1})),[[Ha,i]])}},Bl={class:"text-caption narrow-light"},zl={key:0},Ul={key:1},Wl={__name:"ResultTableItem",props:{object:{type:Object,default:()=>{}},searchMode:{type:String,required:!1,default:null}},setup(e){const t=e,l=ee(),n=A(()=>{let a=Object.assign({},l.query);return a.mode=t.searchMode,a});return(a,i)=>(q(),I(he,{to:{name:"Object",params:{objectid:t.object.iri.split("/").slice(-1)[0]},query:n.value},elevation:"0",variant:"outlined",style:{width:"100%"},class:"list-card text-decoration-none"},{default:w(()=>[d(W,{align:"start","no-gutters":""},{default:w(()=>[d(se,{cols:"2"},{default:w(()=>[d(J(Ue),{images:e.object.images,"image-height":169,has_children:e.object.has_children},null,8,["images","has_children"])]),_:1}),d(se,{cols:"4",class:"px-2 pt-1"},{default:w(()=>[E("div",null,F(e.object.title),1),d(la,null,{default:w(()=>[d(J(Ba),{data:e.object.path,link:!1},null,8,["data"])]),_:1}),E("div",Bl,[e.object.custody?(q(),D("div",zl,F(e.object.custody),1)):e.object.location?(q(),D("div",Ul,F(e.object.location),1)):B("",!0)])]),_:1}),d(se,{cols:"6"},{default:w(()=>[t.object.relationsLoading?(q(),I(za,{key:0,class:"pt-2"})):t.object.depictsObjects.length?(q(),I(ut,{key:1,relations:t.object.depictsObjects,label:"label.depicts"},null,8,["relations"])):t.object.depictedObjects.length?(q(),I(ut,{key:2,relations:t.object.depictedObjects,label:"label.is_depicted_in"},null,8,["relations"])):B("",!0)]),_:1})]),_:1})]),_:1},8,["to"]))}},Hl=fe(Wl,[["__scopeId","data-v-689a2874"]]),Yl={__name:"ResultTable",props:{objectCardsDataWithRelations:{type:Array,required:!0},searchMode:{type:String,required:!1,default:null}},setup(e){const t=e;return(l,n)=>(q(),D("div",null,[(q(!0),D(Q,null,le(e.objectCardsDataWithRelations,(a,i)=>(q(),I(W,{key:i,class:"pa-0 ma-4"},{default:w(()=>[d(J(Hl),{object:a,"search-mode":t.searchMode},null,8,["object","search-mode"])]),_:2},1024))),128))]))}};function Jl(e){let{rootEl:t,isSticky:l,layoutItemStyles:n}=e;const a=me(!1),i=me(0),s=A(()=>{const f=typeof a.value=="boolean"?"top":a.value;return[l.value?{top:"auto",bottom:"auto",height:void 0}:void 0,a.value?{[f]:na(i.value)}:{top:n.value.top}]});K(()=>{z(l,f=>{f?window.addEventListener("scroll",h,{passive:!0}):window.removeEventListener("scroll",h)},{immediate:!0})}),kt(()=>{window.removeEventListener("scroll",h)});let c=0;function h(){const f=c>window.scrollY?"up":"down",u=t.value.getBoundingClientRect(),r=parseFloat(n.value.top??0),o=window.scrollY-Math.max(0,i.value-r),v=u.height+Math.max(i.value,r)-window.scrollY-window.innerHeight,k=parseFloat(getComputedStyle(t.value).getPropertyValue("--v-body-scroll-y"))||0;u.height<window.innerHeight-r?(a.value="top",i.value=r):f==="up"&&a.value==="bottom"||f==="down"&&a.value==="top"?(i.value=window.scrollY+u.top-k,a.value=!0):f==="down"&&v<=0?(i.value=0,a.value="bottom"):f==="up"&&o<=0&&(k?a.value!=="top"&&(i.value=-o+k+r,a.value="top"):(i.value=u.top+o,a.value="top")),c=window.scrollY}return{isStuck:a,stickyStyles:s}}const Gl=100,Xl=20;function dt(e){return(e<0?-1:1)*Math.sqrt(Math.abs(e))*1.41421356237}function ct(e){if(e.length<2)return 0;if(e.length===2)return e[1].t===e[0].t?0:(e[1].d-e[0].d)/(e[1].t-e[0].t);let t=0;for(let l=e.length-1;l>0;l--){if(e[l].t===e[l-1].t)continue;const n=dt(t),a=(e[l].d-e[l-1].d)/(e[l].t-e[l-1].t);t+=(a-n)*Math.abs(a),l===e.length-1&&(t*=.5)}return dt(t)*1e3}function Zl(){const e={};function t(a){Array.from(a.changedTouches).forEach(i=>{(e[i.identifier]??(e[i.identifier]=new ia(Xl))).push([a.timeStamp,i])})}function l(a){Array.from(a.changedTouches).forEach(i=>{delete e[i.identifier]})}function n(a){var f;const i=(f=e[a])==null?void 0:f.values().reverse();if(!i)throw new Error(`No samples for touch id ${a}`);const s=i[0],c=[],h=[];for(const u of i){if(s[0]-u[0]>Gl)break;c.push({t:u[0],d:u[1].clientX}),h.push({t:u[0],d:u[1].clientY})}return{x:ct(c),y:ct(h),get direction(){const{x:u,y:r}=this,[o,v]=[Math.abs(u),Math.abs(r)];return o>v&&u>=0?"right":o>v&&u<=0?"left":v>o&&r>=0?"down":v>o&&r<=0?"up":Ql()}}}return{addMovement:t,endTouch:l,getVelocity:n}}function Ql(){throw new Error}function Kl(e){let{el:t,isActive:l,isTemporary:n,width:a,touchless:i,position:s}=e;K(()=>{window.addEventListener("touchstart",y,{passive:!0}),window.addEventListener("touchmove",x,{passive:!1}),window.addEventListener("touchend",$,{passive:!0})}),kt(()=>{window.removeEventListener("touchstart",y),window.removeEventListener("touchmove",x),window.removeEventListener("touchend",$)});const c=A(()=>["left","right"].includes(s.value)),{addMovement:h,endTouch:f,getVelocity:u}=Zl();let r=!1;const o=me(!1),v=me(0),k=me(0);let p;function _(P,j){return(s.value==="left"?P:s.value==="right"?document.documentElement.clientWidth-P:s.value==="top"?P:s.value==="bottom"?document.documentElement.clientHeight-P:ve())-(j?a.value:0)}function V(P){let j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const O=s.value==="left"?(P-k.value)/a.value:s.value==="right"?(document.documentElement.clientWidth-P-k.value)/a.value:s.value==="top"?(P-k.value)/a.value:s.value==="bottom"?(document.documentElement.clientHeight-P-k.value)/a.value:ve();return j?Math.max(0,Math.min(1,O)):O}function y(P){if(i.value)return;const j=P.changedTouches[0].clientX,O=P.changedTouches[0].clientY,b=25,g=s.value==="left"?j<b:s.value==="right"?j>document.documentElement.clientWidth-b:s.value==="top"?O<b:s.value==="bottom"?O>document.documentElement.clientHeight-b:ve(),m=l.value&&(s.value==="left"?j<a.value:s.value==="right"?j>document.documentElement.clientWidth-a.value:s.value==="top"?O<a.value:s.value==="bottom"?O>document.documentElement.clientHeight-a.value:ve());(g||m||l.value&&n.value)&&(p=[j,O],k.value=_(c.value?j:O,l.value),v.value=V(c.value?j:O),r=k.value>-20&&k.value<80,f(P),h(P))}function x(P){const j=P.changedTouches[0].clientX,O=P.changedTouches[0].clientY;if(r){if(!P.cancelable){r=!1;return}const g=Math.abs(j-p[0]),m=Math.abs(O-p[1]);(c.value?g>m&&g>3:m>g&&m>3)?(o.value=!0,r=!1):(c.value?m:g)>3&&(r=!1)}if(!o.value)return;P.preventDefault(),h(P);const b=V(c.value?j:O,!1);v.value=Math.max(0,Math.min(1,b)),b>1?k.value=_(c.value?j:O,!0):b<0&&(k.value=_(c.value?j:O,!1))}function $(P){if(r=!1,!o.value)return;h(P),o.value=!1;const j=u(P.changedTouches[0].identifier),O=Math.abs(j.x),b=Math.abs(j.y);(c.value?O>b&&O>400:b>O&&b>3)?l.value=j.direction===({left:"right",right:"left",top:"down",bottom:"up"}[s.value]||ve()):l.value=v.value>.5}const S=A(()=>o.value?{transform:s.value==="left"?`translateX(calc(-100% + ${v.value*a.value}px))`:s.value==="right"?`translateX(calc(100% - ${v.value*a.value}px))`:s.value==="top"?`translateY(calc(-100% + ${v.value*a.value}px))`:s.value==="bottom"?`translateY(calc(100% - ${v.value*a.value}px))`:ve(),transition:"none"}:void 0);return Se(o,()=>{var O,b;const P=((O=t.value)==null?void 0:O.style.transform)??null,j=((b=t.value)==null?void 0:b.style.transition)??null;sa(()=>{var g,m,M,C;(m=t.value)==null||m.style.setProperty("transform",((g=S.value)==null?void 0:g.transform)||"none"),(C=t.value)==null||C.style.setProperty("transition",((M=S.value)==null?void 0:M.transition)||null)}),ra(()=>{var g,m;(g=t.value)==null||g.style.setProperty("transform",P),(m=t.value)==null||m.style.setProperty("transition",j)})}),{isDragging:o,dragProgress:v,dragStyles:S}}function ve(){throw new Error}const en=["start","end","left","right","top","bottom"],tn=oe({color:String,disableResizeWatcher:Boolean,disableRouteWatcher:Boolean,expandOnHover:Boolean,floating:Boolean,modelValue:{type:Boolean,default:null},permanent:Boolean,rail:{type:Boolean,default:null},railWidth:{type:[Number,String],default:56},scrim:{type:[Boolean,String],default:!0},image:String,temporary:Boolean,persistent:Boolean,touchless:Boolean,width:{type:[Number,String],default:256},location:{type:String,default:"start",validator:e=>en.includes(e)},sticky:Boolean,...oa(),...Ae(),...ua(),...da({mobile:null}),...vt(),...ca(),...mt(),...He({tag:"nav"}),...pt()},"VNavigationDrawer"),an=ue()({name:"VNavigationDrawer",props:tn(),emits:{"update:modelValue":e=>!0,"update:rail":e=>!0},setup(e,t){let{attrs:l,emit:n,slots:a}=t;const{isRtl:i}=wt(),{themeClasses:s}=yt(e),{borderClasses:c}=fa(e),{backgroundColorClasses:h,backgroundColorStyles:f}=qe(Y(e,"color")),{elevationClasses:u}=ht(e),{displayClasses:r,mobile:o}=va(e),{roundedClasses:v}=gt(e),k=ma(),p=Ve(e,"modelValue",null,N=>!!N),{ssrBootStyles:_}=ha(),{scopeId:V}=ga(),y=R(),x=me(!1),{runOpenDelay:$,runCloseDelay:S}=_a(e,N=>{x.value=N}),P=A(()=>e.rail&&e.expandOnHover&&x.value?Number(e.width):Number(e.rail?e.railWidth:e.width)),j=A(()=>pa(e.location,i.value)),O=A(()=>e.persistent),b=A(()=>!e.permanent&&(o.value||e.temporary)),g=A(()=>e.sticky&&!b.value&&j.value!=="bottom");Se(()=>e.expandOnHover&&e.rail!=null,()=>{z(x,N=>n("update:rail",!N))}),Se(()=>!e.disableResizeWatcher,()=>{z(b,N=>!e.permanent&&Ye(()=>p.value=!N))}),Se(()=>!e.disableRouteWatcher&&!!k,()=>{z(k.currentRoute,()=>b.value&&(p.value=!1))}),z(()=>e.permanent,N=>{N&&(p.value=!0)}),e.modelValue==null&&!b.value&&(p.value=e.permanent||!o.value);const{isDragging:m,dragProgress:M}=Kl({el:y,isActive:p,isTemporary:b,width:P,touchless:Y(e,"touchless"),position:j}),C=A(()=>{const N=b.value?0:e.rail&&e.expandOnHover?Number(e.railWidth):P.value;return m.value?N*M.value:N}),T=A(()=>["top","bottom"].includes(e.location)?0:P.value),{layoutItemStyles:X,layoutItemScrimStyles:H}=ya({id:e.name,order:A(()=>parseInt(e.order,10)),position:j,layoutSize:C,elementSize:T,active:A(()=>p.value||m.value),disableTransitions:A(()=>m.value),absolute:A(()=>e.absolute||g.value&&typeof L.value!="string")}),{isStuck:L,stickyStyles:Z}=Jl({rootEl:y,isSticky:g,layoutItemStyles:X}),U=qe(A(()=>typeof e.scrim=="string"?e.scrim:null)),ie=A(()=>({...m.value?{opacity:M.value*.2,transition:"none"}:void 0,...H.value}));return bt({VList:{bgColor:"transparent"}}),de(()=>{const N=a.image||e.image;return d(Q,null,[d(e.tag,re({ref:y,onMouseenter:$,onMouseleave:S,class:["v-navigation-drawer",`v-navigation-drawer--${j.value}`,{"v-navigation-drawer--expand-on-hover":e.expandOnHover,"v-navigation-drawer--floating":e.floating,"v-navigation-drawer--is-hovering":x.value,"v-navigation-drawer--rail":e.rail,"v-navigation-drawer--temporary":b.value,"v-navigation-drawer--persistent":O.value,"v-navigation-drawer--active":p.value,"v-navigation-drawer--sticky":g.value},s.value,h.value,c.value,r.value,u.value,v.value,e.class],style:[f.value,X.value,_.value,Z.value,e.style,["top","bottom"].includes(j.value)?{height:"auto"}:{}]},V,l),{default:()=>{var Ge,Xe,Ze;return[N&&d("div",{key:"image",class:"v-navigation-drawer__img"},[a.image?d(Ie,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{alt:"",cover:!0,height:"inherit",src:e.image}}},a.image):d(ba,{key:"image-img",alt:"",cover:!0,height:"inherit",src:e.image},null)]),a.prepend&&d("div",{class:"v-navigation-drawer__prepend"},[(Ge=a.prepend)==null?void 0:Ge.call(a)]),d("div",{class:"v-navigation-drawer__content"},[(Xe=a.default)==null?void 0:Xe.call(a)]),a.append&&d("div",{class:"v-navigation-drawer__append"},[(Ze=a.append)==null?void 0:Ze.call(a)])]}}),d(xa,{name:"fade-transition"},{default:()=>[b.value&&(m.value||p.value)&&!!e.scrim&&d("div",re({class:["v-navigation-drawer__scrim",U.backgroundColorClasses.value],style:[ie.value,U.backgroundColorStyles.value],onClick:()=>{O.value||(p.value=!1)}},V),null)]})])}),{isStuck:L}}}),ln={key:0,class:"floating-filter-button-parent"},nn={class:"floating-filter-button"},sn={key:2},rn={class:"text-body-2 text-medium-emphasis px-2"},on={key:0},un={key:0},dn={class:"text-subheader-2 px-1"},cn={class:"text-subheader-2 px-1"},fn={key:1,class:"mr-3"},vn={class:"text-body-2 text-medium-emphasis px-1 ml-2"},mn={class:"text-body-2 text-medium-emphasis px-1"},hn={key:0,class:"mb-4 ml-4"},gn={key:3,style:{"flex-grow":"1"}},pn={key:5,class:"text-center pa-2"},yn={__name:"SearchResultInterface",props:{objectCardsData:{type:Array,required:!0},objectCardsDataWithRelations:{type:Array,required:!0},searchLoading:{type:Boolean,required:!0},totalCount:{type:Number,required:!0,default:()=>0},aggregation:{type:Object,required:!1,default:()=>{}},defaultResultsPerPage:{type:Number,required:!0},defaultSorting:{type:String,require:!0,default:()=>"production_date_asc"},filterObjectPath:{type:Array,required:!1,default:()=>[]},mode:{type:String,required:!1,default:()=>"objects"}},setup(e){const t=e,l=ee(),n=De(),{t:a}=_t(),i=R(),s=R(),c=R(),h=A(()=>Math.ceil(t.totalCount/u.value));function f(){let b=Object.assign({},l.query);c.value==1?delete b.page:b.page=c.value,n.replace({query:b})}const u=R(),r=[20,40,60,80,100];function o(){let b=Object.assign({},l.query);delete b.page,c.value=1,u.value==t.defaultResultsPerPage?delete b.items:b.items=u.value,n.replace({query:b})}const v=R(),k=["relevance","title","production_date_asc","production_date_desc","find_date_asc","find_date_desc","recently_added"],p=A(()=>{let b=[];for(const g of _(k))b.push({label:a(`site_navigation.sorting_options.${g}`),value:g});return b});function _(b){return l.query.q&&!l.query.q.startsWith("[{")?b:b.filter(g=>g!="relevance")}function V(){let b=Object.assign({},l.query);delete b.page,c.value=1,v.value==t.defaultSorting?delete b.sorting:b.sorting=v.value,n.replace({query:b})}const y=R();function x(b){let g=Object.assign({},l.query);b==0?(delete g.parent_id,delete g.sorting,delete g.page,n.push({query:g})):(g.parent_id=t.filterObjectPath[b-1].id,delete g.page,n.push({query:g}))}const $=R(!1),S=R();function P(){S.value=!S.value;let b=Object.assign({},l.query);S.value?b.view="list":delete b.view,n.push({query:b})}const j=A(()=>{let b=(c.value-1)*u.value+1,g=Math.min(c.value*u.value,t.totalCount),m=t.mode=="objects"?"result":"connected_object",M=t.totalCount>1?a(`site_navigation.${m}s`):a(`site_navigation.${m}`);return`${b} - ${g} ${a("site_navigation.of")} ${t.totalCount} ${M}`});function O(){c.value=parseInt(l.query.page)||1,u.value=parseInt(l.query.items)||t.defaultResultsPerPage,v.value=l.query.sorting||t.defaultSorting,y.value=l.query.parent_id||null,S.value=l.query.view==="list"||!1}return K(()=>O()),z(()=>l.query,()=>{O()}),(b,g)=>(q(),I(J(Sa),null,{default:w(()=>[d(W,{class:"ma-0 pa-0"},{default:w(()=>[b.$vuetify.display.mobile?(q(),D("div",ln,[E("div",nn,[d(ae,{variant:"outlined",height:"72",style:{"max-width":"32px","min-width":"32px"},color:J(l).query.qfilter&&J(l).query.qfilter.length>0?"red":"rgba(0, 0, 0, 0.54)",onClick:g[0]||(g[0]=Be(m=>s.value=!s.value,["stop"]))},{default:w(()=>g[9]||(g[9]=[E("span",{style:{"writing-mode":"tb-rl"}}," Filter",-1)])),_:1},8,["color"])]),d(an,{modelValue:s.value,"onUpdate:modelValue":g[2]||(g[2]=m=>s.value=m),temporary:"",width:"800"},{default:w(()=>[d(J(ot),{aggregation:t.aggregation,onDrawerClosed:g[1]||(g[1]=m=>s.value=!1)},null,8,["aggregation"])]),_:1},8,["modelValue"])])):(q(),I(se,{key:1,cols:"3",class:"ma-0 pa-0"},{default:w(()=>[d(J(ot),{aggregation:t.aggregation},null,8,["aggregation"])]),_:1})),b.$vuetify.display.mobile?B("",!0):(q(),D("div",sn,[d(pe,{thickness:1,vertical:"",style:{height:"100%"}})])),d(se,{class:"ma-0 pa-0"},{default:w(()=>[d(Ne,{elevation:"0",class:"mx-2 pa-2"},{default:w(()=>[d(W,{align:"center",justify:"space-between",class:"pa-1 ma-0"},{default:w(()=>[E("div",rn,[!t.searchLoading&&t.totalCount?(q(),D("div",on,F(j.value),1)):B("",!0)]),b.$vuetify.display.xs||b.$vuetify.display.sm?(q(),D("div",un,[d(wa,{modelValue:i.value,"onUpdate:modelValue":g[5]||(g[5]=m=>i.value=m),transition:"slide-y-transition","close-on-content-click":!1,"content-class":"search-toolbar"},{activator:w(({props:m})=>[d(ae,re({icon:""},m),{default:w(()=>[i.value?(q(),I(te,{key:1},{default:w(()=>g[11]||(g[11]=[G("mdi-close")])),_:1})):(q(),I(te,{key:0},{default:w(()=>g[10]||(g[10]=[G("mdi-menu")])),_:1}))]),_:2},1040)]),default:w(()=>[d(Ne,{width:"90vw",elevation:"0",rounded:"0",class:"px-2"},{default:w(()=>[d(W,{class:"ma-0 pa-0",align:"center",justify:"end"},{default:w(()=>[E("div",dn,F(t.mode=="objects"?b.$t("site_navigation.results_per_page"):b.$t("site_navigation.objects_per_page"))+": ",1),d(xe,{"min-width":"65","max-width":"65",class:"pa-1"},{default:w(()=>[d(_e,{modelValue:u.value,"onUpdate:modelValue":[g[3]||(g[3]=m=>u.value=m),o],class:"medium-v-select",items:r,density:"compact"},null,8,["modelValue"])]),_:1})]),_:1}),d(W,{class:"ma-0 pa-0",align:"center",justify:"end"},{default:w(()=>[E("div",cn,F(b.$t("site_navigation.sorting"))+": ",1),d(xe,{"min-width":"215","max-width":"215",class:"pa-1"},{default:w(()=>[d(_e,{modelValue:v.value,"onUpdate:modelValue":[g[4]||(g[4]=m=>v.value=m),V],class:"medium-v-select",items:p.value,"item-title":"label","item-value":"value",density:"compact"},null,8,["modelValue","items"])]),_:1})]),_:1}),d(pe,{class:"mb-0"})]),_:1})]),_:1},8,["modelValue"])])):(q(),D("div",fn,[d(W,{dense:"",align:"center"},{default:w(()=>[d(ae,{size:"30",icon:"",variant:"text",disabled:!S.value,onClick:P},{default:w(()=>[d(te,null,{default:w(()=>g[12]||(g[12]=[G("mdi-view-comfy")])),_:1})]),_:1},8,["disabled"]),d(ae,{size:"30",icon:"",variant:"text",disabled:S.value,onClick:P},{default:w(()=>[d(te,null,{default:w(()=>g[13]||(g[13]=[G("mdi-view-list")])),_:1})]),_:1},8,["disabled"]),E("div",vn,F(t.mode=="objects"?b.$t("site_navigation.results_per_page"):b.$t("site_navigation.objects_per_page"))+": ",1),d(xe,{"min-width":"65","max-width":"65",class:"pa-1 mr-2"},{default:w(()=>[d(_e,{modelValue:u.value,"onUpdate:modelValue":[g[6]||(g[6]=m=>u.value=m),o],class:"medium-v-select",items:r,density:"compact"},null,8,["modelValue"])]),_:1}),E("div",mn,F(b.$t("site_navigation.sorting"))+": ",1),d(xe,{"min-width":"220","max-width":"220",class:"pa-1"},{default:w(()=>[d(_e,{modelValue:v.value,"onUpdate:modelValue":[g[7]||(g[7]=m=>v.value=m),V],style:{"min-width":"215px","max-width":"215px"},class:"medium-v-select",items:p.value,"item-title":"label","item-value":"value",density:"compact"},null,8,["modelValue","items"])]),_:1})]),_:1})]))]),_:1}),d(pe,{class:"pa-0 mt-2 mb-4",horizontal:""}),t.filterObjectPath.length?(q(),D("div",hn,[(q(!0),D(Q,null,le(t.filterObjectPath,(m,M)=>(q(),D("span",{key:M},[d(ze,{closable:"",label:"",size:"small",variant:"outlined",color:"red","onClick:close":C=>x(M)},{default:w(()=>[G(F(m.title),1)]),_:2},1032,["onClick:close"]),M!=t.filterObjectPath.length-1?(q(),I(te,{key:0},{default:w(()=>g[14]||(g[14]=[G(" mdi-menu-right ")])),_:1})):B("",!0)]))),128))])):B("",!0),!S.value&&!t.searchLoading&&t.totalCount?(q(),I(J(Fl),{key:1,"object-cards-data":t.objectCardsData,"search-mode":t.mode},null,8,["object-cards-data","search-mode"])):S.value&&!t.searchLoading&&t.totalCount&&!$.value?(q(),I(J(Yl),{key:2,"object-cards-data-with-relations":t.objectCardsDataWithRelations,"search-mode":t.mode},null,8,["object-cards-data-with-relations","search-mode"])):t.searchLoading?(q(),D("div",gn,[d(W,{class:"fill-height ma-10",align:"center",justify:"center"},{default:w(()=>[d(Re,{size:"100",width:"8",indeterminate:"",color:"grey-lighten-4"})]),_:1})])):B("",!0),!t.searchLoading&&t.totalCount==0?(q(),I(W,{key:4,class:"fill-height ma-1 pb-5",align:"center",justify:"center"},{default:w(()=>[E("h2",null,F(b.$t("site_navigation.no_results_message")),1)]),_:1})):B("",!0),!t.searchLoading&&t.totalCount>u.value?(q(),D("div",pn,[ce(d(Pa,{modelValue:c.value,"onUpdate:modelValue":[g[8]||(g[8]=m=>c.value=m),f],variant:"outlined",length:h.value,"total-visible":b.$vuetify.display.xs?"3":"7"},null,8,["modelValue","length","total-visible"]),[[be,t.objectCardsData.length]])])):(q(),I(ka,{key:6,class:"mb-6"}))]),_:1})]),_:1})]),_:1})]),_:1}))}},$n=fe(yn,[["__scopeId","data-v-c1b8af91"]]);function Mn(e,t){let l;const n=ee(),a=async(h,f,u)=>{e[h][f].loading=!0;try{e[h][f].fetch_function?(e[h][f].values=await e[h][f].fetch_function({id:n.params.id,qfilter:n.query.qfilter,lang:"de",signal:u.signal}),e[h][f].loading=!1):e[h][f].type=="term_aggregation"?(e[h][f].values=await ne.get_term_aggregation({q:n.query.q,qfilter:n.query.qfilter,filter_object_id:n.query.parent_id,field:f,signal:u.signal}),e[h][f].loading=!1):(e[h][f].values=await ne.get_date_aggregation({q:n.query.q,qfilter:n.query.qfilter,filter_object_id:n.query.parent_id,field:f,signal:u.signal}),e[h][f].loading=!1)}catch(r){r.name==="AbortError"&&(e[h][f].loading=!0)}},i=async h=>{l&&l.abort(),l=new AbortController;let f=[];for(let u of Object.keys(e))for(let r of Object.keys(e[u]))r!=h&&f.push(a(u,r,l));await Promise.all(f)};function s(h,f){var k,p;function u(_){let V={},x=new URLSearchParams(_.fullPath.split("?")[1]).getAll("qfilter");for(let $ of x)if($.includes("from")&&$.includes("to")){let[S,P]=$.split("-IS-");V[S]={values:P,connective:"-OR-"}}else{let S,P,j;$.includes("-IS_AND-")?([S,j]=$.split("-IS_AND-"),P="-AND-"):([S,j]=$.split("-IS_OR-"),P="-OR-"),V[S]={values:j,connective:P}}return V}if(((k=f.query)==null?void 0:k.q)!=((p=h.query)==null?void 0:p.q))return;let r=u(h),o=u(f);if(Object.keys(r).length-Object.keys(o).length>1)return;let v=Object.keys(r).concat(Object.keys(o));for(let _ of v)if(_ in r&&_ in o){if(r[_].values!=o[_].values&&o[_].connective=="-OR-"&&r[_].connective=="-OR-")return _}else return _ in r&&r[_].connective=="-AND-"||_ in o&&o[_].connective=="-AND-"?void 0:_}let c;return z(t,(h,f)=>{if(f){let u=Object.assign({},n);if(c){if(u.query.q!=c.query.q||JSON.stringify(u.query.qfilter)!=JSON.stringify(c.query.qfilter)||u.query.parent_id!=c.query.parent_id||u.params.id!=c.params.id){let r=s(c,u);i(r)}}else i();c=u}}),St(()=>{l&&l.abort()}),e}function Cn(){let e;const t=ee(),l=R([]),n=async()=>{if(t.query.parent_id){let a=l.value.map(i=>i.id).indexOf(t.query.parent_id);a!=-1?l.value=l.value.slice(0,a+1):(e&&e.abort(),e=new AbortController,l.value=await ne.get_object_hierarchy({filter_object_id:t.query.parent_id,signal:e.signal}))}else l.value=[]};return K(()=>n()),z(()=>t.query,(a,i)=>{a.parent_id!=i.parent_id&&n()}),{filterObjectPath:l}}function On(e){const{conditionFunction:t="",defaultResultsPerPage:l=60,defaultSorting:n="production_date_asc"}=e;let a,i;const s=ee(),c=qa(),h=R(!0),f=R([]),u=R(0),r=async()=>{h.value=!0,a&&a.abort(),a=new AbortController,t&&(i=t(s.params.id,s.query.qfilter));const o=ne.search({condition:i,q:s.query.q,qfilter:s.query.qfilter,filter_object_id:s.query.parent_id||null,limit:+s.query.items||l,offset:(+s.query.items||l)*((s.query.page||1)-1),sorting:s.query.sorting||n,signal:a.signal}),v=ne.get_total_count({condition:i,q:s.query.q,qfilter:s.query.qfilter,filter_object_id:s.query.parent_id||null,signal:a.signal});try{[f.value,u.value]=await Promise.all([o,v]),f.value=f.value.map(k=>k.iri),h.value=!1,i||c.cache_last_search(s.query)}catch(k){k.name!="AbortError"&&(h.value=!1,console.error(k))}};return K(()=>r()),z(()=>s.query,(o,v)=>{o.view==v.view&&r()}),{objectsCount:u,iris:f,searchLoading:h}}function An(e){let t;const l=R([]),n=R(!0),a=async()=>{if(n.value=!0,e.value.length==0){l.value=[],await Ye(),n.value=!1;return}t&&t.abort(),t=new AbortController;try{l.value=await ne.get_object_cards_data(e.value,t.signal),n.value=!1}catch(i){i.name!="AbortError"&&(n.value=!1,console.error(i))}};return z(e,()=>a()),{objectCardsData:l,objectCardsDataLoading:n}}function In(e){let t;const l=R([]),n=ee(),a=async(s,c,h)=>{l.value[s].relationsLoading=!0;try{l.value[s].depictsObjects=await ne.get_depicts_data({iri:c,signal:h.signal}),l.value[s].depictedObjects=await ne.get_depicted_data({iri:c,signal:h.signal}),l.value[s].relationsLoading=!1}catch(f){f.name!="AbortError"&&(l.value[s].relationsLoading=!1,console.error(f))}},i=async()=>{t&&t.abort(),t=new AbortController,l.value=e.value;for(let c of l.value)c.relationsLoading=!0,c.depictsObjects=[],c.depictedObjects=[];let s=[];for(let[c,h]of l.value.entries())s.push(a(c,h.iri,t));await Promise.all(s)};return z([()=>n.query.view,e],([s])=>{s=="list"?i():s==null&&t&&t.abort()}),St(()=>{t&&t.abort()}),{objectCardsDataWithRelations:l}}function Rn(e){if(typeof e!="function"){console.error("fetch_function must be of type 'function'");return}let t;const l=ee(),n=R({}),a=R(!0),i=async()=>{a.value=!0,n.value={},t&&t.abort(),t=new AbortController;try{n.value=await e({id:l.params.id,lang:"de",signal:t.signal}),a.value=!1}catch(s){s.name!="AbortError"&&(a.value=!1,console.error(s))}};return K(()=>i()),z(()=>l.params.id,()=>i()),{data:n,dataLoading:a}}export{Ha as R,$n as S,An as a,Cn as b,In as c,Mn as d,Rn as e,On as u};