You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

1 lines
25 KiB

!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=37)}([function(e,t,n){"use strict";var r=n(1),i=Object.prototype.toString;function o(e){return"[object Array]"===i.call(e)}function s(e){return void 0===e}function a(e){return null!==e&&"object"==typeof e}function u(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function l(e){return"[object Function]"===i.call(e)}function c(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}e.exports={isArray:o,isArrayBuffer:function(e){return"[object ArrayBuffer]"===i.call(e)},isBuffer:function(e){return null!==e&&!s(e)&&null!==e.constructor&&!s(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:a,isPlainObject:u,isUndefined:s,isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:l,isStream:function(e){return a(e)&&l(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:c,merge:function e(){var t={};function n(n,r){u(t[r])&&u(n)?t[r]=e(t[r],n):u(n)?t[r]=e({},n):o(n)?t[r]=n.slice():t[r]=n}for(var r=0,i=arguments.length;r<i;r++)c(arguments[r],n);return t},extend:function(e,t,n){return c(t,(function(t,i){e[i]=n&&"function"==typeof t?r(t,n):t})),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t,n){"use strict";var r=n(0);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var s=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),s.push(i(t)+"="+i(e))})))})),o=s.join("&")}if(o){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";(function(t){var r=n(0),i=n(16),o={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var a,u={adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==t&&"[object process]"===Object.prototype.toString.call(t))&&(a=n(5)),a),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(s(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){u.headers[e]=r.merge(o)})),e.exports=u}).call(this,n(15))},function(e,t,n){"use strict";var r=n(0),i=n(17),o=n(19),s=n(2),a=n(20),u=n(23),l=n(24),c=n(6);e.exports=function(e){return new Promise((function(t,n){var f=e.data,p=e.headers;r.isFormData(f)&&delete p["Content-Type"];var d=new XMLHttpRequest;if(e.auth){var h=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";p.Authorization="Basic "+btoa(h+":"+m)}var v=a(e.baseURL,e.url);if(d.open(e.method.toUpperCase(),s(v,e.params,e.paramsSerializer),!0),d.timeout=e.timeout,d.onreadystatechange=function(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in d?u(d.getAllResponseHeaders()):null,o={data:e.responseType&&"text"!==e.responseType?d.response:d.responseText,status:d.status,statusText:d.statusText,headers:r,config:e,request:d};i(t,n,o),d=null}},d.onabort=function(){d&&(n(c("Request aborted",e,"ECONNABORTED",d)),d=null)},d.onerror=function(){n(c("Network Error",e,null,d)),d=null},d.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(c(t,e,"ECONNABORTED",d)),d=null},r.isStandardBrowserEnv()){var x=(e.withCredentials||l(v))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;x&&(p[e.xsrfHeaderName]=x)}if("setRequestHeader"in d&&r.forEach(p,(function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete p[t]:d.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),e.responseType)try{d.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&d.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){d&&(d.abort(),n(e),d=null)})),f||(f=null),d.send(f)}))}},function(e,t,n){"use strict";var r=n(18);e.exports=function(e,t,n,i,o){var s=new Error(e);return r(s,t,n,i,o)}},function(e,t,n){"use strict";var r=n(0);e.exports=function(e,t){t=t||{};var n={},i=["url","method","data"],o=["headers","auth","proxy","params"],s=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function u(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function l(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=u(void 0,e[i])):n[i]=u(e[i],t[i])}r.forEach(i,(function(e){r.isUndefined(t[e])||(n[e]=u(void 0,t[e]))})),r.forEach(o,l),r.forEach(s,(function(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=u(void 0,e[i])):n[i]=u(void 0,t[i])})),r.forEach(a,(function(r){r in t?n[r]=u(e[r],t[r]):r in e&&(n[r]=u(void 0,e[r]))}));var c=i.concat(o).concat(s).concat(a),f=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===c.indexOf(e)}));return r.forEach(f,l),n}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,n){e.exports=n(10)},function(e,t,n){"use strict";var r=n(0),i=n(1),o=n(11),s=n(7);function a(e){var t=new o(e),n=i(o.prototype.request,t);return r.extend(n,o.prototype,t),r.extend(n,t),n}var u=a(n(4));u.Axios=o,u.create=function(e){return a(s(u.defaults,e))},u.Cancel=n(8),u.CancelToken=n(25),u.isCancel=n(3),u.all=function(e){return Promise.all(e)},u.spread=n(26),u.isAxiosError=n(27),e.exports=u,e.exports.default=u},function(e,t,n){"use strict";var r=n(0),i=n(2),o=n(12),s=n(13),a=n(7);function u(e){this.defaults=e,this.interceptors={request:new o,response:new o}}u.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=a(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[s,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},u.prototype.getUri=function(e){return e=a(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,n){return this.request(a(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,n,r){return this.request(a(r||{},{method:e,url:t,data:n}))}})),e.exports=u},function(e,t,n){"use strict";var r=n(0);function i(){this.handlers=[]}i.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},function(e,t,n){"use strict";var r=n(0),i=n(14),o=n(3),s=n(4);function a(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return a(e),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||s.adapter)(e).then((function(t){return a(e),t.data=i(t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(a(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},function(e,t,n){"use strict";var r=n(0);e.exports=function(e,t,n){return r.forEach(n,(function(n){e=n(e,t)})),e}},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(e){r=s}}();var u,l=[],c=!1,f=-1;function p(){c&&u&&(c=!1,u.length?l=u.concat(l):f=-1,l.length&&d())}function d(){if(!c){var e=a(p);c=!0;for(var t=l.length;t;){for(u=l,l=[];++f<t;)u&&u[f].run();f=-1,t=l.length}u=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new h(e,t)),1!==l.length||c||a(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){"use strict";var r=n(0);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},function(e,t,n){"use strict";var r=n(6);e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,t,n){"use strict";var r=n(0);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,o,s){var a=[];a.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),r.isString(i)&&a.push("path="+i),r.isString(o)&&a.push("domain="+o),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){"use strict";var r=n(21),i=n(22);e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(0),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,s={};return e?(r.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(s[t]&&i.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([n]):s[t]?s[t]+", "+n:n}})),s):s}},function(e,t,n){"use strict";var r=n(0);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){"use strict";var r=n(8);function i(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e;return{token:new i((function(t){e=t})),cancel:e}},e.exports=i},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},,,,,,,,,,function(e,t,n){e.exports=n(38)},function(e,t,n){"use strict";n.r(t);var r=n(9),i=n.n(r);riot.register("urban-filemanager-file",{css:null,exports:{},template:function(e,t,n,r){return e('<div class="file-table__row"><div expr32="expr32" class="file-table__column file-table__column--select"><input type="checkbox" value="true"/></div><div expr33="expr33" class="file-table__column file-table__column--filename"> </div><div class="file-table__column file-table__column--size"><div expr34="expr34" class="file-table__inner has-text-right width-100"> </div></div><div class="file-table__column file-table__column--date"><div expr35="expr35" class="file-table__inner has-text-right"> </div></div><div class="file-table__column file-table__column--actions"><div class="file-table__inner has-text-right"><svg expr36="expr36" class="icon fill-success mr-1" aria-hidden="true" disabled><use xlink:href="/symbol-defs.svg#icon-eye"/></svg><svg expr37="expr37" class="icon fill-success mr-1" aria-hidden="true"><use xlink:href="/symbol-defs.svg#icon-download"/></svg><svg expr38="expr38" class="icon fill-danger mr-1" aria-hidden="true"><use xlink:href="/symbol-defs.svg#icon-delete"/></svg><svg expr39="expr39" class="icon fill-grey mr-1" aria-hidden="true"><use xlink:href="/symbol-defs.svg#icon-build"/></svg></div></div></div>',[{redundantAttribute:"expr32",selector:"[expr32]",expressions:[{type:t.EVENT,name:"onchange",evaluate:function(e){return t=>{e.props.handleMarked(t,e)}}}]},{redundantAttribute:"expr33",selector:"[expr33]",expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:function(e){return[e.props.file.filename].join("")}}]},{redundantAttribute:"expr34",selector:"[expr34]",expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:function(e){return e.props.file.meta.size}}]},{redundantAttribute:"expr35",selector:"[expr35]",expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:function(e){return e.props.file.meta.updated_at}}]},{redundantAttribute:"expr36",selector:"[expr36]",expressions:[{type:t.EVENT,name:"onclick",evaluate:function(e){return()=>{e.props.actions.handlePreview(e.event,e)}}}]},{redundantAttribute:"expr37",selector:"[expr37]",expressions:[{type:t.EVENT,name:"onclick",evaluate:function(e){return()=>{e.props.actions.handleDownload(e.event,e)}}}]},{redundantAttribute:"expr38",selector:"[expr38]",expressions:[{type:t.EVENT,name:"onclick",evaluate:function(e){return()=>{e.props.actions.handleDelete(e.event,e)}}}]},{redundantAttribute:"expr39",selector:"[expr39]",expressions:[{type:t.EVENT,name:"onclick",evaluate:function(e){return()=>{e.props.actions.handleMarked(e.event,e)}}}]}])},name:"urban-filemanager-file"}),riot.register("urban-filemanager-directory",{css:null,exports:{},template:function(e,t,n,r){return e('<div class="file-table__row"><div expr40="expr40" class="file-table__column file-table__column--select"><input type="checkbox" value="true"/></div><div expr41="expr41" class="file-table__column file-table__column--filename"><svg class="icon fill-primary mr-2" aria-hidden="true"><use xlink:href="/symbol-defs.svg#icon-folder"/></svg> </div><div class="file-table__column file-table__column--date"><div expr42="expr42" class="file-table__inner has-text-right"> </div></div><div class="file-table__column file-table__column--actions"><div class="file-table__inner has-text-right"><svg class="icon fill-success mr-1" aria-hidden="true"><use xlink:href="/symbol-defs.svg#icon-eye"/></svg><svg class="icon fill-success mr-1" aria-hidden="true"><use xlink:href="/symbol-defs.svg#icon-download"/></svg><svg class="icon fill-danger mr-1" aria-hidden="true"><use xlink:href="/symbol-defs.svg#icon-delete"/></svg><svg class="icon fill-grey mr-1" aria-hidden="true"><use xlink:href="/symbol-defs.svg#icon-build"/></svg></div></div></div>',[{redundantAttribute:"expr40",selector:"[expr40]",expressions:[{type:t.EVENT,name:"onchange",evaluate:function(e){return t=>{e.props.handleMarked(t,e)}}}]},{redundantAttribute:"expr41",selector:"[expr41]",expressions:[{type:t.TEXT,childNodeIndex:1,evaluate:function(e){return[e.props.file.filename].join("")}},{type:t.EVENT,name:"onclick",evaluate:function(e){return t=>{e.props.handleClick(t,e.props.file.filename)}}}]},{redundantAttribute:"expr42",selector:"[expr42]",expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:function(e){return e.props.file.meta.updated_at}}]}])},name:"urban-filemanager-directory"}),riot.register("urban-filemanager-parent",{css:null,exports:{},template:function(e,t,n,r){return e('<div class="file-table__row"><div class="file-table__column file-table__column--select"><svg expr43="expr43" class="icon fill-grey mr-2" aria-hidden="true"><use xlink:href="/symbol-defs.svg#icon-back"/></svg></div><div expr44="expr44" class="file-table__column file-table__column--filename">\n ..\n </div></div>',[{redundantAttribute:"expr43",selector:"[expr43]",expressions:[{type:t.EVENT,name:"onclick",evaluate:function(e){return t=>{e.props.handleClick(t,e)}}}]},{redundantAttribute:"expr44",selector:"[expr44]",expressions:[{type:t.EVENT,name:"onclick",evaluate:function(e){return t=>{e.props.handleClick(t,e)}}}]}])},name:"urban-filemanager-parent"});var o={css:null,exports:{state:{files:[],path:[]},onBeforeMount(e,t){t.files=e.files},handlePreview(e,t){console.log(t)},handleParentClick(e){this.state.path.pop(),this.files()},handleDirectoryClick(e,t){this.state.path.push(t.filename),this.files()},files(){i.a.get("/api/file/"+this.props.id,{params:{path:this.state.path.join("/")}}).then(e=>{this.state.files=e.data.files,this.update()})},handleMarked(){console.log("marked")}},template:function(e,t,n,r){return e('<div class="bucket-filemanager"><div class="file-table"><urban-filemanager-parent expr17="expr17"></urban-filemanager-parent><template expr18="expr18"></template></div></div>',[{type:n.IF,evaluate:function(e){return e.state.path.length>0},redundantAttribute:"expr17",selector:"[expr17]",template:e(null,[{type:n.TAG,getComponent:r,evaluate:function(e){return"urban-filemanager-parent"},slots:[],attributes:[{type:t.ATTRIBUTE,name:"handleClick",evaluate:function(e){return e.handleParentClick}}]}])},{type:n.EACH,getKey:null,condition:null,template:e('<div class="file-table__row"><div expr19="expr19" class="file-table__column file-table__column--select"><input type="checkbox" value="true"/></div><div expr20="expr20" class="file-table__column file-table__column--filename"></div><div expr21="expr21" class="file-table__column file-table__column--filename"></div><div expr22="expr22" class="file-table__column file-table__column--size"></div><div expr24="expr24" class="file-table__column file-table__column--date"></div><div class="file-table__column file-table__column--actions"><div class="file-table__inner has-text-right"><button expr26="expr26" type="button"><svg class="icon fill-success mr-1" aria-hidden="true"><use xlink:href="/symbol-defs.svg#icon-eye"/></svg></button><button expr27="expr27" type="button"><svg class="icon fill-success mr-1" aria-hidden="true"><use xlink:href="/symbol-defs.svg#icon-download"/></svg></button><button expr28="expr28" type="button"><svg class="icon fill-danger mr-1" aria-hidden="true"><use xlink:href="/symbol-defs.svg#icon-delete"/></svg></button><button expr29="expr29" type="button"><svg class="icon fill-grey mr-1" aria-hidden="true"><use xlink:href="/symbol-defs.svg#icon-build"/></svg></button></div></div></div>',[{redundantAttribute:"expr19",selector:"[expr19]",expressions:[{type:t.EVENT,name:"onchange",evaluate:function(e){return t=>{e.handleMarked(t,e.file)}}}]},{type:n.IF,evaluate:function(e){return e.file.is_file},redundantAttribute:"expr20",selector:"[expr20]",template:e(" ",[{expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:function(e){return[e.file.filename].join("")}}]}])},{type:n.IF,evaluate:function(e){return!e.file.is_file},redundantAttribute:"expr21",selector:"[expr21]",template:e('<svg class="icon fill-primary mr-2" aria-hidden="true"><use xlink:href="/symbol-defs.svg#icon-folder"/></svg> ',[{expressions:[{type:t.TEXT,childNodeIndex:1,evaluate:function(e){return[e.file.filename].join("")}},{type:t.EVENT,name:"onclick",evaluate:function(e){return t=>{e.handleDirectoryClick(t,e.file)}}}]}])},{type:n.IF,evaluate:function(e){return e.file.is_file},redundantAttribute:"expr22",selector:"[expr22]",template:e('<div expr23="expr23" class="file-table__inner has-text-right width-100"> </div>',[{redundantAttribute:"expr23",selector:"[expr23]",expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:function(e){return e.file.meta.size}}]}])},{type:n.IF,evaluate:function(e){return e.file.is_file},redundantAttribute:"expr24",selector:"[expr24]",template:e('<div expr25="expr25" class="file-table__inner has-text-right"> </div>',[{redundantAttribute:"expr25",selector:"[expr25]",expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:function(e){return e.file.meta.updated_at}}]}])},{redundantAttribute:"expr26",selector:"[expr26]",expressions:[{type:t.ATTRIBUTE,name:"disabled",evaluate:function(e){return!0}},{type:t.EVENT,name:"onclick",evaluate:function(e){return t=>{e.handlePreview(t,e.file)}}}]},{redundantAttribute:"expr27",selector:"[expr27]",expressions:[{type:t.EVENT,name:"onclick",evaluate:function(e){return t=>{e.handlePreview(t,e.file)}}}]},{redundantAttribute:"expr28",selector:"[expr28]",expressions:[{type:t.EVENT,name:"onclick",evaluate:function(e){return t=>{e.handlePreview(t,e.file)}}}]},{redundantAttribute:"expr29",selector:"[expr29]",expressions:[{type:t.EVENT,name:"onclick",evaluate:function(e){return t=>{e.handlePreview(t,e.file)}}}]}]),redundantAttribute:"expr18",selector:"[expr18]",itemName:"file",indexName:null,evaluate:function(e){return e.state.files}}])},name:"urban-filemanager"};riot.register("urban-filemanager",o)}]);