aldehyde 0.2.32 → 0.2.33

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.
Files changed (138) hide show
  1. package/dist/bundle.022b9d9e54b55ad6267e.js +1 -0
  2. package/dist/bundle.022b9d9e54b55ad6267e.js.gz +0 -0
  3. package/dist/bundle.03c8826fed3306e7bca7.js +1 -0
  4. package/dist/bundle.17695fcdfc4d8b13d695.js +2 -0
  5. package/dist/bundle.17695fcdfc4d8b13d695.js.LICENSE.txt +8 -0
  6. package/dist/bundle.17695fcdfc4d8b13d695.js.gz +0 -0
  7. package/dist/bundle.1bc3fad9b6dda01db2dc.js +1 -0
  8. package/dist/bundle.1bc3fad9b6dda01db2dc.js.gz +0 -0
  9. package/dist/bundle.26e8ea213610dd77dfc5.js +2 -0
  10. package/dist/bundle.26e8ea213610dd77dfc5.js.LICENSE.txt +22 -0
  11. package/dist/bundle.26e8ea213610dd77dfc5.js.gz +0 -0
  12. package/dist/bundle.2e0aa3d0288f29cd9bdb.js +1 -0
  13. package/dist/bundle.2e0aa3d0288f29cd9bdb.js.gz +0 -0
  14. package/dist/bundle.3afd92d0051920d083b8.js +1 -0
  15. package/dist/bundle.3afd92d0051920d083b8.js.gz +0 -0
  16. package/dist/bundle.3b47a72a98819ce207b4.js +2 -0
  17. package/dist/bundle.3b47a72a98819ce207b4.js.LICENSE.txt +14 -0
  18. package/dist/bundle.3b47a72a98819ce207b4.js.gz +0 -0
  19. package/dist/bundle.4d91709f680596b4b0ac.js +2 -0
  20. package/dist/bundle.4d91709f680596b4b0ac.js.LICENSE.txt +9 -0
  21. package/dist/bundle.4d91709f680596b4b0ac.js.gz +0 -0
  22. package/dist/bundle.4e6573855d62c2c61293.js +1 -0
  23. package/dist/bundle.4e6573855d62c2c61293.js.gz +0 -0
  24. package/dist/bundle.51344a730efffedb67a3.js +2 -0
  25. package/dist/bundle.51344a730efffedb67a3.js.LICENSE.txt +8 -0
  26. package/dist/bundle.51344a730efffedb67a3.js.gz +0 -0
  27. package/dist/bundle.59446aa1a6e81028b0f3.js +1 -0
  28. package/dist/bundle.59446aa1a6e81028b0f3.js.gz +0 -0
  29. package/dist/bundle.5c631f42a0bc32bcee42.js +1 -0
  30. package/dist/bundle.5cc46bd3e80bed3462d0.js +2 -0
  31. package/dist/bundle.5cc46bd3e80bed3462d0.js.LICENSE.txt +1 -0
  32. package/dist/bundle.5cc46bd3e80bed3462d0.js.gz +0 -0
  33. package/dist/bundle.5fc1d01501a8fadd2680.js +2 -0
  34. package/dist/bundle.5fc1d01501a8fadd2680.js.LICENSE.txt +7 -0
  35. package/dist/bundle.5fc1d01501a8fadd2680.js.gz +0 -0
  36. package/dist/bundle.6bf28a6aa5ba025b9cbe.js +2 -0
  37. package/dist/bundle.6bf28a6aa5ba025b9cbe.js.LICENSE.txt +18 -0
  38. package/dist/bundle.6bf28a6aa5ba025b9cbe.js.gz +0 -0
  39. package/dist/bundle.6c63d1f8fd32a2e9ca6c.js +75 -0
  40. package/dist/bundle.6c63d1f8fd32a2e9ca6c.js.LICENSE.txt +17 -0
  41. package/dist/bundle.6c63d1f8fd32a2e9ca6c.js.gz +0 -0
  42. package/dist/bundle.75ca758485013fe73c8a.js +1 -0
  43. package/dist/bundle.75ca758485013fe73c8a.js.gz +0 -0
  44. package/dist/bundle.79c75972bdb84e2526a0.js +1 -0
  45. package/dist/bundle.79c75972bdb84e2526a0.js.gz +0 -0
  46. package/dist/bundle.7c07c768d6aa85f8cb7f.js +1 -0
  47. package/dist/bundle.7c07c768d6aa85f8cb7f.js.gz +0 -0
  48. package/dist/bundle.7e85c36e04f1428d40ae.js +2 -0
  49. package/dist/bundle.7e85c36e04f1428d40ae.js.LICENSE.txt +17 -0
  50. package/dist/bundle.7e85c36e04f1428d40ae.js.gz +0 -0
  51. package/dist/bundle.7fe4c9d6d1fad1b785b4.js +1 -0
  52. package/dist/bundle.7fe4c9d6d1fad1b785b4.js.gz +0 -0
  53. package/dist/bundle.8a46aaa80505db8f0a31.js +1 -0
  54. package/dist/bundle.8a46aaa80505db8f0a31.js.gz +0 -0
  55. package/dist/bundle.8a6c3026f7b0ad7bdc84.js +2 -0
  56. package/dist/bundle.8a6c3026f7b0ad7bdc84.js.LICENSE.txt +25 -0
  57. package/dist/bundle.8a6c3026f7b0ad7bdc84.js.gz +0 -0
  58. package/dist/bundle.9a888a685a8dc8795cb1.js +1 -0
  59. package/dist/bundle.9d12b63336a9c8d44a9d.js +1 -0
  60. package/dist/bundle.9d12b63336a9c8d44a9d.js.gz +0 -0
  61. package/dist/bundle.a7dfe1231cfa8ef5b0d3.js +2 -0
  62. package/dist/bundle.a7dfe1231cfa8ef5b0d3.js.LICENSE.txt +5 -0
  63. package/dist/bundle.a7dfe1231cfa8ef5b0d3.js.gz +0 -0
  64. package/dist/bundle.be6aaf07219b3f9a361f.js +1 -0
  65. package/dist/bundle.be6aaf07219b3f9a361f.js.gz +0 -0
  66. package/dist/bundle.c015ad492469b8a18b36.js +1 -0
  67. package/dist/bundle.c015ad492469b8a18b36.js.gz +0 -0
  68. package/dist/bundle.c31ad04e1e30564fea70.js +1 -0
  69. package/dist/bundle.c560447b006cce1238b6.js +2 -0
  70. package/dist/bundle.c560447b006cce1238b6.js.LICENSE.txt +1 -0
  71. package/dist/bundle.c560447b006cce1238b6.js.gz +0 -0
  72. package/dist/bundle.cad48ecfb6c9304f8477.js +2 -0
  73. package/dist/bundle.cad48ecfb6c9304f8477.js.LICENSE.txt +5 -0
  74. package/dist/bundle.cad48ecfb6c9304f8477.js.gz +0 -0
  75. package/dist/bundle.d7eaee8d9bcfcf8b0bd0.js +1 -0
  76. package/dist/bundle.d7eaee8d9bcfcf8b0bd0.js.gz +0 -0
  77. package/dist/bundle.d8256eaa6fe575fb9d01.js +8 -0
  78. package/dist/bundle.d8256eaa6fe575fb9d01.js.LICENSE.txt +8 -0
  79. package/dist/bundle.d8256eaa6fe575fb9d01.js.gz +0 -0
  80. package/dist/bundle.dbb253f3029c97475380.js +1 -0
  81. package/dist/bundle.dbb253f3029c97475380.js.gz +0 -0
  82. package/dist/bundle.df7845990c0fed52fca8.js +2 -0
  83. package/dist/bundle.df7845990c0fed52fca8.js.LICENSE.txt +29 -0
  84. package/dist/bundle.df7845990c0fed52fca8.js.gz +0 -0
  85. package/dist/bundle.e1ac7a74c5a25a07424c.js +1 -0
  86. package/dist/bundle.e1ac7a74c5a25a07424c.js.gz +0 -0
  87. package/dist/bundle.e9b7939a81971b04ce61.js +1 -0
  88. package/dist/bundle.e9b7939a81971b04ce61.js.gz +0 -0
  89. package/dist/bundle.eb8b12c34556f700f59a.js +2 -0
  90. package/dist/bundle.eb8b12c34556f700f59a.js.LICENSE.txt +30 -0
  91. package/dist/bundle.eb8b12c34556f700f59a.js.gz +0 -0
  92. package/dist/bundle.f4f8e071565f4dff4698.js +2 -0
  93. package/dist/bundle.f4f8e071565f4dff4698.js.LICENSE.txt +5 -0
  94. package/dist/bundle.f4f8e071565f4dff4698.js.gz +0 -0
  95. package/dist/css/chemstruc-graph-15d5053934e613f20d2b.css +11 -0
  96. package/dist/css/chemstruc-graph-15d5053934e613f20d2b.css.gz +0 -0
  97. package/dist/css/common-131a1a93b3a3dde25f8f.css +90 -0
  98. package/dist/css/html-editor-draft-5e8e152675ab7d201c00.css +886 -0
  99. package/dist/css/html-editor-draft-5e8e152675ab7d201c00.css.gz +0 -0
  100. package/dist/css/main-4bd110a5b2a4a3fbef88.css +803 -0
  101. package/dist/css/main-4bd110a5b2a4a3fbef88.css.gz +0 -0
  102. package/dist/images/development-30de07a0.png +0 -0
  103. package/dist/images/pain-point-8f02421e.png +0 -0
  104. package/dist/images/target-13a5b4b9.png +0 -0
  105. package/dist/images/time-cost-cb40d2c2.png +0 -0
  106. package/dist/images/time-prograss-44b86b36.png +0 -0
  107. package/dist/index.html +4 -0
  108. package/lib/controls/code-editor/sql-code-editor.d.ts.map +1 -1
  109. package/lib/controls/code-editor/sql-code-editor.js.map +1 -1
  110. package/lib/controls/date-picker/index.d.ts +2 -2
  111. package/lib/controls/entry-control.d.ts.map +1 -1
  112. package/lib/controls/entry-control.js +2 -2
  113. package/lib/controls/entry-control.js.map +1 -1
  114. package/lib/controls/view-control.d.ts.map +1 -1
  115. package/lib/controls/view-control.js +3 -3
  116. package/lib/controls/view-control.js.map +1 -1
  117. package/lib/index.d.ts +2 -2
  118. package/lib/index.d.ts.map +1 -1
  119. package/lib/index.js +2 -2
  120. package/lib/index.js.map +1 -1
  121. package/lib/layout/MainPage.js +1 -1
  122. package/lib/layout/MainPage.js.map +1 -1
  123. package/lib/layout/header/index.d.ts.map +1 -1
  124. package/lib/layout/header/index.js.map +1 -1
  125. package/lib/tmpl/superagent.d.ts.map +1 -1
  126. package/lib/tmpl/superagent.js +2 -1
  127. package/lib/tmpl/superagent.js.map +1 -1
  128. package/lib/welcome/workbench.js.map +1 -1
  129. package/package.json +2 -3
  130. package/src/aldehyde/controls/code-editor/sql-code-editor.tsx +1 -2
  131. package/src/aldehyde/controls/date-picker/index.tsx +2 -2
  132. package/src/aldehyde/controls/entry-control.tsx +4 -2
  133. package/src/aldehyde/controls/view-control.tsx +7 -6
  134. package/src/aldehyde/index.tsx +5 -2
  135. package/src/aldehyde/layout/MainPage.tsx +1 -1
  136. package/src/aldehyde/layout/header/index.tsx +0 -1
  137. package/src/aldehyde/tmpl/superagent.js +3 -1
  138. package/src/aldehyde/welcome/workbench.tsx +1 -1
