import{_ as e,a as r,j as t,b as n,f as o,c as i,g as s,d as l,e as p,h as c,w as d,i as m,k as v,l as y,m as h}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{A as Builder}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/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 w(e,r){var t=v(e);if(y){var n=y(e);r&&(n=h(n).call(n,(function(r){return c(e,r).enumerable}))),t.push.apply(t,n)}return t}function k(e){for(var r=1;r<arguments.length;r++){var t,n=null!=arguments[r]?arguments[r]:{};if(r%2)o(t=w(Object(n),!0)).call(t,(function(r){i(e,r,n[r])}));else if(s)l(e,s(n));else{var a;o(a=w(Object(n))).call(a,(function(r){p(e,r,c(n,r))}))}}return e}var E=new d,R=function(){function t(){m(this,t),E.set(this,{writable:!0,value:x()})}return e(t,[{key:"setRef",value:function(e){r(this,E).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,E).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,E).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,E).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,E).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,E).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,E).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,E).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,E).current)||void 0===e||e.redo.apply(e,n)}},{key:"isUndoPossible",value:function(){var e;return null===(e=r(this,E).current)||void 0===e?void 0:e.isUndoPossible()}},{key:"isRedoPossible",value:function(){var e;return null===(e=r(this,E).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,E).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,E).current)||void 0===e?void 0:e.getText.apply(e,n)}}]),t}(),C=function(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=new R;return j.render(t.exports.jsx(g,k({ref:n(r=i.setRef).call(r,i)},o)),e),i};export{R as Lib,C as render};
//# sourceMappingURL=index.js.map
