nextcloud/dist/files_sharing-init-public.js
nextcloud-command 99a20afa8a chore(assets): Recompile assets
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2026-03-16 18:48:28 +00:00

2 lines
No EOL
20 KiB
JavaScript

(()=>{var e,t,r,i={84560(e,t,r){"use strict";r.d(t,{A:()=>i});const i=(0,r(35947).YK)().setApp("files").detectUser().build()},14668(e,t,r){"use strict";r.d(t,{h:()=>u});var i=r(77815),n=r(43627),o=r(84560),s=r(88975),a=r(88140),d=r(78246),l=r(99201),c=r(46502);async function u(e="/",t){const r=(0,d.j)((0,a.u)());return r.query.length<3?await async function(e,t){e=(0,n.join)((0,i.ei)(),e);const r=(0,i.aN)(),s=await l.S.getDirectoryContents(e,{details:!0,data:r,includeSelf:!0,signal:t?.signal}),a=s.data[0],d=s.data.slice(1);if(a?.filename!==e&&`${a?.filename}/`!==e)throw o.A.debug(`Exepected "${e}" but got filename "${a.filename}" instead.`),new Error("Root node does not match requested path");return{folder:(0,i.pO)(a),contents:d.map(e=>{try{return(0,i.pO)(e)}catch(t){return o.A.error(`Invalid node detected '${e.basename}'`,{error:t}),null}}).filter(Boolean)}}(e,t):await async function(e,t,r){let o=(0,s._)((0,a.u)()).getDirectoryByPath("files",e);if(!o){const t=(0,n.join)((0,i.ei)(),e),r=await l.S.stat(t,{details:!0});o=(0,i.pO)(r.data)}return{folder:o,contents:await(0,c.E)(t,{dir:e,signal:r})}}(e,r.query,t?.signal)}},46502(e,t,r){"use strict";r.d(t,{E:()=>d});var i=r(21777),n=r(77815),o=r(63814),s=r(84560),a=r(99201);async function d(e,{dir:t,signal:r}){const d=(0,i.HW)();if(!d)return[];if((e=e.trim()).length<3)return[];t&&!t.startsWith("/")&&(t=`/${t}`),s.A.debug("Searching for nodes",{query:e,dir:t});const{data:l}=await a.S.search("/",{details:!0,signal:r,data:`\n<d:searchrequest ${(0,n.CP)()}>\n\t <d:basicsearch>\n\t\t <d:select>\n\t\t\t <d:prop>\n\t\t\t ${(0,n.VX)()}\n\t\t\t </d:prop>\n\t\t </d:select>\n\t\t <d:from>\n\t\t\t <d:scope>\n\t\t\t\t <d:href>/files/${d.uid}${t||""}</d:href>\n\t\t\t\t <d:depth>infinity</d:depth>\n\t\t\t </d:scope>\n\t\t </d:from>\n\t\t <d:where>\n\t\t\t <d:like>\n\t\t\t\t <d:prop>\n\t\t\t\t\t <d:displayname/>\n\t\t\t\t </d:prop>\n\t\t\t\t <d:literal>%${e.replace("%","")}%</d:literal>\n\t\t\t </d:like>\n\t\t </d:where>\n\t\t <d:orderby/>\n\t</d:basicsearch>\n</d:searchrequest>`});return r?.aborted?[]:l.results.map(e=>(0,n.pO)(e,n.VA,(0,o.$_)()))}},99201(e,t,r){"use strict";r.d(t,{S:()=>n,t:()=>o});var i=r(77815);const n=(0,i.KU)();async function o(e){const t=(0,i.aN)(),r=await n.stat(`${(0,i.ei)()}${e}`,{details:!0,data:t});return(0,i.pO)(r.data)}},39992(e,t,r){"use strict";var i=r(21777),n=r(61338),o=r(35810),s=r(77815),a=r(10810),d=r(85471),l=r(84560);const c=new o.vd({id:0,source:(0,s.EY)()+(0,s.ei)(),root:(0,s.ei)(),owner:(0,i.HW)()?.uid||null,permissions:o.aX.NONE});(0,a.nY)("active",()=>{const e=(0,d.IJ)(),t=(0,d.KR)(),r=(0,d.IJ)(),i=(0,d.KR)(c);function s(e){t.value&&t.value.source===e.source&&(t.value=void 0)}function a(e=null){l.A.debug("Setting active view",{view:e}),r.value=e??void 0,t.value=void 0}return(0,d.wB)(t,()=>{"number"==typeof t.value?.fileid&&t.value.fileid!==i.value?.fileid&&(l.A.debug("Updating active fileid in URL query",{fileid:t.value.fileid}),window.OCP.Files.Router.goToRoute(null,{...window.OCP.Files.Router.params,fileid:String(t.value.fileid)},{...window.OCP.Files.Router.query},!0))}),function(){const e=(0,o.bh)();a(e.active),(0,n.B1)("files:node:deleted",s),e.addEventListener("updateActive",e=>{a(e.detail)})}(),{activeAction:e,activeFolder:i,activeNode:t,activeView:r}})},88975(e,t,r){"use strict";r.d(t,{_:()=>l});var i=r(61338),n=r(10810),o=r(85471),s=r(84560),a=r(99201),d=r(16488);const l=(0,n.nY)("files",()=>{const e=(0,o.KR)({}),t=(0,o.KR)({});function r(t){return e.value[t]}function n(t){return t.map(t=>e.value[t]).filter(Boolean)}function l(t){return Object.values(e.value).filter(e=>e.id===t)}function c(e){return t.value[e]}function u(e,t){const i=(0,d.B)();let n;if(t&&"/"!==t){const o=i.getPath(e,t);o&&(n=r(o))}else n=c(e);return n}function p(t){const r=t.reduce((t,r)=>e.value[r.source]?.id&&!r.id?(s.A.error("Trying to update/set a node without id",{node:r}),t):(t[r.source]=r,t),{});e.value={...e.value,...r}}function f(t){const r=Object.entries(e.value).filter(([,e])=>!t.some(t=>t.source===e.source));e.value=Object.fromEntries(r)}return(0,i.B1)("files:node:created",function(e){p([e])}),(0,i.B1)("files:node:deleted",function(e){f([e])}),(0,i.B1)("files:node:updated",async function(e){const t=e.id?l(e.id):n([e.source]);if(t.length>1)return await Promise.all(t.map(e=>(0,a.t)(e.path))).then(p),void s.A.debug(t.length+" nodes updated in store",{fileid:e.id,source:e.source});1!==t.length||e.source!==t[0].source?(0,a.t)(e.path).then(e=>p([e])):p([e])}),(0,i.B1)("files:node:moved",function({node:t,oldSource:r}){delete e.value[r],p([t])}),(0,i.B1)("files:favorites:added",function(e){const t=r(e.source);t&&o.Ay.set(t.attributes,"favorite",1)}),(0,i.B1)("files:favorites:removed",function(e){const t=r(e.source);t&&o.Ay.set(t.attributes,"favorite",0)}),{files:e,roots:t,deleteNodes:f,getDirectoryByPath:u,getNode:r,getNodes:n,getNodesById:l,getNodesByPath:function(e,t){const i=u(e,t);return(i?._children??[]).map(e=>r(e)).filter(Boolean)},getRoot:c,setRoot:function({service:e,root:r}){t.value={...t.value,[e]:r}},updateNodes:p}})},88140(e,t,r){"use strict";r.d(t,{u:()=>n});var i=r(10810);function n(){return window._nc_files_pinia||(window._nc_files_pinia=(0,i.Ey)()),window._nc_files_pinia}},16488(e,t,r){"use strict";r.d(t,{B:()=>c});var i=r(61338),n=r(35810),o=r(71225),s=r(10810),a=r(85471),d=r(84560),l=r(88975);function c(...e){const t=(0,l._)(...e),r=(0,s.nY)("paths",{state:()=>({paths:{}}),getters:{getPath:e=>(t,r)=>{if(e.paths[t])return e.paths[t][r]}},actions:{addPath(e){this.paths[e.service]||a.Ay.set(this.paths,e.service,{}),a.Ay.set(this.paths[e.service],e.path,e.source)},deletePath(e,t){this.paths[e]&&a.Ay.delete(this.paths[e],t)},onCreatedNode(e){const t=(0,n.bh)()?.active?.id||"files";e.fileid?(e.type===n.pt.Folder&&this.addPath({service:t,path:e.path,source:e.source}),this.addNodeToParentChildren(e)):d.A.error("Node has no fileid",{node:e})},onDeletedNode(e){const t=(0,n.bh)()?.active?.id||"files";e.type===n.pt.Folder&&this.deletePath(t,e.path),this.deleteNodeFromParentChildren(e)},onMovedNode({node:e,oldSource:t}){const r=(0,n.bh)()?.active?.id||"files";if(e.type===n.pt.Folder){const i=Object.entries(this.paths[r]).find(([,e])=>e===t);i?.[0]&&this.deletePath(r,i[0]),this.addPath({service:r,path:e.path,source:e.source})}const i=new n.ZH({source:t,owner:e.owner,mime:e.mime,root:e.root});this.deleteNodeFromParentChildren(i),this.addNodeToParentChildren(e)},deleteNodeFromParentChildren(e){const r=(0,n.bh)()?.active?.id||"files",i=(0,o.pD)(e.source),s="/"===e.dirname?t.getRoot(r):t.getNode(i);if(s){const t=new Set(s._children??[]);return t.delete(e.source),a.Ay.set(s,"_children",[...t.values()]),void d.A.debug("Children updated",{parent:s,node:e,children:s._children})}d.A.debug("Parent path does not exists, skipping children update",{node:e})},addNodeToParentChildren(e){const r=(0,n.bh)()?.active?.id||"files",i=(0,o.pD)(e.source),s="/"===e.dirname?t.getRoot(r):t.getNode(i);if(s){const t=new Set(s._children??[]);return t.add(e.source),a.Ay.set(s,"_children",[...t.values()]),void d.A.debug("Children updated",{parent:s,node:e,children:s._children})}d.A.debug("Parent path does not exists, skipping children update",{node:e})}}})(...e);return r._initialized||((0,i.B1)("files:node:created",r.onCreatedNode),(0,i.B1)("files:node:deleted",r.onDeletedNode),(0,i.B1)("files:node:moved",r.onMovedNode),r._initialized=!0),r}},78246(e,t,r){"use strict";r.d(t,{j:()=>l});var i=r(61338),n=r(46855),o=r(10810),s=r(85471),a=r(84560),d=r(37365);const l=(0,o.nY)("search",()=>{const e=(0,s.KR)(""),t=(0,s.KR)("filter");(0,s.wB)(t,o),(0,s.wB)(e,(e,t)=>{e.trim()!==t.trim()&&o()}),function(){(0,i.B1)("files:navigation:changed",l);const r=window.OCP.Files.Router;r.params.view===d.w&&(e.value=[r.query.query].flat()[0]??"",e.value?(t.value="globally",a.A.debug("Directly navigated to search view",{query:e.value})):(a.A.info("Directly navigated to search view without any query, redirect to files view."),r.goToRoute(void 0,{...r.params,view:"files"},{...r.query,query:void 0},!0)))}();const r=(0,n.A)(t=>{window.OCP.Files.Router.goToRoute(void 0,{view:d.w},{query:e.value},t)});function o(){(0,i.Ic)("files:search:updated",{query:e.value,scope:t.value});const n=window.OCP.Files.Router;if(n.params.view===d.w&&(""===e.value||"filter"===t.value))return t.value="filter",n.goToRoute(void 0,{view:"files"},{...n.query,query:void 0});if("filter"===t.value||!e.value)return;const o=n.params.view===d.w;a.A.debug("Update route for updated search query",{query:e.value,isSearch:o}),r(o)}function l(r){r.id!==d.w&&(e.value="",t.value="filter")}return{query:e,scope:t}})},66480(e,t,r){"use strict";r(43690),r(61338),r(35810),r(53334),r(14668),r(39992)},37365(e,t,r){"use strict";r.d(t,{w:()=>i}),r(35810),r(53334),r(21777),r(77815),r(84560),r(78246),r(46502),r(66480);const i="search"},85908(e,t,r){"use strict";var i=r(61338),n=r(35810),o=r(81222);var s=r(77815),a=r(53334),d=r(85471);const 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 c=r(99201);const u=(0,r(35947).YK)().setApp("files_sharing").detectUser().build();var p=r(14668),f=r(63814),h=r(82490),v=r(40173);const g=(0,o.C)("files_sharing","view"),m=(0,o.C)("files_sharing","sharingToken");d.Ay.use(v.Ay);const w=v.Ay.prototype.push;v.Ay.prototype.push=function(...e){return e.length>1?w.call(this,...e):w.call(this,e[0]).catch(b)};const y=v.Ay.prototype.replace;function b(e){if(!(0,v.Pq)(e,v.$c.duplicated))throw e;u.debug("Ignoring duplicated navigation from vue-router",{error:e})}v.Ay.prototype.replace=function(...e){return e.length>1?y.call(this,...e):y.call(this,e[0]).catch(b)};const A=new v.Ay({mode:"history",base:(0,f.Jv)("/s"),linkActiveClass:"active",routes:[{path:"/",redirect:{name:"filelist",params:{view:g,token:m}}},{path:"/:token",name:"filelist",props:!0}],stringifyQuery(e){const t=h.A.stringify(e).replace(/%2F/gim,"/");return t?"?"+t:""}});(()=>{const e=(0,o.C)("files_sharing","filename");let t,i;const l=new n.Ss({id:"public-file-drop",name:(0,a.Tl)("files_sharing","File drop"),caption:(0,a.Tl)("files_sharing","Upload files to {foldername}",{foldername:e}),icon:'<svg xmlns="http://www.w3.org/2000/svg" id="mdi-cloud-upload" viewBox="0 0 24 24"><path d="M11 20H6.5Q4.22 20 2.61 18.43 1 16.85 1 14.58 1 12.63 2.17 11.1 3.35 9.57 5.25 9.15 5.88 6.85 7.75 5.43 9.63 4 12 4 14.93 4 16.96 6.04 19 8.07 19 11 20.73 11.2 21.86 12.5 23 13.78 23 15.5 23 17.38 21.69 18.69 20.38 20 18.5 20H13V12.85L14.6 14.4L16 13L12 9L8 13L9.4 14.4L11 12.85Z" /></svg>',order:1,emptyView:async n=>{if(void 0===t){const{default:e}=await Promise.all([r.e(4208),r.e(8192)]).then(r.bind(r,28192));t=d.Ay.extend(e)}i&&i.$destroy(),i=new t({propsData:{foldername:e}}),i.$mount(n)},getContents:async()=>({contents:[],folder:new n.vd({id:0,source:`${s.Xn}${s.VA}`,root:s.VA,owner:null,permissions:n.aX.CREATE})})});(0,n.bh)().register(l)})(),(()=>{const e=new n.Ss({id:"public-share",name:(0,a.Tl)("files_sharing","Public share"),caption:(0,a.Tl)("files_sharing","Publicly shared files."),emptyTitle:(0,a.Tl)("files_sharing","No files"),emptyCaption:(0,a.Tl)("files_sharing","Files and folders shared with you will show up here"),icon:l,order:1,getContents:p.h});(0,n.bh)().register(e)})(),(()=>{const e=new n.Ss({id:"public-file-share",name:(0,a.Tl)("files_sharing","Public file share"),caption:(0,a.Tl)("files_sharing","Publicly shared file."),emptyTitle:(0,a.Tl)("files_sharing","No file"),emptyCaption:(0,a.Tl)("files_sharing","The file shared with you will show up here"),icon:l,order:1,getContents:async(e,{signal:t})=>{try{const e=await c.S.stat((0,s.ei)(),{data:(0,s.aN)(),details:!0,signal:t});return{contents:[(0,s.pO)(e.data)],folder:new n.vd({id:0,source:`${(0,s.EY)()}${(0,s.ei)()}`,root:(0,s.ei)(),owner:null,permissions:n.aX.READ,attributes:{note:e.data.props?.note}})}}catch(e){if(t.aborted)throw u.info("Fetching contents for public file share was aborted",{error:e}),new DOMException("Aborted","AbortError");throw u.error("Failed to get contents for public file share",{error:e}),e}}});(0,n.bh)().register(e)})();const P=(0,o.C)("files_sharing","view"),C=(0,n.bh)();try{C.setActive(P)}catch{C.setActive(null)}window.OCP.Files=window.OCP.Files??{},window.OCP.Files.Router=new class{constructor(e){var t,r,i;t=this,i=void 0,(r=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.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+""}(r="router"))in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,this.router=e}get name(){return this.router.currentRoute.name}get query(){return this.router.currentRoute.query||{}}get params(){return this.router.currentRoute.params||{}}get _router(){return this.router}goTo(e,t=!1){return this.router.push({path:e,replace:t})}goToRoute(e,t,r,i){e??=this.router.currentRoute.name;const n={name:e,query:r,params:t};return i?this._router.replace(n):this._router.push(n)}}(A);const _=(0,o.C)("files_sharing","fileId",null),N=(0,o.C)("files_sharing","sharingToken");null!==_&&window.OCP.Files.Router.goToRoute("filelist",{...window.OCP.Files.Router.params,token:N,fileid:String(_)},{...window.OCP.Files.Router.query,openfile:"true"}),(0,i.B1)("files:list:updated",function e({folder:t}){if((0,i.al)("files:list:updated",e),t.attributes["share-attributes"]){const e=JSON.parse(t.attributes["share-attributes"]||"[]").find(({scope:e,key:t})=>"config"===e&&"grid_view"===t);void 0!==e&&(u.debug("Loading share attributes",{gridViewAttribute:e}),(0,i.Ic)("files:config:updated",{key:"grid_view",value:!0===e.value}))}})},43690(e){"use strict";e.exports='<svg xmlns="http://www.w3.org/2000/svg" id="mdi-folder-outline" viewBox="0 0 24 24"><path d="M20,18H4V8H20M20,6H12L10,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,6Z" /></svg>'},63779(){},77199(){},77815(e,t,r){"use strict";r.d(t,{CP:()=>u,EY:()=>v,KU:()=>m,VA:()=>h,VX:()=>c,Xn:()=>g,aN:()=>p,ei:()=>f,pO:()=>w});var i=r(21777),n=r(63814),o=r(9487),s=r(44719),a=r(70970);const d=["d:getcontentlength","d:getcontenttype","d:getetag","d:getlastmodified","d:creationdate","d:displayname","d:quota-available-bytes","d:resourcetype","nc:has-preview","nc:is-encrypted","nc:mount-type","oc:comments-unread","oc:favorite","oc:fileid","oc:owner-display-name","oc:owner-id","oc:permissions","oc:size"],l={d:"DAV:",nc:"http://nextcloud.org/ns",oc:"http://owncloud.org/ns",ocs:"http://open-collaboration-services.org/ns"};function c(){return a.s.davProperties??=[...d],a.s.davProperties.map(e=>`<${e} />`).join(" ")}function u(){return a.s.davNamespaces??={...l},Object.keys(a.s.davNamespaces).map(e=>`xmlns:${e}="${a.s.davNamespaces?.[e]}"`).join(" ")}function p(){return`<?xml version="1.0"?>\n\t\t<d:propfind ${u()}>\n\t\t\t<d:prop>\n\t\t\t\t${c()}\n\t\t\t</d:prop>\n\t\t</d:propfind>`}function f(){return(0,o.f)()?`/files/${(0,o.G)()}`:`/files/${(0,i.HW)()?.uid}`}const h=f();function v(){const e=(0,n.dC)("dav");return(0,o.f)()?e.replace("remote.php","public.php"):e}const g=v();function m(e=g,t={}){const r=(0,s.UU)(e,{headers:t});function n(e){r.setHeaders({...t,"X-Requested-With":"XMLHttpRequest",requesttoken:e??""})}return(0,i.zo)(n),n((0,i.do)()),(0,s.Gu)().patch("fetch",(e,t)=>{const r=t.headers;return r?.method&&(t.method=r.method,delete r.method),fetch(e,t)}),r}function w(e,t=h,r=g){let n=(0,i.HW)()?.uid;if((0,o.f)())n=n??"anonymous";else if(!n)throw new Error("No user id found");const s=e.props,d=function(e=""){let t=a.P.NONE;return e?(e.includes("G")&&(t|=a.P.READ),e.includes("W")&&(t|=a.P.WRITE),e.includes("CK")&&(t|=a.P.CREATE),e.includes("NV")&&(t|=a.P.UPDATE),e.includes("D")&&(t|=a.P.DELETE),e.includes("R")&&(t|=a.P.SHARE),t):t}(s?.permissions),l=String(s?.["owner-id"]||n),c=s.fileid||0,u=new Date(Date.parse(e.lastmod)),p=new Date(Date.parse(s.creationdate)),f={id:c,source:`${r}${e.filename}`,mtime:isNaN(u.getTime())||0===u.getTime()?void 0:u,crtime:isNaN(p.getTime())||0===p.getTime()?void 0:p,mime:e.mime||"application/octet-stream",displayname:void 0!==s.displayname?String(s.displayname):void 0,size:s?.size||Number.parseInt(s.getcontentlength||"0"),status:c<0?a.c.FAILED:void 0,permissions:d,owner:l,root:t,attributes:{...e,...s,hasPreview:s?.["has-preview"]}};return delete f.attributes?.props,"file"===e.type?new a.a(f):new a.b(f)}}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var r=n[e]={id:e,loaded:!1,exports:{}};return i[e].call(r.exports,r,r.exports,o),r.loaded=!0,r.exports}o.m=i,e=[],o.O=(t,r,i,n)=>{if(!r){var s=1/0;for(c=0;c<e.length;c++){for(var[r,i,n]=e[c],a=!0,d=0;d<r.length;d++)(!1&n||s>=n)&&Object.keys(o.O).every(e=>o.O[e](r[d]))?r.splice(d--,1):(a=!1,n<s&&(s=n));if(a){e.splice(c--,1);var l=i();void 0!==l&&(t=l)}}return t}n=n||0;for(var c=e.length;c>0&&e[c-1][2]>n;c--)e[c]=e[c-1];e[c]=[r,i,n]},o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce((t,r)=>(o.f[r](e,t),t),[])),o.u=e=>e+"-"+e+".js?v="+{1035:"da08d310d18692ca4e27",1764:"3654558a3474ec02b609",2457:"ce6348bfa704a5bf56fb",4271:"101cdb0f1357424796fd",6798:"1a6cf42d93801a926a3d",7471:"b4ac70873a3ab192efd0",8192:"a4fef9d0956ec0fb1edc",9281:"29ef7f217a0c6b239922",9906:"7304d0da95152b604642"}[e],o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),t={},r="nextcloud-ui-legacy:",o.l=(e,i,n,s)=>{if(t[e])t[e].push(i);else{var a,d;if(void 0!==n)for(var l=document.getElementsByTagName("script"),c=0;c<l.length;c++){var u=l[c];if(u.getAttribute("src")==e||u.getAttribute("data-webpack")==r+n){a=u;break}}a||(d=!0,(a=document.createElement("script")).charset="utf-8",o.nc&&a.setAttribute("nonce",o.nc),a.setAttribute("data-webpack",r+n),a.src=e),t[e]=[i];var p=(r,i)=>{a.onerror=a.onload=null,clearTimeout(f);var n=t[e];if(delete t[e],a.parentNode&&a.parentNode.removeChild(a),n&&n.forEach(e=>e(i)),r)return r(i)},f=setTimeout(p.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=p.bind(null,a.onerror),a.onload=p.bind(null,a.onload),d&&document.head.appendChild(a)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),o.j=5102,(()=>{var e;globalThis.importScripts&&(e=globalThis.location+"");var t=globalThis.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(/\/[^\/]+$/,"/"),o.p=e})(),(()=>{o.b="undefined"!=typeof document&&document.baseURI||self.location.href;var e={5102:0};o.f.j=(t,r)=>{var i=o.o(e,t)?e[t]:void 0;if(0!==i)if(i)r.push(i[2]);else{var n=new Promise((r,n)=>i=e[t]=[r,n]);r.push(i[2]=n);var s=o.p+o.u(t),a=new Error;o.l(s,r=>{if(o.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var n=r&&("load"===r.type?"missing":r.type),s=r&&r.target&&r.target.src;a.message="Loading chunk "+t+" failed.\n("+n+": "+s+")",a.name="ChunkLoadError",a.type=n,a.request=s,i[1](a)}},"chunk-"+t,t)}},o.O.j=t=>0===e[t];var t=(t,r)=>{var i,n,[s,a,d]=r,l=0;if(s.some(t=>0!==e[t])){for(i in a)o.o(a,i)&&(o.m[i]=a[i]);if(d)var c=d(o)}for(t&&t(r);l<s.length;l++)n=s[l],o.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return o.O(c)},r=globalThis.webpackChunknextcloud_ui_legacy=globalThis.webpackChunknextcloud_ui_legacy||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),o.nc=void 0;var s=o.O(void 0,[4208],()=>o(85908));s=o.O(s)})();
//# sourceMappingURL=files_sharing-init-public.js.map?v=1563d4d8c19883b1d8d5