(window.webpackJsonp=window.webpackJsonp||[]).push([[155],{1172:function(e,t,r){"use strict";r.r(t);r(33),r(36),r(47),r(81);var l=r(5),n=r(49),o=r.n(n),c=Object(l.c)({props:{value:Array},setup:function(e,t){var r=Object(l.i)(e.value),n=Object(l.i)(["level","ranks","points","watched","tips","bits","messages","subtier","subcumulativemonths","substreakmonths","followtime"].map((function(e){return{value:e,text:o()("core.permissions."+e)}})));Object(l.p)(r,(function(e){t.emit("input",e)}));var c=function(e){return!e.includes("ranks")};return{model:r,typeItems:n,comparatorItems:function(filter){var e=[];return c(filter.type)&&(e.push({value:"<",text:o()("core.permissions.isLowerThan")}),e.push({value:"<=",text:o()("core.permissions.isLowerThanOrEquals")})),e.push({value:"==",text:o()("core.permissions.equals")}),c(filter.type)&&(e.push({value:">",text:o()("core.permissions.isHigherThan")}),e.push({value:">=",text:o()("core.permissions.isHigherThanOrEquals")})),e},setComparator:function(filter){c(filter.type)&&(filter.comparator="==")},isNumber:c,remove:function(e){r.value.splice(e,1)},add:function(){r.value.push({comparator:">=",type:"watched",value:"0"})},translate:o.a}}}),v=r(45),m=r(44),d=r.n(m),f=r(48),h=r(25),w=r(32),x=r(263),_=r(140),component=Object(v.a)(c,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("label",{staticClass:"v-label theme--dark"},[e._v("\n    "+e._s(e.translate("core.permissions.filters"))+"\n  ")]),e._v(" "),e._l(e.model,(function(filter,t){return r("v-row",{key:filter.id},[r("v-col",{attrs:{"align-self":"end"}},[r("v-select",{attrs:{items:e.typeItems,label:e.translate("core.permissions.type"),"hide-details":""},on:{"&input":function(t){return e.setComparator(filter)}},model:{value:filter.type,callback:function(t){e.$set(filter,"type",t)},expression:"filter.type"}})],1),e._v(" "),r("v-col",{attrs:{"align-self":"end"}},[r("v-select",{attrs:{items:e.comparatorItems(filter),"hide-details":""},model:{value:filter.comparator,callback:function(t){e.$set(filter,"comparator",t)},expression:"filter.comparator"}})],1),e._v(" "),r("v-col",{attrs:{"align-self":"end"}},[e.isNumber(filter.value)?r("v-text-field",{attrs:{"hide-details":"",label:e.translate("core.permissions.value")},model:{value:filter.value,callback:function(t){e.$set(filter,"value",e._n(t))},expression:"filter.value"}}):r("v-text-field",{attrs:{"hide-details":"",label:e.translate("core.permissions.value")},model:{value:filter.value,callback:function(t){e.$set(filter,"value",t)},expression:"filter.value"}})],1),e._v(" "),r("v-col",{attrs:{"align-self":"end",cols:"auto"}},[r("v-btn",{attrs:{icon:"",color:"red"},on:{click:function(r){return e.remove(t)}}},[r("v-icon",[e._v("mdi-delete-forever")])],1)],1)],1)})),e._v(" "),r("v-row",[r("v-col",[r("v-btn",{on:{click:e.add}},[e._v("\n        "+e._s(e.translate("core.permissions.addFilter"))+"\n      ")])],1)],1)],2)}),[],!1,null,null,null);t.default=component.exports;d()(component,{VBtn:f.a,VCol:h.a,VIcon:w.a,VRow:h.d,VSelect:x.a,VTextField:_.a})}}]);