define(["scripts/upfront/preset-settings/edit-preset-item"],function(e){var t=Upfront.Views.Editor.Settings.Panel.extend({className:"preset-manager-panel",initialize:function(t){this.options=t||{},this.editPresetItem=new e({model:this.options.preset,stateFields:this.options.stateFields}),this.listenTo(this.options.preset,"change",this.onPresetChange),this.listenTo(this.editPresetItem,"upfront:presets:delete",this.deletePreset),this.settings=_([this.editPresetItem])},onPresetChange:function(){this.trigger("upfront:presets:update",this.options.preset.toJSON())},deletePreset:function(e){this.trigger("upfront:presets:delete",e)}});return t});