(()=>{"use strict";vare,i,n,s={85638:(t,e,i)=>{const{XMLParser:n,XMLValidator:s}=i(86454),r=t=>{if(null==t)return!1;if(0===(t=t.toString().trim()).length)return!1;if(!0!==s.validate(t))return!1;lete;consti=newn;try{e=i.parse(t)}catch(t){return!1}return!!e&&"svg"ine};t.exports=r,t.exports.default=r},71266:(e,i,n)=>{vars=n(85471),r=n(53334),o=n(61338),a=n(71089),l=n(35810),d=n(22843),c=n(92457),u=n(52129),h=n(74692),p=n.n(h),f=n(26287),m=n(51651),g=n(26623);consty={name:"StarOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};varb=n(14486);constv=(0,b.A)(y,(function(){vart=this,e=t._self._c;returne("span",t._b({staticClass:"material-design-icon star-outline-icon",attrs:{"aria-hidden":!t.title||null,"aria-label":t.title,role:"img"},on:{click:function(e){returnt.$emit("click",e)}}},"span",t.$attrs,!1),[e("svg",{staticClass:"material-design-icon__svg",attrs:{fill:t.fillColor,width:t.size,height:t.size,viewBox:"0 0 24 24"}},[e("path",{attrs:{d:"M12,15.39L8.24,17.66L9.23,13.38L5.91,10.5L10.29,10.13L12,6.09L13.71,10.13L18.09,10.5L14.77,13.38L15.76,17.66M22,9.24L14.81,8.63L12,2L9.19,8.63L2,9.24L7.45,13.97L5.82,21L12,17.27L18.18,21L16.54,13.97L22,9.24Z"}},[t.title?e("title",[t._v(t._s(t.title))]):t._e()])])])}),[],!1,null,null,null).exports;varw=n(48281),A=n(52054),_=n(30161);constx={name:"LegacyView",props:{component:{type:Object,required:!0},fileInfo:{type:Object,default:()=>{},required:!0}},watch:{fileInfo(t){this.setFileInfo(t)}},mounted(){this.component.$el.replaceAll(this.$el),this.setFileInfo(this.fileInfo)},methods:{setFileInfo(t){this.component.setFileInfo(newOCA.Files.FileInfoModel(t))}}},T=(0,b.A)(x,(function(){return(0,this._self._c)("div")}),[],!1,null,null,null).exports,C={name:"SidebarTab",components:{NcAppSidebarTab:n(11831).A,NcEmptyContent:_.A},props:{fileInfo:{type:Object,default:()=>{},required:!0},id:{type:String,required:!0},name:{type:String,required:!0},icon:{type:String,required:!1},onMount:{type:Function,required:!0},onUpdate:{type:Function,required:!0},onDestroy:{type:Function,required:!0},onScrollBottomReached:{type:Function,default:()=>{}}},data:()=>({loading:!0}),computed:{activeTab(){returnthis.$parent.activeTab}},watch:{asyncfileInfo(t,e){t.id!==e.id&&(this.loading=!0,awaitthis.onUpdate(this.fileInfo),this.loading=!1)}},asyncmounted(){this.loading=!0,awaitthis.onMount(this.$refs.mount,this.fileInfo,this.$refs.tab),this.loading=!1},asyncbeforeDestroy(){awaitthis.onDestroy()}},N=(0,b.A)(C,(function(){vart=this,e=t._self._c;returne("NcAppSidebarTab",{ref:"tab",attrs:{id:t.id,name:t.name,icon:t.icon},on:{bottomReached:t.onScrollBottomReached},scopedSlots:t._u([{key:"icon",fn:function(){return[t._t("icon")]},proxy:!0}],null,!0)},[t._v(" "),t.loading?e("NcEmptyContent",{attrs:{icon:"icon-loading"}}):t._e(),t._v(" "),e("div",{ref:"mount"})],1)}),[],!1,null,null,null).exports;varE=n(69977),S=n(5212),O=n(85168),I=n(71654);constF={userVisible:!0,userAssignable:!0,canAssign:!0},L=t=>t.map((t=>{let{props:e}=t;returnObject.fromEntries(Object.entries(e).map((t=>{let[e,i]=t;return[(0,I.A)(e),"displayName"===(0,I.A)(e)?String(i):i]})))})),P=t=>{conste={...t};returne.name&&!e.displayName||(e.name=e.displayName,deletee.displayName),e};varD=n(99498),R=n(44719);constk=(0,D.dC)("dav"),$=(0,R.UU)(k),j=t=>{$.setHeaders({"X-Requested-With":"XMLHttpRequest",requesttoken:null!=t?t:""})};(0,c.zo)(j),j((0,c.do)());constB=(0,n(53529).YK)().setApp("systemtags").detectUser().build(),M='<?xml version="1.0"?>\n<d:propfind xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns">\n\t<d:prop>\n\t\t<oc:id />\n\t\t<oc:display-name />\n\t\t<oc:user-visible />\n\t\t<oc:user-assignable />\n\t\t<oc:can-assign />\n\t</d:prop>\n</d:propfind>',z=async(e,i)=>{constn="/systemtags-relations/files/"+i+"/"+e.id,s=P(e);try{await$.customRequest(n,{method:"PUT",data:s})}catch(e){throwB.error(t("systemtags","Failed to set tag for file"),{error:e}),newError(t("systemtags","Failed to set tag for file"))}},U=s.Ay.extend({name:"SystemTags",com