(this["webpackJsonpclient-view-genially"]=this["webpackJsonpclient-view-genially"]||[]).push([[5],{894:function(e,t){},895:function(e,t){},896:function(e,t){},906:function(e,t,i){"use strict";i.r(t);var n,o=i(12),r=i(17),a=i(20),c=i(19),l=i(0),s=i.n(l),u=i(1),p=i.n(u),h=i(7),d=i(13),v=i(904),w=Object(h.b)("viewStore","paintStore")(n=Object(h.c)(n=function(e){Object(a.a)(i,e);var t=Object(c.a)(i);function i(){var e;Object(o.a)(this,i);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).init=function(t){e.sketch=t},e}return Object(r.a)(i,[{key:"componentDidMount",value:function(){var e=this.props,t=e.paintStore,i=e.viewStore;t.init(this.sketch,i.currentLocation)}},{key:"componentWillUnmount",value:function(){var e=this.props,t=e.paintStore,i=e.viewStore,n=e.slideId;n!==i.currentLocation&&t.unmount(n,this.sketch)}},{key:"render",value:function(){var e=this,t=this.props,i=t.paintStore,n=t.viewStore,o=t.slideId,r=i.sketchStorage,a=i.selectedColor,c=i.widthSelected;return s.a.createElement("div",{className:"genially-view-sketch-field-container"},s.a.createElement(v.a,{ref:function(t){return e.init(t)},height:n.heightSlide,width:n.widthSlide,tool:v.b.Pencil,lineColor:a,lineWidth:c,defaultValue:r[o],className:Object(d.a)(["genially-view-sketch-field",{"genially-view-vertical-center":n.isMarginTop,"genially-view-horizontal-center":!n.isMarginTop}])}))}}]),i}(l.Component))||n)||n;w.wrappedComponent.propTypes={viewStore:p.a.object.isRequired,paintStore:p.a.object.isRequired,slideId:p.a.string.isRequired},t.default=w}}]);
//# sourceMappingURL=sketch.4b43e7f2.chunk.js.map