/*! third party licenses: js/vendor.LICENSE.txt */ import{I as c,H as r,r as a}from"./InformationOutline-CdKWQ9u0.chunk.mjs";import{n,N as p,g as v,l as d}from"./_plugin-vue2_normalizer-BQxwkFWu.chunk.mjs";import{V as i}from"./vendor-Cr5Qm0yU.chunk.mjs";const h={name:"FileListInfo",components:{InformationIcon:c,NcButton:p},props:{collectivesFolder:{type:String,required:!0},path:{type:String,required:!0}},data(){return{active:!1}},computed:{collectivesLink(){const t=this.path.startsWith(this.collectivesFolder)?this.path.slice(this.collectivesFolder.length):"";return v("/apps/collectives"+t)}},watch:{path:function(){this.setActive()}},mounted(){this.setActive()},methods:{setActive(){this.active=this.collectivesFolder&&this.collectivesFolder!=="/"&&this.path.startsWith(this.collectivesFolder)}}};var f=function(){var t=this,e=t._self._c;return t.active?e("div",{staticClass:"filelist-collectives-wrapper"},[e("div",{staticClass:"infobox"},[e("InformationIcon",{attrs:{"fill-color":"var(--color-primary-element)"}}),e("div",{staticClass:"content"},[t._v(" "+t._s(t.t("collectives","The content of this folder is best viewed in the Collectives app."))+" "),e("a",{attrs:{href:t.collectivesLink}},[e("NcButton",{staticClass:"button",attrs:{"aria-label":t.t("collectives","Open in Collectives"),variant:"primary"}},[t._v(" "+t._s(t.t("collectives","Open in Collectives"))+" ")])],1)])],1)]):t._e()},u=[],m=n(h,f,u,!1,null,"a558f688");const w=m.exports;let s=null;const F=new r({id:"collective",order:9,enabled(t,e){return e.id==="files"||e.id==="files.public"},render(t,e){t.id="files-collective-wrapper",i.prototype.t=window.t,i.prototype.n=window.n;const l=d("collectives","user_folder",null),o=i.extend(w);s=new o({propsData:{collectivesFolder:l,path:e.path}}).$mount(t)},updated(t){s.path=t.path}});a(F); //# sourceMappingURL=collectives-init.mjs.map