define([],function(){var e=Upfront.Views.Editor.Settings.Item.extend({group:!1,initialize:function(e){this.options=e||{},this.$el.addClass("state_settings state_settings_"+this.options.state.toLowerCase());var t=[];_.each(this.options.fields,function(e){var n=e.options.change,r=this;n&&(e.options.change=function(e){n(e,r)});var i=new e.fieldClass(_.extend({model:this.options.model},e.options));Upfront.Events.once("entity:settings:deactivate",function(){e.options.change=n}),t.push(i)},this),this.fields=_(t)}});return e});