/*! For license information please see dll.154.js.LICENSE.txt */
(window.webpackJsonp_name_dll=window.webpackJsonp_name_dll||[]).push([[154],{1286:function(e,t,n){"use strict";var r=n(1600);e.exports=r},1287:function(e,t,n){"use strict";var r=n(1602);e.exports=r},1600:function(e,t,n){"use strict";var r=n(218),a=n(122),o=n(64),i=n(1601);e.exports=function(e,t,n){var s,u,c,l,f,d,p,g;if(!r(e))throw new TypeError("invalid argument. First argument must be a collection. Value: `"+e+"`.");if(u={},2===arguments.length)d=t;else{if(c=i(u,t))throw c;d=n}if(!a(d))throw new TypeError("invalid argument. Last argument must be a function. Value: `"+d+"`.");for(s=u.thisArg,f=e.length,l={},g=0;g<f;g++)p=d.call(s,e[g],g),o(l,p)?l[p]+=1:l[p]=1;return l}},1601:function(e,t,n){"use strict";var r=n(52),a=n(64);e.exports=function(e,t){return r(t)?(a(t,"thisArg")&&(e.thisArg=t.thisArg),null):new TypeError("invalid argument. Options must be an object. Value: `"+t+"`.")}},1602:function(e,t,n){"use strict";e.exports=function(e){return e}},3918:function(e,t,n){"use strict";n.r(t);var r=n(13),a=n.n(r),o=n(12),i=n.n(o),s=n(14),u=n.n(s),c=n(15),l=n.n(c),f=n(8),d=n.n(f),p=n(0),g=n.n(p),h=n(1),v=n.n(h),m=n(123),w=n(513),y=n(85),b=n.n(y),x=n(87),k=n.n(x),P=n(319),R=n.n(P),E=n(1286),A=n.n(E),H=n(1287),q=n.n(H);function T(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 n,r=d()(e);if(t){var a=d()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return l()(this,n)}}var S=function(e){u()(n,e);var t=T(n);function n(e){var r;return a()(this,n),(r=t.call(this,e)).state={data:null},r}return i()(n,[{key:"render",value:function(){var e=this;return g.a.createElement(m.default,{onHide:this.props.onHide,show:this.props.show,id:"sketch-feedback-modal",dialogClassName:"modal-100w"},g.a.createElement(m.default.Header,{closeButton:!0},g.a.createElement(m.default.Title,{as:"h3"},"Student Feedback for ",this.props.id," (number of slides: ",this.props.noPages,")")),g.a.createElement(m.default.Body,null,g.a.createElement(w.default,{data:this.state.data,removeButtons:!0,onClick:function(t){var n=t.points[0];n&&(e.props.gotoPage(n.pointIndex),e.props.onHide())},layout:{xaxis:{fixedrange:!0},yaxis:{fixedrange:!0},barmode:"relative"}})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){if(k()(t.data)){for(var n=e.session.socketActions,r="".concat(e.id,"-slide-"),a={},o=0;o<n.length;o++){var i=n[o].id;R()(i,r)&&!n[o].owner&&(a[i]||(a[i]=[]),a[i].push(n[o].value))}for(var s=b()(a),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 g="".concat(e.id,"-slide-").concat(e.toOriginalPage(p));if(a[g]){var h=A()(a[g],q.a);d[p]=h[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}}}}]),n}(p.Component);S.propTypes={id:v.a.string.isRequired,noPages:v.a.number.isRequired,toOriginalPage:v.a.func.isRequired,gotoPage:v.a.func.isRequired,onHide:v.a.func,show:v.a.bool.isRequired},S.defaultProps={onHide:function(){}},t.default=S}}]);