(window.webpackJsonp=window.webpackJsonp||[]).push([[158],{783:function(e,t,o){"use strict";o.d(t,"a",(function(){return n}));o(73),o(4),o(71),o(31);var n=function(e,t){if(!t)throw new Error("Missing permissions list");if(!e)return"-- unset --";var o=t.find((function(t){return t.id===e}));return void 0!==o?""===o.name.trim()?o.id:o.name:null}},805:function(e,t,o){var content=o(832);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,o(20).default)("716dbd17",content,!0,{sourceMap:!1})},831:function(e,t,o){"use strict";o(805)},832:function(e,t,o){var n=o(19)((function(i){return i[1]}));n.push([e.i,"div.header[data-v-5e4d083f]{padding:1rem;border-bottom:1px solid #383838}",""]),n.locals={},e.exports=n},971:function(e,t,o){"use strict";o.r(t);var n=o(1),r=o(5),l=o(21),c=o(783),m=Object(r.c)({props:{isOpen:Boolean,toggle:Function,isGroupSelected:Function,toggleGroupSelection:Function,items:Array,getGroup:Object,groupKey:String,noFilter:Boolean,noPermission:Boolean},setup:function(){var e=Object(n.J)([]);return Object(n.A)((function(){Object(l.getSocket)("/core/permissions").emit("generic::getAll",(function(t,o){if(t)return console.error(t);e.value=o}))})),{getPermissionName:c.a,permissions:e}}}),v=(o(831),o(45)),d=o(44),_=o.n(d),f=o(25),y=o(32),x=o(267),component=Object(v.a)(m,(function(){var e=this,t=e.$createElement,o=e._self._c||t;return e.$vuetify.breakpoint.mobile?o("div",{staticClass:"header"},[o("v-row",{attrs:{"no-gutters":""}},[o("v-col",[o("v-icon",{on:{click:e.toggle}},[e._v("\n      "+e._s(e.isOpen?"mdi-minus":"mdi-plus")+"\n    ")]),e._v(" "),o("v-simple-checkbox",{staticClass:"d-inline-block px-4",staticStyle:{transform:"translateY(5px)"},attrs:{inline:"",value:e.isGroupSelected(e.items[0][e.groupKey||"group"])},on:{click:function(t){return e.toggleGroupSelection(e.items[0][e.groupKey||"group"])}}}),e._v(" "),null===e.items[0][e.groupKey||"group"]?o("span",{staticClass:"red--text text--lighten-1"},[e._v("Ungrouped")]):o("span",[e._t("headerText",(function(){return[e._v("\n        "+e._s(e.items[0][e.groupKey||"group"])+"\n      ")]}),{group:e.items[0][e.groupKey||"group"]}),e._v(" "),e.noPermission?e._e():o("span",{staticClass:"px-4",class:e.getGroup[e.items[0][e.groupKey||"group"]].options.permission?"":"red--text"},[e._v("\n        "+e._s(e.getGroup[e.items[0][e.groupKey||"group"]].options.permission?e.getPermissionName(e.getGroup[e.items[0][e.groupKey||"group"]].options.permission,e.permissions):"-- unset --")+"\n      ")]),e._v(" "),e.noFilter?e._e():o("span",{staticClass:"px-4"},[e.getGroup[e.items[0][e.groupKey||"group"]].options.filter?[o("v-icon",[e._v("mdi-filter")]),e._v(" "),o("code",[e._v("\n            "+e._s(e.getGroup[e.items[0][e.groupKey||"group"]].options.filter)+"\n          ")])]:[o("v-icon",[e._v("mdi-filter-off")]),e._v(" "),o("span",{staticClass:"grey--text text--darken-2"},[e._v("No filters set")])]],2)],2)],1),e._v(" "),o("v-col",{attrs:{cols:"auto","align-self":"end"}},[e._t("config")],2)],1)],1):o("th",{attrs:{colspan:"100%"}},[o("v-row",{attrs:{"no-gutters":""}},[o("v-col",[o("v-icon",{on:{click:e.toggle}},[e._v("\n      "+e._s(e.isOpen?"mdi-minus":"mdi-plus")+"\n    ")]),e._v(" "),o("v-simple-checkbox",{staticClass:"d-inline-block px-4",staticStyle:{transform:"translateY(5px)"},attrs:{inline:"",value:e.isGroupSelected(e.items[0][e.groupKey||"group"])},on:{click:function(t){return e.toggleGroupSelection(e.items[0][e.groupKey||"group"])}}}),e._v(" "),null===e.items[0][e.groupKey||"group"]?o("span",{staticClass:"red--text text--lighten-1"},[e._v("Ungrouped")]):o("span",[e._t("headerText",(function(){return[e._v("\n        "+e._s(e.items[0][e.groupKey||"group"])+"\n      ")]}),{group:e.items[0][e.groupKey||"group"]}),e._v(" "),e.noPermission?e._e():o("span",{staticClass:"px-4",class:e.getGroup[e.items[0][e.groupKey||"group"]].options.permission?"":"red--text"},[e._v("\n        "+e._s(e.getGroup[e.items[0][e.groupKey||"group"]].options.permission?e.getPermissionName(e.getGroup[e.items[0][e.groupKey||"group"]].options.permission,e.permissions):"-- unset --")+"\n      ")]),e._v(" "),e.noFilter?e._e():o("span",{staticClass:"px-4"},[e.getGroup[e.items[0][e.groupKey||"group"]].options.filter?[o("v-icon",[e._v("mdi-filter")]),e._v(" "),o("code",[e._v("\n            "+e._s(e.getGroup[e.items[0][e.groupKey||"group"]].options.filter)+"\n          ")])]:[o("v-icon",[e._v("mdi-filter-off")]),e._v(" "),o("span",{staticClass:"grey--text text--darken-2"},[e._v("No filters set")])]],2)],2)],1),e._v(" "),o("v-col",{attrs:{cols:"auto","align-self":"end"}},[e._t("config")],2)],1)],1)}),[],!1,null,"5e4d083f",null);t.default=component.exports;_()(component,{VCol:f.a,VIcon:y.a,VRow:f.d,VSimpleCheckbox:x.b})}}]);