text: define(["jquery","underscore","marionette","./base","../core","../models","../constants"],function(t,e,i,n,o,r,s){var a=i.ItemView.extend({className:"value-list",template:"values/list",collectionEvents:{add:"reloadText",remove:"reloadText",reset:"clearText"},ui:{textarea:"textarea"},clear:function(t){t&&t.preventDefault(),this.collection.reset()},clearText:function(){this.ui.textarea.val("")},initialize:function(){this._parseText=e.debounce(this.parseText,s.INPUT_DELAY)},reloadText:function(){this.ui.textarea.val(this.collection.pluck("label").join("\n"))},parseText:function(){for(var e,i,n=[],r=t.trim(this.ui.textarea.val()).split("\n"),s=0;s<r.length;s++)if(i=t.trim(r[s]))if(e=this.collection.get(i))e.set("index",s),n.push(e);else if(o.isSupported("2.3.2"))n.push({label:i,index:s});else{n.push({value:i,index:s});var a=console.warn||console.log;a("Serrano 2.3.2+ is required for proper validation of search values")}this.collection.set(n,{sort:!1})},onRender:function(){var t=this;this.ui.textarea.on("input propertychange",function(){t._parseText()})}});return{ValueList:a}});
  //@ sourceMappingURL=values.js.map