!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("openstack-uicore-foundation",[],t):"object"==typeof exports?exports["openstack-uicore-foundation"]=t():e["openstack-uicore-foundation"]=t()}(this,(()=>(()=>{"use strict";var e={1116:e=>{e.exports=require("@babel/runtime/helpers/defineProperty")},2015:e=>{e.exports=require("react")}},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var a=t[o]={exports:{}};return e[o](a,a.exports,r),a.exports}(()=>{r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t}})(),(()=>{r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})}})(),(()=>{r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})();var o={};r.r(o),r.d(o,{default:()=>p});var n=r(1116),a=r.n(n),i=r(2015),c=r.n(i);const s=require("jodit-react");var u=r.n(s);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}const p=({id:e,value:t,error:r,className:o,onChange:n,options:s={},extraButtons:p=[]})=>{const f=(0,i.useRef)(null),d=(0,i.useMemo)((()=>function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){a()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({placeholder:"Start typing...",className:o,buttons:["bold","italic","strikethrough","underline","|","source","|","font","fontsize","align","|","ul","ol","image","link","|","undo","redo","|","spellcheck","table",...p],askBeforePasteHTML:!1,askBeforePasteFromWord:!1,pasteFromWord:{enable:!0,convertUnitsToPixel:!0},beautifyHTML:!1},s)),[]);return c().createElement("div",{className:"editor-input"},c().createElement(u(),{ref:f,key:t,value:t,config:d,onBlur:t=>{n({target:{id:e,value:t,type:"texteditor"}})}}),r&&c().createElement("p",{className:"error-label"},r))};return o})()));
//# sourceMappingURL=editor-input-v3.js.map