(self.webpackChunkReactFormBuilder=self.webpackChunkReactFormBuilder||[]).push([[733],{6733:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>j});var i=n(484),r=n(6610),o=n(5991),a=n(6156);function c(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function u(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,c(e,t,"get"))}function l(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,c(e,t,"set"),n),n}var s=n(6888),f=n(3757),h=n(9112),p=n(6591);function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function d(e){for(var t,n=1;n<arguments.length;n++)t=null==arguments[n]?{}:arguments[n],n%2?v(Object(t),!0).forEach((function(n){(0,a.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):v(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}));return e}function g(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}var w=new WeakMap,O=new WeakMap,b=new WeakMap,y=new WeakMap,m=function(){function e(t){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if((0,r.Z)(this,e),g(this,w,{writable:!0,value:void 0}),g(this,O,{writable:!0,value:void 0}),g(this,b,{writable:!0,value:void 0}),g(this,y,{writable:!0,value:void 0}),this.container=t,this.config=n,!(t&&t instanceof HTMLElement))throw new Error("`container` (argument 0) is required to initialize the image editor plugin.");l(this,w,f.render),l(this,O,f.unmountComponentAtNode),l(this,b,{}),l(this,y,{})}return(0,o.Z)(e,[{key:"render",value:function(e){"object"===(0,i.Z)(e)&&(this.config=this.config=(0,p.Z)(this.config||{},e)),this.config=d(d({},this.config),{},{getCurrentImgDataFnRef:u(this,b),updateStateFnRef:u(this,y)}),u(this,w).call(this,(0,s.createElement)(h.default,this.config),this.container)}},{key:"terminate",value:function(){u(this,O).call(this,this.container)}},{key:"getCurrentImgData",value:function(e){var t,n;return(null===(t=u(this,b))||void 0===t||null===(n=t.current)||void 0===n?void 0:n.call(t,e))||{}}},{key:"updateState",value:function(e){var t,n;null===(t=u(this,y))||void 0===t||null===(n=t.current)||void 0===n||n.call(t,e)}}]),e}();(0,a.Z)(m,"TABS",h.TABS),(0,a.Z)(m,"TOOLS",h.TOOLS),m.TABS=h.TABS,m.TOOLS=h.TOOLS;const j=m}}]);