Files
vuefilemanager/public/chunks/users.js
2020-10-23 16:14:34 +02:00

1 line
25 KiB
JavaScript
Vendored

(window.webpackJsonp=window.webpackJsonp||[]).push([[62],{"+8kt":function(a,t,e){(a.exports=e("I1BE")(!1)).push([a.i,".color-label[data-v-31b977a5]{text-transform:capitalize;font-size:.75em;display:inline-block;border-radius:6px;font-weight:700;padding:4px 6px}.color-label.purple[data-v-31b977a5]{color:#9d66fe;background:rgba(157,102,254,.1)}.color-label.yellow[data-v-31b977a5]{color:#ffbd2d;background:rgba(255,189,45,.1)}.color-label.green[data-v-31b977a5]{color:#00bc7e;background:rgba(0,188,126,.1)}.color-label.red[data-v-31b977a5]{color:#fd397a;background:rgba(253,57,122,.1)}",""])},"0991":function(a,t,e){"use strict";var i=e("ckMH");e.n(i).a},"2Sb1":function(a,t,e){"use strict";var i={name:"PageHeader",props:["title","canBack"],components:{ChevronLeftIcon:e("CjXH").d}},n=(e("Z3t9"),e("KHd+")),o=Object(n.a)(i,(function(){var a=this,t=a.$createElement,e=a._self._c||t;return e("div",{staticClass:"page-header"},[a.canBack?e("div",{staticClass:"go-back",on:{click:function(t){return a.$router.back()}}},[e("chevron-left-icon",{attrs:{size:"17"}})],1):a._e(),a._v(" "),e("div",{staticClass:"content"},[e("h1",{staticClass:"title"},[a._v(a._s(a.title))])])])}),[],!1,null,"c3ec4364",null);t.a=o.exports},"3gXB":function(a,t,e){(a.exports=e("I1BE")(!1)).push([a.i,".table-tools[data-v-c88274ae]{background:#fff;display:flex;justify-content:space-between;padding:15px 0 10px;position:-webkit-sticky;position:sticky;top:40px;z-index:9}.table .cell-item[data-v-c88274ae]{font-size:.9375em;white-space:nowrap}@media only screen and (max-width:690px){.table-tools[data-v-c88274ae]{padding:0 0 5px}}@media (prefers-color-scheme:dark){.table-tools[data-v-c88274ae]{background:#111314}}",""])},"5QsV":function(a,t,e){(a.exports=e("I1BE")(!1)).push([a.i,".datatable[data-v-5aa9c0fb]{height:100%}.table-row[data-v-5aa9c0fb]{transition:all .3s ease}.table-row-enter[data-v-5aa9c0fb],.table-row-leave-to[data-v-5aa9c0fb]{opacity:0;transform:translateY(-100%)}.table-row-leave-active[data-v-5aa9c0fb]{position:absolute}.table[data-v-5aa9c0fb]{border-collapse:collapse;overflow-x:auto}.table[data-v-5aa9c0fb],.table tr[data-v-5aa9c0fb]{width:100%}.table tr td[data-v-5aa9c0fb]:first-child,.table tr th[data-v-5aa9c0fb]:first-child{padding-left:15px}.table tr td[data-v-5aa9c0fb]:last-child,.table tr th[data-v-5aa9c0fb]:last-child{padding-right:15px;text-align:right}.table .table-header[data-v-5aa9c0fb]{margin-bottom:10px}.table .table-header tr td[data-v-5aa9c0fb],.table .table-header tr th[data-v-5aa9c0fb]{padding:12px;text-align:left}.table .table-header tr td span[data-v-5aa9c0fb],.table .table-header tr th span[data-v-5aa9c0fb]{color:#00bc7e;font-weight:700;font-size:.75em;white-space:nowrap}.table .table-header tr td.sortable[data-v-5aa9c0fb],.table .table-header tr th.sortable[data-v-5aa9c0fb]{cursor:pointer}.table .table-header tr td.sortable:hover .filter-arrow[data-v-5aa9c0fb],.table .table-header tr th.sortable:hover .filter-arrow[data-v-5aa9c0fb]{opacity:1}.table .table-header tr td[data-v-5aa9c0fb]:last-child,.table .table-header tr th[data-v-5aa9c0fb]:last-child{text-align:right}.table .table-header .filter-arrow[data-v-5aa9c0fb]{vertical-align:middle;margin-left:8px;transition:all .3s ease;opacity:0}.table .table-header .filter-arrow path[data-v-5aa9c0fb]{fill:rgba(27,37,57,.7)}.table .table-header .filter-arrow.arrow-down[data-v-5aa9c0fb]{transform:rotate(180deg)}.table .table-header span[data-v-5aa9c0fb]{font-size:13px;color:rgba(27,37,57,.7);font-weight:700}.table .table-body tr[data-v-5aa9c0fb]{border-radius:8px}.table .table-body tr[data-v-5aa9c0fb]:hover{background:#f4f5f6}.table .table-body tr td[data-v-5aa9c0fb],.table .table-body tr th[data-v-5aa9c0fb]{padding:12px}.table .table-body tr td:last-child button[data-v-5aa9c0fb],.table .table-body tr th:last-child button[data-v-5aa9c0fb]{margin-right:0}.table .table-body a.page-link[data-v-5aa9c0fb],.table .table-body span[data-v-5aa9c0fb]{font-size:.9375em;font-weight:700;padding:10px 35px 10px 0;display:block;white-space:nowrap}.pagination .page-item[data-v-5aa9c0fb]{padding:3px;display:inline-block}.pagination .page-link[data-v-5aa9c0fb]{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-5aa9c0fb]{vertical-align:middle;margin-top:-2px}.pagination .page-link.active[data-v-5aa9c0fb],.pagination .page-link[data-v-5aa9c0fb]:hover:not(.disabled){background:#f4f5f6;color:#1b2539}.pagination .page-link.disabled[data-v-5aa9c0fb]{background:transparent;cursor:default}.pagination .page-link.disabled svg path[data-v-5aa9c0fb]{fill:rgba(27,37,57,.7)}.paginator-wrapper[data-v-5aa9c0fb]{margin-top:30px;margin-bottom:40px;display:flex;justify-content:space-between;align-items:center}.paginator-wrapper .paginator-info[data-v-5aa9c0fb]{font-size:13px;color:rgba(27,37,57,.7)}.user-preview[data-v-5aa9c0fb]{display:flex;align-items:center;cursor:pointer}.user-preview img[data-v-5aa9c0fb]{width:45px;margin-right:22px}@media only screen and (max-width:690px){.paginator-wrapper[data-v-5aa9c0fb]{display:block;text-align:center}.paginator-wrapper .paginator-info[data-v-5aa9c0fb]{margin-top:10px;display:block}}@media (prefers-color-scheme:dark){.table .table-header tr td span[data-v-5aa9c0fb],.table .table-header tr th span[data-v-5aa9c0fb]{color:#00bc7e}.table .table-body th[data-v-5aa9c0fb]:hover,.table .table-body tr[data-v-5aa9c0fb]:hover{background:#1e2024}.pagination .page-link[data-v-5aa9c0fb],.paginator-wrapper .paginator-info[data-v-5aa9c0fb]{color:#7d858c}.pagination .page-link svg polyline[data-v-5aa9c0fb]{stroke:#bec6cf}.pagination .page-link.active[data-v-5aa9c0fb],.pagination .page-link[data-v-5aa9c0fb]:hover:not(.disabled){color:#00bc7e;background:rgba(0,188,126,.1)}.pagination .page-link.disabled[data-v-5aa9c0fb]{background:transparent;cursor:default}.pagination .page-link.disabled svg polyline[data-v-5aa9c0fb]{stroke:#7d858c}}",""])},"6TPS":function(a,t,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)}}},o=(e("rta+"),e("KHd+")),l=Object(o.a)(n,(function(){var a=this,t=a.$createElement,e=a._self._c||t;return e("tr",{staticClass:"table-row"},a._l(a.normalizedColumns,(function(t,i){return e("td",{key:i,staticClass:"table-cell"},[e("span",[a._v(a._s(t))])])})),0)}),[],!1,null,"1b13364c",null).exports,s=(e("LvDl"),e("vDqi")),r=e.n(s),c={name:"DatatableWrapper",props:["columns","scope","paginator","api","tableData"],components:{ChevronRightIcon:i.e,ChevronLeftIcon:i.d,DatatableCell:l,ChevronUpIcon:i.f},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(a){a>this.data.meta.last_page||0===a||(this.pageIndex=a,this.getPage(a))},sort:function(a,t){t&&(this.filter.field=a,"DESC"===this.filter.sort?this.filter.sort="ASC":"ASC"===this.filter.sort&&(this.filter.sort="DESC"),this.getPage(this.pageIndex))},getPage:function(a){var t=this;this.URI=this.api,this.paginator&&(this.URI=this.URI+"?page="+a),this.filter.field&&(this.URI=this.URI+(this.paginator?"&":"?")+"sort="+this.filter.field+"&direction="+this.filter.sort),this.isLoading=!0,r.a.get(this.URI).then((function(a){t.data=a.data,t.$emit("data",a.data)})).catch((function(){return t.$isSomethingWrong()})).finally((function(){t.$emit("init",!0),t.isLoading=!1}))}},created:function(){this.api&&this.getPage(this.pageIndex),this.tableData&&(this.data=this.tableData,this.isLoading=!1)}},d=(e("cFxL"),Object(o.a)(c,(function(){var a=this,t=a.$createElement,e=a._self._c||t;return e("div",{staticClass:"datatable"},[a.hasData?e("table",{staticClass:"table"},[e("thead",{staticClass:"table-header"},[e("tr",a._l(a.columns,(function(t,i){return t.hidden?a._e():e("th",{key:i,class:{sortable:t.sortable},on:{click:function(e){return a.sort(t.field,t.sortable)}}},[e("span",[a._v(a._s(t.label))]),a._v(" "),t.sortable?e("chevron-up-icon",{staticClass:"filter-arrow",class:{"arrow-down":"ASC"===a.filter.sort},attrs:{size:"14"}}):a._e()],1)})),0)]),a._v(" "),e("tbody",{staticClass:"table-body"},[a._l(a.data.data,(function(t){return a._t("default",[e("DatatableCell",{key:t.id,attrs:{data:t}})],{row:t})}))],2)]):a._e(),a._v(" "),a.isLoading||a.hasData?a._e():a._t("empty-page"),a._v(" "),a.paginator&&a.hasData?e("div",{staticClass:"paginator-wrapper"},[a.data.meta.total>20&&a.data.meta.last_page<=6?e("ul",{staticClass:"pagination"},[e("li",{staticClass:"page-item previous"},[e("a",{staticClass:"page-link",class:{disabled:0==a.pageIndex},on:{click:function(t){return a.goToPage(a.pageIndex-1)}}},[e("chevron-left-icon",{staticClass:"icon",attrs:{size:"14"}})],1)]),a._v(" "),a._l(6,(function(t,i){return e("li",{key:i,staticClass:"page-item",on:{click:function(e){return a.goToPage(t)}}},[e("a",{staticClass:"page-link",class:{active:a.pageIndex===t}},[a._v("\n "+a._s(t)+"\n ")])])})),a._v(" "),e("li",{staticClass:"page-item next"},[e("a",{staticClass:"page-link",class:{disabled:a.pageIndex+1==a.data.meta.last_page},on:{click:function(t){return a.goToPage(a.pageIndex+1)}}},[e("chevron-right-icon",{staticClass:"icon",attrs:{size:"14"}})],1)])],2):a._e(),a._v(" "),a.data.meta.total>20&&a.data.meta.last_page>6?e("ul",{staticClass:"pagination"},[e("li",{staticClass:"page-item previous"},[e("a",{staticClass:"page-link",class:{disabled:0==a.pageIndex},on:{click:function(t){return a.goToPage(a.pageIndex-1)}}},[e("chevron-left-icon",{staticClass:"icon",attrs:{size:"14"}})],1)]),a._v(" "),a.pageIndex>=5?e("li",{staticClass:"page-item",on:{click:function(t){return a.goToPage(1)}}},[e("a",{staticClass:"page-link"},[a._v("\n 1\n ")])]):a._e(),a._v(" "),a._l(5,(function(t,i){return a.pageIndex<5?e("li",{key:i,staticClass:"page-item",on:{click:function(e){return a.goToPage(t)}}},[e("a",{staticClass:"page-link",class:{active:a.pageIndex===t}},[a._v("\n "+a._s(t)+"\n ")])]):a._e()})),a._v(" "),a.pageIndex>=5?e("li",{staticClass:"page-item"},[e("a",{staticClass:"page-link"},[a._v("...")])]):a._e(),a._v(" "),a._l(a.floatPages,(function(t,i){return a.pageIndex>=5&&a.pageIndex<a.data.meta.last_page-3?e("li",{key:i,staticClass:"page-item",on:{click:function(e){return a.goToPage(t)}}},[e("a",{staticClass:"page-link",class:{active:a.pageIndex===t}},[a._v("\n "+a._s(t)+"\n ")])]):a._e()})),a._v(" "),a.pageIndex<a.data.meta.last_page-3?e("li",{staticClass:"page-item"},[e("a",{staticClass:"page-link"},[a._v("...")])]):a._e(),a._v(" "),a._l(5,(function(t,i){return a.pageIndex>a.data.meta.last_page-4?e("li",{key:i,staticClass:"page-item",on:{click:function(t){a.goToPage(a.data.meta.last_page-(4-i))}}},[e("a",{staticClass:"page-link",class:{active:a.pageIndex===a.data.meta.last_page-(4-i)}},[a._v("\n "+a._s(a.data.meta.last_page-(4-i))+"\n ")])]):a._e()})),a._v(" "),a.pageIndex<a.data.meta.last_page-3?e("li",{staticClass:"page-item",on:{click:function(t){return a.goToPage(a.data.meta.last_page)}}},[e("a",{staticClass:"page-link"},[a._v("\n "+a._s(a.data.meta.last_page)+"\n ")])]):a._e(),a._v(" "),e("li",{staticClass:"page-item next"},[e("a",{staticClass:"page-link",class:{disabled:a.pageIndex+1==a.data.meta.last_page},on:{click:function(t){return a.goToPage(a.pageIndex+1)}}},[e("chevron-right-icon",{staticClass:"icon",attrs:{size:"14"}})],1)])],2):a._e(),a._v(" "),e("span",{staticClass:"paginator-info"},[a._v(a._s(a.$t("datatable.paginate_info",{visible:a.data.meta.per_page,total:a.data.meta.total})))])]):a._e()],2)}),[],!1,null,"5aa9c0fb",null));t.a=d.exports},"C3/I":function(a,t,e){(a.exports=e("I1BE")(!1)).push([a.i,".cell-image-thumbnail[data-v-5bcff56e]{display:flex;align-items:center;cursor:pointer}.cell-image-thumbnail .image[data-v-5bcff56e]{margin-right:20px;line-height:0;position:relative}.cell-image-thumbnail .image img[data-v-5bcff56e]{line-height:0;width:48px;height:48px;border-radius:8px;z-index:1;position:relative}.cell-image-thumbnail .image img.blurred[data-v-5bcff56e]{position:absolute;left:0;top:2px;z-index:0;filter:blur(8px);opacity:.5}.cell-image-thumbnail .image.small img[data-v-5bcff56e]{width:32px;height:32px}.cell-image-thumbnail .info .description[data-v-5bcff56e],.cell-image-thumbnail .info .name[data-v-5bcff56e]{max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}.cell-image-thumbnail .info .name[data-v-5bcff56e]{font-size:.9375em;line-height:1;color:#1b2539}.cell-image-thumbnail .info .description[data-v-5bcff56e]{color:rgba(27,37,57,.7);font-size:.75em}@media (prefers-color-scheme:dark){.cell-image-thumbnail .image img.blurred[data-v-5bcff56e]{display:none}.cell-image-thumbnail .info .name[data-v-5bcff56e]{color:#bec6cf}.cell-image-thumbnail .info .description[data-v-5bcff56e]{color:#7d858c}}",""])},Cpfc:function(a,t,e){(a.exports=e("I1BE")(!1)).push([a.i,".text-label[data-v-6f520f3a]{font-size:.75em;color:#afafaf;font-weight:700;display:block;margin-bottom:20px}@media (prefers-color-scheme:dark){.text-label[data-v-6f520f3a]{color:#00bc7e}}",""])},GELx:function(a,t,e){"use strict";var i={name:"DatatableCellImage",props:["image","title","description","image-size"]},n=(e("OT5R"),e("KHd+")),o=Object(n.a)(i,(function(){var a=this,t=a.$createElement,e=a._self._c||t;return e("div",{staticClass:"cell-image-thumbnail"},[a.image?e("div",{staticClass:"image",class:a.imageSize},[e("img",{attrs:{src:a.image,alt:a.title}}),a._v(" "),e("img",{staticClass:"blurred",attrs:{src:a.image,alt:a.title}})]):a._e(),a._v(" "),e("div",{staticClass:"info"},[a.title?e("b",{staticClass:"name"},[a._v(a._s(a.title))]):a._e(),a._v(" "),a.description?e("span",{staticClass:"description"},[a._v(a._s(a.description))]):a._e()])])}),[],!1,null,"5bcff56e",null);t.a=o.exports},IGm8:function(a,t,e){(a.exports=e("I1BE")(!1)).push([a.i,".page-header[data-v-c3ec4364]{display:flex;align-items:center;background:#fff;z-index:9;width:100%;position:-webkit-sticky;position:sticky;top:0;padding-top:20px;padding-bottom:20px}.page-header .title[data-v-c3ec4364]{font-size:1.125em;font-weight:700;color:#1b2539}.page-header .go-back[data-v-c3ec4364]{margin-right:10px;cursor:pointer}.page-header .go-back svg[data-v-c3ec4364]{vertical-align:middle;margin-top:-4px}@media only screen and (max-width:960px){.page-header .title[data-v-c3ec4364]{font-size:1.125em}}@media only screen and (max-width:690px){.page-header[data-v-c3ec4364]{display:none}}@media (prefers-color-scheme:dark){.page-header[data-v-c3ec4364]{background:#111314}.page-header .title[data-v-c3ec4364]{color:#bec6cf}.page-header .icon path[data-v-c3ec4364]{fill:#00bc7e}}",""])},IWq3:function(a,t,e){var i=e("3gXB");"string"==typeof i&&(i=[[a.i,i,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};e("aET+")(i,n);i.locals&&(a.exports=i.locals)},JULQ:function(a,t,e){(a.exports=e("I1BE")(!1)).push([a.i,".table-row[data-v-1b13364c]{border-radius:8px}.table-row[data-v-1b13364c]:hover{background:#f4f5f6}.table-row .table-cell[data-v-1b13364c]{padding-top:15px;padding-bottom:15px}.table-row .table-cell[data-v-1b13364c]:first-child{padding-left:15px}.table-row .table-cell[data-v-1b13364c]:last-child{padding-right:15px;text-align:right}.table-row .table-cell span[data-v-1b13364c]{font-size:1em;font-weight:700}",""])},LD6W:function(a,t,e){var i=e("IGm8");"string"==typeof i&&(i=[[a.i,i,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};e("aET+")(i,n);i.locals&&(a.exports=i.locals)},OT5R:function(a,t,e){"use strict";var i=e("xIuY");e.n(i).a},RVBB:function(a,t,e){"use strict";var i=e("IWq3");e.n(i).a},THmQ:function(a,t,e){"use strict";var i={name:"SectionTitle"},n=(e("0991"),e("KHd+")),o=Object(n.a)(i,(function(){var a=this.$createElement;return(this._self._c||a)("b",{staticClass:"text-label"},[this._t("default")],2)}),[],!1,null,"6f520f3a",null);t.a=o.exports},VYa5:function(a,t,e){var i=e("JULQ");"string"==typeof i&&(i=[[a.i,i,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};e("aET+")(i,n);i.locals&&(a.exports=i.locals)},Yiho:function(a,t,e){var i=e("5QsV");"string"==typeof i&&(i=[[a.i,i,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};e("aET+")(i,n);i.locals&&(a.exports=i.locals)},Z3t9:function(a,t,e){"use strict";var i=e("LD6W");e.n(i).a},ZIRg:function(a,t,e){"use strict";e.r(t);var i=e("GELx"),n=e("6TPS"),o=e("t5U/"),l=e("D62o"),s=e("THmQ"),r=e("Nv84"),c=e("CjXH"),d=e("2Sb1"),b=e("kPoH"),p=e("zTYo"),g=e("L2JU");e("vDqi");function f(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(a);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,i)}return e}function u(a,t,e){return t in a?Object.defineProperty(a,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):a[t]=e,a}var v={name:"Profile",components:{DatatableCellImage:i.a,MobileActionButton:o.a,DatatableWrapper:n.a,SectionTitle:s.a,MobileHeader:l.a,Trash2Icon:c.Q,PageHeader:d.a,ButtonBase:r.a,ColorLabel:b.a,Edit2Icon:c.m,Spinner:p.a},computed:function(a){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?f(Object(e),!0).forEach((function(t){u(a,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(e)):f(Object(e)).forEach((function(t){Object.defineProperty(a,t,Object.getOwnPropertyDescriptor(e,t))}))}return a}({},Object(g.b)(["config"])),data:function(){return{isLoading:!0,columns:void 0}},methods:{getRoleColor:function(a){switch(a){case"admin":return"purple";case"user":return"yellow"}}},created:function(){this.columns=[{label:this.$t("admin_page_user.table.name"),field:"name",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.storage_capacity"),field:"settings.storage_capacity",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}]}},m=(e("RVBB"),e("KHd+")),h=Object(m.a)(v,(function(){var a=this,t=a.$createElement,e=a._self._c||t;return e("div",{attrs:{id:"single-page"}},[e("div",{attrs:{id:"page-content"}},[e("MobileHeader",{attrs:{title:a.$router.currentRoute.meta.title}}),a._v(" "),e("PageHeader",{attrs:{title:a.$router.currentRoute.meta.title}}),a._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"}},[a._v("\n "+a._s(a.$t("admin_page_user.create_user.submit"))+"\n ")])],1)],1)]),a._v(" "),e("DatatableWrapper",{staticClass:"table table-users",attrs:{api:"/api/users",paginator:!0,columns:a.columns},on:{init:function(t){a.isLoading=!1}},scopedSlots:a._u([{key:"default",fn:function(t){var i=t.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.attributes.avatar,title:i.data.attributes.name,description:i.data.attributes.email}})],1)],1),a._v(" "),e("td",[e("ColorLabel",{attrs:{color:a.getRoleColor(i.data.attributes.role)}},[a._v("\n "+a._s(i.data.attributes.role)+"\n ")])],1),a._v(" "),a.config.isSaaS?e("td",[i.data.attributes.subscription?e("span",{staticClass:"cell-item"},[a._v("\n "+a._s(a.$t("global.premium"))+"\n ")]):e("span",{staticClass:"cell-item"},[a._v("\n "+a._s(a.$t("global.free"))+"\n ")])]):a._e(),a._v(" "),e("td",[e("span",{staticClass:"cell-item"},[a._v("\n "+a._s(i.relationships.storage.data.attributes.used_formatted)+"\n ")])]),a._v(" "),a.config.storageLimit?e("td",[e("span",{staticClass:"cell-item"},[a._v("\n "+a._s(i.relationships.storage.data.attributes.capacity_formatted)+"\n ")])]):a._e(),a._v(" "),e("td",[e("span",{staticClass:"cell-item"},[a._v("\n "+a._s(i.data.attributes.created_at_formatted)+"\n ")])]),a._v(" "),e("td",[e("div",{staticClass:"action-icons"},[e("router-link",{attrs:{to:{name:"UserDetail",params:{id:i.data.id}}}},[e("edit-2-icon",{staticClass:"icon icon-edit",attrs:{size:"15"}})],1),a._v(" "),e("router-link",{attrs:{to:{name:"UserDelete",params:{id:i.data.id}}}},[e("trash2-icon",{staticClass:"icon icon-trash",attrs:{size:"15"}})],1)],1)])])]}}])})],1)],1),a._v(" "),a.isLoading?e("div",{attrs:{id:"loader"}},[e("Spinner")],1):a._e()])}),[],!1,null,"c88274ae",null);t.default=h.exports},azN2:function(a,t,e){"use strict";var i=e("cV7u");e.n(i).a},cFxL:function(a,t,e){"use strict";var i=e("Yiho");e.n(i).a},cV7u:function(a,t,e){var i=e("+8kt");"string"==typeof i&&(i=[[a.i,i,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};e("aET+")(i,n);i.locals&&(a.exports=i.locals)},ckMH:function(a,t,e){var i=e("Cpfc");"string"==typeof i&&(i=[[a.i,i,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};e("aET+")(i,n);i.locals&&(a.exports=i.locals)},kPoH:function(a,t,e){"use strict";var i={name:"ColorLabel",props:["color"]},n=(e("azN2"),e("KHd+")),o=Object(n.a)(i,(function(){var a=this.$createElement;return(this._self._c||a)("b",{staticClass:"color-label",class:this.color},[this._t("default")],2)}),[],!1,null,"31b977a5",null);t.a=o.exports},lLjm:function(a,t,e){var i=e("ojvW");"string"==typeof i&&(i=[[a.i,i,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};e("aET+")(i,n);i.locals&&(a.exports=i.locals)},nepK:function(a,t,e){"use strict";var i=e("lLjm");e.n(i).a},ojvW:function(a,t,e){(a.exports=e("I1BE")(!1)).push([a.i,".mobile-action-button[data-v-19e13350]{background:#f4f5f6;margin-right:15px;border-radius:8px;padding:7px 10px;cursor:pointer;border:none;transition:all .15s ease}.mobile-action-button .flex[data-v-19e13350]{display:flex;align-items:center}.mobile-action-button .icon[data-v-19e13350]{margin-right:10px;font-size:.875em}.mobile-action-button .icon circle[data-v-19e13350],.mobile-action-button .icon line[data-v-19e13350],.mobile-action-button .icon path[data-v-19e13350],.mobile-action-button .icon polyline[data-v-19e13350],.mobile-action-button .icon rect[data-v-19e13350]{transition:all .15s ease}.mobile-action-button .label[data-v-19e13350]{transition:all .15s ease;font-size:.875em;font-weight:700;color:#1b2539}.mobile-action-button[data-v-19e13350]:active{transform:scale(.95)}.mobile-action-button[data-v-19e13350]:hover{background:rgba(0,188,126,.1)}.mobile-action-button:hover .icon circle[data-v-19e13350],.mobile-action-button:hover .icon line[data-v-19e13350],.mobile-action-button:hover .icon path[data-v-19e13350],.mobile-action-button:hover .icon polyline[data-v-19e13350],.mobile-action-button:hover .icon rect[data-v-19e13350]{stroke:#00bc7e}.mobile-action-button:hover .label[data-v-19e13350]{color:#00bc7e}@media (prefers-color-scheme:dark){.mobile-action-button[data-v-19e13350]{background:#1e2024}.mobile-action-button circle[data-v-19e13350],.mobile-action-button line[data-v-19e13350],.mobile-action-button path[data-v-19e13350],.mobile-action-button polyline[data-v-19e13350],.mobile-action-button rect[data-v-19e13350]{stroke:#00bc7e}.mobile-action-button .label[data-v-19e13350]{color:#bec6cf}}",""])},"rta+":function(a,t,e){"use strict";var i=e("VYa5");e.n(i).a},"t5U/":function(a,t,e){"use strict";var i=e("CjXH"),n={name:"MobileActionButton",props:["icon"],components:{CreditCardIcon:i.j,FolderPlusIcon:i.t,UserPlusIcon:i.V,TrashIcon:i.R,PlusIcon:i.I,ListIcon:i.B,GridIcon:i.u}},o=(e("nepK"),e("KHd+")),l=Object(o.a)(n,(function(){var a=this,t=a.$createElement,e=a._self._c||t;return e("button",{staticClass:"mobile-action-button"},[e("div",{staticClass:"flex"},["credit-card"===a.icon?e("credit-card-icon",{staticClass:"icon",attrs:{size:"15"}}):a._e(),a._v(" "),"folder-plus"===a.icon?e("folder-plus-icon",{staticClass:"icon",attrs:{size:"15"}}):a._e(),a._v(" "),"th-list"===a.icon?e("list-icon",{staticClass:"icon",attrs:{size:"15"}}):a._e(),a._v(" "),"trash"===a.icon?e("trash-icon",{staticClass:"icon",attrs:{size:"15"}}):a._e(),a._v(" "),"th"===a.icon?e("grid-icon",{staticClass:"icon",attrs:{size:"15"}}):a._e(),a._v(" "),"user-plus"===a.icon?e("user-plus-icon",{staticClass:"icon",attrs:{size:"15"}}):a._e(),a._v(" "),"plus"===a.icon?e("plus-icon",{staticClass:"icon",attrs:{size:"15"}}):a._e(),a._v(" "),e("span",{staticClass:"label"},[a._t("default")],2)],1)])}),[],!1,null,"19e13350",null);t.a=l.exports},xIuY:function(a,t,e){var i=e("C3/I");"string"==typeof i&&(i=[[a.i,i,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};e("aET+")(i,n);i.locals&&(a.exports=i.locals)}}]);