!function($){formintorjs.define(["admin/settings/text"],function(Text){return Text.extend({className:"wpmudev-option",on_render:function(){var self=this,timer=null;this.get_field().keyup(function(){}).trigger("keyup").change(function(){self.trigger("changed",self.get_value()),clearTimeout(timer);var t=this;timer=setTimeout(function(){self.check_input_range(t)},325)}).keydown(function(){clearTimeout(timer);var t=this;timer=setTimeout(function(){self.check_input_range(t)},325)}),_.isEmpty(this.options.value_to_show)||_.isEmpty(this.options.setting_to_check)||this.options.value_to_show===eval("this.model.attributes."+this.options.setting_to_check)||this.$el.hide()},check_input_range:function(t){var i=null;if(!_.isEmpty(this.options.min))if(_.isNumber(this.options.min))t.value<this.options.min&&$(t).val(this.options.min);else if(i=$(this.options.min),i.length>0){var e=parseInt(i.first().val());t.value<e&&$(t).val(e)}if(!_.isEmpty(this.options.max))if(_.isNumber(this.options.max))t.value>this.options.max&&$(t).val(this.options.max);else if(i=$(this.options.max),i.length>0){var s=parseInt(i.first().val());t.value>s&&$(t).val(s)}},get_field_html:function(){var t=_.isEmpty(this.options.value_to_show)?"":" forminator-dependant "+this.options.value_to_show,i={type:"number",class:"forminator-field-singular wpmudev-input"+t,id:this.get_field_id(),name:this.get_name(),value:this.get_saved_value(),placeholder:"10",title:this.label};_.isNumber(this.options.min)&&(i.min=this.options.min),_.isNumber(this.options.max)&&(i.max=this.options.max);var e="";return this.options.description&&(e='<span class="field-description">'+this.options.description+"</span>"),"<input "+this.get_field_attr_html(i)+" />"+e}})})}(jQuery);