diff --git a/public/chunks/dashboard.js b/public/chunks/dashboard.js index 85665b70..9dcec297 100644 --- a/public/chunks/dashboard.js +++ b/public/chunks/dashboard.js @@ -1 +1 @@ -"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},2292:(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 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},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.pageIndext.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{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