!function(e){formintorjs.define(["text!tpl/quizzes.html"],function(i){return Backbone.View.extend({mainTpl:Forminator.Utils.template(e(i).find("#quiz-section-results-tpl").html()),className:"wpmudev-box-body",initialize:function(e){return this.render()},render:function(){this.$el.html(this.mainTpl({type:"knowledge"})),this.render_separator(),this.render_results(),this.render_social()},render_separator:function(){var e=new Forminator.Settings.Separator({model:this.model,name:"separator",hide_label:!0});this.$el.find(".forminator-quizwiz-wrap--separator").append([e.el])},render_results:function(){var e=new Forminator.Settings.Radio({model:this.model,id:"forminator-quizwiz--results-behav",name:"results_behav",containerSize:"400",itemsColor:"blue",label:Forminator.l10n.quizzes.reveal,default_value:"end",values:[{value:"after",label:Forminator.l10n.quizzes.after},{value:"end",label:Forminator.l10n.quizzes.before}]});this.$el.find("#forminator-quizwiz-wrap--results-behav").append([e.el]);var i=new Forminator.Settings.Text({model:this.model,id:"forminator-quizwiz--msg-correct",name:"msg_correct",label:Forminator.l10n.quizzes.msg_correct});this.$el.find("#forminator-quizwiz-wrap--msg-correct").append([i.el]);var r=new Forminator.Settings.Text({model:this.model,id:"forminator-quizwiz--msg-incorrect",name:"msg_incorrect",label:Forminator.l10n.quizzes.msg_incorrect});this.$el.find("#forminator-quizwiz-wrap--msg-incorrect").append([r.el]);var t=new Forminator.Settings.Textarea({model:this.model,id:"forminator-quizwiz--msg-count",name:"msg_count",label:Forminator.l10n.quizzes.msg_count});this.$el.find("#forminator-quizwiz-wrap--msg-count").prepend([t.el])},render_social:function(){var e=new Forminator.Settings.Toggle({model:this.model,id:"forminator-quizwiz--facebook",name:"facebook",hide_label:!0,values:[{value:"true",hideTL:!0}]});this.$el.find("#wpmudev-quizwiz-wrap--facebook").append([e.el]);var i=new Forminator.Settings.Toggle({model:this.model,id:"forminator-quizwiz--twitter",name:"twitter",hide_label:!0,values:[{value:"true",hideTL:!0}]});this.$el.find("#wpmudev-quizwiz-wrap--twitter").append([i.el]);var r=new Forminator.Settings.Toggle({model:this.model,id:"forminator-quizwiz--google",name:"google",hide_label:!0,values:[{value:"true",hideTL:!0}]});this.$el.find("#wpmudev-quizwiz-wrap--google").append([r.el]);var t=new Forminator.Settings.Toggle({model:this.model,id:"forminator-quizwiz--linkedin",name:"linkedin",hide_label:!0,values:[{value:"true",hideTL:!0}]});this.$el.find("#wpmudev-quizwiz-wrap--linkedin").append([t.el])}})})}(jQuery);