/*! For license information please see dll.185.js.LICENSE.txt */
(window.webpackJsonp_name_dll=window.webpackJsonp_name_dll||[]).push([[185],{1199:function(e,t,r){"use strict";var n=r(1534);e.exports=n},1200:function(e,t,r){"use strict";var n=r(1536);e.exports=n},1240:function(e,t,r){"use strict";var n=r(1241);e.exports=n},1241:function(e,t,r){"use strict";var n=r(69).isPrimitive,i=r(32).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}},1534:function(e,t,r){"use strict";var n=r(153),i=r(107),a=r(50),o=r(1535);e.exports=function(e,t,r){var u,s,c,l,f,d,p,g;if(!n(e))throw new TypeError("invalid argument. First argument must be a collection. Value: `"+e+"`.");if(s={},2===arguments.length)d=t;else{if(c=o(s,t))throw c;d=r}if(!i(d))throw new TypeError("invalid argument. Last argument must be a function. Value: `"+d+"`.");for(u=s.thisArg,f=e.length,l={},g=0;g<f;g++)p=d.call(u,e[g],g),a(l,p)?l[p]+=1:l[p]=1;return l}},1535:function(e,t,r){"use strict";var n=r(146),i=r(50);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+"`.")}},1536:function(e,t,r){"use strict";e.exports=function(e){return e}},3568:function(e,t,r){"use strict";r.r(t);var n=r(14),i=r.n(n),a=r(13),o=r.n(a),u=r(15),s=r.n(u),c=r(16),l=r.n(c),f=r(8),d=r.n(f),p=r(0),g=r.n(p),h=r(1),m=r.n(h),v=r(998),w=r(375),y=r(90),b=r.n(y),x=r(996),P=r.n(x),E=r(1240),k=r.n(E),R=r(1199),A=r.n(R),T=r(1200),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 q=function(e){s()(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 g.a.createElement(v.default,{onHide:this.props.onHide,show:this.props.show,id:"sketch-feedback-modal",dialogClassName:"modal-100w"},g.a.createElement(v.default.Header,{closeButton:!0},g.a.createElement(v.default.Title,{as:"h3"},"Student Feedback for ",this.props.id," (number of slides: ",this.props.noPages,")")),g.a.createElement(v.default.Body,null,g.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 u=b()(i),s=[],c=["confused","understood"],l=0;l<c.length;l++){for(var f=new Array(u.length),d=new Array(u.length),p=0;p<e.noPages;p++){f[p]="Slide "+(p+1);var g="".concat(e.id,"-slide-").concat(e.toOriginalPage(p));if(i[g]){var h=A()(i[g],H.a);d[p]=h[c[l]],0===l&&(d[p]*=-1)}else d[p]=0}s.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:s}}}}]),r}(p.Component);q.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},q.defaultProps={onHide:function(){}},t.default=q}}]);