Files
vuefilemanager/public/chunks/dashboard.js
Čarodej 46971e0765 build
2022-07-16 11:53:02 +02:00

1 line
41 KiB
JavaScript
Vendored

"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[9052],{7520:(t,e,a)=>{a.d(e,{Z:()=>i});var s=a(3645),r=a.n(s)()((function(t){return t[1]}));r.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 i=r},4507:(t,e,a)=>{a.d(e,{Z:()=>i});var s=a(3645),r=a.n(s)()((function(t){return t[1]}));r.push([t.id,".info-box[data-v-26872047]{background:#f4f5f6;border-radius:10px;margin-bottom:32px;padding:20px;text-align:left}.info-box.error[data-v-26872047]{background:rgba(253,57,122,.1)}.info-box.error a[data-v-26872047],.info-box.error p[data-v-26872047]{color:#fd397a}.info-box.error a[data-v-26872047]{text-decoration:underline}.info-box p[data-v-26872047]{font-weight:600;line-height:1.6;word-break:break-word}.info-box p[data-v-26872047],.info-box p[data-v-26872047] a{font-size:15px}.info-box p[data-v-26872047] b{font-size:15px;font-weight:700}.info-box a[data-v-26872047],.info-box b[data-v-26872047]{font-weight:700}.info-box a[data-v-26872047]{font-size:.9375em;line-height:1.6}.info-box ul[data-v-26872047]{margin-top:15px}.info-box ul[data-v-26872047],.info-box ul li[data-v-26872047],.info-box ul li a[data-v-26872047]{display:block}@media only screen and (max-width:690px){.info-box[data-v-26872047]{padding:15px}}.dark .info-box[data-v-26872047]{background:#1e2024}.dark .info-box.error[data-v-26872047]{background:rgba(253,57,122,.1)}.dark .info-box.error a[data-v-26872047],.dark .info-box.error p[data-v-26872047]{color:#fd397a}.dark .info-box.error a[data-v-26872047]{text-decoration:underline}.dark .info-box p[data-v-26872047],.dark .info-box ul li[data-v-26872047]{color:#bec6cf}",""]);const i=r},2424:(t,e,a)=>{a.d(e,{Z:()=>i});var s=a(3645),r=a.n(s)()((function(t){return t[1]}));r.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 i=r},4962:(t,e,a)=>{a.d(e,{Z:()=>i});var s=a(3645),r=a.n(s)()((function(t){return t[1]}));r.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 i=r},1463:(t,e,a)=>{a.d(e,{Z:()=>n});const s={name:"Bar",props:["bar"],data:function(){return{isVisible:!1}}};var r=a(1900);const i={name:"BarChart",props:["color","data"],components:{Bar:(0,r.Z)(s,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"relative flex items-center justify-center block cursor-pointer lg:mx-1 lg:w-2 2xl:w-3",style:{height:t.bar.percentage>0?t.bar.percentage+"%":"8px"},on:{mouseover:function(e){t.isVisible=!0},mouseleave:function(e){t.isVisible=!1}}},[t.isVisible||85.5===t.bar.percentage?a("div",{staticClass:"absolute -top-4 z-10 -translate-y-full transform rounded-lg bg-gray-800 py-2 px-3 shadow-lg dark:bg-white"},[a("b",{staticClass:"mb-2 block whitespace-nowrap text-xs text-white dark:text-gray-800"},[t._v("\n "+t._s(t.bar.created_at)+"\n ")]),t._v(" "),a("div",{staticClass:"flex items-center pb-1"},[a("span",{staticClass:"bg-theme mr-2 block h-3 w-3 rounded"}),t._v(" "),a("b",{staticClass:"whitespace-nowrap text-xs text-white dark:text-gray-800"},[t._v("\n "+t._s(t.bar.amount)+"\n ")])]),t._v(" "),t._m(0)]):t._e(),t._v(" "),a("span",{staticClass:"block h-full w-full rounded-lg",class:{"bg-theme":t.bar.percentage>0,"dark:bg-gray-700 bg-gray-200":0===t.bar.percentage}})])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"absolute -bottom-2.5 left-0 right-0 mx-auto inline-block w-[17px] overflow-hidden"},[e("div",{staticClass:"h-3 w-3 origin-top-left -rotate-45 transform bg-gray-800 dark:bg-white"})])}],!1,null,null,null).exports}};const n=(0,r.Z)(i,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"grid h-20 grid-flow-col items-end gap-1 sm:h-28 sm:gap-2 lg:flex lg:items-end lg:justify-between lg:gap-0"},t._l(t.data,(function(t,e){return a("Bar",{key:e,attrs:{bar:t}})})),1)}),[],!1,null,null,null).exports},3346:(t,e,a)=>{a.d(e,{Z:()=>l});const s={name:"ColorLabel",props:["color"]};var r=a(3379),i=a.n(r),n=a(7520),o={insert:"head",singleton:!1};i()(n.Z,o);n.Z.locals;const l=(0,a(1900).Z)(s,(function(){var t=this,e=t.$createElement;return(t._self._c||e)("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},2611:(t,e,a)=>{a.d(e,{Z:()=>i});var s=a(9101);const r={name:"FormLabel",props:["icon"],components:{TrendingUpIcon:s.Zab,WifiIcon:s.kVp,ListIcon:s.DE2,MailIcon:s.bV6,InfoIcon:s.szr,DatabaseIcon:s.VHe,UsersIcon:s.oyc,CreditCardIcon:s.ciH,DollarSignIcon:s.bkH,SmartphoneIcon:s.BEV,HardDriveIcon:s.zvn,BarChartIcon:s.eJP,SettingsIcon:s.ewm,FileTextIcon:s.zPP,ShieldIcon:s.b7C,FrownIcon:s.eFi,Edit2Icon:s.me4,BellIcon:s.Dkj,KeyIcon:s._m8}};const i=(0,a(1900).Z)(r,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"mb-8 flex items-center"},[t.icon?t._e():a("edit-2-icon",{staticClass:"vue-feather text-theme dark-text-theme mr-3",attrs:{size:"22"}}),t._v(" "),"frown"===t.icon?a("frown-icon",{staticClass:"vue-feather text-theme dark-text-theme mr-3",attrs:{size:"22"}}):t._e(),t._v(" "),"list"===t.icon?a("list-icon",{staticClass:"vue-feather text-theme dark-text-theme mr-3",attrs:{size:"22"}}):t._e(),t._v(" "),"info"===t.icon?a("info-icon",{staticClass:"vue-feather text-theme dark-text-theme mr-3",attrs:{size:"22"}}):t._e(),t._v(" "),"database"===t.icon?a("database-icon",{staticClass:"vue-feather text-theme dark-text-theme mr-3",attrs:{size:"22"}}):t._e(),t._v(" "),"file-text"===t.icon?a("file-text-icon",{staticClass:"vue-feather text-theme dark-text-theme mr-3",attrs:{size:"22"}}):t._e(),t._v(" "),"dollar"===t.icon?a("dollar-sign-icon",{staticClass:"vue-feather text-theme dark-text-theme mr-3",attrs:{size:"22"}}):t._e(),t._v(" "),"credit-card"===t.icon?a("credit-card-icon",{staticClass:"vue-feather text-theme dark-text-theme mr-3",attrs:{size:"22"}}):t._e(),t._v(" "),"bar-chart"===t.icon?a("bar-chart-icon",{staticClass:"vue-feather text-theme dark-text-theme mr-3",attrs:{size:"22"}}):t._e(),t._v(" "),"settings"===t.icon?a("settings-icon",{staticClass:"vue-feather text-theme dark-text-theme mr-3",attrs:{size:"22"}}):t._e(),t._v(" "),"hard-drive"===t.icon?a("hard-drive-icon",{staticClass:"vue-feather text-theme dark-text-theme mr-3",attrs:{size:"22"}}):t._e(),t._v(" "),"mail"===t.icon?a("mail-icon",{staticClass:"vue-feather text-theme dark-text-theme mr-3",attrs:{size:"22"}}):t._e(),t._v(" "),"smartphone"===t.icon?a("smartphone-icon",{staticClass:"vue-feather text-theme dark-text-theme mr-3",attrs:{size:"22"}}):t._e(),t._v(" "),"shield"===t.icon?a("shield-icon",{staticClass:"vue-feather text-theme dark-text-theme mr-3",attrs:{size:"22"}}):t._e(),t._v(" "),"bell"===t.icon?a("bell-icon",{staticClass:"vue-feather text-theme dark-text-theme mr-3",attrs:{size:"22"}}):t._e(),t._v(" "),"key"===t.icon?a("key-icon",{staticClass:"vue-feather text-theme dark-text-theme mr-3",attrs:{size:"22"}}):t._e(),t._v(" "),"users"===t.icon?a("users-icon",{staticClass:"vue-feather text-theme dark-text-theme mr-3",attrs:{size:"22"}}):t._e(),t._v(" "),"wifi"===t.icon?a("wifi-icon",{staticClass:"vue-feather text-theme dark-text-theme mr-3",attrs:{size:"22"}}):t._e(),t._v(" "),"trending-up"===t.icon?a("trending-up-icon",{staticClass:"vue-feather text-theme dark-text-theme mr-3",attrs:{size:"22"}}):t._e(),t._v(" "),a("b",{staticClass:"text-md font-bold dark:text-gray-200 sm:text-lg"},[t._t("default")],2)],1)}),[],!1,null,null,null).exports},8086:(t,e,a)=>{a.d(e,{Z:()=>i});var s=a(9101);const r={name:"AlertBox",props:["isLoading","color"],components:{AlertOctagonIcon:s.D3N,RefreshCwIcon:s.Iyk}};const i=(0,a(1900).Z)(r,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"mb-6 flex items-center rounded-xl p-5 shadow-card",class:{"dark:bg-green-700/30 bg-green-200":"green"===t.color,"dark:bg-rose-700/30 bg-rose-200":"rose"===t.color}},[t.isLoading?a("refresh-cw-icon",{staticClass:"vue-feather mr-4 shrink-0 animate-spin",class:{"text-green-700 dark:text-green-500":"green"===t.color,"text-rose-700 dark:text-rose-500":"rose"===t.color},attrs:{size:"18"}}):t._e(),t._v(" "),t.isLoading?t._e():a("alert-octagon-icon",{staticClass:"vue-feather mr-4 shrink-0",class:{"text-green-700 dark:text-green-500":"green"===t.color,"text-rose-700 dark:text-rose-500":"rose"===t.color},attrs:{size:"18"}}),t._v(" "),a("p",{staticClass:"text-sm",class:{"text-green-700 dark:text-green-500":"green"===t.color,"text-rose-700 dark:text-rose-500":"rose"===t.color}},[t._t("default")],2)],1)}),[],!1,null,null,null).exports},7059:(t,e,a)=>{a.d(e,{Z:()=>l});const s={name:"InfoBox",props:["type"]};var r=a(3379),i=a.n(r),n=a(4507),o={insert:"head",singleton:!1};i()(n.Z,o);n.Z.locals;const l=(0,a(1900).Z)(s,(function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"info-box",class:t.type},[t._t("default")],2)}),[],!1,null,"26872047",null).exports},8422:(t,e,a)=>{a.d(e,{Z:()=>l});const s={name:"DatatableCellImage",props:["member","title","description","image-size"],components:{MemberAvatar:a(845).Z}};var r=a(3379),i=a.n(r),n=a(4962),o={insert:"head",singleton:!1};i()(n.Z,o);n.Z.locals;const l=(0,a(1900).Z)(s,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"flex shrink-0 grow-0 items-center"},[a("MemberAvatar",{staticClass:"mr-3 shrink-0",attrs:{"is-border":!1,size:52,member:t.member}}),t._v(" "),a("div",{staticClass:"info"},[t.title?a("b",{staticClass:"name"},[t._v(t._s(t.title))]):t._e(),t._v(" "),t.description?a("span",{staticClass:"description"},[t._v(t._s(t.description))]):t._e()])],1)}),[],!1,null,"47cc578e",null).exports},3233:(t,e,a)=>{a.d(e,{Z:()=>m});var s=a(9101);const r={props:["data"],computed:{normalizedColumns:function(){return this.data.id&&delete this.data.id,Object.values(this.data)}}};var i=a(3379),n=a.n(i),o=a(2424),l={insert:"head",singleton:!1};n()(o.Z,l);o.Z.locals;var c=a(1900);const d=(0,c.Z)(r,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("tr",{staticClass:"table-row"},t._l(t.normalizedColumns,(function(e,s){return a("td",{key:s,staticClass:"table-cell"},[a("span",[t._v(t._s(e))])])})),0)}),[],!1,null,"61827e38",null).exports;var p=a(9669),b=a.n(p);const u={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,e){e&&(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 e=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){e.data=t.data,e.$emit("data",t.data)})).catch((function(){return e.$isSomethingWrong()})).finally((function(){e.$emit("init",!0),e.isLoading=!1}))}},created:function(){this.api&&this.getPage(this.pageIndex),this.tableData&&(this.data=this.tableData,this.isLoading=!1)}};const m=(0,c.Z)(u,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"w-full"},[t.hasData?a("table",{staticClass:"w-full"},[a("thead",[a("tr",{staticClass:"whitespace-nowrap"},t._l(t.columns,(function(e,s){return e.hidden?t._e():a("th",{key:s,staticClass:"text-left",class:{"sortable cursor-pointer":e.sortable,"text-right":Object.values(t.columns).length-1===s},on:{click:function(a){return t.sort(e.field,e.sortable)}}},[a("span",{staticClass:"text-xs text-gray-400 dark:text-gray-500"},[t._v("\n "+t._s(t.$t(e.label))+"\n ")]),t._v(" "),e.sortable?a("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(" "),a("tbody",{staticClass:"table-body"},[t._l(t.data.data,(function(e){return t._t("default",(function(){return[a("DatatableCell",{key:e.id,attrs:{data:e}})]}),{row:e})}))],2)]):t._e(),t._v(" "),t.isLoading||t.hasData?t._e():t._t("empty-page"),t._v(" "),t.paginator&&t.hasData?a("div",{staticClass:"mt-6 sm:flex sm:items-center sm:justify-between"},[t.data.meta.total>15&&t.data.meta.last_page<=6?a("ul",{staticClass:"pagination flex justify-center items-center"},[a("li",{staticClass:"previous inline-block p-1"},[a("a",{staticClass:"page-link",class:{"cursor-default opacity-20":1===t.pageIndex},on:{click:function(e){return t.goToPage(t.pageIndex-1)}}},[a("chevron-left-icon",{staticClass:"inline-block",attrs:{size:"14"}})],1)]),t._v(" "),t._l(t.data.meta.last_page,(function(e,s){return a("li",{key:s,staticClass:"inline-block p-1",on:{click:function(a){return t.goToPage(e)}}},[a("a",{staticClass:"page-link",class:{"bg-light-background dark:bg-4x-dark-foreground dark:text-gray-300":t.pageIndex===e}},[t._v("\n "+t._s(e)+"\n ")])])})),t._v(" "),a("li",{staticClass:"next inline-block p-1"},[a("a",{staticClass:"page-link",class:{"cursor-default opacity-20":t.pageIndex===t.data.meta.last_page},on:{click:function(e){return t.goToPage(t.pageIndex+1)}}},[a("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?a("ul",{staticClass:"pagination flex justify-center items-center"},[a("li",{staticClass:"previous inline-block p-1"},[a("a",{staticClass:"page-link",class:{"cursor-default opacity-20":1===t.pageIndex},on:{click:function(e){return t.goToPage(t.pageIndex-1)}}},[a("chevron-left-icon",{staticClass:"inline-block",attrs:{size:"14"}})],1)]),t._v(" "),t.pageIndex>=5?a("li",{staticClass:"inline-block p-1",on:{click:function(e){return t.goToPage(1)}}},[a("a",{staticClass:"page-link"},[t._v(" 1 ")])]):t._e(),t._v(" "),t._l(5,(function(e,s){return t.pageIndex<5?a("li",{key:s,staticClass:"inline-block p-1",on:{click:function(a){return t.goToPage(e)}}},[a("a",{staticClass:"page-link",class:{"bg-light-background dark:bg-4x-dark-foreground dark:text-gray-300":t.pageIndex===e}},[t._v("\n "+t._s(e)+"\n ")])]):t._e()})),t._v(" "),t.pageIndex>=5?a("li",{staticClass:"inline-block p-1"},[a("a",{staticClass:"page-link"},[t._v("...")])]):t._e(),t._v(" "),t._l(t.floatPages,(function(e,s){return t.pageIndex>=5&&t.pageIndex<t.data.meta.last_page-3?a("li",{key:s,staticClass:"inline-block p-1",on:{click:function(a){return t.goToPage(e)}}},[a("a",{staticClass:"page-link",class:{"bg-light-background dark:bg-4x-dark-foreground dark:text-gray-300":t.pageIndex===e}},[t._v("\n "+t._s(e)+"\n ")])]):t._e()})),t._v(" "),t.pageIndex<t.data.meta.last_page-3?a("li",{staticClass:"inline-block p-1"},[a("a",{staticClass:"page-link"},[t._v("...")])]):t._e(),t._v(" "),t._l(5,(function(e,s){return t.pageIndex>t.data.meta.last_page-4?a("li",{key:s,staticClass:"inline-block p-1",on:{click:function(e){t.goToPage(t.data.meta.last_page-(4-s))}}},[a("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?a("li",{staticClass:"inline-block p-1",on:{click:function(e){return t.goToPage(t.data.meta.last_page)}}},[a("a",{staticClass:"page-link"},[t._v("\n "+t._s(t.data.meta.last_page)+"\n ")])]):t._e(),t._v(" "),a("li",{staticClass:"next inline-block p-1"},[a("a",{staticClass:"page-link",class:{"cursor-default opacity-20":t.pageIndex===t.data.meta.last_page},on:{click:function(e){return t.goToPage(t.pageIndex+1)}}},[a("chevron-right-icon",{staticClass:"inline-block",attrs:{size:"14"}})],1)])],2):t._e(),t._v(" "),a("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},133:(t,e,a)=>{a.r(e),a.d(e,{default:()=>L});var s=a(8422),r=a(3233),i=a(3346),n=a(9101),o=a(845),l=a(629);function c(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,s)}return a}function d(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?c(Object(a),!0).forEach((function(e){p(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):c(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function p(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}const b={name:"WidgetLatestRegistrations",props:["icon","title"],components:{DatatableCellImage:s.Z,DatatableWrapper:r.Z,MemberAvatar:o.Z,Trash2Icon:n.Bf1,ColorLabel:i.Z,Edit2Icon:n.me4},computed:d(d({},(0,l.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("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:!1}}};var u=a(1900);const m=(0,u.Z)(b,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("DatatableWrapper",{staticClass:"mt-6 overflow-x-auto",attrs:{api:"/api/admin/dashboard/newbies",paginator:!1,columns:t.columns},on:{init:function(e){t.isLoading=!1}},scopedSlots:t._u([{key:"default",fn:function(e){var s=e.row;return["none"===t.config.subscriptionType?a("tr",{staticClass:"whitespace-nowrap border-b border-dashed border-light dark:border-opacity-5"},[a("td",{staticClass:"py-3 pr-3 md:pr-1"},[a("router-link",{attrs:{to:{name:"UserDetail",params:{id:s.data.id}}}},[a("div",{staticClass:"flex items-center"},[a("MemberAvatar",{attrs:{"is-border":!1,size:44,member:s}}),t._v(" "),a("div",{staticClass:"ml-3 pr-10"},[a("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(" "),a("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(" "),a("td",{staticClass:"px-3 md:px-1"},[a("ColorLabel",{attrs:{color:t.$getUserRoleColor(s.data.attributes.role)}},[t._v("\n "+t._s(t.$t(s.data.attributes.role))+"\n ")])],1),t._v(" "),a("td",{staticClass:"px-3 md:px-1"},[0!==s.data.attributes.storage.capacity?a("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?a("span",{staticClass:"text-sm font-bold"},[t._v(" - ")]):t._e()]),t._v(" "),t.config.storageLimit?a("td",{staticClass:"px-3 md:px-1"},[0!==s.data.attributes.storage.capacity?a("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?a("span",{staticClass:"text-sm font-bold"},[t._v(" - ")]):t._e()]):t._e(),t._v(" "),a("td",{staticClass:"px-3 md:px-1"},[a("span",{staticClass:"text-sm font-bold"},[t._v("\n "+t._s(s.data.attributes.created_at)+"\n ")])]),t._v(" "),a("td",{staticClass:"pl-3 text-right md:pl-1"},[a("div",{staticClass:"flex w-full justify-end space-x-2"},[a("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}}}},[a("Edit2Icon",{staticClass:"opacity-75",attrs:{size:"15"}})],1),t._v(" "),a("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}}}},[a("Trash2Icon",{staticClass:"opacity-75",attrs:{size:"15"}})],1)],1)])]):t._e(),t._v(" "),"fixed"===t.config.subscriptionType?a("tr",{staticClass:"whitespace-nowrap border-b border-dashed border-light dark:border-opacity-5"},[a("td",{staticClass:"py-3 pr-3 md:pr-1"},[a("router-link",{attrs:{to:{name:"UserDetail",params:{id:s.data.id}}}},[a("div",{staticClass:"flex items-center"},[a("MemberAvatar",{attrs:{"is-border":!1,size:44,member:s}}),t._v(" "),a("div",{staticClass:"ml-3 pr-10"},[a("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(" "),a("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(" "),a("td",{staticClass:"px-3 md:px-1"},[a("ColorLabel",{attrs:{color:t.$getUserRoleColor(s.data.attributes.role)}},[t._v("\n "+t._s(t.$t(s.data.attributes.role))+"\n ")])],1),t._v(" "),t.config.isSaaS?a("td",{staticClass:"px-3 md:px-1"},[a("span",{staticClass:"text-sm font-bold"},[t._v("\n "+t._s(s.data.relationships.subscription?t.$t("premium"):t.$t("free"))+"\n ")])]):t._e(),t._v(" "),a("td",{staticClass:"px-3 md:px-1"},[0!==s.data.attributes.storage.capacity?a("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?a("span",{staticClass:"text-sm font-bold"},[t._v(" - ")]):t._e()]),t._v(" "),t.config.storageLimit?a("td",{staticClass:"px-3 md:px-1"},[0!==s.data.attributes.storage.capacity?a("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?a("span",{staticClass:"text-sm font-bold"},[t._v(" - ")]):t._e()]):t._e(),t._v(" "),a("td",{staticClass:"px-3 md:px-1"},[a("span",{staticClass:"text-sm font-bold"},[t._v("\n "+t._s(s.data.attributes.created_at)+"\n ")])]),t._v(" "),a("td",{staticClass:"pl-3 text-right md:pl-1"},[a("div",{staticClass:"flex w-full justify-end space-x-2"},[a("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}}}},[a("Edit2Icon",{staticClass:"opacity-75",attrs:{size:"15"}})],1),t._v(" "),a("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}}}},[a("Trash2Icon",{staticClass:"opacity-75",attrs:{size:"15"}})],1)],1)])]):t._e(),t._v(" "),"metered"===t.config.subscriptionType?a("tr",{staticClass:"whitespace-nowrap border-b border-dashed border-light dark:border-opacity-5"},[a("td",{staticClass:"py-3 pr-3 md:pr-1"},[a("router-link",{attrs:{to:{name:"UserDetail",params:{id:s.data.id}}}},[a("div",{staticClass:"flex items-center"},[a("MemberAvatar",{attrs:{"is-border":!1,size:44,member:s}}),t._v(" "),a("div",{staticClass:"ml-3 pr-10"},[a("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(" "),a("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(" "),a("td",{staticClass:"px-3 md:px-1"},[a("ColorLabel",{attrs:{color:t.$getUserRoleColor(s.data.attributes.role)}},[t._v("\n "+t._s(t.$t(s.data.attributes.role))+"\n ")])],1),t._v(" "),a("td",{staticClass:"px-3 md:px-1"},[a("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(" "),a("td",{staticClass:"px-3 md:px-1"},[a("span",{staticClass:"text-sm font-bold"},[t._v("\n "+t._s(s.data.meta.usages?s.data.meta.usages.costEstimate:"-")+"\n ")])]),t._v(" "),a("td",{staticClass:"px-3 md:px-1"},[a("span",{staticClass:"text-sm font-bold"},[t._v("\n "+t._s(s.data.attributes.created_at)+"\n ")])]),t._v(" "),a("td",{staticClass:"pl-3 text-right md:pl-1"},[a("div",{staticClass:"flex w-full justify-end space-x-2"},[a("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}}}},[a("Edit2Icon",{staticClass:"opacity-75",attrs:{size:"15"}})],1),t._v(" "),a("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}}}},[a("Trash2Icon",{staticClass:"opacity-75",attrs:{size:"15"}})],1)],1)])]):t._e()]}}])})}),[],!1,null,null,null).exports;var g=a(8524),f=a(2611),_=a(1463),v=a(9669),x=a.n(v),h=a(7059);function C(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,s)}return a}function k(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}const y={name:"WidgetLatestTransactions",props:["icon","title"],components:{DatatableCellImage:s.Z,DatatableWrapper:r.Z,MemberAvatar:o.Z,Trash2Icon:n.Bf1,ColorLabel:i.Z,Edit2Icon:n.me4,InfoBox:h.Z},computed:function(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?C(Object(a),!0).forEach((function(e){k(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):C(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}({},(0,l.Se)(["config"])),data:function(){return{columns:[{label:this.$t("note"),field:"note",sortable:!0},{label:this.$t("user"),field:"user_id",sortable:!0},{label:this.$t("status"),field:"status",sortable:!0},{label:this.$t("total"),field:"amount",sortable:!0},{label:this.$t("payed_at"),field:"created_at",sortable:!0},{label:this.$t("service"),field:"driver",sortable:!0}]}}};const w=(0,u.Z)(y,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("DatatableWrapper",{staticClass:"overflow-x-auto",attrs:{api:"/api/admin/dashboard/transactions",columns:t.columns},scopedSlots:t._u([{key:"default",fn:function(e){var s=e.row;return[a("tr",{staticClass:"whitespace-nowrap border-b border-dashed border-light dark:border-opacity-5"},[a("td",{staticClass:"py-5 pr-3 md:pr-1"},[a("span",{staticClass:"text-sm font-bold"},[t._v("\n "+t._s(s.data.attributes.note)+"\n ")])]),t._v(" "),a("td",{staticClass:"px-3 md:px-1"},[s.data.relationships.user?a("div",{staticClass:"flex items-center"},[a("MemberAvatar",{attrs:{"is-border":!1,size:36,member:s.data.relationships.user}}),t._v(" "),a("div",{staticClass:"ml-3 pr-10"},[a("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.user.data.attributes.name)+"\n ")]),t._v(" "),a("span",{staticClass:"block text-xs text-gray-600 dark:text-gray-500"},[t._v("\n "+t._s(s.data.relationships.user.data.attributes.email)+"\n ")])])],1):t._e(),t._v(" "),s.data.relationships.user?t._e():a("span",{staticClass:"text-xs font-bold text-gray-500"},[t._v("\n "+t._s(t.$t("user_was_deleted"))+"\n ")])]),t._v(" "),a("td",{staticClass:"px-3 md:px-1"},["fixed"===t.config.subscriptionType?a("ColorLabel",{attrs:{color:t.$getTransactionStatusColor(s.data.attributes.status)}},[t._v("\n "+t._s(t.$t(s.data.attributes.status))+"\n ")]):t._e(),t._v(" "),"metered"===t.config.subscriptionType?a("ColorLabel",{attrs:{color:t.$getTransactionTypeColor(s.data.attributes.type)}},[t._v("\n "+t._s(t.$t(s.data.attributes.type))+"\n ")]):t._e()],1),t._v(" "),a("td",{staticClass:"px-3 md:px-1"},[a("span",{staticClass:"text-sm font-bold",class:t.$getTransactionTypeTextColor(s.data.attributes.type)},[t._v("\n "+t._s(t.$getTransactionMark(s.data.attributes.type)+s.data.attributes.price)+"\n ")])]),t._v(" "),a("td",{staticClass:"px-3 md:px-1"},[a("span",{staticClass:"text-sm font-bold"},[t._v("\n "+t._s(s.data.attributes.created_at)+"\n ")])]),t._v(" "),a("td",{staticClass:"pl-3 md:pl-1"},[a("div",{staticClass:"w-28"},[a("img",{staticClass:"inline-block max-h-5",attrs:{src:t.$getPaymentLogo(s.data.attributes.driver),alt:s.data.attributes.driver}})])])])]}},{key:"empty-page",fn:function(){return[a("InfoBox",{staticStyle:{"margin-bottom":"0"}},[a("p",[t._v(t._s(t.$t("not_any_transactions")))])])]},proxy:!0}])})}),[],!1,null,null,null).exports;var I=a(8086);function $(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,s)}return a}function O(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}const j={name:"AppSpecification",components:{ThumbsUpIcon:n.lbB,ColorLabel:i.Z},props:{data:{}},computed:function(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?$(Object(a),!0).forEach((function(e){O(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):$(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}({},(0,l.Se)(["config","isDarkMode"]))};function P(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,s)}return a}function z(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}const D={name:"Dashboard",components:{AppSpecification:(0,u.Z)(j,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"mb-4 items-center justify-between md:mb-6"},[a("a",{attrs:{href:"https://vuefilemanager.com",target:"_blank"}},[a("img",{staticClass:"light-mode",attrs:{src:t.isDarkMode?"/assets/images/vuefilemanager-horizontal-logo-dark.svg":"/assets/images/vuefilemanager-horizontal-logo.svg",alt:"VueFileManager"}})]),t._v(" "),a("div",{staticClass:"mt-4 flex items-center lg:mt-0"},[a("a",{staticClass:"mr-4 inline-block",attrs:{href:"https://gist.github.com/MakingCG/9c07f8af392081ae5d5290d920a79b5d",target:"_blank"}},[a("span",{staticClass:"text-sm font-bold"},[t._v(" "+t._s(t.$t("version"))+": ")]),t._v(" "),a("ColorLabel",{attrs:{color:"purple"}},[t._v("\n "+t._s(t.data.app.version)+"\n ")])],1),t._v(" "),a("a",{staticClass:"mr-4 inline-block",attrs:{href:"https://codecanyon.net/item/vue-file-manager-with-laravel-backend/25815986",target:"_blank"}},[a("span",{staticClass:"text-sm font-bold"},[t._v(" "+t._s(t.$t("license"))+": ")]),t._v(" "),a("ColorLabel",{attrs:{color:"purple"}},[t._v("\n "+t._s(t.data.app.license)+"\n ")])],1),t._v(" "),"extended"===t.data.app.license?a("b",{staticClass:"mr-4 inline-block"},[a("span",{staticClass:"text-sm font-bold"},[t._v(" "+t._s(t.$t("subscription"))+": ")]),t._v(" "),a("ColorLabel",{attrs:{color:"purple"}},[t._v("\n "+t._s(t.config.subscriptionType)+"\n ")])],1):t._e(),t._v(" "),a("a",{staticClass:"bg-theme-100 ml-8 hidden items-center whitespace-nowrap rounded-lg py-1.5 px-3 lg:flex lg:ml-4",attrs:{href:"https://bit.ly/VueFileManager-survey",target:"_blank"}},[a("thumbs-up-icon",{staticClass:"vue-feather text-theme mr-2.5",attrs:{size:"15"}}),t._v(" "),a("span",{staticClass:"text-theme text-sm font-bold"},[t._v("\n "+t._s(t.$t("write_feedback"))+"\n ")])],1)])])}),[],!1,null,null,null).exports,AlertBox:I.Z,WidgetLatestTransactions:w,WidgetLatestRegistrations:m,ChevronRightIcon:n.XCv,FormLabel:f.Z,BarChart:_.Z,Spinner:g.Z},computed:function(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?P(Object(a),!0).forEach((function(e){z(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):P(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}({},(0,l.Se)(["config"])),data:function(){return{isLoading:!1,data:void 0}},created:function(){var t=this;x().get("/api/admin/dashboard").then((function(e){t.data=e.data})).finally((function(){t.isLoading=!1}))}};const L=(0,u.Z)(D,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[!t.isLoading&&t.data?a("div",{attrs:{id:"page-content"}},[t.config.isAdminVueFileManagerBar?a("AppSpecification",{staticClass:"hidden lg:flex",attrs:{data:t.data}}):t._e(),t._v(" "),t.config.isAdminVueFileManagerBar?a("AppSpecification",{staticClass:"card shadow-card lg:hidden",attrs:{data:t.data}}):t._e(),t._v(" "),"metered"===t.config.subscriptionType&&t.config.isEmptyPlans?a("AlertBox",{attrs:{color:"rose"}},[t._v("\n \tAs you installed app with metered subscription type, you have to "),a("router-link",{staticClass:"dark:text-rose-500 text-sm font-bold underline",attrs:{to:{name:"CreateMeteredPlan"}}},[t._v("create your plan")]),t._v(" as soon as possible to prevent new user registration without automatically assigned subscription plan.\n\t\t\t")],1):t._e(),t._v(" "),t.data.app.cron.isRunning||t.config.isDev?t._e():a("AlertBox",{attrs:{color:"rose"}},[a("p",{staticClass:"text-sm text-rose-700 dark:text-rose-500"},[t._v("We detect your cron jobs probably doesn't work correctly, please check it, you need it for running app correctly. If you set your cron job, please get back one minute later.")]),t._v(" "),a("p",{staticClass:"text-sm text-rose-700 dark:text-rose-500 mt-4 font-bold"},[t._v("Command for Shared Web Hosting (Cpanel, Plesk, etc...): "),a("br"),t._v(" "+t._s(t.data.app.cron.command.shared))]),t._v(" "),a("p",{staticClass:"text-sm text-rose-700 dark:text-rose-500 mt-4 font-bold"},[t._v("Command for crontab: "),a("br"),t._v(" "+t._s(t.data.app.cron.command.vps))])]),t._v(" "),a("div",{staticClass:"mb-2 md:mb-6 md:flex md:space-x-6"},[a("div",{staticClass:"card mb-4 w-full shadow-card md:mb-0"},[a("FormLabel",{attrs:{icon:"users"}},[t._v("\n "+t._s(t.$t("total_users"))+"\n ")]),t._v(" "),a("b",{staticClass:"-mt-3 mb-0.5 block text-2xl font-extrabold sm:text-3xl"},[t._v("\n "+t._s(t.data.users.total)+"\n ")]),t._v(" "),a("router-link",{staticClass:"mt-6 flex items-center",attrs:{to:{name:"Users"}}},[a("span",{staticClass:"mr-2 whitespace-nowrap text-xs font-bold"},[t._v("\n "+t._s(t.$t("show_all_users"))+"\n ")]),t._v(" "),a("chevron-right-icon",{staticClass:"text-theme vue-feather",attrs:{size:"16"}})],1)],1),t._v(" "),a("div",{staticClass:"card mb-4 w-full shadow-card md:mb-0"},[a("FormLabel",{attrs:{icon:"hard-drive"}},[t._v("\n "+t._s(t.$t("total_storage"))+"\n ")]),t._v(" "),a("b",{staticClass:"-mt-3 mb-0.5 block text-2xl font-extrabold sm:text-3xl"},[t._v("\n "+t._s(t.data.disk.used)+"\n ")]),t._v(" "),a("router-link",{staticClass:"mt-6 flex items-center",attrs:{to:{name:"Users"}}},[a("span",{staticClass:"mr-2 whitespace-nowrap text-xs font-bold"},[t._v("\n "+t._s(t.$t("show_all_users"))+"\n ")]),t._v(" "),a("chevron-right-icon",{staticClass:"text-theme vue-feather",attrs:{size:"16"}})],1)],1),t._v(" "),"none"!==t.config.subscriptionType?a("div",{staticClass:"card mb-4 w-full shadow-card md:mb-0"},[a("FormLabel",{attrs:{icon:"dollar"}},[t._v("\n "+t._s(t.$t("earnings"))+"\n ")]),t._v(" "),a("b",{staticClass:"-mt-3 mb-0.5 block text-2xl font-extrabold sm:text-3xl"},[t._v("\n "+t._s(t.data.app.earnings)+"\n ")]),t._v(" "),a("router-link",{staticClass:"mt-6 flex items-center",attrs:{to:{name:"Invoices"}}},[a("span",{staticClass:"mr-2 whitespace-nowrap text-xs font-bold"},[t._v("\n "+t._s(t.$t("show_all_transactions"))+"\n ")]),t._v(" "),a("chevron-right-icon",{staticClass:"text-theme vue-feather",attrs:{size:"16"}})],1)],1):t._e()]),t._v(" "),a("div",{staticClass:"card mb-4 shadow-card md:mb-6"},[a("FormLabel",{attrs:{icon:"hard-drive"}},[t._v("\n "+t._s(t.$t("upload"))+"\n ")]),t._v(" "),a("b",{staticClass:"-mt-3 mb-0.5 block text-2xl font-extrabold sm:text-3xl"},[t._v("\n "+t._s(t.data.disk.upload.total)+"\n ")]),t._v(" "),a("b",{staticClass:"mb-3 mb-2 block text-sm dark:text-gray-500 text-gray-400"},[t._v("\n "+t._s(t.$t("in_last_x_days"))+"\n ")]),t._v(" "),a("BarChart",{attrs:{data:t.data.disk.upload.records}})],1),t._v(" "),a("div",{staticClass:"card mb-4 shadow-card md:mb-6"},[a("FormLabel",{attrs:{icon:"hard-drive"}},[t._v("\n "+t._s(t.$t("download"))+"\n ")]),t._v(" "),a("b",{staticClass:"-mt-3 mb-0.5 block text-2xl font-extrabold sm:text-3xl"},[t._v("\n "+t._s(t.data.disk.download.total)+"\n ")]),t._v(" "),a("b",{staticClass:"mb-3 mb-5 block text-sm dark:text-gray-500 text-gray-400"},[t._v("\n "+t._s(t.$t("in_last_x_days"))+"\n ")]),t._v(" "),a("BarChart",{attrs:{data:t.data.disk.download.records}})],1),t._v(" "),a("div",{staticClass:"card mb-4 shadow-card md:mb-6"},[a("FormLabel",{attrs:{icon:"users"}},[t._v("\n "+t._s(t.$t("latest_registrations"))+"\n ")]),t._v(" "),a("WidgetLatestRegistrations")],1),t._v(" "),["fixed","metered"].includes(this.config.subscriptionType)?a("div",{staticClass:"card mb-4 shadow-card md:mb-6"},[a("FormLabel",{attrs:{icon:"dollar"}},[t._v("\n "+t._s(t.$t("latest_transactions"))+"\n ")]),t._v(" "),a("WidgetLatestTransactions")],1):t._e()],1):t._e(),t._v(" "),t.isLoading?a("div",{attrs:{id:"loader"}},[a("Spinner")],1):t._e()])}),[],!1,null,null,null).exports}}]);