From a46965ebabdf67d395d0113c0a92eac2169bc813 Mon Sep 17 00:00:00 2001 From: theahthodesen Date: Mon, 8 Jan 2024 18:05:29 +0000 Subject: [PATCH] deploy: c122069197d6835a2a385a379c14389ecd3ebc9a --- 337.f2afe7e8.iframe.bundle.js => 337.f5ac50e4.iframe.bundle.js | 2 +- ...urse-modules-CourseModules-stories.21fb6681.iframe.bundle.js | 1 + ...urse-modules-CourseModules-stories.41ddb90b.iframe.bundle.js | 1 - ...-PageNavigationButtonLinks-stories.8df222a1.iframe.bundle.js | 2 +- iframe.html | 2 +- project.json | 2 +- ...b.iframe.bundle.js => runtime~main.5d4513fb.iframe.bundle.js | 2 +- 7 files changed, 6 insertions(+), 6 deletions(-) rename 337.f2afe7e8.iframe.bundle.js => 337.f5ac50e4.iframe.bundle.js (59%) create mode 100644 components-course-modules-CourseModules-stories.21fb6681.iframe.bundle.js delete mode 100644 components-course-modules-CourseModules-stories.41ddb90b.iframe.bundle.js rename components-course-modules-page-navigation-PageNavigationButtonLinks-stories.4e18945f.iframe.bundle.js => components-course-modules-page-navigation-PageNavigationButtonLinks-stories.8df222a1.iframe.bundle.js (80%) rename runtime~main.f1f0023b.iframe.bundle.js => runtime~main.5d4513fb.iframe.bundle.js (97%) diff --git a/337.f2afe7e8.iframe.bundle.js b/337.f5ac50e4.iframe.bundle.js similarity index 59% rename from 337.f2afe7e8.iframe.bundle.js rename to 337.f5ac50e4.iframe.bundle.js index 2ef6f0c0..f74c56a0 100644 --- a/337.f2afe7e8.iframe.bundle.js +++ b/337.f5ac50e4.iframe.bundle.js @@ -1 +1 @@ -(self.webpackChunkmooc=self.webpackChunkmooc||[]).push([[337],{"./node_modules/@storybook/preset-vue3-webpack/node_modules/vue-loader/dist/exportHelper.js":(__unused_webpack_module,exports)=>{"use strict";exports.Z=(sfc,props)=>{const target=sfc.__vccOpts||sfc;for(const[key,val]of props)target[key]=val;return target}},"./src/js/settings.js":(module,__unused_webpack_exports,__webpack_require__)=>{module=__webpack_require__.nmd(module);var settings={CanvaBadgeProtocolAndHost:"https://canvabadges-beta-iktsenteret.bibsys.no",useCanvaBadge:!1,defaultNumberOfReviews:1,useDataportenGroups:!1,filterCourses:!0,filterCoursesOnAccountId:ACCOUNTID,disablePeerReviewButton:!1,principalRoleType:"Skoleleder",removeGlobalGradesLink:!0,removeGroupsLink:!0,displayProfileLeftMenu:!1,displayUserMergeButton:!0,userMergeLtiToolId:KPAS_MERGE_LTI_ID,displayGroupsTab:!1,displayDiscussionsTab:!1,displayAlertsMenuItem:!1,displayCallForAssistanceButtonInGroupDisccussions:!1,displayInboxMenu:!1,privacyPolicyLink:"https://kompetanseudirno.azureedge.net/udirdesign/privacypolicy.html?v=1_0",contactPoint:"kompetansesupport@udir.no",platformName:"UDIR - kompetanseplattform",homeOrganization:"Udir.no",aboutThePlatform:"https://kompetanseudirno.azureedge.net/udirdesign/omkompetanseudirno.html",uuStatusNb:"https://uustatus.no/nb/erklaringer/publisert/2796ebc6-161f-4dc9-9429-70d7dd136431",uuStatusNn:"https://uustatus.no/nn/erklaringer/publisert/2796ebc6-161f-4dc9-9429-70d7dd136431"};null!==module&&(module.exports=settings)},"./src/js/settingsRoot.js":(module,__unused_webpack_exports,__webpack_require__)=>{module=__webpack_require__.nmd(module);var settingsRoot={hrefQueryString:"?design=udir",hrefAmpQueryString:"&design=udir",feideEnrollRefferers:["design=udir","enroll_code","kslaring.no"],kpasApiUrl:KPASAPIURL};null!==module&&(module.exports=settingsRoot)},"./src/vue/utils/lang-utils.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{cN:()=>extractLabelForSelectedLanguage,ht:()=>getLanguageCode,YI:()=>getSelectedLanguage,t3:()=>setLanguageParameter});var settingsRoot=__webpack_require__("./src/js/settingsRoot.js"),settingsRoot_default=__webpack_require__.n(settingsRoot),settings=__webpack_require__("./src/js/settings.js"),settings_default=__webpack_require__.n(settings);const utilRoot={_env:"undefined"!=typeof ENV?ENV:{},getRoles:function getRoles(){return this._env.current_user_roles},isAuthenticated:function isAuthenticated(){return null!==this.getRoles()},getLinkToMyCourses:function getLinkToMyCourses(){return"/courses"+settingsRoot.hrefQueryString},parse_query_string:function parse_query_string(query){for(var vars=query.split("&"),query_string={},i=0;i div > div > div > div > div.ic-Login-header > div.ic-Login-header__links").hide()}return!1},isEnrollCodeParamPassed:function isEnrollCodeParamPassed(urlParamsObj){var enrollCode=urlParamsObj&&urlParamsObj.enroll_code;return void 0!==enrollCode?enrollCode:null},isLoginParamPassed:function isLoginParamPassed(urlParamsObj){return void 0!==(urlParamsObj&&urlParamsObj.login)},triggerForgotPasswordIfParamPassed:function triggerForgotPasswordIfParamPassed(){void 0!==this.urlParamsToObject().gp&&$("#login_forgot_password").click()},redirectToEnrollIfCodeParamPassed:function redirectToEnrollIfCodeParamPassed(){if(""!==document.location.search){var urlParamsObj=this.urlParamsToObject(),design=urlParamsObj&&urlParamsObj.design,newHref=null,enrollCode=this.isEnrollCodeParamPassed(urlParamsObj);enrollCode&&(newHref="/enroll/"+enrollCode,design&&(newHref+="?design="+design));var forwardTo=urlParamsObj&&urlParamsObj.forwardTo;if(forwardTo&&(newHref+=design?"&":"?",newHref+="forwardTo="+encodeURIComponent(forwardTo)),newHref)return window.location.href=newHref,!0;if(this.isLoginParamPassed(urlParamsObj)){var linkToMyCourses=this.getLinkToMyCourses();return window.location.href=linkToMyCourses,!0}}return!1},redirectToSamlIfUdirCourse:function redirectToSamlIfUdirCourse(kpasApiUrl){try{if(!this.isAuthenticated()){var currentUrl=""+window.location.pathname,currentCourseId=this.getCourseIdFromUrl(currentUrl);this.isDeepLinkToUdirCourse(currentCourseId,kpasApiUrl).then((function(result){return!!result&&(window.location="/login/saml/2",!0)}))}}catch(e){console.log(e)}},getCourseIdFromUrl:function getCourseIdFromUrl(currentUrl){var matches=currentUrl.match(/\/courses\/(\d+)/);if(null!=matches)return parseInt(matches[1],10);if(this._env.group)return this._env.group.context_id;if($("#discussion_container").size()>0){var tmp=$("#discussion_topic div.entry-content header div div.pull-left span a");if(tmp.length){var tmpHref=tmp.attr("href");if(tmpHref.length){var tmpHrefArr=tmpHref.split("/");if(3==tmpHrefArr.length)return parseInt(tmpHrefArr[2],10)}}}return null}};function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _defineProperty(obj,key,value){return(key=function _toPropertyKey(arg){var key=function _toPrimitive(input,hint){if("object"!==_typeof(input)||null===input)return input;var prim=input[Symbol.toPrimitive];if(void 0!==prim){var res=prim.call(input,hint||"default");if("object"!==_typeof(res))return res;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===hint?String:Number)(input)}(arg,"string");return"symbol"===_typeof(key)?key:String(key)}(key))in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _readOnlyError(name){throw new TypeError('"'+name+'" is read-only')}const api=((_urlToTypeMapping=[]).quizzes="Quiz",_urlToTypeMapping.assignments="Assignment",_urlToTypeMapping.discussion_topics="Discussion",_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({_ajax:"undefined"!=typeof $?$:{},_env:"undefined"!=typeof ENV?ENV:{},_location:"undefined"!=typeof document?document.location:{search:"",href:""},_uriPrefix:"/api/v1",_defaultError:function _defaultError(event,jqxhr,settings,thrownError){console.log(event,jqxhr,settings,thrownError)},_sendRequest:function _sendRequest(method){var options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},error=options.error||this._defaultError;method(this._uriPrefix+options.uri,options.params||{},options.callback).fail(error)},_get:function _get(options){var uri=this._uriPrefix+options.uri,params=options.params||{},callback=options.callback,customError=options.error;$.ajax({url:uri,type:"GET",data:params,success:function success(response){if("student_id"in params&&(response=response.map((function(el){return el.student_id=params.student_id,el}))),uri.includes("/groups/")&&uri.includes("/users")){var groupId=uri.split("/groups/");groupId[1].split("/users"),_readOnlyError("groupId"),parseInt(groupId[0]),_readOnlyError("groupId"),response=response.map((function(el){return el.group_id=groupId,el}))}callback(response)},error:function error(XMLHttpRequest,textStatus,errorThrown){console.log("Error during GET"),customError&&customError(XMLHttpRequest.responseText)}})},_post:function _post(options){this._sendRequest(this._ajax.post,options)},_put:function _put(options){var uri=this._uriPrefix+options.uri,params=options.params||{},callback=options.callback;$.ajax({url:uri,type:"PUT",data:params,success:function success(response){callback(response)},error:function error(XMLHttpRequest,textStatus,errorThrown){console.log("Error during PUT")}})},_delete:function _delete(options){var uri=this._uriPrefix+options.uri,params=options.params||{},callback=options.callback;$.ajax({url:uri,type:"DELETE",data:params,success:function success(response){callback(response)},error:function error(XMLHttpRequest,textStatus,errorThrown){console.log("Error during DELETE")}})},listModulesForCourse:function listModulesForCourse(callback,error,cid){var href="/api/v1/courses/".concat(cid,"/modules?per_page=100");$.getJSON(href,(function(modules){var noOfModules=modules.length,asyncsDone=0;modules.forEach((function(module,index){var j,href="/api/v1/courses/".concat(cid,"/modules/").concat(module.id,"/items?per_page=100");$.getJSON(href,(j=index,function(items){modules[j].items=items,++asyncsDone===noOfModules&&callback(modules)}))}))}))},getCurrentModuleItemId:function getCurrentModuleItemId(){var moduleId,relativeUrl=location.pathname;if(/\/courses\/\d+\/modules\/items\/\d+$/.test(relativeUrl)){var n=relativeUrl.lastIndexOf("/");moduleId=relativeUrl.substring(n+1)}else{var q=""+this._location.search;if(void 0===q||-1==q.indexOf("module_item_id"))return null;-1!=(moduleId=q.substring(q.indexOf("module_item_id")+14+1,q.length)).indexOf("&")&&(moduleId=moduleId.substring(0,moduleId.indexOf("&")))}return parseInt(moduleId,10)},getCurrentTypeAndContentId:function getCurrentTypeAndContentId(){var type=null,contentId=null;if(/\/courses\/\d+\/\w+\/\.*/.test(""+this._location.pathname)){var tmp=this._location.pathname.split("/");tmp.length>=4&&(type=_urlToTypeMapping[tmp[3]])}if(/\/courses\/\d+\/\w+\/\d+/.test(""+this._location.pathname)){var _tmp=this._location.pathname.split("/");_tmp.length>=5&&(contentId=parseInt(_tmp[4],10))}return{contentId,type}},getAllCourses:function getAllCourses(_callback,error){this._get({callback:function callback(courses){var filteredCourses=courses.filter(util.filterSearchAllCourse);_callback(filteredCourses)},error,uri:"/search/all_courses",params:{per_page:999}})},getAllPublicCourses:function getAllPublicCourses(_callback2,error){this._get({callback:function callback(courses){var filteredCourses=courses.filter(util.filterSearchAllCourse);_callback2(filteredCourses)},error,uri:"/search/all_courses?open_enrollment_only=true",params:{per_page:999}})},getEnrolledCourses:function getEnrolledCourses(_callback3,error){if(!util.isAuthenticated())return _callback3([]),!1;this._get({callback:function callback(courses){if(settings_default().filterCourses){var filteredCourses=courses.filter(util.filterCourse);_callback3(filteredCourses)}else _callback3(courses)},error,uri:"/courses?include[]=public_description",params:{include:["syllabus_body","course_progress"],per_page:"100"}})},getModulesForCurrentCourse:function getModulesForCurrentCourse(callback,error){var courseId=this.getCurrentCourseId();this.listModulesForCourse(callback,error,courseId)},getModulesForCourseId:function getModulesForCourseId(callback,error,courseId){this._get({callback,error,uri:"/courses/".concat(courseId,"/modules"),params:{per_page:999}})},getModulesForCourseIdIncludeItems:function getModulesForCourseIdIncludeItems(courseId,callback,error){this._get({callback,error,uri:"/courses/".concat(courseId,"/modules?include[]=items"),params:{per_page:999}})},getItemsForModuleId:function getItemsForModuleId(callback,error,courseId,moduleId,params){this._get({callback,error,uri:"/courses/".concat(courseId,"/modules/").concat(moduleId,"/items"),params})},getCurrentCourseId:function getCurrentCourseId(){var currentUrl=""+this._location.pathname;return utilRoot.getCourseIdFromUrl(currentUrl)},getModuleItemSequence:function getModuleItemSequence(courseId,moduleItemId,_callback4,error){this._get({callback:function callback(moduleItemSequence){_callback4(courseId,moduleItemSequence)},error,uri:"/courses/".concat(courseId,"/module_item_sequence"),params:{asset_id:moduleItemId,asset_type:"ModuleItem"}})},getCourse:function getCourse(courseId,callback,error){this._get({callback,error,uri:"/courses/".concat(courseId,"?include[]=self_enrollment_code"),params:{}})},isGroupDiscussion:function isGroupDiscussion(courseId,contentId,callback){void 0!==ENV.DISCUSSION.IS_GROUP?callback(ENV.DISCUSSION.IS_GROUP):this.getDiscussionTopic(courseId,contentId,(function(discussion){callback(!!discussion.group_category_id)}))},getCurrentGroupId:function getCurrentGroupId(){var matches=(""+this._location.pathname).match(/\/groups\/(\d+)/);return null!=matches?parseInt(matches[1],10):null},getGroup:function getGroup(groupId,callback,error){this._get({callback,error,uri:"/groups/".concat(groupId),params:{}})},getGroupMembers:function getGroupMembers(groupId,callback,error){this._get({callback,error,uri:"/groups/".concat(groupId,"/users"),params:{include:["avatar_url"],per_page:999}})},getCurrentModuleForItemOrTypeAndContentId:function getCurrentModuleForItemOrTypeAndContentId(moduleItemId,typeAndContentId,callback,error){this.getModulesForCurrentCourse((function(modules){for(var bCurrentItemFound=!1,currentHeaderItem=null,i=0;i=5&&(groupTopicId=tmp[4],groupId=tmp[2]),null!=groupTopicId){var _this=this;this.getSpecificGroupDiscussionTopic(groupId,groupTopicId,(function(groupDiscussion){_this.getUserGroups((function(groups){for(var i=0;i]+)>")[1];that._get({callback:that._getGroupsForAccountHelper(accumulatedGroups,callback,error),error,uri:fullURI.split("api/v1")[1],params:{}})}}},getGroupsForAccount:function getGroupsForAccount(account,callback,error){this._get({callback:this._getGroupsForAccountHelper([],callback,error),error,uri:"/accounts/".concat(account,"/groups"),params:{per_page:999}})},getGroupCategory:function getGroupCategory(categoryID,callback,error){this._get({callback,error,uri:"/group_categories/".concat(categoryID),params:{}})},getGroupsInCategory:function getGroupsInCategory(categoryID,callback,error){this._get({callback,error,uri:"/group_categories/".concat(categoryID,"/groups"),params:{per_page:999}})},getGroupsInCourse:function getGroupsInCourse(courseID,callback,error){this._get({callback,error,uri:"/courses/".concat(courseID,"/groups"),params:{per_page:999}})},getUserGroups:function getUserGroups(callback,error){this._get({callback,error,uri:"/users/self/groups",params:{per_page:999}})},getUserGroupsForCourse:function getUserGroupsForCourse(courseId,callback,error){this.getUserGroups((function(groups){for(var usersGroups=[],i=0;i