define([],function(){var e=Upfront.Views.Editor.Settings.Item.extend({className:"or_divider",initialize:function(e){this.options=e||{};var t=this;this.newPresetName=new Upfront.Views.Editor.Field.Text({model:this.model,compact:!0,className:"new_preset_name"}),this.fields=_([this.newPresetName,new Upfront.Views.Editor.Field.Button({model:this.model,label:"New Preset",className:"new_preset",compact:!0,on_click:function(){if(t.newPresetName.get_value().trim()===""){alert("Preset name can not be empty.");return}if(t.newPresetName.get_value().match(/[^A-Za-z0-9 ]/)){alert("Preset name can contain only numbers, letters and spaces.");return}t.trigger("upfront:presets:new",t.newPresetName.get_value().trim())}})])},get_title:function(){return"Or"}});return e});