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