define(["scripts/upfront/preset-settings/select-preset-field"],function(e){var t=Upfront.Views.Editor.Settings.Item.extend({initialize:function(t){this.options=t||{};var n=this;this.selectPresetField=new e({model:this.model,property:"preset",values:this.get_presets(),change:function(e){n.model.set_property("preset",e)}}),this.fields=_([this.selectPresetField]),this.listenTo(this.selectPresetField,"upfront:presets:edit",this.editPreset)},editPreset:function(e){this.trigger("upfront:presets:edit",e)},get_title:function(){return"Select Preset"},get_presets:function(){return _.union([{label:"None",value:"default"}],_.map(this.options.presets.models,function(e){return{label:e.get("name"),value:e.get("id")}}))}});return t});