(window.webpackJsonp=window.webpackJsonp||[]).push([[122],{1013:function(n,e,t){"use strict";t(974)},1014:function(n,e,t){var r=t(19)((function(i){return i[1]}));r.push([n.i,".theme-- .v-menu__content{background-color:#1e1e1e}.theme--light .v-menu__content{background-color:#fff}",""]),r.locals={},n.exports=r},1043:function(n,e,t){"use strict";t.r(e);t(1);var r=t(37),l=(t(28),t(33),t(31),t(5)),o=t(49),c=t.n(o),m=t(783),v=Object(l.c)({props:{permission:String,permissions:Array,nullable:Boolean},setup:function(n,e){var menu=Object(l.i)(!1),t=Object(l.a)((function(){var e,t;return n.nullable?[{text:"-- unset --",value:null,disabled:!1}].concat(Object(r.a)((null!==(t=n.permissions)&&void 0!==t?t:[]).map((function(n){return{text:n.name,value:n.id,disabled:!1}})))):null===(e=n.permissions)||void 0===e?void 0:e.map((function(n){return{text:n.name,value:n.id,disabled:!1}}))}));return{triggerEvent:function(input){(null!==input||n.nullable)&&(e.emit("input",input),menu.value=!1)},menu:menu,permissionItems:t,translate:c.a,getPermissionName:m.a}}}),f=(t(1013),t(45)),d=t(44),_=t.n(d),h=t(48),k=t(144),w=t(263),component=Object(f.a)(v,(function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("div",{staticClass:"d-inline-block"},[t("v-menu",{attrs:{"close-on-content-click":!1},scopedSlots:n._u([{key:"activator",fn:function(e){var r=e.on,l=e.attrs;return[t("v-btn",n._g(n._b({attrs:{small:"",plain:""}},"v-btn",l,!1),r),[n._v("\n        "+n._s(n.getPermissionName(n.permission,n.permissions))+"\n      ")])]}}]),model:{value:n.menu,callback:function(e){n.menu=e},expression:"menu"}},[n._v(" "),t("v-select",{staticClass:"ma-2",attrs:{value:n.permission,label:n.translate("permission"),items:n.permissionItems,clearable:n.nullable},on:{change:n.triggerEvent}})],1)],1)}),[],!1,null,null,null);e.default=component.exports;_()(component,{VBtn:h.a,VMenu:k.a,VSelect:w.a})},783:function(n,e,t){"use strict";t.d(e,"a",(function(){return r}));t(73),t(4),t(71),t(31);var r=function(n,e){if(!e)throw new Error("Missing permissions list");if(!n)return"-- unset --";var t=e.find((function(e){return e.id===n}));return void 0!==t?""===t.name.trim()?t.id:t.name:null}},974:function(n,e,t){var content=t(1014);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[n.i,content,""]]),content.locals&&(n.exports=content.locals);(0,t(20).default)("9e2e46f6",content,!0,{sourceMap:!1})}}]);