PageSourceSearch

https://cloud.schulverwalter.de/dist/core-files_client.js?v=69e0d851-0

js schulverwalter.de collected 2026-09-24 13:25:40 UTC 12,847 bytes, 2 lines download raw bytes

1(()=>{"use strict";var e={95780(e,t,s){var n=s(21777),i=s(70580),r=s.n(i),o=s(74692),a=s.n(o),c=s(36210),l=(s(27468),s(35947));const u=null===(p=(0,n.HW)())?(0,l.YK)().setApp("core").build():(0,l.YK)().setApp("core").setUid(p.uid).build();var p;(0,l.YK)().setApp("unified-search").detectUser().build(),function(e,t){const s=function(t){this._root=t.root,"/"===this._root.charAt(this._root.length-1)&&(this._root=this._root.substr(0,this._root.length-1));let n=s.PROTOCOL_HTTP+"://";t.useHTTPS&&(n=s.PROTOCOL_HTTPS+"://"),n+=t.host+this._root,this._host=t.host,this._defaultHeaders=t.defaultHeaders||{"X-Requested-With":"XMLHttpRequest",requesttoken:e.requestToken},this._baseUrl=n;const i={baseUrl:this._baseUrl,xmlNamespaces:{"DAV:":"d","http://owncloud.org/ns":"oc","http://nextcloud.org/ns":"nc","http://open-collaboration-services.org/ns":"ocs"}};t.userName&&(i.userName=t.userName),t.password&&(i.password=t.password),this._client=new dav.Client(i),this._client.xhrProvider=c.A.bind(this._xhrProvider,this),this._fileInfoParsers=[]};s.NS_OWNCLOUD="http://owncloud.org/ns",s.NS_NEXTCLOUD="http://nextcloud.org/ns",s.NS_DAV="DAV:",s.NS_OCS="http://open-collaboration-services.org/ns",s.PROPERTY_GETLASTMODIFIED="{"+s.NS_DAV+"}getlastmodified",s.PROPERTY_GETETAG="{"+s.NS_DAV+"}getetag",s.PROPERTY_GETCONTENTTYPE="{"+s.NS_DAV+"}getcontenttype",s.PROPERTY_RESOURCETYPE="{"+s.NS_DAV+"}resourcetype",s.PROPERTY_INTERNAL_FILEID="{"+s.NS_OWNCLOUD+"}fileid",s.PROPERTY_PERMISSIONS="{"+s.NS_OWNCLOUD+"}permissions",s.PROPERTY_SIZE="{"+s.NS_OWNCLOUD+"}size",s.PROPERTY_GETCONTENTLENGTH="{"+s.NS_DAV+"}getcontentlength",s.PROPERTY_ISENCRYPTED="{"+s.NS_DAV+"}is-encrypted",s.PROPERTY_SHARE_PERMISSIONS="{"+s.NS_OCS+"}share-permissions",s.PROPERTY_SHARE_ATTRIBUTES="{"+s.NS_NEXTCLOUD+"}share-attributes",s.PROPERTY_QUOTA_AVAILABLE_BYTES="{"+s.NS_DAV+"}quota-available-bytes",s.PROTOCOL_HTTP="http",s.PROTOCOL_HTTPS="https",s._PROPFIND_PROPERTIES=[[s.NS_DAV,"getlastmodified"],[s.NS_DAV,"getetag"],[s.NS_DAV,"getcontenttype"],[s.NS_DAV,"resourcetype"],[s.NS_OWNCLOUD,"fileid"],[s.NS_OWNCLOUD,"permissions"],[s.NS_OWNCLOUD,"size"],[s.NS_DAV,"getcontentlength"],[s.NS_DAV,"quota-available-bytes"],[s.NS_NEXTCLOUD,"has-preview"],[s.NS_NEXTCLOUD,"mount-type"],[s.NS_NEXTCLOUD,"is-encrypted"],[s.NS_OCS,"share-permissions"],[s.NS_NEXTCLOUD,"share-attributes"]],s.prototype={_root:null,_client:null,_fileInfoParsers:[],_xhrProvider:function(){const t=this._defaultHeaders,s=new XMLHttpRequest,n=s.open;return s.open=function(){const e=n.apply(this,arguments);return c.A.each(t,function(e,t){s.setRequestHeader(t,e)}),e},e.registerXHRForErrorProcessing(s),s},_buildUrl:function(){let e=this._buildPath.apply(this,arguments);return"/"===e.charAt([e.length-1])&&(e=e.substr(0,e.length-1)),"/"===e.charAt(0)&&(e=e.substr(1)),this._baseUrl+"/"+e},_buildPath:function(){let t=e.joinPaths.apply(this,arguments);const s=t.split("/");let n;for(n=0;n<s.length;n++)s[n]=encodeURIComponent(s[n]);return t=s.join("/"),t},_parseHeaders:function(e){const t=e.split("\n"),s={};for(let e=0;e<t.length;e++){const n=t[e].indexOf(":");if(n<0)continue;const i=t[e].substr(0,n),r=t[e].substr(n+2);s[i]||(s[i]=[]),s[i].push(r)}return s},_parseEtag:function(e){return'"'===e.charAt(0)?e.split('"')[1]:e},_parseFileInfo:function(n){let i=decodeURIComponent(n.href);if(i.substr(0,this._root.length)===this._root&&(i=i.substr(this._root.length)),"/"===i.charAt(i.length-1)&&(i=i.substr(0,i.length-1)),0===n.propStat.length||"HTTP/1.1 200 OK"!==n.propStat[0].status)return null;const r=n.propStat[0].properties,o={id:r[s.PROPERTY_INTERNAL_FILEID],path:e.dirname(i)||"/",name:e.basename(i),mtime:new Date(r[s.PROPERTY_GETLASTMODIFIED]).getTime()},a=r[s.PROPERTY_GETETAG];c.A.isUndefined(a)||(o.etag=this._parseEtag(a));let l=r[s.PROPERTY_GETCONTENTLENGTH];c.A.isUndefined(l)||(o.size=parseInt(l,10)),l=r[s.PROPERTY_SIZE],c.A.isUndefined(l)||(o.size=parseInt(l,10));const p=r["{"+s.NS_NEXTCLOUD+"}has-preview"];c.A.isUndefined(p)?o.hasPreview=!0:o.hasPreview="true"===p;const d=r["{"+s.NS_NEXTCLOUD+"}is-encrypted"];c.A.isUndefined(d)?o.isEncrypted=!1:o.isEncrypted="1"===d;const h=r["{"+s.NS_OWNCLOUD+"}favorite"];c.A.isUndefined(h)?o.isFavourited=!1:o.isFavourited="1"===h;const _=r[s.PROPERTY_GETCONTENTTYPE];c.A.isUndefined(_)||(o.mimetype=_);const f=r[s.PROPERTY_RESOURCETYPE];if(!o.mimetype&&f){const e=f[0];
1e.namespaceURI===s.NS_DAV&&"collection"===e.nodeName.split(":")[1]&&(o.mimetype="httpd/unix-directory")}o.permissions=e.PERMISSION_NONE;const S=r[s.PROPERTY_PERMISSIONS];if(!c.A.isUndefined(S)){const t=S||"";o.mountType=null;for(let s=0;s<t.length;s++)switch(t.charAt(s)){case"C":case"K":o.permissions|=e.PERMISSION_CREATE;break;case"G":o.permissions|=e.PERMISSION_READ;break;case"W":case"N":case"V":o.permissions|=e.PERMISSION_UPDATE;break;case"D":o.permissions|=e.PERMISSION_DELETE;break;case"R":o.permissions|=e.PERMISSION_SHARE;break;case"M":o.mountType||(o.mountType="external");break;case"S":o.mountType="shared"}}const P=r[s.PROPERTY_SHARE_PERMISSIONS];c.A.isUndefined(P)||(o.sharePermissions=parseInt(P));const E=r[s.PROPERTY_SHARE_ATTRIBUTES];if(c.A.isUndefined(E))o.shareAttributes=[];else try{o.shareAttributes=JSON.parse(E)}catch{u.warn('Could not parse share attributes returned by server: "'+E+'"'),o.shareAttributes=[]}const O=r["{"+s.NS_NEXTCLOUD+"}mount-type"];c.A.isUndefined(O)||(o.mountType=O);const T=r["{"+s.NS_DAV+"}quota-available-bytes"];return c.A.isUndefined(T)||(o.quotaAvailableBytes=T),c.A.each(this._fileInfoParsers,function(e){c.A.extend(o,e(n,o)||{})}),new t(o)},_parseResult:function(e){const t=this;return c.A.map(e,function(e){return t._parseFileInfo(e)})},_isSuccessStatus:function(e){return e>=200&&e<=299},_getSabreException:function(e){const t={},s=e.xhr.responseXML;if(null===s)return t;const n=s.getElementsByTagNameNS("http://sabredav.org/ns","message"),i=s.getElementsByTagNameNS("http://sabredav.org/ns","exception");return n.length&&(t.message=n[0].textContent),i.length&&(t.exception=i[0].textContent),t},getPropfindProperties:function(){return this._propfindProperties||(this._propfindProperties=c.A.map(s._PROPFIND_PROPERTIES,function(e){return"{"+e[0]+"}"+e[1]})),this._propfindProperties},getFolderContents:function(e,t){e||(e=""),t=t||{};const s=this,n=a().Deferred(),i=n.promise();let r;return r=c.A.isUndefined(t.properties)?this.getPropfindProperties():t.properties,this._client.propFind(this._buildUrl(e),r,1).then(function(e){if(s._isSuccessStatus(e.status)){const i=s._parseResult(e.body);t&&t.includeParent||i.shift(),n.resolve(e.status,i)}else e=c.A.extend(e,s._getSabreException(e)),n.reject(e.status,e)}),i},getFilteredFiles:function(e,t){t=t||{};const s=this,n=a().Deferred(),i=n.promise();let o;if(o=c.A.isUndefined(t.properties)?this.getPropfindProperties():t.properties,!e||!e.systemTagIds&&c.A.isUndefined(e.favorite)&&!e.circlesIds)throw"Missing filter argument";let l,u="<oc:filter-files ";for(l in this._client.xmlNamespaces)u+=" xmlns:"+this._client.xmlNamespaces[l]+'="'+l+'"';return u+=">\n",u+="    <"+this._client.xmlNamespaces["DAV:"]+":prop>\n",c.A.each(o,function(e){const t=s._client.parseClarkNotation(e);u+="        <"+s._client.xmlNamespaces[t.namespace]+":"+t.name+" />\n"}),u+="    </"+this._client.xmlNamespaces["DAV:"]+":prop>\n",u+="    <oc:filter-rules>\n",c.A.each(e.systemTagIds,function(e){u+="        <oc:systemtag>
1"+r()(e)+"</oc:systemtag>\n"}),c.A.each(e.circlesIds,function(e){u+="        <oc:circle>"+r()(e)+"</oc:circle>\n"}),e.favorite&&(u+="        <oc:favorite>"+(e.favorite?"1":"0")+"</oc:favorite>\n"),u+="    </oc:filter-rules>\n",u+="</oc:filter-files>\n",this._client.request("REPORT",this._buildUrl(),{},u).then(function(e){if(s._isSuccessStatus(e.status)){const t=s._parseResult(e.body);n.resolve(e.status,t)}else e=c.A.extend(e,s._getSabreException(e)),n.reject(e.status,e)}),i},getFileInfo:function(e,t){e||(e=""),t=t||{};const s=this,n=a().Deferred(),i=n.promise();let r;return r=c.A.isUndefined(t.properties)?this.getPropfindProperties():t.properties,this._client.propFind(this._buildUrl(e),r,0).then(function(e){s._isSuccessStatus(e.status)?n.resolve(e.status,s._parseResult([e.body])[0]):(e=c.A.extend(e,s._getSabreException(e)),n.reject(e.status,e))}),i},getFileContents:function(e){if(!e)throw'Missing argument "path"';const t=this,s=a().Deferred(),n=s.promise();return this._client.request("GET",this._buildUrl(e)).then(function(e){t._isSuccessStatus(e.status)?s.resolve(e.status,e.body):(e=c.A.extend(e,t._getSabreException(e)),s.reject(e.status,e))}),n},putFileContents:function(e,t,s){if(!e)throw'Missing argument "path"';const n=this,i=a().Deferred(),r=i.promise(),o={};let l="text/plain;charset=utf-8";return(s=s||{}).contentType&&(l=s.contentType),o["Content-Type"]=l,(c.A.isUndefined(s.overwrite)||s.overwrite)&&(o["If-None-Match"]="*"),this._client.request("PUT",this._buildUrl(e),o,t||"").then(function(e){n._isSuccessStatus(e.status)?i.resolve(e.status):(e=c.A.extend(e,n._getSabreException(e)),i.reject(e.status,e))}),r},_simpleCall:function(e,t,s){if(!t)throw'Missing argument "path"';const n=this,i=a().Deferred(),r=i.promise();return this._client.request(e,this._buildUrl(t),s||{}).then(function(e){n._isSuccessStatus(e.status)?i.resolve(e.status):(e=c.A.extend(e,n._getSabreException(e)),i.reject(e.status,e))}),r},createDirectory:function(e,t){return this._simpleCall("MKCOL",e,t)},remove:function(e){return this._simpleCall("DELETE",e)},move:function(e,t,s,n){if(!e)throw'Missing argument "path"';if(!t)throw'Missing argument "destinationPath"';const i=this,r=a().Deferred(),o=r.promise();return n=c.A.extend({},n,{Destination:this._buildUrl(t)}),s||(n.Overwrite="F"),this._client.request("MOVE",this._buildUrl(e),n).then(function(e){i._isSuccessStatus(e.status)?r.resolve(e.status):(e=c.A.extend(e,i._getSabreException(e)),r.reject(e.status,e))}),o},copy:function(e,t,s){if(!e)throw'Missing argument "path"';if(!t)throw'Missing argument "destinationPath"';const n=this,i=a().Deferred(),r=i.promise(),o={Destination:this._buildUrl(t)};return s||(o.Overwrite="F"),this._client.request("COPY",this._buildUrl(e),o).then(function(e){n._isSuccessStatus(e.status)?i.resolve(e.status):i.reject(e.status)}),r},addFileInfoParser:function(e){this._fileInfoParsers.push(e)},getClient:function(){return this._client},getUserName:function(){return this._client.userName},getPassword:function(){return this._client.password},getBaseUrl:function(){return this._client.baseUrl},getHost:function(){return this._host}},e.Files||(e.Files={}),e.Files.getClient=function(){if(e.Files._defaultClient)return e.Files._defaultClient;const t=new e.Files.Client({host:window.location.host,port:window.location.port,root:e.linkToRemoteBase("dav")+"/files/"+(0,n.HW)().uid,useHTTPS:window.location.protocol.startsWith("https")});return e.Files._defaultClient=t,t},e.Files.Client=s}(OC,OC.Files.FileInfo)}};const t={};function s(n){const i=t[n];if(void 0!==i)return i.exports;const r=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(r.exports,r,r.exports,s),r.loaded=!0,r.exports}s.m=e,(()=>{const e=[];s.O=(t,n,i,r)=>{if(n){r=r||0;for(var o=e.length;o>0&&e[o-1][2]>r;o--)e[o]=e[o-1];return void(e[o]=[n,i,r])}let a=1/0;for(o=0;o<e.length;o++){let[n,i,r]=e[o],l=!0;for(var c=0;c<n.length;c++)(!1&r||a>=r)&&Object.keys(s.O).every(e=>s.O[e](n[c]))?n.splice(c--,1):(l=!1,r<a&&(a=r));if(l){e.splice(o--,1);const s=i();void 0!==s&&(t=s)}}return t}})(),s.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{if(Array.isArray(t))for(var n=0;n<t.length;){var i=t[n++],r=t[n++];s.o(e,i)?0===r&&n++:0===r?Object.defineProperty(e,i,{enumerable:!0,value:t[n++]}):Object.defineProperty(e,i,{enumerable:!0,get:r})}else for(var i in t)s.o(t,i)&&!s.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},s.e=()=>Promise.resolve(),s.o=(e,t)=>Object.hasOwn(e,t),s.r=e=>{Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}
1),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),s.j=590,s.dn=e=>{var t=Object.getOwnPropertyDescriptor(e,"name");(!t||!t.writable&&t.configurable)&&Object.defineProperty(e,"name",{value:"default",configurable:!0})},s.cjs=e=>{const t={exports:{}};return e.call(t.exports,t,t.exports),t.exports},(()=>{s.b="undefined"!=typeof document&&document.baseURI||self.location.href;const e={590:0};s.O.j=t=>0===e[t];const t=(t,n)=>{let[i,r,o]=n;var a,c,l=0;if(i.some(t=>0!==e[t])){for(a in r)s.o(r,a)&&(s.m[a]=r[a]);if(o)var u=o(s)}for(t&&t(n);l<i.length;l++)c=i[l],s.o(e,c)&&e[c]&&e[c][0](),e[c]=0;return s.O(u)},n=globalThis.webpackChunknextcloud_ui_legacy||=[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),s.nc=void 0;let n=s.O(void 0,[4208],()=>s(95780));n=s.O(n)})();
2//# sourceMappingURL=core-files_client.js.map?v=8a1490d4d57eea7756f7

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.