@liascript/exporter 2.6.23--0.12.6 → 2.6.24--0.12.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/capacitor/index.3acab45f.js +3 -0
- package/dist/assets/capacitor/index.86672fec.js +1 -0
- package/dist/assets/capacitor/index.a18d48a6.js +2 -0
- package/dist/assets/capacitor/index.cc4ff0d6.js +1 -0
- package/dist/assets/capacitor/index.html +1 -1
- package/dist/assets/indexeddb/index.31ac4ee7.js +1 -0
- package/dist/assets/indexeddb/index.86672fec.js +1 -0
- package/dist/assets/indexeddb/index.a542d943.js +1 -0
- package/dist/assets/indexeddb/index.c9633b0d.css +1 -0
- package/dist/assets/indexeddb/index.cc4ff0d6.js +1 -0
- package/dist/assets/indexeddb/index.html +1 -1
- package/dist/assets/pdf/index.0551e377.js +1 -0
- package/dist/assets/pdf/index.4f5ae007.js +1 -0
- package/dist/assets/pdf/index.952364cb.js +1 -0
- package/dist/assets/pdf/index.c9cc4b94.js +1 -0
- package/dist/assets/pdf/index.html +1 -1
- package/dist/assets/scorm1.2/SCORM1.2.0348930f.js +1 -0
- package/dist/assets/scorm1.2/SCORM1.2.6e9e9073.js +1 -0
- package/dist/assets/scorm1.2/index.558d2061.js +1 -0
- package/dist/assets/scorm1.2/index.86672fec.js +1 -0
- package/dist/assets/scorm1.2/index.8f515306.js +1 -0
- package/dist/assets/scorm1.2/index.c9633b0d.css +1 -0
- package/dist/assets/scorm1.2/index.cc4ff0d6.js +1 -0
- package/dist/assets/scorm1.2/index.html +1 -1
- package/dist/assets/scorm2004/SCORM2004.5cd65d22.js +1 -0
- package/dist/assets/scorm2004/SCORM2004.805b67df.js +1 -0
- package/dist/assets/scorm2004/index.317ae766.js +1 -0
- package/dist/assets/scorm2004/index.86672fec.js +1 -0
- package/dist/assets/scorm2004/index.c9633b0d.css +1 -0
- package/dist/assets/scorm2004/index.cc4ff0d6.js +1 -0
- package/dist/assets/scorm2004/index.e442974e.js +1 -0
- package/dist/assets/scorm2004/index.html +1 -1
- package/dist/assets/web/index.86672fec.js +1 -0
- package/dist/assets/web/index.c76a1bc0.js +1 -0
- package/dist/assets/web/index.c9633b0d.css +1 -0
- package/dist/assets/web/index.cc4ff0d6.js +1 -0
- package/dist/assets/web/index.fc731bbd.js +1 -0
- package/dist/assets/web/index.html +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/index.ts +1 -1
- package/dist/assets/capacitor/index.077107ec.js +0 -1
- package/dist/assets/capacitor/index.64c20a6b.js +0 -3
- package/dist/assets/capacitor/index.75addd38.js +0 -1
- package/dist/assets/capacitor/index.9a296af2.js +0 -2
- package/dist/assets/indexeddb/index.077107ec.js +0 -1
- package/dist/assets/indexeddb/index.75addd38.js +0 -1
- package/dist/assets/indexeddb/index.7b1ec96f.js +0 -1
- package/dist/assets/indexeddb/index.da70a27a.css +0 -1
- package/dist/assets/indexeddb/index.fc56d75a.js +0 -1
- package/dist/assets/pdf/index.06b1c0f8.js +0 -1
- package/dist/assets/pdf/index.81a965a0.js +0 -1
- package/dist/assets/pdf/index.a8e4f50c.js +0 -1
- package/dist/assets/pdf/index.ec707c47.js +0 -1
- package/dist/assets/scorm1.2/SCORM1.2.341e9798.js +0 -1
- package/dist/assets/scorm1.2/SCORM1.2.4627cc62.js +0 -1
- package/dist/assets/scorm1.2/index.077107ec.js +0 -1
- package/dist/assets/scorm1.2/index.75addd38.js +0 -1
- package/dist/assets/scorm1.2/index.da70a27a.css +0 -1
- package/dist/assets/scorm1.2/index.e47fcb42.js +0 -1
- package/dist/assets/scorm1.2/index.f07a8753.js +0 -1
- package/dist/assets/scorm2004/SCORM2004.751d584f.js +0 -1
- package/dist/assets/scorm2004/SCORM2004.a571d200.js +0 -1
- package/dist/assets/scorm2004/index.077107ec.js +0 -1
- package/dist/assets/scorm2004/index.584e1ba7.js +0 -1
- package/dist/assets/scorm2004/index.75addd38.js +0 -1
- package/dist/assets/scorm2004/index.da70a27a.css +0 -1
- package/dist/assets/scorm2004/index.ec70d533.js +0 -1
- package/dist/assets/web/index.077107ec.js +0 -1
- package/dist/assets/web/index.75addd38.js +0 -1
- package/dist/assets/web/index.7cfcae50.js +0 -1
- package/dist/assets/web/index.da70a27a.css +0 -1
- package/dist/assets/web/index.f56a1811.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="en"><head><title>Lia</title><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><script defer type="module" src="index.
|
|
1
|
+
<!DOCTYPE html><html lang="en"><head><title>Lia</title><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><script defer type="module" src="index.4f5ae007.js"></script><script defer src="index.0551e377.js" nomodule></script><script defer type="module" src="index.b47e83d8.js"></script><script defer src="index.05f38d1e.js" nomodule></script><script defer type="module" src="index.8ef64c13.js"></script><script defer src="index.7c2099c2.js" nomodule></script><script defer type="module" src="index.952364cb.js"></script><script defer src="index.c9cc4b94.js" nomodule></script><script defer type="module" src="index.23de9d32.js"></script><script defer src="index.a4ec7be7.js" nomodule></script><script defer type="module" src="index.ad714f5b.js"></script><script defer src="index.ff894342.js" nomodule></script><script defer type="module" src="index.21867102.js"></script><script defer src="index.965a9dd8.js" nomodule></script><script defer type="module" src="index.1df2912f.js"></script><script defer src="index.02e1e0e7.js" nomodule></script><script defer type="module" src="index.95b0d75c.js"></script><script defer src="index.8e9af83f.js" nomodule></script><link rel="icon shortcut" sizes="192x192" href="up_/up_/assets/logo_192.png"><meta name="mobile-web-app-capable" content="yes"><meta name="application-name" content="Lia"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"><meta name="apple-mobile-web-app-title" content="LiaScript"><meta name="msapplication-TileImage" content="up_/up_/assets/logo_192.png"><meta name="msapplication-TileColor" content="#0071c5"><meta name="msapplication-tap-highlight" content="no"><meta name="theme-color" content="#000000"><meta name="description" content="LiaScript is a service for running free and interactive online courses, build with its own Markup-language. So check out the following course ;-)"><link rel="apple-touch-icon" href="logo.abbc2cae.png"><link rel="icon" href="logo.abbc2cae.png" type="image/png"><style>.lds-dual-ring{width:150px;height:150px;display:inline-block}.lds-dual-ring:after{content:" ";width:128px;height:128px;border:5px solid #000;border-color:#000 transparent;border-radius:50%;margin:1px;-webkit-animation:1.2s linear infinite lds-dual-ring;animation:1.2s linear infinite lds-dual-ring;display:block}@-webkit-keyframes lds-dual-ring{0%{-webkit-transform:rotate(0);-ms-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);-ms-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes lds-dual-ring{0%{-webkit-transform:rotate(0);-ms-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);-ms-transform:rotate(360deg);transform:rotate(360deg)}}</style><link rel="stylesheet" href="index.511f6e9f.css"></head><body> <noscript> This page requires JavaScript to be enabled! </noscript> </body></html>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function t(t,e,i,s){Object.defineProperty(t,e,{get:i,set:s,enumerable:!0,configurable:!0})}var e=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}).parcelRequire55a5;e.register("1FNwj",(function(i,s){t(i.exports,"Connector",(function(){return c}));var n=e("jXXgq"),o=e("ayIBF"),r=e("5aa3i");class c extends n.Connector{init(){if(this.scorm){let t=this.scorm.LMSGetValue("cmi.core.lesson_mode")||"unknown";this.active="normal"===t||"unknown"===t,l('Running in "'+t+'" mode, results will '+(this.active?"":"NOT")+" be stored!"),a("open location ..."),this.location=r.jsonParse(this.scorm.LMSGetValue("cmi.core.lesson_location")),a("... ",this.location),null===this.location&&this.slide(0);let e=0;e=this.initSecond("quiz",e),e=this.initSecond("survey",e),e=this.initSecond("task",e),window.SCORE=0,this.score()}}initSecond(t,e){for(let i=0;i<this.db[t].length;i++){this.id[t].push([]);for(let s=0;s<this.db[t][i].length;s++){let n=this.getInteraction(e);n&&(this.db[t][i][s]=n),this.id[t][i].push(e),e++}}return e}score(){var t;if(!this.active||!this.score)return;let e=0,i=0,s=0,n=0;for(let t=0;t<this.db.quiz.length;t++)for(let o=0;o<this.db.quiz[t].length;o++)switch(n=this.db.quiz[t][o].score,e+=n,this.db.quiz[t][o].solved){case 1:i+=n;case-1:s+=n}const o=0===i?0:i/e;this.write("cmi.core.score.min","0"),this.write("cmi.core.score.max","100"),this.write("cmi.core.score.raw",function(t){const e=t.toFixed(4),[i,s]=e.toString().split(".");return`${i}.${s.padEnd(10,"0")}`}(100*o));let c=r.jsonParse((null===(t=this.scorm)||void 0===t?void 0:t.LMSGetValue("cmi.student_data.mastery_score"))||"null");null==c?this.write("cmi.core.lesson_status","not attempted"):o>=c/100?this.write("cmi.core.lesson_status","passed"):s+i===e?this.write("cmi.core.lesson_status","failed"):this.write("cmi.core.lesson_status","incomplete"),window.SCORE=o}open(t,e,i){if(null!==this.location){const t=this.location;setTimeout((function(){window.LIA.goto(t)}),500)}}slide(t){this.location=t,this.scorm&&this.active&&(this.scorm.LMSSetValue("cmi.core.lesson_location",JSON.stringify(t)),this.scorm.LMSCommit(""))}countInteractions(){if(!this.scorm)return null;return parseInt(this.scorm.LMSGetValue("cmi.objectives._count"))||null}setInteraction(t,e){return e.length<=255?(this.write(`cmi.objectives.${t}.id`,r.encodeJSON(e)),!0):(this.write(`cmi.objectives.${t}.id`,"Objective could not be stored, content exceeds 256Bytes!"),!1)}initSettings(t,e=!1){return o.Settings.init(t,!1,this.setSettings)}setSettings(t){this.write("cmi.suspend_data",JSON.stringify(t))}getSettings(){let t="";try{var e;t=(null===(e=this.scorm)||void 0===e?void 0:e.LMSGetValue("cmi.suspend_data"))||null}catch(t){l("cannot read settings from cmi.suspend_data")}let i=null;if("string"==typeof t){try{i=JSON.parse(t)}catch(t){l("getSettings =>",t)}i||(i=o.Settings.data),window.innerWidth<=768&&(i.table_of_contents=!1)}return i}write(t,e){this.scorm?(this.scorm.LMSSetValue(t,e),this.scorm.LMSCommit("")):l("could not write",t,e)}getInteraction(t){if(!this.active)return null;let e;try{if(this.scorm&&(e=this.scorm.LMSGetValue(`cmi.objectives.${t}.id`),e))return r.decodeJSON(e)}catch(i){l("getInteraction =>",i,`cmi.objectives.${t}.id`,e)}return null}updateInteraction(t,e){this.write(`cmi.objectives.${t}.id`,r.encodeJSON(e))}load(t){if(this.active)switch(t.table){case"quiz":case"survey":case"task":return a("loading ",t.table,t.id,this.db.task[t.id]),this.db[t.table][t.id]}}store(t){if(this.active)switch(l("store",t),t.table){case"quiz":this.storeHelper(t),this.score();break;case"survey":case"task":this.storeHelper(t)}}storeHelper(t){for(let e=0;e<this.db[t.table][t.id].length;e++)r.neq(t.data[e],this.db[t.table][t.id][e])&&(this.updateInteraction(this.id[t.table][t.id][e],t.data[e]),this.db[t.table][t.id][e]=t.data[e],"quiz"==t.table&&this.updateQuiz(this.id[t.table][t.id][e],t.data[e]))}updateQuiz(t,e){if(this.active)switch(e.solved){case 0:e.trial>0&&this.write(`cmi.objectives.${t}.status`,"failed");break;case 1:this.write(`cmi.objectives.${t}.status`,"completed");break;case-1:this.write(`cmi.objectives.${t}.status`,"incomplete")}}constructor(){if(super(),this.active=!1,this.db={quiz:[],survey:[],task:[]},this.id={quiz:[],survey:[],task:[]},console.warn("Hello, this is LiaScript from within a SCORM 1.2 package. You should definitely try out the SCORM 2004 exporter, since this one cannot be used to store states or any kind of progress. The only thing that is stores, is currently the user location...\n\nIF YOU ARE AN ELABORATE AND EXPERIENCED SCORM DEVELOPER?\n========================================================\n\nAnd you want to help us, to extend this service, please contact us via LiaScript@web.de\n\nHave fun ;-)"),window.top&&window.top.API){a("successfully opened API"),this.scorm=window.top.API,a("LMSInitialize",this.scorm.LMSInitialize("")),a("loading quizzes ...");try{this.db.quiz=window.config_.quiz||[[]],a(" ... done")}catch(t){l("... failed",t)}a("loading surveys ...");try{this.db.survey=window.config_.survey||[[]],a(" ... done")}catch(t){l("... failed",t)}a("loading tasks ...");try{this.db.task=window.config_.task||[[]],a(" ... done")}catch(t){l("... failed",t)}this.init()}}}function a(...t){console.log("SCORM1.2: ",...t)}function l(...t){console.log("SCORM1.2: ",...t)}})),e.register("jXXgq",(function(i,s){t(i.exports,"Connector",(function(){return r}));var n=e("3MPaZ"),o=e("ayIBF");class r{hasIndex(){return!1}storage(){return new n.LiaStorage}initSettings(t,e=!1){return o.Settings.init(t,e,this.setSettings)}setSettings(t){try{localStorage.setItem(o.Settings.PORT,JSON.stringify(t))}catch(t){console.warn("cannot write to localStorage")}}getSettings(){let t="";try{t=localStorage.getItem(o.Settings.PORT)}catch(t){console.warn("cannot write to localStorage")}let e=null;if("string"==typeof t){try{e=JSON.parse(t)}catch(t){console.warn("getSettings =>",t)}e||(e=o.Settings.data),window.innerWidth<=768&&(e.table_of_contents=!1)}return e}open(t,e,i){}load(t){}store(t){}update(t,e){}slide(t){}getIndex(){}deleteFromIndex(t){}storeToIndex(t){}restoreFromIndex(t,e){}reset(t,e){this.initSettings(null,!0)}async getFromIndex(t){return null}constructor(){}}})),e.register("3MPaZ",(function(e,i){t(e.exports,"LiaStorage",(function(){return s}));class s{getItems(t=[]){"string"==typeof t&&(t=[t]);let e={};for(let i=0;i<t.length;i++){let s=localStorage.getItem(t[i]);e[t[i]]=s?JSON.parse(s):s}return e}setItems(t){this._setLocal(t)}_setLocal(t){if("object"==typeof t)for(const[e,i]of Object.entries(t))localStorage.setItem(e,JSON.stringify(i))}constructor(){}}})),e.register("5aa3i",(function(e,i){t(e.exports,"encodeJSON",(function(){return r})),t(e.exports,"decodeJSON",(function(){return c})),t(e.exports,"jsonParse",(function(){return a})),t(e.exports,"neq",(function(){return l}));const s={SingleChoice:"sc",MultipleChoice:"mc",Text:"tx",Select:"st",Matrix:"mx",Generic:"gn",error_msg:"err"},n=Object.entries(s).reduce(((t,[e,i])=>(t[i]=e,t)),{});function o(t,e){if("object"!=typeof t||null===t)return t;if(Array.isArray(t))return t.map((t=>o(t,e)));const i={};for(const[s,n]of Object.entries(t))i[e[s]||s]=o(n,e);return i}function r(t){return JSON.stringify(o(t,s))}function c(t){return o(JSON.parse(t),n)}function a(t){try{return JSON.parse(t)}catch(t){}return null}function l(t,e){return JSON.stringify(t)!=JSON.stringify(e)}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(){function t(t,e,n,i){Object.defineProperty(t,e,{get:n,set:i,enumerable:!0,configurable:!0})}var e=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}).parcelRequire55a5;e.register("58dpJ",(function(n,i){t(n.exports,"Connector",(function(){return h}));var o=e("9Klpk"),r=e("3bWnf"),s=e("kb0qF"),a=e("5ENmm"),c=e("6Wo7Q"),u=e("bWNdT"),l=e("knzCS"),d=e("cRTHJ"),f=e("jxbaN"),h=function(t){"use strict";(0,s.default)(n,t);var e=(0,u.default)(n);function n(){var t;if((0,o.default)(this,n),(t=e.call(this)).active=!1,t.db={quiz:[],survey:[],task:[]},t.id={quiz:[],survey:[],task:[]},console.warn("Hello, this is LiaScript from within a SCORM 1.2 package. You should definitely try out the SCORM 2004 exporter, since this one cannot be used to store states or any kind of progress. The only thing that is stores, is currently the user location...\n\nIF YOU ARE AN ELABORATE AND EXPERIENCED SCORM DEVELOPER?\n========================================================\n\nAnd you want to help us, to extend this service, please contact us via LiaScript@web.de\n\nHave fun ;-)"),window.top&&window.top.API){v("successfully opened API"),t.scorm=window.top.API,v("LMSInitialize",t.scorm.LMSInitialize("")),v("loading quizzes ...");try{t.db.quiz=window.config_.quiz||[[]],v(" ... done")}catch(t){y("... failed",t)}v("loading surveys ...");try{t.db.survey=window.config_.survey||[[]],v(" ... done")}catch(t){y("... failed",t)}v("loading tasks ...");try{t.db.task=window.config_.task||[[]],v(" ... done")}catch(t){y("... failed",t)}t.init()}return t}return(0,r.default)(n,[{key:"init",value:function(){if(this.scorm){var t=this.scorm.LMSGetValue("cmi.core.lesson_mode")||"unknown";this.active="normal"===t||"unknown"===t,y('Running in "'+t+'" mode, results will '+(this.active?"":"NOT")+" be stored!"),v("open location ..."),this.location=f.jsonParse(this.scorm.LMSGetValue("cmi.core.lesson_location")),v("... ",this.location),null===this.location&&this.slide(0);var e=0;e=this.initSecond("quiz",e),e=this.initSecond("survey",e),e=this.initSecond("task",e),window.SCORE=0,this.score()}}},{key:"initSecond",value:function(t,e){for(var n=0;n<this.db[t].length;n++){this.id[t].push([]);for(var i=0;i<this.db[t][n].length;i++){var o=this.getInteraction(e);o&&(this.db[t][n][i]=o),this.id[t][n].push(e),e++}}return e}},{key:"score",value:function(){var t;if(this.active&&this.score){for(var e=0,n=0,i=0,o=0,r=0;r<this.db.quiz.length;r++)for(var s=0;s<this.db.quiz[r].length;s++)switch(e+=o=this.db.quiz[r][s].score,this.db.quiz[r][s].solved){case 1:n+=o;case-1:i+=o}var c,u,l,d,h=0===n?0:n/e;this.write("cmi.core.score.min","0"),this.write("cmi.core.score.max","100"),this.write("cmi.core.score.raw",(c=(100*h).toFixed(4),l=(u=(0,a.default)(c.toString().split("."),2))[0],d=u[1],"".concat(l,".").concat(d.padEnd(10,"0"))));var v=f.jsonParse((null===(t=this.scorm)||void 0===t?void 0:t.LMSGetValue("cmi.student_data.mastery_score"))||"null");null==v?this.write("cmi.core.lesson_status","not attempted"):h>=v/100?this.write("cmi.core.lesson_status","passed"):i+n===e?this.write("cmi.core.lesson_status","failed"):this.write("cmi.core.lesson_status","incomplete"),window.SCORE=h}}},{key:"open",value:function(t,e,n){if(null!==this.location){var i=this.location;setTimeout((function(){window.LIA.goto(i)}),500)}}},{key:"slide",value:function(t){this.location=t,this.scorm&&this.active&&(this.scorm.LMSSetValue("cmi.core.lesson_location",JSON.stringify(t)),this.scorm.LMSCommit(""))}},{key:"countInteractions",value:function(){return this.scorm&&parseInt(this.scorm.LMSGetValue("cmi.objectives._count"))||null}},{key:"setInteraction",value:function(t,e){return e.length<=255?(this.write("cmi.objectives.".concat(t,".id"),f.encodeJSON(e)),!0):(this.write("cmi.objectives.".concat(t,".id"),"Objective could not be stored, content exceeds 256Bytes!"),!1)}},{key:"initSettings",value:function(t){return d.Settings.init(t,!1,this.setSettings)}},{key:"setSettings",value:function(t){this.write("cmi.suspend_data",JSON.stringify(t))}},{key:"getSettings",value:function(){var t="";try{var e;t=(null===(e=this.scorm)||void 0===e?void 0:e.LMSGetValue("cmi.suspend_data"))||null}catch(t){y("cannot read settings from cmi.suspend_data")}var n=null;if("string"==typeof t){try{n=JSON.parse(t)}catch(t){y("getSettings =>",t)}n||(n=d.Settings.data),window.innerWidth<=768&&(n.table_of_contents=!1)}return n}},{key:"write",value:function(t,e){this.scorm?(this.scorm.LMSSetValue(t,e),this.scorm.LMSCommit("")):y("could not write",t,e)}},{key:"getInteraction",value:function(t){if(!this.active)return null;var e;try{if(this.scorm&&(e=this.scorm.LMSGetValue("cmi.objectives.".concat(t,".id"))))return f.decodeJSON(e)}catch(n){y("getInteraction =>",n,"cmi.objectives.".concat(t,".id"),e)}return null}},{key:"updateInteraction",value:function(t,e){this.write("cmi.objectives.".concat(t,".id"),f.encodeJSON(e))}},{key:"load",value:function(t){if(this.active)switch(t.table){case"quiz":case"survey":case"task":return v("loading ",t.table,t.id,this.db.task[t.id]),this.db[t.table][t.id]}}},{key:"store",value:function(t){if(this.active)switch(y("store",t),t.table){case"quiz":this.storeHelper(t),this.score();break;case"survey":case"task":this.storeHelper(t)}}},{key:"storeHelper",value:function(t){for(var e=0;e<this.db[t.table][t.id].length;e++)f.neq(t.data[e],this.db[t.table][t.id][e])&&(this.updateInteraction(this.id[t.table][t.id][e],t.data[e]),this.db[t.table][t.id][e]=t.data[e],"quiz"==t.table&&this.updateQuiz(this.id[t.table][t.id][e],t.data[e]))}},{key:"updateQuiz",value:function(t,e){if(this.active)switch(e.solved){case 0:e.trial>0&&this.write("cmi.objectives.".concat(t,".status"),"failed");break;case 1:this.write("cmi.objectives.".concat(t,".status"),"completed");break;case-1:this.write("cmi.objectives.".concat(t,".status"),"incomplete")}}}]),n}(l.Connector);function v(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i;(i=console).log.apply(i,["SCORM1.2: "].concat((0,c.default)(e)))}function y(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i;(i=console).log.apply(i,["SCORM1.2: "].concat((0,c.default)(e)))}})),e.register("knzCS",(function(n,i){t(n.exports,"Connector",(function(){return l}));var o=e("hnmIs"),r=e("9Klpk"),s=e("3bWnf"),a=e("32Euv"),c=e("87lFe"),u=e("cRTHJ"),l=function(){"use strict";function t(){(0,r.default)(this,t)}return(0,s.default)(t,[{key:"hasIndex",value:function(){return!1}},{key:"storage",value:function(){return new c.LiaStorage}},{key:"initSettings",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return u.Settings.init(t,e,this.setSettings)}},{key:"setSettings",value:function(t){try{localStorage.setItem(u.Settings.PORT,JSON.stringify(t))}catch(t){console.warn("cannot write to localStorage")}}},{key:"getSettings",value:function(){var t="";try{t=localStorage.getItem(u.Settings.PORT)}catch(t){console.warn("cannot write to localStorage")}var e=null;if("string"==typeof t){try{e=JSON.parse(t)}catch(t){console.warn("getSettings =>",t)}e||(e=u.Settings.data),window.innerWidth<=768&&(e.table_of_contents=!1)}return e}},{key:"open",value:function(t,e,n){}},{key:"load",value:function(t){}},{key:"store",value:function(t){}},{key:"update",value:function(t,e){}},{key:"slide",value:function(t){}},{key:"getIndex",value:function(){}},{key:"deleteFromIndex",value:function(t){}},{key:"storeToIndex",value:function(t){}},{key:"restoreFromIndex",value:function(t,e){}},{key:"reset",value:function(t,e){this.initSettings(null,!0)}},{key:"getFromIndex",value:function(t){return(0,o.default)((function(){return(0,a.__generator)(this,(function(t){return[2,null]}))}))()}}]),t}()})),e.register("87lFe",(function(n,i){t(n.exports,"LiaStorage",(function(){return a}));var o=e("9Klpk"),r=e("3bWnf"),s=e("5ENmm"),a=function(){"use strict";function t(){(0,o.default)(this,t)}return(0,r.default)(t,[{key:"getItems",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];"string"==typeof t&&(t=[t]);for(var e={},n=0;n<t.length;n++){var i=localStorage.getItem(t[n]);e[t[n]]=i?JSON.parse(i):i}return e}},{key:"setItems",value:function(t){this._setLocal(t)}},{key:"_setLocal",value:function(t){var e=!0,n=!1,i=void 0;if("object"==typeof t)try{for(var o,r=Object.entries(t)[Symbol.iterator]();!(e=(o=r.next()).done);e=!0){var a=(0,s.default)(o.value,2),c=a[0],u=a[1];localStorage.setItem(c,JSON.stringify(u))}}catch(t){n=!0,i=t}finally{try{e||null==r.return||r.return()}finally{if(n)throw i}}}}]),t}()})),e.register("jxbaN",(function(n,i){t(n.exports,"encodeJSON",(function(){return c})),t(n.exports,"decodeJSON",(function(){return u})),t(n.exports,"jsonParse",(function(){return l})),t(n.exports,"neq",(function(){return d}));var o=e("5ENmm"),r={SingleChoice:"sc",MultipleChoice:"mc",Text:"tx",Select:"st",Matrix:"mx",Generic:"gn",error_msg:"err"},s=Object.entries(r).reduce((function(t,e){var n=(0,o.default)(e,2),i=n[0];return t[n[1]]=i,t}),{});function a(t,e){if("object"!=typeof t||null===t)return t;if(Array.isArray(t))return t.map((function(t){return a(t,e)}));var n={},i=!0,r=!1,s=void 0;try{for(var c,u=Object.entries(t)[Symbol.iterator]();!(i=(c=u.next()).done);i=!0){var l=(0,o.default)(c.value,2),d=l[0],f=l[1];n[e[d]||d]=a(f,e)}}catch(t){r=!0,s=t}finally{try{i||null==u.return||u.return()}finally{if(r)throw s}}return n}function c(t){return JSON.stringify(a(t,r))}function u(t){return a(JSON.parse(t),s)}function l(t){try{return JSON.parse(t)}catch(t){}return null}function d(t,e){return JSON.stringify(t)!=JSON.stringify(e)}}))}();
|