(()=>{"use strict";var e,t,i,r={7145:(e,t,i)=>{i.d(t,{A:()=>a});var r=i(87485),n=i(32981);class a{constructor(){var e,t,i;e=this,i=void 0,(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t="_capabilities"))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,this._capabilities=(0,r.F)()}get defaultPermissions(){return this._capabilities.files_sharing?.default_permissions}get isPublicUploadEnabled(){return!0===this._capabilities.files_sharing?.public?.upload}get federatedShareDocLink(){return window.OC.appConfig.core.federatedCloudShareDoc}get defaultExpirationDate(){return this.isDefaultExpireDateEnabled&&null!==this.defaultExpireDate?new Date((new Date).setDate((new Date).getDate()+this.defaultExpireDate)):null}get defaultInternalExpirationDate(){return this.isDefaultInternalExpireDateEnabled&&null!==this.defaultInternalExpireDate?new Date((new Date).setDate((new Date).getDate()+this.defaultInternalExpireDate)):null}get defaultRemoteExpirationDateString(){return this.isDefaultRemoteExpireDateEnabled&&null!==this.defaultRemoteExpireDate?new Date((new Date).setDate((new Date).getDate()+this.defaultRemoteExpireDate)):null}get enforcePasswordForPublicLink(){return!0===window.OC.appConfig.core.enforcePasswordForPublicLink}get enableLinkPasswordByDefault(){return!0===window.OC.appConfig.core.enableLinkPasswordByDefault}get isDefaultExpireDateEnforced(){return!0===window.OC.appConfig.core.defaultExpireDateEnforced}get isDefaultExpireDateEnabled(){return!0===window.OC.appConfig.core.defaultExpireDateEnabled}get isDefaultInternalExpireDateEnforced(){return!0===window.OC.appConfig.core.defaultInternalExpireDateEnforced}get isDefaultInternalExpireDateEnabled(){return!0===window.OC.appConfig.core.defaultInternalExpireDateEnabled}get isDefaultRemoteExpireDateEnforced(){return!0===window.OC.appConfig.core.defaultRemoteExpireDateEnforced}get isDefaultRemoteExpireDateEnabled(){return!0===window.OC.appConfig.core.defaultRemoteExpireDateEnabled}get isRemoteShareAllowed(){return!0===window.OC.appConfig.core.remoteShareAllowed}get isPublicShareAllowed(){return!0===this._capabilities?.files_sharing?.public?.enabled}get isMailShareAllowed(){return!0===this._capabilities?.files_sharing?.sharebymail?.enabled&&!0===this.isPublicShareAllowed}get defaultExpireDate(){return window.OC.appConfig.core.defaultExpireDate}get defaultInternalExpireDate(){return window.OC.appConfig.core.defaultInternalExpireDate}get defaultRemoteExpireDate(){return window.OC.appConfig.core.defaultRemoteExpireDate}get isResharingAllowed(){return!0===window.OC.appConfig.core.resharingAllowed}get isPasswordForMailSharesRequired(){return!0===this._capabilities.files_sharing?.sharebymail?.password?.enforced}get shouldAlwaysShowUnique(){return!0===this._capabilities.files_sharing?.sharee?.always_show_unique}get allowGroupSharing(){return!0===window.OC.appConfig.core.allowGroupSharing}get maxAutocompleteResults(){return parseInt(window.OC.config["sharing.maxAutocompleteResults"],10)||25}get minSearchStringLength(){return parseInt(window.OC.config["sharing.minSearchStringLength"],10)||0}get passwordPolicy(){return this._capabilities?.password_policy||{}}get allowCustomTokens(){return this._capabilities?.files_sharing?.public?.custom_tokens}get showFederatedSharesAsInternal(){return(0,n.C)("files_sharing","showFederatedSharesAsInternal",!1)}}},9165:(e,t,i)=>{i.d(t,{Brj:()=>l,HzW:()=>p,IyB:()=>n,NZC:()=>a,ZL5:()=>d,aie:()=>r,fEr:()=>s,jUz:()=>u,kHm:()=>c,kOJ:()=>o});var r="M13.07 10.41A5 5 0 0 0 13.07 4.59A3.39 3.39 0 0 1 15 4A3.5 3.5 0 0 1 15 11A3.39 3.39 0 0 1 13.07 10.41M5.5 7.5A3.5 3.5 0 1 1 9 11A3.5 3.5 0 0 1 5.5 7.5M7.5 7.5A1.5 1.5 0 1 0 9 6A1.5 1.5 0 0 0 7.5 7.5M16 17V19H2V17S2 13 9 13 16 17 16 17M14 17C13.86 16.22 12.67 15 9 15S4.07 16.31 4 17M15.95 13A5.32 5.32 0 0 1 18 17V19H22V17S22 13.37 15.94 13Z",n="M15,14C12.33,14 7,15.33 7,18V20H23V18C23,15.33 17.67,14 15,14M6,10V7H4V10H1V12H4V15H6V12H9V10M15,12A4,4 0 0,0 19,8A4,4 0 0,0 15,4A4,4 0 0,0 11,8A4,4 0 0,0 15,12Z",a="M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M16.2,16.2L11,13V7H12.5V12.2L17,14.9L16.2,16.2Z",s="M10,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V8C22,6.89 21.1,6 20,6H12L10,4Z",o="M1,1V5H2V19H1V23H5V22H19V23H23V19H22V5H23V1H19V2H5V1M5,4H19V5H20V19H19V20H5V19H4V5H5M6,6V14H9V18H18V9H14V6M8,8H12V12H8M14,11H16V16H11V14H14",l="M3.9,12C3.9,10.29 5.29,8.9 7,8.9H11V7H7A5,5 0 0,0 2,12A5,5 0 0,0 7,17H11V15.1H7C5.29,15.1 3.9,13.71 3.9,12M8,13H16V11H8V13M17,7H13V8.9H17C18.71,8.9 20.1,10.29 20.1,12C20.1,13.71 18.71,15.1 17,15.1H13V17H17A5,5 0 0,0 22,12A5,5 0 0,0 17,7Z",c="M12,17A2,2 0 0,0 14,15C14,13.89 13.1,13 12,13A2,2 0 0,0 10,15A2,2 0 0,0 12,17M18,8A2,2 0 0,1 20,10V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V10C4,8.89 4.9,8 6,8H7V6A5,5 0 0,1 12,1A5,5 0 0,1 17,6V8H18M12,3A3,3 0 0,0 9,6V8H15V6A3,3 0 0,0 12,3Z",u="M17,3A2,2 0 0,1 19,5V15A2,2 0 0,1 17,17H13V19H14A1,1 0 0,1 15,20H22V22H15A1,1 0 0,1 14,23H10A1,1 0 0,1 9,22H2V20H9A1,1 0 0,1 10,19H11V17H7C5.89,17 5,16.1 5,15V5A2,2 0 0,1 7,3H17Z",d="M12,17.27L18.18,21L16.54,13.97L22,9.24L14.81,8.62L12,2L9.19,8.62L2,9.24L7.45,13.97L5.82,21L12,17.27Z",p="M5.5,7A1.5,1.5 0 0,1 4,5.5A1.5,1.5 0 0,1 5.5,4A1.5,1.5 0 0,1 7,5.5A1.5,1.5 0 0,1 5.5,7M21.41,11.58L12.41,2.58C12.05,2.22 11.55,2 11,2H4C2.89,2 2,2.89 2,4V11C2,11.55 2.22,12.05 2.59,12.41L11.58,21.41C11.95,21.77 12.45,22 13,22C13.55,22 14.05,21.77 14.41,21.41L21.41,14.41C21.78,14.05 22,13.55 22,13C22,12.44 21.77,11.94 21.41,11.58Z"},18709:(e,t,i)=>{i.d(t,{C:()=>d,h:()=>p});var r=i(21777),n=i(35810),a=i(63814),s=i(65043),o=i(62746);const l={"Content-Type":"application/json"},c=async function(e){try{if(void 0!==e?.remote_id){if(!e.mimetype){const t=(await i.e(857).then(i.bind(i,10857))).default;e.mimetype=t.getType(e.name)}e.item_type=e.type||(e.mimetype?"file":"folder"),e.item_mtime=e.mtime,e.file_target=e.file_target||e.mountpoint,e.file_target.includes("TemporaryMountPointName")&&(e.file_target=e.name),e.accepted||(e.item_permissions=n.aX.NONE,e.permissions=n.aX.NONE),e.uid_owner=e.owner,e.displayname_owner=e.owner}const t="folder"===e?.item_type,r=!0===e?.has_preview,a=t?n.vd:n.ZH,s=e.file_source||e.file_id||e.id,o=e.path||e.file_target||e.name,l=`${n.PY}${n.lJ}/${o.replace(/^\/+/,"")}`;let c,u=e.item_mtime?new Date(1e3*e.item_mtime):void 0;return e?.stime>(e?.item_mtime||0)&&(u=new Date(1e3*e.stime)),"share_with"in e&&(c={sharee:{id:e.share_with,"display-name":e.share_with_displayname||e.share_with,type:e.share_type}}),new a({id:s,source:l,owner:e?.uid_owner,mime:e?.mimetype||"application/octet-stream",mtime:u,size:e?.item_size,permissions:e?.item_permissions||e?.permissions,root:n.lJ,attributes:{...e,"has-preview":r,"hide-download":1===e?.hide_download,"owner-id":e?.uid_owner,"owner-display-name":e?.displayname_owner,"share-types":e?.share_type,"share-attributes":e?.attributes||"[]",sharees:c,favorite:e?.tags?.includes(window.OC.TAG_FAVORITE)?1:0}})}catch(e){return o.A.error("Error while parsing OCS entry",{error:e}),null}},u=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=(0,a.KT)("apps/files_sharing/api/v1/shares");return s.Ay.get(t,{headers:l,params:{shared_with_me:e,include_tags:!0}})},d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"[]";const t=e=>"fileRequest"===e.scope&&"enabled"===e.key&&!0===e.value;try{return JSON.parse(e).some(t)}catch(e){return o.A.error("Error while parsing share attributes",{error:e}),!1}},p=async function(){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];const d=[];(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&d.push(u(!0),function(){const e=(0,a.KT)("apps/files_sharing/api/v1/remote_shares");return s.Ay.get(e,{headers:l,params:{include_tags:!0}})}()),e&&d.push(u()),t&&d.push(function(){const e=(0,a.KT)("apps/files_sharing/api/v1/shares/pending");return s.Ay.get(e,{headers:l,params:{include_tags:!0}})}(),function(){const e=(0,a.KT)("apps/files_sharing/api/v1/remote_shares/pending");return s.Ay.get(e,{headers:l,params:{include_tags:!0}})}()),i&&d.push(function(){const e=(0,a.KT)("apps/files_sharing/api/v1/deletedshares");return s.Ay.get(e,{headers:l,params:{include_tags:!0}})}());const p=(await Promise.all(d)).map((e=>e.data.ocs.data)).flat();let h=(await Promise.all(p.map(c))).filter((e=>null!==e));var f,m;return o.length>0&&(h=h.filter((e=>o.includes(e.attributes?.share_type)))),h=(f=h,m="source",Object.values(f.reduce((function(e,t){return(e[t[m]]=e[t[m]]||[]).push(t),e}),{}))).map((e=>{const t=e[0];return t.attributes["share-types"]=e.map((e=>e.attributes["share-types"])),t})),{folder:new n.vd({id:0,source:`${n.PY}${n.lJ}`,owner:(0,r.HW)()?.uid||null}),contents:h}}},19105:(e,t,i)=>{var r=i(35810),n=i(36585),a=i(61338),s=i(77905),o=i(85471),l=i(53334),c=i(9165),u=i(24764),d=i(57505),p=i(15502);const h=(0,o.pM)({__name:"FileListFilter",props:{isActive:{type:Boolean},filterName:null},emits:["reset-filter"],setup:e=>({__sfc:!0,t:l.t,NcActions:u.A,NcActionButton:d.A,NcActionSeparator:p.A})});var f=i(85072),m=i.n(f),g=i(97825),E=i.n(g),w=i(77659),A=i.n(w),v=i(55056),_=i.n(v),T=i(10540),b=i.n(T),I=i(41113),y=i.n(I),C=i(23197),N={};N.styleTagTransform=y(),N.setAttributes=_(),N.insert=A().bind(null,"head"),N.domAPI=E(),N.insertStyleElement=b(),m()(C.A,N),C.A&&C.A.locals&&C.A.locals;var O=i(14486);const L=(0,O.A)(h,(function(){var e=this,t=e._self._c,i=e._self._setupProxy;return t(i.NcActions,{attrs:{"force-menu":"",type:e.isActive?"secondary":"tertiary","menu-name":e.filterName},scopedSlots:e._u([{key:"icon",fn:function(){return[e._t("icon")]},proxy:!0}],null,!0)},[e._v(" "),e._t("default"),e._v(" "),e.isActive?[t(i.NcActionSeparator),e._v(" "),t(i.NcActionButton,{staticClass:"files-list-filter__clear-button",attrs:{"close-after-click":""},on:{click:function(t){return e.$emit("reset-filter")}}},[e._v("\n\t\t\t"+e._s(i.t("files","Clear filter"))+"\n\t\t")])]:e._e()],2)}),[],!1,null,"00a77ab8",null).exports;var D=i(44131),S=i(41944),x=i(6695);const R=(0,o.pM)({__name:"FileListFilterAccount",emits:["update:accounts"],setup(e,t){let{expose:i,emit:r}=t;const n=(0,o.KR)(""),a=(0,o.KR)([]),s=(0,o.KR)([]),u=(0,o.EW)((()=>{if(!n.value)return a.value;const e=n.value.toLocaleLowerCase().trim().split(" ");return a.value.filter((t=>e.every((e=>t.user.toLocaleLowerCase().includes(e)||t.displayName.toLocaleLowerCase().includes(e)))))}));function p(e){const t=a.value.find((t=>{let{id:i}=t;return i===e}));t&&s.value.includes(t)?s.value=s.value.filter((t=>{let{id:i}=t;return i!==e})):t&&(s.value=[...s.value,t])}function h(){s.value=[],n.value=""}function f(e){a.value=e.map((e=>{let{uid:t,displayName:i}=e;return{displayName:i,id:t,user:t}}))}return(0,o.wB)(s,(()=>{const e=s.value.map((e=>{let{id:t,displayName:i}=e;return{uid:t,displayName:i}}));r("update:accounts",e)})),i({resetFilter:h,setAvailableAccounts:f,toggleAccount:p}),{__sfc:!0,emit:r,accountFilter:n,availableAccounts:a,selectedAccounts:s,shownAccounts:u,toggleAccount:p,resetFilter:h,setAvailableAccounts:f,t:l.Tl,mdiAccountMultipleOutline:c.aie,FileListFilter:L,NcActionButton:d.A,NcActionInput:D.A,NcAvatar:S.A,NcIconSvgWrapper:x.A}}});var F=i(73621),V={};V.styleTagTransform=y(),V.setAttributes=_(),V.insert=A().bind(null,"head"),V.domAPI=E(),V.insertStyleElement=b(),m()(F.A,V),F.A&&F.A.locals&&F.A.locals;const P=(0,O.A)(R,(function(){var e=this,t=e._self._c,i=e._self._setupProxy;return t(i.FileListFilter,{staticClass:"file-list-filter-accounts",attrs:{"is-active":i.selectedAccounts.length>0,"filter-name":i.t("files_sharing","People")},on:{"reset-filter":i.resetFilter},scopedSlots:e._u([{key:"icon",fn:function(){return[t(i.NcIconSvgWrapper,{attrs:{path:i.mdiAccountMultipleOutline}})]},proxy:!0}])},[e._v(" "),i.availableAccounts.length>1?t(i.NcActionInput,{attrs:{label:i.t("files_sharing","Filter accounts"),"label-outside":!1,"show-trailing-button":!1,type:"search",value:i.accountFilter},on:{"update:value":function(e){i.accountFilter=e}}}):e._e(),e._v(" "),e._l(i.shownAccounts,(function(r){return t(i.NcActionButton,{key:r.id,staticClass:"file-list-filter-accounts__item",attrs:{type:"radio","model-value":i.selectedAccounts.includes(r),value:r.id},on:{click:function(e){return i.toggleAccount(r.id)}},scopedSlots:e._u([{key:"icon",fn:function(){return[t(i.NcAvatar,e._b({staticClass:"file-list-filter-accounts__avatar",attrs:{size:24,"disable-menu":"","show-user-status":!1}},"NcAvatar",r,!1))]},proxy:!0}],null,!0)},[e._v("\n\t\t"+e._s(r.displayName)+"\n\t")])}))],2)}),[],!1,null,"c2743706",null).exports;var M=i(82680);function H(e,t,i){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class B extends r.L3{constructor(){super("files_sharing:account",100),H(this,"availableAccounts",void 0),H(this,"currentInstance",void 0),H(this,"filterAccounts",void 0),this.availableAccounts=[],(0,a.B1)("files:list:updated",(e=>{let{contents:t}=e;this.updateAvailableAccounts(t)}))}mount(e){this.currentInstance&&this.currentInstance.$destroy();const t=o.Ay.extend(P);this.currentInstance=new t({el:e}).$on("update:accounts",(e=>this.setAccounts(e))).$mount(),this.currentInstance.setAvailableAccounts(this.availableAccounts)}filter(e){if(!this.filterAccounts||0===this.filterAccounts.length)return e;const t=this.filterAccounts.map((e=>{let{uid:t}=e;return t}));return e.filter((e=>{const i=e.attributes.sharees?.sharee;return!e.owner&&!i||!(!e.owner||!t.includes(e.owner))||!(!i||![i].flat().some((e=>{let{id:i}=e;return t.includes(i)})))}))}reset(){this.currentInstance?.resetFilter()}setAccounts(e){this.filterAccounts=e;let t=[];this.filterAccounts&&this.filterAccounts.length>0&&(t=this.filterAccounts.map((e=>{let{displayName:t,uid:i}=e;return{text:t,user:i,onclick:()=>this.currentInstance?.toggleAccount(i)}}))),this.updateChips(t),this.filterUpdated()}updateAvailableAccounts(e){const t=new Map;for(const i of e){const e=i.owner;e&&!t.has(e)&&t.set(e,{uid:e,displayName:i.attributes["owner-display-name"]??i.owner});const r=[i.attributes.sharees?.sharee].flat().filter(Boolean);for(const e of[r].flat())""!==e.id&&(e.type!==s.I.User&&e.type!==s.I.Remote||t.has(e.id)||t.set(e.id,{uid:e.id,displayName:e["display-name"]}))}this.availableAccounts=[...t.values()],this.currentInstance&&this.currentInstance.setAvailableAccounts(this.availableAccounts)}}var $=i(85168);const G=new(i(7145).A),U=(0,o.$V)((()=>Promise.all([i.e(4208),i.e(519)]).then(i.bind(i,519)))),k={id:"file-request",displayName:(0,l.Tl)("files_sharing","Create file request"),iconSvgInline:'',order:10,enabled:()=>!(0,M.f)()&&!!G.isPublicUploadEnabled&&G.isPublicShareAllowed,async handler(e,t){(0,$.Ss)(U,{context:e,content:t})}},X='';var j=i(18709),q=i(32981);const Y="shareoverview",W="sharingin",Z="sharingout",z="sharinglinks",K="deletedshares",Q="pendingshares";var J=i(63814),ee=i(65043),te=i(65659);const ie=new r.hY({id:"accept-share",displayName:e=>(0,l.zw)("files_sharing","Accept share","Accept shares",e.length),iconSvgInline:()=>te,enabled:(e,t)=>e.length>0&&t.id===Q,async exec(e){try{const t=!!e.attributes.remote,i=(0,J.KT)("apps/files_sharing/api/v1/{shareBase}/pending/{id}",{shareBase:t?"remote_shares":"shares",id:e.attributes.id});return await ee.Ay.post(i),(0,a.Ic)("files:node:deleted",e),!0}catch(e){return!1}},async execBatch(e,t,i){return Promise.all(e.map((e=>this.exec(e,t,i))))},order:1,inline:()=>!0});(0,r.Gg)(ie);const re=new r.hY({id:"files_sharing:open-in-files",displayName:()=>(0,l.Tl)("files_sharing","Open in Files"),iconSvgInline:()=>"",enabled:(e,t)=>[Y,W,Z,z].includes(t.id),async exec(e){const t=e.type===r.pt.Folder;return window.OCP.Files.Router.goToRoute(null,{view:"files",fileid:String(e.fileid)},{dir:t?e.path:e.dirname,openfile:t?void 0:"true"}),null},order:-1e3,default:r.m9.HIDDEN});(0,r.Gg)(re);var ne=i(5655);const ae=new r.hY({id:"reject-share",displayName:e=>(0,l.zw)("files_sharing","Reject share","Reject shares",e.length),iconSvgInline:()=>ne,enabled:(e,t)=>t.id===Q&&0!==e.length&&!e.some((e=>e.attributes.remote_id&&e.attributes.share_type===s.I.RemoteGroup)),async exec(e){try{const t=!!e.attributes.remote,i=(0,J.KT)("apps/files_sharing/api/v1/{shareBase}/{id}",{shareBase:t?"remote_shares":"shares",id:e.attributes.id});return await ee.Ay.delete(i),(0,a.Ic)("files:node:deleted",e),!0}catch(e){return!1}},async execBatch(e,t,i){return Promise.all(e.map((e=>this.exec(e,t,i))))},order:2,inline:()=>!0});(0,r.Gg)(ae);const se=new r.hY({id:"restore-share",displayName:e=>(0,l.zw)("files_sharing","Restore share","Restore shares",e.length),iconSvgInline:()=>'',enabled:(e,t)=>e.length>0&&t.id===K,async exec(e){try{const t=(0,J.KT)("apps/files_sharing/api/v1/deletedshares/{id}",{id:e.attributes.id});return await ee.Ay.post(t),(0,a.Ic)("files:node:deleted",e),!0}catch(e){return!1}},async execBatch(e,t,i){return Promise.all(e.map((e=>this.exec(e,t,i))))},order:1,inline:()=>!0});(0,r.Gg)(se);var oe=i(21777);const le='';var ce=i(49981);const ue=(0,i(35947).YK)().setApp("files").detectUser().build(),de=new r.hY({id:"details",displayName:()=>(0,l.Tl)("files","Open details"),iconSvgInline:()=>ce,enabled:e=>!(0,M.f)()&&1===e.length&&!!e[0]&&!!window?.OCA?.Files?.Sidebar&&((e[0].root?.startsWith("/files/")&&e[0].permissions!==r.aX.NONE)??!1),async exec(e,t,i){try{return window.OCA.Files.Sidebar.file===e.path?(ue.debug("Sidebar already open for this file",{node:e}),null):(window.OCA.Files.Sidebar.setActiveTab("sharing"),await window.OCA.Files.Sidebar.open(e.path),window.OCP?.Files?.Router?.goToRoute(null,{view:t.id,fileid:String(e.fileid)},{...window.OCP.Files.Router.query,dir:i,opendetails:"true"},!0),null)}catch(e){return ue.error("Error while opening sidebar",{error:e}),!1}},order:-50});var pe=i(53168),he={};he.styleTagTransform=y(),he.setAttributes=_(),he.insert=A().bind(null,"head"),he.domAPI=E(),he.insertStyleElement=b(),m()(pe.A,he),pe.A&&pe.A.locals&&pe.A.locals;const fe=e=>e.attributes?.["is-federated"]??!1,me=new r.hY({id:"sharing-status",displayName(e){const t=e[0];return Object.values(t?.attributes?.["share-types"]||{}).flat().length>0||t.owner!==(0,oe.HW)()?.uid||fe(t)?(0,l.Tl)("files_sharing","Shared"):""},title(e){const t=e[0];if(t.owner&&(t.owner!==(0,oe.HW)()?.uid||fe(t))){const e=t?.attributes?.["owner-display-name"];return(0,l.Tl)("files_sharing","Shared by {ownerDisplayName}",{ownerDisplayName:e})}if(Object.values(t?.attributes?.["share-types"]||{}).flat().length>1)return(0,l.Tl)("files_sharing","Shared multiple times with different people");const i=t.attributes.sharees?.sharee;if(!i)return(0,l.Tl)("files_sharing","Show sharing options");const r=[i].flat()[0];switch(r.type){case s.I.User:return(0,l.Tl)("files_sharing","Shared with {user}",{user:r["display-name"]});case s.I.Group:return(0,l.Tl)("files_sharing","Shared with group {group}",{group:r["display-name"]??r.id});default:return(0,l.Tl)("files_sharing","Shared with others")}},iconSvgInline(e){const t=e[0],i=Object.values(t?.attributes?.["share-types"]||{}).flat();return Array.isArray(t.attributes?.["share-types"])&&t.attributes?.["share-types"].length>1?le:i.includes(s.I.Link)||i.includes(s.I.Email)?X:i.includes(s.I.Group)||i.includes(s.I.RemoteGroup)?'':i.includes(s.I.Team)?'':t.owner&&(t.owner!==(0,oe.HW)()?.uid||fe(t))?function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const i=`${t?`/avatar/guest/${e}`:`/avatar/${e}`}/32${!0===window?.matchMedia?.("(prefers-color-scheme: dark)")?.matches||null!==document.querySelector("[data-themes*=dark]")?"/dark":""}${t?"":"?guestFallback=true"}`;return``}(t.owner,fe(t)):le},enabled(e){if(1!==e.length)return!1;if((0,M.f)())return!1;const t=e[0],i=t.attributes?.["share-types"];return!!(Array.isArray(i)&&i.length>0||t.owner!==(0,oe.HW)()?.uid||fe(t)||t.permissions&r.aX.SHARE)},exec:async(e,t,i)=>e.permissions&r.aX.READ?(window.OCA?.Files?.Sidebar?.setActiveTab?.("sharing"),de.exec(e,t,i)):null,inline:()=>!0});(0,r.Gg)(me),(()=>{const e=(0,r.bh)();e.register(new r.Ss({id:Y,name:(0,l.Tl)("files_sharing","Shares"),caption:(0,l.Tl)("files_sharing","Overview of shared files."),emptyTitle:(0,l.Tl)("files_sharing","No shares"),emptyCaption:(0,l.Tl)("files_sharing","Files and folders you shared or have been shared with you will show up here"),icon:'',order:20,columns:[],getContents:()=>(0,j.h)()})),e.register(new r.Ss({id:W,name:(0,l.Tl)("files_sharing","Shared with you"),caption:(0,l.Tl)("files_sharing","List of files that are shared with you."),emptyTitle:(0,l.Tl)("files_sharing","Nothing shared with you yet"),emptyCaption:(0,l.Tl)("files_sharing","Files and folders others shared with you will show up here"),icon:'',order:1,parent:Y,columns:[],getContents:()=>(0,j.h)(!0,!1,!1,!1)})),0!==(0,q.C)("files","storageStats",{quota:-1}).quota&&e.register(new r.Ss({id:Z,name:(0,l.Tl)("files_sharing","Shared with others"),caption:(0,l.Tl)("files_sharing","List of files that you shared with others."),emptyTitle:(0,l.Tl)("files_sharing","Nothing shared yet"),emptyCaption:(0,l.Tl)("files_sharing","Files and folders you shared will show up here"),icon:'',order:2,parent:Y,columns:[],getContents:()=>(0,j.h)(!1,!0,!1,!1)})),e.register(new r.Ss({id:z,name:(0,l.Tl)("files_sharing","Shared by link"),caption:(0,l.Tl)("files_sharing","List of files that are shared by link."),emptyTitle:(0,l.Tl)("files_sharing","No shared links"),emptyCaption:(0,l.Tl)("files_sharing","Files and folders you shared by link will show up here"),icon:X,order:3,parent:Y,columns:[],getContents:()=>(0,j.h)(!1,!0,!1,!1,[s.I.Link])})),e.register(new r.Ss({id:"filerequest",name:(0,l.Tl)("files_sharing","File requests"),caption:(0,l.Tl)("files_sharing","List of file requests."),emptyTitle:(0,l.Tl)("files_sharing","No file requests"),emptyCaption:(0,l.Tl)("files_sharing","File requests you have created will show up here"),icon:'',order:4,parent:Y,columns:[],getContents:()=>(0,j.h)(!1,!0,!1,!1,[s.I.Link,s.I.Email]).then((e=>{let{folder:t,contents:i}=e;return{folder:t,contents:i.filter((e=>(0,j.C)(e.attributes?.["share-attributes"]||[])))}}))})),e.register(new r.Ss({id:K,name:(0,l.Tl)("files_sharing","Deleted shares"),caption:(0,l.Tl)("files_sharing","List of shares you left."),emptyTitle:(0,l.Tl)("files_sharing","No deleted shares"),emptyCaption:(0,l.Tl)("files_sharing","Shares you have left will show up here"),icon:'',order:5,parent:Y,columns:[],getContents:()=>(0,j.h)(!1,!1,!1,!0)})),e.register(new r.Ss({id:Q,name:(0,l.Tl)("files_sharing","Pending shares"),caption:(0,l.Tl)("files_sharing","List of unapproved shares."),emptyTitle:(0,l.Tl)("files_sharing","No pending shares"),emptyCaption:(0,l.Tl)("files_sharing","Shares you have received but not approved will show up here"),icon:'',order:6,parent:Y,columns:[],getContents:()=>(0,j.h)(!1,!1,!0,!1)}))})(),(0,r.zj)(k),(0,n.i)("nc:note",{nc:"http://nextcloud.org/ns"}),(0,n.i)("nc:sharees",{nc:"http://nextcloud.org/ns"}),(0,n.i)("nc:hide-download",{nc:"http://nextcloud.org/ns"}),(0,n.i)("nc:share-attributes",{nc:"http://nextcloud.org/ns"}),(0,n.i)("oc:share-types",{oc:"http://owncloud.org/ns"}),(0,n.i)("ocs:share-permissions",{ocs:"http://open-collaboration-services.org/ns"}),(0,M.f)()||(0,r.cZ)(new B),function(){let e,t;(0,r.Up)(new r.Y9({id:"note-to-recipient",order:0,enabled:e=>Boolean(e.attributes.note),updated:e=>{t&&t.updateFolder(e)},render:async(r,n)=>{if(void 0===e){const{default:t}=await Promise.all([i.e(4208),i.e(9491)]).then(i.bind(i,9491));e=o.Ay.extend(t)}t=(new e).$mount(r),t.updateFolder(n)}}))}()},23197:(e,t,i)=>{i.d(t,{A:()=>o});var r=i(71354),n=i.n(r),a=i(76314),s=i.n(a)()(n());s.push([e.id,"\n.files-list-filter__clear-button[data-v-00a77ab8] .action-button__text {\n\tcolor: var(--color-error-text);\n}\n[data-v-00a77ab8] .button-vue {\n\tfont-weight: normal !important;\n*[data-v-00a77ab8] {\n\t\tfont-weight: normal !important;\n}\n}\n","",{version:3,sources:["webpack://./apps/files/src/components/FileListFilter/FileListFilter.vue"],names:[],mappings:";AAyCA;CACA,8BAAA;AACA;AAEA;CACA,8BAAA;AAEA;EACA,8BAAA;AACA;AACA",sourcesContent:["\x3c!--\n - SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n--\x3e\n\n\t\n\t\t\n\t\t\t\n\t\t\n\t\t\n\n\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t{{ t('files', 'Clear filter') }}\n\t\t\t\n\t\t\n\t\n\n\n