YUI.add("moodle-mod_offlinequiz-randomquestion",function(e,o){var n="div.randomquestionformforpopup",i="input#rform_qpage",t='.menu [data-action="addarandomquestion"]',a="addonpage",d="header",u=function(){u.superclass.constructor.apply(this,arguments)};e.extend(u,e.Base,{dialogue:function(o){config={headerContent:o,bodyContent:e.one(n),draggable:!0,modal:!0,zIndex:1e3,centered:!1,width:"auto",visible:!1,postmethod:"form",footerContent:null};o={dialog:null};o.dialog=new M.core.dialogue(config),o.dialog.show()},initializer:function(){e.one("body").delegate("click",this.display_dialogue,t,this)},display_dialogue:function(o){o.preventDefault(),e.one(n+" "+i).set("value",o.currentTarget.getData(a)),this.dialogue(o.currentTarget.getData(d))}}),M.mod_offlinequiz=M.mod_offlinequiz||{},M.mod_offlinequiz.randomquestion=M.mod_offlinequiz.randomquestion||{},M.mod_offlinequiz.randomquestion.init=function(){return new u}},"@VERSION@",{requires:["base","event","node","io","moodle-core-notification-dialogue"]});