/*! For license information please see dll.153.js.LICENSE.txt */
(window.webpackJsonp_name_hash_=window.webpackJsonp_name_hash_||[]).push([[153],{1222:function(e,t,r){"use strict";var n=r(1538);e.exports=n},1223:function(e,t,r){"use strict";var n=r(1540);e.exports=n},1324:function(e,t,r){"use strict";var n=r(1325);e.exports=n},1325:function(e,t,r){"use strict";var n=r(100).isPrimitive,i=r(21).isPrimitive;e.exports=function(e,t,r){var a,o;if(!i(e))throw new TypeError("invalid argument. First argument must be a string primitive. Value: `"+e+"`.");if(!i(t))throw new TypeError("invalid argument. Second argument must be a string primitive. Value: `"+t+"`.");if(arguments.length>2){if(!n(r))throw new TypeError("invalid argument. Third argument must be an integer. Value: `"+r+"`.");a=r<0?e.length+r:r}else a=0;if(0===t.length)return!0;if(a<0||a+t.length>e.length)return!1;for(o=0;o<t.length;o++)if(e.charCodeAt(a+o)!==t.charCodeAt(o))return!1;return!0}},1538:function(e,t,r){"use strict";var n=r(210),i=r(134),a=r(63),o=r(1539);e.exports=function(e,t,r){var s,u,c,l,f,d,p,h;if(!n(e))throw new TypeError("invalid argument. First argument must be a collection. Value: `"+e+"`.");if(u={},2===arguments.length)d=t;else{if(c=o(u,t))throw c;d=r}if(!i(d))throw new TypeError("invalid argument. Last argument must be a function. Value: `"+d+"`.");for(s=u.thisArg,f=e.length,l={},h=0;h<f;h++)p=d.call(s,e[h],h),a(l,p)?l[p]+=1:l[p]=1;return l}},1539:function(e,t,r){"use strict";var n=r(50),i=r(63);e.exports=function(e,t){return n(t)?(i(t,"thisArg")&&(e.thisArg=t.thisArg),null):new TypeError("invalid argument. Options must be an object. Value: `"+t+"`.")}},1540:function(e,t,r){"use strict";e.exports=function(e){return e}},3857:function(e,t,r){"use strict";r.r(t);var n=r(13),i=r.n(n),a=r(12),o=r.n(a),s=r(14),u=r.n(s),c=r(15),l=r.n(c),f=r(8),d=r.n(f),p=r(0),h=r.n(p),g=r(1),m=r.n(g),v=r(118),w=r(479),y=r(84),b=r.n(y),x=r(85),P=r.n(x),E=r(1324),k=r.n(E),R=r(1222),A=r.n(R),T=r(1223),H=r.n(T);function V(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=d()(e);if(t){var i=d()(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return l()(this,r)}}var _=function(e){u()(r,e);var t=V(r);function r(e){var n;return i()(this,r),(n=t.call(this,e)).state={data:null},n}return o()(r,[{key:"render",value:function(){var e=this;return h.a.createElement(v.default,{onHide:this.props.onHide,show:this.props.show,id:"sketch-feedback-modal",dialogClassName:"modal-100w"},h.a.createElement(v.default.Header,{closeButton:!0},h.a.createElement(v.default.Title,{as:"h3"},"Student Feedback for ",this.props.id," (number of slides: ",this.props.noPages,")")),h.a.createElement(v.default.Body,null,h.a.createElement(w.default,{data:this.state.data,removeButtons:!0,onClick:function(t){var r=t.points[0];r&&(e.props.gotoPage(r.pointIndex),e.props.onHide())},layout:{xaxis:{fixedrange:!0},yaxis:{fixedrange:!0},barmode:"relative"}})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){if(P()(t.data)){for(var r=e.session.socketActions,n="".concat(e.id,"-slide-"),i={},a=0;a<r.length;a++){var o=r[a].id;k()(o,n)&&!r[a].owner&&(i[o]||(i[o]=[]),i[o].push(r[a].value))}for(var s=b()(i),u=[],c=["confused","understood"],l=0;l<c.length;l++){for(var f=new Array(s.length),d=new Array(s.length),p=0;p<e.noPages;p++){f[p]="Slide "+(p+1);var h="".concat(e.id,"-slide-").concat(e.toOriginalPage(p));if(i[h]){var g=A()(i[h],H.a);d[p]=g[c[l]],0===l&&(d[p]*=-1)}else d[p]=0}u.push({x:f,y:d,type:"bar",name:c[l],marker:{color:1===l?"rgb(40,167,69)":"rgb(220,53,69)",cursor:"pointer"}})}return{data:u}}}}]),r}(p.Component);_.propTypes={id:m.a.string.isRequired,noPages:m.a.number.isRequired,toOriginalPage:m.a.func.isRequired,gotoPage:m.a.func.isRequired,onHide:m.a.func,show:m.a.bool.isRequired},_.defaultProps={onHide:function(){}},t.default=_}}]);