(window.webpackJsonp=window.webpackJsonp||[]).push([[53],{595:function(t,a,e){},719:function(t,a,e){"use strict";var s=e(595);e.n(s).a},764:function(t,a,e){"use strict";e.r(a);var s=e(220),n=e(221),d=e(0),i=e(3).a.extend({components:{factorBtnDashboard:s.d,factorIcon:s.g,dashboardInput:n.f},props:{value:{type:Array,default:()=>[]}},data:()=>({tags:[],addedText:""}),computed:{addedSlug(){return Object(d.z)(this.addedText)}},mounted(){this.$watch("value",(function(t){t&&!Object(d.n)(t,this.tags)&&(this.tags=t)}),{immediate:!0,deep:!0})},methods:{addTag(){this.addedSlug&&!this.tags.includes(this.addedSlug)&&(this.tags.push(this.addedSlug),this.$emit("input",this.tags)),this.addedText=""},removeTag(t){this.tags.splice(t,1),this.$emit("input",this.tags)}}}),c=(e(719),e(531)),o=Object(c.a)(i,(function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"tag-input"},[t.tags.length>0?e("div",{staticClass:"the-tags"},t._l(t.tags,(function(a,s){return e("div",{key:s,staticClass:"tag"},[e("span",{staticClass:"tx"},[t._v(t._s(a))]),t._v(" "),e("span",{staticClass:"rm",on:{click:function(a){return t.removeTag(s)}}},[e("factor-icon",{attrs:{icon:"remove"}})],1)])})),0):t._e(),t._v(" "),e("div",{staticClass:"the-input"},[e("dashboard-input",{attrs:{format:"simple",input:"factor-input-text",placeholder:"Add Tag"},on:{keyup:function(a){return!a.type.indexOf("key")&&t._k(a.keyCode,"enter",13,a.key,"Enter")?null:t.addTag()}},model:{value:t.addedText,callback:function(a){t.addedText=a},expression:"addedText"}}),t._v(" "),e("factor-btn-dashboard",{on:{click:function(a){return t.addTag()}}},[e("factor-icon",{attrs:{icon:"plus"}})],1)],1)])}),[],!1,null,null,null);a.default=o.exports}}]);