text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-129e62a9"],{"1f4f":function(t,a,e){"use strict";var i=e("5530"),s=(e("a9e3"),e("8b37"),e("80d2")),r=e("7560"),n=e("58df");a["a"]=Object(n["a"])(r["a"]).extend({name:"v-simple-table",props:{dense:Boolean,fixedHeader:Boolean,height:[Number,String]},computed:{classes:function(){return Object(i["a"])({"v-data-table--dense":this.dense,"v-data-table--fixed-height":!!this.height&&!this.fixedHeader,"v-data-table--fixed-header":this.fixedHeader,"v-data-table--has-top":!!this.$slots.top,"v-data-table--has-bottom":!!this.$slots.bottom},this.themeClasses)}},methods:{genWrapper:function(){return this.$slots.wrapper||this.$createElement("div",{staticClass:"v-data-table__wrapper",style:{height:Object(s["g"])(this.height)}},[this.$createElement("table",this.$slots.default)])}},render:function(t){return t("div",{staticClass:"v-data-table",class:this.classes},[this.$slots.top,this.genWrapper(),this.$slots.bottom])}})},"8b37":function(t,a,e){},"969c":function(t,a,e){"use strict";e.r(a);var i=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("AdminLayout",[e("v-container",{attrs:{fluid:""}},[e("v-row",[e("v-col",{attrs:{cols:"6"}},[e("v-card",{staticClass:"mb-2",attrs:{color:"#1F7087",dark:""}},[e("div",{staticClass:"d-flex flex-no-wrap justify-space-between"},[e("div",[e("v-card-title",{staticClass:"headline"},[t._v(" JUMLAH PARALEGAL ")]),e("v-card-subtitle",[t._v("Total : "+t._s(t.jumlah_paralegal)+" Orang, Melaporkan Kegiatan: "+t._s(t.jumlah_paralegal_laporan)+" Orang")]),e("v-card-actions",[e("v-btn",{staticClass:"ml-2 mt-5",attrs:{outlined:"",rounded:"",small:""}},[t._v(" DETAIL ")])],1)],1),e("v-avatar",{staticClass:"ma-3",attrs:{size:"125",tile:""}},[e("v-img",{attrs:{src:"https://cdn.vuetifyjs.com/images/cards/foster.jpg"}})],1)],1)]),e("v-card",{staticClass:"mb-2",attrs:{color:"#1F7087",dark:""}},[e("div",{staticClass:"d-flex flex-no-wrap justify-space-between"},[e("div",[e("v-card-title",{staticClass:"headline"},[t._v(" JUMLAH OBH ")]),e("v-card-subtitle",[t._v(t._s(t.jumlah_obh))]),e("v-card-actions",[e("v-btn",{staticClass:"ml-2 mt-5",attrs:{outlined:"",rounded:"",small:""}},[t._v(" DETAIL ")])],1)],1),e("v-avatar",{staticClass:"ma-3",attrs:{size:"125",tile:""}},[e("v-img",{attrs:{src:"https://cdn.vuetifyjs.com/images/cards/foster.jpg"}})],1)],1)]),e("v-card",{staticClass:"mb-2",attrs:{color:"#1F7087",dark:""}},[e("div",{staticClass:"d-flex flex-no-wrap justify-space-between"},[e("div",[e("v-card-title",{staticClass:"headline"},[t._v(" JUMLAH KEPALA DESA ")]),e("v-card-subtitle",[t._v(t._s(t.jumlah_kades))]),e("v-card-actions",[e("v-btn",{staticClass:"ml-2 mt-5",attrs:{outlined:"",rounded:"",small:""}},[t._v(" DETAIL ")])],1)],1),e("v-avatar",{staticClass:"ma-3",attrs:{size:"125",tile:""}},[e("v-img",{attrs:{src:"https://cdn.vuetifyjs.com/images/cards/foster.jpg"}})],1)],1)])],1),t.$vuetify.breakpoint.xsOnly?e("v-responsive",{attrs:{width:"100%"}}):t._e(),e("v-col",{attrs:{cols:"6"}},[e("v-simple-table",{scopedSlots:t._u([{key:"default",fn:function(){return[e("thead",[e("tr",[e("th",{staticClass:"text-left"},[t._v(" Jenis Kegiatan ")]),e("th",{staticClass:"text-left"},[t._v(" Jumlah ")])])]),e("tbody",t._l(t.data_jenis_kegiatan,(function(a){return e("tr",{key:a.id_jenis},[e("td",[t._v(t._s(a.nama_jenis))]),e("td",[t._v(t._s(a.jumlah))])])})),0),e("tfoot",{staticClass:"orange"},[e("tr",[e("td",[t._v("Total Kegiatan")]),e("td",[t._v(t._s(t.totalJenisKegiatan))])])])]},proxy:!0}])})],1),t.$vuetify.breakpoint.xsOnly?e("v-responsive",{attrs:{width:"100%"}}):t._e()],1)],1)],1)},s=[],r=e("1da1"),n=(e("96cf"),e("a1b3")),l={name:"Dashboard",created:function(){this.TOKEN=this.$route.params.token,this.breadcrumbs=[{text:"HOME",disabled:!1,href:"/dashboard/"+this.TOKEN},{text:"DASHBOARD",disabled:!0,href:"#"}],this.initialize(),this.fetchData()},data:function(){return{breadcrumbs:[],TOKEN:null,dashboard:null,tahun_pendaftaran:"",data_jenis_kegiatan:[],jumlah_paralegal:0,jumlah_paralegal_laporan:0,jumlah_obh:0,jumlah_kades:0}},methods:{initialize:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){var a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$ajax.get("/auth/me",{headers:{Authorization:"Bearer "+this.TOKEN}}).then((function(t){var e=t.data;a.dashboard=e.role[0],a.$store.dispatch("uiadmin/changeDashboard",a.dashboard)}));case 2:this.$store.dispatch("uiadmin/init",this.$ajax),this.tahun_pendaftaran=this.$store.getters["uiadmin/getTahunPendaftaran"];case 4:case"end":return t.stop()}}),t,this)})));function a(){return t.apply(this,arguments)}return a}(),fetchData:function(){var t=this;return Object(r["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,t.$ajax.get("/dashboard",{headers:{Authorization:"Bearer "+t.TOKEN}}).then((function(a){var e=a.data;t.data_jenis_kegiatan=e.jenis_kegiatan,t.jumlah_paralegal=e.jumlah_paralegal,t.jumlah_paralegal_laporan=e.jumlah_paralegal_laporan,t.jumlah_obh=e.jumlah_obh,t.jumlah_kades=e.jumlah_kades,console.log(e)}));case 2:case"end":return a.stop()}}),a)})))()}},computed:{totalJenisKegiatan:function(){var t,a=0;for(t in this.data_jenis_kegiatan)a+=parseInt(this.data_jenis_kegiatan[t].jumlah);return a}},components:{AdminLayout:n["a"]}},o=l,c=e("2877"),v=e("6544"),d=e.n(v),m=e("8212"),u=e("8336"),h=e("b0af"),_=e("99d9"),p=e("62ad"),A=e("a523"),S=e("adda"),f=e("6b53"),C=e("0fd9"),E=e("1f4f"),b=Object(c["a"])(o,i,s,!1,null,null,null);a["default"]=b.exports;d()(b,{VAvatar:m["a"],VBtn:u["a"],VCard:h["a"],VCardActions:_["a"],VCardSubtitle:_["b"],VCardTitle:_["d"],VCol:p["a"],VContainer:A["a"],VImg:S["a"],VResponsive:f["a"],VRow:C["a"],VSimpleTable:E["a"]})},a1b3:function(t,a,e){"use strict";var i=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",[e("v-system-bar",{staticClass:"yellow",attrs:{app:"",dark:""}}),e("v-app-bar",{staticClass:"indigo darken-4 yellow--text",attrs:{dark:"",app:""}},[e("v-app-bar-nav-icon",{staticClass:"grey--text",on:{click:function(a){a.stopPropagation(),t.drawer=!t.drawer}}}),e("v-toolbar-title",{staticClass:"headline clickable",on:{click:function(a){a.stopPropagation(),t.$router.push("/dashboard/"+t.$store.getters["auth/AccessToken"]).catch((function(t){}))}}},[e("span",{staticClass:"hidden-sm-and-down"},[t._v(t._s(t.APP_NAME)),e("br"),t._v(" ["),e("small",[t._v("Sistem Elektronik Paralegal Masyarakat")]),t._v("] ")])]),e("v-spacer"),e("v-menu",{attrs:{"close-on-content-click":!0,origin:"center center",transition:"scale-transition","offset-y":!0,bottom:"",left:""},scopedSlots:t._u([{key:"activator",fn:function(a){var i=a.on;return[e("v-avatar",{attrs:{size:"30"}},[e("v-img",t._g({attrs:{src:t.photoUser}},i))],1)]}}])},[e("v-list",[e("v-list-item",[e("v-list-item-avatar",[e("v-img",{attrs:{src:t.photoUser}})],1),e("v-list-item-content",[e("v-list-item-title",{staticClass:"title"},[t._v(" "+t._s(t.ATTRIBUTE_USER("username"))+" ")]),e("v-list-item-subtitle",[t._v(" "+t._s(t.ROLE)+" ")])],1)],1),e("v-divider"),e("v-list-item",{attrs:{to:"/system-users/profil"}},[e("v-list-item-icon",{staticClass:"mr-2"},[e("v-icon",[t._v("mdi-account")])],1),e("v-list-item-title",[t._v("Profil")])],1),e("v-divider"),e("v-list-item",{on:{click:function(a){return a.preventDefault(),t.logout(a)}}},[e("v-list-item-icon",{staticClass:"mr-2"},[e("v-icon",[t._v("mdi-power")])],1),e("v-list-item-title",[t._v("Logout")])],1)],1)],1),e("v-divider",{staticClass:"mx-4",attrs:{inset:"",vertical:""}}),e("v-app-bar-nav-icon",{on:{click:function(a){a.stopPropagation(),t.drawerRight=!t.drawerRight}}},[e("v-icon",[t._v("mdi-menu-open")])],1)],1),e("v-navigation-drawer",{staticClass:"indigo darken-4",attrs:{width:"300",dark:"",temporary:t.isReportPage,app:""},model:{value:t.drawer,callback:function(a){t.drawer=a},expression:"drawer"}},[e("v-list-item",[e("v-list-item-avatar",[e("v-img",{attrs:{src:t.photoUser},on:{click:function(a){return a.stopPropagation(),t.toProfile(a)}}})],1),e("v-list-item-content",[e("v-list-item-title",{staticClass:"title"},[t._v(" "+t._s(t.ATTRIBUTE_USER("username"))+" ")]),e("v-list-item-subtitle",[t._v(" "+t._s(t.ROLE)+" ")])],1)],1),e("v-divider"),e("v-list",{attrs:{expand:""}},[t.CAN_ACCESS("DASHBOARD-SHOW")?e("v-list-item",{attrs:{to:{path:"/dashboard/"+t.ACCESS_TOKEN},link:"","active-class":"yellow",color:"green"}},[e("v-list-item-icon",{staticClass:"mr-2"},[e("v-icon",[t._v("mdi-monitor-dashboard")])],1),e("v-list-item-content",[e("v-list-item-title",[t._v("DASHBOARD")])],1)],1):t._e(),t.CAN_ACCESS("DMASTER-GROUP")?e("v-subheader",[t._v("DATA MASTER")]):t._e(),t.CAN_ACCESS("DMASTER-JENISKEGIATAN_BROWSE")?e("v-list-item",{attrs:{link:"","active-class":"yellow darken-4",to:"/dmaster/jeniskegiatan"}},[e("v-list-item-icon",{staticClass:"mr-2"},[e("v-icon",[t._v("mdi-format-list-bulleted-triangle")])],1),e("v-list-item-content",[e("v-list-item-title",[t._v(" JENIS KEGIATAN ")])],1)],1):t._e(),t.CAN_ACCESS("KONSULTASI-GROUP")?e("v-subheader",[t._v("KONSULTASI")]):t._e(),t.CAN_ACCESS("KONSULTASI-KEGIATAN_BROWSE")?e("v-list-item",{attrs:{link:"",to:"/konsultasi/kegiatan"}},[e("v-list-item-icon",{staticClass:"mr-2"},[e("v-icon",[t._v("mdi-calendar-blank-multiple")])],1),e("v-list-item-content",[e("v-list-item-title",[t._v(" KEGIATAN ")])],1)],1):t._e(),t.CAN_ACCESS("REPORT-GROUP")?e("v-subheader",[t._v("LAPORAN")]):t._e(),t.CAN_ACCESS("REPORT-KEGIATAN_BROWSE")?e("v-list-item",{attrs:{link:"",to:"/laporan/kegiatan"}},[e("v-list-item-icon",{staticClass:"mr-2"},[e("v-icon",[t._v("mdi-clipboard-list-outline")])],1),e("v-list-item-content",[e("v-list-item-title",[t._v(" LAPORAN KEGIATAN ")])],1)],1):t._e(),t.CAN_ACCESS("SYSTEM-SETTING-GROUP")?e("v-subheader",[t._v("SETTING")]):t._e(),t.CAN_ACCESS("SYSTEM-SETTING-PERMISSIONS")?e("v-list-item",{attrs:{link:"",to:"/system-users/permissions"}},[e("v-list-item-icon",{staticClass:"mr-2"},[e("v-icon",[t._v("mdi-account-key")])],1),e("v-list-item-content",[e("v-list-item-title",[t._v(" HAK AKSES PENGGUNA ")])],1)],1):t._e(),t.CAN_ACCESS("SYSTEM-SETTING-ROLES")?e("v-list-item",{attrs:{link:"",to:"/system-users/roles"}},[e("v-list-item-icon",{staticClass:"mr-2"},[e("v-icon",[t._v("mdi-account-group")])],1),e("v-list-item-content",[e("v-list-item-title",[t._v(" ROLE PENGGUNA ")])],1)],1):t._e(),e("v-divider"),t.CAN_ACCESS("SYSTEM-USERS-GROUP")?e("v-list-group",{attrs:{group:"/system-users","active-class":"yellow","no-action":"",color:"green"},scopedSlots:t._u([{key:"activator",fn:function(){return[e("v-list-item-icon",{staticClass:"mr-2"},[e("v-icon",[t._v("mdi-home-floor-b")])],1),e("v-list-item-content",[e("v-list-item-title",[t._v("PENGGUNA")])],1)]},proxy:!0}],null,!1,2599702521)},[e("div",[t.CAN_ACCESS("SYSTEM-USERS-SUPERADMIN_BROWSE")?e("v-list-item",{attrs:{link:"",to:"/system-users/superadmin"}},[e("v-list-item-icon",{staticClass:"mr-2"},[e("v-icon",[t._v("mdi-account")])],1),e("v-list-item-content",[e("v-list-item-title",[t._v(" SUPERADMIN ")])],1)],1):t._e(),t.CAN_ACCESS("SYSTEM-USERS-HUMKAM_BROWSE")?e("v-list-item",{attrs:{link:"",to:"/system-users/kumham"}},[e("v-list-item-icon",{staticClass:"mr-2"},[e("v-icon",[t._v("mdi-account")])],1),e("v-list-item-content",[e("v-list-item-title",[t._v(" KANWIL HUKUM DAN HAM ")])],1)],1):t._e(),t.CAN_ACCESS("SYSTEM-USERS-PARALEGAL_BROWSE")?e("v-list-item",{attrs:{link:"",to:"/system-users/paralegal"}},[e("v-list-item-icon",{staticClass:"mr-2"},[e("v-icon",[t._v("mdi-account")])],1),e("v-list-item-content",[e("v-list-item-title",[t._v(" PARALEGAL ")])],1)],1):t._e(),t.CAN_ACCESS("SYSTEM-USERS-KADES_BROWSE")?e("v-list-item",{attrs:{link:"",to:"/system-users/kades"}},[e("v-list-item-icon",{staticClass:"mr-2"},[e("v-icon",[t._v("mdi-account")])],1),e("v-list-item-content",[e("v-list-item-title",[t._v(" KADES ")])],1)],1):t._e(),t.CAN_ACCESS("SYSTEM-USERS-AKADEMIK_BROWSE")?e("v-list-item",{attrs:{link:"",to:"/system-users/pmb"}},[e("v-list-item-icon",{staticClass:"mr-2"},[e("v-icon",[t._v("mdi-account")])],1),e("v-list-item-content",[e("v-list-item-title",[t._v(" PEMDA ")])],1)],1):t._e(),t.CAN_ACCESS("SYSTEM-USERS-OBH_BROWSE")?e("v-list-item",{attrs:{link:"",to:"/system-users/obh"}},[e("v-list-item-icon",{staticClass:"mr-2"},[e("v-icon",[t._v("mdi-account")])],1),e("v-list-item-content",[e("v-list-item-title",[t._v(" OBH ")])],1)],1):t._e()],1)]):t._e()],1)],1),e("v-navigation-drawer",{attrs:{width:"300",app:"",fixed:"",right:"",temporary:""},model:{value:t.drawerRight,callback:function(a){t.drawerRight=a},expression:"drawerRight"}},[e("v-list",{attrs:{dense:""}},[e("v-list-item",[e("v-list-item-icon",{staticClass:"mr-2"},[e("v-icon",[t._v("mdi-menu-open")])],1),e("v-list-item-content",[e("v-list-item-title",{staticClass:"title"},[t._v(" OPTIONS ")])],1)],1),e("v-divider"),e("v-list-item",{staticClass:"teal lighten-5 mb-5"},[e("v-list-item-icon",{staticClass:"mr-2"},[e("v-icon",[t._v("mdi-filter")])],1),e("v-list-item-content",[e("v-list-item-title",[t._v("FILTER")])],1)],1),t._t("filtersidebar")],2)],1),e("v-main",{staticClass:"mx-4 mb-4"},[t._t("default")],2),e("v-footer",{attrs:{app:"",padless:"",fixed:""}},[e("v-card",{staticClass:"flex",attrs:{color:"yellow darken-2",flat:"",tile:""}},[e("v-divider"),e("v-card-text",{staticClass:"py-2 black--text text-center"},[e("strong",[t._v(t._s(t.APP_NAME)+" (2020-2021)")]),t._v(" dikembangkan oleh LPPM STT INDONESIA TANJUNGPINANG "),e("v-btn",{attrs:{icon:"",href:"https://github.com/mrizkir/sepakat"}},[e("v-icon",[t._v("mdi-github")])],1)],1)],1)],1)],1)},s=[],r=e("5530"),n=(e("b0c0"),e("ac1f"),e("5319"),e("2f62")),l={name:"AdminLayout",created:function(){this.dashboard=this.$store.getters["uiadmin/getDefaultDashboard"]},data:function(){return{loginTime:0,drawer:null,drawerRight:null,dashboard:null}},methods:{logout:function(){var t=this;this.loginTime=0,this.$ajax.post("/auth/logout",{},{headers:{Authorization:this.TOKEN}}).then((function(){t.$store.dispatch("auth/logout"),t.$store.dispatch("uifront/reinit"),t.$store.dispatch("uiadmin/reinit"),t.$router.push("/")})).catch((function(){t.$store.dispatch("auth/logout"),t.$store.dispatch("uifront/reinit"),t.$store.dispatch("uiadmin/reinit"),t.$router.push("/")}))},isBentukPT:function(t){return this.$store.getters["uifront/getBentukPT"]==t}},computed:Object(r["a"])(Object(r["a"])({},Object(n["b"])("auth",{AUTHENTICATED:"Authenticated",ACCESS_TOKEN:"AccessToken",TOKEN:"Token",ROLE:"Role",CAN_ACCESS:"can",ATTRIBUTE_USER:"AttributeUser"})),{},{APP_NAME:function(){return"SEPAKAT"},photoUser:function(){var t,a=this.ATTRIBUTE_USER("foto");return t=""==a?this.$api.url+"/storage/images/users/no_photo.png":this.$api.url+"/"+a,t},isReportPage:function(){return"ReportFormBMurni"==this.$route.name}}),watch:{loginTime:{handler:function(t){var a=this;t>=0?setTimeout((function(){a.loginTime=1==a.AUTHENTICATED?a.loginTime+1:-1}),1e3):(this.$store.dispatch("auth/logout"),this.$router.replace("/login"))},immediate:!0}}},o=l,c=e("2877"),v=e("6544"),d=e.n(v),m=e("40dc"),u=e("5bc1"),h=e("8212"),_=e("8336"),p=e("b0af"),A=e("99d9"),S=e("ce7e"),f=e("553a"),C=e("132d"),E=e("adda"),b=e("8860"),g=e("56b0"),T=e("da13"),k=e("8270"),N=e("5d23"),R=e("34c3"),O=e("f6c4"),j=e("e449"),w=e("f774"),y=e("2fa4"),I=e("e0c7"),x=e("afd9"),P=e("2a7f"),U=Object(c["a"])(o,i,s,!1,null,null,null);a["a"]=U.exports;d()(U,{VAppBar:m["a"],VAppBarNavIcon:u["a"],VAvatar:h["a"],VBtn:_["a"],VCard:p["a"],VCardText:A["c"],VDivider:S["a"],VFooter:f["a"],VIcon:C["a"],VImg:E["a"],VList:b["a"],VListGroup:g["a"],VListItem:T["a"],VListItemAvatar:k["a"],VListItemContent:N["a"],VListItemIcon:R["a"],VListItemSubtitle:N["b"],VListItemTitle:N["c"],VMain:O["a"],VMenu:j["a"],VNavigationDrawer:w["a"],VSpacer:y["a"],VSubheader:I["a"],VSystemBar:x["a"],VToolbarTitle:P["a"]})}}]);