(self.webpackChunk_genially_view_client=self.webpackChunk_genially_view_client||[]).push([[103],{43967:(e,i,t)=>{"use strict";t.r(i),t.d(i,{default:()=>p});var n,o=t(34719),s=t(52007),r=t.n(s),l=t(85159),c=t(86044),a=t(16429),d=t(29324);let h=(0,l.f3)("viewStore","paintStore")(n=(0,l.Pi)(n=class extends o.Component{constructor(){super(...arguments),this.init=e=>{this.sketch=e}}componentDidMount(){const{paintStore:e,viewStore:i}=this.props;e.init(this.sketch,i.currentLocation)}componentWillUnmount(){const{paintStore:e,viewStore:i,slideId:t}=this.props;t!==i.currentLocation&&e.unmount(t,this.sketch)}render(){const{paintStore:e,viewStore:i,slideId:t}=this.props,{sketchStorage:n,selectedColor:o,widthSelected:s}=e;return(0,d.jsx)("div",{className:"genially-view-sketch-field-container",children:(0,d.jsx)(a.sL,{ref:e=>this.init(e),height:i.heightSlide,width:i.widthSlide,tool:a.w1.Pencil,lineColor:o,lineWidth:s,defaultValue:n[t],className:(0,c.Z)(["genially-view-sketch-field",{"genially-view-vertical-center":i.isMarginTop,"genially-view-horizontal-center":!i.isMarginTop}])})})}})||n)||n;h.wrappedComponent.propTypes={viewStore:r().object.isRequired,paintStore:r().object.isRequired,slideId:r().string.isRequired};const p=h},24960:()=>{},26759:()=>{},56272:()=>{}}]);
//# sourceMappingURL=https://statics-view.genially.com/view/static/js/sketch.a7177161.chunk.js.map