1/*! For license information please see db758496a4e47c20.js.LICENSE.txt */ 2"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[2040],{2040:(t,e,r)=>{r.r(e),r.d(e,{default:()=>l});var o=r(95353);function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function i(){var t,e,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",n=r.toStringTag||"@@toStringTag";function s(r,o,n,i){var s=o&&o.prototype instanceof u?o:u,d=Object.create(s.prototype);return c(d,"_invoke",function(r,o,n){var i,c,s,u=0,d=n||[],l=!1,p={p:0,n:0,v:t,a:y,f:y.bind(t,4),d:function(e,r){return i=e,c=0,s=t,p.n=r,a}};function y(r,o){for(c=r,s=o,e=0;!l&&u&&!n&&e<d.length;e++){var n,i=d[e],y=p.p,f=i[2];r>3?(n=f===o)&&(s=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=y&&((n=r<2&&y<i[1])?(c=0,p.v=o,p.n=i[1]):y<f&&(n=r<3||i[0]>o||o>f)&&(i[4]=r,i[5]=o,p.n=f,c=0))}if(n||r>1)return a;throw l=!0,o}return function(n,d,f){if(u>1)throw TypeError("Generator is already running");for(l&&1===d&&y(d,f),c=d,s=f;(e=c<2?t:s)||!l;){i||(c?c<3?(c>1&&(p.n=-1),y(c,s)):p.n=s:p.v=s);try{if(u=2,i){if(c||(n="next"),e=i[n]){if(!(e=e.call(i,s)))throw TypeError("iterator result is not an object");if(!e.done)return e;s=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(s=TypeError("The iterator does not provide a '"+n+"' method"),c=1);i=t}else if((e=(l=p.n<0)?s:r.call(o,p))!==a)break}catch(e){i=t,c=1,s=e}finally{u=1}}return{value:e,done:l}}}(r,n,i),!0),d}var a={};function u(){}function d(){}function l(){}e=Object.getPrototypeOf;var p=[][o]?e(e([][o]())):(c(e={},o,function(){return this}),e),y=l.prototype=u.prototype=Object.create(p);function f(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,c(t,n,"GeneratorFunction")),t.prototype=Object.create(y),t}return d.prototype=l,c(y,"constructor",l),c(l,"constructor",d),d.displayName="GeneratorFunction",c(l,n,"GeneratorFunction"),c(y),c(y,n,"Generator"),c(y,o,function(){return this}),c(y,"toString",function(){return"[object Generator]"}),(i=function(){return{w:s,m:f}})()}function c(t,e,r,o){var n=Object.defineProperty;try{n({},"",{})}catch(t){n=0}c=function(t,e,r,o){function i(e,r){c(t,e,function(t){return this._invoke(e,r,t)})}e?n?n(t,e,{value:r,enumerable:!o,configurable:!o,writable:!o}):t[e]=r:(i("next",0),i("throw",1),i("return",2))},c(t,e,r,o)}function s(t,e,r,o,n,i,c){try{var s=t[i](c),a=s.value}catch(t){return void r(t)}s.done?e(a):Promise.resolve(a).then(o,n)}function a(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,o)}return r}function u(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const d={components:{},layout:"default",props:{mcqsProp:{type:Object,required:!0},fontSizeProp:{type:String,required:!0},hideDeleteProp:{type:Boolean,default:!1}},data:function(){return{mcqs:{}}},computed:function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?a(Object(r),!0).forEach(function(e){u(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({},(0,o.L8)({primary:"theme/getPrimary",secondary:"theme/getSecondary",primary2:"theme/getPrimary2",tertiary:"theme/getTertiary",fourthry:"theme/getFourthry",backgroundBodyColor:"theme/getBackgroundBodyColor"})),created:function(){this.mcqs=this.mcqsProp},mounted:function(){return(t=i().m(function t(){return i().w(function(t){for(;;)if(0===t.n)return t.a(2)},t)}
2),function(){var e=this,r=arguments;return new Promise(function(o,n){var i=t.apply(e,r);function c(t){s(i,o,n,c,a,"next",t)}function a(t){s(i,o,n,c,a,"throw",t)}c(void 0)})})();var t},methods:{get_answer_text:function(t){var e="";switch(t){case"option_a":e="a";break;case"option_b":e="b";break;case"option_c":e="c";break;case"option_d":e="d"}return e}}};const l=(0,r(14486).A)(d,function(){var t=this,e=t._self._c;return e("div",{key:t.mcqs.id,staticClass:"my-3",attrs:{id:t.mcqs.id}},[e("b-card",{staticStyle:{"text-align":"left"},style:{background:t.backgroundBodyColor}},[e("b-card",{key:"question"+t.mcqs.id,style:{background:t.backgroundBodyColor},attrs:{id:"question"+t.mcqs.id}},[e("span",{staticClass:"show_whitespace",style:"font-weight:bold;font-size:"+t.fontSizeProp},[t._v(t._s(t.mcqs.index+"."+String.fromCharCode(160)+t.mcqs.question))])]),t._v(" "),e("b-card",{key:"answer"+t.mcqs.id,style:{background:t.backgroundBodyColor},attrs:{id:"answer"+t.mcqs.id}},[e("b-card",{key:"option_a"+t.mcqs.id,style:{background:t.backgroundBodyColor},attrs:{id:"option_a"+t.mcqs.id}},[e("span",{staticClass:"show_whitespace",style:"font-size:"+t.fontSizeProp},[e("b",[t._v("a). ")]),t._v(t._s(t.mcqs.option_a))])]),t._v(" "),e("b-card",{key:"option_b"+t.mcqs.id,style:{background:t.backgroundBodyColor},attrs:{id:"option_b"+t.mcqs.id}},[e("span",{staticClass:"show_whitespace",style:"font-size:"+t.fontSizeProp},[e("b",[t._v("b). ")]),t._v(t._s(t.mcqs.option_b))])]),t._v(" "),e("b-card",{key:"option_c"+t.mcqs.id,style:{background:t.backgroundBodyColor},attrs:{id:"option_c"+t.mcqs.id}},[e("span",{staticClass:"show_whitespace",style:"font-size:"+t.fontSizeProp},[e("b",[t._v("c). ")]),t._v(t._s(t.mcqs.option_c))])]),t._v(" "),e("b-card",{key:"option_d"+t.mcqs.id,style:{background:t.backgroundBodyColor},attrs:{id:"option_d"+t.mcqs.id}},[e("span",{staticClass:"show_whitespace",style:"font-size:"+t.fontSizeProp},[e("b",[t._v("d). ")]),t._v(t._s(t.mcqs.option_d))])])],1),t._v(" "),e("b-card",{key:"extra"+t.mcqs.id,style:{background:t.backgroundBodyColor},attrs:{id:"extra"+t.mcqs.id}},[e("b-card",{key:"answer"+t.mcqs.id,style:{background:t.backgroundBodyColor},attrs:{id:"answer"+t.mcqs.id}},[e("span",{staticClass:"show_whitespace",style:"font-size:"+t.fontSizeProp},[e("b",[t._v("Answer:  ")]),t._v(t._s(t.get_answer_text(t.mcqs.answer)))])]),t._v(" "),e("b-card",{key:"explanation"+t.mcqs.id,style:{background:t.backgroundBodyColor},attrs:{id:"explanation"+t.mcqs.id}},[e("span",{staticClass:"show_whitespace",style:"font-size:"+t.fontSizeProp},[e("b",[t._v("Explanation: ")]),t._v(t._s(t.mcqs.explanation))])])],1),t._v(" "),e("br"),t._v(" "),e("div",{staticClass:"row"},[e("div",[e("b-button",{key:"edit"+t.mcqs.id,style:{background:t.primary},attrs:{id:"edit"+t.mcqs.id,pill:"",name:"edit"},on:{click:function(e){return t.$emit("edit_mcqs",t.mcqs.id)}}},[t._v("\n Edit\n ")]),t._v(" "),e("b-button",{key:"position"+t.mcqs.id,style:{background:t.secondary},attrs:{id:"position"+t.mcqs.id,pill:"",name:"position"},on:{click:function(e){return t.$emit("change_position",t.mcqs.id)}}},[t._v("\n Change Position\n ")]),t._v(" "),t.hideDeleteProp?t._e():e("b-button",{key:"delete"+t.mcqs.id,style:{background:t.fourthry},attrs:{id:"delete"+t.mcqs.id,pill:"",name:"delete"},on:{click:function(e){return t.$emit("delete_mcqs",t.mcqs.id)}}},[t._v("\n Delete\n ")])],1)])],1)],1)},[],!1,null,"925c2738",null).exports}}]); 3//# sourceMappingURL=db758496a4e47c20.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.