text: webpackJsonp([8],{"+m2I":function(module,exports,e){(function(t){var r,n;r=[e,exports,module,e("U7vG"),e("DKY4"),e("JZCc"),e("qki4"),e("80Yh"),e("XHxn"),e("TExO"),e("VMwg"),e("Fai8")],void 0!==(n=function(require,exports,module){"use strict";function _defaults(e,t){for(var r=Object.getOwnPropertyNames(t),n=0;n<r.length;n++){var o=r[n],s=Object.getOwnPropertyDescriptor(t,o);s&&s.configurable&&void 0===e[o]&&Object.defineProperty(e,o,s)}return e}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):_defaults(e,t))}var t,r,n=e("U7vG"),o=e("DKY4"),s=e("JZCc"),i=e("qki4"),a=e("80Yh"),l=e("XHxn"),c=l.getWeekDiscussionsUrl,u=e("TExO"),p=e("VMwg");e("Fai8");var d=(r=t=function(e){function DiscussionsWeekHeroUnit(){var t,r,n;_classCallCheck(this,DiscussionsWeekHeroUnit);for(var o=arguments.length,s=Array(o),i=0;i<o;i++)s[i]=arguments[i];return t=r=_possibleConstructorReturn(this,e.call.apply(e,[this].concat(s))),r.goToForum=function(){r.context.router.push(c(r.props.weekNumber))},n=t,_possibleConstructorReturn(r,n)}return _inherits(DiscussionsWeekHeroUnit,e),DiscussionsWeekHeroUnit.prototype.render=function render(){var e=this.props,t=e.weekNumber,r=e.isLoading,l=e.lastAnsweredAt,c=e.forumQuestionCount,u=e.title,d=e.description;if(!t)return null;return n.createElement(i,{className:"rc-DiscussionsWeekHeroUnit",label:p("This Week's Forum")},r?n.createElement("div",{className:"message align-horizontal-center"},n.createElement("i",{className:"cif-spinner cif-spin cif-2x"})):n.createElement("div",{className:"horizontal-box vertical-when-mobile"},n.createElement("div",{className:"flex-1 left-column"},n.createElement("div",{className:"headline-4-text"},u),n.createElement(s,{cml:d}),n.createElement(o,{lastAnsweredAt:l,forumQuestionCount:c})),n.createElement("div",{className:"align-self-center"},n.createElement(a,{className:"primary cozy",onClick:this.goToForum,trackingName:"discussions_hero_unit"},p("Go to forum")))))},DiscussionsWeekHeroUnit}(n.Component),t.propTypes={title:n.PropTypes.string.isRequired,description:u.isRequired,weekNumber:n.PropTypes.number,isLoading:n.PropTypes.bool,lastAnsweredAt:n.PropTypes.number,forumQuestionCount:n.PropTypes.number},t.contextTypes={router:n.PropTypes.object.isRequired},r);module.exports=d}.apply(exports,r))&&(module.exports=n)}).call(exports,e("U7vG"))},"0nq6":function(module,exports,e){var t,r;t=[e,exports,module,e("HjFm")],void 0!==(r=function(require,exports,module){"use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defaults(e,t){for(var r=Object.getOwnPropertyNames(t),n=0;n<r.length;n++){var o=r[n],s=Object.getOwnPropertyDescriptor(t,o);s&&s.configurable&&void 0===e[o]&&Object.defineProperty(e,o,s)}return e}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):_defaults(e,t))}var t=e("HjFm"),r=_interopRequireDefault(t),n=function guid(){var e=function s4(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()},o=function(e){function ClientSkill(t){_classCallCheck(this,ClientSkill);var r=[],o="client~"+n();return _possibleConstructorReturn(this,e.call(this,{id:o,name:t,aliases:r}))}return _inherits(ClientSkill,e),ClientSkill}(r.default);module.exports=o}.apply(exports,t))&&(module.exports=r)},"1JFZ":function(module,exports,e){var t,r;t=[e,exports,module,e("HjFm"),e("N3HY"),e("v/g5")],void 0!==(r=function(require,exports,module){"use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var t=e("HjFm"),r=_interopRequireDefault(t),n=e("N3HY"),o=_interopRequireDefault(n),s=e("v/g5"),i=_interopRequireDefault(s);exports.loadModuleSkills=function(e,t){var r=t.branchId,n=t.moduleId;i.default.byCourseBranchAndModule(r,n).then(function(t){var r=new o.default(t),s=r.id,i=r.existingSkills,a=r.suggestedSkills;e.dispatch("LOAD_MODULE_SKILLS",{id:s,moduleId:n,existingSkills:i,suggestedSkills:a})})},exports.updateExistingSkills=function(e,t){var r=t.id,n=t.skills,s=t.callback;i.default.put(r,n).then(function(t){var n=new o.default(t),i=n.existingSkills,a=n.suggestedSkills;e.dispatch("UPDATE_SKILLS",{id:r,existingSkills:i,suggestedSkills:a}),s(i,a)})}}.apply(exports,t))&&(module.exports=r)},"1Jlv":function(module,exports){},"1xXH":function(module,exports,e){(function(t){var r,n;r=[e,exports,module,e("U7vG"),e("9eZc"),e("jzwu"),e("ndE2"),e("BzAT")],void 0!==(n=function(require,exports,module){"use strict";var t=e("U7vG"),r=e("9eZc"),n=e("jzwu"),o=e("ndE2");e("BzAT");var s=function PlainHonorsLessonsMessage(){return t.createElement("div",{className:"rc-PlainHonorsLessonsMessage horizontal-box align-items-vertical-center"},t.createElement(r,{name:"honors",size:"lg",className:"od-plain-honors-lessons-message-icon"}),t.createElement("strong",null,o("Optional Honors Content")),t.createElement(n,null))};module.exports=s}.apply(exports,r))&&(module.exports=n)}).call(exports,e("U7vG"))},"2O5n":function(module,exports,e){var t=e("KSwK");"string"==typeof t&&(t=[[module.i,t,""]]);var r,n={};n.transform=void 0;var o=e("MTIv")(t,n);t.locals&&(module.exports=t.locals)},"3Jty":function(module,exports){exports.default={"es":true,"fr":true,"pt":true,"ru":true,"zh":true,"zh-hk":"zh-tw","zh-mo":"zh-tw","zh-tw":true}},"3K3/":function(module,exports,e){(function(t){var r,n;r=[e,exports,module,e("U7vG"),e("ndE2")],void 0!==(n=function(require,exports,module){"use strict";function _defaults(e,t){for(var r=Object.getOwnPropertyNames(t),n=0;n<r.length;n++){var o=r[n],s=Object.getOwnPropertyDescriptor(t,o);s&&s.configurable&&void 0===e[o]&&Object.defineProperty(e,o,s)}return e}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):_defaults(e,t))}var t=e("U7vG"),r=e("ndE2"),n=function(e){function NoSessionBox(){return _classCallCheck(this,NoSessionBox),_possibleConstructorReturn(this,e.apply(this,arguments))}return _inherits(NoSessionBox,e),NoSessionBox.prototype.render=function render(){return t.createElement("div",{className:"rc-NoSessionBox rc-EnrollBox cozy od-container card-rich-interaction"},t.createElement("div",{className:"vertical-box align-items-absolute-center styleguide"},t.createElement("h4",{className:"color-primary-text no-sessions-available"},r("There are no sessions available for this course.")),t.createElement("p",null,r("Check back later for updates about upcoming sessions."))))},NoSessionBox}(t.Component);module.exports=n}.apply(exports,r))&&(module.exports=n)}).call(exports,e("U7vG"))},"3NMT":function(module,exports){exports.default={"es":true,"fr":true,"pseudo":true,"pt":true,"ru":true,"tr":true,"zh":true,"zh-hk":"zh-tw","zh-mo":"zh-tw","zh-tw":true}},"3Q7Y":function(module,exports,e){var t=e("6dxK");"string"==typeof t&&(t=[[module.i,t,""]]);var r,n={};n.transform=void 0;var o=e("MTIv")(t,n);t.locals&&(module.exports=t.locals)},"3ty2":function(module,exports,e){var t=e("LzwN");"string"==typeof t&&(t=[[module.i,t,""]]);var r,n={};n.transform=void 0;var o=e("MTIv")(t,n);t.locals&&(module.exports=t.locals)},"3wL8":function(module,exports){},"5Nq3":function(module,exports){},"5zNU":function(module,exports,e){var t,r;t=[e,exports,module],void 0!==(r=function(require,exports,module){"use strict";module.exports={PEER_REVIEW_SUGGEST_NEXT_SESSION_AFTER_DAYS:7}}.apply(exports,t))&&(module.exports=r)},"6MWU":function(module,exports,e){(function(t){var r,n;r=[e,exports,module,e("U7vG"),e("8k/k"),e("MCrT"),e("D8eL"),e("vO0t"),e("3K3/"),e("n/l+"),e("ssNk"),e("SRBf"),e("H+ns"),e("wPZt")],void 0!==(n=function(require,exports,module){"use strict";function _defaults(e,t){for(var r=Object.getOwnPropertyNames(t),n=0;n<r.length;n++){var o=r[n],s=Object.getOwnPropertyDescriptor(t,o);s&&s.configurable&&void 0===e[o]&&Object.defineProperty(e,o,s)}return e}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):_defaults(e,t))}var t,r,n=e("U7vG"),o=e("8k/k"),s=e("MCrT"),i=e("D8eL"),a=e("vO0t"),l=e("3K3/"),c=e("n/l+"),u=e("ssNk"),p=e("SRBf"),d=p.hasPassedCourse,f=e("H+ns");e("wPZt");var h=(r=t=function(e){function EnrollBox(){return _classCallCheck(this,EnrollBox),_possibleConstructorReturn(this,e.apply(this,arguments))}return _inherits(EnrollBox,e),EnrollBox.prototype.render=function render(){var e=this.props.isSessionAvailable?n.createElement(s,null):n.createElement(l,null);return o.isAuthenticatedUser()?this.props.hasPassedCourse?n.createElement(u,null):!this.props.isSessionAvailable&&this.props.isPreEnrollEnabled?n.createElement(c,null):this.props.isSessionsEnabled?e:n.createElement(i,null):this.props.isCapstone||this.props.isSessionAvailable?e:n.createElement(a,null)},EnrollBox}(n.Component),t.propTypes={isCapstone:n.PropTypes.bool.isRequired,isPreEnrollEnabled:n.PropTypes.bool.isRequired,hasPassedCourse:n.PropTypes.bool.isRequired,isSessionAvailable:n.PropTypes.bool,isSessionsEnabled:n.PropTypes.bool},r);module.exports=f(h,{requiredStores:["S12nStore","CourseStore","SessionStore","VerificationStore"],lazyStores:["CourseViewGradeStore"]},function(e,t){var r=e.S12nStore,n=e.CourseStore,o=e.CourseViewGradeStore,s=e.SessionStore,i=e.VerificationStore,a=r.getS12n(),l=n.getCourseId();return{isPreEnrollEnabled:n.isPreEnrollEnabledForUser(),isCapstone:!!a&&a.isCapstone(l),hasPassedCourse:d(o,i),isSessionAvailable:s.isSessionAvailable(),isSessionsEnabled:s.isSessionsEnabled()}})}.apply(exports,r))&&(module.exports=n)}).call(exports,e("U7vG"))},"6dxK":function(module,exports){},"6y23":function(module,exports,e){var t,r;t=[e,exports,module,e("VAsl")],void 0!==(r=function(require,exports,module){"use strict";function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var t=e("VAsl"),r=function(){function StoredLearningObjective(e){_classCallCheck(this,StoredLearningObjective),this.id=e.id,this.category="string"==typeof e.category?t.get(e.category):e.category,this.description=e.description||""}return StoredLearningObjective.prototype.getDescription=function getDescription(){return this.description},StoredLearningObjective.prototype.toJson=function toJson(){return{category:this.category.value,description:this.description}},StoredLearningObjective}();module.exports=r}.apply(exports,t))&&(module.exports=r)},"7fiC":function(module,exports,e){var t=e("pWVE");"string"==typeof t&&(t=[[module.i,t,""]]);var r,n={};n.transform=void 0;var o=e("MTIv")(t,n);t.locals&&(module.exports=t.locals)},"8UFK":function(module,exports){},"9Drh":function(module,exports,e){var t=e("3NMT"),r=t.default?t.default:{},n=e("zQM/"),o=n(r);o.getLocale=function(){return"en"},module.exports=o},ANIw:function(module,exports,e){(function(t){var r,n;r=[e,exports,module,e("U7vG"),e("smTl"),e("vv5O"),e("/tNY"),e("vPxY"),e("v3P8")],void 0!==(n=function(require,exports,module){"use strict";function _defaults(e,t){for(var r=Object.getOwnPropertyNames(t),n=0;n<r.length;n++){var o=r[n],s=Object.getOwnPropertyDescriptor(t,o);s&&s.configurable&&void 0===e[o]&&Object.defineProperty(e,o,s)}return e}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):_defaults(e,t))}var t,r,n,o,s,i,a=e("U7vG"),l=e("smTl"),c=e("vv5O"),u=e("/tNY"),p=e("vPxY");e("v3P8");var d=(r=t=function(e){function ItemGroupLessonCollectionBody(){return _classCallCheck(this,ItemGroupLessonCollectionBody),_possibleConstructorReturn(this,e.apply(this,arguments))}return _inherits(ItemGroupLessonCollectionBody,e),ItemGroupLessonCollectionBody.prototype.render=function render(){var e=this.props,t=e.itemGroup,r=e.isNextItemChoiceStarted,n=e.nextItemMetadata;return a.createElement("div",{className:"card-rich-interaction od-lesson-collection-container"},t.getChoices().map(function(e,t){return a.createElement("div",{className:"od-lesson-collection-element",key:e.getId()},a.createElement(l,{name:t+1+". "+e.getName(),description:e.getDescription(),itemMetadatas:e.getItemMetadatas().toArray(),showResumeButtonOnItemMetadata:r?n:void 0,hideDeadline:!0}))}))},ItemGroupLessonCollectionBody}(a.Component),t.propTypes={itemGroup:a.PropTypes.instanceOf(u),isNextItemChoiceStarted:a.PropTypes.bool.isRequired,nextItemMetadata:a.PropTypes.instanceOf(p)},r),f=(o=n=function(e){function PlainLessonCollectionBody(){return _classCallCheck(this,PlainLessonCollectionBody),_possibleConstructorReturn(this,e.apply(this,arguments))}return _inherits(PlainLessonCollectionBody,e),PlainLessonCollectionBody.prototype.render=function render(){var e=this.props,t=e.lessons,r=e.isNextItemLessonStarted,n=e.nextItemMetadata;return a.createElement("div",{className:"card-rich-interaction od-lesson-collection-container"},t.map(function(e){var t=n&&n.getLessonId()===e.getId()&&!r;return a.createElement("div",{className:"od-lesson-collection-element",key:e.getId()},a.createElement(l,{name:e.getName(),itemMetadatas:e.getItemMetadatas().toArray(),showStartButtonLinkingToItemMetadata:t?n:void 0,showResumeButtonOnItemMetadata:t?void 0:n}))}))},PlainLessonCollectionBody}(a.Component),n.propTypes={lessons:a.PropTypes.arrayOf(a.PropTypes.instanceOf(c)),isNextItemLessonStarted:a.PropTypes.bool.isRequired,nextItemMetadata:a.PropTypes.instanceOf(p)},o),h=(i=s=function(e){function LessonCollectionBody(){return _classCallCheck(this,LessonCollectionBody),_possibleConstructorReturn(this,e.apply(this,arguments))}return _inherits(LessonCollectionBody,e),LessonCollectionBody.prototype.render=function render(){var e=this.props,t=e.itemGroup,r=e.lessons;return a.createElement("div",{className:"rc-LessonCollectionBody"},t&&a.createElement(d,{itemGroup:t,isNextItemChoiceStarted:this.props.isNextItemChoiceStarted,nextItemMetadata:this.props.nextItemMetadata}),r&&a.createElement(f,{lessons:r,isNextItemLessonStarted:this.props.isNextItemLessonStarted,nextItemMetadata:this.props.nextItemMetadata}))},LessonCollectionBody}(a.Component),s.propTypes={itemGroup:a.PropTypes.instanceOf(u),lessons:a.PropTypes.arrayOf(a.PropTypes.instanceOf(c)),isNextItemChoiceStarted:a.PropTypes.bool.isRequired,isNextItemLessonStarted:a.PropTypes.bool.isRequired,nextItemMetadata:a.PropTypes.instanceOf(p)},i);module.exports=h}.apply(exports,r))&&(module.exports=n)}).call(exports,e("U7vG"))},AZpL:function(module,exports,e){(function(t){var r,n;r=[e,exports,module,e("U7vG")],void 0!==(n=function(require,exports,module){"use strict";var t=e("U7vG");module.exports=t.PropTypes.shape({photo:t.PropTypes.string,fullName:t.PropTypes.string})}.apply(exports,r))&&(module.exports=n)}).call(exports,e("U7vG"))},Afkj:function(module,exports,e){(function(t){var r,n;r=[e,exports,module,e("U7vG"),e("8k/k"),e("H+ns"),e("9sNh"),e("dfjH")],void 0!==(n=function(require,exports,module){"use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _interopRequireWildcard(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function _defaults(e,t){for(var r=Object.getOwnPropertyNames(t),n=0;n<r.length;n++){var o=r[n],s=Object.getOwnPropertyDescriptor(t,o);s&&s.configurable&&void 0===e[o]&&Object.defineProperty(e,o,s)}return e}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):_defaults(e,t))}var t=e("U7vG"),r=_interopRequireWildcard(t),n=e("8k/k"),o=_interopRequireDefault(n),s=e("H+ns"),i=_interopRequireDefault(s),a=e("9sNh"),l=_interopRequireDefault(a),c=e("dfjH");module.exports=function waitForCoursePermissions(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.includeMentors,n=void 0===t||t,s=e.includeSuperusers,a=void 0===s||s,u=e.includeInstructors,p=void 0===u||u,d=e.includeTeachingStaff,f=void 0===d||d;return function(e){var t,s,u=e.displayName||e.name,d=(s=t=function(t){function WaitForCoursePermissionsWrapper(){var e,r,n;_classCallCheck(this,WaitForCoursePermissionsWrapper);for(var o=arguments.length,s=Array(o),i=0;i<o;i++)s[i]=arguments[i];return e=r=_possibleConstructorReturn(this,t.call.apply(t,[this].concat(s))),r.state={},n=e,_possibleConstructorReturn(r,n)}return _inherits(WaitForCoursePermissionsWrapper,t),WaitForCoursePermissionsWrapper.prototype.render=function render(){var t=this.props.courseRole;if(a&&o.default.isSuperuser()||n&&t===c.MENTOR||p&&t===c.INSTRUCTOR||f&&t===c.TEACHING_STAFF)return r.createElement(e,Object.assign({},this.props));return null},WaitForCoursePermissionsWrapper}(r.Component),t.displayName=u+"WithEpicConnector",t.propTypes={courseRole:r.PropTypes.string.isRequired},t.contextTypes={router:r.PropTypes.object},t.defaultProps={},s);return(0,l.default)(d,e),(0,i.default)(["CourseMembershipStore"],function(e,t){return{courseRole:e.CourseMembershipStore.getCourseRole()}})(d)}}}.apply(exports,r))&&(module.exports=n)}).call(exports,e("U7vG"))},BvrF:function(module,exports,e){var t,r;t=[e,exports,module,e("go2y"),e("b2UT"),e("SMj8"),e("L9Kq")],void 0!==(r=function(require,exports,module){"use strict";function handleMessage(e,t){var r=e.find(function(e){return e.context.definition.position===t});return r?r.body:""}function handleResponse(e,t,r,n){var s=handleMessage(t.elements,r)||"",i=t.linked["instructors.v1"],a=e.getStore("CourseStore");if(!s)if(n){var l=a.getModule(n).get("description");l&&(s="<p>"+l+"</p>")}else s="";return i&&0!==i.length||(i=a.getMetadata().get("instructors").map(function(e){return e.toJSON()})),i.forEach(function(e){if(!e.fullName){var t=o({prefix:e.prefixName,first:e.firstName,middle:e.middleName,last:e.lastName,suffix:e.suffixName});e.fullName=""+t}return e}),{message:s,instructors:i}}var t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},r=e("go2y"),n=e("b2UT"),o=e("SMj8"),s=e("L9Kq"),i=s.getCourseMessage,a=s.getModuleMessage,l=function getTutorialViewsKey(e){return"dismissedWelcomeMessage."+e};module.exports={getModuleMessage:function getModuleMessage(e,r){var n=r.courseId,o=r.moduleId;return a(n,o).then(function(r){e.dispatch("LOAD_MODULE_MESSAGE",t({},handleResponse(e,r,"start",o),{moduleId:o}))})},getWelcomeMessage:function getWelcomeMessage(e,t){var r=t.courseId;return i(r).then(function(t){e.dispatch("LOAD_WELCOME_MESSAGE",handleResponse(e,t,"start"))})},getThankYouMessage:function getThankYouMessage(e,t){var r=t.courseId;return i(r).then(function(t){e.dispatch("LOAD_THANKYOU_MESSAGE",handleResponse(e,t,"end"))})},getIsDismissed:function getIsDismissed(e,t){var o=t.isModule,s=t.courseId;if(!e.getStore("InstructorMessageStore").hasLoaded()){if(o)return e.dispatch("LOAD_IS_DISMISSED",{courseId:s,isDismissed:!1}),r();return n.hasKey(l(s)).then(function(t){e.dispatch("LOAD_IS_DISMISSED",{courseId:s,isDismissed:t})})}return r()},setIsDismissed:function setIsDismissed(e,t){var r=t.courseId;return e.dispatch("LOAD_IS_DISMISSED",{courseId:r,isDismissed:!0}),n.storeKey(l(r))}}}.apply(exports,t))&&(module.exports=r)},BzAT:function(module,exports,e){var t=e("CS2A");"string"==typeof t&&(t=[[module.i,t,""]]);var r,n={};n.transform=void 0;var o=e("MTIv")(t,n);t.locals&&(module.exports=t.locals)},CS2A:function(module,exports){},"D/hB":function(module,exports,e){(function(t){var r,n;r=[e,exports,module,e("U7vG"),e("80Yh"),e("aBME"),e("HjFm"),e("IExl"),e("G894")],void 0!==(n=function(require,exports,module){"use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _interopRequireWildcard(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function _defaults(e,t){for(var r=Object.getOwnPropertyNames(t),n=0;n<r.length;n++){var o=r[n],s=Object.getOwnPropertyDescriptor(t,o);s&&s.configurable&&void 0===e[o]&&Object.defineProperty(e,o,s)}return e}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):_defaults(e,t))}var t,r,n=e("U7vG"),o=_interopRequireWildcard(n),s=e("80Yh"),i=_interopRequireDefault(s),a=e("aBME"),l=_interopRequireDefault(a),c=e("HjFm"),u=_interopRequireDefault(c),p=e("IExl"),d=_interopRequireDefault(p),f=e("G894"),h=(r=t=function(e){function SkillsEditing(){return _classCallCheck(this,SkillsEditing),_possibleConstructorReturn(this,e.apply(this,arguments))}return _inherits(SkillsEditing,e),SkillsEditing.prototype.render=function render(){var e=this.props,t=e.existingSkills,r=e.suggestedSkills,n=e.onSave,s=e.onCancel,a=e.onChange,c=10,u=10===t.length;return o.createElement("div",{className:"rc-SkillsEditing"},o.createElement(l.default,{onChange:a,maxItems:10,existingSkills:t,suggestedSkills:r}),o.createElement("div",{className:"body-1-text",style:{marginTop:"8px"}},!u&&o.createElement("span",{className:"color-secondary-text"},o.createElement(f.FormattedMessage,{message:(0,d.default)("Add up to {maxSkills} skills"),maxSkills:10})),u&&o.createElement("span",{className:"color-warn-dark"},(0,d.default)("You've reached the maximum number of skills allowed."))),o.createElement("div",{className:"horizontal-box align-items-right",style:{marginTop:"10px"}},o.createElement("button",{className:"secondary",style:{marginRight:"10px"},onClick:s},(0,d.default)("Cancel")),o.createElement(i.default,{trackingName:"save_skills",className:"primary",onClick:n},(0,d.default)("Save"))))},SkillsEditing}(o.Component),t.propTypes={existingSkills:o.PropTypes.arrayOf(o.PropTypes.instanceOf(u.default)).isRequired,suggestedSkills:o.PropTypes.arrayOf(o.PropTypes.instanceOf(u.default)).isRequired,onSave:o.PropTypes.func.isRequired,onCancel:o.PropTypes.func.isRequired,onChange:o.PropTypes.func.isRequired},r);module.exports=h}.apply(exports,r))&&(module.exports=n)}).call(exports,e("U7vG"))},D8eL:function(module,exports,e){(function(t){var r,n;r=[e,exports,module,e("L+Qk"),e("U7vG"),e("PHKg"),e("qtt+"),e("CoQL"),e("Wk5A"),e("lP3w"),e("ndE2"),e("Y2SO")],void 0!==(n=function(require,exports,module){"use strict";var t=e("L+Qk"),r=e("U7vG"),n=e("PHKg"),o=e("qtt+"),s=e("CoQL"),i=e("Wk5A"),a=i.getPriceForVC,l=e("lP3w"),c=e("ndE2"),u=e("Y2SO"),p=r.createClass({displayName:"OnDemandBox",propTypes:{hasS12nLoaded:r.PropTypes.bool.isRequired,s12n:r.PropTypes.instanceOf(o),courseId:r.PropTypes.string,isTakingS12n:r.PropTypes.bool,isEnrolled:r.PropTypes.bool},contextTypes:{router:r.PropTypes.object.isRequired},getInitialState:function getInitialState(){return{price:null}},componentDidMount:function componentDidMount(){this.props.isTakingS12n&&!this.props.s12n.ownsCourse(this.props.courseId)&&this.loadPrice()},componentWillReceiveProps:function componentWillReceiveProps(e){e.isTakingS12n&&!e.s12n.ownsCourse(this.props.courseId)&&this.loadPrice()},loadPrice:function loadPrice(){var e=this;a({courseId:this.props.courseId}).then(function(t){return e.setState({price:t})}).done()},render:function render(){if(!this.props.hasS12nLoaded)return null;var e=t("rc-EnrollBox","rc-OnDemandBox","cozy","od-container",{"theme-dark":!this.props.isEnrolled,"card-rich-interaction":this.props.isEnrolled});return r.createElement("div",null,r.createElement("div",{className:e},r.createElement("div",{className:"vertical-box styleguide"},r.createElement("h3",{className:"color-primary-text"},c(this.props.isEnrolled?"You're enrolled in this course":"Start learning now")),!s(this.props.courseId)&&r.createElement("p",{className:"color-primary-text"},c("This course is self-paced, with suggested deadlines to help you keep on track.")),this.state.price&&r.createElement("h3",{className:"price color-primary-text"},r.createElement(l,{value:this.state.price.getDisplayAmount(),currency:this.state.price.getDisplayCurrencyCode()})),r.createElement("div",{className:"horizontal-box align-items-right"},r.createElement(n,null)))))}});module.exports=u(p,["CourseStore","S12nStore","CourseMembershipStore"],function(e,t){var r=e.CourseStore,n=e.S12nStore,o=e.CourseMembershipStore,s=n.getS12n(),i=r.getCourseId();return{hasS12nLoaded:n.hasLoaded(),courseId:i,s12n:s,isTakingS12n:s&&s.isTakingS12n(),isEnrolled:o.isEnrolled()}}),module.exports.BaseComp=p}.apply(exports,r))&&(module.exports=n)}).call(exports,e("U7vG"))},DKY4:function(module,exports,e){(function(t,r){var n,o;n=[e,exports,module,e("wu4F"),e("U7vG"),e("G894"),e("VMwg")],void 0!==(o=function(require,exports,module){"use strict";function _defaults(e,t){for(var r=Object.getOwnPropertyNames(t),n=0;n<r.length;n++){var o=r[n],s=Object.getOwnPropertyDescriptor(t,o);s&&s.configurable&&void 0===e[o]&&Object.defineProperty(e,o,s)}return e}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):_defaults(e,t))}var t,r,n=e("wu4F"),o=e("U7vG"),s=e("G894"),i=s.FormattedMessage,a=e("VMwg"),l=(r=t=function(e){function WeekStats(){return _classCallCheck(this,WeekStats),_possibleConstructorReturn(this,e.apply(this,arguments))}return _inherits(WeekStats,e),WeekStats.prototype.render=function render(){var e=this.props,t=e.lastAnsweredAt,r=e.forumQuestionCount;return o.createElement("div",{className:"rc-WeekStats caption-text color-secondary-text"},"number"==typeof r&&o.createElement(i,{message:a("{forumQuestionCount} threads"),forumQuestionCount:r}),!!t&&o.createElement("span",null,"number"==typeof r&&o.createElement("span",null," · "),o.createElement(i,{message:a("Last post {timeSinceLastPost}"),timeSinceLastPost:n(t).fromNow()})))},WeekStats}(o.Component),t.propTypes={lastAnsweredAt:o.PropTypes.number,forumQuestionCount:o.PropTypes.number},r);module.exports=l}.apply(exports,n))&&(module.exports=o)}).call(exports,e("U7vG"),e("wu4F"))},"DOA/":function(module,exports,e){(function(t){var r,n;r=[e,exports,module,e("U7vG"),e("IVbJ"),e("6y23"),e("ja+c"),e("od7v"),e("umVX")],void 0!==(n=function(require,exports,module){"use strict";function _defaults(e,t){for(var r=Object.getOwnPropertyNames(t),n=0;n<r.length;n++){var o=r[n],s=Object.getOwnPropertyDescriptor(t,o);s&&s.configurable&&void 0===e[o]&&Object.defineProperty(e,o,s)}return e}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):_defaults(e,t))}var t,r,n=e("U7vG"),o=e("IVbJ"),s=e("6y23"),i=e("ja+c"),a=e("od7v");e("umVX");var l=(r=t=function(e){function ModuleLearningObjectivesList(){return _classCallCheck(this,ModuleLearningObjectivesList),_possibleConstructorReturn(this,e.apply(this,arguments))}return _inherits(ModuleLearningObjectivesList,e),ModuleLearningObjectivesList.prototype.render=function render(){var e=this.props.objectives;if(0===e.length)return null;return n.createElement(i,{className:"rc-ModuleLearningObjectivesList",showToggle:!0,cardSpacing:"cozy",isInitiallyCollapsed:!0},n.createElement("h6",{className:"headline-1-text"},a("Learning Objectives")),n.createElement("ul",{className:"nostyle"},e.map(function(e){return n.createElement("li",{key:e.id},n.createElement(o,{objective:e}))})))},ModuleLearningObjectivesList}(n.Component),t.propTypes={objectives:n.PropTypes.arrayOf(n.PropTypes.instanceOf(s)).isRequired},r);module.exports=l}.apply(exports,r))&&(module.exports=n)}).call(exports,e("U7vG"))},EG2O:function(module,exports,e){var t,r;t=[e,exports,module,e("6q23")],void 0!==(r=function(require,exports,module){"use strict";var t=e("6q23"),r=t.isForumsBlacklisted;module.exports=function shouldShowWeekDiscussionHeader(e,t){return!r(e)&&!t}}.apply(exports,t))&&(module.exports=r)},Fai8:function(module,exports,e){var t=e("H0yg");"string"==typeof t&&(t=[[module.i,t,""]]);var r,n={};n.transform=void 0;var o=e("MTIv")(t,n);t.locals&&(module.exports=t.locals)},GkKc:function(module,exports,e){var t,r;t=[e,exports,module],void 0!==(r=function(require,exports,module){"use strict";module.exports={Loading:{id:0,message:""},Idle:{id:1,message:""},InProgress:{id:2,message:"Saving..."},Success:{id:3,message:"Changes are saved as a draft but not published."},Error:{id:4,message:"Error occurred while saving your changes."},Conflict:{id:5,message:""},PublishInProgress:{id:6,message:""},Published:{id:7,message:"Changes are published."},NoChanges:{id:8,message:""},RevertInProgress:{id:9,message:"Reverting changes to draft..."},Reverted:{id:10,message:"Successfully reverted to last published version."},PublishError:{id:11,message:"Error occurred while publishing your changes."}}}.apply(exports,t))&&(module.exports=r)},H0yg:function(module,exports){},HDZh:function(module,exports,e){(function(Backbone){var t,r;t=[e,exports,module,e("UKRf"),e("X6gv"),e("U4EE"),e("VAsl"),e("vhdR"),e("g+yP")],void 0!==(r=function(require,exports,module){"use strict";var Backbone=e("UKRf"),t=e("X6gv")("course"),r=e("U4EE"),n=r.changeModuleLearningObjectives,o=e("VAsl"),s=e("vhdR"),i=e("g+yP"),a=i.SET_OBJECTIVES,l=i.SET_CATEGORIES,c=i.SAVING_OBJECTIVE,u=i.OBJECTIVE_SAVED,p=i.DELETING_OBJECTIVE,d=i.OBJECTIVE_DELETED;exports.getModuleIdAndObjectiveIds=function(module){var e=module instanceof Backbone.Model;return{moduleId:e?module.get("id"):module.id,objectiveIds:e?module.get("learningObjectives"):module.learningObjectives||[]}},exports.loadModuleLearningObjectives=function(e,t,r){var n=t.branchId,o=t.moduleId,i=t.objectiveIds;i.length?s.getLearningObjectives(i).then(function(t){e.dispatch(a,{branchId:n,moduleId:o,objectives:i.map(function(e){return t.find(function(t){return t.id===e})}).filter(function(e){return null!=e})}),r()}):(e.dispatch(a,{branchId:n,moduleId:o,objectives:[]}),r())},exports.loadLearningObjectiveSubcategories=function(e,t){var r=[o.get("CREATE"),o.get("REMEMBER"),o.get("ANALYZE"),o.get("EVALUATE"),o.get("APPLY"),o.get("UNDERSTAND")];s.getSubcategories(r).then(function(t){e.dispatch(l,{categories:t})})},exports.addLearningObjectiveToModule=function(e,r,o){var i=r.courseId,a=r.branchId,l=r.moduleIndex,module=r.module,p=r.existingObjectiveId,d=r.learningObjectiveIds,f=r.objective,h=r.onComplete;e.dispatch(c),s.createLearningObjective(f,i).then(function(r){var s=d.slice(),i=s.indexOf(p);p&&i>=0?s[i]=r.id:s.push(r.id),n(e,{moduleId:module.id,moduleLearningObjectives:s,onComplete:function onComplete(r,n){if(r)return void t.setError(e);var s=n.elements[0].material,i=s.elements.find(function(e){return e.id===module.id}),l=exports.getModuleIdAndObjectiveIds(i),c=l.moduleId,p=l.objectiveIds;exports.loadModuleLearningObjectives(e,{branchId:a,moduleId:c,objectiveIds:p},function(){e.dispatch(u),o(),h&&setTimeout(function(){return h()})})}})})},exports.deleteLearningObjectiveFromModule=function(e,r,o){var s=r.branchId,module=r.module,i=r.moduleIndex,a=r.objective,l=r.onComplete;e.dispatch(p);var c=(module.learningObjectives||[]).slice(),u=c.indexOf(a.id);c.splice(u,1),n(e,{moduleId:module.id,moduleLearningObjectives:c,onComplete:function onComplete(r,n){if(r)return void t.setError(e);var i=n.elements[0].material,a=i.elements.find(function(e){return e.id===module.id}),c=exports.getModuleIdAndObjectiveIds(a),u=c.moduleId,p=c.objectiveIds;exports.loadModuleLearningObjectives(e,{branchId:s,moduleId:u,objectiveIds:p},function(){e.dispatch(d),o(),l&&setTimeout(function(){return l()})})}})}}.apply(exports,t))&&(module.exports=r)}).call(exports,e("UKRf"))},I9ss:function(module,exports){},IExl:function(module,exports,e){var t=e("IQLW"),r=t.default?t.default:{},n=e("zQM/"),o=n(r);o.getLocale=function(){return"en"},module.exports=o},IQLW:function(module,exports){exports.default={"es":true,"fr":true,"pt":true,"ru":true,"zh":true,"zh-hk":"zh-tw","zh-mo":"zh-tw","zh-tw":true}},IVbJ:function(module,exports,e){(function(t){var r,n;r=[e,exports,module,e("L+Qk"),e("U7vG"),e("6y23")],void 0!==(n=function(require,exports,module){"use strict";function _defaults(e,t){for(var r=Object.getOwnPropertyNames(t),n=0;n<r.length;n++){var o=r[n],s=Object.getOwnPropertyDescriptor(t,o);s&&s.configurable&&void 0===e[o]&&Object.defineProperty(e,o,s)}return e}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):_defaults(e,t))}var t,r,n=e("L+Qk"),o=e("U7vG"),s=e("6y23"),i=(r=t=function(e){function LearningObjectiveLabel(){return _classCallCheck(this,LearningObjectiveLabel),_possibleConstructorReturn(this,e.apply(this,arguments))}return _inherits(LearningObjectiveLabel,e),LearningObjectiveLabel.prototype.render=function render(){var e=this.props,t=e.objective,r=e.className,s=t.getDescription();return o.createElement("div",{className:n("rc-LearningObjectiveLabel",r)},s&&o.createElement("span",{className:"objective-description"},s))},LearningObjectiveLabel}(o.Component),t.propTypes={objective:o.PropTypes.instanceOf(s).isRequired,className:o.PropTypes.string},r);module.exports=i}.apply(exports,r))&&(module.exports=n)}).call(exports,e("U7vG"))},IcMh:function(module,exports,e){(function(t){var r,n;r=[e,exports,module,e("AwHF"),e("U7vG"),e("b62F"),e("CfcV"),e("oq/K"),e("ndE2"),e("80Yh"),e("Y2SO")],void 0!==(n=function(require,exports,module){"use strict";function _defaults(e,t){for(var r=Object.getOwnPropertyNames(t),n=0;n<r.length;n++){var o=r[n],s=Object.getOwnPropertyDescriptor(t,o);s&&s.configurable&&void 0===e[o]&&Object.defineProperty(e,o,s)}return e}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):_defaults(e,t))}var t,r,n=e("AwHF"),o=n.compose,s=e("U7vG"),i=e("b62F"),a=e("CfcV"),l=a.updateEnrollableAndFollowingSessions,c=e("oq/K"),u=e("ndE2"),p=e("80Yh"),d=e("Y2SO"),f=(r=t=function(e){function SessionSwitchButton(){var t,r,n;_classCallCheck(this,SessionSwitchButton);for(var o=arguments.length,s=Array(o),i=0;i<o;i++)s[i]=arguments[i];return t=r=_possibleConstructorReturn(this,e.call.apply(e,[this].concat(s))),r.state={showModal:!1},r.handleClose=function(){r.setState({showModal:!1})},r.showModal=function(){r.setState({showModal:!0})},n=t,_possibleConstructorReturn(r,n)}return _inherits(SessionSwitchButton,e),SessionSwitchButton.prototype.componentDidMount=function componentDidMount(){this.props.enrollableSession||this.context.executeAction(l,{courseId:this.props.courseId,sessionId:this.props.sessionId})},SessionSwitchButton.prototype.render=function render(){if(!this.props.enrollableSession)return null;return s.createElement("div",{className:"rc-SessionSwitchButton"},s.createElement(p,{trackingName:"session_switch_button",data:{onDemandSessionId:this.props.sessionId},className:"primary",onClick:this.showModal},u("Switch sessions")),this.state.showModal&&s.createElement(i,{onClose:this.handleClose,courseId:this.props.courseId}))},SessionSwitchButton}(s.Component),t.propTypes={followingSession:s.PropTypes.object,enrollableSession:s.PropTypes.object,sessionId:s.PropTypes.string,courseId:s.PropTypes.string},t.contextTypes={executeAction:s.PropTypes.func.isRequired},r);module.exports=f,module.exports=o(d(["CourseStore","SessionStore"],function(e){var t=e.CourseStore,r=e.SessionStore;return{followingSession:r.getFollowingSession(),enrollableSession:r.getEnrollableSession(),sessionId:r.getSessionId(),courseId:t.getCourseId()}}))(f)}.apply(exports,r))&&(module.exports=n)}).call(exports,e("U7vG"))},KSwK:function(module,exports){},L9Kq:function(module,exports,e){var t,r;t=[e,exports,module,e("go2y"),e("iFGm"),e("LwZ5")],void 0!==(r=function(require,exports,module){"use strict";var t=e("go2y"),r=e("iFGm"),n=e("LwZ5"),o=function getMessageUri(e){return(new r).addQueryParam("courseId",e).addQueryParam("includes","instructorIds").addQueryParam("fields","instructors.v1(fullName)")},s=function getMessage(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"onDemandInstructorNotes.v1",o=new n("/api/"+r);return t(o.get(e.toString()))};exports.getCourseMessage=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"onDemandInstructorNotes.v1",r=o(e).addQueryParam("q","byCourse");return s(r,t).then(function(t){return t.elements.length?t:exports.getCourseMessage(e,"onDemandDefaultInstructorNotes.v1")})},exports.getModuleMessage=function(e,t){var r=o(e).addQueryParam("q","byModule").addQueryParam("moduleId",t);return s(r)}}.apply(exports,t))&&(module.exports=r)},LzwN:function(module,exports){},MCrT:function(module,exports,e){(function(t){var r,n;r=[e,exports,module,e("U7vG"),e("tHAX"),e("tnOd"),e("SRBf"),e("Y2SO")],void 0!==(n=function(require,exports,module){"use strict";function _defaults(e,t){for(var r=Object.getOwnPropertyNames(t),n=0;n<r.length;n++){var o=r[n],s=Object.getOwnPropertyDescriptor(t,o);s&&s.configurable&&void 0===e[o]&&Object.defineProperty(e,o,s)}return e}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):_defaults(e,t))}var t,r,n=e("U7vG"),o=e("tHAX"),s=e("tnOd"),i=e("SRBf"),a=i.isLagging,l=e("Y2SO"),c=(r=t=function(e){function SessionBox(){return _classCallCheck(this,SessionBox),_possibleConstructorReturn(this,e.apply(this,arguments))}return _inherits(SessionBox,e),SessionBox.prototype.render=function render(){return this.props.isPreviewMode||!this.props.isLagging&&!this.props.hasSessionEnded?n.createElement(o,null):n.createElement(s,{hasEnded:this.props.hasSessionEnded})},SessionBox}(n.Component),t.propTypes={isLagging:n.PropTypes.bool.isRequired,isPreviewMode:n.PropTypes.bool,hasSessionEnded:n.PropTypes.bool},r);module.exports=l(c,["CourseStore","CourseScheduleStore","ProgressStore","SessionStore"],function(e,t){var r=e.CourseStore,n=e.CourseScheduleStore,o=e.ProgressStore,s=e.SessionStore;return{isLagging:a(r,n,o),isPreviewMode:s.isPreviewMode(),hasSessionEnded:s.hasEnded()}})}.apply(exports,r))&&(module.exports=n)}).call(exports,e("U7vG"))},N3HY:function(module,exports,e){var t,r;t=[e,exports,module,e("AwHF"),e("HjFm")],void 0!==(r=function(require,exports,module){"use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var t=e("AwHF"),r=_interopRequireDefault(t),n=e("HjFm"),o=_interopRequireDefault(n),s=function initializeSkills(e){return(0,r.default)(e).chain().map(function(e){return new o.default(e)}).sortBy(function(e){return e.name}).value()},i=function EntitySkillsResponse(e){var t=e.elements;_classCallCheck(this,EntitySkillsResponse);var n=(0,r.default)(t).first(),o=n.id,i=n.existingSkills,a=n.suggestedSkills;this.id=o,this.existingSkills=s(i),this.suggestedSkills=s(a)};module.exports=i}.apply(exports,t))&&(module.exports=r)},NPGz:function(module,exports,e){(function(t,_){var r,n;r=[e,exports,module,e("U7vG"),e("aIeD"),e("AwHF"),e("9eZc"),e("9FwV"),e("Lqnx"),e("8zIo"),e("Y2SO"),e("ndE2"),e("mczO"),e("BvrF"),e("9voW"),e("AZpL"),e("ja+c"),e("bZ3t")],void 0!==(n=function(require,exports,module){"use strict";function _defaults(e,t){for(var r=Object.getOwnPropertyNames(t),n=0;n<r.length;n++){var o=r[n],s=Object.getOwnPropertyDescriptor(t,o);s&&s.configurable&&void 0===e[o]&&Object.defineProperty(e,o,s)}return e}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):_defaults(e,t))}var t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},r,n,o,s,i,a,l=e("U7vG"),c=e("aIeD"),u=c.OverlayTrigger,p=c.Tooltip,_=e("AwHF"),d=e("9eZc"),f=e("9FwV"),h=e("Lqnx"),m=e("8zIo"),y=e("Y2SO"),g=e("ndE2"),v=e("mczO"),b=v.WELCOME,P=v.MODULE,C=v.THANK_YOU,w=e("BvrF"),S=w.getModuleMessage,E=w.getWelcomeMessage,O=w.getThankYouMessage,T=w.getIsDismissed,k=w.setIsDismissed,x=e("9voW"),I=e("AZpL"),R=e("ja+c");e("bZ3t");var M=(n=r=function(e){function InstructorImage(){return _classCallCheck(this,InstructorImage),_possibleConstructorReturn(this,e.apply(this,arguments))}return _inherits(InstructorImage,e),InstructorImage.prototype.render=function render(){var e=this.props.instructor;return l.createElement(x,{profileImageUrl:e.photo,fullName:e.fullName,width:40,height:40,imgParams:{auto:"fit",fit:"crop"},alt:this.props.alt})},InstructorImage}(l.Component),r.propTypes={instructor:I.isRequired,alt:l.PropTypes.string},n),N=(s=o=function(e){function TooltipInstructorImage(){return _classCallCheck(this,TooltipInstructorImage),_possibleConstructorReturn(this,e.apply(this,arguments))}return _inherits(TooltipInstructorImage,e),TooltipInstructorImage.prototype.render=function render(){var e=this.props.instructor,t=l.createElement(p,null,e.fullName);return l.createElement(u,{placement:"top",overlay:t,key:e.id},l.createElement("div",{className:"instructor-image-container"},l.createElement(M,{instructor:e,alt:e.fullName})))},TooltipInstructorImage}(l.Component),o.propTypes={instructor:I.isRequired},s),j=(a=i=function(e){function InstructorMessage(t,r){_classCallCheck(this,InstructorMessage);var n=_possibleConstructorReturn(this,e.call(this,t,r));return n.onToggleClick=function(){var e=n.state.isCollapsed;n.setState({isCollapsed:!e})},n.onCloseMessage=function(){var e=n.props,t=e.courseId;e.type!==P&&(n.setState({shouldDisplay:!1}),n.context.executeAction(k,{courseId:t}))},n.state={shouldDisplay:!t.isDismissed,isCollapsed:!0},n}return _inherits(InstructorMessage,e),InstructorMessage.prototype.renderInstructors=function renderInstructors(){var e=this.props.instructors;if(1===e.length)return l.createElement("div",{className:"horizontal-box align-items-left align-items-vertical-center instructor-profile"},l.createElement(M,{instructor:e[0]}),l.createElement("p",{className:"headline-1-text instructor-name"},e[0].fullName));return l.createElement("div",{className:"horizontal-box align-items-left align-items-vertical-center instructor-profile"},e.map(function(e){return l.createElement(N,{instructor:e,key:e.id})}))},InstructorMessage.prototype.render=function render(){var e=this.props,t=e.type,r=e.message,n=e.instructors,o=this.state,s=o.shouldDisplay,i=o.isCollapsed;if(!s)return null;if((t===b||t===P)&&!r)return null;var a=r.length>250;return l.createElement(R,{className:"rc-InstructorMessage",showToggle:a,onToggleClick:this.onToggleClick,cardSpacing:"cozy",isInitiallyCollapsed:i},this.props.type!==P&&l.createElement("button",{className:"nostyle dismiss",onClick:this.onCloseMessage,"aria-label":g("Dismiss")},l.createElement(d,{name:"close",className:"color-secondary-text"})),n.length>0&&this.renderInstructors(),this.props.message.length>0&&l.createElement("div",{key:_("message_").uniqueId(),dangerouslySetInnerHTML:{__html:r}}))},InstructorMessage}(l.Component),i.propTypes={type:l.PropTypes.oneOf([b,P,C]).isRequired,courseId:l.PropTypes.string,message:l.PropTypes.string,isDismissed:l.PropTypes.bool,instructors:l.PropTypes.arrayOf(I)},i.contextTypes={executeAction:l.PropTypes.func.isRequired,week:l.PropTypes.number},i.defaultProps={message:"",instructors:[]},a),D=_.compose(y(["CourseStore","InstructorMessageStore"],function(e,r){var n=e.CourseStore,o=e.InstructorMessageStore,s=r.moduleId,i=r.type,a=i===C?"end":"start",l=n.getCourseId();return t({courseId:l},o.getMessage(a,s),{isDismissed:o.getIsDismissed(l),instructorMessageStoreHasLoaded:o.hasLoaded()})}),h(function(e,t){var r=t.courseId,n=t.moduleId,o=t.type,s=o===P;n?e.executeAction(S,{courseId:r,moduleId:n}):o===b?e.executeAction(E,{courseId:r}):e.executeAction(O,{courseId:r}),e.executeAction(T,{courseId:r,isModule:s})}),f(function(e){return e.instructorMessageStoreHasLoaded}))(j);module.exports=m(D)}.apply(exports,r))&&(module.exports=n)}).call(exports,e("U7vG"),e("AwHF"))},NSE6:function(module,exports){},"Ni+2":function(module,exports,e){(function(t,r){var n,o;n=[e,exports,module,e("U7vG"),e("wu4F"),e("U97Q"),e("k+WV"),e("SRBf"),e("JHGP"),e("80Yh"),e("9eZc"),e("G894"),e("Y2SO"),e("ndE2"),e("srKH")],void 0!==(o=function(require,exports,module){"use strict";function _defaults(e,t){for(var r=Object.getOwnPropertyNames(t),n=0;n<r.length;n++){var o=r[n],s=Object.getOwnPropertyDescriptor(t,o);s&&s.configurable&&void 0===e[o]&&Object.defineProperty(e,o,s)}return e}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):_defaults(e,t))}var t,r,n=e("U7vG"),o=e("wu4F"),s=e("U97Q"),i=s.resetDeadlines,a=e("k+WV"),l=e("SRBf"),c=l.getDeadlineForWeek,u=l.isLagging,p=e("JHGP"),d=e("80Yh"),f=e("9eZc"),h=e("G894"),m=h.FormattedMessage,y=e("Y2SO"),g=e("ndE2");e("srKH");var v=(r=t=function(e){function DeadlinesResetButton(){var t,r,s;_classCallCheck(this,DeadlinesResetButton);for(var l=arguments.length,c=Array(l),u=0;u<l;u++)c[u]=arguments[u];return t=r=_possibleConstructorReturn(this,e.call.apply(e,[this].concat(c))),r.state={showModal:!1,previewDeadlines:null},r.handleOpen=function(){var e=r.props.courseId;r.setState({showModal:!0}),r.state.previewDeadlines||a.getResetPreview(e,function(e){try{r.setPreviewDeadlines(e.elements[0].moduleDeadlines)}catch(e){}})},r.handleClose=function(){r.setState({showModal:!1})},r.handleConfirmation=function(){var e=r.props.userId;r.context.executeAction(i,{userId:e}),r.setState({showModal:!1})},r.renderRow=function(e,t){var r=e.week,s=e.deadline;return n.createElement("tr",{key:t},n.createElement("td",null,n.createElement(m,{message:g("Week {week}"),week:r})),n.createElement("td",null,n.createElement(m,{message:g("due {deadline}"),deadline:o(s).format("MMMM DD")})))},s=t,_possibleConstructorReturn(r,s)}return _inherits(DeadlinesResetButton,e),DeadlinesResetButton.prototype.setPreviewDeadlines=function setPreviewDeadlines(e){var t=this.context.getStore("CourseStore"),r=this.context.getStore("CourseScheduleStore"),n=this.context.getStore("ProgressStore"),s=this.props.weeks.map(function(o){return{week:o,deadline:c(t,r,n,o,e)}}).filter(function(e){var t=e.deadline;return o().isBefore(t)});this.setState({previewDeadlines:s})},DeadlinesResetButton.prototype.renderModal=function renderModal(){return n.createElement(p,{handleClose:this.handleClose,modalName:g("Reset Deadlines"),trackingName:"reset_deadline_modal"},n.createElement("div",{className:"horizontal-box c-modal-contents wrap"},n.createElement("div",{className:"flex-1 c-text-block"},n.createElement("h4",null,g("Adjust Deadlines")),n.createElement("p",null,g("Here is a new schedule to help you complete this course.\n                Click confirm new schedule to get back on the path to success!")),n.createElement("p",null,g("Adjusting deadlines will not affect your course progress."))),n.createElement("div",{className:"flex-1 c-table-container"},n.createElement("h4",null,g("New Schedule")),n.createElement("table",{className:"table"},n.createElement("thead",null,n.createElement("tr",null,n.createElement("th",null,g("Week")),n.createElement("th",null,g("Deadline")))),n.createElement("tbody",null,this.state.previewDeadlines?this.state.previewDeadlines.map(this.renderRow):n.createElement("tr",null,n.createElement("td",{className:"loading-spinner-container"},n.createElement(f,{name:"spinner",className:"cif-spin loading-spinner"}))))))),n.createElement("div",{className:"horizontal-box align-items-right wrap"},n.createElement(d,{ref:"cancel",className:"passive c-modal-cancel",onClick:this.handleClose,trackingName:"reset_deadlines_modal_cancel"},g("Cancel")),n.createElement(d,{className:"secondary",type:"submit",ref:"submit",onClick:this.handleConfirmation,trackingName:"reset_deadlines_modal_confirm"},g("Confirm New Schedule"))))},DeadlinesResetButton.prototype.render=function render(){if(!this.props.shouldShow)return null;return n.createElement("div",{className:"rc-DeadlinesResetButton styleguide"},n.createElement("button",{ref:"resetDeadlinesButton",onClick:this.handleOpen,className:"secondary"},g("Adjust Deadlines")),this.state.showModal&&this.renderModal())},DeadlinesResetButton}(n.Component),t.propTypes={courseId:n.PropTypes.string,weeks:n.PropTypes.arrayOf(n.PropTypes.string),userId:n.PropTypes.string,shouldShow:n.PropTypes.bool},t.contextTypes={executeAction:n.PropTypes.func.isRequired,getStore:n.PropTypes.func.isRequired},r);module.exports=y(v,["ApplicationStore","CourseStore","CourseScheduleStore","ProgressStore","SessionStore"],function(e,t){var r=e.ApplicationStore,n=e.CourseStore,o=e.CourseScheduleStore,s=e.ProgressStore,i=e.SessionStore,a=Object.keys(o.getSchedule().weekMap);return{courseId:n.getCourseId(),weeks:a,shouldShow:!i.isSessionsEnabled()&&u(n,o,s),userId:r.getUserData().id}}),module.exports.shouldShow=v.shouldShow,module.exports.BaseComp=v}.apply(exports,n))&&(module.exports=o)}).call(exports,e("U7vG"),e("wu4F"))},"O+lw":function(module,exports,e){(function(t){var r,n;r=[e,exports,module,e("U7vG"),e("iomd"),e("Ylo8"),e("rAAo"),e("H+ns"),e("vPxY"),e("jOBF")],void 0!==(n=function(require,exports,module){"use strict";var t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},r=e("U7vG"),n=e("iomd"),o=n.setLessonSkipped,s=e("Ylo8"),i=e("rAAo"),a=e("H+ns"),l=e("vPxY"),c=e("jOBF"),u=c.HONORS_TRACK,p=r.createClass({displayName:"ItemHonorsWrapper",propTypes:{itemMetadata:r.PropTypes.instanceOf(l).isRequired,hasUserSkippedLesson:r.PropTypes.bool,hasUserSkippedHonorsModal:r.PropTypes.bool},contextTypes:{router:r.PropTypes.object.isRequired,executeAction:r.PropTypes.func.isRequired},getInitialState:function getInitialState(){return{showHonorsModal:!1}},onClick:function onClick(e){e.preventDefault(),this.setState({showHonorsModal:!0})},onContinue:function onContinue(){var e=this.props.itemMetadata;this.context.executeAction(o,{lessonId:e.getLessonId(),skipped:!0}),this.context.router.push(this.props.itemMetadata.getLink())},onClose:function onClose(){this.setState({showHonorsModal:!1})},render:function render(){var e=this.props.itemMetadata.getTrackId()===u&&!this.props.hasUserSkippedHonorsModal&&!this.props.hasUserSkippedLesson,n=e?this.onClick:void 0;return r.createElement("li",{className:"rc-ItemHonorsWrapper nostyle"},r.createElement(i,t({},this.props,{onClick:n})),this.state.showHonorsModal&&r.createElement(s,{onClose:this.onClose,onContinue:this.onContinue}))}});module.exports=a(p,["HonorsUserPreferencesStore","CourseStore"],function(e,t){var r=e.HonorsUserPreferencesStore,n=e.CourseStore,o=n.getCourseId();return{hasUserSkippedHonorsModal:r.hasUserSkippedHonorsModalForCourseId(o),hasUserSkippedLesson:r.getLessonSkipped(t.itemMetadata.getLessonId()),isCumulativeGraded:t.isCumulativeGraded}}),module.exports.BaseComp=p}.apply(exports,r))&&(module.exports=n)}).call(exports,e("U7vG"))},OTce:function(module,exports){},PFre:function(module,exports,e){(function(t,r){var n,o;n=[e,exports,module,e("U7vG"),e("wu4F"),e("gmdv"),e("ujt1"),e("nyqH"),e("LBNW"),e("SRBf"),e("H+ns")],void 0!==(o=function(require,exports,module){"use strict";function _defaults(e,t){for(var r=Object.getOwnPropertyNames(t),n=0;n<r.length;n++){var o=r[n],s=Object.getOwnPropertyDescriptor(t,o);s&&s.configurable&&void 0===e[o]&&Object.defineProperty(e,o,s)}return e}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):_defaults(e,t))}var t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},r,n,o=e("U7vG"),s=e("wu4F"),i=e("gmdv"),a=e("ujt1"),l=a.CongratulationMessage,c=a.SessionDeadlineMessage,u=a.SessionDeadlineOverdueMessage,p=a.ReminderMessage,d=a.OverdueMessage,f=e("nyqH"),h=e("LBNW"),m=e("SRBf"),y=m.getDeadlineForWeek,g=m.getGradableItemsForWeek,v=m.getPeerReviewsInfoForWeek,b=m.getReminderItemsForWeek,P=m.isWeekComplete,C=m.isWeekPassed,w=m.isWeekOverdue,S=m.hasPassedCourse,E=e("H+ns"),O=(n=r=function(e){function DeadlineMessageContainer(){return _classCallCheck(this,DeadlineMessageContainer),_possibleConstructorReturn(this,e.apply(this,arguments))}return _inherits(DeadlineMessageContainer,e),DeadlineMessageContainer.prototype.render=function render(){if(this.props.isWeekPassed)return o.createElement(l,{week:this.props.week,hasPassedCourse:this.props.hasPassedCourse});if(this.props.isWeekComplete)return null;if(this.props.weekDeadline&&this.props.numberOfQuizzes>0&&!this.props.hasSessionEnded){var e={date:this.props.weekDeadline.format("LL"),time:this.props.weekDeadline.format("hh:mm A"),timezone:h.getTimezoneCode(),week:this.props.week,numberOfQuizzes:this.props.numberOfQuizzes,peerReviewsInfo:this.props.peerReviewsInfo};if(this.props.isSessionsEnabled){if(this.props.isWeekOverdue){var r=s(this.props.sessionEndTime).format("hh:mm A"),n=this.props.sessionEndDate;return o.createElement(u,t({},e,{sessionEndDate:n,sessionEndTime:r}))}return o.createElement("div",{className:"rc-DeadlineMessageContainer"},o.createElement(c,e),o.createElement(f,{reminderItemList:this.props.reminderItemList,alertItemList:this.props.alertItemList}))}return this.props.isWeekOverdue?o.createElement(d,e):o.createElement(p,e)}return null},DeadlineMessageContainer}(o.Component),r.propTypes={week:o.PropTypes.number.isRequired,hasPassedCourse:o.PropTypes.bool.isRequired,numberOfQuizzes:o.PropTypes.number.isRequired,isWeekComplete:o.PropTypes.bool.isRequired,isWeekPassed:o.PropTypes.bool.isRequired,isWeekOverdue:o.PropTypes.bool.isRequired,weekDeadline:i,peerReviewsInfo:o.PropTypes.array,sessionEndTime:o.PropTypes.object,sessionEndDate:o.PropTypes.string,hasSessionEnded:o.PropTypes.bool,isSessionsEnabled:o.PropTypes.bool,reminderItemList:o.PropTypes.array,alertItemList:o.PropTypes.array},r.contextTypes={getStore:o.PropTypes.func.isRequired,week:o.PropTypes.number},n);module.exports=E(O,["CourseStore","CourseViewGradeStore","CourseScheduleStore","ProgressStore","SessionStore","VerificationStore"],function(e,t){var r=e.CourseStore,n=e.CourseViewGradeStore,o=e.CourseScheduleStore,s=e.ProgressStore,i=e.SessionStore,a=e.VerificationStore,l=t.week,c=void 0,u=void 0;return o.areDeadlinesEnabled()&&(c=b(r,o,s,l,!1),u=b(r,o,s,l,!0)),{hasPassedCourse:S(n,a),numberOfQuizzes:g(r,o,l).length,isWeekComplete:P(r,o,s,l),isWeekPassed:C(r,o,s,l),isWeekOverdue:w(r,o,s,l),weekDeadline:y(r,o,s,l),peerReviewsInfo:v(r,o,l),sessionEndTime:i.getEndTime(),sessionEndDate:i.getEndDate(),hasSessionEnded:i.hasEnded(),isSessionsEnabled:i.isSessionsEnabled(),reminderItemList:c,alertItemList:u}})}.apply(exports,n))&&(module.exports=o)}).call(exports,e("U7vG"),e("wu4F"))},QYut:function(module,exports){},RrH3:function(module,exports,e){var t,r;t=[e,exports,module,e("UJ+0"),e("X6gv")],void 0!==(r=function(require,exports,module){"use strict";var t=e("UJ+0"),r=t.saveCourseMaterialPatch,n=e("X6gv")("course"),o=409;exports.setLoadingState=function(e,t){var r=t.isLoading;e.dispatch("SET_LOADING_STATE",{isLoading:r})},exports.setContextInfo=function(e,t){var r=t.courseSlug,n=t.courseId,o=t.isBranchLaunched,s=t.isBranchPrivate,i=t.isBreakingChangeAllowed;e.dispatch("SET_CONTEXT_INFO",{courseSlug:r,courseId:n,isBranchLaunched:o,isBranchPrivate:s,isBreakingChangeAllowed:i})},exports.saveMaterialPatch=function(e,t,o){var s=t.typeName,i=t.definition,a=t.onComplete,l=t.isBreakingChange,c=void 0!==l&&l,u=e.getStore("BranchSelectionStore").getState().selection||o,p=e.getStore("BranchPropertiesStore").getConflictMetadataById(u);e.executeAction(n.setInProgress);var d=void 0,f=void 0;r(u,{conflictMetadata:p,authoringCourseMaterialChange:{typeName:s,definition:i}}).then(function(t){var r=t.elements[0],o=r.conflictMetadata,s=r.changeScope,i=r.material;f=t,e.dispatch("SAVE_CONFLICT_METADATA_FOR_BRANCH",{branchId:u,conflictMetadata:o}),e.dispatch("LOADED_COURSE_MATERIAL_FOR_BRANCH",{branchId:u,courseMaterial:i,changeScope:s}),e.executeAction(n.setPublished)}).catch(function(t){d=t,409===t.status?e.executeAction(n.setConflict):e.executeAction(n.setError)}).done(function(){a&&setTimeout(function(){return a(d,f)}),c&&e.executeAction(n.toggleBreakingChangesModal,!0),e.executeAction(exports.setLoadingState,{isLoading:!1})})}}.apply(exports,t))&&(module.exports=r)},SM5u:function(module,exports){},THBF:function(module,exports,e){var t,r;t=[e,exports,module,e("wq+F")],void 0!==(r=function(require,exports,module){"use strict";var t=e("wq+F");exports.createEnumMap=function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];var o=r.reduce(function(e,t){return e[t.value]=t,e},{});return{map:o,get:function get(e){return o[e]||new t(e,e)}}}}.apply(exports,t))&&(module.exports=r)},TVAS:function(module,exports){},TqCH:function(module,exports,e){var t,r;t=[e,exports,module,e("VAsl"),e("V4b0"),e("THBF"),e("od7v")],void 0!==(r=function(require,exports,module){"use strict";function _defineProperty(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var t,r,n,o,s,i,a,l,c,u,p,d,f,h,m,y,g,v,b,P,C,w,S=e("VAsl"),E=e("V4b0"),O=e("THBF"),T=O.createEnumMap,k=e("od7v"),x=S.get("ANALYZE").value,I=S.get("APPLY").value,R=S.get("CREATE").value,M=S.get("EVALUATE").value,N=S.get("REMEMBER").value,j=S.get("UNDERSTAND").value,D=T(new E("ANALYZE",k("Analyze"),_defineProperty({},x,k("the data and provide recommendations"))),new E("APPLY",k("Apply"),_defineProperty({},I,k("the principles of contract law"))),new E("APPRAISE",k("Appraise"),_defineProperty({},x,k("the property value"))),new E("ARGUE",k("Argue"),_defineProperty({},M,k("the usefulness of each data visualization"))),new E("ARRANGE",k("Arrange"),_defineProperty({},R,k("the statements into a logical order"))),new E("ASSEMBLE",k("Assemble"),_defineProperty({},R,k("an agile team for their product launch"))),new E("ASSESS",k("Assess"),_defineProperty({},M,k("the effectiveness of the survey"))),new E("ATTACH",k("Attach"),_defineProperty({},M,k("an artist statement to each submission"))),new E("BREAKDOWN",k("Breakdown"),_defineProperty({},x,k("the argument into distinct assumptions"))),new E("BUILD",k("Build"),_defineProperty({},I,k("a robot and film a video demonstration"))),new E("CALCULATE",k("Calculate"),(t={},_defineProperty(t,x,k("the yearly revenue")),_defineProperty(t,I,k("the total revenue")),t)),new E("CATEGORIZE",k("Categorize"),(r={},_defineProperty(r,x,k("each photograph")),_defineProperty(r,R,k("resources based on student grade level")),r)),new E("CHOOSE",k("Choose"),(n={},_defineProperty(n,N,k("the best use of irony from a variety of texts")),_defineProperty(n,I,k("the best business plan and defend their choice")),_defineProperty(n,M,k("a resume appropriate for each job function")),n)),new E("CLASSIFY",k("Classify"),_defineProperty({},j,k("North American mammals"))),new E("COMBINE",k("Combine"),_defineProperty({},R,k("the plans into one report"))),new E("COMPARE",k("Compare"),(o={},_defineProperty(o,j,k("the depth of field of two photographs")),_defineProperty(o,x,k("two works within a cultural period")),_defineProperty(o,M,k("supply chains")),o)),new E("COMPLETE",k("Complete"),_defineProperty({},I,k("their own budget for a product rollout"))),new E("COMPOSE",k("Compose"),_defineProperty({},R,k("a song"))),new E("COMPUTE",k("Compute"),_defineProperty({},I,k("correlation coefficients"))),new E("CONCLUDE",k("Conclude"),_defineProperty({},M,k("an argument using their negotiation skills"))),new E("CREATE",k("Create"),(s={},_defineProperty(s,I,k("a marketing plan")),_defineProperty(s,R,k("a print advertisement")),s)),new E("CRITIQUE",k("Critique"),_defineProperty({},x,k("a detailed critique of historicism"))),new E("DECIDE",k("Decide"),_defineProperty({},M,k("which candidate to defend"))),new E("DEFEND",k("Defend"),(i={},_defineProperty(i,j,k("their marketing plan")),_defineProperty(i,M,k("their thesis in a five page essay")),i)),new E("DEFINE",k("Define"),(a={},_defineProperty(a,N,k("photosynthesis")),_defineProperty(a,j,k("irony")),a)),new E("DEMONSTRATE",k("Demonstrate"),(l={},_defineProperty(l,j,k("the key principles of emotional intelligence")),_defineProperty(l,I,k("their conflict resolution skills through a one on one simulation")),l)),new E("DESCRIBE",k("Describe"),(c={},_defineProperty(c,N,k("the major types of data collection used by top firms in the field")),_defineProperty(c,j,k("the key characteristics of 18th century victorian furniture")),c)),new E("DESIGN",k("Design"),_defineProperty({},R,k("a marketing campaign"))),new E("DETERMINE",k("Determine"),_defineProperty({},M,k("the effect of temperature on North American conifers"))),new E("DEVELOP",k("Develop"),(u={},_defineProperty(u,I,k("an artistic statement")),_defineProperty(u,R,k("a personal mission statement")),u)),new E("DIFFERENTIATE",k("Differentiate"),_defineProperty({},x,k("between causal and correlated data"))),new E("DISCOVER",k("Discover"),_defineProperty({},x,k("their own biases through dialogue and self-reflection"))),new E("DISCRIMINATE",k("Discriminate"),_defineProperty({},x,k("between body cues and facial expressions"))),new E("DISCUSS",k("Discuss"),_defineProperty({},j,k("the impact of Assembly Bill 32"))),new E("DISTINGUISH",k("Distinguish"),_defineProperty({},j,k("between 18th and 17th century European paintings"))),new E("EMPLOY",k("Employ"),_defineProperty({},I,k("classroom management techniques"))),new E("ESTIMATE",k("Estimate"),_defineProperty({},j,k("the value of each product over time"))),new E("EVALUATE",k("Evaluate"),_defineProperty({},M,k("the effectiveness of each personal statement and make recommendations for improvement"))),new E("EXAMINE",k("Examine"),_defineProperty({},x,k("their own motivations in relation to the group project"))),new E("EXPLAIN",k("Explain"),(p={},_defineProperty(p,N,k("the effective use of a paradox")),_defineProperty(p,j,k("the difference between causal and correlational data")),p)),new E("EXPRESS",k("Express"),(d={},_defineProperty(d,N,k("their own artistic goals")),_defineProperty(d,j,k("their opinions in a coherent essay")),d)),new E("FORMULATE",k("Formulate"),_defineProperty({},R,k("a linear programming model"))),new E("GENERATE",k("Generate"),_defineProperty({},R,k("a random number in Java"))),new E("GIVE_EXAMPLES",k("Give examples"),_defineProperty({},j,k("of viral marketing"))),new E("IDENTIFY",k("Identify"),_defineProperty({},N,k("the key characteristics of vertebrates"))),new E("ILLUSTRATE",k("Illustrate"),_defineProperty({},I,k("the data using charts and graphs"))),new E("INFER",k("Infer"),_defineProperty({},j,k("the popularity of a product based on sample data"))),new E("INSPECT",k("Inspect"),_defineProperty({},x,k("a product and identify strengths and weaknesses of the packaging"))),new E("INTERPRET",k("Interpret"),(f={},_defineProperty(f,j,k("the data and explain its significance to potential customers")),_defineProperty(f,I,k("the data and provide recommendations to potential customers")),_defineProperty(f,M,k("the text and summarize it in their native language")),f)),new E("JUDGE",k("Judge"),_defineProperty({},M,k("a set of proposals and make a recommendation as to which team to hire"))),new E("JUSTIFY",k("Justify"),_defineProperty({},M,k("their product through a market analysis"))),new E("LABEL",k("Label"),_defineProperty({},N,k("each type of flower"))),new E("LIST",k("List"),_defineProperty({},N,k("the key provisions of the ethics in government act"))),new E("MAKE",k("Make"),{}),new E("MEMORIZE",k("Memorize"),_defineProperty({},N,k("the periodic table"))),new E("MODEL",k("Model"),_defineProperty({},x,k("professional behavior"))),new E("MODIFY",k("Modify"),_defineProperty({},I,k("the formula to answer new managerial questions that might arise in the next period"))),new E("NAME",k("Name"),_defineProperty({},N,k("all the planets in our solar system"))),new E("OPERATE",k("Operate"),_defineProperty({},I,k("the robot on film and describe their experience"))),new E("ORDER",k("Order"),_defineProperty({},N,k("the battles of the civil war"))),new E("OUTLINE",k("Outline"),_defineProperty({},N,k("a business plan"))),new E("PARAPHRASE",k("Paraphrase"),_defineProperty({},j,k("journal articles"))),new E("PLAN",k("Plan"),(h={},_defineProperty(h,x,k("an age-appropriate lesson based on the state adopted standards")),_defineProperty(h,R,k("a transit route")),h)),new E("PRACTICE",k("Practice"),_defineProperty({},I,k("negotiation tactics in a simulation"))),new E("PREDICT",k("Predict"),_defineProperty({},j,k("weather patterns based on sample data"))),new E("PREPARE",k("Prepare"),(m={},_defineProperty(m,I,k("an age-appropriate lesson based on the state adopted standards")),_defineProperty(m,R,k("a report for the hypothetical board members")),m)),new E("PRODUCE",k("Produce"),_defineProperty({},I,k("an original poem"))),new E("PROPOSE",k("Propose"),(y={},_defineProperty(y,R,k("a marketing plan based customer data")),_defineProperty(y,M,k("an alternative solution based on their findings")),y)),new E("PROVE",k("Prove"),_defineProperty({},M,k("the validity of their recommendation using real world data"))),new E("QUESTION",k("Question"),_defineProperty({},x,k("a hypothesis and develop a new argument"))),new E("RATE",k("Rate"),_defineProperty({},M,k("the sustainability of landscaping proposal"))),new E("RECALL",k("Recall"),_defineProperty({},N,k("the names of at least five types of conifers"))),new E("RECOGNIZE",k("Recognize"),_defineProperty({},N,k("the key characteristics of a healthy weight loss plan"))),new E("RECOMMEND",k("Recommend"),(g={},_defineProperty(g,R,k("a course of action based on the data")),_defineProperty(g,M,k("an appropriate anthropological research method")),g)),new E("RELATE",k("Relate"),(v={},_defineProperty(v,x,k("their experience to that of a co-worker, friend, or relative")),_defineProperty(v,N,k("the key themes of the Odyssey to a modern day text")),v)),new E("REORGANIZE",k("Reorganize"),_defineProperty({},R,k("the statements into a coherent argument"))),new E("REPEAT",k("Repeat"),_defineProperty({},N,k("the metre of the poem in their own work"))),new E("REVIEW",k("Review"),_defineProperty({},j,k("their classmate’s work and identify areas for improvement"))),new E("REVISE",k("Revise"),_defineProperty({},R,k("a lesson plan for individual students"))),new E("REWRITE",k("Rewrite"),_defineProperty({},j,k("the definition of photosynthesis"))),new E("SELECT",k("Select"),(b={},_defineProperty(b,N,k("the best lesson plan for each age group")),_defineProperty(b,x,k("the most efficient supply chain")),_defineProperty(b,R,k("an alternative health service")),_defineProperty(b,M,k("three interventions for the project team")),b)),new E("SHOW",k("Show"),(P={},_defineProperty(P,N,k("how their fitness plan meets current best practices")),_defineProperty(P,I,k("their final advertisement to the class and explain the development process")),P)),new E("SIMPLIFY",k("Simplify"),(C={},_defineProperty(C,x,k("an article of their own choosing")),_defineProperty(C,R,k("the health plan into a 10 minute presentation")),C)),new E("SOLVE",k("Solve"),_defineProperty({},x,k("a system of equations"))),new E("STATE",k("State"),_defineProperty({},N,k("the key business metrics relevant to their plan"))),new E("SUMMARIZE",k("Summarize"),_defineProperty({},j,k("the work of a classmate"))),new E("SUPPORT",k("Support"),_defineProperty({},M,k("their argument with data visualizations"))),new E("SYNTHESIZE",k("Synthesize"),_defineProperty({},R,k("their findings into a Powerpoint presentation"))),new E("TELL",k("Tell"),_defineProperty({},R,k("a potential customer why they should buy the product"))),new E("TEST",k("Test"),_defineProperty({},x,k("a theory by distributing, collecting, and interpreting the results of a survey."))),new E("USE",k("Use"),_defineProperty({},I,k("a historical text to defend their position"))),new E("WRITE",k("Write"),(w={},_defineProperty(w,N,k("the definition of photosynthesis")),_defineProperty(w,j,k("their own monthly health plan utilizing the principles of good nutrition")),_defineProperty(w,I,k("a literature review")),w)));module.exports=D}.apply(exports,t))&&(module.exports=r)},U4EE:function(module,exports,e){var t,r;t=[e,exports,module,e("9Drh"),e("nrJ5"),e("RrH3")],void 0!==(r=function(require,exports,module){"use strict";var t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},r=e("9Drh"),n=e("nrJ5"),o=e("RrH3"),s=o.saveMaterialPatch;exports.addModule=function(e){var t={typeName:n.Module.Add,definition:{moduleName:r("Untitled Module")}};s(e,t)},exports.deleteModule=function(e,t){var r=t.moduleId,o={typeName:n.Module.Delete,definition:{moduleId:r}};s(e,o)},exports.changeModuleName=function(e,t){var r=t.moduleId,o=t.moduleName,i={typeName:n.Module.ChangeMetadata,definition:{moduleId:r,moduleName:o}};s(e,i)},exports.changeModuleDescription=function(e,t){var r=t.moduleId,o=t.moduleDescription,i={typeName:n.Module.ChangeMetadata,definition:{moduleId:r,moduleDescription:o}};s(e,i)},exports.changeModuleLearningObjectives=function(e,r){var o=r.moduleId,i=r.moduleLearningObjectives,a=r.onComplete,l={typeName:n.Module.ChangeMetadata,definition:{moduleId:o,moduleLearningObjectives:i}};s(e,t({},l,{onComplete:a}))},exports.moveModule=function(e,t){var r=t.moduleId,o=t.moduleEndPosition,i={typeName:n.Module.Move,definition:{moduleId:r,moduleEndPosition:o}};s(e,i)}}.apply(exports,t))&&(module.exports=r)},"UJ+0":function(module,exports,e){var t,r;t=[e,exports,module,e("go2y"),e("2TVH"),e("iFGm")],void 0!==(r=function(require,exports,module){"use strict";var t=e("go2y"),r=e("2TVH"),n=e("iFGm"),o=r("/api/authoringCourseMaterials.v1",{type:"rest"}),s={getCourseMaterials:function getCourseMaterials(e){var r=new n(e).addQueryParam("fields","material,conflictMetadata");return t(o.get(r.toString()))},updateCourseMaterials:function updateCourseMaterials(e,r){var s=new n(e).addQueryParam("fields","material,conflictMetadata,changeScope");return t(o.put(s.toString(),{data:r}))},saveCourseMaterialPatch:function saveCourseMaterialPatch(e,r){var s=new n(e).addQueryParam("fields","material,conflictMetadata,changeScope");return t(o.patch(s.toString(),{data:r}))}};module.exports=s}.apply(exports,t))&&(module.exports=r)},V4b0:function(module,exports,e){var t,r;t=[e,exports,module,e("wq+F")],void 0!==(r=function(require,exports,module){"use strict";function _defaults(e,t){for(var r=Object.getOwnPropertyNames(t),n=0;n<r.length;n++){var o=r[n],s=Object.getOwnPropertyDescriptor(t,o);s&&s.configurable&&void 0===e[o]&&Object.defineProperty(e,o,s)}return e}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):_defaults(e,t))}var t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},r=e("wq+F"),n=function(e){function Subcategory(r,n,o){_classCallCheck(this,Subcategory);var s=_possibleConstructorReturn(this,e.call(this,r,n));return s.hints=t({},o),s}return _inherits(Subcategory,e),Subcategory.prototype.getHint=function getHint(e){return this.hints[e.value]},Subcategory}(r);module.exports=n}.apply(exports,t))&&(module.exports=r)},VAsl:function(module,exports,e){var t,r;t=[e,exports,module,e("wq+F"),e("THBF"),e("od7v")],void 0!==(r=function(require,exports,module){"use strict";var t=e("wq+F"),r=e("THBF"),n=r.createEnumMap,o=e("od7v"),s=n(new t("ANALYZE",o("Analyze")),new t("APPLY",o("Apply")),new t("CREATE",o("Create")),new t("EVALUATE",o("Evaluate")),new t("REMEMBER",o("Remember")),new t("UNDERSTAND",o("Understand")));module.exports=s}.apply(exports,t))&&(module.exports=r)},WI46:function(module,exports,e){(function(t,_){var r,n;r=[e,exports,module,e("U7vG"),e("AwHF"),e("z/6w"),e("JV/n"),e("6MWU"),e("od1/"),e("rjnr"),e("PFre"),e("xwe5"),e("mhpv"),e("N7lk"),e("mdDb"),e("VLul"),e("EG2O"),e("pbVJ"),e("bZZ7"),e("rMvO"),e("njOI"),e("nVTL"),e("SRBf"),e("M9wU"),e("Rzyk"),e("i+Fj"),e("NKYf"),e("llyE"),e("H+ns"),e("lSqR"),e("dzc3"),e("rgVD"),e("3ty2")],void 0!==(n=function(require,exports,module){"use strict";function _defaults(e,t){for(var r=Object.getOwnPropertyNames(t),n=0;n<r.length;n++){var o=r[n],s=Object.getOwnPropertyDescriptor(t,o);s&&s.configurable&&void 0===e[o]&&Object.defineProperty(e,o,s)}return e}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):_defaults(e,t))}var t,r,n=e("U7vG"),_=e("AwHF"),o=e("z/6w"),s=e("JV/n"),i=e("6MWU"),a=e("od1/"),l=e("rjnr"),c=e("PFre"),u=e("xwe5"),p=e("mhpv"),d=e("N7lk"),f=e("mdDb"),h=e("VLul"),m=e("EG2O"),y=e("pbVJ"),g=y.getWeekUrl,v=e("bZZ7"),b=v.setLastSeenWeek,P=e("rMvO"),C=P.getProgress,w=e("njOI"),S=w.loadCourseMaterials,E=e("nVTL"),O=E.refreshCourseViewGrade,T=e("SRBf"),k=T.getGradableItemsForWeek,x=e("M9wU"),I=e("Rzyk"),R=e("i+Fj"),M=e("NKYf"),N=e("llyE"),j=e("H+ns"),D=e("lSqR"),A=e("dzc3"),L=e("rgVD");e("3ty2");var G=1,U=(r=t=function(e){function PeriodPage(t,r){_classCallCheck(this,PeriodPage);var n=_possibleConstructorReturn(this,e.call(this,t,r)),o=n.getWeekAndModules(t,r),s=o.week,i=o.modules;return n.state={week:s,modules:i},n}return _inherits(PeriodPage,e),PeriodPage.prototype.getChildContext=function getChildContext(){return{week:this.state.week}},PeriodPage.prototype.componentDidMount=function componentDidMount(){var e=this.props,t=e.courseId,r=e.courseSlug;this.context.executeAction(O,{courseId:t}),this.context.executeAction(C,{courseId:t,refreshProgress:!0}),this.context.executeAction(S,{courseSlug:r,refetch:!0})},PeriodPage.prototype.componentWillReceiveProps=function componentWillReceiveProps(e){var t=this.getWeekAndModules(e,this.context),r=t.week,n=t.modules;this.setState({week:r,modules:n})},PeriodPage.prototype.getWeekAndModules=function getWeekAndModules(e,t){var r=t.router,n=e.schedule,o=e.materials,s=e.course,i=e.courseId,a=e.courseSlug,l=e.courseRootPath;e.isPreEnrollEnabled&&r.push({name:"info",params:{courseSlug:a}});var c=parseInt(r.params.week,10);c&&b(i,c);var module=r.params.moduleId;if(n.getPeriods().length>0){if(c)n.containsWeek(c)||r.push(g(l,1));else{var u=n.getWeekForModuleId(module);u&&r.push(g(l,u)),r.push(g(l,1))}this.setMetatags(o,s,c)}var p=n.getModuleIdsForWeek(c),d=_(p).chain().map(function(t){return e.getModule(t)}).compact().value();return c&&!isNaN(c)||(c=1),{week:c,modules:d}},PeriodPage.prototype.setMetatags=function setMetatags(e,t,r){if(x){var n=e.getRequiredModules().at(r-1);x.setMetatags({pageName:"ondemand-home-module",context:{week:r,courseName:t.get("name"),moduleTitle:n?n.get("name"):"Module",description:n?n.get("description"):null},options:{imageHref:t.get("promoPhoto")}})}},PeriodPage.prototype.render=function render(){var e=this,t=this.props,r=t.courseId,o=t.isPreviewMode,y=t.isBranchPrivate,g=d.get("idVerification","userVerificationRollout"),v=this.context.getStore("CourseStore"),b=this.context.getStore("CourseScheduleStore"),P=k(v,b,this.state.week);return n.createElement(s,{trackClicks:!1,trackingName:"week",requireFullyVisible:!1,withVisibilityTracking:!0},n.createElement("div",{className:"rc-PeriodPage"},n.createElement(h,null),!g&&n.createElement(p,null),!y&&n.createElement(c,{week:this.state.week}),n.createElement(l,{gradableItems:P}),m(r,o)&&n.createElement(f,{weekNumber:this.state.week}),n.createElement("div",{className:"horizontal-box wrap"},n.createElement("div",{className:"flex-1"},this.state.modules.map(function(module){return n.createElement(a,{key:module.get("id"),module:module,week:e.state.week})})),this.props.isPreviewMode&&n.createElement("div",{className:"right-rail"},n.createElement(i,null))),n.createElement(u,null)))},PeriodPage}(n.Component),t.propTypes={getModule:n.PropTypes.func,isPreEnrollEnabled:n.PropTypes.bool,course:n.PropTypes.instanceOf(A).isRequired,courseId:n.PropTypes.string,courseBranchId:n.PropTypes.string.isRequired,isBranchPrivate:n.PropTypes.bool.isRequired,courseSlug:n.PropTypes.string,courseRootPath:n.PropTypes.string,materials:n.PropTypes.any,isPreviewMode:n.PropTypes.bool,areAllPreviousModulesComplete:n.PropTypes.bool},t.contextTypes={router:n.PropTypes.object.isRequired,executeAction:n.PropTypes.func.isRequired,getStore:n.PropTypes.func.isRequired},t.childContextTypes={week:n.PropTypes.number},r),q=o.createTrackedContainer(function(e){return{namespace:{page:"period_page"},course_id:e.course.id}})(U);module.exports=_.compose(N(function(e){var t=e.params.week;return{week:parseInt(t,10)}}),j(["CourseScheduleStore","CourseStore","SessionStore"],function(e){var t=e.CourseScheduleStore,r=e.CourseStore,n=e.SessionStore;return{schedule:t.getSchedule(),getModule:r.getModule,isPreEnrollEnabled:r.isPreEnrollEnabledForUser(),course:r.getMetadata(),courseId:r.getCourseId(),courseBranchId:n.getBranchId()||r.getCourseId(),courseSlug:r.getCourseSlug(),materials:r.getMaterials(),courseRootPath:r.getCourseRootPath(),isPreviewMode:n.isPreviewMode()}}),M(function(e){var t=e.week,r=e.schedule,n=e.materials,o=e.getModule,s=Array.from(new Array(t-1)).map(function(e,t){return t+1});return{previousModuleIds:_(s).chain().map(function(e){return r.getModuleIdsForWeek(e)}).flatten().value(),currentModuleIds:r.getModuleIdsForWeek(t)}}),I.createContainer(function(e){var t=e.courseId;return{branchesPrivateness:R.finder("course",{params:{courseId:t},fields:["isPrivate"]})}}),M(function(e){var t=e.branchesPrivateness,r=void 0===t?[]:t,n=e.courseBranchId,o=r.find(function(e){return e.id===n});return{isBranchPrivate:o&&o.isPrivate}}),j(["ProgressStore"],function(e,t){var r=e.ProgressStore,n=t.previousModuleIds,o=t.currentModuleIds;return{areAllPreviousModulesComplete:r.areModuleIdsComplete(n),areCurrentWeekModulesComplete:r.areModuleIdsComplete(o)}}),D(function(e){var t=e.courseBranchId,r=e.week,n=e.areAllPreviousModulesComplete,o=e.areCurrentWeekModulesComplete;if(!n||o)return null;return new L({courseBranchId:t,week:r})},function(e){return{course_id:e.courseId}}))(q),module.exports.BaseComp=U}.apply(exports,r))&&(module.exports=n)}).call(exports,e("U7vG"),e("AwHF"))},X6gv:function(module,exports,e){var t,r;t=[e,exports,module,e("GkKc")],void 0!==(r=function(require,exports,module){"use strict";var t=e("GkKc");module.exports=function getActionsForStateType(e){var r="course"===e?"SET_COURSE_STATE":"SET_ITEM_STATE";return{setLoading:function setLoading(e){e.dispatch(r,{state:t.Loading})},setIdle:function setIdle(e){e.dispatch(r,{state:t.Idle})},setInProgress:function setInProgress(e){e.dispatch(r,{state:t.InProgress})},setSuccess:function setSuccess(e){e.dispatch(r,{state:t.Success})},setError:function setError(e){e.dispatch(r,{state:t.Error})},setConflict:function setConflict(e){e.dispatch(r,{state:t.Conflict})},setPublishInProgress:function setPublishInProgress(e){e.dispatch(r,{state:t.PublishInProgress})},setPublished:function setPublished(e){e.dispatch(r,{state:t.Published})},setNoChanges:function setNoChanges(e){e.dispatch(r,{state:t.NoChanges})},setRevertInProgress:function setRevertInProgress(e){e.dispatch(r,{state:t.RevertInProgress})},setReverted:function setReverted(e){e.dispatch(r,{state:t.Reverted})},setPublishError:function setPublishError(e){e.dispatch(r,{state:t.PublishError})},toggleBreakingChangesModal:function toggleBreakingChangesModal(e,t){e.dispatch("TOGGLE_BREAKING_CHANGES_MODAL",{showModal:t})}}}}.apply(exports,t))&&(module.exports=r)},X8p4:function(module,exports,e){(function(t){var r,n;r=[e,exports,module,e("U7vG"),e("L+Qk"),e("Rm80"),e("9Uc3"),e("1xXH"),e("/tNY"),e("vPxY"),e("jOBF"),e("Y2SO"),e("xA6A"),e("b69i")],void 0!==(n=function(require,exports,module){"use strict";function _defaults(e,t){for(var r=Object.getOwnPropertyNames(t),n=0;n<r.length;n++){var o=r[n],s=Object.getOwnPropertyDescriptor(t,o);s&&s.configurable&&void 0===e[o]&&Object.defineProperty(e,o,s)}return e}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):_defaults(e,t))}var t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},r,n,o,s,i=e("U7vG"),a=e("L+Qk"),l=e("Rm80"),c=l.TrackedReactLink,u=e("9Uc3"),p=e("1xXH"),d=e("/tNY"),f=e("vPxY"),h=e("jOBF"),m=h.CORE_TRACK,y=h.HONORS_TRACK,g=e("Y2SO"),v=e("xA6A");e("b69i");var b=(n=r=function(e){function ItemGroupHeader(){return _classCallCheck(this,ItemGroupHeader),_possibleConstructorReturn(this,e.apply(this,arguments))}return _inherits(ItemGroupHeader,e),ItemGroupHeader.prototype.render=function render(){var e=this.props,t=e.trackId,r=e.itemGroup,n=e.passedChoicesCount,o=e.isItemGroupPassed,s=e.isNextItemChoiceStarted,l=this.props,p=l.isNextItemLessonStarted,d=l.nextItemMetadata,f=a(["nostyle","rc-LessonCollectionHeader","horizontal-box","align-items-vertical-center","card-rich-interaction",this.props.isItemGroupPassed?"lesson-collection-passed":"lesson-collection-not-passed"]);return i.createElement(c,{trackingName:"lesson_collection_header",href:r.getLink(),className:f},i.createElement(u,{passedChoicesCount:n,isItemGroupPassed:o,requiredPassedCount:r.getRequiredPassedCount(),choicesCount:r.getChoicesCount(),trackId:t}),!!d&&d.getLessonId()===r.getLesson().getId()&&!s&&i.createElement("div",{className:"flex-1 od-lesson-collection-header-button"},i.createElement("button",{className:"primary"},v(p?"Resume":"Start"))))},ItemGroupHeader}(i.Component),r.propTypes={trackId:i.PropTypes.oneOf([m,y]).isRequired,itemGroup:i.PropTypes.instanceOf(d),passedChoicesCount:i.PropTypes.number.isRequired,isItemGroupPassed:i.PropTypes.bool.isRequired,isNextItemChoiceStarted:i.PropTypes.bool.isRequired,isNextItemLessonStarted:i.PropTypes.bool.isRequired,nextItemMetadata:i.PropTypes.instanceOf(f)},n),P=function(e){function PlainHonorsLessonsHeader(){return _classCallCheck(this,PlainHonorsLessonsHeader),_possibleConstructorReturn(this,e.apply(this,arguments))}return _inherits(PlainHonorsLessonsHeader,e),PlainHonorsLessonsHeader.prototype.render=function render(){var e=a(["rc-LessonCollectionHeader","horizontal-box","align-items-vertical-center","card-no-action","lesson-collection-passing-irrelevant"]);return i.createElement("div",{className:e},i.createElement(p,null))},PlainHonorsLessonsHeader}(i.Component),C=(s=o=function(e){function LessonCollectionHeader(){return _classCallCheck(this,LessonCollectionHeader),_possibleConstructorReturn(this,e.apply(this,arguments))}return _inherits(LessonCollectionHeader,e),LessonCollectionHeader.prototype.render=function render(){var e=this.props,t=e.itemGroup,r=e.passedChoicesCount,n=e.isItemGroupPassed,o=e.trackId,s=e.isNextItemChoiceStarted,a=this.props,l=a.isNextItemLessonStarted,c=a.nextItemMetadata;return t?i.createElement(b,{trackId:o,itemGroup:t,passedChoicesCount:r,isItemGroupPassed:n,isNextItemChoiceStarted:s,isNextItemLessonStarted:l,nextItemMetadata:c}):o===y&&i.createElement(P,null)},LessonCollectionHeader}(i.Component),o.propTypes={itemGroup:i.PropTypes.instanceOf(d),isItemGroupPassed:i.PropTypes.bool,passedChoicesCount:i.PropTypes.number,trackId:i.PropTypes.oneOf([m,y]).isRequired,isNextItemChoiceStarted:i.PropTypes.bool.isRequired,isNextItemLessonStarted:i.PropTypes.bool.isRequired,nextItemMetadata:i.PropTypes.instanceOf(f)},s);module.exports=g(C,["CourseViewGradeStore"],function(e,r){var n=e.CourseViewGradeStore,o=r.itemGroup,s=o&&n.isItemGroupPassed(o.getId()),i=o&&n.getItemGroupOverallPassedCount(o.getId());return t({passedChoicesCount:i,isItemGroupPassed:s},r)}),module.exports.BaseComponent=C}.apply(exports,r))&&(module.exports=n)}).call(exports,e("U7vG"))},XSRV:function(module,exports,e){var t=e("d88B");"string"==typeof t&&(t=[[module.i,t,""]]);var r,n={};n.transform=void 0;var o=e("MTIv")(t,n);t.locals&&(module.exports=t.locals)},Xiqt:function(module,exports){},Yl2n:function(module,exports,e){var t=e("3wL8");"string"==typeof t&&(t=[[module.i,t,""]]);var r,n={};n.transform=void 0;var o=e("MTIv")(t,n);t.locals&&(module.exports=t.locals)},ZTaS:function(module,exports,e){(function(t){var r,n;r=[e,exports,module,e("U7vG"),e("AwHF"),e("qR7e"),e("HjFm"),e("1JFZ"),e("DjsX"),e("BP5d"),e("Lqnx"),e("Y2SO"),e("Afkj"),e("IExl"),e("jv9Q")],void 0!==(n=function(require,exports,module){"use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _interopRequireWildcard(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function _defaults(e,t){for(var r=Object.getOwnPropertyNames(t),n=0;n<r.length;n++){var o=r[n],s=Object.getOwnPropertyDescriptor(t,o);s&&s.configurable&&void 0===e[o]&&Object.defineProperty(e,o,s)}return e}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):_defaults(e,t))}var t,r,n=e("U7vG"),o=_interopRequireWildcard(n),s=e("AwHF"),i=_interopRequireDefault(s),a=e("qR7e"),l=_interopRequireDefault(a),c=e("HjFm"),u=_interopRequireDefault(c),p=e("1JFZ"),d=e("DjsX"),f=_interopRequireDefault(d),h=e("BP5d"),m=_interopRequireDefault(h),y=e("Lqnx"),g=_interopRequireDefault(y),v=e("Y2SO"),b=_interopRequireDefault(v),P=e("Afkj"),C=_interopRequireDefault(P),w=e("IExl"),S=_interopRequireDefault(w);e("jv9Q");var E=(r=t=function(e){function ModuleSkills(){return _classCallCheck(this,ModuleSkills),_possibleConstructorReturn(this,e.apply(this,arguments))}return _inherits(ModuleSkills,e),ModuleSkills.prototype.render=function render(){var e=this.props,t=e.id,r=e.existingSkills,n=e.suggestedSkills;return o.createElement("div",{className:"rc-ModuleSkills"},o.createElement("div",{className:"headline-2-text"},(0,S.default)("Skills taught in this module")),o.createElement(l.default,{id:t,existingSkills:r,suggestedSkills:n}))},ModuleSkills}(o.Component),t.propTypes={id:o.PropTypes.string.isRequired,existingSkills:o.PropTypes.arrayOf(o.PropTypes.instanceOf(u.default)).isRequired,suggestedSkills:o.PropTypes.arrayOf(o.PropTypes.instanceOf(u.default)).isRequired},r);module.exports=i.default.compose((0,C.default)(),(0,f.default)("Flex","moduleSkillTaggingForCourseStaff",function(e){return{course_id:e.courseId}}),(0,b.default)(["SessionStore","SkillsStore"],function(e,t){var r=e.SessionStore,n=e.SkillsStore,o=t.moduleId,s=n.getModuleSkillVertexId(o);return{id:s,branchId:r.getBranchId(),existingSkills:n.getExistingSkills(s),suggestedSkills:n.getSuggestedSkills(s)}}),(0,g.default)(function(e,t){var r=t.branchId,n=t.moduleId;e.executeAction(p.loadModuleSkills,{branchId:r,moduleId:n})}),(0,m.default)(["id"]))(E)}.apply(exports,r))&&(module.exports=n)}).call(exports,e("U7vG"))},ZYwi:function(module,exports,e){var t=e("QYut");"string"==typeof t&&(t=[[module.i,t,""]]);var r,n={};n.transform=void 0;var o=e("MTIv")(t,n);t.locals&&(module.exports=t.locals)},aBME:function(module,exports,e){(function(t){var r,n;r=[e,exports,module,e("U7vG"),e("AwHF"),e("L+Qk"),e("Eq0O"),e("HjFm"),e("0nq6"),e("IExl"),e("zn06")],void 0!==(n=function(require,exports,module){"use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _interopRequireWildcard(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function _defaults(e,t){for(var r=Object.getOwnPropertyNames(t),n=0;n<r.length;n++){var o=r[n],s=Object.getOwnPropertyDescriptor(t,o);s&&s.configurable&&void 0===e[o]&&Object.defineProperty(e,o,s)}return e}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):_defaults(e,t))}var t,r,n=e("U7vG"),o=_interopRequireWildcard(n),s=e("AwHF"),i=_interopRequireDefault(s),a=e("L+Qk"),l=_interopRequireDefault(a),c=e("Eq0O"),u=_interopRequireDefault(c),p=e("HjFm"),d=_interopRequireDefault(p),f=e("0nq6"),h=_interopRequireDefault(f),m=e("IExl"),y=_interopRequireDefault(m);e("zn06");var g=(r=t=function(e){function SkillsSelectize(){var t,r,n;_classCallCheck(this,SkillsSelectize);for(var o=arguments.length,s=Array(o),a=0;a<o;a++)s[a]=arguments[a];return t=r=_possibleConstructorReturn(this,e.call.apply(e,[this].concat(s))),r.handleChange=function(e){var t=r.props,n=t.existingSkills,o=t.suggestedSkills,s=(0,i.default)(n.concat(o).concat(r.cache)).uniq(function(e){return e.id}),a=(0,i.default)(s).filter(function(t){var r=t.id;return(0,i.default)(e).contains(r)});r.props.onChange(a)},r.handleCreate=function(e){var t=r.props,n=t.existingSkills,o=t.suggestedSkills,s=e.trim(),a=(0,i.default)(n).concat(o),l=(0,i.default)(a).find(function(e){return e.matches(s)});if(l)return l;var c=new h.default(s);return r.cache.push(c),c},r.cache=[],n=t,_possibleConstructorReturn(r,n)}return _inherits(SkillsSelectize,e),SkillsSelectize.prototype.render=function render(){var e=this.props,t=e.maxItems,r=e.existingSkills,n=e.suggestedSkills,s=0===r.length;return o.createElement("div",{className:(0,l.default)("rc-SkillsSelectize",{empty:s})},o.createElement(u.default,{focus:!0,options:{maxItems:t,valueField:"id",labelField:"name",hideSelected:!0,openOnFocus:!1,addPrecedence:!0,closeAfterSelect:!0,create:this.handleCreate,plugins:["remove_button"],onChange:this.handleChange,searchField:["name","aliases"],items:r.map(function(e){return e.id}),options:r.concat(n),onDropdownOpen:function onDropdownOpen(e){this.lastQuery.length||this.close()},onType:function onType(e){""===e&&this.close()}},placeholder:(0,y.default)("Enter a skill")}))},SkillsSelectize}(o.Component),t.propTypes={maxItems:o.PropTypes.number.isRequired,existingSkills:o.PropTypes.arrayOf(o.PropTypes.instanceOf(d.default)).isRequired,suggestedSkills:o.PropTypes.arrayOf(o.PropTypes.instanceOf(d.default)).isRequired,onChange:o.PropTypes.func.isRequired},r);module.exports=g}.apply(exports,r))&&(module.exports=n)}).call(exports,e("U7vG"))},adck:function(module,exports){},b69i:function(module,exports,e){var t=e("5Nq3");"string"==typeof t&&(t=[[module.i,t,""]]);var r,n={};n.transform=void 0;var o=e("MTIv")(t,n);t.locals&&(module.exports=t.locals)},bZ3t:function(module,exports,e){var t=e("OTce");"string"==typeof t&&(t=[[module.i,t,""]]);var r,n={};n.transform=void 0;var o=e("MTIv")(t,n);t.locals&&(module.exports=t.locals)},bZZ7:function(module,exports,e){var t,r;t=[e,exports,module,e("N25F")],void 0!==(r=function(require,exports,module){"use strict";var t=e("N25F"),r="last_seen_week_";exports.getLastSeenWeek=function(e){return t.get("last_seen_week_"+e)},exports.setLastSeenWeek=function(e,r){return t.set("last_seen_week_"+e,r)}}.apply(exports,t))&&(module.exports=r)},d88B:function(module,exports){},gWKE:function(module,exports,e){(function(_){var t,r;t=[e,exports,module,e("AwHF")],void 0!==(r=function(require,exports,module){"use strict";var _=e("AwHF"),t=function keyMirror(e){return _(e).chain().map(function(e,t){return[t,t]}).object().value()};module.exports=t}.apply(exports,t))&&(module.exports=r)}).call(exports,e("AwHF"))},"i+Fj":function(module,exports,e){var t,r;t=[e,exports,module,e("Slf2")],void 0!==(r=function(require,exports,module){"use strict";function _defaults(e,t){for(var r=Object.getOwnPropertyNames(t),n=0;n<r.length;n++){var o=r[n],s=Object.getOwnPropertyDescriptor(t,o);s&&s.configurable&&void 0===e[o]&&Object.defineProperty(e,o,s)}return e}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):_defaults(e,t))}var t,r,n=e("Slf2"),o=(r=t=function(e){function AuthoringCourseBranchModerationData(){return _classCallCheck(this,AuthoringCourseBranchModerationData),_possibleConstructorReturn(this,e.apply(this,arguments))}return _inherits(AuthoringCourseBranchModerationData,e),AuthoringCourseBranchModerationData}(n),t.RESOURCE_NAME="authoringCourseBranchModerationData.v1",r);module.exports=o}.apply(exports,t))&&(module.exports=r)},iRXK:function(module,exports){},iz93:function(module,exports,e){(function(t){var r,n;r=[e,exports,module,e("U7vG"),e("Rm80"),e("pbVJ"),e("ndE2"),e("G894"),e("Y2SO"),e("2O5n")],void 0!==(n=function(require,exports,module){"use strict";var t=e("U7vG"),r=e("Rm80"),n=r.TrackedReactLink,o=e("pbVJ"),s=o.getWeekUrl,i=e("ndE2"),a=e("G894"),l=a.FormattedMessage,c=e("Y2SO");e("2O5n");var u=t.createClass({displayName:"CongratulationBanner",contextTypes:{router:t.PropTypes.object.isRequired},propTypes:{week:t.PropTypes.number.isRequired,nextWeek:t.PropTypes.number,isPreviewMode:t.PropTypes.bool,courseRootPath:t.PropTypes.string},render:function render(){var e=this.props,r=e.nextWeek,o=e.courseRootPath,a=t.createElement("div",{className:"flex-1"},t.createElement("span",{className:"body-1-text"},t.createElement(l,{message:i("Congratulations! You have completed Week {currentWeek}."),currentWeek:this.props.week}))),c=void 0;return this.props.nextWeek&&(c=t.createElement(n,{href:s(o,r),trackingName:"congratulation_banner_start_next_week",data:{week:this.props.nextWeek},className:"nostyle"},!this.props.isPreviewMode&&t.createElement("button",{className:"secondary od-sentence-case"},t.createElement(l,{message:i("Start Week {nextWeek}"),nextWeek:this.props.nextWeek})))),t.createElement("div",{className:"rc-CongratulatoryMessage"},t.createElement("div",{className:"horizontal-box align-items-vertical-center c-congratulatory-box"},a,c))}});module.exports=c(u,["CourseScheduleStore","SessionStore","CourseStore"],function(e,t){var r=e.CourseScheduleStore,n=e.SessionStore,o=e.CourseStore,s=t.week;return{isPreviewMode:n.isPreviewMode(),courseRootPath:o.getCourseRootPath(),nextWeek:s+1>r.getNumberOfWeeks()?null:s+1}}),module.exports.BaseComp=u}.apply(exports,r))&&(module.exports=n)}).call(exports,e("U7vG"))},jv9Q:function(module,exports,e){var t=e("8UFK");"string"==typeof t&&(t=[[module.i,t,""]]);var r,n={};n.transform=void 0;var o=e("MTIv")(t,n);t.locals&&(module.exports=t.locals)},kZlK:function(module,exports,e){(function(t){var r,n;r=[e,exports,module,e("DNqs"),e("U7vG"),e("J4jp"),e("G894"),e("ndE2"),e("vPxY")],void 0!==(n=function(require,exports,module){"use strict";function _defaults(e,t){for(var r=Object.getOwnPropertyNames(t),n=0;n<r.length;n++){var o=r[n],s=Object.getOwnPropertyDescriptor(t,o);s&&s.configurable&&void 0===e[o]&&Object.defineProperty(e,o,s)}return e}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):_defaults(e,t))}var t,r,n=e("DNqs"),o=n.Link,s=e("U7vG"),i=e("J4jp"),a=e("G894"),l=a.FormattedHTMLMessage,c=e("ndE2"),u=e("vPxY"),p=(r=t=function(e){function AssignmentNotVerifiedNotification(){return _classCallCheck(this,AssignmentNotVerifiedNotification),_possibleConstructorReturn(this,e.apply(this,arguments))}return _inherits(AssignmentNotVerifiedNotification,e),AssignmentNotVerifiedNotification.prototype.render=function render(){var e=this.props.assignment,t=s.createElement(l,{message:c('<span class="body-2-text">Verification Required:</span> <span class="body-2-text">{assignmentName}</span> was not verified. Retake with verification to be eligible for a Course Certificate.'),assignmentName:e.getTitlePrefix()+": "+e.get("name")}),r=s.createElement(o,{to:e.getLink(),className:"link-button secondary"},c("Retake"));return s.createElement(i,{message:t,button:r})},AssignmentNotVerifiedNotification}(s.Component),t.propTypes={assignment:s.PropTypes.instanceOf(u).isRequired},r);module.exports=p}.apply(exports,r))&&(module.exports=n)}).call(exports,e("U7vG"))},"klI+":function(module,exports,e){var t=e("iRXK");"string"==typeof t&&(t=[[module.i,t,""]]);var r,n={};n.transform=void 0;var o=e("MTIv")(t,n);t.locals&&(module.exports=t.locals)},mczO:function(module,exports,e){var t,r;t=[e,exports,module,e("gWKE")],void 0!==(r=function(require,exports,module){"use strict";var t=e("gWKE");module.exports=t({WELCOME:null,MODULE:null,THANK_YOU:null})}.apply(exports,t))&&(module.exports=r)},mdDb:function(module,exports,e){(function(t,_){var r,n;r=[e,exports,module,e("U7vG"),e("AwHF"),e("+m2I"),e("SRBf"),e("H+ns"),e("okUG"),e("7cef"),e("L68M"),e("NKYf"),e("RRLk"),e("ciPL")],void 0!==(n=function(require,exports,module){"use strict";function _defaults(e,t){for(var r=Object.getOwnPropertyNames(t),n=0;n<r.length;n++){var o=r[n],s=Object.getOwnPropertyDescriptor(t,o);s&&s.configurable&&void 0===e[o]&&Object.defineProperty(e,o,s)}return e}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):_defaults(e,t))}var t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},r,n,o,s,i=e("U7vG"),_=e("AwHF"),a=e("+m2I"),l=e("SRBf"),c=l.getCurrentWeek,u=e("H+ns"),p=e("okUG"),d=e("7cef"),f=e("L68M"),h=e("NKYf"),m=e("RRLk"),y=e("ciPL"),g=(n=r=function(e){function DiscussionsCurrentWeekLoader(){return _classCallCheck(this,DiscussionsCurrentWeekLoader),_possibleConstructorReturn(this,e.apply(this,arguments))}return _inherits(DiscussionsCurrentWeekLoader,e),DiscussionsCurrentWeekLoader.prototype.render=function render(){var e=this.props,t=e.weekNumber,r=e.forum,n=e.forumStatistic;if(!t||!r)return null;return i.createElement(a,{weekNumber:t,isLoading:!1,title:r.title,description:r.description,mostRecentThread:r.mostRecentThread,lastAnsweredAt:n&&n.lastAnsweredAt,forumQuestionCount:n&&n.forumQuestionCount})},DiscussionsCurrentWeekLoader}(i.Component),r.propTypes={weekNumber:i.PropTypes.number,forum:i.PropTypes.instanceOf(p),forumStatistic:i.PropTypes.instanceOf(d)},n),v=_.compose(f({fields:["link","title","forumType","description","lastAnsweredAt","forumQuestionCount"]}),u(["CourseStore","CourseScheduleStore","ProgressStore"],function(e,t){var r=e.CourseStore,n=e.CourseScheduleStore,o=e.ProgressStore;return{weekNumber:t.weekNumber||c(r,n,o)}}),h(function(e){var r=e.courseForums.find(function(t){return t.forumType.definition.weekNumber===e.weekNumber});return t({},e,{forum:r,forumStatistic:r&&e.courseForumStatistics&&e.courseForumStatistics.find(function(e){return e.courseForumId===r.id})})}))(g);module.exports=(s=o=function(e){function FluxibleDiscussionsAppLoader(){return _classCallCheck(this,FluxibleDiscussionsAppLoader),_possibleConstructorReturn(this,e.apply(this,arguments))}return _inherits(FluxibleDiscussionsAppLoader,e),FluxibleDiscussionsAppLoader.prototype.componentWillMount=function componentWillMount(){this.fluxibleContext=y(this.context.fluxibleContext)},FluxibleDiscussionsAppLoader.prototype.render=function render(){return i.createElement(m,{context:this.fluxibleContext.getComponentContext()},i.createElement(v,this.props))},FluxibleDiscussionsAppLoader}(i.Component),o.contextTypes={fluxibleContext:i.PropTypes.object},s)}.apply(exports,r))&&(module.exports=n)}).call(exports,e("U7vG"),e("AwHF"))},mhpv:function(module,exports,e){(function(t){var r,n;r=[e,exports,module,e("U7vG"),e("uaZc"),e("H+ns"),e("ndE2"),e("9eZc"),e("sWM1")],void 0!==(n=function(require,exports,module){"use strict";function _defaults(e,t){for(var r=Object.getOwnPropertyNames(t),n=0;n<r.length;n++){var o=r[n],s=Object.getOwnPropertyDescriptor(t,o);s&&s.configurable&&void 0===e[o]&&Object.defineProperty(e,o,s)}return e}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):_defaults(e,t))}var t,r,n=e("U7vG"),o=e("uaZc"),s=e("H+ns"),i=e("ndE2"),a=e("9eZc");e("sWM1");var l=(r=t=function(e){function AccountVerificationBanner(){return _classCallCheck(this,AccountVerificationBanner),_possibleConstructorReturn(this,e.apply(this,arguments))}return _inherits(AccountVerificationBanner,e),AccountVerificationBanner.prototype.renderBanner=function renderBanner(){var e=void 0,t=void 0,r=!1;return this.props.verificationProfile.isProfileRejected()?(r=!0,e=i("Unfortunately, your ID verification didn't go through.\n        Please try again."),t=i("Resubmit")):this.props.verificationProfile.isProfileStarted()?(e=i("To earn your certificate, please complete your ID verification."),t=i("Finish")):(e=i("To earn your certificate,\n        please verify your identity by submitting your government ID."),t=i("Verify")),n.createElement("div",{className:"rc-AccountVerificationBanner"},n.createElement("div",{className:"horizontal-box"},n.createElement("div",{className:"flex-1"},n.createElement("div",{className:"banner-message-container"},r&&n.createElement(a,{name:"warning",className:"color-warn warning-icon cif-lg"}),e)),n.createElement("div",null,n.createElement("a",{className:"link-button primary verification-button",href:"/account-verification",target:"_blank",rel:"noopener noreferrer"},t))))},AccountVerificationBanner.prototype.render=function render(){return!this.props.hasPurchasedCertificate||this.props.verificationProfile.isProfileApproved()||this.props.verificationProfile.isProfilePending()?null:this.renderBanner()},AccountVerificationBanner}(n.Component),t.propTypes={verificationProfile:n.PropTypes.instanceOf(o).isRequired,hasPurchasedCertificate:n.PropTypes.bool},r);module.exports=s(l,["ApplicationStore","VerificationStore"],function(e,t){var r=e.ApplicationStore,n=e.VerificationStore;return{verificationProfile:r.getUserVerificationProfile(),hasPurchasedCertificate:n.hasPurchasedCertificate()}})}.apply(exports,r))&&(module.exports=n)}).call(exports,e("U7vG"))},"n/l+":function(module,exports,e){(function(t){var r,n;r=[e,exports,module,e("U7vG"),e("L+Qk"),e("PHKg"),e("lP3w"),e("dzc3"),e("Wk5A"),e("Y2SO"),e("xA6A"),e("wqgN")],void 0!==(n=function(require,exports,module){"use strict";function _defaults(e,t){for(var r=Object.getOwnPropertyNames(t),n=0;n<r.length;n++){var o=r[n],s=Object.getOwnPropertyDescriptor(t,o);s&&s.configurable&&void 0===e[o]&&Object.defineProperty(e,o,s)}return e}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):_defaults(e,t))}var t,r,n=e("U7vG"),o=e("L+Qk"),s=e("PHKg"),i=e("lP3w"),a=e("dzc3"),l=e("Wk5A"),c=l.getPriceForVC,u=e("Y2SO"),p=e("xA6A");e("wqgN");var d=(r=t=function(e){function PreEnrollBox(t,r){_classCallCheck(this,PreEnrollBox);var n=_possibleConstructorReturn(this,e.call(this,t,r));return n.state={price:null},n}return _inherits(PreEnrollBox,e),PreEnrollBox.prototype.componentDidMount=function componentDidMount(){this.props.isTakingS12n&&!this.props.ownsS12nCourse&&this.loadPrice()},PreEnrollBox.prototype.componentWillReceiveProps=function componentWillReceiveProps(e){e.isTakingS12n&&!e.ownsS12nCourse&&this.loadPrice()},PreEnrollBox.prototype.loadPrice=function loadPrice(){var e=this,t=this.props.courseId;c({courseId:t}).then(function(t){return e.setState({price:t})}).done()},PreEnrollBox.prototype.render=function render(){if(!this.props.hasS12nLoaded)return null;var e=this.props,t=e.isCapstone,r=e.isEligibleForCapstone,a=e.ownsS12nCourse,l=e.course,c=!this.props.isEnrolled&&(!t||r&&a),u=o("cozy","od-container","styleguide",{"theme-dark":c,"card-rich-interaction":!c});return n.createElement("div",null,n.createElement("div",{className:"rc-EnrollBox rc-PreEnrollBox"},n.createElement("div",{className:u},n.createElement("p",{className:"color-primary-text"},p("Course start date:")),n.createElement("h3",{className:"headline-2-text upcoming-session-dates color-primary-text"},n.createElement("span",{className:"start-date"},this.props.course.get("plannedLaunchDate"))),this.state.price&&!this.props.isEnrolled&&n.createElement("h3",{className:"price color-primary-text"},n.createElement(i,{value:this.state.price.getDisplayAmount(),currency:this.state.price.getDisplayCurrencyCode()})),(c||this.props.isEnrolled)&&n.createElement("div",{className:"align-right button-container"},n.createElement(s,{course:l})))))},PreEnrollBox}(n.Component),t.propTypes={courseId:n.PropTypes.string.isRequired,course:n.PropTypes.instanceOf(a).isRequired,hasS12nLoaded:n.PropTypes.bool.isRequired,isCapstone:n.PropTypes.bool,isEligibleForCapstone:n.PropTypes.bool,isTakingS12n:n.PropTypes.bool,ownsS12nCourse:n.PropTypes.bool,isEnrolled:n.PropTypes.bool},r);module.exports=u(d,["S12nStore","CourseStore","CourseMembershipStore"],function(e,t){var r=e.S12nStore,n=e.CourseStore,o=e.CourseMembershipStore,s=r.getS12n(),i=n.getCourseId();return{courseId:i,course:n.getMetadata(),hasS12nLoaded:r.hasLoaded(),isCapstone:s&&s.isCapstone(i),isEligibleForCapstone:s&&s.isEligibleForCapstone(),isTakingS12n:s&&s.isTakingS12n(),ownsS12nCourse:s&&s.ownsCourse(i),isEnrolled:o.isPreEnrolled()||o.isEnrolled()}}),module.exports.BaseComp=d}.apply(exports,r))&&(module.exports=n)}).call(exports,e("U7vG"))},n6se:function(module,exports){exports.default={"es":true,"fr":true,"pt":true,"ru":true,"tr":true,"zh":true,"zh-hk":"zh-tw","zh-mo":"zh-tw","zh-tw":true}},nrJ5:function(module,exports,e){var t,r;t=[e,exports,module],void 0!==(r=function(require,exports,module){"use strict";var e={Module:{Add:"addModule",Delete:"deleteModule",Move:"moveModule",ChangeMetadata:"changeModuleMetadata"},Lesson:{Add:"addLesson",Delete:"deleteLesson",Move:"moveLesson",ChangeMetadata:"changeLessonMetadata",ChangeTrack:"changeLessonTrack",ConvertToLessonChoice:"convertLessonToLessonGroupChoice"},LessonChoice:{Delete:"deleteLessonGroupChoice",Move:"moveLessonGroupChoice",ChangeLessonGroupMetadata:"changeLessonGroupMetadata",ChangeGroupChoiceMetadata:"changeLessonGroupChoiceMetadata",ConvertToLesson:"convertLessonGroupChoiceToLesson"},Item:{Add:"addItem",Delete:"deleteItem",Move:"moveItem",ChangeMetadata:"changeItemMetadata",ChangeItemLocking:"changeItemLocking",ChangeGradingLatePenalty:"changeItemGradingLatePenalty"},GradingFormula:{ChangeGradingFormulaAndGradePolicy:"changeGradingFormulaAndGradePolicy"}};module.exports=e}.apply(exports,t))&&(module.exports=r)},nyqH:function(module,exports,e){(function(t,_){var r,n;r=[e,exports,module,e("U7vG"),e("AwHF"),e("LBNW"),e("SRBf"),e("ujt1")],void 0!==(n=function(require,exports,module){"use strict";function _defaults(e,t){for(var r=Object.getOwnPropertyNames(t),n=0;n<r.length;n++){var o=r[n],s=Object.getOwnPropertyDescriptor(t,o);s&&s.configurable&&void 0===e[o]&&Object.defineProperty(e,o,s)}return e}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):_defaults(e,t))}var t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},r,n,o=e("U7vG"),_=e("AwHF"),s=e("LBNW"),i=e("SRBf"),a=i.getDeadlineForItem,l=e("ujt1"),c=l.DeferredDeadlineMessage,u=(n=r=function(e){function DeferredDeadlineMessageContainer(){return _classCallCheck(this,DeferredDeadlineMessageContainer),_possibleConstructorReturn(this,e.apply(this,arguments))}return _inherits(DeferredDeadlineMessageContainer,e),DeferredDeadlineMessageContainer.prototype._renderDeadlineMessageList=function _renderDeadlineMessageList(e,r){var n=this.context.getStore("CourseScheduleStore"),i=this.context.getStore("ProgressStore");return _(e).map(function(e){var l=a(n,i,e);if(l){var u={date:l.format("LL"),time:l.format("hh:mm A"),timezone:s.getTimezoneCode(),link:e.getLink(),name:e.getName()};return o.createElement(c,t({},u,{isAlert:r,key:e.getId()}))}return null})},DeferredDeadlineMessageContainer.prototype.render=function render(){return o.createElement("div",{className:"rc-DeferredDeadlineMessageContainer"},this._renderDeadlineMessageList(this.props.alertItemList,!0),this._renderDeadlineMessageList(this.props.reminderItemList,!1))},DeferredDeadlineMessageContainer}(o.Component),r.propTypes={reminderItemList:o.PropTypes.array,alertItemList:o.PropTypes.array},r.contextTypes={getStore:o.PropTypes.func.isRequired},n);module.exports=u}.apply(exports,r))&&(module.exports=n)}).call(exports,e("U7vG"),e("AwHF"))},"od1/":function(module,exports,e){(function(t,_,Backbone){var r,n;r=[e,exports,module,e("U7vG"),e("AwHF"),e("UKRf"),e("xYrb"),e("ZTaS"),e("DOA/"),e("NPGz"),e("6b4j"),e("vPxY"),e("6y23"),e("oq/K"),e("mczO"),e("HDZh"),e("BP5d"),e("H+ns"),e("Lqnx"),e("Y2SO"),e("ZYwi")],void 0!==(n=function(require,exports,module){"use strict";function _defaults(e,t){for(var r=Object.getOwnPropertyNames(t),n=0;n<r.length;n++){var o=r[n],s=Object.getOwnPropertyDescriptor(t,o);s&&s.configurable&&void 0===e[o]&&Object.defineProperty(e,o,s)}return e}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):_defaults(e,t))}var t,r,n=e("U7vG"),_=e("AwHF"),Backbone=e("UKRf"),o=e("xYrb"),s=e("ZTaS"),i=e("DOA/"),a=e("NPGz"),l=e("6b4j"),c=e("vPxY"),u=e("6y23"),p=e("oq/K"),d=e("mczO"),f=e("HDZh"),h=f.loadModuleLearningObjectives,m=e("BP5d"),y=e("H+ns"),g=e("Lqnx"),v=e("Y2SO");e("ZYwi");var b=(r=t=function(e){function ModuleSection(){return _classCallCheck(this,ModuleSection),_possibleConstructorReturn(this,e.apply(this,arguments))}return _inherits(ModuleSection,e),ModuleSection.prototype.render=function render(){var e=this.props,t=e.courseId,module=e.module,r=e.isNextItemChoiceStarted,l=e.isNextItemLessonStarted,c=e.nextItemMetadata,u=e.objectives,p=module.get("id");return n.createElement("section",{className:"rc-ModuleSection od-section"},n.createElement("div",null,n.createElement("h5",{className:"tab-headline"},n.createElement("span",null,module.get("name")))),n.createElement(a,{type:d.MODULE,moduleId:p}),n.createElement(i,{objectives:u}),n.createElement(s,{courseId:t,moduleId:p}),n.createElement(o,{nextItemMetadata:c,lessons:module.getLessons().toArray(),isNextItemChoiceStarted:r,isNextItemLessonStarted:l}))},ModuleSection}(n.Component),t.propTypes={courseId:n.PropTypes.string,module:n.PropTypes.instanceOf(l).isRequired,isNextItemChoiceStarted:n.PropTypes.bool.isRequired,isNextItemLessonStarted:n.PropTypes.bool.isRequired,nextItemMetadata:n.PropTypes.instanceOf(c),objectives:n.PropTypes.arrayOf(n.PropTypes.instanceOf(u)).isRequired},t.contextTypes={week:n.PropTypes.number},r);module.exports=_.compose(y(["CourseStore"],function(e){var t=e.CourseStore;return{course:t.getMetadata(),courseId:t.getCourseId()}}),v(["ProgressStore","ModuleLearningObjectivesStore"],function(e,t){var r=e.ProgressStore,n=e.ModuleLearningObjectivesStore,o=t.course,module=t.module,s=r.getNextItemForModule(module);return{course:o,isNextItemChoiceStarted:!!s&&!!s.getChoice()&&_(s.getChoice().getItemMetadatas().toArray()).some(function(e){return r.getItemProgress(e.getId()).isAtLeastStarted()}),isNextItemLessonStarted:!!s&&r.getLessonProgress(s.getLessonId()).progressState!==p.progressNotStarted,nextItemMetadata:s,objectives:n.getModuleObjectivesInBranch(o.get("id"),module.get("id"))}}),g(function(e,t){var r=t.course,module=t.module;if(!t.objectives){var n=module instanceof Backbone.Model,o=r.get("id"),s=n?module.get("id"):module.id,i=(n?module.get("learningObjectives"):module.learningObjectives)||[];e.executeAction(h,{branchId:o,moduleId:s,objectiveIds:i})}}),m(["objectives"]))(b)}.apply(exports,r))&&(module.exports=n)}).call(exports,e("U7vG"),e("AwHF"),e("UKRf"))},od7v:function(module,exports,e){var t=e("n6se"),r=t.default?t.default:{},n=e("zQM/"),o=n(r);o.getLocale=function(){return"en"},module.exports=o},pWVE:function(module,exports){},qR7e:function(module,exports,e){(function(t){var r,n;r=[e,exports,module,e("U7vG"),e("HjFm"),e("D/hB"),e("wN+H"),e("1JFZ")],void 0!==(n=function(require,exports,module){"use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _interopRequireWildcard(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function _defaults(e,t){for(var r=Object.getOwnPropertyNames(t),n=0;n<r.length;n++){var o=r[n],s=Object.getOwnPropertyDescriptor(t,o);s&&s.configurable&&void 0===e[o]&&Object.defineProperty(e,o,s)}return e}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):_defaults(e,t))}var t,r,n=e("U7vG"),o=_interopRequireWildcard(n),s=e("HjFm"),i=_interopRequireDefault(s),a=e("D/hB"),l=_interopRequireDefault(a),c=e("wN+H"),u=_interopRequireDefault(c),p=e("1JFZ"),d=(r=t=function(e){function Skills(t,r){_classCallCheck(this,Skills);var n=_possibleConstructorReturn(this,e.call(this,t,r));return n.handleChange=function(e){n.setState({existingSkills:e})},n.handleEdit=function(){n.setState({editing:!0})},n.handleCancel=function(){var e=n.props.existingSkills;n.setState({existingSkills:e,editing:!1})},n.handleSave=function(){var e=n.props.id,t=n.state.existingSkills;n.context.executeAction(p.updateExistingSkills,{id:e,skills:t,callback:n.handleSaveComplete}),n.setState({saving:!0,editing:!1})},n.handleSaveComplete=function(e){n.setState({existingSkills:e,saving:!1})},n.state={saving:!1,editing:!1,existingSkills:t.existingSkills},n}return _inherits(Skills,e),Skills.prototype.render=function render(){var e=this.props.suggestedSkills,t=this.state,r=t.editing,n=t.saving,s=t.existingSkills;return o.createElement("div",{className:"rc-Skills body-1-text"},!r&&o.createElement(u.default,{disabled:n,onEdit:this.handleEdit,existingSkills:s}),r&&o.createElement(l.default,{onSave:this.handleSave,onChange:this.handleChange,onCancel:this.handleCancel,existingSkills:s,suggestedSkills:e}))},Skills}(o.Component),t.propTypes={id:o.PropTypes.string.isRequired,existingSkills:o.PropTypes.arrayOf(o.PropTypes.instanceOf(i.default)).isRequired,suggestedSkills:o.PropTypes.arrayOf(o.PropTypes.instanceOf(i.default)).isRequired},t.contextTypes={executeAction:o.PropTypes.func.isRequired},r);module.exports=d}.apply(exports,r))&&(module.exports=n)}).call(exports,e("U7vG"))},relz:function(module,exports,e){(function(t){var r,n;r=[e,exports,module,e("U7vG"),e("Rm80"),e("pbVJ"),e("Y2SO"),e("ndE2"),e("3Q7Y")],void 0!==(n=function(require,exports,module){"use strict";function _defaults(e,t){for(var r=Object.getOwnPropertyNames(t),n=0;n<r.length;n++){var o=r[n],s=Object.getOwnPropertyDescriptor(t,o);s&&s.configurable&&void 0===e[o]&&Object.defineProperty(e,o,s)}return e}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):_defaults(e,t))}var t,r,n=e("U7vG"),o=e("Rm80"),s=o.TrackedReactLink,i=e("pbVJ"),a=i.getHomeUrl,l=e("Y2SO"),c=e("ndE2");e("3Q7Y");var u=(r=t=function(e){function CourseCompleteMessage(){return _classCallCheck(this,CourseCompleteMessage),_possibleConstructorReturn(this,e.apply(this,arguments))}return _inherits(CourseCompleteMessage,e),CourseCompleteMessage.prototype.render=function render(){var e=this.props.courseRootPath;return n.createElement("div",{className:"rc-CongratulatoryMessage"},n.createElement("div",{className:"c-congratulatory-box"},this.props.hasPassedCourse&&n.createElement("div",{className:"horizontal-box align-items-vertical-center"},n.createElement("div",{className:"flex-1"},n.createElement("h4",{className:"align-left body-1-text"},c("Congratulations! You've completed the course."))),n.createElement(s,{href:a(e),trackingName:"course_complete_message_view_final_grade",className:"nostyle"},n.createElement("button",{className:"secondary od-sentence-case"},c("View Final Grade"))))))},CourseCompleteMessage}(n.Component),t.propTypes={courseRootPath:n.PropTypes.string.isRequired,hasPassedCourse:n.PropTypes.bool.isRequired},r);module.exports=l(u,["CourseStore"],function(e){return{courseRootPath:e.CourseStore.getCourseRootPath()}})}.apply(exports,r))&&(module.exports=n)}).call(exports,e("U7vG"))},rgVD:function(module,exports,e){var t,r;t=[e,exports,module,e("U50p"),e("W+3U")],void 0!==(r=function(require,exports,module){"use strict";function _defaults(e,t){for(var r=Object.getOwnPropertyNames(t),n=0;n<r.length;n++){var o=r[n],s=Object.getOwnPropertyDescriptor(t,o);s&&s.configurable&&void 0===e[o]&&Object.defineProperty(e,o,s)}return e}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):_defaults(e,t))}var t=e("U50p"),r=e("W+3U"),n=r.WEEK_START,o=function(e){function AliceWeekStartEvent(t){var r=t.courseBranchId,o=t.week;_classCallCheck(this,AliceWeekStartEvent);var s=_possibleConstructorReturn(this,e.call(this,{type:n,courseBranchId:r}));return s.week=o,s.id=n+"~"+r+"~"+o,s}return _inherits(AliceWeekStartEvent,e),AliceWeekStartEvent}(t);module.exports=o}.apply(exports,t))&&(module.exports=r)},rjnr:function(module,exports,e){(function(t){var r,n;r=[e,exports,module,e("U7vG"),e("H+ns"),e("SRBf"),e("vPxY"),e("kZlK")],void 0!==(n=function(require,exports,module){"use strict";function _defaults(e,t){for(var r=Object.getOwnPropertyNames(t),n=0;n<r.length;n++){var o=r[n],s=Object.getOwnPropertyDescriptor(t,o);s&&s.configurable&&void 0===e[o]&&Object.defineProperty(e,o,s)}return e}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):_defaults(e,t))}var t,r,n=e("U7vG"),o=e("H+ns"),s=e("SRBf"),i=s.getUnverifiedAssignments,a=e("vPxY"),l=e("kZlK"),c=(r=t=function(e){function WeekNotVerifiedNotifications(){return _classCallCheck(this,WeekNotVerifiedNotifications),_possibleConstructorReturn(this,e.apply(this,arguments))}return _inherits(WeekNotVerifiedNotifications,e),WeekNotVerifiedNotifications.prototype.render=function render(){if(0===this.props.unverifiedAssignments.length)return null;return n.createElement("div",{className:"rc-WeekNotVerifiedNotifications"},this.props.unverifiedAssignments.map(function(e){return n.createElement(l,{assignment:e})}))},WeekNotVerifiedNotifications}(n.Component),t.propTypes={unverifiedAssignments:n.PropTypes.arrayOf(n.PropTypes.instanceOf(a))},r);module.exports=o(c,["CourseViewGradeStore","VerificationStore"],function(e,t){var r=e.CourseViewGradeStore,n=e.VerificationStore;return{unverifiedAssignments:i(r,n,t.gradableItems)}})}.apply(exports,r))&&(module.exports=n)}).call(exports,e("U7vG"))},sWM1:function(module,exports,e){var t=e("yuRy");"string"==typeof t&&(t=[[module.i,t,""]]);var r,n={};n.transform=void 0;var o=e("MTIv")(t,n);t.locals&&(module.exports=t.locals)},smTl:function(module,exports,e){(function(t){var r,n;r=[e,exports,module,e("U7vG"),e("Rm80"),e("O+lw"),e("vPxY"),e("xA6A"),e("klI+")],void 0!==(n=function(require,exports,module){"use strict";function _defaults(e,t){for(var r=Object.getOwnPropertyNames(t),n=0;n<r.length;n++){var o=r[n],s=Object.getOwnPropertyDescriptor(t,o);s&&s.configurable&&void 0===e[o]&&Object.defineProperty(e,o,s)}return e}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):_defaults(e,t))}var t,r,n=e("U7vG"),o=e("Rm80"),s=o.TrackedReactLink,i=e("O+lw"),a=e("vPxY"),l=e("xA6A");e("klI+");var c=(r=t=function(e){function NamedItemList(){return _classCallCheck(this,NamedItemList),_possibleConstructorReturn(this,e.apply(this,arguments))}return _inherits(NamedItemList,e),NamedItemList.prototype.render=function render(){var e=this.props,t=e.name,r=e.description,o=e.itemMetadatas,a=e.showStartButtonLinkingToItemMetadata,c=this.props,u=c.showResumeButtonOnItemMetadata,p=c.hideDeadline;return n.createElement("div",{className:"rc-NamedItemList"},n.createElement("div",{className:"horizontal-box named-item-list-title"},n.createElement("h4",{className:"flex-1 align-self-center headline-2-text"},t),!!a&&n.createElement(s,{href:a.getLink(),trackingName:"start_lesson_button",data:{itemId:a.getId()}},n.createElement("button",{className:"primary align-self-center"},l("Start Lesson")))),!!r&&n.createElement("div",{className:"named-item-list-description"},r),n.createElement("ul",null,o.map(function(e){var t=!!u&&u.getId()===e.getId();return n.createElement(i,{itemMetadata:e,key:e.getId(),isNext:t,hideDeadline:p})})))},NamedItemList}(n.Component),t.propTypes={name:n.PropTypes.string.isRequired,description:n.PropTypes.string,itemMetadatas:n.PropTypes.arrayOf(n.PropTypes.instanceOf(a)).isRequired,showStartButtonLinkingToItemMetadata:n.PropTypes.instanceOf(a),showResumeButtonOnItemMetadata:n.PropTypes.instanceOf(a),hideDeadline:n.PropTypes.bool},r);module.exports=c}.apply(exports,r))&&(module.exports=n)}).call(exports,e("U7vG"))},srKH:function(module,exports,e){var t=e("1Jlv");"string"==typeof t&&(t=[[module.i,t,""]]);var r,n={};n.transform=void 0;var o=e("MTIv")(t,n);t.locals&&(module.exports=t.locals)},ssNk:function(module,exports,e){(function(t,r){var n,o;n=[e,exports,module,e("U7vG"),e("wu4F"),e("H+ns"),e("G894"),e("nzid"),e("jOBF"),e("bLQR"),e("st0O"),e("ndE2"),e("oq/K"),e("SRBf"),e("Yl2n")],void 0!==(o=function(require,exports,module){"use strict";function _defaults(e,t){for(var r=Object.getOwnPropertyNames(t),n=0;n<r.length;n++){var o=r[n],s=Object.getOwnPropertyDescriptor(t,o);s&&s.configurable&&void 0===e[o]&&Object.defineProperty(e,o,s)}return e}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):_defaults(e,t))}var t,r,n=e("U7vG"),o=e("wu4F"),s=e("H+ns"),i=e("G894"),a=i.FormattedMessage,l=e("nzid"),c=e("jOBF"),u=c.HONORS_TRACK,p=e("bLQR"),d=e("st0O"),f=e("ndE2"),h=e("oq/K").assets.rootPath,m=e("SRBf"),y=m.hasPassedTrack;e("Yl2n");var g=(r=t=function(e){function CoursePassedBox(){return _classCallCheck(this,CoursePassedBox),_possibleConstructorReturn(this,e.apply(this,arguments))}return _inherits(CoursePassedBox,e),CoursePassedBox.prototype.render=function render(){return n.createElement("div",{className:"rc-CoursePassedBox rc-EnrollBox vertical-box align-items-vertical-center od-container styleguide"},n.createElement(p,{className:"badge",alt:"VC Image",src:d.join(h,"bundles/ondemand/assets/images/infinity_badge.png")}),n.createElement("h5",null,f("You've completed this course")),this.props.courseCompletionTime&&n.createElement("span",{className:"caption-text passed-session-dates"},n.createElement(a,{message:f("Completed on {date}"),date:o(this.props.courseCompletionTime).format("l")})),this.props.hasPassedHonorsTrack&&n.createElement(l,null))},CoursePassedBox}(n.Component),t.propTypes={hasPassedHonorsTrack:n.PropTypes.bool,courseCompletionTime:n.PropTypes.number},r);module.exports=s(g,["CourseStore","CourseViewGradeStore","CertificateStore","VerificationStore"],function(e){var t=e.CourseStore,r=e.CourseViewGradeStore,n=e.CertificateStore,o=e.VerificationStore,s=t.getCourseId();return{hasPassedHonorsTrack:y(r,o,u),courseCompletionTime:n.getCourseCompletionTime({courseId:s})}}),module.exports.baseComp=g}.apply(exports,n))&&(module.exports=o)}).call(exports,e("U7vG"),e("wu4F"))},tHAX:function(module,exports,e){(function(t){var r,n;r=[e,exports,module,e("U7vG"),e("8k/k"),e("L+Qk"),e("PHKg"),e("lP3w"),e("Wk5A"),e("CfcV"),e("Y2SO"),e("xA6A"),e("G894"),e("XSRV")],void 0!==(n=function(require,exports,module){"use strict";function _defaults(e,t){for(var r=Object.getOwnPropertyNames(t),n=0;n<r.length;n++){var o=r[n],s=Object.getOwnPropertyDescriptor(t,o);s&&s.configurable&&void 0===e[o]&&Object.defineProperty(e,o,s)}return e}function _defineProperty(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):_defaults(e,t))}var t,r,n,o=e("U7vG"),s=e("8k/k"),i=e("L+Qk"),a=e("PHKg"),l=e("lP3w"),c=e("Wk5A"),u=c.getPriceForVC,p=e("CfcV"),d=p.updateEnrollableAndFollowingSessions,f=e("Y2SO"),h=e("xA6A"),m=e("G894"),y=m.FormattedMessage;e("XSRV");var g=(r=t=function(e){function SessionEnrollBox(){var t,r,n;_classCallCheck(this,SessionEnrollBox);for(var o=arguments.length,s=Array(o),i=0;i<o;i++)s[i]=arguments[i];return t=r=_possibleConstructorReturn(this,e.call.apply(e,[this].concat(s))),r.state={price:null},n=t,_possibleConstructorReturn(r,n)}return _inherits(SessionEnrollBox,e),SessionEnrollBox.prototype.componentDidMount=function componentDidMount(){this.props.followingSession||this.context.executeAction(d,{courseId:this.props.courseId,sessionId:this.props.sessionId}),this.props.isTakingS12n&&!this.props.ownsS12nCourse&&this.loadPrice()},SessionEnrollBox.prototype.componentWillReceiveProps=function componentWillReceiveProps(e){e.isTakingS12n&&!e.ownsS12nCourse&&this.loadPrice()},SessionEnrollBox.prototype.loadPrice=function loadPrice(){var e=this,t=this.props.courseId;u({courseId:t}).then(function(t){return e.setState({price:t})}).done()},SessionEnrollBox.prototype.renderFollowingSession=function renderFollowingSession(){return o.createElement("div",{className:"following-session card-no-action primary"},o.createElement("p",{className:"color-secondary-text"},o.createElement(y,{message:h("Following session begins {startDate}"),startDate:this.props.followingSession.getStartDate()})))},SessionEnrollBox.prototype.render=function render(){if(!this.props.hasS12nLoaded)return null;var e=this.props,t=e.isCapstone,r=e.isEligibleForCapstone,n=e.ownsS12nCourse,c=e.startDate,u=e.endDate,p=e.timeUntilStart,d=this.props,f=d.isPreviewMode,m=d.sessionId,g=d.enrollmentEndDate,v=d.isUpcoming,b=d.followingSession,P=r&&n,C=!t&&!s.isAuthenticatedUser()||!this.state.isEnrolled&&(!t||P),w=i("cozy","od-container","styleguide","primary-enroll-box",{"theme-dark":C,"card-rich-interaction":!C});return o.createElement("div",null,o.createElement("div",{className:"rc-EnrollBox rc-SessionEnrollBox"},o.createElement("div",{className:w},o.createElement("p",{className:"color-primary-text"},h(v?"Upcoming session:":"Current session:")),o.createElement("h3",{className:"headline-2-text session-dates color-primary-text"},o.createElement("span",{className:"session-date"},c)," - ",o.createElement("span",{className:"session-date"},u)),this.state.price&&o.createElement("h3",{className:"color-primary-text"},o.createElement(l,{value:this.state.price.getDisplayAmount(),currency:this.state.price.getDisplayCurrencyCode()})),f&&!(t&&!r)&&o.createElement("div",{className:"align-right button-container"},o.createElement("p",{className:"color-secondary-text"},C?o.createElement(y,{message:h("Enrollment ends {enrollmentEndDate}"),enrollmentEndDate:g}):o.createElement(y,{message:h("{timeUntilStart} until session begins"),timeUntilStart:p})),o.createElement(a,{ref:"enrollButton",sessionId:m}))),C&&b&&this.renderFollowingSession()))},SessionEnrollBox}(o.Component),t.propTypes=(n={courseId:o.PropTypes.string.isRequired,hasS12nLoaded:o.PropTypes.bool.isRequired,isCapstone:o.PropTypes.bool,isEligibleForCapstone:o.PropTypes.bool,isTakingS12n:o.PropTypes.bool,ownsS12nCourse:o.PropTypes.bool,sessionId:o.PropTypes.string},_defineProperty(n,"courseId",o.PropTypes.string),_defineProperty(n,"timeUntilStart",o.PropTypes.string),_defineProperty(n,"enrollmentEndDate",o.PropTypes.object),_defineProperty(n,"isPreviewMode",o.PropTypes.bool),_defineProperty(n,"endDate",o.PropTypes.object),_defineProperty(n,"startDate",o.PropTypes.object),_defineProperty(n,"isUpcoming",o.PropTypes.bool),_defineProperty(n,"isEnrolled",o.PropTypes.bool),_defineProperty(n,"followingSession",o.PropTypes.object),n),t.contextTypes={executeAction:o.PropTypes.func.isRequired},r);module.exports=f(g,["CourseStore","S12nStore","SessionStore"],function(e,t){var r,n=e.CourseStore,o=e.S12nStore,s=e.SessionStore,i=o.getS12n(),a=n.getCourseId();return r={courseId:a,hasS12nLoaded:o.hasLoaded(),isCapstone:i&&i.isCapstone(a),isEligibleForCapstone:i&&i.isEligibleForCapstone(),isTakingS12n:i&&i.isTakingS12n(),ownsS12nCourse:i&&i.ownsCourse(a),sessionId:s.getSessionId()},_defineProperty(r,"courseId",n.getCourseId()),_defineProperty(r,"timeUntilStart",s.getTimeUntilStart()),_defineProperty(r,"enrollmentEndDate",s.getEnrollmentEndDate()),_defineProperty(r,"isPreviewMode",s.isPreviewMode()),_defineProperty(r,"endDate",s.getEndDate()),_defineProperty(r,"startDate",s.getStartDate()),_defineProperty(r,"isUpcoming",s.isUpcoming()),_defineProperty(r,"isEnrolled",s.isEnrolled()),_defineProperty(r,"followingSession",s.getFollowingSession()),r}),module.exports.BaseComp=g}.apply(exports,r))&&(module.exports=n)}).call(exports,e("U7vG"))},tnOd:function(module,exports,e){(function(t){var r,n;r=[e,exports,module,e("U7vG"),e("AwHF"),e("b62F"),e("CfcV"),e("Y2SO"),e("xA6A"),e("G894"),e("7fiC")],void 0!==(n=function(require,exports,module){"use strict";function _defaults(e,t){for(var r=Object.getOwnPropertyNames(t),n=0;n<r.length;n++){var o=r[n],s=Object.getOwnPropertyDescriptor(t,o);s&&s.configurable&&void 0===e[o]&&Object.defineProperty(e,o,s)}return e}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):_defaults(e,t))}var t,r,n=e("U7vG"),o=e("AwHF"),s=o.compose,i=e("b62F"),a=e("CfcV"),l=a.updateEnrollableAndFollowingSessions,c=e("Y2SO"),u=e("xA6A"),p=e("G894"),d=p.FormattedMessage;e("7fiC");var f=(r=t=function(e){function SessionSwitchBox(t,r){_classCallCheck(this,SessionSwitchBox);var n=_possibleConstructorReturn(this,e.call(this,t,r));return n.state={showModal:!1},n.handleClose=function(){n.setState({showModal:!1})},n.showModal=function(){n.setState({showModal:!0})},n.state={showModal:!1},n}return _inherits(SessionSwitchBox,e),SessionSwitchBox.prototype.componentDidMount=function componentDidMount(){this.props.followingSession||this.context.executeAction(l,{courseId:this.props.courseId,sessionId:this.props.sessionId})},SessionSwitchBox.prototype.render=function render(){var e=this.props,t=e.enrollableSession,r=e.followingSession,o=e.sessionDates,s=e.isSessionPrivate;if(!t)return n.createElement("div",null);return n.createElement("div",{className:"rc-EnrollBox rc-SessionSwitchBox"},n.createElement("div",{className:"current-session card-rich-interaction od-container cozy"},n.createElement("span",{className:"caption-text color-secondary-text"},u("You're currently enrolled in this session:")),n.createElement("span",{className:"current-session-dates caption-text color-secondary-text"},o)),!s&&n.createElement("div",{className:"upcoming-session od-container cozy styleguide theme-dark"},n.createElement("p",{className:"color-primary-text"},u("Upcoming session:")),n.createElement("h3",{className:"headline-2-text upcoming-session-dates color-primary-text"},n.createElement("span",{className:"session-date"},t.getStartDate())," - ",n.createElement("span",{className:"session-date"},t.getEndDate())),n.createElement("div",{className:"button-container"},n.createElement("button",{className:"primary",onClick:this.showModal},u("Switch sessions")))),!s&&r&&n.createElement("div",{className:"following-session card-rich-interaction"},n.createElement("span",{className:"caption-text color-secondary-text"},n.createElement(d,{message:u("Following session begins {startDate}"),startDate:r.getStartDate()}))),this.state.showModal&&n.createElement(i,{onClose:this.handleClose,courseId:this.props.courseId}))},SessionSwitchBox}(n.Component),t.propTypes={hasEnded:n.PropTypes.bool.isRequired,followingSession:n.PropTypes.object,enrollableSession:n.PropTypes.object,sessionId:n.PropTypes.string,courseId:n.PropTypes.string,sessionDates:n.PropTypes.string,isSessionPrivate:n.PropTypes.bool.isRequired},t.contextTypes={executeAction:n.PropTypes.func.isRequired},r);module.exports=s(c(["CourseStore","SessionStore"],function(e){var t=e.CourseStore,r=e.SessionStore;return{followingSession:r.getFollowingSession(),enrollableSession:r.getEnrollableSession(),courseId:t.getCourseId(),sessionId:r.getSessionId(),sessionDates:r.getSessionDates(),isSessionPrivate:r.isSessionPrivate()}}))(f)}.apply(exports,r))&&(module.exports=n)}).call(exports,e("U7vG"))},ujt1:function(module,exports,e){(function(t,_,r){var n,o;n=[e,exports,module,e("U7vG"),e("AwHF"),e("L+Qk"),e("wu4F"),e("9eZc"),e("aIeD"),e("gmdv"),e("JV/n"),e("iz93"),e("Ni+2"),e("relz"),e("IcMh"),e("CfcV"),e("5zNU"),e("Y2SO"),e("xA6A"),e("G894"),e("ynhf")],void 0!==(o=function(require,exports,module){"use strict";function _defaults(e,t){for(var r=Object.getOwnPropertyNames(t),n=0;n<r.length;n++){var o=r[n],s=Object.getOwnPropertyDescriptor(t,o);s&&s.configurable&&void 0===e[o]&&Object.defineProperty(e,o,s)}return e}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):_defaults(e,t))}var t,r,n,o,s=e("U7vG"),_=e("AwHF"),i=e("L+Qk"),a=e("wu4F"),l=e("9eZc"),c=e("aIeD"),u=c.OverlayTrigger,p=c.Tooltip,d=e("gmdv"),f=e("JV/n"),h=e("iz93"),m=e("Ni+2"),y=e("relz"),g=e("IcMh"),v=e("CfcV"),b=v.updateEnrollableAndFollowingSessions,P=e("5zNU"),C=P.PEER_REVIEW_SUGGEST_NEXT_SESSION_AFTER_DAYS,w=e("Y2SO"),S=e("xA6A"),E=e("G894"),O=E.FormattedHTMLMessage;e("ynhf");var T=(r=t=function(e){function MessageContainer(){return _classCallCheck(this,MessageContainer),_possibleConstructorReturn(this,e.apply(this,arguments))}return _inherits(MessageContainer,e),MessageContainer.prototype.render=function render(){var e=this.props,t=e.className,r=e.week;return s.createElement(f,{data:{week:r},trackingName:"instructor_message_quiz_reminder",className:i("rc-DeadlineMessage","od-section",t)},s.createElement("div",{className:"horizontal-box align-items-vertical-center deadline-container"},this.props.children))},MessageContainer}(s.Component),t.propTypes={week:s.PropTypes.number,className:s.PropTypes.string,children:s.PropTypes.node},r),k=function areAllPeerAssessSubmitted(e){return!_(e).findWhere({submitted:!1})};exports.SessionDeadlineMessage=s.createClass({displayName:"SessionDeadlineMessage",propTypes:{date:s.PropTypes.string.isRequired,time:s.PropTypes.string.isRequired,timezone:s.PropTypes.string.isRequired,week:s.PropTypes.number.isRequired,peerReviewsInfo:s.PropTypes.array},render:function render(){var e="deadline-tooltip",t=s.createElement(p,{id:e},s.createElement("span",null,S("Complete each week's assignments by the deadline."))),r=S("You must submit this week's assignments by\n      <span class='od-text-bold'>{date}, {time} {timezone}</span>.");return this.props.peerReviewsInfo.length&&!k(this.props.peerReviewsInfo)&&(r=S("This week has assignments that will be reviewed by your peers. If you submit late,\n        you might not get a grade. The deadline is\n        <span class='od-text-bold'>{date}, {time} {timezone}</span>")),s.createElement(T,{week:this.props.week},s.createElement("span",{className:"flex-1"},s.createElement("span",{className:"od-text-bold"},S("Deadline:")," "),s.createElement(O,{message:r,date:this.props.date,time:this.props.time,timezone:this.props.timezone})),s.createElement(u,{placement:"left",overlay:t,trigger:["hover","focus"]},s.createElement("i",{className:"cif-question-circle",role:"tooltip",tabIndex:"0","aria-describedby":e})))}});var x=(o=n=function(e){function SessionDeadlineOverdueMessage(){return _classCallCheck(this,SessionDeadlineOverdueMessage),_possibleConstructorReturn(this,e.apply(this,arguments))}return _inherits(SessionDeadlineOverdueMessage,e),SessionDeadlineOverdueMessage.prototype.componentDidMount=function componentDidMount(){this.props.enrollableSession||this.context.executeAction(b,{courseId:this.props.courseId,sessionId:this.props.sessionId})},SessionDeadlineOverdueMessage.prototype.render=function render(){var e=!1,t="deadline-overdue-tooltip",r=s.createElement(p,{id:t},s.createElement("span",null,S("\n            You can still pass an assignment after the deadline.\n            You may no longer submit assignments after the course ends.\n          "))),n=S("You can still pass! Remember, you need to pass these assignments\n      before the course ends on {sessionEndDate}, {sessionEndTime} {timezone}.");return this.props.peerReviewsInfo.length&&!k(this.props.peerReviewsInfo)&&(a.duration(a().diff(a(this.props.date))).asDays()>C?this.props.isSessionPrivate?n=S("This week has assignments that require peer reviews,\n            but the class has continued to later weeks. Since you are in a private session,\n            please contact your session instructor or administrator for assistance."):this.props.enrollableSession?(n=S("This week has assignments that require peer reviews,\n            but the class has continued to later weeks.\n            Switch sessions to submit before the new deadline and receive reviews from classmates.\n            Don't worry, your progress will be saved!"),e=!0):n=S("This week has assignments that require peer reviews,\n            but the class has continued to later weeks.\n            Please check back for an upcoming session of the course to continue\n            with the assignment and get grades on time."):n=S("This week has assignments that must be reviewed by peers.\n          Please submit as soon as possible or there may not be classmates who can review your work.")),s.createElement(T,{week:this.props.week},s.createElement(l,{name:"warning"}),s.createElement("span",{className:"flex-1"},s.createElement("span",{className:"od-text-bold"},S("Assignments Overdue:")," "),s.createElement(O,{message:n,sessionEndDate:this.props.sessionEndDate,sessionEndTime:this.props.sessionEndTime,timezone:this.props.timezone})),e&&s.createElement(g,null),!this.props.peerReviewsInfo.length&&s.createElement(u,{placement:"left",overlay:r,trigger:["hover","focus"]},s.createElement("i",{className:"cif-question-circle",role:"tooltip",tabIndex:"0","aria-describedby":t})))},SessionDeadlineOverdueMessage}(s.Component),n.propTypes={date:s.PropTypes.string.isRequired,time:s.PropTypes.string.isRequired,timezone:s.PropTypes.string.isRequired,week:s.PropTypes.number.isRequired,peerReviewsInfo:s.PropTypes.array,sessionEndDate:s.PropTypes.string.isRequired,sessionEndTime:s.PropTypes.string.isRequired,enrollableSession:s.PropTypes.object,sessionId:s.PropTypes.string,courseId:s.PropTypes.string,isSessionPrivate:s.PropTypes.bool.isRequired},n.contextTypes={executeAction:s.PropTypes.func.isRequired},o);exports.SessionDeadlineOverdueMessage=_.compose(w(["CourseStore","SessionStore"],function(e,t){var r=e.CourseStore,n=e.SessionStore;return{courseId:r.getCourseId(),enrollableSession:n.getEnrollableSession(),sessionId:n.getSessionId(),isSessionPrivate:n.isSessionPrivate()}}))(x),exports.ReminderMessage=s.createClass({displayName:"ReminderMessage",propTypes:{date:d.isRequired,numberOfQuizzes:s.PropTypes.number.isRequired,time:d.isRequired,timezone:s.PropTypes.string.isRequired,week:s.PropTypes.number.isRequired},render:function render(){return s.createElement(T,{week:this.props.week},s.createElement(l,{name:"warning"}),s.createElement(O,{message:S("\n  Remember, your {numQuizzes, plural, =1 {assignment } other {assignments }}\n  {numQuizzes, plural, =1 {is} other {are}} <span class='od-text-bold'> due on {date} at {time} {timezone}.</span>"),numQuizzes:this.props.numberOfQuizzes,date:this.props.date,time:this.props.time,timezone:this.props.timezone}))}}),exports.OverdueMessage=s.createClass({displayName:"OverdueMessage",propTypes:{date:s.PropTypes.string.isRequired,time:s.PropTypes.string.isRequired,timezone:s.PropTypes.string.isRequired,week:s.PropTypes.number.isRequired},render:function render(){return s.createElement(T,{week:this.props.week},s.createElement(l,{name:"warning"}),s.createElement("span",{className:"flex-1"},s.createElement(O,{message:S("\n<span class='od-text-bold'>Assignments Overdue:&nbsp;</span>\nLooks like you're a bit behind schedule, but you can still get caught up!"),date:this.props.date,time:this.props.time,timezone:this.props.timezone})),s.createElement(m,null))}}),exports.CongratulationMessage=s.createClass({displayName:"CongratulationMessage",propTypes:{week:s.PropTypes.number,hasPassedCourse:s.PropTypes.bool.isRequired},render:function render(){return this.props.hasPassedCourse?s.createElement(T,null,s.createElement(l,{name:"info"}),s.createElement(y,{hasPassedCourse:this.props.hasPassedCourse})):s.createElement(T,{week:this.props.week},s.createElement(l,{name:"info"}),s.createElement(h,{week:this.props.week}))}});var I=function DeferredDeadlineMessage(e){var t=e.date,r=e.time,n=e.timezone,o=e.name,i=e.link,a=e.isAlert,c="deferred-deadline-tooltip",d=s.createElement(p,{id:c},s.createElement("span",null,S("Complete each week's assignments by the deadline."))),f=S("You must submit <a href={link} target=\"_blank\">{name}</a> by\n    <span class='od-text-bold'>{date}, {time} {timezone}</span>.\n  ");return s.createElement(T,{week:1},a?s.createElement(l,{name:"warning"}):s.createElement(l,{name:"info"}),s.createElement("span",{className:"flex-1"},s.createElement(O,{message:f,date:t,time:r,timezone:n,name:o,link:i})),s.createElement(u,{placement:"left",overlay:d,trigger:["hover","focus"]},s.createElement("i",{className:"cif-question-circle",role:"tooltip",tabIndex:"0","aria-describedby":c})))};I.propTypes={date:s.PropTypes.string,time:s.PropTypes.string,timezone:s.PropTypes.string,name:s.PropTypes.string,link:s.PropTypes.string,isAlert:s.PropTypes.bool},exports.DeferredDeadlineMessage=I}.apply(exports,n))&&(module.exports=o)}).call(exports,e("U7vG"),e("AwHF"),e("wu4F"))},umVX:function(module,exports,e){var t=e("TVAS");"string"==typeof t&&(t=[[module.i,t,""]]);var r,n={};n.transform=void 0;var o=e("MTIv")(t,n);t.locals&&(module.exports=t.locals)},un40:function(module,exports){},"v/g5":function(module,exports,e){var t,r;t=[e,exports,module,e("go2y"),e("AwHF"),e("iFGm"),e("2TVH"),e("0nq6")],void 0!==(r=function(require,exports,module){"use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var t=e("go2y"),r=_interopRequireDefault(t),n=e("AwHF"),o=_interopRequireDefault(n),s=e("iFGm"),i=_interopRequireDefault(s),a=e("2TVH"),l=_interopRequireDefault(a),c=e("0nq6"),u=_interopRequireDefault(c),p=(0,l.default)("/api/entitySkills.v1",{type:"rest"});module.exports={byCourseBranchAndModule:function byCourseBranchAndModule(e,t){var n=(new i.default).addQueryParam("q","byCourseBranchAndModule").addQueryParam("branchId",e).addQueryParam("moduleId",t);return(0,r.default)(p.get(n.toString()))},put:function put(e,t){var n=[],s=[],a=new i.default(e);return(0,o.default)(t).each(function(e){e instanceof u.default?s.push(e.name):n.push(e.id)}),(0,r.default)(p.put(a.toString(),{data:{skillIds:n,newSkills:s}}))}}}.apply(exports,t))&&(module.exports=r)},v3P8:function(module,exports,e){var t=e("un40");"string"==typeof t&&(t=[[module.i,t,""]]);var r,n={};n.transform=void 0;var o=e("MTIv")(t,n);t.locals&&(module.exports=t.locals)},vO0t:function(module,exports,e){(function(t){var r,n;r=[e,exports,module,e("DNqs"),e("U7vG"),e("iFGm"),e("Y2SO"),e("80Yh"),e("ndE2")],void 0!==(n=function(require,exports,module){"use strict";var t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},r=e("DNqs"),n=r.State,o=e("U7vG"),s=e("iFGm"),i=e("Y2SO"),a=e("80Yh"),l=e("ndE2"),c=o.createClass({displayName:"LoggedOutBox",propTypes:{ensureAuthenticated:o.PropTypes.func.isRequired},contextTypes:{router:o.PropTypes.object.isRequired},handleLoginClick:function handleLoginClick(){this.props.ensureAuthenticated({redirectUrl:this.getRedirectUrlAfterAuth()})},getRedirectUrlAfterAuth:function getRedirectUrlAfterAuth(){var e=new s(this.context.router.location.pathname);return e.addQueryParam("action","enroll"),e.toString()},render:function render(){return o.createElement("div",{className:"rc-LoggedOutBox rc-EnrollBox cozy od-container theme-dark"},o.createElement("div",{className:"vertical-box styleguide"},o.createElement("h3",{className:"color-primary-text"},l("Log in to enroll in this course")),o.createElement("div",{className:"horizontal-box align-items-right"},o.createElement(a,{trackingName:"logged_out_box_login",onClick:this.handleLoginClick,className:"primary"},l("Log in")))))}});module.exports=i(c,["ApplicationStore"],function(e,r){var n=e.ApplicationStore,o=n.ensureAuthenticated;return t({},r,{ensureAuthenticated:o})})}.apply(exports,r))&&(module.exports=n)}).call(exports,e("U7vG"))},vhdR:function(module,exports,e){var t,r;t=[e,exports,module,e("iFGm"),e("TqCH"),e("6y23"),e("2TVH"),e("Elof")],void 0!==(r=function(require,exports,module){"use strict";var t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},r=e("iFGm"),n=e("TqCH"),o=e("6y23"),s=e("2TVH"),i=e("Elof"),a=s("/api/onDemandLearningObjectiveSubcategories.v1",{type:"rest"}),l=s("/api/onDemandStoredLearningObjectives.v1",{type:"rest"}),c=s("/api/onDemandLearningObjectives.v2",{type:"rest"}),u="category,description";exports.getSubcategories=function(e){var t=e.map(function(e){return e.value.toLowerCase()}),o=(new r).addQueryParam("fields",t.join(","));return a.get(o.toString()).then(function(e){return e.elements[0]}).then(function(e){var r={};return t.forEach(function(t){var o=e[t];r[t.toUpperCase()]=o.map(function(e){var t=i.stringKeyToTuple(e);return n.get(t[1])})}),r})},exports.getLearningObjective=function(e){var t=new r(e).addQueryParam("fields","category,description");return c.get(t.toString()).then(function(e){return e.elements[0]}).then(function(e){return new o(e)})},exports.getLearningObjectives=function(e){var t=(new r).addQueryParam("ids",e.join(",")).addQueryParam("fields","category,description");return c.get(t.toString()).then(function(e){return e.elements}).then(function(e){return e.map(function(e){return new o(e)})})},exports.createLearningObjective=function(e,n){var s=(new r).addQueryParam("fields","category,description"),i={data:t({},e.toJson(),{courseId:n})};return l.post(s.toString(),i).then(function(e){return e.elements[0]}).then(function(e){return new o(e)})}}.apply(exports,t))&&(module.exports=r)},"wN+H":function(module,exports,e){(function(t){var r,n;r=[e,exports,module,e("U7vG"),e("L+Qk"),e("80Yh"),e("HjFm"),e("IExl"),e("zkOb")],void 0!==(n=function(require,exports,module){"use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _interopRequireWildcard(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function _defaults(e,t){for(var r=Object.getOwnPropertyNames(t),n=0;n<r.length;n++){var o=r[n],s=Object.getOwnPropertyDescriptor(t,o);s&&s.configurable&&void 0===e[o]&&Object.defineProperty(e,o,s)}return e}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):_defaults(e,t))}var t,r,n=e("U7vG"),o=_interopRequireWildcard(n),s=e("L+Qk"),i=_interopRequireDefault(s),a=e("80Yh"),l=_interopRequireDefault(a),c=e("HjFm"),u=_interopRequireDefault(c),p=e("IExl"),d=_interopRequireDefault(p);e("zkOb");var f=(r=t=function(e){function SkillsReadOnly(){return _classCallCheck(this,SkillsReadOnly),_possibleConstructorReturn(this,e.apply(this,arguments))}return _inherits(SkillsReadOnly,e),SkillsReadOnly.prototype.render=function render(){var e=this.props,t=e.existingSkills,r=e.disabled,n=e.onEdit,s=0===t.length,a=(0,i.default)("nostyle",{empty:s});return o.createElement("div",{className:"rc-SkillsReadOnly"},o.createElement("button",{className:a,disabled:r,onClick:n},t.map(function(e){var t=e.id,r=e.name;return o.createElement("div",{key:t,className:"skill"},r)}),s&&(0,d.default)("Enter a skill")),o.createElement("div",{className:"horizontal-box align-items-right",style:{marginTop:"10px"}},!r&&o.createElement(l.default,{trackingName:"edit_skills",className:"secondary",onClick:n},(0,d.default)("Edit Skills")),r&&o.createElement("button",{className:"primary",disabled:!0},(0,d.default)("Saving..."))))},SkillsReadOnly}(o.Component),t.propTypes={existingSkills:o.PropTypes.arrayOf(o.PropTypes.instanceOf(u.default)).isRequired,onEdit:o.PropTypes.func.isRequired,disabled:o.PropTypes.bool},r);module.exports=f}.apply(exports,r))&&(module.exports=n)}).call(exports,e("U7vG"))},wPZt:function(module,exports,e){var t=e("I9ss");"string"==typeof t&&(t=[[module.i,t,""]]);var r,n={};n.transform=void 0;var o=e("MTIv")(t,n);t.locals&&(module.exports=t.locals)},"wq+F":function(module,exports,e){var t,r;t=[e,exports,module],void 0!==(r=function(require,exports,module){"use strict";function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var e=function EnumValue(e,t){_classCallCheck(this,EnumValue),this.value=e,this.label=t};module.exports=e}.apply(exports,t))&&(module.exports=r)},wqgN:function(module,exports,e){var t=e("NSE6");"string"==typeof t&&(t=[[module.i,t,""]]);var r,n={};n.transform=void 0;var o=e("MTIv")(t,n);t.locals&&(module.exports=t.locals)},xA6A:function(module,exports,e){var t=e("3Jty"),r=t.default?t.default:{},n=e("zQM/"),o=n(r);o.getLocale=function(){return"en"},module.exports=o},xYrb:function(module,exports,e){(function(t,_){var r,n;r=[e,exports,module,e("U7vG"),e("AwHF"),e("ANIw"),e("X8p4"),e("vv5O"),e("vPxY")],void 0!==(n=function(require,exports,module){"use strict";function _defaults(e,t){for(var r=Object.getOwnPropertyNames(t),n=0;n<r.length;n++){var o=r[n],s=Object.getOwnPropertyDescriptor(t,o);s&&s.configurable&&void 0===e[o]&&Object.defineProperty(e,o,s)}return e}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):_defaults(e,t))}var t,r,n=e("U7vG"),_=e("AwHF"),o=e("ANIw"),s=e("X8p4"),i=e("vv5O"),a=e("vPxY");module.exports=(r=t=function(e){function ModuleLessons(){return _classCallCheck(this,ModuleLessons),_possibleConstructorReturn(this,e.apply(this,arguments))}return _inherits(ModuleLessons,e),ModuleLessons.prototype.render=function render(){var e=this,t=_(this.props.lessons).chain().map(function(e){return e.isItemGroupLesson()?{itemGroup:e.getItemGroups().at(0),trackId:e.getTrackId()}:{lessons:[e],trackId:e.getTrackId()}}).reduce(function(e,t){if(0===e.length)return[t];var r=e[e.length-1];if(r.lessons&&t.lessons&&r.trackId===t.trackId)return e.slice(0,e.length-1).concat([{lessons:r.lessons.concat(t.lessons),trackId:r.trackId}]);return e.concat([t])},[]).value();return n.createElement("div",{className:"rc-ModuleLessons","data-elementtiming":"ondemand.week-module-lessons"},t.map(function(t,r){return n.createElement("div",{className:"od-section",key:r},n.createElement(s,{trackId:t.trackId,itemGroup:t.itemGroup,isNextItemChoiceStarted:e.props.isNextItemChoiceStarted,isNextItemLessonStarted:e.props.isNextItemLessonStarted,nextItemMetadata:e.props.nextItemMetadata}),n.createElement(o,{itemGroup:t.itemGroup,lessons:t.lessons,isNextItemChoiceStarted:e.props.isNextItemChoiceStarted,isNextItemLessonStarted:e.props.isNextItemLessonStarted,nextItemMetadata:e.props.nextItemMetadata}))}))},ModuleLessons}(n.Component),t.propTypes={lessons:n.PropTypes.arrayOf(n.PropTypes.instanceOf(i)).isRequired,isNextItemChoiceStarted:n.PropTypes.bool.isRequired,isNextItemLessonStarted:n.PropTypes.bool.isRequired,nextItemMetadata:n.PropTypes.instanceOf(a)},r)}.apply(exports,r))&&(module.exports=n)}).call(exports,e("U7vG"),e("AwHF"))},xwe5:function(module,exports,e){(function(t){var r,n;r=[e,exports,module,e("U7vG"),e("H+ns"),e("SRBf"),e("kOZ8")],void 0!==(n=function(require,exports,module){"use strict";function _defaults(e,t){for(var r=Object.getOwnPropertyNames(t),n=0;n<r.length;n++){var o=r[n],s=Object.getOwnPropertyDescriptor(t,o);s&&s.configurable&&void 0===e[o]&&Object.defineProperty(e,o,s)}return e}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):_defaults(e,t))}var t,r,n=e("U7vG"),o=e("H+ns"),s=e("SRBf"),i=s.hasPassedCourse,a=e("kOZ8"),l=(r=t=function(e){function EndOfCourseNpsModal(){return _classCallCheck(this,EndOfCourseNpsModal),_possibleConstructorReturn(this,e.apply(this,arguments))}return _inherits(EndOfCourseNpsModal,e),EndOfCourseNpsModal.prototype.render=function render(){return this.props.hasPassedCourse?n.createElement(a,{feedbackSystem:"NPS_END_OF_COURSE",followupSurveyLink:"https://www.surveymonkey.com/r/FCPMXC2",showFollowupQuestion:!0}):null},EndOfCourseNpsModal}(n.Component),t.propTypes={hasPassedCourse:n.PropTypes.bool},r);module.exports=o(l,["CourseViewGradeStore","VerificationStore"],function(e){var t=e.CourseViewGradeStore,r=e.VerificationStore;return{hasPassedCourse:i(t,r)}})}.apply(exports,r))&&(module.exports=n)}).call(exports,e("U7vG"))},ynhf:function(module,exports,e){var t=e("SM5u");"string"==typeof t&&(t=[[module.i,t,""]]);var r,n={};n.transform=void 0;var o=e("MTIv")(t,n);t.locals&&(module.exports=t.locals)},yuRy:function(module,exports){},zkOb:function(module,exports,e){var t=e("Xiqt");"string"==typeof t&&(t=[[module.i,t,""]]);var r,n={};n.transform=void 0;var o=e("MTIv")(t,n);t.locals&&(module.exports=t.locals)},zn06:function(module,exports,e){var t=e("adck");"string"==typeof t&&(t=[[module.i,t,""]]);var r,n={};n.transform=void 0;var o=e("MTIv")(t,n);t.locals&&(module.exports=t.locals)}});