diff --git a/openassessment/xblock/static/dist/manifest.json b/openassessment/xblock/static/dist/manifest.json index 7f36b515a1..ca745c5277 100644 --- a/openassessment/xblock/static/dist/manifest.json +++ b/openassessment/xblock/static/dist/manifest.json @@ -4,10 +4,10 @@ "openassessment-editor-textarea.js.map": "/openassessment-editor-textarea.b8f866ba96a1d2ad92a4.js.map", "openassessment-editor-tinymce.js": "/openassessment-editor-tinymce.2cc0cab55c3be729265e.js", "openassessment-editor-tinymce.js.map": "/openassessment-editor-tinymce.2cc0cab55c3be729265e.js.map", - "openassessment-lms.css": "/openassessment-lms.070b37d817f5965d8b09.css", - "openassessment-lms.js": "/openassessment-lms.070b37d817f5965d8b09.js", - "openassessment-lms.css.map": "/openassessment-lms.070b37d817f5965d8b09.css.map", - "openassessment-lms.js.map": "/openassessment-lms.070b37d817f5965d8b09.js.map", + "openassessment-lms.css": "/openassessment-lms.2a9563ee79e6edaee030.css", + "openassessment-lms.js": "/openassessment-lms.2a9563ee79e6edaee030.js", + "openassessment-lms.css.map": "/openassessment-lms.2a9563ee79e6edaee030.css.map", + "openassessment-lms.js.map": "/openassessment-lms.2a9563ee79e6edaee030.js.map", "openassessment-ltr.css": "/openassessment-ltr.70fa5cad14d7729c7d6e.css", "openassessment-ltr.js": "/openassessment-ltr.70fa5cad14d7729c7d6e.js", "openassessment-ltr.css.map": "/openassessment-ltr.70fa5cad14d7729c7d6e.css.map", diff --git a/openassessment/xblock/static/dist/openassessment-editor-textarea.js b/openassessment/xblock/static/dist/openassessment-editor-textarea.js index 9afb82cef3..303249754a 100644 --- a/openassessment/xblock/static/dist/openassessment-editor-textarea.js +++ b/openassessment/xblock/static/dist/openassessment-editor-textarea.js @@ -63,7 +63,7 @@ /******/ /******/ var hotApplyOnUpdate = true; /******/ // eslint-disable-next-line no-unused-vars -/******/ var hotCurrentHash = "6fd687af717d3a51ba5e"; +/******/ var hotCurrentHash = "67c0452a6401ab2ac4ce"; /******/ var hotRequestTimeout = 10000; /******/ var hotCurrentModuleData = {}; /******/ var hotCurrentChildModule; diff --git a/openassessment/xblock/static/dist/openassessment-editor-tinymce.js b/openassessment/xblock/static/dist/openassessment-editor-tinymce.js index c4c770356b..a9d8356168 100644 --- a/openassessment/xblock/static/dist/openassessment-editor-tinymce.js +++ b/openassessment/xblock/static/dist/openassessment-editor-tinymce.js @@ -63,7 +63,7 @@ /******/ /******/ var hotApplyOnUpdate = true; /******/ // eslint-disable-next-line no-unused-vars -/******/ var hotCurrentHash = "6fd687af717d3a51ba5e"; +/******/ var hotCurrentHash = "67c0452a6401ab2ac4ce"; /******/ var hotRequestTimeout = 10000; /******/ var hotCurrentModuleData = {}; /******/ var hotCurrentChildModule; diff --git a/openassessment/xblock/static/dist/openassessment-lms.070b37d817f5965d8b09.css b/openassessment/xblock/static/dist/openassessment-lms.070b37d817f5965d8b09.css deleted file mode 100644 index 6cc2f7fbe1..0000000000 --- a/openassessment/xblock/static/dist/openassessment-lms.070b37d817f5965d8b09.css +++ /dev/null @@ -1,3 +0,0 @@ - - -/*# sourceMappingURL=openassessment-lms.070b37d817f5965d8b09.css.map*/ \ No newline at end of file diff --git a/openassessment/xblock/static/dist/openassessment-lms.2a9563ee79e6edaee030.css b/openassessment/xblock/static/dist/openassessment-lms.2a9563ee79e6edaee030.css new file mode 100644 index 0000000000..41d274943c --- /dev/null +++ b/openassessment/xblock/static/dist/openassessment-lms.2a9563ee79e6edaee030.css @@ -0,0 +1,3 @@ + + +/*# sourceMappingURL=openassessment-lms.2a9563ee79e6edaee030.css.map*/ \ No newline at end of file diff --git a/openassessment/xblock/static/dist/openassessment-lms.070b37d817f5965d8b09.js b/openassessment/xblock/static/dist/openassessment-lms.2a9563ee79e6edaee030.js similarity index 85% rename from openassessment/xblock/static/dist/openassessment-lms.070b37d817f5965d8b09.js rename to openassessment/xblock/static/dist/openassessment-lms.2a9563ee79e6edaee030.js index 353f98e4f2..0ce5a49c3f 100644 --- a/openassessment/xblock/static/dist/openassessment-lms.070b37d817f5965d8b09.js +++ b/openassessment/xblock/static/dist/openassessment-lms.2a9563ee79e6edaee030.js @@ -366,11 +366,11 @@ object-assign * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var r="function"==typeof Symbol&&Symbol.for,a=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,c=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,m=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,b=r?Symbol.for("react.memo"):60115,M=r?Symbol.for("react.lazy"):60116,_=r?Symbol.for("react.block"):60121,g=r?Symbol.for("react.fundamental"):60117,y=r?Symbol.for("react.responder"):60118,v=r?Symbol.for("react.scope"):60119;function L(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case a:switch(e=e.type){case d:case f:case o:case c:case s:case m:return e;default:switch(e=e&&e.$$typeof){case u:case p:case M:case b:case l:return e;default:return t}}case i:return t}}}function w(e){return L(e)===f}t.AsyncMode=d,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=l,t.Element=a,t.ForwardRef=p,t.Fragment=o,t.Lazy=M,t.Memo=b,t.Portal=i,t.Profiler=c,t.StrictMode=s,t.Suspense=m,t.isAsyncMode=function(e){return w(e)||L(e)===d},t.isConcurrentMode=w,t.isContextConsumer=function(e){return L(e)===u},t.isContextProvider=function(e){return L(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===a},t.isForwardRef=function(e){return L(e)===p},t.isFragment=function(e){return L(e)===o},t.isLazy=function(e){return L(e)===M},t.isMemo=function(e){return L(e)===b},t.isPortal=function(e){return L(e)===i},t.isProfiler=function(e){return L(e)===c},t.isStrictMode=function(e){return L(e)===s},t.isSuspense=function(e){return L(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===f||e===c||e===s||e===m||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===M||e.$$typeof===b||e.$$typeof===l||e.$$typeof===u||e.$$typeof===p||e.$$typeof===g||e.$$typeof===y||e.$$typeof===v||e.$$typeof===_)},t.typeOf=L},,,,,function(e,t,n){"use strict";n.r(t);n(20);var r=n(10),a=n(168);function i(e,t){for(var n=0;nthis.AUTO_SAVE_WAIT&&this.save()}},{key:"handleResponseChanged",value:function(){if(this.checkSubmissionAbility(),this.responseChanged()){var e=this.checkSaveAbility();this.previewEnabled(e),this.errorOnLastSave||this.saveStatus(gettext("Saving draft"),this.ICON_SAVING),this.baseView.unsavedWarningEnabled(!0,this.UNSAVED_WARNING_KEY,gettext("If you leave this page without saving or submitting your response, you will lose any work you have done on the response."))}this.lastChangeTime=Date.now()}},{key:"save",value:function(){var e=this;this.errorOnLastSave||this.saveStatus(gettext("Saving draft..."),this.ICON_SAVING),this.baseView.unsavedWarningEnabled(!1,this.UNSAVED_WARNING_KEY);var t=this,n=this.response();this.server.save(n).done((function(){if(t.savedResponse=n,t.checkSubmissionAbility(),t.response().every((function(e,t){return e===n[t]}))){var r=gettext("Draft saved!");t.saveStatus(r,e.ICON_SAVED),t.baseView.srReadTexts([r]),e.baseView.toggleActionError("save",null),t.errorOnLastSave=!1}})).fail((function(n){t.errorOnLastSave||(t.saveStatus(gettext("Error"),e.ICON_ERROR),t.baseView.toggleActionError("save",n)),t.errorOnLastSave=!0}))}},{key:"handleSubmitClicked",value:function(){if(this.submitEnabled(!1),!this.hasPendingUploadFiles()){var e=this,t=gettext("Confirm Submit Response"),n=gettext("You're about to submit your response for this assignment. After you submit this response, you can't change it or submit a new response.");this.confirmationDialog.confirm(t,n,(function(){return e.submit()}),(function(){return e.submitEnabled(!0)}))}}},{key:"submit",value:function(){var e=this,t=this.response();this.baseView.toggleActionError("response",null),this.server.submit(t).done((function(){e.moveToNextStep()})).fail((function(t,n){"ENOMULTI"===t?e.moveToNextStep():(n&&e.baseView.toggleActionError("submit",n),e.submitEnabled(!0))}))}},{key:"moveToNextStep",value:function(){var e=this.baseView,t=e.getUsageID();this.load(t),e.loadAssessmentModules(t),this.announceStatus=!0,e.unsavedWarningEnabled(!1,this.UNSAVED_WARNING_KEY)}},{key:"prepareUpload",value:function(e,t,n){this.files=null,this.filesType=t,this.filesUploaded=!1;for(var r=!1,a=0;athis.MAX_FILE_SIZE){this.baseView.toggleActionError("upload",gettext("Individual file size must be {max_files_mb}MB or less.").replace("{max_files_mb}",this.MAX_FILES_MB)),r=!0;break}if(!this.isUploadSupported(e[a],t)){this.baseView.toggleActionError("upload",gettext("File upload failed: unsupported file type. Only the supported file types can be uploaded. If you have questions, please reach out to the course team.")),r=!0;break}}if(this.getSavedFileCount(!1)+e.length>this.data.MAXIMUM_FILE_UPLOAD_COUNT){var i=gettext("The maximum number files that can be saved is ")+this.data.MAXIMUM_FILE_UPLOAD_COUNT;this.baseView.toggleActionError("upload",gettext(i)),r=!0}r||(this.baseView.toggleActionError("upload",null),e.length>0&&(this.files=e),this.updateFilesDescriptionsFields(e,n,t)),null===this.files&&$(this.element).find(".file__upload").prop("disabled",!0)}},{key:"updateFilesDescriptionsFields",value:function(e,t,n){var r=$(this.element).find(".files__descriptions").first(),a=null,i=null,o=null,s=null,c=null,l=null,u=!0;this.filesDescriptions=t||[],this.fileNames=[],$(r).show().html("");for(var d=0;d"),(i=$("
")).addClass("submission__file__description__label"),i.text("".concat(gettext("Describe ")+e[d].name," ").concat(gettext("(required):"))),i.appendTo(a),(o=$("
")).addClass("submission__file__description"),l=$("