!function(e){formintorjs.define(["admin/settings/multi-setting","text!tpl/fields.html"],function(t,i){return t.extend({multiple:!0,events:{"click .wpmudev-tab > label":"click_label"},className:"wpmudev-option",click_label:function(t){t.preventDefault(),e(t.target).closest(".wpmudev-tab").find(".forminator-field-singular").click()},render:function(){var t=this;this.$el.html(""),this.label&&this.$el.append(this.get_label_html()),this.$el.append(this.get_field_html()),this.$el.on("change",".wpmudev-tab input",function(){t.$el.find(".wpmudev-tab").each(function(){e(this).find("input:checked").size()>0?e(this).addClass("wpmudev-is_active"):e(this).removeClass("wpmudev-is_active")}),t.trigger("changed",t.get_value())}),this.trigger("rendered"),this.on_render()},get_field_html:function(){var e={class:"wpmudev-tabs"};return"<div "+this.get_field_attr_html(e)+">"+this.get_values_html()+'</div><div class="wpmudev-option--tabs_content">'+this.get_values_container_html()+"</div>"},get_values_container_html:function(){return _.map(this.options.values,this.get_value_container_html,this).join("")},get_value_container_html:function(e,t){var i={class:"wpmudev-option--tab_content wpmudev-radio-tab-"+e.value};return"<div "+this.get_field_attr_html(i)+"></div>"},get_value_html:function(e,t){var i="wpmudev-tab",n={type:"radio",class:"forminator-field-singular forminator-field-required",id:this.get_field_id(),name:this.get_name(),value:e.value,title:e.label};return this.get_saved_value()==e.value&&(n.checked="checked"),e.checked&&(n.checked="checked"),n.checked&&(i+=" wpmudev-is_active"),'<div class="'+i+'"><input '+this.get_field_attr_html(n)+'><label for="'+this.get_field_id()+'">'+e.label+"</label></div>"},get_value:function(){return this.$el.find(":checked").val()},on_change:function(){this.trigger("changed",this.get_value())},trigger_show:function(e){this.toggle_wrapper(e),this.options.show&&this.options.show(e)},toggle_wrapper:function(e){this.$el.find(".wpmudev-option--tab_content").hide(),this.$el.find(".wpmudev-radio-tab-"+this.get_value()).show()}})})}(jQuery);