YUI.add("moodle-mod_offlinequiz-randomquestion",function(n,o){var i="div.randomquestionformforpopup",e="input#rform_qpage",t='.menu [data-action="addarandomquestion"]',a="addonpage",d="header",u=function(){u.superclass.constructor.apply(this,arguments)};n.extend(u,n.Base,{dialogue:function(o){var o={headerContent:o,bodyContent:n.one(i),draggable:!0,modal:!0,zIndex:1e3,centered:!1,width:"auto",visible:!1,postmethod:"form",footerContent:null},e={dialog:null};e.dialog=new M.core.dialogue(o),e.dialog.show()},initializer:function(){n.one("body").delegate("click",this.display_dialogue,t,this)},display_dialogue:function(o){o.preventDefault(),n.one(i+" "+e).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"]});