Sindbad~EG File Manager

Current Path : /var/www/moodledata/mdata-uautomaq/filedir/ca/f2/
Upload File :
Current File : /var/www/moodledata/mdata-uautomaq/filedir/ca/f2/caf29e416e2916b33f4b88d72552d7b493a728d8

(()=>{var e={91:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n.d(t,{Z:()=>d});var o=function(){function e(t){var n=t.question,r=t.alternatives;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var i=r.map((function(e,t){return{id:""+t,description:{"en-US":e.text}}}));this.event={description:{"en-US":n},type:"http://adlnet.gov/expapi/activities/cmi.interaction",interactionType:"choice",choices:i}}var t,n,o;return t=e,o=[{key:"getResultPattern",value:function(e){return e.reduce((function(e,t,n){return t.checked&&(e+=(e.length?"[,]":"")+n),e}),"")}}],(n=[{key:"generateXApi",value:function(t,n){var i=e.getResultPattern(n),o=t.data.statement;return r(o,{result:{response:i}}),o.object&&r(o.object.definition,this.event),t}}])&&i(t.prototype,n),o&&i(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function h(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var f=0,d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(d,H5P.EventDispatcher);var t,n,r,i,a=(r=d,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=p(r);if(i){var n=p(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return h(this,e)});function d(e){var t,n=e.question,r=e.alternatives,i=void 0===r?[]:r,u=e.inputType,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return s(this,d),(t=a.call(this)).uniqueName="h5p-simple-multiple-choice-"+f,f+=1,t.listItems=[],t.feedbackElements=[],t.state=i.map((function(e,t){return{id:t,text:e.text,checked:!1}})),t.hasFeedback=i.some((function(e){return e.feedback.chosenFeedback||e.feedback.notChosenFeedback})),t.feedbackShown=!1,t.xapiGenerator=new o({question:n,alternatives:i}),t.attach=function(e){var t=document.createElement("div");t.className="h5p-simple-multiple-choice";var n=document.createElement("div");n.classList.add("h5p-simple-multiple-choice-question"),n.classList.add("h5p-subcontent-question");var r=this.createQuestion(this.uniqueName);n.appendChild(r),t.appendChild(n);var i=this.createAlternativesList(this.uniqueName);t.appendChild(i),e.get(0).appendChild(t)},t.createQuestion=function(e){var t=document.createElement("div");return t.id=e,t.innerHTML=n,t},t.handleInputChange=function(e){this.feedbackShown&&(this.feedbackElements.forEach((function(e){e.parentNode.removeChild(e)})),this.feedbackElements=[],this.feedbackShown=!1,this.trigger("allow-finish-changed")),this.state=this.state.map((function(t,n){var r=n===e;return"radio"!==u&&(r=n===e?!t.checked:t.checked),c({},t,{checked:r})})),this.trigger("changed");var t=this.createXAPIEventTemplate("interacted"),n=this.xapiGenerator.generateXApi(t,this.state);this.trigger(n)},t.createAlternativesList=function(e){var t=this;if(!this.state.length){var n=document.createElement("div");return n.className="h5p-simple-multiple-choice-alternatives-error",n.textContent="ERROR: No alternatives chosen",n}var r=document.createElement("ul");return r.classList.add("h5p-simple-multiple-choice-alternatives"),r.classList.add("h5p-subcontent-body"),r.setAttribute("role","listbox"),r.setAttribute("aria-labelledby",e),this.state.forEach((function(e){var n=e.id,i=e.text,o=e.checked,a=document.createElement("li");a.className="h5p-simple-multiple-choice-alternative-li";var c=document.createElement("label"),s=document.createElement("input");s.className="h5p-simple-multiple-choice-alternative-input",s.type=u||"checkbox",s.name=t.uniqueName,o&&s.setAttribute("checked","checked"),c.addEventListener("change",t.handleInputChange.bind(t,n)),c.appendChild(s),c.innerHTML+=i,a.appendChild(c),r.appendChild(a),t.listItems.push(a)})),r},t.getCurrentState=function(){return o.getResultPattern(this.state)},t.restorePreviousState=function(){var e=this;l.previousState&&l.previousState.split("[,]").forEach((function(t){e.state[t].checked=!0}))},t.allowFinish=function(){return this.hasFeedback?this.hasFeedback&&this.feedbackShown?d.AllowFinish.ALLOW:d.AllowFinish.DENY:d.AllowFinish.ALWAYS},t.finish=function(){var e=this;return i.forEach((function(t,n){if(t.feedback){var r,i=e.state[n].checked;if(i&&t.feedback.chosenFeedback?r=t.feedback.chosenFeedback:!i&&t.feedback.notChosenFeedback&&(r=t.feedback.notChosenFeedback),r){var o=document.createElement("div");o.className="h5p-simple-multiple-choice-alternative-feedback "+(i?"chosen":"not-chosen"),o.innerHTML=r,e.feedbackElements.push(o),e.listItems[n].appendChild(o)}}})),this.feedbackShown=!0,0===this.feedbackElements.length},t.restorePreviousState(),t}return t=d,n=[{key:"AllowFinish",get:function(){return{ALWAYS:0,DENY:1,ALLOW:2}}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),d}()}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),H5P.SimpleMultiChoice=n(91).Z})();

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists