davis-components 0.2.76 → 0.2.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.cjs.js +1 -1
- package/dist/main.es.js +1 -32
- package/package.json +1 -1
- package/dist/html-to-draftjs-B9AEVXud.cjs +0 -3
- package/dist/html-to-draftjs-RFZV05xC.js +0 -175
- package/dist/immutable-1xGvJqMq.cjs +0 -1
- package/dist/immutable-rR_5sPGm.js +0 -2632
- package/dist/main-6LokR9lF.cjs +0 -75
- package/dist/main-BPyH3ZgY.cjs +0 -9
- package/dist/main-BmaRtLds.js +0 -19154
- package/dist/main-DCskLi4i.js +0 -569
- package/dist/main.css +0 -1
- package/dist/react-draft-wysiwyg-Cv7mdYFM.js +0 -4056
- package/dist/react-draft-wysiwyg-RPH5IU8c.cjs +0 -9
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";const Mo=require("./main-6LokR9lF.cjs"),oi=require("react"),ri=require("./immutable-1xGvJqMq.cjs");function ii(Ge,rt){for(var Ze=0;Ze<rt.length;Ze++){const ze=rt[Ze];if(typeof ze!="string"&&!Array.isArray(ze)){for(const Qe in ze)if(Qe!=="default"&&!(Qe in Ge)){const pe=Object.getOwnPropertyDescriptor(ze,Qe);pe&&Object.defineProperty(Ge,Qe,pe.get?pe:{enumerable:!0,get:()=>ze[Qe]})}}}return Object.freeze(Object.defineProperty(Ge,Symbol.toStringTag,{value:"Module"}))}var jo={exports:{}};(function(Ge,rt){(function(Ze,ze){Ge.exports=ze(oi,Mo.Draft,ri.requireImmutable())})(window,function(Ze,ze,Qe){return Je={},pe.m=Rt=[function(S,A,E){S.exports=E(10)()},function(S,A){S.exports=Ze},function(S,A,E){var C;/*!
|
|
2
|
-
Copyright (c) 2017 Jed Watson.
|
|
3
|
-
Licensed under the MIT License (MIT), see
|
|
4
|
-
http://jedwatson.github.io/classnames
|
|
5
|
-
*/(function(){var s={}.hasOwnProperty;function ce(){for(var d=[],L=0;L<arguments.length;L++){var g=arguments[L];if(g){var w=typeof g;if(w=="string"||w=="number")d.push(g);else if(Array.isArray(g)&&g.length){var y=ce.apply(null,g);y&&d.push(y)}else if(w=="object")for(var P in g)s.call(g,P)&&g[P]&&d.push(P)}}return d.join(" ")}S.exports?(ce.default=ce,S.exports=ce):(C=function(){return ce}.apply(A,[]))===void 0||(S.exports=C)})()},function(S,A){S.exports=ze},function(S,A,E){function C(g){if(L[g])return L[g].exports;var w=L[g]={i:g,l:!1,exports:{}};return d[g].call(w.exports,w,w.exports,C),w.l=!0,w.exports}var s,ce,d,L;S.exports=(s=E(3),ce=E(5),L={},C.m=d=[function(g,w){g.exports=s},function(g,w){g.exports=ce},function(g,w,y){g.exports=y(3)},function(g,w,y){y.r(w);var P=y(0),K=y(1);function xe(h){var M=h.getSelection(),D=h.getCurrentContent(),O=M.getStartKey(),k=M.getEndKey(),F=D.getBlockMap();return F.toSeq().skipUntil(function(Z,B){return B===O}).takeUntil(function(Z,B){return B===k}).concat([[k,F.get(k)]])}function je(h){return xe(h).toList()}function ne(h){if(h)return je(h).get(0)}function j(h){if(h){var M=ne(h),D=h.getCurrentContent().getBlockMap().toSeq().toList(),O=0;if(D.forEach(function(k,F){k.get("key")===M.get("key")&&(O=F-1)}),-1<O)return D.get(O)}}function x(h){return h?h.getCurrentContent().getBlockMap().toList():new K.List}function I(h){var M=je(h);if(!M.some(function(D){return D.type!==M.get(0).type}))return M.get(0).type}function Q(h){var M=P.RichUtils.tryToRemoveBlockStyle(h);return M?P.EditorState.push(h,M,"change-block-type"):h}function de(h){var M="",D=h.getSelection(),O=D.getAnchorOffset(),k=D.getFocusOffset(),F=je(h);if(0<F.size){if(D.getIsBackward()){var Z=O;O=k,k=Z}for(var B=0;B<F.size;B+=1){var G=B===0?O:0,X=B===F.size-1?k:F.get(B).getText().length;M+=F.get(B).getText().slice(G,X)}}return M}function le(h){var M=h.getCurrentContent(),D=h.getSelection(),O=P.Modifier.removeRange(M,D,"forward"),k=O.getSelectionAfter(),F=O.getBlockForKey(k.getStartKey());return O=P.Modifier.insertText(O,k,`
|
|
6
|
-
`,F.getInlineStyleAt(k.getStartOffset()),null),P.EditorState.push(h,O,"insert-fragment")}function Ne(h){var M=P.Modifier.splitBlock(h.getCurrentContent(),h.getSelection());return Q(P.EditorState.push(h,M,"split-block"))}function ge(h){var M=h.getCurrentContent().getBlockMap().toList(),D=h.getSelection().merge({anchorKey:M.first().get("key"),anchorOffset:0,focusKey:M.last().get("key"),focusOffset:M.last().getLength()}),O=P.Modifier.removeRange(h.getCurrentContent(),D,"forward");return P.EditorState.push(h,O,"remove-range")}function V(h,M){var D=P.Modifier.setBlockData(h.getCurrentContent(),h.getSelection(),M);return P.EditorState.push(h,D,"change-block-data")}function te(h){var M=new K.Map({}),D=je(h);if(D&&0<D.size)for(var O=function(F){var Z=D.get(F).getData();if(!Z||Z.size===0)return M=M.clear(),"break";if(F===0)M=Z;else if(M.forEach(function(B,G){Z.get(G)&&Z.get(G)===B||(M=M.delete(G))}),M.size===0)return M=M.clear(),"break"},k=0;k<D.size&&O(k)!=="break";k+=1);return M}var Se=Object(K.Map)({code:{element:"pre"}}),De=P.DefaultDraftBlockRenderMap.merge(Se);function H(h){if(h){var M=h.getType();return M==="unordered-list-item"||M==="ordered-list-item"}return!1}function ie(h,M,D){var O,k=h.getSelection();O=k.getIsBackward()?k.getFocusKey():k.getAnchorKey();var F=h.getCurrentContent(),Z=F.getBlockForKey(O),B=Z.getType();if(B!=="unordered-list-item"&&B!=="ordered-list-item")return h;var G=F.getBlockBefore(O);if(!G||G.getType()!==B)return h;var X=Z.getDepth();if(M===1&&X===D)return h;var $,ae,he,se,Me,ee,ue,Le=Math.min(G.getDepth()+1,D),Oe=(ae=M,he=Le,se=($=h).getSelection(),Me=$.getCurrentContent(),ee=Me.getBlockMap(),ue=xe($).map(function(Ue){var Be=Ue.getDepth()+ae;return Be=Math.max(0,Math.min(Be,he)),Ue.set("depth",Be)}),ee=ee.merge(ue),Me.merge({blockMap:ee,selectionBefore:se,selectionAfter:se}));return P.EditorState.push(h,Oe,"adjust-depth")}function oe(h,M){var D;return(D=M).which===13&&(D.getModifierState("Shift")||D.getModifierState("Alt")||D.getModifierState("Control"))?h.getSelection().isCollapsed()?P.RichUtils.insertSoftNewline(h):le(h):function(O){var k=O.getSelection();if(k.isCollapsed()){var F=O.getCurrentContent(),Z=k.getStartKey(),B=F.getBlockForKey(Z);if(!H(B)&&B.getType()!=="unstyled"&&B.getLength()===k.getStartOffset())return Ne(O);if(H(B)&&B.getLength()===0){var G=B.getDepth();if(G===0)return Q(O);if(0<G)return ie(O,-1,G)}}}(h)}function ke(h,M){var D=Object.keys(h);if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(h);M&&(O=O.filter(function(k){return Object.getOwnPropertyDescriptor(h,k).enumerable})),D.push.apply(D,O)}return D}function Ce(h,M,D){return M in h?Object.defineProperty(h,M,{value:D,enumerable:!0,configurable:!0,writable:!0}):h[M]=D,h}function _e(h){return(_e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M})(h)}function fe(h){var M=h.getSelection();if(M.isCollapsed()){var D={},O=h.getCurrentInlineStyle().toList().toJS();if(O)return["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","CODE","SUPERSCRIPT","SUBSCRIPT"].forEach(function(G){D[G]=0<=O.indexOf(G)}),D}var k=M.getStartOffset(),F=M.getEndOffset(),Z=je(h);if(0<Z.size){var B=function(){for(var G={BOLD:!0,ITALIC:!0,UNDERLINE:!0,STRIKETHROUGH:!0,CODE:!0,SUPERSCRIPT:!0,SUBSCRIPT:!0},X=0;X<Z.size;X+=1){var $=X===0?k:0,ae=X===Z.size-1?F:Z.get(X).getText().length;$===ae&&$===0?($=1,ae=2):$===ae&&--$;for(var he=function(Me){var ee=Z.get(X).getInlineStyleAt(Me);["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","CODE","SUPERSCRIPT","SUBSCRIPT"].forEach(function(ue){G[ue]=G[ue]&&ee.get(ue)===ue})},se=$;se<ae;se+=1)he(se)}return{v:G}}();if(_e(B)==="object")return B.v}return{}}function Pe(h){var M,D=h.getSelection(),O=D.getStartOffset(),k=D.getEndOffset();O===k&&O===0?k=1:O===k&&--O;for(var F=ne(h),Z=O;Z<k;Z+=1){var B=F.getEntityAt(Z);if(!B){M=void 0;break}if(Z===O)M=B;else if(M!==B){M=void 0;break}}return M}function q(h,M){var D,O=ne(h);return O.findEntityRanges(function(k){return k.get("entity")===M},function(k,F){D={start:k,end:F,text:O.get("text").slice(k,F)}}),D}function be(h,M,D){re[h]["".concat(h.toLowerCase(),"-").concat(D)]=Ce({},"".concat(M),D)}function U(){return function(h){for(var M=1;M<arguments.length;M++){var D=arguments[M]!=null?arguments[M]:{};M%2?ke(Object(D),!0).forEach(function(O){Ce(h,O,D[O])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(D)):ke(Object(D)).forEach(function(O){Object.defineProperty(h,O,Object.getOwnPropertyDescriptor(D,O))})}return h}({},re.color,{},re.bgcolor,{},re.fontSize,{},re.fontFamily,{CODE:re.CODE,SUPERSCRIPT:re.SUPERSCRIPT,SUBSCRIPT:re.SUBSCRIPT})}var re={color:{},bgcolor:{},fontSize:{},fontFamily:{},CODE:{fontFamily:"monospace",wordWrap:"break-word",background:"#f1f1f1",borderRadius:3,padding:"1px 3px"},SUPERSCRIPT:{fontSize:11,position:"relative",top:-8,display:"inline-flex"},SUBSCRIPT:{fontSize:11,position:"relative",bottom:-8,display:"inline-flex"}};function Ie(h,M,D){var O=h.getSelection(),k=Object.keys(re[M]).reduce(function(G,X){return P.Modifier.removeInlineStyle(G,O,X)},h.getCurrentContent()),F=P.EditorState.push(h,k,"changeinline-style"),Z=h.getCurrentInlineStyle();if(O.isCollapsed()&&(F=Z.reduce(function(G,X){return P.RichUtils.toggleInlineStyle(G,X)},F)),M==="SUPERSCRIPT"||M=="SUBSCRIPT")Z.has(D)||(F=P.RichUtils.toggleInlineStyle(F,D));else{var B=M==="bgcolor"?"backgroundColor":M;Z.has("".concat(B,"-").concat(D))||(F=P.RichUtils.toggleInlineStyle(F,"".concat(M.toLowerCase(),"-").concat(D)),be(M,B,D))}return F}function we(h){h&&h.getCurrentContent().getBlockMap().map(function(M){return M.get("characterList")}).toList().flatten().forEach(function(M){M&&M.indexOf("color-")===0?be("color","color",M.substr(6)):M&&M.indexOf("bgcolor-")===0?be("bgcolor","backgroundColor",M.substr(8)):M&&M.indexOf("fontsize-")===0?be("fontSize","fontSize",+M.substr(9)):M&&M.indexOf("fontfamily-")===0&&be("fontFamily","fontFamily",M.substr(11))})}function ve(h,M,D){var O=h.getInlineStyleAt(D).toList().filter(function(k){return k.startsWith(M.toLowerCase())});if(O&&0<O.size)return O.get(0)}function Te(h,M){if(h&&M&&0<M.length){var D=function(){var O=h.getSelection(),k={};if(O.isCollapsed())return M.forEach(function($){k[$]=function(ae,he){var se=ae.getCurrentInlineStyle().toList().filter(function(Me){return Me.startsWith(he.toLowerCase())});if(se&&0<se.size)return se.get(0)}(h,$)}),{v:k};var F=O.getStartOffset(),Z=O.getEndOffset(),B=je(h);if(0<B.size){for(var G=function($){var ae=$===0?F:0,he=$===B.size-1?Z:B.get($).getText().length;ae===he&&ae===0?(ae=1,he=2):ae===he&&--ae;for(var se=function(ee){ee===ae?M.forEach(function(ue){k[ue]=ve(B.get($),ue,ee)}):M.forEach(function(ue){k[ue]&&k[ue]!==ve(B.get($),ue,ee)&&(k[ue]=void 0)})},Me=ae;Me<he;Me+=1)se(Me)},X=0;X<B.size;X+=1)G(X);return{v:k}}}();if(_e(D)==="object")return D.v}return{}}function me(h){var M=h.getCurrentInlineStyle(),D=h.getCurrentContent();return M.forEach(function(O){D=P.Modifier.removeInlineStyle(D,h.getSelection(),O)}),P.EditorState.push(h,D,"change-inline-style")}y.d(w,"isListBlock",function(){return H}),y.d(w,"changeDepth",function(){return ie}),y.d(w,"handleNewLine",function(){return oe}),y.d(w,"getEntityRange",function(){return q}),y.d(w,"getCustomStyleMap",function(){return U}),y.d(w,"toggleCustomInlineStyle",function(){return Ie}),y.d(w,"getSelectionEntity",function(){return Pe}),y.d(w,"extractInlineStyle",function(){return we}),y.d(w,"removeAllInlineStyles",function(){return me}),y.d(w,"getSelectionInlineStyle",function(){return fe}),y.d(w,"getSelectionCustomInlineStyle",function(){return Te}),y.d(w,"getSelectedBlocksMap",function(){return xe}),y.d(w,"getSelectedBlocksList",function(){return je}),y.d(w,"getSelectedBlock",function(){return ne}),y.d(w,"getBlockBeforeSelectedBlock",function(){return j}),y.d(w,"getAllBlocks",function(){return x}),y.d(w,"getSelectedBlocksType",function(){return I}),y.d(w,"removeSelectedBlocksStyle",function(){return Q}),y.d(w,"getSelectionText",function(){return de}),y.d(w,"addLineBreakRemovingSelection",function(){return le}),y.d(w,"insertNewUnstyledBlock",function(){return Ne}),y.d(w,"clearEditorContent",function(){return ge}),y.d(w,"setBlockData",function(){return V}),y.d(w,"getSelectedBlocksMetadata",function(){return te}),y.d(w,"blockRenderMap",function(){return De})}],C.c=L,C.d=function(g,w,y){C.o(g,w)||Object.defineProperty(g,w,{enumerable:!0,get:y})},C.r=function(g){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(g,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(g,"__esModule",{value:!0})},C.t=function(g,w){if(1&w&&(g=C(g)),8&w||4&w&&typeof g=="object"&&g&&g.__esModule)return g;var y=Object.create(null);if(C.r(y),Object.defineProperty(y,"default",{enumerable:!0,value:g}),2&w&&typeof g!="string")for(var P in g)C.d(y,P,function(K){return g[K]}.bind(null,P));return y},C.n=function(g){var w=g&&g.__esModule?function(){return g.default}:function(){return g};return C.d(w,"a",w),w},C.o=function(g,w){return Object.prototype.hasOwnProperty.call(g,w)},C.p="",C(C.s=2))},function(S,A){S.exports=Qe},function(S,A,E){function C(g){if(L[g])return L[g].exports;var w=L[g]={i:g,l:!1,exports:{}};return d[g].call(w.exports,w,w.exports,C),w.l=!0,w.exports}var s,ce,d,L;S.exports=(s=E(5),ce=E(3),L={},C.m=d=[function(g,w){g.exports=s},function(g,w){g.exports=ce},function(g,w,y){g.exports=y(3)},function(g,w,y){y.r(w);var P=y(1),K=y(0),xe=function(H,ie,oe){var ke,Ce=H.textContent;return Ce.trim()===""?{chunk:(ke=oe,{text:" ",inlines:[new K.OrderedSet],entities:[ke],blocks:[]})}:{chunk:{text:Ce,inlines:Array(Ce.length).fill(ie),entities:Array(Ce.length).fill(oe),blocks:[]}}},je=function(){return{text:`
|
|
7
|
-
`,inlines:[new K.OrderedSet],entities:new Array(1),blocks:[]}},ne=function(){return{text:"",inlines:[],entities:[],blocks:[]}},j=function(H,ie){return{text:"",inlines:[],entities:[],blocks:[{type:H,depth:0,data:ie||new K.Map({})}]}},x=function(H,ie,oe){return{text:"\r",inlines:[],entities:[],blocks:[{type:H,depth:Math.max(0,Math.min(4,ie)),data:oe||new K.Map({})}]}},I=function(H){return{text:"\r ",inlines:[new K.OrderedSet],entities:[H],blocks:[{type:"atomic",depth:0,data:new K.Map({})}]}},Q=function(H,ie){return{text:H.text+ie.text,inlines:H.inlines.concat(ie.inlines),entities:H.entities.concat(ie.entities),blocks:H.blocks.concat(ie.blocks)}},de=new K.Map({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},"unordered-list-item":{element:"li",wrapper:"ul"},"ordered-list-item":{element:"li",wrapper:"ol"},blockquote:{element:"blockquote"},code:{element:"pre"},atomic:{element:"figure"},unstyled:{element:"p",aliasedElements:["div"]}}),le={code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",strong:"BOLD",ins:"UNDERLINE",sub:"SUBSCRIPT",sup:"SUPERSCRIPT"};function Ne(H){return H.style.textAlign?new K.Map({"text-align":H.style.textAlign}):H.style.marginLeft?new K.Map({"margin-left":H.style.marginLeft}):void 0}var ge=function(H){var ie=void 0;if(H instanceof HTMLAnchorElement){var oe={};ie=H.dataset&&H.dataset.mention!==void 0?(oe.url=H.href,oe.text=H.innerHTML,oe.value=H.dataset.value,P.Entity.__create("MENTION","IMMUTABLE",oe)):(oe.url=H.getAttribute&&H.getAttribute("href")||H.href,oe.title=H.innerHTML,oe.targetOption=H.target,P.Entity.__create("LINK","MUTABLE",oe))}return ie};y.d(w,"default",function(){return De});var V=" ",te=new RegExp(" ","g"),Se=!0;function De(H,ie){var oe,ke,Ce,_e=(oe=ie,ke=H.trim().replace(te,V),(Ce=function(be){var U,re=null;return document.implementation&&document.implementation.createHTMLDocument&&((U=document.implementation.createHTMLDocument("foo")).documentElement.innerHTML=be,re=U.getElementsByTagName("body")[0]),re}(ke))?(Se=!0,{chunk:function be(U,re,Ie,we,ve,Te){var me=U.nodeName.toLowerCase();if(Te){var h=Te(me,U);if(h){var M=P.Entity.__create(h.type,h.mutability,h.data||{});return{chunk:I(M)}}}if(me==="#text"&&U.textContent!==`
|
|
8
|
-
`)return xe(U,re,ve);if(me==="br")return{chunk:je()};if(me==="img"&&U instanceof HTMLImageElement){var D={};D.src=U.getAttribute&&U.getAttribute("src")||U.src,D.alt=U.alt,D.height=U.style.height,D.width=U.style.width,U.style.float&&(D.alignment=U.style.float);var O=P.Entity.__create("IMAGE","MUTABLE",D);return{chunk:I(O)}}if(me==="video"&&U instanceof HTMLVideoElement){var k={};k.src=U.getAttribute&&U.getAttribute("src")||U.src,k.alt=U.alt,k.height=U.style.height,k.width=U.style.width,U.style.float&&(k.alignment=U.style.float);var F=P.Entity.__create("VIDEO","MUTABLE",k);return{chunk:I(F)}}if(me==="iframe"&&U instanceof HTMLIFrameElement){var Z={};Z.src=U.getAttribute&&U.getAttribute("src")||U.src,Z.height=U.height,Z.width=U.width;var B=P.Entity.__create("EMBEDDED_LINK","MUTABLE",Z);return{chunk:I(B)}}var G,X=function(he,se){var Me=de.filter(function(ee){return ee.element===he&&(!ee.wrapper||ee.wrapper===se)||ee.wrapper===he||ee.aliasedElements&&-1<ee.aliasedElements.indexOf(he)}).keySeq().toSet().toArray();if(Me.length===1)return Me[0]}(me,we);X&&(me==="ul"||me==="ol"?(we=me,Ie+=1):(X!=="unordered-list-item"&&X!=="ordered-list-item"&&(we="",Ie=-1),Se?(G=j(X,Ne(U)),Se=!1):G=x(X,Ie,Ne(U)))),G=G||ne(),re=function(he,se,Me){var ee,ue=le[he];if(ue)ee=Me.add(ue).toOrderedSet();else if(se instanceof HTMLElement){var Le=se;ee=(ee=Me).withMutations(function(Oe){var Ue=Le.style.color,Be=Le.style.backgroundColor,We=Le.style.fontSize,Ve=Le.style.fontFamily.replace(/^"|"$/g,""),it=Le.style.fontWeight,$e=Le.style.textDecoration,at=Le.style.fontStyle;Ue&&Oe.add("color-".concat(Ue.replace(/ /g,""))),Be&&Oe.add("bgcolor-".concat(Be.replace(/ /g,""))),We&&Oe.add("fontsize-".concat(We.replace(/px$/g,""))),Ve&&Oe.add("fontfamily-".concat(Ve)),it==="bold"&&Oe.add(le.strong),$e==="underline"&&Oe.add(le.ins),at==="italic"&&Oe.add(le.em)}).toOrderedSet()}return ee}(me,U,re);for(var $=U.firstChild;$;){var ae=be($,re,Ie,we,ge($)||ve,Te).chunk;G=Q(G,ae),$=$.nextSibling}return{chunk:G}}(Ce,new K.OrderedSet,-1,"",void 0,oe).chunk}):null);if(_e){var fe=_e.chunk,Pe=new K.OrderedMap({});fe.entities&&fe.entities.forEach(function(be){be&&(Pe=Pe.set(be,P.Entity.__get(be)))});var q=0;return{contentBlocks:fe.text.split("\r").map(function(be,U){var re=q+be.length,Ie=fe&&fe.inlines.slice(q,re),we=fe&&fe.entities.slice(q,re),ve=new K.List(Ie.map(function(Te,me){var h={style:Te,entity:null};return we[me]&&(h.entity=we[me]),P.CharacterMetadata.create(h)}));return q=re,new P.ContentBlock({key:Object(P.genKey)(),type:fe&&fe.blocks[U]&&fe.blocks[U].type||"unstyled",depth:fe&&fe.blocks[U]&&fe.blocks[U].depth,data:fe&&fe.blocks[U]&&fe.blocks[U].data||new K.Map({}),text:be,characterList:ve})}),entityMap:Pe}}return null}}],C.c=L,C.d=function(g,w,y){C.o(g,w)||Object.defineProperty(g,w,{enumerable:!0,get:y})},C.r=function(g){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(g,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(g,"__esModule",{value:!0})},C.t=function(g,w){if(1&w&&(g=C(g)),8&w||4&w&&typeof g=="object"&&g&&g.__esModule)return g;var y=Object.create(null);if(C.r(y),Object.defineProperty(y,"default",{enumerable:!0,value:g}),2&w&&typeof g!="string")for(var P in g)C.d(y,P,function(K){return g[K]}.bind(null,P));return y},C.n=function(g){var w=g&&g.__esModule?function(){return g.default}:function(){return g};return C.d(w,"a",w),w},C.o=function(g,w){return Object.prototype.hasOwnProperty.call(g,w)},C.p="",C(C.s=2))},function(S,A,E){function C(j){return Array.prototype.slice.call(arguments,1).forEach(function(x){x&&Object.keys(x).forEach(function(I){j[I]=x[I]})}),j}function s(j){return Object.prototype.toString.call(j)}function ce(j){return s(j)==="[object Function]"}function d(j){return j.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var L={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},g={"http:":{validate:function(j,x,I){var Q=j.slice(x);return I.re.http||(I.re.http=new RegExp("^\\/\\/"+I.re.src_auth+I.re.src_host_port_strict+I.re.src_path,"i")),I.re.http.test(Q)?Q.match(I.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(j,x,I){var Q=j.slice(x);return I.re.no_http||(I.re.no_http=new RegExp("^"+I.re.src_auth+"(?:localhost|(?:(?:"+I.re.src_domain+")\\.)+"+I.re.src_domain_root+")"+I.re.src_port+I.re.src_host_terminator+I.re.src_path,"i")),I.re.no_http.test(Q)?3<=x&&j[x-3]===":"||3<=x&&j[x-3]==="/"?0:Q.match(I.re.no_http)[0].length:0}},"mailto:":{validate:function(j,x,I){var Q=j.slice(x);return I.re.mailto||(I.re.mailto=new RegExp("^"+I.re.src_email_name+"@"+I.re.src_host_strict,"i")),I.re.mailto.test(Q)?Q.match(I.re.mailto)[0].length:0}}},w="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",y="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function P(){return function(j,x){x.normalize(j)}}function K(j){var x=j.re=E(21)(j.__opts__),I=j.__tlds__.slice();function Q(V){return V.replace("%TLDS%",x.src_tlds)}j.onCompile(),j.__tlds_replaced__||I.push(w),I.push(x.src_xn),x.src_tlds=I.join("|"),x.email_fuzzy=RegExp(Q(x.tpl_email_fuzzy),"i"),x.link_fuzzy=RegExp(Q(x.tpl_link_fuzzy),"i"),x.link_no_ip_fuzzy=RegExp(Q(x.tpl_link_no_ip_fuzzy),"i"),x.host_fuzzy_test=RegExp(Q(x.tpl_host_fuzzy_test),"i");var de=[];function le(V,te){throw new Error('(LinkifyIt) Invalid schema "'+V+'": '+te)}j.__compiled__={},Object.keys(j.__schemas__).forEach(function(V){var te=j.__schemas__[V];if(te!==null){var Se,De={validate:null,link:null};if(j.__compiled__[V]=De,s(te)==="[object Object]")return s(te.validate)==="[object RegExp]"?De.validate=(Se=te.validate,function(H,ie){var oe=H.slice(ie);return Se.test(oe)?oe.match(Se)[0].length:0}):ce(te.validate)?De.validate=te.validate:le(V,te),void(ce(te.normalize)?De.normalize=te.normalize:te.normalize?le(V,te):De.normalize=P());s(te)!=="[object String]"?le(V,te):de.push(V)}}),de.forEach(function(V){j.__compiled__[j.__schemas__[V]]&&(j.__compiled__[V].validate=j.__compiled__[j.__schemas__[V]].validate,j.__compiled__[V].normalize=j.__compiled__[j.__schemas__[V]].normalize)}),j.__compiled__[""]={validate:null,normalize:P()};var Ne,ge=Object.keys(j.__compiled__).filter(function(V){return 0<V.length&&j.__compiled__[V]}).map(d).join("|");j.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+x.src_ZPCc+"))("+ge+")","i"),j.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+x.src_ZPCc+"))("+ge+")","ig"),j.re.pretest=RegExp("("+j.re.schema_test.source+")|("+j.re.host_fuzzy_test.source+")|@","i"),(Ne=j).__index__=-1,Ne.__text_cache__=""}function xe(j,x){var I=j.__index__,Q=j.__last_index__,de=j.__text_cache__.slice(I,Q);this.schema=j.__schema__.toLowerCase(),this.index=I+x,this.lastIndex=Q+x,this.raw=de,this.text=de,this.url=de}function je(j,x){var I=new xe(j,x);return j.__compiled__[I.schema].normalize(I,j),I}function ne(j,x){if(!(this instanceof ne))return new ne(j,x);var I;x||(I=j,Object.keys(I||{}).reduce(function(Q,de){return Q||L.hasOwnProperty(de)},!1)&&(x=j,j={})),this.__opts__=C({},L,x),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=C({},g,j),this.__compiled__={},this.__tlds__=y,this.__tlds_replaced__=!1,this.re={},K(this)}ne.prototype.add=function(j,x){return this.__schemas__[j]=x,K(this),this},ne.prototype.set=function(j){return this.__opts__=C(this.__opts__,j),this},ne.prototype.test=function(j){if(this.__text_cache__=j,this.__index__=-1,!j.length)return!1;var x,I,Q,de,le,Ne,ge,V;if(this.re.schema_test.test(j)){for((ge=this.re.schema_search).lastIndex=0;(x=ge.exec(j))!==null;)if(de=this.testSchemaAt(j,x[2],ge.lastIndex)){this.__schema__=x[2],this.__index__=x.index+x[1].length,this.__last_index__=x.index+x[0].length+de;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&0<=(V=j.search(this.re.host_fuzzy_test))&&(this.__index__<0||V<this.__index__)&&(I=j.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(le=I.index+I[1].length,(this.__index__<0||le<this.__index__)&&(this.__schema__="",this.__index__=le,this.__last_index__=I.index+I[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&0<=j.indexOf("@")&&(Q=j.match(this.re.email_fuzzy))!==null&&(le=Q.index+Q[1].length,Ne=Q.index+Q[0].length,(this.__index__<0||le<this.__index__||le===this.__index__&&Ne>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=le,this.__last_index__=Ne)),0<=this.__index__},ne.prototype.pretest=function(j){return this.re.pretest.test(j)},ne.prototype.testSchemaAt=function(j,x,I){return this.__compiled__[x.toLowerCase()]?this.__compiled__[x.toLowerCase()].validate(j,I,this):0},ne.prototype.match=function(j){var x=0,I=[];0<=this.__index__&&this.__text_cache__===j&&(I.push(je(this,x)),x=this.__last_index__);for(var Q=x?j.slice(x):j;this.test(Q);)I.push(je(this,x)),Q=Q.slice(this.__last_index__),x+=this.__last_index__;return I.length?I:null},ne.prototype.tlds=function(j,x){return j=Array.isArray(j)?j:[j],x?this.__tlds__=this.__tlds__.concat(j).sort().filter(function(I,Q,de){return I!==de[Q-1]}).reverse():(this.__tlds__=j.slice(),this.__tlds_replaced__=!0),K(this),this},ne.prototype.normalize=function(j){j.schema||(j.url="http://"+j.url),j.schema!=="mailto:"||/^mailto:/i.test(j.url)||(j.url="mailto:"+j.url)},ne.prototype.onCompile=function(){},S.exports=ne},function(S,A,E){S.exports=E(40)},function(S,A,E){},function(S,A,E){var C=E(11);function s(){}function ce(){}ce.resetWarningCache=s,S.exports=function(){function d(w,y,P,K,xe,je){if(je!==C){var ne=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw ne.name="Invariant Violation",ne}}function L(){return d}var g={array:d.isRequired=d,bigint:d,bool:d,func:d,number:d,object:d,string:d,symbol:d,any:d,arrayOf:L,element:d,elementType:d,instanceOf:L,node:d,objectOf:L,oneOf:L,oneOfType:L,shape:L,exact:L,checkPropTypes:ce,resetWarningCache:s};return g.PropTypes=g}},function(S,A,E){S.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(S,A,E){},function(S,A,E){},function(S,A,E){},function(S,A,E){},function(S,A,E){},function(S,A,E){},function(S,A,E){},function(S,A,E){},function(S,A,E){},function(S,A,E){S.exports=function(C){var s={};s.src_Any=E(22).source,s.src_Cc=E(23).source,s.src_Z=E(24).source,s.src_P=E(25).source,s.src_ZPCc=[s.src_Z,s.src_P,s.src_Cc].join("|"),s.src_ZCc=[s.src_Z,s.src_Cc].join("|");var ce="[><|]";return s.src_pseudo_letter="(?:(?![><|]|"+s.src_ZPCc+")"+s.src_Any+")",s.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",s.src_auth="(?:(?:(?!"+s.src_ZCc+"|[@/\\[\\]()]).)+@)?",s.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",s.src_host_terminator="(?=$|[><|]|"+s.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+s.src_ZPCc+"))",s.src_path="(?:[/?#](?:(?!"+s.src_ZCc+"|"+ce+`|[()[\\]{}.,"'?!\\-]).|\\[(?:(?!`+s.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+s.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+s.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+s.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+s.src_ZCc+"|[']).)+\\'|\\'(?="+s.src_pseudo_letter+"|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!"+s.src_ZCc+"|[.]).|"+(C&&C["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+s.src_ZCc+").|\\!(?!"+s.src_ZCc+"|[!]).|\\?(?!"+s.src_ZCc+"|[?]).)+|\\/)?",s.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',s.src_xn="xn--[a-z0-9\\-]{1,59}",s.src_domain_root="(?:"+s.src_xn+"|"+s.src_pseudo_letter+"{1,63})",s.src_domain="(?:"+s.src_xn+"|(?:"+s.src_pseudo_letter+")|(?:"+s.src_pseudo_letter+"(?:-|"+s.src_pseudo_letter+"){0,61}"+s.src_pseudo_letter+"))",s.src_host="(?:(?:(?:(?:"+s.src_domain+")\\.)*"+s.src_domain+"))",s.tpl_host_fuzzy="(?:"+s.src_ip4+"|(?:(?:(?:"+s.src_domain+")\\.)+(?:%TLDS%)))",s.tpl_host_no_ip_fuzzy="(?:(?:(?:"+s.src_domain+")\\.)+(?:%TLDS%))",s.src_host_strict=s.src_host+s.src_host_terminator,s.tpl_host_fuzzy_strict=s.tpl_host_fuzzy+s.src_host_terminator,s.src_host_port_strict=s.src_host+s.src_port+s.src_host_terminator,s.tpl_host_port_fuzzy_strict=s.tpl_host_fuzzy+s.src_port+s.src_host_terminator,s.tpl_host_port_no_ip_fuzzy_strict=s.tpl_host_no_ip_fuzzy+s.src_port+s.src_host_terminator,s.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+s.src_ZPCc+"|>|$))",s.tpl_email_fuzzy='(^|[><|]|"|\\(|'+s.src_ZCc+")("+s.src_email_name+"@"+s.tpl_host_fuzzy_strict+")",s.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+s.src_ZPCc+"))((?![$+<=>^`||])"+s.tpl_host_port_fuzzy_strict+s.src_path+")",s.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+s.src_ZPCc+"))((?![$+<=>^`||])"+s.tpl_host_port_no_ip_fuzzy_strict+s.src_path+")",s}},function(S,A){S.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},function(S,A){S.exports=/[\0-\x1F\x7F-\x9F]/},function(S,A){S.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},function(S,A){S.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},function(S,A,E){},function(S,A,E){},function(S,A,E){},function(S,A,E){},function(S,A,E){},function(S,A,E){},function(S,A,E){},function(S,A,E){},function(S,A,E){},function(S,A,E){},function(S,A,E){},function(S,A,E){},function(S,A,E){},function(S,A,E){},function(S,A,E){E.r(A),E.d(A,"Editor",function(){return ei});var C=E(1),s=E.n(C),ce=E(0),d=E.n(ce),L=E(3),g=E(4),w=E(2),y=E.n(w);function P(i,t,r){return Object.defineProperty(i,"prototype",{writable:!1}),i}var K=P(function i(){var t=this;(function(r,o){if(!(r instanceof o))throw new TypeError("Cannot call a class as a function")})(this,i),this.callBacks=[],this.suggestionCallback=void 0,this.editorFlag=!1,this.suggestionFlag=!1,this.closeAllModals=function(r){t.callBacks.forEach(function(o){o(r)})},this.init=function(r){var o=document.getElementById(r);o&&o.addEventListener("click",function(){t.editorFlag=!0}),document&&(document.addEventListener("click",function(){t.editorFlag?t.editorFlag=!1:(t.closeAllModals(),t.suggestionCallback&&t.suggestionCallback())}),document.addEventListener("keydown",function(n){n.key==="Escape"&&t.closeAllModals()}))},this.onEditorClick=function(){t.closeModals(),!t.suggestionFlag&&t.suggestionCallback?t.suggestionCallback():t.suggestionFlag=!1},this.closeModals=function(r){t.closeAllModals(r)},this.registerCallBack=function(r){t.callBacks.push(r)},this.deregisterCallBack=function(r){t.callBacks=t.callBacks.filter(function(o){return o!==r})},this.setSuggestionCallback=function(r){t.suggestionCallback=r},this.removeSuggestionCallback=function(){t.suggestionCallback=void 0},this.onSuggestionClick=function(){t.suggestionFlag=!0}});function xe(i,t,r){return Object.defineProperty(i,"prototype",{writable:!1}),i}var je,ne=xe(function i(){var t=this;(function(r,o){if(!(r instanceof o))throw new TypeError("Cannot call a class as a function")})(this,i),this.inputFocused=!1,this.editorMouseDown=!1,this.onEditorMouseDown=function(){t.editorFocused=!0},this.onInputMouseDown=function(){t.inputFocused=!0},this.isEditorBlur=function(r){return r.target.tagName!=="INPUT"&&r.target.tagName!=="LABEL"&&r.target.tagName!=="TEXTAREA"||t.editorFocused?!(r.target.tagName==="INPUT"&&r.target.tagName==="LABEL"&&r.target.tagName==="TEXTAREA"||t.inputFocused)&&!(t.editorFocused=!1):!(t.inputFocused=!1)},this.isEditorFocused=function(){return!t.inputFocused||(t.inputFocused=!1)},this.isToolbarFocused=function(){return!t.editorFocused||(t.editorFocused=!1)},this.isInputFocused=function(){return t.inputFocused}}),j=[],x={onKeyDown:function(i){j.forEach(function(t){t(i)})},registerCallBack:function(i){j.push(i)},deregisterCallBack:function(i){j=j.filter(function(t){return t!==i})}},I=function(){je=!0},Q=function(){je=!1},de=function(){return je};function le(i){var t=i.getData()&&i.getData().get("text-align");return t?"rdw-".concat(t,"-aligned-block"):""}function Ne(i,t){if(i)for(var r in i)!{}.hasOwnProperty.call(i,r)||t(r,i[r])}function ge(i,t){var r=!1;if(i){for(var o in i)if({}.hasOwnProperty.call(i,o)&&t===o){r=!0;break}}return r}function V(i){i.stopPropagation()}function te(i){return i[i.options[0]].icon}function Se(i,t){if(i&&t===void 0)return i;var r={};return Ne(i,function(o,n){var e;e=n,Object.prototype.toString.call(e)==="[object Object]"?r[o]=Se(n,t[o]):r[o]=t[o]!==void 0?t[o]:n}),r}var De=E(6),H=E.n(De),ie=E(5);E(9);function oe(i){return(oe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(i)}function ke(i,t,r){return t in i?Object.defineProperty(i,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):i[t]=r,i}function Ce(i,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(i,o.key,o)}}function _e(i,t){return(_e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r})(i,t)}function fe(i){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,o=Pe(i);if(t){var n=Pe(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return function(e,a){{if(a&&(oe(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined")}return function(c){if(c!==void 0)return c;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,r)}}function Pe(i){return(Pe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(i)}var q=function(){(function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&_e(n,e)})(o,C.Component);var i,t,r=fe(o);function o(){var n;(function(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")})(this,o);for(var e=arguments.length,a=new Array(e),c=0;c<e;c++)a[c]=arguments[c];return(n=r.call.apply(r,[this].concat(a))).onClick=function(){var u=n.props,l=u.disabled,p=u.onClick,f=u.value;l||p(f)},n}return i=o,(t=[{key:"render",value:function(){var n,e=this.props,a=e.children,c=e.className,u=e.activeClassName,l=e.active,p=e.disabled,f=e.title;return s.a.createElement("div",{className:y()("rdw-option-wrapper",c,(ke(n={},"rdw-option-active ".concat(u),l),ke(n,"rdw-option-disabled",p),n)),onClick:this.onClick,"aria-selected":l,title:f},a)}}])&&Ce(i.prototype,t),Object.defineProperty(i,"prototype",{writable:!1}),o}();q.propTypes={onClick:d.a.func.isRequired,children:d.a.any,value:d.a.string,className:d.a.string,activeClassName:d.a.string,active:d.a.bool,disabled:d.a.bool,title:d.a.string},q.defaultProps={activeClassName:""},E(12);function be(i){return(be=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(i)}function U(i,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(i,o.key,o)}}function re(i,t){return(re=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r})(i,t)}function Ie(i){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,o=we(i);if(t){var n=we(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return function(e,a){{if(a&&(be(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined")}return function(c){if(c!==void 0)return c;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,r)}}function we(i){return(we=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(i)}var ve=function(){(function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&re(n,e)})(o,C.Component);var i,t,r=Ie(o);function o(){var n;(function(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")})(this,o);for(var e=arguments.length,a=new Array(e),c=0;c<e;c++)a[c]=arguments[c];return(n=r.call.apply(r,[this].concat(a))).state={highlighted:-1},n.onChange=function(u){var l=n.props.onChange;l&&l(u),n.toggleExpansion()},n.setHighlighted=function(u){n.setState({highlighted:u})},n.toggleExpansion=function(){var u=n.props,l=u.doExpand,p=u.doCollapse;u.expanded?p():l()},n}return i=o,(t=[{key:"componentDidUpdate",value:function(n){var e=this.props.expanded;n.expanded&&!e&&this.setState({highlighted:-1})}},{key:"render",value:function(){var n=this,e=this.props,a=e.expanded,c=e.children,u=e.className,l=e.optionWrapperClassName,p=e.ariaLabel,f=e.onExpandEvent,m=e.title,b=this.state.highlighted,v=c.slice(1,c.length);return s.a.createElement("div",{className:y()("rdw-dropdown-wrapper",u),"aria-expanded":a,"aria-label":p||"rdw-dropdown"},s.a.createElement("a",{className:"rdw-dropdown-selectedtext",onClick:f,title:m},c[0],s.a.createElement("div",{className:y()({"rdw-dropdown-carettoclose":a,"rdw-dropdown-carettoopen":!a})})),a?s.a.createElement("ul",{className:y()("rdw-dropdown-optionwrapper",l),onClick:V},s.a.Children.map(v,function(_,T){return _&&s.a.cloneElement(_,{onSelect:n.onChange,highlighted:b===T,setHighlighted:n.setHighlighted,index:T})})):void 0)}}])&&U(i.prototype,t),Object.defineProperty(i,"prototype",{writable:!1}),o}();ve.propTypes={children:d.a.any,onChange:d.a.func,className:d.a.string,expanded:d.a.bool,doExpand:d.a.func,doCollapse:d.a.func,onExpandEvent:d.a.func,optionWrapperClassName:d.a.string,ariaLabel:d.a.string,title:d.a.string},E(13);function Te(i){return(Te=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(i)}function me(i,t,r){return t in i?Object.defineProperty(i,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):i[t]=r,i}function h(i,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(i,o.key,o)}}function M(i,t){return(M=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r})(i,t)}function D(i){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,o=O(i);if(t){var n=O(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return function(e,a){{if(a&&(Te(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined")}return function(c){if(c!==void 0)return c;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,r)}}function O(i){return(O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(i)}var k=function(){(function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&M(n,e)})(o,C.Component);var i,t,r=D(o);function o(){var n;(function(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")})(this,o);for(var e=arguments.length,a=new Array(e),c=0;c<e;c++)a[c]=arguments[c];return(n=r.call.apply(r,[this].concat(a))).onClick=function(u){var l=n.props,p=l.onSelect,f=l.onClick,m=l.value;l.disabled||(p&&p(m),f&&(u.stopPropagation(),f(m)))},n.setHighlighted=function(){var u=n.props;(0,u.setHighlighted)(u.index)},n.resetHighlighted=function(){(0,n.props.setHighlighted)(-1)},n}return i=o,(t=[{key:"render",value:function(){var n,e=this.props,a=e.children,c=e.active,u=e.disabled,l=e.highlighted,p=e.className,f=e.activeClassName,m=e.disabledClassName,b=e.highlightedClassName,v=e.title;return s.a.createElement("li",{className:y()("rdw-dropdownoption-default",p,(me(n={},"rdw-dropdownoption-active ".concat(f),c),me(n,"rdw-dropdownoption-highlighted ".concat(b),l),me(n,"rdw-dropdownoption-disabled ".concat(m),u),n)),onMouseEnter:this.setHighlighted,onMouseLeave:this.resetHighlighted,onClick:this.onClick,title:v},a)}}])&&h(i.prototype,t),Object.defineProperty(i,"prototype",{writable:!1}),o}();k.propTypes={children:d.a.any,value:d.a.any,onClick:d.a.func,onSelect:d.a.func,setHighlighted:d.a.func,index:d.a.number,disabled:d.a.bool,active:d.a.bool,highlighted:d.a.bool,className:d.a.string,activeClassName:d.a.string,disabledClassName:d.a.string,highlightedClassName:d.a.string,title:d.a.string},k.defaultProps={activeClassName:"",disabledClassName:"",highlightedClassName:""},E(14);function F(i){return(F=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(i)}function Z(i,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(i,o.key,o)}}function B(i,t){return(B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r})(i,t)}function G(i){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,o=X(i);if(t){var n=X(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return function(e,a){{if(a&&(F(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined")}return function(c){if(c!==void 0)return c;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,r)}}function X(i){return(X=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(i)}var $=function(){(function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&B(n,e)})(o,C.Component);var i,t,r=G(o);function o(){return function(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),r.apply(this,arguments)}return i=o,(t=[{key:"renderInFlatList",value:function(){var n=this.props,e=n.config,a=n.currentState,c=n.onChange,u=n.translations;return s.a.createElement("div",{className:y()("rdw-inline-wrapper",e.className),"aria-label":"rdw-inline-control"},e.options.map(function(l,p){return s.a.createElement(q,{key:p,value:l,onClick:c,className:y()(e[l].className),active:a[l]===!0||l==="MONOSPACE"&&a.CODE,title:e[l].title||u["components.controls.inline.".concat(l)]},s.a.createElement("img",{alt:"",src:e[l].icon}))}))}},{key:"renderInDropDown",value:function(){var n=this.props,e=n.config,a=n.expanded,c=n.doExpand,u=n.onExpandEvent,l=n.doCollapse,p=n.currentState,f=n.onChange,m=n.translations,b=e.className,v=e.dropdownClassName,_=e.title;return s.a.createElement(ve,{className:y()("rdw-inline-dropdown",b),optionWrapperClassName:y()(v),onChange:f,expanded:a,doExpand:c,doCollapse:l,onExpandEvent:u,"aria-label":"rdw-inline-control",title:_},s.a.createElement("img",{src:te(e),alt:""}),e.options.map(function(T,N){return s.a.createElement(k,{key:N,value:T,className:y()("rdw-inline-dropdownoption",e[T].className),active:p[T]===!0||T==="MONOSPACE"&&p.CODE,title:e[T].title||m["components.controls.inline.".concat(T)]},s.a.createElement("img",{src:e[T].icon,alt:""}))}))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&Z(i.prototype,t),Object.defineProperty(i,"prototype",{writable:!1}),o}();function ae(i){return(ae=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(i)}function he(i,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(i,o.key,o)}}function se(i,t){return(se=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r})(i,t)}function Me(i){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,o=ee(i);if(t){var n=ee(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return function(e,a){{if(a&&(ae(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined")}return function(c){if(c!==void 0)return c;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,r)}}function ee(i){return(ee=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(i)}$.propTypes={expanded:d.a.bool,doExpand:d.a.func,doCollapse:d.a.func,onExpandEvent:d.a.func,config:d.a.object,onChange:d.a.func,currentState:d.a.object,translations:d.a.object};var ue=function(){(function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&se(n,e)})(o,C.Component);var i,t,r=Me(o);function o(n){var e;(function(l,p){if(!(l instanceof p))throw new TypeError("Cannot call a class as a function")})(this,o),(e=r.call(this,n)).onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.expandCollapse=function(){e.setState({expanded:e.signalExpanded}),e.signalExpanded=!1},e.toggleInlineStyle=function(l){var p=l==="monospace"?"CODE":l.toUpperCase(),f=e.props,m=f.editorState,b=f.onChange,v=L.RichUtils.toggleInlineStyle(m,p);if(l==="subscript"||l==="superscript"){var _=l==="subscript"?"SUPERSCRIPT":"SUBSCRIPT",T=L.Modifier.removeInlineStyle(v.getCurrentContent(),v.getSelection(),_);v=L.EditorState.push(v,T,"change-inline-style")}v&&b(v)},e.changeKeys=function(l){if(l){var p={};return Ne(l,function(f,m){p[f==="CODE"?"monospace":f.toLowerCase()]=m}),p}},e.doExpand=function(){e.setState({expanded:!0})},e.doCollapse=function(){e.setState({expanded:!1})};var a=e.props,c=a.editorState,u=a.modalHandler;return e.state={currentStyles:c?e.changeKeys(Object(g.getSelectionInlineStyle)(c)):{}},u.registerCallBack(e.expandCollapse),e}return i=o,(t=[{key:"componentDidUpdate",value:function(n){var e=this.props.editorState;e&&e!==n.editorState&&this.setState({currentStyles:this.changeKeys(Object(g.getSelectionInlineStyle)(e))})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var n=this.props,e=n.config,a=n.translations,c=this.state,u=c.expanded,l=c.currentStyles,p=e.component||$;return s.a.createElement(p,{config:e,translations:a,currentState:l,expanded:u,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.toggleInlineStyle})}}])&&he(i.prototype,t),Object.defineProperty(i,"prototype",{writable:!1}),o}();ue.propTypes={onChange:d.a.func.isRequired,editorState:d.a.object.isRequired,modalHandler:d.a.object,config:d.a.object,translations:d.a.object},E(15);function Le(i){return(Le=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(i)}function Oe(i,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(i,o.key,o)}}function Ue(i,t){return(Ue=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r})(i,t)}function Be(i){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,o=We(i);if(t){var n=We(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return function(e,a){{if(a&&(Le(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined")}return function(c){if(c!==void 0)return c;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,r)}}function We(i){return(We=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(i)}var Ve=function(){(function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&Ue(n,e)})(o,C.Component);var i,t,r=Be(o);function o(n){var e;return function(a,c){if(!(a instanceof c))throw new TypeError("Cannot call a class as a function")}(this,o),(e=r.call(this,n)).getBlockTypes=function(a){return[{label:"Normal",displayName:a["components.controls.blocktype.normal"]},{label:"H1",displayName:a["components.controls.blocktype.h1"]},{label:"H2",displayName:a["components.controls.blocktype.h2"]},{label:"H3",displayName:a["components.controls.blocktype.h3"]},{label:"H4",displayName:a["components.controls.blocktype.h4"]},{label:"H5",displayName:a["components.controls.blocktype.h5"]},{label:"H6",displayName:a["components.controls.blocktype.h6"]},{label:"Blockquote",displayName:a["components.controls.blocktype.blockquote"]},{label:"Code",displayName:a["components.controls.blocktype.code"]}]},e.state={blockTypes:e.getBlockTypes(n.translations)},e}return i=o,(t=[{key:"componentDidUpdate",value:function(n){var e=this.props.translations;e!==n.translations&&this.setState({blockTypes:this.getBlockTypes(e)})}},{key:"renderFlat",value:function(n){var e=this.props,a=e.config.className,c=e.onChange,u=e.currentState.blockType;return s.a.createElement("div",{className:y()("rdw-inline-wrapper",a)},n.map(function(l,p){return s.a.createElement(q,{key:p,value:l.label,active:u===l.label,onClick:c},l.displayName)}))}},{key:"renderInDropdown",value:function(n){var e=this.props,a=e.config,c=a.className,u=a.dropdownClassName,l=a.title,p=e.currentState.blockType,f=e.expanded,m=e.doExpand,b=e.onExpandEvent,v=e.doCollapse,_=e.onChange,T=e.translations,N=this.state.blockTypes.filter(function(R){return R.label===p}),z=N&&N[0]&&N[0].displayName;return s.a.createElement("div",{className:"rdw-block-wrapper","aria-label":"rdw-block-control"},s.a.createElement(ve,{className:y()("rdw-block-dropdown",c),optionWrapperClassName:y()(u),onChange:_,expanded:f,doExpand:m,doCollapse:v,onExpandEvent:b,title:l||T["components.controls.blocktype.blocktype"]},s.a.createElement("span",null,z||T["components.controls.blocktype.blocktype"]),n.map(function(R,Y){return s.a.createElement(k,{active:p===R.label,value:R.label,key:Y},R.displayName)})))}},{key:"render",value:function(){var n=this.props.config,e=n.inDropdown,a=this.state.blockTypes.filter(function(c){var u=c.label;return-1<n.options.indexOf(u)});return e?this.renderInDropdown(a):this.renderFlat(a)}}])&&Oe(i.prototype,t),Object.defineProperty(i,"prototype",{writable:!1}),o}();Ve.propTypes={expanded:d.a.bool,onExpandEvent:d.a.func,doExpand:d.a.func,doCollapse:d.a.func,onChange:d.a.func,config:d.a.object,currentState:d.a.object,translations:d.a.object};var it=Ve;function $e(i){return($e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(i)}function at(i,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(i,o.key,o)}}function Ut(i,t){return(Ut=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r})(i,t)}function No(i){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,o=ct(i);if(t){var n=ct(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return function(e,a){{if(a&&($e(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined")}return function(c){if(c!==void 0)return c;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,r)}}function ct(i){return(ct=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(i)}var Bt=function(){(function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&Ut(n,e)})(o,C.Component);var i,t,r=No(o);function o(n){var e;(function(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")})(this,o),(e=r.call(this,n)).onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.expandCollapse=function(){e.setState({expanded:e.signalExpanded}),e.signalExpanded=!1},e.blocksTypes=[{label:"Normal",style:"unstyled"},{label:"H1",style:"header-one"},{label:"H2",style:"header-two"},{label:"H3",style:"header-three"},{label:"H4",style:"header-four"},{label:"H5",style:"header-five"},{label:"H6",style:"header-six"},{label:"Blockquote",style:"blockquote"},{label:"Code",style:"code"}],e.doExpand=function(){e.setState({expanded:!0})},e.doCollapse=function(){e.setState({expanded:!1})},e.toggleBlockType=function(u){var l=e.blocksTypes.find(function(v){return v.label===u}).style,p=e.props,f=p.editorState,m=p.onChange,b=L.RichUtils.toggleBlockType(f,l);b&&m(b)};var a=n.editorState,c=n.modalHandler;return e.state={expanded:!1,currentBlockType:a?Object(g.getSelectedBlocksType)(a):"unstyled"},c.registerCallBack(e.expandCollapse),e}return i=o,(t=[{key:"componentDidUpdate",value:function(n){var e=this.props.editorState;e&&e!==n.editorState&&this.setState({currentBlockType:Object(g.getSelectedBlocksType)(e)})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var n=this.props,e=n.config,a=n.translations,c=this.state,u=c.expanded,l=c.currentBlockType,p=e.component||it,f=this.blocksTypes.find(function(m){return m.style===l});return s.a.createElement(p,{config:e,translations:a,currentState:{blockType:f&&f.label},onChange:this.toggleBlockType,expanded:u,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&at(i.prototype,t),Object.defineProperty(i,"prototype",{writable:!1}),o}();Bt.propTypes={onChange:d.a.func.isRequired,editorState:d.a.object,modalHandler:d.a.object,config:d.a.object,translations:d.a.object};var Eo=Bt;E(16);function Ft(i){return(Ft=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(i)}function So(i,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(i,o.key,o)}}function Yt(i,t){return(Yt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r})(i,t)}function wo(i){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,o=lt(i);if(t){var n=lt(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return function(e,a){{if(a&&(Ft(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined")}return function(c){if(c!==void 0)return c;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,r)}}function lt(i){return(lt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(i)}var Qt=function(){(function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&Yt(n,e)})(o,C.Component);var i,t,r=wo(o);function o(){var n;(function(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")})(this,o);for(var e=arguments.length,a=new Array(e),c=0;c<e;c++)a[c]=arguments[c];return(n=r.call.apply(r,[this].concat(a))).state={defaultFontSize:void 0},n}return i=o,(t=[{key:"componentDidMount",value:function(){var n=document.getElementsByClassName("DraftEditor-root");if(n&&0<n.length){var e=window.getComputedStyle(n[0]).getPropertyValue("font-size");e=e.substring(0,e.length-2),this.setState({defaultFontSize:e})}}},{key:"render",value:function(){var n=this.props,e=n.config,a=e.icon,c=e.className,u=e.dropdownClassName,l=e.options,p=e.title,f=n.onChange,m=n.expanded,b=n.doCollapse,v=n.onExpandEvent,_=n.doExpand,T=n.translations,N=this.props.currentState.fontSize,z=this.state.defaultFontSize;return z=Number(z),N=N||l&&0<=l.indexOf(z)&&z,s.a.createElement("div",{className:"rdw-fontsize-wrapper","aria-label":"rdw-font-size-control"},s.a.createElement(ve,{className:y()("rdw-fontsize-dropdown",c),optionWrapperClassName:y()(u),onChange:f,expanded:m,doExpand:_,doCollapse:b,onExpandEvent:v,title:p||T["components.controls.fontsize.fontsize"]},N?s.a.createElement("span",null,N):s.a.createElement("img",{src:a,alt:""}),l.map(function(R,Y){return s.a.createElement(k,{className:"rdw-fontsize-option",active:N===R,value:R,key:Y},R)})))}}])&&So(i.prototype,t),Object.defineProperty(i,"prototype",{writable:!1}),o}();function Ht(i){return(Ht=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(i)}function Co(i,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(i,o.key,o)}}function Zt(i,t){return(Zt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r})(i,t)}function Lo(i){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,o=st(i);if(t){var n=st(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return function(e,a){{if(a&&(Ht(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined")}return function(c){if(c!==void 0)return c;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,r)}}function st(i){return(st=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(i)}Qt.propTypes={expanded:d.a.bool,onExpandEvent:d.a.func,doExpand:d.a.func,doCollapse:d.a.func,onChange:d.a.func,config:d.a.object,currentState:d.a.object,translations:d.a.object};var Wt=function(){(function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&Zt(n,e)})(o,C.Component);var i,t,r=Lo(o);function o(n){var e;(function(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")})(this,o),(e=r.call(this,n)).onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.expandCollapse=function(){e.setState({expanded:e.signalExpanded}),e.signalExpanded=!1},e.doExpand=function(){e.setState({expanded:!0})},e.doCollapse=function(){e.setState({expanded:!1})},e.toggleFontSize=function(u){var l=e.props,p=l.editorState,f=l.onChange,m=Object(g.toggleCustomInlineStyle)(p,"fontSize",u);m&&f(m)};var a=n.editorState,c=n.modalHandler;return e.state={expanded:void 0,currentFontSize:a?Object(g.getSelectionCustomInlineStyle)(a,["FONTSIZE"]).FONTSIZE:void 0},c.registerCallBack(e.expandCollapse),e}return i=o,(t=[{key:"componentDidUpdate",value:function(n){var e=this.props.editorState;e&&e!==n.editorState&&this.setState({currentFontSize:Object(g.getSelectionCustomInlineStyle)(e,["FONTSIZE"]).FONTSIZE})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var n=this.props,e=n.config,a=n.translations,c=this.state,u=c.expanded,l=c.currentFontSize,p=e.component||Qt,f=l&&Number(l.substring(9));return s.a.createElement(p,{config:e,translations:a,currentState:{fontSize:f},onChange:this.toggleFontSize,expanded:u,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&Co(i.prototype,t),Object.defineProperty(i,"prototype",{writable:!1}),o}();Wt.propTypes={onChange:d.a.func.isRequired,editorState:d.a.object,modalHandler:d.a.object,config:d.a.object,translations:d.a.object},E(17);function Gt(i){return(Gt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(i)}function Do(i,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(i,o.key,o)}}function Jt(i,t){return(Jt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r})(i,t)}function ko(i){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,o=ut(i);if(t){var n=ut(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return function(e,a){{if(a&&(Gt(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined")}return function(c){if(c!==void 0)return c;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,r)}}function ut(i){return(ut=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(i)}var Vt=function(){(function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&Jt(n,e)})(o,C.Component);var i,t,r=ko(o);function o(){var n;(function(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")})(this,o);for(var e=arguments.length,a=new Array(e),c=0;c<e;c++)a[c]=arguments[c];return(n=r.call.apply(r,[this].concat(a))).state={defaultFontFamily:void 0},n}return i=o,(t=[{key:"componentDidMount",value:function(){var n=document.getElementsByClassName("DraftEditor-root");if(n&&0<n.length){var e=window.getComputedStyle(n[0]).getPropertyValue("font-family");this.setState({defaultFontFamily:e})}}},{key:"render",value:function(){var n=this.state.defaultFontFamily,e=this.props,a=e.config,c=a.className,u=a.dropdownClassName,l=a.options,p=a.title,f=e.translations,m=e.onChange,b=e.expanded,v=e.doCollapse,_=e.onExpandEvent,T=e.doExpand,N=this.props.currentState.fontFamily;return N=N||l&&n&&l.some(function(z){return z.toLowerCase()===n.toLowerCase()})&&n,s.a.createElement("div",{className:"rdw-fontfamily-wrapper","aria-label":"rdw-font-family-control"},s.a.createElement(ve,{className:y()("rdw-fontfamily-dropdown",c),optionWrapperClassName:y()("rdw-fontfamily-optionwrapper",u),onChange:m,expanded:b,doExpand:T,doCollapse:v,onExpandEvent:_,title:p||f["components.controls.fontfamily.fontfamily"]},s.a.createElement("span",{className:"rdw-fontfamily-placeholder"},N||f["components.controls.fontfamily.fontfamily"]),l.map(function(z,R){return s.a.createElement(k,{active:N===z,value:z,key:R},z)})))}}])&&Do(i.prototype,t),Object.defineProperty(i,"prototype",{writable:!1}),o}();Vt.propTypes={expanded:d.a.bool,onExpandEvent:d.a.func,doExpand:d.a.func,doCollapse:d.a.func,onChange:d.a.func,config:d.a.object,currentState:d.a.object,translations:d.a.object};var Oo=Vt;function qt(i){return(qt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(i)}function xo(i,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(i,o.key,o)}}function Kt(i,t){return(Kt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r})(i,t)}function Io(i){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,o=pt(i);if(t){var n=pt(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return function(e,a){{if(a&&(qt(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined")}return function(c){if(c!==void 0)return c;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,r)}}function pt(i){return(pt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(i)}var Xt=function(){(function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&Kt(n,e)})(o,C.Component);var i,t,r=Io(o);function o(n){var e;(function(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")})(this,o),(e=r.call(this,n)).onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.expandCollapse=function(){e.setState({expanded:e.signalExpanded}),e.signalExpanded=!1},e.doExpand=function(){e.setState({expanded:!0})},e.doCollapse=function(){e.setState({expanded:!1})},e.toggleFontFamily=function(u){var l=e.props,p=l.editorState,f=l.onChange,m=Object(g.toggleCustomInlineStyle)(p,"fontFamily",u);m&&f(m)};var a=n.editorState,c=n.modalHandler;return e.state={expanded:void 0,currentFontFamily:a?Object(g.getSelectionCustomInlineStyle)(a,["FONTFAMILY"]).FONTFAMILY:void 0},c.registerCallBack(e.expandCollapse),e}return i=o,(t=[{key:"componentDidUpdate",value:function(n){var e=this.props.editorState;e&&e!==n.editorState&&this.setState({currentFontFamily:Object(g.getSelectionCustomInlineStyle)(e,["FONTFAMILY"]).FONTFAMILY})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var n=this.props,e=n.config,a=n.translations,c=this.state,u=c.expanded,l=c.currentFontFamily,p=e.component||Oo,f=l&&l.substring(11);return s.a.createElement(p,{translations:a,config:e,currentState:{fontFamily:f},onChange:this.toggleFontFamily,expanded:u,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&xo(i.prototype,t),Object.defineProperty(i,"prototype",{writable:!1}),o}();Xt.propTypes={onChange:d.a.func.isRequired,editorState:d.a.object,modalHandler:d.a.object,config:d.a.object,translations:d.a.object},E(18);function $t(i){return($t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(i)}function To(i,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(i,o.key,o)}}function en(i,t){return(en=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r})(i,t)}function Ao(i){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,o=dt(i);if(t){var n=dt(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return function(e,a){{if(a&&($t(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined")}return function(c){if(c!==void 0)return c;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,r)}}function dt(i){return(dt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(i)}var tn=function(){(function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&en(n,e)})(o,C.Component);var i,t,r=Ao(o);function o(){var n;(function(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")})(this,o);for(var e=arguments.length,a=new Array(e),c=0;c<e;c++)a[c]=arguments[c];return(n=r.call.apply(r,[this].concat(a))).options=["unordered","ordered","indent","outdent"],n.toggleBlockType=function(u){(0,n.props.onChange)(u)},n.indent=function(){(0,n.props.onChange)("indent")},n.outdent=function(){(0,n.props.onChange)("outdent")},n}return i=o,(t=[{key:"renderInFlatList",value:function(){var n=this.props,e=n.config,a=n.currentState.listType,c=n.translations,u=n.indentDisabled,l=n.outdentDisabled,p=e.options,f=e.unordered,m=e.ordered,b=e.indent,v=e.outdent,_=e.className;return s.a.createElement("div",{className:y()("rdw-list-wrapper",_),"aria-label":"rdw-list-control"},0<=p.indexOf("unordered")&&s.a.createElement(q,{value:"unordered",onClick:this.toggleBlockType,className:y()(f.className),active:a==="unordered",title:f.title||c["components.controls.list.unordered"]},s.a.createElement("img",{src:f.icon,alt:""})),0<=p.indexOf("ordered")&&s.a.createElement(q,{value:"ordered",onClick:this.toggleBlockType,className:y()(m.className),active:a==="ordered",title:m.title||c["components.controls.list.ordered"]},s.a.createElement("img",{src:m.icon,alt:""})),0<=p.indexOf("indent")&&s.a.createElement(q,{onClick:this.indent,disabled:u,className:y()(b.className),title:b.title||c["components.controls.list.indent"]},s.a.createElement("img",{src:b.icon,alt:""})),0<=p.indexOf("outdent")&&s.a.createElement(q,{onClick:this.outdent,disabled:l,className:y()(v.className),title:v.title||c["components.controls.list.outdent"]},s.a.createElement("img",{src:v.icon,alt:""})))}},{key:"renderInDropDown",value:function(){var n=this,e=this.props,a=e.config,c=e.expanded,u=e.doCollapse,l=e.doExpand,p=e.onExpandEvent,f=e.onChange,m=e.currentState.listType,b=e.translations,v=a.options,_=a.className,T=a.dropdownClassName,N=a.title;return s.a.createElement(ve,{className:y()("rdw-list-dropdown",_),optionWrapperClassName:y()(T),onChange:f,expanded:c,doExpand:l,doCollapse:u,onExpandEvent:p,"aria-label":"rdw-list-control",title:N||b["components.controls.list.list"]},s.a.createElement("img",{src:te(a),alt:""}),this.options.filter(function(z){return 0<=v.indexOf(z)}).map(function(z,R){return s.a.createElement(k,{key:R,value:z,disabled:n.props["".concat(z,"Disabled")],className:y()("rdw-list-dropdownOption",a[z].className),active:m===z,title:a[z].title||b["components.controls.list.".concat(z)]},s.a.createElement("img",{src:a[z].icon,alt:""}))}))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&To(i.prototype,t),Object.defineProperty(i,"prototype",{writable:!1}),o}();function nn(i){return(nn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(i)}function zo(i,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(i,o.key,o)}}function on(i,t){return(on=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r})(i,t)}function _o(i){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,o=ft(i);if(t){var n=ft(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return function(e,a){{if(a&&(nn(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined")}return function(c){if(c!==void 0)return c;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,r)}}function ft(i){return(ft=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(i)}tn.propTypes={expanded:d.a.bool,doExpand:d.a.func,doCollapse:d.a.func,onExpandEvent:d.a.func,config:d.a.object,onChange:d.a.func,currentState:d.a.object,translations:d.a.object,indentDisabled:d.a.bool,outdentDisabled:d.a.bool};var rn=function(){(function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&on(n,e)})(o,C.Component);var i,t,r=_o(o);function o(n){var e;(function(l,p){if(!(l instanceof p))throw new TypeError("Cannot call a class as a function")})(this,o),(e=r.call(this,n)).onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.onChange=function(l){l==="unordered"?e.toggleBlockType("unordered-list-item"):l==="ordered"?e.toggleBlockType("ordered-list-item"):l==="indent"?e.adjustDepth(1):e.adjustDepth(-1)},e.expandCollapse=function(){e.setState({expanded:e.signalExpanded}),e.signalExpanded=!1},e.doExpand=function(){e.setState({expanded:!0})},e.doCollapse=function(){e.setState({expanded:!1})},e.toggleBlockType=function(l){var p=e.props,f=p.onChange,m=p.editorState,b=L.RichUtils.toggleBlockType(m,l);b&&f(b)},e.adjustDepth=function(l){var p=e.props,f=p.onChange,m=p.editorState,b=Object(g.changeDepth)(m,l,4);b&&f(b)},e.isIndentDisabled=function(){var l=e.props.editorState,p=e.state.currentBlock,f=Object(g.getBlockBeforeSelectedBlock)(l);return!f||!Object(g.isListBlock)(p)||f.get("type")!==p.get("type")||f.get("depth")<p.get("depth")},e.isOutdentDisabled=function(){var l=e.state.currentBlock;return!l||!Object(g.isListBlock)(l)||l.get("depth")<=0};var a=e.props,c=a.editorState,u=a.modalHandler;return e.state={expanded:!1,currentBlock:c?Object(g.getSelectedBlock)(c):void 0},u.registerCallBack(e.expandCollapse),e}return i=o,(t=[{key:"componentDidUpdate",value:function(n){var e=this.props.editorState;e&&e!==n.editorState&&this.setState({currentBlock:Object(g.getSelectedBlock)(e)})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var n,e=this.props,a=e.config,c=e.translations,u=this.state,l=u.expanded,p=u.currentBlock,f=a.component||tn;p.get("type")==="unordered-list-item"?n="unordered":p.get("type")==="ordered-list-item"&&(n="ordered");var m=this.isIndentDisabled(),b=this.isOutdentDisabled();return s.a.createElement(f,{config:a,translations:c,currentState:{listType:n},expanded:l,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.onChange,indentDisabled:m,outdentDisabled:b})}}])&&zo(i.prototype,t),Object.defineProperty(i,"prototype",{writable:!1}),o}();rn.propTypes={onChange:d.a.func.isRequired,editorState:d.a.object.isRequired,modalHandler:d.a.object,config:d.a.object,translations:d.a.object},E(19);function an(i){return(an=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(i)}function Po(i,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(i,o.key,o)}}function cn(i,t){return(cn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r})(i,t)}function Ro(i){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,o=mt(i);if(t){var n=mt(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return function(e,a){{if(a&&(an(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined")}return function(c){if(c!==void 0)return c;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,r)}}function mt(i){return(mt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(i)}var ln=function(){(function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&cn(n,e)})(o,C.Component);var i,t,r=Ro(o);function o(){return function(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),r.apply(this,arguments)}return i=o,(t=[{key:"renderInFlatList",value:function(){var n=this.props,e=n.config,a=e.options,c=e.left,u=e.center,l=e.right,p=e.justify,f=e.className,m=n.onChange,b=n.currentState.textAlignment,v=n.translations;return s.a.createElement("div",{className:y()("rdw-text-align-wrapper",f),"aria-label":"rdw-textalign-control"},0<=a.indexOf("left")&&s.a.createElement(q,{value:"left",className:y()(c.className),active:b==="left",onClick:m,title:c.title||v["components.controls.textalign.left"]},s.a.createElement("img",{src:c.icon,alt:""})),0<=a.indexOf("center")&&s.a.createElement(q,{value:"center",className:y()(u.className),active:b==="center",onClick:m,title:u.title||v["components.controls.textalign.center"]},s.a.createElement("img",{src:u.icon,alt:""})),0<=a.indexOf("right")&&s.a.createElement(q,{value:"right",className:y()(l.className),active:b==="right",onClick:m,title:l.title||v["components.controls.textalign.right"]},s.a.createElement("img",{src:l.icon,alt:""})),0<=a.indexOf("justify")&&s.a.createElement(q,{value:"justify",className:y()(p.className),active:b==="justify",onClick:m,title:p.title||v["components.controls.textalign.justify"]},s.a.createElement("img",{src:p.icon,alt:""})))}},{key:"renderInDropDown",value:function(){var n=this.props,e=n.config,a=n.expanded,c=n.doExpand,u=n.onExpandEvent,l=n.doCollapse,p=n.currentState.textAlignment,f=n.onChange,m=n.translations,b=e.options,v=e.left,_=e.center,T=e.right,N=e.justify,z=e.className,R=e.dropdownClassName,Y=e.title;return s.a.createElement(ve,{className:y()("rdw-text-align-dropdown",z),optionWrapperClassName:y()(R),onChange:f,expanded:a,doExpand:c,doCollapse:l,onExpandEvent:u,"aria-label":"rdw-textalign-control",title:Y||m["components.controls.textalign.textalign"]},s.a.createElement("img",{src:p&&e[p]&&e[p].icon||te(e),alt:""}),0<=b.indexOf("left")&&s.a.createElement(k,{value:"left",active:p==="left",className:y()("rdw-text-align-dropdownOption",v.className),title:v.title||m["components.controls.textalign.left"]},s.a.createElement("img",{src:v.icon,alt:""})),0<=b.indexOf("center")&&s.a.createElement(k,{value:"center",active:p==="center",className:y()("rdw-text-align-dropdownOption",_.className),title:_.title||m["components.controls.textalign.center"]},s.a.createElement("img",{src:_.icon,alt:""})),0<=b.indexOf("right")&&s.a.createElement(k,{value:"right",active:p==="right",className:y()("rdw-text-align-dropdownOption",T.className),title:T.title||m["components.controls.textalign.right"]},s.a.createElement("img",{src:T.icon,alt:""})),0<=b.indexOf("justify")&&s.a.createElement(k,{value:"justify",active:p==="justify",className:y()("rdw-text-align-dropdownOption",N.className),title:N.title||m["components.controls.textalign.justify"]},s.a.createElement("img",{src:N.icon,alt:""})))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&Po(i.prototype,t),Object.defineProperty(i,"prototype",{writable:!1}),o}();function sn(i){return(sn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(i)}function Uo(i,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(i,o.key,o)}}function un(i,t){return(un=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r})(i,t)}function Bo(i){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,o=yt(i);if(t){var n=yt(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return function(e,a){{if(a&&(sn(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined")}return function(c){if(c!==void 0)return c;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,r)}}function yt(i){return(yt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(i)}ln.propTypes={expanded:d.a.bool,doExpand:d.a.func,doCollapse:d.a.func,onExpandEvent:d.a.func,config:d.a.object,onChange:d.a.func,currentState:d.a.object,translations:d.a.object};var pn=function(){(function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&un(n,e)})(o,C.Component);var i,t,r=Bo(o);function o(n){var e;(function(c,u){if(!(c instanceof u))throw new TypeError("Cannot call a class as a function")})(this,o),(e=r.call(this,n)).onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.expandCollapse=function(){e.setState({expanded:e.signalExpanded}),e.signalExpanded=!1},e.doExpand=function(){e.setState({expanded:!0})},e.doCollapse=function(){e.setState({expanded:!1})},e.addBlockAlignmentData=function(c){var u=e.props,l=u.editorState,p=u.onChange;p(e.state.currentTextAlignment!==c?Object(g.setBlockData)(l,{"text-align":c}):Object(g.setBlockData)(l,{"text-align":void 0}))};var a=e.props.modalHandler;return e.state={currentTextAlignment:void 0},a.registerCallBack(e.expandCollapse),e}return i=o,(t=[{key:"componentDidUpdate",value:function(n){var e=this.props.editorState;e!==n.editorState&&this.setState({currentTextAlignment:Object(g.getSelectedBlocksMetadata)(e).get("text-align")})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var n=this.props,e=n.config,a=n.translations,c=this.state,u=c.expanded,l=c.currentTextAlignment,p=e.component||ln;return s.a.createElement(p,{config:e,translations:a,expanded:u,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,currentState:{textAlignment:l},onChange:this.addBlockAlignmentData})}}])&&Uo(i.prototype,t),Object.defineProperty(i,"prototype",{writable:!1}),o}();pn.propTypes={editorState:d.a.object.isRequired,onChange:d.a.func.isRequired,modalHandler:d.a.object,config:d.a.object,translations:d.a.object},E(20);function dn(i){return(dn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(i)}function Fo(i,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(i,o.key,o)}}function fn(i,t){return(fn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r})(i,t)}function Yo(i){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,o=gt(i);if(t){var n=gt(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return function(e,a){{if(a&&(dn(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined")}return function(c){if(c!==void 0)return c;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,r)}}function gt(i){return(gt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(i)}var mn=function(){(function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&fn(n,e)})(o,C.Component);var i,t,r=Yo(o);function o(){var n;(function(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")})(this,o);for(var e=arguments.length,a=new Array(e),c=0;c<e;c++)a[c]=arguments[c];return(n=r.call.apply(r,[this].concat(a))).state={currentStyle:"color"},n.onChange=function(u){(0,n.props.onChange)(n.state.currentStyle,u)},n.setCurrentStyleColor=function(){n.setState({currentStyle:"color"})},n.setCurrentStyleBgcolor=function(){n.setState({currentStyle:"bgcolor"})},n.renderModal=function(){var u=n.props,l=u.config,p=l.popupClassName,f=l.colors,m=u.currentState,b=m.color,v=m.bgColor,_=u.translations,T=n.state.currentStyle,N=T==="color"?b:v;return s.a.createElement("div",{className:y()("rdw-colorpicker-modal",p),onClick:V},s.a.createElement("span",{className:"rdw-colorpicker-modal-header"},s.a.createElement("span",{className:y()("rdw-colorpicker-modal-style-label",{"rdw-colorpicker-modal-style-label-active":T==="color"}),onClick:n.setCurrentStyleColor},_["components.controls.colorpicker.text"]),s.a.createElement("span",{className:y()("rdw-colorpicker-modal-style-label",{"rdw-colorpicker-modal-style-label-active":T==="bgcolor"}),onClick:n.setCurrentStyleBgcolor},_["components.controls.colorpicker.background"])),s.a.createElement("span",{className:"rdw-colorpicker-modal-options"},f.map(function(z,R){return s.a.createElement(q,{value:z,key:R,className:"rdw-colorpicker-option",activeClassName:"rdw-colorpicker-option-active",active:N===z,onClick:n.onChange},s.a.createElement("span",{style:{backgroundColor:z},className:"rdw-colorpicker-cube"}))})))},n}return i=o,(t=[{key:"componentDidUpdate",value:function(n){this.props.expanded&&!n.expanded&&this.setState({currentStyle:"color"})}},{key:"render",value:function(){var n=this.props,e=n.config,a=e.icon,c=e.className,u=e.title,l=n.expanded,p=n.onExpandEvent,f=n.translations;return s.a.createElement("div",{className:"rdw-colorpicker-wrapper","aria-haspopup":"true","aria-expanded":l,"aria-label":"rdw-color-picker",title:u||f["components.controls.colorpicker.colorpicker"]},s.a.createElement(q,{onClick:p,className:y()(c)},s.a.createElement("img",{src:a,alt:""})),l?this.renderModal():void 0)}}])&&Fo(i.prototype,t),Object.defineProperty(i,"prototype",{writable:!1}),o}();mn.propTypes={expanded:d.a.bool,onExpandEvent:d.a.func,onChange:d.a.func,config:d.a.object,currentState:d.a.object,translations:d.a.object};var Qo=mn;function yn(i){return(yn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(i)}function Ho(i,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(i,o.key,o)}}function gn(i,t){return(gn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r})(i,t)}function Zo(i){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,o=bt(i);if(t){var n=bt(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return function(e,a){{if(a&&(yn(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined")}return function(c){if(c!==void 0)return c;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,r)}}function bt(i){return(bt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(i)}var bn=function(){(function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&gn(n,e)})(o,C.Component);var i,t,r=Zo(o);function o(n){var e;(function(l,p){if(!(l instanceof p))throw new TypeError("Cannot call a class as a function")})(this,o),(e=r.call(this,n)).state={expanded:!1,currentColor:void 0,currentBgColor:void 0},e.onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.expandCollapse=function(){e.setState({expanded:e.signalExpanded}),e.signalExpanded=!1},e.doExpand=function(){e.setState({expanded:!0})},e.doCollapse=function(){e.setState({expanded:!1})},e.toggleColor=function(l,p){var f=e.props,m=f.editorState,b=f.onChange,v=Object(g.toggleCustomInlineStyle)(m,l,p);v&&b(v),e.doCollapse()};var a=n.editorState,c=n.modalHandler,u={expanded:!1,currentColor:void 0,currentBgColor:void 0};return a&&(u.currentColor=Object(g.getSelectionCustomInlineStyle)(a,["COLOR"]).COLOR,u.currentBgColor=Object(g.getSelectionCustomInlineStyle)(a,["BGCOLOR"]).BGCOLOR),e.state=u,c.registerCallBack(e.expandCollapse),e}return i=o,(t=[{key:"componentDidUpdate",value:function(n){var e=this.props.editorState;e&&e!==n.editorState&&this.setState({currentColor:Object(g.getSelectionCustomInlineStyle)(e,["COLOR"]).COLOR,currentBgColor:Object(g.getSelectionCustomInlineStyle)(e,["BGCOLOR"]).BGCOLOR})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var n=this.props,e=n.config,a=n.translations,c=this.state,u=c.currentColor,l=c.currentBgColor,p=c.expanded,f=e.component||Qo,m=u&&u.substring(6),b=l&&l.substring(8);return s.a.createElement(f,{config:e,translations:a,onChange:this.toggleColor,expanded:p,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,currentState:{color:m,bgColor:b}})}}])&&Ho(i.prototype,t),Object.defineProperty(i,"prototype",{writable:!1}),o}();bn.propTypes={onChange:d.a.func.isRequired,editorState:d.a.object.isRequired,modalHandler:d.a.object,config:d.a.object,translations:d.a.object};var Wo=bn,Go=E(7),Jo=E.n(Go);E(26);function hn(i){return(hn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(i)}function Vo(i,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(i,o.key,o)}}function Mn(i,t){return(Mn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r})(i,t)}function qo(i){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,o=ht(i);if(t){var n=ht(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return function(e,a){{if(a&&(hn(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined")}return function(c){if(c!==void 0)return c;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,r)}}function ht(i){return(ht=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(i)}var jn=function(){(function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&Mn(n,e)})(o,C.Component);var i,t,r=qo(o);function o(){var n;(function(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")})(this,o);for(var e=arguments.length,a=new Array(e),c=0;c<e;c++)a[c]=arguments[c];return(n=r.call.apply(r,[this].concat(a))).state={showModal:!1,linkTarget:"",linkTitle:"",linkTargetOption:n.props.config.defaultTargetOption},n.removeLink=function(){(0,n.props.onChange)("unlink")},n.addLink=function(){var u=n.props.onChange,l=n.state;u("link",l.linkTitle,l.linkTarget,l.linkTargetOption)},n.updateValue=function(u){var l,p,f;n.setState((l={},p="".concat(u.target.name),f=u.target.value,p in l?Object.defineProperty(l,p,{value:f,enumerable:!0,configurable:!0,writable:!0}):l[p]=f,l))},n.updateTargetOption=function(u){n.setState({linkTargetOption:u.target.checked?"_blank":"_self"})},n.hideModal=function(){n.setState({showModal:!1})},n.signalExpandShowModal=function(){var u=n.props,l=u.onExpandEvent,p=u.currentState,f=p.link,m=p.selectionText,b=n.state.linkTargetOption;l(),n.setState({showModal:!0,linkTarget:f&&f.target||"",linkTargetOption:f&&f.targetOption||b,linkTitle:f&&f.title||m})},n.forceExpandAndShowModal=function(){var u=n.props,l=u.doExpand,p=u.currentState,f=p.link,m=p.selectionText,b=n.state.linkTargetOption;l(),n.setState({showModal:!0,linkTarget:f&&f.target,linkTargetOption:f&&f.targetOption||b,linkTitle:f&&f.title||m})},n}return i=o,(t=[{key:"componentDidUpdate",value:function(n){n.expanded&&!this.props.expanded&&this.setState({showModal:!1,linkTarget:"",linkTitle:"",linkTargetOption:this.props.config.defaultTargetOption})}},{key:"renderAddLinkModal",value:function(){var n=this.props,e=n.config.popupClassName,a=n.doCollapse,c=n.translations,u=this.state,l=u.linkTitle,p=u.linkTarget,f=u.linkTargetOption;return s.a.createElement("div",{className:y()("rdw-link-modal",e),onClick:V},s.a.createElement("label",{className:"rdw-link-modal-label",htmlFor:"linkTitle"},c["components.controls.link.linkTitle"]),s.a.createElement("input",{id:"linkTitle",className:"rdw-link-modal-input",onChange:this.updateValue,onBlur:this.updateValue,name:"linkTitle",value:l}),s.a.createElement("label",{className:"rdw-link-modal-label",htmlFor:"linkTarget"},c["components.controls.link.linkTarget"]),s.a.createElement("input",{id:"linkTarget",className:"rdw-link-modal-input",onChange:this.updateValue,onBlur:this.updateValue,name:"linkTarget",value:p}),s.a.createElement("label",{className:"rdw-link-modal-target-option",htmlFor:"openLinkInNewWindow"},s.a.createElement("input",{id:"openLinkInNewWindow",type:"checkbox",defaultChecked:f==="_blank",value:"_blank",onChange:this.updateTargetOption}),s.a.createElement("span",null,c["components.controls.link.linkTargetOption"])),s.a.createElement("span",{className:"rdw-link-modal-buttonsection"},s.a.createElement("button",{className:"rdw-link-modal-btn",onClick:this.addLink,disabled:!p||!l},c["generic.add"]),s.a.createElement("button",{className:"rdw-link-modal-btn",onClick:a},c["generic.cancel"])))}},{key:"renderInFlatList",value:function(){var n=this.props,e=n.config,a=e.options,c=e.link,u=e.unlink,l=e.className,p=n.currentState,f=n.expanded,m=n.translations,b=this.state.showModal;return s.a.createElement("div",{className:y()("rdw-link-wrapper",l),"aria-label":"rdw-link-control"},0<=a.indexOf("link")&&s.a.createElement(q,{value:"unordered-list-item",className:y()(c.className),onClick:this.signalExpandShowModal,"aria-haspopup":"true","aria-expanded":b,title:c.title||m["components.controls.link.link"]},s.a.createElement("img",{src:c.icon,alt:""})),0<=a.indexOf("unlink")&&s.a.createElement(q,{disabled:!p.link,value:"ordered-list-item",className:y()(u.className),onClick:this.removeLink,title:u.title||m["components.controls.link.unlink"]},s.a.createElement("img",{src:u.icon,alt:""})),f&&b?this.renderAddLinkModal():void 0)}},{key:"renderInDropDown",value:function(){var n=this.props,e=n.expanded,a=n.onExpandEvent,c=n.doCollapse,u=n.doExpand,l=n.onChange,p=n.config,f=n.currentState,m=n.translations,b=p.options,v=p.link,_=p.unlink,T=p.className,N=p.dropdownClassName,z=p.title,R=this.state.showModal;return s.a.createElement("div",{className:"rdw-link-wrapper","aria-haspopup":"true","aria-label":"rdw-link-control","aria-expanded":e,title:z},s.a.createElement(ve,{className:y()("rdw-link-dropdown",T),optionWrapperClassName:y()(N),onChange:l,expanded:e&&!R,doExpand:u,doCollapse:c,onExpandEvent:a},s.a.createElement("img",{src:te(p),alt:""}),0<=b.indexOf("link")&&s.a.createElement(k,{onClick:this.forceExpandAndShowModal,className:y()("rdw-link-dropdownoption",v.className),title:v.title||m["components.controls.link.link"]},s.a.createElement("img",{src:v.icon,alt:""})),0<=b.indexOf("unlink")&&s.a.createElement(k,{onClick:this.removeLink,disabled:!f.link,className:y()("rdw-link-dropdownoption",_.className),title:_.title||m["components.controls.link.unlink"]},s.a.createElement("img",{src:_.icon,alt:""}))),e&&R?this.renderAddLinkModal():void 0)}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&Vo(i.prototype,t),Object.defineProperty(i,"prototype",{writable:!1}),o}();jn.propTypes={expanded:d.a.bool,doExpand:d.a.func,doCollapse:d.a.func,onExpandEvent:d.a.func,config:d.a.object,onChange:d.a.func,currentState:d.a.object,translations:d.a.object};var Ko=jn;function vn(i){return(vn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(i)}function Xo(i,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(i,o.key,o)}}function Nn(i,t){return(Nn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r})(i,t)}function $o(i){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,o=Mt(i);if(t){var n=Mt(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return function(e,a){{if(a&&(vn(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined")}return function(c){if(c!==void 0)return c;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,r)}}function Mt(i){return(Mt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(i)}function En(i,t){var r=Object.keys(i);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(i);t&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(i,n).enumerable})),r.push.apply(r,o)}return r}function Sn(i){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?En(Object(r),!0).forEach(function(o){er(i,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(r)):En(Object(r)).forEach(function(o){Object.defineProperty(i,o,Object.getOwnPropertyDescriptor(r,o))})}return i}function er(i,t,r){return t in i?Object.defineProperty(i,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):i[t]=r,i}function tr(i){var t=nr.match(i.target);return Sn(Sn({},i),{},{target:t&&t[0]&&t[0].url||i.target})}var nr=Jo()(),wn=function(){(function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&Nn(n,e)})(o,C.Component);var i,t,r=$o(o);function o(n){var e;(function(l,p){if(!(l instanceof p))throw new TypeError("Cannot call a class as a function")})(this,o),(e=r.call(this,n)).onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.onChange=function(l,p,f,m){var b=e.props.config.linkCallback;if(l==="link"){var v=(b||tr)({title:p,target:f,targetOption:m});e.addLink(v.title,v.target,v.targetOption)}else e.removeLink()},e.getCurrentValues=function(){var l=e.props.editorState,p=e.state.currentEntity,f=l.getCurrentContent(),m={};if(p&&f.getEntity(p).get("type")==="LINK"){m.link={};var b=p&&Object(g.getEntityRange)(l,p);m.link.target=p&&f.getEntity(p).get("data").url,m.link.targetOption=p&&f.getEntity(p).get("data").targetOption,m.link.title=b&&b.text}return m.selectionText=Object(g.getSelectionText)(l),m},e.doExpand=function(){e.setState({expanded:!0})},e.expandCollapse=function(){e.setState({expanded:e.signalExpanded}),e.signalExpanded=!1},e.doCollapse=function(){e.setState({expanded:!1})},e.removeLink=function(){var l=e.props,p=l.editorState,f=l.onChange,m=e.state.currentEntity,b=p.getSelection();if(m){var v=Object(g.getEntityRange)(p,m);b=b.getIsBackward()?b.merge({anchorOffset:v.end,focusOffset:v.start}):b.merge({anchorOffset:v.start,focusOffset:v.end}),f(L.RichUtils.toggleLink(p,b,null))}},e.addLink=function(l,p,f){var m=e.props,b=m.editorState,v=m.onChange,_=e.state.currentEntity,T=b.getSelection();if(_){var N=Object(g.getEntityRange)(b,_);T=T.getIsBackward()?T.merge({anchorOffset:N.end,focusOffset:N.start}):T.merge({anchorOffset:N.start,focusOffset:N.end})}var z=b.getCurrentContent().createEntity("LINK","MUTABLE",{url:p,targetOption:f}).getLastCreatedEntityKey(),R=L.Modifier.replaceText(b.getCurrentContent(),T,"".concat(l),b.getCurrentInlineStyle(),z),Y=L.EditorState.push(b,R,"insert-characters");T=Y.getSelection().merge({anchorOffset:T.get("anchorOffset")+l.length,focusOffset:T.get("anchorOffset")+l.length}),Y=L.EditorState.acceptSelection(Y,T),R=L.Modifier.insertText(Y.getCurrentContent(),T," ",Y.getCurrentInlineStyle(),void 0),v(L.EditorState.push(Y,R,"insert-characters")),e.doCollapse()};var a=e.props,c=a.editorState,u=a.modalHandler;return e.state={expanded:!1,link:void 0,selectionText:void 0,currentEntity:c?Object(g.getSelectionEntity)(c):void 0},u.registerCallBack(e.expandCollapse),e}return i=o,(t=[{key:"componentDidUpdate",value:function(n){var e=this.props.editorState;e&&e!==n.editorState&&this.setState({currentEntity:Object(g.getSelectionEntity)(e)})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var n=this.props,e=n.config,a=n.translations,c=this.state.expanded,u=this.getCurrentValues(),l=u.link,p=u.selectionText,f=e.component||Ko;return s.a.createElement(f,{config:e,translations:a,expanded:c,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,currentState:{link:l,selectionText:p},onChange:this.onChange})}}])&&Xo(i.prototype,t),Object.defineProperty(i,"prototype",{writable:!1}),o}();wn.propTypes={editorState:d.a.object.isRequired,onChange:d.a.func.isRequired,modalHandler:d.a.object,config:d.a.object,translations:d.a.object};var or=wn;E(27);function Cn(i){return(Cn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(i)}function rr(i,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(i,o.key,o)}}function Ln(i,t){return(Ln=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r})(i,t)}function ir(i){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,o=jt(i);if(t){var n=jt(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return function(e,a){{if(a&&(Cn(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined")}return function(c){if(c!==void 0)return c;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,r)}}function jt(i){return(jt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(i)}var Dn=function(){(function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&Ln(n,e)})(o,C.Component);var i,t,r=ir(o);function o(){var n;(function(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")})(this,o);for(var e=arguments.length,a=new Array(e),c=0;c<e;c++)a[c]=arguments[c];return(n=r.call.apply(r,[this].concat(a))).state={embeddedLink:"",height:n.props.config.defaultSize.height,width:n.props.config.defaultSize.width},n.onChange=function(){var u=n.props.onChange,l=n.state;u(l.embeddedLink,l.height,l.width)},n.updateValue=function(u){var l,p,f;n.setState((l={},p="".concat(u.target.name),f=u.target.value,p in l?Object.defineProperty(l,p,{value:f,enumerable:!0,configurable:!0,writable:!0}):l[p]=f,l))},n}return i=o,(t=[{key:"componentDidUpdate",value:function(n){var e=this.props,a=e.expanded,c=e.config;if(!a&&n.expanded){var u=c.defaultSize,l=u.height,p=u.width;this.setState({embeddedLink:"",height:l,width:p})}}},{key:"rendeEmbeddedLinkModal",value:function(){var n=this.state,e=n.embeddedLink,a=n.height,c=n.width,u=this.props,l=u.config.popupClassName,p=u.doCollapse,f=u.translations;return s.a.createElement("div",{className:y()("rdw-embedded-modal",l),onClick:V},s.a.createElement("div",{className:"rdw-embedded-modal-header"},s.a.createElement("span",{className:"rdw-embedded-modal-header-option"},f["components.controls.embedded.embeddedlink"],s.a.createElement("span",{className:"rdw-embedded-modal-header-label"}))),s.a.createElement("div",{className:"rdw-embedded-modal-link-section"},s.a.createElement("span",{className:"rdw-embedded-modal-link-input-wrapper"},s.a.createElement("input",{className:"rdw-embedded-modal-link-input",placeholder:f["components.controls.embedded.enterlink"],onChange:this.updateValue,onBlur:this.updateValue,value:e,name:"embeddedLink"}),s.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),s.a.createElement("div",{className:"rdw-embedded-modal-size"},s.a.createElement("span",null,s.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:a,name:"height",className:"rdw-embedded-modal-size-input",placeholder:"Height"}),s.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),s.a.createElement("span",null,s.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:c,name:"width",className:"rdw-embedded-modal-size-input",placeholder:"Width"}),s.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")))),s.a.createElement("span",{className:"rdw-embedded-modal-btn-section"},s.a.createElement("button",{type:"button",className:"rdw-embedded-modal-btn",onClick:this.onChange,disabled:!e||!a||!c},f["generic.add"]),s.a.createElement("button",{type:"button",className:"rdw-embedded-modal-btn",onClick:p},f["generic.cancel"])))}},{key:"render",value:function(){var n=this.props,e=n.config,a=e.icon,c=e.className,u=e.title,l=n.expanded,p=n.onExpandEvent,f=n.translations;return s.a.createElement("div",{className:"rdw-embedded-wrapper","aria-haspopup":"true","aria-expanded":l,"aria-label":"rdw-embedded-control"},s.a.createElement(q,{className:y()(c),value:"unordered-list-item",onClick:p,title:u||f["components.controls.embedded.embedded"]},s.a.createElement("img",{src:a,alt:""})),l?this.rendeEmbeddedLinkModal():void 0)}}])&&rr(i.prototype,t),Object.defineProperty(i,"prototype",{writable:!1}),o}();Dn.propTypes={expanded:d.a.bool,onExpandEvent:d.a.func,onChange:d.a.func,config:d.a.object,translations:d.a.object,doCollapse:d.a.func};var ar=Dn;function kn(i){return(kn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(i)}function cr(i,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(i,o.key,o)}}function On(i,t){return(On=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r})(i,t)}function lr(i){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,o=vt(i);if(t){var n=vt(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return function(e,a){{if(a&&(kn(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined")}return function(c){if(c!==void 0)return c;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,r)}}function vt(i){return(vt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(i)}var xn=function(){(function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&On(n,e)})(o,C.Component);var i,t,r=lr(o);function o(){var n;(function(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")})(this,o);for(var e=arguments.length,a=new Array(e),c=0;c<e;c++)a[c]=arguments[c];return(n=r.call.apply(r,[this].concat(a))).state={expanded:!1},n.onExpandEvent=function(){n.signalExpanded=!n.state.expanded},n.expandCollapse=function(){n.setState({expanded:n.signalExpanded}),n.signalExpanded=!1},n.doExpand=function(){n.setState({expanded:!0})},n.doCollapse=function(){n.setState({expanded:!1})},n.addEmbeddedLink=function(u,l,p){var f=n.props,m=f.editorState,b=f.onChange,v=f.config.embedCallback,_=v?v(u):u,T=m.getCurrentContent().createEntity("EMBEDDED_LINK","MUTABLE",{src:_,height:l,width:p}).getLastCreatedEntityKey();b(L.AtomicBlockUtils.insertAtomicBlock(m,T," ")),n.doCollapse()},n}return i=o,(t=[{key:"componentDidMount",value:function(){this.props.modalHandler.registerCallBack(this.expandCollapse)}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var n=this.props,e=n.config,a=n.translations,c=this.state.expanded,u=e.component||ar;return s.a.createElement(u,{config:e,translations:a,onChange:this.addEmbeddedLink,expanded:c,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&cr(i.prototype,t),Object.defineProperty(i,"prototype",{writable:!1}),o}();xn.propTypes={editorState:d.a.object.isRequired,onChange:d.a.func.isRequired,modalHandler:d.a.object,config:d.a.object,translations:d.a.object};var sr=xn;E(28);function In(i){return(In=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(i)}function ur(i,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(i,o.key,o)}}function Tn(i,t){return(Tn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r})(i,t)}function pr(i){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,o=Nt(i);if(t){var n=Nt(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return function(e,a){{if(a&&(In(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined")}return function(c){if(c!==void 0)return c;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,r)}}function Nt(i){return(Nt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(i)}var An=function(){(function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&Tn(n,e)})(o,C.Component);var i,t,r=pr(o);function o(){var n;(function(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")})(this,o);for(var e=arguments.length,a=new Array(e),c=0;c<e;c++)a[c]=arguments[c];return(n=r.call.apply(r,[this].concat(a))).onChange=function(u){(0,n.props.onChange)(u.target.innerHTML)},n}return i=o,(t=[{key:"renderEmojiModal",value:function(){var n=this,e=this.props.config,a=e.popupClassName,c=e.emojis;return s.a.createElement("div",{className:y()("rdw-emoji-modal",a),onClick:V},c.map(function(u,l){return s.a.createElement("span",{key:l,className:"rdw-emoji-icon",alt:"",onClick:n.onChange},u)}))}},{key:"render",value:function(){var n=this.props,e=n.config,a=e.icon,c=e.className,u=e.title,l=n.expanded,p=n.onExpandEvent,f=n.translations;return s.a.createElement("div",{className:"rdw-emoji-wrapper","aria-haspopup":"true","aria-label":"rdw-emoji-control","aria-expanded":l,title:u||f["components.controls.emoji.emoji"]},s.a.createElement(q,{className:y()(c),value:"unordered-list-item",onClick:p},s.a.createElement("img",{src:a,alt:""})),l?this.renderEmojiModal():void 0)}}])&&ur(i.prototype,t),Object.defineProperty(i,"prototype",{writable:!1}),o}();An.propTypes={expanded:d.a.bool,onExpandEvent:d.a.func,onChange:d.a.func,config:d.a.object,translations:d.a.object};var dr=An;function zn(i){return(zn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(i)}function fr(i,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(i,o.key,o)}}function _n(i,t){return(_n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r})(i,t)}function mr(i){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,o=Et(i);if(t){var n=Et(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return function(e,a){{if(a&&(zn(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined")}return function(c){if(c!==void 0)return c;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,r)}}function Et(i){return(Et=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(i)}var Pn=function(){(function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&_n(n,e)})(o,C.Component);var i,t,r=mr(o);function o(){var n;(function(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")})(this,o);for(var e=arguments.length,a=new Array(e),c=0;c<e;c++)a[c]=arguments[c];return(n=r.call.apply(r,[this].concat(a))).state={expanded:!1},n.onExpandEvent=function(){n.signalExpanded=!n.state.expanded},n.expandCollapse=function(){n.setState({expanded:n.signalExpanded}),n.signalExpanded=!1},n.doExpand=function(){n.setState({expanded:!0})},n.doCollapse=function(){n.setState({expanded:!1})},n.addEmoji=function(u){var l=n.props,p=l.editorState,f=l.onChange,m=L.Modifier.replaceText(p.getCurrentContent(),p.getSelection(),u,p.getCurrentInlineStyle());f(L.EditorState.push(p,m,"insert-characters")),n.doCollapse()},n}return i=o,(t=[{key:"componentDidMount",value:function(){this.props.modalHandler.registerCallBack(this.expandCollapse)}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var n=this.props,e=n.config,a=n.translations,c=this.state.expanded,u=e.component||dr;return s.a.createElement(u,{config:e,translations:a,onChange:this.addEmoji,expanded:c,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onCollpase:this.closeModal})}}])&&fr(i.prototype,t),Object.defineProperty(i,"prototype",{writable:!1}),o}();Pn.propTypes={editorState:d.a.object.isRequired,onChange:d.a.func.isRequired,modalHandler:d.a.object,config:d.a.object,translations:d.a.object};function yr(){return s.a.createElement("div",{className:"rdw-spinner"},s.a.createElement("div",{className:"rdw-bounce1"}),s.a.createElement("div",{className:"rdw-bounce2"}),s.a.createElement("div",{className:"rdw-bounce3"}))}E(29),E(30);function Rn(i){return(Rn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(i)}function gr(i,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(i,o.key,o)}}function Un(i,t){return(Un=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r})(i,t)}function br(i){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,o=St(i);if(t){var n=St(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return function(e,a){{if(a&&(Rn(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined")}return function(c){if(c!==void 0)return c;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,r)}}function St(i){return(St=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(i)}var Bn=function(){(function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&Un(n,e)})(o,C.Component);var i,t,r=br(o);function o(){var n;(function(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")})(this,o);for(var e=arguments.length,a=new Array(e),c=0;c<e;c++)a[c]=arguments[c];return(n=r.call.apply(r,[this].concat(a))).state={imgSrc:"",dragEnter:!1,uploadHighlighted:n.props.config.uploadEnabled&&!!n.props.config.uploadCallback,showImageLoading:!1,height:n.props.config.defaultSize.height,width:n.props.config.defaultSize.width,alt:""},n.onDragEnter=function(u){n.stopPropagation(u),n.setState({dragEnter:!0})},n.onImageDrop=function(u){var l,p;u.preventDefault(),u.stopPropagation(),n.setState({dragEnter:!1}),p=u.dataTransfer.items?(l=u.dataTransfer.items,!0):(l=u.dataTransfer.files,!1);for(var f=0;f<l.length;f+=1)if((!p||l[f].kind==="file")&&l[f].type.match("^image/")){var m=p?l[f].getAsFile():l[f];n.uploadImage(m)}},n.showImageUploadOption=function(){n.setState({uploadHighlighted:!0})},n.addImageFromState=function(){var u=n.state,l=u.imgSrc,p=u.alt,f=n.state,m=f.height,b=f.width,v=n.props.onChange;isNaN(m)||(m+="px"),isNaN(b)||(b+="px"),v(l,m,b,p)},n.showImageURLOption=function(){n.setState({uploadHighlighted:!1})},n.toggleShowImageLoading=function(){var u=!n.state.showImageLoading;n.setState({showImageLoading:u})},n.updateValue=function(u){var l,p,f;n.setState((l={},p="".concat(u.target.name),f=u.target.value,p in l?Object.defineProperty(l,p,{value:f,enumerable:!0,configurable:!0,writable:!0}):l[p]=f,l))},n.selectImage=function(u){u.target.files&&0<u.target.files.length&&n.uploadImage(u.target.files[0])},n.uploadImage=function(u){n.toggleShowImageLoading(),(0,n.props.config.uploadCallback)(u).then(function(l){var p=l.data;n.setState({showImageLoading:!1,dragEnter:!1,imgSrc:p.link||p.url}),n.fileUpload=!1}).catch(function(){n.setState({showImageLoading:!1,dragEnter:!1})})},n.fileUploadClick=function(u){n.fileUpload=!0,u.stopPropagation()},n.stopPropagation=function(u){n.fileUpload?n.fileUpload=!1:(u.preventDefault(),u.stopPropagation())},n}return i=o,(t=[{key:"componentDidUpdate",value:function(n){var e=this.props.config;n.expanded&&!this.props.expanded?this.setState({imgSrc:"",dragEnter:!1,uploadHighlighted:e.uploadEnabled&&!!e.uploadCallback,showImageLoading:!1,height:e.defaultSize.height,width:e.defaultSize.width,alt:""}):e.uploadCallback===n.config.uploadCallback&&e.uploadEnabled===n.config.uploadEnabled||this.setState({uploadHighlighted:e.uploadEnabled&&!!e.uploadCallback})}},{key:"renderAddImageModal",value:function(){var n=this.state,e=n.imgSrc,a=n.uploadHighlighted,c=n.showImageLoading,u=n.dragEnter,l=n.height,p=n.width,f=n.alt,m=this.props,b=m.config,v=b.popupClassName,_=b.uploadCallback,T=b.uploadEnabled,N=b.urlEnabled,z=b.previewImage,R=b.inputAccept,Y=b.alt,J=m.doCollapse,W=m.translations;return s.a.createElement("div",{className:y()("rdw-image-modal",v),onClick:this.stopPropagation},s.a.createElement("div",{className:"rdw-image-modal-header"},T&&_&&s.a.createElement("span",{onClick:this.showImageUploadOption,className:"rdw-image-modal-header-option"},W["components.controls.image.fileUpload"],s.a.createElement("span",{className:y()("rdw-image-modal-header-label",{"rdw-image-modal-header-label-highlighted":a})})),N&&s.a.createElement("span",{onClick:this.showImageURLOption,className:"rdw-image-modal-header-option"},W["components.controls.image.byURL"],s.a.createElement("span",{className:y()("rdw-image-modal-header-label",{"rdw-image-modal-header-label-highlighted":!a})}))),a?s.a.createElement("div",{onClick:this.fileUploadClick},s.a.createElement("div",{onDragEnter:this.onDragEnter,onDragOver:this.stopPropagation,onDrop:this.onImageDrop,className:y()("rdw-image-modal-upload-option",{"rdw-image-modal-upload-option-highlighted":u})},s.a.createElement("label",{htmlFor:"file",className:"rdw-image-modal-upload-option-label"},z&&e?s.a.createElement("img",{src:e,alt:e,className:"rdw-image-modal-upload-option-image-preview"}):e||W["components.controls.image.dropFileText"])),s.a.createElement("input",{type:"file",id:"file",accept:R,onChange:this.selectImage,className:"rdw-image-modal-upload-option-input"})):s.a.createElement("div",{className:"rdw-image-modal-url-section"},s.a.createElement("input",{className:"rdw-image-modal-url-input",placeholder:W["components.controls.image.enterlink"],name:"imgSrc",onChange:this.updateValue,onBlur:this.updateValue,value:e}),s.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),Y.present&&s.a.createElement("div",{className:"rdw-image-modal-size"},s.a.createElement("span",{className:"rdw-image-modal-alt-lbl"},"Alt Text"),s.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:f,name:"alt",className:"rdw-image-modal-alt-input",placeholder:"alt"}),s.a.createElement("span",{className:"rdw-image-mandatory-sign"},Y.mandatory&&"*")),s.a.createElement("div",{className:"rdw-image-modal-size"},"↕ ",s.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:l,name:"height",className:"rdw-image-modal-size-input",placeholder:"Height"}),s.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")," ↔ ",s.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:p,name:"width",className:"rdw-image-modal-size-input",placeholder:"Width"}),s.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),s.a.createElement("span",{className:"rdw-image-modal-btn-section"},s.a.createElement("button",{className:"rdw-image-modal-btn",onClick:this.addImageFromState,disabled:!e||!l||!p||Y.mandatory&&!f},W["generic.add"]),s.a.createElement("button",{className:"rdw-image-modal-btn",onClick:J},W["generic.cancel"])),c?s.a.createElement("div",{className:"rdw-image-modal-spinner"},s.a.createElement(yr,null)):void 0)}},{key:"render",value:function(){var n=this.props,e=n.config,a=e.icon,c=e.className,u=e.title,l=n.expanded,p=n.onExpandEvent,f=n.translations;return s.a.createElement("div",{className:"rdw-image-wrapper","aria-haspopup":"true","aria-expanded":l,"aria-label":"rdw-image-control"},s.a.createElement(q,{className:y()(c),value:"unordered-list-item",onClick:p,title:u||f["components.controls.image.image"]},s.a.createElement("img",{src:a,alt:""})),l?this.renderAddImageModal():void 0)}}])&&gr(i.prototype,t),Object.defineProperty(i,"prototype",{writable:!1}),o}();Bn.propTypes={expanded:d.a.bool,onExpandEvent:d.a.func,doCollapse:d.a.func,onChange:d.a.func,config:d.a.object,translations:d.a.object};var hr=Bn;function Fn(i){return(Fn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(i)}function Mr(i,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(i,o.key,o)}}function Yn(i,t){return(Yn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r})(i,t)}function jr(i){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,o=wt(i);if(t){var n=wt(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return function(e,a){{if(a&&(Fn(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined")}return function(c){if(c!==void 0)return c;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,r)}}function wt(i){return(wt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(i)}var Qn=function(){(function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&Yn(n,e)})(o,C.Component);var i,t,r=jr(o);function o(n){var e;(function(c,u){if(!(c instanceof u))throw new TypeError("Cannot call a class as a function")})(this,o),(e=r.call(this,n)).onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.doExpand=function(){e.setState({expanded:!0})},e.doCollapse=function(){e.setState({expanded:!1})},e.expandCollapse=function(){e.setState({expanded:e.signalExpanded}),e.signalExpanded=!1},e.addImage=function(c,u,l,p){var f=e.props,m=f.editorState,b=f.onChange,v={src:c,height:u,width:l};f.config.alt.present&&(v.alt=p);var _=m.getCurrentContent().createEntity("IMAGE","MUTABLE",v).getLastCreatedEntityKey();b(L.AtomicBlockUtils.insertAtomicBlock(m,_," ")),e.doCollapse()};var a=e.props.modalHandler;return e.state={expanded:!1},a.registerCallBack(e.expandCollapse),e}return i=o,(t=[{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var n=this.props,e=n.config,a=n.translations,c=this.state.expanded,u=e.component||hr;return s.a.createElement(u,{config:e,translations:a,onChange:this.addImage,expanded:c,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&Mr(i.prototype,t),Object.defineProperty(i,"prototype",{writable:!1}),o}();Qn.propTypes={editorState:d.a.object.isRequired,onChange:d.a.func.isRequired,modalHandler:d.a.object,config:d.a.object,translations:d.a.object};function Hn(i){var t=i.config,r=i.onChange,o=i.translations,n=t.icon,e=t.className,a=t.title;return s.a.createElement("div",{className:"rdw-remove-wrapper","aria-label":"rdw-remove-control"},s.a.createElement(q,{className:y()(e),onClick:r,title:a||o["components.controls.remove.remove"]},s.a.createElement("img",{src:n,alt:""})))}var vr=Qn;E(31),Hn.propTypes={onChange:d.a.func,config:d.a.object,translations:d.a.object};var Nr=Hn;function Zn(i){return(Zn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(i)}function Er(i,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(i,o.key,o)}}function Wn(i,t){return(Wn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r})(i,t)}function Sr(i){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,o=Ct(i);if(t){var n=Ct(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return function(e,a){{if(a&&(Zn(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined")}return function(c){if(c!==void 0)return c;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,r)}}function Ct(i){return(Ct=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(i)}var Gn=function(){(function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&Wn(n,e)})(o,C.Component);var i,t,r=Sr(o);function o(){var n;(function(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")})(this,o);for(var e=arguments.length,a=new Array(e),c=0;c<e;c++)a[c]=arguments[c];return(n=r.call.apply(r,[this].concat(a))).state={expanded:!1},n.onExpandEvent=function(){n.signalExpanded=!n.state.expanded},n.expandCollapse=function(){n.setState({expanded:n.signalExpanded}),n.signalExpanded=!1},n.removeInlineStyles=function(){var u=n.props,l=u.editorState;(0,u.onChange)(n.removeAllInlineStyles(l))},n.removeAllInlineStyles=function(u){var l=u.getCurrentContent();return["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","MONOSPACE","SUPERSCRIPT","SUBSCRIPT"].forEach(function(p){l=L.Modifier.removeInlineStyle(l,u.getSelection(),p)}),Ne(Object(g.getSelectionCustomInlineStyle)(u,["FONTSIZE","FONTFAMILY","COLOR","BGCOLOR"]),function(p,f){f&&(l=L.Modifier.removeInlineStyle(l,u.getSelection(),f))}),L.EditorState.push(u,l,"change-inline-style")},n.doExpand=function(){n.setState({expanded:!0})},n.doCollapse=function(){n.setState({expanded:!1})},n}return i=o,(t=[{key:"componentDidMount",value:function(){this.props.modalHandler.registerCallBack(this.expandCollapse)}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var n=this.props,e=n.config,a=n.translations,c=this.state.expanded,u=e.component||Nr;return s.a.createElement(u,{config:e,translations:a,expanded:c,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.removeInlineStyles})}}])&&Er(i.prototype,t),Object.defineProperty(i,"prototype",{writable:!1}),o}();Gn.propTypes={onChange:d.a.func.isRequired,editorState:d.a.object.isRequired,config:d.a.object,translations:d.a.object,modalHandler:d.a.object},E(32);function Jn(i){return(Jn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(i)}function wr(i,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(i,o.key,o)}}function Vn(i,t){return(Vn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r})(i,t)}function Cr(i){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,o=Lt(i);if(t){var n=Lt(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return function(e,a){{if(a&&(Jn(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined")}return function(c){if(c!==void 0)return c;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,r)}}function Lt(i){return(Lt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(i)}var qn=function(){(function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&Vn(n,e)})(o,C.Component);var i,t,r=Cr(o);function o(){var n;(function(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")})(this,o);for(var e=arguments.length,a=new Array(e),c=0;c<e;c++)a[c]=arguments[c];return(n=r.call.apply(r,[this].concat(a))).onChange=function(u){(0,n.props.onChange)(u)},n}return i=o,(t=[{key:"renderInDropDown",value:function(){var n=this.props,e=n.config,a=n.expanded,c=n.doExpand,u=n.onExpandEvent,l=n.doCollapse,p=n.currentState,f=p.undoDisabled,m=p.redoDisabled,b=n.translations,v=e.options,_=e.undo,T=e.redo,N=e.className,z=e.dropdownClassName,R=e.title;return s.a.createElement(ve,{className:y()("rdw-history-dropdown",N),optionWrapperClassName:y()(z),expanded:a,doExpand:c,doCollapse:l,onExpandEvent:u,"aria-label":"rdw-history-control",title:R||b["components.controls.history.history"]},s.a.createElement("img",{src:te(e),alt:""}),0<=v.indexOf("undo")&&s.a.createElement(k,{value:"undo",onClick:this.onChange,disabled:f,className:y()("rdw-history-dropdownoption",_.className),title:_.title||b["components.controls.history.undo"]},s.a.createElement("img",{src:_.icon,alt:""})),0<=v.indexOf("redo")&&s.a.createElement(k,{value:"redo",onClick:this.onChange,disabled:m,className:y()("rdw-history-dropdownoption",T.className),title:T.title||b["components.controls.history.redo"]},s.a.createElement("img",{src:T.icon,alt:""})))}},{key:"renderInFlatList",value:function(){var n=this.props,e=n.config,a=e.options,c=e.undo,u=e.redo,l=e.className,p=n.currentState,f=p.undoDisabled,m=p.redoDisabled,b=n.translations;return s.a.createElement("div",{className:y()("rdw-history-wrapper",l),"aria-label":"rdw-history-control"},0<=a.indexOf("undo")&&s.a.createElement(q,{value:"undo",onClick:this.onChange,className:y()(c.className),disabled:f,title:c.title||b["components.controls.history.undo"]},s.a.createElement("img",{src:c.icon,alt:""})),0<=a.indexOf("redo")&&s.a.createElement(q,{value:"redo",onClick:this.onChange,className:y()(u.className),disabled:m,title:u.title||b["components.controls.history.redo"]},s.a.createElement("img",{src:u.icon,alt:""})))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&wr(i.prototype,t),Object.defineProperty(i,"prototype",{writable:!1}),o}();function Kn(i){return(Kn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(i)}function Lr(i,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(i,o.key,o)}}function Xn(i,t){return(Xn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r})(i,t)}function Dr(i){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,o=Dt(i);if(t){var n=Dt(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return function(e,a){{if(a&&(Kn(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined")}return function(c){if(c!==void 0)return c;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,r)}}function Dt(i){return(Dt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(i)}qn.propTypes={expanded:d.a.bool,doExpand:d.a.func,doCollapse:d.a.func,onExpandEvent:d.a.func,config:d.a.object,onChange:d.a.func,currentState:d.a.object,translations:d.a.object};var $n=function(){(function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&Xn(n,e)})(o,C.Component);var i,t,r=Dr(o);function o(n){var e;(function(l,p){if(!(l instanceof p))throw new TypeError("Cannot call a class as a function")})(this,o),(e=r.call(this,n)).onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.onChange=function(l){var p=e.props,f=p.editorState,m=p.onChange,b=L.EditorState[l](f);b&&m(b)},e.doExpand=function(){e.setState({expanded:!0})},e.doCollapse=function(){e.setState({expanded:!1})};var a={expanded:!(e.expandCollapse=function(){e.setState({expanded:e.signalExpanded}),e.signalExpanded=!1}),undoDisabled:!1,redoDisabled:!1},c=n.editorState,u=n.modalHandler;return c&&(a.undoDisabled=c.getUndoStack().size===0,a.redoDisabled=c.getRedoStack().size===0),e.state=a,u.registerCallBack(e.expandCollapse),e}return i=o,(t=[{key:"componentDidUpdate",value:function(n){var e=this.props.editorState;e&&n.editorState!==e&&this.setState({undoDisabled:e.getUndoStack().size===0,redoDisabled:e.getRedoStack().size===0})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var n=this.props,e=n.config,a=n.translations,c=this.state,u=c.undoDisabled,l=c.redoDisabled,p=c.expanded,f=e.component||qn;return s.a.createElement(f,{config:e,translations:a,currentState:{undoDisabled:u,redoDisabled:l},expanded:p,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.onChange})}}])&&Lr(i.prototype,t),Object.defineProperty(i,"prototype",{writable:!1}),o}();$n.propTypes={onChange:d.a.func.isRequired,editorState:d.a.object,modalHandler:d.a.object,config:d.a.object,translations:d.a.object};var kr={inline:ue,blockType:Eo,fontSize:Wt,fontFamily:Xt,list:rn,textAlign:pn,colorPicker:Wo,link:or,embedded:sr,emoji:Pn,image:vr,remove:Gn,history:$n},Or=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,xr=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i;function eo(i){return String(i).replace(Or,"").match(xr)?i:"#"}E(33);function to(i){return(to=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(i)}function Ir(i,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(i,o.key,o)}}function no(i,t){return(no=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r})(i,t)}function Tr(i){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,o=kt(i);if(t){var n=kt(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return function(e,a){{if(a&&(to(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined")}return function(c){if(c!==void 0)return c;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,r)}}function kt(i){return(kt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(i)}function Ar(i,t,r){i.findEntityRanges(function(o){var n=o.getEntity();return n!==null&&r.getEntity(n).getType()==="LINK"},t)}function zr(i){var t,r=i.showOpenOptionOnHover;return(t=function(){(function(c,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(u&&u.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),Object.defineProperty(c,"prototype",{writable:!1}),u&&no(c,u)})(a,C.Component);var o,n,e=Tr(a);function a(){var c;(function(f,m){if(!(f instanceof m))throw new TypeError("Cannot call a class as a function")})(this,a);for(var u=arguments.length,l=new Array(u),p=0;p<u;p++)l[p]=arguments[p];return(c=e.call.apply(e,[this].concat(l))).state={showPopOver:!1},c.openLink=function(){var f=c.props,m=f.entityKey,b=f.contentState.getEntity(m).getData().url,v=window.open(eo(b),"blank");v&&v.focus()},c.toggleShowPopOver=function(){var f=!c.state.showPopOver;c.setState({showPopOver:f})},c}return o=a,(n=[{key:"render",value:function(){var c=this.props,u=c.children,l=c.entityKey,p=c.contentState.getEntity(l).getData(),f=p.url,m=p.targetOption,b=this.state.showPopOver;return s.a.createElement("span",{className:"rdw-link-decorator-wrapper",onMouseEnter:this.toggleShowPopOver,onMouseLeave:this.toggleShowPopOver},s.a.createElement("a",{href:eo(f),target:m},u),b&&r?s.a.createElement("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuMDcyIDBIOC45MTVhLjkyNS45MjUgMCAwIDAgMCAxLjg0OWgyLjkyNUw2Ljk2MSA2LjcyN2EuOTE4LjkxOCAwIDAgMC0uMjcuNjU0YzAgLjI0Ny4wOTUuNDguMjcuNjU0YS45MTguOTE4IDAgMCAwIC42NTQuMjcuOTE4LjkxOCAwIDAgMCAuNjUzLS4yN2w0Ljg4LTQuODh2Mi45MjZhLjkyNS45MjUgMCAwIDAgMS44NDggMFYuOTI0QS45MjUuOTI1IDAgMCAwIDE0LjA3MiAweiIvPjxwYXRoIGQ9Ik0xMC42MjMgMTMuNDExSDEuNTg1VjQuMzcyaDYuNzk4bDEuNTg0LTEuNTg0SC43OTJBLjc5Mi43OTIgMCAwIDAgMCAzLjU4djEwLjYyNGMwIC40MzcuMzU1Ljc5Mi43OTIuNzkyaDEwLjYyNGEuNzkyLjc5MiAwIDAgMCAuNzkyLS43OTJWNS4wMjlsLTEuNTg1IDEuNTg0djYuNzk4eiIvPjwvZz48L3N2Zz4=",alt:"",onClick:this.openLink,className:"rdw-link-decorator-icon"}):void 0)}}])&&Ir(o.prototype,n),Object.defineProperty(o,"prototype",{writable:!1}),a}()).propTypes={entityKey:d.a.string.isRequired,children:d.a.array,contentState:d.a.object},t}E(34);function _r(i,t,r){return Object.defineProperty(i,"prototype",{writable:!1}),i}var oo=_r(function i(t){var r=this;(function(o,n){if(!(o instanceof n))throw new TypeError("Cannot call a class as a function")})(this,i),this.getMentionComponent=function(){function o(e){var a=e.entityKey,c=e.children,u=e.contentState.getEntity(a).getData(),l=u.url,p=u.value;return s.a.createElement("a",{href:l||p,className:y()("rdw-mention-link",n)},c)}var n=r.className;return o.propTypes={entityKey:d.a.number,children:d.a.array,contentState:d.a.object},o},this.getMentionDecorator=function(){return{strategy:r.findMentionEntities,component:r.getMentionComponent()}},this.className=t});oo.prototype.findMentionEntities=function(i,t,r){i.findEntityRanges(function(o){var n=o.getEntity();return n!==null&&r.getEntity(n).getType()==="MENTION"},t)};var Pr=oo;E(35);function ro(i){return(ro=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(i)}function io(i,t){return(io=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r})(i,t)}function Rr(i){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,o=Ot(i);if(t){var n=Ot(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return function(e,a){{if(a&&(ro(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined")}return function(c){if(c!==void 0)return c;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,r)}}function Ot(i){return(Ot=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(i)}function Ur(i,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(i,o.key,o)}}function ao(i,t,r){return t&&Ur(i.prototype,t),Object.defineProperty(i,"prototype",{writable:!1}),i}function co(i,t){if(!(i instanceof t))throw new TypeError("Cannot call a class as a function")}var Br=ao(function i(t){var r=this;co(this,i),this.findSuggestionEntities=function(b,v){if(r.config.getEditorState()){var _=r.config,T=_.separator,N=_.trigger,z=_.getSuggestions,R=(0,_.getEditorState)().getSelection();if(R.get("anchorKey")===b.get("key")&&R.get("anchorKey")===R.get("focusKey")){var Y=b.getText(),J=(Y=Y.substr(0,R.get("focusOffset")===Y.length-1?Y.length:R.get("focusOffset")+1)).lastIndexOf(T+N),W=T+N;if((J===void 0||J<0)&&Y[0]===N&&(J=0,W=N),0<=J){var ye=Y.substr(J+W.length,Y.length);z().some(function(Ee){return!!Ee.value&&(r.config.caseSensitive?0<=Ee.value.indexOf(ye):0<=Ee.value.toLowerCase().indexOf(ye&&ye.toLowerCase()))})&&v(J===0?0:J+1,Y.length)}}}},this.getSuggestionComponent=function(){var b,v=this.config;return(b=function(){(function(N,z){if(typeof z!="function"&&z!==null)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(z&&z.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),Object.defineProperty(N,"prototype",{writable:!1}),z&&io(N,z)})(T,C.Component);var _=Rr(T);function T(){var N;co(this,T);for(var z=arguments.length,R=new Array(z),Y=0;Y<z;Y++)R[Y]=arguments[Y];return(N=_.call.apply(_,[this].concat(R))).state={style:{left:15},activeOption:-1,showSuggestions:!0},N.onEditorKeyDown=function(J){var W=N.state.activeOption,ye={};J.key==="ArrowDown"?(J.preventDefault(),W===N.filteredSuggestions.length-1?ye.activeOption=0:ye.activeOption=W+1):J.key==="ArrowUp"?ye.activeOption=W<=0?N.filteredSuggestions.length-1:W-1:J.key==="Escape"?(ye.showSuggestions=!1,Q()):J.key==="Enter"&&N.addMention(),N.setState(ye)},N.onOptionMouseEnter=function(J){var W=J.target.getAttribute("data-index");N.setState({activeOption:W})},N.onOptionMouseLeave=function(){N.setState({activeOption:-1})},N.setSuggestionReference=function(J){N.suggestion=J},N.setDropdownReference=function(J){N.dropdown=J},N.closeSuggestionDropdown=function(){N.setState({showSuggestions:!1})},N.filteredSuggestions=[],N.filterSuggestions=function(J){var W=J.children[0].props.text.substr(1),ye=v.getSuggestions();N.filteredSuggestions=ye&&ye.filter(function(Ee){return!W||W.length===0||(v.caseSensitive?0<=Ee.value.indexOf(W):0<=Ee.value.toLowerCase().indexOf(W&&W.toLowerCase()))})},N.addMention=function(){var J=N.state.activeOption,W=v.getEditorState(),ye=v.onChange,Ee=v.separator,He=v.trigger,Ye=N.filteredSuggestions[J];Ye&&function(Re,_t,et,qe,bo){var Ke=bo.value,ti=bo.url,ni=Re.getCurrentContent().createEntity("MENTION","IMMUTABLE",{text:"".concat(qe).concat(Ke),value:Ke,url:ti}).getLastCreatedEntityKey(),tt=Object(g.getSelectedBlock)(Re).getText(),nt=Re.getSelection().focusOffset,ot=(tt.lastIndexOf(et+qe,nt)||0)+1,ho=!1;tt.length===ot+1&&(nt=tt.length),tt[nt]===" "&&(ho=!0);var Xe=Re.getSelection().merge({anchorOffset:ot,focusOffset:nt}),Ae=L.EditorState.acceptSelection(Re,Xe),Pt=L.Modifier.replaceText(Ae.getCurrentContent(),Xe,"".concat(qe).concat(Ke),Ae.getCurrentInlineStyle(),ni);Ae=L.EditorState.push(Ae,Pt,"insert-characters"),ho||(Xe=Ae.getSelection().merge({anchorOffset:ot+Ke.length+qe.length,focusOffset:ot+Ke.length+qe.length}),Ae=L.EditorState.acceptSelection(Ae,Xe),Pt=L.Modifier.insertText(Ae.getCurrentContent(),Xe," ",Ae.getCurrentInlineStyle(),void 0)),_t(L.EditorState.push(Ae,Pt,"insert-characters"))}(W,ye,Ee,He,Ye)},N}return ao(T,[{key:"componentDidMount",value:function(){var N,z,R,Y=v.getWrapperRef().getBoundingClientRect(),J=this.suggestion.getBoundingClientRect(),W=this.dropdown.getBoundingClientRect();Y.width<J.left-Y.left+W.width?z=15:N=15,Y.bottom<W.bottom&&(R=0),this.setState({style:{left:N,right:z,bottom:R}}),x.registerCallBack(this.onEditorKeyDown),I(),v.modalHandler.setSuggestionCallback(this.closeSuggestionDropdown),this.filterSuggestions(this.props)}},{key:"componentDidUpdate",value:function(N){this.props.children!==N.children&&(this.filterSuggestions(N),this.setState({showSuggestions:!0}))}},{key:"componentWillUnmount",value:function(){x.deregisterCallBack(this.onEditorKeyDown),Q(),v.modalHandler.removeSuggestionCallback()}},{key:"render",value:function(){var N=this,z=this.props.children,R=this.state,Y=R.activeOption,J=R.showSuggestions,W=v.dropdownClassName,ye=v.optionClassName;return s.a.createElement("span",{className:"rdw-suggestion-wrapper",ref:this.setSuggestionReference,onClick:v.modalHandler.onSuggestionClick,"aria-haspopup":"true","aria-label":"rdw-suggestion-popup"},s.a.createElement("span",null,z),J&&s.a.createElement("span",{className:y()("rdw-suggestion-dropdown",W),contentEditable:"false",suppressContentEditableWarning:!0,style:this.state.style,ref:this.setDropdownReference},this.filteredSuggestions.map(function(Ee,He){return s.a.createElement("span",{key:He,spellCheck:!1,onClick:N.addMention,"data-index":He,onMouseEnter:N.onOptionMouseEnter,onMouseLeave:N.onOptionMouseLeave,className:y()("rdw-suggestion-option",ye,{"rdw-suggestion-option-active":He===Y})},Ee.text)})))}}]),T}()).propTypes={children:d.a.array},b}.bind(this),this.getSuggestionDecorator=function(){return{strategy:r.findSuggestionEntities,component:r.getSuggestionComponent()}};var o=t.separator,n=t.trigger,e=t.getSuggestions,a=t.onChange,c=t.getEditorState,u=t.getWrapperRef,l=t.caseSensitive,p=t.dropdownClassName,f=t.optionClassName,m=t.modalHandler;this.config={separator:o,trigger:n,getSuggestions:e,onChange:a,getEditorState:c,getWrapperRef:u,caseSensitive:l,dropdownClassName:p,optionClassName:f,modalHandler:m}}),Fr=function(i){return[new Pr(i.mentionClassName).getMentionDecorator(),new Br(i).getSuggestionDecorator()]};E(36);function Yr(i,t,r){return Object.defineProperty(i,"prototype",{writable:!1}),i}function lo(i){var t=i.block,r=i.contentState.getEntity(t.getEntityAt(0)).getData(),o=r.src,n=r.height,e=r.width;return s.a.createElement("iframe",{height:n,width:e,src:o,frameBorder:"0",allowFullScreen:!0,title:"Wysiwyg Embedded Content"})}var Qr=Yr(function i(t){var r=this;(function(o,n){if(!(o instanceof n))throw new TypeError("Cannot call a class as a function")})(this,i),this.getHashtagComponent=function(){function o(e){var a=e.children,c=a[0].props.text;return s.a.createElement("a",{href:c,className:y()("rdw-hashtag-link",n)},a)}var n=r.className;return o.propTypes={children:d.a.object},o},this.findHashtagEntities=function(o,n){for(var e=o.getText(),a=0,c=0;0<e.length&&0<=a;)if(e[0]===r.hashCharacter?(c=a=0,e=e.substr(r.hashCharacter.length)):0<=(a=e.indexOf(r.separator+r.hashCharacter))&&(e=e.substr(a+(r.separator+r.hashCharacter).length),c+=a+r.separator.length),0<=a){var u=0<=e.indexOf(r.separator)?e.indexOf(r.separator):e.length,l=e.substr(0,u);l&&0<l.length&&(n(c,c+l.length+r.hashCharacter.length),c+=r.hashCharacter.length)}},this.getHashtagDecorator=function(){return{strategy:r.findHashtagEntities,component:r.getHashtagComponent()}},this.className=t.className,this.hashCharacter=t.hashCharacter||"#",this.separator=t.separator||" "}),Hr=function(i){return new Qr(i).getHashtagDecorator()};lo.propTypes={block:d.a.object,contentState:d.a.object};var Zr=lo;E(37);function so(i){return(so=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(i)}function Wr(i,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(i,o.key,o)}}function uo(i,t){return(uo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r})(i,t)}function Gr(i){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,o=xt(i);if(t){var n=xt(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return function(e,a){{if(a&&(so(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined")}return function(c){if(c!==void 0)return c;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,r)}}function xt(i){return(xt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(i)}var Jr=function(i){var t;return(t=function(){(function(a,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(c&&c.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),c&&uo(a,c)})(e,C.Component);var r,o,n=Gr(e);function e(){var a;(function(p,f){if(!(p instanceof f))throw new TypeError("Cannot call a class as a function")})(this,e);for(var c=arguments.length,u=new Array(c),l=0;l<c;l++)u[l]=arguments[l];return(a=n.call.apply(n,[this].concat(u))).state={hovered:!1},a.setEntityAlignmentLeft=function(){a.setEntityAlignment("left")},a.setEntityAlignmentRight=function(){a.setEntityAlignment("right")},a.setEntityAlignmentCenter=function(){a.setEntityAlignment("none")},a.setEntityAlignment=function(p){var f=a.props,m=f.block,b=f.contentState,v=m.getEntityAt(0);b.mergeEntityData(v,{alignment:p}),i.onChange(L.EditorState.push(i.getEditorState(),b,"change-block-data")),a.setState({dummy:!0})},a.toggleHovered=function(){var p=!a.state.hovered;a.setState({hovered:p})},a}return r=e,(o=[{key:"renderAlignmentOptions",value:function(a){return s.a.createElement("div",{className:y()("rdw-image-alignment-options-popup",{"rdw-image-alignment-options-popup-right":a==="right"})},s.a.createElement(q,{onClick:this.setEntityAlignmentLeft,className:"rdw-image-alignment-option"},"L"),s.a.createElement(q,{onClick:this.setEntityAlignmentCenter,className:"rdw-image-alignment-option"},"C"),s.a.createElement(q,{onClick:this.setEntityAlignmentRight,className:"rdw-image-alignment-option"},"R"))}},{key:"render",value:function(){var a=this.props,c=a.block,u=a.contentState,l=this.state.hovered,p=i.isReadOnly,f=i.isImageAlignmentEnabled,m=u.getEntity(c.getEntityAt(0)).getData(),b=m.src,v=m.alignment,_=m.height,T=m.width,N=m.alt;return s.a.createElement("span",{onMouseEnter:this.toggleHovered,onMouseLeave:this.toggleHovered,className:y()("rdw-image-alignment",{"rdw-image-left":v==="left","rdw-image-right":v==="right","rdw-image-center":!v||v==="none"})},s.a.createElement("span",{className:"rdw-image-imagewrapper"},s.a.createElement("img",{src:b,alt:N,style:{height:_,width:T}}),!p()&&l&&f()?this.renderAlignmentOptions(v):void 0))}}])&&Wr(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),e}()).propTypes={block:d.a.object,contentState:d.a.object},t},Vr=function(i,t){return function(r){if(typeof t=="function"){var o=t(r,i,i.getEditorState);if(o)return o}if(r.getType()==="atomic"){var n=i.getEditorState().getCurrentContent().getEntity(r.getEntityAt(0));if(n&&n.type==="IMAGE")return{component:Jr(i),editable:!1};if(n&&n.type==="EMBEDDED_LINK")return{component:Zr,editable:!1}}}},po={options:["inline","blockType","fontSize","fontFamily","list","textAlign","colorPicker","link","embedded","emoji","image","remove","history"],inline:{inDropdown:!1,className:void 0,component:void 0,dropdownClassName:void 0,options:["bold","italic","underline","strikethrough","monospace","superscript","subscript"],bold:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYuMjM2IDBjMS42NTIgMCAyLjk0LjI5OCAzLjg2Ni44OTMuOTI1LjU5NSAxLjM4OCAxLjQ4NSAxLjM4OCAyLjY2OSAwIC42MDEtLjE3MyAxLjEzOS0uNTE2IDEuNjEtLjM0My40NzQtLjg0NC44My0xLjQ5OSAxLjA2OC44NDMuMTY3IDEuNDc0LjUyMyAxLjg5NSAxLjA3MS40MTkuNTUuNjMgMS4xODMuNjMgMS45MDMgMCAxLjI0N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["Normal","H1","H2","H3","H4","H5","H6","Blockquote","Code"],className:void 0,component:void 0,dropdownClassName:void 0,title:void 0},fontSize:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTEuOTIxIDMuMTE5YS40MjcuNDI3IDAgMCAwIC4zMzUuMTY0aC45N2EuNDI2LjQyNiAwIDAgMCAuMzA0LS4xMy40NDEuNDQxIDAgMCAwIC4xMjUtLjMxbC4wMDItMi40MWEuNDM0LjQzNCAwIDAgMC0uNDMtLjQzMkguNDNBLjQzNC40MzQgMCAwIDAgMCAuNDR2Mi40MDZjMCAuMjQyLjE5Mi40MzguNDMuNDM4aC45N2MuMTMgMCAuMjU0LS4wNi4zMzUtLjE2NWwuNzMtLjkzSDUuNTR2MTEuMzZjMCAuMjQxLjE5Mi40MzcuNDMuNDM3aDEuNzE3Yy4yMzcgMCAuNDMtLjE5Ni40My0uNDM3VjIuMTg4aDMuMDdsLjczNC45MzF6TTEzLjg5OCAxMS4yNjNhLjQyNS40MjUgMCAwIDAtLjQ4Mi0uMTQ2bC0uNTQ3LjE5NFY5LjYxN2EuNDQyLjQ0MiAwIDAgMC0uMTI2LS4zMS40MjYuNDI2IDAgMCAwLS4zMDQtLjEyN2gtLjQyOWEuNDM0LjQzNCAwIDAgMC0uNDMuNDM3djEuNjk0bC0uNTQ3LS4xOTRhLjQyNS40MjUgMCAwIDAtLjQ4MS4xNDYuNDQ0LjQ0NCAwIDAgMC0uMDE2LjUxMmwxLjMzMiAyLjAxN2EuNDI3LjQyNyAwIDAgMCAuNzEzIDBsMS4zMzMtMi4wMTdhLjQ0NC40NDQgMCAwIDAtLjAxNi0uNTEyeiIvPjwvZz48L3N2Zz4=",options:[8,9,10,11,12,14,16,18,24,30,36,48,60,72,96],className:void 0,component:void 0,dropdownClassName:void 0,title:void 0},fontFamily:{options:["Arial","Georgia","Impact","Tahoma","Times New Roman","Verdana"],className:void 0,component:void 0,dropdownClassName:void 0,title:void 0},list:{inDropdown:!1,className:void 0,component:void 0,dropdownClassName:void 0,options:["unordered","ordered","indent","outdent"],unordered:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMS43MiAzLjQyN2MuOTUxIDAgMS43MjItLjc2OCAxLjcyMi0xLjcwOFMyLjY3LjAxIDEuNzIuMDFDLjc3LjAwOCAwIC43NzUgMCAxLjcxNWMwIC45NC43NzQgMS43MTEgMS43MiAxLjcxMXptMC0yLjYyNWMuNTEgMCAuOTIyLjQxMi45MjIuOTE0YS45Mi45MiAwIDAgMS0xLjg0MiAwIC45Mi45MiAwIDAgMSAuOTItLjkxNHpNMS43MiA4LjcwM2MuOTUxIDAgMS43MjItLjc2OCAxLjcyMi0xLjcwOFMyLjY3IDUuMjg3IDEuNzIgNS4yODdDLjc3IDUuMjg3IDAgNi4wNTIgMCA2Ljk5NXMuNzc0IDEuNzA4IDEuNzIgMS43MDh6bTAtMi42MjJjLjUxIDAgLjkyMi40MTIuOTIyLjkxNGEuOTIuOTIgMCAwIDEtMS44NDIgMGMwLS41MDUuNDE1LS45MTQuOTItLjkxNHpNMS43MiAxMy45ODJjLjk1MSAwIDEuNzIyLS43NjggMS43MjItMS43MDggMC0uOTQzLS43NzQtMS43MDgtMS43MjEtMS43MDgtLjk0NyAwLTEuNzIxLjc2OC0xLjcyMSAxLjcwOHMuNzc0IDEuNzA4IDEuNzIgMS43MDh6bTAtMi42MjVjLjUxIDAgLjkyMi40MTIuOTIyLjkxNGEuOTIuOTIgMCAxIDEtMS44NDIgMCAuOTIuOTIgMCAwID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IC4yLjEyNS4zNS4yOTEuMzUuMjI1IDAgLjI3LjEwOC4yNy4yODN2LjA3NWMwIC4yOTQtLjA5Ny4zNS0uMjc3LjM1LS4yNDggMC0uMjY3LS4xNS0uMjY3LS4xOTcgMC0uMTc0LS4wOTgtLjM1LS4zMTctLjM1LS4xOTIgMC0uMzA3LjE0MS0uMzA3LjM3OCAwIC40My4zMTMuODg4Ljg5NS44ODguNTY0IDAgLjkwMS0uNC45MDEtMS4wN3YtLjA3NGMwLS4yNzQtLjA3NC0uNTAyLS4yMTQtLjY2Ni4wOTYtLjE2My4xNDgtLjM4LjE0OC0uNjM1eiIvPjwvZz48L3N2Zz4=",className:void 0,title:void 0},indent:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNS43MTYgMy4yMTFIMTd2MS4xOTdINS43MTZ6TTAgLjAyaDE3djEuMTk3SDB6TTAgMTIuNzgzaDE3djEuMTk3SDB6TTUuNzE2IDkuNTkzSDE3djEuMTk3SDUuNzE2ek01LjcxNiA2LjQwMkgxN3YxLjE5N0g1LjcxNnpNLjE4NyA5LjQ5MUwyLjUyIDcgLjE4NyA0LjUwOXoiLz48L2c+PC9zdmc+",className:void 0,title:void 0},outdent:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNS4zOTYgMy4xOTNoMTAuNTczVjQuMzlINS4zOTZ6TS4wMzkuMDAzaDE1LjkzVjEuMkguMDM5ek0uMDM5IDEyLjc2NmgxNS45M3YxLjE5N0guMDM5ek01LjM5NiA5LjU3NWgxMC41NzN2MS4xOTdINS4zOTZ6TTUuMzk2IDYuMzg0aDEwLjU3M3YxLjE5N0g1LjM5NnpNMi4xODcgNC40OTFMMCA2Ljk4M2wyLjE4NyAyLjQ5MXoiLz48L2c+PC9zdmc+",className:void 0,title:void 0},title:void 0},textAlign:{inDropdown:!1,className:void 0,component:void 0,dropdownClassName:void 0,options:["left","center","right","justify"],left:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNOC40OTMgMTQuODg3SC4zMjZhLjMyNi4zMjYgMCAwIDEgMC0uNjUyaDguMTY3YS4zMjYuMzI2IDAgMCAxIDAgLjY1MnpNMTQuNjE4IDEwLjE2MkguMzI2YS4zMjYuMzI2IDAgMCAxIDAtLjY1M2gxNC4yOTJhLjMyNi4zMjYgMCAwIDEgMCAuNjUzek04LjQ5MyA1LjQzNUguMzI2YS4zMjYuMzI2IDAgMCAxIDAtLjY1Mmg4LjE2N2EuMzI2LjMyNiAwIDAgMSAwIC42NTJ6TTE0LjYxOC43MDlILjMyNmEuMzI2LjMyNiAwIDAgMSAwLS42NTJoMTQuMjkyYS4zMjYuMzI2IDAgMCAxIDAgLjY1MnoiLz48L2c+PC9zdmc+",className:void 0,title:void 0},center:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTEuNTU2IDE0Ljg4N0gzLjM4OGEuMzI2LjMyNiAwIDAgMSAwLS42NTJoOC4xNjdhLjMyNi4zMjYgMCAwIDEgMCAuNjUyek0xNC42MTggMTAuMTYySC4zM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wOCAxLjEwNy0yLjgzIDIuODN6TTIuMDggMTMuNjczYy0xLjE0OCAwLTIuMDguMjk1LTIuMDguNjYgMCAuMzYzLjkzMi42NTggMi4wOC42NTggMS4xNSAwIDIuMDgtLjI5NCAyLjA4LS42NTkgMC0uMzY0LS45My0uNjU5LTIuMDgtLjY1OXoiLz48L2c+PC9zdmc+",className:void 0,component:void 0,popupClassName:void 0,colors:["rgb(97,189,109)","rgb(26,188,156)","rgb(84,172,210)","rgb(44,130,201)","rgb(147,101,184)","rgb(71,85,119)","rgb(204,204,204)","rgb(65,168,95)","rgb(0,168,133)","rgb(61,142,185)","rgb(41,105,176)","rgb(85,57,130)","rgb(40,50,78)","rgb(0,0,0)","rgb(247,218,100)","rgb(251,160,38)","rgb(235,107,86)","rgb(226,80,65)","rgb(163,143,132)","rgb(239,239,239)","rgb(255,255,255)","rgb(250,197,28)","rgb(243,121,52)","rgb(209,72,65)","rgb(184,49,47)","rgb(124,112,107)","rgb(209,213,216)"],title:void 0},link:{inDropdown:!1,className:void 0,component:void 0,popupClassName:void 0,dropdownClassName:void 0,showOpenOptionOnHover:!0,defaultTargetOption:"_self",options:["link","unlink"],link:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEzLjk2Ny45NUEzLjIyNiAzLjIyNiAwIDAgMCAxMS42Ny4wMDJjLS44NyAwLTEuNjg2LjMzNy0yLjI5Ny45NDhMNy4xMDUgMy4yMThBMy4yNDcgMy4yNDcgMCAwIDAgNi4yNCA2LjI0YTMuMjI1IDMuMjI1IDAgMCAwLTMuMDIyLjg2NUwuOTUgOS4zNzNhMy4yNTMgMy4yNTMgMCAwIDAgMCA0LjU5NCAzLjIyNiAzLjIyNiAwIDAgMCAyLjI5Ny45NDhjLjg3IDAgMS42ODYtLjMzNiAyLjI5OC0uOTQ4TDcuODEyIDExLjd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wMi0zLjAyMSAzLjAyLTcuOTM2IDAtMTAuOTU3em0tLjg0NSAxMC4xMTJhNi41NiA2LjU2IDAgMCAxLTkuMjY4IDAgNi41NiA2LjU2IDAgMCAxIDAtOS4yNjcgNi41NiA2LjU2IDAgMCAxIDkuMjY4IDAgNi41NiA2LjU2IDAgMCAxIDAgOS4yNjd6bS03LjUyNC02LjczYS45MDYuOTA2IDAgMSAxIDEuODExIDAgLjkwNi45MDYgMCAwIDEtMS44MTEgMHptNC4xMDYgMGEuOTA2LjkwNiAwIDEgMSAxLjgxMiAwIC45MDYuOTA2IDAgMCAxLTEuODEyIDB6bTIuMTQxIDMuNzA4Yy0uNTYxIDEuMjk4LTEuODc1IDIuMTM3LTMuMzQ4IDIuMTM3LTEuNTA1IDAtMi44MjctLjg0My0zLjM2OS0yLjE0N2EuNDM4LjQzOCAwIDAgMSAuODEtLjMzNmMuNDA1Ljk3NiAxLjQxIDEuNjA3IDIuNTU5IDEuNjA3IDEuMTIzIDAgMi4xMjEtLjYzMSAyLjU0NC0xLjYwOGEuNDM4LjQzOCAwIDAgMSAuODA0LjM0N3oiLz48L3N2Zz4=",className:void 0,component:void 0,popupClassName:void 0,emojis:["😀","😁","😂","😃","😉","😋","😎","😍","😗","🤗","🤔","😣","😫","😴","😌","🤓","😛","😜","😠","😇","😷","😈","👻","😺","😸","😹","😻","😼","😽","🙀","🙈","🙉","🙊","👼","👮","🕵","💂","👳","🎅","👸","👰","👲","🙍","🙇","🚶","🏃","💃","⛷","🏂","🏌","🏄","🚣","🏊","⛹","🏋","🚴","👫","💪","👈","👉","👆","🖕","👇","🖖","🤘","🖐","👌","👍","👎","✊","👊","👏","🙌","🙏","🐵","🐶","🐇","🐥","🐸","🐌","🐛","🐜","🐝","🍉","🍄","🍔","🍤","🍨","🍪","🎂","🍰","🍾","🍷","🍸","🍺","🌍","🚑","⏰","🌙","🌝","🌞","⭐","🌟","🌠","🌨","🌩","⛄","🔥","🎄","🎈","🎉","🎊","🎁","🎗","🏀","🏈","🎲","🔇","🔈","📣","🔔","🎵","🎷","💰","🖊","📅","✅","❎","💯"],title:void 0},embedded:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTciIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYuNzA4IDYuNjE1YS40MzYuNDM2IDAgMCAwLS41NDMuMjkxbC0xLjgzIDYuMDQ1YS40MzYuNDM2IDAgMCAwIC44MzMuMjUyTDcgNy4xNmEuNDM2LjQzNiAwIDAgMC0uMjktLjU0NHpNOC45MzEgNi42MTVhLjQzNi40MzYgMCAwIDAtLjU0My4yOTFsLTEuODMgNi4wNDVhLjQzNi40MzYgMCAwIDAgLjgzNC4yNTJsMS44My02LjA0NGEuNDM2LjQzNiAwIDAgMC0uMjktLjU0NHoiLz48cGF0aCBkPSJNMTYuNTY0IDBILjQzNkEuNDM2LjQzNiAwIDAgMCAwIC40MzZ2MTYuMTI4YzAgLjI0LjE5NS40MzYuNDM2LjQzNmgxNi4xMjhjLjI0IDAgLjQzNi0uMTk1LjQzNi0uNDM2Vi40MzZBLjQzNi40MzYgMCAwIDAgMTYuNTY0IDB6TTMuNDg3Ljg3MmgxMC4wMjZ2MS43NDNIMy40ODdWLjg3MnptLTIuNjE1IDBoMS43NDN2MS43NDNILjg3MlYuODcyem0xNS4yNTYgMTUuMjU2SC44NzJWMy40ODhoMTUuMjU2djEyLjY0em0wLTEzLjUxM2gtMS43NDNWLjg3MmgxLjc0M3YxLjc0M3oiLz48Y2lyY2xlIGN4PSI5My44NjciIGN5PSIyNDUuMDY0IiByPSIxMy4xMjgiIHRyYW5zZm9ybT0ibWF0cml4KC4wMzMyIDAgMCAuMDMzMiAwIDApIi8+PGNpcmNsZSBjeD0iOTMuODY3IiBjeT0iMzYwLjU5MiIgcj0iMTMuMTI4IiB0cmFuc2Zvcm09Im1hdHJpeCguMDMzMiAwIDAgLjAzMzIgMCAwKSIvPjxwYXRoIGQ9Ik0xNC4yNTQgMTIuNjQxSDEwLjJhLjQzNi40MzYgMCAwIDAgMCAuODcyaDQuMDU0YS40MzYuNDM2IDAgMCAwIDAtLjg3MnoiLz48L3N2Zz4=",className:void 0,component:void 0,popupClassName:void 0,embedCallback:void 0,defaultSize:{height:"auto",width:"auto"},title:void 0},image:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuNzQxIDBILjI2Qy4xMTYgMCAwIC4xMzYgMCAuMzA0djEzLjM5MmMwIC4xNjguMTE2LjMwNC4yNTkuMzA0SDE0Ljc0Yy4xNDMgMCAuMjU5LS4xMzYuMjU5LS4zMDRWLjMwNEMxNSAuMTM2IDE0Ljg4NCAwIDE0Ljc0MSAwem0tLjI1OCAxMy4zOTFILjUxN1YuNjFoMTMuOTY2VjEzLjM5eiIvPjxwYXRoIGQ9Ik00LjEzOCA2LjczOGMuNzk0IDAgMS40NC0uNzYgMS40NC0xLjY5NXMtLjY0Ni0xLjY5NS0xLjQ0LTEuNjk1Yy0uNzk0IDAtMS40NC43Ni0xLjQ0IDEuNjk1IDAgLjkzNC42NDYgMS42OTUgMS40NCAxLjY5NXptMC0yLjc4MWMuNTA5IDAgLjkyMy40ODcuOTIzIDEuMDg2IDAgLjU5OC0uNDE0IDEuMDg2LS45MjMgMS4wODYtLjUwOSAwLS45MjMtLjQ4Ny0uOTIzLTEuMDg2IDAtLjU5OS40MTQtMS4wODYuOTIzLTEuMDg2ek0xLjgxIDEyLjE3NGMuMDYgMCAuMTIyLS4wMjUuMTcxLS4wNzZMNi4yIDcuNzI4bDIuNjY0IDMuMTM0YS4yMzIuMjMyIDAgMCAwIC4zNjYgMCAuMzQzLjM0MyAwIDAgMCAwLS40M0w3Ljk4NyA4Ljk2OWwyLjM3NC0zLjA2IDIuOTEyIDMuMTQyYy4xMDYuMTEzLjI3LjEwNS4zNjYtLjAyYS4zNDMuMzQzIDAgMCAwLS4wMTYtLjQzbC0zLjEwNC0zLjM0N2EuMjQ0LjI0NCAwIDAgMC0uMTg2LS4wOC4yNDUuMjQ1IDAgMCAwLS4xOC4xTDcuNjIyIDguNTM3IDYuMzk0IDcuMDk0YS4yMzIuMjMyIDAgMCAwLS4zNTQtLjAxM2wtNC40IDQuNTZhLjM0My4zNDMgMCAwIDAtLjAyNC40My4yNDMuMjQzIDAgMCAwIC4xOTQuMTAzeiIvPjwvZz48L3N2Zz4=",className:void 0,component:void 0,popupClassName:void 0,urlEnabled:!0,uploadEnabled:!0,previewImage:!1,alignmentEnabled:!0,uploadCallback:void 0,inputAccept:"image/gif,image/jpeg,image/jpg,image/png,image/svg",alt:{present:!1,mandatory:!1},defaultSize:{height:"auto",width:"auto"},title:void 0},remove:{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNSIgaGVpZ2h0PSIxNSIgdmlld0JveD0iMCAwIDE2IDE2Ij48cGF0aCBkPSJNOC4xIDE0bDYuNC03LjJjLjYtLjcuNi0xLjgtLjEtMi41bC0yLjctMi43Yy0uMy0uNC0uOC0uNi0xLjMtLjZIOC42Yy0uNSAwLTEgLjItMS40LjZMLjUgOS4yYy0uNi43LS42IDEuOS4xIDIuNWwyLjcgMi43Yy4zLjQuOC42IDEuMy42SDE2di0xSDguMXptLTEuMy0uMXMwLS4xIDAgMGwtMi43LTIuN2MtLjQtLjQtLjQtLjkgMC0xLjNMNy41IDZoLTFsLTMgMy4zYy0uNi43LS42IDEuNy4xIDIuNEw1LjkgMTRINC42Yy0uMiAwLS40LS4xLS42LS4yTDEuMiAxMWMtLjMtLjMtLjMtLjggMC0xLjFMNC43IDZoMS44TDEwIDJoMUw3LjUgNmwzLjEgMy43LTMuNSA0Yy0uMS4xLS4yLjEtLjMuMnoiLz48L3N2Zz4=",className:void 0,component:void 0,title:void 0},history:{inDropdown:!1,className:void 0,component:void 0,dropdownClassName:void 0,options:["undo","redo"],undo:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTciIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTcgMTQuODc1YzIuNjcyIDAgNC44NDYtMi4xNDUgNC44NDYtNC43ODEgMC0yLjYzNy0yLjE3NC00Ljc4MS00Ljg0Ni00Ljc4MVY4LjVMMS42MTUgNC4yNSA3IDB2My4xODhjMy44NiAwIDcgMy4wOTggNyA2LjkwNlMxMC44NiAxNyA3IDE3cy03LTMuMDk4LTctNi45MDZoMi4xNTRjMCAyLjYzNiAyLjE3NCA0Ljc4MSA0Ljg0NiA0Ljc4MXoiIGZpbGw9IiMwMDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==",className:void 0,title:void 0},redo:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYuNTA0IDEzLjk3N2E0LjQ5NyA0LjQ5NyAwIDAgMS00LjQ5Mi00LjQ5MiA0LjQ5NyA0LjQ5NyAwIDAgMSA0LjQ5Mi00LjQ5M3YyLjk5NWw0Ljk5LTMuOTkzTDYuNTA0IDB2Mi45OTVhNi40OTYgNi40OTYgMCAwIDAtNi40ODggNi40OWMwIDMuNTc4IDIuOTEgNi40OSA2LjQ4OCA2LjQ5YTYuNDk2IDYuNDk2IDAgMCAwIDYuNDg3LTYuNDloLTEuOTk2YTQuNDk3IDQuNDk3IDAgMCAxLTQuNDkxIDQuNDkyeiIgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9zdmc+",className:void 0,title:void 0},title:void 0}},qr={en:{"generic.add":"Add","generic.cancel":"Cancel","components.controls.blocktype.h1":"H1","components.controls.blocktype.h2":"H2","components.controls.blocktype.h3":"H3","components.controls.blocktype.h4":"H4","components.controls.blocktype.h5":"H5","components.controls.blocktype.h6":"H6","components.controls.blocktype.blockquote":"Blockquote","components.controls.blocktype.code":"Code","components.controls.blocktype.blocktype":"Block Type","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Color Picker","components.controls.colorpicker.text":"Text","components.controls.colorpicker.background":"Highlight","components.controls.embedded.embedded":"Embedded","components.controls.embedded.embeddedlink":"Embedded Link","components.controls.embedded.enterlink":"Enter link","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Font","components.controls.fontsize.fontsize":"Font Size","components.controls.history.history":"History","components.controls.history.undo":"Undo","components.controls.history.redo":"Redo","components.controls.image.image":"Image","components.controls.image.fileUpload":"File Upload","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Drop the file or click to upload","components.controls.inline.bold":"Bold","components.controls.inline.italic":"Italic","components.controls.inline.underline":"Underline","components.controls.inline.strikethrough":"Strikethrough","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Superscript","components.controls.inline.subscript":"Subscript","components.controls.link.linkTitle":"Link Title","components.controls.link.linkTarget":"Link Target","components.controls.link.linkTargetOption":"Open link in new window","components.controls.link.link":"Link","components.controls.link.unlink":"Unlink","components.controls.list.list":"List","components.controls.list.unordered":"Unordered","components.controls.list.ordered":"Ordered","components.controls.list.indent":"Indent","components.controls.list.outdent":"Outdent","components.controls.remove.remove":"Remove","components.controls.textalign.textalign":"Text Align","components.controls.textalign.left":"Left","components.controls.textalign.center":"Center","components.controls.textalign.right":"Right","components.controls.textalign.justify":"Justify"},fr:{"generic.add":"Ok","generic.cancel":"Annuler","components.controls.blocktype.h1":"Titre 1","components.controls.blocktype.h2":"Titre 2","components.controls.blocktype.h3":"Titre 3","components.controls.blocktype.h4":"Titre 4","components.controls.blocktype.h5":"Titre 5","components.controls.blocktype.h6":"Titre 6","components.controls.blocktype.blockquote":"Citation","components.controls.blocktype.code":"Code","components.controls.blocktype.blocktype":"Type bloc","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Palette de couleur","components.controls.colorpicker.text":"Texte","components.controls.colorpicker.background":"Fond","components.controls.embedded.embedded":"Embedded","components.controls.embedded.embeddedlink":"Lien iFrame","components.controls.embedded.enterlink":"Entrer le lien","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Police","components.controls.fontsize.fontsize":"Taille de police","components.controls.history.history":"Historique","components.controls.history.undo":"Précédent","components.controls.history.redo":"Suivant","components.controls.image.image":"Image","components.controls.image.fileUpload":"Téléchargement","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Glisser une image ou cliquer pour télécharger","components.controls.inline.bold":"Gras","components.controls.inline.italic":"Italique","components.controls.inline.underline":"Souligner","components.controls.inline.strikethrough":"Barrer","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Exposant","components.controls.inline.subscript":"Indice","components.controls.link.linkTitle":"Titre du lien","components.controls.link.linkTarget":"Cible du lien","components.controls.link.linkTargetOption":"Ouvrir le lien dans une nouvelle fenêtre","components.controls.link.link":"Lier","components.controls.link.unlink":"Délier","components.controls.list.list":"Liste","components.controls.list.unordered":"Désordonnée","components.controls.list.ordered":"Ordonnée","components.controls.list.indent":"Augmenter le retrait","components.controls.list.outdent":"Diminuer le retrait","components.controls.remove.remove":"Supprimer","components.controls.textalign.textalign":"Alignement du texte","components.controls.textalign.left":"Gauche","components.controls.textalign.center":"Centre","components.controls.textalign.right":"Droite","components.controls.textalign.justify":"Justifier"},zh:{"generic.add":"添加","generic.cancel":"取消","components.controls.blocktype.h1":"标题1","components.controls.blocktype.h2":"标题2","components.controls.blocktype.h3":"标题3","components.controls.blocktype.h4":"标题4","components.controls.blocktype.h5":"标题5","components.controls.blocktype.h6":"标题6","components.controls.blocktype.blockquote":"引用","components.controls.blocktype.code":"源码","components.controls.blocktype.blocktype":"样式","components.controls.blocktype.normal":"正文","components.controls.colorpicker.colorpicker":"选色器","components.controls.colorpicker.text":"文字","components.controls.colorpicker.background":"背景","components.controls.embedded.embedded":"内嵌","components.controls.embedded.embeddedlink":"内嵌网页","components.controls.embedded.enterlink":"输入网页地址","components.controls.emoji.emoji":"表情符号","components.controls.fontfamily.fontfamily":"字体","components.controls.fontsize.fontsize":"字号","components.controls.history.history":"历史","components.controls.history.undo":"撤销","components.controls.history.redo":"恢复","components.controls.image.image":"图片","components.controls.image.fileUpload":"来自文件","components.controls.image.byURL":"在线图片","components.controls.image.dropFileText":"点击或者拖拽文件上传","components.controls.inline.bold":"粗体","components.controls.inline.italic":"斜体","components.controls.inline.underline":"下划线","components.controls.inline.strikethrough":"删除线","components.controls.inline.monospace":"等宽字体","components.controls.inline.superscript":"上标","components.controls.inline.subscript":"下标","components.controls.link.linkTitle":"超链接","components.controls.link.linkTarget":"输入链接地址","components.controls.link.linkTargetOption":"在新窗口中打开链接","components.controls.link.link":"链接","components.controls.link.unlink":"删除链接","components.controls.list.list":"列表","components.controls.list.unordered":"项目符号","components.controls.list.ordered":"编号","components.controls.list.indent":"增加缩进量","components.controls.list.outdent":"减少缩进量","components.controls.remove.remove":"清除格式","components.controls.textalign.textalign":"文本对齐","components.controls.textalign.left":"文本左对齐","components.controls.textalign.center":"居中","components.controls.textalign.right":"文本右对齐","components.controls.textalign.justify":"两端对齐"},ru:{"generic.add":"Добавить","generic.cancel":"Отменить","components.controls.blocktype.h1":"Заголовок 1","components.controls.blocktype.h2":"Заголовок 2","components.controls.blocktype.h3":"Заголовок 3","components.controls.blocktype.h4":"Заголовок 4","components.controls.blocktype.h5":"Заголовок 5","components.controls.blocktype.h6":"Заголовок 6","components.controls.blocktype.blockquote":"Цитата","components.controls.blocktype.code":"Код","components.controls.blocktype.blocktype":"Форматирование","components.controls.blocktype.normal":"Обычный","components.controls.colorpicker.colorpicker":"Выбор цвета","components.controls.colorpicker.text":"Текст","components.controls.colorpicker.background":"Фон","components.controls.embedded.embedded":"Встраивание","components.controls.embedded.embeddedlink":"Ссылка в iFrame","components.controls.embedded.enterlink":"Вставьте ссылку","components.controls.emoji.emoji":"Эмодзи","components.controls.fontfamily.fontfamily":"Шрифт","components.controls.fontsize.fontsize":"Размер шрифта","components.controls.history.history":"История","components.controls.history.undo":"Отменить","components.controls.history.redo":"Вернуть","components.controls.image.image":"Изображение","components.controls.image.fileUpload":"Файлы","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Переместите в эту область файлы или кликните для загрузки","components.controls.inline.bold":"Жирный","components.controls.inline.italic":"Курсив","components.controls.inline.underline":"Подчеркивание","components.controls.inline.strikethrough":"Зачеркивание","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Верхний индекс","components.controls.inline.subscript":"Нижний индекс","components.controls.link.linkTitle":"Текст","components.controls.link.linkTarget":"Адрес ссылки","components.controls.link.linkTargetOption":"Открывать в новом окне","components.controls.link.link":"Ссылка","components.controls.link.unlink":"Убрать ссылку","components.controls.list.list":"Список","components.controls.list.unordered":"Неупорядоченный","components.controls.list.ordered":"Упорядоченный","components.controls.list.indent":"Отступ","components.controls.list.outdent":"Выступ","components.controls.remove.remove":"Удалить","components.controls.textalign.textalign":"Выравнивание текста","components.controls.textalign.left":"Слева","components.controls.textalign.center":"По центру","components.controls.textalign.right":"Справа","components.controls.textalign.justify":"Выравнить"},pt:{"generic.add":"Ok","generic.cancel":"Cancelar","components.controls.blocktype.h1":"Título 1","components.controls.blocktype.h2":"Título 2","components.controls.blocktype.h3":"Título 3","components.controls.blocktype.h4":"Título 4","components.controls.blocktype.h5":"Título 5","components.controls.blocktype.h6":"Título 6","components.controls.blocktype.blockquote":"Citação","components.controls.blocktype.code":"Code","components.controls.blocktype.blocktype":"Estilo","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Paleta de cores","components.controls.colorpicker.text":"Texto","components.controls.colorpicker.background":"Fundo","components.controls.embedded.embedded":"Embarcado","components.controls.embedded.embeddedlink":"Link embarcado","components.controls.embedded.enterlink":"Coloque o link","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Fonte","components.controls.fontsize.fontsize":"Tamanho da Fonte","components.controls.history.history":"Histórico","components.controls.history.undo":"Desfazer","components.controls.history.redo":"Refazer","components.controls.image.image":"Imagem","components.controls.image.fileUpload":"Carregar arquivo","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Arraste uma imagem aqui ou clique para carregar","components.controls.inline.bold":"Negrito","components.controls.inline.italic":"Itálico","components.controls.inline.underline":"Sublinhado","components.controls.inline.strikethrough":"Strikethrough","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Sobrescrito","components.controls.inline.subscript":"Subscrito","components.controls.link.linkTitle":"Título do link","components.controls.link.linkTarget":"Alvo do link","components.controls.link.linkTargetOption":"Abrir link em outra janela","components.controls.link.link":"Adicionar Link","components.controls.link.unlink":"Remover link","components.controls.list.list":"Lista","components.controls.list.unordered":"Sem ordenção","components.controls.list.ordered":"Ordenada","components.controls.list.indent":"Aumentar recuo","components.controls.list.outdent":"Diminuir recuo","components.controls.remove.remove":"Remover","components.controls.textalign.textalign":"Alinhamento do texto","components.controls.textalign.left":"À Esquerda","components.controls.textalign.center":"Centralizado","components.controls.textalign.right":"À Direita","components.controls.textalign.justify":"Justificado"},ko:{"generic.add":"입력","generic.cancel":"취소","components.controls.blocktype.h1":"제목1","components.controls.blocktype.h2":"제목2","components.controls.blocktype.h3":"제목3","components.controls.blocktype.h4":"제목4","components.controls.blocktype.h5":"제목5","components.controls.blocktype.h6":"제목6","components.controls.blocktype.blockquote":"인용","components.controls.blocktype.code":"Code","components.controls.blocktype.blocktype":"블록","components.controls.blocktype.normal":"표준","components.controls.colorpicker.colorpicker":"색상 선택","components.controls.colorpicker.text":"글꼴색","components.controls.colorpicker.background":"배경색","components.controls.embedded.embedded":"임베드","components.controls.embedded.embeddedlink":"임베드 링크","components.controls.embedded.enterlink":"주소를 입력하세요","components.controls.emoji.emoji":"이모지","components.controls.fontfamily.fontfamily":"글꼴","components.controls.fontsize.fontsize":"글꼴 크기","components.controls.history.history":"히스토리","components.controls.history.undo":"실행 취소","components.controls.history.redo":"다시 실행","components.controls.image.image":"이미지","components.controls.image.fileUpload":"파일 업로드","components.controls.image.byURL":"주소","components.controls.image.dropFileText":"클릭하거나 파일을 드롭하여 업로드하세요","components.controls.inline.bold":"굵게","components.controls.inline.italic":"기울임꼴","components.controls.inline.underline":"밑줄","components.controls.inline.strikethrough":"취소선","components.controls.inline.monospace":"고정 너비","components.controls.inline.superscript":"위 첨자","components.controls.inline.subscript":"아래 첨자","components.controls.link.linkTitle":"링크 제목","components.controls.link.linkTarget":"링크 타겟","components.controls.link.linkTargetOption":"새창으로 열기","components.controls.link.link":"링크","components.controls.link.unlink":"링크 제거","components.controls.list.list":"리스트","components.controls.list.unordered":"일반 리스트","components.controls.list.ordered":"순서 리스트","components.controls.list.indent":"들여쓰기","components.controls.list.outdent":"내어쓰기","components.controls.remove.remove":"삭제","components.controls.textalign.textalign":"텍스트 정렬","components.controls.textalign.left":"왼쪽","components.controls.textalign.center":"중앙","components.controls.textalign.right":"오른쪽","components.controls.textalign.justify":"양쪽"},it:{"generic.add":"Aggiungi","generic.cancel":"Annulla","components.controls.blocktype.h1":"H1","components.controls.blocktype.h2":"H2","components.controls.blocktype.h3":"H3","components.controls.blocktype.h4":"H4","components.controls.blocktype.h5":"H5","components.controls.blocktype.h6":"H6","components.controls.blocktype.blockquote":"Citazione","components.controls.blocktype.code":"Codice","components.controls.blocktype.blocktype":"Stili","components.controls.blocktype.normal":"Normale","components.controls.colorpicker.colorpicker":"Colore testo","components.controls.colorpicker.text":"Testo","components.controls.colorpicker.background":"Evidenziazione","components.controls.embedded.embedded":"Incorpora","components.controls.embedded.embeddedlink":"Incorpora link","components.controls.embedded.enterlink":"Inserisci link","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Carattere","components.controls.fontsize.fontsize":"Dimensione carattere","components.controls.history.history":"Modifiche","components.controls.history.undo":"Annulla","components.controls.history.redo":"Ripristina","components.controls.image.image":"Immagine","components.controls.image.fileUpload":"Carica immagine","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Trascina il file o clicca per caricare","components.controls.inline.bold":"Grassetto","components.controls.inline.italic":"Corsivo","components.controls.inline.underline":"Sottolineato","components.controls.inline.strikethrough":"Barrato","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Apice","components.controls.inline.subscript":"Pedice","components.controls.link.linkTitle":"Testo","components.controls.link.linkTarget":"Link","components.controls.link.linkTargetOption":"Apri link in una nuova finestra","components.controls.link.link":"Inserisci link","components.controls.link.unlink":"Rimuovi link","components.controls.list.list":"Lista","components.controls.list.unordered":"Elenco puntato","components.controls.list.ordered":"Elenco numerato","components.controls.list.indent":"Indent","components.controls.list.outdent":"Outdent","components.controls.remove.remove":"Rimuovi formattazione","components.controls.textalign.textalign":"Allineamento del testo","components.controls.textalign.left":"Allinea a sinistra","components.controls.textalign.center":"Allinea al centro","components.controls.textalign.right":"Allinea a destra","components.controls.textalign.justify":"Giustifica"},nl:{"generic.add":"Toevoegen","generic.cancel":"Annuleren","components.controls.blocktype.h1":"H1","components.controls.blocktype.h2":"H2","components.controls.blocktype.h3":"H3","components.controls.blocktype.h4":"H4","components.controls.blocktype.h5":"H5","components.controls.blocktype.h6":"H6","components.controls.blocktype.blockquote":"Blockquote","components.controls.blocktype.code":"Code","components.controls.blocktype.blocktype":"Blocktype","components.controls.blocktype.normal":"Normaal","components.controls.colorpicker.colorpicker":"Kleurkiezer","components.controls.colorpicker.text":"Tekst","components.controls.colorpicker.background":"Achtergrond","components.controls.embedded.embedded":"Ingevoegd","components.controls.embedded.embeddedlink":"Ingevoegde link","components.controls.embedded.enterlink":"Voeg link toe","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Lettertype","components.controls.fontsize.fontsize":"Lettergrootte","components.controls.history.history":"Geschiedenis","components.controls.history.undo":"Ongedaan maken","components.controls.history.redo":"Opnieuw","components.controls.image.image":"Afbeelding","components.controls.image.fileUpload":"Bestand uploaden","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Drop het bestand hier of klik om te uploaden","components.controls.inline.bold":"Dikgedrukt","components.controls.inline.italic":"Schuingedrukt","components.controls.inline.underline":"Onderstrepen","components.controls.inline.strikethrough":"Doorstrepen","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Superscript","components.controls.inline.subscript":"Subscript","components.controls.link.linkTitle":"Linktitel","components.controls.link.linkTarget":"Link bestemming","components.controls.link.linkTargetOption":"Open link in een nieuw venster","components.controls.link.link":"Link","components.controls.link.unlink":"Unlink","components.controls.list.list":"Lijst","components.controls.list.unordered":"Ongeordend","components.controls.list.ordered":"Geordend","components.controls.list.indent":"Inspringen","components.controls.list.outdent":"Inspringen verkleinen","components.controls.remove.remove":"Verwijderen","components.controls.textalign.textalign":"Tekst uitlijnen","components.controls.textalign.left":"Links","components.controls.textalign.center":"Gecentreerd","components.controls.textalign.right":"Rechts","components.controls.textalign.justify":"Uitgelijnd"},de:{"generic.add":"Hinzufügen","generic.cancel":"Abbrechen","components.controls.blocktype.h1":"Überschrift 1","components.controls.blocktype.h2":"Überschrift 2","components.controls.blocktype.h3":"Überschrift 3","components.controls.blocktype.h4":"Überschrift 4","components.controls.blocktype.h5":"Überschrift 5","components.controls.blocktype.h6":"Überschrift 6","components.controls.blocktype.blockquote":"Zitat","components.controls.blocktype.code":"Quellcode","components.controls.blocktype.blocktype":"Blocktyp","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Farbauswahl","components.controls.colorpicker.text":"Text","components.controls.colorpicker.background":"Hintergrund","components.controls.embedded.embedded":"Eingebettet","components.controls.embedded.embeddedlink":"Eingebetteter Link","components.controls.embedded.enterlink":"Link eingeben","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Schriftart","components.controls.fontsize.fontsize":"Schriftgröße","components.controls.history.history":"Historie","components.controls.history.undo":"Zurücknehmen","components.controls.history.redo":"Wiederholen","components.controls.image.image":"Bild","components.controls.image.fileUpload":"Datei-Upload","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Dateien ziehen und ablegen, oder klicken zum Hochladen","components.controls.inline.bold":"Fett","components.controls.inline.italic":"Kursiv","components.controls.inline.underline":"Unterstreichen","components.controls.inline.strikethrough":"Durchstreichen","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Hochgestellt","components.controls.inline.subscript":"Tiefgestellt","components.controls.link.linkTitle":"Link-Titel","components.controls.link.linkTarget":"Link-Ziel","components.controls.link.linkTargetOption":"Link in neuem Fenster öffnen","components.controls.link.link":"Link","components.controls.link.unlink":"Aufheben","components.controls.list.list":"Liste","components.controls.list.unordered":"Aufzählung","components.controls.list.ordered":"Nummerierte Liste","components.controls.list.indent":"Einzug vergrößern","components.controls.list.outdent":"Einzug reduzieren","components.controls.remove.remove":"Entfernen","components.controls.textalign.textalign":"Textausrichtung","components.controls.textalign.left":"Linksbündig","components.controls.textalign.center":"Zentrieren","components.controls.textalign.right":"Rechtsbündig","components.controls.textalign.justify":"Blocksatz"},da:{"generic.add":"Tilføj","generic.cancel":"Annuller","components.controls.blocktype.h1":"Overskrift 1","components.controls.blocktype.h2":"Overskrift 2","components.controls.blocktype.h3":"Overskrift 3","components.controls.blocktype.h4":"Overskrift 4","components.controls.blocktype.h5":"Overskrift 5","components.controls.blocktype.h6":"Overskrift 6","components.controls.blocktype.blockquote":"Blokcitat","components.controls.blocktype.code":"Kode","components.controls.blocktype.blocktype":"Blok Type","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Farver","components.controls.colorpicker.text":"Tekst","components.controls.colorpicker.background":"Baggrund","components.controls.embedded.embedded":"Indlejre","components.controls.embedded.embeddedlink":"Indlejre Link","components.controls.embedded.enterlink":"Indtast link","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Fonttype","components.controls.fontsize.fontsize":"Fontstørrelser","components.controls.history.history":"Historie","components.controls.history.undo":"Fortryd","components.controls.history.redo":"Gendan","components.controls.image.image":"Billede","components.controls.image.fileUpload":"Filoverførsel","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Drop filen eller klik for at uploade","components.controls.inline.bold":"Fed","components.controls.inline.italic":"Kursiv","components.controls.inline.underline":"Understrege","components.controls.inline.strikethrough":"Gennemstreget","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Hævet","components.controls.inline.subscript":"Sænket","components.controls.link.linkTitle":"Link Titel","components.controls.link.linkTarget":"Link Mål","components.controls.link.linkTargetOption":"Åbn link i nyt vindue","components.controls.link.link":"Link","components.controls.link.unlink":"Fjern link","components.controls.list.list":"Liste","components.controls.list.unordered":"Uordnet","components.controls.list.ordered":"Ordnet","components.controls.list.indent":"Indrykning","components.controls.list.outdent":"Udrykning","components.controls.remove.remove":"Fjern","components.controls.textalign.textalign":"Tekstjustering","components.controls.textalign.left":"Venstre","components.controls.textalign.center":"Center","components.controls.textalign.right":"Højre","components.controls.textalign.justify":"Margener"},zh_tw:{"generic.add":"新增","generic.cancel":"取消","components.controls.blocktype.h1":"標題1","components.controls.blocktype.h2":"標題2","components.controls.blocktype.h3":"標題3","components.controls.blocktype.h4":"標題4","components.controls.blocktype.h5":"標題5","components.controls.blocktype.h6":"標題6","components.controls.blocktype.blockquote":"引用","components.controls.blocktype.code":"程式碼","components.controls.blocktype.blocktype":"樣式","components.controls.blocktype.normal":"正文","components.controls.colorpicker.colorpicker":"選色器","components.controls.colorpicker.text":"文字","components.controls.colorpicker.background":"背景","components.controls.embedded.embedded":"內嵌","components.controls.embedded.embeddedlink":"內嵌網頁","components.controls.embedded.enterlink":"輸入網頁地址","components.controls.emoji.emoji":"表情符號","components.controls.fontfamily.fontfamily":"字體","components.controls.fontsize.fontsize":"字體大小","components.controls.history.history":"歷史紀錄","components.controls.history.undo":"復原","components.controls.history.redo":"重做","components.controls.image.image":"圖片","components.controls.image.fileUpload":"檔案上傳","components.controls.image.byURL":"網址","components.controls.image.dropFileText":"點擊或拖曳檔案上傳","components.controls.inline.bold":"粗體","components.controls.inline.italic":"斜體","components.controls.inline.underline":"底線","components.controls.inline.strikethrough":"刪除線","components.controls.inline.monospace":"等寬字體","components.controls.inline.superscript":"上標","components.controls.inline.subscript":"下標","components.controls.link.linkTitle":"超連結","components.controls.link.linkTarget":"輸入連結位址","components.controls.link.linkTargetOption":"在新視窗打開連結","components.controls.link.link":"連結","components.controls.link.unlink":"刪除連結","components.controls.list.list":"列表","components.controls.list.unordered":"項目符號","components.controls.list.ordered":"編號","components.controls.list.indent":"增加縮排","components.controls.list.outdent":"減少縮排","components.controls.remove.remove":"清除格式","components.controls.textalign.textalign":"文字對齊","components.controls.textalign.left":"文字向左對齊","components.controls.textalign.center":"文字置中","components.controls.textalign.right":"文字向右對齊","components.controls.textalign.justify":"兩端對齊"},pl:{"generic.add":"Dodaj","generic.cancel":"Anuluj","components.controls.blocktype.h1":"Nagłówek 1","components.controls.blocktype.h2":"Nagłówek 2","components.controls.blocktype.h3":"Nagłówek 3","components.controls.blocktype.h4":"Nagłówek 4","components.controls.blocktype.h5":"Nagłówek 5","components.controls.blocktype.h6":"Nagłówek 6","components.controls.blocktype.blockquote":"Cytat","components.controls.blocktype.code":"Kod","components.controls.blocktype.blocktype":"Format","components.controls.blocktype.normal":"Normalny","components.controls.colorpicker.colorpicker":"Kolor","components.controls.colorpicker.text":"Tekst","components.controls.colorpicker.background":"Tło","components.controls.embedded.embedded":"Osadź","components.controls.embedded.embeddedlink":"Osadź odnośnik","components.controls.embedded.enterlink":"Wprowadź odnośnik","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Krój czcionki","components.controls.fontsize.fontsize":"Rozmiar czcionki","components.controls.history.history":"Historia","components.controls.history.undo":"Cofnij","components.controls.history.redo":"Ponów","components.controls.image.image":"Obrazek","components.controls.image.fileUpload":"Prześlij plik","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Upuść plik lub kliknij, aby przesłać","components.controls.inline.bold":"Pogrubienie","components.controls.inline.italic":"Kursywa","components.controls.inline.underline":"Podkreślenie","components.controls.inline.strikethrough":"Przekreślenie","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Indeks górny","components.controls.inline.subscript":"Indeks dolny","components.controls.link.linkTitle":"Tytuł odnośnika","components.controls.link.linkTarget":"Adres odnośnika","components.controls.link.linkTargetOption":"Otwórz odnośnik w nowej karcie","components.controls.link.link":"Wstaw odnośnik","components.controls.link.unlink":"Usuń odnośnik","components.controls.list.list":"Lista","components.controls.list.unordered":"Lista nieuporządkowana","components.controls.list.ordered":"Lista uporządkowana","components.controls.list.indent":"Zwiększ wcięcie","components.controls.list.outdent":"Zmniejsz wcięcie","components.controls.remove.remove":"Usuń","components.controls.textalign.textalign":"Wyrównaj tekst","components.controls.textalign.left":"Do lewej","components.controls.textalign.center":"Do środka","components.controls.textalign.right":"Do prawej","components.controls.textalign.justify":"Wyjustuj"},es:{"generic.add":"Añadir","generic.cancel":"Cancelar","components.controls.blocktype.h1":"H1","components.controls.blocktype.h2":"H2","components.controls.blocktype.h3":"H3","components.controls.blocktype.h4":"H4","components.controls.blocktype.h5":"H5","components.controls.blocktype.h6":"H6","components.controls.blocktype.blockquote":"Blockquote","components.controls.blocktype.code":"Código","components.controls.blocktype.blocktype":"Tipo de bloque","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Seleccionar color","components.controls.colorpicker.text":"Texto","components.controls.colorpicker.background":"Subrayado","components.controls.embedded.embedded":"Adjuntar","components.controls.embedded.embeddedlink":"Adjuntar Link","components.controls.embedded.enterlink":"Introducir link","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Fuente","components.controls.fontsize.fontsize":"Tamaño de fuente","components.controls.history.history":"Histórico","components.controls.history.undo":"Deshacer","components.controls.history.redo":"Rehacer","components.controls.image.image":"Imagen","components.controls.image.fileUpload":"Subir archivo","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Arrastra el archivo o haz click para subirlo","components.controls.inline.bold":"Negrita","components.controls.inline.italic":"Cursiva","components.controls.inline.underline":"Subrayado","components.controls.inline.strikethrough":"Tachado","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Sobreíndice","components.controls.inline.subscript":"Subíndice","components.controls.link.linkTitle":"Título del enlace","components.controls.link.linkTarget":"Objetivo del enlace","components.controls.link.linkTargetOption":"Abrir en nueva ventana","components.controls.link.link":"Enlazar","components.controls.link.unlink":"Desenlazar","components.controls.list.list":"Lista","components.controls.list.unordered":"Desordenada","components.controls.list.ordered":"Ordenada","components.controls.list.indent":"Indentada","components.controls.list.outdent":"Dentada","components.controls.remove.remove":"Eliminar","components.controls.textalign.textalign":"Alineación del texto","components.controls.textalign.left":"Izquierda","components.controls.textalign.center":"Centrado","components.controls.textalign.right":"Derecha","components.controls.textalign.justify":"Justificado"},ja:{"generic.add":"追加","generic.cancel":"キャンセル","components.controls.blocktype.h1":"見出し1","components.controls.blocktype.h2":"見出し2","components.controls.blocktype.h3":"見出し3","components.controls.blocktype.h4":"見出し4","components.controls.blocktype.h5":"見出し5","components.controls.blocktype.h6":"見出し6","components.controls.blocktype.blockquote":"引用","components.controls.blocktype.code":"コード","components.controls.blocktype.blocktype":"スタイル","components.controls.blocktype.normal":"標準テキスト","components.controls.colorpicker.colorpicker":"テキストの色","components.controls.colorpicker.text":"テキスト","components.controls.colorpicker.background":"ハイライト","components.controls.embedded.embedded":"埋め込み","components.controls.embedded.embeddedlink":"埋め込みリンク","components.controls.embedded.enterlink":"リンクを入力してください","components.controls.emoji.emoji":"絵文字","components.controls.fontfamily.fontfamily":"フォント","components.controls.fontsize.fontsize":"フォントサイズ","components.controls.history.history":"履歴","components.controls.history.undo":"元に戻す","components.controls.history.redo":"やり直し","components.controls.image.image":"画像","components.controls.image.fileUpload":"ファイルをアップロード","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"ここに画像をドラッグするか、クリックしてください","components.controls.inline.bold":"太字","components.controls.inline.italic":"斜体","components.controls.inline.underline":"下線","components.controls.inline.strikethrough":"取り消し線","components.controls.inline.monospace":"等幅フォント","components.controls.inline.superscript":"上付き文字","components.controls.inline.subscript":"下付き文字","components.controls.link.linkTitle":"リンクタイトル","components.controls.link.linkTarget":"リンク対象","components.controls.link.linkTargetOption":"新しいウィンドウで開く","components.controls.link.link":"リンク","components.controls.link.unlink":"リンクを解除","components.controls.list.list":"リスト","components.controls.list.unordered":"箇条書き","components.controls.list.ordered":"番号付き","components.controls.list.indent":"インデント増","components.controls.list.outdent":"インデント減","components.controls.remove.remove":"書式をクリア","components.controls.textalign.textalign":"整列","components.controls.textalign.left":"左揃え","components.controls.textalign.center":"中央揃え","components.controls.textalign.right":"右揃え","components.controls.textalign.justify":"両端揃え"}};E(38),E(39);function fo(i){return(fo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(i)}function It(){return(It=Object.assign?Object.assign.bind():function(i){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(i[o]=r[o])}return i}).apply(this,arguments)}function mo(i,t){var r=Object.keys(i);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(i);t&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(i,n).enumerable})),r.push.apply(r,o)}return r}function Fe(i){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mo(Object(r),!0).forEach(function(o){Kr(i,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(r)):mo(Object(r)).forEach(function(o){Object.defineProperty(i,o,Object.getOwnPropertyDescriptor(r,o))})}return i}function Kr(i,t,r){return t in i?Object.defineProperty(i,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):i[t]=r,i}function yo(i){return function(t){if(Array.isArray(t))return Tt(t)}(i)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(i)||function(t,r){if(t){if(typeof t=="string")return Tt(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);if(o==="Object"&&t.constructor&&(o=t.constructor.name),o==="Map"||o==="Set")return Array.from(t);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return Tt(t,r)}}(i)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
9
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Tt(i,t){(t==null||t>i.length)&&(t=i.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=i[r];return o}function Xr(i,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(i,o.key,o)}}function go(i,t){return(go=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r})(i,t)}function $r(i){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,o=At(i);if(t){var n=At(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return function(e,a){{if(a&&(fo(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined")}return function(c){if(c!==void 0)return c;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,r)}}function At(i){return(At=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(i)}var zt=function(){(function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&go(n,e)})(o,C.Component);var i,t,r=$r(o);function o(n){var e;(function(l,p){if(!(l instanceof p))throw new TypeError("Cannot call a class as a function")})(this,o),(e=r.call(this,n)).onEditorBlur=function(){e.setState({editorFocused:!1})},e.onEditorFocus=function(l){var p=e.props.onFocus;e.setState({editorFocused:!0});var f=e.focusHandler.isEditorFocused();p&&f&&p(l)},e.onEditorMouseDown=function(){e.focusHandler.onEditorMouseDown()},e.keyBindingFn=function(l){if(l.key!=="Tab")return l.key!=="ArrowUp"&&l.key!=="ArrowDown"||de()&&l.preventDefault(),Object(L.getDefaultKeyBinding)(l);var p=e.props.onTab;if(!p||!p(l)){var f=Object(g.changeDepth)(e.state.editorState,l.shiftKey?-1:1,4);f&&f!==e.state.editorState&&(e.onChange(f),l.preventDefault())}return null},e.onToolbarFocus=function(l){var p=e.props.onFocus;p&&e.focusHandler.isToolbarFocused()&&p(l)},e.onWrapperBlur=function(l){var p=e.props.onBlur;p&&e.focusHandler.isEditorBlur(l)&&p(l,e.getEditorState())},e.onChange=function(l){var p=e.props,f=p.readOnly,m=p.onEditorStateChange;f||Object(g.getSelectedBlocksType)(l)==="atomic"&&l.getSelection().isCollapsed||(m&&m(l,e.props.wrapperId),ge(e.props,"editorState")?e.afterChange(l):e.setState({editorState:l},e.afterChange(l)))},e.setWrapperReference=function(l){e.wrapper=l},e.setEditorReference=function(l){e.props.editorRef&&e.props.editorRef(l),e.editor=l},e.getCompositeDecorator=function(l){var p=[].concat(yo(e.props.customDecorators),[{strategy:Ar,component:zr({showOpenOptionOnHover:l.link.showOpenOptionOnHover})}]);return e.props.mention&&p.push.apply(p,yo(Fr(Fe(Fe({},e.props.mention),{},{onChange:e.onChange,getEditorState:e.getEditorState,getSuggestions:e.getSuggestions,getWrapperRef:e.getWrapperRef,modalHandler:e.modalHandler})))),e.props.hashtag&&p.push(Hr(e.props.hashtag)),new L.CompositeDecorator(p)},e.getWrapperRef=function(){return e.wrapper},e.getEditorState=function(){return e.state?e.state.editorState:null},e.getSuggestions=function(){return e.props.mention&&e.props.mention.suggestions},e.afterChange=function(l){setTimeout(function(){var p=e.props,f=p.onChange,m=p.onContentStateChange;f&&f(Object(L.convertToRaw)(l.getCurrentContent())),m&&m(Object(L.convertToRaw)(l.getCurrentContent()))})},e.isReadOnly=function(){return e.props.readOnly},e.isImageAlignmentEnabled=function(){return e.state.toolbar.image.alignmentEnabled},e.createEditorState=function(l){var p;if(ge(e.props,"editorState"))e.props.editorState&&(p=L.EditorState.set(e.props.editorState,{decorator:l}));else if(ge(e.props,"defaultEditorState"))e.props.defaultEditorState&&(p=L.EditorState.set(e.props.defaultEditorState,{decorator:l}));else if(ge(e.props,"contentState")){if(e.props.contentState){var f=Object(L.convertFromRaw)(e.props.contentState);p=L.EditorState.createWithContent(f,l),p=L.EditorState.moveSelectionToEnd(p)}}else if(ge(e.props,"defaultContentState")||ge(e.props,"initialContentState")){var m=e.props.defaultContentState||e.props.initialContentState;m&&(m=Object(L.convertFromRaw)(m),p=L.EditorState.createWithContent(m,l),p=L.EditorState.moveSelectionToEnd(p))}return p=p||L.EditorState.createEmpty(l)},e.filterEditorProps=function(l){return p=l,f=["onChange","onEditorStateChange","onContentStateChange","initialContentState","defaultContentState","contentState","editorState","defaultEditorState","locale","localization","toolbarOnFocus","toolbar","toolbarCustomButtons","toolbarClassName","editorClassName","toolbarHidden","wrapperClassName","toolbarStyle","editorStyle","wrapperStyle","uploadCallback","onFocus","onBlur","onTab","mention","hashtag","ariaLabel","customBlockRenderFunc","customDecorators","handlePastedText","customStyleMap"],m=Object.keys(p).filter(function(v){return f.indexOf(v)<0}),b={},m&&0<m.length&&m.forEach(function(v){b[v]=p[v]}),b;var p,f,m,b},e.getStyleMap=function(l){return Fe(Fe({},Object(g.getCustomStyleMap)()),l.customStyleMap)},e.changeEditorState=function(l){var p=Object(L.convertFromRaw)(l),f=e.state.editorState;return f=L.EditorState.push(f,p,"insert-characters"),f=L.EditorState.moveSelectionToEnd(f)},e.focusEditor=function(){setTimeout(function(){e.editor.focus()})},e.handleKeyCommand=function(l){var p=e.state,f=p.editorState,m=p.toolbar.inline;if(m&&0<=m.options.indexOf(l)){var b=L.RichUtils.handleKeyCommand(f,l);if(b)return e.onChange(b),!0}return!1},e.handleReturn=function(l){if(de())return!0;var p=e.state.editorState,f=Object(g.handleNewLine)(p,l);return!!f&&(e.onChange(f),!0)},e.handlePastedTextFn=function(l,p){var f=e.state.editorState,m=e.props,b=m.handlePastedText,v=m.stripPastedStyles;return b?b(l,p,f,e.onChange):!v&&function(_,T,N,z){var R=Object(g.getSelectedBlock)(N);if(R&&R.type==="code"){var Y=L.Modifier.replaceText(N.getCurrentContent(),N.getSelection(),_,N.getCurrentInlineStyle());return z(L.EditorState.push(N,Y,"insert-characters")),!0}if(T){var J=H()(T),W=N.getCurrentContent();return J.entityMap.forEach(function(ye,Ee){W=W.mergeEntityData(Ee,ye)}),W=L.Modifier.replaceWithFragment(W,N.getSelection(),new ie.List(J.contentBlocks)),z(L.EditorState.push(N,W,"insert-characters")),!0}return!1}(l,p,f,e.onChange)},e.preventDefault=function(l){l.target.tagName==="INPUT"||l.target.tagName==="LABEL"||l.target.tagName==="TEXTAREA"?e.focusHandler.onInputMouseDown():l.preventDefault()};var a=Se(po,n.toolbar),c=n.wrapperId?n.wrapperId:Math.floor(1e4*Math.random());e.wrapperId="rdw-wrapper-".concat(c),e.modalHandler=new K,e.focusHandler=new ne,e.blockRendererFn=Vr({isReadOnly:e.isReadOnly,isImageAlignmentEnabled:e.isImageAlignmentEnabled,getEditorState:e.getEditorState,onChange:e.onChange},n.customBlockRenderFunc),e.editorProps=e.filterEditorProps(n),e.customStyleMap=e.getStyleMap(n),e.compositeDecorator=e.getCompositeDecorator(a);var u=e.createEditorState(e.compositeDecorator);return Object(g.extractInlineStyle)(u),e.state={editorState:u,editorFocused:!1,toolbar:a},e}return i=o,(t=[{key:"componentDidMount",value:function(){this.modalHandler.init(this.wrapperId)}},{key:"componentDidUpdate",value:function(n){if(n!==this.props){var e={},a=this.props,c=a.editorState,u=a.contentState;if(!this.state.toolbar){var l=Se(po,l);e.toolbar=l}if(ge(this.props,"editorState")&&c!==n.editorState)e.editorState=c?L.EditorState.set(c,{decorator:this.compositeDecorator}):L.EditorState.createEmpty(this.compositeDecorator);else if(ge(this.props,"contentState")&&u!==n.contentState)if(u){var p=this.changeEditorState(u);p&&(e.editorState=p)}else e.editorState=L.EditorState.createEmpty(this.compositeDecorator);n.editorState===c&&n.contentState===u||Object(g.extractInlineStyle)(e.editorState),Object.keys(e).length&&this.setState(e),this.editorProps=this.filterEditorProps(this.props),this.customStyleMap=this.getStyleMap(this.props)}}},{key:"render",value:function(){var n=this.state,e=n.editorState,a=n.editorFocused,c=n.toolbar,u=this.props,l=u.locale,p=u.localization,f=p.locale,m=p.translations,b=u.toolbarCustomButtons,v=u.toolbarOnFocus,_=u.toolbarClassName,T=u.toolbarHidden,N=u.editorClassName,z=u.wrapperClassName,R=u.toolbarStyle,Y=u.editorStyle,J=u.wrapperStyle,W=u.uploadCallback,ye=u.ariaLabel,Ee={modalHandler:this.modalHandler,editorState:e,onChange:this.onChange,translations:Fe(Fe({},qr[l||f]),m)},He=a||this.focusHandler.isInputFocused()||!v;return s.a.createElement("div",{id:this.wrapperId,className:y()(z,"rdw-editor-wrapper"),style:J,onClick:this.modalHandler.onEditorClick,onBlur:this.onWrapperBlur,"aria-label":"rdw-wrapper"},!T&&s.a.createElement("div",{className:y()("rdw-editor-toolbar",_),style:Fe({visibility:He?"visible":"hidden"},R),onMouseDown:this.preventDefault,"aria-label":"rdw-toolbar","aria-hidden":(!a&&v).toString(),onFocus:this.onToolbarFocus},c.options.map(function(Ye,Re){var _t=kr[Ye],et=c[Ye];return Ye==="image"&&W&&(et.uploadCallback=W),s.a.createElement(_t,It({key:Re},Ee,{config:et}))}),b&&b.map(function(Ye,Re){return s.a.cloneElement(Ye,Fe({key:Re},Ee))})),s.a.createElement("div",{ref:this.setWrapperReference,className:y()(N,"rdw-editor-main"),style:Y,onClick:this.focusEditor,onFocus:this.onEditorFocus,onBlur:this.onEditorBlur,onKeyDown:x.onKeyDown,onMouseDown:this.onEditorMouseDown},s.a.createElement(L.Editor,It({ref:this.setEditorReference,keyBindingFn:this.keyBindingFn,editorState:e,onChange:this.onChange,blockStyleFn:le,customStyleMap:this.getStyleMap(this.props),handleReturn:this.handleReturn,handlePastedText:this.handlePastedTextFn,blockRendererFn:this.blockRendererFn,handleKeyCommand:this.handleKeyCommand,ariaLabel:ye||"rdw-editor",blockRenderMap:g.blockRenderMap},this.editorProps))))}}])&&Xr(i.prototype,t),Object.defineProperty(i,"prototype",{writable:!1}),o}();zt.propTypes={onChange:d.a.func,onEditorStateChange:d.a.func,onContentStateChange:d.a.func,initialContentState:d.a.object,defaultContentState:d.a.object,contentState:d.a.object,editorState:d.a.object,defaultEditorState:d.a.object,toolbarOnFocus:d.a.bool,spellCheck:d.a.bool,stripPastedStyles:d.a.bool,toolbar:d.a.object,toolbarCustomButtons:d.a.array,toolbarClassName:d.a.string,toolbarHidden:d.a.bool,locale:d.a.string,localization:d.a.object,editorClassName:d.a.string,wrapperClassName:d.a.string,toolbarStyle:d.a.object,editorStyle:d.a.object,wrapperStyle:d.a.object,uploadCallback:d.a.func,onFocus:d.a.func,onBlur:d.a.func,onTab:d.a.func,mention:d.a.object,hashtag:d.a.object,textAlignment:d.a.string,readOnly:d.a.bool,tabIndex:d.a.number,placeholder:d.a.string,ariaLabel:d.a.string,ariaOwneeID:d.a.string,ariaActiveDescendantID:d.a.string,ariaAutoComplete:d.a.string,ariaDescribedBy:d.a.string,ariaExpanded:d.a.string,ariaHasPopup:d.a.string,customBlockRenderFunc:d.a.func,wrapperId:d.a.number,customDecorators:d.a.array,editorRef:d.a.func,handlePastedText:d.a.func},zt.defaultProps={toolbarOnFocus:!1,toolbarHidden:!1,stripPastedStyles:!1,localization:{locale:"en",translations:{}},customDecorators:[]};var ei=zt}],pe.c=Je,pe.d=function(S,A,E){pe.o(S,A)||Object.defineProperty(S,A,{enumerable:!0,get:E})},pe.r=function(S){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(S,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(S,"__esModule",{value:!0})},pe.t=function(S,A){if(1&A&&(S=pe(S)),8&A||4&A&&typeof S=="object"&&S&&S.__esModule)return S;var E=Object.create(null);if(pe.r(E),Object.defineProperty(E,"default",{enumerable:!0,value:S}),2&A&&typeof S!="string")for(var C in S)pe.d(E,C,function(s){return S[s]}.bind(null,C));return E},pe.n=function(S){var A=S&&S.__esModule?function(){return S.default}:function(){return S};return pe.d(A,"a",A),A},pe.o=function(S,A){return Object.prototype.hasOwnProperty.call(S,A)},pe.p="",pe(pe.s=8);function pe(S){if(Je[S])return Je[S].exports;var A=Je[S]={i:S,l:!1,exports:{}};return Rt[S].call(A.exports,A,A.exports,pe),A.l=!0,A.exports}var Rt,Je})})(jo);var vo=jo.exports;const ai=Mo.getDefaultExportFromCjs(vo),ci=ii({__proto__:null,default:ai},[vo]);exports.reactDraftWysiwyg=ci;
|