Files
vuefilemanager/public/chunks/users.js
2021-11-22 10:47:24 +01:00

1 line
31 KiB
JavaScript
Vendored

(window.webpackJsonp=window.webpackJsonp||[]).push([[79],{"/nGJ":function(t,a,e){"use strict";e("T0k5")},"1zsi":function(t,a,e){var i=e("TnXf");"string"==typeof i&&(i=[[t.i,i,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};e("aET+")(i,n);i.locals&&(t.exports=i.locals)},"2Sb1":function(t,a,e){"use strict";var i={name:"PageHeader",props:["title","canBack"],components:{ChevronLeftIcon:e("CjXH").h}},n=(e("xdXa"),e("KHd+")),s=Object(n.a)(i,(function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"page-header"},[t.canBack?e("div",{staticClass:"go-back",on:{click:function(a){return t.$router.back()}}},[e("chevron-left-icon",{attrs:{size:"17"}})],1):t._e(),t._v(" "),e("div",{staticClass:"content"},[e("h1",{staticClass:"title"},[t._v(t._s(t.title))])])])}),[],!1,null,"52888952",null);a.a=s.exports},"3h8a":function(t,a,e){"use strict";e("SNyV")},"4QiP":function(t,a,e){var i=e("si/z");"string"==typeof i&&(i=[[t.i,i,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};e("aET+")(i,n);i.locals&&(t.exports=i.locals)},"6TPS":function(t,a,e){"use strict";var i=e("CjXH"),n={props:["data"],computed:{normalizedColumns:function(){return this.data.id&&delete this.data.id,Object.values(this.data)}}},s=(e("/nGJ"),e("KHd+")),o=Object(s.a)(n,(function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("tr",{staticClass:"table-row"},t._l(t.normalizedColumns,(function(a,i){return e("td",{key:i,staticClass:"table-cell"},[e("span",[t._v(t._s(a))])])})),0)}),[],!1,null,"d6678dd0",null).exports,r=e("vDqi"),l=e.n(r),c={name:"DatatableWrapper",props:["columns","scope","paginator","api","tableData"],components:{ChevronRightIcon:i.i,ChevronLeftIcon:i.h,DatatableCell:o,ChevronUpIcon:i.j},computed:{hasData:function(){return this.data&&this.data.data&&this.data.data.length>0},floatPages:function(){return[this.pageIndex-1,this.pageIndex,this.pageIndex+1]}},data:function(){return{data:void 0,isLoading:!0,pageIndex:1,filter:{sort:"DESC",field:void 0}}},methods:{goToPage:function(t){t>this.data.meta.last_page||0===t||(this.pageIndex=t,this.getPage(t))},sort:function(t,a){a&&(this.filter.field=t,"DESC"===this.filter.sort?this.filter.sort="ASC":"ASC"===this.filter.sort&&(this.filter.sort="DESC"),this.getPage(this.pageIndex))},getPage:function(t){var a=this;this.URI=this.api,this.paginator&&(this.URI=this.URI+"?page="+t),this.filter.field&&(this.URI=this.URI+(this.paginator?"&":"?")+"sort="+this.filter.field+"&direction="+this.filter.sort),this.isLoading=!0,l.a.get(this.URI).then((function(t){a.data=t.data,a.$emit("data",t.data)})).catch((function(){return a.$isSomethingWrong()})).finally((function(){a.$emit("init",!0),a.isLoading=!1}))}},created:function(){this.api&&this.getPage(this.pageIndex),this.tableData&&(this.data=this.tableData,this.isLoading=!1)}},d=(e("mHHt"),Object(s.a)(c,(function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"datatable"},[t.hasData?e("table",{staticClass:"table"},[e("thead",{staticClass:"table-header"},[e("tr",t._l(t.columns,(function(a,i){return a.hidden?t._e():e("th",{key:i,class:{sortable:a.sortable},on:{click:function(e){return t.sort(a.field,a.sortable)}}},[e("span",{staticClass:"text-theme dark-text-theme"},[t._v(t._s(a.label))]),t._v(" "),a.sortable?e("chevron-up-icon",{staticClass:"filter-arrow",class:{"arrow-down":"ASC"===t.filter.sort},attrs:{size:"14"}}):t._e()],1)})),0)]),t._v(" "),e("tbody",{staticClass:"table-body"},[t._l(t.data.data,(function(a){return t._t("default",[e("DatatableCell",{key:a.id,attrs:{data:a}})],{row:a})}))],2)]):t._e(),t._v(" "),t.isLoading||t.hasData?t._e():t._t("empty-page"),t._v(" "),t.paginator&&t.hasData?e("div",{staticClass:"paginator-wrapper"},[t.data.meta.total>20&&t.data.meta.last_page<=6?e("ul",{staticClass:"pagination"},[e("li",{staticClass:"page-item previous"},[e("a",{staticClass:"page-link",class:{disabled:0==t.pageIndex},on:{click:function(a){return t.goToPage(t.pageIndex-1)}}},[e("chevron-left-icon",{staticClass:"icon",attrs:{size:"14"}})],1)]),t._v(" "),t._l(6,(function(a,i){return e("li",{key:i,staticClass:"page-item",on:{click:function(e){return t.goToPage(a)}}},[e("a",{staticClass:"page-link",class:{active:t.pageIndex===a}},[t._v("\n "+t._s(a)+"\n ")])])})),t._v(" "),e("li",{staticClass:"page-item next"},[e("a",{staticClass:"page-link",class:{disabled:t.pageIndex+1==t.data.meta.last_page},on:{click:function(a){return t.goToPage(t.pageIndex+1)}}},[e("chevron-right-icon",{staticClass:"icon",attrs:{size:"14"}})],1)])],2):t._e(),t._v(" "),t.data.meta.total>20&&t.data.meta.last_page>6?e("ul",{staticClass:"pagination"},[e("li",{staticClass:"page-item previous"},[e("a",{staticClass:"page-link",class:{disabled:0==t.pageIndex},on:{click:function(a){return t.goToPage(t.pageIndex-1)}}},[e("chevron-left-icon",{staticClass:"icon",attrs:{size:"14"}})],1)]),t._v(" "),t.pageIndex>=5?e("li",{staticClass:"page-item",on:{click:function(a){return t.goToPage(1)}}},[e("a",{staticClass:"page-link"},[t._v("\n 1\n ")])]):t._e(),t._v(" "),t._l(5,(function(a,i){return t.pageIndex<5?e("li",{key:i,staticClass:"page-item",on:{click:function(e){return t.goToPage(a)}}},[e("a",{staticClass:"page-link",class:{active:t.pageIndex===a}},[t._v("\n "+t._s(a)+"\n ")])]):t._e()})),t._v(" "),t.pageIndex>=5?e("li",{staticClass:"page-item"},[e("a",{staticClass:"page-link"},[t._v("...")])]):t._e(),t._v(" "),t._l(t.floatPages,(function(a,i){return t.pageIndex>=5&&t.pageIndex<t.data.meta.last_page-3?e("li",{key:i,staticClass:"page-item",on:{click:function(e){return t.goToPage(a)}}},[e("a",{staticClass:"page-link",class:{active:t.pageIndex===a}},[t._v("\n "+t._s(a)+"\n ")])]):t._e()})),t._v(" "),t.pageIndex<t.data.meta.last_page-3?e("li",{staticClass:"page-item"},[e("a",{staticClass:"page-link"},[t._v("...")])]):t._e(),t._v(" "),t._l(5,(function(a,i){return t.pageIndex>t.data.meta.last_page-4?e("li",{key:i,staticClass:"page-item",on:{click:function(a){t.goToPage(t.data.meta.last_page-(4-i))}}},[e("a",{staticClass:"page-link",class:{active:t.pageIndex===t.data.meta.last_page-(4-i)}},[t._v("\n "+t._s(t.data.meta.last_page-(4-i))+"\n ")])]):t._e()})),t._v(" "),t.pageIndex<t.data.meta.last_page-3?e("li",{staticClass:"page-item",on:{click:function(a){return t.goToPage(t.data.meta.last_page)}}},[e("a",{staticClass:"page-link"},[t._v("\n "+t._s(t.data.meta.last_page)+"\n ")])]):t._e(),t._v(" "),e("li",{staticClass:"page-item next"},[e("a",{staticClass:"page-link",class:{disabled:t.pageIndex+1==t.data.meta.last_page},on:{click:function(a){return t.goToPage(t.pageIndex+1)}}},[e("chevron-right-icon",{staticClass:"icon",attrs:{size:"14"}})],1)])],2):t._e(),t._v(" "),e("span",{staticClass:"paginator-info"},[t._v(t._s(t.$t("datatable.paginate_info",{visible:t.data.meta.per_page,total:t.data.meta.total})))])]):t._e()],2)}),[],!1,null,"05a3148c",null));a.a=d.exports},"9v+d":function(t,a,e){"use strict";e("wcb+")},CLdG:function(t,a,e){(t.exports=e("I1BE")(!1)).push([t.i,".preview-list-icon line,.preview-list-icon rect{color:inherit}",""])},D62o:function(t,a,e){"use strict";e("xCqy");var i=e("CjXH"),n={name:"MobileHeader",props:["title"],components:{ChevronLeftIcon:i.h,MenuIcon:i.P},methods:{goBack:function(){this.$router.back()}}},s=(e("lpU+"),e("KHd+")),o=Object(s.a)(n,(function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("header",{staticClass:"mobile-header"},[e("div",{staticClass:"go-back",on:{click:t.goBack}},[e("chevron-left-icon",{staticClass:"icon",attrs:{size:"17"}})],1),t._v(" "),e("div",{staticClass:"location-name"},[t._v(t._s(t.title))]),t._v(" "),e("div",{staticClass:"mobile-menu",on:{click:function(a){return t.$showMobileMenu("user-navigation")}}},[e("menu-icon",{staticClass:"icon",attrs:{size:"17"}})],1)])}),[],!1,null,"0da6bf54",null);a.a=o.exports},Dwrf:function(t,a,e){"use strict";e("1zsi")},EeBR:function(t,a,e){(t.exports=e("I1BE")(!1)).push([t.i,".page-header[data-v-52888952]{display:flex;align-items:center;background:#fff;z-index:9;width:100%;position:sticky;top:0;padding-top:20px;padding-bottom:20px}.page-header .title[data-v-52888952]{font-size:1.125em;font-weight:700;color:#1b2539}.page-header .go-back[data-v-52888952]{margin-right:10px;cursor:pointer}.page-header .go-back svg[data-v-52888952]{vertical-align:middle;margin-top:-4px}@media only screen and (max-width:960px){.page-header .title[data-v-52888952]{font-size:1.125em}}@media only screen and (max-width:690px){.page-header[data-v-52888952]{display:none}}.dark .page-header[data-v-52888952]{background:#151515}.dark .page-header .title[data-v-52888952]{color:#bec6cf}.dark .page-header .icon path[data-v-52888952]{fill:#00bc7e}",""])},GELx:function(t,a,e){"use strict";var i={name:"DatatableCellImage",props:["image","title","description","image-size"]},n=(e("3h8a"),e("KHd+")),s=Object(n.a)(i,(function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"cell-image-thumbnail"},[t.image?e("div",{staticClass:"image",class:t.imageSize},[e("img",{attrs:{src:t.image,alt:t.title}}),t._v(" "),e("img",{staticClass:"blurred",attrs:{src:t.image,alt:t.title}})]):t._e(),t._v(" "),e("div",{staticClass:"info"},[t.title?e("b",{staticClass:"name"},[t._v(t._s(t.title))]):t._e(),t._v(" "),t.description?e("span",{staticClass:"description"},[t._v(t._s(t.description))]):t._e()])])}),[],!1,null,"985be382",null);a.a=s.exports},GIzx:function(t,a,e){"use strict";e("jPdv")},IS8h:function(t,a,e){(t.exports=e("I1BE")(!1)).push([t.i,".cell-image-thumbnail[data-v-985be382]{display:flex;align-items:center;cursor:pointer}.cell-image-thumbnail .image[data-v-985be382]{margin-right:20px;line-height:0;position:relative}.cell-image-thumbnail .image img[data-v-985be382]{line-height:0;width:48px;height:48px;border-radius:8px;z-index:1;position:relative}.cell-image-thumbnail .image img.blurred[data-v-985be382]{position:absolute;left:0;top:2px;z-index:0;filter:blur(8px);opacity:.5}.cell-image-thumbnail .image.small img[data-v-985be382]{width:32px;height:32px}.cell-image-thumbnail .info .description[data-v-985be382],.cell-image-thumbnail .info .name[data-v-985be382]{max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}.cell-image-thumbnail .info .name[data-v-985be382]{font-size:.9375em;line-height:1;color:#1b2539}.cell-image-thumbnail .info .description[data-v-985be382]{color:rgba(27,37,57,.7);font-size:.75em}.dark .cell-image-thumbnail .image img.blurred[data-v-985be382]{display:none}.dark .cell-image-thumbnail .info .name[data-v-985be382]{color:#bec6cf}.dark .cell-image-thumbnail .info .description[data-v-985be382]{color:#7d858c}",""])},JsZR:function(t,a,e){"use strict";e("mGdo")},KJww:function(t,a,e){var i=e("c6IS");"string"==typeof i&&(i=[[t.i,i,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};e("aET+")(i,n);i.locals&&(t.exports=i.locals)},KutZ:function(t,a,e){var i=e("EeBR");"string"==typeof i&&(i=[[t.i,i,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};e("aET+")(i,n);i.locals&&(t.exports=i.locals)},NEsl:function(t,a,e){"use strict";e("4QiP")},NEz6:function(t,a,e){"use strict";e("KJww")},Qak4:function(t,a,e){var i=e("qESJ");"string"==typeof i&&(i=[[t.i,i,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};e("aET+")(i,n);i.locals&&(t.exports=i.locals)},S6kv:function(t,a,e){(t.exports=e("I1BE")(!1)).push([t.i,".datatable[data-v-05a3148c]{height:100%}.table-row[data-v-05a3148c]{transition:all .3s ease}.table-row-enter[data-v-05a3148c],.table-row-leave-to[data-v-05a3148c]{opacity:0;transform:translateY(-100%)}.table-row-leave-active[data-v-05a3148c]{position:absolute}.table[data-v-05a3148c]{border-collapse:collapse;overflow-x:auto}.table[data-v-05a3148c],.table tr[data-v-05a3148c]{width:100%}.table tr td[data-v-05a3148c]:first-child,.table tr th[data-v-05a3148c]:first-child{padding-left:15px}.table tr td[data-v-05a3148c]:last-child,.table tr th[data-v-05a3148c]:last-child{padding-right:15px;text-align:right}.table .table-header[data-v-05a3148c]{margin-bottom:10px}.table .table-header tr td[data-v-05a3148c],.table .table-header tr th[data-v-05a3148c]{padding:12px;text-align:left}.table .table-header tr td span[data-v-05a3148c],.table .table-header tr th span[data-v-05a3148c]{font-weight:700;font-size:.75em;white-space:nowrap}.table .table-header tr td.sortable[data-v-05a3148c],.table .table-header tr th.sortable[data-v-05a3148c]{cursor:pointer}.table .table-header tr td.sortable:hover .filter-arrow[data-v-05a3148c],.table .table-header tr th.sortable:hover .filter-arrow[data-v-05a3148c]{opacity:1}.table .table-header tr td[data-v-05a3148c]:last-child,.table .table-header tr th[data-v-05a3148c]:last-child{text-align:right}.table .table-header .filter-arrow[data-v-05a3148c]{vertical-align:middle;margin-left:8px;transition:all .3s ease;opacity:0}.table .table-header .filter-arrow path[data-v-05a3148c]{fill:rgba(27,37,57,.7)}.table .table-header .filter-arrow.arrow-down[data-v-05a3148c]{transform:rotate(180deg)}.table .table-header span[data-v-05a3148c]{font-size:13px;font-weight:700}.table .table-body tr[data-v-05a3148c]{border-radius:8px}.table .table-body tr[data-v-05a3148c]:hover{background:#f4f5f6}.table .table-body tr td[data-v-05a3148c],.table .table-body tr th[data-v-05a3148c]{padding:12px}.table .table-body tr td:last-child button[data-v-05a3148c],.table .table-body tr th:last-child button[data-v-05a3148c]{margin-right:0}.table .table-body a.page-link[data-v-05a3148c],.table .table-body span[data-v-05a3148c]{font-size:.9375em;font-weight:700;padding:10px 35px 10px 0;display:block;white-space:nowrap}.pagination .page-item[data-v-05a3148c]{padding:3px;display:inline-block}.pagination .page-link[data-v-05a3148c]{width:30px;height:30px;display:block;color:#1b2539;border-radius:6px;text-align:center;line-height:2.4;font-weight:700;font-size:13px;cursor:pointer;transition:all .15s ease}.pagination .page-link .icon[data-v-05a3148c]{vertical-align:middle;margin-top:-2px}.pagination .page-link.active[data-v-05a3148c],.pagination .page-link[data-v-05a3148c]:hover:not(.disabled){background:#f4f5f6;color:#1b2539}.pagination .page-link.disabled[data-v-05a3148c]{background:transparent;cursor:default}.pagination .page-link.disabled svg path[data-v-05a3148c]{fill:rgba(27,37,57,.7)}.paginator-wrapper[data-v-05a3148c]{margin-top:30px;margin-bottom:40px;display:flex;justify-content:space-between;align-items:center}.paginator-wrapper .paginator-info[data-v-05a3148c]{font-size:13px;color:rgba(27,37,57,.7)}.user-preview[data-v-05a3148c]{display:flex;align-items:center;cursor:pointer}.user-preview img[data-v-05a3148c]{width:45px;margin-right:22px}@media only screen and (max-width:690px){.paginator-wrapper[data-v-05a3148c]{display:block;text-align:center}.paginator-wrapper .paginator-info[data-v-05a3148c]{margin-top:10px;display:block}}.dark .table .table-body th[data-v-05a3148c]:hover,.dark .table .table-body tr[data-v-05a3148c]:hover{background:#1e2024}.dark .pagination .page-link[data-v-05a3148c],.dark .paginator-wrapper .paginator-info[data-v-05a3148c]{color:#7d858c}.dark .pagination .page-link svg polyline[data-v-05a3148c]{stroke:#bec6cf}.dark .pagination .page-link.active[data-v-05a3148c],.dark .pagination .page-link[data-v-05a3148c]:hover:not(.disabled){color:#00bc7e;background:rgba(0,188,126,.1)}.dark .pagination .page-link.disabled[data-v-05a3148c]{background:transparent;cursor:default}.dark .pagination .page-link.disabled svg polyline[data-v-05a3148c]{stroke:#7d858c}",""])},SNyV:function(t,a,e){var i=e("IS8h");"string"==typeof i&&(i=[[t.i,i,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};e("aET+")(i,n);i.locals&&(t.exports=i.locals)},T0k5:function(t,a,e){var i=e("uv/y");"string"==typeof i&&(i=[[t.i,i,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};e("aET+")(i,n);i.locals&&(t.exports=i.locals)},THmQ:function(t,a,e){"use strict";var i={name:"SectionTitle"},n=(e("NEz6"),e("KHd+")),s=Object(n.a)(i,(function(){var t=this.$createElement;return(this._self._c||t)("b",{staticClass:"text-label"},[this._t("default")],2)}),[],!1,null,"9cac37aa",null);a.a=s.exports},TnXf:function(t,a,e){(t.exports=e("I1BE")(!1)).push([t.i,".color-label[data-v-ce9835ba]{text-transform:capitalize;font-size:.75em;display:inline-block;border-radius:6px;font-weight:700;padding:4px 6px}.color-label.purple[data-v-ce9835ba]{color:#9d66fe;background:rgba(157,102,254,.1)}.color-label.yellow[data-v-ce9835ba]{color:#ffbd2d;background:rgba(255,189,45,.1)}.color-label.green[data-v-ce9835ba]{color:#00bc7e;background:rgba(0,188,126,.1)}.color-label.red[data-v-ce9835ba]{color:#fd397a;background:rgba(253,57,122,.1)}",""])},VWrN:function(t,a,e){(t.exports=e("I1BE")(!1)).push([t.i,".preview-list-icon line,.preview-list-icon path{color:inherit}",""])},WFjI:function(t,a,e){"use strict";e("JsZR");var i=e("KHd+"),n=Object(i.a)({},(function(){var t=this.$createElement,a=this._self._c||t;return a("svg",{staticClass:"preview-list-icon",attrs:{fill:"none",stroke:"currentColor","stroke-width":"1.5","fill-rule":"evenodd","stroke-linecap":"round","stroke-linejoin":"round",width:"15px",height:"15px",viewBox:"0 0 20 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[a("rect",{attrs:{x:"9.77777778",y:"0",width:"6.22222222",height:"6.22222222"}}),this._v(" "),a("rect",{attrs:{x:"9.77777778",y:"9.77777778",width:"6.22222222",height:"6.22222222"}}),this._v(" "),a("line",{attrs:{x1:"0",y1:"2",x2:"6",y2:"2"}}),this._v(" "),a("line",{attrs:{x1:"0",y1:"8",x2:"6",y2:"8"}}),this._v(" "),a("line",{attrs:{x1:"0",y1:"14",x2:"6",y2:"14"}})])}),[],!1,null,null,null);a.a=n.exports},ZIRg:function(t,a,e){"use strict";e.r(a);var i=e("GELx"),n=e("6TPS"),s=e("t5U/"),o=e("D62o"),r=e("THmQ"),l=e("Nv84"),c=e("CjXH"),d=e("2Sb1"),p=e("kPoH"),b=e("zTYo"),g=e("L2JU");e("vDqi");function u(t,a){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);a&&(i=i.filter((function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable}))),e.push.apply(e,i)}return e}function v(t,a,e){return a in t?Object.defineProperty(t,a,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[a]=e,t}var h={name:"Profile",components:{DatatableCellImage:i.a,MobileActionButton:s.a,DatatableWrapper:n.a,SectionTitle:r.a,MobileHeader:o.a,Trash2Icon:c.ib,PageHeader:d.a,ButtonBase:l.a,ColorLabel:p.a,Edit2Icon:c.u,Spinner:b.a},computed:function(t){for(var a=1;a<arguments.length;a++){var e=null!=arguments[a]?arguments[a]:{};a%2?u(Object(e),!0).forEach((function(a){v(t,a,e[a])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):u(Object(e)).forEach((function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(e,a))}))}return t}({},Object(g.b)(["config"])),data:function(){return{isLoading:!0,columns:void 0}},methods:{getRoleColor:function(t){switch(t){case"admin":return"purple";case"user":return"yellow"}}},created:function(){this.columns=[{label:this.$t("admin_page_user.table.name"),field:"email",sortable:!0},{label:this.$t("admin_page_user.table.role"),field:"role",sortable:!0},{label:this.$t("admin_page_user.table.plan"),field:"subscription",sortable:!1,hidden:!this.config.isSaaS},{label:this.$t("admin_page_user.table.storage_used"),field:"used",sortable:!0},{label:this.$t("admin_page_user.table.max_storage_amount"),field:"settings.max_storage_amount",sortable:!0,hidden:!this.config.storageLimit},{label:this.$t("admin_page_user.table.created_at"),field:"created_at",sortable:!0},{label:this.$t("admin_page_user.table.action"),field:"data.action",sortable:!1}]}},f=(e("NEsl"),e("KHd+")),m=Object(f.a)(h,(function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{attrs:{id:"single-page"}},[e("div",{attrs:{id:"page-content"}},[e("MobileHeader",{attrs:{title:t.$t(t.$router.currentRoute.meta.title)}}),t._v(" "),e("PageHeader",{attrs:{title:t.$t(t.$router.currentRoute.meta.title)}}),t._v(" "),e("div",{staticClass:"content-page"},[e("div",{staticClass:"table-tools"},[e("div",{staticClass:"buttons"},[e("router-link",{attrs:{to:{name:"UserCreate"}}},[e("MobileActionButton",{attrs:{icon:"user-plus"}},[t._v("\n "+t._s(t.$t("admin_page_user.create_user.submit"))+"\n ")])],1)],1)]),t._v(" "),e("DatatableWrapper",{staticClass:"table table-users",attrs:{api:"/api/admin/users",paginator:!0,columns:t.columns},on:{init:function(a){t.isLoading=!1}},scopedSlots:t._u([{key:"default",fn:function(a){var i=a.row;return[e("tr",[e("td",{staticStyle:{"min-width":"320px"}},[e("router-link",{attrs:{to:{name:"UserDetail",params:{id:i.data.id}}}},[e("DatatableCellImage",{attrs:{image:i.data.relationships.settings.data.attributes.avatar.sm,title:i.data.relationships.settings.data.attributes.name,description:i.data.attributes.email}})],1)],1),t._v(" "),e("td",[e("ColorLabel",{attrs:{color:t.getRoleColor(i.data.attributes.role)}},[t._v("\n "+t._s(i.data.attributes.role)+"\n ")])],1),t._v(" "),t.config.isSaaS?e("td",[i.data.attributes.subscription?e("span",{staticClass:"cell-item"},[t._v("\n "+t._s(t.$t("global.premium"))+"\n ")]):e("span",{staticClass:"cell-item"},[t._v("\n "+t._s(t.$t("global.free"))+"\n ")])]):t._e(),t._v(" "),e("td",[0!==i.data.attributes.storage.capacity?e("span",{staticClass:"cell-item"},[t._v("\n "+t._s(i.data.attributes.storage.used_formatted)+"\n ")]):t._e(),t._v(" "),0==i.data.attributes.storage.capacity?e("span",{staticClass:"cell-item"},[t._v("\n -\n ")]):t._e()]),t._v(" "),t.config.storageLimit?e("td",[0!==i.data.attributes.storage.capacity?e("span",{staticClass:"cell-item"},[t._v("\n "+t._s(i.data.attributes.storage.capacity_formatted)+"\n ")]):t._e(),t._v(" "),0==i.data.attributes.storage.capacity?e("span",{staticClass:"cell-item"},[t._v("\n -\n ")]):t._e()]):t._e(),t._v(" "),e("td",[e("span",{staticClass:"cell-item"},[t._v("\n "+t._s(i.data.attributes.created_at_formatted)+"\n ")])]),t._v(" "),e("td",[e("div",{staticClass:"action-icons"},[e("router-link",{attrs:{to:{name:"UserDetail",params:{id:i.data.id}}}},[e("Edit2Icon",{staticClass:"icon icon-edit",attrs:{size:"15"}})],1),t._v(" "),e("router-link",{attrs:{to:{name:"UserDelete",params:{id:i.data.id}}}},[e("Trash2Icon",{staticClass:"icon icon-trash",attrs:{size:"15"}})],1)],1)])])]}}])})],1)],1),t._v(" "),t.isLoading?e("div",{attrs:{id:"loader"}},[e("Spinner")],1):t._e()])}),[],!1,null,"2bf023d5",null);a.default=m.exports},ZbWP:function(t,a,e){(t.exports=e("I1BE")(!1)).push([t.i,".mobile-action-button[data-v-154ed515]{background:#f4f5f6;margin-right:8px;border-radius:8px;padding:7px 14px;cursor:pointer;border:none;transition:all .15s ease}.mobile-action-button .flex[data-v-154ed515]{display:flex;align-items:center}.mobile-action-button .icon[data-v-154ed515]{font-size:.875em}.mobile-action-button .icon circle[data-v-154ed515],.mobile-action-button .icon line[data-v-154ed515],.mobile-action-button .icon path[data-v-154ed515],.mobile-action-button .icon polygon[data-v-154ed515],.mobile-action-button .icon polyline[data-v-154ed515],.mobile-action-button .icon rect[data-v-154ed515]{transition:all .15s ease}.mobile-action-button .label[data-v-154ed515]{transition:all .15s ease;font-size:.875em;font-weight:700;color:#1b2539;padding-left:10px}.mobile-action-button[data-v-154ed515]:active{transform:scale(.95)}.dark .mobile-action-button[data-v-154ed515]{background:#1e2024}.dark .mobile-action-button circle[data-v-154ed515],.dark .mobile-action-button line[data-v-154ed515],.dark .mobile-action-button path[data-v-154ed515],.dark .mobile-action-button polygon[data-v-154ed515],.dark .mobile-action-button polyline[data-v-154ed515],.dark .mobile-action-button rect[data-v-154ed515]{color:inherit}.dark .mobile-action-button .label[data-v-154ed515]{color:#bec6cf}",""])},avKw:function(t,a,e){var i=e("S6kv");"string"==typeof i&&(i=[[t.i,i,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};e("aET+")(i,n);i.locals&&(t.exports=i.locals)},c6IS:function(t,a,e){(t.exports=e("I1BE")(!1)).push([t.i,".text-label[data-v-9cac37aa]{font-size:.75em;color:#afafaf;font-weight:700;display:block;margin-bottom:20px}.dark .text-label[data-v-9cac37aa]{color:#00bc7e}",""])},"gn/r":function(t,a,e){"use strict";e("GIzx");var i=e("KHd+"),n=Object(i.a)({},(function(){var t=this.$createElement,a=this._self._c||t;return a("svg",{staticClass:"preview-list-icon",attrs:{fill:"none",stroke:"currentColor","stroke-width":"1.5","fill-rule":"evenodd","stroke-linecap":"round","stroke-linejoin":"round",width:"15px",height:"15px",viewBox:"0 0 17 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[a("path",{attrs:{d:"M14.2729998,10.7729998 C15.6774712,10.0073227 16.384111,8.38688297 15.9895447,6.83668332 C15.5949785,5.28648367 14.1996249,4.20105605 12.5999998,4.19999993 L11.7179998,4.19999993 C11.1377566,1.9556703 9.23470173,0.300843012 6.93154234,0.0378706728 C4.62838295,-0.225101666 2.40127934,0.958148431 1.33005562,3.01391529 C0.258831904,5.06968215 0.564955244,7.57295196 2.09999996,9.30999984",id:"Path"}}),this._v(" "),a("line",{attrs:{x1:"8.5",y1:"7",x2:"8.5",y2:"12",id:"Path"}}),this._v(" "),a("line",{attrs:{x1:"6",y1:"9.5",x2:"11",y2:"9.5",id:"Path"}})])}),[],!1,null,null,null);a.a=n.exports},jPdv:function(t,a,e){var i=e("VWrN");"string"==typeof i&&(i=[[t.i,i,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};e("aET+")(i,n);i.locals&&(t.exports=i.locals)},kPoH:function(t,a,e){"use strict";var i={name:"ColorLabel",props:["color"]},n=(e("Dwrf"),e("KHd+")),s=Object(n.a)(i,(function(){var t=this.$createElement;return(this._self._c||t)("b",{staticClass:"color-label",class:this.color},[this._t("default")],2)}),[],!1,null,"ce9835ba",null);a.a=s.exports},"lpU+":function(t,a,e){"use strict";e("Qak4")},mGdo:function(t,a,e){var i=e("CLdG");"string"==typeof i&&(i=[[t.i,i,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};e("aET+")(i,n);i.locals&&(t.exports=i.locals)},mHHt:function(t,a,e){"use strict";e("avKw")},qESJ:function(t,a,e){(t.exports=e("I1BE")(!1)).push([t.i,".mobile-header[data-v-0da6bf54]{padding:10px 0;text-align:center;background:#fff;position:sticky;display:none;z-index:6;top:0}.mobile-header>div[data-v-0da6bf54]{flex-grow:1;align-self:center;white-space:nowrap}.mobile-header .go-back[data-v-0da6bf54]{text-align:left}.mobile-header .location-name[data-v-0da6bf54]{line-height:1;text-align:center;width:100%;vertical-align:middle;font-size:.9375em;color:#1b2539;font-weight:700;max-width:220px;overflow:hidden;text-overflow:ellipsis;display:inline-block}.mobile-header .mobile-menu[data-v-0da6bf54]{text-align:right}.mobile-header .icon[data-v-0da6bf54]{vertical-align:middle;margin-top:-4px}@media only screen and (max-width:690px){.mobile-header[data-v-0da6bf54]{display:flex;margin-bottom:15px}}.dark .mobile-header[data-v-0da6bf54]{background:#151515}.dark .mobile-header .location-name[data-v-0da6bf54]{color:#bec6cf}",""])},"si/z":function(t,a,e){(t.exports=e("I1BE")(!1)).push([t.i,".table-tools[data-v-2bf023d5]{background:#fff;display:flex;justify-content:space-between;padding:15px 0 10px;position:sticky;top:40px;z-index:9}.table .cell-item[data-v-2bf023d5]{font-size:.9375em;white-space:nowrap}@media only screen and (max-width:690px){.table-tools[data-v-2bf023d5]{padding:0 0 5px}}.dark .table-tools[data-v-2bf023d5]{background:#151515}",""])},"t5U/":function(t,a,e){"use strict";var i=e("CjXH"),n=e("gn/r"),s=e("WFjI"),o={name:"MobileActionButton",props:["icon"],components:{UserCheckIcon:i.mb,HardDriveIcon:i.F,UploadCloudIcon:i.lb,LinkIcon:i.L,Trash2Icon:i.ib,UsersIcon:i.qb,CheckSquareIcon:i.f,DollarSignIcon:i.r,CreditCardIcon:i.p,FolderPlusIcon:i.C,RefreshCwIcon:i.Z,CloudPlusIcon:n.a,UserPlusIcon:i.pb,DownloadIcon:i.t,SortingIcon:s.a,XSquareIcon:i.tb,FilterIcon:i.A,SearchIcon:i.ab,CheckIcon:i.e,TrashIcon:i.jb,PlusIcon:i.W,CopyIcon:i.n,ListIcon:i.M,GridIcon:i.E}},r=(e("9v+d"),e("KHd+")),l=Object(r.a)(o,(function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("button",{staticClass:"mobile-action-button"},[e("div",{staticClass:"flex"},["hard-drive"===t.icon?e("hard-drive-icon",{staticClass:"icon dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"upload-cloud"===t.icon?e("upload-cloud-icon",{staticClass:"icon dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"share"===t.icon?e("link-icon",{staticClass:"icon dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"trash2"===t.icon?e("trash2-icon",{staticClass:"icon dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"users"===t.icon?e("users-icon",{staticClass:"icon dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"user-check"===t.icon?e("user-check-icon",{staticClass:"icon dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"search"===t.icon?e("search-icon",{staticClass:"icon dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"refresh"===t.icon?e("refresh-cw-icon",{staticClass:"icon dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"download"===t.icon?e("download-icon",{staticClass:"icon dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"copy"===t.icon?e("copy-icon",{staticClass:"icon dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"filter"===t.icon?e("filter-icon",{staticClass:"icon dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"credit-card"===t.icon?e("credit-card-icon",{staticClass:"icon dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"folder-plus"===t.icon?e("folder-plus-icon",{staticClass:"icon dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"th-list"===t.icon?e("list-icon",{staticClass:"icon dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"trash"===t.icon?e("trash-icon",{staticClass:"icon dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"th"===t.icon?e("grid-icon",{staticClass:"icon dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"user-plus"===t.icon?e("user-plus-icon",{staticClass:"icon dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"plus"===t.icon?e("plus-icon",{staticClass:"icon dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"check-square"===t.icon?e("check-square-icon",{staticClass:"icon dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"x-square"===t.icon?e("x-square-icon",{staticClass:"icon dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"check"===t.icon?e("check-icon",{staticClass:"icon dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"dollar-sign"===t.icon?e("dollar-sign-icon",{staticClass:"icon dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"preview-sorting"===t.icon?e("sorting-icon",{staticClass:"icon dark-text-theme preview-sorting"}):t._e(),t._v(" "),"cloud-plus"===t.icon?e("cloud-plus-icon",{staticClass:"icon dark-text-theme preview-sorting"}):t._e(),t._v(" "),t.$slots.default?e("span",{staticClass:"label"},[t._t("default")],2):t._e()],1)])}),[],!1,null,"154ed515",null);a.a=l.exports},"uv/y":function(t,a,e){(t.exports=e("I1BE")(!1)).push([t.i,".table-row[data-v-d6678dd0]{border-radius:8px}.table-row[data-v-d6678dd0]:hover{background:#f4f5f6}.table-row .table-cell[data-v-d6678dd0]{padding-top:15px;padding-bottom:15px}.table-row .table-cell[data-v-d6678dd0]:first-child{padding-left:15px}.table-row .table-cell[data-v-d6678dd0]:last-child{padding-right:15px;text-align:right}.table-row .table-cell span[data-v-d6678dd0]{font-size:1em;font-weight:700}",""])},"wcb+":function(t,a,e){var i=e("ZbWP");"string"==typeof i&&(i=[[t.i,i,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};e("aET+")(i,n);i.locals&&(t.exports=i.locals)},xdXa:function(t,a,e){"use strict";e("KutZ")}}]);