parcelRequire=function(e,r,t,n){var i,o="function"==typeof parcelRequire&&parcelRequire,u="function"==typeof require&&require;function f(t,n){if(!r[t]){if(!e[t]){var i="function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if(u&&"string"==typeof t)return u(t);var c=new Error("Cannot find module '"+t+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[t][1][r]||r},p.cache={};var l=r[t]=new f.Module(t);e[t][0].call(l.exports,p,l,l.exports,this)}return r[t].exports;function p(e){return f(p.resolve(e))}}f.isParcelRequire=!0,f.Module=function(e){this.id=e,this.bundle=f,this.exports={}},f.modules=e,f.cache=r,f.parent=o,f.register=function(r,t){e[r]=[function(e,r){r.exports=t},{}]};for(var c=0;c<t.length;c++)try{f(t[c])}catch(e){i||(i=e)}if(t.length){var l=f(t[t.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=l:"function"==typeof define&&define.amd?define(function(){return l}):n&&(this[n]=l)}if(parcelRequire=f,i)throw i;return f}({"QdEO":[function(require,module,exports) {
module.exports={props:{name:{type:String,required:!0},value:{type:null,default:null},type:{type:String,required:!0},length:{type:[String,Number],default:null},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},options:{type:Object,default:function(){return{}}},newItem:{type:Boolean,default:!1},relation:{type:Object,default:null},fields:{type:Object,default:null},values:{type:Object,default:null}}};
},{}],"OId8":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=e(require("../../../mixins/interface"));function e(t){return t&&t.__esModule?t:{default:t}}function r(t){return n(t)||i(t)||a()}function a(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function i(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function n(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}}var u={mixins:[t.default],data:function(){return{valueArray:[]}},methods:{onInput:function(t){(t.target.value&&"Enter"===t.key||","===t.key)&&(t.preventDefault(),this.addTag(t.target.value),t.target.value="")},addTag:function(t){if(t){var e=this.valueArray.splice(0);t=t.trim(),this.options.lowercase&&(t=t.toLowerCase()),this.options.sanitize&&(t=t.replace(/([^a-z0-9]+)/gi,"-").replace(/^-|-$/g,"")),e.push(t),this.options.alphabetize&&e.sort(),e=r(new Set(e)),this.valueArray=e,this.emitValue()}},removeTag:function(t){this.valueArray=this.valueArray.filter(function(e){return e!==t}),this.emitValue()},emitValue:function(){var t=this.valueArray.join(",");t&&this.options.wrap&&(t=","+t+","),"array"===this.type?this.$emit("input",t.split(",")):this.$emit("input",t)},getLocalValueArray:function(){var t;!1!==Boolean(this.value)?(t=(t=Array.isArray(this.value)?this.value:this.value.split(",")).filter(function(t){return t}),this.valueArray=t):this.valueArray=[]}},created:function(){this.getLocalValueArray()},watch:{value:function(){this.getLocalValueArray()}}};exports.default=u;
(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"interface-tags"},[n("v-input",{staticClass:"input",attrs:{type:"text",placeholder:t.$t("interfaces-tags-placeholder_text"),"icon-left":t.options.iconLeft,"icon-right":t.options.iconRight,"icon-right-color":null},on:{keydown:t.onInput}}),t._v(" "),n("div",{staticClass:"buttons"},t._l(t.valueArray,function(e){return n("button",{key:e,on:{click:function(n){return n.preventDefault(),t.removeTag(e)}}},[t._v(" "+t._s(e)+" ")])}),0)],1)},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-c4570f",functional:void 0});})();
},{"../../../mixins/interface":"QdEO"}]},{},["OId8"], "__DirectusExtension__")