2 lines
38 KiB
JavaScript
2 lines
38 KiB
JavaScript
(()=>{"use strict";var e,t,i,n={7145:(e,t,i)=>{i.d(t,{A:()=>s});var n=i(87485),r=i(32981);class s{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,n.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 isFederationEnabled(){return!0===this._capabilities?.files_sharing?.federation?.outgoing}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,r.C)("files_sharing","showFederatedSharesAsInternal",!1)}get showFederatedSharesToTrustedServersAsInternal(){return(0,r.C)("files_sharing","showFederatedSharesToTrustedServersAsInternal",!1)}}},9165:(e,t,i)=>{i.d(t,{Brj:()=>l,HzW:()=>p,IyB:()=>r,Krx:()=>n,NZC:()=>s,ZL5:()=>d,fEr:()=>a,jUz:()=>u,kHm:()=>c,kOJ:()=>o});var n="M16 17V19H2V17S2 13 9 13 16 17 16 17M12.5 7.5A3.5 3.5 0 1 0 9 11A3.5 3.5 0 0 0 12.5 7.5M15.94 13A5.32 5.32 0 0 1 18 17V19H22V17S22 13.37 15.94 13M15 4A3.39 3.39 0 0 0 13.07 4.59A5 5 0 0 1 13.07 10.41A3.39 3.39 0 0 0 15 11A3.5 3.5 0 0 0 15 4Z",r="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",s="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",a="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"},10718:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(71354),r=i.n(n),s=i(76314),a=i.n(s)()(r());a.push([e.id,".file-list-filter-accounts__item[data-v-597bdb4d]{min-width:250px}.file-list-filter-accounts__avatar[data-v-597bdb4d]{margin:calc((var(--default-clickable-area) - 24px)/2)}","",{version:3,sources:["webpack://./apps/files_sharing/src/components/FileListFilterAccount.vue"],names:[],mappings:"AAEC,kDACC,eAAA,CAGD,oDAEC,qDAAA",sourcesContent:["\n.file-list-filter-accounts {\n\t&__item {\n\t\tmin-width: 250px;\n\t}\n\n\t&__avatar {\n\t\t// 24px is the avatar size\n\t\tmargin: calc((var(--default-clickable-area) - 24px) / 2)\n\t}\n}\n"],sourceRoot:""}]);const o=a},18709:(e,t,i)=>{i.d(t,{C:()=>d,h:()=>p});var n=i(61884),r=i(35810),s=i(63814),a=i(19051),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=r.aX.NONE,e.permissions=r.aX.NONE),e.uid_owner=e.owner,e.displayname_owner=e.owner}const t="folder"===e?.item_type,n=!0===e?.has_preview,s=t?r.vd:r.ZH,a=e.file_source||e.file_id||e.id,o=e.path||e.file_target||e.name,l=`${r.PY}${r.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 s({id:a,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:r.lJ,attributes:{...e,"has-preview":n,"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(e=!1){const t=(0,s.KT)("apps/files_sharing/api/v1/shares");return a.Ay.get(t,{headers:l,params:{shared_with_me:e,include_tags:!0}})},d=(e="[]")=>{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(e=!0,t=!0,i=!1,o=!1,d=[])=>{const p=[];e&&p.push(u(!0),function(){const e=(0,s.KT)("apps/files_sharing/api/v1/remote_shares");return a.Ay.get(e,{headers:l,params:{include_tags:!0}})}()),t&&p.push(u()),i&&p.push(function(){const e=(0,s.KT)("apps/files_sharing/api/v1/shares/pending");return a.Ay.get(e,{headers:l,params:{include_tags:!0}})}(),function(){const e=(0,s.KT)("apps/files_sharing/api/v1/remote_shares/pending");return a.Ay.get(e,{headers:l,params:{include_tags:!0}})}()),o&&p.push(function(){const e=(0,s.KT)("apps/files_sharing/api/v1/deletedshares");return a.Ay.get(e,{headers:l,params:{include_tags:!0}})}());const h=(await Promise.all(p)).map((e=>e.data.ocs.data)).flat();let f=(await Promise.all(h.map(c))).filter((e=>null!==e));var m,g;return d.length>0&&(f=f.filter((e=>d.includes(e.attributes?.share_type)))),f=(m=f,g="source",Object.values(m.reduce((function(e,t){return(e[t[g]]=e[t[g]]||[]).push(t),e}),{}))).map((e=>{const t=e[0];return t.attributes["share-types"]=e.map((e=>e.attributes["share-types"])),t})),{folder:new r.vd({id:0,source:`${r.PY}${r.lJ}`,owner:(0,n.HW)()?.uid||null}),contents:f}}},45195:(e,t,i)=>{var n=i(35810),r=i(77815),s=i(61338),a=i(40715),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),A=i.n(g),w=i(77659),b=i.n(w),v=i(55056),y=i.n(v),_=i(10540),C=i.n(_),x=i(41113),H=i.n(x),S=i(84229),T={};T.styleTagTransform=H(),T.setAttributes=y(),T.insert=b().bind(null,"head"),T.domAPI=A(),T.insertStyleElement=C(),m()(S.A,T),S.A&&S.A.locals&&S.A.locals;var V=i(14486);const E=(0,V.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,"af54dc8c",null).exports;var D=i(44131),N=i(41944),L=i(6695);const I=(0,o.pM)({__name:"FileListFilterAccount",emits:["update:accounts"],setup(e,{expose:t,emit:i}){const n=(0,o.KR)(""),r=(0,o.KR)([]),s=(0,o.KR)([]),a=(0,o.EW)((()=>{if(!n.value)return r.value;const e=n.value.toLocaleLowerCase().trim().split(" ");return r.value.filter((t=>e.every((e=>t.user.toLocaleLowerCase().includes(e)||t.displayName.toLocaleLowerCase().includes(e)))))}));function u(e){const t=r.value.find((({id:t})=>t===e));t&&s.value.includes(t)?s.value=s.value.filter((({id:t})=>t!==e)):t&&(s.value=[...s.value,t])}function p(){s.value=[],n.value=""}function h(e){r.value=e.map((({uid:e,displayName:t})=>({displayName:t,id:e,user:e})))}return(0,o.wB)(s,(()=>{const e=s.value.map((({id:e,displayName:t})=>({uid:e,displayName:t})));i("update:accounts",e)})),t({resetFilter:p,setAvailableAccounts:h,toggleAccount:u}),{__sfc:!0,emit:i,accountFilter:n,availableAccounts:r,selectedAccounts:s,shownAccounts:a,toggleAccount:u,resetFilter:p,setAvailableAccounts:h,t:l.Tl,mdiAccountMultiple:c.Krx,FileListFilter:E,NcActionButton:d.A,NcActionInput:D.A,NcAvatar:N.A,NcIconSvgWrapper:L.A}}});var M=i(10718),O={};O.styleTagTransform=H(),O.setAttributes=y(),O.insert=b().bind(null,"head"),O.domAPI=A(),O.insertStyleElement=C(),m()(M.A,O),M.A&&M.A.locals&&M.A.locals;const P=(0,V.A)(I,(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.mdiAccountMultiple}})]},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(n){return t(i.NcActionButton,{key:n.id,staticClass:"file-list-filter-accounts__item",attrs:{type:"radio","model-value":i.selectedAccounts.includes(n),value:n.id},on:{click:function(e){return i.toggleAccount(n.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",n,!1))]},proxy:!0}],null,!0)},[e._v("\n\t\t"+e._s(n.displayName)+"\n\t")])}))],2)}),[],!1,null,"597bdb4d",null).exports;var k=i(32505),F=i(51651),B=i(61884),R=i(71225),j=i(77764);const $=new n.VP({id:"files_trashbin--original-location",title:(0,l.Tl)("files_trashbin","Original location"),render(e){const t=G(e),i=document.createElement("span");return i.title=t,i.textContent=t,i},sort(e,t){const i=G(e),n=G(t);return i.localeCompare(n,[(0,l.Z0)(),(0,l.lO)()],{numeric:!0,usage:"sort"})}}),Z=new n.VP({id:"files_trashbin--deleted-by",title:(0,l.Tl)("files_trashbin","Deleted by"),render(e){const{userId:t,displayName:i,label:n}=K(e);if(n){const e=document.createElement("span");return e.textContent=n,e}return new(o.Ay.extend(j.A))({propsData:{size:32,user:t??void 0,displayName:i??t}}).$mount().$el},sort(e,t){const i=K(e),n=i.label??i.displayName??i.userId,r=K(t),s=r.label??r.displayName??r.userId;return n.localeCompare(s,[(0,l.Z0)(),(0,l.lO)()],{numeric:!0,usage:"sort"})}}),Y=new n.VP({id:"files_trashbin--deleted",title:(0,l.Tl)("files_trashbin","Deleted"),render(e){const t=e.attributes?.["trashbin-deletion-time"]||(e?.mtime?.getTime()??0)/1e3,i=document.createElement("span");return t?(i.title=F.A.unix(t).format("LLL"),i.textContent=F.A.unix(t).fromNow(),i):(i.textContent=(0,l.Tl)("files_trashbin","A long time ago"),i)},sort(e,t){const i=e.attributes?.["trashbin-deletion-time"]||(e?.mtime?.getTime()??0)/1e3;return(t.attributes?.["trashbin-deletion-time"]||(t?.mtime?.getTime()??0)/1e3)-i}});function G(e){const t=q(e.attributes?.["trashbin-original-location"]);if(!t)return(0,l.Tl)("files_trashbin","Unknown");const i=(0,R.pD)(t);return i===t?(0,l.Tl)("files_trashbin","All files"):i.replace(/^\//,"")}function K(e){const t=q(e.attributes?.["trashbin-deleted-by-id"]),i=q(e.attributes?.["trashbin-deleted-by-display-name"]);let n;const r=(0,B.HW)()?.uid;return t===r&&(n=(0,l.Tl)("files_trashbin","You")),t||i||(n=(0,l.Tl)("files_trashbin","Unknown")),{userId:t,displayName:i,label:n}}function q(e){return e?String(e):null}const U=`/trashbin/${(0,B.HW)()?.uid}/trash`,W=(0,n.H4)();var z=i(63814);const X=`<?xml version="1.0"?>\n<d:propfind ${(0,n.CP)()}>\n\t<d:prop>\n\t\t<nc:trashbin-deletion-time />\n\t\t<nc:trashbin-original-location />\n\t\t<nc:trashbin-title />\n\t\t<nc:trashbin-deleted-by-id />\n\t\t<nc:trashbin-deleted-by-display-name />\n\t\t${(0,n.VX)()}\n\t</d:prop>\n</d:propfind>`,J=e=>{const t=(0,n.Al)(e,U);return t.attributes.previewUrl=(0,z.Jv)("/apps/files_trashbin/preview?fileId={fileid}&x=32&y=32",{fileid:t.fileid}),t};var Q=i(45174);const ee="trashbin";function te(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}new n.Ss({id:ee,name:(0,l.t)("files_trashbin","Deleted files"),caption:(0,l.t)("files_trashbin","List of files that have been deleted."),emptyTitle:(0,l.t)("files_trashbin","No deleted files"),emptyCaption:(0,l.t)("files_trashbin","Files and folders you have deleted will show up here"),icon:Q,order:50,sticky:!0,defaultSortKey:"deleted",columns:[$,Z,Y],getContents:async(e="/")=>{const t=(await W.getDirectoryContents(`${U}${e}`,{details:!0,data:X,includeSelf:!0})).data.map(J),[i]=t.splice(t.findIndex((t=>t.path===e)),1);return{folder:i,contents:t}}});class ie extends n.L3{constructor(){super("files_sharing:account",100),te(this,"availableAccounts",void 0),te(this,"currentInstance",void 0),te(this,"filterAccounts",void 0),this.availableAccounts=[],(0,s.B1)("files:list:updated",(({contents:e})=>{this.updateAvailableAccounts(e)}))}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((({uid:e})=>e));return e.filter((e=>{if(window.OCP.Files.Router.params.view===ee){const i=e.attributes?.["trashbin-deleted-by-id"];return!(!i||!t.includes(i))}if(e.owner&&t.includes(e.owner))return!0;const i=e.attributes.sharees?.sharee;return!(!i||![i].flat().some((({id:e})=>t.includes(e))))||!e.owner&&!i}))}reset(){this.currentInstance?.resetFilter()}setAccounts(e){this.filterAccounts=e;let t=[];this.filterAccounts&&this.filterAccounts.length>0&&(t=this.filterAccounts.map((({displayName:e,uid:t})=>({text:e,user:t,onclick:()=>this.currentInstance?.toggleAccount(t)})))),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 n=[i.attributes.sharees?.sharee].flat().filter(Boolean);for(const e of[n].flat())""!==e.id&&(e.type!==a.I.User&&e.type!==a.I.Remote||t.has(e.id)||t.set(e.id,{uid:e.id,displayName:e["display-name"]}));const r=i.attributes?.["trashbin-deleted-by-id"];r&&t.set(r,{uid:r,displayName:i.attributes?.["trashbin-deleted-by-display-name"]||r})}this.availableAccounts=[...t.values()],this.currentInstance&&this.currentInstance.setAvailableAccounts(this.availableAccounts)}}var ne=i(85168);const re='<svg xmlns="http://www.w3.org/2000/svg" id="mdi-file-upload" viewBox="0 0 24 24"><path d="M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M13.5,16V19H10.5V16H8L12,12L16,16H13.5M13,9V3.5L18.5,9H13Z" /></svg>',se=new(i(7145).A),ae=(0,o.$V)((()=>Promise.all([i.e(4208),i.e(1252)]).then(i.bind(i,71252)))),oe={id:"file-request",displayName:(0,l.Tl)("files_sharing","Create file request"),iconSvgInline:re,order:10,enabled:()=>!(0,k.f)()&&!!se.isPublicUploadEnabled&&se.isPublicShareAllowed,async handler(e,t){(0,ne.Ss)(ae,{context:e,content:t})}},le='<svg xmlns="http://www.w3.org/2000/svg" id="mdi-account-group" viewBox="0 0 24 24"><path d="M12,5.5A3.5,3.5 0 0,1 15.5,9A3.5,3.5 0 0,1 12,12.5A3.5,3.5 0 0,1 8.5,9A3.5,3.5 0 0,1 12,5.5M5,8C5.56,8 6.08,8.15 6.53,8.42C6.38,9.85 6.8,11.27 7.66,12.38C7.16,13.34 6.16,14 5,14A3,3 0 0,1 2,11A3,3 0 0,1 5,8M19,8A3,3 0 0,1 22,11A3,3 0 0,1 19,14C17.84,14 16.84,13.34 16.34,12.38C17.2,11.27 17.62,9.85 17.47,8.42C17.92,8.15 18.44,8 19,8M5.5,18.25C5.5,16.18 8.41,14.5 12,14.5C15.59,14.5 18.5,16.18 18.5,18.25V20H5.5V18.25M0,20V18.5C0,17.11 1.89,15.94 4.45,15.6C3.86,16.28 3.5,17.22 3.5,18.25V20H0M24,20H20.5V18.25C20.5,17.22 20.14,16.28 19.55,15.6C22.11,15.94 24,17.11 24,18.5V20Z" /></svg>',ce='<svg xmlns="http://www.w3.org/2000/svg" id="mdi-account-plus" viewBox="0 0 24 24"><path d="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" /></svg>',ue='<svg xmlns="http://www.w3.org/2000/svg" id="mdi-link" viewBox="0 0 24 24"><path d="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" /></svg>';var de=i(18709);const pe="shareoverview",he="sharingin",fe="sharingout",me="sharinglinks",ge="deletedshares",Ae="pendingshares";var we=i(19051),be=i(65659);const ve=new n.hY({id:"accept-share",displayName:e=>(0,l.zw)("files_sharing","Accept share","Accept shares",e.length),iconSvgInline:()=>be,enabled:(e,t)=>e.length>0&&t.id===Ae,async exec(e){try{const t=!!e.attributes.remote,i=(0,z.KT)("apps/files_sharing/api/v1/{shareBase}/pending/{id}",{shareBase:t?"remote_shares":"shares",id:e.attributes.id});return await we.Ay.post(i),(0,s.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,n.Gg)(ve);const ye=new n.hY({id:"open-in-files",displayName:()=>(0,l.Tl)("files_sharing","Open in Files"),iconSvgInline:()=>"",enabled:(e,t)=>[pe,he,fe,me].includes(t.id),async exec(e){const t=e.type===n.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:n.m9.HIDDEN});(0,n.Gg)(ye);var _e=i(5655);const Ce=new n.hY({id:"reject-share",displayName:e=>(0,l.zw)("files_sharing","Reject share","Reject shares",e.length),iconSvgInline:()=>_e,enabled:(e,t)=>t.id===Ae&&0!==e.length&&!e.some((e=>e.attributes.remote_id&&e.attributes.share_type===a.I.RemoteGroup)),async exec(e){try{const t=e.attributes.remote?"remote_shares":"shares",i=e.attributes.id;let n;return n=0===e.attributes.accepted?(0,z.KT)("apps/files_sharing/api/v1/{shareBase}/pending/{id}",{shareBase:t,id:i}):(0,z.KT)("apps/files_sharing/api/v1/{shareBase}/{id}",{shareBase:t,id:i}),await we.Ay.delete(n),(0,s.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,n.Gg)(Ce);const xe=new n.hY({id:"restore-share",displayName:e=>(0,l.zw)("files_sharing","Restore share","Restore shares",e.length),iconSvgInline:()=>'<svg xmlns="http://www.w3.org/2000/svg" id="mdi-arrow-u-left-top" viewBox="0 0 24 24"><path d="M20 13.5C20 17.09 17.09 20 13.5 20H6V18H13.5C16 18 18 16 18 13.5S16 9 13.5 9H7.83L10.91 12.09L9.5 13.5L4 8L9.5 2.5L10.92 3.91L7.83 7H13.5C17.09 7 20 9.91 20 13.5Z" /></svg>',enabled:(e,t)=>e.length>0&&t.id===ge,async exec(e){try{const t=(0,z.KT)("apps/files_sharing/api/v1/deletedshares/{id}",{id:e.attributes.id});return await we.Ay.post(t),(0,s.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,n.Gg)(xe);var He=i(49981);const Se=(0,i(35947).YK)().setApp("files").detectUser().build(),Te=new n.hY({id:"details",displayName:()=>(0,l.Tl)("files","Open details"),iconSvgInline:()=>He,enabled:e=>!(0,k.f)()&&1===e.length&&!!e[0]&&!!window?.OCA?.Files?.Sidebar&&((e[0].root?.startsWith("/files/")&&e[0].permissions!==n.aX.NONE)??!1),async exec(e,t,i){try{return window.OCA.Files.Sidebar.file===e.path?(Se.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 Se.error("Error while opening sidebar",{error:e}),!1}},order:-50});var Ve=i(53168),Ee={};Ee.styleTagTransform=H(),Ee.setAttributes=y(),Ee.insert=b().bind(null,"head"),Ee.domAPI=A(),Ee.insertStyleElement=C(),m()(Ve.A,Ee),Ve.A&&Ve.A.locals&&Ve.A.locals;const De=e=>e.attributes?.["is-federated"]??!1,Ne=new n.hY({id:"sharing-status",displayName(e){const t=e[0];return Object.values(t?.attributes?.["share-types"]||{}).flat().length>0||t.owner!==(0,B.HW)()?.uid||De(t)?(0,l.Tl)("files_sharing","Shared"):""},title(e){const t=e[0];if(t.owner&&(t.owner!==(0,B.HW)()?.uid||De(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 n=[i].flat()[0];switch(n.type){case a.I.User:return(0,l.Tl)("files_sharing","Shared with {user}",{user:n["display-name"]});case a.I.Group:return(0,l.Tl)("files_sharing","Shared with group {group}",{group:n["display-name"]??n.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?ce:i.includes(a.I.Link)||i.includes(a.I.Email)?ue:i.includes(a.I.Group)||i.includes(a.I.RemoteGroup)?le:i.includes(a.I.Team)?'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12,5.5A3.5,3.5 0 0,1 15.5,9A3.5,3.5 0 0,1 12,12.5A3.5,3.5 0 0,1 8.5,9A3.5,3.5 0 0,1 12,5.5M5,8C5.56,8 6.08,8.15 6.53,8.42C6.38,9.85 6.8,11.27 7.66,12.38C7.16,13.34 6.16,14 5,14A3,3 0 0,1 2,11A3,3 0 0,1 5,8M19,8A3,3 0 0,1 22,11A3,3 0 0,1 19,14C17.84,14 16.84,13.34 16.34,12.38C17.2,11.27 17.62,9.85 17.47,8.42C17.92,8.15 18.44,8 19,8M5.5,18.25C5.5,16.18 8.41,14.5 12,14.5C15.59,14.5 18.5,16.18 18.5,18.25V20H5.5V18.25M0,20V18.5C0,17.11 1.89,15.94 4.45,15.6C3.86,16.28 3.5,17.22 3.5,18.25V20H0M24,20H20.5V18.25C20.5,17.22 20.14,16.28 19.55,15.6C22.11,15.94 24,17.11 24,18.5V20Z" /></svg>':t.owner&&(t.owner!==(0,B.HW)()?.uid||De(t))?((e,t=!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`<svg width="32" height="32" viewBox="0 0 32 32"\n\t\txmlns="http://www.w3.org/2000/svg" class="sharing-status__avatar">\n\t\t<image href="${(0,z.Jv)(i,{userId:e})}" height="32" width="32" />\n\t</svg>`})(t.owner,De(t)):ce},enabled(e){if(1!==e.length)return!1;if((0,k.f)())return!1;const t=e[0],i=t.attributes?.["share-types"];return!!(Array.isArray(i)&&i.length>0||t.owner!==(0,B.HW)()?.uid||De(t)||t.permissions&n.aX.SHARE&&t.permissions&n.aX.READ)},exec:async(e,t,i)=>e.permissions&n.aX.READ?(window.OCA?.Files?.Sidebar?.setActiveTab?.("sharing"),Te.exec(e,t,i),null):((0,ne.Qg)((0,l.Tl)("files_sharing","You do not have enough permissions to share this file.")),null),inline:()=>!0});(0,n.Gg)(Ne),(()=>{const e=(0,n.bh)();e.register(new n.Ss({id:pe,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:ce,order:20,columns:[],getContents:()=>(0,de.h)()})),e.register(new n.Ss({id:he,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:'<svg xmlns="http://www.w3.org/2000/svg" id="mdi-account" viewBox="0 0 24 24"><path d="M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z" /></svg>',order:1,parent:pe,columns:[],getContents:()=>(0,de.h)(!0,!1,!1,!1)})),e.register(new n.Ss({id:fe,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:le,order:2,parent:pe,columns:[],getContents:()=>(0,de.h)(!1,!0,!1,!1)})),e.register(new n.Ss({id:me,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:ue,order:3,parent:pe,columns:[],getContents:()=>(0,de.h)(!1,!0,!1,!1,[a.I.Link])})),e.register(new n.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:re,order:4,parent:pe,columns:[],getContents:()=>(0,de.h)(!1,!0,!1,!1,[a.I.Link,a.I.Email]).then((({folder:e,contents:t})=>({folder:e,contents:t.filter((e=>(0,de.C)(e.attributes?.["share-attributes"]||[])))})))})),e.register(new n.Ss({id:ge,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:Q,order:5,parent:pe,columns:[],getContents:()=>(0,de.h)(!1,!1,!1,!0)})),e.register(new n.Ss({id:Ae,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:'<svg xmlns="http://www.w3.org/2000/svg" id="mdi-account-clock" viewBox="0 0 24 24"><path d="M10.63,14.1C12.23,10.58 16.38,9.03 19.9,10.63C23.42,12.23 24.97,16.38 23.37,19.9C22.24,22.4 19.75,24 17,24C14.3,24 11.83,22.44 10.67,20H1V18C1.06,16.86 1.84,15.93 3.34,15.18C4.84,14.43 6.72,14.04 9,14C9.57,14 10.11,14.05 10.63,14.1V14.1M9,4C10.12,4.03 11.06,4.42 11.81,5.17C12.56,5.92 12.93,6.86 12.93,8C12.93,9.14 12.56,10.08 11.81,10.83C11.06,11.58 10.12,11.95 9,11.95C7.88,11.95 6.94,11.58 6.19,10.83C5.44,10.08 5.07,9.14 5.07,8C5.07,6.86 5.44,5.92 6.19,5.17C6.94,4.42 7.88,4.03 9,4M17,22A5,5 0 0,0 22,17A5,5 0 0,0 17,12A5,5 0 0,0 12,17A5,5 0 0,0 17,22M16,14H17.5V16.82L19.94,18.23L19.19,19.53L16,17.69V14Z" /></svg>',order:6,parent:pe,columns:[],getContents:()=>(0,de.h)(!1,!1,!0,!1)}))})(),(0,n.zj)(oe),(0,r.Yc)("nc:note",{nc:"http://nextcloud.org/ns"}),(0,r.Yc)("nc:sharees",{nc:"http://nextcloud.org/ns"}),(0,r.Yc)("nc:hide-download",{nc:"http://nextcloud.org/ns"}),(0,r.Yc)("nc:share-attributes",{nc:"http://nextcloud.org/ns"}),(0,r.Yc)("oc:share-types",{oc:"http://owncloud.org/ns"}),(0,r.Yc)("ocs:share-permissions",{ocs:"http://open-collaboration-services.org/ns"}),(0,k.f)()||(0,n.cZ)(new ie),function(){let e,t;(0,n.Up)(new n.Y9({id:"note-to-recipient",order:0,enabled:e=>Boolean(e.attributes.note),updated:e=>{t&&t.updateFolder(e)},render:async(n,r)=>{if(void 0===e){const{default:t}=await i.e(3179).then(i.bind(i,73179));e=o.Ay.extend(t)}t=(new e).$mount(n),t.updateFolder(r)}}))}()},53168:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(71354),r=i.n(n),s=i(76314),a=i.n(s)()(r());a.push([e.id,".action-items>.files-list__row-action-sharing-status{direction:rtl;padding-inline-end:0 !important}svg.sharing-status__avatar{height:32px !important;width:32px !important;max-height:32px !important;max-width:32px !important;border-radius:32px;overflow:hidden}.files-list__row-action-sharing-status .button-vue__text{color:var(--color-primary-element)}.files-list__row-action-sharing-status .button-vue__icon{color:var(--color-primary-element)}","",{version:3,sources:["webpack://./apps/files_sharing/src/files_actions/sharingStatusAction.scss"],names:[],mappings:"AAKA,qDAEC,aAAA,CAEA,+BAAA,CAGD,2BACC,sBAAA,CACA,qBAAA,CACA,0BAAA,CACA,yBAAA,CACA,kBAAA,CACA,eAAA,CAIA,yDACC,kCAAA,CAED,yDACC,kCAAA",sourcesContent:["/**\n * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n // Only when rendered inline, when not enough space, this is put in the menu\n.action-items > .files-list__row-action-sharing-status {\n\t// put icon at the end of the button\n\tdirection: rtl;\n\t// align icons with text-less inline actions\n\tpadding-inline-end: 0 !important;\n}\n\nsvg.sharing-status__avatar {\n\theight: 32px !important;\n\twidth: 32px !important;\n\tmax-height: 32px !important;\n\tmax-width: 32px !important;\n\tborder-radius: 32px;\n\toverflow: hidden;\n}\n\n.files-list__row-action-sharing-status {\n\t.button-vue__text {\n\t\tcolor: var(--color-primary-element);\n\t}\n\t.button-vue__icon {\n\t\tcolor: var(--color-primary-element);\n\t}\n}\n"],sourceRoot:""}]);const o=a},62746:(e,t,i)=>{i.d(t,{A:()=>n});const n=(0,i(35947).YK)().setApp("files_sharing").detectUser().build()},84229:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(71354),r=i.n(n),s=i(76314),a=i.n(s)()(r());a.push([e.id,"\n.files-list-filter__clear-button[data-v-af54dc8c] .action-button__text {\n\tcolor: var(--color-text-error, var(--color-error-text));\n}\n[data-v-af54dc8c] .button-vue {\n\tfont-weight: normal !important;\n*[data-v-af54dc8c] {\n\t\tfont-weight: normal !important;\n}\n}\n","",{version:3,sources:["webpack://./apps/files/src/components/FileListFilter/FileListFilter.vue"],names:[],mappings:";AAyCA;CACA,uDAAA;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<template>\n\t<NcActions force-menu\n\t\t:type=\"isActive ? 'secondary' : 'tertiary'\"\n\t\t:menu-name=\"filterName\">\n\t\t<template #icon>\n\t\t\t<slot name=\"icon\" />\n\t\t</template>\n\t\t<slot />\n\n\t\t<template v-if=\"isActive\">\n\t\t\t<NcActionSeparator />\n\t\t\t<NcActionButton class=\"files-list-filter__clear-button\"\n\t\t\t\tclose-after-click\n\t\t\t\t@click=\"$emit('reset-filter')\">\n\t\t\t\t{{ t('files', 'Clear filter') }}\n\t\t\t</NcActionButton>\n\t\t</template>\n\t</NcActions>\n</template>\n\n<script setup lang=\"ts\">\nimport { t } from '@nextcloud/l10n'\nimport NcActions from '@nextcloud/vue/dist/Components/NcActions.js'\nimport NcActionButton from '@nextcloud/vue/dist/Components/NcActionButton.js'\nimport NcActionSeparator from '@nextcloud/vue/dist/Components/NcActionSeparator.js'\n\ndefineProps<{\n\tisActive: boolean\n\tfilterName: string\n}>()\n\ndefineEmits<{\n\t(event: 'reset-filter'): void\n}>()\n<\/script>\n\n<style scoped>\n.files-list-filter__clear-button :deep(.action-button__text) {\n\tcolor: var(--color-text-error, var(--color-error-text));\n}\n\n:deep(.button-vue) {\n\tfont-weight: normal !important;\n\n\t* {\n\t\tfont-weight: normal !important;\n\t}\n}\n</style>\n"],sourceRoot:""}]);const o=a}},r={};function s(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={id:e,loaded:!1,exports:{}};return n[e].call(i.exports,i,i.exports,s),i.loaded=!0,i.exports}s.m=n,e=[],s.O=(t,i,n,r)=>{if(!i){var a=1/0;for(u=0;u<e.length;u++){i=e[u][0],n=e[u][1],r=e[u][2];for(var o=!0,l=0;l<i.length;l++)(!1&r||a>=r)&&Object.keys(s.O).every((e=>s.O[e](i[l])))?i.splice(l--,1):(o=!1,r<a&&(a=r));if(o){e.splice(u--,1);var c=n();void 0!==c&&(t=c)}}return t}r=r||0;for(var u=e.length;u>0&&e[u-1][2]>r;u--)e[u]=e[u-1];e[u]=[i,n,r]},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var i in t)s.o(t,i)&&!s.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce(((t,i)=>(s.f[i](e,t),t)),[])),s.u=e=>e+"-"+e+".js?v="+{857:"6f9f26b294764ba7cffa",1252:"33298efd355260a49a54",3179:"814e45c3a898746eac7d",3278:"8b4fe0854296793e7bfb",4612:"aebb24cec040bc57223b",5664:"4b28558df62ae5fee1e5",7471:"6423b9b898ffefeb7d1d"}[e],s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),t={},i="nextcloud:",s.l=(e,n,r,a)=>{if(t[e])t[e].push(n);else{var o,l;if(void 0!==r)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==i+r){o=d;break}}o||(l=!0,(o=document.createElement("script")).charset="utf-8",o.timeout=120,s.nc&&o.setAttribute("nonce",s.nc),o.setAttribute("data-webpack",i+r),o.src=e),t[e]=[n];var p=(i,n)=>{o.onerror=o.onload=null,clearTimeout(h);var r=t[e];if(delete t[e],o.parentNode&&o.parentNode.removeChild(o),r&&r.forEach((e=>e(n))),i)return i(n)},h=setTimeout(p.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=p.bind(null,o.onerror),o.onload=p.bind(null,o.onload),l&&document.head.appendChild(o)}},s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),s.j=5928,(()=>{var e;s.g.importScripts&&(e=s.g.location+"");var t=s.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var i=t.getElementsByTagName("script");if(i.length)for(var n=i.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=i[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.p=e})(),(()=>{s.b=document.baseURI||self.location.href;var e={5928:0};s.f.j=(t,i)=>{var n=s.o(e,t)?e[t]:void 0;if(0!==n)if(n)i.push(n[2]);else{var r=new Promise(((i,r)=>n=e[t]=[i,r]));i.push(n[2]=r);var a=s.p+s.u(t),o=new Error;s.l(a,(i=>{if(s.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var r=i&&("load"===i.type?"missing":i.type),a=i&&i.target&&i.target.src;o.message="Loading chunk "+t+" failed.\n("+r+": "+a+")",o.name="ChunkLoadError",o.type=r,o.request=a,n[1](o)}}),"chunk-"+t,t)}},s.O.j=t=>0===e[t];var t=(t,i)=>{var n,r,a=i[0],o=i[1],l=i[2],c=0;if(a.some((t=>0!==e[t]))){for(n in o)s.o(o,n)&&(s.m[n]=o[n]);if(l)var u=l(s)}for(t&&t(i);c<a.length;c++)r=a[c],s.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return s.O(u)},i=self.webpackChunknextcloud=self.webpackChunknextcloud||[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))})(),s.nc=void 0;var a=s.O(void 0,[4208],(()=>s(45195)));a=s.O(a)})();
|
|
//# sourceMappingURL=files_sharing-init.js.map?v=807b3083e0f204a19359
|