mirror of
https://github.com/nextcloud/server.git
synced 2025-05-01 20:40:30 +00:00
3 lines
No EOL
20 KiB
JavaScript
3 lines
No EOL
20 KiB
JavaScript
/*! For license information please see files_sharing-init.js.LICENSE.txt */
|
|
(()=>{"use strict";var e,t,r,i={2890:(e,t,r)=>{var i=r(68251),s=r(53334),n=r(35810);const a='<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>',o='<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>',l='<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 d=r(63814),h=r(21777),p=r(65043),c=r(35947);const u=(0,c.YK)().setApp("files_sharing").detectUser().build(),g=`/files/${(0,h.HW)()?.uid}`,m={"Content-Type":"application/json"},w=async function(e){try{if(void 0!==e?.remote_id){if(!e.mimetype){const t=(await r.e(857).then(r.bind(r,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.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,i=!0===e?.has_preview,s=t?n.vd:n.ZH,a=e.file_source||e.file_id||e.id,o=e.path||e.file_target||e.name,l=(0,d.dC)(`dav/${g}/${o}`.replaceAll(/\/\//gm,"/"));let h,p=e.item_mtime?new Date(1e3*e.item_mtime):void 0;return e?.stime>(e?.item_mtime||0)&&(p=new Date(1e3*e.stime)),"share_with"in e&&(h={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:p,size:e?.item_size,permissions:e?.item_permissions||e?.permissions,root:g,attributes:{...e,"has-preview":i,"owner-id":e?.uid_owner,"owner-display-name":e?.displayname_owner,"share-types":e?.share_type,"share-attributes":e?.attributes||"[]",sharees:h,favorite:e?.tags?.includes(window.OC.TAG_FAVORITE)?1:0}})}catch(e){return u.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,d.KT)("apps/files_sharing/api/v1/shares");return p.Ay.get(t,{headers:m,params:{shared_with_me:e,include_tags:!0}})},v=async function(){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=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,d.KT)("apps/files_sharing/api/v1/remote_shares");return p.Ay.get(e,{headers:m,params:{include_tags:!0}})}()),e&&s.push(f()),t&&s.push(function(){const e=(0,d.KT)("apps/files_sharing/api/v1/shares/pending");return p.Ay.get(e,{headers:m,params:{include_tags:!0}})}(),function(){const e=(0,d.KT)("apps/files_sharing/api/v1/remote_shares/pending");return p.Ay.get(e,{headers:m,params:{include_tags:!0}})}()),r&&s.push(function(){const e=(0,d.KT)("apps/files_sharing/api/v1/deletedshares");return p.Ay.get(e,{headers:m,params:{include_tags:!0}})}());const a=(await Promise.all(s)).map((e=>e.data.ocs.data)).flat();let o=(await Promise.all(a.map(w))).filter((e=>null!==e));var l,c;return i.length>0&&(o=o.filter((e=>i.includes(e.attributes?.share_type)))),o=(l=o,c="source",Object.values(l.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 n.vd({id:0,source:(0,d.dC)("dav"+g),owner:(0,h.HW)()?.uid||null}),contents:o}},y="shareoverview",A="sharingin",_="sharingout",C="sharinglinks",b="deletedshares",x="pendingshares";var T=r(61338);const S=new n.hY({id:"accept-share",displayName:e=>(0,s.zw)("files_sharing","Accept share","Accept shares",e.length),iconSvgInline:()=>'<svg xmlns="http://www.w3.org/2000/svg" id="mdi-check" viewBox="0 0 24 24"><path d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z" /></svg>',enabled:(e,t)=>e.length>0&&t.id===x,async exec(e){try{const t=!!e.attributes.remote,r=(0,d.KT)("apps/files_sharing/api/v1/{shareBase}/pending/{id}",{shareBase:t?"remote_shares":"shares",id:e.attributes.id});return await p.Ay.post(r),(0,T.Ic)("files:node:deleted",e),!0}catch(e){return!1}},async execBatch(e,t,r){return Promise.all(e.map((e=>this.exec(e,t,r))))},order:1,inline:()=>!0});(0,n.Gg)(S);const H=new n.hY({id:"open-in-files",displayName:()=>(0,s.Tl)("files","Open in Files"),iconSvgInline:()=>"",enabled:(e,t)=>[y,A,_,C].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)(H);const L=new n.hY({id:"reject-share",displayName:e=>(0,s.zw)("files_sharing","Reject share","Reject shares",e.length),iconSvgInline:()=>'<svg xmlns="http://www.w3.org/2000/svg" id="mdi-close" viewBox="0 0 24 24"><path d="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z" /></svg>',enabled:(e,t)=>t.id===x&&0!==e.length&&!e.some((e=>e.attributes.remote_id&&e.attributes.share_type===window.OC.Share.SHARE_TYPE_REMOTE_GROUP)),async exec(e){try{const t=!!e.attributes.remote,r=(0,d.KT)("apps/files_sharing/api/v1/{shareBase}/{id}",{shareBase:t?"remote_shares":"shares",id:e.attributes.id});return await p.Ay.delete(r),(0,T.Ic)("files:node:deleted",e),!0}catch(e){return!1}},async execBatch(e,t,r){return Promise.all(e.map((e=>this.exec(e,t,r))))},order:2,inline:()=>!0});(0,n.Gg)(L);const O=new n.hY({id:"restore-share",displayName:e=>(0,s.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===b,async exec(e){try{const t=(0,d.KT)("apps/files_sharing/api/v1/deletedshares/{id}",{id:e.attributes.id});return await p.Ay.post(t),(0,T.Ic)("files:node:deleted",e),!0}catch(e){return!1}},async execBatch(e,t,r){return Promise.all(e.map((e=>this.exec(e,t,r))))},order:1,inline:()=>!0});(0,n.Gg)(O);var M=(e=>(e[e.User=0]="User",e[e.Group=1]="Group",e[e.Link=3]="Link",e[e.Email=4]="Email",e[e.Remote=6]="Remote",e[e.Team=7]="Team",e[e.Guest=8]="Guest",e[e.RemoteGroup=9]="RemoteGroup",e[e.Room=10]="Room",e[e.Deck=12]="Deck",e[e.FederatedGroup=14]="FederatedGroup",e[e.ScienceMesh=15]="ScienceMesh",e))(M||{}),V=r(49981);const k=(0,c.YK)().setApp("files").detectUser().build(),E=new n.hY({id:"details",displayName:()=>(0,s.Tl)("files","Open details"),iconSvgInline:()=>V,enabled:e=>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,r){try{return await window.OCA.Files.Sidebar.open(e.path),window.OCP.Files.Router.goToRoute(null,{view:t.id,fileid:e.fileid},{...window.OCP.Files.Router.query,dir:r},!0),null}catch(e){return k.error("Error while opening sidebar",{error:e}),!1}},order:-50});var N=r(85072),B=r.n(N),R=r(97825),P=r.n(R),G=r(77659),j=r.n(G),F=r(55056),I=r.n(F),D=r(10540),$=r.n(D),K=r(41113),Z=r.n(K),Y=r(8132),U={};U.styleTagTransform=Z(),U.setAttributes=I(),U.insert=j().bind(null,"head"),U.domAPI=P(),U.insertStyleElement=$(),B()(Y.A,U),Y.A&&Y.A.locals&&Y.A.locals;const W=e=>void 0!==e.attributes.remote_id,X=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,h.HW)()?.uid||W(t)?(0,s.t)("files_sharing","Shared"):""},title(e){const t=e[0];if(t.owner&&(t.owner!==(0,h.HW)()?.uid||W(t))){const e=t?.attributes?.["owner-display-name"];return(0,s.t)("files_sharing","Shared by {ownerDisplayName}",{ownerDisplayName:e})}if(Object.values(t?.attributes?.["share-types"]||{}).flat().length>1)return(0,s.t)("files_sharing","Shared multiple times with different people");const r=t.attributes.sharees?.sharee;if(!r)return(0,s.t)("files_sharing","Show sharing options");const i=[r].flat()[0];switch(i.type){case M.User:return(0,s.t)("files_sharing","Shared with {user}",{user:i["display-name"]});case M.Group:return(0,s.t)("files_sharing","Shared with group {group}",{group:i["display-name"]??i.id});default:return(0,s.t)("files_sharing","Shared with others")}},iconSvgInline(e){const t=e[0],r=Object.values(t?.attributes?.["share-types"]||{}).flat();return Array.isArray(t.attributes?.["share-types"])&&t.attributes?.["share-types"].length>1?o:r.includes(M.Link)||r.includes(M.Email)?l:r.includes(M.Group)||r.includes(M.RemoteGroup)?a:r.includes(M.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,h.HW)()?.uid||W(t))?function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const r=`${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,d.Jv)(r,{userId:e})}" height="32" width="32" />\n\t</svg>`}(t.owner,W(t)):o},enabled(e){if(1!==e.length)return!1;const t=e[0],r=t.attributes?.["share-types"];return!!(Array.isArray(r)&&r.length>0||t.owner!==(0,h.HW)()?.uid||W(t)||t.permissions&n.aX.SHARE)},exec:async(e,t,r)=>e.permissions&n.aX.READ?(window.OCA?.Files?.Sidebar?.setActiveTab?.("sharing"),E.exec(e,t,r)):null,inline:()=>!0});(0,n.Gg)(X),(()=>{const e=(0,n.bh)();e.register(new n.Ss({id:y,name:(0,s.Tl)("files_sharing","Shares"),caption:(0,s.Tl)("files_sharing","Overview of shared files."),emptyTitle:(0,s.Tl)("files_sharing","No shares"),emptyCaption:(0,s.Tl)("files_sharing","Files and folders you shared or have been shared with you will show up here"),icon:o,order:20,columns:[],getContents:()=>v()})),e.register(new n.Ss({id:A,name:(0,s.Tl)("files_sharing","Shared with you"),caption:(0,s.Tl)("files_sharing","List of files that are shared with you."),emptyTitle:(0,s.Tl)("files_sharing","Nothing shared with you yet"),emptyCaption:(0,s.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:y,columns:[],getContents:()=>v(!0,!1,!1,!1)})),e.register(new n.Ss({id:_,name:(0,s.Tl)("files_sharing","Shared with others"),caption:(0,s.Tl)("files_sharing","List of files that you shared with others."),emptyTitle:(0,s.Tl)("files_sharing","Nothing shared yet"),emptyCaption:(0,s.Tl)("files_sharing","Files and folders you shared will show up here"),icon:a,order:2,parent:y,columns:[],getContents:()=>v(!1,!0,!1,!1)})),e.register(new n.Ss({id:C,name:(0,s.Tl)("files_sharing","Shared by link"),caption:(0,s.Tl)("files_sharing","List of files that are shared by link."),emptyTitle:(0,s.Tl)("files_sharing","No shared links"),emptyCaption:(0,s.Tl)("files_sharing","Files and folders you shared by link will show up here"),icon:l,order:3,parent:y,columns:[],getContents:()=>v(!1,!0,!1,!1,[window.OC.Share.SHARE_TYPE_LINK])})),e.register(new n.Ss({id:b,name:(0,s.Tl)("files_sharing","Deleted shares"),caption:(0,s.Tl)("files_sharing","List of shares you left."),emptyTitle:(0,s.Tl)("files_sharing","No deleted shares"),emptyCaption:(0,s.Tl)("files_sharing","Shares you have left will show up here"),icon:'<svg xmlns="http://www.w3.org/2000/svg" id="mdi-delete" viewBox="0 0 24 24"><path d="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z" /></svg>',order:4,parent:y,columns:[],getContents:()=>v(!1,!1,!1,!0)})),e.register(new n.Ss({id:x,name:(0,s.Tl)("files_sharing","Pending shares"),caption:(0,s.Tl)("files_sharing","List of unapproved shares."),emptyTitle:(0,s.Tl)("files_sharing","No pending shares"),emptyCaption:(0,s.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:5,parent:y,columns:[],getContents:()=>v(!1,!1,!0,!1)}))})(),(0,i.i)("nc:sharees",{nc:"http://nextcloud.org/ns"}),(0,i.i)("nc:share-attributes",{nc:"http://nextcloud.org/ns"}),(0,i.i)("oc:share-types",{oc:"http://owncloud.org/ns"}),(0,i.i)("ocs:share-permissions",{ocs:"http://open-collaboration-services.org/ns"})},8132:(e,t,r)=>{r.d(t,{A:()=>o});var i=r(71354),s=r.n(i),n=r(76314),a=r.n(n)()(s());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/actions/sharingStatusAction.scss"],names:[],mappings:"AAMC,qDAEA,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\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}},s={};function n(e){var t=s[e];if(void 0!==t)return t.exports;var r=s[e]={id:e,loaded:!1,exports:{}};return i[e].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}n.m=i,e=[],n.O=(t,r,i,s)=>{if(!r){var a=1/0;for(h=0;h<e.length;h++){r=e[h][0],i=e[h][1],s=e[h][2];for(var o=!0,l=0;l<r.length;l++)(!1&s||a>=s)&&Object.keys(n.O).every((e=>n.O[e](r[l])))?r.splice(l--,1):(o=!1,s<a&&(a=s));if(o){e.splice(h--,1);var d=i();void 0!==d&&(t=d)}}return t}s=s||0;for(var h=e.length;h>0&&e[h-1][2]>s;h--)e[h]=e[h-1];e[h]=[r,i,s]},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((t,r)=>(n.f[r](e,t),t)),[])),n.u=e=>e+"-"+e+".js?v=89447025dfbc21bc3d51",n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),t={},r="nextcloud:",n.l=(e,i,s,a)=>{if(t[e])t[e].push(i);else{var o,l;if(void 0!==s)for(var d=document.getElementsByTagName("script"),h=0;h<d.length;h++){var p=d[h];if(p.getAttribute("src")==e||p.getAttribute("data-webpack")==r+s){o=p;break}}o||(l=!0,(o=document.createElement("script")).charset="utf-8",o.timeout=120,n.nc&&o.setAttribute("nonce",n.nc),o.setAttribute("data-webpack",r+s),o.src=e),t[e]=[i];var c=(r,i)=>{o.onerror=o.onload=null,clearTimeout(u);var s=t[e];if(delete t[e],o.parentNode&&o.parentNode.removeChild(o),s&&s.forEach((e=>e(i))),r)return r(i)},u=setTimeout(c.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=c.bind(null,o.onerror),o.onload=c.bind(null,o.onload),l&&document.head.appendChild(o)}},n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.j=5928,(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var i=r.length-1;i>-1&&(!e||!/^http(s?):/.test(e));)e=r[i--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})(),(()=>{n.b=document.baseURI||self.location.href;var e={5928:0};n.f.j=(t,r)=>{var i=n.o(e,t)?e[t]:void 0;if(0!==i)if(i)r.push(i[2]);else{var s=new Promise(((r,s)=>i=e[t]=[r,s]));r.push(i[2]=s);var a=n.p+n.u(t),o=new Error;n.l(a,(r=>{if(n.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var s=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;o.message="Loading chunk "+t+" failed.\n("+s+": "+a+")",o.name="ChunkLoadError",o.type=s,o.request=a,i[1](o)}}),"chunk-"+t,t)}},n.O.j=t=>0===e[t];var t=(t,r)=>{var i,s,a=r[0],o=r[1],l=r[2],d=0;if(a.some((t=>0!==e[t]))){for(i in o)n.o(o,i)&&(n.m[i]=o[i]);if(l)var h=l(n)}for(t&&t(r);d<a.length;d++)s=a[d],n.o(e,s)&&e[s]&&e[s][0](),e[s]=0;return n.O(h)},r=self.webpackChunknextcloud=self.webpackChunknextcloud||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),n.nc=void 0;var a=n.O(void 0,[4208],(()=>n(2890)));a=n.O(a)})();
|
|
//# sourceMappingURL=files_sharing-init.js.map?v=e7736051e4f55c8f5635
|