summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2024-04-30 16:49:33 -0700
committerChristopher Ng <chrng8@gmail.com>2024-04-30 16:49:33 -0700
commit15fbee2f0d5c9163e5525a88961e9dfd67f6e718 (patch)
treeaf1e772e8beda4e4561d5d8c09bf8c225e2f21f5
parent266c584d165eb2ff087dade4f666507dfba4751c (diff)
chore: compile assets
Signed-off-by: Christopher Ng <chrng8@gmail.com>
-rw-r--r--dist/files_trashbin-main.js4
-rw-r--r--dist/files_trashbin-main.js.map2
2 files changed, 3 insertions, 3 deletions
diff --git a/dist/files_trashbin-main.js b/dist/files_trashbin-main.js
index 9a116149971..d47c9f2bf82 100644
--- a/dist/files_trashbin-main.js
+++ b/dist/files_trashbin-main.js
@@ -1,3 +1,3 @@
/*! For license information please see files_trashbin-main.js.LICENSE.txt */
-(()=>{"use strict";var t,e={42808:(t,e,i)=>{var n=i(85072),r=i.n(n),s=i(97825),o=i.n(s),a=i(77659),l=i.n(a),u=i(55056),d=i.n(u),c=i(10540),h=i.n(c),p=i(41113),f=i.n(p),g=i(98290),m={};m.styleTagTransform=f(),m.setAttributes=d(),m.insert=l().bind(null,"head"),m.domAPI=o(),m.insertStyleElement=h(),r()(g.A,m),g.A&&g.A.locals&&g.A.locals;var v=i(53334),w=i(92457),b=i(53529),x=i(43627),y=i(71089),N=i(63814),E=i(44719);i(36117);const _=null===(A=(0,w.HW)())?(0,b.YK)().setApp("files").build():(0,b.YK)().setApp("files").setUid(A.uid).build();var A,T=(t=>(t.DEFAULT="default",t.HIDDEN="hidden",t))(T||{}),O=(t=>(t[t.NONE=0]="NONE",t[t.CREATE=4]="CREATE",t[t.READ=1]="READ",t[t.UPDATE=2]="UPDATE",t[t.DELETE=8]="DELETE",t[t.SHARE=16]="SHARE",t[t.ALL=31]="ALL",t))(O||{});const I=["d:getcontentlength","d:getcontenttype","d:getetag","d:getlastmodified","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"],P={d:"DAV:",nc:"http://nextcloud.org/ns",oc:"http://owncloud.org/ns",ocs:"http://open-collaboration-services.org/ns"};var C=(t=>(t.Folder="folder",t.File="file",t))(C||{});const S=function(t,e){return null!==t.match(e)},D=(t,e)=>{if(t.id&&"number"!=typeof t.id)throw new Error("Invalid id type of value");if(!t.source)throw new Error("Missing mandatory source");try{new URL(t.source)}catch{throw new Error("Invalid source format, source must be a valid URL")}if(!t.source.startsWith("http"))throw new Error("Invalid source format, only http(s) is supported");if(t.mtime&&!(t.mtime instanceof Date))throw new Error("Invalid mtime type");if(t.crtime&&!(t.crtime instanceof Date))throw new Error("Invalid crtime type");if(!t.mime||"string"!=typeof t.mime||!t.mime.match(/^[-\w.]+\/[-+\w.]+$/gi))throw new Error("Missing or invalid mandatory mime");if("size"in t&&"number"!=typeof t.size&&void 0!==t.size)throw new Error("Invalid size type");if("permissions"in t&&void 0!==t.permissions&&!("number"==typeof t.permissions&&t.permissions>=O.NONE&&t.permissions<=O.ALL))throw new Error("Invalid permissions");if(t.owner&&null!==t.owner&&"string"!=typeof t.owner)throw new Error("Invalid owner type");if(t.attributes&&"object"!=typeof t.attributes)throw new Error("Invalid attributes type");if(t.root&&"string"!=typeof t.root)throw new Error("Invalid root type");if(t.root&&!t.root.startsWith("/"))throw new Error("Root must start with a leading slash");if(t.root&&!t.source.includes(t.root))throw new Error("Root must be part of the source");if(t.root&&S(t.source,e)){const i=t.source.match(e)[0];if(!t.source.includes((0,x.join)(i,t.root)))throw new Error("The root must be relative to the service. e.g /files/emma")}if(t.status&&!Object.values(V).includes(t.status))throw new Error("Status must be a valid NodeStatus")};var V=(t=>(t.NEW="new",t.FAILED="failed",t.LOADING="loading",t.LOCKED="locked",t))(V||{});class k{_data;_attributes;_knownDavService=/(remote|public)\.php\/(web)?dav/i;constructor(t,e){D(t,e||this._knownDavService),this._data=t;const i={set:(t,e,i)=>(this.updateMtime(),Reflect.set(t,e,i)),deleteProperty:(t,e)=>(this.updateMtime(),Reflect.deleteProperty(t,e))};this._attributes=new Proxy(t.attributes||{},i),delete this._data.attributes,e&&(this._knownDavService=e)}get source(){return this._data.source.replace(/\/$/i,"")}get encodedSource(){const{origin:t}=new URL(this.source);return t+(0,y.O0)(this.source.slice(t.length))}get basename(){return(0,x.basename)(this.source)}get extension(){return(0,x.extname)(this.source)}get dirname(){if(this.root){let t=this.source;this.isDavRessource&&(t=t.split(this._knownDavService).pop());const e=t.indexOf(this.root),i=this.root.replace(/\/$/,"");return(0,x.dirname)(t.slice(e+i.length)||"/")}const t=new URL(this.source);return(0,x.dirname)(t.pathname)}get mime(){return this._data.mime}get mtime(){return this._data.mtime}get crtime(){return this._data.crtime}get size(){return this._data.size}get attributes(){return this._attributes}get permissions(){return null!==this.owner||this.isDavRessource?void 0!==this._data.permissions?this._data.permissions:O.NONE:O.READ}get owner(){return this.isDavRessource?this._data.owner:null}get isDavRessource(){return S(this.source,this._knownDavService)}get root(){return this._data.root?this._data.root.replace(/^(.+)\/$/,"$1"):this.isDavRessource&&(0,x.dirname)(this.source).split(this._knownDavService).pop()||null}get path(){if(this.root){let t=this.source;this.isDavRessource&&(t=t.split(this._knownDavService).pop());const e=t.indexOf(this.root),i=this.root.replace(/\/$/,"");return t.slice(e+i.length)||"/"}return(this.dirname+"/"+this.basename).replace(/\/\//g,"/")}get fileid(){return this._data?.id||this.attributes?.fileid}get status(){return this._data?.status}set status(t){this._data.status=t}move(t){D({...this._data,source:t},this._knownDavService),this._data.source=t,this.updateMtime()}rename(t){if(t.includes("/"))throw new Error("Invalid basename");this.move((0,x.dirname)(this.source)+"/"+t)}updateMtime(){this._data.mtime&&(this._data.mtime=new Date)}}class L extends k{get type(){return C.File}}class j extends k{constructor(t){super({...t,mime:"httpd/unix-directory"})}get type(){return C.Folder}get extension(){return null}get mime(){return"httpd/unix-directory"}}(0,N.dC)("dav");class ${_column;constructor(t){R(t),this._column=t}get id(){return this._column.id}get title(){return this._column.title}get render(){return this._column.render}get sort(){return this._column.sort}get summary(){return this._column.summary}}const R=function(t){if(!t.id||"string"!=typeof t.id)throw new Error("A column id is required");if(!t.title||"string"!=typeof t.title)throw new Error("A column title is required");if(!t.render||"function"!=typeof t.render)throw new Error("A render function is required");if(t.sort&&"function"!=typeof t.sort)throw new Error("Column sortFunction must be a function");if(t.summary&&"function"!=typeof t.summary)throw new Error("Column summary must be a function");return!0};var F={},M={};!function(t){const e=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",i="["+e+"]["+e+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*",n=new RegExp("^"+i+"$");t.isExist=function(t){return typeof t<"u"},t.isEmptyObject=function(t){return 0===Object.keys(t).length},t.merge=function(t,e,i){if(e){const n=Object.keys(e),r=n.length;for(let s=0;s<r;s++)t[n[s]]="strict"===i?[e[n[s]]]:e[n[s]]}},t.getValue=function(e){return t.isExist(e)?e:""},t.isName=function(t){const e=n.exec(t);return!(null===e||typeof e>"u")},t.getAllMatches=function(t,e){const i=[];let n=e.exec(t);for(;n;){const r=[];r.startIndex=e.lastIndex-n[0].length;const s=n.length;for(let t=0;t<s;t++)r.push(n[t]);i.push(r),n=e.exec(t)}return i},t.nameRegexp=i}(M);const U=M,B={allowBooleanAttributes:!1,unpairedTags:[]};function H(t){return" "===t||"\t"===t||"\n"===t||"\r"===t}function q(t,e){const i=e;for(;e<t.length;e++)if("?"==t[e]||" "==t[e]){const n=t.substr(i,e-i);if(e>5&&"xml"===n)return J("InvalidXml","XML declaration allowed only at the start of the document.",et(t,e));if("?"==t[e]&&">"==t[e+1]){e++;break}continue}return e}function X(t,e){if(t.length>e+5&&"-"===t[e+1]&&"-"===t[e+2]){for(e+=3;e<t.length;e++)if("-"===t[e]&&"-"===t[e+1]&&">"===t[e+2]){e+=2;break}}else if(t.length>e+8&&"D"===t[e+1]&&"O"===t[e+2]&&"C"===t[e+3]&&"T"===t[e+4]&&"Y"===t[e+5]&&"P"===t[e+6]&&"E"===t[e+7]){let i=1;for(e+=8;e<t.length;e++)if("<"===t[e])i++;else if(">"===t[e]&&(i--,0===i))break}else if(t.length>e+9&&"["===t[e+1]&&"C"===t[e+2]&&"D"===t[e+3]&&"A"===t[e+4]&&"T"===t[e+5]&&"A"===t[e+6]&&"["===t[e+7])for(e+=8;e<t.length;e++)if("]"===t[e]&&"]"===t[e+1]&&">"===t[e+2]){e+=2;break}return e}F.validate=function(t,e){e=Object.assign({},B,e);const i=[];let n=!1,r=!1;"\ufeff"===t[0]&&(t=t.substr(1));for(let s=0;s<t.length;s++)if("<"===t[s]&&"?"===t[s+1]){if(s+=2,s=q(t,s),s.err)return s}else{if("<"!==t[s]){if(H(t[s]))continue;return J("InvalidChar","char '"+t[s]+"' is not expected.",et(t,s))}{let o=s;if(s++,"!"===t[s]){s=X(t,s);continue}{let a=!1;"/"===t[s]&&(a=!0,s++);let l="";for(;s<t.length&&">"!==t[s]&&" "!==t[s]&&"\t"!==t[s]&&"\n"!==t[s]&&"\r"!==t[s];s++)l+=t[s];if(l=l.trim(),"/"===l[l.length-1]&&(l=l.substring(0,l.length-1),s--),!tt(l)){let e;return e=0===l.trim().length?"Invalid space after '<'.":"Tag '"+l+"' is an invalid name.",J("InvalidTag",e,et(t,s))}const u=W(t,s);if(!1===u)return J("InvalidAttr","Attributes for '"+l+"' have open quote.",et(t,s));let d=u.value;if(s=u.index,"/"===d[d.length-1]){const i=s-d.length;d=d.substring(0,d.length-1);const r=Y(d,e);if(!0!==r)return J(r.err.code,r.err.msg,et(t,i+r.err.line));n=!0}else if(a){if(!u.tagClosed)return J("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",et(t,s));if(d.trim().length>0)return J("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",et(t,o));{const e=i.pop();if(l!==e.tagName){let i=et(t,e.tagStartPos);return J("InvalidTag","Expected closing tag '"+e.tagName+"' (opened in line "+i.line+", col "+i.col+") instead of closing tag '"+l+"'.",et(t,o))}0==i.length&&(r=!0)}}else{const a=Y(d,e);if(!0!==a)return J(a.err.code,a.err.msg,et(t,s-d.length+a.err.line));if(!0===r)return J("InvalidXml","Multiple possible root nodes found.",et(t,s));-1!==e.unpairedTags.indexOf(l)||i.push({tagName:l,tagStartPos:o}),n=!0}for(s++;s<t.length;s++)if("<"===t[s]){if("!"===t[s+1]){s++,s=X(t,s);continue}if("?"!==t[s+1])break;if(s=q(t,++s),s.err)return s}else if("&"===t[s]){const e=Z(t,s);if(-1==e)return J("InvalidChar","char '&' is not expected.",et(t,s));s=e}else if(!0===r&&!H(t[s]))return J("InvalidXml","Extra text at the end",et(t,s));"<"===t[s]&&s--}}}return n?1==i.length?J("InvalidTag","Unclosed tag '"+i[0].tagName+"'.",et(t,i[0].tagStartPos)):!(i.length>0)||J("InvalidXml","Invalid '"+JSON.stringify(i.map((t=>t.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):J("InvalidXml","Start tag expected.",1)};const z='"',G="'";function W(t,e){let i="",n="",r=!1;for(;e<t.length;e++){if(t[e]===z||t[e]===G)""===n?n=t[e]:n!==t[e]||(n="");else if(">"===t[e]&&""===n){r=!0;break}i+=t[e]}return""===n&&{value:i,index:e,tagClosed:r}}const K=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function Y(t,e){const i=U.getAllMatches(t,K),n={};for(let t=0;t<i.length;t++){if(0===i[t][1].length)return J("InvalidAttr","Attribute '"+i[t][2]+"' has no space in starting.",it(i[t]));if(void 0!==i[t][3]&&void 0===i[t][4])return J("InvalidAttr","Attribute '"+i[t][2]+"' is without value.",it(i[t]));if(void 0===i[t][3]&&!e.allowBooleanAttributes)return J("InvalidAttr","boolean attribute '"+i[t][2]+"' is not allowed.",it(i[t]));const r=i[t][2];if(!Q(r))return J("InvalidAttr","Attribute '"+r+"' is an invalid name.",it(i[t]));if(n.hasOwnProperty(r))return J("InvalidAttr","Attribute '"+r+"' is repeated.",it(i[t]));n[r]=1}return!0}function Z(t,e){if(";"===t[++e])return-1;if("#"===t[e])return function(t,e){let i=/\d/;for("x"===t[e]&&(e++,i=/[\da-fA-F]/);e<t.length;e++){if(";"===t[e])return e;if(!t[e].match(i))break}return-1}(t,++e);let i=0;for(;e<t.length;e++,i++)if(!(t[e].match(/\w/)&&i<20)){if(";"===t[e])break;return-1}return e}function J(t,e,i){return{err:{code:t,msg:e,line:i.line||i,col:i.col}}}function Q(t){return U.isName(t)}function tt(t){return U.isName(t)}function et(t,e){const i=t.substring(0,e).split(/\r?\n/);return{line:i.length,col:i[i.length-1].length+1}}function it(t){return t.startIndex+t[1].length}var nt={};const rt={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(t,e,i){return t}};nt.buildOptions=function(t){return Object.assign({},rt,t)},nt.defaultOptions=rt;const st=M;function ot(t,e){let i="";for(;e<t.length&&"'"!==t[e]&&'"'!==t[e];e++)i+=t[e];if(i=i.trim(),-1!==i.indexOf(" "))throw new Error("External entites are not supported");const n=t[e++];let r="";for(;e<t.length&&t[e]!==n;e++)r+=t[e];return[i,r,e]}function at(t,e){return"!"===t[e+1]&&"-"===t[e+2]&&"-"===t[e+3]}function lt(t,e){return"!"===t[e+1]&&"E"===t[e+2]&&"N"===t[e+3]&&"T"===t[e+4]&&"I"===t[e+5]&&"T"===t[e+6]&&"Y"===t[e+7]}function ut(t,e){return"!"===t[e+1]&&"E"===t[e+2]&&"L"===t[e+3]&&"E"===t[e+4]&&"M"===t[e+5]&&"E"===t[e+6]&&"N"===t[e+7]&&"T"===t[e+8]}function dt(t,e){return"!"===t[e+1]&&"A"===t[e+2]&&"T"===t[e+3]&&"T"===t[e+4]&&"L"===t[e+5]&&"I"===t[e+6]&&"S"===t[e+7]&&"T"===t[e+8]}function ct(t,e){return"!"===t[e+1]&&"N"===t[e+2]&&"O"===t[e+3]&&"T"===t[e+4]&&"A"===t[e+5]&&"T"===t[e+6]&&"I"===t[e+7]&&"O"===t[e+8]&&"N"===t[e+9]}function ht(t){if(st.isName(t))return t;throw new Error(`Invalid entity name ${t}`)}const pt=/^[-+]?0x[a-fA-F0-9]+$/,ft=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?