import{a5 as e,a6 as r,j as t,k as n,l as o,m as i,n as l,o as p,a7 as d,a8 as v,a9 as m,t as h,u as y,f as j}from"./vendor.js";import{createRef as x}from"react";import g from"react-dom";import{A as w}from"./core/App/index.js";export{A as Builder}from"./core/App/index.js";export{T as Text}from"./core/Text/index.js";export{u as useBuilder,c as useElement,a as useOptions}from"./hooks.js";export{s as sanitizeHTML}from"./utils.js";export{f as localeFr}from"./languages/fr.js";import"react-popper";import"./contexts.js";import"./components.js";import"./core/Row/index.js";import"./core/Col/index.js";import"./core/Catalogue/index.js";import"./core/Icon/index.js";import"./core/Option/index.js";import"./core/Element/index.js";import"./defaults.js";import"./core/Draggable/index.js";import"./core/Droppable/index.js";import"./core/Editable/index.js";import"./core/Editable/Form.js";import"./core/Editable/Field.js";import"./core/Element/Property.js";import"./core/Col/index.settings.js";import"./core/Row/index.options.js";import"./core/Row/index.settings.js";import"./core/EmptySpace/index.js";import"./core/EmptySpace/index.settings.js";import"./fields.js";import"./core/CoreImageField/index.js";import"./core/Builder/index.js";function b(e,r){var t=h(e);if(y){var n=y(e);r&&(n=j(n).call(n,(function(r){return p(e,r).enumerable}))),t.push.apply(t,n)}return t}function k(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?b(Object(t),!0).forEach((function(r){n(e,r,t[r])})):o?i(e,o(t)):b(Object(t)).forEach((function(r){l(e,r,p(t,r))}))}return e}function E(e,r,t){!function(e,r){if(r.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,r),r.set(e,t)}var C=new d,R=new d,O=function(){function t(e){v(this,t),E(this,C,{writable:!0,value:x()}),E(this,R,{writable:!0,value:null}),m(this,R,e)}return e(t,[{key:"setRef",value:function(e){r(this,C).current=e}},{key:"addGroup",value:function(){for(var e,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return null===(e=r(this,C).current)||void 0===e||e.addGroup.apply(e,n),this}},{key:"removeGroup",value:function(){for(var e,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return null===(e=r(this,C).current)||void 0===e||e.removeGroup.apply(e,n),this}},{key:"setContent",value:function(){for(var e,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return null===(e=r(this,C).current)||void 0===e||e.setContent.apply(e,n),this}},{key:"addElement",value:function(){for(var e,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return null===(e=r(this,C).current)||void 0===e||e.addElement.apply(e,n),this}},{key:"removeElement",value:function(){for(var e,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return null===(e=r(this,C).current)||void 0===e||e.removeElement.apply(e,n),this}},{key:"setElement",value:function(){for(var e,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return null===(e=r(this,C).current)||void 0===e||e.setElement.apply(e,n),this}},{key:"undo",value:function(){for(var e,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];null===(e=r(this,C).current)||void 0===e||e.undo.apply(e,n)}},{key:"redo",value:function(){for(var e,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];null===(e=r(this,C).current)||void 0===e||e.redo.apply(e,n)}},{key:"isUndoPossible",value:function(){var e;return null===(e=r(this,C).current)||void 0===e?void 0:e.isUndoPossible()}},{key:"isRedoPossible",value:function(){var e;return null===(e=r(this,C).current)||void 0===e?void 0:e.isRedoPossible()}},{key:"setTexts",value:function(){for(var e,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return null===(e=r(this,C).current)||void 0===e?void 0:e.setTexts.apply(e,n)}},{key:"getText",value:function(){for(var e,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return null===(e=r(this,C).current)||void 0===e?void 0:e.getText.apply(e,n)}},{key:"setOverrides",value:function(){for(var e,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return null===(e=r(this,C).current)||void 0===e?void 0:e.setOverrides.apply(e,n)}},{key:"destroy",value:function(){g.unmountComponentAtNode(r(this,R))}}]),t}(),P=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new O(e);return g.render(t.exports.jsx(w,k({ref:n.setRef.bind(n)},r)),e),n};export{O as Lib,P as render};
//# sourceMappingURL=index.js.map
