{"version":3,"file":"react-cropper-CzK16VOa.js","sources":["../../node_modules/react-cropper/dist/react-cropper.es.js"],"sourcesContent":["import e,{useRef as r,useEffect as o}from\"react\";import t from\"cropperjs\";var n=function(){return n=Object.assign||function(e){for(var r,o=1,t=arguments.length;o0&&e.zoomTo(s)}(e.currentTarget.cropper,M),w&&w(e)}}));x&&x(e)}return function(){var e,r;null===(r=null===(e=E.current)||void 0===e?void 0:e.cropper)||void 0===r||r.destroy()}}),[E]);var R=function(e){return c.reduce((function(e,r){var o=e,t=r;return o[t],a(o,[\"symbol\"==typeof t?t:t+\"\"])}),e)}(n(n({},j),{crossOrigin:g,src:v,alt:C}));return e.createElement(\"div\",{style:f,className:m},e.createElement(\"img\",n({},R,{style:i,ref:E})))}));export{l as Cropper,l as default};\n"],"names":["n","e","r","o","a","c","i","l","s","u","p","d","v","f","m","g","y","b","h","O","T","z","C","w","x","j","M","E","t","R"],"mappings":"oaAA0E,IAAIA,EAAE,UAAU,CAAC,OAAOA,EAAE,OAAO,QAAQ,SAASC,EAAE,CAAC,QAAQC,EAAEC,EAAE,EAAE,EAAE,UAAU,OAAOA,EAAE,EAAEA,IAAI,QAAQH,KAAKE,EAAE,UAAUC,CAAC,EAAE,OAAO,UAAU,eAAe,KAAKD,EAAEF,CAAC,IAAIC,EAAED,CAAC,EAAEE,EAAEF,CAAC,GAAG,OAAOC,CAAC,EAAED,EAAE,MAAM,KAAK,SAAS,CAAC,EAAE,SAASI,EAAEH,EAAEC,EAAE,CAAC,IAAIC,EAAE,GAAG,QAAQ,KAAKF,EAAE,OAAO,UAAU,eAAe,KAAKA,EAAE,CAAC,GAAGC,EAAE,QAAQ,CAAC,EAAE,IAAIC,EAAE,CAAC,EAAEF,EAAE,CAAC,GAAG,GAASA,GAAN,MAAqB,OAAO,OAAO,uBAA1B,WAAgD,CAAC,IAAID,EAAE,EAAE,IAAI,EAAE,OAAO,sBAAsBC,CAAC,EAAED,EAAE,EAAE,OAAOA,IAAIE,EAAE,QAAQ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