@@ -0,0 +1,2 @@
1
+ /*! For license information please see bundle.a7dfe1231cfa8ef5b0d3.js.LICENSE.txt */
2
+ (self.webpackChunkaldehyde=self.webpackChunkaldehyde||[]).push([[510],{89265:function(t){t.exports=function(){"use strict";function t(t,e){if(t)for(var n in t)({}).hasOwnProperty.call(t,n)&&e(n,t[n])}var e={unstyled:"p","header-one":"h1","header-two":"h2","header-three":"h3","header-four":"h4","header-five":"h5","header-six":"h6","unordered-list-item":"ul","ordered-list-item":"ol",blockquote:"blockquote",code:"pre"};function n(t){return t&&e[t]}function o(e){var n="";return t(e,(function(t,e){e&&(n+="".concat(t,":").concat(e,";"))})),n}function r(t,e){var n={};return t.COLOR[e]&&(n.COLOR=t.COLOR[e]),t.BGCOLOR[e]&&(n.BGCOLOR=t.BGCOLOR[e]),t.FONTSIZE[e]&&(n.FONTSIZE=t.FONTSIZE[e]),t.FONTFAMILY[e]&&(n.FONTFAMILY=t.FONTFAMILY[e]),t.UNDERLINE[e]&&(n.UNDERLINE=!0),t.ITALIC[e]&&(n.ITALIC=!0),t.BOLD[e]&&(n.BOLD=!0),t.STRIKETHROUGH[e]&&(n.STRIKETHROUGH=!0),t.CODE[e]&&(n.CODE=!0),t.SUBSCRIPT[e]&&(n.SUBSCRIPT=!0),t.SUPERSCRIPT[e]&&(n.SUPERSCRIPT=!0),n}function i(t,e,n){var o=!0;return n>0&&n<t.length?e.forEach((function(e){o=o&&t[e][n]===t[e][n-1]})):o=!1,o}function c(t,e,n,o){var r=t[e];if("function"==typeof o){var i=o(r,n);if(i)return i}if("MENTION"===r.type)return'<a href="'.concat(r.data.url,'" class="wysiwyg-mention" data-mention data-value="').concat(r.data.value,'">').concat(n,"</a>");if("LINK"===r.type){var c=r.data.targetOption||"_self";return'<a href="'.concat(r.data.url,'" target="').concat(c,'">').concat(n,"</a>")}if("IMAGE"===r.type){var a=r.data.alignment;return a&&a.length?'<div style="text-align:'.concat(a,';"><img src="').concat(r.data.src,'" alt="').concat(r.data.alt,'" style="height: ').concat(r.data.height,";width: ").concat(r.data.width,'"/></div>'):'<img src="'.concat(r.data.src,'" alt="').concat(r.data.alt,'" style="height: ').concat(r.data.height,";width: ").concat(r.data.width,'"/>')}return"EMBEDDED_LINK"===r.type?'<iframe width="'.concat(r.data.width,'" height="').concat(r.data.height,'" src="').concat(r.data.src,'" frameBorder="0"></iframe>'):n}function a(t,e,n,o){var c=[],a=Array.from(t.text);if(a.length>0)for(var l,s=function(t){var e=t.text,n=t.inlineStyleRanges,o={BOLD:new Array(e.length),ITALIC:new Array(e.length),UNDERLINE:new Array(e.length),STRIKETHROUGH:new Array(e.length),CODE:new Array(e.length),SUPERSCRIPT:new Array(e.length),SUBSCRIPT:new Array(e.length),COLOR:new Array(e.length),BGCOLOR:new Array(e.length),FONTSIZE:new Array(e.length),FONTFAMILY:new Array(e.length),length:e.length};return n&&n.length>0&&n.forEach((function(t){for(var e=t.offset,n=e+t.length,r=e;r<n;r+=1)0===t.style.indexOf("color-")?o.COLOR[r]=t.style.substring(6):0===t.style.indexOf("bgcolor-")?o.BGCOLOR[r]=t.style.substring(8):0===t.style.indexOf("fontsize-")?o.FONTSIZE[r]=t.style.substring(9):0===t.style.indexOf("fontfamily-")?o.FONTFAMILY[r]=t.style.substring(11):o[t.style]&&(o[t.style][r]=!0)})),o}(t),u=n;u<o;u+=1)u!==n&&i(s,e,u)?(l.text.push(a[u]),l.end=u+1):(l={styles:r(s,u),text:[a[u]],start:u,end:u+1},c.push(l));return c}function l(e,n){var o=a(e,["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","CODE","SUPERSCRIPT","SUBSCRIPT"],n.start,n.end),r="";return o.forEach((function(e){r+=function(e){var n,o=e.styles,r=(n=e.text)&&n.length>0?n.map((function(t){switch(t){case"\n":return"<br>";case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";default:return t}})).join(""):"";return t(o,(function(t,e){r=function(t,e){return"BOLD"===t?"<strong>".concat(e,"</strong>"):"ITALIC"===t?"<em>".concat(e,"</em>"):"UNDERLINE"===t?"<ins>".concat(e,"</ins>"):"STRIKETHROUGH"===t?"<del>".concat(e,"</del>"):"CODE"===t?"<code>".concat(e,"</code>"):"SUPERSCRIPT"===t?"<sup>".concat(e,"</sup>"):"SUBSCRIPT"===t?"<sub>".concat(e,"</sub>"):e}(t,r)})),r}(e)})),r=function(t,e){if(t&&(t.COLOR||t.BGCOLOR||t.FONTSIZE||t.FONTFAMILY)){var n='style="';return t.COLOR&&(n+="color: ".concat(t.COLOR,";")),t.BGCOLOR&&(n+="background-color: ".concat(t.BGCOLOR,";")),t.FONTSIZE&&(n+="font-size: ".concat(t.FONTSIZE).concat(/^\d+$/.test(t.FONTSIZE)?"px":"",";")),t.FONTFAMILY&&(n+="font-family: ".concat(t.FONTFAMILY,";")),"<span ".concat(n+='"',">").concat(e,"</span>")}return e}(n.styles,r)}function s(t,e,n,o){var r=[],i=function(t,e){var n=[],o=0,r=t.entityRanges.map((function(t){return{offset:t.offset,length:t.length,key:t.key,type:"ENTITY"}}));return(r=(r=r.concat(function(t,e){var n=[];if(e)for(var o=0,r=0,i=t,c=e.trigger||"#",a=e.separator||" ";i.length>0&&r>=0;)if(i[0]===c?(r=0,o=0,i=i.substr(c.length)):(r=i.indexOf(a+c))>=0&&(i=i.substr(r+(a+c).length),o+=r+a.length),r>=0){var l=i.indexOf(a)>=0?i.indexOf(a):i.length,s=i.substr(0,l);s&&s.length>0&&n.push({offset:o,length:s.length+c.length,type:"HASHTAG"}),o+=c.length}return n}(t.text,e))).sort((function(t,e){return t.offset-e.offset}))).forEach((function(t){t.offset>o&&n.push({start:o,end:t.offset}),n.push({start:t.offset,end:t.offset+t.length,entityKey:t.key,type:t.type}),o=t.offset+t.length})),o<t.text.length&&n.push({start:o,end:t.text.length}),n}(t,n);return i.forEach((function(n,s){var u=function(t,e,n,o){var r=[];a(t,["COLOR","BGCOLOR","FONTSIZE","FONTFAMILY"],n.start,n.end).forEach((function(e){r.push(l(t,e))}));var i=r.join("");return"ENTITY"===n.type?void 0!==n.entityKey&&null!==n.entityKey&&(i=c(e,n.entityKey,i,o)):"HASHTAG"===n.type&&(i='<a href="'.concat(i,'" class="wysiwyg-hashtag">').concat(i,"</a>")),i}(t,e,n,o);0===s&&(u=function(t){if(t){for(var e=t,n=0;n<e.length&&" "===t[n];n+=1)e=e.replace(" ","&nbsp;");return e}return t}(u)),s===i.length-1&&(u=function(t){if(t){for(var e=t,n=e.length-1;n>=0&&" "===e[n];n-=1)e="".concat(e.substring(0,n),"&nbsp;").concat(e.substring(n+1));return e}return t}(u)),r.push(u)})),r.join("")}function u(t,e,r,i,c){var a,l=[],p=[];return t.forEach((function(t){var d=!1;if(a?a.type!==t.type?(l.push("</".concat(n(a.type),">\n")),l.push("<".concat(n(t.type),">\n"))):a.depth===t.depth?p&&p.length>0&&(l.push(u(p,e,r,i,c)),p=[]):(d=!0,p.push(t)):l.push("<".concat(n(t.type),">\n")),!d){l.push("<li");var f=o(t.data);f&&l.push(' style="'.concat(f,'"')),i&&l.push(' dir = "auto"'),l.push(">"),l.push(s(t,e,r,c)),l.push("</li>\n"),a=t}})),p&&p.length>0&&l.push(u(p,e,r,i,c)),l.push("</".concat(n(a.type),">\n")),l.join("")}return function(t,e,r,i){var a=[];if(t){var l=t.blocks,p=t.entityMap;if(l&&l.length>0){var d=[];if(l.forEach((function(t){if("unordered-list-item"===(y=t.type)||"ordered-list-item"===y)d.push(t);else{if(d.length>0){var l=u(d,p,e,i);a.push(l),d=[]}var f=function(t,e,r,i,a){var l=[];if(function(t){return!(!(t.entityRanges.length>0)||(e=t.text,null!=e&&0!==e.length&&0!==e.trim().length&&"atomic"!==t.type));var e}(t))l.push(c(e,t.entityRanges[0].key,void 0,a));else{var u=n(t.type);if(u){l.push("<".concat(u));var p=o(t.data);p&&l.push(' style="'.concat(p,'"')),i&&l.push(' dir = "auto"'),l.push(">"),l.push(s(t,e,r,a)),l.push("</".concat(u,">"))}}return l.push("\n"),l.join("")}(t,p,e,r,i);a.push(f)}var y})),d.length>0){var f=u(d,p,e,r,i);a.push(f),d=[]}}}return a.join("")}}()},17247:function(t,e,n){window,t.exports=function(t,e){return r={},n.m=o=[function(e,n){e.exports=t},function(t,n){t.exports=e},function(t,e,n){t.exports=n(3)},function(t,e,n){"use strict";n.r(e);var o=n(1),r=n(0),i=function(t,e,n){var o,i=t.textContent;return""===i.trim()?{chunk:(o=n,{text:" ",inlines:[new r.OrderedSet],entities:[o],blocks:[]})}:{chunk:{text:i,inlines:Array(i.length).fill(e),entities:Array(i.length).fill(n),blocks:[]}}},c=function(){return{text:"\n",inlines:[new r.OrderedSet],entities:new Array(1),blocks:[]}},a=function(){return{text:"",inlines:[],entities:[],blocks:[]}},l=function(t,e){return{text:"",inlines:[],entities:[],blocks:[{type:t,depth:0,data:e||new r.Map({})}]}},s=function(t,e,n){return{text:"\r",inlines:[],entities:[],blocks:[{type:t,depth:Math.max(0,Math.min(4,e)),data:n||new r.Map({})}]}},u=function(t){return{text:"\r ",inlines:[new r.OrderedSet],entities:[t],blocks:[{type:"atomic",depth:0,data:new r.Map({})}]}},p=function(t,e){return{text:t.text+e.text,inlines:t.inlines.concat(e.inlines),entities:t.entities.concat(e.entities),blocks:t.blocks.concat(e.blocks)}},d=new r.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"]}}),f={code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",strong:"BOLD",ins:"UNDERLINE",sub:"SUBSCRIPT",sup:"SUPERSCRIPT"};function y(t){return t.style.textAlign?new r.Map({"text-align":t.style.textAlign}):t.style.marginLeft?new r.Map({"margin-left":t.style.marginLeft}):void 0}var m=function(t){var e=void 0;if(t instanceof HTMLAnchorElement){var n={};e=t.dataset&&void 0!==t.dataset.mention?(n.url=t.href,n.text=t.innerHTML,n.value=t.dataset.value,o.Entity.__create("MENTION","IMMUTABLE",n)):(n.url=t.getAttribute&&t.getAttribute("href")||t.href,n.title=t.innerHTML,n.targetOption=t.target,o.Entity.__create("LINK","MUTABLE",n))}return e};n.d(e,"default",(function(){return j}));var g=" ",h=new RegExp("&nbsp;","g"),b=!0;function M(t,e,n,r,g,h){var j=t.nodeName.toLowerCase();if(h){var v=h(j,t);if(v){var E=o.Entity.__create(v.type,v.mutability,v.data||{});return{chunk:u(E)}}}if("#text"===j&&"\n"!==t.textContent)return i(t,e,g);if("br"===j)return{chunk:c()};if("img"===j&&t instanceof HTMLImageElement){var N={};N.src=t.getAttribute&&t.getAttribute("src")||t.src,N.alt=t.alt,N.height=t.style.height,N.width=t.style.width,t.style.float&&(N.alignment=t.style.float);var S=o.Entity.__create("IMAGE","MUTABLE",N);return{chunk:u(S)}}if("video"===j&&t instanceof HTMLVideoElement){var w={};w.src=t.getAttribute&&t.getAttribute("src")||t.src,w.alt=t.alt,w.height=t.style.height,w.width=t.style.width,t.style.float&&(w.alignment=t.style.float);var L=o.Entity.__create("VIDEO","MUTABLE",w);return{chunk:u(L)}}if("iframe"===j&&t instanceof HTMLIFrameElement){var C={};C.src=t.getAttribute&&t.getAttribute("src")||t.src,C.height=t.height,C.width=t.width;var k=o.Entity.__create("EMBEDDED_LINK","MUTABLE",C);return{chunk:u(k)}}var D,O=function(t,e){var n=d.filter((function(n){return n.element===t&&(!n.wrapper||n.wrapper===e)||n.wrapper===t||n.aliasedElements&&-1<n.aliasedElements.indexOf(t)})).keySeq().toSet().toArray();if(1===n.length)return n[0]}(j,r);O&&("ul"===j||"ol"===j?(r=j,n+=1):("unordered-list-item"!==O&&"ordered-list-item"!==O&&(r="",n=-1),b?(D=l(O,y(t)),b=!1):D=s(O,n,y(t)))),D=D||a(),e=function(t,e,n){var o,r=f[t];if(r)o=n.add(r).toOrderedSet();else if(e instanceof HTMLElement){var i=e;o=(o=n).withMutations((function(t){var e=i.style.color,n=i.style.backgroundColor,o=i.style.fontSize,r=i.style.fontFamily.replace(/^"|"$/g,""),c=i.style.fontWeight,a=i.style.textDecoration,l=i.style.fontStyle;e&&t.add("color-".concat(e.replace(/ /g,""))),n&&t.add("bgcolor-".concat(n.replace(/ /g,""))),o&&t.add("fontsize-".concat(o.replace(/px$/g,""))),r&&t.add("fontfamily-".concat(r)),"bold"===c&&t.add(f.strong),"underline"===a&&t.add(f.ins),"italic"===l&&t.add(f.em)})).toOrderedSet()}return o}(j,t,e);for(var x=t.firstChild;x;){var I=M(x,e,n,r,m(x)||g,h).chunk;D=p(D,I),x=x.nextSibling}return{chunk:D}}function j(t,e){var n,i,c=(n=e,(i=function(t){var e,n=null;return document.implementation&&document.implementation.createHTMLDocument&&((e=document.implementation.createHTMLDocument("foo")).documentElement.innerHTML=t,n=e.getElementsByTagName("body")[0]),n}(t.trim().replace(h,g)))?(b=!0,{chunk:M(i,new r.OrderedSet,-1,"",void 0,n).chunk}):null);if(c){var a=c.chunk,l=new r.OrderedMap({});a.entities&&a.entities.forEach((function(t){t&&(l=l.set(t,o.Entity.__get(t)))}));var s=0;return{contentBlocks:a.text.split("\r").map((function(t,e){var n=s+t.length,i=a&&a.inlines.slice(s,n),c=a&&a.entities.slice(s,n),l=new r.List(i.map((function(t,e){var n={style:t,entity:null};return c[e]&&(n.entity=c[e]),o.CharacterMetadata.create(n)})));return s=n,new o.ContentBlock({key:Object(o.genKey)(),type:a&&a.blocks[e]&&a.blocks[e].type||"unstyled",depth:a&&a.blocks[e]&&a.blocks[e].depth,data:a&&a.blocks[e]&&a.blocks[e].data||new r.Map({}),text:t,characterList:l})})),entityMap:l}}return null}}],n.c=r,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=2);function n(t){if(r[t])return r[t].exports;var e=r[t]={i:t,l:!1,exports:{}};return o[t].call(e.exports,e,e.exports,n),e.l=!0,e.exports}var o,r}(n(43393),n(9041))},35108:function(t,e,n){window,t.exports=function(t,e,n){return i={},o.m=r=[function(t,e,n){t.exports=n(10)()},function(e,n){e.exports=t},function(t,e,n){var o;!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var t=[],e=0;e<arguments.length;e++){var o=arguments[e];if(o){var i=typeof o;if("string"==i||"number"==i)t.push(o);else if(Array.isArray(o)&&o.length){var c=r.apply(null,o);c&&t.push(c)}else if("object"==i)for(var a in o)n.call(o,a)&&o[a]&&t.push(a)}}return t.join(" ")}t.exports?(r.default=r,t.exports=r):void 0===(o=function(){return r}.apply(e,[]))||(t.exports=o)}()},function(t,n){t.exports=e},function(t,e,n){function o(t){if(a[t])return a[t].exports;var e=a[t]={i:t,l:!1,exports:{}};return c[t].call(e.exports,e,e.exports,o),e.l=!0,e.exports}var r,i,c,a;window,t.exports=(r=n(3),i=n(5),a={},o.m=c=[function(t,e){t.exports=r},function(t,e){t.exports=i},function(t,e,n){t.exports=n(3)},function(t,e,n){"use strict";n.r(e);var o=n(0),r=n(1);function i(t){var e=t.getSelection(),n=t.getCurrentContent(),o=e.getStartKey(),r=e.getEndKey(),i=n.getBlockMap();return i.toSeq().skipUntil((function(t,e){return e===o})).takeUntil((function(t,e){return e===r})).concat([[r,i.get(r)]])}function c(t){return i(t).toList()}function a(t){if(t)return c(t).get(0)}function l(t){if(t){var e=a(t),n=t.getCurrentContent().getBlockMap().toSeq().toList(),o=0;if(n.forEach((function(t,n){t.get("key")===e.get("key")&&(o=n-1)})),-1<o)return n.get(o)}}function s(t){return t?t.getCurrentContent().getBlockMap().toList():new r.List}function u(t){var e=c(t);if(!e.some((function(t){return t.type!==e.get(0).type})))return e.get(0).type}function p(t){var e=o.RichUtils.tryToRemoveBlockStyle(t);return e?o.EditorState.push(t,e,"change-block-type"):t}function d(t){var e="",n=t.getSelection(),o=n.getAnchorOffset(),r=n.getFocusOffset(),i=c(t);if(0<i.size){if(n.getIsBackward()){var a=o;o=r,r=a}for(var l=0;l<i.size;l+=1){var s=0===l?o:0,u=l===i.size-1?r:i.get(l).getText().length;e+=i.get(l).getText().slice(s,u)}}return e}function f(t){var e=t.getCurrentContent(),n=t.getSelection(),r=o.Modifier.removeRange(e,n,"forward"),i=r.getSelectionAfter(),c=r.getBlockForKey(i.getStartKey());return r=o.Modifier.insertText(r,i,"\n",c.getInlineStyleAt(i.getStartOffset()),null),o.EditorState.push(t,r,"insert-fragment")}function y(t){var e=o.Modifier.splitBlock(t.getCurrentContent(),t.getSelection());return p(o.EditorState.push(t,e,"split-block"))}function m(t){var e=t.getCurrentContent().getBlockMap().toList(),n=t.getSelection().merge({anchorKey:e.first().get("key"),anchorOffset:0,focusKey:e.last().get("key"),focusOffset:e.last().getLength()}),r=o.Modifier.removeRange(t.getCurrentContent(),n,"forward");return o.EditorState.push(t,r,"remove-range")}function g(t,e){var n=o.Modifier.setBlockData(t.getCurrentContent(),t.getSelection(),e);return o.EditorState.push(t,n,"change-block-data")}function h(t){var e=new r.Map({}),n=c(t);if(n&&0<n.size)for(var o=function(t){var o=n.get(t).getData();if(!o||0===o.size)return e=e.clear(),"break";if(0===t)e=o;else if(e.forEach((function(t,n){o.get(n)&&o.get(n)===t||(e=e.delete(n))})),0===e.size)return e=e.clear(),"break"},i=0;i<n.size&&"break"!==o(i);i+=1);return e}var b=Object(r.Map)({code:{element:"pre"}}),M=o.DefaultDraftBlockRenderMap.merge(b);function j(t){if(t){var e=t.getType();return"unordered-list-item"===e||"ordered-list-item"===e}return!1}function v(t,e,n){var r,c=t.getSelection();r=c.getIsBackward()?c.getFocusKey():c.getAnchorKey();var a=t.getCurrentContent(),l=a.getBlockForKey(r),s=l.getType();if("unordered-list-item"!==s&&"ordered-list-item"!==s)return t;var u=a.getBlockBefore(r);if(!u)return t;if(u.getType()!==s)return t;var p=l.getDepth();if(1===e&&p===n)return t;var d,f,y,m,g,h,b,M=Math.min(u.getDepth()+1,n),j=(f=e,y=M,m=(d=t).getSelection(),h=(g=d.getCurrentContent()).getBlockMap(),b=i(d).map((function(t){var e=t.getDepth()+f;return e=Math.max(0,Math.min(e,y)),t.set("depth",e)})),h=h.merge(b),g.merge({blockMap:h,selectionBefore:m,selectionAfter:m}));return o.EditorState.push(t,j,"adjust-depth")}function E(t,e){var n;return 13===(n=e).which&&(n.getModifierState("Shift")||n.getModifierState("Alt")||n.getModifierState("Control"))?t.getSelection().isCollapsed()?o.RichUtils.insertSoftNewline(t):f(t):function(t){var e=t.getSelection();if(e.isCollapsed()){var n=t.getCurrentContent(),o=e.getStartKey(),r=n.getBlockForKey(o);if(!j(r)&&"unstyled"!==r.getType()&&r.getLength()===e.getStartOffset())return y(t);if(j(r)&&0===r.getLength()){var i=r.getDepth();if(0===i)return p(t);if(0<i)return v(t,-1,i)}}}(t)}function N(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function S(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function w(t){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function L(t){var e=t.getSelection();if(e.isCollapsed()){var n={},o=t.getCurrentInlineStyle().toList().toJS();if(o)return["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","CODE","SUPERSCRIPT","SUBSCRIPT"].forEach((function(t){n[t]=0<=o.indexOf(t)})),n}var r=e.getStartOffset(),i=e.getEndOffset(),a=c(t);if(0<a.size){var l=function(){for(var t={BOLD:!0,ITALIC:!0,UNDERLINE:!0,STRIKETHROUGH:!0,CODE:!0,SUPERSCRIPT:!0,SUBSCRIPT:!0},e=0;e<a.size;e+=1){var n=0===e?r:0,o=e===a.size-1?i:a.get(e).getText().length;n===o&&0===n?(n=1,o=2):n===o&&--n;for(var c=function(n){var o=a.get(e).getInlineStyleAt(n);["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","CODE","SUPERSCRIPT","SUBSCRIPT"].forEach((function(e){t[e]=t[e]&&o.get(e)===e}))},l=n;l<o;l+=1)c(l)}return{v:t}}();if("object"===w(l))return l.v}return{}}function C(t){var e,n=t.getSelection(),o=n.getStartOffset(),r=n.getEndOffset();o===r&&0===o?r=1:o===r&&--o;for(var i=a(t),c=o;c<r;c+=1){var l=i.getEntityAt(c);if(!l){e=void 0;break}if(c===o)e=l;else if(e!==l){e=void 0;break}}return e}function k(t,e){var n,o=a(t);return o.findEntityRanges((function(t){return t.get("entity")===e}),(function(t,e){n={start:t,end:e,text:o.get("text").slice(t,e)}})),n}function D(t,e,n){x[t]["".concat(t.toLowerCase(),"-").concat(n)]=S({},"".concat(e),n)}function O(){return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?N(Object(n),!0).forEach((function(e){S(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},x.color,{},x.bgcolor,{},x.fontSize,{},x.fontFamily,{CODE:x.CODE,SUPERSCRIPT:x.SUPERSCRIPT,SUBSCRIPT:x.SUBSCRIPT})}var x={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 I(t,e,n){var r=t.getSelection(),i=Object.keys(x[e]).reduce((function(t,e){return o.Modifier.removeInlineStyle(t,r,e)}),t.getCurrentContent()),c=o.EditorState.push(t,i,"changeinline-style"),a=t.getCurrentInlineStyle();if(r.isCollapsed()&&(c=a.reduce((function(t,e){return o.RichUtils.toggleInlineStyle(t,e)}),c)),"SUPERSCRIPT"===e||"SUBSCRIPT"==e)a.has(n)||(c=o.RichUtils.toggleInlineStyle(c,n));else{var l="bgcolor"===e?"backgroundColor":e;a.has("".concat(l,"-").concat(n))||(c=o.RichUtils.toggleInlineStyle(c,"".concat(e.toLowerCase(),"-").concat(n)),D(e,l,n))}return c}function T(t){t&&t.getCurrentContent().getBlockMap().map((function(t){return t.get("characterList")})).toList().flatten().forEach((function(t){t&&0===t.indexOf("color-")?D("color","color",t.substr(6)):t&&0===t.indexOf("bgcolor-")?D("bgcolor","backgroundColor",t.substr(8)):t&&0===t.indexOf("fontsize-")?D("fontSize","fontSize",+t.substr(9)):t&&0===t.indexOf("fontfamily-")&&D("fontFamily","fontFamily",t.substr(11))}))}function A(t,e,n){var o=t.getInlineStyleAt(n).toList().filter((function(t){return t.startsWith(e.toLowerCase())}));if(o&&0<o.size)return o.get(0)}function z(t,e){if(t&&e&&0<e.length){var n=function(){var n=t.getSelection(),o={};if(n.isCollapsed())return e.forEach((function(e){o[e]=function(t,e){var n=t.getCurrentInlineStyle().toList().filter((function(t){return t.startsWith(e.toLowerCase())}));if(n&&0<n.size)return n.get(0)}(t,e)})),{v:o};var r=n.getStartOffset(),i=n.getEndOffset(),a=c(t);if(0<a.size){for(var l=function(t){var n=0===t?r:0,c=t===a.size-1?i:a.get(t).getText().length;n===c&&0===n?(n=1,c=2):n===c&&--n;for(var l=function(r){r===n?e.forEach((function(e){o[e]=A(a.get(t),e,r)})):e.forEach((function(e){o[e]&&o[e]!==A(a.get(t),e,r)&&(o[e]=void 0)}))},s=n;s<c;s+=1)l(s)},s=0;s<a.size;s+=1)l(s);return{v:o}}}();if("object"===w(n))return n.v}return{}}function _(t){var e=t.getCurrentInlineStyle(),n=t.getCurrentContent();return e.forEach((function(e){n=o.Modifier.removeInlineStyle(n,t.getSelection(),e)})),o.EditorState.push(t,n,"change-inline-style")}n.d(e,"isListBlock",(function(){return j})),n.d(e,"changeDepth",(function(){return v})),n.d(e,"handleNewLine",(function(){return E})),n.d(e,"getEntityRange",(function(){return k})),n.d(e,"getCustomStyleMap",(function(){return O})),n.d(e,"toggleCustomInlineStyle",(function(){return I})),n.d(e,"getSelectionEntity",(function(){return C})),n.d(e,"extractInlineStyle",(function(){return T})),n.d(e,"removeAllInlineStyles",(function(){return _})),n.d(e,"getSelectionInlineStyle",(function(){return L})),n.d(e,"getSelectionCustomInlineStyle",(function(){return z})),n.d(e,"getSelectedBlocksMap",(function(){return i})),n.d(e,"getSelectedBlocksList",(function(){return c})),n.d(e,"getSelectedBlock",(function(){return a})),n.d(e,"getBlockBeforeSelectedBlock",(function(){return l})),n.d(e,"getAllBlocks",(function(){return s})),n.d(e,"getSelectedBlocksType",(function(){return u})),n.d(e,"removeSelectedBlocksStyle",(function(){return p})),n.d(e,"getSelectionText",(function(){return d})),n.d(e,"addLineBreakRemovingSelection",(function(){return f})),n.d(e,"insertNewUnstyledBlock",(function(){return y})),n.d(e,"clearEditorContent",(function(){return m})),n.d(e,"setBlockData",(function(){return g})),n.d(e,"getSelectedBlocksMetadata",(function(){return h})),n.d(e,"blockRenderMap",(function(){return M}))}],o.c=a,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=2))},function(t,e){t.exports=n},function(t,e,n){function o(t){if(a[t])return a[t].exports;var e=a[t]={i:t,l:!1,exports:{}};return c[t].call(e.exports,e,e.exports,o),e.l=!0,e.exports}var r,i,c,a;window,t.exports=(r=n(5),i=n(3),a={},o.m=c=[function(t,e){t.exports=r},function(t,e){t.exports=i},function(t,e,n){t.exports=n(3)},function(t,e,n){"use strict";n.r(e);var o=n(1),r=n(0),i=function(t,e,n){var o,i=t.textContent;return""===i.trim()?{chunk:(o=n,{text:" ",inlines:[new r.OrderedSet],entities:[o],blocks:[]})}:{chunk:{text:i,inlines:Array(i.length).fill(e),entities:Array(i.length).fill(n),blocks:[]}}},c=function(){return{text:"\n",inlines:[new r.OrderedSet],entities:new Array(1),blocks:[]}},a=function(t,e){return{text:"",inlines:[],entities:[],blocks:[{type:t,depth:0,data:e||new r.Map({})}]}},l=function(t,e,n){return{text:"\r",inlines:[],entities:[],blocks:[{type:t,depth:Math.max(0,Math.min(4,e)),data:n||new r.Map({})}]}},s=function(t){return{text:"\r ",inlines:[new r.OrderedSet],entities:[t],blocks:[{type:"atomic",depth:0,data:new r.Map({})}]}},u=function(t,e){return{text:t.text+e.text,inlines:t.inlines.concat(e.inlines),entities:t.entities.concat(e.entities),blocks:t.blocks.concat(e.blocks)}},p=new r.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"]}}),d={code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",strong:"BOLD",ins:"UNDERLINE",sub:"SUBSCRIPT",sup:"SUPERSCRIPT"};function f(t){return t.style.textAlign?new r.Map({"text-align":t.style.textAlign}):t.style.marginLeft?new r.Map({"margin-left":t.style.marginLeft}):void 0}var y=function(t){var e=void 0;if(t instanceof HTMLAnchorElement){var n={};e=t.dataset&&void 0!==t.dataset.mention?(n.url=t.href,n.text=t.innerHTML,n.value=t.dataset.value,o.Entity.__create("MENTION","IMMUTABLE",n)):(n.url=t.getAttribute&&t.getAttribute("href")||t.href,n.title=t.innerHTML,n.targetOption=t.target,o.Entity.__create("LINK","MUTABLE",n))}return e};n.d(e,"default",(function(){return b}));var m=" ",g=new RegExp("&nbsp;","g"),h=!0;function b(t,e){var n,b,M=(n=e,(b=function(t){var e,n=null;return document.implementation&&document.implementation.createHTMLDocument&&((e=document.implementation.createHTMLDocument("foo")).documentElement.innerHTML=t,n=e.getElementsByTagName("body")[0]),n}(t.trim().replace(g,m)))?(h=!0,{chunk:function t(e,n,r,m,g,b){var M=e.nodeName.toLowerCase();if(b){var j=b(M,e);if(j){var v=o.Entity.__create(j.type,j.mutability,j.data||{});return{chunk:s(v)}}}if("#text"===M&&"\n"!==e.textContent)return i(e,n,g);if("br"===M)return{chunk:c()};if("img"===M&&e instanceof HTMLImageElement){var E={};E.src=e.getAttribute&&e.getAttribute("src")||e.src,E.alt=e.alt,E.height=e.style.height,E.width=e.style.width,e.style.float&&(E.alignment=e.style.float);var N=o.Entity.__create("IMAGE","MUTABLE",E);return{chunk:s(N)}}if("video"===M&&e instanceof HTMLVideoElement){var S={};S.src=e.getAttribute&&e.getAttribute("src")||e.src,S.alt=e.alt,S.height=e.style.height,S.width=e.style.width,e.style.float&&(S.alignment=e.style.float);var w=o.Entity.__create("VIDEO","MUTABLE",S);return{chunk:s(w)}}if("iframe"===M&&e instanceof HTMLIFrameElement){var L={};L.src=e.getAttribute&&e.getAttribute("src")||e.src,L.height=e.height,L.width=e.width;var C=o.Entity.__create("EMBEDDED_LINK","MUTABLE",L);return{chunk:s(C)}}var k,D=function(t,e){var n=p.filter((function(n){return n.element===t&&(!n.wrapper||n.wrapper===e)||n.wrapper===t||n.aliasedElements&&-1<n.aliasedElements.indexOf(t)})).keySeq().toSet().toArray();if(1===n.length)return n[0]}(M,m);D&&("ul"===M||"ol"===M?(m=M,r+=1):("unordered-list-item"!==D&&"ordered-list-item"!==D&&(m="",r=-1),h?(k=a(D,f(e)),h=!1):k=l(D,r,f(e)))),k=k||{text:"",inlines:[],entities:[],blocks:[]},n=function(t,e,n){var o,r=d[t];if(r)o=n.add(r).toOrderedSet();else if(e instanceof HTMLElement){var i=e;o=(o=n).withMutations((function(t){var e=i.style.color,n=i.style.backgroundColor,o=i.style.fontSize,r=i.style.fontFamily.replace(/^"|"$/g,""),c=i.style.fontWeight,a=i.style.textDecoration,l=i.style.fontStyle;e&&t.add("color-".concat(e.replace(/ /g,""))),n&&t.add("bgcolor-".concat(n.replace(/ /g,""))),o&&t.add("fontsize-".concat(o.replace(/px$/g,""))),r&&t.add("fontfamily-".concat(r)),"bold"===c&&t.add(d.strong),"underline"===a&&t.add(d.ins),"italic"===l&&t.add(d.em)})).toOrderedSet()}return o}(M,e,n);for(var O=e.firstChild;O;){var x=t(O,n,r,m,y(O)||g,b).chunk;k=u(k,x),O=O.nextSibling}return{chunk:k}}(b,new r.OrderedSet,-1,"",void 0,n).chunk}):null);if(M){var j=M.chunk,v=new r.OrderedMap({});j.entities&&j.entities.forEach((function(t){t&&(v=v.set(t,o.Entity.__get(t)))}));var E=0;return{contentBlocks:j.text.split("\r").map((function(t,e){var n=E+t.length,i=j&&j.inlines.slice(E,n),c=j&&j.entities.slice(E,n),a=new r.List(i.map((function(t,e){var n={style:t,entity:null};return c[e]&&(n.entity=c[e]),o.CharacterMetadata.create(n)})));return E=n,new o.ContentBlock({key:Object(o.genKey)(),type:j&&j.blocks[e]&&j.blocks[e].type||"unstyled",depth:j&&j.blocks[e]&&j.blocks[e].depth,data:j&&j.blocks[e]&&j.blocks[e].data||new r.Map({}),text:t,characterList:a})})),entityMap:v}}return null}}],o.c=a,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=2))},function(t,e,n){"use strict";function o(t){return Array.prototype.slice.call(arguments,1).forEach((function(e){e&&Object.keys(e).forEach((function(n){t[n]=e[n]}))})),t}function r(t){return Object.prototype.toString.call(t)}function i(t){return"[object Function]"===r(t)}function c(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var a={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},l={"http:":{validate:function(t,e,n){var o=t.slice(e);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(o)?o.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,e,n){var o=t.slice(e);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(o)?3<=e&&":"===t[e-3]||3<=e&&"/"===t[e-3]?0:o.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,n){var o=t.slice(e);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(o)?o.match(n.re.mailto)[0].length:0}}},s="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]",u="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function p(t){var e=t.re=n(21)(t.__opts__),o=t.__tlds__.slice();function a(t){return t.replace("%TLDS%",e.src_tlds)}t.onCompile(),t.__tlds_replaced__||o.push(s),o.push(e.src_xn),e.src_tlds=o.join("|"),e.email_fuzzy=RegExp(a(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(a(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(a(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(a(e.tpl_host_fuzzy_test),"i");var l=[];function u(t,e){throw new Error('(LinkifyIt) Invalid schema "'+t+'": '+e)}t.__compiled__={},Object.keys(t.__schemas__).forEach((function(e){var n=t.__schemas__[e];if(null!==n){var o,c={validate:null,link:null};if(t.__compiled__[e]=c,"[object Object]"===r(n))return"[object RegExp]"===r(n.validate)?c.validate=(o=n.validate,function(t,e){var n=t.slice(e);return o.test(n)?n.match(o)[0].length:0}):i(n.validate)?c.validate=n.validate:u(e,n),void(i(n.normalize)?c.normalize=n.normalize:n.normalize?u(e,n):c.normalize=function(t,e){e.normalize(t)});"[object String]"!==r(n)?u(e,n):l.push(e)}})),l.forEach((function(e){t.__compiled__[t.__schemas__[e]]&&(t.__compiled__[e].validate=t.__compiled__[t.__schemas__[e]].validate,t.__compiled__[e].normalize=t.__compiled__[t.__schemas__[e]].normalize)})),t.__compiled__[""]={validate:null,normalize:function(t,e){e.normalize(t)}};var p,d=Object.keys(t.__compiled__).filter((function(e){return 0<e.length&&t.__compiled__[e]})).map(c).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+d+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+d+")","ig"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),(p=t).__index__=-1,p.__text_cache__=""}function d(t,e){var n=t.__index__,o=t.__last_index__,r=t.__text_cache__.slice(n,o);this.schema=t.__schema__.toLowerCase(),this.index=n+e,this.lastIndex=o+e,this.raw=r,this.text=r,this.url=r}function f(t,e){var n=new d(t,e);return t.__compiled__[n.schema].normalize(n,t),n}function y(t,e){if(!(this instanceof y))return new y(t,e);var n;e||(n=t,Object.keys(n||{}).reduce((function(t,e){return t||a.hasOwnProperty(e)}),!1)&&(e=t,t={})),this.__opts__=o({},a,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=o({},l,t),this.__compiled__={},this.__tlds__=u,this.__tlds_replaced__=!1,this.re={},p(this)}y.prototype.add=function(t,e){return this.__schemas__[t]=e,p(this),this},y.prototype.set=function(t){return this.__opts__=o(this.__opts__,t),this},y.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;var e,n,o,r,i,c,a,l;if(this.re.schema_test.test(t))for((a=this.re.schema_search).lastIndex=0;null!==(e=a.exec(t));)if(r=this.testSchemaAt(t,e[2],a.lastIndex)){this.__schema__=e[2],this.__index__=e.index+e[1].length,this.__last_index__=e.index+e[0].length+r;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&0<=(l=t.search(this.re.host_fuzzy_test))&&(this.__index__<0||l<this.__index__)&&null!==(n=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(i=n.index+n[1].length,(this.__index__<0||i<this.__index__)&&(this.__schema__="",this.__index__=i,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&0<=t.indexOf("@")&&null!==(o=t.match(this.re.email_fuzzy))&&(i=o.index+o[1].length,c=o.index+o[0].length,(this.__index__<0||i<this.__index__||i===this.__index__&&c>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=c)),0<=this.__index__},y.prototype.pretest=function(t){return this.re.pretest.test(t)},y.prototype.testSchemaAt=function(t,e,n){return this.__compiled__[e.toLowerCase()]?this.__compiled__[e.toLowerCase()].validate(t,n,this):0},y.prototype.match=function(t){var e=0,n=[];0<=this.__index__&&this.__text_cache__===t&&(n.push(f(this,e)),e=this.__last_index__);for(var o=e?t.slice(e):t;this.test(o);)n.push(f(this,e)),o=o.slice(this.__last_index__),e+=this.__last_index__;return n.length?n:null},y.prototype.tlds=function(t,e){return t=Array.isArray(t)?t:[t],e?this.__tlds__=this.__tlds__.concat(t).sort().filter((function(t,e,n){return t!==n[e-1]})).reverse():(this.__tlds__=t.slice(),this.__tlds_replaced__=!0),p(this),this},y.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),"mailto:"!==t.schema||/^mailto:/i.test(t.url)||(t.url="mailto:"+t.url)},y.prototype.onCompile=function(){},t.exports=y},function(t,e,n){t.exports=n(40)},function(t,e,n){},function(t,e,n){"use strict";var o=n(11);function r(){}function i(){}i.resetWarningCache=r,t.exports=function(){function t(t,e,n,r,i,c){if(c!==o){var a=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 a.name="Invariant Violation",a}}function e(){return t}var n={array:t.isRequired=t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:r};return n.PropTypes=n}},function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){"use strict";t.exports=function(t){var e={};e.src_Any=n(22).source,e.src_Cc=n(23).source,e.src_Z=n(24).source,e.src_P=n(25).source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|");return e.src_pseudo_letter="(?:(?![><|]|"+e.src_ZPCc+")"+e.src_Any+")",e.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]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|[><|]|"+e.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|[><|]|[()[\\]{}.,\"'?!\\-]).|\\[(?:(?!"+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!"+e.src_ZCc+"|[.]).|"+(t&&t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+e.src_ZCc+").|\\!(?!"+e.src_ZCc+"|[!]).|\\?(?!"+e.src_ZCc+"|[?]).)+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy='(^|[><|]|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}},function(t,e){t.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},function(t,e){t.exports=/[\0-\x1F\x7F-\x9F]/},function(t,e){t.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},function(t,e){t.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(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){"use strict";n.r(e),n.d(e,"Editor",(function(){return Eo}));var o=n(1),r=n.n(o),i=n(0),c=n.n(i),a=n(3),l=n(4),s=n(2),u=n.n(s);function p(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}var d=function(t,e,n){return e&&p(t.prototype,e),n&&p(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}((function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.callBacks=[],this.suggestionCallback=void 0,this.editorFlag=!1,this.suggestionFlag=!1,this.closeAllModals=function(t){e.callBacks.forEach((function(e){e(t)}))},this.init=function(t){var n=document.getElementById(t);n&&n.addEventListener("click",(function(){e.editorFlag=!0})),document&&(document.addEventListener("click",(function(){e.editorFlag?e.editorFlag=!1:(e.closeAllModals(),e.suggestionCallback&&e.suggestionCallback())})),document.addEventListener("keydown",(function(t){"Escape"===t.key&&e.closeAllModals()})))},this.onEditorClick=function(){e.closeModals(),!e.suggestionFlag&&e.suggestionCallback?e.suggestionCallback():e.suggestionFlag=!1},this.closeModals=function(t){e.closeAllModals(t)},this.registerCallBack=function(t){e.callBacks.push(t)},this.deregisterCallBack=function(t){e.callBacks=e.callBacks.filter((function(e){return e!==t}))},this.setSuggestionCallback=function(t){e.suggestionCallback=t},this.removeSuggestionCallback=function(){e.suggestionCallback=void 0},this.onSuggestionClick=function(){e.suggestionFlag=!0}}));function f(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}var y,m=function(t,e,n){return e&&f(t.prototype,e),n&&f(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}((function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.inputFocused=!1,this.editorMouseDown=!1,this.onEditorMouseDown=function(){e.editorFocused=!0},this.onInputMouseDown=function(){e.inputFocused=!0},this.isEditorBlur=function(t){return"INPUT"!==t.target.tagName&&"LABEL"!==t.target.tagName&&"TEXTAREA"!==t.target.tagName||e.editorFocused?!("INPUT"===t.target.tagName&&"LABEL"===t.target.tagName&&"TEXTAREA"===t.target.tagName||e.inputFocused||(e.editorFocused=!1)):!(e.inputFocused=!1)},this.isEditorFocused=function(){return!e.inputFocused||(e.inputFocused=!1)},this.isToolbarFocused=function(){return!e.editorFocused||(e.editorFocused=!1)},this.isInputFocused=function(){return e.inputFocused}})),g=[],h={onKeyDown:function(t){g.forEach((function(e){e(t)}))},registerCallBack:function(t){g.push(t)},deregisterCallBack:function(t){g=g.filter((function(e){return e!==t}))}},b=function(){y=!0},M=function(){y=!1},j=function(){return y};function v(t){var e=t.getData()&&t.getData().get("text-align");return e?"rdw-".concat(e,"-aligned-block"):""}function E(t,e){if(t)for(var n in t)!{}.hasOwnProperty.call(t,n)||e(n,t[n])}function N(t,e){var n=!1;if(t)for(var o in t)if({}.hasOwnProperty.call(t,o)&&e===o){n=!0;break}return n}function S(t){t.stopPropagation()}function w(t){return t[t.options[0]].icon}function L(t,e){if(t&&void 0===e)return t;var n={};return E(t,(function(t,o){var r;r=o,"[object Object]"===Object.prototype.toString.call(r)?n[t]=L(o,e[t]):n[t]=void 0!==e[t]?e[t]:o})),n}var C=n(6),k=n.n(C),D=n(5);function O(t){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function x(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function I(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function T(t,e){return(T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function A(t){return(A=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n(9);var z=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&T(t,e)}(i,o.Component);var t,e,n=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=A(t);if(e){var r=A(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return function(t,e){if(e&&("object"===O(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];return(t=n.call.apply(n,[this].concat(o))).onClick=function(){var e=t.props,n=e.disabled,o=e.onClick,r=e.value;n||o(r)},t}return t=i,(e=[{key:"render",value:function(){var t,e=this.props,n=e.children,o=e.className,i=e.activeClassName,c=e.active,a=e.disabled,l=e.title;return r.a.createElement("div",{className:u()("rdw-option-wrapper",o,(x(t={},"rdw-option-active ".concat(i),c),x(t,"rdw-option-disabled",a),t)),onClick:this.onClick,"aria-selected":c,title:l},n)}}])&&I(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();function _(t){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function P(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function R(t,e){return(R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function U(t){return(U=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}z.propTypes={onClick:c.a.func.isRequired,children:c.a.any,value:c.a.string,className:c.a.string,activeClassName:c.a.string,active:c.a.bool,disabled:c.a.bool,title:c.a.string},z.defaultProps={activeClassName:""},n(12);var B=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&R(t,e)}(i,o.Component);var t,e,n=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=U(t);if(e){var r=U(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return function(t,e){if(e&&("object"===_(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];return(t=n.call.apply(n,[this].concat(o))).state={highlighted:-1},t.onChange=function(e){var n=t.props.onChange;n&&n(e),t.toggleExpansion()},t.setHighlighted=function(e){t.setState({highlighted:e})},t.toggleExpansion=function(){var e=t.props,n=e.doExpand,o=e.doCollapse;e.expanded?o():n()},t}return t=i,(e=[{key:"componentDidUpdate",value:function(t){var e=this.props.expanded;t.expanded&&!e&&this.setState({highlighted:-1})}},{key:"render",value:function(){var t=this,e=this.props,n=e.expanded,o=e.children,i=e.className,c=e.optionWrapperClassName,a=e.ariaLabel,l=e.onExpandEvent,s=e.title,p=this.state.highlighted,d=o.slice(1,o.length);return r.a.createElement("div",{className:u()("rdw-dropdown-wrapper",i),"aria-expanded":n,"aria-label":a||"rdw-dropdown"},r.a.createElement("a",{className:"rdw-dropdown-selectedtext",onClick:l,title:s},o[0],r.a.createElement("div",{className:u()({"rdw-dropdown-carettoclose":n,"rdw-dropdown-carettoopen":!n})})),n?r.a.createElement("ul",{className:u()("rdw-dropdown-optionwrapper",c),onClick:S},r.a.Children.map(d,(function(e,n){return e&&r.a.cloneElement(e,{onSelect:t.onChange,highlighted:p===n,setHighlighted:t.setHighlighted,index:n})}))):void 0)}}])&&P(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();function F(t){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Y(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function H(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function Q(t,e){return(Q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Z(t){return(Z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}B.propTypes={children:c.a.any,onChange:c.a.func,className:c.a.string,expanded:c.a.bool,doExpand:c.a.func,doCollapse:c.a.func,onExpandEvent:c.a.func,optionWrapperClassName:c.a.string,ariaLabel:c.a.string,title:c.a.string},n(13);var G=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Q(t,e)}(i,o.Component);var t,e,n=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=Z(t);if(e){var r=Z(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return function(t,e){if(e&&("object"===F(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];return(t=n.call.apply(n,[this].concat(o))).onClick=function(e){var n=t.props,o=n.onSelect,r=n.onClick,i=n.value;n.disabled||(o&&o(i),r&&(e.stopPropagation(),r(i)))},t.setHighlighted=function(){var e=t.props;(0,e.setHighlighted)(e.index)},t.resetHighlighted=function(){(0,t.props.setHighlighted)(-1)},t}return t=i,(e=[{key:"render",value:function(){var t,e=this.props,n=e.children,o=e.active,i=e.disabled,c=e.highlighted,a=e.className,l=e.activeClassName,s=e.disabledClassName,p=e.highlightedClassName,d=e.title;return r.a.createElement("li",{className:u()("rdw-dropdownoption-default",a,(Y(t={},"rdw-dropdownoption-active ".concat(l),o),Y(t,"rdw-dropdownoption-highlighted ".concat(p),c),Y(t,"rdw-dropdownoption-disabled ".concat(s),i),t)),onMouseEnter:this.setHighlighted,onMouseLeave:this.resetHighlighted,onClick:this.onClick,title:d},n)}}])&&H(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();function W(t){return(W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function J(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function V(t,e){return(V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function K(t){return(K=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}G.propTypes={children:c.a.any,value:c.a.any,onClick:c.a.func,onSelect:c.a.func,setHighlighted:c.a.func,index:c.a.number,disabled:c.a.bool,active:c.a.bool,highlighted:c.a.bool,className:c.a.string,activeClassName:c.a.string,disabledClassName:c.a.string,highlightedClassName:c.a.string,title:c.a.string},G.defaultProps={activeClassName:"",disabledClassName:"",highlightedClassName:""},n(14);var q=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&V(t,e)}(i,o.Component);var t,e,n=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=K(t);if(e){var r=K(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return function(t,e){if(e&&("object"===W(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}(i);function i(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),n.apply(this,arguments)}return t=i,(e=[{key:"renderInFlatList",value:function(){var t=this.props,e=t.config,n=t.currentState,o=t.onChange,i=t.translations;return r.a.createElement("div",{className:u()("rdw-inline-wrapper",e.className),"aria-label":"rdw-inline-control"},e.options.map((function(t,c){return r.a.createElement(z,{key:c,value:t,onClick:o,className:u()(e[t].className),active:!0===n[t]||"MONOSPACE"===t&&n.CODE,title:e[t].title||i["components.controls.inline.".concat(t)]},r.a.createElement("img",{alt:"",src:e[t].icon}))})))}},{key:"renderInDropDown",value:function(){var t=this.props,e=t.config,n=t.expanded,o=t.doExpand,i=t.onExpandEvent,c=t.doCollapse,a=t.currentState,l=t.onChange,s=t.translations,p=e.className,d=e.dropdownClassName,f=e.title;return r.a.createElement(B,{className:u()("rdw-inline-dropdown",p),optionWrapperClassName:u()(d),onChange:l,expanded:n,doExpand:o,doCollapse:c,onExpandEvent:i,"aria-label":"rdw-inline-control",title:f},r.a.createElement("img",{src:w(e),alt:""}),e.options.map((function(t,n){return r.a.createElement(G,{key:n,value:t,className:u()("rdw-inline-dropdownoption",e[t].className),active:!0===a[t]||"MONOSPACE"===t&&a.CODE,title:e[t].title||s["components.controls.inline.".concat(t)]},r.a.createElement("img",{src:e[t].icon,alt:""}))})))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&J(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();function X(t){return(X="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function $(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function tt(t,e){return(tt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function et(t){return(et=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}q.propTypes={expanded:c.a.bool,doExpand:c.a.func,doCollapse:c.a.func,onExpandEvent:c.a.func,config:c.a.object,onChange:c.a.func,currentState:c.a.object,translations:c.a.object};var nt=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&tt(t,e)}(i,o.Component);var t,e,n=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=et(t);if(e){var r=et(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return function(t,e){if(e&&("object"===X(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}(i);function i(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=n.call(this,t)).onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.expandCollapse=function(){e.setState({expanded:e.signalExpanded}),e.signalExpanded=!1},e.toggleInlineStyle=function(t){var n="monospace"===t?"CODE":t.toUpperCase(),o=e.props,r=o.editorState,i=o.onChange,c=a.RichUtils.toggleInlineStyle(r,n);if("subscript"===t||"superscript"===t){var l="subscript"===t?"SUPERSCRIPT":"SUBSCRIPT",s=a.Modifier.removeInlineStyle(c.getCurrentContent(),c.getSelection(),l);c=a.EditorState.push(c,s,"change-inline-style")}c&&i(c)},e.changeKeys=function(t){if(t){var e={};return E(t,(function(t,n){e["CODE"===t?"monospace":t.toLowerCase()]=n})),e}},e.doExpand=function(){e.setState({expanded:!0})},e.doCollapse=function(){e.setState({expanded:!1})};var o=e.props,r=o.editorState,c=o.modalHandler;return e.state={currentStyles:r?e.changeKeys(Object(l.getSelectionInlineStyle)(r)):{}},c.registerCallBack(e.expandCollapse),e}return t=i,(e=[{key:"componentDidUpdate",value:function(t){var e=this.props.editorState;e&&e!==t.editorState&&this.setState({currentStyles:this.changeKeys(Object(l.getSelectionInlineStyle)(e))})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,o=this.state,i=o.expanded,c=o.currentStyles,a=e.component||q;return r.a.createElement(a,{config:e,translations:n,currentState:c,expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.toggleInlineStyle})}}])&&$(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();function ot(t){return(ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function rt(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function it(t,e){return(it=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function ct(t){return(ct=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}nt.propTypes={onChange:c.a.func.isRequired,editorState:c.a.object.isRequired,modalHandler:c.a.object,config:c.a.object,translations:c.a.object},n(15);var at=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&it(t,e)}(i,o.Component);var t,e,n=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=ct(t);if(e){var r=ct(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return function(t,e){if(e&&("object"===ot(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=n.call(this,t)).getBlockTypes=function(t){return[{label:"Normal",displayName:t["components.controls.blocktype.normal"]},{label:"H1",displayName:t["components.controls.blocktype.h1"]},{label:"H2",displayName:t["components.controls.blocktype.h2"]},{label:"H3",displayName:t["components.controls.blocktype.h3"]},{label:"H4",displayName:t["components.controls.blocktype.h4"]},{label:"H5",displayName:t["components.controls.blocktype.h5"]},{label:"H6",displayName:t["components.controls.blocktype.h6"]},{label:"Blockquote",displayName:t["components.controls.blocktype.blockquote"]},{label:"Code",displayName:t["components.controls.blocktype.code"]}]},e.state={blockTypes:e.getBlockTypes(t.translations)},e}return t=i,(e=[{key:"componentDidUpdate",value:function(t){var e=this.props.translations;e!==t.translations&&this.setState({blockTypes:this.getBlockTypes(e)})}},{key:"renderFlat",value:function(t){var e=this.props,n=e.config.className,o=e.onChange,i=e.currentState.blockType;return r.a.createElement("div",{className:u()("rdw-inline-wrapper",n)},t.map((function(t,e){return r.a.createElement(z,{key:e,value:t.label,active:i===t.label,onClick:o},t.displayName)})))}},{key:"renderInDropdown",value:function(t){var e=this.props,n=e.config,o=n.className,i=n.dropdownClassName,c=n.title,a=e.currentState.blockType,l=e.expanded,s=e.doExpand,p=e.onExpandEvent,d=e.doCollapse,f=e.onChange,y=e.translations,m=this.state.blockTypes.filter((function(t){return t.label===a})),g=m&&m[0]&&m[0].displayName;return r.a.createElement("div",{className:"rdw-block-wrapper","aria-label":"rdw-block-control"},r.a.createElement(B,{className:u()("rdw-block-dropdown",o),optionWrapperClassName:u()(i),onChange:f,expanded:l,doExpand:s,doCollapse:d,onExpandEvent:p,title:c||y["components.controls.blocktype.blocktype"]},r.a.createElement("span",null,g||y["components.controls.blocktype.blocktype"]),t.map((function(t,e){return r.a.createElement(G,{active:a===t.label,value:t.label,key:e},t.displayName)}))))}},{key:"render",value:function(){var t=this.props.config,e=t.inDropdown,n=this.state.blockTypes.filter((function(e){var n=e.label;return-1<t.options.indexOf(n)}));return e?this.renderInDropdown(n):this.renderFlat(n)}}])&&rt(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();at.propTypes={expanded:c.a.bool,onExpandEvent:c.a.func,doExpand:c.a.func,doCollapse:c.a.func,onChange:c.a.func,config:c.a.object,currentState:c.a.object,translations:c.a.object};var lt=at;function st(t){return(st="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ut(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function pt(t,e){return(pt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function dt(t){return(dt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ft=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&pt(t,e)}(i,o.Component);var t,e,n=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=dt(t);if(e){var r=dt(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return function(t,e){if(e&&("object"===st(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}(i);function i(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=n.call(this,t)).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(t){var n=e.blocksTypes.find((function(e){return e.label===t})).style,o=e.props,r=o.editorState,i=o.onChange,c=a.RichUtils.toggleBlockType(r,n);c&&i(c)};var o=t.editorState,r=t.modalHandler;return e.state={expanded:!1,currentBlockType:o?Object(l.getSelectedBlocksType)(o):"unstyled"},r.registerCallBack(e.expandCollapse),e}return t=i,(e=[{key:"componentDidUpdate",value:function(t){var e=this.props.editorState;e&&e!==t.editorState&&this.setState({currentBlockType:Object(l.getSelectedBlocksType)(e)})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,o=this.state,i=o.expanded,c=o.currentBlockType,a=e.component||lt,l=this.blocksTypes.find((function(t){return t.style===c}));return r.a.createElement(a,{config:e,translations:n,currentState:{blockType:l&&l.label},onChange:this.toggleBlockType,expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&ut(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();ft.propTypes={onChange:c.a.func.isRequired,editorState:c.a.object,modalHandler:c.a.object,config:c.a.object,translations:c.a.object};var yt=ft;function mt(t){return(mt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function gt(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function ht(t,e){return(ht=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function bt(t){return(bt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n(16);var Mt=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ht(t,e)}(i,o.Component);var t,e,n=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=bt(t);if(e){var r=bt(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return function(t,e){if(e&&("object"===mt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];return(t=n.call.apply(n,[this].concat(o))).state={defaultFontSize:void 0},t}return t=i,(e=[{key:"componentDidMount",value:function(){var t=document.getElementsByClassName("DraftEditor-root");if(t&&0<t.length){var e=window.getComputedStyle(t[0]).getPropertyValue("font-size");e=e.substring(0,e.length-2),this.setState({defaultFontSize:e})}}},{key:"render",value:function(){var t=this.props,e=t.config,n=e.icon,o=e.className,i=e.dropdownClassName,c=e.options,a=e.title,l=t.onChange,s=t.expanded,p=t.doCollapse,d=t.onExpandEvent,f=t.doExpand,y=t.translations,m=this.props.currentState.fontSize,g=this.state.defaultFontSize;return g=Number(g),m=m||c&&0<=c.indexOf(g)&&g,r.a.createElement("div",{className:"rdw-fontsize-wrapper","aria-label":"rdw-font-size-control"},r.a.createElement(B,{className:u()("rdw-fontsize-dropdown",o),optionWrapperClassName:u()(i),onChange:l,expanded:s,doExpand:f,doCollapse:p,onExpandEvent:d,title:a||y["components.controls.fontsize.fontsize"]},m?r.a.createElement("span",null,m):r.a.createElement("img",{src:n,alt:""}),c.map((function(t,e){return r.a.createElement(G,{className:"rdw-fontsize-option",active:m===t,value:t,key:e},t)}))))}}])&&gt(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();function jt(t){return(jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function vt(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function Et(t,e){return(Et=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Nt(t){return(Nt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Mt.propTypes={expanded:c.a.bool,onExpandEvent:c.a.func,doExpand:c.a.func,doCollapse:c.a.func,onChange:c.a.func,config:c.a.object,currentState:c.a.object,translations:c.a.object};var St=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Et(t,e)}(i,o.Component);var t,e,n=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=Nt(t);if(e){var r=Nt(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return function(t,e){if(e&&("object"===jt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}(i);function i(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=n.call(this,t)).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(t){var n=e.props,o=n.editorState,r=n.onChange,i=Object(l.toggleCustomInlineStyle)(o,"fontSize",t);i&&r(i)};var o=t.editorState,r=t.modalHandler;return e.state={expanded:void 0,currentFontSize:o?Object(l.getSelectionCustomInlineStyle)(o,["FONTSIZE"]).FONTSIZE:void 0},r.registerCallBack(e.expandCollapse),e}return t=i,(e=[{key:"componentDidUpdate",value:function(t){var e=this.props.editorState;e&&e!==t.editorState&&this.setState({currentFontSize:Object(l.getSelectionCustomInlineStyle)(e,["FONTSIZE"]).FONTSIZE})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,o=this.state,i=o.expanded,c=o.currentFontSize,a=e.component||Mt,l=c&&Number(c.substring(9));return r.a.createElement(a,{config:e,translations:n,currentState:{fontSize:l},onChange:this.toggleFontSize,expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&vt(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();function wt(t){return(wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Lt(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function Ct(t,e){return(Ct=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function kt(t){return(kt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}St.propTypes={onChange:c.a.func.isRequired,editorState:c.a.object,modalHandler:c.a.object,config:c.a.object,translations:c.a.object},n(17);var Dt=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ct(t,e)}(i,o.Component);var t,e,n=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=kt(t);if(e){var r=kt(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return function(t,e){if(e&&("object"===wt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];return(t=n.call.apply(n,[this].concat(o))).state={defaultFontFamily:void 0},t}return t=i,(e=[{key:"componentDidMount",value:function(){var t=document.getElementsByClassName("DraftEditor-root");if(t&&0<t.length){var e=window.getComputedStyle(t[0]).getPropertyValue("font-family");this.setState({defaultFontFamily:e})}}},{key:"render",value:function(){var t=this.state.defaultFontFamily,e=this.props,n=e.config,o=n.className,i=n.dropdownClassName,c=n.options,a=n.title,l=e.translations,s=e.onChange,p=e.expanded,d=e.doCollapse,f=e.onExpandEvent,y=e.doExpand,m=this.props.currentState.fontFamily;return m=m||c&&t&&c.some((function(e){return e.toLowerCase()===t.toLowerCase()}))&&t,r.a.createElement("div",{className:"rdw-fontfamily-wrapper","aria-label":"rdw-font-family-control"},r.a.createElement(B,{className:u()("rdw-fontfamily-dropdown",o),optionWrapperClassName:u()("rdw-fontfamily-optionwrapper",i),onChange:s,expanded:p,doExpand:y,doCollapse:d,onExpandEvent:f,title:a||l["components.controls.fontfamily.fontfamily"]},r.a.createElement("span",{className:"rdw-fontfamily-placeholder"},m||l["components.controls.fontfamily.fontfamily"]),c.map((function(t,e){return r.a.createElement(G,{active:m===t,value:t,key:e},t)}))))}}])&&Lt(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();Dt.propTypes={expanded:c.a.bool,onExpandEvent:c.a.func,doExpand:c.a.func,doCollapse:c.a.func,onChange:c.a.func,config:c.a.object,currentState:c.a.object,translations:c.a.object};var Ot=Dt;function xt(t){return(xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function It(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function Tt(t,e){return(Tt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function At(t){return(At=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var zt=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Tt(t,e)}(i,o.Component);var t,e,n=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=At(t);if(e){var r=At(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return function(t,e){if(e&&("object"===xt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}(i);function i(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=n.call(this,t)).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(t){var n=e.props,o=n.editorState,r=n.onChange,i=Object(l.toggleCustomInlineStyle)(o,"fontFamily",t);i&&r(i)};var o=t.editorState,r=t.modalHandler;return e.state={expanded:void 0,currentFontFamily:o?Object(l.getSelectionCustomInlineStyle)(o,["FONTFAMILY"]).FONTFAMILY:void 0},r.registerCallBack(e.expandCollapse),e}return t=i,(e=[{key:"componentDidUpdate",value:function(t){var e=this.props.editorState;e&&e!==t.editorState&&this.setState({currentFontFamily:Object(l.getSelectionCustomInlineStyle)(e,["FONTFAMILY"]).FONTFAMILY})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,o=this.state,i=o.expanded,c=o.currentFontFamily,a=e.component||Ot,l=c&&c.substring(11);return r.a.createElement(a,{translations:n,config:e,currentState:{fontFamily:l},onChange:this.toggleFontFamily,expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&It(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();function _t(t){return(_t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Pt(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function Rt(t,e){return(Rt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Ut(t){return(Ut=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}zt.propTypes={onChange:c.a.func.isRequired,editorState:c.a.object,modalHandler:c.a.object,config:c.a.object,translations:c.a.object},n(18);var Bt=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Rt(t,e)}(i,o.Component);var t,e,n=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=Ut(t);if(e){var r=Ut(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return function(t,e){if(e&&("object"===_t(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];return(t=n.call.apply(n,[this].concat(o))).options=["unordered","ordered","indent","outdent"],t.toggleBlockType=function(e){(0,t.props.onChange)(e)},t.indent=function(){(0,t.props.onChange)("indent")},t.outdent=function(){(0,t.props.onChange)("outdent")},t}return t=i,(e=[{key:"renderInFlatList",value:function(){var t=this.props,e=t.config,n=t.currentState.listType,o=t.translations,i=t.indentDisabled,c=t.outdentDisabled,a=e.options,l=e.unordered,s=e.ordered,p=e.indent,d=e.outdent,f=e.className;return r.a.createElement("div",{className:u()("rdw-list-wrapper",f),"aria-label":"rdw-list-control"},0<=a.indexOf("unordered")&&r.a.createElement(z,{value:"unordered",onClick:this.toggleBlockType,className:u()(l.className),active:"unordered"===n,title:l.title||o["components.controls.list.unordered"]},r.a.createElement("img",{src:l.icon,alt:""})),0<=a.indexOf("ordered")&&r.a.createElement(z,{value:"ordered",onClick:this.toggleBlockType,className:u()(s.className),active:"ordered"===n,title:s.title||o["components.controls.list.ordered"]},r.a.createElement("img",{src:s.icon,alt:""})),0<=a.indexOf("indent")&&r.a.createElement(z,{onClick:this.indent,disabled:i,className:u()(p.className),title:p.title||o["components.controls.list.indent"]},r.a.createElement("img",{src:p.icon,alt:""})),0<=a.indexOf("outdent")&&r.a.createElement(z,{onClick:this.outdent,disabled:c,className:u()(d.className),title:d.title||o["components.controls.list.outdent"]},r.a.createElement("img",{src:d.icon,alt:""})))}},{key:"renderInDropDown",value:function(){var t=this,e=this.props,n=e.config,o=e.expanded,i=e.doCollapse,c=e.doExpand,a=e.onExpandEvent,l=e.onChange,s=e.currentState.listType,p=e.translations,d=n.options,f=n.className,y=n.dropdownClassName,m=n.title;return r.a.createElement(B,{className:u()("rdw-list-dropdown",f),optionWrapperClassName:u()(y),onChange:l,expanded:o,doExpand:c,doCollapse:i,onExpandEvent:a,"aria-label":"rdw-list-control",title:m||p["components.controls.list.list"]},r.a.createElement("img",{src:w(n),alt:""}),this.options.filter((function(t){return 0<=d.indexOf(t)})).map((function(e,o){return r.a.createElement(G,{key:o,value:e,disabled:t.props["".concat(e,"Disabled")],className:u()("rdw-list-dropdownOption",n[e].className),active:s===e,title:n[e].title||p["components.controls.list.".concat(e)]},r.a.createElement("img",{src:n[e].icon,alt:""}))})))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&Pt(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();function Ft(t){return(Ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Yt(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function Ht(t,e){return(Ht=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Qt(t){return(Qt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Bt.propTypes={expanded:c.a.bool,doExpand:c.a.func,doCollapse:c.a.func,onExpandEvent:c.a.func,config:c.a.object,onChange:c.a.func,currentState:c.a.object,translations:c.a.object,indentDisabled:c.a.bool,outdentDisabled:c.a.bool};var Zt=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ht(t,e)}(i,o.Component);var t,e,n=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=Qt(t);if(e){var r=Qt(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return function(t,e){if(e&&("object"===Ft(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}(i);function i(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=n.call(this,t)).onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.onChange=function(t){"unordered"===t?e.toggleBlockType("unordered-list-item"):"ordered"===t?e.toggleBlockType("ordered-list-item"):"indent"===t?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(t){var n=e.props,o=n.onChange,r=n.editorState,i=a.RichUtils.toggleBlockType(r,t);i&&o(i)},e.adjustDepth=function(t){var n=e.props,o=n.onChange,r=n.editorState,i=Object(l.changeDepth)(r,t,4);i&&o(i)},e.isIndentDisabled=function(){var t=e.props.editorState,n=e.state.currentBlock,o=Object(l.getBlockBeforeSelectedBlock)(t);return!o||!Object(l.isListBlock)(n)||o.get("type")!==n.get("type")||o.get("depth")<n.get("depth")},e.isOutdentDisabled=function(){var t=e.state.currentBlock;return!t||!Object(l.isListBlock)(t)||t.get("depth")<=0};var o=e.props,r=o.editorState,c=o.modalHandler;return e.state={expanded:!1,currentBlock:r?Object(l.getSelectedBlock)(r):void 0},c.registerCallBack(e.expandCollapse),e}return t=i,(e=[{key:"componentDidUpdate",value:function(t){var e=this.props.editorState;e&&e!==t.editorState&&this.setState({currentBlock:Object(l.getSelectedBlock)(e)})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t,e=this.props,n=e.config,o=e.translations,i=this.state,c=i.expanded,a=i.currentBlock,l=n.component||Bt;"unordered-list-item"===a.get("type")?t="unordered":"ordered-list-item"===a.get("type")&&(t="ordered");var s=this.isIndentDisabled(),u=this.isOutdentDisabled();return r.a.createElement(l,{config:n,translations:o,currentState:{listType:t},expanded:c,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.onChange,indentDisabled:s,outdentDisabled:u})}}])&&Yt(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();function Gt(t){return(Gt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Wt(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function Jt(t,e){return(Jt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Vt(t){return(Vt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Zt.propTypes={onChange:c.a.func.isRequired,editorState:c.a.object.isRequired,modalHandler:c.a.object,config:c.a.object,translations:c.a.object},n(19);var Kt=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Jt(t,e)}(i,o.Component);var t,e,n=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=Vt(t);if(e){var r=Vt(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return function(t,e){if(e&&("object"===Gt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}(i);function i(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),n.apply(this,arguments)}return t=i,(e=[{key:"renderInFlatList",value:function(){var t=this.props,e=t.config,n=e.options,o=e.left,i=e.center,c=e.right,a=e.justify,l=e.className,s=t.onChange,p=t.currentState.textAlignment,d=t.translations;return r.a.createElement("div",{className:u()("rdw-text-align-wrapper",l),"aria-label":"rdw-textalign-control"},0<=n.indexOf("left")&&r.a.createElement(z,{value:"left",className:u()(o.className),active:"left"===p,onClick:s,title:o.title||d["components.controls.textalign.left"]},r.a.createElement("img",{src:o.icon,alt:""})),0<=n.indexOf("center")&&r.a.createElement(z,{value:"center",className:u()(i.className),active:"center"===p,onClick:s,title:i.title||d["components.controls.textalign.center"]},r.a.createElement("img",{src:i.icon,alt:""})),0<=n.indexOf("right")&&r.a.createElement(z,{value:"right",className:u()(c.className),active:"right"===p,onClick:s,title:c.title||d["components.controls.textalign.right"]},r.a.createElement("img",{src:c.icon,alt:""})),0<=n.indexOf("justify")&&r.a.createElement(z,{value:"justify",className:u()(a.className),active:"justify"===p,onClick:s,title:a.title||d["components.controls.textalign.justify"]},r.a.createElement("img",{src:a.icon,alt:""})))}},{key:"renderInDropDown",value:function(){var t=this.props,e=t.config,n=t.expanded,o=t.doExpand,i=t.onExpandEvent,c=t.doCollapse,a=t.currentState.textAlignment,l=t.onChange,s=t.translations,p=e.options,d=e.left,f=e.center,y=e.right,m=e.justify,g=e.className,h=e.dropdownClassName,b=e.title;return r.a.createElement(B,{className:u()("rdw-text-align-dropdown",g),optionWrapperClassName:u()(h),onChange:l,expanded:n,doExpand:o,doCollapse:c,onExpandEvent:i,"aria-label":"rdw-textalign-control",title:b||s["components.controls.textalign.textalign"]},r.a.createElement("img",{src:a&&e[a]&&e[a].icon||w(e),alt:""}),0<=p.indexOf("left")&&r.a.createElement(G,{value:"left",active:"left"===a,className:u()("rdw-text-align-dropdownOption",d.className),title:d.title||s["components.controls.textalign.left"]},r.a.createElement("img",{src:d.icon,alt:""})),0<=p.indexOf("center")&&r.a.createElement(G,{value:"center",active:"center"===a,className:u()("rdw-text-align-dropdownOption",f.className),title:f.title||s["components.controls.textalign.center"]},r.a.createElement("img",{src:f.icon,alt:""})),0<=p.indexOf("right")&&r.a.createElement(G,{value:"right",active:"right"===a,className:u()("rdw-text-align-dropdownOption",y.className),title:y.title||s["components.controls.textalign.right"]},r.a.createElement("img",{src:y.icon,alt:""})),0<=p.indexOf("justify")&&r.a.createElement(G,{value:"justify",active:"justify"===a,className:u()("rdw-text-align-dropdownOption",m.className),title:m.title||s["components.controls.textalign.justify"]},r.a.createElement("img",{src:m.icon,alt:""})))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&Wt(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();function qt(t){return(qt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Xt(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function $t(t,e){return($t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function te(t){return(te=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Kt.propTypes={expanded:c.a.bool,doExpand:c.a.func,doCollapse:c.a.func,onExpandEvent:c.a.func,config:c.a.object,onChange:c.a.func,currentState:c.a.object,translations:c.a.object};var ee=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&$t(t,e)}(i,o.Component);var t,e,n=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=te(t);if(e){var r=te(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return function(t,e){if(e&&("object"===qt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}(i);function i(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=n.call(this,t)).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(t){var n=e.props,o=n.editorState;(0,n.onChange)(e.state.currentTextAlignment!==t?Object(l.setBlockData)(o,{"text-align":t}):Object(l.setBlockData)(o,{"text-align":void 0}))};var o=e.props.modalHandler;return e.state={currentTextAlignment:void 0},o.registerCallBack(e.expandCollapse),e}return t=i,(e=[{key:"componentDidUpdate",value:function(t){var e=this.props.editorState;e!==t.editorState&&this.setState({currentTextAlignment:Object(l.getSelectedBlocksMetadata)(e).get("text-align")})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,o=this.state,i=o.expanded,c=o.currentTextAlignment,a=e.component||Kt;return r.a.createElement(a,{config:e,translations:n,expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,currentState:{textAlignment:c},onChange:this.addBlockAlignmentData})}}])&&Xt(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();function ne(t){return(ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function oe(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function re(t,e){return(re=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function ie(t){return(ie=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}ee.propTypes={editorState:c.a.object.isRequired,onChange:c.a.func.isRequired,modalHandler:c.a.object,config:c.a.object,translations:c.a.object},n(20);var ce=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&re(t,e)}(i,o.Component);var t,e,n=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=ie(t);if(e){var r=ie(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return function(t,e){if(e&&("object"===ne(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,o=new Array(e),c=0;c<e;c++)o[c]=arguments[c];return(t=n.call.apply(n,[this].concat(o))).state={currentStyle:"color"},t.onChange=function(e){(0,t.props.onChange)(t.state.currentStyle,e)},t.setCurrentStyleColor=function(){t.setState({currentStyle:"color"})},t.setCurrentStyleBgcolor=function(){t.setState({currentStyle:"bgcolor"})},t.renderModal=function(){var e=t.props,n=e.config,o=n.popupClassName,i=n.colors,c=e.currentState,a=c.color,l=c.bgColor,s=e.translations,p=t.state.currentStyle,d="color"===p?a:l;return r.a.createElement("div",{className:u()("rdw-colorpicker-modal",o),onClick:S},r.a.createElement("span",{className:"rdw-colorpicker-modal-header"},r.a.createElement("span",{className:u()("rdw-colorpicker-modal-style-label",{"rdw-colorpicker-modal-style-label-active":"color"===p}),onClick:t.setCurrentStyleColor},s["components.controls.colorpicker.text"]),r.a.createElement("span",{className:u()("rdw-colorpicker-modal-style-label",{"rdw-colorpicker-modal-style-label-active":"bgcolor"===p}),onClick:t.setCurrentStyleBgcolor},s["components.controls.colorpicker.background"])),r.a.createElement("span",{className:"rdw-colorpicker-modal-options"},i.map((function(e,n){return r.a.createElement(z,{value:e,key:n,className:"rdw-colorpicker-option",activeClassName:"rdw-colorpicker-option-active",active:d===e,onClick:t.onChange},r.a.createElement("span",{style:{backgroundColor:e},className:"rdw-colorpicker-cube"}))}))))},t}return t=i,(e=[{key:"componentDidUpdate",value:function(t){this.props.expanded&&!t.expanded&&this.setState({currentStyle:"color"})}},{key:"render",value:function(){var t=this.props,e=t.config,n=e.icon,o=e.className,i=e.title,c=t.expanded,a=t.onExpandEvent,l=t.translations;return r.a.createElement("div",{className:"rdw-colorpicker-wrapper","aria-haspopup":"true","aria-expanded":c,"aria-label":"rdw-color-picker",title:i||l["components.controls.colorpicker.colorpicker"]},r.a.createElement(z,{onClick:a,className:u()(o)},r.a.createElement("img",{src:n,alt:""})),c?this.renderModal():void 0)}}])&&oe(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();ce.propTypes={expanded:c.a.bool,onExpandEvent:c.a.func,onChange:c.a.func,config:c.a.object,currentState:c.a.object,translations:c.a.object};var ae=ce;function le(t){return(le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function se(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function ue(t,e){return(ue=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function pe(t){return(pe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var de=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ue(t,e)}(i,o.Component);var t,e,n=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=pe(t);if(e){var r=pe(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return function(t,e){if(e&&("object"===le(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}(i);function i(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=n.call(this,t)).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(t,n){var o=e.props,r=o.editorState,i=o.onChange,c=Object(l.toggleCustomInlineStyle)(r,t,n);c&&i(c),e.doCollapse()};var o=t.editorState,r=t.modalHandler,c={expanded:!1,currentColor:void 0,currentBgColor:void 0};return o&&(c.currentColor=Object(l.getSelectionCustomInlineStyle)(o,["COLOR"]).COLOR,c.currentBgColor=Object(l.getSelectionCustomInlineStyle)(o,["BGCOLOR"]).BGCOLOR),e.state=c,r.registerCallBack(e.expandCollapse),e}return t=i,(e=[{key:"componentDidUpdate",value:function(t){var e=this.props.editorState;e&&e!==t.editorState&&this.setState({currentColor:Object(l.getSelectionCustomInlineStyle)(e,["COLOR"]).COLOR,currentBgColor:Object(l.getSelectionCustomInlineStyle)(e,["BGCOLOR"]).BGCOLOR})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,o=this.state,i=o.currentColor,c=o.currentBgColor,a=o.expanded,l=e.component||ae,s=i&&i.substring(6),u=c&&c.substring(8);return r.a.createElement(l,{config:e,translations:n,onChange:this.toggleColor,expanded:a,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,currentState:{color:s,bgColor:u}})}}])&&se(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();de.propTypes={onChange:c.a.func.isRequired,editorState:c.a.object.isRequired,modalHandler:c.a.object,config:c.a.object,translations:c.a.object};var fe=de,ye=n(7),me=n.n(ye);function ge(t){return(ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function he(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function be(t,e){return(be=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Me(t){return(Me=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n(26);var je=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&be(t,e)}(i,o.Component);var t,e,n=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=Me(t);if(e){var r=Me(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return function(t,e){if(e&&("object"===ge(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];return(t=n.call.apply(n,[this].concat(o))).state={showModal:!1,linkTarget:"",linkTitle:"",linkTargetOption:t.props.config.defaultTargetOption},t.removeLink=function(){(0,t.props.onChange)("unlink")},t.addLink=function(){var e=t.props.onChange,n=t.state;e("link",n.linkTitle,n.linkTarget,n.linkTargetOption)},t.updateValue=function(e){var n,o,r;t.setState((n={},o="".concat(e.target.name),r=e.target.value,o in n?Object.defineProperty(n,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[o]=r,n))},t.updateTargetOption=function(e){t.setState({linkTargetOption:e.target.checked?"_blank":"_self"})},t.hideModal=function(){t.setState({showModal:!1})},t.signalExpandShowModal=function(){var e=t.props,n=e.onExpandEvent,o=e.currentState,r=o.link,i=o.selectionText,c=t.state.linkTargetOption;n(),t.setState({showModal:!0,linkTarget:r&&r.target||"",linkTargetOption:r&&r.targetOption||c,linkTitle:r&&r.title||i})},t.forceExpandAndShowModal=function(){var e=t.props,n=e.doExpand,o=e.currentState,r=o.link,i=o.selectionText,c=t.state.linkTargetOption;n(),t.setState({showModal:!0,linkTarget:r&&r.target,linkTargetOption:r&&r.targetOption||c,linkTitle:r&&r.title||i})},t}return t=i,(e=[{key:"componentDidUpdate",value:function(t){t.expanded&&!this.props.expanded&&this.setState({showModal:!1,linkTarget:"",linkTitle:"",linkTargetOption:this.props.config.defaultTargetOption})}},{key:"renderAddLinkModal",value:function(){var t=this.props,e=t.config.popupClassName,n=t.doCollapse,o=t.translations,i=this.state,c=i.linkTitle,a=i.linkTarget,l=i.linkTargetOption;return r.a.createElement("div",{className:u()("rdw-link-modal",e),onClick:S},r.a.createElement("label",{className:"rdw-link-modal-label",htmlFor:"linkTitle"},o["components.controls.link.linkTitle"]),r.a.createElement("input",{id:"linkTitle",className:"rdw-link-modal-input",onChange:this.updateValue,onBlur:this.updateValue,name:"linkTitle",value:c}),r.a.createElement("label",{className:"rdw-link-modal-label",htmlFor:"linkTarget"},o["components.controls.link.linkTarget"]),r.a.createElement("input",{id:"linkTarget",className:"rdw-link-modal-input",onChange:this.updateValue,onBlur:this.updateValue,name:"linkTarget",value:a}),r.a.createElement("label",{className:"rdw-link-modal-target-option",htmlFor:"openLinkInNewWindow"},r.a.createElement("input",{id:"openLinkInNewWindow",type:"checkbox",defaultChecked:"_blank"===l,value:"_blank",onChange:this.updateTargetOption}),r.a.createElement("span",null,o["components.controls.link.linkTargetOption"])),r.a.createElement("span",{className:"rdw-link-modal-buttonsection"},r.a.createElement("button",{className:"rdw-link-modal-btn",onClick:this.addLink,disabled:!a||!c},o["generic.add"]),r.a.createElement("button",{className:"rdw-link-modal-btn",onClick:n},o["generic.cancel"])))}},{key:"renderInFlatList",value:function(){var t=this.props,e=t.config,n=e.options,o=e.link,i=e.unlink,c=e.className,a=t.currentState,l=t.expanded,s=t.translations,p=this.state.showModal;return r.a.createElement("div",{className:u()("rdw-link-wrapper",c),"aria-label":"rdw-link-control"},0<=n.indexOf("link")&&r.a.createElement(z,{value:"unordered-list-item",className:u()(o.className),onClick:this.signalExpandShowModal,"aria-haspopup":"true","aria-expanded":p,title:o.title||s["components.controls.link.link"]},r.a.createElement("img",{src:o.icon,alt:""})),0<=n.indexOf("unlink")&&r.a.createElement(z,{disabled:!a.link,value:"ordered-list-item",className:u()(i.className),onClick:this.removeLink,title:i.title||s["components.controls.link.unlink"]},r.a.createElement("img",{src:i.icon,alt:""})),l&&p?this.renderAddLinkModal():void 0)}},{key:"renderInDropDown",value:function(){var t=this.props,e=t.expanded,n=t.onExpandEvent,o=t.doCollapse,i=t.doExpand,c=t.onChange,a=t.config,l=t.currentState,s=t.translations,p=a.options,d=a.link,f=a.unlink,y=a.className,m=a.dropdownClassName,g=a.title,h=this.state.showModal;return r.a.createElement("div",{className:"rdw-link-wrapper","aria-haspopup":"true","aria-label":"rdw-link-control","aria-expanded":e,title:g},r.a.createElement(B,{className:u()("rdw-link-dropdown",y),optionWrapperClassName:u()(m),onChange:c,expanded:e&&!h,doExpand:i,doCollapse:o,onExpandEvent:n},r.a.createElement("img",{src:w(a),alt:""}),0<=p.indexOf("link")&&r.a.createElement(G,{onClick:this.forceExpandAndShowModal,className:u()("rdw-link-dropdownoption",d.className),title:d.title||s["components.controls.link.link"]},r.a.createElement("img",{src:d.icon,alt:""})),0<=p.indexOf("unlink")&&r.a.createElement(G,{onClick:this.removeLink,disabled:!l.link,className:u()("rdw-link-dropdownoption",f.className),title:f.title||s["components.controls.link.unlink"]},r.a.createElement("img",{src:f.icon,alt:""}))),e&&h?this.renderAddLinkModal():void 0)}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&he(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();je.propTypes={expanded:c.a.bool,doExpand:c.a.func,doCollapse:c.a.func,onExpandEvent:c.a.func,config:c.a.object,onChange:c.a.func,currentState:c.a.object,translations:c.a.object};var ve=je;function Ee(t){return(Ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ne(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function Se(t,e){return(Se=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function we(t){return(we=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Le(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function Ce(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Le(Object(n),!0).forEach((function(e){ke(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Le(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ke(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function De(t){var e=Oe.match(t.target);return Ce(Ce({},t),{},{target:e&&e[0]&&e[0].url||t.target})}var Oe=me()(),xe=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Se(t,e)}(i,o.Component);var t,e,n=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=we(t);if(e){var r=we(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return function(t,e){if(e&&("object"===Ee(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}(i);function i(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=n.call(this,t)).onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.onChange=function(t,n,o,r){var i=e.props.config.linkCallback;if("link"===t){var c=(i||De)({title:n,target:o,targetOption:r});e.addLink(c.title,c.target,c.targetOption)}else e.removeLink()},e.getCurrentValues=function(){var t=e.props.editorState,n=e.state.currentEntity,o=t.getCurrentContent(),r={};if(n&&"LINK"===o.getEntity(n).get("type")){r.link={};var i=n&&Object(l.getEntityRange)(t,n);r.link.target=n&&o.getEntity(n).get("data").url,r.link.targetOption=n&&o.getEntity(n).get("data").targetOption,r.link.title=i&&i.text}return r.selectionText=Object(l.getSelectionText)(t),r},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 t=e.props,n=t.editorState,o=t.onChange,r=e.state.currentEntity,i=n.getSelection();if(r){var c=Object(l.getEntityRange)(n,r);i=i.getIsBackward()?i.merge({anchorOffset:c.end,focusOffset:c.start}):i.merge({anchorOffset:c.start,focusOffset:c.end}),o(a.RichUtils.toggleLink(n,i,null))}},e.addLink=function(t,n,o){var r=e.props,i=r.editorState,c=r.onChange,s=e.state.currentEntity,u=i.getSelection();if(s){var p=Object(l.getEntityRange)(i,s);u=u.getIsBackward()?u.merge({anchorOffset:p.end,focusOffset:p.start}):u.merge({anchorOffset:p.start,focusOffset:p.end})}var d=i.getCurrentContent().createEntity("LINK","MUTABLE",{url:n,targetOption:o}).getLastCreatedEntityKey(),f=a.Modifier.replaceText(i.getCurrentContent(),u,"".concat(t),i.getCurrentInlineStyle(),d),y=a.EditorState.push(i,f,"insert-characters");u=y.getSelection().merge({anchorOffset:u.get("anchorOffset")+t.length,focusOffset:u.get("anchorOffset")+t.length}),y=a.EditorState.acceptSelection(y,u),f=a.Modifier.insertText(y.getCurrentContent(),u," ",y.getCurrentInlineStyle(),void 0),c(a.EditorState.push(y,f,"insert-characters")),e.doCollapse()};var o=e.props,r=o.editorState,c=o.modalHandler;return e.state={expanded:!1,link:void 0,selectionText:void 0,currentEntity:r?Object(l.getSelectionEntity)(r):void 0},c.registerCallBack(e.expandCollapse),e}return t=i,(e=[{key:"componentDidUpdate",value:function(t){var e=this.props.editorState;e&&e!==t.editorState&&this.setState({currentEntity:Object(l.getSelectionEntity)(e)})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,o=this.state.expanded,i=this.getCurrentValues(),c=i.link,a=i.selectionText,l=e.component||ve;return r.a.createElement(l,{config:e,translations:n,expanded:o,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,currentState:{link:c,selectionText:a},onChange:this.onChange})}}])&&Ne(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();xe.propTypes={editorState:c.a.object.isRequired,onChange:c.a.func.isRequired,modalHandler:c.a.object,config:c.a.object,translations:c.a.object};var Ie=xe;function Te(t){return(Te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ae(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function ze(t,e){return(ze=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function _e(t){return(_e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n(27);var Pe=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ze(t,e)}(i,o.Component);var t,e,n=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=_e(t);if(e){var r=_e(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return function(t,e){if(e&&("object"===Te(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];return(t=n.call.apply(n,[this].concat(o))).state={embeddedLink:"",height:t.props.config.defaultSize.height,width:t.props.config.defaultSize.width},t.onChange=function(){var e=t.props.onChange,n=t.state;e(n.embeddedLink,n.height,n.width)},t.updateValue=function(e){var n,o,r;t.setState((n={},o="".concat(e.target.name),r=e.target.value,o in n?Object.defineProperty(n,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[o]=r,n))},t}return t=i,(e=[{key:"componentDidUpdate",value:function(t){var e=this.props,n=e.expanded,o=e.config;if(!n&&t.expanded){var r=o.defaultSize,i=r.height,c=r.width;this.setState({embeddedLink:"",height:i,width:c})}}},{key:"rendeEmbeddedLinkModal",value:function(){var t=this.state,e=t.embeddedLink,n=t.height,o=t.width,i=this.props,c=i.config.popupClassName,a=i.doCollapse,l=i.translations;return r.a.createElement("div",{className:u()("rdw-embedded-modal",c),onClick:S},r.a.createElement("div",{className:"rdw-embedded-modal-header"},r.a.createElement("span",{className:"rdw-embedded-modal-header-option"},l["components.controls.embedded.embeddedlink"],r.a.createElement("span",{className:"rdw-embedded-modal-header-label"}))),r.a.createElement("div",{className:"rdw-embedded-modal-link-section"},r.a.createElement("span",{className:"rdw-embedded-modal-link-input-wrapper"},r.a.createElement("input",{className:"rdw-embedded-modal-link-input",placeholder:l["components.controls.embedded.enterlink"],onChange:this.updateValue,onBlur:this.updateValue,value:e,name:"embeddedLink"}),r.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),r.a.createElement("div",{className:"rdw-embedded-modal-size"},r.a.createElement("span",null,r.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:n,name:"height",className:"rdw-embedded-modal-size-input",placeholder:"Height"}),r.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),r.a.createElement("span",null,r.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:o,name:"width",className:"rdw-embedded-modal-size-input",placeholder:"Width"}),r.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")))),r.a.createElement("span",{className:"rdw-embedded-modal-btn-section"},r.a.createElement("button",{type:"button",className:"rdw-embedded-modal-btn",onClick:this.onChange,disabled:!e||!n||!o},l["generic.add"]),r.a.createElement("button",{type:"button",className:"rdw-embedded-modal-btn",onClick:a},l["generic.cancel"])))}},{key:"render",value:function(){var t=this.props,e=t.config,n=e.icon,o=e.className,i=e.title,c=t.expanded,a=t.onExpandEvent,l=t.translations;return r.a.createElement("div",{className:"rdw-embedded-wrapper","aria-haspopup":"true","aria-expanded":c,"aria-label":"rdw-embedded-control"},r.a.createElement(z,{className:u()(o),value:"unordered-list-item",onClick:a,title:i||l["components.controls.embedded.embedded"]},r.a.createElement("img",{src:n,alt:""})),c?this.rendeEmbeddedLinkModal():void 0)}}])&&Ae(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();Pe.propTypes={expanded:c.a.bool,onExpandEvent:c.a.func,onChange:c.a.func,config:c.a.object,translations:c.a.object,doCollapse:c.a.func};var Re=Pe;function Ue(t){return(Ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Be(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function Fe(t,e){return(Fe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Ye(t){return(Ye=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var He=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Fe(t,e)}(i,o.Component);var t,e,n=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=Ye(t);if(e){var r=Ye(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return function(t,e){if(e&&("object"===Ue(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];return(t=n.call.apply(n,[this].concat(o))).state={expanded:!1},t.onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t.addEmbeddedLink=function(e,n,o){var r=t.props,i=r.editorState,c=r.onChange,l=r.config.embedCallback,s=l?l(e):e,u=i.getCurrentContent().createEntity("EMBEDDED_LINK","MUTABLE",{src:s,height:n,width:o}).getLastCreatedEntityKey();c(a.AtomicBlockUtils.insertAtomicBlock(i,u," ")),t.doCollapse()},t}return t=i,(e=[{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 t=this.props,e=t.config,n=t.translations,o=this.state.expanded,i=e.component||Re;return r.a.createElement(i,{config:e,translations:n,onChange:this.addEmbeddedLink,expanded:o,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&Be(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();He.propTypes={editorState:c.a.object.isRequired,onChange:c.a.func.isRequired,modalHandler:c.a.object,config:c.a.object,translations:c.a.object};var Qe=He;function Ze(t){return(Ze="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ge(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function We(t,e){return(We=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Je(t){return(Je=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n(28);var Ve=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&We(t,e)}(i,o.Component);var t,e,n=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=Je(t);if(e){var r=Je(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return function(t,e){if(e&&("object"===Ze(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];return(t=n.call.apply(n,[this].concat(o))).onChange=function(e){(0,t.props.onChange)(e.target.innerHTML)},t}return t=i,(e=[{key:"renderEmojiModal",value:function(){var t=this,e=this.props.config,n=e.popupClassName,o=e.emojis;return r.a.createElement("div",{className:u()("rdw-emoji-modal",n),onClick:S},o.map((function(e,n){return r.a.createElement("span",{key:n,className:"rdw-emoji-icon",alt:"",onClick:t.onChange},e)})))}},{key:"render",value:function(){var t=this.props,e=t.config,n=e.icon,o=e.className,i=e.title,c=t.expanded,a=t.onExpandEvent,l=t.translations;return r.a.createElement("div",{className:"rdw-emoji-wrapper","aria-haspopup":"true","aria-label":"rdw-emoji-control","aria-expanded":c,title:i||l["components.controls.emoji.emoji"]},r.a.createElement(z,{className:u()(o),value:"unordered-list-item",onClick:a},r.a.createElement("img",{src:n,alt:""})),c?this.renderEmojiModal():void 0)}}])&&Ge(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();Ve.propTypes={expanded:c.a.bool,onExpandEvent:c.a.func,onChange:c.a.func,config:c.a.object,translations:c.a.object};var Ke=Ve;function qe(t){return(qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Xe(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function $e(t,e){return($e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function tn(t){return(tn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var en=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&$e(t,e)}(i,o.Component);var t,e,n=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=tn(t);if(e){var r=tn(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return function(t,e){if(e&&("object"===qe(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];return(t=n.call.apply(n,[this].concat(o))).state={expanded:!1},t.onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t.addEmoji=function(e){var n=t.props,o=n.editorState,r=n.onChange,i=a.Modifier.replaceText(o.getCurrentContent(),o.getSelection(),e,o.getCurrentInlineStyle());r(a.EditorState.push(o,i,"insert-characters")),t.doCollapse()},t}return t=i,(e=[{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 t=this.props,e=t.config,n=t.translations,o=this.state.expanded,i=e.component||Ke;return r.a.createElement(i,{config:e,translations:n,onChange:this.addEmoji,expanded:o,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onCollpase:this.closeModal})}}])&&Xe(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();function nn(){return r.a.createElement("div",{className:"rdw-spinner"},r.a.createElement("div",{className:"rdw-bounce1"}),r.a.createElement("div",{className:"rdw-bounce2"}),r.a.createElement("div",{className:"rdw-bounce3"}))}function on(t){return(on="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function rn(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function cn(t,e){return(cn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function an(t){return(an=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}en.propTypes={editorState:c.a.object.isRequired,onChange:c.a.func.isRequired,modalHandler:c.a.object,config:c.a.object,translations:c.a.object},n(29),n(30);var ln=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&cn(t,e)}(i,o.Component);var t,e,n=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=an(t);if(e){var r=an(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return function(t,e){if(e&&("object"===on(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];return(t=n.call.apply(n,[this].concat(o))).state={imgSrc:"",dragEnter:!1,uploadHighlighted:t.props.config.uploadEnabled&&!!t.props.config.uploadCallback,showImageLoading:!1,height:t.props.config.defaultSize.height,width:t.props.config.defaultSize.width,alt:""},t.onDragEnter=function(e){t.stopPropagation(e),t.setState({dragEnter:!0})},t.onImageDrop=function(e){var n,o;e.preventDefault(),e.stopPropagation(),t.setState({dragEnter:!1}),o=e.dataTransfer.items?(n=e.dataTransfer.items,!0):(n=e.dataTransfer.files,!1);for(var r=0;r<n.length;r+=1)if((!o||"file"===n[r].kind)&&n[r].type.match("^image/")){var i=o?n[r].getAsFile():n[r];t.uploadImage(i)}},t.showImageUploadOption=function(){t.setState({uploadHighlighted:!0})},t.addImageFromState=function(){var e=t.state,n=e.imgSrc,o=e.alt,r=t.state,i=r.height,c=r.width,a=t.props.onChange;isNaN(i)||(i+="px"),isNaN(c)||(c+="px"),a(n,i,c,o)},t.showImageURLOption=function(){t.setState({uploadHighlighted:!1})},t.toggleShowImageLoading=function(){var e=!t.state.showImageLoading;t.setState({showImageLoading:e})},t.updateValue=function(e){var n,o,r;t.setState((n={},o="".concat(e.target.name),r=e.target.value,o in n?Object.defineProperty(n,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[o]=r,n))},t.selectImage=function(e){e.target.files&&0<e.target.files.length&&t.uploadImage(e.target.files[0])},t.uploadImage=function(e){t.toggleShowImageLoading(),(0,t.props.config.uploadCallback)(e).then((function(e){var n=e.data;t.setState({showImageLoading:!1,dragEnter:!1,imgSrc:n.link||n.url}),t.fileUpload=!1})).catch((function(){t.setState({showImageLoading:!1,dragEnter:!1})}))},t.fileUploadClick=function(e){t.fileUpload=!0,e.stopPropagation()},t.stopPropagation=function(e){t.fileUpload?t.fileUpload=!1:(e.preventDefault(),e.stopPropagation())},t}return t=i,(e=[{key:"componentDidUpdate",value:function(t){var e=this.props.config;t.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===t.config.uploadCallback&&e.uploadEnabled===t.config.uploadEnabled||this.setState({uploadHighlighted:e.uploadEnabled&&!!e.uploadCallback})}},{key:"renderAddImageModal",value:function(){var t=this.state,e=t.imgSrc,n=t.uploadHighlighted,o=t.showImageLoading,i=t.dragEnter,c=t.height,a=t.width,l=t.alt,s=this.props,p=s.config,d=p.popupClassName,f=p.uploadCallback,y=p.uploadEnabled,m=p.urlEnabled,g=p.previewImage,h=p.inputAccept,b=p.alt,M=s.doCollapse,j=s.translations;return r.a.createElement("div",{className:u()("rdw-image-modal",d),onClick:this.stopPropagation},r.a.createElement("div",{className:"rdw-image-modal-header"},y&&f&&r.a.createElement("span",{onClick:this.showImageUploadOption,className:"rdw-image-modal-header-option"},j["components.controls.image.fileUpload"],r.a.createElement("span",{className:u()("rdw-image-modal-header-label",{"rdw-image-modal-header-label-highlighted":n})})),m&&r.a.createElement("span",{onClick:this.showImageURLOption,className:"rdw-image-modal-header-option"},j["components.controls.image.byURL"],r.a.createElement("span",{className:u()("rdw-image-modal-header-label",{"rdw-image-modal-header-label-highlighted":!n})}))),n?r.a.createElement("div",{onClick:this.fileUploadClick},r.a.createElement("div",{onDragEnter:this.onDragEnter,onDragOver:this.stopPropagation,onDrop:this.onImageDrop,className:u()("rdw-image-modal-upload-option",{"rdw-image-modal-upload-option-highlighted":i})},r.a.createElement("label",{htmlFor:"file",className:"rdw-image-modal-upload-option-label"},g&&e?r.a.createElement("img",{src:e,alt:e,className:"rdw-image-modal-upload-option-image-preview"}):e||j["components.controls.image.dropFileText"])),r.a.createElement("input",{type:"file",id:"file",accept:h,onChange:this.selectImage,className:"rdw-image-modal-upload-option-input"})):r.a.createElement("div",{className:"rdw-image-modal-url-section"},r.a.createElement("input",{className:"rdw-image-modal-url-input",placeholder:j["components.controls.image.enterlink"],name:"imgSrc",onChange:this.updateValue,onBlur:this.updateValue,value:e}),r.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),b.present&&r.a.createElement("div",{className:"rdw-image-modal-size"},r.a.createElement("span",{className:"rdw-image-modal-alt-lbl"},"Alt Text"),r.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:l,name:"alt",className:"rdw-image-modal-alt-input",placeholder:"alt"}),r.a.createElement("span",{className:"rdw-image-mandatory-sign"},b.mandatory&&"*")),r.a.createElement("div",{className:"rdw-image-modal-size"},"↕ ",r.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:c,name:"height",className:"rdw-image-modal-size-input",placeholder:"Height"}),r.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")," ↔ ",r.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:a,name:"width",className:"rdw-image-modal-size-input",placeholder:"Width"}),r.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),r.a.createElement("span",{className:"rdw-image-modal-btn-section"},r.a.createElement("button",{className:"rdw-image-modal-btn",onClick:this.addImageFromState,disabled:!e||!c||!a||b.mandatory&&!l},j["generic.add"]),r.a.createElement("button",{className:"rdw-image-modal-btn",onClick:M},j["generic.cancel"])),o?r.a.createElement("div",{className:"rdw-image-modal-spinner"},r.a.createElement(nn,null)):void 0)}},{key:"render",value:function(){var t=this.props,e=t.config,n=e.icon,o=e.className,i=e.title,c=t.expanded,a=t.onExpandEvent,l=t.translations;return r.a.createElement("div",{className:"rdw-image-wrapper","aria-haspopup":"true","aria-expanded":c,"aria-label":"rdw-image-control"},r.a.createElement(z,{className:u()(o),value:"unordered-list-item",onClick:a,title:i||l["components.controls.image.image"]},r.a.createElement("img",{src:n,alt:""})),c?this.renderAddImageModal():void 0)}}])&&rn(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();ln.propTypes={expanded:c.a.bool,onExpandEvent:c.a.func,doCollapse:c.a.func,onChange:c.a.func,config:c.a.object,translations:c.a.object};var sn=ln;function un(t){return(un="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function pn(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function dn(t,e){return(dn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function fn(t){return(fn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var yn=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&dn(t,e)}(i,o.Component);var t,e,n=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=fn(t);if(e){var r=fn(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return function(t,e){if(e&&("object"===un(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}(i);function i(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=n.call(this,t)).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(t,n,o,r){var i=e.props,c=i.editorState,l=i.onChange,s={src:t,height:n,width:o};i.config.alt.present&&(s.alt=r);var u=c.getCurrentContent().createEntity("IMAGE","MUTABLE",s).getLastCreatedEntityKey();l(a.AtomicBlockUtils.insertAtomicBlock(c,u," ")),e.doCollapse()};var o=e.props.modalHandler;return e.state={expanded:!1},o.registerCallBack(e.expandCollapse),e}return t=i,(e=[{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,o=this.state.expanded,i=e.component||sn;return r.a.createElement(i,{config:e,translations:n,onChange:this.addImage,expanded:o,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&pn(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();function mn(t){var e=t.config,n=t.onChange,o=t.translations,i=e.icon,c=e.className,a=e.title;return r.a.createElement("div",{className:"rdw-remove-wrapper","aria-label":"rdw-remove-control"},r.a.createElement(z,{className:u()(c),onClick:n,title:a||o["components.controls.remove.remove"]},r.a.createElement("img",{src:i,alt:""})))}yn.propTypes={editorState:c.a.object.isRequired,onChange:c.a.func.isRequired,modalHandler:c.a.object,config:c.a.object,translations:c.a.object};var gn=yn;n(31),mn.propTypes={onChange:c.a.func,config:c.a.object,translations:c.a.object};var hn=mn;function bn(t){return(bn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Mn(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function jn(t,e){return(jn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function vn(t){return(vn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var En=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&jn(t,e)}(i,o.Component);var t,e,n=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=vn(t);if(e){var r=vn(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return function(t,e){if(e&&("object"===bn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];return(t=n.call.apply(n,[this].concat(o))).state={expanded:!1},t.onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.removeInlineStyles=function(){var e=t.props,n=e.editorState;(0,e.onChange)(t.removeAllInlineStyles(n))},t.removeAllInlineStyles=function(t){var e=t.getCurrentContent();return["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","MONOSPACE","SUPERSCRIPT","SUBSCRIPT"].forEach((function(n){e=a.Modifier.removeInlineStyle(e,t.getSelection(),n)})),E(Object(l.getSelectionCustomInlineStyle)(t,["FONTSIZE","FONTFAMILY","COLOR","BGCOLOR"]),(function(n,o){o&&(e=a.Modifier.removeInlineStyle(e,t.getSelection(),o))})),a.EditorState.push(t,e,"change-inline-style")},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t}return t=i,(e=[{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 t=this.props,e=t.config,n=t.translations,o=this.state.expanded,i=e.component||hn;return r.a.createElement(i,{config:e,translations:n,expanded:o,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.removeInlineStyles})}}])&&Mn(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();function Nn(t){return(Nn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Sn(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function wn(t,e){return(wn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Ln(t){return(Ln=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}En.propTypes={onChange:c.a.func.isRequired,editorState:c.a.object.isRequired,config:c.a.object,translations:c.a.object,modalHandler:c.a.object},n(32);var Cn=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&wn(t,e)}(i,o.Component);var t,e,n=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=Ln(t);if(e){var r=Ln(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return function(t,e){if(e&&("object"===Nn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];return(t=n.call.apply(n,[this].concat(o))).onChange=function(e){(0,t.props.onChange)(e)},t}return t=i,(e=[{key:"renderInDropDown",value:function(){var t=this.props,e=t.config,n=t.expanded,o=t.doExpand,i=t.onExpandEvent,c=t.doCollapse,a=t.currentState,l=a.undoDisabled,s=a.redoDisabled,p=t.translations,d=e.options,f=e.undo,y=e.redo,m=e.className,g=e.dropdownClassName,h=e.title;return r.a.createElement(B,{className:u()("rdw-history-dropdown",m),optionWrapperClassName:u()(g),expanded:n,doExpand:o,doCollapse:c,onExpandEvent:i,"aria-label":"rdw-history-control",title:h||p["components.controls.history.history"]},r.a.createElement("img",{src:w(e),alt:""}),0<=d.indexOf("undo")&&r.a.createElement(G,{value:"undo",onClick:this.onChange,disabled:l,className:u()("rdw-history-dropdownoption",f.className),title:f.title||p["components.controls.history.undo"]},r.a.createElement("img",{src:f.icon,alt:""})),0<=d.indexOf("redo")&&r.a.createElement(G,{value:"redo",onClick:this.onChange,disabled:s,className:u()("rdw-history-dropdownoption",y.className),title:y.title||p["components.controls.history.redo"]},r.a.createElement("img",{src:y.icon,alt:""})))}},{key:"renderInFlatList",value:function(){var t=this.props,e=t.config,n=e.options,o=e.undo,i=e.redo,c=e.className,a=t.currentState,l=a.undoDisabled,s=a.redoDisabled,p=t.translations;return r.a.createElement("div",{className:u()("rdw-history-wrapper",c),"aria-label":"rdw-history-control"},0<=n.indexOf("undo")&&r.a.createElement(z,{value:"undo",onClick:this.onChange,className:u()(o.className),disabled:l,title:o.title||p["components.controls.history.undo"]},r.a.createElement("img",{src:o.icon,alt:""})),0<=n.indexOf("redo")&&r.a.createElement(z,{value:"redo",onClick:this.onChange,className:u()(i.className),disabled:s,title:i.title||p["components.controls.history.redo"]},r.a.createElement("img",{src:i.icon,alt:""})))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&Sn(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();function kn(t){return(kn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Dn(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function On(t,e){return(On=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function xn(t){return(xn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Cn.propTypes={expanded:c.a.bool,doExpand:c.a.func,doCollapse:c.a.func,onExpandEvent:c.a.func,config:c.a.object,onChange:c.a.func,currentState:c.a.object,translations:c.a.object};var In=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&On(t,e)}(i,o.Component);var t,e,n=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=xn(t);if(e){var r=xn(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return function(t,e){if(e&&("object"===kn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}(i);function i(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=n.call(this,t)).onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.onChange=function(t){var n=e.props,o=n.editorState,r=n.onChange,i=a.EditorState[t](o);i&&r(i)},e.doExpand=function(){e.setState({expanded:!0})},e.doCollapse=function(){e.setState({expanded:!1})};var o={expanded:!(e.expandCollapse=function(){e.setState({expanded:e.signalExpanded}),e.signalExpanded=!1}),undoDisabled:!1,redoDisabled:!1},r=t.editorState,c=t.modalHandler;return r&&(o.undoDisabled=0===r.getUndoStack().size,o.redoDisabled=0===r.getRedoStack().size),e.state=o,c.registerCallBack(e.expandCollapse),e}return t=i,(e=[{key:"componentDidUpdate",value:function(t){var e=this.props.editorState;e&&t.editorState!==e&&this.setState({undoDisabled:0===e.getUndoStack().size,redoDisabled:0===e.getRedoStack().size})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,o=this.state,i=o.undoDisabled,c=o.redoDisabled,a=o.expanded,l=e.component||Cn;return r.a.createElement(l,{config:e,translations:n,currentState:{undoDisabled:i,redoDisabled:c},expanded:a,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.onChange})}}])&&Dn(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();In.propTypes={onChange:c.a.func.isRequired,editorState:c.a.object,modalHandler:c.a.object,config:c.a.object,translations:c.a.object};var Tn={inline:nt,blockType:yt,fontSize:St,fontFamily:zt,list:Zt,textAlign:ee,colorPicker:fe,link:Ie,embedded:Qe,emoji:en,image:gn,remove:En,history:In},An=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,zn=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i;function _n(t){return String(t).replace(An,"").match(zn)?t:"#"}function Pn(t){return(Pn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Rn(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function Un(t,e){return(Un=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Bn(t){return(Bn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Fn(t,e,n){t.findEntityRanges((function(t){var e=t.getEntity();return null!==e&&"LINK"===n.getEntity(e).getType()}),e)}function Yn(t){var e,n=t.showOpenOptionOnHover;return(e=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Un(t,e)}(c,o.Component);var t,e,i=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=Bn(t);if(e){var r=Bn(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return function(t,e){if(e&&("object"===Pn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}(c);function c(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c);for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return(t=i.call.apply(i,[this].concat(n))).state={showPopOver:!1},t.openLink=function(){var e=t.props,n=e.entityKey,o=e.contentState.getEntity(n).getData().url,r=window.open(_n(o),"blank");r&&r.focus()},t.toggleShowPopOver=function(){var e=!t.state.showPopOver;t.setState({showPopOver:e})},t}return t=c,(e=[{key:"render",value:function(){var t=this.props,e=t.children,o=t.entityKey,i=t.contentState.getEntity(o).getData(),c=i.url,a=i.targetOption,l=this.state.showPopOver;return r.a.createElement("span",{className:"rdw-link-decorator-wrapper",onMouseEnter:this.toggleShowPopOver,onMouseLeave:this.toggleShowPopOver},r.a.createElement("a",{href:_n(c),target:a},e),l&&n?r.a.createElement("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuMDcyIDBIOC45MTVhLjkyNS45MjUgMCAwIDAgMCAxLjg0OWgyLjkyNUw2Ljk2MSA2LjcyN2EuOTE4LjkxOCAwIDAgMC0uMjcuNjU0YzAgLjI0Ny4wOTUuNDguMjcuNjU0YS45MTguOTE4IDAgMCAwIC42NTQuMjcuOTE4LjkxOCAwIDAgMCAuNjUzLS4yN2w0Ljg4LTQuODh2Mi45MjZhLjkyNS45MjUgMCAwIDAgMS44NDggMFYuOTI0QS45MjUuOTI1IDAgMCAwIDE0LjA3MiAweiIvPjxwYXRoIGQ9Ik0xMC42MjMgMTMuNDExSDEuNTg1VjQuMzcyaDYuNzk4bDEuNTg0LTEuNTg0SC43OTJBLjc5Mi43OTIgMCAwIDAgMCAzLjU4djEwLjYyNGMwIC40MzcuMzU1Ljc5Mi43OTIuNzkyaDEwLjYyNGEuNzkyLjc5MiAwIDAgMCAuNzkyLS43OTJWNS4wMjlsLTEuNTg1IDEuNTg0djYuNzk4eiIvPjwvZz48L3N2Zz4=",alt:"",onClick:this.openLink,className:"rdw-link-decorator-icon"}):void 0)}}])&&Rn(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),c}()).propTypes={entityKey:c.a.string.isRequired,children:c.a.array,contentState:c.a.object},e}function Hn(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}n(33),n(34);var Qn=function(t,e,n){return e&&Hn(t.prototype,e),n&&Hn(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}((function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.getMentionComponent=function(){function t(t){var n=t.entityKey,o=t.children,i=t.contentState.getEntity(n).getData(),c=i.url,a=i.value;return r.a.createElement("a",{href:c||a,className:u()("rdw-mention-link",e)},o)}var e=n.className;return t.propTypes={entityKey:c.a.number,children:c.a.array,contentState:c.a.object},t},this.getMentionDecorator=function(){return{strategy:n.findMentionEntities,component:n.getMentionComponent()}},this.className=e}));Qn.prototype.findMentionEntities=function(t,e,n){t.findEntityRanges((function(t){var e=t.getEntity();return null!==e&&"MENTION"===n.getEntity(e).getType()}),e)};var Zn=Qn;function Gn(t){return(Gn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Wn(t,e){return(Wn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Jn(t){return(Jn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Vn(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function Kn(t,e,n){return e&&Vn(t.prototype,e),n&&Vn(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function qn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n(35);var Xn=Kn((function t(e){var n=this;qn(this,t),this.findSuggestionEntities=function(t,e){if(n.config.getEditorState()){var o=n.config,r=o.separator,i=o.trigger,c=o.getSuggestions,a=(0,o.getEditorState)().getSelection();if(a.get("anchorKey")===t.get("key")&&a.get("anchorKey")===a.get("focusKey")){var l=t.getText(),s=(l=l.substr(0,a.get("focusOffset")===l.length-1?l.length:a.get("focusOffset")+1)).lastIndexOf(r+i),u=r+i;if((void 0===s||s<0)&&l[0]===i&&(s=0,u=i),0<=s){var p=l.substr(s+u.length,l.length);c().some((function(t){return!!t.value&&(n.config.caseSensitive?0<=t.value.indexOf(p):0<=t.value.toLowerCase().indexOf(p&&p.toLowerCase()))}))&&e(0===s?0:s+1,l.length)}}}},this.getSuggestionComponent=function(){var t,e=this.config;return(t=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Wn(t,e)}(n,o.Component);var t=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=Jn(t);if(e){var r=Jn(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return function(t,e){if(e&&("object"===Gn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}(n);function n(){var o;qn(this,n);for(var r=arguments.length,i=new Array(r),c=0;c<r;c++)i[c]=arguments[c];return(o=t.call.apply(t,[this].concat(i))).state={style:{left:15},activeOption:-1,showSuggestions:!0},o.onEditorKeyDown=function(t){var e=o.state.activeOption,n={};"ArrowDown"===t.key?(t.preventDefault(),e===o.filteredSuggestions.length-1?n.activeOption=0:n.activeOption=e+1):"ArrowUp"===t.key?n.activeOption=e<=0?o.filteredSuggestions.length-1:e-1:"Escape"===t.key?(n.showSuggestions=!1,M()):"Enter"===t.key&&o.addMention(),o.setState(n)},o.onOptionMouseEnter=function(t){var e=t.target.getAttribute("data-index");o.setState({activeOption:e})},o.onOptionMouseLeave=function(){o.setState({activeOption:-1})},o.setSuggestionReference=function(t){o.suggestion=t},o.setDropdownReference=function(t){o.dropdown=t},o.closeSuggestionDropdown=function(){o.setState({showSuggestions:!1})},o.filteredSuggestions=[],o.filterSuggestions=function(t){var n=t.children[0].props.text.substr(1),r=e.getSuggestions();o.filteredSuggestions=r&&r.filter((function(t){return!n||0===n.length||(e.caseSensitive?0<=t.value.indexOf(n):0<=t.value.toLowerCase().indexOf(n&&n.toLowerCase()))}))},o.addMention=function(){var t=o.state.activeOption,n=e.getEditorState(),r=e.onChange,i=e.separator,c=e.trigger,s=o.filteredSuggestions[t];s&&function(t,e,n,o,r){var i=r.value,c=r.url,s=t.getCurrentContent().createEntity("MENTION","IMMUTABLE",{text:"".concat(o).concat(i),value:i,url:c}).getLastCreatedEntityKey(),u=Object(l.getSelectedBlock)(t).getText(),p=t.getSelection().focusOffset,d=(u.lastIndexOf(n+o,p)||0)+1,f=!1;u.length===d+1&&(p=u.length)," "===u[p]&&(f=!0);var y=t.getSelection().merge({anchorOffset:d,focusOffset:p}),m=a.EditorState.acceptSelection(t,y),g=a.Modifier.replaceText(m.getCurrentContent(),y,"".concat(o).concat(i),m.getCurrentInlineStyle(),s);m=a.EditorState.push(m,g,"insert-characters"),f||(y=m.getSelection().merge({anchorOffset:d+i.length+o.length,focusOffset:d+i.length+o.length}),m=a.EditorState.acceptSelection(m,y),g=a.Modifier.insertText(m.getCurrentContent(),y," ",m.getCurrentInlineStyle(),void 0)),e(a.EditorState.push(m,g,"insert-characters"))}(n,r,i,c,s)},o}return Kn(n,[{key:"componentDidMount",value:function(){var t,n,o,r=e.getWrapperRef().getBoundingClientRect(),i=this.suggestion.getBoundingClientRect(),c=this.dropdown.getBoundingClientRect();r.width<i.left-r.left+c.width?n=15:t=15,r.bottom<c.bottom&&(o=0),this.setState({style:{left:t,right:n,bottom:o}}),h.registerCallBack(this.onEditorKeyDown),b(),e.modalHandler.setSuggestionCallback(this.closeSuggestionDropdown),this.filterSuggestions(this.props)}},{key:"componentDidUpdate",value:function(t){this.props.children!==t.children&&(this.filterSuggestions(t),this.setState({showSuggestions:!0}))}},{key:"componentWillUnmount",value:function(){h.deregisterCallBack(this.onEditorKeyDown),M(),e.modalHandler.removeSuggestionCallback()}},{key:"render",value:function(){var t=this,n=this.props.children,o=this.state,i=o.activeOption,c=o.showSuggestions,a=e.dropdownClassName,l=e.optionClassName;return r.a.createElement("span",{className:"rdw-suggestion-wrapper",ref:this.setSuggestionReference,onClick:e.modalHandler.onSuggestionClick,"aria-haspopup":"true","aria-label":"rdw-suggestion-popup"},r.a.createElement("span",null,n),c&&r.a.createElement("span",{className:u()("rdw-suggestion-dropdown",a),contentEditable:"false",suppressContentEditableWarning:!0,style:this.state.style,ref:this.setDropdownReference},this.filteredSuggestions.map((function(e,n){return r.a.createElement("span",{key:n,spellCheck:!1,onClick:t.addMention,"data-index":n,onMouseEnter:t.onOptionMouseEnter,onMouseLeave:t.onOptionMouseLeave,className:u()("rdw-suggestion-option",l,{"rdw-suggestion-option-active":n===i})},e.text)}))))}}]),n}()).propTypes={children:c.a.array},t}.bind(this),this.getSuggestionDecorator=function(){return{strategy:n.findSuggestionEntities,component:n.getSuggestionComponent()}};var i=e.separator,s=e.trigger,p=e.getSuggestions,d=e.onChange,f=e.getEditorState,y=e.getWrapperRef,m=e.caseSensitive,g=e.dropdownClassName,j=e.optionClassName,v=e.modalHandler;this.config={separator:i,trigger:s,getSuggestions:p,onChange:d,getEditorState:f,getWrapperRef:y,caseSensitive:m,dropdownClassName:g,optionClassName:j,modalHandler:v}}));function $n(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function to(t){var e=t.block,n=t.contentState.getEntity(e.getEntityAt(0)).getData(),o=n.src,i=n.height,c=n.width;return r.a.createElement("iframe",{height:i,width:c,src:o,frameBorder:"0",allowFullScreen:!0,title:"Wysiwyg Embedded Content"})}n(36);var eo=function(t,e,n){return e&&$n(t.prototype,e),n&&$n(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}((function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.getHashtagComponent=function(){function t(t){var n=t.children,o=n[0].props.text;return r.a.createElement("a",{href:o,className:u()("rdw-hashtag-link",e)},n)}var e=n.className;return t.propTypes={children:c.a.object},t},this.findHashtagEntities=function(t,e){for(var o=t.getText(),r=0,i=0;0<o.length&&0<=r;)if(o[0]===n.hashCharacter?(i=r=0,o=o.substr(n.hashCharacter.length)):0<=(r=o.indexOf(n.separator+n.hashCharacter))&&(o=o.substr(r+(n.separator+n.hashCharacter).length),i+=r+n.separator.length),0<=r){var c=0<=o.indexOf(n.separator)?o.indexOf(n.separator):o.length,a=o.substr(0,c);a&&0<a.length&&(e(i,i+a.length+n.hashCharacter.length),i+=n.hashCharacter.length)}},this.getHashtagDecorator=function(){return{strategy:n.findHashtagEntities,component:n.getHashtagComponent()}},this.className=e.className,this.hashCharacter=e.hashCharacter||"#",this.separator=e.separator||" "}));to.propTypes={block:c.a.object,contentState:c.a.object};var no=to;function oo(t){return(oo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ro(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function io(t,e){return(io=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function co(t){return(co=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n(37);var ao=function(t){var e;return(e=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&io(t,e)}(c,o.Component);var e,n,i=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=co(t);if(e){var r=co(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return function(t,e){if(e&&("object"===oo(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}(c);function c(){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c);for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return(e=i.call.apply(i,[this].concat(o))).state={hovered:!1},e.setEntityAlignmentLeft=function(){e.setEntityAlignment("left")},e.setEntityAlignmentRight=function(){e.setEntityAlignment("right")},e.setEntityAlignmentCenter=function(){e.setEntityAlignment("none")},e.setEntityAlignment=function(n){var o=e.props,r=o.block,i=o.contentState,c=r.getEntityAt(0);i.mergeEntityData(c,{alignment:n}),t.onChange(a.EditorState.push(t.getEditorState(),i,"change-block-data")),e.setState({dummy:!0})},e.toggleHovered=function(){var t=!e.state.hovered;e.setState({hovered:t})},e}return e=c,(n=[{key:"renderAlignmentOptions",value:function(t){return r.a.createElement("div",{className:u()("rdw-image-alignment-options-popup",{"rdw-image-alignment-options-popup-right":"right"===t})},r.a.createElement(z,{onClick:this.setEntityAlignmentLeft,className:"rdw-image-alignment-option"},"L"),r.a.createElement(z,{onClick:this.setEntityAlignmentCenter,className:"rdw-image-alignment-option"},"C"),r.a.createElement(z,{onClick:this.setEntityAlignmentRight,className:"rdw-image-alignment-option"},"R"))}},{key:"render",value:function(){var e=this.props,n=e.block,o=e.contentState,i=this.state.hovered,c=t.isReadOnly,a=t.isImageAlignmentEnabled,l=o.getEntity(n.getEntityAt(0)).getData(),s=l.src,p=l.alignment,d=l.height,f=l.width,y=l.alt;return r.a.createElement("span",{onMouseEnter:this.toggleHovered,onMouseLeave:this.toggleHovered,className:u()("rdw-image-alignment",{"rdw-image-left":"left"===p,"rdw-image-right":"right"===p,"rdw-image-center":!p||"none"===p})},r.a.createElement("span",{className:"rdw-image-imagewrapper"},r.a.createElement("img",{src:s,alt:y,style:{height:d,width:f}}),!c()&&i&&a()?this.renderAlignmentOptions(p):void 0))}}])&&ro(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),c}()).propTypes={block:c.a.object,contentState:c.a.object},e},lo={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+PHBhdGggZD0iTTYuMjM2IDBjMS42NTIgMCAyLjk0LjI5OCAzLjg2Ni44OTMuOTI1LjU5NSAxLjM4OCAxLjQ4NSAxLjM4OCAyLjY2OSAwIC42MDEtLjE3MyAxLjEzOS0uNTE2IDEuNjEtLjM0My40NzQtLjg0NC44My0xLjQ5OSAxLjA2OC44NDMuMTY3IDEuNDc0LjUyMyAxLjg5NSAxLjA3MS40MTkuNTUuNjMgMS4xODMuNjMgMS45MDMgMCAxLjI0NS0uNDQ0IDIuMTg3LTEuMzMgMi44MjUtLjg4Ni42NDEtMi4xNDQuOTYxLTMuNzY5Ljk2MUgwdi0yLjE2N2gxLjQ5NFYyLjE2N0gwVjBoNi4yMzZ6TTQuMzA4IDUuNDQ2aDIuMDI0Yy43NTIgMCAxLjMzLS4xNDMgM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zz4=",className:void 0,title:void 0},subscript:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTExLjg2NiAxMS42NDZIOS4wNkw1Ljg2NyA3Ljk0MmwtMy4xMjEgMy43MDRIMGw0LjUyNC01LjA2NEwuMjE4IDEuODA0aDIuNzdsMyAzLjQ2NCAzLjAyMy0zLjQ2NGgyLjY1TDcuMzA2IDYuNTgybDQuNTYgNS4wNjR6bTEuNzI1IDIuMDU4bDEuODI3LTEuMzY4Yy42NC0uNDM1IDEuMDYyLS44NCAxLjI2NC0xLjIxMi4yMDItLjM3Mi4zMDItLjc3My4zMDItMS4yMDIgMC0uNy0uMjM3LTEuMjY2LS43MS0xLjY5Ni0uNDc0LS40MzEtMS4wOTctLjY0Ni0xLjg2OS0uNjQ2LS43NDQgMC0xLjM0LjIxOC0xLjc4NS42NTMtLjQ0Ni40MzYtLjY3IDEuMDkyLS42NyAxLjk3aDEuNDM2YzAtLjUyNC4wOTQtLjg4Ni4yODEtMS4wODcuMTg4LS4yLjQ0NS0uMzAxLjc3Mi0uMzAxcy41ODYuMTAyLjc3Ny4zMDZjLjE5LjIwNC4yODYuNDU4LjI4Ni43NiAwIC4zMDMtLjA4OC41NzctLjI2Ni44MjItLjE3Ny4yNDUtLjY3LjY1OC0xLjQ3OCAxLjI0LS42OTIuNS0xLjYyOC45NzEtMS45MSAxLjQxM0wxMS44NjQgMTVIMTd2LTEuMjk2aC0zLjQxeiIvPjwvc3ZnPg==",className:void 0,title:void 0}},blockType:{inDropdown:!0,options:["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:"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0uMzA3LjE0MS0uMzA3LjM3OCAwIC40My4zMTMuODg4Ljg5NS44ODguNTY0IDAgLjkwMS0uNC45MDEtMS4wN3YtLjA3NGMwLS4yNzQtLjA3NC0uNTAyLS4yMTQtLjY2Ni4wOTYtLjE2My4xNDgtLjM4LjE0OC0uNjM1eiIvPjwvZz48L3N2Zz4=",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+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTEuNTU2IDE0Ljg4N0gzLjM4OGEuMzI2LjMyNiAwIDAgMSAwLS42NTJoOC4xNjdhLjMyNi4zMjYgMCAwIDEgMCAuNjUyek0xNC42MTggMTAuMTYySC4zMjZhLjMyNi4zMjYgMCAwIDEgMC0uNjUzaDE0LjI5MmEuMzI2LjMyNiAwIDAgMSAwIC42NTN6TTExLjU1NiA1LjQzNUgzLjM4OGEuMzI2LjMyNiAwIDAgMSAwLS42NTJoOC4xNjdhLjMyNi4zMjYgMCAwIDEgMCAuNjUyek0xN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1OXoiLz48L2c+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+PHBhdGggZD0iTTEzLjk2Ny45NUEzLjIyNiAzLjIyNiAwIDAgMCAxMS42Ny4wMDJjLS44NyAwLTEuNjg2LjMzNy0yLjI5Ny45NDhMNy4xMDUgMy4yMThBMy4yNDcgMy4yNDcgMCAwIDAgNi4yNCA2LjI0YTMuMjI1IDMuMjI1IDAgMCAwLTMuMDIyLjg2NUwuOTUgOS4zNzNhMy4yNTMgMy4yNTMgMCAwIDAgMCA0LjU5NCAzLjIyNiAzLjIyNiAwIDAgMCAyLjI5Ny45NDhjLjg3IDAgMS42ODYtLjMzNiAyLjI5OC0uOTQ4TDcuODEyIDExLjdhMy4yNDcgMy4yNDcgMCAwIDAgLjg2NS0zLjAyMyAzLjIyNSAzLjIyNSAwIDAgMCAzLjAyMi0uODY1bDIuMjY4LTIuMjY3YTMuMjUyIDMuMjUyIDAgMCAwIDAtNC41OTV6TTcuMTA1IDEwLjk5M0w0LjgzNyAxMy4yNmEyL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MCAxIDAgOS4yNjd6bS03LjUyNC02LjczYS45MDYuOTA2IDAgMSAxIDEuODExIDAgLjkwNi45MDYgMCAwIDEtMS44MTEgMHptNC4xMDYgMGEuOTA2LjkwNiAwIDEgMSAxLjgxMiAwIC45MDYuOTA2IDAgMCAxLTEuODEyIDB6bTIuMTQxIDMuNzA4Yy0uNTYxIDEuMjk4LTEuODc1IDIuMTM3LTMuMzQ4IDIuMTM3LTEuNTA1IDAtMi44MjctLjg0My0zLjM2OS0yLjE0N2EuNDM4LjQzOCAwIDAgMSAuODEtLjMzNmMuNDA1Ljk3NiAxLjQxIDEuNjA3IDIuNTU5IDEuNjA3IDEuMTIzIDAgMi4xMjEtLjYzMSAyLjU0NC0xLjYwOGEuNDM4LjQzOCAwIDAgMSAuODA0LjM0N3oiLz48L3N2Zz4=",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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IDAgMCAwLS4xOC4xTDcuNjIyIDguNTM3IDYuMzk0IDcuMDk0YS4yMzIuMjMyIDAgMCAwLS4zNTQtLjAxM2wtNC40IDQuNTZhLjM0My4zNDMgMCAwIDAtLjAyNC40My4yNDMuMjQzIDAgMCAwIC4xOTQuMTAzeiIvPjwvZz48L3N2Zz4=",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}},so={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":"両端揃え"}};function uo(t){return(uo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function po(){return(po=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(this,arguments)}function fo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function yo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?fo(Object(n),!0).forEach((function(e){mo(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fo(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function mo(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function go(t){return function(t){if(Array.isArray(t))return ho(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return ho(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ho(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ho(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}function bo(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function Mo(t,e){return(Mo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function jo(t){return(jo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n(38),n(39);var vo=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Mo(t,e)}(i,o.Component);var t,e,n=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=jo(t);if(e){var r=jo(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return function(t,e){if(e&&("object"===uo(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}(i);function i(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=n.call(this,t)).onEditorBlur=function(){e.setState({editorFocused:!1})},e.onEditorFocus=function(t){var n=e.props.onFocus;e.setState({editorFocused:!0});var o=e.focusHandler.isEditorFocused();n&&o&&n(t)},e.onEditorMouseDown=function(){e.focusHandler.onEditorMouseDown()},e.keyBindingFn=function(t){if("Tab"!==t.key)return"ArrowUp"!==t.key&&"ArrowDown"!==t.key||j()&&t.preventDefault(),Object(a.getDefaultKeyBinding)(t);var n=e.props.onTab;if(!n||!n(t)){var o=Object(l.changeDepth)(e.state.editorState,t.shiftKey?-1:1,4);o&&o!==e.state.editorState&&(e.onChange(o),t.preventDefault())}return null},e.onToolbarFocus=function(t){var n=e.props.onFocus;n&&e.focusHandler.isToolbarFocused()&&n(t)},e.onWrapperBlur=function(t){var n=e.props.onBlur;n&&e.focusHandler.isEditorBlur(t)&&n(t,e.getEditorState())},e.onChange=function(t){var n=e.props,o=n.readOnly,r=n.onEditorStateChange;o||"atomic"===Object(l.getSelectedBlocksType)(t)&&t.getSelection().isCollapsed||(r&&r(t,e.props.wrapperId),N(e.props,"editorState")?e.afterChange(t):e.setState({editorState:t},e.afterChange(t)))},e.setWrapperReference=function(t){e.wrapper=t},e.setEditorReference=function(t){e.props.editorRef&&e.props.editorRef(t),e.editor=t},e.getCompositeDecorator=function(t){var n=[].concat(go(e.props.customDecorators),[{strategy:Fn,component:Yn({showOpenOptionOnHover:t.link.showOpenOptionOnHover})}]);return e.props.mention&&n.push.apply(n,go(function(t){return[new Zn(t.mentionClassName).getMentionDecorator(),new Xn(t).getSuggestionDecorator()]}(yo(yo({},e.props.mention),{},{onChange:e.onChange,getEditorState:e.getEditorState,getSuggestions:e.getSuggestions,getWrapperRef:e.getWrapperRef,modalHandler:e.modalHandler})))),e.props.hashtag&&n.push(function(t){return new eo(t).getHashtagDecorator()}(e.props.hashtag)),new a.CompositeDecorator(n)},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(t){setTimeout((function(){var n=e.props,o=n.onChange,r=n.onContentStateChange;o&&o(Object(a.convertToRaw)(t.getCurrentContent())),r&&r(Object(a.convertToRaw)(t.getCurrentContent()))}))},e.isReadOnly=function(){return e.props.readOnly},e.isImageAlignmentEnabled=function(){return e.state.toolbar.image.alignmentEnabled},e.createEditorState=function(t){var n;if(N(e.props,"editorState"))e.props.editorState&&(n=a.EditorState.set(e.props.editorState,{decorator:t}));else if(N(e.props,"defaultEditorState"))e.props.defaultEditorState&&(n=a.EditorState.set(e.props.defaultEditorState,{decorator:t}));else if(N(e.props,"contentState")){if(e.props.contentState){var o=Object(a.convertFromRaw)(e.props.contentState);n=a.EditorState.createWithContent(o,t),n=a.EditorState.moveSelectionToEnd(n)}}else if(N(e.props,"defaultContentState")||N(e.props,"initialContentState")){var r=e.props.defaultContentState||e.props.initialContentState;r&&(r=Object(a.convertFromRaw)(r),n=a.EditorState.createWithContent(r,t),n=a.EditorState.moveSelectionToEnd(n))}return n||a.EditorState.createEmpty(t)},e.filterEditorProps=function(t){return e=t,n=["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"],o=Object.keys(e).filter((function(t){return n.indexOf(t)<0})),r={},o&&0<o.length&&o.forEach((function(t){r[t]=e[t]})),r;var e,n,o,r},e.getStyleMap=function(t){return yo(yo({},Object(l.getCustomStyleMap)()),t.customStyleMap)},e.changeEditorState=function(t){var n=Object(a.convertFromRaw)(t),o=e.state.editorState;return o=a.EditorState.push(o,n,"insert-characters"),a.EditorState.moveSelectionToEnd(o)},e.focusEditor=function(){setTimeout((function(){e.editor.focus()}))},e.handleKeyCommand=function(t){var n=e.state,o=n.editorState,r=n.toolbar.inline;if(r&&0<=r.options.indexOf(t)){var i=a.RichUtils.handleKeyCommand(o,t);if(i)return e.onChange(i),!0}return!1},e.handleReturn=function(t){if(j())return!0;var n=e.state.editorState,o=Object(l.handleNewLine)(n,t);return!!o&&(e.onChange(o),!0)},e.handlePastedTextFn=function(t,n){var o=e.state.editorState,r=e.props,i=r.handlePastedText,c=r.stripPastedStyles;return i?i(t,n,o,e.onChange):!c&&function(t,e,n,o){var r=Object(l.getSelectedBlock)(n);if(r&&"code"===r.type){var i=a.Modifier.replaceText(n.getCurrentContent(),n.getSelection(),t,n.getCurrentInlineStyle());return o(a.EditorState.push(n,i,"insert-characters")),!0}if(e){var c=k()(e),s=n.getCurrentContent();return c.entityMap.forEach((function(t,e){s=s.mergeEntityData(e,t)})),s=a.Modifier.replaceWithFragment(s,n.getSelection(),new D.List(c.contentBlocks)),o(a.EditorState.push(n,s,"insert-characters")),!0}return!1}(t,n,o,e.onChange)},e.preventDefault=function(t){"INPUT"===t.target.tagName||"LABEL"===t.target.tagName||"TEXTAREA"===t.target.tagName?e.focusHandler.onInputMouseDown():t.preventDefault()};var o=L(lo,t.toolbar),r=t.wrapperId?t.wrapperId:Math.floor(1e4*Math.random());e.wrapperId="rdw-wrapper-".concat(r),e.modalHandler=new d,e.focusHandler=new m,e.blockRendererFn=function(t,e){return function(n){if("function"==typeof e){var o=e(n,t,t.getEditorState);if(o)return o}if("atomic"===n.getType()){var r=t.getEditorState().getCurrentContent().getEntity(n.getEntityAt(0));if(r&&"IMAGE"===r.type)return{component:ao(t),editable:!1};if(r&&"EMBEDDED_LINK"===r.type)return{component:no,editable:!1}}}}({isReadOnly:e.isReadOnly,isImageAlignmentEnabled:e.isImageAlignmentEnabled,getEditorState:e.getEditorState,onChange:e.onChange},t.customBlockRenderFunc),e.editorProps=e.filterEditorProps(t),e.customStyleMap=e.getStyleMap(t),e.compositeDecorator=e.getCompositeDecorator(o);var c=e.createEditorState(e.compositeDecorator);return Object(l.extractInlineStyle)(c),e.state={editorState:c,editorFocused:!1,toolbar:o},e}return t=i,(e=[{key:"componentDidMount",value:function(){this.modalHandler.init(this.wrapperId)}},{key:"componentDidUpdate",value:function(t){if(t!==this.props){var e={},n=this.props,o=n.editorState,r=n.contentState;if(!this.state.toolbar){var i=L(lo,i);e.toolbar=i}if(N(this.props,"editorState")&&o!==t.editorState)e.editorState=o?a.EditorState.set(o,{decorator:this.compositeDecorator}):a.EditorState.createEmpty(this.compositeDecorator);else if(N(this.props,"contentState")&&r!==t.contentState)if(r){var c=this.changeEditorState(r);c&&(e.editorState=c)}else e.editorState=a.EditorState.createEmpty(this.compositeDecorator);t.editorState===o&&t.contentState===r||Object(l.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 t=this.state,e=t.editorState,n=t.editorFocused,o=t.toolbar,i=this.props,c=i.locale,s=i.localization,p=s.locale,d=s.translations,f=i.toolbarCustomButtons,y=i.toolbarOnFocus,m=i.toolbarClassName,g=i.toolbarHidden,b=i.editorClassName,M=i.wrapperClassName,j=i.toolbarStyle,E=i.editorStyle,N=i.wrapperStyle,S=i.uploadCallback,w=i.ariaLabel,L={modalHandler:this.modalHandler,editorState:e,onChange:this.onChange,translations:yo(yo({},so[c||p]),d)},C=n||this.focusHandler.isInputFocused()||!y;return r.a.createElement("div",{id:this.wrapperId,className:u()(M,"rdw-editor-wrapper"),style:N,onClick:this.modalHandler.onEditorClick,onBlur:this.onWrapperBlur,"aria-label":"rdw-wrapper"},!g&&r.a.createElement("div",{className:u()("rdw-editor-toolbar",m),style:yo({visibility:C?"visible":"hidden"},j),onMouseDown:this.preventDefault,"aria-label":"rdw-toolbar","aria-hidden":(!n&&y).toString(),onFocus:this.onToolbarFocus},o.options.map((function(t,e){var n=Tn[t],i=o[t];return"image"===t&&S&&(i.uploadCallback=S),r.a.createElement(n,po({key:e},L,{config:i}))})),f&&f.map((function(t,e){return r.a.cloneElement(t,yo({key:e},L))}))),r.a.createElement("div",{ref:this.setWrapperReference,className:u()(b,"rdw-editor-main"),style:E,onClick:this.focusEditor,onFocus:this.onEditorFocus,onBlur:this.onEditorBlur,onKeyDown:h.onKeyDown,onMouseDown:this.onEditorMouseDown},r.a.createElement(a.Editor,po({ref:this.setEditorReference,keyBindingFn:this.keyBindingFn,editorState:e,onChange:this.onChange,blockStyleFn:v,customStyleMap:this.getStyleMap(this.props),handleReturn:this.handleReturn,handlePastedText:this.handlePastedTextFn,blockRendererFn:this.blockRendererFn,handleKeyCommand:this.handleKeyCommand,ariaLabel:w||"rdw-editor",blockRenderMap:l.blockRenderMap},this.editorProps))))}}])&&bo(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();vo.propTypes={onChange:c.a.func,onEditorStateChange:c.a.func,onContentStateChange:c.a.func,initialContentState:c.a.object,defaultContentState:c.a.object,contentState:c.a.object,editorState:c.a.object,defaultEditorState:c.a.object,toolbarOnFocus:c.a.bool,spellCheck:c.a.bool,stripPastedStyles:c.a.bool,toolbar:c.a.object,toolbarCustomButtons:c.a.array,toolbarClassName:c.a.string,toolbarHidden:c.a.bool,locale:c.a.string,localization:c.a.object,editorClassName:c.a.string,wrapperClassName:c.a.string,toolbarStyle:c.a.object,editorStyle:c.a.object,wrapperStyle:c.a.object,uploadCallback:c.a.func,onFocus:c.a.func,onBlur:c.a.func,onTab:c.a.func,mention:c.a.object,hashtag:c.a.object,textAlignment:c.a.string,readOnly:c.a.bool,tabIndex:c.a.number,placeholder:c.a.string,ariaLabel:c.a.string,ariaOwneeID:c.a.string,ariaActiveDescendantID:c.a.string,ariaAutoComplete:c.a.string,ariaDescribedBy:c.a.string,ariaExpanded:c.a.string,ariaHasPopup:c.a.string,customBlockRenderFunc:c.a.func,wrapperId:c.a.number,customDecorators:c.a.array,editorRef:c.a.func,handlePastedText:c.a.func},vo.defaultProps={toolbarOnFocus:!1,toolbarHidden:!1,stripPastedStyles:!1,localization:{locale:"en",translations:{}},customDecorators:[]};var Eo=vo}],o.c=i,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=8);function o(t){if(i[t])return i[t].exports;var e=i[t]={i:t,l:!1,exports:{}};return r[t].call(e.exports,e,e.exports,o),e.l=!0,e.exports}var r,i}(n(67294),n(9041),n(43393))}}]);