define([],function(){var e=Upfront.Views.Editor.Field.Select.extend({className:"preset select-preset-field",render:function(){Upfront.Views.Editor.Field.Select.prototype.render.call(this);var e=this,t=['<a href="#" title="Edit preset" class="upfront-preset-edit">edit preset</a>'];return this.$el.append(t.join("")),this.$el.on("click",".upfront-preset-edit",function(t){t.preventDefault();if(e.get_value()==="default"){alert("Default preset can not be edited.");return}e.trigger("upfront:presets:edit",e.get_value())}),this}});return e});