Files
vuefilemanager/public/chunks/dashboard.js
Čarodej 95629ad57d build
2022-04-27 10:33:04 +02:00

1 line
28 KiB
JavaScript
Vendored

"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[52],{7520:(t,e,a)=>{a.d(e,{Z:()=>n});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 n=r},2424:(t,e,a)=>{a.d(e,{Z:()=>n});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 n=r},4962:(t,e,a)=>{a.d(e,{Z:()=>n});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 n=r},1463:(t,e,a)=>{a.d(e,{Z:()=>i});const s={name:"Bar",props:["bar"],data:function(){return{isVisible:!1}}};var r=a(1900);const n={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 i=(0,r.Z)(n,(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),n=a.n(r),i=a(7520),o={insert:"head",singleton:!1};n()(i.Z,o);i.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:()=>n});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 n=(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},2292:(t,e,a)=>{a.d(e,{Z:()=>n});var s=a(9101);const r={name:"AlertBox",props:["isLoading","color"],components:{AlertOctagonIcon:s.D3N,RefreshCwIcon:s.Iyk}};const n=(0,a(1900).Z)(r,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"mb-6 flex cursor-pointer 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 text-green-700 dark:text-green-500",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},8422:(t,e,a)=>{a.d(e,{Z:()=>l});const s={name:"DatatableCellImage",props:["member","title","description","image-size"],components:{MemberAvatar:a(9754).Z}};var r=a(3379),n=a.n(r),i=a(4962),o={insert:"head",singleton:!1};n()(i.Z,o);i.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 n=a(3379),i=a.n(n),o=a(2424),l={insert:"head",singleton:!1};i()(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),u=a.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,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,u().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)(g,(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},3467:(t,e,a)=>{a.r(e),a.d(e,{default:()=>j});var s=a(8422),r=a(3233),n=a(3346),i=a(9101),o=a(9754),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 u={name:"WidgetLatestRegistrations",props:["icon","title"],components:{DatatableCellImage:s.Z,DatatableWrapper:r.Z,MemberAvatar:o.Z,Trash2Icon:i.Bf1,ColorLabel:n.Z,Edit2Icon:i.me4},computed:d(d({},(0,l.Se)(["config"])),{},{columns:function(){return[{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}]}}),data:function(){return{isLoading:!1}}};var g=a(1900);const m=(0,g.Z)(u,(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[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)])])]}}])})}),[],!1,null,null,null).exports;var b=a(8524),f=a(2611),h=a(1463),_=a(9669),v=a.n(_),x=a(2292);function k(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 C(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:"AppSpecification",components:{ThumbsUpIcon:i.lbB,ColorLabel:n.Z},props:{data:{}},computed:function(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?k(Object(a),!0).forEach((function(e){C(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):k(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}({},(0,l.Se)(["config","isDarkMode"]))};function w(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 I(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}const O={name:"Dashboard",components:{AppSpecification:(0,g.Z)(y,(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:x.Z,WidgetLatestRegistrations:m,ChevronRightIcon:i.XCv,FormLabel:f.Z,BarChart:h.Z,Spinner:b.Z},computed:function(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?w(Object(a),!0).forEach((function(e){I(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):w(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;v().get("/api/admin/dashboard").then((function(e){t.data=e.data})).finally((function(){t.isLoading=!1}))}};const j=(0,g.Z)(O,(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(" "),t.data.app.isRunningCron||t.config.isDev?t._e():a("AlertBox",{attrs:{color:"rose"}},[t._v("\n\t\t\t\tWe 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.\n\t\t\t")]),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(" "),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)],1):t._e(),t._v(" "),t.isLoading?a("div",{attrs:{id:"loader"}},[a("Spinner")],1):t._e()])}),[],!1,null,null,null).exports}}]);