From 29bec6ea22a38b74597bf643a3e027910e0b5ef1 Mon Sep 17 00:00:00 2001 From: skjnldsv Date: Fri, 19 Jul 2024 12:21:22 +0200 Subject: chore: compile assets Signed-off-by: skjnldsv --- dist/files_sharing-init.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dist/files_sharing-init.js') diff --git a/dist/files_sharing-init.js b/dist/files_sharing-init.js index 77eb2e3f29a..446d9ad74e6 100644 --- a/dist/files_sharing-init.js +++ b/dist/files_sharing-init.js @@ -1,2 +1,2 @@ -(()=>{"use strict";var e,t,i,r={21302:(e,t,i)=>{var r=i(49584),n=i(53334),a=i(77905);const s='',l='',o='';var d,u=i(63814),h=i(21777),p=i(65043),c=i(62746);const g="/files/".concat(null===(d=(0,h.HW)())||void 0===d?void 0:d.uid),v={"Content-Type":"application/json"},w=async function(e){try{var t;if(void 0!==(null==e?void 0:e.remote_id)){const t=(await i.e(857).then(i.bind(i,33238))).default;e.mimetype=t.getType(e.name),e.item_type=e.mimetype?"file":"folder",e.item_permissions=r.aX.NONE,e.permissions=r.aX.NONE,e.uid_owner=e.owner,e.displayname_owner=e.owner}const n="folder"===(null==e?void 0:e.item_type),a=!0===(null==e?void 0:e.has_preview),s=n?r.vd:r.ZH,l=e.file_source||e.id,o=(null==e?void 0:e.path)||e.file_target||e.name,d=(0,u.dC)("dav/".concat(g,"/").concat(o).replaceAll(/\/\//gm,"/"));let h=null!=e&&e.item_mtime?new Date(1e3*e.item_mtime):void 0;return(null==e?void 0:e.stime)>((null==e?void 0:e.item_mtime)||0)&&(h=new Date(1e3*e.stime)),new s({id:l,source:d,owner:null==e?void 0:e.uid_owner,mime:(null==e?void 0:e.mimetype)||"application/octet-stream",mtime:h,size:null==e?void 0:e.item_size,permissions:(null==e?void 0:e.item_permissions)||(null==e?void 0:e.permissions),root:g,attributes:{...e,"has-preview":a,"owner-id":null==e?void 0:e.uid_owner,"owner-display-name":null==e?void 0:e.displayname_owner,"share-types":null==e?void 0:e.share_type,favorite:null!=e&&null!==(t=e.tags)&&void 0!==t&&t.includes(window.OC.TAG_FAVORITE)?1:0}})}catch(e){return c.A.error("Error while parsing OCS entry",{error:e}),null}},f=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=(0,u.KT)("apps/files_sharing/api/v1/shares");return p.Ay.get(t,{headers:v,params:{shared_with_me:e,include_tags:!0}})},m=async function(){var e;let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];const s=[];(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&s.push(f(!0),function(){const e=(0,u.KT)("apps/files_sharing/api/v1/remote_shares");return p.Ay.get(e,{headers:v,params:{include_tags:!0}})}()),t&&s.push(f()),i&&s.push(function(){const e=(0,u.KT)("apps/files_sharing/api/v1/shares/pending");return p.Ay.get(e,{headers:v,params:{include_tags:!0}})}(),function(){const e=(0,u.KT)("apps/files_sharing/api/v1/remote_shares/pending");return p.Ay.get(e,{headers:v,params:{include_tags:!0}})}()),n&&s.push(function(){const e=(0,u.KT)("apps/files_sharing/api/v1/deletedshares");return p.Ay.get(e,{headers:v,params:{include_tags:!0}})}());const l=(await Promise.all(s)).map((e=>e.data.ocs.data)).flat();let o=(await Promise.all(l.map(w))).filter((e=>null!==e));var d,c;return a.length>0&&(o=o.filter((e=>{var t;return a.includes(null===(t=e.attributes)||void 0===t?void 0:t.share_type)}))),o=(d=o,c="source",Object.values(d.reduce((function(e,t){return(e[t[c]]=e[t[c]]||[]).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:(0,u.dC)("dav"+g),owner:(null===(e=(0,h.HW)())||void 0===e?void 0:e.uid)||null}),contents:o}},b="shareoverview",y="sharingin",A="sharingout",C="sharinglinks",_="deletedshares",x="pendingshares";var E=i(85471),D=i(7145);const T=(0,E.$V)((()=>Promise.all([i.e(4208),i.e(6968)]).then(i.bind(i,16968)))),S=new D.A,H={id:"file-request",displayName:(0,n.Tl)("files_sharing","Create file request"),iconSvgInline:'',order:30,enabled:e=>0!=(e.permissions&r.aX.SHARE)&&S.isPublicShareAllowed,async handler(e,t){const i=document.createElement("div");i.id="file-request-dialog",document.body.appendChild(i);const r=new E.Ay({name:"NewFileRequestDialogRoot",render:i=>i(T,{props:{context:e,content:t},on:{close:()=>{r.$destroy()}}}),el:i})}};var O=i(61338);const L=new r.hY({id:"accept-share",displayName:e=>(0,n.zw)("files_sharing","Accept share","Accept shares",e.length),iconSvgInline:()=>'',enabled:(e,t)=>e.length>0&&t.id===x,async exec(e){try{const t=!!e.attributes.remote,i=(0,u.KT)("apps/files_sharing/api/v1/{shareBase}/pending/{id}",{shareBase:t?"remote_shares":"shares",id:e.attributes.id});return await p.Ay.post(i),(0,O.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)(L);const P=new r.hY({id:"open-in-files",displayName:()=>(0,n.Tl)("files_sharing","Open in Files"),iconSvgInline:()=>"",enabled:(e,t)=>[b,y,A,C].includes(t.id),exec:async e=>(window.OCP.Files.Router.goToRoute(null,{view:"files",fileid:String(e.fileid)},{dir:e.dirname,openfile:"true"}),null),order:-1e3,default:r.m9.HIDDEN});(0,r.Gg)(P);const V=new r.hY({id:"reject-share",displayName:e=>(0,n.zw)("files_sharing","Reject share","Reject shares",e.length),iconSvgInline:()=>'',enabled:(e,t)=>t.id===x&&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,i=(0,u.KT)("apps/files_sharing/api/v1/{shareBase}/{id}",{shareBase:t?"remote_shares":"shares",id:e.attributes.id});return await p.Ay.delete(i),(0,O.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)(V);const R=new r.hY({id:"restore-share",displayName:e=>(0,n.zw)("files_sharing","Restore share","Restore shares",e.length),iconSvgInline:()=>'',enabled:(e,t)=>e.length>0&&t.id===_,async exec(e){try{const t=(0,u.KT)("apps/files_sharing/api/v1/deletedshares/{id}",{id:e.attributes.id});return await p.Ay.post(t),(0,O.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)(R);var M=i(49981);const I=(0,i(35947).YK)().setApp("files").detectUser().build(),k=new r.hY({id:"details",displayName:()=>(0,n.Tl)("files","Open details"),iconSvgInline:()=>M,enabled:e=>{var t,i,n;return 1===e.length&&!!e[0]&&!(null===(t=window)||void 0===t||null===(t=t.OCA)||void 0===t||null===(t=t.Files)||void 0===t||!t.Sidebar)&&null!==(i=(null===(n=e[0].root)||void 0===n?void 0:n.startsWith("/files/"))&&e[0].permissions!==r.aX.NONE)&&void 0!==i&&i},async exec(e,t,i){try{return 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},!0),null}catch(e){return I.error("Error while opening sidebar",{error:e}),!1}},order:-50});var B,N,j=i(85072),F=i.n(j),Z=i(97825),Y=i.n(Z),G=i(77659),q=i.n(G),K=i(55056),X=i.n(K),U=i(10540),W=i.n(U),z=i(41113),$=i.n(z),J=i(8132),Q={};Q.styleTagTransform=$(),Q.setAttributes=X(),Q.insert=q().bind(null,"head"),Q.domAPI=Y(),Q.insertStyleElement=W(),F()(J.A,Q),J.A&&J.A.locals&&J.A.locals;const ee=!0===(null===(B=window)||void 0===B||null===(N=B.matchMedia)||void 0===N||null===(N=N.call(B,"(prefers-color-scheme: dark)"))||void 0===N?void 0:N.matches)||null!==document.querySelector("[data-themes*=dark]"),te=e=>void 0!==e.attributes.remote_id,ie=new r.hY({id:"sharing-status",displayName(e){var t,i,r;const a=e[0],s=Object.values((null==a||null===(t=a.attributes)||void 0===t?void 0:t["share-types"])||{}).flat(),l=null==a||null===(i=a.attributes)||void 0===i?void 0:i["owner-id"];return s.length>0||l!==(null===(r=(0,h.HW)())||void 0===r?void 0:r.uid)||te(a)?(0,n.Tl)("files_sharing","Shared"):""},title(e){var t,i,r,a,s;const l=e[0],o=null==l||null===(t=l.attributes)||void 0===t?void 0:t["owner-id"],d=null==l||null===(i=l.attributes)||void 0===i?void 0:i["owner-display-name"];return Array.isArray(null===(r=l.attributes)||void 0===r?void 0:r["share-types"])&&(null===(a=l.attributes)||void 0===a?void 0:a["share-types"].length)>1?(0,n.Tl)("files_sharing","Shared multiple times with different people"):o&&(o!==(null===(s=(0,h.HW)())||void 0===s?void 0:s.uid)||te(l))?(0,n.Tl)("files_sharing","Shared by {ownerDisplayName}",{ownerDisplayName:d}):(0,n.Tl)("files_sharing","Show sharing options")},iconSvgInline(e){var t,i,r,n,d;const p=e[0],c=Object.values((null==p||null===(t=p.attributes)||void 0===t?void 0:t["share-types"])||{}).flat();if(Array.isArray(null===(i=p.attributes)||void 0===i?void 0:i["share-types"])&&(null===(r=p.attributes)||void 0===r?void 0:r["share-types"].length)>1)return l;if(c.includes(a.Z.SHARE_TYPE_LINK)||c.includes(a.Z.SHARE_TYPE_EMAIL))return o;if(c.includes(a.Z.SHARE_TYPE_GROUP)||c.includes(a.Z.SHARE_TYPE_REMOTE_GROUP))return s;if(c.includes(a.Z.SHARE_TYPE_CIRCLE))return'';const g=null==p||null===(n=p.attributes)||void 0===n?void 0:n["owner-id"];return g&&(g!==(null===(d=(0,h.HW)())||void 0===d?void 0:d.uid)||te(p))?function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const i=ee?"/avatar/{userId}/32/dark":"/avatar/{userId}/32",r=(0,u.Jv)(t?i:i+"?guestFallback=true",{userId:e});return'')}(g,te(p)):l},enabled(e){var t,i,n;if(1!==e.length)return!1;const a=e[0],s=null==a||null===(t=a.attributes)||void 0===t?void 0:t["owner-id"],l=null===(i=a.attributes)||void 0===i?void 0:i["share-types"];return!!(Array.isArray(l)&&l.length>0)||!(!s||s===(null===(n=(0,h.HW)())||void 0===n?void 0:n.uid)&&!te(a))||0!=(a.permissions&r.aX.SHARE)},async exec(e,t,i){var n,a;return 0!=(e.permissions&r.aX.READ)?(null===(n=window.OCA)||void 0===n||null===(n=n.Files)||void 0===n||null===(n=n.Sidebar)||void 0===n||null===(a=n.setActiveTab)||void 0===a||a.call(n,"sharing"),k.exec(e,t,i)):null},inline:()=>!0});(0,r.Gg)(ie),(()=>{const e=(0,r.bh)();e.register(new r.Ss({id:b,name:(0,n.Tl)("files_sharing","Shares"),caption:(0,n.Tl)("files_sharing","Overview of shared files."),emptyTitle:(0,n.Tl)("files_sharing","No shares"),emptyCaption:(0,n.Tl)("files_sharing","Files and folders you shared or have been shared with you will show up here"),icon:l,order:20,columns:[],getContents:()=>m()})),e.register(new r.Ss({id:y,name:(0,n.Tl)("files_sharing","Shared with you"),caption:(0,n.Tl)("files_sharing","List of files that are shared with you."),emptyTitle:(0,n.Tl)("files_sharing","Nothing shared with you yet"),emptyCaption:(0,n.Tl)("files_sharing","Files and folders others shared with you will show up here"),icon:'',order:1,parent:b,columns:[],getContents:()=>m(!0,!1,!1,!1)})),e.register(new r.Ss({id:A,name:(0,n.Tl)("files_sharing","Shared with others"),caption:(0,n.Tl)("files_sharing","List of files that you shared with others."),emptyTitle:(0,n.Tl)("files_sharing","Nothing shared yet"),emptyCaption:(0,n.Tl)("files_sharing","Files and folders you shared will show up here"),icon:s,order:2,parent:b,columns:[],getContents:()=>m(!1,!0,!1,!1)})),e.register(new r.Ss({id:C,name:(0,n.Tl)("files_sharing","Shared by link"),caption:(0,n.Tl)("files_sharing","List of files that are shared by link."),emptyTitle:(0,n.Tl)("files_sharing","No shared links"),emptyCaption:(0,n.Tl)("files_sharing","Files and folders you shared by link will show up here"),icon:o,order:3,parent:b,columns:[],getContents:()=>m(!1,!0,!1,!1,[a.I.Link])})),e.register(new r.Ss({id:_,name:(0,n.Tl)("files_sharing","Deleted shares"),caption:(0,n.Tl)("files_sharing","List of shares you left."),emptyTitle:(0,n.Tl)("files_sharing","No deleted shares"),emptyCaption:(0,n.Tl)("files_sharing","Shares you have left will show up here"),icon:'',order:4,parent:b,columns:[],getContents:()=>m(!1,!1,!1,!0)})),e.register(new r.Ss({id:x,name:(0,n.Tl)("files_sharing","Pending shares"),caption:(0,n.Tl)("files_sharing","List of unapproved shares."),emptyTitle:(0,n.Tl)("files_sharing","No pending shares"),emptyCaption:(0,n.Tl)("files_sharing","Shares you have received but not approved will show up here"),icon:'',order:5,parent:b,columns:[],getContents:()=>m(!1,!1,!0,!1)}))})(),(0,r.zj)(H),(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"})},7145:(e,t,i)=>{i.d(t,{A:()=>n});var r=i(87485);class n{constructor(){var e,t,i;e=this,i=void 0,(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var r=i.call(e,"string");if("object"!=typeof r)return r;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(){var e;return null===(e=this._capabilities.files_sharing)||void 0===e?void 0:e.default_permissions}get isPublicUploadEnabled(){var e;return!0===(null===(e=this._capabilities.files_sharing)||void 0===e||null===(e=e.public)||void 0===e?void 0:e.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(){var e;return!0===(null===(e=this._capabilities)||void 0===e||null===(e=e.files_sharing)||void 0===e||null===(e=e.public)||void 0===e?void 0:e.enabled)}get isMailShareAllowed(){var e;return!0===(null===(e=this._capabilities)||void 0===e||null===(e=e.files_sharing)||void 0===e||null===(e=e.sharebymail)||void 0===e?void 0:e.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(){var e;return!0===(null===(e=this._capabilities.files_sharing)||void 0===e||null===(e=e.sharebymail)||void 0===e||null===(e=e.password)||void 0===e?void 0:e.enforced)}get shouldAlwaysShowUnique(){var e;return!0===(null===(e=this._capabilities.files_sharing)||void 0===e||null===(e=e.sharee)||void 0===e?void 0:e.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(){var e;return(null===(e=this._capabilities)||void 0===e?void 0:e.password_policy)||{}}}},62746:(e,t,i)=>{i.d(t,{A:()=>r});const r=(0,i(35947).YK)().setApp("files_sharing").detectUser().build()},8132:(e,t,i)=>{i.d(t,{A:()=>l});var r=i(71354),n=i.n(r),a=i(76314),s=i.n(a)()(n());s.push([e.id,".action-items>.files-list__row-action-sharing-status{direction:rtl;padding-right: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}","",{version:3,sources:["webpack://./apps/files_sharing/src/actions/sharingStatusAction.scss"],names:[],mappings:"AAKA,qDAEC,aAAA,CAEG,0BAAA,CAGJ,2BACC,sBAAA,CACA,qBAAA,CACA,0BAAA,CACA,yBAAA,CACA,kBAAA,CACA,eAAA",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 textless inline actions\n padding-right: 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"],sourceRoot:""}]);const l=s}},n={};function a(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={id:e,loaded:!1,exports:{}};return r[e].call(i.exports,i,i.exports,a),i.loaded=!0,i.exports}a.m=r,e=[],a.O=(t,i,r,n)=>{if(!i){var s=1/0;for(u=0;u=n)&&Object.keys(a.O).every((e=>a.O[e](i[o])))?i.splice(o--,1):(l=!1,n0&&e[u-1][2]>n;u--)e[u]=e[u-1];e[u]=[i,r,n]},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var i in t)a.o(t,i)&&!a.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((t,i)=>(a.f[i](e,t),t)),[])),a.u=e=>e+"-"+e+".js?v="+{857:"7e2e213ab986188c7a5e",4254:"5c2324570f66dff0c8a1",6968:"ddb65854e250656a24f4",9480:"f3ebcf41e93bbd8cd678"}[e],a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),t={},i="nextcloud:",a.l=(e,r,n,s)=>{if(t[e])t[e].push(r);else{var l,o;if(void 0!==n)for(var d=document.getElementsByTagName("script"),u=0;u{l.onerror=l.onload=null,clearTimeout(c);var n=t[e];if(delete t[e],l.parentNode&&l.parentNode.removeChild(l),n&&n.forEach((e=>e(r))),i)return i(r)},c=setTimeout(p.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=p.bind(null,l.onerror),l.onload=p.bind(null,l.onload),o&&document.head.appendChild(l)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),a.j=5928,(()=>{var e;a.g.importScripts&&(e=a.g.location+"");var t=a.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var i=t.getElementsByTagName("script");if(i.length)for(var r=i.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=i[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e})(),(()=>{a.b=document.baseURI||self.location.href;var e={5928:0};a.f.j=(t,i)=>{var r=a.o(e,t)?e[t]:void 0;if(0!==r)if(r)i.push(r[2]);else{var n=new Promise(((i,n)=>r=e[t]=[i,n]));i.push(r[2]=n);var s=a.p+a.u(t),l=new Error;a.l(s,(i=>{if(a.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var n=i&&("load"===i.type?"missing":i.type),s=i&&i.target&&i.target.src;l.message="Loading chunk "+t+" failed.\n("+n+": "+s+")",l.name="ChunkLoadError",l.type=n,l.request=s,r[1](l)}}),"chunk-"+t,t)}},a.O.j=t=>0===e[t];var t=(t,i)=>{var r,n,s=i[0],l=i[1],o=i[2],d=0;if(s.some((t=>0!==e[t]))){for(r in l)a.o(l,r)&&(a.m[r]=l[r]);if(o)var u=o(a)}for(t&&t(i);da(21302)));s=a.O(s)})(); -//# sourceMappingURL=files_sharing-init.js.map?v=ad4e53ee2b97e73ff40f \ No newline at end of file +(()=>{"use strict";var e,t,i,r={21302:(e,t,i)=>{var r=i(49584),n=i(53334),a=i(77905);const s='',l='',o='';var d,u=i(63814),h=i(21777),p=i(65043),c=i(62746);const g="/files/".concat(null===(d=(0,h.HW)())||void 0===d?void 0:d.uid),v={"Content-Type":"application/json"},w=async function(e){try{var t;if(void 0!==(null==e?void 0:e.remote_id)){const t=(await i.e(857).then(i.bind(i,33238))).default;e.mimetype=t.getType(e.name),e.item_type=e.mimetype?"file":"folder",e.item_permissions=r.aX.NONE,e.permissions=r.aX.NONE,e.uid_owner=e.owner,e.displayname_owner=e.owner}const n="folder"===(null==e?void 0:e.item_type),a=!0===(null==e?void 0:e.has_preview),s=n?r.vd:r.ZH,l=e.file_source||e.id,o=(null==e?void 0:e.path)||e.file_target||e.name,d=(0,u.dC)("dav/".concat(g,"/").concat(o).replaceAll(/\/\//gm,"/"));let h=null!=e&&e.item_mtime?new Date(1e3*e.item_mtime):void 0;return(null==e?void 0:e.stime)>((null==e?void 0:e.item_mtime)||0)&&(h=new Date(1e3*e.stime)),new s({id:l,source:d,owner:null==e?void 0:e.uid_owner,mime:(null==e?void 0:e.mimetype)||"application/octet-stream",mtime:h,size:null==e?void 0:e.item_size,permissions:(null==e?void 0:e.item_permissions)||(null==e?void 0:e.permissions),root:g,attributes:{...e,"has-preview":a,"owner-id":null==e?void 0:e.uid_owner,"owner-display-name":null==e?void 0:e.displayname_owner,"share-types":null==e?void 0:e.share_type,favorite:null!=e&&null!==(t=e.tags)&&void 0!==t&&t.includes(window.OC.TAG_FAVORITE)?1:0}})}catch(e){return c.A.error("Error while parsing OCS entry",{error:e}),null}},f=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=(0,u.KT)("apps/files_sharing/api/v1/shares");return p.Ay.get(t,{headers:v,params:{shared_with_me:e,include_tags:!0}})},m=async function(){var e;let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];const s=[];(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&s.push(f(!0),function(){const e=(0,u.KT)("apps/files_sharing/api/v1/remote_shares");return p.Ay.get(e,{headers:v,params:{include_tags:!0}})}()),t&&s.push(f()),i&&s.push(function(){const e=(0,u.KT)("apps/files_sharing/api/v1/shares/pending");return p.Ay.get(e,{headers:v,params:{include_tags:!0}})}(),function(){const e=(0,u.KT)("apps/files_sharing/api/v1/remote_shares/pending");return p.Ay.get(e,{headers:v,params:{include_tags:!0}})}()),n&&s.push(function(){const e=(0,u.KT)("apps/files_sharing/api/v1/deletedshares");return p.Ay.get(e,{headers:v,params:{include_tags:!0}})}());const l=(await Promise.all(s)).map((e=>e.data.ocs.data)).flat();let o=(await Promise.all(l.map(w))).filter((e=>null!==e));var d,c;return a.length>0&&(o=o.filter((e=>{var t;return a.includes(null===(t=e.attributes)||void 0===t?void 0:t.share_type)}))),o=(d=o,c="source",Object.values(d.reduce((function(e,t){return(e[t[c]]=e[t[c]]||[]).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:(0,u.dC)("dav"+g),owner:(null===(e=(0,h.HW)())||void 0===e?void 0:e.uid)||null}),contents:o}},y="shareoverview",A="sharingin",b="sharingout",C="sharinglinks",_="deletedshares",x="pendingshares";var E=i(85471),D=i(7145);const T=(0,E.$V)((()=>Promise.all([i.e(4208),i.e(8832)]).then(i.bind(i,88832)))),S=new D.A,H={id:"file-request",displayName:(0,n.Tl)("files_sharing","Create file request"),iconSvgInline:'',order:30,enabled:e=>0!=(e.permissions&r.aX.SHARE)&&S.isPublicShareAllowed,async handler(e,t){const i=document.createElement("div");i.id="file-request-dialog",document.body.appendChild(i);const r=new E.Ay({name:"NewFileRequestDialogRoot",render:i=>i(T,{props:{context:e,content:t},on:{close:()=>{r.$destroy()}}}),el:i})}};var O=i(61338);const L=new r.hY({id:"accept-share",displayName:e=>(0,n.zw)("files_sharing","Accept share","Accept shares",e.length),iconSvgInline:()=>'',enabled:(e,t)=>e.length>0&&t.id===x,async exec(e){try{const t=!!e.attributes.remote,i=(0,u.KT)("apps/files_sharing/api/v1/{shareBase}/pending/{id}",{shareBase:t?"remote_shares":"shares",id:e.attributes.id});return await p.Ay.post(i),(0,O.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)(L);const P=new r.hY({id:"open-in-files",displayName:()=>(0,n.Tl)("files_sharing","Open in Files"),iconSvgInline:()=>"",enabled:(e,t)=>[y,A,b,C].includes(t.id),exec:async e=>(window.OCP.Files.Router.goToRoute(null,{view:"files",fileid:String(e.fileid)},{dir:e.dirname,openfile:"true"}),null),order:-1e3,default:r.m9.HIDDEN});(0,r.Gg)(P);const V=new r.hY({id:"reject-share",displayName:e=>(0,n.zw)("files_sharing","Reject share","Reject shares",e.length),iconSvgInline:()=>'',enabled:(e,t)=>t.id===x&&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,i=(0,u.KT)("apps/files_sharing/api/v1/{shareBase}/{id}",{shareBase:t?"remote_shares":"shares",id:e.attributes.id});return await p.Ay.delete(i),(0,O.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)(V);const R=new r.hY({id:"restore-share",displayName:e=>(0,n.zw)("files_sharing","Restore share","Restore shares",e.length),iconSvgInline:()=>'',enabled:(e,t)=>e.length>0&&t.id===_,async exec(e){try{const t=(0,u.KT)("apps/files_sharing/api/v1/deletedshares/{id}",{id:e.attributes.id});return await p.Ay.post(t),(0,O.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)(R);var M=i(49981);const I=(0,i(35947).YK)().setApp("files").detectUser().build(),k=new r.hY({id:"details",displayName:()=>(0,n.Tl)("files","Open details"),iconSvgInline:()=>M,enabled:e=>{var t,i,n;return 1===e.length&&!!e[0]&&!(null===(t=window)||void 0===t||null===(t=t.OCA)||void 0===t||null===(t=t.Files)||void 0===t||!t.Sidebar)&&null!==(i=(null===(n=e[0].root)||void 0===n?void 0:n.startsWith("/files/"))&&e[0].permissions!==r.aX.NONE)&&void 0!==i&&i},async exec(e,t,i){try{return 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},!0),null}catch(e){return I.error("Error while opening sidebar",{error:e}),!1}},order:-50});var B,N,j=i(85072),F=i.n(j),Z=i(97825),Y=i.n(Z),G=i(77659),q=i.n(G),K=i(55056),X=i.n(K),U=i(10540),W=i.n(U),z=i(41113),$=i.n(z),J=i(8132),Q={};Q.styleTagTransform=$(),Q.setAttributes=X(),Q.insert=q().bind(null,"head"),Q.domAPI=Y(),Q.insertStyleElement=W(),F()(J.A,Q),J.A&&J.A.locals&&J.A.locals;const ee=!0===(null===(B=window)||void 0===B||null===(N=B.matchMedia)||void 0===N||null===(N=N.call(B,"(prefers-color-scheme: dark)"))||void 0===N?void 0:N.matches)||null!==document.querySelector("[data-themes*=dark]"),te=e=>void 0!==e.attributes.remote_id,ie=new r.hY({id:"sharing-status",displayName(e){var t,i,r;const a=e[0],s=Object.values((null==a||null===(t=a.attributes)||void 0===t?void 0:t["share-types"])||{}).flat(),l=null==a||null===(i=a.attributes)||void 0===i?void 0:i["owner-id"];return s.length>0||l!==(null===(r=(0,h.HW)())||void 0===r?void 0:r.uid)||te(a)?(0,n.Tl)("files_sharing","Shared"):""},title(e){var t,i,r,a,s;const l=e[0],o=null==l||null===(t=l.attributes)||void 0===t?void 0:t["owner-id"],d=null==l||null===(i=l.attributes)||void 0===i?void 0:i["owner-display-name"];return Array.isArray(null===(r=l.attributes)||void 0===r?void 0:r["share-types"])&&(null===(a=l.attributes)||void 0===a?void 0:a["share-types"].length)>1?(0,n.Tl)("files_sharing","Shared multiple times with different people"):o&&(o!==(null===(s=(0,h.HW)())||void 0===s?void 0:s.uid)||te(l))?(0,n.Tl)("files_sharing","Shared by {ownerDisplayName}",{ownerDisplayName:d}):(0,n.Tl)("files_sharing","Show sharing options")},iconSvgInline(e){var t,i,r,n,d;const p=e[0],c=Object.values((null==p||null===(t=p.attributes)||void 0===t?void 0:t["share-types"])||{}).flat();if(Array.isArray(null===(i=p.attributes)||void 0===i?void 0:i["share-types"])&&(null===(r=p.attributes)||void 0===r?void 0:r["share-types"].length)>1)return l;if(c.includes(a.Z.SHARE_TYPE_LINK)||c.includes(a.Z.SHARE_TYPE_EMAIL))return o;if(c.includes(a.Z.SHARE_TYPE_GROUP)||c.includes(a.Z.SHARE_TYPE_REMOTE_GROUP))return s;if(c.includes(a.Z.SHARE_TYPE_CIRCLE))return'';const g=null==p||null===(n=p.attributes)||void 0===n?void 0:n["owner-id"];return g&&(g!==(null===(d=(0,h.HW)())||void 0===d?void 0:d.uid)||te(p))?function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const i=ee?"/avatar/{userId}/32/dark":"/avatar/{userId}/32",r=(0,u.Jv)(t?i:i+"?guestFallback=true",{userId:e});return'')}(g,te(p)):l},enabled(e){var t,i,n;if(1!==e.length)return!1;const a=e[0],s=null==a||null===(t=a.attributes)||void 0===t?void 0:t["owner-id"],l=null===(i=a.attributes)||void 0===i?void 0:i["share-types"];return!!(Array.isArray(l)&&l.length>0)||!(!s||s===(null===(n=(0,h.HW)())||void 0===n?void 0:n.uid)&&!te(a))||0!=(a.permissions&r.aX.SHARE)},async exec(e,t,i){var n,a;return 0!=(e.permissions&r.aX.READ)?(null===(n=window.OCA)||void 0===n||null===(n=n.Files)||void 0===n||null===(n=n.Sidebar)||void 0===n||null===(a=n.setActiveTab)||void 0===a||a.call(n,"sharing"),k.exec(e,t,i)):null},inline:()=>!0});(0,r.Gg)(ie),(()=>{const e=(0,r.bh)();e.register(new r.Ss({id:y,name:(0,n.Tl)("files_sharing","Shares"),caption:(0,n.Tl)("files_sharing","Overview of shared files."),emptyTitle:(0,n.Tl)("files_sharing","No shares"),emptyCaption:(0,n.Tl)("files_sharing","Files and folders you shared or have been shared with you will show up here"),icon:l,order:20,columns:[],getContents:()=>m()})),e.register(new r.Ss({id:A,name:(0,n.Tl)("files_sharing","Shared with you"),caption:(0,n.Tl)("files_sharing","List of files that are shared with you."),emptyTitle:(0,n.Tl)("files_sharing","Nothing shared with you yet"),emptyCaption:(0,n.Tl)("files_sharing","Files and folders others shared with you will show up here"),icon:'',order:1,parent:y,columns:[],getContents:()=>m(!0,!1,!1,!1)})),e.register(new r.Ss({id:b,name:(0,n.Tl)("files_sharing","Shared with others"),caption:(0,n.Tl)("files_sharing","List of files that you shared with others."),emptyTitle:(0,n.Tl)("files_sharing","Nothing shared yet"),emptyCaption:(0,n.Tl)("files_sharing","Files and folders you shared will show up here"),icon:s,order:2,parent:y,columns:[],getContents:()=>m(!1,!0,!1,!1)})),e.register(new r.Ss({id:C,name:(0,n.Tl)("files_sharing","Shared by link"),caption:(0,n.Tl)("files_sharing","List of files that are shared by link."),emptyTitle:(0,n.Tl)("files_sharing","No shared links"),emptyCaption:(0,n.Tl)("files_sharing","Files and folders you shared by link will show up here"),icon:o,order:3,parent:y,columns:[],getContents:()=>m(!1,!0,!1,!1,[a.I.Link])})),e.register(new r.Ss({id:_,name:(0,n.Tl)("files_sharing","Deleted shares"),caption:(0,n.Tl)("files_sharing","List of shares you left."),emptyTitle:(0,n.Tl)("files_sharing","No deleted shares"),emptyCaption:(0,n.Tl)("files_sharing","Shares you have left will show up here"),icon:'',order:4,parent:y,columns:[],getContents:()=>m(!1,!1,!1,!0)})),e.register(new r.Ss({id:x,name:(0,n.Tl)("files_sharing","Pending shares"),caption:(0,n.Tl)("files_sharing","List of unapproved shares."),emptyTitle:(0,n.Tl)("files_sharing","No pending shares"),emptyCaption:(0,n.Tl)("files_sharing","Shares you have received but not approved will show up here"),icon:'',order:5,parent:y,columns:[],getContents:()=>m(!1,!1,!0,!1)}))})(),(0,r.zj)(H),(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"})},7145:(e,t,i)=>{i.d(t,{A:()=>n});var r=i(87485);class n{constructor(){var e,t,i;e=this,i=void 0,(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var r=i.call(e,"string");if("object"!=typeof r)return r;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(){var e;return null===(e=this._capabilities.files_sharing)||void 0===e?void 0:e.default_permissions}get isPublicUploadEnabled(){var e;return!0===(null===(e=this._capabilities.files_sharing)||void 0===e||null===(e=e.public)||void 0===e?void 0:e.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(){var e;return!0===(null===(e=this._capabilities)||void 0===e||null===(e=e.files_sharing)||void 0===e||null===(e=e.public)||void 0===e?void 0:e.enabled)}get isMailShareAllowed(){var e;return!0===(null===(e=this._capabilities)||void 0===e||null===(e=e.files_sharing)||void 0===e||null===(e=e.sharebymail)||void 0===e?void 0:e.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(){var e;return!0===(null===(e=this._capabilities.files_sharing)||void 0===e||null===(e=e.sharebymail)||void 0===e||null===(e=e.password)||void 0===e?void 0:e.enforced)}get shouldAlwaysShowUnique(){var e;return!0===(null===(e=this._capabilities.files_sharing)||void 0===e||null===(e=e.sharee)||void 0===e?void 0:e.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(){var e;return(null===(e=this._capabilities)||void 0===e?void 0:e.password_policy)||{}}}},62746:(e,t,i)=>{i.d(t,{A:()=>r});const r=(0,i(35947).YK)().setApp("files_sharing").detectUser().build()},8132:(e,t,i)=>{i.d(t,{A:()=>l});var r=i(71354),n=i.n(r),a=i(76314),s=i.n(a)()(n());s.push([e.id,".action-items>.files-list__row-action-sharing-status{direction:rtl;padding-right: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}","",{version:3,sources:["webpack://./apps/files_sharing/src/actions/sharingStatusAction.scss"],names:[],mappings:"AAKA,qDAEC,aAAA,CAEG,0BAAA,CAGJ,2BACC,sBAAA,CACA,qBAAA,CACA,0BAAA,CACA,yBAAA,CACA,kBAAA,CACA,eAAA",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 textless inline actions\n padding-right: 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"],sourceRoot:""}]);const l=s}},n={};function a(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={id:e,loaded:!1,exports:{}};return r[e].call(i.exports,i,i.exports,a),i.loaded=!0,i.exports}a.m=r,e=[],a.O=(t,i,r,n)=>{if(!i){var s=1/0;for(u=0;u=n)&&Object.keys(a.O).every((e=>a.O[e](i[o])))?i.splice(o--,1):(l=!1,n0&&e[u-1][2]>n;u--)e[u]=e[u-1];e[u]=[i,r,n]},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var i in t)a.o(t,i)&&!a.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((t,i)=>(a.f[i](e,t),t)),[])),a.u=e=>e+"-"+e+".js?v="+{857:"7e2e213ab986188c7a5e",4254:"5c2324570f66dff0c8a1",8832:"56acc30491a1240d3b59",9480:"f3ebcf41e93bbd8cd678"}[e],a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),t={},i="nextcloud:",a.l=(e,r,n,s)=>{if(t[e])t[e].push(r);else{var l,o;if(void 0!==n)for(var d=document.getElementsByTagName("script"),u=0;u{l.onerror=l.onload=null,clearTimeout(c);var n=t[e];if(delete t[e],l.parentNode&&l.parentNode.removeChild(l),n&&n.forEach((e=>e(r))),i)return i(r)},c=setTimeout(p.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=p.bind(null,l.onerror),l.onload=p.bind(null,l.onload),o&&document.head.appendChild(l)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),a.j=5928,(()=>{var e;a.g.importScripts&&(e=a.g.location+"");var t=a.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var i=t.getElementsByTagName("script");if(i.length)for(var r=i.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=i[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e})(),(()=>{a.b=document.baseURI||self.location.href;var e={5928:0};a.f.j=(t,i)=>{var r=a.o(e,t)?e[t]:void 0;if(0!==r)if(r)i.push(r[2]);else{var n=new Promise(((i,n)=>r=e[t]=[i,n]));i.push(r[2]=n);var s=a.p+a.u(t),l=new Error;a.l(s,(i=>{if(a.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var n=i&&("load"===i.type?"missing":i.type),s=i&&i.target&&i.target.src;l.message="Loading chunk "+t+" failed.\n("+n+": "+s+")",l.name="ChunkLoadError",l.type=n,l.request=s,r[1](l)}}),"chunk-"+t,t)}},a.O.j=t=>0===e[t];var t=(t,i)=>{var r,n,s=i[0],l=i[1],o=i[2],d=0;if(s.some((t=>0!==e[t]))){for(r in l)a.o(l,r)&&(a.m[r]=l[r]);if(o)var u=o(a)}for(t&&t(i);da(21302)));s=a.O(s)})(); +//# sourceMappingURL=files_sharing-init.js.map?v=3c77ac0e6f5da5c1af1f \ No newline at end of file -- cgit v1.2.3