(window.webpackJsonp=window.webpackJsonp||[]).push([[106],{1047:function(e,t,n){"use strict";n.r(t);var r=n(1),l=n(37),c=(n(28),n(8),n(4),n(174)),o={};o.props={value:String},o.setup=function(e,t){var n=e,o=t.emit,m=Object(r.J)(""),d=Object(r.J)([]);Object(r.Y)((function(){var e;return null!==(e=n.value)&&void 0!==e?e:""}),(function(e){var t,n;m.value=null!==(t=JSON.parse(e).command)&&void 0!==t?t:"",d.value=null!==(n=JSON.parse(e).parameters)&&void 0!==n?n:[]}),{immediate:!0}),Object(r.Y)([m,d],(function(e){o("input",{command:e[0],parameters:e[1]})}),{deep:!0});return{command:m,parameters:d,addParam:function(){d.value=[].concat(Object(l.a)(d.value),[{id:Object(c.a)(),name:"",type:"number"}])},removeParam:function(e){d.value=d.value.filter((function(t){return t.id!==e}))}}};var m=o,d=n(45),v=n(44),f=n.n(v),_=n(379),x=n(48),y=n(146),k=n(32),h=n(263),O=n(363),S=n(140),component=Object(d.a)(m,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("v-text-field",{attrs:{label:"Command"},scopedSlots:e._u([{key:"prepend-inner",fn:function(){return[n("v-icon",[e._v("mdi-exclamation-thick")])]},proxy:!0}]),model:{value:e.command,callback:function(t){e.command=t},expression:"command"}}),e._v(" "),n("v-subheader",[e._v(e._s(e.$t("registry.plugins.listener.command.parameters"))+" "),n("small",{staticClass:"pl-2"},[e._v("("+e._s(e.$t("registry.plugins.listener.command.order-is-important"))+")")])]),e._v(" "),0===e.parameters.length?n("v-alert",{attrs:{text:"",color:"info",dense:""}},[e._v("\n    Not expecting any parameters.\n  ")]):e._e(),e._v(" "),e._l(e.parameters,(function(t,r){return n("div",{key:t.id,staticClass:"d-flex",staticStyle:{"align-items":"normal"}},[n("v-text-field",{staticClass:"pr-1",attrs:{label:"Name","hide-details":"auto"},scopedSlots:e._u([{key:"prepend",fn:function(){return[e._v(e._s(r+1))]},proxy:!0}],null,!0),model:{value:t.name,callback:function(n){e.$set(t,"name",n)},expression:"parameter.name"}}),e._v(" "),n("div",{staticClass:"pr-1"},[n("v-select",{attrs:{label:"Type",items:["number","word","sentence","custom"],"hide-details":"auto"},model:{value:t.type,callback:function(n){e.$set(t,"type",n)},expression:"parameter.type"}}),e._v(" "),"custom"===t.type?n("v-text-field",{attrs:{label:"Custom RegExp","hide-details":"auto"},model:{value:t.regexp,callback:function(n){e.$set(t,"regexp",n)},expression:"parameter.regexp"}}):e._e()],1),e._v(" "),n("v-btn",{staticStyle:{"align-self":"center"},attrs:{icon:""},on:{click:function(n){return e.removeParam(t.id)}}},[n("v-icon",{attrs:{color:"danger"}},[e._v("mdi-delete")])],1),e._v(" "),n("v-divider")],1)})),e._v(" "),n("v-btn",{staticClass:"mt-2",attrs:{dense:"",block:""},on:{click:e.addParam}},[e._v("\n    "+e._s(e.$t("registry.plugins.listener.command.add-parameter"))+"\n  ")])],2)}),[],!1,null,null,null);t.default=component.exports;f()(component,{VAlert:_.a,VBtn:x.a,VDivider:y.a,VIcon:k.a,VSelect:h.a,VSubheader:O.a,VTextField:S.a})}}]);