!function(e){formintorjs.define(["admin/settings/multi-setting"],function(t){return t.extend({multiple:!0,className:"wpmudev-option",events:{"click .wpmudev-tab label":"click_label"},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="",t="",i="";return this.options.containerSize&&(e=" wpmudev-tabs--"+this.options.containerSize),this.options.sizeLarge&&(t=" wpmudev-tabs--lg"),this.options.sizeSmall&&(t=" wpmudev-tabs--sm"),this.options.itemsColor&&(i=" wpmudev-tabs--"+this.options.itemsColor),'<div class="wpmudev-tabs'+e+t+i+'">'+this.get_values_html()+"</div>"},get_value_html:function(e,t){var i="wpmudev-tab",s=this.get_saved_value(),l={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 s==e.value&&(l.checked="checked"),e.checked&&(l.checked="checked"),l.checked&&(i+=" wpmudev-is_active"),this.options.hasIcon?(i+=" wpmudev-has_icon",iclasses="wpdui-icon",this.options.iconTop&&(i+=" wpmudev-icon_top"),e.iconClass&&(iclasses+=" "+e.iconClass),'<div class="'+i+'"><input '+this.get_field_attr_html(l)+'><label for="'+this.get_field_id()+'" class="'+iclasses+'"><span>'+e.label+"</span></label></div>"):'<div class="'+i+'"><input '+this.get_field_attr_html(l)+'><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())}})})}(jQuery);