import{j as e,b as r,f as t,_ as n,g as o,d as i,a as s,c as l,e as p,h as c,k as d,i as v,l as m,w as h,m as y}from"./vendor.js";import{createRef as x}from"react";import j from"react-dom";export{a as useBuilder,b as useElement,u as useOptions}from"./hooks.js";import{A as g}from"./core/App/index.js";export{T as Text}from"./core/Text/index.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/Field.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 w(e,r){var t=d(e);if(v){var n=v(e);r&&(n=m(n).call(n,(function(r){return l(e,r).enumerable}))),t.push.apply(t,n)}return t}function k(e){for(var r=1;r<arguments.length;r++){var a,u=null!=arguments[r]?arguments[r]:{};if(r%2)t(a=w(Object(u),!0)).call(a,(function(r){n(e,r,u[r])}));else if(o)i(e,o(u));else{var p;t(p=w(Object(u))).call(p,(function(r){s(e,r,l(u,r))}))}}return e}var A=new h,E=function(){function e(){y(this,e),A.set(this,{writable:!0,value:x()})}return p(e,[{key:"setRef",value:function(e){c(this,A).current=e}},{key:"addGroup",value:function(){for(var e,r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];return null===(e=c(this,A).current)||void 0===e||e.addGroup.apply(e,t),this}},{key:"removeGroup",value:function(){for(var e,r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];return null===(e=c(this,A).current)||void 0===e||e.removeGroup.apply(e,t),this}},{key:"setContent",value:function(){for(var e,r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];return null===(e=c(this,A).current)||void 0===e||e.setContent.apply(e,t),this}},{key:"addElement",value:function(){for(var e,r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];return null===(e=c(this,A).current)||void 0===e||e.addElement.apply(e,t),this}},{key:"removeElement",value:function(){for(var e,r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];return null===(e=c(this,A).current)||void 0===e||e.removeElement.apply(e,t),this}},{key:"setElement",value:function(){for(var e,r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];return null===(e=c(this,A).current)||void 0===e||e.setElement.apply(e,t),this}},{key:"undo",value:function(){for(var e,r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];null===(e=c(this,A).current)||void 0===e||e.undo.apply(e,t)}},{key:"redo",value:function(){for(var e,r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];null===(e=c(this,A).current)||void 0===e||e.redo.apply(e,t)}},{key:"isUndoPossible",value:function(){var e;return null===(e=c(this,A).current)||void 0===e?void 0:e.isUndoPossible}},{key:"isRedoPossible",value:function(){var e;return null===(e=c(this,A).current)||void 0===e?void 0:e.isRedoPossible}},{key:"setTexts",value:function(){for(var e,r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];return null===(e=c(this,A).current)||void 0===e?void 0:e.setTexts.apply(e,t)}},{key:"getText",value:function(){for(var e,r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];return null===(e=c(this,A).current)||void 0===e?void 0:e.getText.apply(e,t)}}]),e}(),R=function(t){var n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=new E;return j.render(e.exports.jsx(g,k({ref:r(n=i.setRef).call(n,i)},o)),t),i};export{R as render};
//# sourceMappingURL=index.js.map
