mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-06 02:33:48 +00:00
1 line
23 KiB
JavaScript
Vendored
1 line
23 KiB
JavaScript
Vendored
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[6679],{5063:(t,a,e)=>{e.d(a,{Z:()=>r});var s=e(3645),i=e.n(s)()((function(t){return t[1]}));i.push([t.id,".mobile-header[data-v-17905508]{background:#fff;display:none;padding:10px 0;position:-webkit-sticky;position:sticky;text-align:center;top:0;z-index:6}.mobile-header>div[data-v-17905508]{align-self:center;flex-grow:1;white-space:nowrap}.mobile-header .go-back[data-v-17905508]{text-align:left}.mobile-header .location-name[data-v-17905508]{color:#1b2539;display:inline-block;font-size:.9375em;font-weight:700;line-height:1;max-width:220px;overflow:hidden;text-align:center;text-overflow:ellipsis;vertical-align:middle;width:100%}.mobile-header .mobile-menu[data-v-17905508]{text-align:right}.mobile-header .icon[data-v-17905508]{margin-top:-4px;vertical-align:middle}@media only screen and (max-width:690px){.mobile-header[data-v-17905508]{display:flex;margin-bottom:15px}}.dark .mobile-header[data-v-17905508]{background:#151515}.dark .mobile-header .location-name[data-v-17905508]{color:#bec6cf}",""]);const r=i},7520:(t,a,e)=>{e.d(a,{Z:()=>r});var s=e(3645),i=e.n(s)()((function(t){return t[1]}));i.push([t.id,".color-label.purple[data-v-3ff27c4c]{background:rgba(157,102,254,.1);color:#9d66fe}.color-label.yellow[data-v-3ff27c4c]{background:rgba(255,189,45,.1);color:#ffbd2d}.color-label.green[data-v-3ff27c4c]{background:rgba(0,188,126,.1);color:#00bc7e}.color-label.red[data-v-3ff27c4c]{background:rgba(253,57,122,.1);color:#fd397a}",""]);const r=i},1832:(t,a,e)=>{e.d(a,{Z:()=>r});var s=e(3645),i=e.n(s)()((function(t){return t[1]}));i.push([t.id,".text-label[data-v-2f8a2068]{color:#afafaf;display:block;font-size:.75em;font-weight:700;margin-bottom:20px}.dark .text-label[data-v-2f8a2068]{color:#00bc7e}",""]);const r=i},2424:(t,a,e)=>{e.d(a,{Z:()=>r});var s=e(3645),i=e.n(s)()((function(t){return t[1]}));i.push([t.id,".table-row[data-v-61827e38]{border-radius:8px}.table-row[data-v-61827e38]:hover{background:#f4f5f6}.table-row .table-cell[data-v-61827e38]{padding-bottom:15px;padding-top:15px}.table-row .table-cell[data-v-61827e38]:first-child{padding-left:15px}.table-row .table-cell[data-v-61827e38]:last-child{padding-right:15px;text-align:right}.table-row .table-cell span[data-v-61827e38]{font-size:1em;font-weight:700}",""]);const r=i},4962:(t,a,e)=>{e.d(a,{Z:()=>r});var s=e(3645),i=e.n(s)()((function(t){return t[1]}));i.push([t.id,".info .description[data-v-47cc578e],.info .name[data-v-47cc578e]{display:block;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.info .name[data-v-47cc578e]{color:#1b2539;font-size:.9375em;line-height:1}.info .description[data-v-47cc578e]{color:rgba(27,37,57,.7);font-size:.75em}.dark .cell-image-thumbnail .image img.blurred[data-v-47cc578e]{display:none}.dark .cell-image-thumbnail .info .name[data-v-47cc578e]{color:#bec6cf}.dark .cell-image-thumbnail .info .description[data-v-47cc578e]{color:#7d858c}",""]);const r=i},3802:(t,a,e)=>{e.d(a,{Z:()=>c});e(826);var s=e(9101);const i={name:"MobileHeader",props:["title"],components:{ChevronLeftIcon:s.wyc,MenuIcon:s.Oqj},methods:{goBack:function(){this.$router.back()}}};var r=e(3379),n=e.n(r),l=e(5063),o={insert:"head",singleton:!1};n()(l.Z,o);l.Z.locals;const c=(0,e(1900).Z)(i,(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,"17905508",null).exports},3346:(t,a,e)=>{e.d(a,{Z:()=>o});const s={name:"ColorLabel",props:["color"]};var i=e(3379),r=e.n(i),n=e(7520),l={insert:"head",singleton:!1};r()(n.Z,l);n.Z.locals;const o=(0,e(1900).Z)(s,(function(){var t=this,a=t.$createElement;return(t._self._c||a)("b",{staticClass:"color-label inline-block rounded-lg py-1 px-2 text-xs font-bold capitalize",class:t.color},[t._t("default")],2)}),[],!1,null,"3ff27c4c",null).exports},6332:(t,a,e)=>{e.d(a,{Z:()=>o});const s={name:"SectionTitle"};var i=e(3379),r=e.n(i),n=e(1832),l={insert:"head",singleton:!1};r()(n.Z,l);n.Z.locals;const o=(0,e(1900).Z)(s,(function(){var t=this,a=t.$createElement;return(t._self._c||a)("b",{staticClass:"text-label"},[t._t("default")],2)}),[],!1,null,"2f8a2068",null).exports},8422:(t,a,e)=>{e.d(a,{Z:()=>o});const s={name:"DatatableCellImage",props:["member","title","description","image-size"],components:{MemberAvatar:e(845).Z}};var i=e(3379),r=e.n(i),n=e(4962),l={insert:"head",singleton:!1};r()(n.Z,l);n.Z.locals;const o=(0,e(1900).Z)(s,(function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"flex shrink-0 grow-0 items-center"},[e("MemberAvatar",{staticClass:"mr-3 shrink-0",attrs:{"is-border":!1,size:52,member:t.member}}),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)}),[],!1,null,"47cc578e",null).exports},3233:(t,a,e)=>{e.d(a,{Z:()=>u});var s=e(9101);const i={props:["data"],computed:{normalizedColumns:function(){return this.data.id&&delete this.data.id,Object.values(this.data)}}};var r=e(3379),n=e.n(r),l=e(2424),o={insert:"head",singleton:!1};n()(l.Z,o);l.Z.locals;var c=e(1900);const d=(0,c.Z)(i,(function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("tr",{staticClass:"table-row"},t._l(t.normalizedColumns,(function(a,s){return e("td",{key:s,staticClass:"table-cell"},[e("span",[t._v(t._s(a))])])})),0)}),[],!1,null,"61827e38",null).exports;var p=e(9669),b=e.n(p);const g={name:"DatatableWrapper",props:["paginator","tableData","columns","scope","api"],components:{ChevronRightIcon:s.XCv,ChevronLeftIcon:s.wyc,DatatableCell:d,ChevronUpIcon:s.g8U},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,b().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)}};const u=(0,c.Z)(g,(function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"w-full"},[t.hasData?e("table",{staticClass:"w-full"},[e("thead",[e("tr",{staticClass:"whitespace-nowrap"},t._l(t.columns,(function(a,s){return a.hidden?t._e():e("th",{key:s,staticClass:"text-left",class:{"sortable cursor-pointer":a.sortable,"text-right":Object.values(t.columns).length-1===s},on:{click:function(e){return t.sort(a.field,a.sortable)}}},[e("span",{staticClass:"text-xs text-gray-400 dark:text-gray-500"},[t._v("\n "+t._s(t.$t(a.label))+"\n ")]),t._v(" "),a.sortable?e("chevron-up-icon",{staticClass:"vue-feather inline-block text-gray-300 dark:text-gray-500",class:{"arrow-down":"ASC"===t.filter.sort},attrs:{size:"12"}}):t._e()],1)})),0)]),t._v(" "),e("tbody",{staticClass:"table-body"},[t._l(t.data.data,(function(a){return t._t("default",(function(){return[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:"mt-6 sm:flex sm:items-center sm:justify-between"},[t.data.meta.total>15&&t.data.meta.last_page<=6?e("ul",{staticClass:"pagination flex justify-center items-center"},[e("li",{staticClass:"previous inline-block p-1"},[e("a",{staticClass:"page-link",class:{"cursor-default opacity-20":1===t.pageIndex},on:{click:function(a){return t.goToPage(t.pageIndex-1)}}},[e("chevron-left-icon",{staticClass:"inline-block",attrs:{size:"14"}})],1)]),t._v(" "),t._l(t.data.meta.last_page,(function(a,s){return e("li",{key:s,staticClass:"inline-block p-1",on:{click:function(e){return t.goToPage(a)}}},[e("a",{staticClass:"page-link",class:{"bg-light-background dark:bg-4x-dark-foreground dark:text-gray-300":t.pageIndex===a}},[t._v("\n "+t._s(a)+"\n ")])])})),t._v(" "),e("li",{staticClass:"next inline-block p-1"},[e("a",{staticClass:"page-link",class:{"cursor-default opacity-20":t.pageIndex===t.data.meta.last_page},on:{click:function(a){return t.goToPage(t.pageIndex+1)}}},[e("chevron-right-icon",{staticClass:"inline-block",attrs:{size:"14"}})],1)])],2):t._e(),t._v(" "),t.data.meta.total>15&&t.data.meta.last_page>6?e("ul",{staticClass:"pagination flex justify-center items-center"},[e("li",{staticClass:"previous inline-block p-1"},[e("a",{staticClass:"page-link",class:{"cursor-default opacity-20":1===t.pageIndex},on:{click:function(a){return t.goToPage(t.pageIndex-1)}}},[e("chevron-left-icon",{staticClass:"inline-block",attrs:{size:"14"}})],1)]),t._v(" "),t.pageIndex>=5?e("li",{staticClass:"inline-block p-1",on:{click:function(a){return t.goToPage(1)}}},[e("a",{staticClass:"page-link"},[t._v(" 1 ")])]):t._e(),t._v(" "),t._l(5,(function(a,s){return t.pageIndex<5?e("li",{key:s,staticClass:"inline-block p-1",on:{click:function(e){return t.goToPage(a)}}},[e("a",{staticClass:"page-link",class:{"bg-light-background dark:bg-4x-dark-foreground dark:text-gray-300":t.pageIndex===a}},[t._v("\n "+t._s(a)+"\n ")])]):t._e()})),t._v(" "),t.pageIndex>=5?e("li",{staticClass:"inline-block p-1"},[e("a",{staticClass:"page-link"},[t._v("...")])]):t._e(),t._v(" "),t._l(t.floatPages,(function(a,s){return t.pageIndex>=5&&t.pageIndex<t.data.meta.last_page-3?e("li",{key:s,staticClass:"inline-block p-1",on:{click:function(e){return t.goToPage(a)}}},[e("a",{staticClass:"page-link",class:{"bg-light-background dark:bg-4x-dark-foreground dark:text-gray-300":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:"inline-block p-1"},[e("a",{staticClass:"page-link"},[t._v("...")])]):t._e(),t._v(" "),t._l(5,(function(a,s){return t.pageIndex>t.data.meta.last_page-4?e("li",{key:s,staticClass:"inline-block p-1",on:{click:function(a){t.goToPage(t.data.meta.last_page-(4-s))}}},[e("a",{staticClass:"page-link",class:{"bg-light-background dark:bg-4x-dark-foreground dark:text-gray-300":t.pageIndex===t.data.meta.last_page-(4-s)}},[t._v("\n "+t._s(t.data.meta.last_page-(4-s))+"\n ")])]):t._e()})),t._v(" "),t.pageIndex<t.data.meta.last_page-3?e("li",{staticClass:"inline-block p-1",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:"next inline-block p-1"},[e("a",{staticClass:"page-link",class:{"cursor-default opacity-20":t.pageIndex===t.data.meta.last_page},on:{click:function(a){return t.goToPage(t.pageIndex+1)}}},[e("chevron-right-icon",{staticClass:"inline-block",attrs:{size:"14"}})],1)])],2):t._e(),t._v(" "),e("span",{staticClass:"text-xs text-gray-600 dark:text-gray-500 block text-center sm:mt-0 mt-4"},[t._v("\n\t\t\t\t"+t._s(t.$t("paginator",{from:t.data.meta.from,to:t.data.meta.to,total:t.data.meta.total}))+"\n ")])]):t._e()],2)}),[],!1,null,null,null).exports},5867:(t,a,e)=>{e.r(a),e.d(a,{default:()=>v});var s=e(845),i=e(8422),r=e(3233),n=e(4388),l=e(3802),o=e(6332),c=e(1612),d=e(3346),p=e(8524),b=e(9101),g=e(629);e(9669);function u(t,a){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);a&&(s=s.filter((function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable}))),e.push.apply(e,s)}return e}function f(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){m(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}function m(t,a,e){return a in t?Object.defineProperty(t,a,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[a]=e,t}const _={name:"Users",components:{DatatableCellImage:i.Z,MobileActionButton:n.Z,DatatableWrapper:r.Z,MemberAvatar:s.Z,SectionTitle:o.Z,MobileHeader:l.Z,Trash2Icon:b.Bf1,ButtonBase:c.Z,ColorLabel:d.Z,Edit2Icon:b.me4,Spinner:p.Z},computed:f(f({},(0,g.Se)(["config"])),{},{columns:function(){return{metered:[{label:this.$t("user"),field:"email",sortable:!0},{label:this.$t("role"),field:"role",sortable:!0},{label:this.$t("storage_used"),sortable:!1},{label:this.$t("billing_est."),sortable:!1},{label:this.$t("created_at"),field:"created_at",sortable:!0},{label:this.$t("action"),sortable:!1}],fixed:[{label:this.$t("user"),field:"email",sortable:!0},{label:this.$t("role"),field:"role",sortable:!0},{label:this.$t("account"),sortable:!1},{label:this.$t("storage_used"),sortable:!1},{label:this.$t("max_storage"),sortable:!1,hidden:!this.config.storageLimit},{label:this.$t("created_at"),field:"created_at",sortable:!0},{label:this.$t("action"),sortable:!1}],none:[{label:this.$t("user"),field:"email",sortable:!0},{label:this.$t("role"),field:"role",sortable:!0},{label:this.$t("storage_used"),sortable:!1},{label:this.$t("max_storage"),sortable:!1,hidden:!this.config.storageLimit},{label:this.$t("created_at"),field:"created_at",sortable:!0},{label:this.$t("action"),sortable:!1}]}[this.config.subscriptionType]}}),data:function(){return{isLoading:!0}}};const v=(0,e(1900).Z)(_,(function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",[e("div",{staticClass:"card shadow-card"},[e("div",{staticClass:"mb-6"},[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),t._v(" "),e("MobileActionButton",{attrs:{icon:"search"},nativeOn:{click:function(a){return t.$openSpotlight("users")}}},[t._v("\n "+t._s(t.$t("search"))+"\n ")])],1),t._v(" "),e("DatatableWrapper",{staticClass:"overflow-x-auto",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 s=a.row;return["none"===t.config.subscriptionType?e("tr",{staticClass:"whitespace-nowrap border-b border-dashed border-light dark:border-opacity-5"},[e("td",{staticClass:"py-3 pr-3 md:pr-1"},[e("router-link",{attrs:{to:{name:"UserDetail",params:{id:s.data.id}}}},[e("div",{staticClass:"flex items-center"},[e("MemberAvatar",{attrs:{"is-border":!1,size:44,member:s}}),t._v(" "),e("div",{staticClass:"ml-3 pr-10"},[e("b",{staticClass:"max-w-1 block overflow-hidden text-ellipsis whitespace-nowrap text-sm font-bold",staticStyle:{"max-width":"155px"}},[t._v("\n "+t._s(s.data.relationships.settings.data.attributes.name)+"\n ")]),t._v(" "),e("span",{staticClass:"block text-xs text-gray-600 dark:text-gray-500"},[t._v("\n "+t._s(s.data.attributes.email)+"\n ")])])],1)])],1),t._v(" "),e("td",{staticClass:"px-3 md:px-1"},[e("ColorLabel",{attrs:{color:t.$getUserRoleColor(s.data.attributes.role)}},[t._v("\n "+t._s(t.$t(s.data.attributes.role))+"\n ")])],1),t._v(" "),e("td",{staticClass:"px-3 md:px-1"},[0!==s.data.attributes.storage.capacity?e("span",{staticClass:"text-sm font-bold"},[t._v("\n "+t._s(s.data.attributes.storage.used_formatted)+"\n ")]):t._e(),t._v(" "),0===s.data.attributes.storage.capacity?e("span",{staticClass:"text-sm font-bold"},[t._v(" - ")]):t._e()]),t._v(" "),t.config.storageLimit?e("td",{staticClass:"px-3 md:px-1"},[0!==s.data.attributes.storage.capacity?e("span",{staticClass:"text-sm font-bold"},[t._v("\n "+t._s(s.data.attributes.storage.capacity_formatted)+"\n ")]):t._e(),t._v(" "),0===s.data.attributes.storage.capacity?e("span",{staticClass:"text-sm font-bold"},[t._v(" - ")]):t._e()]):t._e(),t._v(" "),e("td",{staticClass:"px-3 md:px-1"},[e("span",{staticClass:"text-sm font-bold"},[t._v("\n "+t._s(s.data.attributes.created_at)+"\n ")])]),t._v(" "),e("td",{staticClass:"pl-3 text-right md:pl-1"},[e("div",{staticClass:"flex w-full justify-end space-x-2"},[e("router-link",{staticClass:"flex h-8 w-8 items-center justify-center rounded-md bg-light-background transition-colors hover:bg-green-100 dark:bg-2x-dark-foreground",attrs:{to:{name:"UserDetail",params:{id:s.data.id}}}},[e("Edit2Icon",{staticClass:"opacity-75",attrs:{size:"15"}})],1),t._v(" "),e("router-link",{staticClass:"flex h-8 w-8 items-center justify-center rounded-md bg-light-background transition-colors hover:bg-red-100 dark:bg-2x-dark-foreground",attrs:{to:{name:"UserDelete",params:{id:s.data.id}}}},[e("Trash2Icon",{staticClass:"opacity-75",attrs:{size:"15"}})],1)],1)])]):t._e(),t._v(" "),"fixed"===t.config.subscriptionType?e("tr",{staticClass:"whitespace-nowrap border-b border-dashed border-light dark:border-opacity-5"},[e("td",{staticClass:"py-3 pr-3 md:pr-1"},[e("router-link",{attrs:{to:{name:"UserDetail",params:{id:s.data.id}}}},[e("div",{staticClass:"flex items-center"},[e("MemberAvatar",{attrs:{"is-border":!1,size:44,member:s}}),t._v(" "),e("div",{staticClass:"ml-3 pr-10"},[e("b",{staticClass:"max-w-1 block overflow-hidden text-ellipsis whitespace-nowrap text-sm font-bold",staticStyle:{"max-width":"155px"}},[t._v("\n "+t._s(s.data.relationships.settings.data.attributes.name)+"\n ")]),t._v(" "),e("span",{staticClass:"block text-xs text-gray-600 dark:text-gray-500"},[t._v("\n "+t._s(s.data.attributes.email)+"\n ")])])],1)])],1),t._v(" "),e("td",{staticClass:"px-3 md:px-1"},[e("ColorLabel",{attrs:{color:t.$getUserRoleColor(s.data.attributes.role)}},[t._v("\n "+t._s(t.$t(s.data.attributes.role))+"\n ")])],1),t._v(" "),e("td",{staticClass:"px-3 md:px-1"},[e("span",{staticClass:"text-sm font-bold"},[t._v("\n "+t._s(s.data.relationships.subscription?t.$t("premium"):t.$t("free"))+"\n ")])]),t._v(" "),e("td",{staticClass:"px-3 md:px-1"},[0!==s.data.attributes.storage.capacity?e("span",{staticClass:"text-sm font-bold"},[t._v("\n "+t._s(s.data.attributes.storage.used_formatted)+"\n ")]):t._e(),t._v(" "),0===s.data.attributes.storage.capacity?e("span",{staticClass:"text-sm font-bold"},[t._v(" - ")]):t._e()]),t._v(" "),t.config.storageLimit?e("td",{staticClass:"px-3 md:px-1"},[0!==s.data.attributes.storage.capacity?e("span",{staticClass:"text-sm font-bold"},[t._v("\n "+t._s(s.data.attributes.storage.capacity_formatted)+"\n ")]):t._e(),t._v(" "),0===s.data.attributes.storage.capacity?e("span",{staticClass:"text-sm font-bold"},[t._v(" - ")]):t._e()]):t._e(),t._v(" "),e("td",{staticClass:"px-3 md:px-1"},[e("span",{staticClass:"text-sm font-bold"},[t._v("\n "+t._s(s.data.attributes.created_at)+"\n ")])]),t._v(" "),e("td",{staticClass:"pl-3 text-right md:pl-1"},[e("div",{staticClass:"flex w-full justify-end space-x-2"},[e("router-link",{staticClass:"flex h-8 w-8 items-center justify-center rounded-md bg-light-background transition-colors hover:bg-green-100 dark:bg-2x-dark-foreground",attrs:{to:{name:"UserDetail",params:{id:s.data.id}}}},[e("Edit2Icon",{staticClass:"opacity-75",attrs:{size:"15"}})],1),t._v(" "),e("router-link",{staticClass:"flex h-8 w-8 items-center justify-center rounded-md bg-light-background transition-colors hover:bg-red-100 dark:bg-2x-dark-foreground",attrs:{to:{name:"UserDelete",params:{id:s.data.id}}}},[e("Trash2Icon",{staticClass:"opacity-75",attrs:{size:"15"}})],1)],1)])]):t._e(),t._v(" "),"metered"===t.config.subscriptionType?e("tr",{staticClass:"whitespace-nowrap border-b border-dashed border-light dark:border-opacity-5"},[e("td",{staticClass:"py-3 pr-3 md:pr-1"},[e("router-link",{attrs:{to:{name:"UserDetail",params:{id:s.data.id}}}},[e("div",{staticClass:"flex items-center"},[e("MemberAvatar",{attrs:{"is-border":!1,size:44,member:s}}),t._v(" "),e("div",{staticClass:"ml-3 pr-10"},[e("b",{staticClass:"max-w-1 block overflow-hidden text-ellipsis whitespace-nowrap text-sm font-bold",staticStyle:{"max-width":"155px"}},[t._v("\n "+t._s(s.data.relationships.settings.data.attributes.name)+"\n ")]),t._v(" "),e("span",{staticClass:"block text-xs text-gray-600 dark:text-gray-500"},[t._v("\n "+t._s(s.data.attributes.email)+"\n ")])])],1)])],1),t._v(" "),e("td",{staticClass:"px-3 md:px-1"},[e("ColorLabel",{attrs:{color:t.$getUserRoleColor(s.data.attributes.role)}},[t._v("\n "+t._s(t.$t(s.data.attributes.role))+"\n ")])],1),t._v(" "),e("td",{staticClass:"px-3 md:px-1"},[e("span",{staticClass:"text-sm font-bold"},[t._v("\n "+t._s(s.data.meta.usages?s.data.meta.usages.featureEstimates.storage.usage:"-")+"\n ")])]),t._v(" "),e("td",{staticClass:"px-3 md:px-1"},[e("span",{staticClass:"text-sm font-bold"},[t._v("\n "+t._s(s.data.meta.usages?s.data.meta.usages.costEstimate:"-")+"\n ")])]),t._v(" "),e("td",{staticClass:"px-3 md:px-1"},[e("span",{staticClass:"text-sm font-bold"},[t._v("\n "+t._s(s.data.attributes.created_at)+"\n ")])]),t._v(" "),e("td",{staticClass:"pl-3 text-right md:pl-1"},[e("div",{staticClass:"flex w-full justify-end space-x-2"},[e("router-link",{staticClass:"flex h-8 w-8 items-center justify-center rounded-md bg-light-background transition-colors hover:bg-green-100 dark:bg-2x-dark-foreground",attrs:{to:{name:"UserDetail",params:{id:s.data.id}}}},[e("Edit2Icon",{staticClass:"opacity-75",attrs:{size:"15"}})],1),t._v(" "),e("router-link",{staticClass:"flex h-8 w-8 items-center justify-center rounded-md bg-light-background transition-colors hover:bg-red-100 dark:bg-2x-dark-foreground",attrs:{to:{name:"UserDelete",params:{id:s.data.id}}}},[e("Trash2Icon",{staticClass:"opacity-75",attrs:{size:"15"}})],1)],1)])]):t._e()]}}])})],1),t._v(" "),t.isLoading?e("div",{attrs:{id:"loader"}},[e("Spinner")],1):t._e()])}),[],!1,null,null,null).exports}}]); |