(this["webpackJsonpclient-view-genially"]=this["webpackJsonpclient-view-genially"]||[]).push([[3],{789:function(e,t){},790:function(e,t){},791:function(e,t){},793:function(e,t,i){"use strict";i.r(t);var n,o=i(6),r=i(7),a=i(9),c=i(8),l=i(0),s=i.n(l),u=i(2),p=i.n(u),h=i(5),d=i(12),v=i(792),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.ed23b63f.chunk.js.map