nextcloud/core/js/dist/files_client.js

65 lines
128 KiB
JavaScript
Raw Normal View History

!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=703)}({0:function(e,t,n){var r;
/*!
* jQuery JavaScript Library v3.3.1
* https://jquery.com/
*
* Includes Sizzle.js
* https://sizzlejs.com/
*
* Copyright JS Foundation and other contributors
* Released under the MIT license
* https://jquery.org/license
*
* Date: 2018-01-20T17:24Z
*/!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,(function(n,i){"use strict";var o=[],u=n.document,a=Object.getPrototypeOf,s=o.slice,c=o.concat,f=o.push,l=o.indexOf,d={},p=d.toString,h=d.hasOwnProperty,g=h.toString,v=g.call(Object),y={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},b=function(e){return null!=e&&e===e.window},x={type:!0,src:!0,noModule:!0};function w(e,t,n){var r,i=(t=t||u).createElement("script");if(i.text=e,n)for(r in x)n[r]&&(i[r]=n[r]);t.head.appendChild(i).parentNode.removeChild(i)}function T(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[p.call(e)]||"object":typeof e}var S=function(e,t){return new S.fn.init(e,t)},E=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function N(e){var t=!!e&&"length"in e&&e.length,n=T(e);return!m(e)&&!b(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}S.fn=S.prototype={jquery:"3.3.1",constructor:S,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=S.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return S.each(this,e)},map:function(e){return this.pushStack(S.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:f,sort:o.sort,splice:o.splice},S.extend=S.fn.extend=function(){var e,t,n,r,i,o,u=arguments[0]||{},a=1,s=arguments.length,c=!1;for("boolean"==typeof u&&(c=u,u=arguments[a]||{},a++),"object"==typeof u||m(u)||(u={}),a===s&&(u=this,a--);a<s;a++)if(null!=(e=arguments[a]))for(t in e)n=u[t],u!==(r=e[t])&&(c&&r&&(S.isPlainObject(r)||(i=Array.isArray(r)))?(i?(i=!1,o=n&&Array.isArray(n)?n:[]):o=n&&S.isPlainObject(n)?n:{},u[t]=S.extend(c,o,r)):void 0!==r&&(u[t]=r));return u},S.extend({expando:"jQuery"+("3.3.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==p.call(e))&&(!(t=a(e))||"function"==typeof(n=h.call(t,"constructor")&&t.constructor)&&g.call(n)===v)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e){w(e)},each:function(e,t){var n,r=0;if(N(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},trim:function(e){return null==e?"":(e+"").replace(E,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(N(Object(e))?S.merge(n,"string"==typeof e?[e]:e):f.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:l.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,u=!n;i<o;i++)!t(e[i],i)!==u&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,u=[];if(N(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&u.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&u.push(i);return c.apply([],u)},guid:1,support:y}),"function"==typeof Symbol&&(S.fn[Symbol.iterator]=o[Symbol.iterator]),S.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){d["[object "+t+"]"]=t.toLowerCase()}));var C=
/*!
* Sizzle CSS Selector Engine v2.3.3
* https://sizzlejs.com/
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2016-08-08
*/
function(e){var t,n,r,i,o,u,a,s,c,f,l,d,p,h,g,v,y,m,b,x="sizzle"+1*new Date,w=e.document,T=0,S=0,E=ue(),N=ue(),C=ue(),_=function(e,t){return e===t&&(l=!0),0},A={}.hasOwnProperty,D=[],O=D.pop,j=D.push,P=D.push,k=D.slice,R=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},L="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",q="[\\x20\\t\\r\\n\\f]",I="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",M="\\["+q+"*("+I+")(?:"+q+"*([*^$|!~]?=)"+q+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+I+"))|)"+q+"*\\]",H=":("+I+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+M+")*)|.*)\\)|)",F=new RegExp(q+"+","g"),U=new RegExp("^"+q+"+|((?:^|[^\\\\])(?:\\\\.)*)"+q+"+$","g"),B=new RegExp("^"+q+"*,"+q+"*"),W=new RegExp("^"+q+"*([>+~]|"+q+")"+q+"*"),$=new RegExp("="+q+"*([^\\]'\"]*?)"+q+"*\\]","g"),V=new RegExp(H),z=new RegExp("^"+I+"$"),Y={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+M),PSEUDO:new RegExp("^"+H),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+q+"*(even|odd|(([+-]|)(\\d*)n|)"+q+"*(?:([+-]|)"+q+"*(\\d+)|))"+q+"*\\)|)","i"),bool:new RegExp("^(?:"+L+")$","i"),needsContext:new RegExp("^"+q+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+q+"*((?:-\\d)?\\d*)"+q+"*\\)|)(?=[^-]|$)","i")},X=/^(?:input|select|textarea|button)$/i,G=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,J=/[+~]/,Z=new RegExp("\\\\([\\da-f]{1,6}"+q+"?|("+q+")|.)","ig"),ee=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},te=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ne=function(e,t){return t?"\0"===e?"<22>":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},re=function(){d()},ie=me((function(e){return!0===e.disabled&&("form"in e||"label"in e)}),{dir:"parentNode",next:"legend"});try{P.apply(D=k.call(w.childNodes),w.childNodes),D[w.childNodes.length].nodeType}catch(e){P={apply:D.length?function(e,t){j.apply(e,k.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function oe(e,t,r,i){var o,a,c,f,l,h,y,m=t&&t.ownerDocument,T=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==T&&9!==T&&11!==T)return r;if(!i&&((t?t.ownerDocument||t:w)!==p&&d(t),t=t||p,g)){if(11!==T&&(l=Q.exec(e)))if(o=l[1]){if(9===T){if(!(c=t.getElementById(o)))return r;if(c.id===o)return r.push(c),r}else if(m&&(c=m.getElementById(o))&&b(t,c)&&c.id===o)return r.push(c),r}else{if(l[2])return P.apply(r,t.getElementsByTagName(e)),r;if((o=l[3])&&n.getElementsByClassName&&t.getElementsByClassName)return P.apply(r,t.getElementsByClassName(o)),r}if(n.qsa&&!C[e+" "]&&(!v||!v.test(e))){if(1!==T)m=t,y=e;else if("object"!==t.nodeName.toLowerCase()){for((f=t.getAttribute("id"))?f=f.replace(te,ne):t.setAttribute("id",f=x),a=(h=u(e)).length;a--;)h[a]="#"+f+" "+ye(h[a]);y=h.join(","),m=J.test(e)&&ge(t.parentNode)||t}if(y)try{return P.apply(r,m.querySelectorAll(y)),r}catch(e){}finally{f===x&&t.removeAttribute("id")}}}return s(e.replace(U,"$1"),t,r,i)}function ue(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function ae(e){return e[x]=!0,e}function se(e){var t=p.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ce(e,t){for(var n=e.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=t}function fe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function le(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function de(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function pe(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDis
/*!
* escape-html
* Copyright(c) 2012-2013 TJ Holowaychuk
* Copyright(c) 2015 Andreas Lubbe
* Copyright(c) 2015 Tiancheng "Timothy" Gu
* MIT Licensed
*/var r=/["'&<>]/;e.exports=function(e){var t,n=""+e,i=r.exec(n);if(!i)return n;var o="",u=0,a=0;for(u=i.index;u<n.length;u++){switch(n.charCodeAt(u)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#39;";break;case 60:t="&lt;";break;case 62:t="&gt;";break;default:continue}a!==u&&(o+=n.substring(a,u)),a=u+1,o+=t}return a!==u?o+n.substring(a,u):o}},20:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},7:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return wn})),n.d(t,"VERSION",(function(){return i.e})),n.d(t,"restArguments",(function(){return o})),n.d(t,"isObject",(function(){return u})),n.d(t,"isNull",(function(){return a})),n.d(t,"isUndefined",(function(){return s})),n.d(t,"isBoolean",(function(){return c})),n.d(t,"isElement",(function(){return f})),n.d(t,"isString",(function(){return d})),n.d(t,"isNumber",(function(){return p})),n.d(t,"isDate",(function(){return h})),n.d(t,"isRegExp",(function(){return g})),n.d(t,"isError",(function(){return v})),n.d(t,"isSymbol",(function(){return y})),n.d(t,"isArrayBuffer",(function(){return m})),n.d(t,"isDataView",(function(){return C})),n.d(t,"isArray",(function(){return _})),n.d(t,"isFunction",(function(){return w})),n.d(t,"isArguments",(function(){return O})),n.d(t,"isFinite",(function(){return j})),n.d(t,"isNaN",(function(){return P})),n.d(t,"isTypedArray",(function(){return H})),n.d(t,"isEmpty",(function(){return W})),n.d(t,"isMatch",(function(){return $})),n.d(t,"isEqual",(function(){return X})),n.d(t,"isMap",(function(){return re})),n.d(t,"isWeakMap",(function(){return ie})),n.d(t,"isSet",(function(){return oe})),n.d(t,"isWeakSet",(function(){return ue})),n.d(t,"keys",(function(){return B})),n.d(t,"allKeys",(function(){return G})),n.d(t,"values",(function(){return ae})),n.d(t,"pairs",(function(){return se})),n.d(t,"invert",(function(){return ce})),n.d(t,"functions",(function(){return fe})),n.d(t,"methods",(function(){return fe})),n.d(t,"extend",(function(){return de})),n.d(t,"extendOwn",(function(){return pe})),n.d(t,"assign",(function(){return pe})),n.d(t,"defaults",(function(){return he})),n.d(t,"create",(function(){return ve})),n.d(t,"clone",(function(){return ye})),n.d(t,"tap",(function(){return me})),n.d(t,"get",(function(){return Te})),n.d(t,"has",(function(){return Se})),n.d(t,"mapObject",(function(){return je})),n.d(t,"identity",(function(){return Ee})),n.d(t,"constant",(function(){return k})),n.d(t,"noop",(function(){return Pe})),n.d(t,"toPath",(function(){return be})),n.d(t,"property",(function(){return Ce})),n.d(t,"propertyOf",(function(){return ke})),n.d(t,"matcher",(function(){return Ne})),n.d(t,"matches",(function(){return Ne})),n.d(t,"times",(function(){return Re})),n.d(t,"random",(function(){return Le})),n.d(t,"now",(function(){return qe})),n.d(t,"escape",(function(){return He})),n.d(t,"unescape",(function(){return Fe})),n.d(t,"templateSettings",(function(){return Ue})),n.d(t,"template",(function(){return ze})),n.d(t,"result",(function(){return Ye})),n.d(t,"uniqueId",(function(){return Ge})),n.d(t,"chain",(function(){return Ke})),n.d(t,"iteratee",(function(){return De})),n.d(t,"partial",(function(){return Ze})),n.d(t,"bind",(function(){return et})),n.d(t,"bindAll",(function(){return rt})),n.d(t,"memoize",(function(){return it})),n.d(t,"delay",(function(){return ot})),n.d(t,"defer",(function(){return ut})),n.d(t,"throttle",(function(){return at})),n.d(t,"debounce",(function(){return st})),n.d(t,"wrap",(function(){return ct})),n.d(t,"negate",(function(){return ft})),n.d(t,"compose",(function(){return lt})),n.d(t,"after",(function(){return dt})),n.d(t,"before",(function(){return pt})),n.d(t,"once",(function(){return ht})),n.d(t,"findKey",(function(){return gt})),n.d(t,"findIndex",(function(){return yt})),n.d(t,"findLastIndex",(function(){return mt})),n.d(t,"sortedIndex",(function(){return bt})),n.d(t,"indexOf",(function(){return wt})),n.d(t,"lastIndexOf",(function(){return Tt})),n.d(t,"find",(function(){return St})),n.d(t,"detect",(functi
/**
* Copyright (c) 2015
*
* @author Bjoern Schiessle <bjoern@schiessle.org>
* @author John Molakvoæ <skjnldsv@protonmail.com>
* @author Julius Härtl <jus@bitgrid.net>
* @author Lukas Reschke <lukas@statuscode.ch>
* @author Michael Jobst <mjobst+github@tecratech.de>
* @author Robin Appelman <robin@icewind.nl>
* @author Roeland Jago Douma <roeland@famdouma.nl>
* @author Thomas Citharel <nextcloud@tcit.fr>
* @author Tomasz Grobelny <tomasz@grobelny.net>
* @author Vincent Petry <vincent@nextcloud.com>
* @author Vinicius Cubas Brand <vinicius@eita.org.br>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
!function(n,r){var o=function(t){this._root=t.root,"/"===this._root.charAt(this._root.length-1)&&(this._root=this._root.substr(0,this._root.length-1));let r=o.PROTOCOL_HTTP+"://";t.useHTTPS&&(r=o.PROTOCOL_HTTPS+"://"),r+=t.host+this._root,this._host=t.host,this._defaultHeaders=t.defaultHeaders||{"X-Requested-With":"XMLHttpRequest",requesttoken:n.requestToken},this._baseUrl=r;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=e.bind(this._xhrProvider,this),this._fileInfoParsers=[]};o.NS_OWNCLOUD="http://owncloud.org/ns",o.NS_NEXTCLOUD="http://nextcloud.org/ns",o.NS_DAV="DAV:",o.NS_OCS="http://open-collaboration-services.org/ns",o.PROPERTY_GETLASTMODIFIED="{"+o.NS_DAV+"}getlastmodified",o.PROPERTY_GETETAG="{"+o.NS_DAV+"}getetag",o.PROPERTY_GETCONTENTTYPE="{"+o.NS_DAV+"}getcontenttype",o.PROPERTY_RESOURCETYPE="{"+o.NS_DAV+"}resourcetype",o.PROPERTY_INTERNAL_FILEID="{"+o.NS_OWNCLOUD+"}fileid",o.PROPERTY_PERMISSIONS="{"+o.NS_OWNCLOUD+"}permissions",o.PROPERTY_SIZE="{"+o.NS_OWNCLOUD+"}size",o.PROPERTY_GETCONTENTLENGTH="{"+o.NS_DAV+"}getcontentlength",o.PROPERTY_ISENCRYPTED="{"+o.NS_DAV+"}is-encrypted",o.PROPERTY_SHARE_PERMISSIONS="{"+o.NS_OCS+"}share-permissions",o.PROPERTY_QUOTA_AVAILABLE_BYTES="{"+o.NS_DAV+"}quota-available-bytes",o.PROTOCOL_HTTP="http",o.PROTOCOL_HTTPS="https",o._PROPFIND_PROPERTIES=[[o.NS_DAV,"getlastmodified"],[o.NS_DAV,"getetag"],[o.NS_DAV,"getcontenttype"],[o.NS_DAV,"resourcetype"],[o.NS_OWNCLOUD,"fileid"],[o.NS_OWNCLOUD,"permissions"],[o.NS_OWNCLOUD,"size"],[o.NS_DAV,"getcontentlength"],[o.NS_DAV,"quota-available-bytes"],[o.NS_NEXTCLOUD,"has-preview"],[o.NS_NEXTCLOUD,"mount-type"],[o.NS_NEXTCLOUD,"is-encrypted"],[o.NS_OCS,"share-permissions"]],o.prototype={_root:null,_client:null,_fileInfoParsers:[],_xhrProvider:function(){const t=this._defaultHeaders,r=new XMLHttpRequest,i=r.open;return r.open=function(){const n=i.apply(this,arguments);return e.each(t,(function(e,t){r.setRequestHeader(t,e)})),n},n.registerXHRForErrorProcessing(r),r},_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 e=n.joinPaths.apply(this,arguments);const t=e.split("/");let r;for(r=0;r<t.length;r++)t[r]=encodeURIComponent(t[r]);return e=t.join("/"),e},_parseHeaders:function(e){const t=e.split("\n"),n={};for(let e=0;e<t.length;e++){const r=t[e].indexOf(":");if(r<0)continue;const i=t[e].substr(0,r),o=t[e].substr(r+2);n[i]||(n[i]=[]),n[i].push(o)}return n},_parseEtag:function(e){return'"'===e.charAt(0)?e.split('"')[1]:e},_parseFileInfo:function(t){let i=decodeURIComponent(t.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===t.propStat.length||"HTTP/1.1 200 OK"!==t.propStat[0].status)return null;const u=t.propStat[0].properties,a={id:u[o.PROPERTY_INTERNAL_FILEID],path:n.dirname(i)||"/",name:n.basename(i),mtime:new Date(u[o.PROPERTY_GETLASTMODIFIED]).getTime()},s=u[o.PROPERTY_GETETAG];e.isUndefined(s)||(a.etag=this._parseEtag(s));let c=u[o.PROPERTY_GETCONTENTLENGTH];e.isUndefined(c)||(a.size=parseInt(c,10)),c=u[o.PROPERTY_SIZE],e.isUndefined(c)||(a.size=parseInt(c,10));const f=u["{"+o.NS_NEXTCLOUD+"}has-preview"];e.isUndefined(f)?a.hasPreview=!0:a.hasPreview="true"===f;const l=u["{"+o.NS_NEXTCLOUD+"}is-encrypted"];e.isUndefined(l)?a.isEncrypted=!1:a.isEncrypted="1"===l;const d=u["{"+o.NS_OWNCLOUD+"}favorite"];e.isUndefined(d)?a.isFavourited=!1:a.isFavourited="1"===d;const p=u[o.PROPERTY_GETCONTENTTYPE];e.isUndefined(p)||(a.mimetype=p);const h=u[o.PROPERTY_RESOURCETYPE];if(!a.mimetype&&h){const e=h[0];e.namespaceURI===o.NS_DAV&&"collection"===e.nodeName.split(":")[1]&&(a.mimetype="httpd/unix-directory")}a.permissions=n.PERMISSION_NONE;const g=u[o.P
//# sourceMappingURL=files_client.js.map