(self.webpackChunk_genially_view_client=self.webpackChunk_genially_view_client||[]).push([[103],{20669:(e,l,t)=>{"use strict";t.r(l),t.d(l,{default:()=>d});var i=t(85159),n=t(34719),a=t(16429),c=t(70241),s=t(29324);const d=(0,i.Pi)((e=>{let{slideId:l}=e;const t=(0,c.m)(),{viewStore:i}=t,d=t.paintStore,r=(0,n.useRef)(null);(0,n.useLayoutEffect)((()=>{if(!d.enabled)return;const e=r.current;return d.init(e),()=>{d.save(l,e),d.unmount()}}),[d,d.enabled,l]);const{sketchStorage:o,selectedColor:u,widthSelected:h}=d,f=i.findSlideById(l),w=i.calculateSlideScaleToFit(f);return(0,s.jsx)("div",{className:"genially-view-sketch-field-container",children:(0,s.jsx)(a.sL,{style:{transform:"scale(".concat(w,")")},ref:r,height:f.Height,width:f.Width,tool:a.w1.Pencil,lineColor:u,lineWidth:h,defaultValue:o[l],className:"genially-view-sketch-field"})})}))},24960:()=>{},26759:()=>{},56272:()=>{}}]);
//# sourceMappingURL=https://statics-view.genially.com/view/static/js/sketch.35b6193e.chunk.js.map